Add -Wstack-usage to the gcc warning flags list, but only if using a sufficiently...
[deliverable/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 NO_WERROR
644 WARN_CFLAGS
645 OTOOL64
646 OTOOL
647 LIPO
648 NMEDIT
649 DSYMUTIL
650 RANLIB
651 AR
652 OBJDUMP
653 LN_S
654 NM
655 ac_ct_DUMPBIN
656 DUMPBIN
657 LD
658 FGREP
659 SED
660 LIBTOOL
661 EGREP
662 GREP
663 CPP
664 am__fastdepCC_FALSE
665 am__fastdepCC_TRUE
666 CCDEPMODE
667 AMDEPBACKSLASH
668 AMDEP_FALSE
669 AMDEP_TRUE
670 am__quote
671 am__include
672 DEPDIR
673 am__untar
674 am__tar
675 AMTAR
676 am__leading_dot
677 SET_MAKE
678 AWK
679 mkdir_p
680 MKDIR_P
681 INSTALL_STRIP_PROGRAM
682 STRIP
683 install_sh
684 MAKEINFO
685 AUTOHEADER
686 AUTOMAKE
687 AUTOCONF
688 ACLOCAL
689 VERSION
690 PACKAGE
691 CYGPATH_W
692 am__isrc
693 INSTALL_DATA
694 INSTALL_SCRIPT
695 INSTALL_PROGRAM
696 OBJEXT
697 EXEEXT
698 ac_ct_CC
699 CPPFLAGS
700 LDFLAGS
701 CFLAGS
702 CC
703 target_os
704 target_vendor
705 target_cpu
706 target
707 host_os
708 host_vendor
709 host_cpu
710 host
711 build_os
712 build_vendor
713 build_cpu
714 build
715 target_alias
716 host_alias
717 build_alias
718 LIBS
719 ECHO_T
720 ECHO_N
721 ECHO_C
722 DEFS
723 mandir
724 localedir
725 libdir
726 psdir
727 pdfdir
728 dvidir
729 htmldir
730 infodir
731 docdir
732 oldincludedir
733 includedir
734 localstatedir
735 sharedstatedir
736 sysconfdir
737 datadir
738 datarootdir
739 libexecdir
740 sbindir
741 bindir
742 program_transform_name
743 prefix
744 exec_prefix
745 PACKAGE_URL
746 PACKAGE_BUGREPORT
747 PACKAGE_STRING
748 PACKAGE_VERSION
749 PACKAGE_TARNAME
750 PACKAGE_NAME
751 PATH_SEPARATOR
752 SHELL'
753 ac_subst_files=''
754 ac_user_opts='
755 enable_option_checking
756 enable_dependency_tracking
757 enable_shared
758 enable_static
759 with_pic
760 enable_fast_install
761 with_gnu_ld
762 enable_libtool_lock
763 enable_plugins
764 enable_largefile
765 enable_targets
766 enable_checking
767 enable_compressed_debug_sections
768 enable_x86_relax_relocations
769 enable_elf_stt_common
770 enable_werror
771 enable_build_warnings
772 enable_nls
773 enable_maintainer_mode
774 with_system_zlib
775 '
776 ac_precious_vars='build_alias
777 host_alias
778 target_alias
779 CC
780 CFLAGS
781 LDFLAGS
782 LIBS
783 CPPFLAGS
784 CPP
785 YACC
786 YFLAGS'
787
788
789 # Initialize some variables set by options.
790 ac_init_help=
791 ac_init_version=false
792 ac_unrecognized_opts=
793 ac_unrecognized_sep=
794 # The variables have the same names as the options, with
795 # dashes changed to underlines.
796 cache_file=/dev/null
797 exec_prefix=NONE
798 no_create=
799 no_recursion=
800 prefix=NONE
801 program_prefix=NONE
802 program_suffix=NONE
803 program_transform_name=s,x,x,
804 silent=
805 site=
806 srcdir=
807 verbose=
808 x_includes=NONE
809 x_libraries=NONE
810
811 # Installation directory options.
812 # These are left unexpanded so users can "make install exec_prefix=/foo"
813 # and all the variables that are supposed to be based on exec_prefix
814 # by default will actually change.
815 # Use braces instead of parens because sh, perl, etc. also accept them.
816 # (The list follows the same order as the GNU Coding Standards.)
817 bindir='${exec_prefix}/bin'
818 sbindir='${exec_prefix}/sbin'
819 libexecdir='${exec_prefix}/libexec'
820 datarootdir='${prefix}/share'
821 datadir='${datarootdir}'
822 sysconfdir='${prefix}/etc'
823 sharedstatedir='${prefix}/com'
824 localstatedir='${prefix}/var'
825 includedir='${prefix}/include'
826 oldincludedir='/usr/include'
827 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
828 infodir='${datarootdir}/info'
829 htmldir='${docdir}'
830 dvidir='${docdir}'
831 pdfdir='${docdir}'
832 psdir='${docdir}'
833 libdir='${exec_prefix}/lib'
834 localedir='${datarootdir}/locale'
835 mandir='${datarootdir}/man'
836
837 ac_prev=
838 ac_dashdash=
839 for ac_option
840 do
841 # If the previous option needs an argument, assign it.
842 if test -n "$ac_prev"; then
843 eval $ac_prev=\$ac_option
844 ac_prev=
845 continue
846 fi
847
848 case $ac_option in
849 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
850 *) ac_optarg=yes ;;
851 esac
852
853 # Accept the important Cygnus configure options, so we can diagnose typos.
854
855 case $ac_dashdash$ac_option in
856 --)
857 ac_dashdash=yes ;;
858
859 -bindir | --bindir | --bindi | --bind | --bin | --bi)
860 ac_prev=bindir ;;
861 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
862 bindir=$ac_optarg ;;
863
864 -build | --build | --buil | --bui | --bu)
865 ac_prev=build_alias ;;
866 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
867 build_alias=$ac_optarg ;;
868
869 -cache-file | --cache-file | --cache-fil | --cache-fi \
870 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
871 ac_prev=cache_file ;;
872 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
873 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
874 cache_file=$ac_optarg ;;
875
876 --config-cache | -C)
877 cache_file=config.cache ;;
878
879 -datadir | --datadir | --datadi | --datad)
880 ac_prev=datadir ;;
881 -datadir=* | --datadir=* | --datadi=* | --datad=*)
882 datadir=$ac_optarg ;;
883
884 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
885 | --dataroo | --dataro | --datar)
886 ac_prev=datarootdir ;;
887 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
888 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
889 datarootdir=$ac_optarg ;;
890
891 -disable-* | --disable-*)
892 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
893 # Reject names that are not valid shell variable names.
894 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
895 as_fn_error "invalid feature name: $ac_useropt"
896 ac_useropt_orig=$ac_useropt
897 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
898 case $ac_user_opts in
899 *"
900 "enable_$ac_useropt"
901 "*) ;;
902 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
903 ac_unrecognized_sep=', ';;
904 esac
905 eval enable_$ac_useropt=no ;;
906
907 -docdir | --docdir | --docdi | --doc | --do)
908 ac_prev=docdir ;;
909 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
910 docdir=$ac_optarg ;;
911
912 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
913 ac_prev=dvidir ;;
914 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
915 dvidir=$ac_optarg ;;
916
917 -enable-* | --enable-*)
918 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
919 # Reject names that are not valid shell variable names.
920 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
921 as_fn_error "invalid feature name: $ac_useropt"
922 ac_useropt_orig=$ac_useropt
923 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
924 case $ac_user_opts in
925 *"
926 "enable_$ac_useropt"
927 "*) ;;
928 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
929 ac_unrecognized_sep=', ';;
930 esac
931 eval enable_$ac_useropt=\$ac_optarg ;;
932
933 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
934 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
935 | --exec | --exe | --ex)
936 ac_prev=exec_prefix ;;
937 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
938 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
939 | --exec=* | --exe=* | --ex=*)
940 exec_prefix=$ac_optarg ;;
941
942 -gas | --gas | --ga | --g)
943 # Obsolete; use --with-gas.
944 with_gas=yes ;;
945
946 -help | --help | --hel | --he | -h)
947 ac_init_help=long ;;
948 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
949 ac_init_help=recursive ;;
950 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
951 ac_init_help=short ;;
952
953 -host | --host | --hos | --ho)
954 ac_prev=host_alias ;;
955 -host=* | --host=* | --hos=* | --ho=*)
956 host_alias=$ac_optarg ;;
957
958 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
959 ac_prev=htmldir ;;
960 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
961 | --ht=*)
962 htmldir=$ac_optarg ;;
963
964 -includedir | --includedir | --includedi | --included | --include \
965 | --includ | --inclu | --incl | --inc)
966 ac_prev=includedir ;;
967 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
968 | --includ=* | --inclu=* | --incl=* | --inc=*)
969 includedir=$ac_optarg ;;
970
971 -infodir | --infodir | --infodi | --infod | --info | --inf)
972 ac_prev=infodir ;;
973 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
974 infodir=$ac_optarg ;;
975
976 -libdir | --libdir | --libdi | --libd)
977 ac_prev=libdir ;;
978 -libdir=* | --libdir=* | --libdi=* | --libd=*)
979 libdir=$ac_optarg ;;
980
981 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
982 | --libexe | --libex | --libe)
983 ac_prev=libexecdir ;;
984 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
985 | --libexe=* | --libex=* | --libe=*)
986 libexecdir=$ac_optarg ;;
987
988 -localedir | --localedir | --localedi | --localed | --locale)
989 ac_prev=localedir ;;
990 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
991 localedir=$ac_optarg ;;
992
993 -localstatedir | --localstatedir | --localstatedi | --localstated \
994 | --localstate | --localstat | --localsta | --localst | --locals)
995 ac_prev=localstatedir ;;
996 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
997 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
998 localstatedir=$ac_optarg ;;
999
1000 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1001 ac_prev=mandir ;;
1002 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1003 mandir=$ac_optarg ;;
1004
1005 -nfp | --nfp | --nf)
1006 # Obsolete; use --without-fp.
1007 with_fp=no ;;
1008
1009 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1010 | --no-cr | --no-c | -n)
1011 no_create=yes ;;
1012
1013 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1014 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1015 no_recursion=yes ;;
1016
1017 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1018 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1019 | --oldin | --oldi | --old | --ol | --o)
1020 ac_prev=oldincludedir ;;
1021 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1022 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1023 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1024 oldincludedir=$ac_optarg ;;
1025
1026 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1027 ac_prev=prefix ;;
1028 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1029 prefix=$ac_optarg ;;
1030
1031 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1032 | --program-pre | --program-pr | --program-p)
1033 ac_prev=program_prefix ;;
1034 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1035 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1036 program_prefix=$ac_optarg ;;
1037
1038 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1039 | --program-suf | --program-su | --program-s)
1040 ac_prev=program_suffix ;;
1041 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1042 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1043 program_suffix=$ac_optarg ;;
1044
1045 -program-transform-name | --program-transform-name \
1046 | --program-transform-nam | --program-transform-na \
1047 | --program-transform-n | --program-transform- \
1048 | --program-transform | --program-transfor \
1049 | --program-transfo | --program-transf \
1050 | --program-trans | --program-tran \
1051 | --progr-tra | --program-tr | --program-t)
1052 ac_prev=program_transform_name ;;
1053 -program-transform-name=* | --program-transform-name=* \
1054 | --program-transform-nam=* | --program-transform-na=* \
1055 | --program-transform-n=* | --program-transform-=* \
1056 | --program-transform=* | --program-transfor=* \
1057 | --program-transfo=* | --program-transf=* \
1058 | --program-trans=* | --program-tran=* \
1059 | --progr-tra=* | --program-tr=* | --program-t=*)
1060 program_transform_name=$ac_optarg ;;
1061
1062 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1063 ac_prev=pdfdir ;;
1064 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1065 pdfdir=$ac_optarg ;;
1066
1067 -psdir | --psdir | --psdi | --psd | --ps)
1068 ac_prev=psdir ;;
1069 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1070 psdir=$ac_optarg ;;
1071
1072 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1073 | -silent | --silent | --silen | --sile | --sil)
1074 silent=yes ;;
1075
1076 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1077 ac_prev=sbindir ;;
1078 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1079 | --sbi=* | --sb=*)
1080 sbindir=$ac_optarg ;;
1081
1082 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1083 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1084 | --sharedst | --shareds | --shared | --share | --shar \
1085 | --sha | --sh)
1086 ac_prev=sharedstatedir ;;
1087 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1088 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1089 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1090 | --sha=* | --sh=*)
1091 sharedstatedir=$ac_optarg ;;
1092
1093 -site | --site | --sit)
1094 ac_prev=site ;;
1095 -site=* | --site=* | --sit=*)
1096 site=$ac_optarg ;;
1097
1098 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1099 ac_prev=srcdir ;;
1100 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1101 srcdir=$ac_optarg ;;
1102
1103 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1104 | --syscon | --sysco | --sysc | --sys | --sy)
1105 ac_prev=sysconfdir ;;
1106 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1107 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1108 sysconfdir=$ac_optarg ;;
1109
1110 -target | --target | --targe | --targ | --tar | --ta | --t)
1111 ac_prev=target_alias ;;
1112 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1113 target_alias=$ac_optarg ;;
1114
1115 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1116 verbose=yes ;;
1117
1118 -version | --version | --versio | --versi | --vers | -V)
1119 ac_init_version=: ;;
1120
1121 -with-* | --with-*)
1122 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1123 # Reject names that are not valid shell variable names.
1124 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1125 as_fn_error "invalid package name: $ac_useropt"
1126 ac_useropt_orig=$ac_useropt
1127 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1128 case $ac_user_opts in
1129 *"
1130 "with_$ac_useropt"
1131 "*) ;;
1132 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1133 ac_unrecognized_sep=', ';;
1134 esac
1135 eval with_$ac_useropt=\$ac_optarg ;;
1136
1137 -without-* | --without-*)
1138 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1139 # Reject names that are not valid shell variable names.
1140 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1141 as_fn_error "invalid package name: $ac_useropt"
1142 ac_useropt_orig=$ac_useropt
1143 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1144 case $ac_user_opts in
1145 *"
1146 "with_$ac_useropt"
1147 "*) ;;
1148 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1149 ac_unrecognized_sep=', ';;
1150 esac
1151 eval with_$ac_useropt=no ;;
1152
1153 --x)
1154 # Obsolete; use --with-x.
1155 with_x=yes ;;
1156
1157 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1158 | --x-incl | --x-inc | --x-in | --x-i)
1159 ac_prev=x_includes ;;
1160 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1161 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1162 x_includes=$ac_optarg ;;
1163
1164 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1165 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1166 ac_prev=x_libraries ;;
1167 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1168 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1169 x_libraries=$ac_optarg ;;
1170
1171 -*) as_fn_error "unrecognized option: \`$ac_option'
1172 Try \`$0 --help' for more information."
1173 ;;
1174
1175 *=*)
1176 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1177 # Reject names that are not valid shell variable names.
1178 case $ac_envvar in #(
1179 '' | [0-9]* | *[!_$as_cr_alnum]* )
1180 as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1181 esac
1182 eval $ac_envvar=\$ac_optarg
1183 export $ac_envvar ;;
1184
1185 *)
1186 # FIXME: should be removed in autoconf 3.0.
1187 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1188 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1189 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1190 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1191 ;;
1192
1193 esac
1194 done
1195
1196 if test -n "$ac_prev"; then
1197 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1198 as_fn_error "missing argument to $ac_option"
1199 fi
1200
1201 if test -n "$ac_unrecognized_opts"; then
1202 case $enable_option_checking in
1203 no) ;;
1204 fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1205 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1206 esac
1207 fi
1208
1209 # Check all directory arguments for consistency.
1210 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1211 datadir sysconfdir sharedstatedir localstatedir includedir \
1212 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1213 libdir localedir mandir
1214 do
1215 eval ac_val=\$$ac_var
1216 # Remove trailing slashes.
1217 case $ac_val in
1218 */ )
1219 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1220 eval $ac_var=\$ac_val;;
1221 esac
1222 # Be sure to have absolute directory names.
1223 case $ac_val in
1224 [\\/$]* | ?:[\\/]* ) continue;;
1225 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1226 esac
1227 as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1228 done
1229
1230 # There might be people who depend on the old broken behavior: `$host'
1231 # used to hold the argument of --host etc.
1232 # FIXME: To remove some day.
1233 build=$build_alias
1234 host=$host_alias
1235 target=$target_alias
1236
1237 # FIXME: To remove some day.
1238 if test "x$host_alias" != x; then
1239 if test "x$build_alias" = x; then
1240 cross_compiling=maybe
1241 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1242 If a cross compiler is detected then cross compile mode will be used." >&2
1243 elif test "x$build_alias" != "x$host_alias"; then
1244 cross_compiling=yes
1245 fi
1246 fi
1247
1248 ac_tool_prefix=
1249 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1250
1251 test "$silent" = yes && exec 6>/dev/null
1252
1253
1254 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1255 ac_ls_di=`ls -di .` &&
1256 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1257 as_fn_error "working directory cannot be determined"
1258 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1259 as_fn_error "pwd does not report name of working directory"
1260
1261
1262 # Find the source files, if location was not specified.
1263 if test -z "$srcdir"; then
1264 ac_srcdir_defaulted=yes
1265 # Try the directory containing this script, then the parent directory.
1266 ac_confdir=`$as_dirname -- "$as_myself" ||
1267 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1268 X"$as_myself" : 'X\(//\)[^/]' \| \
1269 X"$as_myself" : 'X\(//\)$' \| \
1270 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1271 $as_echo X"$as_myself" |
1272 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1273 s//\1/
1274 q
1275 }
1276 /^X\(\/\/\)[^/].*/{
1277 s//\1/
1278 q
1279 }
1280 /^X\(\/\/\)$/{
1281 s//\1/
1282 q
1283 }
1284 /^X\(\/\).*/{
1285 s//\1/
1286 q
1287 }
1288 s/.*/./; q'`
1289 srcdir=$ac_confdir
1290 if test ! -r "$srcdir/$ac_unique_file"; then
1291 srcdir=..
1292 fi
1293 else
1294 ac_srcdir_defaulted=no
1295 fi
1296 if test ! -r "$srcdir/$ac_unique_file"; then
1297 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1298 as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1299 fi
1300 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1301 ac_abs_confdir=`(
1302 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1303 pwd)`
1304 # When building in place, set srcdir=.
1305 if test "$ac_abs_confdir" = "$ac_pwd"; then
1306 srcdir=.
1307 fi
1308 # Remove unnecessary trailing slashes from srcdir.
1309 # Double slashes in file names in object file debugging info
1310 # mess up M-x gdb in Emacs.
1311 case $srcdir in
1312 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1313 esac
1314 for ac_var in $ac_precious_vars; do
1315 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1316 eval ac_env_${ac_var}_value=\$${ac_var}
1317 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1318 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1319 done
1320
1321 #
1322 # Report the --help message.
1323 #
1324 if test "$ac_init_help" = "long"; then
1325 # Omit some internal or obsolete options to make the list less imposing.
1326 # This message is too long to be a string in the A/UX 3.1 sh.
1327 cat <<_ACEOF
1328 \`configure' configures gas 2.26.51 to adapt to many kinds of systems.
1329
1330 Usage: $0 [OPTION]... [VAR=VALUE]...
1331
1332 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1333 VAR=VALUE. See below for descriptions of some of the useful variables.
1334
1335 Defaults for the options are specified in brackets.
1336
1337 Configuration:
1338 -h, --help display this help and exit
1339 --help=short display options specific to this package
1340 --help=recursive display the short help of all the included packages
1341 -V, --version display version information and exit
1342 -q, --quiet, --silent do not print \`checking...' messages
1343 --cache-file=FILE cache test results in FILE [disabled]
1344 -C, --config-cache alias for \`--cache-file=config.cache'
1345 -n, --no-create do not create output files
1346 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1347
1348 Installation directories:
1349 --prefix=PREFIX install architecture-independent files in PREFIX
1350 [$ac_default_prefix]
1351 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1352 [PREFIX]
1353
1354 By default, \`make install' will install all the files in
1355 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1356 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1357 for instance \`--prefix=\$HOME'.
1358
1359 For better control, use the options below.
1360
1361 Fine tuning of the installation directories:
1362 --bindir=DIR user executables [EPREFIX/bin]
1363 --sbindir=DIR system admin executables [EPREFIX/sbin]
1364 --libexecdir=DIR program executables [EPREFIX/libexec]
1365 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1366 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1367 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1368 --libdir=DIR object code libraries [EPREFIX/lib]
1369 --includedir=DIR C header files [PREFIX/include]
1370 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1371 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1372 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1373 --infodir=DIR info documentation [DATAROOTDIR/info]
1374 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1375 --mandir=DIR man documentation [DATAROOTDIR/man]
1376 --docdir=DIR documentation root [DATAROOTDIR/doc/gas]
1377 --htmldir=DIR html documentation [DOCDIR]
1378 --dvidir=DIR dvi documentation [DOCDIR]
1379 --pdfdir=DIR pdf documentation [DOCDIR]
1380 --psdir=DIR ps documentation [DOCDIR]
1381 _ACEOF
1382
1383 cat <<\_ACEOF
1384
1385 Program names:
1386 --program-prefix=PREFIX prepend PREFIX to installed program names
1387 --program-suffix=SUFFIX append SUFFIX to installed program names
1388 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1389
1390 System types:
1391 --build=BUILD configure for building on BUILD [guessed]
1392 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1393 --target=TARGET configure for building compilers for TARGET [HOST]
1394 _ACEOF
1395 fi
1396
1397 if test -n "$ac_init_help"; then
1398 case $ac_init_help in
1399 short | recursive ) echo "Configuration of gas 2.26.51:";;
1400 esac
1401 cat <<\_ACEOF
1402
1403 Optional Features:
1404 --disable-option-checking ignore unrecognized --enable/--with options
1405 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1406 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1407 --disable-dependency-tracking speeds up one-time build
1408 --enable-dependency-tracking do not reject slow dependency extractors
1409 --enable-shared[=PKGS] build shared libraries [default=yes]
1410 --enable-static[=PKGS] build static libraries [default=yes]
1411 --enable-fast-install[=PKGS]
1412 optimize for fast installation [default=yes]
1413 --disable-libtool-lock avoid locking (might break parallel builds)
1414 --enable-plugins Enable support for plugins
1415 --disable-largefile omit support for large files
1416 --enable-targets alternative target configurations besides the primary
1417 --enable-checking enable run-time checks
1418 --enable-compressed-debug-sections={all,gas,none}
1419 compress debug sections by default
1420 --enable-x86-relax-relocations
1421 generate x86 relax relocations by default
1422 --enable-elf-stt-common generate ELF common symbols with STT_COMMON type by
1423 default
1424 --enable-werror treat compile warnings as errors
1425 --enable-build-warnings enable build-time compiler warnings
1426 --disable-nls do not use Native Language Support
1427 --enable-maintainer-mode enable make rules and dependencies not useful
1428 (and sometimes confusing) to the casual installer
1429
1430 Optional Packages:
1431 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1432 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1433 --with-pic try to use only PIC/non-PIC objects [default=use
1434 both]
1435 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1436 --with-system-zlib use installed libz
1437
1438 Some influential environment variables:
1439 CC C compiler command
1440 CFLAGS C compiler flags
1441 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1442 nonstandard directory <lib dir>
1443 LIBS libraries to pass to the linker, e.g. -l<library>
1444 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1445 you have headers in a nonstandard directory <include dir>
1446 CPP C preprocessor
1447 YACC The `Yet Another C Compiler' implementation to use. Defaults to
1448 the first program found out of: `bison -y', `byacc', `yacc'.
1449 YFLAGS The list of arguments that will be passed by default to $YACC.
1450 This script will default YFLAGS to the empty string to avoid a
1451 default value of `-d' given by some make applications.
1452
1453 Use these variables to override the choices made by `configure' or to help
1454 it to find libraries and programs with nonstandard names/locations.
1455
1456 Report bugs to the package provider.
1457 _ACEOF
1458 ac_status=$?
1459 fi
1460
1461 if test "$ac_init_help" = "recursive"; then
1462 # If there are subdirs, report their specific --help.
1463 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1464 test -d "$ac_dir" ||
1465 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1466 continue
1467 ac_builddir=.
1468
1469 case "$ac_dir" in
1470 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1471 *)
1472 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1473 # A ".." for each directory in $ac_dir_suffix.
1474 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1475 case $ac_top_builddir_sub in
1476 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1477 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1478 esac ;;
1479 esac
1480 ac_abs_top_builddir=$ac_pwd
1481 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1482 # for backward compatibility:
1483 ac_top_builddir=$ac_top_build_prefix
1484
1485 case $srcdir in
1486 .) # We are building in place.
1487 ac_srcdir=.
1488 ac_top_srcdir=$ac_top_builddir_sub
1489 ac_abs_top_srcdir=$ac_pwd ;;
1490 [\\/]* | ?:[\\/]* ) # Absolute name.
1491 ac_srcdir=$srcdir$ac_dir_suffix;
1492 ac_top_srcdir=$srcdir
1493 ac_abs_top_srcdir=$srcdir ;;
1494 *) # Relative name.
1495 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1496 ac_top_srcdir=$ac_top_build_prefix$srcdir
1497 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1498 esac
1499 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1500
1501 cd "$ac_dir" || { ac_status=$?; continue; }
1502 # Check for guested configure.
1503 if test -f "$ac_srcdir/configure.gnu"; then
1504 echo &&
1505 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1506 elif test -f "$ac_srcdir/configure"; then
1507 echo &&
1508 $SHELL "$ac_srcdir/configure" --help=recursive
1509 else
1510 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1511 fi || ac_status=$?
1512 cd "$ac_pwd" || { ac_status=$?; break; }
1513 done
1514 fi
1515
1516 test -n "$ac_init_help" && exit $ac_status
1517 if $ac_init_version; then
1518 cat <<\_ACEOF
1519 gas configure 2.26.51
1520 generated by GNU Autoconf 2.64
1521
1522 Copyright (C) 2009 Free Software Foundation, Inc.
1523 This configure script is free software; the Free Software Foundation
1524 gives unlimited permission to copy, distribute and modify it.
1525 _ACEOF
1526 exit
1527 fi
1528
1529 ## ------------------------ ##
1530 ## Autoconf initialization. ##
1531 ## ------------------------ ##
1532
1533 # ac_fn_c_try_compile LINENO
1534 # --------------------------
1535 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1536 ac_fn_c_try_compile ()
1537 {
1538 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1539 rm -f conftest.$ac_objext
1540 if { { ac_try="$ac_compile"
1541 case "(($ac_try" in
1542 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1543 *) ac_try_echo=$ac_try;;
1544 esac
1545 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1546 $as_echo "$ac_try_echo"; } >&5
1547 (eval "$ac_compile") 2>conftest.err
1548 ac_status=$?
1549 if test -s conftest.err; then
1550 grep -v '^ *+' conftest.err >conftest.er1
1551 cat conftest.er1 >&5
1552 mv -f conftest.er1 conftest.err
1553 fi
1554 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1555 test $ac_status = 0; } && {
1556 test -z "$ac_c_werror_flag" ||
1557 test ! -s conftest.err
1558 } && test -s conftest.$ac_objext; then :
1559 ac_retval=0
1560 else
1561 $as_echo "$as_me: failed program was:" >&5
1562 sed 's/^/| /' conftest.$ac_ext >&5
1563
1564 ac_retval=1
1565 fi
1566 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1567 return $ac_retval
1568
1569 } # ac_fn_c_try_compile
1570
1571 # ac_fn_c_try_link LINENO
1572 # -----------------------
1573 # Try to link conftest.$ac_ext, and return whether this succeeded.
1574 ac_fn_c_try_link ()
1575 {
1576 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1577 rm -f conftest.$ac_objext conftest$ac_exeext
1578 if { { ac_try="$ac_link"
1579 case "(($ac_try" in
1580 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1581 *) ac_try_echo=$ac_try;;
1582 esac
1583 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1584 $as_echo "$ac_try_echo"; } >&5
1585 (eval "$ac_link") 2>conftest.err
1586 ac_status=$?
1587 if test -s conftest.err; then
1588 grep -v '^ *+' conftest.err >conftest.er1
1589 cat conftest.er1 >&5
1590 mv -f conftest.er1 conftest.err
1591 fi
1592 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1593 test $ac_status = 0; } && {
1594 test -z "$ac_c_werror_flag" ||
1595 test ! -s conftest.err
1596 } && test -s conftest$ac_exeext && {
1597 test "$cross_compiling" = yes ||
1598 $as_test_x conftest$ac_exeext
1599 }; then :
1600 ac_retval=0
1601 else
1602 $as_echo "$as_me: failed program was:" >&5
1603 sed 's/^/| /' conftest.$ac_ext >&5
1604
1605 ac_retval=1
1606 fi
1607 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1608 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1609 # interfere with the next link command; also delete a directory that is
1610 # left behind by Apple's compiler. We do this before executing the actions.
1611 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1612 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1613 return $ac_retval
1614
1615 } # ac_fn_c_try_link
1616
1617 # ac_fn_c_try_cpp LINENO
1618 # ----------------------
1619 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1620 ac_fn_c_try_cpp ()
1621 {
1622 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1623 if { { ac_try="$ac_cpp conftest.$ac_ext"
1624 case "(($ac_try" in
1625 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1626 *) ac_try_echo=$ac_try;;
1627 esac
1628 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1629 $as_echo "$ac_try_echo"; } >&5
1630 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1631 ac_status=$?
1632 if test -s conftest.err; then
1633 grep -v '^ *+' conftest.err >conftest.er1
1634 cat conftest.er1 >&5
1635 mv -f conftest.er1 conftest.err
1636 fi
1637 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1638 test $ac_status = 0; } >/dev/null && {
1639 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1640 test ! -s conftest.err
1641 }; then :
1642 ac_retval=0
1643 else
1644 $as_echo "$as_me: failed program was:" >&5
1645 sed 's/^/| /' conftest.$ac_ext >&5
1646
1647 ac_retval=1
1648 fi
1649 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1650 return $ac_retval
1651
1652 } # ac_fn_c_try_cpp
1653
1654 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1655 # -------------------------------------------------------
1656 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1657 # the include files in INCLUDES and setting the cache variable VAR
1658 # accordingly.
1659 ac_fn_c_check_header_mongrel ()
1660 {
1661 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1662 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1663 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1664 $as_echo_n "checking for $2... " >&6; }
1665 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1666 $as_echo_n "(cached) " >&6
1667 fi
1668 eval ac_res=\$$3
1669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1670 $as_echo "$ac_res" >&6; }
1671 else
1672 # Is the header compilable?
1673 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1674 $as_echo_n "checking $2 usability... " >&6; }
1675 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1676 /* end confdefs.h. */
1677 $4
1678 #include <$2>
1679 _ACEOF
1680 if ac_fn_c_try_compile "$LINENO"; then :
1681 ac_header_compiler=yes
1682 else
1683 ac_header_compiler=no
1684 fi
1685 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1687 $as_echo "$ac_header_compiler" >&6; }
1688
1689 # Is the header present?
1690 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1691 $as_echo_n "checking $2 presence... " >&6; }
1692 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1693 /* end confdefs.h. */
1694 #include <$2>
1695 _ACEOF
1696 if ac_fn_c_try_cpp "$LINENO"; then :
1697 ac_header_preproc=yes
1698 else
1699 ac_header_preproc=no
1700 fi
1701 rm -f conftest.err conftest.$ac_ext
1702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1703 $as_echo "$ac_header_preproc" >&6; }
1704
1705 # So? What about this header?
1706 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1707 yes:no: )
1708 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1709 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1710 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1711 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1712 ;;
1713 no:yes:* )
1714 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1715 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1716 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1717 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1718 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1719 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1720 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1721 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1722 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1723 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1724 ;;
1725 esac
1726 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1727 $as_echo_n "checking for $2... " >&6; }
1728 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1729 $as_echo_n "(cached) " >&6
1730 else
1731 eval "$3=\$ac_header_compiler"
1732 fi
1733 eval ac_res=\$$3
1734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1735 $as_echo "$ac_res" >&6; }
1736 fi
1737 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1738
1739 } # ac_fn_c_check_header_mongrel
1740
1741 # ac_fn_c_try_run LINENO
1742 # ----------------------
1743 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1744 # that executables *can* be run.
1745 ac_fn_c_try_run ()
1746 {
1747 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1748 if { { ac_try="$ac_link"
1749 case "(($ac_try" in
1750 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1751 *) ac_try_echo=$ac_try;;
1752 esac
1753 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1754 $as_echo "$ac_try_echo"; } >&5
1755 (eval "$ac_link") 2>&5
1756 ac_status=$?
1757 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1758 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1759 { { case "(($ac_try" in
1760 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1761 *) ac_try_echo=$ac_try;;
1762 esac
1763 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1764 $as_echo "$ac_try_echo"; } >&5
1765 (eval "$ac_try") 2>&5
1766 ac_status=$?
1767 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1768 test $ac_status = 0; }; }; then :
1769 ac_retval=0
1770 else
1771 $as_echo "$as_me: program exited with status $ac_status" >&5
1772 $as_echo "$as_me: failed program was:" >&5
1773 sed 's/^/| /' conftest.$ac_ext >&5
1774
1775 ac_retval=$ac_status
1776 fi
1777 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1778 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1779 return $ac_retval
1780
1781 } # ac_fn_c_try_run
1782
1783 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1784 # -------------------------------------------------------
1785 # Tests whether HEADER exists and can be compiled using the include files in
1786 # INCLUDES, setting the cache variable VAR accordingly.
1787 ac_fn_c_check_header_compile ()
1788 {
1789 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1790 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1791 $as_echo_n "checking for $2... " >&6; }
1792 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1793 $as_echo_n "(cached) " >&6
1794 else
1795 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1796 /* end confdefs.h. */
1797 $4
1798 #include <$2>
1799 _ACEOF
1800 if ac_fn_c_try_compile "$LINENO"; then :
1801 eval "$3=yes"
1802 else
1803 eval "$3=no"
1804 fi
1805 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1806 fi
1807 eval ac_res=\$$3
1808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1809 $as_echo "$ac_res" >&6; }
1810 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1811
1812 } # ac_fn_c_check_header_compile
1813
1814 # ac_fn_c_check_func LINENO FUNC VAR
1815 # ----------------------------------
1816 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1817 ac_fn_c_check_func ()
1818 {
1819 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1820 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1821 $as_echo_n "checking for $2... " >&6; }
1822 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1823 $as_echo_n "(cached) " >&6
1824 else
1825 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1826 /* end confdefs.h. */
1827 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1828 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1829 #define $2 innocuous_$2
1830
1831 /* System header to define __stub macros and hopefully few prototypes,
1832 which can conflict with char $2 (); below.
1833 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1834 <limits.h> exists even on freestanding compilers. */
1835
1836 #ifdef __STDC__
1837 # include <limits.h>
1838 #else
1839 # include <assert.h>
1840 #endif
1841
1842 #undef $2
1843
1844 /* Override any GCC internal prototype to avoid an error.
1845 Use char because int might match the return type of a GCC
1846 builtin and then its argument prototype would still apply. */
1847 #ifdef __cplusplus
1848 extern "C"
1849 #endif
1850 char $2 ();
1851 /* The GNU C library defines this for functions which it implements
1852 to always fail with ENOSYS. Some functions are actually named
1853 something starting with __ and the normal name is an alias. */
1854 #if defined __stub_$2 || defined __stub___$2
1855 choke me
1856 #endif
1857
1858 int
1859 main ()
1860 {
1861 return $2 ();
1862 ;
1863 return 0;
1864 }
1865 _ACEOF
1866 if ac_fn_c_try_link "$LINENO"; then :
1867 eval "$3=yes"
1868 else
1869 eval "$3=no"
1870 fi
1871 rm -f core conftest.err conftest.$ac_objext \
1872 conftest$ac_exeext conftest.$ac_ext
1873 fi
1874 eval ac_res=\$$3
1875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1876 $as_echo "$ac_res" >&6; }
1877 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1878
1879 } # ac_fn_c_check_func
1880
1881 # ac_fn_c_check_decl LINENO SYMBOL VAR
1882 # ------------------------------------
1883 # Tests whether SYMBOL is declared, setting cache variable VAR accordingly.
1884 ac_fn_c_check_decl ()
1885 {
1886 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1887 as_decl_name=`echo $2|sed 's/ *(.*//'`
1888 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
1889 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
1890 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
1891 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1892 $as_echo_n "(cached) " >&6
1893 else
1894 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1895 /* end confdefs.h. */
1896 $4
1897 int
1898 main ()
1899 {
1900 #ifndef $as_decl_name
1901 #ifdef __cplusplus
1902 (void) $as_decl_use;
1903 #else
1904 (void) $as_decl_name;
1905 #endif
1906 #endif
1907
1908 ;
1909 return 0;
1910 }
1911 _ACEOF
1912 if ac_fn_c_try_compile "$LINENO"; then :
1913 eval "$3=yes"
1914 else
1915 eval "$3=no"
1916 fi
1917 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1918 fi
1919 eval ac_res=\$$3
1920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1921 $as_echo "$ac_res" >&6; }
1922 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1923
1924 } # ac_fn_c_check_decl
1925 cat >config.log <<_ACEOF
1926 This file contains any messages produced by compilers while
1927 running configure, to aid debugging if configure makes a mistake.
1928
1929 It was created by gas $as_me 2.26.51, which was
1930 generated by GNU Autoconf 2.64. Invocation command line was
1931
1932 $ $0 $@
1933
1934 _ACEOF
1935 exec 5>>config.log
1936 {
1937 cat <<_ASUNAME
1938 ## --------- ##
1939 ## Platform. ##
1940 ## --------- ##
1941
1942 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1943 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1944 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1945 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1946 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1947
1948 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1949 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1950
1951 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1952 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1953 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1954 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1955 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1956 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1957 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1958
1959 _ASUNAME
1960
1961 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1962 for as_dir in $PATH
1963 do
1964 IFS=$as_save_IFS
1965 test -z "$as_dir" && as_dir=.
1966 $as_echo "PATH: $as_dir"
1967 done
1968 IFS=$as_save_IFS
1969
1970 } >&5
1971
1972 cat >&5 <<_ACEOF
1973
1974
1975 ## ----------- ##
1976 ## Core tests. ##
1977 ## ----------- ##
1978
1979 _ACEOF
1980
1981
1982 # Keep a trace of the command line.
1983 # Strip out --no-create and --no-recursion so they do not pile up.
1984 # Strip out --silent because we don't want to record it for future runs.
1985 # Also quote any args containing shell meta-characters.
1986 # Make two passes to allow for proper duplicate-argument suppression.
1987 ac_configure_args=
1988 ac_configure_args0=
1989 ac_configure_args1=
1990 ac_must_keep_next=false
1991 for ac_pass in 1 2
1992 do
1993 for ac_arg
1994 do
1995 case $ac_arg in
1996 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1997 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1998 | -silent | --silent | --silen | --sile | --sil)
1999 continue ;;
2000 *\'*)
2001 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2002 esac
2003 case $ac_pass in
2004 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2005 2)
2006 as_fn_append ac_configure_args1 " '$ac_arg'"
2007 if test $ac_must_keep_next = true; then
2008 ac_must_keep_next=false # Got value, back to normal.
2009 else
2010 case $ac_arg in
2011 *=* | --config-cache | -C | -disable-* | --disable-* \
2012 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2013 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2014 | -with-* | --with-* | -without-* | --without-* | --x)
2015 case "$ac_configure_args0 " in
2016 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2017 esac
2018 ;;
2019 -* ) ac_must_keep_next=true ;;
2020 esac
2021 fi
2022 as_fn_append ac_configure_args " '$ac_arg'"
2023 ;;
2024 esac
2025 done
2026 done
2027 { ac_configure_args0=; unset ac_configure_args0;}
2028 { ac_configure_args1=; unset ac_configure_args1;}
2029
2030 # When interrupted or exit'd, cleanup temporary files, and complete
2031 # config.log. We remove comments because anyway the quotes in there
2032 # would cause problems or look ugly.
2033 # WARNING: Use '\'' to represent an apostrophe within the trap.
2034 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2035 trap 'exit_status=$?
2036 # Save into config.log some information that might help in debugging.
2037 {
2038 echo
2039
2040 cat <<\_ASBOX
2041 ## ---------------- ##
2042 ## Cache variables. ##
2043 ## ---------------- ##
2044 _ASBOX
2045 echo
2046 # The following way of writing the cache mishandles newlines in values,
2047 (
2048 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2049 eval ac_val=\$$ac_var
2050 case $ac_val in #(
2051 *${as_nl}*)
2052 case $ac_var in #(
2053 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2054 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2055 esac
2056 case $ac_var in #(
2057 _ | IFS | as_nl) ;; #(
2058 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2059 *) { eval $ac_var=; unset $ac_var;} ;;
2060 esac ;;
2061 esac
2062 done
2063 (set) 2>&1 |
2064 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2065 *${as_nl}ac_space=\ *)
2066 sed -n \
2067 "s/'\''/'\''\\\\'\'''\''/g;
2068 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2069 ;; #(
2070 *)
2071 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2072 ;;
2073 esac |
2074 sort
2075 )
2076 echo
2077
2078 cat <<\_ASBOX
2079 ## ----------------- ##
2080 ## Output variables. ##
2081 ## ----------------- ##
2082 _ASBOX
2083 echo
2084 for ac_var in $ac_subst_vars
2085 do
2086 eval ac_val=\$$ac_var
2087 case $ac_val in
2088 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2089 esac
2090 $as_echo "$ac_var='\''$ac_val'\''"
2091 done | sort
2092 echo
2093
2094 if test -n "$ac_subst_files"; then
2095 cat <<\_ASBOX
2096 ## ------------------- ##
2097 ## File substitutions. ##
2098 ## ------------------- ##
2099 _ASBOX
2100 echo
2101 for ac_var in $ac_subst_files
2102 do
2103 eval ac_val=\$$ac_var
2104 case $ac_val in
2105 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2106 esac
2107 $as_echo "$ac_var='\''$ac_val'\''"
2108 done | sort
2109 echo
2110 fi
2111
2112 if test -s confdefs.h; then
2113 cat <<\_ASBOX
2114 ## ----------- ##
2115 ## confdefs.h. ##
2116 ## ----------- ##
2117 _ASBOX
2118 echo
2119 cat confdefs.h
2120 echo
2121 fi
2122 test "$ac_signal" != 0 &&
2123 $as_echo "$as_me: caught signal $ac_signal"
2124 $as_echo "$as_me: exit $exit_status"
2125 } >&5
2126 rm -f core *.core core.conftest.* &&
2127 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2128 exit $exit_status
2129 ' 0
2130 for ac_signal in 1 2 13 15; do
2131 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2132 done
2133 ac_signal=0
2134
2135 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2136 rm -f -r conftest* confdefs.h
2137
2138 $as_echo "/* confdefs.h */" > confdefs.h
2139
2140 # Predefined preprocessor variables.
2141
2142 cat >>confdefs.h <<_ACEOF
2143 #define PACKAGE_NAME "$PACKAGE_NAME"
2144 _ACEOF
2145
2146 cat >>confdefs.h <<_ACEOF
2147 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2148 _ACEOF
2149
2150 cat >>confdefs.h <<_ACEOF
2151 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2152 _ACEOF
2153
2154 cat >>confdefs.h <<_ACEOF
2155 #define PACKAGE_STRING "$PACKAGE_STRING"
2156 _ACEOF
2157
2158 cat >>confdefs.h <<_ACEOF
2159 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2160 _ACEOF
2161
2162 cat >>confdefs.h <<_ACEOF
2163 #define PACKAGE_URL "$PACKAGE_URL"
2164 _ACEOF
2165
2166
2167 # Let the site file select an alternate cache file if it wants to.
2168 # Prefer an explicitly selected file to automatically selected ones.
2169 ac_site_file1=NONE
2170 ac_site_file2=NONE
2171 if test -n "$CONFIG_SITE"; then
2172 ac_site_file1=$CONFIG_SITE
2173 elif test "x$prefix" != xNONE; then
2174 ac_site_file1=$prefix/share/config.site
2175 ac_site_file2=$prefix/etc/config.site
2176 else
2177 ac_site_file1=$ac_default_prefix/share/config.site
2178 ac_site_file2=$ac_default_prefix/etc/config.site
2179 fi
2180 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2181 do
2182 test "x$ac_site_file" = xNONE && continue
2183 if test -r "$ac_site_file"; then
2184 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2185 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2186 sed 's/^/| /' "$ac_site_file" >&5
2187 . "$ac_site_file"
2188 fi
2189 done
2190
2191 if test -r "$cache_file"; then
2192 # Some versions of bash will fail to source /dev/null (special
2193 # files actually), so we avoid doing that.
2194 if test -f "$cache_file"; then
2195 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2196 $as_echo "$as_me: loading cache $cache_file" >&6;}
2197 case $cache_file in
2198 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2199 *) . "./$cache_file";;
2200 esac
2201 fi
2202 else
2203 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2204 $as_echo "$as_me: creating cache $cache_file" >&6;}
2205 >$cache_file
2206 fi
2207
2208 # Check that the precious variables saved in the cache have kept the same
2209 # value.
2210 ac_cache_corrupted=false
2211 for ac_var in $ac_precious_vars; do
2212 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2213 eval ac_new_set=\$ac_env_${ac_var}_set
2214 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2215 eval ac_new_val=\$ac_env_${ac_var}_value
2216 case $ac_old_set,$ac_new_set in
2217 set,)
2218 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2219 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2220 ac_cache_corrupted=: ;;
2221 ,set)
2222 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2223 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2224 ac_cache_corrupted=: ;;
2225 ,);;
2226 *)
2227 if test "x$ac_old_val" != "x$ac_new_val"; then
2228 # differences in whitespace do not lead to failure.
2229 ac_old_val_w=`echo x $ac_old_val`
2230 ac_new_val_w=`echo x $ac_new_val`
2231 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2232 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2233 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2234 ac_cache_corrupted=:
2235 else
2236 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2237 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2238 eval $ac_var=\$ac_old_val
2239 fi
2240 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2241 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2242 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2243 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2244 fi;;
2245 esac
2246 # Pass precious variables to config.status.
2247 if test "$ac_new_set" = set; then
2248 case $ac_new_val in
2249 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2250 *) ac_arg=$ac_var=$ac_new_val ;;
2251 esac
2252 case " $ac_configure_args " in
2253 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2254 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2255 esac
2256 fi
2257 done
2258 if $ac_cache_corrupted; then
2259 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2260 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2261 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2262 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2263 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2264 fi
2265 ## -------------------- ##
2266 ## Main body of script. ##
2267 ## -------------------- ##
2268
2269 ac_ext=c
2270 ac_cpp='$CPP $CPPFLAGS'
2271 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2272 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2273 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2274
2275
2276
2277
2278
2279
2280
2281 ac_aux_dir=
2282 for ac_dir in .. "$srcdir"/..; do
2283 for ac_t in install-sh install.sh shtool; do
2284 if test -f "$ac_dir/$ac_t"; then
2285 ac_aux_dir=$ac_dir
2286 ac_install_sh="$ac_aux_dir/$ac_t -c"
2287 break 2
2288 fi
2289 done
2290 done
2291 if test -z "$ac_aux_dir"; then
2292 as_fn_error "cannot find install-sh, install.sh, or shtool in .. \"$srcdir\"/.." "$LINENO" 5
2293 fi
2294
2295 # These three variables are undocumented and unsupported,
2296 # and are intended to be withdrawn in a future Autoconf release.
2297 # They can cause serious problems if a builder's source tree is in a directory
2298 # whose full name contains unusual characters.
2299 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2300 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2301 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2302
2303
2304 # Make sure we can run config.sub.
2305 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2306 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2307
2308 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2309 $as_echo_n "checking build system type... " >&6; }
2310 if test "${ac_cv_build+set}" = set; then :
2311 $as_echo_n "(cached) " >&6
2312 else
2313 ac_build_alias=$build_alias
2314 test "x$ac_build_alias" = x &&
2315 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2316 test "x$ac_build_alias" = x &&
2317 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
2318 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2319 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2320
2321 fi
2322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2323 $as_echo "$ac_cv_build" >&6; }
2324 case $ac_cv_build in
2325 *-*-*) ;;
2326 *) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
2327 esac
2328 build=$ac_cv_build
2329 ac_save_IFS=$IFS; IFS='-'
2330 set x $ac_cv_build
2331 shift
2332 build_cpu=$1
2333 build_vendor=$2
2334 shift; shift
2335 # Remember, the first character of IFS is used to create $*,
2336 # except with old shells:
2337 build_os=$*
2338 IFS=$ac_save_IFS
2339 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2340
2341
2342 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2343 $as_echo_n "checking host system type... " >&6; }
2344 if test "${ac_cv_host+set}" = set; then :
2345 $as_echo_n "(cached) " >&6
2346 else
2347 if test "x$host_alias" = x; then
2348 ac_cv_host=$ac_cv_build
2349 else
2350 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2351 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2352 fi
2353
2354 fi
2355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2356 $as_echo "$ac_cv_host" >&6; }
2357 case $ac_cv_host in
2358 *-*-*) ;;
2359 *) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
2360 esac
2361 host=$ac_cv_host
2362 ac_save_IFS=$IFS; IFS='-'
2363 set x $ac_cv_host
2364 shift
2365 host_cpu=$1
2366 host_vendor=$2
2367 shift; shift
2368 # Remember, the first character of IFS is used to create $*,
2369 # except with old shells:
2370 host_os=$*
2371 IFS=$ac_save_IFS
2372 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2373
2374
2375 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2376 $as_echo_n "checking target system type... " >&6; }
2377 if test "${ac_cv_target+set}" = set; then :
2378 $as_echo_n "(cached) " >&6
2379 else
2380 if test "x$target_alias" = x; then
2381 ac_cv_target=$ac_cv_host
2382 else
2383 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2384 as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2385 fi
2386
2387 fi
2388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2389 $as_echo "$ac_cv_target" >&6; }
2390 case $ac_cv_target in
2391 *-*-*) ;;
2392 *) as_fn_error "invalid value of canonical target" "$LINENO" 5;;
2393 esac
2394 target=$ac_cv_target
2395 ac_save_IFS=$IFS; IFS='-'
2396 set x $ac_cv_target
2397 shift
2398 target_cpu=$1
2399 target_vendor=$2
2400 shift; shift
2401 # Remember, the first character of IFS is used to create $*,
2402 # except with old shells:
2403 target_os=$*
2404 IFS=$ac_save_IFS
2405 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2406
2407
2408 # The aliases save the names the user supplied, while $host etc.
2409 # will get canonicalized.
2410 test -n "$target_alias" &&
2411 test "$program_prefix$program_suffix$program_transform_name" = \
2412 NONENONEs,x,x, &&
2413 program_prefix=${target_alias}-
2414 ac_ext=c
2415 ac_cpp='$CPP $CPPFLAGS'
2416 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2417 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2418 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2419 if test -n "$ac_tool_prefix"; then
2420 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2421 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2422 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2423 $as_echo_n "checking for $ac_word... " >&6; }
2424 if test "${ac_cv_prog_CC+set}" = set; then :
2425 $as_echo_n "(cached) " >&6
2426 else
2427 if test -n "$CC"; then
2428 ac_cv_prog_CC="$CC" # Let the user override the test.
2429 else
2430 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2431 for as_dir in $PATH
2432 do
2433 IFS=$as_save_IFS
2434 test -z "$as_dir" && as_dir=.
2435 for ac_exec_ext in '' $ac_executable_extensions; do
2436 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2437 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2438 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2439 break 2
2440 fi
2441 done
2442 done
2443 IFS=$as_save_IFS
2444
2445 fi
2446 fi
2447 CC=$ac_cv_prog_CC
2448 if test -n "$CC"; then
2449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2450 $as_echo "$CC" >&6; }
2451 else
2452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2453 $as_echo "no" >&6; }
2454 fi
2455
2456
2457 fi
2458 if test -z "$ac_cv_prog_CC"; then
2459 ac_ct_CC=$CC
2460 # Extract the first word of "gcc", so it can be a program name with args.
2461 set dummy gcc; ac_word=$2
2462 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2463 $as_echo_n "checking for $ac_word... " >&6; }
2464 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
2465 $as_echo_n "(cached) " >&6
2466 else
2467 if test -n "$ac_ct_CC"; then
2468 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2469 else
2470 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2471 for as_dir in $PATH
2472 do
2473 IFS=$as_save_IFS
2474 test -z "$as_dir" && as_dir=.
2475 for ac_exec_ext in '' $ac_executable_extensions; do
2476 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2477 ac_cv_prog_ac_ct_CC="gcc"
2478 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2479 break 2
2480 fi
2481 done
2482 done
2483 IFS=$as_save_IFS
2484
2485 fi
2486 fi
2487 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2488 if test -n "$ac_ct_CC"; then
2489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2490 $as_echo "$ac_ct_CC" >&6; }
2491 else
2492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2493 $as_echo "no" >&6; }
2494 fi
2495
2496 if test "x$ac_ct_CC" = x; then
2497 CC=""
2498 else
2499 case $cross_compiling:$ac_tool_warned in
2500 yes:)
2501 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2502 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2503 ac_tool_warned=yes ;;
2504 esac
2505 CC=$ac_ct_CC
2506 fi
2507 else
2508 CC="$ac_cv_prog_CC"
2509 fi
2510
2511 if test -z "$CC"; then
2512 if test -n "$ac_tool_prefix"; then
2513 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2514 set dummy ${ac_tool_prefix}cc; ac_word=$2
2515 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2516 $as_echo_n "checking for $ac_word... " >&6; }
2517 if test "${ac_cv_prog_CC+set}" = set; then :
2518 $as_echo_n "(cached) " >&6
2519 else
2520 if test -n "$CC"; then
2521 ac_cv_prog_CC="$CC" # Let the user override the test.
2522 else
2523 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2524 for as_dir in $PATH
2525 do
2526 IFS=$as_save_IFS
2527 test -z "$as_dir" && as_dir=.
2528 for ac_exec_ext in '' $ac_executable_extensions; do
2529 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2530 ac_cv_prog_CC="${ac_tool_prefix}cc"
2531 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2532 break 2
2533 fi
2534 done
2535 done
2536 IFS=$as_save_IFS
2537
2538 fi
2539 fi
2540 CC=$ac_cv_prog_CC
2541 if test -n "$CC"; then
2542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2543 $as_echo "$CC" >&6; }
2544 else
2545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2546 $as_echo "no" >&6; }
2547 fi
2548
2549
2550 fi
2551 fi
2552 if test -z "$CC"; then
2553 # Extract the first word of "cc", so it can be a program name with args.
2554 set dummy cc; ac_word=$2
2555 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2556 $as_echo_n "checking for $ac_word... " >&6; }
2557 if test "${ac_cv_prog_CC+set}" = set; then :
2558 $as_echo_n "(cached) " >&6
2559 else
2560 if test -n "$CC"; then
2561 ac_cv_prog_CC="$CC" # Let the user override the test.
2562 else
2563 ac_prog_rejected=no
2564 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2565 for as_dir in $PATH
2566 do
2567 IFS=$as_save_IFS
2568 test -z "$as_dir" && as_dir=.
2569 for ac_exec_ext in '' $ac_executable_extensions; do
2570 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2571 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2572 ac_prog_rejected=yes
2573 continue
2574 fi
2575 ac_cv_prog_CC="cc"
2576 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2577 break 2
2578 fi
2579 done
2580 done
2581 IFS=$as_save_IFS
2582
2583 if test $ac_prog_rejected = yes; then
2584 # We found a bogon in the path, so make sure we never use it.
2585 set dummy $ac_cv_prog_CC
2586 shift
2587 if test $# != 0; then
2588 # We chose a different compiler from the bogus one.
2589 # However, it has the same basename, so the bogon will be chosen
2590 # first if we set CC to just the basename; use the full file name.
2591 shift
2592 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2593 fi
2594 fi
2595 fi
2596 fi
2597 CC=$ac_cv_prog_CC
2598 if test -n "$CC"; then
2599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2600 $as_echo "$CC" >&6; }
2601 else
2602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2603 $as_echo "no" >&6; }
2604 fi
2605
2606
2607 fi
2608 if test -z "$CC"; then
2609 if test -n "$ac_tool_prefix"; then
2610 for ac_prog in cl.exe
2611 do
2612 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2613 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2614 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2615 $as_echo_n "checking for $ac_word... " >&6; }
2616 if test "${ac_cv_prog_CC+set}" = set; then :
2617 $as_echo_n "(cached) " >&6
2618 else
2619 if test -n "$CC"; then
2620 ac_cv_prog_CC="$CC" # Let the user override the test.
2621 else
2622 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2623 for as_dir in $PATH
2624 do
2625 IFS=$as_save_IFS
2626 test -z "$as_dir" && as_dir=.
2627 for ac_exec_ext in '' $ac_executable_extensions; do
2628 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2629 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2630 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2631 break 2
2632 fi
2633 done
2634 done
2635 IFS=$as_save_IFS
2636
2637 fi
2638 fi
2639 CC=$ac_cv_prog_CC
2640 if test -n "$CC"; then
2641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2642 $as_echo "$CC" >&6; }
2643 else
2644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2645 $as_echo "no" >&6; }
2646 fi
2647
2648
2649 test -n "$CC" && break
2650 done
2651 fi
2652 if test -z "$CC"; then
2653 ac_ct_CC=$CC
2654 for ac_prog in cl.exe
2655 do
2656 # Extract the first word of "$ac_prog", so it can be a program name with args.
2657 set dummy $ac_prog; ac_word=$2
2658 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2659 $as_echo_n "checking for $ac_word... " >&6; }
2660 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
2661 $as_echo_n "(cached) " >&6
2662 else
2663 if test -n "$ac_ct_CC"; then
2664 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2665 else
2666 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2667 for as_dir in $PATH
2668 do
2669 IFS=$as_save_IFS
2670 test -z "$as_dir" && as_dir=.
2671 for ac_exec_ext in '' $ac_executable_extensions; do
2672 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2673 ac_cv_prog_ac_ct_CC="$ac_prog"
2674 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2675 break 2
2676 fi
2677 done
2678 done
2679 IFS=$as_save_IFS
2680
2681 fi
2682 fi
2683 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2684 if test -n "$ac_ct_CC"; then
2685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2686 $as_echo "$ac_ct_CC" >&6; }
2687 else
2688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2689 $as_echo "no" >&6; }
2690 fi
2691
2692
2693 test -n "$ac_ct_CC" && break
2694 done
2695
2696 if test "x$ac_ct_CC" = x; then
2697 CC=""
2698 else
2699 case $cross_compiling:$ac_tool_warned in
2700 yes:)
2701 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2702 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2703 ac_tool_warned=yes ;;
2704 esac
2705 CC=$ac_ct_CC
2706 fi
2707 fi
2708
2709 fi
2710
2711
2712 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2713 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2714 as_fn_error "no acceptable C compiler found in \$PATH
2715 See \`config.log' for more details." "$LINENO" 5; }
2716
2717 # Provide some information about the compiler.
2718 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
2719 set X $ac_compile
2720 ac_compiler=$2
2721 for ac_option in --version -v -V -qversion; do
2722 { { ac_try="$ac_compiler $ac_option >&5"
2723 case "(($ac_try" in
2724 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2725 *) ac_try_echo=$ac_try;;
2726 esac
2727 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2728 $as_echo "$ac_try_echo"; } >&5
2729 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
2730 ac_status=$?
2731 if test -s conftest.err; then
2732 sed '10a\
2733 ... rest of stderr output deleted ...
2734 10q' conftest.err >conftest.er1
2735 cat conftest.er1 >&5
2736 rm -f conftest.er1 conftest.err
2737 fi
2738 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2739 test $ac_status = 0; }
2740 done
2741
2742 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2743 /* end confdefs.h. */
2744
2745 int
2746 main ()
2747 {
2748
2749 ;
2750 return 0;
2751 }
2752 _ACEOF
2753 ac_clean_files_save=$ac_clean_files
2754 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
2755 # Try to create an executable without -o first, disregard a.out.
2756 # It will help us diagnose broken compilers, and finding out an intuition
2757 # of exeext.
2758 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
2759 $as_echo_n "checking for C compiler default output file name... " >&6; }
2760 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2761
2762 # The possible output files:
2763 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2764
2765 ac_rmfiles=
2766 for ac_file in $ac_files
2767 do
2768 case $ac_file in
2769 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2770 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2771 esac
2772 done
2773 rm -f $ac_rmfiles
2774
2775 if { { ac_try="$ac_link_default"
2776 case "(($ac_try" in
2777 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2778 *) ac_try_echo=$ac_try;;
2779 esac
2780 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2781 $as_echo "$ac_try_echo"; } >&5
2782 (eval "$ac_link_default") 2>&5
2783 ac_status=$?
2784 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2785 test $ac_status = 0; }; then :
2786 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2787 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2788 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2789 # so that the user can short-circuit this test for compilers unknown to
2790 # Autoconf.
2791 for ac_file in $ac_files ''
2792 do
2793 test -f "$ac_file" || continue
2794 case $ac_file in
2795 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
2796 ;;
2797 [ab].out )
2798 # We found the default executable, but exeext='' is most
2799 # certainly right.
2800 break;;
2801 *.* )
2802 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2803 then :; else
2804 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2805 fi
2806 # We set ac_cv_exeext here because the later test for it is not
2807 # safe: cross compilers may not add the suffix if given an `-o'
2808 # argument, so we may need to know it at that point already.
2809 # Even if this section looks crufty: it has the advantage of
2810 # actually working.
2811 break;;
2812 * )
2813 break;;
2814 esac
2815 done
2816 test "$ac_cv_exeext" = no && ac_cv_exeext=
2817
2818 else
2819 ac_file=''
2820 fi
2821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
2822 $as_echo "$ac_file" >&6; }
2823 if test -z "$ac_file"; then :
2824 $as_echo "$as_me: failed program was:" >&5
2825 sed 's/^/| /' conftest.$ac_ext >&5
2826
2827 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2828 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2829 { as_fn_set_status 77
2830 as_fn_error "C compiler cannot create executables
2831 See \`config.log' for more details." "$LINENO" 5; }; }
2832 fi
2833 ac_exeext=$ac_cv_exeext
2834
2835 # Check that the compiler produces executables we can run. If not, either
2836 # the compiler is broken, or we cross compile.
2837 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
2838 $as_echo_n "checking whether the C compiler works... " >&6; }
2839 # If not cross compiling, check that we can run a simple program.
2840 if test "$cross_compiling" != yes; then
2841 if { ac_try='./$ac_file'
2842 { { case "(($ac_try" in
2843 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2844 *) ac_try_echo=$ac_try;;
2845 esac
2846 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2847 $as_echo "$ac_try_echo"; } >&5
2848 (eval "$ac_try") 2>&5
2849 ac_status=$?
2850 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2851 test $ac_status = 0; }; }; then
2852 cross_compiling=no
2853 else
2854 if test "$cross_compiling" = maybe; then
2855 cross_compiling=yes
2856 else
2857 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2858 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2859 as_fn_error "cannot run C compiled programs.
2860 If you meant to cross compile, use \`--host'.
2861 See \`config.log' for more details." "$LINENO" 5; }
2862 fi
2863 fi
2864 fi
2865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2866 $as_echo "yes" >&6; }
2867
2868 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
2869 ac_clean_files=$ac_clean_files_save
2870 # Check that the compiler produces executables we can run. If not, either
2871 # the compiler is broken, or we cross compile.
2872 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
2873 $as_echo_n "checking whether we are cross compiling... " >&6; }
2874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
2875 $as_echo "$cross_compiling" >&6; }
2876
2877 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
2878 $as_echo_n "checking for suffix of executables... " >&6; }
2879 if { { ac_try="$ac_link"
2880 case "(($ac_try" in
2881 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2882 *) ac_try_echo=$ac_try;;
2883 esac
2884 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2885 $as_echo "$ac_try_echo"; } >&5
2886 (eval "$ac_link") 2>&5
2887 ac_status=$?
2888 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2889 test $ac_status = 0; }; then :
2890 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2891 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2892 # work properly (i.e., refer to `conftest.exe'), while it won't with
2893 # `rm'.
2894 for ac_file in conftest.exe conftest conftest.*; do
2895 test -f "$ac_file" || continue
2896 case $ac_file in
2897 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2898 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2899 break;;
2900 * ) break;;
2901 esac
2902 done
2903 else
2904 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2905 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2906 as_fn_error "cannot compute suffix of executables: cannot compile and link
2907 See \`config.log' for more details." "$LINENO" 5; }
2908 fi
2909 rm -f conftest$ac_cv_exeext
2910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
2911 $as_echo "$ac_cv_exeext" >&6; }
2912
2913 rm -f conftest.$ac_ext
2914 EXEEXT=$ac_cv_exeext
2915 ac_exeext=$EXEEXT
2916 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
2917 $as_echo_n "checking for suffix of object files... " >&6; }
2918 if test "${ac_cv_objext+set}" = set; then :
2919 $as_echo_n "(cached) " >&6
2920 else
2921 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2922 /* end confdefs.h. */
2923
2924 int
2925 main ()
2926 {
2927
2928 ;
2929 return 0;
2930 }
2931 _ACEOF
2932 rm -f conftest.o conftest.obj
2933 if { { ac_try="$ac_compile"
2934 case "(($ac_try" in
2935 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2936 *) ac_try_echo=$ac_try;;
2937 esac
2938 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2939 $as_echo "$ac_try_echo"; } >&5
2940 (eval "$ac_compile") 2>&5
2941 ac_status=$?
2942 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2943 test $ac_status = 0; }; then :
2944 for ac_file in conftest.o conftest.obj conftest.*; do
2945 test -f "$ac_file" || continue;
2946 case $ac_file in
2947 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
2948 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2949 break;;
2950 esac
2951 done
2952 else
2953 $as_echo "$as_me: failed program was:" >&5
2954 sed 's/^/| /' conftest.$ac_ext >&5
2955
2956 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2957 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2958 as_fn_error "cannot compute suffix of object files: cannot compile
2959 See \`config.log' for more details." "$LINENO" 5; }
2960 fi
2961 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2962 fi
2963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
2964 $as_echo "$ac_cv_objext" >&6; }
2965 OBJEXT=$ac_cv_objext
2966 ac_objext=$OBJEXT
2967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
2968 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
2969 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
2970 $as_echo_n "(cached) " >&6
2971 else
2972 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2973 /* end confdefs.h. */
2974
2975 int
2976 main ()
2977 {
2978 #ifndef __GNUC__
2979 choke me
2980 #endif
2981
2982 ;
2983 return 0;
2984 }
2985 _ACEOF
2986 if ac_fn_c_try_compile "$LINENO"; then :
2987 ac_compiler_gnu=yes
2988 else
2989 ac_compiler_gnu=no
2990 fi
2991 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2992 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2993
2994 fi
2995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
2996 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
2997 if test $ac_compiler_gnu = yes; then
2998 GCC=yes
2999 else
3000 GCC=
3001 fi
3002 ac_test_CFLAGS=${CFLAGS+set}
3003 ac_save_CFLAGS=$CFLAGS
3004 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3005 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3006 if test "${ac_cv_prog_cc_g+set}" = set; then :
3007 $as_echo_n "(cached) " >&6
3008 else
3009 ac_save_c_werror_flag=$ac_c_werror_flag
3010 ac_c_werror_flag=yes
3011 ac_cv_prog_cc_g=no
3012 CFLAGS="-g"
3013 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3014 /* end confdefs.h. */
3015
3016 int
3017 main ()
3018 {
3019
3020 ;
3021 return 0;
3022 }
3023 _ACEOF
3024 if ac_fn_c_try_compile "$LINENO"; then :
3025 ac_cv_prog_cc_g=yes
3026 else
3027 CFLAGS=""
3028 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3029 /* end confdefs.h. */
3030
3031 int
3032 main ()
3033 {
3034
3035 ;
3036 return 0;
3037 }
3038 _ACEOF
3039 if ac_fn_c_try_compile "$LINENO"; then :
3040
3041 else
3042 ac_c_werror_flag=$ac_save_c_werror_flag
3043 CFLAGS="-g"
3044 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3045 /* end confdefs.h. */
3046
3047 int
3048 main ()
3049 {
3050
3051 ;
3052 return 0;
3053 }
3054 _ACEOF
3055 if ac_fn_c_try_compile "$LINENO"; then :
3056 ac_cv_prog_cc_g=yes
3057 fi
3058 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
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 ac_c_werror_flag=$ac_save_c_werror_flag
3064 fi
3065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3066 $as_echo "$ac_cv_prog_cc_g" >&6; }
3067 if test "$ac_test_CFLAGS" = set; then
3068 CFLAGS=$ac_save_CFLAGS
3069 elif test $ac_cv_prog_cc_g = yes; then
3070 if test "$GCC" = yes; then
3071 CFLAGS="-g -O2"
3072 else
3073 CFLAGS="-g"
3074 fi
3075 else
3076 if test "$GCC" = yes; then
3077 CFLAGS="-O2"
3078 else
3079 CFLAGS=
3080 fi
3081 fi
3082 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3083 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3084 if test "${ac_cv_prog_cc_c89+set}" = set; then :
3085 $as_echo_n "(cached) " >&6
3086 else
3087 ac_cv_prog_cc_c89=no
3088 ac_save_CC=$CC
3089 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3090 /* end confdefs.h. */
3091 #include <stdarg.h>
3092 #include <stdio.h>
3093 #include <sys/types.h>
3094 #include <sys/stat.h>
3095 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3096 struct buf { int x; };
3097 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3098 static char *e (p, i)
3099 char **p;
3100 int i;
3101 {
3102 return p[i];
3103 }
3104 static char *f (char * (*g) (char **, int), char **p, ...)
3105 {
3106 char *s;
3107 va_list v;
3108 va_start (v,p);
3109 s = g (p, va_arg (v,int));
3110 va_end (v);
3111 return s;
3112 }
3113
3114 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3115 function prototypes and stuff, but not '\xHH' hex character constants.
3116 These don't provoke an error unfortunately, instead are silently treated
3117 as 'x'. The following induces an error, until -std is added to get
3118 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3119 array size at least. It's necessary to write '\x00'==0 to get something
3120 that's true only with -std. */
3121 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3122
3123 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3124 inside strings and character constants. */
3125 #define FOO(x) 'x'
3126 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3127
3128 int test (int i, double x);
3129 struct s1 {int (*f) (int a);};
3130 struct s2 {int (*f) (double a);};
3131 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3132 int argc;
3133 char **argv;
3134 int
3135 main ()
3136 {
3137 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3138 ;
3139 return 0;
3140 }
3141 _ACEOF
3142 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3143 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3144 do
3145 CC="$ac_save_CC $ac_arg"
3146 if ac_fn_c_try_compile "$LINENO"; then :
3147 ac_cv_prog_cc_c89=$ac_arg
3148 fi
3149 rm -f core conftest.err conftest.$ac_objext
3150 test "x$ac_cv_prog_cc_c89" != "xno" && break
3151 done
3152 rm -f conftest.$ac_ext
3153 CC=$ac_save_CC
3154
3155 fi
3156 # AC_CACHE_VAL
3157 case "x$ac_cv_prog_cc_c89" in
3158 x)
3159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3160 $as_echo "none needed" >&6; } ;;
3161 xno)
3162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3163 $as_echo "unsupported" >&6; } ;;
3164 *)
3165 CC="$CC $ac_cv_prog_cc_c89"
3166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3167 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3168 esac
3169 if test "x$ac_cv_prog_cc_c89" != xno; then :
3170
3171 fi
3172
3173 ac_ext=c
3174 ac_cpp='$CPP $CPPFLAGS'
3175 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3176 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3177 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3178
3179
3180 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing strerror" >&5
3181 $as_echo_n "checking for library containing strerror... " >&6; }
3182 if test "${ac_cv_search_strerror+set}" = set; then :
3183 $as_echo_n "(cached) " >&6
3184 else
3185 ac_func_search_save_LIBS=$LIBS
3186 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3187 /* end confdefs.h. */
3188
3189 /* Override any GCC internal prototype to avoid an error.
3190 Use char because int might match the return type of a GCC
3191 builtin and then its argument prototype would still apply. */
3192 #ifdef __cplusplus
3193 extern "C"
3194 #endif
3195 char strerror ();
3196 int
3197 main ()
3198 {
3199 return strerror ();
3200 ;
3201 return 0;
3202 }
3203 _ACEOF
3204 for ac_lib in '' cposix; do
3205 if test -z "$ac_lib"; then
3206 ac_res="none required"
3207 else
3208 ac_res=-l$ac_lib
3209 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
3210 fi
3211 if ac_fn_c_try_link "$LINENO"; then :
3212 ac_cv_search_strerror=$ac_res
3213 fi
3214 rm -f core conftest.err conftest.$ac_objext \
3215 conftest$ac_exeext
3216 if test "${ac_cv_search_strerror+set}" = set; then :
3217 break
3218 fi
3219 done
3220 if test "${ac_cv_search_strerror+set}" = set; then :
3221
3222 else
3223 ac_cv_search_strerror=no
3224 fi
3225 rm conftest.$ac_ext
3226 LIBS=$ac_func_search_save_LIBS
3227 fi
3228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_strerror" >&5
3229 $as_echo "$ac_cv_search_strerror" >&6; }
3230 ac_res=$ac_cv_search_strerror
3231 if test "$ac_res" != no; then :
3232 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
3233
3234 fi
3235
3236
3237 am__api_version='1.11'
3238
3239 # Find a good install program. We prefer a C program (faster),
3240 # so one script is as good as another. But avoid the broken or
3241 # incompatible versions:
3242 # SysV /etc/install, /usr/sbin/install
3243 # SunOS /usr/etc/install
3244 # IRIX /sbin/install
3245 # AIX /bin/install
3246 # AmigaOS /C/install, which installs bootblocks on floppy discs
3247 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3248 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3249 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3250 # OS/2's system install, which has a completely different semantic
3251 # ./install, which can be erroneously created by make from ./install.sh.
3252 # Reject install programs that cannot install multiple files.
3253 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
3254 $as_echo_n "checking for a BSD-compatible install... " >&6; }
3255 if test -z "$INSTALL"; then
3256 if test "${ac_cv_path_install+set}" = set; then :
3257 $as_echo_n "(cached) " >&6
3258 else
3259 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3260 for as_dir in $PATH
3261 do
3262 IFS=$as_save_IFS
3263 test -z "$as_dir" && as_dir=.
3264 # Account for people who put trailing slashes in PATH elements.
3265 case $as_dir/ in #((
3266 ./ | .// | /[cC]/* | \
3267 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3268 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
3269 /usr/ucb/* ) ;;
3270 *)
3271 # OSF1 and SCO ODT 3.0 have their own names for install.
3272 # Don't use installbsd from OSF since it installs stuff as root
3273 # by default.
3274 for ac_prog in ginstall scoinst install; do
3275 for ac_exec_ext in '' $ac_executable_extensions; do
3276 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
3277 if test $ac_prog = install &&
3278 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3279 # AIX install. It has an incompatible calling convention.
3280 :
3281 elif test $ac_prog = install &&
3282 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3283 # program-specific install script used by HP pwplus--don't use.
3284 :
3285 else
3286 rm -rf conftest.one conftest.two conftest.dir
3287 echo one > conftest.one
3288 echo two > conftest.two
3289 mkdir conftest.dir
3290 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
3291 test -s conftest.one && test -s conftest.two &&
3292 test -s conftest.dir/conftest.one &&
3293 test -s conftest.dir/conftest.two
3294 then
3295 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3296 break 3
3297 fi
3298 fi
3299 fi
3300 done
3301 done
3302 ;;
3303 esac
3304
3305 done
3306 IFS=$as_save_IFS
3307
3308 rm -rf conftest.one conftest.two conftest.dir
3309
3310 fi
3311 if test "${ac_cv_path_install+set}" = set; then
3312 INSTALL=$ac_cv_path_install
3313 else
3314 # As a last resort, use the slow shell script. Don't cache a
3315 # value for INSTALL within a source directory, because that will
3316 # break other packages using the cache if that directory is
3317 # removed, or if the value is a relative name.
3318 INSTALL=$ac_install_sh
3319 fi
3320 fi
3321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
3322 $as_echo "$INSTALL" >&6; }
3323
3324 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3325 # It thinks the first close brace ends the variable substitution.
3326 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3327
3328 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3329
3330 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3331
3332 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
3333 $as_echo_n "checking whether build environment is sane... " >&6; }
3334 # Just in case
3335 sleep 1
3336 echo timestamp > conftest.file
3337 # Reject unsafe characters in $srcdir or the absolute working directory
3338 # name. Accept space and tab only in the latter.
3339 am_lf='
3340 '
3341 case `pwd` in
3342 *[\\\"\#\$\&\'\`$am_lf]*)
3343 as_fn_error "unsafe absolute working directory name" "$LINENO" 5;;
3344 esac
3345 case $srcdir in
3346 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
3347 as_fn_error "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
3348 esac
3349
3350 # Do `set' in a subshell so we don't clobber the current shell's
3351 # arguments. Must try -L first in case configure is actually a
3352 # symlink; some systems play weird games with the mod time of symlinks
3353 # (eg FreeBSD returns the mod time of the symlink's containing
3354 # directory).
3355 if (
3356 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
3357 if test "$*" = "X"; then
3358 # -L didn't work.
3359 set X `ls -t "$srcdir/configure" conftest.file`
3360 fi
3361 rm -f conftest.file
3362 if test "$*" != "X $srcdir/configure conftest.file" \
3363 && test "$*" != "X conftest.file $srcdir/configure"; then
3364
3365 # If neither matched, then we have a broken ls. This can happen
3366 # if, for instance, CONFIG_SHELL is bash and it inherits a
3367 # broken ls alias from the environment. This has actually
3368 # happened. Such a system could not be considered "sane".
3369 as_fn_error "ls -t appears to fail. Make sure there is not a broken
3370 alias in your environment" "$LINENO" 5
3371 fi
3372
3373 test "$2" = conftest.file
3374 )
3375 then
3376 # Ok.
3377 :
3378 else
3379 as_fn_error "newly created file is older than distributed files!
3380 Check your system clock" "$LINENO" 5
3381 fi
3382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3383 $as_echo "yes" >&6; }
3384 test "$program_prefix" != NONE &&
3385 program_transform_name="s&^&$program_prefix&;$program_transform_name"
3386 # Use a double $ so make ignores it.
3387 test "$program_suffix" != NONE &&
3388 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3389 # Double any \ or $.
3390 # By default was `s,x,x', remove it if useless.
3391 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3392 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
3393
3394 # expand $ac_aux_dir to an absolute path
3395 am_aux_dir=`cd $ac_aux_dir && pwd`
3396
3397 if test x"${MISSING+set}" != xset; then
3398 case $am_aux_dir in
3399 *\ * | *\ *)
3400 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
3401 *)
3402 MISSING="\${SHELL} $am_aux_dir/missing" ;;
3403 esac
3404 fi
3405 # Use eval to expand $SHELL
3406 if eval "$MISSING --run true"; then
3407 am_missing_run="$MISSING --run "
3408 else
3409 am_missing_run=
3410 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
3411 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
3412 fi
3413
3414 if test x"${install_sh}" != xset; then
3415 case $am_aux_dir in
3416 *\ * | *\ *)
3417 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
3418 *)
3419 install_sh="\${SHELL} $am_aux_dir/install-sh"
3420 esac
3421 fi
3422
3423 # Installed binaries are usually stripped using `strip' when the user
3424 # run `make install-strip'. However `strip' might not be the right
3425 # tool to use in cross-compilation environments, therefore Automake
3426 # will honor the `STRIP' environment variable to overrule this program.
3427 if test "$cross_compiling" != no; then
3428 if test -n "$ac_tool_prefix"; then
3429 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3430 set dummy ${ac_tool_prefix}strip; ac_word=$2
3431 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3432 $as_echo_n "checking for $ac_word... " >&6; }
3433 if test "${ac_cv_prog_STRIP+set}" = set; then :
3434 $as_echo_n "(cached) " >&6
3435 else
3436 if test -n "$STRIP"; then
3437 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3438 else
3439 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3440 for as_dir in $PATH
3441 do
3442 IFS=$as_save_IFS
3443 test -z "$as_dir" && as_dir=.
3444 for ac_exec_ext in '' $ac_executable_extensions; do
3445 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3446 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3447 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3448 break 2
3449 fi
3450 done
3451 done
3452 IFS=$as_save_IFS
3453
3454 fi
3455 fi
3456 STRIP=$ac_cv_prog_STRIP
3457 if test -n "$STRIP"; then
3458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3459 $as_echo "$STRIP" >&6; }
3460 else
3461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3462 $as_echo "no" >&6; }
3463 fi
3464
3465
3466 fi
3467 if test -z "$ac_cv_prog_STRIP"; then
3468 ac_ct_STRIP=$STRIP
3469 # Extract the first word of "strip", so it can be a program name with args.
3470 set dummy strip; ac_word=$2
3471 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3472 $as_echo_n "checking for $ac_word... " >&6; }
3473 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
3474 $as_echo_n "(cached) " >&6
3475 else
3476 if test -n "$ac_ct_STRIP"; then
3477 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3478 else
3479 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3480 for as_dir in $PATH
3481 do
3482 IFS=$as_save_IFS
3483 test -z "$as_dir" && as_dir=.
3484 for ac_exec_ext in '' $ac_executable_extensions; do
3485 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3486 ac_cv_prog_ac_ct_STRIP="strip"
3487 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3488 break 2
3489 fi
3490 done
3491 done
3492 IFS=$as_save_IFS
3493
3494 fi
3495 fi
3496 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3497 if test -n "$ac_ct_STRIP"; then
3498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3499 $as_echo "$ac_ct_STRIP" >&6; }
3500 else
3501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3502 $as_echo "no" >&6; }
3503 fi
3504
3505 if test "x$ac_ct_STRIP" = x; then
3506 STRIP=":"
3507 else
3508 case $cross_compiling:$ac_tool_warned in
3509 yes:)
3510 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3511 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3512 ac_tool_warned=yes ;;
3513 esac
3514 STRIP=$ac_ct_STRIP
3515 fi
3516 else
3517 STRIP="$ac_cv_prog_STRIP"
3518 fi
3519
3520 fi
3521 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3522
3523 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
3524 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3525 if test -z "$MKDIR_P"; then
3526 if test "${ac_cv_path_mkdir+set}" = set; then :
3527 $as_echo_n "(cached) " >&6
3528 else
3529 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3530 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3531 do
3532 IFS=$as_save_IFS
3533 test -z "$as_dir" && as_dir=.
3534 for ac_prog in mkdir gmkdir; do
3535 for ac_exec_ext in '' $ac_executable_extensions; do
3536 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
3537 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3538 'mkdir (GNU coreutils) '* | \
3539 'mkdir (coreutils) '* | \
3540 'mkdir (fileutils) '4.1*)
3541 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
3542 break 3;;
3543 esac
3544 done
3545 done
3546 done
3547 IFS=$as_save_IFS
3548
3549 fi
3550
3551 if test "${ac_cv_path_mkdir+set}" = set; then
3552 MKDIR_P="$ac_cv_path_mkdir -p"
3553 else
3554 # As a last resort, use the slow shell script. Don't cache a
3555 # value for MKDIR_P within a source directory, because that will
3556 # break other packages using the cache if that directory is
3557 # removed, or if the value is a relative name.
3558 test -d ./--version && rmdir ./--version
3559 MKDIR_P="$ac_install_sh -d"
3560 fi
3561 fi
3562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3563 $as_echo "$MKDIR_P" >&6; }
3564
3565 mkdir_p="$MKDIR_P"
3566 case $mkdir_p in
3567 [\\/$]* | ?:[\\/]*) ;;
3568 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
3569 esac
3570
3571 for ac_prog in gawk mawk nawk awk
3572 do
3573 # Extract the first word of "$ac_prog", so it can be a program name with args.
3574 set dummy $ac_prog; ac_word=$2
3575 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3576 $as_echo_n "checking for $ac_word... " >&6; }
3577 if test "${ac_cv_prog_AWK+set}" = set; then :
3578 $as_echo_n "(cached) " >&6
3579 else
3580 if test -n "$AWK"; then
3581 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3582 else
3583 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3584 for as_dir in $PATH
3585 do
3586 IFS=$as_save_IFS
3587 test -z "$as_dir" && as_dir=.
3588 for ac_exec_ext in '' $ac_executable_extensions; do
3589 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3590 ac_cv_prog_AWK="$ac_prog"
3591 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3592 break 2
3593 fi
3594 done
3595 done
3596 IFS=$as_save_IFS
3597
3598 fi
3599 fi
3600 AWK=$ac_cv_prog_AWK
3601 if test -n "$AWK"; then
3602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3603 $as_echo "$AWK" >&6; }
3604 else
3605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3606 $as_echo "no" >&6; }
3607 fi
3608
3609
3610 test -n "$AWK" && break
3611 done
3612
3613 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3614 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3615 set x ${MAKE-make}
3616 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3617 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
3618 $as_echo_n "(cached) " >&6
3619 else
3620 cat >conftest.make <<\_ACEOF
3621 SHELL = /bin/sh
3622 all:
3623 @echo '@@@%%%=$(MAKE)=@@@%%%'
3624 _ACEOF
3625 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3626 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3627 *@@@%%%=?*=@@@%%%*)
3628 eval ac_cv_prog_make_${ac_make}_set=yes;;
3629 *)
3630 eval ac_cv_prog_make_${ac_make}_set=no;;
3631 esac
3632 rm -f conftest.make
3633 fi
3634 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3636 $as_echo "yes" >&6; }
3637 SET_MAKE=
3638 else
3639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3640 $as_echo "no" >&6; }
3641 SET_MAKE="MAKE=${MAKE-make}"
3642 fi
3643
3644 rm -rf .tst 2>/dev/null
3645 mkdir .tst 2>/dev/null
3646 if test -d .tst; then
3647 am__leading_dot=.
3648 else
3649 am__leading_dot=_
3650 fi
3651 rmdir .tst 2>/dev/null
3652
3653 DEPDIR="${am__leading_dot}deps"
3654
3655 ac_config_commands="$ac_config_commands depfiles"
3656
3657
3658 am_make=${MAKE-make}
3659 cat > confinc << 'END'
3660 am__doit:
3661 @echo this is the am__doit target
3662 .PHONY: am__doit
3663 END
3664 # If we don't find an include directive, just comment out the code.
3665 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3666 $as_echo_n "checking for style of include used by $am_make... " >&6; }
3667 am__include="#"
3668 am__quote=
3669 _am_result=none
3670 # First try GNU make style include.
3671 echo "include confinc" > confmf
3672 # Ignore all kinds of additional output from `make'.
3673 case `$am_make -s -f confmf 2> /dev/null` in #(
3674 *the\ am__doit\ target*)
3675 am__include=include
3676 am__quote=
3677 _am_result=GNU
3678 ;;
3679 esac
3680 # Now try BSD make style include.
3681 if test "$am__include" = "#"; then
3682 echo '.include "confinc"' > confmf
3683 case `$am_make -s -f confmf 2> /dev/null` in #(
3684 *the\ am__doit\ target*)
3685 am__include=.include
3686 am__quote="\""
3687 _am_result=BSD
3688 ;;
3689 esac
3690 fi
3691
3692
3693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3694 $as_echo "$_am_result" >&6; }
3695 rm -f confinc confmf
3696
3697 # Check whether --enable-dependency-tracking was given.
3698 if test "${enable_dependency_tracking+set}" = set; then :
3699 enableval=$enable_dependency_tracking;
3700 fi
3701
3702 if test "x$enable_dependency_tracking" != xno; then
3703 am_depcomp="$ac_aux_dir/depcomp"
3704 AMDEPBACKSLASH='\'
3705 fi
3706 if test "x$enable_dependency_tracking" != xno; then
3707 AMDEP_TRUE=
3708 AMDEP_FALSE='#'
3709 else
3710 AMDEP_TRUE='#'
3711 AMDEP_FALSE=
3712 fi
3713
3714
3715 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3716 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3717 # is not polluted with repeated "-I."
3718 am__isrc=' -I$(srcdir)'
3719 # test to see if srcdir already configured
3720 if test -f $srcdir/config.status; then
3721 as_fn_error "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3722 fi
3723 fi
3724
3725 # test whether we have cygpath
3726 if test -z "$CYGPATH_W"; then
3727 if (cygpath --version) >/dev/null 2>/dev/null; then
3728 CYGPATH_W='cygpath -w'
3729 else
3730 CYGPATH_W=echo
3731 fi
3732 fi
3733
3734
3735 # Define the identity of the package.
3736 PACKAGE='gas'
3737 VERSION='2.26.51'
3738
3739
3740 cat >>confdefs.h <<_ACEOF
3741 #define PACKAGE "$PACKAGE"
3742 _ACEOF
3743
3744
3745 cat >>confdefs.h <<_ACEOF
3746 #define VERSION "$VERSION"
3747 _ACEOF
3748
3749 # Some tools Automake needs.
3750
3751 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3752
3753
3754 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3755
3756
3757 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3758
3759
3760 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3761
3762
3763 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3764
3765 # We need awk for the "check" target. The system "awk" is bad on
3766 # some platforms.
3767 # Always define AMTAR for backward compatibility.
3768
3769 AMTAR=${AMTAR-"${am_missing_run}tar"}
3770
3771 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
3772
3773
3774
3775
3776 depcc="$CC" am_compiler_list=
3777
3778 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3779 $as_echo_n "checking dependency style of $depcc... " >&6; }
3780 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
3781 $as_echo_n "(cached) " >&6
3782 else
3783 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3784 # We make a subdir and do the tests there. Otherwise we can end up
3785 # making bogus files that we don't know about and never remove. For
3786 # instance it was reported that on HP-UX the gcc test will end up
3787 # making a dummy file named `D' -- because `-MD' means `put the output
3788 # in D'.
3789 mkdir conftest.dir
3790 # Copy depcomp to subdir because otherwise we won't find it if we're
3791 # using a relative directory.
3792 cp "$am_depcomp" conftest.dir
3793 cd conftest.dir
3794 # We will build objects and dependencies in a subdirectory because
3795 # it helps to detect inapplicable dependency modes. For instance
3796 # both Tru64's cc and ICC support -MD to output dependencies as a
3797 # side effect of compilation, but ICC will put the dependencies in
3798 # the current directory while Tru64 will put them in the object
3799 # directory.
3800 mkdir sub
3801
3802 am_cv_CC_dependencies_compiler_type=none
3803 if test "$am_compiler_list" = ""; then
3804 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3805 fi
3806 am__universal=false
3807 case " $depcc " in #(
3808 *\ -arch\ *\ -arch\ *) am__universal=true ;;
3809 esac
3810
3811 for depmode in $am_compiler_list; do
3812 # Setup a source with many dependencies, because some compilers
3813 # like to wrap large dependency lists on column 80 (with \), and
3814 # we should not choose a depcomp mode which is confused by this.
3815 #
3816 # We need to recreate these files for each test, as the compiler may
3817 # overwrite some of them when testing with obscure command lines.
3818 # This happens at least with the AIX C compiler.
3819 : > sub/conftest.c
3820 for i in 1 2 3 4 5 6; do
3821 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3822 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3823 # Solaris 8's {/usr,}/bin/sh.
3824 touch sub/conftst$i.h
3825 done
3826 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3827
3828 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3829 # mode. It turns out that the SunPro C++ compiler does not properly
3830 # handle `-M -o', and we need to detect this. Also, some Intel
3831 # versions had trouble with output in subdirs
3832 am__obj=sub/conftest.${OBJEXT-o}
3833 am__minus_obj="-o $am__obj"
3834 case $depmode in
3835 gcc)
3836 # This depmode causes a compiler race in universal mode.
3837 test "$am__universal" = false || continue
3838 ;;
3839 nosideeffect)
3840 # after this tag, mechanisms are not by side-effect, so they'll
3841 # only be used when explicitly requested
3842 if test "x$enable_dependency_tracking" = xyes; then
3843 continue
3844 else
3845 break
3846 fi
3847 ;;
3848 msvisualcpp | msvcmsys)
3849 # This compiler won't grok `-c -o', but also, the minuso test has
3850 # not run yet. These depmodes are late enough in the game, and
3851 # so weak that their functioning should not be impacted.
3852 am__obj=conftest.${OBJEXT-o}
3853 am__minus_obj=
3854 ;;
3855 none) break ;;
3856 esac
3857 if depmode=$depmode \
3858 source=sub/conftest.c object=$am__obj \
3859 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3860 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
3861 >/dev/null 2>conftest.err &&
3862 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3863 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3864 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
3865 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3866 # icc doesn't choke on unknown options, it will just issue warnings
3867 # or remarks (even with -Werror). So we grep stderr for any message
3868 # that says an option was ignored or not supported.
3869 # When given -MP, icc 7.0 and 7.1 complain thusly:
3870 # icc: Command line warning: ignoring option '-M'; no argument required
3871 # The diagnosis changed in icc 8.0:
3872 # icc: Command line remark: option '-MP' not supported
3873 if (grep 'ignoring option' conftest.err ||
3874 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3875 am_cv_CC_dependencies_compiler_type=$depmode
3876 break
3877 fi
3878 fi
3879 done
3880
3881 cd ..
3882 rm -rf conftest.dir
3883 else
3884 am_cv_CC_dependencies_compiler_type=none
3885 fi
3886
3887 fi
3888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
3889 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
3890 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3891
3892 if
3893 test "x$enable_dependency_tracking" != xno \
3894 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3895 am__fastdepCC_TRUE=
3896 am__fastdepCC_FALSE='#'
3897 else
3898 am__fastdepCC_TRUE='#'
3899 am__fastdepCC_FALSE=
3900 fi
3901
3902
3903
3904
3905 ac_ext=c
3906 ac_cpp='$CPP $CPPFLAGS'
3907 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3908 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3909 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3910 if test -n "$ac_tool_prefix"; then
3911 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3912 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3913 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3914 $as_echo_n "checking for $ac_word... " >&6; }
3915 if test "${ac_cv_prog_CC+set}" = set; then :
3916 $as_echo_n "(cached) " >&6
3917 else
3918 if test -n "$CC"; then
3919 ac_cv_prog_CC="$CC" # Let the user override the test.
3920 else
3921 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3922 for as_dir in $PATH
3923 do
3924 IFS=$as_save_IFS
3925 test -z "$as_dir" && as_dir=.
3926 for ac_exec_ext in '' $ac_executable_extensions; do
3927 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3928 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3929 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3930 break 2
3931 fi
3932 done
3933 done
3934 IFS=$as_save_IFS
3935
3936 fi
3937 fi
3938 CC=$ac_cv_prog_CC
3939 if test -n "$CC"; then
3940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3941 $as_echo "$CC" >&6; }
3942 else
3943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3944 $as_echo "no" >&6; }
3945 fi
3946
3947
3948 fi
3949 if test -z "$ac_cv_prog_CC"; then
3950 ac_ct_CC=$CC
3951 # Extract the first word of "gcc", so it can be a program name with args.
3952 set dummy gcc; ac_word=$2
3953 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3954 $as_echo_n "checking for $ac_word... " >&6; }
3955 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3956 $as_echo_n "(cached) " >&6
3957 else
3958 if test -n "$ac_ct_CC"; then
3959 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3960 else
3961 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3962 for as_dir in $PATH
3963 do
3964 IFS=$as_save_IFS
3965 test -z "$as_dir" && as_dir=.
3966 for ac_exec_ext in '' $ac_executable_extensions; do
3967 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3968 ac_cv_prog_ac_ct_CC="gcc"
3969 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3970 break 2
3971 fi
3972 done
3973 done
3974 IFS=$as_save_IFS
3975
3976 fi
3977 fi
3978 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3979 if test -n "$ac_ct_CC"; then
3980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3981 $as_echo "$ac_ct_CC" >&6; }
3982 else
3983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3984 $as_echo "no" >&6; }
3985 fi
3986
3987 if test "x$ac_ct_CC" = x; then
3988 CC=""
3989 else
3990 case $cross_compiling:$ac_tool_warned in
3991 yes:)
3992 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3993 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3994 ac_tool_warned=yes ;;
3995 esac
3996 CC=$ac_ct_CC
3997 fi
3998 else
3999 CC="$ac_cv_prog_CC"
4000 fi
4001
4002 if test -z "$CC"; then
4003 if test -n "$ac_tool_prefix"; then
4004 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4005 set dummy ${ac_tool_prefix}cc; ac_word=$2
4006 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4007 $as_echo_n "checking for $ac_word... " >&6; }
4008 if test "${ac_cv_prog_CC+set}" = set; then :
4009 $as_echo_n "(cached) " >&6
4010 else
4011 if test -n "$CC"; then
4012 ac_cv_prog_CC="$CC" # Let the user override the test.
4013 else
4014 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4015 for as_dir in $PATH
4016 do
4017 IFS=$as_save_IFS
4018 test -z "$as_dir" && as_dir=.
4019 for ac_exec_ext in '' $ac_executable_extensions; do
4020 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4021 ac_cv_prog_CC="${ac_tool_prefix}cc"
4022 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4023 break 2
4024 fi
4025 done
4026 done
4027 IFS=$as_save_IFS
4028
4029 fi
4030 fi
4031 CC=$ac_cv_prog_CC
4032 if test -n "$CC"; then
4033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4034 $as_echo "$CC" >&6; }
4035 else
4036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4037 $as_echo "no" >&6; }
4038 fi
4039
4040
4041 fi
4042 fi
4043 if test -z "$CC"; then
4044 # Extract the first word of "cc", so it can be a program name with args.
4045 set dummy cc; ac_word=$2
4046 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4047 $as_echo_n "checking for $ac_word... " >&6; }
4048 if test "${ac_cv_prog_CC+set}" = set; then :
4049 $as_echo_n "(cached) " >&6
4050 else
4051 if test -n "$CC"; then
4052 ac_cv_prog_CC="$CC" # Let the user override the test.
4053 else
4054 ac_prog_rejected=no
4055 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4056 for as_dir in $PATH
4057 do
4058 IFS=$as_save_IFS
4059 test -z "$as_dir" && as_dir=.
4060 for ac_exec_ext in '' $ac_executable_extensions; do
4061 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4062 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4063 ac_prog_rejected=yes
4064 continue
4065 fi
4066 ac_cv_prog_CC="cc"
4067 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4068 break 2
4069 fi
4070 done
4071 done
4072 IFS=$as_save_IFS
4073
4074 if test $ac_prog_rejected = yes; then
4075 # We found a bogon in the path, so make sure we never use it.
4076 set dummy $ac_cv_prog_CC
4077 shift
4078 if test $# != 0; then
4079 # We chose a different compiler from the bogus one.
4080 # However, it has the same basename, so the bogon will be chosen
4081 # first if we set CC to just the basename; use the full file name.
4082 shift
4083 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4084 fi
4085 fi
4086 fi
4087 fi
4088 CC=$ac_cv_prog_CC
4089 if test -n "$CC"; then
4090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4091 $as_echo "$CC" >&6; }
4092 else
4093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4094 $as_echo "no" >&6; }
4095 fi
4096
4097
4098 fi
4099 if test -z "$CC"; then
4100 if test -n "$ac_tool_prefix"; then
4101 for ac_prog in cl.exe
4102 do
4103 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4104 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4105 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4106 $as_echo_n "checking for $ac_word... " >&6; }
4107 if test "${ac_cv_prog_CC+set}" = set; then :
4108 $as_echo_n "(cached) " >&6
4109 else
4110 if test -n "$CC"; then
4111 ac_cv_prog_CC="$CC" # Let the user override the test.
4112 else
4113 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4114 for as_dir in $PATH
4115 do
4116 IFS=$as_save_IFS
4117 test -z "$as_dir" && as_dir=.
4118 for ac_exec_ext in '' $ac_executable_extensions; do
4119 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4120 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4121 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4122 break 2
4123 fi
4124 done
4125 done
4126 IFS=$as_save_IFS
4127
4128 fi
4129 fi
4130 CC=$ac_cv_prog_CC
4131 if test -n "$CC"; then
4132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4133 $as_echo "$CC" >&6; }
4134 else
4135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4136 $as_echo "no" >&6; }
4137 fi
4138
4139
4140 test -n "$CC" && break
4141 done
4142 fi
4143 if test -z "$CC"; then
4144 ac_ct_CC=$CC
4145 for ac_prog in cl.exe
4146 do
4147 # Extract the first word of "$ac_prog", so it can be a program name with args.
4148 set dummy $ac_prog; ac_word=$2
4149 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4150 $as_echo_n "checking for $ac_word... " >&6; }
4151 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
4152 $as_echo_n "(cached) " >&6
4153 else
4154 if test -n "$ac_ct_CC"; then
4155 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4156 else
4157 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4158 for as_dir in $PATH
4159 do
4160 IFS=$as_save_IFS
4161 test -z "$as_dir" && as_dir=.
4162 for ac_exec_ext in '' $ac_executable_extensions; do
4163 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4164 ac_cv_prog_ac_ct_CC="$ac_prog"
4165 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4166 break 2
4167 fi
4168 done
4169 done
4170 IFS=$as_save_IFS
4171
4172 fi
4173 fi
4174 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4175 if test -n "$ac_ct_CC"; then
4176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4177 $as_echo "$ac_ct_CC" >&6; }
4178 else
4179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4180 $as_echo "no" >&6; }
4181 fi
4182
4183
4184 test -n "$ac_ct_CC" && break
4185 done
4186
4187 if test "x$ac_ct_CC" = x; then
4188 CC=""
4189 else
4190 case $cross_compiling:$ac_tool_warned in
4191 yes:)
4192 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4193 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4194 ac_tool_warned=yes ;;
4195 esac
4196 CC=$ac_ct_CC
4197 fi
4198 fi
4199
4200 fi
4201
4202
4203 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4204 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4205 as_fn_error "no acceptable C compiler found in \$PATH
4206 See \`config.log' for more details." "$LINENO" 5; }
4207
4208 # Provide some information about the compiler.
4209 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4210 set X $ac_compile
4211 ac_compiler=$2
4212 for ac_option in --version -v -V -qversion; do
4213 { { ac_try="$ac_compiler $ac_option >&5"
4214 case "(($ac_try" in
4215 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4216 *) ac_try_echo=$ac_try;;
4217 esac
4218 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4219 $as_echo "$ac_try_echo"; } >&5
4220 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4221 ac_status=$?
4222 if test -s conftest.err; then
4223 sed '10a\
4224 ... rest of stderr output deleted ...
4225 10q' conftest.err >conftest.er1
4226 cat conftest.er1 >&5
4227 rm -f conftest.er1 conftest.err
4228 fi
4229 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4230 test $ac_status = 0; }
4231 done
4232
4233 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4234 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4235 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
4236 $as_echo_n "(cached) " >&6
4237 else
4238 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4239 /* end confdefs.h. */
4240
4241 int
4242 main ()
4243 {
4244 #ifndef __GNUC__
4245 choke me
4246 #endif
4247
4248 ;
4249 return 0;
4250 }
4251 _ACEOF
4252 if ac_fn_c_try_compile "$LINENO"; then :
4253 ac_compiler_gnu=yes
4254 else
4255 ac_compiler_gnu=no
4256 fi
4257 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4258 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4259
4260 fi
4261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4262 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4263 if test $ac_compiler_gnu = yes; then
4264 GCC=yes
4265 else
4266 GCC=
4267 fi
4268 ac_test_CFLAGS=${CFLAGS+set}
4269 ac_save_CFLAGS=$CFLAGS
4270 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4271 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4272 if test "${ac_cv_prog_cc_g+set}" = set; then :
4273 $as_echo_n "(cached) " >&6
4274 else
4275 ac_save_c_werror_flag=$ac_c_werror_flag
4276 ac_c_werror_flag=yes
4277 ac_cv_prog_cc_g=no
4278 CFLAGS="-g"
4279 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4280 /* end confdefs.h. */
4281
4282 int
4283 main ()
4284 {
4285
4286 ;
4287 return 0;
4288 }
4289 _ACEOF
4290 if ac_fn_c_try_compile "$LINENO"; then :
4291 ac_cv_prog_cc_g=yes
4292 else
4293 CFLAGS=""
4294 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4295 /* end confdefs.h. */
4296
4297 int
4298 main ()
4299 {
4300
4301 ;
4302 return 0;
4303 }
4304 _ACEOF
4305 if ac_fn_c_try_compile "$LINENO"; then :
4306
4307 else
4308 ac_c_werror_flag=$ac_save_c_werror_flag
4309 CFLAGS="-g"
4310 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4311 /* end confdefs.h. */
4312
4313 int
4314 main ()
4315 {
4316
4317 ;
4318 return 0;
4319 }
4320 _ACEOF
4321 if ac_fn_c_try_compile "$LINENO"; then :
4322 ac_cv_prog_cc_g=yes
4323 fi
4324 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4325 fi
4326 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4327 fi
4328 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4329 ac_c_werror_flag=$ac_save_c_werror_flag
4330 fi
4331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4332 $as_echo "$ac_cv_prog_cc_g" >&6; }
4333 if test "$ac_test_CFLAGS" = set; then
4334 CFLAGS=$ac_save_CFLAGS
4335 elif test $ac_cv_prog_cc_g = yes; then
4336 if test "$GCC" = yes; then
4337 CFLAGS="-g -O2"
4338 else
4339 CFLAGS="-g"
4340 fi
4341 else
4342 if test "$GCC" = yes; then
4343 CFLAGS="-O2"
4344 else
4345 CFLAGS=
4346 fi
4347 fi
4348 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4349 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4350 if test "${ac_cv_prog_cc_c89+set}" = set; then :
4351 $as_echo_n "(cached) " >&6
4352 else
4353 ac_cv_prog_cc_c89=no
4354 ac_save_CC=$CC
4355 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4356 /* end confdefs.h. */
4357 #include <stdarg.h>
4358 #include <stdio.h>
4359 #include <sys/types.h>
4360 #include <sys/stat.h>
4361 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4362 struct buf { int x; };
4363 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4364 static char *e (p, i)
4365 char **p;
4366 int i;
4367 {
4368 return p[i];
4369 }
4370 static char *f (char * (*g) (char **, int), char **p, ...)
4371 {
4372 char *s;
4373 va_list v;
4374 va_start (v,p);
4375 s = g (p, va_arg (v,int));
4376 va_end (v);
4377 return s;
4378 }
4379
4380 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4381 function prototypes and stuff, but not '\xHH' hex character constants.
4382 These don't provoke an error unfortunately, instead are silently treated
4383 as 'x'. The following induces an error, until -std is added to get
4384 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4385 array size at least. It's necessary to write '\x00'==0 to get something
4386 that's true only with -std. */
4387 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4388
4389 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4390 inside strings and character constants. */
4391 #define FOO(x) 'x'
4392 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4393
4394 int test (int i, double x);
4395 struct s1 {int (*f) (int a);};
4396 struct s2 {int (*f) (double a);};
4397 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4398 int argc;
4399 char **argv;
4400 int
4401 main ()
4402 {
4403 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4404 ;
4405 return 0;
4406 }
4407 _ACEOF
4408 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4409 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4410 do
4411 CC="$ac_save_CC $ac_arg"
4412 if ac_fn_c_try_compile "$LINENO"; then :
4413 ac_cv_prog_cc_c89=$ac_arg
4414 fi
4415 rm -f core conftest.err conftest.$ac_objext
4416 test "x$ac_cv_prog_cc_c89" != "xno" && break
4417 done
4418 rm -f conftest.$ac_ext
4419 CC=$ac_save_CC
4420
4421 fi
4422 # AC_CACHE_VAL
4423 case "x$ac_cv_prog_cc_c89" in
4424 x)
4425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4426 $as_echo "none needed" >&6; } ;;
4427 xno)
4428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4429 $as_echo "unsupported" >&6; } ;;
4430 *)
4431 CC="$CC $ac_cv_prog_cc_c89"
4432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4433 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4434 esac
4435 if test "x$ac_cv_prog_cc_c89" != xno; then :
4436
4437 fi
4438
4439 ac_ext=c
4440 ac_cpp='$CPP $CPPFLAGS'
4441 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4442 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4443 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4444
4445 ac_ext=c
4446 ac_cpp='$CPP $CPPFLAGS'
4447 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4448 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4449 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4450 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4451 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4452 # On Suns, sometimes $CPP names a directory.
4453 if test -n "$CPP" && test -d "$CPP"; then
4454 CPP=
4455 fi
4456 if test -z "$CPP"; then
4457 if test "${ac_cv_prog_CPP+set}" = set; then :
4458 $as_echo_n "(cached) " >&6
4459 else
4460 # Double quotes because CPP needs to be expanded
4461 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4462 do
4463 ac_preproc_ok=false
4464 for ac_c_preproc_warn_flag in '' yes
4465 do
4466 # Use a header file that comes with gcc, so configuring glibc
4467 # with a fresh cross-compiler works.
4468 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4469 # <limits.h> exists even on freestanding compilers.
4470 # On the NeXT, cc -E runs the code through the compiler's parser,
4471 # not just through cpp. "Syntax error" is here to catch this case.
4472 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4473 /* end confdefs.h. */
4474 #ifdef __STDC__
4475 # include <limits.h>
4476 #else
4477 # include <assert.h>
4478 #endif
4479 Syntax error
4480 _ACEOF
4481 if ac_fn_c_try_cpp "$LINENO"; then :
4482
4483 else
4484 # Broken: fails on valid input.
4485 continue
4486 fi
4487 rm -f conftest.err conftest.$ac_ext
4488
4489 # OK, works on sane cases. Now check whether nonexistent headers
4490 # can be detected and how.
4491 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4492 /* end confdefs.h. */
4493 #include <ac_nonexistent.h>
4494 _ACEOF
4495 if ac_fn_c_try_cpp "$LINENO"; then :
4496 # Broken: success on invalid input.
4497 continue
4498 else
4499 # Passes both tests.
4500 ac_preproc_ok=:
4501 break
4502 fi
4503 rm -f conftest.err conftest.$ac_ext
4504
4505 done
4506 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4507 rm -f conftest.err conftest.$ac_ext
4508 if $ac_preproc_ok; then :
4509 break
4510 fi
4511
4512 done
4513 ac_cv_prog_CPP=$CPP
4514
4515 fi
4516 CPP=$ac_cv_prog_CPP
4517 else
4518 ac_cv_prog_CPP=$CPP
4519 fi
4520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4521 $as_echo "$CPP" >&6; }
4522 ac_preproc_ok=false
4523 for ac_c_preproc_warn_flag in '' yes
4524 do
4525 # Use a header file that comes with gcc, so configuring glibc
4526 # with a fresh cross-compiler works.
4527 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4528 # <limits.h> exists even on freestanding compilers.
4529 # On the NeXT, cc -E runs the code through the compiler's parser,
4530 # not just through cpp. "Syntax error" is here to catch this case.
4531 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4532 /* end confdefs.h. */
4533 #ifdef __STDC__
4534 # include <limits.h>
4535 #else
4536 # include <assert.h>
4537 #endif
4538 Syntax error
4539 _ACEOF
4540 if ac_fn_c_try_cpp "$LINENO"; then :
4541
4542 else
4543 # Broken: fails on valid input.
4544 continue
4545 fi
4546 rm -f conftest.err conftest.$ac_ext
4547
4548 # OK, works on sane cases. Now check whether nonexistent headers
4549 # can be detected and how.
4550 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4551 /* end confdefs.h. */
4552 #include <ac_nonexistent.h>
4553 _ACEOF
4554 if ac_fn_c_try_cpp "$LINENO"; then :
4555 # Broken: success on invalid input.
4556 continue
4557 else
4558 # Passes both tests.
4559 ac_preproc_ok=:
4560 break
4561 fi
4562 rm -f conftest.err conftest.$ac_ext
4563
4564 done
4565 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4566 rm -f conftest.err conftest.$ac_ext
4567 if $ac_preproc_ok; then :
4568
4569 else
4570 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4571 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4572 as_fn_error "C preprocessor \"$CPP\" fails sanity check
4573 See \`config.log' for more details." "$LINENO" 5; }
4574 fi
4575
4576 ac_ext=c
4577 ac_cpp='$CPP $CPPFLAGS'
4578 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4579 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4580 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4581
4582
4583 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4584 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4585 if test "${ac_cv_path_GREP+set}" = set; then :
4586 $as_echo_n "(cached) " >&6
4587 else
4588 if test -z "$GREP"; then
4589 ac_path_GREP_found=false
4590 # Loop through the user's path and test for each of PROGNAME-LIST
4591 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4592 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4593 do
4594 IFS=$as_save_IFS
4595 test -z "$as_dir" && as_dir=.
4596 for ac_prog in grep ggrep; do
4597 for ac_exec_ext in '' $ac_executable_extensions; do
4598 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4599 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4600 # Check for GNU ac_path_GREP and select it if it is found.
4601 # Check for GNU $ac_path_GREP
4602 case `"$ac_path_GREP" --version 2>&1` in
4603 *GNU*)
4604 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4605 *)
4606 ac_count=0
4607 $as_echo_n 0123456789 >"conftest.in"
4608 while :
4609 do
4610 cat "conftest.in" "conftest.in" >"conftest.tmp"
4611 mv "conftest.tmp" "conftest.in"
4612 cp "conftest.in" "conftest.nl"
4613 $as_echo 'GREP' >> "conftest.nl"
4614 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4615 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4616 as_fn_arith $ac_count + 1 && ac_count=$as_val
4617 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4618 # Best one so far, save it but keep looking for a better one
4619 ac_cv_path_GREP="$ac_path_GREP"
4620 ac_path_GREP_max=$ac_count
4621 fi
4622 # 10*(2^10) chars as input seems more than enough
4623 test $ac_count -gt 10 && break
4624 done
4625 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4626 esac
4627
4628 $ac_path_GREP_found && break 3
4629 done
4630 done
4631 done
4632 IFS=$as_save_IFS
4633 if test -z "$ac_cv_path_GREP"; then
4634 as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4635 fi
4636 else
4637 ac_cv_path_GREP=$GREP
4638 fi
4639
4640 fi
4641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4642 $as_echo "$ac_cv_path_GREP" >&6; }
4643 GREP="$ac_cv_path_GREP"
4644
4645
4646 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4647 $as_echo_n "checking for egrep... " >&6; }
4648 if test "${ac_cv_path_EGREP+set}" = set; then :
4649 $as_echo_n "(cached) " >&6
4650 else
4651 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4652 then ac_cv_path_EGREP="$GREP -E"
4653 else
4654 if test -z "$EGREP"; then
4655 ac_path_EGREP_found=false
4656 # Loop through the user's path and test for each of PROGNAME-LIST
4657 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4658 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4659 do
4660 IFS=$as_save_IFS
4661 test -z "$as_dir" && as_dir=.
4662 for ac_prog in egrep; do
4663 for ac_exec_ext in '' $ac_executable_extensions; do
4664 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4665 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4666 # Check for GNU ac_path_EGREP and select it if it is found.
4667 # Check for GNU $ac_path_EGREP
4668 case `"$ac_path_EGREP" --version 2>&1` in
4669 *GNU*)
4670 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4671 *)
4672 ac_count=0
4673 $as_echo_n 0123456789 >"conftest.in"
4674 while :
4675 do
4676 cat "conftest.in" "conftest.in" >"conftest.tmp"
4677 mv "conftest.tmp" "conftest.in"
4678 cp "conftest.in" "conftest.nl"
4679 $as_echo 'EGREP' >> "conftest.nl"
4680 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4681 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4682 as_fn_arith $ac_count + 1 && ac_count=$as_val
4683 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4684 # Best one so far, save it but keep looking for a better one
4685 ac_cv_path_EGREP="$ac_path_EGREP"
4686 ac_path_EGREP_max=$ac_count
4687 fi
4688 # 10*(2^10) chars as input seems more than enough
4689 test $ac_count -gt 10 && break
4690 done
4691 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4692 esac
4693
4694 $ac_path_EGREP_found && break 3
4695 done
4696 done
4697 done
4698 IFS=$as_save_IFS
4699 if test -z "$ac_cv_path_EGREP"; then
4700 as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4701 fi
4702 else
4703 ac_cv_path_EGREP=$EGREP
4704 fi
4705
4706 fi
4707 fi
4708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4709 $as_echo "$ac_cv_path_EGREP" >&6; }
4710 EGREP="$ac_cv_path_EGREP"
4711
4712
4713 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4714 $as_echo_n "checking for ANSI C header files... " >&6; }
4715 if test "${ac_cv_header_stdc+set}" = set; then :
4716 $as_echo_n "(cached) " >&6
4717 else
4718 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4719 /* end confdefs.h. */
4720 #include <stdlib.h>
4721 #include <stdarg.h>
4722 #include <string.h>
4723 #include <float.h>
4724
4725 int
4726 main ()
4727 {
4728
4729 ;
4730 return 0;
4731 }
4732 _ACEOF
4733 if ac_fn_c_try_compile "$LINENO"; then :
4734 ac_cv_header_stdc=yes
4735 else
4736 ac_cv_header_stdc=no
4737 fi
4738 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4739
4740 if test $ac_cv_header_stdc = yes; then
4741 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4742 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4743 /* end confdefs.h. */
4744 #include <string.h>
4745
4746 _ACEOF
4747 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4748 $EGREP "memchr" >/dev/null 2>&1; then :
4749
4750 else
4751 ac_cv_header_stdc=no
4752 fi
4753 rm -f conftest*
4754
4755 fi
4756
4757 if test $ac_cv_header_stdc = yes; then
4758 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4759 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4760 /* end confdefs.h. */
4761 #include <stdlib.h>
4762
4763 _ACEOF
4764 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4765 $EGREP "free" >/dev/null 2>&1; then :
4766
4767 else
4768 ac_cv_header_stdc=no
4769 fi
4770 rm -f conftest*
4771
4772 fi
4773
4774 if test $ac_cv_header_stdc = yes; then
4775 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4776 if test "$cross_compiling" = yes; then :
4777 :
4778 else
4779 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4780 /* end confdefs.h. */
4781 #include <ctype.h>
4782 #include <stdlib.h>
4783 #if ((' ' & 0x0FF) == 0x020)
4784 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4785 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4786 #else
4787 # define ISLOWER(c) \
4788 (('a' <= (c) && (c) <= 'i') \
4789 || ('j' <= (c) && (c) <= 'r') \
4790 || ('s' <= (c) && (c) <= 'z'))
4791 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4792 #endif
4793
4794 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4795 int
4796 main ()
4797 {
4798 int i;
4799 for (i = 0; i < 256; i++)
4800 if (XOR (islower (i), ISLOWER (i))
4801 || toupper (i) != TOUPPER (i))
4802 return 2;
4803 return 0;
4804 }
4805 _ACEOF
4806 if ac_fn_c_try_run "$LINENO"; then :
4807
4808 else
4809 ac_cv_header_stdc=no
4810 fi
4811 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4812 conftest.$ac_objext conftest.beam conftest.$ac_ext
4813 fi
4814
4815 fi
4816 fi
4817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4818 $as_echo "$ac_cv_header_stdc" >&6; }
4819 if test $ac_cv_header_stdc = yes; then
4820
4821 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
4822
4823 fi
4824
4825 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4826 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4827 inttypes.h stdint.h unistd.h
4828 do :
4829 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4830 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4831 "
4832 eval as_val=\$$as_ac_Header
4833 if test "x$as_val" = x""yes; then :
4834 cat >>confdefs.h <<_ACEOF
4835 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4836 _ACEOF
4837
4838 fi
4839
4840 done
4841
4842
4843
4844 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
4845 if test "x$ac_cv_header_minix_config_h" = x""yes; then :
4846 MINIX=yes
4847 else
4848 MINIX=
4849 fi
4850
4851
4852 if test "$MINIX" = yes; then
4853
4854 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
4855
4856
4857 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
4858
4859
4860 $as_echo "#define _MINIX 1" >>confdefs.h
4861
4862 fi
4863
4864
4865 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
4866 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
4867 if test "${ac_cv_safe_to_define___extensions__+set}" = set; then :
4868 $as_echo_n "(cached) " >&6
4869 else
4870 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4871 /* end confdefs.h. */
4872
4873 # define __EXTENSIONS__ 1
4874 $ac_includes_default
4875 int
4876 main ()
4877 {
4878
4879 ;
4880 return 0;
4881 }
4882 _ACEOF
4883 if ac_fn_c_try_compile "$LINENO"; then :
4884 ac_cv_safe_to_define___extensions__=yes
4885 else
4886 ac_cv_safe_to_define___extensions__=no
4887 fi
4888 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4889 fi
4890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
4891 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
4892 test $ac_cv_safe_to_define___extensions__ = yes &&
4893 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
4894
4895 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
4896
4897 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
4898
4899 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
4900
4901 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
4902
4903
4904
4905
4906
4907 case `pwd` in
4908 *\ * | *\ *)
4909 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
4910 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
4911 esac
4912
4913
4914
4915 macro_version='2.2.7a'
4916 macro_revision='1.3134'
4917
4918
4919
4920
4921
4922
4923
4924
4925
4926
4927
4928
4929
4930 ltmain="$ac_aux_dir/ltmain.sh"
4931
4932 # Backslashify metacharacters that are still active within
4933 # double-quoted strings.
4934 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
4935
4936 # Same as above, but do not quote variable references.
4937 double_quote_subst='s/\(["`\\]\)/\\\1/g'
4938
4939 # Sed substitution to delay expansion of an escaped shell variable in a
4940 # double_quote_subst'ed string.
4941 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
4942
4943 # Sed substitution to delay expansion of an escaped single quote.
4944 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
4945
4946 # Sed substitution to avoid accidental globbing in evaled expressions
4947 no_glob_subst='s/\*/\\\*/g'
4948
4949 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
4950 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
4951 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
4952
4953 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
4954 $as_echo_n "checking how to print strings... " >&6; }
4955 # Test print first, because it will be a builtin if present.
4956 if test "X`print -r -- -n 2>/dev/null`" = X-n && \
4957 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
4958 ECHO='print -r --'
4959 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
4960 ECHO='printf %s\n'
4961 else
4962 # Use this function as a fallback that always works.
4963 func_fallback_echo ()
4964 {
4965 eval 'cat <<_LTECHO_EOF
4966 $1
4967 _LTECHO_EOF'
4968 }
4969 ECHO='func_fallback_echo'
4970 fi
4971
4972 # func_echo_all arg...
4973 # Invoke $ECHO with all args, space-separated.
4974 func_echo_all ()
4975 {
4976 $ECHO ""
4977 }
4978
4979 case "$ECHO" in
4980 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
4981 $as_echo "printf" >&6; } ;;
4982 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
4983 $as_echo "print -r" >&6; } ;;
4984 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
4985 $as_echo "cat" >&6; } ;;
4986 esac
4987
4988
4989
4990
4991
4992
4993
4994
4995
4996
4997
4998
4999
5000
5001 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
5002 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
5003 if test "${ac_cv_path_SED+set}" = set; then :
5004 $as_echo_n "(cached) " >&6
5005 else
5006 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
5007 for ac_i in 1 2 3 4 5 6 7; do
5008 ac_script="$ac_script$as_nl$ac_script"
5009 done
5010 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
5011 { ac_script=; unset ac_script;}
5012 if test -z "$SED"; then
5013 ac_path_SED_found=false
5014 # Loop through the user's path and test for each of PROGNAME-LIST
5015 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5016 for as_dir in $PATH
5017 do
5018 IFS=$as_save_IFS
5019 test -z "$as_dir" && as_dir=.
5020 for ac_prog in sed gsed; do
5021 for ac_exec_ext in '' $ac_executable_extensions; do
5022 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
5023 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
5024 # Check for GNU ac_path_SED and select it if it is found.
5025 # Check for GNU $ac_path_SED
5026 case `"$ac_path_SED" --version 2>&1` in
5027 *GNU*)
5028 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
5029 *)
5030 ac_count=0
5031 $as_echo_n 0123456789 >"conftest.in"
5032 while :
5033 do
5034 cat "conftest.in" "conftest.in" >"conftest.tmp"
5035 mv "conftest.tmp" "conftest.in"
5036 cp "conftest.in" "conftest.nl"
5037 $as_echo '' >> "conftest.nl"
5038 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
5039 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5040 as_fn_arith $ac_count + 1 && ac_count=$as_val
5041 if test $ac_count -gt ${ac_path_SED_max-0}; then
5042 # Best one so far, save it but keep looking for a better one
5043 ac_cv_path_SED="$ac_path_SED"
5044 ac_path_SED_max=$ac_count
5045 fi
5046 # 10*(2^10) chars as input seems more than enough
5047 test $ac_count -gt 10 && break
5048 done
5049 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5050 esac
5051
5052 $ac_path_SED_found && break 3
5053 done
5054 done
5055 done
5056 IFS=$as_save_IFS
5057 if test -z "$ac_cv_path_SED"; then
5058 as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
5059 fi
5060 else
5061 ac_cv_path_SED=$SED
5062 fi
5063
5064 fi
5065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
5066 $as_echo "$ac_cv_path_SED" >&6; }
5067 SED="$ac_cv_path_SED"
5068 rm -f conftest.sed
5069
5070 test -z "$SED" && SED=sed
5071 Xsed="$SED -e 1s/^X//"
5072
5073
5074
5075
5076
5077
5078
5079
5080
5081
5082
5083 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
5084 $as_echo_n "checking for fgrep... " >&6; }
5085 if test "${ac_cv_path_FGREP+set}" = set; then :
5086 $as_echo_n "(cached) " >&6
5087 else
5088 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
5089 then ac_cv_path_FGREP="$GREP -F"
5090 else
5091 if test -z "$FGREP"; then
5092 ac_path_FGREP_found=false
5093 # Loop through the user's path and test for each of PROGNAME-LIST
5094 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5095 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5096 do
5097 IFS=$as_save_IFS
5098 test -z "$as_dir" && as_dir=.
5099 for ac_prog in fgrep; do
5100 for ac_exec_ext in '' $ac_executable_extensions; do
5101 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
5102 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
5103 # Check for GNU ac_path_FGREP and select it if it is found.
5104 # Check for GNU $ac_path_FGREP
5105 case `"$ac_path_FGREP" --version 2>&1` in
5106 *GNU*)
5107 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
5108 *)
5109 ac_count=0
5110 $as_echo_n 0123456789 >"conftest.in"
5111 while :
5112 do
5113 cat "conftest.in" "conftest.in" >"conftest.tmp"
5114 mv "conftest.tmp" "conftest.in"
5115 cp "conftest.in" "conftest.nl"
5116 $as_echo 'FGREP' >> "conftest.nl"
5117 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
5118 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5119 as_fn_arith $ac_count + 1 && ac_count=$as_val
5120 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5121 # Best one so far, save it but keep looking for a better one
5122 ac_cv_path_FGREP="$ac_path_FGREP"
5123 ac_path_FGREP_max=$ac_count
5124 fi
5125 # 10*(2^10) chars as input seems more than enough
5126 test $ac_count -gt 10 && break
5127 done
5128 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5129 esac
5130
5131 $ac_path_FGREP_found && break 3
5132 done
5133 done
5134 done
5135 IFS=$as_save_IFS
5136 if test -z "$ac_cv_path_FGREP"; then
5137 as_fn_error "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5138 fi
5139 else
5140 ac_cv_path_FGREP=$FGREP
5141 fi
5142
5143 fi
5144 fi
5145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
5146 $as_echo "$ac_cv_path_FGREP" >&6; }
5147 FGREP="$ac_cv_path_FGREP"
5148
5149
5150 test -z "$GREP" && GREP=grep
5151
5152
5153
5154
5155
5156
5157
5158
5159
5160
5161
5162
5163
5164
5165
5166
5167
5168
5169
5170 # Check whether --with-gnu-ld was given.
5171 if test "${with_gnu_ld+set}" = set; then :
5172 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
5173 else
5174 with_gnu_ld=no
5175 fi
5176
5177 ac_prog=ld
5178 if test "$GCC" = yes; then
5179 # Check if gcc -print-prog-name=ld gives a path.
5180 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5181 $as_echo_n "checking for ld used by $CC... " >&6; }
5182 case $host in
5183 *-*-mingw*)
5184 # gcc leaves a trailing carriage return which upsets mingw
5185 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5186 *)
5187 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5188 esac
5189 case $ac_prog in
5190 # Accept absolute paths.
5191 [\\/]* | ?:[\\/]*)
5192 re_direlt='/[^/][^/]*/\.\./'
5193 # Canonicalize the pathname of ld
5194 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5195 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5196 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5197 done
5198 test -z "$LD" && LD="$ac_prog"
5199 ;;
5200 "")
5201 # If it fails, then pretend we aren't using GCC.
5202 ac_prog=ld
5203 ;;
5204 *)
5205 # If it is relative, then search for the first ld in PATH.
5206 with_gnu_ld=unknown
5207 ;;
5208 esac
5209 elif test "$with_gnu_ld" = yes; then
5210 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5211 $as_echo_n "checking for GNU ld... " >&6; }
5212 else
5213 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5214 $as_echo_n "checking for non-GNU ld... " >&6; }
5215 fi
5216 if test "${lt_cv_path_LD+set}" = set; then :
5217 $as_echo_n "(cached) " >&6
5218 else
5219 if test -z "$LD"; then
5220 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5221 for ac_dir in $PATH; do
5222 IFS="$lt_save_ifs"
5223 test -z "$ac_dir" && ac_dir=.
5224 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5225 lt_cv_path_LD="$ac_dir/$ac_prog"
5226 # Check to see if the program is GNU ld. I'd rather use --version,
5227 # but apparently some variants of GNU ld only accept -v.
5228 # Break only if it was the GNU/non-GNU ld that we prefer.
5229 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5230 *GNU* | *'with BFD'*)
5231 test "$with_gnu_ld" != no && break
5232 ;;
5233 *)
5234 test "$with_gnu_ld" != yes && break
5235 ;;
5236 esac
5237 fi
5238 done
5239 IFS="$lt_save_ifs"
5240 else
5241 lt_cv_path_LD="$LD" # Let the user override the test with a path.
5242 fi
5243 fi
5244
5245 LD="$lt_cv_path_LD"
5246 if test -n "$LD"; then
5247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5248 $as_echo "$LD" >&6; }
5249 else
5250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5251 $as_echo "no" >&6; }
5252 fi
5253 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
5254 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5255 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
5256 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
5257 $as_echo_n "(cached) " >&6
5258 else
5259 # I'd rather use --version here, but apparently some GNU lds only accept -v.
5260 case `$LD -v 2>&1 </dev/null` in
5261 *GNU* | *'with BFD'*)
5262 lt_cv_prog_gnu_ld=yes
5263 ;;
5264 *)
5265 lt_cv_prog_gnu_ld=no
5266 ;;
5267 esac
5268 fi
5269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5270 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
5271 with_gnu_ld=$lt_cv_prog_gnu_ld
5272
5273
5274
5275
5276
5277
5278
5279
5280
5281 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5282 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5283 if test "${lt_cv_path_NM+set}" = set; then :
5284 $as_echo_n "(cached) " >&6
5285 else
5286 if test -n "$NM"; then
5287 # Let the user override the test.
5288 lt_cv_path_NM="$NM"
5289 else
5290 lt_nm_to_check="${ac_tool_prefix}nm"
5291 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5292 lt_nm_to_check="$lt_nm_to_check nm"
5293 fi
5294 for lt_tmp_nm in $lt_nm_to_check; do
5295 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5296 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5297 IFS="$lt_save_ifs"
5298 test -z "$ac_dir" && ac_dir=.
5299 tmp_nm="$ac_dir/$lt_tmp_nm"
5300 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5301 # Check to see if the nm accepts a BSD-compat flag.
5302 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5303 # nm: unknown option "B" ignored
5304 # Tru64's nm complains that /dev/null is an invalid object file
5305 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5306 */dev/null* | *'Invalid file or object type'*)
5307 lt_cv_path_NM="$tmp_nm -B"
5308 break
5309 ;;
5310 *)
5311 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5312 */dev/null*)
5313 lt_cv_path_NM="$tmp_nm -p"
5314 break
5315 ;;
5316 *)
5317 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5318 continue # so that we can try to find one that supports BSD flags
5319 ;;
5320 esac
5321 ;;
5322 esac
5323 fi
5324 done
5325 IFS="$lt_save_ifs"
5326 done
5327 : ${lt_cv_path_NM=no}
5328 fi
5329 fi
5330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5331 $as_echo "$lt_cv_path_NM" >&6; }
5332 if test "$lt_cv_path_NM" != "no"; then
5333 NM="$lt_cv_path_NM"
5334 else
5335 # Didn't find any BSD compatible name lister, look for dumpbin.
5336 if test -n "$DUMPBIN"; then :
5337 # Let the user override the test.
5338 else
5339 if test -n "$ac_tool_prefix"; then
5340 for ac_prog in dumpbin "link -dump"
5341 do
5342 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5343 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5344 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5345 $as_echo_n "checking for $ac_word... " >&6; }
5346 if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
5347 $as_echo_n "(cached) " >&6
5348 else
5349 if test -n "$DUMPBIN"; then
5350 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5351 else
5352 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5353 for as_dir in $PATH
5354 do
5355 IFS=$as_save_IFS
5356 test -z "$as_dir" && as_dir=.
5357 for ac_exec_ext in '' $ac_executable_extensions; do
5358 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5359 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5360 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5361 break 2
5362 fi
5363 done
5364 done
5365 IFS=$as_save_IFS
5366
5367 fi
5368 fi
5369 DUMPBIN=$ac_cv_prog_DUMPBIN
5370 if test -n "$DUMPBIN"; then
5371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5372 $as_echo "$DUMPBIN" >&6; }
5373 else
5374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5375 $as_echo "no" >&6; }
5376 fi
5377
5378
5379 test -n "$DUMPBIN" && break
5380 done
5381 fi
5382 if test -z "$DUMPBIN"; then
5383 ac_ct_DUMPBIN=$DUMPBIN
5384 for ac_prog in dumpbin "link -dump"
5385 do
5386 # Extract the first word of "$ac_prog", so it can be a program name with args.
5387 set dummy $ac_prog; ac_word=$2
5388 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5389 $as_echo_n "checking for $ac_word... " >&6; }
5390 if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
5391 $as_echo_n "(cached) " >&6
5392 else
5393 if test -n "$ac_ct_DUMPBIN"; then
5394 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5395 else
5396 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5397 for as_dir in $PATH
5398 do
5399 IFS=$as_save_IFS
5400 test -z "$as_dir" && as_dir=.
5401 for ac_exec_ext in '' $ac_executable_extensions; do
5402 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5403 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5404 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5405 break 2
5406 fi
5407 done
5408 done
5409 IFS=$as_save_IFS
5410
5411 fi
5412 fi
5413 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5414 if test -n "$ac_ct_DUMPBIN"; then
5415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5416 $as_echo "$ac_ct_DUMPBIN" >&6; }
5417 else
5418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5419 $as_echo "no" >&6; }
5420 fi
5421
5422
5423 test -n "$ac_ct_DUMPBIN" && break
5424 done
5425
5426 if test "x$ac_ct_DUMPBIN" = x; then
5427 DUMPBIN=":"
5428 else
5429 case $cross_compiling:$ac_tool_warned in
5430 yes:)
5431 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5432 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5433 ac_tool_warned=yes ;;
5434 esac
5435 DUMPBIN=$ac_ct_DUMPBIN
5436 fi
5437 fi
5438
5439 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
5440 *COFF*)
5441 DUMPBIN="$DUMPBIN -symbols"
5442 ;;
5443 *)
5444 DUMPBIN=:
5445 ;;
5446 esac
5447 fi
5448
5449 if test "$DUMPBIN" != ":"; then
5450 NM="$DUMPBIN"
5451 fi
5452 fi
5453 test -z "$NM" && NM=nm
5454
5455
5456
5457
5458
5459
5460 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5461 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
5462 if test "${lt_cv_nm_interface+set}" = set; then :
5463 $as_echo_n "(cached) " >&6
5464 else
5465 lt_cv_nm_interface="BSD nm"
5466 echo "int some_variable = 0;" > conftest.$ac_ext
5467 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
5468 (eval "$ac_compile" 2>conftest.err)
5469 cat conftest.err >&5
5470 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5471 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5472 cat conftest.err >&5
5473 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
5474 cat conftest.out >&5
5475 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5476 lt_cv_nm_interface="MS dumpbin"
5477 fi
5478 rm -f conftest*
5479 fi
5480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5481 $as_echo "$lt_cv_nm_interface" >&6; }
5482
5483 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5484 $as_echo_n "checking whether ln -s works... " >&6; }
5485 LN_S=$as_ln_s
5486 if test "$LN_S" = "ln -s"; then
5487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5488 $as_echo "yes" >&6; }
5489 else
5490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5491 $as_echo "no, using $LN_S" >&6; }
5492 fi
5493
5494 # find the maximum length of command line arguments
5495 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5496 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
5497 if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
5498 $as_echo_n "(cached) " >&6
5499 else
5500 i=0
5501 teststring="ABCD"
5502
5503 case $build_os in
5504 msdosdjgpp*)
5505 # On DJGPP, this test can blow up pretty badly due to problems in libc
5506 # (any single argument exceeding 2000 bytes causes a buffer overrun
5507 # during glob expansion). Even if it were fixed, the result of this
5508 # check would be larger than it should be.
5509 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5510 ;;
5511
5512 gnu*)
5513 # Under GNU Hurd, this test is not required because there is
5514 # no limit to the length of command line arguments.
5515 # Libtool will interpret -1 as no limit whatsoever
5516 lt_cv_sys_max_cmd_len=-1;
5517 ;;
5518
5519 cygwin* | mingw* | cegcc*)
5520 # On Win9x/ME, this test blows up -- it succeeds, but takes
5521 # about 5 minutes as the teststring grows exponentially.
5522 # Worse, since 9x/ME are not pre-emptively multitasking,
5523 # you end up with a "frozen" computer, even though with patience
5524 # the test eventually succeeds (with a max line length of 256k).
5525 # Instead, let's just punt: use the minimum linelength reported by
5526 # all of the supported platforms: 8192 (on NT/2K/XP).
5527 lt_cv_sys_max_cmd_len=8192;
5528 ;;
5529
5530 mint*)
5531 # On MiNT this can take a long time and run out of memory.
5532 lt_cv_sys_max_cmd_len=8192;
5533 ;;
5534
5535 amigaos*)
5536 # On AmigaOS with pdksh, this test takes hours, literally.
5537 # So we just punt and use a minimum line length of 8192.
5538 lt_cv_sys_max_cmd_len=8192;
5539 ;;
5540
5541 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5542 # This has been around since 386BSD, at least. Likely further.
5543 if test -x /sbin/sysctl; then
5544 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5545 elif test -x /usr/sbin/sysctl; then
5546 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5547 else
5548 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
5549 fi
5550 # And add a safety zone
5551 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5552 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5553 ;;
5554
5555 interix*)
5556 # We know the value 262144 and hardcode it with a safety zone (like BSD)
5557 lt_cv_sys_max_cmd_len=196608
5558 ;;
5559
5560 osf*)
5561 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5562 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5563 # nice to cause kernel panics so lets avoid the loop below.
5564 # First set a reasonable default.
5565 lt_cv_sys_max_cmd_len=16384
5566 #
5567 if test -x /sbin/sysconfig; then
5568 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5569 *1*) lt_cv_sys_max_cmd_len=-1 ;;
5570 esac
5571 fi
5572 ;;
5573 sco3.2v5*)
5574 lt_cv_sys_max_cmd_len=102400
5575 ;;
5576 sysv5* | sco5v6* | sysv4.2uw2*)
5577 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5578 if test -n "$kargmax"; then
5579 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
5580 else
5581 lt_cv_sys_max_cmd_len=32768
5582 fi
5583 ;;
5584 *)
5585 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5586 if test -n "$lt_cv_sys_max_cmd_len"; then
5587 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5588 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5589 else
5590 # Make teststring a little bigger before we do anything with it.
5591 # a 1K string should be a reasonable start.
5592 for i in 1 2 3 4 5 6 7 8 ; do
5593 teststring=$teststring$teststring
5594 done
5595 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5596 # If test is not a shell built-in, we'll probably end up computing a
5597 # maximum length that is only half of the actual maximum length, but
5598 # we can't tell.
5599 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
5600 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
5601 test $i != 17 # 1/2 MB should be enough
5602 do
5603 i=`expr $i + 1`
5604 teststring=$teststring$teststring
5605 done
5606 # Only check the string length outside the loop.
5607 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5608 teststring=
5609 # Add a significant safety factor because C++ compilers can tack on
5610 # massive amounts of additional arguments before passing them to the
5611 # linker. It appears as though 1/2 is a usable value.
5612 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5613 fi
5614 ;;
5615 esac
5616
5617 fi
5618
5619 if test -n $lt_cv_sys_max_cmd_len ; then
5620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5621 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
5622 else
5623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
5624 $as_echo "none" >&6; }
5625 fi
5626 max_cmd_len=$lt_cv_sys_max_cmd_len
5627
5628
5629
5630
5631
5632
5633 : ${CP="cp -f"}
5634 : ${MV="mv -f"}
5635 : ${RM="rm -f"}
5636
5637 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
5638 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
5639 # Try some XSI features
5640 xsi_shell=no
5641 ( _lt_dummy="a/b/c"
5642 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
5643 = c,a/b,, \
5644 && eval 'test $(( 1 + 1 )) -eq 2 \
5645 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
5646 && xsi_shell=yes
5647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
5648 $as_echo "$xsi_shell" >&6; }
5649
5650
5651 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
5652 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
5653 lt_shell_append=no
5654 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
5655 >/dev/null 2>&1 \
5656 && lt_shell_append=yes
5657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
5658 $as_echo "$lt_shell_append" >&6; }
5659
5660
5661 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5662 lt_unset=unset
5663 else
5664 lt_unset=false
5665 fi
5666
5667
5668
5669
5670
5671 # test EBCDIC or ASCII
5672 case `echo X|tr X '\101'` in
5673 A) # ASCII based system
5674 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5675 lt_SP2NL='tr \040 \012'
5676 lt_NL2SP='tr \015\012 \040\040'
5677 ;;
5678 *) # EBCDIC based system
5679 lt_SP2NL='tr \100 \n'
5680 lt_NL2SP='tr \r\n \100\100'
5681 ;;
5682 esac
5683
5684
5685
5686
5687
5688
5689
5690
5691
5692 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5693 $as_echo_n "checking for $LD option to reload object files... " >&6; }
5694 if test "${lt_cv_ld_reload_flag+set}" = set; then :
5695 $as_echo_n "(cached) " >&6
5696 else
5697 lt_cv_ld_reload_flag='-r'
5698 fi
5699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5700 $as_echo "$lt_cv_ld_reload_flag" >&6; }
5701 reload_flag=$lt_cv_ld_reload_flag
5702 case $reload_flag in
5703 "" | " "*) ;;
5704 *) reload_flag=" $reload_flag" ;;
5705 esac
5706 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5707 case $host_os in
5708 darwin*)
5709 if test "$GCC" = yes; then
5710 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5711 else
5712 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5713 fi
5714 ;;
5715 esac
5716
5717
5718
5719
5720
5721
5722
5723
5724
5725 if test -n "$ac_tool_prefix"; then
5726 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5727 set dummy ${ac_tool_prefix}objdump; ac_word=$2
5728 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5729 $as_echo_n "checking for $ac_word... " >&6; }
5730 if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
5731 $as_echo_n "(cached) " >&6
5732 else
5733 if test -n "$OBJDUMP"; then
5734 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5735 else
5736 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5737 for as_dir in $PATH
5738 do
5739 IFS=$as_save_IFS
5740 test -z "$as_dir" && as_dir=.
5741 for ac_exec_ext in '' $ac_executable_extensions; do
5742 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5743 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5744 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5745 break 2
5746 fi
5747 done
5748 done
5749 IFS=$as_save_IFS
5750
5751 fi
5752 fi
5753 OBJDUMP=$ac_cv_prog_OBJDUMP
5754 if test -n "$OBJDUMP"; then
5755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5756 $as_echo "$OBJDUMP" >&6; }
5757 else
5758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5759 $as_echo "no" >&6; }
5760 fi
5761
5762
5763 fi
5764 if test -z "$ac_cv_prog_OBJDUMP"; then
5765 ac_ct_OBJDUMP=$OBJDUMP
5766 # Extract the first word of "objdump", so it can be a program name with args.
5767 set dummy objdump; ac_word=$2
5768 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5769 $as_echo_n "checking for $ac_word... " >&6; }
5770 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
5771 $as_echo_n "(cached) " >&6
5772 else
5773 if test -n "$ac_ct_OBJDUMP"; then
5774 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5775 else
5776 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5777 for as_dir in $PATH
5778 do
5779 IFS=$as_save_IFS
5780 test -z "$as_dir" && as_dir=.
5781 for ac_exec_ext in '' $ac_executable_extensions; do
5782 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5783 ac_cv_prog_ac_ct_OBJDUMP="objdump"
5784 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5785 break 2
5786 fi
5787 done
5788 done
5789 IFS=$as_save_IFS
5790
5791 fi
5792 fi
5793 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5794 if test -n "$ac_ct_OBJDUMP"; then
5795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5796 $as_echo "$ac_ct_OBJDUMP" >&6; }
5797 else
5798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5799 $as_echo "no" >&6; }
5800 fi
5801
5802 if test "x$ac_ct_OBJDUMP" = x; then
5803 OBJDUMP="false"
5804 else
5805 case $cross_compiling:$ac_tool_warned in
5806 yes:)
5807 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5808 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5809 ac_tool_warned=yes ;;
5810 esac
5811 OBJDUMP=$ac_ct_OBJDUMP
5812 fi
5813 else
5814 OBJDUMP="$ac_cv_prog_OBJDUMP"
5815 fi
5816
5817 test -z "$OBJDUMP" && OBJDUMP=objdump
5818
5819
5820
5821
5822
5823
5824
5825
5826
5827 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5828 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
5829 if test "${lt_cv_deplibs_check_method+set}" = set; then :
5830 $as_echo_n "(cached) " >&6
5831 else
5832 lt_cv_file_magic_cmd='$MAGIC_CMD'
5833 lt_cv_file_magic_test_file=
5834 lt_cv_deplibs_check_method='unknown'
5835 # Need to set the preceding variable on all platforms that support
5836 # interlibrary dependencies.
5837 # 'none' -- dependencies not supported.
5838 # `unknown' -- same as none, but documents that we really don't know.
5839 # 'pass_all' -- all dependencies passed with no checks.
5840 # 'test_compile' -- check by making test program.
5841 # 'file_magic [[regex]]' -- check by looking for files in library path
5842 # which responds to the $file_magic_cmd with a given extended regex.
5843 # If you have `file' or equivalent on your system and you're not sure
5844 # whether `pass_all' will *always* work, you probably want this one.
5845
5846 case $host_os in
5847 aix[4-9]*)
5848 lt_cv_deplibs_check_method=pass_all
5849 ;;
5850
5851 beos*)
5852 lt_cv_deplibs_check_method=pass_all
5853 ;;
5854
5855 bsdi[45]*)
5856 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5857 lt_cv_file_magic_cmd='/usr/bin/file -L'
5858 lt_cv_file_magic_test_file=/shlib/libc.so
5859 ;;
5860
5861 cygwin*)
5862 # func_win32_libid is a shell function defined in ltmain.sh
5863 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5864 lt_cv_file_magic_cmd='func_win32_libid'
5865 ;;
5866
5867 mingw* | pw32*)
5868 # Base MSYS/MinGW do not provide the 'file' command needed by
5869 # func_win32_libid shell function, so use a weaker test based on 'objdump',
5870 # unless we find 'file', for example because we are cross-compiling.
5871 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
5872 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
5873 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5874 lt_cv_file_magic_cmd='func_win32_libid'
5875 else
5876 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
5877 lt_cv_file_magic_cmd='$OBJDUMP -f'
5878 fi
5879 ;;
5880
5881 cegcc*)
5882 # use the weaker test based on 'objdump'. See mingw*.
5883 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5884 lt_cv_file_magic_cmd='$OBJDUMP -f'
5885 ;;
5886
5887 darwin* | rhapsody*)
5888 lt_cv_deplibs_check_method=pass_all
5889 ;;
5890
5891 freebsd* | dragonfly*)
5892 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5893 case $host_cpu in
5894 i*86 )
5895 # Not sure whether the presence of OpenBSD here was a mistake.
5896 # Let's accept both of them until this is cleared up.
5897 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5898 lt_cv_file_magic_cmd=/usr/bin/file
5899 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5900 ;;
5901 esac
5902 else
5903 lt_cv_deplibs_check_method=pass_all
5904 fi
5905 ;;
5906
5907 gnu*)
5908 lt_cv_deplibs_check_method=pass_all
5909 ;;
5910
5911 haiku*)
5912 lt_cv_deplibs_check_method=pass_all
5913 ;;
5914
5915 hpux10.20* | hpux11*)
5916 lt_cv_file_magic_cmd=/usr/bin/file
5917 case $host_cpu in
5918 ia64*)
5919 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5920 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5921 ;;
5922 hppa*64*)
5923 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]'
5924 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5925 ;;
5926 *)
5927 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
5928 lt_cv_file_magic_test_file=/usr/lib/libc.sl
5929 ;;
5930 esac
5931 ;;
5932
5933 interix[3-9]*)
5934 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5935 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5936 ;;
5937
5938 irix5* | irix6* | nonstopux*)
5939 case $LD in
5940 *-32|*"-32 ") libmagic=32-bit;;
5941 *-n32|*"-n32 ") libmagic=N32;;
5942 *-64|*"-64 ") libmagic=64-bit;;
5943 *) libmagic=never-match;;
5944 esac
5945 lt_cv_deplibs_check_method=pass_all
5946 ;;
5947
5948 # This must be Linux ELF.
5949 linux* | k*bsd*-gnu | kopensolaris*-gnu)
5950 lt_cv_deplibs_check_method=pass_all
5951 ;;
5952
5953 netbsd*)
5954 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5955 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5956 else
5957 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5958 fi
5959 ;;
5960
5961 newos6*)
5962 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5963 lt_cv_file_magic_cmd=/usr/bin/file
5964 lt_cv_file_magic_test_file=/usr/lib/libnls.so
5965 ;;
5966
5967 *nto* | *qnx*)
5968 lt_cv_deplibs_check_method=pass_all
5969 ;;
5970
5971 openbsd*)
5972 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5973 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5974 else
5975 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5976 fi
5977 ;;
5978
5979 osf3* | osf4* | osf5*)
5980 lt_cv_deplibs_check_method=pass_all
5981 ;;
5982
5983 rdos*)
5984 lt_cv_deplibs_check_method=pass_all
5985 ;;
5986
5987 solaris*)
5988 lt_cv_deplibs_check_method=pass_all
5989 ;;
5990
5991 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5992 lt_cv_deplibs_check_method=pass_all
5993 ;;
5994
5995 sysv4 | sysv4.3*)
5996 case $host_vendor in
5997 motorola)
5998 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]'
5999 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6000 ;;
6001 ncr)
6002 lt_cv_deplibs_check_method=pass_all
6003 ;;
6004 sequent)
6005 lt_cv_file_magic_cmd='/bin/file'
6006 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6007 ;;
6008 sni)
6009 lt_cv_file_magic_cmd='/bin/file'
6010 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6011 lt_cv_file_magic_test_file=/lib/libc.so
6012 ;;
6013 siemens)
6014 lt_cv_deplibs_check_method=pass_all
6015 ;;
6016 pc)
6017 lt_cv_deplibs_check_method=pass_all
6018 ;;
6019 esac
6020 ;;
6021
6022 tpf*)
6023 lt_cv_deplibs_check_method=pass_all
6024 ;;
6025 esac
6026
6027 fi
6028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
6029 $as_echo "$lt_cv_deplibs_check_method" >&6; }
6030 file_magic_cmd=$lt_cv_file_magic_cmd
6031 deplibs_check_method=$lt_cv_deplibs_check_method
6032 test -z "$deplibs_check_method" && deplibs_check_method=unknown
6033
6034
6035
6036
6037
6038
6039
6040
6041
6042
6043
6044
6045 if test -n "$ac_tool_prefix"; then
6046 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6047 set dummy ${ac_tool_prefix}ar; ac_word=$2
6048 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6049 $as_echo_n "checking for $ac_word... " >&6; }
6050 if test "${ac_cv_prog_AR+set}" = set; then :
6051 $as_echo_n "(cached) " >&6
6052 else
6053 if test -n "$AR"; then
6054 ac_cv_prog_AR="$AR" # Let the user override the test.
6055 else
6056 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6057 for as_dir in $PATH
6058 do
6059 IFS=$as_save_IFS
6060 test -z "$as_dir" && as_dir=.
6061 for ac_exec_ext in '' $ac_executable_extensions; do
6062 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6063 ac_cv_prog_AR="${ac_tool_prefix}ar"
6064 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6065 break 2
6066 fi
6067 done
6068 done
6069 IFS=$as_save_IFS
6070
6071 fi
6072 fi
6073 AR=$ac_cv_prog_AR
6074 if test -n "$AR"; then
6075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6076 $as_echo "$AR" >&6; }
6077 else
6078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6079 $as_echo "no" >&6; }
6080 fi
6081
6082
6083 fi
6084 if test -z "$ac_cv_prog_AR"; then
6085 ac_ct_AR=$AR
6086 # Extract the first word of "ar", so it can be a program name with args.
6087 set dummy ar; ac_word=$2
6088 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6089 $as_echo_n "checking for $ac_word... " >&6; }
6090 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
6091 $as_echo_n "(cached) " >&6
6092 else
6093 if test -n "$ac_ct_AR"; then
6094 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6095 else
6096 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6097 for as_dir in $PATH
6098 do
6099 IFS=$as_save_IFS
6100 test -z "$as_dir" && as_dir=.
6101 for ac_exec_ext in '' $ac_executable_extensions; do
6102 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6103 ac_cv_prog_ac_ct_AR="ar"
6104 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6105 break 2
6106 fi
6107 done
6108 done
6109 IFS=$as_save_IFS
6110
6111 fi
6112 fi
6113 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6114 if test -n "$ac_ct_AR"; then
6115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6116 $as_echo "$ac_ct_AR" >&6; }
6117 else
6118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6119 $as_echo "no" >&6; }
6120 fi
6121
6122 if test "x$ac_ct_AR" = x; then
6123 AR="false"
6124 else
6125 case $cross_compiling:$ac_tool_warned in
6126 yes:)
6127 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6128 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6129 ac_tool_warned=yes ;;
6130 esac
6131 AR=$ac_ct_AR
6132 fi
6133 else
6134 AR="$ac_cv_prog_AR"
6135 fi
6136
6137 test -z "$AR" && AR=ar
6138 test -z "$AR_FLAGS" && AR_FLAGS=cru
6139
6140
6141
6142
6143
6144
6145
6146
6147
6148
6149
6150 if test -n "$ac_tool_prefix"; then
6151 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6152 set dummy ${ac_tool_prefix}strip; ac_word=$2
6153 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6154 $as_echo_n "checking for $ac_word... " >&6; }
6155 if test "${ac_cv_prog_STRIP+set}" = set; then :
6156 $as_echo_n "(cached) " >&6
6157 else
6158 if test -n "$STRIP"; then
6159 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6160 else
6161 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6162 for as_dir in $PATH
6163 do
6164 IFS=$as_save_IFS
6165 test -z "$as_dir" && as_dir=.
6166 for ac_exec_ext in '' $ac_executable_extensions; do
6167 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6168 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6169 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6170 break 2
6171 fi
6172 done
6173 done
6174 IFS=$as_save_IFS
6175
6176 fi
6177 fi
6178 STRIP=$ac_cv_prog_STRIP
6179 if test -n "$STRIP"; then
6180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6181 $as_echo "$STRIP" >&6; }
6182 else
6183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6184 $as_echo "no" >&6; }
6185 fi
6186
6187
6188 fi
6189 if test -z "$ac_cv_prog_STRIP"; then
6190 ac_ct_STRIP=$STRIP
6191 # Extract the first word of "strip", so it can be a program name with args.
6192 set dummy strip; ac_word=$2
6193 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6194 $as_echo_n "checking for $ac_word... " >&6; }
6195 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
6196 $as_echo_n "(cached) " >&6
6197 else
6198 if test -n "$ac_ct_STRIP"; then
6199 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6200 else
6201 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6202 for as_dir in $PATH
6203 do
6204 IFS=$as_save_IFS
6205 test -z "$as_dir" && as_dir=.
6206 for ac_exec_ext in '' $ac_executable_extensions; do
6207 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6208 ac_cv_prog_ac_ct_STRIP="strip"
6209 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6210 break 2
6211 fi
6212 done
6213 done
6214 IFS=$as_save_IFS
6215
6216 fi
6217 fi
6218 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6219 if test -n "$ac_ct_STRIP"; then
6220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6221 $as_echo "$ac_ct_STRIP" >&6; }
6222 else
6223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6224 $as_echo "no" >&6; }
6225 fi
6226
6227 if test "x$ac_ct_STRIP" = x; then
6228 STRIP=":"
6229 else
6230 case $cross_compiling:$ac_tool_warned in
6231 yes:)
6232 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6233 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6234 ac_tool_warned=yes ;;
6235 esac
6236 STRIP=$ac_ct_STRIP
6237 fi
6238 else
6239 STRIP="$ac_cv_prog_STRIP"
6240 fi
6241
6242 test -z "$STRIP" && STRIP=:
6243
6244
6245
6246
6247
6248
6249 if test -n "$ac_tool_prefix"; then
6250 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6251 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6252 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6253 $as_echo_n "checking for $ac_word... " >&6; }
6254 if test "${ac_cv_prog_RANLIB+set}" = set; then :
6255 $as_echo_n "(cached) " >&6
6256 else
6257 if test -n "$RANLIB"; then
6258 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6259 else
6260 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6261 for as_dir in $PATH
6262 do
6263 IFS=$as_save_IFS
6264 test -z "$as_dir" && as_dir=.
6265 for ac_exec_ext in '' $ac_executable_extensions; do
6266 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6267 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6268 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6269 break 2
6270 fi
6271 done
6272 done
6273 IFS=$as_save_IFS
6274
6275 fi
6276 fi
6277 RANLIB=$ac_cv_prog_RANLIB
6278 if test -n "$RANLIB"; then
6279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6280 $as_echo "$RANLIB" >&6; }
6281 else
6282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6283 $as_echo "no" >&6; }
6284 fi
6285
6286
6287 fi
6288 if test -z "$ac_cv_prog_RANLIB"; then
6289 ac_ct_RANLIB=$RANLIB
6290 # Extract the first word of "ranlib", so it can be a program name with args.
6291 set dummy ranlib; ac_word=$2
6292 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6293 $as_echo_n "checking for $ac_word... " >&6; }
6294 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
6295 $as_echo_n "(cached) " >&6
6296 else
6297 if test -n "$ac_ct_RANLIB"; then
6298 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6299 else
6300 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6301 for as_dir in $PATH
6302 do
6303 IFS=$as_save_IFS
6304 test -z "$as_dir" && as_dir=.
6305 for ac_exec_ext in '' $ac_executable_extensions; do
6306 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6307 ac_cv_prog_ac_ct_RANLIB="ranlib"
6308 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6309 break 2
6310 fi
6311 done
6312 done
6313 IFS=$as_save_IFS
6314
6315 fi
6316 fi
6317 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6318 if test -n "$ac_ct_RANLIB"; then
6319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6320 $as_echo "$ac_ct_RANLIB" >&6; }
6321 else
6322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6323 $as_echo "no" >&6; }
6324 fi
6325
6326 if test "x$ac_ct_RANLIB" = x; then
6327 RANLIB=":"
6328 else
6329 case $cross_compiling:$ac_tool_warned in
6330 yes:)
6331 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6332 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6333 ac_tool_warned=yes ;;
6334 esac
6335 RANLIB=$ac_ct_RANLIB
6336 fi
6337 else
6338 RANLIB="$ac_cv_prog_RANLIB"
6339 fi
6340
6341 test -z "$RANLIB" && RANLIB=:
6342
6343
6344
6345
6346
6347
6348 # Determine commands to create old-style static archives.
6349 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6350 old_postinstall_cmds='chmod 644 $oldlib'
6351 old_postuninstall_cmds=
6352
6353 if test -n "$RANLIB"; then
6354 case $host_os in
6355 openbsd*)
6356 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
6357 ;;
6358 *)
6359 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
6360 ;;
6361 esac
6362 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6363 fi
6364
6365 case $host_os in
6366 darwin*)
6367 lock_old_archive_extraction=yes ;;
6368 *)
6369 lock_old_archive_extraction=no ;;
6370 esac
6371
6372
6373
6374
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 # If no C compiler was specified, use CC.
6411 LTCC=${LTCC-"$CC"}
6412
6413 # If no C compiler flags were specified, use CFLAGS.
6414 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6415
6416 # Allow CC to be a program name with arguments.
6417 compiler=$CC
6418
6419
6420 # Check for command to grab the raw symbol name followed by C symbol from nm.
6421 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6422 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6423 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
6424 $as_echo_n "(cached) " >&6
6425 else
6426
6427 # These are sane defaults that work on at least a few old systems.
6428 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
6429
6430 # Character class describing NM global symbol codes.
6431 symcode='[BCDEGRST]'
6432
6433 # Regexp to match symbols that can be accessed directly from C.
6434 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6435
6436 # Define system-specific variables.
6437 case $host_os in
6438 aix*)
6439 symcode='[BCDT]'
6440 ;;
6441 cygwin* | mingw* | pw32* | cegcc*)
6442 symcode='[ABCDGISTW]'
6443 ;;
6444 hpux*)
6445 if test "$host_cpu" = ia64; then
6446 symcode='[ABCDEGRST]'
6447 fi
6448 ;;
6449 irix* | nonstopux*)
6450 symcode='[BCDEGRST]'
6451 ;;
6452 osf*)
6453 symcode='[BCDEGQRST]'
6454 ;;
6455 solaris*)
6456 symcode='[BDRT]'
6457 ;;
6458 sco3.2v5*)
6459 symcode='[DT]'
6460 ;;
6461 sysv4.2uw2*)
6462 symcode='[DT]'
6463 ;;
6464 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6465 symcode='[ABDT]'
6466 ;;
6467 sysv4)
6468 symcode='[DFNSTU]'
6469 ;;
6470 esac
6471
6472 # If we're using GNU nm, then use its standard symbol codes.
6473 case `$NM -V 2>&1` in
6474 *GNU* | *'with BFD'*)
6475 symcode='[ABCDGIRSTW]' ;;
6476 esac
6477
6478 # Transform an extracted symbol line into a proper C declaration.
6479 # Some systems (esp. on ia64) link data and code symbols differently,
6480 # so use this general approach.
6481 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6482
6483 # Transform an extracted symbol line into symbol name and symbol address
6484 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
6485 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'"
6486
6487 # Handle CRLF in mingw tool chain
6488 opt_cr=
6489 case $build_os in
6490 mingw*)
6491 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6492 ;;
6493 esac
6494
6495 # Try without a prefix underscore, then with it.
6496 for ac_symprfx in "" "_"; do
6497
6498 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6499 symxfrm="\\1 $ac_symprfx\\2 \\2"
6500
6501 # Write the raw and C identifiers.
6502 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6503 # Fake it for dumpbin and say T for any non-static function
6504 # and D for any global variable.
6505 # Also find C++ and __fastcall symbols from MSVC++,
6506 # which start with @ or ?.
6507 lt_cv_sys_global_symbol_pipe="$AWK '"\
6508 " {last_section=section; section=\$ 3};"\
6509 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6510 " \$ 0!~/External *\|/{next};"\
6511 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6512 " {if(hide[section]) next};"\
6513 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
6514 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
6515 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
6516 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
6517 " ' prfx=^$ac_symprfx"
6518 else
6519 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6520 fi
6521
6522 # Check to see that the pipe works correctly.
6523 pipe_works=no
6524
6525 rm -f conftest*
6526 cat > conftest.$ac_ext <<_LT_EOF
6527 #ifdef __cplusplus
6528 extern "C" {
6529 #endif
6530 char nm_test_var;
6531 void nm_test_func(void);
6532 void nm_test_func(void){}
6533 #ifdef __cplusplus
6534 }
6535 #endif
6536 int main(){nm_test_var='a';nm_test_func();return(0);}
6537 _LT_EOF
6538
6539 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6540 (eval $ac_compile) 2>&5
6541 ac_status=$?
6542 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6543 test $ac_status = 0; }; then
6544 # Now try to grab the symbols.
6545 nlist=conftest.nm
6546 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
6547 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
6548 ac_status=$?
6549 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6550 test $ac_status = 0; } && test -s "$nlist"; then
6551 # Try sorting and uniquifying the output.
6552 if sort "$nlist" | uniq > "$nlist"T; then
6553 mv -f "$nlist"T "$nlist"
6554 else
6555 rm -f "$nlist"T
6556 fi
6557
6558 # Make sure that we snagged all the symbols we need.
6559 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6560 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6561 cat <<_LT_EOF > conftest.$ac_ext
6562 #ifdef __cplusplus
6563 extern "C" {
6564 #endif
6565
6566 _LT_EOF
6567 # Now generate the symbol file.
6568 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6569
6570 cat <<_LT_EOF >> conftest.$ac_ext
6571
6572 /* The mapping between symbol names and symbols. */
6573 const struct {
6574 const char *name;
6575 void *address;
6576 }
6577 lt__PROGRAM__LTX_preloaded_symbols[] =
6578 {
6579 { "@PROGRAM@", (void *) 0 },
6580 _LT_EOF
6581 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6582 cat <<\_LT_EOF >> conftest.$ac_ext
6583 {0, (void *) 0}
6584 };
6585
6586 /* This works around a problem in FreeBSD linker */
6587 #ifdef FREEBSD_WORKAROUND
6588 static const void *lt_preloaded_setup() {
6589 return lt__PROGRAM__LTX_preloaded_symbols;
6590 }
6591 #endif
6592
6593 #ifdef __cplusplus
6594 }
6595 #endif
6596 _LT_EOF
6597 # Now try linking the two files.
6598 mv conftest.$ac_objext conftstm.$ac_objext
6599 lt_save_LIBS="$LIBS"
6600 lt_save_CFLAGS="$CFLAGS"
6601 LIBS="conftstm.$ac_objext"
6602 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6603 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6604 (eval $ac_link) 2>&5
6605 ac_status=$?
6606 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6607 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
6608 pipe_works=yes
6609 fi
6610 LIBS="$lt_save_LIBS"
6611 CFLAGS="$lt_save_CFLAGS"
6612 else
6613 echo "cannot find nm_test_func in $nlist" >&5
6614 fi
6615 else
6616 echo "cannot find nm_test_var in $nlist" >&5
6617 fi
6618 else
6619 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6620 fi
6621 else
6622 echo "$progname: failed program was:" >&5
6623 cat conftest.$ac_ext >&5
6624 fi
6625 rm -rf conftest* conftst*
6626
6627 # Do not use the global_symbol_pipe unless it works.
6628 if test "$pipe_works" = yes; then
6629 break
6630 else
6631 lt_cv_sys_global_symbol_pipe=
6632 fi
6633 done
6634
6635 fi
6636
6637 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6638 lt_cv_sys_global_symbol_to_cdecl=
6639 fi
6640 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6642 $as_echo "failed" >&6; }
6643 else
6644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6645 $as_echo "ok" >&6; }
6646 fi
6647
6648
6649
6650
6651
6652
6653
6654
6655
6656
6657
6658
6659
6660
6661
6662
6663
6664
6665
6666
6667
6668
6669 # Check whether --enable-libtool-lock was given.
6670 if test "${enable_libtool_lock+set}" = set; then :
6671 enableval=$enable_libtool_lock;
6672 fi
6673
6674 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6675
6676 # Some flags need to be propagated to the compiler or linker for good
6677 # libtool support.
6678 case $host in
6679 ia64-*-hpux*)
6680 # Find out which ABI we are using.
6681 echo 'int i;' > conftest.$ac_ext
6682 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6683 (eval $ac_compile) 2>&5
6684 ac_status=$?
6685 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6686 test $ac_status = 0; }; then
6687 case `/usr/bin/file conftest.$ac_objext` in
6688 *ELF-32*)
6689 HPUX_IA64_MODE="32"
6690 ;;
6691 *ELF-64*)
6692 HPUX_IA64_MODE="64"
6693 ;;
6694 esac
6695 fi
6696 rm -rf conftest*
6697 ;;
6698 *-*-irix6*)
6699 # Find out which ABI we are using.
6700 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6701 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6702 (eval $ac_compile) 2>&5
6703 ac_status=$?
6704 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6705 test $ac_status = 0; }; then
6706 if test "$lt_cv_prog_gnu_ld" = yes; then
6707 case `/usr/bin/file conftest.$ac_objext` in
6708 *32-bit*)
6709 LD="${LD-ld} -melf32bsmip"
6710 ;;
6711 *N32*)
6712 LD="${LD-ld} -melf32bmipn32"
6713 ;;
6714 *64-bit*)
6715 LD="${LD-ld} -melf64bmip"
6716 ;;
6717 esac
6718 else
6719 case `/usr/bin/file conftest.$ac_objext` in
6720 *32-bit*)
6721 LD="${LD-ld} -32"
6722 ;;
6723 *N32*)
6724 LD="${LD-ld} -n32"
6725 ;;
6726 *64-bit*)
6727 LD="${LD-ld} -64"
6728 ;;
6729 esac
6730 fi
6731 fi
6732 rm -rf conftest*
6733 ;;
6734
6735 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
6736 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6737 # Find out which ABI we are using.
6738 echo 'int i;' > conftest.$ac_ext
6739 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6740 (eval $ac_compile) 2>&5
6741 ac_status=$?
6742 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6743 test $ac_status = 0; }; then
6744 case `/usr/bin/file conftest.o` in
6745 *32-bit*)
6746 case $host in
6747 x86_64-*kfreebsd*-gnu)
6748 LD="${LD-ld} -m elf_i386_fbsd"
6749 ;;
6750 x86_64-*linux*)
6751 case `/usr/bin/file conftest.o` in
6752 *x86-64*)
6753 LD="${LD-ld} -m elf32_x86_64"
6754 ;;
6755 *)
6756 LD="${LD-ld} -m elf_i386"
6757 ;;
6758 esac
6759 ;;
6760 powerpc64le-*linux*)
6761 LD="${LD-ld} -m elf32lppclinux"
6762 ;;
6763 powerpc64-*linux*)
6764 LD="${LD-ld} -m elf32ppclinux"
6765 ;;
6766 s390x-*linux*)
6767 LD="${LD-ld} -m elf_s390"
6768 ;;
6769 sparc64-*linux*)
6770 LD="${LD-ld} -m elf32_sparc"
6771 ;;
6772 esac
6773 ;;
6774 *64-bit*)
6775 case $host in
6776 x86_64-*kfreebsd*-gnu)
6777 LD="${LD-ld} -m elf_x86_64_fbsd"
6778 ;;
6779 x86_64-*linux*)
6780 LD="${LD-ld} -m elf_x86_64"
6781 ;;
6782 powerpcle-*linux*)
6783 LD="${LD-ld} -m elf64lppc"
6784 ;;
6785 powerpc-*linux*)
6786 LD="${LD-ld} -m elf64ppc"
6787 ;;
6788 s390*-*linux*|s390*-*tpf*)
6789 LD="${LD-ld} -m elf64_s390"
6790 ;;
6791 sparc*-*linux*)
6792 LD="${LD-ld} -m elf64_sparc"
6793 ;;
6794 esac
6795 ;;
6796 esac
6797 fi
6798 rm -rf conftest*
6799 ;;
6800
6801 *-*-sco3.2v5*)
6802 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6803 SAVE_CFLAGS="$CFLAGS"
6804 CFLAGS="$CFLAGS -belf"
6805 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
6806 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
6807 if test "${lt_cv_cc_needs_belf+set}" = set; then :
6808 $as_echo_n "(cached) " >&6
6809 else
6810 ac_ext=c
6811 ac_cpp='$CPP $CPPFLAGS'
6812 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6813 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6814 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6815
6816 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6817 /* end confdefs.h. */
6818
6819 int
6820 main ()
6821 {
6822
6823 ;
6824 return 0;
6825 }
6826 _ACEOF
6827 if ac_fn_c_try_link "$LINENO"; then :
6828 lt_cv_cc_needs_belf=yes
6829 else
6830 lt_cv_cc_needs_belf=no
6831 fi
6832 rm -f core conftest.err conftest.$ac_objext \
6833 conftest$ac_exeext conftest.$ac_ext
6834 ac_ext=c
6835 ac_cpp='$CPP $CPPFLAGS'
6836 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6837 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6838 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6839
6840 fi
6841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
6842 $as_echo "$lt_cv_cc_needs_belf" >&6; }
6843 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6844 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6845 CFLAGS="$SAVE_CFLAGS"
6846 fi
6847 ;;
6848 sparc*-*solaris*)
6849 # Find out which ABI we are using.
6850 echo 'int i;' > conftest.$ac_ext
6851 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6852 (eval $ac_compile) 2>&5
6853 ac_status=$?
6854 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6855 test $ac_status = 0; }; then
6856 case `/usr/bin/file conftest.o` in
6857 *64-bit*)
6858 case $lt_cv_prog_gnu_ld in
6859 yes*) LD="${LD-ld} -m elf64_sparc" ;;
6860 *)
6861 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6862 LD="${LD-ld} -64"
6863 fi
6864 ;;
6865 esac
6866 ;;
6867 esac
6868 fi
6869 rm -rf conftest*
6870 ;;
6871 esac
6872
6873 need_locks="$enable_libtool_lock"
6874
6875
6876 case $host_os in
6877 rhapsody* | darwin*)
6878 if test -n "$ac_tool_prefix"; then
6879 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
6880 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
6881 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6882 $as_echo_n "checking for $ac_word... " >&6; }
6883 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
6884 $as_echo_n "(cached) " >&6
6885 else
6886 if test -n "$DSYMUTIL"; then
6887 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
6888 else
6889 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6890 for as_dir in $PATH
6891 do
6892 IFS=$as_save_IFS
6893 test -z "$as_dir" && as_dir=.
6894 for ac_exec_ext in '' $ac_executable_extensions; do
6895 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6896 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
6897 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6898 break 2
6899 fi
6900 done
6901 done
6902 IFS=$as_save_IFS
6903
6904 fi
6905 fi
6906 DSYMUTIL=$ac_cv_prog_DSYMUTIL
6907 if test -n "$DSYMUTIL"; then
6908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
6909 $as_echo "$DSYMUTIL" >&6; }
6910 else
6911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6912 $as_echo "no" >&6; }
6913 fi
6914
6915
6916 fi
6917 if test -z "$ac_cv_prog_DSYMUTIL"; then
6918 ac_ct_DSYMUTIL=$DSYMUTIL
6919 # Extract the first word of "dsymutil", so it can be a program name with args.
6920 set dummy dsymutil; ac_word=$2
6921 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6922 $as_echo_n "checking for $ac_word... " >&6; }
6923 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
6924 $as_echo_n "(cached) " >&6
6925 else
6926 if test -n "$ac_ct_DSYMUTIL"; then
6927 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
6928 else
6929 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6930 for as_dir in $PATH
6931 do
6932 IFS=$as_save_IFS
6933 test -z "$as_dir" && as_dir=.
6934 for ac_exec_ext in '' $ac_executable_extensions; do
6935 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6936 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
6937 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6938 break 2
6939 fi
6940 done
6941 done
6942 IFS=$as_save_IFS
6943
6944 fi
6945 fi
6946 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
6947 if test -n "$ac_ct_DSYMUTIL"; then
6948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
6949 $as_echo "$ac_ct_DSYMUTIL" >&6; }
6950 else
6951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6952 $as_echo "no" >&6; }
6953 fi
6954
6955 if test "x$ac_ct_DSYMUTIL" = x; then
6956 DSYMUTIL=":"
6957 else
6958 case $cross_compiling:$ac_tool_warned in
6959 yes:)
6960 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6961 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6962 ac_tool_warned=yes ;;
6963 esac
6964 DSYMUTIL=$ac_ct_DSYMUTIL
6965 fi
6966 else
6967 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
6968 fi
6969
6970 if test -n "$ac_tool_prefix"; then
6971 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
6972 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
6973 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6974 $as_echo_n "checking for $ac_word... " >&6; }
6975 if test "${ac_cv_prog_NMEDIT+set}" = set; then :
6976 $as_echo_n "(cached) " >&6
6977 else
6978 if test -n "$NMEDIT"; then
6979 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
6980 else
6981 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6982 for as_dir in $PATH
6983 do
6984 IFS=$as_save_IFS
6985 test -z "$as_dir" && as_dir=.
6986 for ac_exec_ext in '' $ac_executable_extensions; do
6987 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6988 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
6989 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6990 break 2
6991 fi
6992 done
6993 done
6994 IFS=$as_save_IFS
6995
6996 fi
6997 fi
6998 NMEDIT=$ac_cv_prog_NMEDIT
6999 if test -n "$NMEDIT"; then
7000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
7001 $as_echo "$NMEDIT" >&6; }
7002 else
7003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7004 $as_echo "no" >&6; }
7005 fi
7006
7007
7008 fi
7009 if test -z "$ac_cv_prog_NMEDIT"; then
7010 ac_ct_NMEDIT=$NMEDIT
7011 # Extract the first word of "nmedit", so it can be a program name with args.
7012 set dummy nmedit; ac_word=$2
7013 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7014 $as_echo_n "checking for $ac_word... " >&6; }
7015 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
7016 $as_echo_n "(cached) " >&6
7017 else
7018 if test -n "$ac_ct_NMEDIT"; then
7019 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7020 else
7021 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7022 for as_dir in $PATH
7023 do
7024 IFS=$as_save_IFS
7025 test -z "$as_dir" && as_dir=.
7026 for ac_exec_ext in '' $ac_executable_extensions; do
7027 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7028 ac_cv_prog_ac_ct_NMEDIT="nmedit"
7029 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7030 break 2
7031 fi
7032 done
7033 done
7034 IFS=$as_save_IFS
7035
7036 fi
7037 fi
7038 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7039 if test -n "$ac_ct_NMEDIT"; then
7040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7041 $as_echo "$ac_ct_NMEDIT" >&6; }
7042 else
7043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7044 $as_echo "no" >&6; }
7045 fi
7046
7047 if test "x$ac_ct_NMEDIT" = x; then
7048 NMEDIT=":"
7049 else
7050 case $cross_compiling:$ac_tool_warned in
7051 yes:)
7052 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7053 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7054 ac_tool_warned=yes ;;
7055 esac
7056 NMEDIT=$ac_ct_NMEDIT
7057 fi
7058 else
7059 NMEDIT="$ac_cv_prog_NMEDIT"
7060 fi
7061
7062 if test -n "$ac_tool_prefix"; then
7063 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7064 set dummy ${ac_tool_prefix}lipo; ac_word=$2
7065 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7066 $as_echo_n "checking for $ac_word... " >&6; }
7067 if test "${ac_cv_prog_LIPO+set}" = set; then :
7068 $as_echo_n "(cached) " >&6
7069 else
7070 if test -n "$LIPO"; then
7071 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7072 else
7073 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7074 for as_dir in $PATH
7075 do
7076 IFS=$as_save_IFS
7077 test -z "$as_dir" && as_dir=.
7078 for ac_exec_ext in '' $ac_executable_extensions; do
7079 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7080 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7081 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7082 break 2
7083 fi
7084 done
7085 done
7086 IFS=$as_save_IFS
7087
7088 fi
7089 fi
7090 LIPO=$ac_cv_prog_LIPO
7091 if test -n "$LIPO"; then
7092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7093 $as_echo "$LIPO" >&6; }
7094 else
7095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7096 $as_echo "no" >&6; }
7097 fi
7098
7099
7100 fi
7101 if test -z "$ac_cv_prog_LIPO"; then
7102 ac_ct_LIPO=$LIPO
7103 # Extract the first word of "lipo", so it can be a program name with args.
7104 set dummy lipo; ac_word=$2
7105 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7106 $as_echo_n "checking for $ac_word... " >&6; }
7107 if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
7108 $as_echo_n "(cached) " >&6
7109 else
7110 if test -n "$ac_ct_LIPO"; then
7111 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7112 else
7113 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7114 for as_dir in $PATH
7115 do
7116 IFS=$as_save_IFS
7117 test -z "$as_dir" && as_dir=.
7118 for ac_exec_ext in '' $ac_executable_extensions; do
7119 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7120 ac_cv_prog_ac_ct_LIPO="lipo"
7121 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7122 break 2
7123 fi
7124 done
7125 done
7126 IFS=$as_save_IFS
7127
7128 fi
7129 fi
7130 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7131 if test -n "$ac_ct_LIPO"; then
7132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7133 $as_echo "$ac_ct_LIPO" >&6; }
7134 else
7135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7136 $as_echo "no" >&6; }
7137 fi
7138
7139 if test "x$ac_ct_LIPO" = x; then
7140 LIPO=":"
7141 else
7142 case $cross_compiling:$ac_tool_warned in
7143 yes:)
7144 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7145 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7146 ac_tool_warned=yes ;;
7147 esac
7148 LIPO=$ac_ct_LIPO
7149 fi
7150 else
7151 LIPO="$ac_cv_prog_LIPO"
7152 fi
7153
7154 if test -n "$ac_tool_prefix"; then
7155 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7156 set dummy ${ac_tool_prefix}otool; ac_word=$2
7157 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7158 $as_echo_n "checking for $ac_word... " >&6; }
7159 if test "${ac_cv_prog_OTOOL+set}" = set; then :
7160 $as_echo_n "(cached) " >&6
7161 else
7162 if test -n "$OTOOL"; then
7163 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7164 else
7165 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7166 for as_dir in $PATH
7167 do
7168 IFS=$as_save_IFS
7169 test -z "$as_dir" && as_dir=.
7170 for ac_exec_ext in '' $ac_executable_extensions; do
7171 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7172 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7173 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7174 break 2
7175 fi
7176 done
7177 done
7178 IFS=$as_save_IFS
7179
7180 fi
7181 fi
7182 OTOOL=$ac_cv_prog_OTOOL
7183 if test -n "$OTOOL"; then
7184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7185 $as_echo "$OTOOL" >&6; }
7186 else
7187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7188 $as_echo "no" >&6; }
7189 fi
7190
7191
7192 fi
7193 if test -z "$ac_cv_prog_OTOOL"; then
7194 ac_ct_OTOOL=$OTOOL
7195 # Extract the first word of "otool", so it can be a program name with args.
7196 set dummy otool; ac_word=$2
7197 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7198 $as_echo_n "checking for $ac_word... " >&6; }
7199 if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
7200 $as_echo_n "(cached) " >&6
7201 else
7202 if test -n "$ac_ct_OTOOL"; then
7203 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7204 else
7205 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7206 for as_dir in $PATH
7207 do
7208 IFS=$as_save_IFS
7209 test -z "$as_dir" && as_dir=.
7210 for ac_exec_ext in '' $ac_executable_extensions; do
7211 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7212 ac_cv_prog_ac_ct_OTOOL="otool"
7213 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7214 break 2
7215 fi
7216 done
7217 done
7218 IFS=$as_save_IFS
7219
7220 fi
7221 fi
7222 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7223 if test -n "$ac_ct_OTOOL"; then
7224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7225 $as_echo "$ac_ct_OTOOL" >&6; }
7226 else
7227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7228 $as_echo "no" >&6; }
7229 fi
7230
7231 if test "x$ac_ct_OTOOL" = x; then
7232 OTOOL=":"
7233 else
7234 case $cross_compiling:$ac_tool_warned in
7235 yes:)
7236 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7237 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7238 ac_tool_warned=yes ;;
7239 esac
7240 OTOOL=$ac_ct_OTOOL
7241 fi
7242 else
7243 OTOOL="$ac_cv_prog_OTOOL"
7244 fi
7245
7246 if test -n "$ac_tool_prefix"; then
7247 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7248 set dummy ${ac_tool_prefix}otool64; ac_word=$2
7249 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7250 $as_echo_n "checking for $ac_word... " >&6; }
7251 if test "${ac_cv_prog_OTOOL64+set}" = set; then :
7252 $as_echo_n "(cached) " >&6
7253 else
7254 if test -n "$OTOOL64"; then
7255 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7256 else
7257 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7258 for as_dir in $PATH
7259 do
7260 IFS=$as_save_IFS
7261 test -z "$as_dir" && as_dir=.
7262 for ac_exec_ext in '' $ac_executable_extensions; do
7263 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7264 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7265 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7266 break 2
7267 fi
7268 done
7269 done
7270 IFS=$as_save_IFS
7271
7272 fi
7273 fi
7274 OTOOL64=$ac_cv_prog_OTOOL64
7275 if test -n "$OTOOL64"; then
7276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
7277 $as_echo "$OTOOL64" >&6; }
7278 else
7279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7280 $as_echo "no" >&6; }
7281 fi
7282
7283
7284 fi
7285 if test -z "$ac_cv_prog_OTOOL64"; then
7286 ac_ct_OTOOL64=$OTOOL64
7287 # Extract the first word of "otool64", so it can be a program name with args.
7288 set dummy otool64; ac_word=$2
7289 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7290 $as_echo_n "checking for $ac_word... " >&6; }
7291 if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
7292 $as_echo_n "(cached) " >&6
7293 else
7294 if test -n "$ac_ct_OTOOL64"; then
7295 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7296 else
7297 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7298 for as_dir in $PATH
7299 do
7300 IFS=$as_save_IFS
7301 test -z "$as_dir" && as_dir=.
7302 for ac_exec_ext in '' $ac_executable_extensions; do
7303 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7304 ac_cv_prog_ac_ct_OTOOL64="otool64"
7305 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7306 break 2
7307 fi
7308 done
7309 done
7310 IFS=$as_save_IFS
7311
7312 fi
7313 fi
7314 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7315 if test -n "$ac_ct_OTOOL64"; then
7316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
7317 $as_echo "$ac_ct_OTOOL64" >&6; }
7318 else
7319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7320 $as_echo "no" >&6; }
7321 fi
7322
7323 if test "x$ac_ct_OTOOL64" = x; then
7324 OTOOL64=":"
7325 else
7326 case $cross_compiling:$ac_tool_warned in
7327 yes:)
7328 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7329 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7330 ac_tool_warned=yes ;;
7331 esac
7332 OTOOL64=$ac_ct_OTOOL64
7333 fi
7334 else
7335 OTOOL64="$ac_cv_prog_OTOOL64"
7336 fi
7337
7338
7339
7340
7341
7342
7343
7344
7345
7346
7347
7348
7349
7350
7351
7352
7353
7354
7355
7356
7357
7358
7359
7360
7361
7362
7363
7364 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7365 $as_echo_n "checking for -single_module linker flag... " >&6; }
7366 if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
7367 $as_echo_n "(cached) " >&6
7368 else
7369 lt_cv_apple_cc_single_mod=no
7370 if test -z "${LT_MULTI_MODULE}"; then
7371 # By default we will add the -single_module flag. You can override
7372 # by either setting the environment variable LT_MULTI_MODULE
7373 # non-empty at configure time, or by adding -multi_module to the
7374 # link flags.
7375 rm -rf libconftest.dylib*
7376 echo "int foo(void){return 1;}" > conftest.c
7377 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7378 -dynamiclib -Wl,-single_module conftest.c" >&5
7379 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7380 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7381 _lt_result=$?
7382 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
7383 lt_cv_apple_cc_single_mod=yes
7384 else
7385 cat conftest.err >&5
7386 fi
7387 rm -rf libconftest.dylib*
7388 rm -f conftest.*
7389 fi
7390 fi
7391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7392 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7393 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7394 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7395 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
7396 $as_echo_n "(cached) " >&6
7397 else
7398 lt_cv_ld_exported_symbols_list=no
7399 save_LDFLAGS=$LDFLAGS
7400 echo "_main" > conftest.sym
7401 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7402 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7403 /* end confdefs.h. */
7404
7405 int
7406 main ()
7407 {
7408
7409 ;
7410 return 0;
7411 }
7412 _ACEOF
7413 if ac_fn_c_try_link "$LINENO"; then :
7414 lt_cv_ld_exported_symbols_list=yes
7415 else
7416 lt_cv_ld_exported_symbols_list=no
7417 fi
7418 rm -f core conftest.err conftest.$ac_objext \
7419 conftest$ac_exeext conftest.$ac_ext
7420 LDFLAGS="$save_LDFLAGS"
7421
7422 fi
7423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7424 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7425 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
7426 $as_echo_n "checking for -force_load linker flag... " >&6; }
7427 if test "${lt_cv_ld_force_load+set}" = set; then :
7428 $as_echo_n "(cached) " >&6
7429 else
7430 lt_cv_ld_force_load=no
7431 cat > conftest.c << _LT_EOF
7432 int forced_loaded() { return 2;}
7433 _LT_EOF
7434 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
7435 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
7436 echo "$AR cru libconftest.a conftest.o" >&5
7437 $AR cru libconftest.a conftest.o 2>&5
7438 cat > conftest.c << _LT_EOF
7439 int main() { return 0;}
7440 _LT_EOF
7441 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
7442 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
7443 _lt_result=$?
7444 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
7445 lt_cv_ld_force_load=yes
7446 else
7447 cat conftest.err >&5
7448 fi
7449 rm -f conftest.err libconftest.a conftest conftest.c
7450 rm -rf conftest.dSYM
7451
7452 fi
7453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
7454 $as_echo "$lt_cv_ld_force_load" >&6; }
7455 case $host_os in
7456 rhapsody* | darwin1.[012])
7457 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7458 darwin1.*)
7459 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7460 darwin*) # darwin 5.x on
7461 # if running on 10.5 or later, the deployment target defaults
7462 # to the OS version, if on x86, and 10.4, the deployment
7463 # target defaults to 10.4. Don't you love it?
7464 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7465 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7466 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7467 10.[012][,.]*)
7468 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7469 10.*)
7470 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7471 esac
7472 ;;
7473 esac
7474 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7475 _lt_dar_single_mod='$single_module'
7476 fi
7477 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7478 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7479 else
7480 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
7481 fi
7482 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
7483 _lt_dsymutil='~$DSYMUTIL $lib || :'
7484 else
7485 _lt_dsymutil=
7486 fi
7487 ;;
7488 esac
7489
7490 for ac_header in dlfcn.h
7491 do :
7492 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7493 "
7494 if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
7495 cat >>confdefs.h <<_ACEOF
7496 #define HAVE_DLFCN_H 1
7497 _ACEOF
7498
7499 fi
7500
7501 done
7502
7503
7504
7505
7506
7507 # Set options
7508
7509
7510
7511 enable_dlopen=no
7512
7513
7514 enable_win32_dll=no
7515
7516
7517 # Check whether --enable-shared was given.
7518 if test "${enable_shared+set}" = set; then :
7519 enableval=$enable_shared; p=${PACKAGE-default}
7520 case $enableval in
7521 yes) enable_shared=yes ;;
7522 no) enable_shared=no ;;
7523 *)
7524 enable_shared=no
7525 # Look at the argument we got. We use all the common list separators.
7526 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7527 for pkg in $enableval; do
7528 IFS="$lt_save_ifs"
7529 if test "X$pkg" = "X$p"; then
7530 enable_shared=yes
7531 fi
7532 done
7533 IFS="$lt_save_ifs"
7534 ;;
7535 esac
7536 else
7537 enable_shared=yes
7538 fi
7539
7540
7541
7542
7543
7544
7545
7546
7547
7548 # Check whether --enable-static was given.
7549 if test "${enable_static+set}" = set; then :
7550 enableval=$enable_static; p=${PACKAGE-default}
7551 case $enableval in
7552 yes) enable_static=yes ;;
7553 no) enable_static=no ;;
7554 *)
7555 enable_static=no
7556 # Look at the argument we got. We use all the common list separators.
7557 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7558 for pkg in $enableval; do
7559 IFS="$lt_save_ifs"
7560 if test "X$pkg" = "X$p"; then
7561 enable_static=yes
7562 fi
7563 done
7564 IFS="$lt_save_ifs"
7565 ;;
7566 esac
7567 else
7568 enable_static=yes
7569 fi
7570
7571
7572
7573
7574
7575
7576
7577
7578
7579
7580 # Check whether --with-pic was given.
7581 if test "${with_pic+set}" = set; then :
7582 withval=$with_pic; pic_mode="$withval"
7583 else
7584 pic_mode=default
7585 fi
7586
7587
7588 test -z "$pic_mode" && pic_mode=default
7589
7590
7591
7592
7593
7594
7595
7596 # Check whether --enable-fast-install was given.
7597 if test "${enable_fast_install+set}" = set; then :
7598 enableval=$enable_fast_install; p=${PACKAGE-default}
7599 case $enableval in
7600 yes) enable_fast_install=yes ;;
7601 no) enable_fast_install=no ;;
7602 *)
7603 enable_fast_install=no
7604 # Look at the argument we got. We use all the common list separators.
7605 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7606 for pkg in $enableval; do
7607 IFS="$lt_save_ifs"
7608 if test "X$pkg" = "X$p"; then
7609 enable_fast_install=yes
7610 fi
7611 done
7612 IFS="$lt_save_ifs"
7613 ;;
7614 esac
7615 else
7616 enable_fast_install=yes
7617 fi
7618
7619
7620
7621
7622
7623
7624
7625
7626
7627
7628
7629 # This can be used to rebuild libtool when needed
7630 LIBTOOL_DEPS="$ltmain"
7631
7632 # Always use our own libtool.
7633 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
7634
7635
7636
7637
7638
7639
7640
7641
7642
7643
7644
7645
7646
7647
7648
7649
7650
7651
7652
7653
7654
7655
7656
7657
7658
7659
7660 test -z "$LN_S" && LN_S="ln -s"
7661
7662
7663
7664
7665
7666
7667
7668
7669
7670
7671
7672
7673
7674
7675 if test -n "${ZSH_VERSION+set}" ; then
7676 setopt NO_GLOB_SUBST
7677 fi
7678
7679 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
7680 $as_echo_n "checking for objdir... " >&6; }
7681 if test "${lt_cv_objdir+set}" = set; then :
7682 $as_echo_n "(cached) " >&6
7683 else
7684 rm -f .libs 2>/dev/null
7685 mkdir .libs 2>/dev/null
7686 if test -d .libs; then
7687 lt_cv_objdir=.libs
7688 else
7689 # MS-DOS does not allow filenames that begin with a dot.
7690 lt_cv_objdir=_libs
7691 fi
7692 rmdir .libs 2>/dev/null
7693 fi
7694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
7695 $as_echo "$lt_cv_objdir" >&6; }
7696 objdir=$lt_cv_objdir
7697
7698
7699
7700
7701
7702 cat >>confdefs.h <<_ACEOF
7703 #define LT_OBJDIR "$lt_cv_objdir/"
7704 _ACEOF
7705
7706
7707
7708
7709 case $host_os in
7710 aix3*)
7711 # AIX sometimes has problems with the GCC collect2 program. For some
7712 # reason, if we set the COLLECT_NAMES environment variable, the problems
7713 # vanish in a puff of smoke.
7714 if test "X${COLLECT_NAMES+set}" != Xset; then
7715 COLLECT_NAMES=
7716 export COLLECT_NAMES
7717 fi
7718 ;;
7719 esac
7720
7721 # Global variables:
7722 ofile=libtool
7723 can_build_shared=yes
7724
7725 # All known linkers require a `.a' archive for static linking (except MSVC,
7726 # which needs '.lib').
7727 libext=a
7728
7729 with_gnu_ld="$lt_cv_prog_gnu_ld"
7730
7731 old_CC="$CC"
7732 old_CFLAGS="$CFLAGS"
7733
7734 # Set sane defaults for various variables
7735 test -z "$CC" && CC=cc
7736 test -z "$LTCC" && LTCC=$CC
7737 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7738 test -z "$LD" && LD=ld
7739 test -z "$ac_objext" && ac_objext=o
7740
7741 for cc_temp in $compiler""; do
7742 case $cc_temp in
7743 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7744 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7745 \-*) ;;
7746 *) break;;
7747 esac
7748 done
7749 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
7750
7751
7752 # Only perform the check for file, if the check method requires it
7753 test -z "$MAGIC_CMD" && MAGIC_CMD=file
7754 case $deplibs_check_method in
7755 file_magic*)
7756 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7757 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
7758 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
7759 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
7760 $as_echo_n "(cached) " >&6
7761 else
7762 case $MAGIC_CMD in
7763 [\\/*] | ?:[\\/]*)
7764 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7765 ;;
7766 *)
7767 lt_save_MAGIC_CMD="$MAGIC_CMD"
7768 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7769 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7770 for ac_dir in $ac_dummy; do
7771 IFS="$lt_save_ifs"
7772 test -z "$ac_dir" && ac_dir=.
7773 if test -f $ac_dir/${ac_tool_prefix}file; then
7774 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7775 if test -n "$file_magic_test_file"; then
7776 case $deplibs_check_method in
7777 "file_magic "*)
7778 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7779 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7780 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7781 $EGREP "$file_magic_regex" > /dev/null; then
7782 :
7783 else
7784 cat <<_LT_EOF 1>&2
7785
7786 *** Warning: the command libtool uses to detect shared libraries,
7787 *** $file_magic_cmd, produces output that libtool cannot recognize.
7788 *** The result is that libtool may fail to recognize shared libraries
7789 *** as such. This will affect the creation of libtool libraries that
7790 *** depend on shared libraries, but programs linked with such libtool
7791 *** libraries will work regardless of this problem. Nevertheless, you
7792 *** may want to report the problem to your system manager and/or to
7793 *** bug-libtool@gnu.org
7794
7795 _LT_EOF
7796 fi ;;
7797 esac
7798 fi
7799 break
7800 fi
7801 done
7802 IFS="$lt_save_ifs"
7803 MAGIC_CMD="$lt_save_MAGIC_CMD"
7804 ;;
7805 esac
7806 fi
7807
7808 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7809 if test -n "$MAGIC_CMD"; then
7810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7811 $as_echo "$MAGIC_CMD" >&6; }
7812 else
7813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7814 $as_echo "no" >&6; }
7815 fi
7816
7817
7818
7819
7820
7821 if test -z "$lt_cv_path_MAGIC_CMD"; then
7822 if test -n "$ac_tool_prefix"; then
7823 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
7824 $as_echo_n "checking for file... " >&6; }
7825 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
7826 $as_echo_n "(cached) " >&6
7827 else
7828 case $MAGIC_CMD in
7829 [\\/*] | ?:[\\/]*)
7830 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7831 ;;
7832 *)
7833 lt_save_MAGIC_CMD="$MAGIC_CMD"
7834 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7835 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7836 for ac_dir in $ac_dummy; do
7837 IFS="$lt_save_ifs"
7838 test -z "$ac_dir" && ac_dir=.
7839 if test -f $ac_dir/file; then
7840 lt_cv_path_MAGIC_CMD="$ac_dir/file"
7841 if test -n "$file_magic_test_file"; then
7842 case $deplibs_check_method in
7843 "file_magic "*)
7844 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7845 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7846 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7847 $EGREP "$file_magic_regex" > /dev/null; then
7848 :
7849 else
7850 cat <<_LT_EOF 1>&2
7851
7852 *** Warning: the command libtool uses to detect shared libraries,
7853 *** $file_magic_cmd, produces output that libtool cannot recognize.
7854 *** The result is that libtool may fail to recognize shared libraries
7855 *** as such. This will affect the creation of libtool libraries that
7856 *** depend on shared libraries, but programs linked with such libtool
7857 *** libraries will work regardless of this problem. Nevertheless, you
7858 *** may want to report the problem to your system manager and/or to
7859 *** bug-libtool@gnu.org
7860
7861 _LT_EOF
7862 fi ;;
7863 esac
7864 fi
7865 break
7866 fi
7867 done
7868 IFS="$lt_save_ifs"
7869 MAGIC_CMD="$lt_save_MAGIC_CMD"
7870 ;;
7871 esac
7872 fi
7873
7874 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7875 if test -n "$MAGIC_CMD"; then
7876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7877 $as_echo "$MAGIC_CMD" >&6; }
7878 else
7879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7880 $as_echo "no" >&6; }
7881 fi
7882
7883
7884 else
7885 MAGIC_CMD=:
7886 fi
7887 fi
7888
7889 fi
7890 ;;
7891 esac
7892
7893 # Use C for the default configuration in the libtool script
7894
7895 lt_save_CC="$CC"
7896 ac_ext=c
7897 ac_cpp='$CPP $CPPFLAGS'
7898 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7899 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7900 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7901
7902
7903 # Source file extension for C test sources.
7904 ac_ext=c
7905
7906 # Object file extension for compiled C test sources.
7907 objext=o
7908 objext=$objext
7909
7910 # Code to be used in simple compile tests
7911 lt_simple_compile_test_code="int some_variable = 0;"
7912
7913 # Code to be used in simple link tests
7914 lt_simple_link_test_code='int main(){return(0);}'
7915
7916
7917
7918
7919
7920
7921
7922 # If no C compiler was specified, use CC.
7923 LTCC=${LTCC-"$CC"}
7924
7925 # If no C compiler flags were specified, use CFLAGS.
7926 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7927
7928 # Allow CC to be a program name with arguments.
7929 compiler=$CC
7930
7931 # Save the default compiler, since it gets overwritten when the other
7932 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
7933 compiler_DEFAULT=$CC
7934
7935 # save warnings/boilerplate of simple test code
7936 ac_outfile=conftest.$ac_objext
7937 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
7938 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7939 _lt_compiler_boilerplate=`cat conftest.err`
7940 $RM conftest*
7941
7942 ac_outfile=conftest.$ac_objext
7943 echo "$lt_simple_link_test_code" >conftest.$ac_ext
7944 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7945 _lt_linker_boilerplate=`cat conftest.err`
7946 $RM -r conftest*
7947
7948
7949 ## CAVEAT EMPTOR:
7950 ## There is no encapsulation within the following macros, do not change
7951 ## the running order or otherwise move them around unless you know exactly
7952 ## what you are doing...
7953 if test -n "$compiler"; then
7954
7955 lt_prog_compiler_no_builtin_flag=
7956
7957 if test "$GCC" = yes; then
7958 case $cc_basename in
7959 nvcc*)
7960 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
7961 *)
7962 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
7963 esac
7964
7965 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7966 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
7967 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
7968 $as_echo_n "(cached) " >&6
7969 else
7970 lt_cv_prog_compiler_rtti_exceptions=no
7971 ac_outfile=conftest.$ac_objext
7972 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7973 lt_compiler_flag="-fno-rtti -fno-exceptions"
7974 # Insert the option either (1) after the last *FLAGS variable, or
7975 # (2) before a word containing "conftest.", or (3) at the end.
7976 # Note that $ac_compile itself does not contain backslashes and begins
7977 # with a dollar sign (not a hyphen), so the echo should work correctly.
7978 # The option is referenced via a variable to avoid confusing sed.
7979 lt_compile=`echo "$ac_compile" | $SED \
7980 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7981 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7982 -e 's:$: $lt_compiler_flag:'`
7983 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
7984 (eval "$lt_compile" 2>conftest.err)
7985 ac_status=$?
7986 cat conftest.err >&5
7987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7988 if (exit $ac_status) && test -s "$ac_outfile"; then
7989 # The compiler can only warn and ignore the option if not recognized
7990 # So say no if there are warnings other than the usual output.
7991 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
7992 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7993 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7994 lt_cv_prog_compiler_rtti_exceptions=yes
7995 fi
7996 fi
7997 $RM conftest*
7998
7999 fi
8000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8001 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8002
8003 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8004 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8005 else
8006 :
8007 fi
8008
8009 fi
8010
8011
8012
8013
8014
8015
8016 lt_prog_compiler_wl=
8017 lt_prog_compiler_pic=
8018 lt_prog_compiler_static=
8019
8020 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8021 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8022
8023 if test "$GCC" = yes; then
8024 lt_prog_compiler_wl='-Wl,'
8025 lt_prog_compiler_static='-static'
8026
8027 case $host_os in
8028 aix*)
8029 # All AIX code is PIC.
8030 if test "$host_cpu" = ia64; then
8031 # AIX 5 now supports IA64 processor
8032 lt_prog_compiler_static='-Bstatic'
8033 fi
8034 lt_prog_compiler_pic='-fPIC'
8035 ;;
8036
8037 amigaos*)
8038 case $host_cpu in
8039 powerpc)
8040 # see comment about AmigaOS4 .so support
8041 lt_prog_compiler_pic='-fPIC'
8042 ;;
8043 m68k)
8044 # FIXME: we need at least 68020 code to build shared libraries, but
8045 # adding the `-m68020' flag to GCC prevents building anything better,
8046 # like `-m68040'.
8047 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8048 ;;
8049 esac
8050 ;;
8051
8052 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8053 # PIC is the default for these OSes.
8054 ;;
8055
8056 mingw* | cygwin* | pw32* | os2* | cegcc*)
8057 # This hack is so that the source file can tell whether it is being
8058 # built for inclusion in a dll (and should export symbols for example).
8059 # Although the cygwin gcc ignores -fPIC, still need this for old-style
8060 # (--disable-auto-import) libraries
8061 lt_prog_compiler_pic='-DDLL_EXPORT'
8062 ;;
8063
8064 darwin* | rhapsody*)
8065 # PIC is the default on this platform
8066 # Common symbols not allowed in MH_DYLIB files
8067 lt_prog_compiler_pic='-fno-common'
8068 ;;
8069
8070 haiku*)
8071 # PIC is the default for Haiku.
8072 # The "-static" flag exists, but is broken.
8073 lt_prog_compiler_static=
8074 ;;
8075
8076 hpux*)
8077 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8078 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
8079 # sets the default TLS model and affects inlining.
8080 case $host_cpu in
8081 hppa*64*)
8082 # +Z the default
8083 ;;
8084 *)
8085 lt_prog_compiler_pic='-fPIC'
8086 ;;
8087 esac
8088 ;;
8089
8090 interix[3-9]*)
8091 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8092 # Instead, we relocate shared libraries at runtime.
8093 ;;
8094
8095 msdosdjgpp*)
8096 # Just because we use GCC doesn't mean we suddenly get shared libraries
8097 # on systems that don't support them.
8098 lt_prog_compiler_can_build_shared=no
8099 enable_shared=no
8100 ;;
8101
8102 *nto* | *qnx*)
8103 # QNX uses GNU C++, but need to define -shared option too, otherwise
8104 # it will coredump.
8105 lt_prog_compiler_pic='-fPIC -shared'
8106 ;;
8107
8108 sysv4*MP*)
8109 if test -d /usr/nec; then
8110 lt_prog_compiler_pic=-Kconform_pic
8111 fi
8112 ;;
8113
8114 *)
8115 lt_prog_compiler_pic='-fPIC'
8116 ;;
8117 esac
8118
8119 case $cc_basename in
8120 nvcc*) # Cuda Compiler Driver 2.2
8121 lt_prog_compiler_wl='-Xlinker '
8122 lt_prog_compiler_pic='-Xcompiler -fPIC'
8123 ;;
8124 esac
8125 else
8126 # PORTME Check for flag to pass linker flags through the system compiler.
8127 case $host_os in
8128 aix*)
8129 lt_prog_compiler_wl='-Wl,'
8130 if test "$host_cpu" = ia64; then
8131 # AIX 5 now supports IA64 processor
8132 lt_prog_compiler_static='-Bstatic'
8133 else
8134 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8135 fi
8136 ;;
8137
8138 mingw* | cygwin* | pw32* | os2* | cegcc*)
8139 # This hack is so that the source file can tell whether it is being
8140 # built for inclusion in a dll (and should export symbols for example).
8141 lt_prog_compiler_pic='-DDLL_EXPORT'
8142 ;;
8143
8144 hpux9* | hpux10* | hpux11*)
8145 lt_prog_compiler_wl='-Wl,'
8146 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8147 # not for PA HP-UX.
8148 case $host_cpu in
8149 hppa*64*|ia64*)
8150 # +Z the default
8151 ;;
8152 *)
8153 lt_prog_compiler_pic='+Z'
8154 ;;
8155 esac
8156 # Is there a better lt_prog_compiler_static that works with the bundled CC?
8157 lt_prog_compiler_static='${wl}-a ${wl}archive'
8158 ;;
8159
8160 irix5* | irix6* | nonstopux*)
8161 lt_prog_compiler_wl='-Wl,'
8162 # PIC (with -KPIC) is the default.
8163 lt_prog_compiler_static='-non_shared'
8164 ;;
8165
8166 linux* | k*bsd*-gnu | kopensolaris*-gnu)
8167 case $cc_basename in
8168 # old Intel for x86_64 which still supported -KPIC.
8169 ecc*)
8170 lt_prog_compiler_wl='-Wl,'
8171 lt_prog_compiler_pic='-KPIC'
8172 lt_prog_compiler_static='-static'
8173 ;;
8174 # icc used to be incompatible with GCC.
8175 # ICC 10 doesn't accept -KPIC any more.
8176 icc* | ifort*)
8177 lt_prog_compiler_wl='-Wl,'
8178 lt_prog_compiler_pic='-fPIC'
8179 lt_prog_compiler_static='-static'
8180 ;;
8181 # Lahey Fortran 8.1.
8182 lf95*)
8183 lt_prog_compiler_wl='-Wl,'
8184 lt_prog_compiler_pic='--shared'
8185 lt_prog_compiler_static='--static'
8186 ;;
8187 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
8188 # Portland Group compilers (*not* the Pentium gcc compiler,
8189 # which looks to be a dead project)
8190 lt_prog_compiler_wl='-Wl,'
8191 lt_prog_compiler_pic='-fpic'
8192 lt_prog_compiler_static='-Bstatic'
8193 ;;
8194 ccc*)
8195 lt_prog_compiler_wl='-Wl,'
8196 # All Alpha code is PIC.
8197 lt_prog_compiler_static='-non_shared'
8198 ;;
8199 xl* | bgxl* | bgf* | mpixl*)
8200 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
8201 lt_prog_compiler_wl='-Wl,'
8202 lt_prog_compiler_pic='-qpic'
8203 lt_prog_compiler_static='-qstaticlink'
8204 ;;
8205 *)
8206 case `$CC -V 2>&1 | sed 5q` in
8207 *Sun\ F* | *Sun*Fortran*)
8208 # Sun Fortran 8.3 passes all unrecognized flags to the linker
8209 lt_prog_compiler_pic='-KPIC'
8210 lt_prog_compiler_static='-Bstatic'
8211 lt_prog_compiler_wl=''
8212 ;;
8213 *Sun\ C*)
8214 # Sun C 5.9
8215 lt_prog_compiler_pic='-KPIC'
8216 lt_prog_compiler_static='-Bstatic'
8217 lt_prog_compiler_wl='-Wl,'
8218 ;;
8219 esac
8220 ;;
8221 esac
8222 ;;
8223
8224 newsos6)
8225 lt_prog_compiler_pic='-KPIC'
8226 lt_prog_compiler_static='-Bstatic'
8227 ;;
8228
8229 *nto* | *qnx*)
8230 # QNX uses GNU C++, but need to define -shared option too, otherwise
8231 # it will coredump.
8232 lt_prog_compiler_pic='-fPIC -shared'
8233 ;;
8234
8235 osf3* | osf4* | osf5*)
8236 lt_prog_compiler_wl='-Wl,'
8237 # All OSF/1 code is PIC.
8238 lt_prog_compiler_static='-non_shared'
8239 ;;
8240
8241 rdos*)
8242 lt_prog_compiler_static='-non_shared'
8243 ;;
8244
8245 solaris*)
8246 lt_prog_compiler_pic='-KPIC'
8247 lt_prog_compiler_static='-Bstatic'
8248 case $cc_basename in
8249 f77* | f90* | f95*)
8250 lt_prog_compiler_wl='-Qoption ld ';;
8251 *)
8252 lt_prog_compiler_wl='-Wl,';;
8253 esac
8254 ;;
8255
8256 sunos4*)
8257 lt_prog_compiler_wl='-Qoption ld '
8258 lt_prog_compiler_pic='-PIC'
8259 lt_prog_compiler_static='-Bstatic'
8260 ;;
8261
8262 sysv4 | sysv4.2uw2* | sysv4.3*)
8263 lt_prog_compiler_wl='-Wl,'
8264 lt_prog_compiler_pic='-KPIC'
8265 lt_prog_compiler_static='-Bstatic'
8266 ;;
8267
8268 sysv4*MP*)
8269 if test -d /usr/nec ;then
8270 lt_prog_compiler_pic='-Kconform_pic'
8271 lt_prog_compiler_static='-Bstatic'
8272 fi
8273 ;;
8274
8275 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8276 lt_prog_compiler_wl='-Wl,'
8277 lt_prog_compiler_pic='-KPIC'
8278 lt_prog_compiler_static='-Bstatic'
8279 ;;
8280
8281 unicos*)
8282 lt_prog_compiler_wl='-Wl,'
8283 lt_prog_compiler_can_build_shared=no
8284 ;;
8285
8286 uts4*)
8287 lt_prog_compiler_pic='-pic'
8288 lt_prog_compiler_static='-Bstatic'
8289 ;;
8290
8291 *)
8292 lt_prog_compiler_can_build_shared=no
8293 ;;
8294 esac
8295 fi
8296
8297 case $host_os in
8298 # For platforms which do not support PIC, -DPIC is meaningless:
8299 *djgpp*)
8300 lt_prog_compiler_pic=
8301 ;;
8302 *)
8303 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8304 ;;
8305 esac
8306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
8307 $as_echo "$lt_prog_compiler_pic" >&6; }
8308
8309
8310
8311
8312
8313
8314 #
8315 # Check to make sure the PIC flag actually works.
8316 #
8317 if test -n "$lt_prog_compiler_pic"; then
8318 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8319 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8320 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
8321 $as_echo_n "(cached) " >&6
8322 else
8323 lt_cv_prog_compiler_pic_works=no
8324 ac_outfile=conftest.$ac_objext
8325 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8326 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8327 # Insert the option either (1) after the last *FLAGS variable, or
8328 # (2) before a word containing "conftest.", or (3) at the end.
8329 # Note that $ac_compile itself does not contain backslashes and begins
8330 # with a dollar sign (not a hyphen), so the echo should work correctly.
8331 # The option is referenced via a variable to avoid confusing sed.
8332 lt_compile=`echo "$ac_compile" | $SED \
8333 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8334 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8335 -e 's:$: $lt_compiler_flag:'`
8336 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8337 (eval "$lt_compile" 2>conftest.err)
8338 ac_status=$?
8339 cat conftest.err >&5
8340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8341 if (exit $ac_status) && test -s "$ac_outfile"; then
8342 # The compiler can only warn and ignore the option if not recognized
8343 # So say no if there are warnings other than the usual output.
8344 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8345 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8346 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8347 lt_cv_prog_compiler_pic_works=yes
8348 fi
8349 fi
8350 $RM conftest*
8351
8352 fi
8353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8354 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8355
8356 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
8357 case $lt_prog_compiler_pic in
8358 "" | " "*) ;;
8359 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8360 esac
8361 else
8362 lt_prog_compiler_pic=
8363 lt_prog_compiler_can_build_shared=no
8364 fi
8365
8366 fi
8367
8368
8369
8370
8371
8372
8373 #
8374 # Check to make sure the static flag actually works.
8375 #
8376 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8377 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8378 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8379 if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
8380 $as_echo_n "(cached) " >&6
8381 else
8382 lt_cv_prog_compiler_static_works=no
8383 save_LDFLAGS="$LDFLAGS"
8384 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8385 echo "$lt_simple_link_test_code" > conftest.$ac_ext
8386 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8387 # The linker can only warn and ignore the option if not recognized
8388 # So say no if there are warnings
8389 if test -s conftest.err; then
8390 # Append any errors to the config.log.
8391 cat conftest.err 1>&5
8392 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
8393 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8394 if diff conftest.exp conftest.er2 >/dev/null; then
8395 lt_cv_prog_compiler_static_works=yes
8396 fi
8397 else
8398 lt_cv_prog_compiler_static_works=yes
8399 fi
8400 fi
8401 $RM -r conftest*
8402 LDFLAGS="$save_LDFLAGS"
8403
8404 fi
8405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
8406 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
8407
8408 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
8409 :
8410 else
8411 lt_prog_compiler_static=
8412 fi
8413
8414
8415
8416
8417
8418
8419
8420 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8421 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8422 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
8423 $as_echo_n "(cached) " >&6
8424 else
8425 lt_cv_prog_compiler_c_o=no
8426 $RM -r conftest 2>/dev/null
8427 mkdir conftest
8428 cd conftest
8429 mkdir out
8430 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8431
8432 lt_compiler_flag="-o out/conftest2.$ac_objext"
8433 # Insert the option either (1) after the last *FLAGS variable, or
8434 # (2) before a word containing "conftest.", or (3) at the end.
8435 # Note that $ac_compile itself does not contain backslashes and begins
8436 # with a dollar sign (not a hyphen), so the echo should work correctly.
8437 lt_compile=`echo "$ac_compile" | $SED \
8438 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8439 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8440 -e 's:$: $lt_compiler_flag:'`
8441 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8442 (eval "$lt_compile" 2>out/conftest.err)
8443 ac_status=$?
8444 cat out/conftest.err >&5
8445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8446 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8447 then
8448 # The compiler can only warn and ignore the option if not recognized
8449 # So say no if there are warnings
8450 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8451 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8452 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8453 lt_cv_prog_compiler_c_o=yes
8454 fi
8455 fi
8456 chmod u+w . 2>&5
8457 $RM conftest*
8458 # SGI C++ compiler will create directory out/ii_files/ for
8459 # template instantiation
8460 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8461 $RM out/* && rmdir out
8462 cd ..
8463 $RM -r conftest
8464 $RM conftest*
8465
8466 fi
8467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8468 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8469
8470
8471
8472
8473
8474
8475 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8476 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8477 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
8478 $as_echo_n "(cached) " >&6
8479 else
8480 lt_cv_prog_compiler_c_o=no
8481 $RM -r conftest 2>/dev/null
8482 mkdir conftest
8483 cd conftest
8484 mkdir out
8485 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8486
8487 lt_compiler_flag="-o out/conftest2.$ac_objext"
8488 # Insert the option either (1) after the last *FLAGS variable, or
8489 # (2) before a word containing "conftest.", or (3) at the end.
8490 # Note that $ac_compile itself does not contain backslashes and begins
8491 # with a dollar sign (not a hyphen), so the echo should work correctly.
8492 lt_compile=`echo "$ac_compile" | $SED \
8493 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8494 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8495 -e 's:$: $lt_compiler_flag:'`
8496 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8497 (eval "$lt_compile" 2>out/conftest.err)
8498 ac_status=$?
8499 cat out/conftest.err >&5
8500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8501 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8502 then
8503 # The compiler can only warn and ignore the option if not recognized
8504 # So say no if there are warnings
8505 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8506 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8507 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8508 lt_cv_prog_compiler_c_o=yes
8509 fi
8510 fi
8511 chmod u+w . 2>&5
8512 $RM conftest*
8513 # SGI C++ compiler will create directory out/ii_files/ for
8514 # template instantiation
8515 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8516 $RM out/* && rmdir out
8517 cd ..
8518 $RM -r conftest
8519 $RM conftest*
8520
8521 fi
8522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8523 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8524
8525
8526
8527
8528 hard_links="nottested"
8529 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8530 # do not overwrite the value of need_locks provided by the user
8531 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
8532 $as_echo_n "checking if we can lock with hard links... " >&6; }
8533 hard_links=yes
8534 $RM conftest*
8535 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8536 touch conftest.a
8537 ln conftest.a conftest.b 2>&5 || hard_links=no
8538 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
8540 $as_echo "$hard_links" >&6; }
8541 if test "$hard_links" = no; then
8542 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8543 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8544 need_locks=warn
8545 fi
8546 else
8547 need_locks=no
8548 fi
8549
8550
8551
8552
8553
8554
8555 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8556 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
8557
8558 runpath_var=
8559 allow_undefined_flag=
8560 always_export_symbols=no
8561 archive_cmds=
8562 archive_expsym_cmds=
8563 compiler_needs_object=no
8564 enable_shared_with_static_runtimes=no
8565 export_dynamic_flag_spec=
8566 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8567 hardcode_automatic=no
8568 hardcode_direct=no
8569 hardcode_direct_absolute=no
8570 hardcode_libdir_flag_spec=
8571 hardcode_libdir_flag_spec_ld=
8572 hardcode_libdir_separator=
8573 hardcode_minus_L=no
8574 hardcode_shlibpath_var=unsupported
8575 inherit_rpath=no
8576 link_all_deplibs=unknown
8577 module_cmds=
8578 module_expsym_cmds=
8579 old_archive_from_new_cmds=
8580 old_archive_from_expsyms_cmds=
8581 thread_safe_flag_spec=
8582 whole_archive_flag_spec=
8583 # include_expsyms should be a list of space-separated symbols to be *always*
8584 # included in the symbol list
8585 include_expsyms=
8586 # exclude_expsyms can be an extended regexp of symbols to exclude
8587 # it will be wrapped by ` (' and `)$', so one must not match beginning or
8588 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8589 # as well as any symbol that contains `d'.
8590 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
8591 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8592 # platforms (ab)use it in PIC code, but their linkers get confused if
8593 # the symbol is explicitly referenced. Since portable code cannot
8594 # rely on this symbol name, it's probably fine to never include it in
8595 # preloaded symbol tables.
8596 # Exclude shared library initialization/finalization symbols.
8597 extract_expsyms_cmds=
8598
8599 case $host_os in
8600 cygwin* | mingw* | pw32* | cegcc*)
8601 # FIXME: the MSVC++ port hasn't been tested in a loooong time
8602 # When not using gcc, we currently assume that we are using
8603 # Microsoft Visual C++.
8604 if test "$GCC" != yes; then
8605 with_gnu_ld=no
8606 fi
8607 ;;
8608 interix*)
8609 # we just hope/assume this is gcc and not c89 (= MSVC++)
8610 with_gnu_ld=yes
8611 ;;
8612 openbsd*)
8613 with_gnu_ld=no
8614 ;;
8615 esac
8616
8617 ld_shlibs=yes
8618
8619 # On some targets, GNU ld is compatible enough with the native linker
8620 # that we're better off using the native interface for both.
8621 lt_use_gnu_ld_interface=no
8622 if test "$with_gnu_ld" = yes; then
8623 case $host_os in
8624 aix*)
8625 # The AIX port of GNU ld has always aspired to compatibility
8626 # with the native linker. However, as the warning in the GNU ld
8627 # block says, versions before 2.19.5* couldn't really create working
8628 # shared libraries, regardless of the interface used.
8629 case `$LD -v 2>&1` in
8630 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
8631 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
8632 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
8633 *)
8634 lt_use_gnu_ld_interface=yes
8635 ;;
8636 esac
8637 ;;
8638 *)
8639 lt_use_gnu_ld_interface=yes
8640 ;;
8641 esac
8642 fi
8643
8644 if test "$lt_use_gnu_ld_interface" = yes; then
8645 # If archive_cmds runs LD, not CC, wlarc should be empty
8646 wlarc='${wl}'
8647
8648 # Set some defaults for GNU ld with shared library support. These
8649 # are reset later if shared libraries are not supported. Putting them
8650 # here allows them to be overridden if necessary.
8651 runpath_var=LD_RUN_PATH
8652 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8653 export_dynamic_flag_spec='${wl}--export-dynamic'
8654 # ancient GNU ld didn't support --whole-archive et. al.
8655 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
8656 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8657 else
8658 whole_archive_flag_spec=
8659 fi
8660 supports_anon_versioning=no
8661 case `$LD -v 2>&1` in
8662 *GNU\ gold*) supports_anon_versioning=yes ;;
8663 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8664 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8665 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8666 *\ 2.11.*) ;; # other 2.11 versions
8667 *) supports_anon_versioning=yes ;;
8668 esac
8669
8670 # See if GNU ld supports shared libraries.
8671 case $host_os in
8672 aix[3-9]*)
8673 # On AIX/PPC, the GNU linker is very broken
8674 if test "$host_cpu" != ia64; then
8675 ld_shlibs=no
8676 cat <<_LT_EOF 1>&2
8677
8678 *** Warning: the GNU linker, at least up to release 2.19, is reported
8679 *** to be unable to reliably create shared libraries on AIX.
8680 *** Therefore, libtool is disabling shared libraries support. If you
8681 *** really care for shared libraries, you may want to install binutils
8682 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
8683 *** You will then need to restart the configuration process.
8684
8685 _LT_EOF
8686 fi
8687 ;;
8688
8689 amigaos*)
8690 case $host_cpu in
8691 powerpc)
8692 # see comment about AmigaOS4 .so support
8693 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8694 archive_expsym_cmds=''
8695 ;;
8696 m68k)
8697 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)'
8698 hardcode_libdir_flag_spec='-L$libdir'
8699 hardcode_minus_L=yes
8700 ;;
8701 esac
8702 ;;
8703
8704 beos*)
8705 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8706 allow_undefined_flag=unsupported
8707 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8708 # support --undefined. This deserves some investigation. FIXME
8709 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8710 else
8711 ld_shlibs=no
8712 fi
8713 ;;
8714
8715 cygwin* | mingw* | pw32* | cegcc*)
8716 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8717 # as there is no search path for DLLs.
8718 hardcode_libdir_flag_spec='-L$libdir'
8719 export_dynamic_flag_spec='${wl}--export-all-symbols'
8720 allow_undefined_flag=unsupported
8721 always_export_symbols=no
8722 enable_shared_with_static_runtimes=yes
8723 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
8724
8725 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
8726 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8727 # If the export-symbols file already is a .def file (1st line
8728 # is EXPORTS), use it as is; otherwise, prepend...
8729 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8730 cp $export_symbols $output_objdir/$soname.def;
8731 else
8732 echo EXPORTS > $output_objdir/$soname.def;
8733 cat $export_symbols >> $output_objdir/$soname.def;
8734 fi~
8735 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8736 else
8737 ld_shlibs=no
8738 fi
8739 ;;
8740
8741 haiku*)
8742 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8743 link_all_deplibs=yes
8744 ;;
8745
8746 interix[3-9]*)
8747 hardcode_direct=no
8748 hardcode_shlibpath_var=no
8749 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8750 export_dynamic_flag_spec='${wl}-E'
8751 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8752 # Instead, shared libraries are loaded at an image base (0x10000000 by
8753 # default) and relocated if they conflict, which is a slow very memory
8754 # consuming and fragmenting process. To avoid this, we pick a random,
8755 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8756 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
8757 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8758 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'
8759 ;;
8760
8761 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
8762 tmp_diet=no
8763 if test "$host_os" = linux-dietlibc; then
8764 case $cc_basename in
8765 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
8766 esac
8767 fi
8768 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
8769 && test "$tmp_diet" = no
8770 then
8771 tmp_addflag=' $pic_flag'
8772 tmp_sharedflag='-shared'
8773 case $cc_basename,$host_cpu in
8774 pgcc*) # Portland Group C compiler
8775 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'
8776 tmp_addflag=' $pic_flag'
8777 ;;
8778 pgf77* | pgf90* | pgf95* | pgfortran*)
8779 # Portland Group f77 and f90 compilers
8780 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'
8781 tmp_addflag=' $pic_flag -Mnomain' ;;
8782 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
8783 tmp_addflag=' -i_dynamic' ;;
8784 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
8785 tmp_addflag=' -i_dynamic -nofor_main' ;;
8786 ifc* | ifort*) # Intel Fortran compiler
8787 tmp_addflag=' -nofor_main' ;;
8788 lf95*) # Lahey Fortran 8.1
8789 whole_archive_flag_spec=
8790 tmp_sharedflag='--shared' ;;
8791 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
8792 tmp_sharedflag='-qmkshrobj'
8793 tmp_addflag= ;;
8794 nvcc*) # Cuda Compiler Driver 2.2
8795 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'
8796 compiler_needs_object=yes
8797 ;;
8798 esac
8799 case `$CC -V 2>&1 | sed 5q` in
8800 *Sun\ C*) # Sun C 5.9
8801 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'
8802 compiler_needs_object=yes
8803 tmp_sharedflag='-G' ;;
8804 *Sun\ F*) # Sun Fortran 8.3
8805 tmp_sharedflag='-G' ;;
8806 esac
8807 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8808
8809 if test "x$supports_anon_versioning" = xyes; then
8810 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8811 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8812 echo "local: *; };" >> $output_objdir/$libname.ver~
8813 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8814 fi
8815
8816 case $cc_basename in
8817 xlf* | bgf* | bgxlf* | mpixlf*)
8818 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
8819 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
8820 hardcode_libdir_flag_spec=
8821 hardcode_libdir_flag_spec_ld='-rpath $libdir'
8822 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
8823 if test "x$supports_anon_versioning" = xyes; then
8824 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8825 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8826 echo "local: *; };" >> $output_objdir/$libname.ver~
8827 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
8828 fi
8829 ;;
8830 esac
8831 else
8832 ld_shlibs=no
8833 fi
8834 ;;
8835
8836 netbsd*)
8837 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8838 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8839 wlarc=
8840 else
8841 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8842 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8843 fi
8844 ;;
8845
8846 solaris*)
8847 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
8848 ld_shlibs=no
8849 cat <<_LT_EOF 1>&2
8850
8851 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
8852 *** create shared libraries on Solaris systems. Therefore, libtool
8853 *** is disabling shared libraries support. We urge you to upgrade GNU
8854 *** binutils to release 2.9.1 or newer. Another option is to modify
8855 *** your PATH or compiler configuration so that the native linker is
8856 *** used, and then restart.
8857
8858 _LT_EOF
8859 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8860 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8861 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8862 else
8863 ld_shlibs=no
8864 fi
8865 ;;
8866
8867 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8868 case `$LD -v 2>&1` in
8869 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8870 ld_shlibs=no
8871 cat <<_LT_EOF 1>&2
8872
8873 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8874 *** reliably create shared libraries on SCO systems. Therefore, libtool
8875 *** is disabling shared libraries support. We urge you to upgrade GNU
8876 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
8877 *** your PATH or compiler configuration so that the native linker is
8878 *** used, and then restart.
8879
8880 _LT_EOF
8881 ;;
8882 *)
8883 # For security reasons, it is highly recommended that you always
8884 # use absolute paths for naming shared libraries, and exclude the
8885 # DT_RUNPATH tag from executables and libraries. But doing so
8886 # requires that you compile everything twice, which is a pain.
8887 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8888 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8889 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8890 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8891 else
8892 ld_shlibs=no
8893 fi
8894 ;;
8895 esac
8896 ;;
8897
8898 sunos4*)
8899 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8900 wlarc=
8901 hardcode_direct=yes
8902 hardcode_shlibpath_var=no
8903 ;;
8904
8905 *)
8906 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8907 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8908 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8909 else
8910 ld_shlibs=no
8911 fi
8912 ;;
8913 esac
8914
8915 if test "$ld_shlibs" = no; then
8916 runpath_var=
8917 hardcode_libdir_flag_spec=
8918 export_dynamic_flag_spec=
8919 whole_archive_flag_spec=
8920 fi
8921 else
8922 # PORTME fill in a description of your system's linker (not GNU ld)
8923 case $host_os in
8924 aix3*)
8925 allow_undefined_flag=unsupported
8926 always_export_symbols=yes
8927 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'
8928 # Note: this linker hardcodes the directories in LIBPATH if there
8929 # are no directories specified by -L.
8930 hardcode_minus_L=yes
8931 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
8932 # Neither direct hardcoding nor static linking is supported with a
8933 # broken collect2.
8934 hardcode_direct=unsupported
8935 fi
8936 ;;
8937
8938 aix[4-9]*)
8939 if test "$host_cpu" = ia64; then
8940 # On IA64, the linker does run time linking by default, so we don't
8941 # have to do anything special.
8942 aix_use_runtimelinking=no
8943 exp_sym_flag='-Bexport'
8944 no_entry_flag=""
8945 else
8946 # If we're using GNU nm, then we don't want the "-C" option.
8947 # -C means demangle to AIX nm, but means don't demangle with GNU nm
8948 # Also, AIX nm treats weak defined symbols like other global
8949 # defined symbols, whereas GNU nm marks them as "W".
8950 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
8951 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'
8952 else
8953 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'
8954 fi
8955 aix_use_runtimelinking=no
8956
8957 # Test if we are trying to use run time linking or normal
8958 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
8959 # need to do runtime linking.
8960 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
8961 for ld_flag in $LDFLAGS; do
8962 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8963 aix_use_runtimelinking=yes
8964 break
8965 fi
8966 done
8967 ;;
8968 esac
8969
8970 exp_sym_flag='-bexport'
8971 no_entry_flag='-bnoentry'
8972 fi
8973
8974 # When large executables or shared objects are built, AIX ld can
8975 # have problems creating the table of contents. If linking a library
8976 # or program results in "error TOC overflow" add -mminimal-toc to
8977 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
8978 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8979
8980 archive_cmds=''
8981 hardcode_direct=yes
8982 hardcode_direct_absolute=yes
8983 hardcode_libdir_separator=':'
8984 link_all_deplibs=yes
8985 file_list_spec='${wl}-f,'
8986
8987 if test "$GCC" = yes; then
8988 case $host_os in aix4.[012]|aix4.[012].*)
8989 # We only want to do this on AIX 4.2 and lower, the check
8990 # below for broken collect2 doesn't work under 4.3+
8991 collect2name=`${CC} -print-prog-name=collect2`
8992 if test -f "$collect2name" &&
8993 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
8994 then
8995 # We have reworked collect2
8996 :
8997 else
8998 # We have old collect2
8999 hardcode_direct=unsupported
9000 # It fails to find uninstalled libraries when the uninstalled
9001 # path is not listed in the libpath. Setting hardcode_minus_L
9002 # to unsupported forces relinking
9003 hardcode_minus_L=yes
9004 hardcode_libdir_flag_spec='-L$libdir'
9005 hardcode_libdir_separator=
9006 fi
9007 ;;
9008 esac
9009 shared_flag='-shared'
9010 if test "$aix_use_runtimelinking" = yes; then
9011 shared_flag="$shared_flag "'${wl}-G'
9012 fi
9013 else
9014 # not using gcc
9015 if test "$host_cpu" = ia64; then
9016 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9017 # chokes on -Wl,-G. The following line is correct:
9018 shared_flag='-G'
9019 else
9020 if test "$aix_use_runtimelinking" = yes; then
9021 shared_flag='${wl}-G'
9022 else
9023 shared_flag='${wl}-bM:SRE'
9024 fi
9025 fi
9026 fi
9027
9028 export_dynamic_flag_spec='${wl}-bexpall'
9029 # It seems that -bexpall does not export symbols beginning with
9030 # underscore (_), so it is better to generate a list of symbols to export.
9031 always_export_symbols=yes
9032 if test "$aix_use_runtimelinking" = yes; then
9033 # Warning - without using the other runtime loading flags (-brtl),
9034 # -berok will link without error, but may produce a broken library.
9035 allow_undefined_flag='-berok'
9036 # Determine the default libpath from the value encoded in an
9037 # empty executable.
9038 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9039 /* end confdefs.h. */
9040
9041 int
9042 main ()
9043 {
9044
9045 ;
9046 return 0;
9047 }
9048 _ACEOF
9049 if ac_fn_c_try_link "$LINENO"; then :
9050
9051 lt_aix_libpath_sed='
9052 /Import File Strings/,/^$/ {
9053 /^0/ {
9054 s/^0 *\(.*\)$/\1/
9055 p
9056 }
9057 }'
9058 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9059 # Check for a 64-bit object if we didn't find anything.
9060 if test -z "$aix_libpath"; then
9061 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9062 fi
9063 fi
9064 rm -f core conftest.err conftest.$ac_objext \
9065 conftest$ac_exeext conftest.$ac_ext
9066 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9067
9068 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9069 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"
9070 else
9071 if test "$host_cpu" = ia64; then
9072 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9073 allow_undefined_flag="-z nodefs"
9074 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"
9075 else
9076 # Determine the default libpath from the value encoded in an
9077 # empty executable.
9078 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9079 /* end confdefs.h. */
9080
9081 int
9082 main ()
9083 {
9084
9085 ;
9086 return 0;
9087 }
9088 _ACEOF
9089 if ac_fn_c_try_link "$LINENO"; then :
9090
9091 lt_aix_libpath_sed='
9092 /Import File Strings/,/^$/ {
9093 /^0/ {
9094 s/^0 *\(.*\)$/\1/
9095 p
9096 }
9097 }'
9098 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9099 # Check for a 64-bit object if we didn't find anything.
9100 if test -z "$aix_libpath"; then
9101 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9102 fi
9103 fi
9104 rm -f core conftest.err conftest.$ac_objext \
9105 conftest$ac_exeext conftest.$ac_ext
9106 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9107
9108 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9109 # Warning - without using the other run time loading flags,
9110 # -berok will link without error, but may produce a broken library.
9111 no_undefined_flag=' ${wl}-bernotok'
9112 allow_undefined_flag=' ${wl}-berok'
9113 if test "$with_gnu_ld" = yes; then
9114 # We only use this code for GNU lds that support --whole-archive.
9115 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
9116 else
9117 # Exported symbols can be pulled into shared objects from archives
9118 whole_archive_flag_spec='$convenience'
9119 fi
9120 archive_cmds_need_lc=yes
9121 # This is similar to how AIX traditionally builds its shared libraries.
9122 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'
9123 fi
9124 fi
9125 ;;
9126
9127 amigaos*)
9128 case $host_cpu in
9129 powerpc)
9130 # see comment about AmigaOS4 .so support
9131 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9132 archive_expsym_cmds=''
9133 ;;
9134 m68k)
9135 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)'
9136 hardcode_libdir_flag_spec='-L$libdir'
9137 hardcode_minus_L=yes
9138 ;;
9139 esac
9140 ;;
9141
9142 bsdi[45]*)
9143 export_dynamic_flag_spec=-rdynamic
9144 ;;
9145
9146 cygwin* | mingw* | pw32* | cegcc*)
9147 # When not using gcc, we currently assume that we are using
9148 # Microsoft Visual C++.
9149 # hardcode_libdir_flag_spec is actually meaningless, as there is
9150 # no search path for DLLs.
9151 hardcode_libdir_flag_spec=' '
9152 allow_undefined_flag=unsupported
9153 # Tell ltmain to make .lib files, not .a files.
9154 libext=lib
9155 # Tell ltmain to make .dll files, not .so files.
9156 shrext_cmds=".dll"
9157 # FIXME: Setting linknames here is a bad hack.
9158 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
9159 # The linker will automatically build a .lib file if we build a DLL.
9160 old_archive_from_new_cmds='true'
9161 # FIXME: Should let the user specify the lib program.
9162 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9163 fix_srcfile_path='`cygpath -w "$srcfile"`'
9164 enable_shared_with_static_runtimes=yes
9165 ;;
9166
9167 darwin* | rhapsody*)
9168
9169
9170 archive_cmds_need_lc=no
9171 hardcode_direct=no
9172 hardcode_automatic=yes
9173 hardcode_shlibpath_var=unsupported
9174 if test "$lt_cv_ld_force_load" = "yes"; then
9175 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\"`'
9176 else
9177 whole_archive_flag_spec=''
9178 fi
9179 link_all_deplibs=yes
9180 allow_undefined_flag="$_lt_dar_allow_undefined"
9181 case $cc_basename in
9182 ifort*) _lt_dar_can_shared=yes ;;
9183 *) _lt_dar_can_shared=$GCC ;;
9184 esac
9185 if test "$_lt_dar_can_shared" = "yes"; then
9186 output_verbose_link_cmd=func_echo_all
9187 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9188 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9189 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}"
9190 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}"
9191
9192 else
9193 ld_shlibs=no
9194 fi
9195
9196 ;;
9197
9198 dgux*)
9199 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9200 hardcode_libdir_flag_spec='-L$libdir'
9201 hardcode_shlibpath_var=no
9202 ;;
9203
9204 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9205 # support. Future versions do this automatically, but an explicit c++rt0.o
9206 # does not break anything, and helps significantly (at the cost of a little
9207 # extra space).
9208 freebsd2.2*)
9209 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9210 hardcode_libdir_flag_spec='-R$libdir'
9211 hardcode_direct=yes
9212 hardcode_shlibpath_var=no
9213 ;;
9214
9215 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9216 freebsd2.*)
9217 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9218 hardcode_direct=yes
9219 hardcode_minus_L=yes
9220 hardcode_shlibpath_var=no
9221 ;;
9222
9223 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9224 freebsd* | dragonfly*)
9225 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
9226 hardcode_libdir_flag_spec='-R$libdir'
9227 hardcode_direct=yes
9228 hardcode_shlibpath_var=no
9229 ;;
9230
9231 hpux9*)
9232 if test "$GCC" = yes; then
9233 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'
9234 else
9235 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'
9236 fi
9237 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9238 hardcode_libdir_separator=:
9239 hardcode_direct=yes
9240
9241 # hardcode_minus_L: Not really in the search PATH,
9242 # but as the default location of the library.
9243 hardcode_minus_L=yes
9244 export_dynamic_flag_spec='${wl}-E'
9245 ;;
9246
9247 hpux10*)
9248 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9249 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9250 else
9251 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9252 fi
9253 if test "$with_gnu_ld" = no; then
9254 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9255 hardcode_libdir_flag_spec_ld='+b $libdir'
9256 hardcode_libdir_separator=:
9257 hardcode_direct=yes
9258 hardcode_direct_absolute=yes
9259 export_dynamic_flag_spec='${wl}-E'
9260 # hardcode_minus_L: Not really in the search PATH,
9261 # but as the default location of the library.
9262 hardcode_minus_L=yes
9263 fi
9264 ;;
9265
9266 hpux11*)
9267 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9268 case $host_cpu in
9269 hppa*64*)
9270 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9271 ;;
9272 ia64*)
9273 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9274 ;;
9275 *)
9276 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9277 ;;
9278 esac
9279 else
9280 case $host_cpu in
9281 hppa*64*)
9282 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9283 ;;
9284 ia64*)
9285 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9286 ;;
9287 *)
9288
9289 # Older versions of the 11.00 compiler do not understand -b yet
9290 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
9291 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
9292 $as_echo_n "checking if $CC understands -b... " >&6; }
9293 if test "${lt_cv_prog_compiler__b+set}" = set; then :
9294 $as_echo_n "(cached) " >&6
9295 else
9296 lt_cv_prog_compiler__b=no
9297 save_LDFLAGS="$LDFLAGS"
9298 LDFLAGS="$LDFLAGS -b"
9299 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9300 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9301 # The linker can only warn and ignore the option if not recognized
9302 # So say no if there are warnings
9303 if test -s conftest.err; then
9304 # Append any errors to the config.log.
9305 cat conftest.err 1>&5
9306 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9307 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9308 if diff conftest.exp conftest.er2 >/dev/null; then
9309 lt_cv_prog_compiler__b=yes
9310 fi
9311 else
9312 lt_cv_prog_compiler__b=yes
9313 fi
9314 fi
9315 $RM -r conftest*
9316 LDFLAGS="$save_LDFLAGS"
9317
9318 fi
9319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
9320 $as_echo "$lt_cv_prog_compiler__b" >&6; }
9321
9322 if test x"$lt_cv_prog_compiler__b" = xyes; then
9323 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9324 else
9325 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9326 fi
9327
9328 ;;
9329 esac
9330 fi
9331 if test "$with_gnu_ld" = no; then
9332 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9333 hardcode_libdir_separator=:
9334
9335 case $host_cpu in
9336 hppa*64*|ia64*)
9337 hardcode_direct=no
9338 hardcode_shlibpath_var=no
9339 ;;
9340 *)
9341 hardcode_direct=yes
9342 hardcode_direct_absolute=yes
9343 export_dynamic_flag_spec='${wl}-E'
9344
9345 # hardcode_minus_L: Not really in the search PATH,
9346 # but as the default location of the library.
9347 hardcode_minus_L=yes
9348 ;;
9349 esac
9350 fi
9351 ;;
9352
9353 irix5* | irix6* | nonstopux*)
9354 if test "$GCC" = yes; then
9355 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'
9356 # Try to use the -exported_symbol ld option, if it does not
9357 # work, assume that -exports_file does not work either and
9358 # implicitly export all symbols.
9359 save_LDFLAGS="$LDFLAGS"
9360 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
9361 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9362 /* end confdefs.h. */
9363 int foo(void) {}
9364 _ACEOF
9365 if ac_fn_c_try_link "$LINENO"; then :
9366 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'
9367
9368 fi
9369 rm -f core conftest.err conftest.$ac_objext \
9370 conftest$ac_exeext conftest.$ac_ext
9371 LDFLAGS="$save_LDFLAGS"
9372 else
9373 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'
9374 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'
9375 fi
9376 archive_cmds_need_lc='no'
9377 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9378 hardcode_libdir_separator=:
9379 inherit_rpath=yes
9380 link_all_deplibs=yes
9381 ;;
9382
9383 netbsd*)
9384 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9385 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
9386 else
9387 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
9388 fi
9389 hardcode_libdir_flag_spec='-R$libdir'
9390 hardcode_direct=yes
9391 hardcode_shlibpath_var=no
9392 ;;
9393
9394 newsos6)
9395 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9396 hardcode_direct=yes
9397 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9398 hardcode_libdir_separator=:
9399 hardcode_shlibpath_var=no
9400 ;;
9401
9402 *nto* | *qnx*)
9403 ;;
9404
9405 openbsd*)
9406 if test -f /usr/libexec/ld.so; then
9407 hardcode_direct=yes
9408 hardcode_shlibpath_var=no
9409 hardcode_direct_absolute=yes
9410 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9411 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9412 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9413 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9414 export_dynamic_flag_spec='${wl}-E'
9415 else
9416 case $host_os in
9417 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9418 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9419 hardcode_libdir_flag_spec='-R$libdir'
9420 ;;
9421 *)
9422 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9423 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9424 ;;
9425 esac
9426 fi
9427 else
9428 ld_shlibs=no
9429 fi
9430 ;;
9431
9432 os2*)
9433 hardcode_libdir_flag_spec='-L$libdir'
9434 hardcode_minus_L=yes
9435 allow_undefined_flag=unsupported
9436 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'
9437 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9438 ;;
9439
9440 osf3*)
9441 if test "$GCC" = yes; then
9442 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9443 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'
9444 else
9445 allow_undefined_flag=' -expect_unresolved \*'
9446 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'
9447 fi
9448 archive_cmds_need_lc='no'
9449 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9450 hardcode_libdir_separator=:
9451 ;;
9452
9453 osf4* | osf5*) # as osf3* with the addition of -msym flag
9454 if test "$GCC" = yes; then
9455 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9456 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'
9457 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9458 else
9459 allow_undefined_flag=' -expect_unresolved \*'
9460 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'
9461 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~
9462 $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'
9463
9464 # Both c and cxx compiler support -rpath directly
9465 hardcode_libdir_flag_spec='-rpath $libdir'
9466 fi
9467 archive_cmds_need_lc='no'
9468 hardcode_libdir_separator=:
9469 ;;
9470
9471 solaris*)
9472 no_undefined_flag=' -z defs'
9473 if test "$GCC" = yes; then
9474 wlarc='${wl}'
9475 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9476 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9477 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9478 else
9479 case `$CC -V 2>&1` in
9480 *"Compilers 5.0"*)
9481 wlarc=''
9482 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9483 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9484 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
9485 ;;
9486 *)
9487 wlarc='${wl}'
9488 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
9489 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9490 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9491 ;;
9492 esac
9493 fi
9494 hardcode_libdir_flag_spec='-R$libdir'
9495 hardcode_shlibpath_var=no
9496 case $host_os in
9497 solaris2.[0-5] | solaris2.[0-5].*) ;;
9498 *)
9499 # The compiler driver will combine and reorder linker options,
9500 # but understands `-z linker_flag'. GCC discards it without `$wl',
9501 # but is careful enough not to reorder.
9502 # Supported since Solaris 2.6 (maybe 2.5.1?)
9503 if test "$GCC" = yes; then
9504 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9505 else
9506 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
9507 fi
9508 ;;
9509 esac
9510 link_all_deplibs=yes
9511 ;;
9512
9513 sunos4*)
9514 if test "x$host_vendor" = xsequent; then
9515 # Use $CC to link under sequent, because it throws in some extra .o
9516 # files that make .init and .fini sections work.
9517 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9518 else
9519 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9520 fi
9521 hardcode_libdir_flag_spec='-L$libdir'
9522 hardcode_direct=yes
9523 hardcode_minus_L=yes
9524 hardcode_shlibpath_var=no
9525 ;;
9526
9527 sysv4)
9528 case $host_vendor in
9529 sni)
9530 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9531 hardcode_direct=yes # is this really true???
9532 ;;
9533 siemens)
9534 ## LD is ld it makes a PLAMLIB
9535 ## CC just makes a GrossModule.
9536 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9537 reload_cmds='$CC -r -o $output$reload_objs'
9538 hardcode_direct=no
9539 ;;
9540 motorola)
9541 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9542 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9543 ;;
9544 esac
9545 runpath_var='LD_RUN_PATH'
9546 hardcode_shlibpath_var=no
9547 ;;
9548
9549 sysv4.3*)
9550 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9551 hardcode_shlibpath_var=no
9552 export_dynamic_flag_spec='-Bexport'
9553 ;;
9554
9555 sysv4*MP*)
9556 if test -d /usr/nec; then
9557 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9558 hardcode_shlibpath_var=no
9559 runpath_var=LD_RUN_PATH
9560 hardcode_runpath_var=yes
9561 ld_shlibs=yes
9562 fi
9563 ;;
9564
9565 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
9566 no_undefined_flag='${wl}-z,text'
9567 archive_cmds_need_lc=no
9568 hardcode_shlibpath_var=no
9569 runpath_var='LD_RUN_PATH'
9570
9571 if test "$GCC" = yes; then
9572 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9573 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9574 else
9575 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9576 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9577 fi
9578 ;;
9579
9580 sysv5* | sco3.2v5* | sco5v6*)
9581 # Note: We can NOT use -z defs as we might desire, because we do not
9582 # link with -lc, and that would cause any symbols used from libc to
9583 # always be unresolved, which means just about no library would
9584 # ever link correctly. If we're not using GNU ld we use -z text
9585 # though, which does catch some bad symbols but isn't as heavy-handed
9586 # as -z defs.
9587 no_undefined_flag='${wl}-z,text'
9588 allow_undefined_flag='${wl}-z,nodefs'
9589 archive_cmds_need_lc=no
9590 hardcode_shlibpath_var=no
9591 hardcode_libdir_flag_spec='${wl}-R,$libdir'
9592 hardcode_libdir_separator=':'
9593 link_all_deplibs=yes
9594 export_dynamic_flag_spec='${wl}-Bexport'
9595 runpath_var='LD_RUN_PATH'
9596
9597 if test "$GCC" = yes; then
9598 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9599 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9600 else
9601 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9602 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9603 fi
9604 ;;
9605
9606 uts4*)
9607 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9608 hardcode_libdir_flag_spec='-L$libdir'
9609 hardcode_shlibpath_var=no
9610 ;;
9611
9612 *)
9613 ld_shlibs=no
9614 ;;
9615 esac
9616
9617 if test x$host_vendor = xsni; then
9618 case $host in
9619 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
9620 export_dynamic_flag_spec='${wl}-Blargedynsym'
9621 ;;
9622 esac
9623 fi
9624 fi
9625
9626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
9627 $as_echo "$ld_shlibs" >&6; }
9628 test "$ld_shlibs" = no && can_build_shared=no
9629
9630 with_gnu_ld=$with_gnu_ld
9631
9632
9633
9634
9635
9636
9637
9638
9639
9640
9641
9642
9643
9644
9645
9646 #
9647 # Do we need to explicitly link libc?
9648 #
9649 case "x$archive_cmds_need_lc" in
9650 x|xyes)
9651 # Assume -lc should be added
9652 archive_cmds_need_lc=yes
9653
9654 if test "$enable_shared" = yes && test "$GCC" = yes; then
9655 case $archive_cmds in
9656 *'~'*)
9657 # FIXME: we may have to deal with multi-command sequences.
9658 ;;
9659 '$CC '*)
9660 # Test whether the compiler implicitly links with -lc since on some
9661 # systems, -lgcc has to come before -lc. If gcc already passes -lc
9662 # to ld, don't add -lc before -lgcc.
9663 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
9664 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
9665 if test "${lt_cv_archive_cmds_need_lc+set}" = set; then :
9666 $as_echo_n "(cached) " >&6
9667 else
9668 $RM conftest*
9669 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9670
9671 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9672 (eval $ac_compile) 2>&5
9673 ac_status=$?
9674 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9675 test $ac_status = 0; } 2>conftest.err; then
9676 soname=conftest
9677 lib=conftest
9678 libobjs=conftest.$ac_objext
9679 deplibs=
9680 wl=$lt_prog_compiler_wl
9681 pic_flag=$lt_prog_compiler_pic
9682 compiler_flags=-v
9683 linker_flags=-v
9684 verstring=
9685 output_objdir=.
9686 libname=conftest
9687 lt_save_allow_undefined_flag=$allow_undefined_flag
9688 allow_undefined_flag=
9689 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
9690 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
9691 ac_status=$?
9692 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9693 test $ac_status = 0; }
9694 then
9695 lt_cv_archive_cmds_need_lc=no
9696 else
9697 lt_cv_archive_cmds_need_lc=yes
9698 fi
9699 allow_undefined_flag=$lt_save_allow_undefined_flag
9700 else
9701 cat conftest.err 1>&5
9702 fi
9703 $RM conftest*
9704
9705 fi
9706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
9707 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
9708 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
9709 ;;
9710 esac
9711 fi
9712 ;;
9713 esac
9714
9715
9716
9717
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 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
9872 $as_echo_n "checking dynamic linker characteristics... " >&6; }
9873
9874 if test "$GCC" = yes; then
9875 case $host_os in
9876 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
9877 *) lt_awk_arg="/^libraries:/" ;;
9878 esac
9879 case $host_os in
9880 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
9881 *) lt_sed_strip_eq="s,=/,/,g" ;;
9882 esac
9883 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
9884 case $lt_search_path_spec in
9885 *\;*)
9886 # if the path contains ";" then we assume it to be the separator
9887 # otherwise default to the standard path separator (i.e. ":") - it is
9888 # assumed that no part of a normal pathname contains ";" but that should
9889 # okay in the real world where ";" in dirpaths is itself problematic.
9890 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
9891 ;;
9892 *)
9893 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
9894 ;;
9895 esac
9896 # Ok, now we have the path, separated by spaces, we can step through it
9897 # and add multilib dir if necessary.
9898 lt_tmp_lt_search_path_spec=
9899 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
9900 for lt_sys_path in $lt_search_path_spec; do
9901 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
9902 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
9903 else
9904 test -d "$lt_sys_path" && \
9905 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
9906 fi
9907 done
9908 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
9909 BEGIN {RS=" "; FS="/|\n";} {
9910 lt_foo="";
9911 lt_count=0;
9912 for (lt_i = NF; lt_i > 0; lt_i--) {
9913 if ($lt_i != "" && $lt_i != ".") {
9914 if ($lt_i == "..") {
9915 lt_count++;
9916 } else {
9917 if (lt_count == 0) {
9918 lt_foo="/" $lt_i lt_foo;
9919 } else {
9920 lt_count--;
9921 }
9922 }
9923 }
9924 }
9925 if (lt_foo != "") { lt_freq[lt_foo]++; }
9926 if (lt_freq[lt_foo] == 1) { print lt_foo; }
9927 }'`
9928 # AWK program above erroneously prepends '/' to C:/dos/paths
9929 # for these hosts.
9930 case $host_os in
9931 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
9932 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
9933 esac
9934 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
9935 else
9936 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9937 fi
9938 library_names_spec=
9939 libname_spec='lib$name'
9940 soname_spec=
9941 shrext_cmds=".so"
9942 postinstall_cmds=
9943 postuninstall_cmds=
9944 finish_cmds=
9945 finish_eval=
9946 shlibpath_var=
9947 shlibpath_overrides_runpath=unknown
9948 version_type=none
9949 dynamic_linker="$host_os ld.so"
9950 sys_lib_dlsearch_path_spec="/lib /usr/lib"
9951 need_lib_prefix=unknown
9952 hardcode_into_libs=no
9953
9954 # when you set need_version to no, make sure it does not cause -set_version
9955 # flags to be left without arguments
9956 need_version=unknown
9957
9958 case $host_os in
9959 aix3*)
9960 version_type=linux
9961 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9962 shlibpath_var=LIBPATH
9963
9964 # AIX 3 has no versioning support, so we append a major version to the name.
9965 soname_spec='${libname}${release}${shared_ext}$major'
9966 ;;
9967
9968 aix[4-9]*)
9969 version_type=linux
9970 need_lib_prefix=no
9971 need_version=no
9972 hardcode_into_libs=yes
9973 if test "$host_cpu" = ia64; then
9974 # AIX 5 supports IA64
9975 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9976 shlibpath_var=LD_LIBRARY_PATH
9977 else
9978 # With GCC up to 2.95.x, collect2 would create an import file
9979 # for dependence libraries. The import file would start with
9980 # the line `#! .'. This would cause the generated library to
9981 # depend on `.', always an invalid library. This was fixed in
9982 # development snapshots of GCC prior to 3.0.
9983 case $host_os in
9984 aix4 | aix4.[01] | aix4.[01].*)
9985 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9986 echo ' yes '
9987 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
9988 :
9989 else
9990 can_build_shared=no
9991 fi
9992 ;;
9993 esac
9994 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9995 # soname into executable. Probably we can add versioning support to
9996 # collect2, so additional links can be useful in future.
9997 if test "$aix_use_runtimelinking" = yes; then
9998 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9999 # instead of lib<name>.a to let people know that these are not
10000 # typical AIX shared libraries.
10001 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10002 else
10003 # We preserve .a as extension for shared libraries through AIX4.2
10004 # and later when we are not doing run time linking.
10005 library_names_spec='${libname}${release}.a $libname.a'
10006 soname_spec='${libname}${release}${shared_ext}$major'
10007 fi
10008 shlibpath_var=LIBPATH
10009 fi
10010 ;;
10011
10012 amigaos*)
10013 case $host_cpu in
10014 powerpc)
10015 # Since July 2007 AmigaOS4 officially supports .so libraries.
10016 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10017 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10018 ;;
10019 m68k)
10020 library_names_spec='$libname.ixlibrary $libname.a'
10021 # Create ${libname}_ixlibrary.a entries in /sys/libs.
10022 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'
10023 ;;
10024 esac
10025 ;;
10026
10027 beos*)
10028 library_names_spec='${libname}${shared_ext}'
10029 dynamic_linker="$host_os ld.so"
10030 shlibpath_var=LIBRARY_PATH
10031 ;;
10032
10033 bsdi[45]*)
10034 version_type=linux
10035 need_version=no
10036 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10037 soname_spec='${libname}${release}${shared_ext}$major'
10038 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10039 shlibpath_var=LD_LIBRARY_PATH
10040 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10041 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10042 # the default ld.so.conf also contains /usr/contrib/lib and
10043 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10044 # libtool to hard-code these into programs
10045 ;;
10046
10047 cygwin* | mingw* | pw32* | cegcc*)
10048 version_type=windows
10049 shrext_cmds=".dll"
10050 need_version=no
10051 need_lib_prefix=no
10052
10053 case $GCC,$host_os in
10054 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
10055 library_names_spec='$libname.dll.a'
10056 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10057 postinstall_cmds='base_file=`basename \${file}`~
10058 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10059 dldir=$destdir/`dirname \$dlpath`~
10060 test -d \$dldir || mkdir -p \$dldir~
10061 $install_prog $dir/$dlname \$dldir/$dlname~
10062 chmod a+x \$dldir/$dlname~
10063 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10064 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10065 fi'
10066 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10067 dlpath=$dir/\$dldll~
10068 $RM \$dlpath'
10069 shlibpath_overrides_runpath=yes
10070
10071 case $host_os in
10072 cygwin*)
10073 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10074 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10075
10076 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
10077 ;;
10078 mingw* | cegcc*)
10079 # MinGW DLLs use traditional 'lib' prefix
10080 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10081 ;;
10082 pw32*)
10083 # pw32 DLLs use 'pw' prefix rather than 'lib'
10084 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10085 ;;
10086 esac
10087 ;;
10088
10089 *)
10090 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10091 ;;
10092 esac
10093 dynamic_linker='Win32 ld.exe'
10094 # FIXME: first we should search . and the directory the executable is in
10095 shlibpath_var=PATH
10096 ;;
10097
10098 darwin* | rhapsody*)
10099 dynamic_linker="$host_os dyld"
10100 version_type=darwin
10101 need_lib_prefix=no
10102 need_version=no
10103 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10104 soname_spec='${libname}${release}${major}$shared_ext'
10105 shlibpath_overrides_runpath=yes
10106 shlibpath_var=DYLD_LIBRARY_PATH
10107 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10108
10109 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10110 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10111 ;;
10112
10113 dgux*)
10114 version_type=linux
10115 need_lib_prefix=no
10116 need_version=no
10117 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10118 soname_spec='${libname}${release}${shared_ext}$major'
10119 shlibpath_var=LD_LIBRARY_PATH
10120 ;;
10121
10122 freebsd* | dragonfly*)
10123 # DragonFly does not have aout. When/if they implement a new
10124 # versioning mechanism, adjust this.
10125 if test -x /usr/bin/objformat; then
10126 objformat=`/usr/bin/objformat`
10127 else
10128 case $host_os in
10129 freebsd[23].*) objformat=aout ;;
10130 *) objformat=elf ;;
10131 esac
10132 fi
10133 version_type=freebsd-$objformat
10134 case $version_type in
10135 freebsd-elf*)
10136 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10137 need_version=no
10138 need_lib_prefix=no
10139 ;;
10140 freebsd-*)
10141 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10142 need_version=yes
10143 ;;
10144 esac
10145 shlibpath_var=LD_LIBRARY_PATH
10146 case $host_os in
10147 freebsd2.*)
10148 shlibpath_overrides_runpath=yes
10149 ;;
10150 freebsd3.[01]* | freebsdelf3.[01]*)
10151 shlibpath_overrides_runpath=yes
10152 hardcode_into_libs=yes
10153 ;;
10154 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10155 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10156 shlibpath_overrides_runpath=no
10157 hardcode_into_libs=yes
10158 ;;
10159 *) # from 4.6 on, and DragonFly
10160 shlibpath_overrides_runpath=yes
10161 hardcode_into_libs=yes
10162 ;;
10163 esac
10164 ;;
10165
10166 gnu*)
10167 version_type=linux
10168 need_lib_prefix=no
10169 need_version=no
10170 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10171 soname_spec='${libname}${release}${shared_ext}$major'
10172 shlibpath_var=LD_LIBRARY_PATH
10173 hardcode_into_libs=yes
10174 ;;
10175
10176 haiku*)
10177 version_type=linux
10178 need_lib_prefix=no
10179 need_version=no
10180 dynamic_linker="$host_os runtime_loader"
10181 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10182 soname_spec='${libname}${release}${shared_ext}$major'
10183 shlibpath_var=LIBRARY_PATH
10184 shlibpath_overrides_runpath=yes
10185 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
10186 hardcode_into_libs=yes
10187 ;;
10188
10189 hpux9* | hpux10* | hpux11*)
10190 # Give a soname corresponding to the major version so that dld.sl refuses to
10191 # link against other versions.
10192 version_type=sunos
10193 need_lib_prefix=no
10194 need_version=no
10195 case $host_cpu in
10196 ia64*)
10197 shrext_cmds='.so'
10198 hardcode_into_libs=yes
10199 dynamic_linker="$host_os dld.so"
10200 shlibpath_var=LD_LIBRARY_PATH
10201 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10202 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10203 soname_spec='${libname}${release}${shared_ext}$major'
10204 if test "X$HPUX_IA64_MODE" = X32; then
10205 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10206 else
10207 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10208 fi
10209 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10210 ;;
10211 hppa*64*)
10212 shrext_cmds='.sl'
10213 hardcode_into_libs=yes
10214 dynamic_linker="$host_os dld.sl"
10215 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10216 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10217 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10218 soname_spec='${libname}${release}${shared_ext}$major'
10219 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10220 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10221 ;;
10222 *)
10223 shrext_cmds='.sl'
10224 dynamic_linker="$host_os dld.sl"
10225 shlibpath_var=SHLIB_PATH
10226 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10227 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10228 soname_spec='${libname}${release}${shared_ext}$major'
10229 ;;
10230 esac
10231 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
10232 postinstall_cmds='chmod 555 $lib'
10233 # or fails outright, so override atomically:
10234 install_override_mode=555
10235 ;;
10236
10237 interix[3-9]*)
10238 version_type=linux
10239 need_lib_prefix=no
10240 need_version=no
10241 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10242 soname_spec='${libname}${release}${shared_ext}$major'
10243 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10244 shlibpath_var=LD_LIBRARY_PATH
10245 shlibpath_overrides_runpath=no
10246 hardcode_into_libs=yes
10247 ;;
10248
10249 irix5* | irix6* | nonstopux*)
10250 case $host_os in
10251 nonstopux*) version_type=nonstopux ;;
10252 *)
10253 if test "$lt_cv_prog_gnu_ld" = yes; then
10254 version_type=linux
10255 else
10256 version_type=irix
10257 fi ;;
10258 esac
10259 need_lib_prefix=no
10260 need_version=no
10261 soname_spec='${libname}${release}${shared_ext}$major'
10262 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10263 case $host_os in
10264 irix5* | nonstopux*)
10265 libsuff= shlibsuff=
10266 ;;
10267 *)
10268 case $LD in # libtool.m4 will add one of these switches to LD
10269 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10270 libsuff= shlibsuff= libmagic=32-bit;;
10271 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10272 libsuff=32 shlibsuff=N32 libmagic=N32;;
10273 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10274 libsuff=64 shlibsuff=64 libmagic=64-bit;;
10275 *) libsuff= shlibsuff= libmagic=never-match;;
10276 esac
10277 ;;
10278 esac
10279 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10280 shlibpath_overrides_runpath=no
10281 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10282 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10283 hardcode_into_libs=yes
10284 ;;
10285
10286 # No shared lib support for Linux oldld, aout, or coff.
10287 linux*oldld* | linux*aout* | linux*coff*)
10288 dynamic_linker=no
10289 ;;
10290
10291 # This must be Linux ELF.
10292 linux* | k*bsd*-gnu | kopensolaris*-gnu)
10293 version_type=linux
10294 need_lib_prefix=no
10295 need_version=no
10296 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10297 soname_spec='${libname}${release}${shared_ext}$major'
10298 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10299 shlibpath_var=LD_LIBRARY_PATH
10300 shlibpath_overrides_runpath=no
10301
10302 # Some binutils ld are patched to set DT_RUNPATH
10303 if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
10304 $as_echo_n "(cached) " >&6
10305 else
10306 lt_cv_shlibpath_overrides_runpath=no
10307 save_LDFLAGS=$LDFLAGS
10308 save_libdir=$libdir
10309 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10310 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10311 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10312 /* end confdefs.h. */
10313
10314 int
10315 main ()
10316 {
10317
10318 ;
10319 return 0;
10320 }
10321 _ACEOF
10322 if ac_fn_c_try_link "$LINENO"; then :
10323 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
10324 lt_cv_shlibpath_overrides_runpath=yes
10325 fi
10326 fi
10327 rm -f core conftest.err conftest.$ac_objext \
10328 conftest$ac_exeext conftest.$ac_ext
10329 LDFLAGS=$save_LDFLAGS
10330 libdir=$save_libdir
10331
10332 fi
10333
10334 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
10335
10336 # This implies no fast_install, which is unacceptable.
10337 # Some rework will be needed to allow for fast_install
10338 # before this can be enabled.
10339 hardcode_into_libs=yes
10340
10341 # Append ld.so.conf contents to the search path
10342 if test -f /etc/ld.so.conf; then
10343 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' ' '`
10344 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10345 fi
10346
10347 # We used to test for /lib/ld.so.1 and disable shared libraries on
10348 # powerpc, because MkLinux only supported shared libraries with the
10349 # GNU dynamic linker. Since this was broken with cross compilers,
10350 # most powerpc-linux boxes support dynamic linking these days and
10351 # people can always --disable-shared, the test was removed, and we
10352 # assume the GNU/Linux dynamic linker is in use.
10353 dynamic_linker='GNU/Linux ld.so'
10354 ;;
10355
10356 netbsd*)
10357 version_type=sunos
10358 need_lib_prefix=no
10359 need_version=no
10360 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10361 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10362 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10363 dynamic_linker='NetBSD (a.out) ld.so'
10364 else
10365 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10366 soname_spec='${libname}${release}${shared_ext}$major'
10367 dynamic_linker='NetBSD ld.elf_so'
10368 fi
10369 shlibpath_var=LD_LIBRARY_PATH
10370 shlibpath_overrides_runpath=yes
10371 hardcode_into_libs=yes
10372 ;;
10373
10374 newsos6)
10375 version_type=linux
10376 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10377 shlibpath_var=LD_LIBRARY_PATH
10378 shlibpath_overrides_runpath=yes
10379 ;;
10380
10381 *nto* | *qnx*)
10382 version_type=qnx
10383 need_lib_prefix=no
10384 need_version=no
10385 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10386 soname_spec='${libname}${release}${shared_ext}$major'
10387 shlibpath_var=LD_LIBRARY_PATH
10388 shlibpath_overrides_runpath=no
10389 hardcode_into_libs=yes
10390 dynamic_linker='ldqnx.so'
10391 ;;
10392
10393 openbsd*)
10394 version_type=sunos
10395 sys_lib_dlsearch_path_spec="/usr/lib"
10396 need_lib_prefix=no
10397 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10398 case $host_os in
10399 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
10400 *) need_version=no ;;
10401 esac
10402 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10403 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10404 shlibpath_var=LD_LIBRARY_PATH
10405 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10406 case $host_os in
10407 openbsd2.[89] | openbsd2.[89].*)
10408 shlibpath_overrides_runpath=no
10409 ;;
10410 *)
10411 shlibpath_overrides_runpath=yes
10412 ;;
10413 esac
10414 else
10415 shlibpath_overrides_runpath=yes
10416 fi
10417 ;;
10418
10419 os2*)
10420 libname_spec='$name'
10421 shrext_cmds=".dll"
10422 need_lib_prefix=no
10423 library_names_spec='$libname${shared_ext} $libname.a'
10424 dynamic_linker='OS/2 ld.exe'
10425 shlibpath_var=LIBPATH
10426 ;;
10427
10428 osf3* | osf4* | osf5*)
10429 version_type=osf
10430 need_lib_prefix=no
10431 need_version=no
10432 soname_spec='${libname}${release}${shared_ext}$major'
10433 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10434 shlibpath_var=LD_LIBRARY_PATH
10435 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10436 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10437 ;;
10438
10439 rdos*)
10440 dynamic_linker=no
10441 ;;
10442
10443 solaris*)
10444 version_type=linux
10445 need_lib_prefix=no
10446 need_version=no
10447 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10448 soname_spec='${libname}${release}${shared_ext}$major'
10449 shlibpath_var=LD_LIBRARY_PATH
10450 shlibpath_overrides_runpath=yes
10451 hardcode_into_libs=yes
10452 # ldd complains unless libraries are executable
10453 postinstall_cmds='chmod +x $lib'
10454 ;;
10455
10456 sunos4*)
10457 version_type=sunos
10458 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10459 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10460 shlibpath_var=LD_LIBRARY_PATH
10461 shlibpath_overrides_runpath=yes
10462 if test "$with_gnu_ld" = yes; then
10463 need_lib_prefix=no
10464 fi
10465 need_version=yes
10466 ;;
10467
10468 sysv4 | sysv4.3*)
10469 version_type=linux
10470 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10471 soname_spec='${libname}${release}${shared_ext}$major'
10472 shlibpath_var=LD_LIBRARY_PATH
10473 case $host_vendor in
10474 sni)
10475 shlibpath_overrides_runpath=no
10476 need_lib_prefix=no
10477 runpath_var=LD_RUN_PATH
10478 ;;
10479 siemens)
10480 need_lib_prefix=no
10481 ;;
10482 motorola)
10483 need_lib_prefix=no
10484 need_version=no
10485 shlibpath_overrides_runpath=no
10486 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10487 ;;
10488 esac
10489 ;;
10490
10491 sysv4*MP*)
10492 if test -d /usr/nec ;then
10493 version_type=linux
10494 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10495 soname_spec='$libname${shared_ext}.$major'
10496 shlibpath_var=LD_LIBRARY_PATH
10497 fi
10498 ;;
10499
10500 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10501 version_type=freebsd-elf
10502 need_lib_prefix=no
10503 need_version=no
10504 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10505 soname_spec='${libname}${release}${shared_ext}$major'
10506 shlibpath_var=LD_LIBRARY_PATH
10507 shlibpath_overrides_runpath=yes
10508 hardcode_into_libs=yes
10509 if test "$with_gnu_ld" = yes; then
10510 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10511 else
10512 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10513 case $host_os in
10514 sco3.2v5*)
10515 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10516 ;;
10517 esac
10518 fi
10519 sys_lib_dlsearch_path_spec='/usr/lib'
10520 ;;
10521
10522 tpf*)
10523 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
10524 version_type=linux
10525 need_lib_prefix=no
10526 need_version=no
10527 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10528 shlibpath_var=LD_LIBRARY_PATH
10529 shlibpath_overrides_runpath=no
10530 hardcode_into_libs=yes
10531 ;;
10532
10533 uts4*)
10534 version_type=linux
10535 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10536 soname_spec='${libname}${release}${shared_ext}$major'
10537 shlibpath_var=LD_LIBRARY_PATH
10538 ;;
10539
10540 *)
10541 dynamic_linker=no
10542 ;;
10543 esac
10544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
10545 $as_echo "$dynamic_linker" >&6; }
10546 test "$dynamic_linker" = no && can_build_shared=no
10547
10548 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10549 if test "$GCC" = yes; then
10550 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10551 fi
10552
10553 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
10554 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
10555 fi
10556 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
10557 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
10558 fi
10559
10560
10561
10562
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 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
10652 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
10653 hardcode_action=
10654 if test -n "$hardcode_libdir_flag_spec" ||
10655 test -n "$runpath_var" ||
10656 test "X$hardcode_automatic" = "Xyes" ; then
10657
10658 # We can hardcode non-existent directories.
10659 if test "$hardcode_direct" != no &&
10660 # If the only mechanism to avoid hardcoding is shlibpath_var, we
10661 # have to relink, otherwise we might link with an installed library
10662 # when we should be linking with a yet-to-be-installed one
10663 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
10664 test "$hardcode_minus_L" != no; then
10665 # Linking always hardcodes the temporary library directory.
10666 hardcode_action=relink
10667 else
10668 # We can link without hardcoding, and we can hardcode nonexisting dirs.
10669 hardcode_action=immediate
10670 fi
10671 else
10672 # We cannot hardcode anything, or else we can only hardcode existing
10673 # directories.
10674 hardcode_action=unsupported
10675 fi
10676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
10677 $as_echo "$hardcode_action" >&6; }
10678
10679 if test "$hardcode_action" = relink ||
10680 test "$inherit_rpath" = yes; then
10681 # Fast installation is not supported
10682 enable_fast_install=no
10683 elif test "$shlibpath_overrides_runpath" = yes ||
10684 test "$enable_shared" = no; then
10685 # Fast installation is not necessary
10686 enable_fast_install=needless
10687 fi
10688
10689
10690
10691
10692
10693
10694 if test "x$enable_dlopen" != xyes; then
10695 enable_dlopen=unknown
10696 enable_dlopen_self=unknown
10697 enable_dlopen_self_static=unknown
10698 else
10699 lt_cv_dlopen=no
10700 lt_cv_dlopen_libs=
10701
10702 case $host_os in
10703 beos*)
10704 lt_cv_dlopen="load_add_on"
10705 lt_cv_dlopen_libs=
10706 lt_cv_dlopen_self=yes
10707 ;;
10708
10709 mingw* | pw32* | cegcc*)
10710 lt_cv_dlopen="LoadLibrary"
10711 lt_cv_dlopen_libs=
10712 ;;
10713
10714 cygwin*)
10715 lt_cv_dlopen="dlopen"
10716 lt_cv_dlopen_libs=
10717 ;;
10718
10719 darwin*)
10720 # if libdl is installed we need to link against it
10721 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10722 $as_echo_n "checking for dlopen in -ldl... " >&6; }
10723 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
10724 $as_echo_n "(cached) " >&6
10725 else
10726 ac_check_lib_save_LIBS=$LIBS
10727 LIBS="-ldl $LIBS"
10728 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10729 /* end confdefs.h. */
10730
10731 /* Override any GCC internal prototype to avoid an error.
10732 Use char because int might match the return type of a GCC
10733 builtin and then its argument prototype would still apply. */
10734 #ifdef __cplusplus
10735 extern "C"
10736 #endif
10737 char dlopen ();
10738 int
10739 main ()
10740 {
10741 return dlopen ();
10742 ;
10743 return 0;
10744 }
10745 _ACEOF
10746 if ac_fn_c_try_link "$LINENO"; then :
10747 ac_cv_lib_dl_dlopen=yes
10748 else
10749 ac_cv_lib_dl_dlopen=no
10750 fi
10751 rm -f core conftest.err conftest.$ac_objext \
10752 conftest$ac_exeext conftest.$ac_ext
10753 LIBS=$ac_check_lib_save_LIBS
10754 fi
10755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10756 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10757 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
10758 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10759 else
10760
10761 lt_cv_dlopen="dyld"
10762 lt_cv_dlopen_libs=
10763 lt_cv_dlopen_self=yes
10764
10765 fi
10766
10767 ;;
10768
10769 *)
10770 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
10771 if test "x$ac_cv_func_shl_load" = x""yes; then :
10772 lt_cv_dlopen="shl_load"
10773 else
10774 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
10775 $as_echo_n "checking for shl_load in -ldld... " >&6; }
10776 if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
10777 $as_echo_n "(cached) " >&6
10778 else
10779 ac_check_lib_save_LIBS=$LIBS
10780 LIBS="-ldld $LIBS"
10781 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10782 /* end confdefs.h. */
10783
10784 /* Override any GCC internal prototype to avoid an error.
10785 Use char because int might match the return type of a GCC
10786 builtin and then its argument prototype would still apply. */
10787 #ifdef __cplusplus
10788 extern "C"
10789 #endif
10790 char shl_load ();
10791 int
10792 main ()
10793 {
10794 return shl_load ();
10795 ;
10796 return 0;
10797 }
10798 _ACEOF
10799 if ac_fn_c_try_link "$LINENO"; then :
10800 ac_cv_lib_dld_shl_load=yes
10801 else
10802 ac_cv_lib_dld_shl_load=no
10803 fi
10804 rm -f core conftest.err conftest.$ac_objext \
10805 conftest$ac_exeext conftest.$ac_ext
10806 LIBS=$ac_check_lib_save_LIBS
10807 fi
10808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
10809 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
10810 if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
10811 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
10812 else
10813 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
10814 if test "x$ac_cv_func_dlopen" = x""yes; then :
10815 lt_cv_dlopen="dlopen"
10816 else
10817 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10818 $as_echo_n "checking for dlopen in -ldl... " >&6; }
10819 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
10820 $as_echo_n "(cached) " >&6
10821 else
10822 ac_check_lib_save_LIBS=$LIBS
10823 LIBS="-ldl $LIBS"
10824 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10825 /* end confdefs.h. */
10826
10827 /* Override any GCC internal prototype to avoid an error.
10828 Use char because int might match the return type of a GCC
10829 builtin and then its argument prototype would still apply. */
10830 #ifdef __cplusplus
10831 extern "C"
10832 #endif
10833 char dlopen ();
10834 int
10835 main ()
10836 {
10837 return dlopen ();
10838 ;
10839 return 0;
10840 }
10841 _ACEOF
10842 if ac_fn_c_try_link "$LINENO"; then :
10843 ac_cv_lib_dl_dlopen=yes
10844 else
10845 ac_cv_lib_dl_dlopen=no
10846 fi
10847 rm -f core conftest.err conftest.$ac_objext \
10848 conftest$ac_exeext conftest.$ac_ext
10849 LIBS=$ac_check_lib_save_LIBS
10850 fi
10851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10852 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10853 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
10854 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10855 else
10856 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
10857 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
10858 if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
10859 $as_echo_n "(cached) " >&6
10860 else
10861 ac_check_lib_save_LIBS=$LIBS
10862 LIBS="-lsvld $LIBS"
10863 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10864 /* end confdefs.h. */
10865
10866 /* Override any GCC internal prototype to avoid an error.
10867 Use char because int might match the return type of a GCC
10868 builtin and then its argument prototype would still apply. */
10869 #ifdef __cplusplus
10870 extern "C"
10871 #endif
10872 char dlopen ();
10873 int
10874 main ()
10875 {
10876 return dlopen ();
10877 ;
10878 return 0;
10879 }
10880 _ACEOF
10881 if ac_fn_c_try_link "$LINENO"; then :
10882 ac_cv_lib_svld_dlopen=yes
10883 else
10884 ac_cv_lib_svld_dlopen=no
10885 fi
10886 rm -f core conftest.err conftest.$ac_objext \
10887 conftest$ac_exeext conftest.$ac_ext
10888 LIBS=$ac_check_lib_save_LIBS
10889 fi
10890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
10891 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
10892 if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
10893 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10894 else
10895 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
10896 $as_echo_n "checking for dld_link in -ldld... " >&6; }
10897 if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
10898 $as_echo_n "(cached) " >&6
10899 else
10900 ac_check_lib_save_LIBS=$LIBS
10901 LIBS="-ldld $LIBS"
10902 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10903 /* end confdefs.h. */
10904
10905 /* Override any GCC internal prototype to avoid an error.
10906 Use char because int might match the return type of a GCC
10907 builtin and then its argument prototype would still apply. */
10908 #ifdef __cplusplus
10909 extern "C"
10910 #endif
10911 char dld_link ();
10912 int
10913 main ()
10914 {
10915 return dld_link ();
10916 ;
10917 return 0;
10918 }
10919 _ACEOF
10920 if ac_fn_c_try_link "$LINENO"; then :
10921 ac_cv_lib_dld_dld_link=yes
10922 else
10923 ac_cv_lib_dld_dld_link=no
10924 fi
10925 rm -f core conftest.err conftest.$ac_objext \
10926 conftest$ac_exeext conftest.$ac_ext
10927 LIBS=$ac_check_lib_save_LIBS
10928 fi
10929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
10930 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
10931 if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
10932 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
10933 fi
10934
10935
10936 fi
10937
10938
10939 fi
10940
10941
10942 fi
10943
10944
10945 fi
10946
10947
10948 fi
10949
10950 ;;
10951 esac
10952
10953 if test "x$lt_cv_dlopen" != xno; then
10954 enable_dlopen=yes
10955 else
10956 enable_dlopen=no
10957 fi
10958
10959 case $lt_cv_dlopen in
10960 dlopen)
10961 save_CPPFLAGS="$CPPFLAGS"
10962 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
10963
10964 save_LDFLAGS="$LDFLAGS"
10965 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
10966
10967 save_LIBS="$LIBS"
10968 LIBS="$lt_cv_dlopen_libs $LIBS"
10969
10970 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
10971 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
10972 if test "${lt_cv_dlopen_self+set}" = set; then :
10973 $as_echo_n "(cached) " >&6
10974 else
10975 if test "$cross_compiling" = yes; then :
10976 lt_cv_dlopen_self=cross
10977 else
10978 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10979 lt_status=$lt_dlunknown
10980 cat > conftest.$ac_ext <<_LT_EOF
10981 #line 10981 "configure"
10982 #include "confdefs.h"
10983
10984 #if HAVE_DLFCN_H
10985 #include <dlfcn.h>
10986 #endif
10987
10988 #include <stdio.h>
10989
10990 #ifdef RTLD_GLOBAL
10991 # define LT_DLGLOBAL RTLD_GLOBAL
10992 #else
10993 # ifdef DL_GLOBAL
10994 # define LT_DLGLOBAL DL_GLOBAL
10995 # else
10996 # define LT_DLGLOBAL 0
10997 # endif
10998 #endif
10999
11000 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11001 find out it does not work in some platform. */
11002 #ifndef LT_DLLAZY_OR_NOW
11003 # ifdef RTLD_LAZY
11004 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11005 # else
11006 # ifdef DL_LAZY
11007 # define LT_DLLAZY_OR_NOW DL_LAZY
11008 # else
11009 # ifdef RTLD_NOW
11010 # define LT_DLLAZY_OR_NOW RTLD_NOW
11011 # else
11012 # ifdef DL_NOW
11013 # define LT_DLLAZY_OR_NOW DL_NOW
11014 # else
11015 # define LT_DLLAZY_OR_NOW 0
11016 # endif
11017 # endif
11018 # endif
11019 # endif
11020 #endif
11021
11022 /* When -fvisbility=hidden is used, assume the code has been annotated
11023 correspondingly for the symbols needed. */
11024 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11025 void fnord () __attribute__((visibility("default")));
11026 #endif
11027
11028 void fnord () { int i=42; }
11029 int main ()
11030 {
11031 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11032 int status = $lt_dlunknown;
11033
11034 if (self)
11035 {
11036 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11037 else
11038 {
11039 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11040 else puts (dlerror ());
11041 }
11042 /* dlclose (self); */
11043 }
11044 else
11045 puts (dlerror ());
11046
11047 return status;
11048 }
11049 _LT_EOF
11050 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11051 (eval $ac_link) 2>&5
11052 ac_status=$?
11053 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11054 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11055 (./conftest; exit; ) >&5 2>/dev/null
11056 lt_status=$?
11057 case x$lt_status in
11058 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11059 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11060 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11061 esac
11062 else :
11063 # compilation failed
11064 lt_cv_dlopen_self=no
11065 fi
11066 fi
11067 rm -fr conftest*
11068
11069
11070 fi
11071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11072 $as_echo "$lt_cv_dlopen_self" >&6; }
11073
11074 if test "x$lt_cv_dlopen_self" = xyes; then
11075 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11076 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11077 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11078 if test "${lt_cv_dlopen_self_static+set}" = set; then :
11079 $as_echo_n "(cached) " >&6
11080 else
11081 if test "$cross_compiling" = yes; then :
11082 lt_cv_dlopen_self_static=cross
11083 else
11084 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11085 lt_status=$lt_dlunknown
11086 cat > conftest.$ac_ext <<_LT_EOF
11087 #line 11087 "configure"
11088 #include "confdefs.h"
11089
11090 #if HAVE_DLFCN_H
11091 #include <dlfcn.h>
11092 #endif
11093
11094 #include <stdio.h>
11095
11096 #ifdef RTLD_GLOBAL
11097 # define LT_DLGLOBAL RTLD_GLOBAL
11098 #else
11099 # ifdef DL_GLOBAL
11100 # define LT_DLGLOBAL DL_GLOBAL
11101 # else
11102 # define LT_DLGLOBAL 0
11103 # endif
11104 #endif
11105
11106 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11107 find out it does not work in some platform. */
11108 #ifndef LT_DLLAZY_OR_NOW
11109 # ifdef RTLD_LAZY
11110 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11111 # else
11112 # ifdef DL_LAZY
11113 # define LT_DLLAZY_OR_NOW DL_LAZY
11114 # else
11115 # ifdef RTLD_NOW
11116 # define LT_DLLAZY_OR_NOW RTLD_NOW
11117 # else
11118 # ifdef DL_NOW
11119 # define LT_DLLAZY_OR_NOW DL_NOW
11120 # else
11121 # define LT_DLLAZY_OR_NOW 0
11122 # endif
11123 # endif
11124 # endif
11125 # endif
11126 #endif
11127
11128 /* When -fvisbility=hidden is used, assume the code has been annotated
11129 correspondingly for the symbols needed. */
11130 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11131 void fnord () __attribute__((visibility("default")));
11132 #endif
11133
11134 void fnord () { int i=42; }
11135 int main ()
11136 {
11137 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11138 int status = $lt_dlunknown;
11139
11140 if (self)
11141 {
11142 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11143 else
11144 {
11145 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11146 else puts (dlerror ());
11147 }
11148 /* dlclose (self); */
11149 }
11150 else
11151 puts (dlerror ());
11152
11153 return status;
11154 }
11155 _LT_EOF
11156 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11157 (eval $ac_link) 2>&5
11158 ac_status=$?
11159 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11160 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11161 (./conftest; exit; ) >&5 2>/dev/null
11162 lt_status=$?
11163 case x$lt_status in
11164 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11165 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11166 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11167 esac
11168 else :
11169 # compilation failed
11170 lt_cv_dlopen_self_static=no
11171 fi
11172 fi
11173 rm -fr conftest*
11174
11175
11176 fi
11177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11178 $as_echo "$lt_cv_dlopen_self_static" >&6; }
11179 fi
11180
11181 CPPFLAGS="$save_CPPFLAGS"
11182 LDFLAGS="$save_LDFLAGS"
11183 LIBS="$save_LIBS"
11184 ;;
11185 esac
11186
11187 case $lt_cv_dlopen_self in
11188 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11189 *) enable_dlopen_self=unknown ;;
11190 esac
11191
11192 case $lt_cv_dlopen_self_static in
11193 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11194 *) enable_dlopen_self_static=unknown ;;
11195 esac
11196 fi
11197
11198
11199
11200
11201
11202
11203
11204
11205
11206
11207
11208
11209
11210
11211
11212
11213
11214 striplib=
11215 old_striplib=
11216 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11217 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
11218 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11219 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11220 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11222 $as_echo "yes" >&6; }
11223 else
11224 # FIXME - insert some real tests, host_os isn't really good enough
11225 case $host_os in
11226 darwin*)
11227 if test -n "$STRIP" ; then
11228 striplib="$STRIP -x"
11229 old_striplib="$STRIP -S"
11230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11231 $as_echo "yes" >&6; }
11232 else
11233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11234 $as_echo "no" >&6; }
11235 fi
11236 ;;
11237 *)
11238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11239 $as_echo "no" >&6; }
11240 ;;
11241 esac
11242 fi
11243
11244
11245
11246
11247
11248
11249
11250
11251
11252
11253
11254
11255 # Report which library types will actually be built
11256 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
11257 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
11258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
11259 $as_echo "$can_build_shared" >&6; }
11260
11261 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
11262 $as_echo_n "checking whether to build shared libraries... " >&6; }
11263 test "$can_build_shared" = "no" && enable_shared=no
11264
11265 # On AIX, shared libraries and static libraries use the same namespace, and
11266 # are all built from PIC.
11267 case $host_os in
11268 aix3*)
11269 test "$enable_shared" = yes && enable_static=no
11270 if test -n "$RANLIB"; then
11271 archive_cmds="$archive_cmds~\$RANLIB \$lib"
11272 postinstall_cmds='$RANLIB $lib'
11273 fi
11274 ;;
11275
11276 aix[4-9]*)
11277 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11278 test "$enable_shared" = yes && enable_static=no
11279 fi
11280 ;;
11281 esac
11282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
11283 $as_echo "$enable_shared" >&6; }
11284
11285 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
11286 $as_echo_n "checking whether to build static libraries... " >&6; }
11287 # Make sure either enable_shared or enable_static is yes.
11288 test "$enable_shared" = yes || enable_static=yes
11289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
11290 $as_echo "$enable_static" >&6; }
11291
11292
11293
11294
11295 fi
11296 ac_ext=c
11297 ac_cpp='$CPP $CPPFLAGS'
11298 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11299 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11300 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11301
11302 CC="$lt_save_CC"
11303
11304
11305
11306
11307
11308
11309
11310
11311
11312
11313
11314
11315
11316 ac_config_commands="$ac_config_commands libtool"
11317
11318
11319
11320
11321 # Only expand once:
11322
11323
11324
11325 # The tests for host and target for $enable_largefile require
11326 # canonical names.
11327
11328
11329
11330 # As the $enable_largefile decision depends on --enable-plugins we must set it
11331 # even in directories otherwise not depending on the $plugins option.
11332
11333
11334 maybe_plugins=no
11335 for ac_header in dlfcn.h
11336 do :
11337 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
11338 "
11339 if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
11340 cat >>confdefs.h <<_ACEOF
11341 #define HAVE_DLFCN_H 1
11342 _ACEOF
11343 maybe_plugins=yes
11344 fi
11345
11346 done
11347
11348 for ac_header in windows.h
11349 do :
11350 ac_fn_c_check_header_compile "$LINENO" "windows.h" "ac_cv_header_windows_h" "$ac_includes_default
11351 "
11352 if test "x$ac_cv_header_windows_h" = x""yes; then :
11353 cat >>confdefs.h <<_ACEOF
11354 #define HAVE_WINDOWS_H 1
11355 _ACEOF
11356 maybe_plugins=yes
11357 fi
11358
11359 done
11360
11361
11362 # Check whether --enable-plugins was given.
11363 if test "${enable_plugins+set}" = set; then :
11364 enableval=$enable_plugins; case "${enableval}" in
11365 no) plugins=no ;;
11366 *) plugins=yes
11367 if test "$maybe_plugins" != "yes" ; then
11368 as_fn_error "Building with plugin support requires a host that supports dlopen." "$LINENO" 5
11369 fi ;;
11370 esac
11371 else
11372 plugins=$maybe_plugins
11373
11374 fi
11375
11376 if test "$plugins" = "yes"; then
11377 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
11378 $as_echo_n "checking for library containing dlopen... " >&6; }
11379 if test "${ac_cv_search_dlopen+set}" = set; then :
11380 $as_echo_n "(cached) " >&6
11381 else
11382 ac_func_search_save_LIBS=$LIBS
11383 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11384 /* end confdefs.h. */
11385
11386 /* Override any GCC internal prototype to avoid an error.
11387 Use char because int might match the return type of a GCC
11388 builtin and then its argument prototype would still apply. */
11389 #ifdef __cplusplus
11390 extern "C"
11391 #endif
11392 char dlopen ();
11393 int
11394 main ()
11395 {
11396 return dlopen ();
11397 ;
11398 return 0;
11399 }
11400 _ACEOF
11401 for ac_lib in '' dl; do
11402 if test -z "$ac_lib"; then
11403 ac_res="none required"
11404 else
11405 ac_res=-l$ac_lib
11406 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
11407 fi
11408 if ac_fn_c_try_link "$LINENO"; then :
11409 ac_cv_search_dlopen=$ac_res
11410 fi
11411 rm -f core conftest.err conftest.$ac_objext \
11412 conftest$ac_exeext
11413 if test "${ac_cv_search_dlopen+set}" = set; then :
11414 break
11415 fi
11416 done
11417 if test "${ac_cv_search_dlopen+set}" = set; then :
11418
11419 else
11420 ac_cv_search_dlopen=no
11421 fi
11422 rm conftest.$ac_ext
11423 LIBS=$ac_func_search_save_LIBS
11424 fi
11425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
11426 $as_echo "$ac_cv_search_dlopen" >&6; }
11427 ac_res=$ac_cv_search_dlopen
11428 if test "$ac_res" != no; then :
11429 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
11430
11431 fi
11432
11433 fi
11434
11435
11436 case "${host}" in
11437 sparc-*-solaris*|i[3-7]86-*-solaris*)
11438 # On native 32bit sparc and ia32 solaris, large-file and procfs support
11439 # are mutually exclusive; and without procfs support, the bfd/ elf module
11440 # cannot provide certain routines such as elfcore_write_prpsinfo
11441 # or elfcore_write_prstatus. So unless the user explicitly requested
11442 # large-file support through the --enable-largefile switch, disable
11443 # large-file support in favor of procfs support.
11444 test "${target}" = "${host}" -a "x$plugins" = xno \
11445 && : ${enable_largefile="no"}
11446 ;;
11447 esac
11448
11449 # Check whether --enable-largefile was given.
11450 if test "${enable_largefile+set}" = set; then :
11451 enableval=$enable_largefile;
11452 fi
11453
11454 if test "$enable_largefile" != no; then
11455
11456 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
11457 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
11458 if test "${ac_cv_sys_largefile_CC+set}" = set; then :
11459 $as_echo_n "(cached) " >&6
11460 else
11461 ac_cv_sys_largefile_CC=no
11462 if test "$GCC" != yes; then
11463 ac_save_CC=$CC
11464 while :; do
11465 # IRIX 6.2 and later do not support large files by default,
11466 # so use the C compiler's -n32 option if that helps.
11467 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11468 /* end confdefs.h. */
11469 #include <sys/types.h>
11470 /* Check that off_t can represent 2**63 - 1 correctly.
11471 We can't simply define LARGE_OFF_T to be 9223372036854775807,
11472 since some C++ compilers masquerading as C compilers
11473 incorrectly reject 9223372036854775807. */
11474 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
11475 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
11476 && LARGE_OFF_T % 2147483647 == 1)
11477 ? 1 : -1];
11478 int
11479 main ()
11480 {
11481
11482 ;
11483 return 0;
11484 }
11485 _ACEOF
11486 if ac_fn_c_try_compile "$LINENO"; then :
11487 break
11488 fi
11489 rm -f core conftest.err conftest.$ac_objext
11490 CC="$CC -n32"
11491 if ac_fn_c_try_compile "$LINENO"; then :
11492 ac_cv_sys_largefile_CC=' -n32'; break
11493 fi
11494 rm -f core conftest.err conftest.$ac_objext
11495 break
11496 done
11497 CC=$ac_save_CC
11498 rm -f conftest.$ac_ext
11499 fi
11500 fi
11501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
11502 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
11503 if test "$ac_cv_sys_largefile_CC" != no; then
11504 CC=$CC$ac_cv_sys_largefile_CC
11505 fi
11506
11507 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
11508 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
11509 if test "${ac_cv_sys_file_offset_bits+set}" = set; then :
11510 $as_echo_n "(cached) " >&6
11511 else
11512 while :; do
11513 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11514 /* end confdefs.h. */
11515 #include <sys/types.h>
11516 /* Check that off_t can represent 2**63 - 1 correctly.
11517 We can't simply define LARGE_OFF_T to be 9223372036854775807,
11518 since some C++ compilers masquerading as C compilers
11519 incorrectly reject 9223372036854775807. */
11520 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
11521 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
11522 && LARGE_OFF_T % 2147483647 == 1)
11523 ? 1 : -1];
11524 int
11525 main ()
11526 {
11527
11528 ;
11529 return 0;
11530 }
11531 _ACEOF
11532 if ac_fn_c_try_compile "$LINENO"; then :
11533 ac_cv_sys_file_offset_bits=no; break
11534 fi
11535 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11536 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11537 /* end confdefs.h. */
11538 #define _FILE_OFFSET_BITS 64
11539 #include <sys/types.h>
11540 /* Check that off_t can represent 2**63 - 1 correctly.
11541 We can't simply define LARGE_OFF_T to be 9223372036854775807,
11542 since some C++ compilers masquerading as C compilers
11543 incorrectly reject 9223372036854775807. */
11544 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
11545 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
11546 && LARGE_OFF_T % 2147483647 == 1)
11547 ? 1 : -1];
11548 int
11549 main ()
11550 {
11551
11552 ;
11553 return 0;
11554 }
11555 _ACEOF
11556 if ac_fn_c_try_compile "$LINENO"; then :
11557 ac_cv_sys_file_offset_bits=64; break
11558 fi
11559 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11560 ac_cv_sys_file_offset_bits=unknown
11561 break
11562 done
11563 fi
11564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
11565 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
11566 case $ac_cv_sys_file_offset_bits in #(
11567 no | unknown) ;;
11568 *)
11569 cat >>confdefs.h <<_ACEOF
11570 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
11571 _ACEOF
11572 ;;
11573 esac
11574 rm -rf conftest*
11575 if test $ac_cv_sys_file_offset_bits = unknown; then
11576 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
11577 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
11578 if test "${ac_cv_sys_large_files+set}" = set; then :
11579 $as_echo_n "(cached) " >&6
11580 else
11581 while :; do
11582 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11583 /* end confdefs.h. */
11584 #include <sys/types.h>
11585 /* Check that off_t can represent 2**63 - 1 correctly.
11586 We can't simply define LARGE_OFF_T to be 9223372036854775807,
11587 since some C++ compilers masquerading as C compilers
11588 incorrectly reject 9223372036854775807. */
11589 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
11590 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
11591 && LARGE_OFF_T % 2147483647 == 1)
11592 ? 1 : -1];
11593 int
11594 main ()
11595 {
11596
11597 ;
11598 return 0;
11599 }
11600 _ACEOF
11601 if ac_fn_c_try_compile "$LINENO"; then :
11602 ac_cv_sys_large_files=no; break
11603 fi
11604 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11605 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11606 /* end confdefs.h. */
11607 #define _LARGE_FILES 1
11608 #include <sys/types.h>
11609 /* Check that off_t can represent 2**63 - 1 correctly.
11610 We can't simply define LARGE_OFF_T to be 9223372036854775807,
11611 since some C++ compilers masquerading as C compilers
11612 incorrectly reject 9223372036854775807. */
11613 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
11614 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
11615 && LARGE_OFF_T % 2147483647 == 1)
11616 ? 1 : -1];
11617 int
11618 main ()
11619 {
11620
11621 ;
11622 return 0;
11623 }
11624 _ACEOF
11625 if ac_fn_c_try_compile "$LINENO"; then :
11626 ac_cv_sys_large_files=1; break
11627 fi
11628 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11629 ac_cv_sys_large_files=unknown
11630 break
11631 done
11632 fi
11633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
11634 $as_echo "$ac_cv_sys_large_files" >&6; }
11635 case $ac_cv_sys_large_files in #(
11636 no | unknown) ;;
11637 *)
11638 cat >>confdefs.h <<_ACEOF
11639 #define _LARGE_FILES $ac_cv_sys_large_files
11640 _ACEOF
11641 ;;
11642 esac
11643 rm -rf conftest*
11644 fi
11645 fi
11646
11647
11648
11649 # Check whether --enable-targets was given.
11650 if test "${enable_targets+set}" = set; then :
11651 enableval=$enable_targets; case "${enableval}" in
11652 yes | "") as_fn_error "enable-targets option must specify target names or 'all'" "$LINENO" 5
11653 ;;
11654 no) enable_targets= ;;
11655 *) enable_targets=$enableval ;;
11656 esac
11657 fi
11658
11659 ac_checking=yes
11660 if grep '^RELEASE=y' ${srcdir}/../bfd/Makefile.am >/dev/null 2>/dev/null ; then
11661 ac_checking=
11662 fi
11663 # Check whether --enable-checking was given.
11664 if test "${enable_checking+set}" = set; then :
11665 enableval=$enable_checking; case "${enableval}" in
11666 no|none) ac_checking= ;;
11667 *) ac_checking=yes ;;
11668 esac
11669 fi
11670 if test x$ac_checking != x ; then
11671
11672 $as_echo "#define ENABLE_CHECKING 1" >>confdefs.h
11673
11674 fi
11675
11676 # PR gas/19109
11677 # Decide the default method for compressing debug sections.
11678 ac_default_compressed_debug_sections=unset
11679 # Provide a configure time option to override our default.
11680 # Check whether --enable-compressed_debug_sections was given.
11681 if test "${enable_compressed_debug_sections+set}" = set; then :
11682 enableval=$enable_compressed_debug_sections; case ,"${enableval}", in
11683 ,yes, | ,all, | *,gas,*) ac_default_compressed_debug_sections=yes ;;
11684 ,no, | ,none,) ac_default_compressed_debug_sections=no ;;
11685 *) ac_default_compressed_debug_sections=unset ;;
11686 esac
11687 fi
11688
11689 # PR gas/19520
11690 # Decide if x86 assembler should generate relax relocations.
11691 ac_default_x86_relax_relocations=unset
11692 # Provide a configure time option to override our default.
11693 # Check whether --enable-x86_relax_relocations was given.
11694 if test "${enable_x86_relax_relocations+set}" = set; then :
11695 enableval=$enable_x86_relax_relocations; case "${enableval}" in
11696 no) ac_default_x86_relax_relocations=0 ;;
11697 esac
11698 fi
11699
11700 # Decide if ELF assembler should generate common symbols with the
11701 # STT_COMMON type.
11702 ac_default_elf_stt_common=unset
11703 # Provide a configure time option to override our default.
11704 # Check whether --enable-elf_stt_common was given.
11705 if test "${enable_elf_stt_common+set}" = set; then :
11706 enableval=$enable_elf_stt_common; case "${enableval}" in
11707 yes) ac_default_elf_stt_common=1 ;;
11708 esac
11709 fi
11710
11711 using_cgen=no
11712
11713
11714 # Set the 'development' global.
11715 . $srcdir/../bfd/development.sh
11716
11717 # Default set of GCC warnings to enable.
11718 GCC_WARN_CFLAGS="-W -Wall -Wstrict-prototypes -Wmissing-prototypes"
11719
11720 # Add -Wshadow if the compiler is a sufficiently recent version of GCC.
11721 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11722 /* end confdefs.h. */
11723 __GNUC__
11724 _ACEOF
11725 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11726 $EGREP "^[0-3]$" >/dev/null 2>&1; then :
11727
11728 else
11729 GCC_WARN_CFLAGS="$GCC_WARN_CFLAGS -Wshadow"
11730 fi
11731 rm -f conftest*
11732
11733
11734 # Add -Wstack-usage if the compiler is a sufficiently recent version of GCC.
11735 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11736 /* end confdefs.h. */
11737 __GNUC__
11738 _ACEOF
11739 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11740 $EGREP "^[0-4]$" >/dev/null 2>&1; then :
11741
11742 else
11743 GCC_WARN_CFLAGS="$GCC_WARN_CFLAGS -Wstack-usage=262144"
11744 fi
11745 rm -f conftest*
11746
11747
11748
11749 # Check whether --enable-werror was given.
11750 if test "${enable_werror+set}" = set; then :
11751 enableval=$enable_werror; case "${enableval}" in
11752 yes | y) ERROR_ON_WARNING="yes" ;;
11753 no | n) ERROR_ON_WARNING="no" ;;
11754 *) as_fn_error "bad value ${enableval} for --enable-werror" "$LINENO" 5 ;;
11755 esac
11756 fi
11757
11758
11759 # Disable -Wformat by default when using gcc on mingw
11760 case "${host}" in
11761 *-*-mingw32*)
11762 if test "${GCC}" = yes -a -z "${ERROR_ON_WARNING}" ; then
11763 GCC_WARN_CFLAGS="$GCC_WARN_CFLAGS -Wno-format"
11764 fi
11765 ;;
11766 *) ;;
11767 esac
11768
11769 # Enable -Werror by default when using gcc. Turn it off for releases.
11770 if test "${GCC}" = yes -a -z "${ERROR_ON_WARNING}" -a "$development" = true ; then
11771 ERROR_ON_WARNING=yes
11772 fi
11773
11774 NO_WERROR=
11775 if test "${ERROR_ON_WARNING}" = yes ; then
11776 GCC_WARN_CFLAGS="$GCC_WARN_CFLAGS -Werror"
11777 NO_WERROR="-Wno-error"
11778 fi
11779
11780 if test "${GCC}" = yes ; then
11781 WARN_CFLAGS="${GCC_WARN_CFLAGS}"
11782 fi
11783
11784 # Check whether --enable-build-warnings was given.
11785 if test "${enable_build_warnings+set}" = set; then :
11786 enableval=$enable_build_warnings; case "${enableval}" in
11787 yes) WARN_CFLAGS="${GCC_WARN_CFLAGS}";;
11788 no) if test "${GCC}" = yes ; then
11789 WARN_CFLAGS="-w"
11790 fi;;
11791 ,*) t=`echo "${enableval}" | sed -e "s/,/ /g"`
11792 WARN_CFLAGS="${GCC_WARN_CFLAGS} ${t}";;
11793 *,) t=`echo "${enableval}" | sed -e "s/,/ /g"`
11794 WARN_CFLAGS="${t} ${GCC_WARN_CFLAGS}";;
11795 *) WARN_CFLAGS=`echo "${enableval}" | sed -e "s/,/ /g"`;;
11796 esac
11797 fi
11798
11799
11800 if test x"$silent" != x"yes" && test x"$WARN_CFLAGS" != x""; then
11801 echo "Setting warning flags = $WARN_CFLAGS" 6>&1
11802 fi
11803
11804
11805
11806
11807
11808 # Generate a header file
11809 ac_config_headers="$ac_config_headers config.h:config.in"
11810
11811
11812 # PR 14072
11813
11814
11815 # If we are on a DOS filesystem, we must use gdb.ini rather than
11816 # .gdbinit.
11817 case "${host}" in
11818 *-*-msdos* | *-*-go32* | *-*-mingw32* | *-*-windows*)
11819 GDBINIT="gdb.ini"
11820 ac_config_files="$ac_config_files gdb.ini:gdbinit.in"
11821
11822 ;;
11823 *)
11824 GDBINIT=".gdbinit"
11825 ac_config_files="$ac_config_files .gdbinit:gdbinit.in"
11826
11827 ;;
11828 esac
11829
11830
11831 #We need this for the host. BOUT header is in host order.
11832 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
11833 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
11834 if test "${ac_cv_c_bigendian+set}" = set; then :
11835 $as_echo_n "(cached) " >&6
11836 else
11837 ac_cv_c_bigendian=unknown
11838 # See if we're dealing with a universal compiler.
11839 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11840 /* end confdefs.h. */
11841 #ifndef __APPLE_CC__
11842 not a universal capable compiler
11843 #endif
11844 typedef int dummy;
11845
11846 _ACEOF
11847 if ac_fn_c_try_compile "$LINENO"; then :
11848
11849 # Check for potential -arch flags. It is not universal unless
11850 # there are at least two -arch flags with different values.
11851 ac_arch=
11852 ac_prev=
11853 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
11854 if test -n "$ac_prev"; then
11855 case $ac_word in
11856 i?86 | x86_64 | ppc | ppc64)
11857 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
11858 ac_arch=$ac_word
11859 else
11860 ac_cv_c_bigendian=universal
11861 break
11862 fi
11863 ;;
11864 esac
11865 ac_prev=
11866 elif test "x$ac_word" = "x-arch"; then
11867 ac_prev=arch
11868 fi
11869 done
11870 fi
11871 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11872 if test $ac_cv_c_bigendian = unknown; then
11873 # See if sys/param.h defines the BYTE_ORDER macro.
11874 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11875 /* end confdefs.h. */
11876 #include <sys/types.h>
11877 #include <sys/param.h>
11878
11879 int
11880 main ()
11881 {
11882 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
11883 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
11884 && LITTLE_ENDIAN)
11885 bogus endian macros
11886 #endif
11887
11888 ;
11889 return 0;
11890 }
11891 _ACEOF
11892 if ac_fn_c_try_compile "$LINENO"; then :
11893 # It does; now see whether it defined to BIG_ENDIAN or not.
11894 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11895 /* end confdefs.h. */
11896 #include <sys/types.h>
11897 #include <sys/param.h>
11898
11899 int
11900 main ()
11901 {
11902 #if BYTE_ORDER != BIG_ENDIAN
11903 not big endian
11904 #endif
11905
11906 ;
11907 return 0;
11908 }
11909 _ACEOF
11910 if ac_fn_c_try_compile "$LINENO"; then :
11911 ac_cv_c_bigendian=yes
11912 else
11913 ac_cv_c_bigendian=no
11914 fi
11915 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11916 fi
11917 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11918 fi
11919 if test $ac_cv_c_bigendian = unknown; then
11920 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
11921 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11922 /* end confdefs.h. */
11923 #include <limits.h>
11924
11925 int
11926 main ()
11927 {
11928 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
11929 bogus endian macros
11930 #endif
11931
11932 ;
11933 return 0;
11934 }
11935 _ACEOF
11936 if ac_fn_c_try_compile "$LINENO"; then :
11937 # It does; now see whether it defined to _BIG_ENDIAN or not.
11938 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11939 /* end confdefs.h. */
11940 #include <limits.h>
11941
11942 int
11943 main ()
11944 {
11945 #ifndef _BIG_ENDIAN
11946 not big endian
11947 #endif
11948
11949 ;
11950 return 0;
11951 }
11952 _ACEOF
11953 if ac_fn_c_try_compile "$LINENO"; then :
11954 ac_cv_c_bigendian=yes
11955 else
11956 ac_cv_c_bigendian=no
11957 fi
11958 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11959 fi
11960 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11961 fi
11962 if test $ac_cv_c_bigendian = unknown; then
11963 # Compile a test program.
11964 if test "$cross_compiling" = yes; then :
11965 # Try to guess by grepping values from an object file.
11966 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11967 /* end confdefs.h. */
11968 short int ascii_mm[] =
11969 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
11970 short int ascii_ii[] =
11971 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
11972 int use_ascii (int i) {
11973 return ascii_mm[i] + ascii_ii[i];
11974 }
11975 short int ebcdic_ii[] =
11976 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
11977 short int ebcdic_mm[] =
11978 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
11979 int use_ebcdic (int i) {
11980 return ebcdic_mm[i] + ebcdic_ii[i];
11981 }
11982 extern int foo;
11983
11984 int
11985 main ()
11986 {
11987 return use_ascii (foo) == use_ebcdic (foo);
11988 ;
11989 return 0;
11990 }
11991 _ACEOF
11992 if ac_fn_c_try_compile "$LINENO"; then :
11993 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
11994 ac_cv_c_bigendian=yes
11995 fi
11996 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
11997 if test "$ac_cv_c_bigendian" = unknown; then
11998 ac_cv_c_bigendian=no
11999 else
12000 # finding both strings is unlikely to happen, but who knows?
12001 ac_cv_c_bigendian=unknown
12002 fi
12003 fi
12004 fi
12005 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12006 else
12007 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12008 /* end confdefs.h. */
12009 $ac_includes_default
12010 int
12011 main ()
12012 {
12013
12014 /* Are we little or big endian? From Harbison&Steele. */
12015 union
12016 {
12017 long int l;
12018 char c[sizeof (long int)];
12019 } u;
12020 u.l = 1;
12021 return u.c[sizeof (long int) - 1] == 1;
12022
12023 ;
12024 return 0;
12025 }
12026 _ACEOF
12027 if ac_fn_c_try_run "$LINENO"; then :
12028 ac_cv_c_bigendian=no
12029 else
12030 ac_cv_c_bigendian=yes
12031 fi
12032 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12033 conftest.$ac_objext conftest.beam conftest.$ac_ext
12034 fi
12035
12036 fi
12037 fi
12038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
12039 $as_echo "$ac_cv_c_bigendian" >&6; }
12040 case $ac_cv_c_bigendian in #(
12041 yes)
12042 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
12043 ;; #(
12044 no)
12045 ;; #(
12046 universal)
12047
12048 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
12049
12050 ;; #(
12051 *)
12052 as_fn_error "unknown endianness
12053 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
12054 esac
12055
12056
12057 te_file=generic
12058
12059 # Makefile target for installing gas in $(tooldir)/bin.
12060 install_tooldir=install-exec-tooldir
12061
12062 canon_targets=""
12063 all_targets=no
12064 if test -n "$enable_targets" ; then
12065 for t in `echo $enable_targets | sed 's/,/ /g'`; do
12066 if test $t = "all"; then
12067 all_targets=yes
12068 continue
12069 fi
12070 result=`$ac_config_sub $t 2>/dev/null`
12071 if test -n "$result" ; then
12072 canon_targets="$canon_targets $result"
12073 # else
12074 # # Permit "all", etc. We don't support it yet though.
12075 # canon_targets="$canon_targets $t"
12076 fi
12077 done
12078 _gas_uniq_list="$canon_targets"
12079 _gas_uniq_newlist=""
12080 for _gas_uniq_i in _gas_uniq_dummy $_gas_uniq_list ; do
12081 case $_gas_uniq_i in
12082 _gas_uniq_dummy) ;;
12083 *) case " $_gas_uniq_newlist " in
12084 *" $_gas_uniq_i "*) ;;
12085 *) _gas_uniq_newlist="$_gas_uniq_newlist $_gas_uniq_i" ;;
12086 esac ;;
12087 esac
12088 done
12089 canon_targets=$_gas_uniq_newlist
12090
12091 fi
12092
12093 emulations=""
12094
12095 for this_target in $target $canon_targets ; do
12096
12097 targ=${this_target}
12098 . ${srcdir}/configure.tgt
12099
12100 case ${target_cpu} in
12101 crisv32)
12102
12103 cat >>confdefs.h <<_ACEOF
12104 #define DEFAULT_CRIS_ARCH $arch
12105 _ACEOF
12106
12107 ;;
12108 esac
12109
12110 if test ${this_target} = $target ; then
12111 target_cpu_type=${cpu_type}
12112 elif test ${target_cpu_type} != ${cpu_type} ; then
12113 continue
12114 fi
12115
12116 generic_target=${cpu_type}-${target_vendor}-${target_os}
12117 case ${generic_target} in
12118 i386-*-sco3.2v5*)
12119 if test ${this_target} = $target; then
12120
12121 $as_echo "#define SCO_ELF 1" >>confdefs.h
12122
12123 fi
12124 ;;
12125
12126 i386-*-msdosdjgpp* \
12127 | i386-*-go32* \
12128 | i386-go32-rtems*)
12129
12130 $as_echo "#define STRICTCOFF 1" >>confdefs.h
12131
12132 ;;
12133
12134 i386-*-solaris2 \
12135 | x86_64-*-solaris2 \
12136 | i386-*-solaris2.[0-9] \
12137 | i386-*-solaris2.1[01] \
12138 | x86_64-*-solaris2.1[01])
12139 if test ${this_target} = $target \
12140 && test ${ac_default_x86_relax_relocations} = unset; then
12141 ac_default_x86_relax_relocations=0
12142 fi
12143 ;;
12144
12145 i860-*-*)
12146 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: GAS support for ${generic_target} is preliminary and a work in progress" >&5
12147 $as_echo "$as_me: WARNING: GAS support for ${generic_target} is preliminary and a work in progress" >&2;}
12148 ;;
12149
12150 microblaze*)
12151 ;;
12152
12153 ppc-*-aix[5-9].*)
12154
12155 $as_echo "#define AIX_WEAK_SUPPORT 1" >>confdefs.h
12156
12157 ;;
12158 ppc-*-solaris*)
12159 if test ${this_target} = $target; then
12160
12161 $as_echo "#define TARGET_SOLARIS_COMMENT 1" >>confdefs.h
12162
12163 fi
12164 if test x${endian} = xbig; then
12165 as_fn_error "Solaris must be configured little endian" "$LINENO" 5
12166 fi
12167 ;;
12168
12169 sh*-*-symbianelf*)
12170
12171 $as_echo "#define TARGET_SYMBIAN 1" >>confdefs.h
12172
12173 ;;
12174 esac
12175
12176 if test ${this_target} = $target ; then
12177 endian_def=
12178 if test x${endian} = xbig; then
12179 endian_def=1
12180 elif test x${endian} = xlittle; then
12181 endian_def=0
12182 fi
12183 if test x${endian_def} != x; then
12184
12185 cat >>confdefs.h <<_ACEOF
12186 #define TARGET_BYTES_BIG_ENDIAN $endian_def
12187 _ACEOF
12188
12189 fi
12190 fi
12191
12192 # Other random stuff.
12193
12194 case ${cpu_type} in
12195 mips)
12196 # Set mips_cpu to the name of the default CPU.
12197 case ${target_cpu} in
12198 mips | mipsbe | mipseb | mipsle | mipsel | mips64 | mips64el)
12199 mips_cpu=from-abi
12200 ;;
12201 mipsisa32 | mipsisa32el)
12202 mips_cpu=mips32
12203 ;;
12204 mipsisa32r2 | mipsisa32r2el)
12205 mips_cpu=mips32r2
12206 ;;
12207 mipsisa32r3 | mipsisa32r3el)
12208 mips_cpu=mips32r3
12209 ;;
12210 mipsisa32r5 | mipsisa32r5el)
12211 mips_cpu=mips32r5
12212 ;;
12213 mipsisa32r6 | mipsisa32r6el)
12214 mips_cpu=mips32r6
12215 ;;
12216 mipsisa64 | mipsisa64el)
12217 mips_cpu=mips64
12218 ;;
12219 mipsisa64r2 | mipsisa64r2el)
12220 mips_cpu=mips64r2
12221 ;;
12222 mipsisa64r3 | mipsisa64r3el)
12223 mips_cpu=mips64r3
12224 ;;
12225 mipsisa64r5 | mipsisa64r5el)
12226 mips_cpu=mips64r5
12227 ;;
12228 mipsisa64r6 | mipsisa64r6el)
12229 mips_cpu=mips64r6
12230 ;;
12231 mipstx39 | mipstx39el)
12232 mips_cpu=r3900
12233 ;;
12234 mips64vr | mips64vrel)
12235 mips_cpu=vr4100
12236 ;;
12237 mipsisa32r2* | mipsisa64r2*)
12238 mips_cpu=`echo $target_cpu | sed -e 's/[a-z]*..r2//' -e 's/el$//'`
12239 ;;
12240 mipsisa32r6* | mipsisa64r6*)
12241 mips_cpu=`echo $target_cpu | sed -e 's/[a-z]*..r6//' -e 's/el$//'`
12242 ;;
12243 mips64* | mipsisa64* | mipsisa32*)
12244 mips_cpu=`echo $target_cpu | sed -e 's/[a-z]*..//' -e 's/el$//'`
12245 ;;
12246 mips*)
12247 mips_cpu=`echo $target_cpu | sed -e 's/^mips//' -e 's/el$//'`
12248 ;;
12249 *)
12250 as_fn_error "$target_cpu isn't a supported MIPS CPU name" "$LINENO" 5
12251 ;;
12252 esac
12253 # See whether it's appropriate to set E_MIPS_ABI_O32 for o32
12254 # binaries. It's a GNU extension that some OSes don't understand.
12255 case ${target} in
12256 *-*-irix*)
12257 use_e_mips_abi_o32=0
12258 ;;
12259 *)
12260 use_e_mips_abi_o32=1
12261 ;;
12262 esac
12263 # Decide whether to generate 32-bit or 64-bit code by default.
12264 # Used to resolve -march=from-abi when an embedded ABI is selected.
12265 case ${target} in
12266 mips64*-*-* | mipsisa64*-*-*)
12267 mips_default_64bit=1
12268 ;;
12269 *)
12270 mips_default_64bit=0
12271 ;;
12272 esac
12273 # Decide which ABI to target by default.
12274 case ${target} in
12275 mips64*-linux* | mips-sgi-irix6* | mips64*-freebsd* | mips64*-kfreebsd*-gnu)
12276 mips_default_abi=N32_ABI
12277 ;;
12278 mips*-linux* | mips*-freebsd* | mips*-kfreebsd*-gnu)
12279 mips_default_abi=O32_ABI
12280 ;;
12281 mips64*-openbsd*)
12282 mips_default_abi=N64_ABI
12283 ;;
12284 *)
12285 mips_default_abi=NO_ABI
12286 ;;
12287 esac
12288
12289 cat >>confdefs.h <<_ACEOF
12290 #define MIPS_CPU_STRING_DEFAULT "$mips_cpu"
12291 _ACEOF
12292
12293
12294 cat >>confdefs.h <<_ACEOF
12295 #define USE_E_MIPS_ABI_O32 $use_e_mips_abi_o32
12296 _ACEOF
12297
12298
12299 cat >>confdefs.h <<_ACEOF
12300 #define MIPS_DEFAULT_64BIT $mips_default_64bit
12301 _ACEOF
12302
12303
12304 cat >>confdefs.h <<_ACEOF
12305 #define MIPS_DEFAULT_ABI $mips_default_abi
12306 _ACEOF
12307
12308 ;;
12309 esac
12310
12311 # Do we need the opcodes library?
12312 case ${cpu_type} in
12313 vax | tic30)
12314 ;;
12315
12316 *)
12317 need_opcodes=yes
12318
12319 case "${enable_shared}" in
12320 yes) shared_opcodes=true ;;
12321 *opcodes*) shared_opcodes=true ;;
12322 *) shared_opcodes=false ;;
12323 esac
12324 ;;
12325 esac
12326
12327 # Any other special object files needed ?
12328 case ${cpu_type} in
12329
12330 bfin)
12331 echo ${extra_objects} | grep -s "bfin-parse.o"
12332 if test $? -ne 0 ; then
12333 extra_objects="$extra_objects bfin-parse.o"
12334 fi
12335
12336 echo ${extra_objects} | grep -s "bfin-lex-wrapper.o"
12337 if test $? -ne 0 ; then
12338 extra_objects="$extra_objects bfin-lex-wrapper.o"
12339 fi
12340 ;;
12341
12342 epiphany | fr30 | ip2k | iq2000 | lm32 | m32r | or1k)
12343 using_cgen=yes
12344 ;;
12345
12346 m32c)
12347 using_cgen=yes
12348 ;;
12349 frv)
12350 using_cgen=yes
12351 ;;
12352 m68k)
12353 case ${extra_objects} in
12354 *m68k-parse.o*) ;;
12355 *) extra_objects="$extra_objects m68k-parse.o" ;;
12356 esac
12357 ;;
12358
12359 mep)
12360 using_cgen=yes
12361 ;;
12362
12363 mips)
12364 echo ${extra_objects} | grep -s "itbl-parse.o"
12365 if test $? -ne 0 ; then
12366 extra_objects="$extra_objects itbl-parse.o"
12367 fi
12368
12369 echo ${extra_objects} | grep -s "itbl-lex-wrapper.o"
12370 if test $? -ne 0 ; then
12371 extra_objects="$extra_objects itbl-lex-wrapper.o"
12372 fi
12373
12374 echo ${extra_objects} | grep -s "itbl-ops.o"
12375 if test $? -ne 0 ; then
12376 extra_objects="$extra_objects itbl-ops.o"
12377 fi
12378 ;;
12379
12380 mt)
12381 using_cgen=yes
12382 ;;
12383
12384 nds32)
12385 # Decide BASELINE, REDUCED_REGS, FPU_DP_EXT, FPU_SP_EXT features
12386 # based on arch_name.
12387 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for default configuration of --with-arch" >&5
12388 $as_echo_n "checking for default configuration of --with-arch... " >&6; }
12389 if test "x${with_arch}" != x; then
12390 case ${with_arch} in
12391 v2j | v2s | v2f | v2 | v3m | v3j | v3s | v3f | v3 )
12392
12393 cat >>confdefs.h <<_ACEOF
12394 #define NDS32_DEFAULT_ARCH_NAME "$with_arch"
12395 _ACEOF
12396
12397 ;;
12398 *)
12399 as_fn_error "This kind of arch name does *NOT* exist!" "$LINENO" 5
12400 ;;
12401 esac
12402 fi
12403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_arch" >&5
12404 $as_echo "$with_arch" >&6; }
12405
12406 # Decide features one by one.
12407 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for default configuration of --enable-dx-regs" >&5
12408 $as_echo_n "checking for default configuration of --enable-dx-regs... " >&6; }
12409 if test "x${enable_dx_regs}" = xyes; then
12410
12411 $as_echo "#define NDS32_DEFAULT_DX_REGS 1" >>confdefs.h
12412
12413 else
12414
12415 $as_echo "#define NDS32_DEFAULT_DX_REGS 0" >>confdefs.h
12416
12417 fi
12418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_dx_regs" >&5
12419 $as_echo "$enable_dx_regs" >&6; }
12420
12421 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for default configuration of --enable-perf-ext" >&5
12422 $as_echo_n "checking for default configuration of --enable-perf-ext... " >&6; }
12423 if test "x${enable_perf_ext}" = xno; then
12424
12425 $as_echo "#define NDS32_DEFAULT_PERF_EXT 0" >>confdefs.h
12426
12427 else
12428
12429 $as_echo "#define NDS32_DEFAULT_PERF_EXT 1" >>confdefs.h
12430
12431 fi
12432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_perf_ext" >&5
12433 $as_echo "$enable_perf_ext" >&6; }
12434
12435 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for default configuration of --enable-perf-ext2" >&5
12436 $as_echo_n "checking for default configuration of --enable-perf-ext2... " >&6; }
12437 if test "x${enable_perf_ext2}" = xno; then
12438
12439 $as_echo "#define NDS32_DEFAULT_PERF_EXT2 0" >>confdefs.h
12440
12441 else
12442
12443 $as_echo "#define NDS32_DEFAULT_PERF_EXT2 1" >>confdefs.h
12444
12445 fi
12446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_perf_ext2" >&5
12447 $as_echo "$enable_perf_ext2" >&6; }
12448
12449 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for default configuration of --enable-string-ext" >&5
12450 $as_echo_n "checking for default configuration of --enable-string-ext... " >&6; }
12451 if test "x${enable_string_ext}" = xno; then
12452
12453 $as_echo "#define NDS32_DEFAULT_STRING_EXT 0" >>confdefs.h
12454
12455 else
12456
12457 $as_echo "#define NDS32_DEFAULT_STRING_EXT 1" >>confdefs.h
12458
12459 fi
12460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_string_ext" >&5
12461 $as_echo "$enable_string_ext" >&6; }
12462
12463 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for default configuration of --enable-audio-ext" >&5
12464 $as_echo_n "checking for default configuration of --enable-audio-ext... " >&6; }
12465 if test "x${enable_audio_ext}" = xno; then
12466
12467 $as_echo "#define NDS32_DEFAULT_AUDIO_EXT 0" >>confdefs.h
12468
12469 else
12470
12471 $as_echo "#define NDS32_DEFAULT_AUDIO_EXT 1" >>confdefs.h
12472
12473 fi
12474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_audio_ext" >&5
12475 $as_echo "$enable_audio_ext" >&6; }
12476 ;;
12477
12478 i386 | s390 | sparc)
12479 if test $this_target = $target ; then
12480
12481 cat >>confdefs.h <<_ACEOF
12482 #define DEFAULT_ARCH "${arch}"
12483 _ACEOF
12484
12485 fi
12486 ;;
12487
12488 rl78)
12489 echo ${extra_objects} | grep -s "rl78-parse.o"
12490 if test $? -ne 0 ; then
12491 extra_objects="$extra_objects rl78-parse.o"
12492 fi
12493 ;;
12494
12495 rx)
12496 echo ${extra_objects} | grep -s "rx-parse.o"
12497 if test $? -ne 0 ; then
12498 extra_objects="$extra_objects rx-parse.o"
12499 fi
12500 ;;
12501
12502 xstormy16)
12503 using_cgen=yes
12504 ;;
12505
12506 xc16x)
12507 using_cgen=yes
12508 ;;
12509
12510 xtensa)
12511 echo ${extra_objects} | grep -s "xtensa-relax.o"
12512 if test $? -ne 0 ; then
12513 extra_objects="$extra_objects xtensa-relax.o"
12514 fi
12515 ;;
12516
12517 *)
12518 ;;
12519 esac
12520
12521 if test $using_cgen = yes ; then
12522 case "x${extra_objects}" in
12523 *cgen.o*) ;;
12524 *) extra_objects="$extra_objects cgen.o" ;;
12525 esac
12526 fi
12527
12528 # See if we really can support this configuration with the emulation code.
12529
12530 if test $this_target = $target ; then
12531 obj_format=$fmt
12532 te_file=$em
12533 fi
12534
12535 case ${te_file} in
12536 vms) extra_objects="$extra_objects te-vms.o" ;;
12537 esac
12538
12539 # From target name and format, produce a list of supported emulations.
12540
12541 case ${generic_target}-${fmt} in
12542 mips-*-*-*) case "$endian" in
12543 big) emulation="mipsbelf mipslelf mipself" ;;
12544 *) emulation="mipslelf mipsbelf mipself" ;;
12545 esac ;;
12546 # i386-pc-pe-coff != i386-pc-coff.
12547 i386-*-pe-coff) ;;
12548 # Uncommenting the next line will turn on support for i386 AOUT
12549 # for the default linux configuration
12550 # i386-*-linux*-elf) emulation="i386elf i386aout" ;;
12551 #
12552 i386-*-aout) emulation="i386aout" ;;
12553 i386-*-coff) emulation="i386coff" ;;
12554 i386-*-elf) emulation="i386elf" ;;
12555
12556 # Always all formats. The first stated emulation becomes the default.
12557 cris-*-*aout*) emulation="crisaout criself" ;;
12558 cris-*-*) emulation="criself crisaout" ;;
12559 esac
12560
12561 emulations="$emulations $emulation"
12562
12563 done
12564
12565 if test ${ac_default_x86_relax_relocations} = unset; then
12566 ac_default_x86_relax_relocations=1
12567 fi
12568
12569 cat >>confdefs.h <<_ACEOF
12570 #define DEFAULT_GENERATE_X86_RELAX_RELOCATIONS $ac_default_x86_relax_relocations
12571 _ACEOF
12572
12573
12574 if test ${ac_default_elf_stt_common} = unset; then
12575 ac_default_elf_stt_common=0
12576 fi
12577
12578 cat >>confdefs.h <<_ACEOF
12579 #define DEFAULT_GENERATE_ELF_STT_COMMON $ac_default_elf_stt_common
12580 _ACEOF
12581
12582
12583 if test x$ac_default_compressed_debug_sections = xyes ; then
12584
12585 $as_echo "#define DEFAULT_FLAG_COMPRESS_DEBUG 1" >>confdefs.h
12586
12587 fi
12588
12589 # Turn on all targets if possible
12590 if test ${all_targets} = "yes"; then
12591 case ${target_cpu_type} in
12592 i386)
12593 case ${obj_format} in
12594 aout)
12595 emulations="$emulations i386coff i386elf"
12596 ;;
12597 coff)
12598 emulations="$emulations i386aout i386elf"
12599 ;;
12600 elf)
12601 emulations="$emulations i386aout i386coff"
12602 ;;
12603 esac
12604 ;;
12605 x86_64)
12606 case ${obj_format} in
12607 aout)
12608 emulations="$emulations i386coff i386elf"
12609 ;;
12610 coff)
12611 emulations="$emulations i386aout i386elf"
12612 ;;
12613 elf)
12614 emulations="$emulations i386aout i386coff"
12615 ;;
12616 esac
12617 ;;
12618 esac
12619 fi
12620
12621 # PE code has way too many macros tweaking behaviour
12622 case ${te_file} in
12623 pe*) emulations="" ;;
12624 esac
12625
12626 # Assign floating point type. Most processors with FP support
12627 # IEEE FP. On those that don't support FP at all, usually IEEE
12628 # is emulated.
12629 case ${target_cpu} in
12630 vax | pdp11 ) atof=vax ;;
12631 *) atof=ieee ;;
12632 esac
12633
12634 case "${obj_format}" in
12635 "") as_fn_error "GAS does not know what format to use for target ${target}" "$LINENO" 5 ;;
12636 esac
12637
12638 # Unfortunately the cpu in cpu-opc.h file isn't always $(TARGET_CPU).
12639 cgen_cpu_prefix=""
12640 if test $using_cgen = yes ; then
12641 case ${target_cpu} in
12642 or1knd)
12643 cgen_cpu_prefix=or1k ;;
12644 *) cgen_cpu_prefix=${target_cpu} ;;
12645 esac
12646
12647
12648 $as_echo "#define USING_CGEN 1" >>confdefs.h
12649
12650 fi
12651
12652
12653 if test ! -r ${srcdir}/config/tc-${target_cpu_type}.c; then
12654 as_fn_error "GAS does not support target CPU ${target_cpu_type}" "$LINENO" 5
12655 fi
12656
12657 if test ! -r ${srcdir}/config/obj-${obj_format}.c; then
12658 as_fn_error "GAS does not have support for object file format ${obj_format}" "$LINENO" 5
12659 fi
12660
12661 # Some COFF configurations want these random other flags set.
12662 case ${obj_format} in
12663 coff)
12664 case ${target_cpu_type} in
12665 i386)
12666 $as_echo "#define I386COFF 1" >>confdefs.h
12667 ;;
12668 m68k)
12669 $as_echo "#define M68KCOFF 1" >>confdefs.h
12670 ;;
12671 m88k)
12672 $as_echo "#define M88KCOFF 1" >>confdefs.h
12673 ;;
12674 x86_64)
12675 $as_echo "#define I386COFF 1" >>confdefs.h
12676 ;;
12677 esac
12678 ;;
12679 esac
12680
12681 # Getting this done right is going to be a bitch. Each configuration specified
12682 # with --enable-targets=... should be checked for environment, format, cpu
12683 # setting.
12684 #
12685 # For each configuration, the necessary object file support code must be linked
12686 # in. This might be only one, it might be up to four. The necessary emulation
12687 # code needs to be provided, too.
12688 #
12689 # And then there's "--enable-targets=all"....
12690 #
12691 # For now, just always do it for MIPS ELF configurations. Sigh.
12692
12693 formats="${obj_format}"
12694 emfiles=""
12695 EMULATIONS=""
12696 _gas_uniq_list="$emulations"
12697 _gas_uniq_newlist=""
12698 for _gas_uniq_i in _gas_uniq_dummy $_gas_uniq_list ; do
12699 case $_gas_uniq_i in
12700 _gas_uniq_dummy) ;;
12701 *) case " $_gas_uniq_newlist " in
12702 *" $_gas_uniq_i "*) ;;
12703 *) _gas_uniq_newlist="$_gas_uniq_newlist $_gas_uniq_i" ;;
12704 esac ;;
12705 esac
12706 done
12707 emulations=$_gas_uniq_newlist
12708
12709 for em in . $emulations ; do
12710 case $em in
12711 .) continue ;;
12712 mipsbelf | mipslelf | mipself)
12713 fmt=elf file=mipself ;;
12714 *coff)
12715 fmt=coff file=$em ;;
12716 *aout)
12717 fmt=aout file=$em ;;
12718 *elf)
12719 fmt=elf file=$em ;;
12720 esac
12721 formats="$formats $fmt"
12722 emfiles="$emfiles e-$file.o"
12723 EMULATIONS="$EMULATIONS &$em,"
12724 done
12725 _gas_uniq_list="$formats"
12726 _gas_uniq_newlist=""
12727 for _gas_uniq_i in _gas_uniq_dummy $_gas_uniq_list ; do
12728 case $_gas_uniq_i in
12729 _gas_uniq_dummy) ;;
12730 *) case " $_gas_uniq_newlist " in
12731 *" $_gas_uniq_i "*) ;;
12732 *) _gas_uniq_newlist="$_gas_uniq_newlist $_gas_uniq_i" ;;
12733 esac ;;
12734 esac
12735 done
12736 formats=$_gas_uniq_newlist
12737
12738 _gas_uniq_list="$emfiles"
12739 _gas_uniq_newlist=""
12740 for _gas_uniq_i in _gas_uniq_dummy $_gas_uniq_list ; do
12741 case $_gas_uniq_i in
12742 _gas_uniq_dummy) ;;
12743 *) case " $_gas_uniq_newlist " in
12744 *" $_gas_uniq_i "*) ;;
12745 *) _gas_uniq_newlist="$_gas_uniq_newlist $_gas_uniq_i" ;;
12746 esac ;;
12747 esac
12748 done
12749 emfiles=$_gas_uniq_newlist
12750
12751 if test `set . $formats ; shift ; echo $#` -gt 1 ; then
12752 for fmt in $formats ; do
12753 case $fmt in
12754 aout)
12755 $as_echo "#define OBJ_MAYBE_AOUT 1" >>confdefs.h
12756 ;;
12757 bout)
12758 $as_echo "#define OBJ_MAYBE_BOUT 1" >>confdefs.h
12759 ;;
12760 coff)
12761 $as_echo "#define OBJ_MAYBE_COFF 1" >>confdefs.h
12762 ;;
12763 ecoff)
12764 $as_echo "#define OBJ_MAYBE_ECOFF 1" >>confdefs.h
12765 ;;
12766 elf)
12767 $as_echo "#define OBJ_MAYBE_ELF 1" >>confdefs.h
12768 ;;
12769 generic)
12770 $as_echo "#define OBJ_MAYBE_GENERIC 1" >>confdefs.h
12771 ;;
12772 som)
12773 $as_echo "#define OBJ_MAYBE_SOM 1" >>confdefs.h
12774 ;;
12775 esac
12776 extra_objects="$extra_objects obj-$fmt.o"
12777 done
12778 obj_format=multi
12779 fi
12780 if test `set . $emfiles ; shift ; echo $#` -gt 0 ; then
12781 DEFAULT_EMULATION=`set . $emulations ; echo $2`
12782 # e-mipself has more than one emulation per file, e-i386* has just one at the
12783 # moment. If only one emulation is specified, then don't define
12784 # USE_EMULATIONS or include any of the e-files as they will only be bloat.
12785 case "${obj_format}${emfiles}" in
12786 multi* | *mipself*)
12787 extra_objects="$extra_objects $emfiles"
12788
12789 $as_echo "#define USE_EMULATIONS 1" >>confdefs.h
12790 ;;
12791 esac
12792 fi
12793
12794
12795 cat >>confdefs.h <<_ACEOF
12796 #define EMULATIONS $EMULATIONS
12797 _ACEOF
12798
12799
12800 cat >>confdefs.h <<_ACEOF
12801 #define DEFAULT_EMULATION "$DEFAULT_EMULATION"
12802 _ACEOF
12803
12804
12805 reject_dev_configs=yes
12806
12807 case ${reject_dev_configs}-${dev} in
12808 yes-yes) # Oops.
12809 as_fn_error "GAS does not support the ${generic_target} configuration." "$LINENO" 5
12810 ;;
12811 esac
12812
12813
12814
12815
12816
12817
12818
12819 # do we need the opcodes library?
12820 case "${need_opcodes}" in
12821 yes)
12822 OPCODES_LIB=../opcodes/libopcodes.la
12823 ;;
12824 esac
12825
12826
12827
12828
12829 cat >>confdefs.h <<_ACEOF
12830 #define TARGET_ALIAS "${target_alias}"
12831 _ACEOF
12832
12833
12834 cat >>confdefs.h <<_ACEOF
12835 #define TARGET_CANONICAL "${target}"
12836 _ACEOF
12837
12838
12839 cat >>confdefs.h <<_ACEOF
12840 #define TARGET_CPU "${target_cpu}"
12841 _ACEOF
12842
12843
12844 cat >>confdefs.h <<_ACEOF
12845 #define TARGET_VENDOR "${target_vendor}"
12846 _ACEOF
12847
12848
12849 cat >>confdefs.h <<_ACEOF
12850 #define TARGET_OS "${target_os}"
12851 _ACEOF
12852
12853
12854 for ac_prog in 'bison -y' byacc
12855 do
12856 # Extract the first word of "$ac_prog", so it can be a program name with args.
12857 set dummy $ac_prog; ac_word=$2
12858 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12859 $as_echo_n "checking for $ac_word... " >&6; }
12860 if test "${ac_cv_prog_YACC+set}" = set; then :
12861 $as_echo_n "(cached) " >&6
12862 else
12863 if test -n "$YACC"; then
12864 ac_cv_prog_YACC="$YACC" # Let the user override the test.
12865 else
12866 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12867 for as_dir in $PATH
12868 do
12869 IFS=$as_save_IFS
12870 test -z "$as_dir" && as_dir=.
12871 for ac_exec_ext in '' $ac_executable_extensions; do
12872 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12873 ac_cv_prog_YACC="$ac_prog"
12874 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12875 break 2
12876 fi
12877 done
12878 done
12879 IFS=$as_save_IFS
12880
12881 fi
12882 fi
12883 YACC=$ac_cv_prog_YACC
12884 if test -n "$YACC"; then
12885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5
12886 $as_echo "$YACC" >&6; }
12887 else
12888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12889 $as_echo "no" >&6; }
12890 fi
12891
12892
12893 test -n "$YACC" && break
12894 done
12895 test -n "$YACC" || YACC="yacc"
12896
12897 for ac_prog in flex lex
12898 do
12899 # Extract the first word of "$ac_prog", so it can be a program name with args.
12900 set dummy $ac_prog; ac_word=$2
12901 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12902 $as_echo_n "checking for $ac_word... " >&6; }
12903 if test "${ac_cv_prog_LEX+set}" = set; then :
12904 $as_echo_n "(cached) " >&6
12905 else
12906 if test -n "$LEX"; then
12907 ac_cv_prog_LEX="$LEX" # Let the user override the test.
12908 else
12909 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12910 for as_dir in $PATH
12911 do
12912 IFS=$as_save_IFS
12913 test -z "$as_dir" && as_dir=.
12914 for ac_exec_ext in '' $ac_executable_extensions; do
12915 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12916 ac_cv_prog_LEX="$ac_prog"
12917 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12918 break 2
12919 fi
12920 done
12921 done
12922 IFS=$as_save_IFS
12923
12924 fi
12925 fi
12926 LEX=$ac_cv_prog_LEX
12927 if test -n "$LEX"; then
12928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LEX" >&5
12929 $as_echo "$LEX" >&6; }
12930 else
12931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12932 $as_echo "no" >&6; }
12933 fi
12934
12935
12936 test -n "$LEX" && break
12937 done
12938 test -n "$LEX" || LEX=":"
12939
12940 case "$LEX" in
12941 :|*"missing "*) ;;
12942 *) cat >conftest.l <<_ACEOF
12943 %%
12944 a { ECHO; }
12945 b { REJECT; }
12946 c { yymore (); }
12947 d { yyless (1); }
12948 e { yyless (input () != 0); }
12949 f { unput (yytext[0]); }
12950 . { BEGIN INITIAL; }
12951 %%
12952 #ifdef YYTEXT_POINTER
12953 extern char *yytext;
12954 #endif
12955 int
12956 main (void)
12957 {
12958 return ! yylex () + ! yywrap ();
12959 }
12960 _ACEOF
12961 { { ac_try="$LEX conftest.l"
12962 case "(($ac_try" in
12963 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12964 *) ac_try_echo=$ac_try;;
12965 esac
12966 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
12967 $as_echo "$ac_try_echo"; } >&5
12968 (eval "$LEX conftest.l") 2>&5
12969 ac_status=$?
12970 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12971 test $ac_status = 0; }
12972 { $as_echo "$as_me:${as_lineno-$LINENO}: checking lex output file root" >&5
12973 $as_echo_n "checking lex output file root... " >&6; }
12974 if test "${ac_cv_prog_lex_root+set}" = set; then :
12975 $as_echo_n "(cached) " >&6
12976 else
12977
12978 if test -f lex.yy.c; then
12979 ac_cv_prog_lex_root=lex.yy
12980 elif test -f lexyy.c; then
12981 ac_cv_prog_lex_root=lexyy
12982 else
12983 as_fn_error "cannot find output from $LEX; giving up" "$LINENO" 5
12984 fi
12985 fi
12986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_root" >&5
12987 $as_echo "$ac_cv_prog_lex_root" >&6; }
12988 LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
12989
12990 if test -z "${LEXLIB+set}"; then
12991 { $as_echo "$as_me:${as_lineno-$LINENO}: checking lex library" >&5
12992 $as_echo_n "checking lex library... " >&6; }
12993 if test "${ac_cv_lib_lex+set}" = set; then :
12994 $as_echo_n "(cached) " >&6
12995 else
12996
12997 ac_save_LIBS=$LIBS
12998 ac_cv_lib_lex='none needed'
12999 for ac_lib in '' -lfl -ll; do
13000 LIBS="$ac_lib $ac_save_LIBS"
13001 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13002 /* end confdefs.h. */
13003 `cat $LEX_OUTPUT_ROOT.c`
13004 _ACEOF
13005 if ac_fn_c_try_link "$LINENO"; then :
13006 ac_cv_lib_lex=$ac_lib
13007 fi
13008 rm -f core conftest.err conftest.$ac_objext \
13009 conftest$ac_exeext conftest.$ac_ext
13010 test "$ac_cv_lib_lex" != 'none needed' && break
13011 done
13012 LIBS=$ac_save_LIBS
13013
13014 fi
13015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lex" >&5
13016 $as_echo "$ac_cv_lib_lex" >&6; }
13017 test "$ac_cv_lib_lex" != 'none needed' && LEXLIB=$ac_cv_lib_lex
13018 fi
13019
13020
13021 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether yytext is a pointer" >&5
13022 $as_echo_n "checking whether yytext is a pointer... " >&6; }
13023 if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then :
13024 $as_echo_n "(cached) " >&6
13025 else
13026 # POSIX says lex can declare yytext either as a pointer or an array; the
13027 # default is implementation-dependent. Figure out which it is, since
13028 # not all implementations provide the %pointer and %array declarations.
13029 ac_cv_prog_lex_yytext_pointer=no
13030 ac_save_LIBS=$LIBS
13031 LIBS="$LEXLIB $ac_save_LIBS"
13032 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13033 /* end confdefs.h. */
13034 #define YYTEXT_POINTER 1
13035 `cat $LEX_OUTPUT_ROOT.c`
13036 _ACEOF
13037 if ac_fn_c_try_link "$LINENO"; then :
13038 ac_cv_prog_lex_yytext_pointer=yes
13039 fi
13040 rm -f core conftest.err conftest.$ac_objext \
13041 conftest$ac_exeext conftest.$ac_ext
13042 LIBS=$ac_save_LIBS
13043
13044 fi
13045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_yytext_pointer" >&5
13046 $as_echo "$ac_cv_prog_lex_yytext_pointer" >&6; }
13047 if test $ac_cv_prog_lex_yytext_pointer = yes; then
13048
13049 $as_echo "#define YYTEXT_POINTER 1" >>confdefs.h
13050
13051 fi
13052 rm -f conftest.l $LEX_OUTPUT_ROOT.c
13053 ;;
13054 esac
13055 if test "$LEX" = :; then
13056 LEX=${am_missing_run}flex
13057 fi
13058
13059 ALL_LINGUAS="fr tr es rw id ru fi ja zh_CN"
13060 # If we haven't got the data from the intl directory,
13061 # assume NLS is disabled.
13062 USE_NLS=no
13063 LIBINTL=
13064 LIBINTL_DEP=
13065 INCINTL=
13066 XGETTEXT=
13067 GMSGFMT=
13068 POSUB=
13069
13070 if test -f ../intl/config.intl; then
13071 . ../intl/config.intl
13072 fi
13073 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
13074 $as_echo_n "checking whether NLS is requested... " >&6; }
13075 if test x"$USE_NLS" != xyes; then
13076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13077 $as_echo "no" >&6; }
13078 else
13079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13080 $as_echo "yes" >&6; }
13081
13082 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
13083
13084
13085 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catalogs to be installed" >&5
13086 $as_echo_n "checking for catalogs to be installed... " >&6; }
13087 # Look for .po and .gmo files in the source directory.
13088 CATALOGS=
13089 XLINGUAS=
13090 for cat in $srcdir/po/*.gmo $srcdir/po/*.po; do
13091 # If there aren't any .gmo files the shell will give us the
13092 # literal string "../path/to/srcdir/po/*.gmo" which has to be
13093 # weeded out.
13094 case "$cat" in *\**)
13095 continue;;
13096 esac
13097 # The quadruple backslash is collapsed to a double backslash
13098 # by the backticks, then collapsed again by the double quotes,
13099 # leaving us with one backslash in the sed expression (right
13100 # before the dot that mustn't act as a wildcard).
13101 cat=`echo $cat | sed -e "s!$srcdir/po/!!" -e "s!\\\\.po!.gmo!"`
13102 lang=`echo $cat | sed -e "s!\\\\.gmo!!"`
13103 # The user is allowed to set LINGUAS to a list of languages to
13104 # install catalogs for. If it's empty that means "all of them."
13105 if test "x$LINGUAS" = x; then
13106 CATALOGS="$CATALOGS $cat"
13107 XLINGUAS="$XLINGUAS $lang"
13108 else
13109 case "$LINGUAS" in *$lang*)
13110 CATALOGS="$CATALOGS $cat"
13111 XLINGUAS="$XLINGUAS $lang"
13112 ;;
13113 esac
13114 fi
13115 done
13116 LINGUAS="$XLINGUAS"
13117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINGUAS" >&5
13118 $as_echo "$LINGUAS" >&6; }
13119
13120
13121 DATADIRNAME=share
13122
13123 INSTOBJEXT=.mo
13124
13125 GENCAT=gencat
13126
13127 CATOBJEXT=.gmo
13128
13129 fi
13130
13131 MKINSTALLDIRS=
13132 if test -n "$ac_aux_dir"; then
13133 case "$ac_aux_dir" in
13134 /*) MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" ;;
13135 *) MKINSTALLDIRS="\$(top_builddir)/$ac_aux_dir/mkinstalldirs" ;;
13136 esac
13137 fi
13138 if test -z "$MKINSTALLDIRS"; then
13139 MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
13140 fi
13141
13142
13143
13144 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
13145 $as_echo_n "checking whether NLS is requested... " >&6; }
13146 # Check whether --enable-nls was given.
13147 if test "${enable_nls+set}" = set; then :
13148 enableval=$enable_nls; USE_NLS=$enableval
13149 else
13150 USE_NLS=yes
13151 fi
13152
13153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
13154 $as_echo "$USE_NLS" >&6; }
13155
13156
13157
13158
13159
13160
13161 # Prepare PATH_SEPARATOR.
13162 # The user is always right.
13163 if test "${PATH_SEPARATOR+set}" != set; then
13164 echo "#! /bin/sh" >conf$$.sh
13165 echo "exit 0" >>conf$$.sh
13166 chmod +x conf$$.sh
13167 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
13168 PATH_SEPARATOR=';'
13169 else
13170 PATH_SEPARATOR=:
13171 fi
13172 rm -f conf$$.sh
13173 fi
13174
13175 # Find out how to test for executable files. Don't use a zero-byte file,
13176 # as systems may use methods other than mode bits to determine executability.
13177 cat >conf$$.file <<_ASEOF
13178 #! /bin/sh
13179 exit 0
13180 _ASEOF
13181 chmod +x conf$$.file
13182 if test -x conf$$.file >/dev/null 2>&1; then
13183 ac_executable_p="test -x"
13184 else
13185 ac_executable_p="test -f"
13186 fi
13187 rm -f conf$$.file
13188
13189 # Extract the first word of "msgfmt", so it can be a program name with args.
13190 set dummy msgfmt; ac_word=$2
13191 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13192 $as_echo_n "checking for $ac_word... " >&6; }
13193 if test "${ac_cv_path_MSGFMT+set}" = set; then :
13194 $as_echo_n "(cached) " >&6
13195 else
13196 case "$MSGFMT" in
13197 [\\/]* | ?:[\\/]*)
13198 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
13199 ;;
13200 *)
13201 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
13202 for ac_dir in $PATH; do
13203 IFS="$ac_save_IFS"
13204 test -z "$ac_dir" && ac_dir=.
13205 for ac_exec_ext in '' $ac_executable_extensions; do
13206 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
13207 if $ac_dir/$ac_word --statistics /dev/null >/dev/null 2>&1 &&
13208 (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
13209 ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
13210 break 2
13211 fi
13212 fi
13213 done
13214 done
13215 IFS="$ac_save_IFS"
13216 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
13217 ;;
13218 esac
13219 fi
13220 MSGFMT="$ac_cv_path_MSGFMT"
13221 if test "$MSGFMT" != ":"; then
13222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
13223 $as_echo "$MSGFMT" >&6; }
13224 else
13225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13226 $as_echo "no" >&6; }
13227 fi
13228
13229 # Extract the first word of "gmsgfmt", so it can be a program name with args.
13230 set dummy gmsgfmt; ac_word=$2
13231 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13232 $as_echo_n "checking for $ac_word... " >&6; }
13233 if test "${ac_cv_path_GMSGFMT+set}" = set; then :
13234 $as_echo_n "(cached) " >&6
13235 else
13236 case $GMSGFMT in
13237 [\\/]* | ?:[\\/]*)
13238 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
13239 ;;
13240 *)
13241 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13242 for as_dir in $PATH
13243 do
13244 IFS=$as_save_IFS
13245 test -z "$as_dir" && as_dir=.
13246 for ac_exec_ext in '' $ac_executable_extensions; do
13247 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13248 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
13249 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13250 break 2
13251 fi
13252 done
13253 done
13254 IFS=$as_save_IFS
13255
13256 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
13257 ;;
13258 esac
13259 fi
13260 GMSGFMT=$ac_cv_path_GMSGFMT
13261 if test -n "$GMSGFMT"; then
13262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMSGFMT" >&5
13263 $as_echo "$GMSGFMT" >&6; }
13264 else
13265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13266 $as_echo "no" >&6; }
13267 fi
13268
13269
13270
13271
13272 # Prepare PATH_SEPARATOR.
13273 # The user is always right.
13274 if test "${PATH_SEPARATOR+set}" != set; then
13275 echo "#! /bin/sh" >conf$$.sh
13276 echo "exit 0" >>conf$$.sh
13277 chmod +x conf$$.sh
13278 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
13279 PATH_SEPARATOR=';'
13280 else
13281 PATH_SEPARATOR=:
13282 fi
13283 rm -f conf$$.sh
13284 fi
13285
13286 # Find out how to test for executable files. Don't use a zero-byte file,
13287 # as systems may use methods other than mode bits to determine executability.
13288 cat >conf$$.file <<_ASEOF
13289 #! /bin/sh
13290 exit 0
13291 _ASEOF
13292 chmod +x conf$$.file
13293 if test -x conf$$.file >/dev/null 2>&1; then
13294 ac_executable_p="test -x"
13295 else
13296 ac_executable_p="test -f"
13297 fi
13298 rm -f conf$$.file
13299
13300 # Extract the first word of "xgettext", so it can be a program name with args.
13301 set dummy xgettext; ac_word=$2
13302 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13303 $as_echo_n "checking for $ac_word... " >&6; }
13304 if test "${ac_cv_path_XGETTEXT+set}" = set; then :
13305 $as_echo_n "(cached) " >&6
13306 else
13307 case "$XGETTEXT" in
13308 [\\/]* | ?:[\\/]*)
13309 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
13310 ;;
13311 *)
13312 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
13313 for ac_dir in $PATH; do
13314 IFS="$ac_save_IFS"
13315 test -z "$ac_dir" && ac_dir=.
13316 for ac_exec_ext in '' $ac_executable_extensions; do
13317 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
13318 if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
13319 (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
13320 ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
13321 break 2
13322 fi
13323 fi
13324 done
13325 done
13326 IFS="$ac_save_IFS"
13327 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
13328 ;;
13329 esac
13330 fi
13331 XGETTEXT="$ac_cv_path_XGETTEXT"
13332 if test "$XGETTEXT" != ":"; then
13333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5
13334 $as_echo "$XGETTEXT" >&6; }
13335 else
13336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13337 $as_echo "no" >&6; }
13338 fi
13339
13340 rm -f messages.po
13341
13342
13343 # Prepare PATH_SEPARATOR.
13344 # The user is always right.
13345 if test "${PATH_SEPARATOR+set}" != set; then
13346 echo "#! /bin/sh" >conf$$.sh
13347 echo "exit 0" >>conf$$.sh
13348 chmod +x conf$$.sh
13349 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
13350 PATH_SEPARATOR=';'
13351 else
13352 PATH_SEPARATOR=:
13353 fi
13354 rm -f conf$$.sh
13355 fi
13356
13357 # Find out how to test for executable files. Don't use a zero-byte file,
13358 # as systems may use methods other than mode bits to determine executability.
13359 cat >conf$$.file <<_ASEOF
13360 #! /bin/sh
13361 exit 0
13362 _ASEOF
13363 chmod +x conf$$.file
13364 if test -x conf$$.file >/dev/null 2>&1; then
13365 ac_executable_p="test -x"
13366 else
13367 ac_executable_p="test -f"
13368 fi
13369 rm -f conf$$.file
13370
13371 # Extract the first word of "msgmerge", so it can be a program name with args.
13372 set dummy msgmerge; ac_word=$2
13373 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13374 $as_echo_n "checking for $ac_word... " >&6; }
13375 if test "${ac_cv_path_MSGMERGE+set}" = set; then :
13376 $as_echo_n "(cached) " >&6
13377 else
13378 case "$MSGMERGE" in
13379 [\\/]* | ?:[\\/]*)
13380 ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
13381 ;;
13382 *)
13383 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
13384 for ac_dir in $PATH; do
13385 IFS="$ac_save_IFS"
13386 test -z "$ac_dir" && ac_dir=.
13387 for ac_exec_ext in '' $ac_executable_extensions; do
13388 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
13389 if $ac_dir/$ac_word --update -q /dev/null /dev/null >/dev/null 2>&1; then
13390 ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
13391 break 2
13392 fi
13393 fi
13394 done
13395 done
13396 IFS="$ac_save_IFS"
13397 test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
13398 ;;
13399 esac
13400 fi
13401 MSGMERGE="$ac_cv_path_MSGMERGE"
13402 if test "$MSGMERGE" != ":"; then
13403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGMERGE" >&5
13404 $as_echo "$MSGMERGE" >&6; }
13405 else
13406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13407 $as_echo "no" >&6; }
13408 fi
13409
13410
13411 if test "$GMSGFMT" != ":"; then
13412 if $GMSGFMT --statistics /dev/null >/dev/null 2>&1 &&
13413 (if $GMSGFMT --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
13414 : ;
13415 else
13416 GMSGFMT=`echo "$GMSGFMT" | sed -e 's,^.*/,,'`
13417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found $GMSGFMT program is not GNU msgfmt; ignore it" >&5
13418 $as_echo "found $GMSGFMT program is not GNU msgfmt; ignore it" >&6; }
13419 GMSGFMT=":"
13420 fi
13421 fi
13422
13423 if test "$XGETTEXT" != ":"; then
13424 if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
13425 (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
13426 : ;
13427 else
13428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found xgettext program is not GNU xgettext; ignore it" >&5
13429 $as_echo "found xgettext program is not GNU xgettext; ignore it" >&6; }
13430 XGETTEXT=":"
13431 fi
13432 rm -f messages.po
13433 fi
13434
13435 ac_config_commands="$ac_config_commands default-1"
13436
13437
13438
13439
13440 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
13441 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
13442 # Check whether --enable-maintainer-mode was given.
13443 if test "${enable_maintainer_mode+set}" = set; then :
13444 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
13445 else
13446 USE_MAINTAINER_MODE=no
13447 fi
13448
13449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
13450 $as_echo "$USE_MAINTAINER_MODE" >&6; }
13451 if test $USE_MAINTAINER_MODE = yes; then
13452 MAINTAINER_MODE_TRUE=
13453 MAINTAINER_MODE_FALSE='#'
13454 else
13455 MAINTAINER_MODE_TRUE='#'
13456 MAINTAINER_MODE_FALSE=
13457 fi
13458
13459 MAINT=$MAINTAINER_MODE_TRUE
13460
13461
13462 if false; then
13463 GENINSRC_NEVER_TRUE=
13464 GENINSRC_NEVER_FALSE='#'
13465 else
13466 GENINSRC_NEVER_TRUE='#'
13467 GENINSRC_NEVER_FALSE=
13468 fi
13469
13470
13471
13472 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
13473 do :
13474 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
13475 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
13476 eval as_val=\$$as_ac_Header
13477 if test "x$as_val" = x""yes; then :
13478 cat >>confdefs.h <<_ACEOF
13479 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
13480 _ACEOF
13481
13482 fi
13483
13484 done
13485
13486 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether string.h and strings.h may both be included" >&5
13487 $as_echo_n "checking whether string.h and strings.h may both be included... " >&6; }
13488 if test "${gcc_cv_header_string+set}" = set; then :
13489 $as_echo_n "(cached) " >&6
13490 else
13491 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13492 /* end confdefs.h. */
13493 #include <string.h>
13494 #include <strings.h>
13495 int
13496 main ()
13497 {
13498
13499 ;
13500 return 0;
13501 }
13502 _ACEOF
13503 if ac_fn_c_try_compile "$LINENO"; then :
13504 gcc_cv_header_string=yes
13505 else
13506 gcc_cv_header_string=no
13507 fi
13508 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13509 fi
13510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_string" >&5
13511 $as_echo "$gcc_cv_header_string" >&6; }
13512 if test $gcc_cv_header_string = yes; then
13513
13514 $as_echo "#define STRING_WITH_STRINGS 1" >>confdefs.h
13515
13516 fi
13517
13518
13519 # Put this here so that autoconf's "cross-compiling" message doesn't confuse
13520 # people who are not cross-compiling but are compiling cross-assemblers.
13521 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiling a cross-assembler" >&5
13522 $as_echo_n "checking whether compiling a cross-assembler... " >&6; }
13523 if test "${host}" = "${target}"; then
13524 cross_gas=no
13525 else
13526 cross_gas=yes
13527
13528 $as_echo "#define CROSS_COMPILE 1" >>confdefs.h
13529
13530 fi
13531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_gas" >&5
13532 $as_echo "$cross_gas" >&6; }
13533
13534 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
13535 # for constant arguments. Useless!
13536 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
13537 $as_echo_n "checking for working alloca.h... " >&6; }
13538 if test "${ac_cv_working_alloca_h+set}" = set; then :
13539 $as_echo_n "(cached) " >&6
13540 else
13541 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13542 /* end confdefs.h. */
13543 #include <alloca.h>
13544 int
13545 main ()
13546 {
13547 char *p = (char *) alloca (2 * sizeof (int));
13548 if (p) return 0;
13549 ;
13550 return 0;
13551 }
13552 _ACEOF
13553 if ac_fn_c_try_link "$LINENO"; then :
13554 ac_cv_working_alloca_h=yes
13555 else
13556 ac_cv_working_alloca_h=no
13557 fi
13558 rm -f core conftest.err conftest.$ac_objext \
13559 conftest$ac_exeext conftest.$ac_ext
13560 fi
13561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
13562 $as_echo "$ac_cv_working_alloca_h" >&6; }
13563 if test $ac_cv_working_alloca_h = yes; then
13564
13565 $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
13566
13567 fi
13568
13569 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
13570 $as_echo_n "checking for alloca... " >&6; }
13571 if test "${ac_cv_func_alloca_works+set}" = set; then :
13572 $as_echo_n "(cached) " >&6
13573 else
13574 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13575 /* end confdefs.h. */
13576 #ifdef __GNUC__
13577 # define alloca __builtin_alloca
13578 #else
13579 # ifdef _MSC_VER
13580 # include <malloc.h>
13581 # define alloca _alloca
13582 # else
13583 # ifdef HAVE_ALLOCA_H
13584 # include <alloca.h>
13585 # else
13586 # ifdef _AIX
13587 #pragma alloca
13588 # else
13589 # ifndef alloca /* predefined by HP cc +Olibcalls */
13590 char *alloca ();
13591 # endif
13592 # endif
13593 # endif
13594 # endif
13595 #endif
13596
13597 int
13598 main ()
13599 {
13600 char *p = (char *) alloca (1);
13601 if (p) return 0;
13602 ;
13603 return 0;
13604 }
13605 _ACEOF
13606 if ac_fn_c_try_link "$LINENO"; then :
13607 ac_cv_func_alloca_works=yes
13608 else
13609 ac_cv_func_alloca_works=no
13610 fi
13611 rm -f core conftest.err conftest.$ac_objext \
13612 conftest$ac_exeext conftest.$ac_ext
13613 fi
13614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
13615 $as_echo "$ac_cv_func_alloca_works" >&6; }
13616
13617 if test $ac_cv_func_alloca_works = yes; then
13618
13619 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
13620
13621 else
13622 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
13623 # that cause trouble. Some versions do not even contain alloca or
13624 # contain a buggy version. If you still want to use their alloca,
13625 # use ar to extract alloca.o from them instead of compiling alloca.c.
13626
13627 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
13628
13629 $as_echo "#define C_ALLOCA 1" >>confdefs.h
13630
13631
13632 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
13633 $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
13634 if test "${ac_cv_os_cray+set}" = set; then :
13635 $as_echo_n "(cached) " >&6
13636 else
13637 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13638 /* end confdefs.h. */
13639 #if defined CRAY && ! defined CRAY2
13640 webecray
13641 #else
13642 wenotbecray
13643 #endif
13644
13645 _ACEOF
13646 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13647 $EGREP "webecray" >/dev/null 2>&1; then :
13648 ac_cv_os_cray=yes
13649 else
13650 ac_cv_os_cray=no
13651 fi
13652 rm -f conftest*
13653
13654 fi
13655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
13656 $as_echo "$ac_cv_os_cray" >&6; }
13657 if test $ac_cv_os_cray = yes; then
13658 for ac_func in _getb67 GETB67 getb67; do
13659 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13660 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
13661 eval as_val=\$$as_ac_var
13662 if test "x$as_val" = x""yes; then :
13663
13664 cat >>confdefs.h <<_ACEOF
13665 #define CRAY_STACKSEG_END $ac_func
13666 _ACEOF
13667
13668 break
13669 fi
13670
13671 done
13672 fi
13673
13674 { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
13675 $as_echo_n "checking stack direction for C alloca... " >&6; }
13676 if test "${ac_cv_c_stack_direction+set}" = set; then :
13677 $as_echo_n "(cached) " >&6
13678 else
13679 if test "$cross_compiling" = yes; then :
13680 ac_cv_c_stack_direction=0
13681 else
13682 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13683 /* end confdefs.h. */
13684 $ac_includes_default
13685 int
13686 find_stack_direction ()
13687 {
13688 static char *addr = 0;
13689 auto char dummy;
13690 if (addr == 0)
13691 {
13692 addr = &dummy;
13693 return find_stack_direction ();
13694 }
13695 else
13696 return (&dummy > addr) ? 1 : -1;
13697 }
13698
13699 int
13700 main ()
13701 {
13702 return find_stack_direction () < 0;
13703 }
13704 _ACEOF
13705 if ac_fn_c_try_run "$LINENO"; then :
13706 ac_cv_c_stack_direction=1
13707 else
13708 ac_cv_c_stack_direction=-1
13709 fi
13710 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13711 conftest.$ac_objext conftest.beam conftest.$ac_ext
13712 fi
13713
13714 fi
13715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
13716 $as_echo "$ac_cv_c_stack_direction" >&6; }
13717 cat >>confdefs.h <<_ACEOF
13718 #define STACK_DIRECTION $ac_cv_c_stack_direction
13719 _ACEOF
13720
13721
13722 fi
13723
13724 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
13725 $as_echo_n "checking for inline... " >&6; }
13726 if test "${ac_cv_c_inline+set}" = set; then :
13727 $as_echo_n "(cached) " >&6
13728 else
13729 ac_cv_c_inline=no
13730 for ac_kw in inline __inline__ __inline; do
13731 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13732 /* end confdefs.h. */
13733 #ifndef __cplusplus
13734 typedef int foo_t;
13735 static $ac_kw foo_t static_foo () {return 0; }
13736 $ac_kw foo_t foo () {return 0; }
13737 #endif
13738
13739 _ACEOF
13740 if ac_fn_c_try_compile "$LINENO"; then :
13741 ac_cv_c_inline=$ac_kw
13742 fi
13743 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13744 test "$ac_cv_c_inline" != no && break
13745 done
13746
13747 fi
13748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
13749 $as_echo "$ac_cv_c_inline" >&6; }
13750
13751 case $ac_cv_c_inline in
13752 inline | yes) ;;
13753 *)
13754 case $ac_cv_c_inline in
13755 no) ac_val=;;
13756 *) ac_val=$ac_cv_c_inline;;
13757 esac
13758 cat >>confdefs.h <<_ACEOF
13759 #ifndef __cplusplus
13760 #define inline $ac_val
13761 #endif
13762 _ACEOF
13763 ;;
13764 esac
13765
13766
13767 # VMS doesn't have unlink.
13768 for ac_func in unlink remove
13769 do :
13770 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13771 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
13772 eval as_val=\$$as_ac_var
13773 if test "x$as_val" = x""yes; then :
13774 cat >>confdefs.h <<_ACEOF
13775 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
13776 _ACEOF
13777 break
13778 fi
13779 done
13780
13781 for ac_func in sbrk setlocale
13782 do :
13783 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13784 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
13785 eval as_val=\$$as_ac_var
13786 if test "x$as_val" = x""yes; then :
13787 cat >>confdefs.h <<_ACEOF
13788 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
13789 _ACEOF
13790
13791 fi
13792 done
13793
13794
13795
13796 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LC_MESSAGES" >&5
13797 $as_echo_n "checking for LC_MESSAGES... " >&6; }
13798 if test "${am_cv_val_LC_MESSAGES+set}" = set; then :
13799 $as_echo_n "(cached) " >&6
13800 else
13801 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13802 /* end confdefs.h. */
13803 #include <locale.h>
13804 int
13805 main ()
13806 {
13807 return LC_MESSAGES
13808 ;
13809 return 0;
13810 }
13811 _ACEOF
13812 if ac_fn_c_try_link "$LINENO"; then :
13813 am_cv_val_LC_MESSAGES=yes
13814 else
13815 am_cv_val_LC_MESSAGES=no
13816 fi
13817 rm -f core conftest.err conftest.$ac_objext \
13818 conftest$ac_exeext conftest.$ac_ext
13819 fi
13820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_val_LC_MESSAGES" >&5
13821 $as_echo "$am_cv_val_LC_MESSAGES" >&6; }
13822 if test $am_cv_val_LC_MESSAGES = yes; then
13823
13824 $as_echo "#define HAVE_LC_MESSAGES 1" >>confdefs.h
13825
13826 fi
13827
13828
13829 # do we need the math library?
13830 case "${need_libm}" in
13831 yes)
13832 LIBM=
13833 case $host in
13834 *-*-beos* | *-*-cegcc* | *-*-cygwin* | *-*-haiku* | *-*-pw32* | *-*-darwin*)
13835 # These system don't have libm, or don't need it
13836 ;;
13837 *-ncr-sysv4.3*)
13838 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _mwvalidcheckl in -lmw" >&5
13839 $as_echo_n "checking for _mwvalidcheckl in -lmw... " >&6; }
13840 if test "${ac_cv_lib_mw__mwvalidcheckl+set}" = set; then :
13841 $as_echo_n "(cached) " >&6
13842 else
13843 ac_check_lib_save_LIBS=$LIBS
13844 LIBS="-lmw $LIBS"
13845 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13846 /* end confdefs.h. */
13847
13848 /* Override any GCC internal prototype to avoid an error.
13849 Use char because int might match the return type of a GCC
13850 builtin and then its argument prototype would still apply. */
13851 #ifdef __cplusplus
13852 extern "C"
13853 #endif
13854 char _mwvalidcheckl ();
13855 int
13856 main ()
13857 {
13858 return _mwvalidcheckl ();
13859 ;
13860 return 0;
13861 }
13862 _ACEOF
13863 if ac_fn_c_try_link "$LINENO"; then :
13864 ac_cv_lib_mw__mwvalidcheckl=yes
13865 else
13866 ac_cv_lib_mw__mwvalidcheckl=no
13867 fi
13868 rm -f core conftest.err conftest.$ac_objext \
13869 conftest$ac_exeext conftest.$ac_ext
13870 LIBS=$ac_check_lib_save_LIBS
13871 fi
13872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mw__mwvalidcheckl" >&5
13873 $as_echo "$ac_cv_lib_mw__mwvalidcheckl" >&6; }
13874 if test "x$ac_cv_lib_mw__mwvalidcheckl" = x""yes; then :
13875 LIBM="-lmw"
13876 fi
13877
13878 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cos in -lm" >&5
13879 $as_echo_n "checking for cos in -lm... " >&6; }
13880 if test "${ac_cv_lib_m_cos+set}" = set; then :
13881 $as_echo_n "(cached) " >&6
13882 else
13883 ac_check_lib_save_LIBS=$LIBS
13884 LIBS="-lm $LIBS"
13885 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13886 /* end confdefs.h. */
13887
13888 /* Override any GCC internal prototype to avoid an error.
13889 Use char because int might match the return type of a GCC
13890 builtin and then its argument prototype would still apply. */
13891 #ifdef __cplusplus
13892 extern "C"
13893 #endif
13894 char cos ();
13895 int
13896 main ()
13897 {
13898 return cos ();
13899 ;
13900 return 0;
13901 }
13902 _ACEOF
13903 if ac_fn_c_try_link "$LINENO"; then :
13904 ac_cv_lib_m_cos=yes
13905 else
13906 ac_cv_lib_m_cos=no
13907 fi
13908 rm -f core conftest.err conftest.$ac_objext \
13909 conftest$ac_exeext conftest.$ac_ext
13910 LIBS=$ac_check_lib_save_LIBS
13911 fi
13912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_cos" >&5
13913 $as_echo "$ac_cv_lib_m_cos" >&6; }
13914 if test "x$ac_cv_lib_m_cos" = x""yes; then :
13915 LIBM="$LIBM -lm"
13916 fi
13917
13918 ;;
13919 *)
13920 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cos in -lm" >&5
13921 $as_echo_n "checking for cos in -lm... " >&6; }
13922 if test "${ac_cv_lib_m_cos+set}" = set; then :
13923 $as_echo_n "(cached) " >&6
13924 else
13925 ac_check_lib_save_LIBS=$LIBS
13926 LIBS="-lm $LIBS"
13927 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13928 /* end confdefs.h. */
13929
13930 /* Override any GCC internal prototype to avoid an error.
13931 Use char because int might match the return type of a GCC
13932 builtin and then its argument prototype would still apply. */
13933 #ifdef __cplusplus
13934 extern "C"
13935 #endif
13936 char cos ();
13937 int
13938 main ()
13939 {
13940 return cos ();
13941 ;
13942 return 0;
13943 }
13944 _ACEOF
13945 if ac_fn_c_try_link "$LINENO"; then :
13946 ac_cv_lib_m_cos=yes
13947 else
13948 ac_cv_lib_m_cos=no
13949 fi
13950 rm -f core conftest.err conftest.$ac_objext \
13951 conftest$ac_exeext conftest.$ac_ext
13952 LIBS=$ac_check_lib_save_LIBS
13953 fi
13954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_cos" >&5
13955 $as_echo "$ac_cv_lib_m_cos" >&6; }
13956 if test "x$ac_cv_lib_m_cos" = x""yes; then :
13957 LIBM="-lm"
13958 fi
13959
13960 ;;
13961 esac
13962
13963
13964
13965 ;;
13966 esac
13967
13968 # Some non-ANSI preprocessors botch requoting inside strings. That's bad
13969 # enough, but on some of those systems, the assert macro relies on requoting
13970 # working properly!
13971 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working assert macro" >&5
13972 $as_echo_n "checking for working assert macro... " >&6; }
13973 if test "${gas_cv_assert_ok+set}" = set; then :
13974 $as_echo_n "(cached) " >&6
13975 else
13976 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13977 /* end confdefs.h. */
13978 #include <assert.h>
13979 #include <stdio.h>
13980 int
13981 main ()
13982 {
13983
13984 /* check for requoting problems */
13985 static int a, b, c, d;
13986 static char *s;
13987 assert (!strcmp(s, "foo bar baz quux"));
13988 /* check for newline handling */
13989 assert (a == b
13990 || c == d);
13991
13992 ;
13993 return 0;
13994 }
13995 _ACEOF
13996 if ac_fn_c_try_link "$LINENO"; then :
13997 gas_cv_assert_ok=yes
13998 else
13999 gas_cv_assert_ok=no
14000 fi
14001 rm -f core conftest.err conftest.$ac_objext \
14002 conftest$ac_exeext conftest.$ac_ext
14003 fi
14004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gas_cv_assert_ok" >&5
14005 $as_echo "$gas_cv_assert_ok" >&6; }
14006 test $gas_cv_assert_ok = yes ||
14007 $as_echo "#define BROKEN_ASSERT 1" >>confdefs.h
14008
14009
14010
14011 # On some systems, the system header files may not declare malloc, realloc,
14012 # and free. There are places where gas needs these functions to have been
14013 # declared -- such as when taking their addresses.
14014 gas_test_headers="
14015 #ifdef HAVE_MEMORY_H
14016 #include <memory.h>
14017 #endif
14018 #ifdef HAVE_STRING_H
14019 #include <string.h>
14020 #else
14021 #ifdef HAVE_STRINGS_H
14022 #include <strings.h>
14023 #endif
14024 #endif
14025 #ifdef HAVE_STDLIB_H
14026 #include <stdlib.h>
14027 #endif
14028 #ifdef HAVE_UNISTD_H
14029 #include <unistd.h>
14030 #endif
14031 "
14032
14033 # Does errno.h declare errno, or do we have to add a separate declaration
14034 # for it?
14035
14036 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether declaration is required for errno" >&5
14037 $as_echo_n "checking whether declaration is required for errno... " >&6; }
14038 if test "${gas_cv_decl_needed_errno+set}" = set; then :
14039 $as_echo_n "(cached) " >&6
14040 else
14041 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14042 /* end confdefs.h. */
14043
14044 #ifdef HAVE_ERRNO_H
14045 #include <errno.h>
14046 #endif
14047
14048 int
14049 main ()
14050 {
14051
14052 typedef int f;
14053 f x;
14054 x = (f) errno;
14055
14056 ;
14057 return 0;
14058 }
14059 _ACEOF
14060 if ac_fn_c_try_link "$LINENO"; then :
14061 gas_cv_decl_needed_errno=no
14062 else
14063 gas_cv_decl_needed_errno=yes
14064 fi
14065 rm -f core conftest.err conftest.$ac_objext \
14066 conftest$ac_exeext conftest.$ac_ext
14067 fi
14068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gas_cv_decl_needed_errno" >&5
14069 $as_echo "$gas_cv_decl_needed_errno" >&6; }
14070 if test $gas_cv_decl_needed_errno = yes; then
14071
14072 $as_echo "#define NEED_DECLARATION_ERRNO 1" >>confdefs.h
14073
14074 fi
14075
14076
14077 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a known getopt prototype in unistd.h" >&5
14078 $as_echo_n "checking for a known getopt prototype in unistd.h... " >&6; }
14079 if test "${gas_cv_decl_getopt_unistd_h+set}" = set; then :
14080 $as_echo_n "(cached) " >&6
14081 else
14082 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14083 /* end confdefs.h. */
14084 #include <unistd.h>
14085 int
14086 main ()
14087 {
14088 extern int getopt (int, char *const*, const char *);
14089 ;
14090 return 0;
14091 }
14092 _ACEOF
14093 if ac_fn_c_try_compile "$LINENO"; then :
14094 gas_cv_decl_getopt_unistd_h=yes
14095 else
14096 gas_cv_decl_getopt_unistd_h=no
14097 fi
14098 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14099 fi
14100
14101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gas_cv_decl_getopt_unistd_h" >&5
14102 $as_echo "$gas_cv_decl_getopt_unistd_h" >&6; }
14103 if test $gas_cv_decl_getopt_unistd_h = yes; then
14104
14105 $as_echo "#define HAVE_DECL_GETOPT 1" >>confdefs.h
14106
14107 fi
14108
14109
14110 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether declaration is required for environ" >&5
14111 $as_echo_n "checking whether declaration is required for environ... " >&6; }
14112 if test "${gas_cv_decl_needed_environ+set}" = set; then :
14113 $as_echo_n "(cached) " >&6
14114 else
14115 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14116 /* end confdefs.h. */
14117 $gas_test_headers
14118 int
14119 main ()
14120 {
14121
14122 typedef char **f;
14123 f x;
14124 x = (f) environ;
14125
14126 ;
14127 return 0;
14128 }
14129 _ACEOF
14130 if ac_fn_c_try_link "$LINENO"; then :
14131 gas_cv_decl_needed_environ=no
14132 else
14133 gas_cv_decl_needed_environ=yes
14134 fi
14135 rm -f core conftest.err conftest.$ac_objext \
14136 conftest$ac_exeext conftest.$ac_ext
14137 fi
14138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gas_cv_decl_needed_environ" >&5
14139 $as_echo "$gas_cv_decl_needed_environ" >&6; }
14140 if test $gas_cv_decl_needed_environ = yes; then
14141
14142 $as_echo "#define NEED_DECLARATION_ENVIRON 1" >>confdefs.h
14143
14144 fi
14145
14146
14147 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether declaration is required for ffs" >&5
14148 $as_echo_n "checking whether declaration is required for ffs... " >&6; }
14149 if test "${gas_cv_decl_needed_ffs+set}" = set; then :
14150 $as_echo_n "(cached) " >&6
14151 else
14152 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14153 /* end confdefs.h. */
14154 $gas_test_headers
14155 int
14156 main ()
14157 {
14158
14159 typedef int (*f)(int);
14160 f x;
14161 x = (f) ffs;
14162
14163 ;
14164 return 0;
14165 }
14166 _ACEOF
14167 if ac_fn_c_try_link "$LINENO"; then :
14168 gas_cv_decl_needed_ffs=no
14169 else
14170 gas_cv_decl_needed_ffs=yes
14171 fi
14172 rm -f core conftest.err conftest.$ac_objext \
14173 conftest$ac_exeext conftest.$ac_ext
14174 fi
14175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gas_cv_decl_needed_ffs" >&5
14176 $as_echo "$gas_cv_decl_needed_ffs" >&6; }
14177 if test $gas_cv_decl_needed_ffs = yes; then
14178
14179 $as_echo "#define NEED_DECLARATION_FFS 1" >>confdefs.h
14180
14181 fi
14182
14183
14184 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether declaration is required for free" >&5
14185 $as_echo_n "checking whether declaration is required for free... " >&6; }
14186 if test "${gas_cv_decl_needed_free+set}" = set; then :
14187 $as_echo_n "(cached) " >&6
14188 else
14189 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14190 /* end confdefs.h. */
14191 $gas_test_headers
14192 int
14193 main ()
14194 {
14195
14196 typedef void (*f)();
14197 f x;
14198 x = (f) free;
14199
14200 ;
14201 return 0;
14202 }
14203 _ACEOF
14204 if ac_fn_c_try_link "$LINENO"; then :
14205 gas_cv_decl_needed_free=no
14206 else
14207 gas_cv_decl_needed_free=yes
14208 fi
14209 rm -f core conftest.err conftest.$ac_objext \
14210 conftest$ac_exeext conftest.$ac_ext
14211 fi
14212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gas_cv_decl_needed_free" >&5
14213 $as_echo "$gas_cv_decl_needed_free" >&6; }
14214 if test $gas_cv_decl_needed_free = yes; then
14215
14216 $as_echo "#define NEED_DECLARATION_FREE 1" >>confdefs.h
14217
14218 fi
14219
14220
14221 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether declaration is required for malloc" >&5
14222 $as_echo_n "checking whether declaration is required for malloc... " >&6; }
14223 if test "${gas_cv_decl_needed_malloc+set}" = set; then :
14224 $as_echo_n "(cached) " >&6
14225 else
14226 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14227 /* end confdefs.h. */
14228 $gas_test_headers
14229 int
14230 main ()
14231 {
14232
14233 typedef char *(*f)();
14234 f x;
14235 x = (f) malloc;
14236
14237 ;
14238 return 0;
14239 }
14240 _ACEOF
14241 if ac_fn_c_try_link "$LINENO"; then :
14242 gas_cv_decl_needed_malloc=no
14243 else
14244 gas_cv_decl_needed_malloc=yes
14245 fi
14246 rm -f core conftest.err conftest.$ac_objext \
14247 conftest$ac_exeext conftest.$ac_ext
14248 fi
14249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gas_cv_decl_needed_malloc" >&5
14250 $as_echo "$gas_cv_decl_needed_malloc" >&6; }
14251 if test $gas_cv_decl_needed_malloc = yes; then
14252
14253 $as_echo "#define NEED_DECLARATION_MALLOC 1" >>confdefs.h
14254
14255 fi
14256
14257
14258 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether declaration is required for sbrk" >&5
14259 $as_echo_n "checking whether declaration is required for sbrk... " >&6; }
14260 if test "${gas_cv_decl_needed_sbrk+set}" = set; then :
14261 $as_echo_n "(cached) " >&6
14262 else
14263 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14264 /* end confdefs.h. */
14265 $gas_test_headers
14266 int
14267 main ()
14268 {
14269
14270 typedef char *(*f)();
14271 f x;
14272 x = (f) sbrk;
14273
14274 ;
14275 return 0;
14276 }
14277 _ACEOF
14278 if ac_fn_c_try_link "$LINENO"; then :
14279 gas_cv_decl_needed_sbrk=no
14280 else
14281 gas_cv_decl_needed_sbrk=yes
14282 fi
14283 rm -f core conftest.err conftest.$ac_objext \
14284 conftest$ac_exeext conftest.$ac_ext
14285 fi
14286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gas_cv_decl_needed_sbrk" >&5
14287 $as_echo "$gas_cv_decl_needed_sbrk" >&6; }
14288 if test $gas_cv_decl_needed_sbrk = yes; then
14289
14290 $as_echo "#define NEED_DECLARATION_SBRK 1" >>confdefs.h
14291
14292 fi
14293
14294
14295 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether declaration is required for strstr" >&5
14296 $as_echo_n "checking whether declaration is required for strstr... " >&6; }
14297 if test "${gas_cv_decl_needed_strstr+set}" = set; then :
14298 $as_echo_n "(cached) " >&6
14299 else
14300 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14301 /* end confdefs.h. */
14302 $gas_test_headers
14303 int
14304 main ()
14305 {
14306
14307 typedef char *(*f)();
14308 f x;
14309 x = (f) strstr;
14310
14311 ;
14312 return 0;
14313 }
14314 _ACEOF
14315 if ac_fn_c_try_link "$LINENO"; then :
14316 gas_cv_decl_needed_strstr=no
14317 else
14318 gas_cv_decl_needed_strstr=yes
14319 fi
14320 rm -f core conftest.err conftest.$ac_objext \
14321 conftest$ac_exeext conftest.$ac_ext
14322 fi
14323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gas_cv_decl_needed_strstr" >&5
14324 $as_echo "$gas_cv_decl_needed_strstr" >&6; }
14325 if test $gas_cv_decl_needed_strstr = yes; then
14326
14327 $as_echo "#define NEED_DECLARATION_STRSTR 1" >>confdefs.h
14328
14329 fi
14330
14331
14332 ac_fn_c_check_decl "$LINENO" "free" "ac_cv_have_decl_free" "$ac_includes_default"
14333 if test "x$ac_cv_have_decl_free" = x""yes; then :
14334 ac_have_decl=1
14335 else
14336 ac_have_decl=0
14337 fi
14338
14339 cat >>confdefs.h <<_ACEOF
14340 #define HAVE_DECL_FREE $ac_have_decl
14341 _ACEOF
14342 ac_fn_c_check_decl "$LINENO" "getenv" "ac_cv_have_decl_getenv" "$ac_includes_default"
14343 if test "x$ac_cv_have_decl_getenv" = x""yes; then :
14344 ac_have_decl=1
14345 else
14346 ac_have_decl=0
14347 fi
14348
14349 cat >>confdefs.h <<_ACEOF
14350 #define HAVE_DECL_GETENV $ac_have_decl
14351 _ACEOF
14352 ac_fn_c_check_decl "$LINENO" "malloc" "ac_cv_have_decl_malloc" "$ac_includes_default"
14353 if test "x$ac_cv_have_decl_malloc" = x""yes; then :
14354 ac_have_decl=1
14355 else
14356 ac_have_decl=0
14357 fi
14358
14359 cat >>confdefs.h <<_ACEOF
14360 #define HAVE_DECL_MALLOC $ac_have_decl
14361 _ACEOF
14362 ac_fn_c_check_decl "$LINENO" "mempcpy" "ac_cv_have_decl_mempcpy" "$ac_includes_default"
14363 if test "x$ac_cv_have_decl_mempcpy" = x""yes; then :
14364 ac_have_decl=1
14365 else
14366 ac_have_decl=0
14367 fi
14368
14369 cat >>confdefs.h <<_ACEOF
14370 #define HAVE_DECL_MEMPCPY $ac_have_decl
14371 _ACEOF
14372 ac_fn_c_check_decl "$LINENO" "realloc" "ac_cv_have_decl_realloc" "$ac_includes_default"
14373 if test "x$ac_cv_have_decl_realloc" = x""yes; then :
14374 ac_have_decl=1
14375 else
14376 ac_have_decl=0
14377 fi
14378
14379 cat >>confdefs.h <<_ACEOF
14380 #define HAVE_DECL_REALLOC $ac_have_decl
14381 _ACEOF
14382 ac_fn_c_check_decl "$LINENO" "stpcpy" "ac_cv_have_decl_stpcpy" "$ac_includes_default"
14383 if test "x$ac_cv_have_decl_stpcpy" = x""yes; then :
14384 ac_have_decl=1
14385 else
14386 ac_have_decl=0
14387 fi
14388
14389 cat >>confdefs.h <<_ACEOF
14390 #define HAVE_DECL_STPCPY $ac_have_decl
14391 _ACEOF
14392 ac_fn_c_check_decl "$LINENO" "strstr" "ac_cv_have_decl_strstr" "$ac_includes_default"
14393 if test "x$ac_cv_have_decl_strstr" = x""yes; then :
14394 ac_have_decl=1
14395 else
14396 ac_have_decl=0
14397 fi
14398
14399 cat >>confdefs.h <<_ACEOF
14400 #define HAVE_DECL_STRSTR $ac_have_decl
14401 _ACEOF
14402 ac_fn_c_check_decl "$LINENO" "vsnprintf" "ac_cv_have_decl_vsnprintf" "$ac_includes_default"
14403 if test "x$ac_cv_have_decl_vsnprintf" = x""yes; then :
14404 ac_have_decl=1
14405 else
14406 ac_have_decl=0
14407 fi
14408
14409 cat >>confdefs.h <<_ACEOF
14410 #define HAVE_DECL_VSNPRINTF $ac_have_decl
14411 _ACEOF
14412 ac_fn_c_check_decl "$LINENO" "asprintf" "ac_cv_have_decl_asprintf" "$ac_includes_default"
14413 if test "x$ac_cv_have_decl_asprintf" = x""yes; then :
14414 ac_have_decl=1
14415 else
14416 ac_have_decl=0
14417 fi
14418
14419 cat >>confdefs.h <<_ACEOF
14420 #define HAVE_DECL_ASPRINTF $ac_have_decl
14421 _ACEOF
14422
14423
14424
14425 case "${host}" in
14426 *-*-msdos* | *-*-go32* | *-*-mingw32* | *-*-cygwin* | *-*-windows*)
14427
14428 $as_echo "#define USE_BINARY_FOPEN 1" >>confdefs.h
14429 ;;
14430 esac
14431
14432 # Link in zlib if we can. This allows us to write compressed debug sections.
14433
14434 # Use the system's zlib library.
14435 zlibdir="-L\$(top_builddir)/../zlib"
14436 zlibinc="-I\$(top_srcdir)/../zlib"
14437
14438 # Check whether --with-system-zlib was given.
14439 if test "${with_system_zlib+set}" = set; then :
14440 withval=$with_system_zlib; if test x$with_system_zlib = xyes ; then
14441 zlibdir=
14442 zlibinc=
14443 fi
14444
14445 fi
14446
14447
14448
14449
14450
14451 # Support for VMS timestamps via cross compile
14452
14453 if test "$ac_cv_header_time_h" = yes; then
14454 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct tm.tm_gmtoff in time.h" >&5
14455 $as_echo_n "checking for struct tm.tm_gmtoff in time.h... " >&6; }
14456 if test "${gas_cv_have_time_type_member_tm_gmtoff+set}" = set; then :
14457 $as_echo_n "(cached) " >&6
14458 else
14459 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14460 /* end confdefs.h. */
14461
14462 #define _BSD_SOURCE 1
14463 #include <time.h>
14464 int
14465 main ()
14466 {
14467 struct tm avar; void* aref = (void*) &avar.tm_gmtoff
14468 ;
14469 return 0;
14470 }
14471 _ACEOF
14472 if ac_fn_c_try_compile "$LINENO"; then :
14473 gas_cv_have_time_type_member_tm_gmtoff=yes
14474 else
14475 gas_cv_have_time_type_member_tm_gmtoff=no
14476
14477 fi
14478 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14479 fi
14480
14481 if test $gas_cv_have_time_type_member_tm_gmtoff = yes; then
14482
14483 $as_echo "#define HAVE_TM_GMTOFF 1" >>confdefs.h
14484
14485 fi
14486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gas_cv_have_time_type_member_tm_gmtoff" >&5
14487 $as_echo "$gas_cv_have_time_type_member_tm_gmtoff" >&6; }
14488
14489 fi
14490
14491 if test "$ac_cv_header_sys_stat_h" = yes; then
14492 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct stat.st_mtim.tv_sec in sys/stat.h" >&5
14493 $as_echo_n "checking for struct stat.st_mtim.tv_sec in sys/stat.h... " >&6; }
14494 if test "${gas_cv_have_sys_stat_type_member_st_mtim_tv_sec+set}" = set; then :
14495 $as_echo_n "(cached) " >&6
14496 else
14497 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14498 /* end confdefs.h. */
14499
14500 #define _BSD_SOURCE 1
14501 #include <sys/stat.h>
14502 int
14503 main ()
14504 {
14505 struct stat avar; void* aref = (void*) &avar.st_mtim.tv_sec
14506 ;
14507 return 0;
14508 }
14509 _ACEOF
14510 if ac_fn_c_try_compile "$LINENO"; then :
14511 gas_cv_have_sys_stat_type_member_st_mtim_tv_sec=yes
14512 else
14513 gas_cv_have_sys_stat_type_member_st_mtim_tv_sec=no
14514
14515 fi
14516 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14517 fi
14518
14519 if test $gas_cv_have_sys_stat_type_member_st_mtim_tv_sec = yes; then
14520
14521 $as_echo "#define HAVE_ST_MTIM_TV_SEC 1" >>confdefs.h
14522
14523 fi
14524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gas_cv_have_sys_stat_type_member_st_mtim_tv_sec" >&5
14525 $as_echo "$gas_cv_have_sys_stat_type_member_st_mtim_tv_sec" >&6; }
14526
14527 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct stat.st_mtim.tv_nsec in sys/stat.h" >&5
14528 $as_echo_n "checking for struct stat.st_mtim.tv_nsec in sys/stat.h... " >&6; }
14529 if test "${gas_cv_have_sys_stat_type_member_st_mtim_tv_nsec+set}" = set; then :
14530 $as_echo_n "(cached) " >&6
14531 else
14532 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14533 /* end confdefs.h. */
14534
14535 #define _BSD_SOURCE 1
14536 #include <sys/stat.h>
14537 int
14538 main ()
14539 {
14540 struct stat avar; void* aref = (void*) &avar.st_mtim.tv_nsec
14541 ;
14542 return 0;
14543 }
14544 _ACEOF
14545 if ac_fn_c_try_compile "$LINENO"; then :
14546 gas_cv_have_sys_stat_type_member_st_mtim_tv_nsec=yes
14547 else
14548 gas_cv_have_sys_stat_type_member_st_mtim_tv_nsec=no
14549
14550 fi
14551 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14552 fi
14553
14554 if test $gas_cv_have_sys_stat_type_member_st_mtim_tv_nsec = yes; then
14555
14556 $as_echo "#define HAVE_ST_MTIM_TV_NSEC 1" >>confdefs.h
14557
14558 fi
14559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gas_cv_have_sys_stat_type_member_st_mtim_tv_nsec" >&5
14560 $as_echo "$gas_cv_have_sys_stat_type_member_st_mtim_tv_nsec" >&6; }
14561
14562 fi
14563
14564
14565
14566
14567
14568
14569
14570
14571
14572 ac_config_files="$ac_config_files Makefile doc/Makefile po/Makefile.in:po/Make-in"
14573
14574 ac_config_commands="$ac_config_commands default"
14575
14576
14577 cat >confcache <<\_ACEOF
14578 # This file is a shell script that caches the results of configure
14579 # tests run on this system so they can be shared between configure
14580 # scripts and configure runs, see configure's option --config-cache.
14581 # It is not useful on other systems. If it contains results you don't
14582 # want to keep, you may remove or edit it.
14583 #
14584 # config.status only pays attention to the cache file if you give it
14585 # the --recheck option to rerun configure.
14586 #
14587 # `ac_cv_env_foo' variables (set or unset) will be overridden when
14588 # loading this file, other *unset* `ac_cv_foo' will be assigned the
14589 # following values.
14590
14591 _ACEOF
14592
14593 # The following way of writing the cache mishandles newlines in values,
14594 # but we know of no workaround that is simple, portable, and efficient.
14595 # So, we kill variables containing newlines.
14596 # Ultrix sh set writes to stderr and can't be redirected directly,
14597 # and sets the high bit in the cache file unless we assign to the vars.
14598 (
14599 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
14600 eval ac_val=\$$ac_var
14601 case $ac_val in #(
14602 *${as_nl}*)
14603 case $ac_var in #(
14604 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
14605 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
14606 esac
14607 case $ac_var in #(
14608 _ | IFS | as_nl) ;; #(
14609 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
14610 *) { eval $ac_var=; unset $ac_var;} ;;
14611 esac ;;
14612 esac
14613 done
14614
14615 (set) 2>&1 |
14616 case $as_nl`(ac_space=' '; set) 2>&1` in #(
14617 *${as_nl}ac_space=\ *)
14618 # `set' does not quote correctly, so add quotes: double-quote
14619 # substitution turns \\\\ into \\, and sed turns \\ into \.
14620 sed -n \
14621 "s/'/'\\\\''/g;
14622 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
14623 ;; #(
14624 *)
14625 # `set' quotes correctly as required by POSIX, so do not add quotes.
14626 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
14627 ;;
14628 esac |
14629 sort
14630 ) |
14631 sed '
14632 /^ac_cv_env_/b end
14633 t clear
14634 :clear
14635 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
14636 t end
14637 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
14638 :end' >>confcache
14639 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
14640 if test -w "$cache_file"; then
14641 test "x$cache_file" != "x/dev/null" &&
14642 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
14643 $as_echo "$as_me: updating cache $cache_file" >&6;}
14644 cat confcache >$cache_file
14645 else
14646 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
14647 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
14648 fi
14649 fi
14650 rm -f confcache
14651
14652 test "x$prefix" = xNONE && prefix=$ac_default_prefix
14653 # Let make expand exec_prefix.
14654 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
14655
14656 DEFS=-DHAVE_CONFIG_H
14657
14658 ac_libobjs=
14659 ac_ltlibobjs=
14660 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
14661 # 1. Remove the extension, and $U if already installed.
14662 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
14663 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
14664 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
14665 # will be set to the directory where LIBOBJS objects are built.
14666 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
14667 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
14668 done
14669 LIBOBJS=$ac_libobjs
14670
14671 LTLIBOBJS=$ac_ltlibobjs
14672
14673
14674 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
14675 as_fn_error "conditional \"AMDEP\" was never defined.
14676 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14677 fi
14678 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
14679 as_fn_error "conditional \"am__fastdepCC\" was never defined.
14680 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14681 fi
14682 if test -n "$EXEEXT"; then
14683 am__EXEEXT_TRUE=
14684 am__EXEEXT_FALSE='#'
14685 else
14686 am__EXEEXT_TRUE='#'
14687 am__EXEEXT_FALSE=
14688 fi
14689
14690
14691 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
14692 as_fn_error "conditional \"MAINTAINER_MODE\" was never defined.
14693 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14694 fi
14695 if test -z "${GENINSRC_NEVER_TRUE}" && test -z "${GENINSRC_NEVER_FALSE}"; then
14696 as_fn_error "conditional \"GENINSRC_NEVER\" was never defined.
14697 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14698 fi
14699
14700 : ${CONFIG_STATUS=./config.status}
14701 ac_write_fail=0
14702 ac_clean_files_save=$ac_clean_files
14703 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
14704 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
14705 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
14706 as_write_fail=0
14707 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
14708 #! $SHELL
14709 # Generated by $as_me.
14710 # Run this file to recreate the current configuration.
14711 # Compiler output produced by configure, useful for debugging
14712 # configure, is in config.log if it exists.
14713
14714 debug=false
14715 ac_cs_recheck=false
14716 ac_cs_silent=false
14717
14718 SHELL=\${CONFIG_SHELL-$SHELL}
14719 export SHELL
14720 _ASEOF
14721 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
14722 ## -------------------- ##
14723 ## M4sh Initialization. ##
14724 ## -------------------- ##
14725
14726 # Be more Bourne compatible
14727 DUALCASE=1; export DUALCASE # for MKS sh
14728 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
14729 emulate sh
14730 NULLCMD=:
14731 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
14732 # is contrary to our usage. Disable this feature.
14733 alias -g '${1+"$@"}'='"$@"'
14734 setopt NO_GLOB_SUBST
14735 else
14736 case `(set -o) 2>/dev/null` in #(
14737 *posix*) :
14738 set -o posix ;; #(
14739 *) :
14740 ;;
14741 esac
14742 fi
14743
14744
14745 as_nl='
14746 '
14747 export as_nl
14748 # Printing a long string crashes Solaris 7 /usr/bin/printf.
14749 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
14750 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
14751 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
14752 # Prefer a ksh shell builtin over an external printf program on Solaris,
14753 # but without wasting forks for bash or zsh.
14754 if test -z "$BASH_VERSION$ZSH_VERSION" \
14755 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
14756 as_echo='print -r --'
14757 as_echo_n='print -rn --'
14758 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
14759 as_echo='printf %s\n'
14760 as_echo_n='printf %s'
14761 else
14762 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
14763 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
14764 as_echo_n='/usr/ucb/echo -n'
14765 else
14766 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
14767 as_echo_n_body='eval
14768 arg=$1;
14769 case $arg in #(
14770 *"$as_nl"*)
14771 expr "X$arg" : "X\\(.*\\)$as_nl";
14772 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
14773 esac;
14774 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
14775 '
14776 export as_echo_n_body
14777 as_echo_n='sh -c $as_echo_n_body as_echo'
14778 fi
14779 export as_echo_body
14780 as_echo='sh -c $as_echo_body as_echo'
14781 fi
14782
14783 # The user is always right.
14784 if test "${PATH_SEPARATOR+set}" != set; then
14785 PATH_SEPARATOR=:
14786 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
14787 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
14788 PATH_SEPARATOR=';'
14789 }
14790 fi
14791
14792
14793 # IFS
14794 # We need space, tab and new line, in precisely that order. Quoting is
14795 # there to prevent editors from complaining about space-tab.
14796 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
14797 # splitting by setting IFS to empty value.)
14798 IFS=" "" $as_nl"
14799
14800 # Find who we are. Look in the path if we contain no directory separator.
14801 case $0 in #((
14802 *[\\/]* ) as_myself=$0 ;;
14803 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14804 for as_dir in $PATH
14805 do
14806 IFS=$as_save_IFS
14807 test -z "$as_dir" && as_dir=.
14808 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
14809 done
14810 IFS=$as_save_IFS
14811
14812 ;;
14813 esac
14814 # We did not find ourselves, most probably we were run as `sh COMMAND'
14815 # in which case we are not to be found in the path.
14816 if test "x$as_myself" = x; then
14817 as_myself=$0
14818 fi
14819 if test ! -f "$as_myself"; then
14820 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
14821 exit 1
14822 fi
14823
14824 # Unset variables that we do not need and which cause bugs (e.g. in
14825 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
14826 # suppresses any "Segmentation fault" message there. '((' could
14827 # trigger a bug in pdksh 5.2.14.
14828 for as_var in BASH_ENV ENV MAIL MAILPATH
14829 do eval test x\${$as_var+set} = xset \
14830 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
14831 done
14832 PS1='$ '
14833 PS2='> '
14834 PS4='+ '
14835
14836 # NLS nuisances.
14837 LC_ALL=C
14838 export LC_ALL
14839 LANGUAGE=C
14840 export LANGUAGE
14841
14842 # CDPATH.
14843 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
14844
14845
14846 # as_fn_error ERROR [LINENO LOG_FD]
14847 # ---------------------------------
14848 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
14849 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
14850 # script with status $?, using 1 if that was 0.
14851 as_fn_error ()
14852 {
14853 as_status=$?; test $as_status -eq 0 && as_status=1
14854 if test "$3"; then
14855 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
14856 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
14857 fi
14858 $as_echo "$as_me: error: $1" >&2
14859 as_fn_exit $as_status
14860 } # as_fn_error
14861
14862
14863 # as_fn_set_status STATUS
14864 # -----------------------
14865 # Set $? to STATUS, without forking.
14866 as_fn_set_status ()
14867 {
14868 return $1
14869 } # as_fn_set_status
14870
14871 # as_fn_exit STATUS
14872 # -----------------
14873 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
14874 as_fn_exit ()
14875 {
14876 set +e
14877 as_fn_set_status $1
14878 exit $1
14879 } # as_fn_exit
14880
14881 # as_fn_unset VAR
14882 # ---------------
14883 # Portably unset VAR.
14884 as_fn_unset ()
14885 {
14886 { eval $1=; unset $1;}
14887 }
14888 as_unset=as_fn_unset
14889 # as_fn_append VAR VALUE
14890 # ----------------------
14891 # Append the text in VALUE to the end of the definition contained in VAR. Take
14892 # advantage of any shell optimizations that allow amortized linear growth over
14893 # repeated appends, instead of the typical quadratic growth present in naive
14894 # implementations.
14895 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
14896 eval 'as_fn_append ()
14897 {
14898 eval $1+=\$2
14899 }'
14900 else
14901 as_fn_append ()
14902 {
14903 eval $1=\$$1\$2
14904 }
14905 fi # as_fn_append
14906
14907 # as_fn_arith ARG...
14908 # ------------------
14909 # Perform arithmetic evaluation on the ARGs, and store the result in the
14910 # global $as_val. Take advantage of shells that can avoid forks. The arguments
14911 # must be portable across $(()) and expr.
14912 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
14913 eval 'as_fn_arith ()
14914 {
14915 as_val=$(( $* ))
14916 }'
14917 else
14918 as_fn_arith ()
14919 {
14920 as_val=`expr "$@" || test $? -eq 1`
14921 }
14922 fi # as_fn_arith
14923
14924
14925 if expr a : '\(a\)' >/dev/null 2>&1 &&
14926 test "X`expr 00001 : '.*\(...\)'`" = X001; then
14927 as_expr=expr
14928 else
14929 as_expr=false
14930 fi
14931
14932 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
14933 as_basename=basename
14934 else
14935 as_basename=false
14936 fi
14937
14938 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
14939 as_dirname=dirname
14940 else
14941 as_dirname=false
14942 fi
14943
14944 as_me=`$as_basename -- "$0" ||
14945 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
14946 X"$0" : 'X\(//\)$' \| \
14947 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
14948 $as_echo X/"$0" |
14949 sed '/^.*\/\([^/][^/]*\)\/*$/{
14950 s//\1/
14951 q
14952 }
14953 /^X\/\(\/\/\)$/{
14954 s//\1/
14955 q
14956 }
14957 /^X\/\(\/\).*/{
14958 s//\1/
14959 q
14960 }
14961 s/.*/./; q'`
14962
14963 # Avoid depending upon Character Ranges.
14964 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
14965 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
14966 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
14967 as_cr_digits='0123456789'
14968 as_cr_alnum=$as_cr_Letters$as_cr_digits
14969
14970 ECHO_C= ECHO_N= ECHO_T=
14971 case `echo -n x` in #(((((
14972 -n*)
14973 case `echo 'xy\c'` in
14974 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
14975 xy) ECHO_C='\c';;
14976 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
14977 ECHO_T=' ';;
14978 esac;;
14979 *)
14980 ECHO_N='-n';;
14981 esac
14982
14983 rm -f conf$$ conf$$.exe conf$$.file
14984 if test -d conf$$.dir; then
14985 rm -f conf$$.dir/conf$$.file
14986 else
14987 rm -f conf$$.dir
14988 mkdir conf$$.dir 2>/dev/null
14989 fi
14990 if (echo >conf$$.file) 2>/dev/null; then
14991 if ln -s conf$$.file conf$$ 2>/dev/null; then
14992 as_ln_s='ln -s'
14993 # ... but there are two gotchas:
14994 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
14995 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
14996 # In both cases, we have to default to `cp -p'.
14997 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
14998 as_ln_s='cp -p'
14999 elif ln conf$$.file conf$$ 2>/dev/null; then
15000 as_ln_s=ln
15001 else
15002 as_ln_s='cp -p'
15003 fi
15004 else
15005 as_ln_s='cp -p'
15006 fi
15007 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
15008 rmdir conf$$.dir 2>/dev/null
15009
15010
15011 # as_fn_mkdir_p
15012 # -------------
15013 # Create "$as_dir" as a directory, including parents if necessary.
15014 as_fn_mkdir_p ()
15015 {
15016
15017 case $as_dir in #(
15018 -*) as_dir=./$as_dir;;
15019 esac
15020 test -d "$as_dir" || eval $as_mkdir_p || {
15021 as_dirs=
15022 while :; do
15023 case $as_dir in #(
15024 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
15025 *) as_qdir=$as_dir;;
15026 esac
15027 as_dirs="'$as_qdir' $as_dirs"
15028 as_dir=`$as_dirname -- "$as_dir" ||
15029 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15030 X"$as_dir" : 'X\(//\)[^/]' \| \
15031 X"$as_dir" : 'X\(//\)$' \| \
15032 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
15033 $as_echo X"$as_dir" |
15034 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15035 s//\1/
15036 q
15037 }
15038 /^X\(\/\/\)[^/].*/{
15039 s//\1/
15040 q
15041 }
15042 /^X\(\/\/\)$/{
15043 s//\1/
15044 q
15045 }
15046 /^X\(\/\).*/{
15047 s//\1/
15048 q
15049 }
15050 s/.*/./; q'`
15051 test -d "$as_dir" && break
15052 done
15053 test -z "$as_dirs" || eval "mkdir $as_dirs"
15054 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
15055
15056
15057 } # as_fn_mkdir_p
15058 if mkdir -p . 2>/dev/null; then
15059 as_mkdir_p='mkdir -p "$as_dir"'
15060 else
15061 test -d ./-p && rmdir ./-p
15062 as_mkdir_p=false
15063 fi
15064
15065 if test -x / >/dev/null 2>&1; then
15066 as_test_x='test -x'
15067 else
15068 if ls -dL / >/dev/null 2>&1; then
15069 as_ls_L_option=L
15070 else
15071 as_ls_L_option=
15072 fi
15073 as_test_x='
15074 eval sh -c '\''
15075 if test -d "$1"; then
15076 test -d "$1/.";
15077 else
15078 case $1 in #(
15079 -*)set "./$1";;
15080 esac;
15081 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
15082 ???[sx]*):;;*)false;;esac;fi
15083 '\'' sh
15084 '
15085 fi
15086 as_executable_p=$as_test_x
15087
15088 # Sed expression to map a string onto a valid CPP name.
15089 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
15090
15091 # Sed expression to map a string onto a valid variable name.
15092 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
15093
15094
15095 exec 6>&1
15096 ## ----------------------------------- ##
15097 ## Main body of $CONFIG_STATUS script. ##
15098 ## ----------------------------------- ##
15099 _ASEOF
15100 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
15101
15102 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15103 # Save the log message, to keep $0 and so on meaningful, and to
15104 # report actual input values of CONFIG_FILES etc. instead of their
15105 # values after options handling.
15106 ac_log="
15107 This file was extended by gas $as_me 2.26.51, which was
15108 generated by GNU Autoconf 2.64. Invocation command line was
15109
15110 CONFIG_FILES = $CONFIG_FILES
15111 CONFIG_HEADERS = $CONFIG_HEADERS
15112 CONFIG_LINKS = $CONFIG_LINKS
15113 CONFIG_COMMANDS = $CONFIG_COMMANDS
15114 $ $0 $@
15115
15116 on `(hostname || uname -n) 2>/dev/null | sed 1q`
15117 "
15118
15119 _ACEOF
15120
15121 case $ac_config_files in *"
15122 "*) set x $ac_config_files; shift; ac_config_files=$*;;
15123 esac
15124
15125 case $ac_config_headers in *"
15126 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
15127 esac
15128
15129
15130 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15131 # Files that config.status was made for.
15132 config_files="$ac_config_files"
15133 config_headers="$ac_config_headers"
15134 config_commands="$ac_config_commands"
15135
15136 _ACEOF
15137
15138 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15139 ac_cs_usage="\
15140 \`$as_me' instantiates files and other configuration actions
15141 from templates according to the current configuration. Unless the files
15142 and actions are specified as TAGs, all are instantiated by default.
15143
15144 Usage: $0 [OPTION]... [TAG]...
15145
15146 -h, --help print this help, then exit
15147 -V, --version print version number and configuration settings, then exit
15148 -q, --quiet, --silent
15149 do not print progress messages
15150 -d, --debug don't remove temporary files
15151 --recheck update $as_me by reconfiguring in the same conditions
15152 --file=FILE[:TEMPLATE]
15153 instantiate the configuration file FILE
15154 --header=FILE[:TEMPLATE]
15155 instantiate the configuration header FILE
15156
15157 Configuration files:
15158 $config_files
15159
15160 Configuration headers:
15161 $config_headers
15162
15163 Configuration commands:
15164 $config_commands
15165
15166 Report bugs to the package provider."
15167
15168 _ACEOF
15169 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15170 ac_cs_version="\\
15171 gas config.status 2.26.51
15172 configured by $0, generated by GNU Autoconf 2.64,
15173 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
15174
15175 Copyright (C) 2009 Free Software Foundation, Inc.
15176 This config.status script is free software; the Free Software Foundation
15177 gives unlimited permission to copy, distribute and modify it."
15178
15179 ac_pwd='$ac_pwd'
15180 srcdir='$srcdir'
15181 INSTALL='$INSTALL'
15182 MKDIR_P='$MKDIR_P'
15183 AWK='$AWK'
15184 test -n "\$AWK" || AWK=awk
15185 _ACEOF
15186
15187 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15188 # The default lists apply if the user does not specify any file.
15189 ac_need_defaults=:
15190 while test $# != 0
15191 do
15192 case $1 in
15193 --*=*)
15194 ac_option=`expr "X$1" : 'X\([^=]*\)='`
15195 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
15196 ac_shift=:
15197 ;;
15198 *)
15199 ac_option=$1
15200 ac_optarg=$2
15201 ac_shift=shift
15202 ;;
15203 esac
15204
15205 case $ac_option in
15206 # Handling of the options.
15207 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
15208 ac_cs_recheck=: ;;
15209 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
15210 $as_echo "$ac_cs_version"; exit ;;
15211 --debug | --debu | --deb | --de | --d | -d )
15212 debug=: ;;
15213 --file | --fil | --fi | --f )
15214 $ac_shift
15215 case $ac_optarg in
15216 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
15217 esac
15218 as_fn_append CONFIG_FILES " '$ac_optarg'"
15219 ac_need_defaults=false;;
15220 --header | --heade | --head | --hea )
15221 $ac_shift
15222 case $ac_optarg in
15223 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
15224 esac
15225 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
15226 ac_need_defaults=false;;
15227 --he | --h)
15228 # Conflict between --help and --header
15229 as_fn_error "ambiguous option: \`$1'
15230 Try \`$0 --help' for more information.";;
15231 --help | --hel | -h )
15232 $as_echo "$ac_cs_usage"; exit ;;
15233 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
15234 | -silent | --silent | --silen | --sile | --sil | --si | --s)
15235 ac_cs_silent=: ;;
15236
15237 # This is an error.
15238 -*) as_fn_error "unrecognized option: \`$1'
15239 Try \`$0 --help' for more information." ;;
15240
15241 *) as_fn_append ac_config_targets " $1"
15242 ac_need_defaults=false ;;
15243
15244 esac
15245 shift
15246 done
15247
15248 ac_configure_extra_args=
15249
15250 if $ac_cs_silent; then
15251 exec 6>/dev/null
15252 ac_configure_extra_args="$ac_configure_extra_args --silent"
15253 fi
15254
15255 _ACEOF
15256 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15257 if \$ac_cs_recheck; then
15258 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
15259 shift
15260 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
15261 CONFIG_SHELL='$SHELL'
15262 export CONFIG_SHELL
15263 exec "\$@"
15264 fi
15265
15266 _ACEOF
15267 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15268 exec 5>>config.log
15269 {
15270 echo
15271 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
15272 ## Running $as_me. ##
15273 _ASBOX
15274 $as_echo "$ac_log"
15275 } >&5
15276
15277 _ACEOF
15278 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15279 #
15280 # INIT-COMMANDS
15281 #
15282 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
15283
15284
15285 # The HP-UX ksh and POSIX shell print the target directory to stdout
15286 # if CDPATH is set.
15287 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
15288
15289 sed_quote_subst='$sed_quote_subst'
15290 double_quote_subst='$double_quote_subst'
15291 delay_variable_subst='$delay_variable_subst'
15292 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
15293 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
15294 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
15295 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
15296 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
15297 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
15298 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
15299 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
15300 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
15301 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
15302 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
15303 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
15304 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
15305 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
15306 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
15307 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
15308 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
15309 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
15310 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
15311 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
15312 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
15313 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
15314 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
15315 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
15316 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
15317 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
15318 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
15319 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
15320 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
15321 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
15322 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
15323 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
15324 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
15325 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
15326 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
15327 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
15328 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
15329 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
15330 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
15331 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
15332 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
15333 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
15334 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
15335 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
15336 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
15337 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
15338 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
15339 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
15340 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"`'
15341 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
15342 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
15343 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
15344 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
15345 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
15346 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
15347 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
15348 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
15349 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
15350 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
15351 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
15352 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
15353 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
15354 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
15355 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
15356 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
15357 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
15358 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
15359 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
15360 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
15361 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
15362 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
15363 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
15364 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
15365 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
15366 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
15367 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
15368 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
15369 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
15370 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
15371 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
15372 hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
15373 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
15374 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
15375 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
15376 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
15377 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
15378 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
15379 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
15380 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
15381 fix_srcfile_path='`$ECHO "$fix_srcfile_path" | $SED "$delay_single_quote_subst"`'
15382 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
15383 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
15384 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
15385 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
15386 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
15387 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
15388 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
15389 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
15390 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
15391 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
15392 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
15393 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
15394 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
15395 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
15396 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
15397 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
15398 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
15399 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
15400 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
15401 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
15402 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
15403 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
15404 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
15405 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
15406 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
15407 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
15408 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
15409 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
15410 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
15411 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
15412
15413 LTCC='$LTCC'
15414 LTCFLAGS='$LTCFLAGS'
15415 compiler='$compiler_DEFAULT'
15416
15417 # A function that is used when there is no print builtin or printf.
15418 func_fallback_echo ()
15419 {
15420 eval 'cat <<_LTECHO_EOF
15421 \$1
15422 _LTECHO_EOF'
15423 }
15424
15425 # Quote evaled strings.
15426 for var in SHELL \
15427 ECHO \
15428 SED \
15429 GREP \
15430 EGREP \
15431 FGREP \
15432 LD \
15433 NM \
15434 LN_S \
15435 lt_SP2NL \
15436 lt_NL2SP \
15437 reload_flag \
15438 OBJDUMP \
15439 deplibs_check_method \
15440 file_magic_cmd \
15441 AR \
15442 AR_FLAGS \
15443 STRIP \
15444 RANLIB \
15445 CC \
15446 CFLAGS \
15447 compiler \
15448 lt_cv_sys_global_symbol_pipe \
15449 lt_cv_sys_global_symbol_to_cdecl \
15450 lt_cv_sys_global_symbol_to_c_name_address \
15451 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
15452 lt_prog_compiler_no_builtin_flag \
15453 lt_prog_compiler_wl \
15454 lt_prog_compiler_pic \
15455 lt_prog_compiler_static \
15456 lt_cv_prog_compiler_c_o \
15457 need_locks \
15458 DSYMUTIL \
15459 NMEDIT \
15460 LIPO \
15461 OTOOL \
15462 OTOOL64 \
15463 shrext_cmds \
15464 export_dynamic_flag_spec \
15465 whole_archive_flag_spec \
15466 compiler_needs_object \
15467 with_gnu_ld \
15468 allow_undefined_flag \
15469 no_undefined_flag \
15470 hardcode_libdir_flag_spec \
15471 hardcode_libdir_flag_spec_ld \
15472 hardcode_libdir_separator \
15473 fix_srcfile_path \
15474 exclude_expsyms \
15475 include_expsyms \
15476 file_list_spec \
15477 variables_saved_for_relink \
15478 libname_spec \
15479 library_names_spec \
15480 soname_spec \
15481 install_override_mode \
15482 finish_eval \
15483 old_striplib \
15484 striplib; do
15485 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
15486 *[\\\\\\\`\\"\\\$]*)
15487 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
15488 ;;
15489 *)
15490 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
15491 ;;
15492 esac
15493 done
15494
15495 # Double-quote double-evaled strings.
15496 for var in reload_cmds \
15497 old_postinstall_cmds \
15498 old_postuninstall_cmds \
15499 old_archive_cmds \
15500 extract_expsyms_cmds \
15501 old_archive_from_new_cmds \
15502 old_archive_from_expsyms_cmds \
15503 archive_cmds \
15504 archive_expsym_cmds \
15505 module_cmds \
15506 module_expsym_cmds \
15507 export_symbols_cmds \
15508 prelink_cmds \
15509 postinstall_cmds \
15510 postuninstall_cmds \
15511 finish_cmds \
15512 sys_lib_search_path_spec \
15513 sys_lib_dlsearch_path_spec; do
15514 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
15515 *[\\\\\\\`\\"\\\$]*)
15516 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
15517 ;;
15518 *)
15519 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
15520 ;;
15521 esac
15522 done
15523
15524 ac_aux_dir='$ac_aux_dir'
15525 xsi_shell='$xsi_shell'
15526 lt_shell_append='$lt_shell_append'
15527
15528 # See if we are running on zsh, and set the options which allow our
15529 # commands through without removal of \ escapes INIT.
15530 if test -n "\${ZSH_VERSION+set}" ; then
15531 setopt NO_GLOB_SUBST
15532 fi
15533
15534
15535 PACKAGE='$PACKAGE'
15536 VERSION='$VERSION'
15537 TIMESTAMP='$TIMESTAMP'
15538 RM='$RM'
15539 ofile='$ofile'
15540
15541
15542
15543 # Capture the value of obsolete ALL_LINGUAS because we need it to compute
15544 # POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES, CATALOGS. But hide it
15545 # from automake.
15546 eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
15547 # Capture the value of LINGUAS because we need it to compute CATALOGS.
15548 LINGUAS="${LINGUAS-%UNSET%}"
15549
15550 target_cpu_type=${target_cpu_type}
15551 cgen_cpu_prefix=${cgen_cpu_prefix}
15552 obj_format=${obj_format}
15553 te_file=${te_file}
15554
15555 _ACEOF
15556
15557 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15558
15559 # Handling of arguments.
15560 for ac_config_target in $ac_config_targets
15561 do
15562 case $ac_config_target in
15563 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
15564 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
15565 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h:config.in" ;;
15566 "gdb.ini") CONFIG_FILES="$CONFIG_FILES gdb.ini:gdbinit.in" ;;
15567 ".gdbinit") CONFIG_FILES="$CONFIG_FILES .gdbinit:gdbinit.in" ;;
15568 "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
15569 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
15570 "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
15571 "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in:po/Make-in" ;;
15572 "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
15573
15574 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
15575 esac
15576 done
15577
15578
15579 # If the user did not use the arguments to specify the items to instantiate,
15580 # then the envvar interface is used. Set only those that are not.
15581 # We use the long form for the default assignment because of an extremely
15582 # bizarre bug on SunOS 4.1.3.
15583 if $ac_need_defaults; then
15584 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
15585 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
15586 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
15587 fi
15588
15589 # Have a temporary directory for convenience. Make it in the build tree
15590 # simply because there is no reason against having it here, and in addition,
15591 # creating and moving files from /tmp can sometimes cause problems.
15592 # Hook for its removal unless debugging.
15593 # Note that there is a small window in which the directory will not be cleaned:
15594 # after its creation but before its name has been assigned to `$tmp'.
15595 $debug ||
15596 {
15597 tmp=
15598 trap 'exit_status=$?
15599 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
15600 ' 0
15601 trap 'as_fn_exit 1' 1 2 13 15
15602 }
15603 # Create a (secure) tmp directory for tmp files.
15604
15605 {
15606 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
15607 test -n "$tmp" && test -d "$tmp"
15608 } ||
15609 {
15610 tmp=./conf$$-$RANDOM
15611 (umask 077 && mkdir "$tmp")
15612 } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
15613
15614 # Set up the scripts for CONFIG_FILES section.
15615 # No need to generate them if there are no CONFIG_FILES.
15616 # This happens for instance with `./config.status config.h'.
15617 if test -n "$CONFIG_FILES"; then
15618
15619
15620 ac_cr=`echo X | tr X '\015'`
15621 # On cygwin, bash can eat \r inside `` if the user requested igncr.
15622 # But we know of no other shell where ac_cr would be empty at this
15623 # point, so we can use a bashism as a fallback.
15624 if test "x$ac_cr" = x; then
15625 eval ac_cr=\$\'\\r\'
15626 fi
15627 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
15628 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
15629 ac_cs_awk_cr='\r'
15630 else
15631 ac_cs_awk_cr=$ac_cr
15632 fi
15633
15634 echo 'BEGIN {' >"$tmp/subs1.awk" &&
15635 _ACEOF
15636
15637
15638 {
15639 echo "cat >conf$$subs.awk <<_ACEOF" &&
15640 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
15641 echo "_ACEOF"
15642 } >conf$$subs.sh ||
15643 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
15644 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
15645 ac_delim='%!_!# '
15646 for ac_last_try in false false false false false :; do
15647 . ./conf$$subs.sh ||
15648 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
15649
15650 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
15651 if test $ac_delim_n = $ac_delim_num; then
15652 break
15653 elif $ac_last_try; then
15654 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
15655 else
15656 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
15657 fi
15658 done
15659 rm -f conf$$subs.sh
15660
15661 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15662 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
15663 _ACEOF
15664 sed -n '
15665 h
15666 s/^/S["/; s/!.*/"]=/
15667 p
15668 g
15669 s/^[^!]*!//
15670 :repl
15671 t repl
15672 s/'"$ac_delim"'$//
15673 t delim
15674 :nl
15675 h
15676 s/\(.\{148\}\).*/\1/
15677 t more1
15678 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
15679 p
15680 n
15681 b repl
15682 :more1
15683 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
15684 p
15685 g
15686 s/.\{148\}//
15687 t nl
15688 :delim
15689 h
15690 s/\(.\{148\}\).*/\1/
15691 t more2
15692 s/["\\]/\\&/g; s/^/"/; s/$/"/
15693 p
15694 b
15695 :more2
15696 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
15697 p
15698 g
15699 s/.\{148\}//
15700 t delim
15701 ' <conf$$subs.awk | sed '
15702 /^[^""]/{
15703 N
15704 s/\n//
15705 }
15706 ' >>$CONFIG_STATUS || ac_write_fail=1
15707 rm -f conf$$subs.awk
15708 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15709 _ACAWK
15710 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
15711 for (key in S) S_is_set[key] = 1
15712 FS = "\a"
15713
15714 }
15715 {
15716 line = $ 0
15717 nfields = split(line, field, "@")
15718 substed = 0
15719 len = length(field[1])
15720 for (i = 2; i < nfields; i++) {
15721 key = field[i]
15722 keylen = length(key)
15723 if (S_is_set[key]) {
15724 value = S[key]
15725 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
15726 len += length(value) + length(field[++i])
15727 substed = 1
15728 } else
15729 len += 1 + keylen
15730 }
15731
15732 print line
15733 }
15734
15735 _ACAWK
15736 _ACEOF
15737 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15738 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
15739 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
15740 else
15741 cat
15742 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
15743 || as_fn_error "could not setup config files machinery" "$LINENO" 5
15744 _ACEOF
15745
15746 # VPATH may cause trouble with some makes, so we remove $(srcdir),
15747 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
15748 # trailing colons and then remove the whole line if VPATH becomes empty
15749 # (actually we leave an empty line to preserve line numbers).
15750 if test "x$srcdir" = x.; then
15751 ac_vpsub='/^[ ]*VPATH[ ]*=/{
15752 s/:*\$(srcdir):*/:/
15753 s/:*\${srcdir}:*/:/
15754 s/:*@srcdir@:*/:/
15755 s/^\([^=]*=[ ]*\):*/\1/
15756 s/:*$//
15757 s/^[^=]*=[ ]*$//
15758 }'
15759 fi
15760
15761 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15762 fi # test -n "$CONFIG_FILES"
15763
15764 # Set up the scripts for CONFIG_HEADERS section.
15765 # No need to generate them if there are no CONFIG_HEADERS.
15766 # This happens for instance with `./config.status Makefile'.
15767 if test -n "$CONFIG_HEADERS"; then
15768 cat >"$tmp/defines.awk" <<\_ACAWK ||
15769 BEGIN {
15770 _ACEOF
15771
15772 # Transform confdefs.h into an awk script `defines.awk', embedded as
15773 # here-document in config.status, that substitutes the proper values into
15774 # config.h.in to produce config.h.
15775
15776 # Create a delimiter string that does not exist in confdefs.h, to ease
15777 # handling of long lines.
15778 ac_delim='%!_!# '
15779 for ac_last_try in false false :; do
15780 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
15781 if test -z "$ac_t"; then
15782 break
15783 elif $ac_last_try; then
15784 as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
15785 else
15786 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
15787 fi
15788 done
15789
15790 # For the awk script, D is an array of macro values keyed by name,
15791 # likewise P contains macro parameters if any. Preserve backslash
15792 # newline sequences.
15793
15794 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
15795 sed -n '
15796 s/.\{148\}/&'"$ac_delim"'/g
15797 t rset
15798 :rset
15799 s/^[ ]*#[ ]*define[ ][ ]*/ /
15800 t def
15801 d
15802 :def
15803 s/\\$//
15804 t bsnl
15805 s/["\\]/\\&/g
15806 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
15807 D["\1"]=" \3"/p
15808 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
15809 d
15810 :bsnl
15811 s/["\\]/\\&/g
15812 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
15813 D["\1"]=" \3\\\\\\n"\\/p
15814 t cont
15815 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
15816 t cont
15817 d
15818 :cont
15819 n
15820 s/.\{148\}/&'"$ac_delim"'/g
15821 t clear
15822 :clear
15823 s/\\$//
15824 t bsnlc
15825 s/["\\]/\\&/g; s/^/"/; s/$/"/p
15826 d
15827 :bsnlc
15828 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
15829 b cont
15830 ' <confdefs.h | sed '
15831 s/'"$ac_delim"'/"\\\
15832 "/g' >>$CONFIG_STATUS || ac_write_fail=1
15833
15834 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15835 for (key in D) D_is_set[key] = 1
15836 FS = "\a"
15837 }
15838 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
15839 line = \$ 0
15840 split(line, arg, " ")
15841 if (arg[1] == "#") {
15842 defundef = arg[2]
15843 mac1 = arg[3]
15844 } else {
15845 defundef = substr(arg[1], 2)
15846 mac1 = arg[2]
15847 }
15848 split(mac1, mac2, "(") #)
15849 macro = mac2[1]
15850 prefix = substr(line, 1, index(line, defundef) - 1)
15851 if (D_is_set[macro]) {
15852 # Preserve the white space surrounding the "#".
15853 print prefix "define", macro P[macro] D[macro]
15854 next
15855 } else {
15856 # Replace #undef with comments. This is necessary, for example,
15857 # in the case of _POSIX_SOURCE, which is predefined and required
15858 # on some systems where configure will not decide to define it.
15859 if (defundef == "undef") {
15860 print "/*", prefix defundef, macro, "*/"
15861 next
15862 }
15863 }
15864 }
15865 { print }
15866 _ACAWK
15867 _ACEOF
15868 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15869 as_fn_error "could not setup config headers machinery" "$LINENO" 5
15870 fi # test -n "$CONFIG_HEADERS"
15871
15872
15873 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
15874 shift
15875 for ac_tag
15876 do
15877 case $ac_tag in
15878 :[FHLC]) ac_mode=$ac_tag; continue;;
15879 esac
15880 case $ac_mode$ac_tag in
15881 :[FHL]*:*);;
15882 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
15883 :[FH]-) ac_tag=-:-;;
15884 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
15885 esac
15886 ac_save_IFS=$IFS
15887 IFS=:
15888 set x $ac_tag
15889 IFS=$ac_save_IFS
15890 shift
15891 ac_file=$1
15892 shift
15893
15894 case $ac_mode in
15895 :L) ac_source=$1;;
15896 :[FH])
15897 ac_file_inputs=
15898 for ac_f
15899 do
15900 case $ac_f in
15901 -) ac_f="$tmp/stdin";;
15902 *) # Look for the file first in the build tree, then in the source tree
15903 # (if the path is not absolute). The absolute path cannot be DOS-style,
15904 # because $ac_f cannot contain `:'.
15905 test -f "$ac_f" ||
15906 case $ac_f in
15907 [\\/$]*) false;;
15908 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
15909 esac ||
15910 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
15911 esac
15912 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
15913 as_fn_append ac_file_inputs " '$ac_f'"
15914 done
15915
15916 # Let's still pretend it is `configure' which instantiates (i.e., don't
15917 # use $as_me), people would be surprised to read:
15918 # /* config.h. Generated by config.status. */
15919 configure_input='Generated from '`
15920 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
15921 `' by configure.'
15922 if test x"$ac_file" != x-; then
15923 configure_input="$ac_file. $configure_input"
15924 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
15925 $as_echo "$as_me: creating $ac_file" >&6;}
15926 fi
15927 # Neutralize special characters interpreted by sed in replacement strings.
15928 case $configure_input in #(
15929 *\&* | *\|* | *\\* )
15930 ac_sed_conf_input=`$as_echo "$configure_input" |
15931 sed 's/[\\\\&|]/\\\\&/g'`;; #(
15932 *) ac_sed_conf_input=$configure_input;;
15933 esac
15934
15935 case $ac_tag in
15936 *:-:* | *:-) cat >"$tmp/stdin" \
15937 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
15938 esac
15939 ;;
15940 esac
15941
15942 ac_dir=`$as_dirname -- "$ac_file" ||
15943 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15944 X"$ac_file" : 'X\(//\)[^/]' \| \
15945 X"$ac_file" : 'X\(//\)$' \| \
15946 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
15947 $as_echo X"$ac_file" |
15948 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15949 s//\1/
15950 q
15951 }
15952 /^X\(\/\/\)[^/].*/{
15953 s//\1/
15954 q
15955 }
15956 /^X\(\/\/\)$/{
15957 s//\1/
15958 q
15959 }
15960 /^X\(\/\).*/{
15961 s//\1/
15962 q
15963 }
15964 s/.*/./; q'`
15965 as_dir="$ac_dir"; as_fn_mkdir_p
15966 ac_builddir=.
15967
15968 case "$ac_dir" in
15969 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
15970 *)
15971 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
15972 # A ".." for each directory in $ac_dir_suffix.
15973 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
15974 case $ac_top_builddir_sub in
15975 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
15976 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
15977 esac ;;
15978 esac
15979 ac_abs_top_builddir=$ac_pwd
15980 ac_abs_builddir=$ac_pwd$ac_dir_suffix
15981 # for backward compatibility:
15982 ac_top_builddir=$ac_top_build_prefix
15983
15984 case $srcdir in
15985 .) # We are building in place.
15986 ac_srcdir=.
15987 ac_top_srcdir=$ac_top_builddir_sub
15988 ac_abs_top_srcdir=$ac_pwd ;;
15989 [\\/]* | ?:[\\/]* ) # Absolute name.
15990 ac_srcdir=$srcdir$ac_dir_suffix;
15991 ac_top_srcdir=$srcdir
15992 ac_abs_top_srcdir=$srcdir ;;
15993 *) # Relative name.
15994 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
15995 ac_top_srcdir=$ac_top_build_prefix$srcdir
15996 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
15997 esac
15998 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
15999
16000
16001 case $ac_mode in
16002 :F)
16003 #
16004 # CONFIG_FILE
16005 #
16006
16007 case $INSTALL in
16008 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
16009 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
16010 esac
16011 ac_MKDIR_P=$MKDIR_P
16012 case $MKDIR_P in
16013 [\\/$]* | ?:[\\/]* ) ;;
16014 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
16015 esac
16016 _ACEOF
16017
16018 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16019 # If the template does not know about datarootdir, expand it.
16020 # FIXME: This hack should be removed a few years after 2.60.
16021 ac_datarootdir_hack=; ac_datarootdir_seen=
16022 ac_sed_dataroot='
16023 /datarootdir/ {
16024 p
16025 q
16026 }
16027 /@datadir@/p
16028 /@docdir@/p
16029 /@infodir@/p
16030 /@localedir@/p
16031 /@mandir@/p'
16032 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
16033 *datarootdir*) ac_datarootdir_seen=yes;;
16034 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
16035 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
16036 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
16037 _ACEOF
16038 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16039 ac_datarootdir_hack='
16040 s&@datadir@&$datadir&g
16041 s&@docdir@&$docdir&g
16042 s&@infodir@&$infodir&g
16043 s&@localedir@&$localedir&g
16044 s&@mandir@&$mandir&g
16045 s&\\\${datarootdir}&$datarootdir&g' ;;
16046 esac
16047 _ACEOF
16048
16049 # Neutralize VPATH when `$srcdir' = `.'.
16050 # Shell code in configure.ac might set extrasub.
16051 # FIXME: do we really want to maintain this feature?
16052 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16053 ac_sed_extra="$ac_vpsub
16054 $extrasub
16055 _ACEOF
16056 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16057 :t
16058 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
16059 s|@configure_input@|$ac_sed_conf_input|;t t
16060 s&@top_builddir@&$ac_top_builddir_sub&;t t
16061 s&@top_build_prefix@&$ac_top_build_prefix&;t t
16062 s&@srcdir@&$ac_srcdir&;t t
16063 s&@abs_srcdir@&$ac_abs_srcdir&;t t
16064 s&@top_srcdir@&$ac_top_srcdir&;t t
16065 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
16066 s&@builddir@&$ac_builddir&;t t
16067 s&@abs_builddir@&$ac_abs_builddir&;t t
16068 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
16069 s&@INSTALL@&$ac_INSTALL&;t t
16070 s&@MKDIR_P@&$ac_MKDIR_P&;t t
16071 $ac_datarootdir_hack
16072 "
16073 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
16074 || as_fn_error "could not create $ac_file" "$LINENO" 5
16075
16076 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
16077 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
16078 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
16079 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
16080 which seems to be undefined. Please make sure it is defined." >&5
16081 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
16082 which seems to be undefined. Please make sure it is defined." >&2;}
16083
16084 rm -f "$tmp/stdin"
16085 case $ac_file in
16086 -) cat "$tmp/out" && rm -f "$tmp/out";;
16087 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
16088 esac \
16089 || as_fn_error "could not create $ac_file" "$LINENO" 5
16090 ;;
16091 :H)
16092 #
16093 # CONFIG_HEADER
16094 #
16095 if test x"$ac_file" != x-; then
16096 {
16097 $as_echo "/* $configure_input */" \
16098 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
16099 } >"$tmp/config.h" \
16100 || as_fn_error "could not create $ac_file" "$LINENO" 5
16101 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
16102 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
16103 $as_echo "$as_me: $ac_file is unchanged" >&6;}
16104 else
16105 rm -f "$ac_file"
16106 mv "$tmp/config.h" "$ac_file" \
16107 || as_fn_error "could not create $ac_file" "$LINENO" 5
16108 fi
16109 else
16110 $as_echo "/* $configure_input */" \
16111 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
16112 || as_fn_error "could not create -" "$LINENO" 5
16113 fi
16114 # Compute "$ac_file"'s index in $config_headers.
16115 _am_arg="$ac_file"
16116 _am_stamp_count=1
16117 for _am_header in $config_headers :; do
16118 case $_am_header in
16119 $_am_arg | $_am_arg:* )
16120 break ;;
16121 * )
16122 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
16123 esac
16124 done
16125 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
16126 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16127 X"$_am_arg" : 'X\(//\)[^/]' \| \
16128 X"$_am_arg" : 'X\(//\)$' \| \
16129 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
16130 $as_echo X"$_am_arg" |
16131 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16132 s//\1/
16133 q
16134 }
16135 /^X\(\/\/\)[^/].*/{
16136 s//\1/
16137 q
16138 }
16139 /^X\(\/\/\)$/{
16140 s//\1/
16141 q
16142 }
16143 /^X\(\/\).*/{
16144 s//\1/
16145 q
16146 }
16147 s/.*/./; q'`/stamp-h$_am_stamp_count
16148 ;;
16149
16150 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
16151 $as_echo "$as_me: executing $ac_file commands" >&6;}
16152 ;;
16153 esac
16154
16155
16156 case $ac_file$ac_mode in
16157 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
16158 # Autoconf 2.62 quotes --file arguments for eval, but not when files
16159 # are listed without --file. Let's play safe and only enable the eval
16160 # if we detect the quoting.
16161 case $CONFIG_FILES in
16162 *\'*) eval set x "$CONFIG_FILES" ;;
16163 *) set x $CONFIG_FILES ;;
16164 esac
16165 shift
16166 for mf
16167 do
16168 # Strip MF so we end up with the name of the file.
16169 mf=`echo "$mf" | sed -e 's/:.*$//'`
16170 # Check whether this is an Automake generated Makefile or not.
16171 # We used to match only the files named `Makefile.in', but
16172 # some people rename them; so instead we look at the file content.
16173 # Grep'ing the first line is not enough: some people post-process
16174 # each Makefile.in and add a new line on top of each file to say so.
16175 # Grep'ing the whole file is not good either: AIX grep has a line
16176 # limit of 2048, but all sed's we know have understand at least 4000.
16177 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
16178 dirpart=`$as_dirname -- "$mf" ||
16179 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16180 X"$mf" : 'X\(//\)[^/]' \| \
16181 X"$mf" : 'X\(//\)$' \| \
16182 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
16183 $as_echo X"$mf" |
16184 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16185 s//\1/
16186 q
16187 }
16188 /^X\(\/\/\)[^/].*/{
16189 s//\1/
16190 q
16191 }
16192 /^X\(\/\/\)$/{
16193 s//\1/
16194 q
16195 }
16196 /^X\(\/\).*/{
16197 s//\1/
16198 q
16199 }
16200 s/.*/./; q'`
16201 else
16202 continue
16203 fi
16204 # Extract the definition of DEPDIR, am__include, and am__quote
16205 # from the Makefile without running `make'.
16206 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
16207 test -z "$DEPDIR" && continue
16208 am__include=`sed -n 's/^am__include = //p' < "$mf"`
16209 test -z "am__include" && continue
16210 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
16211 # When using ansi2knr, U may be empty or an underscore; expand it
16212 U=`sed -n 's/^U = //p' < "$mf"`
16213 # Find all dependency output files, they are included files with
16214 # $(DEPDIR) in their names. We invoke sed twice because it is the
16215 # simplest approach to changing $(DEPDIR) to its actual value in the
16216 # expansion.
16217 for file in `sed -n "
16218 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
16219 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
16220 # Make sure the directory exists.
16221 test -f "$dirpart/$file" && continue
16222 fdir=`$as_dirname -- "$file" ||
16223 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16224 X"$file" : 'X\(//\)[^/]' \| \
16225 X"$file" : 'X\(//\)$' \| \
16226 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
16227 $as_echo X"$file" |
16228 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16229 s//\1/
16230 q
16231 }
16232 /^X\(\/\/\)[^/].*/{
16233 s//\1/
16234 q
16235 }
16236 /^X\(\/\/\)$/{
16237 s//\1/
16238 q
16239 }
16240 /^X\(\/\).*/{
16241 s//\1/
16242 q
16243 }
16244 s/.*/./; q'`
16245 as_dir=$dirpart/$fdir; as_fn_mkdir_p
16246 # echo "creating $dirpart/$file"
16247 echo '# dummy' > "$dirpart/$file"
16248 done
16249 done
16250 }
16251 ;;
16252 "libtool":C)
16253
16254 # See if we are running on zsh, and set the options which allow our
16255 # commands through without removal of \ escapes.
16256 if test -n "${ZSH_VERSION+set}" ; then
16257 setopt NO_GLOB_SUBST
16258 fi
16259
16260 cfgfile="${ofile}T"
16261 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
16262 $RM "$cfgfile"
16263
16264 cat <<_LT_EOF >> "$cfgfile"
16265 #! $SHELL
16266
16267 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
16268 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
16269 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
16270 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
16271 #
16272 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
16273 # 2006, 2007, 2008, 2009 Free Software Foundation, Inc.
16274 # Written by Gordon Matzigkeit, 1996
16275 #
16276 # This file is part of GNU Libtool.
16277 #
16278 # GNU Libtool is free software; you can redistribute it and/or
16279 # modify it under the terms of the GNU General Public License as
16280 # published by the Free Software Foundation; either version 2 of
16281 # the License, or (at your option) any later version.
16282 #
16283 # As a special exception to the GNU General Public License,
16284 # if you distribute this file as part of a program or library that
16285 # is built using GNU Libtool, you may include this file under the
16286 # same distribution terms that you use for the rest of that program.
16287 #
16288 # GNU Libtool is distributed in the hope that it will be useful,
16289 # but WITHOUT ANY WARRANTY; without even the implied warranty of
16290 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16291 # GNU General Public License for more details.
16292 #
16293 # You should have received a copy of the GNU General Public License
16294 # along with GNU Libtool; see the file COPYING. If not, a copy
16295 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
16296 # obtained by writing to the Free Software Foundation, Inc.,
16297 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
16298
16299
16300 # The names of the tagged configurations supported by this script.
16301 available_tags=""
16302
16303 # ### BEGIN LIBTOOL CONFIG
16304
16305 # Which release of libtool.m4 was used?
16306 macro_version=$macro_version
16307 macro_revision=$macro_revision
16308
16309 # Whether or not to build shared libraries.
16310 build_libtool_libs=$enable_shared
16311
16312 # Whether or not to build static libraries.
16313 build_old_libs=$enable_static
16314
16315 # What type of objects to build.
16316 pic_mode=$pic_mode
16317
16318 # Whether or not to optimize for fast installation.
16319 fast_install=$enable_fast_install
16320
16321 # Shell to use when invoking shell scripts.
16322 SHELL=$lt_SHELL
16323
16324 # An echo program that protects backslashes.
16325 ECHO=$lt_ECHO
16326
16327 # The host system.
16328 host_alias=$host_alias
16329 host=$host
16330 host_os=$host_os
16331
16332 # The build system.
16333 build_alias=$build_alias
16334 build=$build
16335 build_os=$build_os
16336
16337 # A sed program that does not truncate output.
16338 SED=$lt_SED
16339
16340 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
16341 Xsed="\$SED -e 1s/^X//"
16342
16343 # A grep program that handles long lines.
16344 GREP=$lt_GREP
16345
16346 # An ERE matcher.
16347 EGREP=$lt_EGREP
16348
16349 # A literal string matcher.
16350 FGREP=$lt_FGREP
16351
16352 # A BSD- or MS-compatible name lister.
16353 NM=$lt_NM
16354
16355 # Whether we need soft or hard links.
16356 LN_S=$lt_LN_S
16357
16358 # What is the maximum length of a command?
16359 max_cmd_len=$max_cmd_len
16360
16361 # Object file suffix (normally "o").
16362 objext=$ac_objext
16363
16364 # Executable file suffix (normally "").
16365 exeext=$exeext
16366
16367 # whether the shell understands "unset".
16368 lt_unset=$lt_unset
16369
16370 # turn spaces into newlines.
16371 SP2NL=$lt_lt_SP2NL
16372
16373 # turn newlines into spaces.
16374 NL2SP=$lt_lt_NL2SP
16375
16376 # An object symbol dumper.
16377 OBJDUMP=$lt_OBJDUMP
16378
16379 # Method to check whether dependent libraries are shared objects.
16380 deplibs_check_method=$lt_deplibs_check_method
16381
16382 # Command to use when deplibs_check_method == "file_magic".
16383 file_magic_cmd=$lt_file_magic_cmd
16384
16385 # The archiver.
16386 AR=$lt_AR
16387 AR_FLAGS=$lt_AR_FLAGS
16388
16389 # A symbol stripping program.
16390 STRIP=$lt_STRIP
16391
16392 # Commands used to install an old-style archive.
16393 RANLIB=$lt_RANLIB
16394 old_postinstall_cmds=$lt_old_postinstall_cmds
16395 old_postuninstall_cmds=$lt_old_postuninstall_cmds
16396
16397 # Whether to use a lock for old archive extraction.
16398 lock_old_archive_extraction=$lock_old_archive_extraction
16399
16400 # A C compiler.
16401 LTCC=$lt_CC
16402
16403 # LTCC compiler flags.
16404 LTCFLAGS=$lt_CFLAGS
16405
16406 # Take the output of nm and produce a listing of raw symbols and C names.
16407 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
16408
16409 # Transform the output of nm in a proper C declaration.
16410 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
16411
16412 # Transform the output of nm in a C name address pair.
16413 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
16414
16415 # Transform the output of nm in a C name address pair when lib prefix is needed.
16416 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
16417
16418 # The name of the directory that contains temporary libtool files.
16419 objdir=$objdir
16420
16421 # Used to examine libraries when file_magic_cmd begins with "file".
16422 MAGIC_CMD=$MAGIC_CMD
16423
16424 # Must we lock files when doing compilation?
16425 need_locks=$lt_need_locks
16426
16427 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
16428 DSYMUTIL=$lt_DSYMUTIL
16429
16430 # Tool to change global to local symbols on Mac OS X.
16431 NMEDIT=$lt_NMEDIT
16432
16433 # Tool to manipulate fat objects and archives on Mac OS X.
16434 LIPO=$lt_LIPO
16435
16436 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
16437 OTOOL=$lt_OTOOL
16438
16439 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
16440 OTOOL64=$lt_OTOOL64
16441
16442 # Old archive suffix (normally "a").
16443 libext=$libext
16444
16445 # Shared library suffix (normally ".so").
16446 shrext_cmds=$lt_shrext_cmds
16447
16448 # The commands to extract the exported symbol list from a shared archive.
16449 extract_expsyms_cmds=$lt_extract_expsyms_cmds
16450
16451 # Variables whose values should be saved in libtool wrapper scripts and
16452 # restored at link time.
16453 variables_saved_for_relink=$lt_variables_saved_for_relink
16454
16455 # Do we need the "lib" prefix for modules?
16456 need_lib_prefix=$need_lib_prefix
16457
16458 # Do we need a version for libraries?
16459 need_version=$need_version
16460
16461 # Library versioning type.
16462 version_type=$version_type
16463
16464 # Shared library runtime path variable.
16465 runpath_var=$runpath_var
16466
16467 # Shared library path variable.
16468 shlibpath_var=$shlibpath_var
16469
16470 # Is shlibpath searched before the hard-coded library search path?
16471 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
16472
16473 # Format of library name prefix.
16474 libname_spec=$lt_libname_spec
16475
16476 # List of archive names. First name is the real one, the rest are links.
16477 # The last name is the one that the linker finds with -lNAME
16478 library_names_spec=$lt_library_names_spec
16479
16480 # The coded name of the library, if different from the real name.
16481 soname_spec=$lt_soname_spec
16482
16483 # Permission mode override for installation of shared libraries.
16484 install_override_mode=$lt_install_override_mode
16485
16486 # Command to use after installation of a shared archive.
16487 postinstall_cmds=$lt_postinstall_cmds
16488
16489 # Command to use after uninstallation of a shared archive.
16490 postuninstall_cmds=$lt_postuninstall_cmds
16491
16492 # Commands used to finish a libtool library installation in a directory.
16493 finish_cmds=$lt_finish_cmds
16494
16495 # As "finish_cmds", except a single script fragment to be evaled but
16496 # not shown.
16497 finish_eval=$lt_finish_eval
16498
16499 # Whether we should hardcode library paths into libraries.
16500 hardcode_into_libs=$hardcode_into_libs
16501
16502 # Compile-time system search path for libraries.
16503 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
16504
16505 # Run-time system search path for libraries.
16506 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
16507
16508 # Whether dlopen is supported.
16509 dlopen_support=$enable_dlopen
16510
16511 # Whether dlopen of programs is supported.
16512 dlopen_self=$enable_dlopen_self
16513
16514 # Whether dlopen of statically linked programs is supported.
16515 dlopen_self_static=$enable_dlopen_self_static
16516
16517 # Commands to strip libraries.
16518 old_striplib=$lt_old_striplib
16519 striplib=$lt_striplib
16520
16521
16522 # The linker used to build libraries.
16523 LD=$lt_LD
16524
16525 # How to create reloadable object files.
16526 reload_flag=$lt_reload_flag
16527 reload_cmds=$lt_reload_cmds
16528
16529 # Commands used to build an old-style archive.
16530 old_archive_cmds=$lt_old_archive_cmds
16531
16532 # A language specific compiler.
16533 CC=$lt_compiler
16534
16535 # Is the compiler the GNU compiler?
16536 with_gcc=$GCC
16537
16538 # Compiler flag to turn off builtin functions.
16539 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
16540
16541 # How to pass a linker flag through the compiler.
16542 wl=$lt_lt_prog_compiler_wl
16543
16544 # Additional compiler flags for building library objects.
16545 pic_flag=$lt_lt_prog_compiler_pic
16546
16547 # Compiler flag to prevent dynamic linking.
16548 link_static_flag=$lt_lt_prog_compiler_static
16549
16550 # Does compiler simultaneously support -c and -o options?
16551 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
16552
16553 # Whether or not to add -lc for building shared libraries.
16554 build_libtool_need_lc=$archive_cmds_need_lc
16555
16556 # Whether or not to disallow shared libs when runtime libs are static.
16557 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
16558
16559 # Compiler flag to allow reflexive dlopens.
16560 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
16561
16562 # Compiler flag to generate shared objects directly from archives.
16563 whole_archive_flag_spec=$lt_whole_archive_flag_spec
16564
16565 # Whether the compiler copes with passing no objects directly.
16566 compiler_needs_object=$lt_compiler_needs_object
16567
16568 # Create an old-style archive from a shared archive.
16569 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
16570
16571 # Create a temporary old-style archive to link instead of a shared archive.
16572 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
16573
16574 # Commands used to build a shared archive.
16575 archive_cmds=$lt_archive_cmds
16576 archive_expsym_cmds=$lt_archive_expsym_cmds
16577
16578 # Commands used to build a loadable module if different from building
16579 # a shared archive.
16580 module_cmds=$lt_module_cmds
16581 module_expsym_cmds=$lt_module_expsym_cmds
16582
16583 # Whether we are building with GNU ld or not.
16584 with_gnu_ld=$lt_with_gnu_ld
16585
16586 # Flag that allows shared libraries with undefined symbols to be built.
16587 allow_undefined_flag=$lt_allow_undefined_flag
16588
16589 # Flag that enforces no undefined symbols.
16590 no_undefined_flag=$lt_no_undefined_flag
16591
16592 # Flag to hardcode \$libdir into a binary during linking.
16593 # This must work even if \$libdir does not exist
16594 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
16595
16596 # If ld is used when linking, flag to hardcode \$libdir into a binary
16597 # during linking. This must work even if \$libdir does not exist.
16598 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
16599
16600 # Whether we need a single "-rpath" flag with a separated argument.
16601 hardcode_libdir_separator=$lt_hardcode_libdir_separator
16602
16603 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
16604 # DIR into the resulting binary.
16605 hardcode_direct=$hardcode_direct
16606
16607 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
16608 # DIR into the resulting binary and the resulting library dependency is
16609 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
16610 # library is relocated.
16611 hardcode_direct_absolute=$hardcode_direct_absolute
16612
16613 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
16614 # into the resulting binary.
16615 hardcode_minus_L=$hardcode_minus_L
16616
16617 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
16618 # into the resulting binary.
16619 hardcode_shlibpath_var=$hardcode_shlibpath_var
16620
16621 # Set to "yes" if building a shared library automatically hardcodes DIR
16622 # into the library and all subsequent libraries and executables linked
16623 # against it.
16624 hardcode_automatic=$hardcode_automatic
16625
16626 # Set to yes if linker adds runtime paths of dependent libraries
16627 # to runtime path list.
16628 inherit_rpath=$inherit_rpath
16629
16630 # Whether libtool must link a program against all its dependency libraries.
16631 link_all_deplibs=$link_all_deplibs
16632
16633 # Fix the shell variable \$srcfile for the compiler.
16634 fix_srcfile_path=$lt_fix_srcfile_path
16635
16636 # Set to "yes" if exported symbols are required.
16637 always_export_symbols=$always_export_symbols
16638
16639 # The commands to list exported symbols.
16640 export_symbols_cmds=$lt_export_symbols_cmds
16641
16642 # Symbols that should not be listed in the preloaded symbols.
16643 exclude_expsyms=$lt_exclude_expsyms
16644
16645 # Symbols that must always be exported.
16646 include_expsyms=$lt_include_expsyms
16647
16648 # Commands necessary for linking programs (against libraries) with templates.
16649 prelink_cmds=$lt_prelink_cmds
16650
16651 # Specify filename containing input files.
16652 file_list_spec=$lt_file_list_spec
16653
16654 # How to hardcode a shared library path into an executable.
16655 hardcode_action=$hardcode_action
16656
16657 # ### END LIBTOOL CONFIG
16658
16659 _LT_EOF
16660
16661 case $host_os in
16662 aix3*)
16663 cat <<\_LT_EOF >> "$cfgfile"
16664 # AIX sometimes has problems with the GCC collect2 program. For some
16665 # reason, if we set the COLLECT_NAMES environment variable, the problems
16666 # vanish in a puff of smoke.
16667 if test "X${COLLECT_NAMES+set}" != Xset; then
16668 COLLECT_NAMES=
16669 export COLLECT_NAMES
16670 fi
16671 _LT_EOF
16672 ;;
16673 esac
16674
16675
16676 ltmain="$ac_aux_dir/ltmain.sh"
16677
16678
16679 # We use sed instead of cat because bash on DJGPP gets confused if
16680 # if finds mixed CR/LF and LF-only lines. Since sed operates in
16681 # text mode, it properly converts lines to CR/LF. This bash problem
16682 # is reportedly fixed, but why not run on old versions too?
16683 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
16684 || (rm -f "$cfgfile"; exit 1)
16685
16686 case $xsi_shell in
16687 yes)
16688 cat << \_LT_EOF >> "$cfgfile"
16689
16690 # func_dirname file append nondir_replacement
16691 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
16692 # otherwise set result to NONDIR_REPLACEMENT.
16693 func_dirname ()
16694 {
16695 case ${1} in
16696 */*) func_dirname_result="${1%/*}${2}" ;;
16697 * ) func_dirname_result="${3}" ;;
16698 esac
16699 }
16700
16701 # func_basename file
16702 func_basename ()
16703 {
16704 func_basename_result="${1##*/}"
16705 }
16706
16707 # func_dirname_and_basename file append nondir_replacement
16708 # perform func_basename and func_dirname in a single function
16709 # call:
16710 # dirname: Compute the dirname of FILE. If nonempty,
16711 # add APPEND to the result, otherwise set result
16712 # to NONDIR_REPLACEMENT.
16713 # value returned in "$func_dirname_result"
16714 # basename: Compute filename of FILE.
16715 # value retuned in "$func_basename_result"
16716 # Implementation must be kept synchronized with func_dirname
16717 # and func_basename. For efficiency, we do not delegate to
16718 # those functions but instead duplicate the functionality here.
16719 func_dirname_and_basename ()
16720 {
16721 case ${1} in
16722 */*) func_dirname_result="${1%/*}${2}" ;;
16723 * ) func_dirname_result="${3}" ;;
16724 esac
16725 func_basename_result="${1##*/}"
16726 }
16727
16728 # func_stripname prefix suffix name
16729 # strip PREFIX and SUFFIX off of NAME.
16730 # PREFIX and SUFFIX must not contain globbing or regex special
16731 # characters, hashes, percent signs, but SUFFIX may contain a leading
16732 # dot (in which case that matches only a dot).
16733 func_stripname ()
16734 {
16735 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
16736 # positional parameters, so assign one to ordinary parameter first.
16737 func_stripname_result=${3}
16738 func_stripname_result=${func_stripname_result#"${1}"}
16739 func_stripname_result=${func_stripname_result%"${2}"}
16740 }
16741
16742 # func_opt_split
16743 func_opt_split ()
16744 {
16745 func_opt_split_opt=${1%%=*}
16746 func_opt_split_arg=${1#*=}
16747 }
16748
16749 # func_lo2o object
16750 func_lo2o ()
16751 {
16752 case ${1} in
16753 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
16754 *) func_lo2o_result=${1} ;;
16755 esac
16756 }
16757
16758 # func_xform libobj-or-source
16759 func_xform ()
16760 {
16761 func_xform_result=${1%.*}.lo
16762 }
16763
16764 # func_arith arithmetic-term...
16765 func_arith ()
16766 {
16767 func_arith_result=$(( $* ))
16768 }
16769
16770 # func_len string
16771 # STRING may not start with a hyphen.
16772 func_len ()
16773 {
16774 func_len_result=${#1}
16775 }
16776
16777 _LT_EOF
16778 ;;
16779 *) # Bourne compatible functions.
16780 cat << \_LT_EOF >> "$cfgfile"
16781
16782 # func_dirname file append nondir_replacement
16783 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
16784 # otherwise set result to NONDIR_REPLACEMENT.
16785 func_dirname ()
16786 {
16787 # Extract subdirectory from the argument.
16788 func_dirname_result=`$ECHO "${1}" | $SED "$dirname"`
16789 if test "X$func_dirname_result" = "X${1}"; then
16790 func_dirname_result="${3}"
16791 else
16792 func_dirname_result="$func_dirname_result${2}"
16793 fi
16794 }
16795
16796 # func_basename file
16797 func_basename ()
16798 {
16799 func_basename_result=`$ECHO "${1}" | $SED "$basename"`
16800 }
16801
16802
16803 # func_stripname prefix suffix name
16804 # strip PREFIX and SUFFIX off of NAME.
16805 # PREFIX and SUFFIX must not contain globbing or regex special
16806 # characters, hashes, percent signs, but SUFFIX may contain a leading
16807 # dot (in which case that matches only a dot).
16808 # func_strip_suffix prefix name
16809 func_stripname ()
16810 {
16811 case ${2} in
16812 .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
16813 *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
16814 esac
16815 }
16816
16817 # sed scripts:
16818 my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
16819 my_sed_long_arg='1s/^-[^=]*=//'
16820
16821 # func_opt_split
16822 func_opt_split ()
16823 {
16824 func_opt_split_opt=`$ECHO "${1}" | $SED "$my_sed_long_opt"`
16825 func_opt_split_arg=`$ECHO "${1}" | $SED "$my_sed_long_arg"`
16826 }
16827
16828 # func_lo2o object
16829 func_lo2o ()
16830 {
16831 func_lo2o_result=`$ECHO "${1}" | $SED "$lo2o"`
16832 }
16833
16834 # func_xform libobj-or-source
16835 func_xform ()
16836 {
16837 func_xform_result=`$ECHO "${1}" | $SED 's/\.[^.]*$/.lo/'`
16838 }
16839
16840 # func_arith arithmetic-term...
16841 func_arith ()
16842 {
16843 func_arith_result=`expr "$@"`
16844 }
16845
16846 # func_len string
16847 # STRING may not start with a hyphen.
16848 func_len ()
16849 {
16850 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
16851 }
16852
16853 _LT_EOF
16854 esac
16855
16856 case $lt_shell_append in
16857 yes)
16858 cat << \_LT_EOF >> "$cfgfile"
16859
16860 # func_append var value
16861 # Append VALUE to the end of shell variable VAR.
16862 func_append ()
16863 {
16864 eval "$1+=\$2"
16865 }
16866 _LT_EOF
16867 ;;
16868 *)
16869 cat << \_LT_EOF >> "$cfgfile"
16870
16871 # func_append var value
16872 # Append VALUE to the end of shell variable VAR.
16873 func_append ()
16874 {
16875 eval "$1=\$$1\$2"
16876 }
16877
16878 _LT_EOF
16879 ;;
16880 esac
16881
16882
16883 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
16884 || (rm -f "$cfgfile"; exit 1)
16885
16886 mv -f "$cfgfile" "$ofile" ||
16887 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
16888 chmod +x "$ofile"
16889
16890 ;;
16891 "default-1":C)
16892 for ac_file in $CONFIG_FILES; do
16893 # Support "outfile[:infile[:infile...]]"
16894 case "$ac_file" in
16895 *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
16896 esac
16897 # PO directories have a Makefile.in generated from Makefile.in.in.
16898 case "$ac_file" in */Makefile.in)
16899 # Adjust a relative srcdir.
16900 ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
16901 ac_dir_suffix=/`echo "$ac_dir"|sed 's%^\./%%'`
16902 ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
16903 # In autoconf-2.13 it is called $ac_given_srcdir.
16904 # In autoconf-2.50 it is called $srcdir.
16905 test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
16906 case "$ac_given_srcdir" in
16907 .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
16908 /*) top_srcdir="$ac_given_srcdir" ;;
16909 *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
16910 esac
16911 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
16912 rm -f "$ac_dir/POTFILES"
16913 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
16914 cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
16915 POMAKEFILEDEPS="POTFILES.in"
16916 # ALL_LINGUAS, POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES depend
16917 # on $ac_dir but don't depend on user-specified configuration
16918 # parameters.
16919 if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
16920 # The LINGUAS file contains the set of available languages.
16921 if test -n "$OBSOLETE_ALL_LINGUAS"; then
16922 test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.ac is obsolete" || echo "setting ALL_LINGUAS in configure.ac is obsolete"
16923 fi
16924 ALL_LINGUAS_=`sed -e "/^#/d" "$ac_given_srcdir/$ac_dir/LINGUAS"`
16925 # Hide the ALL_LINGUAS assigment from automake.
16926 eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
16927 POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
16928 else
16929 # The set of available languages was given in configure.ac.
16930 eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
16931 fi
16932 case "$ac_given_srcdir" in
16933 .) srcdirpre= ;;
16934 *) srcdirpre='$(srcdir)/' ;;
16935 esac
16936 POFILES=
16937 GMOFILES=
16938 UPDATEPOFILES=
16939 DUMMYPOFILES=
16940 for lang in $ALL_LINGUAS; do
16941 POFILES="$POFILES $srcdirpre$lang.po"
16942 GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
16943 UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
16944 DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
16945 done
16946 # CATALOGS depends on both $ac_dir and the user's LINGUAS
16947 # environment variable.
16948 INST_LINGUAS=
16949 if test -n "$ALL_LINGUAS"; then
16950 for presentlang in $ALL_LINGUAS; do
16951 useit=no
16952 if test "%UNSET%" != "$LINGUAS"; then
16953 desiredlanguages="$LINGUAS"
16954 else
16955 desiredlanguages="$ALL_LINGUAS"
16956 fi
16957 for desiredlang in $desiredlanguages; do
16958 # Use the presentlang catalog if desiredlang is
16959 # a. equal to presentlang, or
16960 # b. a variant of presentlang (because in this case,
16961 # presentlang can be used as a fallback for messages
16962 # which are not translated in the desiredlang catalog).
16963 case "$desiredlang" in
16964 "$presentlang"*) useit=yes;;
16965 esac
16966 done
16967 if test $useit = yes; then
16968 INST_LINGUAS="$INST_LINGUAS $presentlang"
16969 fi
16970 done
16971 fi
16972 CATALOGS=
16973 if test -n "$INST_LINGUAS"; then
16974 for lang in $INST_LINGUAS; do
16975 CATALOGS="$CATALOGS $lang.gmo"
16976 done
16977 fi
16978 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
16979 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"
16980 for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
16981 if test -f "$f"; then
16982 case "$f" in
16983 *.orig | *.bak | *~) ;;
16984 *) cat "$f" >> "$ac_dir/Makefile" ;;
16985 esac
16986 fi
16987 done
16988 fi
16989 ;;
16990 esac
16991 done ;;
16992 "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
16993 echo '#include "tc-'"${target_cpu_type}"'.h"' > targ-cpu.h
16994 echo '#include "obj-'"${obj_format}"'.h"' > obj-format.h
16995 echo '#include "te-'"${te_file}"'.h"' > targ-env.h
16996 echo '#include "itbl-'"${target_cpu_type}"'.h"' > itbl-cpu.h
16997 if test "x$cgen_cpu_prefix" != x ; then
16998 echo '#include "opcodes/'"${cgen_cpu_prefix}"'-desc.h"' > cgen-desc.h
16999 fi ;;
17000
17001 esac
17002 done # for ac_tag
17003
17004
17005 as_fn_exit 0
17006 _ACEOF
17007 ac_clean_files=$ac_clean_files_save
17008
17009 test $ac_write_fail = 0 ||
17010 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
17011
17012
17013 # configure is writing to config.log, and then calls config.status.
17014 # config.status does its own redirection, appending to config.log.
17015 # Unfortunately, on DOS this fails, as config.log is still kept open
17016 # by configure, so config.status won't be able to write to it; its
17017 # output is simply discarded. So we exec the FD to /dev/null,
17018 # effectively closing config.log, so it can be properly (re)opened and
17019 # appended to by config.status. When coming back to configure, we
17020 # need to make the FD available again.
17021 if test "$no_create" != yes; then
17022 ac_cs_success=:
17023 ac_config_status_args=
17024 test "$silent" = yes &&
17025 ac_config_status_args="$ac_config_status_args --quiet"
17026 exec 5>/dev/null
17027 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
17028 exec 5>>config.log
17029 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
17030 # would make configure fail if this is the last instruction.
17031 $ac_cs_success || as_fn_exit $?
17032 fi
17033 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
17034 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
17035 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
17036 fi
17037
This page took 0.434744 seconds and 5 git commands to generate.