* doc/as.texinfo: Add mention of RX port and inclusion of RX
[binutils.git] / ld / configure
blob9eb6a17b074e192167b5497001e6bd774e624208
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_largefile
908 enable_shared
909 enable_static
910 with_pic
911 enable_fast_install
912 with_gnu_ld
913 enable_libtool_lock
914 enable_nls
916 ac_precious_vars='build_alias
917 host_alias
918 target_alias
920 CFLAGS
921 LDFLAGS
922 LIBS
923 CPPFLAGS
925 YACC
926 YFLAGS'
929 # Initialize some variables set by options.
930 ac_init_help=
931 ac_init_version=false
932 ac_unrecognized_opts=
933 ac_unrecognized_sep=
934 # The variables have the same names as the options, with
935 # dashes changed to underlines.
936 cache_file=/dev/null
937 exec_prefix=NONE
938 no_create=
939 no_recursion=
940 prefix=NONE
941 program_prefix=NONE
942 program_suffix=NONE
943 program_transform_name=s,x,x,
944 silent=
945 site=
946 srcdir=
947 verbose=
948 x_includes=NONE
949 x_libraries=NONE
951 # Installation directory options.
952 # These are left unexpanded so users can "make install exec_prefix=/foo"
953 # and all the variables that are supposed to be based on exec_prefix
954 # by default will actually change.
955 # Use braces instead of parens because sh, perl, etc. also accept them.
956 # (The list follows the same order as the GNU Coding Standards.)
957 bindir='${exec_prefix}/bin'
958 sbindir='${exec_prefix}/sbin'
959 libexecdir='${exec_prefix}/libexec'
960 datarootdir='${prefix}/share'
961 datadir='${datarootdir}'
962 sysconfdir='${prefix}/etc'
963 sharedstatedir='${prefix}/com'
964 localstatedir='${prefix}/var'
965 includedir='${prefix}/include'
966 oldincludedir='/usr/include'
967 docdir='${datarootdir}/doc/${PACKAGE}'
968 infodir='${datarootdir}/info'
969 htmldir='${docdir}'
970 dvidir='${docdir}'
971 pdfdir='${docdir}'
972 psdir='${docdir}'
973 libdir='${exec_prefix}/lib'
974 localedir='${datarootdir}/locale'
975 mandir='${datarootdir}/man'
977 ac_prev=
978 ac_dashdash=
979 for ac_option
981 # If the previous option needs an argument, assign it.
982 if test -n "$ac_prev"; then
983 eval $ac_prev=\$ac_option
984 ac_prev=
985 continue
988 case $ac_option in
989 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
990 *) ac_optarg=yes ;;
991 esac
993 # Accept the important Cygnus configure options, so we can diagnose typos.
995 case $ac_dashdash$ac_option in
997 ac_dashdash=yes ;;
999 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1000 ac_prev=bindir ;;
1001 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1002 bindir=$ac_optarg ;;
1004 -build | --build | --buil | --bui | --bu)
1005 ac_prev=build_alias ;;
1006 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1007 build_alias=$ac_optarg ;;
1009 -cache-file | --cache-file | --cache-fil | --cache-fi \
1010 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1011 ac_prev=cache_file ;;
1012 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1013 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1014 cache_file=$ac_optarg ;;
1016 --config-cache | -C)
1017 cache_file=config.cache ;;
1019 -datadir | --datadir | --datadi | --datad)
1020 ac_prev=datadir ;;
1021 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1022 datadir=$ac_optarg ;;
1024 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1025 | --dataroo | --dataro | --datar)
1026 ac_prev=datarootdir ;;
1027 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1028 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1029 datarootdir=$ac_optarg ;;
1031 -disable-* | --disable-*)
1032 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1033 # Reject names that are not valid shell variable names.
1034 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1035 as_fn_error "invalid feature name: $ac_useropt"
1036 ac_useropt_orig=$ac_useropt
1037 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1038 case $ac_user_opts in
1040 "enable_$ac_useropt"
1041 "*) ;;
1042 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1043 ac_unrecognized_sep=', ';;
1044 esac
1045 eval enable_$ac_useropt=no ;;
1047 -docdir | --docdir | --docdi | --doc | --do)
1048 ac_prev=docdir ;;
1049 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1050 docdir=$ac_optarg ;;
1052 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1053 ac_prev=dvidir ;;
1054 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1055 dvidir=$ac_optarg ;;
1057 -enable-* | --enable-*)
1058 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1059 # Reject names that are not valid shell variable names.
1060 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1061 as_fn_error "invalid feature name: $ac_useropt"
1062 ac_useropt_orig=$ac_useropt
1063 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1064 case $ac_user_opts in
1066 "enable_$ac_useropt"
1067 "*) ;;
1068 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1069 ac_unrecognized_sep=', ';;
1070 esac
1071 eval enable_$ac_useropt=\$ac_optarg ;;
1073 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1074 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1075 | --exec | --exe | --ex)
1076 ac_prev=exec_prefix ;;
1077 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1078 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1079 | --exec=* | --exe=* | --ex=*)
1080 exec_prefix=$ac_optarg ;;
1082 -gas | --gas | --ga | --g)
1083 # Obsolete; use --with-gas.
1084 with_gas=yes ;;
1086 -help | --help | --hel | --he | -h)
1087 ac_init_help=long ;;
1088 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1089 ac_init_help=recursive ;;
1090 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1091 ac_init_help=short ;;
1093 -host | --host | --hos | --ho)
1094 ac_prev=host_alias ;;
1095 -host=* | --host=* | --hos=* | --ho=*)
1096 host_alias=$ac_optarg ;;
1098 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1099 ac_prev=htmldir ;;
1100 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1101 | --ht=*)
1102 htmldir=$ac_optarg ;;
1104 -includedir | --includedir | --includedi | --included | --include \
1105 | --includ | --inclu | --incl | --inc)
1106 ac_prev=includedir ;;
1107 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1108 | --includ=* | --inclu=* | --incl=* | --inc=*)
1109 includedir=$ac_optarg ;;
1111 -infodir | --infodir | --infodi | --infod | --info | --inf)
1112 ac_prev=infodir ;;
1113 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1114 infodir=$ac_optarg ;;
1116 -libdir | --libdir | --libdi | --libd)
1117 ac_prev=libdir ;;
1118 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1119 libdir=$ac_optarg ;;
1121 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1122 | --libexe | --libex | --libe)
1123 ac_prev=libexecdir ;;
1124 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1125 | --libexe=* | --libex=* | --libe=*)
1126 libexecdir=$ac_optarg ;;
1128 -localedir | --localedir | --localedi | --localed | --locale)
1129 ac_prev=localedir ;;
1130 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1131 localedir=$ac_optarg ;;
1133 -localstatedir | --localstatedir | --localstatedi | --localstated \
1134 | --localstate | --localstat | --localsta | --localst | --locals)
1135 ac_prev=localstatedir ;;
1136 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1137 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1138 localstatedir=$ac_optarg ;;
1140 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1141 ac_prev=mandir ;;
1142 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1143 mandir=$ac_optarg ;;
1145 -nfp | --nfp | --nf)
1146 # Obsolete; use --without-fp.
1147 with_fp=no ;;
1149 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1150 | --no-cr | --no-c | -n)
1151 no_create=yes ;;
1153 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1154 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1155 no_recursion=yes ;;
1157 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1158 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1159 | --oldin | --oldi | --old | --ol | --o)
1160 ac_prev=oldincludedir ;;
1161 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1162 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1163 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1164 oldincludedir=$ac_optarg ;;
1166 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1167 ac_prev=prefix ;;
1168 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1169 prefix=$ac_optarg ;;
1171 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1172 | --program-pre | --program-pr | --program-p)
1173 ac_prev=program_prefix ;;
1174 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1175 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1176 program_prefix=$ac_optarg ;;
1178 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1179 | --program-suf | --program-su | --program-s)
1180 ac_prev=program_suffix ;;
1181 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1182 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1183 program_suffix=$ac_optarg ;;
1185 -program-transform-name | --program-transform-name \
1186 | --program-transform-nam | --program-transform-na \
1187 | --program-transform-n | --program-transform- \
1188 | --program-transform | --program-transfor \
1189 | --program-transfo | --program-transf \
1190 | --program-trans | --program-tran \
1191 | --progr-tra | --program-tr | --program-t)
1192 ac_prev=program_transform_name ;;
1193 -program-transform-name=* | --program-transform-name=* \
1194 | --program-transform-nam=* | --program-transform-na=* \
1195 | --program-transform-n=* | --program-transform-=* \
1196 | --program-transform=* | --program-transfor=* \
1197 | --program-transfo=* | --program-transf=* \
1198 | --program-trans=* | --program-tran=* \
1199 | --progr-tra=* | --program-tr=* | --program-t=*)
1200 program_transform_name=$ac_optarg ;;
1202 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1203 ac_prev=pdfdir ;;
1204 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1205 pdfdir=$ac_optarg ;;
1207 -psdir | --psdir | --psdi | --psd | --ps)
1208 ac_prev=psdir ;;
1209 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1210 psdir=$ac_optarg ;;
1212 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1213 | -silent | --silent | --silen | --sile | --sil)
1214 silent=yes ;;
1216 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1217 ac_prev=sbindir ;;
1218 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1219 | --sbi=* | --sb=*)
1220 sbindir=$ac_optarg ;;
1222 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1223 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1224 | --sharedst | --shareds | --shared | --share | --shar \
1225 | --sha | --sh)
1226 ac_prev=sharedstatedir ;;
1227 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1228 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1229 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1230 | --sha=* | --sh=*)
1231 sharedstatedir=$ac_optarg ;;
1233 -site | --site | --sit)
1234 ac_prev=site ;;
1235 -site=* | --site=* | --sit=*)
1236 site=$ac_optarg ;;
1238 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1239 ac_prev=srcdir ;;
1240 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1241 srcdir=$ac_optarg ;;
1243 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1244 | --syscon | --sysco | --sysc | --sys | --sy)
1245 ac_prev=sysconfdir ;;
1246 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1247 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1248 sysconfdir=$ac_optarg ;;
1250 -target | --target | --targe | --targ | --tar | --ta | --t)
1251 ac_prev=target_alias ;;
1252 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1253 target_alias=$ac_optarg ;;
1255 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1256 verbose=yes ;;
1258 -version | --version | --versio | --versi | --vers | -V)
1259 ac_init_version=: ;;
1261 -with-* | --with-*)
1262 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1263 # Reject names that are not valid shell variable names.
1264 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1265 as_fn_error "invalid package name: $ac_useropt"
1266 ac_useropt_orig=$ac_useropt
1267 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1268 case $ac_user_opts in
1270 "with_$ac_useropt"
1271 "*) ;;
1272 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1273 ac_unrecognized_sep=', ';;
1274 esac
1275 eval with_$ac_useropt=\$ac_optarg ;;
1277 -without-* | --without-*)
1278 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1279 # Reject names that are not valid shell variable names.
1280 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1281 as_fn_error "invalid package name: $ac_useropt"
1282 ac_useropt_orig=$ac_useropt
1283 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1284 case $ac_user_opts in
1286 "with_$ac_useropt"
1287 "*) ;;
1288 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1289 ac_unrecognized_sep=', ';;
1290 esac
1291 eval with_$ac_useropt=no ;;
1293 --x)
1294 # Obsolete; use --with-x.
1295 with_x=yes ;;
1297 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1298 | --x-incl | --x-inc | --x-in | --x-i)
1299 ac_prev=x_includes ;;
1300 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1301 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1302 x_includes=$ac_optarg ;;
1304 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1305 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1306 ac_prev=x_libraries ;;
1307 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1308 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1309 x_libraries=$ac_optarg ;;
1311 -*) as_fn_error "unrecognized option: \`$ac_option'
1312 Try \`$0 --help' for more information."
1315 *=*)
1316 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1317 # Reject names that are not valid shell variable names.
1318 case $ac_envvar in #(
1319 '' | [0-9]* | *[!_$as_cr_alnum]* )
1320 as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1321 esac
1322 eval $ac_envvar=\$ac_optarg
1323 export $ac_envvar ;;
1326 # FIXME: should be removed in autoconf 3.0.
1327 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1328 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1329 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1330 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1333 esac
1334 done
1336 if test -n "$ac_prev"; then
1337 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1338 as_fn_error "missing argument to $ac_option"
1341 if test -n "$ac_unrecognized_opts"; then
1342 case $enable_option_checking in
1343 no) ;;
1344 fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1345 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1346 esac
1349 # Check all directory arguments for consistency.
1350 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1351 datadir sysconfdir sharedstatedir localstatedir includedir \
1352 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1353 libdir localedir mandir
1355 eval ac_val=\$$ac_var
1356 # Remove trailing slashes.
1357 case $ac_val in
1358 */ )
1359 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1360 eval $ac_var=\$ac_val;;
1361 esac
1362 # Be sure to have absolute directory names.
1363 case $ac_val in
1364 [\\/$]* | ?:[\\/]* ) continue;;
1365 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1366 esac
1367 as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1368 done
1370 # There might be people who depend on the old broken behavior: `$host'
1371 # used to hold the argument of --host etc.
1372 # FIXME: To remove some day.
1373 build=$build_alias
1374 host=$host_alias
1375 target=$target_alias
1377 # FIXME: To remove some day.
1378 if test "x$host_alias" != x; then
1379 if test "x$build_alias" = x; then
1380 cross_compiling=maybe
1381 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1382 If a cross compiler is detected then cross compile mode will be used." >&2
1383 elif test "x$build_alias" != "x$host_alias"; then
1384 cross_compiling=yes
1388 ac_tool_prefix=
1389 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1391 test "$silent" = yes && exec 6>/dev/null
1394 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1395 ac_ls_di=`ls -di .` &&
1396 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1397 as_fn_error "working directory cannot be determined"
1398 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1399 as_fn_error "pwd does not report name of working directory"
1402 # Find the source files, if location was not specified.
1403 if test -z "$srcdir"; then
1404 ac_srcdir_defaulted=yes
1405 # Try the directory containing this script, then the parent directory.
1406 ac_confdir=`$as_dirname -- "$as_myself" ||
1407 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1408 X"$as_myself" : 'X\(//\)[^/]' \| \
1409 X"$as_myself" : 'X\(//\)$' \| \
1410 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1411 $as_echo X"$as_myself" |
1412 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1413 s//\1/
1416 /^X\(\/\/\)[^/].*/{
1417 s//\1/
1420 /^X\(\/\/\)$/{
1421 s//\1/
1424 /^X\(\/\).*/{
1425 s//\1/
1428 s/.*/./; q'`
1429 srcdir=$ac_confdir
1430 if test ! -r "$srcdir/$ac_unique_file"; then
1431 srcdir=..
1433 else
1434 ac_srcdir_defaulted=no
1436 if test ! -r "$srcdir/$ac_unique_file"; then
1437 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1438 as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1440 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1441 ac_abs_confdir=`(
1442 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1443 pwd)`
1444 # When building in place, set srcdir=.
1445 if test "$ac_abs_confdir" = "$ac_pwd"; then
1446 srcdir=.
1448 # Remove unnecessary trailing slashes from srcdir.
1449 # Double slashes in file names in object file debugging info
1450 # mess up M-x gdb in Emacs.
1451 case $srcdir in
1452 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1453 esac
1454 for ac_var in $ac_precious_vars; do
1455 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1456 eval ac_env_${ac_var}_value=\$${ac_var}
1457 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1458 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1459 done
1462 # Report the --help message.
1464 if test "$ac_init_help" = "long"; then
1465 # Omit some internal or obsolete options to make the list less imposing.
1466 # This message is too long to be a string in the A/UX 3.1 sh.
1467 cat <<_ACEOF
1468 \`configure' configures this package to adapt to many kinds of systems.
1470 Usage: $0 [OPTION]... [VAR=VALUE]...
1472 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1473 VAR=VALUE. See below for descriptions of some of the useful variables.
1475 Defaults for the options are specified in brackets.
1477 Configuration:
1478 -h, --help display this help and exit
1479 --help=short display options specific to this package
1480 --help=recursive display the short help of all the included packages
1481 -V, --version display version information and exit
1482 -q, --quiet, --silent do not print \`checking...' messages
1483 --cache-file=FILE cache test results in FILE [disabled]
1484 -C, --config-cache alias for \`--cache-file=config.cache'
1485 -n, --no-create do not create output files
1486 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1488 Installation directories:
1489 --prefix=PREFIX install architecture-independent files in PREFIX
1490 [$ac_default_prefix]
1491 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1492 [PREFIX]
1494 By default, \`make install' will install all the files in
1495 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1496 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1497 for instance \`--prefix=\$HOME'.
1499 For better control, use the options below.
1501 Fine tuning of the installation directories:
1502 --bindir=DIR user executables [EPREFIX/bin]
1503 --sbindir=DIR system admin executables [EPREFIX/sbin]
1504 --libexecdir=DIR program executables [EPREFIX/libexec]
1505 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1506 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1507 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1508 --libdir=DIR object code libraries [EPREFIX/lib]
1509 --includedir=DIR C header files [PREFIX/include]
1510 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1511 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1512 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1513 --infodir=DIR info documentation [DATAROOTDIR/info]
1514 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1515 --mandir=DIR man documentation [DATAROOTDIR/man]
1516 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1517 --htmldir=DIR html documentation [DOCDIR]
1518 --dvidir=DIR dvi documentation [DOCDIR]
1519 --pdfdir=DIR pdf documentation [DOCDIR]
1520 --psdir=DIR ps documentation [DOCDIR]
1521 _ACEOF
1523 cat <<\_ACEOF
1525 Program names:
1526 --program-prefix=PREFIX prepend PREFIX to installed program names
1527 --program-suffix=SUFFIX append SUFFIX to installed program names
1528 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1530 System types:
1531 --build=BUILD configure for building on BUILD [guessed]
1532 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1533 --target=TARGET configure for building compilers for TARGET [HOST]
1534 _ACEOF
1537 if test -n "$ac_init_help"; then
1539 cat <<\_ACEOF
1541 Optional Features:
1542 --disable-option-checking ignore unrecognized --enable/--with options
1543 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1544 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1545 --disable-dependency-tracking speeds up one-time build
1546 --enable-dependency-tracking do not reject slow dependency extractors
1547 --enable-maintainer-mode enable make rules and dependencies not useful
1548 (and sometimes confusing) to the casual installer
1549 --enable-targets alternative target configurations
1550 --enable-64-bit-bfd 64-bit support (on hosts with narrower word sizes)
1551 --enable-got=<type> GOT handling scheme (target, single, negative,
1552 multigot)
1553 --enable-werror treat compile warnings as errors
1554 --enable-build-warnings enable build-time compiler warnings
1555 --disable-largefile omit support for large files
1556 --enable-shared[=PKGS] build shared libraries [default=yes]
1557 --enable-static[=PKGS] build static libraries [default=yes]
1558 --enable-fast-install[=PKGS]
1559 optimize for fast installation [default=yes]
1560 --disable-libtool-lock avoid locking (might break parallel builds)
1561 --disable-nls do not use Native Language Support
1563 Optional Packages:
1564 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1565 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1566 --with-lib-path=dir1:dir2... set default LIB_PATH
1567 --with-sysroot=DIR Search for usr/lib et al within DIR.
1568 --with-pic try to use only PIC/non-PIC objects [default=use
1569 both]
1570 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1572 Some influential environment variables:
1573 CC C compiler command
1574 CFLAGS C compiler flags
1575 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1576 nonstandard directory <lib dir>
1577 LIBS libraries to pass to the linker, e.g. -l<library>
1578 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1579 you have headers in a nonstandard directory <include dir>
1580 CPP C preprocessor
1581 YACC The `Yet Another C Compiler' implementation to use. Defaults to
1582 the first program found out of: `bison -y', `byacc', `yacc'.
1583 YFLAGS The list of arguments that will be passed by default to $YACC.
1584 This script will default YFLAGS to the empty string to avoid a
1585 default value of `-d' given by some make applications.
1587 Use these variables to override the choices made by `configure' or to help
1588 it to find libraries and programs with nonstandard names/locations.
1590 Report bugs to the package provider.
1591 _ACEOF
1592 ac_status=$?
1595 if test "$ac_init_help" = "recursive"; then
1596 # If there are subdirs, report their specific --help.
1597 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1598 test -d "$ac_dir" ||
1599 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1600 continue
1601 ac_builddir=.
1603 case "$ac_dir" in
1604 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1606 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1607 # A ".." for each directory in $ac_dir_suffix.
1608 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1609 case $ac_top_builddir_sub in
1610 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1611 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1612 esac ;;
1613 esac
1614 ac_abs_top_builddir=$ac_pwd
1615 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1616 # for backward compatibility:
1617 ac_top_builddir=$ac_top_build_prefix
1619 case $srcdir in
1620 .) # We are building in place.
1621 ac_srcdir=.
1622 ac_top_srcdir=$ac_top_builddir_sub
1623 ac_abs_top_srcdir=$ac_pwd ;;
1624 [\\/]* | ?:[\\/]* ) # Absolute name.
1625 ac_srcdir=$srcdir$ac_dir_suffix;
1626 ac_top_srcdir=$srcdir
1627 ac_abs_top_srcdir=$srcdir ;;
1628 *) # Relative name.
1629 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1630 ac_top_srcdir=$ac_top_build_prefix$srcdir
1631 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1632 esac
1633 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1635 cd "$ac_dir" || { ac_status=$?; continue; }
1636 # Check for guested configure.
1637 if test -f "$ac_srcdir/configure.gnu"; then
1638 echo &&
1639 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1640 elif test -f "$ac_srcdir/configure"; then
1641 echo &&
1642 $SHELL "$ac_srcdir/configure" --help=recursive
1643 else
1644 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1645 fi || ac_status=$?
1646 cd "$ac_pwd" || { ac_status=$?; break; }
1647 done
1650 test -n "$ac_init_help" && exit $ac_status
1651 if $ac_init_version; then
1652 cat <<\_ACEOF
1653 configure
1654 generated by GNU Autoconf 2.64
1656 Copyright (C) 2009 Free Software Foundation, Inc.
1657 This configure script is free software; the Free Software Foundation
1658 gives unlimited permission to copy, distribute and modify it.
1659 _ACEOF
1660 exit
1663 ## ------------------------ ##
1664 ## Autoconf initialization. ##
1665 ## ------------------------ ##
1667 # ac_fn_c_try_compile LINENO
1668 # --------------------------
1669 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1670 ac_fn_c_try_compile ()
1672 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1673 rm -f conftest.$ac_objext
1674 if { { ac_try="$ac_compile"
1675 case "(($ac_try" in
1676 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1677 *) ac_try_echo=$ac_try;;
1678 esac
1679 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1680 $as_echo "$ac_try_echo"; } >&5
1681 (eval "$ac_compile") 2>conftest.err
1682 ac_status=$?
1683 if test -s conftest.err; then
1684 grep -v '^ *+' conftest.err >conftest.er1
1685 cat conftest.er1 >&5
1686 mv -f conftest.er1 conftest.err
1688 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1689 test $ac_status = 0; } && {
1690 test -z "$ac_c_werror_flag" ||
1691 test ! -s conftest.err
1692 } && test -s conftest.$ac_objext; then :
1693 ac_retval=0
1694 else
1695 $as_echo "$as_me: failed program was:" >&5
1696 sed 's/^/| /' conftest.$ac_ext >&5
1698 ac_retval=1
1700 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1701 return $ac_retval
1703 } # ac_fn_c_try_compile
1705 # ac_fn_c_try_link LINENO
1706 # -----------------------
1707 # Try to link conftest.$ac_ext, and return whether this succeeded.
1708 ac_fn_c_try_link ()
1710 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1711 rm -f conftest.$ac_objext conftest$ac_exeext
1712 if { { ac_try="$ac_link"
1713 case "(($ac_try" in
1714 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1715 *) ac_try_echo=$ac_try;;
1716 esac
1717 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1718 $as_echo "$ac_try_echo"; } >&5
1719 (eval "$ac_link") 2>conftest.err
1720 ac_status=$?
1721 if test -s conftest.err; then
1722 grep -v '^ *+' conftest.err >conftest.er1
1723 cat conftest.er1 >&5
1724 mv -f conftest.er1 conftest.err
1726 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1727 test $ac_status = 0; } && {
1728 test -z "$ac_c_werror_flag" ||
1729 test ! -s conftest.err
1730 } && test -s conftest$ac_exeext && {
1731 test "$cross_compiling" = yes ||
1732 $as_test_x conftest$ac_exeext
1733 }; then :
1734 ac_retval=0
1735 else
1736 $as_echo "$as_me: failed program was:" >&5
1737 sed 's/^/| /' conftest.$ac_ext >&5
1739 ac_retval=1
1741 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1742 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1743 # interfere with the next link command; also delete a directory that is
1744 # left behind by Apple's compiler. We do this before executing the actions.
1745 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1746 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1747 return $ac_retval
1749 } # ac_fn_c_try_link
1751 # ac_fn_c_try_cpp LINENO
1752 # ----------------------
1753 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1754 ac_fn_c_try_cpp ()
1756 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1757 if { { ac_try="$ac_cpp conftest.$ac_ext"
1758 case "(($ac_try" in
1759 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1760 *) ac_try_echo=$ac_try;;
1761 esac
1762 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1763 $as_echo "$ac_try_echo"; } >&5
1764 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1765 ac_status=$?
1766 if test -s conftest.err; then
1767 grep -v '^ *+' conftest.err >conftest.er1
1768 cat conftest.er1 >&5
1769 mv -f conftest.er1 conftest.err
1771 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1772 test $ac_status = 0; } >/dev/null && {
1773 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1774 test ! -s conftest.err
1775 }; then :
1776 ac_retval=0
1777 else
1778 $as_echo "$as_me: failed program was:" >&5
1779 sed 's/^/| /' conftest.$ac_ext >&5
1781 ac_retval=1
1783 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1784 return $ac_retval
1786 } # ac_fn_c_try_cpp
1788 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1789 # -------------------------------------------------------
1790 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1791 # the include files in INCLUDES and setting the cache variable VAR
1792 # accordingly.
1793 ac_fn_c_check_header_mongrel ()
1795 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1796 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1797 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1798 $as_echo_n "checking for $2... " >&6; }
1799 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1800 $as_echo_n "(cached) " >&6
1802 eval ac_res=\$$3
1803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1804 $as_echo "$ac_res" >&6; }
1805 else
1806 # Is the header compilable?
1807 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1808 $as_echo_n "checking $2 usability... " >&6; }
1809 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1810 /* end confdefs.h. */
1812 #include <$2>
1813 _ACEOF
1814 if ac_fn_c_try_compile "$LINENO"; then :
1815 ac_header_compiler=yes
1816 else
1817 ac_header_compiler=no
1819 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1821 $as_echo "$ac_header_compiler" >&6; }
1823 # Is the header present?
1824 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1825 $as_echo_n "checking $2 presence... " >&6; }
1826 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1827 /* end confdefs.h. */
1828 #include <$2>
1829 _ACEOF
1830 if ac_fn_c_try_cpp "$LINENO"; then :
1831 ac_header_preproc=yes
1832 else
1833 ac_header_preproc=no
1835 rm -f conftest.err conftest.$ac_ext
1836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1837 $as_echo "$ac_header_preproc" >&6; }
1839 # So? What about this header?
1840 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1841 yes:no: )
1842 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1843 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1844 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1845 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1847 no:yes:* )
1848 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1849 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1850 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1851 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1852 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1853 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1854 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1855 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1856 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1857 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1859 esac
1860 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1861 $as_echo_n "checking for $2... " >&6; }
1862 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1863 $as_echo_n "(cached) " >&6
1864 else
1865 eval "$3=\$ac_header_compiler"
1867 eval ac_res=\$$3
1868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1869 $as_echo "$ac_res" >&6; }
1871 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1873 } # ac_fn_c_check_header_mongrel
1875 # ac_fn_c_try_run LINENO
1876 # ----------------------
1877 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1878 # that executables *can* be run.
1879 ac_fn_c_try_run ()
1881 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1882 if { { ac_try="$ac_link"
1883 case "(($ac_try" in
1884 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1885 *) ac_try_echo=$ac_try;;
1886 esac
1887 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1888 $as_echo "$ac_try_echo"; } >&5
1889 (eval "$ac_link") 2>&5
1890 ac_status=$?
1891 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1892 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1893 { { case "(($ac_try" in
1894 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1895 *) ac_try_echo=$ac_try;;
1896 esac
1897 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1898 $as_echo "$ac_try_echo"; } >&5
1899 (eval "$ac_try") 2>&5
1900 ac_status=$?
1901 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1902 test $ac_status = 0; }; }; then :
1903 ac_retval=0
1904 else
1905 $as_echo "$as_me: program exited with status $ac_status" >&5
1906 $as_echo "$as_me: failed program was:" >&5
1907 sed 's/^/| /' conftest.$ac_ext >&5
1909 ac_retval=$ac_status
1911 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1912 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1913 return $ac_retval
1915 } # ac_fn_c_try_run
1917 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1918 # -------------------------------------------------------
1919 # Tests whether HEADER exists and can be compiled using the include files in
1920 # INCLUDES, setting the cache variable VAR accordingly.
1921 ac_fn_c_check_header_compile ()
1923 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1924 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1925 $as_echo_n "checking for $2... " >&6; }
1926 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1927 $as_echo_n "(cached) " >&6
1928 else
1929 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1930 /* end confdefs.h. */
1932 #include <$2>
1933 _ACEOF
1934 if ac_fn_c_try_compile "$LINENO"; then :
1935 eval "$3=yes"
1936 else
1937 eval "$3=no"
1939 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1941 eval ac_res=\$$3
1942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1943 $as_echo "$ac_res" >&6; }
1944 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1946 } # ac_fn_c_check_header_compile
1948 # ac_fn_c_check_func LINENO FUNC VAR
1949 # ----------------------------------
1950 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1951 ac_fn_c_check_func ()
1953 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1954 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1955 $as_echo_n "checking for $2... " >&6; }
1956 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1957 $as_echo_n "(cached) " >&6
1958 else
1959 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1960 /* end confdefs.h. */
1961 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1962 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1963 #define $2 innocuous_$2
1965 /* System header to define __stub macros and hopefully few prototypes,
1966 which can conflict with char $2 (); below.
1967 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1968 <limits.h> exists even on freestanding compilers. */
1970 #ifdef __STDC__
1971 # include <limits.h>
1972 #else
1973 # include <assert.h>
1974 #endif
1976 #undef $2
1978 /* Override any GCC internal prototype to avoid an error.
1979 Use char because int might match the return type of a GCC
1980 builtin and then its argument prototype would still apply. */
1981 #ifdef __cplusplus
1982 extern "C"
1983 #endif
1984 char $2 ();
1985 /* The GNU C library defines this for functions which it implements
1986 to always fail with ENOSYS. Some functions are actually named
1987 something starting with __ and the normal name is an alias. */
1988 #if defined __stub_$2 || defined __stub___$2
1989 choke me
1990 #endif
1993 main ()
1995 return $2 ();
1997 return 0;
1999 _ACEOF
2000 if ac_fn_c_try_link "$LINENO"; then :
2001 eval "$3=yes"
2002 else
2003 eval "$3=no"
2005 rm -f core conftest.err conftest.$ac_objext \
2006 conftest$ac_exeext conftest.$ac_ext
2008 eval ac_res=\$$3
2009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2010 $as_echo "$ac_res" >&6; }
2011 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2013 } # ac_fn_c_check_func
2015 # ac_fn_c_check_decl LINENO SYMBOL VAR
2016 # ------------------------------------
2017 # Tests whether SYMBOL is declared, setting cache variable VAR accordingly.
2018 ac_fn_c_check_decl ()
2020 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2021 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $2 is declared" >&5
2022 $as_echo_n "checking whether $2 is declared... " >&6; }
2023 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2024 $as_echo_n "(cached) " >&6
2025 else
2026 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2027 /* end confdefs.h. */
2030 main ()
2032 #ifndef $2
2033 (void) $2;
2034 #endif
2037 return 0;
2039 _ACEOF
2040 if ac_fn_c_try_compile "$LINENO"; then :
2041 eval "$3=yes"
2042 else
2043 eval "$3=no"
2045 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2047 eval ac_res=\$$3
2048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2049 $as_echo "$ac_res" >&6; }
2050 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2052 } # ac_fn_c_check_decl
2054 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2055 # --------------------------------------------
2056 # Tries to find the compile-time value of EXPR in a program that includes
2057 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2058 # computed
2059 ac_fn_c_compute_int ()
2061 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2062 if test "$cross_compiling" = yes; then
2063 # Depending upon the size, compute the lo and hi bounds.
2064 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2065 /* end confdefs.h. */
2068 main ()
2070 static int test_array [1 - 2 * !(($2) >= 0)];
2071 test_array [0] = 0
2074 return 0;
2076 _ACEOF
2077 if ac_fn_c_try_compile "$LINENO"; then :
2078 ac_lo=0 ac_mid=0
2079 while :; do
2080 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2081 /* end confdefs.h. */
2084 main ()
2086 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2087 test_array [0] = 0
2090 return 0;
2092 _ACEOF
2093 if ac_fn_c_try_compile "$LINENO"; then :
2094 ac_hi=$ac_mid; break
2095 else
2096 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2097 if test $ac_lo -le $ac_mid; then
2098 ac_lo= ac_hi=
2099 break
2101 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2103 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2104 done
2105 else
2106 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2107 /* end confdefs.h. */
2110 main ()
2112 static int test_array [1 - 2 * !(($2) < 0)];
2113 test_array [0] = 0
2116 return 0;
2118 _ACEOF
2119 if ac_fn_c_try_compile "$LINENO"; then :
2120 ac_hi=-1 ac_mid=-1
2121 while :; do
2122 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2123 /* end confdefs.h. */
2126 main ()
2128 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2129 test_array [0] = 0
2132 return 0;
2134 _ACEOF
2135 if ac_fn_c_try_compile "$LINENO"; then :
2136 ac_lo=$ac_mid; break
2137 else
2138 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2139 if test $ac_mid -le $ac_hi; then
2140 ac_lo= ac_hi=
2141 break
2143 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2145 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2146 done
2147 else
2148 ac_lo= ac_hi=
2150 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2152 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2153 # Binary search between lo and hi bounds.
2154 while test "x$ac_lo" != "x$ac_hi"; do
2155 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2156 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2157 /* end confdefs.h. */
2160 main ()
2162 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2163 test_array [0] = 0
2166 return 0;
2168 _ACEOF
2169 if ac_fn_c_try_compile "$LINENO"; then :
2170 ac_hi=$ac_mid
2171 else
2172 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2174 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2175 done
2176 case $ac_lo in #((
2177 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2178 '') ac_retval=1 ;;
2179 esac
2180 else
2181 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2182 /* end confdefs.h. */
2184 static long int longval () { return $2; }
2185 static unsigned long int ulongval () { return $2; }
2186 #include <stdio.h>
2187 #include <stdlib.h>
2189 main ()
2192 FILE *f = fopen ("conftest.val", "w");
2193 if (! f)
2194 return 1;
2195 if (($2) < 0)
2197 long int i = longval ();
2198 if (i != ($2))
2199 return 1;
2200 fprintf (f, "%ld", i);
2202 else
2204 unsigned long int i = ulongval ();
2205 if (i != ($2))
2206 return 1;
2207 fprintf (f, "%lu", i);
2209 /* Do not output a trailing newline, as this causes \r\n confusion
2210 on some platforms. */
2211 return ferror (f) || fclose (f) != 0;
2214 return 0;
2216 _ACEOF
2217 if ac_fn_c_try_run "$LINENO"; then :
2218 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2219 else
2220 ac_retval=1
2222 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2223 conftest.$ac_objext conftest.beam conftest.$ac_ext
2224 rm -f conftest.val
2227 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2228 return $ac_retval
2230 } # ac_fn_c_compute_int
2231 cat >config.log <<_ACEOF
2232 This file contains any messages produced by compilers while
2233 running configure, to aid debugging if configure makes a mistake.
2235 It was created by $as_me, which was
2236 generated by GNU Autoconf 2.64. Invocation command line was
2238 $ $0 $@
2240 _ACEOF
2241 exec 5>>config.log
2243 cat <<_ASUNAME
2244 ## --------- ##
2245 ## Platform. ##
2246 ## --------- ##
2248 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2249 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2250 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2251 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2252 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2254 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2255 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2257 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2258 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2259 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2260 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2261 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2262 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2263 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2265 _ASUNAME
2267 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2268 for as_dir in $PATH
2270 IFS=$as_save_IFS
2271 test -z "$as_dir" && as_dir=.
2272 $as_echo "PATH: $as_dir"
2273 done
2274 IFS=$as_save_IFS
2276 } >&5
2278 cat >&5 <<_ACEOF
2281 ## ----------- ##
2282 ## Core tests. ##
2283 ## ----------- ##
2285 _ACEOF
2288 # Keep a trace of the command line.
2289 # Strip out --no-create and --no-recursion so they do not pile up.
2290 # Strip out --silent because we don't want to record it for future runs.
2291 # Also quote any args containing shell meta-characters.
2292 # Make two passes to allow for proper duplicate-argument suppression.
2293 ac_configure_args=
2294 ac_configure_args0=
2295 ac_configure_args1=
2296 ac_must_keep_next=false
2297 for ac_pass in 1 2
2299 for ac_arg
2301 case $ac_arg in
2302 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2303 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2304 | -silent | --silent | --silen | --sile | --sil)
2305 continue ;;
2306 *\'*)
2307 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2308 esac
2309 case $ac_pass in
2310 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2312 as_fn_append ac_configure_args1 " '$ac_arg'"
2313 if test $ac_must_keep_next = true; then
2314 ac_must_keep_next=false # Got value, back to normal.
2315 else
2316 case $ac_arg in
2317 *=* | --config-cache | -C | -disable-* | --disable-* \
2318 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2319 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2320 | -with-* | --with-* | -without-* | --without-* | --x)
2321 case "$ac_configure_args0 " in
2322 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2323 esac
2325 -* ) ac_must_keep_next=true ;;
2326 esac
2328 as_fn_append ac_configure_args " '$ac_arg'"
2330 esac
2331 done
2332 done
2333 { ac_configure_args0=; unset ac_configure_args0;}
2334 { ac_configure_args1=; unset ac_configure_args1;}
2336 # When interrupted or exit'd, cleanup temporary files, and complete
2337 # config.log. We remove comments because anyway the quotes in there
2338 # would cause problems or look ugly.
2339 # WARNING: Use '\'' to represent an apostrophe within the trap.
2340 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2341 trap 'exit_status=$?
2342 # Save into config.log some information that might help in debugging.
2344 echo
2346 cat <<\_ASBOX
2347 ## ---------------- ##
2348 ## Cache variables. ##
2349 ## ---------------- ##
2350 _ASBOX
2351 echo
2352 # The following way of writing the cache mishandles newlines in values,
2354 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2355 eval ac_val=\$$ac_var
2356 case $ac_val in #(
2357 *${as_nl}*)
2358 case $ac_var in #(
2359 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2360 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2361 esac
2362 case $ac_var in #(
2363 _ | IFS | as_nl) ;; #(
2364 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2365 *) { eval $ac_var=; unset $ac_var;} ;;
2366 esac ;;
2367 esac
2368 done
2369 (set) 2>&1 |
2370 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2371 *${as_nl}ac_space=\ *)
2372 sed -n \
2373 "s/'\''/'\''\\\\'\'''\''/g;
2374 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2375 ;; #(
2377 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2379 esac |
2380 sort
2382 echo
2384 cat <<\_ASBOX
2385 ## ----------------- ##
2386 ## Output variables. ##
2387 ## ----------------- ##
2388 _ASBOX
2389 echo
2390 for ac_var in $ac_subst_vars
2392 eval ac_val=\$$ac_var
2393 case $ac_val in
2394 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2395 esac
2396 $as_echo "$ac_var='\''$ac_val'\''"
2397 done | sort
2398 echo
2400 if test -n "$ac_subst_files"; then
2401 cat <<\_ASBOX
2402 ## ------------------- ##
2403 ## File substitutions. ##
2404 ## ------------------- ##
2405 _ASBOX
2406 echo
2407 for ac_var in $ac_subst_files
2409 eval ac_val=\$$ac_var
2410 case $ac_val in
2411 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2412 esac
2413 $as_echo "$ac_var='\''$ac_val'\''"
2414 done | sort
2415 echo
2418 if test -s confdefs.h; then
2419 cat <<\_ASBOX
2420 ## ----------- ##
2421 ## confdefs.h. ##
2422 ## ----------- ##
2423 _ASBOX
2424 echo
2425 cat confdefs.h
2426 echo
2428 test "$ac_signal" != 0 &&
2429 $as_echo "$as_me: caught signal $ac_signal"
2430 $as_echo "$as_me: exit $exit_status"
2431 } >&5
2432 rm -f core *.core core.conftest.* &&
2433 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2434 exit $exit_status
2436 for ac_signal in 1 2 13 15; do
2437 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2438 done
2439 ac_signal=0
2441 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2442 rm -f -r conftest* confdefs.h
2444 $as_echo "/* confdefs.h */" > confdefs.h
2446 # Predefined preprocessor variables.
2448 cat >>confdefs.h <<_ACEOF
2449 #define PACKAGE_NAME "$PACKAGE_NAME"
2450 _ACEOF
2452 cat >>confdefs.h <<_ACEOF
2453 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2454 _ACEOF
2456 cat >>confdefs.h <<_ACEOF
2457 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2458 _ACEOF
2460 cat >>confdefs.h <<_ACEOF
2461 #define PACKAGE_STRING "$PACKAGE_STRING"
2462 _ACEOF
2464 cat >>confdefs.h <<_ACEOF
2465 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2466 _ACEOF
2468 cat >>confdefs.h <<_ACEOF
2469 #define PACKAGE_URL "$PACKAGE_URL"
2470 _ACEOF
2473 # Let the site file select an alternate cache file if it wants to.
2474 # Prefer an explicitly selected file to automatically selected ones.
2475 ac_site_file1=NONE
2476 ac_site_file2=NONE
2477 if test -n "$CONFIG_SITE"; then
2478 ac_site_file1=$CONFIG_SITE
2479 elif test "x$prefix" != xNONE; then
2480 ac_site_file1=$prefix/share/config.site
2481 ac_site_file2=$prefix/etc/config.site
2482 else
2483 ac_site_file1=$ac_default_prefix/share/config.site
2484 ac_site_file2=$ac_default_prefix/etc/config.site
2486 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2488 test "x$ac_site_file" = xNONE && continue
2489 if test -r "$ac_site_file"; then
2490 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2491 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2492 sed 's/^/| /' "$ac_site_file" >&5
2493 . "$ac_site_file"
2495 done
2497 if test -r "$cache_file"; then
2498 # Some versions of bash will fail to source /dev/null (special
2499 # files actually), so we avoid doing that.
2500 if test -f "$cache_file"; then
2501 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2502 $as_echo "$as_me: loading cache $cache_file" >&6;}
2503 case $cache_file in
2504 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2505 *) . "./$cache_file";;
2506 esac
2508 else
2509 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2510 $as_echo "$as_me: creating cache $cache_file" >&6;}
2511 >$cache_file
2514 # Check that the precious variables saved in the cache have kept the same
2515 # value.
2516 ac_cache_corrupted=false
2517 for ac_var in $ac_precious_vars; do
2518 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2519 eval ac_new_set=\$ac_env_${ac_var}_set
2520 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2521 eval ac_new_val=\$ac_env_${ac_var}_value
2522 case $ac_old_set,$ac_new_set in
2523 set,)
2524 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2525 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2526 ac_cache_corrupted=: ;;
2527 ,set)
2528 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2529 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2530 ac_cache_corrupted=: ;;
2531 ,);;
2533 if test "x$ac_old_val" != "x$ac_new_val"; then
2534 # differences in whitespace do not lead to failure.
2535 ac_old_val_w=`echo x $ac_old_val`
2536 ac_new_val_w=`echo x $ac_new_val`
2537 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2538 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2539 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2540 ac_cache_corrupted=:
2541 else
2542 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2543 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2544 eval $ac_var=\$ac_old_val
2546 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2547 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2548 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2549 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2550 fi;;
2551 esac
2552 # Pass precious variables to config.status.
2553 if test "$ac_new_set" = set; then
2554 case $ac_new_val in
2555 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2556 *) ac_arg=$ac_var=$ac_new_val ;;
2557 esac
2558 case " $ac_configure_args " in
2559 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2560 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2561 esac
2563 done
2564 if $ac_cache_corrupted; then
2565 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2566 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2567 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2568 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2569 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2571 ## -------------------- ##
2572 ## Main body of script. ##
2573 ## -------------------- ##
2575 ac_ext=c
2576 ac_cpp='$CPP $CPPFLAGS'
2577 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2578 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2579 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2587 ac_aux_dir=
2588 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2589 for ac_t in install-sh install.sh shtool; do
2590 if test -f "$ac_dir/$ac_t"; then
2591 ac_aux_dir=$ac_dir
2592 ac_install_sh="$ac_aux_dir/$ac_t -c"
2593 break 2
2595 done
2596 done
2597 if test -z "$ac_aux_dir"; then
2598 as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2601 # These three variables are undocumented and unsupported,
2602 # and are intended to be withdrawn in a future Autoconf release.
2603 # They can cause serious problems if a builder's source tree is in a directory
2604 # whose full name contains unusual characters.
2605 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2606 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2607 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2610 # Make sure we can run config.sub.
2611 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2612 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2614 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2615 $as_echo_n "checking build system type... " >&6; }
2616 if test "${ac_cv_build+set}" = set; then :
2617 $as_echo_n "(cached) " >&6
2618 else
2619 ac_build_alias=$build_alias
2620 test "x$ac_build_alias" = x &&
2621 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2622 test "x$ac_build_alias" = x &&
2623 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
2624 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2625 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2629 $as_echo "$ac_cv_build" >&6; }
2630 case $ac_cv_build in
2631 *-*-*) ;;
2632 *) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
2633 esac
2634 build=$ac_cv_build
2635 ac_save_IFS=$IFS; IFS='-'
2636 set x $ac_cv_build
2637 shift
2638 build_cpu=$1
2639 build_vendor=$2
2640 shift; shift
2641 # Remember, the first character of IFS is used to create $*,
2642 # except with old shells:
2643 build_os=$*
2644 IFS=$ac_save_IFS
2645 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2648 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2649 $as_echo_n "checking host system type... " >&6; }
2650 if test "${ac_cv_host+set}" = set; then :
2651 $as_echo_n "(cached) " >&6
2652 else
2653 if test "x$host_alias" = x; then
2654 ac_cv_host=$ac_cv_build
2655 else
2656 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2657 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2662 $as_echo "$ac_cv_host" >&6; }
2663 case $ac_cv_host in
2664 *-*-*) ;;
2665 *) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
2666 esac
2667 host=$ac_cv_host
2668 ac_save_IFS=$IFS; IFS='-'
2669 set x $ac_cv_host
2670 shift
2671 host_cpu=$1
2672 host_vendor=$2
2673 shift; shift
2674 # Remember, the first character of IFS is used to create $*,
2675 # except with old shells:
2676 host_os=$*
2677 IFS=$ac_save_IFS
2678 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2681 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2682 $as_echo_n "checking target system type... " >&6; }
2683 if test "${ac_cv_target+set}" = set; then :
2684 $as_echo_n "(cached) " >&6
2685 else
2686 if test "x$target_alias" = x; then
2687 ac_cv_target=$ac_cv_host
2688 else
2689 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2690 as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2695 $as_echo "$ac_cv_target" >&6; }
2696 case $ac_cv_target in
2697 *-*-*) ;;
2698 *) as_fn_error "invalid value of canonical target" "$LINENO" 5;;
2699 esac
2700 target=$ac_cv_target
2701 ac_save_IFS=$IFS; IFS='-'
2702 set x $ac_cv_target
2703 shift
2704 target_cpu=$1
2705 target_vendor=$2
2706 shift; shift
2707 # Remember, the first character of IFS is used to create $*,
2708 # except with old shells:
2709 target_os=$*
2710 IFS=$ac_save_IFS
2711 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2714 # The aliases save the names the user supplied, while $host etc.
2715 # will get canonicalized.
2716 test -n "$target_alias" &&
2717 test "$program_prefix$program_suffix$program_transform_name" = \
2718 NONENONEs,x,x, &&
2719 program_prefix=${target_alias}-
2720 ac_ext=c
2721 ac_cpp='$CPP $CPPFLAGS'
2722 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2723 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2724 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2725 if test -n "$ac_tool_prefix"; then
2726 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2727 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2728 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2729 $as_echo_n "checking for $ac_word... " >&6; }
2730 if test "${ac_cv_prog_CC+set}" = set; then :
2731 $as_echo_n "(cached) " >&6
2732 else
2733 if test -n "$CC"; then
2734 ac_cv_prog_CC="$CC" # Let the user override the test.
2735 else
2736 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2737 for as_dir in $PATH
2739 IFS=$as_save_IFS
2740 test -z "$as_dir" && as_dir=.
2741 for ac_exec_ext in '' $ac_executable_extensions; do
2742 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2743 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2744 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2745 break 2
2747 done
2748 done
2749 IFS=$as_save_IFS
2753 CC=$ac_cv_prog_CC
2754 if test -n "$CC"; then
2755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2756 $as_echo "$CC" >&6; }
2757 else
2758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2759 $as_echo "no" >&6; }
2764 if test -z "$ac_cv_prog_CC"; then
2765 ac_ct_CC=$CC
2766 # Extract the first word of "gcc", so it can be a program name with args.
2767 set dummy gcc; ac_word=$2
2768 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2769 $as_echo_n "checking for $ac_word... " >&6; }
2770 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
2771 $as_echo_n "(cached) " >&6
2772 else
2773 if test -n "$ac_ct_CC"; then
2774 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2775 else
2776 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2777 for as_dir in $PATH
2779 IFS=$as_save_IFS
2780 test -z "$as_dir" && as_dir=.
2781 for ac_exec_ext in '' $ac_executable_extensions; do
2782 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2783 ac_cv_prog_ac_ct_CC="gcc"
2784 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2785 break 2
2787 done
2788 done
2789 IFS=$as_save_IFS
2793 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2794 if test -n "$ac_ct_CC"; then
2795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2796 $as_echo "$ac_ct_CC" >&6; }
2797 else
2798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2799 $as_echo "no" >&6; }
2802 if test "x$ac_ct_CC" = x; then
2803 CC=""
2804 else
2805 case $cross_compiling:$ac_tool_warned in
2806 yes:)
2807 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2808 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2809 ac_tool_warned=yes ;;
2810 esac
2811 CC=$ac_ct_CC
2813 else
2814 CC="$ac_cv_prog_CC"
2817 if test -z "$CC"; then
2818 if test -n "$ac_tool_prefix"; then
2819 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2820 set dummy ${ac_tool_prefix}cc; ac_word=$2
2821 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2822 $as_echo_n "checking for $ac_word... " >&6; }
2823 if test "${ac_cv_prog_CC+set}" = set; then :
2824 $as_echo_n "(cached) " >&6
2825 else
2826 if test -n "$CC"; then
2827 ac_cv_prog_CC="$CC" # Let the user override the test.
2828 else
2829 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2830 for as_dir in $PATH
2832 IFS=$as_save_IFS
2833 test -z "$as_dir" && as_dir=.
2834 for ac_exec_ext in '' $ac_executable_extensions; do
2835 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2836 ac_cv_prog_CC="${ac_tool_prefix}cc"
2837 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2838 break 2
2840 done
2841 done
2842 IFS=$as_save_IFS
2846 CC=$ac_cv_prog_CC
2847 if test -n "$CC"; then
2848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2849 $as_echo "$CC" >&6; }
2850 else
2851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2852 $as_echo "no" >&6; }
2858 if test -z "$CC"; then
2859 # Extract the first word of "cc", so it can be a program name with args.
2860 set dummy cc; ac_word=$2
2861 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2862 $as_echo_n "checking for $ac_word... " >&6; }
2863 if test "${ac_cv_prog_CC+set}" = set; then :
2864 $as_echo_n "(cached) " >&6
2865 else
2866 if test -n "$CC"; then
2867 ac_cv_prog_CC="$CC" # Let the user override the test.
2868 else
2869 ac_prog_rejected=no
2870 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2871 for as_dir in $PATH
2873 IFS=$as_save_IFS
2874 test -z "$as_dir" && as_dir=.
2875 for ac_exec_ext in '' $ac_executable_extensions; do
2876 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2877 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2878 ac_prog_rejected=yes
2879 continue
2881 ac_cv_prog_CC="cc"
2882 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2883 break 2
2885 done
2886 done
2887 IFS=$as_save_IFS
2889 if test $ac_prog_rejected = yes; then
2890 # We found a bogon in the path, so make sure we never use it.
2891 set dummy $ac_cv_prog_CC
2892 shift
2893 if test $# != 0; then
2894 # We chose a different compiler from the bogus one.
2895 # However, it has the same basename, so the bogon will be chosen
2896 # first if we set CC to just the basename; use the full file name.
2897 shift
2898 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2903 CC=$ac_cv_prog_CC
2904 if test -n "$CC"; then
2905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2906 $as_echo "$CC" >&6; }
2907 else
2908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2909 $as_echo "no" >&6; }
2914 if test -z "$CC"; then
2915 if test -n "$ac_tool_prefix"; then
2916 for ac_prog in cl.exe
2918 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2919 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2920 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2921 $as_echo_n "checking for $ac_word... " >&6; }
2922 if test "${ac_cv_prog_CC+set}" = set; then :
2923 $as_echo_n "(cached) " >&6
2924 else
2925 if test -n "$CC"; then
2926 ac_cv_prog_CC="$CC" # Let the user override the test.
2927 else
2928 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2929 for as_dir in $PATH
2931 IFS=$as_save_IFS
2932 test -z "$as_dir" && as_dir=.
2933 for ac_exec_ext in '' $ac_executable_extensions; do
2934 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2935 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2936 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2937 break 2
2939 done
2940 done
2941 IFS=$as_save_IFS
2945 CC=$ac_cv_prog_CC
2946 if test -n "$CC"; then
2947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2948 $as_echo "$CC" >&6; }
2949 else
2950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2951 $as_echo "no" >&6; }
2955 test -n "$CC" && break
2956 done
2958 if test -z "$CC"; then
2959 ac_ct_CC=$CC
2960 for ac_prog in cl.exe
2962 # Extract the first word of "$ac_prog", so it can be a program name with args.
2963 set dummy $ac_prog; ac_word=$2
2964 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2965 $as_echo_n "checking for $ac_word... " >&6; }
2966 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
2967 $as_echo_n "(cached) " >&6
2968 else
2969 if test -n "$ac_ct_CC"; then
2970 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2971 else
2972 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2973 for as_dir in $PATH
2975 IFS=$as_save_IFS
2976 test -z "$as_dir" && as_dir=.
2977 for ac_exec_ext in '' $ac_executable_extensions; do
2978 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2979 ac_cv_prog_ac_ct_CC="$ac_prog"
2980 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2981 break 2
2983 done
2984 done
2985 IFS=$as_save_IFS
2989 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2990 if test -n "$ac_ct_CC"; then
2991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2992 $as_echo "$ac_ct_CC" >&6; }
2993 else
2994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2995 $as_echo "no" >&6; }
2999 test -n "$ac_ct_CC" && break
3000 done
3002 if test "x$ac_ct_CC" = x; then
3003 CC=""
3004 else
3005 case $cross_compiling:$ac_tool_warned in
3006 yes:)
3007 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3008 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3009 ac_tool_warned=yes ;;
3010 esac
3011 CC=$ac_ct_CC
3018 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3019 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3020 as_fn_error "no acceptable C compiler found in \$PATH
3021 See \`config.log' for more details." "$LINENO" 5; }
3023 # Provide some information about the compiler.
3024 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3025 set X $ac_compile
3026 ac_compiler=$2
3027 for ac_option in --version -v -V -qversion; do
3028 { { ac_try="$ac_compiler $ac_option >&5"
3029 case "(($ac_try" in
3030 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3031 *) ac_try_echo=$ac_try;;
3032 esac
3033 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3034 $as_echo "$ac_try_echo"; } >&5
3035 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3036 ac_status=$?
3037 if test -s conftest.err; then
3038 sed '10a\
3039 ... rest of stderr output deleted ...
3040 10q' conftest.err >conftest.er1
3041 cat conftest.er1 >&5
3042 rm -f conftest.er1 conftest.err
3044 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3045 test $ac_status = 0; }
3046 done
3048 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3049 /* end confdefs.h. */
3052 main ()
3056 return 0;
3058 _ACEOF
3059 ac_clean_files_save=$ac_clean_files
3060 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
3061 # Try to create an executable without -o first, disregard a.out.
3062 # It will help us diagnose broken compilers, and finding out an intuition
3063 # of exeext.
3064 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3065 $as_echo_n "checking for C compiler default output file name... " >&6; }
3066 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3068 # The possible output files:
3069 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3071 ac_rmfiles=
3072 for ac_file in $ac_files
3074 case $ac_file in
3075 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3076 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3077 esac
3078 done
3079 rm -f $ac_rmfiles
3081 if { { ac_try="$ac_link_default"
3082 case "(($ac_try" in
3083 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3084 *) ac_try_echo=$ac_try;;
3085 esac
3086 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3087 $as_echo "$ac_try_echo"; } >&5
3088 (eval "$ac_link_default") 2>&5
3089 ac_status=$?
3090 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3091 test $ac_status = 0; }; then :
3092 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3093 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3094 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3095 # so that the user can short-circuit this test for compilers unknown to
3096 # Autoconf.
3097 for ac_file in $ac_files ''
3099 test -f "$ac_file" || continue
3100 case $ac_file in
3101 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3103 [ab].out )
3104 # We found the default executable, but exeext='' is most
3105 # certainly right.
3106 break;;
3107 *.* )
3108 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3109 then :; else
3110 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3112 # We set ac_cv_exeext here because the later test for it is not
3113 # safe: cross compilers may not add the suffix if given an `-o'
3114 # argument, so we may need to know it at that point already.
3115 # Even if this section looks crufty: it has the advantage of
3116 # actually working.
3117 break;;
3119 break;;
3120 esac
3121 done
3122 test "$ac_cv_exeext" = no && ac_cv_exeext=
3124 else
3125 ac_file=''
3127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3128 $as_echo "$ac_file" >&6; }
3129 if test -z "$ac_file"; then :
3130 $as_echo "$as_me: failed program was:" >&5
3131 sed 's/^/| /' conftest.$ac_ext >&5
3133 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3134 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3135 { as_fn_set_status 77
3136 as_fn_error "C compiler cannot create executables
3137 See \`config.log' for more details." "$LINENO" 5; }; }
3139 ac_exeext=$ac_cv_exeext
3141 # Check that the compiler produces executables we can run. If not, either
3142 # the compiler is broken, or we cross compile.
3143 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3144 $as_echo_n "checking whether the C compiler works... " >&6; }
3145 # If not cross compiling, check that we can run a simple program.
3146 if test "$cross_compiling" != yes; then
3147 if { ac_try='./$ac_file'
3148 { { case "(($ac_try" in
3149 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3150 *) ac_try_echo=$ac_try;;
3151 esac
3152 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3153 $as_echo "$ac_try_echo"; } >&5
3154 (eval "$ac_try") 2>&5
3155 ac_status=$?
3156 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3157 test $ac_status = 0; }; }; then
3158 cross_compiling=no
3159 else
3160 if test "$cross_compiling" = maybe; then
3161 cross_compiling=yes
3162 else
3163 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3164 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3165 as_fn_error "cannot run C compiled programs.
3166 If you meant to cross compile, use \`--host'.
3167 See \`config.log' for more details." "$LINENO" 5; }
3171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3172 $as_echo "yes" >&6; }
3174 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
3175 ac_clean_files=$ac_clean_files_save
3176 # Check that the compiler produces executables we can run. If not, either
3177 # the compiler is broken, or we cross compile.
3178 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3179 $as_echo_n "checking whether we are cross compiling... " >&6; }
3180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3181 $as_echo "$cross_compiling" >&6; }
3183 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3184 $as_echo_n "checking for suffix of executables... " >&6; }
3185 if { { ac_try="$ac_link"
3186 case "(($ac_try" in
3187 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3188 *) ac_try_echo=$ac_try;;
3189 esac
3190 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3191 $as_echo "$ac_try_echo"; } >&5
3192 (eval "$ac_link") 2>&5
3193 ac_status=$?
3194 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3195 test $ac_status = 0; }; then :
3196 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3197 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3198 # work properly (i.e., refer to `conftest.exe'), while it won't with
3199 # `rm'.
3200 for ac_file in conftest.exe conftest conftest.*; do
3201 test -f "$ac_file" || continue
3202 case $ac_file in
3203 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3204 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3205 break;;
3206 * ) break;;
3207 esac
3208 done
3209 else
3210 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3211 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3212 as_fn_error "cannot compute suffix of executables: cannot compile and link
3213 See \`config.log' for more details." "$LINENO" 5; }
3215 rm -f conftest$ac_cv_exeext
3216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3217 $as_echo "$ac_cv_exeext" >&6; }
3219 rm -f conftest.$ac_ext
3220 EXEEXT=$ac_cv_exeext
3221 ac_exeext=$EXEEXT
3222 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3223 $as_echo_n "checking for suffix of object files... " >&6; }
3224 if test "${ac_cv_objext+set}" = set; then :
3225 $as_echo_n "(cached) " >&6
3226 else
3227 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3228 /* end confdefs.h. */
3231 main ()
3235 return 0;
3237 _ACEOF
3238 rm -f conftest.o conftest.obj
3239 if { { ac_try="$ac_compile"
3240 case "(($ac_try" in
3241 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3242 *) ac_try_echo=$ac_try;;
3243 esac
3244 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3245 $as_echo "$ac_try_echo"; } >&5
3246 (eval "$ac_compile") 2>&5
3247 ac_status=$?
3248 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3249 test $ac_status = 0; }; then :
3250 for ac_file in conftest.o conftest.obj conftest.*; do
3251 test -f "$ac_file" || continue;
3252 case $ac_file in
3253 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3254 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3255 break;;
3256 esac
3257 done
3258 else
3259 $as_echo "$as_me: failed program was:" >&5
3260 sed 's/^/| /' conftest.$ac_ext >&5
3262 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3263 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3264 as_fn_error "cannot compute suffix of object files: cannot compile
3265 See \`config.log' for more details." "$LINENO" 5; }
3267 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3270 $as_echo "$ac_cv_objext" >&6; }
3271 OBJEXT=$ac_cv_objext
3272 ac_objext=$OBJEXT
3273 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3274 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3275 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
3276 $as_echo_n "(cached) " >&6
3277 else
3278 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3279 /* end confdefs.h. */
3282 main ()
3284 #ifndef __GNUC__
3285 choke me
3286 #endif
3289 return 0;
3291 _ACEOF
3292 if ac_fn_c_try_compile "$LINENO"; then :
3293 ac_compiler_gnu=yes
3294 else
3295 ac_compiler_gnu=no
3297 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3298 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3302 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3303 if test $ac_compiler_gnu = yes; then
3304 GCC=yes
3305 else
3306 GCC=
3308 ac_test_CFLAGS=${CFLAGS+set}
3309 ac_save_CFLAGS=$CFLAGS
3310 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3311 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3312 if test "${ac_cv_prog_cc_g+set}" = set; then :
3313 $as_echo_n "(cached) " >&6
3314 else
3315 ac_save_c_werror_flag=$ac_c_werror_flag
3316 ac_c_werror_flag=yes
3317 ac_cv_prog_cc_g=no
3318 CFLAGS="-g"
3319 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3320 /* end confdefs.h. */
3323 main ()
3327 return 0;
3329 _ACEOF
3330 if ac_fn_c_try_compile "$LINENO"; then :
3331 ac_cv_prog_cc_g=yes
3332 else
3333 CFLAGS=""
3334 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3335 /* end confdefs.h. */
3338 main ()
3342 return 0;
3344 _ACEOF
3345 if ac_fn_c_try_compile "$LINENO"; then :
3347 else
3348 ac_c_werror_flag=$ac_save_c_werror_flag
3349 CFLAGS="-g"
3350 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3351 /* end confdefs.h. */
3354 main ()
3358 return 0;
3360 _ACEOF
3361 if ac_fn_c_try_compile "$LINENO"; then :
3362 ac_cv_prog_cc_g=yes
3364 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3366 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3368 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3369 ac_c_werror_flag=$ac_save_c_werror_flag
3371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3372 $as_echo "$ac_cv_prog_cc_g" >&6; }
3373 if test "$ac_test_CFLAGS" = set; then
3374 CFLAGS=$ac_save_CFLAGS
3375 elif test $ac_cv_prog_cc_g = yes; then
3376 if test "$GCC" = yes; then
3377 CFLAGS="-g -O2"
3378 else
3379 CFLAGS="-g"
3381 else
3382 if test "$GCC" = yes; then
3383 CFLAGS="-O2"
3384 else
3385 CFLAGS=
3388 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3389 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3390 if test "${ac_cv_prog_cc_c89+set}" = set; then :
3391 $as_echo_n "(cached) " >&6
3392 else
3393 ac_cv_prog_cc_c89=no
3394 ac_save_CC=$CC
3395 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3396 /* end confdefs.h. */
3397 #include <stdarg.h>
3398 #include <stdio.h>
3399 #include <sys/types.h>
3400 #include <sys/stat.h>
3401 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3402 struct buf { int x; };
3403 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3404 static char *e (p, i)
3405 char **p;
3406 int i;
3408 return p[i];
3410 static char *f (char * (*g) (char **, int), char **p, ...)
3412 char *s;
3413 va_list v;
3414 va_start (v,p);
3415 s = g (p, va_arg (v,int));
3416 va_end (v);
3417 return s;
3420 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3421 function prototypes and stuff, but not '\xHH' hex character constants.
3422 These don't provoke an error unfortunately, instead are silently treated
3423 as 'x'. The following induces an error, until -std is added to get
3424 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3425 array size at least. It's necessary to write '\x00'==0 to get something
3426 that's true only with -std. */
3427 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3429 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3430 inside strings and character constants. */
3431 #define FOO(x) 'x'
3432 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3434 int test (int i, double x);
3435 struct s1 {int (*f) (int a);};
3436 struct s2 {int (*f) (double a);};
3437 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3438 int argc;
3439 char **argv;
3441 main ()
3443 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3445 return 0;
3447 _ACEOF
3448 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3449 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3451 CC="$ac_save_CC $ac_arg"
3452 if ac_fn_c_try_compile "$LINENO"; then :
3453 ac_cv_prog_cc_c89=$ac_arg
3455 rm -f core conftest.err conftest.$ac_objext
3456 test "x$ac_cv_prog_cc_c89" != "xno" && break
3457 done
3458 rm -f conftest.$ac_ext
3459 CC=$ac_save_CC
3462 # AC_CACHE_VAL
3463 case "x$ac_cv_prog_cc_c89" in
3465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3466 $as_echo "none needed" >&6; } ;;
3467 xno)
3468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3469 $as_echo "unsupported" >&6; } ;;
3471 CC="$CC $ac_cv_prog_cc_c89"
3472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3473 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3474 esac
3475 if test "x$ac_cv_prog_cc_c89" != xno; then :
3479 ac_ext=c
3480 ac_cpp='$CPP $CPPFLAGS'
3481 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3482 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3483 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3486 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing strerror" >&5
3487 $as_echo_n "checking for library containing strerror... " >&6; }
3488 if test "${ac_cv_search_strerror+set}" = set; then :
3489 $as_echo_n "(cached) " >&6
3490 else
3491 ac_func_search_save_LIBS=$LIBS
3492 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3493 /* end confdefs.h. */
3495 /* Override any GCC internal prototype to avoid an error.
3496 Use char because int might match the return type of a GCC
3497 builtin and then its argument prototype would still apply. */
3498 #ifdef __cplusplus
3499 extern "C"
3500 #endif
3501 char strerror ();
3503 main ()
3505 return strerror ();
3507 return 0;
3509 _ACEOF
3510 for ac_lib in '' cposix; do
3511 if test -z "$ac_lib"; then
3512 ac_res="none required"
3513 else
3514 ac_res=-l$ac_lib
3515 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
3517 if ac_fn_c_try_link "$LINENO"; then :
3518 ac_cv_search_strerror=$ac_res
3520 rm -f core conftest.err conftest.$ac_objext \
3521 conftest$ac_exeext
3522 if test "${ac_cv_search_strerror+set}" = set; then :
3523 break
3525 done
3526 if test "${ac_cv_search_strerror+set}" = set; then :
3528 else
3529 ac_cv_search_strerror=no
3531 rm conftest.$ac_ext
3532 LIBS=$ac_func_search_save_LIBS
3534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_strerror" >&5
3535 $as_echo "$ac_cv_search_strerror" >&6; }
3536 ac_res=$ac_cv_search_strerror
3537 if test "$ac_res" != no; then :
3538 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
3543 BFD_VERSION=`sed -n -e 's/^.._INIT_AUTOMAKE.*,[ ]*\([^ ]*\)[ ]*).*/\1/p' < ${srcdir}/../bfd/configure.in`
3544 am__api_version='1.11'
3546 # Find a good install program. We prefer a C program (faster),
3547 # so one script is as good as another. But avoid the broken or
3548 # incompatible versions:
3549 # SysV /etc/install, /usr/sbin/install
3550 # SunOS /usr/etc/install
3551 # IRIX /sbin/install
3552 # AIX /bin/install
3553 # AmigaOS /C/install, which installs bootblocks on floppy discs
3554 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3555 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3556 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3557 # OS/2's system install, which has a completely different semantic
3558 # ./install, which can be erroneously created by make from ./install.sh.
3559 # Reject install programs that cannot install multiple files.
3560 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
3561 $as_echo_n "checking for a BSD-compatible install... " >&6; }
3562 if test -z "$INSTALL"; then
3563 if test "${ac_cv_path_install+set}" = set; then :
3564 $as_echo_n "(cached) " >&6
3565 else
3566 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3567 for as_dir in $PATH
3569 IFS=$as_save_IFS
3570 test -z "$as_dir" && as_dir=.
3571 # Account for people who put trailing slashes in PATH elements.
3572 case $as_dir/ in #((
3573 ./ | .// | /[cC]/* | \
3574 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3575 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
3576 /usr/ucb/* ) ;;
3578 # OSF1 and SCO ODT 3.0 have their own names for install.
3579 # Don't use installbsd from OSF since it installs stuff as root
3580 # by default.
3581 for ac_prog in ginstall scoinst install; do
3582 for ac_exec_ext in '' $ac_executable_extensions; do
3583 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
3584 if test $ac_prog = install &&
3585 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3586 # AIX install. It has an incompatible calling convention.
3588 elif test $ac_prog = install &&
3589 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3590 # program-specific install script used by HP pwplus--don't use.
3592 else
3593 rm -rf conftest.one conftest.two conftest.dir
3594 echo one > conftest.one
3595 echo two > conftest.two
3596 mkdir conftest.dir
3597 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
3598 test -s conftest.one && test -s conftest.two &&
3599 test -s conftest.dir/conftest.one &&
3600 test -s conftest.dir/conftest.two
3601 then
3602 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3603 break 3
3607 done
3608 done
3610 esac
3612 done
3613 IFS=$as_save_IFS
3615 rm -rf conftest.one conftest.two conftest.dir
3618 if test "${ac_cv_path_install+set}" = set; then
3619 INSTALL=$ac_cv_path_install
3620 else
3621 # As a last resort, use the slow shell script. Don't cache a
3622 # value for INSTALL within a source directory, because that will
3623 # break other packages using the cache if that directory is
3624 # removed, or if the value is a relative name.
3625 INSTALL=$ac_install_sh
3628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
3629 $as_echo "$INSTALL" >&6; }
3631 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3632 # It thinks the first close brace ends the variable substitution.
3633 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3635 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3637 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3639 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
3640 $as_echo_n "checking whether build environment is sane... " >&6; }
3641 # Just in case
3642 sleep 1
3643 echo timestamp > conftest.file
3644 # Reject unsafe characters in $srcdir or the absolute working directory
3645 # name. Accept space and tab only in the latter.
3646 am_lf='
3648 case `pwd` in
3649 *[\\\"\#\$\&\'\`$am_lf]*)
3650 as_fn_error "unsafe absolute working directory name" "$LINENO" 5;;
3651 esac
3652 case $srcdir in
3653 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
3654 as_fn_error "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
3655 esac
3657 # Do `set' in a subshell so we don't clobber the current shell's
3658 # arguments. Must try -L first in case configure is actually a
3659 # symlink; some systems play weird games with the mod time of symlinks
3660 # (eg FreeBSD returns the mod time of the symlink's containing
3661 # directory).
3662 if (
3663 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
3664 if test "$*" = "X"; then
3665 # -L didn't work.
3666 set X `ls -t "$srcdir/configure" conftest.file`
3668 rm -f conftest.file
3669 if test "$*" != "X $srcdir/configure conftest.file" \
3670 && test "$*" != "X conftest.file $srcdir/configure"; then
3672 # If neither matched, then we have a broken ls. This can happen
3673 # if, for instance, CONFIG_SHELL is bash and it inherits a
3674 # broken ls alias from the environment. This has actually
3675 # happened. Such a system could not be considered "sane".
3676 as_fn_error "ls -t appears to fail. Make sure there is not a broken
3677 alias in your environment" "$LINENO" 5
3680 test "$2" = conftest.file
3682 then
3683 # Ok.
3685 else
3686 as_fn_error "newly created file is older than distributed files!
3687 Check your system clock" "$LINENO" 5
3689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3690 $as_echo "yes" >&6; }
3691 test "$program_prefix" != NONE &&
3692 program_transform_name="s&^&$program_prefix&;$program_transform_name"
3693 # Use a double $ so make ignores it.
3694 test "$program_suffix" != NONE &&
3695 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3696 # Double any \ or $.
3697 # By default was `s,x,x', remove it if useless.
3698 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3699 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
3701 # expand $ac_aux_dir to an absolute path
3702 am_aux_dir=`cd $ac_aux_dir && pwd`
3704 if test x"${MISSING+set}" != xset; then
3705 case $am_aux_dir in
3706 *\ * | *\ *)
3707 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
3709 MISSING="\${SHELL} $am_aux_dir/missing" ;;
3710 esac
3712 # Use eval to expand $SHELL
3713 if eval "$MISSING --run true"; then
3714 am_missing_run="$MISSING --run "
3715 else
3716 am_missing_run=
3717 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
3718 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
3721 if test x"${install_sh}" != xset; then
3722 case $am_aux_dir in
3723 *\ * | *\ *)
3724 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
3726 install_sh="\${SHELL} $am_aux_dir/install-sh"
3727 esac
3730 # Installed binaries are usually stripped using `strip' when the user
3731 # run `make install-strip'. However `strip' might not be the right
3732 # tool to use in cross-compilation environments, therefore Automake
3733 # will honor the `STRIP' environment variable to overrule this program.
3734 if test "$cross_compiling" != no; then
3735 if test -n "$ac_tool_prefix"; then
3736 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3737 set dummy ${ac_tool_prefix}strip; ac_word=$2
3738 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3739 $as_echo_n "checking for $ac_word... " >&6; }
3740 if test "${ac_cv_prog_STRIP+set}" = set; then :
3741 $as_echo_n "(cached) " >&6
3742 else
3743 if test -n "$STRIP"; then
3744 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3745 else
3746 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3747 for as_dir in $PATH
3749 IFS=$as_save_IFS
3750 test -z "$as_dir" && as_dir=.
3751 for ac_exec_ext in '' $ac_executable_extensions; do
3752 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3753 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3754 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3755 break 2
3757 done
3758 done
3759 IFS=$as_save_IFS
3763 STRIP=$ac_cv_prog_STRIP
3764 if test -n "$STRIP"; then
3765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3766 $as_echo "$STRIP" >&6; }
3767 else
3768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3769 $as_echo "no" >&6; }
3774 if test -z "$ac_cv_prog_STRIP"; then
3775 ac_ct_STRIP=$STRIP
3776 # Extract the first word of "strip", so it can be a program name with args.
3777 set dummy strip; ac_word=$2
3778 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3779 $as_echo_n "checking for $ac_word... " >&6; }
3780 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
3781 $as_echo_n "(cached) " >&6
3782 else
3783 if test -n "$ac_ct_STRIP"; then
3784 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3785 else
3786 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3787 for as_dir in $PATH
3789 IFS=$as_save_IFS
3790 test -z "$as_dir" && as_dir=.
3791 for ac_exec_ext in '' $ac_executable_extensions; do
3792 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3793 ac_cv_prog_ac_ct_STRIP="strip"
3794 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3795 break 2
3797 done
3798 done
3799 IFS=$as_save_IFS
3803 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3804 if test -n "$ac_ct_STRIP"; then
3805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3806 $as_echo "$ac_ct_STRIP" >&6; }
3807 else
3808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3809 $as_echo "no" >&6; }
3812 if test "x$ac_ct_STRIP" = x; then
3813 STRIP=":"
3814 else
3815 case $cross_compiling:$ac_tool_warned in
3816 yes:)
3817 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3818 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3819 ac_tool_warned=yes ;;
3820 esac
3821 STRIP=$ac_ct_STRIP
3823 else
3824 STRIP="$ac_cv_prog_STRIP"
3828 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3830 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
3831 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3832 if test -z "$MKDIR_P"; then
3833 if test "${ac_cv_path_mkdir+set}" = set; then :
3834 $as_echo_n "(cached) " >&6
3835 else
3836 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3837 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3839 IFS=$as_save_IFS
3840 test -z "$as_dir" && as_dir=.
3841 for ac_prog in mkdir gmkdir; do
3842 for ac_exec_ext in '' $ac_executable_extensions; do
3843 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
3844 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3845 'mkdir (GNU coreutils) '* | \
3846 'mkdir (coreutils) '* | \
3847 'mkdir (fileutils) '4.1*)
3848 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
3849 break 3;;
3850 esac
3851 done
3852 done
3853 done
3854 IFS=$as_save_IFS
3858 if test "${ac_cv_path_mkdir+set}" = set; then
3859 MKDIR_P="$ac_cv_path_mkdir -p"
3860 else
3861 # As a last resort, use the slow shell script. Don't cache a
3862 # value for MKDIR_P within a source directory, because that will
3863 # break other packages using the cache if that directory is
3864 # removed, or if the value is a relative name.
3865 test -d ./--version && rmdir ./--version
3866 MKDIR_P="$ac_install_sh -d"
3869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3870 $as_echo "$MKDIR_P" >&6; }
3872 mkdir_p="$MKDIR_P"
3873 case $mkdir_p in
3874 [\\/$]* | ?:[\\/]*) ;;
3875 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
3876 esac
3878 for ac_prog in gawk mawk nawk awk
3880 # Extract the first word of "$ac_prog", so it can be a program name with args.
3881 set dummy $ac_prog; ac_word=$2
3882 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3883 $as_echo_n "checking for $ac_word... " >&6; }
3884 if test "${ac_cv_prog_AWK+set}" = set; then :
3885 $as_echo_n "(cached) " >&6
3886 else
3887 if test -n "$AWK"; then
3888 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3889 else
3890 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3891 for as_dir in $PATH
3893 IFS=$as_save_IFS
3894 test -z "$as_dir" && as_dir=.
3895 for ac_exec_ext in '' $ac_executable_extensions; do
3896 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3897 ac_cv_prog_AWK="$ac_prog"
3898 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3899 break 2
3901 done
3902 done
3903 IFS=$as_save_IFS
3907 AWK=$ac_cv_prog_AWK
3908 if test -n "$AWK"; then
3909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3910 $as_echo "$AWK" >&6; }
3911 else
3912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3913 $as_echo "no" >&6; }
3917 test -n "$AWK" && break
3918 done
3920 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3921 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3922 set x ${MAKE-make}
3923 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3924 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
3925 $as_echo_n "(cached) " >&6
3926 else
3927 cat >conftest.make <<\_ACEOF
3928 SHELL = /bin/sh
3929 all:
3930 @echo '@@@%%%=$(MAKE)=@@@%%%'
3931 _ACEOF
3932 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3933 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3934 *@@@%%%=?*=@@@%%%*)
3935 eval ac_cv_prog_make_${ac_make}_set=yes;;
3937 eval ac_cv_prog_make_${ac_make}_set=no;;
3938 esac
3939 rm -f conftest.make
3941 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3943 $as_echo "yes" >&6; }
3944 SET_MAKE=
3945 else
3946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3947 $as_echo "no" >&6; }
3948 SET_MAKE="MAKE=${MAKE-make}"
3951 rm -rf .tst 2>/dev/null
3952 mkdir .tst 2>/dev/null
3953 if test -d .tst; then
3954 am__leading_dot=.
3955 else
3956 am__leading_dot=_
3958 rmdir .tst 2>/dev/null
3960 DEPDIR="${am__leading_dot}deps"
3962 ac_config_commands="$ac_config_commands depfiles"
3965 am_make=${MAKE-make}
3966 cat > confinc << 'END'
3967 am__doit:
3968 @echo this is the am__doit target
3969 .PHONY: am__doit
3971 # If we don't find an include directive, just comment out the code.
3972 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3973 $as_echo_n "checking for style of include used by $am_make... " >&6; }
3974 am__include="#"
3975 am__quote=
3976 _am_result=none
3977 # First try GNU make style include.
3978 echo "include confinc" > confmf
3979 # Ignore all kinds of additional output from `make'.
3980 case `$am_make -s -f confmf 2> /dev/null` in #(
3981 *the\ am__doit\ target*)
3982 am__include=include
3983 am__quote=
3984 _am_result=GNU
3986 esac
3987 # Now try BSD make style include.
3988 if test "$am__include" = "#"; then
3989 echo '.include "confinc"' > confmf
3990 case `$am_make -s -f confmf 2> /dev/null` in #(
3991 *the\ am__doit\ target*)
3992 am__include=.include
3993 am__quote="\""
3994 _am_result=BSD
3996 esac
4000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
4001 $as_echo "$_am_result" >&6; }
4002 rm -f confinc confmf
4004 # Check whether --enable-dependency-tracking was given.
4005 if test "${enable_dependency_tracking+set}" = set; then :
4006 enableval=$enable_dependency_tracking;
4009 if test "x$enable_dependency_tracking" != xno; then
4010 am_depcomp="$ac_aux_dir/depcomp"
4011 AMDEPBACKSLASH='\'
4013 if test "x$enable_dependency_tracking" != xno; then
4014 AMDEP_TRUE=
4015 AMDEP_FALSE='#'
4016 else
4017 AMDEP_TRUE='#'
4018 AMDEP_FALSE=
4022 if test "`cd $srcdir && pwd`" != "`pwd`"; then
4023 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
4024 # is not polluted with repeated "-I."
4025 am__isrc=' -I$(srcdir)'
4026 # test to see if srcdir already configured
4027 if test -f $srcdir/config.status; then
4028 as_fn_error "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
4032 # test whether we have cygpath
4033 if test -z "$CYGPATH_W"; then
4034 if (cygpath --version) >/dev/null 2>/dev/null; then
4035 CYGPATH_W='cygpath -w'
4036 else
4037 CYGPATH_W=echo
4042 # Define the identity of the package.
4043 PACKAGE=ld
4044 VERSION=${BFD_VERSION}
4047 cat >>confdefs.h <<_ACEOF
4048 #define PACKAGE "$PACKAGE"
4049 _ACEOF
4052 cat >>confdefs.h <<_ACEOF
4053 #define VERSION "$VERSION"
4054 _ACEOF
4056 # Some tools Automake needs.
4058 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
4061 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
4064 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
4067 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
4070 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
4072 # We need awk for the "check" target. The system "awk" is bad on
4073 # some platforms.
4074 # Always define AMTAR for backward compatibility.
4076 AMTAR=${AMTAR-"${am_missing_run}tar"}
4078 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
4083 depcc="$CC" am_compiler_list=
4085 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4086 $as_echo_n "checking dependency style of $depcc... " >&6; }
4087 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
4088 $as_echo_n "(cached) " >&6
4089 else
4090 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4091 # We make a subdir and do the tests there. Otherwise we can end up
4092 # making bogus files that we don't know about and never remove. For
4093 # instance it was reported that on HP-UX the gcc test will end up
4094 # making a dummy file named `D' -- because `-MD' means `put the output
4095 # in D'.
4096 mkdir conftest.dir
4097 # Copy depcomp to subdir because otherwise we won't find it if we're
4098 # using a relative directory.
4099 cp "$am_depcomp" conftest.dir
4100 cd conftest.dir
4101 # We will build objects and dependencies in a subdirectory because
4102 # it helps to detect inapplicable dependency modes. For instance
4103 # both Tru64's cc and ICC support -MD to output dependencies as a
4104 # side effect of compilation, but ICC will put the dependencies in
4105 # the current directory while Tru64 will put them in the object
4106 # directory.
4107 mkdir sub
4109 am_cv_CC_dependencies_compiler_type=none
4110 if test "$am_compiler_list" = ""; then
4111 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4113 am__universal=false
4114 case " $depcc " in #(
4115 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4116 esac
4118 for depmode in $am_compiler_list; do
4119 # Setup a source with many dependencies, because some compilers
4120 # like to wrap large dependency lists on column 80 (with \), and
4121 # we should not choose a depcomp mode which is confused by this.
4123 # We need to recreate these files for each test, as the compiler may
4124 # overwrite some of them when testing with obscure command lines.
4125 # This happens at least with the AIX C compiler.
4126 : > sub/conftest.c
4127 for i in 1 2 3 4 5 6; do
4128 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4129 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4130 # Solaris 8's {/usr,}/bin/sh.
4131 touch sub/conftst$i.h
4132 done
4133 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4135 # We check with `-c' and `-o' for the sake of the "dashmstdout"
4136 # mode. It turns out that the SunPro C++ compiler does not properly
4137 # handle `-M -o', and we need to detect this. Also, some Intel
4138 # versions had trouble with output in subdirs
4139 am__obj=sub/conftest.${OBJEXT-o}
4140 am__minus_obj="-o $am__obj"
4141 case $depmode in
4142 gcc)
4143 # This depmode causes a compiler race in universal mode.
4144 test "$am__universal" = false || continue
4146 nosideeffect)
4147 # after this tag, mechanisms are not by side-effect, so they'll
4148 # only be used when explicitly requested
4149 if test "x$enable_dependency_tracking" = xyes; then
4150 continue
4151 else
4152 break
4155 msvisualcpp | msvcmsys)
4156 # This compiler won't grok `-c -o', but also, the minuso test has
4157 # not run yet. These depmodes are late enough in the game, and
4158 # so weak that their functioning should not be impacted.
4159 am__obj=conftest.${OBJEXT-o}
4160 am__minus_obj=
4162 none) break ;;
4163 esac
4164 if depmode=$depmode \
4165 source=sub/conftest.c object=$am__obj \
4166 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4167 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4168 >/dev/null 2>conftest.err &&
4169 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4170 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4171 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4172 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4173 # icc doesn't choke on unknown options, it will just issue warnings
4174 # or remarks (even with -Werror). So we grep stderr for any message
4175 # that says an option was ignored or not supported.
4176 # When given -MP, icc 7.0 and 7.1 complain thusly:
4177 # icc: Command line warning: ignoring option '-M'; no argument required
4178 # The diagnosis changed in icc 8.0:
4179 # icc: Command line remark: option '-MP' not supported
4180 if (grep 'ignoring option' conftest.err ||
4181 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4182 am_cv_CC_dependencies_compiler_type=$depmode
4183 break
4186 done
4188 cd ..
4189 rm -rf conftest.dir
4190 else
4191 am_cv_CC_dependencies_compiler_type=none
4195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4196 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4197 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4200 test "x$enable_dependency_tracking" != xno \
4201 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4202 am__fastdepCC_TRUE=
4203 am__fastdepCC_FALSE='#'
4204 else
4205 am__fastdepCC_TRUE='#'
4206 am__fastdepCC_FALSE=
4212 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
4213 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
4214 # Check whether --enable-maintainer-mode was given.
4215 if test "${enable_maintainer_mode+set}" = set; then :
4216 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
4217 else
4218 USE_MAINTAINER_MODE=no
4221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
4222 $as_echo "$USE_MAINTAINER_MODE" >&6; }
4223 if test $USE_MAINTAINER_MODE = yes; then
4224 MAINTAINER_MODE_TRUE=
4225 MAINTAINER_MODE_FALSE='#'
4226 else
4227 MAINTAINER_MODE_TRUE='#'
4228 MAINTAINER_MODE_FALSE=
4231 MAINT=$MAINTAINER_MODE_TRUE
4236 # Check whether --with-lib-path was given.
4237 if test "${with_lib_path+set}" = set; then :
4238 withval=$with_lib_path; LIB_PATH=$withval
4241 # Check whether --enable-targets was given.
4242 if test "${enable_targets+set}" = set; then :
4243 enableval=$enable_targets; case "${enableval}" in
4244 yes | "") as_fn_error "enable-targets option must specify target names or 'all'" "$LINENO" 5
4246 no) enable_targets= ;;
4247 *) enable_targets=$enableval ;;
4248 esac
4250 # Check whether --enable-64-bit-bfd was given.
4251 if test "${enable_64_bit_bfd+set}" = set; then :
4252 enableval=$enable_64_bit_bfd; case "${enableval}" in
4253 yes) want64=true ;;
4254 no) want64=false ;;
4255 *) as_fn_error "bad value ${enableval} for 64-bit-bfd option" "$LINENO" 5 ;;
4256 esac
4257 else
4258 want64=false
4262 # Check whether --with-sysroot was given.
4263 if test "${with_sysroot+set}" = set; then :
4264 withval=$with_sysroot;
4265 case ${with_sysroot} in
4266 yes) TARGET_SYSTEM_ROOT='${exec_prefix}/${target_alias}/sys-root' ;;
4267 *) TARGET_SYSTEM_ROOT=$with_sysroot ;;
4268 esac
4270 TARGET_SYSTEM_ROOT_DEFINE='-DTARGET_SYSTEM_ROOT=\"$(TARGET_SYSTEM_ROOT)\"'
4271 use_sysroot=yes
4273 if test "x$prefix" = xNONE; then
4274 test_prefix=/usr/local
4275 else
4276 test_prefix=$prefix
4278 if test "x$exec_prefix" = xNONE; then
4279 test_exec_prefix=$test_prefix
4280 else
4281 test_exec_prefix=$exec_prefix
4283 case ${TARGET_SYSTEM_ROOT} in
4284 "${test_prefix}"|"${test_prefix}/"*|\
4285 "${test_exec_prefix}"|"${test_exec_prefix}/"*|\
4286 '${prefix}'|'${prefix}/'*|\
4287 '${exec_prefix}'|'${exec_prefix}/'*)
4288 t="$TARGET_SYSTEM_ROOT_DEFINE -DTARGET_SYSTEM_ROOT_RELOCATABLE"
4289 TARGET_SYSTEM_ROOT_DEFINE="$t"
4291 esac
4293 else
4295 use_sysroot=no
4296 TARGET_SYSTEM_ROOT=
4297 TARGET_SYSTEM_ROOT_DEFINE='-DTARGET_SYSTEM_ROOT=\"\"'
4305 # Check whether --enable-got was given.
4306 if test "${enable_got+set}" = set; then :
4307 enableval=$enable_got; case "${enableval}" in
4308 target | single | negative | multigot) got_handling=$enableval ;;
4309 *) as_fn_error "bad value ${enableval} for --enable-got option" "$LINENO" 5 ;;
4310 esac
4311 else
4312 got_handling=target
4316 case "${got_handling}" in
4317 target)
4319 $as_echo "#define GOT_HANDLING_DEFAULT GOT_HANDLING_TARGET_DEFAULT" >>confdefs.h
4321 single)
4323 $as_echo "#define GOT_HANDLING_DEFAULT GOT_HANDLING_SINGLE" >>confdefs.h
4325 negative)
4327 $as_echo "#define GOT_HANDLING_DEFAULT GOT_HANDLING_NEGATIVE" >>confdefs.h
4329 multigot)
4331 $as_echo "#define GOT_HANDLING_DEFAULT GOT_HANDLING_MULTIGOT" >>confdefs.h
4333 *) as_fn_error "bad value ${got_handling} for --enable-got option" "$LINENO" 5 ;;
4334 esac
4337 GCC_WARN_CFLAGS="-W -Wall -Wstrict-prototypes -Wmissing-prototypes"
4339 # Check whether --enable-werror was given.
4340 if test "${enable_werror+set}" = set; then :
4341 enableval=$enable_werror; case "${enableval}" in
4342 yes | y) ERROR_ON_WARNING="yes" ;;
4343 no | n) ERROR_ON_WARNING="no" ;;
4344 *) as_fn_error "bad value ${enableval} for --enable-werror" "$LINENO" 5 ;;
4345 esac
4349 # Enable -Wno-format by default when using gcc on mingw
4350 case "${host}" in
4351 *-*-mingw32*)
4352 if test "${GCC}" = yes -a -z "${ERROR_ON_WARNING}" ; then
4353 GCC_WARN_CFLAGS="$GCC_WARN_CFLAGS -Wno-format"
4356 *) ;;
4357 esac
4359 # Enable -Werror by default when using gcc
4360 if test "${GCC}" = yes -a -z "${ERROR_ON_WARNING}" ; then
4361 ERROR_ON_WARNING=yes
4364 NO_WERROR=
4365 if test "${ERROR_ON_WARNING}" = yes ; then
4366 GCC_WARN_CFLAGS="$GCC_WARN_CFLAGS -Werror"
4367 NO_WERROR="-Wno-error"
4370 if test "${GCC}" = yes ; then
4371 WARN_CFLAGS="${GCC_WARN_CFLAGS}"
4374 # Check whether --enable-build-warnings was given.
4375 if test "${enable_build_warnings+set}" = set; then :
4376 enableval=$enable_build_warnings; case "${enableval}" in
4377 yes) WARN_CFLAGS="${GCC_WARN_CFLAGS}";;
4378 no) if test "${GCC}" = yes ; then
4379 WARN_CFLAGS="-w"
4380 fi;;
4381 ,*) t=`echo "${enableval}" | sed -e "s/,/ /g"`
4382 WARN_CFLAGS="${GCC_WARN_CFLAGS} ${t}";;
4383 *,) t=`echo "${enableval}" | sed -e "s/,/ /g"`
4384 WARN_CFLAGS="${t} ${GCC_WARN_CFLAGS}";;
4385 *) WARN_CFLAGS=`echo "${enableval}" | sed -e "s/,/ /g"`;;
4386 esac
4390 if test x"$silent" != x"yes" && test x"$WARN_CFLAGS" != x""; then
4391 echo "Setting warning flags = $WARN_CFLAGS" 6>&1
4398 ac_config_headers="$ac_config_headers config.h:config.in"
4401 if test -z "$target" ; then
4402 as_fn_error "Unrecognized target system type; please check config.sub." "$LINENO" 5
4404 if test -z "$host" ; then
4405 as_fn_error "Unrecognized host system type; please check config.sub." "$LINENO" 5
4408 # host-specific stuff:
4410 ac_ext=c
4411 ac_cpp='$CPP $CPPFLAGS'
4412 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4413 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4414 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4415 if test -n "$ac_tool_prefix"; then
4416 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4417 set dummy ${ac_tool_prefix}gcc; ac_word=$2
4418 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4419 $as_echo_n "checking for $ac_word... " >&6; }
4420 if test "${ac_cv_prog_CC+set}" = set; then :
4421 $as_echo_n "(cached) " >&6
4422 else
4423 if test -n "$CC"; then
4424 ac_cv_prog_CC="$CC" # Let the user override the test.
4425 else
4426 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4427 for as_dir in $PATH
4429 IFS=$as_save_IFS
4430 test -z "$as_dir" && as_dir=.
4431 for ac_exec_ext in '' $ac_executable_extensions; do
4432 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4433 ac_cv_prog_CC="${ac_tool_prefix}gcc"
4434 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4435 break 2
4437 done
4438 done
4439 IFS=$as_save_IFS
4443 CC=$ac_cv_prog_CC
4444 if test -n "$CC"; then
4445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4446 $as_echo "$CC" >&6; }
4447 else
4448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4449 $as_echo "no" >&6; }
4454 if test -z "$ac_cv_prog_CC"; then
4455 ac_ct_CC=$CC
4456 # Extract the first word of "gcc", so it can be a program name with args.
4457 set dummy gcc; ac_word=$2
4458 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4459 $as_echo_n "checking for $ac_word... " >&6; }
4460 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
4461 $as_echo_n "(cached) " >&6
4462 else
4463 if test -n "$ac_ct_CC"; then
4464 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4465 else
4466 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4467 for as_dir in $PATH
4469 IFS=$as_save_IFS
4470 test -z "$as_dir" && as_dir=.
4471 for ac_exec_ext in '' $ac_executable_extensions; do
4472 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4473 ac_cv_prog_ac_ct_CC="gcc"
4474 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4475 break 2
4477 done
4478 done
4479 IFS=$as_save_IFS
4483 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4484 if test -n "$ac_ct_CC"; then
4485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4486 $as_echo "$ac_ct_CC" >&6; }
4487 else
4488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4489 $as_echo "no" >&6; }
4492 if test "x$ac_ct_CC" = x; then
4493 CC=""
4494 else
4495 case $cross_compiling:$ac_tool_warned in
4496 yes:)
4497 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4498 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4499 ac_tool_warned=yes ;;
4500 esac
4501 CC=$ac_ct_CC
4503 else
4504 CC="$ac_cv_prog_CC"
4507 if test -z "$CC"; then
4508 if test -n "$ac_tool_prefix"; then
4509 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4510 set dummy ${ac_tool_prefix}cc; ac_word=$2
4511 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4512 $as_echo_n "checking for $ac_word... " >&6; }
4513 if test "${ac_cv_prog_CC+set}" = set; then :
4514 $as_echo_n "(cached) " >&6
4515 else
4516 if test -n "$CC"; then
4517 ac_cv_prog_CC="$CC" # Let the user override the test.
4518 else
4519 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4520 for as_dir in $PATH
4522 IFS=$as_save_IFS
4523 test -z "$as_dir" && as_dir=.
4524 for ac_exec_ext in '' $ac_executable_extensions; do
4525 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4526 ac_cv_prog_CC="${ac_tool_prefix}cc"
4527 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4528 break 2
4530 done
4531 done
4532 IFS=$as_save_IFS
4536 CC=$ac_cv_prog_CC
4537 if test -n "$CC"; then
4538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4539 $as_echo "$CC" >&6; }
4540 else
4541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4542 $as_echo "no" >&6; }
4548 if test -z "$CC"; then
4549 # Extract the first word of "cc", so it can be a program name with args.
4550 set dummy cc; ac_word=$2
4551 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4552 $as_echo_n "checking for $ac_word... " >&6; }
4553 if test "${ac_cv_prog_CC+set}" = set; then :
4554 $as_echo_n "(cached) " >&6
4555 else
4556 if test -n "$CC"; then
4557 ac_cv_prog_CC="$CC" # Let the user override the test.
4558 else
4559 ac_prog_rejected=no
4560 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4561 for as_dir in $PATH
4563 IFS=$as_save_IFS
4564 test -z "$as_dir" && as_dir=.
4565 for ac_exec_ext in '' $ac_executable_extensions; do
4566 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4567 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4568 ac_prog_rejected=yes
4569 continue
4571 ac_cv_prog_CC="cc"
4572 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4573 break 2
4575 done
4576 done
4577 IFS=$as_save_IFS
4579 if test $ac_prog_rejected = yes; then
4580 # We found a bogon in the path, so make sure we never use it.
4581 set dummy $ac_cv_prog_CC
4582 shift
4583 if test $# != 0; then
4584 # We chose a different compiler from the bogus one.
4585 # However, it has the same basename, so the bogon will be chosen
4586 # first if we set CC to just the basename; use the full file name.
4587 shift
4588 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4593 CC=$ac_cv_prog_CC
4594 if test -n "$CC"; then
4595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4596 $as_echo "$CC" >&6; }
4597 else
4598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4599 $as_echo "no" >&6; }
4604 if test -z "$CC"; then
4605 if test -n "$ac_tool_prefix"; then
4606 for ac_prog in cl.exe
4608 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4609 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4610 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4611 $as_echo_n "checking for $ac_word... " >&6; }
4612 if test "${ac_cv_prog_CC+set}" = set; then :
4613 $as_echo_n "(cached) " >&6
4614 else
4615 if test -n "$CC"; then
4616 ac_cv_prog_CC="$CC" # Let the user override the test.
4617 else
4618 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4619 for as_dir in $PATH
4621 IFS=$as_save_IFS
4622 test -z "$as_dir" && as_dir=.
4623 for ac_exec_ext in '' $ac_executable_extensions; do
4624 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4625 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4626 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4627 break 2
4629 done
4630 done
4631 IFS=$as_save_IFS
4635 CC=$ac_cv_prog_CC
4636 if test -n "$CC"; then
4637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4638 $as_echo "$CC" >&6; }
4639 else
4640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4641 $as_echo "no" >&6; }
4645 test -n "$CC" && break
4646 done
4648 if test -z "$CC"; then
4649 ac_ct_CC=$CC
4650 for ac_prog in cl.exe
4652 # Extract the first word of "$ac_prog", so it can be a program name with args.
4653 set dummy $ac_prog; ac_word=$2
4654 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4655 $as_echo_n "checking for $ac_word... " >&6; }
4656 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
4657 $as_echo_n "(cached) " >&6
4658 else
4659 if test -n "$ac_ct_CC"; then
4660 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4661 else
4662 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4663 for as_dir in $PATH
4665 IFS=$as_save_IFS
4666 test -z "$as_dir" && as_dir=.
4667 for ac_exec_ext in '' $ac_executable_extensions; do
4668 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4669 ac_cv_prog_ac_ct_CC="$ac_prog"
4670 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4671 break 2
4673 done
4674 done
4675 IFS=$as_save_IFS
4679 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4680 if test -n "$ac_ct_CC"; then
4681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4682 $as_echo "$ac_ct_CC" >&6; }
4683 else
4684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4685 $as_echo "no" >&6; }
4689 test -n "$ac_ct_CC" && break
4690 done
4692 if test "x$ac_ct_CC" = x; then
4693 CC=""
4694 else
4695 case $cross_compiling:$ac_tool_warned in
4696 yes:)
4697 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4698 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4699 ac_tool_warned=yes ;;
4700 esac
4701 CC=$ac_ct_CC
4708 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4709 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4710 as_fn_error "no acceptable C compiler found in \$PATH
4711 See \`config.log' for more details." "$LINENO" 5; }
4713 # Provide some information about the compiler.
4714 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4715 set X $ac_compile
4716 ac_compiler=$2
4717 for ac_option in --version -v -V -qversion; do
4718 { { ac_try="$ac_compiler $ac_option >&5"
4719 case "(($ac_try" in
4720 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4721 *) ac_try_echo=$ac_try;;
4722 esac
4723 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4724 $as_echo "$ac_try_echo"; } >&5
4725 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4726 ac_status=$?
4727 if test -s conftest.err; then
4728 sed '10a\
4729 ... rest of stderr output deleted ...
4730 10q' conftest.err >conftest.er1
4731 cat conftest.er1 >&5
4732 rm -f conftest.er1 conftest.err
4734 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4735 test $ac_status = 0; }
4736 done
4738 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4739 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4740 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
4741 $as_echo_n "(cached) " >&6
4742 else
4743 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4744 /* end confdefs.h. */
4747 main ()
4749 #ifndef __GNUC__
4750 choke me
4751 #endif
4754 return 0;
4756 _ACEOF
4757 if ac_fn_c_try_compile "$LINENO"; then :
4758 ac_compiler_gnu=yes
4759 else
4760 ac_compiler_gnu=no
4762 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4763 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4767 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4768 if test $ac_compiler_gnu = yes; then
4769 GCC=yes
4770 else
4771 GCC=
4773 ac_test_CFLAGS=${CFLAGS+set}
4774 ac_save_CFLAGS=$CFLAGS
4775 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4776 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4777 if test "${ac_cv_prog_cc_g+set}" = set; then :
4778 $as_echo_n "(cached) " >&6
4779 else
4780 ac_save_c_werror_flag=$ac_c_werror_flag
4781 ac_c_werror_flag=yes
4782 ac_cv_prog_cc_g=no
4783 CFLAGS="-g"
4784 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4785 /* end confdefs.h. */
4788 main ()
4792 return 0;
4794 _ACEOF
4795 if ac_fn_c_try_compile "$LINENO"; then :
4796 ac_cv_prog_cc_g=yes
4797 else
4798 CFLAGS=""
4799 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4800 /* end confdefs.h. */
4803 main ()
4807 return 0;
4809 _ACEOF
4810 if ac_fn_c_try_compile "$LINENO"; then :
4812 else
4813 ac_c_werror_flag=$ac_save_c_werror_flag
4814 CFLAGS="-g"
4815 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4816 /* end confdefs.h. */
4819 main ()
4823 return 0;
4825 _ACEOF
4826 if ac_fn_c_try_compile "$LINENO"; then :
4827 ac_cv_prog_cc_g=yes
4829 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4831 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4833 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4834 ac_c_werror_flag=$ac_save_c_werror_flag
4836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4837 $as_echo "$ac_cv_prog_cc_g" >&6; }
4838 if test "$ac_test_CFLAGS" = set; then
4839 CFLAGS=$ac_save_CFLAGS
4840 elif test $ac_cv_prog_cc_g = yes; then
4841 if test "$GCC" = yes; then
4842 CFLAGS="-g -O2"
4843 else
4844 CFLAGS="-g"
4846 else
4847 if test "$GCC" = yes; then
4848 CFLAGS="-O2"
4849 else
4850 CFLAGS=
4853 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4854 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4855 if test "${ac_cv_prog_cc_c89+set}" = set; then :
4856 $as_echo_n "(cached) " >&6
4857 else
4858 ac_cv_prog_cc_c89=no
4859 ac_save_CC=$CC
4860 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4861 /* end confdefs.h. */
4862 #include <stdarg.h>
4863 #include <stdio.h>
4864 #include <sys/types.h>
4865 #include <sys/stat.h>
4866 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4867 struct buf { int x; };
4868 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4869 static char *e (p, i)
4870 char **p;
4871 int i;
4873 return p[i];
4875 static char *f (char * (*g) (char **, int), char **p, ...)
4877 char *s;
4878 va_list v;
4879 va_start (v,p);
4880 s = g (p, va_arg (v,int));
4881 va_end (v);
4882 return s;
4885 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4886 function prototypes and stuff, but not '\xHH' hex character constants.
4887 These don't provoke an error unfortunately, instead are silently treated
4888 as 'x'. The following induces an error, until -std is added to get
4889 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4890 array size at least. It's necessary to write '\x00'==0 to get something
4891 that's true only with -std. */
4892 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4894 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4895 inside strings and character constants. */
4896 #define FOO(x) 'x'
4897 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4899 int test (int i, double x);
4900 struct s1 {int (*f) (int a);};
4901 struct s2 {int (*f) (double a);};
4902 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4903 int argc;
4904 char **argv;
4906 main ()
4908 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4910 return 0;
4912 _ACEOF
4913 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4914 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4916 CC="$ac_save_CC $ac_arg"
4917 if ac_fn_c_try_compile "$LINENO"; then :
4918 ac_cv_prog_cc_c89=$ac_arg
4920 rm -f core conftest.err conftest.$ac_objext
4921 test "x$ac_cv_prog_cc_c89" != "xno" && break
4922 done
4923 rm -f conftest.$ac_ext
4924 CC=$ac_save_CC
4927 # AC_CACHE_VAL
4928 case "x$ac_cv_prog_cc_c89" in
4930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4931 $as_echo "none needed" >&6; } ;;
4932 xno)
4933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4934 $as_echo "unsupported" >&6; } ;;
4936 CC="$CC $ac_cv_prog_cc_c89"
4937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4938 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4939 esac
4940 if test "x$ac_cv_prog_cc_c89" != xno; then :
4944 ac_ext=c
4945 ac_cpp='$CPP $CPPFLAGS'
4946 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4947 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4948 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4950 ac_ext=c
4951 ac_cpp='$CPP $CPPFLAGS'
4952 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4953 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4954 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4955 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4956 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4957 # On Suns, sometimes $CPP names a directory.
4958 if test -n "$CPP" && test -d "$CPP"; then
4959 CPP=
4961 if test -z "$CPP"; then
4962 if test "${ac_cv_prog_CPP+set}" = set; then :
4963 $as_echo_n "(cached) " >&6
4964 else
4965 # Double quotes because CPP needs to be expanded
4966 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4968 ac_preproc_ok=false
4969 for ac_c_preproc_warn_flag in '' yes
4971 # Use a header file that comes with gcc, so configuring glibc
4972 # with a fresh cross-compiler works.
4973 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4974 # <limits.h> exists even on freestanding compilers.
4975 # On the NeXT, cc -E runs the code through the compiler's parser,
4976 # not just through cpp. "Syntax error" is here to catch this case.
4977 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4978 /* end confdefs.h. */
4979 #ifdef __STDC__
4980 # include <limits.h>
4981 #else
4982 # include <assert.h>
4983 #endif
4984 Syntax error
4985 _ACEOF
4986 if ac_fn_c_try_cpp "$LINENO"; then :
4988 else
4989 # Broken: fails on valid input.
4990 continue
4992 rm -f conftest.err conftest.$ac_ext
4994 # OK, works on sane cases. Now check whether nonexistent headers
4995 # can be detected and how.
4996 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4997 /* end confdefs.h. */
4998 #include <ac_nonexistent.h>
4999 _ACEOF
5000 if ac_fn_c_try_cpp "$LINENO"; then :
5001 # Broken: success on invalid input.
5002 continue
5003 else
5004 # Passes both tests.
5005 ac_preproc_ok=:
5006 break
5008 rm -f conftest.err conftest.$ac_ext
5010 done
5011 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5012 rm -f conftest.err conftest.$ac_ext
5013 if $ac_preproc_ok; then :
5014 break
5017 done
5018 ac_cv_prog_CPP=$CPP
5021 CPP=$ac_cv_prog_CPP
5022 else
5023 ac_cv_prog_CPP=$CPP
5025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5026 $as_echo "$CPP" >&6; }
5027 ac_preproc_ok=false
5028 for ac_c_preproc_warn_flag in '' yes
5030 # Use a header file that comes with gcc, so configuring glibc
5031 # with a fresh cross-compiler works.
5032 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5033 # <limits.h> exists even on freestanding compilers.
5034 # On the NeXT, cc -E runs the code through the compiler's parser,
5035 # not just through cpp. "Syntax error" is here to catch this case.
5036 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5037 /* end confdefs.h. */
5038 #ifdef __STDC__
5039 # include <limits.h>
5040 #else
5041 # include <assert.h>
5042 #endif
5043 Syntax error
5044 _ACEOF
5045 if ac_fn_c_try_cpp "$LINENO"; then :
5047 else
5048 # Broken: fails on valid input.
5049 continue
5051 rm -f conftest.err conftest.$ac_ext
5053 # OK, works on sane cases. Now check whether nonexistent headers
5054 # can be detected and how.
5055 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5056 /* end confdefs.h. */
5057 #include <ac_nonexistent.h>
5058 _ACEOF
5059 if ac_fn_c_try_cpp "$LINENO"; then :
5060 # Broken: success on invalid input.
5061 continue
5062 else
5063 # Passes both tests.
5064 ac_preproc_ok=:
5065 break
5067 rm -f conftest.err conftest.$ac_ext
5069 done
5070 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5071 rm -f conftest.err conftest.$ac_ext
5072 if $ac_preproc_ok; then :
5074 else
5075 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5076 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5077 as_fn_error "C preprocessor \"$CPP\" fails sanity check
5078 See \`config.log' for more details." "$LINENO" 5; }
5081 ac_ext=c
5082 ac_cpp='$CPP $CPPFLAGS'
5083 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5084 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5085 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5088 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5089 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5090 if test "${ac_cv_path_GREP+set}" = set; then :
5091 $as_echo_n "(cached) " >&6
5092 else
5093 if test -z "$GREP"; then
5094 ac_path_GREP_found=false
5095 # Loop through the user's path and test for each of PROGNAME-LIST
5096 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5097 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5099 IFS=$as_save_IFS
5100 test -z "$as_dir" && as_dir=.
5101 for ac_prog in grep ggrep; do
5102 for ac_exec_ext in '' $ac_executable_extensions; do
5103 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5104 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
5105 # Check for GNU ac_path_GREP and select it if it is found.
5106 # Check for GNU $ac_path_GREP
5107 case `"$ac_path_GREP" --version 2>&1` in
5108 *GNU*)
5109 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5111 ac_count=0
5112 $as_echo_n 0123456789 >"conftest.in"
5113 while :
5115 cat "conftest.in" "conftest.in" >"conftest.tmp"
5116 mv "conftest.tmp" "conftest.in"
5117 cp "conftest.in" "conftest.nl"
5118 $as_echo 'GREP' >> "conftest.nl"
5119 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5120 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5121 as_fn_arith $ac_count + 1 && ac_count=$as_val
5122 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5123 # Best one so far, save it but keep looking for a better one
5124 ac_cv_path_GREP="$ac_path_GREP"
5125 ac_path_GREP_max=$ac_count
5127 # 10*(2^10) chars as input seems more than enough
5128 test $ac_count -gt 10 && break
5129 done
5130 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5131 esac
5133 $ac_path_GREP_found && break 3
5134 done
5135 done
5136 done
5137 IFS=$as_save_IFS
5138 if test -z "$ac_cv_path_GREP"; then
5139 as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5141 else
5142 ac_cv_path_GREP=$GREP
5146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5147 $as_echo "$ac_cv_path_GREP" >&6; }
5148 GREP="$ac_cv_path_GREP"
5151 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5152 $as_echo_n "checking for egrep... " >&6; }
5153 if test "${ac_cv_path_EGREP+set}" = set; then :
5154 $as_echo_n "(cached) " >&6
5155 else
5156 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5157 then ac_cv_path_EGREP="$GREP -E"
5158 else
5159 if test -z "$EGREP"; then
5160 ac_path_EGREP_found=false
5161 # Loop through the user's path and test for each of PROGNAME-LIST
5162 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5163 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5165 IFS=$as_save_IFS
5166 test -z "$as_dir" && as_dir=.
5167 for ac_prog in egrep; do
5168 for ac_exec_ext in '' $ac_executable_extensions; do
5169 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5170 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
5171 # Check for GNU ac_path_EGREP and select it if it is found.
5172 # Check for GNU $ac_path_EGREP
5173 case `"$ac_path_EGREP" --version 2>&1` in
5174 *GNU*)
5175 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5177 ac_count=0
5178 $as_echo_n 0123456789 >"conftest.in"
5179 while :
5181 cat "conftest.in" "conftest.in" >"conftest.tmp"
5182 mv "conftest.tmp" "conftest.in"
5183 cp "conftest.in" "conftest.nl"
5184 $as_echo 'EGREP' >> "conftest.nl"
5185 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5186 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5187 as_fn_arith $ac_count + 1 && ac_count=$as_val
5188 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5189 # Best one so far, save it but keep looking for a better one
5190 ac_cv_path_EGREP="$ac_path_EGREP"
5191 ac_path_EGREP_max=$ac_count
5193 # 10*(2^10) chars as input seems more than enough
5194 test $ac_count -gt 10 && break
5195 done
5196 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5197 esac
5199 $ac_path_EGREP_found && break 3
5200 done
5201 done
5202 done
5203 IFS=$as_save_IFS
5204 if test -z "$ac_cv_path_EGREP"; then
5205 as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5207 else
5208 ac_cv_path_EGREP=$EGREP
5213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5214 $as_echo "$ac_cv_path_EGREP" >&6; }
5215 EGREP="$ac_cv_path_EGREP"
5218 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
5219 $as_echo_n "checking for ANSI C header files... " >&6; }
5220 if test "${ac_cv_header_stdc+set}" = set; then :
5221 $as_echo_n "(cached) " >&6
5222 else
5223 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5224 /* end confdefs.h. */
5225 #include <stdlib.h>
5226 #include <stdarg.h>
5227 #include <string.h>
5228 #include <float.h>
5231 main ()
5235 return 0;
5237 _ACEOF
5238 if ac_fn_c_try_compile "$LINENO"; then :
5239 ac_cv_header_stdc=yes
5240 else
5241 ac_cv_header_stdc=no
5243 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5245 if test $ac_cv_header_stdc = yes; then
5246 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5247 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5248 /* end confdefs.h. */
5249 #include <string.h>
5251 _ACEOF
5252 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5253 $EGREP "memchr" >/dev/null 2>&1; then :
5255 else
5256 ac_cv_header_stdc=no
5258 rm -f conftest*
5262 if test $ac_cv_header_stdc = yes; then
5263 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5264 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5265 /* end confdefs.h. */
5266 #include <stdlib.h>
5268 _ACEOF
5269 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5270 $EGREP "free" >/dev/null 2>&1; then :
5272 else
5273 ac_cv_header_stdc=no
5275 rm -f conftest*
5279 if test $ac_cv_header_stdc = yes; then
5280 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5281 if test "$cross_compiling" = yes; then :
5283 else
5284 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5285 /* end confdefs.h. */
5286 #include <ctype.h>
5287 #include <stdlib.h>
5288 #if ((' ' & 0x0FF) == 0x020)
5289 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5290 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5291 #else
5292 # define ISLOWER(c) \
5293 (('a' <= (c) && (c) <= 'i') \
5294 || ('j' <= (c) && (c) <= 'r') \
5295 || ('s' <= (c) && (c) <= 'z'))
5296 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5297 #endif
5299 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5301 main ()
5303 int i;
5304 for (i = 0; i < 256; i++)
5305 if (XOR (islower (i), ISLOWER (i))
5306 || toupper (i) != TOUPPER (i))
5307 return 2;
5308 return 0;
5310 _ACEOF
5311 if ac_fn_c_try_run "$LINENO"; then :
5313 else
5314 ac_cv_header_stdc=no
5316 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5317 conftest.$ac_objext conftest.beam conftest.$ac_ext
5322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
5323 $as_echo "$ac_cv_header_stdc" >&6; }
5324 if test $ac_cv_header_stdc = yes; then
5326 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
5330 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5331 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5332 inttypes.h stdint.h unistd.h
5333 do :
5334 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5335 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
5337 eval as_val=\$$as_ac_Header
5338 if test "x$as_val" = x""yes; then :
5339 cat >>confdefs.h <<_ACEOF
5340 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5341 _ACEOF
5345 done
5349 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
5350 if test "x$ac_cv_header_minix_config_h" = x""yes; then :
5351 MINIX=yes
5352 else
5353 MINIX=
5357 if test "$MINIX" = yes; then
5359 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
5362 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
5365 $as_echo "#define _MINIX 1" >>confdefs.h
5370 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
5371 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
5372 if test "${ac_cv_safe_to_define___extensions__+set}" = set; then :
5373 $as_echo_n "(cached) " >&6
5374 else
5375 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5376 /* end confdefs.h. */
5378 # define __EXTENSIONS__ 1
5379 $ac_includes_default
5381 main ()
5385 return 0;
5387 _ACEOF
5388 if ac_fn_c_try_compile "$LINENO"; then :
5389 ac_cv_safe_to_define___extensions__=yes
5390 else
5391 ac_cv_safe_to_define___extensions__=no
5393 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
5396 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
5397 test $ac_cv_safe_to_define___extensions__ = yes &&
5398 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
5400 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
5402 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
5404 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
5406 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
5411 # Check whether --enable-largefile was given.
5412 if test "${enable_largefile+set}" = set; then :
5413 enableval=$enable_largefile;
5416 if test "$enable_largefile" != no; then
5418 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
5419 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
5420 if test "${ac_cv_sys_largefile_CC+set}" = set; then :
5421 $as_echo_n "(cached) " >&6
5422 else
5423 ac_cv_sys_largefile_CC=no
5424 if test "$GCC" != yes; then
5425 ac_save_CC=$CC
5426 while :; do
5427 # IRIX 6.2 and later do not support large files by default,
5428 # so use the C compiler's -n32 option if that helps.
5429 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5430 /* end confdefs.h. */
5431 #include <sys/types.h>
5432 /* Check that off_t can represent 2**63 - 1 correctly.
5433 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5434 since some C++ compilers masquerading as C compilers
5435 incorrectly reject 9223372036854775807. */
5436 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5437 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5438 && LARGE_OFF_T % 2147483647 == 1)
5439 ? 1 : -1];
5441 main ()
5445 return 0;
5447 _ACEOF
5448 if ac_fn_c_try_compile "$LINENO"; then :
5449 break
5451 rm -f core conftest.err conftest.$ac_objext
5452 CC="$CC -n32"
5453 if ac_fn_c_try_compile "$LINENO"; then :
5454 ac_cv_sys_largefile_CC=' -n32'; break
5456 rm -f core conftest.err conftest.$ac_objext
5457 break
5458 done
5459 CC=$ac_save_CC
5460 rm -f conftest.$ac_ext
5463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
5464 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
5465 if test "$ac_cv_sys_largefile_CC" != no; then
5466 CC=$CC$ac_cv_sys_largefile_CC
5469 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
5470 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
5471 if test "${ac_cv_sys_file_offset_bits+set}" = set; then :
5472 $as_echo_n "(cached) " >&6
5473 else
5474 while :; do
5475 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5476 /* end confdefs.h. */
5477 #include <sys/types.h>
5478 /* Check that off_t can represent 2**63 - 1 correctly.
5479 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5480 since some C++ compilers masquerading as C compilers
5481 incorrectly reject 9223372036854775807. */
5482 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5483 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5484 && LARGE_OFF_T % 2147483647 == 1)
5485 ? 1 : -1];
5487 main ()
5491 return 0;
5493 _ACEOF
5494 if ac_fn_c_try_compile "$LINENO"; then :
5495 ac_cv_sys_file_offset_bits=no; break
5497 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5498 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5499 /* end confdefs.h. */
5500 #define _FILE_OFFSET_BITS 64
5501 #include <sys/types.h>
5502 /* Check that off_t can represent 2**63 - 1 correctly.
5503 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5504 since some C++ compilers masquerading as C compilers
5505 incorrectly reject 9223372036854775807. */
5506 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5507 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5508 && LARGE_OFF_T % 2147483647 == 1)
5509 ? 1 : -1];
5511 main ()
5515 return 0;
5517 _ACEOF
5518 if ac_fn_c_try_compile "$LINENO"; then :
5519 ac_cv_sys_file_offset_bits=64; break
5521 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5522 ac_cv_sys_file_offset_bits=unknown
5523 break
5524 done
5526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
5527 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
5528 case $ac_cv_sys_file_offset_bits in #(
5529 no | unknown) ;;
5531 cat >>confdefs.h <<_ACEOF
5532 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
5533 _ACEOF
5535 esac
5536 rm -rf conftest*
5537 if test $ac_cv_sys_file_offset_bits = unknown; then
5538 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
5539 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
5540 if test "${ac_cv_sys_large_files+set}" = set; then :
5541 $as_echo_n "(cached) " >&6
5542 else
5543 while :; do
5544 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5545 /* end confdefs.h. */
5546 #include <sys/types.h>
5547 /* Check that off_t can represent 2**63 - 1 correctly.
5548 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5549 since some C++ compilers masquerading as C compilers
5550 incorrectly reject 9223372036854775807. */
5551 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5552 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5553 && LARGE_OFF_T % 2147483647 == 1)
5554 ? 1 : -1];
5556 main ()
5560 return 0;
5562 _ACEOF
5563 if ac_fn_c_try_compile "$LINENO"; then :
5564 ac_cv_sys_large_files=no; break
5566 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5567 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5568 /* end confdefs.h. */
5569 #define _LARGE_FILES 1
5570 #include <sys/types.h>
5571 /* Check that off_t can represent 2**63 - 1 correctly.
5572 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5573 since some C++ compilers masquerading as C compilers
5574 incorrectly reject 9223372036854775807. */
5575 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5576 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5577 && LARGE_OFF_T % 2147483647 == 1)
5578 ? 1 : -1];
5580 main ()
5584 return 0;
5586 _ACEOF
5587 if ac_fn_c_try_compile "$LINENO"; then :
5588 ac_cv_sys_large_files=1; break
5590 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5591 ac_cv_sys_large_files=unknown
5592 break
5593 done
5595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
5596 $as_echo "$ac_cv_sys_large_files" >&6; }
5597 case $ac_cv_sys_large_files in #(
5598 no | unknown) ;;
5600 cat >>confdefs.h <<_ACEOF
5601 #define _LARGE_FILES $ac_cv_sys_large_files
5602 _ACEOF
5604 esac
5605 rm -rf conftest*
5611 case `pwd` in
5612 *\ * | *\ *)
5613 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
5614 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
5615 esac
5619 macro_version='2.2.6'
5620 macro_revision='1.3012'
5634 ltmain="$ac_aux_dir/ltmain.sh"
5636 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
5637 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
5638 if test "${ac_cv_path_SED+set}" = set; then :
5639 $as_echo_n "(cached) " >&6
5640 else
5641 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
5642 for ac_i in 1 2 3 4 5 6 7; do
5643 ac_script="$ac_script$as_nl$ac_script"
5644 done
5645 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
5646 { ac_script=; unset ac_script;}
5647 if test -z "$SED"; then
5648 ac_path_SED_found=false
5649 # Loop through the user's path and test for each of PROGNAME-LIST
5650 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5651 for as_dir in $PATH
5653 IFS=$as_save_IFS
5654 test -z "$as_dir" && as_dir=.
5655 for ac_prog in sed gsed; do
5656 for ac_exec_ext in '' $ac_executable_extensions; do
5657 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
5658 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
5659 # Check for GNU ac_path_SED and select it if it is found.
5660 # Check for GNU $ac_path_SED
5661 case `"$ac_path_SED" --version 2>&1` in
5662 *GNU*)
5663 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
5665 ac_count=0
5666 $as_echo_n 0123456789 >"conftest.in"
5667 while :
5669 cat "conftest.in" "conftest.in" >"conftest.tmp"
5670 mv "conftest.tmp" "conftest.in"
5671 cp "conftest.in" "conftest.nl"
5672 $as_echo '' >> "conftest.nl"
5673 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
5674 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5675 as_fn_arith $ac_count + 1 && ac_count=$as_val
5676 if test $ac_count -gt ${ac_path_SED_max-0}; then
5677 # Best one so far, save it but keep looking for a better one
5678 ac_cv_path_SED="$ac_path_SED"
5679 ac_path_SED_max=$ac_count
5681 # 10*(2^10) chars as input seems more than enough
5682 test $ac_count -gt 10 && break
5683 done
5684 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5685 esac
5687 $ac_path_SED_found && break 3
5688 done
5689 done
5690 done
5691 IFS=$as_save_IFS
5692 if test -z "$ac_cv_path_SED"; then
5693 as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
5695 else
5696 ac_cv_path_SED=$SED
5700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
5701 $as_echo "$ac_cv_path_SED" >&6; }
5702 SED="$ac_cv_path_SED"
5703 rm -f conftest.sed
5705 test -z "$SED" && SED=sed
5706 Xsed="$SED -e 1s/^X//"
5718 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
5719 $as_echo_n "checking for fgrep... " >&6; }
5720 if test "${ac_cv_path_FGREP+set}" = set; then :
5721 $as_echo_n "(cached) " >&6
5722 else
5723 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
5724 then ac_cv_path_FGREP="$GREP -F"
5725 else
5726 if test -z "$FGREP"; then
5727 ac_path_FGREP_found=false
5728 # Loop through the user's path and test for each of PROGNAME-LIST
5729 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5730 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5732 IFS=$as_save_IFS
5733 test -z "$as_dir" && as_dir=.
5734 for ac_prog in fgrep; do
5735 for ac_exec_ext in '' $ac_executable_extensions; do
5736 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
5737 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
5738 # Check for GNU ac_path_FGREP and select it if it is found.
5739 # Check for GNU $ac_path_FGREP
5740 case `"$ac_path_FGREP" --version 2>&1` in
5741 *GNU*)
5742 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
5744 ac_count=0
5745 $as_echo_n 0123456789 >"conftest.in"
5746 while :
5748 cat "conftest.in" "conftest.in" >"conftest.tmp"
5749 mv "conftest.tmp" "conftest.in"
5750 cp "conftest.in" "conftest.nl"
5751 $as_echo 'FGREP' >> "conftest.nl"
5752 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
5753 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5754 as_fn_arith $ac_count + 1 && ac_count=$as_val
5755 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5756 # Best one so far, save it but keep looking for a better one
5757 ac_cv_path_FGREP="$ac_path_FGREP"
5758 ac_path_FGREP_max=$ac_count
5760 # 10*(2^10) chars as input seems more than enough
5761 test $ac_count -gt 10 && break
5762 done
5763 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5764 esac
5766 $ac_path_FGREP_found && break 3
5767 done
5768 done
5769 done
5770 IFS=$as_save_IFS
5771 if test -z "$ac_cv_path_FGREP"; then
5772 as_fn_error "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5774 else
5775 ac_cv_path_FGREP=$FGREP
5780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
5781 $as_echo "$ac_cv_path_FGREP" >&6; }
5782 FGREP="$ac_cv_path_FGREP"
5785 test -z "$GREP" && GREP=grep
5805 # Check whether --with-gnu-ld was given.
5806 if test "${with_gnu_ld+set}" = set; then :
5807 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
5808 else
5809 with_gnu_ld=no
5812 ac_prog=ld
5813 if test "$GCC" = yes; then
5814 # Check if gcc -print-prog-name=ld gives a path.
5815 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5816 $as_echo_n "checking for ld used by $CC... " >&6; }
5817 case $host in
5818 *-*-mingw*)
5819 # gcc leaves a trailing carriage return which upsets mingw
5820 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5822 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5823 esac
5824 case $ac_prog in
5825 # Accept absolute paths.
5826 [\\/]* | ?:[\\/]*)
5827 re_direlt='/[^/][^/]*/\.\./'
5828 # Canonicalize the pathname of ld
5829 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5830 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5831 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5832 done
5833 test -z "$LD" && LD="$ac_prog"
5836 # If it fails, then pretend we aren't using GCC.
5837 ac_prog=ld
5840 # If it is relative, then search for the first ld in PATH.
5841 with_gnu_ld=unknown
5843 esac
5844 elif test "$with_gnu_ld" = yes; then
5845 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5846 $as_echo_n "checking for GNU ld... " >&6; }
5847 else
5848 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5849 $as_echo_n "checking for non-GNU ld... " >&6; }
5851 if test "${lt_cv_path_LD+set}" = set; then :
5852 $as_echo_n "(cached) " >&6
5853 else
5854 if test -z "$LD"; then
5855 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5856 for ac_dir in $PATH; do
5857 IFS="$lt_save_ifs"
5858 test -z "$ac_dir" && ac_dir=.
5859 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5860 lt_cv_path_LD="$ac_dir/$ac_prog"
5861 # Check to see if the program is GNU ld. I'd rather use --version,
5862 # but apparently some variants of GNU ld only accept -v.
5863 # Break only if it was the GNU/non-GNU ld that we prefer.
5864 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5865 *GNU* | *'with BFD'*)
5866 test "$with_gnu_ld" != no && break
5869 test "$with_gnu_ld" != yes && break
5871 esac
5873 done
5874 IFS="$lt_save_ifs"
5875 else
5876 lt_cv_path_LD="$LD" # Let the user override the test with a path.
5880 LD="$lt_cv_path_LD"
5881 if test -n "$LD"; then
5882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5883 $as_echo "$LD" >&6; }
5884 else
5885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5886 $as_echo "no" >&6; }
5888 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
5889 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5890 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
5891 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
5892 $as_echo_n "(cached) " >&6
5893 else
5894 # I'd rather use --version here, but apparently some GNU lds only accept -v.
5895 case `$LD -v 2>&1 </dev/null` in
5896 *GNU* | *'with BFD'*)
5897 lt_cv_prog_gnu_ld=yes
5900 lt_cv_prog_gnu_ld=no
5902 esac
5904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5905 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
5906 with_gnu_ld=$lt_cv_prog_gnu_ld
5916 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5917 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5918 if test "${lt_cv_path_NM+set}" = set; then :
5919 $as_echo_n "(cached) " >&6
5920 else
5921 if test -n "$NM"; then
5922 # Let the user override the test.
5923 lt_cv_path_NM="$NM"
5924 else
5925 lt_nm_to_check="${ac_tool_prefix}nm"
5926 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5927 lt_nm_to_check="$lt_nm_to_check nm"
5929 for lt_tmp_nm in $lt_nm_to_check; do
5930 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5931 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5932 IFS="$lt_save_ifs"
5933 test -z "$ac_dir" && ac_dir=.
5934 tmp_nm="$ac_dir/$lt_tmp_nm"
5935 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5936 # Check to see if the nm accepts a BSD-compat flag.
5937 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5938 # nm: unknown option "B" ignored
5939 # Tru64's nm complains that /dev/null is an invalid object file
5940 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5941 */dev/null* | *'Invalid file or object type'*)
5942 lt_cv_path_NM="$tmp_nm -B"
5943 break
5946 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5947 */dev/null*)
5948 lt_cv_path_NM="$tmp_nm -p"
5949 break
5952 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5953 continue # so that we can try to find one that supports BSD flags
5955 esac
5957 esac
5959 done
5960 IFS="$lt_save_ifs"
5961 done
5962 : ${lt_cv_path_NM=no}
5965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5966 $as_echo "$lt_cv_path_NM" >&6; }
5967 if test "$lt_cv_path_NM" != "no"; then
5968 NM="$lt_cv_path_NM"
5969 else
5970 # Didn't find any BSD compatible name lister, look for dumpbin.
5971 if test -n "$ac_tool_prefix"; then
5972 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
5974 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5975 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5976 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5977 $as_echo_n "checking for $ac_word... " >&6; }
5978 if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
5979 $as_echo_n "(cached) " >&6
5980 else
5981 if test -n "$DUMPBIN"; then
5982 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5983 else
5984 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5985 for as_dir in $PATH
5987 IFS=$as_save_IFS
5988 test -z "$as_dir" && as_dir=.
5989 for ac_exec_ext in '' $ac_executable_extensions; do
5990 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5991 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5992 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5993 break 2
5995 done
5996 done
5997 IFS=$as_save_IFS
6001 DUMPBIN=$ac_cv_prog_DUMPBIN
6002 if test -n "$DUMPBIN"; then
6003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
6004 $as_echo "$DUMPBIN" >&6; }
6005 else
6006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6007 $as_echo "no" >&6; }
6011 test -n "$DUMPBIN" && break
6012 done
6014 if test -z "$DUMPBIN"; then
6015 ac_ct_DUMPBIN=$DUMPBIN
6016 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
6018 # Extract the first word of "$ac_prog", so it can be a program name with args.
6019 set dummy $ac_prog; ac_word=$2
6020 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6021 $as_echo_n "checking for $ac_word... " >&6; }
6022 if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
6023 $as_echo_n "(cached) " >&6
6024 else
6025 if test -n "$ac_ct_DUMPBIN"; then
6026 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
6027 else
6028 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6029 for as_dir in $PATH
6031 IFS=$as_save_IFS
6032 test -z "$as_dir" && as_dir=.
6033 for ac_exec_ext in '' $ac_executable_extensions; do
6034 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6035 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
6036 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6037 break 2
6039 done
6040 done
6041 IFS=$as_save_IFS
6045 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
6046 if test -n "$ac_ct_DUMPBIN"; then
6047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
6048 $as_echo "$ac_ct_DUMPBIN" >&6; }
6049 else
6050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6051 $as_echo "no" >&6; }
6055 test -n "$ac_ct_DUMPBIN" && break
6056 done
6058 if test "x$ac_ct_DUMPBIN" = x; then
6059 DUMPBIN=":"
6060 else
6061 case $cross_compiling:$ac_tool_warned in
6062 yes:)
6063 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6064 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6065 ac_tool_warned=yes ;;
6066 esac
6067 DUMPBIN=$ac_ct_DUMPBIN
6072 if test "$DUMPBIN" != ":"; then
6073 NM="$DUMPBIN"
6076 test -z "$NM" && NM=nm
6083 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
6084 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
6085 if test "${lt_cv_nm_interface+set}" = set; then :
6086 $as_echo_n "(cached) " >&6
6087 else
6088 lt_cv_nm_interface="BSD nm"
6089 echo "int some_variable = 0;" > conftest.$ac_ext
6090 (eval echo "\"\$as_me:6090: $ac_compile\"" >&5)
6091 (eval "$ac_compile" 2>conftest.err)
6092 cat conftest.err >&5
6093 (eval echo "\"\$as_me:6093: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
6094 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
6095 cat conftest.err >&5
6096 (eval echo "\"\$as_me:6096: output\"" >&5)
6097 cat conftest.out >&5
6098 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
6099 lt_cv_nm_interface="MS dumpbin"
6101 rm -f conftest*
6103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
6104 $as_echo "$lt_cv_nm_interface" >&6; }
6106 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
6107 $as_echo_n "checking whether ln -s works... " >&6; }
6108 LN_S=$as_ln_s
6109 if test "$LN_S" = "ln -s"; then
6110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6111 $as_echo "yes" >&6; }
6112 else
6113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
6114 $as_echo "no, using $LN_S" >&6; }
6117 # find the maximum length of command line arguments
6118 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
6119 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
6120 if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
6121 $as_echo_n "(cached) " >&6
6122 else
6124 teststring="ABCD"
6126 case $build_os in
6127 msdosdjgpp*)
6128 # On DJGPP, this test can blow up pretty badly due to problems in libc
6129 # (any single argument exceeding 2000 bytes causes a buffer overrun
6130 # during glob expansion). Even if it were fixed, the result of this
6131 # check would be larger than it should be.
6132 lt_cv_sys_max_cmd_len=12288; # 12K is about right
6135 gnu*)
6136 # Under GNU Hurd, this test is not required because there is
6137 # no limit to the length of command line arguments.
6138 # Libtool will interpret -1 as no limit whatsoever
6139 lt_cv_sys_max_cmd_len=-1;
6142 cygwin* | mingw* | cegcc*)
6143 # On Win9x/ME, this test blows up -- it succeeds, but takes
6144 # about 5 minutes as the teststring grows exponentially.
6145 # Worse, since 9x/ME are not pre-emptively multitasking,
6146 # you end up with a "frozen" computer, even though with patience
6147 # the test eventually succeeds (with a max line length of 256k).
6148 # Instead, let's just punt: use the minimum linelength reported by
6149 # all of the supported platforms: 8192 (on NT/2K/XP).
6150 lt_cv_sys_max_cmd_len=8192;
6153 amigaos*)
6154 # On AmigaOS with pdksh, this test takes hours, literally.
6155 # So we just punt and use a minimum line length of 8192.
6156 lt_cv_sys_max_cmd_len=8192;
6159 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6160 # This has been around since 386BSD, at least. Likely further.
6161 if test -x /sbin/sysctl; then
6162 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6163 elif test -x /usr/sbin/sysctl; then
6164 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6165 else
6166 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
6168 # And add a safety zone
6169 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6170 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6173 interix*)
6174 # We know the value 262144 and hardcode it with a safety zone (like BSD)
6175 lt_cv_sys_max_cmd_len=196608
6178 osf*)
6179 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6180 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6181 # nice to cause kernel panics so lets avoid the loop below.
6182 # First set a reasonable default.
6183 lt_cv_sys_max_cmd_len=16384
6185 if test -x /sbin/sysconfig; then
6186 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6187 *1*) lt_cv_sys_max_cmd_len=-1 ;;
6188 esac
6191 sco3.2v5*)
6192 lt_cv_sys_max_cmd_len=102400
6194 sysv5* | sco5v6* | sysv4.2uw2*)
6195 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6196 if test -n "$kargmax"; then
6197 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
6198 else
6199 lt_cv_sys_max_cmd_len=32768
6203 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
6204 if test -n "$lt_cv_sys_max_cmd_len"; then
6205 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6206 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6207 else
6208 # Make teststring a little bigger before we do anything with it.
6209 # a 1K string should be a reasonable start.
6210 for i in 1 2 3 4 5 6 7 8 ; do
6211 teststring=$teststring$teststring
6212 done
6213 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6214 # If test is not a shell built-in, we'll probably end up computing a
6215 # maximum length that is only half of the actual maximum length, but
6216 # we can't tell.
6217 while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
6218 = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
6219 test $i != 17 # 1/2 MB should be enough
6221 i=`expr $i + 1`
6222 teststring=$teststring$teststring
6223 done
6224 # Only check the string length outside the loop.
6225 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
6226 teststring=
6227 # Add a significant safety factor because C++ compilers can tack on
6228 # massive amounts of additional arguments before passing them to the
6229 # linker. It appears as though 1/2 is a usable value.
6230 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6233 esac
6237 if test -n $lt_cv_sys_max_cmd_len ; then
6238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
6239 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
6240 else
6241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
6242 $as_echo "none" >&6; }
6244 max_cmd_len=$lt_cv_sys_max_cmd_len
6251 : ${CP="cp -f"}
6252 : ${MV="mv -f"}
6253 : ${RM="rm -f"}
6255 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
6256 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
6257 # Try some XSI features
6258 xsi_shell=no
6259 ( _lt_dummy="a/b/c"
6260 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
6261 = c,a/b,, \
6262 && eval 'test $(( 1 + 1 )) -eq 2 \
6263 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
6264 && xsi_shell=yes
6265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
6266 $as_echo "$xsi_shell" >&6; }
6269 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
6270 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
6271 lt_shell_append=no
6272 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
6273 >/dev/null 2>&1 \
6274 && lt_shell_append=yes
6275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
6276 $as_echo "$lt_shell_append" >&6; }
6279 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
6280 lt_unset=unset
6281 else
6282 lt_unset=false
6289 # test EBCDIC or ASCII
6290 case `echo X|tr X '\101'` in
6291 A) # ASCII based system
6292 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
6293 lt_SP2NL='tr \040 \012'
6294 lt_NL2SP='tr \015\012 \040\040'
6296 *) # EBCDIC based system
6297 lt_SP2NL='tr \100 \n'
6298 lt_NL2SP='tr \r\n \100\100'
6300 esac
6310 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
6311 $as_echo_n "checking for $LD option to reload object files... " >&6; }
6312 if test "${lt_cv_ld_reload_flag+set}" = set; then :
6313 $as_echo_n "(cached) " >&6
6314 else
6315 lt_cv_ld_reload_flag='-r'
6317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
6318 $as_echo "$lt_cv_ld_reload_flag" >&6; }
6319 reload_flag=$lt_cv_ld_reload_flag
6320 case $reload_flag in
6321 "" | " "*) ;;
6322 *) reload_flag=" $reload_flag" ;;
6323 esac
6324 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6325 case $host_os in
6326 darwin*)
6327 if test "$GCC" = yes; then
6328 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
6329 else
6330 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6333 esac
6343 if test -n "$ac_tool_prefix"; then
6344 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
6345 set dummy ${ac_tool_prefix}objdump; ac_word=$2
6346 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6347 $as_echo_n "checking for $ac_word... " >&6; }
6348 if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
6349 $as_echo_n "(cached) " >&6
6350 else
6351 if test -n "$OBJDUMP"; then
6352 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
6353 else
6354 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6355 for as_dir in $PATH
6357 IFS=$as_save_IFS
6358 test -z "$as_dir" && as_dir=.
6359 for ac_exec_ext in '' $ac_executable_extensions; do
6360 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6361 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
6362 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6363 break 2
6365 done
6366 done
6367 IFS=$as_save_IFS
6371 OBJDUMP=$ac_cv_prog_OBJDUMP
6372 if test -n "$OBJDUMP"; then
6373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
6374 $as_echo "$OBJDUMP" >&6; }
6375 else
6376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6377 $as_echo "no" >&6; }
6382 if test -z "$ac_cv_prog_OBJDUMP"; then
6383 ac_ct_OBJDUMP=$OBJDUMP
6384 # Extract the first word of "objdump", so it can be a program name with args.
6385 set dummy objdump; ac_word=$2
6386 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6387 $as_echo_n "checking for $ac_word... " >&6; }
6388 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
6389 $as_echo_n "(cached) " >&6
6390 else
6391 if test -n "$ac_ct_OBJDUMP"; then
6392 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
6393 else
6394 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6395 for as_dir in $PATH
6397 IFS=$as_save_IFS
6398 test -z "$as_dir" && as_dir=.
6399 for ac_exec_ext in '' $ac_executable_extensions; do
6400 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6401 ac_cv_prog_ac_ct_OBJDUMP="objdump"
6402 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6403 break 2
6405 done
6406 done
6407 IFS=$as_save_IFS
6411 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6412 if test -n "$ac_ct_OBJDUMP"; then
6413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
6414 $as_echo "$ac_ct_OBJDUMP" >&6; }
6415 else
6416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6417 $as_echo "no" >&6; }
6420 if test "x$ac_ct_OBJDUMP" = x; then
6421 OBJDUMP="false"
6422 else
6423 case $cross_compiling:$ac_tool_warned in
6424 yes:)
6425 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6426 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6427 ac_tool_warned=yes ;;
6428 esac
6429 OBJDUMP=$ac_ct_OBJDUMP
6431 else
6432 OBJDUMP="$ac_cv_prog_OBJDUMP"
6435 test -z "$OBJDUMP" && OBJDUMP=objdump
6445 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
6446 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
6447 if test "${lt_cv_deplibs_check_method+set}" = set; then :
6448 $as_echo_n "(cached) " >&6
6449 else
6450 lt_cv_file_magic_cmd='$MAGIC_CMD'
6451 lt_cv_file_magic_test_file=
6452 lt_cv_deplibs_check_method='unknown'
6453 # Need to set the preceding variable on all platforms that support
6454 # interlibrary dependencies.
6455 # 'none' -- dependencies not supported.
6456 # `unknown' -- same as none, but documents that we really don't know.
6457 # 'pass_all' -- all dependencies passed with no checks.
6458 # 'test_compile' -- check by making test program.
6459 # 'file_magic [[regex]]' -- check by looking for files in library path
6460 # which responds to the $file_magic_cmd with a given extended regex.
6461 # If you have `file' or equivalent on your system and you're not sure
6462 # whether `pass_all' will *always* work, you probably want this one.
6464 case $host_os in
6465 aix[4-9]*)
6466 lt_cv_deplibs_check_method=pass_all
6469 beos*)
6470 lt_cv_deplibs_check_method=pass_all
6473 bsdi[45]*)
6474 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6475 lt_cv_file_magic_cmd='/usr/bin/file -L'
6476 lt_cv_file_magic_test_file=/shlib/libc.so
6479 cygwin*)
6480 # func_win32_libid is a shell function defined in ltmain.sh
6481 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6482 lt_cv_file_magic_cmd='func_win32_libid'
6485 mingw* | pw32*)
6486 # Base MSYS/MinGW do not provide the 'file' command needed by
6487 # func_win32_libid shell function, so use a weaker test based on 'objdump',
6488 # unless we find 'file', for example because we are cross-compiling.
6489 if ( file / ) >/dev/null 2>&1; then
6490 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6491 lt_cv_file_magic_cmd='func_win32_libid'
6492 else
6493 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
6494 lt_cv_file_magic_cmd='$OBJDUMP -f'
6498 cegcc)
6499 # use the weaker test based on 'objdump'. See mingw*.
6500 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
6501 lt_cv_file_magic_cmd='$OBJDUMP -f'
6504 darwin* | rhapsody*)
6505 lt_cv_deplibs_check_method=pass_all
6508 freebsd* | dragonfly*)
6509 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6510 case $host_cpu in
6511 i*86 )
6512 # Not sure whether the presence of OpenBSD here was a mistake.
6513 # Let's accept both of them until this is cleared up.
6514 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6515 lt_cv_file_magic_cmd=/usr/bin/file
6516 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6518 esac
6519 else
6520 lt_cv_deplibs_check_method=pass_all
6524 gnu*)
6525 lt_cv_deplibs_check_method=pass_all
6528 hpux10.20* | hpux11*)
6529 lt_cv_file_magic_cmd=/usr/bin/file
6530 case $host_cpu in
6531 ia64*)
6532 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6533 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6535 hppa*64*)
6536 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]'
6537 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6540 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
6541 lt_cv_file_magic_test_file=/usr/lib/libc.sl
6543 esac
6546 interix[3-9]*)
6547 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6548 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6551 irix5* | irix6* | nonstopux*)
6552 case $LD in
6553 *-32|*"-32 ") libmagic=32-bit;;
6554 *-n32|*"-n32 ") libmagic=N32;;
6555 *-64|*"-64 ") libmagic=64-bit;;
6556 *) libmagic=never-match;;
6557 esac
6558 lt_cv_deplibs_check_method=pass_all
6561 # This must be Linux ELF.
6562 linux* | k*bsd*-gnu | kopensolaris*-gnu)
6563 lt_cv_deplibs_check_method=pass_all
6566 netbsd*)
6567 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6568 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6569 else
6570 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6574 newos6*)
6575 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6576 lt_cv_file_magic_cmd=/usr/bin/file
6577 lt_cv_file_magic_test_file=/usr/lib/libnls.so
6580 *nto* | *qnx*)
6581 lt_cv_deplibs_check_method=pass_all
6584 openbsd*)
6585 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6586 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6587 else
6588 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6592 osf3* | osf4* | osf5*)
6593 lt_cv_deplibs_check_method=pass_all
6596 rdos*)
6597 lt_cv_deplibs_check_method=pass_all
6600 solaris*)
6601 lt_cv_deplibs_check_method=pass_all
6604 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6605 lt_cv_deplibs_check_method=pass_all
6608 sysv4 | sysv4.3*)
6609 case $host_vendor in
6610 motorola)
6611 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]'
6612 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6614 ncr)
6615 lt_cv_deplibs_check_method=pass_all
6617 sequent)
6618 lt_cv_file_magic_cmd='/bin/file'
6619 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6621 sni)
6622 lt_cv_file_magic_cmd='/bin/file'
6623 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6624 lt_cv_file_magic_test_file=/lib/libc.so
6626 siemens)
6627 lt_cv_deplibs_check_method=pass_all
6630 lt_cv_deplibs_check_method=pass_all
6632 esac
6635 tpf*)
6636 lt_cv_deplibs_check_method=pass_all
6638 esac
6641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
6642 $as_echo "$lt_cv_deplibs_check_method" >&6; }
6643 file_magic_cmd=$lt_cv_file_magic_cmd
6644 deplibs_check_method=$lt_cv_deplibs_check_method
6645 test -z "$deplibs_check_method" && deplibs_check_method=unknown
6658 if test -n "$ac_tool_prefix"; then
6659 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6660 set dummy ${ac_tool_prefix}ar; ac_word=$2
6661 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6662 $as_echo_n "checking for $ac_word... " >&6; }
6663 if test "${ac_cv_prog_AR+set}" = set; then :
6664 $as_echo_n "(cached) " >&6
6665 else
6666 if test -n "$AR"; then
6667 ac_cv_prog_AR="$AR" # Let the user override the test.
6668 else
6669 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6670 for as_dir in $PATH
6672 IFS=$as_save_IFS
6673 test -z "$as_dir" && as_dir=.
6674 for ac_exec_ext in '' $ac_executable_extensions; do
6675 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6676 ac_cv_prog_AR="${ac_tool_prefix}ar"
6677 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6678 break 2
6680 done
6681 done
6682 IFS=$as_save_IFS
6686 AR=$ac_cv_prog_AR
6687 if test -n "$AR"; then
6688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6689 $as_echo "$AR" >&6; }
6690 else
6691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6692 $as_echo "no" >&6; }
6697 if test -z "$ac_cv_prog_AR"; then
6698 ac_ct_AR=$AR
6699 # Extract the first word of "ar", so it can be a program name with args.
6700 set dummy ar; ac_word=$2
6701 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6702 $as_echo_n "checking for $ac_word... " >&6; }
6703 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
6704 $as_echo_n "(cached) " >&6
6705 else
6706 if test -n "$ac_ct_AR"; then
6707 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6708 else
6709 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6710 for as_dir in $PATH
6712 IFS=$as_save_IFS
6713 test -z "$as_dir" && as_dir=.
6714 for ac_exec_ext in '' $ac_executable_extensions; do
6715 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6716 ac_cv_prog_ac_ct_AR="ar"
6717 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6718 break 2
6720 done
6721 done
6722 IFS=$as_save_IFS
6726 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6727 if test -n "$ac_ct_AR"; then
6728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6729 $as_echo "$ac_ct_AR" >&6; }
6730 else
6731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6732 $as_echo "no" >&6; }
6735 if test "x$ac_ct_AR" = x; then
6736 AR="false"
6737 else
6738 case $cross_compiling:$ac_tool_warned in
6739 yes:)
6740 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6741 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6742 ac_tool_warned=yes ;;
6743 esac
6744 AR=$ac_ct_AR
6746 else
6747 AR="$ac_cv_prog_AR"
6750 test -z "$AR" && AR=ar
6751 test -z "$AR_FLAGS" && AR_FLAGS=cru
6763 if test -n "$ac_tool_prefix"; then
6764 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6765 set dummy ${ac_tool_prefix}strip; ac_word=$2
6766 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6767 $as_echo_n "checking for $ac_word... " >&6; }
6768 if test "${ac_cv_prog_STRIP+set}" = set; then :
6769 $as_echo_n "(cached) " >&6
6770 else
6771 if test -n "$STRIP"; then
6772 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6773 else
6774 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6775 for as_dir in $PATH
6777 IFS=$as_save_IFS
6778 test -z "$as_dir" && as_dir=.
6779 for ac_exec_ext in '' $ac_executable_extensions; do
6780 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6781 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6782 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6783 break 2
6785 done
6786 done
6787 IFS=$as_save_IFS
6791 STRIP=$ac_cv_prog_STRIP
6792 if test -n "$STRIP"; then
6793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6794 $as_echo "$STRIP" >&6; }
6795 else
6796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6797 $as_echo "no" >&6; }
6802 if test -z "$ac_cv_prog_STRIP"; then
6803 ac_ct_STRIP=$STRIP
6804 # Extract the first word of "strip", so it can be a program name with args.
6805 set dummy strip; ac_word=$2
6806 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6807 $as_echo_n "checking for $ac_word... " >&6; }
6808 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
6809 $as_echo_n "(cached) " >&6
6810 else
6811 if test -n "$ac_ct_STRIP"; then
6812 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6813 else
6814 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6815 for as_dir in $PATH
6817 IFS=$as_save_IFS
6818 test -z "$as_dir" && as_dir=.
6819 for ac_exec_ext in '' $ac_executable_extensions; do
6820 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6821 ac_cv_prog_ac_ct_STRIP="strip"
6822 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6823 break 2
6825 done
6826 done
6827 IFS=$as_save_IFS
6831 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6832 if test -n "$ac_ct_STRIP"; then
6833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6834 $as_echo "$ac_ct_STRIP" >&6; }
6835 else
6836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6837 $as_echo "no" >&6; }
6840 if test "x$ac_ct_STRIP" = x; then
6841 STRIP=":"
6842 else
6843 case $cross_compiling:$ac_tool_warned in
6844 yes:)
6845 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6846 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6847 ac_tool_warned=yes ;;
6848 esac
6849 STRIP=$ac_ct_STRIP
6851 else
6852 STRIP="$ac_cv_prog_STRIP"
6855 test -z "$STRIP" && STRIP=:
6862 if test -n "$ac_tool_prefix"; then
6863 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6864 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6865 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6866 $as_echo_n "checking for $ac_word... " >&6; }
6867 if test "${ac_cv_prog_RANLIB+set}" = set; then :
6868 $as_echo_n "(cached) " >&6
6869 else
6870 if test -n "$RANLIB"; then
6871 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6872 else
6873 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6874 for as_dir in $PATH
6876 IFS=$as_save_IFS
6877 test -z "$as_dir" && as_dir=.
6878 for ac_exec_ext in '' $ac_executable_extensions; do
6879 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6880 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6881 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6882 break 2
6884 done
6885 done
6886 IFS=$as_save_IFS
6890 RANLIB=$ac_cv_prog_RANLIB
6891 if test -n "$RANLIB"; then
6892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6893 $as_echo "$RANLIB" >&6; }
6894 else
6895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6896 $as_echo "no" >&6; }
6901 if test -z "$ac_cv_prog_RANLIB"; then
6902 ac_ct_RANLIB=$RANLIB
6903 # Extract the first word of "ranlib", so it can be a program name with args.
6904 set dummy ranlib; ac_word=$2
6905 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6906 $as_echo_n "checking for $ac_word... " >&6; }
6907 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
6908 $as_echo_n "(cached) " >&6
6909 else
6910 if test -n "$ac_ct_RANLIB"; then
6911 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6912 else
6913 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6914 for as_dir in $PATH
6916 IFS=$as_save_IFS
6917 test -z "$as_dir" && as_dir=.
6918 for ac_exec_ext in '' $ac_executable_extensions; do
6919 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6920 ac_cv_prog_ac_ct_RANLIB="ranlib"
6921 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6922 break 2
6924 done
6925 done
6926 IFS=$as_save_IFS
6930 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6931 if test -n "$ac_ct_RANLIB"; then
6932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6933 $as_echo "$ac_ct_RANLIB" >&6; }
6934 else
6935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6936 $as_echo "no" >&6; }
6939 if test "x$ac_ct_RANLIB" = x; then
6940 RANLIB=":"
6941 else
6942 case $cross_compiling:$ac_tool_warned in
6943 yes:)
6944 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6945 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6946 ac_tool_warned=yes ;;
6947 esac
6948 RANLIB=$ac_ct_RANLIB
6950 else
6951 RANLIB="$ac_cv_prog_RANLIB"
6954 test -z "$RANLIB" && RANLIB=:
6961 # Determine commands to create old-style static archives.
6962 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6963 old_postinstall_cmds='chmod 644 $oldlib'
6964 old_postuninstall_cmds=
6966 if test -n "$RANLIB"; then
6967 case $host_os in
6968 openbsd*)
6969 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
6972 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
6974 esac
6975 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
7011 # If no C compiler was specified, use CC.
7012 LTCC=${LTCC-"$CC"}
7014 # If no C compiler flags were specified, use CFLAGS.
7015 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7017 # Allow CC to be a program name with arguments.
7018 compiler=$CC
7021 # Check for command to grab the raw symbol name followed by C symbol from nm.
7022 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
7023 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
7024 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
7025 $as_echo_n "(cached) " >&6
7026 else
7028 # These are sane defaults that work on at least a few old systems.
7029 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
7031 # Character class describing NM global symbol codes.
7032 symcode='[BCDEGRST]'
7034 # Regexp to match symbols that can be accessed directly from C.
7035 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
7037 # Define system-specific variables.
7038 case $host_os in
7039 aix*)
7040 symcode='[BCDT]'
7042 cygwin* | mingw* | pw32* | cegcc*)
7043 symcode='[ABCDGISTW]'
7045 hpux*)
7046 if test "$host_cpu" = ia64; then
7047 symcode='[ABCDEGRST]'
7050 irix* | nonstopux*)
7051 symcode='[BCDEGRST]'
7053 osf*)
7054 symcode='[BCDEGQRST]'
7056 solaris*)
7057 symcode='[BDRT]'
7059 sco3.2v5*)
7060 symcode='[DT]'
7062 sysv4.2uw2*)
7063 symcode='[DT]'
7065 sysv5* | sco5v6* | unixware* | OpenUNIX*)
7066 symcode='[ABDT]'
7068 sysv4)
7069 symcode='[DFNSTU]'
7071 esac
7073 # If we're using GNU nm, then use its standard symbol codes.
7074 case `$NM -V 2>&1` in
7075 *GNU* | *'with BFD'*)
7076 symcode='[ABCDGIRSTW]' ;;
7077 esac
7079 # Transform an extracted symbol line into a proper C declaration.
7080 # Some systems (esp. on ia64) link data and code symbols differently,
7081 # so use this general approach.
7082 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7084 # Transform an extracted symbol line into symbol name and symbol address
7085 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
7086 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'"
7088 # Handle CRLF in mingw tool chain
7089 opt_cr=
7090 case $build_os in
7091 mingw*)
7092 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7094 esac
7096 # Try without a prefix underscore, then with it.
7097 for ac_symprfx in "" "_"; do
7099 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7100 symxfrm="\\1 $ac_symprfx\\2 \\2"
7102 # Write the raw and C identifiers.
7103 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7104 # Fake it for dumpbin and say T for any non-static function
7105 # and D for any global variable.
7106 # Also find C++ and __fastcall symbols from MSVC++,
7107 # which start with @ or ?.
7108 lt_cv_sys_global_symbol_pipe="$AWK '"\
7109 " {last_section=section; section=\$ 3};"\
7110 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
7111 " \$ 0!~/External *\|/{next};"\
7112 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
7113 " {if(hide[section]) next};"\
7114 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
7115 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
7116 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
7117 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
7118 " ' prfx=^$ac_symprfx"
7119 else
7120 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7123 # Check to see that the pipe works correctly.
7124 pipe_works=no
7126 rm -f conftest*
7127 cat > conftest.$ac_ext <<_LT_EOF
7128 #ifdef __cplusplus
7129 extern "C" {
7130 #endif
7131 char nm_test_var;
7132 void nm_test_func(void);
7133 void nm_test_func(void){}
7134 #ifdef __cplusplus
7136 #endif
7137 int main(){nm_test_var='a';nm_test_func();return(0);}
7138 _LT_EOF
7140 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7141 (eval $ac_compile) 2>&5
7142 ac_status=$?
7143 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7144 test $ac_status = 0; }; then
7145 # Now try to grab the symbols.
7146 nlist=conftest.nm
7147 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\""; } >&5
7148 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
7149 ac_status=$?
7150 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7151 test $ac_status = 0; } && test -s "$nlist"; then
7152 # Try sorting and uniquifying the output.
7153 if sort "$nlist" | uniq > "$nlist"T; then
7154 mv -f "$nlist"T "$nlist"
7155 else
7156 rm -f "$nlist"T
7159 # Make sure that we snagged all the symbols we need.
7160 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
7161 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
7162 cat <<_LT_EOF > conftest.$ac_ext
7163 #ifdef __cplusplus
7164 extern "C" {
7165 #endif
7167 _LT_EOF
7168 # Now generate the symbol file.
7169 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
7171 cat <<_LT_EOF >> conftest.$ac_ext
7173 /* The mapping between symbol names and symbols. */
7174 const struct {
7175 const char *name;
7176 void *address;
7178 lt__PROGRAM__LTX_preloaded_symbols[] =
7180 { "@PROGRAM@", (void *) 0 },
7181 _LT_EOF
7182 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
7183 cat <<\_LT_EOF >> conftest.$ac_ext
7184 {0, (void *) 0}
7187 /* This works around a problem in FreeBSD linker */
7188 #ifdef FREEBSD_WORKAROUND
7189 static const void *lt_preloaded_setup() {
7190 return lt__PROGRAM__LTX_preloaded_symbols;
7192 #endif
7194 #ifdef __cplusplus
7196 #endif
7197 _LT_EOF
7198 # Now try linking the two files.
7199 mv conftest.$ac_objext conftstm.$ac_objext
7200 lt_save_LIBS="$LIBS"
7201 lt_save_CFLAGS="$CFLAGS"
7202 LIBS="conftstm.$ac_objext"
7203 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7204 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
7205 (eval $ac_link) 2>&5
7206 ac_status=$?
7207 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7208 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
7209 pipe_works=yes
7211 LIBS="$lt_save_LIBS"
7212 CFLAGS="$lt_save_CFLAGS"
7213 else
7214 echo "cannot find nm_test_func in $nlist" >&5
7216 else
7217 echo "cannot find nm_test_var in $nlist" >&5
7219 else
7220 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7222 else
7223 echo "$progname: failed program was:" >&5
7224 cat conftest.$ac_ext >&5
7226 rm -rf conftest* conftst*
7228 # Do not use the global_symbol_pipe unless it works.
7229 if test "$pipe_works" = yes; then
7230 break
7231 else
7232 lt_cv_sys_global_symbol_pipe=
7234 done
7238 if test -z "$lt_cv_sys_global_symbol_pipe"; then
7239 lt_cv_sys_global_symbol_to_cdecl=
7241 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
7243 $as_echo "failed" >&6; }
7244 else
7245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
7246 $as_echo "ok" >&6; }
7270 # Check whether --enable-libtool-lock was given.
7271 if test "${enable_libtool_lock+set}" = set; then :
7272 enableval=$enable_libtool_lock;
7275 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7277 # Some flags need to be propagated to the compiler or linker for good
7278 # libtool support.
7279 case $host in
7280 ia64-*-hpux*)
7281 # Find out which ABI we are using.
7282 echo 'int i;' > conftest.$ac_ext
7283 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7284 (eval $ac_compile) 2>&5
7285 ac_status=$?
7286 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7287 test $ac_status = 0; }; then
7288 case `/usr/bin/file conftest.$ac_objext` in
7289 *ELF-32*)
7290 HPUX_IA64_MODE="32"
7292 *ELF-64*)
7293 HPUX_IA64_MODE="64"
7295 esac
7297 rm -rf conftest*
7299 *-*-irix6*)
7300 # Find out which ABI we are using.
7301 echo '#line 7301 "configure"' > conftest.$ac_ext
7302 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7303 (eval $ac_compile) 2>&5
7304 ac_status=$?
7305 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7306 test $ac_status = 0; }; then
7307 if test "$lt_cv_prog_gnu_ld" = yes; then
7308 case `/usr/bin/file conftest.$ac_objext` in
7309 *32-bit*)
7310 LD="${LD-ld} -melf32bsmip"
7312 *N32*)
7313 LD="${LD-ld} -melf32bmipn32"
7315 *64-bit*)
7316 LD="${LD-ld} -melf64bmip"
7318 esac
7319 else
7320 case `/usr/bin/file conftest.$ac_objext` in
7321 *32-bit*)
7322 LD="${LD-ld} -32"
7324 *N32*)
7325 LD="${LD-ld} -n32"
7327 *64-bit*)
7328 LD="${LD-ld} -64"
7330 esac
7333 rm -rf conftest*
7336 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
7337 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
7338 # Find out which ABI we are using.
7339 echo 'int i;' > conftest.$ac_ext
7340 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7341 (eval $ac_compile) 2>&5
7342 ac_status=$?
7343 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7344 test $ac_status = 0; }; then
7345 case `/usr/bin/file conftest.o` in
7346 *32-bit*)
7347 case $host in
7348 x86_64-*kfreebsd*-gnu)
7349 LD="${LD-ld} -m elf_i386_fbsd"
7351 x86_64-*linux*)
7352 LD="${LD-ld} -m elf_i386"
7354 ppc64-*linux*|powerpc64-*linux*)
7355 LD="${LD-ld} -m elf32ppclinux"
7357 s390x-*linux*)
7358 LD="${LD-ld} -m elf_s390"
7360 sparc64-*linux*)
7361 LD="${LD-ld} -m elf32_sparc"
7363 esac
7365 *64-bit*)
7366 case $host in
7367 x86_64-*kfreebsd*-gnu)
7368 LD="${LD-ld} -m elf_x86_64_fbsd"
7370 x86_64-*linux*)
7371 LD="${LD-ld} -m elf_x86_64"
7373 ppc*-*linux*|powerpc*-*linux*)
7374 LD="${LD-ld} -m elf64ppc"
7376 s390*-*linux*|s390*-*tpf*)
7377 LD="${LD-ld} -m elf64_s390"
7379 sparc*-*linux*)
7380 LD="${LD-ld} -m elf64_sparc"
7382 esac
7384 esac
7386 rm -rf conftest*
7389 *-*-sco3.2v5*)
7390 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7391 SAVE_CFLAGS="$CFLAGS"
7392 CFLAGS="$CFLAGS -belf"
7393 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
7394 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
7395 if test "${lt_cv_cc_needs_belf+set}" = set; then :
7396 $as_echo_n "(cached) " >&6
7397 else
7398 ac_ext=c
7399 ac_cpp='$CPP $CPPFLAGS'
7400 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7401 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7402 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7404 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7405 /* end confdefs.h. */
7408 main ()
7412 return 0;
7414 _ACEOF
7415 if ac_fn_c_try_link "$LINENO"; then :
7416 lt_cv_cc_needs_belf=yes
7417 else
7418 lt_cv_cc_needs_belf=no
7420 rm -f core conftest.err conftest.$ac_objext \
7421 conftest$ac_exeext conftest.$ac_ext
7422 ac_ext=c
7423 ac_cpp='$CPP $CPPFLAGS'
7424 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7425 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7426 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
7430 $as_echo "$lt_cv_cc_needs_belf" >&6; }
7431 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
7432 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7433 CFLAGS="$SAVE_CFLAGS"
7436 sparc*-*solaris*)
7437 # Find out which ABI we are using.
7438 echo 'int i;' > conftest.$ac_ext
7439 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7440 (eval $ac_compile) 2>&5
7441 ac_status=$?
7442 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7443 test $ac_status = 0; }; then
7444 case `/usr/bin/file conftest.o` in
7445 *64-bit*)
7446 case $lt_cv_prog_gnu_ld in
7447 yes*) LD="${LD-ld} -m elf64_sparc" ;;
7449 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7450 LD="${LD-ld} -64"
7453 esac
7455 esac
7457 rm -rf conftest*
7459 esac
7461 need_locks="$enable_libtool_lock"
7464 case $host_os in
7465 rhapsody* | darwin*)
7466 if test -n "$ac_tool_prefix"; then
7467 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7468 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7469 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7470 $as_echo_n "checking for $ac_word... " >&6; }
7471 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
7472 $as_echo_n "(cached) " >&6
7473 else
7474 if test -n "$DSYMUTIL"; then
7475 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7476 else
7477 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7478 for as_dir in $PATH
7480 IFS=$as_save_IFS
7481 test -z "$as_dir" && as_dir=.
7482 for ac_exec_ext in '' $ac_executable_extensions; do
7483 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7484 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7485 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7486 break 2
7488 done
7489 done
7490 IFS=$as_save_IFS
7494 DSYMUTIL=$ac_cv_prog_DSYMUTIL
7495 if test -n "$DSYMUTIL"; then
7496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
7497 $as_echo "$DSYMUTIL" >&6; }
7498 else
7499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7500 $as_echo "no" >&6; }
7505 if test -z "$ac_cv_prog_DSYMUTIL"; then
7506 ac_ct_DSYMUTIL=$DSYMUTIL
7507 # Extract the first word of "dsymutil", so it can be a program name with args.
7508 set dummy dsymutil; ac_word=$2
7509 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7510 $as_echo_n "checking for $ac_word... " >&6; }
7511 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
7512 $as_echo_n "(cached) " >&6
7513 else
7514 if test -n "$ac_ct_DSYMUTIL"; then
7515 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7516 else
7517 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7518 for as_dir in $PATH
7520 IFS=$as_save_IFS
7521 test -z "$as_dir" && as_dir=.
7522 for ac_exec_ext in '' $ac_executable_extensions; do
7523 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7524 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7525 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7526 break 2
7528 done
7529 done
7530 IFS=$as_save_IFS
7534 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7535 if test -n "$ac_ct_DSYMUTIL"; then
7536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
7537 $as_echo "$ac_ct_DSYMUTIL" >&6; }
7538 else
7539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7540 $as_echo "no" >&6; }
7543 if test "x$ac_ct_DSYMUTIL" = x; then
7544 DSYMUTIL=":"
7545 else
7546 case $cross_compiling:$ac_tool_warned in
7547 yes:)
7548 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7549 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7550 ac_tool_warned=yes ;;
7551 esac
7552 DSYMUTIL=$ac_ct_DSYMUTIL
7554 else
7555 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7558 if test -n "$ac_tool_prefix"; then
7559 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7560 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7561 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7562 $as_echo_n "checking for $ac_word... " >&6; }
7563 if test "${ac_cv_prog_NMEDIT+set}" = set; then :
7564 $as_echo_n "(cached) " >&6
7565 else
7566 if test -n "$NMEDIT"; then
7567 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7568 else
7569 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7570 for as_dir in $PATH
7572 IFS=$as_save_IFS
7573 test -z "$as_dir" && as_dir=.
7574 for ac_exec_ext in '' $ac_executable_extensions; do
7575 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7576 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7577 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7578 break 2
7580 done
7581 done
7582 IFS=$as_save_IFS
7586 NMEDIT=$ac_cv_prog_NMEDIT
7587 if test -n "$NMEDIT"; then
7588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
7589 $as_echo "$NMEDIT" >&6; }
7590 else
7591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7592 $as_echo "no" >&6; }
7597 if test -z "$ac_cv_prog_NMEDIT"; then
7598 ac_ct_NMEDIT=$NMEDIT
7599 # Extract the first word of "nmedit", so it can be a program name with args.
7600 set dummy nmedit; ac_word=$2
7601 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7602 $as_echo_n "checking for $ac_word... " >&6; }
7603 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
7604 $as_echo_n "(cached) " >&6
7605 else
7606 if test -n "$ac_ct_NMEDIT"; then
7607 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7608 else
7609 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7610 for as_dir in $PATH
7612 IFS=$as_save_IFS
7613 test -z "$as_dir" && as_dir=.
7614 for ac_exec_ext in '' $ac_executable_extensions; do
7615 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7616 ac_cv_prog_ac_ct_NMEDIT="nmedit"
7617 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7618 break 2
7620 done
7621 done
7622 IFS=$as_save_IFS
7626 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7627 if test -n "$ac_ct_NMEDIT"; then
7628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7629 $as_echo "$ac_ct_NMEDIT" >&6; }
7630 else
7631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7632 $as_echo "no" >&6; }
7635 if test "x$ac_ct_NMEDIT" = x; then
7636 NMEDIT=":"
7637 else
7638 case $cross_compiling:$ac_tool_warned in
7639 yes:)
7640 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7641 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7642 ac_tool_warned=yes ;;
7643 esac
7644 NMEDIT=$ac_ct_NMEDIT
7646 else
7647 NMEDIT="$ac_cv_prog_NMEDIT"
7650 if test -n "$ac_tool_prefix"; then
7651 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7652 set dummy ${ac_tool_prefix}lipo; ac_word=$2
7653 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7654 $as_echo_n "checking for $ac_word... " >&6; }
7655 if test "${ac_cv_prog_LIPO+set}" = set; then :
7656 $as_echo_n "(cached) " >&6
7657 else
7658 if test -n "$LIPO"; then
7659 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7660 else
7661 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7662 for as_dir in $PATH
7664 IFS=$as_save_IFS
7665 test -z "$as_dir" && as_dir=.
7666 for ac_exec_ext in '' $ac_executable_extensions; do
7667 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7668 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7669 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7670 break 2
7672 done
7673 done
7674 IFS=$as_save_IFS
7678 LIPO=$ac_cv_prog_LIPO
7679 if test -n "$LIPO"; then
7680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7681 $as_echo "$LIPO" >&6; }
7682 else
7683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7684 $as_echo "no" >&6; }
7689 if test -z "$ac_cv_prog_LIPO"; then
7690 ac_ct_LIPO=$LIPO
7691 # Extract the first word of "lipo", so it can be a program name with args.
7692 set dummy lipo; ac_word=$2
7693 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7694 $as_echo_n "checking for $ac_word... " >&6; }
7695 if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
7696 $as_echo_n "(cached) " >&6
7697 else
7698 if test -n "$ac_ct_LIPO"; then
7699 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7700 else
7701 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7702 for as_dir in $PATH
7704 IFS=$as_save_IFS
7705 test -z "$as_dir" && as_dir=.
7706 for ac_exec_ext in '' $ac_executable_extensions; do
7707 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7708 ac_cv_prog_ac_ct_LIPO="lipo"
7709 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7710 break 2
7712 done
7713 done
7714 IFS=$as_save_IFS
7718 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7719 if test -n "$ac_ct_LIPO"; then
7720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7721 $as_echo "$ac_ct_LIPO" >&6; }
7722 else
7723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7724 $as_echo "no" >&6; }
7727 if test "x$ac_ct_LIPO" = x; then
7728 LIPO=":"
7729 else
7730 case $cross_compiling:$ac_tool_warned in
7731 yes:)
7732 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7733 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7734 ac_tool_warned=yes ;;
7735 esac
7736 LIPO=$ac_ct_LIPO
7738 else
7739 LIPO="$ac_cv_prog_LIPO"
7742 if test -n "$ac_tool_prefix"; then
7743 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7744 set dummy ${ac_tool_prefix}otool; ac_word=$2
7745 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7746 $as_echo_n "checking for $ac_word... " >&6; }
7747 if test "${ac_cv_prog_OTOOL+set}" = set; then :
7748 $as_echo_n "(cached) " >&6
7749 else
7750 if test -n "$OTOOL"; then
7751 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7752 else
7753 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7754 for as_dir in $PATH
7756 IFS=$as_save_IFS
7757 test -z "$as_dir" && as_dir=.
7758 for ac_exec_ext in '' $ac_executable_extensions; do
7759 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7760 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7761 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7762 break 2
7764 done
7765 done
7766 IFS=$as_save_IFS
7770 OTOOL=$ac_cv_prog_OTOOL
7771 if test -n "$OTOOL"; then
7772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7773 $as_echo "$OTOOL" >&6; }
7774 else
7775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7776 $as_echo "no" >&6; }
7781 if test -z "$ac_cv_prog_OTOOL"; then
7782 ac_ct_OTOOL=$OTOOL
7783 # Extract the first word of "otool", so it can be a program name with args.
7784 set dummy otool; ac_word=$2
7785 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7786 $as_echo_n "checking for $ac_word... " >&6; }
7787 if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
7788 $as_echo_n "(cached) " >&6
7789 else
7790 if test -n "$ac_ct_OTOOL"; then
7791 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7792 else
7793 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7794 for as_dir in $PATH
7796 IFS=$as_save_IFS
7797 test -z "$as_dir" && as_dir=.
7798 for ac_exec_ext in '' $ac_executable_extensions; do
7799 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7800 ac_cv_prog_ac_ct_OTOOL="otool"
7801 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7802 break 2
7804 done
7805 done
7806 IFS=$as_save_IFS
7810 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7811 if test -n "$ac_ct_OTOOL"; then
7812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7813 $as_echo "$ac_ct_OTOOL" >&6; }
7814 else
7815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7816 $as_echo "no" >&6; }
7819 if test "x$ac_ct_OTOOL" = x; then
7820 OTOOL=":"
7821 else
7822 case $cross_compiling:$ac_tool_warned in
7823 yes:)
7824 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7825 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7826 ac_tool_warned=yes ;;
7827 esac
7828 OTOOL=$ac_ct_OTOOL
7830 else
7831 OTOOL="$ac_cv_prog_OTOOL"
7834 if test -n "$ac_tool_prefix"; then
7835 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7836 set dummy ${ac_tool_prefix}otool64; ac_word=$2
7837 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7838 $as_echo_n "checking for $ac_word... " >&6; }
7839 if test "${ac_cv_prog_OTOOL64+set}" = set; then :
7840 $as_echo_n "(cached) " >&6
7841 else
7842 if test -n "$OTOOL64"; then
7843 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7844 else
7845 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7846 for as_dir in $PATH
7848 IFS=$as_save_IFS
7849 test -z "$as_dir" && as_dir=.
7850 for ac_exec_ext in '' $ac_executable_extensions; do
7851 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7852 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7853 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7854 break 2
7856 done
7857 done
7858 IFS=$as_save_IFS
7862 OTOOL64=$ac_cv_prog_OTOOL64
7863 if test -n "$OTOOL64"; then
7864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
7865 $as_echo "$OTOOL64" >&6; }
7866 else
7867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7868 $as_echo "no" >&6; }
7873 if test -z "$ac_cv_prog_OTOOL64"; then
7874 ac_ct_OTOOL64=$OTOOL64
7875 # Extract the first word of "otool64", so it can be a program name with args.
7876 set dummy otool64; ac_word=$2
7877 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7878 $as_echo_n "checking for $ac_word... " >&6; }
7879 if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
7880 $as_echo_n "(cached) " >&6
7881 else
7882 if test -n "$ac_ct_OTOOL64"; then
7883 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7884 else
7885 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7886 for as_dir in $PATH
7888 IFS=$as_save_IFS
7889 test -z "$as_dir" && as_dir=.
7890 for ac_exec_ext in '' $ac_executable_extensions; do
7891 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7892 ac_cv_prog_ac_ct_OTOOL64="otool64"
7893 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7894 break 2
7896 done
7897 done
7898 IFS=$as_save_IFS
7902 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7903 if test -n "$ac_ct_OTOOL64"; then
7904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
7905 $as_echo "$ac_ct_OTOOL64" >&6; }
7906 else
7907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7908 $as_echo "no" >&6; }
7911 if test "x$ac_ct_OTOOL64" = x; then
7912 OTOOL64=":"
7913 else
7914 case $cross_compiling:$ac_tool_warned in
7915 yes:)
7916 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7917 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7918 ac_tool_warned=yes ;;
7919 esac
7920 OTOOL64=$ac_ct_OTOOL64
7922 else
7923 OTOOL64="$ac_cv_prog_OTOOL64"
7952 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7953 $as_echo_n "checking for -single_module linker flag... " >&6; }
7954 if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
7955 $as_echo_n "(cached) " >&6
7956 else
7957 lt_cv_apple_cc_single_mod=no
7958 if test -z "${LT_MULTI_MODULE}"; then
7959 # By default we will add the -single_module flag. You can override
7960 # by either setting the environment variable LT_MULTI_MODULE
7961 # non-empty at configure time, or by adding -multi_module to the
7962 # link flags.
7963 rm -rf libconftest.dylib*
7964 echo "int foo(void){return 1;}" > conftest.c
7965 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7966 -dynamiclib -Wl,-single_module conftest.c" >&5
7967 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7968 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7969 _lt_result=$?
7970 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
7971 lt_cv_apple_cc_single_mod=yes
7972 else
7973 cat conftest.err >&5
7975 rm -rf libconftest.dylib*
7976 rm -f conftest.*
7979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7980 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7981 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7982 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7983 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
7984 $as_echo_n "(cached) " >&6
7985 else
7986 lt_cv_ld_exported_symbols_list=no
7987 save_LDFLAGS=$LDFLAGS
7988 echo "_main" > conftest.sym
7989 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7990 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7991 /* end confdefs.h. */
7994 main ()
7998 return 0;
8000 _ACEOF
8001 if ac_fn_c_try_link "$LINENO"; then :
8002 lt_cv_ld_exported_symbols_list=yes
8003 else
8004 lt_cv_ld_exported_symbols_list=no
8006 rm -f core conftest.err conftest.$ac_objext \
8007 conftest$ac_exeext conftest.$ac_ext
8008 LDFLAGS="$save_LDFLAGS"
8011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
8012 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
8013 case $host_os in
8014 rhapsody* | darwin1.[012])
8015 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
8016 darwin1.*)
8017 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8018 darwin*) # darwin 5.x on
8019 # if running on 10.5 or later, the deployment target defaults
8020 # to the OS version, if on x86, and 10.4, the deployment
8021 # target defaults to 10.4. Don't you love it?
8022 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
8023 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
8024 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
8025 10.[012]*)
8026 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8027 10.*)
8028 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
8029 esac
8031 esac
8032 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
8033 _lt_dar_single_mod='$single_module'
8035 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
8036 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
8037 else
8038 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
8040 if test "$DSYMUTIL" != ":"; then
8041 _lt_dsymutil='~$DSYMUTIL $lib || :'
8042 else
8043 _lt_dsymutil=
8046 esac
8048 for ac_header in dlfcn.h
8049 do :
8050 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
8052 if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
8053 cat >>confdefs.h <<_ACEOF
8054 #define HAVE_DLFCN_H 1
8055 _ACEOF
8059 done
8063 # Set options
8067 enable_dlopen=no
8070 enable_win32_dll=no
8073 # Check whether --enable-shared was given.
8074 if test "${enable_shared+set}" = set; then :
8075 enableval=$enable_shared; p=${PACKAGE-default}
8076 case $enableval in
8077 yes) enable_shared=yes ;;
8078 no) enable_shared=no ;;
8080 enable_shared=no
8081 # Look at the argument we got. We use all the common list separators.
8082 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8083 for pkg in $enableval; do
8084 IFS="$lt_save_ifs"
8085 if test "X$pkg" = "X$p"; then
8086 enable_shared=yes
8088 done
8089 IFS="$lt_save_ifs"
8091 esac
8092 else
8093 enable_shared=yes
8104 # Check whether --enable-static was given.
8105 if test "${enable_static+set}" = set; then :
8106 enableval=$enable_static; p=${PACKAGE-default}
8107 case $enableval in
8108 yes) enable_static=yes ;;
8109 no) enable_static=no ;;
8111 enable_static=no
8112 # Look at the argument we got. We use all the common list separators.
8113 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8114 for pkg in $enableval; do
8115 IFS="$lt_save_ifs"
8116 if test "X$pkg" = "X$p"; then
8117 enable_static=yes
8119 done
8120 IFS="$lt_save_ifs"
8122 esac
8123 else
8124 enable_static=yes
8136 # Check whether --with-pic was given.
8137 if test "${with_pic+set}" = set; then :
8138 withval=$with_pic; pic_mode="$withval"
8139 else
8140 pic_mode=default
8144 test -z "$pic_mode" && pic_mode=default
8152 # Check whether --enable-fast-install was given.
8153 if test "${enable_fast_install+set}" = set; then :
8154 enableval=$enable_fast_install; p=${PACKAGE-default}
8155 case $enableval in
8156 yes) enable_fast_install=yes ;;
8157 no) enable_fast_install=no ;;
8159 enable_fast_install=no
8160 # Look at the argument we got. We use all the common list separators.
8161 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8162 for pkg in $enableval; do
8163 IFS="$lt_save_ifs"
8164 if test "X$pkg" = "X$p"; then
8165 enable_fast_install=yes
8167 done
8168 IFS="$lt_save_ifs"
8170 esac
8171 else
8172 enable_fast_install=yes
8185 # This can be used to rebuild libtool when needed
8186 LIBTOOL_DEPS="$ltmain"
8188 # Always use our own libtool.
8189 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8215 test -z "$LN_S" && LN_S="ln -s"
8230 if test -n "${ZSH_VERSION+set}" ; then
8231 setopt NO_GLOB_SUBST
8234 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8235 $as_echo_n "checking for objdir... " >&6; }
8236 if test "${lt_cv_objdir+set}" = set; then :
8237 $as_echo_n "(cached) " >&6
8238 else
8239 rm -f .libs 2>/dev/null
8240 mkdir .libs 2>/dev/null
8241 if test -d .libs; then
8242 lt_cv_objdir=.libs
8243 else
8244 # MS-DOS does not allow filenames that begin with a dot.
8245 lt_cv_objdir=_libs
8247 rmdir .libs 2>/dev/null
8249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8250 $as_echo "$lt_cv_objdir" >&6; }
8251 objdir=$lt_cv_objdir
8257 cat >>confdefs.h <<_ACEOF
8258 #define LT_OBJDIR "$lt_cv_objdir/"
8259 _ACEOF
8277 case $host_os in
8278 aix3*)
8279 # AIX sometimes has problems with the GCC collect2 program. For some
8280 # reason, if we set the COLLECT_NAMES environment variable, the problems
8281 # vanish in a puff of smoke.
8282 if test "X${COLLECT_NAMES+set}" != Xset; then
8283 COLLECT_NAMES=
8284 export COLLECT_NAMES
8287 esac
8289 # Sed substitution that helps us do robust quoting. It backslashifies
8290 # metacharacters that are still active within double-quoted strings.
8291 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
8293 # Same as above, but do not quote variable references.
8294 double_quote_subst='s/\(["`\\]\)/\\\1/g'
8296 # Sed substitution to delay expansion of an escaped shell variable in a
8297 # double_quote_subst'ed string.
8298 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
8300 # Sed substitution to delay expansion of an escaped single quote.
8301 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
8303 # Sed substitution to avoid accidental globbing in evaled expressions
8304 no_glob_subst='s/\*/\\\*/g'
8306 # Global variables:
8307 ofile=libtool
8308 can_build_shared=yes
8310 # All known linkers require a `.a' archive for static linking (except MSVC,
8311 # which needs '.lib').
8312 libext=a
8314 with_gnu_ld="$lt_cv_prog_gnu_ld"
8316 old_CC="$CC"
8317 old_CFLAGS="$CFLAGS"
8319 # Set sane defaults for various variables
8320 test -z "$CC" && CC=cc
8321 test -z "$LTCC" && LTCC=$CC
8322 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8323 test -z "$LD" && LD=ld
8324 test -z "$ac_objext" && ac_objext=o
8326 for cc_temp in $compiler""; do
8327 case $cc_temp in
8328 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8329 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8330 \-*) ;;
8331 *) break;;
8332 esac
8333 done
8334 cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
8337 # Only perform the check for file, if the check method requires it
8338 test -z "$MAGIC_CMD" && MAGIC_CMD=file
8339 case $deplibs_check_method in
8340 file_magic*)
8341 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8342 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8343 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
8344 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
8345 $as_echo_n "(cached) " >&6
8346 else
8347 case $MAGIC_CMD in
8348 [\\/*] | ?:[\\/]*)
8349 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8352 lt_save_MAGIC_CMD="$MAGIC_CMD"
8353 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8354 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8355 for ac_dir in $ac_dummy; do
8356 IFS="$lt_save_ifs"
8357 test -z "$ac_dir" && ac_dir=.
8358 if test -f $ac_dir/${ac_tool_prefix}file; then
8359 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8360 if test -n "$file_magic_test_file"; then
8361 case $deplibs_check_method in
8362 "file_magic "*)
8363 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8364 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8365 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8366 $EGREP "$file_magic_regex" > /dev/null; then
8368 else
8369 cat <<_LT_EOF 1>&2
8371 *** Warning: the command libtool uses to detect shared libraries,
8372 *** $file_magic_cmd, produces output that libtool cannot recognize.
8373 *** The result is that libtool may fail to recognize shared libraries
8374 *** as such. This will affect the creation of libtool libraries that
8375 *** depend on shared libraries, but programs linked with such libtool
8376 *** libraries will work regardless of this problem. Nevertheless, you
8377 *** may want to report the problem to your system manager and/or to
8378 *** bug-libtool@gnu.org
8380 _LT_EOF
8381 fi ;;
8382 esac
8384 break
8386 done
8387 IFS="$lt_save_ifs"
8388 MAGIC_CMD="$lt_save_MAGIC_CMD"
8390 esac
8393 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8394 if test -n "$MAGIC_CMD"; then
8395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8396 $as_echo "$MAGIC_CMD" >&6; }
8397 else
8398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8399 $as_echo "no" >&6; }
8406 if test -z "$lt_cv_path_MAGIC_CMD"; then
8407 if test -n "$ac_tool_prefix"; then
8408 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8409 $as_echo_n "checking for file... " >&6; }
8410 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
8411 $as_echo_n "(cached) " >&6
8412 else
8413 case $MAGIC_CMD in
8414 [\\/*] | ?:[\\/]*)
8415 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8418 lt_save_MAGIC_CMD="$MAGIC_CMD"
8419 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8420 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8421 for ac_dir in $ac_dummy; do
8422 IFS="$lt_save_ifs"
8423 test -z "$ac_dir" && ac_dir=.
8424 if test -f $ac_dir/file; then
8425 lt_cv_path_MAGIC_CMD="$ac_dir/file"
8426 if test -n "$file_magic_test_file"; then
8427 case $deplibs_check_method in
8428 "file_magic "*)
8429 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8430 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8431 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8432 $EGREP "$file_magic_regex" > /dev/null; then
8434 else
8435 cat <<_LT_EOF 1>&2
8437 *** Warning: the command libtool uses to detect shared libraries,
8438 *** $file_magic_cmd, produces output that libtool cannot recognize.
8439 *** The result is that libtool may fail to recognize shared libraries
8440 *** as such. This will affect the creation of libtool libraries that
8441 *** depend on shared libraries, but programs linked with such libtool
8442 *** libraries will work regardless of this problem. Nevertheless, you
8443 *** may want to report the problem to your system manager and/or to
8444 *** bug-libtool@gnu.org
8446 _LT_EOF
8447 fi ;;
8448 esac
8450 break
8452 done
8453 IFS="$lt_save_ifs"
8454 MAGIC_CMD="$lt_save_MAGIC_CMD"
8456 esac
8459 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8460 if test -n "$MAGIC_CMD"; then
8461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8462 $as_echo "$MAGIC_CMD" >&6; }
8463 else
8464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8465 $as_echo "no" >&6; }
8469 else
8470 MAGIC_CMD=:
8476 esac
8478 # Use C for the default configuration in the libtool script
8480 lt_save_CC="$CC"
8481 ac_ext=c
8482 ac_cpp='$CPP $CPPFLAGS'
8483 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8484 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8485 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8488 # Source file extension for C test sources.
8489 ac_ext=c
8491 # Object file extension for compiled C test sources.
8492 objext=o
8493 objext=$objext
8495 # Code to be used in simple compile tests
8496 lt_simple_compile_test_code="int some_variable = 0;"
8498 # Code to be used in simple link tests
8499 lt_simple_link_test_code='int main(){return(0);}'
8507 # If no C compiler was specified, use CC.
8508 LTCC=${LTCC-"$CC"}
8510 # If no C compiler flags were specified, use CFLAGS.
8511 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8513 # Allow CC to be a program name with arguments.
8514 compiler=$CC
8516 # Save the default compiler, since it gets overwritten when the other
8517 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8518 compiler_DEFAULT=$CC
8520 # save warnings/boilerplate of simple test code
8521 ac_outfile=conftest.$ac_objext
8522 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8523 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8524 _lt_compiler_boilerplate=`cat conftest.err`
8525 $RM conftest*
8527 ac_outfile=conftest.$ac_objext
8528 echo "$lt_simple_link_test_code" >conftest.$ac_ext
8529 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8530 _lt_linker_boilerplate=`cat conftest.err`
8531 $RM -r conftest*
8534 ## CAVEAT EMPTOR:
8535 ## There is no encapsulation within the following macros, do not change
8536 ## the running order or otherwise move them around unless you know exactly
8537 ## what you are doing...
8538 if test -n "$compiler"; then
8540 lt_prog_compiler_no_builtin_flag=
8542 if test "$GCC" = yes; then
8543 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
8545 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8546 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8547 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
8548 $as_echo_n "(cached) " >&6
8549 else
8550 lt_cv_prog_compiler_rtti_exceptions=no
8551 ac_outfile=conftest.$ac_objext
8552 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8553 lt_compiler_flag="-fno-rtti -fno-exceptions"
8554 # Insert the option either (1) after the last *FLAGS variable, or
8555 # (2) before a word containing "conftest.", or (3) at the end.
8556 # Note that $ac_compile itself does not contain backslashes and begins
8557 # with a dollar sign (not a hyphen), so the echo should work correctly.
8558 # The option is referenced via a variable to avoid confusing sed.
8559 lt_compile=`echo "$ac_compile" | $SED \
8560 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8561 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8562 -e 's:$: $lt_compiler_flag:'`
8563 (eval echo "\"\$as_me:8563: $lt_compile\"" >&5)
8564 (eval "$lt_compile" 2>conftest.err)
8565 ac_status=$?
8566 cat conftest.err >&5
8567 echo "$as_me:8567: \$? = $ac_status" >&5
8568 if (exit $ac_status) && test -s "$ac_outfile"; then
8569 # The compiler can only warn and ignore the option if not recognized
8570 # So say no if there are warnings other than the usual output.
8571 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
8572 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8573 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8574 lt_cv_prog_compiler_rtti_exceptions=yes
8577 $RM conftest*
8580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8581 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8583 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8584 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8585 else
8596 lt_prog_compiler_wl=
8597 lt_prog_compiler_pic=
8598 lt_prog_compiler_static=
8600 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8601 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8603 if test "$GCC" = yes; then
8604 lt_prog_compiler_wl='-Wl,'
8605 lt_prog_compiler_static='-static'
8607 case $host_os in
8608 aix*)
8609 # All AIX code is PIC.
8610 if test "$host_cpu" = ia64; then
8611 # AIX 5 now supports IA64 processor
8612 lt_prog_compiler_static='-Bstatic'
8616 amigaos*)
8617 case $host_cpu in
8618 powerpc)
8619 # see comment about AmigaOS4 .so support
8620 lt_prog_compiler_pic='-fPIC'
8622 m68k)
8623 # FIXME: we need at least 68020 code to build shared libraries, but
8624 # adding the `-m68020' flag to GCC prevents building anything better,
8625 # like `-m68040'.
8626 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8628 esac
8631 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8632 # PIC is the default for these OSes.
8635 mingw* | cygwin* | pw32* | os2* | cegcc*)
8636 # This hack is so that the source file can tell whether it is being
8637 # built for inclusion in a dll (and should export symbols for example).
8638 # Although the cygwin gcc ignores -fPIC, still need this for old-style
8639 # (--disable-auto-import) libraries
8640 lt_prog_compiler_pic='-DDLL_EXPORT'
8643 darwin* | rhapsody*)
8644 # PIC is the default on this platform
8645 # Common symbols not allowed in MH_DYLIB files
8646 lt_prog_compiler_pic='-fno-common'
8649 hpux*)
8650 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8651 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
8652 # sets the default TLS model and affects inlining.
8653 case $host_cpu in
8654 hppa*64*)
8655 # +Z the default
8658 lt_prog_compiler_pic='-fPIC'
8660 esac
8663 interix[3-9]*)
8664 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8665 # Instead, we relocate shared libraries at runtime.
8668 msdosdjgpp*)
8669 # Just because we use GCC doesn't mean we suddenly get shared libraries
8670 # on systems that don't support them.
8671 lt_prog_compiler_can_build_shared=no
8672 enable_shared=no
8675 *nto* | *qnx*)
8676 # QNX uses GNU C++, but need to define -shared option too, otherwise
8677 # it will coredump.
8678 lt_prog_compiler_pic='-fPIC -shared'
8681 sysv4*MP*)
8682 if test -d /usr/nec; then
8683 lt_prog_compiler_pic=-Kconform_pic
8688 lt_prog_compiler_pic='-fPIC'
8690 esac
8691 else
8692 # PORTME Check for flag to pass linker flags through the system compiler.
8693 case $host_os in
8694 aix*)
8695 lt_prog_compiler_wl='-Wl,'
8696 if test "$host_cpu" = ia64; then
8697 # AIX 5 now supports IA64 processor
8698 lt_prog_compiler_static='-Bstatic'
8699 else
8700 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8704 mingw* | cygwin* | pw32* | os2* | cegcc*)
8705 # This hack is so that the source file can tell whether it is being
8706 # built for inclusion in a dll (and should export symbols for example).
8707 lt_prog_compiler_pic='-DDLL_EXPORT'
8710 hpux9* | hpux10* | hpux11*)
8711 lt_prog_compiler_wl='-Wl,'
8712 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8713 # not for PA HP-UX.
8714 case $host_cpu in
8715 hppa*64*|ia64*)
8716 # +Z the default
8719 lt_prog_compiler_pic='+Z'
8721 esac
8722 # Is there a better lt_prog_compiler_static that works with the bundled CC?
8723 lt_prog_compiler_static='${wl}-a ${wl}archive'
8726 irix5* | irix6* | nonstopux*)
8727 lt_prog_compiler_wl='-Wl,'
8728 # PIC (with -KPIC) is the default.
8729 lt_prog_compiler_static='-non_shared'
8732 linux* | k*bsd*-gnu | kopensolaris*-gnu)
8733 case $cc_basename in
8734 # old Intel for x86_64 which still supported -KPIC.
8735 ecc*)
8736 lt_prog_compiler_wl='-Wl,'
8737 lt_prog_compiler_pic='-KPIC'
8738 lt_prog_compiler_static='-static'
8740 # icc used to be incompatible with GCC.
8741 # ICC 10 doesn't accept -KPIC any more.
8742 icc* | ifort*)
8743 lt_prog_compiler_wl='-Wl,'
8744 lt_prog_compiler_pic='-fPIC'
8745 lt_prog_compiler_static='-static'
8747 # Lahey Fortran 8.1.
8748 lf95*)
8749 lt_prog_compiler_wl='-Wl,'
8750 lt_prog_compiler_pic='--shared'
8751 lt_prog_compiler_static='--static'
8753 pgcc* | pgf77* | pgf90* | pgf95*)
8754 # Portland Group compilers (*not* the Pentium gcc compiler,
8755 # which looks to be a dead project)
8756 lt_prog_compiler_wl='-Wl,'
8757 lt_prog_compiler_pic='-fpic'
8758 lt_prog_compiler_static='-Bstatic'
8760 ccc*)
8761 lt_prog_compiler_wl='-Wl,'
8762 # All Alpha code is PIC.
8763 lt_prog_compiler_static='-non_shared'
8765 xl*)
8766 # IBM XL C 8.0/Fortran 10.1 on PPC
8767 lt_prog_compiler_wl='-Wl,'
8768 lt_prog_compiler_pic='-qpic'
8769 lt_prog_compiler_static='-qstaticlink'
8772 case `$CC -V 2>&1 | sed 5q` in
8773 *Sun\ C*)
8774 # Sun C 5.9
8775 lt_prog_compiler_pic='-KPIC'
8776 lt_prog_compiler_static='-Bstatic'
8777 lt_prog_compiler_wl='-Wl,'
8779 *Sun\ F*)
8780 # Sun Fortran 8.3 passes all unrecognized flags to the linker
8781 lt_prog_compiler_pic='-KPIC'
8782 lt_prog_compiler_static='-Bstatic'
8783 lt_prog_compiler_wl=''
8785 esac
8787 esac
8790 newsos6)
8791 lt_prog_compiler_pic='-KPIC'
8792 lt_prog_compiler_static='-Bstatic'
8795 *nto* | *qnx*)
8796 # QNX uses GNU C++, but need to define -shared option too, otherwise
8797 # it will coredump.
8798 lt_prog_compiler_pic='-fPIC -shared'
8801 osf3* | osf4* | osf5*)
8802 lt_prog_compiler_wl='-Wl,'
8803 # All OSF/1 code is PIC.
8804 lt_prog_compiler_static='-non_shared'
8807 rdos*)
8808 lt_prog_compiler_static='-non_shared'
8811 solaris*)
8812 lt_prog_compiler_pic='-KPIC'
8813 lt_prog_compiler_static='-Bstatic'
8814 case $cc_basename in
8815 f77* | f90* | f95*)
8816 lt_prog_compiler_wl='-Qoption ld ';;
8818 lt_prog_compiler_wl='-Wl,';;
8819 esac
8822 sunos4*)
8823 lt_prog_compiler_wl='-Qoption ld '
8824 lt_prog_compiler_pic='-PIC'
8825 lt_prog_compiler_static='-Bstatic'
8828 sysv4 | sysv4.2uw2* | sysv4.3*)
8829 lt_prog_compiler_wl='-Wl,'
8830 lt_prog_compiler_pic='-KPIC'
8831 lt_prog_compiler_static='-Bstatic'
8834 sysv4*MP*)
8835 if test -d /usr/nec ;then
8836 lt_prog_compiler_pic='-Kconform_pic'
8837 lt_prog_compiler_static='-Bstatic'
8841 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8842 lt_prog_compiler_wl='-Wl,'
8843 lt_prog_compiler_pic='-KPIC'
8844 lt_prog_compiler_static='-Bstatic'
8847 unicos*)
8848 lt_prog_compiler_wl='-Wl,'
8849 lt_prog_compiler_can_build_shared=no
8852 uts4*)
8853 lt_prog_compiler_pic='-pic'
8854 lt_prog_compiler_static='-Bstatic'
8858 lt_prog_compiler_can_build_shared=no
8860 esac
8863 case $host_os in
8864 # For platforms which do not support PIC, -DPIC is meaningless:
8865 *djgpp*)
8866 lt_prog_compiler_pic=
8869 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8871 esac
8872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
8873 $as_echo "$lt_prog_compiler_pic" >&6; }
8881 # Check to make sure the PIC flag actually works.
8883 if test -n "$lt_prog_compiler_pic"; then
8884 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8885 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8886 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
8887 $as_echo_n "(cached) " >&6
8888 else
8889 lt_cv_prog_compiler_pic_works=no
8890 ac_outfile=conftest.$ac_objext
8891 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8892 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8893 # Insert the option either (1) after the last *FLAGS variable, or
8894 # (2) before a word containing "conftest.", or (3) at the end.
8895 # Note that $ac_compile itself does not contain backslashes and begins
8896 # with a dollar sign (not a hyphen), so the echo should work correctly.
8897 # The option is referenced via a variable to avoid confusing sed.
8898 lt_compile=`echo "$ac_compile" | $SED \
8899 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8900 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8901 -e 's:$: $lt_compiler_flag:'`
8902 (eval echo "\"\$as_me:8902: $lt_compile\"" >&5)
8903 (eval "$lt_compile" 2>conftest.err)
8904 ac_status=$?
8905 cat conftest.err >&5
8906 echo "$as_me:8906: \$? = $ac_status" >&5
8907 if (exit $ac_status) && test -s "$ac_outfile"; then
8908 # The compiler can only warn and ignore the option if not recognized
8909 # So say no if there are warnings other than the usual output.
8910 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
8911 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8912 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8913 lt_cv_prog_compiler_pic_works=yes
8916 $RM conftest*
8919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8920 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8922 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
8923 case $lt_prog_compiler_pic in
8924 "" | " "*) ;;
8925 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8926 esac
8927 else
8928 lt_prog_compiler_pic=
8929 lt_prog_compiler_can_build_shared=no
8940 # Check to make sure the static flag actually works.
8942 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8943 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8944 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8945 if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
8946 $as_echo_n "(cached) " >&6
8947 else
8948 lt_cv_prog_compiler_static_works=no
8949 save_LDFLAGS="$LDFLAGS"
8950 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8951 echo "$lt_simple_link_test_code" > conftest.$ac_ext
8952 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8953 # The linker can only warn and ignore the option if not recognized
8954 # So say no if there are warnings
8955 if test -s conftest.err; then
8956 # Append any errors to the config.log.
8957 cat conftest.err 1>&5
8958 $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
8959 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8960 if diff conftest.exp conftest.er2 >/dev/null; then
8961 lt_cv_prog_compiler_static_works=yes
8963 else
8964 lt_cv_prog_compiler_static_works=yes
8967 $RM -r conftest*
8968 LDFLAGS="$save_LDFLAGS"
8971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
8972 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
8974 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
8976 else
8977 lt_prog_compiler_static=
8986 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8987 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8988 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
8989 $as_echo_n "(cached) " >&6
8990 else
8991 lt_cv_prog_compiler_c_o=no
8992 $RM -r conftest 2>/dev/null
8993 mkdir conftest
8994 cd conftest
8995 mkdir out
8996 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8998 lt_compiler_flag="-o out/conftest2.$ac_objext"
8999 # Insert the option either (1) after the last *FLAGS variable, or
9000 # (2) before a word containing "conftest.", or (3) at the end.
9001 # Note that $ac_compile itself does not contain backslashes and begins
9002 # with a dollar sign (not a hyphen), so the echo should work correctly.
9003 lt_compile=`echo "$ac_compile" | $SED \
9004 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9005 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9006 -e 's:$: $lt_compiler_flag:'`
9007 (eval echo "\"\$as_me:9007: $lt_compile\"" >&5)
9008 (eval "$lt_compile" 2>out/conftest.err)
9009 ac_status=$?
9010 cat out/conftest.err >&5
9011 echo "$as_me:9011: \$? = $ac_status" >&5
9012 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9013 then
9014 # The compiler can only warn and ignore the option if not recognized
9015 # So say no if there are warnings
9016 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
9017 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9018 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9019 lt_cv_prog_compiler_c_o=yes
9022 chmod u+w . 2>&5
9023 $RM conftest*
9024 # SGI C++ compiler will create directory out/ii_files/ for
9025 # template instantiation
9026 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9027 $RM out/* && rmdir out
9028 cd ..
9029 $RM -r conftest
9030 $RM conftest*
9033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9034 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9041 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9042 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9043 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
9044 $as_echo_n "(cached) " >&6
9045 else
9046 lt_cv_prog_compiler_c_o=no
9047 $RM -r conftest 2>/dev/null
9048 mkdir conftest
9049 cd conftest
9050 mkdir out
9051 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9053 lt_compiler_flag="-o out/conftest2.$ac_objext"
9054 # Insert the option either (1) after the last *FLAGS variable, or
9055 # (2) before a word containing "conftest.", or (3) at the end.
9056 # Note that $ac_compile itself does not contain backslashes and begins
9057 # with a dollar sign (not a hyphen), so the echo should work correctly.
9058 lt_compile=`echo "$ac_compile" | $SED \
9059 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9060 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9061 -e 's:$: $lt_compiler_flag:'`
9062 (eval echo "\"\$as_me:9062: $lt_compile\"" >&5)
9063 (eval "$lt_compile" 2>out/conftest.err)
9064 ac_status=$?
9065 cat out/conftest.err >&5
9066 echo "$as_me:9066: \$? = $ac_status" >&5
9067 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9068 then
9069 # The compiler can only warn and ignore the option if not recognized
9070 # So say no if there are warnings
9071 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
9072 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9073 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9074 lt_cv_prog_compiler_c_o=yes
9077 chmod u+w . 2>&5
9078 $RM conftest*
9079 # SGI C++ compiler will create directory out/ii_files/ for
9080 # template instantiation
9081 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9082 $RM out/* && rmdir out
9083 cd ..
9084 $RM -r conftest
9085 $RM conftest*
9088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9089 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9094 hard_links="nottested"
9095 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
9096 # do not overwrite the value of need_locks provided by the user
9097 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
9098 $as_echo_n "checking if we can lock with hard links... " >&6; }
9099 hard_links=yes
9100 $RM conftest*
9101 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9102 touch conftest.a
9103 ln conftest.a conftest.b 2>&5 || hard_links=no
9104 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
9106 $as_echo "$hard_links" >&6; }
9107 if test "$hard_links" = no; then
9108 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
9109 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
9110 need_locks=warn
9112 else
9113 need_locks=no
9121 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9122 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
9124 runpath_var=
9125 allow_undefined_flag=
9126 always_export_symbols=no
9127 archive_cmds=
9128 archive_expsym_cmds=
9129 compiler_needs_object=no
9130 enable_shared_with_static_runtimes=no
9131 export_dynamic_flag_spec=
9132 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9133 hardcode_automatic=no
9134 hardcode_direct=no
9135 hardcode_direct_absolute=no
9136 hardcode_libdir_flag_spec=
9137 hardcode_libdir_flag_spec_ld=
9138 hardcode_libdir_separator=
9139 hardcode_minus_L=no
9140 hardcode_shlibpath_var=unsupported
9141 inherit_rpath=no
9142 link_all_deplibs=unknown
9143 module_cmds=
9144 module_expsym_cmds=
9145 old_archive_from_new_cmds=
9146 old_archive_from_expsyms_cmds=
9147 thread_safe_flag_spec=
9148 whole_archive_flag_spec=
9149 # include_expsyms should be a list of space-separated symbols to be *always*
9150 # included in the symbol list
9151 include_expsyms=
9152 # exclude_expsyms can be an extended regexp of symbols to exclude
9153 # it will be wrapped by ` (' and `)$', so one must not match beginning or
9154 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
9155 # as well as any symbol that contains `d'.
9156 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9157 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9158 # platforms (ab)use it in PIC code, but their linkers get confused if
9159 # the symbol is explicitly referenced. Since portable code cannot
9160 # rely on this symbol name, it's probably fine to never include it in
9161 # preloaded symbol tables.
9162 # Exclude shared library initialization/finalization symbols.
9163 extract_expsyms_cmds=
9165 case $host_os in
9166 cygwin* | mingw* | pw32* | cegcc*)
9167 # FIXME: the MSVC++ port hasn't been tested in a loooong time
9168 # When not using gcc, we currently assume that we are using
9169 # Microsoft Visual C++.
9170 if test "$GCC" != yes; then
9171 with_gnu_ld=no
9174 interix*)
9175 # we just hope/assume this is gcc and not c89 (= MSVC++)
9176 with_gnu_ld=yes
9178 openbsd*)
9179 with_gnu_ld=no
9181 esac
9183 ld_shlibs=yes
9184 if test "$with_gnu_ld" = yes; then
9185 # If archive_cmds runs LD, not CC, wlarc should be empty
9186 wlarc='${wl}'
9188 # Set some defaults for GNU ld with shared library support. These
9189 # are reset later if shared libraries are not supported. Putting them
9190 # here allows them to be overridden if necessary.
9191 runpath_var=LD_RUN_PATH
9192 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9193 export_dynamic_flag_spec='${wl}--export-dynamic'
9194 # ancient GNU ld didn't support --whole-archive et. al.
9195 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9196 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9197 else
9198 whole_archive_flag_spec=
9200 supports_anon_versioning=no
9201 case `$LD -v 2>&1` in
9202 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9203 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9204 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9205 *\ 2.11.*) ;; # other 2.11 versions
9206 *) supports_anon_versioning=yes ;;
9207 esac
9209 # See if GNU ld supports shared libraries.
9210 case $host_os in
9211 aix[3-9]*)
9212 # On AIX/PPC, the GNU linker is very broken
9213 if test "$host_cpu" != ia64; then
9214 ld_shlibs=no
9215 cat <<_LT_EOF 1>&2
9217 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
9218 *** to be unable to reliably create shared libraries on AIX.
9219 *** Therefore, libtool is disabling shared libraries support. If you
9220 *** really care for shared libraries, you may want to modify your PATH
9221 *** so that a non-GNU linker is found, and then restart.
9223 _LT_EOF
9227 amigaos*)
9228 case $host_cpu in
9229 powerpc)
9230 # see comment about AmigaOS4 .so support
9231 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9232 archive_expsym_cmds=''
9234 m68k)
9235 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)'
9236 hardcode_libdir_flag_spec='-L$libdir'
9237 hardcode_minus_L=yes
9239 esac
9242 beos*)
9243 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9244 allow_undefined_flag=unsupported
9245 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9246 # support --undefined. This deserves some investigation. FIXME
9247 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9248 else
9249 ld_shlibs=no
9253 cygwin* | mingw* | pw32* | cegcc*)
9254 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9255 # as there is no search path for DLLs.
9256 hardcode_libdir_flag_spec='-L$libdir'
9257 allow_undefined_flag=unsupported
9258 always_export_symbols=no
9259 enable_shared_with_static_runtimes=yes
9260 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9262 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9263 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9264 # If the export-symbols file already is a .def file (1st line
9265 # is EXPORTS), use it as is; otherwise, prepend...
9266 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9267 cp $export_symbols $output_objdir/$soname.def;
9268 else
9269 echo EXPORTS > $output_objdir/$soname.def;
9270 cat $export_symbols >> $output_objdir/$soname.def;
9272 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9273 else
9274 ld_shlibs=no
9278 interix[3-9]*)
9279 hardcode_direct=no
9280 hardcode_shlibpath_var=no
9281 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9282 export_dynamic_flag_spec='${wl}-E'
9283 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9284 # Instead, shared libraries are loaded at an image base (0x10000000 by
9285 # default) and relocated if they conflict, which is a slow very memory
9286 # consuming and fragmenting process. To avoid this, we pick a random,
9287 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9288 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
9289 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9290 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'
9293 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
9294 tmp_diet=no
9295 if test "$host_os" = linux-dietlibc; then
9296 case $cc_basename in
9297 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
9298 esac
9300 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9301 && test "$tmp_diet" = no
9302 then
9303 tmp_addflag=
9304 tmp_sharedflag='-shared'
9305 case $cc_basename,$host_cpu in
9306 pgcc*) # Portland Group C compiler
9307 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'
9308 tmp_addflag=' $pic_flag'
9310 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
9311 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'
9312 tmp_addflag=' $pic_flag -Mnomain' ;;
9313 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
9314 tmp_addflag=' -i_dynamic' ;;
9315 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
9316 tmp_addflag=' -i_dynamic -nofor_main' ;;
9317 ifc* | ifort*) # Intel Fortran compiler
9318 tmp_addflag=' -nofor_main' ;;
9319 lf95*) # Lahey Fortran 8.1
9320 whole_archive_flag_spec=
9321 tmp_sharedflag='--shared' ;;
9322 xl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
9323 tmp_sharedflag='-qmkshrobj'
9324 tmp_addflag= ;;
9325 esac
9326 case `$CC -V 2>&1 | sed 5q` in
9327 *Sun\ C*) # Sun C 5.9
9328 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'
9329 compiler_needs_object=yes
9330 tmp_sharedflag='-G' ;;
9331 *Sun\ F*) # Sun Fortran 8.3
9332 tmp_sharedflag='-G' ;;
9333 esac
9334 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9336 if test "x$supports_anon_versioning" = xyes; then
9337 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9338 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9339 echo "local: *; };" >> $output_objdir/$libname.ver~
9340 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9343 case $cc_basename in
9344 xlf*)
9345 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9346 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9347 hardcode_libdir_flag_spec=
9348 hardcode_libdir_flag_spec_ld='-rpath $libdir'
9349 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
9350 if test "x$supports_anon_versioning" = xyes; then
9351 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9352 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9353 echo "local: *; };" >> $output_objdir/$libname.ver~
9354 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9357 esac
9358 else
9359 ld_shlibs=no
9363 netbsd*)
9364 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9365 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9366 wlarc=
9367 else
9368 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9369 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9373 solaris*)
9374 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9375 ld_shlibs=no
9376 cat <<_LT_EOF 1>&2
9378 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
9379 *** create shared libraries on Solaris systems. Therefore, libtool
9380 *** is disabling shared libraries support. We urge you to upgrade GNU
9381 *** binutils to release 2.9.1 or newer. Another option is to modify
9382 *** your PATH or compiler configuration so that the native linker is
9383 *** used, and then restart.
9385 _LT_EOF
9386 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9387 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9388 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9389 else
9390 ld_shlibs=no
9394 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9395 case `$LD -v 2>&1` in
9396 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9397 ld_shlibs=no
9398 cat <<_LT_EOF 1>&2
9400 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9401 *** reliably create shared libraries on SCO systems. Therefore, libtool
9402 *** is disabling shared libraries support. We urge you to upgrade GNU
9403 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
9404 *** your PATH or compiler configuration so that the native linker is
9405 *** used, and then restart.
9407 _LT_EOF
9410 # For security reasons, it is highly recommended that you always
9411 # use absolute paths for naming shared libraries, and exclude the
9412 # DT_RUNPATH tag from executables and libraries. But doing so
9413 # requires that you compile everything twice, which is a pain.
9414 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9415 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9416 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9417 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9418 else
9419 ld_shlibs=no
9422 esac
9425 sunos4*)
9426 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9427 wlarc=
9428 hardcode_direct=yes
9429 hardcode_shlibpath_var=no
9433 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9434 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9435 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9436 else
9437 ld_shlibs=no
9440 esac
9442 if test "$ld_shlibs" = no; then
9443 runpath_var=
9444 hardcode_libdir_flag_spec=
9445 export_dynamic_flag_spec=
9446 whole_archive_flag_spec=
9448 else
9449 # PORTME fill in a description of your system's linker (not GNU ld)
9450 case $host_os in
9451 aix3*)
9452 allow_undefined_flag=unsupported
9453 always_export_symbols=yes
9454 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'
9455 # Note: this linker hardcodes the directories in LIBPATH if there
9456 # are no directories specified by -L.
9457 hardcode_minus_L=yes
9458 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9459 # Neither direct hardcoding nor static linking is supported with a
9460 # broken collect2.
9461 hardcode_direct=unsupported
9465 aix[4-9]*)
9466 if test "$host_cpu" = ia64; then
9467 # On IA64, the linker does run time linking by default, so we don't
9468 # have to do anything special.
9469 aix_use_runtimelinking=no
9470 exp_sym_flag='-Bexport'
9471 no_entry_flag=""
9472 else
9473 # If we're using GNU nm, then we don't want the "-C" option.
9474 # -C means demangle to AIX nm, but means don't demangle with GNU nm
9475 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9476 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'
9477 else
9478 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'
9480 aix_use_runtimelinking=no
9482 # Test if we are trying to use run time linking or normal
9483 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9484 # need to do runtime linking.
9485 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9486 for ld_flag in $LDFLAGS; do
9487 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9488 aix_use_runtimelinking=yes
9489 break
9491 done
9493 esac
9495 exp_sym_flag='-bexport'
9496 no_entry_flag='-bnoentry'
9499 # When large executables or shared objects are built, AIX ld can
9500 # have problems creating the table of contents. If linking a library
9501 # or program results in "error TOC overflow" add -mminimal-toc to
9502 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9503 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9505 archive_cmds=''
9506 hardcode_direct=yes
9507 hardcode_direct_absolute=yes
9508 hardcode_libdir_separator=':'
9509 link_all_deplibs=yes
9510 file_list_spec='${wl}-f,'
9512 if test "$GCC" = yes; then
9513 case $host_os in aix4.[012]|aix4.[012].*)
9514 # We only want to do this on AIX 4.2 and lower, the check
9515 # below for broken collect2 doesn't work under 4.3+
9516 collect2name=`${CC} -print-prog-name=collect2`
9517 if test -f "$collect2name" &&
9518 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9519 then
9520 # We have reworked collect2
9522 else
9523 # We have old collect2
9524 hardcode_direct=unsupported
9525 # It fails to find uninstalled libraries when the uninstalled
9526 # path is not listed in the libpath. Setting hardcode_minus_L
9527 # to unsupported forces relinking
9528 hardcode_minus_L=yes
9529 hardcode_libdir_flag_spec='-L$libdir'
9530 hardcode_libdir_separator=
9533 esac
9534 shared_flag='-shared'
9535 if test "$aix_use_runtimelinking" = yes; then
9536 shared_flag="$shared_flag "'${wl}-G'
9538 else
9539 # not using gcc
9540 if test "$host_cpu" = ia64; then
9541 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9542 # chokes on -Wl,-G. The following line is correct:
9543 shared_flag='-G'
9544 else
9545 if test "$aix_use_runtimelinking" = yes; then
9546 shared_flag='${wl}-G'
9547 else
9548 shared_flag='${wl}-bM:SRE'
9553 export_dynamic_flag_spec='${wl}-bexpall'
9554 # It seems that -bexpall does not export symbols beginning with
9555 # underscore (_), so it is better to generate a list of symbols to export.
9556 always_export_symbols=yes
9557 if test "$aix_use_runtimelinking" = yes; then
9558 # Warning - without using the other runtime loading flags (-brtl),
9559 # -berok will link without error, but may produce a broken library.
9560 allow_undefined_flag='-berok'
9561 # Determine the default libpath from the value encoded in an
9562 # empty executable.
9563 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9564 /* end confdefs.h. */
9567 main ()
9571 return 0;
9573 _ACEOF
9574 if ac_fn_c_try_link "$LINENO"; then :
9576 lt_aix_libpath_sed='
9577 /Import File Strings/,/^$/ {
9578 /^0/ {
9579 s/^0 *\(.*\)$/\1/
9583 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9584 # Check for a 64-bit object if we didn't find anything.
9585 if test -z "$aix_libpath"; then
9586 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9589 rm -f core conftest.err conftest.$ac_objext \
9590 conftest$ac_exeext conftest.$ac_ext
9591 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9593 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9594 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"
9595 else
9596 if test "$host_cpu" = ia64; then
9597 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9598 allow_undefined_flag="-z nodefs"
9599 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"
9600 else
9601 # Determine the default libpath from the value encoded in an
9602 # empty executable.
9603 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9604 /* end confdefs.h. */
9607 main ()
9611 return 0;
9613 _ACEOF
9614 if ac_fn_c_try_link "$LINENO"; then :
9616 lt_aix_libpath_sed='
9617 /Import File Strings/,/^$/ {
9618 /^0/ {
9619 s/^0 *\(.*\)$/\1/
9623 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9624 # Check for a 64-bit object if we didn't find anything.
9625 if test -z "$aix_libpath"; then
9626 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9629 rm -f core conftest.err conftest.$ac_objext \
9630 conftest$ac_exeext conftest.$ac_ext
9631 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9633 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9634 # Warning - without using the other run time loading flags,
9635 # -berok will link without error, but may produce a broken library.
9636 no_undefined_flag=' ${wl}-bernotok'
9637 allow_undefined_flag=' ${wl}-berok'
9638 # Exported symbols can be pulled into shared objects from archives
9639 whole_archive_flag_spec='$convenience'
9640 archive_cmds_need_lc=yes
9641 # This is similar to how AIX traditionally builds its shared libraries.
9642 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'
9647 amigaos*)
9648 case $host_cpu in
9649 powerpc)
9650 # see comment about AmigaOS4 .so support
9651 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9652 archive_expsym_cmds=''
9654 m68k)
9655 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)'
9656 hardcode_libdir_flag_spec='-L$libdir'
9657 hardcode_minus_L=yes
9659 esac
9662 bsdi[45]*)
9663 export_dynamic_flag_spec=-rdynamic
9666 cygwin* | mingw* | pw32* | cegcc*)
9667 # When not using gcc, we currently assume that we are using
9668 # Microsoft Visual C++.
9669 # hardcode_libdir_flag_spec is actually meaningless, as there is
9670 # no search path for DLLs.
9671 hardcode_libdir_flag_spec=' '
9672 allow_undefined_flag=unsupported
9673 # Tell ltmain to make .lib files, not .a files.
9674 libext=lib
9675 # Tell ltmain to make .dll files, not .so files.
9676 shrext_cmds=".dll"
9677 # FIXME: Setting linknames here is a bad hack.
9678 archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
9679 # The linker will automatically build a .lib file if we build a DLL.
9680 old_archive_from_new_cmds='true'
9681 # FIXME: Should let the user specify the lib program.
9682 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9683 fix_srcfile_path='`cygpath -w "$srcfile"`'
9684 enable_shared_with_static_runtimes=yes
9687 darwin* | rhapsody*)
9690 archive_cmds_need_lc=no
9691 hardcode_direct=no
9692 hardcode_automatic=yes
9693 hardcode_shlibpath_var=unsupported
9694 whole_archive_flag_spec=''
9695 link_all_deplibs=yes
9696 allow_undefined_flag="$_lt_dar_allow_undefined"
9697 case $cc_basename in
9698 ifort*) _lt_dar_can_shared=yes ;;
9699 *) _lt_dar_can_shared=$GCC ;;
9700 esac
9701 if test "$_lt_dar_can_shared" = "yes"; then
9702 output_verbose_link_cmd=echo
9703 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9704 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9705 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}"
9706 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}"
9708 else
9709 ld_shlibs=no
9714 dgux*)
9715 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9716 hardcode_libdir_flag_spec='-L$libdir'
9717 hardcode_shlibpath_var=no
9720 freebsd1*)
9721 ld_shlibs=no
9724 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9725 # support. Future versions do this automatically, but an explicit c++rt0.o
9726 # does not break anything, and helps significantly (at the cost of a little
9727 # extra space).
9728 freebsd2.2*)
9729 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9730 hardcode_libdir_flag_spec='-R$libdir'
9731 hardcode_direct=yes
9732 hardcode_shlibpath_var=no
9735 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9736 freebsd2*)
9737 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9738 hardcode_direct=yes
9739 hardcode_minus_L=yes
9740 hardcode_shlibpath_var=no
9743 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9744 freebsd* | dragonfly*)
9745 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
9746 hardcode_libdir_flag_spec='-R$libdir'
9747 hardcode_direct=yes
9748 hardcode_shlibpath_var=no
9751 hpux9*)
9752 if test "$GCC" = yes; then
9753 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'
9754 else
9755 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'
9757 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9758 hardcode_libdir_separator=:
9759 hardcode_direct=yes
9761 # hardcode_minus_L: Not really in the search PATH,
9762 # but as the default location of the library.
9763 hardcode_minus_L=yes
9764 export_dynamic_flag_spec='${wl}-E'
9767 hpux10*)
9768 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
9769 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9770 else
9771 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9773 if test "$with_gnu_ld" = no; then
9774 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9775 hardcode_libdir_flag_spec_ld='+b $libdir'
9776 hardcode_libdir_separator=:
9777 hardcode_direct=yes
9778 hardcode_direct_absolute=yes
9779 export_dynamic_flag_spec='${wl}-E'
9780 # hardcode_minus_L: Not really in the search PATH,
9781 # but as the default location of the library.
9782 hardcode_minus_L=yes
9786 hpux11*)
9787 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
9788 case $host_cpu in
9789 hppa*64*)
9790 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9792 ia64*)
9793 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9796 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9798 esac
9799 else
9800 case $host_cpu in
9801 hppa*64*)
9802 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9804 ia64*)
9805 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9808 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9810 esac
9812 if test "$with_gnu_ld" = no; then
9813 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9814 hardcode_libdir_separator=:
9816 case $host_cpu in
9817 hppa*64*|ia64*)
9818 hardcode_direct=no
9819 hardcode_shlibpath_var=no
9822 hardcode_direct=yes
9823 hardcode_direct_absolute=yes
9824 export_dynamic_flag_spec='${wl}-E'
9826 # hardcode_minus_L: Not really in the search PATH,
9827 # but as the default location of the library.
9828 hardcode_minus_L=yes
9830 esac
9834 irix5* | irix6* | nonstopux*)
9835 if test "$GCC" = yes; then
9836 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'
9837 # Try to use the -exported_symbol ld option, if it does not
9838 # work, assume that -exports_file does not work either and
9839 # implicitly export all symbols.
9840 save_LDFLAGS="$LDFLAGS"
9841 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
9842 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9843 /* end confdefs.h. */
9844 int foo(void) {}
9845 _ACEOF
9846 if ac_fn_c_try_link "$LINENO"; then :
9847 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'
9850 rm -f core conftest.err conftest.$ac_objext \
9851 conftest$ac_exeext conftest.$ac_ext
9852 LDFLAGS="$save_LDFLAGS"
9853 else
9854 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'
9855 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'
9857 archive_cmds_need_lc='no'
9858 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9859 hardcode_libdir_separator=:
9860 inherit_rpath=yes
9861 link_all_deplibs=yes
9864 netbsd*)
9865 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9866 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
9867 else
9868 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
9870 hardcode_libdir_flag_spec='-R$libdir'
9871 hardcode_direct=yes
9872 hardcode_shlibpath_var=no
9875 newsos6)
9876 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9877 hardcode_direct=yes
9878 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9879 hardcode_libdir_separator=:
9880 hardcode_shlibpath_var=no
9883 *nto* | *qnx*)
9886 openbsd*)
9887 if test -f /usr/libexec/ld.so; then
9888 hardcode_direct=yes
9889 hardcode_shlibpath_var=no
9890 hardcode_direct_absolute=yes
9891 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9892 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9893 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9894 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9895 export_dynamic_flag_spec='${wl}-E'
9896 else
9897 case $host_os in
9898 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9899 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9900 hardcode_libdir_flag_spec='-R$libdir'
9903 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9904 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9906 esac
9908 else
9909 ld_shlibs=no
9913 os2*)
9914 hardcode_libdir_flag_spec='-L$libdir'
9915 hardcode_minus_L=yes
9916 allow_undefined_flag=unsupported
9917 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'
9918 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9921 osf3*)
9922 if test "$GCC" = yes; then
9923 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9924 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'
9925 else
9926 allow_undefined_flag=' -expect_unresolved \*'
9927 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'
9929 archive_cmds_need_lc='no'
9930 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9931 hardcode_libdir_separator=:
9934 osf4* | osf5*) # as osf3* with the addition of -msym flag
9935 if test "$GCC" = yes; then
9936 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9937 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'
9938 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9939 else
9940 allow_undefined_flag=' -expect_unresolved \*'
9941 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'
9942 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~
9943 $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'
9945 # Both c and cxx compiler support -rpath directly
9946 hardcode_libdir_flag_spec='-rpath $libdir'
9948 archive_cmds_need_lc='no'
9949 hardcode_libdir_separator=:
9952 solaris*)
9953 no_undefined_flag=' -z defs'
9954 if test "$GCC" = yes; then
9955 wlarc='${wl}'
9956 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9957 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9958 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9959 else
9960 case `$CC -V 2>&1` in
9961 *"Compilers 5.0"*)
9962 wlarc=''
9963 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9964 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9965 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
9968 wlarc='${wl}'
9969 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
9970 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9971 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9973 esac
9975 hardcode_libdir_flag_spec='-R$libdir'
9976 hardcode_shlibpath_var=no
9977 case $host_os in
9978 solaris2.[0-5] | solaris2.[0-5].*) ;;
9980 # The compiler driver will combine and reorder linker options,
9981 # but understands `-z linker_flag'. GCC discards it without `$wl',
9982 # but is careful enough not to reorder.
9983 # Supported since Solaris 2.6 (maybe 2.5.1?)
9984 if test "$GCC" = yes; then
9985 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9986 else
9987 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
9990 esac
9991 link_all_deplibs=yes
9994 sunos4*)
9995 if test "x$host_vendor" = xsequent; then
9996 # Use $CC to link under sequent, because it throws in some extra .o
9997 # files that make .init and .fini sections work.
9998 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9999 else
10000 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10002 hardcode_libdir_flag_spec='-L$libdir'
10003 hardcode_direct=yes
10004 hardcode_minus_L=yes
10005 hardcode_shlibpath_var=no
10008 sysv4)
10009 case $host_vendor in
10010 sni)
10011 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10012 hardcode_direct=yes # is this really true???
10014 siemens)
10015 ## LD is ld it makes a PLAMLIB
10016 ## CC just makes a GrossModule.
10017 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10018 reload_cmds='$CC -r -o $output$reload_objs'
10019 hardcode_direct=no
10021 motorola)
10022 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10023 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10025 esac
10026 runpath_var='LD_RUN_PATH'
10027 hardcode_shlibpath_var=no
10030 sysv4.3*)
10031 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10032 hardcode_shlibpath_var=no
10033 export_dynamic_flag_spec='-Bexport'
10036 sysv4*MP*)
10037 if test -d /usr/nec; then
10038 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10039 hardcode_shlibpath_var=no
10040 runpath_var=LD_RUN_PATH
10041 hardcode_runpath_var=yes
10042 ld_shlibs=yes
10046 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10047 no_undefined_flag='${wl}-z,text'
10048 archive_cmds_need_lc=no
10049 hardcode_shlibpath_var=no
10050 runpath_var='LD_RUN_PATH'
10052 if test "$GCC" = yes; then
10053 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10054 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10055 else
10056 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10057 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10061 sysv5* | sco3.2v5* | sco5v6*)
10062 # Note: We can NOT use -z defs as we might desire, because we do not
10063 # link with -lc, and that would cause any symbols used from libc to
10064 # always be unresolved, which means just about no library would
10065 # ever link correctly. If we're not using GNU ld we use -z text
10066 # though, which does catch some bad symbols but isn't as heavy-handed
10067 # as -z defs.
10068 no_undefined_flag='${wl}-z,text'
10069 allow_undefined_flag='${wl}-z,nodefs'
10070 archive_cmds_need_lc=no
10071 hardcode_shlibpath_var=no
10072 hardcode_libdir_flag_spec='${wl}-R,$libdir'
10073 hardcode_libdir_separator=':'
10074 link_all_deplibs=yes
10075 export_dynamic_flag_spec='${wl}-Bexport'
10076 runpath_var='LD_RUN_PATH'
10078 if test "$GCC" = yes; then
10079 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10080 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10081 else
10082 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10083 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10087 uts4*)
10088 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10089 hardcode_libdir_flag_spec='-L$libdir'
10090 hardcode_shlibpath_var=no
10094 ld_shlibs=no
10096 esac
10098 if test x$host_vendor = xsni; then
10099 case $host in
10100 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10101 export_dynamic_flag_spec='${wl}-Blargedynsym'
10103 esac
10107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10108 $as_echo "$ld_shlibs" >&6; }
10109 test "$ld_shlibs" = no && can_build_shared=no
10111 with_gnu_ld=$with_gnu_ld
10128 # Do we need to explicitly link libc?
10130 case "x$archive_cmds_need_lc" in
10131 x|xyes)
10132 # Assume -lc should be added
10133 archive_cmds_need_lc=yes
10135 if test "$enable_shared" = yes && test "$GCC" = yes; then
10136 case $archive_cmds in
10137 *'~'*)
10138 # FIXME: we may have to deal with multi-command sequences.
10140 '$CC '*)
10141 # Test whether the compiler implicitly links with -lc since on some
10142 # systems, -lgcc has to come before -lc. If gcc already passes -lc
10143 # to ld, don't add -lc before -lgcc.
10144 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10145 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
10146 if test "${lt_cv_archive_cmds_need_lc+set}" = set; then :
10147 $as_echo_n "(cached) " >&6
10148 else
10149 $RM conftest*
10150 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10152 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10153 (eval $ac_compile) 2>&5
10154 ac_status=$?
10155 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10156 test $ac_status = 0; } 2>conftest.err; then
10157 soname=conftest
10158 lib=conftest
10159 libobjs=conftest.$ac_objext
10160 deplibs=
10161 wl=$lt_prog_compiler_wl
10162 pic_flag=$lt_prog_compiler_pic
10163 compiler_flags=-v
10164 linker_flags=-v
10165 verstring=
10166 output_objdir=.
10167 libname=conftest
10168 lt_save_allow_undefined_flag=$allow_undefined_flag
10169 allow_undefined_flag=
10170 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
10171 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
10172 ac_status=$?
10173 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10174 test $ac_status = 0; }
10175 then
10176 lt_cv_archive_cmds_need_lc=no
10177 else
10178 lt_cv_archive_cmds_need_lc=yes
10180 allow_undefined_flag=$lt_save_allow_undefined_flag
10181 else
10182 cat conftest.err 1>&5
10184 $RM conftest*
10187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
10188 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
10189 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
10191 esac
10194 esac
10352 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10353 $as_echo_n "checking dynamic linker characteristics... " >&6; }
10355 if test "$GCC" = yes; then
10356 case $host_os in
10357 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
10358 *) lt_awk_arg="/^libraries:/" ;;
10359 esac
10360 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
10361 if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
10362 # if the path contains ";" then we assume it to be the separator
10363 # otherwise default to the standard path separator (i.e. ":") - it is
10364 # assumed that no part of a normal pathname contains ";" but that should
10365 # okay in the real world where ";" in dirpaths is itself problematic.
10366 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
10367 else
10368 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10370 # Ok, now we have the path, separated by spaces, we can step through it
10371 # and add multilib dir if necessary.
10372 lt_tmp_lt_search_path_spec=
10373 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10374 for lt_sys_path in $lt_search_path_spec; do
10375 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
10376 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
10377 else
10378 test -d "$lt_sys_path" && \
10379 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10381 done
10382 lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
10383 BEGIN {RS=" "; FS="/|\n";} {
10384 lt_foo="";
10385 lt_count=0;
10386 for (lt_i = NF; lt_i > 0; lt_i--) {
10387 if ($lt_i != "" && $lt_i != ".") {
10388 if ($lt_i == "..") {
10389 lt_count++;
10390 } else {
10391 if (lt_count == 0) {
10392 lt_foo="/" $lt_i lt_foo;
10393 } else {
10394 lt_count--;
10399 if (lt_foo != "") { lt_freq[lt_foo]++; }
10400 if (lt_freq[lt_foo] == 1) { print lt_foo; }
10402 sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
10403 else
10404 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10406 library_names_spec=
10407 libname_spec='lib$name'
10408 soname_spec=
10409 shrext_cmds=".so"
10410 postinstall_cmds=
10411 postuninstall_cmds=
10412 finish_cmds=
10413 finish_eval=
10414 shlibpath_var=
10415 shlibpath_overrides_runpath=unknown
10416 version_type=none
10417 dynamic_linker="$host_os ld.so"
10418 sys_lib_dlsearch_path_spec="/lib /usr/lib"
10419 need_lib_prefix=unknown
10420 hardcode_into_libs=no
10422 # when you set need_version to no, make sure it does not cause -set_version
10423 # flags to be left without arguments
10424 need_version=unknown
10426 case $host_os in
10427 aix3*)
10428 version_type=linux
10429 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10430 shlibpath_var=LIBPATH
10432 # AIX 3 has no versioning support, so we append a major version to the name.
10433 soname_spec='${libname}${release}${shared_ext}$major'
10436 aix[4-9]*)
10437 version_type=linux
10438 need_lib_prefix=no
10439 need_version=no
10440 hardcode_into_libs=yes
10441 if test "$host_cpu" = ia64; then
10442 # AIX 5 supports IA64
10443 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10444 shlibpath_var=LD_LIBRARY_PATH
10445 else
10446 # With GCC up to 2.95.x, collect2 would create an import file
10447 # for dependence libraries. The import file would start with
10448 # the line `#! .'. This would cause the generated library to
10449 # depend on `.', always an invalid library. This was fixed in
10450 # development snapshots of GCC prior to 3.0.
10451 case $host_os in
10452 aix4 | aix4.[01] | aix4.[01].*)
10453 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10454 echo ' yes '
10455 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
10457 else
10458 can_build_shared=no
10461 esac
10462 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10463 # soname into executable. Probably we can add versioning support to
10464 # collect2, so additional links can be useful in future.
10465 if test "$aix_use_runtimelinking" = yes; then
10466 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10467 # instead of lib<name>.a to let people know that these are not
10468 # typical AIX shared libraries.
10469 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10470 else
10471 # We preserve .a as extension for shared libraries through AIX4.2
10472 # and later when we are not doing run time linking.
10473 library_names_spec='${libname}${release}.a $libname.a'
10474 soname_spec='${libname}${release}${shared_ext}$major'
10476 shlibpath_var=LIBPATH
10480 amigaos*)
10481 case $host_cpu in
10482 powerpc)
10483 # Since July 2007 AmigaOS4 officially supports .so libraries.
10484 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10485 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10487 m68k)
10488 library_names_spec='$libname.ixlibrary $libname.a'
10489 # Create ${libname}_ixlibrary.a entries in /sys/libs.
10490 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'
10492 esac
10495 beos*)
10496 library_names_spec='${libname}${shared_ext}'
10497 dynamic_linker="$host_os ld.so"
10498 shlibpath_var=LIBRARY_PATH
10501 bsdi[45]*)
10502 version_type=linux
10503 need_version=no
10504 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10505 soname_spec='${libname}${release}${shared_ext}$major'
10506 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10507 shlibpath_var=LD_LIBRARY_PATH
10508 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10509 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10510 # the default ld.so.conf also contains /usr/contrib/lib and
10511 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10512 # libtool to hard-code these into programs
10515 cygwin* | mingw* | pw32* | cegcc*)
10516 version_type=windows
10517 shrext_cmds=".dll"
10518 need_version=no
10519 need_lib_prefix=no
10521 case $GCC,$host_os in
10522 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
10523 library_names_spec='$libname.dll.a'
10524 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10525 postinstall_cmds='base_file=`basename \${file}`~
10526 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10527 dldir=$destdir/`dirname \$dlpath`~
10528 test -d \$dldir || mkdir -p \$dldir~
10529 $install_prog $dir/$dlname \$dldir/$dlname~
10530 chmod a+x \$dldir/$dlname~
10531 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10532 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10534 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10535 dlpath=$dir/\$dldll~
10536 $RM \$dlpath'
10537 shlibpath_overrides_runpath=yes
10539 case $host_os in
10540 cygwin*)
10541 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10542 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10543 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
10545 mingw* | cegcc*)
10546 # MinGW DLLs use traditional 'lib' prefix
10547 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10548 sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
10549 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
10550 # It is most probably a Windows format PATH printed by
10551 # mingw gcc, but we are running on Cygwin. Gcc prints its search
10552 # path with ; separators, and with drive letters. We can handle the
10553 # drive letters (cygwin fileutils understands them), so leave them,
10554 # especially as we might pass files found there to a mingw objdump,
10555 # which wouldn't understand a cygwinified path. Ahh.
10556 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10557 else
10558 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10561 pw32*)
10562 # pw32 DLLs use 'pw' prefix rather than 'lib'
10563 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10565 esac
10569 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10571 esac
10572 dynamic_linker='Win32 ld.exe'
10573 # FIXME: first we should search . and the directory the executable is in
10574 shlibpath_var=PATH
10577 darwin* | rhapsody*)
10578 dynamic_linker="$host_os dyld"
10579 version_type=darwin
10580 need_lib_prefix=no
10581 need_version=no
10582 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10583 soname_spec='${libname}${release}${major}$shared_ext'
10584 shlibpath_overrides_runpath=yes
10585 shlibpath_var=DYLD_LIBRARY_PATH
10586 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10588 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10589 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10592 dgux*)
10593 version_type=linux
10594 need_lib_prefix=no
10595 need_version=no
10596 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10597 soname_spec='${libname}${release}${shared_ext}$major'
10598 shlibpath_var=LD_LIBRARY_PATH
10601 freebsd1*)
10602 dynamic_linker=no
10605 freebsd* | dragonfly*)
10606 # DragonFly does not have aout. When/if they implement a new
10607 # versioning mechanism, adjust this.
10608 if test -x /usr/bin/objformat; then
10609 objformat=`/usr/bin/objformat`
10610 else
10611 case $host_os in
10612 freebsd[123]*) objformat=aout ;;
10613 *) objformat=elf ;;
10614 esac
10616 version_type=freebsd-$objformat
10617 case $version_type in
10618 freebsd-elf*)
10619 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10620 need_version=no
10621 need_lib_prefix=no
10623 freebsd-*)
10624 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10625 need_version=yes
10627 esac
10628 shlibpath_var=LD_LIBRARY_PATH
10629 case $host_os in
10630 freebsd2*)
10631 shlibpath_overrides_runpath=yes
10633 freebsd3.[01]* | freebsdelf3.[01]*)
10634 shlibpath_overrides_runpath=yes
10635 hardcode_into_libs=yes
10637 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10638 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10639 shlibpath_overrides_runpath=no
10640 hardcode_into_libs=yes
10642 *) # from 4.6 on, and DragonFly
10643 shlibpath_overrides_runpath=yes
10644 hardcode_into_libs=yes
10646 esac
10649 gnu*)
10650 version_type=linux
10651 need_lib_prefix=no
10652 need_version=no
10653 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10654 soname_spec='${libname}${release}${shared_ext}$major'
10655 shlibpath_var=LD_LIBRARY_PATH
10656 hardcode_into_libs=yes
10659 hpux9* | hpux10* | hpux11*)
10660 # Give a soname corresponding to the major version so that dld.sl refuses to
10661 # link against other versions.
10662 version_type=sunos
10663 need_lib_prefix=no
10664 need_version=no
10665 case $host_cpu in
10666 ia64*)
10667 shrext_cmds='.so'
10668 hardcode_into_libs=yes
10669 dynamic_linker="$host_os dld.so"
10670 shlibpath_var=LD_LIBRARY_PATH
10671 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10672 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10673 soname_spec='${libname}${release}${shared_ext}$major'
10674 if test "X$HPUX_IA64_MODE" = X32; then
10675 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10676 else
10677 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10679 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10681 hppa*64*)
10682 shrext_cmds='.sl'
10683 hardcode_into_libs=yes
10684 dynamic_linker="$host_os dld.sl"
10685 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10686 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10687 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10688 soname_spec='${libname}${release}${shared_ext}$major'
10689 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10690 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10693 shrext_cmds='.sl'
10694 dynamic_linker="$host_os dld.sl"
10695 shlibpath_var=SHLIB_PATH
10696 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10697 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10698 soname_spec='${libname}${release}${shared_ext}$major'
10700 esac
10701 # HP-UX runs *really* slowly unless shared libraries are mode 555.
10702 postinstall_cmds='chmod 555 $lib'
10705 interix[3-9]*)
10706 version_type=linux
10707 need_lib_prefix=no
10708 need_version=no
10709 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10710 soname_spec='${libname}${release}${shared_ext}$major'
10711 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10712 shlibpath_var=LD_LIBRARY_PATH
10713 shlibpath_overrides_runpath=no
10714 hardcode_into_libs=yes
10717 irix5* | irix6* | nonstopux*)
10718 case $host_os in
10719 nonstopux*) version_type=nonstopux ;;
10721 if test "$lt_cv_prog_gnu_ld" = yes; then
10722 version_type=linux
10723 else
10724 version_type=irix
10725 fi ;;
10726 esac
10727 need_lib_prefix=no
10728 need_version=no
10729 soname_spec='${libname}${release}${shared_ext}$major'
10730 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10731 case $host_os in
10732 irix5* | nonstopux*)
10733 libsuff= shlibsuff=
10736 case $LD in # libtool.m4 will add one of these switches to LD
10737 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10738 libsuff= shlibsuff= libmagic=32-bit;;
10739 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10740 libsuff=32 shlibsuff=N32 libmagic=N32;;
10741 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10742 libsuff=64 shlibsuff=64 libmagic=64-bit;;
10743 *) libsuff= shlibsuff= libmagic=never-match;;
10744 esac
10746 esac
10747 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10748 shlibpath_overrides_runpath=no
10749 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10750 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10751 hardcode_into_libs=yes
10754 # No shared lib support for Linux oldld, aout, or coff.
10755 linux*oldld* | linux*aout* | linux*coff*)
10756 dynamic_linker=no
10759 # This must be Linux ELF.
10760 linux* | k*bsd*-gnu | kopensolaris*-gnu)
10761 version_type=linux
10762 need_lib_prefix=no
10763 need_version=no
10764 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10765 soname_spec='${libname}${release}${shared_ext}$major'
10766 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10767 shlibpath_var=LD_LIBRARY_PATH
10768 shlibpath_overrides_runpath=no
10770 # Some binutils ld are patched to set DT_RUNPATH
10771 if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
10772 $as_echo_n "(cached) " >&6
10773 else
10774 lt_cv_shlibpath_overrides_runpath=no
10775 save_LDFLAGS=$LDFLAGS
10776 save_libdir=$libdir
10777 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10778 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10779 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10780 /* end confdefs.h. */
10783 main ()
10787 return 0;
10789 _ACEOF
10790 if ac_fn_c_try_link "$LINENO"; then :
10791 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
10792 lt_cv_shlibpath_overrides_runpath=yes
10795 rm -f core conftest.err conftest.$ac_objext \
10796 conftest$ac_exeext conftest.$ac_ext
10797 LDFLAGS=$save_LDFLAGS
10798 libdir=$save_libdir
10802 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
10804 # This implies no fast_install, which is unacceptable.
10805 # Some rework will be needed to allow for fast_install
10806 # before this can be enabled.
10807 hardcode_into_libs=yes
10809 # Append ld.so.conf contents to the search path
10810 if test -f /etc/ld.so.conf; then
10811 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' ' '`
10812 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10815 # We used to test for /lib/ld.so.1 and disable shared libraries on
10816 # powerpc, because MkLinux only supported shared libraries with the
10817 # GNU dynamic linker. Since this was broken with cross compilers,
10818 # most powerpc-linux boxes support dynamic linking these days and
10819 # people can always --disable-shared, the test was removed, and we
10820 # assume the GNU/Linux dynamic linker is in use.
10821 dynamic_linker='GNU/Linux ld.so'
10824 netbsd*)
10825 version_type=sunos
10826 need_lib_prefix=no
10827 need_version=no
10828 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10829 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10830 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10831 dynamic_linker='NetBSD (a.out) ld.so'
10832 else
10833 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10834 soname_spec='${libname}${release}${shared_ext}$major'
10835 dynamic_linker='NetBSD ld.elf_so'
10837 shlibpath_var=LD_LIBRARY_PATH
10838 shlibpath_overrides_runpath=yes
10839 hardcode_into_libs=yes
10842 newsos6)
10843 version_type=linux
10844 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10845 shlibpath_var=LD_LIBRARY_PATH
10846 shlibpath_overrides_runpath=yes
10849 *nto* | *qnx*)
10850 version_type=qnx
10851 need_lib_prefix=no
10852 need_version=no
10853 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10854 soname_spec='${libname}${release}${shared_ext}$major'
10855 shlibpath_var=LD_LIBRARY_PATH
10856 shlibpath_overrides_runpath=no
10857 hardcode_into_libs=yes
10858 dynamic_linker='ldqnx.so'
10861 openbsd*)
10862 version_type=sunos
10863 sys_lib_dlsearch_path_spec="/usr/lib"
10864 need_lib_prefix=no
10865 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10866 case $host_os in
10867 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
10868 *) need_version=no ;;
10869 esac
10870 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10871 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10872 shlibpath_var=LD_LIBRARY_PATH
10873 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10874 case $host_os in
10875 openbsd2.[89] | openbsd2.[89].*)
10876 shlibpath_overrides_runpath=no
10879 shlibpath_overrides_runpath=yes
10881 esac
10882 else
10883 shlibpath_overrides_runpath=yes
10887 os2*)
10888 libname_spec='$name'
10889 shrext_cmds=".dll"
10890 need_lib_prefix=no
10891 library_names_spec='$libname${shared_ext} $libname.a'
10892 dynamic_linker='OS/2 ld.exe'
10893 shlibpath_var=LIBPATH
10896 osf3* | osf4* | osf5*)
10897 version_type=osf
10898 need_lib_prefix=no
10899 need_version=no
10900 soname_spec='${libname}${release}${shared_ext}$major'
10901 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10902 shlibpath_var=LD_LIBRARY_PATH
10903 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10904 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10907 rdos*)
10908 dynamic_linker=no
10911 solaris*)
10912 version_type=linux
10913 need_lib_prefix=no
10914 need_version=no
10915 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10916 soname_spec='${libname}${release}${shared_ext}$major'
10917 shlibpath_var=LD_LIBRARY_PATH
10918 shlibpath_overrides_runpath=yes
10919 hardcode_into_libs=yes
10920 # ldd complains unless libraries are executable
10921 postinstall_cmds='chmod +x $lib'
10924 sunos4*)
10925 version_type=sunos
10926 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10927 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10928 shlibpath_var=LD_LIBRARY_PATH
10929 shlibpath_overrides_runpath=yes
10930 if test "$with_gnu_ld" = yes; then
10931 need_lib_prefix=no
10933 need_version=yes
10936 sysv4 | sysv4.3*)
10937 version_type=linux
10938 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10939 soname_spec='${libname}${release}${shared_ext}$major'
10940 shlibpath_var=LD_LIBRARY_PATH
10941 case $host_vendor in
10942 sni)
10943 shlibpath_overrides_runpath=no
10944 need_lib_prefix=no
10945 runpath_var=LD_RUN_PATH
10947 siemens)
10948 need_lib_prefix=no
10950 motorola)
10951 need_lib_prefix=no
10952 need_version=no
10953 shlibpath_overrides_runpath=no
10954 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10956 esac
10959 sysv4*MP*)
10960 if test -d /usr/nec ;then
10961 version_type=linux
10962 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10963 soname_spec='$libname${shared_ext}.$major'
10964 shlibpath_var=LD_LIBRARY_PATH
10968 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10969 version_type=freebsd-elf
10970 need_lib_prefix=no
10971 need_version=no
10972 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10973 soname_spec='${libname}${release}${shared_ext}$major'
10974 shlibpath_var=LD_LIBRARY_PATH
10975 shlibpath_overrides_runpath=yes
10976 hardcode_into_libs=yes
10977 if test "$with_gnu_ld" = yes; then
10978 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10979 else
10980 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10981 case $host_os in
10982 sco3.2v5*)
10983 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10985 esac
10987 sys_lib_dlsearch_path_spec='/usr/lib'
10990 tpf*)
10991 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
10992 version_type=linux
10993 need_lib_prefix=no
10994 need_version=no
10995 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10996 shlibpath_var=LD_LIBRARY_PATH
10997 shlibpath_overrides_runpath=no
10998 hardcode_into_libs=yes
11001 uts4*)
11002 version_type=linux
11003 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11004 soname_spec='${libname}${release}${shared_ext}$major'
11005 shlibpath_var=LD_LIBRARY_PATH
11009 dynamic_linker=no
11011 esac
11012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
11013 $as_echo "$dynamic_linker" >&6; }
11014 test "$dynamic_linker" = no && can_build_shared=no
11016 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11017 if test "$GCC" = yes; then
11018 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11021 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
11022 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
11024 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
11025 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
11114 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
11115 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
11116 hardcode_action=
11117 if test -n "$hardcode_libdir_flag_spec" ||
11118 test -n "$runpath_var" ||
11119 test "X$hardcode_automatic" = "Xyes" ; then
11121 # We can hardcode non-existent directories.
11122 if test "$hardcode_direct" != no &&
11123 # If the only mechanism to avoid hardcoding is shlibpath_var, we
11124 # have to relink, otherwise we might link with an installed library
11125 # when we should be linking with a yet-to-be-installed one
11126 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
11127 test "$hardcode_minus_L" != no; then
11128 # Linking always hardcodes the temporary library directory.
11129 hardcode_action=relink
11130 else
11131 # We can link without hardcoding, and we can hardcode nonexisting dirs.
11132 hardcode_action=immediate
11134 else
11135 # We cannot hardcode anything, or else we can only hardcode existing
11136 # directories.
11137 hardcode_action=unsupported
11139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
11140 $as_echo "$hardcode_action" >&6; }
11142 if test "$hardcode_action" = relink ||
11143 test "$inherit_rpath" = yes; then
11144 # Fast installation is not supported
11145 enable_fast_install=no
11146 elif test "$shlibpath_overrides_runpath" = yes ||
11147 test "$enable_shared" = no; then
11148 # Fast installation is not necessary
11149 enable_fast_install=needless
11157 if test "x$enable_dlopen" != xyes; then
11158 enable_dlopen=unknown
11159 enable_dlopen_self=unknown
11160 enable_dlopen_self_static=unknown
11161 else
11162 lt_cv_dlopen=no
11163 lt_cv_dlopen_libs=
11165 case $host_os in
11166 beos*)
11167 lt_cv_dlopen="load_add_on"
11168 lt_cv_dlopen_libs=
11169 lt_cv_dlopen_self=yes
11172 mingw* | pw32* | cegcc*)
11173 lt_cv_dlopen="LoadLibrary"
11174 lt_cv_dlopen_libs=
11177 cygwin*)
11178 lt_cv_dlopen="dlopen"
11179 lt_cv_dlopen_libs=
11182 darwin*)
11183 # if libdl is installed we need to link against it
11184 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11185 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11186 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
11187 $as_echo_n "(cached) " >&6
11188 else
11189 ac_check_lib_save_LIBS=$LIBS
11190 LIBS="-ldl $LIBS"
11191 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11192 /* end confdefs.h. */
11194 /* Override any GCC internal prototype to avoid an error.
11195 Use char because int might match the return type of a GCC
11196 builtin and then its argument prototype would still apply. */
11197 #ifdef __cplusplus
11198 extern "C"
11199 #endif
11200 char dlopen ();
11202 main ()
11204 return dlopen ();
11206 return 0;
11208 _ACEOF
11209 if ac_fn_c_try_link "$LINENO"; then :
11210 ac_cv_lib_dl_dlopen=yes
11211 else
11212 ac_cv_lib_dl_dlopen=no
11214 rm -f core conftest.err conftest.$ac_objext \
11215 conftest$ac_exeext conftest.$ac_ext
11216 LIBS=$ac_check_lib_save_LIBS
11218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11219 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11220 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
11221 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11222 else
11224 lt_cv_dlopen="dyld"
11225 lt_cv_dlopen_libs=
11226 lt_cv_dlopen_self=yes
11233 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
11234 if test "x$ac_cv_func_shl_load" = x""yes; then :
11235 lt_cv_dlopen="shl_load"
11236 else
11237 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
11238 $as_echo_n "checking for shl_load in -ldld... " >&6; }
11239 if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
11240 $as_echo_n "(cached) " >&6
11241 else
11242 ac_check_lib_save_LIBS=$LIBS
11243 LIBS="-ldld $LIBS"
11244 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11245 /* end confdefs.h. */
11247 /* Override any GCC internal prototype to avoid an error.
11248 Use char because int might match the return type of a GCC
11249 builtin and then its argument prototype would still apply. */
11250 #ifdef __cplusplus
11251 extern "C"
11252 #endif
11253 char shl_load ();
11255 main ()
11257 return shl_load ();
11259 return 0;
11261 _ACEOF
11262 if ac_fn_c_try_link "$LINENO"; then :
11263 ac_cv_lib_dld_shl_load=yes
11264 else
11265 ac_cv_lib_dld_shl_load=no
11267 rm -f core conftest.err conftest.$ac_objext \
11268 conftest$ac_exeext conftest.$ac_ext
11269 LIBS=$ac_check_lib_save_LIBS
11271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
11272 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
11273 if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
11274 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
11275 else
11276 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
11277 if test "x$ac_cv_func_dlopen" = x""yes; then :
11278 lt_cv_dlopen="dlopen"
11279 else
11280 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11281 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11282 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
11283 $as_echo_n "(cached) " >&6
11284 else
11285 ac_check_lib_save_LIBS=$LIBS
11286 LIBS="-ldl $LIBS"
11287 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11288 /* end confdefs.h. */
11290 /* Override any GCC internal prototype to avoid an error.
11291 Use char because int might match the return type of a GCC
11292 builtin and then its argument prototype would still apply. */
11293 #ifdef __cplusplus
11294 extern "C"
11295 #endif
11296 char dlopen ();
11298 main ()
11300 return dlopen ();
11302 return 0;
11304 _ACEOF
11305 if ac_fn_c_try_link "$LINENO"; then :
11306 ac_cv_lib_dl_dlopen=yes
11307 else
11308 ac_cv_lib_dl_dlopen=no
11310 rm -f core conftest.err conftest.$ac_objext \
11311 conftest$ac_exeext conftest.$ac_ext
11312 LIBS=$ac_check_lib_save_LIBS
11314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11315 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11316 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
11317 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11318 else
11319 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11320 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
11321 if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
11322 $as_echo_n "(cached) " >&6
11323 else
11324 ac_check_lib_save_LIBS=$LIBS
11325 LIBS="-lsvld $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_svld_dlopen=yes
11346 else
11347 ac_cv_lib_svld_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_svld_dlopen" >&5
11354 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11355 if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
11356 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11357 else
11358 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11359 $as_echo_n "checking for dld_link in -ldld... " >&6; }
11360 if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
11361 $as_echo_n "(cached) " >&6
11362 else
11363 ac_check_lib_save_LIBS=$LIBS
11364 LIBS="-ldld $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 dld_link ();
11376 main ()
11378 return dld_link ();
11380 return 0;
11382 _ACEOF
11383 if ac_fn_c_try_link "$LINENO"; then :
11384 ac_cv_lib_dld_dld_link=yes
11385 else
11386 ac_cv_lib_dld_dld_link=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_dld_dld_link" >&5
11393 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11394 if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
11395 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
11414 esac
11416 if test "x$lt_cv_dlopen" != xno; then
11417 enable_dlopen=yes
11418 else
11419 enable_dlopen=no
11422 case $lt_cv_dlopen in
11423 dlopen)
11424 save_CPPFLAGS="$CPPFLAGS"
11425 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11427 save_LDFLAGS="$LDFLAGS"
11428 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11430 save_LIBS="$LIBS"
11431 LIBS="$lt_cv_dlopen_libs $LIBS"
11433 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
11434 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
11435 if test "${lt_cv_dlopen_self+set}" = set; then :
11436 $as_echo_n "(cached) " >&6
11437 else
11438 if test "$cross_compiling" = yes; then :
11439 lt_cv_dlopen_self=cross
11440 else
11441 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11442 lt_status=$lt_dlunknown
11443 cat > conftest.$ac_ext <<_LT_EOF
11444 #line 11444 "configure"
11445 #include "confdefs.h"
11447 #if HAVE_DLFCN_H
11448 #include <dlfcn.h>
11449 #endif
11451 #include <stdio.h>
11453 #ifdef RTLD_GLOBAL
11454 # define LT_DLGLOBAL RTLD_GLOBAL
11455 #else
11456 # ifdef DL_GLOBAL
11457 # define LT_DLGLOBAL DL_GLOBAL
11458 # else
11459 # define LT_DLGLOBAL 0
11460 # endif
11461 #endif
11463 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11464 find out it does not work in some platform. */
11465 #ifndef LT_DLLAZY_OR_NOW
11466 # ifdef RTLD_LAZY
11467 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11468 # else
11469 # ifdef DL_LAZY
11470 # define LT_DLLAZY_OR_NOW DL_LAZY
11471 # else
11472 # ifdef RTLD_NOW
11473 # define LT_DLLAZY_OR_NOW RTLD_NOW
11474 # else
11475 # ifdef DL_NOW
11476 # define LT_DLLAZY_OR_NOW DL_NOW
11477 # else
11478 # define LT_DLLAZY_OR_NOW 0
11479 # endif
11480 # endif
11481 # endif
11482 # endif
11483 #endif
11485 void fnord() { int i=42;}
11486 int main ()
11488 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11489 int status = $lt_dlunknown;
11491 if (self)
11493 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11494 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11495 /* dlclose (self); */
11497 else
11498 puts (dlerror ());
11500 return status;
11502 _LT_EOF
11503 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11504 (eval $ac_link) 2>&5
11505 ac_status=$?
11506 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11507 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11508 (./conftest; exit; ) >&5 2>/dev/null
11509 lt_status=$?
11510 case x$lt_status in
11511 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11512 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11513 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11514 esac
11515 else :
11516 # compilation failed
11517 lt_cv_dlopen_self=no
11520 rm -fr conftest*
11524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11525 $as_echo "$lt_cv_dlopen_self" >&6; }
11527 if test "x$lt_cv_dlopen_self" = xyes; then
11528 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11529 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11530 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11531 if test "${lt_cv_dlopen_self_static+set}" = set; then :
11532 $as_echo_n "(cached) " >&6
11533 else
11534 if test "$cross_compiling" = yes; then :
11535 lt_cv_dlopen_self_static=cross
11536 else
11537 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11538 lt_status=$lt_dlunknown
11539 cat > conftest.$ac_ext <<_LT_EOF
11540 #line 11540 "configure"
11541 #include "confdefs.h"
11543 #if HAVE_DLFCN_H
11544 #include <dlfcn.h>
11545 #endif
11547 #include <stdio.h>
11549 #ifdef RTLD_GLOBAL
11550 # define LT_DLGLOBAL RTLD_GLOBAL
11551 #else
11552 # ifdef DL_GLOBAL
11553 # define LT_DLGLOBAL DL_GLOBAL
11554 # else
11555 # define LT_DLGLOBAL 0
11556 # endif
11557 #endif
11559 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11560 find out it does not work in some platform. */
11561 #ifndef LT_DLLAZY_OR_NOW
11562 # ifdef RTLD_LAZY
11563 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11564 # else
11565 # ifdef DL_LAZY
11566 # define LT_DLLAZY_OR_NOW DL_LAZY
11567 # else
11568 # ifdef RTLD_NOW
11569 # define LT_DLLAZY_OR_NOW RTLD_NOW
11570 # else
11571 # ifdef DL_NOW
11572 # define LT_DLLAZY_OR_NOW DL_NOW
11573 # else
11574 # define LT_DLLAZY_OR_NOW 0
11575 # endif
11576 # endif
11577 # endif
11578 # endif
11579 #endif
11581 void fnord() { int i=42;}
11582 int main ()
11584 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11585 int status = $lt_dlunknown;
11587 if (self)
11589 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11590 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11591 /* dlclose (self); */
11593 else
11594 puts (dlerror ());
11596 return status;
11598 _LT_EOF
11599 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11600 (eval $ac_link) 2>&5
11601 ac_status=$?
11602 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11603 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11604 (./conftest; exit; ) >&5 2>/dev/null
11605 lt_status=$?
11606 case x$lt_status in
11607 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11608 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11609 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11610 esac
11611 else :
11612 # compilation failed
11613 lt_cv_dlopen_self_static=no
11616 rm -fr conftest*
11620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11621 $as_echo "$lt_cv_dlopen_self_static" >&6; }
11624 CPPFLAGS="$save_CPPFLAGS"
11625 LDFLAGS="$save_LDFLAGS"
11626 LIBS="$save_LIBS"
11628 esac
11630 case $lt_cv_dlopen_self in
11631 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11632 *) enable_dlopen_self=unknown ;;
11633 esac
11635 case $lt_cv_dlopen_self_static in
11636 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11637 *) enable_dlopen_self_static=unknown ;;
11638 esac
11657 striplib=
11658 old_striplib=
11659 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11660 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
11661 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11662 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11663 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11665 $as_echo "yes" >&6; }
11666 else
11667 # FIXME - insert some real tests, host_os isn't really good enough
11668 case $host_os in
11669 darwin*)
11670 if test -n "$STRIP" ; then
11671 striplib="$STRIP -x"
11672 old_striplib="$STRIP -S"
11673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11674 $as_echo "yes" >&6; }
11675 else
11676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11677 $as_echo "no" >&6; }
11681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11682 $as_echo "no" >&6; }
11684 esac
11698 # Report which library types will actually be built
11699 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
11700 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
11701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
11702 $as_echo "$can_build_shared" >&6; }
11704 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
11705 $as_echo_n "checking whether to build shared libraries... " >&6; }
11706 test "$can_build_shared" = "no" && enable_shared=no
11708 # On AIX, shared libraries and static libraries use the same namespace, and
11709 # are all built from PIC.
11710 case $host_os in
11711 aix3*)
11712 test "$enable_shared" = yes && enable_static=no
11713 if test -n "$RANLIB"; then
11714 archive_cmds="$archive_cmds~\$RANLIB \$lib"
11715 postinstall_cmds='$RANLIB $lib'
11719 aix[4-9]*)
11720 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11721 test "$enable_shared" = yes && enable_static=no
11724 esac
11725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
11726 $as_echo "$enable_shared" >&6; }
11728 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
11729 $as_echo_n "checking whether to build static libraries... " >&6; }
11730 # Make sure either enable_shared or enable_static is yes.
11731 test "$enable_shared" = yes || enable_static=yes
11732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
11733 $as_echo "$enable_static" >&6; }
11739 ac_ext=c
11740 ac_cpp='$CPP $CPPFLAGS'
11741 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11742 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11743 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11745 CC="$lt_save_CC"
11759 ac_config_commands="$ac_config_commands libtool"
11764 # Only expand once:
11768 ALL_LINGUAS="fr sv tr es da vi zh_CN zh_TW ga fi id"
11769 # If we haven't got the data from the intl directory,
11770 # assume NLS is disabled.
11771 USE_NLS=no
11772 LIBINTL=
11773 LIBINTL_DEP=
11774 INCINTL=
11775 XGETTEXT=
11776 GMSGFMT=
11777 POSUB=
11779 if test -f ../intl/config.intl; then
11780 . ../intl/config.intl
11782 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
11783 $as_echo_n "checking whether NLS is requested... " >&6; }
11784 if test x"$USE_NLS" != xyes; then
11785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11786 $as_echo "no" >&6; }
11787 else
11788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11789 $as_echo "yes" >&6; }
11791 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
11794 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catalogs to be installed" >&5
11795 $as_echo_n "checking for catalogs to be installed... " >&6; }
11796 # Look for .po and .gmo files in the source directory.
11797 CATALOGS=
11798 XLINGUAS=
11799 for cat in $srcdir/po/*.gmo $srcdir/po/*.po; do
11800 # If there aren't any .gmo files the shell will give us the
11801 # literal string "../path/to/srcdir/po/*.gmo" which has to be
11802 # weeded out.
11803 case "$cat" in *\**)
11804 continue;;
11805 esac
11806 # The quadruple backslash is collapsed to a double backslash
11807 # by the backticks, then collapsed again by the double quotes,
11808 # leaving us with one backslash in the sed expression (right
11809 # before the dot that mustn't act as a wildcard).
11810 cat=`echo $cat | sed -e "s!$srcdir/po/!!" -e "s!\\\\.po!.gmo!"`
11811 lang=`echo $cat | sed -e "s!\\\\.gmo!!"`
11812 # The user is allowed to set LINGUAS to a list of languages to
11813 # install catalogs for. If it's empty that means "all of them."
11814 if test "x$LINGUAS" = x; then
11815 CATALOGS="$CATALOGS $cat"
11816 XLINGUAS="$XLINGUAS $lang"
11817 else
11818 case "$LINGUAS" in *$lang*)
11819 CATALOGS="$CATALOGS $cat"
11820 XLINGUAS="$XLINGUAS $lang"
11822 esac
11824 done
11825 LINGUAS="$XLINGUAS"
11826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINGUAS" >&5
11827 $as_echo "$LINGUAS" >&6; }
11830 DATADIRNAME=share
11832 INSTOBJEXT=.mo
11834 GENCAT=gencat
11836 CATOBJEXT=.gmo
11840 MKINSTALLDIRS=
11841 if test -n "$ac_aux_dir"; then
11842 case "$ac_aux_dir" in
11843 /*) MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" ;;
11844 *) MKINSTALLDIRS="\$(top_builddir)/$ac_aux_dir/mkinstalldirs" ;;
11845 esac
11847 if test -z "$MKINSTALLDIRS"; then
11848 MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
11853 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
11854 $as_echo_n "checking whether NLS is requested... " >&6; }
11855 # Check whether --enable-nls was given.
11856 if test "${enable_nls+set}" = set; then :
11857 enableval=$enable_nls; USE_NLS=$enableval
11858 else
11859 USE_NLS=yes
11862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
11863 $as_echo "$USE_NLS" >&6; }
11870 # Prepare PATH_SEPARATOR.
11871 # The user is always right.
11872 if test "${PATH_SEPARATOR+set}" != set; then
11873 echo "#! /bin/sh" >conf$$.sh
11874 echo "exit 0" >>conf$$.sh
11875 chmod +x conf$$.sh
11876 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
11877 PATH_SEPARATOR=';'
11878 else
11879 PATH_SEPARATOR=:
11881 rm -f conf$$.sh
11884 # Find out how to test for executable files. Don't use a zero-byte file,
11885 # as systems may use methods other than mode bits to determine executability.
11886 cat >conf$$.file <<_ASEOF
11887 #! /bin/sh
11888 exit 0
11889 _ASEOF
11890 chmod +x conf$$.file
11891 if test -x conf$$.file >/dev/null 2>&1; then
11892 ac_executable_p="test -x"
11893 else
11894 ac_executable_p="test -f"
11896 rm -f conf$$.file
11898 # Extract the first word of "msgfmt", so it can be a program name with args.
11899 set dummy msgfmt; ac_word=$2
11900 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11901 $as_echo_n "checking for $ac_word... " >&6; }
11902 if test "${ac_cv_path_MSGFMT+set}" = set; then :
11903 $as_echo_n "(cached) " >&6
11904 else
11905 case "$MSGFMT" in
11906 [\\/]* | ?:[\\/]*)
11907 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
11910 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
11911 for ac_dir in $PATH; do
11912 IFS="$ac_save_IFS"
11913 test -z "$ac_dir" && ac_dir=.
11914 for ac_exec_ext in '' $ac_executable_extensions; do
11915 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
11916 if $ac_dir/$ac_word --statistics /dev/null >/dev/null 2>&1 &&
11917 (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
11918 ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
11919 break 2
11922 done
11923 done
11924 IFS="$ac_save_IFS"
11925 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
11927 esac
11929 MSGFMT="$ac_cv_path_MSGFMT"
11930 if test "$MSGFMT" != ":"; then
11931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
11932 $as_echo "$MSGFMT" >&6; }
11933 else
11934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11935 $as_echo "no" >&6; }
11938 # Extract the first word of "gmsgfmt", so it can be a program name with args.
11939 set dummy gmsgfmt; ac_word=$2
11940 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11941 $as_echo_n "checking for $ac_word... " >&6; }
11942 if test "${ac_cv_path_GMSGFMT+set}" = set; then :
11943 $as_echo_n "(cached) " >&6
11944 else
11945 case $GMSGFMT in
11946 [\\/]* | ?:[\\/]*)
11947 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
11950 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11951 for as_dir in $PATH
11953 IFS=$as_save_IFS
11954 test -z "$as_dir" && as_dir=.
11955 for ac_exec_ext in '' $ac_executable_extensions; do
11956 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11957 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
11958 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11959 break 2
11961 done
11962 done
11963 IFS=$as_save_IFS
11965 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
11967 esac
11969 GMSGFMT=$ac_cv_path_GMSGFMT
11970 if test -n "$GMSGFMT"; then
11971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMSGFMT" >&5
11972 $as_echo "$GMSGFMT" >&6; }
11973 else
11974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11975 $as_echo "no" >&6; }
11981 # Prepare PATH_SEPARATOR.
11982 # The user is always right.
11983 if test "${PATH_SEPARATOR+set}" != set; then
11984 echo "#! /bin/sh" >conf$$.sh
11985 echo "exit 0" >>conf$$.sh
11986 chmod +x conf$$.sh
11987 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
11988 PATH_SEPARATOR=';'
11989 else
11990 PATH_SEPARATOR=:
11992 rm -f conf$$.sh
11995 # Find out how to test for executable files. Don't use a zero-byte file,
11996 # as systems may use methods other than mode bits to determine executability.
11997 cat >conf$$.file <<_ASEOF
11998 #! /bin/sh
11999 exit 0
12000 _ASEOF
12001 chmod +x conf$$.file
12002 if test -x conf$$.file >/dev/null 2>&1; then
12003 ac_executable_p="test -x"
12004 else
12005 ac_executable_p="test -f"
12007 rm -f conf$$.file
12009 # Extract the first word of "xgettext", so it can be a program name with args.
12010 set dummy xgettext; ac_word=$2
12011 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12012 $as_echo_n "checking for $ac_word... " >&6; }
12013 if test "${ac_cv_path_XGETTEXT+set}" = set; then :
12014 $as_echo_n "(cached) " >&6
12015 else
12016 case "$XGETTEXT" in
12017 [\\/]* | ?:[\\/]*)
12018 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
12021 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
12022 for ac_dir in $PATH; do
12023 IFS="$ac_save_IFS"
12024 test -z "$ac_dir" && ac_dir=.
12025 for ac_exec_ext in '' $ac_executable_extensions; do
12026 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
12027 if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
12028 (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
12029 ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
12030 break 2
12033 done
12034 done
12035 IFS="$ac_save_IFS"
12036 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
12038 esac
12040 XGETTEXT="$ac_cv_path_XGETTEXT"
12041 if test "$XGETTEXT" != ":"; then
12042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5
12043 $as_echo "$XGETTEXT" >&6; }
12044 else
12045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12046 $as_echo "no" >&6; }
12049 rm -f messages.po
12052 # Prepare PATH_SEPARATOR.
12053 # The user is always right.
12054 if test "${PATH_SEPARATOR+set}" != set; then
12055 echo "#! /bin/sh" >conf$$.sh
12056 echo "exit 0" >>conf$$.sh
12057 chmod +x conf$$.sh
12058 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
12059 PATH_SEPARATOR=';'
12060 else
12061 PATH_SEPARATOR=:
12063 rm -f conf$$.sh
12066 # Find out how to test for executable files. Don't use a zero-byte file,
12067 # as systems may use methods other than mode bits to determine executability.
12068 cat >conf$$.file <<_ASEOF
12069 #! /bin/sh
12070 exit 0
12071 _ASEOF
12072 chmod +x conf$$.file
12073 if test -x conf$$.file >/dev/null 2>&1; then
12074 ac_executable_p="test -x"
12075 else
12076 ac_executable_p="test -f"
12078 rm -f conf$$.file
12080 # Extract the first word of "msgmerge", so it can be a program name with args.
12081 set dummy msgmerge; ac_word=$2
12082 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12083 $as_echo_n "checking for $ac_word... " >&6; }
12084 if test "${ac_cv_path_MSGMERGE+set}" = set; then :
12085 $as_echo_n "(cached) " >&6
12086 else
12087 case "$MSGMERGE" in
12088 [\\/]* | ?:[\\/]*)
12089 ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
12092 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
12093 for ac_dir in $PATH; do
12094 IFS="$ac_save_IFS"
12095 test -z "$ac_dir" && ac_dir=.
12096 for ac_exec_ext in '' $ac_executable_extensions; do
12097 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
12098 if $ac_dir/$ac_word --update -q /dev/null /dev/null >/dev/null 2>&1; then
12099 ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
12100 break 2
12103 done
12104 done
12105 IFS="$ac_save_IFS"
12106 test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
12108 esac
12110 MSGMERGE="$ac_cv_path_MSGMERGE"
12111 if test "$MSGMERGE" != ":"; then
12112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGMERGE" >&5
12113 $as_echo "$MSGMERGE" >&6; }
12114 else
12115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12116 $as_echo "no" >&6; }
12120 if test "$GMSGFMT" != ":"; then
12121 if $GMSGFMT --statistics /dev/null >/dev/null 2>&1 &&
12122 (if $GMSGFMT --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
12124 else
12125 GMSGFMT=`echo "$GMSGFMT" | sed -e 's,^.*/,,'`
12126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found $GMSGFMT program is not GNU msgfmt; ignore it" >&5
12127 $as_echo "found $GMSGFMT program is not GNU msgfmt; ignore it" >&6; }
12128 GMSGFMT=":"
12132 if test "$XGETTEXT" != ":"; then
12133 if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
12134 (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
12136 else
12137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found xgettext program is not GNU xgettext; ignore it" >&5
12138 $as_echo "found xgettext program is not GNU xgettext; ignore it" >&6; }
12139 XGETTEXT=":"
12141 rm -f messages.po
12144 ac_config_commands="$ac_config_commands default-1"
12150 for ac_prog in 'bison -y' byacc
12152 # Extract the first word of "$ac_prog", so it can be a program name with args.
12153 set dummy $ac_prog; ac_word=$2
12154 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12155 $as_echo_n "checking for $ac_word... " >&6; }
12156 if test "${ac_cv_prog_YACC+set}" = set; then :
12157 $as_echo_n "(cached) " >&6
12158 else
12159 if test -n "$YACC"; then
12160 ac_cv_prog_YACC="$YACC" # Let the user override the test.
12161 else
12162 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12163 for as_dir in $PATH
12165 IFS=$as_save_IFS
12166 test -z "$as_dir" && as_dir=.
12167 for ac_exec_ext in '' $ac_executable_extensions; do
12168 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12169 ac_cv_prog_YACC="$ac_prog"
12170 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12171 break 2
12173 done
12174 done
12175 IFS=$as_save_IFS
12179 YACC=$ac_cv_prog_YACC
12180 if test -n "$YACC"; then
12181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5
12182 $as_echo "$YACC" >&6; }
12183 else
12184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12185 $as_echo "no" >&6; }
12189 test -n "$YACC" && break
12190 done
12191 test -n "$YACC" || YACC="yacc"
12193 for ac_prog in flex lex
12195 # Extract the first word of "$ac_prog", so it can be a program name with args.
12196 set dummy $ac_prog; ac_word=$2
12197 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12198 $as_echo_n "checking for $ac_word... " >&6; }
12199 if test "${ac_cv_prog_LEX+set}" = set; then :
12200 $as_echo_n "(cached) " >&6
12201 else
12202 if test -n "$LEX"; then
12203 ac_cv_prog_LEX="$LEX" # Let the user override the test.
12204 else
12205 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12206 for as_dir in $PATH
12208 IFS=$as_save_IFS
12209 test -z "$as_dir" && as_dir=.
12210 for ac_exec_ext in '' $ac_executable_extensions; do
12211 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12212 ac_cv_prog_LEX="$ac_prog"
12213 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12214 break 2
12216 done
12217 done
12218 IFS=$as_save_IFS
12222 LEX=$ac_cv_prog_LEX
12223 if test -n "$LEX"; then
12224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LEX" >&5
12225 $as_echo "$LEX" >&6; }
12226 else
12227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12228 $as_echo "no" >&6; }
12232 test -n "$LEX" && break
12233 done
12234 test -n "$LEX" || LEX=":"
12236 if test "x$LEX" != "x:"; then
12237 cat >conftest.l <<_ACEOF
12239 a { ECHO; }
12240 b { REJECT; }
12241 c { yymore (); }
12242 d { yyless (1); }
12243 e { yyless (input () != 0); }
12244 f { unput (yytext[0]); }
12245 . { BEGIN INITIAL; }
12247 #ifdef YYTEXT_POINTER
12248 extern char *yytext;
12249 #endif
12251 main (void)
12253 return ! yylex () + ! yywrap ();
12255 _ACEOF
12256 { { ac_try="$LEX conftest.l"
12257 case "(($ac_try" in
12258 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12259 *) ac_try_echo=$ac_try;;
12260 esac
12261 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
12262 $as_echo "$ac_try_echo"; } >&5
12263 (eval "$LEX conftest.l") 2>&5
12264 ac_status=$?
12265 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12266 test $ac_status = 0; }
12267 { $as_echo "$as_me:${as_lineno-$LINENO}: checking lex output file root" >&5
12268 $as_echo_n "checking lex output file root... " >&6; }
12269 if test "${ac_cv_prog_lex_root+set}" = set; then :
12270 $as_echo_n "(cached) " >&6
12271 else
12273 if test -f lex.yy.c; then
12274 ac_cv_prog_lex_root=lex.yy
12275 elif test -f lexyy.c; then
12276 ac_cv_prog_lex_root=lexyy
12277 else
12278 as_fn_error "cannot find output from $LEX; giving up" "$LINENO" 5
12281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_root" >&5
12282 $as_echo "$ac_cv_prog_lex_root" >&6; }
12283 LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
12285 if test -z "${LEXLIB+set}"; then
12286 { $as_echo "$as_me:${as_lineno-$LINENO}: checking lex library" >&5
12287 $as_echo_n "checking lex library... " >&6; }
12288 if test "${ac_cv_lib_lex+set}" = set; then :
12289 $as_echo_n "(cached) " >&6
12290 else
12292 ac_save_LIBS=$LIBS
12293 ac_cv_lib_lex='none needed'
12294 for ac_lib in '' -lfl -ll; do
12295 LIBS="$ac_lib $ac_save_LIBS"
12296 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12297 /* end confdefs.h. */
12298 `cat $LEX_OUTPUT_ROOT.c`
12299 _ACEOF
12300 if ac_fn_c_try_link "$LINENO"; then :
12301 ac_cv_lib_lex=$ac_lib
12303 rm -f core conftest.err conftest.$ac_objext \
12304 conftest$ac_exeext conftest.$ac_ext
12305 test "$ac_cv_lib_lex" != 'none needed' && break
12306 done
12307 LIBS=$ac_save_LIBS
12310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lex" >&5
12311 $as_echo "$ac_cv_lib_lex" >&6; }
12312 test "$ac_cv_lib_lex" != 'none needed' && LEXLIB=$ac_cv_lib_lex
12316 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether yytext is a pointer" >&5
12317 $as_echo_n "checking whether yytext is a pointer... " >&6; }
12318 if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then :
12319 $as_echo_n "(cached) " >&6
12320 else
12321 # POSIX says lex can declare yytext either as a pointer or an array; the
12322 # default is implementation-dependent. Figure out which it is, since
12323 # not all implementations provide the %pointer and %array declarations.
12324 ac_cv_prog_lex_yytext_pointer=no
12325 ac_save_LIBS=$LIBS
12326 LIBS="$LEXLIB $ac_save_LIBS"
12327 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12328 /* end confdefs.h. */
12329 #define YYTEXT_POINTER 1
12330 `cat $LEX_OUTPUT_ROOT.c`
12331 _ACEOF
12332 if ac_fn_c_try_link "$LINENO"; then :
12333 ac_cv_prog_lex_yytext_pointer=yes
12335 rm -f core conftest.err conftest.$ac_objext \
12336 conftest$ac_exeext conftest.$ac_ext
12337 LIBS=$ac_save_LIBS
12340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_yytext_pointer" >&5
12341 $as_echo "$ac_cv_prog_lex_yytext_pointer" >&6; }
12342 if test $ac_cv_prog_lex_yytext_pointer = yes; then
12344 $as_echo "#define YYTEXT_POINTER 1" >>confdefs.h
12347 rm -f conftest.l $LEX_OUTPUT_ROOT.c
12350 if test "$LEX" = :; then
12351 LEX=${am_missing_run}flex
12355 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
12356 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
12357 # Check whether --enable-maintainer-mode was given.
12358 if test "${enable_maintainer_mode+set}" = set; then :
12359 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
12360 else
12361 USE_MAINTAINER_MODE=no
12364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
12365 $as_echo "$USE_MAINTAINER_MODE" >&6; }
12366 if test $USE_MAINTAINER_MODE = yes; then
12367 MAINTAINER_MODE_TRUE=
12368 MAINTAINER_MODE_FALSE='#'
12369 else
12370 MAINTAINER_MODE_TRUE='#'
12371 MAINTAINER_MODE_FALSE=
12374 MAINT=$MAINTAINER_MODE_TRUE
12377 if false; then
12378 GENINSRC_NEVER_TRUE=
12379 GENINSRC_NEVER_FALSE='#'
12380 else
12381 GENINSRC_NEVER_TRUE='#'
12382 GENINSRC_NEVER_FALSE=
12385 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to compare bootstrapped objects" >&5
12386 $as_echo_n "checking how to compare bootstrapped objects... " >&6; }
12387 if test "${gcc_cv_prog_cmp_skip+set}" = set; then :
12388 $as_echo_n "(cached) " >&6
12389 else
12390 echo abfoo >t1
12391 echo cdfoo >t2
12392 gcc_cv_prog_cmp_skip='tail +16c $$f1 > tmp-foo1; tail +16c $$f2 > tmp-foo2; cmp tmp-foo1 tmp-foo2'
12393 if cmp t1 t2 2 2 > /dev/null 2>&1; then
12394 if cmp t1 t2 1 1 > /dev/null 2>&1; then
12396 else
12397 gcc_cv_prog_cmp_skip='cmp $$f1 $$f2 16 16'
12400 if cmp --ignore-initial=2 t1 t2 > /dev/null 2>&1; then
12401 if cmp --ignore-initial=1 t1 t2 > /dev/null 2>&1; then
12403 else
12404 gcc_cv_prog_cmp_skip='cmp --ignore-initial=16 $$f1 $$f2'
12407 rm t1 t2
12410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_cmp_skip" >&5
12411 $as_echo "$gcc_cv_prog_cmp_skip" >&6; }
12412 do_compare="$gcc_cv_prog_cmp_skip"
12416 . ${srcdir}/configure.host
12423 for ac_header in string.h strings.h stdlib.h unistd.h elf-hints.h limits.h sys/param.h
12424 do :
12425 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
12426 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
12427 eval as_val=\$$as_ac_Header
12428 if test "x$as_val" = x""yes; then :
12429 cat >>confdefs.h <<_ACEOF
12430 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
12431 _ACEOF
12435 done
12437 for ac_func in glob mkstemp realpath sbrk waitpid
12438 do :
12439 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
12440 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
12441 eval as_val=\$$as_ac_var
12442 if test "x$as_val" = x""yes; then :
12443 cat >>confdefs.h <<_ACEOF
12444 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
12445 _ACEOF
12448 done
12450 ac_header_dirent=no
12451 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
12452 as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
12453 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
12454 $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
12455 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then :
12456 $as_echo_n "(cached) " >&6
12457 else
12458 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12459 /* end confdefs.h. */
12460 #include <sys/types.h>
12461 #include <$ac_hdr>
12464 main ()
12466 if ((DIR *) 0)
12467 return 0;
12469 return 0;
12471 _ACEOF
12472 if ac_fn_c_try_compile "$LINENO"; then :
12473 eval "$as_ac_Header=yes"
12474 else
12475 eval "$as_ac_Header=no"
12477 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12479 eval ac_res=\$$as_ac_Header
12480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
12481 $as_echo "$ac_res" >&6; }
12482 eval as_val=\$$as_ac_Header
12483 if test "x$as_val" = x""yes; then :
12484 cat >>confdefs.h <<_ACEOF
12485 #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
12486 _ACEOF
12488 ac_header_dirent=$ac_hdr; break
12491 done
12492 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
12493 if test $ac_header_dirent = dirent.h; then
12494 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
12495 $as_echo_n "checking for library containing opendir... " >&6; }
12496 if test "${ac_cv_search_opendir+set}" = set; then :
12497 $as_echo_n "(cached) " >&6
12498 else
12499 ac_func_search_save_LIBS=$LIBS
12500 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12501 /* end confdefs.h. */
12503 /* Override any GCC internal prototype to avoid an error.
12504 Use char because int might match the return type of a GCC
12505 builtin and then its argument prototype would still apply. */
12506 #ifdef __cplusplus
12507 extern "C"
12508 #endif
12509 char opendir ();
12511 main ()
12513 return opendir ();
12515 return 0;
12517 _ACEOF
12518 for ac_lib in '' dir; do
12519 if test -z "$ac_lib"; then
12520 ac_res="none required"
12521 else
12522 ac_res=-l$ac_lib
12523 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12525 if ac_fn_c_try_link "$LINENO"; then :
12526 ac_cv_search_opendir=$ac_res
12528 rm -f core conftest.err conftest.$ac_objext \
12529 conftest$ac_exeext
12530 if test "${ac_cv_search_opendir+set}" = set; then :
12531 break
12533 done
12534 if test "${ac_cv_search_opendir+set}" = set; then :
12536 else
12537 ac_cv_search_opendir=no
12539 rm conftest.$ac_ext
12540 LIBS=$ac_func_search_save_LIBS
12542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
12543 $as_echo "$ac_cv_search_opendir" >&6; }
12544 ac_res=$ac_cv_search_opendir
12545 if test "$ac_res" != no; then :
12546 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12550 else
12551 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
12552 $as_echo_n "checking for library containing opendir... " >&6; }
12553 if test "${ac_cv_search_opendir+set}" = set; then :
12554 $as_echo_n "(cached) " >&6
12555 else
12556 ac_func_search_save_LIBS=$LIBS
12557 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12558 /* end confdefs.h. */
12560 /* Override any GCC internal prototype to avoid an error.
12561 Use char because int might match the return type of a GCC
12562 builtin and then its argument prototype would still apply. */
12563 #ifdef __cplusplus
12564 extern "C"
12565 #endif
12566 char opendir ();
12568 main ()
12570 return opendir ();
12572 return 0;
12574 _ACEOF
12575 for ac_lib in '' x; do
12576 if test -z "$ac_lib"; then
12577 ac_res="none required"
12578 else
12579 ac_res=-l$ac_lib
12580 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12582 if ac_fn_c_try_link "$LINENO"; then :
12583 ac_cv_search_opendir=$ac_res
12585 rm -f core conftest.err conftest.$ac_objext \
12586 conftest$ac_exeext
12587 if test "${ac_cv_search_opendir+set}" = set; then :
12588 break
12590 done
12591 if test "${ac_cv_search_opendir+set}" = set; then :
12593 else
12594 ac_cv_search_opendir=no
12596 rm conftest.$ac_ext
12597 LIBS=$ac_func_search_save_LIBS
12599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
12600 $as_echo "$ac_cv_search_opendir" >&6; }
12601 ac_res=$ac_cv_search_opendir
12602 if test "$ac_res" != no; then :
12603 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12610 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a known getopt prototype in unistd.h" >&5
12611 $as_echo_n "checking for a known getopt prototype in unistd.h... " >&6; }
12612 if test "${ld_cv_decl_getopt_unistd_h+set}" = set; then :
12613 $as_echo_n "(cached) " >&6
12614 else
12615 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12616 /* end confdefs.h. */
12617 #include <unistd.h>
12619 main ()
12621 extern int getopt (int, char *const*, const char *);
12623 return 0;
12625 _ACEOF
12626 if ac_fn_c_try_compile "$LINENO"; then :
12627 ld_cv_decl_getopt_unistd_h=yes
12628 else
12629 ld_cv_decl_getopt_unistd_h=no
12631 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_cv_decl_getopt_unistd_h" >&5
12635 $as_echo "$ld_cv_decl_getopt_unistd_h" >&6; }
12636 if test $ld_cv_decl_getopt_unistd_h = yes; then
12638 $as_echo "#define HAVE_DECL_GETOPT 1" >>confdefs.h
12643 case "${host}" in
12644 *-*-msdos* | *-*-go32* | *-*-mingw32* | *-*-cygwin* | *-*-windows*)
12646 $as_echo "#define USE_BINARY_FOPEN 1" >>confdefs.h
12648 esac
12650 ac_fn_c_check_decl "$LINENO" "strstr" "ac_cv_have_decl_strstr" "$ac_includes_default"
12651 if test "x$ac_cv_have_decl_strstr" = x""yes; then :
12652 ac_have_decl=1
12653 else
12654 ac_have_decl=0
12657 cat >>confdefs.h <<_ACEOF
12658 #define HAVE_DECL_STRSTR $ac_have_decl
12659 _ACEOF
12660 ac_fn_c_check_decl "$LINENO" "free" "ac_cv_have_decl_free" "$ac_includes_default"
12661 if test "x$ac_cv_have_decl_free" = x""yes; then :
12662 ac_have_decl=1
12663 else
12664 ac_have_decl=0
12667 cat >>confdefs.h <<_ACEOF
12668 #define HAVE_DECL_FREE $ac_have_decl
12669 _ACEOF
12670 ac_fn_c_check_decl "$LINENO" "sbrk" "ac_cv_have_decl_sbrk" "$ac_includes_default"
12671 if test "x$ac_cv_have_decl_sbrk" = x""yes; then :
12672 ac_have_decl=1
12673 else
12674 ac_have_decl=0
12677 cat >>confdefs.h <<_ACEOF
12678 #define HAVE_DECL_SBRK $ac_have_decl
12679 _ACEOF
12680 ac_fn_c_check_decl "$LINENO" "getenv" "ac_cv_have_decl_getenv" "$ac_includes_default"
12681 if test "x$ac_cv_have_decl_getenv" = x""yes; then :
12682 ac_have_decl=1
12683 else
12684 ac_have_decl=0
12687 cat >>confdefs.h <<_ACEOF
12688 #define HAVE_DECL_GETENV $ac_have_decl
12689 _ACEOF
12690 ac_fn_c_check_decl "$LINENO" "environ" "ac_cv_have_decl_environ" "$ac_includes_default"
12691 if test "x$ac_cv_have_decl_environ" = x""yes; then :
12692 ac_have_decl=1
12693 else
12694 ac_have_decl=0
12697 cat >>confdefs.h <<_ACEOF
12698 #define HAVE_DECL_ENVIRON $ac_have_decl
12699 _ACEOF
12702 # Link in zlib if we can. This is needed only for the bootstrap tests
12703 # right now, since those tests use libbfd, which depends on zlib.
12704 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing zlibVersion" >&5
12705 $as_echo_n "checking for library containing zlibVersion... " >&6; }
12706 if test "${ac_cv_search_zlibVersion+set}" = set; then :
12707 $as_echo_n "(cached) " >&6
12708 else
12709 ac_func_search_save_LIBS=$LIBS
12710 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12711 /* end confdefs.h. */
12713 /* Override any GCC internal prototype to avoid an error.
12714 Use char because int might match the return type of a GCC
12715 builtin and then its argument prototype would still apply. */
12716 #ifdef __cplusplus
12717 extern "C"
12718 #endif
12719 char zlibVersion ();
12721 main ()
12723 return zlibVersion ();
12725 return 0;
12727 _ACEOF
12728 for ac_lib in '' z; do
12729 if test -z "$ac_lib"; then
12730 ac_res="none required"
12731 else
12732 ac_res=-l$ac_lib
12733 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12735 if ac_fn_c_try_link "$LINENO"; then :
12736 ac_cv_search_zlibVersion=$ac_res
12738 rm -f core conftest.err conftest.$ac_objext \
12739 conftest$ac_exeext
12740 if test "${ac_cv_search_zlibVersion+set}" = set; then :
12741 break
12743 done
12744 if test "${ac_cv_search_zlibVersion+set}" = set; then :
12746 else
12747 ac_cv_search_zlibVersion=no
12749 rm conftest.$ac_ext
12750 LIBS=$ac_func_search_save_LIBS
12752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_zlibVersion" >&5
12753 $as_echo "$ac_cv_search_zlibVersion" >&6; }
12754 ac_res=$ac_cv_search_zlibVersion
12755 if test "$ac_res" != no; then :
12756 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12757 for ac_header in zlib.h
12758 do :
12759 ac_fn_c_check_header_mongrel "$LINENO" "zlib.h" "ac_cv_header_zlib_h" "$ac_includes_default"
12760 if test "x$ac_cv_header_zlib_h" = x""yes; then :
12761 cat >>confdefs.h <<_ACEOF
12762 #define HAVE_ZLIB_H 1
12763 _ACEOF
12767 done
12772 # When converting linker scripts into strings for use in emulation
12773 # files, use astring.sed if the compiler supports ANSI string
12774 # concatenation, or ostring.sed otherwise. This is to support the
12775 # broken Microsoft MSVC compiler, which limits the length of string
12776 # constants, while still supporting pre-ANSI compilers which do not
12777 # support string concatenation.
12778 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ANSI C string concatenation works" >&5
12779 $as_echo_n "checking whether ANSI C string concatenation works... " >&6; }
12780 if test "${ld_cv_string_concatenation+set}" = set; then :
12781 $as_echo_n "(cached) " >&6
12782 else
12783 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12784 /* end confdefs.h. */
12787 main ()
12789 char *a = "a" "a";
12791 return 0;
12793 _ACEOF
12794 if ac_fn_c_try_compile "$LINENO"; then :
12795 ld_cv_string_concatenation=yes
12796 else
12797 ld_cv_string_concatenation=no
12799 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_cv_string_concatenation" >&5
12803 $as_echo "$ld_cv_string_concatenation" >&6; }
12804 if test "$ld_cv_string_concatenation" = "yes"; then
12805 STRINGIFY=astring.sed
12806 else
12807 STRINGIFY=ostring.sed
12811 # target-specific stuff:
12813 all_targets=
12814 EMUL=
12815 all_emuls=
12816 all_emul_extras=
12817 all_libpath=
12819 rm -f tdirs
12821 for targ_alias in `echo $target_alias $enable_targets | sed 's/,/ /g'`
12823 if test "$targ_alias" = "all"; then
12824 all_targets=true
12825 else
12826 # Canonicalize the secondary target names.
12827 result=`$ac_config_sub $targ_alias 2>/dev/null`
12828 if test -n "$result"; then
12829 targ=$result
12830 else
12831 targ=$targ_alias
12834 . ${srcdir}/configure.tgt
12836 if test "$targ" = "$target"; then
12837 EMUL=$targ_emul
12840 if test x${want64} = xfalse; then
12841 . ${srcdir}/../bfd/config.bfd
12844 if test x${want64} = xtrue; then
12845 targ_extra_emuls="$targ_extra_emuls $targ64_extra_emuls"
12846 targ_extra_libpath="$targ_extra_libpath $targ64_extra_libpath"
12849 for i in $targ_emul $targ_extra_emuls $targ_extra_libpath; do
12850 case " $all_emuls " in
12851 *" e${i}.o "*) ;;
12853 all_emuls="$all_emuls e${i}.o"
12854 eval result=\$tdir_$i
12855 test -z "$result" && result=$targ_alias
12856 echo tdir_$i=$result >> tdirs
12858 esac
12859 done
12861 for i in $targ_emul $targ_extra_libpath; do
12862 case " $all_libpath " in
12863 *" ${i} "*) ;;
12865 if test -z "$all_libpath"; then
12866 all_libpath=${i}
12867 else
12868 all_libpath="$all_libpath ${i}"
12871 esac
12872 done
12874 for i in $targ_extra_ofiles; do
12875 case " $all_emul_extras " in
12876 *" ${i} "*) ;;
12878 all_emul_extras="$all_emul_extras ${i}"
12880 esac
12881 done
12883 done
12887 TDIRS=tdirs
12890 if test x${all_targets} = xtrue; then
12891 if test x${want64} = xfalse; then
12892 # The cast to long int works around a bug in the HP C Compiler
12893 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12894 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12895 # This bug is HP SR number 8606223364.
12896 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
12897 $as_echo_n "checking size of long... " >&6; }
12898 if test "${ac_cv_sizeof_long+set}" = set; then :
12899 $as_echo_n "(cached) " >&6
12900 else
12901 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then :
12903 else
12904 if test "$ac_cv_type_long" = yes; then
12905 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12906 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12907 { as_fn_set_status 77
12908 as_fn_error "cannot compute sizeof (long)
12909 See \`config.log' for more details." "$LINENO" 5; }; }
12910 else
12911 ac_cv_sizeof_long=0
12916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
12917 $as_echo "$ac_cv_sizeof_long" >&6; }
12921 cat >>confdefs.h <<_ACEOF
12922 #define SIZEOF_LONG $ac_cv_sizeof_long
12923 _ACEOF
12926 if test "x${ac_cv_sizeof_long}" = "x8"; then
12927 want64=true
12930 if test x${want64} = xtrue; then
12931 EMULATION_OFILES='$(ALL_EMULATIONS) $(ALL_64_EMULATIONS)'
12932 else
12933 EMULATION_OFILES='$(ALL_EMULATIONS)'
12935 EMUL_EXTRA_OFILES='$(ALL_EMUL_EXTRA_OFILES)'
12936 else
12937 EMULATION_OFILES=$all_emuls
12938 EMUL_EXTRA_OFILES=$all_emul_extras
12944 EMULATION_LIBPATH=$all_libpath
12947 if test x${enable_static} = xno; then
12948 TESTBFDLIB="--rpath ../bfd/.libs ../bfd/.libs/libbfd.so"
12949 else
12950 TESTBFDLIB="../bfd/.libs/libbfd.a"
12954 target_vendor=${target_vendor=$host_vendor}
12955 case "$target_vendor" in
12956 hp) EXTRA_SHLIB_EXTENSION=".sl" ;;
12957 *) EXTRA_SHLIB_EXTENSION= ;;
12958 esac
12960 case "$target_os" in
12961 lynxos) EXTRA_SHLIB_EXTENSION=".a" ;;
12962 esac
12964 if test x${EXTRA_SHLIB_EXTENSION} != x ; then
12966 cat >>confdefs.h <<_ACEOF
12967 #define EXTRA_SHLIB_EXTENSION "$EXTRA_SHLIB_EXTENSION"
12968 _ACEOF
12977 ac_config_files="$ac_config_files Makefile po/Makefile.in:po/Make-in"
12979 cat >confcache <<\_ACEOF
12980 # This file is a shell script that caches the results of configure
12981 # tests run on this system so they can be shared between configure
12982 # scripts and configure runs, see configure's option --config-cache.
12983 # It is not useful on other systems. If it contains results you don't
12984 # want to keep, you may remove or edit it.
12986 # config.status only pays attention to the cache file if you give it
12987 # the --recheck option to rerun configure.
12989 # `ac_cv_env_foo' variables (set or unset) will be overridden when
12990 # loading this file, other *unset* `ac_cv_foo' will be assigned the
12991 # following values.
12993 _ACEOF
12995 # The following way of writing the cache mishandles newlines in values,
12996 # but we know of no workaround that is simple, portable, and efficient.
12997 # So, we kill variables containing newlines.
12998 # Ultrix sh set writes to stderr and can't be redirected directly,
12999 # and sets the high bit in the cache file unless we assign to the vars.
13001 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
13002 eval ac_val=\$$ac_var
13003 case $ac_val in #(
13004 *${as_nl}*)
13005 case $ac_var in #(
13006 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
13007 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
13008 esac
13009 case $ac_var in #(
13010 _ | IFS | as_nl) ;; #(
13011 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
13012 *) { eval $ac_var=; unset $ac_var;} ;;
13013 esac ;;
13014 esac
13015 done
13017 (set) 2>&1 |
13018 case $as_nl`(ac_space=' '; set) 2>&1` in #(
13019 *${as_nl}ac_space=\ *)
13020 # `set' does not quote correctly, so add quotes: double-quote
13021 # substitution turns \\\\ into \\, and sed turns \\ into \.
13022 sed -n \
13023 "s/'/'\\\\''/g;
13024 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
13025 ;; #(
13027 # `set' quotes correctly as required by POSIX, so do not add quotes.
13028 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
13030 esac |
13031 sort
13033 sed '
13034 /^ac_cv_env_/b end
13035 t clear
13036 :clear
13037 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
13038 t end
13039 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
13040 :end' >>confcache
13041 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
13042 if test -w "$cache_file"; then
13043 test "x$cache_file" != "x/dev/null" &&
13044 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
13045 $as_echo "$as_me: updating cache $cache_file" >&6;}
13046 cat confcache >$cache_file
13047 else
13048 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
13049 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
13052 rm -f confcache
13054 test "x$prefix" = xNONE && prefix=$ac_default_prefix
13055 # Let make expand exec_prefix.
13056 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
13058 DEFS=-DHAVE_CONFIG_H
13060 ac_libobjs=
13061 ac_ltlibobjs=
13062 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
13063 # 1. Remove the extension, and $U if already installed.
13064 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
13065 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
13066 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
13067 # will be set to the directory where LIBOBJS objects are built.
13068 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
13069 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
13070 done
13071 LIBOBJS=$ac_libobjs
13073 LTLIBOBJS=$ac_ltlibobjs
13076 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
13077 as_fn_error "conditional \"AMDEP\" was never defined.
13078 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13080 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
13081 as_fn_error "conditional \"am__fastdepCC\" was never defined.
13082 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13084 if test -n "$EXEEXT"; then
13085 am__EXEEXT_TRUE=
13086 am__EXEEXT_FALSE='#'
13087 else
13088 am__EXEEXT_TRUE='#'
13089 am__EXEEXT_FALSE=
13092 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
13093 as_fn_error "conditional \"MAINTAINER_MODE\" was never defined.
13094 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13096 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
13097 as_fn_error "conditional \"MAINTAINER_MODE\" was never defined.
13098 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13100 if test -z "${GENINSRC_NEVER_TRUE}" && test -z "${GENINSRC_NEVER_FALSE}"; then
13101 as_fn_error "conditional \"GENINSRC_NEVER\" was never defined.
13102 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13105 : ${CONFIG_STATUS=./config.status}
13106 ac_write_fail=0
13107 ac_clean_files_save=$ac_clean_files
13108 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
13109 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
13110 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
13111 as_write_fail=0
13112 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
13113 #! $SHELL
13114 # Generated by $as_me.
13115 # Run this file to recreate the current configuration.
13116 # Compiler output produced by configure, useful for debugging
13117 # configure, is in config.log if it exists.
13119 debug=false
13120 ac_cs_recheck=false
13121 ac_cs_silent=false
13123 SHELL=\${CONFIG_SHELL-$SHELL}
13124 export SHELL
13125 _ASEOF
13126 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
13127 ## -------------------- ##
13128 ## M4sh Initialization. ##
13129 ## -------------------- ##
13131 # Be more Bourne compatible
13132 DUALCASE=1; export DUALCASE # for MKS sh
13133 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
13134 emulate sh
13135 NULLCMD=:
13136 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
13137 # is contrary to our usage. Disable this feature.
13138 alias -g '${1+"$@"}'='"$@"'
13139 setopt NO_GLOB_SUBST
13140 else
13141 case `(set -o) 2>/dev/null` in #(
13142 *posix*) :
13143 set -o posix ;; #(
13144 *) :
13146 esac
13150 as_nl='
13152 export as_nl
13153 # Printing a long string crashes Solaris 7 /usr/bin/printf.
13154 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
13155 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
13156 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
13157 # Prefer a ksh shell builtin over an external printf program on Solaris,
13158 # but without wasting forks for bash or zsh.
13159 if test -z "$BASH_VERSION$ZSH_VERSION" \
13160 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
13161 as_echo='print -r --'
13162 as_echo_n='print -rn --'
13163 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
13164 as_echo='printf %s\n'
13165 as_echo_n='printf %s'
13166 else
13167 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
13168 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
13169 as_echo_n='/usr/ucb/echo -n'
13170 else
13171 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
13172 as_echo_n_body='eval
13173 arg=$1;
13174 case $arg in #(
13175 *"$as_nl"*)
13176 expr "X$arg" : "X\\(.*\\)$as_nl";
13177 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
13178 esac;
13179 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
13181 export as_echo_n_body
13182 as_echo_n='sh -c $as_echo_n_body as_echo'
13184 export as_echo_body
13185 as_echo='sh -c $as_echo_body as_echo'
13188 # The user is always right.
13189 if test "${PATH_SEPARATOR+set}" != set; then
13190 PATH_SEPARATOR=:
13191 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
13192 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
13193 PATH_SEPARATOR=';'
13198 # IFS
13199 # We need space, tab and new line, in precisely that order. Quoting is
13200 # there to prevent editors from complaining about space-tab.
13201 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
13202 # splitting by setting IFS to empty value.)
13203 IFS=" "" $as_nl"
13205 # Find who we are. Look in the path if we contain no directory separator.
13206 case $0 in #((
13207 *[\\/]* ) as_myself=$0 ;;
13208 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13209 for as_dir in $PATH
13211 IFS=$as_save_IFS
13212 test -z "$as_dir" && as_dir=.
13213 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
13214 done
13215 IFS=$as_save_IFS
13218 esac
13219 # We did not find ourselves, most probably we were run as `sh COMMAND'
13220 # in which case we are not to be found in the path.
13221 if test "x$as_myself" = x; then
13222 as_myself=$0
13224 if test ! -f "$as_myself"; then
13225 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
13226 exit 1
13229 # Unset variables that we do not need and which cause bugs (e.g. in
13230 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
13231 # suppresses any "Segmentation fault" message there. '((' could
13232 # trigger a bug in pdksh 5.2.14.
13233 for as_var in BASH_ENV ENV MAIL MAILPATH
13234 do eval test x\${$as_var+set} = xset \
13235 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
13236 done
13237 PS1='$ '
13238 PS2='> '
13239 PS4='+ '
13241 # NLS nuisances.
13242 LC_ALL=C
13243 export LC_ALL
13244 LANGUAGE=C
13245 export LANGUAGE
13247 # CDPATH.
13248 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
13251 # as_fn_error ERROR [LINENO LOG_FD]
13252 # ---------------------------------
13253 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
13254 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
13255 # script with status $?, using 1 if that was 0.
13256 as_fn_error ()
13258 as_status=$?; test $as_status -eq 0 && as_status=1
13259 if test "$3"; then
13260 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
13261 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
13263 $as_echo "$as_me: error: $1" >&2
13264 as_fn_exit $as_status
13265 } # as_fn_error
13268 # as_fn_set_status STATUS
13269 # -----------------------
13270 # Set $? to STATUS, without forking.
13271 as_fn_set_status ()
13273 return $1
13274 } # as_fn_set_status
13276 # as_fn_exit STATUS
13277 # -----------------
13278 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
13279 as_fn_exit ()
13281 set +e
13282 as_fn_set_status $1
13283 exit $1
13284 } # as_fn_exit
13286 # as_fn_unset VAR
13287 # ---------------
13288 # Portably unset VAR.
13289 as_fn_unset ()
13291 { eval $1=; unset $1;}
13293 as_unset=as_fn_unset
13294 # as_fn_append VAR VALUE
13295 # ----------------------
13296 # Append the text in VALUE to the end of the definition contained in VAR. Take
13297 # advantage of any shell optimizations that allow amortized linear growth over
13298 # repeated appends, instead of the typical quadratic growth present in naive
13299 # implementations.
13300 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
13301 eval 'as_fn_append ()
13303 eval $1+=\$2
13305 else
13306 as_fn_append ()
13308 eval $1=\$$1\$2
13310 fi # as_fn_append
13312 # as_fn_arith ARG...
13313 # ------------------
13314 # Perform arithmetic evaluation on the ARGs, and store the result in the
13315 # global $as_val. Take advantage of shells that can avoid forks. The arguments
13316 # must be portable across $(()) and expr.
13317 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
13318 eval 'as_fn_arith ()
13320 as_val=$(( $* ))
13322 else
13323 as_fn_arith ()
13325 as_val=`expr "$@" || test $? -eq 1`
13327 fi # as_fn_arith
13330 if expr a : '\(a\)' >/dev/null 2>&1 &&
13331 test "X`expr 00001 : '.*\(...\)'`" = X001; then
13332 as_expr=expr
13333 else
13334 as_expr=false
13337 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
13338 as_basename=basename
13339 else
13340 as_basename=false
13343 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
13344 as_dirname=dirname
13345 else
13346 as_dirname=false
13349 as_me=`$as_basename -- "$0" ||
13350 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
13351 X"$0" : 'X\(//\)$' \| \
13352 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
13353 $as_echo X/"$0" |
13354 sed '/^.*\/\([^/][^/]*\)\/*$/{
13355 s//\1/
13358 /^X\/\(\/\/\)$/{
13359 s//\1/
13362 /^X\/\(\/\).*/{
13363 s//\1/
13366 s/.*/./; q'`
13368 # Avoid depending upon Character Ranges.
13369 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
13370 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
13371 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
13372 as_cr_digits='0123456789'
13373 as_cr_alnum=$as_cr_Letters$as_cr_digits
13375 ECHO_C= ECHO_N= ECHO_T=
13376 case `echo -n x` in #(((((
13377 -n*)
13378 case `echo 'xy\c'` in
13379 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
13380 xy) ECHO_C='\c';;
13381 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
13382 ECHO_T=' ';;
13383 esac;;
13385 ECHO_N='-n';;
13386 esac
13388 rm -f conf$$ conf$$.exe conf$$.file
13389 if test -d conf$$.dir; then
13390 rm -f conf$$.dir/conf$$.file
13391 else
13392 rm -f conf$$.dir
13393 mkdir conf$$.dir 2>/dev/null
13395 if (echo >conf$$.file) 2>/dev/null; then
13396 if ln -s conf$$.file conf$$ 2>/dev/null; then
13397 as_ln_s='ln -s'
13398 # ... but there are two gotchas:
13399 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
13400 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
13401 # In both cases, we have to default to `cp -p'.
13402 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
13403 as_ln_s='cp -p'
13404 elif ln conf$$.file conf$$ 2>/dev/null; then
13405 as_ln_s=ln
13406 else
13407 as_ln_s='cp -p'
13409 else
13410 as_ln_s='cp -p'
13412 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
13413 rmdir conf$$.dir 2>/dev/null
13416 # as_fn_mkdir_p
13417 # -------------
13418 # Create "$as_dir" as a directory, including parents if necessary.
13419 as_fn_mkdir_p ()
13422 case $as_dir in #(
13423 -*) as_dir=./$as_dir;;
13424 esac
13425 test -d "$as_dir" || eval $as_mkdir_p || {
13426 as_dirs=
13427 while :; do
13428 case $as_dir in #(
13429 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
13430 *) as_qdir=$as_dir;;
13431 esac
13432 as_dirs="'$as_qdir' $as_dirs"
13433 as_dir=`$as_dirname -- "$as_dir" ||
13434 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13435 X"$as_dir" : 'X\(//\)[^/]' \| \
13436 X"$as_dir" : 'X\(//\)$' \| \
13437 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
13438 $as_echo X"$as_dir" |
13439 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13440 s//\1/
13443 /^X\(\/\/\)[^/].*/{
13444 s//\1/
13447 /^X\(\/\/\)$/{
13448 s//\1/
13451 /^X\(\/\).*/{
13452 s//\1/
13455 s/.*/./; q'`
13456 test -d "$as_dir" && break
13457 done
13458 test -z "$as_dirs" || eval "mkdir $as_dirs"
13459 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
13462 } # as_fn_mkdir_p
13463 if mkdir -p . 2>/dev/null; then
13464 as_mkdir_p='mkdir -p "$as_dir"'
13465 else
13466 test -d ./-p && rmdir ./-p
13467 as_mkdir_p=false
13470 if test -x / >/dev/null 2>&1; then
13471 as_test_x='test -x'
13472 else
13473 if ls -dL / >/dev/null 2>&1; then
13474 as_ls_L_option=L
13475 else
13476 as_ls_L_option=
13478 as_test_x='
13479 eval sh -c '\''
13480 if test -d "$1"; then
13481 test -d "$1/.";
13482 else
13483 case $1 in #(
13484 -*)set "./$1";;
13485 esac;
13486 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
13487 ???[sx]*):;;*)false;;esac;fi
13488 '\'' sh
13491 as_executable_p=$as_test_x
13493 # Sed expression to map a string onto a valid CPP name.
13494 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
13496 # Sed expression to map a string onto a valid variable name.
13497 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
13500 exec 6>&1
13501 ## ----------------------------------- ##
13502 ## Main body of $CONFIG_STATUS script. ##
13503 ## ----------------------------------- ##
13504 _ASEOF
13505 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
13507 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13508 # Save the log message, to keep $0 and so on meaningful, and to
13509 # report actual input values of CONFIG_FILES etc. instead of their
13510 # values after options handling.
13511 ac_log="
13512 This file was extended by $as_me, which was
13513 generated by GNU Autoconf 2.64. Invocation command line was
13515 CONFIG_FILES = $CONFIG_FILES
13516 CONFIG_HEADERS = $CONFIG_HEADERS
13517 CONFIG_LINKS = $CONFIG_LINKS
13518 CONFIG_COMMANDS = $CONFIG_COMMANDS
13519 $ $0 $@
13521 on `(hostname || uname -n) 2>/dev/null | sed 1q`
13524 _ACEOF
13526 case $ac_config_files in *"
13527 "*) set x $ac_config_files; shift; ac_config_files=$*;;
13528 esac
13530 case $ac_config_headers in *"
13531 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
13532 esac
13535 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13536 # Files that config.status was made for.
13537 config_files="$ac_config_files"
13538 config_headers="$ac_config_headers"
13539 config_commands="$ac_config_commands"
13541 _ACEOF
13543 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13544 ac_cs_usage="\
13545 \`$as_me' instantiates files and other configuration actions
13546 from templates according to the current configuration. Unless the files
13547 and actions are specified as TAGs, all are instantiated by default.
13549 Usage: $0 [OPTION]... [TAG]...
13551 -h, --help print this help, then exit
13552 -V, --version print version number and configuration settings, then exit
13553 -q, --quiet, --silent
13554 do not print progress messages
13555 -d, --debug don't remove temporary files
13556 --recheck update $as_me by reconfiguring in the same conditions
13557 --file=FILE[:TEMPLATE]
13558 instantiate the configuration file FILE
13559 --header=FILE[:TEMPLATE]
13560 instantiate the configuration header FILE
13562 Configuration files:
13563 $config_files
13565 Configuration headers:
13566 $config_headers
13568 Configuration commands:
13569 $config_commands
13571 Report bugs to the package provider."
13573 _ACEOF
13574 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13575 ac_cs_version="\\
13576 config.status
13577 configured by $0, generated by GNU Autoconf 2.64,
13578 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
13580 Copyright (C) 2009 Free Software Foundation, Inc.
13581 This config.status script is free software; the Free Software Foundation
13582 gives unlimited permission to copy, distribute and modify it."
13584 ac_pwd='$ac_pwd'
13585 srcdir='$srcdir'
13586 INSTALL='$INSTALL'
13587 MKDIR_P='$MKDIR_P'
13588 AWK='$AWK'
13589 test -n "\$AWK" || AWK=awk
13590 _ACEOF
13592 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13593 # The default lists apply if the user does not specify any file.
13594 ac_need_defaults=:
13595 while test $# != 0
13597 case $1 in
13598 --*=*)
13599 ac_option=`expr "X$1" : 'X\([^=]*\)='`
13600 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
13601 ac_shift=:
13604 ac_option=$1
13605 ac_optarg=$2
13606 ac_shift=shift
13608 esac
13610 case $ac_option in
13611 # Handling of the options.
13612 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
13613 ac_cs_recheck=: ;;
13614 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
13615 $as_echo "$ac_cs_version"; exit ;;
13616 --debug | --debu | --deb | --de | --d | -d )
13617 debug=: ;;
13618 --file | --fil | --fi | --f )
13619 $ac_shift
13620 case $ac_optarg in
13621 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
13622 esac
13623 as_fn_append CONFIG_FILES " '$ac_optarg'"
13624 ac_need_defaults=false;;
13625 --header | --heade | --head | --hea )
13626 $ac_shift
13627 case $ac_optarg in
13628 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
13629 esac
13630 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
13631 ac_need_defaults=false;;
13632 --he | --h)
13633 # Conflict between --help and --header
13634 as_fn_error "ambiguous option: \`$1'
13635 Try \`$0 --help' for more information.";;
13636 --help | --hel | -h )
13637 $as_echo "$ac_cs_usage"; exit ;;
13638 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
13639 | -silent | --silent | --silen | --sile | --sil | --si | --s)
13640 ac_cs_silent=: ;;
13642 # This is an error.
13643 -*) as_fn_error "unrecognized option: \`$1'
13644 Try \`$0 --help' for more information." ;;
13646 *) as_fn_append ac_config_targets " $1"
13647 ac_need_defaults=false ;;
13649 esac
13650 shift
13651 done
13653 ac_configure_extra_args=
13655 if $ac_cs_silent; then
13656 exec 6>/dev/null
13657 ac_configure_extra_args="$ac_configure_extra_args --silent"
13660 _ACEOF
13661 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13662 if \$ac_cs_recheck; then
13663 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
13664 shift
13665 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
13666 CONFIG_SHELL='$SHELL'
13667 export CONFIG_SHELL
13668 exec "\$@"
13671 _ACEOF
13672 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13673 exec 5>>config.log
13675 echo
13676 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
13677 ## Running $as_me. ##
13678 _ASBOX
13679 $as_echo "$ac_log"
13680 } >&5
13682 _ACEOF
13683 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13685 # INIT-COMMANDS
13687 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
13690 # The HP-UX ksh and POSIX shell print the target directory to stdout
13691 # if CDPATH is set.
13692 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
13694 sed_quote_subst='$sed_quote_subst'
13695 double_quote_subst='$double_quote_subst'
13696 delay_variable_subst='$delay_variable_subst'
13697 macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
13698 macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
13699 enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
13700 enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
13701 pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
13702 enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
13703 host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
13704 host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`'
13705 host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`'
13706 build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`'
13707 build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`'
13708 build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`'
13709 SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
13710 Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
13711 GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
13712 EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
13713 FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`'
13714 LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
13715 NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
13716 LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
13717 max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
13718 ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
13719 exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
13720 lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`'
13721 lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`'
13722 lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`'
13723 reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
13724 reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13725 OBJDUMP='`$ECHO "X$OBJDUMP" | $Xsed -e "$delay_single_quote_subst"`'
13726 deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
13727 file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
13728 AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
13729 AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
13730 STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
13731 RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
13732 old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13733 old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13734 old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13735 CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
13736 CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`'
13737 compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
13738 GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
13739 lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
13740 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
13741 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"`'
13742 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"`'
13743 objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
13744 SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
13745 ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`'
13746 MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
13747 lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
13748 lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
13749 lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
13750 lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
13751 lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
13752 need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
13753 DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`'
13754 NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`'
13755 LIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`'
13756 OTOOL='`$ECHO "X$OTOOL" | $Xsed -e "$delay_single_quote_subst"`'
13757 OTOOL64='`$ECHO "X$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`'
13758 libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
13759 shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13760 extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13761 archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
13762 enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
13763 export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
13764 whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
13765 compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`'
13766 old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13767 old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13768 archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13769 archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13770 module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13771 module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13772 with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`'
13773 allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
13774 no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
13775 hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
13776 hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
13777 hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
13778 hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
13779 hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`'
13780 hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
13781 hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
13782 hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
13783 inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
13784 link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
13785 fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
13786 always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
13787 export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13788 exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
13789 include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
13790 prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13791 file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`'
13792 variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
13793 need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
13794 need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
13795 version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
13796 runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
13797 shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
13798 shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
13799 libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
13800 library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
13801 soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
13802 postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13803 postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13804 finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13805 finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
13806 hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
13807 sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
13808 sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
13809 hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
13810 enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
13811 enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
13812 enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
13813 old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
13814 striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
13816 LTCC='$LTCC'
13817 LTCFLAGS='$LTCFLAGS'
13818 compiler='$compiler_DEFAULT'
13820 # Quote evaled strings.
13821 for var in SED \
13822 GREP \
13823 EGREP \
13824 FGREP \
13825 LD \
13826 NM \
13827 LN_S \
13828 lt_SP2NL \
13829 lt_NL2SP \
13830 reload_flag \
13831 OBJDUMP \
13832 deplibs_check_method \
13833 file_magic_cmd \
13834 AR \
13835 AR_FLAGS \
13836 STRIP \
13837 RANLIB \
13838 CC \
13839 CFLAGS \
13840 compiler \
13841 lt_cv_sys_global_symbol_pipe \
13842 lt_cv_sys_global_symbol_to_cdecl \
13843 lt_cv_sys_global_symbol_to_c_name_address \
13844 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
13845 SHELL \
13846 ECHO \
13847 lt_prog_compiler_no_builtin_flag \
13848 lt_prog_compiler_wl \
13849 lt_prog_compiler_pic \
13850 lt_prog_compiler_static \
13851 lt_cv_prog_compiler_c_o \
13852 need_locks \
13853 DSYMUTIL \
13854 NMEDIT \
13855 LIPO \
13856 OTOOL \
13857 OTOOL64 \
13858 shrext_cmds \
13859 export_dynamic_flag_spec \
13860 whole_archive_flag_spec \
13861 compiler_needs_object \
13862 with_gnu_ld \
13863 allow_undefined_flag \
13864 no_undefined_flag \
13865 hardcode_libdir_flag_spec \
13866 hardcode_libdir_flag_spec_ld \
13867 hardcode_libdir_separator \
13868 fix_srcfile_path \
13869 exclude_expsyms \
13870 include_expsyms \
13871 file_list_spec \
13872 variables_saved_for_relink \
13873 libname_spec \
13874 library_names_spec \
13875 soname_spec \
13876 finish_eval \
13877 old_striplib \
13878 striplib; do
13879 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
13880 *[\\\\\\\`\\"\\\$]*)
13881 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
13884 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
13886 esac
13887 done
13889 # Double-quote double-evaled strings.
13890 for var in reload_cmds \
13891 old_postinstall_cmds \
13892 old_postuninstall_cmds \
13893 old_archive_cmds \
13894 extract_expsyms_cmds \
13895 old_archive_from_new_cmds \
13896 old_archive_from_expsyms_cmds \
13897 archive_cmds \
13898 archive_expsym_cmds \
13899 module_cmds \
13900 module_expsym_cmds \
13901 export_symbols_cmds \
13902 prelink_cmds \
13903 postinstall_cmds \
13904 postuninstall_cmds \
13905 finish_cmds \
13906 sys_lib_search_path_spec \
13907 sys_lib_dlsearch_path_spec; do
13908 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
13909 *[\\\\\\\`\\"\\\$]*)
13910 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
13913 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
13915 esac
13916 done
13918 # Fix-up fallback echo if it was mangled by the above quoting rules.
13919 case \$lt_ECHO in
13920 *'\\\$0 --fallback-echo"') lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
13922 esac
13924 ac_aux_dir='$ac_aux_dir'
13925 xsi_shell='$xsi_shell'
13926 lt_shell_append='$lt_shell_append'
13928 # See if we are running on zsh, and set the options which allow our
13929 # commands through without removal of \ escapes INIT.
13930 if test -n "\${ZSH_VERSION+set}" ; then
13931 setopt NO_GLOB_SUBST
13935 PACKAGE='$PACKAGE'
13936 VERSION='$VERSION'
13937 TIMESTAMP='$TIMESTAMP'
13938 RM='$RM'
13939 ofile='$ofile'
13943 # Capture the value of obsolete ALL_LINGUAS because we need it to compute
13944 # POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES, CATALOGS. But hide it
13945 # from automake.
13946 eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
13947 # Capture the value of LINGUAS because we need it to compute CATALOGS.
13948 LINGUAS="${LINGUAS-%UNSET%}"
13951 _ACEOF
13953 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13955 # Handling of arguments.
13956 for ac_config_target in $ac_config_targets
13958 case $ac_config_target in
13959 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
13960 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h:config.in" ;;
13961 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
13962 "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
13963 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
13964 "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in:po/Make-in" ;;
13966 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
13967 esac
13968 done
13971 # If the user did not use the arguments to specify the items to instantiate,
13972 # then the envvar interface is used. Set only those that are not.
13973 # We use the long form for the default assignment because of an extremely
13974 # bizarre bug on SunOS 4.1.3.
13975 if $ac_need_defaults; then
13976 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
13977 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
13978 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
13981 # Have a temporary directory for convenience. Make it in the build tree
13982 # simply because there is no reason against having it here, and in addition,
13983 # creating and moving files from /tmp can sometimes cause problems.
13984 # Hook for its removal unless debugging.
13985 # Note that there is a small window in which the directory will not be cleaned:
13986 # after its creation but before its name has been assigned to `$tmp'.
13987 $debug ||
13989 tmp=
13990 trap 'exit_status=$?
13991 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
13993 trap 'as_fn_exit 1' 1 2 13 15
13995 # Create a (secure) tmp directory for tmp files.
13998 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
13999 test -n "$tmp" && test -d "$tmp"
14000 } ||
14002 tmp=./conf$$-$RANDOM
14003 (umask 077 && mkdir "$tmp")
14004 } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
14006 # Set up the scripts for CONFIG_FILES section.
14007 # No need to generate them if there are no CONFIG_FILES.
14008 # This happens for instance with `./config.status config.h'.
14009 if test -n "$CONFIG_FILES"; then
14011 if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then
14012 ac_cs_awk_getline=:
14013 ac_cs_awk_pipe_init=
14014 ac_cs_awk_read_file='
14015 while ((getline aline < (F[key])) > 0)
14016 print(aline)
14017 close(F[key])'
14018 ac_cs_awk_pipe_fini=
14019 else
14020 ac_cs_awk_getline=false
14021 ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\""
14022 ac_cs_awk_read_file='
14023 print "|#_!!_#|"
14024 print "cat " F[key] " &&"
14025 '$ac_cs_awk_pipe_init
14026 # The final `:' finishes the AND list.
14027 ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }'
14029 ac_cr=`echo X | tr X '\015'`
14030 # On cygwin, bash can eat \r inside `` if the user requested igncr.
14031 # But we know of no other shell where ac_cr would be empty at this
14032 # point, so we can use a bashism as a fallback.
14033 if test "x$ac_cr" = x; then
14034 eval ac_cr=\$\'\\r\'
14036 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
14037 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
14038 ac_cs_awk_cr='\r'
14039 else
14040 ac_cs_awk_cr=$ac_cr
14043 echo 'BEGIN {' >"$tmp/subs1.awk" &&
14044 _ACEOF
14046 # Create commands to substitute file output variables.
14048 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
14049 echo 'cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&' &&
14050 echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' &&
14051 echo "_ACAWK" &&
14052 echo "_ACEOF"
14053 } >conf$$files.sh &&
14054 . ./conf$$files.sh ||
14055 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
14056 rm -f conf$$files.sh
14059 echo "cat >conf$$subs.awk <<_ACEOF" &&
14060 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
14061 echo "_ACEOF"
14062 } >conf$$subs.sh ||
14063 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
14064 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
14065 ac_delim='%!_!# '
14066 for ac_last_try in false false false false false :; do
14067 . ./conf$$subs.sh ||
14068 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
14070 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
14071 if test $ac_delim_n = $ac_delim_num; then
14072 break
14073 elif $ac_last_try; then
14074 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
14075 else
14076 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
14078 done
14079 rm -f conf$$subs.sh
14081 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14082 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
14083 _ACEOF
14084 sed -n '
14086 s/^/S["/; s/!.*/"]=/
14089 s/^[^!]*!//
14090 :repl
14091 t repl
14092 s/'"$ac_delim"'$//
14093 t delim
14096 s/\(.\{148\}\).*/\1/
14097 t more1
14098 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
14101 b repl
14102 :more1
14103 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
14106 s/.\{148\}//
14107 t nl
14108 :delim
14110 s/\(.\{148\}\).*/\1/
14111 t more2
14112 s/["\\]/\\&/g; s/^/"/; s/$/"/
14115 :more2
14116 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
14119 s/.\{148\}//
14120 t delim
14121 ' <conf$$subs.awk | sed '
14122 /^[^""]/{
14124 s/\n//
14126 ' >>$CONFIG_STATUS || ac_write_fail=1
14127 rm -f conf$$subs.awk
14128 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14129 _ACAWK
14130 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
14131 for (key in S) S_is_set[key] = 1
14132 FS = "\a"
14133 \$ac_cs_awk_pipe_init
14136 line = $ 0
14137 nfields = split(line, field, "@")
14138 substed = 0
14139 len = length(field[1])
14140 for (i = 2; i < nfields; i++) {
14141 key = field[i]
14142 keylen = length(key)
14143 if (S_is_set[key]) {
14144 value = S[key]
14145 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
14146 len += length(value) + length(field[++i])
14147 substed = 1
14148 } else
14149 len += 1 + keylen
14151 if (nfields == 3 && !substed) {
14152 key = field[2]
14153 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) {
14154 \$ac_cs_awk_read_file
14155 next
14158 print line
14160 \$ac_cs_awk_pipe_fini
14161 _ACAWK
14162 _ACEOF
14163 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14164 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
14165 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
14166 else
14168 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
14169 || as_fn_error "could not setup config files machinery" "$LINENO" 5
14170 _ACEOF
14172 # VPATH may cause trouble with some makes, so we remove $(srcdir),
14173 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
14174 # trailing colons and then remove the whole line if VPATH becomes empty
14175 # (actually we leave an empty line to preserve line numbers).
14176 if test "x$srcdir" = x.; then
14177 ac_vpsub='/^[ ]*VPATH[ ]*=/{
14178 s/:*\$(srcdir):*/:/
14179 s/:*\${srcdir}:*/:/
14180 s/:*@srcdir@:*/:/
14181 s/^\([^=]*=[ ]*\):*/\1/
14182 s/:*$//
14183 s/^[^=]*=[ ]*$//
14187 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14188 fi # test -n "$CONFIG_FILES"
14190 # Set up the scripts for CONFIG_HEADERS section.
14191 # No need to generate them if there are no CONFIG_HEADERS.
14192 # This happens for instance with `./config.status Makefile'.
14193 if test -n "$CONFIG_HEADERS"; then
14194 cat >"$tmp/defines.awk" <<\_ACAWK ||
14195 BEGIN {
14196 _ACEOF
14198 # Transform confdefs.h into an awk script `defines.awk', embedded as
14199 # here-document in config.status, that substitutes the proper values into
14200 # config.h.in to produce config.h.
14202 # Create a delimiter string that does not exist in confdefs.h, to ease
14203 # handling of long lines.
14204 ac_delim='%!_!# '
14205 for ac_last_try in false false :; do
14206 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
14207 if test -z "$ac_t"; then
14208 break
14209 elif $ac_last_try; then
14210 as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
14211 else
14212 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
14214 done
14216 # For the awk script, D is an array of macro values keyed by name,
14217 # likewise P contains macro parameters if any. Preserve backslash
14218 # newline sequences.
14220 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
14221 sed -n '
14222 s/.\{148\}/&'"$ac_delim"'/g
14223 t rset
14224 :rset
14225 s/^[ ]*#[ ]*define[ ][ ]*/ /
14226 t def
14228 :def
14229 s/\\$//
14230 t bsnl
14231 s/["\\]/\\&/g
14232 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
14233 D["\1"]=" \3"/p
14234 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
14236 :bsnl
14237 s/["\\]/\\&/g
14238 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
14239 D["\1"]=" \3\\\\\\n"\\/p
14240 t cont
14241 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
14242 t cont
14244 :cont
14246 s/.\{148\}/&'"$ac_delim"'/g
14247 t clear
14248 :clear
14249 s/\\$//
14250 t bsnlc
14251 s/["\\]/\\&/g; s/^/"/; s/$/"/p
14253 :bsnlc
14254 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
14255 b cont
14256 ' <confdefs.h | sed '
14257 s/'"$ac_delim"'/"\\\
14258 "/g' >>$CONFIG_STATUS || ac_write_fail=1
14260 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14261 for (key in D) D_is_set[key] = 1
14262 FS = "\a"
14264 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
14265 line = \$ 0
14266 split(line, arg, " ")
14267 if (arg[1] == "#") {
14268 defundef = arg[2]
14269 mac1 = arg[3]
14270 } else {
14271 defundef = substr(arg[1], 2)
14272 mac1 = arg[2]
14274 split(mac1, mac2, "(") #)
14275 macro = mac2[1]
14276 prefix = substr(line, 1, index(line, defundef) - 1)
14277 if (D_is_set[macro]) {
14278 # Preserve the white space surrounding the "#".
14279 print prefix "define", macro P[macro] D[macro]
14280 next
14281 } else {
14282 # Replace #undef with comments. This is necessary, for example,
14283 # in the case of _POSIX_SOURCE, which is predefined and required
14284 # on some systems where configure will not decide to define it.
14285 if (defundef == "undef") {
14286 print "/*", prefix defundef, macro, "*/"
14287 next
14291 { print }
14292 _ACAWK
14293 _ACEOF
14294 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14295 as_fn_error "could not setup config headers machinery" "$LINENO" 5
14296 fi # test -n "$CONFIG_HEADERS"
14299 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
14300 shift
14301 for ac_tag
14303 case $ac_tag in
14304 :[FHLC]) ac_mode=$ac_tag; continue;;
14305 esac
14306 case $ac_mode$ac_tag in
14307 :[FHL]*:*);;
14308 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
14309 :[FH]-) ac_tag=-:-;;
14310 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
14311 esac
14312 ac_save_IFS=$IFS
14313 IFS=:
14314 set x $ac_tag
14315 IFS=$ac_save_IFS
14316 shift
14317 ac_file=$1
14318 shift
14320 case $ac_mode in
14321 :L) ac_source=$1;;
14322 :[FH])
14323 ac_file_inputs=
14324 for ac_f
14326 case $ac_f in
14327 -) ac_f="$tmp/stdin";;
14328 *) # Look for the file first in the build tree, then in the source tree
14329 # (if the path is not absolute). The absolute path cannot be DOS-style,
14330 # because $ac_f cannot contain `:'.
14331 test -f "$ac_f" ||
14332 case $ac_f in
14333 [\\/$]*) false;;
14334 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
14335 esac ||
14336 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
14337 esac
14338 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
14339 as_fn_append ac_file_inputs " '$ac_f'"
14340 done
14342 # Let's still pretend it is `configure' which instantiates (i.e., don't
14343 # use $as_me), people would be surprised to read:
14344 # /* config.h. Generated by config.status. */
14345 configure_input='Generated from '`
14346 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
14347 `' by configure.'
14348 if test x"$ac_file" != x-; then
14349 configure_input="$ac_file. $configure_input"
14350 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
14351 $as_echo "$as_me: creating $ac_file" >&6;}
14353 # Neutralize special characters interpreted by sed in replacement strings.
14354 case $configure_input in #(
14355 *\&* | *\|* | *\\* )
14356 ac_sed_conf_input=`$as_echo "$configure_input" |
14357 sed 's/[\\\\&|]/\\\\&/g'`;; #(
14358 *) ac_sed_conf_input=$configure_input;;
14359 esac
14361 case $ac_tag in
14362 *:-:* | *:-) cat >"$tmp/stdin" \
14363 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
14364 esac
14366 esac
14368 ac_dir=`$as_dirname -- "$ac_file" ||
14369 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14370 X"$ac_file" : 'X\(//\)[^/]' \| \
14371 X"$ac_file" : 'X\(//\)$' \| \
14372 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
14373 $as_echo X"$ac_file" |
14374 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14375 s//\1/
14378 /^X\(\/\/\)[^/].*/{
14379 s//\1/
14382 /^X\(\/\/\)$/{
14383 s//\1/
14386 /^X\(\/\).*/{
14387 s//\1/
14390 s/.*/./; q'`
14391 as_dir="$ac_dir"; as_fn_mkdir_p
14392 ac_builddir=.
14394 case "$ac_dir" in
14395 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
14397 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
14398 # A ".." for each directory in $ac_dir_suffix.
14399 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
14400 case $ac_top_builddir_sub in
14401 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
14402 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
14403 esac ;;
14404 esac
14405 ac_abs_top_builddir=$ac_pwd
14406 ac_abs_builddir=$ac_pwd$ac_dir_suffix
14407 # for backward compatibility:
14408 ac_top_builddir=$ac_top_build_prefix
14410 case $srcdir in
14411 .) # We are building in place.
14412 ac_srcdir=.
14413 ac_top_srcdir=$ac_top_builddir_sub
14414 ac_abs_top_srcdir=$ac_pwd ;;
14415 [\\/]* | ?:[\\/]* ) # Absolute name.
14416 ac_srcdir=$srcdir$ac_dir_suffix;
14417 ac_top_srcdir=$srcdir
14418 ac_abs_top_srcdir=$srcdir ;;
14419 *) # Relative name.
14420 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
14421 ac_top_srcdir=$ac_top_build_prefix$srcdir
14422 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
14423 esac
14424 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
14427 case $ac_mode in
14430 # CONFIG_FILE
14433 case $INSTALL in
14434 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
14435 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
14436 esac
14437 ac_MKDIR_P=$MKDIR_P
14438 case $MKDIR_P in
14439 [\\/$]* | ?:[\\/]* ) ;;
14440 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
14441 esac
14442 _ACEOF
14444 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14445 # If the template does not know about datarootdir, expand it.
14446 # FIXME: This hack should be removed a few years after 2.60.
14447 ac_datarootdir_hack=; ac_datarootdir_seen=
14448 ac_sed_dataroot='
14449 /datarootdir/ {
14453 /@datadir@/p
14454 /@docdir@/p
14455 /@infodir@/p
14456 /@localedir@/p
14457 /@mandir@/p'
14458 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
14459 *datarootdir*) ac_datarootdir_seen=yes;;
14460 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
14461 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
14462 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
14463 _ACEOF
14464 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14465 ac_datarootdir_hack='
14466 s&@datadir@&$datadir&g
14467 s&@docdir@&$docdir&g
14468 s&@infodir@&$infodir&g
14469 s&@localedir@&$localedir&g
14470 s&@mandir@&$mandir&g
14471 s&\\\${datarootdir}&$datarootdir&g' ;;
14472 esac
14473 _ACEOF
14475 # Neutralize VPATH when `$srcdir' = `.'.
14476 # Shell code in configure.ac might set extrasub.
14477 # FIXME: do we really want to maintain this feature?
14478 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14479 ac_sed_extra="$ac_vpsub
14480 $extrasub
14481 _ACEOF
14482 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14484 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
14485 s|@configure_input@|$ac_sed_conf_input|;t t
14486 s&@top_builddir@&$ac_top_builddir_sub&;t t
14487 s&@top_build_prefix@&$ac_top_build_prefix&;t t
14488 s&@srcdir@&$ac_srcdir&;t t
14489 s&@abs_srcdir@&$ac_abs_srcdir&;t t
14490 s&@top_srcdir@&$ac_top_srcdir&;t t
14491 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
14492 s&@builddir@&$ac_builddir&;t t
14493 s&@abs_builddir@&$ac_abs_builddir&;t t
14494 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
14495 s&@INSTALL@&$ac_INSTALL&;t t
14496 s&@MKDIR_P@&$ac_MKDIR_P&;t t
14497 $ac_datarootdir_hack
14499 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
14500 if $ac_cs_awk_getline; then
14501 $AWK -f "$tmp/subs.awk"
14502 else
14503 $AWK -f "$tmp/subs.awk" | $SHELL
14504 fi >$tmp/out \
14505 || as_fn_error "could not create $ac_file" "$LINENO" 5
14507 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
14508 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
14509 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
14510 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
14511 which seems to be undefined. Please make sure it is defined." >&5
14512 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
14513 which seems to be undefined. Please make sure it is defined." >&2;}
14515 rm -f "$tmp/stdin"
14516 case $ac_file in
14517 -) cat "$tmp/out" && rm -f "$tmp/out";;
14518 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
14519 esac \
14520 || as_fn_error "could not create $ac_file" "$LINENO" 5
14524 # CONFIG_HEADER
14526 if test x"$ac_file" != x-; then
14528 $as_echo "/* $configure_input */" \
14529 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
14530 } >"$tmp/config.h" \
14531 || as_fn_error "could not create $ac_file" "$LINENO" 5
14532 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
14533 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
14534 $as_echo "$as_me: $ac_file is unchanged" >&6;}
14535 else
14536 rm -f "$ac_file"
14537 mv "$tmp/config.h" "$ac_file" \
14538 || as_fn_error "could not create $ac_file" "$LINENO" 5
14540 else
14541 $as_echo "/* $configure_input */" \
14542 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
14543 || as_fn_error "could not create -" "$LINENO" 5
14545 # Compute "$ac_file"'s index in $config_headers.
14546 _am_arg="$ac_file"
14547 _am_stamp_count=1
14548 for _am_header in $config_headers :; do
14549 case $_am_header in
14550 $_am_arg | $_am_arg:* )
14551 break ;;
14553 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
14554 esac
14555 done
14556 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
14557 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14558 X"$_am_arg" : 'X\(//\)[^/]' \| \
14559 X"$_am_arg" : 'X\(//\)$' \| \
14560 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
14561 $as_echo X"$_am_arg" |
14562 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14563 s//\1/
14566 /^X\(\/\/\)[^/].*/{
14567 s//\1/
14570 /^X\(\/\/\)$/{
14571 s//\1/
14574 /^X\(\/\).*/{
14575 s//\1/
14578 s/.*/./; q'`/stamp-h$_am_stamp_count
14581 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
14582 $as_echo "$as_me: executing $ac_file commands" >&6;}
14584 esac
14587 case $ac_file$ac_mode in
14588 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
14589 # Autoconf 2.62 quotes --file arguments for eval, but not when files
14590 # are listed without --file. Let's play safe and only enable the eval
14591 # if we detect the quoting.
14592 case $CONFIG_FILES in
14593 *\'*) eval set x "$CONFIG_FILES" ;;
14594 *) set x $CONFIG_FILES ;;
14595 esac
14596 shift
14597 for mf
14599 # Strip MF so we end up with the name of the file.
14600 mf=`echo "$mf" | sed -e 's/:.*$//'`
14601 # Check whether this is an Automake generated Makefile or not.
14602 # We used to match only the files named `Makefile.in', but
14603 # some people rename them; so instead we look at the file content.
14604 # Grep'ing the first line is not enough: some people post-process
14605 # each Makefile.in and add a new line on top of each file to say so.
14606 # Grep'ing the whole file is not good either: AIX grep has a line
14607 # limit of 2048, but all sed's we know have understand at least 4000.
14608 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
14609 dirpart=`$as_dirname -- "$mf" ||
14610 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14611 X"$mf" : 'X\(//\)[^/]' \| \
14612 X"$mf" : 'X\(//\)$' \| \
14613 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
14614 $as_echo X"$mf" |
14615 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14616 s//\1/
14619 /^X\(\/\/\)[^/].*/{
14620 s//\1/
14623 /^X\(\/\/\)$/{
14624 s//\1/
14627 /^X\(\/\).*/{
14628 s//\1/
14631 s/.*/./; q'`
14632 else
14633 continue
14635 # Extract the definition of DEPDIR, am__include, and am__quote
14636 # from the Makefile without running `make'.
14637 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
14638 test -z "$DEPDIR" && continue
14639 am__include=`sed -n 's/^am__include = //p' < "$mf"`
14640 test -z "am__include" && continue
14641 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
14642 # When using ansi2knr, U may be empty or an underscore; expand it
14643 U=`sed -n 's/^U = //p' < "$mf"`
14644 # Find all dependency output files, they are included files with
14645 # $(DEPDIR) in their names. We invoke sed twice because it is the
14646 # simplest approach to changing $(DEPDIR) to its actual value in the
14647 # expansion.
14648 for file in `sed -n "
14649 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
14650 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
14651 # Make sure the directory exists.
14652 test -f "$dirpart/$file" && continue
14653 fdir=`$as_dirname -- "$file" ||
14654 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14655 X"$file" : 'X\(//\)[^/]' \| \
14656 X"$file" : 'X\(//\)$' \| \
14657 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
14658 $as_echo X"$file" |
14659 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14660 s//\1/
14663 /^X\(\/\/\)[^/].*/{
14664 s//\1/
14667 /^X\(\/\/\)$/{
14668 s//\1/
14671 /^X\(\/\).*/{
14672 s//\1/
14675 s/.*/./; q'`
14676 as_dir=$dirpart/$fdir; as_fn_mkdir_p
14677 # echo "creating $dirpart/$file"
14678 echo '# dummy' > "$dirpart/$file"
14679 done
14680 done
14683 "libtool":C)
14685 # See if we are running on zsh, and set the options which allow our
14686 # commands through without removal of \ escapes.
14687 if test -n "${ZSH_VERSION+set}" ; then
14688 setopt NO_GLOB_SUBST
14691 cfgfile="${ofile}T"
14692 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
14693 $RM "$cfgfile"
14695 cat <<_LT_EOF >> "$cfgfile"
14696 #! $SHELL
14698 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
14699 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
14700 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
14701 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
14703 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
14704 # 2006, 2007, 2008 Free Software Foundation, Inc.
14705 # Written by Gordon Matzigkeit, 1996
14707 # This file is part of GNU Libtool.
14709 # GNU Libtool is free software; you can redistribute it and/or
14710 # modify it under the terms of the GNU General Public License as
14711 # published by the Free Software Foundation; either version 2 of
14712 # the License, or (at your option) any later version.
14714 # As a special exception to the GNU General Public License,
14715 # if you distribute this file as part of a program or library that
14716 # is built using GNU Libtool, you may include this file under the
14717 # same distribution terms that you use for the rest of that program.
14719 # GNU Libtool is distributed in the hope that it will be useful,
14720 # but WITHOUT ANY WARRANTY; without even the implied warranty of
14721 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14722 # GNU General Public License for more details.
14724 # You should have received a copy of the GNU General Public License
14725 # along with GNU Libtool; see the file COPYING. If not, a copy
14726 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
14727 # obtained by writing to the Free Software Foundation, Inc.,
14728 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
14731 # The names of the tagged configurations supported by this script.
14732 available_tags=""
14734 # ### BEGIN LIBTOOL CONFIG
14736 # Which release of libtool.m4 was used?
14737 macro_version=$macro_version
14738 macro_revision=$macro_revision
14740 # Whether or not to build shared libraries.
14741 build_libtool_libs=$enable_shared
14743 # Whether or not to build static libraries.
14744 build_old_libs=$enable_static
14746 # What type of objects to build.
14747 pic_mode=$pic_mode
14749 # Whether or not to optimize for fast installation.
14750 fast_install=$enable_fast_install
14752 # The host system.
14753 host_alias=$host_alias
14754 host=$host
14755 host_os=$host_os
14757 # The build system.
14758 build_alias=$build_alias
14759 build=$build
14760 build_os=$build_os
14762 # A sed program that does not truncate output.
14763 SED=$lt_SED
14765 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
14766 Xsed="\$SED -e 1s/^X//"
14768 # A grep program that handles long lines.
14769 GREP=$lt_GREP
14771 # An ERE matcher.
14772 EGREP=$lt_EGREP
14774 # A literal string matcher.
14775 FGREP=$lt_FGREP
14777 # A BSD- or MS-compatible name lister.
14778 NM=$lt_NM
14780 # Whether we need soft or hard links.
14781 LN_S=$lt_LN_S
14783 # What is the maximum length of a command?
14784 max_cmd_len=$max_cmd_len
14786 # Object file suffix (normally "o").
14787 objext=$ac_objext
14789 # Executable file suffix (normally "").
14790 exeext=$exeext
14792 # whether the shell understands "unset".
14793 lt_unset=$lt_unset
14795 # turn spaces into newlines.
14796 SP2NL=$lt_lt_SP2NL
14798 # turn newlines into spaces.
14799 NL2SP=$lt_lt_NL2SP
14801 # How to create reloadable object files.
14802 reload_flag=$lt_reload_flag
14803 reload_cmds=$lt_reload_cmds
14805 # An object symbol dumper.
14806 OBJDUMP=$lt_OBJDUMP
14808 # Method to check whether dependent libraries are shared objects.
14809 deplibs_check_method=$lt_deplibs_check_method
14811 # Command to use when deplibs_check_method == "file_magic".
14812 file_magic_cmd=$lt_file_magic_cmd
14814 # The archiver.
14815 AR=$lt_AR
14816 AR_FLAGS=$lt_AR_FLAGS
14818 # A symbol stripping program.
14819 STRIP=$lt_STRIP
14821 # Commands used to install an old-style archive.
14822 RANLIB=$lt_RANLIB
14823 old_postinstall_cmds=$lt_old_postinstall_cmds
14824 old_postuninstall_cmds=$lt_old_postuninstall_cmds
14826 # A C compiler.
14827 LTCC=$lt_CC
14829 # LTCC compiler flags.
14830 LTCFLAGS=$lt_CFLAGS
14832 # Take the output of nm and produce a listing of raw symbols and C names.
14833 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
14835 # Transform the output of nm in a proper C declaration.
14836 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
14838 # Transform the output of nm in a C name address pair.
14839 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
14841 # Transform the output of nm in a C name address pair when lib prefix is needed.
14842 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
14844 # The name of the directory that contains temporary libtool files.
14845 objdir=$objdir
14847 # Shell to use when invoking shell scripts.
14848 SHELL=$lt_SHELL
14850 # An echo program that does not interpret backslashes.
14851 ECHO=$lt_ECHO
14853 # Used to examine libraries when file_magic_cmd begins with "file".
14854 MAGIC_CMD=$MAGIC_CMD
14856 # Must we lock files when doing compilation?
14857 need_locks=$lt_need_locks
14859 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
14860 DSYMUTIL=$lt_DSYMUTIL
14862 # Tool to change global to local symbols on Mac OS X.
14863 NMEDIT=$lt_NMEDIT
14865 # Tool to manipulate fat objects and archives on Mac OS X.
14866 LIPO=$lt_LIPO
14868 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
14869 OTOOL=$lt_OTOOL
14871 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
14872 OTOOL64=$lt_OTOOL64
14874 # Old archive suffix (normally "a").
14875 libext=$libext
14877 # Shared library suffix (normally ".so").
14878 shrext_cmds=$lt_shrext_cmds
14880 # The commands to extract the exported symbol list from a shared archive.
14881 extract_expsyms_cmds=$lt_extract_expsyms_cmds
14883 # Variables whose values should be saved in libtool wrapper scripts and
14884 # restored at link time.
14885 variables_saved_for_relink=$lt_variables_saved_for_relink
14887 # Do we need the "lib" prefix for modules?
14888 need_lib_prefix=$need_lib_prefix
14890 # Do we need a version for libraries?
14891 need_version=$need_version
14893 # Library versioning type.
14894 version_type=$version_type
14896 # Shared library runtime path variable.
14897 runpath_var=$runpath_var
14899 # Shared library path variable.
14900 shlibpath_var=$shlibpath_var
14902 # Is shlibpath searched before the hard-coded library search path?
14903 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
14905 # Format of library name prefix.
14906 libname_spec=$lt_libname_spec
14908 # List of archive names. First name is the real one, the rest are links.
14909 # The last name is the one that the linker finds with -lNAME
14910 library_names_spec=$lt_library_names_spec
14912 # The coded name of the library, if different from the real name.
14913 soname_spec=$lt_soname_spec
14915 # Command to use after installation of a shared archive.
14916 postinstall_cmds=$lt_postinstall_cmds
14918 # Command to use after uninstallation of a shared archive.
14919 postuninstall_cmds=$lt_postuninstall_cmds
14921 # Commands used to finish a libtool library installation in a directory.
14922 finish_cmds=$lt_finish_cmds
14924 # As "finish_cmds", except a single script fragment to be evaled but
14925 # not shown.
14926 finish_eval=$lt_finish_eval
14928 # Whether we should hardcode library paths into libraries.
14929 hardcode_into_libs=$hardcode_into_libs
14931 # Compile-time system search path for libraries.
14932 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
14934 # Run-time system search path for libraries.
14935 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
14937 # Whether dlopen is supported.
14938 dlopen_support=$enable_dlopen
14940 # Whether dlopen of programs is supported.
14941 dlopen_self=$enable_dlopen_self
14943 # Whether dlopen of statically linked programs is supported.
14944 dlopen_self_static=$enable_dlopen_self_static
14946 # Commands to strip libraries.
14947 old_striplib=$lt_old_striplib
14948 striplib=$lt_striplib
14951 # The linker used to build libraries.
14952 LD=$lt_LD
14954 # Commands used to build an old-style archive.
14955 old_archive_cmds=$lt_old_archive_cmds
14957 # A language specific compiler.
14958 CC=$lt_compiler
14960 # Is the compiler the GNU compiler?
14961 with_gcc=$GCC
14963 # Compiler flag to turn off builtin functions.
14964 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
14966 # How to pass a linker flag through the compiler.
14967 wl=$lt_lt_prog_compiler_wl
14969 # Additional compiler flags for building library objects.
14970 pic_flag=$lt_lt_prog_compiler_pic
14972 # Compiler flag to prevent dynamic linking.
14973 link_static_flag=$lt_lt_prog_compiler_static
14975 # Does compiler simultaneously support -c and -o options?
14976 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
14978 # Whether or not to add -lc for building shared libraries.
14979 build_libtool_need_lc=$archive_cmds_need_lc
14981 # Whether or not to disallow shared libs when runtime libs are static.
14982 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
14984 # Compiler flag to allow reflexive dlopens.
14985 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
14987 # Compiler flag to generate shared objects directly from archives.
14988 whole_archive_flag_spec=$lt_whole_archive_flag_spec
14990 # Whether the compiler copes with passing no objects directly.
14991 compiler_needs_object=$lt_compiler_needs_object
14993 # Create an old-style archive from a shared archive.
14994 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
14996 # Create a temporary old-style archive to link instead of a shared archive.
14997 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
14999 # Commands used to build a shared archive.
15000 archive_cmds=$lt_archive_cmds
15001 archive_expsym_cmds=$lt_archive_expsym_cmds
15003 # Commands used to build a loadable module if different from building
15004 # a shared archive.
15005 module_cmds=$lt_module_cmds
15006 module_expsym_cmds=$lt_module_expsym_cmds
15008 # Whether we are building with GNU ld or not.
15009 with_gnu_ld=$lt_with_gnu_ld
15011 # Flag that allows shared libraries with undefined symbols to be built.
15012 allow_undefined_flag=$lt_allow_undefined_flag
15014 # Flag that enforces no undefined symbols.
15015 no_undefined_flag=$lt_no_undefined_flag
15017 # Flag to hardcode \$libdir into a binary during linking.
15018 # This must work even if \$libdir does not exist
15019 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
15021 # If ld is used when linking, flag to hardcode \$libdir into a binary
15022 # during linking. This must work even if \$libdir does not exist.
15023 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
15025 # Whether we need a single "-rpath" flag with a separated argument.
15026 hardcode_libdir_separator=$lt_hardcode_libdir_separator
15028 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
15029 # DIR into the resulting binary.
15030 hardcode_direct=$hardcode_direct
15032 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
15033 # DIR into the resulting binary and the resulting library dependency is
15034 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
15035 # library is relocated.
15036 hardcode_direct_absolute=$hardcode_direct_absolute
15038 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
15039 # into the resulting binary.
15040 hardcode_minus_L=$hardcode_minus_L
15042 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
15043 # into the resulting binary.
15044 hardcode_shlibpath_var=$hardcode_shlibpath_var
15046 # Set to "yes" if building a shared library automatically hardcodes DIR
15047 # into the library and all subsequent libraries and executables linked
15048 # against it.
15049 hardcode_automatic=$hardcode_automatic
15051 # Set to yes if linker adds runtime paths of dependent libraries
15052 # to runtime path list.
15053 inherit_rpath=$inherit_rpath
15055 # Whether libtool must link a program against all its dependency libraries.
15056 link_all_deplibs=$link_all_deplibs
15058 # Fix the shell variable \$srcfile for the compiler.
15059 fix_srcfile_path=$lt_fix_srcfile_path
15061 # Set to "yes" if exported symbols are required.
15062 always_export_symbols=$always_export_symbols
15064 # The commands to list exported symbols.
15065 export_symbols_cmds=$lt_export_symbols_cmds
15067 # Symbols that should not be listed in the preloaded symbols.
15068 exclude_expsyms=$lt_exclude_expsyms
15070 # Symbols that must always be exported.
15071 include_expsyms=$lt_include_expsyms
15073 # Commands necessary for linking programs (against libraries) with templates.
15074 prelink_cmds=$lt_prelink_cmds
15076 # Specify filename containing input files.
15077 file_list_spec=$lt_file_list_spec
15079 # How to hardcode a shared library path into an executable.
15080 hardcode_action=$hardcode_action
15082 # ### END LIBTOOL CONFIG
15084 _LT_EOF
15086 case $host_os in
15087 aix3*)
15088 cat <<\_LT_EOF >> "$cfgfile"
15089 # AIX sometimes has problems with the GCC collect2 program. For some
15090 # reason, if we set the COLLECT_NAMES environment variable, the problems
15091 # vanish in a puff of smoke.
15092 if test "X${COLLECT_NAMES+set}" != Xset; then
15093 COLLECT_NAMES=
15094 export COLLECT_NAMES
15096 _LT_EOF
15098 esac
15101 ltmain="$ac_aux_dir/ltmain.sh"
15104 # We use sed instead of cat because bash on DJGPP gets confused if
15105 # if finds mixed CR/LF and LF-only lines. Since sed operates in
15106 # text mode, it properly converts lines to CR/LF. This bash problem
15107 # is reportedly fixed, but why not run on old versions too?
15108 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
15109 || (rm -f "$cfgfile"; exit 1)
15111 case $xsi_shell in
15112 yes)
15113 cat << \_LT_EOF >> "$cfgfile"
15115 # func_dirname file append nondir_replacement
15116 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
15117 # otherwise set result to NONDIR_REPLACEMENT.
15118 func_dirname ()
15120 case ${1} in
15121 */*) func_dirname_result="${1%/*}${2}" ;;
15122 * ) func_dirname_result="${3}" ;;
15123 esac
15126 # func_basename file
15127 func_basename ()
15129 func_basename_result="${1##*/}"
15132 # func_dirname_and_basename file append nondir_replacement
15133 # perform func_basename and func_dirname in a single function
15134 # call:
15135 # dirname: Compute the dirname of FILE. If nonempty,
15136 # add APPEND to the result, otherwise set result
15137 # to NONDIR_REPLACEMENT.
15138 # value returned in "$func_dirname_result"
15139 # basename: Compute filename of FILE.
15140 # value retuned in "$func_basename_result"
15141 # Implementation must be kept synchronized with func_dirname
15142 # and func_basename. For efficiency, we do not delegate to
15143 # those functions but instead duplicate the functionality here.
15144 func_dirname_and_basename ()
15146 case ${1} in
15147 */*) func_dirname_result="${1%/*}${2}" ;;
15148 * ) func_dirname_result="${3}" ;;
15149 esac
15150 func_basename_result="${1##*/}"
15153 # func_stripname prefix suffix name
15154 # strip PREFIX and SUFFIX off of NAME.
15155 # PREFIX and SUFFIX must not contain globbing or regex special
15156 # characters, hashes, percent signs, but SUFFIX may contain a leading
15157 # dot (in which case that matches only a dot).
15158 func_stripname ()
15160 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
15161 # positional parameters, so assign one to ordinary parameter first.
15162 func_stripname_result=${3}
15163 func_stripname_result=${func_stripname_result#"${1}"}
15164 func_stripname_result=${func_stripname_result%"${2}"}
15167 # func_opt_split
15168 func_opt_split ()
15170 func_opt_split_opt=${1%%=*}
15171 func_opt_split_arg=${1#*=}
15174 # func_lo2o object
15175 func_lo2o ()
15177 case ${1} in
15178 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
15179 *) func_lo2o_result=${1} ;;
15180 esac
15183 # func_xform libobj-or-source
15184 func_xform ()
15186 func_xform_result=${1%.*}.lo
15189 # func_arith arithmetic-term...
15190 func_arith ()
15192 func_arith_result=$(( $* ))
15195 # func_len string
15196 # STRING may not start with a hyphen.
15197 func_len ()
15199 func_len_result=${#1}
15202 _LT_EOF
15204 *) # Bourne compatible functions.
15205 cat << \_LT_EOF >> "$cfgfile"
15207 # func_dirname file append nondir_replacement
15208 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
15209 # otherwise set result to NONDIR_REPLACEMENT.
15210 func_dirname ()
15212 # Extract subdirectory from the argument.
15213 func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
15214 if test "X$func_dirname_result" = "X${1}"; then
15215 func_dirname_result="${3}"
15216 else
15217 func_dirname_result="$func_dirname_result${2}"
15221 # func_basename file
15222 func_basename ()
15224 func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
15228 # func_stripname prefix suffix name
15229 # strip PREFIX and SUFFIX off of NAME.
15230 # PREFIX and SUFFIX must not contain globbing or regex special
15231 # characters, hashes, percent signs, but SUFFIX may contain a leading
15232 # dot (in which case that matches only a dot).
15233 # func_strip_suffix prefix name
15234 func_stripname ()
15236 case ${2} in
15237 .*) func_stripname_result=`$ECHO "X${3}" \
15238 | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
15239 *) func_stripname_result=`$ECHO "X${3}" \
15240 | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
15241 esac
15244 # sed scripts:
15245 my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
15246 my_sed_long_arg='1s/^-[^=]*=//'
15248 # func_opt_split
15249 func_opt_split ()
15251 func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
15252 func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
15255 # func_lo2o object
15256 func_lo2o ()
15258 func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
15261 # func_xform libobj-or-source
15262 func_xform ()
15264 func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'`
15267 # func_arith arithmetic-term...
15268 func_arith ()
15270 func_arith_result=`expr "$@"`
15273 # func_len string
15274 # STRING may not start with a hyphen.
15275 func_len ()
15277 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
15280 _LT_EOF
15281 esac
15283 case $lt_shell_append in
15284 yes)
15285 cat << \_LT_EOF >> "$cfgfile"
15287 # func_append var value
15288 # Append VALUE to the end of shell variable VAR.
15289 func_append ()
15291 eval "$1+=\$2"
15293 _LT_EOF
15296 cat << \_LT_EOF >> "$cfgfile"
15298 # func_append var value
15299 # Append VALUE to the end of shell variable VAR.
15300 func_append ()
15302 eval "$1=\$$1\$2"
15305 _LT_EOF
15307 esac
15310 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
15311 || (rm -f "$cfgfile"; exit 1)
15313 mv -f "$cfgfile" "$ofile" ||
15314 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
15315 chmod +x "$ofile"
15318 "default-1":C)
15319 for ac_file in $CONFIG_FILES; do
15320 # Support "outfile[:infile[:infile...]]"
15321 case "$ac_file" in
15322 *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
15323 esac
15324 # PO directories have a Makefile.in generated from Makefile.in.in.
15325 case "$ac_file" in */Makefile.in)
15326 # Adjust a relative srcdir.
15327 ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
15328 ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
15329 ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
15330 # In autoconf-2.13 it is called $ac_given_srcdir.
15331 # In autoconf-2.50 it is called $srcdir.
15332 test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
15333 case "$ac_given_srcdir" in
15334 .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
15335 /*) top_srcdir="$ac_given_srcdir" ;;
15336 *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
15337 esac
15338 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
15339 rm -f "$ac_dir/POTFILES"
15340 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
15341 cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
15342 POMAKEFILEDEPS="POTFILES.in"
15343 # ALL_LINGUAS, POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES depend
15344 # on $ac_dir but don't depend on user-specified configuration
15345 # parameters.
15346 if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
15347 # The LINGUAS file contains the set of available languages.
15348 if test -n "$OBSOLETE_ALL_LINGUAS"; then
15349 test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
15351 ALL_LINGUAS_=`sed -e "/^#/d" "$ac_given_srcdir/$ac_dir/LINGUAS"`
15352 # Hide the ALL_LINGUAS assigment from automake.
15353 eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
15354 POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
15355 else
15356 # The set of available languages was given in configure.in.
15357 eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
15359 case "$ac_given_srcdir" in
15360 .) srcdirpre= ;;
15361 *) srcdirpre='$(srcdir)/' ;;
15362 esac
15363 POFILES=
15364 GMOFILES=
15365 UPDATEPOFILES=
15366 DUMMYPOFILES=
15367 for lang in $ALL_LINGUAS; do
15368 POFILES="$POFILES $srcdirpre$lang.po"
15369 GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
15370 UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
15371 DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
15372 done
15373 # CATALOGS depends on both $ac_dir and the user's LINGUAS
15374 # environment variable.
15375 INST_LINGUAS=
15376 if test -n "$ALL_LINGUAS"; then
15377 for presentlang in $ALL_LINGUAS; do
15378 useit=no
15379 if test "%UNSET%" != "$LINGUAS"; then
15380 desiredlanguages="$LINGUAS"
15381 else
15382 desiredlanguages="$ALL_LINGUAS"
15384 for desiredlang in $desiredlanguages; do
15385 # Use the presentlang catalog if desiredlang is
15386 # a. equal to presentlang, or
15387 # b. a variant of presentlang (because in this case,
15388 # presentlang can be used as a fallback for messages
15389 # which are not translated in the desiredlang catalog).
15390 case "$desiredlang" in
15391 "$presentlang"*) useit=yes;;
15392 esac
15393 done
15394 if test $useit = yes; then
15395 INST_LINGUAS="$INST_LINGUAS $presentlang"
15397 done
15399 CATALOGS=
15400 if test -n "$INST_LINGUAS"; then
15401 for lang in $INST_LINGUAS; do
15402 CATALOGS="$CATALOGS $lang.gmo"
15403 done
15405 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
15406 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"
15407 for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
15408 if test -f "$f"; then
15409 case "$f" in
15410 *.orig | *.bak | *~) ;;
15411 *) cat "$f" >> "$ac_dir/Makefile" ;;
15412 esac
15414 done
15417 esac
15418 done ;;
15420 esac
15421 done # for ac_tag
15424 as_fn_exit 0
15425 _ACEOF
15426 ac_clean_files=$ac_clean_files_save
15428 test $ac_write_fail = 0 ||
15429 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
15432 # configure is writing to config.log, and then calls config.status.
15433 # config.status does its own redirection, appending to config.log.
15434 # Unfortunately, on DOS this fails, as config.log is still kept open
15435 # by configure, so config.status won't be able to write to it; its
15436 # output is simply discarded. So we exec the FD to /dev/null,
15437 # effectively closing config.log, so it can be properly (re)opened and
15438 # appended to by config.status. When coming back to configure, we
15439 # need to make the FD available again.
15440 if test "$no_create" != yes; then
15441 ac_cs_success=:
15442 ac_config_status_args=
15443 test "$silent" = yes &&
15444 ac_config_status_args="$ac_config_status_args --quiet"
15445 exec 5>/dev/null
15446 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
15447 exec 5>>config.log
15448 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
15449 # would make configure fail if this is the last instruction.
15450 $ac_cs_success || as_fn_exit $?
15452 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
15453 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
15454 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}