* configure: Regenerate.
[deliverable/binutils-gdb.git] / ld / 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
174 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
175 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
176 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
177 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
178 PATH=/empty FPATH=/empty; export PATH FPATH
179 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
180 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1"
181 if (eval "$as_required") 2>/dev/null; then :
182 as_have_required=yes
183 else
184 as_have_required=no
185 fi
186 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
187
188 else
189 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
190 as_found=false
191 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
192 do
193 IFS=$as_save_IFS
194 test -z "$as_dir" && as_dir=.
195 as_found=:
196 case $as_dir in #(
197 /*)
198 for as_base in sh bash ksh sh5; do
199 # Try only shells that exist, to save several forks.
200 as_shell=$as_dir/$as_base
201 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
202 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
203 CONFIG_SHELL=$as_shell as_have_required=yes
204 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
205 break 2
206 fi
207 fi
208 done;;
209 esac
210 as_found=false
211 done
212 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
213 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
214 CONFIG_SHELL=$SHELL as_have_required=yes
215 fi; }
216 IFS=$as_save_IFS
217
218
219 if test "x$CONFIG_SHELL" != x; then :
220 # We cannot yet assume a decent shell, so we have to provide a
221 # neutralization value for shells without unset; and this also
222 # works around shells that cannot unset nonexistent variables.
223 BASH_ENV=/dev/null
224 ENV=/dev/null
225 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
226 export CONFIG_SHELL
227 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
228 fi
229
230 if test x$as_have_required = xno; then :
231 $as_echo "$0: This script requires a shell more modern than all"
232 $as_echo "$0: the shells that I found on your system."
233 if test x${ZSH_VERSION+set} = xset ; then
234 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
235 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
236 else
237 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
238 $0: including any error possibly output before this
239 $0: message. Then install a modern shell, or manually run
240 $0: the script under such a shell if you do have one."
241 fi
242 exit 1
243 fi
244 fi
245 fi
246 SHELL=${CONFIG_SHELL-/bin/sh}
247 export SHELL
248 # Unset more variables known to interfere with behavior of common tools.
249 CLICOLOR_FORCE= GREP_OPTIONS=
250 unset CLICOLOR_FORCE GREP_OPTIONS
251
252 ## --------------------- ##
253 ## M4sh Shell Functions. ##
254 ## --------------------- ##
255 # as_fn_unset VAR
256 # ---------------
257 # Portably unset VAR.
258 as_fn_unset ()
259 {
260 { eval $1=; unset $1;}
261 }
262 as_unset=as_fn_unset
263
264 # as_fn_set_status STATUS
265 # -----------------------
266 # Set $? to STATUS, without forking.
267 as_fn_set_status ()
268 {
269 return $1
270 } # as_fn_set_status
271
272 # as_fn_exit STATUS
273 # -----------------
274 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
275 as_fn_exit ()
276 {
277 set +e
278 as_fn_set_status $1
279 exit $1
280 } # as_fn_exit
281
282 # as_fn_mkdir_p
283 # -------------
284 # Create "$as_dir" as a directory, including parents if necessary.
285 as_fn_mkdir_p ()
286 {
287
288 case $as_dir in #(
289 -*) as_dir=./$as_dir;;
290 esac
291 test -d "$as_dir" || eval $as_mkdir_p || {
292 as_dirs=
293 while :; do
294 case $as_dir in #(
295 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
296 *) as_qdir=$as_dir;;
297 esac
298 as_dirs="'$as_qdir' $as_dirs"
299 as_dir=`$as_dirname -- "$as_dir" ||
300 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
301 X"$as_dir" : 'X\(//\)[^/]' \| \
302 X"$as_dir" : 'X\(//\)$' \| \
303 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
304 $as_echo X"$as_dir" |
305 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
306 s//\1/
307 q
308 }
309 /^X\(\/\/\)[^/].*/{
310 s//\1/
311 q
312 }
313 /^X\(\/\/\)$/{
314 s//\1/
315 q
316 }
317 /^X\(\/\).*/{
318 s//\1/
319 q
320 }
321 s/.*/./; q'`
322 test -d "$as_dir" && break
323 done
324 test -z "$as_dirs" || eval "mkdir $as_dirs"
325 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
326
327
328 } # as_fn_mkdir_p
329 # as_fn_append VAR VALUE
330 # ----------------------
331 # Append the text in VALUE to the end of the definition contained in VAR. Take
332 # advantage of any shell optimizations that allow amortized linear growth over
333 # repeated appends, instead of the typical quadratic growth present in naive
334 # implementations.
335 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
336 eval 'as_fn_append ()
337 {
338 eval $1+=\$2
339 }'
340 else
341 as_fn_append ()
342 {
343 eval $1=\$$1\$2
344 }
345 fi # as_fn_append
346
347 # as_fn_arith ARG...
348 # ------------------
349 # Perform arithmetic evaluation on the ARGs, and store the result in the
350 # global $as_val. Take advantage of shells that can avoid forks. The arguments
351 # must be portable across $(()) and expr.
352 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
353 eval 'as_fn_arith ()
354 {
355 as_val=$(( $* ))
356 }'
357 else
358 as_fn_arith ()
359 {
360 as_val=`expr "$@" || test $? -eq 1`
361 }
362 fi # as_fn_arith
363
364
365 # as_fn_error ERROR [LINENO LOG_FD]
366 # ---------------------------------
367 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
368 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
369 # script with status $?, using 1 if that was 0.
370 as_fn_error ()
371 {
372 as_status=$?; test $as_status -eq 0 && as_status=1
373 if test "$3"; then
374 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
375 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
376 fi
377 $as_echo "$as_me: error: $1" >&2
378 as_fn_exit $as_status
379 } # as_fn_error
380
381 if expr a : '\(a\)' >/dev/null 2>&1 &&
382 test "X`expr 00001 : '.*\(...\)'`" = X001; then
383 as_expr=expr
384 else
385 as_expr=false
386 fi
387
388 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
389 as_basename=basename
390 else
391 as_basename=false
392 fi
393
394 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
395 as_dirname=dirname
396 else
397 as_dirname=false
398 fi
399
400 as_me=`$as_basename -- "$0" ||
401 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
402 X"$0" : 'X\(//\)$' \| \
403 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
404 $as_echo X/"$0" |
405 sed '/^.*\/\([^/][^/]*\)\/*$/{
406 s//\1/
407 q
408 }
409 /^X\/\(\/\/\)$/{
410 s//\1/
411 q
412 }
413 /^X\/\(\/\).*/{
414 s//\1/
415 q
416 }
417 s/.*/./; q'`
418
419 # Avoid depending upon Character Ranges.
420 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
421 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
422 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
423 as_cr_digits='0123456789'
424 as_cr_alnum=$as_cr_Letters$as_cr_digits
425
426
427 as_lineno_1=$LINENO as_lineno_1a=$LINENO
428 as_lineno_2=$LINENO as_lineno_2a=$LINENO
429 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
430 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
431 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
432 sed -n '
433 p
434 /[$]LINENO/=
435 ' <$as_myself |
436 sed '
437 s/[$]LINENO.*/&-/
438 t lineno
439 b
440 :lineno
441 N
442 :loop
443 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
444 t loop
445 s/-\n.*//
446 ' >$as_me.lineno &&
447 chmod +x "$as_me.lineno" ||
448 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
449
450 # Don't try to exec as it changes $[0], causing all sort of problems
451 # (the dirname of $[0] is not the place where we might find the
452 # original and so on. Autoconf is especially sensitive to this).
453 . "./$as_me.lineno"
454 # Exit status is that of the last command.
455 exit
456 }
457
458 ECHO_C= ECHO_N= ECHO_T=
459 case `echo -n x` in #(((((
460 -n*)
461 case `echo 'xy\c'` in
462 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
463 xy) ECHO_C='\c';;
464 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
465 ECHO_T=' ';;
466 esac;;
467 *)
468 ECHO_N='-n';;
469 esac
470
471 rm -f conf$$ conf$$.exe conf$$.file
472 if test -d conf$$.dir; then
473 rm -f conf$$.dir/conf$$.file
474 else
475 rm -f conf$$.dir
476 mkdir conf$$.dir 2>/dev/null
477 fi
478 if (echo >conf$$.file) 2>/dev/null; then
479 if ln -s conf$$.file conf$$ 2>/dev/null; then
480 as_ln_s='ln -s'
481 # ... but there are two gotchas:
482 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
483 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
484 # In both cases, we have to default to `cp -p'.
485 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
486 as_ln_s='cp -p'
487 elif ln conf$$.file conf$$ 2>/dev/null; then
488 as_ln_s=ln
489 else
490 as_ln_s='cp -p'
491 fi
492 else
493 as_ln_s='cp -p'
494 fi
495 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
496 rmdir conf$$.dir 2>/dev/null
497
498 if mkdir -p . 2>/dev/null; then
499 as_mkdir_p='mkdir -p "$as_dir"'
500 else
501 test -d ./-p && rmdir ./-p
502 as_mkdir_p=false
503 fi
504
505 if test -x / >/dev/null 2>&1; then
506 as_test_x='test -x'
507 else
508 if ls -dL / >/dev/null 2>&1; then
509 as_ls_L_option=L
510 else
511 as_ls_L_option=
512 fi
513 as_test_x='
514 eval sh -c '\''
515 if test -d "$1"; then
516 test -d "$1/.";
517 else
518 case $1 in #(
519 -*)set "./$1";;
520 esac;
521 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
522 ???[sx]*):;;*)false;;esac;fi
523 '\'' sh
524 '
525 fi
526 as_executable_p=$as_test_x
527
528 # Sed expression to map a string onto a valid CPP name.
529 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
530
531 # Sed expression to map a string onto a valid variable name.
532 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
533
534 SHELL=${CONFIG_SHELL-/bin/sh}
535
536
537 exec 7<&0 </dev/null 6>&1
538
539 # Name of the host.
540 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
541 # so uname gets run too.
542 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
543
544 #
545 # Initializations.
546 #
547 ac_default_prefix=/usr/local
548 ac_clean_files=
549 ac_config_libobj_dir=.
550 LIBOBJS=
551 cross_compiling=no
552 subdirs=
553 MFLAGS=
554 MAKEFLAGS=
555
556 # Identity of this package.
557 PACKAGE_NAME=
558 PACKAGE_TARNAME=
559 PACKAGE_VERSION=
560 PACKAGE_STRING=
561 PACKAGE_BUGREPORT=
562 PACKAGE_URL=
563
564 ac_unique_file="ldmain.c"
565 # Factoring default headers for most tests.
566 ac_includes_default="\
567 #include <stdio.h>
568 #ifdef HAVE_SYS_TYPES_H
569 # include <sys/types.h>
570 #endif
571 #ifdef HAVE_SYS_STAT_H
572 # include <sys/stat.h>
573 #endif
574 #ifdef STDC_HEADERS
575 # include <stdlib.h>
576 # include <stddef.h>
577 #else
578 # ifdef HAVE_STDLIB_H
579 # include <stdlib.h>
580 # endif
581 #endif
582 #ifdef HAVE_STRING_H
583 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
584 # include <memory.h>
585 # endif
586 # include <string.h>
587 #endif
588 #ifdef HAVE_STRINGS_H
589 # include <strings.h>
590 #endif
591 #ifdef HAVE_INTTYPES_H
592 # include <inttypes.h>
593 #endif
594 #ifdef HAVE_STDINT_H
595 # include <stdint.h>
596 #endif
597 #ifdef HAVE_UNISTD_H
598 # include <unistd.h>
599 #endif"
600
601 ac_subst_vars='am__EXEEXT_FALSE
602 am__EXEEXT_TRUE
603 LTLIBOBJS
604 LIBOBJS
605 TESTBFDLIB
606 EMULATION_LIBPATH
607 LIB_PATH
608 EMUL_EXTRA_OFILES
609 EMULATION_OFILES
610 EMUL
611 STRINGIFY
612 NATIVE_LIB_DIRS
613 HOSTING_LIBS
614 HOSTING_CRT0
615 HDEFINES
616 do_compare
617 GENINSRC_NEVER_FALSE
618 GENINSRC_NEVER_TRUE
619 LEXLIB
620 LEX_OUTPUT_ROOT
621 LEX
622 YFLAGS
623 YACC
624 MSGMERGE
625 MSGFMT
626 MKINSTALLDIRS
627 CATOBJEXT
628 GENCAT
629 INSTOBJEXT
630 DATADIRNAME
631 CATALOGS
632 POSUB
633 GMSGFMT
634 XGETTEXT
635 INCINTL
636 LIBINTL_DEP
637 LIBINTL
638 USE_NLS
639 OTOOL64
640 OTOOL
641 LIPO
642 NMEDIT
643 DSYMUTIL
644 RANLIB
645 AR
646 OBJDUMP
647 LN_S
648 NM
649 ac_ct_DUMPBIN
650 DUMPBIN
651 LD
652 FGREP
653 SED
654 LIBTOOL
655 NO_WERROR
656 WARN_CFLAGS
657 EGREP
658 GREP
659 CPP
660 TARGET_SYSTEM_ROOT_DEFINE
661 TARGET_SYSTEM_ROOT
662 use_sysroot
663 MAINT
664 MAINTAINER_MODE_FALSE
665 MAINTAINER_MODE_TRUE
666 am__fastdepCC_FALSE
667 am__fastdepCC_TRUE
668 CCDEPMODE
669 AMDEPBACKSLASH
670 AMDEP_FALSE
671 AMDEP_TRUE
672 am__quote
673 am__include
674 DEPDIR
675 am__untar
676 am__tar
677 AMTAR
678 am__leading_dot
679 SET_MAKE
680 AWK
681 mkdir_p
682 MKDIR_P
683 INSTALL_STRIP_PROGRAM
684 STRIP
685 install_sh
686 MAKEINFO
687 AUTOHEADER
688 AUTOMAKE
689 AUTOCONF
690 ACLOCAL
691 VERSION
692 PACKAGE
693 CYGPATH_W
694 am__isrc
695 INSTALL_DATA
696 INSTALL_SCRIPT
697 INSTALL_PROGRAM
698 OBJEXT
699 EXEEXT
700 ac_ct_CC
701 CPPFLAGS
702 LDFLAGS
703 CFLAGS
704 CC
705 target_os
706 target_vendor
707 target_cpu
708 target
709 host_os
710 host_vendor
711 host_cpu
712 host
713 build_os
714 build_vendor
715 build_cpu
716 build
717 target_alias
718 host_alias
719 build_alias
720 LIBS
721 ECHO_T
722 ECHO_N
723 ECHO_C
724 DEFS
725 mandir
726 localedir
727 libdir
728 psdir
729 pdfdir
730 dvidir
731 htmldir
732 infodir
733 docdir
734 oldincludedir
735 includedir
736 localstatedir
737 sharedstatedir
738 sysconfdir
739 datadir
740 datarootdir
741 libexecdir
742 sbindir
743 bindir
744 program_transform_name
745 prefix
746 exec_prefix
747 PACKAGE_URL
748 PACKAGE_BUGREPORT
749 PACKAGE_STRING
750 PACKAGE_VERSION
751 PACKAGE_TARNAME
752 PACKAGE_NAME
753 PATH_SEPARATOR
754 SHELL'
755 ac_subst_files='TDIRS'
756 ac_user_opts='
757 enable_option_checking
758 enable_dependency_tracking
759 enable_maintainer_mode
760 with_lib_path
761 enable_targets
762 enable_64_bit_bfd
763 with_sysroot
764 enable_got
765 enable_werror
766 enable_build_warnings
767 enable_plugins
768 enable_largefile
769 enable_shared
770 enable_static
771 with_pic
772 enable_fast_install
773 with_gnu_ld
774 enable_libtool_lock
775 enable_nls
776 '
777 ac_precious_vars='build_alias
778 host_alias
779 target_alias
780 CC
781 CFLAGS
782 LDFLAGS
783 LIBS
784 CPPFLAGS
785 CPP
786 YACC
787 YFLAGS'
788
789
790 # Initialize some variables set by options.
791 ac_init_help=
792 ac_init_version=false
793 ac_unrecognized_opts=
794 ac_unrecognized_sep=
795 # The variables have the same names as the options, with
796 # dashes changed to underlines.
797 cache_file=/dev/null
798 exec_prefix=NONE
799 no_create=
800 no_recursion=
801 prefix=NONE
802 program_prefix=NONE
803 program_suffix=NONE
804 program_transform_name=s,x,x,
805 silent=
806 site=
807 srcdir=
808 verbose=
809 x_includes=NONE
810 x_libraries=NONE
811
812 # Installation directory options.
813 # These are left unexpanded so users can "make install exec_prefix=/foo"
814 # and all the variables that are supposed to be based on exec_prefix
815 # by default will actually change.
816 # Use braces instead of parens because sh, perl, etc. also accept them.
817 # (The list follows the same order as the GNU Coding Standards.)
818 bindir='${exec_prefix}/bin'
819 sbindir='${exec_prefix}/sbin'
820 libexecdir='${exec_prefix}/libexec'
821 datarootdir='${prefix}/share'
822 datadir='${datarootdir}'
823 sysconfdir='${prefix}/etc'
824 sharedstatedir='${prefix}/com'
825 localstatedir='${prefix}/var'
826 includedir='${prefix}/include'
827 oldincludedir='/usr/include'
828 docdir='${datarootdir}/doc/${PACKAGE}'
829 infodir='${datarootdir}/info'
830 htmldir='${docdir}'
831 dvidir='${docdir}'
832 pdfdir='${docdir}'
833 psdir='${docdir}'
834 libdir='${exec_prefix}/lib'
835 localedir='${datarootdir}/locale'
836 mandir='${datarootdir}/man'
837
838 ac_prev=
839 ac_dashdash=
840 for ac_option
841 do
842 # If the previous option needs an argument, assign it.
843 if test -n "$ac_prev"; then
844 eval $ac_prev=\$ac_option
845 ac_prev=
846 continue
847 fi
848
849 case $ac_option in
850 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
851 *) ac_optarg=yes ;;
852 esac
853
854 # Accept the important Cygnus configure options, so we can diagnose typos.
855
856 case $ac_dashdash$ac_option in
857 --)
858 ac_dashdash=yes ;;
859
860 -bindir | --bindir | --bindi | --bind | --bin | --bi)
861 ac_prev=bindir ;;
862 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
863 bindir=$ac_optarg ;;
864
865 -build | --build | --buil | --bui | --bu)
866 ac_prev=build_alias ;;
867 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
868 build_alias=$ac_optarg ;;
869
870 -cache-file | --cache-file | --cache-fil | --cache-fi \
871 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
872 ac_prev=cache_file ;;
873 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
874 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
875 cache_file=$ac_optarg ;;
876
877 --config-cache | -C)
878 cache_file=config.cache ;;
879
880 -datadir | --datadir | --datadi | --datad)
881 ac_prev=datadir ;;
882 -datadir=* | --datadir=* | --datadi=* | --datad=*)
883 datadir=$ac_optarg ;;
884
885 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
886 | --dataroo | --dataro | --datar)
887 ac_prev=datarootdir ;;
888 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
889 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
890 datarootdir=$ac_optarg ;;
891
892 -disable-* | --disable-*)
893 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
894 # Reject names that are not valid shell variable names.
895 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
896 as_fn_error "invalid feature name: $ac_useropt"
897 ac_useropt_orig=$ac_useropt
898 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
899 case $ac_user_opts in
900 *"
901 "enable_$ac_useropt"
902 "*) ;;
903 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
904 ac_unrecognized_sep=', ';;
905 esac
906 eval enable_$ac_useropt=no ;;
907
908 -docdir | --docdir | --docdi | --doc | --do)
909 ac_prev=docdir ;;
910 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
911 docdir=$ac_optarg ;;
912
913 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
914 ac_prev=dvidir ;;
915 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
916 dvidir=$ac_optarg ;;
917
918 -enable-* | --enable-*)
919 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
920 # Reject names that are not valid shell variable names.
921 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
922 as_fn_error "invalid feature name: $ac_useropt"
923 ac_useropt_orig=$ac_useropt
924 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
925 case $ac_user_opts in
926 *"
927 "enable_$ac_useropt"
928 "*) ;;
929 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
930 ac_unrecognized_sep=', ';;
931 esac
932 eval enable_$ac_useropt=\$ac_optarg ;;
933
934 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
935 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
936 | --exec | --exe | --ex)
937 ac_prev=exec_prefix ;;
938 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
939 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
940 | --exec=* | --exe=* | --ex=*)
941 exec_prefix=$ac_optarg ;;
942
943 -gas | --gas | --ga | --g)
944 # Obsolete; use --with-gas.
945 with_gas=yes ;;
946
947 -help | --help | --hel | --he | -h)
948 ac_init_help=long ;;
949 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
950 ac_init_help=recursive ;;
951 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
952 ac_init_help=short ;;
953
954 -host | --host | --hos | --ho)
955 ac_prev=host_alias ;;
956 -host=* | --host=* | --hos=* | --ho=*)
957 host_alias=$ac_optarg ;;
958
959 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
960 ac_prev=htmldir ;;
961 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
962 | --ht=*)
963 htmldir=$ac_optarg ;;
964
965 -includedir | --includedir | --includedi | --included | --include \
966 | --includ | --inclu | --incl | --inc)
967 ac_prev=includedir ;;
968 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
969 | --includ=* | --inclu=* | --incl=* | --inc=*)
970 includedir=$ac_optarg ;;
971
972 -infodir | --infodir | --infodi | --infod | --info | --inf)
973 ac_prev=infodir ;;
974 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
975 infodir=$ac_optarg ;;
976
977 -libdir | --libdir | --libdi | --libd)
978 ac_prev=libdir ;;
979 -libdir=* | --libdir=* | --libdi=* | --libd=*)
980 libdir=$ac_optarg ;;
981
982 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
983 | --libexe | --libex | --libe)
984 ac_prev=libexecdir ;;
985 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
986 | --libexe=* | --libex=* | --libe=*)
987 libexecdir=$ac_optarg ;;
988
989 -localedir | --localedir | --localedi | --localed | --locale)
990 ac_prev=localedir ;;
991 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
992 localedir=$ac_optarg ;;
993
994 -localstatedir | --localstatedir | --localstatedi | --localstated \
995 | --localstate | --localstat | --localsta | --localst | --locals)
996 ac_prev=localstatedir ;;
997 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
998 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
999 localstatedir=$ac_optarg ;;
1000
1001 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1002 ac_prev=mandir ;;
1003 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1004 mandir=$ac_optarg ;;
1005
1006 -nfp | --nfp | --nf)
1007 # Obsolete; use --without-fp.
1008 with_fp=no ;;
1009
1010 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1011 | --no-cr | --no-c | -n)
1012 no_create=yes ;;
1013
1014 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1015 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1016 no_recursion=yes ;;
1017
1018 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1019 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1020 | --oldin | --oldi | --old | --ol | --o)
1021 ac_prev=oldincludedir ;;
1022 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1023 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1024 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1025 oldincludedir=$ac_optarg ;;
1026
1027 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1028 ac_prev=prefix ;;
1029 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1030 prefix=$ac_optarg ;;
1031
1032 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1033 | --program-pre | --program-pr | --program-p)
1034 ac_prev=program_prefix ;;
1035 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1036 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1037 program_prefix=$ac_optarg ;;
1038
1039 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1040 | --program-suf | --program-su | --program-s)
1041 ac_prev=program_suffix ;;
1042 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1043 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1044 program_suffix=$ac_optarg ;;
1045
1046 -program-transform-name | --program-transform-name \
1047 | --program-transform-nam | --program-transform-na \
1048 | --program-transform-n | --program-transform- \
1049 | --program-transform | --program-transfor \
1050 | --program-transfo | --program-transf \
1051 | --program-trans | --program-tran \
1052 | --progr-tra | --program-tr | --program-t)
1053 ac_prev=program_transform_name ;;
1054 -program-transform-name=* | --program-transform-name=* \
1055 | --program-transform-nam=* | --program-transform-na=* \
1056 | --program-transform-n=* | --program-transform-=* \
1057 | --program-transform=* | --program-transfor=* \
1058 | --program-transfo=* | --program-transf=* \
1059 | --program-trans=* | --program-tran=* \
1060 | --progr-tra=* | --program-tr=* | --program-t=*)
1061 program_transform_name=$ac_optarg ;;
1062
1063 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1064 ac_prev=pdfdir ;;
1065 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1066 pdfdir=$ac_optarg ;;
1067
1068 -psdir | --psdir | --psdi | --psd | --ps)
1069 ac_prev=psdir ;;
1070 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1071 psdir=$ac_optarg ;;
1072
1073 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1074 | -silent | --silent | --silen | --sile | --sil)
1075 silent=yes ;;
1076
1077 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1078 ac_prev=sbindir ;;
1079 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1080 | --sbi=* | --sb=*)
1081 sbindir=$ac_optarg ;;
1082
1083 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1084 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1085 | --sharedst | --shareds | --shared | --share | --shar \
1086 | --sha | --sh)
1087 ac_prev=sharedstatedir ;;
1088 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1089 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1090 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1091 | --sha=* | --sh=*)
1092 sharedstatedir=$ac_optarg ;;
1093
1094 -site | --site | --sit)
1095 ac_prev=site ;;
1096 -site=* | --site=* | --sit=*)
1097 site=$ac_optarg ;;
1098
1099 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1100 ac_prev=srcdir ;;
1101 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1102 srcdir=$ac_optarg ;;
1103
1104 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1105 | --syscon | --sysco | --sysc | --sys | --sy)
1106 ac_prev=sysconfdir ;;
1107 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1108 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1109 sysconfdir=$ac_optarg ;;
1110
1111 -target | --target | --targe | --targ | --tar | --ta | --t)
1112 ac_prev=target_alias ;;
1113 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1114 target_alias=$ac_optarg ;;
1115
1116 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1117 verbose=yes ;;
1118
1119 -version | --version | --versio | --versi | --vers | -V)
1120 ac_init_version=: ;;
1121
1122 -with-* | --with-*)
1123 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1124 # Reject names that are not valid shell variable names.
1125 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1126 as_fn_error "invalid package name: $ac_useropt"
1127 ac_useropt_orig=$ac_useropt
1128 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1129 case $ac_user_opts in
1130 *"
1131 "with_$ac_useropt"
1132 "*) ;;
1133 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1134 ac_unrecognized_sep=', ';;
1135 esac
1136 eval with_$ac_useropt=\$ac_optarg ;;
1137
1138 -without-* | --without-*)
1139 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1140 # Reject names that are not valid shell variable names.
1141 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1142 as_fn_error "invalid package name: $ac_useropt"
1143 ac_useropt_orig=$ac_useropt
1144 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1145 case $ac_user_opts in
1146 *"
1147 "with_$ac_useropt"
1148 "*) ;;
1149 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1150 ac_unrecognized_sep=', ';;
1151 esac
1152 eval with_$ac_useropt=no ;;
1153
1154 --x)
1155 # Obsolete; use --with-x.
1156 with_x=yes ;;
1157
1158 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1159 | --x-incl | --x-inc | --x-in | --x-i)
1160 ac_prev=x_includes ;;
1161 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1162 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1163 x_includes=$ac_optarg ;;
1164
1165 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1166 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1167 ac_prev=x_libraries ;;
1168 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1169 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1170 x_libraries=$ac_optarg ;;
1171
1172 -*) as_fn_error "unrecognized option: \`$ac_option'
1173 Try \`$0 --help' for more information."
1174 ;;
1175
1176 *=*)
1177 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1178 # Reject names that are not valid shell variable names.
1179 case $ac_envvar in #(
1180 '' | [0-9]* | *[!_$as_cr_alnum]* )
1181 as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1182 esac
1183 eval $ac_envvar=\$ac_optarg
1184 export $ac_envvar ;;
1185
1186 *)
1187 # FIXME: should be removed in autoconf 3.0.
1188 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1189 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1190 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1191 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1192 ;;
1193
1194 esac
1195 done
1196
1197 if test -n "$ac_prev"; then
1198 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1199 as_fn_error "missing argument to $ac_option"
1200 fi
1201
1202 if test -n "$ac_unrecognized_opts"; then
1203 case $enable_option_checking in
1204 no) ;;
1205 fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1206 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1207 esac
1208 fi
1209
1210 # Check all directory arguments for consistency.
1211 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1212 datadir sysconfdir sharedstatedir localstatedir includedir \
1213 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1214 libdir localedir mandir
1215 do
1216 eval ac_val=\$$ac_var
1217 # Remove trailing slashes.
1218 case $ac_val in
1219 */ )
1220 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1221 eval $ac_var=\$ac_val;;
1222 esac
1223 # Be sure to have absolute directory names.
1224 case $ac_val in
1225 [\\/$]* | ?:[\\/]* ) continue;;
1226 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1227 esac
1228 as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1229 done
1230
1231 # There might be people who depend on the old broken behavior: `$host'
1232 # used to hold the argument of --host etc.
1233 # FIXME: To remove some day.
1234 build=$build_alias
1235 host=$host_alias
1236 target=$target_alias
1237
1238 # FIXME: To remove some day.
1239 if test "x$host_alias" != x; then
1240 if test "x$build_alias" = x; then
1241 cross_compiling=maybe
1242 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1243 If a cross compiler is detected then cross compile mode will be used." >&2
1244 elif test "x$build_alias" != "x$host_alias"; then
1245 cross_compiling=yes
1246 fi
1247 fi
1248
1249 ac_tool_prefix=
1250 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1251
1252 test "$silent" = yes && exec 6>/dev/null
1253
1254
1255 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1256 ac_ls_di=`ls -di .` &&
1257 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1258 as_fn_error "working directory cannot be determined"
1259 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1260 as_fn_error "pwd does not report name of working directory"
1261
1262
1263 # Find the source files, if location was not specified.
1264 if test -z "$srcdir"; then
1265 ac_srcdir_defaulted=yes
1266 # Try the directory containing this script, then the parent directory.
1267 ac_confdir=`$as_dirname -- "$as_myself" ||
1268 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1269 X"$as_myself" : 'X\(//\)[^/]' \| \
1270 X"$as_myself" : 'X\(//\)$' \| \
1271 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1272 $as_echo X"$as_myself" |
1273 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1274 s//\1/
1275 q
1276 }
1277 /^X\(\/\/\)[^/].*/{
1278 s//\1/
1279 q
1280 }
1281 /^X\(\/\/\)$/{
1282 s//\1/
1283 q
1284 }
1285 /^X\(\/\).*/{
1286 s//\1/
1287 q
1288 }
1289 s/.*/./; q'`
1290 srcdir=$ac_confdir
1291 if test ! -r "$srcdir/$ac_unique_file"; then
1292 srcdir=..
1293 fi
1294 else
1295 ac_srcdir_defaulted=no
1296 fi
1297 if test ! -r "$srcdir/$ac_unique_file"; then
1298 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1299 as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1300 fi
1301 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1302 ac_abs_confdir=`(
1303 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1304 pwd)`
1305 # When building in place, set srcdir=.
1306 if test "$ac_abs_confdir" = "$ac_pwd"; then
1307 srcdir=.
1308 fi
1309 # Remove unnecessary trailing slashes from srcdir.
1310 # Double slashes in file names in object file debugging info
1311 # mess up M-x gdb in Emacs.
1312 case $srcdir in
1313 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1314 esac
1315 for ac_var in $ac_precious_vars; do
1316 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1317 eval ac_env_${ac_var}_value=\$${ac_var}
1318 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1319 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1320 done
1321
1322 #
1323 # Report the --help message.
1324 #
1325 if test "$ac_init_help" = "long"; then
1326 # Omit some internal or obsolete options to make the list less imposing.
1327 # This message is too long to be a string in the A/UX 3.1 sh.
1328 cat <<_ACEOF
1329 \`configure' configures this package to adapt to many kinds of systems.
1330
1331 Usage: $0 [OPTION]... [VAR=VALUE]...
1332
1333 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1334 VAR=VALUE. See below for descriptions of some of the useful variables.
1335
1336 Defaults for the options are specified in brackets.
1337
1338 Configuration:
1339 -h, --help display this help and exit
1340 --help=short display options specific to this package
1341 --help=recursive display the short help of all the included packages
1342 -V, --version display version information and exit
1343 -q, --quiet, --silent do not print \`checking...' messages
1344 --cache-file=FILE cache test results in FILE [disabled]
1345 -C, --config-cache alias for \`--cache-file=config.cache'
1346 -n, --no-create do not create output files
1347 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1348
1349 Installation directories:
1350 --prefix=PREFIX install architecture-independent files in PREFIX
1351 [$ac_default_prefix]
1352 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1353 [PREFIX]
1354
1355 By default, \`make install' will install all the files in
1356 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1357 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1358 for instance \`--prefix=\$HOME'.
1359
1360 For better control, use the options below.
1361
1362 Fine tuning of the installation directories:
1363 --bindir=DIR user executables [EPREFIX/bin]
1364 --sbindir=DIR system admin executables [EPREFIX/sbin]
1365 --libexecdir=DIR program executables [EPREFIX/libexec]
1366 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1367 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1368 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1369 --libdir=DIR object code libraries [EPREFIX/lib]
1370 --includedir=DIR C header files [PREFIX/include]
1371 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1372 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1373 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1374 --infodir=DIR info documentation [DATAROOTDIR/info]
1375 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1376 --mandir=DIR man documentation [DATAROOTDIR/man]
1377 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1378 --htmldir=DIR html documentation [DOCDIR]
1379 --dvidir=DIR dvi documentation [DOCDIR]
1380 --pdfdir=DIR pdf documentation [DOCDIR]
1381 --psdir=DIR ps documentation [DOCDIR]
1382 _ACEOF
1383
1384 cat <<\_ACEOF
1385
1386 Program names:
1387 --program-prefix=PREFIX prepend PREFIX to installed program names
1388 --program-suffix=SUFFIX append SUFFIX to installed program names
1389 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1390
1391 System types:
1392 --build=BUILD configure for building on BUILD [guessed]
1393 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1394 --target=TARGET configure for building compilers for TARGET [HOST]
1395 _ACEOF
1396 fi
1397
1398 if test -n "$ac_init_help"; then
1399
1400 cat <<\_ACEOF
1401
1402 Optional Features:
1403 --disable-option-checking ignore unrecognized --enable/--with options
1404 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1405 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1406 --disable-dependency-tracking speeds up one-time build
1407 --enable-dependency-tracking do not reject slow dependency extractors
1408 --enable-maintainer-mode enable make rules and dependencies not useful
1409 (and sometimes confusing) to the casual installer
1410 --enable-targets alternative target configurations
1411 --enable-64-bit-bfd 64-bit support (on hosts with narrower word sizes)
1412 --enable-got=<type> GOT handling scheme (target, single, negative,
1413 multigot)
1414 --enable-werror treat compile warnings as errors
1415 --enable-build-warnings enable build-time compiler warnings
1416 --enable-plugins Enable support for plugins (defaults no)
1417 --disable-largefile omit support for large files
1418 --enable-shared[=PKGS] build shared libraries [default=yes]
1419 --enable-static[=PKGS] build static libraries [default=yes]
1420 --enable-fast-install[=PKGS]
1421 optimize for fast installation [default=yes]
1422 --disable-libtool-lock avoid locking (might break parallel builds)
1423 --disable-nls do not use Native Language Support
1424
1425 Optional Packages:
1426 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1427 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1428 --with-lib-path=dir1:dir2... set default LIB_PATH
1429 --with-sysroot=DIR Search for usr/lib et al within DIR.
1430 --with-pic try to use only PIC/non-PIC objects [default=use
1431 both]
1432 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1433
1434 Some influential environment variables:
1435 CC C compiler command
1436 CFLAGS C compiler flags
1437 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1438 nonstandard directory <lib dir>
1439 LIBS libraries to pass to the linker, e.g. -l<library>
1440 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1441 you have headers in a nonstandard directory <include dir>
1442 CPP C preprocessor
1443 YACC The `Yet Another C Compiler' implementation to use. Defaults to
1444 the first program found out of: `bison -y', `byacc', `yacc'.
1445 YFLAGS The list of arguments that will be passed by default to $YACC.
1446 This script will default YFLAGS to the empty string to avoid a
1447 default value of `-d' given by some make applications.
1448
1449 Use these variables to override the choices made by `configure' or to help
1450 it to find libraries and programs with nonstandard names/locations.
1451
1452 Report bugs to the package provider.
1453 _ACEOF
1454 ac_status=$?
1455 fi
1456
1457 if test "$ac_init_help" = "recursive"; then
1458 # If there are subdirs, report their specific --help.
1459 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1460 test -d "$ac_dir" ||
1461 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1462 continue
1463 ac_builddir=.
1464
1465 case "$ac_dir" in
1466 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1467 *)
1468 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1469 # A ".." for each directory in $ac_dir_suffix.
1470 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1471 case $ac_top_builddir_sub in
1472 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1473 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1474 esac ;;
1475 esac
1476 ac_abs_top_builddir=$ac_pwd
1477 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1478 # for backward compatibility:
1479 ac_top_builddir=$ac_top_build_prefix
1480
1481 case $srcdir in
1482 .) # We are building in place.
1483 ac_srcdir=.
1484 ac_top_srcdir=$ac_top_builddir_sub
1485 ac_abs_top_srcdir=$ac_pwd ;;
1486 [\\/]* | ?:[\\/]* ) # Absolute name.
1487 ac_srcdir=$srcdir$ac_dir_suffix;
1488 ac_top_srcdir=$srcdir
1489 ac_abs_top_srcdir=$srcdir ;;
1490 *) # Relative name.
1491 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1492 ac_top_srcdir=$ac_top_build_prefix$srcdir
1493 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1494 esac
1495 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1496
1497 cd "$ac_dir" || { ac_status=$?; continue; }
1498 # Check for guested configure.
1499 if test -f "$ac_srcdir/configure.gnu"; then
1500 echo &&
1501 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1502 elif test -f "$ac_srcdir/configure"; then
1503 echo &&
1504 $SHELL "$ac_srcdir/configure" --help=recursive
1505 else
1506 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1507 fi || ac_status=$?
1508 cd "$ac_pwd" || { ac_status=$?; break; }
1509 done
1510 fi
1511
1512 test -n "$ac_init_help" && exit $ac_status
1513 if $ac_init_version; then
1514 cat <<\_ACEOF
1515 configure
1516 generated by GNU Autoconf 2.64
1517
1518 Copyright (C) 2009 Free Software Foundation, Inc.
1519 This configure script is free software; the Free Software Foundation
1520 gives unlimited permission to copy, distribute and modify it.
1521 _ACEOF
1522 exit
1523 fi
1524
1525 ## ------------------------ ##
1526 ## Autoconf initialization. ##
1527 ## ------------------------ ##
1528
1529 # ac_fn_c_try_compile LINENO
1530 # --------------------------
1531 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1532 ac_fn_c_try_compile ()
1533 {
1534 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1535 rm -f conftest.$ac_objext
1536 if { { ac_try="$ac_compile"
1537 case "(($ac_try" in
1538 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1539 *) ac_try_echo=$ac_try;;
1540 esac
1541 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1542 $as_echo "$ac_try_echo"; } >&5
1543 (eval "$ac_compile") 2>conftest.err
1544 ac_status=$?
1545 if test -s conftest.err; then
1546 grep -v '^ *+' conftest.err >conftest.er1
1547 cat conftest.er1 >&5
1548 mv -f conftest.er1 conftest.err
1549 fi
1550 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1551 test $ac_status = 0; } && {
1552 test -z "$ac_c_werror_flag" ||
1553 test ! -s conftest.err
1554 } && test -s conftest.$ac_objext; then :
1555 ac_retval=0
1556 else
1557 $as_echo "$as_me: failed program was:" >&5
1558 sed 's/^/| /' conftest.$ac_ext >&5
1559
1560 ac_retval=1
1561 fi
1562 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1563 return $ac_retval
1564
1565 } # ac_fn_c_try_compile
1566
1567 # ac_fn_c_try_link LINENO
1568 # -----------------------
1569 # Try to link conftest.$ac_ext, and return whether this succeeded.
1570 ac_fn_c_try_link ()
1571 {
1572 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1573 rm -f conftest.$ac_objext conftest$ac_exeext
1574 if { { ac_try="$ac_link"
1575 case "(($ac_try" in
1576 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1577 *) ac_try_echo=$ac_try;;
1578 esac
1579 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1580 $as_echo "$ac_try_echo"; } >&5
1581 (eval "$ac_link") 2>conftest.err
1582 ac_status=$?
1583 if test -s conftest.err; then
1584 grep -v '^ *+' conftest.err >conftest.er1
1585 cat conftest.er1 >&5
1586 mv -f conftest.er1 conftest.err
1587 fi
1588 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1589 test $ac_status = 0; } && {
1590 test -z "$ac_c_werror_flag" ||
1591 test ! -s conftest.err
1592 } && test -s conftest$ac_exeext && {
1593 test "$cross_compiling" = yes ||
1594 $as_test_x conftest$ac_exeext
1595 }; then :
1596 ac_retval=0
1597 else
1598 $as_echo "$as_me: failed program was:" >&5
1599 sed 's/^/| /' conftest.$ac_ext >&5
1600
1601 ac_retval=1
1602 fi
1603 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1604 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1605 # interfere with the next link command; also delete a directory that is
1606 # left behind by Apple's compiler. We do this before executing the actions.
1607 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1608 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1609 return $ac_retval
1610
1611 } # ac_fn_c_try_link
1612
1613 # ac_fn_c_try_cpp LINENO
1614 # ----------------------
1615 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1616 ac_fn_c_try_cpp ()
1617 {
1618 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1619 if { { ac_try="$ac_cpp conftest.$ac_ext"
1620 case "(($ac_try" in
1621 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1622 *) ac_try_echo=$ac_try;;
1623 esac
1624 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1625 $as_echo "$ac_try_echo"; } >&5
1626 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1627 ac_status=$?
1628 if test -s conftest.err; then
1629 grep -v '^ *+' conftest.err >conftest.er1
1630 cat conftest.er1 >&5
1631 mv -f conftest.er1 conftest.err
1632 fi
1633 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1634 test $ac_status = 0; } >/dev/null && {
1635 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1636 test ! -s conftest.err
1637 }; then :
1638 ac_retval=0
1639 else
1640 $as_echo "$as_me: failed program was:" >&5
1641 sed 's/^/| /' conftest.$ac_ext >&5
1642
1643 ac_retval=1
1644 fi
1645 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1646 return $ac_retval
1647
1648 } # ac_fn_c_try_cpp
1649
1650 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1651 # -------------------------------------------------------
1652 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1653 # the include files in INCLUDES and setting the cache variable VAR
1654 # accordingly.
1655 ac_fn_c_check_header_mongrel ()
1656 {
1657 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1658 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1659 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1660 $as_echo_n "checking for $2... " >&6; }
1661 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1662 $as_echo_n "(cached) " >&6
1663 fi
1664 eval ac_res=\$$3
1665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1666 $as_echo "$ac_res" >&6; }
1667 else
1668 # Is the header compilable?
1669 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1670 $as_echo_n "checking $2 usability... " >&6; }
1671 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1672 /* end confdefs.h. */
1673 $4
1674 #include <$2>
1675 _ACEOF
1676 if ac_fn_c_try_compile "$LINENO"; then :
1677 ac_header_compiler=yes
1678 else
1679 ac_header_compiler=no
1680 fi
1681 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1683 $as_echo "$ac_header_compiler" >&6; }
1684
1685 # Is the header present?
1686 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1687 $as_echo_n "checking $2 presence... " >&6; }
1688 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1689 /* end confdefs.h. */
1690 #include <$2>
1691 _ACEOF
1692 if ac_fn_c_try_cpp "$LINENO"; then :
1693 ac_header_preproc=yes
1694 else
1695 ac_header_preproc=no
1696 fi
1697 rm -f conftest.err conftest.$ac_ext
1698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1699 $as_echo "$ac_header_preproc" >&6; }
1700
1701 # So? What about this header?
1702 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1703 yes:no: )
1704 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1705 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1706 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1707 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1708 ;;
1709 no:yes:* )
1710 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1711 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1712 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1713 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1714 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1715 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1716 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1717 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1718 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1719 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1720 ;;
1721 esac
1722 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1723 $as_echo_n "checking for $2... " >&6; }
1724 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1725 $as_echo_n "(cached) " >&6
1726 else
1727 eval "$3=\$ac_header_compiler"
1728 fi
1729 eval ac_res=\$$3
1730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1731 $as_echo "$ac_res" >&6; }
1732 fi
1733 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1734
1735 } # ac_fn_c_check_header_mongrel
1736
1737 # ac_fn_c_try_run LINENO
1738 # ----------------------
1739 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1740 # that executables *can* be run.
1741 ac_fn_c_try_run ()
1742 {
1743 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1744 if { { ac_try="$ac_link"
1745 case "(($ac_try" in
1746 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1747 *) ac_try_echo=$ac_try;;
1748 esac
1749 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1750 $as_echo "$ac_try_echo"; } >&5
1751 (eval "$ac_link") 2>&5
1752 ac_status=$?
1753 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1754 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1755 { { case "(($ac_try" in
1756 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1757 *) ac_try_echo=$ac_try;;
1758 esac
1759 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1760 $as_echo "$ac_try_echo"; } >&5
1761 (eval "$ac_try") 2>&5
1762 ac_status=$?
1763 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1764 test $ac_status = 0; }; }; then :
1765 ac_retval=0
1766 else
1767 $as_echo "$as_me: program exited with status $ac_status" >&5
1768 $as_echo "$as_me: failed program was:" >&5
1769 sed 's/^/| /' conftest.$ac_ext >&5
1770
1771 ac_retval=$ac_status
1772 fi
1773 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1774 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1775 return $ac_retval
1776
1777 } # ac_fn_c_try_run
1778
1779 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1780 # -------------------------------------------------------
1781 # Tests whether HEADER exists and can be compiled using the include files in
1782 # INCLUDES, setting the cache variable VAR accordingly.
1783 ac_fn_c_check_header_compile ()
1784 {
1785 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1786 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1787 $as_echo_n "checking for $2... " >&6; }
1788 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1789 $as_echo_n "(cached) " >&6
1790 else
1791 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1792 /* end confdefs.h. */
1793 $4
1794 #include <$2>
1795 _ACEOF
1796 if ac_fn_c_try_compile "$LINENO"; then :
1797 eval "$3=yes"
1798 else
1799 eval "$3=no"
1800 fi
1801 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1802 fi
1803 eval ac_res=\$$3
1804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1805 $as_echo "$ac_res" >&6; }
1806 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1807
1808 } # ac_fn_c_check_header_compile
1809
1810 # ac_fn_c_check_func LINENO FUNC VAR
1811 # ----------------------------------
1812 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1813 ac_fn_c_check_func ()
1814 {
1815 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1816 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1817 $as_echo_n "checking for $2... " >&6; }
1818 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1819 $as_echo_n "(cached) " >&6
1820 else
1821 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1822 /* end confdefs.h. */
1823 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1824 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1825 #define $2 innocuous_$2
1826
1827 /* System header to define __stub macros and hopefully few prototypes,
1828 which can conflict with char $2 (); below.
1829 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1830 <limits.h> exists even on freestanding compilers. */
1831
1832 #ifdef __STDC__
1833 # include <limits.h>
1834 #else
1835 # include <assert.h>
1836 #endif
1837
1838 #undef $2
1839
1840 /* Override any GCC internal prototype to avoid an error.
1841 Use char because int might match the return type of a GCC
1842 builtin and then its argument prototype would still apply. */
1843 #ifdef __cplusplus
1844 extern "C"
1845 #endif
1846 char $2 ();
1847 /* The GNU C library defines this for functions which it implements
1848 to always fail with ENOSYS. Some functions are actually named
1849 something starting with __ and the normal name is an alias. */
1850 #if defined __stub_$2 || defined __stub___$2
1851 choke me
1852 #endif
1853
1854 int
1855 main ()
1856 {
1857 return $2 ();
1858 ;
1859 return 0;
1860 }
1861 _ACEOF
1862 if ac_fn_c_try_link "$LINENO"; then :
1863 eval "$3=yes"
1864 else
1865 eval "$3=no"
1866 fi
1867 rm -f core conftest.err conftest.$ac_objext \
1868 conftest$ac_exeext conftest.$ac_ext
1869 fi
1870 eval ac_res=\$$3
1871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1872 $as_echo "$ac_res" >&6; }
1873 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1874
1875 } # ac_fn_c_check_func
1876
1877 # ac_fn_c_check_decl LINENO SYMBOL VAR
1878 # ------------------------------------
1879 # Tests whether SYMBOL is declared, setting cache variable VAR accordingly.
1880 ac_fn_c_check_decl ()
1881 {
1882 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1883 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $2 is declared" >&5
1884 $as_echo_n "checking whether $2 is declared... " >&6; }
1885 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1886 $as_echo_n "(cached) " >&6
1887 else
1888 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1889 /* end confdefs.h. */
1890 $4
1891 int
1892 main ()
1893 {
1894 #ifndef $2
1895 (void) $2;
1896 #endif
1897
1898 ;
1899 return 0;
1900 }
1901 _ACEOF
1902 if ac_fn_c_try_compile "$LINENO"; then :
1903 eval "$3=yes"
1904 else
1905 eval "$3=no"
1906 fi
1907 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1908 fi
1909 eval ac_res=\$$3
1910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1911 $as_echo "$ac_res" >&6; }
1912 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1913
1914 } # ac_fn_c_check_decl
1915
1916 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
1917 # --------------------------------------------
1918 # Tries to find the compile-time value of EXPR in a program that includes
1919 # INCLUDES, setting VAR accordingly. Returns whether the value could be
1920 # computed
1921 ac_fn_c_compute_int ()
1922 {
1923 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1924 if test "$cross_compiling" = yes; then
1925 # Depending upon the size, compute the lo and hi bounds.
1926 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1927 /* end confdefs.h. */
1928 $4
1929 int
1930 main ()
1931 {
1932 static int test_array [1 - 2 * !(($2) >= 0)];
1933 test_array [0] = 0
1934
1935 ;
1936 return 0;
1937 }
1938 _ACEOF
1939 if ac_fn_c_try_compile "$LINENO"; then :
1940 ac_lo=0 ac_mid=0
1941 while :; do
1942 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1943 /* end confdefs.h. */
1944 $4
1945 int
1946 main ()
1947 {
1948 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
1949 test_array [0] = 0
1950
1951 ;
1952 return 0;
1953 }
1954 _ACEOF
1955 if ac_fn_c_try_compile "$LINENO"; then :
1956 ac_hi=$ac_mid; break
1957 else
1958 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
1959 if test $ac_lo -le $ac_mid; then
1960 ac_lo= ac_hi=
1961 break
1962 fi
1963 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
1964 fi
1965 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1966 done
1967 else
1968 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1969 /* end confdefs.h. */
1970 $4
1971 int
1972 main ()
1973 {
1974 static int test_array [1 - 2 * !(($2) < 0)];
1975 test_array [0] = 0
1976
1977 ;
1978 return 0;
1979 }
1980 _ACEOF
1981 if ac_fn_c_try_compile "$LINENO"; then :
1982 ac_hi=-1 ac_mid=-1
1983 while :; do
1984 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1985 /* end confdefs.h. */
1986 $4
1987 int
1988 main ()
1989 {
1990 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
1991 test_array [0] = 0
1992
1993 ;
1994 return 0;
1995 }
1996 _ACEOF
1997 if ac_fn_c_try_compile "$LINENO"; then :
1998 ac_lo=$ac_mid; break
1999 else
2000 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2001 if test $ac_mid -le $ac_hi; then
2002 ac_lo= ac_hi=
2003 break
2004 fi
2005 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2006 fi
2007 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2008 done
2009 else
2010 ac_lo= ac_hi=
2011 fi
2012 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2013 fi
2014 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2015 # Binary search between lo and hi bounds.
2016 while test "x$ac_lo" != "x$ac_hi"; do
2017 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2018 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2019 /* end confdefs.h. */
2020 $4
2021 int
2022 main ()
2023 {
2024 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2025 test_array [0] = 0
2026
2027 ;
2028 return 0;
2029 }
2030 _ACEOF
2031 if ac_fn_c_try_compile "$LINENO"; then :
2032 ac_hi=$ac_mid
2033 else
2034 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2035 fi
2036 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2037 done
2038 case $ac_lo in #((
2039 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2040 '') ac_retval=1 ;;
2041 esac
2042 else
2043 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2044 /* end confdefs.h. */
2045 $4
2046 static long int longval () { return $2; }
2047 static unsigned long int ulongval () { return $2; }
2048 #include <stdio.h>
2049 #include <stdlib.h>
2050 int
2051 main ()
2052 {
2053
2054 FILE *f = fopen ("conftest.val", "w");
2055 if (! f)
2056 return 1;
2057 if (($2) < 0)
2058 {
2059 long int i = longval ();
2060 if (i != ($2))
2061 return 1;
2062 fprintf (f, "%ld", i);
2063 }
2064 else
2065 {
2066 unsigned long int i = ulongval ();
2067 if (i != ($2))
2068 return 1;
2069 fprintf (f, "%lu", i);
2070 }
2071 /* Do not output a trailing newline, as this causes \r\n confusion
2072 on some platforms. */
2073 return ferror (f) || fclose (f) != 0;
2074
2075 ;
2076 return 0;
2077 }
2078 _ACEOF
2079 if ac_fn_c_try_run "$LINENO"; then :
2080 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2081 else
2082 ac_retval=1
2083 fi
2084 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2085 conftest.$ac_objext conftest.beam conftest.$ac_ext
2086 rm -f conftest.val
2087
2088 fi
2089 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2090 return $ac_retval
2091
2092 } # ac_fn_c_compute_int
2093 cat >config.log <<_ACEOF
2094 This file contains any messages produced by compilers while
2095 running configure, to aid debugging if configure makes a mistake.
2096
2097 It was created by $as_me, which was
2098 generated by GNU Autoconf 2.64. Invocation command line was
2099
2100 $ $0 $@
2101
2102 _ACEOF
2103 exec 5>>config.log
2104 {
2105 cat <<_ASUNAME
2106 ## --------- ##
2107 ## Platform. ##
2108 ## --------- ##
2109
2110 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2111 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2112 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2113 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2114 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2115
2116 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2117 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2118
2119 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2120 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2121 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2122 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2123 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2124 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2125 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2126
2127 _ASUNAME
2128
2129 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2130 for as_dir in $PATH
2131 do
2132 IFS=$as_save_IFS
2133 test -z "$as_dir" && as_dir=.
2134 $as_echo "PATH: $as_dir"
2135 done
2136 IFS=$as_save_IFS
2137
2138 } >&5
2139
2140 cat >&5 <<_ACEOF
2141
2142
2143 ## ----------- ##
2144 ## Core tests. ##
2145 ## ----------- ##
2146
2147 _ACEOF
2148
2149
2150 # Keep a trace of the command line.
2151 # Strip out --no-create and --no-recursion so they do not pile up.
2152 # Strip out --silent because we don't want to record it for future runs.
2153 # Also quote any args containing shell meta-characters.
2154 # Make two passes to allow for proper duplicate-argument suppression.
2155 ac_configure_args=
2156 ac_configure_args0=
2157 ac_configure_args1=
2158 ac_must_keep_next=false
2159 for ac_pass in 1 2
2160 do
2161 for ac_arg
2162 do
2163 case $ac_arg in
2164 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2165 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2166 | -silent | --silent | --silen | --sile | --sil)
2167 continue ;;
2168 *\'*)
2169 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2170 esac
2171 case $ac_pass in
2172 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2173 2)
2174 as_fn_append ac_configure_args1 " '$ac_arg'"
2175 if test $ac_must_keep_next = true; then
2176 ac_must_keep_next=false # Got value, back to normal.
2177 else
2178 case $ac_arg in
2179 *=* | --config-cache | -C | -disable-* | --disable-* \
2180 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2181 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2182 | -with-* | --with-* | -without-* | --without-* | --x)
2183 case "$ac_configure_args0 " in
2184 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2185 esac
2186 ;;
2187 -* ) ac_must_keep_next=true ;;
2188 esac
2189 fi
2190 as_fn_append ac_configure_args " '$ac_arg'"
2191 ;;
2192 esac
2193 done
2194 done
2195 { ac_configure_args0=; unset ac_configure_args0;}
2196 { ac_configure_args1=; unset ac_configure_args1;}
2197
2198 # When interrupted or exit'd, cleanup temporary files, and complete
2199 # config.log. We remove comments because anyway the quotes in there
2200 # would cause problems or look ugly.
2201 # WARNING: Use '\'' to represent an apostrophe within the trap.
2202 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2203 trap 'exit_status=$?
2204 # Save into config.log some information that might help in debugging.
2205 {
2206 echo
2207
2208 cat <<\_ASBOX
2209 ## ---------------- ##
2210 ## Cache variables. ##
2211 ## ---------------- ##
2212 _ASBOX
2213 echo
2214 # The following way of writing the cache mishandles newlines in values,
2215 (
2216 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2217 eval ac_val=\$$ac_var
2218 case $ac_val in #(
2219 *${as_nl}*)
2220 case $ac_var in #(
2221 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2222 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2223 esac
2224 case $ac_var in #(
2225 _ | IFS | as_nl) ;; #(
2226 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2227 *) { eval $ac_var=; unset $ac_var;} ;;
2228 esac ;;
2229 esac
2230 done
2231 (set) 2>&1 |
2232 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2233 *${as_nl}ac_space=\ *)
2234 sed -n \
2235 "s/'\''/'\''\\\\'\'''\''/g;
2236 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2237 ;; #(
2238 *)
2239 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2240 ;;
2241 esac |
2242 sort
2243 )
2244 echo
2245
2246 cat <<\_ASBOX
2247 ## ----------------- ##
2248 ## Output variables. ##
2249 ## ----------------- ##
2250 _ASBOX
2251 echo
2252 for ac_var in $ac_subst_vars
2253 do
2254 eval ac_val=\$$ac_var
2255 case $ac_val in
2256 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2257 esac
2258 $as_echo "$ac_var='\''$ac_val'\''"
2259 done | sort
2260 echo
2261
2262 if test -n "$ac_subst_files"; then
2263 cat <<\_ASBOX
2264 ## ------------------- ##
2265 ## File substitutions. ##
2266 ## ------------------- ##
2267 _ASBOX
2268 echo
2269 for ac_var in $ac_subst_files
2270 do
2271 eval ac_val=\$$ac_var
2272 case $ac_val in
2273 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2274 esac
2275 $as_echo "$ac_var='\''$ac_val'\''"
2276 done | sort
2277 echo
2278 fi
2279
2280 if test -s confdefs.h; then
2281 cat <<\_ASBOX
2282 ## ----------- ##
2283 ## confdefs.h. ##
2284 ## ----------- ##
2285 _ASBOX
2286 echo
2287 cat confdefs.h
2288 echo
2289 fi
2290 test "$ac_signal" != 0 &&
2291 $as_echo "$as_me: caught signal $ac_signal"
2292 $as_echo "$as_me: exit $exit_status"
2293 } >&5
2294 rm -f core *.core core.conftest.* &&
2295 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2296 exit $exit_status
2297 ' 0
2298 for ac_signal in 1 2 13 15; do
2299 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2300 done
2301 ac_signal=0
2302
2303 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2304 rm -f -r conftest* confdefs.h
2305
2306 $as_echo "/* confdefs.h */" > confdefs.h
2307
2308 # Predefined preprocessor variables.
2309
2310 cat >>confdefs.h <<_ACEOF
2311 #define PACKAGE_NAME "$PACKAGE_NAME"
2312 _ACEOF
2313
2314 cat >>confdefs.h <<_ACEOF
2315 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2316 _ACEOF
2317
2318 cat >>confdefs.h <<_ACEOF
2319 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2320 _ACEOF
2321
2322 cat >>confdefs.h <<_ACEOF
2323 #define PACKAGE_STRING "$PACKAGE_STRING"
2324 _ACEOF
2325
2326 cat >>confdefs.h <<_ACEOF
2327 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2328 _ACEOF
2329
2330 cat >>confdefs.h <<_ACEOF
2331 #define PACKAGE_URL "$PACKAGE_URL"
2332 _ACEOF
2333
2334
2335 # Let the site file select an alternate cache file if it wants to.
2336 # Prefer an explicitly selected file to automatically selected ones.
2337 ac_site_file1=NONE
2338 ac_site_file2=NONE
2339 if test -n "$CONFIG_SITE"; then
2340 ac_site_file1=$CONFIG_SITE
2341 elif test "x$prefix" != xNONE; then
2342 ac_site_file1=$prefix/share/config.site
2343 ac_site_file2=$prefix/etc/config.site
2344 else
2345 ac_site_file1=$ac_default_prefix/share/config.site
2346 ac_site_file2=$ac_default_prefix/etc/config.site
2347 fi
2348 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2349 do
2350 test "x$ac_site_file" = xNONE && continue
2351 if test -r "$ac_site_file"; then
2352 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2353 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2354 sed 's/^/| /' "$ac_site_file" >&5
2355 . "$ac_site_file"
2356 fi
2357 done
2358
2359 if test -r "$cache_file"; then
2360 # Some versions of bash will fail to source /dev/null (special
2361 # files actually), so we avoid doing that.
2362 if test -f "$cache_file"; then
2363 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2364 $as_echo "$as_me: loading cache $cache_file" >&6;}
2365 case $cache_file in
2366 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2367 *) . "./$cache_file";;
2368 esac
2369 fi
2370 else
2371 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2372 $as_echo "$as_me: creating cache $cache_file" >&6;}
2373 >$cache_file
2374 fi
2375
2376 # Check that the precious variables saved in the cache have kept the same
2377 # value.
2378 ac_cache_corrupted=false
2379 for ac_var in $ac_precious_vars; do
2380 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2381 eval ac_new_set=\$ac_env_${ac_var}_set
2382 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2383 eval ac_new_val=\$ac_env_${ac_var}_value
2384 case $ac_old_set,$ac_new_set in
2385 set,)
2386 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2387 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2388 ac_cache_corrupted=: ;;
2389 ,set)
2390 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2391 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2392 ac_cache_corrupted=: ;;
2393 ,);;
2394 *)
2395 if test "x$ac_old_val" != "x$ac_new_val"; then
2396 # differences in whitespace do not lead to failure.
2397 ac_old_val_w=`echo x $ac_old_val`
2398 ac_new_val_w=`echo x $ac_new_val`
2399 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2400 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2401 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2402 ac_cache_corrupted=:
2403 else
2404 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2405 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2406 eval $ac_var=\$ac_old_val
2407 fi
2408 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2409 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2410 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2411 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2412 fi;;
2413 esac
2414 # Pass precious variables to config.status.
2415 if test "$ac_new_set" = set; then
2416 case $ac_new_val in
2417 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2418 *) ac_arg=$ac_var=$ac_new_val ;;
2419 esac
2420 case " $ac_configure_args " in
2421 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2422 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2423 esac
2424 fi
2425 done
2426 if $ac_cache_corrupted; then
2427 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2428 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2429 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2430 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2431 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2432 fi
2433 ## -------------------- ##
2434 ## Main body of script. ##
2435 ## -------------------- ##
2436
2437 ac_ext=c
2438 ac_cpp='$CPP $CPPFLAGS'
2439 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2440 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2441 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2442
2443
2444
2445
2446
2447
2448
2449 ac_aux_dir=
2450 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2451 for ac_t in install-sh install.sh shtool; do
2452 if test -f "$ac_dir/$ac_t"; then
2453 ac_aux_dir=$ac_dir
2454 ac_install_sh="$ac_aux_dir/$ac_t -c"
2455 break 2
2456 fi
2457 done
2458 done
2459 if test -z "$ac_aux_dir"; then
2460 as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2461 fi
2462
2463 # These three variables are undocumented and unsupported,
2464 # and are intended to be withdrawn in a future Autoconf release.
2465 # They can cause serious problems if a builder's source tree is in a directory
2466 # whose full name contains unusual characters.
2467 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2468 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2469 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2470
2471
2472 # Make sure we can run config.sub.
2473 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2474 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2475
2476 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2477 $as_echo_n "checking build system type... " >&6; }
2478 if test "${ac_cv_build+set}" = set; then :
2479 $as_echo_n "(cached) " >&6
2480 else
2481 ac_build_alias=$build_alias
2482 test "x$ac_build_alias" = x &&
2483 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2484 test "x$ac_build_alias" = x &&
2485 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
2486 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2487 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2488
2489 fi
2490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2491 $as_echo "$ac_cv_build" >&6; }
2492 case $ac_cv_build in
2493 *-*-*) ;;
2494 *) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
2495 esac
2496 build=$ac_cv_build
2497 ac_save_IFS=$IFS; IFS='-'
2498 set x $ac_cv_build
2499 shift
2500 build_cpu=$1
2501 build_vendor=$2
2502 shift; shift
2503 # Remember, the first character of IFS is used to create $*,
2504 # except with old shells:
2505 build_os=$*
2506 IFS=$ac_save_IFS
2507 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2508
2509
2510 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2511 $as_echo_n "checking host system type... " >&6; }
2512 if test "${ac_cv_host+set}" = set; then :
2513 $as_echo_n "(cached) " >&6
2514 else
2515 if test "x$host_alias" = x; then
2516 ac_cv_host=$ac_cv_build
2517 else
2518 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2519 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2520 fi
2521
2522 fi
2523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2524 $as_echo "$ac_cv_host" >&6; }
2525 case $ac_cv_host in
2526 *-*-*) ;;
2527 *) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
2528 esac
2529 host=$ac_cv_host
2530 ac_save_IFS=$IFS; IFS='-'
2531 set x $ac_cv_host
2532 shift
2533 host_cpu=$1
2534 host_vendor=$2
2535 shift; shift
2536 # Remember, the first character of IFS is used to create $*,
2537 # except with old shells:
2538 host_os=$*
2539 IFS=$ac_save_IFS
2540 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2541
2542
2543 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2544 $as_echo_n "checking target system type... " >&6; }
2545 if test "${ac_cv_target+set}" = set; then :
2546 $as_echo_n "(cached) " >&6
2547 else
2548 if test "x$target_alias" = x; then
2549 ac_cv_target=$ac_cv_host
2550 else
2551 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2552 as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2553 fi
2554
2555 fi
2556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2557 $as_echo "$ac_cv_target" >&6; }
2558 case $ac_cv_target in
2559 *-*-*) ;;
2560 *) as_fn_error "invalid value of canonical target" "$LINENO" 5;;
2561 esac
2562 target=$ac_cv_target
2563 ac_save_IFS=$IFS; IFS='-'
2564 set x $ac_cv_target
2565 shift
2566 target_cpu=$1
2567 target_vendor=$2
2568 shift; shift
2569 # Remember, the first character of IFS is used to create $*,
2570 # except with old shells:
2571 target_os=$*
2572 IFS=$ac_save_IFS
2573 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2574
2575
2576 # The aliases save the names the user supplied, while $host etc.
2577 # will get canonicalized.
2578 test -n "$target_alias" &&
2579 test "$program_prefix$program_suffix$program_transform_name" = \
2580 NONENONEs,x,x, &&
2581 program_prefix=${target_alias}-
2582 ac_ext=c
2583 ac_cpp='$CPP $CPPFLAGS'
2584 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2585 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2586 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2587 if test -n "$ac_tool_prefix"; then
2588 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2589 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2590 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2591 $as_echo_n "checking for $ac_word... " >&6; }
2592 if test "${ac_cv_prog_CC+set}" = set; then :
2593 $as_echo_n "(cached) " >&6
2594 else
2595 if test -n "$CC"; then
2596 ac_cv_prog_CC="$CC" # Let the user override the test.
2597 else
2598 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2599 for as_dir in $PATH
2600 do
2601 IFS=$as_save_IFS
2602 test -z "$as_dir" && as_dir=.
2603 for ac_exec_ext in '' $ac_executable_extensions; do
2604 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2605 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2606 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2607 break 2
2608 fi
2609 done
2610 done
2611 IFS=$as_save_IFS
2612
2613 fi
2614 fi
2615 CC=$ac_cv_prog_CC
2616 if test -n "$CC"; then
2617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2618 $as_echo "$CC" >&6; }
2619 else
2620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2621 $as_echo "no" >&6; }
2622 fi
2623
2624
2625 fi
2626 if test -z "$ac_cv_prog_CC"; then
2627 ac_ct_CC=$CC
2628 # Extract the first word of "gcc", so it can be a program name with args.
2629 set dummy gcc; ac_word=$2
2630 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2631 $as_echo_n "checking for $ac_word... " >&6; }
2632 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
2633 $as_echo_n "(cached) " >&6
2634 else
2635 if test -n "$ac_ct_CC"; then
2636 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2637 else
2638 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2639 for as_dir in $PATH
2640 do
2641 IFS=$as_save_IFS
2642 test -z "$as_dir" && as_dir=.
2643 for ac_exec_ext in '' $ac_executable_extensions; do
2644 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2645 ac_cv_prog_ac_ct_CC="gcc"
2646 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2647 break 2
2648 fi
2649 done
2650 done
2651 IFS=$as_save_IFS
2652
2653 fi
2654 fi
2655 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2656 if test -n "$ac_ct_CC"; then
2657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2658 $as_echo "$ac_ct_CC" >&6; }
2659 else
2660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2661 $as_echo "no" >&6; }
2662 fi
2663
2664 if test "x$ac_ct_CC" = x; then
2665 CC=""
2666 else
2667 case $cross_compiling:$ac_tool_warned in
2668 yes:)
2669 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2670 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2671 ac_tool_warned=yes ;;
2672 esac
2673 CC=$ac_ct_CC
2674 fi
2675 else
2676 CC="$ac_cv_prog_CC"
2677 fi
2678
2679 if test -z "$CC"; then
2680 if test -n "$ac_tool_prefix"; then
2681 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2682 set dummy ${ac_tool_prefix}cc; ac_word=$2
2683 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2684 $as_echo_n "checking for $ac_word... " >&6; }
2685 if test "${ac_cv_prog_CC+set}" = set; then :
2686 $as_echo_n "(cached) " >&6
2687 else
2688 if test -n "$CC"; then
2689 ac_cv_prog_CC="$CC" # Let the user override the test.
2690 else
2691 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2692 for as_dir in $PATH
2693 do
2694 IFS=$as_save_IFS
2695 test -z "$as_dir" && as_dir=.
2696 for ac_exec_ext in '' $ac_executable_extensions; do
2697 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2698 ac_cv_prog_CC="${ac_tool_prefix}cc"
2699 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2700 break 2
2701 fi
2702 done
2703 done
2704 IFS=$as_save_IFS
2705
2706 fi
2707 fi
2708 CC=$ac_cv_prog_CC
2709 if test -n "$CC"; then
2710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2711 $as_echo "$CC" >&6; }
2712 else
2713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2714 $as_echo "no" >&6; }
2715 fi
2716
2717
2718 fi
2719 fi
2720 if test -z "$CC"; then
2721 # Extract the first word of "cc", so it can be a program name with args.
2722 set dummy cc; ac_word=$2
2723 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2724 $as_echo_n "checking for $ac_word... " >&6; }
2725 if test "${ac_cv_prog_CC+set}" = set; then :
2726 $as_echo_n "(cached) " >&6
2727 else
2728 if test -n "$CC"; then
2729 ac_cv_prog_CC="$CC" # Let the user override the test.
2730 else
2731 ac_prog_rejected=no
2732 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2733 for as_dir in $PATH
2734 do
2735 IFS=$as_save_IFS
2736 test -z "$as_dir" && as_dir=.
2737 for ac_exec_ext in '' $ac_executable_extensions; do
2738 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2739 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2740 ac_prog_rejected=yes
2741 continue
2742 fi
2743 ac_cv_prog_CC="cc"
2744 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2745 break 2
2746 fi
2747 done
2748 done
2749 IFS=$as_save_IFS
2750
2751 if test $ac_prog_rejected = yes; then
2752 # We found a bogon in the path, so make sure we never use it.
2753 set dummy $ac_cv_prog_CC
2754 shift
2755 if test $# != 0; then
2756 # We chose a different compiler from the bogus one.
2757 # However, it has the same basename, so the bogon will be chosen
2758 # first if we set CC to just the basename; use the full file name.
2759 shift
2760 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2761 fi
2762 fi
2763 fi
2764 fi
2765 CC=$ac_cv_prog_CC
2766 if test -n "$CC"; then
2767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2768 $as_echo "$CC" >&6; }
2769 else
2770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2771 $as_echo "no" >&6; }
2772 fi
2773
2774
2775 fi
2776 if test -z "$CC"; then
2777 if test -n "$ac_tool_prefix"; then
2778 for ac_prog in cl.exe
2779 do
2780 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2781 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2782 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2783 $as_echo_n "checking for $ac_word... " >&6; }
2784 if test "${ac_cv_prog_CC+set}" = set; then :
2785 $as_echo_n "(cached) " >&6
2786 else
2787 if test -n "$CC"; then
2788 ac_cv_prog_CC="$CC" # Let the user override the test.
2789 else
2790 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2791 for as_dir in $PATH
2792 do
2793 IFS=$as_save_IFS
2794 test -z "$as_dir" && as_dir=.
2795 for ac_exec_ext in '' $ac_executable_extensions; do
2796 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2797 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2798 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2799 break 2
2800 fi
2801 done
2802 done
2803 IFS=$as_save_IFS
2804
2805 fi
2806 fi
2807 CC=$ac_cv_prog_CC
2808 if test -n "$CC"; then
2809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2810 $as_echo "$CC" >&6; }
2811 else
2812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2813 $as_echo "no" >&6; }
2814 fi
2815
2816
2817 test -n "$CC" && break
2818 done
2819 fi
2820 if test -z "$CC"; then
2821 ac_ct_CC=$CC
2822 for ac_prog in cl.exe
2823 do
2824 # Extract the first word of "$ac_prog", so it can be a program name with args.
2825 set dummy $ac_prog; ac_word=$2
2826 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2827 $as_echo_n "checking for $ac_word... " >&6; }
2828 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
2829 $as_echo_n "(cached) " >&6
2830 else
2831 if test -n "$ac_ct_CC"; then
2832 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2833 else
2834 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2835 for as_dir in $PATH
2836 do
2837 IFS=$as_save_IFS
2838 test -z "$as_dir" && as_dir=.
2839 for ac_exec_ext in '' $ac_executable_extensions; do
2840 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2841 ac_cv_prog_ac_ct_CC="$ac_prog"
2842 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2843 break 2
2844 fi
2845 done
2846 done
2847 IFS=$as_save_IFS
2848
2849 fi
2850 fi
2851 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2852 if test -n "$ac_ct_CC"; then
2853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2854 $as_echo "$ac_ct_CC" >&6; }
2855 else
2856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2857 $as_echo "no" >&6; }
2858 fi
2859
2860
2861 test -n "$ac_ct_CC" && break
2862 done
2863
2864 if test "x$ac_ct_CC" = x; then
2865 CC=""
2866 else
2867 case $cross_compiling:$ac_tool_warned in
2868 yes:)
2869 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2870 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2871 ac_tool_warned=yes ;;
2872 esac
2873 CC=$ac_ct_CC
2874 fi
2875 fi
2876
2877 fi
2878
2879
2880 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2881 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2882 as_fn_error "no acceptable C compiler found in \$PATH
2883 See \`config.log' for more details." "$LINENO" 5; }
2884
2885 # Provide some information about the compiler.
2886 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
2887 set X $ac_compile
2888 ac_compiler=$2
2889 for ac_option in --version -v -V -qversion; do
2890 { { ac_try="$ac_compiler $ac_option >&5"
2891 case "(($ac_try" in
2892 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2893 *) ac_try_echo=$ac_try;;
2894 esac
2895 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2896 $as_echo "$ac_try_echo"; } >&5
2897 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
2898 ac_status=$?
2899 if test -s conftest.err; then
2900 sed '10a\
2901 ... rest of stderr output deleted ...
2902 10q' conftest.err >conftest.er1
2903 cat conftest.er1 >&5
2904 rm -f conftest.er1 conftest.err
2905 fi
2906 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2907 test $ac_status = 0; }
2908 done
2909
2910 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2911 /* end confdefs.h. */
2912
2913 int
2914 main ()
2915 {
2916
2917 ;
2918 return 0;
2919 }
2920 _ACEOF
2921 ac_clean_files_save=$ac_clean_files
2922 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
2923 # Try to create an executable without -o first, disregard a.out.
2924 # It will help us diagnose broken compilers, and finding out an intuition
2925 # of exeext.
2926 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
2927 $as_echo_n "checking for C compiler default output file name... " >&6; }
2928 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2929
2930 # The possible output files:
2931 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2932
2933 ac_rmfiles=
2934 for ac_file in $ac_files
2935 do
2936 case $ac_file in
2937 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2938 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2939 esac
2940 done
2941 rm -f $ac_rmfiles
2942
2943 if { { ac_try="$ac_link_default"
2944 case "(($ac_try" in
2945 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2946 *) ac_try_echo=$ac_try;;
2947 esac
2948 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2949 $as_echo "$ac_try_echo"; } >&5
2950 (eval "$ac_link_default") 2>&5
2951 ac_status=$?
2952 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2953 test $ac_status = 0; }; then :
2954 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2955 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2956 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2957 # so that the user can short-circuit this test for compilers unknown to
2958 # Autoconf.
2959 for ac_file in $ac_files ''
2960 do
2961 test -f "$ac_file" || continue
2962 case $ac_file in
2963 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
2964 ;;
2965 [ab].out )
2966 # We found the default executable, but exeext='' is most
2967 # certainly right.
2968 break;;
2969 *.* )
2970 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2971 then :; else
2972 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2973 fi
2974 # We set ac_cv_exeext here because the later test for it is not
2975 # safe: cross compilers may not add the suffix if given an `-o'
2976 # argument, so we may need to know it at that point already.
2977 # Even if this section looks crufty: it has the advantage of
2978 # actually working.
2979 break;;
2980 * )
2981 break;;
2982 esac
2983 done
2984 test "$ac_cv_exeext" = no && ac_cv_exeext=
2985
2986 else
2987 ac_file=''
2988 fi
2989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
2990 $as_echo "$ac_file" >&6; }
2991 if test -z "$ac_file"; then :
2992 $as_echo "$as_me: failed program was:" >&5
2993 sed 's/^/| /' conftest.$ac_ext >&5
2994
2995 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2996 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2997 { as_fn_set_status 77
2998 as_fn_error "C compiler cannot create executables
2999 See \`config.log' for more details." "$LINENO" 5; }; }
3000 fi
3001 ac_exeext=$ac_cv_exeext
3002
3003 # Check that the compiler produces executables we can run. If not, either
3004 # the compiler is broken, or we cross compile.
3005 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3006 $as_echo_n "checking whether the C compiler works... " >&6; }
3007 # If not cross compiling, check that we can run a simple program.
3008 if test "$cross_compiling" != yes; then
3009 if { ac_try='./$ac_file'
3010 { { case "(($ac_try" in
3011 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3012 *) ac_try_echo=$ac_try;;
3013 esac
3014 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3015 $as_echo "$ac_try_echo"; } >&5
3016 (eval "$ac_try") 2>&5
3017 ac_status=$?
3018 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3019 test $ac_status = 0; }; }; then
3020 cross_compiling=no
3021 else
3022 if test "$cross_compiling" = maybe; then
3023 cross_compiling=yes
3024 else
3025 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3026 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3027 as_fn_error "cannot run C compiled programs.
3028 If you meant to cross compile, use \`--host'.
3029 See \`config.log' for more details." "$LINENO" 5; }
3030 fi
3031 fi
3032 fi
3033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3034 $as_echo "yes" >&6; }
3035
3036 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
3037 ac_clean_files=$ac_clean_files_save
3038 # Check that the compiler produces executables we can run. If not, either
3039 # the compiler is broken, or we cross compile.
3040 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3041 $as_echo_n "checking whether we are cross compiling... " >&6; }
3042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3043 $as_echo "$cross_compiling" >&6; }
3044
3045 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3046 $as_echo_n "checking for suffix of executables... " >&6; }
3047 if { { ac_try="$ac_link"
3048 case "(($ac_try" in
3049 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3050 *) ac_try_echo=$ac_try;;
3051 esac
3052 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3053 $as_echo "$ac_try_echo"; } >&5
3054 (eval "$ac_link") 2>&5
3055 ac_status=$?
3056 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3057 test $ac_status = 0; }; then :
3058 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3059 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3060 # work properly (i.e., refer to `conftest.exe'), while it won't with
3061 # `rm'.
3062 for ac_file in conftest.exe conftest conftest.*; do
3063 test -f "$ac_file" || continue
3064 case $ac_file in
3065 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3066 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3067 break;;
3068 * ) break;;
3069 esac
3070 done
3071 else
3072 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3073 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3074 as_fn_error "cannot compute suffix of executables: cannot compile and link
3075 See \`config.log' for more details." "$LINENO" 5; }
3076 fi
3077 rm -f conftest$ac_cv_exeext
3078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3079 $as_echo "$ac_cv_exeext" >&6; }
3080
3081 rm -f conftest.$ac_ext
3082 EXEEXT=$ac_cv_exeext
3083 ac_exeext=$EXEEXT
3084 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3085 $as_echo_n "checking for suffix of object files... " >&6; }
3086 if test "${ac_cv_objext+set}" = set; then :
3087 $as_echo_n "(cached) " >&6
3088 else
3089 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3090 /* end confdefs.h. */
3091
3092 int
3093 main ()
3094 {
3095
3096 ;
3097 return 0;
3098 }
3099 _ACEOF
3100 rm -f conftest.o conftest.obj
3101 if { { ac_try="$ac_compile"
3102 case "(($ac_try" in
3103 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3104 *) ac_try_echo=$ac_try;;
3105 esac
3106 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3107 $as_echo "$ac_try_echo"; } >&5
3108 (eval "$ac_compile") 2>&5
3109 ac_status=$?
3110 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3111 test $ac_status = 0; }; then :
3112 for ac_file in conftest.o conftest.obj conftest.*; do
3113 test -f "$ac_file" || continue;
3114 case $ac_file in
3115 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3116 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3117 break;;
3118 esac
3119 done
3120 else
3121 $as_echo "$as_me: failed program was:" >&5
3122 sed 's/^/| /' conftest.$ac_ext >&5
3123
3124 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3125 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3126 as_fn_error "cannot compute suffix of object files: cannot compile
3127 See \`config.log' for more details." "$LINENO" 5; }
3128 fi
3129 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3130 fi
3131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3132 $as_echo "$ac_cv_objext" >&6; }
3133 OBJEXT=$ac_cv_objext
3134 ac_objext=$OBJEXT
3135 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3136 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3137 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
3138 $as_echo_n "(cached) " >&6
3139 else
3140 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3141 /* end confdefs.h. */
3142
3143 int
3144 main ()
3145 {
3146 #ifndef __GNUC__
3147 choke me
3148 #endif
3149
3150 ;
3151 return 0;
3152 }
3153 _ACEOF
3154 if ac_fn_c_try_compile "$LINENO"; then :
3155 ac_compiler_gnu=yes
3156 else
3157 ac_compiler_gnu=no
3158 fi
3159 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3160 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3161
3162 fi
3163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3164 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3165 if test $ac_compiler_gnu = yes; then
3166 GCC=yes
3167 else
3168 GCC=
3169 fi
3170 ac_test_CFLAGS=${CFLAGS+set}
3171 ac_save_CFLAGS=$CFLAGS
3172 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3173 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3174 if test "${ac_cv_prog_cc_g+set}" = set; then :
3175 $as_echo_n "(cached) " >&6
3176 else
3177 ac_save_c_werror_flag=$ac_c_werror_flag
3178 ac_c_werror_flag=yes
3179 ac_cv_prog_cc_g=no
3180 CFLAGS="-g"
3181 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3182 /* end confdefs.h. */
3183
3184 int
3185 main ()
3186 {
3187
3188 ;
3189 return 0;
3190 }
3191 _ACEOF
3192 if ac_fn_c_try_compile "$LINENO"; then :
3193 ac_cv_prog_cc_g=yes
3194 else
3195 CFLAGS=""
3196 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3197 /* end confdefs.h. */
3198
3199 int
3200 main ()
3201 {
3202
3203 ;
3204 return 0;
3205 }
3206 _ACEOF
3207 if ac_fn_c_try_compile "$LINENO"; then :
3208
3209 else
3210 ac_c_werror_flag=$ac_save_c_werror_flag
3211 CFLAGS="-g"
3212 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3213 /* end confdefs.h. */
3214
3215 int
3216 main ()
3217 {
3218
3219 ;
3220 return 0;
3221 }
3222 _ACEOF
3223 if ac_fn_c_try_compile "$LINENO"; then :
3224 ac_cv_prog_cc_g=yes
3225 fi
3226 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3227 fi
3228 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3229 fi
3230 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3231 ac_c_werror_flag=$ac_save_c_werror_flag
3232 fi
3233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3234 $as_echo "$ac_cv_prog_cc_g" >&6; }
3235 if test "$ac_test_CFLAGS" = set; then
3236 CFLAGS=$ac_save_CFLAGS
3237 elif test $ac_cv_prog_cc_g = yes; then
3238 if test "$GCC" = yes; then
3239 CFLAGS="-g -O2"
3240 else
3241 CFLAGS="-g"
3242 fi
3243 else
3244 if test "$GCC" = yes; then
3245 CFLAGS="-O2"
3246 else
3247 CFLAGS=
3248 fi
3249 fi
3250 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3251 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3252 if test "${ac_cv_prog_cc_c89+set}" = set; then :
3253 $as_echo_n "(cached) " >&6
3254 else
3255 ac_cv_prog_cc_c89=no
3256 ac_save_CC=$CC
3257 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3258 /* end confdefs.h. */
3259 #include <stdarg.h>
3260 #include <stdio.h>
3261 #include <sys/types.h>
3262 #include <sys/stat.h>
3263 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3264 struct buf { int x; };
3265 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3266 static char *e (p, i)
3267 char **p;
3268 int i;
3269 {
3270 return p[i];
3271 }
3272 static char *f (char * (*g) (char **, int), char **p, ...)
3273 {
3274 char *s;
3275 va_list v;
3276 va_start (v,p);
3277 s = g (p, va_arg (v,int));
3278 va_end (v);
3279 return s;
3280 }
3281
3282 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3283 function prototypes and stuff, but not '\xHH' hex character constants.
3284 These don't provoke an error unfortunately, instead are silently treated
3285 as 'x'. The following induces an error, until -std is added to get
3286 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3287 array size at least. It's necessary to write '\x00'==0 to get something
3288 that's true only with -std. */
3289 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3290
3291 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3292 inside strings and character constants. */
3293 #define FOO(x) 'x'
3294 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3295
3296 int test (int i, double x);
3297 struct s1 {int (*f) (int a);};
3298 struct s2 {int (*f) (double a);};
3299 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3300 int argc;
3301 char **argv;
3302 int
3303 main ()
3304 {
3305 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3306 ;
3307 return 0;
3308 }
3309 _ACEOF
3310 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3311 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3312 do
3313 CC="$ac_save_CC $ac_arg"
3314 if ac_fn_c_try_compile "$LINENO"; then :
3315 ac_cv_prog_cc_c89=$ac_arg
3316 fi
3317 rm -f core conftest.err conftest.$ac_objext
3318 test "x$ac_cv_prog_cc_c89" != "xno" && break
3319 done
3320 rm -f conftest.$ac_ext
3321 CC=$ac_save_CC
3322
3323 fi
3324 # AC_CACHE_VAL
3325 case "x$ac_cv_prog_cc_c89" in
3326 x)
3327 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3328 $as_echo "none needed" >&6; } ;;
3329 xno)
3330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3331 $as_echo "unsupported" >&6; } ;;
3332 *)
3333 CC="$CC $ac_cv_prog_cc_c89"
3334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3335 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3336 esac
3337 if test "x$ac_cv_prog_cc_c89" != xno; then :
3338
3339 fi
3340
3341 ac_ext=c
3342 ac_cpp='$CPP $CPPFLAGS'
3343 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3344 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3345 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3346
3347
3348 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing strerror" >&5
3349 $as_echo_n "checking for library containing strerror... " >&6; }
3350 if test "${ac_cv_search_strerror+set}" = set; then :
3351 $as_echo_n "(cached) " >&6
3352 else
3353 ac_func_search_save_LIBS=$LIBS
3354 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3355 /* end confdefs.h. */
3356
3357 /* Override any GCC internal prototype to avoid an error.
3358 Use char because int might match the return type of a GCC
3359 builtin and then its argument prototype would still apply. */
3360 #ifdef __cplusplus
3361 extern "C"
3362 #endif
3363 char strerror ();
3364 int
3365 main ()
3366 {
3367 return strerror ();
3368 ;
3369 return 0;
3370 }
3371 _ACEOF
3372 for ac_lib in '' cposix; do
3373 if test -z "$ac_lib"; then
3374 ac_res="none required"
3375 else
3376 ac_res=-l$ac_lib
3377 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
3378 fi
3379 if ac_fn_c_try_link "$LINENO"; then :
3380 ac_cv_search_strerror=$ac_res
3381 fi
3382 rm -f core conftest.err conftest.$ac_objext \
3383 conftest$ac_exeext
3384 if test "${ac_cv_search_strerror+set}" = set; then :
3385 break
3386 fi
3387 done
3388 if test "${ac_cv_search_strerror+set}" = set; then :
3389
3390 else
3391 ac_cv_search_strerror=no
3392 fi
3393 rm conftest.$ac_ext
3394 LIBS=$ac_func_search_save_LIBS
3395 fi
3396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_strerror" >&5
3397 $as_echo "$ac_cv_search_strerror" >&6; }
3398 ac_res=$ac_cv_search_strerror
3399 if test "$ac_res" != no; then :
3400 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
3401
3402 fi
3403
3404
3405 BFD_VERSION=`sed -n -e 's/^.._INIT_AUTOMAKE.*,[ ]*\([^ ]*\)[ ]*).*/\1/p' < ${srcdir}/../bfd/configure.in`
3406 am__api_version='1.11'
3407
3408 # Find a good install program. We prefer a C program (faster),
3409 # so one script is as good as another. But avoid the broken or
3410 # incompatible versions:
3411 # SysV /etc/install, /usr/sbin/install
3412 # SunOS /usr/etc/install
3413 # IRIX /sbin/install
3414 # AIX /bin/install
3415 # AmigaOS /C/install, which installs bootblocks on floppy discs
3416 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3417 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3418 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3419 # OS/2's system install, which has a completely different semantic
3420 # ./install, which can be erroneously created by make from ./install.sh.
3421 # Reject install programs that cannot install multiple files.
3422 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
3423 $as_echo_n "checking for a BSD-compatible install... " >&6; }
3424 if test -z "$INSTALL"; then
3425 if test "${ac_cv_path_install+set}" = set; then :
3426 $as_echo_n "(cached) " >&6
3427 else
3428 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3429 for as_dir in $PATH
3430 do
3431 IFS=$as_save_IFS
3432 test -z "$as_dir" && as_dir=.
3433 # Account for people who put trailing slashes in PATH elements.
3434 case $as_dir/ in #((
3435 ./ | .// | /[cC]/* | \
3436 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3437 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
3438 /usr/ucb/* ) ;;
3439 *)
3440 # OSF1 and SCO ODT 3.0 have their own names for install.
3441 # Don't use installbsd from OSF since it installs stuff as root
3442 # by default.
3443 for ac_prog in ginstall scoinst install; do
3444 for ac_exec_ext in '' $ac_executable_extensions; do
3445 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
3446 if test $ac_prog = install &&
3447 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3448 # AIX install. It has an incompatible calling convention.
3449 :
3450 elif test $ac_prog = install &&
3451 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3452 # program-specific install script used by HP pwplus--don't use.
3453 :
3454 else
3455 rm -rf conftest.one conftest.two conftest.dir
3456 echo one > conftest.one
3457 echo two > conftest.two
3458 mkdir conftest.dir
3459 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
3460 test -s conftest.one && test -s conftest.two &&
3461 test -s conftest.dir/conftest.one &&
3462 test -s conftest.dir/conftest.two
3463 then
3464 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3465 break 3
3466 fi
3467 fi
3468 fi
3469 done
3470 done
3471 ;;
3472 esac
3473
3474 done
3475 IFS=$as_save_IFS
3476
3477 rm -rf conftest.one conftest.two conftest.dir
3478
3479 fi
3480 if test "${ac_cv_path_install+set}" = set; then
3481 INSTALL=$ac_cv_path_install
3482 else
3483 # As a last resort, use the slow shell script. Don't cache a
3484 # value for INSTALL within a source directory, because that will
3485 # break other packages using the cache if that directory is
3486 # removed, or if the value is a relative name.
3487 INSTALL=$ac_install_sh
3488 fi
3489 fi
3490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
3491 $as_echo "$INSTALL" >&6; }
3492
3493 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3494 # It thinks the first close brace ends the variable substitution.
3495 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3496
3497 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3498
3499 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3500
3501 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
3502 $as_echo_n "checking whether build environment is sane... " >&6; }
3503 # Just in case
3504 sleep 1
3505 echo timestamp > conftest.file
3506 # Reject unsafe characters in $srcdir or the absolute working directory
3507 # name. Accept space and tab only in the latter.
3508 am_lf='
3509 '
3510 case `pwd` in
3511 *[\\\"\#\$\&\'\`$am_lf]*)
3512 as_fn_error "unsafe absolute working directory name" "$LINENO" 5;;
3513 esac
3514 case $srcdir in
3515 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
3516 as_fn_error "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
3517 esac
3518
3519 # Do `set' in a subshell so we don't clobber the current shell's
3520 # arguments. Must try -L first in case configure is actually a
3521 # symlink; some systems play weird games with the mod time of symlinks
3522 # (eg FreeBSD returns the mod time of the symlink's containing
3523 # directory).
3524 if (
3525 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
3526 if test "$*" = "X"; then
3527 # -L didn't work.
3528 set X `ls -t "$srcdir/configure" conftest.file`
3529 fi
3530 rm -f conftest.file
3531 if test "$*" != "X $srcdir/configure conftest.file" \
3532 && test "$*" != "X conftest.file $srcdir/configure"; then
3533
3534 # If neither matched, then we have a broken ls. This can happen
3535 # if, for instance, CONFIG_SHELL is bash and it inherits a
3536 # broken ls alias from the environment. This has actually
3537 # happened. Such a system could not be considered "sane".
3538 as_fn_error "ls -t appears to fail. Make sure there is not a broken
3539 alias in your environment" "$LINENO" 5
3540 fi
3541
3542 test "$2" = conftest.file
3543 )
3544 then
3545 # Ok.
3546 :
3547 else
3548 as_fn_error "newly created file is older than distributed files!
3549 Check your system clock" "$LINENO" 5
3550 fi
3551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3552 $as_echo "yes" >&6; }
3553 test "$program_prefix" != NONE &&
3554 program_transform_name="s&^&$program_prefix&;$program_transform_name"
3555 # Use a double $ so make ignores it.
3556 test "$program_suffix" != NONE &&
3557 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3558 # Double any \ or $.
3559 # By default was `s,x,x', remove it if useless.
3560 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3561 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
3562
3563 # expand $ac_aux_dir to an absolute path
3564 am_aux_dir=`cd $ac_aux_dir && pwd`
3565
3566 if test x"${MISSING+set}" != xset; then
3567 case $am_aux_dir in
3568 *\ * | *\ *)
3569 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
3570 *)
3571 MISSING="\${SHELL} $am_aux_dir/missing" ;;
3572 esac
3573 fi
3574 # Use eval to expand $SHELL
3575 if eval "$MISSING --run true"; then
3576 am_missing_run="$MISSING --run "
3577 else
3578 am_missing_run=
3579 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
3580 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
3581 fi
3582
3583 if test x"${install_sh}" != xset; then
3584 case $am_aux_dir in
3585 *\ * | *\ *)
3586 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
3587 *)
3588 install_sh="\${SHELL} $am_aux_dir/install-sh"
3589 esac
3590 fi
3591
3592 # Installed binaries are usually stripped using `strip' when the user
3593 # run `make install-strip'. However `strip' might not be the right
3594 # tool to use in cross-compilation environments, therefore Automake
3595 # will honor the `STRIP' environment variable to overrule this program.
3596 if test "$cross_compiling" != no; then
3597 if test -n "$ac_tool_prefix"; then
3598 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3599 set dummy ${ac_tool_prefix}strip; ac_word=$2
3600 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3601 $as_echo_n "checking for $ac_word... " >&6; }
3602 if test "${ac_cv_prog_STRIP+set}" = set; then :
3603 $as_echo_n "(cached) " >&6
3604 else
3605 if test -n "$STRIP"; then
3606 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3607 else
3608 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3609 for as_dir in $PATH
3610 do
3611 IFS=$as_save_IFS
3612 test -z "$as_dir" && as_dir=.
3613 for ac_exec_ext in '' $ac_executable_extensions; do
3614 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3615 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3616 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3617 break 2
3618 fi
3619 done
3620 done
3621 IFS=$as_save_IFS
3622
3623 fi
3624 fi
3625 STRIP=$ac_cv_prog_STRIP
3626 if test -n "$STRIP"; then
3627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3628 $as_echo "$STRIP" >&6; }
3629 else
3630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3631 $as_echo "no" >&6; }
3632 fi
3633
3634
3635 fi
3636 if test -z "$ac_cv_prog_STRIP"; then
3637 ac_ct_STRIP=$STRIP
3638 # Extract the first word of "strip", so it can be a program name with args.
3639 set dummy strip; ac_word=$2
3640 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3641 $as_echo_n "checking for $ac_word... " >&6; }
3642 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
3643 $as_echo_n "(cached) " >&6
3644 else
3645 if test -n "$ac_ct_STRIP"; then
3646 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3647 else
3648 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3649 for as_dir in $PATH
3650 do
3651 IFS=$as_save_IFS
3652 test -z "$as_dir" && as_dir=.
3653 for ac_exec_ext in '' $ac_executable_extensions; do
3654 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3655 ac_cv_prog_ac_ct_STRIP="strip"
3656 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3657 break 2
3658 fi
3659 done
3660 done
3661 IFS=$as_save_IFS
3662
3663 fi
3664 fi
3665 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3666 if test -n "$ac_ct_STRIP"; then
3667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3668 $as_echo "$ac_ct_STRIP" >&6; }
3669 else
3670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3671 $as_echo "no" >&6; }
3672 fi
3673
3674 if test "x$ac_ct_STRIP" = x; then
3675 STRIP=":"
3676 else
3677 case $cross_compiling:$ac_tool_warned in
3678 yes:)
3679 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3680 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3681 ac_tool_warned=yes ;;
3682 esac
3683 STRIP=$ac_ct_STRIP
3684 fi
3685 else
3686 STRIP="$ac_cv_prog_STRIP"
3687 fi
3688
3689 fi
3690 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3691
3692 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
3693 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3694 if test -z "$MKDIR_P"; then
3695 if test "${ac_cv_path_mkdir+set}" = set; then :
3696 $as_echo_n "(cached) " >&6
3697 else
3698 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3699 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3700 do
3701 IFS=$as_save_IFS
3702 test -z "$as_dir" && as_dir=.
3703 for ac_prog in mkdir gmkdir; do
3704 for ac_exec_ext in '' $ac_executable_extensions; do
3705 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
3706 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3707 'mkdir (GNU coreutils) '* | \
3708 'mkdir (coreutils) '* | \
3709 'mkdir (fileutils) '4.1*)
3710 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
3711 break 3;;
3712 esac
3713 done
3714 done
3715 done
3716 IFS=$as_save_IFS
3717
3718 fi
3719
3720 if test "${ac_cv_path_mkdir+set}" = set; then
3721 MKDIR_P="$ac_cv_path_mkdir -p"
3722 else
3723 # As a last resort, use the slow shell script. Don't cache a
3724 # value for MKDIR_P within a source directory, because that will
3725 # break other packages using the cache if that directory is
3726 # removed, or if the value is a relative name.
3727 test -d ./--version && rmdir ./--version
3728 MKDIR_P="$ac_install_sh -d"
3729 fi
3730 fi
3731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3732 $as_echo "$MKDIR_P" >&6; }
3733
3734 mkdir_p="$MKDIR_P"
3735 case $mkdir_p in
3736 [\\/$]* | ?:[\\/]*) ;;
3737 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
3738 esac
3739
3740 for ac_prog in gawk mawk nawk awk
3741 do
3742 # Extract the first word of "$ac_prog", so it can be a program name with args.
3743 set dummy $ac_prog; ac_word=$2
3744 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3745 $as_echo_n "checking for $ac_word... " >&6; }
3746 if test "${ac_cv_prog_AWK+set}" = set; then :
3747 $as_echo_n "(cached) " >&6
3748 else
3749 if test -n "$AWK"; then
3750 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3751 else
3752 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3753 for as_dir in $PATH
3754 do
3755 IFS=$as_save_IFS
3756 test -z "$as_dir" && as_dir=.
3757 for ac_exec_ext in '' $ac_executable_extensions; do
3758 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3759 ac_cv_prog_AWK="$ac_prog"
3760 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3761 break 2
3762 fi
3763 done
3764 done
3765 IFS=$as_save_IFS
3766
3767 fi
3768 fi
3769 AWK=$ac_cv_prog_AWK
3770 if test -n "$AWK"; then
3771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3772 $as_echo "$AWK" >&6; }
3773 else
3774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3775 $as_echo "no" >&6; }
3776 fi
3777
3778
3779 test -n "$AWK" && break
3780 done
3781
3782 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3783 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3784 set x ${MAKE-make}
3785 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3786 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
3787 $as_echo_n "(cached) " >&6
3788 else
3789 cat >conftest.make <<\_ACEOF
3790 SHELL = /bin/sh
3791 all:
3792 @echo '@@@%%%=$(MAKE)=@@@%%%'
3793 _ACEOF
3794 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3795 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3796 *@@@%%%=?*=@@@%%%*)
3797 eval ac_cv_prog_make_${ac_make}_set=yes;;
3798 *)
3799 eval ac_cv_prog_make_${ac_make}_set=no;;
3800 esac
3801 rm -f conftest.make
3802 fi
3803 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3805 $as_echo "yes" >&6; }
3806 SET_MAKE=
3807 else
3808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3809 $as_echo "no" >&6; }
3810 SET_MAKE="MAKE=${MAKE-make}"
3811 fi
3812
3813 rm -rf .tst 2>/dev/null
3814 mkdir .tst 2>/dev/null
3815 if test -d .tst; then
3816 am__leading_dot=.
3817 else
3818 am__leading_dot=_
3819 fi
3820 rmdir .tst 2>/dev/null
3821
3822 DEPDIR="${am__leading_dot}deps"
3823
3824 ac_config_commands="$ac_config_commands depfiles"
3825
3826
3827 am_make=${MAKE-make}
3828 cat > confinc << 'END'
3829 am__doit:
3830 @echo this is the am__doit target
3831 .PHONY: am__doit
3832 END
3833 # If we don't find an include directive, just comment out the code.
3834 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3835 $as_echo_n "checking for style of include used by $am_make... " >&6; }
3836 am__include="#"
3837 am__quote=
3838 _am_result=none
3839 # First try GNU make style include.
3840 echo "include confinc" > confmf
3841 # Ignore all kinds of additional output from `make'.
3842 case `$am_make -s -f confmf 2> /dev/null` in #(
3843 *the\ am__doit\ target*)
3844 am__include=include
3845 am__quote=
3846 _am_result=GNU
3847 ;;
3848 esac
3849 # Now try BSD make style include.
3850 if test "$am__include" = "#"; then
3851 echo '.include "confinc"' > confmf
3852 case `$am_make -s -f confmf 2> /dev/null` in #(
3853 *the\ am__doit\ target*)
3854 am__include=.include
3855 am__quote="\""
3856 _am_result=BSD
3857 ;;
3858 esac
3859 fi
3860
3861
3862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3863 $as_echo "$_am_result" >&6; }
3864 rm -f confinc confmf
3865
3866 # Check whether --enable-dependency-tracking was given.
3867 if test "${enable_dependency_tracking+set}" = set; then :
3868 enableval=$enable_dependency_tracking;
3869 fi
3870
3871 if test "x$enable_dependency_tracking" != xno; then
3872 am_depcomp="$ac_aux_dir/depcomp"
3873 AMDEPBACKSLASH='\'
3874 fi
3875 if test "x$enable_dependency_tracking" != xno; then
3876 AMDEP_TRUE=
3877 AMDEP_FALSE='#'
3878 else
3879 AMDEP_TRUE='#'
3880 AMDEP_FALSE=
3881 fi
3882
3883
3884 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3885 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3886 # is not polluted with repeated "-I."
3887 am__isrc=' -I$(srcdir)'
3888 # test to see if srcdir already configured
3889 if test -f $srcdir/config.status; then
3890 as_fn_error "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3891 fi
3892 fi
3893
3894 # test whether we have cygpath
3895 if test -z "$CYGPATH_W"; then
3896 if (cygpath --version) >/dev/null 2>/dev/null; then
3897 CYGPATH_W='cygpath -w'
3898 else
3899 CYGPATH_W=echo
3900 fi
3901 fi
3902
3903
3904 # Define the identity of the package.
3905 PACKAGE=ld
3906 VERSION=${BFD_VERSION}
3907
3908
3909 cat >>confdefs.h <<_ACEOF
3910 #define PACKAGE "$PACKAGE"
3911 _ACEOF
3912
3913
3914 cat >>confdefs.h <<_ACEOF
3915 #define VERSION "$VERSION"
3916 _ACEOF
3917
3918 # Some tools Automake needs.
3919
3920 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3921
3922
3923 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3924
3925
3926 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3927
3928
3929 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3930
3931
3932 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3933
3934 # We need awk for the "check" target. The system "awk" is bad on
3935 # some platforms.
3936 # Always define AMTAR for backward compatibility.
3937
3938 AMTAR=${AMTAR-"${am_missing_run}tar"}
3939
3940 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
3941
3942
3943
3944
3945 depcc="$CC" am_compiler_list=
3946
3947 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3948 $as_echo_n "checking dependency style of $depcc... " >&6; }
3949 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
3950 $as_echo_n "(cached) " >&6
3951 else
3952 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3953 # We make a subdir and do the tests there. Otherwise we can end up
3954 # making bogus files that we don't know about and never remove. For
3955 # instance it was reported that on HP-UX the gcc test will end up
3956 # making a dummy file named `D' -- because `-MD' means `put the output
3957 # in D'.
3958 mkdir conftest.dir
3959 # Copy depcomp to subdir because otherwise we won't find it if we're
3960 # using a relative directory.
3961 cp "$am_depcomp" conftest.dir
3962 cd conftest.dir
3963 # We will build objects and dependencies in a subdirectory because
3964 # it helps to detect inapplicable dependency modes. For instance
3965 # both Tru64's cc and ICC support -MD to output dependencies as a
3966 # side effect of compilation, but ICC will put the dependencies in
3967 # the current directory while Tru64 will put them in the object
3968 # directory.
3969 mkdir sub
3970
3971 am_cv_CC_dependencies_compiler_type=none
3972 if test "$am_compiler_list" = ""; then
3973 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3974 fi
3975 am__universal=false
3976 case " $depcc " in #(
3977 *\ -arch\ *\ -arch\ *) am__universal=true ;;
3978 esac
3979
3980 for depmode in $am_compiler_list; do
3981 # Setup a source with many dependencies, because some compilers
3982 # like to wrap large dependency lists on column 80 (with \), and
3983 # we should not choose a depcomp mode which is confused by this.
3984 #
3985 # We need to recreate these files for each test, as the compiler may
3986 # overwrite some of them when testing with obscure command lines.
3987 # This happens at least with the AIX C compiler.
3988 : > sub/conftest.c
3989 for i in 1 2 3 4 5 6; do
3990 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3991 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3992 # Solaris 8's {/usr,}/bin/sh.
3993 touch sub/conftst$i.h
3994 done
3995 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3996
3997 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3998 # mode. It turns out that the SunPro C++ compiler does not properly
3999 # handle `-M -o', and we need to detect this. Also, some Intel
4000 # versions had trouble with output in subdirs
4001 am__obj=sub/conftest.${OBJEXT-o}
4002 am__minus_obj="-o $am__obj"
4003 case $depmode in
4004 gcc)
4005 # This depmode causes a compiler race in universal mode.
4006 test "$am__universal" = false || continue
4007 ;;
4008 nosideeffect)
4009 # after this tag, mechanisms are not by side-effect, so they'll
4010 # only be used when explicitly requested
4011 if test "x$enable_dependency_tracking" = xyes; then
4012 continue
4013 else
4014 break
4015 fi
4016 ;;
4017 msvisualcpp | msvcmsys)
4018 # This compiler won't grok `-c -o', but also, the minuso test has
4019 # not run yet. These depmodes are late enough in the game, and
4020 # so weak that their functioning should not be impacted.
4021 am__obj=conftest.${OBJEXT-o}
4022 am__minus_obj=
4023 ;;
4024 none) break ;;
4025 esac
4026 if depmode=$depmode \
4027 source=sub/conftest.c object=$am__obj \
4028 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4029 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4030 >/dev/null 2>conftest.err &&
4031 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4032 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4033 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4034 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4035 # icc doesn't choke on unknown options, it will just issue warnings
4036 # or remarks (even with -Werror). So we grep stderr for any message
4037 # that says an option was ignored or not supported.
4038 # When given -MP, icc 7.0 and 7.1 complain thusly:
4039 # icc: Command line warning: ignoring option '-M'; no argument required
4040 # The diagnosis changed in icc 8.0:
4041 # icc: Command line remark: option '-MP' not supported
4042 if (grep 'ignoring option' conftest.err ||
4043 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4044 am_cv_CC_dependencies_compiler_type=$depmode
4045 break
4046 fi
4047 fi
4048 done
4049
4050 cd ..
4051 rm -rf conftest.dir
4052 else
4053 am_cv_CC_dependencies_compiler_type=none
4054 fi
4055
4056 fi
4057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4058 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4059 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4060
4061 if
4062 test "x$enable_dependency_tracking" != xno \
4063 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4064 am__fastdepCC_TRUE=
4065 am__fastdepCC_FALSE='#'
4066 else
4067 am__fastdepCC_TRUE='#'
4068 am__fastdepCC_FALSE=
4069 fi
4070
4071
4072
4073
4074 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
4075 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
4076 # Check whether --enable-maintainer-mode was given.
4077 if test "${enable_maintainer_mode+set}" = set; then :
4078 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
4079 else
4080 USE_MAINTAINER_MODE=no
4081 fi
4082
4083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
4084 $as_echo "$USE_MAINTAINER_MODE" >&6; }
4085 if test $USE_MAINTAINER_MODE = yes; then
4086 MAINTAINER_MODE_TRUE=
4087 MAINTAINER_MODE_FALSE='#'
4088 else
4089 MAINTAINER_MODE_TRUE='#'
4090 MAINTAINER_MODE_FALSE=
4091 fi
4092
4093 MAINT=$MAINTAINER_MODE_TRUE
4094
4095
4096
4097
4098 # Check whether --with-lib-path was given.
4099 if test "${with_lib_path+set}" = set; then :
4100 withval=$with_lib_path; LIB_PATH=$withval
4101 fi
4102
4103 # Check whether --enable-targets was given.
4104 if test "${enable_targets+set}" = set; then :
4105 enableval=$enable_targets; case "${enableval}" in
4106 yes | "") as_fn_error "enable-targets option must specify target names or 'all'" "$LINENO" 5
4107 ;;
4108 no) enable_targets= ;;
4109 *) enable_targets=$enableval ;;
4110 esac
4111 fi
4112 # Check whether --enable-64-bit-bfd was given.
4113 if test "${enable_64_bit_bfd+set}" = set; then :
4114 enableval=$enable_64_bit_bfd; case "${enableval}" in
4115 yes) want64=true ;;
4116 no) want64=false ;;
4117 *) as_fn_error "bad value ${enableval} for 64-bit-bfd option" "$LINENO" 5 ;;
4118 esac
4119 else
4120 want64=false
4121 fi
4122
4123
4124 # Check whether --with-sysroot was given.
4125 if test "${with_sysroot+set}" = set; then :
4126 withval=$with_sysroot;
4127 case ${with_sysroot} in
4128 yes) TARGET_SYSTEM_ROOT='${exec_prefix}/${target_alias}/sys-root' ;;
4129 *) TARGET_SYSTEM_ROOT=$with_sysroot ;;
4130 esac
4131
4132 TARGET_SYSTEM_ROOT_DEFINE='-DTARGET_SYSTEM_ROOT=\"$(TARGET_SYSTEM_ROOT)\"'
4133 use_sysroot=yes
4134
4135 if test "x$prefix" = xNONE; then
4136 test_prefix=/usr/local
4137 else
4138 test_prefix=$prefix
4139 fi
4140 if test "x$exec_prefix" = xNONE; then
4141 test_exec_prefix=$test_prefix
4142 else
4143 test_exec_prefix=$exec_prefix
4144 fi
4145 case ${TARGET_SYSTEM_ROOT} in
4146 "${test_prefix}"|"${test_prefix}/"*|\
4147 "${test_exec_prefix}"|"${test_exec_prefix}/"*|\
4148 '${prefix}'|'${prefix}/'*|\
4149 '${exec_prefix}'|'${exec_prefix}/'*)
4150 t="$TARGET_SYSTEM_ROOT_DEFINE -DTARGET_SYSTEM_ROOT_RELOCATABLE"
4151 TARGET_SYSTEM_ROOT_DEFINE="$t"
4152 ;;
4153 esac
4154
4155 else
4156
4157 use_sysroot=no
4158 TARGET_SYSTEM_ROOT=
4159 TARGET_SYSTEM_ROOT_DEFINE='-DTARGET_SYSTEM_ROOT=\"\"'
4160
4161 fi
4162
4163
4164
4165
4166
4167 # Check whether --enable-got was given.
4168 if test "${enable_got+set}" = set; then :
4169 enableval=$enable_got; case "${enableval}" in
4170 target | single | negative | multigot) got_handling=$enableval ;;
4171 *) as_fn_error "bad value ${enableval} for --enable-got option" "$LINENO" 5 ;;
4172 esac
4173 else
4174 got_handling=target
4175 fi
4176
4177
4178 case "${got_handling}" in
4179 target)
4180
4181 $as_echo "#define GOT_HANDLING_DEFAULT GOT_HANDLING_TARGET_DEFAULT" >>confdefs.h
4182 ;;
4183 single)
4184
4185 $as_echo "#define GOT_HANDLING_DEFAULT GOT_HANDLING_SINGLE" >>confdefs.h
4186 ;;
4187 negative)
4188
4189 $as_echo "#define GOT_HANDLING_DEFAULT GOT_HANDLING_NEGATIVE" >>confdefs.h
4190 ;;
4191 multigot)
4192
4193 $as_echo "#define GOT_HANDLING_DEFAULT GOT_HANDLING_MULTIGOT" >>confdefs.h
4194 ;;
4195 *) as_fn_error "bad value ${got_handling} for --enable-got option" "$LINENO" 5 ;;
4196 esac
4197
4198 ac_ext=c
4199 ac_cpp='$CPP $CPPFLAGS'
4200 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4201 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4202 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4203 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4204 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4205 # On Suns, sometimes $CPP names a directory.
4206 if test -n "$CPP" && test -d "$CPP"; then
4207 CPP=
4208 fi
4209 if test -z "$CPP"; then
4210 if test "${ac_cv_prog_CPP+set}" = set; then :
4211 $as_echo_n "(cached) " >&6
4212 else
4213 # Double quotes because CPP needs to be expanded
4214 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4215 do
4216 ac_preproc_ok=false
4217 for ac_c_preproc_warn_flag in '' yes
4218 do
4219 # Use a header file that comes with gcc, so configuring glibc
4220 # with a fresh cross-compiler works.
4221 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4222 # <limits.h> exists even on freestanding compilers.
4223 # On the NeXT, cc -E runs the code through the compiler's parser,
4224 # not just through cpp. "Syntax error" is here to catch this case.
4225 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4226 /* end confdefs.h. */
4227 #ifdef __STDC__
4228 # include <limits.h>
4229 #else
4230 # include <assert.h>
4231 #endif
4232 Syntax error
4233 _ACEOF
4234 if ac_fn_c_try_cpp "$LINENO"; then :
4235
4236 else
4237 # Broken: fails on valid input.
4238 continue
4239 fi
4240 rm -f conftest.err conftest.$ac_ext
4241
4242 # OK, works on sane cases. Now check whether nonexistent headers
4243 # can be detected and how.
4244 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4245 /* end confdefs.h. */
4246 #include <ac_nonexistent.h>
4247 _ACEOF
4248 if ac_fn_c_try_cpp "$LINENO"; then :
4249 # Broken: success on invalid input.
4250 continue
4251 else
4252 # Passes both tests.
4253 ac_preproc_ok=:
4254 break
4255 fi
4256 rm -f conftest.err conftest.$ac_ext
4257
4258 done
4259 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4260 rm -f conftest.err conftest.$ac_ext
4261 if $ac_preproc_ok; then :
4262 break
4263 fi
4264
4265 done
4266 ac_cv_prog_CPP=$CPP
4267
4268 fi
4269 CPP=$ac_cv_prog_CPP
4270 else
4271 ac_cv_prog_CPP=$CPP
4272 fi
4273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4274 $as_echo "$CPP" >&6; }
4275 ac_preproc_ok=false
4276 for ac_c_preproc_warn_flag in '' yes
4277 do
4278 # Use a header file that comes with gcc, so configuring glibc
4279 # with a fresh cross-compiler works.
4280 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4281 # <limits.h> exists even on freestanding compilers.
4282 # On the NeXT, cc -E runs the code through the compiler's parser,
4283 # not just through cpp. "Syntax error" is here to catch this case.
4284 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4285 /* end confdefs.h. */
4286 #ifdef __STDC__
4287 # include <limits.h>
4288 #else
4289 # include <assert.h>
4290 #endif
4291 Syntax error
4292 _ACEOF
4293 if ac_fn_c_try_cpp "$LINENO"; then :
4294
4295 else
4296 # Broken: fails on valid input.
4297 continue
4298 fi
4299 rm -f conftest.err conftest.$ac_ext
4300
4301 # OK, works on sane cases. Now check whether nonexistent headers
4302 # can be detected and how.
4303 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4304 /* end confdefs.h. */
4305 #include <ac_nonexistent.h>
4306 _ACEOF
4307 if ac_fn_c_try_cpp "$LINENO"; then :
4308 # Broken: success on invalid input.
4309 continue
4310 else
4311 # Passes both tests.
4312 ac_preproc_ok=:
4313 break
4314 fi
4315 rm -f conftest.err conftest.$ac_ext
4316
4317 done
4318 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4319 rm -f conftest.err conftest.$ac_ext
4320 if $ac_preproc_ok; then :
4321
4322 else
4323 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4324 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4325 as_fn_error "C preprocessor \"$CPP\" fails sanity check
4326 See \`config.log' for more details." "$LINENO" 5; }
4327 fi
4328
4329 ac_ext=c
4330 ac_cpp='$CPP $CPPFLAGS'
4331 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4332 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4333 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4334
4335
4336 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4337 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4338 if test "${ac_cv_path_GREP+set}" = set; then :
4339 $as_echo_n "(cached) " >&6
4340 else
4341 if test -z "$GREP"; then
4342 ac_path_GREP_found=false
4343 # Loop through the user's path and test for each of PROGNAME-LIST
4344 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4345 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4346 do
4347 IFS=$as_save_IFS
4348 test -z "$as_dir" && as_dir=.
4349 for ac_prog in grep ggrep; do
4350 for ac_exec_ext in '' $ac_executable_extensions; do
4351 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4352 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4353 # Check for GNU ac_path_GREP and select it if it is found.
4354 # Check for GNU $ac_path_GREP
4355 case `"$ac_path_GREP" --version 2>&1` in
4356 *GNU*)
4357 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4358 *)
4359 ac_count=0
4360 $as_echo_n 0123456789 >"conftest.in"
4361 while :
4362 do
4363 cat "conftest.in" "conftest.in" >"conftest.tmp"
4364 mv "conftest.tmp" "conftest.in"
4365 cp "conftest.in" "conftest.nl"
4366 $as_echo 'GREP' >> "conftest.nl"
4367 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4368 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4369 as_fn_arith $ac_count + 1 && ac_count=$as_val
4370 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4371 # Best one so far, save it but keep looking for a better one
4372 ac_cv_path_GREP="$ac_path_GREP"
4373 ac_path_GREP_max=$ac_count
4374 fi
4375 # 10*(2^10) chars as input seems more than enough
4376 test $ac_count -gt 10 && break
4377 done
4378 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4379 esac
4380
4381 $ac_path_GREP_found && break 3
4382 done
4383 done
4384 done
4385 IFS=$as_save_IFS
4386 if test -z "$ac_cv_path_GREP"; then
4387 as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4388 fi
4389 else
4390 ac_cv_path_GREP=$GREP
4391 fi
4392
4393 fi
4394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4395 $as_echo "$ac_cv_path_GREP" >&6; }
4396 GREP="$ac_cv_path_GREP"
4397
4398
4399 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4400 $as_echo_n "checking for egrep... " >&6; }
4401 if test "${ac_cv_path_EGREP+set}" = set; then :
4402 $as_echo_n "(cached) " >&6
4403 else
4404 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4405 then ac_cv_path_EGREP="$GREP -E"
4406 else
4407 if test -z "$EGREP"; then
4408 ac_path_EGREP_found=false
4409 # Loop through the user's path and test for each of PROGNAME-LIST
4410 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4411 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4412 do
4413 IFS=$as_save_IFS
4414 test -z "$as_dir" && as_dir=.
4415 for ac_prog in egrep; do
4416 for ac_exec_ext in '' $ac_executable_extensions; do
4417 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4418 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4419 # Check for GNU ac_path_EGREP and select it if it is found.
4420 # Check for GNU $ac_path_EGREP
4421 case `"$ac_path_EGREP" --version 2>&1` in
4422 *GNU*)
4423 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4424 *)
4425 ac_count=0
4426 $as_echo_n 0123456789 >"conftest.in"
4427 while :
4428 do
4429 cat "conftest.in" "conftest.in" >"conftest.tmp"
4430 mv "conftest.tmp" "conftest.in"
4431 cp "conftest.in" "conftest.nl"
4432 $as_echo 'EGREP' >> "conftest.nl"
4433 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4434 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4435 as_fn_arith $ac_count + 1 && ac_count=$as_val
4436 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4437 # Best one so far, save it but keep looking for a better one
4438 ac_cv_path_EGREP="$ac_path_EGREP"
4439 ac_path_EGREP_max=$ac_count
4440 fi
4441 # 10*(2^10) chars as input seems more than enough
4442 test $ac_count -gt 10 && break
4443 done
4444 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4445 esac
4446
4447 $ac_path_EGREP_found && break 3
4448 done
4449 done
4450 done
4451 IFS=$as_save_IFS
4452 if test -z "$ac_cv_path_EGREP"; then
4453 as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4454 fi
4455 else
4456 ac_cv_path_EGREP=$EGREP
4457 fi
4458
4459 fi
4460 fi
4461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4462 $as_echo "$ac_cv_path_EGREP" >&6; }
4463 EGREP="$ac_cv_path_EGREP"
4464
4465
4466
4467 GCC_WARN_CFLAGS="-W -Wall -Wstrict-prototypes -Wmissing-prototypes"
4468 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4469 /* end confdefs.h. */
4470 __GNUC__
4471 _ACEOF
4472 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4473 $EGREP "^[0-3]$" >/dev/null 2>&1; then :
4474
4475 else
4476 GCC_WARN_CFLAGS="$GCC_WARN_CFLAGS -Wshadow"
4477 fi
4478 rm -f conftest*
4479
4480
4481 # Check whether --enable-werror was given.
4482 if test "${enable_werror+set}" = set; then :
4483 enableval=$enable_werror; case "${enableval}" in
4484 yes | y) ERROR_ON_WARNING="yes" ;;
4485 no | n) ERROR_ON_WARNING="no" ;;
4486 *) as_fn_error "bad value ${enableval} for --enable-werror" "$LINENO" 5 ;;
4487 esac
4488 fi
4489
4490
4491 # Disable -Wformat by default when using gcc on mingw
4492 case "${host}" in
4493 *-*-mingw32*)
4494 if test "${GCC}" = yes -a -z "${ERROR_ON_WARNING}" ; then
4495 GCC_WARN_CFLAGS="$GCC_WARN_CFLAGS -Wno-format"
4496 fi
4497 ;;
4498 *) ;;
4499 esac
4500
4501 # Enable -Werror by default when using gcc
4502 if test "${GCC}" = yes -a -z "${ERROR_ON_WARNING}" ; then
4503 ERROR_ON_WARNING=yes
4504 fi
4505
4506 NO_WERROR=
4507 if test "${ERROR_ON_WARNING}" = yes ; then
4508 GCC_WARN_CFLAGS="$GCC_WARN_CFLAGS -Werror"
4509 NO_WERROR="-Wno-error"
4510 fi
4511
4512 if test "${GCC}" = yes ; then
4513 WARN_CFLAGS="${GCC_WARN_CFLAGS}"
4514 fi
4515
4516 # Check whether --enable-build-warnings was given.
4517 if test "${enable_build_warnings+set}" = set; then :
4518 enableval=$enable_build_warnings; case "${enableval}" in
4519 yes) WARN_CFLAGS="${GCC_WARN_CFLAGS}";;
4520 no) if test "${GCC}" = yes ; then
4521 WARN_CFLAGS="-w"
4522 fi;;
4523 ,*) t=`echo "${enableval}" | sed -e "s/,/ /g"`
4524 WARN_CFLAGS="${GCC_WARN_CFLAGS} ${t}";;
4525 *,) t=`echo "${enableval}" | sed -e "s/,/ /g"`
4526 WARN_CFLAGS="${t} ${GCC_WARN_CFLAGS}";;
4527 *) WARN_CFLAGS=`echo "${enableval}" | sed -e "s/,/ /g"`;;
4528 esac
4529 fi
4530
4531
4532 if test x"$silent" != x"yes" && test x"$WARN_CFLAGS" != x""; then
4533 echo "Setting warning flags = $WARN_CFLAGS" 6>&1
4534 fi
4535
4536
4537
4538
4539
4540 ac_config_headers="$ac_config_headers config.h:config.in"
4541
4542
4543 if test -z "$target" ; then
4544 as_fn_error "Unrecognized target system type; please check config.sub." "$LINENO" 5
4545 fi
4546 if test -z "$host" ; then
4547 as_fn_error "Unrecognized host system type; please check config.sub." "$LINENO" 5
4548 fi
4549
4550 # host-specific stuff:
4551
4552 ac_ext=c
4553 ac_cpp='$CPP $CPPFLAGS'
4554 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4555 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4556 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4557 if test -n "$ac_tool_prefix"; then
4558 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4559 set dummy ${ac_tool_prefix}gcc; ac_word=$2
4560 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4561 $as_echo_n "checking for $ac_word... " >&6; }
4562 if test "${ac_cv_prog_CC+set}" = set; then :
4563 $as_echo_n "(cached) " >&6
4564 else
4565 if test -n "$CC"; then
4566 ac_cv_prog_CC="$CC" # Let the user override the test.
4567 else
4568 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4569 for as_dir in $PATH
4570 do
4571 IFS=$as_save_IFS
4572 test -z "$as_dir" && as_dir=.
4573 for ac_exec_ext in '' $ac_executable_extensions; do
4574 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4575 ac_cv_prog_CC="${ac_tool_prefix}gcc"
4576 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4577 break 2
4578 fi
4579 done
4580 done
4581 IFS=$as_save_IFS
4582
4583 fi
4584 fi
4585 CC=$ac_cv_prog_CC
4586 if test -n "$CC"; then
4587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4588 $as_echo "$CC" >&6; }
4589 else
4590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4591 $as_echo "no" >&6; }
4592 fi
4593
4594
4595 fi
4596 if test -z "$ac_cv_prog_CC"; then
4597 ac_ct_CC=$CC
4598 # Extract the first word of "gcc", so it can be a program name with args.
4599 set dummy gcc; ac_word=$2
4600 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4601 $as_echo_n "checking for $ac_word... " >&6; }
4602 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
4603 $as_echo_n "(cached) " >&6
4604 else
4605 if test -n "$ac_ct_CC"; then
4606 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4607 else
4608 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4609 for as_dir in $PATH
4610 do
4611 IFS=$as_save_IFS
4612 test -z "$as_dir" && as_dir=.
4613 for ac_exec_ext in '' $ac_executable_extensions; do
4614 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4615 ac_cv_prog_ac_ct_CC="gcc"
4616 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4617 break 2
4618 fi
4619 done
4620 done
4621 IFS=$as_save_IFS
4622
4623 fi
4624 fi
4625 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4626 if test -n "$ac_ct_CC"; then
4627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4628 $as_echo "$ac_ct_CC" >&6; }
4629 else
4630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4631 $as_echo "no" >&6; }
4632 fi
4633
4634 if test "x$ac_ct_CC" = x; then
4635 CC=""
4636 else
4637 case $cross_compiling:$ac_tool_warned in
4638 yes:)
4639 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4640 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4641 ac_tool_warned=yes ;;
4642 esac
4643 CC=$ac_ct_CC
4644 fi
4645 else
4646 CC="$ac_cv_prog_CC"
4647 fi
4648
4649 if test -z "$CC"; then
4650 if test -n "$ac_tool_prefix"; then
4651 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4652 set dummy ${ac_tool_prefix}cc; ac_word=$2
4653 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4654 $as_echo_n "checking for $ac_word... " >&6; }
4655 if test "${ac_cv_prog_CC+set}" = set; then :
4656 $as_echo_n "(cached) " >&6
4657 else
4658 if test -n "$CC"; then
4659 ac_cv_prog_CC="$CC" # Let the user override the test.
4660 else
4661 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4662 for as_dir in $PATH
4663 do
4664 IFS=$as_save_IFS
4665 test -z "$as_dir" && as_dir=.
4666 for ac_exec_ext in '' $ac_executable_extensions; do
4667 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4668 ac_cv_prog_CC="${ac_tool_prefix}cc"
4669 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4670 break 2
4671 fi
4672 done
4673 done
4674 IFS=$as_save_IFS
4675
4676 fi
4677 fi
4678 CC=$ac_cv_prog_CC
4679 if test -n "$CC"; then
4680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4681 $as_echo "$CC" >&6; }
4682 else
4683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4684 $as_echo "no" >&6; }
4685 fi
4686
4687
4688 fi
4689 fi
4690 if test -z "$CC"; then
4691 # Extract the first word of "cc", so it can be a program name with args.
4692 set dummy cc; ac_word=$2
4693 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4694 $as_echo_n "checking for $ac_word... " >&6; }
4695 if test "${ac_cv_prog_CC+set}" = set; then :
4696 $as_echo_n "(cached) " >&6
4697 else
4698 if test -n "$CC"; then
4699 ac_cv_prog_CC="$CC" # Let the user override the test.
4700 else
4701 ac_prog_rejected=no
4702 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4703 for as_dir in $PATH
4704 do
4705 IFS=$as_save_IFS
4706 test -z "$as_dir" && as_dir=.
4707 for ac_exec_ext in '' $ac_executable_extensions; do
4708 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4709 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4710 ac_prog_rejected=yes
4711 continue
4712 fi
4713 ac_cv_prog_CC="cc"
4714 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4715 break 2
4716 fi
4717 done
4718 done
4719 IFS=$as_save_IFS
4720
4721 if test $ac_prog_rejected = yes; then
4722 # We found a bogon in the path, so make sure we never use it.
4723 set dummy $ac_cv_prog_CC
4724 shift
4725 if test $# != 0; then
4726 # We chose a different compiler from the bogus one.
4727 # However, it has the same basename, so the bogon will be chosen
4728 # first if we set CC to just the basename; use the full file name.
4729 shift
4730 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4731 fi
4732 fi
4733 fi
4734 fi
4735 CC=$ac_cv_prog_CC
4736 if test -n "$CC"; then
4737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4738 $as_echo "$CC" >&6; }
4739 else
4740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4741 $as_echo "no" >&6; }
4742 fi
4743
4744
4745 fi
4746 if test -z "$CC"; then
4747 if test -n "$ac_tool_prefix"; then
4748 for ac_prog in cl.exe
4749 do
4750 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4751 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4752 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4753 $as_echo_n "checking for $ac_word... " >&6; }
4754 if test "${ac_cv_prog_CC+set}" = set; then :
4755 $as_echo_n "(cached) " >&6
4756 else
4757 if test -n "$CC"; then
4758 ac_cv_prog_CC="$CC" # Let the user override the test.
4759 else
4760 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4761 for as_dir in $PATH
4762 do
4763 IFS=$as_save_IFS
4764 test -z "$as_dir" && as_dir=.
4765 for ac_exec_ext in '' $ac_executable_extensions; do
4766 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4767 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4768 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4769 break 2
4770 fi
4771 done
4772 done
4773 IFS=$as_save_IFS
4774
4775 fi
4776 fi
4777 CC=$ac_cv_prog_CC
4778 if test -n "$CC"; then
4779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4780 $as_echo "$CC" >&6; }
4781 else
4782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4783 $as_echo "no" >&6; }
4784 fi
4785
4786
4787 test -n "$CC" && break
4788 done
4789 fi
4790 if test -z "$CC"; then
4791 ac_ct_CC=$CC
4792 for ac_prog in cl.exe
4793 do
4794 # Extract the first word of "$ac_prog", so it can be a program name with args.
4795 set dummy $ac_prog; ac_word=$2
4796 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4797 $as_echo_n "checking for $ac_word... " >&6; }
4798 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
4799 $as_echo_n "(cached) " >&6
4800 else
4801 if test -n "$ac_ct_CC"; then
4802 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4803 else
4804 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4805 for as_dir in $PATH
4806 do
4807 IFS=$as_save_IFS
4808 test -z "$as_dir" && as_dir=.
4809 for ac_exec_ext in '' $ac_executable_extensions; do
4810 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4811 ac_cv_prog_ac_ct_CC="$ac_prog"
4812 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4813 break 2
4814 fi
4815 done
4816 done
4817 IFS=$as_save_IFS
4818
4819 fi
4820 fi
4821 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4822 if test -n "$ac_ct_CC"; then
4823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4824 $as_echo "$ac_ct_CC" >&6; }
4825 else
4826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4827 $as_echo "no" >&6; }
4828 fi
4829
4830
4831 test -n "$ac_ct_CC" && break
4832 done
4833
4834 if test "x$ac_ct_CC" = x; then
4835 CC=""
4836 else
4837 case $cross_compiling:$ac_tool_warned in
4838 yes:)
4839 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4840 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4841 ac_tool_warned=yes ;;
4842 esac
4843 CC=$ac_ct_CC
4844 fi
4845 fi
4846
4847 fi
4848
4849
4850 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4851 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4852 as_fn_error "no acceptable C compiler found in \$PATH
4853 See \`config.log' for more details." "$LINENO" 5; }
4854
4855 # Provide some information about the compiler.
4856 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4857 set X $ac_compile
4858 ac_compiler=$2
4859 for ac_option in --version -v -V -qversion; do
4860 { { ac_try="$ac_compiler $ac_option >&5"
4861 case "(($ac_try" in
4862 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4863 *) ac_try_echo=$ac_try;;
4864 esac
4865 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4866 $as_echo "$ac_try_echo"; } >&5
4867 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4868 ac_status=$?
4869 if test -s conftest.err; then
4870 sed '10a\
4871 ... rest of stderr output deleted ...
4872 10q' conftest.err >conftest.er1
4873 cat conftest.er1 >&5
4874 rm -f conftest.er1 conftest.err
4875 fi
4876 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4877 test $ac_status = 0; }
4878 done
4879
4880 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4881 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4882 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
4883 $as_echo_n "(cached) " >&6
4884 else
4885 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4886 /* end confdefs.h. */
4887
4888 int
4889 main ()
4890 {
4891 #ifndef __GNUC__
4892 choke me
4893 #endif
4894
4895 ;
4896 return 0;
4897 }
4898 _ACEOF
4899 if ac_fn_c_try_compile "$LINENO"; then :
4900 ac_compiler_gnu=yes
4901 else
4902 ac_compiler_gnu=no
4903 fi
4904 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4905 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4906
4907 fi
4908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4909 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4910 if test $ac_compiler_gnu = yes; then
4911 GCC=yes
4912 else
4913 GCC=
4914 fi
4915 ac_test_CFLAGS=${CFLAGS+set}
4916 ac_save_CFLAGS=$CFLAGS
4917 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4918 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4919 if test "${ac_cv_prog_cc_g+set}" = set; then :
4920 $as_echo_n "(cached) " >&6
4921 else
4922 ac_save_c_werror_flag=$ac_c_werror_flag
4923 ac_c_werror_flag=yes
4924 ac_cv_prog_cc_g=no
4925 CFLAGS="-g"
4926 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4927 /* end confdefs.h. */
4928
4929 int
4930 main ()
4931 {
4932
4933 ;
4934 return 0;
4935 }
4936 _ACEOF
4937 if ac_fn_c_try_compile "$LINENO"; then :
4938 ac_cv_prog_cc_g=yes
4939 else
4940 CFLAGS=""
4941 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4942 /* end confdefs.h. */
4943
4944 int
4945 main ()
4946 {
4947
4948 ;
4949 return 0;
4950 }
4951 _ACEOF
4952 if ac_fn_c_try_compile "$LINENO"; then :
4953
4954 else
4955 ac_c_werror_flag=$ac_save_c_werror_flag
4956 CFLAGS="-g"
4957 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4958 /* end confdefs.h. */
4959
4960 int
4961 main ()
4962 {
4963
4964 ;
4965 return 0;
4966 }
4967 _ACEOF
4968 if ac_fn_c_try_compile "$LINENO"; then :
4969 ac_cv_prog_cc_g=yes
4970 fi
4971 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4972 fi
4973 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4974 fi
4975 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4976 ac_c_werror_flag=$ac_save_c_werror_flag
4977 fi
4978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4979 $as_echo "$ac_cv_prog_cc_g" >&6; }
4980 if test "$ac_test_CFLAGS" = set; then
4981 CFLAGS=$ac_save_CFLAGS
4982 elif test $ac_cv_prog_cc_g = yes; then
4983 if test "$GCC" = yes; then
4984 CFLAGS="-g -O2"
4985 else
4986 CFLAGS="-g"
4987 fi
4988 else
4989 if test "$GCC" = yes; then
4990 CFLAGS="-O2"
4991 else
4992 CFLAGS=
4993 fi
4994 fi
4995 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4996 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4997 if test "${ac_cv_prog_cc_c89+set}" = set; then :
4998 $as_echo_n "(cached) " >&6
4999 else
5000 ac_cv_prog_cc_c89=no
5001 ac_save_CC=$CC
5002 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5003 /* end confdefs.h. */
5004 #include <stdarg.h>
5005 #include <stdio.h>
5006 #include <sys/types.h>
5007 #include <sys/stat.h>
5008 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
5009 struct buf { int x; };
5010 FILE * (*rcsopen) (struct buf *, struct stat *, int);
5011 static char *e (p, i)
5012 char **p;
5013 int i;
5014 {
5015 return p[i];
5016 }
5017 static char *f (char * (*g) (char **, int), char **p, ...)
5018 {
5019 char *s;
5020 va_list v;
5021 va_start (v,p);
5022 s = g (p, va_arg (v,int));
5023 va_end (v);
5024 return s;
5025 }
5026
5027 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
5028 function prototypes and stuff, but not '\xHH' hex character constants.
5029 These don't provoke an error unfortunately, instead are silently treated
5030 as 'x'. The following induces an error, until -std is added to get
5031 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
5032 array size at least. It's necessary to write '\x00'==0 to get something
5033 that's true only with -std. */
5034 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5035
5036 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5037 inside strings and character constants. */
5038 #define FOO(x) 'x'
5039 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5040
5041 int test (int i, double x);
5042 struct s1 {int (*f) (int a);};
5043 struct s2 {int (*f) (double a);};
5044 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5045 int argc;
5046 char **argv;
5047 int
5048 main ()
5049 {
5050 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
5051 ;
5052 return 0;
5053 }
5054 _ACEOF
5055 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5056 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5057 do
5058 CC="$ac_save_CC $ac_arg"
5059 if ac_fn_c_try_compile "$LINENO"; then :
5060 ac_cv_prog_cc_c89=$ac_arg
5061 fi
5062 rm -f core conftest.err conftest.$ac_objext
5063 test "x$ac_cv_prog_cc_c89" != "xno" && break
5064 done
5065 rm -f conftest.$ac_ext
5066 CC=$ac_save_CC
5067
5068 fi
5069 # AC_CACHE_VAL
5070 case "x$ac_cv_prog_cc_c89" in
5071 x)
5072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5073 $as_echo "none needed" >&6; } ;;
5074 xno)
5075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5076 $as_echo "unsupported" >&6; } ;;
5077 *)
5078 CC="$CC $ac_cv_prog_cc_c89"
5079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
5080 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
5081 esac
5082 if test "x$ac_cv_prog_cc_c89" != xno; then :
5083
5084 fi
5085
5086 ac_ext=c
5087 ac_cpp='$CPP $CPPFLAGS'
5088 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5089 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5090 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5091
5092 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
5093 $as_echo_n "checking for ANSI C header files... " >&6; }
5094 if test "${ac_cv_header_stdc+set}" = set; then :
5095 $as_echo_n "(cached) " >&6
5096 else
5097 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5098 /* end confdefs.h. */
5099 #include <stdlib.h>
5100 #include <stdarg.h>
5101 #include <string.h>
5102 #include <float.h>
5103
5104 int
5105 main ()
5106 {
5107
5108 ;
5109 return 0;
5110 }
5111 _ACEOF
5112 if ac_fn_c_try_compile "$LINENO"; then :
5113 ac_cv_header_stdc=yes
5114 else
5115 ac_cv_header_stdc=no
5116 fi
5117 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5118
5119 if test $ac_cv_header_stdc = yes; then
5120 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5121 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5122 /* end confdefs.h. */
5123 #include <string.h>
5124
5125 _ACEOF
5126 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5127 $EGREP "memchr" >/dev/null 2>&1; then :
5128
5129 else
5130 ac_cv_header_stdc=no
5131 fi
5132 rm -f conftest*
5133
5134 fi
5135
5136 if test $ac_cv_header_stdc = yes; then
5137 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5138 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5139 /* end confdefs.h. */
5140 #include <stdlib.h>
5141
5142 _ACEOF
5143 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5144 $EGREP "free" >/dev/null 2>&1; then :
5145
5146 else
5147 ac_cv_header_stdc=no
5148 fi
5149 rm -f conftest*
5150
5151 fi
5152
5153 if test $ac_cv_header_stdc = yes; then
5154 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5155 if test "$cross_compiling" = yes; then :
5156 :
5157 else
5158 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5159 /* end confdefs.h. */
5160 #include <ctype.h>
5161 #include <stdlib.h>
5162 #if ((' ' & 0x0FF) == 0x020)
5163 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5164 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5165 #else
5166 # define ISLOWER(c) \
5167 (('a' <= (c) && (c) <= 'i') \
5168 || ('j' <= (c) && (c) <= 'r') \
5169 || ('s' <= (c) && (c) <= 'z'))
5170 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5171 #endif
5172
5173 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5174 int
5175 main ()
5176 {
5177 int i;
5178 for (i = 0; i < 256; i++)
5179 if (XOR (islower (i), ISLOWER (i))
5180 || toupper (i) != TOUPPER (i))
5181 return 2;
5182 return 0;
5183 }
5184 _ACEOF
5185 if ac_fn_c_try_run "$LINENO"; then :
5186
5187 else
5188 ac_cv_header_stdc=no
5189 fi
5190 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5191 conftest.$ac_objext conftest.beam conftest.$ac_ext
5192 fi
5193
5194 fi
5195 fi
5196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
5197 $as_echo "$ac_cv_header_stdc" >&6; }
5198 if test $ac_cv_header_stdc = yes; then
5199
5200 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
5201
5202 fi
5203
5204 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5205 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5206 inttypes.h stdint.h unistd.h
5207 do :
5208 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5209 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
5210 "
5211 eval as_val=\$$as_ac_Header
5212 if test "x$as_val" = x""yes; then :
5213 cat >>confdefs.h <<_ACEOF
5214 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5215 _ACEOF
5216
5217 fi
5218
5219 done
5220
5221
5222
5223 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
5224 if test "x$ac_cv_header_minix_config_h" = x""yes; then :
5225 MINIX=yes
5226 else
5227 MINIX=
5228 fi
5229
5230
5231 if test "$MINIX" = yes; then
5232
5233 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
5234
5235
5236 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
5237
5238
5239 $as_echo "#define _MINIX 1" >>confdefs.h
5240
5241 fi
5242
5243
5244 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
5245 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
5246 if test "${ac_cv_safe_to_define___extensions__+set}" = set; then :
5247 $as_echo_n "(cached) " >&6
5248 else
5249 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5250 /* end confdefs.h. */
5251
5252 # define __EXTENSIONS__ 1
5253 $ac_includes_default
5254 int
5255 main ()
5256 {
5257
5258 ;
5259 return 0;
5260 }
5261 _ACEOF
5262 if ac_fn_c_try_compile "$LINENO"; then :
5263 ac_cv_safe_to_define___extensions__=yes
5264 else
5265 ac_cv_safe_to_define___extensions__=no
5266 fi
5267 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5268 fi
5269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
5270 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
5271 test $ac_cv_safe_to_define___extensions__ = yes &&
5272 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
5273
5274 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
5275
5276 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
5277
5278 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
5279
5280 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
5281
5282
5283
5284
5285
5286 # The tests for host and target for $enable_largefile require
5287 # canonical names.
5288
5289
5290
5291 # As the $enable_largefile decision depends on --enable-plugins we must set it
5292 # even in directories otherwise not depending on the $plugins option.
5293
5294
5295 # Check whether --enable-plugins was given.
5296 if test "${enable_plugins+set}" = set; then :
5297 enableval=$enable_plugins; case "${enableval}" in
5298 yes | "") plugins=yes ;;
5299 no) plugins=no ;;
5300 *) plugins=yes ;;
5301 esac
5302 else
5303 plugins=no
5304 fi
5305
5306
5307
5308 case "${host}" in
5309 sparc-*-solaris*|i[3-7]86-*-solaris*)
5310 # On native 32bit sparc and ia32 solaris, large-file and procfs support
5311 # are mutually exclusive; and without procfs support, the bfd/ elf module
5312 # cannot provide certain routines such as elfcore_write_prpsinfo
5313 # or elfcore_write_prstatus. So unless the user explicitly requested
5314 # large-file support through the --enable-largefile switch, disable
5315 # large-file support in favor of procfs support.
5316 test "${target}" = "${host}" -a "x$plugins" = xno \
5317 && : ${enable_largefile="no"}
5318 ;;
5319 esac
5320
5321 # Check whether --enable-largefile was given.
5322 if test "${enable_largefile+set}" = set; then :
5323 enableval=$enable_largefile;
5324 fi
5325
5326 if test "$enable_largefile" != no; then
5327
5328 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
5329 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
5330 if test "${ac_cv_sys_largefile_CC+set}" = set; then :
5331 $as_echo_n "(cached) " >&6
5332 else
5333 ac_cv_sys_largefile_CC=no
5334 if test "$GCC" != yes; then
5335 ac_save_CC=$CC
5336 while :; do
5337 # IRIX 6.2 and later do not support large files by default,
5338 # so use the C compiler's -n32 option if that helps.
5339 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5340 /* end confdefs.h. */
5341 #include <sys/types.h>
5342 /* Check that off_t can represent 2**63 - 1 correctly.
5343 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5344 since some C++ compilers masquerading as C compilers
5345 incorrectly reject 9223372036854775807. */
5346 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5347 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5348 && LARGE_OFF_T % 2147483647 == 1)
5349 ? 1 : -1];
5350 int
5351 main ()
5352 {
5353
5354 ;
5355 return 0;
5356 }
5357 _ACEOF
5358 if ac_fn_c_try_compile "$LINENO"; then :
5359 break
5360 fi
5361 rm -f core conftest.err conftest.$ac_objext
5362 CC="$CC -n32"
5363 if ac_fn_c_try_compile "$LINENO"; then :
5364 ac_cv_sys_largefile_CC=' -n32'; break
5365 fi
5366 rm -f core conftest.err conftest.$ac_objext
5367 break
5368 done
5369 CC=$ac_save_CC
5370 rm -f conftest.$ac_ext
5371 fi
5372 fi
5373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
5374 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
5375 if test "$ac_cv_sys_largefile_CC" != no; then
5376 CC=$CC$ac_cv_sys_largefile_CC
5377 fi
5378
5379 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
5380 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
5381 if test "${ac_cv_sys_file_offset_bits+set}" = set; then :
5382 $as_echo_n "(cached) " >&6
5383 else
5384 while :; do
5385 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5386 /* end confdefs.h. */
5387 #include <sys/types.h>
5388 /* Check that off_t can represent 2**63 - 1 correctly.
5389 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5390 since some C++ compilers masquerading as C compilers
5391 incorrectly reject 9223372036854775807. */
5392 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5393 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5394 && LARGE_OFF_T % 2147483647 == 1)
5395 ? 1 : -1];
5396 int
5397 main ()
5398 {
5399
5400 ;
5401 return 0;
5402 }
5403 _ACEOF
5404 if ac_fn_c_try_compile "$LINENO"; then :
5405 ac_cv_sys_file_offset_bits=no; break
5406 fi
5407 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5408 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5409 /* end confdefs.h. */
5410 #define _FILE_OFFSET_BITS 64
5411 #include <sys/types.h>
5412 /* Check that off_t can represent 2**63 - 1 correctly.
5413 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5414 since some C++ compilers masquerading as C compilers
5415 incorrectly reject 9223372036854775807. */
5416 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5417 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5418 && LARGE_OFF_T % 2147483647 == 1)
5419 ? 1 : -1];
5420 int
5421 main ()
5422 {
5423
5424 ;
5425 return 0;
5426 }
5427 _ACEOF
5428 if ac_fn_c_try_compile "$LINENO"; then :
5429 ac_cv_sys_file_offset_bits=64; break
5430 fi
5431 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5432 ac_cv_sys_file_offset_bits=unknown
5433 break
5434 done
5435 fi
5436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
5437 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
5438 case $ac_cv_sys_file_offset_bits in #(
5439 no | unknown) ;;
5440 *)
5441 cat >>confdefs.h <<_ACEOF
5442 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
5443 _ACEOF
5444 ;;
5445 esac
5446 rm -rf conftest*
5447 if test $ac_cv_sys_file_offset_bits = unknown; then
5448 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
5449 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
5450 if test "${ac_cv_sys_large_files+set}" = set; then :
5451 $as_echo_n "(cached) " >&6
5452 else
5453 while :; do
5454 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5455 /* end confdefs.h. */
5456 #include <sys/types.h>
5457 /* Check that off_t can represent 2**63 - 1 correctly.
5458 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5459 since some C++ compilers masquerading as C compilers
5460 incorrectly reject 9223372036854775807. */
5461 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5462 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5463 && LARGE_OFF_T % 2147483647 == 1)
5464 ? 1 : -1];
5465 int
5466 main ()
5467 {
5468
5469 ;
5470 return 0;
5471 }
5472 _ACEOF
5473 if ac_fn_c_try_compile "$LINENO"; then :
5474 ac_cv_sys_large_files=no; break
5475 fi
5476 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5477 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5478 /* end confdefs.h. */
5479 #define _LARGE_FILES 1
5480 #include <sys/types.h>
5481 /* Check that off_t can represent 2**63 - 1 correctly.
5482 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5483 since some C++ compilers masquerading as C compilers
5484 incorrectly reject 9223372036854775807. */
5485 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5486 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5487 && LARGE_OFF_T % 2147483647 == 1)
5488 ? 1 : -1];
5489 int
5490 main ()
5491 {
5492
5493 ;
5494 return 0;
5495 }
5496 _ACEOF
5497 if ac_fn_c_try_compile "$LINENO"; then :
5498 ac_cv_sys_large_files=1; break
5499 fi
5500 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5501 ac_cv_sys_large_files=unknown
5502 break
5503 done
5504 fi
5505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
5506 $as_echo "$ac_cv_sys_large_files" >&6; }
5507 case $ac_cv_sys_large_files in #(
5508 no | unknown) ;;
5509 *)
5510 cat >>confdefs.h <<_ACEOF
5511 #define _LARGE_FILES $ac_cv_sys_large_files
5512 _ACEOF
5513 ;;
5514 esac
5515 rm -rf conftest*
5516 fi
5517 fi
5518
5519
5520
5521
5522 case `pwd` in
5523 *\ * | *\ *)
5524 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
5525 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
5526 esac
5527
5528
5529
5530 macro_version='2.2.7a'
5531 macro_revision='1.3134'
5532
5533
5534
5535
5536
5537
5538
5539
5540
5541
5542
5543
5544
5545 ltmain="$ac_aux_dir/ltmain.sh"
5546
5547 # Backslashify metacharacters that are still active within
5548 # double-quoted strings.
5549 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
5550
5551 # Same as above, but do not quote variable references.
5552 double_quote_subst='s/\(["`\\]\)/\\\1/g'
5553
5554 # Sed substitution to delay expansion of an escaped shell variable in a
5555 # double_quote_subst'ed string.
5556 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5557
5558 # Sed substitution to delay expansion of an escaped single quote.
5559 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
5560
5561 # Sed substitution to avoid accidental globbing in evaled expressions
5562 no_glob_subst='s/\*/\\\*/g'
5563
5564 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
5565 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
5566 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
5567
5568 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
5569 $as_echo_n "checking how to print strings... " >&6; }
5570 # Test print first, because it will be a builtin if present.
5571 if test "X`print -r -- -n 2>/dev/null`" = X-n && \
5572 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
5573 ECHO='print -r --'
5574 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
5575 ECHO='printf %s\n'
5576 else
5577 # Use this function as a fallback that always works.
5578 func_fallback_echo ()
5579 {
5580 eval 'cat <<_LTECHO_EOF
5581 $1
5582 _LTECHO_EOF'
5583 }
5584 ECHO='func_fallback_echo'
5585 fi
5586
5587 # func_echo_all arg...
5588 # Invoke $ECHO with all args, space-separated.
5589 func_echo_all ()
5590 {
5591 $ECHO ""
5592 }
5593
5594 case "$ECHO" in
5595 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
5596 $as_echo "printf" >&6; } ;;
5597 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
5598 $as_echo "print -r" >&6; } ;;
5599 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
5600 $as_echo "cat" >&6; } ;;
5601 esac
5602
5603
5604
5605
5606
5607
5608
5609
5610
5611
5612
5613
5614
5615
5616 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
5617 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
5618 if test "${ac_cv_path_SED+set}" = set; then :
5619 $as_echo_n "(cached) " >&6
5620 else
5621 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
5622 for ac_i in 1 2 3 4 5 6 7; do
5623 ac_script="$ac_script$as_nl$ac_script"
5624 done
5625 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
5626 { ac_script=; unset ac_script;}
5627 if test -z "$SED"; then
5628 ac_path_SED_found=false
5629 # Loop through the user's path and test for each of PROGNAME-LIST
5630 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5631 for as_dir in $PATH
5632 do
5633 IFS=$as_save_IFS
5634 test -z "$as_dir" && as_dir=.
5635 for ac_prog in sed gsed; do
5636 for ac_exec_ext in '' $ac_executable_extensions; do
5637 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
5638 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
5639 # Check for GNU ac_path_SED and select it if it is found.
5640 # Check for GNU $ac_path_SED
5641 case `"$ac_path_SED" --version 2>&1` in
5642 *GNU*)
5643 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
5644 *)
5645 ac_count=0
5646 $as_echo_n 0123456789 >"conftest.in"
5647 while :
5648 do
5649 cat "conftest.in" "conftest.in" >"conftest.tmp"
5650 mv "conftest.tmp" "conftest.in"
5651 cp "conftest.in" "conftest.nl"
5652 $as_echo '' >> "conftest.nl"
5653 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
5654 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5655 as_fn_arith $ac_count + 1 && ac_count=$as_val
5656 if test $ac_count -gt ${ac_path_SED_max-0}; then
5657 # Best one so far, save it but keep looking for a better one
5658 ac_cv_path_SED="$ac_path_SED"
5659 ac_path_SED_max=$ac_count
5660 fi
5661 # 10*(2^10) chars as input seems more than enough
5662 test $ac_count -gt 10 && break
5663 done
5664 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5665 esac
5666
5667 $ac_path_SED_found && break 3
5668 done
5669 done
5670 done
5671 IFS=$as_save_IFS
5672 if test -z "$ac_cv_path_SED"; then
5673 as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
5674 fi
5675 else
5676 ac_cv_path_SED=$SED
5677 fi
5678
5679 fi
5680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
5681 $as_echo "$ac_cv_path_SED" >&6; }
5682 SED="$ac_cv_path_SED"
5683 rm -f conftest.sed
5684
5685 test -z "$SED" && SED=sed
5686 Xsed="$SED -e 1s/^X//"
5687
5688
5689
5690
5691
5692
5693
5694
5695
5696
5697
5698 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
5699 $as_echo_n "checking for fgrep... " >&6; }
5700 if test "${ac_cv_path_FGREP+set}" = set; then :
5701 $as_echo_n "(cached) " >&6
5702 else
5703 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
5704 then ac_cv_path_FGREP="$GREP -F"
5705 else
5706 if test -z "$FGREP"; then
5707 ac_path_FGREP_found=false
5708 # Loop through the user's path and test for each of PROGNAME-LIST
5709 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5710 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5711 do
5712 IFS=$as_save_IFS
5713 test -z "$as_dir" && as_dir=.
5714 for ac_prog in fgrep; do
5715 for ac_exec_ext in '' $ac_executable_extensions; do
5716 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
5717 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
5718 # Check for GNU ac_path_FGREP and select it if it is found.
5719 # Check for GNU $ac_path_FGREP
5720 case `"$ac_path_FGREP" --version 2>&1` in
5721 *GNU*)
5722 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
5723 *)
5724 ac_count=0
5725 $as_echo_n 0123456789 >"conftest.in"
5726 while :
5727 do
5728 cat "conftest.in" "conftest.in" >"conftest.tmp"
5729 mv "conftest.tmp" "conftest.in"
5730 cp "conftest.in" "conftest.nl"
5731 $as_echo 'FGREP' >> "conftest.nl"
5732 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
5733 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5734 as_fn_arith $ac_count + 1 && ac_count=$as_val
5735 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5736 # Best one so far, save it but keep looking for a better one
5737 ac_cv_path_FGREP="$ac_path_FGREP"
5738 ac_path_FGREP_max=$ac_count
5739 fi
5740 # 10*(2^10) chars as input seems more than enough
5741 test $ac_count -gt 10 && break
5742 done
5743 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5744 esac
5745
5746 $ac_path_FGREP_found && break 3
5747 done
5748 done
5749 done
5750 IFS=$as_save_IFS
5751 if test -z "$ac_cv_path_FGREP"; then
5752 as_fn_error "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5753 fi
5754 else
5755 ac_cv_path_FGREP=$FGREP
5756 fi
5757
5758 fi
5759 fi
5760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
5761 $as_echo "$ac_cv_path_FGREP" >&6; }
5762 FGREP="$ac_cv_path_FGREP"
5763
5764
5765 test -z "$GREP" && GREP=grep
5766
5767
5768
5769
5770
5771
5772
5773
5774
5775
5776
5777
5778
5779
5780
5781
5782
5783
5784
5785 # Check whether --with-gnu-ld was given.
5786 if test "${with_gnu_ld+set}" = set; then :
5787 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
5788 else
5789 with_gnu_ld=no
5790 fi
5791
5792 ac_prog=ld
5793 if test "$GCC" = yes; then
5794 # Check if gcc -print-prog-name=ld gives a path.
5795 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5796 $as_echo_n "checking for ld used by $CC... " >&6; }
5797 case $host in
5798 *-*-mingw*)
5799 # gcc leaves a trailing carriage return which upsets mingw
5800 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5801 *)
5802 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5803 esac
5804 case $ac_prog in
5805 # Accept absolute paths.
5806 [\\/]* | ?:[\\/]*)
5807 re_direlt='/[^/][^/]*/\.\./'
5808 # Canonicalize the pathname of ld
5809 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5810 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5811 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5812 done
5813 test -z "$LD" && LD="$ac_prog"
5814 ;;
5815 "")
5816 # If it fails, then pretend we aren't using GCC.
5817 ac_prog=ld
5818 ;;
5819 *)
5820 # If it is relative, then search for the first ld in PATH.
5821 with_gnu_ld=unknown
5822 ;;
5823 esac
5824 elif test "$with_gnu_ld" = yes; then
5825 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5826 $as_echo_n "checking for GNU ld... " >&6; }
5827 else
5828 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5829 $as_echo_n "checking for non-GNU ld... " >&6; }
5830 fi
5831 if test "${lt_cv_path_LD+set}" = set; then :
5832 $as_echo_n "(cached) " >&6
5833 else
5834 if test -z "$LD"; then
5835 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5836 for ac_dir in $PATH; do
5837 IFS="$lt_save_ifs"
5838 test -z "$ac_dir" && ac_dir=.
5839 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5840 lt_cv_path_LD="$ac_dir/$ac_prog"
5841 # Check to see if the program is GNU ld. I'd rather use --version,
5842 # but apparently some variants of GNU ld only accept -v.
5843 # Break only if it was the GNU/non-GNU ld that we prefer.
5844 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5845 *GNU* | *'with BFD'*)
5846 test "$with_gnu_ld" != no && break
5847 ;;
5848 *)
5849 test "$with_gnu_ld" != yes && break
5850 ;;
5851 esac
5852 fi
5853 done
5854 IFS="$lt_save_ifs"
5855 else
5856 lt_cv_path_LD="$LD" # Let the user override the test with a path.
5857 fi
5858 fi
5859
5860 LD="$lt_cv_path_LD"
5861 if test -n "$LD"; then
5862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5863 $as_echo "$LD" >&6; }
5864 else
5865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5866 $as_echo "no" >&6; }
5867 fi
5868 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
5869 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5870 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
5871 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
5872 $as_echo_n "(cached) " >&6
5873 else
5874 # I'd rather use --version here, but apparently some GNU lds only accept -v.
5875 case `$LD -v 2>&1 </dev/null` in
5876 *GNU* | *'with BFD'*)
5877 lt_cv_prog_gnu_ld=yes
5878 ;;
5879 *)
5880 lt_cv_prog_gnu_ld=no
5881 ;;
5882 esac
5883 fi
5884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5885 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
5886 with_gnu_ld=$lt_cv_prog_gnu_ld
5887
5888
5889
5890
5891
5892
5893
5894
5895
5896 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5897 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5898 if test "${lt_cv_path_NM+set}" = set; then :
5899 $as_echo_n "(cached) " >&6
5900 else
5901 if test -n "$NM"; then
5902 # Let the user override the test.
5903 lt_cv_path_NM="$NM"
5904 else
5905 lt_nm_to_check="${ac_tool_prefix}nm"
5906 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5907 lt_nm_to_check="$lt_nm_to_check nm"
5908 fi
5909 for lt_tmp_nm in $lt_nm_to_check; do
5910 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5911 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5912 IFS="$lt_save_ifs"
5913 test -z "$ac_dir" && ac_dir=.
5914 tmp_nm="$ac_dir/$lt_tmp_nm"
5915 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5916 # Check to see if the nm accepts a BSD-compat flag.
5917 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5918 # nm: unknown option "B" ignored
5919 # Tru64's nm complains that /dev/null is an invalid object file
5920 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5921 */dev/null* | *'Invalid file or object type'*)
5922 lt_cv_path_NM="$tmp_nm -B"
5923 break
5924 ;;
5925 *)
5926 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5927 */dev/null*)
5928 lt_cv_path_NM="$tmp_nm -p"
5929 break
5930 ;;
5931 *)
5932 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5933 continue # so that we can try to find one that supports BSD flags
5934 ;;
5935 esac
5936 ;;
5937 esac
5938 fi
5939 done
5940 IFS="$lt_save_ifs"
5941 done
5942 : ${lt_cv_path_NM=no}
5943 fi
5944 fi
5945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5946 $as_echo "$lt_cv_path_NM" >&6; }
5947 if test "$lt_cv_path_NM" != "no"; then
5948 NM="$lt_cv_path_NM"
5949 else
5950 # Didn't find any BSD compatible name lister, look for dumpbin.
5951 if test -n "$DUMPBIN"; then :
5952 # Let the user override the test.
5953 else
5954 if test -n "$ac_tool_prefix"; then
5955 for ac_prog in dumpbin "link -dump"
5956 do
5957 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5958 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5959 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5960 $as_echo_n "checking for $ac_word... " >&6; }
5961 if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
5962 $as_echo_n "(cached) " >&6
5963 else
5964 if test -n "$DUMPBIN"; then
5965 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5966 else
5967 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5968 for as_dir in $PATH
5969 do
5970 IFS=$as_save_IFS
5971 test -z "$as_dir" && as_dir=.
5972 for ac_exec_ext in '' $ac_executable_extensions; do
5973 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5974 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5975 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5976 break 2
5977 fi
5978 done
5979 done
5980 IFS=$as_save_IFS
5981
5982 fi
5983 fi
5984 DUMPBIN=$ac_cv_prog_DUMPBIN
5985 if test -n "$DUMPBIN"; then
5986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5987 $as_echo "$DUMPBIN" >&6; }
5988 else
5989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5990 $as_echo "no" >&6; }
5991 fi
5992
5993
5994 test -n "$DUMPBIN" && break
5995 done
5996 fi
5997 if test -z "$DUMPBIN"; then
5998 ac_ct_DUMPBIN=$DUMPBIN
5999 for ac_prog in dumpbin "link -dump"
6000 do
6001 # Extract the first word of "$ac_prog", so it can be a program name with args.
6002 set dummy $ac_prog; ac_word=$2
6003 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6004 $as_echo_n "checking for $ac_word... " >&6; }
6005 if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
6006 $as_echo_n "(cached) " >&6
6007 else
6008 if test -n "$ac_ct_DUMPBIN"; then
6009 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
6010 else
6011 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6012 for as_dir in $PATH
6013 do
6014 IFS=$as_save_IFS
6015 test -z "$as_dir" && as_dir=.
6016 for ac_exec_ext in '' $ac_executable_extensions; do
6017 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6018 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
6019 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6020 break 2
6021 fi
6022 done
6023 done
6024 IFS=$as_save_IFS
6025
6026 fi
6027 fi
6028 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
6029 if test -n "$ac_ct_DUMPBIN"; then
6030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
6031 $as_echo "$ac_ct_DUMPBIN" >&6; }
6032 else
6033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6034 $as_echo "no" >&6; }
6035 fi
6036
6037
6038 test -n "$ac_ct_DUMPBIN" && break
6039 done
6040
6041 if test "x$ac_ct_DUMPBIN" = x; then
6042 DUMPBIN=":"
6043 else
6044 case $cross_compiling:$ac_tool_warned in
6045 yes:)
6046 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6047 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6048 ac_tool_warned=yes ;;
6049 esac
6050 DUMPBIN=$ac_ct_DUMPBIN
6051 fi
6052 fi
6053
6054 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
6055 *COFF*)
6056 DUMPBIN="$DUMPBIN -symbols"
6057 ;;
6058 *)
6059 DUMPBIN=:
6060 ;;
6061 esac
6062 fi
6063
6064 if test "$DUMPBIN" != ":"; then
6065 NM="$DUMPBIN"
6066 fi
6067 fi
6068 test -z "$NM" && NM=nm
6069
6070
6071
6072
6073
6074
6075 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
6076 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
6077 if test "${lt_cv_nm_interface+set}" = set; then :
6078 $as_echo_n "(cached) " >&6
6079 else
6080 lt_cv_nm_interface="BSD nm"
6081 echo "int some_variable = 0;" > conftest.$ac_ext
6082 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
6083 (eval "$ac_compile" 2>conftest.err)
6084 cat conftest.err >&5
6085 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
6086 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
6087 cat conftest.err >&5
6088 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
6089 cat conftest.out >&5
6090 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
6091 lt_cv_nm_interface="MS dumpbin"
6092 fi
6093 rm -f conftest*
6094 fi
6095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
6096 $as_echo "$lt_cv_nm_interface" >&6; }
6097
6098 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
6099 $as_echo_n "checking whether ln -s works... " >&6; }
6100 LN_S=$as_ln_s
6101 if test "$LN_S" = "ln -s"; then
6102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6103 $as_echo "yes" >&6; }
6104 else
6105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
6106 $as_echo "no, using $LN_S" >&6; }
6107 fi
6108
6109 # find the maximum length of command line arguments
6110 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
6111 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
6112 if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
6113 $as_echo_n "(cached) " >&6
6114 else
6115 i=0
6116 teststring="ABCD"
6117
6118 case $build_os in
6119 msdosdjgpp*)
6120 # On DJGPP, this test can blow up pretty badly due to problems in libc
6121 # (any single argument exceeding 2000 bytes causes a buffer overrun
6122 # during glob expansion). Even if it were fixed, the result of this
6123 # check would be larger than it should be.
6124 lt_cv_sys_max_cmd_len=12288; # 12K is about right
6125 ;;
6126
6127 gnu*)
6128 # Under GNU Hurd, this test is not required because there is
6129 # no limit to the length of command line arguments.
6130 # Libtool will interpret -1 as no limit whatsoever
6131 lt_cv_sys_max_cmd_len=-1;
6132 ;;
6133
6134 cygwin* | mingw* | cegcc*)
6135 # On Win9x/ME, this test blows up -- it succeeds, but takes
6136 # about 5 minutes as the teststring grows exponentially.
6137 # Worse, since 9x/ME are not pre-emptively multitasking,
6138 # you end up with a "frozen" computer, even though with patience
6139 # the test eventually succeeds (with a max line length of 256k).
6140 # Instead, let's just punt: use the minimum linelength reported by
6141 # all of the supported platforms: 8192 (on NT/2K/XP).
6142 lt_cv_sys_max_cmd_len=8192;
6143 ;;
6144
6145 mint*)
6146 # On MiNT this can take a long time and run out of memory.
6147 lt_cv_sys_max_cmd_len=8192;
6148 ;;
6149
6150 amigaos*)
6151 # On AmigaOS with pdksh, this test takes hours, literally.
6152 # So we just punt and use a minimum line length of 8192.
6153 lt_cv_sys_max_cmd_len=8192;
6154 ;;
6155
6156 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6157 # This has been around since 386BSD, at least. Likely further.
6158 if test -x /sbin/sysctl; then
6159 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6160 elif test -x /usr/sbin/sysctl; then
6161 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6162 else
6163 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
6164 fi
6165 # And add a safety zone
6166 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6167 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6168 ;;
6169
6170 interix*)
6171 # We know the value 262144 and hardcode it with a safety zone (like BSD)
6172 lt_cv_sys_max_cmd_len=196608
6173 ;;
6174
6175 osf*)
6176 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6177 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6178 # nice to cause kernel panics so lets avoid the loop below.
6179 # First set a reasonable default.
6180 lt_cv_sys_max_cmd_len=16384
6181 #
6182 if test -x /sbin/sysconfig; then
6183 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6184 *1*) lt_cv_sys_max_cmd_len=-1 ;;
6185 esac
6186 fi
6187 ;;
6188 sco3.2v5*)
6189 lt_cv_sys_max_cmd_len=102400
6190 ;;
6191 sysv5* | sco5v6* | sysv4.2uw2*)
6192 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6193 if test -n "$kargmax"; then
6194 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
6195 else
6196 lt_cv_sys_max_cmd_len=32768
6197 fi
6198 ;;
6199 *)
6200 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
6201 if test -n "$lt_cv_sys_max_cmd_len"; then
6202 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6203 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6204 else
6205 # Make teststring a little bigger before we do anything with it.
6206 # a 1K string should be a reasonable start.
6207 for i in 1 2 3 4 5 6 7 8 ; do
6208 teststring=$teststring$teststring
6209 done
6210 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6211 # If test is not a shell built-in, we'll probably end up computing a
6212 # maximum length that is only half of the actual maximum length, but
6213 # we can't tell.
6214 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
6215 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
6216 test $i != 17 # 1/2 MB should be enough
6217 do
6218 i=`expr $i + 1`
6219 teststring=$teststring$teststring
6220 done
6221 # Only check the string length outside the loop.
6222 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
6223 teststring=
6224 # Add a significant safety factor because C++ compilers can tack on
6225 # massive amounts of additional arguments before passing them to the
6226 # linker. It appears as though 1/2 is a usable value.
6227 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6228 fi
6229 ;;
6230 esac
6231
6232 fi
6233
6234 if test -n $lt_cv_sys_max_cmd_len ; then
6235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
6236 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
6237 else
6238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
6239 $as_echo "none" >&6; }
6240 fi
6241 max_cmd_len=$lt_cv_sys_max_cmd_len
6242
6243
6244
6245
6246
6247
6248 : ${CP="cp -f"}
6249 : ${MV="mv -f"}
6250 : ${RM="rm -f"}
6251
6252 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
6253 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
6254 # Try some XSI features
6255 xsi_shell=no
6256 ( _lt_dummy="a/b/c"
6257 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
6258 = c,a/b,, \
6259 && eval 'test $(( 1 + 1 )) -eq 2 \
6260 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
6261 && xsi_shell=yes
6262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
6263 $as_echo "$xsi_shell" >&6; }
6264
6265
6266 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
6267 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
6268 lt_shell_append=no
6269 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
6270 >/dev/null 2>&1 \
6271 && lt_shell_append=yes
6272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
6273 $as_echo "$lt_shell_append" >&6; }
6274
6275
6276 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
6277 lt_unset=unset
6278 else
6279 lt_unset=false
6280 fi
6281
6282
6283
6284
6285
6286 # test EBCDIC or ASCII
6287 case `echo X|tr X '\101'` in
6288 A) # ASCII based system
6289 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
6290 lt_SP2NL='tr \040 \012'
6291 lt_NL2SP='tr \015\012 \040\040'
6292 ;;
6293 *) # EBCDIC based system
6294 lt_SP2NL='tr \100 \n'
6295 lt_NL2SP='tr \r\n \100\100'
6296 ;;
6297 esac
6298
6299
6300
6301
6302
6303
6304
6305
6306
6307 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
6308 $as_echo_n "checking for $LD option to reload object files... " >&6; }
6309 if test "${lt_cv_ld_reload_flag+set}" = set; then :
6310 $as_echo_n "(cached) " >&6
6311 else
6312 lt_cv_ld_reload_flag='-r'
6313 fi
6314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
6315 $as_echo "$lt_cv_ld_reload_flag" >&6; }
6316 reload_flag=$lt_cv_ld_reload_flag
6317 case $reload_flag in
6318 "" | " "*) ;;
6319 *) reload_flag=" $reload_flag" ;;
6320 esac
6321 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6322 case $host_os in
6323 darwin*)
6324 if test "$GCC" = yes; then
6325 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
6326 else
6327 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6328 fi
6329 ;;
6330 esac
6331
6332
6333
6334
6335
6336
6337
6338
6339
6340 if test -n "$ac_tool_prefix"; then
6341 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
6342 set dummy ${ac_tool_prefix}objdump; ac_word=$2
6343 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6344 $as_echo_n "checking for $ac_word... " >&6; }
6345 if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
6346 $as_echo_n "(cached) " >&6
6347 else
6348 if test -n "$OBJDUMP"; then
6349 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
6350 else
6351 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6352 for as_dir in $PATH
6353 do
6354 IFS=$as_save_IFS
6355 test -z "$as_dir" && as_dir=.
6356 for ac_exec_ext in '' $ac_executable_extensions; do
6357 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6358 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
6359 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6360 break 2
6361 fi
6362 done
6363 done
6364 IFS=$as_save_IFS
6365
6366 fi
6367 fi
6368 OBJDUMP=$ac_cv_prog_OBJDUMP
6369 if test -n "$OBJDUMP"; then
6370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
6371 $as_echo "$OBJDUMP" >&6; }
6372 else
6373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6374 $as_echo "no" >&6; }
6375 fi
6376
6377
6378 fi
6379 if test -z "$ac_cv_prog_OBJDUMP"; then
6380 ac_ct_OBJDUMP=$OBJDUMP
6381 # Extract the first word of "objdump", so it can be a program name with args.
6382 set dummy objdump; ac_word=$2
6383 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6384 $as_echo_n "checking for $ac_word... " >&6; }
6385 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
6386 $as_echo_n "(cached) " >&6
6387 else
6388 if test -n "$ac_ct_OBJDUMP"; then
6389 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
6390 else
6391 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6392 for as_dir in $PATH
6393 do
6394 IFS=$as_save_IFS
6395 test -z "$as_dir" && as_dir=.
6396 for ac_exec_ext in '' $ac_executable_extensions; do
6397 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6398 ac_cv_prog_ac_ct_OBJDUMP="objdump"
6399 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6400 break 2
6401 fi
6402 done
6403 done
6404 IFS=$as_save_IFS
6405
6406 fi
6407 fi
6408 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6409 if test -n "$ac_ct_OBJDUMP"; then
6410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
6411 $as_echo "$ac_ct_OBJDUMP" >&6; }
6412 else
6413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6414 $as_echo "no" >&6; }
6415 fi
6416
6417 if test "x$ac_ct_OBJDUMP" = x; then
6418 OBJDUMP="false"
6419 else
6420 case $cross_compiling:$ac_tool_warned in
6421 yes:)
6422 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6423 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6424 ac_tool_warned=yes ;;
6425 esac
6426 OBJDUMP=$ac_ct_OBJDUMP
6427 fi
6428 else
6429 OBJDUMP="$ac_cv_prog_OBJDUMP"
6430 fi
6431
6432 test -z "$OBJDUMP" && OBJDUMP=objdump
6433
6434
6435
6436
6437
6438
6439
6440
6441
6442 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
6443 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
6444 if test "${lt_cv_deplibs_check_method+set}" = set; then :
6445 $as_echo_n "(cached) " >&6
6446 else
6447 lt_cv_file_magic_cmd='$MAGIC_CMD'
6448 lt_cv_file_magic_test_file=
6449 lt_cv_deplibs_check_method='unknown'
6450 # Need to set the preceding variable on all platforms that support
6451 # interlibrary dependencies.
6452 # 'none' -- dependencies not supported.
6453 # `unknown' -- same as none, but documents that we really don't know.
6454 # 'pass_all' -- all dependencies passed with no checks.
6455 # 'test_compile' -- check by making test program.
6456 # 'file_magic [[regex]]' -- check by looking for files in library path
6457 # which responds to the $file_magic_cmd with a given extended regex.
6458 # If you have `file' or equivalent on your system and you're not sure
6459 # whether `pass_all' will *always* work, you probably want this one.
6460
6461 case $host_os in
6462 aix[4-9]*)
6463 lt_cv_deplibs_check_method=pass_all
6464 ;;
6465
6466 beos*)
6467 lt_cv_deplibs_check_method=pass_all
6468 ;;
6469
6470 bsdi[45]*)
6471 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6472 lt_cv_file_magic_cmd='/usr/bin/file -L'
6473 lt_cv_file_magic_test_file=/shlib/libc.so
6474 ;;
6475
6476 cygwin*)
6477 # func_win32_libid is a shell function defined in ltmain.sh
6478 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6479 lt_cv_file_magic_cmd='func_win32_libid'
6480 ;;
6481
6482 mingw* | pw32*)
6483 # Base MSYS/MinGW do not provide the 'file' command needed by
6484 # func_win32_libid shell function, so use a weaker test based on 'objdump',
6485 # unless we find 'file', for example because we are cross-compiling.
6486 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
6487 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
6488 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6489 lt_cv_file_magic_cmd='func_win32_libid'
6490 else
6491 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
6492 lt_cv_file_magic_cmd='$OBJDUMP -f'
6493 fi
6494 ;;
6495
6496 cegcc*)
6497 # use the weaker test based on 'objdump'. See mingw*.
6498 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
6499 lt_cv_file_magic_cmd='$OBJDUMP -f'
6500 ;;
6501
6502 darwin* | rhapsody*)
6503 lt_cv_deplibs_check_method=pass_all
6504 ;;
6505
6506 freebsd* | dragonfly*)
6507 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6508 case $host_cpu in
6509 i*86 )
6510 # Not sure whether the presence of OpenBSD here was a mistake.
6511 # Let's accept both of them until this is cleared up.
6512 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6513 lt_cv_file_magic_cmd=/usr/bin/file
6514 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6515 ;;
6516 esac
6517 else
6518 lt_cv_deplibs_check_method=pass_all
6519 fi
6520 ;;
6521
6522 gnu*)
6523 lt_cv_deplibs_check_method=pass_all
6524 ;;
6525
6526 haiku*)
6527 lt_cv_deplibs_check_method=pass_all
6528 ;;
6529
6530 hpux10.20* | hpux11*)
6531 lt_cv_file_magic_cmd=/usr/bin/file
6532 case $host_cpu in
6533 ia64*)
6534 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6535 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6536 ;;
6537 hppa*64*)
6538 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF[ -][0-9][0-9])(-bit)?( [LM]SB)? shared object( file)?[, -]* PA-RISC [0-9]\.[0-9]'
6539 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6540 ;;
6541 *)
6542 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
6543 lt_cv_file_magic_test_file=/usr/lib/libc.sl
6544 ;;
6545 esac
6546 ;;
6547
6548 interix[3-9]*)
6549 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6550 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6551 ;;
6552
6553 irix5* | irix6* | nonstopux*)
6554 case $LD in
6555 *-32|*"-32 ") libmagic=32-bit;;
6556 *-n32|*"-n32 ") libmagic=N32;;
6557 *-64|*"-64 ") libmagic=64-bit;;
6558 *) libmagic=never-match;;
6559 esac
6560 lt_cv_deplibs_check_method=pass_all
6561 ;;
6562
6563 # This must be Linux ELF.
6564 linux* | k*bsd*-gnu | kopensolaris*-gnu)
6565 lt_cv_deplibs_check_method=pass_all
6566 ;;
6567
6568 netbsd*)
6569 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6570 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6571 else
6572 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6573 fi
6574 ;;
6575
6576 newos6*)
6577 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6578 lt_cv_file_magic_cmd=/usr/bin/file
6579 lt_cv_file_magic_test_file=/usr/lib/libnls.so
6580 ;;
6581
6582 *nto* | *qnx*)
6583 lt_cv_deplibs_check_method=pass_all
6584 ;;
6585
6586 openbsd*)
6587 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6588 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6589 else
6590 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6591 fi
6592 ;;
6593
6594 osf3* | osf4* | osf5*)
6595 lt_cv_deplibs_check_method=pass_all
6596 ;;
6597
6598 rdos*)
6599 lt_cv_deplibs_check_method=pass_all
6600 ;;
6601
6602 solaris*)
6603 lt_cv_deplibs_check_method=pass_all
6604 ;;
6605
6606 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6607 lt_cv_deplibs_check_method=pass_all
6608 ;;
6609
6610 sysv4 | sysv4.3*)
6611 case $host_vendor in
6612 motorola)
6613 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]'
6614 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6615 ;;
6616 ncr)
6617 lt_cv_deplibs_check_method=pass_all
6618 ;;
6619 sequent)
6620 lt_cv_file_magic_cmd='/bin/file'
6621 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6622 ;;
6623 sni)
6624 lt_cv_file_magic_cmd='/bin/file'
6625 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6626 lt_cv_file_magic_test_file=/lib/libc.so
6627 ;;
6628 siemens)
6629 lt_cv_deplibs_check_method=pass_all
6630 ;;
6631 pc)
6632 lt_cv_deplibs_check_method=pass_all
6633 ;;
6634 esac
6635 ;;
6636
6637 tpf*)
6638 lt_cv_deplibs_check_method=pass_all
6639 ;;
6640 esac
6641
6642 fi
6643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
6644 $as_echo "$lt_cv_deplibs_check_method" >&6; }
6645 file_magic_cmd=$lt_cv_file_magic_cmd
6646 deplibs_check_method=$lt_cv_deplibs_check_method
6647 test -z "$deplibs_check_method" && deplibs_check_method=unknown
6648
6649
6650
6651
6652
6653
6654
6655
6656
6657
6658
6659
6660 if test -n "$ac_tool_prefix"; then
6661 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6662 set dummy ${ac_tool_prefix}ar; ac_word=$2
6663 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6664 $as_echo_n "checking for $ac_word... " >&6; }
6665 if test "${ac_cv_prog_AR+set}" = set; then :
6666 $as_echo_n "(cached) " >&6
6667 else
6668 if test -n "$AR"; then
6669 ac_cv_prog_AR="$AR" # Let the user override the test.
6670 else
6671 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6672 for as_dir in $PATH
6673 do
6674 IFS=$as_save_IFS
6675 test -z "$as_dir" && as_dir=.
6676 for ac_exec_ext in '' $ac_executable_extensions; do
6677 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6678 ac_cv_prog_AR="${ac_tool_prefix}ar"
6679 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6680 break 2
6681 fi
6682 done
6683 done
6684 IFS=$as_save_IFS
6685
6686 fi
6687 fi
6688 AR=$ac_cv_prog_AR
6689 if test -n "$AR"; then
6690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6691 $as_echo "$AR" >&6; }
6692 else
6693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6694 $as_echo "no" >&6; }
6695 fi
6696
6697
6698 fi
6699 if test -z "$ac_cv_prog_AR"; then
6700 ac_ct_AR=$AR
6701 # Extract the first word of "ar", so it can be a program name with args.
6702 set dummy ar; ac_word=$2
6703 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6704 $as_echo_n "checking for $ac_word... " >&6; }
6705 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
6706 $as_echo_n "(cached) " >&6
6707 else
6708 if test -n "$ac_ct_AR"; then
6709 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6710 else
6711 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6712 for as_dir in $PATH
6713 do
6714 IFS=$as_save_IFS
6715 test -z "$as_dir" && as_dir=.
6716 for ac_exec_ext in '' $ac_executable_extensions; do
6717 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6718 ac_cv_prog_ac_ct_AR="ar"
6719 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6720 break 2
6721 fi
6722 done
6723 done
6724 IFS=$as_save_IFS
6725
6726 fi
6727 fi
6728 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6729 if test -n "$ac_ct_AR"; then
6730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6731 $as_echo "$ac_ct_AR" >&6; }
6732 else
6733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6734 $as_echo "no" >&6; }
6735 fi
6736
6737 if test "x$ac_ct_AR" = x; then
6738 AR="false"
6739 else
6740 case $cross_compiling:$ac_tool_warned in
6741 yes:)
6742 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6743 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6744 ac_tool_warned=yes ;;
6745 esac
6746 AR=$ac_ct_AR
6747 fi
6748 else
6749 AR="$ac_cv_prog_AR"
6750 fi
6751
6752 test -z "$AR" && AR=ar
6753 test -z "$AR_FLAGS" && AR_FLAGS=cru
6754
6755
6756
6757
6758
6759
6760
6761
6762
6763
6764
6765 if test -n "$ac_tool_prefix"; then
6766 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6767 set dummy ${ac_tool_prefix}strip; ac_word=$2
6768 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6769 $as_echo_n "checking for $ac_word... " >&6; }
6770 if test "${ac_cv_prog_STRIP+set}" = set; then :
6771 $as_echo_n "(cached) " >&6
6772 else
6773 if test -n "$STRIP"; then
6774 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6775 else
6776 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6777 for as_dir in $PATH
6778 do
6779 IFS=$as_save_IFS
6780 test -z "$as_dir" && as_dir=.
6781 for ac_exec_ext in '' $ac_executable_extensions; do
6782 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6783 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6784 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6785 break 2
6786 fi
6787 done
6788 done
6789 IFS=$as_save_IFS
6790
6791 fi
6792 fi
6793 STRIP=$ac_cv_prog_STRIP
6794 if test -n "$STRIP"; then
6795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6796 $as_echo "$STRIP" >&6; }
6797 else
6798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6799 $as_echo "no" >&6; }
6800 fi
6801
6802
6803 fi
6804 if test -z "$ac_cv_prog_STRIP"; then
6805 ac_ct_STRIP=$STRIP
6806 # Extract the first word of "strip", so it can be a program name with args.
6807 set dummy strip; ac_word=$2
6808 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6809 $as_echo_n "checking for $ac_word... " >&6; }
6810 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
6811 $as_echo_n "(cached) " >&6
6812 else
6813 if test -n "$ac_ct_STRIP"; then
6814 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6815 else
6816 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6817 for as_dir in $PATH
6818 do
6819 IFS=$as_save_IFS
6820 test -z "$as_dir" && as_dir=.
6821 for ac_exec_ext in '' $ac_executable_extensions; do
6822 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6823 ac_cv_prog_ac_ct_STRIP="strip"
6824 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6825 break 2
6826 fi
6827 done
6828 done
6829 IFS=$as_save_IFS
6830
6831 fi
6832 fi
6833 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6834 if test -n "$ac_ct_STRIP"; then
6835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6836 $as_echo "$ac_ct_STRIP" >&6; }
6837 else
6838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6839 $as_echo "no" >&6; }
6840 fi
6841
6842 if test "x$ac_ct_STRIP" = x; then
6843 STRIP=":"
6844 else
6845 case $cross_compiling:$ac_tool_warned in
6846 yes:)
6847 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6848 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6849 ac_tool_warned=yes ;;
6850 esac
6851 STRIP=$ac_ct_STRIP
6852 fi
6853 else
6854 STRIP="$ac_cv_prog_STRIP"
6855 fi
6856
6857 test -z "$STRIP" && STRIP=:
6858
6859
6860
6861
6862
6863
6864 if test -n "$ac_tool_prefix"; then
6865 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6866 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6867 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6868 $as_echo_n "checking for $ac_word... " >&6; }
6869 if test "${ac_cv_prog_RANLIB+set}" = set; then :
6870 $as_echo_n "(cached) " >&6
6871 else
6872 if test -n "$RANLIB"; then
6873 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6874 else
6875 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6876 for as_dir in $PATH
6877 do
6878 IFS=$as_save_IFS
6879 test -z "$as_dir" && as_dir=.
6880 for ac_exec_ext in '' $ac_executable_extensions; do
6881 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6882 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6883 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6884 break 2
6885 fi
6886 done
6887 done
6888 IFS=$as_save_IFS
6889
6890 fi
6891 fi
6892 RANLIB=$ac_cv_prog_RANLIB
6893 if test -n "$RANLIB"; then
6894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6895 $as_echo "$RANLIB" >&6; }
6896 else
6897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6898 $as_echo "no" >&6; }
6899 fi
6900
6901
6902 fi
6903 if test -z "$ac_cv_prog_RANLIB"; then
6904 ac_ct_RANLIB=$RANLIB
6905 # Extract the first word of "ranlib", so it can be a program name with args.
6906 set dummy ranlib; ac_word=$2
6907 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6908 $as_echo_n "checking for $ac_word... " >&6; }
6909 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
6910 $as_echo_n "(cached) " >&6
6911 else
6912 if test -n "$ac_ct_RANLIB"; then
6913 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6914 else
6915 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6916 for as_dir in $PATH
6917 do
6918 IFS=$as_save_IFS
6919 test -z "$as_dir" && as_dir=.
6920 for ac_exec_ext in '' $ac_executable_extensions; do
6921 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6922 ac_cv_prog_ac_ct_RANLIB="ranlib"
6923 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6924 break 2
6925 fi
6926 done
6927 done
6928 IFS=$as_save_IFS
6929
6930 fi
6931 fi
6932 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6933 if test -n "$ac_ct_RANLIB"; then
6934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6935 $as_echo "$ac_ct_RANLIB" >&6; }
6936 else
6937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6938 $as_echo "no" >&6; }
6939 fi
6940
6941 if test "x$ac_ct_RANLIB" = x; then
6942 RANLIB=":"
6943 else
6944 case $cross_compiling:$ac_tool_warned in
6945 yes:)
6946 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6947 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6948 ac_tool_warned=yes ;;
6949 esac
6950 RANLIB=$ac_ct_RANLIB
6951 fi
6952 else
6953 RANLIB="$ac_cv_prog_RANLIB"
6954 fi
6955
6956 test -z "$RANLIB" && RANLIB=:
6957
6958
6959
6960
6961
6962
6963 # Determine commands to create old-style static archives.
6964 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6965 old_postinstall_cmds='chmod 644 $oldlib'
6966 old_postuninstall_cmds=
6967
6968 if test -n "$RANLIB"; then
6969 case $host_os in
6970 openbsd*)
6971 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
6972 ;;
6973 *)
6974 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
6975 ;;
6976 esac
6977 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6978 fi
6979
6980 case $host_os in
6981 darwin*)
6982 lock_old_archive_extraction=yes ;;
6983 *)
6984 lock_old_archive_extraction=no ;;
6985 esac
6986
6987
6988
6989
6990
6991
6992
6993
6994
6995
6996
6997
6998
6999
7000
7001
7002
7003
7004
7005
7006
7007
7008
7009
7010
7011
7012
7013
7014
7015
7016
7017
7018
7019
7020
7021
7022
7023
7024
7025 # If no C compiler was specified, use CC.
7026 LTCC=${LTCC-"$CC"}
7027
7028 # If no C compiler flags were specified, use CFLAGS.
7029 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7030
7031 # Allow CC to be a program name with arguments.
7032 compiler=$CC
7033
7034
7035 # Check for command to grab the raw symbol name followed by C symbol from nm.
7036 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
7037 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
7038 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
7039 $as_echo_n "(cached) " >&6
7040 else
7041
7042 # These are sane defaults that work on at least a few old systems.
7043 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
7044
7045 # Character class describing NM global symbol codes.
7046 symcode='[BCDEGRST]'
7047
7048 # Regexp to match symbols that can be accessed directly from C.
7049 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
7050
7051 # Define system-specific variables.
7052 case $host_os in
7053 aix*)
7054 symcode='[BCDT]'
7055 ;;
7056 cygwin* | mingw* | pw32* | cegcc*)
7057 symcode='[ABCDGISTW]'
7058 ;;
7059 hpux*)
7060 if test "$host_cpu" = ia64; then
7061 symcode='[ABCDEGRST]'
7062 fi
7063 ;;
7064 irix* | nonstopux*)
7065 symcode='[BCDEGRST]'
7066 ;;
7067 osf*)
7068 symcode='[BCDEGQRST]'
7069 ;;
7070 solaris*)
7071 symcode='[BDRT]'
7072 ;;
7073 sco3.2v5*)
7074 symcode='[DT]'
7075 ;;
7076 sysv4.2uw2*)
7077 symcode='[DT]'
7078 ;;
7079 sysv5* | sco5v6* | unixware* | OpenUNIX*)
7080 symcode='[ABDT]'
7081 ;;
7082 sysv4)
7083 symcode='[DFNSTU]'
7084 ;;
7085 esac
7086
7087 # If we're using GNU nm, then use its standard symbol codes.
7088 case `$NM -V 2>&1` in
7089 *GNU* | *'with BFD'*)
7090 symcode='[ABCDGIRSTW]' ;;
7091 esac
7092
7093 # Transform an extracted symbol line into a proper C declaration.
7094 # Some systems (esp. on ia64) link data and code symbols differently,
7095 # so use this general approach.
7096 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7097
7098 # Transform an extracted symbol line into symbol name and symbol address
7099 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
7100 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'"
7101
7102 # Handle CRLF in mingw tool chain
7103 opt_cr=
7104 case $build_os in
7105 mingw*)
7106 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7107 ;;
7108 esac
7109
7110 # Try without a prefix underscore, then with it.
7111 for ac_symprfx in "" "_"; do
7112
7113 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7114 symxfrm="\\1 $ac_symprfx\\2 \\2"
7115
7116 # Write the raw and C identifiers.
7117 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7118 # Fake it for dumpbin and say T for any non-static function
7119 # and D for any global variable.
7120 # Also find C++ and __fastcall symbols from MSVC++,
7121 # which start with @ or ?.
7122 lt_cv_sys_global_symbol_pipe="$AWK '"\
7123 " {last_section=section; section=\$ 3};"\
7124 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
7125 " \$ 0!~/External *\|/{next};"\
7126 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
7127 " {if(hide[section]) next};"\
7128 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
7129 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
7130 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
7131 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
7132 " ' prfx=^$ac_symprfx"
7133 else
7134 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7135 fi
7136
7137 # Check to see that the pipe works correctly.
7138 pipe_works=no
7139
7140 rm -f conftest*
7141 cat > conftest.$ac_ext <<_LT_EOF
7142 #ifdef __cplusplus
7143 extern "C" {
7144 #endif
7145 char nm_test_var;
7146 void nm_test_func(void);
7147 void nm_test_func(void){}
7148 #ifdef __cplusplus
7149 }
7150 #endif
7151 int main(){nm_test_var='a';nm_test_func();return(0);}
7152 _LT_EOF
7153
7154 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7155 (eval $ac_compile) 2>&5
7156 ac_status=$?
7157 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7158 test $ac_status = 0; }; then
7159 # Now try to grab the symbols.
7160 nlist=conftest.nm
7161 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
7162 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
7163 ac_status=$?
7164 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7165 test $ac_status = 0; } && test -s "$nlist"; then
7166 # Try sorting and uniquifying the output.
7167 if sort "$nlist" | uniq > "$nlist"T; then
7168 mv -f "$nlist"T "$nlist"
7169 else
7170 rm -f "$nlist"T
7171 fi
7172
7173 # Make sure that we snagged all the symbols we need.
7174 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
7175 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
7176 cat <<_LT_EOF > conftest.$ac_ext
7177 #ifdef __cplusplus
7178 extern "C" {
7179 #endif
7180
7181 _LT_EOF
7182 # Now generate the symbol file.
7183 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
7184
7185 cat <<_LT_EOF >> conftest.$ac_ext
7186
7187 /* The mapping between symbol names and symbols. */
7188 const struct {
7189 const char *name;
7190 void *address;
7191 }
7192 lt__PROGRAM__LTX_preloaded_symbols[] =
7193 {
7194 { "@PROGRAM@", (void *) 0 },
7195 _LT_EOF
7196 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
7197 cat <<\_LT_EOF >> conftest.$ac_ext
7198 {0, (void *) 0}
7199 };
7200
7201 /* This works around a problem in FreeBSD linker */
7202 #ifdef FREEBSD_WORKAROUND
7203 static const void *lt_preloaded_setup() {
7204 return lt__PROGRAM__LTX_preloaded_symbols;
7205 }
7206 #endif
7207
7208 #ifdef __cplusplus
7209 }
7210 #endif
7211 _LT_EOF
7212 # Now try linking the two files.
7213 mv conftest.$ac_objext conftstm.$ac_objext
7214 lt_save_LIBS="$LIBS"
7215 lt_save_CFLAGS="$CFLAGS"
7216 LIBS="conftstm.$ac_objext"
7217 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7218 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
7219 (eval $ac_link) 2>&5
7220 ac_status=$?
7221 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7222 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
7223 pipe_works=yes
7224 fi
7225 LIBS="$lt_save_LIBS"
7226 CFLAGS="$lt_save_CFLAGS"
7227 else
7228 echo "cannot find nm_test_func in $nlist" >&5
7229 fi
7230 else
7231 echo "cannot find nm_test_var in $nlist" >&5
7232 fi
7233 else
7234 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7235 fi
7236 else
7237 echo "$progname: failed program was:" >&5
7238 cat conftest.$ac_ext >&5
7239 fi
7240 rm -rf conftest* conftst*
7241
7242 # Do not use the global_symbol_pipe unless it works.
7243 if test "$pipe_works" = yes; then
7244 break
7245 else
7246 lt_cv_sys_global_symbol_pipe=
7247 fi
7248 done
7249
7250 fi
7251
7252 if test -z "$lt_cv_sys_global_symbol_pipe"; then
7253 lt_cv_sys_global_symbol_to_cdecl=
7254 fi
7255 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
7257 $as_echo "failed" >&6; }
7258 else
7259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
7260 $as_echo "ok" >&6; }
7261 fi
7262
7263
7264
7265
7266
7267
7268
7269
7270
7271
7272
7273
7274
7275
7276
7277
7278
7279
7280
7281
7282
7283
7284 # Check whether --enable-libtool-lock was given.
7285 if test "${enable_libtool_lock+set}" = set; then :
7286 enableval=$enable_libtool_lock;
7287 fi
7288
7289 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7290
7291 # Some flags need to be propagated to the compiler or linker for good
7292 # libtool support.
7293 case $host in
7294 ia64-*-hpux*)
7295 # Find out which ABI we are using.
7296 echo 'int i;' > conftest.$ac_ext
7297 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7298 (eval $ac_compile) 2>&5
7299 ac_status=$?
7300 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7301 test $ac_status = 0; }; then
7302 case `/usr/bin/file conftest.$ac_objext` in
7303 *ELF-32*)
7304 HPUX_IA64_MODE="32"
7305 ;;
7306 *ELF-64*)
7307 HPUX_IA64_MODE="64"
7308 ;;
7309 esac
7310 fi
7311 rm -rf conftest*
7312 ;;
7313 *-*-irix6*)
7314 # Find out which ABI we are using.
7315 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
7316 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7317 (eval $ac_compile) 2>&5
7318 ac_status=$?
7319 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7320 test $ac_status = 0; }; then
7321 if test "$lt_cv_prog_gnu_ld" = yes; then
7322 case `/usr/bin/file conftest.$ac_objext` in
7323 *32-bit*)
7324 LD="${LD-ld} -melf32bsmip"
7325 ;;
7326 *N32*)
7327 LD="${LD-ld} -melf32bmipn32"
7328 ;;
7329 *64-bit*)
7330 LD="${LD-ld} -melf64bmip"
7331 ;;
7332 esac
7333 else
7334 case `/usr/bin/file conftest.$ac_objext` in
7335 *32-bit*)
7336 LD="${LD-ld} -32"
7337 ;;
7338 *N32*)
7339 LD="${LD-ld} -n32"
7340 ;;
7341 *64-bit*)
7342 LD="${LD-ld} -64"
7343 ;;
7344 esac
7345 fi
7346 fi
7347 rm -rf conftest*
7348 ;;
7349
7350 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
7351 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
7352 # Find out which ABI we are using.
7353 echo 'int i;' > conftest.$ac_ext
7354 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7355 (eval $ac_compile) 2>&5
7356 ac_status=$?
7357 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7358 test $ac_status = 0; }; then
7359 case `/usr/bin/file conftest.o` in
7360 *32-bit*)
7361 case $host in
7362 x86_64-*kfreebsd*-gnu)
7363 LD="${LD-ld} -m elf_i386_fbsd"
7364 ;;
7365 x86_64-*linux*)
7366 LD="${LD-ld} -m elf_i386"
7367 ;;
7368 ppc64-*linux*|powerpc64-*linux*)
7369 LD="${LD-ld} -m elf32ppclinux"
7370 ;;
7371 s390x-*linux*)
7372 LD="${LD-ld} -m elf_s390"
7373 ;;
7374 sparc64-*linux*)
7375 LD="${LD-ld} -m elf32_sparc"
7376 ;;
7377 esac
7378 ;;
7379 *64-bit*)
7380 case $host in
7381 x86_64-*kfreebsd*-gnu)
7382 LD="${LD-ld} -m elf_x86_64_fbsd"
7383 ;;
7384 x86_64-*linux*)
7385 LD="${LD-ld} -m elf_x86_64"
7386 ;;
7387 ppc*-*linux*|powerpc*-*linux*)
7388 LD="${LD-ld} -m elf64ppc"
7389 ;;
7390 s390*-*linux*|s390*-*tpf*)
7391 LD="${LD-ld} -m elf64_s390"
7392 ;;
7393 sparc*-*linux*)
7394 LD="${LD-ld} -m elf64_sparc"
7395 ;;
7396 esac
7397 ;;
7398 esac
7399 fi
7400 rm -rf conftest*
7401 ;;
7402
7403 *-*-sco3.2v5*)
7404 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7405 SAVE_CFLAGS="$CFLAGS"
7406 CFLAGS="$CFLAGS -belf"
7407 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
7408 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
7409 if test "${lt_cv_cc_needs_belf+set}" = set; then :
7410 $as_echo_n "(cached) " >&6
7411 else
7412 ac_ext=c
7413 ac_cpp='$CPP $CPPFLAGS'
7414 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7415 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7416 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7417
7418 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7419 /* end confdefs.h. */
7420
7421 int
7422 main ()
7423 {
7424
7425 ;
7426 return 0;
7427 }
7428 _ACEOF
7429 if ac_fn_c_try_link "$LINENO"; then :
7430 lt_cv_cc_needs_belf=yes
7431 else
7432 lt_cv_cc_needs_belf=no
7433 fi
7434 rm -f core conftest.err conftest.$ac_objext \
7435 conftest$ac_exeext conftest.$ac_ext
7436 ac_ext=c
7437 ac_cpp='$CPP $CPPFLAGS'
7438 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7439 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7440 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7441
7442 fi
7443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
7444 $as_echo "$lt_cv_cc_needs_belf" >&6; }
7445 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
7446 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7447 CFLAGS="$SAVE_CFLAGS"
7448 fi
7449 ;;
7450 sparc*-*solaris*)
7451 # Find out which ABI we are using.
7452 echo 'int i;' > conftest.$ac_ext
7453 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7454 (eval $ac_compile) 2>&5
7455 ac_status=$?
7456 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7457 test $ac_status = 0; }; then
7458 case `/usr/bin/file conftest.o` in
7459 *64-bit*)
7460 case $lt_cv_prog_gnu_ld in
7461 yes*) LD="${LD-ld} -m elf64_sparc" ;;
7462 *)
7463 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7464 LD="${LD-ld} -64"
7465 fi
7466 ;;
7467 esac
7468 ;;
7469 esac
7470 fi
7471 rm -rf conftest*
7472 ;;
7473 esac
7474
7475 need_locks="$enable_libtool_lock"
7476
7477
7478 case $host_os in
7479 rhapsody* | darwin*)
7480 if test -n "$ac_tool_prefix"; then
7481 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7482 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7483 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7484 $as_echo_n "checking for $ac_word... " >&6; }
7485 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
7486 $as_echo_n "(cached) " >&6
7487 else
7488 if test -n "$DSYMUTIL"; then
7489 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7490 else
7491 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7492 for as_dir in $PATH
7493 do
7494 IFS=$as_save_IFS
7495 test -z "$as_dir" && as_dir=.
7496 for ac_exec_ext in '' $ac_executable_extensions; do
7497 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7498 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7499 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7500 break 2
7501 fi
7502 done
7503 done
7504 IFS=$as_save_IFS
7505
7506 fi
7507 fi
7508 DSYMUTIL=$ac_cv_prog_DSYMUTIL
7509 if test -n "$DSYMUTIL"; then
7510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
7511 $as_echo "$DSYMUTIL" >&6; }
7512 else
7513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7514 $as_echo "no" >&6; }
7515 fi
7516
7517
7518 fi
7519 if test -z "$ac_cv_prog_DSYMUTIL"; then
7520 ac_ct_DSYMUTIL=$DSYMUTIL
7521 # Extract the first word of "dsymutil", so it can be a program name with args.
7522 set dummy dsymutil; ac_word=$2
7523 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7524 $as_echo_n "checking for $ac_word... " >&6; }
7525 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
7526 $as_echo_n "(cached) " >&6
7527 else
7528 if test -n "$ac_ct_DSYMUTIL"; then
7529 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7530 else
7531 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7532 for as_dir in $PATH
7533 do
7534 IFS=$as_save_IFS
7535 test -z "$as_dir" && as_dir=.
7536 for ac_exec_ext in '' $ac_executable_extensions; do
7537 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7538 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7539 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7540 break 2
7541 fi
7542 done
7543 done
7544 IFS=$as_save_IFS
7545
7546 fi
7547 fi
7548 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7549 if test -n "$ac_ct_DSYMUTIL"; then
7550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
7551 $as_echo "$ac_ct_DSYMUTIL" >&6; }
7552 else
7553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7554 $as_echo "no" >&6; }
7555 fi
7556
7557 if test "x$ac_ct_DSYMUTIL" = x; then
7558 DSYMUTIL=":"
7559 else
7560 case $cross_compiling:$ac_tool_warned in
7561 yes:)
7562 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7563 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7564 ac_tool_warned=yes ;;
7565 esac
7566 DSYMUTIL=$ac_ct_DSYMUTIL
7567 fi
7568 else
7569 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7570 fi
7571
7572 if test -n "$ac_tool_prefix"; then
7573 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7574 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7575 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7576 $as_echo_n "checking for $ac_word... " >&6; }
7577 if test "${ac_cv_prog_NMEDIT+set}" = set; then :
7578 $as_echo_n "(cached) " >&6
7579 else
7580 if test -n "$NMEDIT"; then
7581 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7582 else
7583 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7584 for as_dir in $PATH
7585 do
7586 IFS=$as_save_IFS
7587 test -z "$as_dir" && as_dir=.
7588 for ac_exec_ext in '' $ac_executable_extensions; do
7589 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7590 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7591 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7592 break 2
7593 fi
7594 done
7595 done
7596 IFS=$as_save_IFS
7597
7598 fi
7599 fi
7600 NMEDIT=$ac_cv_prog_NMEDIT
7601 if test -n "$NMEDIT"; then
7602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
7603 $as_echo "$NMEDIT" >&6; }
7604 else
7605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7606 $as_echo "no" >&6; }
7607 fi
7608
7609
7610 fi
7611 if test -z "$ac_cv_prog_NMEDIT"; then
7612 ac_ct_NMEDIT=$NMEDIT
7613 # Extract the first word of "nmedit", so it can be a program name with args.
7614 set dummy nmedit; ac_word=$2
7615 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7616 $as_echo_n "checking for $ac_word... " >&6; }
7617 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
7618 $as_echo_n "(cached) " >&6
7619 else
7620 if test -n "$ac_ct_NMEDIT"; then
7621 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7622 else
7623 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7624 for as_dir in $PATH
7625 do
7626 IFS=$as_save_IFS
7627 test -z "$as_dir" && as_dir=.
7628 for ac_exec_ext in '' $ac_executable_extensions; do
7629 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7630 ac_cv_prog_ac_ct_NMEDIT="nmedit"
7631 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7632 break 2
7633 fi
7634 done
7635 done
7636 IFS=$as_save_IFS
7637
7638 fi
7639 fi
7640 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7641 if test -n "$ac_ct_NMEDIT"; then
7642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7643 $as_echo "$ac_ct_NMEDIT" >&6; }
7644 else
7645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7646 $as_echo "no" >&6; }
7647 fi
7648
7649 if test "x$ac_ct_NMEDIT" = x; then
7650 NMEDIT=":"
7651 else
7652 case $cross_compiling:$ac_tool_warned in
7653 yes:)
7654 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7655 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7656 ac_tool_warned=yes ;;
7657 esac
7658 NMEDIT=$ac_ct_NMEDIT
7659 fi
7660 else
7661 NMEDIT="$ac_cv_prog_NMEDIT"
7662 fi
7663
7664 if test -n "$ac_tool_prefix"; then
7665 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7666 set dummy ${ac_tool_prefix}lipo; ac_word=$2
7667 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7668 $as_echo_n "checking for $ac_word... " >&6; }
7669 if test "${ac_cv_prog_LIPO+set}" = set; then :
7670 $as_echo_n "(cached) " >&6
7671 else
7672 if test -n "$LIPO"; then
7673 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7674 else
7675 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7676 for as_dir in $PATH
7677 do
7678 IFS=$as_save_IFS
7679 test -z "$as_dir" && as_dir=.
7680 for ac_exec_ext in '' $ac_executable_extensions; do
7681 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7682 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7683 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7684 break 2
7685 fi
7686 done
7687 done
7688 IFS=$as_save_IFS
7689
7690 fi
7691 fi
7692 LIPO=$ac_cv_prog_LIPO
7693 if test -n "$LIPO"; then
7694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7695 $as_echo "$LIPO" >&6; }
7696 else
7697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7698 $as_echo "no" >&6; }
7699 fi
7700
7701
7702 fi
7703 if test -z "$ac_cv_prog_LIPO"; then
7704 ac_ct_LIPO=$LIPO
7705 # Extract the first word of "lipo", so it can be a program name with args.
7706 set dummy lipo; ac_word=$2
7707 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7708 $as_echo_n "checking for $ac_word... " >&6; }
7709 if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
7710 $as_echo_n "(cached) " >&6
7711 else
7712 if test -n "$ac_ct_LIPO"; then
7713 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7714 else
7715 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7716 for as_dir in $PATH
7717 do
7718 IFS=$as_save_IFS
7719 test -z "$as_dir" && as_dir=.
7720 for ac_exec_ext in '' $ac_executable_extensions; do
7721 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7722 ac_cv_prog_ac_ct_LIPO="lipo"
7723 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7724 break 2
7725 fi
7726 done
7727 done
7728 IFS=$as_save_IFS
7729
7730 fi
7731 fi
7732 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7733 if test -n "$ac_ct_LIPO"; then
7734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7735 $as_echo "$ac_ct_LIPO" >&6; }
7736 else
7737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7738 $as_echo "no" >&6; }
7739 fi
7740
7741 if test "x$ac_ct_LIPO" = x; then
7742 LIPO=":"
7743 else
7744 case $cross_compiling:$ac_tool_warned in
7745 yes:)
7746 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7747 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7748 ac_tool_warned=yes ;;
7749 esac
7750 LIPO=$ac_ct_LIPO
7751 fi
7752 else
7753 LIPO="$ac_cv_prog_LIPO"
7754 fi
7755
7756 if test -n "$ac_tool_prefix"; then
7757 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7758 set dummy ${ac_tool_prefix}otool; ac_word=$2
7759 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7760 $as_echo_n "checking for $ac_word... " >&6; }
7761 if test "${ac_cv_prog_OTOOL+set}" = set; then :
7762 $as_echo_n "(cached) " >&6
7763 else
7764 if test -n "$OTOOL"; then
7765 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7766 else
7767 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7768 for as_dir in $PATH
7769 do
7770 IFS=$as_save_IFS
7771 test -z "$as_dir" && as_dir=.
7772 for ac_exec_ext in '' $ac_executable_extensions; do
7773 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7774 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7775 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7776 break 2
7777 fi
7778 done
7779 done
7780 IFS=$as_save_IFS
7781
7782 fi
7783 fi
7784 OTOOL=$ac_cv_prog_OTOOL
7785 if test -n "$OTOOL"; then
7786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7787 $as_echo "$OTOOL" >&6; }
7788 else
7789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7790 $as_echo "no" >&6; }
7791 fi
7792
7793
7794 fi
7795 if test -z "$ac_cv_prog_OTOOL"; then
7796 ac_ct_OTOOL=$OTOOL
7797 # Extract the first word of "otool", so it can be a program name with args.
7798 set dummy otool; ac_word=$2
7799 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7800 $as_echo_n "checking for $ac_word... " >&6; }
7801 if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
7802 $as_echo_n "(cached) " >&6
7803 else
7804 if test -n "$ac_ct_OTOOL"; then
7805 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7806 else
7807 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7808 for as_dir in $PATH
7809 do
7810 IFS=$as_save_IFS
7811 test -z "$as_dir" && as_dir=.
7812 for ac_exec_ext in '' $ac_executable_extensions; do
7813 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7814 ac_cv_prog_ac_ct_OTOOL="otool"
7815 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7816 break 2
7817 fi
7818 done
7819 done
7820 IFS=$as_save_IFS
7821
7822 fi
7823 fi
7824 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7825 if test -n "$ac_ct_OTOOL"; then
7826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7827 $as_echo "$ac_ct_OTOOL" >&6; }
7828 else
7829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7830 $as_echo "no" >&6; }
7831 fi
7832
7833 if test "x$ac_ct_OTOOL" = x; then
7834 OTOOL=":"
7835 else
7836 case $cross_compiling:$ac_tool_warned in
7837 yes:)
7838 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7839 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7840 ac_tool_warned=yes ;;
7841 esac
7842 OTOOL=$ac_ct_OTOOL
7843 fi
7844 else
7845 OTOOL="$ac_cv_prog_OTOOL"
7846 fi
7847
7848 if test -n "$ac_tool_prefix"; then
7849 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7850 set dummy ${ac_tool_prefix}otool64; ac_word=$2
7851 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7852 $as_echo_n "checking for $ac_word... " >&6; }
7853 if test "${ac_cv_prog_OTOOL64+set}" = set; then :
7854 $as_echo_n "(cached) " >&6
7855 else
7856 if test -n "$OTOOL64"; then
7857 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7858 else
7859 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7860 for as_dir in $PATH
7861 do
7862 IFS=$as_save_IFS
7863 test -z "$as_dir" && as_dir=.
7864 for ac_exec_ext in '' $ac_executable_extensions; do
7865 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7866 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7867 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7868 break 2
7869 fi
7870 done
7871 done
7872 IFS=$as_save_IFS
7873
7874 fi
7875 fi
7876 OTOOL64=$ac_cv_prog_OTOOL64
7877 if test -n "$OTOOL64"; then
7878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
7879 $as_echo "$OTOOL64" >&6; }
7880 else
7881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7882 $as_echo "no" >&6; }
7883 fi
7884
7885
7886 fi
7887 if test -z "$ac_cv_prog_OTOOL64"; then
7888 ac_ct_OTOOL64=$OTOOL64
7889 # Extract the first word of "otool64", so it can be a program name with args.
7890 set dummy otool64; ac_word=$2
7891 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7892 $as_echo_n "checking for $ac_word... " >&6; }
7893 if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
7894 $as_echo_n "(cached) " >&6
7895 else
7896 if test -n "$ac_ct_OTOOL64"; then
7897 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7898 else
7899 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7900 for as_dir in $PATH
7901 do
7902 IFS=$as_save_IFS
7903 test -z "$as_dir" && as_dir=.
7904 for ac_exec_ext in '' $ac_executable_extensions; do
7905 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7906 ac_cv_prog_ac_ct_OTOOL64="otool64"
7907 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7908 break 2
7909 fi
7910 done
7911 done
7912 IFS=$as_save_IFS
7913
7914 fi
7915 fi
7916 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7917 if test -n "$ac_ct_OTOOL64"; then
7918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
7919 $as_echo "$ac_ct_OTOOL64" >&6; }
7920 else
7921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7922 $as_echo "no" >&6; }
7923 fi
7924
7925 if test "x$ac_ct_OTOOL64" = x; then
7926 OTOOL64=":"
7927 else
7928 case $cross_compiling:$ac_tool_warned in
7929 yes:)
7930 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7931 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7932 ac_tool_warned=yes ;;
7933 esac
7934 OTOOL64=$ac_ct_OTOOL64
7935 fi
7936 else
7937 OTOOL64="$ac_cv_prog_OTOOL64"
7938 fi
7939
7940
7941
7942
7943
7944
7945
7946
7947
7948
7949
7950
7951
7952
7953
7954
7955
7956
7957
7958
7959
7960
7961
7962
7963
7964
7965
7966 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7967 $as_echo_n "checking for -single_module linker flag... " >&6; }
7968 if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
7969 $as_echo_n "(cached) " >&6
7970 else
7971 lt_cv_apple_cc_single_mod=no
7972 if test -z "${LT_MULTI_MODULE}"; then
7973 # By default we will add the -single_module flag. You can override
7974 # by either setting the environment variable LT_MULTI_MODULE
7975 # non-empty at configure time, or by adding -multi_module to the
7976 # link flags.
7977 rm -rf libconftest.dylib*
7978 echo "int foo(void){return 1;}" > conftest.c
7979 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7980 -dynamiclib -Wl,-single_module conftest.c" >&5
7981 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7982 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7983 _lt_result=$?
7984 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
7985 lt_cv_apple_cc_single_mod=yes
7986 else
7987 cat conftest.err >&5
7988 fi
7989 rm -rf libconftest.dylib*
7990 rm -f conftest.*
7991 fi
7992 fi
7993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7994 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7995 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7996 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7997 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
7998 $as_echo_n "(cached) " >&6
7999 else
8000 lt_cv_ld_exported_symbols_list=no
8001 save_LDFLAGS=$LDFLAGS
8002 echo "_main" > conftest.sym
8003 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
8004 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8005 /* end confdefs.h. */
8006
8007 int
8008 main ()
8009 {
8010
8011 ;
8012 return 0;
8013 }
8014 _ACEOF
8015 if ac_fn_c_try_link "$LINENO"; then :
8016 lt_cv_ld_exported_symbols_list=yes
8017 else
8018 lt_cv_ld_exported_symbols_list=no
8019 fi
8020 rm -f core conftest.err conftest.$ac_objext \
8021 conftest$ac_exeext conftest.$ac_ext
8022 LDFLAGS="$save_LDFLAGS"
8023
8024 fi
8025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
8026 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
8027 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
8028 $as_echo_n "checking for -force_load linker flag... " >&6; }
8029 if test "${lt_cv_ld_force_load+set}" = set; then :
8030 $as_echo_n "(cached) " >&6
8031 else
8032 lt_cv_ld_force_load=no
8033 cat > conftest.c << _LT_EOF
8034 int forced_loaded() { return 2;}
8035 _LT_EOF
8036 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
8037 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
8038 echo "$AR cru libconftest.a conftest.o" >&5
8039 $AR cru libconftest.a conftest.o 2>&5
8040 cat > conftest.c << _LT_EOF
8041 int main() { return 0;}
8042 _LT_EOF
8043 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
8044 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
8045 _lt_result=$?
8046 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
8047 lt_cv_ld_force_load=yes
8048 else
8049 cat conftest.err >&5
8050 fi
8051 rm -f conftest.err libconftest.a conftest conftest.c
8052 rm -rf conftest.dSYM
8053
8054 fi
8055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
8056 $as_echo "$lt_cv_ld_force_load" >&6; }
8057 case $host_os in
8058 rhapsody* | darwin1.[012])
8059 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
8060 darwin1.*)
8061 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8062 darwin*) # darwin 5.x on
8063 # if running on 10.5 or later, the deployment target defaults
8064 # to the OS version, if on x86, and 10.4, the deployment
8065 # target defaults to 10.4. Don't you love it?
8066 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
8067 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
8068 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
8069 10.[012]*)
8070 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8071 10.*)
8072 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
8073 esac
8074 ;;
8075 esac
8076 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
8077 _lt_dar_single_mod='$single_module'
8078 fi
8079 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
8080 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
8081 else
8082 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
8083 fi
8084 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
8085 _lt_dsymutil='~$DSYMUTIL $lib || :'
8086 else
8087 _lt_dsymutil=
8088 fi
8089 ;;
8090 esac
8091
8092 for ac_header in dlfcn.h
8093 do :
8094 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
8095 "
8096 if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
8097 cat >>confdefs.h <<_ACEOF
8098 #define HAVE_DLFCN_H 1
8099 _ACEOF
8100
8101 fi
8102
8103 done
8104
8105
8106
8107
8108
8109 # Set options
8110
8111
8112
8113 enable_dlopen=no
8114
8115
8116 enable_win32_dll=no
8117
8118
8119 # Check whether --enable-shared was given.
8120 if test "${enable_shared+set}" = set; then :
8121 enableval=$enable_shared; p=${PACKAGE-default}
8122 case $enableval in
8123 yes) enable_shared=yes ;;
8124 no) enable_shared=no ;;
8125 *)
8126 enable_shared=no
8127 # Look at the argument we got. We use all the common list separators.
8128 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8129 for pkg in $enableval; do
8130 IFS="$lt_save_ifs"
8131 if test "X$pkg" = "X$p"; then
8132 enable_shared=yes
8133 fi
8134 done
8135 IFS="$lt_save_ifs"
8136 ;;
8137 esac
8138 else
8139 enable_shared=yes
8140 fi
8141
8142
8143
8144
8145
8146
8147
8148
8149
8150 # Check whether --enable-static was given.
8151 if test "${enable_static+set}" = set; then :
8152 enableval=$enable_static; p=${PACKAGE-default}
8153 case $enableval in
8154 yes) enable_static=yes ;;
8155 no) enable_static=no ;;
8156 *)
8157 enable_static=no
8158 # Look at the argument we got. We use all the common list separators.
8159 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8160 for pkg in $enableval; do
8161 IFS="$lt_save_ifs"
8162 if test "X$pkg" = "X$p"; then
8163 enable_static=yes
8164 fi
8165 done
8166 IFS="$lt_save_ifs"
8167 ;;
8168 esac
8169 else
8170 enable_static=yes
8171 fi
8172
8173
8174
8175
8176
8177
8178
8179
8180
8181
8182 # Check whether --with-pic was given.
8183 if test "${with_pic+set}" = set; then :
8184 withval=$with_pic; pic_mode="$withval"
8185 else
8186 pic_mode=default
8187 fi
8188
8189
8190 test -z "$pic_mode" && pic_mode=default
8191
8192
8193
8194
8195
8196
8197
8198 # Check whether --enable-fast-install was given.
8199 if test "${enable_fast_install+set}" = set; then :
8200 enableval=$enable_fast_install; p=${PACKAGE-default}
8201 case $enableval in
8202 yes) enable_fast_install=yes ;;
8203 no) enable_fast_install=no ;;
8204 *)
8205 enable_fast_install=no
8206 # Look at the argument we got. We use all the common list separators.
8207 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8208 for pkg in $enableval; do
8209 IFS="$lt_save_ifs"
8210 if test "X$pkg" = "X$p"; then
8211 enable_fast_install=yes
8212 fi
8213 done
8214 IFS="$lt_save_ifs"
8215 ;;
8216 esac
8217 else
8218 enable_fast_install=yes
8219 fi
8220
8221
8222
8223
8224
8225
8226
8227
8228
8229
8230
8231 # This can be used to rebuild libtool when needed
8232 LIBTOOL_DEPS="$ltmain"
8233
8234 # Always use our own libtool.
8235 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8236
8237
8238
8239
8240
8241
8242
8243
8244
8245
8246
8247
8248
8249
8250
8251
8252
8253
8254
8255
8256
8257
8258
8259
8260
8261
8262 test -z "$LN_S" && LN_S="ln -s"
8263
8264
8265
8266
8267
8268
8269
8270
8271
8272
8273
8274
8275
8276
8277 if test -n "${ZSH_VERSION+set}" ; then
8278 setopt NO_GLOB_SUBST
8279 fi
8280
8281 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8282 $as_echo_n "checking for objdir... " >&6; }
8283 if test "${lt_cv_objdir+set}" = set; then :
8284 $as_echo_n "(cached) " >&6
8285 else
8286 rm -f .libs 2>/dev/null
8287 mkdir .libs 2>/dev/null
8288 if test -d .libs; then
8289 lt_cv_objdir=.libs
8290 else
8291 # MS-DOS does not allow filenames that begin with a dot.
8292 lt_cv_objdir=_libs
8293 fi
8294 rmdir .libs 2>/dev/null
8295 fi
8296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8297 $as_echo "$lt_cv_objdir" >&6; }
8298 objdir=$lt_cv_objdir
8299
8300
8301
8302
8303
8304 cat >>confdefs.h <<_ACEOF
8305 #define LT_OBJDIR "$lt_cv_objdir/"
8306 _ACEOF
8307
8308
8309
8310
8311 case $host_os in
8312 aix3*)
8313 # AIX sometimes has problems with the GCC collect2 program. For some
8314 # reason, if we set the COLLECT_NAMES environment variable, the problems
8315 # vanish in a puff of smoke.
8316 if test "X${COLLECT_NAMES+set}" != Xset; then
8317 COLLECT_NAMES=
8318 export COLLECT_NAMES
8319 fi
8320 ;;
8321 esac
8322
8323 # Global variables:
8324 ofile=libtool
8325 can_build_shared=yes
8326
8327 # All known linkers require a `.a' archive for static linking (except MSVC,
8328 # which needs '.lib').
8329 libext=a
8330
8331 with_gnu_ld="$lt_cv_prog_gnu_ld"
8332
8333 old_CC="$CC"
8334 old_CFLAGS="$CFLAGS"
8335
8336 # Set sane defaults for various variables
8337 test -z "$CC" && CC=cc
8338 test -z "$LTCC" && LTCC=$CC
8339 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8340 test -z "$LD" && LD=ld
8341 test -z "$ac_objext" && ac_objext=o
8342
8343 for cc_temp in $compiler""; do
8344 case $cc_temp in
8345 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8346 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8347 \-*) ;;
8348 *) break;;
8349 esac
8350 done
8351 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
8352
8353
8354 # Only perform the check for file, if the check method requires it
8355 test -z "$MAGIC_CMD" && MAGIC_CMD=file
8356 case $deplibs_check_method in
8357 file_magic*)
8358 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8359 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8360 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
8361 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
8362 $as_echo_n "(cached) " >&6
8363 else
8364 case $MAGIC_CMD in
8365 [\\/*] | ?:[\\/]*)
8366 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8367 ;;
8368 *)
8369 lt_save_MAGIC_CMD="$MAGIC_CMD"
8370 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8371 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8372 for ac_dir in $ac_dummy; do
8373 IFS="$lt_save_ifs"
8374 test -z "$ac_dir" && ac_dir=.
8375 if test -f $ac_dir/${ac_tool_prefix}file; then
8376 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8377 if test -n "$file_magic_test_file"; then
8378 case $deplibs_check_method in
8379 "file_magic "*)
8380 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8381 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8382 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8383 $EGREP "$file_magic_regex" > /dev/null; then
8384 :
8385 else
8386 cat <<_LT_EOF 1>&2
8387
8388 *** Warning: the command libtool uses to detect shared libraries,
8389 *** $file_magic_cmd, produces output that libtool cannot recognize.
8390 *** The result is that libtool may fail to recognize shared libraries
8391 *** as such. This will affect the creation of libtool libraries that
8392 *** depend on shared libraries, but programs linked with such libtool
8393 *** libraries will work regardless of this problem. Nevertheless, you
8394 *** may want to report the problem to your system manager and/or to
8395 *** bug-libtool@gnu.org
8396
8397 _LT_EOF
8398 fi ;;
8399 esac
8400 fi
8401 break
8402 fi
8403 done
8404 IFS="$lt_save_ifs"
8405 MAGIC_CMD="$lt_save_MAGIC_CMD"
8406 ;;
8407 esac
8408 fi
8409
8410 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8411 if test -n "$MAGIC_CMD"; then
8412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8413 $as_echo "$MAGIC_CMD" >&6; }
8414 else
8415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8416 $as_echo "no" >&6; }
8417 fi
8418
8419
8420
8421
8422
8423 if test -z "$lt_cv_path_MAGIC_CMD"; then
8424 if test -n "$ac_tool_prefix"; then
8425 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8426 $as_echo_n "checking for file... " >&6; }
8427 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
8428 $as_echo_n "(cached) " >&6
8429 else
8430 case $MAGIC_CMD in
8431 [\\/*] | ?:[\\/]*)
8432 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8433 ;;
8434 *)
8435 lt_save_MAGIC_CMD="$MAGIC_CMD"
8436 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8437 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8438 for ac_dir in $ac_dummy; do
8439 IFS="$lt_save_ifs"
8440 test -z "$ac_dir" && ac_dir=.
8441 if test -f $ac_dir/file; then
8442 lt_cv_path_MAGIC_CMD="$ac_dir/file"
8443 if test -n "$file_magic_test_file"; then
8444 case $deplibs_check_method in
8445 "file_magic "*)
8446 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8447 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8448 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8449 $EGREP "$file_magic_regex" > /dev/null; then
8450 :
8451 else
8452 cat <<_LT_EOF 1>&2
8453
8454 *** Warning: the command libtool uses to detect shared libraries,
8455 *** $file_magic_cmd, produces output that libtool cannot recognize.
8456 *** The result is that libtool may fail to recognize shared libraries
8457 *** as such. This will affect the creation of libtool libraries that
8458 *** depend on shared libraries, but programs linked with such libtool
8459 *** libraries will work regardless of this problem. Nevertheless, you
8460 *** may want to report the problem to your system manager and/or to
8461 *** bug-libtool@gnu.org
8462
8463 _LT_EOF
8464 fi ;;
8465 esac
8466 fi
8467 break
8468 fi
8469 done
8470 IFS="$lt_save_ifs"
8471 MAGIC_CMD="$lt_save_MAGIC_CMD"
8472 ;;
8473 esac
8474 fi
8475
8476 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8477 if test -n "$MAGIC_CMD"; then
8478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8479 $as_echo "$MAGIC_CMD" >&6; }
8480 else
8481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8482 $as_echo "no" >&6; }
8483 fi
8484
8485
8486 else
8487 MAGIC_CMD=:
8488 fi
8489 fi
8490
8491 fi
8492 ;;
8493 esac
8494
8495 # Use C for the default configuration in the libtool script
8496
8497 lt_save_CC="$CC"
8498 ac_ext=c
8499 ac_cpp='$CPP $CPPFLAGS'
8500 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8501 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8502 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8503
8504
8505 # Source file extension for C test sources.
8506 ac_ext=c
8507
8508 # Object file extension for compiled C test sources.
8509 objext=o
8510 objext=$objext
8511
8512 # Code to be used in simple compile tests
8513 lt_simple_compile_test_code="int some_variable = 0;"
8514
8515 # Code to be used in simple link tests
8516 lt_simple_link_test_code='int main(){return(0);}'
8517
8518
8519
8520
8521
8522
8523
8524 # If no C compiler was specified, use CC.
8525 LTCC=${LTCC-"$CC"}
8526
8527 # If no C compiler flags were specified, use CFLAGS.
8528 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8529
8530 # Allow CC to be a program name with arguments.
8531 compiler=$CC
8532
8533 # Save the default compiler, since it gets overwritten when the other
8534 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8535 compiler_DEFAULT=$CC
8536
8537 # save warnings/boilerplate of simple test code
8538 ac_outfile=conftest.$ac_objext
8539 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8540 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8541 _lt_compiler_boilerplate=`cat conftest.err`
8542 $RM conftest*
8543
8544 ac_outfile=conftest.$ac_objext
8545 echo "$lt_simple_link_test_code" >conftest.$ac_ext
8546 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8547 _lt_linker_boilerplate=`cat conftest.err`
8548 $RM -r conftest*
8549
8550
8551 ## CAVEAT EMPTOR:
8552 ## There is no encapsulation within the following macros, do not change
8553 ## the running order or otherwise move them around unless you know exactly
8554 ## what you are doing...
8555 if test -n "$compiler"; then
8556
8557 lt_prog_compiler_no_builtin_flag=
8558
8559 if test "$GCC" = yes; then
8560 case $cc_basename in
8561 nvcc*)
8562 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
8563 *)
8564 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
8565 esac
8566
8567 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8568 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8569 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
8570 $as_echo_n "(cached) " >&6
8571 else
8572 lt_cv_prog_compiler_rtti_exceptions=no
8573 ac_outfile=conftest.$ac_objext
8574 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8575 lt_compiler_flag="-fno-rtti -fno-exceptions"
8576 # Insert the option either (1) after the last *FLAGS variable, or
8577 # (2) before a word containing "conftest.", or (3) at the end.
8578 # Note that $ac_compile itself does not contain backslashes and begins
8579 # with a dollar sign (not a hyphen), so the echo should work correctly.
8580 # The option is referenced via a variable to avoid confusing sed.
8581 lt_compile=`echo "$ac_compile" | $SED \
8582 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8583 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8584 -e 's:$: $lt_compiler_flag:'`
8585 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8586 (eval "$lt_compile" 2>conftest.err)
8587 ac_status=$?
8588 cat conftest.err >&5
8589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8590 if (exit $ac_status) && test -s "$ac_outfile"; then
8591 # The compiler can only warn and ignore the option if not recognized
8592 # So say no if there are warnings other than the usual output.
8593 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8594 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8595 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8596 lt_cv_prog_compiler_rtti_exceptions=yes
8597 fi
8598 fi
8599 $RM conftest*
8600
8601 fi
8602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8603 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8604
8605 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8606 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8607 else
8608 :
8609 fi
8610
8611 fi
8612
8613
8614
8615
8616
8617
8618 lt_prog_compiler_wl=
8619 lt_prog_compiler_pic=
8620 lt_prog_compiler_static=
8621
8622 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8623 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8624
8625 if test "$GCC" = yes; then
8626 lt_prog_compiler_wl='-Wl,'
8627 lt_prog_compiler_static='-static'
8628
8629 case $host_os in
8630 aix*)
8631 # All AIX code is PIC.
8632 if test "$host_cpu" = ia64; then
8633 # AIX 5 now supports IA64 processor
8634 lt_prog_compiler_static='-Bstatic'
8635 fi
8636 ;;
8637
8638 amigaos*)
8639 case $host_cpu in
8640 powerpc)
8641 # see comment about AmigaOS4 .so support
8642 lt_prog_compiler_pic='-fPIC'
8643 ;;
8644 m68k)
8645 # FIXME: we need at least 68020 code to build shared libraries, but
8646 # adding the `-m68020' flag to GCC prevents building anything better,
8647 # like `-m68040'.
8648 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8649 ;;
8650 esac
8651 ;;
8652
8653 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8654 # PIC is the default for these OSes.
8655 ;;
8656
8657 mingw* | cygwin* | pw32* | os2* | cegcc*)
8658 # This hack is so that the source file can tell whether it is being
8659 # built for inclusion in a dll (and should export symbols for example).
8660 # Although the cygwin gcc ignores -fPIC, still need this for old-style
8661 # (--disable-auto-import) libraries
8662 lt_prog_compiler_pic='-DDLL_EXPORT'
8663 ;;
8664
8665 darwin* | rhapsody*)
8666 # PIC is the default on this platform
8667 # Common symbols not allowed in MH_DYLIB files
8668 lt_prog_compiler_pic='-fno-common'
8669 ;;
8670
8671 haiku*)
8672 # PIC is the default for Haiku.
8673 # The "-static" flag exists, but is broken.
8674 lt_prog_compiler_static=
8675 ;;
8676
8677 hpux*)
8678 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8679 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
8680 # sets the default TLS model and affects inlining.
8681 case $host_cpu in
8682 hppa*64*)
8683 # +Z the default
8684 ;;
8685 *)
8686 lt_prog_compiler_pic='-fPIC'
8687 ;;
8688 esac
8689 ;;
8690
8691 interix[3-9]*)
8692 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8693 # Instead, we relocate shared libraries at runtime.
8694 ;;
8695
8696 msdosdjgpp*)
8697 # Just because we use GCC doesn't mean we suddenly get shared libraries
8698 # on systems that don't support them.
8699 lt_prog_compiler_can_build_shared=no
8700 enable_shared=no
8701 ;;
8702
8703 *nto* | *qnx*)
8704 # QNX uses GNU C++, but need to define -shared option too, otherwise
8705 # it will coredump.
8706 lt_prog_compiler_pic='-fPIC -shared'
8707 ;;
8708
8709 sysv4*MP*)
8710 if test -d /usr/nec; then
8711 lt_prog_compiler_pic=-Kconform_pic
8712 fi
8713 ;;
8714
8715 *)
8716 lt_prog_compiler_pic='-fPIC'
8717 ;;
8718 esac
8719
8720 case $cc_basename in
8721 nvcc*) # Cuda Compiler Driver 2.2
8722 lt_prog_compiler_wl='-Xlinker '
8723 lt_prog_compiler_pic='-Xcompiler -fPIC'
8724 ;;
8725 esac
8726 else
8727 # PORTME Check for flag to pass linker flags through the system compiler.
8728 case $host_os in
8729 aix*)
8730 lt_prog_compiler_wl='-Wl,'
8731 if test "$host_cpu" = ia64; then
8732 # AIX 5 now supports IA64 processor
8733 lt_prog_compiler_static='-Bstatic'
8734 else
8735 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8736 fi
8737 ;;
8738
8739 mingw* | cygwin* | pw32* | os2* | cegcc*)
8740 # This hack is so that the source file can tell whether it is being
8741 # built for inclusion in a dll (and should export symbols for example).
8742 lt_prog_compiler_pic='-DDLL_EXPORT'
8743 ;;
8744
8745 hpux9* | hpux10* | hpux11*)
8746 lt_prog_compiler_wl='-Wl,'
8747 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8748 # not for PA HP-UX.
8749 case $host_cpu in
8750 hppa*64*|ia64*)
8751 # +Z the default
8752 ;;
8753 *)
8754 lt_prog_compiler_pic='+Z'
8755 ;;
8756 esac
8757 # Is there a better lt_prog_compiler_static that works with the bundled CC?
8758 lt_prog_compiler_static='${wl}-a ${wl}archive'
8759 ;;
8760
8761 irix5* | irix6* | nonstopux*)
8762 lt_prog_compiler_wl='-Wl,'
8763 # PIC (with -KPIC) is the default.
8764 lt_prog_compiler_static='-non_shared'
8765 ;;
8766
8767 linux* | k*bsd*-gnu | kopensolaris*-gnu)
8768 case $cc_basename in
8769 # old Intel for x86_64 which still supported -KPIC.
8770 ecc*)
8771 lt_prog_compiler_wl='-Wl,'
8772 lt_prog_compiler_pic='-KPIC'
8773 lt_prog_compiler_static='-static'
8774 ;;
8775 # icc used to be incompatible with GCC.
8776 # ICC 10 doesn't accept -KPIC any more.
8777 icc* | ifort*)
8778 lt_prog_compiler_wl='-Wl,'
8779 lt_prog_compiler_pic='-fPIC'
8780 lt_prog_compiler_static='-static'
8781 ;;
8782 # Lahey Fortran 8.1.
8783 lf95*)
8784 lt_prog_compiler_wl='-Wl,'
8785 lt_prog_compiler_pic='--shared'
8786 lt_prog_compiler_static='--static'
8787 ;;
8788 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
8789 # Portland Group compilers (*not* the Pentium gcc compiler,
8790 # which looks to be a dead project)
8791 lt_prog_compiler_wl='-Wl,'
8792 lt_prog_compiler_pic='-fpic'
8793 lt_prog_compiler_static='-Bstatic'
8794 ;;
8795 ccc*)
8796 lt_prog_compiler_wl='-Wl,'
8797 # All Alpha code is PIC.
8798 lt_prog_compiler_static='-non_shared'
8799 ;;
8800 xl* | bgxl* | bgf* | mpixl*)
8801 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
8802 lt_prog_compiler_wl='-Wl,'
8803 lt_prog_compiler_pic='-qpic'
8804 lt_prog_compiler_static='-qstaticlink'
8805 ;;
8806 *)
8807 case `$CC -V 2>&1 | sed 5q` in
8808 *Sun\ F* | *Sun*Fortran*)
8809 # Sun Fortran 8.3 passes all unrecognized flags to the linker
8810 lt_prog_compiler_pic='-KPIC'
8811 lt_prog_compiler_static='-Bstatic'
8812 lt_prog_compiler_wl=''
8813 ;;
8814 *Sun\ C*)
8815 # Sun C 5.9
8816 lt_prog_compiler_pic='-KPIC'
8817 lt_prog_compiler_static='-Bstatic'
8818 lt_prog_compiler_wl='-Wl,'
8819 ;;
8820 esac
8821 ;;
8822 esac
8823 ;;
8824
8825 newsos6)
8826 lt_prog_compiler_pic='-KPIC'
8827 lt_prog_compiler_static='-Bstatic'
8828 ;;
8829
8830 *nto* | *qnx*)
8831 # QNX uses GNU C++, but need to define -shared option too, otherwise
8832 # it will coredump.
8833 lt_prog_compiler_pic='-fPIC -shared'
8834 ;;
8835
8836 osf3* | osf4* | osf5*)
8837 lt_prog_compiler_wl='-Wl,'
8838 # All OSF/1 code is PIC.
8839 lt_prog_compiler_static='-non_shared'
8840 ;;
8841
8842 rdos*)
8843 lt_prog_compiler_static='-non_shared'
8844 ;;
8845
8846 solaris*)
8847 lt_prog_compiler_pic='-KPIC'
8848 lt_prog_compiler_static='-Bstatic'
8849 case $cc_basename in
8850 f77* | f90* | f95*)
8851 lt_prog_compiler_wl='-Qoption ld ';;
8852 *)
8853 lt_prog_compiler_wl='-Wl,';;
8854 esac
8855 ;;
8856
8857 sunos4*)
8858 lt_prog_compiler_wl='-Qoption ld '
8859 lt_prog_compiler_pic='-PIC'
8860 lt_prog_compiler_static='-Bstatic'
8861 ;;
8862
8863 sysv4 | sysv4.2uw2* | sysv4.3*)
8864 lt_prog_compiler_wl='-Wl,'
8865 lt_prog_compiler_pic='-KPIC'
8866 lt_prog_compiler_static='-Bstatic'
8867 ;;
8868
8869 sysv4*MP*)
8870 if test -d /usr/nec ;then
8871 lt_prog_compiler_pic='-Kconform_pic'
8872 lt_prog_compiler_static='-Bstatic'
8873 fi
8874 ;;
8875
8876 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8877 lt_prog_compiler_wl='-Wl,'
8878 lt_prog_compiler_pic='-KPIC'
8879 lt_prog_compiler_static='-Bstatic'
8880 ;;
8881
8882 unicos*)
8883 lt_prog_compiler_wl='-Wl,'
8884 lt_prog_compiler_can_build_shared=no
8885 ;;
8886
8887 uts4*)
8888 lt_prog_compiler_pic='-pic'
8889 lt_prog_compiler_static='-Bstatic'
8890 ;;
8891
8892 *)
8893 lt_prog_compiler_can_build_shared=no
8894 ;;
8895 esac
8896 fi
8897
8898 case $host_os in
8899 # For platforms which do not support PIC, -DPIC is meaningless:
8900 *djgpp*)
8901 lt_prog_compiler_pic=
8902 ;;
8903 *)
8904 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8905 ;;
8906 esac
8907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
8908 $as_echo "$lt_prog_compiler_pic" >&6; }
8909
8910
8911
8912
8913
8914
8915 #
8916 # Check to make sure the PIC flag actually works.
8917 #
8918 if test -n "$lt_prog_compiler_pic"; then
8919 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8920 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8921 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
8922 $as_echo_n "(cached) " >&6
8923 else
8924 lt_cv_prog_compiler_pic_works=no
8925 ac_outfile=conftest.$ac_objext
8926 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8927 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8928 # Insert the option either (1) after the last *FLAGS variable, or
8929 # (2) before a word containing "conftest.", or (3) at the end.
8930 # Note that $ac_compile itself does not contain backslashes and begins
8931 # with a dollar sign (not a hyphen), so the echo should work correctly.
8932 # The option is referenced via a variable to avoid confusing sed.
8933 lt_compile=`echo "$ac_compile" | $SED \
8934 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8935 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8936 -e 's:$: $lt_compiler_flag:'`
8937 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8938 (eval "$lt_compile" 2>conftest.err)
8939 ac_status=$?
8940 cat conftest.err >&5
8941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8942 if (exit $ac_status) && test -s "$ac_outfile"; then
8943 # The compiler can only warn and ignore the option if not recognized
8944 # So say no if there are warnings other than the usual output.
8945 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8946 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8947 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8948 lt_cv_prog_compiler_pic_works=yes
8949 fi
8950 fi
8951 $RM conftest*
8952
8953 fi
8954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8955 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8956
8957 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
8958 case $lt_prog_compiler_pic in
8959 "" | " "*) ;;
8960 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8961 esac
8962 else
8963 lt_prog_compiler_pic=
8964 lt_prog_compiler_can_build_shared=no
8965 fi
8966
8967 fi
8968
8969
8970
8971
8972
8973
8974 #
8975 # Check to make sure the static flag actually works.
8976 #
8977 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8978 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8979 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8980 if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
8981 $as_echo_n "(cached) " >&6
8982 else
8983 lt_cv_prog_compiler_static_works=no
8984 save_LDFLAGS="$LDFLAGS"
8985 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8986 echo "$lt_simple_link_test_code" > conftest.$ac_ext
8987 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8988 # The linker can only warn and ignore the option if not recognized
8989 # So say no if there are warnings
8990 if test -s conftest.err; then
8991 # Append any errors to the config.log.
8992 cat conftest.err 1>&5
8993 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
8994 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8995 if diff conftest.exp conftest.er2 >/dev/null; then
8996 lt_cv_prog_compiler_static_works=yes
8997 fi
8998 else
8999 lt_cv_prog_compiler_static_works=yes
9000 fi
9001 fi
9002 $RM -r conftest*
9003 LDFLAGS="$save_LDFLAGS"
9004
9005 fi
9006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
9007 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
9008
9009 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
9010 :
9011 else
9012 lt_prog_compiler_static=
9013 fi
9014
9015
9016
9017
9018
9019
9020
9021 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9022 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9023 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
9024 $as_echo_n "(cached) " >&6
9025 else
9026 lt_cv_prog_compiler_c_o=no
9027 $RM -r conftest 2>/dev/null
9028 mkdir conftest
9029 cd conftest
9030 mkdir out
9031 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9032
9033 lt_compiler_flag="-o out/conftest2.$ac_objext"
9034 # Insert the option either (1) after the last *FLAGS variable, or
9035 # (2) before a word containing "conftest.", or (3) at the end.
9036 # Note that $ac_compile itself does not contain backslashes and begins
9037 # with a dollar sign (not a hyphen), so the echo should work correctly.
9038 lt_compile=`echo "$ac_compile" | $SED \
9039 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9040 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9041 -e 's:$: $lt_compiler_flag:'`
9042 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9043 (eval "$lt_compile" 2>out/conftest.err)
9044 ac_status=$?
9045 cat out/conftest.err >&5
9046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9047 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9048 then
9049 # The compiler can only warn and ignore the option if not recognized
9050 # So say no if there are warnings
9051 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9052 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9053 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9054 lt_cv_prog_compiler_c_o=yes
9055 fi
9056 fi
9057 chmod u+w . 2>&5
9058 $RM conftest*
9059 # SGI C++ compiler will create directory out/ii_files/ for
9060 # template instantiation
9061 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9062 $RM out/* && rmdir out
9063 cd ..
9064 $RM -r conftest
9065 $RM conftest*
9066
9067 fi
9068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9069 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9070
9071
9072
9073
9074
9075
9076 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9077 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9078 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
9079 $as_echo_n "(cached) " >&6
9080 else
9081 lt_cv_prog_compiler_c_o=no
9082 $RM -r conftest 2>/dev/null
9083 mkdir conftest
9084 cd conftest
9085 mkdir out
9086 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9087
9088 lt_compiler_flag="-o out/conftest2.$ac_objext"
9089 # Insert the option either (1) after the last *FLAGS variable, or
9090 # (2) before a word containing "conftest.", or (3) at the end.
9091 # Note that $ac_compile itself does not contain backslashes and begins
9092 # with a dollar sign (not a hyphen), so the echo should work correctly.
9093 lt_compile=`echo "$ac_compile" | $SED \
9094 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9095 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9096 -e 's:$: $lt_compiler_flag:'`
9097 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9098 (eval "$lt_compile" 2>out/conftest.err)
9099 ac_status=$?
9100 cat out/conftest.err >&5
9101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9102 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9103 then
9104 # The compiler can only warn and ignore the option if not recognized
9105 # So say no if there are warnings
9106 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9107 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9108 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9109 lt_cv_prog_compiler_c_o=yes
9110 fi
9111 fi
9112 chmod u+w . 2>&5
9113 $RM conftest*
9114 # SGI C++ compiler will create directory out/ii_files/ for
9115 # template instantiation
9116 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9117 $RM out/* && rmdir out
9118 cd ..
9119 $RM -r conftest
9120 $RM conftest*
9121
9122 fi
9123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9124 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9125
9126
9127
9128
9129 hard_links="nottested"
9130 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
9131 # do not overwrite the value of need_locks provided by the user
9132 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
9133 $as_echo_n "checking if we can lock with hard links... " >&6; }
9134 hard_links=yes
9135 $RM conftest*
9136 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9137 touch conftest.a
9138 ln conftest.a conftest.b 2>&5 || hard_links=no
9139 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
9141 $as_echo "$hard_links" >&6; }
9142 if test "$hard_links" = no; then
9143 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
9144 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
9145 need_locks=warn
9146 fi
9147 else
9148 need_locks=no
9149 fi
9150
9151
9152
9153
9154
9155
9156 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9157 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
9158
9159 runpath_var=
9160 allow_undefined_flag=
9161 always_export_symbols=no
9162 archive_cmds=
9163 archive_expsym_cmds=
9164 compiler_needs_object=no
9165 enable_shared_with_static_runtimes=no
9166 export_dynamic_flag_spec=
9167 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9168 hardcode_automatic=no
9169 hardcode_direct=no
9170 hardcode_direct_absolute=no
9171 hardcode_libdir_flag_spec=
9172 hardcode_libdir_flag_spec_ld=
9173 hardcode_libdir_separator=
9174 hardcode_minus_L=no
9175 hardcode_shlibpath_var=unsupported
9176 inherit_rpath=no
9177 link_all_deplibs=unknown
9178 module_cmds=
9179 module_expsym_cmds=
9180 old_archive_from_new_cmds=
9181 old_archive_from_expsyms_cmds=
9182 thread_safe_flag_spec=
9183 whole_archive_flag_spec=
9184 # include_expsyms should be a list of space-separated symbols to be *always*
9185 # included in the symbol list
9186 include_expsyms=
9187 # exclude_expsyms can be an extended regexp of symbols to exclude
9188 # it will be wrapped by ` (' and `)$', so one must not match beginning or
9189 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
9190 # as well as any symbol that contains `d'.
9191 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9192 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9193 # platforms (ab)use it in PIC code, but their linkers get confused if
9194 # the symbol is explicitly referenced. Since portable code cannot
9195 # rely on this symbol name, it's probably fine to never include it in
9196 # preloaded symbol tables.
9197 # Exclude shared library initialization/finalization symbols.
9198 extract_expsyms_cmds=
9199
9200 case $host_os in
9201 cygwin* | mingw* | pw32* | cegcc*)
9202 # FIXME: the MSVC++ port hasn't been tested in a loooong time
9203 # When not using gcc, we currently assume that we are using
9204 # Microsoft Visual C++.
9205 if test "$GCC" != yes; then
9206 with_gnu_ld=no
9207 fi
9208 ;;
9209 interix*)
9210 # we just hope/assume this is gcc and not c89 (= MSVC++)
9211 with_gnu_ld=yes
9212 ;;
9213 openbsd*)
9214 with_gnu_ld=no
9215 ;;
9216 esac
9217
9218 ld_shlibs=yes
9219
9220 # On some targets, GNU ld is compatible enough with the native linker
9221 # that we're better off using the native interface for both.
9222 lt_use_gnu_ld_interface=no
9223 if test "$with_gnu_ld" = yes; then
9224 case $host_os in
9225 aix*)
9226 # The AIX port of GNU ld has always aspired to compatibility
9227 # with the native linker. However, as the warning in the GNU ld
9228 # block says, versions before 2.19.5* couldn't really create working
9229 # shared libraries, regardless of the interface used.
9230 case `$LD -v 2>&1` in
9231 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
9232 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
9233 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
9234 *)
9235 lt_use_gnu_ld_interface=yes
9236 ;;
9237 esac
9238 ;;
9239 *)
9240 lt_use_gnu_ld_interface=yes
9241 ;;
9242 esac
9243 fi
9244
9245 if test "$lt_use_gnu_ld_interface" = yes; then
9246 # If archive_cmds runs LD, not CC, wlarc should be empty
9247 wlarc='${wl}'
9248
9249 # Set some defaults for GNU ld with shared library support. These
9250 # are reset later if shared libraries are not supported. Putting them
9251 # here allows them to be overridden if necessary.
9252 runpath_var=LD_RUN_PATH
9253 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9254 export_dynamic_flag_spec='${wl}--export-dynamic'
9255 # ancient GNU ld didn't support --whole-archive et. al.
9256 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9257 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9258 else
9259 whole_archive_flag_spec=
9260 fi
9261 supports_anon_versioning=no
9262 case `$LD -v 2>&1` in
9263 *GNU\ gold*) supports_anon_versioning=yes ;;
9264 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9265 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9266 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9267 *\ 2.11.*) ;; # other 2.11 versions
9268 *) supports_anon_versioning=yes ;;
9269 esac
9270
9271 # See if GNU ld supports shared libraries.
9272 case $host_os in
9273 aix[3-9]*)
9274 # On AIX/PPC, the GNU linker is very broken
9275 if test "$host_cpu" != ia64; then
9276 ld_shlibs=no
9277 cat <<_LT_EOF 1>&2
9278
9279 *** Warning: the GNU linker, at least up to release 2.19, is reported
9280 *** to be unable to reliably create shared libraries on AIX.
9281 *** Therefore, libtool is disabling shared libraries support. If you
9282 *** really care for shared libraries, you may want to install binutils
9283 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
9284 *** You will then need to restart the configuration process.
9285
9286 _LT_EOF
9287 fi
9288 ;;
9289
9290 amigaos*)
9291 case $host_cpu in
9292 powerpc)
9293 # see comment about AmigaOS4 .so support
9294 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9295 archive_expsym_cmds=''
9296 ;;
9297 m68k)
9298 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)'
9299 hardcode_libdir_flag_spec='-L$libdir'
9300 hardcode_minus_L=yes
9301 ;;
9302 esac
9303 ;;
9304
9305 beos*)
9306 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9307 allow_undefined_flag=unsupported
9308 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9309 # support --undefined. This deserves some investigation. FIXME
9310 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9311 else
9312 ld_shlibs=no
9313 fi
9314 ;;
9315
9316 cygwin* | mingw* | pw32* | cegcc*)
9317 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9318 # as there is no search path for DLLs.
9319 hardcode_libdir_flag_spec='-L$libdir'
9320 export_dynamic_flag_spec='${wl}--export-all-symbols'
9321 allow_undefined_flag=unsupported
9322 always_export_symbols=no
9323 enable_shared_with_static_runtimes=yes
9324 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9325
9326 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9327 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9328 # If the export-symbols file already is a .def file (1st line
9329 # is EXPORTS), use it as is; otherwise, prepend...
9330 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9331 cp $export_symbols $output_objdir/$soname.def;
9332 else
9333 echo EXPORTS > $output_objdir/$soname.def;
9334 cat $export_symbols >> $output_objdir/$soname.def;
9335 fi~
9336 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9337 else
9338 ld_shlibs=no
9339 fi
9340 ;;
9341
9342 haiku*)
9343 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9344 link_all_deplibs=yes
9345 ;;
9346
9347 interix[3-9]*)
9348 hardcode_direct=no
9349 hardcode_shlibpath_var=no
9350 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9351 export_dynamic_flag_spec='${wl}-E'
9352 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9353 # Instead, shared libraries are loaded at an image base (0x10000000 by
9354 # default) and relocated if they conflict, which is a slow very memory
9355 # consuming and fragmenting process. To avoid this, we pick a random,
9356 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9357 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
9358 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9359 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'
9360 ;;
9361
9362 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
9363 tmp_diet=no
9364 if test "$host_os" = linux-dietlibc; then
9365 case $cc_basename in
9366 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
9367 esac
9368 fi
9369 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9370 && test "$tmp_diet" = no
9371 then
9372 tmp_addflag=
9373 tmp_sharedflag='-shared'
9374 case $cc_basename,$host_cpu in
9375 pgcc*) # Portland Group C compiler
9376 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
9377 tmp_addflag=' $pic_flag'
9378 ;;
9379 pgf77* | pgf90* | pgf95* | pgfortran*)
9380 # Portland Group f77 and f90 compilers
9381 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
9382 tmp_addflag=' $pic_flag -Mnomain' ;;
9383 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
9384 tmp_addflag=' -i_dynamic' ;;
9385 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
9386 tmp_addflag=' -i_dynamic -nofor_main' ;;
9387 ifc* | ifort*) # Intel Fortran compiler
9388 tmp_addflag=' -nofor_main' ;;
9389 lf95*) # Lahey Fortran 8.1
9390 whole_archive_flag_spec=
9391 tmp_sharedflag='--shared' ;;
9392 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
9393 tmp_sharedflag='-qmkshrobj'
9394 tmp_addflag= ;;
9395 nvcc*) # Cuda Compiler Driver 2.2
9396 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
9397 compiler_needs_object=yes
9398 ;;
9399 esac
9400 case `$CC -V 2>&1 | sed 5q` in
9401 *Sun\ C*) # Sun C 5.9
9402 whole_archive_flag_spec='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
9403 compiler_needs_object=yes
9404 tmp_sharedflag='-G' ;;
9405 *Sun\ F*) # Sun Fortran 8.3
9406 tmp_sharedflag='-G' ;;
9407 esac
9408 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9409
9410 if test "x$supports_anon_versioning" = xyes; then
9411 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9412 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9413 echo "local: *; };" >> $output_objdir/$libname.ver~
9414 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9415 fi
9416
9417 case $cc_basename in
9418 xlf* | bgf* | bgxlf* | mpixlf*)
9419 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9420 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9421 hardcode_libdir_flag_spec=
9422 hardcode_libdir_flag_spec_ld='-rpath $libdir'
9423 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
9424 if test "x$supports_anon_versioning" = xyes; then
9425 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9426 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9427 echo "local: *; };" >> $output_objdir/$libname.ver~
9428 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9429 fi
9430 ;;
9431 esac
9432 else
9433 ld_shlibs=no
9434 fi
9435 ;;
9436
9437 netbsd*)
9438 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9439 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9440 wlarc=
9441 else
9442 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9443 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9444 fi
9445 ;;
9446
9447 solaris*)
9448 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9449 ld_shlibs=no
9450 cat <<_LT_EOF 1>&2
9451
9452 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
9453 *** create shared libraries on Solaris systems. Therefore, libtool
9454 *** is disabling shared libraries support. We urge you to upgrade GNU
9455 *** binutils to release 2.9.1 or newer. Another option is to modify
9456 *** your PATH or compiler configuration so that the native linker is
9457 *** used, and then restart.
9458
9459 _LT_EOF
9460 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9461 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9462 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9463 else
9464 ld_shlibs=no
9465 fi
9466 ;;
9467
9468 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9469 case `$LD -v 2>&1` in
9470 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9471 ld_shlibs=no
9472 cat <<_LT_EOF 1>&2
9473
9474 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9475 *** reliably create shared libraries on SCO systems. Therefore, libtool
9476 *** is disabling shared libraries support. We urge you to upgrade GNU
9477 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
9478 *** your PATH or compiler configuration so that the native linker is
9479 *** used, and then restart.
9480
9481 _LT_EOF
9482 ;;
9483 *)
9484 # For security reasons, it is highly recommended that you always
9485 # use absolute paths for naming shared libraries, and exclude the
9486 # DT_RUNPATH tag from executables and libraries. But doing so
9487 # requires that you compile everything twice, which is a pain.
9488 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9489 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9490 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9491 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9492 else
9493 ld_shlibs=no
9494 fi
9495 ;;
9496 esac
9497 ;;
9498
9499 sunos4*)
9500 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9501 wlarc=
9502 hardcode_direct=yes
9503 hardcode_shlibpath_var=no
9504 ;;
9505
9506 *)
9507 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9508 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9509 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9510 else
9511 ld_shlibs=no
9512 fi
9513 ;;
9514 esac
9515
9516 if test "$ld_shlibs" = no; then
9517 runpath_var=
9518 hardcode_libdir_flag_spec=
9519 export_dynamic_flag_spec=
9520 whole_archive_flag_spec=
9521 fi
9522 else
9523 # PORTME fill in a description of your system's linker (not GNU ld)
9524 case $host_os in
9525 aix3*)
9526 allow_undefined_flag=unsupported
9527 always_export_symbols=yes
9528 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'
9529 # Note: this linker hardcodes the directories in LIBPATH if there
9530 # are no directories specified by -L.
9531 hardcode_minus_L=yes
9532 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9533 # Neither direct hardcoding nor static linking is supported with a
9534 # broken collect2.
9535 hardcode_direct=unsupported
9536 fi
9537 ;;
9538
9539 aix[4-9]*)
9540 if test "$host_cpu" = ia64; then
9541 # On IA64, the linker does run time linking by default, so we don't
9542 # have to do anything special.
9543 aix_use_runtimelinking=no
9544 exp_sym_flag='-Bexport'
9545 no_entry_flag=""
9546 else
9547 # If we're using GNU nm, then we don't want the "-C" option.
9548 # -C means demangle to AIX nm, but means don't demangle with GNU nm
9549 # Also, AIX nm treats weak defined symbols like other global
9550 # defined symbols, whereas GNU nm marks them as "W".
9551 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9552 export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
9553 else
9554 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'
9555 fi
9556 aix_use_runtimelinking=no
9557
9558 # Test if we are trying to use run time linking or normal
9559 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9560 # need to do runtime linking.
9561 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9562 for ld_flag in $LDFLAGS; do
9563 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9564 aix_use_runtimelinking=yes
9565 break
9566 fi
9567 done
9568 ;;
9569 esac
9570
9571 exp_sym_flag='-bexport'
9572 no_entry_flag='-bnoentry'
9573 fi
9574
9575 # When large executables or shared objects are built, AIX ld can
9576 # have problems creating the table of contents. If linking a library
9577 # or program results in "error TOC overflow" add -mminimal-toc to
9578 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9579 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9580
9581 archive_cmds=''
9582 hardcode_direct=yes
9583 hardcode_direct_absolute=yes
9584 hardcode_libdir_separator=':'
9585 link_all_deplibs=yes
9586 file_list_spec='${wl}-f,'
9587
9588 if test "$GCC" = yes; then
9589 case $host_os in aix4.[012]|aix4.[012].*)
9590 # We only want to do this on AIX 4.2 and lower, the check
9591 # below for broken collect2 doesn't work under 4.3+
9592 collect2name=`${CC} -print-prog-name=collect2`
9593 if test -f "$collect2name" &&
9594 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9595 then
9596 # We have reworked collect2
9597 :
9598 else
9599 # We have old collect2
9600 hardcode_direct=unsupported
9601 # It fails to find uninstalled libraries when the uninstalled
9602 # path is not listed in the libpath. Setting hardcode_minus_L
9603 # to unsupported forces relinking
9604 hardcode_minus_L=yes
9605 hardcode_libdir_flag_spec='-L$libdir'
9606 hardcode_libdir_separator=
9607 fi
9608 ;;
9609 esac
9610 shared_flag='-shared'
9611 if test "$aix_use_runtimelinking" = yes; then
9612 shared_flag="$shared_flag "'${wl}-G'
9613 fi
9614 else
9615 # not using gcc
9616 if test "$host_cpu" = ia64; then
9617 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9618 # chokes on -Wl,-G. The following line is correct:
9619 shared_flag='-G'
9620 else
9621 if test "$aix_use_runtimelinking" = yes; then
9622 shared_flag='${wl}-G'
9623 else
9624 shared_flag='${wl}-bM:SRE'
9625 fi
9626 fi
9627 fi
9628
9629 export_dynamic_flag_spec='${wl}-bexpall'
9630 # It seems that -bexpall does not export symbols beginning with
9631 # underscore (_), so it is better to generate a list of symbols to export.
9632 always_export_symbols=yes
9633 if test "$aix_use_runtimelinking" = yes; then
9634 # Warning - without using the other runtime loading flags (-brtl),
9635 # -berok will link without error, but may produce a broken library.
9636 allow_undefined_flag='-berok'
9637 # Determine the default libpath from the value encoded in an
9638 # empty executable.
9639 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9640 /* end confdefs.h. */
9641
9642 int
9643 main ()
9644 {
9645
9646 ;
9647 return 0;
9648 }
9649 _ACEOF
9650 if ac_fn_c_try_link "$LINENO"; then :
9651
9652 lt_aix_libpath_sed='
9653 /Import File Strings/,/^$/ {
9654 /^0/ {
9655 s/^0 *\(.*\)$/\1/
9656 p
9657 }
9658 }'
9659 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9660 # Check for a 64-bit object if we didn't find anything.
9661 if test -z "$aix_libpath"; then
9662 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9663 fi
9664 fi
9665 rm -f core conftest.err conftest.$ac_objext \
9666 conftest$ac_exeext conftest.$ac_ext
9667 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9668
9669 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9670 archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
9671 else
9672 if test "$host_cpu" = ia64; then
9673 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9674 allow_undefined_flag="-z nodefs"
9675 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"
9676 else
9677 # Determine the default libpath from the value encoded in an
9678 # empty executable.
9679 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9680 /* end confdefs.h. */
9681
9682 int
9683 main ()
9684 {
9685
9686 ;
9687 return 0;
9688 }
9689 _ACEOF
9690 if ac_fn_c_try_link "$LINENO"; then :
9691
9692 lt_aix_libpath_sed='
9693 /Import File Strings/,/^$/ {
9694 /^0/ {
9695 s/^0 *\(.*\)$/\1/
9696 p
9697 }
9698 }'
9699 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9700 # Check for a 64-bit object if we didn't find anything.
9701 if test -z "$aix_libpath"; then
9702 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9703 fi
9704 fi
9705 rm -f core conftest.err conftest.$ac_objext \
9706 conftest$ac_exeext conftest.$ac_ext
9707 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9708
9709 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9710 # Warning - without using the other run time loading flags,
9711 # -berok will link without error, but may produce a broken library.
9712 no_undefined_flag=' ${wl}-bernotok'
9713 allow_undefined_flag=' ${wl}-berok'
9714 if test "$with_gnu_ld" = yes; then
9715 # We only use this code for GNU lds that support --whole-archive.
9716 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
9717 else
9718 # Exported symbols can be pulled into shared objects from archives
9719 whole_archive_flag_spec='$convenience'
9720 fi
9721 archive_cmds_need_lc=yes
9722 # This is similar to how AIX traditionally builds its shared libraries.
9723 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'
9724 fi
9725 fi
9726 ;;
9727
9728 amigaos*)
9729 case $host_cpu in
9730 powerpc)
9731 # see comment about AmigaOS4 .so support
9732 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9733 archive_expsym_cmds=''
9734 ;;
9735 m68k)
9736 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)'
9737 hardcode_libdir_flag_spec='-L$libdir'
9738 hardcode_minus_L=yes
9739 ;;
9740 esac
9741 ;;
9742
9743 bsdi[45]*)
9744 export_dynamic_flag_spec=-rdynamic
9745 ;;
9746
9747 cygwin* | mingw* | pw32* | cegcc*)
9748 # When not using gcc, we currently assume that we are using
9749 # Microsoft Visual C++.
9750 # hardcode_libdir_flag_spec is actually meaningless, as there is
9751 # no search path for DLLs.
9752 hardcode_libdir_flag_spec=' '
9753 allow_undefined_flag=unsupported
9754 # Tell ltmain to make .lib files, not .a files.
9755 libext=lib
9756 # Tell ltmain to make .dll files, not .so files.
9757 shrext_cmds=".dll"
9758 # FIXME: Setting linknames here is a bad hack.
9759 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
9760 # The linker will automatically build a .lib file if we build a DLL.
9761 old_archive_from_new_cmds='true'
9762 # FIXME: Should let the user specify the lib program.
9763 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9764 fix_srcfile_path='`cygpath -w "$srcfile"`'
9765 enable_shared_with_static_runtimes=yes
9766 ;;
9767
9768 darwin* | rhapsody*)
9769
9770
9771 archive_cmds_need_lc=no
9772 hardcode_direct=no
9773 hardcode_automatic=yes
9774 hardcode_shlibpath_var=unsupported
9775 if test "$lt_cv_ld_force_load" = "yes"; then
9776 whole_archive_flag_spec='`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience ${wl}-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`'
9777 else
9778 whole_archive_flag_spec=''
9779 fi
9780 link_all_deplibs=yes
9781 allow_undefined_flag="$_lt_dar_allow_undefined"
9782 case $cc_basename in
9783 ifort*) _lt_dar_can_shared=yes ;;
9784 *) _lt_dar_can_shared=$GCC ;;
9785 esac
9786 if test "$_lt_dar_can_shared" = "yes"; then
9787 output_verbose_link_cmd=func_echo_all
9788 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9789 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9790 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}"
9791 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}"
9792
9793 else
9794 ld_shlibs=no
9795 fi
9796
9797 ;;
9798
9799 dgux*)
9800 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9801 hardcode_libdir_flag_spec='-L$libdir'
9802 hardcode_shlibpath_var=no
9803 ;;
9804
9805 freebsd1*)
9806 ld_shlibs=no
9807 ;;
9808
9809 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9810 # support. Future versions do this automatically, but an explicit c++rt0.o
9811 # does not break anything, and helps significantly (at the cost of a little
9812 # extra space).
9813 freebsd2.2*)
9814 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9815 hardcode_libdir_flag_spec='-R$libdir'
9816 hardcode_direct=yes
9817 hardcode_shlibpath_var=no
9818 ;;
9819
9820 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9821 freebsd2*)
9822 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9823 hardcode_direct=yes
9824 hardcode_minus_L=yes
9825 hardcode_shlibpath_var=no
9826 ;;
9827
9828 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9829 freebsd* | dragonfly*)
9830 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
9831 hardcode_libdir_flag_spec='-R$libdir'
9832 hardcode_direct=yes
9833 hardcode_shlibpath_var=no
9834 ;;
9835
9836 hpux9*)
9837 if test "$GCC" = yes; then
9838 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'
9839 else
9840 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'
9841 fi
9842 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9843 hardcode_libdir_separator=:
9844 hardcode_direct=yes
9845
9846 # hardcode_minus_L: Not really in the search PATH,
9847 # but as the default location of the library.
9848 hardcode_minus_L=yes
9849 export_dynamic_flag_spec='${wl}-E'
9850 ;;
9851
9852 hpux10*)
9853 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9854 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9855 else
9856 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9857 fi
9858 if test "$with_gnu_ld" = no; then
9859 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9860 hardcode_libdir_flag_spec_ld='+b $libdir'
9861 hardcode_libdir_separator=:
9862 hardcode_direct=yes
9863 hardcode_direct_absolute=yes
9864 export_dynamic_flag_spec='${wl}-E'
9865 # hardcode_minus_L: Not really in the search PATH,
9866 # but as the default location of the library.
9867 hardcode_minus_L=yes
9868 fi
9869 ;;
9870
9871 hpux11*)
9872 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9873 case $host_cpu in
9874 hppa*64*)
9875 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9876 ;;
9877 ia64*)
9878 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9879 ;;
9880 *)
9881 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9882 ;;
9883 esac
9884 else
9885 case $host_cpu in
9886 hppa*64*)
9887 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9888 ;;
9889 ia64*)
9890 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9891 ;;
9892 *)
9893
9894 # Older versions of the 11.00 compiler do not understand -b yet
9895 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
9896 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
9897 $as_echo_n "checking if $CC understands -b... " >&6; }
9898 if test "${lt_cv_prog_compiler__b+set}" = set; then :
9899 $as_echo_n "(cached) " >&6
9900 else
9901 lt_cv_prog_compiler__b=no
9902 save_LDFLAGS="$LDFLAGS"
9903 LDFLAGS="$LDFLAGS -b"
9904 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9905 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9906 # The linker can only warn and ignore the option if not recognized
9907 # So say no if there are warnings
9908 if test -s conftest.err; then
9909 # Append any errors to the config.log.
9910 cat conftest.err 1>&5
9911 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9912 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9913 if diff conftest.exp conftest.er2 >/dev/null; then
9914 lt_cv_prog_compiler__b=yes
9915 fi
9916 else
9917 lt_cv_prog_compiler__b=yes
9918 fi
9919 fi
9920 $RM -r conftest*
9921 LDFLAGS="$save_LDFLAGS"
9922
9923 fi
9924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
9925 $as_echo "$lt_cv_prog_compiler__b" >&6; }
9926
9927 if test x"$lt_cv_prog_compiler__b" = xyes; then
9928 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9929 else
9930 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9931 fi
9932
9933 ;;
9934 esac
9935 fi
9936 if test "$with_gnu_ld" = no; then
9937 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9938 hardcode_libdir_separator=:
9939
9940 case $host_cpu in
9941 hppa*64*|ia64*)
9942 hardcode_direct=no
9943 hardcode_shlibpath_var=no
9944 ;;
9945 *)
9946 hardcode_direct=yes
9947 hardcode_direct_absolute=yes
9948 export_dynamic_flag_spec='${wl}-E'
9949
9950 # hardcode_minus_L: Not really in the search PATH,
9951 # but as the default location of the library.
9952 hardcode_minus_L=yes
9953 ;;
9954 esac
9955 fi
9956 ;;
9957
9958 irix5* | irix6* | nonstopux*)
9959 if test "$GCC" = yes; then
9960 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
9961 # Try to use the -exported_symbol ld option, if it does not
9962 # work, assume that -exports_file does not work either and
9963 # implicitly export all symbols.
9964 save_LDFLAGS="$LDFLAGS"
9965 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
9966 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9967 /* end confdefs.h. */
9968 int foo(void) {}
9969 _ACEOF
9970 if ac_fn_c_try_link "$LINENO"; then :
9971 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'
9972
9973 fi
9974 rm -f core conftest.err conftest.$ac_objext \
9975 conftest$ac_exeext conftest.$ac_ext
9976 LDFLAGS="$save_LDFLAGS"
9977 else
9978 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
9979 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib'
9980 fi
9981 archive_cmds_need_lc='no'
9982 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9983 hardcode_libdir_separator=:
9984 inherit_rpath=yes
9985 link_all_deplibs=yes
9986 ;;
9987
9988 netbsd*)
9989 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9990 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
9991 else
9992 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
9993 fi
9994 hardcode_libdir_flag_spec='-R$libdir'
9995 hardcode_direct=yes
9996 hardcode_shlibpath_var=no
9997 ;;
9998
9999 newsos6)
10000 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10001 hardcode_direct=yes
10002 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10003 hardcode_libdir_separator=:
10004 hardcode_shlibpath_var=no
10005 ;;
10006
10007 *nto* | *qnx*)
10008 ;;
10009
10010 openbsd*)
10011 if test -f /usr/libexec/ld.so; then
10012 hardcode_direct=yes
10013 hardcode_shlibpath_var=no
10014 hardcode_direct_absolute=yes
10015 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10016 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10017 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
10018 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10019 export_dynamic_flag_spec='${wl}-E'
10020 else
10021 case $host_os in
10022 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
10023 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10024 hardcode_libdir_flag_spec='-R$libdir'
10025 ;;
10026 *)
10027 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10028 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10029 ;;
10030 esac
10031 fi
10032 else
10033 ld_shlibs=no
10034 fi
10035 ;;
10036
10037 os2*)
10038 hardcode_libdir_flag_spec='-L$libdir'
10039 hardcode_minus_L=yes
10040 allow_undefined_flag=unsupported
10041 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'
10042 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
10043 ;;
10044
10045 osf3*)
10046 if test "$GCC" = yes; then
10047 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10048 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
10049 else
10050 allow_undefined_flag=' -expect_unresolved \*'
10051 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
10052 fi
10053 archive_cmds_need_lc='no'
10054 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10055 hardcode_libdir_separator=:
10056 ;;
10057
10058 osf4* | osf5*) # as osf3* with the addition of -msym flag
10059 if test "$GCC" = yes; then
10060 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10061 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
10062 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10063 else
10064 allow_undefined_flag=' -expect_unresolved \*'
10065 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
10066 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~
10067 $CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp'
10068
10069 # Both c and cxx compiler support -rpath directly
10070 hardcode_libdir_flag_spec='-rpath $libdir'
10071 fi
10072 archive_cmds_need_lc='no'
10073 hardcode_libdir_separator=:
10074 ;;
10075
10076 solaris*)
10077 no_undefined_flag=' -z defs'
10078 if test "$GCC" = yes; then
10079 wlarc='${wl}'
10080 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10081 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10082 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10083 else
10084 case `$CC -V 2>&1` in
10085 *"Compilers 5.0"*)
10086 wlarc=''
10087 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
10088 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10089 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10090 ;;
10091 *)
10092 wlarc='${wl}'
10093 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10094 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10095 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10096 ;;
10097 esac
10098 fi
10099 hardcode_libdir_flag_spec='-R$libdir'
10100 hardcode_shlibpath_var=no
10101 case $host_os in
10102 solaris2.[0-5] | solaris2.[0-5].*) ;;
10103 *)
10104 # The compiler driver will combine and reorder linker options,
10105 # but understands `-z linker_flag'. GCC discards it without `$wl',
10106 # but is careful enough not to reorder.
10107 # Supported since Solaris 2.6 (maybe 2.5.1?)
10108 if test "$GCC" = yes; then
10109 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10110 else
10111 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10112 fi
10113 ;;
10114 esac
10115 link_all_deplibs=yes
10116 ;;
10117
10118 sunos4*)
10119 if test "x$host_vendor" = xsequent; then
10120 # Use $CC to link under sequent, because it throws in some extra .o
10121 # files that make .init and .fini sections work.
10122 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10123 else
10124 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10125 fi
10126 hardcode_libdir_flag_spec='-L$libdir'
10127 hardcode_direct=yes
10128 hardcode_minus_L=yes
10129 hardcode_shlibpath_var=no
10130 ;;
10131
10132 sysv4)
10133 case $host_vendor in
10134 sni)
10135 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10136 hardcode_direct=yes # is this really true???
10137 ;;
10138 siemens)
10139 ## LD is ld it makes a PLAMLIB
10140 ## CC just makes a GrossModule.
10141 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10142 reload_cmds='$CC -r -o $output$reload_objs'
10143 hardcode_direct=no
10144 ;;
10145 motorola)
10146 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10147 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10148 ;;
10149 esac
10150 runpath_var='LD_RUN_PATH'
10151 hardcode_shlibpath_var=no
10152 ;;
10153
10154 sysv4.3*)
10155 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10156 hardcode_shlibpath_var=no
10157 export_dynamic_flag_spec='-Bexport'
10158 ;;
10159
10160 sysv4*MP*)
10161 if test -d /usr/nec; then
10162 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10163 hardcode_shlibpath_var=no
10164 runpath_var=LD_RUN_PATH
10165 hardcode_runpath_var=yes
10166 ld_shlibs=yes
10167 fi
10168 ;;
10169
10170 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10171 no_undefined_flag='${wl}-z,text'
10172 archive_cmds_need_lc=no
10173 hardcode_shlibpath_var=no
10174 runpath_var='LD_RUN_PATH'
10175
10176 if test "$GCC" = yes; then
10177 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10178 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10179 else
10180 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10181 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10182 fi
10183 ;;
10184
10185 sysv5* | sco3.2v5* | sco5v6*)
10186 # Note: We can NOT use -z defs as we might desire, because we do not
10187 # link with -lc, and that would cause any symbols used from libc to
10188 # always be unresolved, which means just about no library would
10189 # ever link correctly. If we're not using GNU ld we use -z text
10190 # though, which does catch some bad symbols but isn't as heavy-handed
10191 # as -z defs.
10192 no_undefined_flag='${wl}-z,text'
10193 allow_undefined_flag='${wl}-z,nodefs'
10194 archive_cmds_need_lc=no
10195 hardcode_shlibpath_var=no
10196 hardcode_libdir_flag_spec='${wl}-R,$libdir'
10197 hardcode_libdir_separator=':'
10198 link_all_deplibs=yes
10199 export_dynamic_flag_spec='${wl}-Bexport'
10200 runpath_var='LD_RUN_PATH'
10201
10202 if test "$GCC" = yes; then
10203 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10204 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10205 else
10206 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10207 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10208 fi
10209 ;;
10210
10211 uts4*)
10212 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10213 hardcode_libdir_flag_spec='-L$libdir'
10214 hardcode_shlibpath_var=no
10215 ;;
10216
10217 *)
10218 ld_shlibs=no
10219 ;;
10220 esac
10221
10222 if test x$host_vendor = xsni; then
10223 case $host in
10224 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10225 export_dynamic_flag_spec='${wl}-Blargedynsym'
10226 ;;
10227 esac
10228 fi
10229 fi
10230
10231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10232 $as_echo "$ld_shlibs" >&6; }
10233 test "$ld_shlibs" = no && can_build_shared=no
10234
10235 with_gnu_ld=$with_gnu_ld
10236
10237
10238
10239
10240
10241
10242
10243
10244
10245
10246
10247
10248
10249
10250
10251 #
10252 # Do we need to explicitly link libc?
10253 #
10254 case "x$archive_cmds_need_lc" in
10255 x|xyes)
10256 # Assume -lc should be added
10257 archive_cmds_need_lc=yes
10258
10259 if test "$enable_shared" = yes && test "$GCC" = yes; then
10260 case $archive_cmds in
10261 *'~'*)
10262 # FIXME: we may have to deal with multi-command sequences.
10263 ;;
10264 '$CC '*)
10265 # Test whether the compiler implicitly links with -lc since on some
10266 # systems, -lgcc has to come before -lc. If gcc already passes -lc
10267 # to ld, don't add -lc before -lgcc.
10268 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10269 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
10270 if test "${lt_cv_archive_cmds_need_lc+set}" = set; then :
10271 $as_echo_n "(cached) " >&6
10272 else
10273 $RM conftest*
10274 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10275
10276 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10277 (eval $ac_compile) 2>&5
10278 ac_status=$?
10279 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10280 test $ac_status = 0; } 2>conftest.err; then
10281 soname=conftest
10282 lib=conftest
10283 libobjs=conftest.$ac_objext
10284 deplibs=
10285 wl=$lt_prog_compiler_wl
10286 pic_flag=$lt_prog_compiler_pic
10287 compiler_flags=-v
10288 linker_flags=-v
10289 verstring=
10290 output_objdir=.
10291 libname=conftest
10292 lt_save_allow_undefined_flag=$allow_undefined_flag
10293 allow_undefined_flag=
10294 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
10295 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
10296 ac_status=$?
10297 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10298 test $ac_status = 0; }
10299 then
10300 lt_cv_archive_cmds_need_lc=no
10301 else
10302 lt_cv_archive_cmds_need_lc=yes
10303 fi
10304 allow_undefined_flag=$lt_save_allow_undefined_flag
10305 else
10306 cat conftest.err 1>&5
10307 fi
10308 $RM conftest*
10309
10310 fi
10311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
10312 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
10313 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
10314 ;;
10315 esac
10316 fi
10317 ;;
10318 esac
10319
10320
10321
10322
10323
10324
10325
10326
10327
10328
10329
10330
10331
10332
10333
10334
10335
10336
10337
10338
10339
10340
10341
10342
10343
10344
10345
10346
10347
10348
10349
10350
10351
10352
10353
10354
10355
10356
10357
10358
10359
10360
10361
10362
10363
10364
10365
10366
10367
10368
10369
10370
10371
10372
10373
10374
10375
10376
10377
10378
10379
10380
10381
10382
10383
10384
10385
10386
10387
10388
10389
10390
10391
10392
10393
10394
10395
10396
10397
10398
10399
10400
10401
10402
10403
10404
10405
10406
10407
10408
10409
10410
10411
10412
10413
10414
10415
10416
10417
10418
10419
10420
10421
10422
10423
10424
10425
10426
10427
10428
10429
10430
10431
10432
10433
10434
10435
10436
10437
10438
10439
10440
10441
10442
10443
10444
10445
10446
10447
10448
10449
10450
10451
10452
10453
10454
10455
10456
10457
10458
10459
10460
10461
10462
10463
10464
10465
10466
10467
10468
10469
10470
10471
10472
10473
10474
10475
10476 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10477 $as_echo_n "checking dynamic linker characteristics... " >&6; }
10478
10479 if test "$GCC" = yes; then
10480 case $host_os in
10481 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
10482 *) lt_awk_arg="/^libraries:/" ;;
10483 esac
10484 case $host_os in
10485 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
10486 *) lt_sed_strip_eq="s,=/,/,g" ;;
10487 esac
10488 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
10489 case $lt_search_path_spec in
10490 *\;*)
10491 # if the path contains ";" then we assume it to be the separator
10492 # otherwise default to the standard path separator (i.e. ":") - it is
10493 # assumed that no part of a normal pathname contains ";" but that should
10494 # okay in the real world where ";" in dirpaths is itself problematic.
10495 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
10496 ;;
10497 *)
10498 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
10499 ;;
10500 esac
10501 # Ok, now we have the path, separated by spaces, we can step through it
10502 # and add multilib dir if necessary.
10503 lt_tmp_lt_search_path_spec=
10504 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10505 for lt_sys_path in $lt_search_path_spec; do
10506 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
10507 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
10508 else
10509 test -d "$lt_sys_path" && \
10510 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10511 fi
10512 done
10513 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
10514 BEGIN {RS=" "; FS="/|\n";} {
10515 lt_foo="";
10516 lt_count=0;
10517 for (lt_i = NF; lt_i > 0; lt_i--) {
10518 if ($lt_i != "" && $lt_i != ".") {
10519 if ($lt_i == "..") {
10520 lt_count++;
10521 } else {
10522 if (lt_count == 0) {
10523 lt_foo="/" $lt_i lt_foo;
10524 } else {
10525 lt_count--;
10526 }
10527 }
10528 }
10529 }
10530 if (lt_foo != "") { lt_freq[lt_foo]++; }
10531 if (lt_freq[lt_foo] == 1) { print lt_foo; }
10532 }'`
10533 # AWK program above erroneously prepends '/' to C:/dos/paths
10534 # for these hosts.
10535 case $host_os in
10536 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
10537 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
10538 esac
10539 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
10540 else
10541 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10542 fi
10543 library_names_spec=
10544 libname_spec='lib$name'
10545 soname_spec=
10546 shrext_cmds=".so"
10547 postinstall_cmds=
10548 postuninstall_cmds=
10549 finish_cmds=
10550 finish_eval=
10551 shlibpath_var=
10552 shlibpath_overrides_runpath=unknown
10553 version_type=none
10554 dynamic_linker="$host_os ld.so"
10555 sys_lib_dlsearch_path_spec="/lib /usr/lib"
10556 need_lib_prefix=unknown
10557 hardcode_into_libs=no
10558
10559 # when you set need_version to no, make sure it does not cause -set_version
10560 # flags to be left without arguments
10561 need_version=unknown
10562
10563 case $host_os in
10564 aix3*)
10565 version_type=linux
10566 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10567 shlibpath_var=LIBPATH
10568
10569 # AIX 3 has no versioning support, so we append a major version to the name.
10570 soname_spec='${libname}${release}${shared_ext}$major'
10571 ;;
10572
10573 aix[4-9]*)
10574 version_type=linux
10575 need_lib_prefix=no
10576 need_version=no
10577 hardcode_into_libs=yes
10578 if test "$host_cpu" = ia64; then
10579 # AIX 5 supports IA64
10580 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10581 shlibpath_var=LD_LIBRARY_PATH
10582 else
10583 # With GCC up to 2.95.x, collect2 would create an import file
10584 # for dependence libraries. The import file would start with
10585 # the line `#! .'. This would cause the generated library to
10586 # depend on `.', always an invalid library. This was fixed in
10587 # development snapshots of GCC prior to 3.0.
10588 case $host_os in
10589 aix4 | aix4.[01] | aix4.[01].*)
10590 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10591 echo ' yes '
10592 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
10593 :
10594 else
10595 can_build_shared=no
10596 fi
10597 ;;
10598 esac
10599 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10600 # soname into executable. Probably we can add versioning support to
10601 # collect2, so additional links can be useful in future.
10602 if test "$aix_use_runtimelinking" = yes; then
10603 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10604 # instead of lib<name>.a to let people know that these are not
10605 # typical AIX shared libraries.
10606 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10607 else
10608 # We preserve .a as extension for shared libraries through AIX4.2
10609 # and later when we are not doing run time linking.
10610 library_names_spec='${libname}${release}.a $libname.a'
10611 soname_spec='${libname}${release}${shared_ext}$major'
10612 fi
10613 shlibpath_var=LIBPATH
10614 fi
10615 ;;
10616
10617 amigaos*)
10618 case $host_cpu in
10619 powerpc)
10620 # Since July 2007 AmigaOS4 officially supports .so libraries.
10621 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10622 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10623 ;;
10624 m68k)
10625 library_names_spec='$libname.ixlibrary $libname.a'
10626 # Create ${libname}_ixlibrary.a entries in /sys/libs.
10627 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''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'
10628 ;;
10629 esac
10630 ;;
10631
10632 beos*)
10633 library_names_spec='${libname}${shared_ext}'
10634 dynamic_linker="$host_os ld.so"
10635 shlibpath_var=LIBRARY_PATH
10636 ;;
10637
10638 bsdi[45]*)
10639 version_type=linux
10640 need_version=no
10641 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10642 soname_spec='${libname}${release}${shared_ext}$major'
10643 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10644 shlibpath_var=LD_LIBRARY_PATH
10645 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10646 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10647 # the default ld.so.conf also contains /usr/contrib/lib and
10648 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10649 # libtool to hard-code these into programs
10650 ;;
10651
10652 cygwin* | mingw* | pw32* | cegcc*)
10653 version_type=windows
10654 shrext_cmds=".dll"
10655 need_version=no
10656 need_lib_prefix=no
10657
10658 case $GCC,$host_os in
10659 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
10660 library_names_spec='$libname.dll.a'
10661 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10662 postinstall_cmds='base_file=`basename \${file}`~
10663 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10664 dldir=$destdir/`dirname \$dlpath`~
10665 test -d \$dldir || mkdir -p \$dldir~
10666 $install_prog $dir/$dlname \$dldir/$dlname~
10667 chmod a+x \$dldir/$dlname~
10668 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10669 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10670 fi'
10671 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10672 dlpath=$dir/\$dldll~
10673 $RM \$dlpath'
10674 shlibpath_overrides_runpath=yes
10675
10676 case $host_os in
10677 cygwin*)
10678 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10679 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10680
10681 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
10682 ;;
10683 mingw* | cegcc*)
10684 # MinGW DLLs use traditional 'lib' prefix
10685 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10686 ;;
10687 pw32*)
10688 # pw32 DLLs use 'pw' prefix rather than 'lib'
10689 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10690 ;;
10691 esac
10692 ;;
10693
10694 *)
10695 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10696 ;;
10697 esac
10698 dynamic_linker='Win32 ld.exe'
10699 # FIXME: first we should search . and the directory the executable is in
10700 shlibpath_var=PATH
10701 ;;
10702
10703 darwin* | rhapsody*)
10704 dynamic_linker="$host_os dyld"
10705 version_type=darwin
10706 need_lib_prefix=no
10707 need_version=no
10708 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10709 soname_spec='${libname}${release}${major}$shared_ext'
10710 shlibpath_overrides_runpath=yes
10711 shlibpath_var=DYLD_LIBRARY_PATH
10712 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10713
10714 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10715 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10716 ;;
10717
10718 dgux*)
10719 version_type=linux
10720 need_lib_prefix=no
10721 need_version=no
10722 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10723 soname_spec='${libname}${release}${shared_ext}$major'
10724 shlibpath_var=LD_LIBRARY_PATH
10725 ;;
10726
10727 freebsd1*)
10728 dynamic_linker=no
10729 ;;
10730
10731 freebsd* | dragonfly*)
10732 # DragonFly does not have aout. When/if they implement a new
10733 # versioning mechanism, adjust this.
10734 if test -x /usr/bin/objformat; then
10735 objformat=`/usr/bin/objformat`
10736 else
10737 case $host_os in
10738 freebsd[123]*) objformat=aout ;;
10739 *) objformat=elf ;;
10740 esac
10741 fi
10742 version_type=freebsd-$objformat
10743 case $version_type in
10744 freebsd-elf*)
10745 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10746 need_version=no
10747 need_lib_prefix=no
10748 ;;
10749 freebsd-*)
10750 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10751 need_version=yes
10752 ;;
10753 esac
10754 shlibpath_var=LD_LIBRARY_PATH
10755 case $host_os in
10756 freebsd2*)
10757 shlibpath_overrides_runpath=yes
10758 ;;
10759 freebsd3.[01]* | freebsdelf3.[01]*)
10760 shlibpath_overrides_runpath=yes
10761 hardcode_into_libs=yes
10762 ;;
10763 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10764 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10765 shlibpath_overrides_runpath=no
10766 hardcode_into_libs=yes
10767 ;;
10768 *) # from 4.6 on, and DragonFly
10769 shlibpath_overrides_runpath=yes
10770 hardcode_into_libs=yes
10771 ;;
10772 esac
10773 ;;
10774
10775 gnu*)
10776 version_type=linux
10777 need_lib_prefix=no
10778 need_version=no
10779 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10780 soname_spec='${libname}${release}${shared_ext}$major'
10781 shlibpath_var=LD_LIBRARY_PATH
10782 hardcode_into_libs=yes
10783 ;;
10784
10785 haiku*)
10786 version_type=linux
10787 need_lib_prefix=no
10788 need_version=no
10789 dynamic_linker="$host_os runtime_loader"
10790 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10791 soname_spec='${libname}${release}${shared_ext}$major'
10792 shlibpath_var=LIBRARY_PATH
10793 shlibpath_overrides_runpath=yes
10794 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
10795 hardcode_into_libs=yes
10796 ;;
10797
10798 hpux9* | hpux10* | hpux11*)
10799 # Give a soname corresponding to the major version so that dld.sl refuses to
10800 # link against other versions.
10801 version_type=sunos
10802 need_lib_prefix=no
10803 need_version=no
10804 case $host_cpu in
10805 ia64*)
10806 shrext_cmds='.so'
10807 hardcode_into_libs=yes
10808 dynamic_linker="$host_os dld.so"
10809 shlibpath_var=LD_LIBRARY_PATH
10810 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10811 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10812 soname_spec='${libname}${release}${shared_ext}$major'
10813 if test "X$HPUX_IA64_MODE" = X32; then
10814 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10815 else
10816 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10817 fi
10818 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10819 ;;
10820 hppa*64*)
10821 shrext_cmds='.sl'
10822 hardcode_into_libs=yes
10823 dynamic_linker="$host_os dld.sl"
10824 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10825 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10826 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10827 soname_spec='${libname}${release}${shared_ext}$major'
10828 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10829 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10830 ;;
10831 *)
10832 shrext_cmds='.sl'
10833 dynamic_linker="$host_os dld.sl"
10834 shlibpath_var=SHLIB_PATH
10835 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10836 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10837 soname_spec='${libname}${release}${shared_ext}$major'
10838 ;;
10839 esac
10840 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
10841 postinstall_cmds='chmod 555 $lib'
10842 # or fails outright, so override atomically:
10843 install_override_mode=555
10844 ;;
10845
10846 interix[3-9]*)
10847 version_type=linux
10848 need_lib_prefix=no
10849 need_version=no
10850 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10851 soname_spec='${libname}${release}${shared_ext}$major'
10852 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10853 shlibpath_var=LD_LIBRARY_PATH
10854 shlibpath_overrides_runpath=no
10855 hardcode_into_libs=yes
10856 ;;
10857
10858 irix5* | irix6* | nonstopux*)
10859 case $host_os in
10860 nonstopux*) version_type=nonstopux ;;
10861 *)
10862 if test "$lt_cv_prog_gnu_ld" = yes; then
10863 version_type=linux
10864 else
10865 version_type=irix
10866 fi ;;
10867 esac
10868 need_lib_prefix=no
10869 need_version=no
10870 soname_spec='${libname}${release}${shared_ext}$major'
10871 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10872 case $host_os in
10873 irix5* | nonstopux*)
10874 libsuff= shlibsuff=
10875 ;;
10876 *)
10877 case $LD in # libtool.m4 will add one of these switches to LD
10878 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10879 libsuff= shlibsuff= libmagic=32-bit;;
10880 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10881 libsuff=32 shlibsuff=N32 libmagic=N32;;
10882 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10883 libsuff=64 shlibsuff=64 libmagic=64-bit;;
10884 *) libsuff= shlibsuff= libmagic=never-match;;
10885 esac
10886 ;;
10887 esac
10888 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10889 shlibpath_overrides_runpath=no
10890 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10891 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10892 hardcode_into_libs=yes
10893 ;;
10894
10895 # No shared lib support for Linux oldld, aout, or coff.
10896 linux*oldld* | linux*aout* | linux*coff*)
10897 dynamic_linker=no
10898 ;;
10899
10900 # This must be Linux ELF.
10901 linux* | k*bsd*-gnu | kopensolaris*-gnu)
10902 version_type=linux
10903 need_lib_prefix=no
10904 need_version=no
10905 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10906 soname_spec='${libname}${release}${shared_ext}$major'
10907 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10908 shlibpath_var=LD_LIBRARY_PATH
10909 shlibpath_overrides_runpath=no
10910
10911 # Some binutils ld are patched to set DT_RUNPATH
10912 if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
10913 $as_echo_n "(cached) " >&6
10914 else
10915 lt_cv_shlibpath_overrides_runpath=no
10916 save_LDFLAGS=$LDFLAGS
10917 save_libdir=$libdir
10918 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10919 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10920 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10921 /* end confdefs.h. */
10922
10923 int
10924 main ()
10925 {
10926
10927 ;
10928 return 0;
10929 }
10930 _ACEOF
10931 if ac_fn_c_try_link "$LINENO"; then :
10932 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
10933 lt_cv_shlibpath_overrides_runpath=yes
10934 fi
10935 fi
10936 rm -f core conftest.err conftest.$ac_objext \
10937 conftest$ac_exeext conftest.$ac_ext
10938 LDFLAGS=$save_LDFLAGS
10939 libdir=$save_libdir
10940
10941 fi
10942
10943 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
10944
10945 # This implies no fast_install, which is unacceptable.
10946 # Some rework will be needed to allow for fast_install
10947 # before this can be enabled.
10948 hardcode_into_libs=yes
10949
10950 # Append ld.so.conf contents to the search path
10951 if test -f /etc/ld.so.conf; then
10952 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;s/"//g;/^$/d' | tr '\n' ' '`
10953 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10954 fi
10955
10956 # We used to test for /lib/ld.so.1 and disable shared libraries on
10957 # powerpc, because MkLinux only supported shared libraries with the
10958 # GNU dynamic linker. Since this was broken with cross compilers,
10959 # most powerpc-linux boxes support dynamic linking these days and
10960 # people can always --disable-shared, the test was removed, and we
10961 # assume the GNU/Linux dynamic linker is in use.
10962 dynamic_linker='GNU/Linux ld.so'
10963 ;;
10964
10965 netbsd*)
10966 version_type=sunos
10967 need_lib_prefix=no
10968 need_version=no
10969 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10970 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10971 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10972 dynamic_linker='NetBSD (a.out) ld.so'
10973 else
10974 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10975 soname_spec='${libname}${release}${shared_ext}$major'
10976 dynamic_linker='NetBSD ld.elf_so'
10977 fi
10978 shlibpath_var=LD_LIBRARY_PATH
10979 shlibpath_overrides_runpath=yes
10980 hardcode_into_libs=yes
10981 ;;
10982
10983 newsos6)
10984 version_type=linux
10985 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10986 shlibpath_var=LD_LIBRARY_PATH
10987 shlibpath_overrides_runpath=yes
10988 ;;
10989
10990 *nto* | *qnx*)
10991 version_type=qnx
10992 need_lib_prefix=no
10993 need_version=no
10994 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10995 soname_spec='${libname}${release}${shared_ext}$major'
10996 shlibpath_var=LD_LIBRARY_PATH
10997 shlibpath_overrides_runpath=no
10998 hardcode_into_libs=yes
10999 dynamic_linker='ldqnx.so'
11000 ;;
11001
11002 openbsd*)
11003 version_type=sunos
11004 sys_lib_dlsearch_path_spec="/usr/lib"
11005 need_lib_prefix=no
11006 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
11007 case $host_os in
11008 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
11009 *) need_version=no ;;
11010 esac
11011 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11012 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11013 shlibpath_var=LD_LIBRARY_PATH
11014 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11015 case $host_os in
11016 openbsd2.[89] | openbsd2.[89].*)
11017 shlibpath_overrides_runpath=no
11018 ;;
11019 *)
11020 shlibpath_overrides_runpath=yes
11021 ;;
11022 esac
11023 else
11024 shlibpath_overrides_runpath=yes
11025 fi
11026 ;;
11027
11028 os2*)
11029 libname_spec='$name'
11030 shrext_cmds=".dll"
11031 need_lib_prefix=no
11032 library_names_spec='$libname${shared_ext} $libname.a'
11033 dynamic_linker='OS/2 ld.exe'
11034 shlibpath_var=LIBPATH
11035 ;;
11036
11037 osf3* | osf4* | osf5*)
11038 version_type=osf
11039 need_lib_prefix=no
11040 need_version=no
11041 soname_spec='${libname}${release}${shared_ext}$major'
11042 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11043 shlibpath_var=LD_LIBRARY_PATH
11044 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11045 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11046 ;;
11047
11048 rdos*)
11049 dynamic_linker=no
11050 ;;
11051
11052 solaris*)
11053 version_type=linux
11054 need_lib_prefix=no
11055 need_version=no
11056 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11057 soname_spec='${libname}${release}${shared_ext}$major'
11058 shlibpath_var=LD_LIBRARY_PATH
11059 shlibpath_overrides_runpath=yes
11060 hardcode_into_libs=yes
11061 # ldd complains unless libraries are executable
11062 postinstall_cmds='chmod +x $lib'
11063 ;;
11064
11065 sunos4*)
11066 version_type=sunos
11067 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11068 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11069 shlibpath_var=LD_LIBRARY_PATH
11070 shlibpath_overrides_runpath=yes
11071 if test "$with_gnu_ld" = yes; then
11072 need_lib_prefix=no
11073 fi
11074 need_version=yes
11075 ;;
11076
11077 sysv4 | sysv4.3*)
11078 version_type=linux
11079 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11080 soname_spec='${libname}${release}${shared_ext}$major'
11081 shlibpath_var=LD_LIBRARY_PATH
11082 case $host_vendor in
11083 sni)
11084 shlibpath_overrides_runpath=no
11085 need_lib_prefix=no
11086 runpath_var=LD_RUN_PATH
11087 ;;
11088 siemens)
11089 need_lib_prefix=no
11090 ;;
11091 motorola)
11092 need_lib_prefix=no
11093 need_version=no
11094 shlibpath_overrides_runpath=no
11095 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11096 ;;
11097 esac
11098 ;;
11099
11100 sysv4*MP*)
11101 if test -d /usr/nec ;then
11102 version_type=linux
11103 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11104 soname_spec='$libname${shared_ext}.$major'
11105 shlibpath_var=LD_LIBRARY_PATH
11106 fi
11107 ;;
11108
11109 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11110 version_type=freebsd-elf
11111 need_lib_prefix=no
11112 need_version=no
11113 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11114 soname_spec='${libname}${release}${shared_ext}$major'
11115 shlibpath_var=LD_LIBRARY_PATH
11116 shlibpath_overrides_runpath=yes
11117 hardcode_into_libs=yes
11118 if test "$with_gnu_ld" = yes; then
11119 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11120 else
11121 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11122 case $host_os in
11123 sco3.2v5*)
11124 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11125 ;;
11126 esac
11127 fi
11128 sys_lib_dlsearch_path_spec='/usr/lib'
11129 ;;
11130
11131 tpf*)
11132 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
11133 version_type=linux
11134 need_lib_prefix=no
11135 need_version=no
11136 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11137 shlibpath_var=LD_LIBRARY_PATH
11138 shlibpath_overrides_runpath=no
11139 hardcode_into_libs=yes
11140 ;;
11141
11142 uts4*)
11143 version_type=linux
11144 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11145 soname_spec='${libname}${release}${shared_ext}$major'
11146 shlibpath_var=LD_LIBRARY_PATH
11147 ;;
11148
11149 *)
11150 dynamic_linker=no
11151 ;;
11152 esac
11153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
11154 $as_echo "$dynamic_linker" >&6; }
11155 test "$dynamic_linker" = no && can_build_shared=no
11156
11157 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11158 if test "$GCC" = yes; then
11159 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11160 fi
11161
11162 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
11163 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
11164 fi
11165 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
11166 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
11167 fi
11168
11169
11170
11171
11172
11173
11174
11175
11176
11177
11178
11179
11180
11181
11182
11183
11184
11185
11186
11187
11188
11189
11190
11191
11192
11193
11194
11195
11196
11197
11198
11199
11200
11201
11202
11203
11204
11205
11206
11207
11208
11209
11210
11211
11212
11213
11214
11215
11216
11217
11218
11219
11220
11221
11222
11223
11224
11225
11226
11227
11228
11229
11230
11231
11232
11233
11234
11235
11236
11237
11238
11239
11240
11241
11242
11243
11244
11245
11246
11247
11248
11249
11250
11251
11252
11253
11254
11255
11256
11257
11258
11259
11260 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
11261 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
11262 hardcode_action=
11263 if test -n "$hardcode_libdir_flag_spec" ||
11264 test -n "$runpath_var" ||
11265 test "X$hardcode_automatic" = "Xyes" ; then
11266
11267 # We can hardcode non-existent directories.
11268 if test "$hardcode_direct" != no &&
11269 # If the only mechanism to avoid hardcoding is shlibpath_var, we
11270 # have to relink, otherwise we might link with an installed library
11271 # when we should be linking with a yet-to-be-installed one
11272 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
11273 test "$hardcode_minus_L" != no; then
11274 # Linking always hardcodes the temporary library directory.
11275 hardcode_action=relink
11276 else
11277 # We can link without hardcoding, and we can hardcode nonexisting dirs.
11278 hardcode_action=immediate
11279 fi
11280 else
11281 # We cannot hardcode anything, or else we can only hardcode existing
11282 # directories.
11283 hardcode_action=unsupported
11284 fi
11285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
11286 $as_echo "$hardcode_action" >&6; }
11287
11288 if test "$hardcode_action" = relink ||
11289 test "$inherit_rpath" = yes; then
11290 # Fast installation is not supported
11291 enable_fast_install=no
11292 elif test "$shlibpath_overrides_runpath" = yes ||
11293 test "$enable_shared" = no; then
11294 # Fast installation is not necessary
11295 enable_fast_install=needless
11296 fi
11297
11298
11299
11300
11301
11302
11303 if test "x$enable_dlopen" != xyes; then
11304 enable_dlopen=unknown
11305 enable_dlopen_self=unknown
11306 enable_dlopen_self_static=unknown
11307 else
11308 lt_cv_dlopen=no
11309 lt_cv_dlopen_libs=
11310
11311 case $host_os in
11312 beos*)
11313 lt_cv_dlopen="load_add_on"
11314 lt_cv_dlopen_libs=
11315 lt_cv_dlopen_self=yes
11316 ;;
11317
11318 mingw* | pw32* | cegcc*)
11319 lt_cv_dlopen="LoadLibrary"
11320 lt_cv_dlopen_libs=
11321 ;;
11322
11323 cygwin*)
11324 lt_cv_dlopen="dlopen"
11325 lt_cv_dlopen_libs=
11326 ;;
11327
11328 darwin*)
11329 # if libdl is installed we need to link against it
11330 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11331 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11332 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
11333 $as_echo_n "(cached) " >&6
11334 else
11335 ac_check_lib_save_LIBS=$LIBS
11336 LIBS="-ldl $LIBS"
11337 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11338 /* end confdefs.h. */
11339
11340 /* Override any GCC internal prototype to avoid an error.
11341 Use char because int might match the return type of a GCC
11342 builtin and then its argument prototype would still apply. */
11343 #ifdef __cplusplus
11344 extern "C"
11345 #endif
11346 char dlopen ();
11347 int
11348 main ()
11349 {
11350 return dlopen ();
11351 ;
11352 return 0;
11353 }
11354 _ACEOF
11355 if ac_fn_c_try_link "$LINENO"; then :
11356 ac_cv_lib_dl_dlopen=yes
11357 else
11358 ac_cv_lib_dl_dlopen=no
11359 fi
11360 rm -f core conftest.err conftest.$ac_objext \
11361 conftest$ac_exeext conftest.$ac_ext
11362 LIBS=$ac_check_lib_save_LIBS
11363 fi
11364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11365 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11366 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
11367 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11368 else
11369
11370 lt_cv_dlopen="dyld"
11371 lt_cv_dlopen_libs=
11372 lt_cv_dlopen_self=yes
11373
11374 fi
11375
11376 ;;
11377
11378 *)
11379 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
11380 if test "x$ac_cv_func_shl_load" = x""yes; then :
11381 lt_cv_dlopen="shl_load"
11382 else
11383 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
11384 $as_echo_n "checking for shl_load in -ldld... " >&6; }
11385 if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
11386 $as_echo_n "(cached) " >&6
11387 else
11388 ac_check_lib_save_LIBS=$LIBS
11389 LIBS="-ldld $LIBS"
11390 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11391 /* end confdefs.h. */
11392
11393 /* Override any GCC internal prototype to avoid an error.
11394 Use char because int might match the return type of a GCC
11395 builtin and then its argument prototype would still apply. */
11396 #ifdef __cplusplus
11397 extern "C"
11398 #endif
11399 char shl_load ();
11400 int
11401 main ()
11402 {
11403 return shl_load ();
11404 ;
11405 return 0;
11406 }
11407 _ACEOF
11408 if ac_fn_c_try_link "$LINENO"; then :
11409 ac_cv_lib_dld_shl_load=yes
11410 else
11411 ac_cv_lib_dld_shl_load=no
11412 fi
11413 rm -f core conftest.err conftest.$ac_objext \
11414 conftest$ac_exeext conftest.$ac_ext
11415 LIBS=$ac_check_lib_save_LIBS
11416 fi
11417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
11418 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
11419 if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
11420 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
11421 else
11422 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
11423 if test "x$ac_cv_func_dlopen" = x""yes; then :
11424 lt_cv_dlopen="dlopen"
11425 else
11426 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11427 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11428 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
11429 $as_echo_n "(cached) " >&6
11430 else
11431 ac_check_lib_save_LIBS=$LIBS
11432 LIBS="-ldl $LIBS"
11433 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11434 /* end confdefs.h. */
11435
11436 /* Override any GCC internal prototype to avoid an error.
11437 Use char because int might match the return type of a GCC
11438 builtin and then its argument prototype would still apply. */
11439 #ifdef __cplusplus
11440 extern "C"
11441 #endif
11442 char dlopen ();
11443 int
11444 main ()
11445 {
11446 return dlopen ();
11447 ;
11448 return 0;
11449 }
11450 _ACEOF
11451 if ac_fn_c_try_link "$LINENO"; then :
11452 ac_cv_lib_dl_dlopen=yes
11453 else
11454 ac_cv_lib_dl_dlopen=no
11455 fi
11456 rm -f core conftest.err conftest.$ac_objext \
11457 conftest$ac_exeext conftest.$ac_ext
11458 LIBS=$ac_check_lib_save_LIBS
11459 fi
11460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11461 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11462 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
11463 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11464 else
11465 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11466 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
11467 if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
11468 $as_echo_n "(cached) " >&6
11469 else
11470 ac_check_lib_save_LIBS=$LIBS
11471 LIBS="-lsvld $LIBS"
11472 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11473 /* end confdefs.h. */
11474
11475 /* Override any GCC internal prototype to avoid an error.
11476 Use char because int might match the return type of a GCC
11477 builtin and then its argument prototype would still apply. */
11478 #ifdef __cplusplus
11479 extern "C"
11480 #endif
11481 char dlopen ();
11482 int
11483 main ()
11484 {
11485 return dlopen ();
11486 ;
11487 return 0;
11488 }
11489 _ACEOF
11490 if ac_fn_c_try_link "$LINENO"; then :
11491 ac_cv_lib_svld_dlopen=yes
11492 else
11493 ac_cv_lib_svld_dlopen=no
11494 fi
11495 rm -f core conftest.err conftest.$ac_objext \
11496 conftest$ac_exeext conftest.$ac_ext
11497 LIBS=$ac_check_lib_save_LIBS
11498 fi
11499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11500 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11501 if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
11502 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11503 else
11504 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11505 $as_echo_n "checking for dld_link in -ldld... " >&6; }
11506 if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
11507 $as_echo_n "(cached) " >&6
11508 else
11509 ac_check_lib_save_LIBS=$LIBS
11510 LIBS="-ldld $LIBS"
11511 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11512 /* end confdefs.h. */
11513
11514 /* Override any GCC internal prototype to avoid an error.
11515 Use char because int might match the return type of a GCC
11516 builtin and then its argument prototype would still apply. */
11517 #ifdef __cplusplus
11518 extern "C"
11519 #endif
11520 char dld_link ();
11521 int
11522 main ()
11523 {
11524 return dld_link ();
11525 ;
11526 return 0;
11527 }
11528 _ACEOF
11529 if ac_fn_c_try_link "$LINENO"; then :
11530 ac_cv_lib_dld_dld_link=yes
11531 else
11532 ac_cv_lib_dld_dld_link=no
11533 fi
11534 rm -f core conftest.err conftest.$ac_objext \
11535 conftest$ac_exeext conftest.$ac_ext
11536 LIBS=$ac_check_lib_save_LIBS
11537 fi
11538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11539 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11540 if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
11541 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
11542 fi
11543
11544
11545 fi
11546
11547
11548 fi
11549
11550
11551 fi
11552
11553
11554 fi
11555
11556
11557 fi
11558
11559 ;;
11560 esac
11561
11562 if test "x$lt_cv_dlopen" != xno; then
11563 enable_dlopen=yes
11564 else
11565 enable_dlopen=no
11566 fi
11567
11568 case $lt_cv_dlopen in
11569 dlopen)
11570 save_CPPFLAGS="$CPPFLAGS"
11571 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11572
11573 save_LDFLAGS="$LDFLAGS"
11574 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11575
11576 save_LIBS="$LIBS"
11577 LIBS="$lt_cv_dlopen_libs $LIBS"
11578
11579 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
11580 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
11581 if test "${lt_cv_dlopen_self+set}" = set; then :
11582 $as_echo_n "(cached) " >&6
11583 else
11584 if test "$cross_compiling" = yes; then :
11585 lt_cv_dlopen_self=cross
11586 else
11587 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11588 lt_status=$lt_dlunknown
11589 cat > conftest.$ac_ext <<_LT_EOF
11590 #line 11590 "configure"
11591 #include "confdefs.h"
11592
11593 #if HAVE_DLFCN_H
11594 #include <dlfcn.h>
11595 #endif
11596
11597 #include <stdio.h>
11598
11599 #ifdef RTLD_GLOBAL
11600 # define LT_DLGLOBAL RTLD_GLOBAL
11601 #else
11602 # ifdef DL_GLOBAL
11603 # define LT_DLGLOBAL DL_GLOBAL
11604 # else
11605 # define LT_DLGLOBAL 0
11606 # endif
11607 #endif
11608
11609 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11610 find out it does not work in some platform. */
11611 #ifndef LT_DLLAZY_OR_NOW
11612 # ifdef RTLD_LAZY
11613 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11614 # else
11615 # ifdef DL_LAZY
11616 # define LT_DLLAZY_OR_NOW DL_LAZY
11617 # else
11618 # ifdef RTLD_NOW
11619 # define LT_DLLAZY_OR_NOW RTLD_NOW
11620 # else
11621 # ifdef DL_NOW
11622 # define LT_DLLAZY_OR_NOW DL_NOW
11623 # else
11624 # define LT_DLLAZY_OR_NOW 0
11625 # endif
11626 # endif
11627 # endif
11628 # endif
11629 #endif
11630
11631 /* When -fvisbility=hidden is used, assume the code has been annotated
11632 correspondingly for the symbols needed. */
11633 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11634 void fnord () __attribute__((visibility("default")));
11635 #endif
11636
11637 void fnord () { int i=42; }
11638 int main ()
11639 {
11640 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11641 int status = $lt_dlunknown;
11642
11643 if (self)
11644 {
11645 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11646 else
11647 {
11648 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11649 else puts (dlerror ());
11650 }
11651 /* dlclose (self); */
11652 }
11653 else
11654 puts (dlerror ());
11655
11656 return status;
11657 }
11658 _LT_EOF
11659 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11660 (eval $ac_link) 2>&5
11661 ac_status=$?
11662 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11663 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11664 (./conftest; exit; ) >&5 2>/dev/null
11665 lt_status=$?
11666 case x$lt_status in
11667 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11668 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11669 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11670 esac
11671 else :
11672 # compilation failed
11673 lt_cv_dlopen_self=no
11674 fi
11675 fi
11676 rm -fr conftest*
11677
11678
11679 fi
11680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11681 $as_echo "$lt_cv_dlopen_self" >&6; }
11682
11683 if test "x$lt_cv_dlopen_self" = xyes; then
11684 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11685 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11686 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11687 if test "${lt_cv_dlopen_self_static+set}" = set; then :
11688 $as_echo_n "(cached) " >&6
11689 else
11690 if test "$cross_compiling" = yes; then :
11691 lt_cv_dlopen_self_static=cross
11692 else
11693 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11694 lt_status=$lt_dlunknown
11695 cat > conftest.$ac_ext <<_LT_EOF
11696 #line 11696 "configure"
11697 #include "confdefs.h"
11698
11699 #if HAVE_DLFCN_H
11700 #include <dlfcn.h>
11701 #endif
11702
11703 #include <stdio.h>
11704
11705 #ifdef RTLD_GLOBAL
11706 # define LT_DLGLOBAL RTLD_GLOBAL
11707 #else
11708 # ifdef DL_GLOBAL
11709 # define LT_DLGLOBAL DL_GLOBAL
11710 # else
11711 # define LT_DLGLOBAL 0
11712 # endif
11713 #endif
11714
11715 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11716 find out it does not work in some platform. */
11717 #ifndef LT_DLLAZY_OR_NOW
11718 # ifdef RTLD_LAZY
11719 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11720 # else
11721 # ifdef DL_LAZY
11722 # define LT_DLLAZY_OR_NOW DL_LAZY
11723 # else
11724 # ifdef RTLD_NOW
11725 # define LT_DLLAZY_OR_NOW RTLD_NOW
11726 # else
11727 # ifdef DL_NOW
11728 # define LT_DLLAZY_OR_NOW DL_NOW
11729 # else
11730 # define LT_DLLAZY_OR_NOW 0
11731 # endif
11732 # endif
11733 # endif
11734 # endif
11735 #endif
11736
11737 /* When -fvisbility=hidden is used, assume the code has been annotated
11738 correspondingly for the symbols needed. */
11739 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11740 void fnord () __attribute__((visibility("default")));
11741 #endif
11742
11743 void fnord () { int i=42; }
11744 int main ()
11745 {
11746 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11747 int status = $lt_dlunknown;
11748
11749 if (self)
11750 {
11751 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11752 else
11753 {
11754 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11755 else puts (dlerror ());
11756 }
11757 /* dlclose (self); */
11758 }
11759 else
11760 puts (dlerror ());
11761
11762 return status;
11763 }
11764 _LT_EOF
11765 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11766 (eval $ac_link) 2>&5
11767 ac_status=$?
11768 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11769 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11770 (./conftest; exit; ) >&5 2>/dev/null
11771 lt_status=$?
11772 case x$lt_status in
11773 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11774 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11775 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11776 esac
11777 else :
11778 # compilation failed
11779 lt_cv_dlopen_self_static=no
11780 fi
11781 fi
11782 rm -fr conftest*
11783
11784
11785 fi
11786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11787 $as_echo "$lt_cv_dlopen_self_static" >&6; }
11788 fi
11789
11790 CPPFLAGS="$save_CPPFLAGS"
11791 LDFLAGS="$save_LDFLAGS"
11792 LIBS="$save_LIBS"
11793 ;;
11794 esac
11795
11796 case $lt_cv_dlopen_self in
11797 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11798 *) enable_dlopen_self=unknown ;;
11799 esac
11800
11801 case $lt_cv_dlopen_self_static in
11802 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11803 *) enable_dlopen_self_static=unknown ;;
11804 esac
11805 fi
11806
11807
11808
11809
11810
11811
11812
11813
11814
11815
11816
11817
11818
11819
11820
11821
11822
11823 striplib=
11824 old_striplib=
11825 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11826 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
11827 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11828 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11829 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11831 $as_echo "yes" >&6; }
11832 else
11833 # FIXME - insert some real tests, host_os isn't really good enough
11834 case $host_os in
11835 darwin*)
11836 if test -n "$STRIP" ; then
11837 striplib="$STRIP -x"
11838 old_striplib="$STRIP -S"
11839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11840 $as_echo "yes" >&6; }
11841 else
11842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11843 $as_echo "no" >&6; }
11844 fi
11845 ;;
11846 *)
11847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11848 $as_echo "no" >&6; }
11849 ;;
11850 esac
11851 fi
11852
11853
11854
11855
11856
11857
11858
11859
11860
11861
11862
11863
11864 # Report which library types will actually be built
11865 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
11866 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
11867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
11868 $as_echo "$can_build_shared" >&6; }
11869
11870 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
11871 $as_echo_n "checking whether to build shared libraries... " >&6; }
11872 test "$can_build_shared" = "no" && enable_shared=no
11873
11874 # On AIX, shared libraries and static libraries use the same namespace, and
11875 # are all built from PIC.
11876 case $host_os in
11877 aix3*)
11878 test "$enable_shared" = yes && enable_static=no
11879 if test -n "$RANLIB"; then
11880 archive_cmds="$archive_cmds~\$RANLIB \$lib"
11881 postinstall_cmds='$RANLIB $lib'
11882 fi
11883 ;;
11884
11885 aix[4-9]*)
11886 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11887 test "$enable_shared" = yes && enable_static=no
11888 fi
11889 ;;
11890 esac
11891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
11892 $as_echo "$enable_shared" >&6; }
11893
11894 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
11895 $as_echo_n "checking whether to build static libraries... " >&6; }
11896 # Make sure either enable_shared or enable_static is yes.
11897 test "$enable_shared" = yes || enable_static=yes
11898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
11899 $as_echo "$enable_static" >&6; }
11900
11901
11902
11903
11904 fi
11905 ac_ext=c
11906 ac_cpp='$CPP $CPPFLAGS'
11907 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11908 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11909 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11910
11911 CC="$lt_save_CC"
11912
11913
11914
11915
11916
11917
11918
11919
11920
11921
11922
11923
11924
11925 ac_config_commands="$ac_config_commands libtool"
11926
11927
11928
11929
11930 # Only expand once:
11931
11932
11933
11934 ALL_LINGUAS="fr sv tr es da vi zh_CN zh_TW ga fi id bg"
11935 # If we haven't got the data from the intl directory,
11936 # assume NLS is disabled.
11937 USE_NLS=no
11938 LIBINTL=
11939 LIBINTL_DEP=
11940 INCINTL=
11941 XGETTEXT=
11942 GMSGFMT=
11943 POSUB=
11944
11945 if test -f ../intl/config.intl; then
11946 . ../intl/config.intl
11947 fi
11948 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
11949 $as_echo_n "checking whether NLS is requested... " >&6; }
11950 if test x"$USE_NLS" != xyes; then
11951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11952 $as_echo "no" >&6; }
11953 else
11954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11955 $as_echo "yes" >&6; }
11956
11957 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
11958
11959
11960 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catalogs to be installed" >&5
11961 $as_echo_n "checking for catalogs to be installed... " >&6; }
11962 # Look for .po and .gmo files in the source directory.
11963 CATALOGS=
11964 XLINGUAS=
11965 for cat in $srcdir/po/*.gmo $srcdir/po/*.po; do
11966 # If there aren't any .gmo files the shell will give us the
11967 # literal string "../path/to/srcdir/po/*.gmo" which has to be
11968 # weeded out.
11969 case "$cat" in *\**)
11970 continue;;
11971 esac
11972 # The quadruple backslash is collapsed to a double backslash
11973 # by the backticks, then collapsed again by the double quotes,
11974 # leaving us with one backslash in the sed expression (right
11975 # before the dot that mustn't act as a wildcard).
11976 cat=`echo $cat | sed -e "s!$srcdir/po/!!" -e "s!\\\\.po!.gmo!"`
11977 lang=`echo $cat | sed -e "s!\\\\.gmo!!"`
11978 # The user is allowed to set LINGUAS to a list of languages to
11979 # install catalogs for. If it's empty that means "all of them."
11980 if test "x$LINGUAS" = x; then
11981 CATALOGS="$CATALOGS $cat"
11982 XLINGUAS="$XLINGUAS $lang"
11983 else
11984 case "$LINGUAS" in *$lang*)
11985 CATALOGS="$CATALOGS $cat"
11986 XLINGUAS="$XLINGUAS $lang"
11987 ;;
11988 esac
11989 fi
11990 done
11991 LINGUAS="$XLINGUAS"
11992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINGUAS" >&5
11993 $as_echo "$LINGUAS" >&6; }
11994
11995
11996 DATADIRNAME=share
11997
11998 INSTOBJEXT=.mo
11999
12000 GENCAT=gencat
12001
12002 CATOBJEXT=.gmo
12003
12004 fi
12005
12006 MKINSTALLDIRS=
12007 if test -n "$ac_aux_dir"; then
12008 case "$ac_aux_dir" in
12009 /*) MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" ;;
12010 *) MKINSTALLDIRS="\$(top_builddir)/$ac_aux_dir/mkinstalldirs" ;;
12011 esac
12012 fi
12013 if test -z "$MKINSTALLDIRS"; then
12014 MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
12015 fi
12016
12017
12018
12019 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
12020 $as_echo_n "checking whether NLS is requested... " >&6; }
12021 # Check whether --enable-nls was given.
12022 if test "${enable_nls+set}" = set; then :
12023 enableval=$enable_nls; USE_NLS=$enableval
12024 else
12025 USE_NLS=yes
12026 fi
12027
12028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
12029 $as_echo "$USE_NLS" >&6; }
12030
12031
12032
12033
12034
12035
12036 # Prepare PATH_SEPARATOR.
12037 # The user is always right.
12038 if test "${PATH_SEPARATOR+set}" != set; then
12039 echo "#! /bin/sh" >conf$$.sh
12040 echo "exit 0" >>conf$$.sh
12041 chmod +x conf$$.sh
12042 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
12043 PATH_SEPARATOR=';'
12044 else
12045 PATH_SEPARATOR=:
12046 fi
12047 rm -f conf$$.sh
12048 fi
12049
12050 # Find out how to test for executable files. Don't use a zero-byte file,
12051 # as systems may use methods other than mode bits to determine executability.
12052 cat >conf$$.file <<_ASEOF
12053 #! /bin/sh
12054 exit 0
12055 _ASEOF
12056 chmod +x conf$$.file
12057 if test -x conf$$.file >/dev/null 2>&1; then
12058 ac_executable_p="test -x"
12059 else
12060 ac_executable_p="test -f"
12061 fi
12062 rm -f conf$$.file
12063
12064 # Extract the first word of "msgfmt", so it can be a program name with args.
12065 set dummy msgfmt; ac_word=$2
12066 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12067 $as_echo_n "checking for $ac_word... " >&6; }
12068 if test "${ac_cv_path_MSGFMT+set}" = set; then :
12069 $as_echo_n "(cached) " >&6
12070 else
12071 case "$MSGFMT" in
12072 [\\/]* | ?:[\\/]*)
12073 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
12074 ;;
12075 *)
12076 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
12077 for ac_dir in $PATH; do
12078 IFS="$ac_save_IFS"
12079 test -z "$ac_dir" && ac_dir=.
12080 for ac_exec_ext in '' $ac_executable_extensions; do
12081 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
12082 if $ac_dir/$ac_word --statistics /dev/null >/dev/null 2>&1 &&
12083 (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
12084 ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
12085 break 2
12086 fi
12087 fi
12088 done
12089 done
12090 IFS="$ac_save_IFS"
12091 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
12092 ;;
12093 esac
12094 fi
12095 MSGFMT="$ac_cv_path_MSGFMT"
12096 if test "$MSGFMT" != ":"; then
12097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
12098 $as_echo "$MSGFMT" >&6; }
12099 else
12100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12101 $as_echo "no" >&6; }
12102 fi
12103
12104 # Extract the first word of "gmsgfmt", so it can be a program name with args.
12105 set dummy gmsgfmt; ac_word=$2
12106 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12107 $as_echo_n "checking for $ac_word... " >&6; }
12108 if test "${ac_cv_path_GMSGFMT+set}" = set; then :
12109 $as_echo_n "(cached) " >&6
12110 else
12111 case $GMSGFMT in
12112 [\\/]* | ?:[\\/]*)
12113 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
12114 ;;
12115 *)
12116 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12117 for as_dir in $PATH
12118 do
12119 IFS=$as_save_IFS
12120 test -z "$as_dir" && as_dir=.
12121 for ac_exec_ext in '' $ac_executable_extensions; do
12122 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12123 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
12124 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12125 break 2
12126 fi
12127 done
12128 done
12129 IFS=$as_save_IFS
12130
12131 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
12132 ;;
12133 esac
12134 fi
12135 GMSGFMT=$ac_cv_path_GMSGFMT
12136 if test -n "$GMSGFMT"; then
12137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMSGFMT" >&5
12138 $as_echo "$GMSGFMT" >&6; }
12139 else
12140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12141 $as_echo "no" >&6; }
12142 fi
12143
12144
12145
12146
12147 # Prepare PATH_SEPARATOR.
12148 # The user is always right.
12149 if test "${PATH_SEPARATOR+set}" != set; then
12150 echo "#! /bin/sh" >conf$$.sh
12151 echo "exit 0" >>conf$$.sh
12152 chmod +x conf$$.sh
12153 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
12154 PATH_SEPARATOR=';'
12155 else
12156 PATH_SEPARATOR=:
12157 fi
12158 rm -f conf$$.sh
12159 fi
12160
12161 # Find out how to test for executable files. Don't use a zero-byte file,
12162 # as systems may use methods other than mode bits to determine executability.
12163 cat >conf$$.file <<_ASEOF
12164 #! /bin/sh
12165 exit 0
12166 _ASEOF
12167 chmod +x conf$$.file
12168 if test -x conf$$.file >/dev/null 2>&1; then
12169 ac_executable_p="test -x"
12170 else
12171 ac_executable_p="test -f"
12172 fi
12173 rm -f conf$$.file
12174
12175 # Extract the first word of "xgettext", so it can be a program name with args.
12176 set dummy xgettext; ac_word=$2
12177 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12178 $as_echo_n "checking for $ac_word... " >&6; }
12179 if test "${ac_cv_path_XGETTEXT+set}" = set; then :
12180 $as_echo_n "(cached) " >&6
12181 else
12182 case "$XGETTEXT" in
12183 [\\/]* | ?:[\\/]*)
12184 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
12185 ;;
12186 *)
12187 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
12188 for ac_dir in $PATH; do
12189 IFS="$ac_save_IFS"
12190 test -z "$ac_dir" && ac_dir=.
12191 for ac_exec_ext in '' $ac_executable_extensions; do
12192 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
12193 if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
12194 (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
12195 ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
12196 break 2
12197 fi
12198 fi
12199 done
12200 done
12201 IFS="$ac_save_IFS"
12202 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
12203 ;;
12204 esac
12205 fi
12206 XGETTEXT="$ac_cv_path_XGETTEXT"
12207 if test "$XGETTEXT" != ":"; then
12208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5
12209 $as_echo "$XGETTEXT" >&6; }
12210 else
12211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12212 $as_echo "no" >&6; }
12213 fi
12214
12215 rm -f messages.po
12216
12217
12218 # Prepare PATH_SEPARATOR.
12219 # The user is always right.
12220 if test "${PATH_SEPARATOR+set}" != set; then
12221 echo "#! /bin/sh" >conf$$.sh
12222 echo "exit 0" >>conf$$.sh
12223 chmod +x conf$$.sh
12224 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
12225 PATH_SEPARATOR=';'
12226 else
12227 PATH_SEPARATOR=:
12228 fi
12229 rm -f conf$$.sh
12230 fi
12231
12232 # Find out how to test for executable files. Don't use a zero-byte file,
12233 # as systems may use methods other than mode bits to determine executability.
12234 cat >conf$$.file <<_ASEOF
12235 #! /bin/sh
12236 exit 0
12237 _ASEOF
12238 chmod +x conf$$.file
12239 if test -x conf$$.file >/dev/null 2>&1; then
12240 ac_executable_p="test -x"
12241 else
12242 ac_executable_p="test -f"
12243 fi
12244 rm -f conf$$.file
12245
12246 # Extract the first word of "msgmerge", so it can be a program name with args.
12247 set dummy msgmerge; ac_word=$2
12248 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12249 $as_echo_n "checking for $ac_word... " >&6; }
12250 if test "${ac_cv_path_MSGMERGE+set}" = set; then :
12251 $as_echo_n "(cached) " >&6
12252 else
12253 case "$MSGMERGE" in
12254 [\\/]* | ?:[\\/]*)
12255 ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
12256 ;;
12257 *)
12258 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
12259 for ac_dir in $PATH; do
12260 IFS="$ac_save_IFS"
12261 test -z "$ac_dir" && ac_dir=.
12262 for ac_exec_ext in '' $ac_executable_extensions; do
12263 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
12264 if $ac_dir/$ac_word --update -q /dev/null /dev/null >/dev/null 2>&1; then
12265 ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
12266 break 2
12267 fi
12268 fi
12269 done
12270 done
12271 IFS="$ac_save_IFS"
12272 test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
12273 ;;
12274 esac
12275 fi
12276 MSGMERGE="$ac_cv_path_MSGMERGE"
12277 if test "$MSGMERGE" != ":"; then
12278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGMERGE" >&5
12279 $as_echo "$MSGMERGE" >&6; }
12280 else
12281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12282 $as_echo "no" >&6; }
12283 fi
12284
12285
12286 if test "$GMSGFMT" != ":"; then
12287 if $GMSGFMT --statistics /dev/null >/dev/null 2>&1 &&
12288 (if $GMSGFMT --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
12289 : ;
12290 else
12291 GMSGFMT=`echo "$GMSGFMT" | sed -e 's,^.*/,,'`
12292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found $GMSGFMT program is not GNU msgfmt; ignore it" >&5
12293 $as_echo "found $GMSGFMT program is not GNU msgfmt; ignore it" >&6; }
12294 GMSGFMT=":"
12295 fi
12296 fi
12297
12298 if test "$XGETTEXT" != ":"; then
12299 if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
12300 (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
12301 : ;
12302 else
12303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found xgettext program is not GNU xgettext; ignore it" >&5
12304 $as_echo "found xgettext program is not GNU xgettext; ignore it" >&6; }
12305 XGETTEXT=":"
12306 fi
12307 rm -f messages.po
12308 fi
12309
12310 ac_config_commands="$ac_config_commands default-1"
12311
12312
12313
12314
12315
12316 for ac_prog in 'bison -y' byacc
12317 do
12318 # Extract the first word of "$ac_prog", so it can be a program name with args.
12319 set dummy $ac_prog; ac_word=$2
12320 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12321 $as_echo_n "checking for $ac_word... " >&6; }
12322 if test "${ac_cv_prog_YACC+set}" = set; then :
12323 $as_echo_n "(cached) " >&6
12324 else
12325 if test -n "$YACC"; then
12326 ac_cv_prog_YACC="$YACC" # Let the user override the test.
12327 else
12328 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12329 for as_dir in $PATH
12330 do
12331 IFS=$as_save_IFS
12332 test -z "$as_dir" && as_dir=.
12333 for ac_exec_ext in '' $ac_executable_extensions; do
12334 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12335 ac_cv_prog_YACC="$ac_prog"
12336 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12337 break 2
12338 fi
12339 done
12340 done
12341 IFS=$as_save_IFS
12342
12343 fi
12344 fi
12345 YACC=$ac_cv_prog_YACC
12346 if test -n "$YACC"; then
12347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5
12348 $as_echo "$YACC" >&6; }
12349 else
12350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12351 $as_echo "no" >&6; }
12352 fi
12353
12354
12355 test -n "$YACC" && break
12356 done
12357 test -n "$YACC" || YACC="yacc"
12358
12359 for ac_prog in flex lex
12360 do
12361 # Extract the first word of "$ac_prog", so it can be a program name with args.
12362 set dummy $ac_prog; ac_word=$2
12363 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12364 $as_echo_n "checking for $ac_word... " >&6; }
12365 if test "${ac_cv_prog_LEX+set}" = set; then :
12366 $as_echo_n "(cached) " >&6
12367 else
12368 if test -n "$LEX"; then
12369 ac_cv_prog_LEX="$LEX" # Let the user override the test.
12370 else
12371 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12372 for as_dir in $PATH
12373 do
12374 IFS=$as_save_IFS
12375 test -z "$as_dir" && as_dir=.
12376 for ac_exec_ext in '' $ac_executable_extensions; do
12377 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12378 ac_cv_prog_LEX="$ac_prog"
12379 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12380 break 2
12381 fi
12382 done
12383 done
12384 IFS=$as_save_IFS
12385
12386 fi
12387 fi
12388 LEX=$ac_cv_prog_LEX
12389 if test -n "$LEX"; then
12390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LEX" >&5
12391 $as_echo "$LEX" >&6; }
12392 else
12393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12394 $as_echo "no" >&6; }
12395 fi
12396
12397
12398 test -n "$LEX" && break
12399 done
12400 test -n "$LEX" || LEX=":"
12401
12402 if test "x$LEX" != "x:"; then
12403 cat >conftest.l <<_ACEOF
12404 %%
12405 a { ECHO; }
12406 b { REJECT; }
12407 c { yymore (); }
12408 d { yyless (1); }
12409 e { yyless (input () != 0); }
12410 f { unput (yytext[0]); }
12411 . { BEGIN INITIAL; }
12412 %%
12413 #ifdef YYTEXT_POINTER
12414 extern char *yytext;
12415 #endif
12416 int
12417 main (void)
12418 {
12419 return ! yylex () + ! yywrap ();
12420 }
12421 _ACEOF
12422 { { ac_try="$LEX conftest.l"
12423 case "(($ac_try" in
12424 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12425 *) ac_try_echo=$ac_try;;
12426 esac
12427 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
12428 $as_echo "$ac_try_echo"; } >&5
12429 (eval "$LEX conftest.l") 2>&5
12430 ac_status=$?
12431 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12432 test $ac_status = 0; }
12433 { $as_echo "$as_me:${as_lineno-$LINENO}: checking lex output file root" >&5
12434 $as_echo_n "checking lex output file root... " >&6; }
12435 if test "${ac_cv_prog_lex_root+set}" = set; then :
12436 $as_echo_n "(cached) " >&6
12437 else
12438
12439 if test -f lex.yy.c; then
12440 ac_cv_prog_lex_root=lex.yy
12441 elif test -f lexyy.c; then
12442 ac_cv_prog_lex_root=lexyy
12443 else
12444 as_fn_error "cannot find output from $LEX; giving up" "$LINENO" 5
12445 fi
12446 fi
12447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_root" >&5
12448 $as_echo "$ac_cv_prog_lex_root" >&6; }
12449 LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
12450
12451 if test -z "${LEXLIB+set}"; then
12452 { $as_echo "$as_me:${as_lineno-$LINENO}: checking lex library" >&5
12453 $as_echo_n "checking lex library... " >&6; }
12454 if test "${ac_cv_lib_lex+set}" = set; then :
12455 $as_echo_n "(cached) " >&6
12456 else
12457
12458 ac_save_LIBS=$LIBS
12459 ac_cv_lib_lex='none needed'
12460 for ac_lib in '' -lfl -ll; do
12461 LIBS="$ac_lib $ac_save_LIBS"
12462 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12463 /* end confdefs.h. */
12464 `cat $LEX_OUTPUT_ROOT.c`
12465 _ACEOF
12466 if ac_fn_c_try_link "$LINENO"; then :
12467 ac_cv_lib_lex=$ac_lib
12468 fi
12469 rm -f core conftest.err conftest.$ac_objext \
12470 conftest$ac_exeext conftest.$ac_ext
12471 test "$ac_cv_lib_lex" != 'none needed' && break
12472 done
12473 LIBS=$ac_save_LIBS
12474
12475 fi
12476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lex" >&5
12477 $as_echo "$ac_cv_lib_lex" >&6; }
12478 test "$ac_cv_lib_lex" != 'none needed' && LEXLIB=$ac_cv_lib_lex
12479 fi
12480
12481
12482 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether yytext is a pointer" >&5
12483 $as_echo_n "checking whether yytext is a pointer... " >&6; }
12484 if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then :
12485 $as_echo_n "(cached) " >&6
12486 else
12487 # POSIX says lex can declare yytext either as a pointer or an array; the
12488 # default is implementation-dependent. Figure out which it is, since
12489 # not all implementations provide the %pointer and %array declarations.
12490 ac_cv_prog_lex_yytext_pointer=no
12491 ac_save_LIBS=$LIBS
12492 LIBS="$LEXLIB $ac_save_LIBS"
12493 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12494 /* end confdefs.h. */
12495 #define YYTEXT_POINTER 1
12496 `cat $LEX_OUTPUT_ROOT.c`
12497 _ACEOF
12498 if ac_fn_c_try_link "$LINENO"; then :
12499 ac_cv_prog_lex_yytext_pointer=yes
12500 fi
12501 rm -f core conftest.err conftest.$ac_objext \
12502 conftest$ac_exeext conftest.$ac_ext
12503 LIBS=$ac_save_LIBS
12504
12505 fi
12506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_yytext_pointer" >&5
12507 $as_echo "$ac_cv_prog_lex_yytext_pointer" >&6; }
12508 if test $ac_cv_prog_lex_yytext_pointer = yes; then
12509
12510 $as_echo "#define YYTEXT_POINTER 1" >>confdefs.h
12511
12512 fi
12513 rm -f conftest.l $LEX_OUTPUT_ROOT.c
12514
12515 fi
12516 if test "$LEX" = :; then
12517 LEX=${am_missing_run}flex
12518 fi
12519
12520
12521 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
12522 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
12523 # Check whether --enable-maintainer-mode was given.
12524 if test "${enable_maintainer_mode+set}" = set; then :
12525 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
12526 else
12527 USE_MAINTAINER_MODE=no
12528 fi
12529
12530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
12531 $as_echo "$USE_MAINTAINER_MODE" >&6; }
12532 if test $USE_MAINTAINER_MODE = yes; then
12533 MAINTAINER_MODE_TRUE=
12534 MAINTAINER_MODE_FALSE='#'
12535 else
12536 MAINTAINER_MODE_TRUE='#'
12537 MAINTAINER_MODE_FALSE=
12538 fi
12539
12540 MAINT=$MAINTAINER_MODE_TRUE
12541
12542
12543 if false; then
12544 GENINSRC_NEVER_TRUE=
12545 GENINSRC_NEVER_FALSE='#'
12546 else
12547 GENINSRC_NEVER_TRUE='#'
12548 GENINSRC_NEVER_FALSE=
12549 fi
12550
12551 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to compare bootstrapped objects" >&5
12552 $as_echo_n "checking how to compare bootstrapped objects... " >&6; }
12553 if test "${gcc_cv_prog_cmp_skip+set}" = set; then :
12554 $as_echo_n "(cached) " >&6
12555 else
12556 echo abfoo >t1
12557 echo cdfoo >t2
12558 gcc_cv_prog_cmp_skip='tail +16c $$f1 > tmp-foo1; tail +16c $$f2 > tmp-foo2; cmp tmp-foo1 tmp-foo2'
12559 if cmp t1 t2 2 2 > /dev/null 2>&1; then
12560 if cmp t1 t2 1 1 > /dev/null 2>&1; then
12561 :
12562 else
12563 gcc_cv_prog_cmp_skip='cmp $$f1 $$f2 16 16'
12564 fi
12565 fi
12566 if cmp --ignore-initial=2 t1 t2 > /dev/null 2>&1; then
12567 if cmp --ignore-initial=1 t1 t2 > /dev/null 2>&1; then
12568 :
12569 else
12570 gcc_cv_prog_cmp_skip='cmp --ignore-initial=16 $$f1 $$f2'
12571 fi
12572 fi
12573 rm t1 t2
12574
12575 fi
12576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_cmp_skip" >&5
12577 $as_echo "$gcc_cv_prog_cmp_skip" >&6; }
12578 do_compare="$gcc_cv_prog_cmp_skip"
12579
12580
12581
12582 . ${srcdir}/configure.host
12583
12584
12585
12586
12587
12588
12589 for ac_header in string.h strings.h stdlib.h unistd.h elf-hints.h limits.h sys/param.h
12590 do :
12591 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
12592 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
12593 eval as_val=\$$as_ac_Header
12594 if test "x$as_val" = x""yes; then :
12595 cat >>confdefs.h <<_ACEOF
12596 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
12597 _ACEOF
12598
12599 fi
12600
12601 done
12602
12603 for ac_func in glob mkstemp realpath sbrk waitpid
12604 do :
12605 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
12606 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
12607 eval as_val=\$$as_ac_var
12608 if test "x$as_val" = x""yes; then :
12609 cat >>confdefs.h <<_ACEOF
12610 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
12611 _ACEOF
12612
12613 fi
12614 done
12615
12616 ac_header_dirent=no
12617 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
12618 as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
12619 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
12620 $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
12621 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then :
12622 $as_echo_n "(cached) " >&6
12623 else
12624 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12625 /* end confdefs.h. */
12626 #include <sys/types.h>
12627 #include <$ac_hdr>
12628
12629 int
12630 main ()
12631 {
12632 if ((DIR *) 0)
12633 return 0;
12634 ;
12635 return 0;
12636 }
12637 _ACEOF
12638 if ac_fn_c_try_compile "$LINENO"; then :
12639 eval "$as_ac_Header=yes"
12640 else
12641 eval "$as_ac_Header=no"
12642 fi
12643 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12644 fi
12645 eval ac_res=\$$as_ac_Header
12646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
12647 $as_echo "$ac_res" >&6; }
12648 eval as_val=\$$as_ac_Header
12649 if test "x$as_val" = x""yes; then :
12650 cat >>confdefs.h <<_ACEOF
12651 #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
12652 _ACEOF
12653
12654 ac_header_dirent=$ac_hdr; break
12655 fi
12656
12657 done
12658 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
12659 if test $ac_header_dirent = dirent.h; then
12660 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
12661 $as_echo_n "checking for library containing opendir... " >&6; }
12662 if test "${ac_cv_search_opendir+set}" = set; then :
12663 $as_echo_n "(cached) " >&6
12664 else
12665 ac_func_search_save_LIBS=$LIBS
12666 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12667 /* end confdefs.h. */
12668
12669 /* Override any GCC internal prototype to avoid an error.
12670 Use char because int might match the return type of a GCC
12671 builtin and then its argument prototype would still apply. */
12672 #ifdef __cplusplus
12673 extern "C"
12674 #endif
12675 char opendir ();
12676 int
12677 main ()
12678 {
12679 return opendir ();
12680 ;
12681 return 0;
12682 }
12683 _ACEOF
12684 for ac_lib in '' dir; do
12685 if test -z "$ac_lib"; then
12686 ac_res="none required"
12687 else
12688 ac_res=-l$ac_lib
12689 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12690 fi
12691 if ac_fn_c_try_link "$LINENO"; then :
12692 ac_cv_search_opendir=$ac_res
12693 fi
12694 rm -f core conftest.err conftest.$ac_objext \
12695 conftest$ac_exeext
12696 if test "${ac_cv_search_opendir+set}" = set; then :
12697 break
12698 fi
12699 done
12700 if test "${ac_cv_search_opendir+set}" = set; then :
12701
12702 else
12703 ac_cv_search_opendir=no
12704 fi
12705 rm conftest.$ac_ext
12706 LIBS=$ac_func_search_save_LIBS
12707 fi
12708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
12709 $as_echo "$ac_cv_search_opendir" >&6; }
12710 ac_res=$ac_cv_search_opendir
12711 if test "$ac_res" != no; then :
12712 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12713
12714 fi
12715
12716 else
12717 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
12718 $as_echo_n "checking for library containing opendir... " >&6; }
12719 if test "${ac_cv_search_opendir+set}" = set; then :
12720 $as_echo_n "(cached) " >&6
12721 else
12722 ac_func_search_save_LIBS=$LIBS
12723 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12724 /* end confdefs.h. */
12725
12726 /* Override any GCC internal prototype to avoid an error.
12727 Use char because int might match the return type of a GCC
12728 builtin and then its argument prototype would still apply. */
12729 #ifdef __cplusplus
12730 extern "C"
12731 #endif
12732 char opendir ();
12733 int
12734 main ()
12735 {
12736 return opendir ();
12737 ;
12738 return 0;
12739 }
12740 _ACEOF
12741 for ac_lib in '' x; do
12742 if test -z "$ac_lib"; then
12743 ac_res="none required"
12744 else
12745 ac_res=-l$ac_lib
12746 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12747 fi
12748 if ac_fn_c_try_link "$LINENO"; then :
12749 ac_cv_search_opendir=$ac_res
12750 fi
12751 rm -f core conftest.err conftest.$ac_objext \
12752 conftest$ac_exeext
12753 if test "${ac_cv_search_opendir+set}" = set; then :
12754 break
12755 fi
12756 done
12757 if test "${ac_cv_search_opendir+set}" = set; then :
12758
12759 else
12760 ac_cv_search_opendir=no
12761 fi
12762 rm conftest.$ac_ext
12763 LIBS=$ac_func_search_save_LIBS
12764 fi
12765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
12766 $as_echo "$ac_cv_search_opendir" >&6; }
12767 ac_res=$ac_cv_search_opendir
12768 if test "$ac_res" != no; then :
12769 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12770
12771 fi
12772
12773 fi
12774
12775
12776 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a known getopt prototype in unistd.h" >&5
12777 $as_echo_n "checking for a known getopt prototype in unistd.h... " >&6; }
12778 if test "${ld_cv_decl_getopt_unistd_h+set}" = set; then :
12779 $as_echo_n "(cached) " >&6
12780 else
12781 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12782 /* end confdefs.h. */
12783 #include <unistd.h>
12784 int
12785 main ()
12786 {
12787 extern int getopt (int, char *const*, const char *);
12788 ;
12789 return 0;
12790 }
12791 _ACEOF
12792 if ac_fn_c_try_compile "$LINENO"; then :
12793 ld_cv_decl_getopt_unistd_h=yes
12794 else
12795 ld_cv_decl_getopt_unistd_h=no
12796 fi
12797 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12798 fi
12799
12800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_cv_decl_getopt_unistd_h" >&5
12801 $as_echo "$ld_cv_decl_getopt_unistd_h" >&6; }
12802 if test $ld_cv_decl_getopt_unistd_h = yes; then
12803
12804 $as_echo "#define HAVE_DECL_GETOPT 1" >>confdefs.h
12805
12806 fi
12807
12808
12809 case "${host}" in
12810 *-*-msdos* | *-*-go32* | *-*-mingw32* | *-*-cygwin* | *-*-windows*)
12811
12812 $as_echo "#define USE_BINARY_FOPEN 1" >>confdefs.h
12813 ;;
12814 esac
12815
12816 ac_fn_c_check_decl "$LINENO" "strstr" "ac_cv_have_decl_strstr" "$ac_includes_default"
12817 if test "x$ac_cv_have_decl_strstr" = x""yes; then :
12818 ac_have_decl=1
12819 else
12820 ac_have_decl=0
12821 fi
12822
12823 cat >>confdefs.h <<_ACEOF
12824 #define HAVE_DECL_STRSTR $ac_have_decl
12825 _ACEOF
12826 ac_fn_c_check_decl "$LINENO" "free" "ac_cv_have_decl_free" "$ac_includes_default"
12827 if test "x$ac_cv_have_decl_free" = x""yes; then :
12828 ac_have_decl=1
12829 else
12830 ac_have_decl=0
12831 fi
12832
12833 cat >>confdefs.h <<_ACEOF
12834 #define HAVE_DECL_FREE $ac_have_decl
12835 _ACEOF
12836 ac_fn_c_check_decl "$LINENO" "sbrk" "ac_cv_have_decl_sbrk" "$ac_includes_default"
12837 if test "x$ac_cv_have_decl_sbrk" = x""yes; then :
12838 ac_have_decl=1
12839 else
12840 ac_have_decl=0
12841 fi
12842
12843 cat >>confdefs.h <<_ACEOF
12844 #define HAVE_DECL_SBRK $ac_have_decl
12845 _ACEOF
12846 ac_fn_c_check_decl "$LINENO" "getenv" "ac_cv_have_decl_getenv" "$ac_includes_default"
12847 if test "x$ac_cv_have_decl_getenv" = x""yes; then :
12848 ac_have_decl=1
12849 else
12850 ac_have_decl=0
12851 fi
12852
12853 cat >>confdefs.h <<_ACEOF
12854 #define HAVE_DECL_GETENV $ac_have_decl
12855 _ACEOF
12856 ac_fn_c_check_decl "$LINENO" "environ" "ac_cv_have_decl_environ" "$ac_includes_default"
12857 if test "x$ac_cv_have_decl_environ" = x""yes; then :
12858 ac_have_decl=1
12859 else
12860 ac_have_decl=0
12861 fi
12862
12863 cat >>confdefs.h <<_ACEOF
12864 #define HAVE_DECL_ENVIRON $ac_have_decl
12865 _ACEOF
12866
12867
12868 # Link in zlib if we can. This is needed only for the bootstrap tests
12869 # right now, since those tests use libbfd, which depends on zlib.
12870 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing zlibVersion" >&5
12871 $as_echo_n "checking for library containing zlibVersion... " >&6; }
12872 if test "${ac_cv_search_zlibVersion+set}" = set; then :
12873 $as_echo_n "(cached) " >&6
12874 else
12875 ac_func_search_save_LIBS=$LIBS
12876 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12877 /* end confdefs.h. */
12878
12879 /* Override any GCC internal prototype to avoid an error.
12880 Use char because int might match the return type of a GCC
12881 builtin and then its argument prototype would still apply. */
12882 #ifdef __cplusplus
12883 extern "C"
12884 #endif
12885 char zlibVersion ();
12886 int
12887 main ()
12888 {
12889 return zlibVersion ();
12890 ;
12891 return 0;
12892 }
12893 _ACEOF
12894 for ac_lib in '' z; do
12895 if test -z "$ac_lib"; then
12896 ac_res="none required"
12897 else
12898 ac_res=-l$ac_lib
12899 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12900 fi
12901 if ac_fn_c_try_link "$LINENO"; then :
12902 ac_cv_search_zlibVersion=$ac_res
12903 fi
12904 rm -f core conftest.err conftest.$ac_objext \
12905 conftest$ac_exeext
12906 if test "${ac_cv_search_zlibVersion+set}" = set; then :
12907 break
12908 fi
12909 done
12910 if test "${ac_cv_search_zlibVersion+set}" = set; then :
12911
12912 else
12913 ac_cv_search_zlibVersion=no
12914 fi
12915 rm conftest.$ac_ext
12916 LIBS=$ac_func_search_save_LIBS
12917 fi
12918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_zlibVersion" >&5
12919 $as_echo "$ac_cv_search_zlibVersion" >&6; }
12920 ac_res=$ac_cv_search_zlibVersion
12921 if test "$ac_res" != no; then :
12922 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12923 for ac_header in zlib.h
12924 do :
12925 ac_fn_c_check_header_mongrel "$LINENO" "zlib.h" "ac_cv_header_zlib_h" "$ac_includes_default"
12926 if test "x$ac_cv_header_zlib_h" = x""yes; then :
12927 cat >>confdefs.h <<_ACEOF
12928 #define HAVE_ZLIB_H 1
12929 _ACEOF
12930
12931 fi
12932
12933 done
12934
12935 fi
12936
12937
12938 # When converting linker scripts into strings for use in emulation
12939 # files, use astring.sed if the compiler supports ANSI string
12940 # concatenation, or ostring.sed otherwise. This is to support the
12941 # broken Microsoft MSVC compiler, which limits the length of string
12942 # constants, while still supporting pre-ANSI compilers which do not
12943 # support string concatenation.
12944 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ANSI C string concatenation works" >&5
12945 $as_echo_n "checking whether ANSI C string concatenation works... " >&6; }
12946 if test "${ld_cv_string_concatenation+set}" = set; then :
12947 $as_echo_n "(cached) " >&6
12948 else
12949 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12950 /* end confdefs.h. */
12951
12952 int
12953 main ()
12954 {
12955 char *a = "a" "a";
12956 ;
12957 return 0;
12958 }
12959 _ACEOF
12960 if ac_fn_c_try_compile "$LINENO"; then :
12961 ld_cv_string_concatenation=yes
12962 else
12963 ld_cv_string_concatenation=no
12964 fi
12965 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12966 fi
12967
12968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_cv_string_concatenation" >&5
12969 $as_echo "$ld_cv_string_concatenation" >&6; }
12970 if test "$ld_cv_string_concatenation" = "yes"; then
12971 STRINGIFY=astring.sed
12972 else
12973 STRINGIFY=ostring.sed
12974 fi
12975
12976
12977 # target-specific stuff:
12978
12979 all_targets=
12980 EMUL=
12981 all_emuls=
12982 all_emul_extras=
12983 all_libpath=
12984
12985 rm -f tdirs
12986
12987 for targ_alias in `echo $target_alias $enable_targets | sed 's/,/ /g'`
12988 do
12989 if test "$targ_alias" = "all"; then
12990 all_targets=true
12991 else
12992 # Canonicalize the secondary target names.
12993 result=`$ac_config_sub $targ_alias 2>/dev/null`
12994 if test -n "$result"; then
12995 targ=$result
12996 else
12997 targ=$targ_alias
12998 fi
12999
13000 . ${srcdir}/configure.tgt
13001
13002 if test "$targ" = "$target"; then
13003 EMUL=$targ_emul
13004 fi
13005
13006 if test x${want64} = xfalse; then
13007 . ${srcdir}/../bfd/config.bfd
13008 fi
13009
13010 if test x${want64} = xtrue; then
13011 targ_extra_emuls="$targ_extra_emuls $targ64_extra_emuls"
13012 targ_extra_libpath="$targ_extra_libpath $targ64_extra_libpath"
13013 fi
13014
13015 for i in $targ_emul $targ_extra_emuls $targ_extra_libpath; do
13016 case " $all_emuls " in
13017 *" e${i}.o "*) ;;
13018 *)
13019 all_emuls="$all_emuls e${i}.o"
13020 eval result=\$tdir_$i
13021 test -z "$result" && result=$targ_alias
13022 echo tdir_$i=$result >> tdirs
13023 ;;
13024 esac
13025 done
13026
13027 for i in $targ_emul $targ_extra_libpath; do
13028 case " $all_libpath " in
13029 *" ${i} "*) ;;
13030 *)
13031 if test -z "$all_libpath"; then
13032 all_libpath=${i}
13033 else
13034 all_libpath="$all_libpath ${i}"
13035 fi
13036 ;;
13037 esac
13038 done
13039
13040 for i in $targ_extra_ofiles; do
13041 case " $all_emul_extras " in
13042 *" ${i} "*) ;;
13043 *)
13044 all_emul_extras="$all_emul_extras ${i}"
13045 ;;
13046 esac
13047 done
13048 fi
13049 done
13050
13051
13052
13053 TDIRS=tdirs
13054
13055
13056 if test x${all_targets} = xtrue; then
13057 if test x${want64} = xfalse; then
13058 # The cast to long int works around a bug in the HP C Compiler
13059 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13060 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13061 # This bug is HP SR number 8606223364.
13062 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
13063 $as_echo_n "checking size of long... " >&6; }
13064 if test "${ac_cv_sizeof_long+set}" = set; then :
13065 $as_echo_n "(cached) " >&6
13066 else
13067 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then :
13068
13069 else
13070 if test "$ac_cv_type_long" = yes; then
13071 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13072 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13073 { as_fn_set_status 77
13074 as_fn_error "cannot compute sizeof (long)
13075 See \`config.log' for more details." "$LINENO" 5; }; }
13076 else
13077 ac_cv_sizeof_long=0
13078 fi
13079 fi
13080
13081 fi
13082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
13083 $as_echo "$ac_cv_sizeof_long" >&6; }
13084
13085
13086
13087 cat >>confdefs.h <<_ACEOF
13088 #define SIZEOF_LONG $ac_cv_sizeof_long
13089 _ACEOF
13090
13091
13092 if test "x${ac_cv_sizeof_long}" = "x8"; then
13093 want64=true
13094 fi
13095 fi
13096 if test x${want64} = xtrue; then
13097 EMULATION_OFILES='$(ALL_EMULATIONS) $(ALL_64_EMULATIONS)'
13098 else
13099 EMULATION_OFILES='$(ALL_EMULATIONS)'
13100 fi
13101 EMUL_EXTRA_OFILES='$(ALL_EMUL_EXTRA_OFILES)'
13102 else
13103 EMULATION_OFILES=$all_emuls
13104 EMUL_EXTRA_OFILES=$all_emul_extras
13105 fi
13106
13107
13108
13109
13110 EMULATION_LIBPATH=$all_libpath
13111
13112
13113 if test x${enable_static} = xno; then
13114 TESTBFDLIB="--rpath ../bfd/.libs ../bfd/.libs/libbfd.so"
13115 else
13116 TESTBFDLIB="../bfd/.libs/libbfd.a"
13117 fi
13118
13119
13120 target_vendor=${target_vendor=$host_vendor}
13121 case "$target_vendor" in
13122 hp) EXTRA_SHLIB_EXTENSION=".sl" ;;
13123 *) EXTRA_SHLIB_EXTENSION= ;;
13124 esac
13125
13126 case "$target_os" in
13127 lynxos) EXTRA_SHLIB_EXTENSION=".a" ;;
13128 esac
13129
13130 if test x${EXTRA_SHLIB_EXTENSION} != x ; then
13131
13132 cat >>confdefs.h <<_ACEOF
13133 #define EXTRA_SHLIB_EXTENSION "$EXTRA_SHLIB_EXTENSION"
13134 _ACEOF
13135
13136 fi
13137
13138
13139
13140
13141
13142
13143 ac_config_files="$ac_config_files Makefile po/Makefile.in:po/Make-in"
13144
13145 cat >confcache <<\_ACEOF
13146 # This file is a shell script that caches the results of configure
13147 # tests run on this system so they can be shared between configure
13148 # scripts and configure runs, see configure's option --config-cache.
13149 # It is not useful on other systems. If it contains results you don't
13150 # want to keep, you may remove or edit it.
13151 #
13152 # config.status only pays attention to the cache file if you give it
13153 # the --recheck option to rerun configure.
13154 #
13155 # `ac_cv_env_foo' variables (set or unset) will be overridden when
13156 # loading this file, other *unset* `ac_cv_foo' will be assigned the
13157 # following values.
13158
13159 _ACEOF
13160
13161 # The following way of writing the cache mishandles newlines in values,
13162 # but we know of no workaround that is simple, portable, and efficient.
13163 # So, we kill variables containing newlines.
13164 # Ultrix sh set writes to stderr and can't be redirected directly,
13165 # and sets the high bit in the cache file unless we assign to the vars.
13166 (
13167 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
13168 eval ac_val=\$$ac_var
13169 case $ac_val in #(
13170 *${as_nl}*)
13171 case $ac_var in #(
13172 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
13173 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
13174 esac
13175 case $ac_var in #(
13176 _ | IFS | as_nl) ;; #(
13177 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
13178 *) { eval $ac_var=; unset $ac_var;} ;;
13179 esac ;;
13180 esac
13181 done
13182
13183 (set) 2>&1 |
13184 case $as_nl`(ac_space=' '; set) 2>&1` in #(
13185 *${as_nl}ac_space=\ *)
13186 # `set' does not quote correctly, so add quotes: double-quote
13187 # substitution turns \\\\ into \\, and sed turns \\ into \.
13188 sed -n \
13189 "s/'/'\\\\''/g;
13190 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
13191 ;; #(
13192 *)
13193 # `set' quotes correctly as required by POSIX, so do not add quotes.
13194 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
13195 ;;
13196 esac |
13197 sort
13198 ) |
13199 sed '
13200 /^ac_cv_env_/b end
13201 t clear
13202 :clear
13203 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
13204 t end
13205 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
13206 :end' >>confcache
13207 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
13208 if test -w "$cache_file"; then
13209 test "x$cache_file" != "x/dev/null" &&
13210 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
13211 $as_echo "$as_me: updating cache $cache_file" >&6;}
13212 cat confcache >$cache_file
13213 else
13214 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
13215 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
13216 fi
13217 fi
13218 rm -f confcache
13219
13220 test "x$prefix" = xNONE && prefix=$ac_default_prefix
13221 # Let make expand exec_prefix.
13222 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
13223
13224 DEFS=-DHAVE_CONFIG_H
13225
13226 ac_libobjs=
13227 ac_ltlibobjs=
13228 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
13229 # 1. Remove the extension, and $U if already installed.
13230 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
13231 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
13232 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
13233 # will be set to the directory where LIBOBJS objects are built.
13234 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
13235 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
13236 done
13237 LIBOBJS=$ac_libobjs
13238
13239 LTLIBOBJS=$ac_ltlibobjs
13240
13241
13242 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
13243 as_fn_error "conditional \"AMDEP\" was never defined.
13244 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13245 fi
13246 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
13247 as_fn_error "conditional \"am__fastdepCC\" was never defined.
13248 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13249 fi
13250 if test -n "$EXEEXT"; then
13251 am__EXEEXT_TRUE=
13252 am__EXEEXT_FALSE='#'
13253 else
13254 am__EXEEXT_TRUE='#'
13255 am__EXEEXT_FALSE=
13256 fi
13257
13258 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
13259 as_fn_error "conditional \"MAINTAINER_MODE\" was never defined.
13260 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13261 fi
13262 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
13263 as_fn_error "conditional \"MAINTAINER_MODE\" was never defined.
13264 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13265 fi
13266 if test -z "${GENINSRC_NEVER_TRUE}" && test -z "${GENINSRC_NEVER_FALSE}"; then
13267 as_fn_error "conditional \"GENINSRC_NEVER\" was never defined.
13268 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13269 fi
13270
13271 : ${CONFIG_STATUS=./config.status}
13272 ac_write_fail=0
13273 ac_clean_files_save=$ac_clean_files
13274 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
13275 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
13276 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
13277 as_write_fail=0
13278 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
13279 #! $SHELL
13280 # Generated by $as_me.
13281 # Run this file to recreate the current configuration.
13282 # Compiler output produced by configure, useful for debugging
13283 # configure, is in config.log if it exists.
13284
13285 debug=false
13286 ac_cs_recheck=false
13287 ac_cs_silent=false
13288
13289 SHELL=\${CONFIG_SHELL-$SHELL}
13290 export SHELL
13291 _ASEOF
13292 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
13293 ## -------------------- ##
13294 ## M4sh Initialization. ##
13295 ## -------------------- ##
13296
13297 # Be more Bourne compatible
13298 DUALCASE=1; export DUALCASE # for MKS sh
13299 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
13300 emulate sh
13301 NULLCMD=:
13302 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
13303 # is contrary to our usage. Disable this feature.
13304 alias -g '${1+"$@"}'='"$@"'
13305 setopt NO_GLOB_SUBST
13306 else
13307 case `(set -o) 2>/dev/null` in #(
13308 *posix*) :
13309 set -o posix ;; #(
13310 *) :
13311 ;;
13312 esac
13313 fi
13314
13315
13316 as_nl='
13317 '
13318 export as_nl
13319 # Printing a long string crashes Solaris 7 /usr/bin/printf.
13320 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
13321 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
13322 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
13323 # Prefer a ksh shell builtin over an external printf program on Solaris,
13324 # but without wasting forks for bash or zsh.
13325 if test -z "$BASH_VERSION$ZSH_VERSION" \
13326 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
13327 as_echo='print -r --'
13328 as_echo_n='print -rn --'
13329 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
13330 as_echo='printf %s\n'
13331 as_echo_n='printf %s'
13332 else
13333 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
13334 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
13335 as_echo_n='/usr/ucb/echo -n'
13336 else
13337 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
13338 as_echo_n_body='eval
13339 arg=$1;
13340 case $arg in #(
13341 *"$as_nl"*)
13342 expr "X$arg" : "X\\(.*\\)$as_nl";
13343 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
13344 esac;
13345 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
13346 '
13347 export as_echo_n_body
13348 as_echo_n='sh -c $as_echo_n_body as_echo'
13349 fi
13350 export as_echo_body
13351 as_echo='sh -c $as_echo_body as_echo'
13352 fi
13353
13354 # The user is always right.
13355 if test "${PATH_SEPARATOR+set}" != set; then
13356 PATH_SEPARATOR=:
13357 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
13358 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
13359 PATH_SEPARATOR=';'
13360 }
13361 fi
13362
13363
13364 # IFS
13365 # We need space, tab and new line, in precisely that order. Quoting is
13366 # there to prevent editors from complaining about space-tab.
13367 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
13368 # splitting by setting IFS to empty value.)
13369 IFS=" "" $as_nl"
13370
13371 # Find who we are. Look in the path if we contain no directory separator.
13372 case $0 in #((
13373 *[\\/]* ) as_myself=$0 ;;
13374 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13375 for as_dir in $PATH
13376 do
13377 IFS=$as_save_IFS
13378 test -z "$as_dir" && as_dir=.
13379 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
13380 done
13381 IFS=$as_save_IFS
13382
13383 ;;
13384 esac
13385 # We did not find ourselves, most probably we were run as `sh COMMAND'
13386 # in which case we are not to be found in the path.
13387 if test "x$as_myself" = x; then
13388 as_myself=$0
13389 fi
13390 if test ! -f "$as_myself"; then
13391 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
13392 exit 1
13393 fi
13394
13395 # Unset variables that we do not need and which cause bugs (e.g. in
13396 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
13397 # suppresses any "Segmentation fault" message there. '((' could
13398 # trigger a bug in pdksh 5.2.14.
13399 for as_var in BASH_ENV ENV MAIL MAILPATH
13400 do eval test x\${$as_var+set} = xset \
13401 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
13402 done
13403 PS1='$ '
13404 PS2='> '
13405 PS4='+ '
13406
13407 # NLS nuisances.
13408 LC_ALL=C
13409 export LC_ALL
13410 LANGUAGE=C
13411 export LANGUAGE
13412
13413 # CDPATH.
13414 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
13415
13416
13417 # as_fn_error ERROR [LINENO LOG_FD]
13418 # ---------------------------------
13419 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
13420 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
13421 # script with status $?, using 1 if that was 0.
13422 as_fn_error ()
13423 {
13424 as_status=$?; test $as_status -eq 0 && as_status=1
13425 if test "$3"; then
13426 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
13427 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
13428 fi
13429 $as_echo "$as_me: error: $1" >&2
13430 as_fn_exit $as_status
13431 } # as_fn_error
13432
13433
13434 # as_fn_set_status STATUS
13435 # -----------------------
13436 # Set $? to STATUS, without forking.
13437 as_fn_set_status ()
13438 {
13439 return $1
13440 } # as_fn_set_status
13441
13442 # as_fn_exit STATUS
13443 # -----------------
13444 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
13445 as_fn_exit ()
13446 {
13447 set +e
13448 as_fn_set_status $1
13449 exit $1
13450 } # as_fn_exit
13451
13452 # as_fn_unset VAR
13453 # ---------------
13454 # Portably unset VAR.
13455 as_fn_unset ()
13456 {
13457 { eval $1=; unset $1;}
13458 }
13459 as_unset=as_fn_unset
13460 # as_fn_append VAR VALUE
13461 # ----------------------
13462 # Append the text in VALUE to the end of the definition contained in VAR. Take
13463 # advantage of any shell optimizations that allow amortized linear growth over
13464 # repeated appends, instead of the typical quadratic growth present in naive
13465 # implementations.
13466 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
13467 eval 'as_fn_append ()
13468 {
13469 eval $1+=\$2
13470 }'
13471 else
13472 as_fn_append ()
13473 {
13474 eval $1=\$$1\$2
13475 }
13476 fi # as_fn_append
13477
13478 # as_fn_arith ARG...
13479 # ------------------
13480 # Perform arithmetic evaluation on the ARGs, and store the result in the
13481 # global $as_val. Take advantage of shells that can avoid forks. The arguments
13482 # must be portable across $(()) and expr.
13483 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
13484 eval 'as_fn_arith ()
13485 {
13486 as_val=$(( $* ))
13487 }'
13488 else
13489 as_fn_arith ()
13490 {
13491 as_val=`expr "$@" || test $? -eq 1`
13492 }
13493 fi # as_fn_arith
13494
13495
13496 if expr a : '\(a\)' >/dev/null 2>&1 &&
13497 test "X`expr 00001 : '.*\(...\)'`" = X001; then
13498 as_expr=expr
13499 else
13500 as_expr=false
13501 fi
13502
13503 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
13504 as_basename=basename
13505 else
13506 as_basename=false
13507 fi
13508
13509 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
13510 as_dirname=dirname
13511 else
13512 as_dirname=false
13513 fi
13514
13515 as_me=`$as_basename -- "$0" ||
13516 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
13517 X"$0" : 'X\(//\)$' \| \
13518 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
13519 $as_echo X/"$0" |
13520 sed '/^.*\/\([^/][^/]*\)\/*$/{
13521 s//\1/
13522 q
13523 }
13524 /^X\/\(\/\/\)$/{
13525 s//\1/
13526 q
13527 }
13528 /^X\/\(\/\).*/{
13529 s//\1/
13530 q
13531 }
13532 s/.*/./; q'`
13533
13534 # Avoid depending upon Character Ranges.
13535 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
13536 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
13537 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
13538 as_cr_digits='0123456789'
13539 as_cr_alnum=$as_cr_Letters$as_cr_digits
13540
13541 ECHO_C= ECHO_N= ECHO_T=
13542 case `echo -n x` in #(((((
13543 -n*)
13544 case `echo 'xy\c'` in
13545 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
13546 xy) ECHO_C='\c';;
13547 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
13548 ECHO_T=' ';;
13549 esac;;
13550 *)
13551 ECHO_N='-n';;
13552 esac
13553
13554 rm -f conf$$ conf$$.exe conf$$.file
13555 if test -d conf$$.dir; then
13556 rm -f conf$$.dir/conf$$.file
13557 else
13558 rm -f conf$$.dir
13559 mkdir conf$$.dir 2>/dev/null
13560 fi
13561 if (echo >conf$$.file) 2>/dev/null; then
13562 if ln -s conf$$.file conf$$ 2>/dev/null; then
13563 as_ln_s='ln -s'
13564 # ... but there are two gotchas:
13565 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
13566 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
13567 # In both cases, we have to default to `cp -p'.
13568 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
13569 as_ln_s='cp -p'
13570 elif ln conf$$.file conf$$ 2>/dev/null; then
13571 as_ln_s=ln
13572 else
13573 as_ln_s='cp -p'
13574 fi
13575 else
13576 as_ln_s='cp -p'
13577 fi
13578 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
13579 rmdir conf$$.dir 2>/dev/null
13580
13581
13582 # as_fn_mkdir_p
13583 # -------------
13584 # Create "$as_dir" as a directory, including parents if necessary.
13585 as_fn_mkdir_p ()
13586 {
13587
13588 case $as_dir in #(
13589 -*) as_dir=./$as_dir;;
13590 esac
13591 test -d "$as_dir" || eval $as_mkdir_p || {
13592 as_dirs=
13593 while :; do
13594 case $as_dir in #(
13595 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
13596 *) as_qdir=$as_dir;;
13597 esac
13598 as_dirs="'$as_qdir' $as_dirs"
13599 as_dir=`$as_dirname -- "$as_dir" ||
13600 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13601 X"$as_dir" : 'X\(//\)[^/]' \| \
13602 X"$as_dir" : 'X\(//\)$' \| \
13603 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
13604 $as_echo X"$as_dir" |
13605 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13606 s//\1/
13607 q
13608 }
13609 /^X\(\/\/\)[^/].*/{
13610 s//\1/
13611 q
13612 }
13613 /^X\(\/\/\)$/{
13614 s//\1/
13615 q
13616 }
13617 /^X\(\/\).*/{
13618 s//\1/
13619 q
13620 }
13621 s/.*/./; q'`
13622 test -d "$as_dir" && break
13623 done
13624 test -z "$as_dirs" || eval "mkdir $as_dirs"
13625 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
13626
13627
13628 } # as_fn_mkdir_p
13629 if mkdir -p . 2>/dev/null; then
13630 as_mkdir_p='mkdir -p "$as_dir"'
13631 else
13632 test -d ./-p && rmdir ./-p
13633 as_mkdir_p=false
13634 fi
13635
13636 if test -x / >/dev/null 2>&1; then
13637 as_test_x='test -x'
13638 else
13639 if ls -dL / >/dev/null 2>&1; then
13640 as_ls_L_option=L
13641 else
13642 as_ls_L_option=
13643 fi
13644 as_test_x='
13645 eval sh -c '\''
13646 if test -d "$1"; then
13647 test -d "$1/.";
13648 else
13649 case $1 in #(
13650 -*)set "./$1";;
13651 esac;
13652 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
13653 ???[sx]*):;;*)false;;esac;fi
13654 '\'' sh
13655 '
13656 fi
13657 as_executable_p=$as_test_x
13658
13659 # Sed expression to map a string onto a valid CPP name.
13660 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
13661
13662 # Sed expression to map a string onto a valid variable name.
13663 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
13664
13665
13666 exec 6>&1
13667 ## ----------------------------------- ##
13668 ## Main body of $CONFIG_STATUS script. ##
13669 ## ----------------------------------- ##
13670 _ASEOF
13671 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
13672
13673 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13674 # Save the log message, to keep $0 and so on meaningful, and to
13675 # report actual input values of CONFIG_FILES etc. instead of their
13676 # values after options handling.
13677 ac_log="
13678 This file was extended by $as_me, which was
13679 generated by GNU Autoconf 2.64. Invocation command line was
13680
13681 CONFIG_FILES = $CONFIG_FILES
13682 CONFIG_HEADERS = $CONFIG_HEADERS
13683 CONFIG_LINKS = $CONFIG_LINKS
13684 CONFIG_COMMANDS = $CONFIG_COMMANDS
13685 $ $0 $@
13686
13687 on `(hostname || uname -n) 2>/dev/null | sed 1q`
13688 "
13689
13690 _ACEOF
13691
13692 case $ac_config_files in *"
13693 "*) set x $ac_config_files; shift; ac_config_files=$*;;
13694 esac
13695
13696 case $ac_config_headers in *"
13697 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
13698 esac
13699
13700
13701 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13702 # Files that config.status was made for.
13703 config_files="$ac_config_files"
13704 config_headers="$ac_config_headers"
13705 config_commands="$ac_config_commands"
13706
13707 _ACEOF
13708
13709 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13710 ac_cs_usage="\
13711 \`$as_me' instantiates files and other configuration actions
13712 from templates according to the current configuration. Unless the files
13713 and actions are specified as TAGs, all are instantiated by default.
13714
13715 Usage: $0 [OPTION]... [TAG]...
13716
13717 -h, --help print this help, then exit
13718 -V, --version print version number and configuration settings, then exit
13719 -q, --quiet, --silent
13720 do not print progress messages
13721 -d, --debug don't remove temporary files
13722 --recheck update $as_me by reconfiguring in the same conditions
13723 --file=FILE[:TEMPLATE]
13724 instantiate the configuration file FILE
13725 --header=FILE[:TEMPLATE]
13726 instantiate the configuration header FILE
13727
13728 Configuration files:
13729 $config_files
13730
13731 Configuration headers:
13732 $config_headers
13733
13734 Configuration commands:
13735 $config_commands
13736
13737 Report bugs to the package provider."
13738
13739 _ACEOF
13740 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13741 ac_cs_version="\\
13742 config.status
13743 configured by $0, generated by GNU Autoconf 2.64,
13744 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
13745
13746 Copyright (C) 2009 Free Software Foundation, Inc.
13747 This config.status script is free software; the Free Software Foundation
13748 gives unlimited permission to copy, distribute and modify it."
13749
13750 ac_pwd='$ac_pwd'
13751 srcdir='$srcdir'
13752 INSTALL='$INSTALL'
13753 MKDIR_P='$MKDIR_P'
13754 AWK='$AWK'
13755 test -n "\$AWK" || AWK=awk
13756 _ACEOF
13757
13758 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13759 # The default lists apply if the user does not specify any file.
13760 ac_need_defaults=:
13761 while test $# != 0
13762 do
13763 case $1 in
13764 --*=*)
13765 ac_option=`expr "X$1" : 'X\([^=]*\)='`
13766 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
13767 ac_shift=:
13768 ;;
13769 *)
13770 ac_option=$1
13771 ac_optarg=$2
13772 ac_shift=shift
13773 ;;
13774 esac
13775
13776 case $ac_option in
13777 # Handling of the options.
13778 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
13779 ac_cs_recheck=: ;;
13780 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
13781 $as_echo "$ac_cs_version"; exit ;;
13782 --debug | --debu | --deb | --de | --d | -d )
13783 debug=: ;;
13784 --file | --fil | --fi | --f )
13785 $ac_shift
13786 case $ac_optarg in
13787 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
13788 esac
13789 as_fn_append CONFIG_FILES " '$ac_optarg'"
13790 ac_need_defaults=false;;
13791 --header | --heade | --head | --hea )
13792 $ac_shift
13793 case $ac_optarg in
13794 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
13795 esac
13796 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
13797 ac_need_defaults=false;;
13798 --he | --h)
13799 # Conflict between --help and --header
13800 as_fn_error "ambiguous option: \`$1'
13801 Try \`$0 --help' for more information.";;
13802 --help | --hel | -h )
13803 $as_echo "$ac_cs_usage"; exit ;;
13804 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
13805 | -silent | --silent | --silen | --sile | --sil | --si | --s)
13806 ac_cs_silent=: ;;
13807
13808 # This is an error.
13809 -*) as_fn_error "unrecognized option: \`$1'
13810 Try \`$0 --help' for more information." ;;
13811
13812 *) as_fn_append ac_config_targets " $1"
13813 ac_need_defaults=false ;;
13814
13815 esac
13816 shift
13817 done
13818
13819 ac_configure_extra_args=
13820
13821 if $ac_cs_silent; then
13822 exec 6>/dev/null
13823 ac_configure_extra_args="$ac_configure_extra_args --silent"
13824 fi
13825
13826 _ACEOF
13827 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13828 if \$ac_cs_recheck; then
13829 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
13830 shift
13831 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
13832 CONFIG_SHELL='$SHELL'
13833 export CONFIG_SHELL
13834 exec "\$@"
13835 fi
13836
13837 _ACEOF
13838 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13839 exec 5>>config.log
13840 {
13841 echo
13842 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
13843 ## Running $as_me. ##
13844 _ASBOX
13845 $as_echo "$ac_log"
13846 } >&5
13847
13848 _ACEOF
13849 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13850 #
13851 # INIT-COMMANDS
13852 #
13853 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
13854
13855
13856 # The HP-UX ksh and POSIX shell print the target directory to stdout
13857 # if CDPATH is set.
13858 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
13859
13860 sed_quote_subst='$sed_quote_subst'
13861 double_quote_subst='$double_quote_subst'
13862 delay_variable_subst='$delay_variable_subst'
13863 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
13864 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
13865 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
13866 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
13867 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
13868 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
13869 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
13870 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
13871 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
13872 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
13873 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
13874 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
13875 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
13876 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
13877 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
13878 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
13879 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
13880 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
13881 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
13882 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
13883 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
13884 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
13885 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
13886 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
13887 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
13888 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
13889 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
13890 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
13891 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
13892 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
13893 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
13894 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
13895 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
13896 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
13897 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
13898 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
13899 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
13900 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
13901 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
13902 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
13903 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
13904 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
13905 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
13906 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
13907 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
13908 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
13909 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
13910 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
13911 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address_lib_prefix" | $SED "$delay_single_quote_subst"`'
13912 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
13913 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
13914 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
13915 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
13916 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
13917 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
13918 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
13919 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
13920 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
13921 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
13922 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
13923 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
13924 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
13925 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
13926 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
13927 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
13928 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
13929 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
13930 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
13931 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
13932 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
13933 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
13934 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
13935 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
13936 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
13937 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
13938 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
13939 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
13940 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
13941 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
13942 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
13943 hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
13944 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
13945 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
13946 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
13947 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
13948 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
13949 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
13950 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
13951 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
13952 fix_srcfile_path='`$ECHO "$fix_srcfile_path" | $SED "$delay_single_quote_subst"`'
13953 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
13954 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
13955 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
13956 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
13957 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
13958 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
13959 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
13960 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
13961 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
13962 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
13963 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
13964 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
13965 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
13966 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
13967 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
13968 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
13969 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
13970 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
13971 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
13972 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
13973 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
13974 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
13975 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
13976 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
13977 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
13978 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
13979 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
13980 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
13981 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
13982 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
13983
13984 LTCC='$LTCC'
13985 LTCFLAGS='$LTCFLAGS'
13986 compiler='$compiler_DEFAULT'
13987
13988 # A function that is used when there is no print builtin or printf.
13989 func_fallback_echo ()
13990 {
13991 eval 'cat <<_LTECHO_EOF
13992 \$1
13993 _LTECHO_EOF'
13994 }
13995
13996 # Quote evaled strings.
13997 for var in SHELL \
13998 ECHO \
13999 SED \
14000 GREP \
14001 EGREP \
14002 FGREP \
14003 LD \
14004 NM \
14005 LN_S \
14006 lt_SP2NL \
14007 lt_NL2SP \
14008 reload_flag \
14009 OBJDUMP \
14010 deplibs_check_method \
14011 file_magic_cmd \
14012 AR \
14013 AR_FLAGS \
14014 STRIP \
14015 RANLIB \
14016 CC \
14017 CFLAGS \
14018 compiler \
14019 lt_cv_sys_global_symbol_pipe \
14020 lt_cv_sys_global_symbol_to_cdecl \
14021 lt_cv_sys_global_symbol_to_c_name_address \
14022 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
14023 lt_prog_compiler_no_builtin_flag \
14024 lt_prog_compiler_wl \
14025 lt_prog_compiler_pic \
14026 lt_prog_compiler_static \
14027 lt_cv_prog_compiler_c_o \
14028 need_locks \
14029 DSYMUTIL \
14030 NMEDIT \
14031 LIPO \
14032 OTOOL \
14033 OTOOL64 \
14034 shrext_cmds \
14035 export_dynamic_flag_spec \
14036 whole_archive_flag_spec \
14037 compiler_needs_object \
14038 with_gnu_ld \
14039 allow_undefined_flag \
14040 no_undefined_flag \
14041 hardcode_libdir_flag_spec \
14042 hardcode_libdir_flag_spec_ld \
14043 hardcode_libdir_separator \
14044 fix_srcfile_path \
14045 exclude_expsyms \
14046 include_expsyms \
14047 file_list_spec \
14048 variables_saved_for_relink \
14049 libname_spec \
14050 library_names_spec \
14051 soname_spec \
14052 install_override_mode \
14053 finish_eval \
14054 old_striplib \
14055 striplib; do
14056 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
14057 *[\\\\\\\`\\"\\\$]*)
14058 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
14059 ;;
14060 *)
14061 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
14062 ;;
14063 esac
14064 done
14065
14066 # Double-quote double-evaled strings.
14067 for var in reload_cmds \
14068 old_postinstall_cmds \
14069 old_postuninstall_cmds \
14070 old_archive_cmds \
14071 extract_expsyms_cmds \
14072 old_archive_from_new_cmds \
14073 old_archive_from_expsyms_cmds \
14074 archive_cmds \
14075 archive_expsym_cmds \
14076 module_cmds \
14077 module_expsym_cmds \
14078 export_symbols_cmds \
14079 prelink_cmds \
14080 postinstall_cmds \
14081 postuninstall_cmds \
14082 finish_cmds \
14083 sys_lib_search_path_spec \
14084 sys_lib_dlsearch_path_spec; do
14085 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
14086 *[\\\\\\\`\\"\\\$]*)
14087 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
14088 ;;
14089 *)
14090 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
14091 ;;
14092 esac
14093 done
14094
14095 ac_aux_dir='$ac_aux_dir'
14096 xsi_shell='$xsi_shell'
14097 lt_shell_append='$lt_shell_append'
14098
14099 # See if we are running on zsh, and set the options which allow our
14100 # commands through without removal of \ escapes INIT.
14101 if test -n "\${ZSH_VERSION+set}" ; then
14102 setopt NO_GLOB_SUBST
14103 fi
14104
14105
14106 PACKAGE='$PACKAGE'
14107 VERSION='$VERSION'
14108 TIMESTAMP='$TIMESTAMP'
14109 RM='$RM'
14110 ofile='$ofile'
14111
14112
14113
14114 # Capture the value of obsolete ALL_LINGUAS because we need it to compute
14115 # POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES, CATALOGS. But hide it
14116 # from automake.
14117 eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
14118 # Capture the value of LINGUAS because we need it to compute CATALOGS.
14119 LINGUAS="${LINGUAS-%UNSET%}"
14120
14121
14122 _ACEOF
14123
14124 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14125
14126 # Handling of arguments.
14127 for ac_config_target in $ac_config_targets
14128 do
14129 case $ac_config_target in
14130 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
14131 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h:config.in" ;;
14132 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
14133 "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
14134 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
14135 "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in:po/Make-in" ;;
14136
14137 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
14138 esac
14139 done
14140
14141
14142 # If the user did not use the arguments to specify the items to instantiate,
14143 # then the envvar interface is used. Set only those that are not.
14144 # We use the long form for the default assignment because of an extremely
14145 # bizarre bug on SunOS 4.1.3.
14146 if $ac_need_defaults; then
14147 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
14148 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
14149 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
14150 fi
14151
14152 # Have a temporary directory for convenience. Make it in the build tree
14153 # simply because there is no reason against having it here, and in addition,
14154 # creating and moving files from /tmp can sometimes cause problems.
14155 # Hook for its removal unless debugging.
14156 # Note that there is a small window in which the directory will not be cleaned:
14157 # after its creation but before its name has been assigned to `$tmp'.
14158 $debug ||
14159 {
14160 tmp=
14161 trap 'exit_status=$?
14162 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
14163 ' 0
14164 trap 'as_fn_exit 1' 1 2 13 15
14165 }
14166 # Create a (secure) tmp directory for tmp files.
14167
14168 {
14169 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
14170 test -n "$tmp" && test -d "$tmp"
14171 } ||
14172 {
14173 tmp=./conf$$-$RANDOM
14174 (umask 077 && mkdir "$tmp")
14175 } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
14176
14177 # Set up the scripts for CONFIG_FILES section.
14178 # No need to generate them if there are no CONFIG_FILES.
14179 # This happens for instance with `./config.status config.h'.
14180 if test -n "$CONFIG_FILES"; then
14181
14182 if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then
14183 ac_cs_awk_getline=:
14184 ac_cs_awk_pipe_init=
14185 ac_cs_awk_read_file='
14186 while ((getline aline < (F[key])) > 0)
14187 print(aline)
14188 close(F[key])'
14189 ac_cs_awk_pipe_fini=
14190 else
14191 ac_cs_awk_getline=false
14192 ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\""
14193 ac_cs_awk_read_file='
14194 print "|#_!!_#|"
14195 print "cat " F[key] " &&"
14196 '$ac_cs_awk_pipe_init
14197 # The final `:' finishes the AND list.
14198 ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }'
14199 fi
14200 ac_cr=`echo X | tr X '\015'`
14201 # On cygwin, bash can eat \r inside `` if the user requested igncr.
14202 # But we know of no other shell where ac_cr would be empty at this
14203 # point, so we can use a bashism as a fallback.
14204 if test "x$ac_cr" = x; then
14205 eval ac_cr=\$\'\\r\'
14206 fi
14207 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
14208 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
14209 ac_cs_awk_cr='\r'
14210 else
14211 ac_cs_awk_cr=$ac_cr
14212 fi
14213
14214 echo 'BEGIN {' >"$tmp/subs1.awk" &&
14215 _ACEOF
14216
14217 # Create commands to substitute file output variables.
14218 {
14219 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
14220 echo 'cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&' &&
14221 echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' &&
14222 echo "_ACAWK" &&
14223 echo "_ACEOF"
14224 } >conf$$files.sh &&
14225 . ./conf$$files.sh ||
14226 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
14227 rm -f conf$$files.sh
14228
14229 {
14230 echo "cat >conf$$subs.awk <<_ACEOF" &&
14231 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
14232 echo "_ACEOF"
14233 } >conf$$subs.sh ||
14234 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
14235 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
14236 ac_delim='%!_!# '
14237 for ac_last_try in false false false false false :; do
14238 . ./conf$$subs.sh ||
14239 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
14240
14241 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
14242 if test $ac_delim_n = $ac_delim_num; then
14243 break
14244 elif $ac_last_try; then
14245 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
14246 else
14247 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
14248 fi
14249 done
14250 rm -f conf$$subs.sh
14251
14252 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14253 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
14254 _ACEOF
14255 sed -n '
14256 h
14257 s/^/S["/; s/!.*/"]=/
14258 p
14259 g
14260 s/^[^!]*!//
14261 :repl
14262 t repl
14263 s/'"$ac_delim"'$//
14264 t delim
14265 :nl
14266 h
14267 s/\(.\{148\}\).*/\1/
14268 t more1
14269 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
14270 p
14271 n
14272 b repl
14273 :more1
14274 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
14275 p
14276 g
14277 s/.\{148\}//
14278 t nl
14279 :delim
14280 h
14281 s/\(.\{148\}\).*/\1/
14282 t more2
14283 s/["\\]/\\&/g; s/^/"/; s/$/"/
14284 p
14285 b
14286 :more2
14287 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
14288 p
14289 g
14290 s/.\{148\}//
14291 t delim
14292 ' <conf$$subs.awk | sed '
14293 /^[^""]/{
14294 N
14295 s/\n//
14296 }
14297 ' >>$CONFIG_STATUS || ac_write_fail=1
14298 rm -f conf$$subs.awk
14299 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14300 _ACAWK
14301 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
14302 for (key in S) S_is_set[key] = 1
14303 FS = "\a"
14304 \$ac_cs_awk_pipe_init
14305 }
14306 {
14307 line = $ 0
14308 nfields = split(line, field, "@")
14309 substed = 0
14310 len = length(field[1])
14311 for (i = 2; i < nfields; i++) {
14312 key = field[i]
14313 keylen = length(key)
14314 if (S_is_set[key]) {
14315 value = S[key]
14316 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
14317 len += length(value) + length(field[++i])
14318 substed = 1
14319 } else
14320 len += 1 + keylen
14321 }
14322 if (nfields == 3 && !substed) {
14323 key = field[2]
14324 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) {
14325 \$ac_cs_awk_read_file
14326 next
14327 }
14328 }
14329 print line
14330 }
14331 \$ac_cs_awk_pipe_fini
14332 _ACAWK
14333 _ACEOF
14334 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14335 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
14336 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
14337 else
14338 cat
14339 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
14340 || as_fn_error "could not setup config files machinery" "$LINENO" 5
14341 _ACEOF
14342
14343 # VPATH may cause trouble with some makes, so we remove $(srcdir),
14344 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
14345 # trailing colons and then remove the whole line if VPATH becomes empty
14346 # (actually we leave an empty line to preserve line numbers).
14347 if test "x$srcdir" = x.; then
14348 ac_vpsub='/^[ ]*VPATH[ ]*=/{
14349 s/:*\$(srcdir):*/:/
14350 s/:*\${srcdir}:*/:/
14351 s/:*@srcdir@:*/:/
14352 s/^\([^=]*=[ ]*\):*/\1/
14353 s/:*$//
14354 s/^[^=]*=[ ]*$//
14355 }'
14356 fi
14357
14358 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14359 fi # test -n "$CONFIG_FILES"
14360
14361 # Set up the scripts for CONFIG_HEADERS section.
14362 # No need to generate them if there are no CONFIG_HEADERS.
14363 # This happens for instance with `./config.status Makefile'.
14364 if test -n "$CONFIG_HEADERS"; then
14365 cat >"$tmp/defines.awk" <<\_ACAWK ||
14366 BEGIN {
14367 _ACEOF
14368
14369 # Transform confdefs.h into an awk script `defines.awk', embedded as
14370 # here-document in config.status, that substitutes the proper values into
14371 # config.h.in to produce config.h.
14372
14373 # Create a delimiter string that does not exist in confdefs.h, to ease
14374 # handling of long lines.
14375 ac_delim='%!_!# '
14376 for ac_last_try in false false :; do
14377 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
14378 if test -z "$ac_t"; then
14379 break
14380 elif $ac_last_try; then
14381 as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
14382 else
14383 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
14384 fi
14385 done
14386
14387 # For the awk script, D is an array of macro values keyed by name,
14388 # likewise P contains macro parameters if any. Preserve backslash
14389 # newline sequences.
14390
14391 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
14392 sed -n '
14393 s/.\{148\}/&'"$ac_delim"'/g
14394 t rset
14395 :rset
14396 s/^[ ]*#[ ]*define[ ][ ]*/ /
14397 t def
14398 d
14399 :def
14400 s/\\$//
14401 t bsnl
14402 s/["\\]/\\&/g
14403 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
14404 D["\1"]=" \3"/p
14405 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
14406 d
14407 :bsnl
14408 s/["\\]/\\&/g
14409 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
14410 D["\1"]=" \3\\\\\\n"\\/p
14411 t cont
14412 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
14413 t cont
14414 d
14415 :cont
14416 n
14417 s/.\{148\}/&'"$ac_delim"'/g
14418 t clear
14419 :clear
14420 s/\\$//
14421 t bsnlc
14422 s/["\\]/\\&/g; s/^/"/; s/$/"/p
14423 d
14424 :bsnlc
14425 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
14426 b cont
14427 ' <confdefs.h | sed '
14428 s/'"$ac_delim"'/"\\\
14429 "/g' >>$CONFIG_STATUS || ac_write_fail=1
14430
14431 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14432 for (key in D) D_is_set[key] = 1
14433 FS = "\a"
14434 }
14435 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
14436 line = \$ 0
14437 split(line, arg, " ")
14438 if (arg[1] == "#") {
14439 defundef = arg[2]
14440 mac1 = arg[3]
14441 } else {
14442 defundef = substr(arg[1], 2)
14443 mac1 = arg[2]
14444 }
14445 split(mac1, mac2, "(") #)
14446 macro = mac2[1]
14447 prefix = substr(line, 1, index(line, defundef) - 1)
14448 if (D_is_set[macro]) {
14449 # Preserve the white space surrounding the "#".
14450 print prefix "define", macro P[macro] D[macro]
14451 next
14452 } else {
14453 # Replace #undef with comments. This is necessary, for example,
14454 # in the case of _POSIX_SOURCE, which is predefined and required
14455 # on some systems where configure will not decide to define it.
14456 if (defundef == "undef") {
14457 print "/*", prefix defundef, macro, "*/"
14458 next
14459 }
14460 }
14461 }
14462 { print }
14463 _ACAWK
14464 _ACEOF
14465 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14466 as_fn_error "could not setup config headers machinery" "$LINENO" 5
14467 fi # test -n "$CONFIG_HEADERS"
14468
14469
14470 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
14471 shift
14472 for ac_tag
14473 do
14474 case $ac_tag in
14475 :[FHLC]) ac_mode=$ac_tag; continue;;
14476 esac
14477 case $ac_mode$ac_tag in
14478 :[FHL]*:*);;
14479 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
14480 :[FH]-) ac_tag=-:-;;
14481 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
14482 esac
14483 ac_save_IFS=$IFS
14484 IFS=:
14485 set x $ac_tag
14486 IFS=$ac_save_IFS
14487 shift
14488 ac_file=$1
14489 shift
14490
14491 case $ac_mode in
14492 :L) ac_source=$1;;
14493 :[FH])
14494 ac_file_inputs=
14495 for ac_f
14496 do
14497 case $ac_f in
14498 -) ac_f="$tmp/stdin";;
14499 *) # Look for the file first in the build tree, then in the source tree
14500 # (if the path is not absolute). The absolute path cannot be DOS-style,
14501 # because $ac_f cannot contain `:'.
14502 test -f "$ac_f" ||
14503 case $ac_f in
14504 [\\/$]*) false;;
14505 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
14506 esac ||
14507 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
14508 esac
14509 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
14510 as_fn_append ac_file_inputs " '$ac_f'"
14511 done
14512
14513 # Let's still pretend it is `configure' which instantiates (i.e., don't
14514 # use $as_me), people would be surprised to read:
14515 # /* config.h. Generated by config.status. */
14516 configure_input='Generated from '`
14517 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
14518 `' by configure.'
14519 if test x"$ac_file" != x-; then
14520 configure_input="$ac_file. $configure_input"
14521 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
14522 $as_echo "$as_me: creating $ac_file" >&6;}
14523 fi
14524 # Neutralize special characters interpreted by sed in replacement strings.
14525 case $configure_input in #(
14526 *\&* | *\|* | *\\* )
14527 ac_sed_conf_input=`$as_echo "$configure_input" |
14528 sed 's/[\\\\&|]/\\\\&/g'`;; #(
14529 *) ac_sed_conf_input=$configure_input;;
14530 esac
14531
14532 case $ac_tag in
14533 *:-:* | *:-) cat >"$tmp/stdin" \
14534 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
14535 esac
14536 ;;
14537 esac
14538
14539 ac_dir=`$as_dirname -- "$ac_file" ||
14540 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14541 X"$ac_file" : 'X\(//\)[^/]' \| \
14542 X"$ac_file" : 'X\(//\)$' \| \
14543 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
14544 $as_echo X"$ac_file" |
14545 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14546 s//\1/
14547 q
14548 }
14549 /^X\(\/\/\)[^/].*/{
14550 s//\1/
14551 q
14552 }
14553 /^X\(\/\/\)$/{
14554 s//\1/
14555 q
14556 }
14557 /^X\(\/\).*/{
14558 s//\1/
14559 q
14560 }
14561 s/.*/./; q'`
14562 as_dir="$ac_dir"; as_fn_mkdir_p
14563 ac_builddir=.
14564
14565 case "$ac_dir" in
14566 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
14567 *)
14568 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
14569 # A ".." for each directory in $ac_dir_suffix.
14570 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
14571 case $ac_top_builddir_sub in
14572 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
14573 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
14574 esac ;;
14575 esac
14576 ac_abs_top_builddir=$ac_pwd
14577 ac_abs_builddir=$ac_pwd$ac_dir_suffix
14578 # for backward compatibility:
14579 ac_top_builddir=$ac_top_build_prefix
14580
14581 case $srcdir in
14582 .) # We are building in place.
14583 ac_srcdir=.
14584 ac_top_srcdir=$ac_top_builddir_sub
14585 ac_abs_top_srcdir=$ac_pwd ;;
14586 [\\/]* | ?:[\\/]* ) # Absolute name.
14587 ac_srcdir=$srcdir$ac_dir_suffix;
14588 ac_top_srcdir=$srcdir
14589 ac_abs_top_srcdir=$srcdir ;;
14590 *) # Relative name.
14591 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
14592 ac_top_srcdir=$ac_top_build_prefix$srcdir
14593 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
14594 esac
14595 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
14596
14597
14598 case $ac_mode in
14599 :F)
14600 #
14601 # CONFIG_FILE
14602 #
14603
14604 case $INSTALL in
14605 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
14606 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
14607 esac
14608 ac_MKDIR_P=$MKDIR_P
14609 case $MKDIR_P in
14610 [\\/$]* | ?:[\\/]* ) ;;
14611 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
14612 esac
14613 _ACEOF
14614
14615 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14616 # If the template does not know about datarootdir, expand it.
14617 # FIXME: This hack should be removed a few years after 2.60.
14618 ac_datarootdir_hack=; ac_datarootdir_seen=
14619 ac_sed_dataroot='
14620 /datarootdir/ {
14621 p
14622 q
14623 }
14624 /@datadir@/p
14625 /@docdir@/p
14626 /@infodir@/p
14627 /@localedir@/p
14628 /@mandir@/p'
14629 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
14630 *datarootdir*) ac_datarootdir_seen=yes;;
14631 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
14632 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
14633 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
14634 _ACEOF
14635 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14636 ac_datarootdir_hack='
14637 s&@datadir@&$datadir&g
14638 s&@docdir@&$docdir&g
14639 s&@infodir@&$infodir&g
14640 s&@localedir@&$localedir&g
14641 s&@mandir@&$mandir&g
14642 s&\\\${datarootdir}&$datarootdir&g' ;;
14643 esac
14644 _ACEOF
14645
14646 # Neutralize VPATH when `$srcdir' = `.'.
14647 # Shell code in configure.ac might set extrasub.
14648 # FIXME: do we really want to maintain this feature?
14649 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14650 ac_sed_extra="$ac_vpsub
14651 $extrasub
14652 _ACEOF
14653 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14654 :t
14655 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
14656 s|@configure_input@|$ac_sed_conf_input|;t t
14657 s&@top_builddir@&$ac_top_builddir_sub&;t t
14658 s&@top_build_prefix@&$ac_top_build_prefix&;t t
14659 s&@srcdir@&$ac_srcdir&;t t
14660 s&@abs_srcdir@&$ac_abs_srcdir&;t t
14661 s&@top_srcdir@&$ac_top_srcdir&;t t
14662 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
14663 s&@builddir@&$ac_builddir&;t t
14664 s&@abs_builddir@&$ac_abs_builddir&;t t
14665 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
14666 s&@INSTALL@&$ac_INSTALL&;t t
14667 s&@MKDIR_P@&$ac_MKDIR_P&;t t
14668 $ac_datarootdir_hack
14669 "
14670 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
14671 if $ac_cs_awk_getline; then
14672 $AWK -f "$tmp/subs.awk"
14673 else
14674 $AWK -f "$tmp/subs.awk" | $SHELL
14675 fi >$tmp/out \
14676 || as_fn_error "could not create $ac_file" "$LINENO" 5
14677
14678 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
14679 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
14680 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
14681 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
14682 which seems to be undefined. Please make sure it is defined." >&5
14683 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
14684 which seems to be undefined. Please make sure it is defined." >&2;}
14685
14686 rm -f "$tmp/stdin"
14687 case $ac_file in
14688 -) cat "$tmp/out" && rm -f "$tmp/out";;
14689 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
14690 esac \
14691 || as_fn_error "could not create $ac_file" "$LINENO" 5
14692 ;;
14693 :H)
14694 #
14695 # CONFIG_HEADER
14696 #
14697 if test x"$ac_file" != x-; then
14698 {
14699 $as_echo "/* $configure_input */" \
14700 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
14701 } >"$tmp/config.h" \
14702 || as_fn_error "could not create $ac_file" "$LINENO" 5
14703 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
14704 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
14705 $as_echo "$as_me: $ac_file is unchanged" >&6;}
14706 else
14707 rm -f "$ac_file"
14708 mv "$tmp/config.h" "$ac_file" \
14709 || as_fn_error "could not create $ac_file" "$LINENO" 5
14710 fi
14711 else
14712 $as_echo "/* $configure_input */" \
14713 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
14714 || as_fn_error "could not create -" "$LINENO" 5
14715 fi
14716 # Compute "$ac_file"'s index in $config_headers.
14717 _am_arg="$ac_file"
14718 _am_stamp_count=1
14719 for _am_header in $config_headers :; do
14720 case $_am_header in
14721 $_am_arg | $_am_arg:* )
14722 break ;;
14723 * )
14724 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
14725 esac
14726 done
14727 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
14728 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14729 X"$_am_arg" : 'X\(//\)[^/]' \| \
14730 X"$_am_arg" : 'X\(//\)$' \| \
14731 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
14732 $as_echo X"$_am_arg" |
14733 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14734 s//\1/
14735 q
14736 }
14737 /^X\(\/\/\)[^/].*/{
14738 s//\1/
14739 q
14740 }
14741 /^X\(\/\/\)$/{
14742 s//\1/
14743 q
14744 }
14745 /^X\(\/\).*/{
14746 s//\1/
14747 q
14748 }
14749 s/.*/./; q'`/stamp-h$_am_stamp_count
14750 ;;
14751
14752 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
14753 $as_echo "$as_me: executing $ac_file commands" >&6;}
14754 ;;
14755 esac
14756
14757
14758 case $ac_file$ac_mode in
14759 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
14760 # Autoconf 2.62 quotes --file arguments for eval, but not when files
14761 # are listed without --file. Let's play safe and only enable the eval
14762 # if we detect the quoting.
14763 case $CONFIG_FILES in
14764 *\'*) eval set x "$CONFIG_FILES" ;;
14765 *) set x $CONFIG_FILES ;;
14766 esac
14767 shift
14768 for mf
14769 do
14770 # Strip MF so we end up with the name of the file.
14771 mf=`echo "$mf" | sed -e 's/:.*$//'`
14772 # Check whether this is an Automake generated Makefile or not.
14773 # We used to match only the files named `Makefile.in', but
14774 # some people rename them; so instead we look at the file content.
14775 # Grep'ing the first line is not enough: some people post-process
14776 # each Makefile.in and add a new line on top of each file to say so.
14777 # Grep'ing the whole file is not good either: AIX grep has a line
14778 # limit of 2048, but all sed's we know have understand at least 4000.
14779 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
14780 dirpart=`$as_dirname -- "$mf" ||
14781 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14782 X"$mf" : 'X\(//\)[^/]' \| \
14783 X"$mf" : 'X\(//\)$' \| \
14784 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
14785 $as_echo X"$mf" |
14786 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14787 s//\1/
14788 q
14789 }
14790 /^X\(\/\/\)[^/].*/{
14791 s//\1/
14792 q
14793 }
14794 /^X\(\/\/\)$/{
14795 s//\1/
14796 q
14797 }
14798 /^X\(\/\).*/{
14799 s//\1/
14800 q
14801 }
14802 s/.*/./; q'`
14803 else
14804 continue
14805 fi
14806 # Extract the definition of DEPDIR, am__include, and am__quote
14807 # from the Makefile without running `make'.
14808 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
14809 test -z "$DEPDIR" && continue
14810 am__include=`sed -n 's/^am__include = //p' < "$mf"`
14811 test -z "am__include" && continue
14812 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
14813 # When using ansi2knr, U may be empty or an underscore; expand it
14814 U=`sed -n 's/^U = //p' < "$mf"`
14815 # Find all dependency output files, they are included files with
14816 # $(DEPDIR) in their names. We invoke sed twice because it is the
14817 # simplest approach to changing $(DEPDIR) to its actual value in the
14818 # expansion.
14819 for file in `sed -n "
14820 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
14821 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
14822 # Make sure the directory exists.
14823 test -f "$dirpart/$file" && continue
14824 fdir=`$as_dirname -- "$file" ||
14825 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14826 X"$file" : 'X\(//\)[^/]' \| \
14827 X"$file" : 'X\(//\)$' \| \
14828 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
14829 $as_echo X"$file" |
14830 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14831 s//\1/
14832 q
14833 }
14834 /^X\(\/\/\)[^/].*/{
14835 s//\1/
14836 q
14837 }
14838 /^X\(\/\/\)$/{
14839 s//\1/
14840 q
14841 }
14842 /^X\(\/\).*/{
14843 s//\1/
14844 q
14845 }
14846 s/.*/./; q'`
14847 as_dir=$dirpart/$fdir; as_fn_mkdir_p
14848 # echo "creating $dirpart/$file"
14849 echo '# dummy' > "$dirpart/$file"
14850 done
14851 done
14852 }
14853 ;;
14854 "libtool":C)
14855
14856 # See if we are running on zsh, and set the options which allow our
14857 # commands through without removal of \ escapes.
14858 if test -n "${ZSH_VERSION+set}" ; then
14859 setopt NO_GLOB_SUBST
14860 fi
14861
14862 cfgfile="${ofile}T"
14863 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
14864 $RM "$cfgfile"
14865
14866 cat <<_LT_EOF >> "$cfgfile"
14867 #! $SHELL
14868
14869 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
14870 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
14871 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
14872 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
14873 #
14874 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
14875 # 2006, 2007, 2008, 2009 Free Software Foundation, Inc.
14876 # Written by Gordon Matzigkeit, 1996
14877 #
14878 # This file is part of GNU Libtool.
14879 #
14880 # GNU Libtool is free software; you can redistribute it and/or
14881 # modify it under the terms of the GNU General Public License as
14882 # published by the Free Software Foundation; either version 2 of
14883 # the License, or (at your option) any later version.
14884 #
14885 # As a special exception to the GNU General Public License,
14886 # if you distribute this file as part of a program or library that
14887 # is built using GNU Libtool, you may include this file under the
14888 # same distribution terms that you use for the rest of that program.
14889 #
14890 # GNU Libtool is distributed in the hope that it will be useful,
14891 # but WITHOUT ANY WARRANTY; without even the implied warranty of
14892 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14893 # GNU General Public License for more details.
14894 #
14895 # You should have received a copy of the GNU General Public License
14896 # along with GNU Libtool; see the file COPYING. If not, a copy
14897 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
14898 # obtained by writing to the Free Software Foundation, Inc.,
14899 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
14900
14901
14902 # The names of the tagged configurations supported by this script.
14903 available_tags=""
14904
14905 # ### BEGIN LIBTOOL CONFIG
14906
14907 # Which release of libtool.m4 was used?
14908 macro_version=$macro_version
14909 macro_revision=$macro_revision
14910
14911 # Whether or not to build shared libraries.
14912 build_libtool_libs=$enable_shared
14913
14914 # Whether or not to build static libraries.
14915 build_old_libs=$enable_static
14916
14917 # What type of objects to build.
14918 pic_mode=$pic_mode
14919
14920 # Whether or not to optimize for fast installation.
14921 fast_install=$enable_fast_install
14922
14923 # Shell to use when invoking shell scripts.
14924 SHELL=$lt_SHELL
14925
14926 # An echo program that protects backslashes.
14927 ECHO=$lt_ECHO
14928
14929 # The host system.
14930 host_alias=$host_alias
14931 host=$host
14932 host_os=$host_os
14933
14934 # The build system.
14935 build_alias=$build_alias
14936 build=$build
14937 build_os=$build_os
14938
14939 # A sed program that does not truncate output.
14940 SED=$lt_SED
14941
14942 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
14943 Xsed="\$SED -e 1s/^X//"
14944
14945 # A grep program that handles long lines.
14946 GREP=$lt_GREP
14947
14948 # An ERE matcher.
14949 EGREP=$lt_EGREP
14950
14951 # A literal string matcher.
14952 FGREP=$lt_FGREP
14953
14954 # A BSD- or MS-compatible name lister.
14955 NM=$lt_NM
14956
14957 # Whether we need soft or hard links.
14958 LN_S=$lt_LN_S
14959
14960 # What is the maximum length of a command?
14961 max_cmd_len=$max_cmd_len
14962
14963 # Object file suffix (normally "o").
14964 objext=$ac_objext
14965
14966 # Executable file suffix (normally "").
14967 exeext=$exeext
14968
14969 # whether the shell understands "unset".
14970 lt_unset=$lt_unset
14971
14972 # turn spaces into newlines.
14973 SP2NL=$lt_lt_SP2NL
14974
14975 # turn newlines into spaces.
14976 NL2SP=$lt_lt_NL2SP
14977
14978 # An object symbol dumper.
14979 OBJDUMP=$lt_OBJDUMP
14980
14981 # Method to check whether dependent libraries are shared objects.
14982 deplibs_check_method=$lt_deplibs_check_method
14983
14984 # Command to use when deplibs_check_method == "file_magic".
14985 file_magic_cmd=$lt_file_magic_cmd
14986
14987 # The archiver.
14988 AR=$lt_AR
14989 AR_FLAGS=$lt_AR_FLAGS
14990
14991 # A symbol stripping program.
14992 STRIP=$lt_STRIP
14993
14994 # Commands used to install an old-style archive.
14995 RANLIB=$lt_RANLIB
14996 old_postinstall_cmds=$lt_old_postinstall_cmds
14997 old_postuninstall_cmds=$lt_old_postuninstall_cmds
14998
14999 # Whether to use a lock for old archive extraction.
15000 lock_old_archive_extraction=$lock_old_archive_extraction
15001
15002 # A C compiler.
15003 LTCC=$lt_CC
15004
15005 # LTCC compiler flags.
15006 LTCFLAGS=$lt_CFLAGS
15007
15008 # Take the output of nm and produce a listing of raw symbols and C names.
15009 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
15010
15011 # Transform the output of nm in a proper C declaration.
15012 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
15013
15014 # Transform the output of nm in a C name address pair.
15015 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
15016
15017 # Transform the output of nm in a C name address pair when lib prefix is needed.
15018 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
15019
15020 # The name of the directory that contains temporary libtool files.
15021 objdir=$objdir
15022
15023 # Used to examine libraries when file_magic_cmd begins with "file".
15024 MAGIC_CMD=$MAGIC_CMD
15025
15026 # Must we lock files when doing compilation?
15027 need_locks=$lt_need_locks
15028
15029 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
15030 DSYMUTIL=$lt_DSYMUTIL
15031
15032 # Tool to change global to local symbols on Mac OS X.
15033 NMEDIT=$lt_NMEDIT
15034
15035 # Tool to manipulate fat objects and archives on Mac OS X.
15036 LIPO=$lt_LIPO
15037
15038 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
15039 OTOOL=$lt_OTOOL
15040
15041 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
15042 OTOOL64=$lt_OTOOL64
15043
15044 # Old archive suffix (normally "a").
15045 libext=$libext
15046
15047 # Shared library suffix (normally ".so").
15048 shrext_cmds=$lt_shrext_cmds
15049
15050 # The commands to extract the exported symbol list from a shared archive.
15051 extract_expsyms_cmds=$lt_extract_expsyms_cmds
15052
15053 # Variables whose values should be saved in libtool wrapper scripts and
15054 # restored at link time.
15055 variables_saved_for_relink=$lt_variables_saved_for_relink
15056
15057 # Do we need the "lib" prefix for modules?
15058 need_lib_prefix=$need_lib_prefix
15059
15060 # Do we need a version for libraries?
15061 need_version=$need_version
15062
15063 # Library versioning type.
15064 version_type=$version_type
15065
15066 # Shared library runtime path variable.
15067 runpath_var=$runpath_var
15068
15069 # Shared library path variable.
15070 shlibpath_var=$shlibpath_var
15071
15072 # Is shlibpath searched before the hard-coded library search path?
15073 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
15074
15075 # Format of library name prefix.
15076 libname_spec=$lt_libname_spec
15077
15078 # List of archive names. First name is the real one, the rest are links.
15079 # The last name is the one that the linker finds with -lNAME
15080 library_names_spec=$lt_library_names_spec
15081
15082 # The coded name of the library, if different from the real name.
15083 soname_spec=$lt_soname_spec
15084
15085 # Permission mode override for installation of shared libraries.
15086 install_override_mode=$lt_install_override_mode
15087
15088 # Command to use after installation of a shared archive.
15089 postinstall_cmds=$lt_postinstall_cmds
15090
15091 # Command to use after uninstallation of a shared archive.
15092 postuninstall_cmds=$lt_postuninstall_cmds
15093
15094 # Commands used to finish a libtool library installation in a directory.
15095 finish_cmds=$lt_finish_cmds
15096
15097 # As "finish_cmds", except a single script fragment to be evaled but
15098 # not shown.
15099 finish_eval=$lt_finish_eval
15100
15101 # Whether we should hardcode library paths into libraries.
15102 hardcode_into_libs=$hardcode_into_libs
15103
15104 # Compile-time system search path for libraries.
15105 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
15106
15107 # Run-time system search path for libraries.
15108 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
15109
15110 # Whether dlopen is supported.
15111 dlopen_support=$enable_dlopen
15112
15113 # Whether dlopen of programs is supported.
15114 dlopen_self=$enable_dlopen_self
15115
15116 # Whether dlopen of statically linked programs is supported.
15117 dlopen_self_static=$enable_dlopen_self_static
15118
15119 # Commands to strip libraries.
15120 old_striplib=$lt_old_striplib
15121 striplib=$lt_striplib
15122
15123
15124 # The linker used to build libraries.
15125 LD=$lt_LD
15126
15127 # How to create reloadable object files.
15128 reload_flag=$lt_reload_flag
15129 reload_cmds=$lt_reload_cmds
15130
15131 # Commands used to build an old-style archive.
15132 old_archive_cmds=$lt_old_archive_cmds
15133
15134 # A language specific compiler.
15135 CC=$lt_compiler
15136
15137 # Is the compiler the GNU compiler?
15138 with_gcc=$GCC
15139
15140 # Compiler flag to turn off builtin functions.
15141 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
15142
15143 # How to pass a linker flag through the compiler.
15144 wl=$lt_lt_prog_compiler_wl
15145
15146 # Additional compiler flags for building library objects.
15147 pic_flag=$lt_lt_prog_compiler_pic
15148
15149 # Compiler flag to prevent dynamic linking.
15150 link_static_flag=$lt_lt_prog_compiler_static
15151
15152 # Does compiler simultaneously support -c and -o options?
15153 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
15154
15155 # Whether or not to add -lc for building shared libraries.
15156 build_libtool_need_lc=$archive_cmds_need_lc
15157
15158 # Whether or not to disallow shared libs when runtime libs are static.
15159 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
15160
15161 # Compiler flag to allow reflexive dlopens.
15162 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
15163
15164 # Compiler flag to generate shared objects directly from archives.
15165 whole_archive_flag_spec=$lt_whole_archive_flag_spec
15166
15167 # Whether the compiler copes with passing no objects directly.
15168 compiler_needs_object=$lt_compiler_needs_object
15169
15170 # Create an old-style archive from a shared archive.
15171 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
15172
15173 # Create a temporary old-style archive to link instead of a shared archive.
15174 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
15175
15176 # Commands used to build a shared archive.
15177 archive_cmds=$lt_archive_cmds
15178 archive_expsym_cmds=$lt_archive_expsym_cmds
15179
15180 # Commands used to build a loadable module if different from building
15181 # a shared archive.
15182 module_cmds=$lt_module_cmds
15183 module_expsym_cmds=$lt_module_expsym_cmds
15184
15185 # Whether we are building with GNU ld or not.
15186 with_gnu_ld=$lt_with_gnu_ld
15187
15188 # Flag that allows shared libraries with undefined symbols to be built.
15189 allow_undefined_flag=$lt_allow_undefined_flag
15190
15191 # Flag that enforces no undefined symbols.
15192 no_undefined_flag=$lt_no_undefined_flag
15193
15194 # Flag to hardcode \$libdir into a binary during linking.
15195 # This must work even if \$libdir does not exist
15196 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
15197
15198 # If ld is used when linking, flag to hardcode \$libdir into a binary
15199 # during linking. This must work even if \$libdir does not exist.
15200 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
15201
15202 # Whether we need a single "-rpath" flag with a separated argument.
15203 hardcode_libdir_separator=$lt_hardcode_libdir_separator
15204
15205 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
15206 # DIR into the resulting binary.
15207 hardcode_direct=$hardcode_direct
15208
15209 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
15210 # DIR into the resulting binary and the resulting library dependency is
15211 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
15212 # library is relocated.
15213 hardcode_direct_absolute=$hardcode_direct_absolute
15214
15215 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
15216 # into the resulting binary.
15217 hardcode_minus_L=$hardcode_minus_L
15218
15219 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
15220 # into the resulting binary.
15221 hardcode_shlibpath_var=$hardcode_shlibpath_var
15222
15223 # Set to "yes" if building a shared library automatically hardcodes DIR
15224 # into the library and all subsequent libraries and executables linked
15225 # against it.
15226 hardcode_automatic=$hardcode_automatic
15227
15228 # Set to yes if linker adds runtime paths of dependent libraries
15229 # to runtime path list.
15230 inherit_rpath=$inherit_rpath
15231
15232 # Whether libtool must link a program against all its dependency libraries.
15233 link_all_deplibs=$link_all_deplibs
15234
15235 # Fix the shell variable \$srcfile for the compiler.
15236 fix_srcfile_path=$lt_fix_srcfile_path
15237
15238 # Set to "yes" if exported symbols are required.
15239 always_export_symbols=$always_export_symbols
15240
15241 # The commands to list exported symbols.
15242 export_symbols_cmds=$lt_export_symbols_cmds
15243
15244 # Symbols that should not be listed in the preloaded symbols.
15245 exclude_expsyms=$lt_exclude_expsyms
15246
15247 # Symbols that must always be exported.
15248 include_expsyms=$lt_include_expsyms
15249
15250 # Commands necessary for linking programs (against libraries) with templates.
15251 prelink_cmds=$lt_prelink_cmds
15252
15253 # Specify filename containing input files.
15254 file_list_spec=$lt_file_list_spec
15255
15256 # How to hardcode a shared library path into an executable.
15257 hardcode_action=$hardcode_action
15258
15259 # ### END LIBTOOL CONFIG
15260
15261 _LT_EOF
15262
15263 case $host_os in
15264 aix3*)
15265 cat <<\_LT_EOF >> "$cfgfile"
15266 # AIX sometimes has problems with the GCC collect2 program. For some
15267 # reason, if we set the COLLECT_NAMES environment variable, the problems
15268 # vanish in a puff of smoke.
15269 if test "X${COLLECT_NAMES+set}" != Xset; then
15270 COLLECT_NAMES=
15271 export COLLECT_NAMES
15272 fi
15273 _LT_EOF
15274 ;;
15275 esac
15276
15277
15278 ltmain="$ac_aux_dir/ltmain.sh"
15279
15280
15281 # We use sed instead of cat because bash on DJGPP gets confused if
15282 # if finds mixed CR/LF and LF-only lines. Since sed operates in
15283 # text mode, it properly converts lines to CR/LF. This bash problem
15284 # is reportedly fixed, but why not run on old versions too?
15285 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
15286 || (rm -f "$cfgfile"; exit 1)
15287
15288 case $xsi_shell in
15289 yes)
15290 cat << \_LT_EOF >> "$cfgfile"
15291
15292 # func_dirname file append nondir_replacement
15293 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
15294 # otherwise set result to NONDIR_REPLACEMENT.
15295 func_dirname ()
15296 {
15297 case ${1} in
15298 */*) func_dirname_result="${1%/*}${2}" ;;
15299 * ) func_dirname_result="${3}" ;;
15300 esac
15301 }
15302
15303 # func_basename file
15304 func_basename ()
15305 {
15306 func_basename_result="${1##*/}"
15307 }
15308
15309 # func_dirname_and_basename file append nondir_replacement
15310 # perform func_basename and func_dirname in a single function
15311 # call:
15312 # dirname: Compute the dirname of FILE. If nonempty,
15313 # add APPEND to the result, otherwise set result
15314 # to NONDIR_REPLACEMENT.
15315 # value returned in "$func_dirname_result"
15316 # basename: Compute filename of FILE.
15317 # value retuned in "$func_basename_result"
15318 # Implementation must be kept synchronized with func_dirname
15319 # and func_basename. For efficiency, we do not delegate to
15320 # those functions but instead duplicate the functionality here.
15321 func_dirname_and_basename ()
15322 {
15323 case ${1} in
15324 */*) func_dirname_result="${1%/*}${2}" ;;
15325 * ) func_dirname_result="${3}" ;;
15326 esac
15327 func_basename_result="${1##*/}"
15328 }
15329
15330 # func_stripname prefix suffix name
15331 # strip PREFIX and SUFFIX off of NAME.
15332 # PREFIX and SUFFIX must not contain globbing or regex special
15333 # characters, hashes, percent signs, but SUFFIX may contain a leading
15334 # dot (in which case that matches only a dot).
15335 func_stripname ()
15336 {
15337 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
15338 # positional parameters, so assign one to ordinary parameter first.
15339 func_stripname_result=${3}
15340 func_stripname_result=${func_stripname_result#"${1}"}
15341 func_stripname_result=${func_stripname_result%"${2}"}
15342 }
15343
15344 # func_opt_split
15345 func_opt_split ()
15346 {
15347 func_opt_split_opt=${1%%=*}
15348 func_opt_split_arg=${1#*=}
15349 }
15350
15351 # func_lo2o object
15352 func_lo2o ()
15353 {
15354 case ${1} in
15355 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
15356 *) func_lo2o_result=${1} ;;
15357 esac
15358 }
15359
15360 # func_xform libobj-or-source
15361 func_xform ()
15362 {
15363 func_xform_result=${1%.*}.lo
15364 }
15365
15366 # func_arith arithmetic-term...
15367 func_arith ()
15368 {
15369 func_arith_result=$(( $* ))
15370 }
15371
15372 # func_len string
15373 # STRING may not start with a hyphen.
15374 func_len ()
15375 {
15376 func_len_result=${#1}
15377 }
15378
15379 _LT_EOF
15380 ;;
15381 *) # Bourne compatible functions.
15382 cat << \_LT_EOF >> "$cfgfile"
15383
15384 # func_dirname file append nondir_replacement
15385 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
15386 # otherwise set result to NONDIR_REPLACEMENT.
15387 func_dirname ()
15388 {
15389 # Extract subdirectory from the argument.
15390 func_dirname_result=`$ECHO "${1}" | $SED "$dirname"`
15391 if test "X$func_dirname_result" = "X${1}"; then
15392 func_dirname_result="${3}"
15393 else
15394 func_dirname_result="$func_dirname_result${2}"
15395 fi
15396 }
15397
15398 # func_basename file
15399 func_basename ()
15400 {
15401 func_basename_result=`$ECHO "${1}" | $SED "$basename"`
15402 }
15403
15404
15405 # func_stripname prefix suffix name
15406 # strip PREFIX and SUFFIX off of NAME.
15407 # PREFIX and SUFFIX must not contain globbing or regex special
15408 # characters, hashes, percent signs, but SUFFIX may contain a leading
15409 # dot (in which case that matches only a dot).
15410 # func_strip_suffix prefix name
15411 func_stripname ()
15412 {
15413 case ${2} in
15414 .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
15415 *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
15416 esac
15417 }
15418
15419 # sed scripts:
15420 my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
15421 my_sed_long_arg='1s/^-[^=]*=//'
15422
15423 # func_opt_split
15424 func_opt_split ()
15425 {
15426 func_opt_split_opt=`$ECHO "${1}" | $SED "$my_sed_long_opt"`
15427 func_opt_split_arg=`$ECHO "${1}" | $SED "$my_sed_long_arg"`
15428 }
15429
15430 # func_lo2o object
15431 func_lo2o ()
15432 {
15433 func_lo2o_result=`$ECHO "${1}" | $SED "$lo2o"`
15434 }
15435
15436 # func_xform libobj-or-source
15437 func_xform ()
15438 {
15439 func_xform_result=`$ECHO "${1}" | $SED 's/\.[^.]*$/.lo/'`
15440 }
15441
15442 # func_arith arithmetic-term...
15443 func_arith ()
15444 {
15445 func_arith_result=`expr "$@"`
15446 }
15447
15448 # func_len string
15449 # STRING may not start with a hyphen.
15450 func_len ()
15451 {
15452 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
15453 }
15454
15455 _LT_EOF
15456 esac
15457
15458 case $lt_shell_append in
15459 yes)
15460 cat << \_LT_EOF >> "$cfgfile"
15461
15462 # func_append var value
15463 # Append VALUE to the end of shell variable VAR.
15464 func_append ()
15465 {
15466 eval "$1+=\$2"
15467 }
15468 _LT_EOF
15469 ;;
15470 *)
15471 cat << \_LT_EOF >> "$cfgfile"
15472
15473 # func_append var value
15474 # Append VALUE to the end of shell variable VAR.
15475 func_append ()
15476 {
15477 eval "$1=\$$1\$2"
15478 }
15479
15480 _LT_EOF
15481 ;;
15482 esac
15483
15484
15485 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
15486 || (rm -f "$cfgfile"; exit 1)
15487
15488 mv -f "$cfgfile" "$ofile" ||
15489 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
15490 chmod +x "$ofile"
15491
15492 ;;
15493 "default-1":C)
15494 for ac_file in $CONFIG_FILES; do
15495 # Support "outfile[:infile[:infile...]]"
15496 case "$ac_file" in
15497 *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
15498 esac
15499 # PO directories have a Makefile.in generated from Makefile.in.in.
15500 case "$ac_file" in */Makefile.in)
15501 # Adjust a relative srcdir.
15502 ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
15503 ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
15504 ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
15505 # In autoconf-2.13 it is called $ac_given_srcdir.
15506 # In autoconf-2.50 it is called $srcdir.
15507 test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
15508 case "$ac_given_srcdir" in
15509 .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
15510 /*) top_srcdir="$ac_given_srcdir" ;;
15511 *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
15512 esac
15513 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
15514 rm -f "$ac_dir/POTFILES"
15515 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
15516 cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
15517 POMAKEFILEDEPS="POTFILES.in"
15518 # ALL_LINGUAS, POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES depend
15519 # on $ac_dir but don't depend on user-specified configuration
15520 # parameters.
15521 if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
15522 # The LINGUAS file contains the set of available languages.
15523 if test -n "$OBSOLETE_ALL_LINGUAS"; then
15524 test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
15525 fi
15526 ALL_LINGUAS_=`sed -e "/^#/d" "$ac_given_srcdir/$ac_dir/LINGUAS"`
15527 # Hide the ALL_LINGUAS assigment from automake.
15528 eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
15529 POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
15530 else
15531 # The set of available languages was given in configure.in.
15532 eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
15533 fi
15534 case "$ac_given_srcdir" in
15535 .) srcdirpre= ;;
15536 *) srcdirpre='$(srcdir)/' ;;
15537 esac
15538 POFILES=
15539 GMOFILES=
15540 UPDATEPOFILES=
15541 DUMMYPOFILES=
15542 for lang in $ALL_LINGUAS; do
15543 POFILES="$POFILES $srcdirpre$lang.po"
15544 GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
15545 UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
15546 DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
15547 done
15548 # CATALOGS depends on both $ac_dir and the user's LINGUAS
15549 # environment variable.
15550 INST_LINGUAS=
15551 if test -n "$ALL_LINGUAS"; then
15552 for presentlang in $ALL_LINGUAS; do
15553 useit=no
15554 if test "%UNSET%" != "$LINGUAS"; then
15555 desiredlanguages="$LINGUAS"
15556 else
15557 desiredlanguages="$ALL_LINGUAS"
15558 fi
15559 for desiredlang in $desiredlanguages; do
15560 # Use the presentlang catalog if desiredlang is
15561 # a. equal to presentlang, or
15562 # b. a variant of presentlang (because in this case,
15563 # presentlang can be used as a fallback for messages
15564 # which are not translated in the desiredlang catalog).
15565 case "$desiredlang" in
15566 "$presentlang"*) useit=yes;;
15567 esac
15568 done
15569 if test $useit = yes; then
15570 INST_LINGUAS="$INST_LINGUAS $presentlang"
15571 fi
15572 done
15573 fi
15574 CATALOGS=
15575 if test -n "$INST_LINGUAS"; then
15576 for lang in $INST_LINGUAS; do
15577 CATALOGS="$CATALOGS $lang.gmo"
15578 done
15579 fi
15580 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
15581 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"
15582 for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
15583 if test -f "$f"; then
15584 case "$f" in
15585 *.orig | *.bak | *~) ;;
15586 *) cat "$f" >> "$ac_dir/Makefile" ;;
15587 esac
15588 fi
15589 done
15590 fi
15591 ;;
15592 esac
15593 done ;;
15594
15595 esac
15596 done # for ac_tag
15597
15598
15599 as_fn_exit 0
15600 _ACEOF
15601 ac_clean_files=$ac_clean_files_save
15602
15603 test $ac_write_fail = 0 ||
15604 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
15605
15606
15607 # configure is writing to config.log, and then calls config.status.
15608 # config.status does its own redirection, appending to config.log.
15609 # Unfortunately, on DOS this fails, as config.log is still kept open
15610 # by configure, so config.status won't be able to write to it; its
15611 # output is simply discarded. So we exec the FD to /dev/null,
15612 # effectively closing config.log, so it can be properly (re)opened and
15613 # appended to by config.status. When coming back to configure, we
15614 # need to make the FD available again.
15615 if test "$no_create" != yes; then
15616 ac_cs_success=:
15617 ac_config_status_args=
15618 test "$silent" = yes &&
15619 ac_config_status_args="$ac_config_status_args --quiet"
15620 exec 5>/dev/null
15621 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
15622 exec 5>>config.log
15623 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
15624 # would make configure fail if this is the last instruction.
15625 $ac_cs_success || as_fn_exit $?
15626 fi
15627 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
15628 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
15629 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
15630 fi
15631
This page took 0.459458 seconds and 4 git commands to generate.