Add -Wshadow to the gcc command line options used when compiling the binutils.
[binutils.git] / ld / configure
blobe0ff7582dfa1115d436a562e5586e95a07209608
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 -Wshadow"
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 # The tests for host and target for $enable_largefile require
5415 # canonical names.
5419 # As the $enable_largefile decision depends on --enable-plugins we must set it
5420 # even in directories otherwise not depending on the $plugins option.
5423 # Check whether --enable-plugins was given.
5424 if test "${enable_plugins+set}" = set; then :
5425 enableval=$enable_plugins; case "${enableval}" in
5426 yes | "") plugins=yes ;;
5427 no) plugins=no ;;
5428 *) plugins=yes ;;
5429 esac
5430 else
5431 plugins=no
5436 case "${host}" in
5437 sparc-*-solaris*|i[3-7]86-*-solaris*)
5438 # On native 32bit sparc and ia32 solaris, large-file and procfs support
5439 # are mutually exclusive; and without procfs support, the bfd/ elf module
5440 # cannot provide certain routines such as elfcore_write_prpsinfo
5441 # or elfcore_write_prstatus. So unless the user explicitly requested
5442 # large-file support through the --enable-largefile switch, disable
5443 # large-file support in favor of procfs support.
5444 test "${target}" = "${host}" -a "x$plugins" = xno \
5445 && : ${enable_largefile="no"}
5447 esac
5449 # Check whether --enable-largefile was given.
5450 if test "${enable_largefile+set}" = set; then :
5451 enableval=$enable_largefile;
5454 if test "$enable_largefile" != no; then
5456 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
5457 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
5458 if test "${ac_cv_sys_largefile_CC+set}" = set; then :
5459 $as_echo_n "(cached) " >&6
5460 else
5461 ac_cv_sys_largefile_CC=no
5462 if test "$GCC" != yes; then
5463 ac_save_CC=$CC
5464 while :; do
5465 # IRIX 6.2 and later do not support large files by default,
5466 # so use the C compiler's -n32 option if that helps.
5467 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5468 /* end confdefs.h. */
5469 #include <sys/types.h>
5470 /* Check that off_t can represent 2**63 - 1 correctly.
5471 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5472 since some C++ compilers masquerading as C compilers
5473 incorrectly reject 9223372036854775807. */
5474 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5475 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5476 && LARGE_OFF_T % 2147483647 == 1)
5477 ? 1 : -1];
5479 main ()
5483 return 0;
5485 _ACEOF
5486 if ac_fn_c_try_compile "$LINENO"; then :
5487 break
5489 rm -f core conftest.err conftest.$ac_objext
5490 CC="$CC -n32"
5491 if ac_fn_c_try_compile "$LINENO"; then :
5492 ac_cv_sys_largefile_CC=' -n32'; break
5494 rm -f core conftest.err conftest.$ac_objext
5495 break
5496 done
5497 CC=$ac_save_CC
5498 rm -f conftest.$ac_ext
5501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
5502 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
5503 if test "$ac_cv_sys_largefile_CC" != no; then
5504 CC=$CC$ac_cv_sys_largefile_CC
5507 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
5508 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
5509 if test "${ac_cv_sys_file_offset_bits+set}" = set; then :
5510 $as_echo_n "(cached) " >&6
5511 else
5512 while :; do
5513 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5514 /* end confdefs.h. */
5515 #include <sys/types.h>
5516 /* Check that off_t can represent 2**63 - 1 correctly.
5517 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5518 since some C++ compilers masquerading as C compilers
5519 incorrectly reject 9223372036854775807. */
5520 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5521 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5522 && LARGE_OFF_T % 2147483647 == 1)
5523 ? 1 : -1];
5525 main ()
5529 return 0;
5531 _ACEOF
5532 if ac_fn_c_try_compile "$LINENO"; then :
5533 ac_cv_sys_file_offset_bits=no; break
5535 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5536 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5537 /* end confdefs.h. */
5538 #define _FILE_OFFSET_BITS 64
5539 #include <sys/types.h>
5540 /* Check that off_t can represent 2**63 - 1 correctly.
5541 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5542 since some C++ compilers masquerading as C compilers
5543 incorrectly reject 9223372036854775807. */
5544 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5545 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5546 && LARGE_OFF_T % 2147483647 == 1)
5547 ? 1 : -1];
5549 main ()
5553 return 0;
5555 _ACEOF
5556 if ac_fn_c_try_compile "$LINENO"; then :
5557 ac_cv_sys_file_offset_bits=64; break
5559 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5560 ac_cv_sys_file_offset_bits=unknown
5561 break
5562 done
5564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
5565 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
5566 case $ac_cv_sys_file_offset_bits in #(
5567 no | unknown) ;;
5569 cat >>confdefs.h <<_ACEOF
5570 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
5571 _ACEOF
5573 esac
5574 rm -rf conftest*
5575 if test $ac_cv_sys_file_offset_bits = unknown; then
5576 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
5577 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
5578 if test "${ac_cv_sys_large_files+set}" = set; then :
5579 $as_echo_n "(cached) " >&6
5580 else
5581 while :; do
5582 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5583 /* end confdefs.h. */
5584 #include <sys/types.h>
5585 /* Check that off_t can represent 2**63 - 1 correctly.
5586 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5587 since some C++ compilers masquerading as C compilers
5588 incorrectly reject 9223372036854775807. */
5589 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5590 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5591 && LARGE_OFF_T % 2147483647 == 1)
5592 ? 1 : -1];
5594 main ()
5598 return 0;
5600 _ACEOF
5601 if ac_fn_c_try_compile "$LINENO"; then :
5602 ac_cv_sys_large_files=no; break
5604 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5605 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5606 /* end confdefs.h. */
5607 #define _LARGE_FILES 1
5608 #include <sys/types.h>
5609 /* Check that off_t can represent 2**63 - 1 correctly.
5610 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5611 since some C++ compilers masquerading as C compilers
5612 incorrectly reject 9223372036854775807. */
5613 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5614 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5615 && LARGE_OFF_T % 2147483647 == 1)
5616 ? 1 : -1];
5618 main ()
5622 return 0;
5624 _ACEOF
5625 if ac_fn_c_try_compile "$LINENO"; then :
5626 ac_cv_sys_large_files=1; break
5628 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5629 ac_cv_sys_large_files=unknown
5630 break
5631 done
5633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
5634 $as_echo "$ac_cv_sys_large_files" >&6; }
5635 case $ac_cv_sys_large_files in #(
5636 no | unknown) ;;
5638 cat >>confdefs.h <<_ACEOF
5639 #define _LARGE_FILES $ac_cv_sys_large_files
5640 _ACEOF
5642 esac
5643 rm -rf conftest*
5650 case `pwd` in
5651 *\ * | *\ *)
5652 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
5653 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
5654 esac
5658 macro_version='2.2.6'
5659 macro_revision='1.3012'
5673 ltmain="$ac_aux_dir/ltmain.sh"
5675 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
5676 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
5677 if test "${ac_cv_path_SED+set}" = set; then :
5678 $as_echo_n "(cached) " >&6
5679 else
5680 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
5681 for ac_i in 1 2 3 4 5 6 7; do
5682 ac_script="$ac_script$as_nl$ac_script"
5683 done
5684 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
5685 { ac_script=; unset ac_script;}
5686 if test -z "$SED"; then
5687 ac_path_SED_found=false
5688 # Loop through the user's path and test for each of PROGNAME-LIST
5689 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5690 for as_dir in $PATH
5692 IFS=$as_save_IFS
5693 test -z "$as_dir" && as_dir=.
5694 for ac_prog in sed gsed; do
5695 for ac_exec_ext in '' $ac_executable_extensions; do
5696 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
5697 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
5698 # Check for GNU ac_path_SED and select it if it is found.
5699 # Check for GNU $ac_path_SED
5700 case `"$ac_path_SED" --version 2>&1` in
5701 *GNU*)
5702 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
5704 ac_count=0
5705 $as_echo_n 0123456789 >"conftest.in"
5706 while :
5708 cat "conftest.in" "conftest.in" >"conftest.tmp"
5709 mv "conftest.tmp" "conftest.in"
5710 cp "conftest.in" "conftest.nl"
5711 $as_echo '' >> "conftest.nl"
5712 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
5713 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5714 as_fn_arith $ac_count + 1 && ac_count=$as_val
5715 if test $ac_count -gt ${ac_path_SED_max-0}; then
5716 # Best one so far, save it but keep looking for a better one
5717 ac_cv_path_SED="$ac_path_SED"
5718 ac_path_SED_max=$ac_count
5720 # 10*(2^10) chars as input seems more than enough
5721 test $ac_count -gt 10 && break
5722 done
5723 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5724 esac
5726 $ac_path_SED_found && break 3
5727 done
5728 done
5729 done
5730 IFS=$as_save_IFS
5731 if test -z "$ac_cv_path_SED"; then
5732 as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
5734 else
5735 ac_cv_path_SED=$SED
5739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
5740 $as_echo "$ac_cv_path_SED" >&6; }
5741 SED="$ac_cv_path_SED"
5742 rm -f conftest.sed
5744 test -z "$SED" && SED=sed
5745 Xsed="$SED -e 1s/^X//"
5757 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
5758 $as_echo_n "checking for fgrep... " >&6; }
5759 if test "${ac_cv_path_FGREP+set}" = set; then :
5760 $as_echo_n "(cached) " >&6
5761 else
5762 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
5763 then ac_cv_path_FGREP="$GREP -F"
5764 else
5765 if test -z "$FGREP"; then
5766 ac_path_FGREP_found=false
5767 # Loop through the user's path and test for each of PROGNAME-LIST
5768 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5769 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5771 IFS=$as_save_IFS
5772 test -z "$as_dir" && as_dir=.
5773 for ac_prog in fgrep; do
5774 for ac_exec_ext in '' $ac_executable_extensions; do
5775 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
5776 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
5777 # Check for GNU ac_path_FGREP and select it if it is found.
5778 # Check for GNU $ac_path_FGREP
5779 case `"$ac_path_FGREP" --version 2>&1` in
5780 *GNU*)
5781 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
5783 ac_count=0
5784 $as_echo_n 0123456789 >"conftest.in"
5785 while :
5787 cat "conftest.in" "conftest.in" >"conftest.tmp"
5788 mv "conftest.tmp" "conftest.in"
5789 cp "conftest.in" "conftest.nl"
5790 $as_echo 'FGREP' >> "conftest.nl"
5791 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
5792 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5793 as_fn_arith $ac_count + 1 && ac_count=$as_val
5794 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5795 # Best one so far, save it but keep looking for a better one
5796 ac_cv_path_FGREP="$ac_path_FGREP"
5797 ac_path_FGREP_max=$ac_count
5799 # 10*(2^10) chars as input seems more than enough
5800 test $ac_count -gt 10 && break
5801 done
5802 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5803 esac
5805 $ac_path_FGREP_found && break 3
5806 done
5807 done
5808 done
5809 IFS=$as_save_IFS
5810 if test -z "$ac_cv_path_FGREP"; then
5811 as_fn_error "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5813 else
5814 ac_cv_path_FGREP=$FGREP
5819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
5820 $as_echo "$ac_cv_path_FGREP" >&6; }
5821 FGREP="$ac_cv_path_FGREP"
5824 test -z "$GREP" && GREP=grep
5844 # Check whether --with-gnu-ld was given.
5845 if test "${with_gnu_ld+set}" = set; then :
5846 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
5847 else
5848 with_gnu_ld=no
5851 ac_prog=ld
5852 if test "$GCC" = yes; then
5853 # Check if gcc -print-prog-name=ld gives a path.
5854 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5855 $as_echo_n "checking for ld used by $CC... " >&6; }
5856 case $host in
5857 *-*-mingw*)
5858 # gcc leaves a trailing carriage return which upsets mingw
5859 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5861 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5862 esac
5863 case $ac_prog in
5864 # Accept absolute paths.
5865 [\\/]* | ?:[\\/]*)
5866 re_direlt='/[^/][^/]*/\.\./'
5867 # Canonicalize the pathname of ld
5868 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5869 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5870 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5871 done
5872 test -z "$LD" && LD="$ac_prog"
5875 # If it fails, then pretend we aren't using GCC.
5876 ac_prog=ld
5879 # If it is relative, then search for the first ld in PATH.
5880 with_gnu_ld=unknown
5882 esac
5883 elif test "$with_gnu_ld" = yes; then
5884 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5885 $as_echo_n "checking for GNU ld... " >&6; }
5886 else
5887 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5888 $as_echo_n "checking for non-GNU ld... " >&6; }
5890 if test "${lt_cv_path_LD+set}" = set; then :
5891 $as_echo_n "(cached) " >&6
5892 else
5893 if test -z "$LD"; then
5894 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5895 for ac_dir in $PATH; do
5896 IFS="$lt_save_ifs"
5897 test -z "$ac_dir" && ac_dir=.
5898 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5899 lt_cv_path_LD="$ac_dir/$ac_prog"
5900 # Check to see if the program is GNU ld. I'd rather use --version,
5901 # but apparently some variants of GNU ld only accept -v.
5902 # Break only if it was the GNU/non-GNU ld that we prefer.
5903 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5904 *GNU* | *'with BFD'*)
5905 test "$with_gnu_ld" != no && break
5908 test "$with_gnu_ld" != yes && break
5910 esac
5912 done
5913 IFS="$lt_save_ifs"
5914 else
5915 lt_cv_path_LD="$LD" # Let the user override the test with a path.
5919 LD="$lt_cv_path_LD"
5920 if test -n "$LD"; then
5921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5922 $as_echo "$LD" >&6; }
5923 else
5924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5925 $as_echo "no" >&6; }
5927 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
5928 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5929 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
5930 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
5931 $as_echo_n "(cached) " >&6
5932 else
5933 # I'd rather use --version here, but apparently some GNU lds only accept -v.
5934 case `$LD -v 2>&1 </dev/null` in
5935 *GNU* | *'with BFD'*)
5936 lt_cv_prog_gnu_ld=yes
5939 lt_cv_prog_gnu_ld=no
5941 esac
5943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5944 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
5945 with_gnu_ld=$lt_cv_prog_gnu_ld
5955 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5956 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5957 if test "${lt_cv_path_NM+set}" = set; then :
5958 $as_echo_n "(cached) " >&6
5959 else
5960 if test -n "$NM"; then
5961 # Let the user override the test.
5962 lt_cv_path_NM="$NM"
5963 else
5964 lt_nm_to_check="${ac_tool_prefix}nm"
5965 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5966 lt_nm_to_check="$lt_nm_to_check nm"
5968 for lt_tmp_nm in $lt_nm_to_check; do
5969 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5970 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5971 IFS="$lt_save_ifs"
5972 test -z "$ac_dir" && ac_dir=.
5973 tmp_nm="$ac_dir/$lt_tmp_nm"
5974 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5975 # Check to see if the nm accepts a BSD-compat flag.
5976 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5977 # nm: unknown option "B" ignored
5978 # Tru64's nm complains that /dev/null is an invalid object file
5979 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5980 */dev/null* | *'Invalid file or object type'*)
5981 lt_cv_path_NM="$tmp_nm -B"
5982 break
5985 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5986 */dev/null*)
5987 lt_cv_path_NM="$tmp_nm -p"
5988 break
5991 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5992 continue # so that we can try to find one that supports BSD flags
5994 esac
5996 esac
5998 done
5999 IFS="$lt_save_ifs"
6000 done
6001 : ${lt_cv_path_NM=no}
6004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
6005 $as_echo "$lt_cv_path_NM" >&6; }
6006 if test "$lt_cv_path_NM" != "no"; then
6007 NM="$lt_cv_path_NM"
6008 else
6009 # Didn't find any BSD compatible name lister, look for dumpbin.
6010 if test -n "$ac_tool_prefix"; then
6011 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
6013 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6014 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6015 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6016 $as_echo_n "checking for $ac_word... " >&6; }
6017 if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
6018 $as_echo_n "(cached) " >&6
6019 else
6020 if test -n "$DUMPBIN"; then
6021 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
6022 else
6023 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6024 for as_dir in $PATH
6026 IFS=$as_save_IFS
6027 test -z "$as_dir" && as_dir=.
6028 for ac_exec_ext in '' $ac_executable_extensions; do
6029 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6030 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
6031 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6032 break 2
6034 done
6035 done
6036 IFS=$as_save_IFS
6040 DUMPBIN=$ac_cv_prog_DUMPBIN
6041 if test -n "$DUMPBIN"; then
6042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
6043 $as_echo "$DUMPBIN" >&6; }
6044 else
6045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6046 $as_echo "no" >&6; }
6050 test -n "$DUMPBIN" && break
6051 done
6053 if test -z "$DUMPBIN"; then
6054 ac_ct_DUMPBIN=$DUMPBIN
6055 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
6057 # Extract the first word of "$ac_prog", so it can be a program name with args.
6058 set dummy $ac_prog; ac_word=$2
6059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6060 $as_echo_n "checking for $ac_word... " >&6; }
6061 if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
6062 $as_echo_n "(cached) " >&6
6063 else
6064 if test -n "$ac_ct_DUMPBIN"; then
6065 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
6066 else
6067 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6068 for as_dir in $PATH
6070 IFS=$as_save_IFS
6071 test -z "$as_dir" && as_dir=.
6072 for ac_exec_ext in '' $ac_executable_extensions; do
6073 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6074 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
6075 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6076 break 2
6078 done
6079 done
6080 IFS=$as_save_IFS
6084 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
6085 if test -n "$ac_ct_DUMPBIN"; then
6086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
6087 $as_echo "$ac_ct_DUMPBIN" >&6; }
6088 else
6089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6090 $as_echo "no" >&6; }
6094 test -n "$ac_ct_DUMPBIN" && break
6095 done
6097 if test "x$ac_ct_DUMPBIN" = x; then
6098 DUMPBIN=":"
6099 else
6100 case $cross_compiling:$ac_tool_warned in
6101 yes:)
6102 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6103 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6104 ac_tool_warned=yes ;;
6105 esac
6106 DUMPBIN=$ac_ct_DUMPBIN
6111 if test "$DUMPBIN" != ":"; then
6112 NM="$DUMPBIN"
6115 test -z "$NM" && NM=nm
6122 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
6123 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
6124 if test "${lt_cv_nm_interface+set}" = set; then :
6125 $as_echo_n "(cached) " >&6
6126 else
6127 lt_cv_nm_interface="BSD nm"
6128 echo "int some_variable = 0;" > conftest.$ac_ext
6129 (eval echo "\"\$as_me:6129: $ac_compile\"" >&5)
6130 (eval "$ac_compile" 2>conftest.err)
6131 cat conftest.err >&5
6132 (eval echo "\"\$as_me:6132: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
6133 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
6134 cat conftest.err >&5
6135 (eval echo "\"\$as_me:6135: output\"" >&5)
6136 cat conftest.out >&5
6137 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
6138 lt_cv_nm_interface="MS dumpbin"
6140 rm -f conftest*
6142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
6143 $as_echo "$lt_cv_nm_interface" >&6; }
6145 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
6146 $as_echo_n "checking whether ln -s works... " >&6; }
6147 LN_S=$as_ln_s
6148 if test "$LN_S" = "ln -s"; then
6149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6150 $as_echo "yes" >&6; }
6151 else
6152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
6153 $as_echo "no, using $LN_S" >&6; }
6156 # find the maximum length of command line arguments
6157 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
6158 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
6159 if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
6160 $as_echo_n "(cached) " >&6
6161 else
6163 teststring="ABCD"
6165 case $build_os in
6166 msdosdjgpp*)
6167 # On DJGPP, this test can blow up pretty badly due to problems in libc
6168 # (any single argument exceeding 2000 bytes causes a buffer overrun
6169 # during glob expansion). Even if it were fixed, the result of this
6170 # check would be larger than it should be.
6171 lt_cv_sys_max_cmd_len=12288; # 12K is about right
6174 gnu*)
6175 # Under GNU Hurd, this test is not required because there is
6176 # no limit to the length of command line arguments.
6177 # Libtool will interpret -1 as no limit whatsoever
6178 lt_cv_sys_max_cmd_len=-1;
6181 cygwin* | mingw* | cegcc*)
6182 # On Win9x/ME, this test blows up -- it succeeds, but takes
6183 # about 5 minutes as the teststring grows exponentially.
6184 # Worse, since 9x/ME are not pre-emptively multitasking,
6185 # you end up with a "frozen" computer, even though with patience
6186 # the test eventually succeeds (with a max line length of 256k).
6187 # Instead, let's just punt: use the minimum linelength reported by
6188 # all of the supported platforms: 8192 (on NT/2K/XP).
6189 lt_cv_sys_max_cmd_len=8192;
6192 amigaos*)
6193 # On AmigaOS with pdksh, this test takes hours, literally.
6194 # So we just punt and use a minimum line length of 8192.
6195 lt_cv_sys_max_cmd_len=8192;
6198 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6199 # This has been around since 386BSD, at least. Likely further.
6200 if test -x /sbin/sysctl; then
6201 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6202 elif test -x /usr/sbin/sysctl; then
6203 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6204 else
6205 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
6207 # And add a safety zone
6208 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6209 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6212 interix*)
6213 # We know the value 262144 and hardcode it with a safety zone (like BSD)
6214 lt_cv_sys_max_cmd_len=196608
6217 osf*)
6218 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6219 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6220 # nice to cause kernel panics so lets avoid the loop below.
6221 # First set a reasonable default.
6222 lt_cv_sys_max_cmd_len=16384
6224 if test -x /sbin/sysconfig; then
6225 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6226 *1*) lt_cv_sys_max_cmd_len=-1 ;;
6227 esac
6230 sco3.2v5*)
6231 lt_cv_sys_max_cmd_len=102400
6233 sysv5* | sco5v6* | sysv4.2uw2*)
6234 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6235 if test -n "$kargmax"; then
6236 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
6237 else
6238 lt_cv_sys_max_cmd_len=32768
6242 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
6243 if test -n "$lt_cv_sys_max_cmd_len"; then
6244 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6245 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6246 else
6247 # Make teststring a little bigger before we do anything with it.
6248 # a 1K string should be a reasonable start.
6249 for i in 1 2 3 4 5 6 7 8 ; do
6250 teststring=$teststring$teststring
6251 done
6252 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6253 # If test is not a shell built-in, we'll probably end up computing a
6254 # maximum length that is only half of the actual maximum length, but
6255 # we can't tell.
6256 while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
6257 = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
6258 test $i != 17 # 1/2 MB should be enough
6260 i=`expr $i + 1`
6261 teststring=$teststring$teststring
6262 done
6263 # Only check the string length outside the loop.
6264 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
6265 teststring=
6266 # Add a significant safety factor because C++ compilers can tack on
6267 # massive amounts of additional arguments before passing them to the
6268 # linker. It appears as though 1/2 is a usable value.
6269 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6272 esac
6276 if test -n $lt_cv_sys_max_cmd_len ; then
6277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
6278 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
6279 else
6280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
6281 $as_echo "none" >&6; }
6283 max_cmd_len=$lt_cv_sys_max_cmd_len
6290 : ${CP="cp -f"}
6291 : ${MV="mv -f"}
6292 : ${RM="rm -f"}
6294 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
6295 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
6296 # Try some XSI features
6297 xsi_shell=no
6298 ( _lt_dummy="a/b/c"
6299 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
6300 = c,a/b,, \
6301 && eval 'test $(( 1 + 1 )) -eq 2 \
6302 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
6303 && xsi_shell=yes
6304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
6305 $as_echo "$xsi_shell" >&6; }
6308 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
6309 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
6310 lt_shell_append=no
6311 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
6312 >/dev/null 2>&1 \
6313 && lt_shell_append=yes
6314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
6315 $as_echo "$lt_shell_append" >&6; }
6318 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
6319 lt_unset=unset
6320 else
6321 lt_unset=false
6328 # test EBCDIC or ASCII
6329 case `echo X|tr X '\101'` in
6330 A) # ASCII based system
6331 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
6332 lt_SP2NL='tr \040 \012'
6333 lt_NL2SP='tr \015\012 \040\040'
6335 *) # EBCDIC based system
6336 lt_SP2NL='tr \100 \n'
6337 lt_NL2SP='tr \r\n \100\100'
6339 esac
6349 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
6350 $as_echo_n "checking for $LD option to reload object files... " >&6; }
6351 if test "${lt_cv_ld_reload_flag+set}" = set; then :
6352 $as_echo_n "(cached) " >&6
6353 else
6354 lt_cv_ld_reload_flag='-r'
6356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
6357 $as_echo "$lt_cv_ld_reload_flag" >&6; }
6358 reload_flag=$lt_cv_ld_reload_flag
6359 case $reload_flag in
6360 "" | " "*) ;;
6361 *) reload_flag=" $reload_flag" ;;
6362 esac
6363 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6364 case $host_os in
6365 darwin*)
6366 if test "$GCC" = yes; then
6367 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
6368 else
6369 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6372 esac
6382 if test -n "$ac_tool_prefix"; then
6383 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
6384 set dummy ${ac_tool_prefix}objdump; ac_word=$2
6385 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6386 $as_echo_n "checking for $ac_word... " >&6; }
6387 if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
6388 $as_echo_n "(cached) " >&6
6389 else
6390 if test -n "$OBJDUMP"; then
6391 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
6392 else
6393 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6394 for as_dir in $PATH
6396 IFS=$as_save_IFS
6397 test -z "$as_dir" && as_dir=.
6398 for ac_exec_ext in '' $ac_executable_extensions; do
6399 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6400 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
6401 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6402 break 2
6404 done
6405 done
6406 IFS=$as_save_IFS
6410 OBJDUMP=$ac_cv_prog_OBJDUMP
6411 if test -n "$OBJDUMP"; then
6412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
6413 $as_echo "$OBJDUMP" >&6; }
6414 else
6415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6416 $as_echo "no" >&6; }
6421 if test -z "$ac_cv_prog_OBJDUMP"; then
6422 ac_ct_OBJDUMP=$OBJDUMP
6423 # Extract the first word of "objdump", so it can be a program name with args.
6424 set dummy objdump; ac_word=$2
6425 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6426 $as_echo_n "checking for $ac_word... " >&6; }
6427 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
6428 $as_echo_n "(cached) " >&6
6429 else
6430 if test -n "$ac_ct_OBJDUMP"; then
6431 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
6432 else
6433 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6434 for as_dir in $PATH
6436 IFS=$as_save_IFS
6437 test -z "$as_dir" && as_dir=.
6438 for ac_exec_ext in '' $ac_executable_extensions; do
6439 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6440 ac_cv_prog_ac_ct_OBJDUMP="objdump"
6441 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6442 break 2
6444 done
6445 done
6446 IFS=$as_save_IFS
6450 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6451 if test -n "$ac_ct_OBJDUMP"; then
6452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
6453 $as_echo "$ac_ct_OBJDUMP" >&6; }
6454 else
6455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6456 $as_echo "no" >&6; }
6459 if test "x$ac_ct_OBJDUMP" = x; then
6460 OBJDUMP="false"
6461 else
6462 case $cross_compiling:$ac_tool_warned in
6463 yes:)
6464 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6465 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6466 ac_tool_warned=yes ;;
6467 esac
6468 OBJDUMP=$ac_ct_OBJDUMP
6470 else
6471 OBJDUMP="$ac_cv_prog_OBJDUMP"
6474 test -z "$OBJDUMP" && OBJDUMP=objdump
6484 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
6485 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
6486 if test "${lt_cv_deplibs_check_method+set}" = set; then :
6487 $as_echo_n "(cached) " >&6
6488 else
6489 lt_cv_file_magic_cmd='$MAGIC_CMD'
6490 lt_cv_file_magic_test_file=
6491 lt_cv_deplibs_check_method='unknown'
6492 # Need to set the preceding variable on all platforms that support
6493 # interlibrary dependencies.
6494 # 'none' -- dependencies not supported.
6495 # `unknown' -- same as none, but documents that we really don't know.
6496 # 'pass_all' -- all dependencies passed with no checks.
6497 # 'test_compile' -- check by making test program.
6498 # 'file_magic [[regex]]' -- check by looking for files in library path
6499 # which responds to the $file_magic_cmd with a given extended regex.
6500 # If you have `file' or equivalent on your system and you're not sure
6501 # whether `pass_all' will *always* work, you probably want this one.
6503 case $host_os in
6504 aix[4-9]*)
6505 lt_cv_deplibs_check_method=pass_all
6508 beos*)
6509 lt_cv_deplibs_check_method=pass_all
6512 bsdi[45]*)
6513 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6514 lt_cv_file_magic_cmd='/usr/bin/file -L'
6515 lt_cv_file_magic_test_file=/shlib/libc.so
6518 cygwin*)
6519 # func_win32_libid is a shell function defined in ltmain.sh
6520 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6521 lt_cv_file_magic_cmd='func_win32_libid'
6524 mingw* | pw32*)
6525 # Base MSYS/MinGW do not provide the 'file' command needed by
6526 # func_win32_libid shell function, so use a weaker test based on 'objdump',
6527 # unless we find 'file', for example because we are cross-compiling.
6528 if ( file / ) >/dev/null 2>&1; then
6529 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6530 lt_cv_file_magic_cmd='func_win32_libid'
6531 else
6532 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
6533 lt_cv_file_magic_cmd='$OBJDUMP -f'
6537 cegcc)
6538 # use the weaker test based on 'objdump'. See mingw*.
6539 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
6540 lt_cv_file_magic_cmd='$OBJDUMP -f'
6543 darwin* | rhapsody*)
6544 lt_cv_deplibs_check_method=pass_all
6547 freebsd* | dragonfly*)
6548 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6549 case $host_cpu in
6550 i*86 )
6551 # Not sure whether the presence of OpenBSD here was a mistake.
6552 # Let's accept both of them until this is cleared up.
6553 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6554 lt_cv_file_magic_cmd=/usr/bin/file
6555 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6557 esac
6558 else
6559 lt_cv_deplibs_check_method=pass_all
6563 gnu*)
6564 lt_cv_deplibs_check_method=pass_all
6567 hpux10.20* | hpux11*)
6568 lt_cv_file_magic_cmd=/usr/bin/file
6569 case $host_cpu in
6570 ia64*)
6571 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6572 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6574 hppa*64*)
6575 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]'
6576 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6579 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
6580 lt_cv_file_magic_test_file=/usr/lib/libc.sl
6582 esac
6585 interix[3-9]*)
6586 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6587 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6590 irix5* | irix6* | nonstopux*)
6591 case $LD in
6592 *-32|*"-32 ") libmagic=32-bit;;
6593 *-n32|*"-n32 ") libmagic=N32;;
6594 *-64|*"-64 ") libmagic=64-bit;;
6595 *) libmagic=never-match;;
6596 esac
6597 lt_cv_deplibs_check_method=pass_all
6600 # This must be Linux ELF.
6601 linux* | k*bsd*-gnu | kopensolaris*-gnu)
6602 lt_cv_deplibs_check_method=pass_all
6605 netbsd*)
6606 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6607 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6608 else
6609 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6613 newos6*)
6614 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6615 lt_cv_file_magic_cmd=/usr/bin/file
6616 lt_cv_file_magic_test_file=/usr/lib/libnls.so
6619 *nto* | *qnx*)
6620 lt_cv_deplibs_check_method=pass_all
6623 openbsd*)
6624 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6625 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6626 else
6627 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6631 osf3* | osf4* | osf5*)
6632 lt_cv_deplibs_check_method=pass_all
6635 rdos*)
6636 lt_cv_deplibs_check_method=pass_all
6639 solaris*)
6640 lt_cv_deplibs_check_method=pass_all
6643 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6644 lt_cv_deplibs_check_method=pass_all
6647 sysv4 | sysv4.3*)
6648 case $host_vendor in
6649 motorola)
6650 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]'
6651 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6653 ncr)
6654 lt_cv_deplibs_check_method=pass_all
6656 sequent)
6657 lt_cv_file_magic_cmd='/bin/file'
6658 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6660 sni)
6661 lt_cv_file_magic_cmd='/bin/file'
6662 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6663 lt_cv_file_magic_test_file=/lib/libc.so
6665 siemens)
6666 lt_cv_deplibs_check_method=pass_all
6669 lt_cv_deplibs_check_method=pass_all
6671 esac
6674 tpf*)
6675 lt_cv_deplibs_check_method=pass_all
6677 esac
6680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
6681 $as_echo "$lt_cv_deplibs_check_method" >&6; }
6682 file_magic_cmd=$lt_cv_file_magic_cmd
6683 deplibs_check_method=$lt_cv_deplibs_check_method
6684 test -z "$deplibs_check_method" && deplibs_check_method=unknown
6697 if test -n "$ac_tool_prefix"; then
6698 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6699 set dummy ${ac_tool_prefix}ar; ac_word=$2
6700 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6701 $as_echo_n "checking for $ac_word... " >&6; }
6702 if test "${ac_cv_prog_AR+set}" = set; then :
6703 $as_echo_n "(cached) " >&6
6704 else
6705 if test -n "$AR"; then
6706 ac_cv_prog_AR="$AR" # Let the user override the test.
6707 else
6708 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6709 for as_dir in $PATH
6711 IFS=$as_save_IFS
6712 test -z "$as_dir" && as_dir=.
6713 for ac_exec_ext in '' $ac_executable_extensions; do
6714 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6715 ac_cv_prog_AR="${ac_tool_prefix}ar"
6716 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6717 break 2
6719 done
6720 done
6721 IFS=$as_save_IFS
6725 AR=$ac_cv_prog_AR
6726 if test -n "$AR"; then
6727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6728 $as_echo "$AR" >&6; }
6729 else
6730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6731 $as_echo "no" >&6; }
6736 if test -z "$ac_cv_prog_AR"; then
6737 ac_ct_AR=$AR
6738 # Extract the first word of "ar", so it can be a program name with args.
6739 set dummy ar; ac_word=$2
6740 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6741 $as_echo_n "checking for $ac_word... " >&6; }
6742 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
6743 $as_echo_n "(cached) " >&6
6744 else
6745 if test -n "$ac_ct_AR"; then
6746 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6747 else
6748 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6749 for as_dir in $PATH
6751 IFS=$as_save_IFS
6752 test -z "$as_dir" && as_dir=.
6753 for ac_exec_ext in '' $ac_executable_extensions; do
6754 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6755 ac_cv_prog_ac_ct_AR="ar"
6756 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6757 break 2
6759 done
6760 done
6761 IFS=$as_save_IFS
6765 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6766 if test -n "$ac_ct_AR"; then
6767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6768 $as_echo "$ac_ct_AR" >&6; }
6769 else
6770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6771 $as_echo "no" >&6; }
6774 if test "x$ac_ct_AR" = x; then
6775 AR="false"
6776 else
6777 case $cross_compiling:$ac_tool_warned in
6778 yes:)
6779 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6780 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6781 ac_tool_warned=yes ;;
6782 esac
6783 AR=$ac_ct_AR
6785 else
6786 AR="$ac_cv_prog_AR"
6789 test -z "$AR" && AR=ar
6790 test -z "$AR_FLAGS" && AR_FLAGS=cru
6802 if test -n "$ac_tool_prefix"; then
6803 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6804 set dummy ${ac_tool_prefix}strip; ac_word=$2
6805 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6806 $as_echo_n "checking for $ac_word... " >&6; }
6807 if test "${ac_cv_prog_STRIP+set}" = set; then :
6808 $as_echo_n "(cached) " >&6
6809 else
6810 if test -n "$STRIP"; then
6811 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6812 else
6813 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6814 for as_dir in $PATH
6816 IFS=$as_save_IFS
6817 test -z "$as_dir" && as_dir=.
6818 for ac_exec_ext in '' $ac_executable_extensions; do
6819 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6820 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6821 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6822 break 2
6824 done
6825 done
6826 IFS=$as_save_IFS
6830 STRIP=$ac_cv_prog_STRIP
6831 if test -n "$STRIP"; then
6832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6833 $as_echo "$STRIP" >&6; }
6834 else
6835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6836 $as_echo "no" >&6; }
6841 if test -z "$ac_cv_prog_STRIP"; then
6842 ac_ct_STRIP=$STRIP
6843 # Extract the first word of "strip", so it can be a program name with args.
6844 set dummy strip; ac_word=$2
6845 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6846 $as_echo_n "checking for $ac_word... " >&6; }
6847 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
6848 $as_echo_n "(cached) " >&6
6849 else
6850 if test -n "$ac_ct_STRIP"; then
6851 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6852 else
6853 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6854 for as_dir in $PATH
6856 IFS=$as_save_IFS
6857 test -z "$as_dir" && as_dir=.
6858 for ac_exec_ext in '' $ac_executable_extensions; do
6859 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6860 ac_cv_prog_ac_ct_STRIP="strip"
6861 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6862 break 2
6864 done
6865 done
6866 IFS=$as_save_IFS
6870 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6871 if test -n "$ac_ct_STRIP"; then
6872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6873 $as_echo "$ac_ct_STRIP" >&6; }
6874 else
6875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6876 $as_echo "no" >&6; }
6879 if test "x$ac_ct_STRIP" = x; then
6880 STRIP=":"
6881 else
6882 case $cross_compiling:$ac_tool_warned in
6883 yes:)
6884 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6885 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6886 ac_tool_warned=yes ;;
6887 esac
6888 STRIP=$ac_ct_STRIP
6890 else
6891 STRIP="$ac_cv_prog_STRIP"
6894 test -z "$STRIP" && STRIP=:
6901 if test -n "$ac_tool_prefix"; then
6902 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6903 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6904 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6905 $as_echo_n "checking for $ac_word... " >&6; }
6906 if test "${ac_cv_prog_RANLIB+set}" = set; then :
6907 $as_echo_n "(cached) " >&6
6908 else
6909 if test -n "$RANLIB"; then
6910 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6911 else
6912 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6913 for as_dir in $PATH
6915 IFS=$as_save_IFS
6916 test -z "$as_dir" && as_dir=.
6917 for ac_exec_ext in '' $ac_executable_extensions; do
6918 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6919 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6920 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6921 break 2
6923 done
6924 done
6925 IFS=$as_save_IFS
6929 RANLIB=$ac_cv_prog_RANLIB
6930 if test -n "$RANLIB"; then
6931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6932 $as_echo "$RANLIB" >&6; }
6933 else
6934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6935 $as_echo "no" >&6; }
6940 if test -z "$ac_cv_prog_RANLIB"; then
6941 ac_ct_RANLIB=$RANLIB
6942 # Extract the first word of "ranlib", so it can be a program name with args.
6943 set dummy ranlib; ac_word=$2
6944 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6945 $as_echo_n "checking for $ac_word... " >&6; }
6946 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
6947 $as_echo_n "(cached) " >&6
6948 else
6949 if test -n "$ac_ct_RANLIB"; then
6950 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6951 else
6952 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6953 for as_dir in $PATH
6955 IFS=$as_save_IFS
6956 test -z "$as_dir" && as_dir=.
6957 for ac_exec_ext in '' $ac_executable_extensions; do
6958 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6959 ac_cv_prog_ac_ct_RANLIB="ranlib"
6960 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6961 break 2
6963 done
6964 done
6965 IFS=$as_save_IFS
6969 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6970 if test -n "$ac_ct_RANLIB"; then
6971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6972 $as_echo "$ac_ct_RANLIB" >&6; }
6973 else
6974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6975 $as_echo "no" >&6; }
6978 if test "x$ac_ct_RANLIB" = x; then
6979 RANLIB=":"
6980 else
6981 case $cross_compiling:$ac_tool_warned in
6982 yes:)
6983 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6984 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6985 ac_tool_warned=yes ;;
6986 esac
6987 RANLIB=$ac_ct_RANLIB
6989 else
6990 RANLIB="$ac_cv_prog_RANLIB"
6993 test -z "$RANLIB" && RANLIB=:
7000 # Determine commands to create old-style static archives.
7001 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
7002 old_postinstall_cmds='chmod 644 $oldlib'
7003 old_postuninstall_cmds=
7005 if test -n "$RANLIB"; then
7006 case $host_os in
7007 openbsd*)
7008 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
7011 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
7013 esac
7014 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
7050 # If no C compiler was specified, use CC.
7051 LTCC=${LTCC-"$CC"}
7053 # If no C compiler flags were specified, use CFLAGS.
7054 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7056 # Allow CC to be a program name with arguments.
7057 compiler=$CC
7060 # Check for command to grab the raw symbol name followed by C symbol from nm.
7061 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
7062 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
7063 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
7064 $as_echo_n "(cached) " >&6
7065 else
7067 # These are sane defaults that work on at least a few old systems.
7068 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
7070 # Character class describing NM global symbol codes.
7071 symcode='[BCDEGRST]'
7073 # Regexp to match symbols that can be accessed directly from C.
7074 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
7076 # Define system-specific variables.
7077 case $host_os in
7078 aix*)
7079 symcode='[BCDT]'
7081 cygwin* | mingw* | pw32* | cegcc*)
7082 symcode='[ABCDGISTW]'
7084 hpux*)
7085 if test "$host_cpu" = ia64; then
7086 symcode='[ABCDEGRST]'
7089 irix* | nonstopux*)
7090 symcode='[BCDEGRST]'
7092 osf*)
7093 symcode='[BCDEGQRST]'
7095 solaris*)
7096 symcode='[BDRT]'
7098 sco3.2v5*)
7099 symcode='[DT]'
7101 sysv4.2uw2*)
7102 symcode='[DT]'
7104 sysv5* | sco5v6* | unixware* | OpenUNIX*)
7105 symcode='[ABDT]'
7107 sysv4)
7108 symcode='[DFNSTU]'
7110 esac
7112 # If we're using GNU nm, then use its standard symbol codes.
7113 case `$NM -V 2>&1` in
7114 *GNU* | *'with BFD'*)
7115 symcode='[ABCDGIRSTW]' ;;
7116 esac
7118 # Transform an extracted symbol line into a proper C declaration.
7119 # Some systems (esp. on ia64) link data and code symbols differently,
7120 # so use this general approach.
7121 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7123 # Transform an extracted symbol line into symbol name and symbol address
7124 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
7125 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'"
7127 # Handle CRLF in mingw tool chain
7128 opt_cr=
7129 case $build_os in
7130 mingw*)
7131 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7133 esac
7135 # Try without a prefix underscore, then with it.
7136 for ac_symprfx in "" "_"; do
7138 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7139 symxfrm="\\1 $ac_symprfx\\2 \\2"
7141 # Write the raw and C identifiers.
7142 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7143 # Fake it for dumpbin and say T for any non-static function
7144 # and D for any global variable.
7145 # Also find C++ and __fastcall symbols from MSVC++,
7146 # which start with @ or ?.
7147 lt_cv_sys_global_symbol_pipe="$AWK '"\
7148 " {last_section=section; section=\$ 3};"\
7149 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
7150 " \$ 0!~/External *\|/{next};"\
7151 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
7152 " {if(hide[section]) next};"\
7153 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
7154 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
7155 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
7156 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
7157 " ' prfx=^$ac_symprfx"
7158 else
7159 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7162 # Check to see that the pipe works correctly.
7163 pipe_works=no
7165 rm -f conftest*
7166 cat > conftest.$ac_ext <<_LT_EOF
7167 #ifdef __cplusplus
7168 extern "C" {
7169 #endif
7170 char nm_test_var;
7171 void nm_test_func(void);
7172 void nm_test_func(void){}
7173 #ifdef __cplusplus
7175 #endif
7176 int main(){nm_test_var='a';nm_test_func();return(0);}
7177 _LT_EOF
7179 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7180 (eval $ac_compile) 2>&5
7181 ac_status=$?
7182 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7183 test $ac_status = 0; }; then
7184 # Now try to grab the symbols.
7185 nlist=conftest.nm
7186 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\""; } >&5
7187 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
7188 ac_status=$?
7189 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7190 test $ac_status = 0; } && test -s "$nlist"; then
7191 # Try sorting and uniquifying the output.
7192 if sort "$nlist" | uniq > "$nlist"T; then
7193 mv -f "$nlist"T "$nlist"
7194 else
7195 rm -f "$nlist"T
7198 # Make sure that we snagged all the symbols we need.
7199 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
7200 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
7201 cat <<_LT_EOF > conftest.$ac_ext
7202 #ifdef __cplusplus
7203 extern "C" {
7204 #endif
7206 _LT_EOF
7207 # Now generate the symbol file.
7208 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
7210 cat <<_LT_EOF >> conftest.$ac_ext
7212 /* The mapping between symbol names and symbols. */
7213 const struct {
7214 const char *name;
7215 void *address;
7217 lt__PROGRAM__LTX_preloaded_symbols[] =
7219 { "@PROGRAM@", (void *) 0 },
7220 _LT_EOF
7221 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
7222 cat <<\_LT_EOF >> conftest.$ac_ext
7223 {0, (void *) 0}
7226 /* This works around a problem in FreeBSD linker */
7227 #ifdef FREEBSD_WORKAROUND
7228 static const void *lt_preloaded_setup() {
7229 return lt__PROGRAM__LTX_preloaded_symbols;
7231 #endif
7233 #ifdef __cplusplus
7235 #endif
7236 _LT_EOF
7237 # Now try linking the two files.
7238 mv conftest.$ac_objext conftstm.$ac_objext
7239 lt_save_LIBS="$LIBS"
7240 lt_save_CFLAGS="$CFLAGS"
7241 LIBS="conftstm.$ac_objext"
7242 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7243 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
7244 (eval $ac_link) 2>&5
7245 ac_status=$?
7246 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7247 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
7248 pipe_works=yes
7250 LIBS="$lt_save_LIBS"
7251 CFLAGS="$lt_save_CFLAGS"
7252 else
7253 echo "cannot find nm_test_func in $nlist" >&5
7255 else
7256 echo "cannot find nm_test_var in $nlist" >&5
7258 else
7259 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7261 else
7262 echo "$progname: failed program was:" >&5
7263 cat conftest.$ac_ext >&5
7265 rm -rf conftest* conftst*
7267 # Do not use the global_symbol_pipe unless it works.
7268 if test "$pipe_works" = yes; then
7269 break
7270 else
7271 lt_cv_sys_global_symbol_pipe=
7273 done
7277 if test -z "$lt_cv_sys_global_symbol_pipe"; then
7278 lt_cv_sys_global_symbol_to_cdecl=
7280 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
7282 $as_echo "failed" >&6; }
7283 else
7284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
7285 $as_echo "ok" >&6; }
7309 # Check whether --enable-libtool-lock was given.
7310 if test "${enable_libtool_lock+set}" = set; then :
7311 enableval=$enable_libtool_lock;
7314 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7316 # Some flags need to be propagated to the compiler or linker for good
7317 # libtool support.
7318 case $host in
7319 ia64-*-hpux*)
7320 # Find out which ABI we are using.
7321 echo 'int i;' > conftest.$ac_ext
7322 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7323 (eval $ac_compile) 2>&5
7324 ac_status=$?
7325 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7326 test $ac_status = 0; }; then
7327 case `/usr/bin/file conftest.$ac_objext` in
7328 *ELF-32*)
7329 HPUX_IA64_MODE="32"
7331 *ELF-64*)
7332 HPUX_IA64_MODE="64"
7334 esac
7336 rm -rf conftest*
7338 *-*-irix6*)
7339 # Find out which ABI we are using.
7340 echo '#line 7340 "configure"' > conftest.$ac_ext
7341 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7342 (eval $ac_compile) 2>&5
7343 ac_status=$?
7344 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7345 test $ac_status = 0; }; then
7346 if test "$lt_cv_prog_gnu_ld" = yes; then
7347 case `/usr/bin/file conftest.$ac_objext` in
7348 *32-bit*)
7349 LD="${LD-ld} -melf32bsmip"
7351 *N32*)
7352 LD="${LD-ld} -melf32bmipn32"
7354 *64-bit*)
7355 LD="${LD-ld} -melf64bmip"
7357 esac
7358 else
7359 case `/usr/bin/file conftest.$ac_objext` in
7360 *32-bit*)
7361 LD="${LD-ld} -32"
7363 *N32*)
7364 LD="${LD-ld} -n32"
7366 *64-bit*)
7367 LD="${LD-ld} -64"
7369 esac
7372 rm -rf conftest*
7375 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
7376 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
7377 # Find out which ABI we are using.
7378 echo 'int i;' > conftest.$ac_ext
7379 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7380 (eval $ac_compile) 2>&5
7381 ac_status=$?
7382 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7383 test $ac_status = 0; }; then
7384 case `/usr/bin/file conftest.o` in
7385 *32-bit*)
7386 case $host in
7387 x86_64-*kfreebsd*-gnu)
7388 LD="${LD-ld} -m elf_i386_fbsd"
7390 x86_64-*linux*)
7391 LD="${LD-ld} -m elf_i386"
7393 ppc64-*linux*|powerpc64-*linux*)
7394 LD="${LD-ld} -m elf32ppclinux"
7396 s390x-*linux*)
7397 LD="${LD-ld} -m elf_s390"
7399 sparc64-*linux*)
7400 LD="${LD-ld} -m elf32_sparc"
7402 esac
7404 *64-bit*)
7405 case $host in
7406 x86_64-*kfreebsd*-gnu)
7407 LD="${LD-ld} -m elf_x86_64_fbsd"
7409 x86_64-*linux*)
7410 LD="${LD-ld} -m elf_x86_64"
7412 ppc*-*linux*|powerpc*-*linux*)
7413 LD="${LD-ld} -m elf64ppc"
7415 s390*-*linux*|s390*-*tpf*)
7416 LD="${LD-ld} -m elf64_s390"
7418 sparc*-*linux*)
7419 LD="${LD-ld} -m elf64_sparc"
7421 esac
7423 esac
7425 rm -rf conftest*
7428 *-*-sco3.2v5*)
7429 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7430 SAVE_CFLAGS="$CFLAGS"
7431 CFLAGS="$CFLAGS -belf"
7432 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
7433 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
7434 if test "${lt_cv_cc_needs_belf+set}" = set; then :
7435 $as_echo_n "(cached) " >&6
7436 else
7437 ac_ext=c
7438 ac_cpp='$CPP $CPPFLAGS'
7439 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7440 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7441 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7443 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7444 /* end confdefs.h. */
7447 main ()
7451 return 0;
7453 _ACEOF
7454 if ac_fn_c_try_link "$LINENO"; then :
7455 lt_cv_cc_needs_belf=yes
7456 else
7457 lt_cv_cc_needs_belf=no
7459 rm -f core conftest.err conftest.$ac_objext \
7460 conftest$ac_exeext conftest.$ac_ext
7461 ac_ext=c
7462 ac_cpp='$CPP $CPPFLAGS'
7463 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7464 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7465 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
7469 $as_echo "$lt_cv_cc_needs_belf" >&6; }
7470 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
7471 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7472 CFLAGS="$SAVE_CFLAGS"
7475 sparc*-*solaris*)
7476 # Find out which ABI we are using.
7477 echo 'int i;' > conftest.$ac_ext
7478 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7479 (eval $ac_compile) 2>&5
7480 ac_status=$?
7481 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7482 test $ac_status = 0; }; then
7483 case `/usr/bin/file conftest.o` in
7484 *64-bit*)
7485 case $lt_cv_prog_gnu_ld in
7486 yes*) LD="${LD-ld} -m elf64_sparc" ;;
7488 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7489 LD="${LD-ld} -64"
7492 esac
7494 esac
7496 rm -rf conftest*
7498 esac
7500 need_locks="$enable_libtool_lock"
7503 case $host_os in
7504 rhapsody* | darwin*)
7505 if test -n "$ac_tool_prefix"; then
7506 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7507 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7508 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7509 $as_echo_n "checking for $ac_word... " >&6; }
7510 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
7511 $as_echo_n "(cached) " >&6
7512 else
7513 if test -n "$DSYMUTIL"; then
7514 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7515 else
7516 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7517 for as_dir in $PATH
7519 IFS=$as_save_IFS
7520 test -z "$as_dir" && as_dir=.
7521 for ac_exec_ext in '' $ac_executable_extensions; do
7522 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7523 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7524 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7525 break 2
7527 done
7528 done
7529 IFS=$as_save_IFS
7533 DSYMUTIL=$ac_cv_prog_DSYMUTIL
7534 if test -n "$DSYMUTIL"; then
7535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
7536 $as_echo "$DSYMUTIL" >&6; }
7537 else
7538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7539 $as_echo "no" >&6; }
7544 if test -z "$ac_cv_prog_DSYMUTIL"; then
7545 ac_ct_DSYMUTIL=$DSYMUTIL
7546 # Extract the first word of "dsymutil", so it can be a program name with args.
7547 set dummy dsymutil; ac_word=$2
7548 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7549 $as_echo_n "checking for $ac_word... " >&6; }
7550 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
7551 $as_echo_n "(cached) " >&6
7552 else
7553 if test -n "$ac_ct_DSYMUTIL"; then
7554 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7555 else
7556 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7557 for as_dir in $PATH
7559 IFS=$as_save_IFS
7560 test -z "$as_dir" && as_dir=.
7561 for ac_exec_ext in '' $ac_executable_extensions; do
7562 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7563 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7564 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7565 break 2
7567 done
7568 done
7569 IFS=$as_save_IFS
7573 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7574 if test -n "$ac_ct_DSYMUTIL"; then
7575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
7576 $as_echo "$ac_ct_DSYMUTIL" >&6; }
7577 else
7578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7579 $as_echo "no" >&6; }
7582 if test "x$ac_ct_DSYMUTIL" = x; then
7583 DSYMUTIL=":"
7584 else
7585 case $cross_compiling:$ac_tool_warned in
7586 yes:)
7587 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7588 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7589 ac_tool_warned=yes ;;
7590 esac
7591 DSYMUTIL=$ac_ct_DSYMUTIL
7593 else
7594 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7597 if test -n "$ac_tool_prefix"; then
7598 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7599 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7600 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7601 $as_echo_n "checking for $ac_word... " >&6; }
7602 if test "${ac_cv_prog_NMEDIT+set}" = set; then :
7603 $as_echo_n "(cached) " >&6
7604 else
7605 if test -n "$NMEDIT"; then
7606 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7607 else
7608 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7609 for as_dir in $PATH
7611 IFS=$as_save_IFS
7612 test -z "$as_dir" && as_dir=.
7613 for ac_exec_ext in '' $ac_executable_extensions; do
7614 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7615 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7616 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7617 break 2
7619 done
7620 done
7621 IFS=$as_save_IFS
7625 NMEDIT=$ac_cv_prog_NMEDIT
7626 if test -n "$NMEDIT"; then
7627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
7628 $as_echo "$NMEDIT" >&6; }
7629 else
7630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7631 $as_echo "no" >&6; }
7636 if test -z "$ac_cv_prog_NMEDIT"; then
7637 ac_ct_NMEDIT=$NMEDIT
7638 # Extract the first word of "nmedit", so it can be a program name with args.
7639 set dummy nmedit; ac_word=$2
7640 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7641 $as_echo_n "checking for $ac_word... " >&6; }
7642 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
7643 $as_echo_n "(cached) " >&6
7644 else
7645 if test -n "$ac_ct_NMEDIT"; then
7646 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7647 else
7648 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7649 for as_dir in $PATH
7651 IFS=$as_save_IFS
7652 test -z "$as_dir" && as_dir=.
7653 for ac_exec_ext in '' $ac_executable_extensions; do
7654 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7655 ac_cv_prog_ac_ct_NMEDIT="nmedit"
7656 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7657 break 2
7659 done
7660 done
7661 IFS=$as_save_IFS
7665 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7666 if test -n "$ac_ct_NMEDIT"; then
7667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7668 $as_echo "$ac_ct_NMEDIT" >&6; }
7669 else
7670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7671 $as_echo "no" >&6; }
7674 if test "x$ac_ct_NMEDIT" = x; then
7675 NMEDIT=":"
7676 else
7677 case $cross_compiling:$ac_tool_warned in
7678 yes:)
7679 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7680 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7681 ac_tool_warned=yes ;;
7682 esac
7683 NMEDIT=$ac_ct_NMEDIT
7685 else
7686 NMEDIT="$ac_cv_prog_NMEDIT"
7689 if test -n "$ac_tool_prefix"; then
7690 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7691 set dummy ${ac_tool_prefix}lipo; ac_word=$2
7692 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7693 $as_echo_n "checking for $ac_word... " >&6; }
7694 if test "${ac_cv_prog_LIPO+set}" = set; then :
7695 $as_echo_n "(cached) " >&6
7696 else
7697 if test -n "$LIPO"; then
7698 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7699 else
7700 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7701 for as_dir in $PATH
7703 IFS=$as_save_IFS
7704 test -z "$as_dir" && as_dir=.
7705 for ac_exec_ext in '' $ac_executable_extensions; do
7706 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7707 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7708 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7709 break 2
7711 done
7712 done
7713 IFS=$as_save_IFS
7717 LIPO=$ac_cv_prog_LIPO
7718 if test -n "$LIPO"; then
7719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7720 $as_echo "$LIPO" >&6; }
7721 else
7722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7723 $as_echo "no" >&6; }
7728 if test -z "$ac_cv_prog_LIPO"; then
7729 ac_ct_LIPO=$LIPO
7730 # Extract the first word of "lipo", so it can be a program name with args.
7731 set dummy lipo; ac_word=$2
7732 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7733 $as_echo_n "checking for $ac_word... " >&6; }
7734 if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
7735 $as_echo_n "(cached) " >&6
7736 else
7737 if test -n "$ac_ct_LIPO"; then
7738 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7739 else
7740 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7741 for as_dir in $PATH
7743 IFS=$as_save_IFS
7744 test -z "$as_dir" && as_dir=.
7745 for ac_exec_ext in '' $ac_executable_extensions; do
7746 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7747 ac_cv_prog_ac_ct_LIPO="lipo"
7748 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7749 break 2
7751 done
7752 done
7753 IFS=$as_save_IFS
7757 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7758 if test -n "$ac_ct_LIPO"; then
7759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7760 $as_echo "$ac_ct_LIPO" >&6; }
7761 else
7762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7763 $as_echo "no" >&6; }
7766 if test "x$ac_ct_LIPO" = x; then
7767 LIPO=":"
7768 else
7769 case $cross_compiling:$ac_tool_warned in
7770 yes:)
7771 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7772 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7773 ac_tool_warned=yes ;;
7774 esac
7775 LIPO=$ac_ct_LIPO
7777 else
7778 LIPO="$ac_cv_prog_LIPO"
7781 if test -n "$ac_tool_prefix"; then
7782 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7783 set dummy ${ac_tool_prefix}otool; ac_word=$2
7784 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7785 $as_echo_n "checking for $ac_word... " >&6; }
7786 if test "${ac_cv_prog_OTOOL+set}" = set; then :
7787 $as_echo_n "(cached) " >&6
7788 else
7789 if test -n "$OTOOL"; then
7790 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7791 else
7792 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7793 for as_dir in $PATH
7795 IFS=$as_save_IFS
7796 test -z "$as_dir" && as_dir=.
7797 for ac_exec_ext in '' $ac_executable_extensions; do
7798 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7799 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7800 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7801 break 2
7803 done
7804 done
7805 IFS=$as_save_IFS
7809 OTOOL=$ac_cv_prog_OTOOL
7810 if test -n "$OTOOL"; then
7811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7812 $as_echo "$OTOOL" >&6; }
7813 else
7814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7815 $as_echo "no" >&6; }
7820 if test -z "$ac_cv_prog_OTOOL"; then
7821 ac_ct_OTOOL=$OTOOL
7822 # Extract the first word of "otool", so it can be a program name with args.
7823 set dummy otool; ac_word=$2
7824 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7825 $as_echo_n "checking for $ac_word... " >&6; }
7826 if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
7827 $as_echo_n "(cached) " >&6
7828 else
7829 if test -n "$ac_ct_OTOOL"; then
7830 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7831 else
7832 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7833 for as_dir in $PATH
7835 IFS=$as_save_IFS
7836 test -z "$as_dir" && as_dir=.
7837 for ac_exec_ext in '' $ac_executable_extensions; do
7838 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7839 ac_cv_prog_ac_ct_OTOOL="otool"
7840 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7841 break 2
7843 done
7844 done
7845 IFS=$as_save_IFS
7849 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7850 if test -n "$ac_ct_OTOOL"; then
7851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7852 $as_echo "$ac_ct_OTOOL" >&6; }
7853 else
7854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7855 $as_echo "no" >&6; }
7858 if test "x$ac_ct_OTOOL" = x; then
7859 OTOOL=":"
7860 else
7861 case $cross_compiling:$ac_tool_warned in
7862 yes:)
7863 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7864 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7865 ac_tool_warned=yes ;;
7866 esac
7867 OTOOL=$ac_ct_OTOOL
7869 else
7870 OTOOL="$ac_cv_prog_OTOOL"
7873 if test -n "$ac_tool_prefix"; then
7874 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7875 set dummy ${ac_tool_prefix}otool64; ac_word=$2
7876 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7877 $as_echo_n "checking for $ac_word... " >&6; }
7878 if test "${ac_cv_prog_OTOOL64+set}" = set; then :
7879 $as_echo_n "(cached) " >&6
7880 else
7881 if test -n "$OTOOL64"; then
7882 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7883 else
7884 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7885 for as_dir in $PATH
7887 IFS=$as_save_IFS
7888 test -z "$as_dir" && as_dir=.
7889 for ac_exec_ext in '' $ac_executable_extensions; do
7890 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7891 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7892 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7893 break 2
7895 done
7896 done
7897 IFS=$as_save_IFS
7901 OTOOL64=$ac_cv_prog_OTOOL64
7902 if test -n "$OTOOL64"; then
7903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
7904 $as_echo "$OTOOL64" >&6; }
7905 else
7906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7907 $as_echo "no" >&6; }
7912 if test -z "$ac_cv_prog_OTOOL64"; then
7913 ac_ct_OTOOL64=$OTOOL64
7914 # Extract the first word of "otool64", so it can be a program name with args.
7915 set dummy otool64; ac_word=$2
7916 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7917 $as_echo_n "checking for $ac_word... " >&6; }
7918 if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
7919 $as_echo_n "(cached) " >&6
7920 else
7921 if test -n "$ac_ct_OTOOL64"; then
7922 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7923 else
7924 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7925 for as_dir in $PATH
7927 IFS=$as_save_IFS
7928 test -z "$as_dir" && as_dir=.
7929 for ac_exec_ext in '' $ac_executable_extensions; do
7930 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7931 ac_cv_prog_ac_ct_OTOOL64="otool64"
7932 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7933 break 2
7935 done
7936 done
7937 IFS=$as_save_IFS
7941 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7942 if test -n "$ac_ct_OTOOL64"; then
7943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
7944 $as_echo "$ac_ct_OTOOL64" >&6; }
7945 else
7946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7947 $as_echo "no" >&6; }
7950 if test "x$ac_ct_OTOOL64" = x; then
7951 OTOOL64=":"
7952 else
7953 case $cross_compiling:$ac_tool_warned in
7954 yes:)
7955 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7956 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7957 ac_tool_warned=yes ;;
7958 esac
7959 OTOOL64=$ac_ct_OTOOL64
7961 else
7962 OTOOL64="$ac_cv_prog_OTOOL64"
7991 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7992 $as_echo_n "checking for -single_module linker flag... " >&6; }
7993 if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
7994 $as_echo_n "(cached) " >&6
7995 else
7996 lt_cv_apple_cc_single_mod=no
7997 if test -z "${LT_MULTI_MODULE}"; then
7998 # By default we will add the -single_module flag. You can override
7999 # by either setting the environment variable LT_MULTI_MODULE
8000 # non-empty at configure time, or by adding -multi_module to the
8001 # link flags.
8002 rm -rf libconftest.dylib*
8003 echo "int foo(void){return 1;}" > conftest.c
8004 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8005 -dynamiclib -Wl,-single_module conftest.c" >&5
8006 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8007 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
8008 _lt_result=$?
8009 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
8010 lt_cv_apple_cc_single_mod=yes
8011 else
8012 cat conftest.err >&5
8014 rm -rf libconftest.dylib*
8015 rm -f conftest.*
8018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
8019 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
8020 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
8021 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
8022 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
8023 $as_echo_n "(cached) " >&6
8024 else
8025 lt_cv_ld_exported_symbols_list=no
8026 save_LDFLAGS=$LDFLAGS
8027 echo "_main" > conftest.sym
8028 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
8029 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8030 /* end confdefs.h. */
8033 main ()
8037 return 0;
8039 _ACEOF
8040 if ac_fn_c_try_link "$LINENO"; then :
8041 lt_cv_ld_exported_symbols_list=yes
8042 else
8043 lt_cv_ld_exported_symbols_list=no
8045 rm -f core conftest.err conftest.$ac_objext \
8046 conftest$ac_exeext conftest.$ac_ext
8047 LDFLAGS="$save_LDFLAGS"
8050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
8051 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
8052 case $host_os in
8053 rhapsody* | darwin1.[012])
8054 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
8055 darwin1.*)
8056 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8057 darwin*) # darwin 5.x on
8058 # if running on 10.5 or later, the deployment target defaults
8059 # to the OS version, if on x86, and 10.4, the deployment
8060 # target defaults to 10.4. Don't you love it?
8061 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
8062 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
8063 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
8064 10.[012]*)
8065 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8066 10.*)
8067 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
8068 esac
8070 esac
8071 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
8072 _lt_dar_single_mod='$single_module'
8074 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
8075 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
8076 else
8077 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
8079 if test "$DSYMUTIL" != ":"; then
8080 _lt_dsymutil='~$DSYMUTIL $lib || :'
8081 else
8082 _lt_dsymutil=
8085 esac
8087 for ac_header in dlfcn.h
8088 do :
8089 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
8091 if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
8092 cat >>confdefs.h <<_ACEOF
8093 #define HAVE_DLFCN_H 1
8094 _ACEOF
8098 done
8102 # Set options
8106 enable_dlopen=no
8109 enable_win32_dll=no
8112 # Check whether --enable-shared was given.
8113 if test "${enable_shared+set}" = set; then :
8114 enableval=$enable_shared; p=${PACKAGE-default}
8115 case $enableval in
8116 yes) enable_shared=yes ;;
8117 no) enable_shared=no ;;
8119 enable_shared=no
8120 # Look at the argument we got. We use all the common list separators.
8121 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8122 for pkg in $enableval; do
8123 IFS="$lt_save_ifs"
8124 if test "X$pkg" = "X$p"; then
8125 enable_shared=yes
8127 done
8128 IFS="$lt_save_ifs"
8130 esac
8131 else
8132 enable_shared=yes
8143 # Check whether --enable-static was given.
8144 if test "${enable_static+set}" = set; then :
8145 enableval=$enable_static; p=${PACKAGE-default}
8146 case $enableval in
8147 yes) enable_static=yes ;;
8148 no) enable_static=no ;;
8150 enable_static=no
8151 # Look at the argument we got. We use all the common list separators.
8152 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8153 for pkg in $enableval; do
8154 IFS="$lt_save_ifs"
8155 if test "X$pkg" = "X$p"; then
8156 enable_static=yes
8158 done
8159 IFS="$lt_save_ifs"
8161 esac
8162 else
8163 enable_static=yes
8175 # Check whether --with-pic was given.
8176 if test "${with_pic+set}" = set; then :
8177 withval=$with_pic; pic_mode="$withval"
8178 else
8179 pic_mode=default
8183 test -z "$pic_mode" && pic_mode=default
8191 # Check whether --enable-fast-install was given.
8192 if test "${enable_fast_install+set}" = set; then :
8193 enableval=$enable_fast_install; p=${PACKAGE-default}
8194 case $enableval in
8195 yes) enable_fast_install=yes ;;
8196 no) enable_fast_install=no ;;
8198 enable_fast_install=no
8199 # Look at the argument we got. We use all the common list separators.
8200 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8201 for pkg in $enableval; do
8202 IFS="$lt_save_ifs"
8203 if test "X$pkg" = "X$p"; then
8204 enable_fast_install=yes
8206 done
8207 IFS="$lt_save_ifs"
8209 esac
8210 else
8211 enable_fast_install=yes
8224 # This can be used to rebuild libtool when needed
8225 LIBTOOL_DEPS="$ltmain"
8227 # Always use our own libtool.
8228 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8254 test -z "$LN_S" && LN_S="ln -s"
8269 if test -n "${ZSH_VERSION+set}" ; then
8270 setopt NO_GLOB_SUBST
8273 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8274 $as_echo_n "checking for objdir... " >&6; }
8275 if test "${lt_cv_objdir+set}" = set; then :
8276 $as_echo_n "(cached) " >&6
8277 else
8278 rm -f .libs 2>/dev/null
8279 mkdir .libs 2>/dev/null
8280 if test -d .libs; then
8281 lt_cv_objdir=.libs
8282 else
8283 # MS-DOS does not allow filenames that begin with a dot.
8284 lt_cv_objdir=_libs
8286 rmdir .libs 2>/dev/null
8288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8289 $as_echo "$lt_cv_objdir" >&6; }
8290 objdir=$lt_cv_objdir
8296 cat >>confdefs.h <<_ACEOF
8297 #define LT_OBJDIR "$lt_cv_objdir/"
8298 _ACEOF
8316 case $host_os in
8317 aix3*)
8318 # AIX sometimes has problems with the GCC collect2 program. For some
8319 # reason, if we set the COLLECT_NAMES environment variable, the problems
8320 # vanish in a puff of smoke.
8321 if test "X${COLLECT_NAMES+set}" != Xset; then
8322 COLLECT_NAMES=
8323 export COLLECT_NAMES
8326 esac
8328 # Sed substitution that helps us do robust quoting. It backslashifies
8329 # metacharacters that are still active within double-quoted strings.
8330 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
8332 # Same as above, but do not quote variable references.
8333 double_quote_subst='s/\(["`\\]\)/\\\1/g'
8335 # Sed substitution to delay expansion of an escaped shell variable in a
8336 # double_quote_subst'ed string.
8337 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
8339 # Sed substitution to delay expansion of an escaped single quote.
8340 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
8342 # Sed substitution to avoid accidental globbing in evaled expressions
8343 no_glob_subst='s/\*/\\\*/g'
8345 # Global variables:
8346 ofile=libtool
8347 can_build_shared=yes
8349 # All known linkers require a `.a' archive for static linking (except MSVC,
8350 # which needs '.lib').
8351 libext=a
8353 with_gnu_ld="$lt_cv_prog_gnu_ld"
8355 old_CC="$CC"
8356 old_CFLAGS="$CFLAGS"
8358 # Set sane defaults for various variables
8359 test -z "$CC" && CC=cc
8360 test -z "$LTCC" && LTCC=$CC
8361 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8362 test -z "$LD" && LD=ld
8363 test -z "$ac_objext" && ac_objext=o
8365 for cc_temp in $compiler""; do
8366 case $cc_temp in
8367 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8368 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8369 \-*) ;;
8370 *) break;;
8371 esac
8372 done
8373 cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
8376 # Only perform the check for file, if the check method requires it
8377 test -z "$MAGIC_CMD" && MAGIC_CMD=file
8378 case $deplibs_check_method in
8379 file_magic*)
8380 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8381 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8382 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
8383 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
8384 $as_echo_n "(cached) " >&6
8385 else
8386 case $MAGIC_CMD in
8387 [\\/*] | ?:[\\/]*)
8388 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8391 lt_save_MAGIC_CMD="$MAGIC_CMD"
8392 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8393 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8394 for ac_dir in $ac_dummy; do
8395 IFS="$lt_save_ifs"
8396 test -z "$ac_dir" && ac_dir=.
8397 if test -f $ac_dir/${ac_tool_prefix}file; then
8398 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8399 if test -n "$file_magic_test_file"; then
8400 case $deplibs_check_method in
8401 "file_magic "*)
8402 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8403 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8404 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8405 $EGREP "$file_magic_regex" > /dev/null; then
8407 else
8408 cat <<_LT_EOF 1>&2
8410 *** Warning: the command libtool uses to detect shared libraries,
8411 *** $file_magic_cmd, produces output that libtool cannot recognize.
8412 *** The result is that libtool may fail to recognize shared libraries
8413 *** as such. This will affect the creation of libtool libraries that
8414 *** depend on shared libraries, but programs linked with such libtool
8415 *** libraries will work regardless of this problem. Nevertheless, you
8416 *** may want to report the problem to your system manager and/or to
8417 *** bug-libtool@gnu.org
8419 _LT_EOF
8420 fi ;;
8421 esac
8423 break
8425 done
8426 IFS="$lt_save_ifs"
8427 MAGIC_CMD="$lt_save_MAGIC_CMD"
8429 esac
8432 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8433 if test -n "$MAGIC_CMD"; then
8434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8435 $as_echo "$MAGIC_CMD" >&6; }
8436 else
8437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8438 $as_echo "no" >&6; }
8445 if test -z "$lt_cv_path_MAGIC_CMD"; then
8446 if test -n "$ac_tool_prefix"; then
8447 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8448 $as_echo_n "checking for file... " >&6; }
8449 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
8450 $as_echo_n "(cached) " >&6
8451 else
8452 case $MAGIC_CMD in
8453 [\\/*] | ?:[\\/]*)
8454 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8457 lt_save_MAGIC_CMD="$MAGIC_CMD"
8458 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8459 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8460 for ac_dir in $ac_dummy; do
8461 IFS="$lt_save_ifs"
8462 test -z "$ac_dir" && ac_dir=.
8463 if test -f $ac_dir/file; then
8464 lt_cv_path_MAGIC_CMD="$ac_dir/file"
8465 if test -n "$file_magic_test_file"; then
8466 case $deplibs_check_method in
8467 "file_magic "*)
8468 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8469 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8470 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8471 $EGREP "$file_magic_regex" > /dev/null; then
8473 else
8474 cat <<_LT_EOF 1>&2
8476 *** Warning: the command libtool uses to detect shared libraries,
8477 *** $file_magic_cmd, produces output that libtool cannot recognize.
8478 *** The result is that libtool may fail to recognize shared libraries
8479 *** as such. This will affect the creation of libtool libraries that
8480 *** depend on shared libraries, but programs linked with such libtool
8481 *** libraries will work regardless of this problem. Nevertheless, you
8482 *** may want to report the problem to your system manager and/or to
8483 *** bug-libtool@gnu.org
8485 _LT_EOF
8486 fi ;;
8487 esac
8489 break
8491 done
8492 IFS="$lt_save_ifs"
8493 MAGIC_CMD="$lt_save_MAGIC_CMD"
8495 esac
8498 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8499 if test -n "$MAGIC_CMD"; then
8500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8501 $as_echo "$MAGIC_CMD" >&6; }
8502 else
8503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8504 $as_echo "no" >&6; }
8508 else
8509 MAGIC_CMD=:
8515 esac
8517 # Use C for the default configuration in the libtool script
8519 lt_save_CC="$CC"
8520 ac_ext=c
8521 ac_cpp='$CPP $CPPFLAGS'
8522 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8523 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8524 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8527 # Source file extension for C test sources.
8528 ac_ext=c
8530 # Object file extension for compiled C test sources.
8531 objext=o
8532 objext=$objext
8534 # Code to be used in simple compile tests
8535 lt_simple_compile_test_code="int some_variable = 0;"
8537 # Code to be used in simple link tests
8538 lt_simple_link_test_code='int main(){return(0);}'
8546 # If no C compiler was specified, use CC.
8547 LTCC=${LTCC-"$CC"}
8549 # If no C compiler flags were specified, use CFLAGS.
8550 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8552 # Allow CC to be a program name with arguments.
8553 compiler=$CC
8555 # Save the default compiler, since it gets overwritten when the other
8556 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8557 compiler_DEFAULT=$CC
8559 # save warnings/boilerplate of simple test code
8560 ac_outfile=conftest.$ac_objext
8561 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8562 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8563 _lt_compiler_boilerplate=`cat conftest.err`
8564 $RM conftest*
8566 ac_outfile=conftest.$ac_objext
8567 echo "$lt_simple_link_test_code" >conftest.$ac_ext
8568 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8569 _lt_linker_boilerplate=`cat conftest.err`
8570 $RM -r conftest*
8573 ## CAVEAT EMPTOR:
8574 ## There is no encapsulation within the following macros, do not change
8575 ## the running order or otherwise move them around unless you know exactly
8576 ## what you are doing...
8577 if test -n "$compiler"; then
8579 lt_prog_compiler_no_builtin_flag=
8581 if test "$GCC" = yes; then
8582 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
8584 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8585 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8586 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
8587 $as_echo_n "(cached) " >&6
8588 else
8589 lt_cv_prog_compiler_rtti_exceptions=no
8590 ac_outfile=conftest.$ac_objext
8591 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8592 lt_compiler_flag="-fno-rtti -fno-exceptions"
8593 # Insert the option either (1) after the last *FLAGS variable, or
8594 # (2) before a word containing "conftest.", or (3) at the end.
8595 # Note that $ac_compile itself does not contain backslashes and begins
8596 # with a dollar sign (not a hyphen), so the echo should work correctly.
8597 # The option is referenced via a variable to avoid confusing sed.
8598 lt_compile=`echo "$ac_compile" | $SED \
8599 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8600 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8601 -e 's:$: $lt_compiler_flag:'`
8602 (eval echo "\"\$as_me:8602: $lt_compile\"" >&5)
8603 (eval "$lt_compile" 2>conftest.err)
8604 ac_status=$?
8605 cat conftest.err >&5
8606 echo "$as_me:8606: \$? = $ac_status" >&5
8607 if (exit $ac_status) && test -s "$ac_outfile"; then
8608 # The compiler can only warn and ignore the option if not recognized
8609 # So say no if there are warnings other than the usual output.
8610 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
8611 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8612 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8613 lt_cv_prog_compiler_rtti_exceptions=yes
8616 $RM conftest*
8619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8620 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8622 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8623 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8624 else
8635 lt_prog_compiler_wl=
8636 lt_prog_compiler_pic=
8637 lt_prog_compiler_static=
8639 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8640 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8642 if test "$GCC" = yes; then
8643 lt_prog_compiler_wl='-Wl,'
8644 lt_prog_compiler_static='-static'
8646 case $host_os in
8647 aix*)
8648 # All AIX code is PIC.
8649 if test "$host_cpu" = ia64; then
8650 # AIX 5 now supports IA64 processor
8651 lt_prog_compiler_static='-Bstatic'
8655 amigaos*)
8656 case $host_cpu in
8657 powerpc)
8658 # see comment about AmigaOS4 .so support
8659 lt_prog_compiler_pic='-fPIC'
8661 m68k)
8662 # FIXME: we need at least 68020 code to build shared libraries, but
8663 # adding the `-m68020' flag to GCC prevents building anything better,
8664 # like `-m68040'.
8665 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8667 esac
8670 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8671 # PIC is the default for these OSes.
8674 mingw* | cygwin* | pw32* | os2* | cegcc*)
8675 # This hack is so that the source file can tell whether it is being
8676 # built for inclusion in a dll (and should export symbols for example).
8677 # Although the cygwin gcc ignores -fPIC, still need this for old-style
8678 # (--disable-auto-import) libraries
8679 lt_prog_compiler_pic='-DDLL_EXPORT'
8682 darwin* | rhapsody*)
8683 # PIC is the default on this platform
8684 # Common symbols not allowed in MH_DYLIB files
8685 lt_prog_compiler_pic='-fno-common'
8688 hpux*)
8689 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8690 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
8691 # sets the default TLS model and affects inlining.
8692 case $host_cpu in
8693 hppa*64*)
8694 # +Z the default
8697 lt_prog_compiler_pic='-fPIC'
8699 esac
8702 interix[3-9]*)
8703 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8704 # Instead, we relocate shared libraries at runtime.
8707 msdosdjgpp*)
8708 # Just because we use GCC doesn't mean we suddenly get shared libraries
8709 # on systems that don't support them.
8710 lt_prog_compiler_can_build_shared=no
8711 enable_shared=no
8714 *nto* | *qnx*)
8715 # QNX uses GNU C++, but need to define -shared option too, otherwise
8716 # it will coredump.
8717 lt_prog_compiler_pic='-fPIC -shared'
8720 sysv4*MP*)
8721 if test -d /usr/nec; then
8722 lt_prog_compiler_pic=-Kconform_pic
8727 lt_prog_compiler_pic='-fPIC'
8729 esac
8730 else
8731 # PORTME Check for flag to pass linker flags through the system compiler.
8732 case $host_os in
8733 aix*)
8734 lt_prog_compiler_wl='-Wl,'
8735 if test "$host_cpu" = ia64; then
8736 # AIX 5 now supports IA64 processor
8737 lt_prog_compiler_static='-Bstatic'
8738 else
8739 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8743 mingw* | cygwin* | pw32* | os2* | cegcc*)
8744 # This hack is so that the source file can tell whether it is being
8745 # built for inclusion in a dll (and should export symbols for example).
8746 lt_prog_compiler_pic='-DDLL_EXPORT'
8749 hpux9* | hpux10* | hpux11*)
8750 lt_prog_compiler_wl='-Wl,'
8751 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8752 # not for PA HP-UX.
8753 case $host_cpu in
8754 hppa*64*|ia64*)
8755 # +Z the default
8758 lt_prog_compiler_pic='+Z'
8760 esac
8761 # Is there a better lt_prog_compiler_static that works with the bundled CC?
8762 lt_prog_compiler_static='${wl}-a ${wl}archive'
8765 irix5* | irix6* | nonstopux*)
8766 lt_prog_compiler_wl='-Wl,'
8767 # PIC (with -KPIC) is the default.
8768 lt_prog_compiler_static='-non_shared'
8771 linux* | k*bsd*-gnu | kopensolaris*-gnu)
8772 case $cc_basename in
8773 # old Intel for x86_64 which still supported -KPIC.
8774 ecc*)
8775 lt_prog_compiler_wl='-Wl,'
8776 lt_prog_compiler_pic='-KPIC'
8777 lt_prog_compiler_static='-static'
8779 # icc used to be incompatible with GCC.
8780 # ICC 10 doesn't accept -KPIC any more.
8781 icc* | ifort*)
8782 lt_prog_compiler_wl='-Wl,'
8783 lt_prog_compiler_pic='-fPIC'
8784 lt_prog_compiler_static='-static'
8786 # Lahey Fortran 8.1.
8787 lf95*)
8788 lt_prog_compiler_wl='-Wl,'
8789 lt_prog_compiler_pic='--shared'
8790 lt_prog_compiler_static='--static'
8792 pgcc* | pgf77* | pgf90* | pgf95*)
8793 # Portland Group compilers (*not* the Pentium gcc compiler,
8794 # which looks to be a dead project)
8795 lt_prog_compiler_wl='-Wl,'
8796 lt_prog_compiler_pic='-fpic'
8797 lt_prog_compiler_static='-Bstatic'
8799 ccc*)
8800 lt_prog_compiler_wl='-Wl,'
8801 # All Alpha code is PIC.
8802 lt_prog_compiler_static='-non_shared'
8804 xl*)
8805 # IBM XL C 8.0/Fortran 10.1 on PPC
8806 lt_prog_compiler_wl='-Wl,'
8807 lt_prog_compiler_pic='-qpic'
8808 lt_prog_compiler_static='-qstaticlink'
8811 case `$CC -V 2>&1 | sed 5q` in
8812 *Sun\ C*)
8813 # Sun C 5.9
8814 lt_prog_compiler_pic='-KPIC'
8815 lt_prog_compiler_static='-Bstatic'
8816 lt_prog_compiler_wl='-Wl,'
8818 *Sun\ F*)
8819 # Sun Fortran 8.3 passes all unrecognized flags to the linker
8820 lt_prog_compiler_pic='-KPIC'
8821 lt_prog_compiler_static='-Bstatic'
8822 lt_prog_compiler_wl=''
8824 esac
8826 esac
8829 newsos6)
8830 lt_prog_compiler_pic='-KPIC'
8831 lt_prog_compiler_static='-Bstatic'
8834 *nto* | *qnx*)
8835 # QNX uses GNU C++, but need to define -shared option too, otherwise
8836 # it will coredump.
8837 lt_prog_compiler_pic='-fPIC -shared'
8840 osf3* | osf4* | osf5*)
8841 lt_prog_compiler_wl='-Wl,'
8842 # All OSF/1 code is PIC.
8843 lt_prog_compiler_static='-non_shared'
8846 rdos*)
8847 lt_prog_compiler_static='-non_shared'
8850 solaris*)
8851 lt_prog_compiler_pic='-KPIC'
8852 lt_prog_compiler_static='-Bstatic'
8853 case $cc_basename in
8854 f77* | f90* | f95*)
8855 lt_prog_compiler_wl='-Qoption ld ';;
8857 lt_prog_compiler_wl='-Wl,';;
8858 esac
8861 sunos4*)
8862 lt_prog_compiler_wl='-Qoption ld '
8863 lt_prog_compiler_pic='-PIC'
8864 lt_prog_compiler_static='-Bstatic'
8867 sysv4 | sysv4.2uw2* | sysv4.3*)
8868 lt_prog_compiler_wl='-Wl,'
8869 lt_prog_compiler_pic='-KPIC'
8870 lt_prog_compiler_static='-Bstatic'
8873 sysv4*MP*)
8874 if test -d /usr/nec ;then
8875 lt_prog_compiler_pic='-Kconform_pic'
8876 lt_prog_compiler_static='-Bstatic'
8880 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8881 lt_prog_compiler_wl='-Wl,'
8882 lt_prog_compiler_pic='-KPIC'
8883 lt_prog_compiler_static='-Bstatic'
8886 unicos*)
8887 lt_prog_compiler_wl='-Wl,'
8888 lt_prog_compiler_can_build_shared=no
8891 uts4*)
8892 lt_prog_compiler_pic='-pic'
8893 lt_prog_compiler_static='-Bstatic'
8897 lt_prog_compiler_can_build_shared=no
8899 esac
8902 case $host_os in
8903 # For platforms which do not support PIC, -DPIC is meaningless:
8904 *djgpp*)
8905 lt_prog_compiler_pic=
8908 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8910 esac
8911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
8912 $as_echo "$lt_prog_compiler_pic" >&6; }
8920 # Check to make sure the PIC flag actually works.
8922 if test -n "$lt_prog_compiler_pic"; then
8923 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8924 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8925 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
8926 $as_echo_n "(cached) " >&6
8927 else
8928 lt_cv_prog_compiler_pic_works=no
8929 ac_outfile=conftest.$ac_objext
8930 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8931 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8932 # Insert the option either (1) after the last *FLAGS variable, or
8933 # (2) before a word containing "conftest.", or (3) at the end.
8934 # Note that $ac_compile itself does not contain backslashes and begins
8935 # with a dollar sign (not a hyphen), so the echo should work correctly.
8936 # The option is referenced via a variable to avoid confusing sed.
8937 lt_compile=`echo "$ac_compile" | $SED \
8938 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8939 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8940 -e 's:$: $lt_compiler_flag:'`
8941 (eval echo "\"\$as_me:8941: $lt_compile\"" >&5)
8942 (eval "$lt_compile" 2>conftest.err)
8943 ac_status=$?
8944 cat conftest.err >&5
8945 echo "$as_me:8945: \$? = $ac_status" >&5
8946 if (exit $ac_status) && test -s "$ac_outfile"; then
8947 # The compiler can only warn and ignore the option if not recognized
8948 # So say no if there are warnings other than the usual output.
8949 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
8950 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8951 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8952 lt_cv_prog_compiler_pic_works=yes
8955 $RM conftest*
8958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8959 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8961 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
8962 case $lt_prog_compiler_pic in
8963 "" | " "*) ;;
8964 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8965 esac
8966 else
8967 lt_prog_compiler_pic=
8968 lt_prog_compiler_can_build_shared=no
8979 # Check to make sure the static flag actually works.
8981 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8982 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8983 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8984 if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
8985 $as_echo_n "(cached) " >&6
8986 else
8987 lt_cv_prog_compiler_static_works=no
8988 save_LDFLAGS="$LDFLAGS"
8989 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8990 echo "$lt_simple_link_test_code" > conftest.$ac_ext
8991 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8992 # The linker can only warn and ignore the option if not recognized
8993 # So say no if there are warnings
8994 if test -s conftest.err; then
8995 # Append any errors to the config.log.
8996 cat conftest.err 1>&5
8997 $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
8998 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8999 if diff conftest.exp conftest.er2 >/dev/null; then
9000 lt_cv_prog_compiler_static_works=yes
9002 else
9003 lt_cv_prog_compiler_static_works=yes
9006 $RM -r conftest*
9007 LDFLAGS="$save_LDFLAGS"
9010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
9011 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
9013 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
9015 else
9016 lt_prog_compiler_static=
9025 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9026 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9027 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
9028 $as_echo_n "(cached) " >&6
9029 else
9030 lt_cv_prog_compiler_c_o=no
9031 $RM -r conftest 2>/dev/null
9032 mkdir conftest
9033 cd conftest
9034 mkdir out
9035 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9037 lt_compiler_flag="-o out/conftest2.$ac_objext"
9038 # Insert the option either (1) after the last *FLAGS variable, or
9039 # (2) before a word containing "conftest.", or (3) at the end.
9040 # Note that $ac_compile itself does not contain backslashes and begins
9041 # with a dollar sign (not a hyphen), so the echo should work correctly.
9042 lt_compile=`echo "$ac_compile" | $SED \
9043 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9044 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9045 -e 's:$: $lt_compiler_flag:'`
9046 (eval echo "\"\$as_me:9046: $lt_compile\"" >&5)
9047 (eval "$lt_compile" 2>out/conftest.err)
9048 ac_status=$?
9049 cat out/conftest.err >&5
9050 echo "$as_me:9050: \$? = $ac_status" >&5
9051 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9052 then
9053 # The compiler can only warn and ignore the option if not recognized
9054 # So say no if there are warnings
9055 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
9056 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9057 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9058 lt_cv_prog_compiler_c_o=yes
9061 chmod u+w . 2>&5
9062 $RM conftest*
9063 # SGI C++ compiler will create directory out/ii_files/ for
9064 # template instantiation
9065 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9066 $RM out/* && rmdir out
9067 cd ..
9068 $RM -r conftest
9069 $RM conftest*
9072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9073 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9080 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9081 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9082 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
9083 $as_echo_n "(cached) " >&6
9084 else
9085 lt_cv_prog_compiler_c_o=no
9086 $RM -r conftest 2>/dev/null
9087 mkdir conftest
9088 cd conftest
9089 mkdir out
9090 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9092 lt_compiler_flag="-o out/conftest2.$ac_objext"
9093 # Insert the option either (1) after the last *FLAGS variable, or
9094 # (2) before a word containing "conftest.", or (3) at the end.
9095 # Note that $ac_compile itself does not contain backslashes and begins
9096 # with a dollar sign (not a hyphen), so the echo should work correctly.
9097 lt_compile=`echo "$ac_compile" | $SED \
9098 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9099 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9100 -e 's:$: $lt_compiler_flag:'`
9101 (eval echo "\"\$as_me:9101: $lt_compile\"" >&5)
9102 (eval "$lt_compile" 2>out/conftest.err)
9103 ac_status=$?
9104 cat out/conftest.err >&5
9105 echo "$as_me:9105: \$? = $ac_status" >&5
9106 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9107 then
9108 # The compiler can only warn and ignore the option if not recognized
9109 # So say no if there are warnings
9110 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
9111 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9112 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9113 lt_cv_prog_compiler_c_o=yes
9116 chmod u+w . 2>&5
9117 $RM conftest*
9118 # SGI C++ compiler will create directory out/ii_files/ for
9119 # template instantiation
9120 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9121 $RM out/* && rmdir out
9122 cd ..
9123 $RM -r conftest
9124 $RM conftest*
9127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9128 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9133 hard_links="nottested"
9134 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
9135 # do not overwrite the value of need_locks provided by the user
9136 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
9137 $as_echo_n "checking if we can lock with hard links... " >&6; }
9138 hard_links=yes
9139 $RM conftest*
9140 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9141 touch conftest.a
9142 ln conftest.a conftest.b 2>&5 || hard_links=no
9143 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
9145 $as_echo "$hard_links" >&6; }
9146 if test "$hard_links" = no; then
9147 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
9148 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
9149 need_locks=warn
9151 else
9152 need_locks=no
9160 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9161 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
9163 runpath_var=
9164 allow_undefined_flag=
9165 always_export_symbols=no
9166 archive_cmds=
9167 archive_expsym_cmds=
9168 compiler_needs_object=no
9169 enable_shared_with_static_runtimes=no
9170 export_dynamic_flag_spec=
9171 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9172 hardcode_automatic=no
9173 hardcode_direct=no
9174 hardcode_direct_absolute=no
9175 hardcode_libdir_flag_spec=
9176 hardcode_libdir_flag_spec_ld=
9177 hardcode_libdir_separator=
9178 hardcode_minus_L=no
9179 hardcode_shlibpath_var=unsupported
9180 inherit_rpath=no
9181 link_all_deplibs=unknown
9182 module_cmds=
9183 module_expsym_cmds=
9184 old_archive_from_new_cmds=
9185 old_archive_from_expsyms_cmds=
9186 thread_safe_flag_spec=
9187 whole_archive_flag_spec=
9188 # include_expsyms should be a list of space-separated symbols to be *always*
9189 # included in the symbol list
9190 include_expsyms=
9191 # exclude_expsyms can be an extended regexp of symbols to exclude
9192 # it will be wrapped by ` (' and `)$', so one must not match beginning or
9193 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
9194 # as well as any symbol that contains `d'.
9195 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9196 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9197 # platforms (ab)use it in PIC code, but their linkers get confused if
9198 # the symbol is explicitly referenced. Since portable code cannot
9199 # rely on this symbol name, it's probably fine to never include it in
9200 # preloaded symbol tables.
9201 # Exclude shared library initialization/finalization symbols.
9202 extract_expsyms_cmds=
9204 case $host_os in
9205 cygwin* | mingw* | pw32* | cegcc*)
9206 # FIXME: the MSVC++ port hasn't been tested in a loooong time
9207 # When not using gcc, we currently assume that we are using
9208 # Microsoft Visual C++.
9209 if test "$GCC" != yes; then
9210 with_gnu_ld=no
9213 interix*)
9214 # we just hope/assume this is gcc and not c89 (= MSVC++)
9215 with_gnu_ld=yes
9217 openbsd*)
9218 with_gnu_ld=no
9220 esac
9222 ld_shlibs=yes
9223 if test "$with_gnu_ld" = yes; then
9224 # If archive_cmds runs LD, not CC, wlarc should be empty
9225 wlarc='${wl}'
9227 # Set some defaults for GNU ld with shared library support. These
9228 # are reset later if shared libraries are not supported. Putting them
9229 # here allows them to be overridden if necessary.
9230 runpath_var=LD_RUN_PATH
9231 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9232 export_dynamic_flag_spec='${wl}--export-dynamic'
9233 # ancient GNU ld didn't support --whole-archive et. al.
9234 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9235 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9236 else
9237 whole_archive_flag_spec=
9239 supports_anon_versioning=no
9240 case `$LD -v 2>&1` in
9241 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9242 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9243 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9244 *\ 2.11.*) ;; # other 2.11 versions
9245 *) supports_anon_versioning=yes ;;
9246 esac
9248 # See if GNU ld supports shared libraries.
9249 case $host_os in
9250 aix[3-9]*)
9251 # On AIX/PPC, the GNU linker is very broken
9252 if test "$host_cpu" != ia64; then
9253 ld_shlibs=no
9254 cat <<_LT_EOF 1>&2
9256 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
9257 *** to be unable to reliably create shared libraries on AIX.
9258 *** Therefore, libtool is disabling shared libraries support. If you
9259 *** really care for shared libraries, you may want to modify your PATH
9260 *** so that a non-GNU linker is found, and then restart.
9262 _LT_EOF
9266 amigaos*)
9267 case $host_cpu in
9268 powerpc)
9269 # see comment about AmigaOS4 .so support
9270 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9271 archive_expsym_cmds=''
9273 m68k)
9274 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)'
9275 hardcode_libdir_flag_spec='-L$libdir'
9276 hardcode_minus_L=yes
9278 esac
9281 beos*)
9282 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9283 allow_undefined_flag=unsupported
9284 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9285 # support --undefined. This deserves some investigation. FIXME
9286 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9287 else
9288 ld_shlibs=no
9292 cygwin* | mingw* | pw32* | cegcc*)
9293 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9294 # as there is no search path for DLLs.
9295 hardcode_libdir_flag_spec='-L$libdir'
9296 allow_undefined_flag=unsupported
9297 always_export_symbols=no
9298 enable_shared_with_static_runtimes=yes
9299 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9301 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9302 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9303 # If the export-symbols file already is a .def file (1st line
9304 # is EXPORTS), use it as is; otherwise, prepend...
9305 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9306 cp $export_symbols $output_objdir/$soname.def;
9307 else
9308 echo EXPORTS > $output_objdir/$soname.def;
9309 cat $export_symbols >> $output_objdir/$soname.def;
9311 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9312 else
9313 ld_shlibs=no
9317 interix[3-9]*)
9318 hardcode_direct=no
9319 hardcode_shlibpath_var=no
9320 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9321 export_dynamic_flag_spec='${wl}-E'
9322 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9323 # Instead, shared libraries are loaded at an image base (0x10000000 by
9324 # default) and relocated if they conflict, which is a slow very memory
9325 # consuming and fragmenting process. To avoid this, we pick a random,
9326 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9327 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
9328 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9329 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'
9332 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
9333 tmp_diet=no
9334 if test "$host_os" = linux-dietlibc; then
9335 case $cc_basename in
9336 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
9337 esac
9339 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9340 && test "$tmp_diet" = no
9341 then
9342 tmp_addflag=
9343 tmp_sharedflag='-shared'
9344 case $cc_basename,$host_cpu in
9345 pgcc*) # Portland Group C compiler
9346 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'
9347 tmp_addflag=' $pic_flag'
9349 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
9350 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'
9351 tmp_addflag=' $pic_flag -Mnomain' ;;
9352 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
9353 tmp_addflag=' -i_dynamic' ;;
9354 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
9355 tmp_addflag=' -i_dynamic -nofor_main' ;;
9356 ifc* | ifort*) # Intel Fortran compiler
9357 tmp_addflag=' -nofor_main' ;;
9358 lf95*) # Lahey Fortran 8.1
9359 whole_archive_flag_spec=
9360 tmp_sharedflag='--shared' ;;
9361 xl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
9362 tmp_sharedflag='-qmkshrobj'
9363 tmp_addflag= ;;
9364 esac
9365 case `$CC -V 2>&1 | sed 5q` in
9366 *Sun\ C*) # Sun C 5.9
9367 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'
9368 compiler_needs_object=yes
9369 tmp_sharedflag='-G' ;;
9370 *Sun\ F*) # Sun Fortran 8.3
9371 tmp_sharedflag='-G' ;;
9372 esac
9373 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9375 if test "x$supports_anon_versioning" = xyes; then
9376 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9377 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9378 echo "local: *; };" >> $output_objdir/$libname.ver~
9379 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9382 case $cc_basename in
9383 xlf*)
9384 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9385 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9386 hardcode_libdir_flag_spec=
9387 hardcode_libdir_flag_spec_ld='-rpath $libdir'
9388 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
9389 if test "x$supports_anon_versioning" = xyes; then
9390 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9391 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9392 echo "local: *; };" >> $output_objdir/$libname.ver~
9393 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9396 esac
9397 else
9398 ld_shlibs=no
9402 netbsd*)
9403 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9404 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9405 wlarc=
9406 else
9407 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9408 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9412 solaris*)
9413 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9414 ld_shlibs=no
9415 cat <<_LT_EOF 1>&2
9417 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
9418 *** create shared libraries on Solaris systems. Therefore, libtool
9419 *** is disabling shared libraries support. We urge you to upgrade GNU
9420 *** binutils to release 2.9.1 or newer. Another option is to modify
9421 *** your PATH or compiler configuration so that the native linker is
9422 *** used, and then restart.
9424 _LT_EOF
9425 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9426 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9427 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9428 else
9429 ld_shlibs=no
9433 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9434 case `$LD -v 2>&1` in
9435 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9436 ld_shlibs=no
9437 cat <<_LT_EOF 1>&2
9439 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9440 *** reliably create shared libraries on SCO systems. Therefore, libtool
9441 *** is disabling shared libraries support. We urge you to upgrade GNU
9442 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
9443 *** your PATH or compiler configuration so that the native linker is
9444 *** used, and then restart.
9446 _LT_EOF
9449 # For security reasons, it is highly recommended that you always
9450 # use absolute paths for naming shared libraries, and exclude the
9451 # DT_RUNPATH tag from executables and libraries. But doing so
9452 # requires that you compile everything twice, which is a pain.
9453 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9454 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9455 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9456 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9457 else
9458 ld_shlibs=no
9461 esac
9464 sunos4*)
9465 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9466 wlarc=
9467 hardcode_direct=yes
9468 hardcode_shlibpath_var=no
9472 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9473 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9474 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9475 else
9476 ld_shlibs=no
9479 esac
9481 if test "$ld_shlibs" = no; then
9482 runpath_var=
9483 hardcode_libdir_flag_spec=
9484 export_dynamic_flag_spec=
9485 whole_archive_flag_spec=
9487 else
9488 # PORTME fill in a description of your system's linker (not GNU ld)
9489 case $host_os in
9490 aix3*)
9491 allow_undefined_flag=unsupported
9492 always_export_symbols=yes
9493 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'
9494 # Note: this linker hardcodes the directories in LIBPATH if there
9495 # are no directories specified by -L.
9496 hardcode_minus_L=yes
9497 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9498 # Neither direct hardcoding nor static linking is supported with a
9499 # broken collect2.
9500 hardcode_direct=unsupported
9504 aix[4-9]*)
9505 if test "$host_cpu" = ia64; then
9506 # On IA64, the linker does run time linking by default, so we don't
9507 # have to do anything special.
9508 aix_use_runtimelinking=no
9509 exp_sym_flag='-Bexport'
9510 no_entry_flag=""
9511 else
9512 # If we're using GNU nm, then we don't want the "-C" option.
9513 # -C means demangle to AIX nm, but means don't demangle with GNU nm
9514 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9515 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'
9516 else
9517 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'
9519 aix_use_runtimelinking=no
9521 # Test if we are trying to use run time linking or normal
9522 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9523 # need to do runtime linking.
9524 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9525 for ld_flag in $LDFLAGS; do
9526 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9527 aix_use_runtimelinking=yes
9528 break
9530 done
9532 esac
9534 exp_sym_flag='-bexport'
9535 no_entry_flag='-bnoentry'
9538 # When large executables or shared objects are built, AIX ld can
9539 # have problems creating the table of contents. If linking a library
9540 # or program results in "error TOC overflow" add -mminimal-toc to
9541 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9542 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9544 archive_cmds=''
9545 hardcode_direct=yes
9546 hardcode_direct_absolute=yes
9547 hardcode_libdir_separator=':'
9548 link_all_deplibs=yes
9549 file_list_spec='${wl}-f,'
9551 if test "$GCC" = yes; then
9552 case $host_os in aix4.[012]|aix4.[012].*)
9553 # We only want to do this on AIX 4.2 and lower, the check
9554 # below for broken collect2 doesn't work under 4.3+
9555 collect2name=`${CC} -print-prog-name=collect2`
9556 if test -f "$collect2name" &&
9557 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9558 then
9559 # We have reworked collect2
9561 else
9562 # We have old collect2
9563 hardcode_direct=unsupported
9564 # It fails to find uninstalled libraries when the uninstalled
9565 # path is not listed in the libpath. Setting hardcode_minus_L
9566 # to unsupported forces relinking
9567 hardcode_minus_L=yes
9568 hardcode_libdir_flag_spec='-L$libdir'
9569 hardcode_libdir_separator=
9572 esac
9573 shared_flag='-shared'
9574 if test "$aix_use_runtimelinking" = yes; then
9575 shared_flag="$shared_flag "'${wl}-G'
9577 else
9578 # not using gcc
9579 if test "$host_cpu" = ia64; then
9580 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9581 # chokes on -Wl,-G. The following line is correct:
9582 shared_flag='-G'
9583 else
9584 if test "$aix_use_runtimelinking" = yes; then
9585 shared_flag='${wl}-G'
9586 else
9587 shared_flag='${wl}-bM:SRE'
9592 export_dynamic_flag_spec='${wl}-bexpall'
9593 # It seems that -bexpall does not export symbols beginning with
9594 # underscore (_), so it is better to generate a list of symbols to export.
9595 always_export_symbols=yes
9596 if test "$aix_use_runtimelinking" = yes; then
9597 # Warning - without using the other runtime loading flags (-brtl),
9598 # -berok will link without error, but may produce a broken library.
9599 allow_undefined_flag='-berok'
9600 # Determine the default libpath from the value encoded in an
9601 # empty executable.
9602 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9603 /* end confdefs.h. */
9606 main ()
9610 return 0;
9612 _ACEOF
9613 if ac_fn_c_try_link "$LINENO"; then :
9615 lt_aix_libpath_sed='
9616 /Import File Strings/,/^$/ {
9617 /^0/ {
9618 s/^0 *\(.*\)$/\1/
9622 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9623 # Check for a 64-bit object if we didn't find anything.
9624 if test -z "$aix_libpath"; then
9625 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9628 rm -f core conftest.err conftest.$ac_objext \
9629 conftest$ac_exeext conftest.$ac_ext
9630 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9632 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9633 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"
9634 else
9635 if test "$host_cpu" = ia64; then
9636 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9637 allow_undefined_flag="-z nodefs"
9638 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"
9639 else
9640 # Determine the default libpath from the value encoded in an
9641 # empty executable.
9642 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9643 /* end confdefs.h. */
9646 main ()
9650 return 0;
9652 _ACEOF
9653 if ac_fn_c_try_link "$LINENO"; then :
9655 lt_aix_libpath_sed='
9656 /Import File Strings/,/^$/ {
9657 /^0/ {
9658 s/^0 *\(.*\)$/\1/
9662 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9663 # Check for a 64-bit object if we didn't find anything.
9664 if test -z "$aix_libpath"; then
9665 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9668 rm -f core conftest.err conftest.$ac_objext \
9669 conftest$ac_exeext conftest.$ac_ext
9670 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9672 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9673 # Warning - without using the other run time loading flags,
9674 # -berok will link without error, but may produce a broken library.
9675 no_undefined_flag=' ${wl}-bernotok'
9676 allow_undefined_flag=' ${wl}-berok'
9677 # Exported symbols can be pulled into shared objects from archives
9678 whole_archive_flag_spec='$convenience'
9679 archive_cmds_need_lc=yes
9680 # This is similar to how AIX traditionally builds its shared libraries.
9681 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'
9686 amigaos*)
9687 case $host_cpu in
9688 powerpc)
9689 # see comment about AmigaOS4 .so support
9690 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9691 archive_expsym_cmds=''
9693 m68k)
9694 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)'
9695 hardcode_libdir_flag_spec='-L$libdir'
9696 hardcode_minus_L=yes
9698 esac
9701 bsdi[45]*)
9702 export_dynamic_flag_spec=-rdynamic
9705 cygwin* | mingw* | pw32* | cegcc*)
9706 # When not using gcc, we currently assume that we are using
9707 # Microsoft Visual C++.
9708 # hardcode_libdir_flag_spec is actually meaningless, as there is
9709 # no search path for DLLs.
9710 hardcode_libdir_flag_spec=' '
9711 allow_undefined_flag=unsupported
9712 # Tell ltmain to make .lib files, not .a files.
9713 libext=lib
9714 # Tell ltmain to make .dll files, not .so files.
9715 shrext_cmds=".dll"
9716 # FIXME: Setting linknames here is a bad hack.
9717 archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
9718 # The linker will automatically build a .lib file if we build a DLL.
9719 old_archive_from_new_cmds='true'
9720 # FIXME: Should let the user specify the lib program.
9721 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9722 fix_srcfile_path='`cygpath -w "$srcfile"`'
9723 enable_shared_with_static_runtimes=yes
9726 darwin* | rhapsody*)
9729 archive_cmds_need_lc=no
9730 hardcode_direct=no
9731 hardcode_automatic=yes
9732 hardcode_shlibpath_var=unsupported
9733 whole_archive_flag_spec=''
9734 link_all_deplibs=yes
9735 allow_undefined_flag="$_lt_dar_allow_undefined"
9736 case $cc_basename in
9737 ifort*) _lt_dar_can_shared=yes ;;
9738 *) _lt_dar_can_shared=$GCC ;;
9739 esac
9740 if test "$_lt_dar_can_shared" = "yes"; then
9741 output_verbose_link_cmd=echo
9742 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9743 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9744 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}"
9745 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}"
9747 else
9748 ld_shlibs=no
9753 dgux*)
9754 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9755 hardcode_libdir_flag_spec='-L$libdir'
9756 hardcode_shlibpath_var=no
9759 freebsd1*)
9760 ld_shlibs=no
9763 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9764 # support. Future versions do this automatically, but an explicit c++rt0.o
9765 # does not break anything, and helps significantly (at the cost of a little
9766 # extra space).
9767 freebsd2.2*)
9768 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9769 hardcode_libdir_flag_spec='-R$libdir'
9770 hardcode_direct=yes
9771 hardcode_shlibpath_var=no
9774 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9775 freebsd2*)
9776 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9777 hardcode_direct=yes
9778 hardcode_minus_L=yes
9779 hardcode_shlibpath_var=no
9782 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9783 freebsd* | dragonfly*)
9784 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
9785 hardcode_libdir_flag_spec='-R$libdir'
9786 hardcode_direct=yes
9787 hardcode_shlibpath_var=no
9790 hpux9*)
9791 if test "$GCC" = yes; then
9792 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'
9793 else
9794 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'
9796 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9797 hardcode_libdir_separator=:
9798 hardcode_direct=yes
9800 # hardcode_minus_L: Not really in the search PATH,
9801 # but as the default location of the library.
9802 hardcode_minus_L=yes
9803 export_dynamic_flag_spec='${wl}-E'
9806 hpux10*)
9807 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
9808 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9809 else
9810 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9812 if test "$with_gnu_ld" = no; then
9813 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9814 hardcode_libdir_flag_spec_ld='+b $libdir'
9815 hardcode_libdir_separator=:
9816 hardcode_direct=yes
9817 hardcode_direct_absolute=yes
9818 export_dynamic_flag_spec='${wl}-E'
9819 # hardcode_minus_L: Not really in the search PATH,
9820 # but as the default location of the library.
9821 hardcode_minus_L=yes
9825 hpux11*)
9826 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
9827 case $host_cpu in
9828 hppa*64*)
9829 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9831 ia64*)
9832 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9835 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9837 esac
9838 else
9839 case $host_cpu in
9840 hppa*64*)
9841 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9843 ia64*)
9844 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9847 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9849 esac
9851 if test "$with_gnu_ld" = no; then
9852 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9853 hardcode_libdir_separator=:
9855 case $host_cpu in
9856 hppa*64*|ia64*)
9857 hardcode_direct=no
9858 hardcode_shlibpath_var=no
9861 hardcode_direct=yes
9862 hardcode_direct_absolute=yes
9863 export_dynamic_flag_spec='${wl}-E'
9865 # hardcode_minus_L: Not really in the search PATH,
9866 # but as the default location of the library.
9867 hardcode_minus_L=yes
9869 esac
9873 irix5* | irix6* | nonstopux*)
9874 if test "$GCC" = yes; then
9875 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'
9876 # Try to use the -exported_symbol ld option, if it does not
9877 # work, assume that -exports_file does not work either and
9878 # implicitly export all symbols.
9879 save_LDFLAGS="$LDFLAGS"
9880 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
9881 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9882 /* end confdefs.h. */
9883 int foo(void) {}
9884 _ACEOF
9885 if ac_fn_c_try_link "$LINENO"; then :
9886 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'
9889 rm -f core conftest.err conftest.$ac_objext \
9890 conftest$ac_exeext conftest.$ac_ext
9891 LDFLAGS="$save_LDFLAGS"
9892 else
9893 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'
9894 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'
9896 archive_cmds_need_lc='no'
9897 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9898 hardcode_libdir_separator=:
9899 inherit_rpath=yes
9900 link_all_deplibs=yes
9903 netbsd*)
9904 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9905 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
9906 else
9907 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
9909 hardcode_libdir_flag_spec='-R$libdir'
9910 hardcode_direct=yes
9911 hardcode_shlibpath_var=no
9914 newsos6)
9915 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9916 hardcode_direct=yes
9917 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9918 hardcode_libdir_separator=:
9919 hardcode_shlibpath_var=no
9922 *nto* | *qnx*)
9925 openbsd*)
9926 if test -f /usr/libexec/ld.so; then
9927 hardcode_direct=yes
9928 hardcode_shlibpath_var=no
9929 hardcode_direct_absolute=yes
9930 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9931 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9932 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9933 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9934 export_dynamic_flag_spec='${wl}-E'
9935 else
9936 case $host_os in
9937 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9938 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9939 hardcode_libdir_flag_spec='-R$libdir'
9942 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9943 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9945 esac
9947 else
9948 ld_shlibs=no
9952 os2*)
9953 hardcode_libdir_flag_spec='-L$libdir'
9954 hardcode_minus_L=yes
9955 allow_undefined_flag=unsupported
9956 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'
9957 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9960 osf3*)
9961 if test "$GCC" = yes; then
9962 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9963 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'
9964 else
9965 allow_undefined_flag=' -expect_unresolved \*'
9966 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'
9968 archive_cmds_need_lc='no'
9969 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9970 hardcode_libdir_separator=:
9973 osf4* | osf5*) # as osf3* with the addition of -msym flag
9974 if test "$GCC" = yes; then
9975 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9976 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'
9977 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9978 else
9979 allow_undefined_flag=' -expect_unresolved \*'
9980 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'
9981 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~
9982 $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'
9984 # Both c and cxx compiler support -rpath directly
9985 hardcode_libdir_flag_spec='-rpath $libdir'
9987 archive_cmds_need_lc='no'
9988 hardcode_libdir_separator=:
9991 solaris*)
9992 no_undefined_flag=' -z defs'
9993 if test "$GCC" = yes; then
9994 wlarc='${wl}'
9995 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9996 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9997 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9998 else
9999 case `$CC -V 2>&1` in
10000 *"Compilers 5.0"*)
10001 wlarc=''
10002 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
10003 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10004 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10007 wlarc='${wl}'
10008 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10009 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10010 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10012 esac
10014 hardcode_libdir_flag_spec='-R$libdir'
10015 hardcode_shlibpath_var=no
10016 case $host_os in
10017 solaris2.[0-5] | solaris2.[0-5].*) ;;
10019 # The compiler driver will combine and reorder linker options,
10020 # but understands `-z linker_flag'. GCC discards it without `$wl',
10021 # but is careful enough not to reorder.
10022 # Supported since Solaris 2.6 (maybe 2.5.1?)
10023 if test "$GCC" = yes; then
10024 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10025 else
10026 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10029 esac
10030 link_all_deplibs=yes
10033 sunos4*)
10034 if test "x$host_vendor" = xsequent; then
10035 # Use $CC to link under sequent, because it throws in some extra .o
10036 # files that make .init and .fini sections work.
10037 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10038 else
10039 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10041 hardcode_libdir_flag_spec='-L$libdir'
10042 hardcode_direct=yes
10043 hardcode_minus_L=yes
10044 hardcode_shlibpath_var=no
10047 sysv4)
10048 case $host_vendor in
10049 sni)
10050 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10051 hardcode_direct=yes # is this really true???
10053 siemens)
10054 ## LD is ld it makes a PLAMLIB
10055 ## CC just makes a GrossModule.
10056 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10057 reload_cmds='$CC -r -o $output$reload_objs'
10058 hardcode_direct=no
10060 motorola)
10061 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10062 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10064 esac
10065 runpath_var='LD_RUN_PATH'
10066 hardcode_shlibpath_var=no
10069 sysv4.3*)
10070 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10071 hardcode_shlibpath_var=no
10072 export_dynamic_flag_spec='-Bexport'
10075 sysv4*MP*)
10076 if test -d /usr/nec; then
10077 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10078 hardcode_shlibpath_var=no
10079 runpath_var=LD_RUN_PATH
10080 hardcode_runpath_var=yes
10081 ld_shlibs=yes
10085 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10086 no_undefined_flag='${wl}-z,text'
10087 archive_cmds_need_lc=no
10088 hardcode_shlibpath_var=no
10089 runpath_var='LD_RUN_PATH'
10091 if test "$GCC" = yes; then
10092 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10093 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10094 else
10095 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10096 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10100 sysv5* | sco3.2v5* | sco5v6*)
10101 # Note: We can NOT use -z defs as we might desire, because we do not
10102 # link with -lc, and that would cause any symbols used from libc to
10103 # always be unresolved, which means just about no library would
10104 # ever link correctly. If we're not using GNU ld we use -z text
10105 # though, which does catch some bad symbols but isn't as heavy-handed
10106 # as -z defs.
10107 no_undefined_flag='${wl}-z,text'
10108 allow_undefined_flag='${wl}-z,nodefs'
10109 archive_cmds_need_lc=no
10110 hardcode_shlibpath_var=no
10111 hardcode_libdir_flag_spec='${wl}-R,$libdir'
10112 hardcode_libdir_separator=':'
10113 link_all_deplibs=yes
10114 export_dynamic_flag_spec='${wl}-Bexport'
10115 runpath_var='LD_RUN_PATH'
10117 if test "$GCC" = yes; then
10118 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10119 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10120 else
10121 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10122 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10126 uts4*)
10127 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10128 hardcode_libdir_flag_spec='-L$libdir'
10129 hardcode_shlibpath_var=no
10133 ld_shlibs=no
10135 esac
10137 if test x$host_vendor = xsni; then
10138 case $host in
10139 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10140 export_dynamic_flag_spec='${wl}-Blargedynsym'
10142 esac
10146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10147 $as_echo "$ld_shlibs" >&6; }
10148 test "$ld_shlibs" = no && can_build_shared=no
10150 with_gnu_ld=$with_gnu_ld
10167 # Do we need to explicitly link libc?
10169 case "x$archive_cmds_need_lc" in
10170 x|xyes)
10171 # Assume -lc should be added
10172 archive_cmds_need_lc=yes
10174 if test "$enable_shared" = yes && test "$GCC" = yes; then
10175 case $archive_cmds in
10176 *'~'*)
10177 # FIXME: we may have to deal with multi-command sequences.
10179 '$CC '*)
10180 # Test whether the compiler implicitly links with -lc since on some
10181 # systems, -lgcc has to come before -lc. If gcc already passes -lc
10182 # to ld, don't add -lc before -lgcc.
10183 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10184 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
10185 if test "${lt_cv_archive_cmds_need_lc+set}" = set; then :
10186 $as_echo_n "(cached) " >&6
10187 else
10188 $RM conftest*
10189 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10191 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10192 (eval $ac_compile) 2>&5
10193 ac_status=$?
10194 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10195 test $ac_status = 0; } 2>conftest.err; then
10196 soname=conftest
10197 lib=conftest
10198 libobjs=conftest.$ac_objext
10199 deplibs=
10200 wl=$lt_prog_compiler_wl
10201 pic_flag=$lt_prog_compiler_pic
10202 compiler_flags=-v
10203 linker_flags=-v
10204 verstring=
10205 output_objdir=.
10206 libname=conftest
10207 lt_save_allow_undefined_flag=$allow_undefined_flag
10208 allow_undefined_flag=
10209 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
10210 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
10211 ac_status=$?
10212 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10213 test $ac_status = 0; }
10214 then
10215 lt_cv_archive_cmds_need_lc=no
10216 else
10217 lt_cv_archive_cmds_need_lc=yes
10219 allow_undefined_flag=$lt_save_allow_undefined_flag
10220 else
10221 cat conftest.err 1>&5
10223 $RM conftest*
10226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
10227 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
10228 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
10230 esac
10233 esac
10391 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10392 $as_echo_n "checking dynamic linker characteristics... " >&6; }
10394 if test "$GCC" = yes; then
10395 case $host_os in
10396 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
10397 *) lt_awk_arg="/^libraries:/" ;;
10398 esac
10399 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
10400 if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
10401 # if the path contains ";" then we assume it to be the separator
10402 # otherwise default to the standard path separator (i.e. ":") - it is
10403 # assumed that no part of a normal pathname contains ";" but that should
10404 # okay in the real world where ";" in dirpaths is itself problematic.
10405 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
10406 else
10407 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10409 # Ok, now we have the path, separated by spaces, we can step through it
10410 # and add multilib dir if necessary.
10411 lt_tmp_lt_search_path_spec=
10412 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10413 for lt_sys_path in $lt_search_path_spec; do
10414 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
10415 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
10416 else
10417 test -d "$lt_sys_path" && \
10418 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10420 done
10421 lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
10422 BEGIN {RS=" "; FS="/|\n";} {
10423 lt_foo="";
10424 lt_count=0;
10425 for (lt_i = NF; lt_i > 0; lt_i--) {
10426 if ($lt_i != "" && $lt_i != ".") {
10427 if ($lt_i == "..") {
10428 lt_count++;
10429 } else {
10430 if (lt_count == 0) {
10431 lt_foo="/" $lt_i lt_foo;
10432 } else {
10433 lt_count--;
10438 if (lt_foo != "") { lt_freq[lt_foo]++; }
10439 if (lt_freq[lt_foo] == 1) { print lt_foo; }
10441 sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
10442 else
10443 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10445 library_names_spec=
10446 libname_spec='lib$name'
10447 soname_spec=
10448 shrext_cmds=".so"
10449 postinstall_cmds=
10450 postuninstall_cmds=
10451 finish_cmds=
10452 finish_eval=
10453 shlibpath_var=
10454 shlibpath_overrides_runpath=unknown
10455 version_type=none
10456 dynamic_linker="$host_os ld.so"
10457 sys_lib_dlsearch_path_spec="/lib /usr/lib"
10458 need_lib_prefix=unknown
10459 hardcode_into_libs=no
10461 # when you set need_version to no, make sure it does not cause -set_version
10462 # flags to be left without arguments
10463 need_version=unknown
10465 case $host_os in
10466 aix3*)
10467 version_type=linux
10468 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10469 shlibpath_var=LIBPATH
10471 # AIX 3 has no versioning support, so we append a major version to the name.
10472 soname_spec='${libname}${release}${shared_ext}$major'
10475 aix[4-9]*)
10476 version_type=linux
10477 need_lib_prefix=no
10478 need_version=no
10479 hardcode_into_libs=yes
10480 if test "$host_cpu" = ia64; then
10481 # AIX 5 supports IA64
10482 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10483 shlibpath_var=LD_LIBRARY_PATH
10484 else
10485 # With GCC up to 2.95.x, collect2 would create an import file
10486 # for dependence libraries. The import file would start with
10487 # the line `#! .'. This would cause the generated library to
10488 # depend on `.', always an invalid library. This was fixed in
10489 # development snapshots of GCC prior to 3.0.
10490 case $host_os in
10491 aix4 | aix4.[01] | aix4.[01].*)
10492 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10493 echo ' yes '
10494 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
10496 else
10497 can_build_shared=no
10500 esac
10501 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10502 # soname into executable. Probably we can add versioning support to
10503 # collect2, so additional links can be useful in future.
10504 if test "$aix_use_runtimelinking" = yes; then
10505 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10506 # instead of lib<name>.a to let people know that these are not
10507 # typical AIX shared libraries.
10508 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10509 else
10510 # We preserve .a as extension for shared libraries through AIX4.2
10511 # and later when we are not doing run time linking.
10512 library_names_spec='${libname}${release}.a $libname.a'
10513 soname_spec='${libname}${release}${shared_ext}$major'
10515 shlibpath_var=LIBPATH
10519 amigaos*)
10520 case $host_cpu in
10521 powerpc)
10522 # Since July 2007 AmigaOS4 officially supports .so libraries.
10523 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10524 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10526 m68k)
10527 library_names_spec='$libname.ixlibrary $libname.a'
10528 # Create ${libname}_ixlibrary.a entries in /sys/libs.
10529 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'
10531 esac
10534 beos*)
10535 library_names_spec='${libname}${shared_ext}'
10536 dynamic_linker="$host_os ld.so"
10537 shlibpath_var=LIBRARY_PATH
10540 bsdi[45]*)
10541 version_type=linux
10542 need_version=no
10543 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10544 soname_spec='${libname}${release}${shared_ext}$major'
10545 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10546 shlibpath_var=LD_LIBRARY_PATH
10547 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10548 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10549 # the default ld.so.conf also contains /usr/contrib/lib and
10550 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10551 # libtool to hard-code these into programs
10554 cygwin* | mingw* | pw32* | cegcc*)
10555 version_type=windows
10556 shrext_cmds=".dll"
10557 need_version=no
10558 need_lib_prefix=no
10560 case $GCC,$host_os in
10561 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
10562 library_names_spec='$libname.dll.a'
10563 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10564 postinstall_cmds='base_file=`basename \${file}`~
10565 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10566 dldir=$destdir/`dirname \$dlpath`~
10567 test -d \$dldir || mkdir -p \$dldir~
10568 $install_prog $dir/$dlname \$dldir/$dlname~
10569 chmod a+x \$dldir/$dlname~
10570 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10571 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10573 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10574 dlpath=$dir/\$dldll~
10575 $RM \$dlpath'
10576 shlibpath_overrides_runpath=yes
10578 case $host_os in
10579 cygwin*)
10580 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10581 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10582 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
10584 mingw* | cegcc*)
10585 # MinGW DLLs use traditional 'lib' prefix
10586 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10587 sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
10588 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
10589 # It is most probably a Windows format PATH printed by
10590 # mingw gcc, but we are running on Cygwin. Gcc prints its search
10591 # path with ; separators, and with drive letters. We can handle the
10592 # drive letters (cygwin fileutils understands them), so leave them,
10593 # especially as we might pass files found there to a mingw objdump,
10594 # which wouldn't understand a cygwinified path. Ahh.
10595 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10596 else
10597 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10600 pw32*)
10601 # pw32 DLLs use 'pw' prefix rather than 'lib'
10602 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10604 esac
10608 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10610 esac
10611 dynamic_linker='Win32 ld.exe'
10612 # FIXME: first we should search . and the directory the executable is in
10613 shlibpath_var=PATH
10616 darwin* | rhapsody*)
10617 dynamic_linker="$host_os dyld"
10618 version_type=darwin
10619 need_lib_prefix=no
10620 need_version=no
10621 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10622 soname_spec='${libname}${release}${major}$shared_ext'
10623 shlibpath_overrides_runpath=yes
10624 shlibpath_var=DYLD_LIBRARY_PATH
10625 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10627 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10628 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10631 dgux*)
10632 version_type=linux
10633 need_lib_prefix=no
10634 need_version=no
10635 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10636 soname_spec='${libname}${release}${shared_ext}$major'
10637 shlibpath_var=LD_LIBRARY_PATH
10640 freebsd1*)
10641 dynamic_linker=no
10644 freebsd* | dragonfly*)
10645 # DragonFly does not have aout. When/if they implement a new
10646 # versioning mechanism, adjust this.
10647 if test -x /usr/bin/objformat; then
10648 objformat=`/usr/bin/objformat`
10649 else
10650 case $host_os in
10651 freebsd[123]*) objformat=aout ;;
10652 *) objformat=elf ;;
10653 esac
10655 version_type=freebsd-$objformat
10656 case $version_type in
10657 freebsd-elf*)
10658 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10659 need_version=no
10660 need_lib_prefix=no
10662 freebsd-*)
10663 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10664 need_version=yes
10666 esac
10667 shlibpath_var=LD_LIBRARY_PATH
10668 case $host_os in
10669 freebsd2*)
10670 shlibpath_overrides_runpath=yes
10672 freebsd3.[01]* | freebsdelf3.[01]*)
10673 shlibpath_overrides_runpath=yes
10674 hardcode_into_libs=yes
10676 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10677 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10678 shlibpath_overrides_runpath=no
10679 hardcode_into_libs=yes
10681 *) # from 4.6 on, and DragonFly
10682 shlibpath_overrides_runpath=yes
10683 hardcode_into_libs=yes
10685 esac
10688 gnu*)
10689 version_type=linux
10690 need_lib_prefix=no
10691 need_version=no
10692 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10693 soname_spec='${libname}${release}${shared_ext}$major'
10694 shlibpath_var=LD_LIBRARY_PATH
10695 hardcode_into_libs=yes
10698 hpux9* | hpux10* | hpux11*)
10699 # Give a soname corresponding to the major version so that dld.sl refuses to
10700 # link against other versions.
10701 version_type=sunos
10702 need_lib_prefix=no
10703 need_version=no
10704 case $host_cpu in
10705 ia64*)
10706 shrext_cmds='.so'
10707 hardcode_into_libs=yes
10708 dynamic_linker="$host_os dld.so"
10709 shlibpath_var=LD_LIBRARY_PATH
10710 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10711 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10712 soname_spec='${libname}${release}${shared_ext}$major'
10713 if test "X$HPUX_IA64_MODE" = X32; then
10714 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10715 else
10716 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10718 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10720 hppa*64*)
10721 shrext_cmds='.sl'
10722 hardcode_into_libs=yes
10723 dynamic_linker="$host_os dld.sl"
10724 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10725 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10726 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10727 soname_spec='${libname}${release}${shared_ext}$major'
10728 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10729 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10732 shrext_cmds='.sl'
10733 dynamic_linker="$host_os dld.sl"
10734 shlibpath_var=SHLIB_PATH
10735 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10736 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10737 soname_spec='${libname}${release}${shared_ext}$major'
10739 esac
10740 # HP-UX runs *really* slowly unless shared libraries are mode 555.
10741 postinstall_cmds='chmod 555 $lib'
10744 interix[3-9]*)
10745 version_type=linux
10746 need_lib_prefix=no
10747 need_version=no
10748 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10749 soname_spec='${libname}${release}${shared_ext}$major'
10750 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10751 shlibpath_var=LD_LIBRARY_PATH
10752 shlibpath_overrides_runpath=no
10753 hardcode_into_libs=yes
10756 irix5* | irix6* | nonstopux*)
10757 case $host_os in
10758 nonstopux*) version_type=nonstopux ;;
10760 if test "$lt_cv_prog_gnu_ld" = yes; then
10761 version_type=linux
10762 else
10763 version_type=irix
10764 fi ;;
10765 esac
10766 need_lib_prefix=no
10767 need_version=no
10768 soname_spec='${libname}${release}${shared_ext}$major'
10769 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10770 case $host_os in
10771 irix5* | nonstopux*)
10772 libsuff= shlibsuff=
10775 case $LD in # libtool.m4 will add one of these switches to LD
10776 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10777 libsuff= shlibsuff= libmagic=32-bit;;
10778 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10779 libsuff=32 shlibsuff=N32 libmagic=N32;;
10780 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10781 libsuff=64 shlibsuff=64 libmagic=64-bit;;
10782 *) libsuff= shlibsuff= libmagic=never-match;;
10783 esac
10785 esac
10786 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10787 shlibpath_overrides_runpath=no
10788 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10789 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10790 hardcode_into_libs=yes
10793 # No shared lib support for Linux oldld, aout, or coff.
10794 linux*oldld* | linux*aout* | linux*coff*)
10795 dynamic_linker=no
10798 # This must be Linux ELF.
10799 linux* | k*bsd*-gnu | kopensolaris*-gnu)
10800 version_type=linux
10801 need_lib_prefix=no
10802 need_version=no
10803 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10804 soname_spec='${libname}${release}${shared_ext}$major'
10805 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10806 shlibpath_var=LD_LIBRARY_PATH
10807 shlibpath_overrides_runpath=no
10809 # Some binutils ld are patched to set DT_RUNPATH
10810 if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
10811 $as_echo_n "(cached) " >&6
10812 else
10813 lt_cv_shlibpath_overrides_runpath=no
10814 save_LDFLAGS=$LDFLAGS
10815 save_libdir=$libdir
10816 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10817 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10818 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10819 /* end confdefs.h. */
10822 main ()
10826 return 0;
10828 _ACEOF
10829 if ac_fn_c_try_link "$LINENO"; then :
10830 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
10831 lt_cv_shlibpath_overrides_runpath=yes
10834 rm -f core conftest.err conftest.$ac_objext \
10835 conftest$ac_exeext conftest.$ac_ext
10836 LDFLAGS=$save_LDFLAGS
10837 libdir=$save_libdir
10841 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
10843 # This implies no fast_install, which is unacceptable.
10844 # Some rework will be needed to allow for fast_install
10845 # before this can be enabled.
10846 hardcode_into_libs=yes
10848 # Append ld.so.conf contents to the search path
10849 if test -f /etc/ld.so.conf; then
10850 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' ' '`
10851 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10854 # We used to test for /lib/ld.so.1 and disable shared libraries on
10855 # powerpc, because MkLinux only supported shared libraries with the
10856 # GNU dynamic linker. Since this was broken with cross compilers,
10857 # most powerpc-linux boxes support dynamic linking these days and
10858 # people can always --disable-shared, the test was removed, and we
10859 # assume the GNU/Linux dynamic linker is in use.
10860 dynamic_linker='GNU/Linux ld.so'
10863 netbsd*)
10864 version_type=sunos
10865 need_lib_prefix=no
10866 need_version=no
10867 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10868 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10869 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10870 dynamic_linker='NetBSD (a.out) ld.so'
10871 else
10872 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10873 soname_spec='${libname}${release}${shared_ext}$major'
10874 dynamic_linker='NetBSD ld.elf_so'
10876 shlibpath_var=LD_LIBRARY_PATH
10877 shlibpath_overrides_runpath=yes
10878 hardcode_into_libs=yes
10881 newsos6)
10882 version_type=linux
10883 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10884 shlibpath_var=LD_LIBRARY_PATH
10885 shlibpath_overrides_runpath=yes
10888 *nto* | *qnx*)
10889 version_type=qnx
10890 need_lib_prefix=no
10891 need_version=no
10892 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10893 soname_spec='${libname}${release}${shared_ext}$major'
10894 shlibpath_var=LD_LIBRARY_PATH
10895 shlibpath_overrides_runpath=no
10896 hardcode_into_libs=yes
10897 dynamic_linker='ldqnx.so'
10900 openbsd*)
10901 version_type=sunos
10902 sys_lib_dlsearch_path_spec="/usr/lib"
10903 need_lib_prefix=no
10904 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10905 case $host_os in
10906 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
10907 *) need_version=no ;;
10908 esac
10909 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10910 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10911 shlibpath_var=LD_LIBRARY_PATH
10912 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10913 case $host_os in
10914 openbsd2.[89] | openbsd2.[89].*)
10915 shlibpath_overrides_runpath=no
10918 shlibpath_overrides_runpath=yes
10920 esac
10921 else
10922 shlibpath_overrides_runpath=yes
10926 os2*)
10927 libname_spec='$name'
10928 shrext_cmds=".dll"
10929 need_lib_prefix=no
10930 library_names_spec='$libname${shared_ext} $libname.a'
10931 dynamic_linker='OS/2 ld.exe'
10932 shlibpath_var=LIBPATH
10935 osf3* | osf4* | osf5*)
10936 version_type=osf
10937 need_lib_prefix=no
10938 need_version=no
10939 soname_spec='${libname}${release}${shared_ext}$major'
10940 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10941 shlibpath_var=LD_LIBRARY_PATH
10942 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10943 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10946 rdos*)
10947 dynamic_linker=no
10950 solaris*)
10951 version_type=linux
10952 need_lib_prefix=no
10953 need_version=no
10954 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10955 soname_spec='${libname}${release}${shared_ext}$major'
10956 shlibpath_var=LD_LIBRARY_PATH
10957 shlibpath_overrides_runpath=yes
10958 hardcode_into_libs=yes
10959 # ldd complains unless libraries are executable
10960 postinstall_cmds='chmod +x $lib'
10963 sunos4*)
10964 version_type=sunos
10965 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10966 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10967 shlibpath_var=LD_LIBRARY_PATH
10968 shlibpath_overrides_runpath=yes
10969 if test "$with_gnu_ld" = yes; then
10970 need_lib_prefix=no
10972 need_version=yes
10975 sysv4 | sysv4.3*)
10976 version_type=linux
10977 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10978 soname_spec='${libname}${release}${shared_ext}$major'
10979 shlibpath_var=LD_LIBRARY_PATH
10980 case $host_vendor in
10981 sni)
10982 shlibpath_overrides_runpath=no
10983 need_lib_prefix=no
10984 runpath_var=LD_RUN_PATH
10986 siemens)
10987 need_lib_prefix=no
10989 motorola)
10990 need_lib_prefix=no
10991 need_version=no
10992 shlibpath_overrides_runpath=no
10993 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10995 esac
10998 sysv4*MP*)
10999 if test -d /usr/nec ;then
11000 version_type=linux
11001 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11002 soname_spec='$libname${shared_ext}.$major'
11003 shlibpath_var=LD_LIBRARY_PATH
11007 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11008 version_type=freebsd-elf
11009 need_lib_prefix=no
11010 need_version=no
11011 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11012 soname_spec='${libname}${release}${shared_ext}$major'
11013 shlibpath_var=LD_LIBRARY_PATH
11014 shlibpath_overrides_runpath=yes
11015 hardcode_into_libs=yes
11016 if test "$with_gnu_ld" = yes; then
11017 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11018 else
11019 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11020 case $host_os in
11021 sco3.2v5*)
11022 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11024 esac
11026 sys_lib_dlsearch_path_spec='/usr/lib'
11029 tpf*)
11030 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
11031 version_type=linux
11032 need_lib_prefix=no
11033 need_version=no
11034 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11035 shlibpath_var=LD_LIBRARY_PATH
11036 shlibpath_overrides_runpath=no
11037 hardcode_into_libs=yes
11040 uts4*)
11041 version_type=linux
11042 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11043 soname_spec='${libname}${release}${shared_ext}$major'
11044 shlibpath_var=LD_LIBRARY_PATH
11048 dynamic_linker=no
11050 esac
11051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
11052 $as_echo "$dynamic_linker" >&6; }
11053 test "$dynamic_linker" = no && can_build_shared=no
11055 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11056 if test "$GCC" = yes; then
11057 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11060 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
11061 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
11063 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
11064 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
11153 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
11154 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
11155 hardcode_action=
11156 if test -n "$hardcode_libdir_flag_spec" ||
11157 test -n "$runpath_var" ||
11158 test "X$hardcode_automatic" = "Xyes" ; then
11160 # We can hardcode non-existent directories.
11161 if test "$hardcode_direct" != no &&
11162 # If the only mechanism to avoid hardcoding is shlibpath_var, we
11163 # have to relink, otherwise we might link with an installed library
11164 # when we should be linking with a yet-to-be-installed one
11165 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
11166 test "$hardcode_minus_L" != no; then
11167 # Linking always hardcodes the temporary library directory.
11168 hardcode_action=relink
11169 else
11170 # We can link without hardcoding, and we can hardcode nonexisting dirs.
11171 hardcode_action=immediate
11173 else
11174 # We cannot hardcode anything, or else we can only hardcode existing
11175 # directories.
11176 hardcode_action=unsupported
11178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
11179 $as_echo "$hardcode_action" >&6; }
11181 if test "$hardcode_action" = relink ||
11182 test "$inherit_rpath" = yes; then
11183 # Fast installation is not supported
11184 enable_fast_install=no
11185 elif test "$shlibpath_overrides_runpath" = yes ||
11186 test "$enable_shared" = no; then
11187 # Fast installation is not necessary
11188 enable_fast_install=needless
11196 if test "x$enable_dlopen" != xyes; then
11197 enable_dlopen=unknown
11198 enable_dlopen_self=unknown
11199 enable_dlopen_self_static=unknown
11200 else
11201 lt_cv_dlopen=no
11202 lt_cv_dlopen_libs=
11204 case $host_os in
11205 beos*)
11206 lt_cv_dlopen="load_add_on"
11207 lt_cv_dlopen_libs=
11208 lt_cv_dlopen_self=yes
11211 mingw* | pw32* | cegcc*)
11212 lt_cv_dlopen="LoadLibrary"
11213 lt_cv_dlopen_libs=
11216 cygwin*)
11217 lt_cv_dlopen="dlopen"
11218 lt_cv_dlopen_libs=
11221 darwin*)
11222 # if libdl is installed we need to link against it
11223 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11224 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11225 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
11226 $as_echo_n "(cached) " >&6
11227 else
11228 ac_check_lib_save_LIBS=$LIBS
11229 LIBS="-ldl $LIBS"
11230 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11231 /* end confdefs.h. */
11233 /* Override any GCC internal prototype to avoid an error.
11234 Use char because int might match the return type of a GCC
11235 builtin and then its argument prototype would still apply. */
11236 #ifdef __cplusplus
11237 extern "C"
11238 #endif
11239 char dlopen ();
11241 main ()
11243 return dlopen ();
11245 return 0;
11247 _ACEOF
11248 if ac_fn_c_try_link "$LINENO"; then :
11249 ac_cv_lib_dl_dlopen=yes
11250 else
11251 ac_cv_lib_dl_dlopen=no
11253 rm -f core conftest.err conftest.$ac_objext \
11254 conftest$ac_exeext conftest.$ac_ext
11255 LIBS=$ac_check_lib_save_LIBS
11257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11258 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11259 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
11260 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11261 else
11263 lt_cv_dlopen="dyld"
11264 lt_cv_dlopen_libs=
11265 lt_cv_dlopen_self=yes
11272 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
11273 if test "x$ac_cv_func_shl_load" = x""yes; then :
11274 lt_cv_dlopen="shl_load"
11275 else
11276 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
11277 $as_echo_n "checking for shl_load in -ldld... " >&6; }
11278 if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
11279 $as_echo_n "(cached) " >&6
11280 else
11281 ac_check_lib_save_LIBS=$LIBS
11282 LIBS="-ldld $LIBS"
11283 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11284 /* end confdefs.h. */
11286 /* Override any GCC internal prototype to avoid an error.
11287 Use char because int might match the return type of a GCC
11288 builtin and then its argument prototype would still apply. */
11289 #ifdef __cplusplus
11290 extern "C"
11291 #endif
11292 char shl_load ();
11294 main ()
11296 return shl_load ();
11298 return 0;
11300 _ACEOF
11301 if ac_fn_c_try_link "$LINENO"; then :
11302 ac_cv_lib_dld_shl_load=yes
11303 else
11304 ac_cv_lib_dld_shl_load=no
11306 rm -f core conftest.err conftest.$ac_objext \
11307 conftest$ac_exeext conftest.$ac_ext
11308 LIBS=$ac_check_lib_save_LIBS
11310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
11311 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
11312 if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
11313 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
11314 else
11315 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
11316 if test "x$ac_cv_func_dlopen" = x""yes; then :
11317 lt_cv_dlopen="dlopen"
11318 else
11319 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11320 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11321 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
11322 $as_echo_n "(cached) " >&6
11323 else
11324 ac_check_lib_save_LIBS=$LIBS
11325 LIBS="-ldl $LIBS"
11326 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11327 /* end confdefs.h. */
11329 /* Override any GCC internal prototype to avoid an error.
11330 Use char because int might match the return type of a GCC
11331 builtin and then its argument prototype would still apply. */
11332 #ifdef __cplusplus
11333 extern "C"
11334 #endif
11335 char dlopen ();
11337 main ()
11339 return dlopen ();
11341 return 0;
11343 _ACEOF
11344 if ac_fn_c_try_link "$LINENO"; then :
11345 ac_cv_lib_dl_dlopen=yes
11346 else
11347 ac_cv_lib_dl_dlopen=no
11349 rm -f core conftest.err conftest.$ac_objext \
11350 conftest$ac_exeext conftest.$ac_ext
11351 LIBS=$ac_check_lib_save_LIBS
11353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11354 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11355 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
11356 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11357 else
11358 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11359 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
11360 if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
11361 $as_echo_n "(cached) " >&6
11362 else
11363 ac_check_lib_save_LIBS=$LIBS
11364 LIBS="-lsvld $LIBS"
11365 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11366 /* end confdefs.h. */
11368 /* Override any GCC internal prototype to avoid an error.
11369 Use char because int might match the return type of a GCC
11370 builtin and then its argument prototype would still apply. */
11371 #ifdef __cplusplus
11372 extern "C"
11373 #endif
11374 char dlopen ();
11376 main ()
11378 return dlopen ();
11380 return 0;
11382 _ACEOF
11383 if ac_fn_c_try_link "$LINENO"; then :
11384 ac_cv_lib_svld_dlopen=yes
11385 else
11386 ac_cv_lib_svld_dlopen=no
11388 rm -f core conftest.err conftest.$ac_objext \
11389 conftest$ac_exeext conftest.$ac_ext
11390 LIBS=$ac_check_lib_save_LIBS
11392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11393 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11394 if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
11395 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11396 else
11397 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11398 $as_echo_n "checking for dld_link in -ldld... " >&6; }
11399 if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
11400 $as_echo_n "(cached) " >&6
11401 else
11402 ac_check_lib_save_LIBS=$LIBS
11403 LIBS="-ldld $LIBS"
11404 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11405 /* end confdefs.h. */
11407 /* Override any GCC internal prototype to avoid an error.
11408 Use char because int might match the return type of a GCC
11409 builtin and then its argument prototype would still apply. */
11410 #ifdef __cplusplus
11411 extern "C"
11412 #endif
11413 char dld_link ();
11415 main ()
11417 return dld_link ();
11419 return 0;
11421 _ACEOF
11422 if ac_fn_c_try_link "$LINENO"; then :
11423 ac_cv_lib_dld_dld_link=yes
11424 else
11425 ac_cv_lib_dld_dld_link=no
11427 rm -f core conftest.err conftest.$ac_objext \
11428 conftest$ac_exeext conftest.$ac_ext
11429 LIBS=$ac_check_lib_save_LIBS
11431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11432 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11433 if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
11434 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
11453 esac
11455 if test "x$lt_cv_dlopen" != xno; then
11456 enable_dlopen=yes
11457 else
11458 enable_dlopen=no
11461 case $lt_cv_dlopen in
11462 dlopen)
11463 save_CPPFLAGS="$CPPFLAGS"
11464 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11466 save_LDFLAGS="$LDFLAGS"
11467 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11469 save_LIBS="$LIBS"
11470 LIBS="$lt_cv_dlopen_libs $LIBS"
11472 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
11473 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
11474 if test "${lt_cv_dlopen_self+set}" = set; then :
11475 $as_echo_n "(cached) " >&6
11476 else
11477 if test "$cross_compiling" = yes; then :
11478 lt_cv_dlopen_self=cross
11479 else
11480 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11481 lt_status=$lt_dlunknown
11482 cat > conftest.$ac_ext <<_LT_EOF
11483 #line 11483 "configure"
11484 #include "confdefs.h"
11486 #if HAVE_DLFCN_H
11487 #include <dlfcn.h>
11488 #endif
11490 #include <stdio.h>
11492 #ifdef RTLD_GLOBAL
11493 # define LT_DLGLOBAL RTLD_GLOBAL
11494 #else
11495 # ifdef DL_GLOBAL
11496 # define LT_DLGLOBAL DL_GLOBAL
11497 # else
11498 # define LT_DLGLOBAL 0
11499 # endif
11500 #endif
11502 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11503 find out it does not work in some platform. */
11504 #ifndef LT_DLLAZY_OR_NOW
11505 # ifdef RTLD_LAZY
11506 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11507 # else
11508 # ifdef DL_LAZY
11509 # define LT_DLLAZY_OR_NOW DL_LAZY
11510 # else
11511 # ifdef RTLD_NOW
11512 # define LT_DLLAZY_OR_NOW RTLD_NOW
11513 # else
11514 # ifdef DL_NOW
11515 # define LT_DLLAZY_OR_NOW DL_NOW
11516 # else
11517 # define LT_DLLAZY_OR_NOW 0
11518 # endif
11519 # endif
11520 # endif
11521 # endif
11522 #endif
11524 void fnord() { int i=42;}
11525 int main ()
11527 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11528 int status = $lt_dlunknown;
11530 if (self)
11532 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11533 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11534 /* dlclose (self); */
11536 else
11537 puts (dlerror ());
11539 return status;
11541 _LT_EOF
11542 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11543 (eval $ac_link) 2>&5
11544 ac_status=$?
11545 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11546 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11547 (./conftest; exit; ) >&5 2>/dev/null
11548 lt_status=$?
11549 case x$lt_status in
11550 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11551 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11552 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11553 esac
11554 else :
11555 # compilation failed
11556 lt_cv_dlopen_self=no
11559 rm -fr conftest*
11563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11564 $as_echo "$lt_cv_dlopen_self" >&6; }
11566 if test "x$lt_cv_dlopen_self" = xyes; then
11567 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11568 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11569 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11570 if test "${lt_cv_dlopen_self_static+set}" = set; then :
11571 $as_echo_n "(cached) " >&6
11572 else
11573 if test "$cross_compiling" = yes; then :
11574 lt_cv_dlopen_self_static=cross
11575 else
11576 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11577 lt_status=$lt_dlunknown
11578 cat > conftest.$ac_ext <<_LT_EOF
11579 #line 11579 "configure"
11580 #include "confdefs.h"
11582 #if HAVE_DLFCN_H
11583 #include <dlfcn.h>
11584 #endif
11586 #include <stdio.h>
11588 #ifdef RTLD_GLOBAL
11589 # define LT_DLGLOBAL RTLD_GLOBAL
11590 #else
11591 # ifdef DL_GLOBAL
11592 # define LT_DLGLOBAL DL_GLOBAL
11593 # else
11594 # define LT_DLGLOBAL 0
11595 # endif
11596 #endif
11598 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11599 find out it does not work in some platform. */
11600 #ifndef LT_DLLAZY_OR_NOW
11601 # ifdef RTLD_LAZY
11602 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11603 # else
11604 # ifdef DL_LAZY
11605 # define LT_DLLAZY_OR_NOW DL_LAZY
11606 # else
11607 # ifdef RTLD_NOW
11608 # define LT_DLLAZY_OR_NOW RTLD_NOW
11609 # else
11610 # ifdef DL_NOW
11611 # define LT_DLLAZY_OR_NOW DL_NOW
11612 # else
11613 # define LT_DLLAZY_OR_NOW 0
11614 # endif
11615 # endif
11616 # endif
11617 # endif
11618 #endif
11620 void fnord() { int i=42;}
11621 int main ()
11623 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11624 int status = $lt_dlunknown;
11626 if (self)
11628 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11629 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11630 /* dlclose (self); */
11632 else
11633 puts (dlerror ());
11635 return status;
11637 _LT_EOF
11638 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11639 (eval $ac_link) 2>&5
11640 ac_status=$?
11641 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11642 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11643 (./conftest; exit; ) >&5 2>/dev/null
11644 lt_status=$?
11645 case x$lt_status in
11646 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11647 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11648 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11649 esac
11650 else :
11651 # compilation failed
11652 lt_cv_dlopen_self_static=no
11655 rm -fr conftest*
11659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11660 $as_echo "$lt_cv_dlopen_self_static" >&6; }
11663 CPPFLAGS="$save_CPPFLAGS"
11664 LDFLAGS="$save_LDFLAGS"
11665 LIBS="$save_LIBS"
11667 esac
11669 case $lt_cv_dlopen_self in
11670 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11671 *) enable_dlopen_self=unknown ;;
11672 esac
11674 case $lt_cv_dlopen_self_static in
11675 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11676 *) enable_dlopen_self_static=unknown ;;
11677 esac
11696 striplib=
11697 old_striplib=
11698 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11699 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
11700 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11701 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11702 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11704 $as_echo "yes" >&6; }
11705 else
11706 # FIXME - insert some real tests, host_os isn't really good enough
11707 case $host_os in
11708 darwin*)
11709 if test -n "$STRIP" ; then
11710 striplib="$STRIP -x"
11711 old_striplib="$STRIP -S"
11712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11713 $as_echo "yes" >&6; }
11714 else
11715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11716 $as_echo "no" >&6; }
11720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11721 $as_echo "no" >&6; }
11723 esac
11737 # Report which library types will actually be built
11738 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
11739 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
11740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
11741 $as_echo "$can_build_shared" >&6; }
11743 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
11744 $as_echo_n "checking whether to build shared libraries... " >&6; }
11745 test "$can_build_shared" = "no" && enable_shared=no
11747 # On AIX, shared libraries and static libraries use the same namespace, and
11748 # are all built from PIC.
11749 case $host_os in
11750 aix3*)
11751 test "$enable_shared" = yes && enable_static=no
11752 if test -n "$RANLIB"; then
11753 archive_cmds="$archive_cmds~\$RANLIB \$lib"
11754 postinstall_cmds='$RANLIB $lib'
11758 aix[4-9]*)
11759 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11760 test "$enable_shared" = yes && enable_static=no
11763 esac
11764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
11765 $as_echo "$enable_shared" >&6; }
11767 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
11768 $as_echo_n "checking whether to build static libraries... " >&6; }
11769 # Make sure either enable_shared or enable_static is yes.
11770 test "$enable_shared" = yes || enable_static=yes
11771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
11772 $as_echo "$enable_static" >&6; }
11778 ac_ext=c
11779 ac_cpp='$CPP $CPPFLAGS'
11780 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11781 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11782 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11784 CC="$lt_save_CC"
11798 ac_config_commands="$ac_config_commands libtool"
11803 # Only expand once:
11807 ALL_LINGUAS="fr sv tr es da vi zh_CN zh_TW ga fi id"
11808 # If we haven't got the data from the intl directory,
11809 # assume NLS is disabled.
11810 USE_NLS=no
11811 LIBINTL=
11812 LIBINTL_DEP=
11813 INCINTL=
11814 XGETTEXT=
11815 GMSGFMT=
11816 POSUB=
11818 if test -f ../intl/config.intl; then
11819 . ../intl/config.intl
11821 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
11822 $as_echo_n "checking whether NLS is requested... " >&6; }
11823 if test x"$USE_NLS" != xyes; then
11824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11825 $as_echo "no" >&6; }
11826 else
11827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11828 $as_echo "yes" >&6; }
11830 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
11833 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catalogs to be installed" >&5
11834 $as_echo_n "checking for catalogs to be installed... " >&6; }
11835 # Look for .po and .gmo files in the source directory.
11836 CATALOGS=
11837 XLINGUAS=
11838 for cat in $srcdir/po/*.gmo $srcdir/po/*.po; do
11839 # If there aren't any .gmo files the shell will give us the
11840 # literal string "../path/to/srcdir/po/*.gmo" which has to be
11841 # weeded out.
11842 case "$cat" in *\**)
11843 continue;;
11844 esac
11845 # The quadruple backslash is collapsed to a double backslash
11846 # by the backticks, then collapsed again by the double quotes,
11847 # leaving us with one backslash in the sed expression (right
11848 # before the dot that mustn't act as a wildcard).
11849 cat=`echo $cat | sed -e "s!$srcdir/po/!!" -e "s!\\\\.po!.gmo!"`
11850 lang=`echo $cat | sed -e "s!\\\\.gmo!!"`
11851 # The user is allowed to set LINGUAS to a list of languages to
11852 # install catalogs for. If it's empty that means "all of them."
11853 if test "x$LINGUAS" = x; then
11854 CATALOGS="$CATALOGS $cat"
11855 XLINGUAS="$XLINGUAS $lang"
11856 else
11857 case "$LINGUAS" in *$lang*)
11858 CATALOGS="$CATALOGS $cat"
11859 XLINGUAS="$XLINGUAS $lang"
11861 esac
11863 done
11864 LINGUAS="$XLINGUAS"
11865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINGUAS" >&5
11866 $as_echo "$LINGUAS" >&6; }
11869 DATADIRNAME=share
11871 INSTOBJEXT=.mo
11873 GENCAT=gencat
11875 CATOBJEXT=.gmo
11879 MKINSTALLDIRS=
11880 if test -n "$ac_aux_dir"; then
11881 case "$ac_aux_dir" in
11882 /*) MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" ;;
11883 *) MKINSTALLDIRS="\$(top_builddir)/$ac_aux_dir/mkinstalldirs" ;;
11884 esac
11886 if test -z "$MKINSTALLDIRS"; then
11887 MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
11892 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
11893 $as_echo_n "checking whether NLS is requested... " >&6; }
11894 # Check whether --enable-nls was given.
11895 if test "${enable_nls+set}" = set; then :
11896 enableval=$enable_nls; USE_NLS=$enableval
11897 else
11898 USE_NLS=yes
11901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
11902 $as_echo "$USE_NLS" >&6; }
11909 # Prepare PATH_SEPARATOR.
11910 # The user is always right.
11911 if test "${PATH_SEPARATOR+set}" != set; then
11912 echo "#! /bin/sh" >conf$$.sh
11913 echo "exit 0" >>conf$$.sh
11914 chmod +x conf$$.sh
11915 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
11916 PATH_SEPARATOR=';'
11917 else
11918 PATH_SEPARATOR=:
11920 rm -f conf$$.sh
11923 # Find out how to test for executable files. Don't use a zero-byte file,
11924 # as systems may use methods other than mode bits to determine executability.
11925 cat >conf$$.file <<_ASEOF
11926 #! /bin/sh
11927 exit 0
11928 _ASEOF
11929 chmod +x conf$$.file
11930 if test -x conf$$.file >/dev/null 2>&1; then
11931 ac_executable_p="test -x"
11932 else
11933 ac_executable_p="test -f"
11935 rm -f conf$$.file
11937 # Extract the first word of "msgfmt", so it can be a program name with args.
11938 set dummy msgfmt; ac_word=$2
11939 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11940 $as_echo_n "checking for $ac_word... " >&6; }
11941 if test "${ac_cv_path_MSGFMT+set}" = set; then :
11942 $as_echo_n "(cached) " >&6
11943 else
11944 case "$MSGFMT" in
11945 [\\/]* | ?:[\\/]*)
11946 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
11949 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
11950 for ac_dir in $PATH; do
11951 IFS="$ac_save_IFS"
11952 test -z "$ac_dir" && ac_dir=.
11953 for ac_exec_ext in '' $ac_executable_extensions; do
11954 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
11955 if $ac_dir/$ac_word --statistics /dev/null >/dev/null 2>&1 &&
11956 (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
11957 ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
11958 break 2
11961 done
11962 done
11963 IFS="$ac_save_IFS"
11964 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
11966 esac
11968 MSGFMT="$ac_cv_path_MSGFMT"
11969 if test "$MSGFMT" != ":"; then
11970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
11971 $as_echo "$MSGFMT" >&6; }
11972 else
11973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11974 $as_echo "no" >&6; }
11977 # Extract the first word of "gmsgfmt", so it can be a program name with args.
11978 set dummy gmsgfmt; ac_word=$2
11979 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11980 $as_echo_n "checking for $ac_word... " >&6; }
11981 if test "${ac_cv_path_GMSGFMT+set}" = set; then :
11982 $as_echo_n "(cached) " >&6
11983 else
11984 case $GMSGFMT in
11985 [\\/]* | ?:[\\/]*)
11986 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
11989 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11990 for as_dir in $PATH
11992 IFS=$as_save_IFS
11993 test -z "$as_dir" && as_dir=.
11994 for ac_exec_ext in '' $ac_executable_extensions; do
11995 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11996 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
11997 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11998 break 2
12000 done
12001 done
12002 IFS=$as_save_IFS
12004 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
12006 esac
12008 GMSGFMT=$ac_cv_path_GMSGFMT
12009 if test -n "$GMSGFMT"; then
12010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMSGFMT" >&5
12011 $as_echo "$GMSGFMT" >&6; }
12012 else
12013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12014 $as_echo "no" >&6; }
12020 # Prepare PATH_SEPARATOR.
12021 # The user is always right.
12022 if test "${PATH_SEPARATOR+set}" != set; then
12023 echo "#! /bin/sh" >conf$$.sh
12024 echo "exit 0" >>conf$$.sh
12025 chmod +x conf$$.sh
12026 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
12027 PATH_SEPARATOR=';'
12028 else
12029 PATH_SEPARATOR=:
12031 rm -f conf$$.sh
12034 # Find out how to test for executable files. Don't use a zero-byte file,
12035 # as systems may use methods other than mode bits to determine executability.
12036 cat >conf$$.file <<_ASEOF
12037 #! /bin/sh
12038 exit 0
12039 _ASEOF
12040 chmod +x conf$$.file
12041 if test -x conf$$.file >/dev/null 2>&1; then
12042 ac_executable_p="test -x"
12043 else
12044 ac_executable_p="test -f"
12046 rm -f conf$$.file
12048 # Extract the first word of "xgettext", so it can be a program name with args.
12049 set dummy xgettext; ac_word=$2
12050 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12051 $as_echo_n "checking for $ac_word... " >&6; }
12052 if test "${ac_cv_path_XGETTEXT+set}" = set; then :
12053 $as_echo_n "(cached) " >&6
12054 else
12055 case "$XGETTEXT" in
12056 [\\/]* | ?:[\\/]*)
12057 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
12060 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
12061 for ac_dir in $PATH; do
12062 IFS="$ac_save_IFS"
12063 test -z "$ac_dir" && ac_dir=.
12064 for ac_exec_ext in '' $ac_executable_extensions; do
12065 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
12066 if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
12067 (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
12068 ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
12069 break 2
12072 done
12073 done
12074 IFS="$ac_save_IFS"
12075 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
12077 esac
12079 XGETTEXT="$ac_cv_path_XGETTEXT"
12080 if test "$XGETTEXT" != ":"; then
12081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5
12082 $as_echo "$XGETTEXT" >&6; }
12083 else
12084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12085 $as_echo "no" >&6; }
12088 rm -f messages.po
12091 # Prepare PATH_SEPARATOR.
12092 # The user is always right.
12093 if test "${PATH_SEPARATOR+set}" != set; then
12094 echo "#! /bin/sh" >conf$$.sh
12095 echo "exit 0" >>conf$$.sh
12096 chmod +x conf$$.sh
12097 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
12098 PATH_SEPARATOR=';'
12099 else
12100 PATH_SEPARATOR=:
12102 rm -f conf$$.sh
12105 # Find out how to test for executable files. Don't use a zero-byte file,
12106 # as systems may use methods other than mode bits to determine executability.
12107 cat >conf$$.file <<_ASEOF
12108 #! /bin/sh
12109 exit 0
12110 _ASEOF
12111 chmod +x conf$$.file
12112 if test -x conf$$.file >/dev/null 2>&1; then
12113 ac_executable_p="test -x"
12114 else
12115 ac_executable_p="test -f"
12117 rm -f conf$$.file
12119 # Extract the first word of "msgmerge", so it can be a program name with args.
12120 set dummy msgmerge; ac_word=$2
12121 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12122 $as_echo_n "checking for $ac_word... " >&6; }
12123 if test "${ac_cv_path_MSGMERGE+set}" = set; then :
12124 $as_echo_n "(cached) " >&6
12125 else
12126 case "$MSGMERGE" in
12127 [\\/]* | ?:[\\/]*)
12128 ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
12131 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
12132 for ac_dir in $PATH; do
12133 IFS="$ac_save_IFS"
12134 test -z "$ac_dir" && ac_dir=.
12135 for ac_exec_ext in '' $ac_executable_extensions; do
12136 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
12137 if $ac_dir/$ac_word --update -q /dev/null /dev/null >/dev/null 2>&1; then
12138 ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
12139 break 2
12142 done
12143 done
12144 IFS="$ac_save_IFS"
12145 test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
12147 esac
12149 MSGMERGE="$ac_cv_path_MSGMERGE"
12150 if test "$MSGMERGE" != ":"; then
12151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGMERGE" >&5
12152 $as_echo "$MSGMERGE" >&6; }
12153 else
12154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12155 $as_echo "no" >&6; }
12159 if test "$GMSGFMT" != ":"; then
12160 if $GMSGFMT --statistics /dev/null >/dev/null 2>&1 &&
12161 (if $GMSGFMT --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
12163 else
12164 GMSGFMT=`echo "$GMSGFMT" | sed -e 's,^.*/,,'`
12165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found $GMSGFMT program is not GNU msgfmt; ignore it" >&5
12166 $as_echo "found $GMSGFMT program is not GNU msgfmt; ignore it" >&6; }
12167 GMSGFMT=":"
12171 if test "$XGETTEXT" != ":"; then
12172 if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
12173 (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
12175 else
12176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found xgettext program is not GNU xgettext; ignore it" >&5
12177 $as_echo "found xgettext program is not GNU xgettext; ignore it" >&6; }
12178 XGETTEXT=":"
12180 rm -f messages.po
12183 ac_config_commands="$ac_config_commands default-1"
12189 for ac_prog in 'bison -y' byacc
12191 # Extract the first word of "$ac_prog", so it can be a program name with args.
12192 set dummy $ac_prog; ac_word=$2
12193 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12194 $as_echo_n "checking for $ac_word... " >&6; }
12195 if test "${ac_cv_prog_YACC+set}" = set; then :
12196 $as_echo_n "(cached) " >&6
12197 else
12198 if test -n "$YACC"; then
12199 ac_cv_prog_YACC="$YACC" # Let the user override the test.
12200 else
12201 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12202 for as_dir in $PATH
12204 IFS=$as_save_IFS
12205 test -z "$as_dir" && as_dir=.
12206 for ac_exec_ext in '' $ac_executable_extensions; do
12207 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12208 ac_cv_prog_YACC="$ac_prog"
12209 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12210 break 2
12212 done
12213 done
12214 IFS=$as_save_IFS
12218 YACC=$ac_cv_prog_YACC
12219 if test -n "$YACC"; then
12220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5
12221 $as_echo "$YACC" >&6; }
12222 else
12223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12224 $as_echo "no" >&6; }
12228 test -n "$YACC" && break
12229 done
12230 test -n "$YACC" || YACC="yacc"
12232 for ac_prog in flex lex
12234 # Extract the first word of "$ac_prog", so it can be a program name with args.
12235 set dummy $ac_prog; ac_word=$2
12236 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12237 $as_echo_n "checking for $ac_word... " >&6; }
12238 if test "${ac_cv_prog_LEX+set}" = set; then :
12239 $as_echo_n "(cached) " >&6
12240 else
12241 if test -n "$LEX"; then
12242 ac_cv_prog_LEX="$LEX" # Let the user override the test.
12243 else
12244 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12245 for as_dir in $PATH
12247 IFS=$as_save_IFS
12248 test -z "$as_dir" && as_dir=.
12249 for ac_exec_ext in '' $ac_executable_extensions; do
12250 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12251 ac_cv_prog_LEX="$ac_prog"
12252 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12253 break 2
12255 done
12256 done
12257 IFS=$as_save_IFS
12261 LEX=$ac_cv_prog_LEX
12262 if test -n "$LEX"; then
12263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LEX" >&5
12264 $as_echo "$LEX" >&6; }
12265 else
12266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12267 $as_echo "no" >&6; }
12271 test -n "$LEX" && break
12272 done
12273 test -n "$LEX" || LEX=":"
12275 if test "x$LEX" != "x:"; then
12276 cat >conftest.l <<_ACEOF
12278 a { ECHO; }
12279 b { REJECT; }
12280 c { yymore (); }
12281 d { yyless (1); }
12282 e { yyless (input () != 0); }
12283 f { unput (yytext[0]); }
12284 . { BEGIN INITIAL; }
12286 #ifdef YYTEXT_POINTER
12287 extern char *yytext;
12288 #endif
12290 main (void)
12292 return ! yylex () + ! yywrap ();
12294 _ACEOF
12295 { { ac_try="$LEX conftest.l"
12296 case "(($ac_try" in
12297 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12298 *) ac_try_echo=$ac_try;;
12299 esac
12300 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
12301 $as_echo "$ac_try_echo"; } >&5
12302 (eval "$LEX conftest.l") 2>&5
12303 ac_status=$?
12304 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12305 test $ac_status = 0; }
12306 { $as_echo "$as_me:${as_lineno-$LINENO}: checking lex output file root" >&5
12307 $as_echo_n "checking lex output file root... " >&6; }
12308 if test "${ac_cv_prog_lex_root+set}" = set; then :
12309 $as_echo_n "(cached) " >&6
12310 else
12312 if test -f lex.yy.c; then
12313 ac_cv_prog_lex_root=lex.yy
12314 elif test -f lexyy.c; then
12315 ac_cv_prog_lex_root=lexyy
12316 else
12317 as_fn_error "cannot find output from $LEX; giving up" "$LINENO" 5
12320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_root" >&5
12321 $as_echo "$ac_cv_prog_lex_root" >&6; }
12322 LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
12324 if test -z "${LEXLIB+set}"; then
12325 { $as_echo "$as_me:${as_lineno-$LINENO}: checking lex library" >&5
12326 $as_echo_n "checking lex library... " >&6; }
12327 if test "${ac_cv_lib_lex+set}" = set; then :
12328 $as_echo_n "(cached) " >&6
12329 else
12331 ac_save_LIBS=$LIBS
12332 ac_cv_lib_lex='none needed'
12333 for ac_lib in '' -lfl -ll; do
12334 LIBS="$ac_lib $ac_save_LIBS"
12335 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12336 /* end confdefs.h. */
12337 `cat $LEX_OUTPUT_ROOT.c`
12338 _ACEOF
12339 if ac_fn_c_try_link "$LINENO"; then :
12340 ac_cv_lib_lex=$ac_lib
12342 rm -f core conftest.err conftest.$ac_objext \
12343 conftest$ac_exeext conftest.$ac_ext
12344 test "$ac_cv_lib_lex" != 'none needed' && break
12345 done
12346 LIBS=$ac_save_LIBS
12349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lex" >&5
12350 $as_echo "$ac_cv_lib_lex" >&6; }
12351 test "$ac_cv_lib_lex" != 'none needed' && LEXLIB=$ac_cv_lib_lex
12355 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether yytext is a pointer" >&5
12356 $as_echo_n "checking whether yytext is a pointer... " >&6; }
12357 if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then :
12358 $as_echo_n "(cached) " >&6
12359 else
12360 # POSIX says lex can declare yytext either as a pointer or an array; the
12361 # default is implementation-dependent. Figure out which it is, since
12362 # not all implementations provide the %pointer and %array declarations.
12363 ac_cv_prog_lex_yytext_pointer=no
12364 ac_save_LIBS=$LIBS
12365 LIBS="$LEXLIB $ac_save_LIBS"
12366 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12367 /* end confdefs.h. */
12368 #define YYTEXT_POINTER 1
12369 `cat $LEX_OUTPUT_ROOT.c`
12370 _ACEOF
12371 if ac_fn_c_try_link "$LINENO"; then :
12372 ac_cv_prog_lex_yytext_pointer=yes
12374 rm -f core conftest.err conftest.$ac_objext \
12375 conftest$ac_exeext conftest.$ac_ext
12376 LIBS=$ac_save_LIBS
12379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_yytext_pointer" >&5
12380 $as_echo "$ac_cv_prog_lex_yytext_pointer" >&6; }
12381 if test $ac_cv_prog_lex_yytext_pointer = yes; then
12383 $as_echo "#define YYTEXT_POINTER 1" >>confdefs.h
12386 rm -f conftest.l $LEX_OUTPUT_ROOT.c
12389 if test "$LEX" = :; then
12390 LEX=${am_missing_run}flex
12394 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
12395 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
12396 # Check whether --enable-maintainer-mode was given.
12397 if test "${enable_maintainer_mode+set}" = set; then :
12398 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
12399 else
12400 USE_MAINTAINER_MODE=no
12403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
12404 $as_echo "$USE_MAINTAINER_MODE" >&6; }
12405 if test $USE_MAINTAINER_MODE = yes; then
12406 MAINTAINER_MODE_TRUE=
12407 MAINTAINER_MODE_FALSE='#'
12408 else
12409 MAINTAINER_MODE_TRUE='#'
12410 MAINTAINER_MODE_FALSE=
12413 MAINT=$MAINTAINER_MODE_TRUE
12416 if false; then
12417 GENINSRC_NEVER_TRUE=
12418 GENINSRC_NEVER_FALSE='#'
12419 else
12420 GENINSRC_NEVER_TRUE='#'
12421 GENINSRC_NEVER_FALSE=
12424 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to compare bootstrapped objects" >&5
12425 $as_echo_n "checking how to compare bootstrapped objects... " >&6; }
12426 if test "${gcc_cv_prog_cmp_skip+set}" = set; then :
12427 $as_echo_n "(cached) " >&6
12428 else
12429 echo abfoo >t1
12430 echo cdfoo >t2
12431 gcc_cv_prog_cmp_skip='tail +16c $$f1 > tmp-foo1; tail +16c $$f2 > tmp-foo2; cmp tmp-foo1 tmp-foo2'
12432 if cmp t1 t2 2 2 > /dev/null 2>&1; then
12433 if cmp t1 t2 1 1 > /dev/null 2>&1; then
12435 else
12436 gcc_cv_prog_cmp_skip='cmp $$f1 $$f2 16 16'
12439 if cmp --ignore-initial=2 t1 t2 > /dev/null 2>&1; then
12440 if cmp --ignore-initial=1 t1 t2 > /dev/null 2>&1; then
12442 else
12443 gcc_cv_prog_cmp_skip='cmp --ignore-initial=16 $$f1 $$f2'
12446 rm t1 t2
12449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_cmp_skip" >&5
12450 $as_echo "$gcc_cv_prog_cmp_skip" >&6; }
12451 do_compare="$gcc_cv_prog_cmp_skip"
12455 . ${srcdir}/configure.host
12462 for ac_header in string.h strings.h stdlib.h unistd.h elf-hints.h limits.h sys/param.h
12463 do :
12464 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
12465 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
12466 eval as_val=\$$as_ac_Header
12467 if test "x$as_val" = x""yes; then :
12468 cat >>confdefs.h <<_ACEOF
12469 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
12470 _ACEOF
12474 done
12476 for ac_func in glob mkstemp realpath sbrk waitpid
12477 do :
12478 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
12479 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
12480 eval as_val=\$$as_ac_var
12481 if test "x$as_val" = x""yes; then :
12482 cat >>confdefs.h <<_ACEOF
12483 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
12484 _ACEOF
12487 done
12489 ac_header_dirent=no
12490 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
12491 as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
12492 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
12493 $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
12494 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then :
12495 $as_echo_n "(cached) " >&6
12496 else
12497 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12498 /* end confdefs.h. */
12499 #include <sys/types.h>
12500 #include <$ac_hdr>
12503 main ()
12505 if ((DIR *) 0)
12506 return 0;
12508 return 0;
12510 _ACEOF
12511 if ac_fn_c_try_compile "$LINENO"; then :
12512 eval "$as_ac_Header=yes"
12513 else
12514 eval "$as_ac_Header=no"
12516 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12518 eval ac_res=\$$as_ac_Header
12519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
12520 $as_echo "$ac_res" >&6; }
12521 eval as_val=\$$as_ac_Header
12522 if test "x$as_val" = x""yes; then :
12523 cat >>confdefs.h <<_ACEOF
12524 #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
12525 _ACEOF
12527 ac_header_dirent=$ac_hdr; break
12530 done
12531 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
12532 if test $ac_header_dirent = dirent.h; then
12533 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
12534 $as_echo_n "checking for library containing opendir... " >&6; }
12535 if test "${ac_cv_search_opendir+set}" = set; then :
12536 $as_echo_n "(cached) " >&6
12537 else
12538 ac_func_search_save_LIBS=$LIBS
12539 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12540 /* end confdefs.h. */
12542 /* Override any GCC internal prototype to avoid an error.
12543 Use char because int might match the return type of a GCC
12544 builtin and then its argument prototype would still apply. */
12545 #ifdef __cplusplus
12546 extern "C"
12547 #endif
12548 char opendir ();
12550 main ()
12552 return opendir ();
12554 return 0;
12556 _ACEOF
12557 for ac_lib in '' dir; do
12558 if test -z "$ac_lib"; then
12559 ac_res="none required"
12560 else
12561 ac_res=-l$ac_lib
12562 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12564 if ac_fn_c_try_link "$LINENO"; then :
12565 ac_cv_search_opendir=$ac_res
12567 rm -f core conftest.err conftest.$ac_objext \
12568 conftest$ac_exeext
12569 if test "${ac_cv_search_opendir+set}" = set; then :
12570 break
12572 done
12573 if test "${ac_cv_search_opendir+set}" = set; then :
12575 else
12576 ac_cv_search_opendir=no
12578 rm conftest.$ac_ext
12579 LIBS=$ac_func_search_save_LIBS
12581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
12582 $as_echo "$ac_cv_search_opendir" >&6; }
12583 ac_res=$ac_cv_search_opendir
12584 if test "$ac_res" != no; then :
12585 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12589 else
12590 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
12591 $as_echo_n "checking for library containing opendir... " >&6; }
12592 if test "${ac_cv_search_opendir+set}" = set; then :
12593 $as_echo_n "(cached) " >&6
12594 else
12595 ac_func_search_save_LIBS=$LIBS
12596 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12597 /* end confdefs.h. */
12599 /* Override any GCC internal prototype to avoid an error.
12600 Use char because int might match the return type of a GCC
12601 builtin and then its argument prototype would still apply. */
12602 #ifdef __cplusplus
12603 extern "C"
12604 #endif
12605 char opendir ();
12607 main ()
12609 return opendir ();
12611 return 0;
12613 _ACEOF
12614 for ac_lib in '' x; do
12615 if test -z "$ac_lib"; then
12616 ac_res="none required"
12617 else
12618 ac_res=-l$ac_lib
12619 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12621 if ac_fn_c_try_link "$LINENO"; then :
12622 ac_cv_search_opendir=$ac_res
12624 rm -f core conftest.err conftest.$ac_objext \
12625 conftest$ac_exeext
12626 if test "${ac_cv_search_opendir+set}" = set; then :
12627 break
12629 done
12630 if test "${ac_cv_search_opendir+set}" = set; then :
12632 else
12633 ac_cv_search_opendir=no
12635 rm conftest.$ac_ext
12636 LIBS=$ac_func_search_save_LIBS
12638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
12639 $as_echo "$ac_cv_search_opendir" >&6; }
12640 ac_res=$ac_cv_search_opendir
12641 if test "$ac_res" != no; then :
12642 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12649 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a known getopt prototype in unistd.h" >&5
12650 $as_echo_n "checking for a known getopt prototype in unistd.h... " >&6; }
12651 if test "${ld_cv_decl_getopt_unistd_h+set}" = set; then :
12652 $as_echo_n "(cached) " >&6
12653 else
12654 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12655 /* end confdefs.h. */
12656 #include <unistd.h>
12658 main ()
12660 extern int getopt (int, char *const*, const char *);
12662 return 0;
12664 _ACEOF
12665 if ac_fn_c_try_compile "$LINENO"; then :
12666 ld_cv_decl_getopt_unistd_h=yes
12667 else
12668 ld_cv_decl_getopt_unistd_h=no
12670 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_cv_decl_getopt_unistd_h" >&5
12674 $as_echo "$ld_cv_decl_getopt_unistd_h" >&6; }
12675 if test $ld_cv_decl_getopt_unistd_h = yes; then
12677 $as_echo "#define HAVE_DECL_GETOPT 1" >>confdefs.h
12682 case "${host}" in
12683 *-*-msdos* | *-*-go32* | *-*-mingw32* | *-*-cygwin* | *-*-windows*)
12685 $as_echo "#define USE_BINARY_FOPEN 1" >>confdefs.h
12687 esac
12689 ac_fn_c_check_decl "$LINENO" "strstr" "ac_cv_have_decl_strstr" "$ac_includes_default"
12690 if test "x$ac_cv_have_decl_strstr" = x""yes; then :
12691 ac_have_decl=1
12692 else
12693 ac_have_decl=0
12696 cat >>confdefs.h <<_ACEOF
12697 #define HAVE_DECL_STRSTR $ac_have_decl
12698 _ACEOF
12699 ac_fn_c_check_decl "$LINENO" "free" "ac_cv_have_decl_free" "$ac_includes_default"
12700 if test "x$ac_cv_have_decl_free" = x""yes; then :
12701 ac_have_decl=1
12702 else
12703 ac_have_decl=0
12706 cat >>confdefs.h <<_ACEOF
12707 #define HAVE_DECL_FREE $ac_have_decl
12708 _ACEOF
12709 ac_fn_c_check_decl "$LINENO" "sbrk" "ac_cv_have_decl_sbrk" "$ac_includes_default"
12710 if test "x$ac_cv_have_decl_sbrk" = x""yes; then :
12711 ac_have_decl=1
12712 else
12713 ac_have_decl=0
12716 cat >>confdefs.h <<_ACEOF
12717 #define HAVE_DECL_SBRK $ac_have_decl
12718 _ACEOF
12719 ac_fn_c_check_decl "$LINENO" "getenv" "ac_cv_have_decl_getenv" "$ac_includes_default"
12720 if test "x$ac_cv_have_decl_getenv" = x""yes; then :
12721 ac_have_decl=1
12722 else
12723 ac_have_decl=0
12726 cat >>confdefs.h <<_ACEOF
12727 #define HAVE_DECL_GETENV $ac_have_decl
12728 _ACEOF
12729 ac_fn_c_check_decl "$LINENO" "environ" "ac_cv_have_decl_environ" "$ac_includes_default"
12730 if test "x$ac_cv_have_decl_environ" = x""yes; then :
12731 ac_have_decl=1
12732 else
12733 ac_have_decl=0
12736 cat >>confdefs.h <<_ACEOF
12737 #define HAVE_DECL_ENVIRON $ac_have_decl
12738 _ACEOF
12741 # Link in zlib if we can. This is needed only for the bootstrap tests
12742 # right now, since those tests use libbfd, which depends on zlib.
12743 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing zlibVersion" >&5
12744 $as_echo_n "checking for library containing zlibVersion... " >&6; }
12745 if test "${ac_cv_search_zlibVersion+set}" = set; then :
12746 $as_echo_n "(cached) " >&6
12747 else
12748 ac_func_search_save_LIBS=$LIBS
12749 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12750 /* end confdefs.h. */
12752 /* Override any GCC internal prototype to avoid an error.
12753 Use char because int might match the return type of a GCC
12754 builtin and then its argument prototype would still apply. */
12755 #ifdef __cplusplus
12756 extern "C"
12757 #endif
12758 char zlibVersion ();
12760 main ()
12762 return zlibVersion ();
12764 return 0;
12766 _ACEOF
12767 for ac_lib in '' z; do
12768 if test -z "$ac_lib"; then
12769 ac_res="none required"
12770 else
12771 ac_res=-l$ac_lib
12772 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12774 if ac_fn_c_try_link "$LINENO"; then :
12775 ac_cv_search_zlibVersion=$ac_res
12777 rm -f core conftest.err conftest.$ac_objext \
12778 conftest$ac_exeext
12779 if test "${ac_cv_search_zlibVersion+set}" = set; then :
12780 break
12782 done
12783 if test "${ac_cv_search_zlibVersion+set}" = set; then :
12785 else
12786 ac_cv_search_zlibVersion=no
12788 rm conftest.$ac_ext
12789 LIBS=$ac_func_search_save_LIBS
12791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_zlibVersion" >&5
12792 $as_echo "$ac_cv_search_zlibVersion" >&6; }
12793 ac_res=$ac_cv_search_zlibVersion
12794 if test "$ac_res" != no; then :
12795 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12796 for ac_header in zlib.h
12797 do :
12798 ac_fn_c_check_header_mongrel "$LINENO" "zlib.h" "ac_cv_header_zlib_h" "$ac_includes_default"
12799 if test "x$ac_cv_header_zlib_h" = x""yes; then :
12800 cat >>confdefs.h <<_ACEOF
12801 #define HAVE_ZLIB_H 1
12802 _ACEOF
12806 done
12811 # When converting linker scripts into strings for use in emulation
12812 # files, use astring.sed if the compiler supports ANSI string
12813 # concatenation, or ostring.sed otherwise. This is to support the
12814 # broken Microsoft MSVC compiler, which limits the length of string
12815 # constants, while still supporting pre-ANSI compilers which do not
12816 # support string concatenation.
12817 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ANSI C string concatenation works" >&5
12818 $as_echo_n "checking whether ANSI C string concatenation works... " >&6; }
12819 if test "${ld_cv_string_concatenation+set}" = set; then :
12820 $as_echo_n "(cached) " >&6
12821 else
12822 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12823 /* end confdefs.h. */
12826 main ()
12828 char *a = "a" "a";
12830 return 0;
12832 _ACEOF
12833 if ac_fn_c_try_compile "$LINENO"; then :
12834 ld_cv_string_concatenation=yes
12835 else
12836 ld_cv_string_concatenation=no
12838 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_cv_string_concatenation" >&5
12842 $as_echo "$ld_cv_string_concatenation" >&6; }
12843 if test "$ld_cv_string_concatenation" = "yes"; then
12844 STRINGIFY=astring.sed
12845 else
12846 STRINGIFY=ostring.sed
12850 # target-specific stuff:
12852 all_targets=
12853 EMUL=
12854 all_emuls=
12855 all_emul_extras=
12856 all_libpath=
12858 rm -f tdirs
12860 for targ_alias in `echo $target_alias $enable_targets | sed 's/,/ /g'`
12862 if test "$targ_alias" = "all"; then
12863 all_targets=true
12864 else
12865 # Canonicalize the secondary target names.
12866 result=`$ac_config_sub $targ_alias 2>/dev/null`
12867 if test -n "$result"; then
12868 targ=$result
12869 else
12870 targ=$targ_alias
12873 . ${srcdir}/configure.tgt
12875 if test "$targ" = "$target"; then
12876 EMUL=$targ_emul
12879 if test x${want64} = xfalse; then
12880 . ${srcdir}/../bfd/config.bfd
12883 if test x${want64} = xtrue; then
12884 targ_extra_emuls="$targ_extra_emuls $targ64_extra_emuls"
12885 targ_extra_libpath="$targ_extra_libpath $targ64_extra_libpath"
12888 for i in $targ_emul $targ_extra_emuls $targ_extra_libpath; do
12889 case " $all_emuls " in
12890 *" e${i}.o "*) ;;
12892 all_emuls="$all_emuls e${i}.o"
12893 eval result=\$tdir_$i
12894 test -z "$result" && result=$targ_alias
12895 echo tdir_$i=$result >> tdirs
12897 esac
12898 done
12900 for i in $targ_emul $targ_extra_libpath; do
12901 case " $all_libpath " in
12902 *" ${i} "*) ;;
12904 if test -z "$all_libpath"; then
12905 all_libpath=${i}
12906 else
12907 all_libpath="$all_libpath ${i}"
12910 esac
12911 done
12913 for i in $targ_extra_ofiles; do
12914 case " $all_emul_extras " in
12915 *" ${i} "*) ;;
12917 all_emul_extras="$all_emul_extras ${i}"
12919 esac
12920 done
12922 done
12926 TDIRS=tdirs
12929 if test x${all_targets} = xtrue; then
12930 if test x${want64} = xfalse; then
12931 # The cast to long int works around a bug in the HP C Compiler
12932 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12933 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12934 # This bug is HP SR number 8606223364.
12935 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
12936 $as_echo_n "checking size of long... " >&6; }
12937 if test "${ac_cv_sizeof_long+set}" = set; then :
12938 $as_echo_n "(cached) " >&6
12939 else
12940 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then :
12942 else
12943 if test "$ac_cv_type_long" = yes; then
12944 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12945 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12946 { as_fn_set_status 77
12947 as_fn_error "cannot compute sizeof (long)
12948 See \`config.log' for more details." "$LINENO" 5; }; }
12949 else
12950 ac_cv_sizeof_long=0
12955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
12956 $as_echo "$ac_cv_sizeof_long" >&6; }
12960 cat >>confdefs.h <<_ACEOF
12961 #define SIZEOF_LONG $ac_cv_sizeof_long
12962 _ACEOF
12965 if test "x${ac_cv_sizeof_long}" = "x8"; then
12966 want64=true
12969 if test x${want64} = xtrue; then
12970 EMULATION_OFILES='$(ALL_EMULATIONS) $(ALL_64_EMULATIONS)'
12971 else
12972 EMULATION_OFILES='$(ALL_EMULATIONS)'
12974 EMUL_EXTRA_OFILES='$(ALL_EMUL_EXTRA_OFILES)'
12975 else
12976 EMULATION_OFILES=$all_emuls
12977 EMUL_EXTRA_OFILES=$all_emul_extras
12983 EMULATION_LIBPATH=$all_libpath
12986 if test x${enable_static} = xno; then
12987 TESTBFDLIB="--rpath ../bfd/.libs ../bfd/.libs/libbfd.so"
12988 else
12989 TESTBFDLIB="../bfd/.libs/libbfd.a"
12993 target_vendor=${target_vendor=$host_vendor}
12994 case "$target_vendor" in
12995 hp) EXTRA_SHLIB_EXTENSION=".sl" ;;
12996 *) EXTRA_SHLIB_EXTENSION= ;;
12997 esac
12999 case "$target_os" in
13000 lynxos) EXTRA_SHLIB_EXTENSION=".a" ;;
13001 esac
13003 if test x${EXTRA_SHLIB_EXTENSION} != x ; then
13005 cat >>confdefs.h <<_ACEOF
13006 #define EXTRA_SHLIB_EXTENSION "$EXTRA_SHLIB_EXTENSION"
13007 _ACEOF
13016 ac_config_files="$ac_config_files Makefile po/Makefile.in:po/Make-in"
13018 cat >confcache <<\_ACEOF
13019 # This file is a shell script that caches the results of configure
13020 # tests run on this system so they can be shared between configure
13021 # scripts and configure runs, see configure's option --config-cache.
13022 # It is not useful on other systems. If it contains results you don't
13023 # want to keep, you may remove or edit it.
13025 # config.status only pays attention to the cache file if you give it
13026 # the --recheck option to rerun configure.
13028 # `ac_cv_env_foo' variables (set or unset) will be overridden when
13029 # loading this file, other *unset* `ac_cv_foo' will be assigned the
13030 # following values.
13032 _ACEOF
13034 # The following way of writing the cache mishandles newlines in values,
13035 # but we know of no workaround that is simple, portable, and efficient.
13036 # So, we kill variables containing newlines.
13037 # Ultrix sh set writes to stderr and can't be redirected directly,
13038 # and sets the high bit in the cache file unless we assign to the vars.
13040 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
13041 eval ac_val=\$$ac_var
13042 case $ac_val in #(
13043 *${as_nl}*)
13044 case $ac_var in #(
13045 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
13046 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
13047 esac
13048 case $ac_var in #(
13049 _ | IFS | as_nl) ;; #(
13050 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
13051 *) { eval $ac_var=; unset $ac_var;} ;;
13052 esac ;;
13053 esac
13054 done
13056 (set) 2>&1 |
13057 case $as_nl`(ac_space=' '; set) 2>&1` in #(
13058 *${as_nl}ac_space=\ *)
13059 # `set' does not quote correctly, so add quotes: double-quote
13060 # substitution turns \\\\ into \\, and sed turns \\ into \.
13061 sed -n \
13062 "s/'/'\\\\''/g;
13063 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
13064 ;; #(
13066 # `set' quotes correctly as required by POSIX, so do not add quotes.
13067 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
13069 esac |
13070 sort
13072 sed '
13073 /^ac_cv_env_/b end
13074 t clear
13075 :clear
13076 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
13077 t end
13078 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
13079 :end' >>confcache
13080 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
13081 if test -w "$cache_file"; then
13082 test "x$cache_file" != "x/dev/null" &&
13083 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
13084 $as_echo "$as_me: updating cache $cache_file" >&6;}
13085 cat confcache >$cache_file
13086 else
13087 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
13088 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
13091 rm -f confcache
13093 test "x$prefix" = xNONE && prefix=$ac_default_prefix
13094 # Let make expand exec_prefix.
13095 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
13097 DEFS=-DHAVE_CONFIG_H
13099 ac_libobjs=
13100 ac_ltlibobjs=
13101 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
13102 # 1. Remove the extension, and $U if already installed.
13103 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
13104 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
13105 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
13106 # will be set to the directory where LIBOBJS objects are built.
13107 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
13108 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
13109 done
13110 LIBOBJS=$ac_libobjs
13112 LTLIBOBJS=$ac_ltlibobjs
13115 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
13116 as_fn_error "conditional \"AMDEP\" was never defined.
13117 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13119 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
13120 as_fn_error "conditional \"am__fastdepCC\" was never defined.
13121 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13123 if test -n "$EXEEXT"; then
13124 am__EXEEXT_TRUE=
13125 am__EXEEXT_FALSE='#'
13126 else
13127 am__EXEEXT_TRUE='#'
13128 am__EXEEXT_FALSE=
13131 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
13132 as_fn_error "conditional \"MAINTAINER_MODE\" was never defined.
13133 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13135 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
13136 as_fn_error "conditional \"MAINTAINER_MODE\" was never defined.
13137 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13139 if test -z "${GENINSRC_NEVER_TRUE}" && test -z "${GENINSRC_NEVER_FALSE}"; then
13140 as_fn_error "conditional \"GENINSRC_NEVER\" was never defined.
13141 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13144 : ${CONFIG_STATUS=./config.status}
13145 ac_write_fail=0
13146 ac_clean_files_save=$ac_clean_files
13147 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
13148 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
13149 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
13150 as_write_fail=0
13151 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
13152 #! $SHELL
13153 # Generated by $as_me.
13154 # Run this file to recreate the current configuration.
13155 # Compiler output produced by configure, useful for debugging
13156 # configure, is in config.log if it exists.
13158 debug=false
13159 ac_cs_recheck=false
13160 ac_cs_silent=false
13162 SHELL=\${CONFIG_SHELL-$SHELL}
13163 export SHELL
13164 _ASEOF
13165 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
13166 ## -------------------- ##
13167 ## M4sh Initialization. ##
13168 ## -------------------- ##
13170 # Be more Bourne compatible
13171 DUALCASE=1; export DUALCASE # for MKS sh
13172 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
13173 emulate sh
13174 NULLCMD=:
13175 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
13176 # is contrary to our usage. Disable this feature.
13177 alias -g '${1+"$@"}'='"$@"'
13178 setopt NO_GLOB_SUBST
13179 else
13180 case `(set -o) 2>/dev/null` in #(
13181 *posix*) :
13182 set -o posix ;; #(
13183 *) :
13185 esac
13189 as_nl='
13191 export as_nl
13192 # Printing a long string crashes Solaris 7 /usr/bin/printf.
13193 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
13194 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
13195 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
13196 # Prefer a ksh shell builtin over an external printf program on Solaris,
13197 # but without wasting forks for bash or zsh.
13198 if test -z "$BASH_VERSION$ZSH_VERSION" \
13199 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
13200 as_echo='print -r --'
13201 as_echo_n='print -rn --'
13202 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
13203 as_echo='printf %s\n'
13204 as_echo_n='printf %s'
13205 else
13206 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
13207 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
13208 as_echo_n='/usr/ucb/echo -n'
13209 else
13210 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
13211 as_echo_n_body='eval
13212 arg=$1;
13213 case $arg in #(
13214 *"$as_nl"*)
13215 expr "X$arg" : "X\\(.*\\)$as_nl";
13216 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
13217 esac;
13218 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
13220 export as_echo_n_body
13221 as_echo_n='sh -c $as_echo_n_body as_echo'
13223 export as_echo_body
13224 as_echo='sh -c $as_echo_body as_echo'
13227 # The user is always right.
13228 if test "${PATH_SEPARATOR+set}" != set; then
13229 PATH_SEPARATOR=:
13230 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
13231 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
13232 PATH_SEPARATOR=';'
13237 # IFS
13238 # We need space, tab and new line, in precisely that order. Quoting is
13239 # there to prevent editors from complaining about space-tab.
13240 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
13241 # splitting by setting IFS to empty value.)
13242 IFS=" "" $as_nl"
13244 # Find who we are. Look in the path if we contain no directory separator.
13245 case $0 in #((
13246 *[\\/]* ) as_myself=$0 ;;
13247 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13248 for as_dir in $PATH
13250 IFS=$as_save_IFS
13251 test -z "$as_dir" && as_dir=.
13252 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
13253 done
13254 IFS=$as_save_IFS
13257 esac
13258 # We did not find ourselves, most probably we were run as `sh COMMAND'
13259 # in which case we are not to be found in the path.
13260 if test "x$as_myself" = x; then
13261 as_myself=$0
13263 if test ! -f "$as_myself"; then
13264 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
13265 exit 1
13268 # Unset variables that we do not need and which cause bugs (e.g. in
13269 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
13270 # suppresses any "Segmentation fault" message there. '((' could
13271 # trigger a bug in pdksh 5.2.14.
13272 for as_var in BASH_ENV ENV MAIL MAILPATH
13273 do eval test x\${$as_var+set} = xset \
13274 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
13275 done
13276 PS1='$ '
13277 PS2='> '
13278 PS4='+ '
13280 # NLS nuisances.
13281 LC_ALL=C
13282 export LC_ALL
13283 LANGUAGE=C
13284 export LANGUAGE
13286 # CDPATH.
13287 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
13290 # as_fn_error ERROR [LINENO LOG_FD]
13291 # ---------------------------------
13292 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
13293 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
13294 # script with status $?, using 1 if that was 0.
13295 as_fn_error ()
13297 as_status=$?; test $as_status -eq 0 && as_status=1
13298 if test "$3"; then
13299 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
13300 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
13302 $as_echo "$as_me: error: $1" >&2
13303 as_fn_exit $as_status
13304 } # as_fn_error
13307 # as_fn_set_status STATUS
13308 # -----------------------
13309 # Set $? to STATUS, without forking.
13310 as_fn_set_status ()
13312 return $1
13313 } # as_fn_set_status
13315 # as_fn_exit STATUS
13316 # -----------------
13317 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
13318 as_fn_exit ()
13320 set +e
13321 as_fn_set_status $1
13322 exit $1
13323 } # as_fn_exit
13325 # as_fn_unset VAR
13326 # ---------------
13327 # Portably unset VAR.
13328 as_fn_unset ()
13330 { eval $1=; unset $1;}
13332 as_unset=as_fn_unset
13333 # as_fn_append VAR VALUE
13334 # ----------------------
13335 # Append the text in VALUE to the end of the definition contained in VAR. Take
13336 # advantage of any shell optimizations that allow amortized linear growth over
13337 # repeated appends, instead of the typical quadratic growth present in naive
13338 # implementations.
13339 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
13340 eval 'as_fn_append ()
13342 eval $1+=\$2
13344 else
13345 as_fn_append ()
13347 eval $1=\$$1\$2
13349 fi # as_fn_append
13351 # as_fn_arith ARG...
13352 # ------------------
13353 # Perform arithmetic evaluation on the ARGs, and store the result in the
13354 # global $as_val. Take advantage of shells that can avoid forks. The arguments
13355 # must be portable across $(()) and expr.
13356 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
13357 eval 'as_fn_arith ()
13359 as_val=$(( $* ))
13361 else
13362 as_fn_arith ()
13364 as_val=`expr "$@" || test $? -eq 1`
13366 fi # as_fn_arith
13369 if expr a : '\(a\)' >/dev/null 2>&1 &&
13370 test "X`expr 00001 : '.*\(...\)'`" = X001; then
13371 as_expr=expr
13372 else
13373 as_expr=false
13376 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
13377 as_basename=basename
13378 else
13379 as_basename=false
13382 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
13383 as_dirname=dirname
13384 else
13385 as_dirname=false
13388 as_me=`$as_basename -- "$0" ||
13389 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
13390 X"$0" : 'X\(//\)$' \| \
13391 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
13392 $as_echo X/"$0" |
13393 sed '/^.*\/\([^/][^/]*\)\/*$/{
13394 s//\1/
13397 /^X\/\(\/\/\)$/{
13398 s//\1/
13401 /^X\/\(\/\).*/{
13402 s//\1/
13405 s/.*/./; q'`
13407 # Avoid depending upon Character Ranges.
13408 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
13409 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
13410 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
13411 as_cr_digits='0123456789'
13412 as_cr_alnum=$as_cr_Letters$as_cr_digits
13414 ECHO_C= ECHO_N= ECHO_T=
13415 case `echo -n x` in #(((((
13416 -n*)
13417 case `echo 'xy\c'` in
13418 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
13419 xy) ECHO_C='\c';;
13420 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
13421 ECHO_T=' ';;
13422 esac;;
13424 ECHO_N='-n';;
13425 esac
13427 rm -f conf$$ conf$$.exe conf$$.file
13428 if test -d conf$$.dir; then
13429 rm -f conf$$.dir/conf$$.file
13430 else
13431 rm -f conf$$.dir
13432 mkdir conf$$.dir 2>/dev/null
13434 if (echo >conf$$.file) 2>/dev/null; then
13435 if ln -s conf$$.file conf$$ 2>/dev/null; then
13436 as_ln_s='ln -s'
13437 # ... but there are two gotchas:
13438 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
13439 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
13440 # In both cases, we have to default to `cp -p'.
13441 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
13442 as_ln_s='cp -p'
13443 elif ln conf$$.file conf$$ 2>/dev/null; then
13444 as_ln_s=ln
13445 else
13446 as_ln_s='cp -p'
13448 else
13449 as_ln_s='cp -p'
13451 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
13452 rmdir conf$$.dir 2>/dev/null
13455 # as_fn_mkdir_p
13456 # -------------
13457 # Create "$as_dir" as a directory, including parents if necessary.
13458 as_fn_mkdir_p ()
13461 case $as_dir in #(
13462 -*) as_dir=./$as_dir;;
13463 esac
13464 test -d "$as_dir" || eval $as_mkdir_p || {
13465 as_dirs=
13466 while :; do
13467 case $as_dir in #(
13468 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
13469 *) as_qdir=$as_dir;;
13470 esac
13471 as_dirs="'$as_qdir' $as_dirs"
13472 as_dir=`$as_dirname -- "$as_dir" ||
13473 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13474 X"$as_dir" : 'X\(//\)[^/]' \| \
13475 X"$as_dir" : 'X\(//\)$' \| \
13476 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
13477 $as_echo X"$as_dir" |
13478 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13479 s//\1/
13482 /^X\(\/\/\)[^/].*/{
13483 s//\1/
13486 /^X\(\/\/\)$/{
13487 s//\1/
13490 /^X\(\/\).*/{
13491 s//\1/
13494 s/.*/./; q'`
13495 test -d "$as_dir" && break
13496 done
13497 test -z "$as_dirs" || eval "mkdir $as_dirs"
13498 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
13501 } # as_fn_mkdir_p
13502 if mkdir -p . 2>/dev/null; then
13503 as_mkdir_p='mkdir -p "$as_dir"'
13504 else
13505 test -d ./-p && rmdir ./-p
13506 as_mkdir_p=false
13509 if test -x / >/dev/null 2>&1; then
13510 as_test_x='test -x'
13511 else
13512 if ls -dL / >/dev/null 2>&1; then
13513 as_ls_L_option=L
13514 else
13515 as_ls_L_option=
13517 as_test_x='
13518 eval sh -c '\''
13519 if test -d "$1"; then
13520 test -d "$1/.";
13521 else
13522 case $1 in #(
13523 -*)set "./$1";;
13524 esac;
13525 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
13526 ???[sx]*):;;*)false;;esac;fi
13527 '\'' sh
13530 as_executable_p=$as_test_x
13532 # Sed expression to map a string onto a valid CPP name.
13533 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
13535 # Sed expression to map a string onto a valid variable name.
13536 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
13539 exec 6>&1
13540 ## ----------------------------------- ##
13541 ## Main body of $CONFIG_STATUS script. ##
13542 ## ----------------------------------- ##
13543 _ASEOF
13544 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
13546 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13547 # Save the log message, to keep $0 and so on meaningful, and to
13548 # report actual input values of CONFIG_FILES etc. instead of their
13549 # values after options handling.
13550 ac_log="
13551 This file was extended by $as_me, which was
13552 generated by GNU Autoconf 2.64. Invocation command line was
13554 CONFIG_FILES = $CONFIG_FILES
13555 CONFIG_HEADERS = $CONFIG_HEADERS
13556 CONFIG_LINKS = $CONFIG_LINKS
13557 CONFIG_COMMANDS = $CONFIG_COMMANDS
13558 $ $0 $@
13560 on `(hostname || uname -n) 2>/dev/null | sed 1q`
13563 _ACEOF
13565 case $ac_config_files in *"
13566 "*) set x $ac_config_files; shift; ac_config_files=$*;;
13567 esac
13569 case $ac_config_headers in *"
13570 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
13571 esac
13574 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13575 # Files that config.status was made for.
13576 config_files="$ac_config_files"
13577 config_headers="$ac_config_headers"
13578 config_commands="$ac_config_commands"
13580 _ACEOF
13582 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13583 ac_cs_usage="\
13584 \`$as_me' instantiates files and other configuration actions
13585 from templates according to the current configuration. Unless the files
13586 and actions are specified as TAGs, all are instantiated by default.
13588 Usage: $0 [OPTION]... [TAG]...
13590 -h, --help print this help, then exit
13591 -V, --version print version number and configuration settings, then exit
13592 -q, --quiet, --silent
13593 do not print progress messages
13594 -d, --debug don't remove temporary files
13595 --recheck update $as_me by reconfiguring in the same conditions
13596 --file=FILE[:TEMPLATE]
13597 instantiate the configuration file FILE
13598 --header=FILE[:TEMPLATE]
13599 instantiate the configuration header FILE
13601 Configuration files:
13602 $config_files
13604 Configuration headers:
13605 $config_headers
13607 Configuration commands:
13608 $config_commands
13610 Report bugs to the package provider."
13612 _ACEOF
13613 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13614 ac_cs_version="\\
13615 config.status
13616 configured by $0, generated by GNU Autoconf 2.64,
13617 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
13619 Copyright (C) 2009 Free Software Foundation, Inc.
13620 This config.status script is free software; the Free Software Foundation
13621 gives unlimited permission to copy, distribute and modify it."
13623 ac_pwd='$ac_pwd'
13624 srcdir='$srcdir'
13625 INSTALL='$INSTALL'
13626 MKDIR_P='$MKDIR_P'
13627 AWK='$AWK'
13628 test -n "\$AWK" || AWK=awk
13629 _ACEOF
13631 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13632 # The default lists apply if the user does not specify any file.
13633 ac_need_defaults=:
13634 while test $# != 0
13636 case $1 in
13637 --*=*)
13638 ac_option=`expr "X$1" : 'X\([^=]*\)='`
13639 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
13640 ac_shift=:
13643 ac_option=$1
13644 ac_optarg=$2
13645 ac_shift=shift
13647 esac
13649 case $ac_option in
13650 # Handling of the options.
13651 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
13652 ac_cs_recheck=: ;;
13653 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
13654 $as_echo "$ac_cs_version"; exit ;;
13655 --debug | --debu | --deb | --de | --d | -d )
13656 debug=: ;;
13657 --file | --fil | --fi | --f )
13658 $ac_shift
13659 case $ac_optarg in
13660 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
13661 esac
13662 as_fn_append CONFIG_FILES " '$ac_optarg'"
13663 ac_need_defaults=false;;
13664 --header | --heade | --head | --hea )
13665 $ac_shift
13666 case $ac_optarg in
13667 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
13668 esac
13669 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
13670 ac_need_defaults=false;;
13671 --he | --h)
13672 # Conflict between --help and --header
13673 as_fn_error "ambiguous option: \`$1'
13674 Try \`$0 --help' for more information.";;
13675 --help | --hel | -h )
13676 $as_echo "$ac_cs_usage"; exit ;;
13677 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
13678 | -silent | --silent | --silen | --sile | --sil | --si | --s)
13679 ac_cs_silent=: ;;
13681 # This is an error.
13682 -*) as_fn_error "unrecognized option: \`$1'
13683 Try \`$0 --help' for more information." ;;
13685 *) as_fn_append ac_config_targets " $1"
13686 ac_need_defaults=false ;;
13688 esac
13689 shift
13690 done
13692 ac_configure_extra_args=
13694 if $ac_cs_silent; then
13695 exec 6>/dev/null
13696 ac_configure_extra_args="$ac_configure_extra_args --silent"
13699 _ACEOF
13700 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13701 if \$ac_cs_recheck; then
13702 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
13703 shift
13704 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
13705 CONFIG_SHELL='$SHELL'
13706 export CONFIG_SHELL
13707 exec "\$@"
13710 _ACEOF
13711 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13712 exec 5>>config.log
13714 echo
13715 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
13716 ## Running $as_me. ##
13717 _ASBOX
13718 $as_echo "$ac_log"
13719 } >&5
13721 _ACEOF
13722 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13724 # INIT-COMMANDS
13726 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
13729 # The HP-UX ksh and POSIX shell print the target directory to stdout
13730 # if CDPATH is set.
13731 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
13733 sed_quote_subst='$sed_quote_subst'
13734 double_quote_subst='$double_quote_subst'
13735 delay_variable_subst='$delay_variable_subst'
13736 macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
13737 macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
13738 enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
13739 enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
13740 pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
13741 enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
13742 host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
13743 host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`'
13744 host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`'
13745 build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`'
13746 build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`'
13747 build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`'
13748 SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
13749 Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
13750 GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
13751 EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
13752 FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`'
13753 LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
13754 NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
13755 LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
13756 max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
13757 ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
13758 exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
13759 lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`'
13760 lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`'
13761 lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`'
13762 reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
13763 reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13764 OBJDUMP='`$ECHO "X$OBJDUMP" | $Xsed -e "$delay_single_quote_subst"`'
13765 deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
13766 file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
13767 AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
13768 AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
13769 STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
13770 RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
13771 old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13772 old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13773 old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13774 CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
13775 CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`'
13776 compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
13777 GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
13778 lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
13779 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
13780 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"`'
13781 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"`'
13782 objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
13783 SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
13784 ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`'
13785 MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
13786 lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
13787 lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
13788 lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
13789 lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
13790 lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
13791 need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
13792 DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`'
13793 NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`'
13794 LIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`'
13795 OTOOL='`$ECHO "X$OTOOL" | $Xsed -e "$delay_single_quote_subst"`'
13796 OTOOL64='`$ECHO "X$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`'
13797 libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
13798 shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13799 extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13800 archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
13801 enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
13802 export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
13803 whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
13804 compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`'
13805 old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13806 old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13807 archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13808 archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13809 module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13810 module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13811 with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`'
13812 allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
13813 no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
13814 hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
13815 hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
13816 hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
13817 hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
13818 hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`'
13819 hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
13820 hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
13821 hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
13822 inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
13823 link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
13824 fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
13825 always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
13826 export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13827 exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
13828 include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
13829 prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13830 file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`'
13831 variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
13832 need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
13833 need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
13834 version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
13835 runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
13836 shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
13837 shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
13838 libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
13839 library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
13840 soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
13841 postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13842 postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13843 finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13844 finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
13845 hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
13846 sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
13847 sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
13848 hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
13849 enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
13850 enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
13851 enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
13852 old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
13853 striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
13855 LTCC='$LTCC'
13856 LTCFLAGS='$LTCFLAGS'
13857 compiler='$compiler_DEFAULT'
13859 # Quote evaled strings.
13860 for var in SED \
13861 GREP \
13862 EGREP \
13863 FGREP \
13864 LD \
13865 NM \
13866 LN_S \
13867 lt_SP2NL \
13868 lt_NL2SP \
13869 reload_flag \
13870 OBJDUMP \
13871 deplibs_check_method \
13872 file_magic_cmd \
13873 AR \
13874 AR_FLAGS \
13875 STRIP \
13876 RANLIB \
13877 CC \
13878 CFLAGS \
13879 compiler \
13880 lt_cv_sys_global_symbol_pipe \
13881 lt_cv_sys_global_symbol_to_cdecl \
13882 lt_cv_sys_global_symbol_to_c_name_address \
13883 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
13884 SHELL \
13885 ECHO \
13886 lt_prog_compiler_no_builtin_flag \
13887 lt_prog_compiler_wl \
13888 lt_prog_compiler_pic \
13889 lt_prog_compiler_static \
13890 lt_cv_prog_compiler_c_o \
13891 need_locks \
13892 DSYMUTIL \
13893 NMEDIT \
13894 LIPO \
13895 OTOOL \
13896 OTOOL64 \
13897 shrext_cmds \
13898 export_dynamic_flag_spec \
13899 whole_archive_flag_spec \
13900 compiler_needs_object \
13901 with_gnu_ld \
13902 allow_undefined_flag \
13903 no_undefined_flag \
13904 hardcode_libdir_flag_spec \
13905 hardcode_libdir_flag_spec_ld \
13906 hardcode_libdir_separator \
13907 fix_srcfile_path \
13908 exclude_expsyms \
13909 include_expsyms \
13910 file_list_spec \
13911 variables_saved_for_relink \
13912 libname_spec \
13913 library_names_spec \
13914 soname_spec \
13915 finish_eval \
13916 old_striplib \
13917 striplib; do
13918 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
13919 *[\\\\\\\`\\"\\\$]*)
13920 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
13923 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
13925 esac
13926 done
13928 # Double-quote double-evaled strings.
13929 for var in reload_cmds \
13930 old_postinstall_cmds \
13931 old_postuninstall_cmds \
13932 old_archive_cmds \
13933 extract_expsyms_cmds \
13934 old_archive_from_new_cmds \
13935 old_archive_from_expsyms_cmds \
13936 archive_cmds \
13937 archive_expsym_cmds \
13938 module_cmds \
13939 module_expsym_cmds \
13940 export_symbols_cmds \
13941 prelink_cmds \
13942 postinstall_cmds \
13943 postuninstall_cmds \
13944 finish_cmds \
13945 sys_lib_search_path_spec \
13946 sys_lib_dlsearch_path_spec; do
13947 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
13948 *[\\\\\\\`\\"\\\$]*)
13949 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
13952 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
13954 esac
13955 done
13957 # Fix-up fallback echo if it was mangled by the above quoting rules.
13958 case \$lt_ECHO in
13959 *'\\\$0 --fallback-echo"') lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
13961 esac
13963 ac_aux_dir='$ac_aux_dir'
13964 xsi_shell='$xsi_shell'
13965 lt_shell_append='$lt_shell_append'
13967 # See if we are running on zsh, and set the options which allow our
13968 # commands through without removal of \ escapes INIT.
13969 if test -n "\${ZSH_VERSION+set}" ; then
13970 setopt NO_GLOB_SUBST
13974 PACKAGE='$PACKAGE'
13975 VERSION='$VERSION'
13976 TIMESTAMP='$TIMESTAMP'
13977 RM='$RM'
13978 ofile='$ofile'
13982 # Capture the value of obsolete ALL_LINGUAS because we need it to compute
13983 # POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES, CATALOGS. But hide it
13984 # from automake.
13985 eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
13986 # Capture the value of LINGUAS because we need it to compute CATALOGS.
13987 LINGUAS="${LINGUAS-%UNSET%}"
13990 _ACEOF
13992 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13994 # Handling of arguments.
13995 for ac_config_target in $ac_config_targets
13997 case $ac_config_target in
13998 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
13999 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h:config.in" ;;
14000 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
14001 "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
14002 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
14003 "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in:po/Make-in" ;;
14005 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
14006 esac
14007 done
14010 # If the user did not use the arguments to specify the items to instantiate,
14011 # then the envvar interface is used. Set only those that are not.
14012 # We use the long form for the default assignment because of an extremely
14013 # bizarre bug on SunOS 4.1.3.
14014 if $ac_need_defaults; then
14015 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
14016 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
14017 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
14020 # Have a temporary directory for convenience. Make it in the build tree
14021 # simply because there is no reason against having it here, and in addition,
14022 # creating and moving files from /tmp can sometimes cause problems.
14023 # Hook for its removal unless debugging.
14024 # Note that there is a small window in which the directory will not be cleaned:
14025 # after its creation but before its name has been assigned to `$tmp'.
14026 $debug ||
14028 tmp=
14029 trap 'exit_status=$?
14030 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
14032 trap 'as_fn_exit 1' 1 2 13 15
14034 # Create a (secure) tmp directory for tmp files.
14037 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
14038 test -n "$tmp" && test -d "$tmp"
14039 } ||
14041 tmp=./conf$$-$RANDOM
14042 (umask 077 && mkdir "$tmp")
14043 } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
14045 # Set up the scripts for CONFIG_FILES section.
14046 # No need to generate them if there are no CONFIG_FILES.
14047 # This happens for instance with `./config.status config.h'.
14048 if test -n "$CONFIG_FILES"; then
14050 if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then
14051 ac_cs_awk_getline=:
14052 ac_cs_awk_pipe_init=
14053 ac_cs_awk_read_file='
14054 while ((getline aline < (F[key])) > 0)
14055 print(aline)
14056 close(F[key])'
14057 ac_cs_awk_pipe_fini=
14058 else
14059 ac_cs_awk_getline=false
14060 ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\""
14061 ac_cs_awk_read_file='
14062 print "|#_!!_#|"
14063 print "cat " F[key] " &&"
14064 '$ac_cs_awk_pipe_init
14065 # The final `:' finishes the AND list.
14066 ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }'
14068 ac_cr=`echo X | tr X '\015'`
14069 # On cygwin, bash can eat \r inside `` if the user requested igncr.
14070 # But we know of no other shell where ac_cr would be empty at this
14071 # point, so we can use a bashism as a fallback.
14072 if test "x$ac_cr" = x; then
14073 eval ac_cr=\$\'\\r\'
14075 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
14076 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
14077 ac_cs_awk_cr='\r'
14078 else
14079 ac_cs_awk_cr=$ac_cr
14082 echo 'BEGIN {' >"$tmp/subs1.awk" &&
14083 _ACEOF
14085 # Create commands to substitute file output variables.
14087 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
14088 echo 'cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&' &&
14089 echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' &&
14090 echo "_ACAWK" &&
14091 echo "_ACEOF"
14092 } >conf$$files.sh &&
14093 . ./conf$$files.sh ||
14094 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
14095 rm -f conf$$files.sh
14098 echo "cat >conf$$subs.awk <<_ACEOF" &&
14099 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
14100 echo "_ACEOF"
14101 } >conf$$subs.sh ||
14102 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
14103 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
14104 ac_delim='%!_!# '
14105 for ac_last_try in false false false false false :; do
14106 . ./conf$$subs.sh ||
14107 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
14109 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
14110 if test $ac_delim_n = $ac_delim_num; then
14111 break
14112 elif $ac_last_try; then
14113 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
14114 else
14115 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
14117 done
14118 rm -f conf$$subs.sh
14120 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14121 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
14122 _ACEOF
14123 sed -n '
14125 s/^/S["/; s/!.*/"]=/
14128 s/^[^!]*!//
14129 :repl
14130 t repl
14131 s/'"$ac_delim"'$//
14132 t delim
14135 s/\(.\{148\}\).*/\1/
14136 t more1
14137 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
14140 b repl
14141 :more1
14142 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
14145 s/.\{148\}//
14146 t nl
14147 :delim
14149 s/\(.\{148\}\).*/\1/
14150 t more2
14151 s/["\\]/\\&/g; s/^/"/; s/$/"/
14154 :more2
14155 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
14158 s/.\{148\}//
14159 t delim
14160 ' <conf$$subs.awk | sed '
14161 /^[^""]/{
14163 s/\n//
14165 ' >>$CONFIG_STATUS || ac_write_fail=1
14166 rm -f conf$$subs.awk
14167 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14168 _ACAWK
14169 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
14170 for (key in S) S_is_set[key] = 1
14171 FS = "\a"
14172 \$ac_cs_awk_pipe_init
14175 line = $ 0
14176 nfields = split(line, field, "@")
14177 substed = 0
14178 len = length(field[1])
14179 for (i = 2; i < nfields; i++) {
14180 key = field[i]
14181 keylen = length(key)
14182 if (S_is_set[key]) {
14183 value = S[key]
14184 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
14185 len += length(value) + length(field[++i])
14186 substed = 1
14187 } else
14188 len += 1 + keylen
14190 if (nfields == 3 && !substed) {
14191 key = field[2]
14192 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) {
14193 \$ac_cs_awk_read_file
14194 next
14197 print line
14199 \$ac_cs_awk_pipe_fini
14200 _ACAWK
14201 _ACEOF
14202 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14203 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
14204 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
14205 else
14207 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
14208 || as_fn_error "could not setup config files machinery" "$LINENO" 5
14209 _ACEOF
14211 # VPATH may cause trouble with some makes, so we remove $(srcdir),
14212 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
14213 # trailing colons and then remove the whole line if VPATH becomes empty
14214 # (actually we leave an empty line to preserve line numbers).
14215 if test "x$srcdir" = x.; then
14216 ac_vpsub='/^[ ]*VPATH[ ]*=/{
14217 s/:*\$(srcdir):*/:/
14218 s/:*\${srcdir}:*/:/
14219 s/:*@srcdir@:*/:/
14220 s/^\([^=]*=[ ]*\):*/\1/
14221 s/:*$//
14222 s/^[^=]*=[ ]*$//
14226 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14227 fi # test -n "$CONFIG_FILES"
14229 # Set up the scripts for CONFIG_HEADERS section.
14230 # No need to generate them if there are no CONFIG_HEADERS.
14231 # This happens for instance with `./config.status Makefile'.
14232 if test -n "$CONFIG_HEADERS"; then
14233 cat >"$tmp/defines.awk" <<\_ACAWK ||
14234 BEGIN {
14235 _ACEOF
14237 # Transform confdefs.h into an awk script `defines.awk', embedded as
14238 # here-document in config.status, that substitutes the proper values into
14239 # config.h.in to produce config.h.
14241 # Create a delimiter string that does not exist in confdefs.h, to ease
14242 # handling of long lines.
14243 ac_delim='%!_!# '
14244 for ac_last_try in false false :; do
14245 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
14246 if test -z "$ac_t"; then
14247 break
14248 elif $ac_last_try; then
14249 as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
14250 else
14251 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
14253 done
14255 # For the awk script, D is an array of macro values keyed by name,
14256 # likewise P contains macro parameters if any. Preserve backslash
14257 # newline sequences.
14259 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
14260 sed -n '
14261 s/.\{148\}/&'"$ac_delim"'/g
14262 t rset
14263 :rset
14264 s/^[ ]*#[ ]*define[ ][ ]*/ /
14265 t def
14267 :def
14268 s/\\$//
14269 t bsnl
14270 s/["\\]/\\&/g
14271 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
14272 D["\1"]=" \3"/p
14273 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
14275 :bsnl
14276 s/["\\]/\\&/g
14277 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
14278 D["\1"]=" \3\\\\\\n"\\/p
14279 t cont
14280 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
14281 t cont
14283 :cont
14285 s/.\{148\}/&'"$ac_delim"'/g
14286 t clear
14287 :clear
14288 s/\\$//
14289 t bsnlc
14290 s/["\\]/\\&/g; s/^/"/; s/$/"/p
14292 :bsnlc
14293 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
14294 b cont
14295 ' <confdefs.h | sed '
14296 s/'"$ac_delim"'/"\\\
14297 "/g' >>$CONFIG_STATUS || ac_write_fail=1
14299 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14300 for (key in D) D_is_set[key] = 1
14301 FS = "\a"
14303 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
14304 line = \$ 0
14305 split(line, arg, " ")
14306 if (arg[1] == "#") {
14307 defundef = arg[2]
14308 mac1 = arg[3]
14309 } else {
14310 defundef = substr(arg[1], 2)
14311 mac1 = arg[2]
14313 split(mac1, mac2, "(") #)
14314 macro = mac2[1]
14315 prefix = substr(line, 1, index(line, defundef) - 1)
14316 if (D_is_set[macro]) {
14317 # Preserve the white space surrounding the "#".
14318 print prefix "define", macro P[macro] D[macro]
14319 next
14320 } else {
14321 # Replace #undef with comments. This is necessary, for example,
14322 # in the case of _POSIX_SOURCE, which is predefined and required
14323 # on some systems where configure will not decide to define it.
14324 if (defundef == "undef") {
14325 print "/*", prefix defundef, macro, "*/"
14326 next
14330 { print }
14331 _ACAWK
14332 _ACEOF
14333 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14334 as_fn_error "could not setup config headers machinery" "$LINENO" 5
14335 fi # test -n "$CONFIG_HEADERS"
14338 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
14339 shift
14340 for ac_tag
14342 case $ac_tag in
14343 :[FHLC]) ac_mode=$ac_tag; continue;;
14344 esac
14345 case $ac_mode$ac_tag in
14346 :[FHL]*:*);;
14347 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
14348 :[FH]-) ac_tag=-:-;;
14349 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
14350 esac
14351 ac_save_IFS=$IFS
14352 IFS=:
14353 set x $ac_tag
14354 IFS=$ac_save_IFS
14355 shift
14356 ac_file=$1
14357 shift
14359 case $ac_mode in
14360 :L) ac_source=$1;;
14361 :[FH])
14362 ac_file_inputs=
14363 for ac_f
14365 case $ac_f in
14366 -) ac_f="$tmp/stdin";;
14367 *) # Look for the file first in the build tree, then in the source tree
14368 # (if the path is not absolute). The absolute path cannot be DOS-style,
14369 # because $ac_f cannot contain `:'.
14370 test -f "$ac_f" ||
14371 case $ac_f in
14372 [\\/$]*) false;;
14373 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
14374 esac ||
14375 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
14376 esac
14377 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
14378 as_fn_append ac_file_inputs " '$ac_f'"
14379 done
14381 # Let's still pretend it is `configure' which instantiates (i.e., don't
14382 # use $as_me), people would be surprised to read:
14383 # /* config.h. Generated by config.status. */
14384 configure_input='Generated from '`
14385 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
14386 `' by configure.'
14387 if test x"$ac_file" != x-; then
14388 configure_input="$ac_file. $configure_input"
14389 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
14390 $as_echo "$as_me: creating $ac_file" >&6;}
14392 # Neutralize special characters interpreted by sed in replacement strings.
14393 case $configure_input in #(
14394 *\&* | *\|* | *\\* )
14395 ac_sed_conf_input=`$as_echo "$configure_input" |
14396 sed 's/[\\\\&|]/\\\\&/g'`;; #(
14397 *) ac_sed_conf_input=$configure_input;;
14398 esac
14400 case $ac_tag in
14401 *:-:* | *:-) cat >"$tmp/stdin" \
14402 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
14403 esac
14405 esac
14407 ac_dir=`$as_dirname -- "$ac_file" ||
14408 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14409 X"$ac_file" : 'X\(//\)[^/]' \| \
14410 X"$ac_file" : 'X\(//\)$' \| \
14411 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
14412 $as_echo X"$ac_file" |
14413 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14414 s//\1/
14417 /^X\(\/\/\)[^/].*/{
14418 s//\1/
14421 /^X\(\/\/\)$/{
14422 s//\1/
14425 /^X\(\/\).*/{
14426 s//\1/
14429 s/.*/./; q'`
14430 as_dir="$ac_dir"; as_fn_mkdir_p
14431 ac_builddir=.
14433 case "$ac_dir" in
14434 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
14436 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
14437 # A ".." for each directory in $ac_dir_suffix.
14438 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
14439 case $ac_top_builddir_sub in
14440 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
14441 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
14442 esac ;;
14443 esac
14444 ac_abs_top_builddir=$ac_pwd
14445 ac_abs_builddir=$ac_pwd$ac_dir_suffix
14446 # for backward compatibility:
14447 ac_top_builddir=$ac_top_build_prefix
14449 case $srcdir in
14450 .) # We are building in place.
14451 ac_srcdir=.
14452 ac_top_srcdir=$ac_top_builddir_sub
14453 ac_abs_top_srcdir=$ac_pwd ;;
14454 [\\/]* | ?:[\\/]* ) # Absolute name.
14455 ac_srcdir=$srcdir$ac_dir_suffix;
14456 ac_top_srcdir=$srcdir
14457 ac_abs_top_srcdir=$srcdir ;;
14458 *) # Relative name.
14459 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
14460 ac_top_srcdir=$ac_top_build_prefix$srcdir
14461 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
14462 esac
14463 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
14466 case $ac_mode in
14469 # CONFIG_FILE
14472 case $INSTALL in
14473 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
14474 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
14475 esac
14476 ac_MKDIR_P=$MKDIR_P
14477 case $MKDIR_P in
14478 [\\/$]* | ?:[\\/]* ) ;;
14479 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
14480 esac
14481 _ACEOF
14483 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14484 # If the template does not know about datarootdir, expand it.
14485 # FIXME: This hack should be removed a few years after 2.60.
14486 ac_datarootdir_hack=; ac_datarootdir_seen=
14487 ac_sed_dataroot='
14488 /datarootdir/ {
14492 /@datadir@/p
14493 /@docdir@/p
14494 /@infodir@/p
14495 /@localedir@/p
14496 /@mandir@/p'
14497 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
14498 *datarootdir*) ac_datarootdir_seen=yes;;
14499 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
14500 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
14501 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
14502 _ACEOF
14503 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14504 ac_datarootdir_hack='
14505 s&@datadir@&$datadir&g
14506 s&@docdir@&$docdir&g
14507 s&@infodir@&$infodir&g
14508 s&@localedir@&$localedir&g
14509 s&@mandir@&$mandir&g
14510 s&\\\${datarootdir}&$datarootdir&g' ;;
14511 esac
14512 _ACEOF
14514 # Neutralize VPATH when `$srcdir' = `.'.
14515 # Shell code in configure.ac might set extrasub.
14516 # FIXME: do we really want to maintain this feature?
14517 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14518 ac_sed_extra="$ac_vpsub
14519 $extrasub
14520 _ACEOF
14521 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14523 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
14524 s|@configure_input@|$ac_sed_conf_input|;t t
14525 s&@top_builddir@&$ac_top_builddir_sub&;t t
14526 s&@top_build_prefix@&$ac_top_build_prefix&;t t
14527 s&@srcdir@&$ac_srcdir&;t t
14528 s&@abs_srcdir@&$ac_abs_srcdir&;t t
14529 s&@top_srcdir@&$ac_top_srcdir&;t t
14530 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
14531 s&@builddir@&$ac_builddir&;t t
14532 s&@abs_builddir@&$ac_abs_builddir&;t t
14533 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
14534 s&@INSTALL@&$ac_INSTALL&;t t
14535 s&@MKDIR_P@&$ac_MKDIR_P&;t t
14536 $ac_datarootdir_hack
14538 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
14539 if $ac_cs_awk_getline; then
14540 $AWK -f "$tmp/subs.awk"
14541 else
14542 $AWK -f "$tmp/subs.awk" | $SHELL
14543 fi >$tmp/out \
14544 || as_fn_error "could not create $ac_file" "$LINENO" 5
14546 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
14547 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
14548 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
14549 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
14550 which seems to be undefined. Please make sure it is defined." >&5
14551 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
14552 which seems to be undefined. Please make sure it is defined." >&2;}
14554 rm -f "$tmp/stdin"
14555 case $ac_file in
14556 -) cat "$tmp/out" && rm -f "$tmp/out";;
14557 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
14558 esac \
14559 || as_fn_error "could not create $ac_file" "$LINENO" 5
14563 # CONFIG_HEADER
14565 if test x"$ac_file" != x-; then
14567 $as_echo "/* $configure_input */" \
14568 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
14569 } >"$tmp/config.h" \
14570 || as_fn_error "could not create $ac_file" "$LINENO" 5
14571 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
14572 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
14573 $as_echo "$as_me: $ac_file is unchanged" >&6;}
14574 else
14575 rm -f "$ac_file"
14576 mv "$tmp/config.h" "$ac_file" \
14577 || as_fn_error "could not create $ac_file" "$LINENO" 5
14579 else
14580 $as_echo "/* $configure_input */" \
14581 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
14582 || as_fn_error "could not create -" "$LINENO" 5
14584 # Compute "$ac_file"'s index in $config_headers.
14585 _am_arg="$ac_file"
14586 _am_stamp_count=1
14587 for _am_header in $config_headers :; do
14588 case $_am_header in
14589 $_am_arg | $_am_arg:* )
14590 break ;;
14592 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
14593 esac
14594 done
14595 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
14596 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14597 X"$_am_arg" : 'X\(//\)[^/]' \| \
14598 X"$_am_arg" : 'X\(//\)$' \| \
14599 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
14600 $as_echo X"$_am_arg" |
14601 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14602 s//\1/
14605 /^X\(\/\/\)[^/].*/{
14606 s//\1/
14609 /^X\(\/\/\)$/{
14610 s//\1/
14613 /^X\(\/\).*/{
14614 s//\1/
14617 s/.*/./; q'`/stamp-h$_am_stamp_count
14620 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
14621 $as_echo "$as_me: executing $ac_file commands" >&6;}
14623 esac
14626 case $ac_file$ac_mode in
14627 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
14628 # Autoconf 2.62 quotes --file arguments for eval, but not when files
14629 # are listed without --file. Let's play safe and only enable the eval
14630 # if we detect the quoting.
14631 case $CONFIG_FILES in
14632 *\'*) eval set x "$CONFIG_FILES" ;;
14633 *) set x $CONFIG_FILES ;;
14634 esac
14635 shift
14636 for mf
14638 # Strip MF so we end up with the name of the file.
14639 mf=`echo "$mf" | sed -e 's/:.*$//'`
14640 # Check whether this is an Automake generated Makefile or not.
14641 # We used to match only the files named `Makefile.in', but
14642 # some people rename them; so instead we look at the file content.
14643 # Grep'ing the first line is not enough: some people post-process
14644 # each Makefile.in and add a new line on top of each file to say so.
14645 # Grep'ing the whole file is not good either: AIX grep has a line
14646 # limit of 2048, but all sed's we know have understand at least 4000.
14647 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
14648 dirpart=`$as_dirname -- "$mf" ||
14649 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14650 X"$mf" : 'X\(//\)[^/]' \| \
14651 X"$mf" : 'X\(//\)$' \| \
14652 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
14653 $as_echo X"$mf" |
14654 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14655 s//\1/
14658 /^X\(\/\/\)[^/].*/{
14659 s//\1/
14662 /^X\(\/\/\)$/{
14663 s//\1/
14666 /^X\(\/\).*/{
14667 s//\1/
14670 s/.*/./; q'`
14671 else
14672 continue
14674 # Extract the definition of DEPDIR, am__include, and am__quote
14675 # from the Makefile without running `make'.
14676 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
14677 test -z "$DEPDIR" && continue
14678 am__include=`sed -n 's/^am__include = //p' < "$mf"`
14679 test -z "am__include" && continue
14680 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
14681 # When using ansi2knr, U may be empty or an underscore; expand it
14682 U=`sed -n 's/^U = //p' < "$mf"`
14683 # Find all dependency output files, they are included files with
14684 # $(DEPDIR) in their names. We invoke sed twice because it is the
14685 # simplest approach to changing $(DEPDIR) to its actual value in the
14686 # expansion.
14687 for file in `sed -n "
14688 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
14689 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
14690 # Make sure the directory exists.
14691 test -f "$dirpart/$file" && continue
14692 fdir=`$as_dirname -- "$file" ||
14693 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14694 X"$file" : 'X\(//\)[^/]' \| \
14695 X"$file" : 'X\(//\)$' \| \
14696 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
14697 $as_echo X"$file" |
14698 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14699 s//\1/
14702 /^X\(\/\/\)[^/].*/{
14703 s//\1/
14706 /^X\(\/\/\)$/{
14707 s//\1/
14710 /^X\(\/\).*/{
14711 s//\1/
14714 s/.*/./; q'`
14715 as_dir=$dirpart/$fdir; as_fn_mkdir_p
14716 # echo "creating $dirpart/$file"
14717 echo '# dummy' > "$dirpart/$file"
14718 done
14719 done
14722 "libtool":C)
14724 # See if we are running on zsh, and set the options which allow our
14725 # commands through without removal of \ escapes.
14726 if test -n "${ZSH_VERSION+set}" ; then
14727 setopt NO_GLOB_SUBST
14730 cfgfile="${ofile}T"
14731 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
14732 $RM "$cfgfile"
14734 cat <<_LT_EOF >> "$cfgfile"
14735 #! $SHELL
14737 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
14738 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
14739 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
14740 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
14742 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
14743 # 2006, 2007, 2008 Free Software Foundation, Inc.
14744 # Written by Gordon Matzigkeit, 1996
14746 # This file is part of GNU Libtool.
14748 # GNU Libtool is free software; you can redistribute it and/or
14749 # modify it under the terms of the GNU General Public License as
14750 # published by the Free Software Foundation; either version 2 of
14751 # the License, or (at your option) any later version.
14753 # As a special exception to the GNU General Public License,
14754 # if you distribute this file as part of a program or library that
14755 # is built using GNU Libtool, you may include this file under the
14756 # same distribution terms that you use for the rest of that program.
14758 # GNU Libtool is distributed in the hope that it will be useful,
14759 # but WITHOUT ANY WARRANTY; without even the implied warranty of
14760 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14761 # GNU General Public License for more details.
14763 # You should have received a copy of the GNU General Public License
14764 # along with GNU Libtool; see the file COPYING. If not, a copy
14765 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
14766 # obtained by writing to the Free Software Foundation, Inc.,
14767 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
14770 # The names of the tagged configurations supported by this script.
14771 available_tags=""
14773 # ### BEGIN LIBTOOL CONFIG
14775 # Which release of libtool.m4 was used?
14776 macro_version=$macro_version
14777 macro_revision=$macro_revision
14779 # Whether or not to build shared libraries.
14780 build_libtool_libs=$enable_shared
14782 # Whether or not to build static libraries.
14783 build_old_libs=$enable_static
14785 # What type of objects to build.
14786 pic_mode=$pic_mode
14788 # Whether or not to optimize for fast installation.
14789 fast_install=$enable_fast_install
14791 # The host system.
14792 host_alias=$host_alias
14793 host=$host
14794 host_os=$host_os
14796 # The build system.
14797 build_alias=$build_alias
14798 build=$build
14799 build_os=$build_os
14801 # A sed program that does not truncate output.
14802 SED=$lt_SED
14804 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
14805 Xsed="\$SED -e 1s/^X//"
14807 # A grep program that handles long lines.
14808 GREP=$lt_GREP
14810 # An ERE matcher.
14811 EGREP=$lt_EGREP
14813 # A literal string matcher.
14814 FGREP=$lt_FGREP
14816 # A BSD- or MS-compatible name lister.
14817 NM=$lt_NM
14819 # Whether we need soft or hard links.
14820 LN_S=$lt_LN_S
14822 # What is the maximum length of a command?
14823 max_cmd_len=$max_cmd_len
14825 # Object file suffix (normally "o").
14826 objext=$ac_objext
14828 # Executable file suffix (normally "").
14829 exeext=$exeext
14831 # whether the shell understands "unset".
14832 lt_unset=$lt_unset
14834 # turn spaces into newlines.
14835 SP2NL=$lt_lt_SP2NL
14837 # turn newlines into spaces.
14838 NL2SP=$lt_lt_NL2SP
14840 # How to create reloadable object files.
14841 reload_flag=$lt_reload_flag
14842 reload_cmds=$lt_reload_cmds
14844 # An object symbol dumper.
14845 OBJDUMP=$lt_OBJDUMP
14847 # Method to check whether dependent libraries are shared objects.
14848 deplibs_check_method=$lt_deplibs_check_method
14850 # Command to use when deplibs_check_method == "file_magic".
14851 file_magic_cmd=$lt_file_magic_cmd
14853 # The archiver.
14854 AR=$lt_AR
14855 AR_FLAGS=$lt_AR_FLAGS
14857 # A symbol stripping program.
14858 STRIP=$lt_STRIP
14860 # Commands used to install an old-style archive.
14861 RANLIB=$lt_RANLIB
14862 old_postinstall_cmds=$lt_old_postinstall_cmds
14863 old_postuninstall_cmds=$lt_old_postuninstall_cmds
14865 # A C compiler.
14866 LTCC=$lt_CC
14868 # LTCC compiler flags.
14869 LTCFLAGS=$lt_CFLAGS
14871 # Take the output of nm and produce a listing of raw symbols and C names.
14872 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
14874 # Transform the output of nm in a proper C declaration.
14875 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
14877 # Transform the output of nm in a C name address pair.
14878 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
14880 # Transform the output of nm in a C name address pair when lib prefix is needed.
14881 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
14883 # The name of the directory that contains temporary libtool files.
14884 objdir=$objdir
14886 # Shell to use when invoking shell scripts.
14887 SHELL=$lt_SHELL
14889 # An echo program that does not interpret backslashes.
14890 ECHO=$lt_ECHO
14892 # Used to examine libraries when file_magic_cmd begins with "file".
14893 MAGIC_CMD=$MAGIC_CMD
14895 # Must we lock files when doing compilation?
14896 need_locks=$lt_need_locks
14898 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
14899 DSYMUTIL=$lt_DSYMUTIL
14901 # Tool to change global to local symbols on Mac OS X.
14902 NMEDIT=$lt_NMEDIT
14904 # Tool to manipulate fat objects and archives on Mac OS X.
14905 LIPO=$lt_LIPO
14907 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
14908 OTOOL=$lt_OTOOL
14910 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
14911 OTOOL64=$lt_OTOOL64
14913 # Old archive suffix (normally "a").
14914 libext=$libext
14916 # Shared library suffix (normally ".so").
14917 shrext_cmds=$lt_shrext_cmds
14919 # The commands to extract the exported symbol list from a shared archive.
14920 extract_expsyms_cmds=$lt_extract_expsyms_cmds
14922 # Variables whose values should be saved in libtool wrapper scripts and
14923 # restored at link time.
14924 variables_saved_for_relink=$lt_variables_saved_for_relink
14926 # Do we need the "lib" prefix for modules?
14927 need_lib_prefix=$need_lib_prefix
14929 # Do we need a version for libraries?
14930 need_version=$need_version
14932 # Library versioning type.
14933 version_type=$version_type
14935 # Shared library runtime path variable.
14936 runpath_var=$runpath_var
14938 # Shared library path variable.
14939 shlibpath_var=$shlibpath_var
14941 # Is shlibpath searched before the hard-coded library search path?
14942 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
14944 # Format of library name prefix.
14945 libname_spec=$lt_libname_spec
14947 # List of archive names. First name is the real one, the rest are links.
14948 # The last name is the one that the linker finds with -lNAME
14949 library_names_spec=$lt_library_names_spec
14951 # The coded name of the library, if different from the real name.
14952 soname_spec=$lt_soname_spec
14954 # Command to use after installation of a shared archive.
14955 postinstall_cmds=$lt_postinstall_cmds
14957 # Command to use after uninstallation of a shared archive.
14958 postuninstall_cmds=$lt_postuninstall_cmds
14960 # Commands used to finish a libtool library installation in a directory.
14961 finish_cmds=$lt_finish_cmds
14963 # As "finish_cmds", except a single script fragment to be evaled but
14964 # not shown.
14965 finish_eval=$lt_finish_eval
14967 # Whether we should hardcode library paths into libraries.
14968 hardcode_into_libs=$hardcode_into_libs
14970 # Compile-time system search path for libraries.
14971 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
14973 # Run-time system search path for libraries.
14974 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
14976 # Whether dlopen is supported.
14977 dlopen_support=$enable_dlopen
14979 # Whether dlopen of programs is supported.
14980 dlopen_self=$enable_dlopen_self
14982 # Whether dlopen of statically linked programs is supported.
14983 dlopen_self_static=$enable_dlopen_self_static
14985 # Commands to strip libraries.
14986 old_striplib=$lt_old_striplib
14987 striplib=$lt_striplib
14990 # The linker used to build libraries.
14991 LD=$lt_LD
14993 # Commands used to build an old-style archive.
14994 old_archive_cmds=$lt_old_archive_cmds
14996 # A language specific compiler.
14997 CC=$lt_compiler
14999 # Is the compiler the GNU compiler?
15000 with_gcc=$GCC
15002 # Compiler flag to turn off builtin functions.
15003 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
15005 # How to pass a linker flag through the compiler.
15006 wl=$lt_lt_prog_compiler_wl
15008 # Additional compiler flags for building library objects.
15009 pic_flag=$lt_lt_prog_compiler_pic
15011 # Compiler flag to prevent dynamic linking.
15012 link_static_flag=$lt_lt_prog_compiler_static
15014 # Does compiler simultaneously support -c and -o options?
15015 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
15017 # Whether or not to add -lc for building shared libraries.
15018 build_libtool_need_lc=$archive_cmds_need_lc
15020 # Whether or not to disallow shared libs when runtime libs are static.
15021 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
15023 # Compiler flag to allow reflexive dlopens.
15024 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
15026 # Compiler flag to generate shared objects directly from archives.
15027 whole_archive_flag_spec=$lt_whole_archive_flag_spec
15029 # Whether the compiler copes with passing no objects directly.
15030 compiler_needs_object=$lt_compiler_needs_object
15032 # Create an old-style archive from a shared archive.
15033 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
15035 # Create a temporary old-style archive to link instead of a shared archive.
15036 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
15038 # Commands used to build a shared archive.
15039 archive_cmds=$lt_archive_cmds
15040 archive_expsym_cmds=$lt_archive_expsym_cmds
15042 # Commands used to build a loadable module if different from building
15043 # a shared archive.
15044 module_cmds=$lt_module_cmds
15045 module_expsym_cmds=$lt_module_expsym_cmds
15047 # Whether we are building with GNU ld or not.
15048 with_gnu_ld=$lt_with_gnu_ld
15050 # Flag that allows shared libraries with undefined symbols to be built.
15051 allow_undefined_flag=$lt_allow_undefined_flag
15053 # Flag that enforces no undefined symbols.
15054 no_undefined_flag=$lt_no_undefined_flag
15056 # Flag to hardcode \$libdir into a binary during linking.
15057 # This must work even if \$libdir does not exist
15058 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
15060 # If ld is used when linking, flag to hardcode \$libdir into a binary
15061 # during linking. This must work even if \$libdir does not exist.
15062 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
15064 # Whether we need a single "-rpath" flag with a separated argument.
15065 hardcode_libdir_separator=$lt_hardcode_libdir_separator
15067 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
15068 # DIR into the resulting binary.
15069 hardcode_direct=$hardcode_direct
15071 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
15072 # DIR into the resulting binary and the resulting library dependency is
15073 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
15074 # library is relocated.
15075 hardcode_direct_absolute=$hardcode_direct_absolute
15077 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
15078 # into the resulting binary.
15079 hardcode_minus_L=$hardcode_minus_L
15081 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
15082 # into the resulting binary.
15083 hardcode_shlibpath_var=$hardcode_shlibpath_var
15085 # Set to "yes" if building a shared library automatically hardcodes DIR
15086 # into the library and all subsequent libraries and executables linked
15087 # against it.
15088 hardcode_automatic=$hardcode_automatic
15090 # Set to yes if linker adds runtime paths of dependent libraries
15091 # to runtime path list.
15092 inherit_rpath=$inherit_rpath
15094 # Whether libtool must link a program against all its dependency libraries.
15095 link_all_deplibs=$link_all_deplibs
15097 # Fix the shell variable \$srcfile for the compiler.
15098 fix_srcfile_path=$lt_fix_srcfile_path
15100 # Set to "yes" if exported symbols are required.
15101 always_export_symbols=$always_export_symbols
15103 # The commands to list exported symbols.
15104 export_symbols_cmds=$lt_export_symbols_cmds
15106 # Symbols that should not be listed in the preloaded symbols.
15107 exclude_expsyms=$lt_exclude_expsyms
15109 # Symbols that must always be exported.
15110 include_expsyms=$lt_include_expsyms
15112 # Commands necessary for linking programs (against libraries) with templates.
15113 prelink_cmds=$lt_prelink_cmds
15115 # Specify filename containing input files.
15116 file_list_spec=$lt_file_list_spec
15118 # How to hardcode a shared library path into an executable.
15119 hardcode_action=$hardcode_action
15121 # ### END LIBTOOL CONFIG
15123 _LT_EOF
15125 case $host_os in
15126 aix3*)
15127 cat <<\_LT_EOF >> "$cfgfile"
15128 # AIX sometimes has problems with the GCC collect2 program. For some
15129 # reason, if we set the COLLECT_NAMES environment variable, the problems
15130 # vanish in a puff of smoke.
15131 if test "X${COLLECT_NAMES+set}" != Xset; then
15132 COLLECT_NAMES=
15133 export COLLECT_NAMES
15135 _LT_EOF
15137 esac
15140 ltmain="$ac_aux_dir/ltmain.sh"
15143 # We use sed instead of cat because bash on DJGPP gets confused if
15144 # if finds mixed CR/LF and LF-only lines. Since sed operates in
15145 # text mode, it properly converts lines to CR/LF. This bash problem
15146 # is reportedly fixed, but why not run on old versions too?
15147 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
15148 || (rm -f "$cfgfile"; exit 1)
15150 case $xsi_shell in
15151 yes)
15152 cat << \_LT_EOF >> "$cfgfile"
15154 # func_dirname file append nondir_replacement
15155 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
15156 # otherwise set result to NONDIR_REPLACEMENT.
15157 func_dirname ()
15159 case ${1} in
15160 */*) func_dirname_result="${1%/*}${2}" ;;
15161 * ) func_dirname_result="${3}" ;;
15162 esac
15165 # func_basename file
15166 func_basename ()
15168 func_basename_result="${1##*/}"
15171 # func_dirname_and_basename file append nondir_replacement
15172 # perform func_basename and func_dirname in a single function
15173 # call:
15174 # dirname: Compute the dirname of FILE. If nonempty,
15175 # add APPEND to the result, otherwise set result
15176 # to NONDIR_REPLACEMENT.
15177 # value returned in "$func_dirname_result"
15178 # basename: Compute filename of FILE.
15179 # value retuned in "$func_basename_result"
15180 # Implementation must be kept synchronized with func_dirname
15181 # and func_basename. For efficiency, we do not delegate to
15182 # those functions but instead duplicate the functionality here.
15183 func_dirname_and_basename ()
15185 case ${1} in
15186 */*) func_dirname_result="${1%/*}${2}" ;;
15187 * ) func_dirname_result="${3}" ;;
15188 esac
15189 func_basename_result="${1##*/}"
15192 # func_stripname prefix suffix name
15193 # strip PREFIX and SUFFIX off of NAME.
15194 # PREFIX and SUFFIX must not contain globbing or regex special
15195 # characters, hashes, percent signs, but SUFFIX may contain a leading
15196 # dot (in which case that matches only a dot).
15197 func_stripname ()
15199 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
15200 # positional parameters, so assign one to ordinary parameter first.
15201 func_stripname_result=${3}
15202 func_stripname_result=${func_stripname_result#"${1}"}
15203 func_stripname_result=${func_stripname_result%"${2}"}
15206 # func_opt_split
15207 func_opt_split ()
15209 func_opt_split_opt=${1%%=*}
15210 func_opt_split_arg=${1#*=}
15213 # func_lo2o object
15214 func_lo2o ()
15216 case ${1} in
15217 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
15218 *) func_lo2o_result=${1} ;;
15219 esac
15222 # func_xform libobj-or-source
15223 func_xform ()
15225 func_xform_result=${1%.*}.lo
15228 # func_arith arithmetic-term...
15229 func_arith ()
15231 func_arith_result=$(( $* ))
15234 # func_len string
15235 # STRING may not start with a hyphen.
15236 func_len ()
15238 func_len_result=${#1}
15241 _LT_EOF
15243 *) # Bourne compatible functions.
15244 cat << \_LT_EOF >> "$cfgfile"
15246 # func_dirname file append nondir_replacement
15247 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
15248 # otherwise set result to NONDIR_REPLACEMENT.
15249 func_dirname ()
15251 # Extract subdirectory from the argument.
15252 func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
15253 if test "X$func_dirname_result" = "X${1}"; then
15254 func_dirname_result="${3}"
15255 else
15256 func_dirname_result="$func_dirname_result${2}"
15260 # func_basename file
15261 func_basename ()
15263 func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
15267 # func_stripname prefix suffix name
15268 # strip PREFIX and SUFFIX off of NAME.
15269 # PREFIX and SUFFIX must not contain globbing or regex special
15270 # characters, hashes, percent signs, but SUFFIX may contain a leading
15271 # dot (in which case that matches only a dot).
15272 # func_strip_suffix prefix name
15273 func_stripname ()
15275 case ${2} in
15276 .*) func_stripname_result=`$ECHO "X${3}" \
15277 | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
15278 *) func_stripname_result=`$ECHO "X${3}" \
15279 | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
15280 esac
15283 # sed scripts:
15284 my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
15285 my_sed_long_arg='1s/^-[^=]*=//'
15287 # func_opt_split
15288 func_opt_split ()
15290 func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
15291 func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
15294 # func_lo2o object
15295 func_lo2o ()
15297 func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
15300 # func_xform libobj-or-source
15301 func_xform ()
15303 func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'`
15306 # func_arith arithmetic-term...
15307 func_arith ()
15309 func_arith_result=`expr "$@"`
15312 # func_len string
15313 # STRING may not start with a hyphen.
15314 func_len ()
15316 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
15319 _LT_EOF
15320 esac
15322 case $lt_shell_append in
15323 yes)
15324 cat << \_LT_EOF >> "$cfgfile"
15326 # func_append var value
15327 # Append VALUE to the end of shell variable VAR.
15328 func_append ()
15330 eval "$1+=\$2"
15332 _LT_EOF
15335 cat << \_LT_EOF >> "$cfgfile"
15337 # func_append var value
15338 # Append VALUE to the end of shell variable VAR.
15339 func_append ()
15341 eval "$1=\$$1\$2"
15344 _LT_EOF
15346 esac
15349 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
15350 || (rm -f "$cfgfile"; exit 1)
15352 mv -f "$cfgfile" "$ofile" ||
15353 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
15354 chmod +x "$ofile"
15357 "default-1":C)
15358 for ac_file in $CONFIG_FILES; do
15359 # Support "outfile[:infile[:infile...]]"
15360 case "$ac_file" in
15361 *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
15362 esac
15363 # PO directories have a Makefile.in generated from Makefile.in.in.
15364 case "$ac_file" in */Makefile.in)
15365 # Adjust a relative srcdir.
15366 ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
15367 ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
15368 ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
15369 # In autoconf-2.13 it is called $ac_given_srcdir.
15370 # In autoconf-2.50 it is called $srcdir.
15371 test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
15372 case "$ac_given_srcdir" in
15373 .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
15374 /*) top_srcdir="$ac_given_srcdir" ;;
15375 *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
15376 esac
15377 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
15378 rm -f "$ac_dir/POTFILES"
15379 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
15380 cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
15381 POMAKEFILEDEPS="POTFILES.in"
15382 # ALL_LINGUAS, POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES depend
15383 # on $ac_dir but don't depend on user-specified configuration
15384 # parameters.
15385 if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
15386 # The LINGUAS file contains the set of available languages.
15387 if test -n "$OBSOLETE_ALL_LINGUAS"; then
15388 test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
15390 ALL_LINGUAS_=`sed -e "/^#/d" "$ac_given_srcdir/$ac_dir/LINGUAS"`
15391 # Hide the ALL_LINGUAS assigment from automake.
15392 eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
15393 POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
15394 else
15395 # The set of available languages was given in configure.in.
15396 eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
15398 case "$ac_given_srcdir" in
15399 .) srcdirpre= ;;
15400 *) srcdirpre='$(srcdir)/' ;;
15401 esac
15402 POFILES=
15403 GMOFILES=
15404 UPDATEPOFILES=
15405 DUMMYPOFILES=
15406 for lang in $ALL_LINGUAS; do
15407 POFILES="$POFILES $srcdirpre$lang.po"
15408 GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
15409 UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
15410 DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
15411 done
15412 # CATALOGS depends on both $ac_dir and the user's LINGUAS
15413 # environment variable.
15414 INST_LINGUAS=
15415 if test -n "$ALL_LINGUAS"; then
15416 for presentlang in $ALL_LINGUAS; do
15417 useit=no
15418 if test "%UNSET%" != "$LINGUAS"; then
15419 desiredlanguages="$LINGUAS"
15420 else
15421 desiredlanguages="$ALL_LINGUAS"
15423 for desiredlang in $desiredlanguages; do
15424 # Use the presentlang catalog if desiredlang is
15425 # a. equal to presentlang, or
15426 # b. a variant of presentlang (because in this case,
15427 # presentlang can be used as a fallback for messages
15428 # which are not translated in the desiredlang catalog).
15429 case "$desiredlang" in
15430 "$presentlang"*) useit=yes;;
15431 esac
15432 done
15433 if test $useit = yes; then
15434 INST_LINGUAS="$INST_LINGUAS $presentlang"
15436 done
15438 CATALOGS=
15439 if test -n "$INST_LINGUAS"; then
15440 for lang in $INST_LINGUAS; do
15441 CATALOGS="$CATALOGS $lang.gmo"
15442 done
15444 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
15445 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"
15446 for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
15447 if test -f "$f"; then
15448 case "$f" in
15449 *.orig | *.bak | *~) ;;
15450 *) cat "$f" >> "$ac_dir/Makefile" ;;
15451 esac
15453 done
15456 esac
15457 done ;;
15459 esac
15460 done # for ac_tag
15463 as_fn_exit 0
15464 _ACEOF
15465 ac_clean_files=$ac_clean_files_save
15467 test $ac_write_fail = 0 ||
15468 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
15471 # configure is writing to config.log, and then calls config.status.
15472 # config.status does its own redirection, appending to config.log.
15473 # Unfortunately, on DOS this fails, as config.log is still kept open
15474 # by configure, so config.status won't be able to write to it; its
15475 # output is simply discarded. So we exec the FD to /dev/null,
15476 # effectively closing config.log, so it can be properly (re)opened and
15477 # appended to by config.status. When coming back to configure, we
15478 # need to make the FD available again.
15479 if test "$no_create" != yes; then
15480 ac_cs_success=:
15481 ac_config_status_args=
15482 test "$silent" = yes &&
15483 ac_config_status_args="$ac_config_status_args --quiet"
15484 exec 5>/dev/null
15485 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
15486 exec 5>>config.log
15487 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
15488 # would make configure fail if this is the last instruction.
15489 $ac_cs_success || as_fn_exit $?
15491 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
15492 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
15493 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}