9fdcaa030a29cfa9058bf39914f3c3b47a7ffd93
[deliverable/binutils-gdb.git] / binutils / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.64.
4 #
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.
8 #
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 ## -------------------- ##
14
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 *) :
29 ;;
30 esac
31 fi
32
33
34 as_nl='
35 '
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"
64 '
65 export as_echo_n_body
66 as_echo_n='sh -c $as_echo_n_body as_echo'
67 fi
68 export as_echo_body
69 as_echo='sh -c $as_echo_body as_echo'
70 fi
71
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=';'
78 }
79 fi
80
81
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"
88
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
94 do
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
100
101 ;;
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
107 fi
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
111 fi
112
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='+ '
124
125 # NLS nuisances.
126 LC_ALL=C
127 export LC_ALL
128 LANGUAGE=C
129 export LANGUAGE
130
131 # CDPATH.
132 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
133
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 *) :
147 ;;
148 esac
149 fi
150 "
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; }
156
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 :
163
164 else
165 exitcode=1; echo positional parameters were not saved.
166 fi
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
177 fi
178 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
179
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
184 do
185 IFS=$as_save_IFS
186 test -z "$as_dir" && as_dir=.
187 as_found=:
188 case $as_dir in #(
189 /*)
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
198 fi
199 fi
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
209
210
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+"$@"}
220 fi
221
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."
233 fi
234 exit 1
235 fi
236 fi
237 fi
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
243
244 ## --------------------- ##
245 ## M4sh Shell Functions. ##
246 ## --------------------- ##
247 # as_fn_unset VAR
248 # ---------------
249 # Portably unset VAR.
250 as_fn_unset ()
251 {
252 { eval $1=; unset $1;}
253 }
254 as_unset=as_fn_unset
255
256 # as_fn_set_status STATUS
257 # -----------------------
258 # Set $? to STATUS, without forking.
259 as_fn_set_status ()
260 {
261 return $1
262 } # as_fn_set_status
263
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 ()
268 {
269 set +e
270 as_fn_set_status $1
271 exit $1
272 } # as_fn_exit
273
274 # as_fn_mkdir_p
275 # -------------
276 # Create "$as_dir" as a directory, including parents if necessary.
277 as_fn_mkdir_p ()
278 {
279
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/
299 q
300 }
301 /^X\(\/\/\)[^/].*/{
302 s//\1/
303 q
304 }
305 /^X\(\/\/\)$/{
306 s//\1/
307 q
308 }
309 /^X\(\/\).*/{
310 s//\1/
311 q
312 }
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"
318
319
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 ()
329 {
330 eval $1+=\$2
331 }'
332 else
333 as_fn_append ()
334 {
335 eval $1=\$$1\$2
336 }
337 fi # as_fn_append
338
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 ()
346 {
347 as_val=$(( $* ))
348 }'
349 else
350 as_fn_arith ()
351 {
352 as_val=`expr "$@" || test $? -eq 1`
353 }
354 fi # as_fn_arith
355
356
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 ()
363 {
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
368 fi
369 $as_echo "$as_me: error: $1" >&2
370 as_fn_exit $as_status
371 } # as_fn_error
372
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
378 fi
379
380 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
381 as_basename=basename
382 else
383 as_basename=false
384 fi
385
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
390 fi
391
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/
399 q
400 }
401 /^X\/\(\/\/\)$/{
402 s//\1/
403 q
404 }
405 /^X\/\(\/\).*/{
406 s//\1/
407 q
408 }
409 s/.*/./; q'`
410
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
417
418
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 '
425 p
426 /[$]LINENO/=
427 ' <$as_myself |
428 sed '
429 s/[$]LINENO.*/&-/
430 t lineno
431 b
432 :lineno
433 N
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; }
441
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
448 }
449
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;;
459 *)
460 ECHO_N='-n';;
461 esac
462
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
469 fi
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'
483 fi
484 else
485 as_ln_s='cp -p'
486 fi
487 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
488 rmdir conf$$.dir 2>/dev/null
489
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
495 fi
496
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=
504 fi
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
516 '
517 fi
518 as_executable_p=$as_test_x
519
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'"
522
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'"
525
526
527
528 # Check that we are running under the correct shell.
529 SHELL=${CONFIG_SHELL-/bin/sh}
530
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','`
535 ;;
536 esac
537
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
544 :
545 elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' ; then
546 # Yippee, $ECHO works!
547 :
548 else
549 # Restart under the correct shell.
550 exec $SHELL "$0" --no-reexec ${1+"$@"}
551 fi
552
553 if test "X$1" = X--fallback-echo; then
554 # used as fallback echo
555 shift
556 cat <<_LT_EOF
557 $*
558 _LT_EOF
559 exit 0
560 fi
561
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
565
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
575 fi
576 done
577 fi
578
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
582 :
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'
587 #
588 # So, first we look for a working echo in the user's PATH.
589
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
599 fi
600 done
601 IFS="$lt_save_ifs"
602
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
625 :
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=:
643
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
648 fi
649 prev="$cmd"
650 done
651
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
659 fi
660 fi
661 fi
662 fi
663 fi
664 fi
665
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"
671 fi
672
673
674
675
676 exec 7<&0 </dev/null 6>&1
677
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`
682
683 #
684 # Initializations.
685 #
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=
694
695 # Identity of this package.
696 PACKAGE_NAME=
697 PACKAGE_TARNAME=
698 PACKAGE_VERSION=
699 PACKAGE_STRING=
700 PACKAGE_BUGREPORT=
701 PACKAGE_URL=
702
703 ac_unique_file="ar.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"
739
740 ac_subst_vars='am__EXEEXT_FALSE
741 am__EXEEXT_TRUE
742 LTLIBOBJS
743 LIBOBJS
744 EMULATION_VECTOR
745 EMULATION
746 OBJDUMP_DEFS
747 BUILD_INSTALL_MISC
748 BUILD_MISC
749 BUILD_DLLWRAP
750 BUILD_WINDMC
751 BUILD_WINDRES
752 DLLTOOL_DEFS
753 BUILD_DLLTOOL
754 BUILD_SRCONV
755 BUILD_NLMCONV
756 NLMCONV_DEFS
757 LTLIBICONV
758 LIBICONV
759 ALLOCA
760 DEMANGLER_NAME
761 EXEEXT_FOR_BUILD
762 CC_FOR_BUILD
763 HDEFINES
764 GENINSRC_NEVER_FALSE
765 GENINSRC_NEVER_TRUE
766 MAINT
767 MAINTAINER_MODE_FALSE
768 MAINTAINER_MODE_TRUE
769 MSGMERGE
770 MSGFMT
771 MKINSTALLDIRS
772 CATOBJEXT
773 GENCAT
774 INSTOBJEXT
775 DATADIRNAME
776 CATALOGS
777 POSUB
778 GMSGFMT
779 XGETTEXT
780 INCINTL
781 LIBINTL_DEP
782 LIBINTL
783 USE_NLS
784 LEXLIB
785 LEX_OUTPUT_ROOT
786 LEX
787 YFLAGS
788 YACC
789 NO_WERROR
790 WARN_CFLAGS
791 OTOOL64
792 OTOOL
793 LIPO
794 NMEDIT
795 DSYMUTIL
796 lt_ECHO
797 RANLIB
798 AR
799 OBJDUMP
800 LN_S
801 NM
802 ac_ct_DUMPBIN
803 DUMPBIN
804 LD
805 FGREP
806 SED
807 LIBTOOL
808 EGREP
809 GREP
810 CPP
811 am__fastdepCC_FALSE
812 am__fastdepCC_TRUE
813 CCDEPMODE
814 AMDEPBACKSLASH
815 AMDEP_FALSE
816 AMDEP_TRUE
817 am__quote
818 am__include
819 DEPDIR
820 am__untar
821 am__tar
822 AMTAR
823 am__leading_dot
824 SET_MAKE
825 AWK
826 mkdir_p
827 MKDIR_P
828 INSTALL_STRIP_PROGRAM
829 STRIP
830 install_sh
831 MAKEINFO
832 AUTOHEADER
833 AUTOMAKE
834 AUTOCONF
835 ACLOCAL
836 VERSION
837 PACKAGE
838 CYGPATH_W
839 am__isrc
840 INSTALL_DATA
841 INSTALL_SCRIPT
842 INSTALL_PROGRAM
843 OBJEXT
844 EXEEXT
845 ac_ct_CC
846 CPPFLAGS
847 LDFLAGS
848 CFLAGS
849 CC
850 target_os
851 target_vendor
852 target_cpu
853 target
854 host_os
855 host_vendor
856 host_cpu
857 host
858 build_os
859 build_vendor
860 build_cpu
861 build
862 target_alias
863 host_alias
864 build_alias
865 LIBS
866 ECHO_T
867 ECHO_N
868 ECHO_C
869 DEFS
870 mandir
871 localedir
872 libdir
873 psdir
874 pdfdir
875 dvidir
876 htmldir
877 infodir
878 docdir
879 oldincludedir
880 includedir
881 localstatedir
882 sharedstatedir
883 sysconfdir
884 datadir
885 datarootdir
886 libexecdir
887 sbindir
888 bindir
889 program_transform_name
890 prefix
891 exec_prefix
892 PACKAGE_URL
893 PACKAGE_BUGREPORT
894 PACKAGE_STRING
895 PACKAGE_VERSION
896 PACKAGE_TARNAME
897 PACKAGE_NAME
898 PATH_SEPARATOR
899 SHELL'
900 ac_subst_files=''
901 ac_user_opts='
902 enable_option_checking
903 enable_dependency_tracking
904 enable_plugins
905 enable_largefile
906 enable_shared
907 enable_static
908 with_pic
909 enable_fast_install
910 with_gnu_ld
911 enable_libtool_lock
912 enable_targets
913 enable_werror
914 enable_build_warnings
915 enable_nls
916 enable_maintainer_mode
917 enable_rpath
918 with_libiconv_prefix
919 '
920 ac_precious_vars='build_alias
921 host_alias
922 target_alias
923 CC
924 CFLAGS
925 LDFLAGS
926 LIBS
927 CPPFLAGS
928 CPP
929 YACC
930 YFLAGS'
931
932
933 # Initialize some variables set by options.
934 ac_init_help=
935 ac_init_version=false
936 ac_unrecognized_opts=
937 ac_unrecognized_sep=
938 # The variables have the same names as the options, with
939 # dashes changed to underlines.
940 cache_file=/dev/null
941 exec_prefix=NONE
942 no_create=
943 no_recursion=
944 prefix=NONE
945 program_prefix=NONE
946 program_suffix=NONE
947 program_transform_name=s,x,x,
948 silent=
949 site=
950 srcdir=
951 verbose=
952 x_includes=NONE
953 x_libraries=NONE
954
955 # Installation directory options.
956 # These are left unexpanded so users can "make install exec_prefix=/foo"
957 # and all the variables that are supposed to be based on exec_prefix
958 # by default will actually change.
959 # Use braces instead of parens because sh, perl, etc. also accept them.
960 # (The list follows the same order as the GNU Coding Standards.)
961 bindir='${exec_prefix}/bin'
962 sbindir='${exec_prefix}/sbin'
963 libexecdir='${exec_prefix}/libexec'
964 datarootdir='${prefix}/share'
965 datadir='${datarootdir}'
966 sysconfdir='${prefix}/etc'
967 sharedstatedir='${prefix}/com'
968 localstatedir='${prefix}/var'
969 includedir='${prefix}/include'
970 oldincludedir='/usr/include'
971 docdir='${datarootdir}/doc/${PACKAGE}'
972 infodir='${datarootdir}/info'
973 htmldir='${docdir}'
974 dvidir='${docdir}'
975 pdfdir='${docdir}'
976 psdir='${docdir}'
977 libdir='${exec_prefix}/lib'
978 localedir='${datarootdir}/locale'
979 mandir='${datarootdir}/man'
980
981 ac_prev=
982 ac_dashdash=
983 for ac_option
984 do
985 # If the previous option needs an argument, assign it.
986 if test -n "$ac_prev"; then
987 eval $ac_prev=\$ac_option
988 ac_prev=
989 continue
990 fi
991
992 case $ac_option in
993 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
994 *) ac_optarg=yes ;;
995 esac
996
997 # Accept the important Cygnus configure options, so we can diagnose typos.
998
999 case $ac_dashdash$ac_option in
1000 --)
1001 ac_dashdash=yes ;;
1002
1003 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1004 ac_prev=bindir ;;
1005 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1006 bindir=$ac_optarg ;;
1007
1008 -build | --build | --buil | --bui | --bu)
1009 ac_prev=build_alias ;;
1010 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1011 build_alias=$ac_optarg ;;
1012
1013 -cache-file | --cache-file | --cache-fil | --cache-fi \
1014 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1015 ac_prev=cache_file ;;
1016 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1017 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1018 cache_file=$ac_optarg ;;
1019
1020 --config-cache | -C)
1021 cache_file=config.cache ;;
1022
1023 -datadir | --datadir | --datadi | --datad)
1024 ac_prev=datadir ;;
1025 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1026 datadir=$ac_optarg ;;
1027
1028 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1029 | --dataroo | --dataro | --datar)
1030 ac_prev=datarootdir ;;
1031 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1032 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1033 datarootdir=$ac_optarg ;;
1034
1035 -disable-* | --disable-*)
1036 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1037 # Reject names that are not valid shell variable names.
1038 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1039 as_fn_error "invalid feature name: $ac_useropt"
1040 ac_useropt_orig=$ac_useropt
1041 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1042 case $ac_user_opts in
1043 *"
1044 "enable_$ac_useropt"
1045 "*) ;;
1046 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1047 ac_unrecognized_sep=', ';;
1048 esac
1049 eval enable_$ac_useropt=no ;;
1050
1051 -docdir | --docdir | --docdi | --doc | --do)
1052 ac_prev=docdir ;;
1053 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1054 docdir=$ac_optarg ;;
1055
1056 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1057 ac_prev=dvidir ;;
1058 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1059 dvidir=$ac_optarg ;;
1060
1061 -enable-* | --enable-*)
1062 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1063 # Reject names that are not valid shell variable names.
1064 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1065 as_fn_error "invalid feature name: $ac_useropt"
1066 ac_useropt_orig=$ac_useropt
1067 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1068 case $ac_user_opts in
1069 *"
1070 "enable_$ac_useropt"
1071 "*) ;;
1072 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1073 ac_unrecognized_sep=', ';;
1074 esac
1075 eval enable_$ac_useropt=\$ac_optarg ;;
1076
1077 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1078 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1079 | --exec | --exe | --ex)
1080 ac_prev=exec_prefix ;;
1081 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1082 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1083 | --exec=* | --exe=* | --ex=*)
1084 exec_prefix=$ac_optarg ;;
1085
1086 -gas | --gas | --ga | --g)
1087 # Obsolete; use --with-gas.
1088 with_gas=yes ;;
1089
1090 -help | --help | --hel | --he | -h)
1091 ac_init_help=long ;;
1092 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1093 ac_init_help=recursive ;;
1094 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1095 ac_init_help=short ;;
1096
1097 -host | --host | --hos | --ho)
1098 ac_prev=host_alias ;;
1099 -host=* | --host=* | --hos=* | --ho=*)
1100 host_alias=$ac_optarg ;;
1101
1102 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1103 ac_prev=htmldir ;;
1104 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1105 | --ht=*)
1106 htmldir=$ac_optarg ;;
1107
1108 -includedir | --includedir | --includedi | --included | --include \
1109 | --includ | --inclu | --incl | --inc)
1110 ac_prev=includedir ;;
1111 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1112 | --includ=* | --inclu=* | --incl=* | --inc=*)
1113 includedir=$ac_optarg ;;
1114
1115 -infodir | --infodir | --infodi | --infod | --info | --inf)
1116 ac_prev=infodir ;;
1117 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1118 infodir=$ac_optarg ;;
1119
1120 -libdir | --libdir | --libdi | --libd)
1121 ac_prev=libdir ;;
1122 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1123 libdir=$ac_optarg ;;
1124
1125 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1126 | --libexe | --libex | --libe)
1127 ac_prev=libexecdir ;;
1128 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1129 | --libexe=* | --libex=* | --libe=*)
1130 libexecdir=$ac_optarg ;;
1131
1132 -localedir | --localedir | --localedi | --localed | --locale)
1133 ac_prev=localedir ;;
1134 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1135 localedir=$ac_optarg ;;
1136
1137 -localstatedir | --localstatedir | --localstatedi | --localstated \
1138 | --localstate | --localstat | --localsta | --localst | --locals)
1139 ac_prev=localstatedir ;;
1140 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1141 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1142 localstatedir=$ac_optarg ;;
1143
1144 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1145 ac_prev=mandir ;;
1146 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1147 mandir=$ac_optarg ;;
1148
1149 -nfp | --nfp | --nf)
1150 # Obsolete; use --without-fp.
1151 with_fp=no ;;
1152
1153 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1154 | --no-cr | --no-c | -n)
1155 no_create=yes ;;
1156
1157 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1158 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1159 no_recursion=yes ;;
1160
1161 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1162 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1163 | --oldin | --oldi | --old | --ol | --o)
1164 ac_prev=oldincludedir ;;
1165 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1166 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1167 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1168 oldincludedir=$ac_optarg ;;
1169
1170 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1171 ac_prev=prefix ;;
1172 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1173 prefix=$ac_optarg ;;
1174
1175 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1176 | --program-pre | --program-pr | --program-p)
1177 ac_prev=program_prefix ;;
1178 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1179 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1180 program_prefix=$ac_optarg ;;
1181
1182 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1183 | --program-suf | --program-su | --program-s)
1184 ac_prev=program_suffix ;;
1185 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1186 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1187 program_suffix=$ac_optarg ;;
1188
1189 -program-transform-name | --program-transform-name \
1190 | --program-transform-nam | --program-transform-na \
1191 | --program-transform-n | --program-transform- \
1192 | --program-transform | --program-transfor \
1193 | --program-transfo | --program-transf \
1194 | --program-trans | --program-tran \
1195 | --progr-tra | --program-tr | --program-t)
1196 ac_prev=program_transform_name ;;
1197 -program-transform-name=* | --program-transform-name=* \
1198 | --program-transform-nam=* | --program-transform-na=* \
1199 | --program-transform-n=* | --program-transform-=* \
1200 | --program-transform=* | --program-transfor=* \
1201 | --program-transfo=* | --program-transf=* \
1202 | --program-trans=* | --program-tran=* \
1203 | --progr-tra=* | --program-tr=* | --program-t=*)
1204 program_transform_name=$ac_optarg ;;
1205
1206 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1207 ac_prev=pdfdir ;;
1208 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1209 pdfdir=$ac_optarg ;;
1210
1211 -psdir | --psdir | --psdi | --psd | --ps)
1212 ac_prev=psdir ;;
1213 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1214 psdir=$ac_optarg ;;
1215
1216 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1217 | -silent | --silent | --silen | --sile | --sil)
1218 silent=yes ;;
1219
1220 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1221 ac_prev=sbindir ;;
1222 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1223 | --sbi=* | --sb=*)
1224 sbindir=$ac_optarg ;;
1225
1226 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1227 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1228 | --sharedst | --shareds | --shared | --share | --shar \
1229 | --sha | --sh)
1230 ac_prev=sharedstatedir ;;
1231 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1232 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1233 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1234 | --sha=* | --sh=*)
1235 sharedstatedir=$ac_optarg ;;
1236
1237 -site | --site | --sit)
1238 ac_prev=site ;;
1239 -site=* | --site=* | --sit=*)
1240 site=$ac_optarg ;;
1241
1242 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1243 ac_prev=srcdir ;;
1244 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1245 srcdir=$ac_optarg ;;
1246
1247 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1248 | --syscon | --sysco | --sysc | --sys | --sy)
1249 ac_prev=sysconfdir ;;
1250 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1251 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1252 sysconfdir=$ac_optarg ;;
1253
1254 -target | --target | --targe | --targ | --tar | --ta | --t)
1255 ac_prev=target_alias ;;
1256 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1257 target_alias=$ac_optarg ;;
1258
1259 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1260 verbose=yes ;;
1261
1262 -version | --version | --versio | --versi | --vers | -V)
1263 ac_init_version=: ;;
1264
1265 -with-* | --with-*)
1266 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1267 # Reject names that are not valid shell variable names.
1268 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1269 as_fn_error "invalid package name: $ac_useropt"
1270 ac_useropt_orig=$ac_useropt
1271 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1272 case $ac_user_opts in
1273 *"
1274 "with_$ac_useropt"
1275 "*) ;;
1276 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1277 ac_unrecognized_sep=', ';;
1278 esac
1279 eval with_$ac_useropt=\$ac_optarg ;;
1280
1281 -without-* | --without-*)
1282 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1283 # Reject names that are not valid shell variable names.
1284 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1285 as_fn_error "invalid package name: $ac_useropt"
1286 ac_useropt_orig=$ac_useropt
1287 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1288 case $ac_user_opts in
1289 *"
1290 "with_$ac_useropt"
1291 "*) ;;
1292 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1293 ac_unrecognized_sep=', ';;
1294 esac
1295 eval with_$ac_useropt=no ;;
1296
1297 --x)
1298 # Obsolete; use --with-x.
1299 with_x=yes ;;
1300
1301 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1302 | --x-incl | --x-inc | --x-in | --x-i)
1303 ac_prev=x_includes ;;
1304 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1305 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1306 x_includes=$ac_optarg ;;
1307
1308 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1309 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1310 ac_prev=x_libraries ;;
1311 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1312 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1313 x_libraries=$ac_optarg ;;
1314
1315 -*) as_fn_error "unrecognized option: \`$ac_option'
1316 Try \`$0 --help' for more information."
1317 ;;
1318
1319 *=*)
1320 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1321 # Reject names that are not valid shell variable names.
1322 case $ac_envvar in #(
1323 '' | [0-9]* | *[!_$as_cr_alnum]* )
1324 as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1325 esac
1326 eval $ac_envvar=\$ac_optarg
1327 export $ac_envvar ;;
1328
1329 *)
1330 # FIXME: should be removed in autoconf 3.0.
1331 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1332 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1333 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1334 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1335 ;;
1336
1337 esac
1338 done
1339
1340 if test -n "$ac_prev"; then
1341 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1342 as_fn_error "missing argument to $ac_option"
1343 fi
1344
1345 if test -n "$ac_unrecognized_opts"; then
1346 case $enable_option_checking in
1347 no) ;;
1348 fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1349 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1350 esac
1351 fi
1352
1353 # Check all directory arguments for consistency.
1354 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1355 datadir sysconfdir sharedstatedir localstatedir includedir \
1356 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1357 libdir localedir mandir
1358 do
1359 eval ac_val=\$$ac_var
1360 # Remove trailing slashes.
1361 case $ac_val in
1362 */ )
1363 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1364 eval $ac_var=\$ac_val;;
1365 esac
1366 # Be sure to have absolute directory names.
1367 case $ac_val in
1368 [\\/$]* | ?:[\\/]* ) continue;;
1369 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1370 esac
1371 as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1372 done
1373
1374 # There might be people who depend on the old broken behavior: `$host'
1375 # used to hold the argument of --host etc.
1376 # FIXME: To remove some day.
1377 build=$build_alias
1378 host=$host_alias
1379 target=$target_alias
1380
1381 # FIXME: To remove some day.
1382 if test "x$host_alias" != x; then
1383 if test "x$build_alias" = x; then
1384 cross_compiling=maybe
1385 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1386 If a cross compiler is detected then cross compile mode will be used." >&2
1387 elif test "x$build_alias" != "x$host_alias"; then
1388 cross_compiling=yes
1389 fi
1390 fi
1391
1392 ac_tool_prefix=
1393 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1394
1395 test "$silent" = yes && exec 6>/dev/null
1396
1397
1398 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1399 ac_ls_di=`ls -di .` &&
1400 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1401 as_fn_error "working directory cannot be determined"
1402 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1403 as_fn_error "pwd does not report name of working directory"
1404
1405
1406 # Find the source files, if location was not specified.
1407 if test -z "$srcdir"; then
1408 ac_srcdir_defaulted=yes
1409 # Try the directory containing this script, then the parent directory.
1410 ac_confdir=`$as_dirname -- "$as_myself" ||
1411 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1412 X"$as_myself" : 'X\(//\)[^/]' \| \
1413 X"$as_myself" : 'X\(//\)$' \| \
1414 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1415 $as_echo X"$as_myself" |
1416 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1417 s//\1/
1418 q
1419 }
1420 /^X\(\/\/\)[^/].*/{
1421 s//\1/
1422 q
1423 }
1424 /^X\(\/\/\)$/{
1425 s//\1/
1426 q
1427 }
1428 /^X\(\/\).*/{
1429 s//\1/
1430 q
1431 }
1432 s/.*/./; q'`
1433 srcdir=$ac_confdir
1434 if test ! -r "$srcdir/$ac_unique_file"; then
1435 srcdir=..
1436 fi
1437 else
1438 ac_srcdir_defaulted=no
1439 fi
1440 if test ! -r "$srcdir/$ac_unique_file"; then
1441 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1442 as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1443 fi
1444 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1445 ac_abs_confdir=`(
1446 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1447 pwd)`
1448 # When building in place, set srcdir=.
1449 if test "$ac_abs_confdir" = "$ac_pwd"; then
1450 srcdir=.
1451 fi
1452 # Remove unnecessary trailing slashes from srcdir.
1453 # Double slashes in file names in object file debugging info
1454 # mess up M-x gdb in Emacs.
1455 case $srcdir in
1456 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1457 esac
1458 for ac_var in $ac_precious_vars; do
1459 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1460 eval ac_env_${ac_var}_value=\$${ac_var}
1461 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1462 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1463 done
1464
1465 #
1466 # Report the --help message.
1467 #
1468 if test "$ac_init_help" = "long"; then
1469 # Omit some internal or obsolete options to make the list less imposing.
1470 # This message is too long to be a string in the A/UX 3.1 sh.
1471 cat <<_ACEOF
1472 \`configure' configures this package to adapt to many kinds of systems.
1473
1474 Usage: $0 [OPTION]... [VAR=VALUE]...
1475
1476 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1477 VAR=VALUE. See below for descriptions of some of the useful variables.
1478
1479 Defaults for the options are specified in brackets.
1480
1481 Configuration:
1482 -h, --help display this help and exit
1483 --help=short display options specific to this package
1484 --help=recursive display the short help of all the included packages
1485 -V, --version display version information and exit
1486 -q, --quiet, --silent do not print \`checking...' messages
1487 --cache-file=FILE cache test results in FILE [disabled]
1488 -C, --config-cache alias for \`--cache-file=config.cache'
1489 -n, --no-create do not create output files
1490 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1491
1492 Installation directories:
1493 --prefix=PREFIX install architecture-independent files in PREFIX
1494 [$ac_default_prefix]
1495 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1496 [PREFIX]
1497
1498 By default, \`make install' will install all the files in
1499 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1500 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1501 for instance \`--prefix=\$HOME'.
1502
1503 For better control, use the options below.
1504
1505 Fine tuning of the installation directories:
1506 --bindir=DIR user executables [EPREFIX/bin]
1507 --sbindir=DIR system admin executables [EPREFIX/sbin]
1508 --libexecdir=DIR program executables [EPREFIX/libexec]
1509 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1510 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1511 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1512 --libdir=DIR object code libraries [EPREFIX/lib]
1513 --includedir=DIR C header files [PREFIX/include]
1514 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1515 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1516 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1517 --infodir=DIR info documentation [DATAROOTDIR/info]
1518 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1519 --mandir=DIR man documentation [DATAROOTDIR/man]
1520 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1521 --htmldir=DIR html documentation [DOCDIR]
1522 --dvidir=DIR dvi documentation [DOCDIR]
1523 --pdfdir=DIR pdf documentation [DOCDIR]
1524 --psdir=DIR ps documentation [DOCDIR]
1525 _ACEOF
1526
1527 cat <<\_ACEOF
1528
1529 Program names:
1530 --program-prefix=PREFIX prepend PREFIX to installed program names
1531 --program-suffix=SUFFIX append SUFFIX to installed program names
1532 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1533
1534 System types:
1535 --build=BUILD configure for building on BUILD [guessed]
1536 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1537 --target=TARGET configure for building compilers for TARGET [HOST]
1538 _ACEOF
1539 fi
1540
1541 if test -n "$ac_init_help"; then
1542
1543 cat <<\_ACEOF
1544
1545 Optional Features:
1546 --disable-option-checking ignore unrecognized --enable/--with options
1547 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1548 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1549 --disable-dependency-tracking speeds up one-time build
1550 --enable-dependency-tracking do not reject slow dependency extractors
1551 --enable-plugins Enable support for plugins (defaults no)
1552 --disable-largefile omit support for large files
1553 --enable-shared[=PKGS] build shared libraries [default=yes]
1554 --enable-static[=PKGS] build static libraries [default=yes]
1555 --enable-fast-install[=PKGS]
1556 optimize for fast installation [default=yes]
1557 --disable-libtool-lock avoid locking (might break parallel builds)
1558 --enable-targets alternative target configurations
1559 --enable-werror treat compile warnings as errors
1560 --enable-build-warnings enable build-time compiler warnings
1561 --disable-nls do not use Native Language Support
1562 --enable-maintainer-mode enable make rules and dependencies not useful
1563 (and sometimes confusing) to the casual installer
1564 --disable-rpath do not hardcode runtime library paths
1565
1566 Optional Packages:
1567 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1568 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1569 --with-pic try to use only PIC/non-PIC objects [default=use
1570 both]
1571 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1572 --with-gnu-ld assume the C compiler uses GNU ld default=no
1573 --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
1574 --without-libiconv-prefix don't search for libiconv in includedir and libdir
1575
1576 Some influential environment variables:
1577 CC C compiler command
1578 CFLAGS C compiler flags
1579 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1580 nonstandard directory <lib dir>
1581 LIBS libraries to pass to the linker, e.g. -l<library>
1582 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1583 you have headers in a nonstandard directory <include dir>
1584 CPP C preprocessor
1585 YACC The `Yet Another C Compiler' implementation to use. Defaults to
1586 the first program found out of: `bison -y', `byacc', `yacc'.
1587 YFLAGS The list of arguments that will be passed by default to $YACC.
1588 This script will default YFLAGS to the empty string to avoid a
1589 default value of `-d' given by some make applications.
1590
1591 Use these variables to override the choices made by `configure' or to help
1592 it to find libraries and programs with nonstandard names/locations.
1593
1594 Report bugs to the package provider.
1595 _ACEOF
1596 ac_status=$?
1597 fi
1598
1599 if test "$ac_init_help" = "recursive"; then
1600 # If there are subdirs, report their specific --help.
1601 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1602 test -d "$ac_dir" ||
1603 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1604 continue
1605 ac_builddir=.
1606
1607 case "$ac_dir" in
1608 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1609 *)
1610 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1611 # A ".." for each directory in $ac_dir_suffix.
1612 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1613 case $ac_top_builddir_sub in
1614 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1615 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1616 esac ;;
1617 esac
1618 ac_abs_top_builddir=$ac_pwd
1619 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1620 # for backward compatibility:
1621 ac_top_builddir=$ac_top_build_prefix
1622
1623 case $srcdir in
1624 .) # We are building in place.
1625 ac_srcdir=.
1626 ac_top_srcdir=$ac_top_builddir_sub
1627 ac_abs_top_srcdir=$ac_pwd ;;
1628 [\\/]* | ?:[\\/]* ) # Absolute name.
1629 ac_srcdir=$srcdir$ac_dir_suffix;
1630 ac_top_srcdir=$srcdir
1631 ac_abs_top_srcdir=$srcdir ;;
1632 *) # Relative name.
1633 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1634 ac_top_srcdir=$ac_top_build_prefix$srcdir
1635 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1636 esac
1637 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1638
1639 cd "$ac_dir" || { ac_status=$?; continue; }
1640 # Check for guested configure.
1641 if test -f "$ac_srcdir/configure.gnu"; then
1642 echo &&
1643 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1644 elif test -f "$ac_srcdir/configure"; then
1645 echo &&
1646 $SHELL "$ac_srcdir/configure" --help=recursive
1647 else
1648 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1649 fi || ac_status=$?
1650 cd "$ac_pwd" || { ac_status=$?; break; }
1651 done
1652 fi
1653
1654 test -n "$ac_init_help" && exit $ac_status
1655 if $ac_init_version; then
1656 cat <<\_ACEOF
1657 configure
1658 generated by GNU Autoconf 2.64
1659
1660 Copyright (C) 2009 Free Software Foundation, Inc.
1661 This configure script is free software; the Free Software Foundation
1662 gives unlimited permission to copy, distribute and modify it.
1663 _ACEOF
1664 exit
1665 fi
1666
1667 ## ------------------------ ##
1668 ## Autoconf initialization. ##
1669 ## ------------------------ ##
1670
1671 # ac_fn_c_try_compile LINENO
1672 # --------------------------
1673 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1674 ac_fn_c_try_compile ()
1675 {
1676 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1677 rm -f conftest.$ac_objext
1678 if { { ac_try="$ac_compile"
1679 case "(($ac_try" in
1680 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1681 *) ac_try_echo=$ac_try;;
1682 esac
1683 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1684 $as_echo "$ac_try_echo"; } >&5
1685 (eval "$ac_compile") 2>conftest.err
1686 ac_status=$?
1687 if test -s conftest.err; then
1688 grep -v '^ *+' conftest.err >conftest.er1
1689 cat conftest.er1 >&5
1690 mv -f conftest.er1 conftest.err
1691 fi
1692 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1693 test $ac_status = 0; } && {
1694 test -z "$ac_c_werror_flag" ||
1695 test ! -s conftest.err
1696 } && test -s conftest.$ac_objext; then :
1697 ac_retval=0
1698 else
1699 $as_echo "$as_me: failed program was:" >&5
1700 sed 's/^/| /' conftest.$ac_ext >&5
1701
1702 ac_retval=1
1703 fi
1704 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1705 return $ac_retval
1706
1707 } # ac_fn_c_try_compile
1708
1709 # ac_fn_c_try_link LINENO
1710 # -----------------------
1711 # Try to link conftest.$ac_ext, and return whether this succeeded.
1712 ac_fn_c_try_link ()
1713 {
1714 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1715 rm -f conftest.$ac_objext conftest$ac_exeext
1716 if { { ac_try="$ac_link"
1717 case "(($ac_try" in
1718 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1719 *) ac_try_echo=$ac_try;;
1720 esac
1721 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1722 $as_echo "$ac_try_echo"; } >&5
1723 (eval "$ac_link") 2>conftest.err
1724 ac_status=$?
1725 if test -s conftest.err; then
1726 grep -v '^ *+' conftest.err >conftest.er1
1727 cat conftest.er1 >&5
1728 mv -f conftest.er1 conftest.err
1729 fi
1730 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1731 test $ac_status = 0; } && {
1732 test -z "$ac_c_werror_flag" ||
1733 test ! -s conftest.err
1734 } && test -s conftest$ac_exeext && {
1735 test "$cross_compiling" = yes ||
1736 $as_test_x conftest$ac_exeext
1737 }; then :
1738 ac_retval=0
1739 else
1740 $as_echo "$as_me: failed program was:" >&5
1741 sed 's/^/| /' conftest.$ac_ext >&5
1742
1743 ac_retval=1
1744 fi
1745 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1746 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1747 # interfere with the next link command; also delete a directory that is
1748 # left behind by Apple's compiler. We do this before executing the actions.
1749 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1750 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1751 return $ac_retval
1752
1753 } # ac_fn_c_try_link
1754
1755 # ac_fn_c_try_cpp LINENO
1756 # ----------------------
1757 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1758 ac_fn_c_try_cpp ()
1759 {
1760 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1761 if { { ac_try="$ac_cpp conftest.$ac_ext"
1762 case "(($ac_try" in
1763 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1764 *) ac_try_echo=$ac_try;;
1765 esac
1766 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1767 $as_echo "$ac_try_echo"; } >&5
1768 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1769 ac_status=$?
1770 if test -s conftest.err; then
1771 grep -v '^ *+' conftest.err >conftest.er1
1772 cat conftest.er1 >&5
1773 mv -f conftest.er1 conftest.err
1774 fi
1775 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1776 test $ac_status = 0; } >/dev/null && {
1777 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1778 test ! -s conftest.err
1779 }; then :
1780 ac_retval=0
1781 else
1782 $as_echo "$as_me: failed program was:" >&5
1783 sed 's/^/| /' conftest.$ac_ext >&5
1784
1785 ac_retval=1
1786 fi
1787 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1788 return $ac_retval
1789
1790 } # ac_fn_c_try_cpp
1791
1792 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1793 # -------------------------------------------------------
1794 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1795 # the include files in INCLUDES and setting the cache variable VAR
1796 # accordingly.
1797 ac_fn_c_check_header_mongrel ()
1798 {
1799 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1800 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1801 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1802 $as_echo_n "checking for $2... " >&6; }
1803 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1804 $as_echo_n "(cached) " >&6
1805 fi
1806 eval ac_res=\$$3
1807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1808 $as_echo "$ac_res" >&6; }
1809 else
1810 # Is the header compilable?
1811 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1812 $as_echo_n "checking $2 usability... " >&6; }
1813 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1814 /* end confdefs.h. */
1815 $4
1816 #include <$2>
1817 _ACEOF
1818 if ac_fn_c_try_compile "$LINENO"; then :
1819 ac_header_compiler=yes
1820 else
1821 ac_header_compiler=no
1822 fi
1823 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1825 $as_echo "$ac_header_compiler" >&6; }
1826
1827 # Is the header present?
1828 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1829 $as_echo_n "checking $2 presence... " >&6; }
1830 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1831 /* end confdefs.h. */
1832 #include <$2>
1833 _ACEOF
1834 if ac_fn_c_try_cpp "$LINENO"; then :
1835 ac_header_preproc=yes
1836 else
1837 ac_header_preproc=no
1838 fi
1839 rm -f conftest.err conftest.$ac_ext
1840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1841 $as_echo "$ac_header_preproc" >&6; }
1842
1843 # So? What about this header?
1844 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1845 yes:no: )
1846 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1847 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1848 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1849 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1850 ;;
1851 no:yes:* )
1852 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1853 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1854 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1855 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1856 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1857 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1858 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1859 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1860 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1861 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1862 ;;
1863 esac
1864 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1865 $as_echo_n "checking for $2... " >&6; }
1866 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1867 $as_echo_n "(cached) " >&6
1868 else
1869 eval "$3=\$ac_header_compiler"
1870 fi
1871 eval ac_res=\$$3
1872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1873 $as_echo "$ac_res" >&6; }
1874 fi
1875 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1876
1877 } # ac_fn_c_check_header_mongrel
1878
1879 # ac_fn_c_try_run LINENO
1880 # ----------------------
1881 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1882 # that executables *can* be run.
1883 ac_fn_c_try_run ()
1884 {
1885 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1886 if { { ac_try="$ac_link"
1887 case "(($ac_try" in
1888 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1889 *) ac_try_echo=$ac_try;;
1890 esac
1891 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1892 $as_echo "$ac_try_echo"; } >&5
1893 (eval "$ac_link") 2>&5
1894 ac_status=$?
1895 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1896 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1897 { { case "(($ac_try" in
1898 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1899 *) ac_try_echo=$ac_try;;
1900 esac
1901 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1902 $as_echo "$ac_try_echo"; } >&5
1903 (eval "$ac_try") 2>&5
1904 ac_status=$?
1905 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1906 test $ac_status = 0; }; }; then :
1907 ac_retval=0
1908 else
1909 $as_echo "$as_me: program exited with status $ac_status" >&5
1910 $as_echo "$as_me: failed program was:" >&5
1911 sed 's/^/| /' conftest.$ac_ext >&5
1912
1913 ac_retval=$ac_status
1914 fi
1915 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1916 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1917 return $ac_retval
1918
1919 } # ac_fn_c_try_run
1920
1921 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1922 # -------------------------------------------------------
1923 # Tests whether HEADER exists and can be compiled using the include files in
1924 # INCLUDES, setting the cache variable VAR accordingly.
1925 ac_fn_c_check_header_compile ()
1926 {
1927 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1928 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1929 $as_echo_n "checking for $2... " >&6; }
1930 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1931 $as_echo_n "(cached) " >&6
1932 else
1933 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1934 /* end confdefs.h. */
1935 $4
1936 #include <$2>
1937 _ACEOF
1938 if ac_fn_c_try_compile "$LINENO"; then :
1939 eval "$3=yes"
1940 else
1941 eval "$3=no"
1942 fi
1943 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1944 fi
1945 eval ac_res=\$$3
1946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1947 $as_echo "$ac_res" >&6; }
1948 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1949
1950 } # ac_fn_c_check_header_compile
1951
1952 # ac_fn_c_check_func LINENO FUNC VAR
1953 # ----------------------------------
1954 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1955 ac_fn_c_check_func ()
1956 {
1957 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1958 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1959 $as_echo_n "checking for $2... " >&6; }
1960 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1961 $as_echo_n "(cached) " >&6
1962 else
1963 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1964 /* end confdefs.h. */
1965 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1966 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1967 #define $2 innocuous_$2
1968
1969 /* System header to define __stub macros and hopefully few prototypes,
1970 which can conflict with char $2 (); below.
1971 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1972 <limits.h> exists even on freestanding compilers. */
1973
1974 #ifdef __STDC__
1975 # include <limits.h>
1976 #else
1977 # include <assert.h>
1978 #endif
1979
1980 #undef $2
1981
1982 /* Override any GCC internal prototype to avoid an error.
1983 Use char because int might match the return type of a GCC
1984 builtin and then its argument prototype would still apply. */
1985 #ifdef __cplusplus
1986 extern "C"
1987 #endif
1988 char $2 ();
1989 /* The GNU C library defines this for functions which it implements
1990 to always fail with ENOSYS. Some functions are actually named
1991 something starting with __ and the normal name is an alias. */
1992 #if defined __stub_$2 || defined __stub___$2
1993 choke me
1994 #endif
1995
1996 int
1997 main ()
1998 {
1999 return $2 ();
2000 ;
2001 return 0;
2002 }
2003 _ACEOF
2004 if ac_fn_c_try_link "$LINENO"; then :
2005 eval "$3=yes"
2006 else
2007 eval "$3=no"
2008 fi
2009 rm -f core conftest.err conftest.$ac_objext \
2010 conftest$ac_exeext conftest.$ac_ext
2011 fi
2012 eval ac_res=\$$3
2013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2014 $as_echo "$ac_res" >&6; }
2015 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2016
2017 } # ac_fn_c_check_func
2018
2019 # ac_fn_c_check_decl LINENO SYMBOL VAR
2020 # ------------------------------------
2021 # Tests whether SYMBOL is declared, setting cache variable VAR accordingly.
2022 ac_fn_c_check_decl ()
2023 {
2024 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2025 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $2 is declared" >&5
2026 $as_echo_n "checking whether $2 is declared... " >&6; }
2027 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2028 $as_echo_n "(cached) " >&6
2029 else
2030 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2031 /* end confdefs.h. */
2032 $4
2033 int
2034 main ()
2035 {
2036 #ifndef $2
2037 (void) $2;
2038 #endif
2039
2040 ;
2041 return 0;
2042 }
2043 _ACEOF
2044 if ac_fn_c_try_compile "$LINENO"; then :
2045 eval "$3=yes"
2046 else
2047 eval "$3=no"
2048 fi
2049 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2050 fi
2051 eval ac_res=\$$3
2052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2053 $as_echo "$ac_res" >&6; }
2054 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2055
2056 } # ac_fn_c_check_decl
2057 cat >config.log <<_ACEOF
2058 This file contains any messages produced by compilers while
2059 running configure, to aid debugging if configure makes a mistake.
2060
2061 It was created by $as_me, which was
2062 generated by GNU Autoconf 2.64. Invocation command line was
2063
2064 $ $0 $@
2065
2066 _ACEOF
2067 exec 5>>config.log
2068 {
2069 cat <<_ASUNAME
2070 ## --------- ##
2071 ## Platform. ##
2072 ## --------- ##
2073
2074 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2075 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2076 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2077 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2078 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2079
2080 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2081 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2082
2083 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2084 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2085 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2086 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2087 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2088 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2089 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2090
2091 _ASUNAME
2092
2093 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2094 for as_dir in $PATH
2095 do
2096 IFS=$as_save_IFS
2097 test -z "$as_dir" && as_dir=.
2098 $as_echo "PATH: $as_dir"
2099 done
2100 IFS=$as_save_IFS
2101
2102 } >&5
2103
2104 cat >&5 <<_ACEOF
2105
2106
2107 ## ----------- ##
2108 ## Core tests. ##
2109 ## ----------- ##
2110
2111 _ACEOF
2112
2113
2114 # Keep a trace of the command line.
2115 # Strip out --no-create and --no-recursion so they do not pile up.
2116 # Strip out --silent because we don't want to record it for future runs.
2117 # Also quote any args containing shell meta-characters.
2118 # Make two passes to allow for proper duplicate-argument suppression.
2119 ac_configure_args=
2120 ac_configure_args0=
2121 ac_configure_args1=
2122 ac_must_keep_next=false
2123 for ac_pass in 1 2
2124 do
2125 for ac_arg
2126 do
2127 case $ac_arg in
2128 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2129 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2130 | -silent | --silent | --silen | --sile | --sil)
2131 continue ;;
2132 *\'*)
2133 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2134 esac
2135 case $ac_pass in
2136 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2137 2)
2138 as_fn_append ac_configure_args1 " '$ac_arg'"
2139 if test $ac_must_keep_next = true; then
2140 ac_must_keep_next=false # Got value, back to normal.
2141 else
2142 case $ac_arg in
2143 *=* | --config-cache | -C | -disable-* | --disable-* \
2144 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2145 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2146 | -with-* | --with-* | -without-* | --without-* | --x)
2147 case "$ac_configure_args0 " in
2148 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2149 esac
2150 ;;
2151 -* ) ac_must_keep_next=true ;;
2152 esac
2153 fi
2154 as_fn_append ac_configure_args " '$ac_arg'"
2155 ;;
2156 esac
2157 done
2158 done
2159 { ac_configure_args0=; unset ac_configure_args0;}
2160 { ac_configure_args1=; unset ac_configure_args1;}
2161
2162 # When interrupted or exit'd, cleanup temporary files, and complete
2163 # config.log. We remove comments because anyway the quotes in there
2164 # would cause problems or look ugly.
2165 # WARNING: Use '\'' to represent an apostrophe within the trap.
2166 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2167 trap 'exit_status=$?
2168 # Save into config.log some information that might help in debugging.
2169 {
2170 echo
2171
2172 cat <<\_ASBOX
2173 ## ---------------- ##
2174 ## Cache variables. ##
2175 ## ---------------- ##
2176 _ASBOX
2177 echo
2178 # The following way of writing the cache mishandles newlines in values,
2179 (
2180 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2181 eval ac_val=\$$ac_var
2182 case $ac_val in #(
2183 *${as_nl}*)
2184 case $ac_var in #(
2185 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2186 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2187 esac
2188 case $ac_var in #(
2189 _ | IFS | as_nl) ;; #(
2190 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2191 *) { eval $ac_var=; unset $ac_var;} ;;
2192 esac ;;
2193 esac
2194 done
2195 (set) 2>&1 |
2196 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2197 *${as_nl}ac_space=\ *)
2198 sed -n \
2199 "s/'\''/'\''\\\\'\'''\''/g;
2200 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2201 ;; #(
2202 *)
2203 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2204 ;;
2205 esac |
2206 sort
2207 )
2208 echo
2209
2210 cat <<\_ASBOX
2211 ## ----------------- ##
2212 ## Output variables. ##
2213 ## ----------------- ##
2214 _ASBOX
2215 echo
2216 for ac_var in $ac_subst_vars
2217 do
2218 eval ac_val=\$$ac_var
2219 case $ac_val in
2220 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2221 esac
2222 $as_echo "$ac_var='\''$ac_val'\''"
2223 done | sort
2224 echo
2225
2226 if test -n "$ac_subst_files"; then
2227 cat <<\_ASBOX
2228 ## ------------------- ##
2229 ## File substitutions. ##
2230 ## ------------------- ##
2231 _ASBOX
2232 echo
2233 for ac_var in $ac_subst_files
2234 do
2235 eval ac_val=\$$ac_var
2236 case $ac_val in
2237 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2238 esac
2239 $as_echo "$ac_var='\''$ac_val'\''"
2240 done | sort
2241 echo
2242 fi
2243
2244 if test -s confdefs.h; then
2245 cat <<\_ASBOX
2246 ## ----------- ##
2247 ## confdefs.h. ##
2248 ## ----------- ##
2249 _ASBOX
2250 echo
2251 cat confdefs.h
2252 echo
2253 fi
2254 test "$ac_signal" != 0 &&
2255 $as_echo "$as_me: caught signal $ac_signal"
2256 $as_echo "$as_me: exit $exit_status"
2257 } >&5
2258 rm -f core *.core core.conftest.* &&
2259 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2260 exit $exit_status
2261 ' 0
2262 for ac_signal in 1 2 13 15; do
2263 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2264 done
2265 ac_signal=0
2266
2267 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2268 rm -f -r conftest* confdefs.h
2269
2270 $as_echo "/* confdefs.h */" > confdefs.h
2271
2272 # Predefined preprocessor variables.
2273
2274 cat >>confdefs.h <<_ACEOF
2275 #define PACKAGE_NAME "$PACKAGE_NAME"
2276 _ACEOF
2277
2278 cat >>confdefs.h <<_ACEOF
2279 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2280 _ACEOF
2281
2282 cat >>confdefs.h <<_ACEOF
2283 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2284 _ACEOF
2285
2286 cat >>confdefs.h <<_ACEOF
2287 #define PACKAGE_STRING "$PACKAGE_STRING"
2288 _ACEOF
2289
2290 cat >>confdefs.h <<_ACEOF
2291 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2292 _ACEOF
2293
2294 cat >>confdefs.h <<_ACEOF
2295 #define PACKAGE_URL "$PACKAGE_URL"
2296 _ACEOF
2297
2298
2299 # Let the site file select an alternate cache file if it wants to.
2300 # Prefer an explicitly selected file to automatically selected ones.
2301 ac_site_file1=NONE
2302 ac_site_file2=NONE
2303 if test -n "$CONFIG_SITE"; then
2304 ac_site_file1=$CONFIG_SITE
2305 elif test "x$prefix" != xNONE; then
2306 ac_site_file1=$prefix/share/config.site
2307 ac_site_file2=$prefix/etc/config.site
2308 else
2309 ac_site_file1=$ac_default_prefix/share/config.site
2310 ac_site_file2=$ac_default_prefix/etc/config.site
2311 fi
2312 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2313 do
2314 test "x$ac_site_file" = xNONE && continue
2315 if test -r "$ac_site_file"; then
2316 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2317 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2318 sed 's/^/| /' "$ac_site_file" >&5
2319 . "$ac_site_file"
2320 fi
2321 done
2322
2323 if test -r "$cache_file"; then
2324 # Some versions of bash will fail to source /dev/null (special
2325 # files actually), so we avoid doing that.
2326 if test -f "$cache_file"; then
2327 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2328 $as_echo "$as_me: loading cache $cache_file" >&6;}
2329 case $cache_file in
2330 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2331 *) . "./$cache_file";;
2332 esac
2333 fi
2334 else
2335 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2336 $as_echo "$as_me: creating cache $cache_file" >&6;}
2337 >$cache_file
2338 fi
2339
2340 # Check that the precious variables saved in the cache have kept the same
2341 # value.
2342 ac_cache_corrupted=false
2343 for ac_var in $ac_precious_vars; do
2344 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2345 eval ac_new_set=\$ac_env_${ac_var}_set
2346 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2347 eval ac_new_val=\$ac_env_${ac_var}_value
2348 case $ac_old_set,$ac_new_set in
2349 set,)
2350 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2351 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2352 ac_cache_corrupted=: ;;
2353 ,set)
2354 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2355 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2356 ac_cache_corrupted=: ;;
2357 ,);;
2358 *)
2359 if test "x$ac_old_val" != "x$ac_new_val"; then
2360 # differences in whitespace do not lead to failure.
2361 ac_old_val_w=`echo x $ac_old_val`
2362 ac_new_val_w=`echo x $ac_new_val`
2363 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2364 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2365 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2366 ac_cache_corrupted=:
2367 else
2368 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2369 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2370 eval $ac_var=\$ac_old_val
2371 fi
2372 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2373 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2374 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2375 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2376 fi;;
2377 esac
2378 # Pass precious variables to config.status.
2379 if test "$ac_new_set" = set; then
2380 case $ac_new_val in
2381 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2382 *) ac_arg=$ac_var=$ac_new_val ;;
2383 esac
2384 case " $ac_configure_args " in
2385 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2386 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2387 esac
2388 fi
2389 done
2390 if $ac_cache_corrupted; then
2391 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2392 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2393 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2394 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2395 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2396 fi
2397 ## -------------------- ##
2398 ## Main body of script. ##
2399 ## -------------------- ##
2400
2401 ac_ext=c
2402 ac_cpp='$CPP $CPPFLAGS'
2403 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2404 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2405 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2406
2407
2408
2409
2410
2411
2412
2413 ac_aux_dir=
2414 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2415 for ac_t in install-sh install.sh shtool; do
2416 if test -f "$ac_dir/$ac_t"; then
2417 ac_aux_dir=$ac_dir
2418 ac_install_sh="$ac_aux_dir/$ac_t -c"
2419 break 2
2420 fi
2421 done
2422 done
2423 if test -z "$ac_aux_dir"; then
2424 as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2425 fi
2426
2427 # These three variables are undocumented and unsupported,
2428 # and are intended to be withdrawn in a future Autoconf release.
2429 # They can cause serious problems if a builder's source tree is in a directory
2430 # whose full name contains unusual characters.
2431 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2432 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2433 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2434
2435
2436 # Make sure we can run config.sub.
2437 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2438 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2439
2440 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2441 $as_echo_n "checking build system type... " >&6; }
2442 if test "${ac_cv_build+set}" = set; then :
2443 $as_echo_n "(cached) " >&6
2444 else
2445 ac_build_alias=$build_alias
2446 test "x$ac_build_alias" = x &&
2447 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2448 test "x$ac_build_alias" = x &&
2449 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
2450 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2451 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2452
2453 fi
2454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2455 $as_echo "$ac_cv_build" >&6; }
2456 case $ac_cv_build in
2457 *-*-*) ;;
2458 *) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
2459 esac
2460 build=$ac_cv_build
2461 ac_save_IFS=$IFS; IFS='-'
2462 set x $ac_cv_build
2463 shift
2464 build_cpu=$1
2465 build_vendor=$2
2466 shift; shift
2467 # Remember, the first character of IFS is used to create $*,
2468 # except with old shells:
2469 build_os=$*
2470 IFS=$ac_save_IFS
2471 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2472
2473
2474 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2475 $as_echo_n "checking host system type... " >&6; }
2476 if test "${ac_cv_host+set}" = set; then :
2477 $as_echo_n "(cached) " >&6
2478 else
2479 if test "x$host_alias" = x; then
2480 ac_cv_host=$ac_cv_build
2481 else
2482 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2483 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2484 fi
2485
2486 fi
2487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2488 $as_echo "$ac_cv_host" >&6; }
2489 case $ac_cv_host in
2490 *-*-*) ;;
2491 *) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
2492 esac
2493 host=$ac_cv_host
2494 ac_save_IFS=$IFS; IFS='-'
2495 set x $ac_cv_host
2496 shift
2497 host_cpu=$1
2498 host_vendor=$2
2499 shift; shift
2500 # Remember, the first character of IFS is used to create $*,
2501 # except with old shells:
2502 host_os=$*
2503 IFS=$ac_save_IFS
2504 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2505
2506
2507 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2508 $as_echo_n "checking target system type... " >&6; }
2509 if test "${ac_cv_target+set}" = set; then :
2510 $as_echo_n "(cached) " >&6
2511 else
2512 if test "x$target_alias" = x; then
2513 ac_cv_target=$ac_cv_host
2514 else
2515 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2516 as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2517 fi
2518
2519 fi
2520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2521 $as_echo "$ac_cv_target" >&6; }
2522 case $ac_cv_target in
2523 *-*-*) ;;
2524 *) as_fn_error "invalid value of canonical target" "$LINENO" 5;;
2525 esac
2526 target=$ac_cv_target
2527 ac_save_IFS=$IFS; IFS='-'
2528 set x $ac_cv_target
2529 shift
2530 target_cpu=$1
2531 target_vendor=$2
2532 shift; shift
2533 # Remember, the first character of IFS is used to create $*,
2534 # except with old shells:
2535 target_os=$*
2536 IFS=$ac_save_IFS
2537 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2538
2539
2540 # The aliases save the names the user supplied, while $host etc.
2541 # will get canonicalized.
2542 test -n "$target_alias" &&
2543 test "$program_prefix$program_suffix$program_transform_name" = \
2544 NONENONEs,x,x, &&
2545 program_prefix=${target_alias}-
2546 ac_ext=c
2547 ac_cpp='$CPP $CPPFLAGS'
2548 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2549 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2550 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2551 if test -n "$ac_tool_prefix"; then
2552 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2553 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2554 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2555 $as_echo_n "checking for $ac_word... " >&6; }
2556 if test "${ac_cv_prog_CC+set}" = set; then :
2557 $as_echo_n "(cached) " >&6
2558 else
2559 if test -n "$CC"; then
2560 ac_cv_prog_CC="$CC" # Let the user override the test.
2561 else
2562 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2563 for as_dir in $PATH
2564 do
2565 IFS=$as_save_IFS
2566 test -z "$as_dir" && as_dir=.
2567 for ac_exec_ext in '' $ac_executable_extensions; do
2568 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2569 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2570 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2571 break 2
2572 fi
2573 done
2574 done
2575 IFS=$as_save_IFS
2576
2577 fi
2578 fi
2579 CC=$ac_cv_prog_CC
2580 if test -n "$CC"; then
2581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2582 $as_echo "$CC" >&6; }
2583 else
2584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2585 $as_echo "no" >&6; }
2586 fi
2587
2588
2589 fi
2590 if test -z "$ac_cv_prog_CC"; then
2591 ac_ct_CC=$CC
2592 # Extract the first word of "gcc", so it can be a program name with args.
2593 set dummy gcc; ac_word=$2
2594 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2595 $as_echo_n "checking for $ac_word... " >&6; }
2596 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
2597 $as_echo_n "(cached) " >&6
2598 else
2599 if test -n "$ac_ct_CC"; then
2600 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2601 else
2602 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2603 for as_dir in $PATH
2604 do
2605 IFS=$as_save_IFS
2606 test -z "$as_dir" && as_dir=.
2607 for ac_exec_ext in '' $ac_executable_extensions; do
2608 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2609 ac_cv_prog_ac_ct_CC="gcc"
2610 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2611 break 2
2612 fi
2613 done
2614 done
2615 IFS=$as_save_IFS
2616
2617 fi
2618 fi
2619 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2620 if test -n "$ac_ct_CC"; then
2621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2622 $as_echo "$ac_ct_CC" >&6; }
2623 else
2624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2625 $as_echo "no" >&6; }
2626 fi
2627
2628 if test "x$ac_ct_CC" = x; then
2629 CC=""
2630 else
2631 case $cross_compiling:$ac_tool_warned in
2632 yes:)
2633 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2634 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2635 ac_tool_warned=yes ;;
2636 esac
2637 CC=$ac_ct_CC
2638 fi
2639 else
2640 CC="$ac_cv_prog_CC"
2641 fi
2642
2643 if test -z "$CC"; then
2644 if test -n "$ac_tool_prefix"; then
2645 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2646 set dummy ${ac_tool_prefix}cc; ac_word=$2
2647 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2648 $as_echo_n "checking for $ac_word... " >&6; }
2649 if test "${ac_cv_prog_CC+set}" = set; then :
2650 $as_echo_n "(cached) " >&6
2651 else
2652 if test -n "$CC"; then
2653 ac_cv_prog_CC="$CC" # Let the user override the test.
2654 else
2655 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2656 for as_dir in $PATH
2657 do
2658 IFS=$as_save_IFS
2659 test -z "$as_dir" && as_dir=.
2660 for ac_exec_ext in '' $ac_executable_extensions; do
2661 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2662 ac_cv_prog_CC="${ac_tool_prefix}cc"
2663 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2664 break 2
2665 fi
2666 done
2667 done
2668 IFS=$as_save_IFS
2669
2670 fi
2671 fi
2672 CC=$ac_cv_prog_CC
2673 if test -n "$CC"; then
2674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2675 $as_echo "$CC" >&6; }
2676 else
2677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2678 $as_echo "no" >&6; }
2679 fi
2680
2681
2682 fi
2683 fi
2684 if test -z "$CC"; then
2685 # Extract the first word of "cc", so it can be a program name with args.
2686 set dummy cc; ac_word=$2
2687 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2688 $as_echo_n "checking for $ac_word... " >&6; }
2689 if test "${ac_cv_prog_CC+set}" = set; then :
2690 $as_echo_n "(cached) " >&6
2691 else
2692 if test -n "$CC"; then
2693 ac_cv_prog_CC="$CC" # Let the user override the test.
2694 else
2695 ac_prog_rejected=no
2696 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2697 for as_dir in $PATH
2698 do
2699 IFS=$as_save_IFS
2700 test -z "$as_dir" && as_dir=.
2701 for ac_exec_ext in '' $ac_executable_extensions; do
2702 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2703 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2704 ac_prog_rejected=yes
2705 continue
2706 fi
2707 ac_cv_prog_CC="cc"
2708 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2709 break 2
2710 fi
2711 done
2712 done
2713 IFS=$as_save_IFS
2714
2715 if test $ac_prog_rejected = yes; then
2716 # We found a bogon in the path, so make sure we never use it.
2717 set dummy $ac_cv_prog_CC
2718 shift
2719 if test $# != 0; then
2720 # We chose a different compiler from the bogus one.
2721 # However, it has the same basename, so the bogon will be chosen
2722 # first if we set CC to just the basename; use the full file name.
2723 shift
2724 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2725 fi
2726 fi
2727 fi
2728 fi
2729 CC=$ac_cv_prog_CC
2730 if test -n "$CC"; then
2731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2732 $as_echo "$CC" >&6; }
2733 else
2734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2735 $as_echo "no" >&6; }
2736 fi
2737
2738
2739 fi
2740 if test -z "$CC"; then
2741 if test -n "$ac_tool_prefix"; then
2742 for ac_prog in cl.exe
2743 do
2744 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2745 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2746 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2747 $as_echo_n "checking for $ac_word... " >&6; }
2748 if test "${ac_cv_prog_CC+set}" = set; then :
2749 $as_echo_n "(cached) " >&6
2750 else
2751 if test -n "$CC"; then
2752 ac_cv_prog_CC="$CC" # Let the user override the test.
2753 else
2754 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2755 for as_dir in $PATH
2756 do
2757 IFS=$as_save_IFS
2758 test -z "$as_dir" && as_dir=.
2759 for ac_exec_ext in '' $ac_executable_extensions; do
2760 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2761 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2762 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2763 break 2
2764 fi
2765 done
2766 done
2767 IFS=$as_save_IFS
2768
2769 fi
2770 fi
2771 CC=$ac_cv_prog_CC
2772 if test -n "$CC"; then
2773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2774 $as_echo "$CC" >&6; }
2775 else
2776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2777 $as_echo "no" >&6; }
2778 fi
2779
2780
2781 test -n "$CC" && break
2782 done
2783 fi
2784 if test -z "$CC"; then
2785 ac_ct_CC=$CC
2786 for ac_prog in cl.exe
2787 do
2788 # Extract the first word of "$ac_prog", so it can be a program name with args.
2789 set dummy $ac_prog; ac_word=$2
2790 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2791 $as_echo_n "checking for $ac_word... " >&6; }
2792 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
2793 $as_echo_n "(cached) " >&6
2794 else
2795 if test -n "$ac_ct_CC"; then
2796 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2797 else
2798 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2799 for as_dir in $PATH
2800 do
2801 IFS=$as_save_IFS
2802 test -z "$as_dir" && as_dir=.
2803 for ac_exec_ext in '' $ac_executable_extensions; do
2804 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2805 ac_cv_prog_ac_ct_CC="$ac_prog"
2806 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2807 break 2
2808 fi
2809 done
2810 done
2811 IFS=$as_save_IFS
2812
2813 fi
2814 fi
2815 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2816 if test -n "$ac_ct_CC"; then
2817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2818 $as_echo "$ac_ct_CC" >&6; }
2819 else
2820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2821 $as_echo "no" >&6; }
2822 fi
2823
2824
2825 test -n "$ac_ct_CC" && break
2826 done
2827
2828 if test "x$ac_ct_CC" = x; then
2829 CC=""
2830 else
2831 case $cross_compiling:$ac_tool_warned in
2832 yes:)
2833 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2834 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2835 ac_tool_warned=yes ;;
2836 esac
2837 CC=$ac_ct_CC
2838 fi
2839 fi
2840
2841 fi
2842
2843
2844 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2845 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2846 as_fn_error "no acceptable C compiler found in \$PATH
2847 See \`config.log' for more details." "$LINENO" 5; }
2848
2849 # Provide some information about the compiler.
2850 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
2851 set X $ac_compile
2852 ac_compiler=$2
2853 for ac_option in --version -v -V -qversion; do
2854 { { ac_try="$ac_compiler $ac_option >&5"
2855 case "(($ac_try" in
2856 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2857 *) ac_try_echo=$ac_try;;
2858 esac
2859 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2860 $as_echo "$ac_try_echo"; } >&5
2861 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
2862 ac_status=$?
2863 if test -s conftest.err; then
2864 sed '10a\
2865 ... rest of stderr output deleted ...
2866 10q' conftest.err >conftest.er1
2867 cat conftest.er1 >&5
2868 rm -f conftest.er1 conftest.err
2869 fi
2870 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2871 test $ac_status = 0; }
2872 done
2873
2874 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2875 /* end confdefs.h. */
2876
2877 int
2878 main ()
2879 {
2880
2881 ;
2882 return 0;
2883 }
2884 _ACEOF
2885 ac_clean_files_save=$ac_clean_files
2886 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
2887 # Try to create an executable without -o first, disregard a.out.
2888 # It will help us diagnose broken compilers, and finding out an intuition
2889 # of exeext.
2890 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
2891 $as_echo_n "checking for C compiler default output file name... " >&6; }
2892 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2893
2894 # The possible output files:
2895 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2896
2897 ac_rmfiles=
2898 for ac_file in $ac_files
2899 do
2900 case $ac_file in
2901 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2902 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2903 esac
2904 done
2905 rm -f $ac_rmfiles
2906
2907 if { { ac_try="$ac_link_default"
2908 case "(($ac_try" in
2909 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2910 *) ac_try_echo=$ac_try;;
2911 esac
2912 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2913 $as_echo "$ac_try_echo"; } >&5
2914 (eval "$ac_link_default") 2>&5
2915 ac_status=$?
2916 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2917 test $ac_status = 0; }; then :
2918 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2919 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2920 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2921 # so that the user can short-circuit this test for compilers unknown to
2922 # Autoconf.
2923 for ac_file in $ac_files ''
2924 do
2925 test -f "$ac_file" || continue
2926 case $ac_file in
2927 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
2928 ;;
2929 [ab].out )
2930 # We found the default executable, but exeext='' is most
2931 # certainly right.
2932 break;;
2933 *.* )
2934 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2935 then :; else
2936 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2937 fi
2938 # We set ac_cv_exeext here because the later test for it is not
2939 # safe: cross compilers may not add the suffix if given an `-o'
2940 # argument, so we may need to know it at that point already.
2941 # Even if this section looks crufty: it has the advantage of
2942 # actually working.
2943 break;;
2944 * )
2945 break;;
2946 esac
2947 done
2948 test "$ac_cv_exeext" = no && ac_cv_exeext=
2949
2950 else
2951 ac_file=''
2952 fi
2953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
2954 $as_echo "$ac_file" >&6; }
2955 if test -z "$ac_file"; then :
2956 $as_echo "$as_me: failed program was:" >&5
2957 sed 's/^/| /' conftest.$ac_ext >&5
2958
2959 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2960 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2961 { as_fn_set_status 77
2962 as_fn_error "C compiler cannot create executables
2963 See \`config.log' for more details." "$LINENO" 5; }; }
2964 fi
2965 ac_exeext=$ac_cv_exeext
2966
2967 # Check that the compiler produces executables we can run. If not, either
2968 # the compiler is broken, or we cross compile.
2969 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
2970 $as_echo_n "checking whether the C compiler works... " >&6; }
2971 # If not cross compiling, check that we can run a simple program.
2972 if test "$cross_compiling" != yes; then
2973 if { ac_try='./$ac_file'
2974 { { case "(($ac_try" in
2975 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2976 *) ac_try_echo=$ac_try;;
2977 esac
2978 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2979 $as_echo "$ac_try_echo"; } >&5
2980 (eval "$ac_try") 2>&5
2981 ac_status=$?
2982 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2983 test $ac_status = 0; }; }; then
2984 cross_compiling=no
2985 else
2986 if test "$cross_compiling" = maybe; then
2987 cross_compiling=yes
2988 else
2989 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2990 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2991 as_fn_error "cannot run C compiled programs.
2992 If you meant to cross compile, use \`--host'.
2993 See \`config.log' for more details." "$LINENO" 5; }
2994 fi
2995 fi
2996 fi
2997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2998 $as_echo "yes" >&6; }
2999
3000 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
3001 ac_clean_files=$ac_clean_files_save
3002 # Check that the compiler produces executables we can run. If not, either
3003 # the compiler is broken, or we cross compile.
3004 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3005 $as_echo_n "checking whether we are cross compiling... " >&6; }
3006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3007 $as_echo "$cross_compiling" >&6; }
3008
3009 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3010 $as_echo_n "checking for suffix of executables... " >&6; }
3011 if { { ac_try="$ac_link"
3012 case "(($ac_try" in
3013 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3014 *) ac_try_echo=$ac_try;;
3015 esac
3016 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3017 $as_echo "$ac_try_echo"; } >&5
3018 (eval "$ac_link") 2>&5
3019 ac_status=$?
3020 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3021 test $ac_status = 0; }; then :
3022 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3023 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3024 # work properly (i.e., refer to `conftest.exe'), while it won't with
3025 # `rm'.
3026 for ac_file in conftest.exe conftest conftest.*; do
3027 test -f "$ac_file" || continue
3028 case $ac_file in
3029 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3030 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3031 break;;
3032 * ) break;;
3033 esac
3034 done
3035 else
3036 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3037 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3038 as_fn_error "cannot compute suffix of executables: cannot compile and link
3039 See \`config.log' for more details." "$LINENO" 5; }
3040 fi
3041 rm -f conftest$ac_cv_exeext
3042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3043 $as_echo "$ac_cv_exeext" >&6; }
3044
3045 rm -f conftest.$ac_ext
3046 EXEEXT=$ac_cv_exeext
3047 ac_exeext=$EXEEXT
3048 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3049 $as_echo_n "checking for suffix of object files... " >&6; }
3050 if test "${ac_cv_objext+set}" = set; then :
3051 $as_echo_n "(cached) " >&6
3052 else
3053 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3054 /* end confdefs.h. */
3055
3056 int
3057 main ()
3058 {
3059
3060 ;
3061 return 0;
3062 }
3063 _ACEOF
3064 rm -f conftest.o conftest.obj
3065 if { { ac_try="$ac_compile"
3066 case "(($ac_try" in
3067 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3068 *) ac_try_echo=$ac_try;;
3069 esac
3070 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3071 $as_echo "$ac_try_echo"; } >&5
3072 (eval "$ac_compile") 2>&5
3073 ac_status=$?
3074 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3075 test $ac_status = 0; }; then :
3076 for ac_file in conftest.o conftest.obj conftest.*; do
3077 test -f "$ac_file" || continue;
3078 case $ac_file in
3079 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3080 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3081 break;;
3082 esac
3083 done
3084 else
3085 $as_echo "$as_me: failed program was:" >&5
3086 sed 's/^/| /' conftest.$ac_ext >&5
3087
3088 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3089 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3090 as_fn_error "cannot compute suffix of object files: cannot compile
3091 See \`config.log' for more details." "$LINENO" 5; }
3092 fi
3093 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3094 fi
3095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3096 $as_echo "$ac_cv_objext" >&6; }
3097 OBJEXT=$ac_cv_objext
3098 ac_objext=$OBJEXT
3099 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3100 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3101 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
3102 $as_echo_n "(cached) " >&6
3103 else
3104 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3105 /* end confdefs.h. */
3106
3107 int
3108 main ()
3109 {
3110 #ifndef __GNUC__
3111 choke me
3112 #endif
3113
3114 ;
3115 return 0;
3116 }
3117 _ACEOF
3118 if ac_fn_c_try_compile "$LINENO"; then :
3119 ac_compiler_gnu=yes
3120 else
3121 ac_compiler_gnu=no
3122 fi
3123 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3124 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3125
3126 fi
3127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3128 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3129 if test $ac_compiler_gnu = yes; then
3130 GCC=yes
3131 else
3132 GCC=
3133 fi
3134 ac_test_CFLAGS=${CFLAGS+set}
3135 ac_save_CFLAGS=$CFLAGS
3136 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3137 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3138 if test "${ac_cv_prog_cc_g+set}" = set; then :
3139 $as_echo_n "(cached) " >&6
3140 else
3141 ac_save_c_werror_flag=$ac_c_werror_flag
3142 ac_c_werror_flag=yes
3143 ac_cv_prog_cc_g=no
3144 CFLAGS="-g"
3145 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3146 /* end confdefs.h. */
3147
3148 int
3149 main ()
3150 {
3151
3152 ;
3153 return 0;
3154 }
3155 _ACEOF
3156 if ac_fn_c_try_compile "$LINENO"; then :
3157 ac_cv_prog_cc_g=yes
3158 else
3159 CFLAGS=""
3160 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3161 /* end confdefs.h. */
3162
3163 int
3164 main ()
3165 {
3166
3167 ;
3168 return 0;
3169 }
3170 _ACEOF
3171 if ac_fn_c_try_compile "$LINENO"; then :
3172
3173 else
3174 ac_c_werror_flag=$ac_save_c_werror_flag
3175 CFLAGS="-g"
3176 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3177 /* end confdefs.h. */
3178
3179 int
3180 main ()
3181 {
3182
3183 ;
3184 return 0;
3185 }
3186 _ACEOF
3187 if ac_fn_c_try_compile "$LINENO"; then :
3188 ac_cv_prog_cc_g=yes
3189 fi
3190 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3191 fi
3192 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3193 fi
3194 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3195 ac_c_werror_flag=$ac_save_c_werror_flag
3196 fi
3197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3198 $as_echo "$ac_cv_prog_cc_g" >&6; }
3199 if test "$ac_test_CFLAGS" = set; then
3200 CFLAGS=$ac_save_CFLAGS
3201 elif test $ac_cv_prog_cc_g = yes; then
3202 if test "$GCC" = yes; then
3203 CFLAGS="-g -O2"
3204 else
3205 CFLAGS="-g"
3206 fi
3207 else
3208 if test "$GCC" = yes; then
3209 CFLAGS="-O2"
3210 else
3211 CFLAGS=
3212 fi
3213 fi
3214 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3215 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3216 if test "${ac_cv_prog_cc_c89+set}" = set; then :
3217 $as_echo_n "(cached) " >&6
3218 else
3219 ac_cv_prog_cc_c89=no
3220 ac_save_CC=$CC
3221 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3222 /* end confdefs.h. */
3223 #include <stdarg.h>
3224 #include <stdio.h>
3225 #include <sys/types.h>
3226 #include <sys/stat.h>
3227 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3228 struct buf { int x; };
3229 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3230 static char *e (p, i)
3231 char **p;
3232 int i;
3233 {
3234 return p[i];
3235 }
3236 static char *f (char * (*g) (char **, int), char **p, ...)
3237 {
3238 char *s;
3239 va_list v;
3240 va_start (v,p);
3241 s = g (p, va_arg (v,int));
3242 va_end (v);
3243 return s;
3244 }
3245
3246 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3247 function prototypes and stuff, but not '\xHH' hex character constants.
3248 These don't provoke an error unfortunately, instead are silently treated
3249 as 'x'. The following induces an error, until -std is added to get
3250 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3251 array size at least. It's necessary to write '\x00'==0 to get something
3252 that's true only with -std. */
3253 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3254
3255 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3256 inside strings and character constants. */
3257 #define FOO(x) 'x'
3258 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3259
3260 int test (int i, double x);
3261 struct s1 {int (*f) (int a);};
3262 struct s2 {int (*f) (double a);};
3263 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3264 int argc;
3265 char **argv;
3266 int
3267 main ()
3268 {
3269 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3270 ;
3271 return 0;
3272 }
3273 _ACEOF
3274 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3275 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3276 do
3277 CC="$ac_save_CC $ac_arg"
3278 if ac_fn_c_try_compile "$LINENO"; then :
3279 ac_cv_prog_cc_c89=$ac_arg
3280 fi
3281 rm -f core conftest.err conftest.$ac_objext
3282 test "x$ac_cv_prog_cc_c89" != "xno" && break
3283 done
3284 rm -f conftest.$ac_ext
3285 CC=$ac_save_CC
3286
3287 fi
3288 # AC_CACHE_VAL
3289 case "x$ac_cv_prog_cc_c89" in
3290 x)
3291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3292 $as_echo "none needed" >&6; } ;;
3293 xno)
3294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3295 $as_echo "unsupported" >&6; } ;;
3296 *)
3297 CC="$CC $ac_cv_prog_cc_c89"
3298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3299 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3300 esac
3301 if test "x$ac_cv_prog_cc_c89" != xno; then :
3302
3303 fi
3304
3305 ac_ext=c
3306 ac_cpp='$CPP $CPPFLAGS'
3307 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3308 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3309 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3310
3311
3312 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing strerror" >&5
3313 $as_echo_n "checking for library containing strerror... " >&6; }
3314 if test "${ac_cv_search_strerror+set}" = set; then :
3315 $as_echo_n "(cached) " >&6
3316 else
3317 ac_func_search_save_LIBS=$LIBS
3318 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3319 /* end confdefs.h. */
3320
3321 /* Override any GCC internal prototype to avoid an error.
3322 Use char because int might match the return type of a GCC
3323 builtin and then its argument prototype would still apply. */
3324 #ifdef __cplusplus
3325 extern "C"
3326 #endif
3327 char strerror ();
3328 int
3329 main ()
3330 {
3331 return strerror ();
3332 ;
3333 return 0;
3334 }
3335 _ACEOF
3336 for ac_lib in '' cposix; do
3337 if test -z "$ac_lib"; then
3338 ac_res="none required"
3339 else
3340 ac_res=-l$ac_lib
3341 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
3342 fi
3343 if ac_fn_c_try_link "$LINENO"; then :
3344 ac_cv_search_strerror=$ac_res
3345 fi
3346 rm -f core conftest.err conftest.$ac_objext \
3347 conftest$ac_exeext
3348 if test "${ac_cv_search_strerror+set}" = set; then :
3349 break
3350 fi
3351 done
3352 if test "${ac_cv_search_strerror+set}" = set; then :
3353
3354 else
3355 ac_cv_search_strerror=no
3356 fi
3357 rm conftest.$ac_ext
3358 LIBS=$ac_func_search_save_LIBS
3359 fi
3360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_strerror" >&5
3361 $as_echo "$ac_cv_search_strerror" >&6; }
3362 ac_res=$ac_cv_search_strerror
3363 if test "$ac_res" != no; then :
3364 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
3365
3366 fi
3367
3368
3369 BFD_VERSION=`sed -n -e 's/^.._INIT_AUTOMAKE.*,[ ]*\([^ ]*\)[ ]*).*/\1/p' < ${srcdir}/../bfd/configure.in`
3370 am__api_version='1.11'
3371
3372 # Find a good install program. We prefer a C program (faster),
3373 # so one script is as good as another. But avoid the broken or
3374 # incompatible versions:
3375 # SysV /etc/install, /usr/sbin/install
3376 # SunOS /usr/etc/install
3377 # IRIX /sbin/install
3378 # AIX /bin/install
3379 # AmigaOS /C/install, which installs bootblocks on floppy discs
3380 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3381 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3382 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3383 # OS/2's system install, which has a completely different semantic
3384 # ./install, which can be erroneously created by make from ./install.sh.
3385 # Reject install programs that cannot install multiple files.
3386 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
3387 $as_echo_n "checking for a BSD-compatible install... " >&6; }
3388 if test -z "$INSTALL"; then
3389 if test "${ac_cv_path_install+set}" = set; then :
3390 $as_echo_n "(cached) " >&6
3391 else
3392 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3393 for as_dir in $PATH
3394 do
3395 IFS=$as_save_IFS
3396 test -z "$as_dir" && as_dir=.
3397 # Account for people who put trailing slashes in PATH elements.
3398 case $as_dir/ in #((
3399 ./ | .// | /[cC]/* | \
3400 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3401 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
3402 /usr/ucb/* ) ;;
3403 *)
3404 # OSF1 and SCO ODT 3.0 have their own names for install.
3405 # Don't use installbsd from OSF since it installs stuff as root
3406 # by default.
3407 for ac_prog in ginstall scoinst install; do
3408 for ac_exec_ext in '' $ac_executable_extensions; do
3409 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
3410 if test $ac_prog = install &&
3411 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3412 # AIX install. It has an incompatible calling convention.
3413 :
3414 elif test $ac_prog = install &&
3415 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3416 # program-specific install script used by HP pwplus--don't use.
3417 :
3418 else
3419 rm -rf conftest.one conftest.two conftest.dir
3420 echo one > conftest.one
3421 echo two > conftest.two
3422 mkdir conftest.dir
3423 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
3424 test -s conftest.one && test -s conftest.two &&
3425 test -s conftest.dir/conftest.one &&
3426 test -s conftest.dir/conftest.two
3427 then
3428 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3429 break 3
3430 fi
3431 fi
3432 fi
3433 done
3434 done
3435 ;;
3436 esac
3437
3438 done
3439 IFS=$as_save_IFS
3440
3441 rm -rf conftest.one conftest.two conftest.dir
3442
3443 fi
3444 if test "${ac_cv_path_install+set}" = set; then
3445 INSTALL=$ac_cv_path_install
3446 else
3447 # As a last resort, use the slow shell script. Don't cache a
3448 # value for INSTALL within a source directory, because that will
3449 # break other packages using the cache if that directory is
3450 # removed, or if the value is a relative name.
3451 INSTALL=$ac_install_sh
3452 fi
3453 fi
3454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
3455 $as_echo "$INSTALL" >&6; }
3456
3457 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3458 # It thinks the first close brace ends the variable substitution.
3459 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3460
3461 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3462
3463 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3464
3465 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
3466 $as_echo_n "checking whether build environment is sane... " >&6; }
3467 # Just in case
3468 sleep 1
3469 echo timestamp > conftest.file
3470 # Reject unsafe characters in $srcdir or the absolute working directory
3471 # name. Accept space and tab only in the latter.
3472 am_lf='
3473 '
3474 case `pwd` in
3475 *[\\\"\#\$\&\'\`$am_lf]*)
3476 as_fn_error "unsafe absolute working directory name" "$LINENO" 5;;
3477 esac
3478 case $srcdir in
3479 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
3480 as_fn_error "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
3481 esac
3482
3483 # Do `set' in a subshell so we don't clobber the current shell's
3484 # arguments. Must try -L first in case configure is actually a
3485 # symlink; some systems play weird games with the mod time of symlinks
3486 # (eg FreeBSD returns the mod time of the symlink's containing
3487 # directory).
3488 if (
3489 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
3490 if test "$*" = "X"; then
3491 # -L didn't work.
3492 set X `ls -t "$srcdir/configure" conftest.file`
3493 fi
3494 rm -f conftest.file
3495 if test "$*" != "X $srcdir/configure conftest.file" \
3496 && test "$*" != "X conftest.file $srcdir/configure"; then
3497
3498 # If neither matched, then we have a broken ls. This can happen
3499 # if, for instance, CONFIG_SHELL is bash and it inherits a
3500 # broken ls alias from the environment. This has actually
3501 # happened. Such a system could not be considered "sane".
3502 as_fn_error "ls -t appears to fail. Make sure there is not a broken
3503 alias in your environment" "$LINENO" 5
3504 fi
3505
3506 test "$2" = conftest.file
3507 )
3508 then
3509 # Ok.
3510 :
3511 else
3512 as_fn_error "newly created file is older than distributed files!
3513 Check your system clock" "$LINENO" 5
3514 fi
3515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3516 $as_echo "yes" >&6; }
3517 test "$program_prefix" != NONE &&
3518 program_transform_name="s&^&$program_prefix&;$program_transform_name"
3519 # Use a double $ so make ignores it.
3520 test "$program_suffix" != NONE &&
3521 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3522 # Double any \ or $.
3523 # By default was `s,x,x', remove it if useless.
3524 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3525 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
3526
3527 # expand $ac_aux_dir to an absolute path
3528 am_aux_dir=`cd $ac_aux_dir && pwd`
3529
3530 if test x"${MISSING+set}" != xset; then
3531 case $am_aux_dir in
3532 *\ * | *\ *)
3533 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
3534 *)
3535 MISSING="\${SHELL} $am_aux_dir/missing" ;;
3536 esac
3537 fi
3538 # Use eval to expand $SHELL
3539 if eval "$MISSING --run true"; then
3540 am_missing_run="$MISSING --run "
3541 else
3542 am_missing_run=
3543 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
3544 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
3545 fi
3546
3547 if test x"${install_sh}" != xset; then
3548 case $am_aux_dir in
3549 *\ * | *\ *)
3550 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
3551 *)
3552 install_sh="\${SHELL} $am_aux_dir/install-sh"
3553 esac
3554 fi
3555
3556 # Installed binaries are usually stripped using `strip' when the user
3557 # run `make install-strip'. However `strip' might not be the right
3558 # tool to use in cross-compilation environments, therefore Automake
3559 # will honor the `STRIP' environment variable to overrule this program.
3560 if test "$cross_compiling" != no; then
3561 if test -n "$ac_tool_prefix"; then
3562 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3563 set dummy ${ac_tool_prefix}strip; ac_word=$2
3564 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3565 $as_echo_n "checking for $ac_word... " >&6; }
3566 if test "${ac_cv_prog_STRIP+set}" = set; then :
3567 $as_echo_n "(cached) " >&6
3568 else
3569 if test -n "$STRIP"; then
3570 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3571 else
3572 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3573 for as_dir in $PATH
3574 do
3575 IFS=$as_save_IFS
3576 test -z "$as_dir" && as_dir=.
3577 for ac_exec_ext in '' $ac_executable_extensions; do
3578 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3579 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3580 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3581 break 2
3582 fi
3583 done
3584 done
3585 IFS=$as_save_IFS
3586
3587 fi
3588 fi
3589 STRIP=$ac_cv_prog_STRIP
3590 if test -n "$STRIP"; then
3591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3592 $as_echo "$STRIP" >&6; }
3593 else
3594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3595 $as_echo "no" >&6; }
3596 fi
3597
3598
3599 fi
3600 if test -z "$ac_cv_prog_STRIP"; then
3601 ac_ct_STRIP=$STRIP
3602 # Extract the first word of "strip", so it can be a program name with args.
3603 set dummy strip; ac_word=$2
3604 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3605 $as_echo_n "checking for $ac_word... " >&6; }
3606 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
3607 $as_echo_n "(cached) " >&6
3608 else
3609 if test -n "$ac_ct_STRIP"; then
3610 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3611 else
3612 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3613 for as_dir in $PATH
3614 do
3615 IFS=$as_save_IFS
3616 test -z "$as_dir" && as_dir=.
3617 for ac_exec_ext in '' $ac_executable_extensions; do
3618 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3619 ac_cv_prog_ac_ct_STRIP="strip"
3620 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3621 break 2
3622 fi
3623 done
3624 done
3625 IFS=$as_save_IFS
3626
3627 fi
3628 fi
3629 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3630 if test -n "$ac_ct_STRIP"; then
3631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3632 $as_echo "$ac_ct_STRIP" >&6; }
3633 else
3634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3635 $as_echo "no" >&6; }
3636 fi
3637
3638 if test "x$ac_ct_STRIP" = x; then
3639 STRIP=":"
3640 else
3641 case $cross_compiling:$ac_tool_warned in
3642 yes:)
3643 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3644 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3645 ac_tool_warned=yes ;;
3646 esac
3647 STRIP=$ac_ct_STRIP
3648 fi
3649 else
3650 STRIP="$ac_cv_prog_STRIP"
3651 fi
3652
3653 fi
3654 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3655
3656 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
3657 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3658 if test -z "$MKDIR_P"; then
3659 if test "${ac_cv_path_mkdir+set}" = set; then :
3660 $as_echo_n "(cached) " >&6
3661 else
3662 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3663 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3664 do
3665 IFS=$as_save_IFS
3666 test -z "$as_dir" && as_dir=.
3667 for ac_prog in mkdir gmkdir; do
3668 for ac_exec_ext in '' $ac_executable_extensions; do
3669 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
3670 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3671 'mkdir (GNU coreutils) '* | \
3672 'mkdir (coreutils) '* | \
3673 'mkdir (fileutils) '4.1*)
3674 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
3675 break 3;;
3676 esac
3677 done
3678 done
3679 done
3680 IFS=$as_save_IFS
3681
3682 fi
3683
3684 if test "${ac_cv_path_mkdir+set}" = set; then
3685 MKDIR_P="$ac_cv_path_mkdir -p"
3686 else
3687 # As a last resort, use the slow shell script. Don't cache a
3688 # value for MKDIR_P within a source directory, because that will
3689 # break other packages using the cache if that directory is
3690 # removed, or if the value is a relative name.
3691 test -d ./--version && rmdir ./--version
3692 MKDIR_P="$ac_install_sh -d"
3693 fi
3694 fi
3695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3696 $as_echo "$MKDIR_P" >&6; }
3697
3698 mkdir_p="$MKDIR_P"
3699 case $mkdir_p in
3700 [\\/$]* | ?:[\\/]*) ;;
3701 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
3702 esac
3703
3704 for ac_prog in gawk mawk nawk awk
3705 do
3706 # Extract the first word of "$ac_prog", so it can be a program name with args.
3707 set dummy $ac_prog; ac_word=$2
3708 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3709 $as_echo_n "checking for $ac_word... " >&6; }
3710 if test "${ac_cv_prog_AWK+set}" = set; then :
3711 $as_echo_n "(cached) " >&6
3712 else
3713 if test -n "$AWK"; then
3714 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3715 else
3716 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3717 for as_dir in $PATH
3718 do
3719 IFS=$as_save_IFS
3720 test -z "$as_dir" && as_dir=.
3721 for ac_exec_ext in '' $ac_executable_extensions; do
3722 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3723 ac_cv_prog_AWK="$ac_prog"
3724 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3725 break 2
3726 fi
3727 done
3728 done
3729 IFS=$as_save_IFS
3730
3731 fi
3732 fi
3733 AWK=$ac_cv_prog_AWK
3734 if test -n "$AWK"; then
3735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3736 $as_echo "$AWK" >&6; }
3737 else
3738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3739 $as_echo "no" >&6; }
3740 fi
3741
3742
3743 test -n "$AWK" && break
3744 done
3745
3746 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3747 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3748 set x ${MAKE-make}
3749 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3750 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
3751 $as_echo_n "(cached) " >&6
3752 else
3753 cat >conftest.make <<\_ACEOF
3754 SHELL = /bin/sh
3755 all:
3756 @echo '@@@%%%=$(MAKE)=@@@%%%'
3757 _ACEOF
3758 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3759 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3760 *@@@%%%=?*=@@@%%%*)
3761 eval ac_cv_prog_make_${ac_make}_set=yes;;
3762 *)
3763 eval ac_cv_prog_make_${ac_make}_set=no;;
3764 esac
3765 rm -f conftest.make
3766 fi
3767 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3769 $as_echo "yes" >&6; }
3770 SET_MAKE=
3771 else
3772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3773 $as_echo "no" >&6; }
3774 SET_MAKE="MAKE=${MAKE-make}"
3775 fi
3776
3777 rm -rf .tst 2>/dev/null
3778 mkdir .tst 2>/dev/null
3779 if test -d .tst; then
3780 am__leading_dot=.
3781 else
3782 am__leading_dot=_
3783 fi
3784 rmdir .tst 2>/dev/null
3785
3786 DEPDIR="${am__leading_dot}deps"
3787
3788 ac_config_commands="$ac_config_commands depfiles"
3789
3790
3791 am_make=${MAKE-make}
3792 cat > confinc << 'END'
3793 am__doit:
3794 @echo this is the am__doit target
3795 .PHONY: am__doit
3796 END
3797 # If we don't find an include directive, just comment out the code.
3798 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3799 $as_echo_n "checking for style of include used by $am_make... " >&6; }
3800 am__include="#"
3801 am__quote=
3802 _am_result=none
3803 # First try GNU make style include.
3804 echo "include confinc" > confmf
3805 # Ignore all kinds of additional output from `make'.
3806 case `$am_make -s -f confmf 2> /dev/null` in #(
3807 *the\ am__doit\ target*)
3808 am__include=include
3809 am__quote=
3810 _am_result=GNU
3811 ;;
3812 esac
3813 # Now try BSD make style include.
3814 if test "$am__include" = "#"; then
3815 echo '.include "confinc"' > confmf
3816 case `$am_make -s -f confmf 2> /dev/null` in #(
3817 *the\ am__doit\ target*)
3818 am__include=.include
3819 am__quote="\""
3820 _am_result=BSD
3821 ;;
3822 esac
3823 fi
3824
3825
3826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3827 $as_echo "$_am_result" >&6; }
3828 rm -f confinc confmf
3829
3830 # Check whether --enable-dependency-tracking was given.
3831 if test "${enable_dependency_tracking+set}" = set; then :
3832 enableval=$enable_dependency_tracking;
3833 fi
3834
3835 if test "x$enable_dependency_tracking" != xno; then
3836 am_depcomp="$ac_aux_dir/depcomp"
3837 AMDEPBACKSLASH='\'
3838 fi
3839 if test "x$enable_dependency_tracking" != xno; then
3840 AMDEP_TRUE=
3841 AMDEP_FALSE='#'
3842 else
3843 AMDEP_TRUE='#'
3844 AMDEP_FALSE=
3845 fi
3846
3847
3848 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3849 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3850 # is not polluted with repeated "-I."
3851 am__isrc=' -I$(srcdir)'
3852 # test to see if srcdir already configured
3853 if test -f $srcdir/config.status; then
3854 as_fn_error "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3855 fi
3856 fi
3857
3858 # test whether we have cygpath
3859 if test -z "$CYGPATH_W"; then
3860 if (cygpath --version) >/dev/null 2>/dev/null; then
3861 CYGPATH_W='cygpath -w'
3862 else
3863 CYGPATH_W=echo
3864 fi
3865 fi
3866
3867
3868 # Define the identity of the package.
3869 PACKAGE=binutils
3870 VERSION=${BFD_VERSION}
3871
3872
3873 cat >>confdefs.h <<_ACEOF
3874 #define PACKAGE "$PACKAGE"
3875 _ACEOF
3876
3877
3878 cat >>confdefs.h <<_ACEOF
3879 #define VERSION "$VERSION"
3880 _ACEOF
3881
3882 # Some tools Automake needs.
3883
3884 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3885
3886
3887 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3888
3889
3890 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3891
3892
3893 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3894
3895
3896 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3897
3898 # We need awk for the "check" target. The system "awk" is bad on
3899 # some platforms.
3900 # Always define AMTAR for backward compatibility.
3901
3902 AMTAR=${AMTAR-"${am_missing_run}tar"}
3903
3904 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
3905
3906
3907
3908
3909 depcc="$CC" am_compiler_list=
3910
3911 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3912 $as_echo_n "checking dependency style of $depcc... " >&6; }
3913 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
3914 $as_echo_n "(cached) " >&6
3915 else
3916 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3917 # We make a subdir and do the tests there. Otherwise we can end up
3918 # making bogus files that we don't know about and never remove. For
3919 # instance it was reported that on HP-UX the gcc test will end up
3920 # making a dummy file named `D' -- because `-MD' means `put the output
3921 # in D'.
3922 mkdir conftest.dir
3923 # Copy depcomp to subdir because otherwise we won't find it if we're
3924 # using a relative directory.
3925 cp "$am_depcomp" conftest.dir
3926 cd conftest.dir
3927 # We will build objects and dependencies in a subdirectory because
3928 # it helps to detect inapplicable dependency modes. For instance
3929 # both Tru64's cc and ICC support -MD to output dependencies as a
3930 # side effect of compilation, but ICC will put the dependencies in
3931 # the current directory while Tru64 will put them in the object
3932 # directory.
3933 mkdir sub
3934
3935 am_cv_CC_dependencies_compiler_type=none
3936 if test "$am_compiler_list" = ""; then
3937 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3938 fi
3939 am__universal=false
3940 case " $depcc " in #(
3941 *\ -arch\ *\ -arch\ *) am__universal=true ;;
3942 esac
3943
3944 for depmode in $am_compiler_list; do
3945 # Setup a source with many dependencies, because some compilers
3946 # like to wrap large dependency lists on column 80 (with \), and
3947 # we should not choose a depcomp mode which is confused by this.
3948 #
3949 # We need to recreate these files for each test, as the compiler may
3950 # overwrite some of them when testing with obscure command lines.
3951 # This happens at least with the AIX C compiler.
3952 : > sub/conftest.c
3953 for i in 1 2 3 4 5 6; do
3954 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3955 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3956 # Solaris 8's {/usr,}/bin/sh.
3957 touch sub/conftst$i.h
3958 done
3959 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3960
3961 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3962 # mode. It turns out that the SunPro C++ compiler does not properly
3963 # handle `-M -o', and we need to detect this. Also, some Intel
3964 # versions had trouble with output in subdirs
3965 am__obj=sub/conftest.${OBJEXT-o}
3966 am__minus_obj="-o $am__obj"
3967 case $depmode in
3968 gcc)
3969 # This depmode causes a compiler race in universal mode.
3970 test "$am__universal" = false || continue
3971 ;;
3972 nosideeffect)
3973 # after this tag, mechanisms are not by side-effect, so they'll
3974 # only be used when explicitly requested
3975 if test "x$enable_dependency_tracking" = xyes; then
3976 continue
3977 else
3978 break
3979 fi
3980 ;;
3981 msvisualcpp | msvcmsys)
3982 # This compiler won't grok `-c -o', but also, the minuso test has
3983 # not run yet. These depmodes are late enough in the game, and
3984 # so weak that their functioning should not be impacted.
3985 am__obj=conftest.${OBJEXT-o}
3986 am__minus_obj=
3987 ;;
3988 none) break ;;
3989 esac
3990 if depmode=$depmode \
3991 source=sub/conftest.c object=$am__obj \
3992 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3993 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
3994 >/dev/null 2>conftest.err &&
3995 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3996 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3997 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
3998 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3999 # icc doesn't choke on unknown options, it will just issue warnings
4000 # or remarks (even with -Werror). So we grep stderr for any message
4001 # that says an option was ignored or not supported.
4002 # When given -MP, icc 7.0 and 7.1 complain thusly:
4003 # icc: Command line warning: ignoring option '-M'; no argument required
4004 # The diagnosis changed in icc 8.0:
4005 # icc: Command line remark: option '-MP' not supported
4006 if (grep 'ignoring option' conftest.err ||
4007 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4008 am_cv_CC_dependencies_compiler_type=$depmode
4009 break
4010 fi
4011 fi
4012 done
4013
4014 cd ..
4015 rm -rf conftest.dir
4016 else
4017 am_cv_CC_dependencies_compiler_type=none
4018 fi
4019
4020 fi
4021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4022 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4023 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4024
4025 if
4026 test "x$enable_dependency_tracking" != xno \
4027 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4028 am__fastdepCC_TRUE=
4029 am__fastdepCC_FALSE='#'
4030 else
4031 am__fastdepCC_TRUE='#'
4032 am__fastdepCC_FALSE=
4033 fi
4034
4035
4036
4037
4038 ac_ext=c
4039 ac_cpp='$CPP $CPPFLAGS'
4040 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4041 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4042 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4043 if test -n "$ac_tool_prefix"; then
4044 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4045 set dummy ${ac_tool_prefix}gcc; ac_word=$2
4046 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4047 $as_echo_n "checking for $ac_word... " >&6; }
4048 if test "${ac_cv_prog_CC+set}" = set; then :
4049 $as_echo_n "(cached) " >&6
4050 else
4051 if test -n "$CC"; then
4052 ac_cv_prog_CC="$CC" # Let the user override the test.
4053 else
4054 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4055 for as_dir in $PATH
4056 do
4057 IFS=$as_save_IFS
4058 test -z "$as_dir" && as_dir=.
4059 for ac_exec_ext in '' $ac_executable_extensions; do
4060 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4061 ac_cv_prog_CC="${ac_tool_prefix}gcc"
4062 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4063 break 2
4064 fi
4065 done
4066 done
4067 IFS=$as_save_IFS
4068
4069 fi
4070 fi
4071 CC=$ac_cv_prog_CC
4072 if test -n "$CC"; then
4073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4074 $as_echo "$CC" >&6; }
4075 else
4076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4077 $as_echo "no" >&6; }
4078 fi
4079
4080
4081 fi
4082 if test -z "$ac_cv_prog_CC"; then
4083 ac_ct_CC=$CC
4084 # Extract the first word of "gcc", so it can be a program name with args.
4085 set dummy gcc; ac_word=$2
4086 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4087 $as_echo_n "checking for $ac_word... " >&6; }
4088 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
4089 $as_echo_n "(cached) " >&6
4090 else
4091 if test -n "$ac_ct_CC"; then
4092 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4093 else
4094 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4095 for as_dir in $PATH
4096 do
4097 IFS=$as_save_IFS
4098 test -z "$as_dir" && as_dir=.
4099 for ac_exec_ext in '' $ac_executable_extensions; do
4100 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4101 ac_cv_prog_ac_ct_CC="gcc"
4102 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4103 break 2
4104 fi
4105 done
4106 done
4107 IFS=$as_save_IFS
4108
4109 fi
4110 fi
4111 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4112 if test -n "$ac_ct_CC"; then
4113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4114 $as_echo "$ac_ct_CC" >&6; }
4115 else
4116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4117 $as_echo "no" >&6; }
4118 fi
4119
4120 if test "x$ac_ct_CC" = x; then
4121 CC=""
4122 else
4123 case $cross_compiling:$ac_tool_warned in
4124 yes:)
4125 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4126 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4127 ac_tool_warned=yes ;;
4128 esac
4129 CC=$ac_ct_CC
4130 fi
4131 else
4132 CC="$ac_cv_prog_CC"
4133 fi
4134
4135 if test -z "$CC"; then
4136 if test -n "$ac_tool_prefix"; then
4137 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4138 set dummy ${ac_tool_prefix}cc; ac_word=$2
4139 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4140 $as_echo_n "checking for $ac_word... " >&6; }
4141 if test "${ac_cv_prog_CC+set}" = set; then :
4142 $as_echo_n "(cached) " >&6
4143 else
4144 if test -n "$CC"; then
4145 ac_cv_prog_CC="$CC" # Let the user override the test.
4146 else
4147 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4148 for as_dir in $PATH
4149 do
4150 IFS=$as_save_IFS
4151 test -z "$as_dir" && as_dir=.
4152 for ac_exec_ext in '' $ac_executable_extensions; do
4153 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4154 ac_cv_prog_CC="${ac_tool_prefix}cc"
4155 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4156 break 2
4157 fi
4158 done
4159 done
4160 IFS=$as_save_IFS
4161
4162 fi
4163 fi
4164 CC=$ac_cv_prog_CC
4165 if test -n "$CC"; then
4166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4167 $as_echo "$CC" >&6; }
4168 else
4169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4170 $as_echo "no" >&6; }
4171 fi
4172
4173
4174 fi
4175 fi
4176 if test -z "$CC"; then
4177 # Extract the first word of "cc", so it can be a program name with args.
4178 set dummy cc; ac_word=$2
4179 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4180 $as_echo_n "checking for $ac_word... " >&6; }
4181 if test "${ac_cv_prog_CC+set}" = set; then :
4182 $as_echo_n "(cached) " >&6
4183 else
4184 if test -n "$CC"; then
4185 ac_cv_prog_CC="$CC" # Let the user override the test.
4186 else
4187 ac_prog_rejected=no
4188 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4189 for as_dir in $PATH
4190 do
4191 IFS=$as_save_IFS
4192 test -z "$as_dir" && as_dir=.
4193 for ac_exec_ext in '' $ac_executable_extensions; do
4194 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4195 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4196 ac_prog_rejected=yes
4197 continue
4198 fi
4199 ac_cv_prog_CC="cc"
4200 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4201 break 2
4202 fi
4203 done
4204 done
4205 IFS=$as_save_IFS
4206
4207 if test $ac_prog_rejected = yes; then
4208 # We found a bogon in the path, so make sure we never use it.
4209 set dummy $ac_cv_prog_CC
4210 shift
4211 if test $# != 0; then
4212 # We chose a different compiler from the bogus one.
4213 # However, it has the same basename, so the bogon will be chosen
4214 # first if we set CC to just the basename; use the full file name.
4215 shift
4216 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4217 fi
4218 fi
4219 fi
4220 fi
4221 CC=$ac_cv_prog_CC
4222 if test -n "$CC"; then
4223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4224 $as_echo "$CC" >&6; }
4225 else
4226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4227 $as_echo "no" >&6; }
4228 fi
4229
4230
4231 fi
4232 if test -z "$CC"; then
4233 if test -n "$ac_tool_prefix"; then
4234 for ac_prog in cl.exe
4235 do
4236 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4237 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4238 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4239 $as_echo_n "checking for $ac_word... " >&6; }
4240 if test "${ac_cv_prog_CC+set}" = set; then :
4241 $as_echo_n "(cached) " >&6
4242 else
4243 if test -n "$CC"; then
4244 ac_cv_prog_CC="$CC" # Let the user override the test.
4245 else
4246 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4247 for as_dir in $PATH
4248 do
4249 IFS=$as_save_IFS
4250 test -z "$as_dir" && as_dir=.
4251 for ac_exec_ext in '' $ac_executable_extensions; do
4252 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4253 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4254 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4255 break 2
4256 fi
4257 done
4258 done
4259 IFS=$as_save_IFS
4260
4261 fi
4262 fi
4263 CC=$ac_cv_prog_CC
4264 if test -n "$CC"; then
4265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4266 $as_echo "$CC" >&6; }
4267 else
4268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4269 $as_echo "no" >&6; }
4270 fi
4271
4272
4273 test -n "$CC" && break
4274 done
4275 fi
4276 if test -z "$CC"; then
4277 ac_ct_CC=$CC
4278 for ac_prog in cl.exe
4279 do
4280 # Extract the first word of "$ac_prog", so it can be a program name with args.
4281 set dummy $ac_prog; ac_word=$2
4282 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4283 $as_echo_n "checking for $ac_word... " >&6; }
4284 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
4285 $as_echo_n "(cached) " >&6
4286 else
4287 if test -n "$ac_ct_CC"; then
4288 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4289 else
4290 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4291 for as_dir in $PATH
4292 do
4293 IFS=$as_save_IFS
4294 test -z "$as_dir" && as_dir=.
4295 for ac_exec_ext in '' $ac_executable_extensions; do
4296 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4297 ac_cv_prog_ac_ct_CC="$ac_prog"
4298 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4299 break 2
4300 fi
4301 done
4302 done
4303 IFS=$as_save_IFS
4304
4305 fi
4306 fi
4307 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4308 if test -n "$ac_ct_CC"; then
4309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4310 $as_echo "$ac_ct_CC" >&6; }
4311 else
4312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4313 $as_echo "no" >&6; }
4314 fi
4315
4316
4317 test -n "$ac_ct_CC" && break
4318 done
4319
4320 if test "x$ac_ct_CC" = x; then
4321 CC=""
4322 else
4323 case $cross_compiling:$ac_tool_warned in
4324 yes:)
4325 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4326 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4327 ac_tool_warned=yes ;;
4328 esac
4329 CC=$ac_ct_CC
4330 fi
4331 fi
4332
4333 fi
4334
4335
4336 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4337 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4338 as_fn_error "no acceptable C compiler found in \$PATH
4339 See \`config.log' for more details." "$LINENO" 5; }
4340
4341 # Provide some information about the compiler.
4342 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4343 set X $ac_compile
4344 ac_compiler=$2
4345 for ac_option in --version -v -V -qversion; do
4346 { { ac_try="$ac_compiler $ac_option >&5"
4347 case "(($ac_try" in
4348 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4349 *) ac_try_echo=$ac_try;;
4350 esac
4351 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4352 $as_echo "$ac_try_echo"; } >&5
4353 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4354 ac_status=$?
4355 if test -s conftest.err; then
4356 sed '10a\
4357 ... rest of stderr output deleted ...
4358 10q' conftest.err >conftest.er1
4359 cat conftest.er1 >&5
4360 rm -f conftest.er1 conftest.err
4361 fi
4362 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4363 test $ac_status = 0; }
4364 done
4365
4366 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4367 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4368 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
4369 $as_echo_n "(cached) " >&6
4370 else
4371 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4372 /* end confdefs.h. */
4373
4374 int
4375 main ()
4376 {
4377 #ifndef __GNUC__
4378 choke me
4379 #endif
4380
4381 ;
4382 return 0;
4383 }
4384 _ACEOF
4385 if ac_fn_c_try_compile "$LINENO"; then :
4386 ac_compiler_gnu=yes
4387 else
4388 ac_compiler_gnu=no
4389 fi
4390 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4391 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4392
4393 fi
4394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4395 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4396 if test $ac_compiler_gnu = yes; then
4397 GCC=yes
4398 else
4399 GCC=
4400 fi
4401 ac_test_CFLAGS=${CFLAGS+set}
4402 ac_save_CFLAGS=$CFLAGS
4403 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4404 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4405 if test "${ac_cv_prog_cc_g+set}" = set; then :
4406 $as_echo_n "(cached) " >&6
4407 else
4408 ac_save_c_werror_flag=$ac_c_werror_flag
4409 ac_c_werror_flag=yes
4410 ac_cv_prog_cc_g=no
4411 CFLAGS="-g"
4412 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4413 /* end confdefs.h. */
4414
4415 int
4416 main ()
4417 {
4418
4419 ;
4420 return 0;
4421 }
4422 _ACEOF
4423 if ac_fn_c_try_compile "$LINENO"; then :
4424 ac_cv_prog_cc_g=yes
4425 else
4426 CFLAGS=""
4427 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4428 /* end confdefs.h. */
4429
4430 int
4431 main ()
4432 {
4433
4434 ;
4435 return 0;
4436 }
4437 _ACEOF
4438 if ac_fn_c_try_compile "$LINENO"; then :
4439
4440 else
4441 ac_c_werror_flag=$ac_save_c_werror_flag
4442 CFLAGS="-g"
4443 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4444 /* end confdefs.h. */
4445
4446 int
4447 main ()
4448 {
4449
4450 ;
4451 return 0;
4452 }
4453 _ACEOF
4454 if ac_fn_c_try_compile "$LINENO"; then :
4455 ac_cv_prog_cc_g=yes
4456 fi
4457 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4458 fi
4459 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4460 fi
4461 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4462 ac_c_werror_flag=$ac_save_c_werror_flag
4463 fi
4464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4465 $as_echo "$ac_cv_prog_cc_g" >&6; }
4466 if test "$ac_test_CFLAGS" = set; then
4467 CFLAGS=$ac_save_CFLAGS
4468 elif test $ac_cv_prog_cc_g = yes; then
4469 if test "$GCC" = yes; then
4470 CFLAGS="-g -O2"
4471 else
4472 CFLAGS="-g"
4473 fi
4474 else
4475 if test "$GCC" = yes; then
4476 CFLAGS="-O2"
4477 else
4478 CFLAGS=
4479 fi
4480 fi
4481 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4482 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4483 if test "${ac_cv_prog_cc_c89+set}" = set; then :
4484 $as_echo_n "(cached) " >&6
4485 else
4486 ac_cv_prog_cc_c89=no
4487 ac_save_CC=$CC
4488 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4489 /* end confdefs.h. */
4490 #include <stdarg.h>
4491 #include <stdio.h>
4492 #include <sys/types.h>
4493 #include <sys/stat.h>
4494 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4495 struct buf { int x; };
4496 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4497 static char *e (p, i)
4498 char **p;
4499 int i;
4500 {
4501 return p[i];
4502 }
4503 static char *f (char * (*g) (char **, int), char **p, ...)
4504 {
4505 char *s;
4506 va_list v;
4507 va_start (v,p);
4508 s = g (p, va_arg (v,int));
4509 va_end (v);
4510 return s;
4511 }
4512
4513 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4514 function prototypes and stuff, but not '\xHH' hex character constants.
4515 These don't provoke an error unfortunately, instead are silently treated
4516 as 'x'. The following induces an error, until -std is added to get
4517 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4518 array size at least. It's necessary to write '\x00'==0 to get something
4519 that's true only with -std. */
4520 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4521
4522 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4523 inside strings and character constants. */
4524 #define FOO(x) 'x'
4525 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4526
4527 int test (int i, double x);
4528 struct s1 {int (*f) (int a);};
4529 struct s2 {int (*f) (double a);};
4530 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4531 int argc;
4532 char **argv;
4533 int
4534 main ()
4535 {
4536 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4537 ;
4538 return 0;
4539 }
4540 _ACEOF
4541 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4542 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4543 do
4544 CC="$ac_save_CC $ac_arg"
4545 if ac_fn_c_try_compile "$LINENO"; then :
4546 ac_cv_prog_cc_c89=$ac_arg
4547 fi
4548 rm -f core conftest.err conftest.$ac_objext
4549 test "x$ac_cv_prog_cc_c89" != "xno" && break
4550 done
4551 rm -f conftest.$ac_ext
4552 CC=$ac_save_CC
4553
4554 fi
4555 # AC_CACHE_VAL
4556 case "x$ac_cv_prog_cc_c89" in
4557 x)
4558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4559 $as_echo "none needed" >&6; } ;;
4560 xno)
4561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4562 $as_echo "unsupported" >&6; } ;;
4563 *)
4564 CC="$CC $ac_cv_prog_cc_c89"
4565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4566 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4567 esac
4568 if test "x$ac_cv_prog_cc_c89" != xno; then :
4569
4570 fi
4571
4572 ac_ext=c
4573 ac_cpp='$CPP $CPPFLAGS'
4574 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4575 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4576 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4577
4578 ac_ext=c
4579 ac_cpp='$CPP $CPPFLAGS'
4580 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4581 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4582 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4583 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4584 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4585 # On Suns, sometimes $CPP names a directory.
4586 if test -n "$CPP" && test -d "$CPP"; then
4587 CPP=
4588 fi
4589 if test -z "$CPP"; then
4590 if test "${ac_cv_prog_CPP+set}" = set; then :
4591 $as_echo_n "(cached) " >&6
4592 else
4593 # Double quotes because CPP needs to be expanded
4594 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4595 do
4596 ac_preproc_ok=false
4597 for ac_c_preproc_warn_flag in '' yes
4598 do
4599 # Use a header file that comes with gcc, so configuring glibc
4600 # with a fresh cross-compiler works.
4601 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4602 # <limits.h> exists even on freestanding compilers.
4603 # On the NeXT, cc -E runs the code through the compiler's parser,
4604 # not just through cpp. "Syntax error" is here to catch this case.
4605 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4606 /* end confdefs.h. */
4607 #ifdef __STDC__
4608 # include <limits.h>
4609 #else
4610 # include <assert.h>
4611 #endif
4612 Syntax error
4613 _ACEOF
4614 if ac_fn_c_try_cpp "$LINENO"; then :
4615
4616 else
4617 # Broken: fails on valid input.
4618 continue
4619 fi
4620 rm -f conftest.err conftest.$ac_ext
4621
4622 # OK, works on sane cases. Now check whether nonexistent headers
4623 # can be detected and how.
4624 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4625 /* end confdefs.h. */
4626 #include <ac_nonexistent.h>
4627 _ACEOF
4628 if ac_fn_c_try_cpp "$LINENO"; then :
4629 # Broken: success on invalid input.
4630 continue
4631 else
4632 # Passes both tests.
4633 ac_preproc_ok=:
4634 break
4635 fi
4636 rm -f conftest.err conftest.$ac_ext
4637
4638 done
4639 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4640 rm -f conftest.err conftest.$ac_ext
4641 if $ac_preproc_ok; then :
4642 break
4643 fi
4644
4645 done
4646 ac_cv_prog_CPP=$CPP
4647
4648 fi
4649 CPP=$ac_cv_prog_CPP
4650 else
4651 ac_cv_prog_CPP=$CPP
4652 fi
4653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4654 $as_echo "$CPP" >&6; }
4655 ac_preproc_ok=false
4656 for ac_c_preproc_warn_flag in '' yes
4657 do
4658 # Use a header file that comes with gcc, so configuring glibc
4659 # with a fresh cross-compiler works.
4660 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4661 # <limits.h> exists even on freestanding compilers.
4662 # On the NeXT, cc -E runs the code through the compiler's parser,
4663 # not just through cpp. "Syntax error" is here to catch this case.
4664 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4665 /* end confdefs.h. */
4666 #ifdef __STDC__
4667 # include <limits.h>
4668 #else
4669 # include <assert.h>
4670 #endif
4671 Syntax error
4672 _ACEOF
4673 if ac_fn_c_try_cpp "$LINENO"; then :
4674
4675 else
4676 # Broken: fails on valid input.
4677 continue
4678 fi
4679 rm -f conftest.err conftest.$ac_ext
4680
4681 # OK, works on sane cases. Now check whether nonexistent headers
4682 # can be detected and how.
4683 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4684 /* end confdefs.h. */
4685 #include <ac_nonexistent.h>
4686 _ACEOF
4687 if ac_fn_c_try_cpp "$LINENO"; then :
4688 # Broken: success on invalid input.
4689 continue
4690 else
4691 # Passes both tests.
4692 ac_preproc_ok=:
4693 break
4694 fi
4695 rm -f conftest.err conftest.$ac_ext
4696
4697 done
4698 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4699 rm -f conftest.err conftest.$ac_ext
4700 if $ac_preproc_ok; then :
4701
4702 else
4703 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4704 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4705 as_fn_error "C preprocessor \"$CPP\" fails sanity check
4706 See \`config.log' for more details." "$LINENO" 5; }
4707 fi
4708
4709 ac_ext=c
4710 ac_cpp='$CPP $CPPFLAGS'
4711 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4712 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4713 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4714
4715
4716 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4717 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4718 if test "${ac_cv_path_GREP+set}" = set; then :
4719 $as_echo_n "(cached) " >&6
4720 else
4721 if test -z "$GREP"; then
4722 ac_path_GREP_found=false
4723 # Loop through the user's path and test for each of PROGNAME-LIST
4724 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4725 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4726 do
4727 IFS=$as_save_IFS
4728 test -z "$as_dir" && as_dir=.
4729 for ac_prog in grep ggrep; do
4730 for ac_exec_ext in '' $ac_executable_extensions; do
4731 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4732 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4733 # Check for GNU ac_path_GREP and select it if it is found.
4734 # Check for GNU $ac_path_GREP
4735 case `"$ac_path_GREP" --version 2>&1` in
4736 *GNU*)
4737 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4738 *)
4739 ac_count=0
4740 $as_echo_n 0123456789 >"conftest.in"
4741 while :
4742 do
4743 cat "conftest.in" "conftest.in" >"conftest.tmp"
4744 mv "conftest.tmp" "conftest.in"
4745 cp "conftest.in" "conftest.nl"
4746 $as_echo 'GREP' >> "conftest.nl"
4747 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4748 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4749 as_fn_arith $ac_count + 1 && ac_count=$as_val
4750 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4751 # Best one so far, save it but keep looking for a better one
4752 ac_cv_path_GREP="$ac_path_GREP"
4753 ac_path_GREP_max=$ac_count
4754 fi
4755 # 10*(2^10) chars as input seems more than enough
4756 test $ac_count -gt 10 && break
4757 done
4758 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4759 esac
4760
4761 $ac_path_GREP_found && break 3
4762 done
4763 done
4764 done
4765 IFS=$as_save_IFS
4766 if test -z "$ac_cv_path_GREP"; then
4767 as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4768 fi
4769 else
4770 ac_cv_path_GREP=$GREP
4771 fi
4772
4773 fi
4774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4775 $as_echo "$ac_cv_path_GREP" >&6; }
4776 GREP="$ac_cv_path_GREP"
4777
4778
4779 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4780 $as_echo_n "checking for egrep... " >&6; }
4781 if test "${ac_cv_path_EGREP+set}" = set; then :
4782 $as_echo_n "(cached) " >&6
4783 else
4784 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4785 then ac_cv_path_EGREP="$GREP -E"
4786 else
4787 if test -z "$EGREP"; then
4788 ac_path_EGREP_found=false
4789 # Loop through the user's path and test for each of PROGNAME-LIST
4790 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4791 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4792 do
4793 IFS=$as_save_IFS
4794 test -z "$as_dir" && as_dir=.
4795 for ac_prog in egrep; do
4796 for ac_exec_ext in '' $ac_executable_extensions; do
4797 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4798 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4799 # Check for GNU ac_path_EGREP and select it if it is found.
4800 # Check for GNU $ac_path_EGREP
4801 case `"$ac_path_EGREP" --version 2>&1` in
4802 *GNU*)
4803 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4804 *)
4805 ac_count=0
4806 $as_echo_n 0123456789 >"conftest.in"
4807 while :
4808 do
4809 cat "conftest.in" "conftest.in" >"conftest.tmp"
4810 mv "conftest.tmp" "conftest.in"
4811 cp "conftest.in" "conftest.nl"
4812 $as_echo 'EGREP' >> "conftest.nl"
4813 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4814 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4815 as_fn_arith $ac_count + 1 && ac_count=$as_val
4816 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4817 # Best one so far, save it but keep looking for a better one
4818 ac_cv_path_EGREP="$ac_path_EGREP"
4819 ac_path_EGREP_max=$ac_count
4820 fi
4821 # 10*(2^10) chars as input seems more than enough
4822 test $ac_count -gt 10 && break
4823 done
4824 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4825 esac
4826
4827 $ac_path_EGREP_found && break 3
4828 done
4829 done
4830 done
4831 IFS=$as_save_IFS
4832 if test -z "$ac_cv_path_EGREP"; then
4833 as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4834 fi
4835 else
4836 ac_cv_path_EGREP=$EGREP
4837 fi
4838
4839 fi
4840 fi
4841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4842 $as_echo "$ac_cv_path_EGREP" >&6; }
4843 EGREP="$ac_cv_path_EGREP"
4844
4845
4846 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4847 $as_echo_n "checking for ANSI C header files... " >&6; }
4848 if test "${ac_cv_header_stdc+set}" = set; then :
4849 $as_echo_n "(cached) " >&6
4850 else
4851 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4852 /* end confdefs.h. */
4853 #include <stdlib.h>
4854 #include <stdarg.h>
4855 #include <string.h>
4856 #include <float.h>
4857
4858 int
4859 main ()
4860 {
4861
4862 ;
4863 return 0;
4864 }
4865 _ACEOF
4866 if ac_fn_c_try_compile "$LINENO"; then :
4867 ac_cv_header_stdc=yes
4868 else
4869 ac_cv_header_stdc=no
4870 fi
4871 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4872
4873 if test $ac_cv_header_stdc = yes; then
4874 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4875 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4876 /* end confdefs.h. */
4877 #include <string.h>
4878
4879 _ACEOF
4880 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4881 $EGREP "memchr" >/dev/null 2>&1; then :
4882
4883 else
4884 ac_cv_header_stdc=no
4885 fi
4886 rm -f conftest*
4887
4888 fi
4889
4890 if test $ac_cv_header_stdc = yes; then
4891 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4892 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4893 /* end confdefs.h. */
4894 #include <stdlib.h>
4895
4896 _ACEOF
4897 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4898 $EGREP "free" >/dev/null 2>&1; then :
4899
4900 else
4901 ac_cv_header_stdc=no
4902 fi
4903 rm -f conftest*
4904
4905 fi
4906
4907 if test $ac_cv_header_stdc = yes; then
4908 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4909 if test "$cross_compiling" = yes; then :
4910 :
4911 else
4912 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4913 /* end confdefs.h. */
4914 #include <ctype.h>
4915 #include <stdlib.h>
4916 #if ((' ' & 0x0FF) == 0x020)
4917 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4918 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4919 #else
4920 # define ISLOWER(c) \
4921 (('a' <= (c) && (c) <= 'i') \
4922 || ('j' <= (c) && (c) <= 'r') \
4923 || ('s' <= (c) && (c) <= 'z'))
4924 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4925 #endif
4926
4927 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4928 int
4929 main ()
4930 {
4931 int i;
4932 for (i = 0; i < 256; i++)
4933 if (XOR (islower (i), ISLOWER (i))
4934 || toupper (i) != TOUPPER (i))
4935 return 2;
4936 return 0;
4937 }
4938 _ACEOF
4939 if ac_fn_c_try_run "$LINENO"; then :
4940
4941 else
4942 ac_cv_header_stdc=no
4943 fi
4944 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4945 conftest.$ac_objext conftest.beam conftest.$ac_ext
4946 fi
4947
4948 fi
4949 fi
4950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4951 $as_echo "$ac_cv_header_stdc" >&6; }
4952 if test $ac_cv_header_stdc = yes; then
4953
4954 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
4955
4956 fi
4957
4958 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4959 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4960 inttypes.h stdint.h unistd.h
4961 do :
4962 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4963 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4964 "
4965 eval as_val=\$$as_ac_Header
4966 if test "x$as_val" = x""yes; then :
4967 cat >>confdefs.h <<_ACEOF
4968 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4969 _ACEOF
4970
4971 fi
4972
4973 done
4974
4975
4976
4977 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
4978 if test "x$ac_cv_header_minix_config_h" = x""yes; then :
4979 MINIX=yes
4980 else
4981 MINIX=
4982 fi
4983
4984
4985 if test "$MINIX" = yes; then
4986
4987 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
4988
4989
4990 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
4991
4992
4993 $as_echo "#define _MINIX 1" >>confdefs.h
4994
4995 fi
4996
4997
4998 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
4999 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
5000 if test "${ac_cv_safe_to_define___extensions__+set}" = set; then :
5001 $as_echo_n "(cached) " >&6
5002 else
5003 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5004 /* end confdefs.h. */
5005
5006 # define __EXTENSIONS__ 1
5007 $ac_includes_default
5008 int
5009 main ()
5010 {
5011
5012 ;
5013 return 0;
5014 }
5015 _ACEOF
5016 if ac_fn_c_try_compile "$LINENO"; then :
5017 ac_cv_safe_to_define___extensions__=yes
5018 else
5019 ac_cv_safe_to_define___extensions__=no
5020 fi
5021 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5022 fi
5023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
5024 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
5025 test $ac_cv_safe_to_define___extensions__ = yes &&
5026 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
5027
5028 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
5029
5030 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
5031
5032 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
5033
5034 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
5035
5036
5037
5038
5039
5040
5041 # As the $enable_largefile decision depends on --enable-plugins we must set it
5042 # even in directories otherwise not depending on the $plugins option.
5043
5044
5045 # Check whether --enable-plugins was given.
5046 if test "${enable_plugins+set}" = set; then :
5047 enableval=$enable_plugins; case "${enableval}" in
5048 yes | "") plugins=yes ;;
5049 no) plugins=no ;;
5050 *) plugins=yes ;;
5051 esac
5052 else
5053 plugins=no
5054 fi
5055
5056
5057
5058 case "${host}" in
5059 sparc-*-solaris*|i[3-7]86-*-solaris*)
5060 # On native 32bit sparc and ia32 solaris, large-file and procfs support
5061 # are mutually exclusive; and without procfs support, the bfd/ elf module
5062 # cannot provide certain routines such as elfcore_write_prpsinfo
5063 # or elfcore_write_prstatus. So unless the user explicitly requested
5064 # large-file support through the --enable-largefile switch, disable
5065 # large-file support in favor of procfs support.
5066 test "${target}" = "${host}" -a "x$plugins" = xno \
5067 && : ${enable_largefile="no"}
5068 ;;
5069 esac
5070
5071 # Check whether --enable-largefile was given.
5072 if test "${enable_largefile+set}" = set; then :
5073 enableval=$enable_largefile;
5074 fi
5075
5076 if test "$enable_largefile" != no; then
5077
5078 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
5079 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
5080 if test "${ac_cv_sys_largefile_CC+set}" = set; then :
5081 $as_echo_n "(cached) " >&6
5082 else
5083 ac_cv_sys_largefile_CC=no
5084 if test "$GCC" != yes; then
5085 ac_save_CC=$CC
5086 while :; do
5087 # IRIX 6.2 and later do not support large files by default,
5088 # so use the C compiler's -n32 option if that helps.
5089 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5090 /* end confdefs.h. */
5091 #include <sys/types.h>
5092 /* Check that off_t can represent 2**63 - 1 correctly.
5093 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5094 since some C++ compilers masquerading as C compilers
5095 incorrectly reject 9223372036854775807. */
5096 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5097 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5098 && LARGE_OFF_T % 2147483647 == 1)
5099 ? 1 : -1];
5100 int
5101 main ()
5102 {
5103
5104 ;
5105 return 0;
5106 }
5107 _ACEOF
5108 if ac_fn_c_try_compile "$LINENO"; then :
5109 break
5110 fi
5111 rm -f core conftest.err conftest.$ac_objext
5112 CC="$CC -n32"
5113 if ac_fn_c_try_compile "$LINENO"; then :
5114 ac_cv_sys_largefile_CC=' -n32'; break
5115 fi
5116 rm -f core conftest.err conftest.$ac_objext
5117 break
5118 done
5119 CC=$ac_save_CC
5120 rm -f conftest.$ac_ext
5121 fi
5122 fi
5123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
5124 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
5125 if test "$ac_cv_sys_largefile_CC" != no; then
5126 CC=$CC$ac_cv_sys_largefile_CC
5127 fi
5128
5129 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
5130 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
5131 if test "${ac_cv_sys_file_offset_bits+set}" = set; then :
5132 $as_echo_n "(cached) " >&6
5133 else
5134 while :; do
5135 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5136 /* end confdefs.h. */
5137 #include <sys/types.h>
5138 /* Check that off_t can represent 2**63 - 1 correctly.
5139 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5140 since some C++ compilers masquerading as C compilers
5141 incorrectly reject 9223372036854775807. */
5142 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5143 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5144 && LARGE_OFF_T % 2147483647 == 1)
5145 ? 1 : -1];
5146 int
5147 main ()
5148 {
5149
5150 ;
5151 return 0;
5152 }
5153 _ACEOF
5154 if ac_fn_c_try_compile "$LINENO"; then :
5155 ac_cv_sys_file_offset_bits=no; break
5156 fi
5157 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5158 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5159 /* end confdefs.h. */
5160 #define _FILE_OFFSET_BITS 64
5161 #include <sys/types.h>
5162 /* Check that off_t can represent 2**63 - 1 correctly.
5163 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5164 since some C++ compilers masquerading as C compilers
5165 incorrectly reject 9223372036854775807. */
5166 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5167 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5168 && LARGE_OFF_T % 2147483647 == 1)
5169 ? 1 : -1];
5170 int
5171 main ()
5172 {
5173
5174 ;
5175 return 0;
5176 }
5177 _ACEOF
5178 if ac_fn_c_try_compile "$LINENO"; then :
5179 ac_cv_sys_file_offset_bits=64; break
5180 fi
5181 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5182 ac_cv_sys_file_offset_bits=unknown
5183 break
5184 done
5185 fi
5186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
5187 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
5188 case $ac_cv_sys_file_offset_bits in #(
5189 no | unknown) ;;
5190 *)
5191 cat >>confdefs.h <<_ACEOF
5192 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
5193 _ACEOF
5194 ;;
5195 esac
5196 rm -rf conftest*
5197 if test $ac_cv_sys_file_offset_bits = unknown; then
5198 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
5199 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
5200 if test "${ac_cv_sys_large_files+set}" = set; then :
5201 $as_echo_n "(cached) " >&6
5202 else
5203 while :; do
5204 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5205 /* end confdefs.h. */
5206 #include <sys/types.h>
5207 /* Check that off_t can represent 2**63 - 1 correctly.
5208 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5209 since some C++ compilers masquerading as C compilers
5210 incorrectly reject 9223372036854775807. */
5211 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5212 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5213 && LARGE_OFF_T % 2147483647 == 1)
5214 ? 1 : -1];
5215 int
5216 main ()
5217 {
5218
5219 ;
5220 return 0;
5221 }
5222 _ACEOF
5223 if ac_fn_c_try_compile "$LINENO"; then :
5224 ac_cv_sys_large_files=no; break
5225 fi
5226 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5227 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5228 /* end confdefs.h. */
5229 #define _LARGE_FILES 1
5230 #include <sys/types.h>
5231 /* Check that off_t can represent 2**63 - 1 correctly.
5232 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5233 since some C++ compilers masquerading as C compilers
5234 incorrectly reject 9223372036854775807. */
5235 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5236 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5237 && LARGE_OFF_T % 2147483647 == 1)
5238 ? 1 : -1];
5239 int
5240 main ()
5241 {
5242
5243 ;
5244 return 0;
5245 }
5246 _ACEOF
5247 if ac_fn_c_try_compile "$LINENO"; then :
5248 ac_cv_sys_large_files=1; break
5249 fi
5250 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5251 ac_cv_sys_large_files=unknown
5252 break
5253 done
5254 fi
5255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
5256 $as_echo "$ac_cv_sys_large_files" >&6; }
5257 case $ac_cv_sys_large_files in #(
5258 no | unknown) ;;
5259 *)
5260 cat >>confdefs.h <<_ACEOF
5261 #define _LARGE_FILES $ac_cv_sys_large_files
5262 _ACEOF
5263 ;;
5264 esac
5265 rm -rf conftest*
5266 fi
5267 fi
5268
5269
5270 case `pwd` in
5271 *\ * | *\ *)
5272 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
5273 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
5274 esac
5275
5276
5277
5278 macro_version='2.2.6'
5279 macro_revision='1.3012'
5280
5281
5282
5283
5284
5285
5286
5287
5288
5289
5290
5291
5292
5293 ltmain="$ac_aux_dir/ltmain.sh"
5294
5295 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
5296 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
5297 if test "${ac_cv_path_SED+set}" = set; then :
5298 $as_echo_n "(cached) " >&6
5299 else
5300 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
5301 for ac_i in 1 2 3 4 5 6 7; do
5302 ac_script="$ac_script$as_nl$ac_script"
5303 done
5304 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
5305 { ac_script=; unset ac_script;}
5306 if test -z "$SED"; then
5307 ac_path_SED_found=false
5308 # Loop through the user's path and test for each of PROGNAME-LIST
5309 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5310 for as_dir in $PATH
5311 do
5312 IFS=$as_save_IFS
5313 test -z "$as_dir" && as_dir=.
5314 for ac_prog in sed gsed; do
5315 for ac_exec_ext in '' $ac_executable_extensions; do
5316 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
5317 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
5318 # Check for GNU ac_path_SED and select it if it is found.
5319 # Check for GNU $ac_path_SED
5320 case `"$ac_path_SED" --version 2>&1` in
5321 *GNU*)
5322 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
5323 *)
5324 ac_count=0
5325 $as_echo_n 0123456789 >"conftest.in"
5326 while :
5327 do
5328 cat "conftest.in" "conftest.in" >"conftest.tmp"
5329 mv "conftest.tmp" "conftest.in"
5330 cp "conftest.in" "conftest.nl"
5331 $as_echo '' >> "conftest.nl"
5332 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
5333 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5334 as_fn_arith $ac_count + 1 && ac_count=$as_val
5335 if test $ac_count -gt ${ac_path_SED_max-0}; then
5336 # Best one so far, save it but keep looking for a better one
5337 ac_cv_path_SED="$ac_path_SED"
5338 ac_path_SED_max=$ac_count
5339 fi
5340 # 10*(2^10) chars as input seems more than enough
5341 test $ac_count -gt 10 && break
5342 done
5343 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5344 esac
5345
5346 $ac_path_SED_found && break 3
5347 done
5348 done
5349 done
5350 IFS=$as_save_IFS
5351 if test -z "$ac_cv_path_SED"; then
5352 as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
5353 fi
5354 else
5355 ac_cv_path_SED=$SED
5356 fi
5357
5358 fi
5359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
5360 $as_echo "$ac_cv_path_SED" >&6; }
5361 SED="$ac_cv_path_SED"
5362 rm -f conftest.sed
5363
5364 test -z "$SED" && SED=sed
5365 Xsed="$SED -e 1s/^X//"
5366
5367
5368
5369
5370
5371
5372
5373
5374
5375
5376
5377 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
5378 $as_echo_n "checking for fgrep... " >&6; }
5379 if test "${ac_cv_path_FGREP+set}" = set; then :
5380 $as_echo_n "(cached) " >&6
5381 else
5382 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
5383 then ac_cv_path_FGREP="$GREP -F"
5384 else
5385 if test -z "$FGREP"; then
5386 ac_path_FGREP_found=false
5387 # Loop through the user's path and test for each of PROGNAME-LIST
5388 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5389 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5390 do
5391 IFS=$as_save_IFS
5392 test -z "$as_dir" && as_dir=.
5393 for ac_prog in fgrep; do
5394 for ac_exec_ext in '' $ac_executable_extensions; do
5395 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
5396 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
5397 # Check for GNU ac_path_FGREP and select it if it is found.
5398 # Check for GNU $ac_path_FGREP
5399 case `"$ac_path_FGREP" --version 2>&1` in
5400 *GNU*)
5401 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
5402 *)
5403 ac_count=0
5404 $as_echo_n 0123456789 >"conftest.in"
5405 while :
5406 do
5407 cat "conftest.in" "conftest.in" >"conftest.tmp"
5408 mv "conftest.tmp" "conftest.in"
5409 cp "conftest.in" "conftest.nl"
5410 $as_echo 'FGREP' >> "conftest.nl"
5411 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
5412 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5413 as_fn_arith $ac_count + 1 && ac_count=$as_val
5414 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5415 # Best one so far, save it but keep looking for a better one
5416 ac_cv_path_FGREP="$ac_path_FGREP"
5417 ac_path_FGREP_max=$ac_count
5418 fi
5419 # 10*(2^10) chars as input seems more than enough
5420 test $ac_count -gt 10 && break
5421 done
5422 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5423 esac
5424
5425 $ac_path_FGREP_found && break 3
5426 done
5427 done
5428 done
5429 IFS=$as_save_IFS
5430 if test -z "$ac_cv_path_FGREP"; then
5431 as_fn_error "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5432 fi
5433 else
5434 ac_cv_path_FGREP=$FGREP
5435 fi
5436
5437 fi
5438 fi
5439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
5440 $as_echo "$ac_cv_path_FGREP" >&6; }
5441 FGREP="$ac_cv_path_FGREP"
5442
5443
5444 test -z "$GREP" && GREP=grep
5445
5446
5447
5448
5449
5450
5451
5452
5453
5454
5455
5456
5457
5458
5459
5460
5461
5462
5463
5464 # Check whether --with-gnu-ld was given.
5465 if test "${with_gnu_ld+set}" = set; then :
5466 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
5467 else
5468 with_gnu_ld=no
5469 fi
5470
5471 ac_prog=ld
5472 if test "$GCC" = yes; then
5473 # Check if gcc -print-prog-name=ld gives a path.
5474 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5475 $as_echo_n "checking for ld used by $CC... " >&6; }
5476 case $host in
5477 *-*-mingw*)
5478 # gcc leaves a trailing carriage return which upsets mingw
5479 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5480 *)
5481 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5482 esac
5483 case $ac_prog in
5484 # Accept absolute paths.
5485 [\\/]* | ?:[\\/]*)
5486 re_direlt='/[^/][^/]*/\.\./'
5487 # Canonicalize the pathname of ld
5488 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5489 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5490 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5491 done
5492 test -z "$LD" && LD="$ac_prog"
5493 ;;
5494 "")
5495 # If it fails, then pretend we aren't using GCC.
5496 ac_prog=ld
5497 ;;
5498 *)
5499 # If it is relative, then search for the first ld in PATH.
5500 with_gnu_ld=unknown
5501 ;;
5502 esac
5503 elif test "$with_gnu_ld" = yes; then
5504 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5505 $as_echo_n "checking for GNU ld... " >&6; }
5506 else
5507 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5508 $as_echo_n "checking for non-GNU ld... " >&6; }
5509 fi
5510 if test "${lt_cv_path_LD+set}" = set; then :
5511 $as_echo_n "(cached) " >&6
5512 else
5513 if test -z "$LD"; then
5514 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5515 for ac_dir in $PATH; do
5516 IFS="$lt_save_ifs"
5517 test -z "$ac_dir" && ac_dir=.
5518 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5519 lt_cv_path_LD="$ac_dir/$ac_prog"
5520 # Check to see if the program is GNU ld. I'd rather use --version,
5521 # but apparently some variants of GNU ld only accept -v.
5522 # Break only if it was the GNU/non-GNU ld that we prefer.
5523 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5524 *GNU* | *'with BFD'*)
5525 test "$with_gnu_ld" != no && break
5526 ;;
5527 *)
5528 test "$with_gnu_ld" != yes && break
5529 ;;
5530 esac
5531 fi
5532 done
5533 IFS="$lt_save_ifs"
5534 else
5535 lt_cv_path_LD="$LD" # Let the user override the test with a path.
5536 fi
5537 fi
5538
5539 LD="$lt_cv_path_LD"
5540 if test -n "$LD"; then
5541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5542 $as_echo "$LD" >&6; }
5543 else
5544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5545 $as_echo "no" >&6; }
5546 fi
5547 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
5548 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5549 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
5550 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
5551 $as_echo_n "(cached) " >&6
5552 else
5553 # I'd rather use --version here, but apparently some GNU lds only accept -v.
5554 case `$LD -v 2>&1 </dev/null` in
5555 *GNU* | *'with BFD'*)
5556 lt_cv_prog_gnu_ld=yes
5557 ;;
5558 *)
5559 lt_cv_prog_gnu_ld=no
5560 ;;
5561 esac
5562 fi
5563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5564 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
5565 with_gnu_ld=$lt_cv_prog_gnu_ld
5566
5567
5568
5569
5570
5571
5572
5573
5574
5575 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5576 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5577 if test "${lt_cv_path_NM+set}" = set; then :
5578 $as_echo_n "(cached) " >&6
5579 else
5580 if test -n "$NM"; then
5581 # Let the user override the test.
5582 lt_cv_path_NM="$NM"
5583 else
5584 lt_nm_to_check="${ac_tool_prefix}nm"
5585 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5586 lt_nm_to_check="$lt_nm_to_check nm"
5587 fi
5588 for lt_tmp_nm in $lt_nm_to_check; do
5589 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5590 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5591 IFS="$lt_save_ifs"
5592 test -z "$ac_dir" && ac_dir=.
5593 tmp_nm="$ac_dir/$lt_tmp_nm"
5594 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5595 # Check to see if the nm accepts a BSD-compat flag.
5596 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5597 # nm: unknown option "B" ignored
5598 # Tru64's nm complains that /dev/null is an invalid object file
5599 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5600 */dev/null* | *'Invalid file or object type'*)
5601 lt_cv_path_NM="$tmp_nm -B"
5602 break
5603 ;;
5604 *)
5605 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5606 */dev/null*)
5607 lt_cv_path_NM="$tmp_nm -p"
5608 break
5609 ;;
5610 *)
5611 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5612 continue # so that we can try to find one that supports BSD flags
5613 ;;
5614 esac
5615 ;;
5616 esac
5617 fi
5618 done
5619 IFS="$lt_save_ifs"
5620 done
5621 : ${lt_cv_path_NM=no}
5622 fi
5623 fi
5624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5625 $as_echo "$lt_cv_path_NM" >&6; }
5626 if test "$lt_cv_path_NM" != "no"; then
5627 NM="$lt_cv_path_NM"
5628 else
5629 # Didn't find any BSD compatible name lister, look for dumpbin.
5630 if test -n "$ac_tool_prefix"; then
5631 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
5632 do
5633 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5634 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5635 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5636 $as_echo_n "checking for $ac_word... " >&6; }
5637 if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
5638 $as_echo_n "(cached) " >&6
5639 else
5640 if test -n "$DUMPBIN"; then
5641 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5642 else
5643 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5644 for as_dir in $PATH
5645 do
5646 IFS=$as_save_IFS
5647 test -z "$as_dir" && as_dir=.
5648 for ac_exec_ext in '' $ac_executable_extensions; do
5649 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5650 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5651 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5652 break 2
5653 fi
5654 done
5655 done
5656 IFS=$as_save_IFS
5657
5658 fi
5659 fi
5660 DUMPBIN=$ac_cv_prog_DUMPBIN
5661 if test -n "$DUMPBIN"; then
5662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5663 $as_echo "$DUMPBIN" >&6; }
5664 else
5665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5666 $as_echo "no" >&6; }
5667 fi
5668
5669
5670 test -n "$DUMPBIN" && break
5671 done
5672 fi
5673 if test -z "$DUMPBIN"; then
5674 ac_ct_DUMPBIN=$DUMPBIN
5675 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
5676 do
5677 # Extract the first word of "$ac_prog", so it can be a program name with args.
5678 set dummy $ac_prog; ac_word=$2
5679 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5680 $as_echo_n "checking for $ac_word... " >&6; }
5681 if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
5682 $as_echo_n "(cached) " >&6
5683 else
5684 if test -n "$ac_ct_DUMPBIN"; then
5685 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5686 else
5687 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5688 for as_dir in $PATH
5689 do
5690 IFS=$as_save_IFS
5691 test -z "$as_dir" && as_dir=.
5692 for ac_exec_ext in '' $ac_executable_extensions; do
5693 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5694 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5695 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5696 break 2
5697 fi
5698 done
5699 done
5700 IFS=$as_save_IFS
5701
5702 fi
5703 fi
5704 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5705 if test -n "$ac_ct_DUMPBIN"; then
5706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5707 $as_echo "$ac_ct_DUMPBIN" >&6; }
5708 else
5709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5710 $as_echo "no" >&6; }
5711 fi
5712
5713
5714 test -n "$ac_ct_DUMPBIN" && break
5715 done
5716
5717 if test "x$ac_ct_DUMPBIN" = x; then
5718 DUMPBIN=":"
5719 else
5720 case $cross_compiling:$ac_tool_warned in
5721 yes:)
5722 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5723 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5724 ac_tool_warned=yes ;;
5725 esac
5726 DUMPBIN=$ac_ct_DUMPBIN
5727 fi
5728 fi
5729
5730
5731 if test "$DUMPBIN" != ":"; then
5732 NM="$DUMPBIN"
5733 fi
5734 fi
5735 test -z "$NM" && NM=nm
5736
5737
5738
5739
5740
5741
5742 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5743 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
5744 if test "${lt_cv_nm_interface+set}" = set; then :
5745 $as_echo_n "(cached) " >&6
5746 else
5747 lt_cv_nm_interface="BSD nm"
5748 echo "int some_variable = 0;" > conftest.$ac_ext
5749 (eval echo "\"\$as_me:5749: $ac_compile\"" >&5)
5750 (eval "$ac_compile" 2>conftest.err)
5751 cat conftest.err >&5
5752 (eval echo "\"\$as_me:5752: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5753 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5754 cat conftest.err >&5
5755 (eval echo "\"\$as_me:5755: output\"" >&5)
5756 cat conftest.out >&5
5757 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5758 lt_cv_nm_interface="MS dumpbin"
5759 fi
5760 rm -f conftest*
5761 fi
5762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5763 $as_echo "$lt_cv_nm_interface" >&6; }
5764
5765 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5766 $as_echo_n "checking whether ln -s works... " >&6; }
5767 LN_S=$as_ln_s
5768 if test "$LN_S" = "ln -s"; then
5769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5770 $as_echo "yes" >&6; }
5771 else
5772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5773 $as_echo "no, using $LN_S" >&6; }
5774 fi
5775
5776 # find the maximum length of command line arguments
5777 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5778 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
5779 if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
5780 $as_echo_n "(cached) " >&6
5781 else
5782 i=0
5783 teststring="ABCD"
5784
5785 case $build_os in
5786 msdosdjgpp*)
5787 # On DJGPP, this test can blow up pretty badly due to problems in libc
5788 # (any single argument exceeding 2000 bytes causes a buffer overrun
5789 # during glob expansion). Even if it were fixed, the result of this
5790 # check would be larger than it should be.
5791 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5792 ;;
5793
5794 gnu*)
5795 # Under GNU Hurd, this test is not required because there is
5796 # no limit to the length of command line arguments.
5797 # Libtool will interpret -1 as no limit whatsoever
5798 lt_cv_sys_max_cmd_len=-1;
5799 ;;
5800
5801 cygwin* | mingw* | cegcc*)
5802 # On Win9x/ME, this test blows up -- it succeeds, but takes
5803 # about 5 minutes as the teststring grows exponentially.
5804 # Worse, since 9x/ME are not pre-emptively multitasking,
5805 # you end up with a "frozen" computer, even though with patience
5806 # the test eventually succeeds (with a max line length of 256k).
5807 # Instead, let's just punt: use the minimum linelength reported by
5808 # all of the supported platforms: 8192 (on NT/2K/XP).
5809 lt_cv_sys_max_cmd_len=8192;
5810 ;;
5811
5812 amigaos*)
5813 # On AmigaOS with pdksh, this test takes hours, literally.
5814 # So we just punt and use a minimum line length of 8192.
5815 lt_cv_sys_max_cmd_len=8192;
5816 ;;
5817
5818 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5819 # This has been around since 386BSD, at least. Likely further.
5820 if test -x /sbin/sysctl; then
5821 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5822 elif test -x /usr/sbin/sysctl; then
5823 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5824 else
5825 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
5826 fi
5827 # And add a safety zone
5828 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5829 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5830 ;;
5831
5832 interix*)
5833 # We know the value 262144 and hardcode it with a safety zone (like BSD)
5834 lt_cv_sys_max_cmd_len=196608
5835 ;;
5836
5837 osf*)
5838 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5839 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5840 # nice to cause kernel panics so lets avoid the loop below.
5841 # First set a reasonable default.
5842 lt_cv_sys_max_cmd_len=16384
5843 #
5844 if test -x /sbin/sysconfig; then
5845 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5846 *1*) lt_cv_sys_max_cmd_len=-1 ;;
5847 esac
5848 fi
5849 ;;
5850 sco3.2v5*)
5851 lt_cv_sys_max_cmd_len=102400
5852 ;;
5853 sysv5* | sco5v6* | sysv4.2uw2*)
5854 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5855 if test -n "$kargmax"; then
5856 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
5857 else
5858 lt_cv_sys_max_cmd_len=32768
5859 fi
5860 ;;
5861 *)
5862 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5863 if test -n "$lt_cv_sys_max_cmd_len"; then
5864 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5865 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5866 else
5867 # Make teststring a little bigger before we do anything with it.
5868 # a 1K string should be a reasonable start.
5869 for i in 1 2 3 4 5 6 7 8 ; do
5870 teststring=$teststring$teststring
5871 done
5872 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5873 # If test is not a shell built-in, we'll probably end up computing a
5874 # maximum length that is only half of the actual maximum length, but
5875 # we can't tell.
5876 while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
5877 = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
5878 test $i != 17 # 1/2 MB should be enough
5879 do
5880 i=`expr $i + 1`
5881 teststring=$teststring$teststring
5882 done
5883 # Only check the string length outside the loop.
5884 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5885 teststring=
5886 # Add a significant safety factor because C++ compilers can tack on
5887 # massive amounts of additional arguments before passing them to the
5888 # linker. It appears as though 1/2 is a usable value.
5889 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5890 fi
5891 ;;
5892 esac
5893
5894 fi
5895
5896 if test -n $lt_cv_sys_max_cmd_len ; then
5897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5898 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
5899 else
5900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
5901 $as_echo "none" >&6; }
5902 fi
5903 max_cmd_len=$lt_cv_sys_max_cmd_len
5904
5905
5906
5907
5908
5909
5910 : ${CP="cp -f"}
5911 : ${MV="mv -f"}
5912 : ${RM="rm -f"}
5913
5914 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
5915 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
5916 # Try some XSI features
5917 xsi_shell=no
5918 ( _lt_dummy="a/b/c"
5919 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
5920 = c,a/b,, \
5921 && eval 'test $(( 1 + 1 )) -eq 2 \
5922 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
5923 && xsi_shell=yes
5924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
5925 $as_echo "$xsi_shell" >&6; }
5926
5927
5928 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
5929 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
5930 lt_shell_append=no
5931 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
5932 >/dev/null 2>&1 \
5933 && lt_shell_append=yes
5934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
5935 $as_echo "$lt_shell_append" >&6; }
5936
5937
5938 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5939 lt_unset=unset
5940 else
5941 lt_unset=false
5942 fi
5943
5944
5945
5946
5947
5948 # test EBCDIC or ASCII
5949 case `echo X|tr X '\101'` in
5950 A) # ASCII based system
5951 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5952 lt_SP2NL='tr \040 \012'
5953 lt_NL2SP='tr \015\012 \040\040'
5954 ;;
5955 *) # EBCDIC based system
5956 lt_SP2NL='tr \100 \n'
5957 lt_NL2SP='tr \r\n \100\100'
5958 ;;
5959 esac
5960
5961
5962
5963
5964
5965
5966
5967
5968
5969 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5970 $as_echo_n "checking for $LD option to reload object files... " >&6; }
5971 if test "${lt_cv_ld_reload_flag+set}" = set; then :
5972 $as_echo_n "(cached) " >&6
5973 else
5974 lt_cv_ld_reload_flag='-r'
5975 fi
5976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5977 $as_echo "$lt_cv_ld_reload_flag" >&6; }
5978 reload_flag=$lt_cv_ld_reload_flag
5979 case $reload_flag in
5980 "" | " "*) ;;
5981 *) reload_flag=" $reload_flag" ;;
5982 esac
5983 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5984 case $host_os in
5985 darwin*)
5986 if test "$GCC" = yes; then
5987 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5988 else
5989 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5990 fi
5991 ;;
5992 esac
5993
5994
5995
5996
5997
5998
5999
6000
6001
6002 if test -n "$ac_tool_prefix"; then
6003 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
6004 set dummy ${ac_tool_prefix}objdump; ac_word=$2
6005 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6006 $as_echo_n "checking for $ac_word... " >&6; }
6007 if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
6008 $as_echo_n "(cached) " >&6
6009 else
6010 if test -n "$OBJDUMP"; then
6011 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
6012 else
6013 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6014 for as_dir in $PATH
6015 do
6016 IFS=$as_save_IFS
6017 test -z "$as_dir" && as_dir=.
6018 for ac_exec_ext in '' $ac_executable_extensions; do
6019 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6020 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
6021 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6022 break 2
6023 fi
6024 done
6025 done
6026 IFS=$as_save_IFS
6027
6028 fi
6029 fi
6030 OBJDUMP=$ac_cv_prog_OBJDUMP
6031 if test -n "$OBJDUMP"; then
6032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
6033 $as_echo "$OBJDUMP" >&6; }
6034 else
6035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6036 $as_echo "no" >&6; }
6037 fi
6038
6039
6040 fi
6041 if test -z "$ac_cv_prog_OBJDUMP"; then
6042 ac_ct_OBJDUMP=$OBJDUMP
6043 # Extract the first word of "objdump", so it can be a program name with args.
6044 set dummy objdump; ac_word=$2
6045 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6046 $as_echo_n "checking for $ac_word... " >&6; }
6047 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
6048 $as_echo_n "(cached) " >&6
6049 else
6050 if test -n "$ac_ct_OBJDUMP"; then
6051 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
6052 else
6053 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6054 for as_dir in $PATH
6055 do
6056 IFS=$as_save_IFS
6057 test -z "$as_dir" && as_dir=.
6058 for ac_exec_ext in '' $ac_executable_extensions; do
6059 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6060 ac_cv_prog_ac_ct_OBJDUMP="objdump"
6061 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6062 break 2
6063 fi
6064 done
6065 done
6066 IFS=$as_save_IFS
6067
6068 fi
6069 fi
6070 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6071 if test -n "$ac_ct_OBJDUMP"; then
6072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
6073 $as_echo "$ac_ct_OBJDUMP" >&6; }
6074 else
6075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6076 $as_echo "no" >&6; }
6077 fi
6078
6079 if test "x$ac_ct_OBJDUMP" = x; then
6080 OBJDUMP="false"
6081 else
6082 case $cross_compiling:$ac_tool_warned in
6083 yes:)
6084 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6085 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6086 ac_tool_warned=yes ;;
6087 esac
6088 OBJDUMP=$ac_ct_OBJDUMP
6089 fi
6090 else
6091 OBJDUMP="$ac_cv_prog_OBJDUMP"
6092 fi
6093
6094 test -z "$OBJDUMP" && OBJDUMP=objdump
6095
6096
6097
6098
6099
6100
6101
6102
6103
6104 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
6105 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
6106 if test "${lt_cv_deplibs_check_method+set}" = set; then :
6107 $as_echo_n "(cached) " >&6
6108 else
6109 lt_cv_file_magic_cmd='$MAGIC_CMD'
6110 lt_cv_file_magic_test_file=
6111 lt_cv_deplibs_check_method='unknown'
6112 # Need to set the preceding variable on all platforms that support
6113 # interlibrary dependencies.
6114 # 'none' -- dependencies not supported.
6115 # `unknown' -- same as none, but documents that we really don't know.
6116 # 'pass_all' -- all dependencies passed with no checks.
6117 # 'test_compile' -- check by making test program.
6118 # 'file_magic [[regex]]' -- check by looking for files in library path
6119 # which responds to the $file_magic_cmd with a given extended regex.
6120 # If you have `file' or equivalent on your system and you're not sure
6121 # whether `pass_all' will *always* work, you probably want this one.
6122
6123 case $host_os in
6124 aix[4-9]*)
6125 lt_cv_deplibs_check_method=pass_all
6126 ;;
6127
6128 beos*)
6129 lt_cv_deplibs_check_method=pass_all
6130 ;;
6131
6132 bsdi[45]*)
6133 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6134 lt_cv_file_magic_cmd='/usr/bin/file -L'
6135 lt_cv_file_magic_test_file=/shlib/libc.so
6136 ;;
6137
6138 cygwin*)
6139 # func_win32_libid is a shell function defined in ltmain.sh
6140 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6141 lt_cv_file_magic_cmd='func_win32_libid'
6142 ;;
6143
6144 mingw* | pw32*)
6145 # Base MSYS/MinGW do not provide the 'file' command needed by
6146 # func_win32_libid shell function, so use a weaker test based on 'objdump',
6147 # unless we find 'file', for example because we are cross-compiling.
6148 if ( file / ) >/dev/null 2>&1; then
6149 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6150 lt_cv_file_magic_cmd='func_win32_libid'
6151 else
6152 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
6153 lt_cv_file_magic_cmd='$OBJDUMP -f'
6154 fi
6155 ;;
6156
6157 cegcc)
6158 # use the weaker test based on 'objdump'. See mingw*.
6159 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
6160 lt_cv_file_magic_cmd='$OBJDUMP -f'
6161 ;;
6162
6163 darwin* | rhapsody*)
6164 lt_cv_deplibs_check_method=pass_all
6165 ;;
6166
6167 freebsd* | dragonfly*)
6168 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6169 case $host_cpu in
6170 i*86 )
6171 # Not sure whether the presence of OpenBSD here was a mistake.
6172 # Let's accept both of them until this is cleared up.
6173 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6174 lt_cv_file_magic_cmd=/usr/bin/file
6175 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6176 ;;
6177 esac
6178 else
6179 lt_cv_deplibs_check_method=pass_all
6180 fi
6181 ;;
6182
6183 gnu*)
6184 lt_cv_deplibs_check_method=pass_all
6185 ;;
6186
6187 hpux10.20* | hpux11*)
6188 lt_cv_file_magic_cmd=/usr/bin/file
6189 case $host_cpu in
6190 ia64*)
6191 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6192 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6193 ;;
6194 hppa*64*)
6195 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]'
6196 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6197 ;;
6198 *)
6199 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
6200 lt_cv_file_magic_test_file=/usr/lib/libc.sl
6201 ;;
6202 esac
6203 ;;
6204
6205 interix[3-9]*)
6206 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6207 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6208 ;;
6209
6210 irix5* | irix6* | nonstopux*)
6211 case $LD in
6212 *-32|*"-32 ") libmagic=32-bit;;
6213 *-n32|*"-n32 ") libmagic=N32;;
6214 *-64|*"-64 ") libmagic=64-bit;;
6215 *) libmagic=never-match;;
6216 esac
6217 lt_cv_deplibs_check_method=pass_all
6218 ;;
6219
6220 # This must be Linux ELF.
6221 linux* | k*bsd*-gnu | kopensolaris*-gnu)
6222 lt_cv_deplibs_check_method=pass_all
6223 ;;
6224
6225 netbsd*)
6226 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6227 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6228 else
6229 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6230 fi
6231 ;;
6232
6233 newos6*)
6234 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6235 lt_cv_file_magic_cmd=/usr/bin/file
6236 lt_cv_file_magic_test_file=/usr/lib/libnls.so
6237 ;;
6238
6239 *nto* | *qnx*)
6240 lt_cv_deplibs_check_method=pass_all
6241 ;;
6242
6243 openbsd*)
6244 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6245 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6246 else
6247 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6248 fi
6249 ;;
6250
6251 osf3* | osf4* | osf5*)
6252 lt_cv_deplibs_check_method=pass_all
6253 ;;
6254
6255 rdos*)
6256 lt_cv_deplibs_check_method=pass_all
6257 ;;
6258
6259 solaris*)
6260 lt_cv_deplibs_check_method=pass_all
6261 ;;
6262
6263 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6264 lt_cv_deplibs_check_method=pass_all
6265 ;;
6266
6267 sysv4 | sysv4.3*)
6268 case $host_vendor in
6269 motorola)
6270 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]'
6271 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6272 ;;
6273 ncr)
6274 lt_cv_deplibs_check_method=pass_all
6275 ;;
6276 sequent)
6277 lt_cv_file_magic_cmd='/bin/file'
6278 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6279 ;;
6280 sni)
6281 lt_cv_file_magic_cmd='/bin/file'
6282 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6283 lt_cv_file_magic_test_file=/lib/libc.so
6284 ;;
6285 siemens)
6286 lt_cv_deplibs_check_method=pass_all
6287 ;;
6288 pc)
6289 lt_cv_deplibs_check_method=pass_all
6290 ;;
6291 esac
6292 ;;
6293
6294 tpf*)
6295 lt_cv_deplibs_check_method=pass_all
6296 ;;
6297 esac
6298
6299 fi
6300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
6301 $as_echo "$lt_cv_deplibs_check_method" >&6; }
6302 file_magic_cmd=$lt_cv_file_magic_cmd
6303 deplibs_check_method=$lt_cv_deplibs_check_method
6304 test -z "$deplibs_check_method" && deplibs_check_method=unknown
6305
6306
6307
6308
6309
6310
6311
6312
6313
6314
6315
6316
6317 if test -n "$ac_tool_prefix"; then
6318 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6319 set dummy ${ac_tool_prefix}ar; ac_word=$2
6320 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6321 $as_echo_n "checking for $ac_word... " >&6; }
6322 if test "${ac_cv_prog_AR+set}" = set; then :
6323 $as_echo_n "(cached) " >&6
6324 else
6325 if test -n "$AR"; then
6326 ac_cv_prog_AR="$AR" # Let the user override the test.
6327 else
6328 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6329 for as_dir in $PATH
6330 do
6331 IFS=$as_save_IFS
6332 test -z "$as_dir" && as_dir=.
6333 for ac_exec_ext in '' $ac_executable_extensions; do
6334 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6335 ac_cv_prog_AR="${ac_tool_prefix}ar"
6336 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6337 break 2
6338 fi
6339 done
6340 done
6341 IFS=$as_save_IFS
6342
6343 fi
6344 fi
6345 AR=$ac_cv_prog_AR
6346 if test -n "$AR"; then
6347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6348 $as_echo "$AR" >&6; }
6349 else
6350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6351 $as_echo "no" >&6; }
6352 fi
6353
6354
6355 fi
6356 if test -z "$ac_cv_prog_AR"; then
6357 ac_ct_AR=$AR
6358 # Extract the first word of "ar", so it can be a program name with args.
6359 set dummy ar; ac_word=$2
6360 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6361 $as_echo_n "checking for $ac_word... " >&6; }
6362 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
6363 $as_echo_n "(cached) " >&6
6364 else
6365 if test -n "$ac_ct_AR"; then
6366 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6367 else
6368 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6369 for as_dir in $PATH
6370 do
6371 IFS=$as_save_IFS
6372 test -z "$as_dir" && as_dir=.
6373 for ac_exec_ext in '' $ac_executable_extensions; do
6374 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6375 ac_cv_prog_ac_ct_AR="ar"
6376 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6377 break 2
6378 fi
6379 done
6380 done
6381 IFS=$as_save_IFS
6382
6383 fi
6384 fi
6385 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6386 if test -n "$ac_ct_AR"; then
6387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6388 $as_echo "$ac_ct_AR" >&6; }
6389 else
6390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6391 $as_echo "no" >&6; }
6392 fi
6393
6394 if test "x$ac_ct_AR" = x; then
6395 AR="false"
6396 else
6397 case $cross_compiling:$ac_tool_warned in
6398 yes:)
6399 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6400 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6401 ac_tool_warned=yes ;;
6402 esac
6403 AR=$ac_ct_AR
6404 fi
6405 else
6406 AR="$ac_cv_prog_AR"
6407 fi
6408
6409 test -z "$AR" && AR=ar
6410 test -z "$AR_FLAGS" && AR_FLAGS=cru
6411
6412
6413
6414
6415
6416
6417
6418
6419
6420
6421
6422 if test -n "$ac_tool_prefix"; then
6423 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6424 set dummy ${ac_tool_prefix}strip; ac_word=$2
6425 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6426 $as_echo_n "checking for $ac_word... " >&6; }
6427 if test "${ac_cv_prog_STRIP+set}" = set; then :
6428 $as_echo_n "(cached) " >&6
6429 else
6430 if test -n "$STRIP"; then
6431 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6432 else
6433 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6434 for as_dir in $PATH
6435 do
6436 IFS=$as_save_IFS
6437 test -z "$as_dir" && as_dir=.
6438 for ac_exec_ext in '' $ac_executable_extensions; do
6439 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6440 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6441 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6442 break 2
6443 fi
6444 done
6445 done
6446 IFS=$as_save_IFS
6447
6448 fi
6449 fi
6450 STRIP=$ac_cv_prog_STRIP
6451 if test -n "$STRIP"; then
6452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6453 $as_echo "$STRIP" >&6; }
6454 else
6455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6456 $as_echo "no" >&6; }
6457 fi
6458
6459
6460 fi
6461 if test -z "$ac_cv_prog_STRIP"; then
6462 ac_ct_STRIP=$STRIP
6463 # Extract the first word of "strip", so it can be a program name with args.
6464 set dummy strip; ac_word=$2
6465 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6466 $as_echo_n "checking for $ac_word... " >&6; }
6467 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
6468 $as_echo_n "(cached) " >&6
6469 else
6470 if test -n "$ac_ct_STRIP"; then
6471 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6472 else
6473 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6474 for as_dir in $PATH
6475 do
6476 IFS=$as_save_IFS
6477 test -z "$as_dir" && as_dir=.
6478 for ac_exec_ext in '' $ac_executable_extensions; do
6479 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6480 ac_cv_prog_ac_ct_STRIP="strip"
6481 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6482 break 2
6483 fi
6484 done
6485 done
6486 IFS=$as_save_IFS
6487
6488 fi
6489 fi
6490 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6491 if test -n "$ac_ct_STRIP"; then
6492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6493 $as_echo "$ac_ct_STRIP" >&6; }
6494 else
6495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6496 $as_echo "no" >&6; }
6497 fi
6498
6499 if test "x$ac_ct_STRIP" = x; then
6500 STRIP=":"
6501 else
6502 case $cross_compiling:$ac_tool_warned in
6503 yes:)
6504 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6505 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6506 ac_tool_warned=yes ;;
6507 esac
6508 STRIP=$ac_ct_STRIP
6509 fi
6510 else
6511 STRIP="$ac_cv_prog_STRIP"
6512 fi
6513
6514 test -z "$STRIP" && STRIP=:
6515
6516
6517
6518
6519
6520
6521 if test -n "$ac_tool_prefix"; then
6522 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6523 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6524 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6525 $as_echo_n "checking for $ac_word... " >&6; }
6526 if test "${ac_cv_prog_RANLIB+set}" = set; then :
6527 $as_echo_n "(cached) " >&6
6528 else
6529 if test -n "$RANLIB"; then
6530 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6531 else
6532 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6533 for as_dir in $PATH
6534 do
6535 IFS=$as_save_IFS
6536 test -z "$as_dir" && as_dir=.
6537 for ac_exec_ext in '' $ac_executable_extensions; do
6538 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6539 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6540 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6541 break 2
6542 fi
6543 done
6544 done
6545 IFS=$as_save_IFS
6546
6547 fi
6548 fi
6549 RANLIB=$ac_cv_prog_RANLIB
6550 if test -n "$RANLIB"; then
6551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6552 $as_echo "$RANLIB" >&6; }
6553 else
6554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6555 $as_echo "no" >&6; }
6556 fi
6557
6558
6559 fi
6560 if test -z "$ac_cv_prog_RANLIB"; then
6561 ac_ct_RANLIB=$RANLIB
6562 # Extract the first word of "ranlib", so it can be a program name with args.
6563 set dummy ranlib; ac_word=$2
6564 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6565 $as_echo_n "checking for $ac_word... " >&6; }
6566 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
6567 $as_echo_n "(cached) " >&6
6568 else
6569 if test -n "$ac_ct_RANLIB"; then
6570 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6571 else
6572 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6573 for as_dir in $PATH
6574 do
6575 IFS=$as_save_IFS
6576 test -z "$as_dir" && as_dir=.
6577 for ac_exec_ext in '' $ac_executable_extensions; do
6578 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6579 ac_cv_prog_ac_ct_RANLIB="ranlib"
6580 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6581 break 2
6582 fi
6583 done
6584 done
6585 IFS=$as_save_IFS
6586
6587 fi
6588 fi
6589 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6590 if test -n "$ac_ct_RANLIB"; then
6591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6592 $as_echo "$ac_ct_RANLIB" >&6; }
6593 else
6594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6595 $as_echo "no" >&6; }
6596 fi
6597
6598 if test "x$ac_ct_RANLIB" = x; then
6599 RANLIB=":"
6600 else
6601 case $cross_compiling:$ac_tool_warned in
6602 yes:)
6603 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6604 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6605 ac_tool_warned=yes ;;
6606 esac
6607 RANLIB=$ac_ct_RANLIB
6608 fi
6609 else
6610 RANLIB="$ac_cv_prog_RANLIB"
6611 fi
6612
6613 test -z "$RANLIB" && RANLIB=:
6614
6615
6616
6617
6618
6619
6620 # Determine commands to create old-style static archives.
6621 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6622 old_postinstall_cmds='chmod 644 $oldlib'
6623 old_postuninstall_cmds=
6624
6625 if test -n "$RANLIB"; then
6626 case $host_os in
6627 openbsd*)
6628 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
6629 ;;
6630 *)
6631 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
6632 ;;
6633 esac
6634 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6635 fi
6636
6637
6638
6639
6640
6641
6642
6643
6644
6645
6646
6647
6648
6649
6650
6651
6652
6653
6654
6655
6656
6657
6658
6659
6660
6661
6662
6663
6664
6665
6666
6667
6668
6669
6670 # If no C compiler was specified, use CC.
6671 LTCC=${LTCC-"$CC"}
6672
6673 # If no C compiler flags were specified, use CFLAGS.
6674 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6675
6676 # Allow CC to be a program name with arguments.
6677 compiler=$CC
6678
6679
6680 # Check for command to grab the raw symbol name followed by C symbol from nm.
6681 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6682 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6683 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
6684 $as_echo_n "(cached) " >&6
6685 else
6686
6687 # These are sane defaults that work on at least a few old systems.
6688 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
6689
6690 # Character class describing NM global symbol codes.
6691 symcode='[BCDEGRST]'
6692
6693 # Regexp to match symbols that can be accessed directly from C.
6694 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6695
6696 # Define system-specific variables.
6697 case $host_os in
6698 aix*)
6699 symcode='[BCDT]'
6700 ;;
6701 cygwin* | mingw* | pw32* | cegcc*)
6702 symcode='[ABCDGISTW]'
6703 ;;
6704 hpux*)
6705 if test "$host_cpu" = ia64; then
6706 symcode='[ABCDEGRST]'
6707 fi
6708 ;;
6709 irix* | nonstopux*)
6710 symcode='[BCDEGRST]'
6711 ;;
6712 osf*)
6713 symcode='[BCDEGQRST]'
6714 ;;
6715 solaris*)
6716 symcode='[BDRT]'
6717 ;;
6718 sco3.2v5*)
6719 symcode='[DT]'
6720 ;;
6721 sysv4.2uw2*)
6722 symcode='[DT]'
6723 ;;
6724 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6725 symcode='[ABDT]'
6726 ;;
6727 sysv4)
6728 symcode='[DFNSTU]'
6729 ;;
6730 esac
6731
6732 # If we're using GNU nm, then use its standard symbol codes.
6733 case `$NM -V 2>&1` in
6734 *GNU* | *'with BFD'*)
6735 symcode='[ABCDGIRSTW]' ;;
6736 esac
6737
6738 # Transform an extracted symbol line into a proper C declaration.
6739 # Some systems (esp. on ia64) link data and code symbols differently,
6740 # so use this general approach.
6741 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6742
6743 # Transform an extracted symbol line into symbol name and symbol address
6744 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
6745 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'"
6746
6747 # Handle CRLF in mingw tool chain
6748 opt_cr=
6749 case $build_os in
6750 mingw*)
6751 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6752 ;;
6753 esac
6754
6755 # Try without a prefix underscore, then with it.
6756 for ac_symprfx in "" "_"; do
6757
6758 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6759 symxfrm="\\1 $ac_symprfx\\2 \\2"
6760
6761 # Write the raw and C identifiers.
6762 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6763 # Fake it for dumpbin and say T for any non-static function
6764 # and D for any global variable.
6765 # Also find C++ and __fastcall symbols from MSVC++,
6766 # which start with @ or ?.
6767 lt_cv_sys_global_symbol_pipe="$AWK '"\
6768 " {last_section=section; section=\$ 3};"\
6769 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6770 " \$ 0!~/External *\|/{next};"\
6771 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6772 " {if(hide[section]) next};"\
6773 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
6774 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
6775 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
6776 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
6777 " ' prfx=^$ac_symprfx"
6778 else
6779 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6780 fi
6781
6782 # Check to see that the pipe works correctly.
6783 pipe_works=no
6784
6785 rm -f conftest*
6786 cat > conftest.$ac_ext <<_LT_EOF
6787 #ifdef __cplusplus
6788 extern "C" {
6789 #endif
6790 char nm_test_var;
6791 void nm_test_func(void);
6792 void nm_test_func(void){}
6793 #ifdef __cplusplus
6794 }
6795 #endif
6796 int main(){nm_test_var='a';nm_test_func();return(0);}
6797 _LT_EOF
6798
6799 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6800 (eval $ac_compile) 2>&5
6801 ac_status=$?
6802 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6803 test $ac_status = 0; }; then
6804 # Now try to grab the symbols.
6805 nlist=conftest.nm
6806 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\""; } >&5
6807 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
6808 ac_status=$?
6809 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6810 test $ac_status = 0; } && test -s "$nlist"; then
6811 # Try sorting and uniquifying the output.
6812 if sort "$nlist" | uniq > "$nlist"T; then
6813 mv -f "$nlist"T "$nlist"
6814 else
6815 rm -f "$nlist"T
6816 fi
6817
6818 # Make sure that we snagged all the symbols we need.
6819 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6820 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6821 cat <<_LT_EOF > conftest.$ac_ext
6822 #ifdef __cplusplus
6823 extern "C" {
6824 #endif
6825
6826 _LT_EOF
6827 # Now generate the symbol file.
6828 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6829
6830 cat <<_LT_EOF >> conftest.$ac_ext
6831
6832 /* The mapping between symbol names and symbols. */
6833 const struct {
6834 const char *name;
6835 void *address;
6836 }
6837 lt__PROGRAM__LTX_preloaded_symbols[] =
6838 {
6839 { "@PROGRAM@", (void *) 0 },
6840 _LT_EOF
6841 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6842 cat <<\_LT_EOF >> conftest.$ac_ext
6843 {0, (void *) 0}
6844 };
6845
6846 /* This works around a problem in FreeBSD linker */
6847 #ifdef FREEBSD_WORKAROUND
6848 static const void *lt_preloaded_setup() {
6849 return lt__PROGRAM__LTX_preloaded_symbols;
6850 }
6851 #endif
6852
6853 #ifdef __cplusplus
6854 }
6855 #endif
6856 _LT_EOF
6857 # Now try linking the two files.
6858 mv conftest.$ac_objext conftstm.$ac_objext
6859 lt_save_LIBS="$LIBS"
6860 lt_save_CFLAGS="$CFLAGS"
6861 LIBS="conftstm.$ac_objext"
6862 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6863 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6864 (eval $ac_link) 2>&5
6865 ac_status=$?
6866 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6867 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
6868 pipe_works=yes
6869 fi
6870 LIBS="$lt_save_LIBS"
6871 CFLAGS="$lt_save_CFLAGS"
6872 else
6873 echo "cannot find nm_test_func in $nlist" >&5
6874 fi
6875 else
6876 echo "cannot find nm_test_var in $nlist" >&5
6877 fi
6878 else
6879 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6880 fi
6881 else
6882 echo "$progname: failed program was:" >&5
6883 cat conftest.$ac_ext >&5
6884 fi
6885 rm -rf conftest* conftst*
6886
6887 # Do not use the global_symbol_pipe unless it works.
6888 if test "$pipe_works" = yes; then
6889 break
6890 else
6891 lt_cv_sys_global_symbol_pipe=
6892 fi
6893 done
6894
6895 fi
6896
6897 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6898 lt_cv_sys_global_symbol_to_cdecl=
6899 fi
6900 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6902 $as_echo "failed" >&6; }
6903 else
6904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6905 $as_echo "ok" >&6; }
6906 fi
6907
6908
6909
6910
6911
6912
6913
6914
6915
6916
6917
6918
6919
6920
6921
6922
6923
6924
6925
6926
6927
6928
6929 # Check whether --enable-libtool-lock was given.
6930 if test "${enable_libtool_lock+set}" = set; then :
6931 enableval=$enable_libtool_lock;
6932 fi
6933
6934 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6935
6936 # Some flags need to be propagated to the compiler or linker for good
6937 # libtool support.
6938 case $host in
6939 ia64-*-hpux*)
6940 # Find out which ABI we are using.
6941 echo 'int i;' > conftest.$ac_ext
6942 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6943 (eval $ac_compile) 2>&5
6944 ac_status=$?
6945 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6946 test $ac_status = 0; }; then
6947 case `/usr/bin/file conftest.$ac_objext` in
6948 *ELF-32*)
6949 HPUX_IA64_MODE="32"
6950 ;;
6951 *ELF-64*)
6952 HPUX_IA64_MODE="64"
6953 ;;
6954 esac
6955 fi
6956 rm -rf conftest*
6957 ;;
6958 *-*-irix6*)
6959 # Find out which ABI we are using.
6960 echo '#line 6960 "configure"' > conftest.$ac_ext
6961 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6962 (eval $ac_compile) 2>&5
6963 ac_status=$?
6964 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6965 test $ac_status = 0; }; then
6966 if test "$lt_cv_prog_gnu_ld" = yes; then
6967 case `/usr/bin/file conftest.$ac_objext` in
6968 *32-bit*)
6969 LD="${LD-ld} -melf32bsmip"
6970 ;;
6971 *N32*)
6972 LD="${LD-ld} -melf32bmipn32"
6973 ;;
6974 *64-bit*)
6975 LD="${LD-ld} -melf64bmip"
6976 ;;
6977 esac
6978 else
6979 case `/usr/bin/file conftest.$ac_objext` in
6980 *32-bit*)
6981 LD="${LD-ld} -32"
6982 ;;
6983 *N32*)
6984 LD="${LD-ld} -n32"
6985 ;;
6986 *64-bit*)
6987 LD="${LD-ld} -64"
6988 ;;
6989 esac
6990 fi
6991 fi
6992 rm -rf conftest*
6993 ;;
6994
6995 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
6996 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6997 # Find out which ABI we are using.
6998 echo 'int i;' > conftest.$ac_ext
6999 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7000 (eval $ac_compile) 2>&5
7001 ac_status=$?
7002 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7003 test $ac_status = 0; }; then
7004 case `/usr/bin/file conftest.o` in
7005 *32-bit*)
7006 case $host in
7007 x86_64-*kfreebsd*-gnu)
7008 LD="${LD-ld} -m elf_i386_fbsd"
7009 ;;
7010 x86_64-*linux*)
7011 LD="${LD-ld} -m elf_i386"
7012 ;;
7013 ppc64-*linux*|powerpc64-*linux*)
7014 LD="${LD-ld} -m elf32ppclinux"
7015 ;;
7016 s390x-*linux*)
7017 LD="${LD-ld} -m elf_s390"
7018 ;;
7019 sparc64-*linux*)
7020 LD="${LD-ld} -m elf32_sparc"
7021 ;;
7022 esac
7023 ;;
7024 *64-bit*)
7025 case $host in
7026 x86_64-*kfreebsd*-gnu)
7027 LD="${LD-ld} -m elf_x86_64_fbsd"
7028 ;;
7029 x86_64-*linux*)
7030 LD="${LD-ld} -m elf_x86_64"
7031 ;;
7032 ppc*-*linux*|powerpc*-*linux*)
7033 LD="${LD-ld} -m elf64ppc"
7034 ;;
7035 s390*-*linux*|s390*-*tpf*)
7036 LD="${LD-ld} -m elf64_s390"
7037 ;;
7038 sparc*-*linux*)
7039 LD="${LD-ld} -m elf64_sparc"
7040 ;;
7041 esac
7042 ;;
7043 esac
7044 fi
7045 rm -rf conftest*
7046 ;;
7047
7048 *-*-sco3.2v5*)
7049 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7050 SAVE_CFLAGS="$CFLAGS"
7051 CFLAGS="$CFLAGS -belf"
7052 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
7053 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
7054 if test "${lt_cv_cc_needs_belf+set}" = set; then :
7055 $as_echo_n "(cached) " >&6
7056 else
7057 ac_ext=c
7058 ac_cpp='$CPP $CPPFLAGS'
7059 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7060 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7061 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7062
7063 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7064 /* end confdefs.h. */
7065
7066 int
7067 main ()
7068 {
7069
7070 ;
7071 return 0;
7072 }
7073 _ACEOF
7074 if ac_fn_c_try_link "$LINENO"; then :
7075 lt_cv_cc_needs_belf=yes
7076 else
7077 lt_cv_cc_needs_belf=no
7078 fi
7079 rm -f core conftest.err conftest.$ac_objext \
7080 conftest$ac_exeext conftest.$ac_ext
7081 ac_ext=c
7082 ac_cpp='$CPP $CPPFLAGS'
7083 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7084 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7085 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7086
7087 fi
7088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
7089 $as_echo "$lt_cv_cc_needs_belf" >&6; }
7090 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
7091 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7092 CFLAGS="$SAVE_CFLAGS"
7093 fi
7094 ;;
7095 sparc*-*solaris*)
7096 # Find out which ABI we are using.
7097 echo 'int i;' > conftest.$ac_ext
7098 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7099 (eval $ac_compile) 2>&5
7100 ac_status=$?
7101 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7102 test $ac_status = 0; }; then
7103 case `/usr/bin/file conftest.o` in
7104 *64-bit*)
7105 case $lt_cv_prog_gnu_ld in
7106 yes*) LD="${LD-ld} -m elf64_sparc" ;;
7107 *)
7108 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7109 LD="${LD-ld} -64"
7110 fi
7111 ;;
7112 esac
7113 ;;
7114 esac
7115 fi
7116 rm -rf conftest*
7117 ;;
7118 esac
7119
7120 need_locks="$enable_libtool_lock"
7121
7122
7123 case $host_os in
7124 rhapsody* | darwin*)
7125 if test -n "$ac_tool_prefix"; then
7126 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7127 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7128 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7129 $as_echo_n "checking for $ac_word... " >&6; }
7130 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
7131 $as_echo_n "(cached) " >&6
7132 else
7133 if test -n "$DSYMUTIL"; then
7134 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7135 else
7136 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7137 for as_dir in $PATH
7138 do
7139 IFS=$as_save_IFS
7140 test -z "$as_dir" && as_dir=.
7141 for ac_exec_ext in '' $ac_executable_extensions; do
7142 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7143 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7144 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7145 break 2
7146 fi
7147 done
7148 done
7149 IFS=$as_save_IFS
7150
7151 fi
7152 fi
7153 DSYMUTIL=$ac_cv_prog_DSYMUTIL
7154 if test -n "$DSYMUTIL"; then
7155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
7156 $as_echo "$DSYMUTIL" >&6; }
7157 else
7158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7159 $as_echo "no" >&6; }
7160 fi
7161
7162
7163 fi
7164 if test -z "$ac_cv_prog_DSYMUTIL"; then
7165 ac_ct_DSYMUTIL=$DSYMUTIL
7166 # Extract the first word of "dsymutil", so it can be a program name with args.
7167 set dummy dsymutil; ac_word=$2
7168 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7169 $as_echo_n "checking for $ac_word... " >&6; }
7170 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
7171 $as_echo_n "(cached) " >&6
7172 else
7173 if test -n "$ac_ct_DSYMUTIL"; then
7174 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7175 else
7176 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7177 for as_dir in $PATH
7178 do
7179 IFS=$as_save_IFS
7180 test -z "$as_dir" && as_dir=.
7181 for ac_exec_ext in '' $ac_executable_extensions; do
7182 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7183 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7184 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7185 break 2
7186 fi
7187 done
7188 done
7189 IFS=$as_save_IFS
7190
7191 fi
7192 fi
7193 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7194 if test -n "$ac_ct_DSYMUTIL"; then
7195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
7196 $as_echo "$ac_ct_DSYMUTIL" >&6; }
7197 else
7198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7199 $as_echo "no" >&6; }
7200 fi
7201
7202 if test "x$ac_ct_DSYMUTIL" = x; then
7203 DSYMUTIL=":"
7204 else
7205 case $cross_compiling:$ac_tool_warned in
7206 yes:)
7207 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7208 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7209 ac_tool_warned=yes ;;
7210 esac
7211 DSYMUTIL=$ac_ct_DSYMUTIL
7212 fi
7213 else
7214 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7215 fi
7216
7217 if test -n "$ac_tool_prefix"; then
7218 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7219 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7220 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7221 $as_echo_n "checking for $ac_word... " >&6; }
7222 if test "${ac_cv_prog_NMEDIT+set}" = set; then :
7223 $as_echo_n "(cached) " >&6
7224 else
7225 if test -n "$NMEDIT"; then
7226 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7227 else
7228 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7229 for as_dir in $PATH
7230 do
7231 IFS=$as_save_IFS
7232 test -z "$as_dir" && as_dir=.
7233 for ac_exec_ext in '' $ac_executable_extensions; do
7234 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7235 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7236 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7237 break 2
7238 fi
7239 done
7240 done
7241 IFS=$as_save_IFS
7242
7243 fi
7244 fi
7245 NMEDIT=$ac_cv_prog_NMEDIT
7246 if test -n "$NMEDIT"; then
7247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
7248 $as_echo "$NMEDIT" >&6; }
7249 else
7250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7251 $as_echo "no" >&6; }
7252 fi
7253
7254
7255 fi
7256 if test -z "$ac_cv_prog_NMEDIT"; then
7257 ac_ct_NMEDIT=$NMEDIT
7258 # Extract the first word of "nmedit", so it can be a program name with args.
7259 set dummy nmedit; ac_word=$2
7260 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7261 $as_echo_n "checking for $ac_word... " >&6; }
7262 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
7263 $as_echo_n "(cached) " >&6
7264 else
7265 if test -n "$ac_ct_NMEDIT"; then
7266 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7267 else
7268 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7269 for as_dir in $PATH
7270 do
7271 IFS=$as_save_IFS
7272 test -z "$as_dir" && as_dir=.
7273 for ac_exec_ext in '' $ac_executable_extensions; do
7274 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7275 ac_cv_prog_ac_ct_NMEDIT="nmedit"
7276 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7277 break 2
7278 fi
7279 done
7280 done
7281 IFS=$as_save_IFS
7282
7283 fi
7284 fi
7285 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7286 if test -n "$ac_ct_NMEDIT"; then
7287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7288 $as_echo "$ac_ct_NMEDIT" >&6; }
7289 else
7290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7291 $as_echo "no" >&6; }
7292 fi
7293
7294 if test "x$ac_ct_NMEDIT" = x; then
7295 NMEDIT=":"
7296 else
7297 case $cross_compiling:$ac_tool_warned in
7298 yes:)
7299 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7300 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7301 ac_tool_warned=yes ;;
7302 esac
7303 NMEDIT=$ac_ct_NMEDIT
7304 fi
7305 else
7306 NMEDIT="$ac_cv_prog_NMEDIT"
7307 fi
7308
7309 if test -n "$ac_tool_prefix"; then
7310 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7311 set dummy ${ac_tool_prefix}lipo; ac_word=$2
7312 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7313 $as_echo_n "checking for $ac_word... " >&6; }
7314 if test "${ac_cv_prog_LIPO+set}" = set; then :
7315 $as_echo_n "(cached) " >&6
7316 else
7317 if test -n "$LIPO"; then
7318 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7319 else
7320 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7321 for as_dir in $PATH
7322 do
7323 IFS=$as_save_IFS
7324 test -z "$as_dir" && as_dir=.
7325 for ac_exec_ext in '' $ac_executable_extensions; do
7326 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7327 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7328 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7329 break 2
7330 fi
7331 done
7332 done
7333 IFS=$as_save_IFS
7334
7335 fi
7336 fi
7337 LIPO=$ac_cv_prog_LIPO
7338 if test -n "$LIPO"; then
7339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7340 $as_echo "$LIPO" >&6; }
7341 else
7342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7343 $as_echo "no" >&6; }
7344 fi
7345
7346
7347 fi
7348 if test -z "$ac_cv_prog_LIPO"; then
7349 ac_ct_LIPO=$LIPO
7350 # Extract the first word of "lipo", so it can be a program name with args.
7351 set dummy lipo; ac_word=$2
7352 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7353 $as_echo_n "checking for $ac_word... " >&6; }
7354 if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
7355 $as_echo_n "(cached) " >&6
7356 else
7357 if test -n "$ac_ct_LIPO"; then
7358 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7359 else
7360 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7361 for as_dir in $PATH
7362 do
7363 IFS=$as_save_IFS
7364 test -z "$as_dir" && as_dir=.
7365 for ac_exec_ext in '' $ac_executable_extensions; do
7366 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7367 ac_cv_prog_ac_ct_LIPO="lipo"
7368 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7369 break 2
7370 fi
7371 done
7372 done
7373 IFS=$as_save_IFS
7374
7375 fi
7376 fi
7377 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7378 if test -n "$ac_ct_LIPO"; then
7379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7380 $as_echo "$ac_ct_LIPO" >&6; }
7381 else
7382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7383 $as_echo "no" >&6; }
7384 fi
7385
7386 if test "x$ac_ct_LIPO" = x; then
7387 LIPO=":"
7388 else
7389 case $cross_compiling:$ac_tool_warned in
7390 yes:)
7391 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7392 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7393 ac_tool_warned=yes ;;
7394 esac
7395 LIPO=$ac_ct_LIPO
7396 fi
7397 else
7398 LIPO="$ac_cv_prog_LIPO"
7399 fi
7400
7401 if test -n "$ac_tool_prefix"; then
7402 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7403 set dummy ${ac_tool_prefix}otool; ac_word=$2
7404 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7405 $as_echo_n "checking for $ac_word... " >&6; }
7406 if test "${ac_cv_prog_OTOOL+set}" = set; then :
7407 $as_echo_n "(cached) " >&6
7408 else
7409 if test -n "$OTOOL"; then
7410 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7411 else
7412 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7413 for as_dir in $PATH
7414 do
7415 IFS=$as_save_IFS
7416 test -z "$as_dir" && as_dir=.
7417 for ac_exec_ext in '' $ac_executable_extensions; do
7418 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7419 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7420 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7421 break 2
7422 fi
7423 done
7424 done
7425 IFS=$as_save_IFS
7426
7427 fi
7428 fi
7429 OTOOL=$ac_cv_prog_OTOOL
7430 if test -n "$OTOOL"; then
7431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7432 $as_echo "$OTOOL" >&6; }
7433 else
7434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7435 $as_echo "no" >&6; }
7436 fi
7437
7438
7439 fi
7440 if test -z "$ac_cv_prog_OTOOL"; then
7441 ac_ct_OTOOL=$OTOOL
7442 # Extract the first word of "otool", so it can be a program name with args.
7443 set dummy otool; ac_word=$2
7444 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7445 $as_echo_n "checking for $ac_word... " >&6; }
7446 if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
7447 $as_echo_n "(cached) " >&6
7448 else
7449 if test -n "$ac_ct_OTOOL"; then
7450 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7451 else
7452 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7453 for as_dir in $PATH
7454 do
7455 IFS=$as_save_IFS
7456 test -z "$as_dir" && as_dir=.
7457 for ac_exec_ext in '' $ac_executable_extensions; do
7458 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7459 ac_cv_prog_ac_ct_OTOOL="otool"
7460 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7461 break 2
7462 fi
7463 done
7464 done
7465 IFS=$as_save_IFS
7466
7467 fi
7468 fi
7469 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7470 if test -n "$ac_ct_OTOOL"; then
7471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7472 $as_echo "$ac_ct_OTOOL" >&6; }
7473 else
7474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7475 $as_echo "no" >&6; }
7476 fi
7477
7478 if test "x$ac_ct_OTOOL" = x; then
7479 OTOOL=":"
7480 else
7481 case $cross_compiling:$ac_tool_warned in
7482 yes:)
7483 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7484 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7485 ac_tool_warned=yes ;;
7486 esac
7487 OTOOL=$ac_ct_OTOOL
7488 fi
7489 else
7490 OTOOL="$ac_cv_prog_OTOOL"
7491 fi
7492
7493 if test -n "$ac_tool_prefix"; then
7494 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7495 set dummy ${ac_tool_prefix}otool64; ac_word=$2
7496 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7497 $as_echo_n "checking for $ac_word... " >&6; }
7498 if test "${ac_cv_prog_OTOOL64+set}" = set; then :
7499 $as_echo_n "(cached) " >&6
7500 else
7501 if test -n "$OTOOL64"; then
7502 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7503 else
7504 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7505 for as_dir in $PATH
7506 do
7507 IFS=$as_save_IFS
7508 test -z "$as_dir" && as_dir=.
7509 for ac_exec_ext in '' $ac_executable_extensions; do
7510 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7511 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7512 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7513 break 2
7514 fi
7515 done
7516 done
7517 IFS=$as_save_IFS
7518
7519 fi
7520 fi
7521 OTOOL64=$ac_cv_prog_OTOOL64
7522 if test -n "$OTOOL64"; then
7523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
7524 $as_echo "$OTOOL64" >&6; }
7525 else
7526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7527 $as_echo "no" >&6; }
7528 fi
7529
7530
7531 fi
7532 if test -z "$ac_cv_prog_OTOOL64"; then
7533 ac_ct_OTOOL64=$OTOOL64
7534 # Extract the first word of "otool64", so it can be a program name with args.
7535 set dummy otool64; ac_word=$2
7536 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7537 $as_echo_n "checking for $ac_word... " >&6; }
7538 if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
7539 $as_echo_n "(cached) " >&6
7540 else
7541 if test -n "$ac_ct_OTOOL64"; then
7542 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7543 else
7544 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7545 for as_dir in $PATH
7546 do
7547 IFS=$as_save_IFS
7548 test -z "$as_dir" && as_dir=.
7549 for ac_exec_ext in '' $ac_executable_extensions; do
7550 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7551 ac_cv_prog_ac_ct_OTOOL64="otool64"
7552 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7553 break 2
7554 fi
7555 done
7556 done
7557 IFS=$as_save_IFS
7558
7559 fi
7560 fi
7561 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7562 if test -n "$ac_ct_OTOOL64"; then
7563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
7564 $as_echo "$ac_ct_OTOOL64" >&6; }
7565 else
7566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7567 $as_echo "no" >&6; }
7568 fi
7569
7570 if test "x$ac_ct_OTOOL64" = x; then
7571 OTOOL64=":"
7572 else
7573 case $cross_compiling:$ac_tool_warned in
7574 yes:)
7575 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7576 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7577 ac_tool_warned=yes ;;
7578 esac
7579 OTOOL64=$ac_ct_OTOOL64
7580 fi
7581 else
7582 OTOOL64="$ac_cv_prog_OTOOL64"
7583 fi
7584
7585
7586
7587
7588
7589
7590
7591
7592
7593
7594
7595
7596
7597
7598
7599
7600
7601
7602
7603
7604
7605
7606
7607
7608
7609
7610
7611 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7612 $as_echo_n "checking for -single_module linker flag... " >&6; }
7613 if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
7614 $as_echo_n "(cached) " >&6
7615 else
7616 lt_cv_apple_cc_single_mod=no
7617 if test -z "${LT_MULTI_MODULE}"; then
7618 # By default we will add the -single_module flag. You can override
7619 # by either setting the environment variable LT_MULTI_MODULE
7620 # non-empty at configure time, or by adding -multi_module to the
7621 # link flags.
7622 rm -rf libconftest.dylib*
7623 echo "int foo(void){return 1;}" > conftest.c
7624 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7625 -dynamiclib -Wl,-single_module conftest.c" >&5
7626 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7627 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7628 _lt_result=$?
7629 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
7630 lt_cv_apple_cc_single_mod=yes
7631 else
7632 cat conftest.err >&5
7633 fi
7634 rm -rf libconftest.dylib*
7635 rm -f conftest.*
7636 fi
7637 fi
7638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7639 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7640 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7641 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7642 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
7643 $as_echo_n "(cached) " >&6
7644 else
7645 lt_cv_ld_exported_symbols_list=no
7646 save_LDFLAGS=$LDFLAGS
7647 echo "_main" > conftest.sym
7648 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7649 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7650 /* end confdefs.h. */
7651
7652 int
7653 main ()
7654 {
7655
7656 ;
7657 return 0;
7658 }
7659 _ACEOF
7660 if ac_fn_c_try_link "$LINENO"; then :
7661 lt_cv_ld_exported_symbols_list=yes
7662 else
7663 lt_cv_ld_exported_symbols_list=no
7664 fi
7665 rm -f core conftest.err conftest.$ac_objext \
7666 conftest$ac_exeext conftest.$ac_ext
7667 LDFLAGS="$save_LDFLAGS"
7668
7669 fi
7670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7671 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7672 case $host_os in
7673 rhapsody* | darwin1.[012])
7674 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7675 darwin1.*)
7676 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7677 darwin*) # darwin 5.x on
7678 # if running on 10.5 or later, the deployment target defaults
7679 # to the OS version, if on x86, and 10.4, the deployment
7680 # target defaults to 10.4. Don't you love it?
7681 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7682 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7683 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7684 10.[012]*)
7685 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7686 10.*)
7687 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7688 esac
7689 ;;
7690 esac
7691 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7692 _lt_dar_single_mod='$single_module'
7693 fi
7694 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7695 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7696 else
7697 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
7698 fi
7699 if test "$DSYMUTIL" != ":"; then
7700 _lt_dsymutil='~$DSYMUTIL $lib || :'
7701 else
7702 _lt_dsymutil=
7703 fi
7704 ;;
7705 esac
7706
7707 for ac_header in dlfcn.h
7708 do :
7709 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7710 "
7711 if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
7712 cat >>confdefs.h <<_ACEOF
7713 #define HAVE_DLFCN_H 1
7714 _ACEOF
7715
7716 fi
7717
7718 done
7719
7720
7721
7722 # Set options
7723
7724
7725
7726 enable_dlopen=no
7727
7728
7729 enable_win32_dll=no
7730
7731
7732 # Check whether --enable-shared was given.
7733 if test "${enable_shared+set}" = set; then :
7734 enableval=$enable_shared; p=${PACKAGE-default}
7735 case $enableval in
7736 yes) enable_shared=yes ;;
7737 no) enable_shared=no ;;
7738 *)
7739 enable_shared=no
7740 # Look at the argument we got. We use all the common list separators.
7741 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7742 for pkg in $enableval; do
7743 IFS="$lt_save_ifs"
7744 if test "X$pkg" = "X$p"; then
7745 enable_shared=yes
7746 fi
7747 done
7748 IFS="$lt_save_ifs"
7749 ;;
7750 esac
7751 else
7752 enable_shared=yes
7753 fi
7754
7755
7756
7757
7758
7759
7760
7761
7762
7763 # Check whether --enable-static was given.
7764 if test "${enable_static+set}" = set; then :
7765 enableval=$enable_static; p=${PACKAGE-default}
7766 case $enableval in
7767 yes) enable_static=yes ;;
7768 no) enable_static=no ;;
7769 *)
7770 enable_static=no
7771 # Look at the argument we got. We use all the common list separators.
7772 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7773 for pkg in $enableval; do
7774 IFS="$lt_save_ifs"
7775 if test "X$pkg" = "X$p"; then
7776 enable_static=yes
7777 fi
7778 done
7779 IFS="$lt_save_ifs"
7780 ;;
7781 esac
7782 else
7783 enable_static=yes
7784 fi
7785
7786
7787
7788
7789
7790
7791
7792
7793
7794
7795 # Check whether --with-pic was given.
7796 if test "${with_pic+set}" = set; then :
7797 withval=$with_pic; pic_mode="$withval"
7798 else
7799 pic_mode=default
7800 fi
7801
7802
7803 test -z "$pic_mode" && pic_mode=default
7804
7805
7806
7807
7808
7809
7810
7811 # Check whether --enable-fast-install was given.
7812 if test "${enable_fast_install+set}" = set; then :
7813 enableval=$enable_fast_install; p=${PACKAGE-default}
7814 case $enableval in
7815 yes) enable_fast_install=yes ;;
7816 no) enable_fast_install=no ;;
7817 *)
7818 enable_fast_install=no
7819 # Look at the argument we got. We use all the common list separators.
7820 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7821 for pkg in $enableval; do
7822 IFS="$lt_save_ifs"
7823 if test "X$pkg" = "X$p"; then
7824 enable_fast_install=yes
7825 fi
7826 done
7827 IFS="$lt_save_ifs"
7828 ;;
7829 esac
7830 else
7831 enable_fast_install=yes
7832 fi
7833
7834
7835
7836
7837
7838
7839
7840
7841
7842
7843
7844 # This can be used to rebuild libtool when needed
7845 LIBTOOL_DEPS="$ltmain"
7846
7847 # Always use our own libtool.
7848 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
7849
7850
7851
7852
7853
7854
7855
7856
7857
7858
7859
7860
7861
7862
7863
7864
7865
7866
7867
7868
7869
7870
7871
7872
7873
7874 test -z "$LN_S" && LN_S="ln -s"
7875
7876
7877
7878
7879
7880
7881
7882
7883
7884
7885
7886
7887
7888
7889 if test -n "${ZSH_VERSION+set}" ; then
7890 setopt NO_GLOB_SUBST
7891 fi
7892
7893 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
7894 $as_echo_n "checking for objdir... " >&6; }
7895 if test "${lt_cv_objdir+set}" = set; then :
7896 $as_echo_n "(cached) " >&6
7897 else
7898 rm -f .libs 2>/dev/null
7899 mkdir .libs 2>/dev/null
7900 if test -d .libs; then
7901 lt_cv_objdir=.libs
7902 else
7903 # MS-DOS does not allow filenames that begin with a dot.
7904 lt_cv_objdir=_libs
7905 fi
7906 rmdir .libs 2>/dev/null
7907 fi
7908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
7909 $as_echo "$lt_cv_objdir" >&6; }
7910 objdir=$lt_cv_objdir
7911
7912
7913
7914
7915
7916 cat >>confdefs.h <<_ACEOF
7917 #define LT_OBJDIR "$lt_cv_objdir/"
7918 _ACEOF
7919
7920
7921
7922
7923
7924
7925
7926
7927
7928
7929
7930
7931
7932
7933
7934
7935
7936 case $host_os in
7937 aix3*)
7938 # AIX sometimes has problems with the GCC collect2 program. For some
7939 # reason, if we set the COLLECT_NAMES environment variable, the problems
7940 # vanish in a puff of smoke.
7941 if test "X${COLLECT_NAMES+set}" != Xset; then
7942 COLLECT_NAMES=
7943 export COLLECT_NAMES
7944 fi
7945 ;;
7946 esac
7947
7948 # Sed substitution that helps us do robust quoting. It backslashifies
7949 # metacharacters that are still active within double-quoted strings.
7950 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
7951
7952 # Same as above, but do not quote variable references.
7953 double_quote_subst='s/\(["`\\]\)/\\\1/g'
7954
7955 # Sed substitution to delay expansion of an escaped shell variable in a
7956 # double_quote_subst'ed string.
7957 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
7958
7959 # Sed substitution to delay expansion of an escaped single quote.
7960 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
7961
7962 # Sed substitution to avoid accidental globbing in evaled expressions
7963 no_glob_subst='s/\*/\\\*/g'
7964
7965 # Global variables:
7966 ofile=libtool
7967 can_build_shared=yes
7968
7969 # All known linkers require a `.a' archive for static linking (except MSVC,
7970 # which needs '.lib').
7971 libext=a
7972
7973 with_gnu_ld="$lt_cv_prog_gnu_ld"
7974
7975 old_CC="$CC"
7976 old_CFLAGS="$CFLAGS"
7977
7978 # Set sane defaults for various variables
7979 test -z "$CC" && CC=cc
7980 test -z "$LTCC" && LTCC=$CC
7981 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7982 test -z "$LD" && LD=ld
7983 test -z "$ac_objext" && ac_objext=o
7984
7985 for cc_temp in $compiler""; do
7986 case $cc_temp in
7987 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7988 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7989 \-*) ;;
7990 *) break;;
7991 esac
7992 done
7993 cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7994
7995
7996 # Only perform the check for file, if the check method requires it
7997 test -z "$MAGIC_CMD" && MAGIC_CMD=file
7998 case $deplibs_check_method in
7999 file_magic*)
8000 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8001 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8002 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
8003 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
8004 $as_echo_n "(cached) " >&6
8005 else
8006 case $MAGIC_CMD in
8007 [\\/*] | ?:[\\/]*)
8008 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8009 ;;
8010 *)
8011 lt_save_MAGIC_CMD="$MAGIC_CMD"
8012 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8013 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8014 for ac_dir in $ac_dummy; do
8015 IFS="$lt_save_ifs"
8016 test -z "$ac_dir" && ac_dir=.
8017 if test -f $ac_dir/${ac_tool_prefix}file; then
8018 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8019 if test -n "$file_magic_test_file"; then
8020 case $deplibs_check_method in
8021 "file_magic "*)
8022 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8023 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8024 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8025 $EGREP "$file_magic_regex" > /dev/null; then
8026 :
8027 else
8028 cat <<_LT_EOF 1>&2
8029
8030 *** Warning: the command libtool uses to detect shared libraries,
8031 *** $file_magic_cmd, produces output that libtool cannot recognize.
8032 *** The result is that libtool may fail to recognize shared libraries
8033 *** as such. This will affect the creation of libtool libraries that
8034 *** depend on shared libraries, but programs linked with such libtool
8035 *** libraries will work regardless of this problem. Nevertheless, you
8036 *** may want to report the problem to your system manager and/or to
8037 *** bug-libtool@gnu.org
8038
8039 _LT_EOF
8040 fi ;;
8041 esac
8042 fi
8043 break
8044 fi
8045 done
8046 IFS="$lt_save_ifs"
8047 MAGIC_CMD="$lt_save_MAGIC_CMD"
8048 ;;
8049 esac
8050 fi
8051
8052 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8053 if test -n "$MAGIC_CMD"; then
8054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8055 $as_echo "$MAGIC_CMD" >&6; }
8056 else
8057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8058 $as_echo "no" >&6; }
8059 fi
8060
8061
8062
8063
8064
8065 if test -z "$lt_cv_path_MAGIC_CMD"; then
8066 if test -n "$ac_tool_prefix"; then
8067 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8068 $as_echo_n "checking for file... " >&6; }
8069 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
8070 $as_echo_n "(cached) " >&6
8071 else
8072 case $MAGIC_CMD in
8073 [\\/*] | ?:[\\/]*)
8074 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8075 ;;
8076 *)
8077 lt_save_MAGIC_CMD="$MAGIC_CMD"
8078 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8079 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8080 for ac_dir in $ac_dummy; do
8081 IFS="$lt_save_ifs"
8082 test -z "$ac_dir" && ac_dir=.
8083 if test -f $ac_dir/file; then
8084 lt_cv_path_MAGIC_CMD="$ac_dir/file"
8085 if test -n "$file_magic_test_file"; then
8086 case $deplibs_check_method in
8087 "file_magic "*)
8088 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8089 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8090 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8091 $EGREP "$file_magic_regex" > /dev/null; then
8092 :
8093 else
8094 cat <<_LT_EOF 1>&2
8095
8096 *** Warning: the command libtool uses to detect shared libraries,
8097 *** $file_magic_cmd, produces output that libtool cannot recognize.
8098 *** The result is that libtool may fail to recognize shared libraries
8099 *** as such. This will affect the creation of libtool libraries that
8100 *** depend on shared libraries, but programs linked with such libtool
8101 *** libraries will work regardless of this problem. Nevertheless, you
8102 *** may want to report the problem to your system manager and/or to
8103 *** bug-libtool@gnu.org
8104
8105 _LT_EOF
8106 fi ;;
8107 esac
8108 fi
8109 break
8110 fi
8111 done
8112 IFS="$lt_save_ifs"
8113 MAGIC_CMD="$lt_save_MAGIC_CMD"
8114 ;;
8115 esac
8116 fi
8117
8118 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8119 if test -n "$MAGIC_CMD"; then
8120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8121 $as_echo "$MAGIC_CMD" >&6; }
8122 else
8123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8124 $as_echo "no" >&6; }
8125 fi
8126
8127
8128 else
8129 MAGIC_CMD=:
8130 fi
8131 fi
8132
8133 fi
8134 ;;
8135 esac
8136
8137 # Use C for the default configuration in the libtool script
8138
8139 lt_save_CC="$CC"
8140 ac_ext=c
8141 ac_cpp='$CPP $CPPFLAGS'
8142 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8143 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8144 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8145
8146
8147 # Source file extension for C test sources.
8148 ac_ext=c
8149
8150 # Object file extension for compiled C test sources.
8151 objext=o
8152 objext=$objext
8153
8154 # Code to be used in simple compile tests
8155 lt_simple_compile_test_code="int some_variable = 0;"
8156
8157 # Code to be used in simple link tests
8158 lt_simple_link_test_code='int main(){return(0);}'
8159
8160
8161
8162
8163
8164
8165
8166 # If no C compiler was specified, use CC.
8167 LTCC=${LTCC-"$CC"}
8168
8169 # If no C compiler flags were specified, use CFLAGS.
8170 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8171
8172 # Allow CC to be a program name with arguments.
8173 compiler=$CC
8174
8175 # Save the default compiler, since it gets overwritten when the other
8176 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8177 compiler_DEFAULT=$CC
8178
8179 # save warnings/boilerplate of simple test code
8180 ac_outfile=conftest.$ac_objext
8181 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8182 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8183 _lt_compiler_boilerplate=`cat conftest.err`
8184 $RM conftest*
8185
8186 ac_outfile=conftest.$ac_objext
8187 echo "$lt_simple_link_test_code" >conftest.$ac_ext
8188 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8189 _lt_linker_boilerplate=`cat conftest.err`
8190 $RM -r conftest*
8191
8192
8193 ## CAVEAT EMPTOR:
8194 ## There is no encapsulation within the following macros, do not change
8195 ## the running order or otherwise move them around unless you know exactly
8196 ## what you are doing...
8197 if test -n "$compiler"; then
8198
8199 lt_prog_compiler_no_builtin_flag=
8200
8201 if test "$GCC" = yes; then
8202 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
8203
8204 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8205 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8206 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
8207 $as_echo_n "(cached) " >&6
8208 else
8209 lt_cv_prog_compiler_rtti_exceptions=no
8210 ac_outfile=conftest.$ac_objext
8211 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8212 lt_compiler_flag="-fno-rtti -fno-exceptions"
8213 # Insert the option either (1) after the last *FLAGS variable, or
8214 # (2) before a word containing "conftest.", or (3) at the end.
8215 # Note that $ac_compile itself does not contain backslashes and begins
8216 # with a dollar sign (not a hyphen), so the echo should work correctly.
8217 # The option is referenced via a variable to avoid confusing sed.
8218 lt_compile=`echo "$ac_compile" | $SED \
8219 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8220 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8221 -e 's:$: $lt_compiler_flag:'`
8222 (eval echo "\"\$as_me:8222: $lt_compile\"" >&5)
8223 (eval "$lt_compile" 2>conftest.err)
8224 ac_status=$?
8225 cat conftest.err >&5
8226 echo "$as_me:8226: \$? = $ac_status" >&5
8227 if (exit $ac_status) && test -s "$ac_outfile"; then
8228 # The compiler can only warn and ignore the option if not recognized
8229 # So say no if there are warnings other than the usual output.
8230 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
8231 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8232 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8233 lt_cv_prog_compiler_rtti_exceptions=yes
8234 fi
8235 fi
8236 $RM conftest*
8237
8238 fi
8239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8240 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8241
8242 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8243 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8244 else
8245 :
8246 fi
8247
8248 fi
8249
8250
8251
8252
8253
8254
8255 lt_prog_compiler_wl=
8256 lt_prog_compiler_pic=
8257 lt_prog_compiler_static=
8258
8259 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8260 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8261
8262 if test "$GCC" = yes; then
8263 lt_prog_compiler_wl='-Wl,'
8264 lt_prog_compiler_static='-static'
8265
8266 case $host_os in
8267 aix*)
8268 # All AIX code is PIC.
8269 if test "$host_cpu" = ia64; then
8270 # AIX 5 now supports IA64 processor
8271 lt_prog_compiler_static='-Bstatic'
8272 fi
8273 ;;
8274
8275 amigaos*)
8276 case $host_cpu in
8277 powerpc)
8278 # see comment about AmigaOS4 .so support
8279 lt_prog_compiler_pic='-fPIC'
8280 ;;
8281 m68k)
8282 # FIXME: we need at least 68020 code to build shared libraries, but
8283 # adding the `-m68020' flag to GCC prevents building anything better,
8284 # like `-m68040'.
8285 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8286 ;;
8287 esac
8288 ;;
8289
8290 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8291 # PIC is the default for these OSes.
8292 ;;
8293
8294 mingw* | cygwin* | pw32* | os2* | cegcc*)
8295 # This hack is so that the source file can tell whether it is being
8296 # built for inclusion in a dll (and should export symbols for example).
8297 # Although the cygwin gcc ignores -fPIC, still need this for old-style
8298 # (--disable-auto-import) libraries
8299 lt_prog_compiler_pic='-DDLL_EXPORT'
8300 ;;
8301
8302 darwin* | rhapsody*)
8303 # PIC is the default on this platform
8304 # Common symbols not allowed in MH_DYLIB files
8305 lt_prog_compiler_pic='-fno-common'
8306 ;;
8307
8308 hpux*)
8309 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8310 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
8311 # sets the default TLS model and affects inlining.
8312 case $host_cpu in
8313 hppa*64*)
8314 # +Z the default
8315 ;;
8316 *)
8317 lt_prog_compiler_pic='-fPIC'
8318 ;;
8319 esac
8320 ;;
8321
8322 interix[3-9]*)
8323 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8324 # Instead, we relocate shared libraries at runtime.
8325 ;;
8326
8327 msdosdjgpp*)
8328 # Just because we use GCC doesn't mean we suddenly get shared libraries
8329 # on systems that don't support them.
8330 lt_prog_compiler_can_build_shared=no
8331 enable_shared=no
8332 ;;
8333
8334 *nto* | *qnx*)
8335 # QNX uses GNU C++, but need to define -shared option too, otherwise
8336 # it will coredump.
8337 lt_prog_compiler_pic='-fPIC -shared'
8338 ;;
8339
8340 sysv4*MP*)
8341 if test -d /usr/nec; then
8342 lt_prog_compiler_pic=-Kconform_pic
8343 fi
8344 ;;
8345
8346 *)
8347 lt_prog_compiler_pic='-fPIC'
8348 ;;
8349 esac
8350 else
8351 # PORTME Check for flag to pass linker flags through the system compiler.
8352 case $host_os in
8353 aix*)
8354 lt_prog_compiler_wl='-Wl,'
8355 if test "$host_cpu" = ia64; then
8356 # AIX 5 now supports IA64 processor
8357 lt_prog_compiler_static='-Bstatic'
8358 else
8359 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8360 fi
8361 ;;
8362
8363 mingw* | cygwin* | pw32* | os2* | cegcc*)
8364 # This hack is so that the source file can tell whether it is being
8365 # built for inclusion in a dll (and should export symbols for example).
8366 lt_prog_compiler_pic='-DDLL_EXPORT'
8367 ;;
8368
8369 hpux9* | hpux10* | hpux11*)
8370 lt_prog_compiler_wl='-Wl,'
8371 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8372 # not for PA HP-UX.
8373 case $host_cpu in
8374 hppa*64*|ia64*)
8375 # +Z the default
8376 ;;
8377 *)
8378 lt_prog_compiler_pic='+Z'
8379 ;;
8380 esac
8381 # Is there a better lt_prog_compiler_static that works with the bundled CC?
8382 lt_prog_compiler_static='${wl}-a ${wl}archive'
8383 ;;
8384
8385 irix5* | irix6* | nonstopux*)
8386 lt_prog_compiler_wl='-Wl,'
8387 # PIC (with -KPIC) is the default.
8388 lt_prog_compiler_static='-non_shared'
8389 ;;
8390
8391 linux* | k*bsd*-gnu | kopensolaris*-gnu)
8392 case $cc_basename in
8393 # old Intel for x86_64 which still supported -KPIC.
8394 ecc*)
8395 lt_prog_compiler_wl='-Wl,'
8396 lt_prog_compiler_pic='-KPIC'
8397 lt_prog_compiler_static='-static'
8398 ;;
8399 # icc used to be incompatible with GCC.
8400 # ICC 10 doesn't accept -KPIC any more.
8401 icc* | ifort*)
8402 lt_prog_compiler_wl='-Wl,'
8403 lt_prog_compiler_pic='-fPIC'
8404 lt_prog_compiler_static='-static'
8405 ;;
8406 # Lahey Fortran 8.1.
8407 lf95*)
8408 lt_prog_compiler_wl='-Wl,'
8409 lt_prog_compiler_pic='--shared'
8410 lt_prog_compiler_static='--static'
8411 ;;
8412 pgcc* | pgf77* | pgf90* | pgf95*)
8413 # Portland Group compilers (*not* the Pentium gcc compiler,
8414 # which looks to be a dead project)
8415 lt_prog_compiler_wl='-Wl,'
8416 lt_prog_compiler_pic='-fpic'
8417 lt_prog_compiler_static='-Bstatic'
8418 ;;
8419 ccc*)
8420 lt_prog_compiler_wl='-Wl,'
8421 # All Alpha code is PIC.
8422 lt_prog_compiler_static='-non_shared'
8423 ;;
8424 xl*)
8425 # IBM XL C 8.0/Fortran 10.1 on PPC
8426 lt_prog_compiler_wl='-Wl,'
8427 lt_prog_compiler_pic='-qpic'
8428 lt_prog_compiler_static='-qstaticlink'
8429 ;;
8430 *)
8431 case `$CC -V 2>&1 | sed 5q` in
8432 *Sun\ C*)
8433 # Sun C 5.9
8434 lt_prog_compiler_pic='-KPIC'
8435 lt_prog_compiler_static='-Bstatic'
8436 lt_prog_compiler_wl='-Wl,'
8437 ;;
8438 *Sun\ F*)
8439 # Sun Fortran 8.3 passes all unrecognized flags to the linker
8440 lt_prog_compiler_pic='-KPIC'
8441 lt_prog_compiler_static='-Bstatic'
8442 lt_prog_compiler_wl=''
8443 ;;
8444 esac
8445 ;;
8446 esac
8447 ;;
8448
8449 newsos6)
8450 lt_prog_compiler_pic='-KPIC'
8451 lt_prog_compiler_static='-Bstatic'
8452 ;;
8453
8454 *nto* | *qnx*)
8455 # QNX uses GNU C++, but need to define -shared option too, otherwise
8456 # it will coredump.
8457 lt_prog_compiler_pic='-fPIC -shared'
8458 ;;
8459
8460 osf3* | osf4* | osf5*)
8461 lt_prog_compiler_wl='-Wl,'
8462 # All OSF/1 code is PIC.
8463 lt_prog_compiler_static='-non_shared'
8464 ;;
8465
8466 rdos*)
8467 lt_prog_compiler_static='-non_shared'
8468 ;;
8469
8470 solaris*)
8471 lt_prog_compiler_pic='-KPIC'
8472 lt_prog_compiler_static='-Bstatic'
8473 case $cc_basename in
8474 f77* | f90* | f95*)
8475 lt_prog_compiler_wl='-Qoption ld ';;
8476 *)
8477 lt_prog_compiler_wl='-Wl,';;
8478 esac
8479 ;;
8480
8481 sunos4*)
8482 lt_prog_compiler_wl='-Qoption ld '
8483 lt_prog_compiler_pic='-PIC'
8484 lt_prog_compiler_static='-Bstatic'
8485 ;;
8486
8487 sysv4 | sysv4.2uw2* | sysv4.3*)
8488 lt_prog_compiler_wl='-Wl,'
8489 lt_prog_compiler_pic='-KPIC'
8490 lt_prog_compiler_static='-Bstatic'
8491 ;;
8492
8493 sysv4*MP*)
8494 if test -d /usr/nec ;then
8495 lt_prog_compiler_pic='-Kconform_pic'
8496 lt_prog_compiler_static='-Bstatic'
8497 fi
8498 ;;
8499
8500 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8501 lt_prog_compiler_wl='-Wl,'
8502 lt_prog_compiler_pic='-KPIC'
8503 lt_prog_compiler_static='-Bstatic'
8504 ;;
8505
8506 unicos*)
8507 lt_prog_compiler_wl='-Wl,'
8508 lt_prog_compiler_can_build_shared=no
8509 ;;
8510
8511 uts4*)
8512 lt_prog_compiler_pic='-pic'
8513 lt_prog_compiler_static='-Bstatic'
8514 ;;
8515
8516 *)
8517 lt_prog_compiler_can_build_shared=no
8518 ;;
8519 esac
8520 fi
8521
8522 case $host_os in
8523 # For platforms which do not support PIC, -DPIC is meaningless:
8524 *djgpp*)
8525 lt_prog_compiler_pic=
8526 ;;
8527 *)
8528 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8529 ;;
8530 esac
8531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
8532 $as_echo "$lt_prog_compiler_pic" >&6; }
8533
8534
8535
8536
8537
8538
8539 #
8540 # Check to make sure the PIC flag actually works.
8541 #
8542 if test -n "$lt_prog_compiler_pic"; then
8543 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8544 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8545 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
8546 $as_echo_n "(cached) " >&6
8547 else
8548 lt_cv_prog_compiler_pic_works=no
8549 ac_outfile=conftest.$ac_objext
8550 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8551 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8552 # Insert the option either (1) after the last *FLAGS variable, or
8553 # (2) before a word containing "conftest.", or (3) at the end.
8554 # Note that $ac_compile itself does not contain backslashes and begins
8555 # with a dollar sign (not a hyphen), so the echo should work correctly.
8556 # The option is referenced via a variable to avoid confusing sed.
8557 lt_compile=`echo "$ac_compile" | $SED \
8558 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8559 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8560 -e 's:$: $lt_compiler_flag:'`
8561 (eval echo "\"\$as_me:8561: $lt_compile\"" >&5)
8562 (eval "$lt_compile" 2>conftest.err)
8563 ac_status=$?
8564 cat conftest.err >&5
8565 echo "$as_me:8565: \$? = $ac_status" >&5
8566 if (exit $ac_status) && test -s "$ac_outfile"; then
8567 # The compiler can only warn and ignore the option if not recognized
8568 # So say no if there are warnings other than the usual output.
8569 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
8570 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8571 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8572 lt_cv_prog_compiler_pic_works=yes
8573 fi
8574 fi
8575 $RM conftest*
8576
8577 fi
8578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8579 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8580
8581 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
8582 case $lt_prog_compiler_pic in
8583 "" | " "*) ;;
8584 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8585 esac
8586 else
8587 lt_prog_compiler_pic=
8588 lt_prog_compiler_can_build_shared=no
8589 fi
8590
8591 fi
8592
8593
8594
8595
8596
8597
8598 #
8599 # Check to make sure the static flag actually works.
8600 #
8601 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8602 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8603 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8604 if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
8605 $as_echo_n "(cached) " >&6
8606 else
8607 lt_cv_prog_compiler_static_works=no
8608 save_LDFLAGS="$LDFLAGS"
8609 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8610 echo "$lt_simple_link_test_code" > conftest.$ac_ext
8611 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8612 # The linker can only warn and ignore the option if not recognized
8613 # So say no if there are warnings
8614 if test -s conftest.err; then
8615 # Append any errors to the config.log.
8616 cat conftest.err 1>&5
8617 $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
8618 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8619 if diff conftest.exp conftest.er2 >/dev/null; then
8620 lt_cv_prog_compiler_static_works=yes
8621 fi
8622 else
8623 lt_cv_prog_compiler_static_works=yes
8624 fi
8625 fi
8626 $RM -r conftest*
8627 LDFLAGS="$save_LDFLAGS"
8628
8629 fi
8630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
8631 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
8632
8633 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
8634 :
8635 else
8636 lt_prog_compiler_static=
8637 fi
8638
8639
8640
8641
8642
8643
8644
8645 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8646 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8647 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
8648 $as_echo_n "(cached) " >&6
8649 else
8650 lt_cv_prog_compiler_c_o=no
8651 $RM -r conftest 2>/dev/null
8652 mkdir conftest
8653 cd conftest
8654 mkdir out
8655 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8656
8657 lt_compiler_flag="-o out/conftest2.$ac_objext"
8658 # Insert the option either (1) after the last *FLAGS variable, or
8659 # (2) before a word containing "conftest.", or (3) at the end.
8660 # Note that $ac_compile itself does not contain backslashes and begins
8661 # with a dollar sign (not a hyphen), so the echo should work correctly.
8662 lt_compile=`echo "$ac_compile" | $SED \
8663 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8664 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8665 -e 's:$: $lt_compiler_flag:'`
8666 (eval echo "\"\$as_me:8666: $lt_compile\"" >&5)
8667 (eval "$lt_compile" 2>out/conftest.err)
8668 ac_status=$?
8669 cat out/conftest.err >&5
8670 echo "$as_me:8670: \$? = $ac_status" >&5
8671 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8672 then
8673 # The compiler can only warn and ignore the option if not recognized
8674 # So say no if there are warnings
8675 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
8676 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8677 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8678 lt_cv_prog_compiler_c_o=yes
8679 fi
8680 fi
8681 chmod u+w . 2>&5
8682 $RM conftest*
8683 # SGI C++ compiler will create directory out/ii_files/ for
8684 # template instantiation
8685 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8686 $RM out/* && rmdir out
8687 cd ..
8688 $RM -r conftest
8689 $RM conftest*
8690
8691 fi
8692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8693 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8694
8695
8696
8697
8698
8699
8700 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8701 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8702 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
8703 $as_echo_n "(cached) " >&6
8704 else
8705 lt_cv_prog_compiler_c_o=no
8706 $RM -r conftest 2>/dev/null
8707 mkdir conftest
8708 cd conftest
8709 mkdir out
8710 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8711
8712 lt_compiler_flag="-o out/conftest2.$ac_objext"
8713 # Insert the option either (1) after the last *FLAGS variable, or
8714 # (2) before a word containing "conftest.", or (3) at the end.
8715 # Note that $ac_compile itself does not contain backslashes and begins
8716 # with a dollar sign (not a hyphen), so the echo should work correctly.
8717 lt_compile=`echo "$ac_compile" | $SED \
8718 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8719 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8720 -e 's:$: $lt_compiler_flag:'`
8721 (eval echo "\"\$as_me:8721: $lt_compile\"" >&5)
8722 (eval "$lt_compile" 2>out/conftest.err)
8723 ac_status=$?
8724 cat out/conftest.err >&5
8725 echo "$as_me:8725: \$? = $ac_status" >&5
8726 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8727 then
8728 # The compiler can only warn and ignore the option if not recognized
8729 # So say no if there are warnings
8730 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
8731 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8732 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8733 lt_cv_prog_compiler_c_o=yes
8734 fi
8735 fi
8736 chmod u+w . 2>&5
8737 $RM conftest*
8738 # SGI C++ compiler will create directory out/ii_files/ for
8739 # template instantiation
8740 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8741 $RM out/* && rmdir out
8742 cd ..
8743 $RM -r conftest
8744 $RM conftest*
8745
8746 fi
8747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8748 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8749
8750
8751
8752
8753 hard_links="nottested"
8754 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8755 # do not overwrite the value of need_locks provided by the user
8756 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
8757 $as_echo_n "checking if we can lock with hard links... " >&6; }
8758 hard_links=yes
8759 $RM conftest*
8760 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8761 touch conftest.a
8762 ln conftest.a conftest.b 2>&5 || hard_links=no
8763 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
8765 $as_echo "$hard_links" >&6; }
8766 if test "$hard_links" = no; then
8767 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8768 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8769 need_locks=warn
8770 fi
8771 else
8772 need_locks=no
8773 fi
8774
8775
8776
8777
8778
8779
8780 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8781 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
8782
8783 runpath_var=
8784 allow_undefined_flag=
8785 always_export_symbols=no
8786 archive_cmds=
8787 archive_expsym_cmds=
8788 compiler_needs_object=no
8789 enable_shared_with_static_runtimes=no
8790 export_dynamic_flag_spec=
8791 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8792 hardcode_automatic=no
8793 hardcode_direct=no
8794 hardcode_direct_absolute=no
8795 hardcode_libdir_flag_spec=
8796 hardcode_libdir_flag_spec_ld=
8797 hardcode_libdir_separator=
8798 hardcode_minus_L=no
8799 hardcode_shlibpath_var=unsupported
8800 inherit_rpath=no
8801 link_all_deplibs=unknown
8802 module_cmds=
8803 module_expsym_cmds=
8804 old_archive_from_new_cmds=
8805 old_archive_from_expsyms_cmds=
8806 thread_safe_flag_spec=
8807 whole_archive_flag_spec=
8808 # include_expsyms should be a list of space-separated symbols to be *always*
8809 # included in the symbol list
8810 include_expsyms=
8811 # exclude_expsyms can be an extended regexp of symbols to exclude
8812 # it will be wrapped by ` (' and `)$', so one must not match beginning or
8813 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8814 # as well as any symbol that contains `d'.
8815 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
8816 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8817 # platforms (ab)use it in PIC code, but their linkers get confused if
8818 # the symbol is explicitly referenced. Since portable code cannot
8819 # rely on this symbol name, it's probably fine to never include it in
8820 # preloaded symbol tables.
8821 # Exclude shared library initialization/finalization symbols.
8822 extract_expsyms_cmds=
8823
8824 case $host_os in
8825 cygwin* | mingw* | pw32* | cegcc*)
8826 # FIXME: the MSVC++ port hasn't been tested in a loooong time
8827 # When not using gcc, we currently assume that we are using
8828 # Microsoft Visual C++.
8829 if test "$GCC" != yes; then
8830 with_gnu_ld=no
8831 fi
8832 ;;
8833 interix*)
8834 # we just hope/assume this is gcc and not c89 (= MSVC++)
8835 with_gnu_ld=yes
8836 ;;
8837 openbsd*)
8838 with_gnu_ld=no
8839 ;;
8840 esac
8841
8842 ld_shlibs=yes
8843 if test "$with_gnu_ld" = yes; then
8844 # If archive_cmds runs LD, not CC, wlarc should be empty
8845 wlarc='${wl}'
8846
8847 # Set some defaults for GNU ld with shared library support. These
8848 # are reset later if shared libraries are not supported. Putting them
8849 # here allows them to be overridden if necessary.
8850 runpath_var=LD_RUN_PATH
8851 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8852 export_dynamic_flag_spec='${wl}--export-dynamic'
8853 # ancient GNU ld didn't support --whole-archive et. al.
8854 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
8855 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8856 else
8857 whole_archive_flag_spec=
8858 fi
8859 supports_anon_versioning=no
8860 case `$LD -v 2>&1` in
8861 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8862 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8863 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8864 *\ 2.11.*) ;; # other 2.11 versions
8865 *) supports_anon_versioning=yes ;;
8866 esac
8867
8868 # See if GNU ld supports shared libraries.
8869 case $host_os in
8870 aix[3-9]*)
8871 # On AIX/PPC, the GNU linker is very broken
8872 if test "$host_cpu" != ia64; then
8873 ld_shlibs=no
8874 cat <<_LT_EOF 1>&2
8875
8876 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
8877 *** to be unable to reliably create shared libraries on AIX.
8878 *** Therefore, libtool is disabling shared libraries support. If you
8879 *** really care for shared libraries, you may want to modify your PATH
8880 *** so that a non-GNU linker is found, and then restart.
8881
8882 _LT_EOF
8883 fi
8884 ;;
8885
8886 amigaos*)
8887 case $host_cpu in
8888 powerpc)
8889 # see comment about AmigaOS4 .so support
8890 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8891 archive_expsym_cmds=''
8892 ;;
8893 m68k)
8894 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)'
8895 hardcode_libdir_flag_spec='-L$libdir'
8896 hardcode_minus_L=yes
8897 ;;
8898 esac
8899 ;;
8900
8901 beos*)
8902 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8903 allow_undefined_flag=unsupported
8904 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8905 # support --undefined. This deserves some investigation. FIXME
8906 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8907 else
8908 ld_shlibs=no
8909 fi
8910 ;;
8911
8912 cygwin* | mingw* | pw32* | cegcc*)
8913 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8914 # as there is no search path for DLLs.
8915 hardcode_libdir_flag_spec='-L$libdir'
8916 allow_undefined_flag=unsupported
8917 always_export_symbols=no
8918 enable_shared_with_static_runtimes=yes
8919 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
8920
8921 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
8922 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8923 # If the export-symbols file already is a .def file (1st line
8924 # is EXPORTS), use it as is; otherwise, prepend...
8925 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8926 cp $export_symbols $output_objdir/$soname.def;
8927 else
8928 echo EXPORTS > $output_objdir/$soname.def;
8929 cat $export_symbols >> $output_objdir/$soname.def;
8930 fi~
8931 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8932 else
8933 ld_shlibs=no
8934 fi
8935 ;;
8936
8937 interix[3-9]*)
8938 hardcode_direct=no
8939 hardcode_shlibpath_var=no
8940 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8941 export_dynamic_flag_spec='${wl}-E'
8942 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8943 # Instead, shared libraries are loaded at an image base (0x10000000 by
8944 # default) and relocated if they conflict, which is a slow very memory
8945 # consuming and fragmenting process. To avoid this, we pick a random,
8946 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8947 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
8948 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8949 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'
8950 ;;
8951
8952 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
8953 tmp_diet=no
8954 if test "$host_os" = linux-dietlibc; then
8955 case $cc_basename in
8956 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
8957 esac
8958 fi
8959 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
8960 && test "$tmp_diet" = no
8961 then
8962 tmp_addflag=
8963 tmp_sharedflag='-shared'
8964 case $cc_basename,$host_cpu in
8965 pgcc*) # Portland Group C compiler
8966 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'
8967 tmp_addflag=' $pic_flag'
8968 ;;
8969 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
8970 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'
8971 tmp_addflag=' $pic_flag -Mnomain' ;;
8972 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
8973 tmp_addflag=' -i_dynamic' ;;
8974 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
8975 tmp_addflag=' -i_dynamic -nofor_main' ;;
8976 ifc* | ifort*) # Intel Fortran compiler
8977 tmp_addflag=' -nofor_main' ;;
8978 lf95*) # Lahey Fortran 8.1
8979 whole_archive_flag_spec=
8980 tmp_sharedflag='--shared' ;;
8981 xl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
8982 tmp_sharedflag='-qmkshrobj'
8983 tmp_addflag= ;;
8984 esac
8985 case `$CC -V 2>&1 | sed 5q` in
8986 *Sun\ C*) # Sun C 5.9
8987 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'
8988 compiler_needs_object=yes
8989 tmp_sharedflag='-G' ;;
8990 *Sun\ F*) # Sun Fortran 8.3
8991 tmp_sharedflag='-G' ;;
8992 esac
8993 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8994
8995 if test "x$supports_anon_versioning" = xyes; then
8996 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8997 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8998 echo "local: *; };" >> $output_objdir/$libname.ver~
8999 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9000 fi
9001
9002 case $cc_basename in
9003 xlf*)
9004 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9005 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9006 hardcode_libdir_flag_spec=
9007 hardcode_libdir_flag_spec_ld='-rpath $libdir'
9008 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
9009 if test "x$supports_anon_versioning" = xyes; then
9010 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9011 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9012 echo "local: *; };" >> $output_objdir/$libname.ver~
9013 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9014 fi
9015 ;;
9016 esac
9017 else
9018 ld_shlibs=no
9019 fi
9020 ;;
9021
9022 netbsd*)
9023 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9024 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9025 wlarc=
9026 else
9027 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9028 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9029 fi
9030 ;;
9031
9032 solaris*)
9033 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9034 ld_shlibs=no
9035 cat <<_LT_EOF 1>&2
9036
9037 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
9038 *** create shared libraries on Solaris systems. Therefore, libtool
9039 *** is disabling shared libraries support. We urge you to upgrade GNU
9040 *** binutils to release 2.9.1 or newer. Another option is to modify
9041 *** your PATH or compiler configuration so that the native linker is
9042 *** used, and then restart.
9043
9044 _LT_EOF
9045 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9046 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9047 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9048 else
9049 ld_shlibs=no
9050 fi
9051 ;;
9052
9053 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9054 case `$LD -v 2>&1` in
9055 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9056 ld_shlibs=no
9057 cat <<_LT_EOF 1>&2
9058
9059 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9060 *** reliably create shared libraries on SCO systems. Therefore, libtool
9061 *** is disabling shared libraries support. We urge you to upgrade GNU
9062 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
9063 *** your PATH or compiler configuration so that the native linker is
9064 *** used, and then restart.
9065
9066 _LT_EOF
9067 ;;
9068 *)
9069 # For security reasons, it is highly recommended that you always
9070 # use absolute paths for naming shared libraries, and exclude the
9071 # DT_RUNPATH tag from executables and libraries. But doing so
9072 # requires that you compile everything twice, which is a pain.
9073 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9074 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9075 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9076 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9077 else
9078 ld_shlibs=no
9079 fi
9080 ;;
9081 esac
9082 ;;
9083
9084 sunos4*)
9085 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9086 wlarc=
9087 hardcode_direct=yes
9088 hardcode_shlibpath_var=no
9089 ;;
9090
9091 *)
9092 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9093 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9094 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9095 else
9096 ld_shlibs=no
9097 fi
9098 ;;
9099 esac
9100
9101 if test "$ld_shlibs" = no; then
9102 runpath_var=
9103 hardcode_libdir_flag_spec=
9104 export_dynamic_flag_spec=
9105 whole_archive_flag_spec=
9106 fi
9107 else
9108 # PORTME fill in a description of your system's linker (not GNU ld)
9109 case $host_os in
9110 aix3*)
9111 allow_undefined_flag=unsupported
9112 always_export_symbols=yes
9113 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'
9114 # Note: this linker hardcodes the directories in LIBPATH if there
9115 # are no directories specified by -L.
9116 hardcode_minus_L=yes
9117 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9118 # Neither direct hardcoding nor static linking is supported with a
9119 # broken collect2.
9120 hardcode_direct=unsupported
9121 fi
9122 ;;
9123
9124 aix[4-9]*)
9125 if test "$host_cpu" = ia64; then
9126 # On IA64, the linker does run time linking by default, so we don't
9127 # have to do anything special.
9128 aix_use_runtimelinking=no
9129 exp_sym_flag='-Bexport'
9130 no_entry_flag=""
9131 else
9132 # If we're using GNU nm, then we don't want the "-C" option.
9133 # -C means demangle to AIX nm, but means don't demangle with GNU nm
9134 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9135 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'
9136 else
9137 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'
9138 fi
9139 aix_use_runtimelinking=no
9140
9141 # Test if we are trying to use run time linking or normal
9142 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9143 # need to do runtime linking.
9144 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9145 for ld_flag in $LDFLAGS; do
9146 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9147 aix_use_runtimelinking=yes
9148 break
9149 fi
9150 done
9151 ;;
9152 esac
9153
9154 exp_sym_flag='-bexport'
9155 no_entry_flag='-bnoentry'
9156 fi
9157
9158 # When large executables or shared objects are built, AIX ld can
9159 # have problems creating the table of contents. If linking a library
9160 # or program results in "error TOC overflow" add -mminimal-toc to
9161 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9162 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9163
9164 archive_cmds=''
9165 hardcode_direct=yes
9166 hardcode_direct_absolute=yes
9167 hardcode_libdir_separator=':'
9168 link_all_deplibs=yes
9169 file_list_spec='${wl}-f,'
9170
9171 if test "$GCC" = yes; then
9172 case $host_os in aix4.[012]|aix4.[012].*)
9173 # We only want to do this on AIX 4.2 and lower, the check
9174 # below for broken collect2 doesn't work under 4.3+
9175 collect2name=`${CC} -print-prog-name=collect2`
9176 if test -f "$collect2name" &&
9177 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9178 then
9179 # We have reworked collect2
9180 :
9181 else
9182 # We have old collect2
9183 hardcode_direct=unsupported
9184 # It fails to find uninstalled libraries when the uninstalled
9185 # path is not listed in the libpath. Setting hardcode_minus_L
9186 # to unsupported forces relinking
9187 hardcode_minus_L=yes
9188 hardcode_libdir_flag_spec='-L$libdir'
9189 hardcode_libdir_separator=
9190 fi
9191 ;;
9192 esac
9193 shared_flag='-shared'
9194 if test "$aix_use_runtimelinking" = yes; then
9195 shared_flag="$shared_flag "'${wl}-G'
9196 fi
9197 else
9198 # not using gcc
9199 if test "$host_cpu" = ia64; then
9200 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9201 # chokes on -Wl,-G. The following line is correct:
9202 shared_flag='-G'
9203 else
9204 if test "$aix_use_runtimelinking" = yes; then
9205 shared_flag='${wl}-G'
9206 else
9207 shared_flag='${wl}-bM:SRE'
9208 fi
9209 fi
9210 fi
9211
9212 export_dynamic_flag_spec='${wl}-bexpall'
9213 # It seems that -bexpall does not export symbols beginning with
9214 # underscore (_), so it is better to generate a list of symbols to export.
9215 always_export_symbols=yes
9216 if test "$aix_use_runtimelinking" = yes; then
9217 # Warning - without using the other runtime loading flags (-brtl),
9218 # -berok will link without error, but may produce a broken library.
9219 allow_undefined_flag='-berok'
9220 # Determine the default libpath from the value encoded in an
9221 # empty executable.
9222 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9223 /* end confdefs.h. */
9224
9225 int
9226 main ()
9227 {
9228
9229 ;
9230 return 0;
9231 }
9232 _ACEOF
9233 if ac_fn_c_try_link "$LINENO"; then :
9234
9235 lt_aix_libpath_sed='
9236 /Import File Strings/,/^$/ {
9237 /^0/ {
9238 s/^0 *\(.*\)$/\1/
9239 p
9240 }
9241 }'
9242 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9243 # Check for a 64-bit object if we didn't find anything.
9244 if test -z "$aix_libpath"; then
9245 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9246 fi
9247 fi
9248 rm -f core conftest.err conftest.$ac_objext \
9249 conftest$ac_exeext conftest.$ac_ext
9250 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9251
9252 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9253 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"
9254 else
9255 if test "$host_cpu" = ia64; then
9256 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9257 allow_undefined_flag="-z nodefs"
9258 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"
9259 else
9260 # Determine the default libpath from the value encoded in an
9261 # empty executable.
9262 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9263 /* end confdefs.h. */
9264
9265 int
9266 main ()
9267 {
9268
9269 ;
9270 return 0;
9271 }
9272 _ACEOF
9273 if ac_fn_c_try_link "$LINENO"; then :
9274
9275 lt_aix_libpath_sed='
9276 /Import File Strings/,/^$/ {
9277 /^0/ {
9278 s/^0 *\(.*\)$/\1/
9279 p
9280 }
9281 }'
9282 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9283 # Check for a 64-bit object if we didn't find anything.
9284 if test -z "$aix_libpath"; then
9285 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9286 fi
9287 fi
9288 rm -f core conftest.err conftest.$ac_objext \
9289 conftest$ac_exeext conftest.$ac_ext
9290 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9291
9292 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9293 # Warning - without using the other run time loading flags,
9294 # -berok will link without error, but may produce a broken library.
9295 no_undefined_flag=' ${wl}-bernotok'
9296 allow_undefined_flag=' ${wl}-berok'
9297 # Exported symbols can be pulled into shared objects from archives
9298 whole_archive_flag_spec='$convenience'
9299 archive_cmds_need_lc=yes
9300 # This is similar to how AIX traditionally builds its shared libraries.
9301 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'
9302 fi
9303 fi
9304 ;;
9305
9306 amigaos*)
9307 case $host_cpu in
9308 powerpc)
9309 # see comment about AmigaOS4 .so support
9310 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9311 archive_expsym_cmds=''
9312 ;;
9313 m68k)
9314 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)'
9315 hardcode_libdir_flag_spec='-L$libdir'
9316 hardcode_minus_L=yes
9317 ;;
9318 esac
9319 ;;
9320
9321 bsdi[45]*)
9322 export_dynamic_flag_spec=-rdynamic
9323 ;;
9324
9325 cygwin* | mingw* | pw32* | cegcc*)
9326 # When not using gcc, we currently assume that we are using
9327 # Microsoft Visual C++.
9328 # hardcode_libdir_flag_spec is actually meaningless, as there is
9329 # no search path for DLLs.
9330 hardcode_libdir_flag_spec=' '
9331 allow_undefined_flag=unsupported
9332 # Tell ltmain to make .lib files, not .a files.
9333 libext=lib
9334 # Tell ltmain to make .dll files, not .so files.
9335 shrext_cmds=".dll"
9336 # FIXME: Setting linknames here is a bad hack.
9337 archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
9338 # The linker will automatically build a .lib file if we build a DLL.
9339 old_archive_from_new_cmds='true'
9340 # FIXME: Should let the user specify the lib program.
9341 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9342 fix_srcfile_path='`cygpath -w "$srcfile"`'
9343 enable_shared_with_static_runtimes=yes
9344 ;;
9345
9346 darwin* | rhapsody*)
9347
9348
9349 archive_cmds_need_lc=no
9350 hardcode_direct=no
9351 hardcode_automatic=yes
9352 hardcode_shlibpath_var=unsupported
9353 whole_archive_flag_spec=''
9354 link_all_deplibs=yes
9355 allow_undefined_flag="$_lt_dar_allow_undefined"
9356 case $cc_basename in
9357 ifort*) _lt_dar_can_shared=yes ;;
9358 *) _lt_dar_can_shared=$GCC ;;
9359 esac
9360 if test "$_lt_dar_can_shared" = "yes"; then
9361 output_verbose_link_cmd=echo
9362 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9363 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9364 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}"
9365 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}"
9366
9367 else
9368 ld_shlibs=no
9369 fi
9370
9371 ;;
9372
9373 dgux*)
9374 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9375 hardcode_libdir_flag_spec='-L$libdir'
9376 hardcode_shlibpath_var=no
9377 ;;
9378
9379 freebsd1*)
9380 ld_shlibs=no
9381 ;;
9382
9383 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9384 # support. Future versions do this automatically, but an explicit c++rt0.o
9385 # does not break anything, and helps significantly (at the cost of a little
9386 # extra space).
9387 freebsd2.2*)
9388 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9389 hardcode_libdir_flag_spec='-R$libdir'
9390 hardcode_direct=yes
9391 hardcode_shlibpath_var=no
9392 ;;
9393
9394 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9395 freebsd2*)
9396 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9397 hardcode_direct=yes
9398 hardcode_minus_L=yes
9399 hardcode_shlibpath_var=no
9400 ;;
9401
9402 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9403 freebsd* | dragonfly*)
9404 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
9405 hardcode_libdir_flag_spec='-R$libdir'
9406 hardcode_direct=yes
9407 hardcode_shlibpath_var=no
9408 ;;
9409
9410 hpux9*)
9411 if test "$GCC" = yes; then
9412 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'
9413 else
9414 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'
9415 fi
9416 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9417 hardcode_libdir_separator=:
9418 hardcode_direct=yes
9419
9420 # hardcode_minus_L: Not really in the search PATH,
9421 # but as the default location of the library.
9422 hardcode_minus_L=yes
9423 export_dynamic_flag_spec='${wl}-E'
9424 ;;
9425
9426 hpux10*)
9427 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
9428 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9429 else
9430 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9431 fi
9432 if test "$with_gnu_ld" = no; then
9433 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9434 hardcode_libdir_flag_spec_ld='+b $libdir'
9435 hardcode_libdir_separator=:
9436 hardcode_direct=yes
9437 hardcode_direct_absolute=yes
9438 export_dynamic_flag_spec='${wl}-E'
9439 # hardcode_minus_L: Not really in the search PATH,
9440 # but as the default location of the library.
9441 hardcode_minus_L=yes
9442 fi
9443 ;;
9444
9445 hpux11*)
9446 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
9447 case $host_cpu in
9448 hppa*64*)
9449 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9450 ;;
9451 ia64*)
9452 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9453 ;;
9454 *)
9455 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9456 ;;
9457 esac
9458 else
9459 case $host_cpu in
9460 hppa*64*)
9461 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9462 ;;
9463 ia64*)
9464 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9465 ;;
9466 *)
9467 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9468 ;;
9469 esac
9470 fi
9471 if test "$with_gnu_ld" = no; then
9472 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9473 hardcode_libdir_separator=:
9474
9475 case $host_cpu in
9476 hppa*64*|ia64*)
9477 hardcode_direct=no
9478 hardcode_shlibpath_var=no
9479 ;;
9480 *)
9481 hardcode_direct=yes
9482 hardcode_direct_absolute=yes
9483 export_dynamic_flag_spec='${wl}-E'
9484
9485 # hardcode_minus_L: Not really in the search PATH,
9486 # but as the default location of the library.
9487 hardcode_minus_L=yes
9488 ;;
9489 esac
9490 fi
9491 ;;
9492
9493 irix5* | irix6* | nonstopux*)
9494 if test "$GCC" = yes; then
9495 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'
9496 # Try to use the -exported_symbol ld option, if it does not
9497 # work, assume that -exports_file does not work either and
9498 # implicitly export all symbols.
9499 save_LDFLAGS="$LDFLAGS"
9500 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
9501 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9502 /* end confdefs.h. */
9503 int foo(void) {}
9504 _ACEOF
9505 if ac_fn_c_try_link "$LINENO"; then :
9506 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'
9507
9508 fi
9509 rm -f core conftest.err conftest.$ac_objext \
9510 conftest$ac_exeext conftest.$ac_ext
9511 LDFLAGS="$save_LDFLAGS"
9512 else
9513 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'
9514 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'
9515 fi
9516 archive_cmds_need_lc='no'
9517 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9518 hardcode_libdir_separator=:
9519 inherit_rpath=yes
9520 link_all_deplibs=yes
9521 ;;
9522
9523 netbsd*)
9524 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9525 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
9526 else
9527 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
9528 fi
9529 hardcode_libdir_flag_spec='-R$libdir'
9530 hardcode_direct=yes
9531 hardcode_shlibpath_var=no
9532 ;;
9533
9534 newsos6)
9535 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9536 hardcode_direct=yes
9537 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9538 hardcode_libdir_separator=:
9539 hardcode_shlibpath_var=no
9540 ;;
9541
9542 *nto* | *qnx*)
9543 ;;
9544
9545 openbsd*)
9546 if test -f /usr/libexec/ld.so; then
9547 hardcode_direct=yes
9548 hardcode_shlibpath_var=no
9549 hardcode_direct_absolute=yes
9550 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9551 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9552 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9553 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9554 export_dynamic_flag_spec='${wl}-E'
9555 else
9556 case $host_os in
9557 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9558 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9559 hardcode_libdir_flag_spec='-R$libdir'
9560 ;;
9561 *)
9562 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9563 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9564 ;;
9565 esac
9566 fi
9567 else
9568 ld_shlibs=no
9569 fi
9570 ;;
9571
9572 os2*)
9573 hardcode_libdir_flag_spec='-L$libdir'
9574 hardcode_minus_L=yes
9575 allow_undefined_flag=unsupported
9576 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'
9577 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9578 ;;
9579
9580 osf3*)
9581 if test "$GCC" = yes; then
9582 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9583 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'
9584 else
9585 allow_undefined_flag=' -expect_unresolved \*'
9586 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'
9587 fi
9588 archive_cmds_need_lc='no'
9589 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9590 hardcode_libdir_separator=:
9591 ;;
9592
9593 osf4* | osf5*) # as osf3* with the addition of -msym flag
9594 if test "$GCC" = yes; then
9595 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9596 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'
9597 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9598 else
9599 allow_undefined_flag=' -expect_unresolved \*'
9600 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'
9601 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~
9602 $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'
9603
9604 # Both c and cxx compiler support -rpath directly
9605 hardcode_libdir_flag_spec='-rpath $libdir'
9606 fi
9607 archive_cmds_need_lc='no'
9608 hardcode_libdir_separator=:
9609 ;;
9610
9611 solaris*)
9612 no_undefined_flag=' -z defs'
9613 if test "$GCC" = yes; then
9614 wlarc='${wl}'
9615 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9616 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9617 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9618 else
9619 case `$CC -V 2>&1` in
9620 *"Compilers 5.0"*)
9621 wlarc=''
9622 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9623 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9624 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
9625 ;;
9626 *)
9627 wlarc='${wl}'
9628 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
9629 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9630 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9631 ;;
9632 esac
9633 fi
9634 hardcode_libdir_flag_spec='-R$libdir'
9635 hardcode_shlibpath_var=no
9636 case $host_os in
9637 solaris2.[0-5] | solaris2.[0-5].*) ;;
9638 *)
9639 # The compiler driver will combine and reorder linker options,
9640 # but understands `-z linker_flag'. GCC discards it without `$wl',
9641 # but is careful enough not to reorder.
9642 # Supported since Solaris 2.6 (maybe 2.5.1?)
9643 if test "$GCC" = yes; then
9644 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9645 else
9646 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
9647 fi
9648 ;;
9649 esac
9650 link_all_deplibs=yes
9651 ;;
9652
9653 sunos4*)
9654 if test "x$host_vendor" = xsequent; then
9655 # Use $CC to link under sequent, because it throws in some extra .o
9656 # files that make .init and .fini sections work.
9657 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9658 else
9659 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9660 fi
9661 hardcode_libdir_flag_spec='-L$libdir'
9662 hardcode_direct=yes
9663 hardcode_minus_L=yes
9664 hardcode_shlibpath_var=no
9665 ;;
9666
9667 sysv4)
9668 case $host_vendor in
9669 sni)
9670 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9671 hardcode_direct=yes # is this really true???
9672 ;;
9673 siemens)
9674 ## LD is ld it makes a PLAMLIB
9675 ## CC just makes a GrossModule.
9676 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9677 reload_cmds='$CC -r -o $output$reload_objs'
9678 hardcode_direct=no
9679 ;;
9680 motorola)
9681 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9682 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9683 ;;
9684 esac
9685 runpath_var='LD_RUN_PATH'
9686 hardcode_shlibpath_var=no
9687 ;;
9688
9689 sysv4.3*)
9690 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9691 hardcode_shlibpath_var=no
9692 export_dynamic_flag_spec='-Bexport'
9693 ;;
9694
9695 sysv4*MP*)
9696 if test -d /usr/nec; then
9697 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9698 hardcode_shlibpath_var=no
9699 runpath_var=LD_RUN_PATH
9700 hardcode_runpath_var=yes
9701 ld_shlibs=yes
9702 fi
9703 ;;
9704
9705 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
9706 no_undefined_flag='${wl}-z,text'
9707 archive_cmds_need_lc=no
9708 hardcode_shlibpath_var=no
9709 runpath_var='LD_RUN_PATH'
9710
9711 if test "$GCC" = yes; then
9712 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9713 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9714 else
9715 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9716 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9717 fi
9718 ;;
9719
9720 sysv5* | sco3.2v5* | sco5v6*)
9721 # Note: We can NOT use -z defs as we might desire, because we do not
9722 # link with -lc, and that would cause any symbols used from libc to
9723 # always be unresolved, which means just about no library would
9724 # ever link correctly. If we're not using GNU ld we use -z text
9725 # though, which does catch some bad symbols but isn't as heavy-handed
9726 # as -z defs.
9727 no_undefined_flag='${wl}-z,text'
9728 allow_undefined_flag='${wl}-z,nodefs'
9729 archive_cmds_need_lc=no
9730 hardcode_shlibpath_var=no
9731 hardcode_libdir_flag_spec='${wl}-R,$libdir'
9732 hardcode_libdir_separator=':'
9733 link_all_deplibs=yes
9734 export_dynamic_flag_spec='${wl}-Bexport'
9735 runpath_var='LD_RUN_PATH'
9736
9737 if test "$GCC" = yes; then
9738 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9739 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9740 else
9741 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9742 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9743 fi
9744 ;;
9745
9746 uts4*)
9747 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9748 hardcode_libdir_flag_spec='-L$libdir'
9749 hardcode_shlibpath_var=no
9750 ;;
9751
9752 *)
9753 ld_shlibs=no
9754 ;;
9755 esac
9756
9757 if test x$host_vendor = xsni; then
9758 case $host in
9759 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
9760 export_dynamic_flag_spec='${wl}-Blargedynsym'
9761 ;;
9762 esac
9763 fi
9764 fi
9765
9766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
9767 $as_echo "$ld_shlibs" >&6; }
9768 test "$ld_shlibs" = no && can_build_shared=no
9769
9770 with_gnu_ld=$with_gnu_ld
9771
9772
9773
9774
9775
9776
9777
9778
9779
9780
9781
9782
9783
9784
9785
9786 #
9787 # Do we need to explicitly link libc?
9788 #
9789 case "x$archive_cmds_need_lc" in
9790 x|xyes)
9791 # Assume -lc should be added
9792 archive_cmds_need_lc=yes
9793
9794 if test "$enable_shared" = yes && test "$GCC" = yes; then
9795 case $archive_cmds in
9796 *'~'*)
9797 # FIXME: we may have to deal with multi-command sequences.
9798 ;;
9799 '$CC '*)
9800 # Test whether the compiler implicitly links with -lc since on some
9801 # systems, -lgcc has to come before -lc. If gcc already passes -lc
9802 # to ld, don't add -lc before -lgcc.
9803 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
9804 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
9805 if test "${lt_cv_archive_cmds_need_lc+set}" = set; then :
9806 $as_echo_n "(cached) " >&6
9807 else
9808 $RM conftest*
9809 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9810
9811 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9812 (eval $ac_compile) 2>&5
9813 ac_status=$?
9814 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9815 test $ac_status = 0; } 2>conftest.err; then
9816 soname=conftest
9817 lib=conftest
9818 libobjs=conftest.$ac_objext
9819 deplibs=
9820 wl=$lt_prog_compiler_wl
9821 pic_flag=$lt_prog_compiler_pic
9822 compiler_flags=-v
9823 linker_flags=-v
9824 verstring=
9825 output_objdir=.
9826 libname=conftest
9827 lt_save_allow_undefined_flag=$allow_undefined_flag
9828 allow_undefined_flag=
9829 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
9830 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
9831 ac_status=$?
9832 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9833 test $ac_status = 0; }
9834 then
9835 lt_cv_archive_cmds_need_lc=no
9836 else
9837 lt_cv_archive_cmds_need_lc=yes
9838 fi
9839 allow_undefined_flag=$lt_save_allow_undefined_flag
9840 else
9841 cat conftest.err 1>&5
9842 fi
9843 $RM conftest*
9844
9845 fi
9846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
9847 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
9848 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
9849 ;;
9850 esac
9851 fi
9852 ;;
9853 esac
9854
9855
9856
9857
9858
9859
9860
9861
9862
9863
9864
9865
9866
9867
9868
9869
9870
9871
9872
9873
9874
9875
9876
9877
9878
9879
9880
9881
9882
9883
9884
9885
9886
9887
9888
9889
9890
9891
9892
9893
9894
9895
9896
9897
9898
9899
9900
9901
9902
9903
9904
9905
9906
9907
9908
9909
9910
9911
9912
9913
9914
9915
9916
9917
9918
9919
9920
9921
9922
9923
9924
9925
9926
9927
9928
9929
9930
9931
9932
9933
9934
9935
9936
9937
9938
9939
9940
9941
9942
9943
9944
9945
9946
9947
9948
9949
9950
9951
9952
9953
9954
9955
9956
9957
9958
9959
9960
9961
9962
9963
9964
9965
9966
9967
9968
9969
9970
9971
9972
9973
9974
9975
9976
9977
9978
9979
9980
9981
9982
9983
9984
9985
9986
9987
9988
9989
9990
9991
9992
9993
9994
9995
9996
9997
9998
9999
10000
10001
10002
10003
10004
10005
10006
10007
10008
10009
10010
10011 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10012 $as_echo_n "checking dynamic linker characteristics... " >&6; }
10013
10014 if test "$GCC" = yes; then
10015 case $host_os in
10016 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
10017 *) lt_awk_arg="/^libraries:/" ;;
10018 esac
10019 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
10020 if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
10021 # if the path contains ";" then we assume it to be the separator
10022 # otherwise default to the standard path separator (i.e. ":") - it is
10023 # assumed that no part of a normal pathname contains ";" but that should
10024 # okay in the real world where ";" in dirpaths is itself problematic.
10025 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
10026 else
10027 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10028 fi
10029 # Ok, now we have the path, separated by spaces, we can step through it
10030 # and add multilib dir if necessary.
10031 lt_tmp_lt_search_path_spec=
10032 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10033 for lt_sys_path in $lt_search_path_spec; do
10034 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
10035 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
10036 else
10037 test -d "$lt_sys_path" && \
10038 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10039 fi
10040 done
10041 lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
10042 BEGIN {RS=" "; FS="/|\n";} {
10043 lt_foo="";
10044 lt_count=0;
10045 for (lt_i = NF; lt_i > 0; lt_i--) {
10046 if ($lt_i != "" && $lt_i != ".") {
10047 if ($lt_i == "..") {
10048 lt_count++;
10049 } else {
10050 if (lt_count == 0) {
10051 lt_foo="/" $lt_i lt_foo;
10052 } else {
10053 lt_count--;
10054 }
10055 }
10056 }
10057 }
10058 if (lt_foo != "") { lt_freq[lt_foo]++; }
10059 if (lt_freq[lt_foo] == 1) { print lt_foo; }
10060 }'`
10061 sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
10062 else
10063 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10064 fi
10065 library_names_spec=
10066 libname_spec='lib$name'
10067 soname_spec=
10068 shrext_cmds=".so"
10069 postinstall_cmds=
10070 postuninstall_cmds=
10071 finish_cmds=
10072 finish_eval=
10073 shlibpath_var=
10074 shlibpath_overrides_runpath=unknown
10075 version_type=none
10076 dynamic_linker="$host_os ld.so"
10077 sys_lib_dlsearch_path_spec="/lib /usr/lib"
10078 need_lib_prefix=unknown
10079 hardcode_into_libs=no
10080
10081 # when you set need_version to no, make sure it does not cause -set_version
10082 # flags to be left without arguments
10083 need_version=unknown
10084
10085 case $host_os in
10086 aix3*)
10087 version_type=linux
10088 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10089 shlibpath_var=LIBPATH
10090
10091 # AIX 3 has no versioning support, so we append a major version to the name.
10092 soname_spec='${libname}${release}${shared_ext}$major'
10093 ;;
10094
10095 aix[4-9]*)
10096 version_type=linux
10097 need_lib_prefix=no
10098 need_version=no
10099 hardcode_into_libs=yes
10100 if test "$host_cpu" = ia64; then
10101 # AIX 5 supports IA64
10102 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10103 shlibpath_var=LD_LIBRARY_PATH
10104 else
10105 # With GCC up to 2.95.x, collect2 would create an import file
10106 # for dependence libraries. The import file would start with
10107 # the line `#! .'. This would cause the generated library to
10108 # depend on `.', always an invalid library. This was fixed in
10109 # development snapshots of GCC prior to 3.0.
10110 case $host_os in
10111 aix4 | aix4.[01] | aix4.[01].*)
10112 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10113 echo ' yes '
10114 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
10115 :
10116 else
10117 can_build_shared=no
10118 fi
10119 ;;
10120 esac
10121 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10122 # soname into executable. Probably we can add versioning support to
10123 # collect2, so additional links can be useful in future.
10124 if test "$aix_use_runtimelinking" = yes; then
10125 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10126 # instead of lib<name>.a to let people know that these are not
10127 # typical AIX shared libraries.
10128 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10129 else
10130 # We preserve .a as extension for shared libraries through AIX4.2
10131 # and later when we are not doing run time linking.
10132 library_names_spec='${libname}${release}.a $libname.a'
10133 soname_spec='${libname}${release}${shared_ext}$major'
10134 fi
10135 shlibpath_var=LIBPATH
10136 fi
10137 ;;
10138
10139 amigaos*)
10140 case $host_cpu in
10141 powerpc)
10142 # Since July 2007 AmigaOS4 officially supports .so libraries.
10143 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10144 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10145 ;;
10146 m68k)
10147 library_names_spec='$libname.ixlibrary $libname.a'
10148 # Create ${libname}_ixlibrary.a entries in /sys/libs.
10149 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'
10150 ;;
10151 esac
10152 ;;
10153
10154 beos*)
10155 library_names_spec='${libname}${shared_ext}'
10156 dynamic_linker="$host_os ld.so"
10157 shlibpath_var=LIBRARY_PATH
10158 ;;
10159
10160 bsdi[45]*)
10161 version_type=linux
10162 need_version=no
10163 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10164 soname_spec='${libname}${release}${shared_ext}$major'
10165 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10166 shlibpath_var=LD_LIBRARY_PATH
10167 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10168 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10169 # the default ld.so.conf also contains /usr/contrib/lib and
10170 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10171 # libtool to hard-code these into programs
10172 ;;
10173
10174 cygwin* | mingw* | pw32* | cegcc*)
10175 version_type=windows
10176 shrext_cmds=".dll"
10177 need_version=no
10178 need_lib_prefix=no
10179
10180 case $GCC,$host_os in
10181 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
10182 library_names_spec='$libname.dll.a'
10183 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10184 postinstall_cmds='base_file=`basename \${file}`~
10185 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10186 dldir=$destdir/`dirname \$dlpath`~
10187 test -d \$dldir || mkdir -p \$dldir~
10188 $install_prog $dir/$dlname \$dldir/$dlname~
10189 chmod a+x \$dldir/$dlname~
10190 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10191 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10192 fi'
10193 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10194 dlpath=$dir/\$dldll~
10195 $RM \$dlpath'
10196 shlibpath_overrides_runpath=yes
10197
10198 case $host_os in
10199 cygwin*)
10200 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10201 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10202 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
10203 ;;
10204 mingw* | cegcc*)
10205 # MinGW DLLs use traditional 'lib' prefix
10206 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10207 sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
10208 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
10209 # It is most probably a Windows format PATH printed by
10210 # mingw gcc, but we are running on Cygwin. Gcc prints its search
10211 # path with ; separators, and with drive letters. We can handle the
10212 # drive letters (cygwin fileutils understands them), so leave them,
10213 # especially as we might pass files found there to a mingw objdump,
10214 # which wouldn't understand a cygwinified path. Ahh.
10215 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10216 else
10217 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10218 fi
10219 ;;
10220 pw32*)
10221 # pw32 DLLs use 'pw' prefix rather than 'lib'
10222 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10223 ;;
10224 esac
10225 ;;
10226
10227 *)
10228 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10229 ;;
10230 esac
10231 dynamic_linker='Win32 ld.exe'
10232 # FIXME: first we should search . and the directory the executable is in
10233 shlibpath_var=PATH
10234 ;;
10235
10236 darwin* | rhapsody*)
10237 dynamic_linker="$host_os dyld"
10238 version_type=darwin
10239 need_lib_prefix=no
10240 need_version=no
10241 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10242 soname_spec='${libname}${release}${major}$shared_ext'
10243 shlibpath_overrides_runpath=yes
10244 shlibpath_var=DYLD_LIBRARY_PATH
10245 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10246
10247 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10248 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10249 ;;
10250
10251 dgux*)
10252 version_type=linux
10253 need_lib_prefix=no
10254 need_version=no
10255 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10256 soname_spec='${libname}${release}${shared_ext}$major'
10257 shlibpath_var=LD_LIBRARY_PATH
10258 ;;
10259
10260 freebsd1*)
10261 dynamic_linker=no
10262 ;;
10263
10264 freebsd* | dragonfly*)
10265 # DragonFly does not have aout. When/if they implement a new
10266 # versioning mechanism, adjust this.
10267 if test -x /usr/bin/objformat; then
10268 objformat=`/usr/bin/objformat`
10269 else
10270 case $host_os in
10271 freebsd[123]*) objformat=aout ;;
10272 *) objformat=elf ;;
10273 esac
10274 fi
10275 version_type=freebsd-$objformat
10276 case $version_type in
10277 freebsd-elf*)
10278 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10279 need_version=no
10280 need_lib_prefix=no
10281 ;;
10282 freebsd-*)
10283 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10284 need_version=yes
10285 ;;
10286 esac
10287 shlibpath_var=LD_LIBRARY_PATH
10288 case $host_os in
10289 freebsd2*)
10290 shlibpath_overrides_runpath=yes
10291 ;;
10292 freebsd3.[01]* | freebsdelf3.[01]*)
10293 shlibpath_overrides_runpath=yes
10294 hardcode_into_libs=yes
10295 ;;
10296 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10297 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10298 shlibpath_overrides_runpath=no
10299 hardcode_into_libs=yes
10300 ;;
10301 *) # from 4.6 on, and DragonFly
10302 shlibpath_overrides_runpath=yes
10303 hardcode_into_libs=yes
10304 ;;
10305 esac
10306 ;;
10307
10308 gnu*)
10309 version_type=linux
10310 need_lib_prefix=no
10311 need_version=no
10312 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10313 soname_spec='${libname}${release}${shared_ext}$major'
10314 shlibpath_var=LD_LIBRARY_PATH
10315 hardcode_into_libs=yes
10316 ;;
10317
10318 hpux9* | hpux10* | hpux11*)
10319 # Give a soname corresponding to the major version so that dld.sl refuses to
10320 # link against other versions.
10321 version_type=sunos
10322 need_lib_prefix=no
10323 need_version=no
10324 case $host_cpu in
10325 ia64*)
10326 shrext_cmds='.so'
10327 hardcode_into_libs=yes
10328 dynamic_linker="$host_os dld.so"
10329 shlibpath_var=LD_LIBRARY_PATH
10330 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10331 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10332 soname_spec='${libname}${release}${shared_ext}$major'
10333 if test "X$HPUX_IA64_MODE" = X32; then
10334 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10335 else
10336 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10337 fi
10338 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10339 ;;
10340 hppa*64*)
10341 shrext_cmds='.sl'
10342 hardcode_into_libs=yes
10343 dynamic_linker="$host_os dld.sl"
10344 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10345 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10346 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10347 soname_spec='${libname}${release}${shared_ext}$major'
10348 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10349 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10350 ;;
10351 *)
10352 shrext_cmds='.sl'
10353 dynamic_linker="$host_os dld.sl"
10354 shlibpath_var=SHLIB_PATH
10355 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10356 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10357 soname_spec='${libname}${release}${shared_ext}$major'
10358 ;;
10359 esac
10360 # HP-UX runs *really* slowly unless shared libraries are mode 555.
10361 postinstall_cmds='chmod 555 $lib'
10362 ;;
10363
10364 interix[3-9]*)
10365 version_type=linux
10366 need_lib_prefix=no
10367 need_version=no
10368 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10369 soname_spec='${libname}${release}${shared_ext}$major'
10370 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10371 shlibpath_var=LD_LIBRARY_PATH
10372 shlibpath_overrides_runpath=no
10373 hardcode_into_libs=yes
10374 ;;
10375
10376 irix5* | irix6* | nonstopux*)
10377 case $host_os in
10378 nonstopux*) version_type=nonstopux ;;
10379 *)
10380 if test "$lt_cv_prog_gnu_ld" = yes; then
10381 version_type=linux
10382 else
10383 version_type=irix
10384 fi ;;
10385 esac
10386 need_lib_prefix=no
10387 need_version=no
10388 soname_spec='${libname}${release}${shared_ext}$major'
10389 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10390 case $host_os in
10391 irix5* | nonstopux*)
10392 libsuff= shlibsuff=
10393 ;;
10394 *)
10395 case $LD in # libtool.m4 will add one of these switches to LD
10396 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10397 libsuff= shlibsuff= libmagic=32-bit;;
10398 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10399 libsuff=32 shlibsuff=N32 libmagic=N32;;
10400 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10401 libsuff=64 shlibsuff=64 libmagic=64-bit;;
10402 *) libsuff= shlibsuff= libmagic=never-match;;
10403 esac
10404 ;;
10405 esac
10406 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10407 shlibpath_overrides_runpath=no
10408 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10409 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10410 hardcode_into_libs=yes
10411 ;;
10412
10413 # No shared lib support for Linux oldld, aout, or coff.
10414 linux*oldld* | linux*aout* | linux*coff*)
10415 dynamic_linker=no
10416 ;;
10417
10418 # This must be Linux ELF.
10419 linux* | k*bsd*-gnu | kopensolaris*-gnu)
10420 version_type=linux
10421 need_lib_prefix=no
10422 need_version=no
10423 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10424 soname_spec='${libname}${release}${shared_ext}$major'
10425 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10426 shlibpath_var=LD_LIBRARY_PATH
10427 shlibpath_overrides_runpath=no
10428
10429 # Some binutils ld are patched to set DT_RUNPATH
10430 if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
10431 $as_echo_n "(cached) " >&6
10432 else
10433 lt_cv_shlibpath_overrides_runpath=no
10434 save_LDFLAGS=$LDFLAGS
10435 save_libdir=$libdir
10436 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10437 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10438 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10439 /* end confdefs.h. */
10440
10441 int
10442 main ()
10443 {
10444
10445 ;
10446 return 0;
10447 }
10448 _ACEOF
10449 if ac_fn_c_try_link "$LINENO"; then :
10450 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
10451 lt_cv_shlibpath_overrides_runpath=yes
10452 fi
10453 fi
10454 rm -f core conftest.err conftest.$ac_objext \
10455 conftest$ac_exeext conftest.$ac_ext
10456 LDFLAGS=$save_LDFLAGS
10457 libdir=$save_libdir
10458
10459 fi
10460
10461 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
10462
10463 # This implies no fast_install, which is unacceptable.
10464 # Some rework will be needed to allow for fast_install
10465 # before this can be enabled.
10466 hardcode_into_libs=yes
10467
10468 # Append ld.so.conf contents to the search path
10469 if test -f /etc/ld.so.conf; then
10470 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' ' '`
10471 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10472 fi
10473
10474 # We used to test for /lib/ld.so.1 and disable shared libraries on
10475 # powerpc, because MkLinux only supported shared libraries with the
10476 # GNU dynamic linker. Since this was broken with cross compilers,
10477 # most powerpc-linux boxes support dynamic linking these days and
10478 # people can always --disable-shared, the test was removed, and we
10479 # assume the GNU/Linux dynamic linker is in use.
10480 dynamic_linker='GNU/Linux ld.so'
10481 ;;
10482
10483 netbsd*)
10484 version_type=sunos
10485 need_lib_prefix=no
10486 need_version=no
10487 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10488 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10489 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10490 dynamic_linker='NetBSD (a.out) ld.so'
10491 else
10492 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10493 soname_spec='${libname}${release}${shared_ext}$major'
10494 dynamic_linker='NetBSD ld.elf_so'
10495 fi
10496 shlibpath_var=LD_LIBRARY_PATH
10497 shlibpath_overrides_runpath=yes
10498 hardcode_into_libs=yes
10499 ;;
10500
10501 newsos6)
10502 version_type=linux
10503 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10504 shlibpath_var=LD_LIBRARY_PATH
10505 shlibpath_overrides_runpath=yes
10506 ;;
10507
10508 *nto* | *qnx*)
10509 version_type=qnx
10510 need_lib_prefix=no
10511 need_version=no
10512 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10513 soname_spec='${libname}${release}${shared_ext}$major'
10514 shlibpath_var=LD_LIBRARY_PATH
10515 shlibpath_overrides_runpath=no
10516 hardcode_into_libs=yes
10517 dynamic_linker='ldqnx.so'
10518 ;;
10519
10520 openbsd*)
10521 version_type=sunos
10522 sys_lib_dlsearch_path_spec="/usr/lib"
10523 need_lib_prefix=no
10524 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10525 case $host_os in
10526 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
10527 *) need_version=no ;;
10528 esac
10529 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10530 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10531 shlibpath_var=LD_LIBRARY_PATH
10532 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10533 case $host_os in
10534 openbsd2.[89] | openbsd2.[89].*)
10535 shlibpath_overrides_runpath=no
10536 ;;
10537 *)
10538 shlibpath_overrides_runpath=yes
10539 ;;
10540 esac
10541 else
10542 shlibpath_overrides_runpath=yes
10543 fi
10544 ;;
10545
10546 os2*)
10547 libname_spec='$name'
10548 shrext_cmds=".dll"
10549 need_lib_prefix=no
10550 library_names_spec='$libname${shared_ext} $libname.a'
10551 dynamic_linker='OS/2 ld.exe'
10552 shlibpath_var=LIBPATH
10553 ;;
10554
10555 osf3* | osf4* | osf5*)
10556 version_type=osf
10557 need_lib_prefix=no
10558 need_version=no
10559 soname_spec='${libname}${release}${shared_ext}$major'
10560 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10561 shlibpath_var=LD_LIBRARY_PATH
10562 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10563 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10564 ;;
10565
10566 rdos*)
10567 dynamic_linker=no
10568 ;;
10569
10570 solaris*)
10571 version_type=linux
10572 need_lib_prefix=no
10573 need_version=no
10574 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10575 soname_spec='${libname}${release}${shared_ext}$major'
10576 shlibpath_var=LD_LIBRARY_PATH
10577 shlibpath_overrides_runpath=yes
10578 hardcode_into_libs=yes
10579 # ldd complains unless libraries are executable
10580 postinstall_cmds='chmod +x $lib'
10581 ;;
10582
10583 sunos4*)
10584 version_type=sunos
10585 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10586 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10587 shlibpath_var=LD_LIBRARY_PATH
10588 shlibpath_overrides_runpath=yes
10589 if test "$with_gnu_ld" = yes; then
10590 need_lib_prefix=no
10591 fi
10592 need_version=yes
10593 ;;
10594
10595 sysv4 | sysv4.3*)
10596 version_type=linux
10597 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10598 soname_spec='${libname}${release}${shared_ext}$major'
10599 shlibpath_var=LD_LIBRARY_PATH
10600 case $host_vendor in
10601 sni)
10602 shlibpath_overrides_runpath=no
10603 need_lib_prefix=no
10604 runpath_var=LD_RUN_PATH
10605 ;;
10606 siemens)
10607 need_lib_prefix=no
10608 ;;
10609 motorola)
10610 need_lib_prefix=no
10611 need_version=no
10612 shlibpath_overrides_runpath=no
10613 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10614 ;;
10615 esac
10616 ;;
10617
10618 sysv4*MP*)
10619 if test -d /usr/nec ;then
10620 version_type=linux
10621 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10622 soname_spec='$libname${shared_ext}.$major'
10623 shlibpath_var=LD_LIBRARY_PATH
10624 fi
10625 ;;
10626
10627 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10628 version_type=freebsd-elf
10629 need_lib_prefix=no
10630 need_version=no
10631 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10632 soname_spec='${libname}${release}${shared_ext}$major'
10633 shlibpath_var=LD_LIBRARY_PATH
10634 shlibpath_overrides_runpath=yes
10635 hardcode_into_libs=yes
10636 if test "$with_gnu_ld" = yes; then
10637 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10638 else
10639 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10640 case $host_os in
10641 sco3.2v5*)
10642 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10643 ;;
10644 esac
10645 fi
10646 sys_lib_dlsearch_path_spec='/usr/lib'
10647 ;;
10648
10649 tpf*)
10650 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
10651 version_type=linux
10652 need_lib_prefix=no
10653 need_version=no
10654 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10655 shlibpath_var=LD_LIBRARY_PATH
10656 shlibpath_overrides_runpath=no
10657 hardcode_into_libs=yes
10658 ;;
10659
10660 uts4*)
10661 version_type=linux
10662 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10663 soname_spec='${libname}${release}${shared_ext}$major'
10664 shlibpath_var=LD_LIBRARY_PATH
10665 ;;
10666
10667 *)
10668 dynamic_linker=no
10669 ;;
10670 esac
10671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
10672 $as_echo "$dynamic_linker" >&6; }
10673 test "$dynamic_linker" = no && can_build_shared=no
10674
10675 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10676 if test "$GCC" = yes; then
10677 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10678 fi
10679
10680 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
10681 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
10682 fi
10683 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
10684 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
10685 fi
10686
10687
10688
10689
10690
10691
10692
10693
10694
10695
10696
10697
10698
10699
10700
10701
10702
10703
10704
10705
10706
10707
10708
10709
10710
10711
10712
10713
10714
10715
10716
10717
10718
10719
10720
10721
10722
10723
10724
10725
10726
10727
10728
10729
10730
10731
10732
10733
10734
10735
10736
10737
10738
10739
10740
10741
10742
10743
10744
10745
10746
10747
10748
10749
10750
10751
10752
10753
10754
10755
10756
10757
10758
10759
10760
10761
10762
10763
10764
10765
10766
10767
10768
10769
10770
10771
10772
10773 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
10774 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
10775 hardcode_action=
10776 if test -n "$hardcode_libdir_flag_spec" ||
10777 test -n "$runpath_var" ||
10778 test "X$hardcode_automatic" = "Xyes" ; then
10779
10780 # We can hardcode non-existent directories.
10781 if test "$hardcode_direct" != no &&
10782 # If the only mechanism to avoid hardcoding is shlibpath_var, we
10783 # have to relink, otherwise we might link with an installed library
10784 # when we should be linking with a yet-to-be-installed one
10785 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
10786 test "$hardcode_minus_L" != no; then
10787 # Linking always hardcodes the temporary library directory.
10788 hardcode_action=relink
10789 else
10790 # We can link without hardcoding, and we can hardcode nonexisting dirs.
10791 hardcode_action=immediate
10792 fi
10793 else
10794 # We cannot hardcode anything, or else we can only hardcode existing
10795 # directories.
10796 hardcode_action=unsupported
10797 fi
10798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
10799 $as_echo "$hardcode_action" >&6; }
10800
10801 if test "$hardcode_action" = relink ||
10802 test "$inherit_rpath" = yes; then
10803 # Fast installation is not supported
10804 enable_fast_install=no
10805 elif test "$shlibpath_overrides_runpath" = yes ||
10806 test "$enable_shared" = no; then
10807 # Fast installation is not necessary
10808 enable_fast_install=needless
10809 fi
10810
10811
10812
10813
10814
10815
10816 if test "x$enable_dlopen" != xyes; then
10817 enable_dlopen=unknown
10818 enable_dlopen_self=unknown
10819 enable_dlopen_self_static=unknown
10820 else
10821 lt_cv_dlopen=no
10822 lt_cv_dlopen_libs=
10823
10824 case $host_os in
10825 beos*)
10826 lt_cv_dlopen="load_add_on"
10827 lt_cv_dlopen_libs=
10828 lt_cv_dlopen_self=yes
10829 ;;
10830
10831 mingw* | pw32* | cegcc*)
10832 lt_cv_dlopen="LoadLibrary"
10833 lt_cv_dlopen_libs=
10834 ;;
10835
10836 cygwin*)
10837 lt_cv_dlopen="dlopen"
10838 lt_cv_dlopen_libs=
10839 ;;
10840
10841 darwin*)
10842 # if libdl is installed we need to link against it
10843 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10844 $as_echo_n "checking for dlopen in -ldl... " >&6; }
10845 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
10846 $as_echo_n "(cached) " >&6
10847 else
10848 ac_check_lib_save_LIBS=$LIBS
10849 LIBS="-ldl $LIBS"
10850 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10851 /* end confdefs.h. */
10852
10853 /* Override any GCC internal prototype to avoid an error.
10854 Use char because int might match the return type of a GCC
10855 builtin and then its argument prototype would still apply. */
10856 #ifdef __cplusplus
10857 extern "C"
10858 #endif
10859 char dlopen ();
10860 int
10861 main ()
10862 {
10863 return dlopen ();
10864 ;
10865 return 0;
10866 }
10867 _ACEOF
10868 if ac_fn_c_try_link "$LINENO"; then :
10869 ac_cv_lib_dl_dlopen=yes
10870 else
10871 ac_cv_lib_dl_dlopen=no
10872 fi
10873 rm -f core conftest.err conftest.$ac_objext \
10874 conftest$ac_exeext conftest.$ac_ext
10875 LIBS=$ac_check_lib_save_LIBS
10876 fi
10877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10878 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10879 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
10880 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10881 else
10882
10883 lt_cv_dlopen="dyld"
10884 lt_cv_dlopen_libs=
10885 lt_cv_dlopen_self=yes
10886
10887 fi
10888
10889 ;;
10890
10891 *)
10892 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
10893 if test "x$ac_cv_func_shl_load" = x""yes; then :
10894 lt_cv_dlopen="shl_load"
10895 else
10896 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
10897 $as_echo_n "checking for shl_load in -ldld... " >&6; }
10898 if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
10899 $as_echo_n "(cached) " >&6
10900 else
10901 ac_check_lib_save_LIBS=$LIBS
10902 LIBS="-ldld $LIBS"
10903 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10904 /* end confdefs.h. */
10905
10906 /* Override any GCC internal prototype to avoid an error.
10907 Use char because int might match the return type of a GCC
10908 builtin and then its argument prototype would still apply. */
10909 #ifdef __cplusplus
10910 extern "C"
10911 #endif
10912 char shl_load ();
10913 int
10914 main ()
10915 {
10916 return shl_load ();
10917 ;
10918 return 0;
10919 }
10920 _ACEOF
10921 if ac_fn_c_try_link "$LINENO"; then :
10922 ac_cv_lib_dld_shl_load=yes
10923 else
10924 ac_cv_lib_dld_shl_load=no
10925 fi
10926 rm -f core conftest.err conftest.$ac_objext \
10927 conftest$ac_exeext conftest.$ac_ext
10928 LIBS=$ac_check_lib_save_LIBS
10929 fi
10930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
10931 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
10932 if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
10933 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
10934 else
10935 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
10936 if test "x$ac_cv_func_dlopen" = x""yes; then :
10937 lt_cv_dlopen="dlopen"
10938 else
10939 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10940 $as_echo_n "checking for dlopen in -ldl... " >&6; }
10941 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
10942 $as_echo_n "(cached) " >&6
10943 else
10944 ac_check_lib_save_LIBS=$LIBS
10945 LIBS="-ldl $LIBS"
10946 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10947 /* end confdefs.h. */
10948
10949 /* Override any GCC internal prototype to avoid an error.
10950 Use char because int might match the return type of a GCC
10951 builtin and then its argument prototype would still apply. */
10952 #ifdef __cplusplus
10953 extern "C"
10954 #endif
10955 char dlopen ();
10956 int
10957 main ()
10958 {
10959 return dlopen ();
10960 ;
10961 return 0;
10962 }
10963 _ACEOF
10964 if ac_fn_c_try_link "$LINENO"; then :
10965 ac_cv_lib_dl_dlopen=yes
10966 else
10967 ac_cv_lib_dl_dlopen=no
10968 fi
10969 rm -f core conftest.err conftest.$ac_objext \
10970 conftest$ac_exeext conftest.$ac_ext
10971 LIBS=$ac_check_lib_save_LIBS
10972 fi
10973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10974 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10975 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
10976 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10977 else
10978 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
10979 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
10980 if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
10981 $as_echo_n "(cached) " >&6
10982 else
10983 ac_check_lib_save_LIBS=$LIBS
10984 LIBS="-lsvld $LIBS"
10985 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10986 /* end confdefs.h. */
10987
10988 /* Override any GCC internal prototype to avoid an error.
10989 Use char because int might match the return type of a GCC
10990 builtin and then its argument prototype would still apply. */
10991 #ifdef __cplusplus
10992 extern "C"
10993 #endif
10994 char dlopen ();
10995 int
10996 main ()
10997 {
10998 return dlopen ();
10999 ;
11000 return 0;
11001 }
11002 _ACEOF
11003 if ac_fn_c_try_link "$LINENO"; then :
11004 ac_cv_lib_svld_dlopen=yes
11005 else
11006 ac_cv_lib_svld_dlopen=no
11007 fi
11008 rm -f core conftest.err conftest.$ac_objext \
11009 conftest$ac_exeext conftest.$ac_ext
11010 LIBS=$ac_check_lib_save_LIBS
11011 fi
11012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11013 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11014 if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
11015 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11016 else
11017 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11018 $as_echo_n "checking for dld_link in -ldld... " >&6; }
11019 if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
11020 $as_echo_n "(cached) " >&6
11021 else
11022 ac_check_lib_save_LIBS=$LIBS
11023 LIBS="-ldld $LIBS"
11024 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11025 /* end confdefs.h. */
11026
11027 /* Override any GCC internal prototype to avoid an error.
11028 Use char because int might match the return type of a GCC
11029 builtin and then its argument prototype would still apply. */
11030 #ifdef __cplusplus
11031 extern "C"
11032 #endif
11033 char dld_link ();
11034 int
11035 main ()
11036 {
11037 return dld_link ();
11038 ;
11039 return 0;
11040 }
11041 _ACEOF
11042 if ac_fn_c_try_link "$LINENO"; then :
11043 ac_cv_lib_dld_dld_link=yes
11044 else
11045 ac_cv_lib_dld_dld_link=no
11046 fi
11047 rm -f core conftest.err conftest.$ac_objext \
11048 conftest$ac_exeext conftest.$ac_ext
11049 LIBS=$ac_check_lib_save_LIBS
11050 fi
11051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11052 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11053 if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
11054 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
11055 fi
11056
11057
11058 fi
11059
11060
11061 fi
11062
11063
11064 fi
11065
11066
11067 fi
11068
11069
11070 fi
11071
11072 ;;
11073 esac
11074
11075 if test "x$lt_cv_dlopen" != xno; then
11076 enable_dlopen=yes
11077 else
11078 enable_dlopen=no
11079 fi
11080
11081 case $lt_cv_dlopen in
11082 dlopen)
11083 save_CPPFLAGS="$CPPFLAGS"
11084 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11085
11086 save_LDFLAGS="$LDFLAGS"
11087 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11088
11089 save_LIBS="$LIBS"
11090 LIBS="$lt_cv_dlopen_libs $LIBS"
11091
11092 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
11093 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
11094 if test "${lt_cv_dlopen_self+set}" = set; then :
11095 $as_echo_n "(cached) " >&6
11096 else
11097 if test "$cross_compiling" = yes; then :
11098 lt_cv_dlopen_self=cross
11099 else
11100 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11101 lt_status=$lt_dlunknown
11102 cat > conftest.$ac_ext <<_LT_EOF
11103 #line 11103 "configure"
11104 #include "confdefs.h"
11105
11106 #if HAVE_DLFCN_H
11107 #include <dlfcn.h>
11108 #endif
11109
11110 #include <stdio.h>
11111
11112 #ifdef RTLD_GLOBAL
11113 # define LT_DLGLOBAL RTLD_GLOBAL
11114 #else
11115 # ifdef DL_GLOBAL
11116 # define LT_DLGLOBAL DL_GLOBAL
11117 # else
11118 # define LT_DLGLOBAL 0
11119 # endif
11120 #endif
11121
11122 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11123 find out it does not work in some platform. */
11124 #ifndef LT_DLLAZY_OR_NOW
11125 # ifdef RTLD_LAZY
11126 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11127 # else
11128 # ifdef DL_LAZY
11129 # define LT_DLLAZY_OR_NOW DL_LAZY
11130 # else
11131 # ifdef RTLD_NOW
11132 # define LT_DLLAZY_OR_NOW RTLD_NOW
11133 # else
11134 # ifdef DL_NOW
11135 # define LT_DLLAZY_OR_NOW DL_NOW
11136 # else
11137 # define LT_DLLAZY_OR_NOW 0
11138 # endif
11139 # endif
11140 # endif
11141 # endif
11142 #endif
11143
11144 void fnord() { int i=42;}
11145 int main ()
11146 {
11147 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11148 int status = $lt_dlunknown;
11149
11150 if (self)
11151 {
11152 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11153 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11154 /* dlclose (self); */
11155 }
11156 else
11157 puts (dlerror ());
11158
11159 return status;
11160 }
11161 _LT_EOF
11162 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11163 (eval $ac_link) 2>&5
11164 ac_status=$?
11165 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11166 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11167 (./conftest; exit; ) >&5 2>/dev/null
11168 lt_status=$?
11169 case x$lt_status in
11170 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11171 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11172 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11173 esac
11174 else :
11175 # compilation failed
11176 lt_cv_dlopen_self=no
11177 fi
11178 fi
11179 rm -fr conftest*
11180
11181
11182 fi
11183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11184 $as_echo "$lt_cv_dlopen_self" >&6; }
11185
11186 if test "x$lt_cv_dlopen_self" = xyes; then
11187 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11188 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11189 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11190 if test "${lt_cv_dlopen_self_static+set}" = set; then :
11191 $as_echo_n "(cached) " >&6
11192 else
11193 if test "$cross_compiling" = yes; then :
11194 lt_cv_dlopen_self_static=cross
11195 else
11196 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11197 lt_status=$lt_dlunknown
11198 cat > conftest.$ac_ext <<_LT_EOF
11199 #line 11199 "configure"
11200 #include "confdefs.h"
11201
11202 #if HAVE_DLFCN_H
11203 #include <dlfcn.h>
11204 #endif
11205
11206 #include <stdio.h>
11207
11208 #ifdef RTLD_GLOBAL
11209 # define LT_DLGLOBAL RTLD_GLOBAL
11210 #else
11211 # ifdef DL_GLOBAL
11212 # define LT_DLGLOBAL DL_GLOBAL
11213 # else
11214 # define LT_DLGLOBAL 0
11215 # endif
11216 #endif
11217
11218 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11219 find out it does not work in some platform. */
11220 #ifndef LT_DLLAZY_OR_NOW
11221 # ifdef RTLD_LAZY
11222 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11223 # else
11224 # ifdef DL_LAZY
11225 # define LT_DLLAZY_OR_NOW DL_LAZY
11226 # else
11227 # ifdef RTLD_NOW
11228 # define LT_DLLAZY_OR_NOW RTLD_NOW
11229 # else
11230 # ifdef DL_NOW
11231 # define LT_DLLAZY_OR_NOW DL_NOW
11232 # else
11233 # define LT_DLLAZY_OR_NOW 0
11234 # endif
11235 # endif
11236 # endif
11237 # endif
11238 #endif
11239
11240 void fnord() { int i=42;}
11241 int main ()
11242 {
11243 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11244 int status = $lt_dlunknown;
11245
11246 if (self)
11247 {
11248 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11249 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11250 /* dlclose (self); */
11251 }
11252 else
11253 puts (dlerror ());
11254
11255 return status;
11256 }
11257 _LT_EOF
11258 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11259 (eval $ac_link) 2>&5
11260 ac_status=$?
11261 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11262 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11263 (./conftest; exit; ) >&5 2>/dev/null
11264 lt_status=$?
11265 case x$lt_status in
11266 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11267 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11268 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11269 esac
11270 else :
11271 # compilation failed
11272 lt_cv_dlopen_self_static=no
11273 fi
11274 fi
11275 rm -fr conftest*
11276
11277
11278 fi
11279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11280 $as_echo "$lt_cv_dlopen_self_static" >&6; }
11281 fi
11282
11283 CPPFLAGS="$save_CPPFLAGS"
11284 LDFLAGS="$save_LDFLAGS"
11285 LIBS="$save_LIBS"
11286 ;;
11287 esac
11288
11289 case $lt_cv_dlopen_self in
11290 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11291 *) enable_dlopen_self=unknown ;;
11292 esac
11293
11294 case $lt_cv_dlopen_self_static in
11295 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11296 *) enable_dlopen_self_static=unknown ;;
11297 esac
11298 fi
11299
11300
11301
11302
11303
11304
11305
11306
11307
11308
11309
11310
11311
11312
11313
11314
11315
11316 striplib=
11317 old_striplib=
11318 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11319 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
11320 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11321 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11322 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11324 $as_echo "yes" >&6; }
11325 else
11326 # FIXME - insert some real tests, host_os isn't really good enough
11327 case $host_os in
11328 darwin*)
11329 if test -n "$STRIP" ; then
11330 striplib="$STRIP -x"
11331 old_striplib="$STRIP -S"
11332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11333 $as_echo "yes" >&6; }
11334 else
11335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11336 $as_echo "no" >&6; }
11337 fi
11338 ;;
11339 *)
11340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11341 $as_echo "no" >&6; }
11342 ;;
11343 esac
11344 fi
11345
11346
11347
11348
11349
11350
11351
11352
11353
11354
11355
11356
11357 # Report which library types will actually be built
11358 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
11359 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
11360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
11361 $as_echo "$can_build_shared" >&6; }
11362
11363 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
11364 $as_echo_n "checking whether to build shared libraries... " >&6; }
11365 test "$can_build_shared" = "no" && enable_shared=no
11366
11367 # On AIX, shared libraries and static libraries use the same namespace, and
11368 # are all built from PIC.
11369 case $host_os in
11370 aix3*)
11371 test "$enable_shared" = yes && enable_static=no
11372 if test -n "$RANLIB"; then
11373 archive_cmds="$archive_cmds~\$RANLIB \$lib"
11374 postinstall_cmds='$RANLIB $lib'
11375 fi
11376 ;;
11377
11378 aix[4-9]*)
11379 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11380 test "$enable_shared" = yes && enable_static=no
11381 fi
11382 ;;
11383 esac
11384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
11385 $as_echo "$enable_shared" >&6; }
11386
11387 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
11388 $as_echo_n "checking whether to build static libraries... " >&6; }
11389 # Make sure either enable_shared or enable_static is yes.
11390 test "$enable_shared" = yes || enable_static=yes
11391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
11392 $as_echo "$enable_static" >&6; }
11393
11394
11395
11396
11397 fi
11398 ac_ext=c
11399 ac_cpp='$CPP $CPPFLAGS'
11400 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11401 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11402 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11403
11404 CC="$lt_save_CC"
11405
11406
11407
11408
11409
11410
11411
11412
11413
11414
11415
11416
11417
11418 ac_config_commands="$ac_config_commands libtool"
11419
11420
11421
11422
11423 # Only expand once:
11424
11425
11426
11427 # Check whether --enable-targets was given.
11428 if test "${enable_targets+set}" = set; then :
11429 enableval=$enable_targets; case "${enableval}" in
11430 yes | "") as_fn_error "enable-targets option must specify target names or 'all'" "$LINENO" 5
11431 ;;
11432 no) enable_targets= ;;
11433 *) enable_targets=$enableval ;;
11434 esac
11435 fi
11436
11437
11438 GCC_WARN_CFLAGS="-W -Wall -Wstrict-prototypes -Wmissing-prototypes"
11439
11440 # Check whether --enable-werror was given.
11441 if test "${enable_werror+set}" = set; then :
11442 enableval=$enable_werror; case "${enableval}" in
11443 yes | y) ERROR_ON_WARNING="yes" ;;
11444 no | n) ERROR_ON_WARNING="no" ;;
11445 *) as_fn_error "bad value ${enableval} for --enable-werror" "$LINENO" 5 ;;
11446 esac
11447 fi
11448
11449
11450 # Enable -Wno-format by default when using gcc on mingw
11451 case "${host}" in
11452 *-*-mingw32*)
11453 if test "${GCC}" = yes -a -z "${ERROR_ON_WARNING}" ; then
11454 GCC_WARN_CFLAGS="$GCC_WARN_CFLAGS -Wno-format"
11455 fi
11456 ;;
11457 *) ;;
11458 esac
11459
11460 # Enable -Werror by default when using gcc
11461 if test "${GCC}" = yes -a -z "${ERROR_ON_WARNING}" ; then
11462 ERROR_ON_WARNING=yes
11463 fi
11464
11465 NO_WERROR=
11466 if test "${ERROR_ON_WARNING}" = yes ; then
11467 GCC_WARN_CFLAGS="$GCC_WARN_CFLAGS -Werror"
11468 NO_WERROR="-Wno-error"
11469 fi
11470
11471 if test "${GCC}" = yes ; then
11472 WARN_CFLAGS="${GCC_WARN_CFLAGS}"
11473 fi
11474
11475 # Check whether --enable-build-warnings was given.
11476 if test "${enable_build_warnings+set}" = set; then :
11477 enableval=$enable_build_warnings; case "${enableval}" in
11478 yes) WARN_CFLAGS="${GCC_WARN_CFLAGS}";;
11479 no) if test "${GCC}" = yes ; then
11480 WARN_CFLAGS="-w"
11481 fi;;
11482 ,*) t=`echo "${enableval}" | sed -e "s/,/ /g"`
11483 WARN_CFLAGS="${GCC_WARN_CFLAGS} ${t}";;
11484 *,) t=`echo "${enableval}" | sed -e "s/,/ /g"`
11485 WARN_CFLAGS="${t} ${GCC_WARN_CFLAGS}";;
11486 *) WARN_CFLAGS=`echo "${enableval}" | sed -e "s/,/ /g"`;;
11487 esac
11488 fi
11489
11490
11491 if test x"$silent" != x"yes" && test x"$WARN_CFLAGS" != x""; then
11492 echo "Setting warning flags = $WARN_CFLAGS" 6>&1
11493 fi
11494
11495
11496
11497
11498
11499 ac_config_headers="$ac_config_headers config.h:config.in"
11500
11501
11502 if test -z "$target" ; then
11503 as_fn_error "Unrecognized target system type; please check config.sub." "$LINENO" 5
11504 fi
11505 if test -z "$host" ; then
11506 as_fn_error "Unrecognized host system type; please check config.sub." "$LINENO" 5
11507 fi
11508
11509 for ac_prog in 'bison -y' byacc
11510 do
11511 # Extract the first word of "$ac_prog", so it can be a program name with args.
11512 set dummy $ac_prog; ac_word=$2
11513 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11514 $as_echo_n "checking for $ac_word... " >&6; }
11515 if test "${ac_cv_prog_YACC+set}" = set; then :
11516 $as_echo_n "(cached) " >&6
11517 else
11518 if test -n "$YACC"; then
11519 ac_cv_prog_YACC="$YACC" # Let the user override the test.
11520 else
11521 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11522 for as_dir in $PATH
11523 do
11524 IFS=$as_save_IFS
11525 test -z "$as_dir" && as_dir=.
11526 for ac_exec_ext in '' $ac_executable_extensions; do
11527 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11528 ac_cv_prog_YACC="$ac_prog"
11529 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11530 break 2
11531 fi
11532 done
11533 done
11534 IFS=$as_save_IFS
11535
11536 fi
11537 fi
11538 YACC=$ac_cv_prog_YACC
11539 if test -n "$YACC"; then
11540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5
11541 $as_echo "$YACC" >&6; }
11542 else
11543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11544 $as_echo "no" >&6; }
11545 fi
11546
11547
11548 test -n "$YACC" && break
11549 done
11550 test -n "$YACC" || YACC="yacc"
11551
11552 for ac_prog in flex lex
11553 do
11554 # Extract the first word of "$ac_prog", so it can be a program name with args.
11555 set dummy $ac_prog; ac_word=$2
11556 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11557 $as_echo_n "checking for $ac_word... " >&6; }
11558 if test "${ac_cv_prog_LEX+set}" = set; then :
11559 $as_echo_n "(cached) " >&6
11560 else
11561 if test -n "$LEX"; then
11562 ac_cv_prog_LEX="$LEX" # Let the user override the test.
11563 else
11564 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11565 for as_dir in $PATH
11566 do
11567 IFS=$as_save_IFS
11568 test -z "$as_dir" && as_dir=.
11569 for ac_exec_ext in '' $ac_executable_extensions; do
11570 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11571 ac_cv_prog_LEX="$ac_prog"
11572 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11573 break 2
11574 fi
11575 done
11576 done
11577 IFS=$as_save_IFS
11578
11579 fi
11580 fi
11581 LEX=$ac_cv_prog_LEX
11582 if test -n "$LEX"; then
11583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LEX" >&5
11584 $as_echo "$LEX" >&6; }
11585 else
11586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11587 $as_echo "no" >&6; }
11588 fi
11589
11590
11591 test -n "$LEX" && break
11592 done
11593 test -n "$LEX" || LEX=":"
11594
11595 if test "x$LEX" != "x:"; then
11596 cat >conftest.l <<_ACEOF
11597 %%
11598 a { ECHO; }
11599 b { REJECT; }
11600 c { yymore (); }
11601 d { yyless (1); }
11602 e { yyless (input () != 0); }
11603 f { unput (yytext[0]); }
11604 . { BEGIN INITIAL; }
11605 %%
11606 #ifdef YYTEXT_POINTER
11607 extern char *yytext;
11608 #endif
11609 int
11610 main (void)
11611 {
11612 return ! yylex () + ! yywrap ();
11613 }
11614 _ACEOF
11615 { { ac_try="$LEX conftest.l"
11616 case "(($ac_try" in
11617 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11618 *) ac_try_echo=$ac_try;;
11619 esac
11620 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
11621 $as_echo "$ac_try_echo"; } >&5
11622 (eval "$LEX conftest.l") 2>&5
11623 ac_status=$?
11624 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11625 test $ac_status = 0; }
11626 { $as_echo "$as_me:${as_lineno-$LINENO}: checking lex output file root" >&5
11627 $as_echo_n "checking lex output file root... " >&6; }
11628 if test "${ac_cv_prog_lex_root+set}" = set; then :
11629 $as_echo_n "(cached) " >&6
11630 else
11631
11632 if test -f lex.yy.c; then
11633 ac_cv_prog_lex_root=lex.yy
11634 elif test -f lexyy.c; then
11635 ac_cv_prog_lex_root=lexyy
11636 else
11637 as_fn_error "cannot find output from $LEX; giving up" "$LINENO" 5
11638 fi
11639 fi
11640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_root" >&5
11641 $as_echo "$ac_cv_prog_lex_root" >&6; }
11642 LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
11643
11644 if test -z "${LEXLIB+set}"; then
11645 { $as_echo "$as_me:${as_lineno-$LINENO}: checking lex library" >&5
11646 $as_echo_n "checking lex library... " >&6; }
11647 if test "${ac_cv_lib_lex+set}" = set; then :
11648 $as_echo_n "(cached) " >&6
11649 else
11650
11651 ac_save_LIBS=$LIBS
11652 ac_cv_lib_lex='none needed'
11653 for ac_lib in '' -lfl -ll; do
11654 LIBS="$ac_lib $ac_save_LIBS"
11655 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11656 /* end confdefs.h. */
11657 `cat $LEX_OUTPUT_ROOT.c`
11658 _ACEOF
11659 if ac_fn_c_try_link "$LINENO"; then :
11660 ac_cv_lib_lex=$ac_lib
11661 fi
11662 rm -f core conftest.err conftest.$ac_objext \
11663 conftest$ac_exeext conftest.$ac_ext
11664 test "$ac_cv_lib_lex" != 'none needed' && break
11665 done
11666 LIBS=$ac_save_LIBS
11667
11668 fi
11669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lex" >&5
11670 $as_echo "$ac_cv_lib_lex" >&6; }
11671 test "$ac_cv_lib_lex" != 'none needed' && LEXLIB=$ac_cv_lib_lex
11672 fi
11673
11674
11675 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether yytext is a pointer" >&5
11676 $as_echo_n "checking whether yytext is a pointer... " >&6; }
11677 if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then :
11678 $as_echo_n "(cached) " >&6
11679 else
11680 # POSIX says lex can declare yytext either as a pointer or an array; the
11681 # default is implementation-dependent. Figure out which it is, since
11682 # not all implementations provide the %pointer and %array declarations.
11683 ac_cv_prog_lex_yytext_pointer=no
11684 ac_save_LIBS=$LIBS
11685 LIBS="$LEXLIB $ac_save_LIBS"
11686 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11687 /* end confdefs.h. */
11688 #define YYTEXT_POINTER 1
11689 `cat $LEX_OUTPUT_ROOT.c`
11690 _ACEOF
11691 if ac_fn_c_try_link "$LINENO"; then :
11692 ac_cv_prog_lex_yytext_pointer=yes
11693 fi
11694 rm -f core conftest.err conftest.$ac_objext \
11695 conftest$ac_exeext conftest.$ac_ext
11696 LIBS=$ac_save_LIBS
11697
11698 fi
11699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_yytext_pointer" >&5
11700 $as_echo "$ac_cv_prog_lex_yytext_pointer" >&6; }
11701 if test $ac_cv_prog_lex_yytext_pointer = yes; then
11702
11703 $as_echo "#define YYTEXT_POINTER 1" >>confdefs.h
11704
11705 fi
11706 rm -f conftest.l $LEX_OUTPUT_ROOT.c
11707
11708 fi
11709 if test "$LEX" = :; then
11710 LEX=${am_missing_run}flex
11711 fi
11712
11713 ALL_LINGUAS="da es fi fr id ja ro ru rw sk sv tr uk vi zh_CN zh_TW"
11714 # If we haven't got the data from the intl directory,
11715 # assume NLS is disabled.
11716 USE_NLS=no
11717 LIBINTL=
11718 LIBINTL_DEP=
11719 INCINTL=
11720 XGETTEXT=
11721 GMSGFMT=
11722 POSUB=
11723
11724 if test -f ../intl/config.intl; then
11725 . ../intl/config.intl
11726 fi
11727 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
11728 $as_echo_n "checking whether NLS is requested... " >&6; }
11729 if test x"$USE_NLS" != xyes; then
11730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11731 $as_echo "no" >&6; }
11732 else
11733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11734 $as_echo "yes" >&6; }
11735
11736 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
11737
11738
11739 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catalogs to be installed" >&5
11740 $as_echo_n "checking for catalogs to be installed... " >&6; }
11741 # Look for .po and .gmo files in the source directory.
11742 CATALOGS=
11743 XLINGUAS=
11744 for cat in $srcdir/po/*.gmo $srcdir/po/*.po; do
11745 # If there aren't any .gmo files the shell will give us the
11746 # literal string "../path/to/srcdir/po/*.gmo" which has to be
11747 # weeded out.
11748 case "$cat" in *\**)
11749 continue;;
11750 esac
11751 # The quadruple backslash is collapsed to a double backslash
11752 # by the backticks, then collapsed again by the double quotes,
11753 # leaving us with one backslash in the sed expression (right
11754 # before the dot that mustn't act as a wildcard).
11755 cat=`echo $cat | sed -e "s!$srcdir/po/!!" -e "s!\\\\.po!.gmo!"`
11756 lang=`echo $cat | sed -e "s!\\\\.gmo!!"`
11757 # The user is allowed to set LINGUAS to a list of languages to
11758 # install catalogs for. If it's empty that means "all of them."
11759 if test "x$LINGUAS" = x; then
11760 CATALOGS="$CATALOGS $cat"
11761 XLINGUAS="$XLINGUAS $lang"
11762 else
11763 case "$LINGUAS" in *$lang*)
11764 CATALOGS="$CATALOGS $cat"
11765 XLINGUAS="$XLINGUAS $lang"
11766 ;;
11767 esac
11768 fi
11769 done
11770 LINGUAS="$XLINGUAS"
11771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINGUAS" >&5
11772 $as_echo "$LINGUAS" >&6; }
11773
11774
11775 DATADIRNAME=share
11776
11777 INSTOBJEXT=.mo
11778
11779 GENCAT=gencat
11780
11781 CATOBJEXT=.gmo
11782
11783 fi
11784
11785 MKINSTALLDIRS=
11786 if test -n "$ac_aux_dir"; then
11787 case "$ac_aux_dir" in
11788 /*) MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" ;;
11789 *) MKINSTALLDIRS="\$(top_builddir)/$ac_aux_dir/mkinstalldirs" ;;
11790 esac
11791 fi
11792 if test -z "$MKINSTALLDIRS"; then
11793 MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
11794 fi
11795
11796
11797
11798 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
11799 $as_echo_n "checking whether NLS is requested... " >&6; }
11800 # Check whether --enable-nls was given.
11801 if test "${enable_nls+set}" = set; then :
11802 enableval=$enable_nls; USE_NLS=$enableval
11803 else
11804 USE_NLS=yes
11805 fi
11806
11807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
11808 $as_echo "$USE_NLS" >&6; }
11809
11810
11811
11812
11813
11814
11815 # Prepare PATH_SEPARATOR.
11816 # The user is always right.
11817 if test "${PATH_SEPARATOR+set}" != set; then
11818 echo "#! /bin/sh" >conf$$.sh
11819 echo "exit 0" >>conf$$.sh
11820 chmod +x conf$$.sh
11821 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
11822 PATH_SEPARATOR=';'
11823 else
11824 PATH_SEPARATOR=:
11825 fi
11826 rm -f conf$$.sh
11827 fi
11828
11829 # Find out how to test for executable files. Don't use a zero-byte file,
11830 # as systems may use methods other than mode bits to determine executability.
11831 cat >conf$$.file <<_ASEOF
11832 #! /bin/sh
11833 exit 0
11834 _ASEOF
11835 chmod +x conf$$.file
11836 if test -x conf$$.file >/dev/null 2>&1; then
11837 ac_executable_p="test -x"
11838 else
11839 ac_executable_p="test -f"
11840 fi
11841 rm -f conf$$.file
11842
11843 # Extract the first word of "msgfmt", so it can be a program name with args.
11844 set dummy msgfmt; ac_word=$2
11845 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11846 $as_echo_n "checking for $ac_word... " >&6; }
11847 if test "${ac_cv_path_MSGFMT+set}" = set; then :
11848 $as_echo_n "(cached) " >&6
11849 else
11850 case "$MSGFMT" in
11851 [\\/]* | ?:[\\/]*)
11852 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
11853 ;;
11854 *)
11855 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
11856 for ac_dir in $PATH; do
11857 IFS="$ac_save_IFS"
11858 test -z "$ac_dir" && ac_dir=.
11859 for ac_exec_ext in '' $ac_executable_extensions; do
11860 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
11861 if $ac_dir/$ac_word --statistics /dev/null >/dev/null 2>&1 &&
11862 (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
11863 ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
11864 break 2
11865 fi
11866 fi
11867 done
11868 done
11869 IFS="$ac_save_IFS"
11870 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
11871 ;;
11872 esac
11873 fi
11874 MSGFMT="$ac_cv_path_MSGFMT"
11875 if test "$MSGFMT" != ":"; then
11876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
11877 $as_echo "$MSGFMT" >&6; }
11878 else
11879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11880 $as_echo "no" >&6; }
11881 fi
11882
11883 # Extract the first word of "gmsgfmt", so it can be a program name with args.
11884 set dummy gmsgfmt; ac_word=$2
11885 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11886 $as_echo_n "checking for $ac_word... " >&6; }
11887 if test "${ac_cv_path_GMSGFMT+set}" = set; then :
11888 $as_echo_n "(cached) " >&6
11889 else
11890 case $GMSGFMT in
11891 [\\/]* | ?:[\\/]*)
11892 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
11893 ;;
11894 *)
11895 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11896 for as_dir in $PATH
11897 do
11898 IFS=$as_save_IFS
11899 test -z "$as_dir" && as_dir=.
11900 for ac_exec_ext in '' $ac_executable_extensions; do
11901 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11902 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
11903 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11904 break 2
11905 fi
11906 done
11907 done
11908 IFS=$as_save_IFS
11909
11910 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
11911 ;;
11912 esac
11913 fi
11914 GMSGFMT=$ac_cv_path_GMSGFMT
11915 if test -n "$GMSGFMT"; then
11916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMSGFMT" >&5
11917 $as_echo "$GMSGFMT" >&6; }
11918 else
11919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11920 $as_echo "no" >&6; }
11921 fi
11922
11923
11924
11925
11926 # Prepare PATH_SEPARATOR.
11927 # The user is always right.
11928 if test "${PATH_SEPARATOR+set}" != set; then
11929 echo "#! /bin/sh" >conf$$.sh
11930 echo "exit 0" >>conf$$.sh
11931 chmod +x conf$$.sh
11932 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
11933 PATH_SEPARATOR=';'
11934 else
11935 PATH_SEPARATOR=:
11936 fi
11937 rm -f conf$$.sh
11938 fi
11939
11940 # Find out how to test for executable files. Don't use a zero-byte file,
11941 # as systems may use methods other than mode bits to determine executability.
11942 cat >conf$$.file <<_ASEOF
11943 #! /bin/sh
11944 exit 0
11945 _ASEOF
11946 chmod +x conf$$.file
11947 if test -x conf$$.file >/dev/null 2>&1; then
11948 ac_executable_p="test -x"
11949 else
11950 ac_executable_p="test -f"
11951 fi
11952 rm -f conf$$.file
11953
11954 # Extract the first word of "xgettext", so it can be a program name with args.
11955 set dummy xgettext; ac_word=$2
11956 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11957 $as_echo_n "checking for $ac_word... " >&6; }
11958 if test "${ac_cv_path_XGETTEXT+set}" = set; then :
11959 $as_echo_n "(cached) " >&6
11960 else
11961 case "$XGETTEXT" in
11962 [\\/]* | ?:[\\/]*)
11963 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
11964 ;;
11965 *)
11966 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
11967 for ac_dir in $PATH; do
11968 IFS="$ac_save_IFS"
11969 test -z "$ac_dir" && ac_dir=.
11970 for ac_exec_ext in '' $ac_executable_extensions; do
11971 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
11972 if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
11973 (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
11974 ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
11975 break 2
11976 fi
11977 fi
11978 done
11979 done
11980 IFS="$ac_save_IFS"
11981 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
11982 ;;
11983 esac
11984 fi
11985 XGETTEXT="$ac_cv_path_XGETTEXT"
11986 if test "$XGETTEXT" != ":"; then
11987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5
11988 $as_echo "$XGETTEXT" >&6; }
11989 else
11990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11991 $as_echo "no" >&6; }
11992 fi
11993
11994 rm -f messages.po
11995
11996
11997 # Prepare PATH_SEPARATOR.
11998 # The user is always right.
11999 if test "${PATH_SEPARATOR+set}" != set; then
12000 echo "#! /bin/sh" >conf$$.sh
12001 echo "exit 0" >>conf$$.sh
12002 chmod +x conf$$.sh
12003 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
12004 PATH_SEPARATOR=';'
12005 else
12006 PATH_SEPARATOR=:
12007 fi
12008 rm -f conf$$.sh
12009 fi
12010
12011 # Find out how to test for executable files. Don't use a zero-byte file,
12012 # as systems may use methods other than mode bits to determine executability.
12013 cat >conf$$.file <<_ASEOF
12014 #! /bin/sh
12015 exit 0
12016 _ASEOF
12017 chmod +x conf$$.file
12018 if test -x conf$$.file >/dev/null 2>&1; then
12019 ac_executable_p="test -x"
12020 else
12021 ac_executable_p="test -f"
12022 fi
12023 rm -f conf$$.file
12024
12025 # Extract the first word of "msgmerge", so it can be a program name with args.
12026 set dummy msgmerge; ac_word=$2
12027 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12028 $as_echo_n "checking for $ac_word... " >&6; }
12029 if test "${ac_cv_path_MSGMERGE+set}" = set; then :
12030 $as_echo_n "(cached) " >&6
12031 else
12032 case "$MSGMERGE" in
12033 [\\/]* | ?:[\\/]*)
12034 ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
12035 ;;
12036 *)
12037 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
12038 for ac_dir in $PATH; do
12039 IFS="$ac_save_IFS"
12040 test -z "$ac_dir" && ac_dir=.
12041 for ac_exec_ext in '' $ac_executable_extensions; do
12042 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
12043 if $ac_dir/$ac_word --update -q /dev/null /dev/null >/dev/null 2>&1; then
12044 ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
12045 break 2
12046 fi
12047 fi
12048 done
12049 done
12050 IFS="$ac_save_IFS"
12051 test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
12052 ;;
12053 esac
12054 fi
12055 MSGMERGE="$ac_cv_path_MSGMERGE"
12056 if test "$MSGMERGE" != ":"; then
12057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGMERGE" >&5
12058 $as_echo "$MSGMERGE" >&6; }
12059 else
12060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12061 $as_echo "no" >&6; }
12062 fi
12063
12064
12065 if test "$GMSGFMT" != ":"; then
12066 if $GMSGFMT --statistics /dev/null >/dev/null 2>&1 &&
12067 (if $GMSGFMT --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
12068 : ;
12069 else
12070 GMSGFMT=`echo "$GMSGFMT" | sed -e 's,^.*/,,'`
12071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found $GMSGFMT program is not GNU msgfmt; ignore it" >&5
12072 $as_echo "found $GMSGFMT program is not GNU msgfmt; ignore it" >&6; }
12073 GMSGFMT=":"
12074 fi
12075 fi
12076
12077 if test "$XGETTEXT" != ":"; then
12078 if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
12079 (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
12080 : ;
12081 else
12082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found xgettext program is not GNU xgettext; ignore it" >&5
12083 $as_echo "found xgettext program is not GNU xgettext; ignore it" >&6; }
12084 XGETTEXT=":"
12085 fi
12086 rm -f messages.po
12087 fi
12088
12089 ac_config_commands="$ac_config_commands default-1"
12090
12091
12092
12093
12094 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
12095 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
12096 # Check whether --enable-maintainer-mode was given.
12097 if test "${enable_maintainer_mode+set}" = set; then :
12098 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
12099 else
12100 USE_MAINTAINER_MODE=no
12101 fi
12102
12103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
12104 $as_echo "$USE_MAINTAINER_MODE" >&6; }
12105 if test $USE_MAINTAINER_MODE = yes; then
12106 MAINTAINER_MODE_TRUE=
12107 MAINTAINER_MODE_FALSE='#'
12108 else
12109 MAINTAINER_MODE_TRUE='#'
12110 MAINTAINER_MODE_FALSE=
12111 fi
12112
12113 MAINT=$MAINTAINER_MODE_TRUE
12114
12115
12116 if false; then
12117 GENINSRC_NEVER_TRUE=
12118 GENINSRC_NEVER_FALSE='#'
12119 else
12120 GENINSRC_NEVER_TRUE='#'
12121 GENINSRC_NEVER_FALSE=
12122 fi
12123
12124
12125 if test -n "$EXEEXT"; then
12126
12127 $as_echo "#define HAVE_EXECUTABLE_SUFFIX 1" >>confdefs.h
12128
12129 fi
12130
12131 cat >>confdefs.h <<_ACEOF
12132 #define EXECUTABLE_SUFFIX "${EXEEXT}"
12133 _ACEOF
12134
12135
12136 # host-specific stuff:
12137
12138 HDEFINES=
12139
12140 . ${srcdir}/../bfd/configure.host
12141
12142
12143 AR=${AR-ar}
12144
12145 if test -n "$ac_tool_prefix"; then
12146 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
12147 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
12148 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12149 $as_echo_n "checking for $ac_word... " >&6; }
12150 if test "${ac_cv_prog_RANLIB+set}" = set; then :
12151 $as_echo_n "(cached) " >&6
12152 else
12153 if test -n "$RANLIB"; then
12154 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
12155 else
12156 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12157 for as_dir in $PATH
12158 do
12159 IFS=$as_save_IFS
12160 test -z "$as_dir" && as_dir=.
12161 for ac_exec_ext in '' $ac_executable_extensions; do
12162 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12163 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
12164 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12165 break 2
12166 fi
12167 done
12168 done
12169 IFS=$as_save_IFS
12170
12171 fi
12172 fi
12173 RANLIB=$ac_cv_prog_RANLIB
12174 if test -n "$RANLIB"; then
12175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
12176 $as_echo "$RANLIB" >&6; }
12177 else
12178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12179 $as_echo "no" >&6; }
12180 fi
12181
12182
12183 fi
12184 if test -z "$ac_cv_prog_RANLIB"; then
12185 ac_ct_RANLIB=$RANLIB
12186 # Extract the first word of "ranlib", so it can be a program name with args.
12187 set dummy ranlib; ac_word=$2
12188 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12189 $as_echo_n "checking for $ac_word... " >&6; }
12190 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
12191 $as_echo_n "(cached) " >&6
12192 else
12193 if test -n "$ac_ct_RANLIB"; then
12194 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
12195 else
12196 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12197 for as_dir in $PATH
12198 do
12199 IFS=$as_save_IFS
12200 test -z "$as_dir" && as_dir=.
12201 for ac_exec_ext in '' $ac_executable_extensions; do
12202 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12203 ac_cv_prog_ac_ct_RANLIB="ranlib"
12204 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12205 break 2
12206 fi
12207 done
12208 done
12209 IFS=$as_save_IFS
12210
12211 fi
12212 fi
12213 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
12214 if test -n "$ac_ct_RANLIB"; then
12215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
12216 $as_echo "$ac_ct_RANLIB" >&6; }
12217 else
12218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12219 $as_echo "no" >&6; }
12220 fi
12221
12222 if test "x$ac_ct_RANLIB" = x; then
12223 RANLIB=":"
12224 else
12225 case $cross_compiling:$ac_tool_warned in
12226 yes:)
12227 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12228 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12229 ac_tool_warned=yes ;;
12230 esac
12231 RANLIB=$ac_ct_RANLIB
12232 fi
12233 else
12234 RANLIB="$ac_cv_prog_RANLIB"
12235 fi
12236
12237
12238
12239 # Put a plausible default for CC_FOR_BUILD in Makefile.
12240 if test -z "$CC_FOR_BUILD"; then
12241 if test "x$cross_compiling" = "xno"; then
12242 CC_FOR_BUILD='$(CC)'
12243 else
12244 CC_FOR_BUILD=gcc
12245 fi
12246 fi
12247
12248 # Also set EXEEXT_FOR_BUILD.
12249 if test "x$cross_compiling" = "xno"; then
12250 EXEEXT_FOR_BUILD='$(EXEEXT)'
12251 else
12252 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for build system executable suffix" >&5
12253 $as_echo_n "checking for build system executable suffix... " >&6; }
12254 if test "${bfd_cv_build_exeext+set}" = set; then :
12255 $as_echo_n "(cached) " >&6
12256 else
12257 rm -f conftest*
12258 echo 'int main () { return 0; }' > conftest.c
12259 bfd_cv_build_exeext=
12260 ${CC_FOR_BUILD} -o conftest conftest.c 1>&5 2>&5
12261 for file in conftest.*; do
12262 case $file in
12263 *.c | *.o | *.obj | *.ilk | *.pdb) ;;
12264 *) bfd_cv_build_exeext=`echo $file | sed -e s/conftest//` ;;
12265 esac
12266 done
12267 rm -f conftest*
12268 test x"${bfd_cv_build_exeext}" = x && bfd_cv_build_exeext=no
12269 fi
12270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_build_exeext" >&5
12271 $as_echo "$bfd_cv_build_exeext" >&6; }
12272 EXEEXT_FOR_BUILD=""
12273 test x"${bfd_cv_build_exeext}" != xno && EXEEXT_FOR_BUILD=${bfd_cv_build_exeext}
12274 fi
12275
12276
12277 DEMANGLER_NAME=c++filt
12278 case "${host}" in
12279 *-*-go32* | *-*-msdos*)
12280 DEMANGLER_NAME=cxxfilt
12281 esac
12282
12283
12284 for ac_header in string.h strings.h stdlib.h unistd.h fcntl.h sys/file.h limits.h sys/param.h
12285 do :
12286 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
12287 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
12288 eval as_val=\$$as_ac_Header
12289 if test "x$as_val" = x""yes; then :
12290 cat >>confdefs.h <<_ACEOF
12291 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
12292 _ACEOF
12293
12294 fi
12295
12296 done
12297
12298 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
12299 $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
12300 if test "${ac_cv_header_sys_wait_h+set}" = set; then :
12301 $as_echo_n "(cached) " >&6
12302 else
12303 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12304 /* end confdefs.h. */
12305 #include <sys/types.h>
12306 #include <sys/wait.h>
12307 #ifndef WEXITSTATUS
12308 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
12309 #endif
12310 #ifndef WIFEXITED
12311 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
12312 #endif
12313
12314 int
12315 main ()
12316 {
12317 int s;
12318 wait (&s);
12319 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
12320 ;
12321 return 0;
12322 }
12323 _ACEOF
12324 if ac_fn_c_try_compile "$LINENO"; then :
12325 ac_cv_header_sys_wait_h=yes
12326 else
12327 ac_cv_header_sys_wait_h=no
12328 fi
12329 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12330 fi
12331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
12332 $as_echo "$ac_cv_header_sys_wait_h" >&6; }
12333 if test $ac_cv_header_sys_wait_h = yes; then
12334
12335 $as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
12336
12337 fi
12338
12339 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
12340 # for constant arguments. Useless!
12341 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
12342 $as_echo_n "checking for working alloca.h... " >&6; }
12343 if test "${ac_cv_working_alloca_h+set}" = set; then :
12344 $as_echo_n "(cached) " >&6
12345 else
12346 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12347 /* end confdefs.h. */
12348 #include <alloca.h>
12349 int
12350 main ()
12351 {
12352 char *p = (char *) alloca (2 * sizeof (int));
12353 if (p) return 0;
12354 ;
12355 return 0;
12356 }
12357 _ACEOF
12358 if ac_fn_c_try_link "$LINENO"; then :
12359 ac_cv_working_alloca_h=yes
12360 else
12361 ac_cv_working_alloca_h=no
12362 fi
12363 rm -f core conftest.err conftest.$ac_objext \
12364 conftest$ac_exeext conftest.$ac_ext
12365 fi
12366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
12367 $as_echo "$ac_cv_working_alloca_h" >&6; }
12368 if test $ac_cv_working_alloca_h = yes; then
12369
12370 $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
12371
12372 fi
12373
12374 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
12375 $as_echo_n "checking for alloca... " >&6; }
12376 if test "${ac_cv_func_alloca_works+set}" = set; then :
12377 $as_echo_n "(cached) " >&6
12378 else
12379 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12380 /* end confdefs.h. */
12381 #ifdef __GNUC__
12382 # define alloca __builtin_alloca
12383 #else
12384 # ifdef _MSC_VER
12385 # include <malloc.h>
12386 # define alloca _alloca
12387 # else
12388 # ifdef HAVE_ALLOCA_H
12389 # include <alloca.h>
12390 # else
12391 # ifdef _AIX
12392 #pragma alloca
12393 # else
12394 # ifndef alloca /* predefined by HP cc +Olibcalls */
12395 char *alloca ();
12396 # endif
12397 # endif
12398 # endif
12399 # endif
12400 #endif
12401
12402 int
12403 main ()
12404 {
12405 char *p = (char *) alloca (1);
12406 if (p) return 0;
12407 ;
12408 return 0;
12409 }
12410 _ACEOF
12411 if ac_fn_c_try_link "$LINENO"; then :
12412 ac_cv_func_alloca_works=yes
12413 else
12414 ac_cv_func_alloca_works=no
12415 fi
12416 rm -f core conftest.err conftest.$ac_objext \
12417 conftest$ac_exeext conftest.$ac_ext
12418 fi
12419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
12420 $as_echo "$ac_cv_func_alloca_works" >&6; }
12421
12422 if test $ac_cv_func_alloca_works = yes; then
12423
12424 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
12425
12426 else
12427 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
12428 # that cause trouble. Some versions do not even contain alloca or
12429 # contain a buggy version. If you still want to use their alloca,
12430 # use ar to extract alloca.o from them instead of compiling alloca.c.
12431
12432 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
12433
12434 $as_echo "#define C_ALLOCA 1" >>confdefs.h
12435
12436
12437 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
12438 $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
12439 if test "${ac_cv_os_cray+set}" = set; then :
12440 $as_echo_n "(cached) " >&6
12441 else
12442 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12443 /* end confdefs.h. */
12444 #if defined CRAY && ! defined CRAY2
12445 webecray
12446 #else
12447 wenotbecray
12448 #endif
12449
12450 _ACEOF
12451 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12452 $EGREP "webecray" >/dev/null 2>&1; then :
12453 ac_cv_os_cray=yes
12454 else
12455 ac_cv_os_cray=no
12456 fi
12457 rm -f conftest*
12458
12459 fi
12460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
12461 $as_echo "$ac_cv_os_cray" >&6; }
12462 if test $ac_cv_os_cray = yes; then
12463 for ac_func in _getb67 GETB67 getb67; do
12464 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
12465 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
12466 eval as_val=\$$as_ac_var
12467 if test "x$as_val" = x""yes; then :
12468
12469 cat >>confdefs.h <<_ACEOF
12470 #define CRAY_STACKSEG_END $ac_func
12471 _ACEOF
12472
12473 break
12474 fi
12475
12476 done
12477 fi
12478
12479 { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
12480 $as_echo_n "checking stack direction for C alloca... " >&6; }
12481 if test "${ac_cv_c_stack_direction+set}" = set; then :
12482 $as_echo_n "(cached) " >&6
12483 else
12484 if test "$cross_compiling" = yes; then :
12485 ac_cv_c_stack_direction=0
12486 else
12487 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12488 /* end confdefs.h. */
12489 $ac_includes_default
12490 int
12491 find_stack_direction ()
12492 {
12493 static char *addr = 0;
12494 auto char dummy;
12495 if (addr == 0)
12496 {
12497 addr = &dummy;
12498 return find_stack_direction ();
12499 }
12500 else
12501 return (&dummy > addr) ? 1 : -1;
12502 }
12503
12504 int
12505 main ()
12506 {
12507 return find_stack_direction () < 0;
12508 }
12509 _ACEOF
12510 if ac_fn_c_try_run "$LINENO"; then :
12511 ac_cv_c_stack_direction=1
12512 else
12513 ac_cv_c_stack_direction=-1
12514 fi
12515 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12516 conftest.$ac_objext conftest.beam conftest.$ac_ext
12517 fi
12518
12519 fi
12520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
12521 $as_echo "$ac_cv_c_stack_direction" >&6; }
12522 cat >>confdefs.h <<_ACEOF
12523 #define STACK_DIRECTION $ac_cv_c_stack_direction
12524 _ACEOF
12525
12526
12527 fi
12528
12529 for ac_func in sbrk utimes setmode getc_unlocked strcoll
12530 do :
12531 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
12532 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
12533 eval as_val=\$$as_ac_var
12534 if test "x$as_val" = x""yes; then :
12535 cat >>confdefs.h <<_ACEOF
12536 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
12537 _ACEOF
12538
12539 fi
12540 done
12541
12542 ac_fn_c_check_func "$LINENO" "mkstemp" "ac_cv_func_mkstemp"
12543 if test "x$ac_cv_func_mkstemp" = x""yes; then :
12544
12545 $as_echo "#define HAVE_MKSTEMP 1" >>confdefs.h
12546
12547 fi
12548
12549 ac_fn_c_check_func "$LINENO" "mkdtemp" "ac_cv_func_mkdtemp"
12550 if test "x$ac_cv_func_mkdtemp" = x""yes; then :
12551
12552 $as_echo "#define HAVE_MKDTEMP 1" >>confdefs.h
12553
12554 fi
12555
12556
12557 # Check whether fopen64 is available and whether _LARGEFILE64_SOURCE
12558 # needs to be defined for it
12559 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fopen64" >&5
12560 $as_echo_n "checking for fopen64... " >&6; }
12561 if test "${bu_cv_have_fopen64+set}" = set; then :
12562 $as_echo_n "(cached) " >&6
12563 else
12564 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12565 /* end confdefs.h. */
12566 #include <stdio.h>
12567 int
12568 main ()
12569 {
12570 FILE *f = fopen64 ("/tmp/foo","r");
12571 ;
12572 return 0;
12573 }
12574 _ACEOF
12575 if ac_fn_c_try_link "$LINENO"; then :
12576 bu_cv_have_fopen64=yes
12577 else
12578 saved_CPPFLAGS=$CPPFLAGS
12579 CPPFLAGS="$CPPFLAGS -D_LARGEFILE64_SOURCE"
12580 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12581 /* end confdefs.h. */
12582 #include <stdio.h>
12583 int
12584 main ()
12585 {
12586 FILE *f = fopen64 ("/tmp/foo","r");
12587 ;
12588 return 0;
12589 }
12590 _ACEOF
12591 if ac_fn_c_try_link "$LINENO"; then :
12592 bu_cv_have_fopen64="need -D_LARGEFILE64_SOURCE"
12593 else
12594 bu_cv_have_fopen64=no
12595 fi
12596 rm -f core conftest.err conftest.$ac_objext \
12597 conftest$ac_exeext conftest.$ac_ext
12598 CPPFLAGS=$saved_CPPFLAGS
12599 fi
12600 rm -f core conftest.err conftest.$ac_objext \
12601 conftest$ac_exeext conftest.$ac_ext
12602 fi
12603
12604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bu_cv_have_fopen64" >&5
12605 $as_echo "$bu_cv_have_fopen64" >&6; }
12606 if test "$bu_cv_have_fopen64" != no; then
12607
12608 $as_echo "#define HAVE_FOPEN64 1" >>confdefs.h
12609
12610 fi
12611 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stat64" >&5
12612 $as_echo_n "checking for stat64... " >&6; }
12613 if test "${bu_cv_have_stat64+set}" = set; then :
12614 $as_echo_n "(cached) " >&6
12615 else
12616 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12617 /* end confdefs.h. */
12618 #include <sys/stat.h>
12619 int
12620 main ()
12621 {
12622 struct stat64 st; stat64 ("/tmp/foo", &st);
12623 ;
12624 return 0;
12625 }
12626 _ACEOF
12627 if ac_fn_c_try_link "$LINENO"; then :
12628 bu_cv_have_stat64=yes
12629 else
12630 saved_CPPFLAGS=$CPPFLAGS
12631 CPPFLAGS="$CPPFLAGS -D_LARGEFILE64_SOURCE"
12632 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12633 /* end confdefs.h. */
12634 #include <sys/stat.h>
12635 int
12636 main ()
12637 {
12638 struct stat64 st; stat64 ("/tmp/foo", &st);
12639 ;
12640 return 0;
12641 }
12642 _ACEOF
12643 if ac_fn_c_try_link "$LINENO"; then :
12644 bu_cv_have_stat64="need -D_LARGEFILE64_SOURCE"
12645 else
12646 bu_cv_have_stat64=no
12647 fi
12648 rm -f core conftest.err conftest.$ac_objext \
12649 conftest$ac_exeext conftest.$ac_ext
12650 CPPFLAGS=$saved_CPPFLAGS
12651 fi
12652 rm -f core conftest.err conftest.$ac_objext \
12653 conftest$ac_exeext conftest.$ac_ext
12654 fi
12655
12656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bu_cv_have_stat64" >&5
12657 $as_echo "$bu_cv_have_stat64" >&6; }
12658 if test "$bu_cv_have_stat64" != no; then
12659
12660 $as_echo "#define HAVE_STAT64 1" >>confdefs.h
12661
12662 fi
12663 if test "$bu_cv_have_fopen64" = "need -D_LARGEFILE64_SOURCE" \
12664 || test "$bu_cv_have_stat64" = "need -D_LARGEFILE64_SOURCE"; then
12665
12666 $as_echo "#define _LARGEFILE64_SOURCE 1" >>confdefs.h
12667
12668 CPPFLAGS="$CPPFLAGS -D_LARGEFILE64_SOURCE"
12669 fi
12670
12671 # Some systems have frexp only in -lm, not in -lc.
12672 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing frexp" >&5
12673 $as_echo_n "checking for library containing frexp... " >&6; }
12674 if test "${ac_cv_search_frexp+set}" = set; then :
12675 $as_echo_n "(cached) " >&6
12676 else
12677 ac_func_search_save_LIBS=$LIBS
12678 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12679 /* end confdefs.h. */
12680
12681 /* Override any GCC internal prototype to avoid an error.
12682 Use char because int might match the return type of a GCC
12683 builtin and then its argument prototype would still apply. */
12684 #ifdef __cplusplus
12685 extern "C"
12686 #endif
12687 char frexp ();
12688 int
12689 main ()
12690 {
12691 return frexp ();
12692 ;
12693 return 0;
12694 }
12695 _ACEOF
12696 for ac_lib in '' m; do
12697 if test -z "$ac_lib"; then
12698 ac_res="none required"
12699 else
12700 ac_res=-l$ac_lib
12701 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12702 fi
12703 if ac_fn_c_try_link "$LINENO"; then :
12704 ac_cv_search_frexp=$ac_res
12705 fi
12706 rm -f core conftest.err conftest.$ac_objext \
12707 conftest$ac_exeext
12708 if test "${ac_cv_search_frexp+set}" = set; then :
12709 break
12710 fi
12711 done
12712 if test "${ac_cv_search_frexp+set}" = set; then :
12713
12714 else
12715 ac_cv_search_frexp=no
12716 fi
12717 rm conftest.$ac_ext
12718 LIBS=$ac_func_search_save_LIBS
12719 fi
12720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_frexp" >&5
12721 $as_echo "$ac_cv_search_frexp" >&6; }
12722 ac_res=$ac_cv_search_frexp
12723 if test "$ac_res" != no; then :
12724 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12725
12726 fi
12727
12728
12729 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for time_t in time.h" >&5
12730 $as_echo_n "checking for time_t in time.h... " >&6; }
12731 if test "${bu_cv_decl_time_t_time_h+set}" = set; then :
12732 $as_echo_n "(cached) " >&6
12733 else
12734 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12735 /* end confdefs.h. */
12736 #include <time.h>
12737 int
12738 main ()
12739 {
12740 time_t i;
12741 ;
12742 return 0;
12743 }
12744 _ACEOF
12745 if ac_fn_c_try_compile "$LINENO"; then :
12746 bu_cv_decl_time_t_time_h=yes
12747 else
12748 bu_cv_decl_time_t_time_h=no
12749 fi
12750 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12751 fi
12752
12753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bu_cv_decl_time_t_time_h" >&5
12754 $as_echo "$bu_cv_decl_time_t_time_h" >&6; }
12755 if test $bu_cv_decl_time_t_time_h = yes; then
12756
12757 $as_echo "#define HAVE_TIME_T_IN_TIME_H 1" >>confdefs.h
12758
12759 fi
12760
12761 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for time_t in sys/types.h" >&5
12762 $as_echo_n "checking for time_t in sys/types.h... " >&6; }
12763 if test "${bu_cv_decl_time_t_types_h+set}" = set; then :
12764 $as_echo_n "(cached) " >&6
12765 else
12766 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12767 /* end confdefs.h. */
12768 #include <sys/types.h>
12769 int
12770 main ()
12771 {
12772 time_t i;
12773 ;
12774 return 0;
12775 }
12776 _ACEOF
12777 if ac_fn_c_try_compile "$LINENO"; then :
12778 bu_cv_decl_time_t_types_h=yes
12779 else
12780 bu_cv_decl_time_t_types_h=no
12781 fi
12782 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12783 fi
12784
12785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bu_cv_decl_time_t_types_h" >&5
12786 $as_echo "$bu_cv_decl_time_t_types_h" >&6; }
12787 if test $bu_cv_decl_time_t_types_h = yes; then
12788
12789 $as_echo "#define HAVE_TIME_T_IN_TYPES_H 1" >>confdefs.h
12790
12791 fi
12792
12793 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a known getopt prototype in unistd.h" >&5
12794 $as_echo_n "checking for a known getopt prototype in unistd.h... " >&6; }
12795 if test "${bu_cv_decl_getopt_unistd_h+set}" = set; then :
12796 $as_echo_n "(cached) " >&6
12797 else
12798 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12799 /* end confdefs.h. */
12800 #include <unistd.h>
12801 int
12802 main ()
12803 {
12804 extern int getopt (int, char *const*, const char *);
12805 ;
12806 return 0;
12807 }
12808 _ACEOF
12809 if ac_fn_c_try_compile "$LINENO"; then :
12810 bu_cv_decl_getopt_unistd_h=yes
12811 else
12812 bu_cv_decl_getopt_unistd_h=no
12813 fi
12814 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12815 fi
12816
12817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bu_cv_decl_getopt_unistd_h" >&5
12818 $as_echo "$bu_cv_decl_getopt_unistd_h" >&6; }
12819 if test $bu_cv_decl_getopt_unistd_h = yes; then
12820
12821 $as_echo "#define HAVE_DECL_GETOPT 1" >>confdefs.h
12822
12823 fi
12824
12825 # Under Next 3.2 <utime.h> apparently does not define struct utimbuf
12826 # by default.
12827 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for utime.h" >&5
12828 $as_echo_n "checking for utime.h... " >&6; }
12829 if test "${bu_cv_header_utime_h+set}" = set; then :
12830 $as_echo_n "(cached) " >&6
12831 else
12832 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12833 /* end confdefs.h. */
12834 #include <sys/types.h>
12835 #ifdef HAVE_TIME_H
12836 #include <time.h>
12837 #endif
12838 #include <utime.h>
12839 int
12840 main ()
12841 {
12842 struct utimbuf s;
12843 ;
12844 return 0;
12845 }
12846 _ACEOF
12847 if ac_fn_c_try_compile "$LINENO"; then :
12848 bu_cv_header_utime_h=yes
12849 else
12850 bu_cv_header_utime_h=no
12851 fi
12852 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12853 fi
12854
12855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bu_cv_header_utime_h" >&5
12856 $as_echo "$bu_cv_header_utime_h" >&6; }
12857 if test $bu_cv_header_utime_h = yes; then
12858
12859 $as_echo "#define HAVE_GOOD_UTIME_H 1" >>confdefs.h
12860
12861 fi
12862
12863 ac_fn_c_check_decl "$LINENO" "fprintf" "ac_cv_have_decl_fprintf" "$ac_includes_default"
12864 if test "x$ac_cv_have_decl_fprintf" = x""yes; then :
12865 ac_have_decl=1
12866 else
12867 ac_have_decl=0
12868 fi
12869
12870 cat >>confdefs.h <<_ACEOF
12871 #define HAVE_DECL_FPRINTF $ac_have_decl
12872 _ACEOF
12873 ac_fn_c_check_decl "$LINENO" "stpcpy" "ac_cv_have_decl_stpcpy" "$ac_includes_default"
12874 if test "x$ac_cv_have_decl_stpcpy" = x""yes; then :
12875 ac_have_decl=1
12876 else
12877 ac_have_decl=0
12878 fi
12879
12880 cat >>confdefs.h <<_ACEOF
12881 #define HAVE_DECL_STPCPY $ac_have_decl
12882 _ACEOF
12883 ac_fn_c_check_decl "$LINENO" "strstr" "ac_cv_have_decl_strstr" "$ac_includes_default"
12884 if test "x$ac_cv_have_decl_strstr" = x""yes; then :
12885 ac_have_decl=1
12886 else
12887 ac_have_decl=0
12888 fi
12889
12890 cat >>confdefs.h <<_ACEOF
12891 #define HAVE_DECL_STRSTR $ac_have_decl
12892 _ACEOF
12893 ac_fn_c_check_decl "$LINENO" "sbrk" "ac_cv_have_decl_sbrk" "$ac_includes_default"
12894 if test "x$ac_cv_have_decl_sbrk" = x""yes; then :
12895 ac_have_decl=1
12896 else
12897 ac_have_decl=0
12898 fi
12899
12900 cat >>confdefs.h <<_ACEOF
12901 #define HAVE_DECL_SBRK $ac_have_decl
12902 _ACEOF
12903 ac_fn_c_check_decl "$LINENO" "getenv" "ac_cv_have_decl_getenv" "$ac_includes_default"
12904 if test "x$ac_cv_have_decl_getenv" = x""yes; then :
12905 ac_have_decl=1
12906 else
12907 ac_have_decl=0
12908 fi
12909
12910 cat >>confdefs.h <<_ACEOF
12911 #define HAVE_DECL_GETENV $ac_have_decl
12912 _ACEOF
12913 ac_fn_c_check_decl "$LINENO" "environ" "ac_cv_have_decl_environ" "$ac_includes_default"
12914 if test "x$ac_cv_have_decl_environ" = x""yes; then :
12915 ac_have_decl=1
12916 else
12917 ac_have_decl=0
12918 fi
12919
12920 cat >>confdefs.h <<_ACEOF
12921 #define HAVE_DECL_ENVIRON $ac_have_decl
12922 _ACEOF
12923 ac_fn_c_check_decl "$LINENO" "getc_unlocked" "ac_cv_have_decl_getc_unlocked" "$ac_includes_default"
12924 if test "x$ac_cv_have_decl_getc_unlocked" = x""yes; then :
12925 ac_have_decl=1
12926 else
12927 ac_have_decl=0
12928 fi
12929
12930 cat >>confdefs.h <<_ACEOF
12931 #define HAVE_DECL_GETC_UNLOCKED $ac_have_decl
12932 _ACEOF
12933 ac_fn_c_check_decl "$LINENO" "snprintf" "ac_cv_have_decl_snprintf" "$ac_includes_default"
12934 if test "x$ac_cv_have_decl_snprintf" = x""yes; then :
12935 ac_have_decl=1
12936 else
12937 ac_have_decl=0
12938 fi
12939
12940 cat >>confdefs.h <<_ACEOF
12941 #define HAVE_DECL_SNPRINTF $ac_have_decl
12942 _ACEOF
12943 ac_fn_c_check_decl "$LINENO" "vsnprintf" "ac_cv_have_decl_vsnprintf" "$ac_includes_default"
12944 if test "x$ac_cv_have_decl_vsnprintf" = x""yes; then :
12945 ac_have_decl=1
12946 else
12947 ac_have_decl=0
12948 fi
12949
12950 cat >>confdefs.h <<_ACEOF
12951 #define HAVE_DECL_VSNPRINTF $ac_have_decl
12952 _ACEOF
12953
12954
12955 # Link in zlib if we can. This allows us to read compressed debug
12956 # sections. This is used only by readelf.c (objdump uses bfd for
12957 # reading compressed sections).
12958 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing zlibVersion" >&5
12959 $as_echo_n "checking for library containing zlibVersion... " >&6; }
12960 if test "${ac_cv_search_zlibVersion+set}" = set; then :
12961 $as_echo_n "(cached) " >&6
12962 else
12963 ac_func_search_save_LIBS=$LIBS
12964 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12965 /* end confdefs.h. */
12966
12967 /* Override any GCC internal prototype to avoid an error.
12968 Use char because int might match the return type of a GCC
12969 builtin and then its argument prototype would still apply. */
12970 #ifdef __cplusplus
12971 extern "C"
12972 #endif
12973 char zlibVersion ();
12974 int
12975 main ()
12976 {
12977 return zlibVersion ();
12978 ;
12979 return 0;
12980 }
12981 _ACEOF
12982 for ac_lib in '' z; do
12983 if test -z "$ac_lib"; then
12984 ac_res="none required"
12985 else
12986 ac_res=-l$ac_lib
12987 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12988 fi
12989 if ac_fn_c_try_link "$LINENO"; then :
12990 ac_cv_search_zlibVersion=$ac_res
12991 fi
12992 rm -f core conftest.err conftest.$ac_objext \
12993 conftest$ac_exeext
12994 if test "${ac_cv_search_zlibVersion+set}" = set; then :
12995 break
12996 fi
12997 done
12998 if test "${ac_cv_search_zlibVersion+set}" = set; then :
12999
13000 else
13001 ac_cv_search_zlibVersion=no
13002 fi
13003 rm conftest.$ac_ext
13004 LIBS=$ac_func_search_save_LIBS
13005 fi
13006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_zlibVersion" >&5
13007 $as_echo "$ac_cv_search_zlibVersion" >&6; }
13008 ac_res=$ac_cv_search_zlibVersion
13009 if test "$ac_res" != no; then :
13010 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13011 for ac_header in zlib.h
13012 do :
13013 ac_fn_c_check_header_mongrel "$LINENO" "zlib.h" "ac_cv_header_zlib_h" "$ac_includes_default"
13014 if test "x$ac_cv_header_zlib_h" = x""yes; then :
13015 cat >>confdefs.h <<_ACEOF
13016 #define HAVE_ZLIB_H 1
13017 _ACEOF
13018
13019 fi
13020
13021 done
13022
13023 fi
13024
13025
13026
13027 case "${host}" in
13028 *-*-msdos* | *-*-go32* | *-*-mingw32* | *-*-cygwin* | *-*-windows*)
13029
13030 $as_echo "#define USE_BINARY_FOPEN 1" >>confdefs.h
13031 ;;
13032 esac
13033
13034 # target-specific stuff:
13035
13036 # Canonicalize the secondary target names.
13037 if test -n "$enable_targets"; then
13038 for targ in `echo $enable_targets | sed 's/,/ /g'`
13039 do
13040 result=`$ac_config_sub $targ 2>/dev/null`
13041 if test -n "$result"; then
13042 canon_targets="$canon_targets $result"
13043 else
13044 # Allow targets that config.sub doesn't recognize, like "all".
13045 canon_targets="$canon_targets $targ"
13046 fi
13047 done
13048 fi
13049
13050 ac_fn_c_check_header_mongrel "$LINENO" "iconv.h" "ac_cv_header_iconv_h" "$ac_includes_default"
13051 if test "x$ac_cv_header_iconv_h" = x""yes; then :
13052
13053 fi
13054
13055
13056
13057 if test "X$prefix" = "XNONE"; then
13058 acl_final_prefix="$ac_default_prefix"
13059 else
13060 acl_final_prefix="$prefix"
13061 fi
13062 if test "X$exec_prefix" = "XNONE"; then
13063 acl_final_exec_prefix='${prefix}'
13064 else
13065 acl_final_exec_prefix="$exec_prefix"
13066 fi
13067 acl_save_prefix="$prefix"
13068 prefix="$acl_final_prefix"
13069 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
13070 prefix="$acl_save_prefix"
13071
13072
13073 # Check whether --with-gnu-ld was given.
13074 if test "${with_gnu_ld+set}" = set; then :
13075 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
13076 else
13077 with_gnu_ld=no
13078 fi
13079
13080 # Prepare PATH_SEPARATOR.
13081 # The user is always right.
13082 if test "${PATH_SEPARATOR+set}" != set; then
13083 echo "#! /bin/sh" >conf$$.sh
13084 echo "exit 0" >>conf$$.sh
13085 chmod +x conf$$.sh
13086 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
13087 PATH_SEPARATOR=';'
13088 else
13089 PATH_SEPARATOR=:
13090 fi
13091 rm -f conf$$.sh
13092 fi
13093 ac_prog=ld
13094 if test "$GCC" = yes; then
13095 # Check if gcc -print-prog-name=ld gives a path.
13096 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5
13097 $as_echo_n "checking for ld used by GCC... " >&6; }
13098 case $host in
13099 *-*-mingw*)
13100 # gcc leaves a trailing carriage return which upsets mingw
13101 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
13102 *)
13103 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
13104 esac
13105 case $ac_prog in
13106 # Accept absolute paths.
13107 [\\/]* | [A-Za-z]:[\\/]*)
13108 re_direlt='/[^/][^/]*/\.\./'
13109 # Canonicalize the path of ld
13110 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
13111 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
13112 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
13113 done
13114 test -z "$LD" && LD="$ac_prog"
13115 ;;
13116 "")
13117 # If it fails, then pretend we aren't using GCC.
13118 ac_prog=ld
13119 ;;
13120 *)
13121 # If it is relative, then search for the first ld in PATH.
13122 with_gnu_ld=unknown
13123 ;;
13124 esac
13125 elif test "$with_gnu_ld" = yes; then
13126 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
13127 $as_echo_n "checking for GNU ld... " >&6; }
13128 else
13129 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
13130 $as_echo_n "checking for non-GNU ld... " >&6; }
13131 fi
13132 if test "${acl_cv_path_LD+set}" = set; then :
13133 $as_echo_n "(cached) " >&6
13134 else
13135 if test -z "$LD"; then
13136 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
13137 for ac_dir in $PATH; do
13138 test -z "$ac_dir" && ac_dir=.
13139 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
13140 acl_cv_path_LD="$ac_dir/$ac_prog"
13141 # Check to see if the program is GNU ld. I'd rather use --version,
13142 # but apparently some GNU ld's only accept -v.
13143 # Break only if it was the GNU/non-GNU ld that we prefer.
13144 if "$acl_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
13145 test "$with_gnu_ld" != no && break
13146 else
13147 test "$with_gnu_ld" != yes && break
13148 fi
13149 fi
13150 done
13151 IFS="$ac_save_ifs"
13152 else
13153 acl_cv_path_LD="$LD" # Let the user override the test with a path.
13154 fi
13155 fi
13156
13157 LD="$acl_cv_path_LD"
13158 if test -n "$LD"; then
13159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
13160 $as_echo "$LD" >&6; }
13161 else
13162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13163 $as_echo "no" >&6; }
13164 fi
13165 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
13166 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
13167 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
13168 if test "${acl_cv_prog_gnu_ld+set}" = set; then :
13169 $as_echo_n "(cached) " >&6
13170 else
13171 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
13172 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
13173 acl_cv_prog_gnu_ld=yes
13174 else
13175 acl_cv_prog_gnu_ld=no
13176 fi
13177 fi
13178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
13179 $as_echo "$acl_cv_prog_gnu_ld" >&6; }
13180 with_gnu_ld=$acl_cv_prog_gnu_ld
13181
13182
13183
13184 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
13185 $as_echo_n "checking for shared library run path origin... " >&6; }
13186 if test "${acl_cv_rpath+set}" = set; then :
13187 $as_echo_n "(cached) " >&6
13188 else
13189
13190 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
13191 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
13192 . ./conftest.sh
13193 rm -f ./conftest.sh
13194 acl_cv_rpath=done
13195
13196 fi
13197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
13198 $as_echo "$acl_cv_rpath" >&6; }
13199 wl="$acl_cv_wl"
13200 libext="$acl_cv_libext"
13201 shlibext="$acl_cv_shlibext"
13202 hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
13203 hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
13204 hardcode_direct="$acl_cv_hardcode_direct"
13205 hardcode_minus_L="$acl_cv_hardcode_minus_L"
13206 # Check whether --enable-rpath was given.
13207 if test "${enable_rpath+set}" = set; then :
13208 enableval=$enable_rpath; :
13209 else
13210 enable_rpath=yes
13211 fi
13212
13213
13214
13215
13216
13217
13218
13219
13220 use_additional=yes
13221
13222 acl_save_prefix="$prefix"
13223 prefix="$acl_final_prefix"
13224 acl_save_exec_prefix="$exec_prefix"
13225 exec_prefix="$acl_final_exec_prefix"
13226
13227 eval additional_includedir=\"$includedir\"
13228 eval additional_libdir=\"$libdir\"
13229
13230 exec_prefix="$acl_save_exec_prefix"
13231 prefix="$acl_save_prefix"
13232
13233
13234 # Check whether --with-libiconv-prefix was given.
13235 if test "${with_libiconv_prefix+set}" = set; then :
13236 withval=$with_libiconv_prefix;
13237 if test "X$withval" = "Xno"; then
13238 use_additional=no
13239 else
13240 if test "X$withval" = "X"; then
13241
13242 acl_save_prefix="$prefix"
13243 prefix="$acl_final_prefix"
13244 acl_save_exec_prefix="$exec_prefix"
13245 exec_prefix="$acl_final_exec_prefix"
13246
13247 eval additional_includedir=\"$includedir\"
13248 eval additional_libdir=\"$libdir\"
13249
13250 exec_prefix="$acl_save_exec_prefix"
13251 prefix="$acl_save_prefix"
13252
13253 else
13254 additional_includedir="$withval/include"
13255 additional_libdir="$withval/lib"
13256 fi
13257 fi
13258
13259 fi
13260
13261 LIBICONV=
13262 LTLIBICONV=
13263 INCICONV=
13264 rpathdirs=
13265 ltrpathdirs=
13266 names_already_handled=
13267 names_next_round='iconv '
13268 while test -n "$names_next_round"; do
13269 names_this_round="$names_next_round"
13270 names_next_round=
13271 for name in $names_this_round; do
13272 already_handled=
13273 for n in $names_already_handled; do
13274 if test "$n" = "$name"; then
13275 already_handled=yes
13276 break
13277 fi
13278 done
13279 if test -z "$already_handled"; then
13280 names_already_handled="$names_already_handled $name"
13281 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
13282 eval value=\"\$HAVE_LIB$uppername\"
13283 if test -n "$value"; then
13284 if test "$value" = yes; then
13285 eval value=\"\$LIB$uppername\"
13286 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
13287 eval value=\"\$LTLIB$uppername\"
13288 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
13289 else
13290 :
13291 fi
13292 else
13293 found_dir=
13294 found_la=
13295 found_so=
13296 found_a=
13297 if test $use_additional = yes; then
13298 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
13299 found_dir="$additional_libdir"
13300 found_so="$additional_libdir/lib$name.$shlibext"
13301 if test -f "$additional_libdir/lib$name.la"; then
13302 found_la="$additional_libdir/lib$name.la"
13303 fi
13304 else
13305 if test -f "$additional_libdir/lib$name.$libext"; then
13306 found_dir="$additional_libdir"
13307 found_a="$additional_libdir/lib$name.$libext"
13308 if test -f "$additional_libdir/lib$name.la"; then
13309 found_la="$additional_libdir/lib$name.la"
13310 fi
13311 fi
13312 fi
13313 fi
13314 if test "X$found_dir" = "X"; then
13315 for x in $LDFLAGS $LTLIBICONV; do
13316
13317 acl_save_prefix="$prefix"
13318 prefix="$acl_final_prefix"
13319 acl_save_exec_prefix="$exec_prefix"
13320 exec_prefix="$acl_final_exec_prefix"
13321 eval x=\"$x\"
13322 exec_prefix="$acl_save_exec_prefix"
13323 prefix="$acl_save_prefix"
13324
13325 case "$x" in
13326 -L*)
13327 dir=`echo "X$x" | sed -e 's/^X-L//'`
13328 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
13329 found_dir="$dir"
13330 found_so="$dir/lib$name.$shlibext"
13331 if test -f "$dir/lib$name.la"; then
13332 found_la="$dir/lib$name.la"
13333 fi
13334 else
13335 if test -f "$dir/lib$name.$libext"; then
13336 found_dir="$dir"
13337 found_a="$dir/lib$name.$libext"
13338 if test -f "$dir/lib$name.la"; then
13339 found_la="$dir/lib$name.la"
13340 fi
13341 fi
13342 fi
13343 ;;
13344 esac
13345 if test "X$found_dir" != "X"; then
13346 break
13347 fi
13348 done
13349 fi
13350 if test "X$found_dir" != "X"; then
13351 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
13352 if test "X$found_so" != "X"; then
13353 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
13354 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
13355 else
13356 haveit=
13357 for x in $ltrpathdirs; do
13358 if test "X$x" = "X$found_dir"; then
13359 haveit=yes
13360 break
13361 fi
13362 done
13363 if test -z "$haveit"; then
13364 ltrpathdirs="$ltrpathdirs $found_dir"
13365 fi
13366 if test "$hardcode_direct" = yes; then
13367 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
13368 else
13369 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
13370 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
13371 haveit=
13372 for x in $rpathdirs; do
13373 if test "X$x" = "X$found_dir"; then
13374 haveit=yes
13375 break
13376 fi
13377 done
13378 if test -z "$haveit"; then
13379 rpathdirs="$rpathdirs $found_dir"
13380 fi
13381 else
13382 haveit=
13383 for x in $LDFLAGS $LIBICONV; do
13384
13385 acl_save_prefix="$prefix"
13386 prefix="$acl_final_prefix"
13387 acl_save_exec_prefix="$exec_prefix"
13388 exec_prefix="$acl_final_exec_prefix"
13389 eval x=\"$x\"
13390 exec_prefix="$acl_save_exec_prefix"
13391 prefix="$acl_save_prefix"
13392
13393 if test "X$x" = "X-L$found_dir"; then
13394 haveit=yes
13395 break
13396 fi
13397 done
13398 if test -z "$haveit"; then
13399 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
13400 fi
13401 if test "$hardcode_minus_L" != no; then
13402 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
13403 else
13404 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
13405 fi
13406 fi
13407 fi
13408 fi
13409 else
13410 if test "X$found_a" != "X"; then
13411 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
13412 else
13413 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
13414 fi
13415 fi
13416 additional_includedir=
13417 case "$found_dir" in
13418 */lib | */lib/)
13419 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
13420 additional_includedir="$basedir/include"
13421 ;;
13422 esac
13423 if test "X$additional_includedir" != "X"; then
13424 if test "X$additional_includedir" != "X/usr/include"; then
13425 haveit=
13426 if test "X$additional_includedir" = "X/usr/local/include"; then
13427 if test -n "$GCC"; then
13428 case $host_os in
13429 linux*) haveit=yes;;
13430 esac
13431 fi
13432 fi
13433 if test -z "$haveit"; then
13434 for x in $CPPFLAGS $INCICONV; do
13435
13436 acl_save_prefix="$prefix"
13437 prefix="$acl_final_prefix"
13438 acl_save_exec_prefix="$exec_prefix"
13439 exec_prefix="$acl_final_exec_prefix"
13440 eval x=\"$x\"
13441 exec_prefix="$acl_save_exec_prefix"
13442 prefix="$acl_save_prefix"
13443
13444 if test "X$x" = "X-I$additional_includedir"; then
13445 haveit=yes
13446 break
13447 fi
13448 done
13449 if test -z "$haveit"; then
13450 if test -d "$additional_includedir"; then
13451 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
13452 fi
13453 fi
13454 fi
13455 fi
13456 fi
13457 if test -n "$found_la"; then
13458 save_libdir="$libdir"
13459 case "$found_la" in
13460 */* | *\\*) . "$found_la" ;;
13461 *) . "./$found_la" ;;
13462 esac
13463 libdir="$save_libdir"
13464 for dep in $dependency_libs; do
13465 case "$dep" in
13466 -L*)
13467 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
13468 if test "X$additional_libdir" != "X/usr/lib"; then
13469 haveit=
13470 if test "X$additional_libdir" = "X/usr/local/lib"; then
13471 if test -n "$GCC"; then
13472 case $host_os in
13473 linux*) haveit=yes;;
13474 esac
13475 fi
13476 fi
13477 if test -z "$haveit"; then
13478 haveit=
13479 for x in $LDFLAGS $LIBICONV; do
13480
13481 acl_save_prefix="$prefix"
13482 prefix="$acl_final_prefix"
13483 acl_save_exec_prefix="$exec_prefix"
13484 exec_prefix="$acl_final_exec_prefix"
13485 eval x=\"$x\"
13486 exec_prefix="$acl_save_exec_prefix"
13487 prefix="$acl_save_prefix"
13488
13489 if test "X$x" = "X-L$additional_libdir"; then
13490 haveit=yes
13491 break
13492 fi
13493 done
13494 if test -z "$haveit"; then
13495 if test -d "$additional_libdir"; then
13496 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
13497 fi
13498 fi
13499 haveit=
13500 for x in $LDFLAGS $LTLIBICONV; do
13501
13502 acl_save_prefix="$prefix"
13503 prefix="$acl_final_prefix"
13504 acl_save_exec_prefix="$exec_prefix"
13505 exec_prefix="$acl_final_exec_prefix"
13506 eval x=\"$x\"
13507 exec_prefix="$acl_save_exec_prefix"
13508 prefix="$acl_save_prefix"
13509
13510 if test "X$x" = "X-L$additional_libdir"; then
13511 haveit=yes
13512 break
13513 fi
13514 done
13515 if test -z "$haveit"; then
13516 if test -d "$additional_libdir"; then
13517 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
13518 fi
13519 fi
13520 fi
13521 fi
13522 ;;
13523 -R*)
13524 dir=`echo "X$dep" | sed -e 's/^X-R//'`
13525 if test "$enable_rpath" != no; then
13526 haveit=
13527 for x in $rpathdirs; do
13528 if test "X$x" = "X$dir"; then
13529 haveit=yes
13530 break
13531 fi
13532 done
13533 if test -z "$haveit"; then
13534 rpathdirs="$rpathdirs $dir"
13535 fi
13536 haveit=
13537 for x in $ltrpathdirs; do
13538 if test "X$x" = "X$dir"; then
13539 haveit=yes
13540 break
13541 fi
13542 done
13543 if test -z "$haveit"; then
13544 ltrpathdirs="$ltrpathdirs $dir"
13545 fi
13546 fi
13547 ;;
13548 -l*)
13549 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
13550 ;;
13551 *.la)
13552 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
13553 ;;
13554 *)
13555 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
13556 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
13557 ;;
13558 esac
13559 done
13560 fi
13561 else
13562 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
13563 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
13564 fi
13565 fi
13566 fi
13567 done
13568 done
13569 if test "X$rpathdirs" != "X"; then
13570 if test -n "$hardcode_libdir_separator"; then
13571 alldirs=
13572 for found_dir in $rpathdirs; do
13573 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
13574 done
13575 acl_save_libdir="$libdir"
13576 libdir="$alldirs"
13577 eval flag=\"$hardcode_libdir_flag_spec\"
13578 libdir="$acl_save_libdir"
13579 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
13580 else
13581 for found_dir in $rpathdirs; do
13582 acl_save_libdir="$libdir"
13583 libdir="$found_dir"
13584 eval flag=\"$hardcode_libdir_flag_spec\"
13585 libdir="$acl_save_libdir"
13586 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
13587 done
13588 fi
13589 fi
13590 if test "X$ltrpathdirs" != "X"; then
13591 for found_dir in $ltrpathdirs; do
13592 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
13593 done
13594 fi
13595
13596
13597
13598
13599
13600
13601
13602 am_save_CPPFLAGS="$CPPFLAGS"
13603
13604 for element in $INCICONV; do
13605 haveit=
13606 for x in $CPPFLAGS; do
13607
13608 acl_save_prefix="$prefix"
13609 prefix="$acl_final_prefix"
13610 acl_save_exec_prefix="$exec_prefix"
13611 exec_prefix="$acl_final_exec_prefix"
13612 eval x=\"$x\"
13613 exec_prefix="$acl_save_exec_prefix"
13614 prefix="$acl_save_prefix"
13615
13616 if test "X$x" = "X$element"; then
13617 haveit=yes
13618 break
13619 fi
13620 done
13621 if test -z "$haveit"; then
13622 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
13623 fi
13624 done
13625
13626
13627 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
13628 $as_echo_n "checking for iconv... " >&6; }
13629 if test "${am_cv_func_iconv+set}" = set; then :
13630 $as_echo_n "(cached) " >&6
13631 else
13632
13633 am_cv_func_iconv="no, consider installing GNU libiconv"
13634 am_cv_lib_iconv=no
13635 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13636 /* end confdefs.h. */
13637 #include <stdlib.h>
13638 #include <iconv.h>
13639 int
13640 main ()
13641 {
13642 iconv_t cd = iconv_open("","");
13643 iconv(cd,NULL,NULL,NULL,NULL);
13644 iconv_close(cd);
13645 ;
13646 return 0;
13647 }
13648 _ACEOF
13649 if ac_fn_c_try_link "$LINENO"; then :
13650 am_cv_func_iconv=yes
13651 fi
13652 rm -f core conftest.err conftest.$ac_objext \
13653 conftest$ac_exeext conftest.$ac_ext
13654 if test "$am_cv_func_iconv" != yes; then
13655 am_save_LIBS="$LIBS"
13656 LIBS="$LIBS $LIBICONV"
13657 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13658 /* end confdefs.h. */
13659 #include <stdlib.h>
13660 #include <iconv.h>
13661 int
13662 main ()
13663 {
13664 iconv_t cd = iconv_open("","");
13665 iconv(cd,NULL,NULL,NULL,NULL);
13666 iconv_close(cd);
13667 ;
13668 return 0;
13669 }
13670 _ACEOF
13671 if ac_fn_c_try_link "$LINENO"; then :
13672 am_cv_lib_iconv=yes
13673 am_cv_func_iconv=yes
13674 fi
13675 rm -f core conftest.err conftest.$ac_objext \
13676 conftest$ac_exeext conftest.$ac_ext
13677 LIBS="$am_save_LIBS"
13678 fi
13679
13680 fi
13681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
13682 $as_echo "$am_cv_func_iconv" >&6; }
13683 if test "$am_cv_func_iconv" = yes; then
13684
13685 $as_echo "#define HAVE_ICONV 1" >>confdefs.h
13686
13687 fi
13688 if test "$am_cv_lib_iconv" = yes; then
13689 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
13690 $as_echo_n "checking how to link with libiconv... " >&6; }
13691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
13692 $as_echo "$LIBICONV" >&6; }
13693 else
13694 CPPFLAGS="$am_save_CPPFLAGS"
13695 LIBICONV=
13696 LTLIBICONV=
13697 fi
13698
13699
13700
13701 if test "$am_cv_func_iconv" = yes; then
13702 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv declaration" >&5
13703 $as_echo_n "checking for iconv declaration... " >&6; }
13704 if test "${am_cv_proto_iconv+set}" = set; then :
13705 $as_echo_n "(cached) " >&6
13706 else
13707
13708 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13709 /* end confdefs.h. */
13710
13711 #include <stdlib.h>
13712 #include <iconv.h>
13713 extern
13714 #ifdef __cplusplus
13715 "C"
13716 #endif
13717 #if defined(__STDC__) || defined(__cplusplus)
13718 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
13719 #else
13720 size_t iconv();
13721 #endif
13722
13723 int
13724 main ()
13725 {
13726
13727 ;
13728 return 0;
13729 }
13730 _ACEOF
13731 if ac_fn_c_try_compile "$LINENO"; then :
13732 am_cv_proto_iconv_arg1=""
13733 else
13734 am_cv_proto_iconv_arg1="const"
13735 fi
13736 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13737 am_cv_proto_iconv="extern size_t iconv (iconv_t cd, $am_cv_proto_iconv_arg1 char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);"
13738 fi
13739
13740 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
13741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ac_t:-
13742 }$am_cv_proto_iconv" >&5
13743 $as_echo "${ac_t:-
13744 }$am_cv_proto_iconv" >&6; }
13745
13746 cat >>confdefs.h <<_ACEOF
13747 #define ICONV_CONST $am_cv_proto_iconv_arg1
13748 _ACEOF
13749
13750 fi
13751
13752
13753 all_targets=false
13754 BUILD_NLMCONV=
13755 NLMCONV_DEFS=
13756 BUILD_SRCONV=
13757 BUILD_DLLTOOL=
13758 DLLTOOL_DEFS=
13759 DLLTOOL_DEFAULT=
13760 BUILD_WINDRES=
13761 BUILD_WINDMC=
13762 BUILD_DLLWRAP=
13763 BUILD_MISC=
13764 BUILD_INSTALL_MISC=
13765 OBJDUMP_DEFS=
13766
13767 for targ in $target $canon_targets
13768 do
13769 if test "x$targ" = "xall"; then
13770 all_targets=true
13771 BUILD_NLMCONV='$(NLMCONV_PROG)$(EXEEXT)'
13772 BUILD_SRCONV='$(SRCONV_PROG)'
13773 NLMCONV_DEFS="-DNLMCONV_I386 -DNLMCONV_ALPHA -DNLMCONV_POWERPC -DNLMCONV_SPARC"
13774 BUILD_MISC="${BUILD_MISC} "'bin2c$(EXEEXT_FOR_BUILD)'
13775 BUILD_WINDRES='$(WINDRES_PROG)$(EXEEXT)'
13776 BUILD_WINDMC='$(WINDMC_PROG)$(EXEEXT)'
13777 BUILD_DLLTOOL='$(DLLTOOL_PROG)$(EXEEXT)'
13778 if test -z "$DLLTOOL_DEFAULT"; then
13779 DLLTOOL_DEFAULT="-DDLLTOOL_DEFAULT_I386"
13780 fi
13781 DLLTOOL_DEFS="$DLLTOOL_DEFS -DDLLTOOL_I386"
13782 BUILD_DLLWRAP='$(DLLWRAP_PROG)$(EXEEXT)'
13783 else
13784 case $targ in
13785 i[3-7]86*-*-netware*)
13786 BUILD_NLMCONV='$(NLMCONV_PROG)$(EXEEXT)'
13787 NLMCONV_DEFS="$NLMCONV_DEFS -DNLMCONV_I386"
13788 ;;
13789 alpha*-*-netware*)
13790 BUILD_NLMCONV='$(NLMCONV_PROG)$(EXEEXT)'
13791 NLMCONV_DEFS="$NLMCONV_DEFS -DNLMCONV_ALPHA"
13792 ;;
13793 powerpc*-*-netware*)
13794 BUILD_NLMCONV='$(NLMCONV_PROG)$(EXEEXT)'
13795 NLMCONV_DEFS="$NLMCONV_DEFS -DNLMCONV_POWERPC"
13796 ;;
13797 sparc*-*-netware*)
13798 BUILD_NLMCONV='$(NLMCONV_PROG)$(EXEEXT)'
13799 NLMCONV_DEFS="$NLMCONV_DEFS -DNLMCONV_SPARC"
13800 ;;
13801 esac
13802 case $targ in
13803 *-*-hms*) BUILD_SRCONV='$(SRCONV_PROG)' ;;
13804 esac
13805 case $targ in
13806 arm-epoc-pe*)
13807 BUILD_DLLTOOL='$(DLLTOOL_PROG)$(EXEEXT)'
13808 if test -z "$DLLTOOL_DEFAULT"; then
13809 DLLTOOL_DEFAULT="-DDLLTOOL_DEFAULT_ARM_EPOC"
13810 fi
13811 DLLTOOL_DEFS="$DLLTOOL_DEFS -DDLLTOOL_ARM_EPOC -DDLLTOOL_ARM"
13812 BUILD_WINDRES='$(WINDRES_PROG)$(EXEEXT)'
13813 BUILD_WINDMC='$(WINDMC_PROG)$(EXEEXT)'
13814 ;;
13815 arm-wince-pe* | arm-*-wince | arm*-*-cegcc* | arm*-*-mingw32ce*)
13816 BUILD_DLLTOOL='$(DLLTOOL_PROG)$(EXEEXT)'
13817 if test -z "$DLLTOOL_DEFAULT"; then
13818 DLLTOOL_DEFAULT="-DDLLTOOL_DEFAULT_ARM_WINCE"
13819 fi
13820 DLLTOOL_DEFS="$DLLTOOL_DEFS -DDLLTOOL_ARM_WINCE -DDLLTOOL_ARM"
13821 BUILD_WINDRES='$(WINDRES_PROG)$(EXEEXT)'
13822 BUILD_WINDMC='$(WINDMC_PROG)$(EXEEXT)'
13823 ;;
13824 arm-*-pe*)
13825 BUILD_DLLTOOL='$(DLLTOOL_PROG)$(EXEEXT)'
13826 if test -z "$DLLTOOL_DEFAULT"; then
13827 DLLTOOL_DEFAULT="-DDLLTOOL_DEFAULT_ARM"
13828 fi
13829 DLLTOOL_DEFS="$DLLTOOL_DEFS -DDLLTOOL_ARM"
13830 BUILD_WINDRES='$(WINDRES_PROG)$(EXEEXT)'
13831 BUILD_WINDMC='$(WINDMC_PROG)$(EXEEXT)'
13832 ;;
13833 thumb-*-pe*)
13834 BUILD_DLLTOOL='$(DLLTOOL_PROG)$(EXEEXT)'
13835 if test -z "$DLLTOOL_DEFAULT"; then
13836 DLLTOOL_DEFAULT="-DDLLTOOL_DEFAULT_ARM"
13837 fi
13838 DLLTOOL_DEFS="$DLLTOOL_DEFS -DDLLTOOL_ARM"
13839 BUILD_WINDRES='$(WINDRES_PROG)$(EXEEXT)'
13840 BUILD_WINDMC='$(WINDMC_PROG)$(EXEEXT)'
13841 ;;
13842 x86_64-*-mingw*)
13843 BUILD_DLLTOOL='$(DLLTOOL_PROG)$(EXEEXT)'
13844 if test -z "$DLLTOOL_DEFAULT"; then
13845 DLLTOOL_DEFAULT="-DDLLTOOL_DEFAULT_MX86_64"
13846 fi
13847 DLLTOOL_DEFS="$DLLTOOL_DEFS -DDLLTOOL_MX86_64"
13848 BUILD_WINDRES='$(WINDRES_PROG)$(EXEEXT)'
13849 BUILD_WINDMC='$(WINDMC_PROG)$(EXEEXT)'
13850 BUILD_DLLWRAP='$(DLLWRAP_PROG)$(EXEEXT)'
13851 ;;
13852 i[3-7]86-*-pe* | i[3-7]86-*-cygwin* | i[3-7]86-*-mingw32** | i[3-7]86-*-netbsdpe*)
13853 BUILD_DLLTOOL='$(DLLTOOL_PROG)$(EXEEXT)'
13854 if test -z "$DLLTOOL_DEFAULT"; then
13855 DLLTOOL_DEFAULT="-DDLLTOOL_DEFAULT_I386"
13856 fi
13857 DLLTOOL_DEFS="$DLLTOOL_DEFS -DDLLTOOL_I386"
13858 BUILD_WINDRES='$(WINDRES_PROG)$(EXEEXT)'
13859 BUILD_WINDMC='$(WINDMC_PROG)$(EXEEXT)'
13860 BUILD_DLLWRAP='$(DLLWRAP_PROG)$(EXEEXT)'
13861 ;;
13862 i[3-7]86-*-interix)
13863 BUILD_DLLTOOL='$(DLLTOOL_PROG)'
13864 if test -z "$DLLTOOL_DEFAULT"; then
13865 DLLTOOL_DEFAULT="-DDLLTOOL_DEFAULT_I386"
13866 fi
13867 DLLTOOL_DEFS="$DLLTOOL_DEFS -DDLLTOOL_I386"
13868 ;;
13869 powerpc*-aix5.[01])
13870 ;;
13871 powerpc*-aix[5-9].*)
13872 OBJDUMP_DEFS="-DAIX_WEAK_SUPPORT"
13873 ;;
13874 powerpc*-*-pe* | powerpc*-*-cygwin*)
13875 BUILD_DLLTOOL='$(DLLTOOL_PROG)$(EXEEXT)'
13876 if test -z "$DLLTOOL_DEFAULT"; then
13877 DLLTOOL_DEFAULT="-DDLLTOOL_DEFAULT_PPC"
13878 fi
13879 DLLTOOL_DEFS="$DLLTOOL_DEFS -DDLLTOOL_PPC"
13880 BUILD_WINDRES='$(WINDRES_PROG)$(EXEEXT)'
13881 BUILD_WINDMC='$(WINDMC_PROG)$(EXEEXT)'
13882 ;;
13883 powerpc*-*-linux* | powerpc*-*-elf* | powerpc*-*-eabi*)
13884 BUILD_INSTALL_MISC="${BUILD_INSTALL_MISC} embedspu"
13885 ;;
13886 sh*-*-pe)
13887 BUILD_DLLTOOL='$(DLLTOOL_PROG)$(EXEEXT)'
13888 if test -z "$DLLTOOL_DEFAULT"; then
13889 DLLTOOL_DEFAULT="-DDLLTOOL_DEFAULT_SH"
13890 fi
13891 DLLTOOL_DEFS="$DLLTOOL_DEFS -DDLLTOOL_SH"
13892 BUILD_WINDRES='$(WINDRES_PROG)$(EXEEXT)'
13893 BUILD_WINDMC='$(WINDMC_PROG)$(EXEEXT)'
13894 ;;
13895 spu-*-*)
13896 BUILD_MISC="${BUILD_MISC} "'bin2c$(EXEEXT_FOR_BUILD)'
13897 ;;
13898 mips*-*-pe)
13899 BUILD_DLLTOOL='$(DLLTOOL_PROG)$(EXEEXT)'
13900 if test -z "$DLLTOOL_DEFAULT"; then
13901 DLLTOOL_DEFAULT="-DDLLTOOL_DEFAULT_MIPS"
13902 fi
13903 DLLTOOL_DEFS="$DLLTOOL_DEFS -DDLLTOOL_MIPS"
13904 BUILD_WINDRES='$(WINDRES_PROG)$(EXEEXT)'
13905 BUILD_WINDMC='$(WINDMC_PROG)$(EXEEXT)'
13906 ;;
13907 mcore-*-pe)
13908 BUILD_DLLTOOL='$(DLLTOOL_PROG)$(EXEEXT)'
13909 if test -z "$DLLTOOL_DEFAULT"; then
13910 DLLTOOL_DEFAULT="-DDLLTOOL_DEFAULT_MCORE"
13911 fi
13912 DLLTOOL_DEFS="$DLLTOOL_DEFS -DDLLTOOL_MCORE"
13913 BUILD_WINDRES='$(WINDRES_PROG)$(EXEEXT)'
13914 BUILD_WINDMC='$(WINDMC_PROG)$(EXEEXT)'
13915 ;;
13916 mcore-*-elf)
13917 BUILD_DLLTOOL='$(DLLTOOL_PROG)$(EXEEXT)'
13918 if test -z "$DLLTOOL_DEFAULT"; then
13919 DLLTOOL_DEFAULT="-DDLLTOOL_DEFAULT_MCORE_ELF"
13920 fi
13921 DLLTOOL_DEFS="$DLLTOOL_DEFS -DDLLTOOL_MCORE_ELF"
13922 ;;
13923 mep-*)
13924 OBJDUMP_DEFS="-DSKIP_ZEROES=256 -DSKIP_ZEROES_AT_END=0"
13925 ;;
13926 esac
13927 fi
13928 done
13929
13930 DLLTOOL_DEFS="$DLLTOOL_DEFS $DLLTOOL_DEFAULT"
13931
13932 if test "${with_windres+set}" = set; then
13933 BUILD_WINDRES='$(WINDRES_PROG)$(EXEEXT)'
13934 fi
13935
13936 if test "${with_windmc+set}" = set; then
13937 BUILD_WINDMC='$(WINDMC_PROG)$(EXEEXT)'
13938 fi
13939
13940
13941
13942
13943
13944
13945
13946
13947
13948
13949
13950
13951
13952
13953 cat >>confdefs.h <<_ACEOF
13954 #define TARGET "${target}"
13955 _ACEOF
13956
13957
13958 targ=$target
13959 . $srcdir/../bfd/config.bfd
13960 if test "x$targ_underscore" = "xyes"; then
13961 UNDERSCORE=1
13962 else
13963 UNDERSCORE=0
13964 fi
13965
13966 cat >>confdefs.h <<_ACEOF
13967 #define TARGET_PREPENDS_UNDERSCORE $UNDERSCORE
13968 _ACEOF
13969
13970
13971 # Emulation
13972 targ=$target
13973 . ${srcdir}/configure.tgt
13974 EMULATION=$targ_emul
13975 EMULATION_VECTOR=$targ_emul_vector
13976
13977
13978
13979
13980 # Required for html and install-html
13981
13982
13983
13984
13985
13986 ac_config_files="$ac_config_files Makefile doc/Makefile po/Makefile.in:po/Make-in"
13987
13988 cat >confcache <<\_ACEOF
13989 # This file is a shell script that caches the results of configure
13990 # tests run on this system so they can be shared between configure
13991 # scripts and configure runs, see configure's option --config-cache.
13992 # It is not useful on other systems. If it contains results you don't
13993 # want to keep, you may remove or edit it.
13994 #
13995 # config.status only pays attention to the cache file if you give it
13996 # the --recheck option to rerun configure.
13997 #
13998 # `ac_cv_env_foo' variables (set or unset) will be overridden when
13999 # loading this file, other *unset* `ac_cv_foo' will be assigned the
14000 # following values.
14001
14002 _ACEOF
14003
14004 # The following way of writing the cache mishandles newlines in values,
14005 # but we know of no workaround that is simple, portable, and efficient.
14006 # So, we kill variables containing newlines.
14007 # Ultrix sh set writes to stderr and can't be redirected directly,
14008 # and sets the high bit in the cache file unless we assign to the vars.
14009 (
14010 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
14011 eval ac_val=\$$ac_var
14012 case $ac_val in #(
14013 *${as_nl}*)
14014 case $ac_var in #(
14015 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
14016 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
14017 esac
14018 case $ac_var in #(
14019 _ | IFS | as_nl) ;; #(
14020 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
14021 *) { eval $ac_var=; unset $ac_var;} ;;
14022 esac ;;
14023 esac
14024 done
14025
14026 (set) 2>&1 |
14027 case $as_nl`(ac_space=' '; set) 2>&1` in #(
14028 *${as_nl}ac_space=\ *)
14029 # `set' does not quote correctly, so add quotes: double-quote
14030 # substitution turns \\\\ into \\, and sed turns \\ into \.
14031 sed -n \
14032 "s/'/'\\\\''/g;
14033 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
14034 ;; #(
14035 *)
14036 # `set' quotes correctly as required by POSIX, so do not add quotes.
14037 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
14038 ;;
14039 esac |
14040 sort
14041 ) |
14042 sed '
14043 /^ac_cv_env_/b end
14044 t clear
14045 :clear
14046 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
14047 t end
14048 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
14049 :end' >>confcache
14050 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
14051 if test -w "$cache_file"; then
14052 test "x$cache_file" != "x/dev/null" &&
14053 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
14054 $as_echo "$as_me: updating cache $cache_file" >&6;}
14055 cat confcache >$cache_file
14056 else
14057 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
14058 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
14059 fi
14060 fi
14061 rm -f confcache
14062
14063 test "x$prefix" = xNONE && prefix=$ac_default_prefix
14064 # Let make expand exec_prefix.
14065 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
14066
14067 DEFS=-DHAVE_CONFIG_H
14068
14069 ac_libobjs=
14070 ac_ltlibobjs=
14071 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
14072 # 1. Remove the extension, and $U if already installed.
14073 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
14074 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
14075 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
14076 # will be set to the directory where LIBOBJS objects are built.
14077 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
14078 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
14079 done
14080 LIBOBJS=$ac_libobjs
14081
14082 LTLIBOBJS=$ac_ltlibobjs
14083
14084
14085 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
14086 as_fn_error "conditional \"AMDEP\" was never defined.
14087 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14088 fi
14089 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
14090 as_fn_error "conditional \"am__fastdepCC\" was never defined.
14091 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14092 fi
14093 if test -n "$EXEEXT"; then
14094 am__EXEEXT_TRUE=
14095 am__EXEEXT_FALSE='#'
14096 else
14097 am__EXEEXT_TRUE='#'
14098 am__EXEEXT_FALSE=
14099 fi
14100
14101 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
14102 as_fn_error "conditional \"MAINTAINER_MODE\" was never defined.
14103 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14104 fi
14105 if test -z "${GENINSRC_NEVER_TRUE}" && test -z "${GENINSRC_NEVER_FALSE}"; then
14106 as_fn_error "conditional \"GENINSRC_NEVER\" was never defined.
14107 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14108 fi
14109
14110 : ${CONFIG_STATUS=./config.status}
14111 ac_write_fail=0
14112 ac_clean_files_save=$ac_clean_files
14113 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
14114 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
14115 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
14116 as_write_fail=0
14117 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
14118 #! $SHELL
14119 # Generated by $as_me.
14120 # Run this file to recreate the current configuration.
14121 # Compiler output produced by configure, useful for debugging
14122 # configure, is in config.log if it exists.
14123
14124 debug=false
14125 ac_cs_recheck=false
14126 ac_cs_silent=false
14127
14128 SHELL=\${CONFIG_SHELL-$SHELL}
14129 export SHELL
14130 _ASEOF
14131 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
14132 ## -------------------- ##
14133 ## M4sh Initialization. ##
14134 ## -------------------- ##
14135
14136 # Be more Bourne compatible
14137 DUALCASE=1; export DUALCASE # for MKS sh
14138 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
14139 emulate sh
14140 NULLCMD=:
14141 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
14142 # is contrary to our usage. Disable this feature.
14143 alias -g '${1+"$@"}'='"$@"'
14144 setopt NO_GLOB_SUBST
14145 else
14146 case `(set -o) 2>/dev/null` in #(
14147 *posix*) :
14148 set -o posix ;; #(
14149 *) :
14150 ;;
14151 esac
14152 fi
14153
14154
14155 as_nl='
14156 '
14157 export as_nl
14158 # Printing a long string crashes Solaris 7 /usr/bin/printf.
14159 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
14160 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
14161 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
14162 # Prefer a ksh shell builtin over an external printf program on Solaris,
14163 # but without wasting forks for bash or zsh.
14164 if test -z "$BASH_VERSION$ZSH_VERSION" \
14165 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
14166 as_echo='print -r --'
14167 as_echo_n='print -rn --'
14168 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
14169 as_echo='printf %s\n'
14170 as_echo_n='printf %s'
14171 else
14172 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
14173 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
14174 as_echo_n='/usr/ucb/echo -n'
14175 else
14176 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
14177 as_echo_n_body='eval
14178 arg=$1;
14179 case $arg in #(
14180 *"$as_nl"*)
14181 expr "X$arg" : "X\\(.*\\)$as_nl";
14182 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
14183 esac;
14184 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
14185 '
14186 export as_echo_n_body
14187 as_echo_n='sh -c $as_echo_n_body as_echo'
14188 fi
14189 export as_echo_body
14190 as_echo='sh -c $as_echo_body as_echo'
14191 fi
14192
14193 # The user is always right.
14194 if test "${PATH_SEPARATOR+set}" != set; then
14195 PATH_SEPARATOR=:
14196 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
14197 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
14198 PATH_SEPARATOR=';'
14199 }
14200 fi
14201
14202
14203 # IFS
14204 # We need space, tab and new line, in precisely that order. Quoting is
14205 # there to prevent editors from complaining about space-tab.
14206 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
14207 # splitting by setting IFS to empty value.)
14208 IFS=" "" $as_nl"
14209
14210 # Find who we are. Look in the path if we contain no directory separator.
14211 case $0 in #((
14212 *[\\/]* ) as_myself=$0 ;;
14213 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14214 for as_dir in $PATH
14215 do
14216 IFS=$as_save_IFS
14217 test -z "$as_dir" && as_dir=.
14218 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
14219 done
14220 IFS=$as_save_IFS
14221
14222 ;;
14223 esac
14224 # We did not find ourselves, most probably we were run as `sh COMMAND'
14225 # in which case we are not to be found in the path.
14226 if test "x$as_myself" = x; then
14227 as_myself=$0
14228 fi
14229 if test ! -f "$as_myself"; then
14230 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
14231 exit 1
14232 fi
14233
14234 # Unset variables that we do not need and which cause bugs (e.g. in
14235 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
14236 # suppresses any "Segmentation fault" message there. '((' could
14237 # trigger a bug in pdksh 5.2.14.
14238 for as_var in BASH_ENV ENV MAIL MAILPATH
14239 do eval test x\${$as_var+set} = xset \
14240 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
14241 done
14242 PS1='$ '
14243 PS2='> '
14244 PS4='+ '
14245
14246 # NLS nuisances.
14247 LC_ALL=C
14248 export LC_ALL
14249 LANGUAGE=C
14250 export LANGUAGE
14251
14252 # CDPATH.
14253 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
14254
14255
14256 # as_fn_error ERROR [LINENO LOG_FD]
14257 # ---------------------------------
14258 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
14259 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
14260 # script with status $?, using 1 if that was 0.
14261 as_fn_error ()
14262 {
14263 as_status=$?; test $as_status -eq 0 && as_status=1
14264 if test "$3"; then
14265 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
14266 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
14267 fi
14268 $as_echo "$as_me: error: $1" >&2
14269 as_fn_exit $as_status
14270 } # as_fn_error
14271
14272
14273 # as_fn_set_status STATUS
14274 # -----------------------
14275 # Set $? to STATUS, without forking.
14276 as_fn_set_status ()
14277 {
14278 return $1
14279 } # as_fn_set_status
14280
14281 # as_fn_exit STATUS
14282 # -----------------
14283 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
14284 as_fn_exit ()
14285 {
14286 set +e
14287 as_fn_set_status $1
14288 exit $1
14289 } # as_fn_exit
14290
14291 # as_fn_unset VAR
14292 # ---------------
14293 # Portably unset VAR.
14294 as_fn_unset ()
14295 {
14296 { eval $1=; unset $1;}
14297 }
14298 as_unset=as_fn_unset
14299 # as_fn_append VAR VALUE
14300 # ----------------------
14301 # Append the text in VALUE to the end of the definition contained in VAR. Take
14302 # advantage of any shell optimizations that allow amortized linear growth over
14303 # repeated appends, instead of the typical quadratic growth present in naive
14304 # implementations.
14305 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
14306 eval 'as_fn_append ()
14307 {
14308 eval $1+=\$2
14309 }'
14310 else
14311 as_fn_append ()
14312 {
14313 eval $1=\$$1\$2
14314 }
14315 fi # as_fn_append
14316
14317 # as_fn_arith ARG...
14318 # ------------------
14319 # Perform arithmetic evaluation on the ARGs, and store the result in the
14320 # global $as_val. Take advantage of shells that can avoid forks. The arguments
14321 # must be portable across $(()) and expr.
14322 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
14323 eval 'as_fn_arith ()
14324 {
14325 as_val=$(( $* ))
14326 }'
14327 else
14328 as_fn_arith ()
14329 {
14330 as_val=`expr "$@" || test $? -eq 1`
14331 }
14332 fi # as_fn_arith
14333
14334
14335 if expr a : '\(a\)' >/dev/null 2>&1 &&
14336 test "X`expr 00001 : '.*\(...\)'`" = X001; then
14337 as_expr=expr
14338 else
14339 as_expr=false
14340 fi
14341
14342 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
14343 as_basename=basename
14344 else
14345 as_basename=false
14346 fi
14347
14348 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
14349 as_dirname=dirname
14350 else
14351 as_dirname=false
14352 fi
14353
14354 as_me=`$as_basename -- "$0" ||
14355 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
14356 X"$0" : 'X\(//\)$' \| \
14357 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
14358 $as_echo X/"$0" |
14359 sed '/^.*\/\([^/][^/]*\)\/*$/{
14360 s//\1/
14361 q
14362 }
14363 /^X\/\(\/\/\)$/{
14364 s//\1/
14365 q
14366 }
14367 /^X\/\(\/\).*/{
14368 s//\1/
14369 q
14370 }
14371 s/.*/./; q'`
14372
14373 # Avoid depending upon Character Ranges.
14374 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
14375 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
14376 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
14377 as_cr_digits='0123456789'
14378 as_cr_alnum=$as_cr_Letters$as_cr_digits
14379
14380 ECHO_C= ECHO_N= ECHO_T=
14381 case `echo -n x` in #(((((
14382 -n*)
14383 case `echo 'xy\c'` in
14384 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
14385 xy) ECHO_C='\c';;
14386 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
14387 ECHO_T=' ';;
14388 esac;;
14389 *)
14390 ECHO_N='-n';;
14391 esac
14392
14393 rm -f conf$$ conf$$.exe conf$$.file
14394 if test -d conf$$.dir; then
14395 rm -f conf$$.dir/conf$$.file
14396 else
14397 rm -f conf$$.dir
14398 mkdir conf$$.dir 2>/dev/null
14399 fi
14400 if (echo >conf$$.file) 2>/dev/null; then
14401 if ln -s conf$$.file conf$$ 2>/dev/null; then
14402 as_ln_s='ln -s'
14403 # ... but there are two gotchas:
14404 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
14405 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
14406 # In both cases, we have to default to `cp -p'.
14407 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
14408 as_ln_s='cp -p'
14409 elif ln conf$$.file conf$$ 2>/dev/null; then
14410 as_ln_s=ln
14411 else
14412 as_ln_s='cp -p'
14413 fi
14414 else
14415 as_ln_s='cp -p'
14416 fi
14417 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
14418 rmdir conf$$.dir 2>/dev/null
14419
14420
14421 # as_fn_mkdir_p
14422 # -------------
14423 # Create "$as_dir" as a directory, including parents if necessary.
14424 as_fn_mkdir_p ()
14425 {
14426
14427 case $as_dir in #(
14428 -*) as_dir=./$as_dir;;
14429 esac
14430 test -d "$as_dir" || eval $as_mkdir_p || {
14431 as_dirs=
14432 while :; do
14433 case $as_dir in #(
14434 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
14435 *) as_qdir=$as_dir;;
14436 esac
14437 as_dirs="'$as_qdir' $as_dirs"
14438 as_dir=`$as_dirname -- "$as_dir" ||
14439 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14440 X"$as_dir" : 'X\(//\)[^/]' \| \
14441 X"$as_dir" : 'X\(//\)$' \| \
14442 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
14443 $as_echo X"$as_dir" |
14444 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14445 s//\1/
14446 q
14447 }
14448 /^X\(\/\/\)[^/].*/{
14449 s//\1/
14450 q
14451 }
14452 /^X\(\/\/\)$/{
14453 s//\1/
14454 q
14455 }
14456 /^X\(\/\).*/{
14457 s//\1/
14458 q
14459 }
14460 s/.*/./; q'`
14461 test -d "$as_dir" && break
14462 done
14463 test -z "$as_dirs" || eval "mkdir $as_dirs"
14464 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
14465
14466
14467 } # as_fn_mkdir_p
14468 if mkdir -p . 2>/dev/null; then
14469 as_mkdir_p='mkdir -p "$as_dir"'
14470 else
14471 test -d ./-p && rmdir ./-p
14472 as_mkdir_p=false
14473 fi
14474
14475 if test -x / >/dev/null 2>&1; then
14476 as_test_x='test -x'
14477 else
14478 if ls -dL / >/dev/null 2>&1; then
14479 as_ls_L_option=L
14480 else
14481 as_ls_L_option=
14482 fi
14483 as_test_x='
14484 eval sh -c '\''
14485 if test -d "$1"; then
14486 test -d "$1/.";
14487 else
14488 case $1 in #(
14489 -*)set "./$1";;
14490 esac;
14491 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
14492 ???[sx]*):;;*)false;;esac;fi
14493 '\'' sh
14494 '
14495 fi
14496 as_executable_p=$as_test_x
14497
14498 # Sed expression to map a string onto a valid CPP name.
14499 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
14500
14501 # Sed expression to map a string onto a valid variable name.
14502 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
14503
14504
14505 exec 6>&1
14506 ## ----------------------------------- ##
14507 ## Main body of $CONFIG_STATUS script. ##
14508 ## ----------------------------------- ##
14509 _ASEOF
14510 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
14511
14512 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14513 # Save the log message, to keep $0 and so on meaningful, and to
14514 # report actual input values of CONFIG_FILES etc. instead of their
14515 # values after options handling.
14516 ac_log="
14517 This file was extended by $as_me, which was
14518 generated by GNU Autoconf 2.64. Invocation command line was
14519
14520 CONFIG_FILES = $CONFIG_FILES
14521 CONFIG_HEADERS = $CONFIG_HEADERS
14522 CONFIG_LINKS = $CONFIG_LINKS
14523 CONFIG_COMMANDS = $CONFIG_COMMANDS
14524 $ $0 $@
14525
14526 on `(hostname || uname -n) 2>/dev/null | sed 1q`
14527 "
14528
14529 _ACEOF
14530
14531 case $ac_config_files in *"
14532 "*) set x $ac_config_files; shift; ac_config_files=$*;;
14533 esac
14534
14535 case $ac_config_headers in *"
14536 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
14537 esac
14538
14539
14540 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14541 # Files that config.status was made for.
14542 config_files="$ac_config_files"
14543 config_headers="$ac_config_headers"
14544 config_commands="$ac_config_commands"
14545
14546 _ACEOF
14547
14548 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14549 ac_cs_usage="\
14550 \`$as_me' instantiates files and other configuration actions
14551 from templates according to the current configuration. Unless the files
14552 and actions are specified as TAGs, all are instantiated by default.
14553
14554 Usage: $0 [OPTION]... [TAG]...
14555
14556 -h, --help print this help, then exit
14557 -V, --version print version number and configuration settings, then exit
14558 -q, --quiet, --silent
14559 do not print progress messages
14560 -d, --debug don't remove temporary files
14561 --recheck update $as_me by reconfiguring in the same conditions
14562 --file=FILE[:TEMPLATE]
14563 instantiate the configuration file FILE
14564 --header=FILE[:TEMPLATE]
14565 instantiate the configuration header FILE
14566
14567 Configuration files:
14568 $config_files
14569
14570 Configuration headers:
14571 $config_headers
14572
14573 Configuration commands:
14574 $config_commands
14575
14576 Report bugs to the package provider."
14577
14578 _ACEOF
14579 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14580 ac_cs_version="\\
14581 config.status
14582 configured by $0, generated by GNU Autoconf 2.64,
14583 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
14584
14585 Copyright (C) 2009 Free Software Foundation, Inc.
14586 This config.status script is free software; the Free Software Foundation
14587 gives unlimited permission to copy, distribute and modify it."
14588
14589 ac_pwd='$ac_pwd'
14590 srcdir='$srcdir'
14591 INSTALL='$INSTALL'
14592 MKDIR_P='$MKDIR_P'
14593 AWK='$AWK'
14594 test -n "\$AWK" || AWK=awk
14595 _ACEOF
14596
14597 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14598 # The default lists apply if the user does not specify any file.
14599 ac_need_defaults=:
14600 while test $# != 0
14601 do
14602 case $1 in
14603 --*=*)
14604 ac_option=`expr "X$1" : 'X\([^=]*\)='`
14605 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
14606 ac_shift=:
14607 ;;
14608 *)
14609 ac_option=$1
14610 ac_optarg=$2
14611 ac_shift=shift
14612 ;;
14613 esac
14614
14615 case $ac_option in
14616 # Handling of the options.
14617 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
14618 ac_cs_recheck=: ;;
14619 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
14620 $as_echo "$ac_cs_version"; exit ;;
14621 --debug | --debu | --deb | --de | --d | -d )
14622 debug=: ;;
14623 --file | --fil | --fi | --f )
14624 $ac_shift
14625 case $ac_optarg in
14626 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
14627 esac
14628 as_fn_append CONFIG_FILES " '$ac_optarg'"
14629 ac_need_defaults=false;;
14630 --header | --heade | --head | --hea )
14631 $ac_shift
14632 case $ac_optarg in
14633 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
14634 esac
14635 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
14636 ac_need_defaults=false;;
14637 --he | --h)
14638 # Conflict between --help and --header
14639 as_fn_error "ambiguous option: \`$1'
14640 Try \`$0 --help' for more information.";;
14641 --help | --hel | -h )
14642 $as_echo "$ac_cs_usage"; exit ;;
14643 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
14644 | -silent | --silent | --silen | --sile | --sil | --si | --s)
14645 ac_cs_silent=: ;;
14646
14647 # This is an error.
14648 -*) as_fn_error "unrecognized option: \`$1'
14649 Try \`$0 --help' for more information." ;;
14650
14651 *) as_fn_append ac_config_targets " $1"
14652 ac_need_defaults=false ;;
14653
14654 esac
14655 shift
14656 done
14657
14658 ac_configure_extra_args=
14659
14660 if $ac_cs_silent; then
14661 exec 6>/dev/null
14662 ac_configure_extra_args="$ac_configure_extra_args --silent"
14663 fi
14664
14665 _ACEOF
14666 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14667 if \$ac_cs_recheck; then
14668 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
14669 shift
14670 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
14671 CONFIG_SHELL='$SHELL'
14672 export CONFIG_SHELL
14673 exec "\$@"
14674 fi
14675
14676 _ACEOF
14677 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14678 exec 5>>config.log
14679 {
14680 echo
14681 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
14682 ## Running $as_me. ##
14683 _ASBOX
14684 $as_echo "$ac_log"
14685 } >&5
14686
14687 _ACEOF
14688 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14689 #
14690 # INIT-COMMANDS
14691 #
14692 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
14693
14694
14695 # The HP-UX ksh and POSIX shell print the target directory to stdout
14696 # if CDPATH is set.
14697 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
14698
14699 sed_quote_subst='$sed_quote_subst'
14700 double_quote_subst='$double_quote_subst'
14701 delay_variable_subst='$delay_variable_subst'
14702 macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
14703 macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
14704 enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
14705 enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
14706 pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
14707 enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
14708 host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
14709 host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`'
14710 host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`'
14711 build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`'
14712 build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`'
14713 build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`'
14714 SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
14715 Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
14716 GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
14717 EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
14718 FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`'
14719 LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
14720 NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
14721 LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
14722 max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
14723 ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
14724 exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
14725 lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`'
14726 lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`'
14727 lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`'
14728 reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
14729 reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14730 OBJDUMP='`$ECHO "X$OBJDUMP" | $Xsed -e "$delay_single_quote_subst"`'
14731 deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
14732 file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
14733 AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
14734 AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
14735 STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
14736 RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
14737 old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14738 old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14739 old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14740 CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
14741 CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`'
14742 compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
14743 GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
14744 lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
14745 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
14746 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"`'
14747 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"`'
14748 objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
14749 SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
14750 ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`'
14751 MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
14752 lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
14753 lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
14754 lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
14755 lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
14756 lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
14757 need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
14758 DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`'
14759 NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`'
14760 LIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`'
14761 OTOOL='`$ECHO "X$OTOOL" | $Xsed -e "$delay_single_quote_subst"`'
14762 OTOOL64='`$ECHO "X$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`'
14763 libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
14764 shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14765 extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14766 archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
14767 enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
14768 export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
14769 whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
14770 compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`'
14771 old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14772 old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14773 archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14774 archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14775 module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14776 module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14777 with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`'
14778 allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
14779 no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
14780 hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
14781 hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
14782 hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
14783 hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
14784 hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`'
14785 hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
14786 hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
14787 hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
14788 inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
14789 link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
14790 fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
14791 always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
14792 export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14793 exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
14794 include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
14795 prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14796 file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`'
14797 variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
14798 need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
14799 need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
14800 version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
14801 runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
14802 shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
14803 shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
14804 libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
14805 library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
14806 soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
14807 postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14808 postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14809 finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14810 finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
14811 hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
14812 sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
14813 sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
14814 hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
14815 enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
14816 enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
14817 enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
14818 old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
14819 striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
14820
14821 LTCC='$LTCC'
14822 LTCFLAGS='$LTCFLAGS'
14823 compiler='$compiler_DEFAULT'
14824
14825 # Quote evaled strings.
14826 for var in SED \
14827 GREP \
14828 EGREP \
14829 FGREP \
14830 LD \
14831 NM \
14832 LN_S \
14833 lt_SP2NL \
14834 lt_NL2SP \
14835 reload_flag \
14836 OBJDUMP \
14837 deplibs_check_method \
14838 file_magic_cmd \
14839 AR \
14840 AR_FLAGS \
14841 STRIP \
14842 RANLIB \
14843 CC \
14844 CFLAGS \
14845 compiler \
14846 lt_cv_sys_global_symbol_pipe \
14847 lt_cv_sys_global_symbol_to_cdecl \
14848 lt_cv_sys_global_symbol_to_c_name_address \
14849 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
14850 SHELL \
14851 ECHO \
14852 lt_prog_compiler_no_builtin_flag \
14853 lt_prog_compiler_wl \
14854 lt_prog_compiler_pic \
14855 lt_prog_compiler_static \
14856 lt_cv_prog_compiler_c_o \
14857 need_locks \
14858 DSYMUTIL \
14859 NMEDIT \
14860 LIPO \
14861 OTOOL \
14862 OTOOL64 \
14863 shrext_cmds \
14864 export_dynamic_flag_spec \
14865 whole_archive_flag_spec \
14866 compiler_needs_object \
14867 with_gnu_ld \
14868 allow_undefined_flag \
14869 no_undefined_flag \
14870 hardcode_libdir_flag_spec \
14871 hardcode_libdir_flag_spec_ld \
14872 hardcode_libdir_separator \
14873 fix_srcfile_path \
14874 exclude_expsyms \
14875 include_expsyms \
14876 file_list_spec \
14877 variables_saved_for_relink \
14878 libname_spec \
14879 library_names_spec \
14880 soname_spec \
14881 finish_eval \
14882 old_striplib \
14883 striplib; do
14884 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
14885 *[\\\\\\\`\\"\\\$]*)
14886 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
14887 ;;
14888 *)
14889 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
14890 ;;
14891 esac
14892 done
14893
14894 # Double-quote double-evaled strings.
14895 for var in reload_cmds \
14896 old_postinstall_cmds \
14897 old_postuninstall_cmds \
14898 old_archive_cmds \
14899 extract_expsyms_cmds \
14900 old_archive_from_new_cmds \
14901 old_archive_from_expsyms_cmds \
14902 archive_cmds \
14903 archive_expsym_cmds \
14904 module_cmds \
14905 module_expsym_cmds \
14906 export_symbols_cmds \
14907 prelink_cmds \
14908 postinstall_cmds \
14909 postuninstall_cmds \
14910 finish_cmds \
14911 sys_lib_search_path_spec \
14912 sys_lib_dlsearch_path_spec; do
14913 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
14914 *[\\\\\\\`\\"\\\$]*)
14915 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
14916 ;;
14917 *)
14918 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
14919 ;;
14920 esac
14921 done
14922
14923 # Fix-up fallback echo if it was mangled by the above quoting rules.
14924 case \$lt_ECHO in
14925 *'\\\$0 --fallback-echo"') lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
14926 ;;
14927 esac
14928
14929 ac_aux_dir='$ac_aux_dir'
14930 xsi_shell='$xsi_shell'
14931 lt_shell_append='$lt_shell_append'
14932
14933 # See if we are running on zsh, and set the options which allow our
14934 # commands through without removal of \ escapes INIT.
14935 if test -n "\${ZSH_VERSION+set}" ; then
14936 setopt NO_GLOB_SUBST
14937 fi
14938
14939
14940 PACKAGE='$PACKAGE'
14941 VERSION='$VERSION'
14942 TIMESTAMP='$TIMESTAMP'
14943 RM='$RM'
14944 ofile='$ofile'
14945
14946
14947
14948 # Capture the value of obsolete ALL_LINGUAS because we need it to compute
14949 # POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES, CATALOGS. But hide it
14950 # from automake.
14951 eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
14952 # Capture the value of LINGUAS because we need it to compute CATALOGS.
14953 LINGUAS="${LINGUAS-%UNSET%}"
14954
14955
14956 _ACEOF
14957
14958 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14959
14960 # Handling of arguments.
14961 for ac_config_target in $ac_config_targets
14962 do
14963 case $ac_config_target in
14964 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
14965 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
14966 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h:config.in" ;;
14967 "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
14968 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
14969 "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
14970 "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in:po/Make-in" ;;
14971
14972 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
14973 esac
14974 done
14975
14976
14977 # If the user did not use the arguments to specify the items to instantiate,
14978 # then the envvar interface is used. Set only those that are not.
14979 # We use the long form for the default assignment because of an extremely
14980 # bizarre bug on SunOS 4.1.3.
14981 if $ac_need_defaults; then
14982 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
14983 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
14984 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
14985 fi
14986
14987 # Have a temporary directory for convenience. Make it in the build tree
14988 # simply because there is no reason against having it here, and in addition,
14989 # creating and moving files from /tmp can sometimes cause problems.
14990 # Hook for its removal unless debugging.
14991 # Note that there is a small window in which the directory will not be cleaned:
14992 # after its creation but before its name has been assigned to `$tmp'.
14993 $debug ||
14994 {
14995 tmp=
14996 trap 'exit_status=$?
14997 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
14998 ' 0
14999 trap 'as_fn_exit 1' 1 2 13 15
15000 }
15001 # Create a (secure) tmp directory for tmp files.
15002
15003 {
15004 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
15005 test -n "$tmp" && test -d "$tmp"
15006 } ||
15007 {
15008 tmp=./conf$$-$RANDOM
15009 (umask 077 && mkdir "$tmp")
15010 } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
15011
15012 # Set up the scripts for CONFIG_FILES section.
15013 # No need to generate them if there are no CONFIG_FILES.
15014 # This happens for instance with `./config.status config.h'.
15015 if test -n "$CONFIG_FILES"; then
15016
15017
15018 ac_cr=`echo X | tr X '\015'`
15019 # On cygwin, bash can eat \r inside `` if the user requested igncr.
15020 # But we know of no other shell where ac_cr would be empty at this
15021 # point, so we can use a bashism as a fallback.
15022 if test "x$ac_cr" = x; then
15023 eval ac_cr=\$\'\\r\'
15024 fi
15025 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
15026 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
15027 ac_cs_awk_cr='\r'
15028 else
15029 ac_cs_awk_cr=$ac_cr
15030 fi
15031
15032 echo 'BEGIN {' >"$tmp/subs1.awk" &&
15033 _ACEOF
15034
15035
15036 {
15037 echo "cat >conf$$subs.awk <<_ACEOF" &&
15038 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
15039 echo "_ACEOF"
15040 } >conf$$subs.sh ||
15041 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
15042 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
15043 ac_delim='%!_!# '
15044 for ac_last_try in false false false false false :; do
15045 . ./conf$$subs.sh ||
15046 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
15047
15048 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
15049 if test $ac_delim_n = $ac_delim_num; then
15050 break
15051 elif $ac_last_try; then
15052 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
15053 else
15054 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
15055 fi
15056 done
15057 rm -f conf$$subs.sh
15058
15059 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15060 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
15061 _ACEOF
15062 sed -n '
15063 h
15064 s/^/S["/; s/!.*/"]=/
15065 p
15066 g
15067 s/^[^!]*!//
15068 :repl
15069 t repl
15070 s/'"$ac_delim"'$//
15071 t delim
15072 :nl
15073 h
15074 s/\(.\{148\}\).*/\1/
15075 t more1
15076 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
15077 p
15078 n
15079 b repl
15080 :more1
15081 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
15082 p
15083 g
15084 s/.\{148\}//
15085 t nl
15086 :delim
15087 h
15088 s/\(.\{148\}\).*/\1/
15089 t more2
15090 s/["\\]/\\&/g; s/^/"/; s/$/"/
15091 p
15092 b
15093 :more2
15094 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
15095 p
15096 g
15097 s/.\{148\}//
15098 t delim
15099 ' <conf$$subs.awk | sed '
15100 /^[^""]/{
15101 N
15102 s/\n//
15103 }
15104 ' >>$CONFIG_STATUS || ac_write_fail=1
15105 rm -f conf$$subs.awk
15106 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15107 _ACAWK
15108 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
15109 for (key in S) S_is_set[key] = 1
15110 FS = "\a"
15111
15112 }
15113 {
15114 line = $ 0
15115 nfields = split(line, field, "@")
15116 substed = 0
15117 len = length(field[1])
15118 for (i = 2; i < nfields; i++) {
15119 key = field[i]
15120 keylen = length(key)
15121 if (S_is_set[key]) {
15122 value = S[key]
15123 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
15124 len += length(value) + length(field[++i])
15125 substed = 1
15126 } else
15127 len += 1 + keylen
15128 }
15129
15130 print line
15131 }
15132
15133 _ACAWK
15134 _ACEOF
15135 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15136 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
15137 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
15138 else
15139 cat
15140 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
15141 || as_fn_error "could not setup config files machinery" "$LINENO" 5
15142 _ACEOF
15143
15144 # VPATH may cause trouble with some makes, so we remove $(srcdir),
15145 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
15146 # trailing colons and then remove the whole line if VPATH becomes empty
15147 # (actually we leave an empty line to preserve line numbers).
15148 if test "x$srcdir" = x.; then
15149 ac_vpsub='/^[ ]*VPATH[ ]*=/{
15150 s/:*\$(srcdir):*/:/
15151 s/:*\${srcdir}:*/:/
15152 s/:*@srcdir@:*/:/
15153 s/^\([^=]*=[ ]*\):*/\1/
15154 s/:*$//
15155 s/^[^=]*=[ ]*$//
15156 }'
15157 fi
15158
15159 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15160 fi # test -n "$CONFIG_FILES"
15161
15162 # Set up the scripts for CONFIG_HEADERS section.
15163 # No need to generate them if there are no CONFIG_HEADERS.
15164 # This happens for instance with `./config.status Makefile'.
15165 if test -n "$CONFIG_HEADERS"; then
15166 cat >"$tmp/defines.awk" <<\_ACAWK ||
15167 BEGIN {
15168 _ACEOF
15169
15170 # Transform confdefs.h into an awk script `defines.awk', embedded as
15171 # here-document in config.status, that substitutes the proper values into
15172 # config.h.in to produce config.h.
15173
15174 # Create a delimiter string that does not exist in confdefs.h, to ease
15175 # handling of long lines.
15176 ac_delim='%!_!# '
15177 for ac_last_try in false false :; do
15178 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
15179 if test -z "$ac_t"; then
15180 break
15181 elif $ac_last_try; then
15182 as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
15183 else
15184 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
15185 fi
15186 done
15187
15188 # For the awk script, D is an array of macro values keyed by name,
15189 # likewise P contains macro parameters if any. Preserve backslash
15190 # newline sequences.
15191
15192 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
15193 sed -n '
15194 s/.\{148\}/&'"$ac_delim"'/g
15195 t rset
15196 :rset
15197 s/^[ ]*#[ ]*define[ ][ ]*/ /
15198 t def
15199 d
15200 :def
15201 s/\\$//
15202 t bsnl
15203 s/["\\]/\\&/g
15204 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
15205 D["\1"]=" \3"/p
15206 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
15207 d
15208 :bsnl
15209 s/["\\]/\\&/g
15210 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
15211 D["\1"]=" \3\\\\\\n"\\/p
15212 t cont
15213 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
15214 t cont
15215 d
15216 :cont
15217 n
15218 s/.\{148\}/&'"$ac_delim"'/g
15219 t clear
15220 :clear
15221 s/\\$//
15222 t bsnlc
15223 s/["\\]/\\&/g; s/^/"/; s/$/"/p
15224 d
15225 :bsnlc
15226 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
15227 b cont
15228 ' <confdefs.h | sed '
15229 s/'"$ac_delim"'/"\\\
15230 "/g' >>$CONFIG_STATUS || ac_write_fail=1
15231
15232 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15233 for (key in D) D_is_set[key] = 1
15234 FS = "\a"
15235 }
15236 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
15237 line = \$ 0
15238 split(line, arg, " ")
15239 if (arg[1] == "#") {
15240 defundef = arg[2]
15241 mac1 = arg[3]
15242 } else {
15243 defundef = substr(arg[1], 2)
15244 mac1 = arg[2]
15245 }
15246 split(mac1, mac2, "(") #)
15247 macro = mac2[1]
15248 prefix = substr(line, 1, index(line, defundef) - 1)
15249 if (D_is_set[macro]) {
15250 # Preserve the white space surrounding the "#".
15251 print prefix "define", macro P[macro] D[macro]
15252 next
15253 } else {
15254 # Replace #undef with comments. This is necessary, for example,
15255 # in the case of _POSIX_SOURCE, which is predefined and required
15256 # on some systems where configure will not decide to define it.
15257 if (defundef == "undef") {
15258 print "/*", prefix defundef, macro, "*/"
15259 next
15260 }
15261 }
15262 }
15263 { print }
15264 _ACAWK
15265 _ACEOF
15266 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15267 as_fn_error "could not setup config headers machinery" "$LINENO" 5
15268 fi # test -n "$CONFIG_HEADERS"
15269
15270
15271 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
15272 shift
15273 for ac_tag
15274 do
15275 case $ac_tag in
15276 :[FHLC]) ac_mode=$ac_tag; continue;;
15277 esac
15278 case $ac_mode$ac_tag in
15279 :[FHL]*:*);;
15280 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
15281 :[FH]-) ac_tag=-:-;;
15282 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
15283 esac
15284 ac_save_IFS=$IFS
15285 IFS=:
15286 set x $ac_tag
15287 IFS=$ac_save_IFS
15288 shift
15289 ac_file=$1
15290 shift
15291
15292 case $ac_mode in
15293 :L) ac_source=$1;;
15294 :[FH])
15295 ac_file_inputs=
15296 for ac_f
15297 do
15298 case $ac_f in
15299 -) ac_f="$tmp/stdin";;
15300 *) # Look for the file first in the build tree, then in the source tree
15301 # (if the path is not absolute). The absolute path cannot be DOS-style,
15302 # because $ac_f cannot contain `:'.
15303 test -f "$ac_f" ||
15304 case $ac_f in
15305 [\\/$]*) false;;
15306 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
15307 esac ||
15308 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
15309 esac
15310 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
15311 as_fn_append ac_file_inputs " '$ac_f'"
15312 done
15313
15314 # Let's still pretend it is `configure' which instantiates (i.e., don't
15315 # use $as_me), people would be surprised to read:
15316 # /* config.h. Generated by config.status. */
15317 configure_input='Generated from '`
15318 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
15319 `' by configure.'
15320 if test x"$ac_file" != x-; then
15321 configure_input="$ac_file. $configure_input"
15322 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
15323 $as_echo "$as_me: creating $ac_file" >&6;}
15324 fi
15325 # Neutralize special characters interpreted by sed in replacement strings.
15326 case $configure_input in #(
15327 *\&* | *\|* | *\\* )
15328 ac_sed_conf_input=`$as_echo "$configure_input" |
15329 sed 's/[\\\\&|]/\\\\&/g'`;; #(
15330 *) ac_sed_conf_input=$configure_input;;
15331 esac
15332
15333 case $ac_tag in
15334 *:-:* | *:-) cat >"$tmp/stdin" \
15335 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
15336 esac
15337 ;;
15338 esac
15339
15340 ac_dir=`$as_dirname -- "$ac_file" ||
15341 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15342 X"$ac_file" : 'X\(//\)[^/]' \| \
15343 X"$ac_file" : 'X\(//\)$' \| \
15344 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
15345 $as_echo X"$ac_file" |
15346 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15347 s//\1/
15348 q
15349 }
15350 /^X\(\/\/\)[^/].*/{
15351 s//\1/
15352 q
15353 }
15354 /^X\(\/\/\)$/{
15355 s//\1/
15356 q
15357 }
15358 /^X\(\/\).*/{
15359 s//\1/
15360 q
15361 }
15362 s/.*/./; q'`
15363 as_dir="$ac_dir"; as_fn_mkdir_p
15364 ac_builddir=.
15365
15366 case "$ac_dir" in
15367 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
15368 *)
15369 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
15370 # A ".." for each directory in $ac_dir_suffix.
15371 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
15372 case $ac_top_builddir_sub in
15373 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
15374 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
15375 esac ;;
15376 esac
15377 ac_abs_top_builddir=$ac_pwd
15378 ac_abs_builddir=$ac_pwd$ac_dir_suffix
15379 # for backward compatibility:
15380 ac_top_builddir=$ac_top_build_prefix
15381
15382 case $srcdir in
15383 .) # We are building in place.
15384 ac_srcdir=.
15385 ac_top_srcdir=$ac_top_builddir_sub
15386 ac_abs_top_srcdir=$ac_pwd ;;
15387 [\\/]* | ?:[\\/]* ) # Absolute name.
15388 ac_srcdir=$srcdir$ac_dir_suffix;
15389 ac_top_srcdir=$srcdir
15390 ac_abs_top_srcdir=$srcdir ;;
15391 *) # Relative name.
15392 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
15393 ac_top_srcdir=$ac_top_build_prefix$srcdir
15394 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
15395 esac
15396 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
15397
15398
15399 case $ac_mode in
15400 :F)
15401 #
15402 # CONFIG_FILE
15403 #
15404
15405 case $INSTALL in
15406 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
15407 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
15408 esac
15409 ac_MKDIR_P=$MKDIR_P
15410 case $MKDIR_P in
15411 [\\/$]* | ?:[\\/]* ) ;;
15412 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
15413 esac
15414 _ACEOF
15415
15416 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15417 # If the template does not know about datarootdir, expand it.
15418 # FIXME: This hack should be removed a few years after 2.60.
15419 ac_datarootdir_hack=; ac_datarootdir_seen=
15420 ac_sed_dataroot='
15421 /datarootdir/ {
15422 p
15423 q
15424 }
15425 /@datadir@/p
15426 /@docdir@/p
15427 /@infodir@/p
15428 /@localedir@/p
15429 /@mandir@/p'
15430 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
15431 *datarootdir*) ac_datarootdir_seen=yes;;
15432 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
15433 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
15434 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
15435 _ACEOF
15436 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15437 ac_datarootdir_hack='
15438 s&@datadir@&$datadir&g
15439 s&@docdir@&$docdir&g
15440 s&@infodir@&$infodir&g
15441 s&@localedir@&$localedir&g
15442 s&@mandir@&$mandir&g
15443 s&\\\${datarootdir}&$datarootdir&g' ;;
15444 esac
15445 _ACEOF
15446
15447 # Neutralize VPATH when `$srcdir' = `.'.
15448 # Shell code in configure.ac might set extrasub.
15449 # FIXME: do we really want to maintain this feature?
15450 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15451 ac_sed_extra="$ac_vpsub
15452 $extrasub
15453 _ACEOF
15454 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15455 :t
15456 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
15457 s|@configure_input@|$ac_sed_conf_input|;t t
15458 s&@top_builddir@&$ac_top_builddir_sub&;t t
15459 s&@top_build_prefix@&$ac_top_build_prefix&;t t
15460 s&@srcdir@&$ac_srcdir&;t t
15461 s&@abs_srcdir@&$ac_abs_srcdir&;t t
15462 s&@top_srcdir@&$ac_top_srcdir&;t t
15463 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
15464 s&@builddir@&$ac_builddir&;t t
15465 s&@abs_builddir@&$ac_abs_builddir&;t t
15466 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
15467 s&@INSTALL@&$ac_INSTALL&;t t
15468 s&@MKDIR_P@&$ac_MKDIR_P&;t t
15469 $ac_datarootdir_hack
15470 "
15471 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
15472 || as_fn_error "could not create $ac_file" "$LINENO" 5
15473
15474 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
15475 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
15476 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
15477 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
15478 which seems to be undefined. Please make sure it is defined." >&5
15479 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
15480 which seems to be undefined. Please make sure it is defined." >&2;}
15481
15482 rm -f "$tmp/stdin"
15483 case $ac_file in
15484 -) cat "$tmp/out" && rm -f "$tmp/out";;
15485 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
15486 esac \
15487 || as_fn_error "could not create $ac_file" "$LINENO" 5
15488 ;;
15489 :H)
15490 #
15491 # CONFIG_HEADER
15492 #
15493 if test x"$ac_file" != x-; then
15494 {
15495 $as_echo "/* $configure_input */" \
15496 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
15497 } >"$tmp/config.h" \
15498 || as_fn_error "could not create $ac_file" "$LINENO" 5
15499 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
15500 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
15501 $as_echo "$as_me: $ac_file is unchanged" >&6;}
15502 else
15503 rm -f "$ac_file"
15504 mv "$tmp/config.h" "$ac_file" \
15505 || as_fn_error "could not create $ac_file" "$LINENO" 5
15506 fi
15507 else
15508 $as_echo "/* $configure_input */" \
15509 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
15510 || as_fn_error "could not create -" "$LINENO" 5
15511 fi
15512 # Compute "$ac_file"'s index in $config_headers.
15513 _am_arg="$ac_file"
15514 _am_stamp_count=1
15515 for _am_header in $config_headers :; do
15516 case $_am_header in
15517 $_am_arg | $_am_arg:* )
15518 break ;;
15519 * )
15520 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
15521 esac
15522 done
15523 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
15524 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15525 X"$_am_arg" : 'X\(//\)[^/]' \| \
15526 X"$_am_arg" : 'X\(//\)$' \| \
15527 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
15528 $as_echo X"$_am_arg" |
15529 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15530 s//\1/
15531 q
15532 }
15533 /^X\(\/\/\)[^/].*/{
15534 s//\1/
15535 q
15536 }
15537 /^X\(\/\/\)$/{
15538 s//\1/
15539 q
15540 }
15541 /^X\(\/\).*/{
15542 s//\1/
15543 q
15544 }
15545 s/.*/./; q'`/stamp-h$_am_stamp_count
15546 ;;
15547
15548 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
15549 $as_echo "$as_me: executing $ac_file commands" >&6;}
15550 ;;
15551 esac
15552
15553
15554 case $ac_file$ac_mode in
15555 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
15556 # Autoconf 2.62 quotes --file arguments for eval, but not when files
15557 # are listed without --file. Let's play safe and only enable the eval
15558 # if we detect the quoting.
15559 case $CONFIG_FILES in
15560 *\'*) eval set x "$CONFIG_FILES" ;;
15561 *) set x $CONFIG_FILES ;;
15562 esac
15563 shift
15564 for mf
15565 do
15566 # Strip MF so we end up with the name of the file.
15567 mf=`echo "$mf" | sed -e 's/:.*$//'`
15568 # Check whether this is an Automake generated Makefile or not.
15569 # We used to match only the files named `Makefile.in', but
15570 # some people rename them; so instead we look at the file content.
15571 # Grep'ing the first line is not enough: some people post-process
15572 # each Makefile.in and add a new line on top of each file to say so.
15573 # Grep'ing the whole file is not good either: AIX grep has a line
15574 # limit of 2048, but all sed's we know have understand at least 4000.
15575 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
15576 dirpart=`$as_dirname -- "$mf" ||
15577 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15578 X"$mf" : 'X\(//\)[^/]' \| \
15579 X"$mf" : 'X\(//\)$' \| \
15580 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
15581 $as_echo X"$mf" |
15582 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15583 s//\1/
15584 q
15585 }
15586 /^X\(\/\/\)[^/].*/{
15587 s//\1/
15588 q
15589 }
15590 /^X\(\/\/\)$/{
15591 s//\1/
15592 q
15593 }
15594 /^X\(\/\).*/{
15595 s//\1/
15596 q
15597 }
15598 s/.*/./; q'`
15599 else
15600 continue
15601 fi
15602 # Extract the definition of DEPDIR, am__include, and am__quote
15603 # from the Makefile without running `make'.
15604 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
15605 test -z "$DEPDIR" && continue
15606 am__include=`sed -n 's/^am__include = //p' < "$mf"`
15607 test -z "am__include" && continue
15608 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
15609 # When using ansi2knr, U may be empty or an underscore; expand it
15610 U=`sed -n 's/^U = //p' < "$mf"`
15611 # Find all dependency output files, they are included files with
15612 # $(DEPDIR) in their names. We invoke sed twice because it is the
15613 # simplest approach to changing $(DEPDIR) to its actual value in the
15614 # expansion.
15615 for file in `sed -n "
15616 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
15617 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
15618 # Make sure the directory exists.
15619 test -f "$dirpart/$file" && continue
15620 fdir=`$as_dirname -- "$file" ||
15621 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15622 X"$file" : 'X\(//\)[^/]' \| \
15623 X"$file" : 'X\(//\)$' \| \
15624 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
15625 $as_echo X"$file" |
15626 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15627 s//\1/
15628 q
15629 }
15630 /^X\(\/\/\)[^/].*/{
15631 s//\1/
15632 q
15633 }
15634 /^X\(\/\/\)$/{
15635 s//\1/
15636 q
15637 }
15638 /^X\(\/\).*/{
15639 s//\1/
15640 q
15641 }
15642 s/.*/./; q'`
15643 as_dir=$dirpart/$fdir; as_fn_mkdir_p
15644 # echo "creating $dirpart/$file"
15645 echo '# dummy' > "$dirpart/$file"
15646 done
15647 done
15648 }
15649 ;;
15650 "libtool":C)
15651
15652 # See if we are running on zsh, and set the options which allow our
15653 # commands through without removal of \ escapes.
15654 if test -n "${ZSH_VERSION+set}" ; then
15655 setopt NO_GLOB_SUBST
15656 fi
15657
15658 cfgfile="${ofile}T"
15659 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
15660 $RM "$cfgfile"
15661
15662 cat <<_LT_EOF >> "$cfgfile"
15663 #! $SHELL
15664
15665 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
15666 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
15667 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
15668 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
15669 #
15670 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
15671 # 2006, 2007, 2008 Free Software Foundation, Inc.
15672 # Written by Gordon Matzigkeit, 1996
15673 #
15674 # This file is part of GNU Libtool.
15675 #
15676 # GNU Libtool is free software; you can redistribute it and/or
15677 # modify it under the terms of the GNU General Public License as
15678 # published by the Free Software Foundation; either version 2 of
15679 # the License, or (at your option) any later version.
15680 #
15681 # As a special exception to the GNU General Public License,
15682 # if you distribute this file as part of a program or library that
15683 # is built using GNU Libtool, you may include this file under the
15684 # same distribution terms that you use for the rest of that program.
15685 #
15686 # GNU Libtool is distributed in the hope that it will be useful,
15687 # but WITHOUT ANY WARRANTY; without even the implied warranty of
15688 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15689 # GNU General Public License for more details.
15690 #
15691 # You should have received a copy of the GNU General Public License
15692 # along with GNU Libtool; see the file COPYING. If not, a copy
15693 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
15694 # obtained by writing to the Free Software Foundation, Inc.,
15695 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
15696
15697
15698 # The names of the tagged configurations supported by this script.
15699 available_tags=""
15700
15701 # ### BEGIN LIBTOOL CONFIG
15702
15703 # Which release of libtool.m4 was used?
15704 macro_version=$macro_version
15705 macro_revision=$macro_revision
15706
15707 # Whether or not to build shared libraries.
15708 build_libtool_libs=$enable_shared
15709
15710 # Whether or not to build static libraries.
15711 build_old_libs=$enable_static
15712
15713 # What type of objects to build.
15714 pic_mode=$pic_mode
15715
15716 # Whether or not to optimize for fast installation.
15717 fast_install=$enable_fast_install
15718
15719 # The host system.
15720 host_alias=$host_alias
15721 host=$host
15722 host_os=$host_os
15723
15724 # The build system.
15725 build_alias=$build_alias
15726 build=$build
15727 build_os=$build_os
15728
15729 # A sed program that does not truncate output.
15730 SED=$lt_SED
15731
15732 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
15733 Xsed="\$SED -e 1s/^X//"
15734
15735 # A grep program that handles long lines.
15736 GREP=$lt_GREP
15737
15738 # An ERE matcher.
15739 EGREP=$lt_EGREP
15740
15741 # A literal string matcher.
15742 FGREP=$lt_FGREP
15743
15744 # A BSD- or MS-compatible name lister.
15745 NM=$lt_NM
15746
15747 # Whether we need soft or hard links.
15748 LN_S=$lt_LN_S
15749
15750 # What is the maximum length of a command?
15751 max_cmd_len=$max_cmd_len
15752
15753 # Object file suffix (normally "o").
15754 objext=$ac_objext
15755
15756 # Executable file suffix (normally "").
15757 exeext=$exeext
15758
15759 # whether the shell understands "unset".
15760 lt_unset=$lt_unset
15761
15762 # turn spaces into newlines.
15763 SP2NL=$lt_lt_SP2NL
15764
15765 # turn newlines into spaces.
15766 NL2SP=$lt_lt_NL2SP
15767
15768 # How to create reloadable object files.
15769 reload_flag=$lt_reload_flag
15770 reload_cmds=$lt_reload_cmds
15771
15772 # An object symbol dumper.
15773 OBJDUMP=$lt_OBJDUMP
15774
15775 # Method to check whether dependent libraries are shared objects.
15776 deplibs_check_method=$lt_deplibs_check_method
15777
15778 # Command to use when deplibs_check_method == "file_magic".
15779 file_magic_cmd=$lt_file_magic_cmd
15780
15781 # The archiver.
15782 AR=$lt_AR
15783 AR_FLAGS=$lt_AR_FLAGS
15784
15785 # A symbol stripping program.
15786 STRIP=$lt_STRIP
15787
15788 # Commands used to install an old-style archive.
15789 RANLIB=$lt_RANLIB
15790 old_postinstall_cmds=$lt_old_postinstall_cmds
15791 old_postuninstall_cmds=$lt_old_postuninstall_cmds
15792
15793 # A C compiler.
15794 LTCC=$lt_CC
15795
15796 # LTCC compiler flags.
15797 LTCFLAGS=$lt_CFLAGS
15798
15799 # Take the output of nm and produce a listing of raw symbols and C names.
15800 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
15801
15802 # Transform the output of nm in a proper C declaration.
15803 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
15804
15805 # Transform the output of nm in a C name address pair.
15806 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
15807
15808 # Transform the output of nm in a C name address pair when lib prefix is needed.
15809 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
15810
15811 # The name of the directory that contains temporary libtool files.
15812 objdir=$objdir
15813
15814 # Shell to use when invoking shell scripts.
15815 SHELL=$lt_SHELL
15816
15817 # An echo program that does not interpret backslashes.
15818 ECHO=$lt_ECHO
15819
15820 # Used to examine libraries when file_magic_cmd begins with "file".
15821 MAGIC_CMD=$MAGIC_CMD
15822
15823 # Must we lock files when doing compilation?
15824 need_locks=$lt_need_locks
15825
15826 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
15827 DSYMUTIL=$lt_DSYMUTIL
15828
15829 # Tool to change global to local symbols on Mac OS X.
15830 NMEDIT=$lt_NMEDIT
15831
15832 # Tool to manipulate fat objects and archives on Mac OS X.
15833 LIPO=$lt_LIPO
15834
15835 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
15836 OTOOL=$lt_OTOOL
15837
15838 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
15839 OTOOL64=$lt_OTOOL64
15840
15841 # Old archive suffix (normally "a").
15842 libext=$libext
15843
15844 # Shared library suffix (normally ".so").
15845 shrext_cmds=$lt_shrext_cmds
15846
15847 # The commands to extract the exported symbol list from a shared archive.
15848 extract_expsyms_cmds=$lt_extract_expsyms_cmds
15849
15850 # Variables whose values should be saved in libtool wrapper scripts and
15851 # restored at link time.
15852 variables_saved_for_relink=$lt_variables_saved_for_relink
15853
15854 # Do we need the "lib" prefix for modules?
15855 need_lib_prefix=$need_lib_prefix
15856
15857 # Do we need a version for libraries?
15858 need_version=$need_version
15859
15860 # Library versioning type.
15861 version_type=$version_type
15862
15863 # Shared library runtime path variable.
15864 runpath_var=$runpath_var
15865
15866 # Shared library path variable.
15867 shlibpath_var=$shlibpath_var
15868
15869 # Is shlibpath searched before the hard-coded library search path?
15870 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
15871
15872 # Format of library name prefix.
15873 libname_spec=$lt_libname_spec
15874
15875 # List of archive names. First name is the real one, the rest are links.
15876 # The last name is the one that the linker finds with -lNAME
15877 library_names_spec=$lt_library_names_spec
15878
15879 # The coded name of the library, if different from the real name.
15880 soname_spec=$lt_soname_spec
15881
15882 # Command to use after installation of a shared archive.
15883 postinstall_cmds=$lt_postinstall_cmds
15884
15885 # Command to use after uninstallation of a shared archive.
15886 postuninstall_cmds=$lt_postuninstall_cmds
15887
15888 # Commands used to finish a libtool library installation in a directory.
15889 finish_cmds=$lt_finish_cmds
15890
15891 # As "finish_cmds", except a single script fragment to be evaled but
15892 # not shown.
15893 finish_eval=$lt_finish_eval
15894
15895 # Whether we should hardcode library paths into libraries.
15896 hardcode_into_libs=$hardcode_into_libs
15897
15898 # Compile-time system search path for libraries.
15899 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
15900
15901 # Run-time system search path for libraries.
15902 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
15903
15904 # Whether dlopen is supported.
15905 dlopen_support=$enable_dlopen
15906
15907 # Whether dlopen of programs is supported.
15908 dlopen_self=$enable_dlopen_self
15909
15910 # Whether dlopen of statically linked programs is supported.
15911 dlopen_self_static=$enable_dlopen_self_static
15912
15913 # Commands to strip libraries.
15914 old_striplib=$lt_old_striplib
15915 striplib=$lt_striplib
15916
15917
15918 # The linker used to build libraries.
15919 LD=$lt_LD
15920
15921 # Commands used to build an old-style archive.
15922 old_archive_cmds=$lt_old_archive_cmds
15923
15924 # A language specific compiler.
15925 CC=$lt_compiler
15926
15927 # Is the compiler the GNU compiler?
15928 with_gcc=$GCC
15929
15930 # Compiler flag to turn off builtin functions.
15931 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
15932
15933 # How to pass a linker flag through the compiler.
15934 wl=$lt_lt_prog_compiler_wl
15935
15936 # Additional compiler flags for building library objects.
15937 pic_flag=$lt_lt_prog_compiler_pic
15938
15939 # Compiler flag to prevent dynamic linking.
15940 link_static_flag=$lt_lt_prog_compiler_static
15941
15942 # Does compiler simultaneously support -c and -o options?
15943 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
15944
15945 # Whether or not to add -lc for building shared libraries.
15946 build_libtool_need_lc=$archive_cmds_need_lc
15947
15948 # Whether or not to disallow shared libs when runtime libs are static.
15949 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
15950
15951 # Compiler flag to allow reflexive dlopens.
15952 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
15953
15954 # Compiler flag to generate shared objects directly from archives.
15955 whole_archive_flag_spec=$lt_whole_archive_flag_spec
15956
15957 # Whether the compiler copes with passing no objects directly.
15958 compiler_needs_object=$lt_compiler_needs_object
15959
15960 # Create an old-style archive from a shared archive.
15961 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
15962
15963 # Create a temporary old-style archive to link instead of a shared archive.
15964 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
15965
15966 # Commands used to build a shared archive.
15967 archive_cmds=$lt_archive_cmds
15968 archive_expsym_cmds=$lt_archive_expsym_cmds
15969
15970 # Commands used to build a loadable module if different from building
15971 # a shared archive.
15972 module_cmds=$lt_module_cmds
15973 module_expsym_cmds=$lt_module_expsym_cmds
15974
15975 # Whether we are building with GNU ld or not.
15976 with_gnu_ld=$lt_with_gnu_ld
15977
15978 # Flag that allows shared libraries with undefined symbols to be built.
15979 allow_undefined_flag=$lt_allow_undefined_flag
15980
15981 # Flag that enforces no undefined symbols.
15982 no_undefined_flag=$lt_no_undefined_flag
15983
15984 # Flag to hardcode \$libdir into a binary during linking.
15985 # This must work even if \$libdir does not exist
15986 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
15987
15988 # If ld is used when linking, flag to hardcode \$libdir into a binary
15989 # during linking. This must work even if \$libdir does not exist.
15990 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
15991
15992 # Whether we need a single "-rpath" flag with a separated argument.
15993 hardcode_libdir_separator=$lt_hardcode_libdir_separator
15994
15995 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
15996 # DIR into the resulting binary.
15997 hardcode_direct=$hardcode_direct
15998
15999 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
16000 # DIR into the resulting binary and the resulting library dependency is
16001 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
16002 # library is relocated.
16003 hardcode_direct_absolute=$hardcode_direct_absolute
16004
16005 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
16006 # into the resulting binary.
16007 hardcode_minus_L=$hardcode_minus_L
16008
16009 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
16010 # into the resulting binary.
16011 hardcode_shlibpath_var=$hardcode_shlibpath_var
16012
16013 # Set to "yes" if building a shared library automatically hardcodes DIR
16014 # into the library and all subsequent libraries and executables linked
16015 # against it.
16016 hardcode_automatic=$hardcode_automatic
16017
16018 # Set to yes if linker adds runtime paths of dependent libraries
16019 # to runtime path list.
16020 inherit_rpath=$inherit_rpath
16021
16022 # Whether libtool must link a program against all its dependency libraries.
16023 link_all_deplibs=$link_all_deplibs
16024
16025 # Fix the shell variable \$srcfile for the compiler.
16026 fix_srcfile_path=$lt_fix_srcfile_path
16027
16028 # Set to "yes" if exported symbols are required.
16029 always_export_symbols=$always_export_symbols
16030
16031 # The commands to list exported symbols.
16032 export_symbols_cmds=$lt_export_symbols_cmds
16033
16034 # Symbols that should not be listed in the preloaded symbols.
16035 exclude_expsyms=$lt_exclude_expsyms
16036
16037 # Symbols that must always be exported.
16038 include_expsyms=$lt_include_expsyms
16039
16040 # Commands necessary for linking programs (against libraries) with templates.
16041 prelink_cmds=$lt_prelink_cmds
16042
16043 # Specify filename containing input files.
16044 file_list_spec=$lt_file_list_spec
16045
16046 # How to hardcode a shared library path into an executable.
16047 hardcode_action=$hardcode_action
16048
16049 # ### END LIBTOOL CONFIG
16050
16051 _LT_EOF
16052
16053 case $host_os in
16054 aix3*)
16055 cat <<\_LT_EOF >> "$cfgfile"
16056 # AIX sometimes has problems with the GCC collect2 program. For some
16057 # reason, if we set the COLLECT_NAMES environment variable, the problems
16058 # vanish in a puff of smoke.
16059 if test "X${COLLECT_NAMES+set}" != Xset; then
16060 COLLECT_NAMES=
16061 export COLLECT_NAMES
16062 fi
16063 _LT_EOF
16064 ;;
16065 esac
16066
16067
16068 ltmain="$ac_aux_dir/ltmain.sh"
16069
16070
16071 # We use sed instead of cat because bash on DJGPP gets confused if
16072 # if finds mixed CR/LF and LF-only lines. Since sed operates in
16073 # text mode, it properly converts lines to CR/LF. This bash problem
16074 # is reportedly fixed, but why not run on old versions too?
16075 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
16076 || (rm -f "$cfgfile"; exit 1)
16077
16078 case $xsi_shell in
16079 yes)
16080 cat << \_LT_EOF >> "$cfgfile"
16081
16082 # func_dirname file append nondir_replacement
16083 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
16084 # otherwise set result to NONDIR_REPLACEMENT.
16085 func_dirname ()
16086 {
16087 case ${1} in
16088 */*) func_dirname_result="${1%/*}${2}" ;;
16089 * ) func_dirname_result="${3}" ;;
16090 esac
16091 }
16092
16093 # func_basename file
16094 func_basename ()
16095 {
16096 func_basename_result="${1##*/}"
16097 }
16098
16099 # func_dirname_and_basename file append nondir_replacement
16100 # perform func_basename and func_dirname in a single function
16101 # call:
16102 # dirname: Compute the dirname of FILE. If nonempty,
16103 # add APPEND to the result, otherwise set result
16104 # to NONDIR_REPLACEMENT.
16105 # value returned in "$func_dirname_result"
16106 # basename: Compute filename of FILE.
16107 # value retuned in "$func_basename_result"
16108 # Implementation must be kept synchronized with func_dirname
16109 # and func_basename. For efficiency, we do not delegate to
16110 # those functions but instead duplicate the functionality here.
16111 func_dirname_and_basename ()
16112 {
16113 case ${1} in
16114 */*) func_dirname_result="${1%/*}${2}" ;;
16115 * ) func_dirname_result="${3}" ;;
16116 esac
16117 func_basename_result="${1##*/}"
16118 }
16119
16120 # func_stripname prefix suffix name
16121 # strip PREFIX and SUFFIX off of NAME.
16122 # PREFIX and SUFFIX must not contain globbing or regex special
16123 # characters, hashes, percent signs, but SUFFIX may contain a leading
16124 # dot (in which case that matches only a dot).
16125 func_stripname ()
16126 {
16127 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
16128 # positional parameters, so assign one to ordinary parameter first.
16129 func_stripname_result=${3}
16130 func_stripname_result=${func_stripname_result#"${1}"}
16131 func_stripname_result=${func_stripname_result%"${2}"}
16132 }
16133
16134 # func_opt_split
16135 func_opt_split ()
16136 {
16137 func_opt_split_opt=${1%%=*}
16138 func_opt_split_arg=${1#*=}
16139 }
16140
16141 # func_lo2o object
16142 func_lo2o ()
16143 {
16144 case ${1} in
16145 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
16146 *) func_lo2o_result=${1} ;;
16147 esac
16148 }
16149
16150 # func_xform libobj-or-source
16151 func_xform ()
16152 {
16153 func_xform_result=${1%.*}.lo
16154 }
16155
16156 # func_arith arithmetic-term...
16157 func_arith ()
16158 {
16159 func_arith_result=$(( $* ))
16160 }
16161
16162 # func_len string
16163 # STRING may not start with a hyphen.
16164 func_len ()
16165 {
16166 func_len_result=${#1}
16167 }
16168
16169 _LT_EOF
16170 ;;
16171 *) # Bourne compatible functions.
16172 cat << \_LT_EOF >> "$cfgfile"
16173
16174 # func_dirname file append nondir_replacement
16175 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
16176 # otherwise set result to NONDIR_REPLACEMENT.
16177 func_dirname ()
16178 {
16179 # Extract subdirectory from the argument.
16180 func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
16181 if test "X$func_dirname_result" = "X${1}"; then
16182 func_dirname_result="${3}"
16183 else
16184 func_dirname_result="$func_dirname_result${2}"
16185 fi
16186 }
16187
16188 # func_basename file
16189 func_basename ()
16190 {
16191 func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
16192 }
16193
16194
16195 # func_stripname prefix suffix name
16196 # strip PREFIX and SUFFIX off of NAME.
16197 # PREFIX and SUFFIX must not contain globbing or regex special
16198 # characters, hashes, percent signs, but SUFFIX may contain a leading
16199 # dot (in which case that matches only a dot).
16200 # func_strip_suffix prefix name
16201 func_stripname ()
16202 {
16203 case ${2} in
16204 .*) func_stripname_result=`$ECHO "X${3}" \
16205 | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
16206 *) func_stripname_result=`$ECHO "X${3}" \
16207 | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
16208 esac
16209 }
16210
16211 # sed scripts:
16212 my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
16213 my_sed_long_arg='1s/^-[^=]*=//'
16214
16215 # func_opt_split
16216 func_opt_split ()
16217 {
16218 func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
16219 func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
16220 }
16221
16222 # func_lo2o object
16223 func_lo2o ()
16224 {
16225 func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
16226 }
16227
16228 # func_xform libobj-or-source
16229 func_xform ()
16230 {
16231 func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'`
16232 }
16233
16234 # func_arith arithmetic-term...
16235 func_arith ()
16236 {
16237 func_arith_result=`expr "$@"`
16238 }
16239
16240 # func_len string
16241 # STRING may not start with a hyphen.
16242 func_len ()
16243 {
16244 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
16245 }
16246
16247 _LT_EOF
16248 esac
16249
16250 case $lt_shell_append in
16251 yes)
16252 cat << \_LT_EOF >> "$cfgfile"
16253
16254 # func_append var value
16255 # Append VALUE to the end of shell variable VAR.
16256 func_append ()
16257 {
16258 eval "$1+=\$2"
16259 }
16260 _LT_EOF
16261 ;;
16262 *)
16263 cat << \_LT_EOF >> "$cfgfile"
16264
16265 # func_append var value
16266 # Append VALUE to the end of shell variable VAR.
16267 func_append ()
16268 {
16269 eval "$1=\$$1\$2"
16270 }
16271
16272 _LT_EOF
16273 ;;
16274 esac
16275
16276
16277 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
16278 || (rm -f "$cfgfile"; exit 1)
16279
16280 mv -f "$cfgfile" "$ofile" ||
16281 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
16282 chmod +x "$ofile"
16283
16284 ;;
16285 "default-1":C)
16286 for ac_file in $CONFIG_FILES; do
16287 # Support "outfile[:infile[:infile...]]"
16288 case "$ac_file" in
16289 *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
16290 esac
16291 # PO directories have a Makefile.in generated from Makefile.in.in.
16292 case "$ac_file" in */Makefile.in)
16293 # Adjust a relative srcdir.
16294 ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
16295 ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
16296 ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
16297 # In autoconf-2.13 it is called $ac_given_srcdir.
16298 # In autoconf-2.50 it is called $srcdir.
16299 test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
16300 case "$ac_given_srcdir" in
16301 .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
16302 /*) top_srcdir="$ac_given_srcdir" ;;
16303 *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
16304 esac
16305 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
16306 rm -f "$ac_dir/POTFILES"
16307 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
16308 cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
16309 POMAKEFILEDEPS="POTFILES.in"
16310 # ALL_LINGUAS, POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES depend
16311 # on $ac_dir but don't depend on user-specified configuration
16312 # parameters.
16313 if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
16314 # The LINGUAS file contains the set of available languages.
16315 if test -n "$OBSOLETE_ALL_LINGUAS"; then
16316 test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
16317 fi
16318 ALL_LINGUAS_=`sed -e "/^#/d" "$ac_given_srcdir/$ac_dir/LINGUAS"`
16319 # Hide the ALL_LINGUAS assigment from automake.
16320 eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
16321 POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
16322 else
16323 # The set of available languages was given in configure.in.
16324 eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
16325 fi
16326 case "$ac_given_srcdir" in
16327 .) srcdirpre= ;;
16328 *) srcdirpre='$(srcdir)/' ;;
16329 esac
16330 POFILES=
16331 GMOFILES=
16332 UPDATEPOFILES=
16333 DUMMYPOFILES=
16334 for lang in $ALL_LINGUAS; do
16335 POFILES="$POFILES $srcdirpre$lang.po"
16336 GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
16337 UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
16338 DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
16339 done
16340 # CATALOGS depends on both $ac_dir and the user's LINGUAS
16341 # environment variable.
16342 INST_LINGUAS=
16343 if test -n "$ALL_LINGUAS"; then
16344 for presentlang in $ALL_LINGUAS; do
16345 useit=no
16346 if test "%UNSET%" != "$LINGUAS"; then
16347 desiredlanguages="$LINGUAS"
16348 else
16349 desiredlanguages="$ALL_LINGUAS"
16350 fi
16351 for desiredlang in $desiredlanguages; do
16352 # Use the presentlang catalog if desiredlang is
16353 # a. equal to presentlang, or
16354 # b. a variant of presentlang (because in this case,
16355 # presentlang can be used as a fallback for messages
16356 # which are not translated in the desiredlang catalog).
16357 case "$desiredlang" in
16358 "$presentlang"*) useit=yes;;
16359 esac
16360 done
16361 if test $useit = yes; then
16362 INST_LINGUAS="$INST_LINGUAS $presentlang"
16363 fi
16364 done
16365 fi
16366 CATALOGS=
16367 if test -n "$INST_LINGUAS"; then
16368 for lang in $INST_LINGUAS; do
16369 CATALOGS="$CATALOGS $lang.gmo"
16370 done
16371 fi
16372 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
16373 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"
16374 for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
16375 if test -f "$f"; then
16376 case "$f" in
16377 *.orig | *.bak | *~) ;;
16378 *) cat "$f" >> "$ac_dir/Makefile" ;;
16379 esac
16380 fi
16381 done
16382 fi
16383 ;;
16384 esac
16385 done ;;
16386
16387 esac
16388 done # for ac_tag
16389
16390
16391 as_fn_exit 0
16392 _ACEOF
16393 ac_clean_files=$ac_clean_files_save
16394
16395 test $ac_write_fail = 0 ||
16396 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
16397
16398
16399 # configure is writing to config.log, and then calls config.status.
16400 # config.status does its own redirection, appending to config.log.
16401 # Unfortunately, on DOS this fails, as config.log is still kept open
16402 # by configure, so config.status won't be able to write to it; its
16403 # output is simply discarded. So we exec the FD to /dev/null,
16404 # effectively closing config.log, so it can be properly (re)opened and
16405 # appended to by config.status. When coming back to configure, we
16406 # need to make the FD available again.
16407 if test "$no_create" != yes; then
16408 ac_cs_success=:
16409 ac_config_status_args=
16410 test "$silent" = yes &&
16411 ac_config_status_args="$ac_config_status_args --quiet"
16412 exec 5>/dev/null
16413 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
16414 exec 5>>config.log
16415 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
16416 # would make configure fail if this is the last instruction.
16417 $ac_cs_success || as_fn_exit $?
16418 fi
16419 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
16420 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
16421 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
16422 fi
16423
This page took 0.530554 seconds and 4 git commands to generate.