]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blob - gas/configure
Regenerate configure
[thirdparty/binutils-gdb.git] / gas / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.64 for gas 2.26.51.
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='gas'
558 PACKAGE_TARNAME='gas'
559 PACKAGE_VERSION='2.26.51'
560 PACKAGE_STRING='gas 2.26.51'
561 PACKAGE_BUGREPORT=''
562 PACKAGE_URL=''
563
564 ac_unique_file="as.h"
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 zlibinc
606 zlibdir
607 LIBM
608 ALLOCA
609 GENINSRC_NEVER_FALSE
610 GENINSRC_NEVER_TRUE
611 MAINT
612 MAINTAINER_MODE_FALSE
613 MAINTAINER_MODE_TRUE
614 MSGMERGE
615 MSGFMT
616 MKINSTALLDIRS
617 CATOBJEXT
618 GENCAT
619 INSTOBJEXT
620 DATADIRNAME
621 CATALOGS
622 POSUB
623 GMSGFMT
624 XGETTEXT
625 INCINTL
626 LIBINTL_DEP
627 LIBINTL
628 USE_NLS
629 LEXLIB
630 LEX_OUTPUT_ROOT
631 LEX
632 YFLAGS
633 YACC
634 OPCODES_LIB
635 atof
636 install_tooldir
637 te_file
638 obj_format
639 target_cpu_type
640 extra_objects
641 cgen_cpu_prefix
642 GDBINIT
643 WARN_WRITE_STRINGS
644 NO_WERROR
645 WARN_CFLAGS
646 OTOOL64
647 OTOOL
648 LIPO
649 NMEDIT
650 DSYMUTIL
651 RANLIB
652 AR
653 OBJDUMP
654 LN_S
655 NM
656 ac_ct_DUMPBIN
657 DUMPBIN
658 LD
659 FGREP
660 SED
661 LIBTOOL
662 EGREP
663 GREP
664 CPP
665 am__fastdepCC_FALSE
666 am__fastdepCC_TRUE
667 CCDEPMODE
668 am__nodep
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=''
756 ac_user_opts='
757 enable_option_checking
758 enable_dependency_tracking
759 enable_shared
760 enable_static
761 with_pic
762 enable_fast_install
763 with_gnu_ld
764 enable_libtool_lock
765 enable_plugins
766 enable_largefile
767 enable_targets
768 enable_checking
769 enable_compressed_debug_sections
770 enable_x86_relax_relocations
771 enable_elf_stt_common
772 enable_werror
773 enable_build_warnings
774 enable_nls
775 enable_maintainer_mode
776 with_system_zlib
777 '
778 ac_precious_vars='build_alias
779 host_alias
780 target_alias
781 CC
782 CFLAGS
783 LDFLAGS
784 LIBS
785 CPPFLAGS
786 CPP
787 YACC
788 YFLAGS'
789
790
791 # Initialize some variables set by options.
792 ac_init_help=
793 ac_init_version=false
794 ac_unrecognized_opts=
795 ac_unrecognized_sep=
796 # The variables have the same names as the options, with
797 # dashes changed to underlines.
798 cache_file=/dev/null
799 exec_prefix=NONE
800 no_create=
801 no_recursion=
802 prefix=NONE
803 program_prefix=NONE
804 program_suffix=NONE
805 program_transform_name=s,x,x,
806 silent=
807 site=
808 srcdir=
809 verbose=
810 x_includes=NONE
811 x_libraries=NONE
812
813 # Installation directory options.
814 # These are left unexpanded so users can "make install exec_prefix=/foo"
815 # and all the variables that are supposed to be based on exec_prefix
816 # by default will actually change.
817 # Use braces instead of parens because sh, perl, etc. also accept them.
818 # (The list follows the same order as the GNU Coding Standards.)
819 bindir='${exec_prefix}/bin'
820 sbindir='${exec_prefix}/sbin'
821 libexecdir='${exec_prefix}/libexec'
822 datarootdir='${prefix}/share'
823 datadir='${datarootdir}'
824 sysconfdir='${prefix}/etc'
825 sharedstatedir='${prefix}/com'
826 localstatedir='${prefix}/var'
827 includedir='${prefix}/include'
828 oldincludedir='/usr/include'
829 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
830 infodir='${datarootdir}/info'
831 htmldir='${docdir}'
832 dvidir='${docdir}'
833 pdfdir='${docdir}'
834 psdir='${docdir}'
835 libdir='${exec_prefix}/lib'
836 localedir='${datarootdir}/locale'
837 mandir='${datarootdir}/man'
838
839 ac_prev=
840 ac_dashdash=
841 for ac_option
842 do
843 # If the previous option needs an argument, assign it.
844 if test -n "$ac_prev"; then
845 eval $ac_prev=\$ac_option
846 ac_prev=
847 continue
848 fi
849
850 case $ac_option in
851 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
852 *) ac_optarg=yes ;;
853 esac
854
855 # Accept the important Cygnus configure options, so we can diagnose typos.
856
857 case $ac_dashdash$ac_option in
858 --)
859 ac_dashdash=yes ;;
860
861 -bindir | --bindir | --bindi | --bind | --bin | --bi)
862 ac_prev=bindir ;;
863 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
864 bindir=$ac_optarg ;;
865
866 -build | --build | --buil | --bui | --bu)
867 ac_prev=build_alias ;;
868 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
869 build_alias=$ac_optarg ;;
870
871 -cache-file | --cache-file | --cache-fil | --cache-fi \
872 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
873 ac_prev=cache_file ;;
874 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
875 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
876 cache_file=$ac_optarg ;;
877
878 --config-cache | -C)
879 cache_file=config.cache ;;
880
881 -datadir | --datadir | --datadi | --datad)
882 ac_prev=datadir ;;
883 -datadir=* | --datadir=* | --datadi=* | --datad=*)
884 datadir=$ac_optarg ;;
885
886 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
887 | --dataroo | --dataro | --datar)
888 ac_prev=datarootdir ;;
889 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
890 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
891 datarootdir=$ac_optarg ;;
892
893 -disable-* | --disable-*)
894 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
895 # Reject names that are not valid shell variable names.
896 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
897 as_fn_error "invalid feature name: $ac_useropt"
898 ac_useropt_orig=$ac_useropt
899 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
900 case $ac_user_opts in
901 *"
902 "enable_$ac_useropt"
903 "*) ;;
904 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
905 ac_unrecognized_sep=', ';;
906 esac
907 eval enable_$ac_useropt=no ;;
908
909 -docdir | --docdir | --docdi | --doc | --do)
910 ac_prev=docdir ;;
911 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
912 docdir=$ac_optarg ;;
913
914 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
915 ac_prev=dvidir ;;
916 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
917 dvidir=$ac_optarg ;;
918
919 -enable-* | --enable-*)
920 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
921 # Reject names that are not valid shell variable names.
922 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
923 as_fn_error "invalid feature name: $ac_useropt"
924 ac_useropt_orig=$ac_useropt
925 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
926 case $ac_user_opts in
927 *"
928 "enable_$ac_useropt"
929 "*) ;;
930 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
931 ac_unrecognized_sep=', ';;
932 esac
933 eval enable_$ac_useropt=\$ac_optarg ;;
934
935 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
936 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
937 | --exec | --exe | --ex)
938 ac_prev=exec_prefix ;;
939 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
940 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
941 | --exec=* | --exe=* | --ex=*)
942 exec_prefix=$ac_optarg ;;
943
944 -gas | --gas | --ga | --g)
945 # Obsolete; use --with-gas.
946 with_gas=yes ;;
947
948 -help | --help | --hel | --he | -h)
949 ac_init_help=long ;;
950 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
951 ac_init_help=recursive ;;
952 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
953 ac_init_help=short ;;
954
955 -host | --host | --hos | --ho)
956 ac_prev=host_alias ;;
957 -host=* | --host=* | --hos=* | --ho=*)
958 host_alias=$ac_optarg ;;
959
960 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
961 ac_prev=htmldir ;;
962 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
963 | --ht=*)
964 htmldir=$ac_optarg ;;
965
966 -includedir | --includedir | --includedi | --included | --include \
967 | --includ | --inclu | --incl | --inc)
968 ac_prev=includedir ;;
969 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
970 | --includ=* | --inclu=* | --incl=* | --inc=*)
971 includedir=$ac_optarg ;;
972
973 -infodir | --infodir | --infodi | --infod | --info | --inf)
974 ac_prev=infodir ;;
975 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
976 infodir=$ac_optarg ;;
977
978 -libdir | --libdir | --libdi | --libd)
979 ac_prev=libdir ;;
980 -libdir=* | --libdir=* | --libdi=* | --libd=*)
981 libdir=$ac_optarg ;;
982
983 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
984 | --libexe | --libex | --libe)
985 ac_prev=libexecdir ;;
986 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
987 | --libexe=* | --libex=* | --libe=*)
988 libexecdir=$ac_optarg ;;
989
990 -localedir | --localedir | --localedi | --localed | --locale)
991 ac_prev=localedir ;;
992 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
993 localedir=$ac_optarg ;;
994
995 -localstatedir | --localstatedir | --localstatedi | --localstated \
996 | --localstate | --localstat | --localsta | --localst | --locals)
997 ac_prev=localstatedir ;;
998 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
999 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1000 localstatedir=$ac_optarg ;;
1001
1002 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1003 ac_prev=mandir ;;
1004 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1005 mandir=$ac_optarg ;;
1006
1007 -nfp | --nfp | --nf)
1008 # Obsolete; use --without-fp.
1009 with_fp=no ;;
1010
1011 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1012 | --no-cr | --no-c | -n)
1013 no_create=yes ;;
1014
1015 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1016 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1017 no_recursion=yes ;;
1018
1019 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1020 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1021 | --oldin | --oldi | --old | --ol | --o)
1022 ac_prev=oldincludedir ;;
1023 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1024 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1025 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1026 oldincludedir=$ac_optarg ;;
1027
1028 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1029 ac_prev=prefix ;;
1030 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1031 prefix=$ac_optarg ;;
1032
1033 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1034 | --program-pre | --program-pr | --program-p)
1035 ac_prev=program_prefix ;;
1036 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1037 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1038 program_prefix=$ac_optarg ;;
1039
1040 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1041 | --program-suf | --program-su | --program-s)
1042 ac_prev=program_suffix ;;
1043 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1044 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1045 program_suffix=$ac_optarg ;;
1046
1047 -program-transform-name | --program-transform-name \
1048 | --program-transform-nam | --program-transform-na \
1049 | --program-transform-n | --program-transform- \
1050 | --program-transform | --program-transfor \
1051 | --program-transfo | --program-transf \
1052 | --program-trans | --program-tran \
1053 | --progr-tra | --program-tr | --program-t)
1054 ac_prev=program_transform_name ;;
1055 -program-transform-name=* | --program-transform-name=* \
1056 | --program-transform-nam=* | --program-transform-na=* \
1057 | --program-transform-n=* | --program-transform-=* \
1058 | --program-transform=* | --program-transfor=* \
1059 | --program-transfo=* | --program-transf=* \
1060 | --program-trans=* | --program-tran=* \
1061 | --progr-tra=* | --program-tr=* | --program-t=*)
1062 program_transform_name=$ac_optarg ;;
1063
1064 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1065 ac_prev=pdfdir ;;
1066 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1067 pdfdir=$ac_optarg ;;
1068
1069 -psdir | --psdir | --psdi | --psd | --ps)
1070 ac_prev=psdir ;;
1071 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1072 psdir=$ac_optarg ;;
1073
1074 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1075 | -silent | --silent | --silen | --sile | --sil)
1076 silent=yes ;;
1077
1078 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1079 ac_prev=sbindir ;;
1080 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1081 | --sbi=* | --sb=*)
1082 sbindir=$ac_optarg ;;
1083
1084 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1085 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1086 | --sharedst | --shareds | --shared | --share | --shar \
1087 | --sha | --sh)
1088 ac_prev=sharedstatedir ;;
1089 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1090 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1091 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1092 | --sha=* | --sh=*)
1093 sharedstatedir=$ac_optarg ;;
1094
1095 -site | --site | --sit)
1096 ac_prev=site ;;
1097 -site=* | --site=* | --sit=*)
1098 site=$ac_optarg ;;
1099
1100 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1101 ac_prev=srcdir ;;
1102 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1103 srcdir=$ac_optarg ;;
1104
1105 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1106 | --syscon | --sysco | --sysc | --sys | --sy)
1107 ac_prev=sysconfdir ;;
1108 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1109 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1110 sysconfdir=$ac_optarg ;;
1111
1112 -target | --target | --targe | --targ | --tar | --ta | --t)
1113 ac_prev=target_alias ;;
1114 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1115 target_alias=$ac_optarg ;;
1116
1117 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1118 verbose=yes ;;
1119
1120 -version | --version | --versio | --versi | --vers | -V)
1121 ac_init_version=: ;;
1122
1123 -with-* | --with-*)
1124 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1125 # Reject names that are not valid shell variable names.
1126 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1127 as_fn_error "invalid package name: $ac_useropt"
1128 ac_useropt_orig=$ac_useropt
1129 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1130 case $ac_user_opts in
1131 *"
1132 "with_$ac_useropt"
1133 "*) ;;
1134 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1135 ac_unrecognized_sep=', ';;
1136 esac
1137 eval with_$ac_useropt=\$ac_optarg ;;
1138
1139 -without-* | --without-*)
1140 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1141 # Reject names that are not valid shell variable names.
1142 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1143 as_fn_error "invalid package name: $ac_useropt"
1144 ac_useropt_orig=$ac_useropt
1145 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1146 case $ac_user_opts in
1147 *"
1148 "with_$ac_useropt"
1149 "*) ;;
1150 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1151 ac_unrecognized_sep=', ';;
1152 esac
1153 eval with_$ac_useropt=no ;;
1154
1155 --x)
1156 # Obsolete; use --with-x.
1157 with_x=yes ;;
1158
1159 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1160 | --x-incl | --x-inc | --x-in | --x-i)
1161 ac_prev=x_includes ;;
1162 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1163 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1164 x_includes=$ac_optarg ;;
1165
1166 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1167 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1168 ac_prev=x_libraries ;;
1169 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1170 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1171 x_libraries=$ac_optarg ;;
1172
1173 -*) as_fn_error "unrecognized option: \`$ac_option'
1174 Try \`$0 --help' for more information."
1175 ;;
1176
1177 *=*)
1178 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1179 # Reject names that are not valid shell variable names.
1180 case $ac_envvar in #(
1181 '' | [0-9]* | *[!_$as_cr_alnum]* )
1182 as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1183 esac
1184 eval $ac_envvar=\$ac_optarg
1185 export $ac_envvar ;;
1186
1187 *)
1188 # FIXME: should be removed in autoconf 3.0.
1189 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1190 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1191 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1192 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1193 ;;
1194
1195 esac
1196 done
1197
1198 if test -n "$ac_prev"; then
1199 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1200 as_fn_error "missing argument to $ac_option"
1201 fi
1202
1203 if test -n "$ac_unrecognized_opts"; then
1204 case $enable_option_checking in
1205 no) ;;
1206 fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1207 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1208 esac
1209 fi
1210
1211 # Check all directory arguments for consistency.
1212 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1213 datadir sysconfdir sharedstatedir localstatedir includedir \
1214 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1215 libdir localedir mandir
1216 do
1217 eval ac_val=\$$ac_var
1218 # Remove trailing slashes.
1219 case $ac_val in
1220 */ )
1221 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1222 eval $ac_var=\$ac_val;;
1223 esac
1224 # Be sure to have absolute directory names.
1225 case $ac_val in
1226 [\\/$]* | ?:[\\/]* ) continue;;
1227 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1228 esac
1229 as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1230 done
1231
1232 # There might be people who depend on the old broken behavior: `$host'
1233 # used to hold the argument of --host etc.
1234 # FIXME: To remove some day.
1235 build=$build_alias
1236 host=$host_alias
1237 target=$target_alias
1238
1239 # FIXME: To remove some day.
1240 if test "x$host_alias" != x; then
1241 if test "x$build_alias" = x; then
1242 cross_compiling=maybe
1243 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1244 If a cross compiler is detected then cross compile mode will be used." >&2
1245 elif test "x$build_alias" != "x$host_alias"; then
1246 cross_compiling=yes
1247 fi
1248 fi
1249
1250 ac_tool_prefix=
1251 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1252
1253 test "$silent" = yes && exec 6>/dev/null
1254
1255
1256 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1257 ac_ls_di=`ls -di .` &&
1258 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1259 as_fn_error "working directory cannot be determined"
1260 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1261 as_fn_error "pwd does not report name of working directory"
1262
1263
1264 # Find the source files, if location was not specified.
1265 if test -z "$srcdir"; then
1266 ac_srcdir_defaulted=yes
1267 # Try the directory containing this script, then the parent directory.
1268 ac_confdir=`$as_dirname -- "$as_myself" ||
1269 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1270 X"$as_myself" : 'X\(//\)[^/]' \| \
1271 X"$as_myself" : 'X\(//\)$' \| \
1272 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1273 $as_echo X"$as_myself" |
1274 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1275 s//\1/
1276 q
1277 }
1278 /^X\(\/\/\)[^/].*/{
1279 s//\1/
1280 q
1281 }
1282 /^X\(\/\/\)$/{
1283 s//\1/
1284 q
1285 }
1286 /^X\(\/\).*/{
1287 s//\1/
1288 q
1289 }
1290 s/.*/./; q'`
1291 srcdir=$ac_confdir
1292 if test ! -r "$srcdir/$ac_unique_file"; then
1293 srcdir=..
1294 fi
1295 else
1296 ac_srcdir_defaulted=no
1297 fi
1298 if test ! -r "$srcdir/$ac_unique_file"; then
1299 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1300 as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1301 fi
1302 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1303 ac_abs_confdir=`(
1304 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1305 pwd)`
1306 # When building in place, set srcdir=.
1307 if test "$ac_abs_confdir" = "$ac_pwd"; then
1308 srcdir=.
1309 fi
1310 # Remove unnecessary trailing slashes from srcdir.
1311 # Double slashes in file names in object file debugging info
1312 # mess up M-x gdb in Emacs.
1313 case $srcdir in
1314 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1315 esac
1316 for ac_var in $ac_precious_vars; do
1317 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1318 eval ac_env_${ac_var}_value=\$${ac_var}
1319 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1320 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1321 done
1322
1323 #
1324 # Report the --help message.
1325 #
1326 if test "$ac_init_help" = "long"; then
1327 # Omit some internal or obsolete options to make the list less imposing.
1328 # This message is too long to be a string in the A/UX 3.1 sh.
1329 cat <<_ACEOF
1330 \`configure' configures gas 2.26.51 to adapt to many kinds of systems.
1331
1332 Usage: $0 [OPTION]... [VAR=VALUE]...
1333
1334 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1335 VAR=VALUE. See below for descriptions of some of the useful variables.
1336
1337 Defaults for the options are specified in brackets.
1338
1339 Configuration:
1340 -h, --help display this help and exit
1341 --help=short display options specific to this package
1342 --help=recursive display the short help of all the included packages
1343 -V, --version display version information and exit
1344 -q, --quiet, --silent do not print \`checking...' messages
1345 --cache-file=FILE cache test results in FILE [disabled]
1346 -C, --config-cache alias for \`--cache-file=config.cache'
1347 -n, --no-create do not create output files
1348 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1349
1350 Installation directories:
1351 --prefix=PREFIX install architecture-independent files in PREFIX
1352 [$ac_default_prefix]
1353 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1354 [PREFIX]
1355
1356 By default, \`make install' will install all the files in
1357 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1358 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1359 for instance \`--prefix=\$HOME'.
1360
1361 For better control, use the options below.
1362
1363 Fine tuning of the installation directories:
1364 --bindir=DIR user executables [EPREFIX/bin]
1365 --sbindir=DIR system admin executables [EPREFIX/sbin]
1366 --libexecdir=DIR program executables [EPREFIX/libexec]
1367 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1368 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1369 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1370 --libdir=DIR object code libraries [EPREFIX/lib]
1371 --includedir=DIR C header files [PREFIX/include]
1372 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1373 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1374 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1375 --infodir=DIR info documentation [DATAROOTDIR/info]
1376 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1377 --mandir=DIR man documentation [DATAROOTDIR/man]
1378 --docdir=DIR documentation root [DATAROOTDIR/doc/gas]
1379 --htmldir=DIR html documentation [DOCDIR]
1380 --dvidir=DIR dvi documentation [DOCDIR]
1381 --pdfdir=DIR pdf documentation [DOCDIR]
1382 --psdir=DIR ps documentation [DOCDIR]
1383 _ACEOF
1384
1385 cat <<\_ACEOF
1386
1387 Program names:
1388 --program-prefix=PREFIX prepend PREFIX to installed program names
1389 --program-suffix=SUFFIX append SUFFIX to installed program names
1390 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1391
1392 System types:
1393 --build=BUILD configure for building on BUILD [guessed]
1394 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1395 --target=TARGET configure for building compilers for TARGET [HOST]
1396 _ACEOF
1397 fi
1398
1399 if test -n "$ac_init_help"; then
1400 case $ac_init_help in
1401 short | recursive ) echo "Configuration of gas 2.26.51:";;
1402 esac
1403 cat <<\_ACEOF
1404
1405 Optional Features:
1406 --disable-option-checking ignore unrecognized --enable/--with options
1407 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1408 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1409 --disable-dependency-tracking speeds up one-time build
1410 --enable-dependency-tracking do not reject slow dependency extractors
1411 --enable-shared[=PKGS] build shared libraries [default=yes]
1412 --enable-static[=PKGS] build static libraries [default=yes]
1413 --enable-fast-install[=PKGS]
1414 optimize for fast installation [default=yes]
1415 --disable-libtool-lock avoid locking (might break parallel builds)
1416 --enable-plugins Enable support for plugins
1417 --disable-largefile omit support for large files
1418 --enable-targets alternative target configurations besides the primary
1419 --enable-checking enable run-time checks
1420 --enable-compressed-debug-sections={all,gas,none}
1421 compress debug sections by default
1422 --enable-x86-relax-relocations
1423 generate x86 relax relocations by default
1424 --enable-elf-stt-common generate ELF common symbols with STT_COMMON type by
1425 default
1426 --enable-werror treat compile warnings as errors
1427 --enable-build-warnings enable build-time compiler warnings
1428 --disable-nls do not use Native Language Support
1429 --enable-maintainer-mode enable make rules and dependencies not useful
1430 (and sometimes confusing) to the casual installer
1431
1432 Optional Packages:
1433 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1434 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1435 --with-pic try to use only PIC/non-PIC objects [default=use
1436 both]
1437 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1438 --with-system-zlib use installed libz
1439
1440 Some influential environment variables:
1441 CC C compiler command
1442 CFLAGS C compiler flags
1443 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1444 nonstandard directory <lib dir>
1445 LIBS libraries to pass to the linker, e.g. -l<library>
1446 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1447 you have headers in a nonstandard directory <include dir>
1448 CPP C preprocessor
1449 YACC The `Yet Another C Compiler' implementation to use. Defaults to
1450 the first program found out of: `bison -y', `byacc', `yacc'.
1451 YFLAGS The list of arguments that will be passed by default to $YACC.
1452 This script will default YFLAGS to the empty string to avoid a
1453 default value of `-d' given by some make applications.
1454
1455 Use these variables to override the choices made by `configure' or to help
1456 it to find libraries and programs with nonstandard names/locations.
1457
1458 Report bugs to the package provider.
1459 _ACEOF
1460 ac_status=$?
1461 fi
1462
1463 if test "$ac_init_help" = "recursive"; then
1464 # If there are subdirs, report their specific --help.
1465 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1466 test -d "$ac_dir" ||
1467 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1468 continue
1469 ac_builddir=.
1470
1471 case "$ac_dir" in
1472 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1473 *)
1474 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1475 # A ".." for each directory in $ac_dir_suffix.
1476 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1477 case $ac_top_builddir_sub in
1478 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1479 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1480 esac ;;
1481 esac
1482 ac_abs_top_builddir=$ac_pwd
1483 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1484 # for backward compatibility:
1485 ac_top_builddir=$ac_top_build_prefix
1486
1487 case $srcdir in
1488 .) # We are building in place.
1489 ac_srcdir=.
1490 ac_top_srcdir=$ac_top_builddir_sub
1491 ac_abs_top_srcdir=$ac_pwd ;;
1492 [\\/]* | ?:[\\/]* ) # Absolute name.
1493 ac_srcdir=$srcdir$ac_dir_suffix;
1494 ac_top_srcdir=$srcdir
1495 ac_abs_top_srcdir=$srcdir ;;
1496 *) # Relative name.
1497 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1498 ac_top_srcdir=$ac_top_build_prefix$srcdir
1499 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1500 esac
1501 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1502
1503 cd "$ac_dir" || { ac_status=$?; continue; }
1504 # Check for guested configure.
1505 if test -f "$ac_srcdir/configure.gnu"; then
1506 echo &&
1507 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1508 elif test -f "$ac_srcdir/configure"; then
1509 echo &&
1510 $SHELL "$ac_srcdir/configure" --help=recursive
1511 else
1512 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1513 fi || ac_status=$?
1514 cd "$ac_pwd" || { ac_status=$?; break; }
1515 done
1516 fi
1517
1518 test -n "$ac_init_help" && exit $ac_status
1519 if $ac_init_version; then
1520 cat <<\_ACEOF
1521 gas configure 2.26.51
1522 generated by GNU Autoconf 2.64
1523
1524 Copyright (C) 2009 Free Software Foundation, Inc.
1525 This configure script is free software; the Free Software Foundation
1526 gives unlimited permission to copy, distribute and modify it.
1527 _ACEOF
1528 exit
1529 fi
1530
1531 ## ------------------------ ##
1532 ## Autoconf initialization. ##
1533 ## ------------------------ ##
1534
1535 # ac_fn_c_try_compile LINENO
1536 # --------------------------
1537 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1538 ac_fn_c_try_compile ()
1539 {
1540 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1541 rm -f conftest.$ac_objext
1542 if { { ac_try="$ac_compile"
1543 case "(($ac_try" in
1544 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1545 *) ac_try_echo=$ac_try;;
1546 esac
1547 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1548 $as_echo "$ac_try_echo"; } >&5
1549 (eval "$ac_compile") 2>conftest.err
1550 ac_status=$?
1551 if test -s conftest.err; then
1552 grep -v '^ *+' conftest.err >conftest.er1
1553 cat conftest.er1 >&5
1554 mv -f conftest.er1 conftest.err
1555 fi
1556 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1557 test $ac_status = 0; } && {
1558 test -z "$ac_c_werror_flag" ||
1559 test ! -s conftest.err
1560 } && test -s conftest.$ac_objext; then :
1561 ac_retval=0
1562 else
1563 $as_echo "$as_me: failed program was:" >&5
1564 sed 's/^/| /' conftest.$ac_ext >&5
1565
1566 ac_retval=1
1567 fi
1568 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1569 return $ac_retval
1570
1571 } # ac_fn_c_try_compile
1572
1573 # ac_fn_c_try_link LINENO
1574 # -----------------------
1575 # Try to link conftest.$ac_ext, and return whether this succeeded.
1576 ac_fn_c_try_link ()
1577 {
1578 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1579 rm -f conftest.$ac_objext conftest$ac_exeext
1580 if { { ac_try="$ac_link"
1581 case "(($ac_try" in
1582 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1583 *) ac_try_echo=$ac_try;;
1584 esac
1585 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1586 $as_echo "$ac_try_echo"; } >&5
1587 (eval "$ac_link") 2>conftest.err
1588 ac_status=$?
1589 if test -s conftest.err; then
1590 grep -v '^ *+' conftest.err >conftest.er1
1591 cat conftest.er1 >&5
1592 mv -f conftest.er1 conftest.err
1593 fi
1594 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1595 test $ac_status = 0; } && {
1596 test -z "$ac_c_werror_flag" ||
1597 test ! -s conftest.err
1598 } && test -s conftest$ac_exeext && {
1599 test "$cross_compiling" = yes ||
1600 $as_test_x conftest$ac_exeext
1601 }; then :
1602 ac_retval=0
1603 else
1604 $as_echo "$as_me: failed program was:" >&5
1605 sed 's/^/| /' conftest.$ac_ext >&5
1606
1607 ac_retval=1
1608 fi
1609 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1610 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1611 # interfere with the next link command; also delete a directory that is
1612 # left behind by Apple's compiler. We do this before executing the actions.
1613 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1614 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1615 return $ac_retval
1616
1617 } # ac_fn_c_try_link
1618
1619 # ac_fn_c_try_cpp LINENO
1620 # ----------------------
1621 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1622 ac_fn_c_try_cpp ()
1623 {
1624 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1625 if { { ac_try="$ac_cpp conftest.$ac_ext"
1626 case "(($ac_try" in
1627 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1628 *) ac_try_echo=$ac_try;;
1629 esac
1630 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1631 $as_echo "$ac_try_echo"; } >&5
1632 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1633 ac_status=$?
1634 if test -s conftest.err; then
1635 grep -v '^ *+' conftest.err >conftest.er1
1636 cat conftest.er1 >&5
1637 mv -f conftest.er1 conftest.err
1638 fi
1639 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1640 test $ac_status = 0; } >/dev/null && {
1641 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1642 test ! -s conftest.err
1643 }; then :
1644 ac_retval=0
1645 else
1646 $as_echo "$as_me: failed program was:" >&5
1647 sed 's/^/| /' conftest.$ac_ext >&5
1648
1649 ac_retval=1
1650 fi
1651 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1652 return $ac_retval
1653
1654 } # ac_fn_c_try_cpp
1655
1656 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1657 # -------------------------------------------------------
1658 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1659 # the include files in INCLUDES and setting the cache variable VAR
1660 # accordingly.
1661 ac_fn_c_check_header_mongrel ()
1662 {
1663 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1664 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1665 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1666 $as_echo_n "checking for $2... " >&6; }
1667 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1668 $as_echo_n "(cached) " >&6
1669 fi
1670 eval ac_res=\$$3
1671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1672 $as_echo "$ac_res" >&6; }
1673 else
1674 # Is the header compilable?
1675 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1676 $as_echo_n "checking $2 usability... " >&6; }
1677 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1678 /* end confdefs.h. */
1679 $4
1680 #include <$2>
1681 _ACEOF
1682 if ac_fn_c_try_compile "$LINENO"; then :
1683 ac_header_compiler=yes
1684 else
1685 ac_header_compiler=no
1686 fi
1687 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1689 $as_echo "$ac_header_compiler" >&6; }
1690
1691 # Is the header present?
1692 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1693 $as_echo_n "checking $2 presence... " >&6; }
1694 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1695 /* end confdefs.h. */
1696 #include <$2>
1697 _ACEOF
1698 if ac_fn_c_try_cpp "$LINENO"; then :
1699 ac_header_preproc=yes
1700 else
1701 ac_header_preproc=no
1702 fi
1703 rm -f conftest.err conftest.$ac_ext
1704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1705 $as_echo "$ac_header_preproc" >&6; }
1706
1707 # So? What about this header?
1708 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1709 yes:no: )
1710 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1711 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1712 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1713 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1714 ;;
1715 no:yes:* )
1716 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1717 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1718 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1719 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1720 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1721 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1722 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1723 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1724 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1725 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1726 ;;
1727 esac
1728 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1729 $as_echo_n "checking for $2... " >&6; }
1730 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1731 $as_echo_n "(cached) " >&6
1732 else
1733 eval "$3=\$ac_header_compiler"
1734 fi
1735 eval ac_res=\$$3
1736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1737 $as_echo "$ac_res" >&6; }
1738 fi
1739 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1740
1741 } # ac_fn_c_check_header_mongrel
1742
1743 # ac_fn_c_try_run LINENO
1744 # ----------------------
1745 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1746 # that executables *can* be run.
1747 ac_fn_c_try_run ()
1748 {
1749 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1750 if { { ac_try="$ac_link"
1751 case "(($ac_try" in
1752 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1753 *) ac_try_echo=$ac_try;;
1754 esac
1755 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1756 $as_echo "$ac_try_echo"; } >&5
1757 (eval "$ac_link") 2>&5
1758 ac_status=$?
1759 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1760 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1761 { { case "(($ac_try" in
1762 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1763 *) ac_try_echo=$ac_try;;
1764 esac
1765 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1766 $as_echo "$ac_try_echo"; } >&5
1767 (eval "$ac_try") 2>&5
1768 ac_status=$?
1769 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1770 test $ac_status = 0; }; }; then :
1771 ac_retval=0
1772 else
1773 $as_echo "$as_me: program exited with status $ac_status" >&5
1774 $as_echo "$as_me: failed program was:" >&5
1775 sed 's/^/| /' conftest.$ac_ext >&5
1776
1777 ac_retval=$ac_status
1778 fi
1779 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1780 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1781 return $ac_retval
1782
1783 } # ac_fn_c_try_run
1784
1785 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1786 # -------------------------------------------------------
1787 # Tests whether HEADER exists and can be compiled using the include files in
1788 # INCLUDES, setting the cache variable VAR accordingly.
1789 ac_fn_c_check_header_compile ()
1790 {
1791 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1792 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1793 $as_echo_n "checking for $2... " >&6; }
1794 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1795 $as_echo_n "(cached) " >&6
1796 else
1797 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1798 /* end confdefs.h. */
1799 $4
1800 #include <$2>
1801 _ACEOF
1802 if ac_fn_c_try_compile "$LINENO"; then :
1803 eval "$3=yes"
1804 else
1805 eval "$3=no"
1806 fi
1807 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1808 fi
1809 eval ac_res=\$$3
1810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1811 $as_echo "$ac_res" >&6; }
1812 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1813
1814 } # ac_fn_c_check_header_compile
1815
1816 # ac_fn_c_check_func LINENO FUNC VAR
1817 # ----------------------------------
1818 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1819 ac_fn_c_check_func ()
1820 {
1821 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1822 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1823 $as_echo_n "checking for $2... " >&6; }
1824 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1825 $as_echo_n "(cached) " >&6
1826 else
1827 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1828 /* end confdefs.h. */
1829 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1830 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1831 #define $2 innocuous_$2
1832
1833 /* System header to define __stub macros and hopefully few prototypes,
1834 which can conflict with char $2 (); below.
1835 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1836 <limits.h> exists even on freestanding compilers. */
1837
1838 #ifdef __STDC__
1839 # include <limits.h>
1840 #else
1841 # include <assert.h>
1842 #endif
1843
1844 #undef $2
1845
1846 /* Override any GCC internal prototype to avoid an error.
1847 Use char because int might match the return type of a GCC
1848 builtin and then its argument prototype would still apply. */
1849 #ifdef __cplusplus
1850 extern "C"
1851 #endif
1852 char $2 ();
1853 /* The GNU C library defines this for functions which it implements
1854 to always fail with ENOSYS. Some functions are actually named
1855 something starting with __ and the normal name is an alias. */
1856 #if defined __stub_$2 || defined __stub___$2
1857 choke me
1858 #endif
1859
1860 int
1861 main ()
1862 {
1863 return $2 ();
1864 ;
1865 return 0;
1866 }
1867 _ACEOF
1868 if ac_fn_c_try_link "$LINENO"; then :
1869 eval "$3=yes"
1870 else
1871 eval "$3=no"
1872 fi
1873 rm -f core conftest.err conftest.$ac_objext \
1874 conftest$ac_exeext conftest.$ac_ext
1875 fi
1876 eval ac_res=\$$3
1877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1878 $as_echo "$ac_res" >&6; }
1879 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1880
1881 } # ac_fn_c_check_func
1882
1883 # ac_fn_c_check_decl LINENO SYMBOL VAR
1884 # ------------------------------------
1885 # Tests whether SYMBOL is declared, setting cache variable VAR accordingly.
1886 ac_fn_c_check_decl ()
1887 {
1888 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1889 as_decl_name=`echo $2|sed 's/ *(.*//'`
1890 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
1891 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
1892 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
1893 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1894 $as_echo_n "(cached) " >&6
1895 else
1896 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1897 /* end confdefs.h. */
1898 $4
1899 int
1900 main ()
1901 {
1902 #ifndef $as_decl_name
1903 #ifdef __cplusplus
1904 (void) $as_decl_use;
1905 #else
1906 (void) $as_decl_name;
1907 #endif
1908 #endif
1909
1910 ;
1911 return 0;
1912 }
1913 _ACEOF
1914 if ac_fn_c_try_compile "$LINENO"; then :
1915 eval "$3=yes"
1916 else
1917 eval "$3=no"
1918 fi
1919 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1920 fi
1921 eval ac_res=\$$3
1922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1923 $as_echo "$ac_res" >&6; }
1924 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1925
1926 } # ac_fn_c_check_decl
1927 cat >config.log <<_ACEOF
1928 This file contains any messages produced by compilers while
1929 running configure, to aid debugging if configure makes a mistake.
1930
1931 It was created by gas $as_me 2.26.51, which was
1932 generated by GNU Autoconf 2.64. Invocation command line was
1933
1934 $ $0 $@
1935
1936 _ACEOF
1937 exec 5>>config.log
1938 {
1939 cat <<_ASUNAME
1940 ## --------- ##
1941 ## Platform. ##
1942 ## --------- ##
1943
1944 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1945 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1946 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1947 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1948 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1949
1950 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1951 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1952
1953 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1954 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1955 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1956 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1957 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1958 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1959 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1960
1961 _ASUNAME
1962
1963 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1964 for as_dir in $PATH
1965 do
1966 IFS=$as_save_IFS
1967 test -z "$as_dir" && as_dir=.
1968 $as_echo "PATH: $as_dir"
1969 done
1970 IFS=$as_save_IFS
1971
1972 } >&5
1973
1974 cat >&5 <<_ACEOF
1975
1976
1977 ## ----------- ##
1978 ## Core tests. ##
1979 ## ----------- ##
1980
1981 _ACEOF
1982
1983
1984 # Keep a trace of the command line.
1985 # Strip out --no-create and --no-recursion so they do not pile up.
1986 # Strip out --silent because we don't want to record it for future runs.
1987 # Also quote any args containing shell meta-characters.
1988 # Make two passes to allow for proper duplicate-argument suppression.
1989 ac_configure_args=
1990 ac_configure_args0=
1991 ac_configure_args1=
1992 ac_must_keep_next=false
1993 for ac_pass in 1 2
1994 do
1995 for ac_arg
1996 do
1997 case $ac_arg in
1998 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1999 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2000 | -silent | --silent | --silen | --sile | --sil)
2001 continue ;;
2002 *\'*)
2003 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2004 esac
2005 case $ac_pass in
2006 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2007 2)
2008 as_fn_append ac_configure_args1 " '$ac_arg'"
2009 if test $ac_must_keep_next = true; then
2010 ac_must_keep_next=false # Got value, back to normal.
2011 else
2012 case $ac_arg in
2013 *=* | --config-cache | -C | -disable-* | --disable-* \
2014 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2015 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2016 | -with-* | --with-* | -without-* | --without-* | --x)
2017 case "$ac_configure_args0 " in
2018 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2019 esac
2020 ;;
2021 -* ) ac_must_keep_next=true ;;
2022 esac
2023 fi
2024 as_fn_append ac_configure_args " '$ac_arg'"
2025 ;;
2026 esac
2027 done
2028 done
2029 { ac_configure_args0=; unset ac_configure_args0;}
2030 { ac_configure_args1=; unset ac_configure_args1;}
2031
2032 # When interrupted or exit'd, cleanup temporary files, and complete
2033 # config.log. We remove comments because anyway the quotes in there
2034 # would cause problems or look ugly.
2035 # WARNING: Use '\'' to represent an apostrophe within the trap.
2036 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2037 trap 'exit_status=$?
2038 # Save into config.log some information that might help in debugging.
2039 {
2040 echo
2041
2042 cat <<\_ASBOX
2043 ## ---------------- ##
2044 ## Cache variables. ##
2045 ## ---------------- ##
2046 _ASBOX
2047 echo
2048 # The following way of writing the cache mishandles newlines in values,
2049 (
2050 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2051 eval ac_val=\$$ac_var
2052 case $ac_val in #(
2053 *${as_nl}*)
2054 case $ac_var in #(
2055 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2056 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2057 esac
2058 case $ac_var in #(
2059 _ | IFS | as_nl) ;; #(
2060 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2061 *) { eval $ac_var=; unset $ac_var;} ;;
2062 esac ;;
2063 esac
2064 done
2065 (set) 2>&1 |
2066 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2067 *${as_nl}ac_space=\ *)
2068 sed -n \
2069 "s/'\''/'\''\\\\'\'''\''/g;
2070 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2071 ;; #(
2072 *)
2073 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2074 ;;
2075 esac |
2076 sort
2077 )
2078 echo
2079
2080 cat <<\_ASBOX
2081 ## ----------------- ##
2082 ## Output variables. ##
2083 ## ----------------- ##
2084 _ASBOX
2085 echo
2086 for ac_var in $ac_subst_vars
2087 do
2088 eval ac_val=\$$ac_var
2089 case $ac_val in
2090 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2091 esac
2092 $as_echo "$ac_var='\''$ac_val'\''"
2093 done | sort
2094 echo
2095
2096 if test -n "$ac_subst_files"; then
2097 cat <<\_ASBOX
2098 ## ------------------- ##
2099 ## File substitutions. ##
2100 ## ------------------- ##
2101 _ASBOX
2102 echo
2103 for ac_var in $ac_subst_files
2104 do
2105 eval ac_val=\$$ac_var
2106 case $ac_val in
2107 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2108 esac
2109 $as_echo "$ac_var='\''$ac_val'\''"
2110 done | sort
2111 echo
2112 fi
2113
2114 if test -s confdefs.h; then
2115 cat <<\_ASBOX
2116 ## ----------- ##
2117 ## confdefs.h. ##
2118 ## ----------- ##
2119 _ASBOX
2120 echo
2121 cat confdefs.h
2122 echo
2123 fi
2124 test "$ac_signal" != 0 &&
2125 $as_echo "$as_me: caught signal $ac_signal"
2126 $as_echo "$as_me: exit $exit_status"
2127 } >&5
2128 rm -f core *.core core.conftest.* &&
2129 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2130 exit $exit_status
2131 ' 0
2132 for ac_signal in 1 2 13 15; do
2133 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2134 done
2135 ac_signal=0
2136
2137 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2138 rm -f -r conftest* confdefs.h
2139
2140 $as_echo "/* confdefs.h */" > confdefs.h
2141
2142 # Predefined preprocessor variables.
2143
2144 cat >>confdefs.h <<_ACEOF
2145 #define PACKAGE_NAME "$PACKAGE_NAME"
2146 _ACEOF
2147
2148 cat >>confdefs.h <<_ACEOF
2149 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2150 _ACEOF
2151
2152 cat >>confdefs.h <<_ACEOF
2153 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2154 _ACEOF
2155
2156 cat >>confdefs.h <<_ACEOF
2157 #define PACKAGE_STRING "$PACKAGE_STRING"
2158 _ACEOF
2159
2160 cat >>confdefs.h <<_ACEOF
2161 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2162 _ACEOF
2163
2164 cat >>confdefs.h <<_ACEOF
2165 #define PACKAGE_URL "$PACKAGE_URL"
2166 _ACEOF
2167
2168
2169 # Let the site file select an alternate cache file if it wants to.
2170 # Prefer an explicitly selected file to automatically selected ones.
2171 ac_site_file1=NONE
2172 ac_site_file2=NONE
2173 if test -n "$CONFIG_SITE"; then
2174 ac_site_file1=$CONFIG_SITE
2175 elif test "x$prefix" != xNONE; then
2176 ac_site_file1=$prefix/share/config.site
2177 ac_site_file2=$prefix/etc/config.site
2178 else
2179 ac_site_file1=$ac_default_prefix/share/config.site
2180 ac_site_file2=$ac_default_prefix/etc/config.site
2181 fi
2182 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2183 do
2184 test "x$ac_site_file" = xNONE && continue
2185 if test -r "$ac_site_file"; then
2186 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2187 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2188 sed 's/^/| /' "$ac_site_file" >&5
2189 . "$ac_site_file"
2190 fi
2191 done
2192
2193 if test -r "$cache_file"; then
2194 # Some versions of bash will fail to source /dev/null (special
2195 # files actually), so we avoid doing that.
2196 if test -f "$cache_file"; then
2197 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2198 $as_echo "$as_me: loading cache $cache_file" >&6;}
2199 case $cache_file in
2200 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2201 *) . "./$cache_file";;
2202 esac
2203 fi
2204 else
2205 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2206 $as_echo "$as_me: creating cache $cache_file" >&6;}
2207 >$cache_file
2208 fi
2209
2210 # Check that the precious variables saved in the cache have kept the same
2211 # value.
2212 ac_cache_corrupted=false
2213 for ac_var in $ac_precious_vars; do
2214 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2215 eval ac_new_set=\$ac_env_${ac_var}_set
2216 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2217 eval ac_new_val=\$ac_env_${ac_var}_value
2218 case $ac_old_set,$ac_new_set in
2219 set,)
2220 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2221 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2222 ac_cache_corrupted=: ;;
2223 ,set)
2224 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2225 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2226 ac_cache_corrupted=: ;;
2227 ,);;
2228 *)
2229 if test "x$ac_old_val" != "x$ac_new_val"; then
2230 # differences in whitespace do not lead to failure.
2231 ac_old_val_w=`echo x $ac_old_val`
2232 ac_new_val_w=`echo x $ac_new_val`
2233 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2234 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2235 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2236 ac_cache_corrupted=:
2237 else
2238 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2239 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2240 eval $ac_var=\$ac_old_val
2241 fi
2242 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2243 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2244 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2245 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2246 fi;;
2247 esac
2248 # Pass precious variables to config.status.
2249 if test "$ac_new_set" = set; then
2250 case $ac_new_val in
2251 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2252 *) ac_arg=$ac_var=$ac_new_val ;;
2253 esac
2254 case " $ac_configure_args " in
2255 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2256 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2257 esac
2258 fi
2259 done
2260 if $ac_cache_corrupted; then
2261 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2262 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2263 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2264 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2265 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2266 fi
2267 ## -------------------- ##
2268 ## Main body of script. ##
2269 ## -------------------- ##
2270
2271 ac_ext=c
2272 ac_cpp='$CPP $CPPFLAGS'
2273 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2274 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2275 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2276
2277
2278
2279
2280
2281
2282
2283 ac_aux_dir=
2284 for ac_dir in .. "$srcdir"/..; do
2285 for ac_t in install-sh install.sh shtool; do
2286 if test -f "$ac_dir/$ac_t"; then
2287 ac_aux_dir=$ac_dir
2288 ac_install_sh="$ac_aux_dir/$ac_t -c"
2289 break 2
2290 fi
2291 done
2292 done
2293 if test -z "$ac_aux_dir"; then
2294 as_fn_error "cannot find install-sh, install.sh, or shtool in .. \"$srcdir\"/.." "$LINENO" 5
2295 fi
2296
2297 # These three variables are undocumented and unsupported,
2298 # and are intended to be withdrawn in a future Autoconf release.
2299 # They can cause serious problems if a builder's source tree is in a directory
2300 # whose full name contains unusual characters.
2301 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2302 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2303 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2304
2305
2306 # Make sure we can run config.sub.
2307 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2308 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2309
2310 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2311 $as_echo_n "checking build system type... " >&6; }
2312 if test "${ac_cv_build+set}" = set; then :
2313 $as_echo_n "(cached) " >&6
2314 else
2315 ac_build_alias=$build_alias
2316 test "x$ac_build_alias" = x &&
2317 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2318 test "x$ac_build_alias" = x &&
2319 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
2320 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2321 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2322
2323 fi
2324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2325 $as_echo "$ac_cv_build" >&6; }
2326 case $ac_cv_build in
2327 *-*-*) ;;
2328 *) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
2329 esac
2330 build=$ac_cv_build
2331 ac_save_IFS=$IFS; IFS='-'
2332 set x $ac_cv_build
2333 shift
2334 build_cpu=$1
2335 build_vendor=$2
2336 shift; shift
2337 # Remember, the first character of IFS is used to create $*,
2338 # except with old shells:
2339 build_os=$*
2340 IFS=$ac_save_IFS
2341 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2342
2343
2344 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2345 $as_echo_n "checking host system type... " >&6; }
2346 if test "${ac_cv_host+set}" = set; then :
2347 $as_echo_n "(cached) " >&6
2348 else
2349 if test "x$host_alias" = x; then
2350 ac_cv_host=$ac_cv_build
2351 else
2352 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2353 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2354 fi
2355
2356 fi
2357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2358 $as_echo "$ac_cv_host" >&6; }
2359 case $ac_cv_host in
2360 *-*-*) ;;
2361 *) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
2362 esac
2363 host=$ac_cv_host
2364 ac_save_IFS=$IFS; IFS='-'
2365 set x $ac_cv_host
2366 shift
2367 host_cpu=$1
2368 host_vendor=$2
2369 shift; shift
2370 # Remember, the first character of IFS is used to create $*,
2371 # except with old shells:
2372 host_os=$*
2373 IFS=$ac_save_IFS
2374 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2375
2376
2377 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2378 $as_echo_n "checking target system type... " >&6; }
2379 if test "${ac_cv_target+set}" = set; then :
2380 $as_echo_n "(cached) " >&6
2381 else
2382 if test "x$target_alias" = x; then
2383 ac_cv_target=$ac_cv_host
2384 else
2385 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2386 as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2387 fi
2388
2389 fi
2390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2391 $as_echo "$ac_cv_target" >&6; }
2392 case $ac_cv_target in
2393 *-*-*) ;;
2394 *) as_fn_error "invalid value of canonical target" "$LINENO" 5;;
2395 esac
2396 target=$ac_cv_target
2397 ac_save_IFS=$IFS; IFS='-'
2398 set x $ac_cv_target
2399 shift
2400 target_cpu=$1
2401 target_vendor=$2
2402 shift; shift
2403 # Remember, the first character of IFS is used to create $*,
2404 # except with old shells:
2405 target_os=$*
2406 IFS=$ac_save_IFS
2407 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2408
2409
2410 # The aliases save the names the user supplied, while $host etc.
2411 # will get canonicalized.
2412 test -n "$target_alias" &&
2413 test "$program_prefix$program_suffix$program_transform_name" = \
2414 NONENONEs,x,x, &&
2415 program_prefix=${target_alias}-
2416 ac_ext=c
2417 ac_cpp='$CPP $CPPFLAGS'
2418 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2419 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2420 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2421 if test -n "$ac_tool_prefix"; then
2422 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2423 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2424 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2425 $as_echo_n "checking for $ac_word... " >&6; }
2426 if test "${ac_cv_prog_CC+set}" = set; then :
2427 $as_echo_n "(cached) " >&6
2428 else
2429 if test -n "$CC"; then
2430 ac_cv_prog_CC="$CC" # Let the user override the test.
2431 else
2432 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2433 for as_dir in $PATH
2434 do
2435 IFS=$as_save_IFS
2436 test -z "$as_dir" && as_dir=.
2437 for ac_exec_ext in '' $ac_executable_extensions; do
2438 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2439 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2440 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2441 break 2
2442 fi
2443 done
2444 done
2445 IFS=$as_save_IFS
2446
2447 fi
2448 fi
2449 CC=$ac_cv_prog_CC
2450 if test -n "$CC"; then
2451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2452 $as_echo "$CC" >&6; }
2453 else
2454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2455 $as_echo "no" >&6; }
2456 fi
2457
2458
2459 fi
2460 if test -z "$ac_cv_prog_CC"; then
2461 ac_ct_CC=$CC
2462 # Extract the first word of "gcc", so it can be a program name with args.
2463 set dummy gcc; ac_word=$2
2464 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2465 $as_echo_n "checking for $ac_word... " >&6; }
2466 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
2467 $as_echo_n "(cached) " >&6
2468 else
2469 if test -n "$ac_ct_CC"; then
2470 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2471 else
2472 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2473 for as_dir in $PATH
2474 do
2475 IFS=$as_save_IFS
2476 test -z "$as_dir" && as_dir=.
2477 for ac_exec_ext in '' $ac_executable_extensions; do
2478 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2479 ac_cv_prog_ac_ct_CC="gcc"
2480 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2481 break 2
2482 fi
2483 done
2484 done
2485 IFS=$as_save_IFS
2486
2487 fi
2488 fi
2489 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2490 if test -n "$ac_ct_CC"; then
2491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2492 $as_echo "$ac_ct_CC" >&6; }
2493 else
2494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2495 $as_echo "no" >&6; }
2496 fi
2497
2498 if test "x$ac_ct_CC" = x; then
2499 CC=""
2500 else
2501 case $cross_compiling:$ac_tool_warned in
2502 yes:)
2503 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2504 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2505 ac_tool_warned=yes ;;
2506 esac
2507 CC=$ac_ct_CC
2508 fi
2509 else
2510 CC="$ac_cv_prog_CC"
2511 fi
2512
2513 if test -z "$CC"; then
2514 if test -n "$ac_tool_prefix"; then
2515 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2516 set dummy ${ac_tool_prefix}cc; ac_word=$2
2517 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2518 $as_echo_n "checking for $ac_word... " >&6; }
2519 if test "${ac_cv_prog_CC+set}" = set; then :
2520 $as_echo_n "(cached) " >&6
2521 else
2522 if test -n "$CC"; then
2523 ac_cv_prog_CC="$CC" # Let the user override the test.
2524 else
2525 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2526 for as_dir in $PATH
2527 do
2528 IFS=$as_save_IFS
2529 test -z "$as_dir" && as_dir=.
2530 for ac_exec_ext in '' $ac_executable_extensions; do
2531 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2532 ac_cv_prog_CC="${ac_tool_prefix}cc"
2533 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2534 break 2
2535 fi
2536 done
2537 done
2538 IFS=$as_save_IFS
2539
2540 fi
2541 fi
2542 CC=$ac_cv_prog_CC
2543 if test -n "$CC"; then
2544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2545 $as_echo "$CC" >&6; }
2546 else
2547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2548 $as_echo "no" >&6; }
2549 fi
2550
2551
2552 fi
2553 fi
2554 if test -z "$CC"; then
2555 # Extract the first word of "cc", so it can be a program name with args.
2556 set dummy cc; ac_word=$2
2557 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2558 $as_echo_n "checking for $ac_word... " >&6; }
2559 if test "${ac_cv_prog_CC+set}" = set; then :
2560 $as_echo_n "(cached) " >&6
2561 else
2562 if test -n "$CC"; then
2563 ac_cv_prog_CC="$CC" # Let the user override the test.
2564 else
2565 ac_prog_rejected=no
2566 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2567 for as_dir in $PATH
2568 do
2569 IFS=$as_save_IFS
2570 test -z "$as_dir" && as_dir=.
2571 for ac_exec_ext in '' $ac_executable_extensions; do
2572 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2573 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2574 ac_prog_rejected=yes
2575 continue
2576 fi
2577 ac_cv_prog_CC="cc"
2578 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2579 break 2
2580 fi
2581 done
2582 done
2583 IFS=$as_save_IFS
2584
2585 if test $ac_prog_rejected = yes; then
2586 # We found a bogon in the path, so make sure we never use it.
2587 set dummy $ac_cv_prog_CC
2588 shift
2589 if test $# != 0; then
2590 # We chose a different compiler from the bogus one.
2591 # However, it has the same basename, so the bogon will be chosen
2592 # first if we set CC to just the basename; use the full file name.
2593 shift
2594 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2595 fi
2596 fi
2597 fi
2598 fi
2599 CC=$ac_cv_prog_CC
2600 if test -n "$CC"; then
2601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2602 $as_echo "$CC" >&6; }
2603 else
2604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2605 $as_echo "no" >&6; }
2606 fi
2607
2608
2609 fi
2610 if test -z "$CC"; then
2611 if test -n "$ac_tool_prefix"; then
2612 for ac_prog in cl.exe
2613 do
2614 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2615 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2616 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2617 $as_echo_n "checking for $ac_word... " >&6; }
2618 if test "${ac_cv_prog_CC+set}" = set; then :
2619 $as_echo_n "(cached) " >&6
2620 else
2621 if test -n "$CC"; then
2622 ac_cv_prog_CC="$CC" # Let the user override the test.
2623 else
2624 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2625 for as_dir in $PATH
2626 do
2627 IFS=$as_save_IFS
2628 test -z "$as_dir" && as_dir=.
2629 for ac_exec_ext in '' $ac_executable_extensions; do
2630 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2631 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2632 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2633 break 2
2634 fi
2635 done
2636 done
2637 IFS=$as_save_IFS
2638
2639 fi
2640 fi
2641 CC=$ac_cv_prog_CC
2642 if test -n "$CC"; then
2643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2644 $as_echo "$CC" >&6; }
2645 else
2646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2647 $as_echo "no" >&6; }
2648 fi
2649
2650
2651 test -n "$CC" && break
2652 done
2653 fi
2654 if test -z "$CC"; then
2655 ac_ct_CC=$CC
2656 for ac_prog in cl.exe
2657 do
2658 # Extract the first word of "$ac_prog", so it can be a program name with args.
2659 set dummy $ac_prog; ac_word=$2
2660 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2661 $as_echo_n "checking for $ac_word... " >&6; }
2662 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
2663 $as_echo_n "(cached) " >&6
2664 else
2665 if test -n "$ac_ct_CC"; then
2666 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2667 else
2668 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2669 for as_dir in $PATH
2670 do
2671 IFS=$as_save_IFS
2672 test -z "$as_dir" && as_dir=.
2673 for ac_exec_ext in '' $ac_executable_extensions; do
2674 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2675 ac_cv_prog_ac_ct_CC="$ac_prog"
2676 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2677 break 2
2678 fi
2679 done
2680 done
2681 IFS=$as_save_IFS
2682
2683 fi
2684 fi
2685 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2686 if test -n "$ac_ct_CC"; then
2687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2688 $as_echo "$ac_ct_CC" >&6; }
2689 else
2690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2691 $as_echo "no" >&6; }
2692 fi
2693
2694
2695 test -n "$ac_ct_CC" && break
2696 done
2697
2698 if test "x$ac_ct_CC" = x; then
2699 CC=""
2700 else
2701 case $cross_compiling:$ac_tool_warned in
2702 yes:)
2703 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2704 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2705 ac_tool_warned=yes ;;
2706 esac
2707 CC=$ac_ct_CC
2708 fi
2709 fi
2710
2711 fi
2712
2713
2714 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2715 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2716 as_fn_error "no acceptable C compiler found in \$PATH
2717 See \`config.log' for more details." "$LINENO" 5; }
2718
2719 # Provide some information about the compiler.
2720 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
2721 set X $ac_compile
2722 ac_compiler=$2
2723 for ac_option in --version -v -V -qversion; do
2724 { { ac_try="$ac_compiler $ac_option >&5"
2725 case "(($ac_try" in
2726 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2727 *) ac_try_echo=$ac_try;;
2728 esac
2729 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2730 $as_echo "$ac_try_echo"; } >&5
2731 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
2732 ac_status=$?
2733 if test -s conftest.err; then
2734 sed '10a\
2735 ... rest of stderr output deleted ...
2736 10q' conftest.err >conftest.er1
2737 cat conftest.er1 >&5
2738 rm -f conftest.er1 conftest.err
2739 fi
2740 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2741 test $ac_status = 0; }
2742 done
2743
2744 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2745 /* end confdefs.h. */
2746
2747 int
2748 main ()
2749 {
2750
2751 ;
2752 return 0;
2753 }
2754 _ACEOF
2755 ac_clean_files_save=$ac_clean_files
2756 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
2757 # Try to create an executable without -o first, disregard a.out.
2758 # It will help us diagnose broken compilers, and finding out an intuition
2759 # of exeext.
2760 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
2761 $as_echo_n "checking for C compiler default output file name... " >&6; }
2762 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2763
2764 # The possible output files:
2765 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2766
2767 ac_rmfiles=
2768 for ac_file in $ac_files
2769 do
2770 case $ac_file in
2771 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2772 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2773 esac
2774 done
2775 rm -f $ac_rmfiles
2776
2777 if { { ac_try="$ac_link_default"
2778 case "(($ac_try" in
2779 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2780 *) ac_try_echo=$ac_try;;
2781 esac
2782 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2783 $as_echo "$ac_try_echo"; } >&5
2784 (eval "$ac_link_default") 2>&5
2785 ac_status=$?
2786 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2787 test $ac_status = 0; }; then :
2788 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2789 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2790 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2791 # so that the user can short-circuit this test for compilers unknown to
2792 # Autoconf.
2793 for ac_file in $ac_files ''
2794 do
2795 test -f "$ac_file" || continue
2796 case $ac_file in
2797 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
2798 ;;
2799 [ab].out )
2800 # We found the default executable, but exeext='' is most
2801 # certainly right.
2802 break;;
2803 *.* )
2804 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2805 then :; else
2806 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2807 fi
2808 # We set ac_cv_exeext here because the later test for it is not
2809 # safe: cross compilers may not add the suffix if given an `-o'
2810 # argument, so we may need to know it at that point already.
2811 # Even if this section looks crufty: it has the advantage of
2812 # actually working.
2813 break;;
2814 * )
2815 break;;
2816 esac
2817 done
2818 test "$ac_cv_exeext" = no && ac_cv_exeext=
2819
2820 else
2821 ac_file=''
2822 fi
2823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
2824 $as_echo "$ac_file" >&6; }
2825 if test -z "$ac_file"; then :
2826 $as_echo "$as_me: failed program was:" >&5
2827 sed 's/^/| /' conftest.$ac_ext >&5
2828
2829 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2830 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2831 { as_fn_set_status 77
2832 as_fn_error "C compiler cannot create executables
2833 See \`config.log' for more details." "$LINENO" 5; }; }
2834 fi
2835 ac_exeext=$ac_cv_exeext
2836
2837 # Check that the compiler produces executables we can run. If not, either
2838 # the compiler is broken, or we cross compile.
2839 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
2840 $as_echo_n "checking whether the C compiler works... " >&6; }
2841 # If not cross compiling, check that we can run a simple program.
2842 if test "$cross_compiling" != yes; then
2843 if { ac_try='./$ac_file'
2844 { { case "(($ac_try" in
2845 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2846 *) ac_try_echo=$ac_try;;
2847 esac
2848 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2849 $as_echo "$ac_try_echo"; } >&5
2850 (eval "$ac_try") 2>&5
2851 ac_status=$?
2852 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2853 test $ac_status = 0; }; }; then
2854 cross_compiling=no
2855 else
2856 if test "$cross_compiling" = maybe; then
2857 cross_compiling=yes
2858 else
2859 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2860 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2861 as_fn_error "cannot run C compiled programs.
2862 If you meant to cross compile, use \`--host'.
2863 See \`config.log' for more details." "$LINENO" 5; }
2864 fi
2865 fi
2866 fi
2867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2868 $as_echo "yes" >&6; }
2869
2870 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
2871 ac_clean_files=$ac_clean_files_save
2872 # Check that the compiler produces executables we can run. If not, either
2873 # the compiler is broken, or we cross compile.
2874 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
2875 $as_echo_n "checking whether we are cross compiling... " >&6; }
2876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
2877 $as_echo "$cross_compiling" >&6; }
2878
2879 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
2880 $as_echo_n "checking for suffix of executables... " >&6; }
2881 if { { ac_try="$ac_link"
2882 case "(($ac_try" in
2883 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2884 *) ac_try_echo=$ac_try;;
2885 esac
2886 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2887 $as_echo "$ac_try_echo"; } >&5
2888 (eval "$ac_link") 2>&5
2889 ac_status=$?
2890 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2891 test $ac_status = 0; }; then :
2892 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2893 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2894 # work properly (i.e., refer to `conftest.exe'), while it won't with
2895 # `rm'.
2896 for ac_file in conftest.exe conftest conftest.*; do
2897 test -f "$ac_file" || continue
2898 case $ac_file in
2899 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2900 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2901 break;;
2902 * ) break;;
2903 esac
2904 done
2905 else
2906 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2907 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2908 as_fn_error "cannot compute suffix of executables: cannot compile and link
2909 See \`config.log' for more details." "$LINENO" 5; }
2910 fi
2911 rm -f conftest$ac_cv_exeext
2912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
2913 $as_echo "$ac_cv_exeext" >&6; }
2914
2915 rm -f conftest.$ac_ext
2916 EXEEXT=$ac_cv_exeext
2917 ac_exeext=$EXEEXT
2918 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
2919 $as_echo_n "checking for suffix of object files... " >&6; }
2920 if test "${ac_cv_objext+set}" = set; then :
2921 $as_echo_n "(cached) " >&6
2922 else
2923 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2924 /* end confdefs.h. */
2925
2926 int
2927 main ()
2928 {
2929
2930 ;
2931 return 0;
2932 }
2933 _ACEOF
2934 rm -f conftest.o conftest.obj
2935 if { { ac_try="$ac_compile"
2936 case "(($ac_try" in
2937 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2938 *) ac_try_echo=$ac_try;;
2939 esac
2940 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2941 $as_echo "$ac_try_echo"; } >&5
2942 (eval "$ac_compile") 2>&5
2943 ac_status=$?
2944 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2945 test $ac_status = 0; }; then :
2946 for ac_file in conftest.o conftest.obj conftest.*; do
2947 test -f "$ac_file" || continue;
2948 case $ac_file in
2949 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
2950 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2951 break;;
2952 esac
2953 done
2954 else
2955 $as_echo "$as_me: failed program was:" >&5
2956 sed 's/^/| /' conftest.$ac_ext >&5
2957
2958 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2959 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2960 as_fn_error "cannot compute suffix of object files: cannot compile
2961 See \`config.log' for more details." "$LINENO" 5; }
2962 fi
2963 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2964 fi
2965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
2966 $as_echo "$ac_cv_objext" >&6; }
2967 OBJEXT=$ac_cv_objext
2968 ac_objext=$OBJEXT
2969 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
2970 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
2971 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
2972 $as_echo_n "(cached) " >&6
2973 else
2974 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2975 /* end confdefs.h. */
2976
2977 int
2978 main ()
2979 {
2980 #ifndef __GNUC__
2981 choke me
2982 #endif
2983
2984 ;
2985 return 0;
2986 }
2987 _ACEOF
2988 if ac_fn_c_try_compile "$LINENO"; then :
2989 ac_compiler_gnu=yes
2990 else
2991 ac_compiler_gnu=no
2992 fi
2993 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2994 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2995
2996 fi
2997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
2998 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
2999 if test $ac_compiler_gnu = yes; then
3000 GCC=yes
3001 else
3002 GCC=
3003 fi
3004 ac_test_CFLAGS=${CFLAGS+set}
3005 ac_save_CFLAGS=$CFLAGS
3006 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3007 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3008 if test "${ac_cv_prog_cc_g+set}" = set; then :
3009 $as_echo_n "(cached) " >&6
3010 else
3011 ac_save_c_werror_flag=$ac_c_werror_flag
3012 ac_c_werror_flag=yes
3013 ac_cv_prog_cc_g=no
3014 CFLAGS="-g"
3015 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3016 /* end confdefs.h. */
3017
3018 int
3019 main ()
3020 {
3021
3022 ;
3023 return 0;
3024 }
3025 _ACEOF
3026 if ac_fn_c_try_compile "$LINENO"; then :
3027 ac_cv_prog_cc_g=yes
3028 else
3029 CFLAGS=""
3030 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3031 /* end confdefs.h. */
3032
3033 int
3034 main ()
3035 {
3036
3037 ;
3038 return 0;
3039 }
3040 _ACEOF
3041 if ac_fn_c_try_compile "$LINENO"; then :
3042
3043 else
3044 ac_c_werror_flag=$ac_save_c_werror_flag
3045 CFLAGS="-g"
3046 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3047 /* end confdefs.h. */
3048
3049 int
3050 main ()
3051 {
3052
3053 ;
3054 return 0;
3055 }
3056 _ACEOF
3057 if ac_fn_c_try_compile "$LINENO"; then :
3058 ac_cv_prog_cc_g=yes
3059 fi
3060 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3061 fi
3062 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3063 fi
3064 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3065 ac_c_werror_flag=$ac_save_c_werror_flag
3066 fi
3067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3068 $as_echo "$ac_cv_prog_cc_g" >&6; }
3069 if test "$ac_test_CFLAGS" = set; then
3070 CFLAGS=$ac_save_CFLAGS
3071 elif test $ac_cv_prog_cc_g = yes; then
3072 if test "$GCC" = yes; then
3073 CFLAGS="-g -O2"
3074 else
3075 CFLAGS="-g"
3076 fi
3077 else
3078 if test "$GCC" = yes; then
3079 CFLAGS="-O2"
3080 else
3081 CFLAGS=
3082 fi
3083 fi
3084 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3085 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3086 if test "${ac_cv_prog_cc_c89+set}" = set; then :
3087 $as_echo_n "(cached) " >&6
3088 else
3089 ac_cv_prog_cc_c89=no
3090 ac_save_CC=$CC
3091 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3092 /* end confdefs.h. */
3093 #include <stdarg.h>
3094 #include <stdio.h>
3095 #include <sys/types.h>
3096 #include <sys/stat.h>
3097 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3098 struct buf { int x; };
3099 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3100 static char *e (p, i)
3101 char **p;
3102 int i;
3103 {
3104 return p[i];
3105 }
3106 static char *f (char * (*g) (char **, int), char **p, ...)
3107 {
3108 char *s;
3109 va_list v;
3110 va_start (v,p);
3111 s = g (p, va_arg (v,int));
3112 va_end (v);
3113 return s;
3114 }
3115
3116 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3117 function prototypes and stuff, but not '\xHH' hex character constants.
3118 These don't provoke an error unfortunately, instead are silently treated
3119 as 'x'. The following induces an error, until -std is added to get
3120 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3121 array size at least. It's necessary to write '\x00'==0 to get something
3122 that's true only with -std. */
3123 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3124
3125 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3126 inside strings and character constants. */
3127 #define FOO(x) 'x'
3128 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3129
3130 int test (int i, double x);
3131 struct s1 {int (*f) (int a);};
3132 struct s2 {int (*f) (double a);};
3133 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3134 int argc;
3135 char **argv;
3136 int
3137 main ()
3138 {
3139 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3140 ;
3141 return 0;
3142 }
3143 _ACEOF
3144 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3145 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3146 do
3147 CC="$ac_save_CC $ac_arg"
3148 if ac_fn_c_try_compile "$LINENO"; then :
3149 ac_cv_prog_cc_c89=$ac_arg
3150 fi
3151 rm -f core conftest.err conftest.$ac_objext
3152 test "x$ac_cv_prog_cc_c89" != "xno" && break
3153 done
3154 rm -f conftest.$ac_ext
3155 CC=$ac_save_CC
3156
3157 fi
3158 # AC_CACHE_VAL
3159 case "x$ac_cv_prog_cc_c89" in
3160 x)
3161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3162 $as_echo "none needed" >&6; } ;;
3163 xno)
3164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3165 $as_echo "unsupported" >&6; } ;;
3166 *)
3167 CC="$CC $ac_cv_prog_cc_c89"
3168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3169 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3170 esac
3171 if test "x$ac_cv_prog_cc_c89" != xno; then :
3172
3173 fi
3174
3175 ac_ext=c
3176 ac_cpp='$CPP $CPPFLAGS'
3177 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3178 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3179 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3180
3181
3182 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing strerror" >&5
3183 $as_echo_n "checking for library containing strerror... " >&6; }
3184 if test "${ac_cv_search_strerror+set}" = set; then :
3185 $as_echo_n "(cached) " >&6
3186 else
3187 ac_func_search_save_LIBS=$LIBS
3188 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3189 /* end confdefs.h. */
3190
3191 /* Override any GCC internal prototype to avoid an error.
3192 Use char because int might match the return type of a GCC
3193 builtin and then its argument prototype would still apply. */
3194 #ifdef __cplusplus
3195 extern "C"
3196 #endif
3197 char strerror ();
3198 int
3199 main ()
3200 {
3201 return strerror ();
3202 ;
3203 return 0;
3204 }
3205 _ACEOF
3206 for ac_lib in '' cposix; do
3207 if test -z "$ac_lib"; then
3208 ac_res="none required"
3209 else
3210 ac_res=-l$ac_lib
3211 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
3212 fi
3213 if ac_fn_c_try_link "$LINENO"; then :
3214 ac_cv_search_strerror=$ac_res
3215 fi
3216 rm -f core conftest.err conftest.$ac_objext \
3217 conftest$ac_exeext
3218 if test "${ac_cv_search_strerror+set}" = set; then :
3219 break
3220 fi
3221 done
3222 if test "${ac_cv_search_strerror+set}" = set; then :
3223
3224 else
3225 ac_cv_search_strerror=no
3226 fi
3227 rm conftest.$ac_ext
3228 LIBS=$ac_func_search_save_LIBS
3229 fi
3230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_strerror" >&5
3231 $as_echo "$ac_cv_search_strerror" >&6; }
3232 ac_res=$ac_cv_search_strerror
3233 if test "$ac_res" != no; then :
3234 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
3235
3236 fi
3237
3238
3239 am__api_version='1.11'
3240
3241 # Find a good install program. We prefer a C program (faster),
3242 # so one script is as good as another. But avoid the broken or
3243 # incompatible versions:
3244 # SysV /etc/install, /usr/sbin/install
3245 # SunOS /usr/etc/install
3246 # IRIX /sbin/install
3247 # AIX /bin/install
3248 # AmigaOS /C/install, which installs bootblocks on floppy discs
3249 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3250 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3251 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3252 # OS/2's system install, which has a completely different semantic
3253 # ./install, which can be erroneously created by make from ./install.sh.
3254 # Reject install programs that cannot install multiple files.
3255 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
3256 $as_echo_n "checking for a BSD-compatible install... " >&6; }
3257 if test -z "$INSTALL"; then
3258 if test "${ac_cv_path_install+set}" = set; then :
3259 $as_echo_n "(cached) " >&6
3260 else
3261 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3262 for as_dir in $PATH
3263 do
3264 IFS=$as_save_IFS
3265 test -z "$as_dir" && as_dir=.
3266 # Account for people who put trailing slashes in PATH elements.
3267 case $as_dir/ in #((
3268 ./ | .// | /[cC]/* | \
3269 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3270 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
3271 /usr/ucb/* ) ;;
3272 *)
3273 # OSF1 and SCO ODT 3.0 have their own names for install.
3274 # Don't use installbsd from OSF since it installs stuff as root
3275 # by default.
3276 for ac_prog in ginstall scoinst install; do
3277 for ac_exec_ext in '' $ac_executable_extensions; do
3278 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
3279 if test $ac_prog = install &&
3280 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3281 # AIX install. It has an incompatible calling convention.
3282 :
3283 elif test $ac_prog = install &&
3284 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3285 # program-specific install script used by HP pwplus--don't use.
3286 :
3287 else
3288 rm -rf conftest.one conftest.two conftest.dir
3289 echo one > conftest.one
3290 echo two > conftest.two
3291 mkdir conftest.dir
3292 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
3293 test -s conftest.one && test -s conftest.two &&
3294 test -s conftest.dir/conftest.one &&
3295 test -s conftest.dir/conftest.two
3296 then
3297 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3298 break 3
3299 fi
3300 fi
3301 fi
3302 done
3303 done
3304 ;;
3305 esac
3306
3307 done
3308 IFS=$as_save_IFS
3309
3310 rm -rf conftest.one conftest.two conftest.dir
3311
3312 fi
3313 if test "${ac_cv_path_install+set}" = set; then
3314 INSTALL=$ac_cv_path_install
3315 else
3316 # As a last resort, use the slow shell script. Don't cache a
3317 # value for INSTALL within a source directory, because that will
3318 # break other packages using the cache if that directory is
3319 # removed, or if the value is a relative name.
3320 INSTALL=$ac_install_sh
3321 fi
3322 fi
3323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
3324 $as_echo "$INSTALL" >&6; }
3325
3326 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3327 # It thinks the first close brace ends the variable substitution.
3328 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3329
3330 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3331
3332 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3333
3334 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
3335 $as_echo_n "checking whether build environment is sane... " >&6; }
3336 # Just in case
3337 sleep 1
3338 echo timestamp > conftest.file
3339 # Reject unsafe characters in $srcdir or the absolute working directory
3340 # name. Accept space and tab only in the latter.
3341 am_lf='
3342 '
3343 case `pwd` in
3344 *[\\\"\#\$\&\'\`$am_lf]*)
3345 as_fn_error "unsafe absolute working directory name" "$LINENO" 5;;
3346 esac
3347 case $srcdir in
3348 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
3349 as_fn_error "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
3350 esac
3351
3352 # Do `set' in a subshell so we don't clobber the current shell's
3353 # arguments. Must try -L first in case configure is actually a
3354 # symlink; some systems play weird games with the mod time of symlinks
3355 # (eg FreeBSD returns the mod time of the symlink's containing
3356 # directory).
3357 if (
3358 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
3359 if test "$*" = "X"; then
3360 # -L didn't work.
3361 set X `ls -t "$srcdir/configure" conftest.file`
3362 fi
3363 rm -f conftest.file
3364 if test "$*" != "X $srcdir/configure conftest.file" \
3365 && test "$*" != "X conftest.file $srcdir/configure"; then
3366
3367 # If neither matched, then we have a broken ls. This can happen
3368 # if, for instance, CONFIG_SHELL is bash and it inherits a
3369 # broken ls alias from the environment. This has actually
3370 # happened. Such a system could not be considered "sane".
3371 as_fn_error "ls -t appears to fail. Make sure there is not a broken
3372 alias in your environment" "$LINENO" 5
3373 fi
3374
3375 test "$2" = conftest.file
3376 )
3377 then
3378 # Ok.
3379 :
3380 else
3381 as_fn_error "newly created file is older than distributed files!
3382 Check your system clock" "$LINENO" 5
3383 fi
3384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3385 $as_echo "yes" >&6; }
3386 test "$program_prefix" != NONE &&
3387 program_transform_name="s&^&$program_prefix&;$program_transform_name"
3388 # Use a double $ so make ignores it.
3389 test "$program_suffix" != NONE &&
3390 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3391 # Double any \ or $.
3392 # By default was `s,x,x', remove it if useless.
3393 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3394 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
3395
3396 # expand $ac_aux_dir to an absolute path
3397 am_aux_dir=`cd $ac_aux_dir && pwd`
3398
3399 if test x"${MISSING+set}" != xset; then
3400 case $am_aux_dir in
3401 *\ * | *\ *)
3402 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
3403 *)
3404 MISSING="\${SHELL} $am_aux_dir/missing" ;;
3405 esac
3406 fi
3407 # Use eval to expand $SHELL
3408 if eval "$MISSING --run true"; then
3409 am_missing_run="$MISSING --run "
3410 else
3411 am_missing_run=
3412 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
3413 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
3414 fi
3415
3416 if test x"${install_sh}" != xset; then
3417 case $am_aux_dir in
3418 *\ * | *\ *)
3419 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
3420 *)
3421 install_sh="\${SHELL} $am_aux_dir/install-sh"
3422 esac
3423 fi
3424
3425 # Installed binaries are usually stripped using `strip' when the user
3426 # run `make install-strip'. However `strip' might not be the right
3427 # tool to use in cross-compilation environments, therefore Automake
3428 # will honor the `STRIP' environment variable to overrule this program.
3429 if test "$cross_compiling" != no; then
3430 if test -n "$ac_tool_prefix"; then
3431 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3432 set dummy ${ac_tool_prefix}strip; ac_word=$2
3433 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3434 $as_echo_n "checking for $ac_word... " >&6; }
3435 if test "${ac_cv_prog_STRIP+set}" = set; then :
3436 $as_echo_n "(cached) " >&6
3437 else
3438 if test -n "$STRIP"; then
3439 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3440 else
3441 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3442 for as_dir in $PATH
3443 do
3444 IFS=$as_save_IFS
3445 test -z "$as_dir" && as_dir=.
3446 for ac_exec_ext in '' $ac_executable_extensions; do
3447 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3448 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3449 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3450 break 2
3451 fi
3452 done
3453 done
3454 IFS=$as_save_IFS
3455
3456 fi
3457 fi
3458 STRIP=$ac_cv_prog_STRIP
3459 if test -n "$STRIP"; then
3460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3461 $as_echo "$STRIP" >&6; }
3462 else
3463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3464 $as_echo "no" >&6; }
3465 fi
3466
3467
3468 fi
3469 if test -z "$ac_cv_prog_STRIP"; then
3470 ac_ct_STRIP=$STRIP
3471 # Extract the first word of "strip", so it can be a program name with args.
3472 set dummy strip; ac_word=$2
3473 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3474 $as_echo_n "checking for $ac_word... " >&6; }
3475 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
3476 $as_echo_n "(cached) " >&6
3477 else
3478 if test -n "$ac_ct_STRIP"; then
3479 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3480 else
3481 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3482 for as_dir in $PATH
3483 do
3484 IFS=$as_save_IFS
3485 test -z "$as_dir" && as_dir=.
3486 for ac_exec_ext in '' $ac_executable_extensions; do
3487 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3488 ac_cv_prog_ac_ct_STRIP="strip"
3489 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3490 break 2
3491 fi
3492 done
3493 done
3494 IFS=$as_save_IFS
3495
3496 fi
3497 fi
3498 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3499 if test -n "$ac_ct_STRIP"; then
3500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3501 $as_echo "$ac_ct_STRIP" >&6; }
3502 else
3503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3504 $as_echo "no" >&6; }
3505 fi
3506
3507 if test "x$ac_ct_STRIP" = x; then
3508 STRIP=":"
3509 else
3510 case $cross_compiling:$ac_tool_warned in
3511 yes:)
3512 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3513 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3514 ac_tool_warned=yes ;;
3515 esac
3516 STRIP=$ac_ct_STRIP
3517 fi
3518 else
3519 STRIP="$ac_cv_prog_STRIP"
3520 fi
3521
3522 fi
3523 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3524
3525 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
3526 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3527 if test -z "$MKDIR_P"; then
3528 if test "${ac_cv_path_mkdir+set}" = set; then :
3529 $as_echo_n "(cached) " >&6
3530 else
3531 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3532 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3533 do
3534 IFS=$as_save_IFS
3535 test -z "$as_dir" && as_dir=.
3536 for ac_prog in mkdir gmkdir; do
3537 for ac_exec_ext in '' $ac_executable_extensions; do
3538 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
3539 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3540 'mkdir (GNU coreutils) '* | \
3541 'mkdir (coreutils) '* | \
3542 'mkdir (fileutils) '4.1*)
3543 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
3544 break 3;;
3545 esac
3546 done
3547 done
3548 done
3549 IFS=$as_save_IFS
3550
3551 fi
3552
3553 if test "${ac_cv_path_mkdir+set}" = set; then
3554 MKDIR_P="$ac_cv_path_mkdir -p"
3555 else
3556 # As a last resort, use the slow shell script. Don't cache a
3557 # value for MKDIR_P within a source directory, because that will
3558 # break other packages using the cache if that directory is
3559 # removed, or if the value is a relative name.
3560 test -d ./--version && rmdir ./--version
3561 MKDIR_P="$ac_install_sh -d"
3562 fi
3563 fi
3564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3565 $as_echo "$MKDIR_P" >&6; }
3566
3567 mkdir_p="$MKDIR_P"
3568 case $mkdir_p in
3569 [\\/$]* | ?:[\\/]*) ;;
3570 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
3571 esac
3572
3573 for ac_prog in gawk mawk nawk awk
3574 do
3575 # Extract the first word of "$ac_prog", so it can be a program name with args.
3576 set dummy $ac_prog; ac_word=$2
3577 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3578 $as_echo_n "checking for $ac_word... " >&6; }
3579 if test "${ac_cv_prog_AWK+set}" = set; then :
3580 $as_echo_n "(cached) " >&6
3581 else
3582 if test -n "$AWK"; then
3583 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3584 else
3585 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3586 for as_dir in $PATH
3587 do
3588 IFS=$as_save_IFS
3589 test -z "$as_dir" && as_dir=.
3590 for ac_exec_ext in '' $ac_executable_extensions; do
3591 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3592 ac_cv_prog_AWK="$ac_prog"
3593 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3594 break 2
3595 fi
3596 done
3597 done
3598 IFS=$as_save_IFS
3599
3600 fi
3601 fi
3602 AWK=$ac_cv_prog_AWK
3603 if test -n "$AWK"; then
3604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3605 $as_echo "$AWK" >&6; }
3606 else
3607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3608 $as_echo "no" >&6; }
3609 fi
3610
3611
3612 test -n "$AWK" && break
3613 done
3614
3615 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3616 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3617 set x ${MAKE-make}
3618 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3619 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
3620 $as_echo_n "(cached) " >&6
3621 else
3622 cat >conftest.make <<\_ACEOF
3623 SHELL = /bin/sh
3624 all:
3625 @echo '@@@%%%=$(MAKE)=@@@%%%'
3626 _ACEOF
3627 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3628 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3629 *@@@%%%=?*=@@@%%%*)
3630 eval ac_cv_prog_make_${ac_make}_set=yes;;
3631 *)
3632 eval ac_cv_prog_make_${ac_make}_set=no;;
3633 esac
3634 rm -f conftest.make
3635 fi
3636 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3638 $as_echo "yes" >&6; }
3639 SET_MAKE=
3640 else
3641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3642 $as_echo "no" >&6; }
3643 SET_MAKE="MAKE=${MAKE-make}"
3644 fi
3645
3646 rm -rf .tst 2>/dev/null
3647 mkdir .tst 2>/dev/null
3648 if test -d .tst; then
3649 am__leading_dot=.
3650 else
3651 am__leading_dot=_
3652 fi
3653 rmdir .tst 2>/dev/null
3654
3655 DEPDIR="${am__leading_dot}deps"
3656
3657 ac_config_commands="$ac_config_commands depfiles"
3658
3659
3660 am_make=${MAKE-make}
3661 cat > confinc << 'END'
3662 am__doit:
3663 @echo this is the am__doit target
3664 .PHONY: am__doit
3665 END
3666 # If we don't find an include directive, just comment out the code.
3667 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3668 $as_echo_n "checking for style of include used by $am_make... " >&6; }
3669 am__include="#"
3670 am__quote=
3671 _am_result=none
3672 # First try GNU make style include.
3673 echo "include confinc" > confmf
3674 # Ignore all kinds of additional output from `make'.
3675 case `$am_make -s -f confmf 2> /dev/null` in #(
3676 *the\ am__doit\ target*)
3677 am__include=include
3678 am__quote=
3679 _am_result=GNU
3680 ;;
3681 esac
3682 # Now try BSD make style include.
3683 if test "$am__include" = "#"; then
3684 echo '.include "confinc"' > confmf
3685 case `$am_make -s -f confmf 2> /dev/null` in #(
3686 *the\ am__doit\ target*)
3687 am__include=.include
3688 am__quote="\""
3689 _am_result=BSD
3690 ;;
3691 esac
3692 fi
3693
3694
3695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3696 $as_echo "$_am_result" >&6; }
3697 rm -f confinc confmf
3698
3699 # Check whether --enable-dependency-tracking was given.
3700 if test "${enable_dependency_tracking+set}" = set; then :
3701 enableval=$enable_dependency_tracking;
3702 fi
3703
3704 if test "x$enable_dependency_tracking" != xno; then
3705 am_depcomp="$ac_aux_dir/depcomp"
3706 AMDEPBACKSLASH='\'
3707 am__nodep='_no'
3708 fi
3709 if test "x$enable_dependency_tracking" != xno; then
3710 AMDEP_TRUE=
3711 AMDEP_FALSE='#'
3712 else
3713 AMDEP_TRUE='#'
3714 AMDEP_FALSE=
3715 fi
3716
3717
3718 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3719 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3720 # is not polluted with repeated "-I."
3721 am__isrc=' -I$(srcdir)'
3722 # test to see if srcdir already configured
3723 if test -f $srcdir/config.status; then
3724 as_fn_error "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3725 fi
3726 fi
3727
3728 # test whether we have cygpath
3729 if test -z "$CYGPATH_W"; then
3730 if (cygpath --version) >/dev/null 2>/dev/null; then
3731 CYGPATH_W='cygpath -w'
3732 else
3733 CYGPATH_W=echo
3734 fi
3735 fi
3736
3737
3738 # Define the identity of the package.
3739 PACKAGE='gas'
3740 VERSION='2.26.51'
3741
3742
3743 cat >>confdefs.h <<_ACEOF
3744 #define PACKAGE "$PACKAGE"
3745 _ACEOF
3746
3747
3748 cat >>confdefs.h <<_ACEOF
3749 #define VERSION "$VERSION"
3750 _ACEOF
3751
3752 # Some tools Automake needs.
3753
3754 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3755
3756
3757 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3758
3759
3760 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3761
3762
3763 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3764
3765
3766 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3767
3768 # We need awk for the "check" target. The system "awk" is bad on
3769 # some platforms.
3770 # Always define AMTAR for backward compatibility. Yes, it's still used
3771 # in the wild :-( We should find a proper way to deprecate it ...
3772 AMTAR='$${TAR-tar}'
3773
3774 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
3775
3776
3777
3778
3779 depcc="$CC" am_compiler_list=
3780
3781 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3782 $as_echo_n "checking dependency style of $depcc... " >&6; }
3783 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
3784 $as_echo_n "(cached) " >&6
3785 else
3786 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3787 # We make a subdir and do the tests there. Otherwise we can end up
3788 # making bogus files that we don't know about and never remove. For
3789 # instance it was reported that on HP-UX the gcc test will end up
3790 # making a dummy file named `D' -- because `-MD' means `put the output
3791 # in D'.
3792 rm -rf conftest.dir
3793 mkdir conftest.dir
3794 # Copy depcomp to subdir because otherwise we won't find it if we're
3795 # using a relative directory.
3796 cp "$am_depcomp" conftest.dir
3797 cd conftest.dir
3798 # We will build objects and dependencies in a subdirectory because
3799 # it helps to detect inapplicable dependency modes. For instance
3800 # both Tru64's cc and ICC support -MD to output dependencies as a
3801 # side effect of compilation, but ICC will put the dependencies in
3802 # the current directory while Tru64 will put them in the object
3803 # directory.
3804 mkdir sub
3805
3806 am_cv_CC_dependencies_compiler_type=none
3807 if test "$am_compiler_list" = ""; then
3808 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3809 fi
3810 am__universal=false
3811 case " $depcc " in #(
3812 *\ -arch\ *\ -arch\ *) am__universal=true ;;
3813 esac
3814
3815 for depmode in $am_compiler_list; do
3816 # Setup a source with many dependencies, because some compilers
3817 # like to wrap large dependency lists on column 80 (with \), and
3818 # we should not choose a depcomp mode which is confused by this.
3819 #
3820 # We need to recreate these files for each test, as the compiler may
3821 # overwrite some of them when testing with obscure command lines.
3822 # This happens at least with the AIX C compiler.
3823 : > sub/conftest.c
3824 for i in 1 2 3 4 5 6; do
3825 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3826 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3827 # Solaris 8's {/usr,}/bin/sh.
3828 touch sub/conftst$i.h
3829 done
3830 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3831
3832 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3833 # mode. It turns out that the SunPro C++ compiler does not properly
3834 # handle `-M -o', and we need to detect this. Also, some Intel
3835 # versions had trouble with output in subdirs
3836 am__obj=sub/conftest.${OBJEXT-o}
3837 am__minus_obj="-o $am__obj"
3838 case $depmode in
3839 gcc)
3840 # This depmode causes a compiler race in universal mode.
3841 test "$am__universal" = false || continue
3842 ;;
3843 nosideeffect)
3844 # after this tag, mechanisms are not by side-effect, so they'll
3845 # only be used when explicitly requested
3846 if test "x$enable_dependency_tracking" = xyes; then
3847 continue
3848 else
3849 break
3850 fi
3851 ;;
3852 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
3853 # This compiler won't grok `-c -o', but also, the minuso test has
3854 # not run yet. These depmodes are late enough in the game, and
3855 # so weak that their functioning should not be impacted.
3856 am__obj=conftest.${OBJEXT-o}
3857 am__minus_obj=
3858 ;;
3859 none) break ;;
3860 esac
3861 if depmode=$depmode \
3862 source=sub/conftest.c object=$am__obj \
3863 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3864 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
3865 >/dev/null 2>conftest.err &&
3866 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3867 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3868 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
3869 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3870 # icc doesn't choke on unknown options, it will just issue warnings
3871 # or remarks (even with -Werror). So we grep stderr for any message
3872 # that says an option was ignored or not supported.
3873 # When given -MP, icc 7.0 and 7.1 complain thusly:
3874 # icc: Command line warning: ignoring option '-M'; no argument required
3875 # The diagnosis changed in icc 8.0:
3876 # icc: Command line remark: option '-MP' not supported
3877 if (grep 'ignoring option' conftest.err ||
3878 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3879 am_cv_CC_dependencies_compiler_type=$depmode
3880 break
3881 fi
3882 fi
3883 done
3884
3885 cd ..
3886 rm -rf conftest.dir
3887 else
3888 am_cv_CC_dependencies_compiler_type=none
3889 fi
3890
3891 fi
3892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
3893 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
3894 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3895
3896 if
3897 test "x$enable_dependency_tracking" != xno \
3898 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3899 am__fastdepCC_TRUE=
3900 am__fastdepCC_FALSE='#'
3901 else
3902 am__fastdepCC_TRUE='#'
3903 am__fastdepCC_FALSE=
3904 fi
3905
3906
3907
3908
3909 ac_ext=c
3910 ac_cpp='$CPP $CPPFLAGS'
3911 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3912 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3913 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3914 if test -n "$ac_tool_prefix"; then
3915 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3916 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3917 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3918 $as_echo_n "checking for $ac_word... " >&6; }
3919 if test "${ac_cv_prog_CC+set}" = set; then :
3920 $as_echo_n "(cached) " >&6
3921 else
3922 if test -n "$CC"; then
3923 ac_cv_prog_CC="$CC" # Let the user override the test.
3924 else
3925 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3926 for as_dir in $PATH
3927 do
3928 IFS=$as_save_IFS
3929 test -z "$as_dir" && as_dir=.
3930 for ac_exec_ext in '' $ac_executable_extensions; do
3931 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3932 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3933 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3934 break 2
3935 fi
3936 done
3937 done
3938 IFS=$as_save_IFS
3939
3940 fi
3941 fi
3942 CC=$ac_cv_prog_CC
3943 if test -n "$CC"; then
3944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3945 $as_echo "$CC" >&6; }
3946 else
3947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3948 $as_echo "no" >&6; }
3949 fi
3950
3951
3952 fi
3953 if test -z "$ac_cv_prog_CC"; then
3954 ac_ct_CC=$CC
3955 # Extract the first word of "gcc", so it can be a program name with args.
3956 set dummy gcc; ac_word=$2
3957 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3958 $as_echo_n "checking for $ac_word... " >&6; }
3959 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3960 $as_echo_n "(cached) " >&6
3961 else
3962 if test -n "$ac_ct_CC"; then
3963 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3964 else
3965 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3966 for as_dir in $PATH
3967 do
3968 IFS=$as_save_IFS
3969 test -z "$as_dir" && as_dir=.
3970 for ac_exec_ext in '' $ac_executable_extensions; do
3971 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3972 ac_cv_prog_ac_ct_CC="gcc"
3973 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3974 break 2
3975 fi
3976 done
3977 done
3978 IFS=$as_save_IFS
3979
3980 fi
3981 fi
3982 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3983 if test -n "$ac_ct_CC"; then
3984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3985 $as_echo "$ac_ct_CC" >&6; }
3986 else
3987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3988 $as_echo "no" >&6; }
3989 fi
3990
3991 if test "x$ac_ct_CC" = x; then
3992 CC=""
3993 else
3994 case $cross_compiling:$ac_tool_warned in
3995 yes:)
3996 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3997 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3998 ac_tool_warned=yes ;;
3999 esac
4000 CC=$ac_ct_CC
4001 fi
4002 else
4003 CC="$ac_cv_prog_CC"
4004 fi
4005
4006 if test -z "$CC"; then
4007 if test -n "$ac_tool_prefix"; then
4008 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4009 set dummy ${ac_tool_prefix}cc; ac_word=$2
4010 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4011 $as_echo_n "checking for $ac_word... " >&6; }
4012 if test "${ac_cv_prog_CC+set}" = set; then :
4013 $as_echo_n "(cached) " >&6
4014 else
4015 if test -n "$CC"; then
4016 ac_cv_prog_CC="$CC" # Let the user override the test.
4017 else
4018 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4019 for as_dir in $PATH
4020 do
4021 IFS=$as_save_IFS
4022 test -z "$as_dir" && as_dir=.
4023 for ac_exec_ext in '' $ac_executable_extensions; do
4024 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4025 ac_cv_prog_CC="${ac_tool_prefix}cc"
4026 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4027 break 2
4028 fi
4029 done
4030 done
4031 IFS=$as_save_IFS
4032
4033 fi
4034 fi
4035 CC=$ac_cv_prog_CC
4036 if test -n "$CC"; then
4037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4038 $as_echo "$CC" >&6; }
4039 else
4040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4041 $as_echo "no" >&6; }
4042 fi
4043
4044
4045 fi
4046 fi
4047 if test -z "$CC"; then
4048 # Extract the first word of "cc", so it can be a program name with args.
4049 set dummy cc; ac_word=$2
4050 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4051 $as_echo_n "checking for $ac_word... " >&6; }
4052 if test "${ac_cv_prog_CC+set}" = set; then :
4053 $as_echo_n "(cached) " >&6
4054 else
4055 if test -n "$CC"; then
4056 ac_cv_prog_CC="$CC" # Let the user override the test.
4057 else
4058 ac_prog_rejected=no
4059 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4060 for as_dir in $PATH
4061 do
4062 IFS=$as_save_IFS
4063 test -z "$as_dir" && as_dir=.
4064 for ac_exec_ext in '' $ac_executable_extensions; do
4065 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4066 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4067 ac_prog_rejected=yes
4068 continue
4069 fi
4070 ac_cv_prog_CC="cc"
4071 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4072 break 2
4073 fi
4074 done
4075 done
4076 IFS=$as_save_IFS
4077
4078 if test $ac_prog_rejected = yes; then
4079 # We found a bogon in the path, so make sure we never use it.
4080 set dummy $ac_cv_prog_CC
4081 shift
4082 if test $# != 0; then
4083 # We chose a different compiler from the bogus one.
4084 # However, it has the same basename, so the bogon will be chosen
4085 # first if we set CC to just the basename; use the full file name.
4086 shift
4087 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4088 fi
4089 fi
4090 fi
4091 fi
4092 CC=$ac_cv_prog_CC
4093 if test -n "$CC"; then
4094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4095 $as_echo "$CC" >&6; }
4096 else
4097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4098 $as_echo "no" >&6; }
4099 fi
4100
4101
4102 fi
4103 if test -z "$CC"; then
4104 if test -n "$ac_tool_prefix"; then
4105 for ac_prog in cl.exe
4106 do
4107 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4108 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4109 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4110 $as_echo_n "checking for $ac_word... " >&6; }
4111 if test "${ac_cv_prog_CC+set}" = set; then :
4112 $as_echo_n "(cached) " >&6
4113 else
4114 if test -n "$CC"; then
4115 ac_cv_prog_CC="$CC" # Let the user override the test.
4116 else
4117 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4118 for as_dir in $PATH
4119 do
4120 IFS=$as_save_IFS
4121 test -z "$as_dir" && as_dir=.
4122 for ac_exec_ext in '' $ac_executable_extensions; do
4123 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4124 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4125 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4126 break 2
4127 fi
4128 done
4129 done
4130 IFS=$as_save_IFS
4131
4132 fi
4133 fi
4134 CC=$ac_cv_prog_CC
4135 if test -n "$CC"; then
4136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4137 $as_echo "$CC" >&6; }
4138 else
4139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4140 $as_echo "no" >&6; }
4141 fi
4142
4143
4144 test -n "$CC" && break
4145 done
4146 fi
4147 if test -z "$CC"; then
4148 ac_ct_CC=$CC
4149 for ac_prog in cl.exe
4150 do
4151 # Extract the first word of "$ac_prog", so it can be a program name with args.
4152 set dummy $ac_prog; ac_word=$2
4153 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4154 $as_echo_n "checking for $ac_word... " >&6; }
4155 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
4156 $as_echo_n "(cached) " >&6
4157 else
4158 if test -n "$ac_ct_CC"; then
4159 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4160 else
4161 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4162 for as_dir in $PATH
4163 do
4164 IFS=$as_save_IFS
4165 test -z "$as_dir" && as_dir=.
4166 for ac_exec_ext in '' $ac_executable_extensions; do
4167 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4168 ac_cv_prog_ac_ct_CC="$ac_prog"
4169 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4170 break 2
4171 fi
4172 done
4173 done
4174 IFS=$as_save_IFS
4175
4176 fi
4177 fi
4178 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4179 if test -n "$ac_ct_CC"; then
4180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4181 $as_echo "$ac_ct_CC" >&6; }
4182 else
4183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4184 $as_echo "no" >&6; }
4185 fi
4186
4187
4188 test -n "$ac_ct_CC" && break
4189 done
4190
4191 if test "x$ac_ct_CC" = x; then
4192 CC=""
4193 else
4194 case $cross_compiling:$ac_tool_warned in
4195 yes:)
4196 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4197 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4198 ac_tool_warned=yes ;;
4199 esac
4200 CC=$ac_ct_CC
4201 fi
4202 fi
4203
4204 fi
4205
4206
4207 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4208 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4209 as_fn_error "no acceptable C compiler found in \$PATH
4210 See \`config.log' for more details." "$LINENO" 5; }
4211
4212 # Provide some information about the compiler.
4213 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4214 set X $ac_compile
4215 ac_compiler=$2
4216 for ac_option in --version -v -V -qversion; do
4217 { { ac_try="$ac_compiler $ac_option >&5"
4218 case "(($ac_try" in
4219 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4220 *) ac_try_echo=$ac_try;;
4221 esac
4222 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4223 $as_echo "$ac_try_echo"; } >&5
4224 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4225 ac_status=$?
4226 if test -s conftest.err; then
4227 sed '10a\
4228 ... rest of stderr output deleted ...
4229 10q' conftest.err >conftest.er1
4230 cat conftest.er1 >&5
4231 rm -f conftest.er1 conftest.err
4232 fi
4233 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4234 test $ac_status = 0; }
4235 done
4236
4237 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4238 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4239 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
4240 $as_echo_n "(cached) " >&6
4241 else
4242 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4243 /* end confdefs.h. */
4244
4245 int
4246 main ()
4247 {
4248 #ifndef __GNUC__
4249 choke me
4250 #endif
4251
4252 ;
4253 return 0;
4254 }
4255 _ACEOF
4256 if ac_fn_c_try_compile "$LINENO"; then :
4257 ac_compiler_gnu=yes
4258 else
4259 ac_compiler_gnu=no
4260 fi
4261 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4262 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4263
4264 fi
4265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4266 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4267 if test $ac_compiler_gnu = yes; then
4268 GCC=yes
4269 else
4270 GCC=
4271 fi
4272 ac_test_CFLAGS=${CFLAGS+set}
4273 ac_save_CFLAGS=$CFLAGS
4274 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4275 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4276 if test "${ac_cv_prog_cc_g+set}" = set; then :
4277 $as_echo_n "(cached) " >&6
4278 else
4279 ac_save_c_werror_flag=$ac_c_werror_flag
4280 ac_c_werror_flag=yes
4281 ac_cv_prog_cc_g=no
4282 CFLAGS="-g"
4283 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4284 /* end confdefs.h. */
4285
4286 int
4287 main ()
4288 {
4289
4290 ;
4291 return 0;
4292 }
4293 _ACEOF
4294 if ac_fn_c_try_compile "$LINENO"; then :
4295 ac_cv_prog_cc_g=yes
4296 else
4297 CFLAGS=""
4298 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4299 /* end confdefs.h. */
4300
4301 int
4302 main ()
4303 {
4304
4305 ;
4306 return 0;
4307 }
4308 _ACEOF
4309 if ac_fn_c_try_compile "$LINENO"; then :
4310
4311 else
4312 ac_c_werror_flag=$ac_save_c_werror_flag
4313 CFLAGS="-g"
4314 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4315 /* end confdefs.h. */
4316
4317 int
4318 main ()
4319 {
4320
4321 ;
4322 return 0;
4323 }
4324 _ACEOF
4325 if ac_fn_c_try_compile "$LINENO"; then :
4326 ac_cv_prog_cc_g=yes
4327 fi
4328 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4329 fi
4330 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4331 fi
4332 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4333 ac_c_werror_flag=$ac_save_c_werror_flag
4334 fi
4335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4336 $as_echo "$ac_cv_prog_cc_g" >&6; }
4337 if test "$ac_test_CFLAGS" = set; then
4338 CFLAGS=$ac_save_CFLAGS
4339 elif test $ac_cv_prog_cc_g = yes; then
4340 if test "$GCC" = yes; then
4341 CFLAGS="-g -O2"
4342 else
4343 CFLAGS="-g"
4344 fi
4345 else
4346 if test "$GCC" = yes; then
4347 CFLAGS="-O2"
4348 else
4349 CFLAGS=
4350 fi
4351 fi
4352 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4353 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4354 if test "${ac_cv_prog_cc_c89+set}" = set; then :
4355 $as_echo_n "(cached) " >&6
4356 else
4357 ac_cv_prog_cc_c89=no
4358 ac_save_CC=$CC
4359 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4360 /* end confdefs.h. */
4361 #include <stdarg.h>
4362 #include <stdio.h>
4363 #include <sys/types.h>
4364 #include <sys/stat.h>
4365 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4366 struct buf { int x; };
4367 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4368 static char *e (p, i)
4369 char **p;
4370 int i;
4371 {
4372 return p[i];
4373 }
4374 static char *f (char * (*g) (char **, int), char **p, ...)
4375 {
4376 char *s;
4377 va_list v;
4378 va_start (v,p);
4379 s = g (p, va_arg (v,int));
4380 va_end (v);
4381 return s;
4382 }
4383
4384 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4385 function prototypes and stuff, but not '\xHH' hex character constants.
4386 These don't provoke an error unfortunately, instead are silently treated
4387 as 'x'. The following induces an error, until -std is added to get
4388 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4389 array size at least. It's necessary to write '\x00'==0 to get something
4390 that's true only with -std. */
4391 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4392
4393 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4394 inside strings and character constants. */
4395 #define FOO(x) 'x'
4396 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4397
4398 int test (int i, double x);
4399 struct s1 {int (*f) (int a);};
4400 struct s2 {int (*f) (double a);};
4401 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4402 int argc;
4403 char **argv;
4404 int
4405 main ()
4406 {
4407 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4408 ;
4409 return 0;
4410 }
4411 _ACEOF
4412 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4413 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4414 do
4415 CC="$ac_save_CC $ac_arg"
4416 if ac_fn_c_try_compile "$LINENO"; then :
4417 ac_cv_prog_cc_c89=$ac_arg
4418 fi
4419 rm -f core conftest.err conftest.$ac_objext
4420 test "x$ac_cv_prog_cc_c89" != "xno" && break
4421 done
4422 rm -f conftest.$ac_ext
4423 CC=$ac_save_CC
4424
4425 fi
4426 # AC_CACHE_VAL
4427 case "x$ac_cv_prog_cc_c89" in
4428 x)
4429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4430 $as_echo "none needed" >&6; } ;;
4431 xno)
4432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4433 $as_echo "unsupported" >&6; } ;;
4434 *)
4435 CC="$CC $ac_cv_prog_cc_c89"
4436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4437 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4438 esac
4439 if test "x$ac_cv_prog_cc_c89" != xno; then :
4440
4441 fi
4442
4443 ac_ext=c
4444 ac_cpp='$CPP $CPPFLAGS'
4445 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4446 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4447 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4448
4449 ac_ext=c
4450 ac_cpp='$CPP $CPPFLAGS'
4451 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4452 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4453 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4454 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4455 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4456 # On Suns, sometimes $CPP names a directory.
4457 if test -n "$CPP" && test -d "$CPP"; then
4458 CPP=
4459 fi
4460 if test -z "$CPP"; then
4461 if test "${ac_cv_prog_CPP+set}" = set; then :
4462 $as_echo_n "(cached) " >&6
4463 else
4464 # Double quotes because CPP needs to be expanded
4465 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4466 do
4467 ac_preproc_ok=false
4468 for ac_c_preproc_warn_flag in '' yes
4469 do
4470 # Use a header file that comes with gcc, so configuring glibc
4471 # with a fresh cross-compiler works.
4472 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4473 # <limits.h> exists even on freestanding compilers.
4474 # On the NeXT, cc -E runs the code through the compiler's parser,
4475 # not just through cpp. "Syntax error" is here to catch this case.
4476 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4477 /* end confdefs.h. */
4478 #ifdef __STDC__
4479 # include <limits.h>
4480 #else
4481 # include <assert.h>
4482 #endif
4483 Syntax error
4484 _ACEOF
4485 if ac_fn_c_try_cpp "$LINENO"; then :
4486
4487 else
4488 # Broken: fails on valid input.
4489 continue
4490 fi
4491 rm -f conftest.err conftest.$ac_ext
4492
4493 # OK, works on sane cases. Now check whether nonexistent headers
4494 # can be detected and how.
4495 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4496 /* end confdefs.h. */
4497 #include <ac_nonexistent.h>
4498 _ACEOF
4499 if ac_fn_c_try_cpp "$LINENO"; then :
4500 # Broken: success on invalid input.
4501 continue
4502 else
4503 # Passes both tests.
4504 ac_preproc_ok=:
4505 break
4506 fi
4507 rm -f conftest.err conftest.$ac_ext
4508
4509 done
4510 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4511 rm -f conftest.err conftest.$ac_ext
4512 if $ac_preproc_ok; then :
4513 break
4514 fi
4515
4516 done
4517 ac_cv_prog_CPP=$CPP
4518
4519 fi
4520 CPP=$ac_cv_prog_CPP
4521 else
4522 ac_cv_prog_CPP=$CPP
4523 fi
4524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4525 $as_echo "$CPP" >&6; }
4526 ac_preproc_ok=false
4527 for ac_c_preproc_warn_flag in '' yes
4528 do
4529 # Use a header file that comes with gcc, so configuring glibc
4530 # with a fresh cross-compiler works.
4531 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4532 # <limits.h> exists even on freestanding compilers.
4533 # On the NeXT, cc -E runs the code through the compiler's parser,
4534 # not just through cpp. "Syntax error" is here to catch this case.
4535 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4536 /* end confdefs.h. */
4537 #ifdef __STDC__
4538 # include <limits.h>
4539 #else
4540 # include <assert.h>
4541 #endif
4542 Syntax error
4543 _ACEOF
4544 if ac_fn_c_try_cpp "$LINENO"; then :
4545
4546 else
4547 # Broken: fails on valid input.
4548 continue
4549 fi
4550 rm -f conftest.err conftest.$ac_ext
4551
4552 # OK, works on sane cases. Now check whether nonexistent headers
4553 # can be detected and how.
4554 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4555 /* end confdefs.h. */
4556 #include <ac_nonexistent.h>
4557 _ACEOF
4558 if ac_fn_c_try_cpp "$LINENO"; then :
4559 # Broken: success on invalid input.
4560 continue
4561 else
4562 # Passes both tests.
4563 ac_preproc_ok=:
4564 break
4565 fi
4566 rm -f conftest.err conftest.$ac_ext
4567
4568 done
4569 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4570 rm -f conftest.err conftest.$ac_ext
4571 if $ac_preproc_ok; then :
4572
4573 else
4574 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4575 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4576 as_fn_error "C preprocessor \"$CPP\" fails sanity check
4577 See \`config.log' for more details." "$LINENO" 5; }
4578 fi
4579
4580 ac_ext=c
4581 ac_cpp='$CPP $CPPFLAGS'
4582 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4583 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4584 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4585
4586
4587 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4588 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4589 if test "${ac_cv_path_GREP+set}" = set; then :
4590 $as_echo_n "(cached) " >&6
4591 else
4592 if test -z "$GREP"; then
4593 ac_path_GREP_found=false
4594 # Loop through the user's path and test for each of PROGNAME-LIST
4595 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4596 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4597 do
4598 IFS=$as_save_IFS
4599 test -z "$as_dir" && as_dir=.
4600 for ac_prog in grep ggrep; do
4601 for ac_exec_ext in '' $ac_executable_extensions; do
4602 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4603 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4604 # Check for GNU ac_path_GREP and select it if it is found.
4605 # Check for GNU $ac_path_GREP
4606 case `"$ac_path_GREP" --version 2>&1` in
4607 *GNU*)
4608 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4609 *)
4610 ac_count=0
4611 $as_echo_n 0123456789 >"conftest.in"
4612 while :
4613 do
4614 cat "conftest.in" "conftest.in" >"conftest.tmp"
4615 mv "conftest.tmp" "conftest.in"
4616 cp "conftest.in" "conftest.nl"
4617 $as_echo 'GREP' >> "conftest.nl"
4618 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4619 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4620 as_fn_arith $ac_count + 1 && ac_count=$as_val
4621 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4622 # Best one so far, save it but keep looking for a better one
4623 ac_cv_path_GREP="$ac_path_GREP"
4624 ac_path_GREP_max=$ac_count
4625 fi
4626 # 10*(2^10) chars as input seems more than enough
4627 test $ac_count -gt 10 && break
4628 done
4629 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4630 esac
4631
4632 $ac_path_GREP_found && break 3
4633 done
4634 done
4635 done
4636 IFS=$as_save_IFS
4637 if test -z "$ac_cv_path_GREP"; then
4638 as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4639 fi
4640 else
4641 ac_cv_path_GREP=$GREP
4642 fi
4643
4644 fi
4645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4646 $as_echo "$ac_cv_path_GREP" >&6; }
4647 GREP="$ac_cv_path_GREP"
4648
4649
4650 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4651 $as_echo_n "checking for egrep... " >&6; }
4652 if test "${ac_cv_path_EGREP+set}" = set; then :
4653 $as_echo_n "(cached) " >&6
4654 else
4655 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4656 then ac_cv_path_EGREP="$GREP -E"
4657 else
4658 if test -z "$EGREP"; then
4659 ac_path_EGREP_found=false
4660 # Loop through the user's path and test for each of PROGNAME-LIST
4661 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4662 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4663 do
4664 IFS=$as_save_IFS
4665 test -z "$as_dir" && as_dir=.
4666 for ac_prog in egrep; do
4667 for ac_exec_ext in '' $ac_executable_extensions; do
4668 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4669 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4670 # Check for GNU ac_path_EGREP and select it if it is found.
4671 # Check for GNU $ac_path_EGREP
4672 case `"$ac_path_EGREP" --version 2>&1` in
4673 *GNU*)
4674 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4675 *)
4676 ac_count=0
4677 $as_echo_n 0123456789 >"conftest.in"
4678 while :
4679 do
4680 cat "conftest.in" "conftest.in" >"conftest.tmp"
4681 mv "conftest.tmp" "conftest.in"
4682 cp "conftest.in" "conftest.nl"
4683 $as_echo 'EGREP' >> "conftest.nl"
4684 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4685 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4686 as_fn_arith $ac_count + 1 && ac_count=$as_val
4687 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4688 # Best one so far, save it but keep looking for a better one
4689 ac_cv_path_EGREP="$ac_path_EGREP"
4690 ac_path_EGREP_max=$ac_count
4691 fi
4692 # 10*(2^10) chars as input seems more than enough
4693 test $ac_count -gt 10 && break
4694 done
4695 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4696 esac
4697
4698 $ac_path_EGREP_found && break 3
4699 done
4700 done
4701 done
4702 IFS=$as_save_IFS
4703 if test -z "$ac_cv_path_EGREP"; then
4704 as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4705 fi
4706 else
4707 ac_cv_path_EGREP=$EGREP
4708 fi
4709
4710 fi
4711 fi
4712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4713 $as_echo "$ac_cv_path_EGREP" >&6; }
4714 EGREP="$ac_cv_path_EGREP"
4715
4716
4717 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4718 $as_echo_n "checking for ANSI C header files... " >&6; }
4719 if test "${ac_cv_header_stdc+set}" = set; then :
4720 $as_echo_n "(cached) " >&6
4721 else
4722 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4723 /* end confdefs.h. */
4724 #include <stdlib.h>
4725 #include <stdarg.h>
4726 #include <string.h>
4727 #include <float.h>
4728
4729 int
4730 main ()
4731 {
4732
4733 ;
4734 return 0;
4735 }
4736 _ACEOF
4737 if ac_fn_c_try_compile "$LINENO"; then :
4738 ac_cv_header_stdc=yes
4739 else
4740 ac_cv_header_stdc=no
4741 fi
4742 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4743
4744 if test $ac_cv_header_stdc = yes; then
4745 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4746 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4747 /* end confdefs.h. */
4748 #include <string.h>
4749
4750 _ACEOF
4751 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4752 $EGREP "memchr" >/dev/null 2>&1; then :
4753
4754 else
4755 ac_cv_header_stdc=no
4756 fi
4757 rm -f conftest*
4758
4759 fi
4760
4761 if test $ac_cv_header_stdc = yes; then
4762 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4763 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4764 /* end confdefs.h. */
4765 #include <stdlib.h>
4766
4767 _ACEOF
4768 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4769 $EGREP "free" >/dev/null 2>&1; then :
4770
4771 else
4772 ac_cv_header_stdc=no
4773 fi
4774 rm -f conftest*
4775
4776 fi
4777
4778 if test $ac_cv_header_stdc = yes; then
4779 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4780 if test "$cross_compiling" = yes; then :
4781 :
4782 else
4783 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4784 /* end confdefs.h. */
4785 #include <ctype.h>
4786 #include <stdlib.h>
4787 #if ((' ' & 0x0FF) == 0x020)
4788 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4789 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4790 #else
4791 # define ISLOWER(c) \
4792 (('a' <= (c) && (c) <= 'i') \
4793 || ('j' <= (c) && (c) <= 'r') \
4794 || ('s' <= (c) && (c) <= 'z'))
4795 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4796 #endif
4797
4798 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4799 int
4800 main ()
4801 {
4802 int i;
4803 for (i = 0; i < 256; i++)
4804 if (XOR (islower (i), ISLOWER (i))
4805 || toupper (i) != TOUPPER (i))
4806 return 2;
4807 return 0;
4808 }
4809 _ACEOF
4810 if ac_fn_c_try_run "$LINENO"; then :
4811
4812 else
4813 ac_cv_header_stdc=no
4814 fi
4815 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4816 conftest.$ac_objext conftest.beam conftest.$ac_ext
4817 fi
4818
4819 fi
4820 fi
4821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4822 $as_echo "$ac_cv_header_stdc" >&6; }
4823 if test $ac_cv_header_stdc = yes; then
4824
4825 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
4826
4827 fi
4828
4829 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4830 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4831 inttypes.h stdint.h unistd.h
4832 do :
4833 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4834 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4835 "
4836 eval as_val=\$$as_ac_Header
4837 if test "x$as_val" = x""yes; then :
4838 cat >>confdefs.h <<_ACEOF
4839 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4840 _ACEOF
4841
4842 fi
4843
4844 done
4845
4846
4847
4848 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
4849 if test "x$ac_cv_header_minix_config_h" = x""yes; then :
4850 MINIX=yes
4851 else
4852 MINIX=
4853 fi
4854
4855
4856 if test "$MINIX" = yes; then
4857
4858 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
4859
4860
4861 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
4862
4863
4864 $as_echo "#define _MINIX 1" >>confdefs.h
4865
4866 fi
4867
4868
4869 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
4870 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
4871 if test "${ac_cv_safe_to_define___extensions__+set}" = set; then :
4872 $as_echo_n "(cached) " >&6
4873 else
4874 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4875 /* end confdefs.h. */
4876
4877 # define __EXTENSIONS__ 1
4878 $ac_includes_default
4879 int
4880 main ()
4881 {
4882
4883 ;
4884 return 0;
4885 }
4886 _ACEOF
4887 if ac_fn_c_try_compile "$LINENO"; then :
4888 ac_cv_safe_to_define___extensions__=yes
4889 else
4890 ac_cv_safe_to_define___extensions__=no
4891 fi
4892 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4893 fi
4894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
4895 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
4896 test $ac_cv_safe_to_define___extensions__ = yes &&
4897 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
4898
4899 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
4900
4901 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
4902
4903 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
4904
4905 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
4906
4907
4908
4909
4910
4911 case `pwd` in
4912 *\ * | *\ *)
4913 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
4914 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
4915 esac
4916
4917
4918
4919 macro_version='2.2.7a'
4920 macro_revision='1.3134'
4921
4922
4923
4924
4925
4926
4927
4928
4929
4930
4931
4932
4933
4934 ltmain="$ac_aux_dir/ltmain.sh"
4935
4936 # Backslashify metacharacters that are still active within
4937 # double-quoted strings.
4938 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
4939
4940 # Same as above, but do not quote variable references.
4941 double_quote_subst='s/\(["`\\]\)/\\\1/g'
4942
4943 # Sed substitution to delay expansion of an escaped shell variable in a
4944 # double_quote_subst'ed string.
4945 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
4946
4947 # Sed substitution to delay expansion of an escaped single quote.
4948 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
4949
4950 # Sed substitution to avoid accidental globbing in evaled expressions
4951 no_glob_subst='s/\*/\\\*/g'
4952
4953 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
4954 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
4955 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
4956
4957 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
4958 $as_echo_n "checking how to print strings... " >&6; }
4959 # Test print first, because it will be a builtin if present.
4960 if test "X`print -r -- -n 2>/dev/null`" = X-n && \
4961 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
4962 ECHO='print -r --'
4963 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
4964 ECHO='printf %s\n'
4965 else
4966 # Use this function as a fallback that always works.
4967 func_fallback_echo ()
4968 {
4969 eval 'cat <<_LTECHO_EOF
4970 $1
4971 _LTECHO_EOF'
4972 }
4973 ECHO='func_fallback_echo'
4974 fi
4975
4976 # func_echo_all arg...
4977 # Invoke $ECHO with all args, space-separated.
4978 func_echo_all ()
4979 {
4980 $ECHO ""
4981 }
4982
4983 case "$ECHO" in
4984 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
4985 $as_echo "printf" >&6; } ;;
4986 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
4987 $as_echo "print -r" >&6; } ;;
4988 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
4989 $as_echo "cat" >&6; } ;;
4990 esac
4991
4992
4993
4994
4995
4996
4997
4998
4999
5000
5001
5002
5003
5004
5005 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
5006 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
5007 if test "${ac_cv_path_SED+set}" = set; then :
5008 $as_echo_n "(cached) " >&6
5009 else
5010 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
5011 for ac_i in 1 2 3 4 5 6 7; do
5012 ac_script="$ac_script$as_nl$ac_script"
5013 done
5014 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
5015 { ac_script=; unset ac_script;}
5016 if test -z "$SED"; then
5017 ac_path_SED_found=false
5018 # Loop through the user's path and test for each of PROGNAME-LIST
5019 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5020 for as_dir in $PATH
5021 do
5022 IFS=$as_save_IFS
5023 test -z "$as_dir" && as_dir=.
5024 for ac_prog in sed gsed; do
5025 for ac_exec_ext in '' $ac_executable_extensions; do
5026 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
5027 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
5028 # Check for GNU ac_path_SED and select it if it is found.
5029 # Check for GNU $ac_path_SED
5030 case `"$ac_path_SED" --version 2>&1` in
5031 *GNU*)
5032 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
5033 *)
5034 ac_count=0
5035 $as_echo_n 0123456789 >"conftest.in"
5036 while :
5037 do
5038 cat "conftest.in" "conftest.in" >"conftest.tmp"
5039 mv "conftest.tmp" "conftest.in"
5040 cp "conftest.in" "conftest.nl"
5041 $as_echo '' >> "conftest.nl"
5042 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
5043 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5044 as_fn_arith $ac_count + 1 && ac_count=$as_val
5045 if test $ac_count -gt ${ac_path_SED_max-0}; then
5046 # Best one so far, save it but keep looking for a better one
5047 ac_cv_path_SED="$ac_path_SED"
5048 ac_path_SED_max=$ac_count
5049 fi
5050 # 10*(2^10) chars as input seems more than enough
5051 test $ac_count -gt 10 && break
5052 done
5053 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5054 esac
5055
5056 $ac_path_SED_found && break 3
5057 done
5058 done
5059 done
5060 IFS=$as_save_IFS
5061 if test -z "$ac_cv_path_SED"; then
5062 as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
5063 fi
5064 else
5065 ac_cv_path_SED=$SED
5066 fi
5067
5068 fi
5069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
5070 $as_echo "$ac_cv_path_SED" >&6; }
5071 SED="$ac_cv_path_SED"
5072 rm -f conftest.sed
5073
5074 test -z "$SED" && SED=sed
5075 Xsed="$SED -e 1s/^X//"
5076
5077
5078
5079
5080
5081
5082
5083
5084
5085
5086
5087 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
5088 $as_echo_n "checking for fgrep... " >&6; }
5089 if test "${ac_cv_path_FGREP+set}" = set; then :
5090 $as_echo_n "(cached) " >&6
5091 else
5092 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
5093 then ac_cv_path_FGREP="$GREP -F"
5094 else
5095 if test -z "$FGREP"; then
5096 ac_path_FGREP_found=false
5097 # Loop through the user's path and test for each of PROGNAME-LIST
5098 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5099 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5100 do
5101 IFS=$as_save_IFS
5102 test -z "$as_dir" && as_dir=.
5103 for ac_prog in fgrep; do
5104 for ac_exec_ext in '' $ac_executable_extensions; do
5105 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
5106 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
5107 # Check for GNU ac_path_FGREP and select it if it is found.
5108 # Check for GNU $ac_path_FGREP
5109 case `"$ac_path_FGREP" --version 2>&1` in
5110 *GNU*)
5111 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
5112 *)
5113 ac_count=0
5114 $as_echo_n 0123456789 >"conftest.in"
5115 while :
5116 do
5117 cat "conftest.in" "conftest.in" >"conftest.tmp"
5118 mv "conftest.tmp" "conftest.in"
5119 cp "conftest.in" "conftest.nl"
5120 $as_echo 'FGREP' >> "conftest.nl"
5121 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
5122 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5123 as_fn_arith $ac_count + 1 && ac_count=$as_val
5124 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5125 # Best one so far, save it but keep looking for a better one
5126 ac_cv_path_FGREP="$ac_path_FGREP"
5127 ac_path_FGREP_max=$ac_count
5128 fi
5129 # 10*(2^10) chars as input seems more than enough
5130 test $ac_count -gt 10 && break
5131 done
5132 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5133 esac
5134
5135 $ac_path_FGREP_found && break 3
5136 done
5137 done
5138 done
5139 IFS=$as_save_IFS
5140 if test -z "$ac_cv_path_FGREP"; then
5141 as_fn_error "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5142 fi
5143 else
5144 ac_cv_path_FGREP=$FGREP
5145 fi
5146
5147 fi
5148 fi
5149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
5150 $as_echo "$ac_cv_path_FGREP" >&6; }
5151 FGREP="$ac_cv_path_FGREP"
5152
5153
5154 test -z "$GREP" && GREP=grep
5155
5156
5157
5158
5159
5160
5161
5162
5163
5164
5165
5166
5167
5168
5169
5170
5171
5172
5173
5174 # Check whether --with-gnu-ld was given.
5175 if test "${with_gnu_ld+set}" = set; then :
5176 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
5177 else
5178 with_gnu_ld=no
5179 fi
5180
5181 ac_prog=ld
5182 if test "$GCC" = yes; then
5183 # Check if gcc -print-prog-name=ld gives a path.
5184 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5185 $as_echo_n "checking for ld used by $CC... " >&6; }
5186 case $host in
5187 *-*-mingw*)
5188 # gcc leaves a trailing carriage return which upsets mingw
5189 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5190 *)
5191 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5192 esac
5193 case $ac_prog in
5194 # Accept absolute paths.
5195 [\\/]* | ?:[\\/]*)
5196 re_direlt='/[^/][^/]*/\.\./'
5197 # Canonicalize the pathname of ld
5198 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5199 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5200 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5201 done
5202 test -z "$LD" && LD="$ac_prog"
5203 ;;
5204 "")
5205 # If it fails, then pretend we aren't using GCC.
5206 ac_prog=ld
5207 ;;
5208 *)
5209 # If it is relative, then search for the first ld in PATH.
5210 with_gnu_ld=unknown
5211 ;;
5212 esac
5213 elif test "$with_gnu_ld" = yes; then
5214 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5215 $as_echo_n "checking for GNU ld... " >&6; }
5216 else
5217 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5218 $as_echo_n "checking for non-GNU ld... " >&6; }
5219 fi
5220 if test "${lt_cv_path_LD+set}" = set; then :
5221 $as_echo_n "(cached) " >&6
5222 else
5223 if test -z "$LD"; then
5224 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5225 for ac_dir in $PATH; do
5226 IFS="$lt_save_ifs"
5227 test -z "$ac_dir" && ac_dir=.
5228 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5229 lt_cv_path_LD="$ac_dir/$ac_prog"
5230 # Check to see if the program is GNU ld. I'd rather use --version,
5231 # but apparently some variants of GNU ld only accept -v.
5232 # Break only if it was the GNU/non-GNU ld that we prefer.
5233 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5234 *GNU* | *'with BFD'*)
5235 test "$with_gnu_ld" != no && break
5236 ;;
5237 *)
5238 test "$with_gnu_ld" != yes && break
5239 ;;
5240 esac
5241 fi
5242 done
5243 IFS="$lt_save_ifs"
5244 else
5245 lt_cv_path_LD="$LD" # Let the user override the test with a path.
5246 fi
5247 fi
5248
5249 LD="$lt_cv_path_LD"
5250 if test -n "$LD"; then
5251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5252 $as_echo "$LD" >&6; }
5253 else
5254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5255 $as_echo "no" >&6; }
5256 fi
5257 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
5258 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5259 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
5260 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
5261 $as_echo_n "(cached) " >&6
5262 else
5263 # I'd rather use --version here, but apparently some GNU lds only accept -v.
5264 case `$LD -v 2>&1 </dev/null` in
5265 *GNU* | *'with BFD'*)
5266 lt_cv_prog_gnu_ld=yes
5267 ;;
5268 *)
5269 lt_cv_prog_gnu_ld=no
5270 ;;
5271 esac
5272 fi
5273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5274 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
5275 with_gnu_ld=$lt_cv_prog_gnu_ld
5276
5277
5278
5279
5280
5281
5282
5283
5284
5285 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5286 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5287 if test "${lt_cv_path_NM+set}" = set; then :
5288 $as_echo_n "(cached) " >&6
5289 else
5290 if test -n "$NM"; then
5291 # Let the user override the test.
5292 lt_cv_path_NM="$NM"
5293 else
5294 lt_nm_to_check="${ac_tool_prefix}nm"
5295 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5296 lt_nm_to_check="$lt_nm_to_check nm"
5297 fi
5298 for lt_tmp_nm in $lt_nm_to_check; do
5299 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5300 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5301 IFS="$lt_save_ifs"
5302 test -z "$ac_dir" && ac_dir=.
5303 tmp_nm="$ac_dir/$lt_tmp_nm"
5304 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5305 # Check to see if the nm accepts a BSD-compat flag.
5306 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5307 # nm: unknown option "B" ignored
5308 # Tru64's nm complains that /dev/null is an invalid object file
5309 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5310 */dev/null* | *'Invalid file or object type'*)
5311 lt_cv_path_NM="$tmp_nm -B"
5312 break
5313 ;;
5314 *)
5315 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5316 */dev/null*)
5317 lt_cv_path_NM="$tmp_nm -p"
5318 break
5319 ;;
5320 *)
5321 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5322 continue # so that we can try to find one that supports BSD flags
5323 ;;
5324 esac
5325 ;;
5326 esac
5327 fi
5328 done
5329 IFS="$lt_save_ifs"
5330 done
5331 : ${lt_cv_path_NM=no}
5332 fi
5333 fi
5334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5335 $as_echo "$lt_cv_path_NM" >&6; }
5336 if test "$lt_cv_path_NM" != "no"; then
5337 NM="$lt_cv_path_NM"
5338 else
5339 # Didn't find any BSD compatible name lister, look for dumpbin.
5340 if test -n "$DUMPBIN"; then :
5341 # Let the user override the test.
5342 else
5343 if test -n "$ac_tool_prefix"; then
5344 for ac_prog in dumpbin "link -dump"
5345 do
5346 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5347 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5348 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5349 $as_echo_n "checking for $ac_word... " >&6; }
5350 if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
5351 $as_echo_n "(cached) " >&6
5352 else
5353 if test -n "$DUMPBIN"; then
5354 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5355 else
5356 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5357 for as_dir in $PATH
5358 do
5359 IFS=$as_save_IFS
5360 test -z "$as_dir" && as_dir=.
5361 for ac_exec_ext in '' $ac_executable_extensions; do
5362 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5363 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5364 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5365 break 2
5366 fi
5367 done
5368 done
5369 IFS=$as_save_IFS
5370
5371 fi
5372 fi
5373 DUMPBIN=$ac_cv_prog_DUMPBIN
5374 if test -n "$DUMPBIN"; then
5375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5376 $as_echo "$DUMPBIN" >&6; }
5377 else
5378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5379 $as_echo "no" >&6; }
5380 fi
5381
5382
5383 test -n "$DUMPBIN" && break
5384 done
5385 fi
5386 if test -z "$DUMPBIN"; then
5387 ac_ct_DUMPBIN=$DUMPBIN
5388 for ac_prog in dumpbin "link -dump"
5389 do
5390 # Extract the first word of "$ac_prog", so it can be a program name with args.
5391 set dummy $ac_prog; ac_word=$2
5392 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5393 $as_echo_n "checking for $ac_word... " >&6; }
5394 if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
5395 $as_echo_n "(cached) " >&6
5396 else
5397 if test -n "$ac_ct_DUMPBIN"; then
5398 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5399 else
5400 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5401 for as_dir in $PATH
5402 do
5403 IFS=$as_save_IFS
5404 test -z "$as_dir" && as_dir=.
5405 for ac_exec_ext in '' $ac_executable_extensions; do
5406 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5407 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5408 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5409 break 2
5410 fi
5411 done
5412 done
5413 IFS=$as_save_IFS
5414
5415 fi
5416 fi
5417 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5418 if test -n "$ac_ct_DUMPBIN"; then
5419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5420 $as_echo "$ac_ct_DUMPBIN" >&6; }
5421 else
5422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5423 $as_echo "no" >&6; }
5424 fi
5425
5426
5427 test -n "$ac_ct_DUMPBIN" && break
5428 done
5429
5430 if test "x$ac_ct_DUMPBIN" = x; then
5431 DUMPBIN=":"
5432 else
5433 case $cross_compiling:$ac_tool_warned in
5434 yes:)
5435 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5436 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5437 ac_tool_warned=yes ;;
5438 esac
5439 DUMPBIN=$ac_ct_DUMPBIN
5440 fi
5441 fi
5442
5443 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
5444 *COFF*)
5445 DUMPBIN="$DUMPBIN -symbols"
5446 ;;
5447 *)
5448 DUMPBIN=:
5449 ;;
5450 esac
5451 fi
5452
5453 if test "$DUMPBIN" != ":"; then
5454 NM="$DUMPBIN"
5455 fi
5456 fi
5457 test -z "$NM" && NM=nm
5458
5459
5460
5461
5462
5463
5464 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5465 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
5466 if test "${lt_cv_nm_interface+set}" = set; then :
5467 $as_echo_n "(cached) " >&6
5468 else
5469 lt_cv_nm_interface="BSD nm"
5470 echo "int some_variable = 0;" > conftest.$ac_ext
5471 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
5472 (eval "$ac_compile" 2>conftest.err)
5473 cat conftest.err >&5
5474 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5475 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5476 cat conftest.err >&5
5477 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
5478 cat conftest.out >&5
5479 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5480 lt_cv_nm_interface="MS dumpbin"
5481 fi
5482 rm -f conftest*
5483 fi
5484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5485 $as_echo "$lt_cv_nm_interface" >&6; }
5486
5487 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5488 $as_echo_n "checking whether ln -s works... " >&6; }
5489 LN_S=$as_ln_s
5490 if test "$LN_S" = "ln -s"; then
5491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5492 $as_echo "yes" >&6; }
5493 else
5494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5495 $as_echo "no, using $LN_S" >&6; }
5496 fi
5497
5498 # find the maximum length of command line arguments
5499 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5500 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
5501 if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
5502 $as_echo_n "(cached) " >&6
5503 else
5504 i=0
5505 teststring="ABCD"
5506
5507 case $build_os in
5508 msdosdjgpp*)
5509 # On DJGPP, this test can blow up pretty badly due to problems in libc
5510 # (any single argument exceeding 2000 bytes causes a buffer overrun
5511 # during glob expansion). Even if it were fixed, the result of this
5512 # check would be larger than it should be.
5513 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5514 ;;
5515
5516 gnu*)
5517 # Under GNU Hurd, this test is not required because there is
5518 # no limit to the length of command line arguments.
5519 # Libtool will interpret -1 as no limit whatsoever
5520 lt_cv_sys_max_cmd_len=-1;
5521 ;;
5522
5523 cygwin* | mingw* | cegcc*)
5524 # On Win9x/ME, this test blows up -- it succeeds, but takes
5525 # about 5 minutes as the teststring grows exponentially.
5526 # Worse, since 9x/ME are not pre-emptively multitasking,
5527 # you end up with a "frozen" computer, even though with patience
5528 # the test eventually succeeds (with a max line length of 256k).
5529 # Instead, let's just punt: use the minimum linelength reported by
5530 # all of the supported platforms: 8192 (on NT/2K/XP).
5531 lt_cv_sys_max_cmd_len=8192;
5532 ;;
5533
5534 mint*)
5535 # On MiNT this can take a long time and run out of memory.
5536 lt_cv_sys_max_cmd_len=8192;
5537 ;;
5538
5539 amigaos*)
5540 # On AmigaOS with pdksh, this test takes hours, literally.
5541 # So we just punt and use a minimum line length of 8192.
5542 lt_cv_sys_max_cmd_len=8192;
5543 ;;
5544
5545 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5546 # This has been around since 386BSD, at least. Likely further.
5547 if test -x /sbin/sysctl; then
5548 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5549 elif test -x /usr/sbin/sysctl; then
5550 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5551 else
5552 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
5553 fi
5554 # And add a safety zone
5555 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5556 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5557 ;;
5558
5559 interix*)
5560 # We know the value 262144 and hardcode it with a safety zone (like BSD)
5561 lt_cv_sys_max_cmd_len=196608
5562 ;;
5563
5564 osf*)
5565 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5566 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5567 # nice to cause kernel panics so lets avoid the loop below.
5568 # First set a reasonable default.
5569 lt_cv_sys_max_cmd_len=16384
5570 #
5571 if test -x /sbin/sysconfig; then
5572 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5573 *1*) lt_cv_sys_max_cmd_len=-1 ;;
5574 esac
5575 fi
5576 ;;
5577 sco3.2v5*)
5578 lt_cv_sys_max_cmd_len=102400
5579 ;;
5580 sysv5* | sco5v6* | sysv4.2uw2*)
5581 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5582 if test -n "$kargmax"; then
5583 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
5584 else
5585 lt_cv_sys_max_cmd_len=32768
5586 fi
5587 ;;
5588 *)
5589 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5590 if test -n "$lt_cv_sys_max_cmd_len"; then
5591 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5592 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5593 else
5594 # Make teststring a little bigger before we do anything with it.
5595 # a 1K string should be a reasonable start.
5596 for i in 1 2 3 4 5 6 7 8 ; do
5597 teststring=$teststring$teststring
5598 done
5599 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5600 # If test is not a shell built-in, we'll probably end up computing a
5601 # maximum length that is only half of the actual maximum length, but
5602 # we can't tell.
5603 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
5604 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
5605 test $i != 17 # 1/2 MB should be enough
5606 do
5607 i=`expr $i + 1`
5608 teststring=$teststring$teststring
5609 done
5610 # Only check the string length outside the loop.
5611 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5612 teststring=
5613 # Add a significant safety factor because C++ compilers can tack on
5614 # massive amounts of additional arguments before passing them to the
5615 # linker. It appears as though 1/2 is a usable value.
5616 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5617 fi
5618 ;;
5619 esac
5620
5621 fi
5622
5623 if test -n $lt_cv_sys_max_cmd_len ; then
5624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5625 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
5626 else
5627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
5628 $as_echo "none" >&6; }
5629 fi
5630 max_cmd_len=$lt_cv_sys_max_cmd_len
5631
5632
5633
5634
5635
5636
5637 : ${CP="cp -f"}
5638 : ${MV="mv -f"}
5639 : ${RM="rm -f"}
5640
5641 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
5642 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
5643 # Try some XSI features
5644 xsi_shell=no
5645 ( _lt_dummy="a/b/c"
5646 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
5647 = c,a/b,, \
5648 && eval 'test $(( 1 + 1 )) -eq 2 \
5649 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
5650 && xsi_shell=yes
5651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
5652 $as_echo "$xsi_shell" >&6; }
5653
5654
5655 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
5656 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
5657 lt_shell_append=no
5658 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
5659 >/dev/null 2>&1 \
5660 && lt_shell_append=yes
5661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
5662 $as_echo "$lt_shell_append" >&6; }
5663
5664
5665 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5666 lt_unset=unset
5667 else
5668 lt_unset=false
5669 fi
5670
5671
5672
5673
5674
5675 # test EBCDIC or ASCII
5676 case `echo X|tr X '\101'` in
5677 A) # ASCII based system
5678 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5679 lt_SP2NL='tr \040 \012'
5680 lt_NL2SP='tr \015\012 \040\040'
5681 ;;
5682 *) # EBCDIC based system
5683 lt_SP2NL='tr \100 \n'
5684 lt_NL2SP='tr \r\n \100\100'
5685 ;;
5686 esac
5687
5688
5689
5690
5691
5692
5693
5694
5695
5696 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5697 $as_echo_n "checking for $LD option to reload object files... " >&6; }
5698 if test "${lt_cv_ld_reload_flag+set}" = set; then :
5699 $as_echo_n "(cached) " >&6
5700 else
5701 lt_cv_ld_reload_flag='-r'
5702 fi
5703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5704 $as_echo "$lt_cv_ld_reload_flag" >&6; }
5705 reload_flag=$lt_cv_ld_reload_flag
5706 case $reload_flag in
5707 "" | " "*) ;;
5708 *) reload_flag=" $reload_flag" ;;
5709 esac
5710 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5711 case $host_os in
5712 darwin*)
5713 if test "$GCC" = yes; then
5714 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5715 else
5716 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5717 fi
5718 ;;
5719 esac
5720
5721
5722
5723
5724
5725
5726
5727
5728
5729 if test -n "$ac_tool_prefix"; then
5730 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5731 set dummy ${ac_tool_prefix}objdump; ac_word=$2
5732 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5733 $as_echo_n "checking for $ac_word... " >&6; }
5734 if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
5735 $as_echo_n "(cached) " >&6
5736 else
5737 if test -n "$OBJDUMP"; then
5738 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5739 else
5740 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5741 for as_dir in $PATH
5742 do
5743 IFS=$as_save_IFS
5744 test -z "$as_dir" && as_dir=.
5745 for ac_exec_ext in '' $ac_executable_extensions; do
5746 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5747 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5748 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5749 break 2
5750 fi
5751 done
5752 done
5753 IFS=$as_save_IFS
5754
5755 fi
5756 fi
5757 OBJDUMP=$ac_cv_prog_OBJDUMP
5758 if test -n "$OBJDUMP"; then
5759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5760 $as_echo "$OBJDUMP" >&6; }
5761 else
5762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5763 $as_echo "no" >&6; }
5764 fi
5765
5766
5767 fi
5768 if test -z "$ac_cv_prog_OBJDUMP"; then
5769 ac_ct_OBJDUMP=$OBJDUMP
5770 # Extract the first word of "objdump", so it can be a program name with args.
5771 set dummy objdump; ac_word=$2
5772 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5773 $as_echo_n "checking for $ac_word... " >&6; }
5774 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
5775 $as_echo_n "(cached) " >&6
5776 else
5777 if test -n "$ac_ct_OBJDUMP"; then
5778 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5779 else
5780 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5781 for as_dir in $PATH
5782 do
5783 IFS=$as_save_IFS
5784 test -z "$as_dir" && as_dir=.
5785 for ac_exec_ext in '' $ac_executable_extensions; do
5786 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5787 ac_cv_prog_ac_ct_OBJDUMP="objdump"
5788 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5789 break 2
5790 fi
5791 done
5792 done
5793 IFS=$as_save_IFS
5794
5795 fi
5796 fi
5797 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5798 if test -n "$ac_ct_OBJDUMP"; then
5799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5800 $as_echo "$ac_ct_OBJDUMP" >&6; }
5801 else
5802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5803 $as_echo "no" >&6; }
5804 fi
5805
5806 if test "x$ac_ct_OBJDUMP" = x; then
5807 OBJDUMP="false"
5808 else
5809 case $cross_compiling:$ac_tool_warned in
5810 yes:)
5811 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5812 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5813 ac_tool_warned=yes ;;
5814 esac
5815 OBJDUMP=$ac_ct_OBJDUMP
5816 fi
5817 else
5818 OBJDUMP="$ac_cv_prog_OBJDUMP"
5819 fi
5820
5821 test -z "$OBJDUMP" && OBJDUMP=objdump
5822
5823
5824
5825
5826
5827
5828
5829
5830
5831 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5832 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
5833 if test "${lt_cv_deplibs_check_method+set}" = set; then :
5834 $as_echo_n "(cached) " >&6
5835 else
5836 lt_cv_file_magic_cmd='$MAGIC_CMD'
5837 lt_cv_file_magic_test_file=
5838 lt_cv_deplibs_check_method='unknown'
5839 # Need to set the preceding variable on all platforms that support
5840 # interlibrary dependencies.
5841 # 'none' -- dependencies not supported.
5842 # `unknown' -- same as none, but documents that we really don't know.
5843 # 'pass_all' -- all dependencies passed with no checks.
5844 # 'test_compile' -- check by making test program.
5845 # 'file_magic [[regex]]' -- check by looking for files in library path
5846 # which responds to the $file_magic_cmd with a given extended regex.
5847 # If you have `file' or equivalent on your system and you're not sure
5848 # whether `pass_all' will *always* work, you probably want this one.
5849
5850 case $host_os in
5851 aix[4-9]*)
5852 lt_cv_deplibs_check_method=pass_all
5853 ;;
5854
5855 beos*)
5856 lt_cv_deplibs_check_method=pass_all
5857 ;;
5858
5859 bsdi[45]*)
5860 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5861 lt_cv_file_magic_cmd='/usr/bin/file -L'
5862 lt_cv_file_magic_test_file=/shlib/libc.so
5863 ;;
5864
5865 cygwin*)
5866 # func_win32_libid is a shell function defined in ltmain.sh
5867 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5868 lt_cv_file_magic_cmd='func_win32_libid'
5869 ;;
5870
5871 mingw* | pw32*)
5872 # Base MSYS/MinGW do not provide the 'file' command needed by
5873 # func_win32_libid shell function, so use a weaker test based on 'objdump',
5874 # unless we find 'file', for example because we are cross-compiling.
5875 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
5876 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
5877 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5878 lt_cv_file_magic_cmd='func_win32_libid'
5879 else
5880 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
5881 lt_cv_file_magic_cmd='$OBJDUMP -f'
5882 fi
5883 ;;
5884
5885 cegcc*)
5886 # use the weaker test based on 'objdump'. See mingw*.
5887 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5888 lt_cv_file_magic_cmd='$OBJDUMP -f'
5889 ;;
5890
5891 darwin* | rhapsody*)
5892 lt_cv_deplibs_check_method=pass_all
5893 ;;
5894
5895 freebsd* | dragonfly*)
5896 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5897 case $host_cpu in
5898 i*86 )
5899 # Not sure whether the presence of OpenBSD here was a mistake.
5900 # Let's accept both of them until this is cleared up.
5901 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5902 lt_cv_file_magic_cmd=/usr/bin/file
5903 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5904 ;;
5905 esac
5906 else
5907 lt_cv_deplibs_check_method=pass_all
5908 fi
5909 ;;
5910
5911 gnu*)
5912 lt_cv_deplibs_check_method=pass_all
5913 ;;
5914
5915 haiku*)
5916 lt_cv_deplibs_check_method=pass_all
5917 ;;
5918
5919 hpux10.20* | hpux11*)
5920 lt_cv_file_magic_cmd=/usr/bin/file
5921 case $host_cpu in
5922 ia64*)
5923 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5924 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5925 ;;
5926 hppa*64*)
5927 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]'
5928 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5929 ;;
5930 *)
5931 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
5932 lt_cv_file_magic_test_file=/usr/lib/libc.sl
5933 ;;
5934 esac
5935 ;;
5936
5937 interix[3-9]*)
5938 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5939 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5940 ;;
5941
5942 irix5* | irix6* | nonstopux*)
5943 case $LD in
5944 *-32|*"-32 ") libmagic=32-bit;;
5945 *-n32|*"-n32 ") libmagic=N32;;
5946 *-64|*"-64 ") libmagic=64-bit;;
5947 *) libmagic=never-match;;
5948 esac
5949 lt_cv_deplibs_check_method=pass_all
5950 ;;
5951
5952 # This must be Linux ELF.
5953 linux* | k*bsd*-gnu | kopensolaris*-gnu)
5954 lt_cv_deplibs_check_method=pass_all
5955 ;;
5956
5957 netbsd*)
5958 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5959 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5960 else
5961 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5962 fi
5963 ;;
5964
5965 newos6*)
5966 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5967 lt_cv_file_magic_cmd=/usr/bin/file
5968 lt_cv_file_magic_test_file=/usr/lib/libnls.so
5969 ;;
5970
5971 *nto* | *qnx*)
5972 lt_cv_deplibs_check_method=pass_all
5973 ;;
5974
5975 openbsd*)
5976 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5977 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5978 else
5979 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5980 fi
5981 ;;
5982
5983 osf3* | osf4* | osf5*)
5984 lt_cv_deplibs_check_method=pass_all
5985 ;;
5986
5987 rdos*)
5988 lt_cv_deplibs_check_method=pass_all
5989 ;;
5990
5991 solaris*)
5992 lt_cv_deplibs_check_method=pass_all
5993 ;;
5994
5995 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5996 lt_cv_deplibs_check_method=pass_all
5997 ;;
5998
5999 sysv4 | sysv4.3*)
6000 case $host_vendor in
6001 motorola)
6002 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]'
6003 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6004 ;;
6005 ncr)
6006 lt_cv_deplibs_check_method=pass_all
6007 ;;
6008 sequent)
6009 lt_cv_file_magic_cmd='/bin/file'
6010 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6011 ;;
6012 sni)
6013 lt_cv_file_magic_cmd='/bin/file'
6014 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6015 lt_cv_file_magic_test_file=/lib/libc.so
6016 ;;
6017 siemens)
6018 lt_cv_deplibs_check_method=pass_all
6019 ;;
6020 pc)
6021 lt_cv_deplibs_check_method=pass_all
6022 ;;
6023 esac
6024 ;;
6025
6026 tpf*)
6027 lt_cv_deplibs_check_method=pass_all
6028 ;;
6029 esac
6030
6031 fi
6032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
6033 $as_echo "$lt_cv_deplibs_check_method" >&6; }
6034 file_magic_cmd=$lt_cv_file_magic_cmd
6035 deplibs_check_method=$lt_cv_deplibs_check_method
6036 test -z "$deplibs_check_method" && deplibs_check_method=unknown
6037
6038
6039
6040
6041
6042
6043
6044
6045
6046
6047
6048
6049 if test -n "$ac_tool_prefix"; then
6050 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6051 set dummy ${ac_tool_prefix}ar; ac_word=$2
6052 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6053 $as_echo_n "checking for $ac_word... " >&6; }
6054 if test "${ac_cv_prog_AR+set}" = set; then :
6055 $as_echo_n "(cached) " >&6
6056 else
6057 if test -n "$AR"; then
6058 ac_cv_prog_AR="$AR" # Let the user override the test.
6059 else
6060 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6061 for as_dir in $PATH
6062 do
6063 IFS=$as_save_IFS
6064 test -z "$as_dir" && as_dir=.
6065 for ac_exec_ext in '' $ac_executable_extensions; do
6066 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6067 ac_cv_prog_AR="${ac_tool_prefix}ar"
6068 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6069 break 2
6070 fi
6071 done
6072 done
6073 IFS=$as_save_IFS
6074
6075 fi
6076 fi
6077 AR=$ac_cv_prog_AR
6078 if test -n "$AR"; then
6079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6080 $as_echo "$AR" >&6; }
6081 else
6082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6083 $as_echo "no" >&6; }
6084 fi
6085
6086
6087 fi
6088 if test -z "$ac_cv_prog_AR"; then
6089 ac_ct_AR=$AR
6090 # Extract the first word of "ar", so it can be a program name with args.
6091 set dummy ar; ac_word=$2
6092 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6093 $as_echo_n "checking for $ac_word... " >&6; }
6094 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
6095 $as_echo_n "(cached) " >&6
6096 else
6097 if test -n "$ac_ct_AR"; then
6098 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6099 else
6100 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6101 for as_dir in $PATH
6102 do
6103 IFS=$as_save_IFS
6104 test -z "$as_dir" && as_dir=.
6105 for ac_exec_ext in '' $ac_executable_extensions; do
6106 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6107 ac_cv_prog_ac_ct_AR="ar"
6108 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6109 break 2
6110 fi
6111 done
6112 done
6113 IFS=$as_save_IFS
6114
6115 fi
6116 fi
6117 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6118 if test -n "$ac_ct_AR"; then
6119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6120 $as_echo "$ac_ct_AR" >&6; }
6121 else
6122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6123 $as_echo "no" >&6; }
6124 fi
6125
6126 if test "x$ac_ct_AR" = x; then
6127 AR="false"
6128 else
6129 case $cross_compiling:$ac_tool_warned in
6130 yes:)
6131 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6132 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6133 ac_tool_warned=yes ;;
6134 esac
6135 AR=$ac_ct_AR
6136 fi
6137 else
6138 AR="$ac_cv_prog_AR"
6139 fi
6140
6141 test -z "$AR" && AR=ar
6142 test -z "$AR_FLAGS" && AR_FLAGS=cru
6143
6144
6145
6146
6147
6148
6149
6150
6151
6152
6153
6154 if test -n "$ac_tool_prefix"; then
6155 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6156 set dummy ${ac_tool_prefix}strip; ac_word=$2
6157 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6158 $as_echo_n "checking for $ac_word... " >&6; }
6159 if test "${ac_cv_prog_STRIP+set}" = set; then :
6160 $as_echo_n "(cached) " >&6
6161 else
6162 if test -n "$STRIP"; then
6163 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6164 else
6165 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6166 for as_dir in $PATH
6167 do
6168 IFS=$as_save_IFS
6169 test -z "$as_dir" && as_dir=.
6170 for ac_exec_ext in '' $ac_executable_extensions; do
6171 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6172 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6173 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6174 break 2
6175 fi
6176 done
6177 done
6178 IFS=$as_save_IFS
6179
6180 fi
6181 fi
6182 STRIP=$ac_cv_prog_STRIP
6183 if test -n "$STRIP"; then
6184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6185 $as_echo "$STRIP" >&6; }
6186 else
6187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6188 $as_echo "no" >&6; }
6189 fi
6190
6191
6192 fi
6193 if test -z "$ac_cv_prog_STRIP"; then
6194 ac_ct_STRIP=$STRIP
6195 # Extract the first word of "strip", so it can be a program name with args.
6196 set dummy strip; ac_word=$2
6197 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6198 $as_echo_n "checking for $ac_word... " >&6; }
6199 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
6200 $as_echo_n "(cached) " >&6
6201 else
6202 if test -n "$ac_ct_STRIP"; then
6203 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6204 else
6205 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6206 for as_dir in $PATH
6207 do
6208 IFS=$as_save_IFS
6209 test -z "$as_dir" && as_dir=.
6210 for ac_exec_ext in '' $ac_executable_extensions; do
6211 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6212 ac_cv_prog_ac_ct_STRIP="strip"
6213 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6214 break 2
6215 fi
6216 done
6217 done
6218 IFS=$as_save_IFS
6219
6220 fi
6221 fi
6222 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6223 if test -n "$ac_ct_STRIP"; then
6224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6225 $as_echo "$ac_ct_STRIP" >&6; }
6226 else
6227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6228 $as_echo "no" >&6; }
6229 fi
6230
6231 if test "x$ac_ct_STRIP" = x; then
6232 STRIP=":"
6233 else
6234 case $cross_compiling:$ac_tool_warned in
6235 yes:)
6236 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6237 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6238 ac_tool_warned=yes ;;
6239 esac
6240 STRIP=$ac_ct_STRIP
6241 fi
6242 else
6243 STRIP="$ac_cv_prog_STRIP"
6244 fi
6245
6246 test -z "$STRIP" && STRIP=:
6247
6248
6249
6250
6251
6252
6253 if test -n "$ac_tool_prefix"; then
6254 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6255 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6256 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6257 $as_echo_n "checking for $ac_word... " >&6; }
6258 if test "${ac_cv_prog_RANLIB+set}" = set; then :
6259 $as_echo_n "(cached) " >&6
6260 else
6261 if test -n "$RANLIB"; then
6262 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6263 else
6264 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6265 for as_dir in $PATH
6266 do
6267 IFS=$as_save_IFS
6268 test -z "$as_dir" && as_dir=.
6269 for ac_exec_ext in '' $ac_executable_extensions; do
6270 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6271 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6272 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6273 break 2
6274 fi
6275 done
6276 done
6277 IFS=$as_save_IFS
6278
6279 fi
6280 fi
6281 RANLIB=$ac_cv_prog_RANLIB
6282 if test -n "$RANLIB"; then
6283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6284 $as_echo "$RANLIB" >&6; }
6285 else
6286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6287 $as_echo "no" >&6; }
6288 fi
6289
6290
6291 fi
6292 if test -z "$ac_cv_prog_RANLIB"; then
6293 ac_ct_RANLIB=$RANLIB
6294 # Extract the first word of "ranlib", so it can be a program name with args.
6295 set dummy ranlib; ac_word=$2
6296 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6297 $as_echo_n "checking for $ac_word... " >&6; }
6298 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
6299 $as_echo_n "(cached) " >&6
6300 else
6301 if test -n "$ac_ct_RANLIB"; then
6302 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6303 else
6304 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6305 for as_dir in $PATH
6306 do
6307 IFS=$as_save_IFS
6308 test -z "$as_dir" && as_dir=.
6309 for ac_exec_ext in '' $ac_executable_extensions; do
6310 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6311 ac_cv_prog_ac_ct_RANLIB="ranlib"
6312 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6313 break 2
6314 fi
6315 done
6316 done
6317 IFS=$as_save_IFS
6318
6319 fi
6320 fi
6321 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6322 if test -n "$ac_ct_RANLIB"; then
6323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6324 $as_echo "$ac_ct_RANLIB" >&6; }
6325 else
6326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6327 $as_echo "no" >&6; }
6328 fi
6329
6330 if test "x$ac_ct_RANLIB" = x; then
6331 RANLIB=":"
6332 else
6333 case $cross_compiling:$ac_tool_warned in
6334 yes:)
6335 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6336 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6337 ac_tool_warned=yes ;;
6338 esac
6339 RANLIB=$ac_ct_RANLIB
6340 fi
6341 else
6342 RANLIB="$ac_cv_prog_RANLIB"
6343 fi
6344
6345 test -z "$RANLIB" && RANLIB=:
6346
6347
6348
6349
6350
6351
6352 # Determine commands to create old-style static archives.
6353 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6354 old_postinstall_cmds='chmod 644 $oldlib'
6355 old_postuninstall_cmds=
6356
6357 if test -n "$RANLIB"; then
6358 case $host_os in
6359 openbsd*)
6360 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
6361 ;;
6362 *)
6363 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
6364 ;;
6365 esac
6366 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6367 fi
6368
6369 case $host_os in
6370 darwin*)
6371 lock_old_archive_extraction=yes ;;
6372 *)
6373 lock_old_archive_extraction=no ;;
6374 esac
6375
6376
6377
6378
6379
6380
6381
6382
6383
6384
6385
6386
6387
6388
6389
6390
6391
6392
6393
6394
6395
6396
6397
6398
6399
6400
6401
6402
6403
6404
6405
6406
6407
6408
6409
6410
6411
6412
6413
6414 # If no C compiler was specified, use CC.
6415 LTCC=${LTCC-"$CC"}
6416
6417 # If no C compiler flags were specified, use CFLAGS.
6418 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6419
6420 # Allow CC to be a program name with arguments.
6421 compiler=$CC
6422
6423
6424 # Check for command to grab the raw symbol name followed by C symbol from nm.
6425 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6426 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6427 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
6428 $as_echo_n "(cached) " >&6
6429 else
6430
6431 # These are sane defaults that work on at least a few old systems.
6432 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
6433
6434 # Character class describing NM global symbol codes.
6435 symcode='[BCDEGRST]'
6436
6437 # Regexp to match symbols that can be accessed directly from C.
6438 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6439
6440 # Define system-specific variables.
6441 case $host_os in
6442 aix*)
6443 symcode='[BCDT]'
6444 ;;
6445 cygwin* | mingw* | pw32* | cegcc*)
6446 symcode='[ABCDGISTW]'
6447 ;;
6448 hpux*)
6449 if test "$host_cpu" = ia64; then
6450 symcode='[ABCDEGRST]'
6451 fi
6452 ;;
6453 irix* | nonstopux*)
6454 symcode='[BCDEGRST]'
6455 ;;
6456 osf*)
6457 symcode='[BCDEGQRST]'
6458 ;;
6459 solaris*)
6460 symcode='[BDRT]'
6461 ;;
6462 sco3.2v5*)
6463 symcode='[DT]'
6464 ;;
6465 sysv4.2uw2*)
6466 symcode='[DT]'
6467 ;;
6468 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6469 symcode='[ABDT]'
6470 ;;
6471 sysv4)
6472 symcode='[DFNSTU]'
6473 ;;
6474 esac
6475
6476 # If we're using GNU nm, then use its standard symbol codes.
6477 case `$NM -V 2>&1` in
6478 *GNU* | *'with BFD'*)
6479 symcode='[ABCDGIRSTW]' ;;
6480 esac
6481
6482 # Transform an extracted symbol line into a proper C declaration.
6483 # Some systems (esp. on ia64) link data and code symbols differently,
6484 # so use this general approach.
6485 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6486
6487 # Transform an extracted symbol line into symbol name and symbol address
6488 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
6489 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'"
6490
6491 # Handle CRLF in mingw tool chain
6492 opt_cr=
6493 case $build_os in
6494 mingw*)
6495 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6496 ;;
6497 esac
6498
6499 # Try without a prefix underscore, then with it.
6500 for ac_symprfx in "" "_"; do
6501
6502 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6503 symxfrm="\\1 $ac_symprfx\\2 \\2"
6504
6505 # Write the raw and C identifiers.
6506 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6507 # Fake it for dumpbin and say T for any non-static function
6508 # and D for any global variable.
6509 # Also find C++ and __fastcall symbols from MSVC++,
6510 # which start with @ or ?.
6511 lt_cv_sys_global_symbol_pipe="$AWK '"\
6512 " {last_section=section; section=\$ 3};"\
6513 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6514 " \$ 0!~/External *\|/{next};"\
6515 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6516 " {if(hide[section]) next};"\
6517 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
6518 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
6519 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
6520 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
6521 " ' prfx=^$ac_symprfx"
6522 else
6523 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6524 fi
6525
6526 # Check to see that the pipe works correctly.
6527 pipe_works=no
6528
6529 rm -f conftest*
6530 cat > conftest.$ac_ext <<_LT_EOF
6531 #ifdef __cplusplus
6532 extern "C" {
6533 #endif
6534 char nm_test_var;
6535 void nm_test_func(void);
6536 void nm_test_func(void){}
6537 #ifdef __cplusplus
6538 }
6539 #endif
6540 int main(){nm_test_var='a';nm_test_func();return(0);}
6541 _LT_EOF
6542
6543 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6544 (eval $ac_compile) 2>&5
6545 ac_status=$?
6546 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6547 test $ac_status = 0; }; then
6548 # Now try to grab the symbols.
6549 nlist=conftest.nm
6550 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
6551 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
6552 ac_status=$?
6553 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6554 test $ac_status = 0; } && test -s "$nlist"; then
6555 # Try sorting and uniquifying the output.
6556 if sort "$nlist" | uniq > "$nlist"T; then
6557 mv -f "$nlist"T "$nlist"
6558 else
6559 rm -f "$nlist"T
6560 fi
6561
6562 # Make sure that we snagged all the symbols we need.
6563 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6564 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6565 cat <<_LT_EOF > conftest.$ac_ext
6566 #ifdef __cplusplus
6567 extern "C" {
6568 #endif
6569
6570 _LT_EOF
6571 # Now generate the symbol file.
6572 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6573
6574 cat <<_LT_EOF >> conftest.$ac_ext
6575
6576 /* The mapping between symbol names and symbols. */
6577 const struct {
6578 const char *name;
6579 void *address;
6580 }
6581 lt__PROGRAM__LTX_preloaded_symbols[] =
6582 {
6583 { "@PROGRAM@", (void *) 0 },
6584 _LT_EOF
6585 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6586 cat <<\_LT_EOF >> conftest.$ac_ext
6587 {0, (void *) 0}
6588 };
6589
6590 /* This works around a problem in FreeBSD linker */
6591 #ifdef FREEBSD_WORKAROUND
6592 static const void *lt_preloaded_setup() {
6593 return lt__PROGRAM__LTX_preloaded_symbols;
6594 }
6595 #endif
6596
6597 #ifdef __cplusplus
6598 }
6599 #endif
6600 _LT_EOF
6601 # Now try linking the two files.
6602 mv conftest.$ac_objext conftstm.$ac_objext
6603 lt_save_LIBS="$LIBS"
6604 lt_save_CFLAGS="$CFLAGS"
6605 LIBS="conftstm.$ac_objext"
6606 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6607 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6608 (eval $ac_link) 2>&5
6609 ac_status=$?
6610 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6611 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
6612 pipe_works=yes
6613 fi
6614 LIBS="$lt_save_LIBS"
6615 CFLAGS="$lt_save_CFLAGS"
6616 else
6617 echo "cannot find nm_test_func in $nlist" >&5
6618 fi
6619 else
6620 echo "cannot find nm_test_var in $nlist" >&5
6621 fi
6622 else
6623 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6624 fi
6625 else
6626 echo "$progname: failed program was:" >&5
6627 cat conftest.$ac_ext >&5
6628 fi
6629 rm -rf conftest* conftst*
6630
6631 # Do not use the global_symbol_pipe unless it works.
6632 if test "$pipe_works" = yes; then
6633 break
6634 else
6635 lt_cv_sys_global_symbol_pipe=
6636 fi
6637 done
6638
6639 fi
6640
6641 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6642 lt_cv_sys_global_symbol_to_cdecl=
6643 fi
6644 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6646 $as_echo "failed" >&6; }
6647 else
6648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6649 $as_echo "ok" >&6; }
6650 fi
6651
6652
6653
6654
6655
6656
6657
6658
6659
6660
6661
6662
6663
6664
6665
6666
6667
6668
6669
6670
6671
6672
6673 # Check whether --enable-libtool-lock was given.
6674 if test "${enable_libtool_lock+set}" = set; then :
6675 enableval=$enable_libtool_lock;
6676 fi
6677
6678 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6679
6680 # Some flags need to be propagated to the compiler or linker for good
6681 # libtool support.
6682 case $host in
6683 ia64-*-hpux*)
6684 # Find out which ABI we are using.
6685 echo 'int i;' > conftest.$ac_ext
6686 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6687 (eval $ac_compile) 2>&5
6688 ac_status=$?
6689 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6690 test $ac_status = 0; }; then
6691 case `/usr/bin/file conftest.$ac_objext` in
6692 *ELF-32*)
6693 HPUX_IA64_MODE="32"
6694 ;;
6695 *ELF-64*)
6696 HPUX_IA64_MODE="64"
6697 ;;
6698 esac
6699 fi
6700 rm -rf conftest*
6701 ;;
6702 *-*-irix6*)
6703 # Find out which ABI we are using.
6704 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6705 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6706 (eval $ac_compile) 2>&5
6707 ac_status=$?
6708 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6709 test $ac_status = 0; }; then
6710 if test "$lt_cv_prog_gnu_ld" = yes; then
6711 case `/usr/bin/file conftest.$ac_objext` in
6712 *32-bit*)
6713 LD="${LD-ld} -melf32bsmip"
6714 ;;
6715 *N32*)
6716 LD="${LD-ld} -melf32bmipn32"
6717 ;;
6718 *64-bit*)
6719 LD="${LD-ld} -melf64bmip"
6720 ;;
6721 esac
6722 else
6723 case `/usr/bin/file conftest.$ac_objext` in
6724 *32-bit*)
6725 LD="${LD-ld} -32"
6726 ;;
6727 *N32*)
6728 LD="${LD-ld} -n32"
6729 ;;
6730 *64-bit*)
6731 LD="${LD-ld} -64"
6732 ;;
6733 esac
6734 fi
6735 fi
6736 rm -rf conftest*
6737 ;;
6738
6739 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
6740 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6741 # Find out which ABI we are using.
6742 echo 'int i;' > conftest.$ac_ext
6743 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6744 (eval $ac_compile) 2>&5
6745 ac_status=$?
6746 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6747 test $ac_status = 0; }; then
6748 case `/usr/bin/file conftest.o` in
6749 *32-bit*)
6750 case $host in
6751 x86_64-*kfreebsd*-gnu)
6752 LD="${LD-ld} -m elf_i386_fbsd"
6753 ;;
6754 x86_64-*linux*)
6755 case `/usr/bin/file conftest.o` in
6756 *x86-64*)
6757 LD="${LD-ld} -m elf32_x86_64"
6758 ;;
6759 *)
6760 LD="${LD-ld} -m elf_i386"
6761 ;;
6762 esac
6763 ;;
6764 powerpc64le-*linux*)
6765 LD="${LD-ld} -m elf32lppclinux"
6766 ;;
6767 powerpc64-*linux*)
6768 LD="${LD-ld} -m elf32ppclinux"
6769 ;;
6770 s390x-*linux*)
6771 LD="${LD-ld} -m elf_s390"
6772 ;;
6773 sparc64-*linux*)
6774 LD="${LD-ld} -m elf32_sparc"
6775 ;;
6776 esac
6777 ;;
6778 *64-bit*)
6779 case $host in
6780 x86_64-*kfreebsd*-gnu)
6781 LD="${LD-ld} -m elf_x86_64_fbsd"
6782 ;;
6783 x86_64-*linux*)
6784 LD="${LD-ld} -m elf_x86_64"
6785 ;;
6786 powerpcle-*linux*)
6787 LD="${LD-ld} -m elf64lppc"
6788 ;;
6789 powerpc-*linux*)
6790 LD="${LD-ld} -m elf64ppc"
6791 ;;
6792 s390*-*linux*|s390*-*tpf*)
6793 LD="${LD-ld} -m elf64_s390"
6794 ;;
6795 sparc*-*linux*)
6796 LD="${LD-ld} -m elf64_sparc"
6797 ;;
6798 esac
6799 ;;
6800 esac
6801 fi
6802 rm -rf conftest*
6803 ;;
6804
6805 *-*-sco3.2v5*)
6806 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6807 SAVE_CFLAGS="$CFLAGS"
6808 CFLAGS="$CFLAGS -belf"
6809 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
6810 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
6811 if test "${lt_cv_cc_needs_belf+set}" = set; then :
6812 $as_echo_n "(cached) " >&6
6813 else
6814 ac_ext=c
6815 ac_cpp='$CPP $CPPFLAGS'
6816 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6817 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6818 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6819
6820 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6821 /* end confdefs.h. */
6822
6823 int
6824 main ()
6825 {
6826
6827 ;
6828 return 0;
6829 }
6830 _ACEOF
6831 if ac_fn_c_try_link "$LINENO"; then :
6832 lt_cv_cc_needs_belf=yes
6833 else
6834 lt_cv_cc_needs_belf=no
6835 fi
6836 rm -f core conftest.err conftest.$ac_objext \
6837 conftest$ac_exeext conftest.$ac_ext
6838 ac_ext=c
6839 ac_cpp='$CPP $CPPFLAGS'
6840 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6841 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6842 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6843
6844 fi
6845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
6846 $as_echo "$lt_cv_cc_needs_belf" >&6; }
6847 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6848 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6849 CFLAGS="$SAVE_CFLAGS"
6850 fi
6851 ;;
6852 sparc*-*solaris*)
6853 # Find out which ABI we are using.
6854 echo 'int i;' > conftest.$ac_ext
6855 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6856 (eval $ac_compile) 2>&5
6857 ac_status=$?
6858 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6859 test $ac_status = 0; }; then
6860 case `/usr/bin/file conftest.o` in
6861 *64-bit*)
6862 case $lt_cv_prog_gnu_ld in
6863 yes*) LD="${LD-ld} -m elf64_sparc" ;;
6864 *)
6865 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6866 LD="${LD-ld} -64"
6867 fi
6868 ;;
6869 esac
6870 ;;
6871 esac
6872 fi
6873 rm -rf conftest*
6874 ;;
6875 esac
6876
6877 need_locks="$enable_libtool_lock"
6878
6879
6880 case $host_os in
6881 rhapsody* | darwin*)
6882 if test -n "$ac_tool_prefix"; then
6883 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
6884 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
6885 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6886 $as_echo_n "checking for $ac_word... " >&6; }
6887 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
6888 $as_echo_n "(cached) " >&6
6889 else
6890 if test -n "$DSYMUTIL"; then
6891 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
6892 else
6893 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6894 for as_dir in $PATH
6895 do
6896 IFS=$as_save_IFS
6897 test -z "$as_dir" && as_dir=.
6898 for ac_exec_ext in '' $ac_executable_extensions; do
6899 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6900 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
6901 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6902 break 2
6903 fi
6904 done
6905 done
6906 IFS=$as_save_IFS
6907
6908 fi
6909 fi
6910 DSYMUTIL=$ac_cv_prog_DSYMUTIL
6911 if test -n "$DSYMUTIL"; then
6912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
6913 $as_echo "$DSYMUTIL" >&6; }
6914 else
6915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6916 $as_echo "no" >&6; }
6917 fi
6918
6919
6920 fi
6921 if test -z "$ac_cv_prog_DSYMUTIL"; then
6922 ac_ct_DSYMUTIL=$DSYMUTIL
6923 # Extract the first word of "dsymutil", so it can be a program name with args.
6924 set dummy dsymutil; ac_word=$2
6925 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6926 $as_echo_n "checking for $ac_word... " >&6; }
6927 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
6928 $as_echo_n "(cached) " >&6
6929 else
6930 if test -n "$ac_ct_DSYMUTIL"; then
6931 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
6932 else
6933 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6934 for as_dir in $PATH
6935 do
6936 IFS=$as_save_IFS
6937 test -z "$as_dir" && as_dir=.
6938 for ac_exec_ext in '' $ac_executable_extensions; do
6939 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6940 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
6941 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6942 break 2
6943 fi
6944 done
6945 done
6946 IFS=$as_save_IFS
6947
6948 fi
6949 fi
6950 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
6951 if test -n "$ac_ct_DSYMUTIL"; then
6952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
6953 $as_echo "$ac_ct_DSYMUTIL" >&6; }
6954 else
6955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6956 $as_echo "no" >&6; }
6957 fi
6958
6959 if test "x$ac_ct_DSYMUTIL" = x; then
6960 DSYMUTIL=":"
6961 else
6962 case $cross_compiling:$ac_tool_warned in
6963 yes:)
6964 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6965 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6966 ac_tool_warned=yes ;;
6967 esac
6968 DSYMUTIL=$ac_ct_DSYMUTIL
6969 fi
6970 else
6971 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
6972 fi
6973
6974 if test -n "$ac_tool_prefix"; then
6975 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
6976 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
6977 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6978 $as_echo_n "checking for $ac_word... " >&6; }
6979 if test "${ac_cv_prog_NMEDIT+set}" = set; then :
6980 $as_echo_n "(cached) " >&6
6981 else
6982 if test -n "$NMEDIT"; then
6983 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
6984 else
6985 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6986 for as_dir in $PATH
6987 do
6988 IFS=$as_save_IFS
6989 test -z "$as_dir" && as_dir=.
6990 for ac_exec_ext in '' $ac_executable_extensions; do
6991 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6992 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
6993 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6994 break 2
6995 fi
6996 done
6997 done
6998 IFS=$as_save_IFS
6999
7000 fi
7001 fi
7002 NMEDIT=$ac_cv_prog_NMEDIT
7003 if test -n "$NMEDIT"; then
7004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
7005 $as_echo "$NMEDIT" >&6; }
7006 else
7007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7008 $as_echo "no" >&6; }
7009 fi
7010
7011
7012 fi
7013 if test -z "$ac_cv_prog_NMEDIT"; then
7014 ac_ct_NMEDIT=$NMEDIT
7015 # Extract the first word of "nmedit", so it can be a program name with args.
7016 set dummy nmedit; ac_word=$2
7017 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7018 $as_echo_n "checking for $ac_word... " >&6; }
7019 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
7020 $as_echo_n "(cached) " >&6
7021 else
7022 if test -n "$ac_ct_NMEDIT"; then
7023 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7024 else
7025 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7026 for as_dir in $PATH
7027 do
7028 IFS=$as_save_IFS
7029 test -z "$as_dir" && as_dir=.
7030 for ac_exec_ext in '' $ac_executable_extensions; do
7031 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7032 ac_cv_prog_ac_ct_NMEDIT="nmedit"
7033 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7034 break 2
7035 fi
7036 done
7037 done
7038 IFS=$as_save_IFS
7039
7040 fi
7041 fi
7042 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7043 if test -n "$ac_ct_NMEDIT"; then
7044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7045 $as_echo "$ac_ct_NMEDIT" >&6; }
7046 else
7047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7048 $as_echo "no" >&6; }
7049 fi
7050
7051 if test "x$ac_ct_NMEDIT" = x; then
7052 NMEDIT=":"
7053 else
7054 case $cross_compiling:$ac_tool_warned in
7055 yes:)
7056 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7057 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7058 ac_tool_warned=yes ;;
7059 esac
7060 NMEDIT=$ac_ct_NMEDIT
7061 fi
7062 else
7063 NMEDIT="$ac_cv_prog_NMEDIT"
7064 fi
7065
7066 if test -n "$ac_tool_prefix"; then
7067 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7068 set dummy ${ac_tool_prefix}lipo; ac_word=$2
7069 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7070 $as_echo_n "checking for $ac_word... " >&6; }
7071 if test "${ac_cv_prog_LIPO+set}" = set; then :
7072 $as_echo_n "(cached) " >&6
7073 else
7074 if test -n "$LIPO"; then
7075 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7076 else
7077 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7078 for as_dir in $PATH
7079 do
7080 IFS=$as_save_IFS
7081 test -z "$as_dir" && as_dir=.
7082 for ac_exec_ext in '' $ac_executable_extensions; do
7083 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7084 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7085 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7086 break 2
7087 fi
7088 done
7089 done
7090 IFS=$as_save_IFS
7091
7092 fi
7093 fi
7094 LIPO=$ac_cv_prog_LIPO
7095 if test -n "$LIPO"; then
7096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7097 $as_echo "$LIPO" >&6; }
7098 else
7099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7100 $as_echo "no" >&6; }
7101 fi
7102
7103
7104 fi
7105 if test -z "$ac_cv_prog_LIPO"; then
7106 ac_ct_LIPO=$LIPO
7107 # Extract the first word of "lipo", so it can be a program name with args.
7108 set dummy lipo; ac_word=$2
7109 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7110 $as_echo_n "checking for $ac_word... " >&6; }
7111 if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
7112 $as_echo_n "(cached) " >&6
7113 else
7114 if test -n "$ac_ct_LIPO"; then
7115 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7116 else
7117 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7118 for as_dir in $PATH
7119 do
7120 IFS=$as_save_IFS
7121 test -z "$as_dir" && as_dir=.
7122 for ac_exec_ext in '' $ac_executable_extensions; do
7123 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7124 ac_cv_prog_ac_ct_LIPO="lipo"
7125 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7126 break 2
7127 fi
7128 done
7129 done
7130 IFS=$as_save_IFS
7131
7132 fi
7133 fi
7134 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7135 if test -n "$ac_ct_LIPO"; then
7136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7137 $as_echo "$ac_ct_LIPO" >&6; }
7138 else
7139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7140 $as_echo "no" >&6; }
7141 fi
7142
7143 if test "x$ac_ct_LIPO" = x; then
7144 LIPO=":"
7145 else
7146 case $cross_compiling:$ac_tool_warned in
7147 yes:)
7148 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7149 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7150 ac_tool_warned=yes ;;
7151 esac
7152 LIPO=$ac_ct_LIPO
7153 fi
7154 else
7155 LIPO="$ac_cv_prog_LIPO"
7156 fi
7157
7158 if test -n "$ac_tool_prefix"; then
7159 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7160 set dummy ${ac_tool_prefix}otool; ac_word=$2
7161 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7162 $as_echo_n "checking for $ac_word... " >&6; }
7163 if test "${ac_cv_prog_OTOOL+set}" = set; then :
7164 $as_echo_n "(cached) " >&6
7165 else
7166 if test -n "$OTOOL"; then
7167 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7168 else
7169 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7170 for as_dir in $PATH
7171 do
7172 IFS=$as_save_IFS
7173 test -z "$as_dir" && as_dir=.
7174 for ac_exec_ext in '' $ac_executable_extensions; do
7175 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7176 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7177 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7178 break 2
7179 fi
7180 done
7181 done
7182 IFS=$as_save_IFS
7183
7184 fi
7185 fi
7186 OTOOL=$ac_cv_prog_OTOOL
7187 if test -n "$OTOOL"; then
7188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7189 $as_echo "$OTOOL" >&6; }
7190 else
7191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7192 $as_echo "no" >&6; }
7193 fi
7194
7195
7196 fi
7197 if test -z "$ac_cv_prog_OTOOL"; then
7198 ac_ct_OTOOL=$OTOOL
7199 # Extract the first word of "otool", so it can be a program name with args.
7200 set dummy otool; ac_word=$2
7201 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7202 $as_echo_n "checking for $ac_word... " >&6; }
7203 if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
7204 $as_echo_n "(cached) " >&6
7205 else
7206 if test -n "$ac_ct_OTOOL"; then
7207 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7208 else
7209 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7210 for as_dir in $PATH
7211 do
7212 IFS=$as_save_IFS
7213 test -z "$as_dir" && as_dir=.
7214 for ac_exec_ext in '' $ac_executable_extensions; do
7215 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7216 ac_cv_prog_ac_ct_OTOOL="otool"
7217 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7218 break 2
7219 fi
7220 done
7221 done
7222 IFS=$as_save_IFS
7223
7224 fi
7225 fi
7226 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7227 if test -n "$ac_ct_OTOOL"; then
7228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7229 $as_echo "$ac_ct_OTOOL" >&6; }
7230 else
7231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7232 $as_echo "no" >&6; }
7233 fi
7234
7235 if test "x$ac_ct_OTOOL" = x; then
7236 OTOOL=":"
7237 else
7238 case $cross_compiling:$ac_tool_warned in
7239 yes:)
7240 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7241 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7242 ac_tool_warned=yes ;;
7243 esac
7244 OTOOL=$ac_ct_OTOOL
7245 fi
7246 else
7247 OTOOL="$ac_cv_prog_OTOOL"
7248 fi
7249
7250 if test -n "$ac_tool_prefix"; then
7251 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7252 set dummy ${ac_tool_prefix}otool64; ac_word=$2
7253 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7254 $as_echo_n "checking for $ac_word... " >&6; }
7255 if test "${ac_cv_prog_OTOOL64+set}" = set; then :
7256 $as_echo_n "(cached) " >&6
7257 else
7258 if test -n "$OTOOL64"; then
7259 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7260 else
7261 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7262 for as_dir in $PATH
7263 do
7264 IFS=$as_save_IFS
7265 test -z "$as_dir" && as_dir=.
7266 for ac_exec_ext in '' $ac_executable_extensions; do
7267 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7268 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7269 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7270 break 2
7271 fi
7272 done
7273 done
7274 IFS=$as_save_IFS
7275
7276 fi
7277 fi
7278 OTOOL64=$ac_cv_prog_OTOOL64
7279 if test -n "$OTOOL64"; then
7280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
7281 $as_echo "$OTOOL64" >&6; }
7282 else
7283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7284 $as_echo "no" >&6; }
7285 fi
7286
7287
7288 fi
7289 if test -z "$ac_cv_prog_OTOOL64"; then
7290 ac_ct_OTOOL64=$OTOOL64
7291 # Extract the first word of "otool64", so it can be a program name with args.
7292 set dummy otool64; ac_word=$2
7293 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7294 $as_echo_n "checking for $ac_word... " >&6; }
7295 if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
7296 $as_echo_n "(cached) " >&6
7297 else
7298 if test -n "$ac_ct_OTOOL64"; then
7299 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7300 else
7301 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7302 for as_dir in $PATH
7303 do
7304 IFS=$as_save_IFS
7305 test -z "$as_dir" && as_dir=.
7306 for ac_exec_ext in '' $ac_executable_extensions; do
7307 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7308 ac_cv_prog_ac_ct_OTOOL64="otool64"
7309 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7310 break 2
7311 fi
7312 done
7313 done
7314 IFS=$as_save_IFS
7315
7316 fi
7317 fi
7318 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7319 if test -n "$ac_ct_OTOOL64"; then
7320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
7321 $as_echo "$ac_ct_OTOOL64" >&6; }
7322 else
7323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7324 $as_echo "no" >&6; }
7325 fi
7326
7327 if test "x$ac_ct_OTOOL64" = x; then
7328 OTOOL64=":"
7329 else
7330 case $cross_compiling:$ac_tool_warned in
7331 yes:)
7332 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7333 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7334 ac_tool_warned=yes ;;
7335 esac
7336 OTOOL64=$ac_ct_OTOOL64
7337 fi
7338 else
7339 OTOOL64="$ac_cv_prog_OTOOL64"
7340 fi
7341
7342
7343
7344
7345
7346
7347
7348
7349
7350
7351
7352
7353
7354
7355
7356
7357
7358
7359
7360
7361
7362
7363
7364
7365
7366
7367
7368 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7369 $as_echo_n "checking for -single_module linker flag... " >&6; }
7370 if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
7371 $as_echo_n "(cached) " >&6
7372 else
7373 lt_cv_apple_cc_single_mod=no
7374 if test -z "${LT_MULTI_MODULE}"; then
7375 # By default we will add the -single_module flag. You can override
7376 # by either setting the environment variable LT_MULTI_MODULE
7377 # non-empty at configure time, or by adding -multi_module to the
7378 # link flags.
7379 rm -rf libconftest.dylib*
7380 echo "int foo(void){return 1;}" > conftest.c
7381 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7382 -dynamiclib -Wl,-single_module conftest.c" >&5
7383 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7384 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7385 _lt_result=$?
7386 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
7387 lt_cv_apple_cc_single_mod=yes
7388 else
7389 cat conftest.err >&5
7390 fi
7391 rm -rf libconftest.dylib*
7392 rm -f conftest.*
7393 fi
7394 fi
7395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7396 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7397 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7398 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7399 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
7400 $as_echo_n "(cached) " >&6
7401 else
7402 lt_cv_ld_exported_symbols_list=no
7403 save_LDFLAGS=$LDFLAGS
7404 echo "_main" > conftest.sym
7405 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7406 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7407 /* end confdefs.h. */
7408
7409 int
7410 main ()
7411 {
7412
7413 ;
7414 return 0;
7415 }
7416 _ACEOF
7417 if ac_fn_c_try_link "$LINENO"; then :
7418 lt_cv_ld_exported_symbols_list=yes
7419 else
7420 lt_cv_ld_exported_symbols_list=no
7421 fi
7422 rm -f core conftest.err conftest.$ac_objext \
7423 conftest$ac_exeext conftest.$ac_ext
7424 LDFLAGS="$save_LDFLAGS"
7425
7426 fi
7427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7428 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7429 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
7430 $as_echo_n "checking for -force_load linker flag... " >&6; }
7431 if test "${lt_cv_ld_force_load+set}" = set; then :
7432 $as_echo_n "(cached) " >&6
7433 else
7434 lt_cv_ld_force_load=no
7435 cat > conftest.c << _LT_EOF
7436 int forced_loaded() { return 2;}
7437 _LT_EOF
7438 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
7439 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
7440 echo "$AR cru libconftest.a conftest.o" >&5
7441 $AR cru libconftest.a conftest.o 2>&5
7442 cat > conftest.c << _LT_EOF
7443 int main() { return 0;}
7444 _LT_EOF
7445 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
7446 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
7447 _lt_result=$?
7448 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
7449 lt_cv_ld_force_load=yes
7450 else
7451 cat conftest.err >&5
7452 fi
7453 rm -f conftest.err libconftest.a conftest conftest.c
7454 rm -rf conftest.dSYM
7455
7456 fi
7457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
7458 $as_echo "$lt_cv_ld_force_load" >&6; }
7459 case $host_os in
7460 rhapsody* | darwin1.[012])
7461 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7462 darwin1.*)
7463 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7464 darwin*) # darwin 5.x on
7465 # if running on 10.5 or later, the deployment target defaults
7466 # to the OS version, if on x86, and 10.4, the deployment
7467 # target defaults to 10.4. Don't you love it?
7468 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7469 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7470 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7471 10.[012][,.]*)
7472 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7473 10.*)
7474 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7475 esac
7476 ;;
7477 esac
7478 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7479 _lt_dar_single_mod='$single_module'
7480 fi
7481 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7482 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7483 else
7484 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
7485 fi
7486 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
7487 _lt_dsymutil='~$DSYMUTIL $lib || :'
7488 else
7489 _lt_dsymutil=
7490 fi
7491 ;;
7492 esac
7493
7494 for ac_header in dlfcn.h
7495 do :
7496 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7497 "
7498 if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
7499 cat >>confdefs.h <<_ACEOF
7500 #define HAVE_DLFCN_H 1
7501 _ACEOF
7502
7503 fi
7504
7505 done
7506
7507
7508
7509
7510
7511 # Set options
7512
7513
7514
7515 enable_dlopen=no
7516
7517
7518 enable_win32_dll=no
7519
7520
7521 # Check whether --enable-shared was given.
7522 if test "${enable_shared+set}" = set; then :
7523 enableval=$enable_shared; p=${PACKAGE-default}
7524 case $enableval in
7525 yes) enable_shared=yes ;;
7526 no) enable_shared=no ;;
7527 *)
7528 enable_shared=no
7529 # Look at the argument we got. We use all the common list separators.
7530 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7531 for pkg in $enableval; do
7532 IFS="$lt_save_ifs"
7533 if test "X$pkg" = "X$p"; then
7534 enable_shared=yes
7535 fi
7536 done
7537 IFS="$lt_save_ifs"
7538 ;;
7539 esac
7540 else
7541 enable_shared=yes
7542 fi
7543
7544
7545
7546
7547
7548
7549
7550
7551
7552 # Check whether --enable-static was given.
7553 if test "${enable_static+set}" = set; then :
7554 enableval=$enable_static; p=${PACKAGE-default}
7555 case $enableval in
7556 yes) enable_static=yes ;;
7557 no) enable_static=no ;;
7558 *)
7559 enable_static=no
7560 # Look at the argument we got. We use all the common list separators.
7561 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7562 for pkg in $enableval; do
7563 IFS="$lt_save_ifs"
7564 if test "X$pkg" = "X$p"; then
7565 enable_static=yes
7566 fi
7567 done
7568 IFS="$lt_save_ifs"
7569 ;;
7570 esac
7571 else
7572 enable_static=yes
7573 fi
7574
7575
7576
7577
7578
7579
7580
7581
7582
7583
7584 # Check whether --with-pic was given.
7585 if test "${with_pic+set}" = set; then :
7586 withval=$with_pic; pic_mode="$withval"
7587 else
7588 pic_mode=default
7589 fi
7590
7591
7592 test -z "$pic_mode" && pic_mode=default
7593
7594
7595
7596
7597
7598
7599
7600 # Check whether --enable-fast-install was given.
7601 if test "${enable_fast_install+set}" = set; then :
7602 enableval=$enable_fast_install; p=${PACKAGE-default}
7603 case $enableval in
7604 yes) enable_fast_install=yes ;;
7605 no) enable_fast_install=no ;;
7606 *)
7607 enable_fast_install=no
7608 # Look at the argument we got. We use all the common list separators.
7609 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7610 for pkg in $enableval; do
7611 IFS="$lt_save_ifs"
7612 if test "X$pkg" = "X$p"; then
7613 enable_fast_install=yes
7614 fi
7615 done
7616 IFS="$lt_save_ifs"
7617 ;;
7618 esac
7619 else
7620 enable_fast_install=yes
7621 fi
7622
7623
7624
7625
7626
7627
7628
7629
7630
7631
7632
7633 # This can be used to rebuild libtool when needed
7634 LIBTOOL_DEPS="$ltmain"
7635
7636 # Always use our own libtool.
7637 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
7638
7639
7640
7641
7642
7643
7644
7645
7646
7647
7648
7649
7650
7651
7652
7653
7654
7655
7656
7657
7658
7659
7660
7661
7662
7663
7664 test -z "$LN_S" && LN_S="ln -s"
7665
7666
7667
7668
7669
7670
7671
7672
7673
7674
7675
7676
7677
7678
7679 if test -n "${ZSH_VERSION+set}" ; then
7680 setopt NO_GLOB_SUBST
7681 fi
7682
7683 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
7684 $as_echo_n "checking for objdir... " >&6; }
7685 if test "${lt_cv_objdir+set}" = set; then :
7686 $as_echo_n "(cached) " >&6
7687 else
7688 rm -f .libs 2>/dev/null
7689 mkdir .libs 2>/dev/null
7690 if test -d .libs; then
7691 lt_cv_objdir=.libs
7692 else
7693 # MS-DOS does not allow filenames that begin with a dot.
7694 lt_cv_objdir=_libs
7695 fi
7696 rmdir .libs 2>/dev/null
7697 fi
7698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
7699 $as_echo "$lt_cv_objdir" >&6; }
7700 objdir=$lt_cv_objdir
7701
7702
7703
7704
7705
7706 cat >>confdefs.h <<_ACEOF
7707 #define LT_OBJDIR "$lt_cv_objdir/"
7708 _ACEOF
7709
7710
7711
7712
7713 case $host_os in
7714 aix3*)
7715 # AIX sometimes has problems with the GCC collect2 program. For some
7716 # reason, if we set the COLLECT_NAMES environment variable, the problems
7717 # vanish in a puff of smoke.
7718 if test "X${COLLECT_NAMES+set}" != Xset; then
7719 COLLECT_NAMES=
7720 export COLLECT_NAMES
7721 fi
7722 ;;
7723 esac
7724
7725 # Global variables:
7726 ofile=libtool
7727 can_build_shared=yes
7728
7729 # All known linkers require a `.a' archive for static linking (except MSVC,
7730 # which needs '.lib').
7731 libext=a
7732
7733 with_gnu_ld="$lt_cv_prog_gnu_ld"
7734
7735 old_CC="$CC"
7736 old_CFLAGS="$CFLAGS"
7737
7738 # Set sane defaults for various variables
7739 test -z "$CC" && CC=cc
7740 test -z "$LTCC" && LTCC=$CC
7741 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7742 test -z "$LD" && LD=ld
7743 test -z "$ac_objext" && ac_objext=o
7744
7745 for cc_temp in $compiler""; do
7746 case $cc_temp in
7747 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7748 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7749 \-*) ;;
7750 *) break;;
7751 esac
7752 done
7753 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
7754
7755
7756 # Only perform the check for file, if the check method requires it
7757 test -z "$MAGIC_CMD" && MAGIC_CMD=file
7758 case $deplibs_check_method in
7759 file_magic*)
7760 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7761 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
7762 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
7763 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
7764 $as_echo_n "(cached) " >&6
7765 else
7766 case $MAGIC_CMD in
7767 [\\/*] | ?:[\\/]*)
7768 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7769 ;;
7770 *)
7771 lt_save_MAGIC_CMD="$MAGIC_CMD"
7772 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7773 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7774 for ac_dir in $ac_dummy; do
7775 IFS="$lt_save_ifs"
7776 test -z "$ac_dir" && ac_dir=.
7777 if test -f $ac_dir/${ac_tool_prefix}file; then
7778 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7779 if test -n "$file_magic_test_file"; then
7780 case $deplibs_check_method in
7781 "file_magic "*)
7782 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7783 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7784 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7785 $EGREP "$file_magic_regex" > /dev/null; then
7786 :
7787 else
7788 cat <<_LT_EOF 1>&2
7789
7790 *** Warning: the command libtool uses to detect shared libraries,
7791 *** $file_magic_cmd, produces output that libtool cannot recognize.
7792 *** The result is that libtool may fail to recognize shared libraries
7793 *** as such. This will affect the creation of libtool libraries that
7794 *** depend on shared libraries, but programs linked with such libtool
7795 *** libraries will work regardless of this problem. Nevertheless, you
7796 *** may want to report the problem to your system manager and/or to
7797 *** bug-libtool@gnu.org
7798
7799 _LT_EOF
7800 fi ;;
7801 esac
7802 fi
7803 break
7804 fi
7805 done
7806 IFS="$lt_save_ifs"
7807 MAGIC_CMD="$lt_save_MAGIC_CMD"
7808 ;;
7809 esac
7810 fi
7811
7812 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7813 if test -n "$MAGIC_CMD"; then
7814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7815 $as_echo "$MAGIC_CMD" >&6; }
7816 else
7817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7818 $as_echo "no" >&6; }
7819 fi
7820
7821
7822
7823
7824
7825 if test -z "$lt_cv_path_MAGIC_CMD"; then
7826 if test -n "$ac_tool_prefix"; then
7827 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
7828 $as_echo_n "checking for file... " >&6; }
7829 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
7830 $as_echo_n "(cached) " >&6
7831 else
7832 case $MAGIC_CMD in
7833 [\\/*] | ?:[\\/]*)
7834 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7835 ;;
7836 *)
7837 lt_save_MAGIC_CMD="$MAGIC_CMD"
7838 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7839 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7840 for ac_dir in $ac_dummy; do
7841 IFS="$lt_save_ifs"
7842 test -z "$ac_dir" && ac_dir=.
7843 if test -f $ac_dir/file; then
7844 lt_cv_path_MAGIC_CMD="$ac_dir/file"
7845 if test -n "$file_magic_test_file"; then
7846 case $deplibs_check_method in
7847 "file_magic "*)
7848 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7849 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7850 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7851 $EGREP "$file_magic_regex" > /dev/null; then
7852 :
7853 else
7854 cat <<_LT_EOF 1>&2
7855
7856 *** Warning: the command libtool uses to detect shared libraries,
7857 *** $file_magic_cmd, produces output that libtool cannot recognize.
7858 *** The result is that libtool may fail to recognize shared libraries
7859 *** as such. This will affect the creation of libtool libraries that
7860 *** depend on shared libraries, but programs linked with such libtool
7861 *** libraries will work regardless of this problem. Nevertheless, you
7862 *** may want to report the problem to your system manager and/or to
7863 *** bug-libtool@gnu.org
7864
7865 _LT_EOF
7866 fi ;;
7867 esac
7868 fi
7869 break
7870 fi
7871 done
7872 IFS="$lt_save_ifs"
7873 MAGIC_CMD="$lt_save_MAGIC_CMD"
7874 ;;
7875 esac
7876 fi
7877
7878 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7879 if test -n "$MAGIC_CMD"; then
7880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7881 $as_echo "$MAGIC_CMD" >&6; }
7882 else
7883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7884 $as_echo "no" >&6; }
7885 fi
7886
7887
7888 else
7889 MAGIC_CMD=:
7890 fi
7891 fi
7892
7893 fi
7894 ;;
7895 esac
7896
7897 # Use C for the default configuration in the libtool script
7898
7899 lt_save_CC="$CC"
7900 ac_ext=c
7901 ac_cpp='$CPP $CPPFLAGS'
7902 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7903 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7904 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7905
7906
7907 # Source file extension for C test sources.
7908 ac_ext=c
7909
7910 # Object file extension for compiled C test sources.
7911 objext=o
7912 objext=$objext
7913
7914 # Code to be used in simple compile tests
7915 lt_simple_compile_test_code="int some_variable = 0;"
7916
7917 # Code to be used in simple link tests
7918 lt_simple_link_test_code='int main(){return(0);}'
7919
7920
7921
7922
7923
7924
7925
7926 # If no C compiler was specified, use CC.
7927 LTCC=${LTCC-"$CC"}
7928
7929 # If no C compiler flags were specified, use CFLAGS.
7930 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7931
7932 # Allow CC to be a program name with arguments.
7933 compiler=$CC
7934
7935 # Save the default compiler, since it gets overwritten when the other
7936 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
7937 compiler_DEFAULT=$CC
7938
7939 # save warnings/boilerplate of simple test code
7940 ac_outfile=conftest.$ac_objext
7941 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
7942 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7943 _lt_compiler_boilerplate=`cat conftest.err`
7944 $RM conftest*
7945
7946 ac_outfile=conftest.$ac_objext
7947 echo "$lt_simple_link_test_code" >conftest.$ac_ext
7948 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7949 _lt_linker_boilerplate=`cat conftest.err`
7950 $RM -r conftest*
7951
7952
7953 ## CAVEAT EMPTOR:
7954 ## There is no encapsulation within the following macros, do not change
7955 ## the running order or otherwise move them around unless you know exactly
7956 ## what you are doing...
7957 if test -n "$compiler"; then
7958
7959 lt_prog_compiler_no_builtin_flag=
7960
7961 if test "$GCC" = yes; then
7962 case $cc_basename in
7963 nvcc*)
7964 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
7965 *)
7966 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
7967 esac
7968
7969 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7970 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
7971 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
7972 $as_echo_n "(cached) " >&6
7973 else
7974 lt_cv_prog_compiler_rtti_exceptions=no
7975 ac_outfile=conftest.$ac_objext
7976 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7977 lt_compiler_flag="-fno-rtti -fno-exceptions"
7978 # Insert the option either (1) after the last *FLAGS variable, or
7979 # (2) before a word containing "conftest.", or (3) at the end.
7980 # Note that $ac_compile itself does not contain backslashes and begins
7981 # with a dollar sign (not a hyphen), so the echo should work correctly.
7982 # The option is referenced via a variable to avoid confusing sed.
7983 lt_compile=`echo "$ac_compile" | $SED \
7984 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7985 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7986 -e 's:$: $lt_compiler_flag:'`
7987 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
7988 (eval "$lt_compile" 2>conftest.err)
7989 ac_status=$?
7990 cat conftest.err >&5
7991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7992 if (exit $ac_status) && test -s "$ac_outfile"; then
7993 # The compiler can only warn and ignore the option if not recognized
7994 # So say no if there are warnings other than the usual output.
7995 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
7996 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7997 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7998 lt_cv_prog_compiler_rtti_exceptions=yes
7999 fi
8000 fi
8001 $RM conftest*
8002
8003 fi
8004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8005 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8006
8007 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8008 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8009 else
8010 :
8011 fi
8012
8013 fi
8014
8015
8016
8017
8018
8019
8020 lt_prog_compiler_wl=
8021 lt_prog_compiler_pic=
8022 lt_prog_compiler_static=
8023
8024 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8025 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8026
8027 if test "$GCC" = yes; then
8028 lt_prog_compiler_wl='-Wl,'
8029 lt_prog_compiler_static='-static'
8030
8031 case $host_os in
8032 aix*)
8033 # All AIX code is PIC.
8034 if test "$host_cpu" = ia64; then
8035 # AIX 5 now supports IA64 processor
8036 lt_prog_compiler_static='-Bstatic'
8037 fi
8038 lt_prog_compiler_pic='-fPIC'
8039 ;;
8040
8041 amigaos*)
8042 case $host_cpu in
8043 powerpc)
8044 # see comment about AmigaOS4 .so support
8045 lt_prog_compiler_pic='-fPIC'
8046 ;;
8047 m68k)
8048 # FIXME: we need at least 68020 code to build shared libraries, but
8049 # adding the `-m68020' flag to GCC prevents building anything better,
8050 # like `-m68040'.
8051 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8052 ;;
8053 esac
8054 ;;
8055
8056 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8057 # PIC is the default for these OSes.
8058 ;;
8059
8060 mingw* | cygwin* | pw32* | os2* | cegcc*)
8061 # This hack is so that the source file can tell whether it is being
8062 # built for inclusion in a dll (and should export symbols for example).
8063 # Although the cygwin gcc ignores -fPIC, still need this for old-style
8064 # (--disable-auto-import) libraries
8065 lt_prog_compiler_pic='-DDLL_EXPORT'
8066 ;;
8067
8068 darwin* | rhapsody*)
8069 # PIC is the default on this platform
8070 # Common symbols not allowed in MH_DYLIB files
8071 lt_prog_compiler_pic='-fno-common'
8072 ;;
8073
8074 haiku*)
8075 # PIC is the default for Haiku.
8076 # The "-static" flag exists, but is broken.
8077 lt_prog_compiler_static=
8078 ;;
8079
8080 hpux*)
8081 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8082 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
8083 # sets the default TLS model and affects inlining.
8084 case $host_cpu in
8085 hppa*64*)
8086 # +Z the default
8087 ;;
8088 *)
8089 lt_prog_compiler_pic='-fPIC'
8090 ;;
8091 esac
8092 ;;
8093
8094 interix[3-9]*)
8095 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8096 # Instead, we relocate shared libraries at runtime.
8097 ;;
8098
8099 msdosdjgpp*)
8100 # Just because we use GCC doesn't mean we suddenly get shared libraries
8101 # on systems that don't support them.
8102 lt_prog_compiler_can_build_shared=no
8103 enable_shared=no
8104 ;;
8105
8106 *nto* | *qnx*)
8107 # QNX uses GNU C++, but need to define -shared option too, otherwise
8108 # it will coredump.
8109 lt_prog_compiler_pic='-fPIC -shared'
8110 ;;
8111
8112 sysv4*MP*)
8113 if test -d /usr/nec; then
8114 lt_prog_compiler_pic=-Kconform_pic
8115 fi
8116 ;;
8117
8118 *)
8119 lt_prog_compiler_pic='-fPIC'
8120 ;;
8121 esac
8122
8123 case $cc_basename in
8124 nvcc*) # Cuda Compiler Driver 2.2
8125 lt_prog_compiler_wl='-Xlinker '
8126 lt_prog_compiler_pic='-Xcompiler -fPIC'
8127 ;;
8128 esac
8129 else
8130 # PORTME Check for flag to pass linker flags through the system compiler.
8131 case $host_os in
8132 aix*)
8133 lt_prog_compiler_wl='-Wl,'
8134 if test "$host_cpu" = ia64; then
8135 # AIX 5 now supports IA64 processor
8136 lt_prog_compiler_static='-Bstatic'
8137 else
8138 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8139 fi
8140 ;;
8141
8142 mingw* | cygwin* | pw32* | os2* | cegcc*)
8143 # This hack is so that the source file can tell whether it is being
8144 # built for inclusion in a dll (and should export symbols for example).
8145 lt_prog_compiler_pic='-DDLL_EXPORT'
8146 ;;
8147
8148 hpux9* | hpux10* | hpux11*)
8149 lt_prog_compiler_wl='-Wl,'
8150 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8151 # not for PA HP-UX.
8152 case $host_cpu in
8153 hppa*64*|ia64*)
8154 # +Z the default
8155 ;;
8156 *)
8157 lt_prog_compiler_pic='+Z'
8158 ;;
8159 esac
8160 # Is there a better lt_prog_compiler_static that works with the bundled CC?
8161 lt_prog_compiler_static='${wl}-a ${wl}archive'
8162 ;;
8163
8164 irix5* | irix6* | nonstopux*)
8165 lt_prog_compiler_wl='-Wl,'
8166 # PIC (with -KPIC) is the default.
8167 lt_prog_compiler_static='-non_shared'
8168 ;;
8169
8170 linux* | k*bsd*-gnu | kopensolaris*-gnu)
8171 case $cc_basename in
8172 # old Intel for x86_64 which still supported -KPIC.
8173 ecc*)
8174 lt_prog_compiler_wl='-Wl,'
8175 lt_prog_compiler_pic='-KPIC'
8176 lt_prog_compiler_static='-static'
8177 ;;
8178 # icc used to be incompatible with GCC.
8179 # ICC 10 doesn't accept -KPIC any more.
8180 icc* | ifort*)
8181 lt_prog_compiler_wl='-Wl,'
8182 lt_prog_compiler_pic='-fPIC'
8183 lt_prog_compiler_static='-static'
8184 ;;
8185 # Lahey Fortran 8.1.
8186 lf95*)
8187 lt_prog_compiler_wl='-Wl,'
8188 lt_prog_compiler_pic='--shared'
8189 lt_prog_compiler_static='--static'
8190 ;;
8191 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
8192 # Portland Group compilers (*not* the Pentium gcc compiler,
8193 # which looks to be a dead project)
8194 lt_prog_compiler_wl='-Wl,'
8195 lt_prog_compiler_pic='-fpic'
8196 lt_prog_compiler_static='-Bstatic'
8197 ;;
8198 ccc*)
8199 lt_prog_compiler_wl='-Wl,'
8200 # All Alpha code is PIC.
8201 lt_prog_compiler_static='-non_shared'
8202 ;;
8203 xl* | bgxl* | bgf* | mpixl*)
8204 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
8205 lt_prog_compiler_wl='-Wl,'
8206 lt_prog_compiler_pic='-qpic'
8207 lt_prog_compiler_static='-qstaticlink'
8208 ;;
8209 *)
8210 case `$CC -V 2>&1 | sed 5q` in
8211 *Sun\ F* | *Sun*Fortran*)
8212 # Sun Fortran 8.3 passes all unrecognized flags to the linker
8213 lt_prog_compiler_pic='-KPIC'
8214 lt_prog_compiler_static='-Bstatic'
8215 lt_prog_compiler_wl=''
8216 ;;
8217 *Sun\ C*)
8218 # Sun C 5.9
8219 lt_prog_compiler_pic='-KPIC'
8220 lt_prog_compiler_static='-Bstatic'
8221 lt_prog_compiler_wl='-Wl,'
8222 ;;
8223 esac
8224 ;;
8225 esac
8226 ;;
8227
8228 newsos6)
8229 lt_prog_compiler_pic='-KPIC'
8230 lt_prog_compiler_static='-Bstatic'
8231 ;;
8232
8233 *nto* | *qnx*)
8234 # QNX uses GNU C++, but need to define -shared option too, otherwise
8235 # it will coredump.
8236 lt_prog_compiler_pic='-fPIC -shared'
8237 ;;
8238
8239 osf3* | osf4* | osf5*)
8240 lt_prog_compiler_wl='-Wl,'
8241 # All OSF/1 code is PIC.
8242 lt_prog_compiler_static='-non_shared'
8243 ;;
8244
8245 rdos*)
8246 lt_prog_compiler_static='-non_shared'
8247 ;;
8248
8249 solaris*)
8250 lt_prog_compiler_pic='-KPIC'
8251 lt_prog_compiler_static='-Bstatic'
8252 case $cc_basename in
8253 f77* | f90* | f95*)
8254 lt_prog_compiler_wl='-Qoption ld ';;
8255 *)
8256 lt_prog_compiler_wl='-Wl,';;
8257 esac
8258 ;;
8259
8260 sunos4*)
8261 lt_prog_compiler_wl='-Qoption ld '
8262 lt_prog_compiler_pic='-PIC'
8263 lt_prog_compiler_static='-Bstatic'
8264 ;;
8265
8266 sysv4 | sysv4.2uw2* | sysv4.3*)
8267 lt_prog_compiler_wl='-Wl,'
8268 lt_prog_compiler_pic='-KPIC'
8269 lt_prog_compiler_static='-Bstatic'
8270 ;;
8271
8272 sysv4*MP*)
8273 if test -d /usr/nec ;then
8274 lt_prog_compiler_pic='-Kconform_pic'
8275 lt_prog_compiler_static='-Bstatic'
8276 fi
8277 ;;
8278
8279 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8280 lt_prog_compiler_wl='-Wl,'
8281 lt_prog_compiler_pic='-KPIC'
8282 lt_prog_compiler_static='-Bstatic'
8283 ;;
8284
8285 unicos*)
8286 lt_prog_compiler_wl='-Wl,'
8287 lt_prog_compiler_can_build_shared=no
8288 ;;
8289
8290 uts4*)
8291 lt_prog_compiler_pic='-pic'
8292 lt_prog_compiler_static='-Bstatic'
8293 ;;
8294
8295 *)
8296 lt_prog_compiler_can_build_shared=no
8297 ;;
8298 esac
8299 fi
8300
8301 case $host_os in
8302 # For platforms which do not support PIC, -DPIC is meaningless:
8303 *djgpp*)
8304 lt_prog_compiler_pic=
8305 ;;
8306 *)
8307 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8308 ;;
8309 esac
8310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
8311 $as_echo "$lt_prog_compiler_pic" >&6; }
8312
8313
8314
8315
8316
8317
8318 #
8319 # Check to make sure the PIC flag actually works.
8320 #
8321 if test -n "$lt_prog_compiler_pic"; then
8322 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8323 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8324 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
8325 $as_echo_n "(cached) " >&6
8326 else
8327 lt_cv_prog_compiler_pic_works=no
8328 ac_outfile=conftest.$ac_objext
8329 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8330 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8331 # Insert the option either (1) after the last *FLAGS variable, or
8332 # (2) before a word containing "conftest.", or (3) at the end.
8333 # Note that $ac_compile itself does not contain backslashes and begins
8334 # with a dollar sign (not a hyphen), so the echo should work correctly.
8335 # The option is referenced via a variable to avoid confusing sed.
8336 lt_compile=`echo "$ac_compile" | $SED \
8337 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8338 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8339 -e 's:$: $lt_compiler_flag:'`
8340 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8341 (eval "$lt_compile" 2>conftest.err)
8342 ac_status=$?
8343 cat conftest.err >&5
8344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8345 if (exit $ac_status) && test -s "$ac_outfile"; then
8346 # The compiler can only warn and ignore the option if not recognized
8347 # So say no if there are warnings other than the usual output.
8348 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8349 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8350 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8351 lt_cv_prog_compiler_pic_works=yes
8352 fi
8353 fi
8354 $RM conftest*
8355
8356 fi
8357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8358 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8359
8360 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
8361 case $lt_prog_compiler_pic in
8362 "" | " "*) ;;
8363 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8364 esac
8365 else
8366 lt_prog_compiler_pic=
8367 lt_prog_compiler_can_build_shared=no
8368 fi
8369
8370 fi
8371
8372
8373
8374
8375
8376
8377 #
8378 # Check to make sure the static flag actually works.
8379 #
8380 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8381 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8382 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8383 if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
8384 $as_echo_n "(cached) " >&6
8385 else
8386 lt_cv_prog_compiler_static_works=no
8387 save_LDFLAGS="$LDFLAGS"
8388 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8389 echo "$lt_simple_link_test_code" > conftest.$ac_ext
8390 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8391 # The linker can only warn and ignore the option if not recognized
8392 # So say no if there are warnings
8393 if test -s conftest.err; then
8394 # Append any errors to the config.log.
8395 cat conftest.err 1>&5
8396 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
8397 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8398 if diff conftest.exp conftest.er2 >/dev/null; then
8399 lt_cv_prog_compiler_static_works=yes
8400 fi
8401 else
8402 lt_cv_prog_compiler_static_works=yes
8403 fi
8404 fi
8405 $RM -r conftest*
8406 LDFLAGS="$save_LDFLAGS"
8407
8408 fi
8409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
8410 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
8411
8412 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
8413 :
8414 else
8415 lt_prog_compiler_static=
8416 fi
8417
8418
8419
8420
8421
8422
8423
8424 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8425 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8426 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
8427 $as_echo_n "(cached) " >&6
8428 else
8429 lt_cv_prog_compiler_c_o=no
8430 $RM -r conftest 2>/dev/null
8431 mkdir conftest
8432 cd conftest
8433 mkdir out
8434 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8435
8436 lt_compiler_flag="-o out/conftest2.$ac_objext"
8437 # Insert the option either (1) after the last *FLAGS variable, or
8438 # (2) before a word containing "conftest.", or (3) at the end.
8439 # Note that $ac_compile itself does not contain backslashes and begins
8440 # with a dollar sign (not a hyphen), so the echo should work correctly.
8441 lt_compile=`echo "$ac_compile" | $SED \
8442 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8443 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8444 -e 's:$: $lt_compiler_flag:'`
8445 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8446 (eval "$lt_compile" 2>out/conftest.err)
8447 ac_status=$?
8448 cat out/conftest.err >&5
8449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8450 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8451 then
8452 # The compiler can only warn and ignore the option if not recognized
8453 # So say no if there are warnings
8454 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8455 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8456 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8457 lt_cv_prog_compiler_c_o=yes
8458 fi
8459 fi
8460 chmod u+w . 2>&5
8461 $RM conftest*
8462 # SGI C++ compiler will create directory out/ii_files/ for
8463 # template instantiation
8464 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8465 $RM out/* && rmdir out
8466 cd ..
8467 $RM -r conftest
8468 $RM conftest*
8469
8470 fi
8471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8472 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8473
8474
8475
8476
8477
8478
8479 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8480 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8481 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
8482 $as_echo_n "(cached) " >&6
8483 else
8484 lt_cv_prog_compiler_c_o=no
8485 $RM -r conftest 2>/dev/null
8486 mkdir conftest
8487 cd conftest
8488 mkdir out
8489 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8490
8491 lt_compiler_flag="-o out/conftest2.$ac_objext"
8492 # Insert the option either (1) after the last *FLAGS variable, or
8493 # (2) before a word containing "conftest.", or (3) at the end.
8494 # Note that $ac_compile itself does not contain backslashes and begins
8495 # with a dollar sign (not a hyphen), so the echo should work correctly.
8496 lt_compile=`echo "$ac_compile" | $SED \
8497 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8498 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8499 -e 's:$: $lt_compiler_flag:'`
8500 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8501 (eval "$lt_compile" 2>out/conftest.err)
8502 ac_status=$?
8503 cat out/conftest.err >&5
8504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8505 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8506 then
8507 # The compiler can only warn and ignore the option if not recognized
8508 # So say no if there are warnings
8509 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8510 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8511 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8512 lt_cv_prog_compiler_c_o=yes
8513 fi
8514 fi
8515 chmod u+w . 2>&5
8516 $RM conftest*
8517 # SGI C++ compiler will create directory out/ii_files/ for
8518 # template instantiation
8519 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8520 $RM out/* && rmdir out
8521 cd ..
8522 $RM -r conftest
8523 $RM conftest*
8524
8525 fi
8526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8527 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8528
8529
8530
8531
8532 hard_links="nottested"
8533 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8534 # do not overwrite the value of need_locks provided by the user
8535 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
8536 $as_echo_n "checking if we can lock with hard links... " >&6; }
8537 hard_links=yes
8538 $RM conftest*
8539 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8540 touch conftest.a
8541 ln conftest.a conftest.b 2>&5 || hard_links=no
8542 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
8544 $as_echo "$hard_links" >&6; }
8545 if test "$hard_links" = no; then
8546 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8547 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8548 need_locks=warn
8549 fi
8550 else
8551 need_locks=no
8552 fi
8553
8554
8555
8556
8557
8558
8559 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8560 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
8561
8562 runpath_var=
8563 allow_undefined_flag=
8564 always_export_symbols=no
8565 archive_cmds=
8566 archive_expsym_cmds=
8567 compiler_needs_object=no
8568 enable_shared_with_static_runtimes=no
8569 export_dynamic_flag_spec=
8570 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8571 hardcode_automatic=no
8572 hardcode_direct=no
8573 hardcode_direct_absolute=no
8574 hardcode_libdir_flag_spec=
8575 hardcode_libdir_flag_spec_ld=
8576 hardcode_libdir_separator=
8577 hardcode_minus_L=no
8578 hardcode_shlibpath_var=unsupported
8579 inherit_rpath=no
8580 link_all_deplibs=unknown
8581 module_cmds=
8582 module_expsym_cmds=
8583 old_archive_from_new_cmds=
8584 old_archive_from_expsyms_cmds=
8585 thread_safe_flag_spec=
8586 whole_archive_flag_spec=
8587 # include_expsyms should be a list of space-separated symbols to be *always*
8588 # included in the symbol list
8589 include_expsyms=
8590 # exclude_expsyms can be an extended regexp of symbols to exclude
8591 # it will be wrapped by ` (' and `)$', so one must not match beginning or
8592 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8593 # as well as any symbol that contains `d'.
8594 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
8595 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8596 # platforms (ab)use it in PIC code, but their linkers get confused if
8597 # the symbol is explicitly referenced. Since portable code cannot
8598 # rely on this symbol name, it's probably fine to never include it in
8599 # preloaded symbol tables.
8600 # Exclude shared library initialization/finalization symbols.
8601 extract_expsyms_cmds=
8602
8603 case $host_os in
8604 cygwin* | mingw* | pw32* | cegcc*)
8605 # FIXME: the MSVC++ port hasn't been tested in a loooong time
8606 # When not using gcc, we currently assume that we are using
8607 # Microsoft Visual C++.
8608 if test "$GCC" != yes; then
8609 with_gnu_ld=no
8610 fi
8611 ;;
8612 interix*)
8613 # we just hope/assume this is gcc and not c89 (= MSVC++)
8614 with_gnu_ld=yes
8615 ;;
8616 openbsd*)
8617 with_gnu_ld=no
8618 ;;
8619 esac
8620
8621 ld_shlibs=yes
8622
8623 # On some targets, GNU ld is compatible enough with the native linker
8624 # that we're better off using the native interface for both.
8625 lt_use_gnu_ld_interface=no
8626 if test "$with_gnu_ld" = yes; then
8627 case $host_os in
8628 aix*)
8629 # The AIX port of GNU ld has always aspired to compatibility
8630 # with the native linker. However, as the warning in the GNU ld
8631 # block says, versions before 2.19.5* couldn't really create working
8632 # shared libraries, regardless of the interface used.
8633 case `$LD -v 2>&1` in
8634 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
8635 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
8636 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
8637 *)
8638 lt_use_gnu_ld_interface=yes
8639 ;;
8640 esac
8641 ;;
8642 *)
8643 lt_use_gnu_ld_interface=yes
8644 ;;
8645 esac
8646 fi
8647
8648 if test "$lt_use_gnu_ld_interface" = yes; then
8649 # If archive_cmds runs LD, not CC, wlarc should be empty
8650 wlarc='${wl}'
8651
8652 # Set some defaults for GNU ld with shared library support. These
8653 # are reset later if shared libraries are not supported. Putting them
8654 # here allows them to be overridden if necessary.
8655 runpath_var=LD_RUN_PATH
8656 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8657 export_dynamic_flag_spec='${wl}--export-dynamic'
8658 # ancient GNU ld didn't support --whole-archive et. al.
8659 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
8660 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8661 else
8662 whole_archive_flag_spec=
8663 fi
8664 supports_anon_versioning=no
8665 case `$LD -v 2>&1` in
8666 *GNU\ gold*) supports_anon_versioning=yes ;;
8667 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8668 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8669 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8670 *\ 2.11.*) ;; # other 2.11 versions
8671 *) supports_anon_versioning=yes ;;
8672 esac
8673
8674 # See if GNU ld supports shared libraries.
8675 case $host_os in
8676 aix[3-9]*)
8677 # On AIX/PPC, the GNU linker is very broken
8678 if test "$host_cpu" != ia64; then
8679 ld_shlibs=no
8680 cat <<_LT_EOF 1>&2
8681
8682 *** Warning: the GNU linker, at least up to release 2.19, is reported
8683 *** to be unable to reliably create shared libraries on AIX.
8684 *** Therefore, libtool is disabling shared libraries support. If you
8685 *** really care for shared libraries, you may want to install binutils
8686 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
8687 *** You will then need to restart the configuration process.
8688
8689 _LT_EOF
8690 fi
8691 ;;
8692
8693 amigaos*)
8694 case $host_cpu in
8695 powerpc)
8696 # see comment about AmigaOS4 .so support
8697 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8698 archive_expsym_cmds=''
8699 ;;
8700 m68k)
8701 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)'
8702 hardcode_libdir_flag_spec='-L$libdir'
8703 hardcode_minus_L=yes
8704 ;;
8705 esac
8706 ;;
8707
8708 beos*)
8709 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8710 allow_undefined_flag=unsupported
8711 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8712 # support --undefined. This deserves some investigation. FIXME
8713 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8714 else
8715 ld_shlibs=no
8716 fi
8717 ;;
8718
8719 cygwin* | mingw* | pw32* | cegcc*)
8720 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8721 # as there is no search path for DLLs.
8722 hardcode_libdir_flag_spec='-L$libdir'
8723 export_dynamic_flag_spec='${wl}--export-all-symbols'
8724 allow_undefined_flag=unsupported
8725 always_export_symbols=no
8726 enable_shared_with_static_runtimes=yes
8727 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
8728
8729 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
8730 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8731 # If the export-symbols file already is a .def file (1st line
8732 # is EXPORTS), use it as is; otherwise, prepend...
8733 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8734 cp $export_symbols $output_objdir/$soname.def;
8735 else
8736 echo EXPORTS > $output_objdir/$soname.def;
8737 cat $export_symbols >> $output_objdir/$soname.def;
8738 fi~
8739 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8740 else
8741 ld_shlibs=no
8742 fi
8743 ;;
8744
8745 haiku*)
8746 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8747 link_all_deplibs=yes
8748 ;;
8749
8750 interix[3-9]*)
8751 hardcode_direct=no
8752 hardcode_shlibpath_var=no
8753 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8754 export_dynamic_flag_spec='${wl}-E'
8755 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8756 # Instead, shared libraries are loaded at an image base (0x10000000 by
8757 # default) and relocated if they conflict, which is a slow very memory
8758 # consuming and fragmenting process. To avoid this, we pick a random,
8759 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8760 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
8761 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8762 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'
8763 ;;
8764
8765 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
8766 tmp_diet=no
8767 if test "$host_os" = linux-dietlibc; then
8768 case $cc_basename in
8769 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
8770 esac
8771 fi
8772 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
8773 && test "$tmp_diet" = no
8774 then
8775 tmp_addflag=' $pic_flag'
8776 tmp_sharedflag='-shared'
8777 case $cc_basename,$host_cpu in
8778 pgcc*) # Portland Group C compiler
8779 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'
8780 tmp_addflag=' $pic_flag'
8781 ;;
8782 pgf77* | pgf90* | pgf95* | pgfortran*)
8783 # Portland Group f77 and f90 compilers
8784 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'
8785 tmp_addflag=' $pic_flag -Mnomain' ;;
8786 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
8787 tmp_addflag=' -i_dynamic' ;;
8788 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
8789 tmp_addflag=' -i_dynamic -nofor_main' ;;
8790 ifc* | ifort*) # Intel Fortran compiler
8791 tmp_addflag=' -nofor_main' ;;
8792 lf95*) # Lahey Fortran 8.1
8793 whole_archive_flag_spec=
8794 tmp_sharedflag='--shared' ;;
8795 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
8796 tmp_sharedflag='-qmkshrobj'
8797 tmp_addflag= ;;
8798 nvcc*) # Cuda Compiler Driver 2.2
8799 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'
8800 compiler_needs_object=yes
8801 ;;
8802 esac
8803 case `$CC -V 2>&1 | sed 5q` in
8804 *Sun\ C*) # Sun C 5.9
8805 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'
8806 compiler_needs_object=yes
8807 tmp_sharedflag='-G' ;;
8808 *Sun\ F*) # Sun Fortran 8.3
8809 tmp_sharedflag='-G' ;;
8810 esac
8811 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8812
8813 if test "x$supports_anon_versioning" = xyes; then
8814 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8815 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8816 echo "local: *; };" >> $output_objdir/$libname.ver~
8817 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8818 fi
8819
8820 case $cc_basename in
8821 xlf* | bgf* | bgxlf* | mpixlf*)
8822 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
8823 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
8824 hardcode_libdir_flag_spec=
8825 hardcode_libdir_flag_spec_ld='-rpath $libdir'
8826 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
8827 if test "x$supports_anon_versioning" = xyes; then
8828 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8829 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8830 echo "local: *; };" >> $output_objdir/$libname.ver~
8831 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
8832 fi
8833 ;;
8834 esac
8835 else
8836 ld_shlibs=no
8837 fi
8838 ;;
8839
8840 netbsd*)
8841 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8842 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8843 wlarc=
8844 else
8845 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8846 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8847 fi
8848 ;;
8849
8850 solaris*)
8851 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
8852 ld_shlibs=no
8853 cat <<_LT_EOF 1>&2
8854
8855 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
8856 *** create shared libraries on Solaris systems. Therefore, libtool
8857 *** is disabling shared libraries support. We urge you to upgrade GNU
8858 *** binutils to release 2.9.1 or newer. Another option is to modify
8859 *** your PATH or compiler configuration so that the native linker is
8860 *** used, and then restart.
8861
8862 _LT_EOF
8863 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8864 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8865 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8866 else
8867 ld_shlibs=no
8868 fi
8869 ;;
8870
8871 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8872 case `$LD -v 2>&1` in
8873 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8874 ld_shlibs=no
8875 cat <<_LT_EOF 1>&2
8876
8877 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8878 *** reliably create shared libraries on SCO systems. Therefore, libtool
8879 *** is disabling shared libraries support. We urge you to upgrade GNU
8880 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
8881 *** your PATH or compiler configuration so that the native linker is
8882 *** used, and then restart.
8883
8884 _LT_EOF
8885 ;;
8886 *)
8887 # For security reasons, it is highly recommended that you always
8888 # use absolute paths for naming shared libraries, and exclude the
8889 # DT_RUNPATH tag from executables and libraries. But doing so
8890 # requires that you compile everything twice, which is a pain.
8891 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8892 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8893 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8894 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8895 else
8896 ld_shlibs=no
8897 fi
8898 ;;
8899 esac
8900 ;;
8901
8902 sunos4*)
8903 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8904 wlarc=
8905 hardcode_direct=yes
8906 hardcode_shlibpath_var=no
8907 ;;
8908
8909 *)
8910 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8911 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8912 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8913 else
8914 ld_shlibs=no
8915 fi
8916 ;;
8917 esac
8918
8919 if test "$ld_shlibs" = no; then
8920 runpath_var=
8921 hardcode_libdir_flag_spec=
8922 export_dynamic_flag_spec=
8923 whole_archive_flag_spec=
8924 fi
8925 else
8926 # PORTME fill in a description of your system's linker (not GNU ld)
8927 case $host_os in
8928 aix3*)
8929 allow_undefined_flag=unsupported
8930 always_export_symbols=yes
8931 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'
8932 # Note: this linker hardcodes the directories in LIBPATH if there
8933 # are no directories specified by -L.
8934 hardcode_minus_L=yes
8935 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
8936 # Neither direct hardcoding nor static linking is supported with a
8937 # broken collect2.
8938 hardcode_direct=unsupported
8939 fi
8940 ;;
8941
8942 aix[4-9]*)
8943 if test "$host_cpu" = ia64; then
8944 # On IA64, the linker does run time linking by default, so we don't
8945 # have to do anything special.
8946 aix_use_runtimelinking=no
8947 exp_sym_flag='-Bexport'
8948 no_entry_flag=""
8949 else
8950 # If we're using GNU nm, then we don't want the "-C" option.
8951 # -C means demangle to AIX nm, but means don't demangle with GNU nm
8952 # Also, AIX nm treats weak defined symbols like other global
8953 # defined symbols, whereas GNU nm marks them as "W".
8954 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
8955 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'
8956 else
8957 export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "L")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
8958 fi
8959 aix_use_runtimelinking=no
8960
8961 # Test if we are trying to use run time linking or normal
8962 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
8963 # need to do runtime linking.
8964 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
8965 for ld_flag in $LDFLAGS; do
8966 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8967 aix_use_runtimelinking=yes
8968 break
8969 fi
8970 done
8971 ;;
8972 esac
8973
8974 exp_sym_flag='-bexport'
8975 no_entry_flag='-bnoentry'
8976 fi
8977
8978 # When large executables or shared objects are built, AIX ld can
8979 # have problems creating the table of contents. If linking a library
8980 # or program results in "error TOC overflow" add -mminimal-toc to
8981 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
8982 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8983
8984 archive_cmds=''
8985 hardcode_direct=yes
8986 hardcode_direct_absolute=yes
8987 hardcode_libdir_separator=':'
8988 link_all_deplibs=yes
8989 file_list_spec='${wl}-f,'
8990
8991 if test "$GCC" = yes; then
8992 case $host_os in aix4.[012]|aix4.[012].*)
8993 # We only want to do this on AIX 4.2 and lower, the check
8994 # below for broken collect2 doesn't work under 4.3+
8995 collect2name=`${CC} -print-prog-name=collect2`
8996 if test -f "$collect2name" &&
8997 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
8998 then
8999 # We have reworked collect2
9000 :
9001 else
9002 # We have old collect2
9003 hardcode_direct=unsupported
9004 # It fails to find uninstalled libraries when the uninstalled
9005 # path is not listed in the libpath. Setting hardcode_minus_L
9006 # to unsupported forces relinking
9007 hardcode_minus_L=yes
9008 hardcode_libdir_flag_spec='-L$libdir'
9009 hardcode_libdir_separator=
9010 fi
9011 ;;
9012 esac
9013 shared_flag='-shared'
9014 if test "$aix_use_runtimelinking" = yes; then
9015 shared_flag="$shared_flag "'${wl}-G'
9016 fi
9017 else
9018 # not using gcc
9019 if test "$host_cpu" = ia64; then
9020 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9021 # chokes on -Wl,-G. The following line is correct:
9022 shared_flag='-G'
9023 else
9024 if test "$aix_use_runtimelinking" = yes; then
9025 shared_flag='${wl}-G'
9026 else
9027 shared_flag='${wl}-bM:SRE'
9028 fi
9029 fi
9030 fi
9031
9032 export_dynamic_flag_spec='${wl}-bexpall'
9033 # It seems that -bexpall does not export symbols beginning with
9034 # underscore (_), so it is better to generate a list of symbols to export.
9035 always_export_symbols=yes
9036 if test "$aix_use_runtimelinking" = yes; then
9037 # Warning - without using the other runtime loading flags (-brtl),
9038 # -berok will link without error, but may produce a broken library.
9039 allow_undefined_flag='-berok'
9040 # Determine the default libpath from the value encoded in an
9041 # empty executable.
9042 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9043 /* end confdefs.h. */
9044
9045 int
9046 main ()
9047 {
9048
9049 ;
9050 return 0;
9051 }
9052 _ACEOF
9053 if ac_fn_c_try_link "$LINENO"; then :
9054
9055 lt_aix_libpath_sed='
9056 /Import File Strings/,/^$/ {
9057 /^0/ {
9058 s/^0 *\(.*\)$/\1/
9059 p
9060 }
9061 }'
9062 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9063 # Check for a 64-bit object if we didn't find anything.
9064 if test -z "$aix_libpath"; then
9065 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9066 fi
9067 fi
9068 rm -f core conftest.err conftest.$ac_objext \
9069 conftest$ac_exeext conftest.$ac_ext
9070 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9071
9072 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9073 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"
9074 else
9075 if test "$host_cpu" = ia64; then
9076 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9077 allow_undefined_flag="-z nodefs"
9078 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"
9079 else
9080 # Determine the default libpath from the value encoded in an
9081 # empty executable.
9082 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9083 /* end confdefs.h. */
9084
9085 int
9086 main ()
9087 {
9088
9089 ;
9090 return 0;
9091 }
9092 _ACEOF
9093 if ac_fn_c_try_link "$LINENO"; then :
9094
9095 lt_aix_libpath_sed='
9096 /Import File Strings/,/^$/ {
9097 /^0/ {
9098 s/^0 *\(.*\)$/\1/
9099 p
9100 }
9101 }'
9102 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9103 # Check for a 64-bit object if we didn't find anything.
9104 if test -z "$aix_libpath"; then
9105 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9106 fi
9107 fi
9108 rm -f core conftest.err conftest.$ac_objext \
9109 conftest$ac_exeext conftest.$ac_ext
9110 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9111
9112 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9113 # Warning - without using the other run time loading flags,
9114 # -berok will link without error, but may produce a broken library.
9115 no_undefined_flag=' ${wl}-bernotok'
9116 allow_undefined_flag=' ${wl}-berok'
9117 if test "$with_gnu_ld" = yes; then
9118 # We only use this code for GNU lds that support --whole-archive.
9119 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
9120 else
9121 # Exported symbols can be pulled into shared objects from archives
9122 whole_archive_flag_spec='$convenience'
9123 fi
9124 archive_cmds_need_lc=yes
9125 # This is similar to how AIX traditionally builds its shared libraries.
9126 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'
9127 fi
9128 fi
9129 ;;
9130
9131 amigaos*)
9132 case $host_cpu in
9133 powerpc)
9134 # see comment about AmigaOS4 .so support
9135 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9136 archive_expsym_cmds=''
9137 ;;
9138 m68k)
9139 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)'
9140 hardcode_libdir_flag_spec='-L$libdir'
9141 hardcode_minus_L=yes
9142 ;;
9143 esac
9144 ;;
9145
9146 bsdi[45]*)
9147 export_dynamic_flag_spec=-rdynamic
9148 ;;
9149
9150 cygwin* | mingw* | pw32* | cegcc*)
9151 # When not using gcc, we currently assume that we are using
9152 # Microsoft Visual C++.
9153 # hardcode_libdir_flag_spec is actually meaningless, as there is
9154 # no search path for DLLs.
9155 hardcode_libdir_flag_spec=' '
9156 allow_undefined_flag=unsupported
9157 # Tell ltmain to make .lib files, not .a files.
9158 libext=lib
9159 # Tell ltmain to make .dll files, not .so files.
9160 shrext_cmds=".dll"
9161 # FIXME: Setting linknames here is a bad hack.
9162 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
9163 # The linker will automatically build a .lib file if we build a DLL.
9164 old_archive_from_new_cmds='true'
9165 # FIXME: Should let the user specify the lib program.
9166 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9167 fix_srcfile_path='`cygpath -w "$srcfile"`'
9168 enable_shared_with_static_runtimes=yes
9169 ;;
9170
9171 darwin* | rhapsody*)
9172
9173
9174 archive_cmds_need_lc=no
9175 hardcode_direct=no
9176 hardcode_automatic=yes
9177 hardcode_shlibpath_var=unsupported
9178 if test "$lt_cv_ld_force_load" = "yes"; then
9179 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\"`'
9180 else
9181 whole_archive_flag_spec=''
9182 fi
9183 link_all_deplibs=yes
9184 allow_undefined_flag="$_lt_dar_allow_undefined"
9185 case $cc_basename in
9186 ifort*) _lt_dar_can_shared=yes ;;
9187 *) _lt_dar_can_shared=$GCC ;;
9188 esac
9189 if test "$_lt_dar_can_shared" = "yes"; then
9190 output_verbose_link_cmd=func_echo_all
9191 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9192 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9193 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}"
9194 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}"
9195
9196 else
9197 ld_shlibs=no
9198 fi
9199
9200 ;;
9201
9202 dgux*)
9203 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9204 hardcode_libdir_flag_spec='-L$libdir'
9205 hardcode_shlibpath_var=no
9206 ;;
9207
9208 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9209 # support. Future versions do this automatically, but an explicit c++rt0.o
9210 # does not break anything, and helps significantly (at the cost of a little
9211 # extra space).
9212 freebsd2.2*)
9213 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9214 hardcode_libdir_flag_spec='-R$libdir'
9215 hardcode_direct=yes
9216 hardcode_shlibpath_var=no
9217 ;;
9218
9219 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9220 freebsd2.*)
9221 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9222 hardcode_direct=yes
9223 hardcode_minus_L=yes
9224 hardcode_shlibpath_var=no
9225 ;;
9226
9227 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9228 freebsd* | dragonfly*)
9229 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
9230 hardcode_libdir_flag_spec='-R$libdir'
9231 hardcode_direct=yes
9232 hardcode_shlibpath_var=no
9233 ;;
9234
9235 hpux9*)
9236 if test "$GCC" = yes; then
9237 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'
9238 else
9239 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'
9240 fi
9241 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9242 hardcode_libdir_separator=:
9243 hardcode_direct=yes
9244
9245 # hardcode_minus_L: Not really in the search PATH,
9246 # but as the default location of the library.
9247 hardcode_minus_L=yes
9248 export_dynamic_flag_spec='${wl}-E'
9249 ;;
9250
9251 hpux10*)
9252 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9253 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9254 else
9255 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9256 fi
9257 if test "$with_gnu_ld" = no; then
9258 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9259 hardcode_libdir_flag_spec_ld='+b $libdir'
9260 hardcode_libdir_separator=:
9261 hardcode_direct=yes
9262 hardcode_direct_absolute=yes
9263 export_dynamic_flag_spec='${wl}-E'
9264 # hardcode_minus_L: Not really in the search PATH,
9265 # but as the default location of the library.
9266 hardcode_minus_L=yes
9267 fi
9268 ;;
9269
9270 hpux11*)
9271 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9272 case $host_cpu in
9273 hppa*64*)
9274 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9275 ;;
9276 ia64*)
9277 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9278 ;;
9279 *)
9280 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9281 ;;
9282 esac
9283 else
9284 case $host_cpu in
9285 hppa*64*)
9286 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9287 ;;
9288 ia64*)
9289 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9290 ;;
9291 *)
9292
9293 # Older versions of the 11.00 compiler do not understand -b yet
9294 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
9295 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
9296 $as_echo_n "checking if $CC understands -b... " >&6; }
9297 if test "${lt_cv_prog_compiler__b+set}" = set; then :
9298 $as_echo_n "(cached) " >&6
9299 else
9300 lt_cv_prog_compiler__b=no
9301 save_LDFLAGS="$LDFLAGS"
9302 LDFLAGS="$LDFLAGS -b"
9303 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9304 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9305 # The linker can only warn and ignore the option if not recognized
9306 # So say no if there are warnings
9307 if test -s conftest.err; then
9308 # Append any errors to the config.log.
9309 cat conftest.err 1>&5
9310 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9311 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9312 if diff conftest.exp conftest.er2 >/dev/null; then
9313 lt_cv_prog_compiler__b=yes
9314 fi
9315 else
9316 lt_cv_prog_compiler__b=yes
9317 fi
9318 fi
9319 $RM -r conftest*
9320 LDFLAGS="$save_LDFLAGS"
9321
9322 fi
9323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
9324 $as_echo "$lt_cv_prog_compiler__b" >&6; }
9325
9326 if test x"$lt_cv_prog_compiler__b" = xyes; then
9327 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9328 else
9329 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9330 fi
9331
9332 ;;
9333 esac
9334 fi
9335 if test "$with_gnu_ld" = no; then
9336 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9337 hardcode_libdir_separator=:
9338
9339 case $host_cpu in
9340 hppa*64*|ia64*)
9341 hardcode_direct=no
9342 hardcode_shlibpath_var=no
9343 ;;
9344 *)
9345 hardcode_direct=yes
9346 hardcode_direct_absolute=yes
9347 export_dynamic_flag_spec='${wl}-E'
9348
9349 # hardcode_minus_L: Not really in the search PATH,
9350 # but as the default location of the library.
9351 hardcode_minus_L=yes
9352 ;;
9353 esac
9354 fi
9355 ;;
9356
9357 irix5* | irix6* | nonstopux*)
9358 if test "$GCC" = yes; then
9359 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'
9360 # Try to use the -exported_symbol ld option, if it does not
9361 # work, assume that -exports_file does not work either and
9362 # implicitly export all symbols.
9363 save_LDFLAGS="$LDFLAGS"
9364 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
9365 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9366 /* end confdefs.h. */
9367 int foo(void) {}
9368 _ACEOF
9369 if ac_fn_c_try_link "$LINENO"; then :
9370 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'
9371
9372 fi
9373 rm -f core conftest.err conftest.$ac_objext \
9374 conftest$ac_exeext conftest.$ac_ext
9375 LDFLAGS="$save_LDFLAGS"
9376 else
9377 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'
9378 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'
9379 fi
9380 archive_cmds_need_lc='no'
9381 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9382 hardcode_libdir_separator=:
9383 inherit_rpath=yes
9384 link_all_deplibs=yes
9385 ;;
9386
9387 netbsd*)
9388 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9389 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
9390 else
9391 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
9392 fi
9393 hardcode_libdir_flag_spec='-R$libdir'
9394 hardcode_direct=yes
9395 hardcode_shlibpath_var=no
9396 ;;
9397
9398 newsos6)
9399 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9400 hardcode_direct=yes
9401 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9402 hardcode_libdir_separator=:
9403 hardcode_shlibpath_var=no
9404 ;;
9405
9406 *nto* | *qnx*)
9407 ;;
9408
9409 openbsd*)
9410 if test -f /usr/libexec/ld.so; then
9411 hardcode_direct=yes
9412 hardcode_shlibpath_var=no
9413 hardcode_direct_absolute=yes
9414 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9415 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9416 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9417 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9418 export_dynamic_flag_spec='${wl}-E'
9419 else
9420 case $host_os in
9421 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9422 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9423 hardcode_libdir_flag_spec='-R$libdir'
9424 ;;
9425 *)
9426 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9427 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9428 ;;
9429 esac
9430 fi
9431 else
9432 ld_shlibs=no
9433 fi
9434 ;;
9435
9436 os2*)
9437 hardcode_libdir_flag_spec='-L$libdir'
9438 hardcode_minus_L=yes
9439 allow_undefined_flag=unsupported
9440 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'
9441 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9442 ;;
9443
9444 osf3*)
9445 if test "$GCC" = yes; then
9446 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9447 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'
9448 else
9449 allow_undefined_flag=' -expect_unresolved \*'
9450 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'
9451 fi
9452 archive_cmds_need_lc='no'
9453 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9454 hardcode_libdir_separator=:
9455 ;;
9456
9457 osf4* | osf5*) # as osf3* with the addition of -msym flag
9458 if test "$GCC" = yes; then
9459 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9460 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'
9461 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9462 else
9463 allow_undefined_flag=' -expect_unresolved \*'
9464 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'
9465 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~
9466 $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'
9467
9468 # Both c and cxx compiler support -rpath directly
9469 hardcode_libdir_flag_spec='-rpath $libdir'
9470 fi
9471 archive_cmds_need_lc='no'
9472 hardcode_libdir_separator=:
9473 ;;
9474
9475 solaris*)
9476 no_undefined_flag=' -z defs'
9477 if test "$GCC" = yes; then
9478 wlarc='${wl}'
9479 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9480 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9481 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9482 else
9483 case `$CC -V 2>&1` in
9484 *"Compilers 5.0"*)
9485 wlarc=''
9486 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9487 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9488 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
9489 ;;
9490 *)
9491 wlarc='${wl}'
9492 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
9493 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9494 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9495 ;;
9496 esac
9497 fi
9498 hardcode_libdir_flag_spec='-R$libdir'
9499 hardcode_shlibpath_var=no
9500 case $host_os in
9501 solaris2.[0-5] | solaris2.[0-5].*) ;;
9502 *)
9503 # The compiler driver will combine and reorder linker options,
9504 # but understands `-z linker_flag'. GCC discards it without `$wl',
9505 # but is careful enough not to reorder.
9506 # Supported since Solaris 2.6 (maybe 2.5.1?)
9507 if test "$GCC" = yes; then
9508 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9509 else
9510 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
9511 fi
9512 ;;
9513 esac
9514 link_all_deplibs=yes
9515 ;;
9516
9517 sunos4*)
9518 if test "x$host_vendor" = xsequent; then
9519 # Use $CC to link under sequent, because it throws in some extra .o
9520 # files that make .init and .fini sections work.
9521 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9522 else
9523 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9524 fi
9525 hardcode_libdir_flag_spec='-L$libdir'
9526 hardcode_direct=yes
9527 hardcode_minus_L=yes
9528 hardcode_shlibpath_var=no
9529 ;;
9530
9531 sysv4)
9532 case $host_vendor in
9533 sni)
9534 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9535 hardcode_direct=yes # is this really true???
9536 ;;
9537 siemens)
9538 ## LD is ld it makes a PLAMLIB
9539 ## CC just makes a GrossModule.
9540 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9541 reload_cmds='$CC -r -o $output$reload_objs'
9542 hardcode_direct=no
9543 ;;
9544 motorola)
9545 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9546 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9547 ;;
9548 esac
9549 runpath_var='LD_RUN_PATH'
9550 hardcode_shlibpath_var=no
9551 ;;
9552
9553 sysv4.3*)
9554 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9555 hardcode_shlibpath_var=no
9556 export_dynamic_flag_spec='-Bexport'
9557 ;;
9558
9559 sysv4*MP*)
9560 if test -d /usr/nec; then
9561 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9562 hardcode_shlibpath_var=no
9563 runpath_var=LD_RUN_PATH
9564 hardcode_runpath_var=yes
9565 ld_shlibs=yes
9566 fi
9567 ;;
9568
9569 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
9570 no_undefined_flag='${wl}-z,text'
9571 archive_cmds_need_lc=no
9572 hardcode_shlibpath_var=no
9573 runpath_var='LD_RUN_PATH'
9574
9575 if test "$GCC" = yes; then
9576 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9577 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9578 else
9579 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9580 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9581 fi
9582 ;;
9583
9584 sysv5* | sco3.2v5* | sco5v6*)
9585 # Note: We can NOT use -z defs as we might desire, because we do not
9586 # link with -lc, and that would cause any symbols used from libc to
9587 # always be unresolved, which means just about no library would
9588 # ever link correctly. If we're not using GNU ld we use -z text
9589 # though, which does catch some bad symbols but isn't as heavy-handed
9590 # as -z defs.
9591 no_undefined_flag='${wl}-z,text'
9592 allow_undefined_flag='${wl}-z,nodefs'
9593 archive_cmds_need_lc=no
9594 hardcode_shlibpath_var=no
9595 hardcode_libdir_flag_spec='${wl}-R,$libdir'
9596 hardcode_libdir_separator=':'
9597 link_all_deplibs=yes
9598 export_dynamic_flag_spec='${wl}-Bexport'
9599 runpath_var='LD_RUN_PATH'
9600
9601 if test "$GCC" = yes; then
9602 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9603 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9604 else
9605 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9606 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9607 fi
9608 ;;
9609
9610 uts4*)
9611 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9612 hardcode_libdir_flag_spec='-L$libdir'
9613 hardcode_shlibpath_var=no
9614 ;;
9615
9616 *)
9617 ld_shlibs=no
9618 ;;
9619 esac
9620
9621 if test x$host_vendor = xsni; then
9622 case $host in
9623 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
9624 export_dynamic_flag_spec='${wl}-Blargedynsym'
9625 ;;
9626 esac
9627 fi
9628 fi
9629
9630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
9631 $as_echo "$ld_shlibs" >&6; }
9632 test "$ld_shlibs" = no && can_build_shared=no
9633
9634 with_gnu_ld=$with_gnu_ld
9635
9636
9637
9638
9639
9640
9641
9642
9643
9644
9645
9646
9647
9648
9649
9650 #
9651 # Do we need to explicitly link libc?
9652 #
9653 case "x$archive_cmds_need_lc" in
9654 x|xyes)
9655 # Assume -lc should be added
9656 archive_cmds_need_lc=yes
9657
9658 if test "$enable_shared" = yes && test "$GCC" = yes; then
9659 case $archive_cmds in
9660 *'~'*)
9661 # FIXME: we may have to deal with multi-command sequences.
9662 ;;
9663 '$CC '*)
9664 # Test whether the compiler implicitly links with -lc since on some
9665 # systems, -lgcc has to come before -lc. If gcc already passes -lc
9666 # to ld, don't add -lc before -lgcc.
9667 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
9668 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
9669 if test "${lt_cv_archive_cmds_need_lc+set}" = set; then :
9670 $as_echo_n "(cached) " >&6
9671 else
9672 $RM conftest*
9673 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9674
9675 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9676 (eval $ac_compile) 2>&5
9677 ac_status=$?
9678 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9679 test $ac_status = 0; } 2>conftest.err; then
9680 soname=conftest
9681 lib=conftest
9682 libobjs=conftest.$ac_objext
9683 deplibs=
9684 wl=$lt_prog_compiler_wl
9685 pic_flag=$lt_prog_compiler_pic
9686 compiler_flags=-v
9687 linker_flags=-v
9688 verstring=
9689 output_objdir=.
9690 libname=conftest
9691 lt_save_allow_undefined_flag=$allow_undefined_flag
9692 allow_undefined_flag=
9693 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
9694 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
9695 ac_status=$?
9696 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9697 test $ac_status = 0; }
9698 then
9699 lt_cv_archive_cmds_need_lc=no
9700 else
9701 lt_cv_archive_cmds_need_lc=yes
9702 fi
9703 allow_undefined_flag=$lt_save_allow_undefined_flag
9704 else
9705 cat conftest.err 1>&5
9706 fi
9707 $RM conftest*
9708
9709 fi
9710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
9711 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
9712 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
9713 ;;
9714 esac
9715 fi
9716 ;;
9717 esac
9718
9719
9720
9721
9722
9723
9724
9725
9726
9727
9728
9729
9730
9731
9732
9733
9734
9735
9736
9737
9738
9739
9740
9741
9742
9743
9744
9745
9746
9747
9748
9749
9750
9751
9752
9753
9754
9755
9756
9757
9758
9759
9760
9761
9762
9763
9764
9765
9766
9767
9768
9769
9770
9771
9772
9773
9774
9775
9776
9777
9778
9779
9780
9781
9782
9783
9784
9785
9786
9787
9788
9789
9790
9791
9792
9793
9794
9795
9796
9797
9798
9799
9800
9801
9802
9803
9804
9805
9806
9807
9808
9809
9810
9811
9812
9813
9814
9815
9816
9817
9818
9819
9820
9821
9822
9823
9824
9825
9826
9827
9828
9829
9830
9831
9832
9833
9834
9835
9836
9837
9838
9839
9840
9841
9842
9843
9844
9845
9846
9847
9848
9849
9850
9851
9852
9853
9854
9855
9856
9857
9858
9859
9860
9861
9862
9863
9864
9865
9866
9867
9868
9869
9870
9871
9872
9873
9874
9875 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
9876 $as_echo_n "checking dynamic linker characteristics... " >&6; }
9877
9878 if test "$GCC" = yes; then
9879 case $host_os in
9880 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
9881 *) lt_awk_arg="/^libraries:/" ;;
9882 esac
9883 case $host_os in
9884 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
9885 *) lt_sed_strip_eq="s,=/,/,g" ;;
9886 esac
9887 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
9888 case $lt_search_path_spec in
9889 *\;*)
9890 # if the path contains ";" then we assume it to be the separator
9891 # otherwise default to the standard path separator (i.e. ":") - it is
9892 # assumed that no part of a normal pathname contains ";" but that should
9893 # okay in the real world where ";" in dirpaths is itself problematic.
9894 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
9895 ;;
9896 *)
9897 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
9898 ;;
9899 esac
9900 # Ok, now we have the path, separated by spaces, we can step through it
9901 # and add multilib dir if necessary.
9902 lt_tmp_lt_search_path_spec=
9903 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
9904 for lt_sys_path in $lt_search_path_spec; do
9905 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
9906 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
9907 else
9908 test -d "$lt_sys_path" && \
9909 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
9910 fi
9911 done
9912 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
9913 BEGIN {RS=" "; FS="/|\n";} {
9914 lt_foo="";
9915 lt_count=0;
9916 for (lt_i = NF; lt_i > 0; lt_i--) {
9917 if ($lt_i != "" && $lt_i != ".") {
9918 if ($lt_i == "..") {
9919 lt_count++;
9920 } else {
9921 if (lt_count == 0) {
9922 lt_foo="/" $lt_i lt_foo;
9923 } else {
9924 lt_count--;
9925 }
9926 }
9927 }
9928 }
9929 if (lt_foo != "") { lt_freq[lt_foo]++; }
9930 if (lt_freq[lt_foo] == 1) { print lt_foo; }
9931 }'`
9932 # AWK program above erroneously prepends '/' to C:/dos/paths
9933 # for these hosts.
9934 case $host_os in
9935 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
9936 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
9937 esac
9938 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
9939 else
9940 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9941 fi
9942 library_names_spec=
9943 libname_spec='lib$name'
9944 soname_spec=
9945 shrext_cmds=".so"
9946 postinstall_cmds=
9947 postuninstall_cmds=
9948 finish_cmds=
9949 finish_eval=
9950 shlibpath_var=
9951 shlibpath_overrides_runpath=unknown
9952 version_type=none
9953 dynamic_linker="$host_os ld.so"
9954 sys_lib_dlsearch_path_spec="/lib /usr/lib"
9955 need_lib_prefix=unknown
9956 hardcode_into_libs=no
9957
9958 # when you set need_version to no, make sure it does not cause -set_version
9959 # flags to be left without arguments
9960 need_version=unknown
9961
9962 case $host_os in
9963 aix3*)
9964 version_type=linux
9965 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9966 shlibpath_var=LIBPATH
9967
9968 # AIX 3 has no versioning support, so we append a major version to the name.
9969 soname_spec='${libname}${release}${shared_ext}$major'
9970 ;;
9971
9972 aix[4-9]*)
9973 version_type=linux
9974 need_lib_prefix=no
9975 need_version=no
9976 hardcode_into_libs=yes
9977 if test "$host_cpu" = ia64; then
9978 # AIX 5 supports IA64
9979 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9980 shlibpath_var=LD_LIBRARY_PATH
9981 else
9982 # With GCC up to 2.95.x, collect2 would create an import file
9983 # for dependence libraries. The import file would start with
9984 # the line `#! .'. This would cause the generated library to
9985 # depend on `.', always an invalid library. This was fixed in
9986 # development snapshots of GCC prior to 3.0.
9987 case $host_os in
9988 aix4 | aix4.[01] | aix4.[01].*)
9989 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9990 echo ' yes '
9991 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
9992 :
9993 else
9994 can_build_shared=no
9995 fi
9996 ;;
9997 esac
9998 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9999 # soname into executable. Probably we can add versioning support to
10000 # collect2, so additional links can be useful in future.
10001 if test "$aix_use_runtimelinking" = yes; then
10002 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10003 # instead of lib<name>.a to let people know that these are not
10004 # typical AIX shared libraries.
10005 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10006 else
10007 # We preserve .a as extension for shared libraries through AIX4.2
10008 # and later when we are not doing run time linking.
10009 library_names_spec='${libname}${release}.a $libname.a'
10010 soname_spec='${libname}${release}${shared_ext}$major'
10011 fi
10012 shlibpath_var=LIBPATH
10013 fi
10014 ;;
10015
10016 amigaos*)
10017 case $host_cpu in
10018 powerpc)
10019 # Since July 2007 AmigaOS4 officially supports .so libraries.
10020 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10021 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10022 ;;
10023 m68k)
10024 library_names_spec='$libname.ixlibrary $libname.a'
10025 # Create ${libname}_ixlibrary.a entries in /sys/libs.
10026 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'
10027 ;;
10028 esac
10029 ;;
10030
10031 beos*)
10032 library_names_spec='${libname}${shared_ext}'
10033 dynamic_linker="$host_os ld.so"
10034 shlibpath_var=LIBRARY_PATH
10035 ;;
10036
10037 bsdi[45]*)
10038 version_type=linux
10039 need_version=no
10040 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10041 soname_spec='${libname}${release}${shared_ext}$major'
10042 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10043 shlibpath_var=LD_LIBRARY_PATH
10044 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10045 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10046 # the default ld.so.conf also contains /usr/contrib/lib and
10047 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10048 # libtool to hard-code these into programs
10049 ;;
10050
10051 cygwin* | mingw* | pw32* | cegcc*)
10052 version_type=windows
10053 shrext_cmds=".dll"
10054 need_version=no
10055 need_lib_prefix=no
10056
10057 case $GCC,$host_os in
10058 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
10059 library_names_spec='$libname.dll.a'
10060 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10061 postinstall_cmds='base_file=`basename \${file}`~
10062 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10063 dldir=$destdir/`dirname \$dlpath`~
10064 test -d \$dldir || mkdir -p \$dldir~
10065 $install_prog $dir/$dlname \$dldir/$dlname~
10066 chmod a+x \$dldir/$dlname~
10067 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10068 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10069 fi'
10070 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10071 dlpath=$dir/\$dldll~
10072 $RM \$dlpath'
10073 shlibpath_overrides_runpath=yes
10074
10075 case $host_os in
10076 cygwin*)
10077 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10078 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10079
10080 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
10081 ;;
10082 mingw* | cegcc*)
10083 # MinGW DLLs use traditional 'lib' prefix
10084 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10085 ;;
10086 pw32*)
10087 # pw32 DLLs use 'pw' prefix rather than 'lib'
10088 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10089 ;;
10090 esac
10091 ;;
10092
10093 *)
10094 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10095 ;;
10096 esac
10097 dynamic_linker='Win32 ld.exe'
10098 # FIXME: first we should search . and the directory the executable is in
10099 shlibpath_var=PATH
10100 ;;
10101
10102 darwin* | rhapsody*)
10103 dynamic_linker="$host_os dyld"
10104 version_type=darwin
10105 need_lib_prefix=no
10106 need_version=no
10107 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10108 soname_spec='${libname}${release}${major}$shared_ext'
10109 shlibpath_overrides_runpath=yes
10110 shlibpath_var=DYLD_LIBRARY_PATH
10111 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10112
10113 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10114 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10115 ;;
10116
10117 dgux*)
10118 version_type=linux
10119 need_lib_prefix=no
10120 need_version=no
10121 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10122 soname_spec='${libname}${release}${shared_ext}$major'
10123 shlibpath_var=LD_LIBRARY_PATH
10124 ;;
10125
10126 freebsd* | dragonfly*)
10127 # DragonFly does not have aout. When/if they implement a new
10128 # versioning mechanism, adjust this.
10129 if test -x /usr/bin/objformat; then
10130 objformat=`/usr/bin/objformat`
10131 else
10132 case $host_os in
10133 freebsd[23].*) objformat=aout ;;
10134 *) objformat=elf ;;
10135 esac
10136 fi
10137 version_type=freebsd-$objformat
10138 case $version_type in
10139 freebsd-elf*)
10140 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10141 need_version=no
10142 need_lib_prefix=no
10143 ;;
10144 freebsd-*)
10145 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10146 need_version=yes
10147 ;;
10148 esac
10149 shlibpath_var=LD_LIBRARY_PATH
10150 case $host_os in
10151 freebsd2.*)
10152 shlibpath_overrides_runpath=yes
10153 ;;
10154 freebsd3.[01]* | freebsdelf3.[01]*)
10155 shlibpath_overrides_runpath=yes
10156 hardcode_into_libs=yes
10157 ;;
10158 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10159 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10160 shlibpath_overrides_runpath=no
10161 hardcode_into_libs=yes
10162 ;;
10163 *) # from 4.6 on, and DragonFly
10164 shlibpath_overrides_runpath=yes
10165 hardcode_into_libs=yes
10166 ;;
10167 esac
10168 ;;
10169
10170 gnu*)
10171 version_type=linux
10172 need_lib_prefix=no
10173 need_version=no
10174 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10175 soname_spec='${libname}${release}${shared_ext}$major'
10176 shlibpath_var=LD_LIBRARY_PATH
10177 hardcode_into_libs=yes
10178 ;;
10179
10180 haiku*)
10181 version_type=linux
10182 need_lib_prefix=no
10183 need_version=no
10184 dynamic_linker="$host_os runtime_loader"
10185 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10186 soname_spec='${libname}${release}${shared_ext}$major'
10187 shlibpath_var=LIBRARY_PATH
10188 shlibpath_overrides_runpath=yes
10189 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
10190 hardcode_into_libs=yes
10191 ;;
10192
10193 hpux9* | hpux10* | hpux11*)
10194 # Give a soname corresponding to the major version so that dld.sl refuses to
10195 # link against other versions.
10196 version_type=sunos
10197 need_lib_prefix=no
10198 need_version=no
10199 case $host_cpu in
10200 ia64*)
10201 shrext_cmds='.so'
10202 hardcode_into_libs=yes
10203 dynamic_linker="$host_os dld.so"
10204 shlibpath_var=LD_LIBRARY_PATH
10205 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10206 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10207 soname_spec='${libname}${release}${shared_ext}$major'
10208 if test "X$HPUX_IA64_MODE" = X32; then
10209 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10210 else
10211 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10212 fi
10213 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10214 ;;
10215 hppa*64*)
10216 shrext_cmds='.sl'
10217 hardcode_into_libs=yes
10218 dynamic_linker="$host_os dld.sl"
10219 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10220 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10221 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10222 soname_spec='${libname}${release}${shared_ext}$major'
10223 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10224 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10225 ;;
10226 *)
10227 shrext_cmds='.sl'
10228 dynamic_linker="$host_os dld.sl"
10229 shlibpath_var=SHLIB_PATH
10230 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10231 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10232 soname_spec='${libname}${release}${shared_ext}$major'
10233 ;;
10234 esac
10235 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
10236 postinstall_cmds='chmod 555 $lib'
10237 # or fails outright, so override atomically:
10238 install_override_mode=555
10239 ;;
10240
10241 interix[3-9]*)
10242 version_type=linux
10243 need_lib_prefix=no
10244 need_version=no
10245 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10246 soname_spec='${libname}${release}${shared_ext}$major'
10247 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10248 shlibpath_var=LD_LIBRARY_PATH
10249 shlibpath_overrides_runpath=no
10250 hardcode_into_libs=yes
10251 ;;
10252
10253 irix5* | irix6* | nonstopux*)
10254 case $host_os in
10255 nonstopux*) version_type=nonstopux ;;
10256 *)
10257 if test "$lt_cv_prog_gnu_ld" = yes; then
10258 version_type=linux
10259 else
10260 version_type=irix
10261 fi ;;
10262 esac
10263 need_lib_prefix=no
10264 need_version=no
10265 soname_spec='${libname}${release}${shared_ext}$major'
10266 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10267 case $host_os in
10268 irix5* | nonstopux*)
10269 libsuff= shlibsuff=
10270 ;;
10271 *)
10272 case $LD in # libtool.m4 will add one of these switches to LD
10273 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10274 libsuff= shlibsuff= libmagic=32-bit;;
10275 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10276 libsuff=32 shlibsuff=N32 libmagic=N32;;
10277 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10278 libsuff=64 shlibsuff=64 libmagic=64-bit;;
10279 *) libsuff= shlibsuff= libmagic=never-match;;
10280 esac
10281 ;;
10282 esac
10283 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10284 shlibpath_overrides_runpath=no
10285 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10286 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10287 hardcode_into_libs=yes
10288 ;;
10289
10290 # No shared lib support for Linux oldld, aout, or coff.
10291 linux*oldld* | linux*aout* | linux*coff*)
10292 dynamic_linker=no
10293 ;;
10294
10295 # This must be Linux ELF.
10296 linux* | k*bsd*-gnu | kopensolaris*-gnu)
10297 version_type=linux
10298 need_lib_prefix=no
10299 need_version=no
10300 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10301 soname_spec='${libname}${release}${shared_ext}$major'
10302 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10303 shlibpath_var=LD_LIBRARY_PATH
10304 shlibpath_overrides_runpath=no
10305
10306 # Some binutils ld are patched to set DT_RUNPATH
10307 if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
10308 $as_echo_n "(cached) " >&6
10309 else
10310 lt_cv_shlibpath_overrides_runpath=no
10311 save_LDFLAGS=$LDFLAGS
10312 save_libdir=$libdir
10313 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10314 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10315 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10316 /* end confdefs.h. */
10317
10318 int
10319 main ()
10320 {
10321
10322 ;
10323 return 0;
10324 }
10325 _ACEOF
10326 if ac_fn_c_try_link "$LINENO"; then :
10327 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
10328 lt_cv_shlibpath_overrides_runpath=yes
10329 fi
10330 fi
10331 rm -f core conftest.err conftest.$ac_objext \
10332 conftest$ac_exeext conftest.$ac_ext
10333 LDFLAGS=$save_LDFLAGS
10334 libdir=$save_libdir
10335
10336 fi
10337
10338 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
10339
10340 # This implies no fast_install, which is unacceptable.
10341 # Some rework will be needed to allow for fast_install
10342 # before this can be enabled.
10343 hardcode_into_libs=yes
10344
10345 # Append ld.so.conf contents to the search path
10346 if test -f /etc/ld.so.conf; then
10347 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' ' '`
10348 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10349 fi
10350
10351 # We used to test for /lib/ld.so.1 and disable shared libraries on
10352 # powerpc, because MkLinux only supported shared libraries with the
10353 # GNU dynamic linker. Since this was broken with cross compilers,
10354 # most powerpc-linux boxes support dynamic linking these days and
10355 # people can always --disable-shared, the test was removed, and we
10356 # assume the GNU/Linux dynamic linker is in use.
10357 dynamic_linker='GNU/Linux ld.so'
10358 ;;
10359
10360 netbsd*)
10361 version_type=sunos
10362 need_lib_prefix=no
10363 need_version=no
10364 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10365 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10366 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10367 dynamic_linker='NetBSD (a.out) ld.so'
10368 else
10369 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10370 soname_spec='${libname}${release}${shared_ext}$major'
10371 dynamic_linker='NetBSD ld.elf_so'
10372 fi
10373 shlibpath_var=LD_LIBRARY_PATH
10374 shlibpath_overrides_runpath=yes
10375 hardcode_into_libs=yes
10376 ;;
10377
10378 newsos6)
10379 version_type=linux
10380 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10381 shlibpath_var=LD_LIBRARY_PATH
10382 shlibpath_overrides_runpath=yes
10383 ;;
10384
10385 *nto* | *qnx*)
10386 version_type=qnx
10387 need_lib_prefix=no
10388 need_version=no
10389 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10390 soname_spec='${libname}${release}${shared_ext}$major'
10391 shlibpath_var=LD_LIBRARY_PATH
10392 shlibpath_overrides_runpath=no
10393 hardcode_into_libs=yes
10394 dynamic_linker='ldqnx.so'
10395 ;;
10396
10397 openbsd*)
10398 version_type=sunos
10399 sys_lib_dlsearch_path_spec="/usr/lib"
10400 need_lib_prefix=no
10401 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10402 case $host_os in
10403 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
10404 *) need_version=no ;;
10405 esac
10406 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10407 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10408 shlibpath_var=LD_LIBRARY_PATH
10409 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10410 case $host_os in
10411 openbsd2.[89] | openbsd2.[89].*)
10412 shlibpath_overrides_runpath=no
10413 ;;
10414 *)
10415 shlibpath_overrides_runpath=yes
10416 ;;
10417 esac
10418 else
10419 shlibpath_overrides_runpath=yes
10420 fi
10421 ;;
10422
10423 os2*)
10424 libname_spec='$name'
10425 shrext_cmds=".dll"
10426 need_lib_prefix=no
10427 library_names_spec='$libname${shared_ext} $libname.a'
10428 dynamic_linker='OS/2 ld.exe'
10429 shlibpath_var=LIBPATH
10430 ;;
10431
10432 osf3* | osf4* | osf5*)
10433 version_type=osf
10434 need_lib_prefix=no
10435 need_version=no
10436 soname_spec='${libname}${release}${shared_ext}$major'
10437 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10438 shlibpath_var=LD_LIBRARY_PATH
10439 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10440 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10441 ;;
10442
10443 rdos*)
10444 dynamic_linker=no
10445 ;;
10446
10447 solaris*)
10448 version_type=linux
10449 need_lib_prefix=no
10450 need_version=no
10451 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10452 soname_spec='${libname}${release}${shared_ext}$major'
10453 shlibpath_var=LD_LIBRARY_PATH
10454 shlibpath_overrides_runpath=yes
10455 hardcode_into_libs=yes
10456 # ldd complains unless libraries are executable
10457 postinstall_cmds='chmod +x $lib'
10458 ;;
10459
10460 sunos4*)
10461 version_type=sunos
10462 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10463 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10464 shlibpath_var=LD_LIBRARY_PATH
10465 shlibpath_overrides_runpath=yes
10466 if test "$with_gnu_ld" = yes; then
10467 need_lib_prefix=no
10468 fi
10469 need_version=yes
10470 ;;
10471
10472 sysv4 | sysv4.3*)
10473 version_type=linux
10474 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10475 soname_spec='${libname}${release}${shared_ext}$major'
10476 shlibpath_var=LD_LIBRARY_PATH
10477 case $host_vendor in
10478 sni)
10479 shlibpath_overrides_runpath=no
10480 need_lib_prefix=no
10481 runpath_var=LD_RUN_PATH
10482 ;;
10483 siemens)
10484 need_lib_prefix=no
10485 ;;
10486 motorola)
10487 need_lib_prefix=no
10488 need_version=no
10489 shlibpath_overrides_runpath=no
10490 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10491 ;;
10492 esac
10493 ;;
10494
10495 sysv4*MP*)
10496 if test -d /usr/nec ;then
10497 version_type=linux
10498 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10499 soname_spec='$libname${shared_ext}.$major'
10500 shlibpath_var=LD_LIBRARY_PATH
10501 fi
10502 ;;
10503
10504 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10505 version_type=freebsd-elf
10506 need_lib_prefix=no
10507 need_version=no
10508 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10509 soname_spec='${libname}${release}${shared_ext}$major'
10510 shlibpath_var=LD_LIBRARY_PATH
10511 shlibpath_overrides_runpath=yes
10512 hardcode_into_libs=yes
10513 if test "$with_gnu_ld" = yes; then
10514 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10515 else
10516 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10517 case $host_os in
10518 sco3.2v5*)
10519 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10520 ;;
10521 esac
10522 fi
10523 sys_lib_dlsearch_path_spec='/usr/lib'
10524 ;;
10525
10526 tpf*)
10527 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
10528 version_type=linux
10529 need_lib_prefix=no
10530 need_version=no
10531 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10532 shlibpath_var=LD_LIBRARY_PATH
10533 shlibpath_overrides_runpath=no
10534 hardcode_into_libs=yes
10535 ;;
10536
10537 uts4*)
10538 version_type=linux
10539 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10540 soname_spec='${libname}${release}${shared_ext}$major'
10541 shlibpath_var=LD_LIBRARY_PATH
10542 ;;
10543
10544 *)
10545 dynamic_linker=no
10546 ;;
10547 esac
10548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
10549 $as_echo "$dynamic_linker" >&6; }
10550 test "$dynamic_linker" = no && can_build_shared=no
10551
10552 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10553 if test "$GCC" = yes; then
10554 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10555 fi
10556
10557 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
10558 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
10559 fi
10560 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
10561 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
10562 fi
10563
10564
10565
10566
10567
10568
10569
10570
10571
10572
10573
10574
10575
10576
10577
10578
10579
10580
10581
10582
10583
10584
10585
10586
10587
10588
10589
10590
10591
10592
10593
10594
10595
10596
10597
10598
10599
10600
10601
10602
10603
10604
10605
10606
10607
10608
10609
10610
10611
10612
10613
10614
10615
10616
10617
10618
10619
10620
10621
10622
10623
10624
10625
10626
10627
10628
10629
10630
10631
10632
10633
10634
10635
10636
10637
10638
10639
10640
10641
10642
10643
10644
10645
10646
10647
10648
10649
10650
10651
10652
10653
10654
10655 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
10656 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
10657 hardcode_action=
10658 if test -n "$hardcode_libdir_flag_spec" ||
10659 test -n "$runpath_var" ||
10660 test "X$hardcode_automatic" = "Xyes" ; then
10661
10662 # We can hardcode non-existent directories.
10663 if test "$hardcode_direct" != no &&
10664 # If the only mechanism to avoid hardcoding is shlibpath_var, we
10665 # have to relink, otherwise we might link with an installed library
10666 # when we should be linking with a yet-to-be-installed one
10667 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
10668 test "$hardcode_minus_L" != no; then
10669 # Linking always hardcodes the temporary library directory.
10670 hardcode_action=relink
10671 else
10672 # We can link without hardcoding, and we can hardcode nonexisting dirs.
10673 hardcode_action=immediate
10674 fi
10675 else
10676 # We cannot hardcode anything, or else we can only hardcode existing
10677 # directories.
10678 hardcode_action=unsupported
10679 fi
10680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
10681 $as_echo "$hardcode_action" >&6; }
10682
10683 if test "$hardcode_action" = relink ||
10684 test "$inherit_rpath" = yes; then
10685 # Fast installation is not supported
10686 enable_fast_install=no
10687 elif test "$shlibpath_overrides_runpath" = yes ||
10688 test "$enable_shared" = no; then
10689 # Fast installation is not necessary
10690 enable_fast_install=needless
10691 fi
10692
10693
10694
10695
10696
10697
10698 if test "x$enable_dlopen" != xyes; then
10699 enable_dlopen=unknown
10700 enable_dlopen_self=unknown
10701 enable_dlopen_self_static=unknown
10702 else
10703 lt_cv_dlopen=no
10704 lt_cv_dlopen_libs=
10705
10706 case $host_os in
10707 beos*)
10708 lt_cv_dlopen="load_add_on"
10709 lt_cv_dlopen_libs=
10710 lt_cv_dlopen_self=yes
10711 ;;
10712
10713 mingw* | pw32* | cegcc*)
10714 lt_cv_dlopen="LoadLibrary"
10715 lt_cv_dlopen_libs=
10716 ;;
10717
10718 cygwin*)
10719 lt_cv_dlopen="dlopen"
10720 lt_cv_dlopen_libs=
10721 ;;
10722
10723 darwin*)
10724 # if libdl is installed we need to link against it
10725 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10726 $as_echo_n "checking for dlopen in -ldl... " >&6; }
10727 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
10728 $as_echo_n "(cached) " >&6
10729 else
10730 ac_check_lib_save_LIBS=$LIBS
10731 LIBS="-ldl $LIBS"
10732 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10733 /* end confdefs.h. */
10734
10735 /* Override any GCC internal prototype to avoid an error.
10736 Use char because int might match the return type of a GCC
10737 builtin and then its argument prototype would still apply. */
10738 #ifdef __cplusplus
10739 extern "C"
10740 #endif
10741 char dlopen ();
10742 int
10743 main ()
10744 {
10745 return dlopen ();
10746 ;
10747 return 0;
10748 }
10749 _ACEOF
10750 if ac_fn_c_try_link "$LINENO"; then :
10751 ac_cv_lib_dl_dlopen=yes
10752 else
10753 ac_cv_lib_dl_dlopen=no
10754 fi
10755 rm -f core conftest.err conftest.$ac_objext \
10756 conftest$ac_exeext conftest.$ac_ext
10757 LIBS=$ac_check_lib_save_LIBS
10758 fi
10759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10760 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10761 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
10762 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10763 else
10764
10765 lt_cv_dlopen="dyld"
10766 lt_cv_dlopen_libs=
10767 lt_cv_dlopen_self=yes
10768
10769 fi
10770
10771 ;;
10772
10773 *)
10774 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
10775 if test "x$ac_cv_func_shl_load" = x""yes; then :
10776 lt_cv_dlopen="shl_load"
10777 else
10778 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
10779 $as_echo_n "checking for shl_load in -ldld... " >&6; }
10780 if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
10781 $as_echo_n "(cached) " >&6
10782 else
10783 ac_check_lib_save_LIBS=$LIBS
10784 LIBS="-ldld $LIBS"
10785 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10786 /* end confdefs.h. */
10787
10788 /* Override any GCC internal prototype to avoid an error.
10789 Use char because int might match the return type of a GCC
10790 builtin and then its argument prototype would still apply. */
10791 #ifdef __cplusplus
10792 extern "C"
10793 #endif
10794 char shl_load ();
10795 int
10796 main ()
10797 {
10798 return shl_load ();
10799 ;
10800 return 0;
10801 }
10802 _ACEOF
10803 if ac_fn_c_try_link "$LINENO"; then :
10804 ac_cv_lib_dld_shl_load=yes
10805 else
10806 ac_cv_lib_dld_shl_load=no
10807 fi
10808 rm -f core conftest.err conftest.$ac_objext \
10809 conftest$ac_exeext conftest.$ac_ext
10810 LIBS=$ac_check_lib_save_LIBS
10811 fi
10812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
10813 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
10814 if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
10815 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
10816 else
10817 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
10818 if test "x$ac_cv_func_dlopen" = x""yes; then :
10819 lt_cv_dlopen="dlopen"
10820 else
10821 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10822 $as_echo_n "checking for dlopen in -ldl... " >&6; }
10823 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
10824 $as_echo_n "(cached) " >&6
10825 else
10826 ac_check_lib_save_LIBS=$LIBS
10827 LIBS="-ldl $LIBS"
10828 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10829 /* end confdefs.h. */
10830
10831 /* Override any GCC internal prototype to avoid an error.
10832 Use char because int might match the return type of a GCC
10833 builtin and then its argument prototype would still apply. */
10834 #ifdef __cplusplus
10835 extern "C"
10836 #endif
10837 char dlopen ();
10838 int
10839 main ()
10840 {
10841 return dlopen ();
10842 ;
10843 return 0;
10844 }
10845 _ACEOF
10846 if ac_fn_c_try_link "$LINENO"; then :
10847 ac_cv_lib_dl_dlopen=yes
10848 else
10849 ac_cv_lib_dl_dlopen=no
10850 fi
10851 rm -f core conftest.err conftest.$ac_objext \
10852 conftest$ac_exeext conftest.$ac_ext
10853 LIBS=$ac_check_lib_save_LIBS
10854 fi
10855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10856 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10857 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
10858 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10859 else
10860 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
10861 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
10862 if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
10863 $as_echo_n "(cached) " >&6
10864 else
10865 ac_check_lib_save_LIBS=$LIBS
10866 LIBS="-lsvld $LIBS"
10867 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10868 /* end confdefs.h. */
10869
10870 /* Override any GCC internal prototype to avoid an error.
10871 Use char because int might match the return type of a GCC
10872 builtin and then its argument prototype would still apply. */
10873 #ifdef __cplusplus
10874 extern "C"
10875 #endif
10876 char dlopen ();
10877 int
10878 main ()
10879 {
10880 return dlopen ();
10881 ;
10882 return 0;
10883 }
10884 _ACEOF
10885 if ac_fn_c_try_link "$LINENO"; then :
10886 ac_cv_lib_svld_dlopen=yes
10887 else
10888 ac_cv_lib_svld_dlopen=no
10889 fi
10890 rm -f core conftest.err conftest.$ac_objext \
10891 conftest$ac_exeext conftest.$ac_ext
10892 LIBS=$ac_check_lib_save_LIBS
10893 fi
10894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
10895 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
10896 if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
10897 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10898 else
10899 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
10900 $as_echo_n "checking for dld_link in -ldld... " >&6; }
10901 if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
10902 $as_echo_n "(cached) " >&6
10903 else
10904 ac_check_lib_save_LIBS=$LIBS
10905 LIBS="-ldld $LIBS"
10906 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10907 /* end confdefs.h. */
10908
10909 /* Override any GCC internal prototype to avoid an error.
10910 Use char because int might match the return type of a GCC
10911 builtin and then its argument prototype would still apply. */
10912 #ifdef __cplusplus
10913 extern "C"
10914 #endif
10915 char dld_link ();
10916 int
10917 main ()
10918 {
10919 return dld_link ();
10920 ;
10921 return 0;
10922 }
10923 _ACEOF
10924 if ac_fn_c_try_link "$LINENO"; then :
10925 ac_cv_lib_dld_dld_link=yes
10926 else
10927 ac_cv_lib_dld_dld_link=no
10928 fi
10929 rm -f core conftest.err conftest.$ac_objext \
10930 conftest$ac_exeext conftest.$ac_ext
10931 LIBS=$ac_check_lib_save_LIBS
10932 fi
10933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
10934 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
10935 if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
10936 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
10937 fi
10938
10939
10940 fi
10941
10942
10943 fi
10944
10945
10946 fi
10947
10948
10949 fi
10950
10951
10952 fi
10953
10954 ;;
10955 esac
10956
10957 if test "x$lt_cv_dlopen" != xno; then
10958 enable_dlopen=yes
10959 else
10960 enable_dlopen=no
10961 fi
10962
10963 case $lt_cv_dlopen in
10964 dlopen)
10965 save_CPPFLAGS="$CPPFLAGS"
10966 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
10967
10968 save_LDFLAGS="$LDFLAGS"
10969 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
10970
10971 save_LIBS="$LIBS"
10972 LIBS="$lt_cv_dlopen_libs $LIBS"
10973
10974 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
10975 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
10976 if test "${lt_cv_dlopen_self+set}" = set; then :
10977 $as_echo_n "(cached) " >&6
10978 else
10979 if test "$cross_compiling" = yes; then :
10980 lt_cv_dlopen_self=cross
10981 else
10982 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10983 lt_status=$lt_dlunknown
10984 cat > conftest.$ac_ext <<_LT_EOF
10985 #line 10985 "configure"
10986 #include "confdefs.h"
10987
10988 #if HAVE_DLFCN_H
10989 #include <dlfcn.h>
10990 #endif
10991
10992 #include <stdio.h>
10993
10994 #ifdef RTLD_GLOBAL
10995 # define LT_DLGLOBAL RTLD_GLOBAL
10996 #else
10997 # ifdef DL_GLOBAL
10998 # define LT_DLGLOBAL DL_GLOBAL
10999 # else
11000 # define LT_DLGLOBAL 0
11001 # endif
11002 #endif
11003
11004 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11005 find out it does not work in some platform. */
11006 #ifndef LT_DLLAZY_OR_NOW
11007 # ifdef RTLD_LAZY
11008 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11009 # else
11010 # ifdef DL_LAZY
11011 # define LT_DLLAZY_OR_NOW DL_LAZY
11012 # else
11013 # ifdef RTLD_NOW
11014 # define LT_DLLAZY_OR_NOW RTLD_NOW
11015 # else
11016 # ifdef DL_NOW
11017 # define LT_DLLAZY_OR_NOW DL_NOW
11018 # else
11019 # define LT_DLLAZY_OR_NOW 0
11020 # endif
11021 # endif
11022 # endif
11023 # endif
11024 #endif
11025
11026 /* When -fvisbility=hidden is used, assume the code has been annotated
11027 correspondingly for the symbols needed. */
11028 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11029 void fnord () __attribute__((visibility("default")));
11030 #endif
11031
11032 void fnord () { int i=42; }
11033 int main ()
11034 {
11035 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11036 int status = $lt_dlunknown;
11037
11038 if (self)
11039 {
11040 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11041 else
11042 {
11043 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11044 else puts (dlerror ());
11045 }
11046 /* dlclose (self); */
11047 }
11048 else
11049 puts (dlerror ());
11050
11051 return status;
11052 }
11053 _LT_EOF
11054 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11055 (eval $ac_link) 2>&5
11056 ac_status=$?
11057 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11058 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11059 (./conftest; exit; ) >&5 2>/dev/null
11060 lt_status=$?
11061 case x$lt_status in
11062 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11063 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11064 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11065 esac
11066 else :
11067 # compilation failed
11068 lt_cv_dlopen_self=no
11069 fi
11070 fi
11071 rm -fr conftest*
11072
11073
11074 fi
11075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11076 $as_echo "$lt_cv_dlopen_self" >&6; }
11077
11078 if test "x$lt_cv_dlopen_self" = xyes; then
11079 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11080 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11081 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11082 if test "${lt_cv_dlopen_self_static+set}" = set; then :
11083 $as_echo_n "(cached) " >&6
11084 else
11085 if test "$cross_compiling" = yes; then :
11086 lt_cv_dlopen_self_static=cross
11087 else
11088 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11089 lt_status=$lt_dlunknown
11090 cat > conftest.$ac_ext <<_LT_EOF
11091 #line 11091 "configure"
11092 #include "confdefs.h"
11093
11094 #if HAVE_DLFCN_H
11095 #include <dlfcn.h>
11096 #endif
11097
11098 #include <stdio.h>
11099
11100 #ifdef RTLD_GLOBAL
11101 # define LT_DLGLOBAL RTLD_GLOBAL
11102 #else
11103 # ifdef DL_GLOBAL
11104 # define LT_DLGLOBAL DL_GLOBAL
11105 # else
11106 # define LT_DLGLOBAL 0
11107 # endif
11108 #endif
11109
11110 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11111 find out it does not work in some platform. */
11112 #ifndef LT_DLLAZY_OR_NOW
11113 # ifdef RTLD_LAZY
11114 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11115 # else
11116 # ifdef DL_LAZY
11117 # define LT_DLLAZY_OR_NOW DL_LAZY
11118 # else
11119 # ifdef RTLD_NOW
11120 # define LT_DLLAZY_OR_NOW RTLD_NOW
11121 # else
11122 # ifdef DL_NOW
11123 # define LT_DLLAZY_OR_NOW DL_NOW
11124 # else
11125 # define LT_DLLAZY_OR_NOW 0
11126 # endif
11127 # endif
11128 # endif
11129 # endif
11130 #endif
11131
11132 /* When -fvisbility=hidden is used, assume the code has been annotated
11133 correspondingly for the symbols needed. */
11134 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11135 void fnord () __attribute__((visibility("default")));
11136 #endif
11137
11138 void fnord () { int i=42; }
11139 int main ()
11140 {
11141 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11142 int status = $lt_dlunknown;
11143
11144 if (self)
11145 {
11146 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11147 else
11148 {
11149 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11150 else puts (dlerror ());
11151 }
11152 /* dlclose (self); */
11153 }
11154 else
11155 puts (dlerror ());
11156
11157 return status;
11158 }
11159 _LT_EOF
11160 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11161 (eval $ac_link) 2>&5
11162 ac_status=$?
11163 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11164 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11165 (./conftest; exit; ) >&5 2>/dev/null
11166 lt_status=$?
11167 case x$lt_status in
11168 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11169 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11170 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11171 esac
11172 else :
11173 # compilation failed
11174 lt_cv_dlopen_self_static=no
11175 fi
11176 fi
11177 rm -fr conftest*
11178
11179
11180 fi
11181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11182 $as_echo "$lt_cv_dlopen_self_static" >&6; }
11183 fi
11184
11185 CPPFLAGS="$save_CPPFLAGS"
11186 LDFLAGS="$save_LDFLAGS"
11187 LIBS="$save_LIBS"
11188 ;;
11189 esac
11190
11191 case $lt_cv_dlopen_self in
11192 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11193 *) enable_dlopen_self=unknown ;;
11194 esac
11195
11196 case $lt_cv_dlopen_self_static in
11197 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11198 *) enable_dlopen_self_static=unknown ;;
11199 esac
11200 fi
11201
11202
11203
11204
11205
11206
11207
11208
11209
11210
11211
11212
11213
11214
11215
11216
11217
11218 striplib=
11219 old_striplib=
11220 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11221 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
11222 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11223 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11224 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11226 $as_echo "yes" >&6; }
11227 else
11228 # FIXME - insert some real tests, host_os isn't really good enough
11229 case $host_os in
11230 darwin*)
11231 if test -n "$STRIP" ; then
11232 striplib="$STRIP -x"
11233 old_striplib="$STRIP -S"
11234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11235 $as_echo "yes" >&6; }
11236 else
11237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11238 $as_echo "no" >&6; }
11239 fi
11240 ;;
11241 *)
11242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11243 $as_echo "no" >&6; }
11244 ;;
11245 esac
11246 fi
11247
11248
11249
11250
11251
11252
11253
11254
11255
11256
11257
11258
11259 # Report which library types will actually be built
11260 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
11261 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
11262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
11263 $as_echo "$can_build_shared" >&6; }
11264
11265 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
11266 $as_echo_n "checking whether to build shared libraries... " >&6; }
11267 test "$can_build_shared" = "no" && enable_shared=no
11268
11269 # On AIX, shared libraries and static libraries use the same namespace, and
11270 # are all built from PIC.
11271 case $host_os in
11272 aix3*)
11273 test "$enable_shared" = yes && enable_static=no
11274 if test -n "$RANLIB"; then
11275 archive_cmds="$archive_cmds~\$RANLIB \$lib"
11276 postinstall_cmds='$RANLIB $lib'
11277 fi
11278 ;;
11279
11280 aix[4-9]*)
11281 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11282 test "$enable_shared" = yes && enable_static=no
11283 fi
11284 ;;
11285 esac
11286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
11287 $as_echo "$enable_shared" >&6; }
11288
11289 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
11290 $as_echo_n "checking whether to build static libraries... " >&6; }
11291 # Make sure either enable_shared or enable_static is yes.
11292 test "$enable_shared" = yes || enable_static=yes
11293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
11294 $as_echo "$enable_static" >&6; }
11295
11296
11297
11298
11299 fi
11300 ac_ext=c
11301 ac_cpp='$CPP $CPPFLAGS'
11302 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11303 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11304 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11305
11306 CC="$lt_save_CC"
11307
11308
11309
11310
11311
11312
11313
11314
11315
11316
11317
11318
11319
11320 ac_config_commands="$ac_config_commands libtool"
11321
11322
11323
11324
11325 # Only expand once:
11326
11327
11328
11329 # The tests for host and target for $enable_largefile require
11330 # canonical names.
11331
11332
11333
11334 # As the $enable_largefile decision depends on --enable-plugins we must set it
11335 # even in directories otherwise not depending on the $plugins option.
11336
11337
11338 maybe_plugins=no
11339 for ac_header in dlfcn.h
11340 do :
11341 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
11342 "
11343 if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
11344 cat >>confdefs.h <<_ACEOF
11345 #define HAVE_DLFCN_H 1
11346 _ACEOF
11347 maybe_plugins=yes
11348 fi
11349
11350 done
11351
11352 for ac_header in windows.h
11353 do :
11354 ac_fn_c_check_header_compile "$LINENO" "windows.h" "ac_cv_header_windows_h" "$ac_includes_default
11355 "
11356 if test "x$ac_cv_header_windows_h" = x""yes; then :
11357 cat >>confdefs.h <<_ACEOF
11358 #define HAVE_WINDOWS_H 1
11359 _ACEOF
11360 maybe_plugins=yes
11361 fi
11362
11363 done
11364
11365
11366 # Check whether --enable-plugins was given.
11367 if test "${enable_plugins+set}" = set; then :
11368 enableval=$enable_plugins; case "${enableval}" in
11369 no) plugins=no ;;
11370 *) plugins=yes
11371 if test "$maybe_plugins" != "yes" ; then
11372 as_fn_error "Building with plugin support requires a host that supports dlopen." "$LINENO" 5
11373 fi ;;
11374 esac
11375 else
11376 plugins=$maybe_plugins
11377
11378 fi
11379
11380 if test "$plugins" = "yes"; then
11381 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
11382 $as_echo_n "checking for library containing dlopen... " >&6; }
11383 if test "${ac_cv_search_dlopen+set}" = set; then :
11384 $as_echo_n "(cached) " >&6
11385 else
11386 ac_func_search_save_LIBS=$LIBS
11387 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11388 /* end confdefs.h. */
11389
11390 /* Override any GCC internal prototype to avoid an error.
11391 Use char because int might match the return type of a GCC
11392 builtin and then its argument prototype would still apply. */
11393 #ifdef __cplusplus
11394 extern "C"
11395 #endif
11396 char dlopen ();
11397 int
11398 main ()
11399 {
11400 return dlopen ();
11401 ;
11402 return 0;
11403 }
11404 _ACEOF
11405 for ac_lib in '' dl; do
11406 if test -z "$ac_lib"; then
11407 ac_res="none required"
11408 else
11409 ac_res=-l$ac_lib
11410 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
11411 fi
11412 if ac_fn_c_try_link "$LINENO"; then :
11413 ac_cv_search_dlopen=$ac_res
11414 fi
11415 rm -f core conftest.err conftest.$ac_objext \
11416 conftest$ac_exeext
11417 if test "${ac_cv_search_dlopen+set}" = set; then :
11418 break
11419 fi
11420 done
11421 if test "${ac_cv_search_dlopen+set}" = set; then :
11422
11423 else
11424 ac_cv_search_dlopen=no
11425 fi
11426 rm conftest.$ac_ext
11427 LIBS=$ac_func_search_save_LIBS
11428 fi
11429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
11430 $as_echo "$ac_cv_search_dlopen" >&6; }
11431 ac_res=$ac_cv_search_dlopen
11432 if test "$ac_res" != no; then :
11433 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
11434
11435 fi
11436
11437 fi
11438
11439
11440 case "${host}" in
11441 sparc-*-solaris*|i[3-7]86-*-solaris*)
11442 # On native 32bit sparc and ia32 solaris, large-file and procfs support
11443 # are mutually exclusive; and without procfs support, the bfd/ elf module
11444 # cannot provide certain routines such as elfcore_write_prpsinfo
11445 # or elfcore_write_prstatus. So unless the user explicitly requested
11446 # large-file support through the --enable-largefile switch, disable
11447 # large-file support in favor of procfs support.
11448 test "${target}" = "${host}" -a "x$plugins" = xno \
11449 && : ${enable_largefile="no"}
11450 ;;
11451 esac
11452
11453 # Check whether --enable-largefile was given.
11454 if test "${enable_largefile+set}" = set; then :
11455 enableval=$enable_largefile;
11456 fi
11457
11458 if test "$enable_largefile" != no; then
11459
11460 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
11461 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
11462 if test "${ac_cv_sys_largefile_CC+set}" = set; then :
11463 $as_echo_n "(cached) " >&6
11464 else
11465 ac_cv_sys_largefile_CC=no
11466 if test "$GCC" != yes; then
11467 ac_save_CC=$CC
11468 while :; do
11469 # IRIX 6.2 and later do not support large files by default,
11470 # so use the C compiler's -n32 option if that helps.
11471 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11472 /* end confdefs.h. */
11473 #include <sys/types.h>
11474 /* Check that off_t can represent 2**63 - 1 correctly.
11475 We can't simply define LARGE_OFF_T to be 9223372036854775807,
11476 since some C++ compilers masquerading as C compilers
11477 incorrectly reject 9223372036854775807. */
11478 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
11479 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
11480 && LARGE_OFF_T % 2147483647 == 1)
11481 ? 1 : -1];
11482 int
11483 main ()
11484 {
11485
11486 ;
11487 return 0;
11488 }
11489 _ACEOF
11490 if ac_fn_c_try_compile "$LINENO"; then :
11491 break
11492 fi
11493 rm -f core conftest.err conftest.$ac_objext
11494 CC="$CC -n32"
11495 if ac_fn_c_try_compile "$LINENO"; then :
11496 ac_cv_sys_largefile_CC=' -n32'; break
11497 fi
11498 rm -f core conftest.err conftest.$ac_objext
11499 break
11500 done
11501 CC=$ac_save_CC
11502 rm -f conftest.$ac_ext
11503 fi
11504 fi
11505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
11506 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
11507 if test "$ac_cv_sys_largefile_CC" != no; then
11508 CC=$CC$ac_cv_sys_largefile_CC
11509 fi
11510
11511 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
11512 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
11513 if test "${ac_cv_sys_file_offset_bits+set}" = set; then :
11514 $as_echo_n "(cached) " >&6
11515 else
11516 while :; do
11517 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11518 /* end confdefs.h. */
11519 #include <sys/types.h>
11520 /* Check that off_t can represent 2**63 - 1 correctly.
11521 We can't simply define LARGE_OFF_T to be 9223372036854775807,
11522 since some C++ compilers masquerading as C compilers
11523 incorrectly reject 9223372036854775807. */
11524 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
11525 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
11526 && LARGE_OFF_T % 2147483647 == 1)
11527 ? 1 : -1];
11528 int
11529 main ()
11530 {
11531
11532 ;
11533 return 0;
11534 }
11535 _ACEOF
11536 if ac_fn_c_try_compile "$LINENO"; then :
11537 ac_cv_sys_file_offset_bits=no; break
11538 fi
11539 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11540 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11541 /* end confdefs.h. */
11542 #define _FILE_OFFSET_BITS 64
11543 #include <sys/types.h>
11544 /* Check that off_t can represent 2**63 - 1 correctly.
11545 We can't simply define LARGE_OFF_T to be 9223372036854775807,
11546 since some C++ compilers masquerading as C compilers
11547 incorrectly reject 9223372036854775807. */
11548 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
11549 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
11550 && LARGE_OFF_T % 2147483647 == 1)
11551 ? 1 : -1];
11552 int
11553 main ()
11554 {
11555
11556 ;
11557 return 0;
11558 }
11559 _ACEOF
11560 if ac_fn_c_try_compile "$LINENO"; then :
11561 ac_cv_sys_file_offset_bits=64; break
11562 fi
11563 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11564 ac_cv_sys_file_offset_bits=unknown
11565 break
11566 done
11567 fi
11568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
11569 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
11570 case $ac_cv_sys_file_offset_bits in #(
11571 no | unknown) ;;
11572 *)
11573 cat >>confdefs.h <<_ACEOF
11574 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
11575 _ACEOF
11576 ;;
11577 esac
11578 rm -rf conftest*
11579 if test $ac_cv_sys_file_offset_bits = unknown; then
11580 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
11581 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
11582 if test "${ac_cv_sys_large_files+set}" = set; then :
11583 $as_echo_n "(cached) " >&6
11584 else
11585 while :; do
11586 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11587 /* end confdefs.h. */
11588 #include <sys/types.h>
11589 /* Check that off_t can represent 2**63 - 1 correctly.
11590 We can't simply define LARGE_OFF_T to be 9223372036854775807,
11591 since some C++ compilers masquerading as C compilers
11592 incorrectly reject 9223372036854775807. */
11593 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
11594 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
11595 && LARGE_OFF_T % 2147483647 == 1)
11596 ? 1 : -1];
11597 int
11598 main ()
11599 {
11600
11601 ;
11602 return 0;
11603 }
11604 _ACEOF
11605 if ac_fn_c_try_compile "$LINENO"; then :
11606 ac_cv_sys_large_files=no; break
11607 fi
11608 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11609 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11610 /* end confdefs.h. */
11611 #define _LARGE_FILES 1
11612 #include <sys/types.h>
11613 /* Check that off_t can represent 2**63 - 1 correctly.
11614 We can't simply define LARGE_OFF_T to be 9223372036854775807,
11615 since some C++ compilers masquerading as C compilers
11616 incorrectly reject 9223372036854775807. */
11617 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
11618 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
11619 && LARGE_OFF_T % 2147483647 == 1)
11620 ? 1 : -1];
11621 int
11622 main ()
11623 {
11624
11625 ;
11626 return 0;
11627 }
11628 _ACEOF
11629 if ac_fn_c_try_compile "$LINENO"; then :
11630 ac_cv_sys_large_files=1; break
11631 fi
11632 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11633 ac_cv_sys_large_files=unknown
11634 break
11635 done
11636 fi
11637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
11638 $as_echo "$ac_cv_sys_large_files" >&6; }
11639 case $ac_cv_sys_large_files in #(
11640 no | unknown) ;;
11641 *)
11642 cat >>confdefs.h <<_ACEOF
11643 #define _LARGE_FILES $ac_cv_sys_large_files
11644 _ACEOF
11645 ;;
11646 esac
11647 rm -rf conftest*
11648 fi
11649 fi
11650
11651
11652
11653 # Check whether --enable-targets was given.
11654 if test "${enable_targets+set}" = set; then :
11655 enableval=$enable_targets; case "${enableval}" in
11656 yes | "") as_fn_error "enable-targets option must specify target names or 'all'" "$LINENO" 5
11657 ;;
11658 no) enable_targets= ;;
11659 *) enable_targets=$enableval ;;
11660 esac
11661 fi
11662
11663 ac_checking=yes
11664 if grep '^RELEASE=y' ${srcdir}/../bfd/Makefile.am >/dev/null 2>/dev/null ; then
11665 ac_checking=
11666 fi
11667 # Check whether --enable-checking was given.
11668 if test "${enable_checking+set}" = set; then :
11669 enableval=$enable_checking; case "${enableval}" in
11670 no|none) ac_checking= ;;
11671 *) ac_checking=yes ;;
11672 esac
11673 fi
11674 if test x$ac_checking != x ; then
11675
11676 $as_echo "#define ENABLE_CHECKING 1" >>confdefs.h
11677
11678 fi
11679
11680 # PR gas/19109
11681 # Decide the default method for compressing debug sections.
11682 ac_default_compressed_debug_sections=unset
11683 # Provide a configure time option to override our default.
11684 # Check whether --enable-compressed_debug_sections was given.
11685 if test "${enable_compressed_debug_sections+set}" = set; then :
11686 enableval=$enable_compressed_debug_sections; case ,"${enableval}", in
11687 ,yes, | ,all, | *,gas,*) ac_default_compressed_debug_sections=yes ;;
11688 ,no, | ,none,) ac_default_compressed_debug_sections=no ;;
11689 *) ac_default_compressed_debug_sections=unset ;;
11690 esac
11691 fi
11692
11693 # PR gas/19520
11694 # Decide if x86 assembler should generate relax relocations.
11695 ac_default_x86_relax_relocations=unset
11696 # Provide a configure time option to override our default.
11697 # Check whether --enable-x86_relax_relocations was given.
11698 if test "${enable_x86_relax_relocations+set}" = set; then :
11699 enableval=$enable_x86_relax_relocations; case "${enableval}" in
11700 no) ac_default_x86_relax_relocations=0 ;;
11701 esac
11702 fi
11703
11704 # Decide if ELF assembler should generate common symbols with the
11705 # STT_COMMON type.
11706 ac_default_elf_stt_common=unset
11707 # Provide a configure time option to override our default.
11708 # Check whether --enable-elf_stt_common was given.
11709 if test "${enable_elf_stt_common+set}" = set; then :
11710 enableval=$enable_elf_stt_common; case "${enableval}" in
11711 yes) ac_default_elf_stt_common=1 ;;
11712 esac
11713 fi
11714
11715 using_cgen=no
11716
11717
11718 # Set the 'development' global.
11719 . $srcdir/../bfd/development.sh
11720
11721 # Default set of GCC warnings to enable.
11722 GCC_WARN_CFLAGS="-W -Wall -Wstrict-prototypes -Wmissing-prototypes"
11723
11724 # Add -Wshadow if the compiler is a sufficiently recent version of GCC.
11725 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11726 /* end confdefs.h. */
11727 __GNUC__
11728 _ACEOF
11729 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11730 $EGREP "^[0-3]$" >/dev/null 2>&1; then :
11731
11732 else
11733 GCC_WARN_CFLAGS="$GCC_WARN_CFLAGS -Wshadow"
11734 fi
11735 rm -f conftest*
11736
11737
11738 # Add -Wstack-usage if the compiler is a sufficiently recent version of GCC.
11739 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11740 /* end confdefs.h. */
11741 __GNUC__
11742 _ACEOF
11743 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11744 $EGREP "^[0-4]$" >/dev/null 2>&1; then :
11745
11746 else
11747 GCC_WARN_CFLAGS="$GCC_WARN_CFLAGS -Wstack-usage=262144"
11748 fi
11749 rm -f conftest*
11750
11751
11752 # Set WARN_WRITE_STRINGS if the compiler supports -Wwrite-strings.
11753 WARN_WRITE_STRINGS=""
11754 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11755 /* end confdefs.h. */
11756 __GNUC__
11757 _ACEOF
11758 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11759 $EGREP "^[0-3]$" >/dev/null 2>&1; then :
11760
11761 else
11762 WARN_WRITE_STRINGS="-Wwrite-strings"
11763 fi
11764 rm -f conftest*
11765
11766
11767 # Check whether --enable-werror was given.
11768 if test "${enable_werror+set}" = set; then :
11769 enableval=$enable_werror; case "${enableval}" in
11770 yes | y) ERROR_ON_WARNING="yes" ;;
11771 no | n) ERROR_ON_WARNING="no" ;;
11772 *) as_fn_error "bad value ${enableval} for --enable-werror" "$LINENO" 5 ;;
11773 esac
11774 fi
11775
11776
11777 # Disable -Wformat by default when using gcc on mingw
11778 case "${host}" in
11779 *-*-mingw32*)
11780 if test "${GCC}" = yes -a -z "${ERROR_ON_WARNING}" ; then
11781 GCC_WARN_CFLAGS="$GCC_WARN_CFLAGS -Wno-format"
11782 fi
11783 ;;
11784 *) ;;
11785 esac
11786
11787 # Enable -Werror by default when using gcc. Turn it off for releases.
11788 if test "${GCC}" = yes -a -z "${ERROR_ON_WARNING}" -a "$development" = true ; then
11789 ERROR_ON_WARNING=yes
11790 fi
11791
11792 NO_WERROR=
11793 if test "${ERROR_ON_WARNING}" = yes ; then
11794 GCC_WARN_CFLAGS="$GCC_WARN_CFLAGS -Werror"
11795 NO_WERROR="-Wno-error"
11796 fi
11797
11798 if test "${GCC}" = yes ; then
11799 WARN_CFLAGS="${GCC_WARN_CFLAGS}"
11800 fi
11801
11802 # Check whether --enable-build-warnings was given.
11803 if test "${enable_build_warnings+set}" = set; then :
11804 enableval=$enable_build_warnings; case "${enableval}" in
11805 yes) WARN_CFLAGS="${GCC_WARN_CFLAGS}";;
11806 no) if test "${GCC}" = yes ; then
11807 WARN_CFLAGS="-w"
11808 fi;;
11809 ,*) t=`echo "${enableval}" | sed -e "s/,/ /g"`
11810 WARN_CFLAGS="${GCC_WARN_CFLAGS} ${t}";;
11811 *,) t=`echo "${enableval}" | sed -e "s/,/ /g"`
11812 WARN_CFLAGS="${t} ${GCC_WARN_CFLAGS}";;
11813 *) WARN_CFLAGS=`echo "${enableval}" | sed -e "s/,/ /g"`;;
11814 esac
11815 fi
11816
11817
11818 if test x"$silent" != x"yes" && test x"$WARN_CFLAGS" != x""; then
11819 echo "Setting warning flags = $WARN_CFLAGS" 6>&1
11820 fi
11821
11822
11823
11824
11825
11826
11827 # Generate a header file
11828 ac_config_headers="$ac_config_headers config.h:config.in"
11829
11830
11831 # PR 14072
11832
11833
11834 # If we are on a DOS filesystem, we must use gdb.ini rather than
11835 # .gdbinit.
11836 case "${host}" in
11837 *-*-msdos* | *-*-go32* | *-*-mingw32* | *-*-windows*)
11838 GDBINIT="gdb.ini"
11839 ac_config_files="$ac_config_files gdb.ini:gdbinit.in"
11840
11841 ;;
11842 *)
11843 GDBINIT=".gdbinit"
11844 ac_config_files="$ac_config_files .gdbinit:gdbinit.in"
11845
11846 ;;
11847 esac
11848
11849
11850 #We need this for the host. BOUT header is in host order.
11851 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
11852 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
11853 if test "${ac_cv_c_bigendian+set}" = set; then :
11854 $as_echo_n "(cached) " >&6
11855 else
11856 ac_cv_c_bigendian=unknown
11857 # See if we're dealing with a universal compiler.
11858 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11859 /* end confdefs.h. */
11860 #ifndef __APPLE_CC__
11861 not a universal capable compiler
11862 #endif
11863 typedef int dummy;
11864
11865 _ACEOF
11866 if ac_fn_c_try_compile "$LINENO"; then :
11867
11868 # Check for potential -arch flags. It is not universal unless
11869 # there are at least two -arch flags with different values.
11870 ac_arch=
11871 ac_prev=
11872 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
11873 if test -n "$ac_prev"; then
11874 case $ac_word in
11875 i?86 | x86_64 | ppc | ppc64)
11876 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
11877 ac_arch=$ac_word
11878 else
11879 ac_cv_c_bigendian=universal
11880 break
11881 fi
11882 ;;
11883 esac
11884 ac_prev=
11885 elif test "x$ac_word" = "x-arch"; then
11886 ac_prev=arch
11887 fi
11888 done
11889 fi
11890 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11891 if test $ac_cv_c_bigendian = unknown; then
11892 # See if sys/param.h defines the BYTE_ORDER macro.
11893 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11894 /* end confdefs.h. */
11895 #include <sys/types.h>
11896 #include <sys/param.h>
11897
11898 int
11899 main ()
11900 {
11901 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
11902 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
11903 && LITTLE_ENDIAN)
11904 bogus endian macros
11905 #endif
11906
11907 ;
11908 return 0;
11909 }
11910 _ACEOF
11911 if ac_fn_c_try_compile "$LINENO"; then :
11912 # It does; now see whether it defined to BIG_ENDIAN or not.
11913 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11914 /* end confdefs.h. */
11915 #include <sys/types.h>
11916 #include <sys/param.h>
11917
11918 int
11919 main ()
11920 {
11921 #if BYTE_ORDER != BIG_ENDIAN
11922 not big endian
11923 #endif
11924
11925 ;
11926 return 0;
11927 }
11928 _ACEOF
11929 if ac_fn_c_try_compile "$LINENO"; then :
11930 ac_cv_c_bigendian=yes
11931 else
11932 ac_cv_c_bigendian=no
11933 fi
11934 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11935 fi
11936 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11937 fi
11938 if test $ac_cv_c_bigendian = unknown; then
11939 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
11940 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11941 /* end confdefs.h. */
11942 #include <limits.h>
11943
11944 int
11945 main ()
11946 {
11947 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
11948 bogus endian macros
11949 #endif
11950
11951 ;
11952 return 0;
11953 }
11954 _ACEOF
11955 if ac_fn_c_try_compile "$LINENO"; then :
11956 # It does; now see whether it defined to _BIG_ENDIAN or not.
11957 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11958 /* end confdefs.h. */
11959 #include <limits.h>
11960
11961 int
11962 main ()
11963 {
11964 #ifndef _BIG_ENDIAN
11965 not big endian
11966 #endif
11967
11968 ;
11969 return 0;
11970 }
11971 _ACEOF
11972 if ac_fn_c_try_compile "$LINENO"; then :
11973 ac_cv_c_bigendian=yes
11974 else
11975 ac_cv_c_bigendian=no
11976 fi
11977 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11978 fi
11979 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11980 fi
11981 if test $ac_cv_c_bigendian = unknown; then
11982 # Compile a test program.
11983 if test "$cross_compiling" = yes; then :
11984 # Try to guess by grepping values from an object file.
11985 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11986 /* end confdefs.h. */
11987 short int ascii_mm[] =
11988 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
11989 short int ascii_ii[] =
11990 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
11991 int use_ascii (int i) {
11992 return ascii_mm[i] + ascii_ii[i];
11993 }
11994 short int ebcdic_ii[] =
11995 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
11996 short int ebcdic_mm[] =
11997 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
11998 int use_ebcdic (int i) {
11999 return ebcdic_mm[i] + ebcdic_ii[i];
12000 }
12001 extern int foo;
12002
12003 int
12004 main ()
12005 {
12006 return use_ascii (foo) == use_ebcdic (foo);
12007 ;
12008 return 0;
12009 }
12010 _ACEOF
12011 if ac_fn_c_try_compile "$LINENO"; then :
12012 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
12013 ac_cv_c_bigendian=yes
12014 fi
12015 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
12016 if test "$ac_cv_c_bigendian" = unknown; then
12017 ac_cv_c_bigendian=no
12018 else
12019 # finding both strings is unlikely to happen, but who knows?
12020 ac_cv_c_bigendian=unknown
12021 fi
12022 fi
12023 fi
12024 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12025 else
12026 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12027 /* end confdefs.h. */
12028 $ac_includes_default
12029 int
12030 main ()
12031 {
12032
12033 /* Are we little or big endian? From Harbison&Steele. */
12034 union
12035 {
12036 long int l;
12037 char c[sizeof (long int)];
12038 } u;
12039 u.l = 1;
12040 return u.c[sizeof (long int) - 1] == 1;
12041
12042 ;
12043 return 0;
12044 }
12045 _ACEOF
12046 if ac_fn_c_try_run "$LINENO"; then :
12047 ac_cv_c_bigendian=no
12048 else
12049 ac_cv_c_bigendian=yes
12050 fi
12051 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12052 conftest.$ac_objext conftest.beam conftest.$ac_ext
12053 fi
12054
12055 fi
12056 fi
12057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
12058 $as_echo "$ac_cv_c_bigendian" >&6; }
12059 case $ac_cv_c_bigendian in #(
12060 yes)
12061 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
12062 ;; #(
12063 no)
12064 ;; #(
12065 universal)
12066
12067 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
12068
12069 ;; #(
12070 *)
12071 as_fn_error "unknown endianness
12072 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
12073 esac
12074
12075
12076 te_file=generic
12077
12078 # Makefile target for installing gas in $(tooldir)/bin.
12079 install_tooldir=install-exec-tooldir
12080
12081 canon_targets=""
12082 all_targets=no
12083 if test -n "$enable_targets" ; then
12084 for t in `echo $enable_targets | sed 's/,/ /g'`; do
12085 if test $t = "all"; then
12086 all_targets=yes
12087 continue
12088 fi
12089 result=`$ac_config_sub $t 2>/dev/null`
12090 if test -n "$result" ; then
12091 canon_targets="$canon_targets $result"
12092 # else
12093 # # Permit "all", etc. We don't support it yet though.
12094 # canon_targets="$canon_targets $t"
12095 fi
12096 done
12097 _gas_uniq_list="$canon_targets"
12098 _gas_uniq_newlist=""
12099 for _gas_uniq_i in _gas_uniq_dummy $_gas_uniq_list ; do
12100 case $_gas_uniq_i in
12101 _gas_uniq_dummy) ;;
12102 *) case " $_gas_uniq_newlist " in
12103 *" $_gas_uniq_i "*) ;;
12104 *) _gas_uniq_newlist="$_gas_uniq_newlist $_gas_uniq_i" ;;
12105 esac ;;
12106 esac
12107 done
12108 canon_targets=$_gas_uniq_newlist
12109
12110 fi
12111
12112 emulations=""
12113
12114 for this_target in $target $canon_targets ; do
12115
12116 targ=${this_target}
12117 . ${srcdir}/configure.tgt
12118
12119 case ${target_cpu} in
12120 crisv32)
12121
12122 cat >>confdefs.h <<_ACEOF
12123 #define DEFAULT_CRIS_ARCH $arch
12124 _ACEOF
12125
12126 ;;
12127 esac
12128
12129 if test ${this_target} = $target ; then
12130 target_cpu_type=${cpu_type}
12131 elif test ${target_cpu_type} != ${cpu_type} ; then
12132 continue
12133 fi
12134
12135 generic_target=${cpu_type}-${target_vendor}-${target_os}
12136 case ${generic_target} in
12137 i386-*-sco3.2v5*)
12138 if test ${this_target} = $target; then
12139
12140 $as_echo "#define SCO_ELF 1" >>confdefs.h
12141
12142 fi
12143 ;;
12144
12145 i386-*-msdosdjgpp* \
12146 | i386-*-go32* \
12147 | i386-go32-rtems*)
12148
12149 $as_echo "#define STRICTCOFF 1" >>confdefs.h
12150
12151 ;;
12152
12153 i386-*-solaris2 \
12154 | x86_64-*-solaris2 \
12155 | i386-*-solaris2.[0-9] \
12156 | i386-*-solaris2.1[01] \
12157 | x86_64-*-solaris2.1[01])
12158 if test ${this_target} = $target \
12159 && test ${ac_default_x86_relax_relocations} = unset; then
12160 ac_default_x86_relax_relocations=0
12161 fi
12162 ;;
12163
12164 i860-*-*)
12165 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: GAS support for ${generic_target} is preliminary and a work in progress" >&5
12166 $as_echo "$as_me: WARNING: GAS support for ${generic_target} is preliminary and a work in progress" >&2;}
12167 ;;
12168
12169 microblaze*)
12170 ;;
12171
12172 ppc-*-aix[5-9].*)
12173
12174 $as_echo "#define AIX_WEAK_SUPPORT 1" >>confdefs.h
12175
12176 ;;
12177 ppc-*-solaris*)
12178 if test ${this_target} = $target; then
12179
12180 $as_echo "#define TARGET_SOLARIS_COMMENT 1" >>confdefs.h
12181
12182 fi
12183 if test x${endian} = xbig; then
12184 as_fn_error "Solaris must be configured little endian" "$LINENO" 5
12185 fi
12186 ;;
12187
12188 sh*-*-symbianelf*)
12189
12190 $as_echo "#define TARGET_SYMBIAN 1" >>confdefs.h
12191
12192 ;;
12193 esac
12194
12195 if test ${this_target} = $target ; then
12196 endian_def=
12197 if test x${endian} = xbig; then
12198 endian_def=1
12199 elif test x${endian} = xlittle; then
12200 endian_def=0
12201 fi
12202 if test x${endian_def} != x; then
12203
12204 cat >>confdefs.h <<_ACEOF
12205 #define TARGET_BYTES_BIG_ENDIAN $endian_def
12206 _ACEOF
12207
12208 fi
12209 fi
12210
12211 # Other random stuff.
12212
12213 case ${cpu_type} in
12214 mips)
12215 # Set mips_cpu to the name of the default CPU.
12216 case ${target_cpu} in
12217 mips | mipsbe | mipseb | mipsle | mipsel | mips64 | mips64el)
12218 mips_cpu=from-abi
12219 ;;
12220 mipsisa32 | mipsisa32el)
12221 mips_cpu=mips32
12222 ;;
12223 mipsisa32r2 | mipsisa32r2el)
12224 mips_cpu=mips32r2
12225 ;;
12226 mipsisa32r3 | mipsisa32r3el)
12227 mips_cpu=mips32r3
12228 ;;
12229 mipsisa32r5 | mipsisa32r5el)
12230 mips_cpu=mips32r5
12231 ;;
12232 mipsisa32r6 | mipsisa32r6el)
12233 mips_cpu=mips32r6
12234 ;;
12235 mipsisa64 | mipsisa64el)
12236 mips_cpu=mips64
12237 ;;
12238 mipsisa64r2 | mipsisa64r2el)
12239 mips_cpu=mips64r2
12240 ;;
12241 mipsisa64r3 | mipsisa64r3el)
12242 mips_cpu=mips64r3
12243 ;;
12244 mipsisa64r5 | mipsisa64r5el)
12245 mips_cpu=mips64r5
12246 ;;
12247 mipsisa64r6 | mipsisa64r6el)
12248 mips_cpu=mips64r6
12249 ;;
12250 mipstx39 | mipstx39el)
12251 mips_cpu=r3900
12252 ;;
12253 mips64vr | mips64vrel)
12254 mips_cpu=vr4100
12255 ;;
12256 mipsisa32r2* | mipsisa64r2*)
12257 mips_cpu=`echo $target_cpu | sed -e 's/[a-z]*..r2//' -e 's/el$//'`
12258 ;;
12259 mipsisa32r6* | mipsisa64r6*)
12260 mips_cpu=`echo $target_cpu | sed -e 's/[a-z]*..r6//' -e 's/el$//'`
12261 ;;
12262 mips64* | mipsisa64* | mipsisa32*)
12263 mips_cpu=`echo $target_cpu | sed -e 's/[a-z]*..//' -e 's/el$//'`
12264 ;;
12265 mips*)
12266 mips_cpu=`echo $target_cpu | sed -e 's/^mips//' -e 's/el$//'`
12267 ;;
12268 *)
12269 as_fn_error "$target_cpu isn't a supported MIPS CPU name" "$LINENO" 5
12270 ;;
12271 esac
12272 # See whether it's appropriate to set E_MIPS_ABI_O32 for o32
12273 # binaries. It's a GNU extension that some OSes don't understand.
12274 case ${target} in
12275 *-*-irix*)
12276 use_e_mips_abi_o32=0
12277 ;;
12278 *)
12279 use_e_mips_abi_o32=1
12280 ;;
12281 esac
12282 # Decide whether to generate 32-bit or 64-bit code by default.
12283 # Used to resolve -march=from-abi when an embedded ABI is selected.
12284 case ${target} in
12285 mips64*-*-* | mipsisa64*-*-*)
12286 mips_default_64bit=1
12287 ;;
12288 *)
12289 mips_default_64bit=0
12290 ;;
12291 esac
12292 # Decide which ABI to target by default.
12293 case ${target} in
12294 mips64*-linux* | mips-sgi-irix6* | mips64*-freebsd* | mips64*-kfreebsd*-gnu)
12295 mips_default_abi=N32_ABI
12296 ;;
12297 mips*-linux* | mips*-freebsd* | mips*-kfreebsd*-gnu)
12298 mips_default_abi=O32_ABI
12299 ;;
12300 mips64*-openbsd*)
12301 mips_default_abi=N64_ABI
12302 ;;
12303 *)
12304 mips_default_abi=NO_ABI
12305 ;;
12306 esac
12307
12308 cat >>confdefs.h <<_ACEOF
12309 #define MIPS_CPU_STRING_DEFAULT "$mips_cpu"
12310 _ACEOF
12311
12312
12313 cat >>confdefs.h <<_ACEOF
12314 #define USE_E_MIPS_ABI_O32 $use_e_mips_abi_o32
12315 _ACEOF
12316
12317
12318 cat >>confdefs.h <<_ACEOF
12319 #define MIPS_DEFAULT_64BIT $mips_default_64bit
12320 _ACEOF
12321
12322
12323 cat >>confdefs.h <<_ACEOF
12324 #define MIPS_DEFAULT_ABI $mips_default_abi
12325 _ACEOF
12326
12327 ;;
12328 esac
12329
12330 # Do we need the opcodes library?
12331 case ${cpu_type} in
12332 vax | tic30)
12333 ;;
12334
12335 *)
12336 need_opcodes=yes
12337
12338 case "${enable_shared}" in
12339 yes) shared_opcodes=true ;;
12340 *opcodes*) shared_opcodes=true ;;
12341 *) shared_opcodes=false ;;
12342 esac
12343 ;;
12344 esac
12345
12346 # Any other special object files needed ?
12347 case ${cpu_type} in
12348
12349 bfin)
12350 echo ${extra_objects} | grep -s "bfin-parse.o"
12351 if test $? -ne 0 ; then
12352 extra_objects="$extra_objects bfin-parse.o"
12353 fi
12354
12355 echo ${extra_objects} | grep -s "bfin-lex-wrapper.o"
12356 if test $? -ne 0 ; then
12357 extra_objects="$extra_objects bfin-lex-wrapper.o"
12358 fi
12359 ;;
12360
12361 epiphany | fr30 | ip2k | iq2000 | lm32 | m32r | or1k)
12362 using_cgen=yes
12363 ;;
12364
12365 m32c)
12366 using_cgen=yes
12367 ;;
12368 frv)
12369 using_cgen=yes
12370 ;;
12371 m68k)
12372 case ${extra_objects} in
12373 *m68k-parse.o*) ;;
12374 *) extra_objects="$extra_objects m68k-parse.o" ;;
12375 esac
12376 ;;
12377
12378 mep)
12379 using_cgen=yes
12380 ;;
12381
12382 mips)
12383 echo ${extra_objects} | grep -s "itbl-parse.o"
12384 if test $? -ne 0 ; then
12385 extra_objects="$extra_objects itbl-parse.o"
12386 fi
12387
12388 echo ${extra_objects} | grep -s "itbl-lex-wrapper.o"
12389 if test $? -ne 0 ; then
12390 extra_objects="$extra_objects itbl-lex-wrapper.o"
12391 fi
12392
12393 echo ${extra_objects} | grep -s "itbl-ops.o"
12394 if test $? -ne 0 ; then
12395 extra_objects="$extra_objects itbl-ops.o"
12396 fi
12397 ;;
12398
12399 mt)
12400 using_cgen=yes
12401 ;;
12402
12403 nds32)
12404 # Decide BASELINE, REDUCED_REGS, FPU_DP_EXT, FPU_SP_EXT features
12405 # based on arch_name.
12406 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for default configuration of --with-arch" >&5
12407 $as_echo_n "checking for default configuration of --with-arch... " >&6; }
12408 if test "x${with_arch}" != x; then
12409 case ${with_arch} in
12410 v2j | v2s | v2f | v2 | v3m | v3j | v3s | v3f | v3 )
12411
12412 cat >>confdefs.h <<_ACEOF
12413 #define NDS32_DEFAULT_ARCH_NAME "$with_arch"
12414 _ACEOF
12415
12416 ;;
12417 *)
12418 as_fn_error "This kind of arch name does *NOT* exist!" "$LINENO" 5
12419 ;;
12420 esac
12421 fi
12422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_arch" >&5
12423 $as_echo "$with_arch" >&6; }
12424
12425 # Decide features one by one.
12426 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for default configuration of --enable-dx-regs" >&5
12427 $as_echo_n "checking for default configuration of --enable-dx-regs... " >&6; }
12428 if test "x${enable_dx_regs}" = xyes; then
12429
12430 $as_echo "#define NDS32_DEFAULT_DX_REGS 1" >>confdefs.h
12431
12432 else
12433
12434 $as_echo "#define NDS32_DEFAULT_DX_REGS 0" >>confdefs.h
12435
12436 fi
12437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_dx_regs" >&5
12438 $as_echo "$enable_dx_regs" >&6; }
12439
12440 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for default configuration of --enable-perf-ext" >&5
12441 $as_echo_n "checking for default configuration of --enable-perf-ext... " >&6; }
12442 if test "x${enable_perf_ext}" = xno; then
12443
12444 $as_echo "#define NDS32_DEFAULT_PERF_EXT 0" >>confdefs.h
12445
12446 else
12447
12448 $as_echo "#define NDS32_DEFAULT_PERF_EXT 1" >>confdefs.h
12449
12450 fi
12451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_perf_ext" >&5
12452 $as_echo "$enable_perf_ext" >&6; }
12453
12454 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for default configuration of --enable-perf-ext2" >&5
12455 $as_echo_n "checking for default configuration of --enable-perf-ext2... " >&6; }
12456 if test "x${enable_perf_ext2}" = xno; then
12457
12458 $as_echo "#define NDS32_DEFAULT_PERF_EXT2 0" >>confdefs.h
12459
12460 else
12461
12462 $as_echo "#define NDS32_DEFAULT_PERF_EXT2 1" >>confdefs.h
12463
12464 fi
12465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_perf_ext2" >&5
12466 $as_echo "$enable_perf_ext2" >&6; }
12467
12468 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for default configuration of --enable-string-ext" >&5
12469 $as_echo_n "checking for default configuration of --enable-string-ext... " >&6; }
12470 if test "x${enable_string_ext}" = xno; then
12471
12472 $as_echo "#define NDS32_DEFAULT_STRING_EXT 0" >>confdefs.h
12473
12474 else
12475
12476 $as_echo "#define NDS32_DEFAULT_STRING_EXT 1" >>confdefs.h
12477
12478 fi
12479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_string_ext" >&5
12480 $as_echo "$enable_string_ext" >&6; }
12481
12482 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for default configuration of --enable-audio-ext" >&5
12483 $as_echo_n "checking for default configuration of --enable-audio-ext... " >&6; }
12484 if test "x${enable_audio_ext}" = xno; then
12485
12486 $as_echo "#define NDS32_DEFAULT_AUDIO_EXT 0" >>confdefs.h
12487
12488 else
12489
12490 $as_echo "#define NDS32_DEFAULT_AUDIO_EXT 1" >>confdefs.h
12491
12492 fi
12493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_audio_ext" >&5
12494 $as_echo "$enable_audio_ext" >&6; }
12495 ;;
12496
12497 i386 | s390 | sparc)
12498 if test $this_target = $target ; then
12499
12500 cat >>confdefs.h <<_ACEOF
12501 #define DEFAULT_ARCH "${arch}"
12502 _ACEOF
12503
12504 fi
12505 ;;
12506
12507 rl78)
12508 echo ${extra_objects} | grep -s "rl78-parse.o"
12509 if test $? -ne 0 ; then
12510 extra_objects="$extra_objects rl78-parse.o"
12511 fi
12512 ;;
12513
12514 rx)
12515 echo ${extra_objects} | grep -s "rx-parse.o"
12516 if test $? -ne 0 ; then
12517 extra_objects="$extra_objects rx-parse.o"
12518 fi
12519 ;;
12520
12521 xstormy16)
12522 using_cgen=yes
12523 ;;
12524
12525 xc16x)
12526 using_cgen=yes
12527 ;;
12528
12529 xtensa)
12530 echo ${extra_objects} | grep -s "xtensa-relax.o"
12531 if test $? -ne 0 ; then
12532 extra_objects="$extra_objects xtensa-relax.o"
12533 fi
12534 ;;
12535
12536 *)
12537 ;;
12538 esac
12539
12540 if test $using_cgen = yes ; then
12541 case "x${extra_objects}" in
12542 *cgen.o*) ;;
12543 *) extra_objects="$extra_objects cgen.o" ;;
12544 esac
12545 fi
12546
12547 # See if we really can support this configuration with the emulation code.
12548
12549 if test $this_target = $target ; then
12550 obj_format=$fmt
12551 te_file=$em
12552 fi
12553
12554 case ${te_file} in
12555 vms) extra_objects="$extra_objects te-vms.o" ;;
12556 esac
12557
12558 # From target name and format, produce a list of supported emulations.
12559
12560 case ${generic_target}-${fmt} in
12561 mips-*-*-*) case "$endian" in
12562 big) emulation="mipsbelf mipslelf mipself" ;;
12563 *) emulation="mipslelf mipsbelf mipself" ;;
12564 esac ;;
12565 # i386-pc-pe-coff != i386-pc-coff.
12566 i386-*-pe-coff) ;;
12567 # Uncommenting the next line will turn on support for i386 AOUT
12568 # for the default linux configuration
12569 # i386-*-linux*-elf) emulation="i386elf i386aout" ;;
12570 #
12571 i386-*-aout) emulation="i386aout" ;;
12572 i386-*-coff) emulation="i386coff" ;;
12573 i386-*-elf) emulation="i386elf" ;;
12574
12575 # Always all formats. The first stated emulation becomes the default.
12576 cris-*-*aout*) emulation="crisaout criself" ;;
12577 cris-*-*) emulation="criself crisaout" ;;
12578 esac
12579
12580 emulations="$emulations $emulation"
12581
12582 done
12583
12584 if test ${ac_default_x86_relax_relocations} = unset; then
12585 ac_default_x86_relax_relocations=1
12586 fi
12587
12588 cat >>confdefs.h <<_ACEOF
12589 #define DEFAULT_GENERATE_X86_RELAX_RELOCATIONS $ac_default_x86_relax_relocations
12590 _ACEOF
12591
12592
12593 if test ${ac_default_elf_stt_common} = unset; then
12594 ac_default_elf_stt_common=0
12595 fi
12596
12597 cat >>confdefs.h <<_ACEOF
12598 #define DEFAULT_GENERATE_ELF_STT_COMMON $ac_default_elf_stt_common
12599 _ACEOF
12600
12601
12602 if test x$ac_default_compressed_debug_sections = xyes ; then
12603
12604 $as_echo "#define DEFAULT_FLAG_COMPRESS_DEBUG 1" >>confdefs.h
12605
12606 fi
12607
12608 # Turn on all targets if possible
12609 if test ${all_targets} = "yes"; then
12610 case ${target_cpu_type} in
12611 i386)
12612 case ${obj_format} in
12613 aout)
12614 emulations="$emulations i386coff i386elf"
12615 ;;
12616 coff)
12617 emulations="$emulations i386aout i386elf"
12618 ;;
12619 elf)
12620 emulations="$emulations i386aout i386coff"
12621 ;;
12622 esac
12623 ;;
12624 x86_64)
12625 case ${obj_format} in
12626 aout)
12627 emulations="$emulations i386coff i386elf"
12628 ;;
12629 coff)
12630 emulations="$emulations i386aout i386elf"
12631 ;;
12632 elf)
12633 emulations="$emulations i386aout i386coff"
12634 ;;
12635 esac
12636 ;;
12637 esac
12638 fi
12639
12640 # PE code has way too many macros tweaking behaviour
12641 case ${te_file} in
12642 pe*) emulations="" ;;
12643 esac
12644
12645 # Assign floating point type. Most processors with FP support
12646 # IEEE FP. On those that don't support FP at all, usually IEEE
12647 # is emulated.
12648 case ${target_cpu} in
12649 vax | pdp11 ) atof=vax ;;
12650 *) atof=ieee ;;
12651 esac
12652
12653 case "${obj_format}" in
12654 "") as_fn_error "GAS does not know what format to use for target ${target}" "$LINENO" 5 ;;
12655 esac
12656
12657 # Unfortunately the cpu in cpu-opc.h file isn't always $(TARGET_CPU).
12658 cgen_cpu_prefix=""
12659 if test $using_cgen = yes ; then
12660 case ${target_cpu} in
12661 or1knd)
12662 cgen_cpu_prefix=or1k ;;
12663 *) cgen_cpu_prefix=${target_cpu} ;;
12664 esac
12665
12666
12667 $as_echo "#define USING_CGEN 1" >>confdefs.h
12668
12669 fi
12670
12671
12672 if test ! -r ${srcdir}/config/tc-${target_cpu_type}.c; then
12673 as_fn_error "GAS does not support target CPU ${target_cpu_type}" "$LINENO" 5
12674 fi
12675
12676 if test ! -r ${srcdir}/config/obj-${obj_format}.c; then
12677 as_fn_error "GAS does not have support for object file format ${obj_format}" "$LINENO" 5
12678 fi
12679
12680 # Some COFF configurations want these random other flags set.
12681 case ${obj_format} in
12682 coff)
12683 case ${target_cpu_type} in
12684 i386)
12685 $as_echo "#define I386COFF 1" >>confdefs.h
12686 ;;
12687 m68k)
12688 $as_echo "#define M68KCOFF 1" >>confdefs.h
12689 ;;
12690 m88k)
12691 $as_echo "#define M88KCOFF 1" >>confdefs.h
12692 ;;
12693 x86_64)
12694 $as_echo "#define I386COFF 1" >>confdefs.h
12695 ;;
12696 esac
12697 ;;
12698 esac
12699
12700 # Getting this done right is going to be a bitch. Each configuration specified
12701 # with --enable-targets=... should be checked for environment, format, cpu
12702 # setting.
12703 #
12704 # For each configuration, the necessary object file support code must be linked
12705 # in. This might be only one, it might be up to four. The necessary emulation
12706 # code needs to be provided, too.
12707 #
12708 # And then there's "--enable-targets=all"....
12709 #
12710 # For now, just always do it for MIPS ELF configurations. Sigh.
12711
12712 formats="${obj_format}"
12713 emfiles=""
12714 EMULATIONS=""
12715 _gas_uniq_list="$emulations"
12716 _gas_uniq_newlist=""
12717 for _gas_uniq_i in _gas_uniq_dummy $_gas_uniq_list ; do
12718 case $_gas_uniq_i in
12719 _gas_uniq_dummy) ;;
12720 *) case " $_gas_uniq_newlist " in
12721 *" $_gas_uniq_i "*) ;;
12722 *) _gas_uniq_newlist="$_gas_uniq_newlist $_gas_uniq_i" ;;
12723 esac ;;
12724 esac
12725 done
12726 emulations=$_gas_uniq_newlist
12727
12728 for em in . $emulations ; do
12729 case $em in
12730 .) continue ;;
12731 mipsbelf | mipslelf | mipself)
12732 fmt=elf file=mipself ;;
12733 *coff)
12734 fmt=coff file=$em ;;
12735 *aout)
12736 fmt=aout file=$em ;;
12737 *elf)
12738 fmt=elf file=$em ;;
12739 esac
12740 formats="$formats $fmt"
12741 emfiles="$emfiles e-$file.o"
12742 EMULATIONS="$EMULATIONS &$em,"
12743 done
12744 _gas_uniq_list="$formats"
12745 _gas_uniq_newlist=""
12746 for _gas_uniq_i in _gas_uniq_dummy $_gas_uniq_list ; do
12747 case $_gas_uniq_i in
12748 _gas_uniq_dummy) ;;
12749 *) case " $_gas_uniq_newlist " in
12750 *" $_gas_uniq_i "*) ;;
12751 *) _gas_uniq_newlist="$_gas_uniq_newlist $_gas_uniq_i" ;;
12752 esac ;;
12753 esac
12754 done
12755 formats=$_gas_uniq_newlist
12756
12757 _gas_uniq_list="$emfiles"
12758 _gas_uniq_newlist=""
12759 for _gas_uniq_i in _gas_uniq_dummy $_gas_uniq_list ; do
12760 case $_gas_uniq_i in
12761 _gas_uniq_dummy) ;;
12762 *) case " $_gas_uniq_newlist " in
12763 *" $_gas_uniq_i "*) ;;
12764 *) _gas_uniq_newlist="$_gas_uniq_newlist $_gas_uniq_i" ;;
12765 esac ;;
12766 esac
12767 done
12768 emfiles=$_gas_uniq_newlist
12769
12770 if test `set . $formats ; shift ; echo $#` -gt 1 ; then
12771 for fmt in $formats ; do
12772 case $fmt in
12773 aout)
12774 $as_echo "#define OBJ_MAYBE_AOUT 1" >>confdefs.h
12775 ;;
12776 bout)
12777 $as_echo "#define OBJ_MAYBE_BOUT 1" >>confdefs.h
12778 ;;
12779 coff)
12780 $as_echo "#define OBJ_MAYBE_COFF 1" >>confdefs.h
12781 ;;
12782 ecoff)
12783 $as_echo "#define OBJ_MAYBE_ECOFF 1" >>confdefs.h
12784 ;;
12785 elf)
12786 $as_echo "#define OBJ_MAYBE_ELF 1" >>confdefs.h
12787 ;;
12788 generic)
12789 $as_echo "#define OBJ_MAYBE_GENERIC 1" >>confdefs.h
12790 ;;
12791 som)
12792 $as_echo "#define OBJ_MAYBE_SOM 1" >>confdefs.h
12793 ;;
12794 esac
12795 extra_objects="$extra_objects obj-$fmt.o"
12796 done
12797 obj_format=multi
12798 fi
12799 if test `set . $emfiles ; shift ; echo $#` -gt 0 ; then
12800 DEFAULT_EMULATION=`set . $emulations ; echo $2`
12801 # e-mipself has more than one emulation per file, e-i386* has just one at the
12802 # moment. If only one emulation is specified, then don't define
12803 # USE_EMULATIONS or include any of the e-files as they will only be bloat.
12804 case "${obj_format}${emfiles}" in
12805 multi* | *mipself*)
12806 extra_objects="$extra_objects $emfiles"
12807
12808 $as_echo "#define USE_EMULATIONS 1" >>confdefs.h
12809 ;;
12810 esac
12811 fi
12812
12813
12814 cat >>confdefs.h <<_ACEOF
12815 #define EMULATIONS $EMULATIONS
12816 _ACEOF
12817
12818
12819 cat >>confdefs.h <<_ACEOF
12820 #define DEFAULT_EMULATION "$DEFAULT_EMULATION"
12821 _ACEOF
12822
12823
12824 reject_dev_configs=yes
12825
12826 case ${reject_dev_configs}-${dev} in
12827 yes-yes) # Oops.
12828 as_fn_error "GAS does not support the ${generic_target} configuration." "$LINENO" 5
12829 ;;
12830 esac
12831
12832
12833
12834
12835
12836
12837
12838 # do we need the opcodes library?
12839 case "${need_opcodes}" in
12840 yes)
12841 OPCODES_LIB=../opcodes/libopcodes.la
12842 ;;
12843 esac
12844
12845
12846
12847
12848 cat >>confdefs.h <<_ACEOF
12849 #define TARGET_ALIAS "${target_alias}"
12850 _ACEOF
12851
12852
12853 cat >>confdefs.h <<_ACEOF
12854 #define TARGET_CANONICAL "${target}"
12855 _ACEOF
12856
12857
12858 cat >>confdefs.h <<_ACEOF
12859 #define TARGET_CPU "${target_cpu}"
12860 _ACEOF
12861
12862
12863 cat >>confdefs.h <<_ACEOF
12864 #define TARGET_VENDOR "${target_vendor}"
12865 _ACEOF
12866
12867
12868 cat >>confdefs.h <<_ACEOF
12869 #define TARGET_OS "${target_os}"
12870 _ACEOF
12871
12872
12873 for ac_prog in 'bison -y' byacc
12874 do
12875 # Extract the first word of "$ac_prog", so it can be a program name with args.
12876 set dummy $ac_prog; ac_word=$2
12877 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12878 $as_echo_n "checking for $ac_word... " >&6; }
12879 if test "${ac_cv_prog_YACC+set}" = set; then :
12880 $as_echo_n "(cached) " >&6
12881 else
12882 if test -n "$YACC"; then
12883 ac_cv_prog_YACC="$YACC" # Let the user override the test.
12884 else
12885 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12886 for as_dir in $PATH
12887 do
12888 IFS=$as_save_IFS
12889 test -z "$as_dir" && as_dir=.
12890 for ac_exec_ext in '' $ac_executable_extensions; do
12891 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12892 ac_cv_prog_YACC="$ac_prog"
12893 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12894 break 2
12895 fi
12896 done
12897 done
12898 IFS=$as_save_IFS
12899
12900 fi
12901 fi
12902 YACC=$ac_cv_prog_YACC
12903 if test -n "$YACC"; then
12904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5
12905 $as_echo "$YACC" >&6; }
12906 else
12907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12908 $as_echo "no" >&6; }
12909 fi
12910
12911
12912 test -n "$YACC" && break
12913 done
12914 test -n "$YACC" || YACC="yacc"
12915
12916 for ac_prog in flex lex
12917 do
12918 # Extract the first word of "$ac_prog", so it can be a program name with args.
12919 set dummy $ac_prog; ac_word=$2
12920 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12921 $as_echo_n "checking for $ac_word... " >&6; }
12922 if test "${ac_cv_prog_LEX+set}" = set; then :
12923 $as_echo_n "(cached) " >&6
12924 else
12925 if test -n "$LEX"; then
12926 ac_cv_prog_LEX="$LEX" # Let the user override the test.
12927 else
12928 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12929 for as_dir in $PATH
12930 do
12931 IFS=$as_save_IFS
12932 test -z "$as_dir" && as_dir=.
12933 for ac_exec_ext in '' $ac_executable_extensions; do
12934 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12935 ac_cv_prog_LEX="$ac_prog"
12936 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12937 break 2
12938 fi
12939 done
12940 done
12941 IFS=$as_save_IFS
12942
12943 fi
12944 fi
12945 LEX=$ac_cv_prog_LEX
12946 if test -n "$LEX"; then
12947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LEX" >&5
12948 $as_echo "$LEX" >&6; }
12949 else
12950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12951 $as_echo "no" >&6; }
12952 fi
12953
12954
12955 test -n "$LEX" && break
12956 done
12957 test -n "$LEX" || LEX=":"
12958
12959 case "$LEX" in
12960 :|*"missing "*) ;;
12961 *) cat >conftest.l <<_ACEOF
12962 %%
12963 a { ECHO; }
12964 b { REJECT; }
12965 c { yymore (); }
12966 d { yyless (1); }
12967 e { yyless (input () != 0); }
12968 f { unput (yytext[0]); }
12969 . { BEGIN INITIAL; }
12970 %%
12971 #ifdef YYTEXT_POINTER
12972 extern char *yytext;
12973 #endif
12974 int
12975 main (void)
12976 {
12977 return ! yylex () + ! yywrap ();
12978 }
12979 _ACEOF
12980 { { ac_try="$LEX conftest.l"
12981 case "(($ac_try" in
12982 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12983 *) ac_try_echo=$ac_try;;
12984 esac
12985 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
12986 $as_echo "$ac_try_echo"; } >&5
12987 (eval "$LEX conftest.l") 2>&5
12988 ac_status=$?
12989 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12990 test $ac_status = 0; }
12991 { $as_echo "$as_me:${as_lineno-$LINENO}: checking lex output file root" >&5
12992 $as_echo_n "checking lex output file root... " >&6; }
12993 if test "${ac_cv_prog_lex_root+set}" = set; then :
12994 $as_echo_n "(cached) " >&6
12995 else
12996
12997 if test -f lex.yy.c; then
12998 ac_cv_prog_lex_root=lex.yy
12999 elif test -f lexyy.c; then
13000 ac_cv_prog_lex_root=lexyy
13001 else
13002 as_fn_error "cannot find output from $LEX; giving up" "$LINENO" 5
13003 fi
13004 fi
13005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_root" >&5
13006 $as_echo "$ac_cv_prog_lex_root" >&6; }
13007 LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
13008
13009 if test -z "${LEXLIB+set}"; then
13010 { $as_echo "$as_me:${as_lineno-$LINENO}: checking lex library" >&5
13011 $as_echo_n "checking lex library... " >&6; }
13012 if test "${ac_cv_lib_lex+set}" = set; then :
13013 $as_echo_n "(cached) " >&6
13014 else
13015
13016 ac_save_LIBS=$LIBS
13017 ac_cv_lib_lex='none needed'
13018 for ac_lib in '' -lfl -ll; do
13019 LIBS="$ac_lib $ac_save_LIBS"
13020 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13021 /* end confdefs.h. */
13022 `cat $LEX_OUTPUT_ROOT.c`
13023 _ACEOF
13024 if ac_fn_c_try_link "$LINENO"; then :
13025 ac_cv_lib_lex=$ac_lib
13026 fi
13027 rm -f core conftest.err conftest.$ac_objext \
13028 conftest$ac_exeext conftest.$ac_ext
13029 test "$ac_cv_lib_lex" != 'none needed' && break
13030 done
13031 LIBS=$ac_save_LIBS
13032
13033 fi
13034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lex" >&5
13035 $as_echo "$ac_cv_lib_lex" >&6; }
13036 test "$ac_cv_lib_lex" != 'none needed' && LEXLIB=$ac_cv_lib_lex
13037 fi
13038
13039
13040 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether yytext is a pointer" >&5
13041 $as_echo_n "checking whether yytext is a pointer... " >&6; }
13042 if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then :
13043 $as_echo_n "(cached) " >&6
13044 else
13045 # POSIX says lex can declare yytext either as a pointer or an array; the
13046 # default is implementation-dependent. Figure out which it is, since
13047 # not all implementations provide the %pointer and %array declarations.
13048 ac_cv_prog_lex_yytext_pointer=no
13049 ac_save_LIBS=$LIBS
13050 LIBS="$LEXLIB $ac_save_LIBS"
13051 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13052 /* end confdefs.h. */
13053 #define YYTEXT_POINTER 1
13054 `cat $LEX_OUTPUT_ROOT.c`
13055 _ACEOF
13056 if ac_fn_c_try_link "$LINENO"; then :
13057 ac_cv_prog_lex_yytext_pointer=yes
13058 fi
13059 rm -f core conftest.err conftest.$ac_objext \
13060 conftest$ac_exeext conftest.$ac_ext
13061 LIBS=$ac_save_LIBS
13062
13063 fi
13064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_yytext_pointer" >&5
13065 $as_echo "$ac_cv_prog_lex_yytext_pointer" >&6; }
13066 if test $ac_cv_prog_lex_yytext_pointer = yes; then
13067
13068 $as_echo "#define YYTEXT_POINTER 1" >>confdefs.h
13069
13070 fi
13071 rm -f conftest.l $LEX_OUTPUT_ROOT.c
13072 ;;
13073 esac
13074 if test "$LEX" = :; then
13075 LEX=${am_missing_run}flex
13076 fi
13077
13078 ALL_LINGUAS="fr tr es rw id ru fi ja zh_CN"
13079 # If we haven't got the data from the intl directory,
13080 # assume NLS is disabled.
13081 USE_NLS=no
13082 LIBINTL=
13083 LIBINTL_DEP=
13084 INCINTL=
13085 XGETTEXT=
13086 GMSGFMT=
13087 POSUB=
13088
13089 if test -f ../intl/config.intl; then
13090 . ../intl/config.intl
13091 fi
13092 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
13093 $as_echo_n "checking whether NLS is requested... " >&6; }
13094 if test x"$USE_NLS" != xyes; then
13095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13096 $as_echo "no" >&6; }
13097 else
13098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13099 $as_echo "yes" >&6; }
13100
13101 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
13102
13103
13104 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catalogs to be installed" >&5
13105 $as_echo_n "checking for catalogs to be installed... " >&6; }
13106 # Look for .po and .gmo files in the source directory.
13107 CATALOGS=
13108 XLINGUAS=
13109 for cat in $srcdir/po/*.gmo $srcdir/po/*.po; do
13110 # If there aren't any .gmo files the shell will give us the
13111 # literal string "../path/to/srcdir/po/*.gmo" which has to be
13112 # weeded out.
13113 case "$cat" in *\**)
13114 continue;;
13115 esac
13116 # The quadruple backslash is collapsed to a double backslash
13117 # by the backticks, then collapsed again by the double quotes,
13118 # leaving us with one backslash in the sed expression (right
13119 # before the dot that mustn't act as a wildcard).
13120 cat=`echo $cat | sed -e "s!$srcdir/po/!!" -e "s!\\\\.po!.gmo!"`
13121 lang=`echo $cat | sed -e "s!\\\\.gmo!!"`
13122 # The user is allowed to set LINGUAS to a list of languages to
13123 # install catalogs for. If it's empty that means "all of them."
13124 if test "x$LINGUAS" = x; then
13125 CATALOGS="$CATALOGS $cat"
13126 XLINGUAS="$XLINGUAS $lang"
13127 else
13128 case "$LINGUAS" in *$lang*)
13129 CATALOGS="$CATALOGS $cat"
13130 XLINGUAS="$XLINGUAS $lang"
13131 ;;
13132 esac
13133 fi
13134 done
13135 LINGUAS="$XLINGUAS"
13136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINGUAS" >&5
13137 $as_echo "$LINGUAS" >&6; }
13138
13139
13140 DATADIRNAME=share
13141
13142 INSTOBJEXT=.mo
13143
13144 GENCAT=gencat
13145
13146 CATOBJEXT=.gmo
13147
13148 fi
13149
13150 MKINSTALLDIRS=
13151 if test -n "$ac_aux_dir"; then
13152 case "$ac_aux_dir" in
13153 /*) MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" ;;
13154 *) MKINSTALLDIRS="\$(top_builddir)/$ac_aux_dir/mkinstalldirs" ;;
13155 esac
13156 fi
13157 if test -z "$MKINSTALLDIRS"; then
13158 MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
13159 fi
13160
13161
13162
13163 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
13164 $as_echo_n "checking whether NLS is requested... " >&6; }
13165 # Check whether --enable-nls was given.
13166 if test "${enable_nls+set}" = set; then :
13167 enableval=$enable_nls; USE_NLS=$enableval
13168 else
13169 USE_NLS=yes
13170 fi
13171
13172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
13173 $as_echo "$USE_NLS" >&6; }
13174
13175
13176
13177
13178
13179
13180 # Prepare PATH_SEPARATOR.
13181 # The user is always right.
13182 if test "${PATH_SEPARATOR+set}" != set; then
13183 echo "#! /bin/sh" >conf$$.sh
13184 echo "exit 0" >>conf$$.sh
13185 chmod +x conf$$.sh
13186 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
13187 PATH_SEPARATOR=';'
13188 else
13189 PATH_SEPARATOR=:
13190 fi
13191 rm -f conf$$.sh
13192 fi
13193
13194 # Find out how to test for executable files. Don't use a zero-byte file,
13195 # as systems may use methods other than mode bits to determine executability.
13196 cat >conf$$.file <<_ASEOF
13197 #! /bin/sh
13198 exit 0
13199 _ASEOF
13200 chmod +x conf$$.file
13201 if test -x conf$$.file >/dev/null 2>&1; then
13202 ac_executable_p="test -x"
13203 else
13204 ac_executable_p="test -f"
13205 fi
13206 rm -f conf$$.file
13207
13208 # Extract the first word of "msgfmt", so it can be a program name with args.
13209 set dummy msgfmt; ac_word=$2
13210 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13211 $as_echo_n "checking for $ac_word... " >&6; }
13212 if test "${ac_cv_path_MSGFMT+set}" = set; then :
13213 $as_echo_n "(cached) " >&6
13214 else
13215 case "$MSGFMT" in
13216 [\\/]* | ?:[\\/]*)
13217 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
13218 ;;
13219 *)
13220 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
13221 for ac_dir in $PATH; do
13222 IFS="$ac_save_IFS"
13223 test -z "$ac_dir" && ac_dir=.
13224 for ac_exec_ext in '' $ac_executable_extensions; do
13225 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
13226 if $ac_dir/$ac_word --statistics /dev/null >/dev/null 2>&1 &&
13227 (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
13228 ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
13229 break 2
13230 fi
13231 fi
13232 done
13233 done
13234 IFS="$ac_save_IFS"
13235 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
13236 ;;
13237 esac
13238 fi
13239 MSGFMT="$ac_cv_path_MSGFMT"
13240 if test "$MSGFMT" != ":"; then
13241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
13242 $as_echo "$MSGFMT" >&6; }
13243 else
13244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13245 $as_echo "no" >&6; }
13246 fi
13247
13248 # Extract the first word of "gmsgfmt", so it can be a program name with args.
13249 set dummy gmsgfmt; ac_word=$2
13250 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13251 $as_echo_n "checking for $ac_word... " >&6; }
13252 if test "${ac_cv_path_GMSGFMT+set}" = set; then :
13253 $as_echo_n "(cached) " >&6
13254 else
13255 case $GMSGFMT in
13256 [\\/]* | ?:[\\/]*)
13257 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
13258 ;;
13259 *)
13260 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13261 for as_dir in $PATH
13262 do
13263 IFS=$as_save_IFS
13264 test -z "$as_dir" && as_dir=.
13265 for ac_exec_ext in '' $ac_executable_extensions; do
13266 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13267 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
13268 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13269 break 2
13270 fi
13271 done
13272 done
13273 IFS=$as_save_IFS
13274
13275 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
13276 ;;
13277 esac
13278 fi
13279 GMSGFMT=$ac_cv_path_GMSGFMT
13280 if test -n "$GMSGFMT"; then
13281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMSGFMT" >&5
13282 $as_echo "$GMSGFMT" >&6; }
13283 else
13284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13285 $as_echo "no" >&6; }
13286 fi
13287
13288
13289
13290
13291 # Prepare PATH_SEPARATOR.
13292 # The user is always right.
13293 if test "${PATH_SEPARATOR+set}" != set; then
13294 echo "#! /bin/sh" >conf$$.sh
13295 echo "exit 0" >>conf$$.sh
13296 chmod +x conf$$.sh
13297 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
13298 PATH_SEPARATOR=';'
13299 else
13300 PATH_SEPARATOR=:
13301 fi
13302 rm -f conf$$.sh
13303 fi
13304
13305 # Find out how to test for executable files. Don't use a zero-byte file,
13306 # as systems may use methods other than mode bits to determine executability.
13307 cat >conf$$.file <<_ASEOF
13308 #! /bin/sh
13309 exit 0
13310 _ASEOF
13311 chmod +x conf$$.file
13312 if test -x conf$$.file >/dev/null 2>&1; then
13313 ac_executable_p="test -x"
13314 else
13315 ac_executable_p="test -f"
13316 fi
13317 rm -f conf$$.file
13318
13319 # Extract the first word of "xgettext", so it can be a program name with args.
13320 set dummy xgettext; ac_word=$2
13321 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13322 $as_echo_n "checking for $ac_word... " >&6; }
13323 if test "${ac_cv_path_XGETTEXT+set}" = set; then :
13324 $as_echo_n "(cached) " >&6
13325 else
13326 case "$XGETTEXT" in
13327 [\\/]* | ?:[\\/]*)
13328 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
13329 ;;
13330 *)
13331 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
13332 for ac_dir in $PATH; do
13333 IFS="$ac_save_IFS"
13334 test -z "$ac_dir" && ac_dir=.
13335 for ac_exec_ext in '' $ac_executable_extensions; do
13336 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
13337 if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
13338 (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
13339 ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
13340 break 2
13341 fi
13342 fi
13343 done
13344 done
13345 IFS="$ac_save_IFS"
13346 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
13347 ;;
13348 esac
13349 fi
13350 XGETTEXT="$ac_cv_path_XGETTEXT"
13351 if test "$XGETTEXT" != ":"; then
13352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5
13353 $as_echo "$XGETTEXT" >&6; }
13354 else
13355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13356 $as_echo "no" >&6; }
13357 fi
13358
13359 rm -f messages.po
13360
13361
13362 # Prepare PATH_SEPARATOR.
13363 # The user is always right.
13364 if test "${PATH_SEPARATOR+set}" != set; then
13365 echo "#! /bin/sh" >conf$$.sh
13366 echo "exit 0" >>conf$$.sh
13367 chmod +x conf$$.sh
13368 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
13369 PATH_SEPARATOR=';'
13370 else
13371 PATH_SEPARATOR=:
13372 fi
13373 rm -f conf$$.sh
13374 fi
13375
13376 # Find out how to test for executable files. Don't use a zero-byte file,
13377 # as systems may use methods other than mode bits to determine executability.
13378 cat >conf$$.file <<_ASEOF
13379 #! /bin/sh
13380 exit 0
13381 _ASEOF
13382 chmod +x conf$$.file
13383 if test -x conf$$.file >/dev/null 2>&1; then
13384 ac_executable_p="test -x"
13385 else
13386 ac_executable_p="test -f"
13387 fi
13388 rm -f conf$$.file
13389
13390 # Extract the first word of "msgmerge", so it can be a program name with args.
13391 set dummy msgmerge; ac_word=$2
13392 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13393 $as_echo_n "checking for $ac_word... " >&6; }
13394 if test "${ac_cv_path_MSGMERGE+set}" = set; then :
13395 $as_echo_n "(cached) " >&6
13396 else
13397 case "$MSGMERGE" in
13398 [\\/]* | ?:[\\/]*)
13399 ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
13400 ;;
13401 *)
13402 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
13403 for ac_dir in $PATH; do
13404 IFS="$ac_save_IFS"
13405 test -z "$ac_dir" && ac_dir=.
13406 for ac_exec_ext in '' $ac_executable_extensions; do
13407 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
13408 if $ac_dir/$ac_word --update -q /dev/null /dev/null >/dev/null 2>&1; then
13409 ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
13410 break 2
13411 fi
13412 fi
13413 done
13414 done
13415 IFS="$ac_save_IFS"
13416 test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
13417 ;;
13418 esac
13419 fi
13420 MSGMERGE="$ac_cv_path_MSGMERGE"
13421 if test "$MSGMERGE" != ":"; then
13422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGMERGE" >&5
13423 $as_echo "$MSGMERGE" >&6; }
13424 else
13425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13426 $as_echo "no" >&6; }
13427 fi
13428
13429
13430 if test "$GMSGFMT" != ":"; then
13431 if $GMSGFMT --statistics /dev/null >/dev/null 2>&1 &&
13432 (if $GMSGFMT --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
13433 : ;
13434 else
13435 GMSGFMT=`echo "$GMSGFMT" | sed -e 's,^.*/,,'`
13436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found $GMSGFMT program is not GNU msgfmt; ignore it" >&5
13437 $as_echo "found $GMSGFMT program is not GNU msgfmt; ignore it" >&6; }
13438 GMSGFMT=":"
13439 fi
13440 fi
13441
13442 if test "$XGETTEXT" != ":"; then
13443 if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
13444 (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
13445 : ;
13446 else
13447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found xgettext program is not GNU xgettext; ignore it" >&5
13448 $as_echo "found xgettext program is not GNU xgettext; ignore it" >&6; }
13449 XGETTEXT=":"
13450 fi
13451 rm -f messages.po
13452 fi
13453
13454 ac_config_commands="$ac_config_commands default-1"
13455
13456
13457
13458
13459 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
13460 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
13461 # Check whether --enable-maintainer-mode was given.
13462 if test "${enable_maintainer_mode+set}" = set; then :
13463 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
13464 else
13465 USE_MAINTAINER_MODE=no
13466 fi
13467
13468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
13469 $as_echo "$USE_MAINTAINER_MODE" >&6; }
13470 if test $USE_MAINTAINER_MODE = yes; then
13471 MAINTAINER_MODE_TRUE=
13472 MAINTAINER_MODE_FALSE='#'
13473 else
13474 MAINTAINER_MODE_TRUE='#'
13475 MAINTAINER_MODE_FALSE=
13476 fi
13477
13478 MAINT=$MAINTAINER_MODE_TRUE
13479
13480
13481 if false; then
13482 GENINSRC_NEVER_TRUE=
13483 GENINSRC_NEVER_FALSE='#'
13484 else
13485 GENINSRC_NEVER_TRUE='#'
13486 GENINSRC_NEVER_FALSE=
13487 fi
13488
13489
13490
13491 for ac_header in string.h stdlib.h memory.h strings.h unistd.h errno.h sys/types.h limits.h locale.h time.h sys/stat.h
13492 do :
13493 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
13494 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
13495 eval as_val=\$$as_ac_Header
13496 if test "x$as_val" = x""yes; then :
13497 cat >>confdefs.h <<_ACEOF
13498 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
13499 _ACEOF
13500
13501 fi
13502
13503 done
13504
13505 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether string.h and strings.h may both be included" >&5
13506 $as_echo_n "checking whether string.h and strings.h may both be included... " >&6; }
13507 if test "${gcc_cv_header_string+set}" = set; then :
13508 $as_echo_n "(cached) " >&6
13509 else
13510 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13511 /* end confdefs.h. */
13512 #include <string.h>
13513 #include <strings.h>
13514 int
13515 main ()
13516 {
13517
13518 ;
13519 return 0;
13520 }
13521 _ACEOF
13522 if ac_fn_c_try_compile "$LINENO"; then :
13523 gcc_cv_header_string=yes
13524 else
13525 gcc_cv_header_string=no
13526 fi
13527 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13528 fi
13529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_string" >&5
13530 $as_echo "$gcc_cv_header_string" >&6; }
13531 if test $gcc_cv_header_string = yes; then
13532
13533 $as_echo "#define STRING_WITH_STRINGS 1" >>confdefs.h
13534
13535 fi
13536
13537
13538 # Put this here so that autoconf's "cross-compiling" message doesn't confuse
13539 # people who are not cross-compiling but are compiling cross-assemblers.
13540 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiling a cross-assembler" >&5
13541 $as_echo_n "checking whether compiling a cross-assembler... " >&6; }
13542 if test "${host}" = "${target}"; then
13543 cross_gas=no
13544 else
13545 cross_gas=yes
13546
13547 $as_echo "#define CROSS_COMPILE 1" >>confdefs.h
13548
13549 fi
13550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_gas" >&5
13551 $as_echo "$cross_gas" >&6; }
13552
13553 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
13554 # for constant arguments. Useless!
13555 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
13556 $as_echo_n "checking for working alloca.h... " >&6; }
13557 if test "${ac_cv_working_alloca_h+set}" = set; then :
13558 $as_echo_n "(cached) " >&6
13559 else
13560 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13561 /* end confdefs.h. */
13562 #include <alloca.h>
13563 int
13564 main ()
13565 {
13566 char *p = (char *) alloca (2 * sizeof (int));
13567 if (p) return 0;
13568 ;
13569 return 0;
13570 }
13571 _ACEOF
13572 if ac_fn_c_try_link "$LINENO"; then :
13573 ac_cv_working_alloca_h=yes
13574 else
13575 ac_cv_working_alloca_h=no
13576 fi
13577 rm -f core conftest.err conftest.$ac_objext \
13578 conftest$ac_exeext conftest.$ac_ext
13579 fi
13580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
13581 $as_echo "$ac_cv_working_alloca_h" >&6; }
13582 if test $ac_cv_working_alloca_h = yes; then
13583
13584 $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
13585
13586 fi
13587
13588 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
13589 $as_echo_n "checking for alloca... " >&6; }
13590 if test "${ac_cv_func_alloca_works+set}" = set; then :
13591 $as_echo_n "(cached) " >&6
13592 else
13593 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13594 /* end confdefs.h. */
13595 #ifdef __GNUC__
13596 # define alloca __builtin_alloca
13597 #else
13598 # ifdef _MSC_VER
13599 # include <malloc.h>
13600 # define alloca _alloca
13601 # else
13602 # ifdef HAVE_ALLOCA_H
13603 # include <alloca.h>
13604 # else
13605 # ifdef _AIX
13606 #pragma alloca
13607 # else
13608 # ifndef alloca /* predefined by HP cc +Olibcalls */
13609 char *alloca ();
13610 # endif
13611 # endif
13612 # endif
13613 # endif
13614 #endif
13615
13616 int
13617 main ()
13618 {
13619 char *p = (char *) alloca (1);
13620 if (p) return 0;
13621 ;
13622 return 0;
13623 }
13624 _ACEOF
13625 if ac_fn_c_try_link "$LINENO"; then :
13626 ac_cv_func_alloca_works=yes
13627 else
13628 ac_cv_func_alloca_works=no
13629 fi
13630 rm -f core conftest.err conftest.$ac_objext \
13631 conftest$ac_exeext conftest.$ac_ext
13632 fi
13633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
13634 $as_echo "$ac_cv_func_alloca_works" >&6; }
13635
13636 if test $ac_cv_func_alloca_works = yes; then
13637
13638 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
13639
13640 else
13641 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
13642 # that cause trouble. Some versions do not even contain alloca or
13643 # contain a buggy version. If you still want to use their alloca,
13644 # use ar to extract alloca.o from them instead of compiling alloca.c.
13645
13646 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
13647
13648 $as_echo "#define C_ALLOCA 1" >>confdefs.h
13649
13650
13651 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
13652 $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
13653 if test "${ac_cv_os_cray+set}" = set; then :
13654 $as_echo_n "(cached) " >&6
13655 else
13656 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13657 /* end confdefs.h. */
13658 #if defined CRAY && ! defined CRAY2
13659 webecray
13660 #else
13661 wenotbecray
13662 #endif
13663
13664 _ACEOF
13665 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13666 $EGREP "webecray" >/dev/null 2>&1; then :
13667 ac_cv_os_cray=yes
13668 else
13669 ac_cv_os_cray=no
13670 fi
13671 rm -f conftest*
13672
13673 fi
13674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
13675 $as_echo "$ac_cv_os_cray" >&6; }
13676 if test $ac_cv_os_cray = yes; then
13677 for ac_func in _getb67 GETB67 getb67; do
13678 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13679 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
13680 eval as_val=\$$as_ac_var
13681 if test "x$as_val" = x""yes; then :
13682
13683 cat >>confdefs.h <<_ACEOF
13684 #define CRAY_STACKSEG_END $ac_func
13685 _ACEOF
13686
13687 break
13688 fi
13689
13690 done
13691 fi
13692
13693 { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
13694 $as_echo_n "checking stack direction for C alloca... " >&6; }
13695 if test "${ac_cv_c_stack_direction+set}" = set; then :
13696 $as_echo_n "(cached) " >&6
13697 else
13698 if test "$cross_compiling" = yes; then :
13699 ac_cv_c_stack_direction=0
13700 else
13701 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13702 /* end confdefs.h. */
13703 $ac_includes_default
13704 int
13705 find_stack_direction ()
13706 {
13707 static char *addr = 0;
13708 auto char dummy;
13709 if (addr == 0)
13710 {
13711 addr = &dummy;
13712 return find_stack_direction ();
13713 }
13714 else
13715 return (&dummy > addr) ? 1 : -1;
13716 }
13717
13718 int
13719 main ()
13720 {
13721 return find_stack_direction () < 0;
13722 }
13723 _ACEOF
13724 if ac_fn_c_try_run "$LINENO"; then :
13725 ac_cv_c_stack_direction=1
13726 else
13727 ac_cv_c_stack_direction=-1
13728 fi
13729 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13730 conftest.$ac_objext conftest.beam conftest.$ac_ext
13731 fi
13732
13733 fi
13734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
13735 $as_echo "$ac_cv_c_stack_direction" >&6; }
13736 cat >>confdefs.h <<_ACEOF
13737 #define STACK_DIRECTION $ac_cv_c_stack_direction
13738 _ACEOF
13739
13740
13741 fi
13742
13743 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
13744 $as_echo_n "checking for inline... " >&6; }
13745 if test "${ac_cv_c_inline+set}" = set; then :
13746 $as_echo_n "(cached) " >&6
13747 else
13748 ac_cv_c_inline=no
13749 for ac_kw in inline __inline__ __inline; do
13750 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13751 /* end confdefs.h. */
13752 #ifndef __cplusplus
13753 typedef int foo_t;
13754 static $ac_kw foo_t static_foo () {return 0; }
13755 $ac_kw foo_t foo () {return 0; }
13756 #endif
13757
13758 _ACEOF
13759 if ac_fn_c_try_compile "$LINENO"; then :
13760 ac_cv_c_inline=$ac_kw
13761 fi
13762 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13763 test "$ac_cv_c_inline" != no && break
13764 done
13765
13766 fi
13767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
13768 $as_echo "$ac_cv_c_inline" >&6; }
13769
13770 case $ac_cv_c_inline in
13771 inline | yes) ;;
13772 *)
13773 case $ac_cv_c_inline in
13774 no) ac_val=;;
13775 *) ac_val=$ac_cv_c_inline;;
13776 esac
13777 cat >>confdefs.h <<_ACEOF
13778 #ifndef __cplusplus
13779 #define inline $ac_val
13780 #endif
13781 _ACEOF
13782 ;;
13783 esac
13784
13785
13786 # VMS doesn't have unlink.
13787 for ac_func in unlink remove
13788 do :
13789 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13790 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
13791 eval as_val=\$$as_ac_var
13792 if test "x$as_val" = x""yes; then :
13793 cat >>confdefs.h <<_ACEOF
13794 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
13795 _ACEOF
13796 break
13797 fi
13798 done
13799
13800 for ac_func in sbrk setlocale
13801 do :
13802 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13803 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
13804 eval as_val=\$$as_ac_var
13805 if test "x$as_val" = x""yes; then :
13806 cat >>confdefs.h <<_ACEOF
13807 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
13808 _ACEOF
13809
13810 fi
13811 done
13812
13813
13814
13815 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LC_MESSAGES" >&5
13816 $as_echo_n "checking for LC_MESSAGES... " >&6; }
13817 if test "${am_cv_val_LC_MESSAGES+set}" = set; then :
13818 $as_echo_n "(cached) " >&6
13819 else
13820 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13821 /* end confdefs.h. */
13822 #include <locale.h>
13823 int
13824 main ()
13825 {
13826 return LC_MESSAGES
13827 ;
13828 return 0;
13829 }
13830 _ACEOF
13831 if ac_fn_c_try_link "$LINENO"; then :
13832 am_cv_val_LC_MESSAGES=yes
13833 else
13834 am_cv_val_LC_MESSAGES=no
13835 fi
13836 rm -f core conftest.err conftest.$ac_objext \
13837 conftest$ac_exeext conftest.$ac_ext
13838 fi
13839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_val_LC_MESSAGES" >&5
13840 $as_echo "$am_cv_val_LC_MESSAGES" >&6; }
13841 if test $am_cv_val_LC_MESSAGES = yes; then
13842
13843 $as_echo "#define HAVE_LC_MESSAGES 1" >>confdefs.h
13844
13845 fi
13846
13847
13848 # do we need the math library?
13849 case "${need_libm}" in
13850 yes)
13851 LIBM=
13852 case $host in
13853 *-*-beos* | *-*-cegcc* | *-*-cygwin* | *-*-haiku* | *-*-pw32* | *-*-darwin*)
13854 # These system don't have libm, or don't need it
13855 ;;
13856 *-ncr-sysv4.3*)
13857 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _mwvalidcheckl in -lmw" >&5
13858 $as_echo_n "checking for _mwvalidcheckl in -lmw... " >&6; }
13859 if test "${ac_cv_lib_mw__mwvalidcheckl+set}" = set; then :
13860 $as_echo_n "(cached) " >&6
13861 else
13862 ac_check_lib_save_LIBS=$LIBS
13863 LIBS="-lmw $LIBS"
13864 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13865 /* end confdefs.h. */
13866
13867 /* Override any GCC internal prototype to avoid an error.
13868 Use char because int might match the return type of a GCC
13869 builtin and then its argument prototype would still apply. */
13870 #ifdef __cplusplus
13871 extern "C"
13872 #endif
13873 char _mwvalidcheckl ();
13874 int
13875 main ()
13876 {
13877 return _mwvalidcheckl ();
13878 ;
13879 return 0;
13880 }
13881 _ACEOF
13882 if ac_fn_c_try_link "$LINENO"; then :
13883 ac_cv_lib_mw__mwvalidcheckl=yes
13884 else
13885 ac_cv_lib_mw__mwvalidcheckl=no
13886 fi
13887 rm -f core conftest.err conftest.$ac_objext \
13888 conftest$ac_exeext conftest.$ac_ext
13889 LIBS=$ac_check_lib_save_LIBS
13890 fi
13891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mw__mwvalidcheckl" >&5
13892 $as_echo "$ac_cv_lib_mw__mwvalidcheckl" >&6; }
13893 if test "x$ac_cv_lib_mw__mwvalidcheckl" = x""yes; then :
13894 LIBM="-lmw"
13895 fi
13896
13897 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cos in -lm" >&5
13898 $as_echo_n "checking for cos in -lm... " >&6; }
13899 if test "${ac_cv_lib_m_cos+set}" = set; then :
13900 $as_echo_n "(cached) " >&6
13901 else
13902 ac_check_lib_save_LIBS=$LIBS
13903 LIBS="-lm $LIBS"
13904 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13905 /* end confdefs.h. */
13906
13907 /* Override any GCC internal prototype to avoid an error.
13908 Use char because int might match the return type of a GCC
13909 builtin and then its argument prototype would still apply. */
13910 #ifdef __cplusplus
13911 extern "C"
13912 #endif
13913 char cos ();
13914 int
13915 main ()
13916 {
13917 return cos ();
13918 ;
13919 return 0;
13920 }
13921 _ACEOF
13922 if ac_fn_c_try_link "$LINENO"; then :
13923 ac_cv_lib_m_cos=yes
13924 else
13925 ac_cv_lib_m_cos=no
13926 fi
13927 rm -f core conftest.err conftest.$ac_objext \
13928 conftest$ac_exeext conftest.$ac_ext
13929 LIBS=$ac_check_lib_save_LIBS
13930 fi
13931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_cos" >&5
13932 $as_echo "$ac_cv_lib_m_cos" >&6; }
13933 if test "x$ac_cv_lib_m_cos" = x""yes; then :
13934 LIBM="$LIBM -lm"
13935 fi
13936
13937 ;;
13938 *)
13939 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cos in -lm" >&5
13940 $as_echo_n "checking for cos in -lm... " >&6; }
13941 if test "${ac_cv_lib_m_cos+set}" = set; then :
13942 $as_echo_n "(cached) " >&6
13943 else
13944 ac_check_lib_save_LIBS=$LIBS
13945 LIBS="-lm $LIBS"
13946 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13947 /* end confdefs.h. */
13948
13949 /* Override any GCC internal prototype to avoid an error.
13950 Use char because int might match the return type of a GCC
13951 builtin and then its argument prototype would still apply. */
13952 #ifdef __cplusplus
13953 extern "C"
13954 #endif
13955 char cos ();
13956 int
13957 main ()
13958 {
13959 return cos ();
13960 ;
13961 return 0;
13962 }
13963 _ACEOF
13964 if ac_fn_c_try_link "$LINENO"; then :
13965 ac_cv_lib_m_cos=yes
13966 else
13967 ac_cv_lib_m_cos=no
13968 fi
13969 rm -f core conftest.err conftest.$ac_objext \
13970 conftest$ac_exeext conftest.$ac_ext
13971 LIBS=$ac_check_lib_save_LIBS
13972 fi
13973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_cos" >&5
13974 $as_echo "$ac_cv_lib_m_cos" >&6; }
13975 if test "x$ac_cv_lib_m_cos" = x""yes; then :
13976 LIBM="-lm"
13977 fi
13978
13979 ;;
13980 esac
13981
13982
13983
13984 ;;
13985 esac
13986
13987 # Some non-ANSI preprocessors botch requoting inside strings. That's bad
13988 # enough, but on some of those systems, the assert macro relies on requoting
13989 # working properly!
13990 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working assert macro" >&5
13991 $as_echo_n "checking for working assert macro... " >&6; }
13992 if test "${gas_cv_assert_ok+set}" = set; then :
13993 $as_echo_n "(cached) " >&6
13994 else
13995 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13996 /* end confdefs.h. */
13997 #include <assert.h>
13998 #include <stdio.h>
13999 int
14000 main ()
14001 {
14002
14003 /* check for requoting problems */
14004 static int a, b, c, d;
14005 static char *s;
14006 assert (!strcmp(s, "foo bar baz quux"));
14007 /* check for newline handling */
14008 assert (a == b
14009 || c == d);
14010
14011 ;
14012 return 0;
14013 }
14014 _ACEOF
14015 if ac_fn_c_try_link "$LINENO"; then :
14016 gas_cv_assert_ok=yes
14017 else
14018 gas_cv_assert_ok=no
14019 fi
14020 rm -f core conftest.err conftest.$ac_objext \
14021 conftest$ac_exeext conftest.$ac_ext
14022 fi
14023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gas_cv_assert_ok" >&5
14024 $as_echo "$gas_cv_assert_ok" >&6; }
14025 test $gas_cv_assert_ok = yes ||
14026 $as_echo "#define BROKEN_ASSERT 1" >>confdefs.h
14027
14028
14029
14030 # On some systems, the system header files may not declare malloc, realloc,
14031 # and free. There are places where gas needs these functions to have been
14032 # declared -- such as when taking their addresses.
14033 gas_test_headers="
14034 #ifdef HAVE_MEMORY_H
14035 #include <memory.h>
14036 #endif
14037 #ifdef HAVE_STRING_H
14038 #include <string.h>
14039 #else
14040 #ifdef HAVE_STRINGS_H
14041 #include <strings.h>
14042 #endif
14043 #endif
14044 #ifdef HAVE_STDLIB_H
14045 #include <stdlib.h>
14046 #endif
14047 #ifdef HAVE_UNISTD_H
14048 #include <unistd.h>
14049 #endif
14050 "
14051
14052 # Does errno.h declare errno, or do we have to add a separate declaration
14053 # for it?
14054
14055 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether declaration is required for errno" >&5
14056 $as_echo_n "checking whether declaration is required for errno... " >&6; }
14057 if test "${gas_cv_decl_needed_errno+set}" = set; then :
14058 $as_echo_n "(cached) " >&6
14059 else
14060 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14061 /* end confdefs.h. */
14062
14063 #ifdef HAVE_ERRNO_H
14064 #include <errno.h>
14065 #endif
14066
14067 int
14068 main ()
14069 {
14070
14071 typedef int f;
14072 f x;
14073 x = (f) errno;
14074
14075 ;
14076 return 0;
14077 }
14078 _ACEOF
14079 if ac_fn_c_try_link "$LINENO"; then :
14080 gas_cv_decl_needed_errno=no
14081 else
14082 gas_cv_decl_needed_errno=yes
14083 fi
14084 rm -f core conftest.err conftest.$ac_objext \
14085 conftest$ac_exeext conftest.$ac_ext
14086 fi
14087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gas_cv_decl_needed_errno" >&5
14088 $as_echo "$gas_cv_decl_needed_errno" >&6; }
14089 if test $gas_cv_decl_needed_errno = yes; then
14090
14091 $as_echo "#define NEED_DECLARATION_ERRNO 1" >>confdefs.h
14092
14093 fi
14094
14095
14096 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a known getopt prototype in unistd.h" >&5
14097 $as_echo_n "checking for a known getopt prototype in unistd.h... " >&6; }
14098 if test "${gas_cv_decl_getopt_unistd_h+set}" = set; then :
14099 $as_echo_n "(cached) " >&6
14100 else
14101 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14102 /* end confdefs.h. */
14103 #include <unistd.h>
14104 int
14105 main ()
14106 {
14107 extern int getopt (int, char *const*, const char *);
14108 ;
14109 return 0;
14110 }
14111 _ACEOF
14112 if ac_fn_c_try_compile "$LINENO"; then :
14113 gas_cv_decl_getopt_unistd_h=yes
14114 else
14115 gas_cv_decl_getopt_unistd_h=no
14116 fi
14117 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14118 fi
14119
14120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gas_cv_decl_getopt_unistd_h" >&5
14121 $as_echo "$gas_cv_decl_getopt_unistd_h" >&6; }
14122 if test $gas_cv_decl_getopt_unistd_h = yes; then
14123
14124 $as_echo "#define HAVE_DECL_GETOPT 1" >>confdefs.h
14125
14126 fi
14127
14128
14129 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether declaration is required for environ" >&5
14130 $as_echo_n "checking whether declaration is required for environ... " >&6; }
14131 if test "${gas_cv_decl_needed_environ+set}" = set; then :
14132 $as_echo_n "(cached) " >&6
14133 else
14134 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14135 /* end confdefs.h. */
14136 $gas_test_headers
14137 int
14138 main ()
14139 {
14140
14141 typedef char **f;
14142 f x;
14143 x = (f) environ;
14144
14145 ;
14146 return 0;
14147 }
14148 _ACEOF
14149 if ac_fn_c_try_link "$LINENO"; then :
14150 gas_cv_decl_needed_environ=no
14151 else
14152 gas_cv_decl_needed_environ=yes
14153 fi
14154 rm -f core conftest.err conftest.$ac_objext \
14155 conftest$ac_exeext conftest.$ac_ext
14156 fi
14157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gas_cv_decl_needed_environ" >&5
14158 $as_echo "$gas_cv_decl_needed_environ" >&6; }
14159 if test $gas_cv_decl_needed_environ = yes; then
14160
14161 $as_echo "#define NEED_DECLARATION_ENVIRON 1" >>confdefs.h
14162
14163 fi
14164
14165
14166 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether declaration is required for ffs" >&5
14167 $as_echo_n "checking whether declaration is required for ffs... " >&6; }
14168 if test "${gas_cv_decl_needed_ffs+set}" = set; then :
14169 $as_echo_n "(cached) " >&6
14170 else
14171 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14172 /* end confdefs.h. */
14173 $gas_test_headers
14174 int
14175 main ()
14176 {
14177
14178 typedef int (*f)(int);
14179 f x;
14180 x = (f) ffs;
14181
14182 ;
14183 return 0;
14184 }
14185 _ACEOF
14186 if ac_fn_c_try_link "$LINENO"; then :
14187 gas_cv_decl_needed_ffs=no
14188 else
14189 gas_cv_decl_needed_ffs=yes
14190 fi
14191 rm -f core conftest.err conftest.$ac_objext \
14192 conftest$ac_exeext conftest.$ac_ext
14193 fi
14194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gas_cv_decl_needed_ffs" >&5
14195 $as_echo "$gas_cv_decl_needed_ffs" >&6; }
14196 if test $gas_cv_decl_needed_ffs = yes; then
14197
14198 $as_echo "#define NEED_DECLARATION_FFS 1" >>confdefs.h
14199
14200 fi
14201
14202
14203 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether declaration is required for free" >&5
14204 $as_echo_n "checking whether declaration is required for free... " >&6; }
14205 if test "${gas_cv_decl_needed_free+set}" = set; then :
14206 $as_echo_n "(cached) " >&6
14207 else
14208 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14209 /* end confdefs.h. */
14210 $gas_test_headers
14211 int
14212 main ()
14213 {
14214
14215 typedef void (*f)();
14216 f x;
14217 x = (f) free;
14218
14219 ;
14220 return 0;
14221 }
14222 _ACEOF
14223 if ac_fn_c_try_link "$LINENO"; then :
14224 gas_cv_decl_needed_free=no
14225 else
14226 gas_cv_decl_needed_free=yes
14227 fi
14228 rm -f core conftest.err conftest.$ac_objext \
14229 conftest$ac_exeext conftest.$ac_ext
14230 fi
14231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gas_cv_decl_needed_free" >&5
14232 $as_echo "$gas_cv_decl_needed_free" >&6; }
14233 if test $gas_cv_decl_needed_free = yes; then
14234
14235 $as_echo "#define NEED_DECLARATION_FREE 1" >>confdefs.h
14236
14237 fi
14238
14239
14240 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether declaration is required for malloc" >&5
14241 $as_echo_n "checking whether declaration is required for malloc... " >&6; }
14242 if test "${gas_cv_decl_needed_malloc+set}" = set; then :
14243 $as_echo_n "(cached) " >&6
14244 else
14245 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14246 /* end confdefs.h. */
14247 $gas_test_headers
14248 int
14249 main ()
14250 {
14251
14252 typedef char *(*f)();
14253 f x;
14254 x = (f) malloc;
14255
14256 ;
14257 return 0;
14258 }
14259 _ACEOF
14260 if ac_fn_c_try_link "$LINENO"; then :
14261 gas_cv_decl_needed_malloc=no
14262 else
14263 gas_cv_decl_needed_malloc=yes
14264 fi
14265 rm -f core conftest.err conftest.$ac_objext \
14266 conftest$ac_exeext conftest.$ac_ext
14267 fi
14268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gas_cv_decl_needed_malloc" >&5
14269 $as_echo "$gas_cv_decl_needed_malloc" >&6; }
14270 if test $gas_cv_decl_needed_malloc = yes; then
14271
14272 $as_echo "#define NEED_DECLARATION_MALLOC 1" >>confdefs.h
14273
14274 fi
14275
14276
14277 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether declaration is required for sbrk" >&5
14278 $as_echo_n "checking whether declaration is required for sbrk... " >&6; }
14279 if test "${gas_cv_decl_needed_sbrk+set}" = set; then :
14280 $as_echo_n "(cached) " >&6
14281 else
14282 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14283 /* end confdefs.h. */
14284 $gas_test_headers
14285 int
14286 main ()
14287 {
14288
14289 typedef char *(*f)();
14290 f x;
14291 x = (f) sbrk;
14292
14293 ;
14294 return 0;
14295 }
14296 _ACEOF
14297 if ac_fn_c_try_link "$LINENO"; then :
14298 gas_cv_decl_needed_sbrk=no
14299 else
14300 gas_cv_decl_needed_sbrk=yes
14301 fi
14302 rm -f core conftest.err conftest.$ac_objext \
14303 conftest$ac_exeext conftest.$ac_ext
14304 fi
14305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gas_cv_decl_needed_sbrk" >&5
14306 $as_echo "$gas_cv_decl_needed_sbrk" >&6; }
14307 if test $gas_cv_decl_needed_sbrk = yes; then
14308
14309 $as_echo "#define NEED_DECLARATION_SBRK 1" >>confdefs.h
14310
14311 fi
14312
14313
14314 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether declaration is required for strstr" >&5
14315 $as_echo_n "checking whether declaration is required for strstr... " >&6; }
14316 if test "${gas_cv_decl_needed_strstr+set}" = set; then :
14317 $as_echo_n "(cached) " >&6
14318 else
14319 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14320 /* end confdefs.h. */
14321 $gas_test_headers
14322 int
14323 main ()
14324 {
14325
14326 typedef char *(*f)();
14327 f x;
14328 x = (f) strstr;
14329
14330 ;
14331 return 0;
14332 }
14333 _ACEOF
14334 if ac_fn_c_try_link "$LINENO"; then :
14335 gas_cv_decl_needed_strstr=no
14336 else
14337 gas_cv_decl_needed_strstr=yes
14338 fi
14339 rm -f core conftest.err conftest.$ac_objext \
14340 conftest$ac_exeext conftest.$ac_ext
14341 fi
14342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gas_cv_decl_needed_strstr" >&5
14343 $as_echo "$gas_cv_decl_needed_strstr" >&6; }
14344 if test $gas_cv_decl_needed_strstr = yes; then
14345
14346 $as_echo "#define NEED_DECLARATION_STRSTR 1" >>confdefs.h
14347
14348 fi
14349
14350
14351 ac_fn_c_check_decl "$LINENO" "free" "ac_cv_have_decl_free" "$ac_includes_default"
14352 if test "x$ac_cv_have_decl_free" = x""yes; then :
14353 ac_have_decl=1
14354 else
14355 ac_have_decl=0
14356 fi
14357
14358 cat >>confdefs.h <<_ACEOF
14359 #define HAVE_DECL_FREE $ac_have_decl
14360 _ACEOF
14361 ac_fn_c_check_decl "$LINENO" "getenv" "ac_cv_have_decl_getenv" "$ac_includes_default"
14362 if test "x$ac_cv_have_decl_getenv" = x""yes; then :
14363 ac_have_decl=1
14364 else
14365 ac_have_decl=0
14366 fi
14367
14368 cat >>confdefs.h <<_ACEOF
14369 #define HAVE_DECL_GETENV $ac_have_decl
14370 _ACEOF
14371 ac_fn_c_check_decl "$LINENO" "malloc" "ac_cv_have_decl_malloc" "$ac_includes_default"
14372 if test "x$ac_cv_have_decl_malloc" = x""yes; then :
14373 ac_have_decl=1
14374 else
14375 ac_have_decl=0
14376 fi
14377
14378 cat >>confdefs.h <<_ACEOF
14379 #define HAVE_DECL_MALLOC $ac_have_decl
14380 _ACEOF
14381 ac_fn_c_check_decl "$LINENO" "mempcpy" "ac_cv_have_decl_mempcpy" "$ac_includes_default"
14382 if test "x$ac_cv_have_decl_mempcpy" = x""yes; then :
14383 ac_have_decl=1
14384 else
14385 ac_have_decl=0
14386 fi
14387
14388 cat >>confdefs.h <<_ACEOF
14389 #define HAVE_DECL_MEMPCPY $ac_have_decl
14390 _ACEOF
14391 ac_fn_c_check_decl "$LINENO" "realloc" "ac_cv_have_decl_realloc" "$ac_includes_default"
14392 if test "x$ac_cv_have_decl_realloc" = x""yes; then :
14393 ac_have_decl=1
14394 else
14395 ac_have_decl=0
14396 fi
14397
14398 cat >>confdefs.h <<_ACEOF
14399 #define HAVE_DECL_REALLOC $ac_have_decl
14400 _ACEOF
14401 ac_fn_c_check_decl "$LINENO" "stpcpy" "ac_cv_have_decl_stpcpy" "$ac_includes_default"
14402 if test "x$ac_cv_have_decl_stpcpy" = x""yes; then :
14403 ac_have_decl=1
14404 else
14405 ac_have_decl=0
14406 fi
14407
14408 cat >>confdefs.h <<_ACEOF
14409 #define HAVE_DECL_STPCPY $ac_have_decl
14410 _ACEOF
14411 ac_fn_c_check_decl "$LINENO" "strstr" "ac_cv_have_decl_strstr" "$ac_includes_default"
14412 if test "x$ac_cv_have_decl_strstr" = x""yes; then :
14413 ac_have_decl=1
14414 else
14415 ac_have_decl=0
14416 fi
14417
14418 cat >>confdefs.h <<_ACEOF
14419 #define HAVE_DECL_STRSTR $ac_have_decl
14420 _ACEOF
14421 ac_fn_c_check_decl "$LINENO" "vsnprintf" "ac_cv_have_decl_vsnprintf" "$ac_includes_default"
14422 if test "x$ac_cv_have_decl_vsnprintf" = x""yes; then :
14423 ac_have_decl=1
14424 else
14425 ac_have_decl=0
14426 fi
14427
14428 cat >>confdefs.h <<_ACEOF
14429 #define HAVE_DECL_VSNPRINTF $ac_have_decl
14430 _ACEOF
14431 ac_fn_c_check_decl "$LINENO" "asprintf" "ac_cv_have_decl_asprintf" "$ac_includes_default"
14432 if test "x$ac_cv_have_decl_asprintf" = x""yes; then :
14433 ac_have_decl=1
14434 else
14435 ac_have_decl=0
14436 fi
14437
14438 cat >>confdefs.h <<_ACEOF
14439 #define HAVE_DECL_ASPRINTF $ac_have_decl
14440 _ACEOF
14441
14442
14443
14444 case "${host}" in
14445 *-*-msdos* | *-*-go32* | *-*-mingw32* | *-*-cygwin* | *-*-windows*)
14446
14447 $as_echo "#define USE_BINARY_FOPEN 1" >>confdefs.h
14448 ;;
14449 esac
14450
14451 # Link in zlib if we can. This allows us to write compressed debug sections.
14452
14453 # Use the system's zlib library.
14454 zlibdir="-L\$(top_builddir)/../zlib"
14455 zlibinc="-I\$(top_srcdir)/../zlib"
14456
14457 # Check whether --with-system-zlib was given.
14458 if test "${with_system_zlib+set}" = set; then :
14459 withval=$with_system_zlib; if test x$with_system_zlib = xyes ; then
14460 zlibdir=
14461 zlibinc=
14462 fi
14463
14464 fi
14465
14466
14467
14468
14469
14470 # Support for VMS timestamps via cross compile
14471
14472 if test "$ac_cv_header_time_h" = yes; then
14473 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct tm.tm_gmtoff in time.h" >&5
14474 $as_echo_n "checking for struct tm.tm_gmtoff in time.h... " >&6; }
14475 if test "${gas_cv_have_time_type_member_tm_gmtoff+set}" = set; then :
14476 $as_echo_n "(cached) " >&6
14477 else
14478 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14479 /* end confdefs.h. */
14480
14481 #define _BSD_SOURCE 1
14482 #include <time.h>
14483 int
14484 main ()
14485 {
14486 struct tm avar; void* aref = (void*) &avar.tm_gmtoff
14487 ;
14488 return 0;
14489 }
14490 _ACEOF
14491 if ac_fn_c_try_compile "$LINENO"; then :
14492 gas_cv_have_time_type_member_tm_gmtoff=yes
14493 else
14494 gas_cv_have_time_type_member_tm_gmtoff=no
14495
14496 fi
14497 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14498 fi
14499
14500 if test $gas_cv_have_time_type_member_tm_gmtoff = yes; then
14501
14502 $as_echo "#define HAVE_TM_GMTOFF 1" >>confdefs.h
14503
14504 fi
14505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gas_cv_have_time_type_member_tm_gmtoff" >&5
14506 $as_echo "$gas_cv_have_time_type_member_tm_gmtoff" >&6; }
14507
14508 fi
14509
14510 if test "$ac_cv_header_sys_stat_h" = yes; then
14511 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct stat.st_mtim.tv_sec in sys/stat.h" >&5
14512 $as_echo_n "checking for struct stat.st_mtim.tv_sec in sys/stat.h... " >&6; }
14513 if test "${gas_cv_have_sys_stat_type_member_st_mtim_tv_sec+set}" = set; then :
14514 $as_echo_n "(cached) " >&6
14515 else
14516 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14517 /* end confdefs.h. */
14518
14519 #define _BSD_SOURCE 1
14520 #include <sys/stat.h>
14521 int
14522 main ()
14523 {
14524 struct stat avar; void* aref = (void*) &avar.st_mtim.tv_sec
14525 ;
14526 return 0;
14527 }
14528 _ACEOF
14529 if ac_fn_c_try_compile "$LINENO"; then :
14530 gas_cv_have_sys_stat_type_member_st_mtim_tv_sec=yes
14531 else
14532 gas_cv_have_sys_stat_type_member_st_mtim_tv_sec=no
14533
14534 fi
14535 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14536 fi
14537
14538 if test $gas_cv_have_sys_stat_type_member_st_mtim_tv_sec = yes; then
14539
14540 $as_echo "#define HAVE_ST_MTIM_TV_SEC 1" >>confdefs.h
14541
14542 fi
14543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gas_cv_have_sys_stat_type_member_st_mtim_tv_sec" >&5
14544 $as_echo "$gas_cv_have_sys_stat_type_member_st_mtim_tv_sec" >&6; }
14545
14546 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct stat.st_mtim.tv_nsec in sys/stat.h" >&5
14547 $as_echo_n "checking for struct stat.st_mtim.tv_nsec in sys/stat.h... " >&6; }
14548 if test "${gas_cv_have_sys_stat_type_member_st_mtim_tv_nsec+set}" = set; then :
14549 $as_echo_n "(cached) " >&6
14550 else
14551 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14552 /* end confdefs.h. */
14553
14554 #define _BSD_SOURCE 1
14555 #include <sys/stat.h>
14556 int
14557 main ()
14558 {
14559 struct stat avar; void* aref = (void*) &avar.st_mtim.tv_nsec
14560 ;
14561 return 0;
14562 }
14563 _ACEOF
14564 if ac_fn_c_try_compile "$LINENO"; then :
14565 gas_cv_have_sys_stat_type_member_st_mtim_tv_nsec=yes
14566 else
14567 gas_cv_have_sys_stat_type_member_st_mtim_tv_nsec=no
14568
14569 fi
14570 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14571 fi
14572
14573 if test $gas_cv_have_sys_stat_type_member_st_mtim_tv_nsec = yes; then
14574
14575 $as_echo "#define HAVE_ST_MTIM_TV_NSEC 1" >>confdefs.h
14576
14577 fi
14578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gas_cv_have_sys_stat_type_member_st_mtim_tv_nsec" >&5
14579 $as_echo "$gas_cv_have_sys_stat_type_member_st_mtim_tv_nsec" >&6; }
14580
14581 fi
14582
14583
14584
14585
14586
14587
14588
14589
14590
14591 ac_config_files="$ac_config_files Makefile doc/Makefile po/Makefile.in:po/Make-in"
14592
14593 ac_config_commands="$ac_config_commands default"
14594
14595
14596 cat >confcache <<\_ACEOF
14597 # This file is a shell script that caches the results of configure
14598 # tests run on this system so they can be shared between configure
14599 # scripts and configure runs, see configure's option --config-cache.
14600 # It is not useful on other systems. If it contains results you don't
14601 # want to keep, you may remove or edit it.
14602 #
14603 # config.status only pays attention to the cache file if you give it
14604 # the --recheck option to rerun configure.
14605 #
14606 # `ac_cv_env_foo' variables (set or unset) will be overridden when
14607 # loading this file, other *unset* `ac_cv_foo' will be assigned the
14608 # following values.
14609
14610 _ACEOF
14611
14612 # The following way of writing the cache mishandles newlines in values,
14613 # but we know of no workaround that is simple, portable, and efficient.
14614 # So, we kill variables containing newlines.
14615 # Ultrix sh set writes to stderr and can't be redirected directly,
14616 # and sets the high bit in the cache file unless we assign to the vars.
14617 (
14618 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
14619 eval ac_val=\$$ac_var
14620 case $ac_val in #(
14621 *${as_nl}*)
14622 case $ac_var in #(
14623 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
14624 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
14625 esac
14626 case $ac_var in #(
14627 _ | IFS | as_nl) ;; #(
14628 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
14629 *) { eval $ac_var=; unset $ac_var;} ;;
14630 esac ;;
14631 esac
14632 done
14633
14634 (set) 2>&1 |
14635 case $as_nl`(ac_space=' '; set) 2>&1` in #(
14636 *${as_nl}ac_space=\ *)
14637 # `set' does not quote correctly, so add quotes: double-quote
14638 # substitution turns \\\\ into \\, and sed turns \\ into \.
14639 sed -n \
14640 "s/'/'\\\\''/g;
14641 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
14642 ;; #(
14643 *)
14644 # `set' quotes correctly as required by POSIX, so do not add quotes.
14645 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
14646 ;;
14647 esac |
14648 sort
14649 ) |
14650 sed '
14651 /^ac_cv_env_/b end
14652 t clear
14653 :clear
14654 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
14655 t end
14656 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
14657 :end' >>confcache
14658 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
14659 if test -w "$cache_file"; then
14660 test "x$cache_file" != "x/dev/null" &&
14661 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
14662 $as_echo "$as_me: updating cache $cache_file" >&6;}
14663 cat confcache >$cache_file
14664 else
14665 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
14666 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
14667 fi
14668 fi
14669 rm -f confcache
14670
14671 test "x$prefix" = xNONE && prefix=$ac_default_prefix
14672 # Let make expand exec_prefix.
14673 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
14674
14675 DEFS=-DHAVE_CONFIG_H
14676
14677 ac_libobjs=
14678 ac_ltlibobjs=
14679 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
14680 # 1. Remove the extension, and $U if already installed.
14681 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
14682 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
14683 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
14684 # will be set to the directory where LIBOBJS objects are built.
14685 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
14686 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
14687 done
14688 LIBOBJS=$ac_libobjs
14689
14690 LTLIBOBJS=$ac_ltlibobjs
14691
14692
14693 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
14694 as_fn_error "conditional \"AMDEP\" was never defined.
14695 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14696 fi
14697 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
14698 as_fn_error "conditional \"am__fastdepCC\" was never defined.
14699 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14700 fi
14701 if test -n "$EXEEXT"; then
14702 am__EXEEXT_TRUE=
14703 am__EXEEXT_FALSE='#'
14704 else
14705 am__EXEEXT_TRUE='#'
14706 am__EXEEXT_FALSE=
14707 fi
14708
14709
14710 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
14711 as_fn_error "conditional \"MAINTAINER_MODE\" was never defined.
14712 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14713 fi
14714 if test -z "${GENINSRC_NEVER_TRUE}" && test -z "${GENINSRC_NEVER_FALSE}"; then
14715 as_fn_error "conditional \"GENINSRC_NEVER\" was never defined.
14716 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14717 fi
14718
14719 : ${CONFIG_STATUS=./config.status}
14720 ac_write_fail=0
14721 ac_clean_files_save=$ac_clean_files
14722 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
14723 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
14724 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
14725 as_write_fail=0
14726 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
14727 #! $SHELL
14728 # Generated by $as_me.
14729 # Run this file to recreate the current configuration.
14730 # Compiler output produced by configure, useful for debugging
14731 # configure, is in config.log if it exists.
14732
14733 debug=false
14734 ac_cs_recheck=false
14735 ac_cs_silent=false
14736
14737 SHELL=\${CONFIG_SHELL-$SHELL}
14738 export SHELL
14739 _ASEOF
14740 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
14741 ## -------------------- ##
14742 ## M4sh Initialization. ##
14743 ## -------------------- ##
14744
14745 # Be more Bourne compatible
14746 DUALCASE=1; export DUALCASE # for MKS sh
14747 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
14748 emulate sh
14749 NULLCMD=:
14750 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
14751 # is contrary to our usage. Disable this feature.
14752 alias -g '${1+"$@"}'='"$@"'
14753 setopt NO_GLOB_SUBST
14754 else
14755 case `(set -o) 2>/dev/null` in #(
14756 *posix*) :
14757 set -o posix ;; #(
14758 *) :
14759 ;;
14760 esac
14761 fi
14762
14763
14764 as_nl='
14765 '
14766 export as_nl
14767 # Printing a long string crashes Solaris 7 /usr/bin/printf.
14768 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
14769 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
14770 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
14771 # Prefer a ksh shell builtin over an external printf program on Solaris,
14772 # but without wasting forks for bash or zsh.
14773 if test -z "$BASH_VERSION$ZSH_VERSION" \
14774 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
14775 as_echo='print -r --'
14776 as_echo_n='print -rn --'
14777 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
14778 as_echo='printf %s\n'
14779 as_echo_n='printf %s'
14780 else
14781 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
14782 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
14783 as_echo_n='/usr/ucb/echo -n'
14784 else
14785 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
14786 as_echo_n_body='eval
14787 arg=$1;
14788 case $arg in #(
14789 *"$as_nl"*)
14790 expr "X$arg" : "X\\(.*\\)$as_nl";
14791 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
14792 esac;
14793 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
14794 '
14795 export as_echo_n_body
14796 as_echo_n='sh -c $as_echo_n_body as_echo'
14797 fi
14798 export as_echo_body
14799 as_echo='sh -c $as_echo_body as_echo'
14800 fi
14801
14802 # The user is always right.
14803 if test "${PATH_SEPARATOR+set}" != set; then
14804 PATH_SEPARATOR=:
14805 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
14806 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
14807 PATH_SEPARATOR=';'
14808 }
14809 fi
14810
14811
14812 # IFS
14813 # We need space, tab and new line, in precisely that order. Quoting is
14814 # there to prevent editors from complaining about space-tab.
14815 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
14816 # splitting by setting IFS to empty value.)
14817 IFS=" "" $as_nl"
14818
14819 # Find who we are. Look in the path if we contain no directory separator.
14820 case $0 in #((
14821 *[\\/]* ) as_myself=$0 ;;
14822 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14823 for as_dir in $PATH
14824 do
14825 IFS=$as_save_IFS
14826 test -z "$as_dir" && as_dir=.
14827 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
14828 done
14829 IFS=$as_save_IFS
14830
14831 ;;
14832 esac
14833 # We did not find ourselves, most probably we were run as `sh COMMAND'
14834 # in which case we are not to be found in the path.
14835 if test "x$as_myself" = x; then
14836 as_myself=$0
14837 fi
14838 if test ! -f "$as_myself"; then
14839 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
14840 exit 1
14841 fi
14842
14843 # Unset variables that we do not need and which cause bugs (e.g. in
14844 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
14845 # suppresses any "Segmentation fault" message there. '((' could
14846 # trigger a bug in pdksh 5.2.14.
14847 for as_var in BASH_ENV ENV MAIL MAILPATH
14848 do eval test x\${$as_var+set} = xset \
14849 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
14850 done
14851 PS1='$ '
14852 PS2='> '
14853 PS4='+ '
14854
14855 # NLS nuisances.
14856 LC_ALL=C
14857 export LC_ALL
14858 LANGUAGE=C
14859 export LANGUAGE
14860
14861 # CDPATH.
14862 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
14863
14864
14865 # as_fn_error ERROR [LINENO LOG_FD]
14866 # ---------------------------------
14867 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
14868 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
14869 # script with status $?, using 1 if that was 0.
14870 as_fn_error ()
14871 {
14872 as_status=$?; test $as_status -eq 0 && as_status=1
14873 if test "$3"; then
14874 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
14875 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
14876 fi
14877 $as_echo "$as_me: error: $1" >&2
14878 as_fn_exit $as_status
14879 } # as_fn_error
14880
14881
14882 # as_fn_set_status STATUS
14883 # -----------------------
14884 # Set $? to STATUS, without forking.
14885 as_fn_set_status ()
14886 {
14887 return $1
14888 } # as_fn_set_status
14889
14890 # as_fn_exit STATUS
14891 # -----------------
14892 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
14893 as_fn_exit ()
14894 {
14895 set +e
14896 as_fn_set_status $1
14897 exit $1
14898 } # as_fn_exit
14899
14900 # as_fn_unset VAR
14901 # ---------------
14902 # Portably unset VAR.
14903 as_fn_unset ()
14904 {
14905 { eval $1=; unset $1;}
14906 }
14907 as_unset=as_fn_unset
14908 # as_fn_append VAR VALUE
14909 # ----------------------
14910 # Append the text in VALUE to the end of the definition contained in VAR. Take
14911 # advantage of any shell optimizations that allow amortized linear growth over
14912 # repeated appends, instead of the typical quadratic growth present in naive
14913 # implementations.
14914 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
14915 eval 'as_fn_append ()
14916 {
14917 eval $1+=\$2
14918 }'
14919 else
14920 as_fn_append ()
14921 {
14922 eval $1=\$$1\$2
14923 }
14924 fi # as_fn_append
14925
14926 # as_fn_arith ARG...
14927 # ------------------
14928 # Perform arithmetic evaluation on the ARGs, and store the result in the
14929 # global $as_val. Take advantage of shells that can avoid forks. The arguments
14930 # must be portable across $(()) and expr.
14931 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
14932 eval 'as_fn_arith ()
14933 {
14934 as_val=$(( $* ))
14935 }'
14936 else
14937 as_fn_arith ()
14938 {
14939 as_val=`expr "$@" || test $? -eq 1`
14940 }
14941 fi # as_fn_arith
14942
14943
14944 if expr a : '\(a\)' >/dev/null 2>&1 &&
14945 test "X`expr 00001 : '.*\(...\)'`" = X001; then
14946 as_expr=expr
14947 else
14948 as_expr=false
14949 fi
14950
14951 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
14952 as_basename=basename
14953 else
14954 as_basename=false
14955 fi
14956
14957 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
14958 as_dirname=dirname
14959 else
14960 as_dirname=false
14961 fi
14962
14963 as_me=`$as_basename -- "$0" ||
14964 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
14965 X"$0" : 'X\(//\)$' \| \
14966 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
14967 $as_echo X/"$0" |
14968 sed '/^.*\/\([^/][^/]*\)\/*$/{
14969 s//\1/
14970 q
14971 }
14972 /^X\/\(\/\/\)$/{
14973 s//\1/
14974 q
14975 }
14976 /^X\/\(\/\).*/{
14977 s//\1/
14978 q
14979 }
14980 s/.*/./; q'`
14981
14982 # Avoid depending upon Character Ranges.
14983 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
14984 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
14985 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
14986 as_cr_digits='0123456789'
14987 as_cr_alnum=$as_cr_Letters$as_cr_digits
14988
14989 ECHO_C= ECHO_N= ECHO_T=
14990 case `echo -n x` in #(((((
14991 -n*)
14992 case `echo 'xy\c'` in
14993 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
14994 xy) ECHO_C='\c';;
14995 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
14996 ECHO_T=' ';;
14997 esac;;
14998 *)
14999 ECHO_N='-n';;
15000 esac
15001
15002 rm -f conf$$ conf$$.exe conf$$.file
15003 if test -d conf$$.dir; then
15004 rm -f conf$$.dir/conf$$.file
15005 else
15006 rm -f conf$$.dir
15007 mkdir conf$$.dir 2>/dev/null
15008 fi
15009 if (echo >conf$$.file) 2>/dev/null; then
15010 if ln -s conf$$.file conf$$ 2>/dev/null; then
15011 as_ln_s='ln -s'
15012 # ... but there are two gotchas:
15013 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
15014 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
15015 # In both cases, we have to default to `cp -p'.
15016 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
15017 as_ln_s='cp -p'
15018 elif ln conf$$.file conf$$ 2>/dev/null; then
15019 as_ln_s=ln
15020 else
15021 as_ln_s='cp -p'
15022 fi
15023 else
15024 as_ln_s='cp -p'
15025 fi
15026 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
15027 rmdir conf$$.dir 2>/dev/null
15028
15029
15030 # as_fn_mkdir_p
15031 # -------------
15032 # Create "$as_dir" as a directory, including parents if necessary.
15033 as_fn_mkdir_p ()
15034 {
15035
15036 case $as_dir in #(
15037 -*) as_dir=./$as_dir;;
15038 esac
15039 test -d "$as_dir" || eval $as_mkdir_p || {
15040 as_dirs=
15041 while :; do
15042 case $as_dir in #(
15043 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
15044 *) as_qdir=$as_dir;;
15045 esac
15046 as_dirs="'$as_qdir' $as_dirs"
15047 as_dir=`$as_dirname -- "$as_dir" ||
15048 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15049 X"$as_dir" : 'X\(//\)[^/]' \| \
15050 X"$as_dir" : 'X\(//\)$' \| \
15051 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
15052 $as_echo X"$as_dir" |
15053 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15054 s//\1/
15055 q
15056 }
15057 /^X\(\/\/\)[^/].*/{
15058 s//\1/
15059 q
15060 }
15061 /^X\(\/\/\)$/{
15062 s//\1/
15063 q
15064 }
15065 /^X\(\/\).*/{
15066 s//\1/
15067 q
15068 }
15069 s/.*/./; q'`
15070 test -d "$as_dir" && break
15071 done
15072 test -z "$as_dirs" || eval "mkdir $as_dirs"
15073 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
15074
15075
15076 } # as_fn_mkdir_p
15077 if mkdir -p . 2>/dev/null; then
15078 as_mkdir_p='mkdir -p "$as_dir"'
15079 else
15080 test -d ./-p && rmdir ./-p
15081 as_mkdir_p=false
15082 fi
15083
15084 if test -x / >/dev/null 2>&1; then
15085 as_test_x='test -x'
15086 else
15087 if ls -dL / >/dev/null 2>&1; then
15088 as_ls_L_option=L
15089 else
15090 as_ls_L_option=
15091 fi
15092 as_test_x='
15093 eval sh -c '\''
15094 if test -d "$1"; then
15095 test -d "$1/.";
15096 else
15097 case $1 in #(
15098 -*)set "./$1";;
15099 esac;
15100 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
15101 ???[sx]*):;;*)false;;esac;fi
15102 '\'' sh
15103 '
15104 fi
15105 as_executable_p=$as_test_x
15106
15107 # Sed expression to map a string onto a valid CPP name.
15108 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
15109
15110 # Sed expression to map a string onto a valid variable name.
15111 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
15112
15113
15114 exec 6>&1
15115 ## ----------------------------------- ##
15116 ## Main body of $CONFIG_STATUS script. ##
15117 ## ----------------------------------- ##
15118 _ASEOF
15119 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
15120
15121 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15122 # Save the log message, to keep $0 and so on meaningful, and to
15123 # report actual input values of CONFIG_FILES etc. instead of their
15124 # values after options handling.
15125 ac_log="
15126 This file was extended by gas $as_me 2.26.51, which was
15127 generated by GNU Autoconf 2.64. Invocation command line was
15128
15129 CONFIG_FILES = $CONFIG_FILES
15130 CONFIG_HEADERS = $CONFIG_HEADERS
15131 CONFIG_LINKS = $CONFIG_LINKS
15132 CONFIG_COMMANDS = $CONFIG_COMMANDS
15133 $ $0 $@
15134
15135 on `(hostname || uname -n) 2>/dev/null | sed 1q`
15136 "
15137
15138 _ACEOF
15139
15140 case $ac_config_files in *"
15141 "*) set x $ac_config_files; shift; ac_config_files=$*;;
15142 esac
15143
15144 case $ac_config_headers in *"
15145 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
15146 esac
15147
15148
15149 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15150 # Files that config.status was made for.
15151 config_files="$ac_config_files"
15152 config_headers="$ac_config_headers"
15153 config_commands="$ac_config_commands"
15154
15155 _ACEOF
15156
15157 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15158 ac_cs_usage="\
15159 \`$as_me' instantiates files and other configuration actions
15160 from templates according to the current configuration. Unless the files
15161 and actions are specified as TAGs, all are instantiated by default.
15162
15163 Usage: $0 [OPTION]... [TAG]...
15164
15165 -h, --help print this help, then exit
15166 -V, --version print version number and configuration settings, then exit
15167 -q, --quiet, --silent
15168 do not print progress messages
15169 -d, --debug don't remove temporary files
15170 --recheck update $as_me by reconfiguring in the same conditions
15171 --file=FILE[:TEMPLATE]
15172 instantiate the configuration file FILE
15173 --header=FILE[:TEMPLATE]
15174 instantiate the configuration header FILE
15175
15176 Configuration files:
15177 $config_files
15178
15179 Configuration headers:
15180 $config_headers
15181
15182 Configuration commands:
15183 $config_commands
15184
15185 Report bugs to the package provider."
15186
15187 _ACEOF
15188 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15189 ac_cs_version="\\
15190 gas config.status 2.26.51
15191 configured by $0, generated by GNU Autoconf 2.64,
15192 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
15193
15194 Copyright (C) 2009 Free Software Foundation, Inc.
15195 This config.status script is free software; the Free Software Foundation
15196 gives unlimited permission to copy, distribute and modify it."
15197
15198 ac_pwd='$ac_pwd'
15199 srcdir='$srcdir'
15200 INSTALL='$INSTALL'
15201 MKDIR_P='$MKDIR_P'
15202 AWK='$AWK'
15203 test -n "\$AWK" || AWK=awk
15204 _ACEOF
15205
15206 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15207 # The default lists apply if the user does not specify any file.
15208 ac_need_defaults=:
15209 while test $# != 0
15210 do
15211 case $1 in
15212 --*=*)
15213 ac_option=`expr "X$1" : 'X\([^=]*\)='`
15214 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
15215 ac_shift=:
15216 ;;
15217 *)
15218 ac_option=$1
15219 ac_optarg=$2
15220 ac_shift=shift
15221 ;;
15222 esac
15223
15224 case $ac_option in
15225 # Handling of the options.
15226 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
15227 ac_cs_recheck=: ;;
15228 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
15229 $as_echo "$ac_cs_version"; exit ;;
15230 --debug | --debu | --deb | --de | --d | -d )
15231 debug=: ;;
15232 --file | --fil | --fi | --f )
15233 $ac_shift
15234 case $ac_optarg in
15235 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
15236 esac
15237 as_fn_append CONFIG_FILES " '$ac_optarg'"
15238 ac_need_defaults=false;;
15239 --header | --heade | --head | --hea )
15240 $ac_shift
15241 case $ac_optarg in
15242 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
15243 esac
15244 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
15245 ac_need_defaults=false;;
15246 --he | --h)
15247 # Conflict between --help and --header
15248 as_fn_error "ambiguous option: \`$1'
15249 Try \`$0 --help' for more information.";;
15250 --help | --hel | -h )
15251 $as_echo "$ac_cs_usage"; exit ;;
15252 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
15253 | -silent | --silent | --silen | --sile | --sil | --si | --s)
15254 ac_cs_silent=: ;;
15255
15256 # This is an error.
15257 -*) as_fn_error "unrecognized option: \`$1'
15258 Try \`$0 --help' for more information." ;;
15259
15260 *) as_fn_append ac_config_targets " $1"
15261 ac_need_defaults=false ;;
15262
15263 esac
15264 shift
15265 done
15266
15267 ac_configure_extra_args=
15268
15269 if $ac_cs_silent; then
15270 exec 6>/dev/null
15271 ac_configure_extra_args="$ac_configure_extra_args --silent"
15272 fi
15273
15274 _ACEOF
15275 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15276 if \$ac_cs_recheck; then
15277 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
15278 shift
15279 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
15280 CONFIG_SHELL='$SHELL'
15281 export CONFIG_SHELL
15282 exec "\$@"
15283 fi
15284
15285 _ACEOF
15286 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15287 exec 5>>config.log
15288 {
15289 echo
15290 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
15291 ## Running $as_me. ##
15292 _ASBOX
15293 $as_echo "$ac_log"
15294 } >&5
15295
15296 _ACEOF
15297 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15298 #
15299 # INIT-COMMANDS
15300 #
15301 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
15302
15303
15304 # The HP-UX ksh and POSIX shell print the target directory to stdout
15305 # if CDPATH is set.
15306 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
15307
15308 sed_quote_subst='$sed_quote_subst'
15309 double_quote_subst='$double_quote_subst'
15310 delay_variable_subst='$delay_variable_subst'
15311 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
15312 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
15313 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
15314 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
15315 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
15316 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
15317 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
15318 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
15319 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
15320 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
15321 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
15322 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
15323 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
15324 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
15325 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
15326 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
15327 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
15328 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
15329 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
15330 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
15331 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
15332 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
15333 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
15334 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
15335 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
15336 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
15337 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
15338 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
15339 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
15340 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
15341 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
15342 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
15343 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
15344 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
15345 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
15346 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
15347 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
15348 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
15349 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
15350 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
15351 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
15352 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
15353 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
15354 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
15355 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
15356 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
15357 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
15358 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
15359 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"`'
15360 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
15361 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
15362 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
15363 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
15364 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
15365 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
15366 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
15367 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
15368 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
15369 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
15370 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
15371 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
15372 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
15373 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
15374 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
15375 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
15376 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
15377 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
15378 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
15379 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
15380 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
15381 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
15382 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
15383 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
15384 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
15385 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
15386 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
15387 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
15388 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
15389 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
15390 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
15391 hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
15392 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
15393 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
15394 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
15395 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
15396 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
15397 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
15398 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
15399 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
15400 fix_srcfile_path='`$ECHO "$fix_srcfile_path" | $SED "$delay_single_quote_subst"`'
15401 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
15402 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
15403 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
15404 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
15405 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
15406 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
15407 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
15408 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
15409 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
15410 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
15411 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
15412 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
15413 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
15414 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
15415 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
15416 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
15417 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
15418 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
15419 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
15420 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
15421 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
15422 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
15423 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
15424 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
15425 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
15426 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
15427 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
15428 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
15429 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
15430 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
15431
15432 LTCC='$LTCC'
15433 LTCFLAGS='$LTCFLAGS'
15434 compiler='$compiler_DEFAULT'
15435
15436 # A function that is used when there is no print builtin or printf.
15437 func_fallback_echo ()
15438 {
15439 eval 'cat <<_LTECHO_EOF
15440 \$1
15441 _LTECHO_EOF'
15442 }
15443
15444 # Quote evaled strings.
15445 for var in SHELL \
15446 ECHO \
15447 SED \
15448 GREP \
15449 EGREP \
15450 FGREP \
15451 LD \
15452 NM \
15453 LN_S \
15454 lt_SP2NL \
15455 lt_NL2SP \
15456 reload_flag \
15457 OBJDUMP \
15458 deplibs_check_method \
15459 file_magic_cmd \
15460 AR \
15461 AR_FLAGS \
15462 STRIP \
15463 RANLIB \
15464 CC \
15465 CFLAGS \
15466 compiler \
15467 lt_cv_sys_global_symbol_pipe \
15468 lt_cv_sys_global_symbol_to_cdecl \
15469 lt_cv_sys_global_symbol_to_c_name_address \
15470 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
15471 lt_prog_compiler_no_builtin_flag \
15472 lt_prog_compiler_wl \
15473 lt_prog_compiler_pic \
15474 lt_prog_compiler_static \
15475 lt_cv_prog_compiler_c_o \
15476 need_locks \
15477 DSYMUTIL \
15478 NMEDIT \
15479 LIPO \
15480 OTOOL \
15481 OTOOL64 \
15482 shrext_cmds \
15483 export_dynamic_flag_spec \
15484 whole_archive_flag_spec \
15485 compiler_needs_object \
15486 with_gnu_ld \
15487 allow_undefined_flag \
15488 no_undefined_flag \
15489 hardcode_libdir_flag_spec \
15490 hardcode_libdir_flag_spec_ld \
15491 hardcode_libdir_separator \
15492 fix_srcfile_path \
15493 exclude_expsyms \
15494 include_expsyms \
15495 file_list_spec \
15496 variables_saved_for_relink \
15497 libname_spec \
15498 library_names_spec \
15499 soname_spec \
15500 install_override_mode \
15501 finish_eval \
15502 old_striplib \
15503 striplib; do
15504 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
15505 *[\\\\\\\`\\"\\\$]*)
15506 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
15507 ;;
15508 *)
15509 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
15510 ;;
15511 esac
15512 done
15513
15514 # Double-quote double-evaled strings.
15515 for var in reload_cmds \
15516 old_postinstall_cmds \
15517 old_postuninstall_cmds \
15518 old_archive_cmds \
15519 extract_expsyms_cmds \
15520 old_archive_from_new_cmds \
15521 old_archive_from_expsyms_cmds \
15522 archive_cmds \
15523 archive_expsym_cmds \
15524 module_cmds \
15525 module_expsym_cmds \
15526 export_symbols_cmds \
15527 prelink_cmds \
15528 postinstall_cmds \
15529 postuninstall_cmds \
15530 finish_cmds \
15531 sys_lib_search_path_spec \
15532 sys_lib_dlsearch_path_spec; do
15533 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
15534 *[\\\\\\\`\\"\\\$]*)
15535 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
15536 ;;
15537 *)
15538 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
15539 ;;
15540 esac
15541 done
15542
15543 ac_aux_dir='$ac_aux_dir'
15544 xsi_shell='$xsi_shell'
15545 lt_shell_append='$lt_shell_append'
15546
15547 # See if we are running on zsh, and set the options which allow our
15548 # commands through without removal of \ escapes INIT.
15549 if test -n "\${ZSH_VERSION+set}" ; then
15550 setopt NO_GLOB_SUBST
15551 fi
15552
15553
15554 PACKAGE='$PACKAGE'
15555 VERSION='$VERSION'
15556 TIMESTAMP='$TIMESTAMP'
15557 RM='$RM'
15558 ofile='$ofile'
15559
15560
15561
15562 # Capture the value of obsolete ALL_LINGUAS because we need it to compute
15563 # POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES, CATALOGS. But hide it
15564 # from automake.
15565 eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
15566 # Capture the value of LINGUAS because we need it to compute CATALOGS.
15567 LINGUAS="${LINGUAS-%UNSET%}"
15568
15569 target_cpu_type=${target_cpu_type}
15570 cgen_cpu_prefix=${cgen_cpu_prefix}
15571 obj_format=${obj_format}
15572 te_file=${te_file}
15573
15574 _ACEOF
15575
15576 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15577
15578 # Handling of arguments.
15579 for ac_config_target in $ac_config_targets
15580 do
15581 case $ac_config_target in
15582 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
15583 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
15584 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h:config.in" ;;
15585 "gdb.ini") CONFIG_FILES="$CONFIG_FILES gdb.ini:gdbinit.in" ;;
15586 ".gdbinit") CONFIG_FILES="$CONFIG_FILES .gdbinit:gdbinit.in" ;;
15587 "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
15588 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
15589 "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
15590 "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in:po/Make-in" ;;
15591 "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
15592
15593 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
15594 esac
15595 done
15596
15597
15598 # If the user did not use the arguments to specify the items to instantiate,
15599 # then the envvar interface is used. Set only those that are not.
15600 # We use the long form for the default assignment because of an extremely
15601 # bizarre bug on SunOS 4.1.3.
15602 if $ac_need_defaults; then
15603 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
15604 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
15605 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
15606 fi
15607
15608 # Have a temporary directory for convenience. Make it in the build tree
15609 # simply because there is no reason against having it here, and in addition,
15610 # creating and moving files from /tmp can sometimes cause problems.
15611 # Hook for its removal unless debugging.
15612 # Note that there is a small window in which the directory will not be cleaned:
15613 # after its creation but before its name has been assigned to `$tmp'.
15614 $debug ||
15615 {
15616 tmp=
15617 trap 'exit_status=$?
15618 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
15619 ' 0
15620 trap 'as_fn_exit 1' 1 2 13 15
15621 }
15622 # Create a (secure) tmp directory for tmp files.
15623
15624 {
15625 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
15626 test -n "$tmp" && test -d "$tmp"
15627 } ||
15628 {
15629 tmp=./conf$$-$RANDOM
15630 (umask 077 && mkdir "$tmp")
15631 } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
15632
15633 # Set up the scripts for CONFIG_FILES section.
15634 # No need to generate them if there are no CONFIG_FILES.
15635 # This happens for instance with `./config.status config.h'.
15636 if test -n "$CONFIG_FILES"; then
15637
15638
15639 ac_cr=`echo X | tr X '\015'`
15640 # On cygwin, bash can eat \r inside `` if the user requested igncr.
15641 # But we know of no other shell where ac_cr would be empty at this
15642 # point, so we can use a bashism as a fallback.
15643 if test "x$ac_cr" = x; then
15644 eval ac_cr=\$\'\\r\'
15645 fi
15646 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
15647 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
15648 ac_cs_awk_cr='\r'
15649 else
15650 ac_cs_awk_cr=$ac_cr
15651 fi
15652
15653 echo 'BEGIN {' >"$tmp/subs1.awk" &&
15654 _ACEOF
15655
15656
15657 {
15658 echo "cat >conf$$subs.awk <<_ACEOF" &&
15659 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
15660 echo "_ACEOF"
15661 } >conf$$subs.sh ||
15662 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
15663 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
15664 ac_delim='%!_!# '
15665 for ac_last_try in false false false false false :; do
15666 . ./conf$$subs.sh ||
15667 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
15668
15669 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
15670 if test $ac_delim_n = $ac_delim_num; then
15671 break
15672 elif $ac_last_try; then
15673 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
15674 else
15675 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
15676 fi
15677 done
15678 rm -f conf$$subs.sh
15679
15680 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15681 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
15682 _ACEOF
15683 sed -n '
15684 h
15685 s/^/S["/; s/!.*/"]=/
15686 p
15687 g
15688 s/^[^!]*!//
15689 :repl
15690 t repl
15691 s/'"$ac_delim"'$//
15692 t delim
15693 :nl
15694 h
15695 s/\(.\{148\}\).*/\1/
15696 t more1
15697 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
15698 p
15699 n
15700 b repl
15701 :more1
15702 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
15703 p
15704 g
15705 s/.\{148\}//
15706 t nl
15707 :delim
15708 h
15709 s/\(.\{148\}\).*/\1/
15710 t more2
15711 s/["\\]/\\&/g; s/^/"/; s/$/"/
15712 p
15713 b
15714 :more2
15715 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
15716 p
15717 g
15718 s/.\{148\}//
15719 t delim
15720 ' <conf$$subs.awk | sed '
15721 /^[^""]/{
15722 N
15723 s/\n//
15724 }
15725 ' >>$CONFIG_STATUS || ac_write_fail=1
15726 rm -f conf$$subs.awk
15727 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15728 _ACAWK
15729 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
15730 for (key in S) S_is_set[key] = 1
15731 FS = "\a"
15732
15733 }
15734 {
15735 line = $ 0
15736 nfields = split(line, field, "@")
15737 substed = 0
15738 len = length(field[1])
15739 for (i = 2; i < nfields; i++) {
15740 key = field[i]
15741 keylen = length(key)
15742 if (S_is_set[key]) {
15743 value = S[key]
15744 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
15745 len += length(value) + length(field[++i])
15746 substed = 1
15747 } else
15748 len += 1 + keylen
15749 }
15750
15751 print line
15752 }
15753
15754 _ACAWK
15755 _ACEOF
15756 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15757 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
15758 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
15759 else
15760 cat
15761 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
15762 || as_fn_error "could not setup config files machinery" "$LINENO" 5
15763 _ACEOF
15764
15765 # VPATH may cause trouble with some makes, so we remove $(srcdir),
15766 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
15767 # trailing colons and then remove the whole line if VPATH becomes empty
15768 # (actually we leave an empty line to preserve line numbers).
15769 if test "x$srcdir" = x.; then
15770 ac_vpsub='/^[ ]*VPATH[ ]*=/{
15771 s/:*\$(srcdir):*/:/
15772 s/:*\${srcdir}:*/:/
15773 s/:*@srcdir@:*/:/
15774 s/^\([^=]*=[ ]*\):*/\1/
15775 s/:*$//
15776 s/^[^=]*=[ ]*$//
15777 }'
15778 fi
15779
15780 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15781 fi # test -n "$CONFIG_FILES"
15782
15783 # Set up the scripts for CONFIG_HEADERS section.
15784 # No need to generate them if there are no CONFIG_HEADERS.
15785 # This happens for instance with `./config.status Makefile'.
15786 if test -n "$CONFIG_HEADERS"; then
15787 cat >"$tmp/defines.awk" <<\_ACAWK ||
15788 BEGIN {
15789 _ACEOF
15790
15791 # Transform confdefs.h into an awk script `defines.awk', embedded as
15792 # here-document in config.status, that substitutes the proper values into
15793 # config.h.in to produce config.h.
15794
15795 # Create a delimiter string that does not exist in confdefs.h, to ease
15796 # handling of long lines.
15797 ac_delim='%!_!# '
15798 for ac_last_try in false false :; do
15799 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
15800 if test -z "$ac_t"; then
15801 break
15802 elif $ac_last_try; then
15803 as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
15804 else
15805 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
15806 fi
15807 done
15808
15809 # For the awk script, D is an array of macro values keyed by name,
15810 # likewise P contains macro parameters if any. Preserve backslash
15811 # newline sequences.
15812
15813 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
15814 sed -n '
15815 s/.\{148\}/&'"$ac_delim"'/g
15816 t rset
15817 :rset
15818 s/^[ ]*#[ ]*define[ ][ ]*/ /
15819 t def
15820 d
15821 :def
15822 s/\\$//
15823 t bsnl
15824 s/["\\]/\\&/g
15825 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
15826 D["\1"]=" \3"/p
15827 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
15828 d
15829 :bsnl
15830 s/["\\]/\\&/g
15831 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
15832 D["\1"]=" \3\\\\\\n"\\/p
15833 t cont
15834 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
15835 t cont
15836 d
15837 :cont
15838 n
15839 s/.\{148\}/&'"$ac_delim"'/g
15840 t clear
15841 :clear
15842 s/\\$//
15843 t bsnlc
15844 s/["\\]/\\&/g; s/^/"/; s/$/"/p
15845 d
15846 :bsnlc
15847 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
15848 b cont
15849 ' <confdefs.h | sed '
15850 s/'"$ac_delim"'/"\\\
15851 "/g' >>$CONFIG_STATUS || ac_write_fail=1
15852
15853 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15854 for (key in D) D_is_set[key] = 1
15855 FS = "\a"
15856 }
15857 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
15858 line = \$ 0
15859 split(line, arg, " ")
15860 if (arg[1] == "#") {
15861 defundef = arg[2]
15862 mac1 = arg[3]
15863 } else {
15864 defundef = substr(arg[1], 2)
15865 mac1 = arg[2]
15866 }
15867 split(mac1, mac2, "(") #)
15868 macro = mac2[1]
15869 prefix = substr(line, 1, index(line, defundef) - 1)
15870 if (D_is_set[macro]) {
15871 # Preserve the white space surrounding the "#".
15872 print prefix "define", macro P[macro] D[macro]
15873 next
15874 } else {
15875 # Replace #undef with comments. This is necessary, for example,
15876 # in the case of _POSIX_SOURCE, which is predefined and required
15877 # on some systems where configure will not decide to define it.
15878 if (defundef == "undef") {
15879 print "/*", prefix defundef, macro, "*/"
15880 next
15881 }
15882 }
15883 }
15884 { print }
15885 _ACAWK
15886 _ACEOF
15887 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15888 as_fn_error "could not setup config headers machinery" "$LINENO" 5
15889 fi # test -n "$CONFIG_HEADERS"
15890
15891
15892 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
15893 shift
15894 for ac_tag
15895 do
15896 case $ac_tag in
15897 :[FHLC]) ac_mode=$ac_tag; continue;;
15898 esac
15899 case $ac_mode$ac_tag in
15900 :[FHL]*:*);;
15901 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
15902 :[FH]-) ac_tag=-:-;;
15903 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
15904 esac
15905 ac_save_IFS=$IFS
15906 IFS=:
15907 set x $ac_tag
15908 IFS=$ac_save_IFS
15909 shift
15910 ac_file=$1
15911 shift
15912
15913 case $ac_mode in
15914 :L) ac_source=$1;;
15915 :[FH])
15916 ac_file_inputs=
15917 for ac_f
15918 do
15919 case $ac_f in
15920 -) ac_f="$tmp/stdin";;
15921 *) # Look for the file first in the build tree, then in the source tree
15922 # (if the path is not absolute). The absolute path cannot be DOS-style,
15923 # because $ac_f cannot contain `:'.
15924 test -f "$ac_f" ||
15925 case $ac_f in
15926 [\\/$]*) false;;
15927 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
15928 esac ||
15929 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
15930 esac
15931 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
15932 as_fn_append ac_file_inputs " '$ac_f'"
15933 done
15934
15935 # Let's still pretend it is `configure' which instantiates (i.e., don't
15936 # use $as_me), people would be surprised to read:
15937 # /* config.h. Generated by config.status. */
15938 configure_input='Generated from '`
15939 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
15940 `' by configure.'
15941 if test x"$ac_file" != x-; then
15942 configure_input="$ac_file. $configure_input"
15943 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
15944 $as_echo "$as_me: creating $ac_file" >&6;}
15945 fi
15946 # Neutralize special characters interpreted by sed in replacement strings.
15947 case $configure_input in #(
15948 *\&* | *\|* | *\\* )
15949 ac_sed_conf_input=`$as_echo "$configure_input" |
15950 sed 's/[\\\\&|]/\\\\&/g'`;; #(
15951 *) ac_sed_conf_input=$configure_input;;
15952 esac
15953
15954 case $ac_tag in
15955 *:-:* | *:-) cat >"$tmp/stdin" \
15956 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
15957 esac
15958 ;;
15959 esac
15960
15961 ac_dir=`$as_dirname -- "$ac_file" ||
15962 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15963 X"$ac_file" : 'X\(//\)[^/]' \| \
15964 X"$ac_file" : 'X\(//\)$' \| \
15965 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
15966 $as_echo X"$ac_file" |
15967 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15968 s//\1/
15969 q
15970 }
15971 /^X\(\/\/\)[^/].*/{
15972 s//\1/
15973 q
15974 }
15975 /^X\(\/\/\)$/{
15976 s//\1/
15977 q
15978 }
15979 /^X\(\/\).*/{
15980 s//\1/
15981 q
15982 }
15983 s/.*/./; q'`
15984 as_dir="$ac_dir"; as_fn_mkdir_p
15985 ac_builddir=.
15986
15987 case "$ac_dir" in
15988 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
15989 *)
15990 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
15991 # A ".." for each directory in $ac_dir_suffix.
15992 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
15993 case $ac_top_builddir_sub in
15994 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
15995 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
15996 esac ;;
15997 esac
15998 ac_abs_top_builddir=$ac_pwd
15999 ac_abs_builddir=$ac_pwd$ac_dir_suffix
16000 # for backward compatibility:
16001 ac_top_builddir=$ac_top_build_prefix
16002
16003 case $srcdir in
16004 .) # We are building in place.
16005 ac_srcdir=.
16006 ac_top_srcdir=$ac_top_builddir_sub
16007 ac_abs_top_srcdir=$ac_pwd ;;
16008 [\\/]* | ?:[\\/]* ) # Absolute name.
16009 ac_srcdir=$srcdir$ac_dir_suffix;
16010 ac_top_srcdir=$srcdir
16011 ac_abs_top_srcdir=$srcdir ;;
16012 *) # Relative name.
16013 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
16014 ac_top_srcdir=$ac_top_build_prefix$srcdir
16015 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
16016 esac
16017 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
16018
16019
16020 case $ac_mode in
16021 :F)
16022 #
16023 # CONFIG_FILE
16024 #
16025
16026 case $INSTALL in
16027 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
16028 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
16029 esac
16030 ac_MKDIR_P=$MKDIR_P
16031 case $MKDIR_P in
16032 [\\/$]* | ?:[\\/]* ) ;;
16033 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
16034 esac
16035 _ACEOF
16036
16037 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16038 # If the template does not know about datarootdir, expand it.
16039 # FIXME: This hack should be removed a few years after 2.60.
16040 ac_datarootdir_hack=; ac_datarootdir_seen=
16041 ac_sed_dataroot='
16042 /datarootdir/ {
16043 p
16044 q
16045 }
16046 /@datadir@/p
16047 /@docdir@/p
16048 /@infodir@/p
16049 /@localedir@/p
16050 /@mandir@/p'
16051 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
16052 *datarootdir*) ac_datarootdir_seen=yes;;
16053 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
16054 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
16055 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
16056 _ACEOF
16057 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16058 ac_datarootdir_hack='
16059 s&@datadir@&$datadir&g
16060 s&@docdir@&$docdir&g
16061 s&@infodir@&$infodir&g
16062 s&@localedir@&$localedir&g
16063 s&@mandir@&$mandir&g
16064 s&\\\${datarootdir}&$datarootdir&g' ;;
16065 esac
16066 _ACEOF
16067
16068 # Neutralize VPATH when `$srcdir' = `.'.
16069 # Shell code in configure.ac might set extrasub.
16070 # FIXME: do we really want to maintain this feature?
16071 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16072 ac_sed_extra="$ac_vpsub
16073 $extrasub
16074 _ACEOF
16075 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16076 :t
16077 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
16078 s|@configure_input@|$ac_sed_conf_input|;t t
16079 s&@top_builddir@&$ac_top_builddir_sub&;t t
16080 s&@top_build_prefix@&$ac_top_build_prefix&;t t
16081 s&@srcdir@&$ac_srcdir&;t t
16082 s&@abs_srcdir@&$ac_abs_srcdir&;t t
16083 s&@top_srcdir@&$ac_top_srcdir&;t t
16084 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
16085 s&@builddir@&$ac_builddir&;t t
16086 s&@abs_builddir@&$ac_abs_builddir&;t t
16087 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
16088 s&@INSTALL@&$ac_INSTALL&;t t
16089 s&@MKDIR_P@&$ac_MKDIR_P&;t t
16090 $ac_datarootdir_hack
16091 "
16092 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
16093 || as_fn_error "could not create $ac_file" "$LINENO" 5
16094
16095 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
16096 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
16097 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
16098 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
16099 which seems to be undefined. Please make sure it is defined." >&5
16100 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
16101 which seems to be undefined. Please make sure it is defined." >&2;}
16102
16103 rm -f "$tmp/stdin"
16104 case $ac_file in
16105 -) cat "$tmp/out" && rm -f "$tmp/out";;
16106 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
16107 esac \
16108 || as_fn_error "could not create $ac_file" "$LINENO" 5
16109 ;;
16110 :H)
16111 #
16112 # CONFIG_HEADER
16113 #
16114 if test x"$ac_file" != x-; then
16115 {
16116 $as_echo "/* $configure_input */" \
16117 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
16118 } >"$tmp/config.h" \
16119 || as_fn_error "could not create $ac_file" "$LINENO" 5
16120 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
16121 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
16122 $as_echo "$as_me: $ac_file is unchanged" >&6;}
16123 else
16124 rm -f "$ac_file"
16125 mv "$tmp/config.h" "$ac_file" \
16126 || as_fn_error "could not create $ac_file" "$LINENO" 5
16127 fi
16128 else
16129 $as_echo "/* $configure_input */" \
16130 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
16131 || as_fn_error "could not create -" "$LINENO" 5
16132 fi
16133 # Compute "$ac_file"'s index in $config_headers.
16134 _am_arg="$ac_file"
16135 _am_stamp_count=1
16136 for _am_header in $config_headers :; do
16137 case $_am_header in
16138 $_am_arg | $_am_arg:* )
16139 break ;;
16140 * )
16141 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
16142 esac
16143 done
16144 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
16145 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16146 X"$_am_arg" : 'X\(//\)[^/]' \| \
16147 X"$_am_arg" : 'X\(//\)$' \| \
16148 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
16149 $as_echo X"$_am_arg" |
16150 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16151 s//\1/
16152 q
16153 }
16154 /^X\(\/\/\)[^/].*/{
16155 s//\1/
16156 q
16157 }
16158 /^X\(\/\/\)$/{
16159 s//\1/
16160 q
16161 }
16162 /^X\(\/\).*/{
16163 s//\1/
16164 q
16165 }
16166 s/.*/./; q'`/stamp-h$_am_stamp_count
16167 ;;
16168
16169 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
16170 $as_echo "$as_me: executing $ac_file commands" >&6;}
16171 ;;
16172 esac
16173
16174
16175 case $ac_file$ac_mode in
16176 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
16177 # Autoconf 2.62 quotes --file arguments for eval, but not when files
16178 # are listed without --file. Let's play safe and only enable the eval
16179 # if we detect the quoting.
16180 case $CONFIG_FILES in
16181 *\'*) eval set x "$CONFIG_FILES" ;;
16182 *) set x $CONFIG_FILES ;;
16183 esac
16184 shift
16185 for mf
16186 do
16187 # Strip MF so we end up with the name of the file.
16188 mf=`echo "$mf" | sed -e 's/:.*$//'`
16189 # Check whether this is an Automake generated Makefile or not.
16190 # We used to match only the files named `Makefile.in', but
16191 # some people rename them; so instead we look at the file content.
16192 # Grep'ing the first line is not enough: some people post-process
16193 # each Makefile.in and add a new line on top of each file to say so.
16194 # Grep'ing the whole file is not good either: AIX grep has a line
16195 # limit of 2048, but all sed's we know have understand at least 4000.
16196 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
16197 dirpart=`$as_dirname -- "$mf" ||
16198 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16199 X"$mf" : 'X\(//\)[^/]' \| \
16200 X"$mf" : 'X\(//\)$' \| \
16201 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
16202 $as_echo X"$mf" |
16203 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16204 s//\1/
16205 q
16206 }
16207 /^X\(\/\/\)[^/].*/{
16208 s//\1/
16209 q
16210 }
16211 /^X\(\/\/\)$/{
16212 s//\1/
16213 q
16214 }
16215 /^X\(\/\).*/{
16216 s//\1/
16217 q
16218 }
16219 s/.*/./; q'`
16220 else
16221 continue
16222 fi
16223 # Extract the definition of DEPDIR, am__include, and am__quote
16224 # from the Makefile without running `make'.
16225 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
16226 test -z "$DEPDIR" && continue
16227 am__include=`sed -n 's/^am__include = //p' < "$mf"`
16228 test -z "am__include" && continue
16229 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
16230 # When using ansi2knr, U may be empty or an underscore; expand it
16231 U=`sed -n 's/^U = //p' < "$mf"`
16232 # Find all dependency output files, they are included files with
16233 # $(DEPDIR) in their names. We invoke sed twice because it is the
16234 # simplest approach to changing $(DEPDIR) to its actual value in the
16235 # expansion.
16236 for file in `sed -n "
16237 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
16238 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
16239 # Make sure the directory exists.
16240 test -f "$dirpart/$file" && continue
16241 fdir=`$as_dirname -- "$file" ||
16242 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16243 X"$file" : 'X\(//\)[^/]' \| \
16244 X"$file" : 'X\(//\)$' \| \
16245 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
16246 $as_echo X"$file" |
16247 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16248 s//\1/
16249 q
16250 }
16251 /^X\(\/\/\)[^/].*/{
16252 s//\1/
16253 q
16254 }
16255 /^X\(\/\/\)$/{
16256 s//\1/
16257 q
16258 }
16259 /^X\(\/\).*/{
16260 s//\1/
16261 q
16262 }
16263 s/.*/./; q'`
16264 as_dir=$dirpart/$fdir; as_fn_mkdir_p
16265 # echo "creating $dirpart/$file"
16266 echo '# dummy' > "$dirpart/$file"
16267 done
16268 done
16269 }
16270 ;;
16271 "libtool":C)
16272
16273 # See if we are running on zsh, and set the options which allow our
16274 # commands through without removal of \ escapes.
16275 if test -n "${ZSH_VERSION+set}" ; then
16276 setopt NO_GLOB_SUBST
16277 fi
16278
16279 cfgfile="${ofile}T"
16280 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
16281 $RM "$cfgfile"
16282
16283 cat <<_LT_EOF >> "$cfgfile"
16284 #! $SHELL
16285
16286 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
16287 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
16288 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
16289 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
16290 #
16291 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
16292 # 2006, 2007, 2008, 2009 Free Software Foundation, Inc.
16293 # Written by Gordon Matzigkeit, 1996
16294 #
16295 # This file is part of GNU Libtool.
16296 #
16297 # GNU Libtool is free software; you can redistribute it and/or
16298 # modify it under the terms of the GNU General Public License as
16299 # published by the Free Software Foundation; either version 2 of
16300 # the License, or (at your option) any later version.
16301 #
16302 # As a special exception to the GNU General Public License,
16303 # if you distribute this file as part of a program or library that
16304 # is built using GNU Libtool, you may include this file under the
16305 # same distribution terms that you use for the rest of that program.
16306 #
16307 # GNU Libtool is distributed in the hope that it will be useful,
16308 # but WITHOUT ANY WARRANTY; without even the implied warranty of
16309 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16310 # GNU General Public License for more details.
16311 #
16312 # You should have received a copy of the GNU General Public License
16313 # along with GNU Libtool; see the file COPYING. If not, a copy
16314 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
16315 # obtained by writing to the Free Software Foundation, Inc.,
16316 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
16317
16318
16319 # The names of the tagged configurations supported by this script.
16320 available_tags=""
16321
16322 # ### BEGIN LIBTOOL CONFIG
16323
16324 # Which release of libtool.m4 was used?
16325 macro_version=$macro_version
16326 macro_revision=$macro_revision
16327
16328 # Whether or not to build shared libraries.
16329 build_libtool_libs=$enable_shared
16330
16331 # Whether or not to build static libraries.
16332 build_old_libs=$enable_static
16333
16334 # What type of objects to build.
16335 pic_mode=$pic_mode
16336
16337 # Whether or not to optimize for fast installation.
16338 fast_install=$enable_fast_install
16339
16340 # Shell to use when invoking shell scripts.
16341 SHELL=$lt_SHELL
16342
16343 # An echo program that protects backslashes.
16344 ECHO=$lt_ECHO
16345
16346 # The host system.
16347 host_alias=$host_alias
16348 host=$host
16349 host_os=$host_os
16350
16351 # The build system.
16352 build_alias=$build_alias
16353 build=$build
16354 build_os=$build_os
16355
16356 # A sed program that does not truncate output.
16357 SED=$lt_SED
16358
16359 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
16360 Xsed="\$SED -e 1s/^X//"
16361
16362 # A grep program that handles long lines.
16363 GREP=$lt_GREP
16364
16365 # An ERE matcher.
16366 EGREP=$lt_EGREP
16367
16368 # A literal string matcher.
16369 FGREP=$lt_FGREP
16370
16371 # A BSD- or MS-compatible name lister.
16372 NM=$lt_NM
16373
16374 # Whether we need soft or hard links.
16375 LN_S=$lt_LN_S
16376
16377 # What is the maximum length of a command?
16378 max_cmd_len=$max_cmd_len
16379
16380 # Object file suffix (normally "o").
16381 objext=$ac_objext
16382
16383 # Executable file suffix (normally "").
16384 exeext=$exeext
16385
16386 # whether the shell understands "unset".
16387 lt_unset=$lt_unset
16388
16389 # turn spaces into newlines.
16390 SP2NL=$lt_lt_SP2NL
16391
16392 # turn newlines into spaces.
16393 NL2SP=$lt_lt_NL2SP
16394
16395 # An object symbol dumper.
16396 OBJDUMP=$lt_OBJDUMP
16397
16398 # Method to check whether dependent libraries are shared objects.
16399 deplibs_check_method=$lt_deplibs_check_method
16400
16401 # Command to use when deplibs_check_method == "file_magic".
16402 file_magic_cmd=$lt_file_magic_cmd
16403
16404 # The archiver.
16405 AR=$lt_AR
16406 AR_FLAGS=$lt_AR_FLAGS
16407
16408 # A symbol stripping program.
16409 STRIP=$lt_STRIP
16410
16411 # Commands used to install an old-style archive.
16412 RANLIB=$lt_RANLIB
16413 old_postinstall_cmds=$lt_old_postinstall_cmds
16414 old_postuninstall_cmds=$lt_old_postuninstall_cmds
16415
16416 # Whether to use a lock for old archive extraction.
16417 lock_old_archive_extraction=$lock_old_archive_extraction
16418
16419 # A C compiler.
16420 LTCC=$lt_CC
16421
16422 # LTCC compiler flags.
16423 LTCFLAGS=$lt_CFLAGS
16424
16425 # Take the output of nm and produce a listing of raw symbols and C names.
16426 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
16427
16428 # Transform the output of nm in a proper C declaration.
16429 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
16430
16431 # Transform the output of nm in a C name address pair.
16432 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
16433
16434 # Transform the output of nm in a C name address pair when lib prefix is needed.
16435 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
16436
16437 # The name of the directory that contains temporary libtool files.
16438 objdir=$objdir
16439
16440 # Used to examine libraries when file_magic_cmd begins with "file".
16441 MAGIC_CMD=$MAGIC_CMD
16442
16443 # Must we lock files when doing compilation?
16444 need_locks=$lt_need_locks
16445
16446 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
16447 DSYMUTIL=$lt_DSYMUTIL
16448
16449 # Tool to change global to local symbols on Mac OS X.
16450 NMEDIT=$lt_NMEDIT
16451
16452 # Tool to manipulate fat objects and archives on Mac OS X.
16453 LIPO=$lt_LIPO
16454
16455 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
16456 OTOOL=$lt_OTOOL
16457
16458 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
16459 OTOOL64=$lt_OTOOL64
16460
16461 # Old archive suffix (normally "a").
16462 libext=$libext
16463
16464 # Shared library suffix (normally ".so").
16465 shrext_cmds=$lt_shrext_cmds
16466
16467 # The commands to extract the exported symbol list from a shared archive.
16468 extract_expsyms_cmds=$lt_extract_expsyms_cmds
16469
16470 # Variables whose values should be saved in libtool wrapper scripts and
16471 # restored at link time.
16472 variables_saved_for_relink=$lt_variables_saved_for_relink
16473
16474 # Do we need the "lib" prefix for modules?
16475 need_lib_prefix=$need_lib_prefix
16476
16477 # Do we need a version for libraries?
16478 need_version=$need_version
16479
16480 # Library versioning type.
16481 version_type=$version_type
16482
16483 # Shared library runtime path variable.
16484 runpath_var=$runpath_var
16485
16486 # Shared library path variable.
16487 shlibpath_var=$shlibpath_var
16488
16489 # Is shlibpath searched before the hard-coded library search path?
16490 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
16491
16492 # Format of library name prefix.
16493 libname_spec=$lt_libname_spec
16494
16495 # List of archive names. First name is the real one, the rest are links.
16496 # The last name is the one that the linker finds with -lNAME
16497 library_names_spec=$lt_library_names_spec
16498
16499 # The coded name of the library, if different from the real name.
16500 soname_spec=$lt_soname_spec
16501
16502 # Permission mode override for installation of shared libraries.
16503 install_override_mode=$lt_install_override_mode
16504
16505 # Command to use after installation of a shared archive.
16506 postinstall_cmds=$lt_postinstall_cmds
16507
16508 # Command to use after uninstallation of a shared archive.
16509 postuninstall_cmds=$lt_postuninstall_cmds
16510
16511 # Commands used to finish a libtool library installation in a directory.
16512 finish_cmds=$lt_finish_cmds
16513
16514 # As "finish_cmds", except a single script fragment to be evaled but
16515 # not shown.
16516 finish_eval=$lt_finish_eval
16517
16518 # Whether we should hardcode library paths into libraries.
16519 hardcode_into_libs=$hardcode_into_libs
16520
16521 # Compile-time system search path for libraries.
16522 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
16523
16524 # Run-time system search path for libraries.
16525 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
16526
16527 # Whether dlopen is supported.
16528 dlopen_support=$enable_dlopen
16529
16530 # Whether dlopen of programs is supported.
16531 dlopen_self=$enable_dlopen_self
16532
16533 # Whether dlopen of statically linked programs is supported.
16534 dlopen_self_static=$enable_dlopen_self_static
16535
16536 # Commands to strip libraries.
16537 old_striplib=$lt_old_striplib
16538 striplib=$lt_striplib
16539
16540
16541 # The linker used to build libraries.
16542 LD=$lt_LD
16543
16544 # How to create reloadable object files.
16545 reload_flag=$lt_reload_flag
16546 reload_cmds=$lt_reload_cmds
16547
16548 # Commands used to build an old-style archive.
16549 old_archive_cmds=$lt_old_archive_cmds
16550
16551 # A language specific compiler.
16552 CC=$lt_compiler
16553
16554 # Is the compiler the GNU compiler?
16555 with_gcc=$GCC
16556
16557 # Compiler flag to turn off builtin functions.
16558 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
16559
16560 # How to pass a linker flag through the compiler.
16561 wl=$lt_lt_prog_compiler_wl
16562
16563 # Additional compiler flags for building library objects.
16564 pic_flag=$lt_lt_prog_compiler_pic
16565
16566 # Compiler flag to prevent dynamic linking.
16567 link_static_flag=$lt_lt_prog_compiler_static
16568
16569 # Does compiler simultaneously support -c and -o options?
16570 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
16571
16572 # Whether or not to add -lc for building shared libraries.
16573 build_libtool_need_lc=$archive_cmds_need_lc
16574
16575 # Whether or not to disallow shared libs when runtime libs are static.
16576 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
16577
16578 # Compiler flag to allow reflexive dlopens.
16579 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
16580
16581 # Compiler flag to generate shared objects directly from archives.
16582 whole_archive_flag_spec=$lt_whole_archive_flag_spec
16583
16584 # Whether the compiler copes with passing no objects directly.
16585 compiler_needs_object=$lt_compiler_needs_object
16586
16587 # Create an old-style archive from a shared archive.
16588 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
16589
16590 # Create a temporary old-style archive to link instead of a shared archive.
16591 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
16592
16593 # Commands used to build a shared archive.
16594 archive_cmds=$lt_archive_cmds
16595 archive_expsym_cmds=$lt_archive_expsym_cmds
16596
16597 # Commands used to build a loadable module if different from building
16598 # a shared archive.
16599 module_cmds=$lt_module_cmds
16600 module_expsym_cmds=$lt_module_expsym_cmds
16601
16602 # Whether we are building with GNU ld or not.
16603 with_gnu_ld=$lt_with_gnu_ld
16604
16605 # Flag that allows shared libraries with undefined symbols to be built.
16606 allow_undefined_flag=$lt_allow_undefined_flag
16607
16608 # Flag that enforces no undefined symbols.
16609 no_undefined_flag=$lt_no_undefined_flag
16610
16611 # Flag to hardcode \$libdir into a binary during linking.
16612 # This must work even if \$libdir does not exist
16613 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
16614
16615 # If ld is used when linking, flag to hardcode \$libdir into a binary
16616 # during linking. This must work even if \$libdir does not exist.
16617 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
16618
16619 # Whether we need a single "-rpath" flag with a separated argument.
16620 hardcode_libdir_separator=$lt_hardcode_libdir_separator
16621
16622 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
16623 # DIR into the resulting binary.
16624 hardcode_direct=$hardcode_direct
16625
16626 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
16627 # DIR into the resulting binary and the resulting library dependency is
16628 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
16629 # library is relocated.
16630 hardcode_direct_absolute=$hardcode_direct_absolute
16631
16632 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
16633 # into the resulting binary.
16634 hardcode_minus_L=$hardcode_minus_L
16635
16636 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
16637 # into the resulting binary.
16638 hardcode_shlibpath_var=$hardcode_shlibpath_var
16639
16640 # Set to "yes" if building a shared library automatically hardcodes DIR
16641 # into the library and all subsequent libraries and executables linked
16642 # against it.
16643 hardcode_automatic=$hardcode_automatic
16644
16645 # Set to yes if linker adds runtime paths of dependent libraries
16646 # to runtime path list.
16647 inherit_rpath=$inherit_rpath
16648
16649 # Whether libtool must link a program against all its dependency libraries.
16650 link_all_deplibs=$link_all_deplibs
16651
16652 # Fix the shell variable \$srcfile for the compiler.
16653 fix_srcfile_path=$lt_fix_srcfile_path
16654
16655 # Set to "yes" if exported symbols are required.
16656 always_export_symbols=$always_export_symbols
16657
16658 # The commands to list exported symbols.
16659 export_symbols_cmds=$lt_export_symbols_cmds
16660
16661 # Symbols that should not be listed in the preloaded symbols.
16662 exclude_expsyms=$lt_exclude_expsyms
16663
16664 # Symbols that must always be exported.
16665 include_expsyms=$lt_include_expsyms
16666
16667 # Commands necessary for linking programs (against libraries) with templates.
16668 prelink_cmds=$lt_prelink_cmds
16669
16670 # Specify filename containing input files.
16671 file_list_spec=$lt_file_list_spec
16672
16673 # How to hardcode a shared library path into an executable.
16674 hardcode_action=$hardcode_action
16675
16676 # ### END LIBTOOL CONFIG
16677
16678 _LT_EOF
16679
16680 case $host_os in
16681 aix3*)
16682 cat <<\_LT_EOF >> "$cfgfile"
16683 # AIX sometimes has problems with the GCC collect2 program. For some
16684 # reason, if we set the COLLECT_NAMES environment variable, the problems
16685 # vanish in a puff of smoke.
16686 if test "X${COLLECT_NAMES+set}" != Xset; then
16687 COLLECT_NAMES=
16688 export COLLECT_NAMES
16689 fi
16690 _LT_EOF
16691 ;;
16692 esac
16693
16694
16695 ltmain="$ac_aux_dir/ltmain.sh"
16696
16697
16698 # We use sed instead of cat because bash on DJGPP gets confused if
16699 # if finds mixed CR/LF and LF-only lines. Since sed operates in
16700 # text mode, it properly converts lines to CR/LF. This bash problem
16701 # is reportedly fixed, but why not run on old versions too?
16702 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
16703 || (rm -f "$cfgfile"; exit 1)
16704
16705 case $xsi_shell in
16706 yes)
16707 cat << \_LT_EOF >> "$cfgfile"
16708
16709 # func_dirname file append nondir_replacement
16710 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
16711 # otherwise set result to NONDIR_REPLACEMENT.
16712 func_dirname ()
16713 {
16714 case ${1} in
16715 */*) func_dirname_result="${1%/*}${2}" ;;
16716 * ) func_dirname_result="${3}" ;;
16717 esac
16718 }
16719
16720 # func_basename file
16721 func_basename ()
16722 {
16723 func_basename_result="${1##*/}"
16724 }
16725
16726 # func_dirname_and_basename file append nondir_replacement
16727 # perform func_basename and func_dirname in a single function
16728 # call:
16729 # dirname: Compute the dirname of FILE. If nonempty,
16730 # add APPEND to the result, otherwise set result
16731 # to NONDIR_REPLACEMENT.
16732 # value returned in "$func_dirname_result"
16733 # basename: Compute filename of FILE.
16734 # value retuned in "$func_basename_result"
16735 # Implementation must be kept synchronized with func_dirname
16736 # and func_basename. For efficiency, we do not delegate to
16737 # those functions but instead duplicate the functionality here.
16738 func_dirname_and_basename ()
16739 {
16740 case ${1} in
16741 */*) func_dirname_result="${1%/*}${2}" ;;
16742 * ) func_dirname_result="${3}" ;;
16743 esac
16744 func_basename_result="${1##*/}"
16745 }
16746
16747 # func_stripname prefix suffix name
16748 # strip PREFIX and SUFFIX off of NAME.
16749 # PREFIX and SUFFIX must not contain globbing or regex special
16750 # characters, hashes, percent signs, but SUFFIX may contain a leading
16751 # dot (in which case that matches only a dot).
16752 func_stripname ()
16753 {
16754 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
16755 # positional parameters, so assign one to ordinary parameter first.
16756 func_stripname_result=${3}
16757 func_stripname_result=${func_stripname_result#"${1}"}
16758 func_stripname_result=${func_stripname_result%"${2}"}
16759 }
16760
16761 # func_opt_split
16762 func_opt_split ()
16763 {
16764 func_opt_split_opt=${1%%=*}
16765 func_opt_split_arg=${1#*=}
16766 }
16767
16768 # func_lo2o object
16769 func_lo2o ()
16770 {
16771 case ${1} in
16772 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
16773 *) func_lo2o_result=${1} ;;
16774 esac
16775 }
16776
16777 # func_xform libobj-or-source
16778 func_xform ()
16779 {
16780 func_xform_result=${1%.*}.lo
16781 }
16782
16783 # func_arith arithmetic-term...
16784 func_arith ()
16785 {
16786 func_arith_result=$(( $* ))
16787 }
16788
16789 # func_len string
16790 # STRING may not start with a hyphen.
16791 func_len ()
16792 {
16793 func_len_result=${#1}
16794 }
16795
16796 _LT_EOF
16797 ;;
16798 *) # Bourne compatible functions.
16799 cat << \_LT_EOF >> "$cfgfile"
16800
16801 # func_dirname file append nondir_replacement
16802 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
16803 # otherwise set result to NONDIR_REPLACEMENT.
16804 func_dirname ()
16805 {
16806 # Extract subdirectory from the argument.
16807 func_dirname_result=`$ECHO "${1}" | $SED "$dirname"`
16808 if test "X$func_dirname_result" = "X${1}"; then
16809 func_dirname_result="${3}"
16810 else
16811 func_dirname_result="$func_dirname_result${2}"
16812 fi
16813 }
16814
16815 # func_basename file
16816 func_basename ()
16817 {
16818 func_basename_result=`$ECHO "${1}" | $SED "$basename"`
16819 }
16820
16821
16822 # func_stripname prefix suffix name
16823 # strip PREFIX and SUFFIX off of NAME.
16824 # PREFIX and SUFFIX must not contain globbing or regex special
16825 # characters, hashes, percent signs, but SUFFIX may contain a leading
16826 # dot (in which case that matches only a dot).
16827 # func_strip_suffix prefix name
16828 func_stripname ()
16829 {
16830 case ${2} in
16831 .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
16832 *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
16833 esac
16834 }
16835
16836 # sed scripts:
16837 my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
16838 my_sed_long_arg='1s/^-[^=]*=//'
16839
16840 # func_opt_split
16841 func_opt_split ()
16842 {
16843 func_opt_split_opt=`$ECHO "${1}" | $SED "$my_sed_long_opt"`
16844 func_opt_split_arg=`$ECHO "${1}" | $SED "$my_sed_long_arg"`
16845 }
16846
16847 # func_lo2o object
16848 func_lo2o ()
16849 {
16850 func_lo2o_result=`$ECHO "${1}" | $SED "$lo2o"`
16851 }
16852
16853 # func_xform libobj-or-source
16854 func_xform ()
16855 {
16856 func_xform_result=`$ECHO "${1}" | $SED 's/\.[^.]*$/.lo/'`
16857 }
16858
16859 # func_arith arithmetic-term...
16860 func_arith ()
16861 {
16862 func_arith_result=`expr "$@"`
16863 }
16864
16865 # func_len string
16866 # STRING may not start with a hyphen.
16867 func_len ()
16868 {
16869 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
16870 }
16871
16872 _LT_EOF
16873 esac
16874
16875 case $lt_shell_append in
16876 yes)
16877 cat << \_LT_EOF >> "$cfgfile"
16878
16879 # func_append var value
16880 # Append VALUE to the end of shell variable VAR.
16881 func_append ()
16882 {
16883 eval "$1+=\$2"
16884 }
16885 _LT_EOF
16886 ;;
16887 *)
16888 cat << \_LT_EOF >> "$cfgfile"
16889
16890 # func_append var value
16891 # Append VALUE to the end of shell variable VAR.
16892 func_append ()
16893 {
16894 eval "$1=\$$1\$2"
16895 }
16896
16897 _LT_EOF
16898 ;;
16899 esac
16900
16901
16902 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
16903 || (rm -f "$cfgfile"; exit 1)
16904
16905 mv -f "$cfgfile" "$ofile" ||
16906 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
16907 chmod +x "$ofile"
16908
16909 ;;
16910 "default-1":C)
16911 for ac_file in $CONFIG_FILES; do
16912 # Support "outfile[:infile[:infile...]]"
16913 case "$ac_file" in
16914 *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
16915 esac
16916 # PO directories have a Makefile.in generated from Makefile.in.in.
16917 case "$ac_file" in */Makefile.in)
16918 # Adjust a relative srcdir.
16919 ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
16920 ac_dir_suffix=/`echo "$ac_dir"|sed 's%^\./%%'`
16921 ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
16922 # In autoconf-2.13 it is called $ac_given_srcdir.
16923 # In autoconf-2.50 it is called $srcdir.
16924 test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
16925 case "$ac_given_srcdir" in
16926 .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
16927 /*) top_srcdir="$ac_given_srcdir" ;;
16928 *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
16929 esac
16930 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
16931 rm -f "$ac_dir/POTFILES"
16932 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
16933 cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
16934 POMAKEFILEDEPS="POTFILES.in"
16935 # ALL_LINGUAS, POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES depend
16936 # on $ac_dir but don't depend on user-specified configuration
16937 # parameters.
16938 if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
16939 # The LINGUAS file contains the set of available languages.
16940 if test -n "$OBSOLETE_ALL_LINGUAS"; then
16941 test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.ac is obsolete" || echo "setting ALL_LINGUAS in configure.ac is obsolete"
16942 fi
16943 ALL_LINGUAS_=`sed -e "/^#/d" "$ac_given_srcdir/$ac_dir/LINGUAS"`
16944 # Hide the ALL_LINGUAS assigment from automake.
16945 eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
16946 POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
16947 else
16948 # The set of available languages was given in configure.ac.
16949 eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
16950 fi
16951 case "$ac_given_srcdir" in
16952 .) srcdirpre= ;;
16953 *) srcdirpre='$(srcdir)/' ;;
16954 esac
16955 POFILES=
16956 GMOFILES=
16957 UPDATEPOFILES=
16958 DUMMYPOFILES=
16959 for lang in $ALL_LINGUAS; do
16960 POFILES="$POFILES $srcdirpre$lang.po"
16961 GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
16962 UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
16963 DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
16964 done
16965 # CATALOGS depends on both $ac_dir and the user's LINGUAS
16966 # environment variable.
16967 INST_LINGUAS=
16968 if test -n "$ALL_LINGUAS"; then
16969 for presentlang in $ALL_LINGUAS; do
16970 useit=no
16971 if test "%UNSET%" != "$LINGUAS"; then
16972 desiredlanguages="$LINGUAS"
16973 else
16974 desiredlanguages="$ALL_LINGUAS"
16975 fi
16976 for desiredlang in $desiredlanguages; do
16977 # Use the presentlang catalog if desiredlang is
16978 # a. equal to presentlang, or
16979 # b. a variant of presentlang (because in this case,
16980 # presentlang can be used as a fallback for messages
16981 # which are not translated in the desiredlang catalog).
16982 case "$desiredlang" in
16983 "$presentlang"*) useit=yes;;
16984 esac
16985 done
16986 if test $useit = yes; then
16987 INST_LINGUAS="$INST_LINGUAS $presentlang"
16988 fi
16989 done
16990 fi
16991 CATALOGS=
16992 if test -n "$INST_LINGUAS"; then
16993 for lang in $INST_LINGUAS; do
16994 CATALOGS="$CATALOGS $lang.gmo"
16995 done
16996 fi
16997 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
16998 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"
16999 for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
17000 if test -f "$f"; then
17001 case "$f" in
17002 *.orig | *.bak | *~) ;;
17003 *) cat "$f" >> "$ac_dir/Makefile" ;;
17004 esac
17005 fi
17006 done
17007 fi
17008 ;;
17009 esac
17010 done ;;
17011 "default":C) rm -f targ-cpu.c targ-cpu.h obj-format.h obj-format.c targ-env.h atof-targ.c itbl-cpu.h
17012 echo '#include "tc-'"${target_cpu_type}"'.h"' > targ-cpu.h
17013 echo '#include "obj-'"${obj_format}"'.h"' > obj-format.h
17014 echo '#include "te-'"${te_file}"'.h"' > targ-env.h
17015 echo '#include "itbl-'"${target_cpu_type}"'.h"' > itbl-cpu.h
17016 if test "x$cgen_cpu_prefix" != x ; then
17017 echo '#include "opcodes/'"${cgen_cpu_prefix}"'-desc.h"' > cgen-desc.h
17018 fi ;;
17019
17020 esac
17021 done # for ac_tag
17022
17023
17024 as_fn_exit 0
17025 _ACEOF
17026 ac_clean_files=$ac_clean_files_save
17027
17028 test $ac_write_fail = 0 ||
17029 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
17030
17031
17032 # configure is writing to config.log, and then calls config.status.
17033 # config.status does its own redirection, appending to config.log.
17034 # Unfortunately, on DOS this fails, as config.log is still kept open
17035 # by configure, so config.status won't be able to write to it; its
17036 # output is simply discarded. So we exec the FD to /dev/null,
17037 # effectively closing config.log, so it can be properly (re)opened and
17038 # appended to by config.status. When coming back to configure, we
17039 # need to make the FD available again.
17040 if test "$no_create" != yes; then
17041 ac_cs_success=:
17042 ac_config_status_args=
17043 test "$silent" = yes &&
17044 ac_config_status_args="$ac_config_status_args --quiet"
17045 exec 5>/dev/null
17046 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
17047 exec 5>>config.log
17048 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
17049 # would make configure fail if this is the last instruction.
17050 $ac_cs_success || as_fn_exit $?
17051 fi
17052 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
17053 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
17054 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
17055 fi
17056