]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blob - gas/configure
Reset x86 Linux targets to not compressing debug sections by default. Enable compres...
[thirdparty/binutils-gdb.git] / gas / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.64 for gas 2.25.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.25.51'
560 PACKAGE_STRING='gas 2.25.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_werror
769 enable_build_warnings
770 enable_nls
771 enable_maintainer_mode
772 with_system_zlib
773 '
774 ac_precious_vars='build_alias
775 host_alias
776 target_alias
777 CC
778 CFLAGS
779 LDFLAGS
780 LIBS
781 CPPFLAGS
782 CPP
783 YACC
784 YFLAGS'
785
786
787 # Initialize some variables set by options.
788 ac_init_help=
789 ac_init_version=false
790 ac_unrecognized_opts=
791 ac_unrecognized_sep=
792 # The variables have the same names as the options, with
793 # dashes changed to underlines.
794 cache_file=/dev/null
795 exec_prefix=NONE
796 no_create=
797 no_recursion=
798 prefix=NONE
799 program_prefix=NONE
800 program_suffix=NONE
801 program_transform_name=s,x,x,
802 silent=
803 site=
804 srcdir=
805 verbose=
806 x_includes=NONE
807 x_libraries=NONE
808
809 # Installation directory options.
810 # These are left unexpanded so users can "make install exec_prefix=/foo"
811 # and all the variables that are supposed to be based on exec_prefix
812 # by default will actually change.
813 # Use braces instead of parens because sh, perl, etc. also accept them.
814 # (The list follows the same order as the GNU Coding Standards.)
815 bindir='${exec_prefix}/bin'
816 sbindir='${exec_prefix}/sbin'
817 libexecdir='${exec_prefix}/libexec'
818 datarootdir='${prefix}/share'
819 datadir='${datarootdir}'
820 sysconfdir='${prefix}/etc'
821 sharedstatedir='${prefix}/com'
822 localstatedir='${prefix}/var'
823 includedir='${prefix}/include'
824 oldincludedir='/usr/include'
825 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
826 infodir='${datarootdir}/info'
827 htmldir='${docdir}'
828 dvidir='${docdir}'
829 pdfdir='${docdir}'
830 psdir='${docdir}'
831 libdir='${exec_prefix}/lib'
832 localedir='${datarootdir}/locale'
833 mandir='${datarootdir}/man'
834
835 ac_prev=
836 ac_dashdash=
837 for ac_option
838 do
839 # If the previous option needs an argument, assign it.
840 if test -n "$ac_prev"; then
841 eval $ac_prev=\$ac_option
842 ac_prev=
843 continue
844 fi
845
846 case $ac_option in
847 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
848 *) ac_optarg=yes ;;
849 esac
850
851 # Accept the important Cygnus configure options, so we can diagnose typos.
852
853 case $ac_dashdash$ac_option in
854 --)
855 ac_dashdash=yes ;;
856
857 -bindir | --bindir | --bindi | --bind | --bin | --bi)
858 ac_prev=bindir ;;
859 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
860 bindir=$ac_optarg ;;
861
862 -build | --build | --buil | --bui | --bu)
863 ac_prev=build_alias ;;
864 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
865 build_alias=$ac_optarg ;;
866
867 -cache-file | --cache-file | --cache-fil | --cache-fi \
868 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
869 ac_prev=cache_file ;;
870 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
871 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
872 cache_file=$ac_optarg ;;
873
874 --config-cache | -C)
875 cache_file=config.cache ;;
876
877 -datadir | --datadir | --datadi | --datad)
878 ac_prev=datadir ;;
879 -datadir=* | --datadir=* | --datadi=* | --datad=*)
880 datadir=$ac_optarg ;;
881
882 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
883 | --dataroo | --dataro | --datar)
884 ac_prev=datarootdir ;;
885 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
886 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
887 datarootdir=$ac_optarg ;;
888
889 -disable-* | --disable-*)
890 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
891 # Reject names that are not valid shell variable names.
892 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
893 as_fn_error "invalid feature name: $ac_useropt"
894 ac_useropt_orig=$ac_useropt
895 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
896 case $ac_user_opts in
897 *"
898 "enable_$ac_useropt"
899 "*) ;;
900 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
901 ac_unrecognized_sep=', ';;
902 esac
903 eval enable_$ac_useropt=no ;;
904
905 -docdir | --docdir | --docdi | --doc | --do)
906 ac_prev=docdir ;;
907 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
908 docdir=$ac_optarg ;;
909
910 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
911 ac_prev=dvidir ;;
912 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
913 dvidir=$ac_optarg ;;
914
915 -enable-* | --enable-*)
916 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
917 # Reject names that are not valid shell variable names.
918 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
919 as_fn_error "invalid feature name: $ac_useropt"
920 ac_useropt_orig=$ac_useropt
921 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
922 case $ac_user_opts in
923 *"
924 "enable_$ac_useropt"
925 "*) ;;
926 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
927 ac_unrecognized_sep=', ';;
928 esac
929 eval enable_$ac_useropt=\$ac_optarg ;;
930
931 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
932 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
933 | --exec | --exe | --ex)
934 ac_prev=exec_prefix ;;
935 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
936 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
937 | --exec=* | --exe=* | --ex=*)
938 exec_prefix=$ac_optarg ;;
939
940 -gas | --gas | --ga | --g)
941 # Obsolete; use --with-gas.
942 with_gas=yes ;;
943
944 -help | --help | --hel | --he | -h)
945 ac_init_help=long ;;
946 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
947 ac_init_help=recursive ;;
948 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
949 ac_init_help=short ;;
950
951 -host | --host | --hos | --ho)
952 ac_prev=host_alias ;;
953 -host=* | --host=* | --hos=* | --ho=*)
954 host_alias=$ac_optarg ;;
955
956 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
957 ac_prev=htmldir ;;
958 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
959 | --ht=*)
960 htmldir=$ac_optarg ;;
961
962 -includedir | --includedir | --includedi | --included | --include \
963 | --includ | --inclu | --incl | --inc)
964 ac_prev=includedir ;;
965 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
966 | --includ=* | --inclu=* | --incl=* | --inc=*)
967 includedir=$ac_optarg ;;
968
969 -infodir | --infodir | --infodi | --infod | --info | --inf)
970 ac_prev=infodir ;;
971 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
972 infodir=$ac_optarg ;;
973
974 -libdir | --libdir | --libdi | --libd)
975 ac_prev=libdir ;;
976 -libdir=* | --libdir=* | --libdi=* | --libd=*)
977 libdir=$ac_optarg ;;
978
979 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
980 | --libexe | --libex | --libe)
981 ac_prev=libexecdir ;;
982 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
983 | --libexe=* | --libex=* | --libe=*)
984 libexecdir=$ac_optarg ;;
985
986 -localedir | --localedir | --localedi | --localed | --locale)
987 ac_prev=localedir ;;
988 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
989 localedir=$ac_optarg ;;
990
991 -localstatedir | --localstatedir | --localstatedi | --localstated \
992 | --localstate | --localstat | --localsta | --localst | --locals)
993 ac_prev=localstatedir ;;
994 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
995 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
996 localstatedir=$ac_optarg ;;
997
998 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
999 ac_prev=mandir ;;
1000 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1001 mandir=$ac_optarg ;;
1002
1003 -nfp | --nfp | --nf)
1004 # Obsolete; use --without-fp.
1005 with_fp=no ;;
1006
1007 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1008 | --no-cr | --no-c | -n)
1009 no_create=yes ;;
1010
1011 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1012 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1013 no_recursion=yes ;;
1014
1015 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1016 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1017 | --oldin | --oldi | --old | --ol | --o)
1018 ac_prev=oldincludedir ;;
1019 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1020 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1021 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1022 oldincludedir=$ac_optarg ;;
1023
1024 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1025 ac_prev=prefix ;;
1026 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1027 prefix=$ac_optarg ;;
1028
1029 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1030 | --program-pre | --program-pr | --program-p)
1031 ac_prev=program_prefix ;;
1032 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1033 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1034 program_prefix=$ac_optarg ;;
1035
1036 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1037 | --program-suf | --program-su | --program-s)
1038 ac_prev=program_suffix ;;
1039 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1040 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1041 program_suffix=$ac_optarg ;;
1042
1043 -program-transform-name | --program-transform-name \
1044 | --program-transform-nam | --program-transform-na \
1045 | --program-transform-n | --program-transform- \
1046 | --program-transform | --program-transfor \
1047 | --program-transfo | --program-transf \
1048 | --program-trans | --program-tran \
1049 | --progr-tra | --program-tr | --program-t)
1050 ac_prev=program_transform_name ;;
1051 -program-transform-name=* | --program-transform-name=* \
1052 | --program-transform-nam=* | --program-transform-na=* \
1053 | --program-transform-n=* | --program-transform-=* \
1054 | --program-transform=* | --program-transfor=* \
1055 | --program-transfo=* | --program-transf=* \
1056 | --program-trans=* | --program-tran=* \
1057 | --progr-tra=* | --program-tr=* | --program-t=*)
1058 program_transform_name=$ac_optarg ;;
1059
1060 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1061 ac_prev=pdfdir ;;
1062 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1063 pdfdir=$ac_optarg ;;
1064
1065 -psdir | --psdir | --psdi | --psd | --ps)
1066 ac_prev=psdir ;;
1067 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1068 psdir=$ac_optarg ;;
1069
1070 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1071 | -silent | --silent | --silen | --sile | --sil)
1072 silent=yes ;;
1073
1074 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1075 ac_prev=sbindir ;;
1076 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1077 | --sbi=* | --sb=*)
1078 sbindir=$ac_optarg ;;
1079
1080 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1081 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1082 | --sharedst | --shareds | --shared | --share | --shar \
1083 | --sha | --sh)
1084 ac_prev=sharedstatedir ;;
1085 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1086 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1087 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1088 | --sha=* | --sh=*)
1089 sharedstatedir=$ac_optarg ;;
1090
1091 -site | --site | --sit)
1092 ac_prev=site ;;
1093 -site=* | --site=* | --sit=*)
1094 site=$ac_optarg ;;
1095
1096 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1097 ac_prev=srcdir ;;
1098 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1099 srcdir=$ac_optarg ;;
1100
1101 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1102 | --syscon | --sysco | --sysc | --sys | --sy)
1103 ac_prev=sysconfdir ;;
1104 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1105 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1106 sysconfdir=$ac_optarg ;;
1107
1108 -target | --target | --targe | --targ | --tar | --ta | --t)
1109 ac_prev=target_alias ;;
1110 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1111 target_alias=$ac_optarg ;;
1112
1113 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1114 verbose=yes ;;
1115
1116 -version | --version | --versio | --versi | --vers | -V)
1117 ac_init_version=: ;;
1118
1119 -with-* | --with-*)
1120 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1121 # Reject names that are not valid shell variable names.
1122 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1123 as_fn_error "invalid package name: $ac_useropt"
1124 ac_useropt_orig=$ac_useropt
1125 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1126 case $ac_user_opts in
1127 *"
1128 "with_$ac_useropt"
1129 "*) ;;
1130 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1131 ac_unrecognized_sep=', ';;
1132 esac
1133 eval with_$ac_useropt=\$ac_optarg ;;
1134
1135 -without-* | --without-*)
1136 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1137 # Reject names that are not valid shell variable names.
1138 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1139 as_fn_error "invalid package name: $ac_useropt"
1140 ac_useropt_orig=$ac_useropt
1141 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1142 case $ac_user_opts in
1143 *"
1144 "with_$ac_useropt"
1145 "*) ;;
1146 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1147 ac_unrecognized_sep=', ';;
1148 esac
1149 eval with_$ac_useropt=no ;;
1150
1151 --x)
1152 # Obsolete; use --with-x.
1153 with_x=yes ;;
1154
1155 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1156 | --x-incl | --x-inc | --x-in | --x-i)
1157 ac_prev=x_includes ;;
1158 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1159 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1160 x_includes=$ac_optarg ;;
1161
1162 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1163 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1164 ac_prev=x_libraries ;;
1165 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1166 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1167 x_libraries=$ac_optarg ;;
1168
1169 -*) as_fn_error "unrecognized option: \`$ac_option'
1170 Try \`$0 --help' for more information."
1171 ;;
1172
1173 *=*)
1174 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1175 # Reject names that are not valid shell variable names.
1176 case $ac_envvar in #(
1177 '' | [0-9]* | *[!_$as_cr_alnum]* )
1178 as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1179 esac
1180 eval $ac_envvar=\$ac_optarg
1181 export $ac_envvar ;;
1182
1183 *)
1184 # FIXME: should be removed in autoconf 3.0.
1185 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1186 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1187 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1188 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1189 ;;
1190
1191 esac
1192 done
1193
1194 if test -n "$ac_prev"; then
1195 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1196 as_fn_error "missing argument to $ac_option"
1197 fi
1198
1199 if test -n "$ac_unrecognized_opts"; then
1200 case $enable_option_checking in
1201 no) ;;
1202 fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1203 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1204 esac
1205 fi
1206
1207 # Check all directory arguments for consistency.
1208 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1209 datadir sysconfdir sharedstatedir localstatedir includedir \
1210 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1211 libdir localedir mandir
1212 do
1213 eval ac_val=\$$ac_var
1214 # Remove trailing slashes.
1215 case $ac_val in
1216 */ )
1217 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1218 eval $ac_var=\$ac_val;;
1219 esac
1220 # Be sure to have absolute directory names.
1221 case $ac_val in
1222 [\\/$]* | ?:[\\/]* ) continue;;
1223 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1224 esac
1225 as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1226 done
1227
1228 # There might be people who depend on the old broken behavior: `$host'
1229 # used to hold the argument of --host etc.
1230 # FIXME: To remove some day.
1231 build=$build_alias
1232 host=$host_alias
1233 target=$target_alias
1234
1235 # FIXME: To remove some day.
1236 if test "x$host_alias" != x; then
1237 if test "x$build_alias" = x; then
1238 cross_compiling=maybe
1239 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1240 If a cross compiler is detected then cross compile mode will be used." >&2
1241 elif test "x$build_alias" != "x$host_alias"; then
1242 cross_compiling=yes
1243 fi
1244 fi
1245
1246 ac_tool_prefix=
1247 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1248
1249 test "$silent" = yes && exec 6>/dev/null
1250
1251
1252 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1253 ac_ls_di=`ls -di .` &&
1254 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1255 as_fn_error "working directory cannot be determined"
1256 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1257 as_fn_error "pwd does not report name of working directory"
1258
1259
1260 # Find the source files, if location was not specified.
1261 if test -z "$srcdir"; then
1262 ac_srcdir_defaulted=yes
1263 # Try the directory containing this script, then the parent directory.
1264 ac_confdir=`$as_dirname -- "$as_myself" ||
1265 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1266 X"$as_myself" : 'X\(//\)[^/]' \| \
1267 X"$as_myself" : 'X\(//\)$' \| \
1268 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1269 $as_echo X"$as_myself" |
1270 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1271 s//\1/
1272 q
1273 }
1274 /^X\(\/\/\)[^/].*/{
1275 s//\1/
1276 q
1277 }
1278 /^X\(\/\/\)$/{
1279 s//\1/
1280 q
1281 }
1282 /^X\(\/\).*/{
1283 s//\1/
1284 q
1285 }
1286 s/.*/./; q'`
1287 srcdir=$ac_confdir
1288 if test ! -r "$srcdir/$ac_unique_file"; then
1289 srcdir=..
1290 fi
1291 else
1292 ac_srcdir_defaulted=no
1293 fi
1294 if test ! -r "$srcdir/$ac_unique_file"; then
1295 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1296 as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1297 fi
1298 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1299 ac_abs_confdir=`(
1300 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1301 pwd)`
1302 # When building in place, set srcdir=.
1303 if test "$ac_abs_confdir" = "$ac_pwd"; then
1304 srcdir=.
1305 fi
1306 # Remove unnecessary trailing slashes from srcdir.
1307 # Double slashes in file names in object file debugging info
1308 # mess up M-x gdb in Emacs.
1309 case $srcdir in
1310 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1311 esac
1312 for ac_var in $ac_precious_vars; do
1313 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1314 eval ac_env_${ac_var}_value=\$${ac_var}
1315 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1316 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1317 done
1318
1319 #
1320 # Report the --help message.
1321 #
1322 if test "$ac_init_help" = "long"; then
1323 # Omit some internal or obsolete options to make the list less imposing.
1324 # This message is too long to be a string in the A/UX 3.1 sh.
1325 cat <<_ACEOF
1326 \`configure' configures gas 2.25.51 to adapt to many kinds of systems.
1327
1328 Usage: $0 [OPTION]... [VAR=VALUE]...
1329
1330 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1331 VAR=VALUE. See below for descriptions of some of the useful variables.
1332
1333 Defaults for the options are specified in brackets.
1334
1335 Configuration:
1336 -h, --help display this help and exit
1337 --help=short display options specific to this package
1338 --help=recursive display the short help of all the included packages
1339 -V, --version display version information and exit
1340 -q, --quiet, --silent do not print \`checking...' messages
1341 --cache-file=FILE cache test results in FILE [disabled]
1342 -C, --config-cache alias for \`--cache-file=config.cache'
1343 -n, --no-create do not create output files
1344 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1345
1346 Installation directories:
1347 --prefix=PREFIX install architecture-independent files in PREFIX
1348 [$ac_default_prefix]
1349 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1350 [PREFIX]
1351
1352 By default, \`make install' will install all the files in
1353 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1354 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1355 for instance \`--prefix=\$HOME'.
1356
1357 For better control, use the options below.
1358
1359 Fine tuning of the installation directories:
1360 --bindir=DIR user executables [EPREFIX/bin]
1361 --sbindir=DIR system admin executables [EPREFIX/sbin]
1362 --libexecdir=DIR program executables [EPREFIX/libexec]
1363 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1364 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1365 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1366 --libdir=DIR object code libraries [EPREFIX/lib]
1367 --includedir=DIR C header files [PREFIX/include]
1368 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1369 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1370 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1371 --infodir=DIR info documentation [DATAROOTDIR/info]
1372 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1373 --mandir=DIR man documentation [DATAROOTDIR/man]
1374 --docdir=DIR documentation root [DATAROOTDIR/doc/gas]
1375 --htmldir=DIR html documentation [DOCDIR]
1376 --dvidir=DIR dvi documentation [DOCDIR]
1377 --pdfdir=DIR pdf documentation [DOCDIR]
1378 --psdir=DIR ps documentation [DOCDIR]
1379 _ACEOF
1380
1381 cat <<\_ACEOF
1382
1383 Program names:
1384 --program-prefix=PREFIX prepend PREFIX to installed program names
1385 --program-suffix=SUFFIX append SUFFIX to installed program names
1386 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1387
1388 System types:
1389 --build=BUILD configure for building on BUILD [guessed]
1390 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1391 --target=TARGET configure for building compilers for TARGET [HOST]
1392 _ACEOF
1393 fi
1394
1395 if test -n "$ac_init_help"; then
1396 case $ac_init_help in
1397 short | recursive ) echo "Configuration of gas 2.25.51:";;
1398 esac
1399 cat <<\_ACEOF
1400
1401 Optional Features:
1402 --disable-option-checking ignore unrecognized --enable/--with options
1403 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1404 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1405 --disable-dependency-tracking speeds up one-time build
1406 --enable-dependency-tracking do not reject slow dependency extractors
1407 --enable-shared[=PKGS] build shared libraries [default=yes]
1408 --enable-static[=PKGS] build static libraries [default=yes]
1409 --enable-fast-install[=PKGS]
1410 optimize for fast installation [default=yes]
1411 --disable-libtool-lock avoid locking (might break parallel builds)
1412 --enable-plugins Enable support for plugins
1413 --disable-largefile omit support for large files
1414 --enable-targets alternative target configurations besides the primary
1415 --enable-checking enable run-time checks
1416 --enable-compressed-debug-sections compress debug sections by default
1417 --enable-werror treat compile warnings as errors
1418 --enable-build-warnings enable build-time compiler warnings
1419 --disable-nls do not use Native Language Support
1420 --enable-maintainer-mode enable make rules and dependencies not useful
1421 (and sometimes confusing) to the casual installer
1422
1423 Optional Packages:
1424 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1425 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1426 --with-pic try to use only PIC/non-PIC objects [default=use
1427 both]
1428 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1429 --with-system-zlib use installed libz
1430
1431 Some influential environment variables:
1432 CC C compiler command
1433 CFLAGS C compiler flags
1434 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1435 nonstandard directory <lib dir>
1436 LIBS libraries to pass to the linker, e.g. -l<library>
1437 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1438 you have headers in a nonstandard directory <include dir>
1439 CPP C preprocessor
1440 YACC The `Yet Another C Compiler' implementation to use. Defaults to
1441 the first program found out of: `bison -y', `byacc', `yacc'.
1442 YFLAGS The list of arguments that will be passed by default to $YACC.
1443 This script will default YFLAGS to the empty string to avoid a
1444 default value of `-d' given by some make applications.
1445
1446 Use these variables to override the choices made by `configure' or to help
1447 it to find libraries and programs with nonstandard names/locations.
1448
1449 Report bugs to the package provider.
1450 _ACEOF
1451 ac_status=$?
1452 fi
1453
1454 if test "$ac_init_help" = "recursive"; then
1455 # If there are subdirs, report their specific --help.
1456 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1457 test -d "$ac_dir" ||
1458 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1459 continue
1460 ac_builddir=.
1461
1462 case "$ac_dir" in
1463 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1464 *)
1465 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1466 # A ".." for each directory in $ac_dir_suffix.
1467 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1468 case $ac_top_builddir_sub in
1469 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1470 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1471 esac ;;
1472 esac
1473 ac_abs_top_builddir=$ac_pwd
1474 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1475 # for backward compatibility:
1476 ac_top_builddir=$ac_top_build_prefix
1477
1478 case $srcdir in
1479 .) # We are building in place.
1480 ac_srcdir=.
1481 ac_top_srcdir=$ac_top_builddir_sub
1482 ac_abs_top_srcdir=$ac_pwd ;;
1483 [\\/]* | ?:[\\/]* ) # Absolute name.
1484 ac_srcdir=$srcdir$ac_dir_suffix;
1485 ac_top_srcdir=$srcdir
1486 ac_abs_top_srcdir=$srcdir ;;
1487 *) # Relative name.
1488 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1489 ac_top_srcdir=$ac_top_build_prefix$srcdir
1490 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1491 esac
1492 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1493
1494 cd "$ac_dir" || { ac_status=$?; continue; }
1495 # Check for guested configure.
1496 if test -f "$ac_srcdir/configure.gnu"; then
1497 echo &&
1498 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1499 elif test -f "$ac_srcdir/configure"; then
1500 echo &&
1501 $SHELL "$ac_srcdir/configure" --help=recursive
1502 else
1503 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1504 fi || ac_status=$?
1505 cd "$ac_pwd" || { ac_status=$?; break; }
1506 done
1507 fi
1508
1509 test -n "$ac_init_help" && exit $ac_status
1510 if $ac_init_version; then
1511 cat <<\_ACEOF
1512 gas configure 2.25.51
1513 generated by GNU Autoconf 2.64
1514
1515 Copyright (C) 2009 Free Software Foundation, Inc.
1516 This configure script is free software; the Free Software Foundation
1517 gives unlimited permission to copy, distribute and modify it.
1518 _ACEOF
1519 exit
1520 fi
1521
1522 ## ------------------------ ##
1523 ## Autoconf initialization. ##
1524 ## ------------------------ ##
1525
1526 # ac_fn_c_try_compile LINENO
1527 # --------------------------
1528 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1529 ac_fn_c_try_compile ()
1530 {
1531 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1532 rm -f conftest.$ac_objext
1533 if { { ac_try="$ac_compile"
1534 case "(($ac_try" in
1535 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1536 *) ac_try_echo=$ac_try;;
1537 esac
1538 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1539 $as_echo "$ac_try_echo"; } >&5
1540 (eval "$ac_compile") 2>conftest.err
1541 ac_status=$?
1542 if test -s conftest.err; then
1543 grep -v '^ *+' conftest.err >conftest.er1
1544 cat conftest.er1 >&5
1545 mv -f conftest.er1 conftest.err
1546 fi
1547 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1548 test $ac_status = 0; } && {
1549 test -z "$ac_c_werror_flag" ||
1550 test ! -s conftest.err
1551 } && test -s conftest.$ac_objext; then :
1552 ac_retval=0
1553 else
1554 $as_echo "$as_me: failed program was:" >&5
1555 sed 's/^/| /' conftest.$ac_ext >&5
1556
1557 ac_retval=1
1558 fi
1559 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1560 return $ac_retval
1561
1562 } # ac_fn_c_try_compile
1563
1564 # ac_fn_c_try_link LINENO
1565 # -----------------------
1566 # Try to link conftest.$ac_ext, and return whether this succeeded.
1567 ac_fn_c_try_link ()
1568 {
1569 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1570 rm -f conftest.$ac_objext conftest$ac_exeext
1571 if { { ac_try="$ac_link"
1572 case "(($ac_try" in
1573 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1574 *) ac_try_echo=$ac_try;;
1575 esac
1576 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1577 $as_echo "$ac_try_echo"; } >&5
1578 (eval "$ac_link") 2>conftest.err
1579 ac_status=$?
1580 if test -s conftest.err; then
1581 grep -v '^ *+' conftest.err >conftest.er1
1582 cat conftest.er1 >&5
1583 mv -f conftest.er1 conftest.err
1584 fi
1585 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1586 test $ac_status = 0; } && {
1587 test -z "$ac_c_werror_flag" ||
1588 test ! -s conftest.err
1589 } && test -s conftest$ac_exeext && {
1590 test "$cross_compiling" = yes ||
1591 $as_test_x conftest$ac_exeext
1592 }; then :
1593 ac_retval=0
1594 else
1595 $as_echo "$as_me: failed program was:" >&5
1596 sed 's/^/| /' conftest.$ac_ext >&5
1597
1598 ac_retval=1
1599 fi
1600 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1601 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1602 # interfere with the next link command; also delete a directory that is
1603 # left behind by Apple's compiler. We do this before executing the actions.
1604 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1605 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1606 return $ac_retval
1607
1608 } # ac_fn_c_try_link
1609
1610 # ac_fn_c_try_cpp LINENO
1611 # ----------------------
1612 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1613 ac_fn_c_try_cpp ()
1614 {
1615 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1616 if { { ac_try="$ac_cpp conftest.$ac_ext"
1617 case "(($ac_try" in
1618 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1619 *) ac_try_echo=$ac_try;;
1620 esac
1621 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1622 $as_echo "$ac_try_echo"; } >&5
1623 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1624 ac_status=$?
1625 if test -s conftest.err; then
1626 grep -v '^ *+' conftest.err >conftest.er1
1627 cat conftest.er1 >&5
1628 mv -f conftest.er1 conftest.err
1629 fi
1630 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1631 test $ac_status = 0; } >/dev/null && {
1632 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1633 test ! -s conftest.err
1634 }; then :
1635 ac_retval=0
1636 else
1637 $as_echo "$as_me: failed program was:" >&5
1638 sed 's/^/| /' conftest.$ac_ext >&5
1639
1640 ac_retval=1
1641 fi
1642 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1643 return $ac_retval
1644
1645 } # ac_fn_c_try_cpp
1646
1647 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1648 # -------------------------------------------------------
1649 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1650 # the include files in INCLUDES and setting the cache variable VAR
1651 # accordingly.
1652 ac_fn_c_check_header_mongrel ()
1653 {
1654 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1655 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1656 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1657 $as_echo_n "checking for $2... " >&6; }
1658 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1659 $as_echo_n "(cached) " >&6
1660 fi
1661 eval ac_res=\$$3
1662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1663 $as_echo "$ac_res" >&6; }
1664 else
1665 # Is the header compilable?
1666 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1667 $as_echo_n "checking $2 usability... " >&6; }
1668 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1669 /* end confdefs.h. */
1670 $4
1671 #include <$2>
1672 _ACEOF
1673 if ac_fn_c_try_compile "$LINENO"; then :
1674 ac_header_compiler=yes
1675 else
1676 ac_header_compiler=no
1677 fi
1678 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1680 $as_echo "$ac_header_compiler" >&6; }
1681
1682 # Is the header present?
1683 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1684 $as_echo_n "checking $2 presence... " >&6; }
1685 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1686 /* end confdefs.h. */
1687 #include <$2>
1688 _ACEOF
1689 if ac_fn_c_try_cpp "$LINENO"; then :
1690 ac_header_preproc=yes
1691 else
1692 ac_header_preproc=no
1693 fi
1694 rm -f conftest.err conftest.$ac_ext
1695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1696 $as_echo "$ac_header_preproc" >&6; }
1697
1698 # So? What about this header?
1699 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1700 yes:no: )
1701 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1702 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1703 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1704 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1705 ;;
1706 no:yes:* )
1707 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1708 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1709 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1710 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1711 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1712 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1713 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1714 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1715 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1716 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1717 ;;
1718 esac
1719 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1720 $as_echo_n "checking for $2... " >&6; }
1721 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1722 $as_echo_n "(cached) " >&6
1723 else
1724 eval "$3=\$ac_header_compiler"
1725 fi
1726 eval ac_res=\$$3
1727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1728 $as_echo "$ac_res" >&6; }
1729 fi
1730 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1731
1732 } # ac_fn_c_check_header_mongrel
1733
1734 # ac_fn_c_try_run LINENO
1735 # ----------------------
1736 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1737 # that executables *can* be run.
1738 ac_fn_c_try_run ()
1739 {
1740 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1741 if { { ac_try="$ac_link"
1742 case "(($ac_try" in
1743 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1744 *) ac_try_echo=$ac_try;;
1745 esac
1746 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1747 $as_echo "$ac_try_echo"; } >&5
1748 (eval "$ac_link") 2>&5
1749 ac_status=$?
1750 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1751 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1752 { { case "(($ac_try" in
1753 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1754 *) ac_try_echo=$ac_try;;
1755 esac
1756 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1757 $as_echo "$ac_try_echo"; } >&5
1758 (eval "$ac_try") 2>&5
1759 ac_status=$?
1760 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1761 test $ac_status = 0; }; }; then :
1762 ac_retval=0
1763 else
1764 $as_echo "$as_me: program exited with status $ac_status" >&5
1765 $as_echo "$as_me: failed program was:" >&5
1766 sed 's/^/| /' conftest.$ac_ext >&5
1767
1768 ac_retval=$ac_status
1769 fi
1770 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1771 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1772 return $ac_retval
1773
1774 } # ac_fn_c_try_run
1775
1776 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1777 # -------------------------------------------------------
1778 # Tests whether HEADER exists and can be compiled using the include files in
1779 # INCLUDES, setting the cache variable VAR accordingly.
1780 ac_fn_c_check_header_compile ()
1781 {
1782 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1783 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1784 $as_echo_n "checking for $2... " >&6; }
1785 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1786 $as_echo_n "(cached) " >&6
1787 else
1788 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1789 /* end confdefs.h. */
1790 $4
1791 #include <$2>
1792 _ACEOF
1793 if ac_fn_c_try_compile "$LINENO"; then :
1794 eval "$3=yes"
1795 else
1796 eval "$3=no"
1797 fi
1798 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1799 fi
1800 eval ac_res=\$$3
1801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1802 $as_echo "$ac_res" >&6; }
1803 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1804
1805 } # ac_fn_c_check_header_compile
1806
1807 # ac_fn_c_check_func LINENO FUNC VAR
1808 # ----------------------------------
1809 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1810 ac_fn_c_check_func ()
1811 {
1812 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1813 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1814 $as_echo_n "checking for $2... " >&6; }
1815 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1816 $as_echo_n "(cached) " >&6
1817 else
1818 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1819 /* end confdefs.h. */
1820 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1821 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1822 #define $2 innocuous_$2
1823
1824 /* System header to define __stub macros and hopefully few prototypes,
1825 which can conflict with char $2 (); below.
1826 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1827 <limits.h> exists even on freestanding compilers. */
1828
1829 #ifdef __STDC__
1830 # include <limits.h>
1831 #else
1832 # include <assert.h>
1833 #endif
1834
1835 #undef $2
1836
1837 /* Override any GCC internal prototype to avoid an error.
1838 Use char because int might match the return type of a GCC
1839 builtin and then its argument prototype would still apply. */
1840 #ifdef __cplusplus
1841 extern "C"
1842 #endif
1843 char $2 ();
1844 /* The GNU C library defines this for functions which it implements
1845 to always fail with ENOSYS. Some functions are actually named
1846 something starting with __ and the normal name is an alias. */
1847 #if defined __stub_$2 || defined __stub___$2
1848 choke me
1849 #endif
1850
1851 int
1852 main ()
1853 {
1854 return $2 ();
1855 ;
1856 return 0;
1857 }
1858 _ACEOF
1859 if ac_fn_c_try_link "$LINENO"; then :
1860 eval "$3=yes"
1861 else
1862 eval "$3=no"
1863 fi
1864 rm -f core conftest.err conftest.$ac_objext \
1865 conftest$ac_exeext conftest.$ac_ext
1866 fi
1867 eval ac_res=\$$3
1868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1869 $as_echo "$ac_res" >&6; }
1870 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1871
1872 } # ac_fn_c_check_func
1873
1874 # ac_fn_c_check_decl LINENO SYMBOL VAR
1875 # ------------------------------------
1876 # Tests whether SYMBOL is declared, setting cache variable VAR accordingly.
1877 ac_fn_c_check_decl ()
1878 {
1879 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1880 as_decl_name=`echo $2|sed 's/ *(.*//'`
1881 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
1882 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
1883 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
1884 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1885 $as_echo_n "(cached) " >&6
1886 else
1887 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1888 /* end confdefs.h. */
1889 $4
1890 int
1891 main ()
1892 {
1893 #ifndef $as_decl_name
1894 #ifdef __cplusplus
1895 (void) $as_decl_use;
1896 #else
1897 (void) $as_decl_name;
1898 #endif
1899 #endif
1900
1901 ;
1902 return 0;
1903 }
1904 _ACEOF
1905 if ac_fn_c_try_compile "$LINENO"; then :
1906 eval "$3=yes"
1907 else
1908 eval "$3=no"
1909 fi
1910 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1911 fi
1912 eval ac_res=\$$3
1913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1914 $as_echo "$ac_res" >&6; }
1915 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1916
1917 } # ac_fn_c_check_decl
1918 cat >config.log <<_ACEOF
1919 This file contains any messages produced by compilers while
1920 running configure, to aid debugging if configure makes a mistake.
1921
1922 It was created by gas $as_me 2.25.51, which was
1923 generated by GNU Autoconf 2.64. Invocation command line was
1924
1925 $ $0 $@
1926
1927 _ACEOF
1928 exec 5>>config.log
1929 {
1930 cat <<_ASUNAME
1931 ## --------- ##
1932 ## Platform. ##
1933 ## --------- ##
1934
1935 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1936 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1937 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1938 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1939 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1940
1941 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1942 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1943
1944 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1945 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1946 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1947 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1948 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1949 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1950 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1951
1952 _ASUNAME
1953
1954 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1955 for as_dir in $PATH
1956 do
1957 IFS=$as_save_IFS
1958 test -z "$as_dir" && as_dir=.
1959 $as_echo "PATH: $as_dir"
1960 done
1961 IFS=$as_save_IFS
1962
1963 } >&5
1964
1965 cat >&5 <<_ACEOF
1966
1967
1968 ## ----------- ##
1969 ## Core tests. ##
1970 ## ----------- ##
1971
1972 _ACEOF
1973
1974
1975 # Keep a trace of the command line.
1976 # Strip out --no-create and --no-recursion so they do not pile up.
1977 # Strip out --silent because we don't want to record it for future runs.
1978 # Also quote any args containing shell meta-characters.
1979 # Make two passes to allow for proper duplicate-argument suppression.
1980 ac_configure_args=
1981 ac_configure_args0=
1982 ac_configure_args1=
1983 ac_must_keep_next=false
1984 for ac_pass in 1 2
1985 do
1986 for ac_arg
1987 do
1988 case $ac_arg in
1989 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1990 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1991 | -silent | --silent | --silen | --sile | --sil)
1992 continue ;;
1993 *\'*)
1994 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1995 esac
1996 case $ac_pass in
1997 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1998 2)
1999 as_fn_append ac_configure_args1 " '$ac_arg'"
2000 if test $ac_must_keep_next = true; then
2001 ac_must_keep_next=false # Got value, back to normal.
2002 else
2003 case $ac_arg in
2004 *=* | --config-cache | -C | -disable-* | --disable-* \
2005 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2006 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2007 | -with-* | --with-* | -without-* | --without-* | --x)
2008 case "$ac_configure_args0 " in
2009 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2010 esac
2011 ;;
2012 -* ) ac_must_keep_next=true ;;
2013 esac
2014 fi
2015 as_fn_append ac_configure_args " '$ac_arg'"
2016 ;;
2017 esac
2018 done
2019 done
2020 { ac_configure_args0=; unset ac_configure_args0;}
2021 { ac_configure_args1=; unset ac_configure_args1;}
2022
2023 # When interrupted or exit'd, cleanup temporary files, and complete
2024 # config.log. We remove comments because anyway the quotes in there
2025 # would cause problems or look ugly.
2026 # WARNING: Use '\'' to represent an apostrophe within the trap.
2027 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2028 trap 'exit_status=$?
2029 # Save into config.log some information that might help in debugging.
2030 {
2031 echo
2032
2033 cat <<\_ASBOX
2034 ## ---------------- ##
2035 ## Cache variables. ##
2036 ## ---------------- ##
2037 _ASBOX
2038 echo
2039 # The following way of writing the cache mishandles newlines in values,
2040 (
2041 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2042 eval ac_val=\$$ac_var
2043 case $ac_val in #(
2044 *${as_nl}*)
2045 case $ac_var in #(
2046 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2047 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2048 esac
2049 case $ac_var in #(
2050 _ | IFS | as_nl) ;; #(
2051 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2052 *) { eval $ac_var=; unset $ac_var;} ;;
2053 esac ;;
2054 esac
2055 done
2056 (set) 2>&1 |
2057 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2058 *${as_nl}ac_space=\ *)
2059 sed -n \
2060 "s/'\''/'\''\\\\'\'''\''/g;
2061 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2062 ;; #(
2063 *)
2064 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2065 ;;
2066 esac |
2067 sort
2068 )
2069 echo
2070
2071 cat <<\_ASBOX
2072 ## ----------------- ##
2073 ## Output variables. ##
2074 ## ----------------- ##
2075 _ASBOX
2076 echo
2077 for ac_var in $ac_subst_vars
2078 do
2079 eval ac_val=\$$ac_var
2080 case $ac_val in
2081 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2082 esac
2083 $as_echo "$ac_var='\''$ac_val'\''"
2084 done | sort
2085 echo
2086
2087 if test -n "$ac_subst_files"; then
2088 cat <<\_ASBOX
2089 ## ------------------- ##
2090 ## File substitutions. ##
2091 ## ------------------- ##
2092 _ASBOX
2093 echo
2094 for ac_var in $ac_subst_files
2095 do
2096 eval ac_val=\$$ac_var
2097 case $ac_val in
2098 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2099 esac
2100 $as_echo "$ac_var='\''$ac_val'\''"
2101 done | sort
2102 echo
2103 fi
2104
2105 if test -s confdefs.h; then
2106 cat <<\_ASBOX
2107 ## ----------- ##
2108 ## confdefs.h. ##
2109 ## ----------- ##
2110 _ASBOX
2111 echo
2112 cat confdefs.h
2113 echo
2114 fi
2115 test "$ac_signal" != 0 &&
2116 $as_echo "$as_me: caught signal $ac_signal"
2117 $as_echo "$as_me: exit $exit_status"
2118 } >&5
2119 rm -f core *.core core.conftest.* &&
2120 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2121 exit $exit_status
2122 ' 0
2123 for ac_signal in 1 2 13 15; do
2124 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2125 done
2126 ac_signal=0
2127
2128 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2129 rm -f -r conftest* confdefs.h
2130
2131 $as_echo "/* confdefs.h */" > confdefs.h
2132
2133 # Predefined preprocessor variables.
2134
2135 cat >>confdefs.h <<_ACEOF
2136 #define PACKAGE_NAME "$PACKAGE_NAME"
2137 _ACEOF
2138
2139 cat >>confdefs.h <<_ACEOF
2140 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2141 _ACEOF
2142
2143 cat >>confdefs.h <<_ACEOF
2144 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2145 _ACEOF
2146
2147 cat >>confdefs.h <<_ACEOF
2148 #define PACKAGE_STRING "$PACKAGE_STRING"
2149 _ACEOF
2150
2151 cat >>confdefs.h <<_ACEOF
2152 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2153 _ACEOF
2154
2155 cat >>confdefs.h <<_ACEOF
2156 #define PACKAGE_URL "$PACKAGE_URL"
2157 _ACEOF
2158
2159
2160 # Let the site file select an alternate cache file if it wants to.
2161 # Prefer an explicitly selected file to automatically selected ones.
2162 ac_site_file1=NONE
2163 ac_site_file2=NONE
2164 if test -n "$CONFIG_SITE"; then
2165 ac_site_file1=$CONFIG_SITE
2166 elif test "x$prefix" != xNONE; then
2167 ac_site_file1=$prefix/share/config.site
2168 ac_site_file2=$prefix/etc/config.site
2169 else
2170 ac_site_file1=$ac_default_prefix/share/config.site
2171 ac_site_file2=$ac_default_prefix/etc/config.site
2172 fi
2173 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2174 do
2175 test "x$ac_site_file" = xNONE && continue
2176 if test -r "$ac_site_file"; then
2177 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2178 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2179 sed 's/^/| /' "$ac_site_file" >&5
2180 . "$ac_site_file"
2181 fi
2182 done
2183
2184 if test -r "$cache_file"; then
2185 # Some versions of bash will fail to source /dev/null (special
2186 # files actually), so we avoid doing that.
2187 if test -f "$cache_file"; then
2188 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2189 $as_echo "$as_me: loading cache $cache_file" >&6;}
2190 case $cache_file in
2191 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2192 *) . "./$cache_file";;
2193 esac
2194 fi
2195 else
2196 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2197 $as_echo "$as_me: creating cache $cache_file" >&6;}
2198 >$cache_file
2199 fi
2200
2201 # Check that the precious variables saved in the cache have kept the same
2202 # value.
2203 ac_cache_corrupted=false
2204 for ac_var in $ac_precious_vars; do
2205 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2206 eval ac_new_set=\$ac_env_${ac_var}_set
2207 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2208 eval ac_new_val=\$ac_env_${ac_var}_value
2209 case $ac_old_set,$ac_new_set in
2210 set,)
2211 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2212 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2213 ac_cache_corrupted=: ;;
2214 ,set)
2215 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2216 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2217 ac_cache_corrupted=: ;;
2218 ,);;
2219 *)
2220 if test "x$ac_old_val" != "x$ac_new_val"; then
2221 # differences in whitespace do not lead to failure.
2222 ac_old_val_w=`echo x $ac_old_val`
2223 ac_new_val_w=`echo x $ac_new_val`
2224 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2225 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2226 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2227 ac_cache_corrupted=:
2228 else
2229 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2230 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2231 eval $ac_var=\$ac_old_val
2232 fi
2233 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2234 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2235 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2236 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2237 fi;;
2238 esac
2239 # Pass precious variables to config.status.
2240 if test "$ac_new_set" = set; then
2241 case $ac_new_val in
2242 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2243 *) ac_arg=$ac_var=$ac_new_val ;;
2244 esac
2245 case " $ac_configure_args " in
2246 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2247 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2248 esac
2249 fi
2250 done
2251 if $ac_cache_corrupted; then
2252 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2253 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2254 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2255 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2256 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2257 fi
2258 ## -------------------- ##
2259 ## Main body of script. ##
2260 ## -------------------- ##
2261
2262 ac_ext=c
2263 ac_cpp='$CPP $CPPFLAGS'
2264 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2265 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2266 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2267
2268
2269
2270
2271
2272
2273
2274 ac_aux_dir=
2275 for ac_dir in .. "$srcdir"/..; do
2276 for ac_t in install-sh install.sh shtool; do
2277 if test -f "$ac_dir/$ac_t"; then
2278 ac_aux_dir=$ac_dir
2279 ac_install_sh="$ac_aux_dir/$ac_t -c"
2280 break 2
2281 fi
2282 done
2283 done
2284 if test -z "$ac_aux_dir"; then
2285 as_fn_error "cannot find install-sh, install.sh, or shtool in .. \"$srcdir\"/.." "$LINENO" 5
2286 fi
2287
2288 # These three variables are undocumented and unsupported,
2289 # and are intended to be withdrawn in a future Autoconf release.
2290 # They can cause serious problems if a builder's source tree is in a directory
2291 # whose full name contains unusual characters.
2292 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2293 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2294 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2295
2296
2297 # Make sure we can run config.sub.
2298 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2299 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2300
2301 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2302 $as_echo_n "checking build system type... " >&6; }
2303 if test "${ac_cv_build+set}" = set; then :
2304 $as_echo_n "(cached) " >&6
2305 else
2306 ac_build_alias=$build_alias
2307 test "x$ac_build_alias" = x &&
2308 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2309 test "x$ac_build_alias" = x &&
2310 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
2311 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2312 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2313
2314 fi
2315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2316 $as_echo "$ac_cv_build" >&6; }
2317 case $ac_cv_build in
2318 *-*-*) ;;
2319 *) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
2320 esac
2321 build=$ac_cv_build
2322 ac_save_IFS=$IFS; IFS='-'
2323 set x $ac_cv_build
2324 shift
2325 build_cpu=$1
2326 build_vendor=$2
2327 shift; shift
2328 # Remember, the first character of IFS is used to create $*,
2329 # except with old shells:
2330 build_os=$*
2331 IFS=$ac_save_IFS
2332 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2333
2334
2335 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2336 $as_echo_n "checking host system type... " >&6; }
2337 if test "${ac_cv_host+set}" = set; then :
2338 $as_echo_n "(cached) " >&6
2339 else
2340 if test "x$host_alias" = x; then
2341 ac_cv_host=$ac_cv_build
2342 else
2343 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2344 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2345 fi
2346
2347 fi
2348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2349 $as_echo "$ac_cv_host" >&6; }
2350 case $ac_cv_host in
2351 *-*-*) ;;
2352 *) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
2353 esac
2354 host=$ac_cv_host
2355 ac_save_IFS=$IFS; IFS='-'
2356 set x $ac_cv_host
2357 shift
2358 host_cpu=$1
2359 host_vendor=$2
2360 shift; shift
2361 # Remember, the first character of IFS is used to create $*,
2362 # except with old shells:
2363 host_os=$*
2364 IFS=$ac_save_IFS
2365 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2366
2367
2368 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2369 $as_echo_n "checking target system type... " >&6; }
2370 if test "${ac_cv_target+set}" = set; then :
2371 $as_echo_n "(cached) " >&6
2372 else
2373 if test "x$target_alias" = x; then
2374 ac_cv_target=$ac_cv_host
2375 else
2376 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2377 as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2378 fi
2379
2380 fi
2381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2382 $as_echo "$ac_cv_target" >&6; }
2383 case $ac_cv_target in
2384 *-*-*) ;;
2385 *) as_fn_error "invalid value of canonical target" "$LINENO" 5;;
2386 esac
2387 target=$ac_cv_target
2388 ac_save_IFS=$IFS; IFS='-'
2389 set x $ac_cv_target
2390 shift
2391 target_cpu=$1
2392 target_vendor=$2
2393 shift; shift
2394 # Remember, the first character of IFS is used to create $*,
2395 # except with old shells:
2396 target_os=$*
2397 IFS=$ac_save_IFS
2398 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2399
2400
2401 # The aliases save the names the user supplied, while $host etc.
2402 # will get canonicalized.
2403 test -n "$target_alias" &&
2404 test "$program_prefix$program_suffix$program_transform_name" = \
2405 NONENONEs,x,x, &&
2406 program_prefix=${target_alias}-
2407 ac_ext=c
2408 ac_cpp='$CPP $CPPFLAGS'
2409 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2410 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2411 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2412 if test -n "$ac_tool_prefix"; then
2413 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2414 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2415 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2416 $as_echo_n "checking for $ac_word... " >&6; }
2417 if test "${ac_cv_prog_CC+set}" = set; then :
2418 $as_echo_n "(cached) " >&6
2419 else
2420 if test -n "$CC"; then
2421 ac_cv_prog_CC="$CC" # Let the user override the test.
2422 else
2423 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2424 for as_dir in $PATH
2425 do
2426 IFS=$as_save_IFS
2427 test -z "$as_dir" && as_dir=.
2428 for ac_exec_ext in '' $ac_executable_extensions; do
2429 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2430 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2431 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2432 break 2
2433 fi
2434 done
2435 done
2436 IFS=$as_save_IFS
2437
2438 fi
2439 fi
2440 CC=$ac_cv_prog_CC
2441 if test -n "$CC"; then
2442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2443 $as_echo "$CC" >&6; }
2444 else
2445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2446 $as_echo "no" >&6; }
2447 fi
2448
2449
2450 fi
2451 if test -z "$ac_cv_prog_CC"; then
2452 ac_ct_CC=$CC
2453 # Extract the first word of "gcc", so it can be a program name with args.
2454 set dummy gcc; ac_word=$2
2455 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2456 $as_echo_n "checking for $ac_word... " >&6; }
2457 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
2458 $as_echo_n "(cached) " >&6
2459 else
2460 if test -n "$ac_ct_CC"; then
2461 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2462 else
2463 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2464 for as_dir in $PATH
2465 do
2466 IFS=$as_save_IFS
2467 test -z "$as_dir" && as_dir=.
2468 for ac_exec_ext in '' $ac_executable_extensions; do
2469 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2470 ac_cv_prog_ac_ct_CC="gcc"
2471 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2472 break 2
2473 fi
2474 done
2475 done
2476 IFS=$as_save_IFS
2477
2478 fi
2479 fi
2480 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2481 if test -n "$ac_ct_CC"; then
2482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2483 $as_echo "$ac_ct_CC" >&6; }
2484 else
2485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2486 $as_echo "no" >&6; }
2487 fi
2488
2489 if test "x$ac_ct_CC" = x; then
2490 CC=""
2491 else
2492 case $cross_compiling:$ac_tool_warned in
2493 yes:)
2494 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2495 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2496 ac_tool_warned=yes ;;
2497 esac
2498 CC=$ac_ct_CC
2499 fi
2500 else
2501 CC="$ac_cv_prog_CC"
2502 fi
2503
2504 if test -z "$CC"; then
2505 if test -n "$ac_tool_prefix"; then
2506 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2507 set dummy ${ac_tool_prefix}cc; ac_word=$2
2508 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2509 $as_echo_n "checking for $ac_word... " >&6; }
2510 if test "${ac_cv_prog_CC+set}" = set; then :
2511 $as_echo_n "(cached) " >&6
2512 else
2513 if test -n "$CC"; then
2514 ac_cv_prog_CC="$CC" # Let the user override the test.
2515 else
2516 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2517 for as_dir in $PATH
2518 do
2519 IFS=$as_save_IFS
2520 test -z "$as_dir" && as_dir=.
2521 for ac_exec_ext in '' $ac_executable_extensions; do
2522 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2523 ac_cv_prog_CC="${ac_tool_prefix}cc"
2524 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2525 break 2
2526 fi
2527 done
2528 done
2529 IFS=$as_save_IFS
2530
2531 fi
2532 fi
2533 CC=$ac_cv_prog_CC
2534 if test -n "$CC"; then
2535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2536 $as_echo "$CC" >&6; }
2537 else
2538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2539 $as_echo "no" >&6; }
2540 fi
2541
2542
2543 fi
2544 fi
2545 if test -z "$CC"; then
2546 # Extract the first word of "cc", so it can be a program name with args.
2547 set dummy cc; ac_word=$2
2548 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2549 $as_echo_n "checking for $ac_word... " >&6; }
2550 if test "${ac_cv_prog_CC+set}" = set; then :
2551 $as_echo_n "(cached) " >&6
2552 else
2553 if test -n "$CC"; then
2554 ac_cv_prog_CC="$CC" # Let the user override the test.
2555 else
2556 ac_prog_rejected=no
2557 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2558 for as_dir in $PATH
2559 do
2560 IFS=$as_save_IFS
2561 test -z "$as_dir" && as_dir=.
2562 for ac_exec_ext in '' $ac_executable_extensions; do
2563 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2564 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2565 ac_prog_rejected=yes
2566 continue
2567 fi
2568 ac_cv_prog_CC="cc"
2569 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2570 break 2
2571 fi
2572 done
2573 done
2574 IFS=$as_save_IFS
2575
2576 if test $ac_prog_rejected = yes; then
2577 # We found a bogon in the path, so make sure we never use it.
2578 set dummy $ac_cv_prog_CC
2579 shift
2580 if test $# != 0; then
2581 # We chose a different compiler from the bogus one.
2582 # However, it has the same basename, so the bogon will be chosen
2583 # first if we set CC to just the basename; use the full file name.
2584 shift
2585 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2586 fi
2587 fi
2588 fi
2589 fi
2590 CC=$ac_cv_prog_CC
2591 if test -n "$CC"; then
2592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2593 $as_echo "$CC" >&6; }
2594 else
2595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2596 $as_echo "no" >&6; }
2597 fi
2598
2599
2600 fi
2601 if test -z "$CC"; then
2602 if test -n "$ac_tool_prefix"; then
2603 for ac_prog in cl.exe
2604 do
2605 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2606 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2607 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2608 $as_echo_n "checking for $ac_word... " >&6; }
2609 if test "${ac_cv_prog_CC+set}" = set; then :
2610 $as_echo_n "(cached) " >&6
2611 else
2612 if test -n "$CC"; then
2613 ac_cv_prog_CC="$CC" # Let the user override the test.
2614 else
2615 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2616 for as_dir in $PATH
2617 do
2618 IFS=$as_save_IFS
2619 test -z "$as_dir" && as_dir=.
2620 for ac_exec_ext in '' $ac_executable_extensions; do
2621 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2622 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2623 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2624 break 2
2625 fi
2626 done
2627 done
2628 IFS=$as_save_IFS
2629
2630 fi
2631 fi
2632 CC=$ac_cv_prog_CC
2633 if test -n "$CC"; then
2634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2635 $as_echo "$CC" >&6; }
2636 else
2637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2638 $as_echo "no" >&6; }
2639 fi
2640
2641
2642 test -n "$CC" && break
2643 done
2644 fi
2645 if test -z "$CC"; then
2646 ac_ct_CC=$CC
2647 for ac_prog in cl.exe
2648 do
2649 # Extract the first word of "$ac_prog", so it can be a program name with args.
2650 set dummy $ac_prog; ac_word=$2
2651 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2652 $as_echo_n "checking for $ac_word... " >&6; }
2653 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
2654 $as_echo_n "(cached) " >&6
2655 else
2656 if test -n "$ac_ct_CC"; then
2657 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2658 else
2659 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2660 for as_dir in $PATH
2661 do
2662 IFS=$as_save_IFS
2663 test -z "$as_dir" && as_dir=.
2664 for ac_exec_ext in '' $ac_executable_extensions; do
2665 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2666 ac_cv_prog_ac_ct_CC="$ac_prog"
2667 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2668 break 2
2669 fi
2670 done
2671 done
2672 IFS=$as_save_IFS
2673
2674 fi
2675 fi
2676 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2677 if test -n "$ac_ct_CC"; then
2678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2679 $as_echo "$ac_ct_CC" >&6; }
2680 else
2681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2682 $as_echo "no" >&6; }
2683 fi
2684
2685
2686 test -n "$ac_ct_CC" && break
2687 done
2688
2689 if test "x$ac_ct_CC" = x; then
2690 CC=""
2691 else
2692 case $cross_compiling:$ac_tool_warned in
2693 yes:)
2694 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2695 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2696 ac_tool_warned=yes ;;
2697 esac
2698 CC=$ac_ct_CC
2699 fi
2700 fi
2701
2702 fi
2703
2704
2705 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2706 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2707 as_fn_error "no acceptable C compiler found in \$PATH
2708 See \`config.log' for more details." "$LINENO" 5; }
2709
2710 # Provide some information about the compiler.
2711 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
2712 set X $ac_compile
2713 ac_compiler=$2
2714 for ac_option in --version -v -V -qversion; do
2715 { { ac_try="$ac_compiler $ac_option >&5"
2716 case "(($ac_try" in
2717 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2718 *) ac_try_echo=$ac_try;;
2719 esac
2720 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2721 $as_echo "$ac_try_echo"; } >&5
2722 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
2723 ac_status=$?
2724 if test -s conftest.err; then
2725 sed '10a\
2726 ... rest of stderr output deleted ...
2727 10q' conftest.err >conftest.er1
2728 cat conftest.er1 >&5
2729 rm -f conftest.er1 conftest.err
2730 fi
2731 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2732 test $ac_status = 0; }
2733 done
2734
2735 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2736 /* end confdefs.h. */
2737
2738 int
2739 main ()
2740 {
2741
2742 ;
2743 return 0;
2744 }
2745 _ACEOF
2746 ac_clean_files_save=$ac_clean_files
2747 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
2748 # Try to create an executable without -o first, disregard a.out.
2749 # It will help us diagnose broken compilers, and finding out an intuition
2750 # of exeext.
2751 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
2752 $as_echo_n "checking for C compiler default output file name... " >&6; }
2753 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2754
2755 # The possible output files:
2756 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2757
2758 ac_rmfiles=
2759 for ac_file in $ac_files
2760 do
2761 case $ac_file in
2762 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2763 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2764 esac
2765 done
2766 rm -f $ac_rmfiles
2767
2768 if { { ac_try="$ac_link_default"
2769 case "(($ac_try" in
2770 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2771 *) ac_try_echo=$ac_try;;
2772 esac
2773 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2774 $as_echo "$ac_try_echo"; } >&5
2775 (eval "$ac_link_default") 2>&5
2776 ac_status=$?
2777 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2778 test $ac_status = 0; }; then :
2779 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2780 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2781 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2782 # so that the user can short-circuit this test for compilers unknown to
2783 # Autoconf.
2784 for ac_file in $ac_files ''
2785 do
2786 test -f "$ac_file" || continue
2787 case $ac_file in
2788 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
2789 ;;
2790 [ab].out )
2791 # We found the default executable, but exeext='' is most
2792 # certainly right.
2793 break;;
2794 *.* )
2795 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2796 then :; else
2797 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2798 fi
2799 # We set ac_cv_exeext here because the later test for it is not
2800 # safe: cross compilers may not add the suffix if given an `-o'
2801 # argument, so we may need to know it at that point already.
2802 # Even if this section looks crufty: it has the advantage of
2803 # actually working.
2804 break;;
2805 * )
2806 break;;
2807 esac
2808 done
2809 test "$ac_cv_exeext" = no && ac_cv_exeext=
2810
2811 else
2812 ac_file=''
2813 fi
2814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
2815 $as_echo "$ac_file" >&6; }
2816 if test -z "$ac_file"; then :
2817 $as_echo "$as_me: failed program was:" >&5
2818 sed 's/^/| /' conftest.$ac_ext >&5
2819
2820 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2821 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2822 { as_fn_set_status 77
2823 as_fn_error "C compiler cannot create executables
2824 See \`config.log' for more details." "$LINENO" 5; }; }
2825 fi
2826 ac_exeext=$ac_cv_exeext
2827
2828 # Check that the compiler produces executables we can run. If not, either
2829 # the compiler is broken, or we cross compile.
2830 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
2831 $as_echo_n "checking whether the C compiler works... " >&6; }
2832 # If not cross compiling, check that we can run a simple program.
2833 if test "$cross_compiling" != yes; then
2834 if { ac_try='./$ac_file'
2835 { { case "(($ac_try" in
2836 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2837 *) ac_try_echo=$ac_try;;
2838 esac
2839 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2840 $as_echo "$ac_try_echo"; } >&5
2841 (eval "$ac_try") 2>&5
2842 ac_status=$?
2843 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2844 test $ac_status = 0; }; }; then
2845 cross_compiling=no
2846 else
2847 if test "$cross_compiling" = maybe; then
2848 cross_compiling=yes
2849 else
2850 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2851 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2852 as_fn_error "cannot run C compiled programs.
2853 If you meant to cross compile, use \`--host'.
2854 See \`config.log' for more details." "$LINENO" 5; }
2855 fi
2856 fi
2857 fi
2858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2859 $as_echo "yes" >&6; }
2860
2861 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
2862 ac_clean_files=$ac_clean_files_save
2863 # Check that the compiler produces executables we can run. If not, either
2864 # the compiler is broken, or we cross compile.
2865 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
2866 $as_echo_n "checking whether we are cross compiling... " >&6; }
2867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
2868 $as_echo "$cross_compiling" >&6; }
2869
2870 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
2871 $as_echo_n "checking for suffix of executables... " >&6; }
2872 if { { ac_try="$ac_link"
2873 case "(($ac_try" in
2874 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2875 *) ac_try_echo=$ac_try;;
2876 esac
2877 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2878 $as_echo "$ac_try_echo"; } >&5
2879 (eval "$ac_link") 2>&5
2880 ac_status=$?
2881 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2882 test $ac_status = 0; }; then :
2883 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2884 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2885 # work properly (i.e., refer to `conftest.exe'), while it won't with
2886 # `rm'.
2887 for ac_file in conftest.exe conftest conftest.*; do
2888 test -f "$ac_file" || continue
2889 case $ac_file in
2890 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2891 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2892 break;;
2893 * ) break;;
2894 esac
2895 done
2896 else
2897 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2898 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2899 as_fn_error "cannot compute suffix of executables: cannot compile and link
2900 See \`config.log' for more details." "$LINENO" 5; }
2901 fi
2902 rm -f conftest$ac_cv_exeext
2903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
2904 $as_echo "$ac_cv_exeext" >&6; }
2905
2906 rm -f conftest.$ac_ext
2907 EXEEXT=$ac_cv_exeext
2908 ac_exeext=$EXEEXT
2909 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
2910 $as_echo_n "checking for suffix of object files... " >&6; }
2911 if test "${ac_cv_objext+set}" = set; then :
2912 $as_echo_n "(cached) " >&6
2913 else
2914 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2915 /* end confdefs.h. */
2916
2917 int
2918 main ()
2919 {
2920
2921 ;
2922 return 0;
2923 }
2924 _ACEOF
2925 rm -f conftest.o conftest.obj
2926 if { { ac_try="$ac_compile"
2927 case "(($ac_try" in
2928 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2929 *) ac_try_echo=$ac_try;;
2930 esac
2931 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2932 $as_echo "$ac_try_echo"; } >&5
2933 (eval "$ac_compile") 2>&5
2934 ac_status=$?
2935 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2936 test $ac_status = 0; }; then :
2937 for ac_file in conftest.o conftest.obj conftest.*; do
2938 test -f "$ac_file" || continue;
2939 case $ac_file in
2940 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
2941 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2942 break;;
2943 esac
2944 done
2945 else
2946 $as_echo "$as_me: failed program was:" >&5
2947 sed 's/^/| /' conftest.$ac_ext >&5
2948
2949 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2950 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2951 as_fn_error "cannot compute suffix of object files: cannot compile
2952 See \`config.log' for more details." "$LINENO" 5; }
2953 fi
2954 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2955 fi
2956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
2957 $as_echo "$ac_cv_objext" >&6; }
2958 OBJEXT=$ac_cv_objext
2959 ac_objext=$OBJEXT
2960 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
2961 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
2962 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
2963 $as_echo_n "(cached) " >&6
2964 else
2965 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2966 /* end confdefs.h. */
2967
2968 int
2969 main ()
2970 {
2971 #ifndef __GNUC__
2972 choke me
2973 #endif
2974
2975 ;
2976 return 0;
2977 }
2978 _ACEOF
2979 if ac_fn_c_try_compile "$LINENO"; then :
2980 ac_compiler_gnu=yes
2981 else
2982 ac_compiler_gnu=no
2983 fi
2984 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2985 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2986
2987 fi
2988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
2989 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
2990 if test $ac_compiler_gnu = yes; then
2991 GCC=yes
2992 else
2993 GCC=
2994 fi
2995 ac_test_CFLAGS=${CFLAGS+set}
2996 ac_save_CFLAGS=$CFLAGS
2997 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
2998 $as_echo_n "checking whether $CC accepts -g... " >&6; }
2999 if test "${ac_cv_prog_cc_g+set}" = set; then :
3000 $as_echo_n "(cached) " >&6
3001 else
3002 ac_save_c_werror_flag=$ac_c_werror_flag
3003 ac_c_werror_flag=yes
3004 ac_cv_prog_cc_g=no
3005 CFLAGS="-g"
3006 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3007 /* end confdefs.h. */
3008
3009 int
3010 main ()
3011 {
3012
3013 ;
3014 return 0;
3015 }
3016 _ACEOF
3017 if ac_fn_c_try_compile "$LINENO"; then :
3018 ac_cv_prog_cc_g=yes
3019 else
3020 CFLAGS=""
3021 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3022 /* end confdefs.h. */
3023
3024 int
3025 main ()
3026 {
3027
3028 ;
3029 return 0;
3030 }
3031 _ACEOF
3032 if ac_fn_c_try_compile "$LINENO"; then :
3033
3034 else
3035 ac_c_werror_flag=$ac_save_c_werror_flag
3036 CFLAGS="-g"
3037 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3038 /* end confdefs.h. */
3039
3040 int
3041 main ()
3042 {
3043
3044 ;
3045 return 0;
3046 }
3047 _ACEOF
3048 if ac_fn_c_try_compile "$LINENO"; then :
3049 ac_cv_prog_cc_g=yes
3050 fi
3051 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3052 fi
3053 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3054 fi
3055 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3056 ac_c_werror_flag=$ac_save_c_werror_flag
3057 fi
3058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3059 $as_echo "$ac_cv_prog_cc_g" >&6; }
3060 if test "$ac_test_CFLAGS" = set; then
3061 CFLAGS=$ac_save_CFLAGS
3062 elif test $ac_cv_prog_cc_g = yes; then
3063 if test "$GCC" = yes; then
3064 CFLAGS="-g -O2"
3065 else
3066 CFLAGS="-g"
3067 fi
3068 else
3069 if test "$GCC" = yes; then
3070 CFLAGS="-O2"
3071 else
3072 CFLAGS=
3073 fi
3074 fi
3075 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3076 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3077 if test "${ac_cv_prog_cc_c89+set}" = set; then :
3078 $as_echo_n "(cached) " >&6
3079 else
3080 ac_cv_prog_cc_c89=no
3081 ac_save_CC=$CC
3082 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3083 /* end confdefs.h. */
3084 #include <stdarg.h>
3085 #include <stdio.h>
3086 #include <sys/types.h>
3087 #include <sys/stat.h>
3088 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3089 struct buf { int x; };
3090 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3091 static char *e (p, i)
3092 char **p;
3093 int i;
3094 {
3095 return p[i];
3096 }
3097 static char *f (char * (*g) (char **, int), char **p, ...)
3098 {
3099 char *s;
3100 va_list v;
3101 va_start (v,p);
3102 s = g (p, va_arg (v,int));
3103 va_end (v);
3104 return s;
3105 }
3106
3107 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3108 function prototypes and stuff, but not '\xHH' hex character constants.
3109 These don't provoke an error unfortunately, instead are silently treated
3110 as 'x'. The following induces an error, until -std is added to get
3111 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3112 array size at least. It's necessary to write '\x00'==0 to get something
3113 that's true only with -std. */
3114 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3115
3116 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3117 inside strings and character constants. */
3118 #define FOO(x) 'x'
3119 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3120
3121 int test (int i, double x);
3122 struct s1 {int (*f) (int a);};
3123 struct s2 {int (*f) (double a);};
3124 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3125 int argc;
3126 char **argv;
3127 int
3128 main ()
3129 {
3130 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3131 ;
3132 return 0;
3133 }
3134 _ACEOF
3135 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3136 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3137 do
3138 CC="$ac_save_CC $ac_arg"
3139 if ac_fn_c_try_compile "$LINENO"; then :
3140 ac_cv_prog_cc_c89=$ac_arg
3141 fi
3142 rm -f core conftest.err conftest.$ac_objext
3143 test "x$ac_cv_prog_cc_c89" != "xno" && break
3144 done
3145 rm -f conftest.$ac_ext
3146 CC=$ac_save_CC
3147
3148 fi
3149 # AC_CACHE_VAL
3150 case "x$ac_cv_prog_cc_c89" in
3151 x)
3152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3153 $as_echo "none needed" >&6; } ;;
3154 xno)
3155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3156 $as_echo "unsupported" >&6; } ;;
3157 *)
3158 CC="$CC $ac_cv_prog_cc_c89"
3159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3160 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3161 esac
3162 if test "x$ac_cv_prog_cc_c89" != xno; then :
3163
3164 fi
3165
3166 ac_ext=c
3167 ac_cpp='$CPP $CPPFLAGS'
3168 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3169 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3170 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3171
3172
3173 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing strerror" >&5
3174 $as_echo_n "checking for library containing strerror... " >&6; }
3175 if test "${ac_cv_search_strerror+set}" = set; then :
3176 $as_echo_n "(cached) " >&6
3177 else
3178 ac_func_search_save_LIBS=$LIBS
3179 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3180 /* end confdefs.h. */
3181
3182 /* Override any GCC internal prototype to avoid an error.
3183 Use char because int might match the return type of a GCC
3184 builtin and then its argument prototype would still apply. */
3185 #ifdef __cplusplus
3186 extern "C"
3187 #endif
3188 char strerror ();
3189 int
3190 main ()
3191 {
3192 return strerror ();
3193 ;
3194 return 0;
3195 }
3196 _ACEOF
3197 for ac_lib in '' cposix; do
3198 if test -z "$ac_lib"; then
3199 ac_res="none required"
3200 else
3201 ac_res=-l$ac_lib
3202 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
3203 fi
3204 if ac_fn_c_try_link "$LINENO"; then :
3205 ac_cv_search_strerror=$ac_res
3206 fi
3207 rm -f core conftest.err conftest.$ac_objext \
3208 conftest$ac_exeext
3209 if test "${ac_cv_search_strerror+set}" = set; then :
3210 break
3211 fi
3212 done
3213 if test "${ac_cv_search_strerror+set}" = set; then :
3214
3215 else
3216 ac_cv_search_strerror=no
3217 fi
3218 rm conftest.$ac_ext
3219 LIBS=$ac_func_search_save_LIBS
3220 fi
3221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_strerror" >&5
3222 $as_echo "$ac_cv_search_strerror" >&6; }
3223 ac_res=$ac_cv_search_strerror
3224 if test "$ac_res" != no; then :
3225 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
3226
3227 fi
3228
3229
3230 am__api_version='1.11'
3231
3232 # Find a good install program. We prefer a C program (faster),
3233 # so one script is as good as another. But avoid the broken or
3234 # incompatible versions:
3235 # SysV /etc/install, /usr/sbin/install
3236 # SunOS /usr/etc/install
3237 # IRIX /sbin/install
3238 # AIX /bin/install
3239 # AmigaOS /C/install, which installs bootblocks on floppy discs
3240 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3241 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3242 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3243 # OS/2's system install, which has a completely different semantic
3244 # ./install, which can be erroneously created by make from ./install.sh.
3245 # Reject install programs that cannot install multiple files.
3246 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
3247 $as_echo_n "checking for a BSD-compatible install... " >&6; }
3248 if test -z "$INSTALL"; then
3249 if test "${ac_cv_path_install+set}" = set; then :
3250 $as_echo_n "(cached) " >&6
3251 else
3252 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3253 for as_dir in $PATH
3254 do
3255 IFS=$as_save_IFS
3256 test -z "$as_dir" && as_dir=.
3257 # Account for people who put trailing slashes in PATH elements.
3258 case $as_dir/ in #((
3259 ./ | .// | /[cC]/* | \
3260 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3261 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
3262 /usr/ucb/* ) ;;
3263 *)
3264 # OSF1 and SCO ODT 3.0 have their own names for install.
3265 # Don't use installbsd from OSF since it installs stuff as root
3266 # by default.
3267 for ac_prog in ginstall scoinst install; do
3268 for ac_exec_ext in '' $ac_executable_extensions; do
3269 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
3270 if test $ac_prog = install &&
3271 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3272 # AIX install. It has an incompatible calling convention.
3273 :
3274 elif test $ac_prog = install &&
3275 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3276 # program-specific install script used by HP pwplus--don't use.
3277 :
3278 else
3279 rm -rf conftest.one conftest.two conftest.dir
3280 echo one > conftest.one
3281 echo two > conftest.two
3282 mkdir conftest.dir
3283 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
3284 test -s conftest.one && test -s conftest.two &&
3285 test -s conftest.dir/conftest.one &&
3286 test -s conftest.dir/conftest.two
3287 then
3288 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3289 break 3
3290 fi
3291 fi
3292 fi
3293 done
3294 done
3295 ;;
3296 esac
3297
3298 done
3299 IFS=$as_save_IFS
3300
3301 rm -rf conftest.one conftest.two conftest.dir
3302
3303 fi
3304 if test "${ac_cv_path_install+set}" = set; then
3305 INSTALL=$ac_cv_path_install
3306 else
3307 # As a last resort, use the slow shell script. Don't cache a
3308 # value for INSTALL within a source directory, because that will
3309 # break other packages using the cache if that directory is
3310 # removed, or if the value is a relative name.
3311 INSTALL=$ac_install_sh
3312 fi
3313 fi
3314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
3315 $as_echo "$INSTALL" >&6; }
3316
3317 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3318 # It thinks the first close brace ends the variable substitution.
3319 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3320
3321 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3322
3323 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3324
3325 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
3326 $as_echo_n "checking whether build environment is sane... " >&6; }
3327 # Just in case
3328 sleep 1
3329 echo timestamp > conftest.file
3330 # Reject unsafe characters in $srcdir or the absolute working directory
3331 # name. Accept space and tab only in the latter.
3332 am_lf='
3333 '
3334 case `pwd` in
3335 *[\\\"\#\$\&\'\`$am_lf]*)
3336 as_fn_error "unsafe absolute working directory name" "$LINENO" 5;;
3337 esac
3338 case $srcdir in
3339 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
3340 as_fn_error "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
3341 esac
3342
3343 # Do `set' in a subshell so we don't clobber the current shell's
3344 # arguments. Must try -L first in case configure is actually a
3345 # symlink; some systems play weird games with the mod time of symlinks
3346 # (eg FreeBSD returns the mod time of the symlink's containing
3347 # directory).
3348 if (
3349 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
3350 if test "$*" = "X"; then
3351 # -L didn't work.
3352 set X `ls -t "$srcdir/configure" conftest.file`
3353 fi
3354 rm -f conftest.file
3355 if test "$*" != "X $srcdir/configure conftest.file" \
3356 && test "$*" != "X conftest.file $srcdir/configure"; then
3357
3358 # If neither matched, then we have a broken ls. This can happen
3359 # if, for instance, CONFIG_SHELL is bash and it inherits a
3360 # broken ls alias from the environment. This has actually
3361 # happened. Such a system could not be considered "sane".
3362 as_fn_error "ls -t appears to fail. Make sure there is not a broken
3363 alias in your environment" "$LINENO" 5
3364 fi
3365
3366 test "$2" = conftest.file
3367 )
3368 then
3369 # Ok.
3370 :
3371 else
3372 as_fn_error "newly created file is older than distributed files!
3373 Check your system clock" "$LINENO" 5
3374 fi
3375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3376 $as_echo "yes" >&6; }
3377 test "$program_prefix" != NONE &&
3378 program_transform_name="s&^&$program_prefix&;$program_transform_name"
3379 # Use a double $ so make ignores it.
3380 test "$program_suffix" != NONE &&
3381 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3382 # Double any \ or $.
3383 # By default was `s,x,x', remove it if useless.
3384 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3385 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
3386
3387 # expand $ac_aux_dir to an absolute path
3388 am_aux_dir=`cd $ac_aux_dir && pwd`
3389
3390 if test x"${MISSING+set}" != xset; then
3391 case $am_aux_dir in
3392 *\ * | *\ *)
3393 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
3394 *)
3395 MISSING="\${SHELL} $am_aux_dir/missing" ;;
3396 esac
3397 fi
3398 # Use eval to expand $SHELL
3399 if eval "$MISSING --run true"; then
3400 am_missing_run="$MISSING --run "
3401 else
3402 am_missing_run=
3403 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
3404 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
3405 fi
3406
3407 if test x"${install_sh}" != xset; then
3408 case $am_aux_dir in
3409 *\ * | *\ *)
3410 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
3411 *)
3412 install_sh="\${SHELL} $am_aux_dir/install-sh"
3413 esac
3414 fi
3415
3416 # Installed binaries are usually stripped using `strip' when the user
3417 # run `make install-strip'. However `strip' might not be the right
3418 # tool to use in cross-compilation environments, therefore Automake
3419 # will honor the `STRIP' environment variable to overrule this program.
3420 if test "$cross_compiling" != no; then
3421 if test -n "$ac_tool_prefix"; then
3422 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3423 set dummy ${ac_tool_prefix}strip; ac_word=$2
3424 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3425 $as_echo_n "checking for $ac_word... " >&6; }
3426 if test "${ac_cv_prog_STRIP+set}" = set; then :
3427 $as_echo_n "(cached) " >&6
3428 else
3429 if test -n "$STRIP"; then
3430 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3431 else
3432 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3433 for as_dir in $PATH
3434 do
3435 IFS=$as_save_IFS
3436 test -z "$as_dir" && as_dir=.
3437 for ac_exec_ext in '' $ac_executable_extensions; do
3438 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3439 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3440 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3441 break 2
3442 fi
3443 done
3444 done
3445 IFS=$as_save_IFS
3446
3447 fi
3448 fi
3449 STRIP=$ac_cv_prog_STRIP
3450 if test -n "$STRIP"; then
3451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3452 $as_echo "$STRIP" >&6; }
3453 else
3454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3455 $as_echo "no" >&6; }
3456 fi
3457
3458
3459 fi
3460 if test -z "$ac_cv_prog_STRIP"; then
3461 ac_ct_STRIP=$STRIP
3462 # Extract the first word of "strip", so it can be a program name with args.
3463 set dummy strip; ac_word=$2
3464 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3465 $as_echo_n "checking for $ac_word... " >&6; }
3466 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
3467 $as_echo_n "(cached) " >&6
3468 else
3469 if test -n "$ac_ct_STRIP"; then
3470 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3471 else
3472 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3473 for as_dir in $PATH
3474 do
3475 IFS=$as_save_IFS
3476 test -z "$as_dir" && as_dir=.
3477 for ac_exec_ext in '' $ac_executable_extensions; do
3478 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3479 ac_cv_prog_ac_ct_STRIP="strip"
3480 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3481 break 2
3482 fi
3483 done
3484 done
3485 IFS=$as_save_IFS
3486
3487 fi
3488 fi
3489 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3490 if test -n "$ac_ct_STRIP"; then
3491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3492 $as_echo "$ac_ct_STRIP" >&6; }
3493 else
3494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3495 $as_echo "no" >&6; }
3496 fi
3497
3498 if test "x$ac_ct_STRIP" = x; then
3499 STRIP=":"
3500 else
3501 case $cross_compiling:$ac_tool_warned in
3502 yes:)
3503 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3504 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3505 ac_tool_warned=yes ;;
3506 esac
3507 STRIP=$ac_ct_STRIP
3508 fi
3509 else
3510 STRIP="$ac_cv_prog_STRIP"
3511 fi
3512
3513 fi
3514 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3515
3516 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
3517 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3518 if test -z "$MKDIR_P"; then
3519 if test "${ac_cv_path_mkdir+set}" = set; then :
3520 $as_echo_n "(cached) " >&6
3521 else
3522 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3523 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3524 do
3525 IFS=$as_save_IFS
3526 test -z "$as_dir" && as_dir=.
3527 for ac_prog in mkdir gmkdir; do
3528 for ac_exec_ext in '' $ac_executable_extensions; do
3529 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
3530 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3531 'mkdir (GNU coreutils) '* | \
3532 'mkdir (coreutils) '* | \
3533 'mkdir (fileutils) '4.1*)
3534 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
3535 break 3;;
3536 esac
3537 done
3538 done
3539 done
3540 IFS=$as_save_IFS
3541
3542 fi
3543
3544 if test "${ac_cv_path_mkdir+set}" = set; then
3545 MKDIR_P="$ac_cv_path_mkdir -p"
3546 else
3547 # As a last resort, use the slow shell script. Don't cache a
3548 # value for MKDIR_P within a source directory, because that will
3549 # break other packages using the cache if that directory is
3550 # removed, or if the value is a relative name.
3551 test -d ./--version && rmdir ./--version
3552 MKDIR_P="$ac_install_sh -d"
3553 fi
3554 fi
3555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3556 $as_echo "$MKDIR_P" >&6; }
3557
3558 mkdir_p="$MKDIR_P"
3559 case $mkdir_p in
3560 [\\/$]* | ?:[\\/]*) ;;
3561 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
3562 esac
3563
3564 for ac_prog in gawk mawk nawk awk
3565 do
3566 # Extract the first word of "$ac_prog", so it can be a program name with args.
3567 set dummy $ac_prog; ac_word=$2
3568 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3569 $as_echo_n "checking for $ac_word... " >&6; }
3570 if test "${ac_cv_prog_AWK+set}" = set; then :
3571 $as_echo_n "(cached) " >&6
3572 else
3573 if test -n "$AWK"; then
3574 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3575 else
3576 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3577 for as_dir in $PATH
3578 do
3579 IFS=$as_save_IFS
3580 test -z "$as_dir" && as_dir=.
3581 for ac_exec_ext in '' $ac_executable_extensions; do
3582 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3583 ac_cv_prog_AWK="$ac_prog"
3584 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3585 break 2
3586 fi
3587 done
3588 done
3589 IFS=$as_save_IFS
3590
3591 fi
3592 fi
3593 AWK=$ac_cv_prog_AWK
3594 if test -n "$AWK"; then
3595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3596 $as_echo "$AWK" >&6; }
3597 else
3598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3599 $as_echo "no" >&6; }
3600 fi
3601
3602
3603 test -n "$AWK" && break
3604 done
3605
3606 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3607 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3608 set x ${MAKE-make}
3609 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3610 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
3611 $as_echo_n "(cached) " >&6
3612 else
3613 cat >conftest.make <<\_ACEOF
3614 SHELL = /bin/sh
3615 all:
3616 @echo '@@@%%%=$(MAKE)=@@@%%%'
3617 _ACEOF
3618 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3619 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3620 *@@@%%%=?*=@@@%%%*)
3621 eval ac_cv_prog_make_${ac_make}_set=yes;;
3622 *)
3623 eval ac_cv_prog_make_${ac_make}_set=no;;
3624 esac
3625 rm -f conftest.make
3626 fi
3627 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3629 $as_echo "yes" >&6; }
3630 SET_MAKE=
3631 else
3632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3633 $as_echo "no" >&6; }
3634 SET_MAKE="MAKE=${MAKE-make}"
3635 fi
3636
3637 rm -rf .tst 2>/dev/null
3638 mkdir .tst 2>/dev/null
3639 if test -d .tst; then
3640 am__leading_dot=.
3641 else
3642 am__leading_dot=_
3643 fi
3644 rmdir .tst 2>/dev/null
3645
3646 DEPDIR="${am__leading_dot}deps"
3647
3648 ac_config_commands="$ac_config_commands depfiles"
3649
3650
3651 am_make=${MAKE-make}
3652 cat > confinc << 'END'
3653 am__doit:
3654 @echo this is the am__doit target
3655 .PHONY: am__doit
3656 END
3657 # If we don't find an include directive, just comment out the code.
3658 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3659 $as_echo_n "checking for style of include used by $am_make... " >&6; }
3660 am__include="#"
3661 am__quote=
3662 _am_result=none
3663 # First try GNU make style include.
3664 echo "include confinc" > confmf
3665 # Ignore all kinds of additional output from `make'.
3666 case `$am_make -s -f confmf 2> /dev/null` in #(
3667 *the\ am__doit\ target*)
3668 am__include=include
3669 am__quote=
3670 _am_result=GNU
3671 ;;
3672 esac
3673 # Now try BSD make style include.
3674 if test "$am__include" = "#"; then
3675 echo '.include "confinc"' > confmf
3676 case `$am_make -s -f confmf 2> /dev/null` in #(
3677 *the\ am__doit\ target*)
3678 am__include=.include
3679 am__quote="\""
3680 _am_result=BSD
3681 ;;
3682 esac
3683 fi
3684
3685
3686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3687 $as_echo "$_am_result" >&6; }
3688 rm -f confinc confmf
3689
3690 # Check whether --enable-dependency-tracking was given.
3691 if test "${enable_dependency_tracking+set}" = set; then :
3692 enableval=$enable_dependency_tracking;
3693 fi
3694
3695 if test "x$enable_dependency_tracking" != xno; then
3696 am_depcomp="$ac_aux_dir/depcomp"
3697 AMDEPBACKSLASH='\'
3698 fi
3699 if test "x$enable_dependency_tracking" != xno; then
3700 AMDEP_TRUE=
3701 AMDEP_FALSE='#'
3702 else
3703 AMDEP_TRUE='#'
3704 AMDEP_FALSE=
3705 fi
3706
3707
3708 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3709 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3710 # is not polluted with repeated "-I."
3711 am__isrc=' -I$(srcdir)'
3712 # test to see if srcdir already configured
3713 if test -f $srcdir/config.status; then
3714 as_fn_error "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3715 fi
3716 fi
3717
3718 # test whether we have cygpath
3719 if test -z "$CYGPATH_W"; then
3720 if (cygpath --version) >/dev/null 2>/dev/null; then
3721 CYGPATH_W='cygpath -w'
3722 else
3723 CYGPATH_W=echo
3724 fi
3725 fi
3726
3727
3728 # Define the identity of the package.
3729 PACKAGE='gas'
3730 VERSION='2.25.51'
3731
3732
3733 cat >>confdefs.h <<_ACEOF
3734 #define PACKAGE "$PACKAGE"
3735 _ACEOF
3736
3737
3738 cat >>confdefs.h <<_ACEOF
3739 #define VERSION "$VERSION"
3740 _ACEOF
3741
3742 # Some tools Automake needs.
3743
3744 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3745
3746
3747 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3748
3749
3750 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3751
3752
3753 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3754
3755
3756 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3757
3758 # We need awk for the "check" target. The system "awk" is bad on
3759 # some platforms.
3760 # Always define AMTAR for backward compatibility.
3761
3762 AMTAR=${AMTAR-"${am_missing_run}tar"}
3763
3764 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
3765
3766
3767
3768
3769 depcc="$CC" am_compiler_list=
3770
3771 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3772 $as_echo_n "checking dependency style of $depcc... " >&6; }
3773 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
3774 $as_echo_n "(cached) " >&6
3775 else
3776 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3777 # We make a subdir and do the tests there. Otherwise we can end up
3778 # making bogus files that we don't know about and never remove. For
3779 # instance it was reported that on HP-UX the gcc test will end up
3780 # making a dummy file named `D' -- because `-MD' means `put the output
3781 # in D'.
3782 mkdir conftest.dir
3783 # Copy depcomp to subdir because otherwise we won't find it if we're
3784 # using a relative directory.
3785 cp "$am_depcomp" conftest.dir
3786 cd conftest.dir
3787 # We will build objects and dependencies in a subdirectory because
3788 # it helps to detect inapplicable dependency modes. For instance
3789 # both Tru64's cc and ICC support -MD to output dependencies as a
3790 # side effect of compilation, but ICC will put the dependencies in
3791 # the current directory while Tru64 will put them in the object
3792 # directory.
3793 mkdir sub
3794
3795 am_cv_CC_dependencies_compiler_type=none
3796 if test "$am_compiler_list" = ""; then
3797 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3798 fi
3799 am__universal=false
3800 case " $depcc " in #(
3801 *\ -arch\ *\ -arch\ *) am__universal=true ;;
3802 esac
3803
3804 for depmode in $am_compiler_list; do
3805 # Setup a source with many dependencies, because some compilers
3806 # like to wrap large dependency lists on column 80 (with \), and
3807 # we should not choose a depcomp mode which is confused by this.
3808 #
3809 # We need to recreate these files for each test, as the compiler may
3810 # overwrite some of them when testing with obscure command lines.
3811 # This happens at least with the AIX C compiler.
3812 : > sub/conftest.c
3813 for i in 1 2 3 4 5 6; do
3814 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3815 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3816 # Solaris 8's {/usr,}/bin/sh.
3817 touch sub/conftst$i.h
3818 done
3819 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3820
3821 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3822 # mode. It turns out that the SunPro C++ compiler does not properly
3823 # handle `-M -o', and we need to detect this. Also, some Intel
3824 # versions had trouble with output in subdirs
3825 am__obj=sub/conftest.${OBJEXT-o}
3826 am__minus_obj="-o $am__obj"
3827 case $depmode in
3828 gcc)
3829 # This depmode causes a compiler race in universal mode.
3830 test "$am__universal" = false || continue
3831 ;;
3832 nosideeffect)
3833 # after this tag, mechanisms are not by side-effect, so they'll
3834 # only be used when explicitly requested
3835 if test "x$enable_dependency_tracking" = xyes; then
3836 continue
3837 else
3838 break
3839 fi
3840 ;;
3841 msvisualcpp | msvcmsys)
3842 # This compiler won't grok `-c -o', but also, the minuso test has
3843 # not run yet. These depmodes are late enough in the game, and
3844 # so weak that their functioning should not be impacted.
3845 am__obj=conftest.${OBJEXT-o}
3846 am__minus_obj=
3847 ;;
3848 none) break ;;
3849 esac
3850 if depmode=$depmode \
3851 source=sub/conftest.c object=$am__obj \
3852 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3853 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
3854 >/dev/null 2>conftest.err &&
3855 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3856 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3857 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
3858 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3859 # icc doesn't choke on unknown options, it will just issue warnings
3860 # or remarks (even with -Werror). So we grep stderr for any message
3861 # that says an option was ignored or not supported.
3862 # When given -MP, icc 7.0 and 7.1 complain thusly:
3863 # icc: Command line warning: ignoring option '-M'; no argument required
3864 # The diagnosis changed in icc 8.0:
3865 # icc: Command line remark: option '-MP' not supported
3866 if (grep 'ignoring option' conftest.err ||
3867 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3868 am_cv_CC_dependencies_compiler_type=$depmode
3869 break
3870 fi
3871 fi
3872 done
3873
3874 cd ..
3875 rm -rf conftest.dir
3876 else
3877 am_cv_CC_dependencies_compiler_type=none
3878 fi
3879
3880 fi
3881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
3882 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
3883 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3884
3885 if
3886 test "x$enable_dependency_tracking" != xno \
3887 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3888 am__fastdepCC_TRUE=
3889 am__fastdepCC_FALSE='#'
3890 else
3891 am__fastdepCC_TRUE='#'
3892 am__fastdepCC_FALSE=
3893 fi
3894
3895
3896
3897
3898 ac_ext=c
3899 ac_cpp='$CPP $CPPFLAGS'
3900 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3901 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3902 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3903 if test -n "$ac_tool_prefix"; then
3904 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3905 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3906 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3907 $as_echo_n "checking for $ac_word... " >&6; }
3908 if test "${ac_cv_prog_CC+set}" = set; then :
3909 $as_echo_n "(cached) " >&6
3910 else
3911 if test -n "$CC"; then
3912 ac_cv_prog_CC="$CC" # Let the user override the test.
3913 else
3914 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3915 for as_dir in $PATH
3916 do
3917 IFS=$as_save_IFS
3918 test -z "$as_dir" && as_dir=.
3919 for ac_exec_ext in '' $ac_executable_extensions; do
3920 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3921 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3922 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3923 break 2
3924 fi
3925 done
3926 done
3927 IFS=$as_save_IFS
3928
3929 fi
3930 fi
3931 CC=$ac_cv_prog_CC
3932 if test -n "$CC"; then
3933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3934 $as_echo "$CC" >&6; }
3935 else
3936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3937 $as_echo "no" >&6; }
3938 fi
3939
3940
3941 fi
3942 if test -z "$ac_cv_prog_CC"; then
3943 ac_ct_CC=$CC
3944 # Extract the first word of "gcc", so it can be a program name with args.
3945 set dummy gcc; ac_word=$2
3946 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3947 $as_echo_n "checking for $ac_word... " >&6; }
3948 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3949 $as_echo_n "(cached) " >&6
3950 else
3951 if test -n "$ac_ct_CC"; then
3952 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3953 else
3954 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3955 for as_dir in $PATH
3956 do
3957 IFS=$as_save_IFS
3958 test -z "$as_dir" && as_dir=.
3959 for ac_exec_ext in '' $ac_executable_extensions; do
3960 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3961 ac_cv_prog_ac_ct_CC="gcc"
3962 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3963 break 2
3964 fi
3965 done
3966 done
3967 IFS=$as_save_IFS
3968
3969 fi
3970 fi
3971 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3972 if test -n "$ac_ct_CC"; then
3973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3974 $as_echo "$ac_ct_CC" >&6; }
3975 else
3976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3977 $as_echo "no" >&6; }
3978 fi
3979
3980 if test "x$ac_ct_CC" = x; then
3981 CC=""
3982 else
3983 case $cross_compiling:$ac_tool_warned in
3984 yes:)
3985 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3986 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3987 ac_tool_warned=yes ;;
3988 esac
3989 CC=$ac_ct_CC
3990 fi
3991 else
3992 CC="$ac_cv_prog_CC"
3993 fi
3994
3995 if test -z "$CC"; then
3996 if test -n "$ac_tool_prefix"; then
3997 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3998 set dummy ${ac_tool_prefix}cc; ac_word=$2
3999 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4000 $as_echo_n "checking for $ac_word... " >&6; }
4001 if test "${ac_cv_prog_CC+set}" = set; then :
4002 $as_echo_n "(cached) " >&6
4003 else
4004 if test -n "$CC"; then
4005 ac_cv_prog_CC="$CC" # Let the user override the test.
4006 else
4007 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4008 for as_dir in $PATH
4009 do
4010 IFS=$as_save_IFS
4011 test -z "$as_dir" && as_dir=.
4012 for ac_exec_ext in '' $ac_executable_extensions; do
4013 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4014 ac_cv_prog_CC="${ac_tool_prefix}cc"
4015 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4016 break 2
4017 fi
4018 done
4019 done
4020 IFS=$as_save_IFS
4021
4022 fi
4023 fi
4024 CC=$ac_cv_prog_CC
4025 if test -n "$CC"; then
4026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4027 $as_echo "$CC" >&6; }
4028 else
4029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4030 $as_echo "no" >&6; }
4031 fi
4032
4033
4034 fi
4035 fi
4036 if test -z "$CC"; then
4037 # Extract the first word of "cc", so it can be a program name with args.
4038 set dummy cc; ac_word=$2
4039 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4040 $as_echo_n "checking for $ac_word... " >&6; }
4041 if test "${ac_cv_prog_CC+set}" = set; then :
4042 $as_echo_n "(cached) " >&6
4043 else
4044 if test -n "$CC"; then
4045 ac_cv_prog_CC="$CC" # Let the user override the test.
4046 else
4047 ac_prog_rejected=no
4048 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4049 for as_dir in $PATH
4050 do
4051 IFS=$as_save_IFS
4052 test -z "$as_dir" && as_dir=.
4053 for ac_exec_ext in '' $ac_executable_extensions; do
4054 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4055 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4056 ac_prog_rejected=yes
4057 continue
4058 fi
4059 ac_cv_prog_CC="cc"
4060 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4061 break 2
4062 fi
4063 done
4064 done
4065 IFS=$as_save_IFS
4066
4067 if test $ac_prog_rejected = yes; then
4068 # We found a bogon in the path, so make sure we never use it.
4069 set dummy $ac_cv_prog_CC
4070 shift
4071 if test $# != 0; then
4072 # We chose a different compiler from the bogus one.
4073 # However, it has the same basename, so the bogon will be chosen
4074 # first if we set CC to just the basename; use the full file name.
4075 shift
4076 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4077 fi
4078 fi
4079 fi
4080 fi
4081 CC=$ac_cv_prog_CC
4082 if test -n "$CC"; then
4083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4084 $as_echo "$CC" >&6; }
4085 else
4086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4087 $as_echo "no" >&6; }
4088 fi
4089
4090
4091 fi
4092 if test -z "$CC"; then
4093 if test -n "$ac_tool_prefix"; then
4094 for ac_prog in cl.exe
4095 do
4096 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4097 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4098 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4099 $as_echo_n "checking for $ac_word... " >&6; }
4100 if test "${ac_cv_prog_CC+set}" = set; then :
4101 $as_echo_n "(cached) " >&6
4102 else
4103 if test -n "$CC"; then
4104 ac_cv_prog_CC="$CC" # Let the user override the test.
4105 else
4106 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4107 for as_dir in $PATH
4108 do
4109 IFS=$as_save_IFS
4110 test -z "$as_dir" && as_dir=.
4111 for ac_exec_ext in '' $ac_executable_extensions; do
4112 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4113 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4114 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4115 break 2
4116 fi
4117 done
4118 done
4119 IFS=$as_save_IFS
4120
4121 fi
4122 fi
4123 CC=$ac_cv_prog_CC
4124 if test -n "$CC"; then
4125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4126 $as_echo "$CC" >&6; }
4127 else
4128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4129 $as_echo "no" >&6; }
4130 fi
4131
4132
4133 test -n "$CC" && break
4134 done
4135 fi
4136 if test -z "$CC"; then
4137 ac_ct_CC=$CC
4138 for ac_prog in cl.exe
4139 do
4140 # Extract the first word of "$ac_prog", so it can be a program name with args.
4141 set dummy $ac_prog; ac_word=$2
4142 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4143 $as_echo_n "checking for $ac_word... " >&6; }
4144 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
4145 $as_echo_n "(cached) " >&6
4146 else
4147 if test -n "$ac_ct_CC"; then
4148 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4149 else
4150 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4151 for as_dir in $PATH
4152 do
4153 IFS=$as_save_IFS
4154 test -z "$as_dir" && as_dir=.
4155 for ac_exec_ext in '' $ac_executable_extensions; do
4156 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4157 ac_cv_prog_ac_ct_CC="$ac_prog"
4158 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4159 break 2
4160 fi
4161 done
4162 done
4163 IFS=$as_save_IFS
4164
4165 fi
4166 fi
4167 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4168 if test -n "$ac_ct_CC"; then
4169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4170 $as_echo "$ac_ct_CC" >&6; }
4171 else
4172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4173 $as_echo "no" >&6; }
4174 fi
4175
4176
4177 test -n "$ac_ct_CC" && break
4178 done
4179
4180 if test "x$ac_ct_CC" = x; then
4181 CC=""
4182 else
4183 case $cross_compiling:$ac_tool_warned in
4184 yes:)
4185 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4186 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4187 ac_tool_warned=yes ;;
4188 esac
4189 CC=$ac_ct_CC
4190 fi
4191 fi
4192
4193 fi
4194
4195
4196 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4197 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4198 as_fn_error "no acceptable C compiler found in \$PATH
4199 See \`config.log' for more details." "$LINENO" 5; }
4200
4201 # Provide some information about the compiler.
4202 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4203 set X $ac_compile
4204 ac_compiler=$2
4205 for ac_option in --version -v -V -qversion; do
4206 { { ac_try="$ac_compiler $ac_option >&5"
4207 case "(($ac_try" in
4208 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4209 *) ac_try_echo=$ac_try;;
4210 esac
4211 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4212 $as_echo "$ac_try_echo"; } >&5
4213 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4214 ac_status=$?
4215 if test -s conftest.err; then
4216 sed '10a\
4217 ... rest of stderr output deleted ...
4218 10q' conftest.err >conftest.er1
4219 cat conftest.er1 >&5
4220 rm -f conftest.er1 conftest.err
4221 fi
4222 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4223 test $ac_status = 0; }
4224 done
4225
4226 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4227 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4228 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
4229 $as_echo_n "(cached) " >&6
4230 else
4231 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4232 /* end confdefs.h. */
4233
4234 int
4235 main ()
4236 {
4237 #ifndef __GNUC__
4238 choke me
4239 #endif
4240
4241 ;
4242 return 0;
4243 }
4244 _ACEOF
4245 if ac_fn_c_try_compile "$LINENO"; then :
4246 ac_compiler_gnu=yes
4247 else
4248 ac_compiler_gnu=no
4249 fi
4250 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4251 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4252
4253 fi
4254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4255 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4256 if test $ac_compiler_gnu = yes; then
4257 GCC=yes
4258 else
4259 GCC=
4260 fi
4261 ac_test_CFLAGS=${CFLAGS+set}
4262 ac_save_CFLAGS=$CFLAGS
4263 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4264 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4265 if test "${ac_cv_prog_cc_g+set}" = set; then :
4266 $as_echo_n "(cached) " >&6
4267 else
4268 ac_save_c_werror_flag=$ac_c_werror_flag
4269 ac_c_werror_flag=yes
4270 ac_cv_prog_cc_g=no
4271 CFLAGS="-g"
4272 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4273 /* end confdefs.h. */
4274
4275 int
4276 main ()
4277 {
4278
4279 ;
4280 return 0;
4281 }
4282 _ACEOF
4283 if ac_fn_c_try_compile "$LINENO"; then :
4284 ac_cv_prog_cc_g=yes
4285 else
4286 CFLAGS=""
4287 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4288 /* end confdefs.h. */
4289
4290 int
4291 main ()
4292 {
4293
4294 ;
4295 return 0;
4296 }
4297 _ACEOF
4298 if ac_fn_c_try_compile "$LINENO"; then :
4299
4300 else
4301 ac_c_werror_flag=$ac_save_c_werror_flag
4302 CFLAGS="-g"
4303 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4304 /* end confdefs.h. */
4305
4306 int
4307 main ()
4308 {
4309
4310 ;
4311 return 0;
4312 }
4313 _ACEOF
4314 if ac_fn_c_try_compile "$LINENO"; then :
4315 ac_cv_prog_cc_g=yes
4316 fi
4317 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4318 fi
4319 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4320 fi
4321 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4322 ac_c_werror_flag=$ac_save_c_werror_flag
4323 fi
4324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4325 $as_echo "$ac_cv_prog_cc_g" >&6; }
4326 if test "$ac_test_CFLAGS" = set; then
4327 CFLAGS=$ac_save_CFLAGS
4328 elif test $ac_cv_prog_cc_g = yes; then
4329 if test "$GCC" = yes; then
4330 CFLAGS="-g -O2"
4331 else
4332 CFLAGS="-g"
4333 fi
4334 else
4335 if test "$GCC" = yes; then
4336 CFLAGS="-O2"
4337 else
4338 CFLAGS=
4339 fi
4340 fi
4341 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4342 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4343 if test "${ac_cv_prog_cc_c89+set}" = set; then :
4344 $as_echo_n "(cached) " >&6
4345 else
4346 ac_cv_prog_cc_c89=no
4347 ac_save_CC=$CC
4348 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4349 /* end confdefs.h. */
4350 #include <stdarg.h>
4351 #include <stdio.h>
4352 #include <sys/types.h>
4353 #include <sys/stat.h>
4354 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4355 struct buf { int x; };
4356 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4357 static char *e (p, i)
4358 char **p;
4359 int i;
4360 {
4361 return p[i];
4362 }
4363 static char *f (char * (*g) (char **, int), char **p, ...)
4364 {
4365 char *s;
4366 va_list v;
4367 va_start (v,p);
4368 s = g (p, va_arg (v,int));
4369 va_end (v);
4370 return s;
4371 }
4372
4373 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4374 function prototypes and stuff, but not '\xHH' hex character constants.
4375 These don't provoke an error unfortunately, instead are silently treated
4376 as 'x'. The following induces an error, until -std is added to get
4377 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4378 array size at least. It's necessary to write '\x00'==0 to get something
4379 that's true only with -std. */
4380 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4381
4382 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4383 inside strings and character constants. */
4384 #define FOO(x) 'x'
4385 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4386
4387 int test (int i, double x);
4388 struct s1 {int (*f) (int a);};
4389 struct s2 {int (*f) (double a);};
4390 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4391 int argc;
4392 char **argv;
4393 int
4394 main ()
4395 {
4396 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4397 ;
4398 return 0;
4399 }
4400 _ACEOF
4401 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4402 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4403 do
4404 CC="$ac_save_CC $ac_arg"
4405 if ac_fn_c_try_compile "$LINENO"; then :
4406 ac_cv_prog_cc_c89=$ac_arg
4407 fi
4408 rm -f core conftest.err conftest.$ac_objext
4409 test "x$ac_cv_prog_cc_c89" != "xno" && break
4410 done
4411 rm -f conftest.$ac_ext
4412 CC=$ac_save_CC
4413
4414 fi
4415 # AC_CACHE_VAL
4416 case "x$ac_cv_prog_cc_c89" in
4417 x)
4418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4419 $as_echo "none needed" >&6; } ;;
4420 xno)
4421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4422 $as_echo "unsupported" >&6; } ;;
4423 *)
4424 CC="$CC $ac_cv_prog_cc_c89"
4425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4426 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4427 esac
4428 if test "x$ac_cv_prog_cc_c89" != xno; then :
4429
4430 fi
4431
4432 ac_ext=c
4433 ac_cpp='$CPP $CPPFLAGS'
4434 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4435 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4436 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4437
4438 ac_ext=c
4439 ac_cpp='$CPP $CPPFLAGS'
4440 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4441 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4442 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4443 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4444 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4445 # On Suns, sometimes $CPP names a directory.
4446 if test -n "$CPP" && test -d "$CPP"; then
4447 CPP=
4448 fi
4449 if test -z "$CPP"; then
4450 if test "${ac_cv_prog_CPP+set}" = set; then :
4451 $as_echo_n "(cached) " >&6
4452 else
4453 # Double quotes because CPP needs to be expanded
4454 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4455 do
4456 ac_preproc_ok=false
4457 for ac_c_preproc_warn_flag in '' yes
4458 do
4459 # Use a header file that comes with gcc, so configuring glibc
4460 # with a fresh cross-compiler works.
4461 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4462 # <limits.h> exists even on freestanding compilers.
4463 # On the NeXT, cc -E runs the code through the compiler's parser,
4464 # not just through cpp. "Syntax error" is here to catch this case.
4465 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4466 /* end confdefs.h. */
4467 #ifdef __STDC__
4468 # include <limits.h>
4469 #else
4470 # include <assert.h>
4471 #endif
4472 Syntax error
4473 _ACEOF
4474 if ac_fn_c_try_cpp "$LINENO"; then :
4475
4476 else
4477 # Broken: fails on valid input.
4478 continue
4479 fi
4480 rm -f conftest.err conftest.$ac_ext
4481
4482 # OK, works on sane cases. Now check whether nonexistent headers
4483 # can be detected and how.
4484 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4485 /* end confdefs.h. */
4486 #include <ac_nonexistent.h>
4487 _ACEOF
4488 if ac_fn_c_try_cpp "$LINENO"; then :
4489 # Broken: success on invalid input.
4490 continue
4491 else
4492 # Passes both tests.
4493 ac_preproc_ok=:
4494 break
4495 fi
4496 rm -f conftest.err conftest.$ac_ext
4497
4498 done
4499 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4500 rm -f conftest.err conftest.$ac_ext
4501 if $ac_preproc_ok; then :
4502 break
4503 fi
4504
4505 done
4506 ac_cv_prog_CPP=$CPP
4507
4508 fi
4509 CPP=$ac_cv_prog_CPP
4510 else
4511 ac_cv_prog_CPP=$CPP
4512 fi
4513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4514 $as_echo "$CPP" >&6; }
4515 ac_preproc_ok=false
4516 for ac_c_preproc_warn_flag in '' yes
4517 do
4518 # Use a header file that comes with gcc, so configuring glibc
4519 # with a fresh cross-compiler works.
4520 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4521 # <limits.h> exists even on freestanding compilers.
4522 # On the NeXT, cc -E runs the code through the compiler's parser,
4523 # not just through cpp. "Syntax error" is here to catch this case.
4524 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4525 /* end confdefs.h. */
4526 #ifdef __STDC__
4527 # include <limits.h>
4528 #else
4529 # include <assert.h>
4530 #endif
4531 Syntax error
4532 _ACEOF
4533 if ac_fn_c_try_cpp "$LINENO"; then :
4534
4535 else
4536 # Broken: fails on valid input.
4537 continue
4538 fi
4539 rm -f conftest.err conftest.$ac_ext
4540
4541 # OK, works on sane cases. Now check whether nonexistent headers
4542 # can be detected and how.
4543 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4544 /* end confdefs.h. */
4545 #include <ac_nonexistent.h>
4546 _ACEOF
4547 if ac_fn_c_try_cpp "$LINENO"; then :
4548 # Broken: success on invalid input.
4549 continue
4550 else
4551 # Passes both tests.
4552 ac_preproc_ok=:
4553 break
4554 fi
4555 rm -f conftest.err conftest.$ac_ext
4556
4557 done
4558 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4559 rm -f conftest.err conftest.$ac_ext
4560 if $ac_preproc_ok; then :
4561
4562 else
4563 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4564 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4565 as_fn_error "C preprocessor \"$CPP\" fails sanity check
4566 See \`config.log' for more details." "$LINENO" 5; }
4567 fi
4568
4569 ac_ext=c
4570 ac_cpp='$CPP $CPPFLAGS'
4571 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4572 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4573 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4574
4575
4576 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4577 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4578 if test "${ac_cv_path_GREP+set}" = set; then :
4579 $as_echo_n "(cached) " >&6
4580 else
4581 if test -z "$GREP"; then
4582 ac_path_GREP_found=false
4583 # Loop through the user's path and test for each of PROGNAME-LIST
4584 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4585 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4586 do
4587 IFS=$as_save_IFS
4588 test -z "$as_dir" && as_dir=.
4589 for ac_prog in grep ggrep; do
4590 for ac_exec_ext in '' $ac_executable_extensions; do
4591 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4592 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4593 # Check for GNU ac_path_GREP and select it if it is found.
4594 # Check for GNU $ac_path_GREP
4595 case `"$ac_path_GREP" --version 2>&1` in
4596 *GNU*)
4597 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4598 *)
4599 ac_count=0
4600 $as_echo_n 0123456789 >"conftest.in"
4601 while :
4602 do
4603 cat "conftest.in" "conftest.in" >"conftest.tmp"
4604 mv "conftest.tmp" "conftest.in"
4605 cp "conftest.in" "conftest.nl"
4606 $as_echo 'GREP' >> "conftest.nl"
4607 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4608 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4609 as_fn_arith $ac_count + 1 && ac_count=$as_val
4610 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4611 # Best one so far, save it but keep looking for a better one
4612 ac_cv_path_GREP="$ac_path_GREP"
4613 ac_path_GREP_max=$ac_count
4614 fi
4615 # 10*(2^10) chars as input seems more than enough
4616 test $ac_count -gt 10 && break
4617 done
4618 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4619 esac
4620
4621 $ac_path_GREP_found && break 3
4622 done
4623 done
4624 done
4625 IFS=$as_save_IFS
4626 if test -z "$ac_cv_path_GREP"; then
4627 as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4628 fi
4629 else
4630 ac_cv_path_GREP=$GREP
4631 fi
4632
4633 fi
4634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4635 $as_echo "$ac_cv_path_GREP" >&6; }
4636 GREP="$ac_cv_path_GREP"
4637
4638
4639 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4640 $as_echo_n "checking for egrep... " >&6; }
4641 if test "${ac_cv_path_EGREP+set}" = set; then :
4642 $as_echo_n "(cached) " >&6
4643 else
4644 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4645 then ac_cv_path_EGREP="$GREP -E"
4646 else
4647 if test -z "$EGREP"; then
4648 ac_path_EGREP_found=false
4649 # Loop through the user's path and test for each of PROGNAME-LIST
4650 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4651 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4652 do
4653 IFS=$as_save_IFS
4654 test -z "$as_dir" && as_dir=.
4655 for ac_prog in egrep; do
4656 for ac_exec_ext in '' $ac_executable_extensions; do
4657 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4658 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4659 # Check for GNU ac_path_EGREP and select it if it is found.
4660 # Check for GNU $ac_path_EGREP
4661 case `"$ac_path_EGREP" --version 2>&1` in
4662 *GNU*)
4663 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4664 *)
4665 ac_count=0
4666 $as_echo_n 0123456789 >"conftest.in"
4667 while :
4668 do
4669 cat "conftest.in" "conftest.in" >"conftest.tmp"
4670 mv "conftest.tmp" "conftest.in"
4671 cp "conftest.in" "conftest.nl"
4672 $as_echo 'EGREP' >> "conftest.nl"
4673 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4674 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4675 as_fn_arith $ac_count + 1 && ac_count=$as_val
4676 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4677 # Best one so far, save it but keep looking for a better one
4678 ac_cv_path_EGREP="$ac_path_EGREP"
4679 ac_path_EGREP_max=$ac_count
4680 fi
4681 # 10*(2^10) chars as input seems more than enough
4682 test $ac_count -gt 10 && break
4683 done
4684 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4685 esac
4686
4687 $ac_path_EGREP_found && break 3
4688 done
4689 done
4690 done
4691 IFS=$as_save_IFS
4692 if test -z "$ac_cv_path_EGREP"; then
4693 as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4694 fi
4695 else
4696 ac_cv_path_EGREP=$EGREP
4697 fi
4698
4699 fi
4700 fi
4701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4702 $as_echo "$ac_cv_path_EGREP" >&6; }
4703 EGREP="$ac_cv_path_EGREP"
4704
4705
4706 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4707 $as_echo_n "checking for ANSI C header files... " >&6; }
4708 if test "${ac_cv_header_stdc+set}" = set; then :
4709 $as_echo_n "(cached) " >&6
4710 else
4711 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4712 /* end confdefs.h. */
4713 #include <stdlib.h>
4714 #include <stdarg.h>
4715 #include <string.h>
4716 #include <float.h>
4717
4718 int
4719 main ()
4720 {
4721
4722 ;
4723 return 0;
4724 }
4725 _ACEOF
4726 if ac_fn_c_try_compile "$LINENO"; then :
4727 ac_cv_header_stdc=yes
4728 else
4729 ac_cv_header_stdc=no
4730 fi
4731 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4732
4733 if test $ac_cv_header_stdc = yes; then
4734 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4735 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4736 /* end confdefs.h. */
4737 #include <string.h>
4738
4739 _ACEOF
4740 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4741 $EGREP "memchr" >/dev/null 2>&1; then :
4742
4743 else
4744 ac_cv_header_stdc=no
4745 fi
4746 rm -f conftest*
4747
4748 fi
4749
4750 if test $ac_cv_header_stdc = yes; then
4751 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4752 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4753 /* end confdefs.h. */
4754 #include <stdlib.h>
4755
4756 _ACEOF
4757 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4758 $EGREP "free" >/dev/null 2>&1; then :
4759
4760 else
4761 ac_cv_header_stdc=no
4762 fi
4763 rm -f conftest*
4764
4765 fi
4766
4767 if test $ac_cv_header_stdc = yes; then
4768 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4769 if test "$cross_compiling" = yes; then :
4770 :
4771 else
4772 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4773 /* end confdefs.h. */
4774 #include <ctype.h>
4775 #include <stdlib.h>
4776 #if ((' ' & 0x0FF) == 0x020)
4777 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4778 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4779 #else
4780 # define ISLOWER(c) \
4781 (('a' <= (c) && (c) <= 'i') \
4782 || ('j' <= (c) && (c) <= 'r') \
4783 || ('s' <= (c) && (c) <= 'z'))
4784 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4785 #endif
4786
4787 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4788 int
4789 main ()
4790 {
4791 int i;
4792 for (i = 0; i < 256; i++)
4793 if (XOR (islower (i), ISLOWER (i))
4794 || toupper (i) != TOUPPER (i))
4795 return 2;
4796 return 0;
4797 }
4798 _ACEOF
4799 if ac_fn_c_try_run "$LINENO"; then :
4800
4801 else
4802 ac_cv_header_stdc=no
4803 fi
4804 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4805 conftest.$ac_objext conftest.beam conftest.$ac_ext
4806 fi
4807
4808 fi
4809 fi
4810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4811 $as_echo "$ac_cv_header_stdc" >&6; }
4812 if test $ac_cv_header_stdc = yes; then
4813
4814 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
4815
4816 fi
4817
4818 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4819 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4820 inttypes.h stdint.h unistd.h
4821 do :
4822 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4823 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4824 "
4825 eval as_val=\$$as_ac_Header
4826 if test "x$as_val" = x""yes; then :
4827 cat >>confdefs.h <<_ACEOF
4828 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4829 _ACEOF
4830
4831 fi
4832
4833 done
4834
4835
4836
4837 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
4838 if test "x$ac_cv_header_minix_config_h" = x""yes; then :
4839 MINIX=yes
4840 else
4841 MINIX=
4842 fi
4843
4844
4845 if test "$MINIX" = yes; then
4846
4847 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
4848
4849
4850 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
4851
4852
4853 $as_echo "#define _MINIX 1" >>confdefs.h
4854
4855 fi
4856
4857
4858 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
4859 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
4860 if test "${ac_cv_safe_to_define___extensions__+set}" = set; then :
4861 $as_echo_n "(cached) " >&6
4862 else
4863 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4864 /* end confdefs.h. */
4865
4866 # define __EXTENSIONS__ 1
4867 $ac_includes_default
4868 int
4869 main ()
4870 {
4871
4872 ;
4873 return 0;
4874 }
4875 _ACEOF
4876 if ac_fn_c_try_compile "$LINENO"; then :
4877 ac_cv_safe_to_define___extensions__=yes
4878 else
4879 ac_cv_safe_to_define___extensions__=no
4880 fi
4881 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4882 fi
4883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
4884 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
4885 test $ac_cv_safe_to_define___extensions__ = yes &&
4886 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
4887
4888 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
4889
4890 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
4891
4892 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
4893
4894 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
4895
4896
4897
4898
4899
4900 case `pwd` in
4901 *\ * | *\ *)
4902 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
4903 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
4904 esac
4905
4906
4907
4908 macro_version='2.2.7a'
4909 macro_revision='1.3134'
4910
4911
4912
4913
4914
4915
4916
4917
4918
4919
4920
4921
4922
4923 ltmain="$ac_aux_dir/ltmain.sh"
4924
4925 # Backslashify metacharacters that are still active within
4926 # double-quoted strings.
4927 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
4928
4929 # Same as above, but do not quote variable references.
4930 double_quote_subst='s/\(["`\\]\)/\\\1/g'
4931
4932 # Sed substitution to delay expansion of an escaped shell variable in a
4933 # double_quote_subst'ed string.
4934 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
4935
4936 # Sed substitution to delay expansion of an escaped single quote.
4937 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
4938
4939 # Sed substitution to avoid accidental globbing in evaled expressions
4940 no_glob_subst='s/\*/\\\*/g'
4941
4942 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
4943 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
4944 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
4945
4946 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
4947 $as_echo_n "checking how to print strings... " >&6; }
4948 # Test print first, because it will be a builtin if present.
4949 if test "X`print -r -- -n 2>/dev/null`" = X-n && \
4950 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
4951 ECHO='print -r --'
4952 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
4953 ECHO='printf %s\n'
4954 else
4955 # Use this function as a fallback that always works.
4956 func_fallback_echo ()
4957 {
4958 eval 'cat <<_LTECHO_EOF
4959 $1
4960 _LTECHO_EOF'
4961 }
4962 ECHO='func_fallback_echo'
4963 fi
4964
4965 # func_echo_all arg...
4966 # Invoke $ECHO with all args, space-separated.
4967 func_echo_all ()
4968 {
4969 $ECHO ""
4970 }
4971
4972 case "$ECHO" in
4973 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
4974 $as_echo "printf" >&6; } ;;
4975 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
4976 $as_echo "print -r" >&6; } ;;
4977 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
4978 $as_echo "cat" >&6; } ;;
4979 esac
4980
4981
4982
4983
4984
4985
4986
4987
4988
4989
4990
4991
4992
4993
4994 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4995 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
4996 if test "${ac_cv_path_SED+set}" = set; then :
4997 $as_echo_n "(cached) " >&6
4998 else
4999 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
5000 for ac_i in 1 2 3 4 5 6 7; do
5001 ac_script="$ac_script$as_nl$ac_script"
5002 done
5003 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
5004 { ac_script=; unset ac_script;}
5005 if test -z "$SED"; then
5006 ac_path_SED_found=false
5007 # Loop through the user's path and test for each of PROGNAME-LIST
5008 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5009 for as_dir in $PATH
5010 do
5011 IFS=$as_save_IFS
5012 test -z "$as_dir" && as_dir=.
5013 for ac_prog in sed gsed; do
5014 for ac_exec_ext in '' $ac_executable_extensions; do
5015 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
5016 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
5017 # Check for GNU ac_path_SED and select it if it is found.
5018 # Check for GNU $ac_path_SED
5019 case `"$ac_path_SED" --version 2>&1` in
5020 *GNU*)
5021 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
5022 *)
5023 ac_count=0
5024 $as_echo_n 0123456789 >"conftest.in"
5025 while :
5026 do
5027 cat "conftest.in" "conftest.in" >"conftest.tmp"
5028 mv "conftest.tmp" "conftest.in"
5029 cp "conftest.in" "conftest.nl"
5030 $as_echo '' >> "conftest.nl"
5031 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
5032 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5033 as_fn_arith $ac_count + 1 && ac_count=$as_val
5034 if test $ac_count -gt ${ac_path_SED_max-0}; then
5035 # Best one so far, save it but keep looking for a better one
5036 ac_cv_path_SED="$ac_path_SED"
5037 ac_path_SED_max=$ac_count
5038 fi
5039 # 10*(2^10) chars as input seems more than enough
5040 test $ac_count -gt 10 && break
5041 done
5042 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5043 esac
5044
5045 $ac_path_SED_found && break 3
5046 done
5047 done
5048 done
5049 IFS=$as_save_IFS
5050 if test -z "$ac_cv_path_SED"; then
5051 as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
5052 fi
5053 else
5054 ac_cv_path_SED=$SED
5055 fi
5056
5057 fi
5058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
5059 $as_echo "$ac_cv_path_SED" >&6; }
5060 SED="$ac_cv_path_SED"
5061 rm -f conftest.sed
5062
5063 test -z "$SED" && SED=sed
5064 Xsed="$SED -e 1s/^X//"
5065
5066
5067
5068
5069
5070
5071
5072
5073
5074
5075
5076 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
5077 $as_echo_n "checking for fgrep... " >&6; }
5078 if test "${ac_cv_path_FGREP+set}" = set; then :
5079 $as_echo_n "(cached) " >&6
5080 else
5081 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
5082 then ac_cv_path_FGREP="$GREP -F"
5083 else
5084 if test -z "$FGREP"; then
5085 ac_path_FGREP_found=false
5086 # Loop through the user's path and test for each of PROGNAME-LIST
5087 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5088 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5089 do
5090 IFS=$as_save_IFS
5091 test -z "$as_dir" && as_dir=.
5092 for ac_prog in fgrep; do
5093 for ac_exec_ext in '' $ac_executable_extensions; do
5094 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
5095 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
5096 # Check for GNU ac_path_FGREP and select it if it is found.
5097 # Check for GNU $ac_path_FGREP
5098 case `"$ac_path_FGREP" --version 2>&1` in
5099 *GNU*)
5100 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
5101 *)
5102 ac_count=0
5103 $as_echo_n 0123456789 >"conftest.in"
5104 while :
5105 do
5106 cat "conftest.in" "conftest.in" >"conftest.tmp"
5107 mv "conftest.tmp" "conftest.in"
5108 cp "conftest.in" "conftest.nl"
5109 $as_echo 'FGREP' >> "conftest.nl"
5110 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
5111 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5112 as_fn_arith $ac_count + 1 && ac_count=$as_val
5113 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5114 # Best one so far, save it but keep looking for a better one
5115 ac_cv_path_FGREP="$ac_path_FGREP"
5116 ac_path_FGREP_max=$ac_count
5117 fi
5118 # 10*(2^10) chars as input seems more than enough
5119 test $ac_count -gt 10 && break
5120 done
5121 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5122 esac
5123
5124 $ac_path_FGREP_found && break 3
5125 done
5126 done
5127 done
5128 IFS=$as_save_IFS
5129 if test -z "$ac_cv_path_FGREP"; then
5130 as_fn_error "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5131 fi
5132 else
5133 ac_cv_path_FGREP=$FGREP
5134 fi
5135
5136 fi
5137 fi
5138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
5139 $as_echo "$ac_cv_path_FGREP" >&6; }
5140 FGREP="$ac_cv_path_FGREP"
5141
5142
5143 test -z "$GREP" && GREP=grep
5144
5145
5146
5147
5148
5149
5150
5151
5152
5153
5154
5155
5156
5157
5158
5159
5160
5161
5162
5163 # Check whether --with-gnu-ld was given.
5164 if test "${with_gnu_ld+set}" = set; then :
5165 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
5166 else
5167 with_gnu_ld=no
5168 fi
5169
5170 ac_prog=ld
5171 if test "$GCC" = yes; then
5172 # Check if gcc -print-prog-name=ld gives a path.
5173 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5174 $as_echo_n "checking for ld used by $CC... " >&6; }
5175 case $host in
5176 *-*-mingw*)
5177 # gcc leaves a trailing carriage return which upsets mingw
5178 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5179 *)
5180 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5181 esac
5182 case $ac_prog in
5183 # Accept absolute paths.
5184 [\\/]* | ?:[\\/]*)
5185 re_direlt='/[^/][^/]*/\.\./'
5186 # Canonicalize the pathname of ld
5187 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5188 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5189 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5190 done
5191 test -z "$LD" && LD="$ac_prog"
5192 ;;
5193 "")
5194 # If it fails, then pretend we aren't using GCC.
5195 ac_prog=ld
5196 ;;
5197 *)
5198 # If it is relative, then search for the first ld in PATH.
5199 with_gnu_ld=unknown
5200 ;;
5201 esac
5202 elif test "$with_gnu_ld" = yes; then
5203 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5204 $as_echo_n "checking for GNU ld... " >&6; }
5205 else
5206 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5207 $as_echo_n "checking for non-GNU ld... " >&6; }
5208 fi
5209 if test "${lt_cv_path_LD+set}" = set; then :
5210 $as_echo_n "(cached) " >&6
5211 else
5212 if test -z "$LD"; then
5213 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5214 for ac_dir in $PATH; do
5215 IFS="$lt_save_ifs"
5216 test -z "$ac_dir" && ac_dir=.
5217 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5218 lt_cv_path_LD="$ac_dir/$ac_prog"
5219 # Check to see if the program is GNU ld. I'd rather use --version,
5220 # but apparently some variants of GNU ld only accept -v.
5221 # Break only if it was the GNU/non-GNU ld that we prefer.
5222 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5223 *GNU* | *'with BFD'*)
5224 test "$with_gnu_ld" != no && break
5225 ;;
5226 *)
5227 test "$with_gnu_ld" != yes && break
5228 ;;
5229 esac
5230 fi
5231 done
5232 IFS="$lt_save_ifs"
5233 else
5234 lt_cv_path_LD="$LD" # Let the user override the test with a path.
5235 fi
5236 fi
5237
5238 LD="$lt_cv_path_LD"
5239 if test -n "$LD"; then
5240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5241 $as_echo "$LD" >&6; }
5242 else
5243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5244 $as_echo "no" >&6; }
5245 fi
5246 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
5247 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5248 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
5249 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
5250 $as_echo_n "(cached) " >&6
5251 else
5252 # I'd rather use --version here, but apparently some GNU lds only accept -v.
5253 case `$LD -v 2>&1 </dev/null` in
5254 *GNU* | *'with BFD'*)
5255 lt_cv_prog_gnu_ld=yes
5256 ;;
5257 *)
5258 lt_cv_prog_gnu_ld=no
5259 ;;
5260 esac
5261 fi
5262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5263 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
5264 with_gnu_ld=$lt_cv_prog_gnu_ld
5265
5266
5267
5268
5269
5270
5271
5272
5273
5274 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5275 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5276 if test "${lt_cv_path_NM+set}" = set; then :
5277 $as_echo_n "(cached) " >&6
5278 else
5279 if test -n "$NM"; then
5280 # Let the user override the test.
5281 lt_cv_path_NM="$NM"
5282 else
5283 lt_nm_to_check="${ac_tool_prefix}nm"
5284 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5285 lt_nm_to_check="$lt_nm_to_check nm"
5286 fi
5287 for lt_tmp_nm in $lt_nm_to_check; do
5288 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5289 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5290 IFS="$lt_save_ifs"
5291 test -z "$ac_dir" && ac_dir=.
5292 tmp_nm="$ac_dir/$lt_tmp_nm"
5293 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5294 # Check to see if the nm accepts a BSD-compat flag.
5295 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5296 # nm: unknown option "B" ignored
5297 # Tru64's nm complains that /dev/null is an invalid object file
5298 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5299 */dev/null* | *'Invalid file or object type'*)
5300 lt_cv_path_NM="$tmp_nm -B"
5301 break
5302 ;;
5303 *)
5304 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5305 */dev/null*)
5306 lt_cv_path_NM="$tmp_nm -p"
5307 break
5308 ;;
5309 *)
5310 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5311 continue # so that we can try to find one that supports BSD flags
5312 ;;
5313 esac
5314 ;;
5315 esac
5316 fi
5317 done
5318 IFS="$lt_save_ifs"
5319 done
5320 : ${lt_cv_path_NM=no}
5321 fi
5322 fi
5323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5324 $as_echo "$lt_cv_path_NM" >&6; }
5325 if test "$lt_cv_path_NM" != "no"; then
5326 NM="$lt_cv_path_NM"
5327 else
5328 # Didn't find any BSD compatible name lister, look for dumpbin.
5329 if test -n "$DUMPBIN"; then :
5330 # Let the user override the test.
5331 else
5332 if test -n "$ac_tool_prefix"; then
5333 for ac_prog in dumpbin "link -dump"
5334 do
5335 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5336 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5337 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5338 $as_echo_n "checking for $ac_word... " >&6; }
5339 if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
5340 $as_echo_n "(cached) " >&6
5341 else
5342 if test -n "$DUMPBIN"; then
5343 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5344 else
5345 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5346 for as_dir in $PATH
5347 do
5348 IFS=$as_save_IFS
5349 test -z "$as_dir" && as_dir=.
5350 for ac_exec_ext in '' $ac_executable_extensions; do
5351 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5352 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5353 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5354 break 2
5355 fi
5356 done
5357 done
5358 IFS=$as_save_IFS
5359
5360 fi
5361 fi
5362 DUMPBIN=$ac_cv_prog_DUMPBIN
5363 if test -n "$DUMPBIN"; then
5364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5365 $as_echo "$DUMPBIN" >&6; }
5366 else
5367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5368 $as_echo "no" >&6; }
5369 fi
5370
5371
5372 test -n "$DUMPBIN" && break
5373 done
5374 fi
5375 if test -z "$DUMPBIN"; then
5376 ac_ct_DUMPBIN=$DUMPBIN
5377 for ac_prog in dumpbin "link -dump"
5378 do
5379 # Extract the first word of "$ac_prog", so it can be a program name with args.
5380 set dummy $ac_prog; ac_word=$2
5381 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5382 $as_echo_n "checking for $ac_word... " >&6; }
5383 if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
5384 $as_echo_n "(cached) " >&6
5385 else
5386 if test -n "$ac_ct_DUMPBIN"; then
5387 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5388 else
5389 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5390 for as_dir in $PATH
5391 do
5392 IFS=$as_save_IFS
5393 test -z "$as_dir" && as_dir=.
5394 for ac_exec_ext in '' $ac_executable_extensions; do
5395 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5396 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5397 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5398 break 2
5399 fi
5400 done
5401 done
5402 IFS=$as_save_IFS
5403
5404 fi
5405 fi
5406 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5407 if test -n "$ac_ct_DUMPBIN"; then
5408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5409 $as_echo "$ac_ct_DUMPBIN" >&6; }
5410 else
5411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5412 $as_echo "no" >&6; }
5413 fi
5414
5415
5416 test -n "$ac_ct_DUMPBIN" && break
5417 done
5418
5419 if test "x$ac_ct_DUMPBIN" = x; then
5420 DUMPBIN=":"
5421 else
5422 case $cross_compiling:$ac_tool_warned in
5423 yes:)
5424 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5425 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5426 ac_tool_warned=yes ;;
5427 esac
5428 DUMPBIN=$ac_ct_DUMPBIN
5429 fi
5430 fi
5431
5432 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
5433 *COFF*)
5434 DUMPBIN="$DUMPBIN -symbols"
5435 ;;
5436 *)
5437 DUMPBIN=:
5438 ;;
5439 esac
5440 fi
5441
5442 if test "$DUMPBIN" != ":"; then
5443 NM="$DUMPBIN"
5444 fi
5445 fi
5446 test -z "$NM" && NM=nm
5447
5448
5449
5450
5451
5452
5453 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5454 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
5455 if test "${lt_cv_nm_interface+set}" = set; then :
5456 $as_echo_n "(cached) " >&6
5457 else
5458 lt_cv_nm_interface="BSD nm"
5459 echo "int some_variable = 0;" > conftest.$ac_ext
5460 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
5461 (eval "$ac_compile" 2>conftest.err)
5462 cat conftest.err >&5
5463 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5464 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5465 cat conftest.err >&5
5466 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
5467 cat conftest.out >&5
5468 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5469 lt_cv_nm_interface="MS dumpbin"
5470 fi
5471 rm -f conftest*
5472 fi
5473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5474 $as_echo "$lt_cv_nm_interface" >&6; }
5475
5476 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5477 $as_echo_n "checking whether ln -s works... " >&6; }
5478 LN_S=$as_ln_s
5479 if test "$LN_S" = "ln -s"; then
5480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5481 $as_echo "yes" >&6; }
5482 else
5483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5484 $as_echo "no, using $LN_S" >&6; }
5485 fi
5486
5487 # find the maximum length of command line arguments
5488 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5489 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
5490 if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
5491 $as_echo_n "(cached) " >&6
5492 else
5493 i=0
5494 teststring="ABCD"
5495
5496 case $build_os in
5497 msdosdjgpp*)
5498 # On DJGPP, this test can blow up pretty badly due to problems in libc
5499 # (any single argument exceeding 2000 bytes causes a buffer overrun
5500 # during glob expansion). Even if it were fixed, the result of this
5501 # check would be larger than it should be.
5502 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5503 ;;
5504
5505 gnu*)
5506 # Under GNU Hurd, this test is not required because there is
5507 # no limit to the length of command line arguments.
5508 # Libtool will interpret -1 as no limit whatsoever
5509 lt_cv_sys_max_cmd_len=-1;
5510 ;;
5511
5512 cygwin* | mingw* | cegcc*)
5513 # On Win9x/ME, this test blows up -- it succeeds, but takes
5514 # about 5 minutes as the teststring grows exponentially.
5515 # Worse, since 9x/ME are not pre-emptively multitasking,
5516 # you end up with a "frozen" computer, even though with patience
5517 # the test eventually succeeds (with a max line length of 256k).
5518 # Instead, let's just punt: use the minimum linelength reported by
5519 # all of the supported platforms: 8192 (on NT/2K/XP).
5520 lt_cv_sys_max_cmd_len=8192;
5521 ;;
5522
5523 mint*)
5524 # On MiNT this can take a long time and run out of memory.
5525 lt_cv_sys_max_cmd_len=8192;
5526 ;;
5527
5528 amigaos*)
5529 # On AmigaOS with pdksh, this test takes hours, literally.
5530 # So we just punt and use a minimum line length of 8192.
5531 lt_cv_sys_max_cmd_len=8192;
5532 ;;
5533
5534 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5535 # This has been around since 386BSD, at least. Likely further.
5536 if test -x /sbin/sysctl; then
5537 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5538 elif test -x /usr/sbin/sysctl; then
5539 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5540 else
5541 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
5542 fi
5543 # And add a safety zone
5544 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5545 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5546 ;;
5547
5548 interix*)
5549 # We know the value 262144 and hardcode it with a safety zone (like BSD)
5550 lt_cv_sys_max_cmd_len=196608
5551 ;;
5552
5553 osf*)
5554 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5555 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5556 # nice to cause kernel panics so lets avoid the loop below.
5557 # First set a reasonable default.
5558 lt_cv_sys_max_cmd_len=16384
5559 #
5560 if test -x /sbin/sysconfig; then
5561 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5562 *1*) lt_cv_sys_max_cmd_len=-1 ;;
5563 esac
5564 fi
5565 ;;
5566 sco3.2v5*)
5567 lt_cv_sys_max_cmd_len=102400
5568 ;;
5569 sysv5* | sco5v6* | sysv4.2uw2*)
5570 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5571 if test -n "$kargmax"; then
5572 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
5573 else
5574 lt_cv_sys_max_cmd_len=32768
5575 fi
5576 ;;
5577 *)
5578 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5579 if test -n "$lt_cv_sys_max_cmd_len"; then
5580 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5581 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5582 else
5583 # Make teststring a little bigger before we do anything with it.
5584 # a 1K string should be a reasonable start.
5585 for i in 1 2 3 4 5 6 7 8 ; do
5586 teststring=$teststring$teststring
5587 done
5588 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5589 # If test is not a shell built-in, we'll probably end up computing a
5590 # maximum length that is only half of the actual maximum length, but
5591 # we can't tell.
5592 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
5593 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
5594 test $i != 17 # 1/2 MB should be enough
5595 do
5596 i=`expr $i + 1`
5597 teststring=$teststring$teststring
5598 done
5599 # Only check the string length outside the loop.
5600 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5601 teststring=
5602 # Add a significant safety factor because C++ compilers can tack on
5603 # massive amounts of additional arguments before passing them to the
5604 # linker. It appears as though 1/2 is a usable value.
5605 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5606 fi
5607 ;;
5608 esac
5609
5610 fi
5611
5612 if test -n $lt_cv_sys_max_cmd_len ; then
5613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5614 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
5615 else
5616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
5617 $as_echo "none" >&6; }
5618 fi
5619 max_cmd_len=$lt_cv_sys_max_cmd_len
5620
5621
5622
5623
5624
5625
5626 : ${CP="cp -f"}
5627 : ${MV="mv -f"}
5628 : ${RM="rm -f"}
5629
5630 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
5631 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
5632 # Try some XSI features
5633 xsi_shell=no
5634 ( _lt_dummy="a/b/c"
5635 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
5636 = c,a/b,, \
5637 && eval 'test $(( 1 + 1 )) -eq 2 \
5638 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
5639 && xsi_shell=yes
5640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
5641 $as_echo "$xsi_shell" >&6; }
5642
5643
5644 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
5645 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
5646 lt_shell_append=no
5647 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
5648 >/dev/null 2>&1 \
5649 && lt_shell_append=yes
5650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
5651 $as_echo "$lt_shell_append" >&6; }
5652
5653
5654 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5655 lt_unset=unset
5656 else
5657 lt_unset=false
5658 fi
5659
5660
5661
5662
5663
5664 # test EBCDIC or ASCII
5665 case `echo X|tr X '\101'` in
5666 A) # ASCII based system
5667 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5668 lt_SP2NL='tr \040 \012'
5669 lt_NL2SP='tr \015\012 \040\040'
5670 ;;
5671 *) # EBCDIC based system
5672 lt_SP2NL='tr \100 \n'
5673 lt_NL2SP='tr \r\n \100\100'
5674 ;;
5675 esac
5676
5677
5678
5679
5680
5681
5682
5683
5684
5685 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5686 $as_echo_n "checking for $LD option to reload object files... " >&6; }
5687 if test "${lt_cv_ld_reload_flag+set}" = set; then :
5688 $as_echo_n "(cached) " >&6
5689 else
5690 lt_cv_ld_reload_flag='-r'
5691 fi
5692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5693 $as_echo "$lt_cv_ld_reload_flag" >&6; }
5694 reload_flag=$lt_cv_ld_reload_flag
5695 case $reload_flag in
5696 "" | " "*) ;;
5697 *) reload_flag=" $reload_flag" ;;
5698 esac
5699 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5700 case $host_os in
5701 darwin*)
5702 if test "$GCC" = yes; then
5703 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5704 else
5705 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5706 fi
5707 ;;
5708 esac
5709
5710
5711
5712
5713
5714
5715
5716
5717
5718 if test -n "$ac_tool_prefix"; then
5719 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5720 set dummy ${ac_tool_prefix}objdump; ac_word=$2
5721 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5722 $as_echo_n "checking for $ac_word... " >&6; }
5723 if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
5724 $as_echo_n "(cached) " >&6
5725 else
5726 if test -n "$OBJDUMP"; then
5727 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5728 else
5729 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5730 for as_dir in $PATH
5731 do
5732 IFS=$as_save_IFS
5733 test -z "$as_dir" && as_dir=.
5734 for ac_exec_ext in '' $ac_executable_extensions; do
5735 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5736 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5737 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5738 break 2
5739 fi
5740 done
5741 done
5742 IFS=$as_save_IFS
5743
5744 fi
5745 fi
5746 OBJDUMP=$ac_cv_prog_OBJDUMP
5747 if test -n "$OBJDUMP"; then
5748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5749 $as_echo "$OBJDUMP" >&6; }
5750 else
5751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5752 $as_echo "no" >&6; }
5753 fi
5754
5755
5756 fi
5757 if test -z "$ac_cv_prog_OBJDUMP"; then
5758 ac_ct_OBJDUMP=$OBJDUMP
5759 # Extract the first word of "objdump", so it can be a program name with args.
5760 set dummy objdump; ac_word=$2
5761 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5762 $as_echo_n "checking for $ac_word... " >&6; }
5763 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
5764 $as_echo_n "(cached) " >&6
5765 else
5766 if test -n "$ac_ct_OBJDUMP"; then
5767 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5768 else
5769 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5770 for as_dir in $PATH
5771 do
5772 IFS=$as_save_IFS
5773 test -z "$as_dir" && as_dir=.
5774 for ac_exec_ext in '' $ac_executable_extensions; do
5775 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5776 ac_cv_prog_ac_ct_OBJDUMP="objdump"
5777 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5778 break 2
5779 fi
5780 done
5781 done
5782 IFS=$as_save_IFS
5783
5784 fi
5785 fi
5786 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5787 if test -n "$ac_ct_OBJDUMP"; then
5788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5789 $as_echo "$ac_ct_OBJDUMP" >&6; }
5790 else
5791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5792 $as_echo "no" >&6; }
5793 fi
5794
5795 if test "x$ac_ct_OBJDUMP" = x; then
5796 OBJDUMP="false"
5797 else
5798 case $cross_compiling:$ac_tool_warned in
5799 yes:)
5800 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5801 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5802 ac_tool_warned=yes ;;
5803 esac
5804 OBJDUMP=$ac_ct_OBJDUMP
5805 fi
5806 else
5807 OBJDUMP="$ac_cv_prog_OBJDUMP"
5808 fi
5809
5810 test -z "$OBJDUMP" && OBJDUMP=objdump
5811
5812
5813
5814
5815
5816
5817
5818
5819
5820 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5821 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
5822 if test "${lt_cv_deplibs_check_method+set}" = set; then :
5823 $as_echo_n "(cached) " >&6
5824 else
5825 lt_cv_file_magic_cmd='$MAGIC_CMD'
5826 lt_cv_file_magic_test_file=
5827 lt_cv_deplibs_check_method='unknown'
5828 # Need to set the preceding variable on all platforms that support
5829 # interlibrary dependencies.
5830 # 'none' -- dependencies not supported.
5831 # `unknown' -- same as none, but documents that we really don't know.
5832 # 'pass_all' -- all dependencies passed with no checks.
5833 # 'test_compile' -- check by making test program.
5834 # 'file_magic [[regex]]' -- check by looking for files in library path
5835 # which responds to the $file_magic_cmd with a given extended regex.
5836 # If you have `file' or equivalent on your system and you're not sure
5837 # whether `pass_all' will *always* work, you probably want this one.
5838
5839 case $host_os in
5840 aix[4-9]*)
5841 lt_cv_deplibs_check_method=pass_all
5842 ;;
5843
5844 beos*)
5845 lt_cv_deplibs_check_method=pass_all
5846 ;;
5847
5848 bsdi[45]*)
5849 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5850 lt_cv_file_magic_cmd='/usr/bin/file -L'
5851 lt_cv_file_magic_test_file=/shlib/libc.so
5852 ;;
5853
5854 cygwin*)
5855 # func_win32_libid is a shell function defined in ltmain.sh
5856 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5857 lt_cv_file_magic_cmd='func_win32_libid'
5858 ;;
5859
5860 mingw* | pw32*)
5861 # Base MSYS/MinGW do not provide the 'file' command needed by
5862 # func_win32_libid shell function, so use a weaker test based on 'objdump',
5863 # unless we find 'file', for example because we are cross-compiling.
5864 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
5865 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
5866 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5867 lt_cv_file_magic_cmd='func_win32_libid'
5868 else
5869 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
5870 lt_cv_file_magic_cmd='$OBJDUMP -f'
5871 fi
5872 ;;
5873
5874 cegcc*)
5875 # use the weaker test based on 'objdump'. See mingw*.
5876 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5877 lt_cv_file_magic_cmd='$OBJDUMP -f'
5878 ;;
5879
5880 darwin* | rhapsody*)
5881 lt_cv_deplibs_check_method=pass_all
5882 ;;
5883
5884 freebsd* | dragonfly*)
5885 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5886 case $host_cpu in
5887 i*86 )
5888 # Not sure whether the presence of OpenBSD here was a mistake.
5889 # Let's accept both of them until this is cleared up.
5890 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5891 lt_cv_file_magic_cmd=/usr/bin/file
5892 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5893 ;;
5894 esac
5895 else
5896 lt_cv_deplibs_check_method=pass_all
5897 fi
5898 ;;
5899
5900 gnu*)
5901 lt_cv_deplibs_check_method=pass_all
5902 ;;
5903
5904 haiku*)
5905 lt_cv_deplibs_check_method=pass_all
5906 ;;
5907
5908 hpux10.20* | hpux11*)
5909 lt_cv_file_magic_cmd=/usr/bin/file
5910 case $host_cpu in
5911 ia64*)
5912 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5913 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5914 ;;
5915 hppa*64*)
5916 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]'
5917 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5918 ;;
5919 *)
5920 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
5921 lt_cv_file_magic_test_file=/usr/lib/libc.sl
5922 ;;
5923 esac
5924 ;;
5925
5926 interix[3-9]*)
5927 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5928 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5929 ;;
5930
5931 irix5* | irix6* | nonstopux*)
5932 case $LD in
5933 *-32|*"-32 ") libmagic=32-bit;;
5934 *-n32|*"-n32 ") libmagic=N32;;
5935 *-64|*"-64 ") libmagic=64-bit;;
5936 *) libmagic=never-match;;
5937 esac
5938 lt_cv_deplibs_check_method=pass_all
5939 ;;
5940
5941 # This must be Linux ELF.
5942 linux* | k*bsd*-gnu | kopensolaris*-gnu)
5943 lt_cv_deplibs_check_method=pass_all
5944 ;;
5945
5946 netbsd*)
5947 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5948 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5949 else
5950 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5951 fi
5952 ;;
5953
5954 newos6*)
5955 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5956 lt_cv_file_magic_cmd=/usr/bin/file
5957 lt_cv_file_magic_test_file=/usr/lib/libnls.so
5958 ;;
5959
5960 *nto* | *qnx*)
5961 lt_cv_deplibs_check_method=pass_all
5962 ;;
5963
5964 openbsd*)
5965 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5966 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5967 else
5968 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5969 fi
5970 ;;
5971
5972 osf3* | osf4* | osf5*)
5973 lt_cv_deplibs_check_method=pass_all
5974 ;;
5975
5976 rdos*)
5977 lt_cv_deplibs_check_method=pass_all
5978 ;;
5979
5980 solaris*)
5981 lt_cv_deplibs_check_method=pass_all
5982 ;;
5983
5984 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5985 lt_cv_deplibs_check_method=pass_all
5986 ;;
5987
5988 sysv4 | sysv4.3*)
5989 case $host_vendor in
5990 motorola)
5991 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]'
5992 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5993 ;;
5994 ncr)
5995 lt_cv_deplibs_check_method=pass_all
5996 ;;
5997 sequent)
5998 lt_cv_file_magic_cmd='/bin/file'
5999 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6000 ;;
6001 sni)
6002 lt_cv_file_magic_cmd='/bin/file'
6003 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6004 lt_cv_file_magic_test_file=/lib/libc.so
6005 ;;
6006 siemens)
6007 lt_cv_deplibs_check_method=pass_all
6008 ;;
6009 pc)
6010 lt_cv_deplibs_check_method=pass_all
6011 ;;
6012 esac
6013 ;;
6014
6015 tpf*)
6016 lt_cv_deplibs_check_method=pass_all
6017 ;;
6018 esac
6019
6020 fi
6021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
6022 $as_echo "$lt_cv_deplibs_check_method" >&6; }
6023 file_magic_cmd=$lt_cv_file_magic_cmd
6024 deplibs_check_method=$lt_cv_deplibs_check_method
6025 test -z "$deplibs_check_method" && deplibs_check_method=unknown
6026
6027
6028
6029
6030
6031
6032
6033
6034
6035
6036
6037
6038 if test -n "$ac_tool_prefix"; then
6039 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6040 set dummy ${ac_tool_prefix}ar; ac_word=$2
6041 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6042 $as_echo_n "checking for $ac_word... " >&6; }
6043 if test "${ac_cv_prog_AR+set}" = set; then :
6044 $as_echo_n "(cached) " >&6
6045 else
6046 if test -n "$AR"; then
6047 ac_cv_prog_AR="$AR" # Let the user override the test.
6048 else
6049 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6050 for as_dir in $PATH
6051 do
6052 IFS=$as_save_IFS
6053 test -z "$as_dir" && as_dir=.
6054 for ac_exec_ext in '' $ac_executable_extensions; do
6055 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6056 ac_cv_prog_AR="${ac_tool_prefix}ar"
6057 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6058 break 2
6059 fi
6060 done
6061 done
6062 IFS=$as_save_IFS
6063
6064 fi
6065 fi
6066 AR=$ac_cv_prog_AR
6067 if test -n "$AR"; then
6068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6069 $as_echo "$AR" >&6; }
6070 else
6071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6072 $as_echo "no" >&6; }
6073 fi
6074
6075
6076 fi
6077 if test -z "$ac_cv_prog_AR"; then
6078 ac_ct_AR=$AR
6079 # Extract the first word of "ar", so it can be a program name with args.
6080 set dummy ar; ac_word=$2
6081 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6082 $as_echo_n "checking for $ac_word... " >&6; }
6083 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
6084 $as_echo_n "(cached) " >&6
6085 else
6086 if test -n "$ac_ct_AR"; then
6087 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6088 else
6089 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6090 for as_dir in $PATH
6091 do
6092 IFS=$as_save_IFS
6093 test -z "$as_dir" && as_dir=.
6094 for ac_exec_ext in '' $ac_executable_extensions; do
6095 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6096 ac_cv_prog_ac_ct_AR="ar"
6097 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6098 break 2
6099 fi
6100 done
6101 done
6102 IFS=$as_save_IFS
6103
6104 fi
6105 fi
6106 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6107 if test -n "$ac_ct_AR"; then
6108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6109 $as_echo "$ac_ct_AR" >&6; }
6110 else
6111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6112 $as_echo "no" >&6; }
6113 fi
6114
6115 if test "x$ac_ct_AR" = x; then
6116 AR="false"
6117 else
6118 case $cross_compiling:$ac_tool_warned in
6119 yes:)
6120 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6121 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6122 ac_tool_warned=yes ;;
6123 esac
6124 AR=$ac_ct_AR
6125 fi
6126 else
6127 AR="$ac_cv_prog_AR"
6128 fi
6129
6130 test -z "$AR" && AR=ar
6131 test -z "$AR_FLAGS" && AR_FLAGS=cru
6132
6133
6134
6135
6136
6137
6138
6139
6140
6141
6142
6143 if test -n "$ac_tool_prefix"; then
6144 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6145 set dummy ${ac_tool_prefix}strip; ac_word=$2
6146 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6147 $as_echo_n "checking for $ac_word... " >&6; }
6148 if test "${ac_cv_prog_STRIP+set}" = set; then :
6149 $as_echo_n "(cached) " >&6
6150 else
6151 if test -n "$STRIP"; then
6152 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6153 else
6154 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6155 for as_dir in $PATH
6156 do
6157 IFS=$as_save_IFS
6158 test -z "$as_dir" && as_dir=.
6159 for ac_exec_ext in '' $ac_executable_extensions; do
6160 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6161 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6162 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6163 break 2
6164 fi
6165 done
6166 done
6167 IFS=$as_save_IFS
6168
6169 fi
6170 fi
6171 STRIP=$ac_cv_prog_STRIP
6172 if test -n "$STRIP"; then
6173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6174 $as_echo "$STRIP" >&6; }
6175 else
6176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6177 $as_echo "no" >&6; }
6178 fi
6179
6180
6181 fi
6182 if test -z "$ac_cv_prog_STRIP"; then
6183 ac_ct_STRIP=$STRIP
6184 # Extract the first word of "strip", so it can be a program name with args.
6185 set dummy strip; ac_word=$2
6186 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6187 $as_echo_n "checking for $ac_word... " >&6; }
6188 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
6189 $as_echo_n "(cached) " >&6
6190 else
6191 if test -n "$ac_ct_STRIP"; then
6192 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6193 else
6194 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6195 for as_dir in $PATH
6196 do
6197 IFS=$as_save_IFS
6198 test -z "$as_dir" && as_dir=.
6199 for ac_exec_ext in '' $ac_executable_extensions; do
6200 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6201 ac_cv_prog_ac_ct_STRIP="strip"
6202 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6203 break 2
6204 fi
6205 done
6206 done
6207 IFS=$as_save_IFS
6208
6209 fi
6210 fi
6211 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6212 if test -n "$ac_ct_STRIP"; then
6213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6214 $as_echo "$ac_ct_STRIP" >&6; }
6215 else
6216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6217 $as_echo "no" >&6; }
6218 fi
6219
6220 if test "x$ac_ct_STRIP" = x; then
6221 STRIP=":"
6222 else
6223 case $cross_compiling:$ac_tool_warned in
6224 yes:)
6225 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6226 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6227 ac_tool_warned=yes ;;
6228 esac
6229 STRIP=$ac_ct_STRIP
6230 fi
6231 else
6232 STRIP="$ac_cv_prog_STRIP"
6233 fi
6234
6235 test -z "$STRIP" && STRIP=:
6236
6237
6238
6239
6240
6241
6242 if test -n "$ac_tool_prefix"; then
6243 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6244 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6245 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6246 $as_echo_n "checking for $ac_word... " >&6; }
6247 if test "${ac_cv_prog_RANLIB+set}" = set; then :
6248 $as_echo_n "(cached) " >&6
6249 else
6250 if test -n "$RANLIB"; then
6251 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6252 else
6253 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6254 for as_dir in $PATH
6255 do
6256 IFS=$as_save_IFS
6257 test -z "$as_dir" && as_dir=.
6258 for ac_exec_ext in '' $ac_executable_extensions; do
6259 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6260 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6261 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6262 break 2
6263 fi
6264 done
6265 done
6266 IFS=$as_save_IFS
6267
6268 fi
6269 fi
6270 RANLIB=$ac_cv_prog_RANLIB
6271 if test -n "$RANLIB"; then
6272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6273 $as_echo "$RANLIB" >&6; }
6274 else
6275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6276 $as_echo "no" >&6; }
6277 fi
6278
6279
6280 fi
6281 if test -z "$ac_cv_prog_RANLIB"; then
6282 ac_ct_RANLIB=$RANLIB
6283 # Extract the first word of "ranlib", so it can be a program name with args.
6284 set dummy ranlib; ac_word=$2
6285 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6286 $as_echo_n "checking for $ac_word... " >&6; }
6287 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
6288 $as_echo_n "(cached) " >&6
6289 else
6290 if test -n "$ac_ct_RANLIB"; then
6291 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6292 else
6293 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6294 for as_dir in $PATH
6295 do
6296 IFS=$as_save_IFS
6297 test -z "$as_dir" && as_dir=.
6298 for ac_exec_ext in '' $ac_executable_extensions; do
6299 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6300 ac_cv_prog_ac_ct_RANLIB="ranlib"
6301 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6302 break 2
6303 fi
6304 done
6305 done
6306 IFS=$as_save_IFS
6307
6308 fi
6309 fi
6310 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6311 if test -n "$ac_ct_RANLIB"; then
6312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6313 $as_echo "$ac_ct_RANLIB" >&6; }
6314 else
6315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6316 $as_echo "no" >&6; }
6317 fi
6318
6319 if test "x$ac_ct_RANLIB" = x; then
6320 RANLIB=":"
6321 else
6322 case $cross_compiling:$ac_tool_warned in
6323 yes:)
6324 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6325 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6326 ac_tool_warned=yes ;;
6327 esac
6328 RANLIB=$ac_ct_RANLIB
6329 fi
6330 else
6331 RANLIB="$ac_cv_prog_RANLIB"
6332 fi
6333
6334 test -z "$RANLIB" && RANLIB=:
6335
6336
6337
6338
6339
6340
6341 # Determine commands to create old-style static archives.
6342 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6343 old_postinstall_cmds='chmod 644 $oldlib'
6344 old_postuninstall_cmds=
6345
6346 if test -n "$RANLIB"; then
6347 case $host_os in
6348 openbsd*)
6349 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
6350 ;;
6351 *)
6352 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
6353 ;;
6354 esac
6355 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6356 fi
6357
6358 case $host_os in
6359 darwin*)
6360 lock_old_archive_extraction=yes ;;
6361 *)
6362 lock_old_archive_extraction=no ;;
6363 esac
6364
6365
6366
6367
6368
6369
6370
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 # If no C compiler was specified, use CC.
6404 LTCC=${LTCC-"$CC"}
6405
6406 # If no C compiler flags were specified, use CFLAGS.
6407 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6408
6409 # Allow CC to be a program name with arguments.
6410 compiler=$CC
6411
6412
6413 # Check for command to grab the raw symbol name followed by C symbol from nm.
6414 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6415 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6416 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
6417 $as_echo_n "(cached) " >&6
6418 else
6419
6420 # These are sane defaults that work on at least a few old systems.
6421 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
6422
6423 # Character class describing NM global symbol codes.
6424 symcode='[BCDEGRST]'
6425
6426 # Regexp to match symbols that can be accessed directly from C.
6427 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6428
6429 # Define system-specific variables.
6430 case $host_os in
6431 aix*)
6432 symcode='[BCDT]'
6433 ;;
6434 cygwin* | mingw* | pw32* | cegcc*)
6435 symcode='[ABCDGISTW]'
6436 ;;
6437 hpux*)
6438 if test "$host_cpu" = ia64; then
6439 symcode='[ABCDEGRST]'
6440 fi
6441 ;;
6442 irix* | nonstopux*)
6443 symcode='[BCDEGRST]'
6444 ;;
6445 osf*)
6446 symcode='[BCDEGQRST]'
6447 ;;
6448 solaris*)
6449 symcode='[BDRT]'
6450 ;;
6451 sco3.2v5*)
6452 symcode='[DT]'
6453 ;;
6454 sysv4.2uw2*)
6455 symcode='[DT]'
6456 ;;
6457 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6458 symcode='[ABDT]'
6459 ;;
6460 sysv4)
6461 symcode='[DFNSTU]'
6462 ;;
6463 esac
6464
6465 # If we're using GNU nm, then use its standard symbol codes.
6466 case `$NM -V 2>&1` in
6467 *GNU* | *'with BFD'*)
6468 symcode='[ABCDGIRSTW]' ;;
6469 esac
6470
6471 # Transform an extracted symbol line into a proper C declaration.
6472 # Some systems (esp. on ia64) link data and code symbols differently,
6473 # so use this general approach.
6474 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6475
6476 # Transform an extracted symbol line into symbol name and symbol address
6477 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
6478 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'"
6479
6480 # Handle CRLF in mingw tool chain
6481 opt_cr=
6482 case $build_os in
6483 mingw*)
6484 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6485 ;;
6486 esac
6487
6488 # Try without a prefix underscore, then with it.
6489 for ac_symprfx in "" "_"; do
6490
6491 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6492 symxfrm="\\1 $ac_symprfx\\2 \\2"
6493
6494 # Write the raw and C identifiers.
6495 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6496 # Fake it for dumpbin and say T for any non-static function
6497 # and D for any global variable.
6498 # Also find C++ and __fastcall symbols from MSVC++,
6499 # which start with @ or ?.
6500 lt_cv_sys_global_symbol_pipe="$AWK '"\
6501 " {last_section=section; section=\$ 3};"\
6502 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6503 " \$ 0!~/External *\|/{next};"\
6504 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6505 " {if(hide[section]) next};"\
6506 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
6507 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
6508 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
6509 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
6510 " ' prfx=^$ac_symprfx"
6511 else
6512 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6513 fi
6514
6515 # Check to see that the pipe works correctly.
6516 pipe_works=no
6517
6518 rm -f conftest*
6519 cat > conftest.$ac_ext <<_LT_EOF
6520 #ifdef __cplusplus
6521 extern "C" {
6522 #endif
6523 char nm_test_var;
6524 void nm_test_func(void);
6525 void nm_test_func(void){}
6526 #ifdef __cplusplus
6527 }
6528 #endif
6529 int main(){nm_test_var='a';nm_test_func();return(0);}
6530 _LT_EOF
6531
6532 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6533 (eval $ac_compile) 2>&5
6534 ac_status=$?
6535 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6536 test $ac_status = 0; }; then
6537 # Now try to grab the symbols.
6538 nlist=conftest.nm
6539 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
6540 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
6541 ac_status=$?
6542 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6543 test $ac_status = 0; } && test -s "$nlist"; then
6544 # Try sorting and uniquifying the output.
6545 if sort "$nlist" | uniq > "$nlist"T; then
6546 mv -f "$nlist"T "$nlist"
6547 else
6548 rm -f "$nlist"T
6549 fi
6550
6551 # Make sure that we snagged all the symbols we need.
6552 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6553 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6554 cat <<_LT_EOF > conftest.$ac_ext
6555 #ifdef __cplusplus
6556 extern "C" {
6557 #endif
6558
6559 _LT_EOF
6560 # Now generate the symbol file.
6561 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6562
6563 cat <<_LT_EOF >> conftest.$ac_ext
6564
6565 /* The mapping between symbol names and symbols. */
6566 const struct {
6567 const char *name;
6568 void *address;
6569 }
6570 lt__PROGRAM__LTX_preloaded_symbols[] =
6571 {
6572 { "@PROGRAM@", (void *) 0 },
6573 _LT_EOF
6574 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6575 cat <<\_LT_EOF >> conftest.$ac_ext
6576 {0, (void *) 0}
6577 };
6578
6579 /* This works around a problem in FreeBSD linker */
6580 #ifdef FREEBSD_WORKAROUND
6581 static const void *lt_preloaded_setup() {
6582 return lt__PROGRAM__LTX_preloaded_symbols;
6583 }
6584 #endif
6585
6586 #ifdef __cplusplus
6587 }
6588 #endif
6589 _LT_EOF
6590 # Now try linking the two files.
6591 mv conftest.$ac_objext conftstm.$ac_objext
6592 lt_save_LIBS="$LIBS"
6593 lt_save_CFLAGS="$CFLAGS"
6594 LIBS="conftstm.$ac_objext"
6595 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6596 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6597 (eval $ac_link) 2>&5
6598 ac_status=$?
6599 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6600 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
6601 pipe_works=yes
6602 fi
6603 LIBS="$lt_save_LIBS"
6604 CFLAGS="$lt_save_CFLAGS"
6605 else
6606 echo "cannot find nm_test_func in $nlist" >&5
6607 fi
6608 else
6609 echo "cannot find nm_test_var in $nlist" >&5
6610 fi
6611 else
6612 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6613 fi
6614 else
6615 echo "$progname: failed program was:" >&5
6616 cat conftest.$ac_ext >&5
6617 fi
6618 rm -rf conftest* conftst*
6619
6620 # Do not use the global_symbol_pipe unless it works.
6621 if test "$pipe_works" = yes; then
6622 break
6623 else
6624 lt_cv_sys_global_symbol_pipe=
6625 fi
6626 done
6627
6628 fi
6629
6630 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6631 lt_cv_sys_global_symbol_to_cdecl=
6632 fi
6633 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6635 $as_echo "failed" >&6; }
6636 else
6637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6638 $as_echo "ok" >&6; }
6639 fi
6640
6641
6642
6643
6644
6645
6646
6647
6648
6649
6650
6651
6652
6653
6654
6655
6656
6657
6658
6659
6660
6661
6662 # Check whether --enable-libtool-lock was given.
6663 if test "${enable_libtool_lock+set}" = set; then :
6664 enableval=$enable_libtool_lock;
6665 fi
6666
6667 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6668
6669 # Some flags need to be propagated to the compiler or linker for good
6670 # libtool support.
6671 case $host in
6672 ia64-*-hpux*)
6673 # Find out which ABI we are using.
6674 echo 'int i;' > conftest.$ac_ext
6675 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6676 (eval $ac_compile) 2>&5
6677 ac_status=$?
6678 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6679 test $ac_status = 0; }; then
6680 case `/usr/bin/file conftest.$ac_objext` in
6681 *ELF-32*)
6682 HPUX_IA64_MODE="32"
6683 ;;
6684 *ELF-64*)
6685 HPUX_IA64_MODE="64"
6686 ;;
6687 esac
6688 fi
6689 rm -rf conftest*
6690 ;;
6691 *-*-irix6*)
6692 # Find out which ABI we are using.
6693 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6694 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6695 (eval $ac_compile) 2>&5
6696 ac_status=$?
6697 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6698 test $ac_status = 0; }; then
6699 if test "$lt_cv_prog_gnu_ld" = yes; then
6700 case `/usr/bin/file conftest.$ac_objext` in
6701 *32-bit*)
6702 LD="${LD-ld} -melf32bsmip"
6703 ;;
6704 *N32*)
6705 LD="${LD-ld} -melf32bmipn32"
6706 ;;
6707 *64-bit*)
6708 LD="${LD-ld} -melf64bmip"
6709 ;;
6710 esac
6711 else
6712 case `/usr/bin/file conftest.$ac_objext` in
6713 *32-bit*)
6714 LD="${LD-ld} -32"
6715 ;;
6716 *N32*)
6717 LD="${LD-ld} -n32"
6718 ;;
6719 *64-bit*)
6720 LD="${LD-ld} -64"
6721 ;;
6722 esac
6723 fi
6724 fi
6725 rm -rf conftest*
6726 ;;
6727
6728 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
6729 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6730 # Find out which ABI we are using.
6731 echo 'int i;' > conftest.$ac_ext
6732 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6733 (eval $ac_compile) 2>&5
6734 ac_status=$?
6735 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6736 test $ac_status = 0; }; then
6737 case `/usr/bin/file conftest.o` in
6738 *32-bit*)
6739 case $host in
6740 x86_64-*kfreebsd*-gnu)
6741 LD="${LD-ld} -m elf_i386_fbsd"
6742 ;;
6743 x86_64-*linux*)
6744 case `/usr/bin/file conftest.o` in
6745 *x86-64*)
6746 LD="${LD-ld} -m elf32_x86_64"
6747 ;;
6748 *)
6749 LD="${LD-ld} -m elf_i386"
6750 ;;
6751 esac
6752 ;;
6753 powerpc64le-*linux*)
6754 LD="${LD-ld} -m elf32lppclinux"
6755 ;;
6756 powerpc64-*linux*)
6757 LD="${LD-ld} -m elf32ppclinux"
6758 ;;
6759 s390x-*linux*)
6760 LD="${LD-ld} -m elf_s390"
6761 ;;
6762 sparc64-*linux*)
6763 LD="${LD-ld} -m elf32_sparc"
6764 ;;
6765 esac
6766 ;;
6767 *64-bit*)
6768 case $host in
6769 x86_64-*kfreebsd*-gnu)
6770 LD="${LD-ld} -m elf_x86_64_fbsd"
6771 ;;
6772 x86_64-*linux*)
6773 LD="${LD-ld} -m elf_x86_64"
6774 ;;
6775 powerpcle-*linux*)
6776 LD="${LD-ld} -m elf64lppc"
6777 ;;
6778 powerpc-*linux*)
6779 LD="${LD-ld} -m elf64ppc"
6780 ;;
6781 s390*-*linux*|s390*-*tpf*)
6782 LD="${LD-ld} -m elf64_s390"
6783 ;;
6784 sparc*-*linux*)
6785 LD="${LD-ld} -m elf64_sparc"
6786 ;;
6787 esac
6788 ;;
6789 esac
6790 fi
6791 rm -rf conftest*
6792 ;;
6793
6794 *-*-sco3.2v5*)
6795 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6796 SAVE_CFLAGS="$CFLAGS"
6797 CFLAGS="$CFLAGS -belf"
6798 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
6799 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
6800 if test "${lt_cv_cc_needs_belf+set}" = set; then :
6801 $as_echo_n "(cached) " >&6
6802 else
6803 ac_ext=c
6804 ac_cpp='$CPP $CPPFLAGS'
6805 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6806 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6807 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6808
6809 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6810 /* end confdefs.h. */
6811
6812 int
6813 main ()
6814 {
6815
6816 ;
6817 return 0;
6818 }
6819 _ACEOF
6820 if ac_fn_c_try_link "$LINENO"; then :
6821 lt_cv_cc_needs_belf=yes
6822 else
6823 lt_cv_cc_needs_belf=no
6824 fi
6825 rm -f core conftest.err conftest.$ac_objext \
6826 conftest$ac_exeext conftest.$ac_ext
6827 ac_ext=c
6828 ac_cpp='$CPP $CPPFLAGS'
6829 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6830 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6831 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6832
6833 fi
6834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
6835 $as_echo "$lt_cv_cc_needs_belf" >&6; }
6836 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6837 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6838 CFLAGS="$SAVE_CFLAGS"
6839 fi
6840 ;;
6841 sparc*-*solaris*)
6842 # Find out which ABI we are using.
6843 echo 'int i;' > conftest.$ac_ext
6844 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6845 (eval $ac_compile) 2>&5
6846 ac_status=$?
6847 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6848 test $ac_status = 0; }; then
6849 case `/usr/bin/file conftest.o` in
6850 *64-bit*)
6851 case $lt_cv_prog_gnu_ld in
6852 yes*) LD="${LD-ld} -m elf64_sparc" ;;
6853 *)
6854 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6855 LD="${LD-ld} -64"
6856 fi
6857 ;;
6858 esac
6859 ;;
6860 esac
6861 fi
6862 rm -rf conftest*
6863 ;;
6864 esac
6865
6866 need_locks="$enable_libtool_lock"
6867
6868
6869 case $host_os in
6870 rhapsody* | darwin*)
6871 if test -n "$ac_tool_prefix"; then
6872 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
6873 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
6874 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6875 $as_echo_n "checking for $ac_word... " >&6; }
6876 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
6877 $as_echo_n "(cached) " >&6
6878 else
6879 if test -n "$DSYMUTIL"; then
6880 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
6881 else
6882 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6883 for as_dir in $PATH
6884 do
6885 IFS=$as_save_IFS
6886 test -z "$as_dir" && as_dir=.
6887 for ac_exec_ext in '' $ac_executable_extensions; do
6888 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6889 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
6890 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6891 break 2
6892 fi
6893 done
6894 done
6895 IFS=$as_save_IFS
6896
6897 fi
6898 fi
6899 DSYMUTIL=$ac_cv_prog_DSYMUTIL
6900 if test -n "$DSYMUTIL"; then
6901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
6902 $as_echo "$DSYMUTIL" >&6; }
6903 else
6904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6905 $as_echo "no" >&6; }
6906 fi
6907
6908
6909 fi
6910 if test -z "$ac_cv_prog_DSYMUTIL"; then
6911 ac_ct_DSYMUTIL=$DSYMUTIL
6912 # Extract the first word of "dsymutil", so it can be a program name with args.
6913 set dummy dsymutil; ac_word=$2
6914 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6915 $as_echo_n "checking for $ac_word... " >&6; }
6916 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
6917 $as_echo_n "(cached) " >&6
6918 else
6919 if test -n "$ac_ct_DSYMUTIL"; then
6920 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
6921 else
6922 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6923 for as_dir in $PATH
6924 do
6925 IFS=$as_save_IFS
6926 test -z "$as_dir" && as_dir=.
6927 for ac_exec_ext in '' $ac_executable_extensions; do
6928 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6929 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
6930 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6931 break 2
6932 fi
6933 done
6934 done
6935 IFS=$as_save_IFS
6936
6937 fi
6938 fi
6939 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
6940 if test -n "$ac_ct_DSYMUTIL"; then
6941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
6942 $as_echo "$ac_ct_DSYMUTIL" >&6; }
6943 else
6944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6945 $as_echo "no" >&6; }
6946 fi
6947
6948 if test "x$ac_ct_DSYMUTIL" = x; then
6949 DSYMUTIL=":"
6950 else
6951 case $cross_compiling:$ac_tool_warned in
6952 yes:)
6953 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6954 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6955 ac_tool_warned=yes ;;
6956 esac
6957 DSYMUTIL=$ac_ct_DSYMUTIL
6958 fi
6959 else
6960 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
6961 fi
6962
6963 if test -n "$ac_tool_prefix"; then
6964 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
6965 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
6966 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6967 $as_echo_n "checking for $ac_word... " >&6; }
6968 if test "${ac_cv_prog_NMEDIT+set}" = set; then :
6969 $as_echo_n "(cached) " >&6
6970 else
6971 if test -n "$NMEDIT"; then
6972 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
6973 else
6974 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6975 for as_dir in $PATH
6976 do
6977 IFS=$as_save_IFS
6978 test -z "$as_dir" && as_dir=.
6979 for ac_exec_ext in '' $ac_executable_extensions; do
6980 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6981 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
6982 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6983 break 2
6984 fi
6985 done
6986 done
6987 IFS=$as_save_IFS
6988
6989 fi
6990 fi
6991 NMEDIT=$ac_cv_prog_NMEDIT
6992 if test -n "$NMEDIT"; then
6993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
6994 $as_echo "$NMEDIT" >&6; }
6995 else
6996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6997 $as_echo "no" >&6; }
6998 fi
6999
7000
7001 fi
7002 if test -z "$ac_cv_prog_NMEDIT"; then
7003 ac_ct_NMEDIT=$NMEDIT
7004 # Extract the first word of "nmedit", so it can be a program name with args.
7005 set dummy nmedit; ac_word=$2
7006 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7007 $as_echo_n "checking for $ac_word... " >&6; }
7008 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
7009 $as_echo_n "(cached) " >&6
7010 else
7011 if test -n "$ac_ct_NMEDIT"; then
7012 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7013 else
7014 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7015 for as_dir in $PATH
7016 do
7017 IFS=$as_save_IFS
7018 test -z "$as_dir" && as_dir=.
7019 for ac_exec_ext in '' $ac_executable_extensions; do
7020 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7021 ac_cv_prog_ac_ct_NMEDIT="nmedit"
7022 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7023 break 2
7024 fi
7025 done
7026 done
7027 IFS=$as_save_IFS
7028
7029 fi
7030 fi
7031 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7032 if test -n "$ac_ct_NMEDIT"; then
7033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7034 $as_echo "$ac_ct_NMEDIT" >&6; }
7035 else
7036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7037 $as_echo "no" >&6; }
7038 fi
7039
7040 if test "x$ac_ct_NMEDIT" = x; then
7041 NMEDIT=":"
7042 else
7043 case $cross_compiling:$ac_tool_warned in
7044 yes:)
7045 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7046 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7047 ac_tool_warned=yes ;;
7048 esac
7049 NMEDIT=$ac_ct_NMEDIT
7050 fi
7051 else
7052 NMEDIT="$ac_cv_prog_NMEDIT"
7053 fi
7054
7055 if test -n "$ac_tool_prefix"; then
7056 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7057 set dummy ${ac_tool_prefix}lipo; ac_word=$2
7058 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7059 $as_echo_n "checking for $ac_word... " >&6; }
7060 if test "${ac_cv_prog_LIPO+set}" = set; then :
7061 $as_echo_n "(cached) " >&6
7062 else
7063 if test -n "$LIPO"; then
7064 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7065 else
7066 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7067 for as_dir in $PATH
7068 do
7069 IFS=$as_save_IFS
7070 test -z "$as_dir" && as_dir=.
7071 for ac_exec_ext in '' $ac_executable_extensions; do
7072 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7073 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7074 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7075 break 2
7076 fi
7077 done
7078 done
7079 IFS=$as_save_IFS
7080
7081 fi
7082 fi
7083 LIPO=$ac_cv_prog_LIPO
7084 if test -n "$LIPO"; then
7085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7086 $as_echo "$LIPO" >&6; }
7087 else
7088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7089 $as_echo "no" >&6; }
7090 fi
7091
7092
7093 fi
7094 if test -z "$ac_cv_prog_LIPO"; then
7095 ac_ct_LIPO=$LIPO
7096 # Extract the first word of "lipo", so it can be a program name with args.
7097 set dummy lipo; ac_word=$2
7098 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7099 $as_echo_n "checking for $ac_word... " >&6; }
7100 if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
7101 $as_echo_n "(cached) " >&6
7102 else
7103 if test -n "$ac_ct_LIPO"; then
7104 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7105 else
7106 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7107 for as_dir in $PATH
7108 do
7109 IFS=$as_save_IFS
7110 test -z "$as_dir" && as_dir=.
7111 for ac_exec_ext in '' $ac_executable_extensions; do
7112 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7113 ac_cv_prog_ac_ct_LIPO="lipo"
7114 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7115 break 2
7116 fi
7117 done
7118 done
7119 IFS=$as_save_IFS
7120
7121 fi
7122 fi
7123 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7124 if test -n "$ac_ct_LIPO"; then
7125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7126 $as_echo "$ac_ct_LIPO" >&6; }
7127 else
7128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7129 $as_echo "no" >&6; }
7130 fi
7131
7132 if test "x$ac_ct_LIPO" = x; then
7133 LIPO=":"
7134 else
7135 case $cross_compiling:$ac_tool_warned in
7136 yes:)
7137 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7138 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7139 ac_tool_warned=yes ;;
7140 esac
7141 LIPO=$ac_ct_LIPO
7142 fi
7143 else
7144 LIPO="$ac_cv_prog_LIPO"
7145 fi
7146
7147 if test -n "$ac_tool_prefix"; then
7148 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7149 set dummy ${ac_tool_prefix}otool; ac_word=$2
7150 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7151 $as_echo_n "checking for $ac_word... " >&6; }
7152 if test "${ac_cv_prog_OTOOL+set}" = set; then :
7153 $as_echo_n "(cached) " >&6
7154 else
7155 if test -n "$OTOOL"; then
7156 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7157 else
7158 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7159 for as_dir in $PATH
7160 do
7161 IFS=$as_save_IFS
7162 test -z "$as_dir" && as_dir=.
7163 for ac_exec_ext in '' $ac_executable_extensions; do
7164 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7165 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7166 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7167 break 2
7168 fi
7169 done
7170 done
7171 IFS=$as_save_IFS
7172
7173 fi
7174 fi
7175 OTOOL=$ac_cv_prog_OTOOL
7176 if test -n "$OTOOL"; then
7177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7178 $as_echo "$OTOOL" >&6; }
7179 else
7180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7181 $as_echo "no" >&6; }
7182 fi
7183
7184
7185 fi
7186 if test -z "$ac_cv_prog_OTOOL"; then
7187 ac_ct_OTOOL=$OTOOL
7188 # Extract the first word of "otool", so it can be a program name with args.
7189 set dummy otool; ac_word=$2
7190 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7191 $as_echo_n "checking for $ac_word... " >&6; }
7192 if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
7193 $as_echo_n "(cached) " >&6
7194 else
7195 if test -n "$ac_ct_OTOOL"; then
7196 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7197 else
7198 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7199 for as_dir in $PATH
7200 do
7201 IFS=$as_save_IFS
7202 test -z "$as_dir" && as_dir=.
7203 for ac_exec_ext in '' $ac_executable_extensions; do
7204 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7205 ac_cv_prog_ac_ct_OTOOL="otool"
7206 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7207 break 2
7208 fi
7209 done
7210 done
7211 IFS=$as_save_IFS
7212
7213 fi
7214 fi
7215 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7216 if test -n "$ac_ct_OTOOL"; then
7217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7218 $as_echo "$ac_ct_OTOOL" >&6; }
7219 else
7220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7221 $as_echo "no" >&6; }
7222 fi
7223
7224 if test "x$ac_ct_OTOOL" = x; then
7225 OTOOL=":"
7226 else
7227 case $cross_compiling:$ac_tool_warned in
7228 yes:)
7229 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7230 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7231 ac_tool_warned=yes ;;
7232 esac
7233 OTOOL=$ac_ct_OTOOL
7234 fi
7235 else
7236 OTOOL="$ac_cv_prog_OTOOL"
7237 fi
7238
7239 if test -n "$ac_tool_prefix"; then
7240 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7241 set dummy ${ac_tool_prefix}otool64; ac_word=$2
7242 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7243 $as_echo_n "checking for $ac_word... " >&6; }
7244 if test "${ac_cv_prog_OTOOL64+set}" = set; then :
7245 $as_echo_n "(cached) " >&6
7246 else
7247 if test -n "$OTOOL64"; then
7248 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7249 else
7250 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7251 for as_dir in $PATH
7252 do
7253 IFS=$as_save_IFS
7254 test -z "$as_dir" && as_dir=.
7255 for ac_exec_ext in '' $ac_executable_extensions; do
7256 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7257 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7258 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7259 break 2
7260 fi
7261 done
7262 done
7263 IFS=$as_save_IFS
7264
7265 fi
7266 fi
7267 OTOOL64=$ac_cv_prog_OTOOL64
7268 if test -n "$OTOOL64"; then
7269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
7270 $as_echo "$OTOOL64" >&6; }
7271 else
7272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7273 $as_echo "no" >&6; }
7274 fi
7275
7276
7277 fi
7278 if test -z "$ac_cv_prog_OTOOL64"; then
7279 ac_ct_OTOOL64=$OTOOL64
7280 # Extract the first word of "otool64", so it can be a program name with args.
7281 set dummy otool64; ac_word=$2
7282 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7283 $as_echo_n "checking for $ac_word... " >&6; }
7284 if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
7285 $as_echo_n "(cached) " >&6
7286 else
7287 if test -n "$ac_ct_OTOOL64"; then
7288 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7289 else
7290 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7291 for as_dir in $PATH
7292 do
7293 IFS=$as_save_IFS
7294 test -z "$as_dir" && as_dir=.
7295 for ac_exec_ext in '' $ac_executable_extensions; do
7296 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7297 ac_cv_prog_ac_ct_OTOOL64="otool64"
7298 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7299 break 2
7300 fi
7301 done
7302 done
7303 IFS=$as_save_IFS
7304
7305 fi
7306 fi
7307 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7308 if test -n "$ac_ct_OTOOL64"; then
7309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
7310 $as_echo "$ac_ct_OTOOL64" >&6; }
7311 else
7312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7313 $as_echo "no" >&6; }
7314 fi
7315
7316 if test "x$ac_ct_OTOOL64" = x; then
7317 OTOOL64=":"
7318 else
7319 case $cross_compiling:$ac_tool_warned in
7320 yes:)
7321 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7322 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7323 ac_tool_warned=yes ;;
7324 esac
7325 OTOOL64=$ac_ct_OTOOL64
7326 fi
7327 else
7328 OTOOL64="$ac_cv_prog_OTOOL64"
7329 fi
7330
7331
7332
7333
7334
7335
7336
7337
7338
7339
7340
7341
7342
7343
7344
7345
7346
7347
7348
7349
7350
7351
7352
7353
7354
7355
7356
7357 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7358 $as_echo_n "checking for -single_module linker flag... " >&6; }
7359 if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
7360 $as_echo_n "(cached) " >&6
7361 else
7362 lt_cv_apple_cc_single_mod=no
7363 if test -z "${LT_MULTI_MODULE}"; then
7364 # By default we will add the -single_module flag. You can override
7365 # by either setting the environment variable LT_MULTI_MODULE
7366 # non-empty at configure time, or by adding -multi_module to the
7367 # link flags.
7368 rm -rf libconftest.dylib*
7369 echo "int foo(void){return 1;}" > conftest.c
7370 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7371 -dynamiclib -Wl,-single_module conftest.c" >&5
7372 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7373 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7374 _lt_result=$?
7375 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
7376 lt_cv_apple_cc_single_mod=yes
7377 else
7378 cat conftest.err >&5
7379 fi
7380 rm -rf libconftest.dylib*
7381 rm -f conftest.*
7382 fi
7383 fi
7384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7385 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7386 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7387 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7388 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
7389 $as_echo_n "(cached) " >&6
7390 else
7391 lt_cv_ld_exported_symbols_list=no
7392 save_LDFLAGS=$LDFLAGS
7393 echo "_main" > conftest.sym
7394 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7395 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7396 /* end confdefs.h. */
7397
7398 int
7399 main ()
7400 {
7401
7402 ;
7403 return 0;
7404 }
7405 _ACEOF
7406 if ac_fn_c_try_link "$LINENO"; then :
7407 lt_cv_ld_exported_symbols_list=yes
7408 else
7409 lt_cv_ld_exported_symbols_list=no
7410 fi
7411 rm -f core conftest.err conftest.$ac_objext \
7412 conftest$ac_exeext conftest.$ac_ext
7413 LDFLAGS="$save_LDFLAGS"
7414
7415 fi
7416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7417 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7418 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
7419 $as_echo_n "checking for -force_load linker flag... " >&6; }
7420 if test "${lt_cv_ld_force_load+set}" = set; then :
7421 $as_echo_n "(cached) " >&6
7422 else
7423 lt_cv_ld_force_load=no
7424 cat > conftest.c << _LT_EOF
7425 int forced_loaded() { return 2;}
7426 _LT_EOF
7427 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
7428 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
7429 echo "$AR cru libconftest.a conftest.o" >&5
7430 $AR cru libconftest.a conftest.o 2>&5
7431 cat > conftest.c << _LT_EOF
7432 int main() { return 0;}
7433 _LT_EOF
7434 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
7435 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
7436 _lt_result=$?
7437 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
7438 lt_cv_ld_force_load=yes
7439 else
7440 cat conftest.err >&5
7441 fi
7442 rm -f conftest.err libconftest.a conftest conftest.c
7443 rm -rf conftest.dSYM
7444
7445 fi
7446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
7447 $as_echo "$lt_cv_ld_force_load" >&6; }
7448 case $host_os in
7449 rhapsody* | darwin1.[012])
7450 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7451 darwin1.*)
7452 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7453 darwin*) # darwin 5.x on
7454 # if running on 10.5 or later, the deployment target defaults
7455 # to the OS version, if on x86, and 10.4, the deployment
7456 # target defaults to 10.4. Don't you love it?
7457 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7458 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7459 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7460 10.[012][,.]*)
7461 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7462 10.*)
7463 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7464 esac
7465 ;;
7466 esac
7467 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7468 _lt_dar_single_mod='$single_module'
7469 fi
7470 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7471 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7472 else
7473 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
7474 fi
7475 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
7476 _lt_dsymutil='~$DSYMUTIL $lib || :'
7477 else
7478 _lt_dsymutil=
7479 fi
7480 ;;
7481 esac
7482
7483 for ac_header in dlfcn.h
7484 do :
7485 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7486 "
7487 if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
7488 cat >>confdefs.h <<_ACEOF
7489 #define HAVE_DLFCN_H 1
7490 _ACEOF
7491
7492 fi
7493
7494 done
7495
7496
7497
7498
7499
7500 # Set options
7501
7502
7503
7504 enable_dlopen=no
7505
7506
7507 enable_win32_dll=no
7508
7509
7510 # Check whether --enable-shared was given.
7511 if test "${enable_shared+set}" = set; then :
7512 enableval=$enable_shared; p=${PACKAGE-default}
7513 case $enableval in
7514 yes) enable_shared=yes ;;
7515 no) enable_shared=no ;;
7516 *)
7517 enable_shared=no
7518 # Look at the argument we got. We use all the common list separators.
7519 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7520 for pkg in $enableval; do
7521 IFS="$lt_save_ifs"
7522 if test "X$pkg" = "X$p"; then
7523 enable_shared=yes
7524 fi
7525 done
7526 IFS="$lt_save_ifs"
7527 ;;
7528 esac
7529 else
7530 enable_shared=yes
7531 fi
7532
7533
7534
7535
7536
7537
7538
7539
7540
7541 # Check whether --enable-static was given.
7542 if test "${enable_static+set}" = set; then :
7543 enableval=$enable_static; p=${PACKAGE-default}
7544 case $enableval in
7545 yes) enable_static=yes ;;
7546 no) enable_static=no ;;
7547 *)
7548 enable_static=no
7549 # Look at the argument we got. We use all the common list separators.
7550 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7551 for pkg in $enableval; do
7552 IFS="$lt_save_ifs"
7553 if test "X$pkg" = "X$p"; then
7554 enable_static=yes
7555 fi
7556 done
7557 IFS="$lt_save_ifs"
7558 ;;
7559 esac
7560 else
7561 enable_static=yes
7562 fi
7563
7564
7565
7566
7567
7568
7569
7570
7571
7572
7573 # Check whether --with-pic was given.
7574 if test "${with_pic+set}" = set; then :
7575 withval=$with_pic; pic_mode="$withval"
7576 else
7577 pic_mode=default
7578 fi
7579
7580
7581 test -z "$pic_mode" && pic_mode=default
7582
7583
7584
7585
7586
7587
7588
7589 # Check whether --enable-fast-install was given.
7590 if test "${enable_fast_install+set}" = set; then :
7591 enableval=$enable_fast_install; p=${PACKAGE-default}
7592 case $enableval in
7593 yes) enable_fast_install=yes ;;
7594 no) enable_fast_install=no ;;
7595 *)
7596 enable_fast_install=no
7597 # Look at the argument we got. We use all the common list separators.
7598 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7599 for pkg in $enableval; do
7600 IFS="$lt_save_ifs"
7601 if test "X$pkg" = "X$p"; then
7602 enable_fast_install=yes
7603 fi
7604 done
7605 IFS="$lt_save_ifs"
7606 ;;
7607 esac
7608 else
7609 enable_fast_install=yes
7610 fi
7611
7612
7613
7614
7615
7616
7617
7618
7619
7620
7621
7622 # This can be used to rebuild libtool when needed
7623 LIBTOOL_DEPS="$ltmain"
7624
7625 # Always use our own libtool.
7626 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
7627
7628
7629
7630
7631
7632
7633
7634
7635
7636
7637
7638
7639
7640
7641
7642
7643
7644
7645
7646
7647
7648
7649
7650
7651
7652
7653 test -z "$LN_S" && LN_S="ln -s"
7654
7655
7656
7657
7658
7659
7660
7661
7662
7663
7664
7665
7666
7667
7668 if test -n "${ZSH_VERSION+set}" ; then
7669 setopt NO_GLOB_SUBST
7670 fi
7671
7672 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
7673 $as_echo_n "checking for objdir... " >&6; }
7674 if test "${lt_cv_objdir+set}" = set; then :
7675 $as_echo_n "(cached) " >&6
7676 else
7677 rm -f .libs 2>/dev/null
7678 mkdir .libs 2>/dev/null
7679 if test -d .libs; then
7680 lt_cv_objdir=.libs
7681 else
7682 # MS-DOS does not allow filenames that begin with a dot.
7683 lt_cv_objdir=_libs
7684 fi
7685 rmdir .libs 2>/dev/null
7686 fi
7687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
7688 $as_echo "$lt_cv_objdir" >&6; }
7689 objdir=$lt_cv_objdir
7690
7691
7692
7693
7694
7695 cat >>confdefs.h <<_ACEOF
7696 #define LT_OBJDIR "$lt_cv_objdir/"
7697 _ACEOF
7698
7699
7700
7701
7702 case $host_os in
7703 aix3*)
7704 # AIX sometimes has problems with the GCC collect2 program. For some
7705 # reason, if we set the COLLECT_NAMES environment variable, the problems
7706 # vanish in a puff of smoke.
7707 if test "X${COLLECT_NAMES+set}" != Xset; then
7708 COLLECT_NAMES=
7709 export COLLECT_NAMES
7710 fi
7711 ;;
7712 esac
7713
7714 # Global variables:
7715 ofile=libtool
7716 can_build_shared=yes
7717
7718 # All known linkers require a `.a' archive for static linking (except MSVC,
7719 # which needs '.lib').
7720 libext=a
7721
7722 with_gnu_ld="$lt_cv_prog_gnu_ld"
7723
7724 old_CC="$CC"
7725 old_CFLAGS="$CFLAGS"
7726
7727 # Set sane defaults for various variables
7728 test -z "$CC" && CC=cc
7729 test -z "$LTCC" && LTCC=$CC
7730 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7731 test -z "$LD" && LD=ld
7732 test -z "$ac_objext" && ac_objext=o
7733
7734 for cc_temp in $compiler""; do
7735 case $cc_temp in
7736 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7737 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7738 \-*) ;;
7739 *) break;;
7740 esac
7741 done
7742 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
7743
7744
7745 # Only perform the check for file, if the check method requires it
7746 test -z "$MAGIC_CMD" && MAGIC_CMD=file
7747 case $deplibs_check_method in
7748 file_magic*)
7749 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7750 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
7751 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
7752 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
7753 $as_echo_n "(cached) " >&6
7754 else
7755 case $MAGIC_CMD in
7756 [\\/*] | ?:[\\/]*)
7757 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7758 ;;
7759 *)
7760 lt_save_MAGIC_CMD="$MAGIC_CMD"
7761 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7762 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7763 for ac_dir in $ac_dummy; do
7764 IFS="$lt_save_ifs"
7765 test -z "$ac_dir" && ac_dir=.
7766 if test -f $ac_dir/${ac_tool_prefix}file; then
7767 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7768 if test -n "$file_magic_test_file"; then
7769 case $deplibs_check_method in
7770 "file_magic "*)
7771 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7772 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7773 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7774 $EGREP "$file_magic_regex" > /dev/null; then
7775 :
7776 else
7777 cat <<_LT_EOF 1>&2
7778
7779 *** Warning: the command libtool uses to detect shared libraries,
7780 *** $file_magic_cmd, produces output that libtool cannot recognize.
7781 *** The result is that libtool may fail to recognize shared libraries
7782 *** as such. This will affect the creation of libtool libraries that
7783 *** depend on shared libraries, but programs linked with such libtool
7784 *** libraries will work regardless of this problem. Nevertheless, you
7785 *** may want to report the problem to your system manager and/or to
7786 *** bug-libtool@gnu.org
7787
7788 _LT_EOF
7789 fi ;;
7790 esac
7791 fi
7792 break
7793 fi
7794 done
7795 IFS="$lt_save_ifs"
7796 MAGIC_CMD="$lt_save_MAGIC_CMD"
7797 ;;
7798 esac
7799 fi
7800
7801 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7802 if test -n "$MAGIC_CMD"; then
7803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7804 $as_echo "$MAGIC_CMD" >&6; }
7805 else
7806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7807 $as_echo "no" >&6; }
7808 fi
7809
7810
7811
7812
7813
7814 if test -z "$lt_cv_path_MAGIC_CMD"; then
7815 if test -n "$ac_tool_prefix"; then
7816 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
7817 $as_echo_n "checking for file... " >&6; }
7818 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
7819 $as_echo_n "(cached) " >&6
7820 else
7821 case $MAGIC_CMD in
7822 [\\/*] | ?:[\\/]*)
7823 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7824 ;;
7825 *)
7826 lt_save_MAGIC_CMD="$MAGIC_CMD"
7827 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7828 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7829 for ac_dir in $ac_dummy; do
7830 IFS="$lt_save_ifs"
7831 test -z "$ac_dir" && ac_dir=.
7832 if test -f $ac_dir/file; then
7833 lt_cv_path_MAGIC_CMD="$ac_dir/file"
7834 if test -n "$file_magic_test_file"; then
7835 case $deplibs_check_method in
7836 "file_magic "*)
7837 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7838 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7839 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7840 $EGREP "$file_magic_regex" > /dev/null; then
7841 :
7842 else
7843 cat <<_LT_EOF 1>&2
7844
7845 *** Warning: the command libtool uses to detect shared libraries,
7846 *** $file_magic_cmd, produces output that libtool cannot recognize.
7847 *** The result is that libtool may fail to recognize shared libraries
7848 *** as such. This will affect the creation of libtool libraries that
7849 *** depend on shared libraries, but programs linked with such libtool
7850 *** libraries will work regardless of this problem. Nevertheless, you
7851 *** may want to report the problem to your system manager and/or to
7852 *** bug-libtool@gnu.org
7853
7854 _LT_EOF
7855 fi ;;
7856 esac
7857 fi
7858 break
7859 fi
7860 done
7861 IFS="$lt_save_ifs"
7862 MAGIC_CMD="$lt_save_MAGIC_CMD"
7863 ;;
7864 esac
7865 fi
7866
7867 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7868 if test -n "$MAGIC_CMD"; then
7869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7870 $as_echo "$MAGIC_CMD" >&6; }
7871 else
7872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7873 $as_echo "no" >&6; }
7874 fi
7875
7876
7877 else
7878 MAGIC_CMD=:
7879 fi
7880 fi
7881
7882 fi
7883 ;;
7884 esac
7885
7886 # Use C for the default configuration in the libtool script
7887
7888 lt_save_CC="$CC"
7889 ac_ext=c
7890 ac_cpp='$CPP $CPPFLAGS'
7891 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7892 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7893 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7894
7895
7896 # Source file extension for C test sources.
7897 ac_ext=c
7898
7899 # Object file extension for compiled C test sources.
7900 objext=o
7901 objext=$objext
7902
7903 # Code to be used in simple compile tests
7904 lt_simple_compile_test_code="int some_variable = 0;"
7905
7906 # Code to be used in simple link tests
7907 lt_simple_link_test_code='int main(){return(0);}'
7908
7909
7910
7911
7912
7913
7914
7915 # If no C compiler was specified, use CC.
7916 LTCC=${LTCC-"$CC"}
7917
7918 # If no C compiler flags were specified, use CFLAGS.
7919 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7920
7921 # Allow CC to be a program name with arguments.
7922 compiler=$CC
7923
7924 # Save the default compiler, since it gets overwritten when the other
7925 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
7926 compiler_DEFAULT=$CC
7927
7928 # save warnings/boilerplate of simple test code
7929 ac_outfile=conftest.$ac_objext
7930 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
7931 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7932 _lt_compiler_boilerplate=`cat conftest.err`
7933 $RM conftest*
7934
7935 ac_outfile=conftest.$ac_objext
7936 echo "$lt_simple_link_test_code" >conftest.$ac_ext
7937 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7938 _lt_linker_boilerplate=`cat conftest.err`
7939 $RM -r conftest*
7940
7941
7942 ## CAVEAT EMPTOR:
7943 ## There is no encapsulation within the following macros, do not change
7944 ## the running order or otherwise move them around unless you know exactly
7945 ## what you are doing...
7946 if test -n "$compiler"; then
7947
7948 lt_prog_compiler_no_builtin_flag=
7949
7950 if test "$GCC" = yes; then
7951 case $cc_basename in
7952 nvcc*)
7953 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
7954 *)
7955 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
7956 esac
7957
7958 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7959 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
7960 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
7961 $as_echo_n "(cached) " >&6
7962 else
7963 lt_cv_prog_compiler_rtti_exceptions=no
7964 ac_outfile=conftest.$ac_objext
7965 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7966 lt_compiler_flag="-fno-rtti -fno-exceptions"
7967 # Insert the option either (1) after the last *FLAGS variable, or
7968 # (2) before a word containing "conftest.", or (3) at the end.
7969 # Note that $ac_compile itself does not contain backslashes and begins
7970 # with a dollar sign (not a hyphen), so the echo should work correctly.
7971 # The option is referenced via a variable to avoid confusing sed.
7972 lt_compile=`echo "$ac_compile" | $SED \
7973 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7974 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7975 -e 's:$: $lt_compiler_flag:'`
7976 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
7977 (eval "$lt_compile" 2>conftest.err)
7978 ac_status=$?
7979 cat conftest.err >&5
7980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7981 if (exit $ac_status) && test -s "$ac_outfile"; then
7982 # The compiler can only warn and ignore the option if not recognized
7983 # So say no if there are warnings other than the usual output.
7984 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
7985 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7986 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7987 lt_cv_prog_compiler_rtti_exceptions=yes
7988 fi
7989 fi
7990 $RM conftest*
7991
7992 fi
7993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7994 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
7995
7996 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7997 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7998 else
7999 :
8000 fi
8001
8002 fi
8003
8004
8005
8006
8007
8008
8009 lt_prog_compiler_wl=
8010 lt_prog_compiler_pic=
8011 lt_prog_compiler_static=
8012
8013 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8014 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8015
8016 if test "$GCC" = yes; then
8017 lt_prog_compiler_wl='-Wl,'
8018 lt_prog_compiler_static='-static'
8019
8020 case $host_os in
8021 aix*)
8022 # All AIX code is PIC.
8023 if test "$host_cpu" = ia64; then
8024 # AIX 5 now supports IA64 processor
8025 lt_prog_compiler_static='-Bstatic'
8026 fi
8027 lt_prog_compiler_pic='-fPIC'
8028 ;;
8029
8030 amigaos*)
8031 case $host_cpu in
8032 powerpc)
8033 # see comment about AmigaOS4 .so support
8034 lt_prog_compiler_pic='-fPIC'
8035 ;;
8036 m68k)
8037 # FIXME: we need at least 68020 code to build shared libraries, but
8038 # adding the `-m68020' flag to GCC prevents building anything better,
8039 # like `-m68040'.
8040 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8041 ;;
8042 esac
8043 ;;
8044
8045 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8046 # PIC is the default for these OSes.
8047 ;;
8048
8049 mingw* | cygwin* | pw32* | os2* | cegcc*)
8050 # This hack is so that the source file can tell whether it is being
8051 # built for inclusion in a dll (and should export symbols for example).
8052 # Although the cygwin gcc ignores -fPIC, still need this for old-style
8053 # (--disable-auto-import) libraries
8054 lt_prog_compiler_pic='-DDLL_EXPORT'
8055 ;;
8056
8057 darwin* | rhapsody*)
8058 # PIC is the default on this platform
8059 # Common symbols not allowed in MH_DYLIB files
8060 lt_prog_compiler_pic='-fno-common'
8061 ;;
8062
8063 haiku*)
8064 # PIC is the default for Haiku.
8065 # The "-static" flag exists, but is broken.
8066 lt_prog_compiler_static=
8067 ;;
8068
8069 hpux*)
8070 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8071 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
8072 # sets the default TLS model and affects inlining.
8073 case $host_cpu in
8074 hppa*64*)
8075 # +Z the default
8076 ;;
8077 *)
8078 lt_prog_compiler_pic='-fPIC'
8079 ;;
8080 esac
8081 ;;
8082
8083 interix[3-9]*)
8084 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8085 # Instead, we relocate shared libraries at runtime.
8086 ;;
8087
8088 msdosdjgpp*)
8089 # Just because we use GCC doesn't mean we suddenly get shared libraries
8090 # on systems that don't support them.
8091 lt_prog_compiler_can_build_shared=no
8092 enable_shared=no
8093 ;;
8094
8095 *nto* | *qnx*)
8096 # QNX uses GNU C++, but need to define -shared option too, otherwise
8097 # it will coredump.
8098 lt_prog_compiler_pic='-fPIC -shared'
8099 ;;
8100
8101 sysv4*MP*)
8102 if test -d /usr/nec; then
8103 lt_prog_compiler_pic=-Kconform_pic
8104 fi
8105 ;;
8106
8107 *)
8108 lt_prog_compiler_pic='-fPIC'
8109 ;;
8110 esac
8111
8112 case $cc_basename in
8113 nvcc*) # Cuda Compiler Driver 2.2
8114 lt_prog_compiler_wl='-Xlinker '
8115 lt_prog_compiler_pic='-Xcompiler -fPIC'
8116 ;;
8117 esac
8118 else
8119 # PORTME Check for flag to pass linker flags through the system compiler.
8120 case $host_os in
8121 aix*)
8122 lt_prog_compiler_wl='-Wl,'
8123 if test "$host_cpu" = ia64; then
8124 # AIX 5 now supports IA64 processor
8125 lt_prog_compiler_static='-Bstatic'
8126 else
8127 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8128 fi
8129 ;;
8130
8131 mingw* | cygwin* | pw32* | os2* | cegcc*)
8132 # This hack is so that the source file can tell whether it is being
8133 # built for inclusion in a dll (and should export symbols for example).
8134 lt_prog_compiler_pic='-DDLL_EXPORT'
8135 ;;
8136
8137 hpux9* | hpux10* | hpux11*)
8138 lt_prog_compiler_wl='-Wl,'
8139 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8140 # not for PA HP-UX.
8141 case $host_cpu in
8142 hppa*64*|ia64*)
8143 # +Z the default
8144 ;;
8145 *)
8146 lt_prog_compiler_pic='+Z'
8147 ;;
8148 esac
8149 # Is there a better lt_prog_compiler_static that works with the bundled CC?
8150 lt_prog_compiler_static='${wl}-a ${wl}archive'
8151 ;;
8152
8153 irix5* | irix6* | nonstopux*)
8154 lt_prog_compiler_wl='-Wl,'
8155 # PIC (with -KPIC) is the default.
8156 lt_prog_compiler_static='-non_shared'
8157 ;;
8158
8159 linux* | k*bsd*-gnu | kopensolaris*-gnu)
8160 case $cc_basename in
8161 # old Intel for x86_64 which still supported -KPIC.
8162 ecc*)
8163 lt_prog_compiler_wl='-Wl,'
8164 lt_prog_compiler_pic='-KPIC'
8165 lt_prog_compiler_static='-static'
8166 ;;
8167 # icc used to be incompatible with GCC.
8168 # ICC 10 doesn't accept -KPIC any more.
8169 icc* | ifort*)
8170 lt_prog_compiler_wl='-Wl,'
8171 lt_prog_compiler_pic='-fPIC'
8172 lt_prog_compiler_static='-static'
8173 ;;
8174 # Lahey Fortran 8.1.
8175 lf95*)
8176 lt_prog_compiler_wl='-Wl,'
8177 lt_prog_compiler_pic='--shared'
8178 lt_prog_compiler_static='--static'
8179 ;;
8180 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
8181 # Portland Group compilers (*not* the Pentium gcc compiler,
8182 # which looks to be a dead project)
8183 lt_prog_compiler_wl='-Wl,'
8184 lt_prog_compiler_pic='-fpic'
8185 lt_prog_compiler_static='-Bstatic'
8186 ;;
8187 ccc*)
8188 lt_prog_compiler_wl='-Wl,'
8189 # All Alpha code is PIC.
8190 lt_prog_compiler_static='-non_shared'
8191 ;;
8192 xl* | bgxl* | bgf* | mpixl*)
8193 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
8194 lt_prog_compiler_wl='-Wl,'
8195 lt_prog_compiler_pic='-qpic'
8196 lt_prog_compiler_static='-qstaticlink'
8197 ;;
8198 *)
8199 case `$CC -V 2>&1 | sed 5q` in
8200 *Sun\ F* | *Sun*Fortran*)
8201 # Sun Fortran 8.3 passes all unrecognized flags to the linker
8202 lt_prog_compiler_pic='-KPIC'
8203 lt_prog_compiler_static='-Bstatic'
8204 lt_prog_compiler_wl=''
8205 ;;
8206 *Sun\ C*)
8207 # Sun C 5.9
8208 lt_prog_compiler_pic='-KPIC'
8209 lt_prog_compiler_static='-Bstatic'
8210 lt_prog_compiler_wl='-Wl,'
8211 ;;
8212 esac
8213 ;;
8214 esac
8215 ;;
8216
8217 newsos6)
8218 lt_prog_compiler_pic='-KPIC'
8219 lt_prog_compiler_static='-Bstatic'
8220 ;;
8221
8222 *nto* | *qnx*)
8223 # QNX uses GNU C++, but need to define -shared option too, otherwise
8224 # it will coredump.
8225 lt_prog_compiler_pic='-fPIC -shared'
8226 ;;
8227
8228 osf3* | osf4* | osf5*)
8229 lt_prog_compiler_wl='-Wl,'
8230 # All OSF/1 code is PIC.
8231 lt_prog_compiler_static='-non_shared'
8232 ;;
8233
8234 rdos*)
8235 lt_prog_compiler_static='-non_shared'
8236 ;;
8237
8238 solaris*)
8239 lt_prog_compiler_pic='-KPIC'
8240 lt_prog_compiler_static='-Bstatic'
8241 case $cc_basename in
8242 f77* | f90* | f95*)
8243 lt_prog_compiler_wl='-Qoption ld ';;
8244 *)
8245 lt_prog_compiler_wl='-Wl,';;
8246 esac
8247 ;;
8248
8249 sunos4*)
8250 lt_prog_compiler_wl='-Qoption ld '
8251 lt_prog_compiler_pic='-PIC'
8252 lt_prog_compiler_static='-Bstatic'
8253 ;;
8254
8255 sysv4 | sysv4.2uw2* | sysv4.3*)
8256 lt_prog_compiler_wl='-Wl,'
8257 lt_prog_compiler_pic='-KPIC'
8258 lt_prog_compiler_static='-Bstatic'
8259 ;;
8260
8261 sysv4*MP*)
8262 if test -d /usr/nec ;then
8263 lt_prog_compiler_pic='-Kconform_pic'
8264 lt_prog_compiler_static='-Bstatic'
8265 fi
8266 ;;
8267
8268 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8269 lt_prog_compiler_wl='-Wl,'
8270 lt_prog_compiler_pic='-KPIC'
8271 lt_prog_compiler_static='-Bstatic'
8272 ;;
8273
8274 unicos*)
8275 lt_prog_compiler_wl='-Wl,'
8276 lt_prog_compiler_can_build_shared=no
8277 ;;
8278
8279 uts4*)
8280 lt_prog_compiler_pic='-pic'
8281 lt_prog_compiler_static='-Bstatic'
8282 ;;
8283
8284 *)
8285 lt_prog_compiler_can_build_shared=no
8286 ;;
8287 esac
8288 fi
8289
8290 case $host_os in
8291 # For platforms which do not support PIC, -DPIC is meaningless:
8292 *djgpp*)
8293 lt_prog_compiler_pic=
8294 ;;
8295 *)
8296 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8297 ;;
8298 esac
8299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
8300 $as_echo "$lt_prog_compiler_pic" >&6; }
8301
8302
8303
8304
8305
8306
8307 #
8308 # Check to make sure the PIC flag actually works.
8309 #
8310 if test -n "$lt_prog_compiler_pic"; then
8311 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8312 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8313 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
8314 $as_echo_n "(cached) " >&6
8315 else
8316 lt_cv_prog_compiler_pic_works=no
8317 ac_outfile=conftest.$ac_objext
8318 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8319 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8320 # Insert the option either (1) after the last *FLAGS variable, or
8321 # (2) before a word containing "conftest.", or (3) at the end.
8322 # Note that $ac_compile itself does not contain backslashes and begins
8323 # with a dollar sign (not a hyphen), so the echo should work correctly.
8324 # The option is referenced via a variable to avoid confusing sed.
8325 lt_compile=`echo "$ac_compile" | $SED \
8326 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8327 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8328 -e 's:$: $lt_compiler_flag:'`
8329 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8330 (eval "$lt_compile" 2>conftest.err)
8331 ac_status=$?
8332 cat conftest.err >&5
8333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8334 if (exit $ac_status) && test -s "$ac_outfile"; then
8335 # The compiler can only warn and ignore the option if not recognized
8336 # So say no if there are warnings other than the usual output.
8337 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8338 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8339 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8340 lt_cv_prog_compiler_pic_works=yes
8341 fi
8342 fi
8343 $RM conftest*
8344
8345 fi
8346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8347 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8348
8349 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
8350 case $lt_prog_compiler_pic in
8351 "" | " "*) ;;
8352 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8353 esac
8354 else
8355 lt_prog_compiler_pic=
8356 lt_prog_compiler_can_build_shared=no
8357 fi
8358
8359 fi
8360
8361
8362
8363
8364
8365
8366 #
8367 # Check to make sure the static flag actually works.
8368 #
8369 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8370 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8371 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8372 if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
8373 $as_echo_n "(cached) " >&6
8374 else
8375 lt_cv_prog_compiler_static_works=no
8376 save_LDFLAGS="$LDFLAGS"
8377 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8378 echo "$lt_simple_link_test_code" > conftest.$ac_ext
8379 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8380 # The linker can only warn and ignore the option if not recognized
8381 # So say no if there are warnings
8382 if test -s conftest.err; then
8383 # Append any errors to the config.log.
8384 cat conftest.err 1>&5
8385 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
8386 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8387 if diff conftest.exp conftest.er2 >/dev/null; then
8388 lt_cv_prog_compiler_static_works=yes
8389 fi
8390 else
8391 lt_cv_prog_compiler_static_works=yes
8392 fi
8393 fi
8394 $RM -r conftest*
8395 LDFLAGS="$save_LDFLAGS"
8396
8397 fi
8398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
8399 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
8400
8401 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
8402 :
8403 else
8404 lt_prog_compiler_static=
8405 fi
8406
8407
8408
8409
8410
8411
8412
8413 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8414 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8415 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
8416 $as_echo_n "(cached) " >&6
8417 else
8418 lt_cv_prog_compiler_c_o=no
8419 $RM -r conftest 2>/dev/null
8420 mkdir conftest
8421 cd conftest
8422 mkdir out
8423 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8424
8425 lt_compiler_flag="-o out/conftest2.$ac_objext"
8426 # Insert the option either (1) after the last *FLAGS variable, or
8427 # (2) before a word containing "conftest.", or (3) at the end.
8428 # Note that $ac_compile itself does not contain backslashes and begins
8429 # with a dollar sign (not a hyphen), so the echo should work correctly.
8430 lt_compile=`echo "$ac_compile" | $SED \
8431 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8432 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8433 -e 's:$: $lt_compiler_flag:'`
8434 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8435 (eval "$lt_compile" 2>out/conftest.err)
8436 ac_status=$?
8437 cat out/conftest.err >&5
8438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8439 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8440 then
8441 # The compiler can only warn and ignore the option if not recognized
8442 # So say no if there are warnings
8443 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8444 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8445 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8446 lt_cv_prog_compiler_c_o=yes
8447 fi
8448 fi
8449 chmod u+w . 2>&5
8450 $RM conftest*
8451 # SGI C++ compiler will create directory out/ii_files/ for
8452 # template instantiation
8453 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8454 $RM out/* && rmdir out
8455 cd ..
8456 $RM -r conftest
8457 $RM conftest*
8458
8459 fi
8460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8461 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8462
8463
8464
8465
8466
8467
8468 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8469 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8470 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
8471 $as_echo_n "(cached) " >&6
8472 else
8473 lt_cv_prog_compiler_c_o=no
8474 $RM -r conftest 2>/dev/null
8475 mkdir conftest
8476 cd conftest
8477 mkdir out
8478 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8479
8480 lt_compiler_flag="-o out/conftest2.$ac_objext"
8481 # Insert the option either (1) after the last *FLAGS variable, or
8482 # (2) before a word containing "conftest.", or (3) at the end.
8483 # Note that $ac_compile itself does not contain backslashes and begins
8484 # with a dollar sign (not a hyphen), so the echo should work correctly.
8485 lt_compile=`echo "$ac_compile" | $SED \
8486 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8487 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8488 -e 's:$: $lt_compiler_flag:'`
8489 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8490 (eval "$lt_compile" 2>out/conftest.err)
8491 ac_status=$?
8492 cat out/conftest.err >&5
8493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8494 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8495 then
8496 # The compiler can only warn and ignore the option if not recognized
8497 # So say no if there are warnings
8498 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8499 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8500 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8501 lt_cv_prog_compiler_c_o=yes
8502 fi
8503 fi
8504 chmod u+w . 2>&5
8505 $RM conftest*
8506 # SGI C++ compiler will create directory out/ii_files/ for
8507 # template instantiation
8508 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8509 $RM out/* && rmdir out
8510 cd ..
8511 $RM -r conftest
8512 $RM conftest*
8513
8514 fi
8515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8516 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8517
8518
8519
8520
8521 hard_links="nottested"
8522 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8523 # do not overwrite the value of need_locks provided by the user
8524 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
8525 $as_echo_n "checking if we can lock with hard links... " >&6; }
8526 hard_links=yes
8527 $RM conftest*
8528 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8529 touch conftest.a
8530 ln conftest.a conftest.b 2>&5 || hard_links=no
8531 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
8533 $as_echo "$hard_links" >&6; }
8534 if test "$hard_links" = no; then
8535 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8536 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8537 need_locks=warn
8538 fi
8539 else
8540 need_locks=no
8541 fi
8542
8543
8544
8545
8546
8547
8548 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8549 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
8550
8551 runpath_var=
8552 allow_undefined_flag=
8553 always_export_symbols=no
8554 archive_cmds=
8555 archive_expsym_cmds=
8556 compiler_needs_object=no
8557 enable_shared_with_static_runtimes=no
8558 export_dynamic_flag_spec=
8559 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8560 hardcode_automatic=no
8561 hardcode_direct=no
8562 hardcode_direct_absolute=no
8563 hardcode_libdir_flag_spec=
8564 hardcode_libdir_flag_spec_ld=
8565 hardcode_libdir_separator=
8566 hardcode_minus_L=no
8567 hardcode_shlibpath_var=unsupported
8568 inherit_rpath=no
8569 link_all_deplibs=unknown
8570 module_cmds=
8571 module_expsym_cmds=
8572 old_archive_from_new_cmds=
8573 old_archive_from_expsyms_cmds=
8574 thread_safe_flag_spec=
8575 whole_archive_flag_spec=
8576 # include_expsyms should be a list of space-separated symbols to be *always*
8577 # included in the symbol list
8578 include_expsyms=
8579 # exclude_expsyms can be an extended regexp of symbols to exclude
8580 # it will be wrapped by ` (' and `)$', so one must not match beginning or
8581 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8582 # as well as any symbol that contains `d'.
8583 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
8584 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8585 # platforms (ab)use it in PIC code, but their linkers get confused if
8586 # the symbol is explicitly referenced. Since portable code cannot
8587 # rely on this symbol name, it's probably fine to never include it in
8588 # preloaded symbol tables.
8589 # Exclude shared library initialization/finalization symbols.
8590 extract_expsyms_cmds=
8591
8592 case $host_os in
8593 cygwin* | mingw* | pw32* | cegcc*)
8594 # FIXME: the MSVC++ port hasn't been tested in a loooong time
8595 # When not using gcc, we currently assume that we are using
8596 # Microsoft Visual C++.
8597 if test "$GCC" != yes; then
8598 with_gnu_ld=no
8599 fi
8600 ;;
8601 interix*)
8602 # we just hope/assume this is gcc and not c89 (= MSVC++)
8603 with_gnu_ld=yes
8604 ;;
8605 openbsd*)
8606 with_gnu_ld=no
8607 ;;
8608 esac
8609
8610 ld_shlibs=yes
8611
8612 # On some targets, GNU ld is compatible enough with the native linker
8613 # that we're better off using the native interface for both.
8614 lt_use_gnu_ld_interface=no
8615 if test "$with_gnu_ld" = yes; then
8616 case $host_os in
8617 aix*)
8618 # The AIX port of GNU ld has always aspired to compatibility
8619 # with the native linker. However, as the warning in the GNU ld
8620 # block says, versions before 2.19.5* couldn't really create working
8621 # shared libraries, regardless of the interface used.
8622 case `$LD -v 2>&1` in
8623 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
8624 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
8625 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
8626 *)
8627 lt_use_gnu_ld_interface=yes
8628 ;;
8629 esac
8630 ;;
8631 *)
8632 lt_use_gnu_ld_interface=yes
8633 ;;
8634 esac
8635 fi
8636
8637 if test "$lt_use_gnu_ld_interface" = yes; then
8638 # If archive_cmds runs LD, not CC, wlarc should be empty
8639 wlarc='${wl}'
8640
8641 # Set some defaults for GNU ld with shared library support. These
8642 # are reset later if shared libraries are not supported. Putting them
8643 # here allows them to be overridden if necessary.
8644 runpath_var=LD_RUN_PATH
8645 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8646 export_dynamic_flag_spec='${wl}--export-dynamic'
8647 # ancient GNU ld didn't support --whole-archive et. al.
8648 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
8649 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8650 else
8651 whole_archive_flag_spec=
8652 fi
8653 supports_anon_versioning=no
8654 case `$LD -v 2>&1` in
8655 *GNU\ gold*) supports_anon_versioning=yes ;;
8656 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8657 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8658 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8659 *\ 2.11.*) ;; # other 2.11 versions
8660 *) supports_anon_versioning=yes ;;
8661 esac
8662
8663 # See if GNU ld supports shared libraries.
8664 case $host_os in
8665 aix[3-9]*)
8666 # On AIX/PPC, the GNU linker is very broken
8667 if test "$host_cpu" != ia64; then
8668 ld_shlibs=no
8669 cat <<_LT_EOF 1>&2
8670
8671 *** Warning: the GNU linker, at least up to release 2.19, is reported
8672 *** to be unable to reliably create shared libraries on AIX.
8673 *** Therefore, libtool is disabling shared libraries support. If you
8674 *** really care for shared libraries, you may want to install binutils
8675 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
8676 *** You will then need to restart the configuration process.
8677
8678 _LT_EOF
8679 fi
8680 ;;
8681
8682 amigaos*)
8683 case $host_cpu in
8684 powerpc)
8685 # see comment about AmigaOS4 .so support
8686 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8687 archive_expsym_cmds=''
8688 ;;
8689 m68k)
8690 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)'
8691 hardcode_libdir_flag_spec='-L$libdir'
8692 hardcode_minus_L=yes
8693 ;;
8694 esac
8695 ;;
8696
8697 beos*)
8698 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8699 allow_undefined_flag=unsupported
8700 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8701 # support --undefined. This deserves some investigation. FIXME
8702 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8703 else
8704 ld_shlibs=no
8705 fi
8706 ;;
8707
8708 cygwin* | mingw* | pw32* | cegcc*)
8709 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8710 # as there is no search path for DLLs.
8711 hardcode_libdir_flag_spec='-L$libdir'
8712 export_dynamic_flag_spec='${wl}--export-all-symbols'
8713 allow_undefined_flag=unsupported
8714 always_export_symbols=no
8715 enable_shared_with_static_runtimes=yes
8716 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
8717
8718 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
8719 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8720 # If the export-symbols file already is a .def file (1st line
8721 # is EXPORTS), use it as is; otherwise, prepend...
8722 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8723 cp $export_symbols $output_objdir/$soname.def;
8724 else
8725 echo EXPORTS > $output_objdir/$soname.def;
8726 cat $export_symbols >> $output_objdir/$soname.def;
8727 fi~
8728 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8729 else
8730 ld_shlibs=no
8731 fi
8732 ;;
8733
8734 haiku*)
8735 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8736 link_all_deplibs=yes
8737 ;;
8738
8739 interix[3-9]*)
8740 hardcode_direct=no
8741 hardcode_shlibpath_var=no
8742 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8743 export_dynamic_flag_spec='${wl}-E'
8744 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8745 # Instead, shared libraries are loaded at an image base (0x10000000 by
8746 # default) and relocated if they conflict, which is a slow very memory
8747 # consuming and fragmenting process. To avoid this, we pick a random,
8748 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8749 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
8750 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8751 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'
8752 ;;
8753
8754 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
8755 tmp_diet=no
8756 if test "$host_os" = linux-dietlibc; then
8757 case $cc_basename in
8758 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
8759 esac
8760 fi
8761 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
8762 && test "$tmp_diet" = no
8763 then
8764 tmp_addflag=' $pic_flag'
8765 tmp_sharedflag='-shared'
8766 case $cc_basename,$host_cpu in
8767 pgcc*) # Portland Group C compiler
8768 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'
8769 tmp_addflag=' $pic_flag'
8770 ;;
8771 pgf77* | pgf90* | pgf95* | pgfortran*)
8772 # Portland Group f77 and f90 compilers
8773 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'
8774 tmp_addflag=' $pic_flag -Mnomain' ;;
8775 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
8776 tmp_addflag=' -i_dynamic' ;;
8777 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
8778 tmp_addflag=' -i_dynamic -nofor_main' ;;
8779 ifc* | ifort*) # Intel Fortran compiler
8780 tmp_addflag=' -nofor_main' ;;
8781 lf95*) # Lahey Fortran 8.1
8782 whole_archive_flag_spec=
8783 tmp_sharedflag='--shared' ;;
8784 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
8785 tmp_sharedflag='-qmkshrobj'
8786 tmp_addflag= ;;
8787 nvcc*) # Cuda Compiler Driver 2.2
8788 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'
8789 compiler_needs_object=yes
8790 ;;
8791 esac
8792 case `$CC -V 2>&1 | sed 5q` in
8793 *Sun\ C*) # Sun C 5.9
8794 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'
8795 compiler_needs_object=yes
8796 tmp_sharedflag='-G' ;;
8797 *Sun\ F*) # Sun Fortran 8.3
8798 tmp_sharedflag='-G' ;;
8799 esac
8800 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8801
8802 if test "x$supports_anon_versioning" = xyes; then
8803 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8804 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8805 echo "local: *; };" >> $output_objdir/$libname.ver~
8806 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8807 fi
8808
8809 case $cc_basename in
8810 xlf* | bgf* | bgxlf* | mpixlf*)
8811 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
8812 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
8813 hardcode_libdir_flag_spec=
8814 hardcode_libdir_flag_spec_ld='-rpath $libdir'
8815 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
8816 if test "x$supports_anon_versioning" = xyes; then
8817 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8818 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8819 echo "local: *; };" >> $output_objdir/$libname.ver~
8820 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
8821 fi
8822 ;;
8823 esac
8824 else
8825 ld_shlibs=no
8826 fi
8827 ;;
8828
8829 netbsd*)
8830 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8831 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8832 wlarc=
8833 else
8834 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8835 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8836 fi
8837 ;;
8838
8839 solaris*)
8840 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
8841 ld_shlibs=no
8842 cat <<_LT_EOF 1>&2
8843
8844 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
8845 *** create shared libraries on Solaris systems. Therefore, libtool
8846 *** is disabling shared libraries support. We urge you to upgrade GNU
8847 *** binutils to release 2.9.1 or newer. Another option is to modify
8848 *** your PATH or compiler configuration so that the native linker is
8849 *** used, and then restart.
8850
8851 _LT_EOF
8852 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8853 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8854 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8855 else
8856 ld_shlibs=no
8857 fi
8858 ;;
8859
8860 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8861 case `$LD -v 2>&1` in
8862 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8863 ld_shlibs=no
8864 cat <<_LT_EOF 1>&2
8865
8866 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8867 *** reliably create shared libraries on SCO systems. Therefore, libtool
8868 *** is disabling shared libraries support. We urge you to upgrade GNU
8869 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
8870 *** your PATH or compiler configuration so that the native linker is
8871 *** used, and then restart.
8872
8873 _LT_EOF
8874 ;;
8875 *)
8876 # For security reasons, it is highly recommended that you always
8877 # use absolute paths for naming shared libraries, and exclude the
8878 # DT_RUNPATH tag from executables and libraries. But doing so
8879 # requires that you compile everything twice, which is a pain.
8880 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8881 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8882 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8883 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8884 else
8885 ld_shlibs=no
8886 fi
8887 ;;
8888 esac
8889 ;;
8890
8891 sunos4*)
8892 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8893 wlarc=
8894 hardcode_direct=yes
8895 hardcode_shlibpath_var=no
8896 ;;
8897
8898 *)
8899 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8900 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8901 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8902 else
8903 ld_shlibs=no
8904 fi
8905 ;;
8906 esac
8907
8908 if test "$ld_shlibs" = no; then
8909 runpath_var=
8910 hardcode_libdir_flag_spec=
8911 export_dynamic_flag_spec=
8912 whole_archive_flag_spec=
8913 fi
8914 else
8915 # PORTME fill in a description of your system's linker (not GNU ld)
8916 case $host_os in
8917 aix3*)
8918 allow_undefined_flag=unsupported
8919 always_export_symbols=yes
8920 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'
8921 # Note: this linker hardcodes the directories in LIBPATH if there
8922 # are no directories specified by -L.
8923 hardcode_minus_L=yes
8924 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
8925 # Neither direct hardcoding nor static linking is supported with a
8926 # broken collect2.
8927 hardcode_direct=unsupported
8928 fi
8929 ;;
8930
8931 aix[4-9]*)
8932 if test "$host_cpu" = ia64; then
8933 # On IA64, the linker does run time linking by default, so we don't
8934 # have to do anything special.
8935 aix_use_runtimelinking=no
8936 exp_sym_flag='-Bexport'
8937 no_entry_flag=""
8938 else
8939 # If we're using GNU nm, then we don't want the "-C" option.
8940 # -C means demangle to AIX nm, but means don't demangle with GNU nm
8941 # Also, AIX nm treats weak defined symbols like other global
8942 # defined symbols, whereas GNU nm marks them as "W".
8943 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
8944 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'
8945 else
8946 export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
8947 fi
8948 aix_use_runtimelinking=no
8949
8950 # Test if we are trying to use run time linking or normal
8951 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
8952 # need to do runtime linking.
8953 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
8954 for ld_flag in $LDFLAGS; do
8955 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8956 aix_use_runtimelinking=yes
8957 break
8958 fi
8959 done
8960 ;;
8961 esac
8962
8963 exp_sym_flag='-bexport'
8964 no_entry_flag='-bnoentry'
8965 fi
8966
8967 # When large executables or shared objects are built, AIX ld can
8968 # have problems creating the table of contents. If linking a library
8969 # or program results in "error TOC overflow" add -mminimal-toc to
8970 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
8971 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8972
8973 archive_cmds=''
8974 hardcode_direct=yes
8975 hardcode_direct_absolute=yes
8976 hardcode_libdir_separator=':'
8977 link_all_deplibs=yes
8978 file_list_spec='${wl}-f,'
8979
8980 if test "$GCC" = yes; then
8981 case $host_os in aix4.[012]|aix4.[012].*)
8982 # We only want to do this on AIX 4.2 and lower, the check
8983 # below for broken collect2 doesn't work under 4.3+
8984 collect2name=`${CC} -print-prog-name=collect2`
8985 if test -f "$collect2name" &&
8986 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
8987 then
8988 # We have reworked collect2
8989 :
8990 else
8991 # We have old collect2
8992 hardcode_direct=unsupported
8993 # It fails to find uninstalled libraries when the uninstalled
8994 # path is not listed in the libpath. Setting hardcode_minus_L
8995 # to unsupported forces relinking
8996 hardcode_minus_L=yes
8997 hardcode_libdir_flag_spec='-L$libdir'
8998 hardcode_libdir_separator=
8999 fi
9000 ;;
9001 esac
9002 shared_flag='-shared'
9003 if test "$aix_use_runtimelinking" = yes; then
9004 shared_flag="$shared_flag "'${wl}-G'
9005 fi
9006 else
9007 # not using gcc
9008 if test "$host_cpu" = ia64; then
9009 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9010 # chokes on -Wl,-G. The following line is correct:
9011 shared_flag='-G'
9012 else
9013 if test "$aix_use_runtimelinking" = yes; then
9014 shared_flag='${wl}-G'
9015 else
9016 shared_flag='${wl}-bM:SRE'
9017 fi
9018 fi
9019 fi
9020
9021 export_dynamic_flag_spec='${wl}-bexpall'
9022 # It seems that -bexpall does not export symbols beginning with
9023 # underscore (_), so it is better to generate a list of symbols to export.
9024 always_export_symbols=yes
9025 if test "$aix_use_runtimelinking" = yes; then
9026 # Warning - without using the other runtime loading flags (-brtl),
9027 # -berok will link without error, but may produce a broken library.
9028 allow_undefined_flag='-berok'
9029 # Determine the default libpath from the value encoded in an
9030 # empty executable.
9031 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9032 /* end confdefs.h. */
9033
9034 int
9035 main ()
9036 {
9037
9038 ;
9039 return 0;
9040 }
9041 _ACEOF
9042 if ac_fn_c_try_link "$LINENO"; then :
9043
9044 lt_aix_libpath_sed='
9045 /Import File Strings/,/^$/ {
9046 /^0/ {
9047 s/^0 *\(.*\)$/\1/
9048 p
9049 }
9050 }'
9051 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9052 # Check for a 64-bit object if we didn't find anything.
9053 if test -z "$aix_libpath"; then
9054 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9055 fi
9056 fi
9057 rm -f core conftest.err conftest.$ac_objext \
9058 conftest$ac_exeext conftest.$ac_ext
9059 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9060
9061 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9062 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"
9063 else
9064 if test "$host_cpu" = ia64; then
9065 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9066 allow_undefined_flag="-z nodefs"
9067 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"
9068 else
9069 # Determine the default libpath from the value encoded in an
9070 # empty executable.
9071 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9072 /* end confdefs.h. */
9073
9074 int
9075 main ()
9076 {
9077
9078 ;
9079 return 0;
9080 }
9081 _ACEOF
9082 if ac_fn_c_try_link "$LINENO"; then :
9083
9084 lt_aix_libpath_sed='
9085 /Import File Strings/,/^$/ {
9086 /^0/ {
9087 s/^0 *\(.*\)$/\1/
9088 p
9089 }
9090 }'
9091 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9092 # Check for a 64-bit object if we didn't find anything.
9093 if test -z "$aix_libpath"; then
9094 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9095 fi
9096 fi
9097 rm -f core conftest.err conftest.$ac_objext \
9098 conftest$ac_exeext conftest.$ac_ext
9099 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9100
9101 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9102 # Warning - without using the other run time loading flags,
9103 # -berok will link without error, but may produce a broken library.
9104 no_undefined_flag=' ${wl}-bernotok'
9105 allow_undefined_flag=' ${wl}-berok'
9106 if test "$with_gnu_ld" = yes; then
9107 # We only use this code for GNU lds that support --whole-archive.
9108 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
9109 else
9110 # Exported symbols can be pulled into shared objects from archives
9111 whole_archive_flag_spec='$convenience'
9112 fi
9113 archive_cmds_need_lc=yes
9114 # This is similar to how AIX traditionally builds its shared libraries.
9115 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'
9116 fi
9117 fi
9118 ;;
9119
9120 amigaos*)
9121 case $host_cpu in
9122 powerpc)
9123 # see comment about AmigaOS4 .so support
9124 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9125 archive_expsym_cmds=''
9126 ;;
9127 m68k)
9128 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)'
9129 hardcode_libdir_flag_spec='-L$libdir'
9130 hardcode_minus_L=yes
9131 ;;
9132 esac
9133 ;;
9134
9135 bsdi[45]*)
9136 export_dynamic_flag_spec=-rdynamic
9137 ;;
9138
9139 cygwin* | mingw* | pw32* | cegcc*)
9140 # When not using gcc, we currently assume that we are using
9141 # Microsoft Visual C++.
9142 # hardcode_libdir_flag_spec is actually meaningless, as there is
9143 # no search path for DLLs.
9144 hardcode_libdir_flag_spec=' '
9145 allow_undefined_flag=unsupported
9146 # Tell ltmain to make .lib files, not .a files.
9147 libext=lib
9148 # Tell ltmain to make .dll files, not .so files.
9149 shrext_cmds=".dll"
9150 # FIXME: Setting linknames here is a bad hack.
9151 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
9152 # The linker will automatically build a .lib file if we build a DLL.
9153 old_archive_from_new_cmds='true'
9154 # FIXME: Should let the user specify the lib program.
9155 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9156 fix_srcfile_path='`cygpath -w "$srcfile"`'
9157 enable_shared_with_static_runtimes=yes
9158 ;;
9159
9160 darwin* | rhapsody*)
9161
9162
9163 archive_cmds_need_lc=no
9164 hardcode_direct=no
9165 hardcode_automatic=yes
9166 hardcode_shlibpath_var=unsupported
9167 if test "$lt_cv_ld_force_load" = "yes"; then
9168 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\"`'
9169 else
9170 whole_archive_flag_spec=''
9171 fi
9172 link_all_deplibs=yes
9173 allow_undefined_flag="$_lt_dar_allow_undefined"
9174 case $cc_basename in
9175 ifort*) _lt_dar_can_shared=yes ;;
9176 *) _lt_dar_can_shared=$GCC ;;
9177 esac
9178 if test "$_lt_dar_can_shared" = "yes"; then
9179 output_verbose_link_cmd=func_echo_all
9180 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9181 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9182 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}"
9183 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}"
9184
9185 else
9186 ld_shlibs=no
9187 fi
9188
9189 ;;
9190
9191 dgux*)
9192 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9193 hardcode_libdir_flag_spec='-L$libdir'
9194 hardcode_shlibpath_var=no
9195 ;;
9196
9197 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9198 # support. Future versions do this automatically, but an explicit c++rt0.o
9199 # does not break anything, and helps significantly (at the cost of a little
9200 # extra space).
9201 freebsd2.2*)
9202 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9203 hardcode_libdir_flag_spec='-R$libdir'
9204 hardcode_direct=yes
9205 hardcode_shlibpath_var=no
9206 ;;
9207
9208 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9209 freebsd2.*)
9210 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9211 hardcode_direct=yes
9212 hardcode_minus_L=yes
9213 hardcode_shlibpath_var=no
9214 ;;
9215
9216 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9217 freebsd* | dragonfly*)
9218 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
9219 hardcode_libdir_flag_spec='-R$libdir'
9220 hardcode_direct=yes
9221 hardcode_shlibpath_var=no
9222 ;;
9223
9224 hpux9*)
9225 if test "$GCC" = yes; then
9226 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'
9227 else
9228 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'
9229 fi
9230 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9231 hardcode_libdir_separator=:
9232 hardcode_direct=yes
9233
9234 # hardcode_minus_L: Not really in the search PATH,
9235 # but as the default location of the library.
9236 hardcode_minus_L=yes
9237 export_dynamic_flag_spec='${wl}-E'
9238 ;;
9239
9240 hpux10*)
9241 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9242 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9243 else
9244 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9245 fi
9246 if test "$with_gnu_ld" = no; then
9247 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9248 hardcode_libdir_flag_spec_ld='+b $libdir'
9249 hardcode_libdir_separator=:
9250 hardcode_direct=yes
9251 hardcode_direct_absolute=yes
9252 export_dynamic_flag_spec='${wl}-E'
9253 # hardcode_minus_L: Not really in the search PATH,
9254 # but as the default location of the library.
9255 hardcode_minus_L=yes
9256 fi
9257 ;;
9258
9259 hpux11*)
9260 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9261 case $host_cpu in
9262 hppa*64*)
9263 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9264 ;;
9265 ia64*)
9266 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9267 ;;
9268 *)
9269 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9270 ;;
9271 esac
9272 else
9273 case $host_cpu in
9274 hppa*64*)
9275 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9276 ;;
9277 ia64*)
9278 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9279 ;;
9280 *)
9281
9282 # Older versions of the 11.00 compiler do not understand -b yet
9283 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
9284 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
9285 $as_echo_n "checking if $CC understands -b... " >&6; }
9286 if test "${lt_cv_prog_compiler__b+set}" = set; then :
9287 $as_echo_n "(cached) " >&6
9288 else
9289 lt_cv_prog_compiler__b=no
9290 save_LDFLAGS="$LDFLAGS"
9291 LDFLAGS="$LDFLAGS -b"
9292 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9293 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9294 # The linker can only warn and ignore the option if not recognized
9295 # So say no if there are warnings
9296 if test -s conftest.err; then
9297 # Append any errors to the config.log.
9298 cat conftest.err 1>&5
9299 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9300 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9301 if diff conftest.exp conftest.er2 >/dev/null; then
9302 lt_cv_prog_compiler__b=yes
9303 fi
9304 else
9305 lt_cv_prog_compiler__b=yes
9306 fi
9307 fi
9308 $RM -r conftest*
9309 LDFLAGS="$save_LDFLAGS"
9310
9311 fi
9312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
9313 $as_echo "$lt_cv_prog_compiler__b" >&6; }
9314
9315 if test x"$lt_cv_prog_compiler__b" = xyes; then
9316 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9317 else
9318 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9319 fi
9320
9321 ;;
9322 esac
9323 fi
9324 if test "$with_gnu_ld" = no; then
9325 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9326 hardcode_libdir_separator=:
9327
9328 case $host_cpu in
9329 hppa*64*|ia64*)
9330 hardcode_direct=no
9331 hardcode_shlibpath_var=no
9332 ;;
9333 *)
9334 hardcode_direct=yes
9335 hardcode_direct_absolute=yes
9336 export_dynamic_flag_spec='${wl}-E'
9337
9338 # hardcode_minus_L: Not really in the search PATH,
9339 # but as the default location of the library.
9340 hardcode_minus_L=yes
9341 ;;
9342 esac
9343 fi
9344 ;;
9345
9346 irix5* | irix6* | nonstopux*)
9347 if test "$GCC" = yes; then
9348 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'
9349 # Try to use the -exported_symbol ld option, if it does not
9350 # work, assume that -exports_file does not work either and
9351 # implicitly export all symbols.
9352 save_LDFLAGS="$LDFLAGS"
9353 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
9354 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9355 /* end confdefs.h. */
9356 int foo(void) {}
9357 _ACEOF
9358 if ac_fn_c_try_link "$LINENO"; then :
9359 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'
9360
9361 fi
9362 rm -f core conftest.err conftest.$ac_objext \
9363 conftest$ac_exeext conftest.$ac_ext
9364 LDFLAGS="$save_LDFLAGS"
9365 else
9366 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'
9367 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'
9368 fi
9369 archive_cmds_need_lc='no'
9370 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9371 hardcode_libdir_separator=:
9372 inherit_rpath=yes
9373 link_all_deplibs=yes
9374 ;;
9375
9376 netbsd*)
9377 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9378 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
9379 else
9380 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
9381 fi
9382 hardcode_libdir_flag_spec='-R$libdir'
9383 hardcode_direct=yes
9384 hardcode_shlibpath_var=no
9385 ;;
9386
9387 newsos6)
9388 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9389 hardcode_direct=yes
9390 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9391 hardcode_libdir_separator=:
9392 hardcode_shlibpath_var=no
9393 ;;
9394
9395 *nto* | *qnx*)
9396 ;;
9397
9398 openbsd*)
9399 if test -f /usr/libexec/ld.so; then
9400 hardcode_direct=yes
9401 hardcode_shlibpath_var=no
9402 hardcode_direct_absolute=yes
9403 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9404 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9405 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9406 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9407 export_dynamic_flag_spec='${wl}-E'
9408 else
9409 case $host_os in
9410 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9411 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9412 hardcode_libdir_flag_spec='-R$libdir'
9413 ;;
9414 *)
9415 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9416 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9417 ;;
9418 esac
9419 fi
9420 else
9421 ld_shlibs=no
9422 fi
9423 ;;
9424
9425 os2*)
9426 hardcode_libdir_flag_spec='-L$libdir'
9427 hardcode_minus_L=yes
9428 allow_undefined_flag=unsupported
9429 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'
9430 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9431 ;;
9432
9433 osf3*)
9434 if test "$GCC" = yes; then
9435 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9436 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'
9437 else
9438 allow_undefined_flag=' -expect_unresolved \*'
9439 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'
9440 fi
9441 archive_cmds_need_lc='no'
9442 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9443 hardcode_libdir_separator=:
9444 ;;
9445
9446 osf4* | osf5*) # as osf3* with the addition of -msym flag
9447 if test "$GCC" = yes; then
9448 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9449 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'
9450 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9451 else
9452 allow_undefined_flag=' -expect_unresolved \*'
9453 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'
9454 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~
9455 $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'
9456
9457 # Both c and cxx compiler support -rpath directly
9458 hardcode_libdir_flag_spec='-rpath $libdir'
9459 fi
9460 archive_cmds_need_lc='no'
9461 hardcode_libdir_separator=:
9462 ;;
9463
9464 solaris*)
9465 no_undefined_flag=' -z defs'
9466 if test "$GCC" = yes; then
9467 wlarc='${wl}'
9468 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9469 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9470 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9471 else
9472 case `$CC -V 2>&1` in
9473 *"Compilers 5.0"*)
9474 wlarc=''
9475 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9476 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9477 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
9478 ;;
9479 *)
9480 wlarc='${wl}'
9481 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
9482 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9483 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9484 ;;
9485 esac
9486 fi
9487 hardcode_libdir_flag_spec='-R$libdir'
9488 hardcode_shlibpath_var=no
9489 case $host_os in
9490 solaris2.[0-5] | solaris2.[0-5].*) ;;
9491 *)
9492 # The compiler driver will combine and reorder linker options,
9493 # but understands `-z linker_flag'. GCC discards it without `$wl',
9494 # but is careful enough not to reorder.
9495 # Supported since Solaris 2.6 (maybe 2.5.1?)
9496 if test "$GCC" = yes; then
9497 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9498 else
9499 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
9500 fi
9501 ;;
9502 esac
9503 link_all_deplibs=yes
9504 ;;
9505
9506 sunos4*)
9507 if test "x$host_vendor" = xsequent; then
9508 # Use $CC to link under sequent, because it throws in some extra .o
9509 # files that make .init and .fini sections work.
9510 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9511 else
9512 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9513 fi
9514 hardcode_libdir_flag_spec='-L$libdir'
9515 hardcode_direct=yes
9516 hardcode_minus_L=yes
9517 hardcode_shlibpath_var=no
9518 ;;
9519
9520 sysv4)
9521 case $host_vendor in
9522 sni)
9523 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9524 hardcode_direct=yes # is this really true???
9525 ;;
9526 siemens)
9527 ## LD is ld it makes a PLAMLIB
9528 ## CC just makes a GrossModule.
9529 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9530 reload_cmds='$CC -r -o $output$reload_objs'
9531 hardcode_direct=no
9532 ;;
9533 motorola)
9534 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9535 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9536 ;;
9537 esac
9538 runpath_var='LD_RUN_PATH'
9539 hardcode_shlibpath_var=no
9540 ;;
9541
9542 sysv4.3*)
9543 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9544 hardcode_shlibpath_var=no
9545 export_dynamic_flag_spec='-Bexport'
9546 ;;
9547
9548 sysv4*MP*)
9549 if test -d /usr/nec; then
9550 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9551 hardcode_shlibpath_var=no
9552 runpath_var=LD_RUN_PATH
9553 hardcode_runpath_var=yes
9554 ld_shlibs=yes
9555 fi
9556 ;;
9557
9558 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
9559 no_undefined_flag='${wl}-z,text'
9560 archive_cmds_need_lc=no
9561 hardcode_shlibpath_var=no
9562 runpath_var='LD_RUN_PATH'
9563
9564 if test "$GCC" = yes; then
9565 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9566 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9567 else
9568 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9569 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9570 fi
9571 ;;
9572
9573 sysv5* | sco3.2v5* | sco5v6*)
9574 # Note: We can NOT use -z defs as we might desire, because we do not
9575 # link with -lc, and that would cause any symbols used from libc to
9576 # always be unresolved, which means just about no library would
9577 # ever link correctly. If we're not using GNU ld we use -z text
9578 # though, which does catch some bad symbols but isn't as heavy-handed
9579 # as -z defs.
9580 no_undefined_flag='${wl}-z,text'
9581 allow_undefined_flag='${wl}-z,nodefs'
9582 archive_cmds_need_lc=no
9583 hardcode_shlibpath_var=no
9584 hardcode_libdir_flag_spec='${wl}-R,$libdir'
9585 hardcode_libdir_separator=':'
9586 link_all_deplibs=yes
9587 export_dynamic_flag_spec='${wl}-Bexport'
9588 runpath_var='LD_RUN_PATH'
9589
9590 if test "$GCC" = yes; then
9591 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9592 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9593 else
9594 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9595 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9596 fi
9597 ;;
9598
9599 uts4*)
9600 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9601 hardcode_libdir_flag_spec='-L$libdir'
9602 hardcode_shlibpath_var=no
9603 ;;
9604
9605 *)
9606 ld_shlibs=no
9607 ;;
9608 esac
9609
9610 if test x$host_vendor = xsni; then
9611 case $host in
9612 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
9613 export_dynamic_flag_spec='${wl}-Blargedynsym'
9614 ;;
9615 esac
9616 fi
9617 fi
9618
9619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
9620 $as_echo "$ld_shlibs" >&6; }
9621 test "$ld_shlibs" = no && can_build_shared=no
9622
9623 with_gnu_ld=$with_gnu_ld
9624
9625
9626
9627
9628
9629
9630
9631
9632
9633
9634
9635
9636
9637
9638
9639 #
9640 # Do we need to explicitly link libc?
9641 #
9642 case "x$archive_cmds_need_lc" in
9643 x|xyes)
9644 # Assume -lc should be added
9645 archive_cmds_need_lc=yes
9646
9647 if test "$enable_shared" = yes && test "$GCC" = yes; then
9648 case $archive_cmds in
9649 *'~'*)
9650 # FIXME: we may have to deal with multi-command sequences.
9651 ;;
9652 '$CC '*)
9653 # Test whether the compiler implicitly links with -lc since on some
9654 # systems, -lgcc has to come before -lc. If gcc already passes -lc
9655 # to ld, don't add -lc before -lgcc.
9656 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
9657 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
9658 if test "${lt_cv_archive_cmds_need_lc+set}" = set; then :
9659 $as_echo_n "(cached) " >&6
9660 else
9661 $RM conftest*
9662 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9663
9664 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9665 (eval $ac_compile) 2>&5
9666 ac_status=$?
9667 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9668 test $ac_status = 0; } 2>conftest.err; then
9669 soname=conftest
9670 lib=conftest
9671 libobjs=conftest.$ac_objext
9672 deplibs=
9673 wl=$lt_prog_compiler_wl
9674 pic_flag=$lt_prog_compiler_pic
9675 compiler_flags=-v
9676 linker_flags=-v
9677 verstring=
9678 output_objdir=.
9679 libname=conftest
9680 lt_save_allow_undefined_flag=$allow_undefined_flag
9681 allow_undefined_flag=
9682 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
9683 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
9684 ac_status=$?
9685 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9686 test $ac_status = 0; }
9687 then
9688 lt_cv_archive_cmds_need_lc=no
9689 else
9690 lt_cv_archive_cmds_need_lc=yes
9691 fi
9692 allow_undefined_flag=$lt_save_allow_undefined_flag
9693 else
9694 cat conftest.err 1>&5
9695 fi
9696 $RM conftest*
9697
9698 fi
9699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
9700 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
9701 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
9702 ;;
9703 esac
9704 fi
9705 ;;
9706 esac
9707
9708
9709
9710
9711
9712
9713
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 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
9865 $as_echo_n "checking dynamic linker characteristics... " >&6; }
9866
9867 if test "$GCC" = yes; then
9868 case $host_os in
9869 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
9870 *) lt_awk_arg="/^libraries:/" ;;
9871 esac
9872 case $host_os in
9873 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
9874 *) lt_sed_strip_eq="s,=/,/,g" ;;
9875 esac
9876 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
9877 case $lt_search_path_spec in
9878 *\;*)
9879 # if the path contains ";" then we assume it to be the separator
9880 # otherwise default to the standard path separator (i.e. ":") - it is
9881 # assumed that no part of a normal pathname contains ";" but that should
9882 # okay in the real world where ";" in dirpaths is itself problematic.
9883 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
9884 ;;
9885 *)
9886 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
9887 ;;
9888 esac
9889 # Ok, now we have the path, separated by spaces, we can step through it
9890 # and add multilib dir if necessary.
9891 lt_tmp_lt_search_path_spec=
9892 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
9893 for lt_sys_path in $lt_search_path_spec; do
9894 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
9895 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
9896 else
9897 test -d "$lt_sys_path" && \
9898 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
9899 fi
9900 done
9901 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
9902 BEGIN {RS=" "; FS="/|\n";} {
9903 lt_foo="";
9904 lt_count=0;
9905 for (lt_i = NF; lt_i > 0; lt_i--) {
9906 if ($lt_i != "" && $lt_i != ".") {
9907 if ($lt_i == "..") {
9908 lt_count++;
9909 } else {
9910 if (lt_count == 0) {
9911 lt_foo="/" $lt_i lt_foo;
9912 } else {
9913 lt_count--;
9914 }
9915 }
9916 }
9917 }
9918 if (lt_foo != "") { lt_freq[lt_foo]++; }
9919 if (lt_freq[lt_foo] == 1) { print lt_foo; }
9920 }'`
9921 # AWK program above erroneously prepends '/' to C:/dos/paths
9922 # for these hosts.
9923 case $host_os in
9924 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
9925 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
9926 esac
9927 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
9928 else
9929 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9930 fi
9931 library_names_spec=
9932 libname_spec='lib$name'
9933 soname_spec=
9934 shrext_cmds=".so"
9935 postinstall_cmds=
9936 postuninstall_cmds=
9937 finish_cmds=
9938 finish_eval=
9939 shlibpath_var=
9940 shlibpath_overrides_runpath=unknown
9941 version_type=none
9942 dynamic_linker="$host_os ld.so"
9943 sys_lib_dlsearch_path_spec="/lib /usr/lib"
9944 need_lib_prefix=unknown
9945 hardcode_into_libs=no
9946
9947 # when you set need_version to no, make sure it does not cause -set_version
9948 # flags to be left without arguments
9949 need_version=unknown
9950
9951 case $host_os in
9952 aix3*)
9953 version_type=linux
9954 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9955 shlibpath_var=LIBPATH
9956
9957 # AIX 3 has no versioning support, so we append a major version to the name.
9958 soname_spec='${libname}${release}${shared_ext}$major'
9959 ;;
9960
9961 aix[4-9]*)
9962 version_type=linux
9963 need_lib_prefix=no
9964 need_version=no
9965 hardcode_into_libs=yes
9966 if test "$host_cpu" = ia64; then
9967 # AIX 5 supports IA64
9968 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9969 shlibpath_var=LD_LIBRARY_PATH
9970 else
9971 # With GCC up to 2.95.x, collect2 would create an import file
9972 # for dependence libraries. The import file would start with
9973 # the line `#! .'. This would cause the generated library to
9974 # depend on `.', always an invalid library. This was fixed in
9975 # development snapshots of GCC prior to 3.0.
9976 case $host_os in
9977 aix4 | aix4.[01] | aix4.[01].*)
9978 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9979 echo ' yes '
9980 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
9981 :
9982 else
9983 can_build_shared=no
9984 fi
9985 ;;
9986 esac
9987 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9988 # soname into executable. Probably we can add versioning support to
9989 # collect2, so additional links can be useful in future.
9990 if test "$aix_use_runtimelinking" = yes; then
9991 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9992 # instead of lib<name>.a to let people know that these are not
9993 # typical AIX shared libraries.
9994 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9995 else
9996 # We preserve .a as extension for shared libraries through AIX4.2
9997 # and later when we are not doing run time linking.
9998 library_names_spec='${libname}${release}.a $libname.a'
9999 soname_spec='${libname}${release}${shared_ext}$major'
10000 fi
10001 shlibpath_var=LIBPATH
10002 fi
10003 ;;
10004
10005 amigaos*)
10006 case $host_cpu in
10007 powerpc)
10008 # Since July 2007 AmigaOS4 officially supports .so libraries.
10009 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10010 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10011 ;;
10012 m68k)
10013 library_names_spec='$libname.ixlibrary $libname.a'
10014 # Create ${libname}_ixlibrary.a entries in /sys/libs.
10015 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'
10016 ;;
10017 esac
10018 ;;
10019
10020 beos*)
10021 library_names_spec='${libname}${shared_ext}'
10022 dynamic_linker="$host_os ld.so"
10023 shlibpath_var=LIBRARY_PATH
10024 ;;
10025
10026 bsdi[45]*)
10027 version_type=linux
10028 need_version=no
10029 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10030 soname_spec='${libname}${release}${shared_ext}$major'
10031 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10032 shlibpath_var=LD_LIBRARY_PATH
10033 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10034 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10035 # the default ld.so.conf also contains /usr/contrib/lib and
10036 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10037 # libtool to hard-code these into programs
10038 ;;
10039
10040 cygwin* | mingw* | pw32* | cegcc*)
10041 version_type=windows
10042 shrext_cmds=".dll"
10043 need_version=no
10044 need_lib_prefix=no
10045
10046 case $GCC,$host_os in
10047 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
10048 library_names_spec='$libname.dll.a'
10049 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10050 postinstall_cmds='base_file=`basename \${file}`~
10051 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10052 dldir=$destdir/`dirname \$dlpath`~
10053 test -d \$dldir || mkdir -p \$dldir~
10054 $install_prog $dir/$dlname \$dldir/$dlname~
10055 chmod a+x \$dldir/$dlname~
10056 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10057 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10058 fi'
10059 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10060 dlpath=$dir/\$dldll~
10061 $RM \$dlpath'
10062 shlibpath_overrides_runpath=yes
10063
10064 case $host_os in
10065 cygwin*)
10066 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10067 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10068
10069 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
10070 ;;
10071 mingw* | cegcc*)
10072 # MinGW DLLs use traditional 'lib' prefix
10073 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10074 ;;
10075 pw32*)
10076 # pw32 DLLs use 'pw' prefix rather than 'lib'
10077 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10078 ;;
10079 esac
10080 ;;
10081
10082 *)
10083 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10084 ;;
10085 esac
10086 dynamic_linker='Win32 ld.exe'
10087 # FIXME: first we should search . and the directory the executable is in
10088 shlibpath_var=PATH
10089 ;;
10090
10091 darwin* | rhapsody*)
10092 dynamic_linker="$host_os dyld"
10093 version_type=darwin
10094 need_lib_prefix=no
10095 need_version=no
10096 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10097 soname_spec='${libname}${release}${major}$shared_ext'
10098 shlibpath_overrides_runpath=yes
10099 shlibpath_var=DYLD_LIBRARY_PATH
10100 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10101
10102 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10103 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10104 ;;
10105
10106 dgux*)
10107 version_type=linux
10108 need_lib_prefix=no
10109 need_version=no
10110 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10111 soname_spec='${libname}${release}${shared_ext}$major'
10112 shlibpath_var=LD_LIBRARY_PATH
10113 ;;
10114
10115 freebsd* | dragonfly*)
10116 # DragonFly does not have aout. When/if they implement a new
10117 # versioning mechanism, adjust this.
10118 if test -x /usr/bin/objformat; then
10119 objformat=`/usr/bin/objformat`
10120 else
10121 case $host_os in
10122 freebsd[23].*) objformat=aout ;;
10123 *) objformat=elf ;;
10124 esac
10125 fi
10126 version_type=freebsd-$objformat
10127 case $version_type in
10128 freebsd-elf*)
10129 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10130 need_version=no
10131 need_lib_prefix=no
10132 ;;
10133 freebsd-*)
10134 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10135 need_version=yes
10136 ;;
10137 esac
10138 shlibpath_var=LD_LIBRARY_PATH
10139 case $host_os in
10140 freebsd2.*)
10141 shlibpath_overrides_runpath=yes
10142 ;;
10143 freebsd3.[01]* | freebsdelf3.[01]*)
10144 shlibpath_overrides_runpath=yes
10145 hardcode_into_libs=yes
10146 ;;
10147 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10148 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10149 shlibpath_overrides_runpath=no
10150 hardcode_into_libs=yes
10151 ;;
10152 *) # from 4.6 on, and DragonFly
10153 shlibpath_overrides_runpath=yes
10154 hardcode_into_libs=yes
10155 ;;
10156 esac
10157 ;;
10158
10159 gnu*)
10160 version_type=linux
10161 need_lib_prefix=no
10162 need_version=no
10163 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10164 soname_spec='${libname}${release}${shared_ext}$major'
10165 shlibpath_var=LD_LIBRARY_PATH
10166 hardcode_into_libs=yes
10167 ;;
10168
10169 haiku*)
10170 version_type=linux
10171 need_lib_prefix=no
10172 need_version=no
10173 dynamic_linker="$host_os runtime_loader"
10174 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10175 soname_spec='${libname}${release}${shared_ext}$major'
10176 shlibpath_var=LIBRARY_PATH
10177 shlibpath_overrides_runpath=yes
10178 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
10179 hardcode_into_libs=yes
10180 ;;
10181
10182 hpux9* | hpux10* | hpux11*)
10183 # Give a soname corresponding to the major version so that dld.sl refuses to
10184 # link against other versions.
10185 version_type=sunos
10186 need_lib_prefix=no
10187 need_version=no
10188 case $host_cpu in
10189 ia64*)
10190 shrext_cmds='.so'
10191 hardcode_into_libs=yes
10192 dynamic_linker="$host_os dld.so"
10193 shlibpath_var=LD_LIBRARY_PATH
10194 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10195 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10196 soname_spec='${libname}${release}${shared_ext}$major'
10197 if test "X$HPUX_IA64_MODE" = X32; then
10198 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10199 else
10200 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10201 fi
10202 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10203 ;;
10204 hppa*64*)
10205 shrext_cmds='.sl'
10206 hardcode_into_libs=yes
10207 dynamic_linker="$host_os dld.sl"
10208 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10209 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10210 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10211 soname_spec='${libname}${release}${shared_ext}$major'
10212 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10213 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10214 ;;
10215 *)
10216 shrext_cmds='.sl'
10217 dynamic_linker="$host_os dld.sl"
10218 shlibpath_var=SHLIB_PATH
10219 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10220 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10221 soname_spec='${libname}${release}${shared_ext}$major'
10222 ;;
10223 esac
10224 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
10225 postinstall_cmds='chmod 555 $lib'
10226 # or fails outright, so override atomically:
10227 install_override_mode=555
10228 ;;
10229
10230 interix[3-9]*)
10231 version_type=linux
10232 need_lib_prefix=no
10233 need_version=no
10234 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10235 soname_spec='${libname}${release}${shared_ext}$major'
10236 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10237 shlibpath_var=LD_LIBRARY_PATH
10238 shlibpath_overrides_runpath=no
10239 hardcode_into_libs=yes
10240 ;;
10241
10242 irix5* | irix6* | nonstopux*)
10243 case $host_os in
10244 nonstopux*) version_type=nonstopux ;;
10245 *)
10246 if test "$lt_cv_prog_gnu_ld" = yes; then
10247 version_type=linux
10248 else
10249 version_type=irix
10250 fi ;;
10251 esac
10252 need_lib_prefix=no
10253 need_version=no
10254 soname_spec='${libname}${release}${shared_ext}$major'
10255 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10256 case $host_os in
10257 irix5* | nonstopux*)
10258 libsuff= shlibsuff=
10259 ;;
10260 *)
10261 case $LD in # libtool.m4 will add one of these switches to LD
10262 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10263 libsuff= shlibsuff= libmagic=32-bit;;
10264 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10265 libsuff=32 shlibsuff=N32 libmagic=N32;;
10266 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10267 libsuff=64 shlibsuff=64 libmagic=64-bit;;
10268 *) libsuff= shlibsuff= libmagic=never-match;;
10269 esac
10270 ;;
10271 esac
10272 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10273 shlibpath_overrides_runpath=no
10274 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10275 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10276 hardcode_into_libs=yes
10277 ;;
10278
10279 # No shared lib support for Linux oldld, aout, or coff.
10280 linux*oldld* | linux*aout* | linux*coff*)
10281 dynamic_linker=no
10282 ;;
10283
10284 # This must be Linux ELF.
10285 linux* | k*bsd*-gnu | kopensolaris*-gnu)
10286 version_type=linux
10287 need_lib_prefix=no
10288 need_version=no
10289 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10290 soname_spec='${libname}${release}${shared_ext}$major'
10291 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10292 shlibpath_var=LD_LIBRARY_PATH
10293 shlibpath_overrides_runpath=no
10294
10295 # Some binutils ld are patched to set DT_RUNPATH
10296 if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
10297 $as_echo_n "(cached) " >&6
10298 else
10299 lt_cv_shlibpath_overrides_runpath=no
10300 save_LDFLAGS=$LDFLAGS
10301 save_libdir=$libdir
10302 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10303 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10304 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10305 /* end confdefs.h. */
10306
10307 int
10308 main ()
10309 {
10310
10311 ;
10312 return 0;
10313 }
10314 _ACEOF
10315 if ac_fn_c_try_link "$LINENO"; then :
10316 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
10317 lt_cv_shlibpath_overrides_runpath=yes
10318 fi
10319 fi
10320 rm -f core conftest.err conftest.$ac_objext \
10321 conftest$ac_exeext conftest.$ac_ext
10322 LDFLAGS=$save_LDFLAGS
10323 libdir=$save_libdir
10324
10325 fi
10326
10327 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
10328
10329 # This implies no fast_install, which is unacceptable.
10330 # Some rework will be needed to allow for fast_install
10331 # before this can be enabled.
10332 hardcode_into_libs=yes
10333
10334 # Append ld.so.conf contents to the search path
10335 if test -f /etc/ld.so.conf; then
10336 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' ' '`
10337 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10338 fi
10339
10340 # We used to test for /lib/ld.so.1 and disable shared libraries on
10341 # powerpc, because MkLinux only supported shared libraries with the
10342 # GNU dynamic linker. Since this was broken with cross compilers,
10343 # most powerpc-linux boxes support dynamic linking these days and
10344 # people can always --disable-shared, the test was removed, and we
10345 # assume the GNU/Linux dynamic linker is in use.
10346 dynamic_linker='GNU/Linux ld.so'
10347 ;;
10348
10349 netbsd*)
10350 version_type=sunos
10351 need_lib_prefix=no
10352 need_version=no
10353 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10354 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10355 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10356 dynamic_linker='NetBSD (a.out) ld.so'
10357 else
10358 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10359 soname_spec='${libname}${release}${shared_ext}$major'
10360 dynamic_linker='NetBSD ld.elf_so'
10361 fi
10362 shlibpath_var=LD_LIBRARY_PATH
10363 shlibpath_overrides_runpath=yes
10364 hardcode_into_libs=yes
10365 ;;
10366
10367 newsos6)
10368 version_type=linux
10369 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10370 shlibpath_var=LD_LIBRARY_PATH
10371 shlibpath_overrides_runpath=yes
10372 ;;
10373
10374 *nto* | *qnx*)
10375 version_type=qnx
10376 need_lib_prefix=no
10377 need_version=no
10378 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10379 soname_spec='${libname}${release}${shared_ext}$major'
10380 shlibpath_var=LD_LIBRARY_PATH
10381 shlibpath_overrides_runpath=no
10382 hardcode_into_libs=yes
10383 dynamic_linker='ldqnx.so'
10384 ;;
10385
10386 openbsd*)
10387 version_type=sunos
10388 sys_lib_dlsearch_path_spec="/usr/lib"
10389 need_lib_prefix=no
10390 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10391 case $host_os in
10392 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
10393 *) need_version=no ;;
10394 esac
10395 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10396 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10397 shlibpath_var=LD_LIBRARY_PATH
10398 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10399 case $host_os in
10400 openbsd2.[89] | openbsd2.[89].*)
10401 shlibpath_overrides_runpath=no
10402 ;;
10403 *)
10404 shlibpath_overrides_runpath=yes
10405 ;;
10406 esac
10407 else
10408 shlibpath_overrides_runpath=yes
10409 fi
10410 ;;
10411
10412 os2*)
10413 libname_spec='$name'
10414 shrext_cmds=".dll"
10415 need_lib_prefix=no
10416 library_names_spec='$libname${shared_ext} $libname.a'
10417 dynamic_linker='OS/2 ld.exe'
10418 shlibpath_var=LIBPATH
10419 ;;
10420
10421 osf3* | osf4* | osf5*)
10422 version_type=osf
10423 need_lib_prefix=no
10424 need_version=no
10425 soname_spec='${libname}${release}${shared_ext}$major'
10426 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10427 shlibpath_var=LD_LIBRARY_PATH
10428 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10429 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10430 ;;
10431
10432 rdos*)
10433 dynamic_linker=no
10434 ;;
10435
10436 solaris*)
10437 version_type=linux
10438 need_lib_prefix=no
10439 need_version=no
10440 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10441 soname_spec='${libname}${release}${shared_ext}$major'
10442 shlibpath_var=LD_LIBRARY_PATH
10443 shlibpath_overrides_runpath=yes
10444 hardcode_into_libs=yes
10445 # ldd complains unless libraries are executable
10446 postinstall_cmds='chmod +x $lib'
10447 ;;
10448
10449 sunos4*)
10450 version_type=sunos
10451 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10452 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10453 shlibpath_var=LD_LIBRARY_PATH
10454 shlibpath_overrides_runpath=yes
10455 if test "$with_gnu_ld" = yes; then
10456 need_lib_prefix=no
10457 fi
10458 need_version=yes
10459 ;;
10460
10461 sysv4 | sysv4.3*)
10462 version_type=linux
10463 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10464 soname_spec='${libname}${release}${shared_ext}$major'
10465 shlibpath_var=LD_LIBRARY_PATH
10466 case $host_vendor in
10467 sni)
10468 shlibpath_overrides_runpath=no
10469 need_lib_prefix=no
10470 runpath_var=LD_RUN_PATH
10471 ;;
10472 siemens)
10473 need_lib_prefix=no
10474 ;;
10475 motorola)
10476 need_lib_prefix=no
10477 need_version=no
10478 shlibpath_overrides_runpath=no
10479 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10480 ;;
10481 esac
10482 ;;
10483
10484 sysv4*MP*)
10485 if test -d /usr/nec ;then
10486 version_type=linux
10487 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10488 soname_spec='$libname${shared_ext}.$major'
10489 shlibpath_var=LD_LIBRARY_PATH
10490 fi
10491 ;;
10492
10493 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10494 version_type=freebsd-elf
10495 need_lib_prefix=no
10496 need_version=no
10497 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10498 soname_spec='${libname}${release}${shared_ext}$major'
10499 shlibpath_var=LD_LIBRARY_PATH
10500 shlibpath_overrides_runpath=yes
10501 hardcode_into_libs=yes
10502 if test "$with_gnu_ld" = yes; then
10503 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10504 else
10505 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10506 case $host_os in
10507 sco3.2v5*)
10508 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10509 ;;
10510 esac
10511 fi
10512 sys_lib_dlsearch_path_spec='/usr/lib'
10513 ;;
10514
10515 tpf*)
10516 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
10517 version_type=linux
10518 need_lib_prefix=no
10519 need_version=no
10520 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10521 shlibpath_var=LD_LIBRARY_PATH
10522 shlibpath_overrides_runpath=no
10523 hardcode_into_libs=yes
10524 ;;
10525
10526 uts4*)
10527 version_type=linux
10528 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10529 soname_spec='${libname}${release}${shared_ext}$major'
10530 shlibpath_var=LD_LIBRARY_PATH
10531 ;;
10532
10533 *)
10534 dynamic_linker=no
10535 ;;
10536 esac
10537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
10538 $as_echo "$dynamic_linker" >&6; }
10539 test "$dynamic_linker" = no && can_build_shared=no
10540
10541 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10542 if test "$GCC" = yes; then
10543 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10544 fi
10545
10546 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
10547 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
10548 fi
10549 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
10550 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
10551 fi
10552
10553
10554
10555
10556
10557
10558
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 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
10645 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
10646 hardcode_action=
10647 if test -n "$hardcode_libdir_flag_spec" ||
10648 test -n "$runpath_var" ||
10649 test "X$hardcode_automatic" = "Xyes" ; then
10650
10651 # We can hardcode non-existent directories.
10652 if test "$hardcode_direct" != no &&
10653 # If the only mechanism to avoid hardcoding is shlibpath_var, we
10654 # have to relink, otherwise we might link with an installed library
10655 # when we should be linking with a yet-to-be-installed one
10656 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
10657 test "$hardcode_minus_L" != no; then
10658 # Linking always hardcodes the temporary library directory.
10659 hardcode_action=relink
10660 else
10661 # We can link without hardcoding, and we can hardcode nonexisting dirs.
10662 hardcode_action=immediate
10663 fi
10664 else
10665 # We cannot hardcode anything, or else we can only hardcode existing
10666 # directories.
10667 hardcode_action=unsupported
10668 fi
10669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
10670 $as_echo "$hardcode_action" >&6; }
10671
10672 if test "$hardcode_action" = relink ||
10673 test "$inherit_rpath" = yes; then
10674 # Fast installation is not supported
10675 enable_fast_install=no
10676 elif test "$shlibpath_overrides_runpath" = yes ||
10677 test "$enable_shared" = no; then
10678 # Fast installation is not necessary
10679 enable_fast_install=needless
10680 fi
10681
10682
10683
10684
10685
10686
10687 if test "x$enable_dlopen" != xyes; then
10688 enable_dlopen=unknown
10689 enable_dlopen_self=unknown
10690 enable_dlopen_self_static=unknown
10691 else
10692 lt_cv_dlopen=no
10693 lt_cv_dlopen_libs=
10694
10695 case $host_os in
10696 beos*)
10697 lt_cv_dlopen="load_add_on"
10698 lt_cv_dlopen_libs=
10699 lt_cv_dlopen_self=yes
10700 ;;
10701
10702 mingw* | pw32* | cegcc*)
10703 lt_cv_dlopen="LoadLibrary"
10704 lt_cv_dlopen_libs=
10705 ;;
10706
10707 cygwin*)
10708 lt_cv_dlopen="dlopen"
10709 lt_cv_dlopen_libs=
10710 ;;
10711
10712 darwin*)
10713 # if libdl is installed we need to link against it
10714 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10715 $as_echo_n "checking for dlopen in -ldl... " >&6; }
10716 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
10717 $as_echo_n "(cached) " >&6
10718 else
10719 ac_check_lib_save_LIBS=$LIBS
10720 LIBS="-ldl $LIBS"
10721 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10722 /* end confdefs.h. */
10723
10724 /* Override any GCC internal prototype to avoid an error.
10725 Use char because int might match the return type of a GCC
10726 builtin and then its argument prototype would still apply. */
10727 #ifdef __cplusplus
10728 extern "C"
10729 #endif
10730 char dlopen ();
10731 int
10732 main ()
10733 {
10734 return dlopen ();
10735 ;
10736 return 0;
10737 }
10738 _ACEOF
10739 if ac_fn_c_try_link "$LINENO"; then :
10740 ac_cv_lib_dl_dlopen=yes
10741 else
10742 ac_cv_lib_dl_dlopen=no
10743 fi
10744 rm -f core conftest.err conftest.$ac_objext \
10745 conftest$ac_exeext conftest.$ac_ext
10746 LIBS=$ac_check_lib_save_LIBS
10747 fi
10748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10749 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10750 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
10751 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10752 else
10753
10754 lt_cv_dlopen="dyld"
10755 lt_cv_dlopen_libs=
10756 lt_cv_dlopen_self=yes
10757
10758 fi
10759
10760 ;;
10761
10762 *)
10763 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
10764 if test "x$ac_cv_func_shl_load" = x""yes; then :
10765 lt_cv_dlopen="shl_load"
10766 else
10767 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
10768 $as_echo_n "checking for shl_load in -ldld... " >&6; }
10769 if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
10770 $as_echo_n "(cached) " >&6
10771 else
10772 ac_check_lib_save_LIBS=$LIBS
10773 LIBS="-ldld $LIBS"
10774 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10775 /* end confdefs.h. */
10776
10777 /* Override any GCC internal prototype to avoid an error.
10778 Use char because int might match the return type of a GCC
10779 builtin and then its argument prototype would still apply. */
10780 #ifdef __cplusplus
10781 extern "C"
10782 #endif
10783 char shl_load ();
10784 int
10785 main ()
10786 {
10787 return shl_load ();
10788 ;
10789 return 0;
10790 }
10791 _ACEOF
10792 if ac_fn_c_try_link "$LINENO"; then :
10793 ac_cv_lib_dld_shl_load=yes
10794 else
10795 ac_cv_lib_dld_shl_load=no
10796 fi
10797 rm -f core conftest.err conftest.$ac_objext \
10798 conftest$ac_exeext conftest.$ac_ext
10799 LIBS=$ac_check_lib_save_LIBS
10800 fi
10801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
10802 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
10803 if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
10804 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
10805 else
10806 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
10807 if test "x$ac_cv_func_dlopen" = x""yes; then :
10808 lt_cv_dlopen="dlopen"
10809 else
10810 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10811 $as_echo_n "checking for dlopen in -ldl... " >&6; }
10812 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
10813 $as_echo_n "(cached) " >&6
10814 else
10815 ac_check_lib_save_LIBS=$LIBS
10816 LIBS="-ldl $LIBS"
10817 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10818 /* end confdefs.h. */
10819
10820 /* Override any GCC internal prototype to avoid an error.
10821 Use char because int might match the return type of a GCC
10822 builtin and then its argument prototype would still apply. */
10823 #ifdef __cplusplus
10824 extern "C"
10825 #endif
10826 char dlopen ();
10827 int
10828 main ()
10829 {
10830 return dlopen ();
10831 ;
10832 return 0;
10833 }
10834 _ACEOF
10835 if ac_fn_c_try_link "$LINENO"; then :
10836 ac_cv_lib_dl_dlopen=yes
10837 else
10838 ac_cv_lib_dl_dlopen=no
10839 fi
10840 rm -f core conftest.err conftest.$ac_objext \
10841 conftest$ac_exeext conftest.$ac_ext
10842 LIBS=$ac_check_lib_save_LIBS
10843 fi
10844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10845 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10846 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
10847 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10848 else
10849 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
10850 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
10851 if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
10852 $as_echo_n "(cached) " >&6
10853 else
10854 ac_check_lib_save_LIBS=$LIBS
10855 LIBS="-lsvld $LIBS"
10856 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10857 /* end confdefs.h. */
10858
10859 /* Override any GCC internal prototype to avoid an error.
10860 Use char because int might match the return type of a GCC
10861 builtin and then its argument prototype would still apply. */
10862 #ifdef __cplusplus
10863 extern "C"
10864 #endif
10865 char dlopen ();
10866 int
10867 main ()
10868 {
10869 return dlopen ();
10870 ;
10871 return 0;
10872 }
10873 _ACEOF
10874 if ac_fn_c_try_link "$LINENO"; then :
10875 ac_cv_lib_svld_dlopen=yes
10876 else
10877 ac_cv_lib_svld_dlopen=no
10878 fi
10879 rm -f core conftest.err conftest.$ac_objext \
10880 conftest$ac_exeext conftest.$ac_ext
10881 LIBS=$ac_check_lib_save_LIBS
10882 fi
10883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
10884 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
10885 if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
10886 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10887 else
10888 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
10889 $as_echo_n "checking for dld_link in -ldld... " >&6; }
10890 if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
10891 $as_echo_n "(cached) " >&6
10892 else
10893 ac_check_lib_save_LIBS=$LIBS
10894 LIBS="-ldld $LIBS"
10895 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10896 /* end confdefs.h. */
10897
10898 /* Override any GCC internal prototype to avoid an error.
10899 Use char because int might match the return type of a GCC
10900 builtin and then its argument prototype would still apply. */
10901 #ifdef __cplusplus
10902 extern "C"
10903 #endif
10904 char dld_link ();
10905 int
10906 main ()
10907 {
10908 return dld_link ();
10909 ;
10910 return 0;
10911 }
10912 _ACEOF
10913 if ac_fn_c_try_link "$LINENO"; then :
10914 ac_cv_lib_dld_dld_link=yes
10915 else
10916 ac_cv_lib_dld_dld_link=no
10917 fi
10918 rm -f core conftest.err conftest.$ac_objext \
10919 conftest$ac_exeext conftest.$ac_ext
10920 LIBS=$ac_check_lib_save_LIBS
10921 fi
10922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
10923 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
10924 if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
10925 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
10926 fi
10927
10928
10929 fi
10930
10931
10932 fi
10933
10934
10935 fi
10936
10937
10938 fi
10939
10940
10941 fi
10942
10943 ;;
10944 esac
10945
10946 if test "x$lt_cv_dlopen" != xno; then
10947 enable_dlopen=yes
10948 else
10949 enable_dlopen=no
10950 fi
10951
10952 case $lt_cv_dlopen in
10953 dlopen)
10954 save_CPPFLAGS="$CPPFLAGS"
10955 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
10956
10957 save_LDFLAGS="$LDFLAGS"
10958 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
10959
10960 save_LIBS="$LIBS"
10961 LIBS="$lt_cv_dlopen_libs $LIBS"
10962
10963 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
10964 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
10965 if test "${lt_cv_dlopen_self+set}" = set; then :
10966 $as_echo_n "(cached) " >&6
10967 else
10968 if test "$cross_compiling" = yes; then :
10969 lt_cv_dlopen_self=cross
10970 else
10971 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10972 lt_status=$lt_dlunknown
10973 cat > conftest.$ac_ext <<_LT_EOF
10974 #line 10974 "configure"
10975 #include "confdefs.h"
10976
10977 #if HAVE_DLFCN_H
10978 #include <dlfcn.h>
10979 #endif
10980
10981 #include <stdio.h>
10982
10983 #ifdef RTLD_GLOBAL
10984 # define LT_DLGLOBAL RTLD_GLOBAL
10985 #else
10986 # ifdef DL_GLOBAL
10987 # define LT_DLGLOBAL DL_GLOBAL
10988 # else
10989 # define LT_DLGLOBAL 0
10990 # endif
10991 #endif
10992
10993 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10994 find out it does not work in some platform. */
10995 #ifndef LT_DLLAZY_OR_NOW
10996 # ifdef RTLD_LAZY
10997 # define LT_DLLAZY_OR_NOW RTLD_LAZY
10998 # else
10999 # ifdef DL_LAZY
11000 # define LT_DLLAZY_OR_NOW DL_LAZY
11001 # else
11002 # ifdef RTLD_NOW
11003 # define LT_DLLAZY_OR_NOW RTLD_NOW
11004 # else
11005 # ifdef DL_NOW
11006 # define LT_DLLAZY_OR_NOW DL_NOW
11007 # else
11008 # define LT_DLLAZY_OR_NOW 0
11009 # endif
11010 # endif
11011 # endif
11012 # endif
11013 #endif
11014
11015 /* When -fvisbility=hidden is used, assume the code has been annotated
11016 correspondingly for the symbols needed. */
11017 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11018 void fnord () __attribute__((visibility("default")));
11019 #endif
11020
11021 void fnord () { int i=42; }
11022 int main ()
11023 {
11024 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11025 int status = $lt_dlunknown;
11026
11027 if (self)
11028 {
11029 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11030 else
11031 {
11032 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11033 else puts (dlerror ());
11034 }
11035 /* dlclose (self); */
11036 }
11037 else
11038 puts (dlerror ());
11039
11040 return status;
11041 }
11042 _LT_EOF
11043 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11044 (eval $ac_link) 2>&5
11045 ac_status=$?
11046 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11047 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11048 (./conftest; exit; ) >&5 2>/dev/null
11049 lt_status=$?
11050 case x$lt_status in
11051 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11052 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11053 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11054 esac
11055 else :
11056 # compilation failed
11057 lt_cv_dlopen_self=no
11058 fi
11059 fi
11060 rm -fr conftest*
11061
11062
11063 fi
11064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11065 $as_echo "$lt_cv_dlopen_self" >&6; }
11066
11067 if test "x$lt_cv_dlopen_self" = xyes; then
11068 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11069 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11070 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11071 if test "${lt_cv_dlopen_self_static+set}" = set; then :
11072 $as_echo_n "(cached) " >&6
11073 else
11074 if test "$cross_compiling" = yes; then :
11075 lt_cv_dlopen_self_static=cross
11076 else
11077 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11078 lt_status=$lt_dlunknown
11079 cat > conftest.$ac_ext <<_LT_EOF
11080 #line 11080 "configure"
11081 #include "confdefs.h"
11082
11083 #if HAVE_DLFCN_H
11084 #include <dlfcn.h>
11085 #endif
11086
11087 #include <stdio.h>
11088
11089 #ifdef RTLD_GLOBAL
11090 # define LT_DLGLOBAL RTLD_GLOBAL
11091 #else
11092 # ifdef DL_GLOBAL
11093 # define LT_DLGLOBAL DL_GLOBAL
11094 # else
11095 # define LT_DLGLOBAL 0
11096 # endif
11097 #endif
11098
11099 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11100 find out it does not work in some platform. */
11101 #ifndef LT_DLLAZY_OR_NOW
11102 # ifdef RTLD_LAZY
11103 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11104 # else
11105 # ifdef DL_LAZY
11106 # define LT_DLLAZY_OR_NOW DL_LAZY
11107 # else
11108 # ifdef RTLD_NOW
11109 # define LT_DLLAZY_OR_NOW RTLD_NOW
11110 # else
11111 # ifdef DL_NOW
11112 # define LT_DLLAZY_OR_NOW DL_NOW
11113 # else
11114 # define LT_DLLAZY_OR_NOW 0
11115 # endif
11116 # endif
11117 # endif
11118 # endif
11119 #endif
11120
11121 /* When -fvisbility=hidden is used, assume the code has been annotated
11122 correspondingly for the symbols needed. */
11123 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11124 void fnord () __attribute__((visibility("default")));
11125 #endif
11126
11127 void fnord () { int i=42; }
11128 int main ()
11129 {
11130 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11131 int status = $lt_dlunknown;
11132
11133 if (self)
11134 {
11135 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11136 else
11137 {
11138 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11139 else puts (dlerror ());
11140 }
11141 /* dlclose (self); */
11142 }
11143 else
11144 puts (dlerror ());
11145
11146 return status;
11147 }
11148 _LT_EOF
11149 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11150 (eval $ac_link) 2>&5
11151 ac_status=$?
11152 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11153 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11154 (./conftest; exit; ) >&5 2>/dev/null
11155 lt_status=$?
11156 case x$lt_status in
11157 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11158 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11159 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11160 esac
11161 else :
11162 # compilation failed
11163 lt_cv_dlopen_self_static=no
11164 fi
11165 fi
11166 rm -fr conftest*
11167
11168
11169 fi
11170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11171 $as_echo "$lt_cv_dlopen_self_static" >&6; }
11172 fi
11173
11174 CPPFLAGS="$save_CPPFLAGS"
11175 LDFLAGS="$save_LDFLAGS"
11176 LIBS="$save_LIBS"
11177 ;;
11178 esac
11179
11180 case $lt_cv_dlopen_self in
11181 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11182 *) enable_dlopen_self=unknown ;;
11183 esac
11184
11185 case $lt_cv_dlopen_self_static in
11186 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11187 *) enable_dlopen_self_static=unknown ;;
11188 esac
11189 fi
11190
11191
11192
11193
11194
11195
11196
11197
11198
11199
11200
11201
11202
11203
11204
11205
11206
11207 striplib=
11208 old_striplib=
11209 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11210 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
11211 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11212 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11213 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11215 $as_echo "yes" >&6; }
11216 else
11217 # FIXME - insert some real tests, host_os isn't really good enough
11218 case $host_os in
11219 darwin*)
11220 if test -n "$STRIP" ; then
11221 striplib="$STRIP -x"
11222 old_striplib="$STRIP -S"
11223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11224 $as_echo "yes" >&6; }
11225 else
11226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11227 $as_echo "no" >&6; }
11228 fi
11229 ;;
11230 *)
11231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11232 $as_echo "no" >&6; }
11233 ;;
11234 esac
11235 fi
11236
11237
11238
11239
11240
11241
11242
11243
11244
11245
11246
11247
11248 # Report which library types will actually be built
11249 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
11250 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
11251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
11252 $as_echo "$can_build_shared" >&6; }
11253
11254 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
11255 $as_echo_n "checking whether to build shared libraries... " >&6; }
11256 test "$can_build_shared" = "no" && enable_shared=no
11257
11258 # On AIX, shared libraries and static libraries use the same namespace, and
11259 # are all built from PIC.
11260 case $host_os in
11261 aix3*)
11262 test "$enable_shared" = yes && enable_static=no
11263 if test -n "$RANLIB"; then
11264 archive_cmds="$archive_cmds~\$RANLIB \$lib"
11265 postinstall_cmds='$RANLIB $lib'
11266 fi
11267 ;;
11268
11269 aix[4-9]*)
11270 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11271 test "$enable_shared" = yes && enable_static=no
11272 fi
11273 ;;
11274 esac
11275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
11276 $as_echo "$enable_shared" >&6; }
11277
11278 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
11279 $as_echo_n "checking whether to build static libraries... " >&6; }
11280 # Make sure either enable_shared or enable_static is yes.
11281 test "$enable_shared" = yes || enable_static=yes
11282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
11283 $as_echo "$enable_static" >&6; }
11284
11285
11286
11287
11288 fi
11289 ac_ext=c
11290 ac_cpp='$CPP $CPPFLAGS'
11291 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11292 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11293 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11294
11295 CC="$lt_save_CC"
11296
11297
11298
11299
11300
11301
11302
11303
11304
11305
11306
11307
11308
11309 ac_config_commands="$ac_config_commands libtool"
11310
11311
11312
11313
11314 # Only expand once:
11315
11316
11317
11318 # The tests for host and target for $enable_largefile require
11319 # canonical names.
11320
11321
11322
11323 # As the $enable_largefile decision depends on --enable-plugins we must set it
11324 # even in directories otherwise not depending on the $plugins option.
11325
11326
11327 maybe_plugins=no
11328 for ac_header in dlfcn.h
11329 do :
11330 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
11331 "
11332 if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
11333 cat >>confdefs.h <<_ACEOF
11334 #define HAVE_DLFCN_H 1
11335 _ACEOF
11336 maybe_plugins=yes
11337 fi
11338
11339 done
11340
11341 for ac_header in windows.h
11342 do :
11343 ac_fn_c_check_header_compile "$LINENO" "windows.h" "ac_cv_header_windows_h" "$ac_includes_default
11344 "
11345 if test "x$ac_cv_header_windows_h" = x""yes; then :
11346 cat >>confdefs.h <<_ACEOF
11347 #define HAVE_WINDOWS_H 1
11348 _ACEOF
11349 maybe_plugins=yes
11350 fi
11351
11352 done
11353
11354
11355 # Check whether --enable-plugins was given.
11356 if test "${enable_plugins+set}" = set; then :
11357 enableval=$enable_plugins; case "${enableval}" in
11358 no) plugins=no ;;
11359 *) plugins=yes
11360 if test "$maybe_plugins" != "yes" ; then
11361 as_fn_error "Building with plugin support requires a host that supports dlopen." "$LINENO" 5
11362 fi ;;
11363 esac
11364 else
11365 plugins=$maybe_plugins
11366
11367 fi
11368
11369 if test "$plugins" = "yes"; then
11370 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
11371 $as_echo_n "checking for library containing dlopen... " >&6; }
11372 if test "${ac_cv_search_dlopen+set}" = set; then :
11373 $as_echo_n "(cached) " >&6
11374 else
11375 ac_func_search_save_LIBS=$LIBS
11376 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11377 /* end confdefs.h. */
11378
11379 /* Override any GCC internal prototype to avoid an error.
11380 Use char because int might match the return type of a GCC
11381 builtin and then its argument prototype would still apply. */
11382 #ifdef __cplusplus
11383 extern "C"
11384 #endif
11385 char dlopen ();
11386 int
11387 main ()
11388 {
11389 return dlopen ();
11390 ;
11391 return 0;
11392 }
11393 _ACEOF
11394 for ac_lib in '' dl; do
11395 if test -z "$ac_lib"; then
11396 ac_res="none required"
11397 else
11398 ac_res=-l$ac_lib
11399 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
11400 fi
11401 if ac_fn_c_try_link "$LINENO"; then :
11402 ac_cv_search_dlopen=$ac_res
11403 fi
11404 rm -f core conftest.err conftest.$ac_objext \
11405 conftest$ac_exeext
11406 if test "${ac_cv_search_dlopen+set}" = set; then :
11407 break
11408 fi
11409 done
11410 if test "${ac_cv_search_dlopen+set}" = set; then :
11411
11412 else
11413 ac_cv_search_dlopen=no
11414 fi
11415 rm conftest.$ac_ext
11416 LIBS=$ac_func_search_save_LIBS
11417 fi
11418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
11419 $as_echo "$ac_cv_search_dlopen" >&6; }
11420 ac_res=$ac_cv_search_dlopen
11421 if test "$ac_res" != no; then :
11422 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
11423
11424 fi
11425
11426 fi
11427
11428
11429 case "${host}" in
11430 sparc-*-solaris*|i[3-7]86-*-solaris*)
11431 # On native 32bit sparc and ia32 solaris, large-file and procfs support
11432 # are mutually exclusive; and without procfs support, the bfd/ elf module
11433 # cannot provide certain routines such as elfcore_write_prpsinfo
11434 # or elfcore_write_prstatus. So unless the user explicitly requested
11435 # large-file support through the --enable-largefile switch, disable
11436 # large-file support in favor of procfs support.
11437 test "${target}" = "${host}" -a "x$plugins" = xno \
11438 && : ${enable_largefile="no"}
11439 ;;
11440 esac
11441
11442 # Check whether --enable-largefile was given.
11443 if test "${enable_largefile+set}" = set; then :
11444 enableval=$enable_largefile;
11445 fi
11446
11447 if test "$enable_largefile" != no; then
11448
11449 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
11450 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
11451 if test "${ac_cv_sys_largefile_CC+set}" = set; then :
11452 $as_echo_n "(cached) " >&6
11453 else
11454 ac_cv_sys_largefile_CC=no
11455 if test "$GCC" != yes; then
11456 ac_save_CC=$CC
11457 while :; do
11458 # IRIX 6.2 and later do not support large files by default,
11459 # so use the C compiler's -n32 option if that helps.
11460 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11461 /* end confdefs.h. */
11462 #include <sys/types.h>
11463 /* Check that off_t can represent 2**63 - 1 correctly.
11464 We can't simply define LARGE_OFF_T to be 9223372036854775807,
11465 since some C++ compilers masquerading as C compilers
11466 incorrectly reject 9223372036854775807. */
11467 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
11468 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
11469 && LARGE_OFF_T % 2147483647 == 1)
11470 ? 1 : -1];
11471 int
11472 main ()
11473 {
11474
11475 ;
11476 return 0;
11477 }
11478 _ACEOF
11479 if ac_fn_c_try_compile "$LINENO"; then :
11480 break
11481 fi
11482 rm -f core conftest.err conftest.$ac_objext
11483 CC="$CC -n32"
11484 if ac_fn_c_try_compile "$LINENO"; then :
11485 ac_cv_sys_largefile_CC=' -n32'; break
11486 fi
11487 rm -f core conftest.err conftest.$ac_objext
11488 break
11489 done
11490 CC=$ac_save_CC
11491 rm -f conftest.$ac_ext
11492 fi
11493 fi
11494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
11495 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
11496 if test "$ac_cv_sys_largefile_CC" != no; then
11497 CC=$CC$ac_cv_sys_largefile_CC
11498 fi
11499
11500 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
11501 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
11502 if test "${ac_cv_sys_file_offset_bits+set}" = set; then :
11503 $as_echo_n "(cached) " >&6
11504 else
11505 while :; do
11506 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11507 /* end confdefs.h. */
11508 #include <sys/types.h>
11509 /* Check that off_t can represent 2**63 - 1 correctly.
11510 We can't simply define LARGE_OFF_T to be 9223372036854775807,
11511 since some C++ compilers masquerading as C compilers
11512 incorrectly reject 9223372036854775807. */
11513 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
11514 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
11515 && LARGE_OFF_T % 2147483647 == 1)
11516 ? 1 : -1];
11517 int
11518 main ()
11519 {
11520
11521 ;
11522 return 0;
11523 }
11524 _ACEOF
11525 if ac_fn_c_try_compile "$LINENO"; then :
11526 ac_cv_sys_file_offset_bits=no; break
11527 fi
11528 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11529 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11530 /* end confdefs.h. */
11531 #define _FILE_OFFSET_BITS 64
11532 #include <sys/types.h>
11533 /* Check that off_t can represent 2**63 - 1 correctly.
11534 We can't simply define LARGE_OFF_T to be 9223372036854775807,
11535 since some C++ compilers masquerading as C compilers
11536 incorrectly reject 9223372036854775807. */
11537 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
11538 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
11539 && LARGE_OFF_T % 2147483647 == 1)
11540 ? 1 : -1];
11541 int
11542 main ()
11543 {
11544
11545 ;
11546 return 0;
11547 }
11548 _ACEOF
11549 if ac_fn_c_try_compile "$LINENO"; then :
11550 ac_cv_sys_file_offset_bits=64; break
11551 fi
11552 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11553 ac_cv_sys_file_offset_bits=unknown
11554 break
11555 done
11556 fi
11557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
11558 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
11559 case $ac_cv_sys_file_offset_bits in #(
11560 no | unknown) ;;
11561 *)
11562 cat >>confdefs.h <<_ACEOF
11563 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
11564 _ACEOF
11565 ;;
11566 esac
11567 rm -rf conftest*
11568 if test $ac_cv_sys_file_offset_bits = unknown; then
11569 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
11570 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
11571 if test "${ac_cv_sys_large_files+set}" = set; then :
11572 $as_echo_n "(cached) " >&6
11573 else
11574 while :; do
11575 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11576 /* end confdefs.h. */
11577 #include <sys/types.h>
11578 /* Check that off_t can represent 2**63 - 1 correctly.
11579 We can't simply define LARGE_OFF_T to be 9223372036854775807,
11580 since some C++ compilers masquerading as C compilers
11581 incorrectly reject 9223372036854775807. */
11582 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
11583 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
11584 && LARGE_OFF_T % 2147483647 == 1)
11585 ? 1 : -1];
11586 int
11587 main ()
11588 {
11589
11590 ;
11591 return 0;
11592 }
11593 _ACEOF
11594 if ac_fn_c_try_compile "$LINENO"; then :
11595 ac_cv_sys_large_files=no; break
11596 fi
11597 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11598 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11599 /* end confdefs.h. */
11600 #define _LARGE_FILES 1
11601 #include <sys/types.h>
11602 /* Check that off_t can represent 2**63 - 1 correctly.
11603 We can't simply define LARGE_OFF_T to be 9223372036854775807,
11604 since some C++ compilers masquerading as C compilers
11605 incorrectly reject 9223372036854775807. */
11606 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
11607 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
11608 && LARGE_OFF_T % 2147483647 == 1)
11609 ? 1 : -1];
11610 int
11611 main ()
11612 {
11613
11614 ;
11615 return 0;
11616 }
11617 _ACEOF
11618 if ac_fn_c_try_compile "$LINENO"; then :
11619 ac_cv_sys_large_files=1; break
11620 fi
11621 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11622 ac_cv_sys_large_files=unknown
11623 break
11624 done
11625 fi
11626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
11627 $as_echo "$ac_cv_sys_large_files" >&6; }
11628 case $ac_cv_sys_large_files in #(
11629 no | unknown) ;;
11630 *)
11631 cat >>confdefs.h <<_ACEOF
11632 #define _LARGE_FILES $ac_cv_sys_large_files
11633 _ACEOF
11634 ;;
11635 esac
11636 rm -rf conftest*
11637 fi
11638 fi
11639
11640
11641
11642 # Check whether --enable-targets was given.
11643 if test "${enable_targets+set}" = set; then :
11644 enableval=$enable_targets; case "${enableval}" in
11645 yes | "") as_fn_error "enable-targets option must specify target names or 'all'" "$LINENO" 5
11646 ;;
11647 no) enable_targets= ;;
11648 *) enable_targets=$enableval ;;
11649 esac
11650 fi
11651
11652 ac_checking=yes
11653 if grep '^RELEASE=y' ${srcdir}/../bfd/Makefile.am >/dev/null 2>/dev/null ; then
11654 ac_checking=
11655 fi
11656 # Check whether --enable-checking was given.
11657 if test "${enable_checking+set}" = set; then :
11658 enableval=$enable_checking; case "${enableval}" in
11659 no|none) ac_checking= ;;
11660 *) ac_checking=yes ;;
11661 esac
11662 fi
11663 if test x$ac_checking != x ; then
11664
11665 $as_echo "#define ENABLE_CHECKING 1" >>confdefs.h
11666
11667 fi
11668
11669 # PR gas/19109
11670 # Decide the default method for compressing debug sections.
11671 ac_default_compressed_debug_sections=unset
11672 # Provide a configure time option to override our default.
11673 # Check whether --enable-compressed_debug_sections was given.
11674 if test "${enable_compressed_debug_sections+set}" = set; then :
11675 enableval=$enable_compressed_debug_sections; case "${enableval}" in
11676 yes | all | gas) ac_default_compressed_debug_sections=yes ;;
11677 no | none) ac_default_compressed_debug_sections=no ;;
11678 *) ac_default_compressed_debug_sections=unset ;;
11679 esac
11680 fi
11681
11682 using_cgen=no
11683
11684
11685 # Set the 'development' global.
11686 . $srcdir/../bfd/development.sh
11687
11688 GCC_WARN_CFLAGS="-W -Wall -Wstrict-prototypes -Wmissing-prototypes"
11689 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11690 /* end confdefs.h. */
11691 __GNUC__
11692 _ACEOF
11693 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11694 $EGREP "^[0-3]$" >/dev/null 2>&1; then :
11695
11696 else
11697 GCC_WARN_CFLAGS="$GCC_WARN_CFLAGS -Wshadow"
11698 fi
11699 rm -f conftest*
11700
11701
11702 # Check whether --enable-werror was given.
11703 if test "${enable_werror+set}" = set; then :
11704 enableval=$enable_werror; case "${enableval}" in
11705 yes | y) ERROR_ON_WARNING="yes" ;;
11706 no | n) ERROR_ON_WARNING="no" ;;
11707 *) as_fn_error "bad value ${enableval} for --enable-werror" "$LINENO" 5 ;;
11708 esac
11709 fi
11710
11711
11712 # Disable -Wformat by default when using gcc on mingw
11713 case "${host}" in
11714 *-*-mingw32*)
11715 if test "${GCC}" = yes -a -z "${ERROR_ON_WARNING}" ; then
11716 GCC_WARN_CFLAGS="$GCC_WARN_CFLAGS -Wno-format"
11717 fi
11718 ;;
11719 *) ;;
11720 esac
11721
11722 # Enable -Werror by default when using gcc. Turn it off for releases.
11723 if test "${GCC}" = yes -a -z "${ERROR_ON_WARNING}" -a "$development" = true ; then
11724 ERROR_ON_WARNING=yes
11725 fi
11726
11727 NO_WERROR=
11728 if test "${ERROR_ON_WARNING}" = yes ; then
11729 GCC_WARN_CFLAGS="$GCC_WARN_CFLAGS -Werror"
11730 NO_WERROR="-Wno-error"
11731 fi
11732
11733 if test "${GCC}" = yes ; then
11734 WARN_CFLAGS="${GCC_WARN_CFLAGS}"
11735 fi
11736
11737 # Check whether --enable-build-warnings was given.
11738 if test "${enable_build_warnings+set}" = set; then :
11739 enableval=$enable_build_warnings; case "${enableval}" in
11740 yes) WARN_CFLAGS="${GCC_WARN_CFLAGS}";;
11741 no) if test "${GCC}" = yes ; then
11742 WARN_CFLAGS="-w"
11743 fi;;
11744 ,*) t=`echo "${enableval}" | sed -e "s/,/ /g"`
11745 WARN_CFLAGS="${GCC_WARN_CFLAGS} ${t}";;
11746 *,) t=`echo "${enableval}" | sed -e "s/,/ /g"`
11747 WARN_CFLAGS="${t} ${GCC_WARN_CFLAGS}";;
11748 *) WARN_CFLAGS=`echo "${enableval}" | sed -e "s/,/ /g"`;;
11749 esac
11750 fi
11751
11752
11753 if test x"$silent" != x"yes" && test x"$WARN_CFLAGS" != x""; then
11754 echo "Setting warning flags = $WARN_CFLAGS" 6>&1
11755 fi
11756
11757
11758
11759
11760
11761 # Generate a header file
11762 ac_config_headers="$ac_config_headers config.h:config.in"
11763
11764
11765 # PR 14072
11766
11767
11768 # If we are on a DOS filesystem, we must use gdb.ini rather than
11769 # .gdbinit.
11770 case "${host}" in
11771 *-*-msdos* | *-*-go32* | *-*-mingw32* | *-*-windows*)
11772 GDBINIT="gdb.ini"
11773 ac_config_files="$ac_config_files gdb.ini:gdbinit.in"
11774
11775 ;;
11776 *)
11777 GDBINIT=".gdbinit"
11778 ac_config_files="$ac_config_files .gdbinit:gdbinit.in"
11779
11780 ;;
11781 esac
11782
11783
11784 #We need this for the host. BOUT header is in host order.
11785 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
11786 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
11787 if test "${ac_cv_c_bigendian+set}" = set; then :
11788 $as_echo_n "(cached) " >&6
11789 else
11790 ac_cv_c_bigendian=unknown
11791 # See if we're dealing with a universal compiler.
11792 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11793 /* end confdefs.h. */
11794 #ifndef __APPLE_CC__
11795 not a universal capable compiler
11796 #endif
11797 typedef int dummy;
11798
11799 _ACEOF
11800 if ac_fn_c_try_compile "$LINENO"; then :
11801
11802 # Check for potential -arch flags. It is not universal unless
11803 # there are at least two -arch flags with different values.
11804 ac_arch=
11805 ac_prev=
11806 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
11807 if test -n "$ac_prev"; then
11808 case $ac_word in
11809 i?86 | x86_64 | ppc | ppc64)
11810 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
11811 ac_arch=$ac_word
11812 else
11813 ac_cv_c_bigendian=universal
11814 break
11815 fi
11816 ;;
11817 esac
11818 ac_prev=
11819 elif test "x$ac_word" = "x-arch"; then
11820 ac_prev=arch
11821 fi
11822 done
11823 fi
11824 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11825 if test $ac_cv_c_bigendian = unknown; then
11826 # See if sys/param.h defines the BYTE_ORDER macro.
11827 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11828 /* end confdefs.h. */
11829 #include <sys/types.h>
11830 #include <sys/param.h>
11831
11832 int
11833 main ()
11834 {
11835 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
11836 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
11837 && LITTLE_ENDIAN)
11838 bogus endian macros
11839 #endif
11840
11841 ;
11842 return 0;
11843 }
11844 _ACEOF
11845 if ac_fn_c_try_compile "$LINENO"; then :
11846 # It does; now see whether it defined to BIG_ENDIAN or not.
11847 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11848 /* end confdefs.h. */
11849 #include <sys/types.h>
11850 #include <sys/param.h>
11851
11852 int
11853 main ()
11854 {
11855 #if BYTE_ORDER != BIG_ENDIAN
11856 not big endian
11857 #endif
11858
11859 ;
11860 return 0;
11861 }
11862 _ACEOF
11863 if ac_fn_c_try_compile "$LINENO"; then :
11864 ac_cv_c_bigendian=yes
11865 else
11866 ac_cv_c_bigendian=no
11867 fi
11868 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11869 fi
11870 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11871 fi
11872 if test $ac_cv_c_bigendian = unknown; then
11873 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
11874 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11875 /* end confdefs.h. */
11876 #include <limits.h>
11877
11878 int
11879 main ()
11880 {
11881 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
11882 bogus endian macros
11883 #endif
11884
11885 ;
11886 return 0;
11887 }
11888 _ACEOF
11889 if ac_fn_c_try_compile "$LINENO"; then :
11890 # It does; now see whether it defined to _BIG_ENDIAN or not.
11891 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11892 /* end confdefs.h. */
11893 #include <limits.h>
11894
11895 int
11896 main ()
11897 {
11898 #ifndef _BIG_ENDIAN
11899 not big endian
11900 #endif
11901
11902 ;
11903 return 0;
11904 }
11905 _ACEOF
11906 if ac_fn_c_try_compile "$LINENO"; then :
11907 ac_cv_c_bigendian=yes
11908 else
11909 ac_cv_c_bigendian=no
11910 fi
11911 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11912 fi
11913 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11914 fi
11915 if test $ac_cv_c_bigendian = unknown; then
11916 # Compile a test program.
11917 if test "$cross_compiling" = yes; then :
11918 # Try to guess by grepping values from an object file.
11919 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11920 /* end confdefs.h. */
11921 short int ascii_mm[] =
11922 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
11923 short int ascii_ii[] =
11924 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
11925 int use_ascii (int i) {
11926 return ascii_mm[i] + ascii_ii[i];
11927 }
11928 short int ebcdic_ii[] =
11929 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
11930 short int ebcdic_mm[] =
11931 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
11932 int use_ebcdic (int i) {
11933 return ebcdic_mm[i] + ebcdic_ii[i];
11934 }
11935 extern int foo;
11936
11937 int
11938 main ()
11939 {
11940 return use_ascii (foo) == use_ebcdic (foo);
11941 ;
11942 return 0;
11943 }
11944 _ACEOF
11945 if ac_fn_c_try_compile "$LINENO"; then :
11946 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
11947 ac_cv_c_bigendian=yes
11948 fi
11949 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
11950 if test "$ac_cv_c_bigendian" = unknown; then
11951 ac_cv_c_bigendian=no
11952 else
11953 # finding both strings is unlikely to happen, but who knows?
11954 ac_cv_c_bigendian=unknown
11955 fi
11956 fi
11957 fi
11958 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11959 else
11960 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11961 /* end confdefs.h. */
11962 $ac_includes_default
11963 int
11964 main ()
11965 {
11966
11967 /* Are we little or big endian? From Harbison&Steele. */
11968 union
11969 {
11970 long int l;
11971 char c[sizeof (long int)];
11972 } u;
11973 u.l = 1;
11974 return u.c[sizeof (long int) - 1] == 1;
11975
11976 ;
11977 return 0;
11978 }
11979 _ACEOF
11980 if ac_fn_c_try_run "$LINENO"; then :
11981 ac_cv_c_bigendian=no
11982 else
11983 ac_cv_c_bigendian=yes
11984 fi
11985 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11986 conftest.$ac_objext conftest.beam conftest.$ac_ext
11987 fi
11988
11989 fi
11990 fi
11991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
11992 $as_echo "$ac_cv_c_bigendian" >&6; }
11993 case $ac_cv_c_bigendian in #(
11994 yes)
11995 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
11996 ;; #(
11997 no)
11998 ;; #(
11999 universal)
12000
12001 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
12002
12003 ;; #(
12004 *)
12005 as_fn_error "unknown endianness
12006 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
12007 esac
12008
12009
12010 te_file=generic
12011
12012 # Makefile target for installing gas in $(tooldir)/bin.
12013 install_tooldir=install-exec-tooldir
12014
12015 canon_targets=""
12016 all_targets=no
12017 if test -n "$enable_targets" ; then
12018 for t in `echo $enable_targets | sed 's/,/ /g'`; do
12019 if test $t = "all"; then
12020 all_targets=yes
12021 continue
12022 fi
12023 result=`$ac_config_sub $t 2>/dev/null`
12024 if test -n "$result" ; then
12025 canon_targets="$canon_targets $result"
12026 # else
12027 # # Permit "all", etc. We don't support it yet though.
12028 # canon_targets="$canon_targets $t"
12029 fi
12030 done
12031 _gas_uniq_list="$canon_targets"
12032 _gas_uniq_newlist=""
12033 for _gas_uniq_i in _gas_uniq_dummy $_gas_uniq_list ; do
12034 case $_gas_uniq_i in
12035 _gas_uniq_dummy) ;;
12036 *) case " $_gas_uniq_newlist " in
12037 *" $_gas_uniq_i "*) ;;
12038 *) _gas_uniq_newlist="$_gas_uniq_newlist $_gas_uniq_i" ;;
12039 esac ;;
12040 esac
12041 done
12042 canon_targets=$_gas_uniq_newlist
12043
12044 fi
12045
12046 emulations=""
12047
12048 for this_target in $target $canon_targets ; do
12049
12050 targ=${this_target}
12051 . ${srcdir}/configure.tgt
12052
12053 case ${target_cpu} in
12054 crisv32)
12055
12056 cat >>confdefs.h <<_ACEOF
12057 #define DEFAULT_CRIS_ARCH $arch
12058 _ACEOF
12059
12060 ;;
12061 esac
12062
12063 if test ${this_target} = $target ; then
12064 target_cpu_type=${cpu_type}
12065 elif test ${target_cpu_type} != ${cpu_type} ; then
12066 continue
12067 fi
12068
12069 generic_target=${cpu_type}-${target_vendor}-${target_os}
12070 case ${generic_target} in
12071 i386-*-sco3.2v5*)
12072 if test ${this_target} = $target; then
12073
12074 $as_echo "#define SCO_ELF 1" >>confdefs.h
12075
12076 fi
12077 ;;
12078
12079 i386-*-msdosdjgpp* \
12080 | i386-*-go32* \
12081 | i386-go32-rtems*)
12082
12083 $as_echo "#define STRICTCOFF 1" >>confdefs.h
12084
12085 ;;
12086
12087 i860-*-*)
12088 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: GAS support for ${generic_target} is preliminary and a work in progress" >&5
12089 $as_echo "$as_me: WARNING: GAS support for ${generic_target} is preliminary and a work in progress" >&2;}
12090 ;;
12091
12092 microblaze*)
12093 ;;
12094
12095 ppc-*-aix[5-9].*)
12096
12097 $as_echo "#define AIX_WEAK_SUPPORT 1" >>confdefs.h
12098
12099 ;;
12100 ppc-*-solaris*)
12101 if test ${this_target} = $target; then
12102
12103 $as_echo "#define TARGET_SOLARIS_COMMENT 1" >>confdefs.h
12104
12105 fi
12106 if test x${endian} = xbig; then
12107 as_fn_error "Solaris must be configured little endian" "$LINENO" 5
12108 fi
12109 ;;
12110
12111 sh*-*-symbianelf*)
12112
12113 $as_echo "#define TARGET_SYMBIAN 1" >>confdefs.h
12114
12115 ;;
12116 esac
12117
12118 if test ${this_target} = $target ; then
12119 endian_def=
12120 if test x${endian} = xbig; then
12121 endian_def=1
12122 elif test x${endian} = xlittle; then
12123 endian_def=0
12124 fi
12125 if test x${endian_def} != x; then
12126
12127 cat >>confdefs.h <<_ACEOF
12128 #define TARGET_BYTES_BIG_ENDIAN $endian_def
12129 _ACEOF
12130
12131 fi
12132 fi
12133
12134 # Other random stuff.
12135
12136 case ${cpu_type} in
12137 mips)
12138 # Set mips_cpu to the name of the default CPU.
12139 case ${target_cpu} in
12140 mips | mipsbe | mipseb | mipsle | mipsel | mips64 | mips64el)
12141 mips_cpu=from-abi
12142 ;;
12143 mipsisa32 | mipsisa32el)
12144 mips_cpu=mips32
12145 ;;
12146 mipsisa32r2 | mipsisa32r2el)
12147 mips_cpu=mips32r2
12148 ;;
12149 mipsisa32r3 | mipsisa32r3el)
12150 mips_cpu=mips32r3
12151 ;;
12152 mipsisa32r5 | mipsisa32r5el)
12153 mips_cpu=mips32r5
12154 ;;
12155 mipsisa32r6 | mipsisa32r6el)
12156 mips_cpu=mips32r6
12157 ;;
12158 mipsisa64 | mipsisa64el)
12159 mips_cpu=mips64
12160 ;;
12161 mipsisa64r2 | mipsisa64r2el)
12162 mips_cpu=mips64r2
12163 ;;
12164 mipsisa64r3 | mipsisa64r3el)
12165 mips_cpu=mips64r3
12166 ;;
12167 mipsisa64r5 | mipsisa64r5el)
12168 mips_cpu=mips64r5
12169 ;;
12170 mipsisa64r6 | mipsisa64r6el)
12171 mips_cpu=mips64r6
12172 ;;
12173 mipstx39 | mipstx39el)
12174 mips_cpu=r3900
12175 ;;
12176 mips64vr | mips64vrel)
12177 mips_cpu=vr4100
12178 ;;
12179 mipsisa32r2* | mipsisa64r2*)
12180 mips_cpu=`echo $target_cpu | sed -e 's/[a-z]*..r2//' -e 's/el$//'`
12181 ;;
12182 mipsisa32r6* | mipsisa64r6*)
12183 mips_cpu=`echo $target_cpu | sed -e 's/[a-z]*..r6//' -e 's/el$//'`
12184 ;;
12185 mips64* | mipsisa64* | mipsisa32*)
12186 mips_cpu=`echo $target_cpu | sed -e 's/[a-z]*..//' -e 's/el$//'`
12187 ;;
12188 mips*)
12189 mips_cpu=`echo $target_cpu | sed -e 's/^mips//' -e 's/el$//'`
12190 ;;
12191 *)
12192 as_fn_error "$target_cpu isn't a supported MIPS CPU name" "$LINENO" 5
12193 ;;
12194 esac
12195 # See whether it's appropriate to set E_MIPS_ABI_O32 for o32
12196 # binaries. It's a GNU extension that some OSes don't understand.
12197 case ${target} in
12198 *-*-irix*)
12199 use_e_mips_abi_o32=0
12200 ;;
12201 *)
12202 use_e_mips_abi_o32=1
12203 ;;
12204 esac
12205 # Decide whether to generate 32-bit or 64-bit code by default.
12206 # Used to resolve -march=from-abi when an embedded ABI is selected.
12207 case ${target} in
12208 mips64*-*-* | mipsisa64*-*-*)
12209 mips_default_64bit=1
12210 ;;
12211 *)
12212 mips_default_64bit=0
12213 ;;
12214 esac
12215 # Decide which ABI to target by default.
12216 case ${target} in
12217 mips64*-linux* | mips-sgi-irix6* | mips64*-freebsd* | mips64*-kfreebsd*-gnu)
12218 mips_default_abi=N32_ABI
12219 ;;
12220 mips*-linux* | mips*-freebsd* | mips*-kfreebsd*-gnu)
12221 mips_default_abi=O32_ABI
12222 ;;
12223 mips64*-openbsd*)
12224 mips_default_abi=N64_ABI
12225 ;;
12226 *)
12227 mips_default_abi=NO_ABI
12228 ;;
12229 esac
12230
12231 cat >>confdefs.h <<_ACEOF
12232 #define MIPS_CPU_STRING_DEFAULT "$mips_cpu"
12233 _ACEOF
12234
12235
12236 cat >>confdefs.h <<_ACEOF
12237 #define USE_E_MIPS_ABI_O32 $use_e_mips_abi_o32
12238 _ACEOF
12239
12240
12241 cat >>confdefs.h <<_ACEOF
12242 #define MIPS_DEFAULT_64BIT $mips_default_64bit
12243 _ACEOF
12244
12245
12246 cat >>confdefs.h <<_ACEOF
12247 #define MIPS_DEFAULT_ABI $mips_default_abi
12248 _ACEOF
12249
12250 ;;
12251 esac
12252
12253 # Do we need the opcodes library?
12254 case ${cpu_type} in
12255 vax | tic30)
12256 ;;
12257
12258 *)
12259 need_opcodes=yes
12260
12261 case "${enable_shared}" in
12262 yes) shared_opcodes=true ;;
12263 *opcodes*) shared_opcodes=true ;;
12264 *) shared_opcodes=false ;;
12265 esac
12266 ;;
12267 esac
12268
12269 # Any other special object files needed ?
12270 case ${cpu_type} in
12271
12272 bfin)
12273 echo ${extra_objects} | grep -s "bfin-parse.o"
12274 if test $? -ne 0 ; then
12275 extra_objects="$extra_objects bfin-parse.o"
12276 fi
12277
12278 echo ${extra_objects} | grep -s "bfin-lex-wrapper.o"
12279 if test $? -ne 0 ; then
12280 extra_objects="$extra_objects bfin-lex-wrapper.o"
12281 fi
12282 ;;
12283
12284 epiphany | fr30 | ip2k | iq2000 | lm32 | m32r | or1k)
12285 using_cgen=yes
12286 ;;
12287
12288 m32c)
12289 using_cgen=yes
12290 ;;
12291 frv)
12292 using_cgen=yes
12293 ;;
12294 m68k)
12295 case ${extra_objects} in
12296 *m68k-parse.o*) ;;
12297 *) extra_objects="$extra_objects m68k-parse.o" ;;
12298 esac
12299 ;;
12300
12301 mep)
12302 using_cgen=yes
12303 ;;
12304
12305 mips)
12306 echo ${extra_objects} | grep -s "itbl-parse.o"
12307 if test $? -ne 0 ; then
12308 extra_objects="$extra_objects itbl-parse.o"
12309 fi
12310
12311 echo ${extra_objects} | grep -s "itbl-lex-wrapper.o"
12312 if test $? -ne 0 ; then
12313 extra_objects="$extra_objects itbl-lex-wrapper.o"
12314 fi
12315
12316 echo ${extra_objects} | grep -s "itbl-ops.o"
12317 if test $? -ne 0 ; then
12318 extra_objects="$extra_objects itbl-ops.o"
12319 fi
12320 ;;
12321
12322 mt)
12323 using_cgen=yes
12324 ;;
12325
12326 nds32)
12327 # Decide BASELINE, REDUCED_REGS, FPU_DP_EXT, FPU_SP_EXT features
12328 # based on arch_name.
12329 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for default configuration of --with-arch" >&5
12330 $as_echo_n "checking for default configuration of --with-arch... " >&6; }
12331 if test "x${with_arch}" != x; then
12332 case ${with_arch} in
12333 v2j | v2s | v2f | v2 | v3m | v3j | v3s | v3f | v3 )
12334
12335 cat >>confdefs.h <<_ACEOF
12336 #define NDS32_DEFAULT_ARCH_NAME "$with_arch"
12337 _ACEOF
12338
12339 ;;
12340 *)
12341 as_fn_error "This kind of arch name does *NOT* exist!" "$LINENO" 5
12342 ;;
12343 esac
12344 fi
12345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_arch" >&5
12346 $as_echo "$with_arch" >&6; }
12347
12348 # Decide features one by one.
12349 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for default configuration of --enable-dx-regs" >&5
12350 $as_echo_n "checking for default configuration of --enable-dx-regs... " >&6; }
12351 if test "x${enable_dx_regs}" = xyes; then
12352
12353 $as_echo "#define NDS32_DEFAULT_DX_REGS 1" >>confdefs.h
12354
12355 else
12356
12357 $as_echo "#define NDS32_DEFAULT_DX_REGS 0" >>confdefs.h
12358
12359 fi
12360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_dx_regs" >&5
12361 $as_echo "$enable_dx_regs" >&6; }
12362
12363 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for default configuration of --enable-perf-ext" >&5
12364 $as_echo_n "checking for default configuration of --enable-perf-ext... " >&6; }
12365 if test "x${enable_perf_ext}" = xno; then
12366
12367 $as_echo "#define NDS32_DEFAULT_PERF_EXT 0" >>confdefs.h
12368
12369 else
12370
12371 $as_echo "#define NDS32_DEFAULT_PERF_EXT 1" >>confdefs.h
12372
12373 fi
12374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_perf_ext" >&5
12375 $as_echo "$enable_perf_ext" >&6; }
12376
12377 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for default configuration of --enable-perf-ext2" >&5
12378 $as_echo_n "checking for default configuration of --enable-perf-ext2... " >&6; }
12379 if test "x${enable_perf_ext2}" = xno; then
12380
12381 $as_echo "#define NDS32_DEFAULT_PERF_EXT2 0" >>confdefs.h
12382
12383 else
12384
12385 $as_echo "#define NDS32_DEFAULT_PERF_EXT2 1" >>confdefs.h
12386
12387 fi
12388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_perf_ext2" >&5
12389 $as_echo "$enable_perf_ext2" >&6; }
12390
12391 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for default configuration of --enable-string-ext" >&5
12392 $as_echo_n "checking for default configuration of --enable-string-ext... " >&6; }
12393 if test "x${enable_string_ext}" = xno; then
12394
12395 $as_echo "#define NDS32_DEFAULT_STRING_EXT 0" >>confdefs.h
12396
12397 else
12398
12399 $as_echo "#define NDS32_DEFAULT_STRING_EXT 1" >>confdefs.h
12400
12401 fi
12402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_string_ext" >&5
12403 $as_echo "$enable_string_ext" >&6; }
12404
12405 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for default configuration of --enable-audio-ext" >&5
12406 $as_echo_n "checking for default configuration of --enable-audio-ext... " >&6; }
12407 if test "x${enable_audio_ext}" = xno; then
12408
12409 $as_echo "#define NDS32_DEFAULT_AUDIO_EXT 0" >>confdefs.h
12410
12411 else
12412
12413 $as_echo "#define NDS32_DEFAULT_AUDIO_EXT 1" >>confdefs.h
12414
12415 fi
12416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_audio_ext" >&5
12417 $as_echo "$enable_audio_ext" >&6; }
12418 ;;
12419
12420 i386 | s390 | sparc)
12421 if test $this_target = $target ; then
12422
12423 cat >>confdefs.h <<_ACEOF
12424 #define DEFAULT_ARCH "${arch}"
12425 _ACEOF
12426
12427 fi
12428 ;;
12429
12430 rl78)
12431 echo ${extra_objects} | grep -s "rl78-parse.o"
12432 if test $? -ne 0 ; then
12433 extra_objects="$extra_objects rl78-parse.o"
12434 fi
12435 ;;
12436
12437 rx)
12438 echo ${extra_objects} | grep -s "rx-parse.o"
12439 if test $? -ne 0 ; then
12440 extra_objects="$extra_objects rx-parse.o"
12441 fi
12442 ;;
12443
12444 xstormy16)
12445 using_cgen=yes
12446 ;;
12447
12448 xc16x)
12449 using_cgen=yes
12450 ;;
12451
12452 xtensa)
12453 echo ${extra_objects} | grep -s "xtensa-relax.o"
12454 if test $? -ne 0 ; then
12455 extra_objects="$extra_objects xtensa-relax.o"
12456 fi
12457 ;;
12458
12459 *)
12460 ;;
12461 esac
12462
12463 if test $using_cgen = yes ; then
12464 case "x${extra_objects}" in
12465 *cgen.o*) ;;
12466 *) extra_objects="$extra_objects cgen.o" ;;
12467 esac
12468 fi
12469
12470 # See if we really can support this configuration with the emulation code.
12471
12472 if test $this_target = $target ; then
12473 obj_format=$fmt
12474 te_file=$em
12475 fi
12476
12477 case ${te_file} in
12478 vms) extra_objects="$extra_objects te-vms.o" ;;
12479 esac
12480
12481 # From target name and format, produce a list of supported emulations.
12482
12483 case ${generic_target}-${fmt} in
12484 mips-*-*-*) case "$endian" in
12485 big) emulation="mipsbelf mipslelf mipself" ;;
12486 *) emulation="mipslelf mipsbelf mipself" ;;
12487 esac ;;
12488 # i386-pc-pe-coff != i386-pc-coff.
12489 i386-*-pe-coff) ;;
12490 # Uncommenting the next line will turn on support for i386 AOUT
12491 # for the default linux configuration
12492 # i386-*-linux*-elf) emulation="i386elf i386aout" ;;
12493 #
12494 i386-*-aout) emulation="i386aout" ;;
12495 i386-*-coff) emulation="i386coff" ;;
12496 i386-*-elf) emulation="i386elf" ;;
12497
12498 # Always all formats. The first stated emulation becomes the default.
12499 cris-*-*aout*) emulation="crisaout criself" ;;
12500 cris-*-*) emulation="criself crisaout" ;;
12501 esac
12502
12503 emulations="$emulations $emulation"
12504
12505 done
12506
12507 if test x$ac_default_compressed_debug_sections == xyes ; then
12508
12509 $as_echo "#define DEFAULT_FLAG_COMPRESS_DEBUG 1" >>confdefs.h
12510
12511 fi
12512
12513 # Turn on all targets if possible
12514 if test ${all_targets} = "yes"; then
12515 case ${target_cpu_type} in
12516 i386)
12517 case ${obj_format} in
12518 aout)
12519 emulations="$emulations i386coff i386elf"
12520 ;;
12521 coff)
12522 emulations="$emulations i386aout i386elf"
12523 ;;
12524 elf)
12525 emulations="$emulations i386aout i386coff"
12526 ;;
12527 esac
12528 ;;
12529 x86_64)
12530 case ${obj_format} in
12531 aout)
12532 emulations="$emulations i386coff i386elf"
12533 ;;
12534 coff)
12535 emulations="$emulations i386aout i386elf"
12536 ;;
12537 elf)
12538 emulations="$emulations i386aout i386coff"
12539 ;;
12540 esac
12541 ;;
12542 esac
12543 fi
12544
12545 # PE code has way too many macros tweaking behaviour
12546 case ${te_file} in
12547 pe*) emulations="" ;;
12548 esac
12549
12550 # Assign floating point type. Most processors with FP support
12551 # IEEE FP. On those that don't support FP at all, usually IEEE
12552 # is emulated.
12553 case ${target_cpu} in
12554 vax | pdp11 ) atof=vax ;;
12555 *) atof=ieee ;;
12556 esac
12557
12558 case "${obj_format}" in
12559 "") as_fn_error "GAS does not know what format to use for target ${target}" "$LINENO" 5 ;;
12560 esac
12561
12562 # Unfortunately the cpu in cpu-opc.h file isn't always $(TARGET_CPU).
12563 cgen_cpu_prefix=""
12564 if test $using_cgen = yes ; then
12565 case ${target_cpu} in
12566 or1knd)
12567 cgen_cpu_prefix=or1k ;;
12568 *) cgen_cpu_prefix=${target_cpu} ;;
12569 esac
12570
12571
12572 $as_echo "#define USING_CGEN 1" >>confdefs.h
12573
12574 fi
12575
12576
12577 if test ! -r ${srcdir}/config/tc-${target_cpu_type}.c; then
12578 as_fn_error "GAS does not support target CPU ${target_cpu_type}" "$LINENO" 5
12579 fi
12580
12581 if test ! -r ${srcdir}/config/obj-${obj_format}.c; then
12582 as_fn_error "GAS does not have support for object file format ${obj_format}" "$LINENO" 5
12583 fi
12584
12585 # Some COFF configurations want these random other flags set.
12586 case ${obj_format} in
12587 coff)
12588 case ${target_cpu_type} in
12589 i386)
12590 $as_echo "#define I386COFF 1" >>confdefs.h
12591 ;;
12592 m68k)
12593 $as_echo "#define M68KCOFF 1" >>confdefs.h
12594 ;;
12595 m88k)
12596 $as_echo "#define M88KCOFF 1" >>confdefs.h
12597 ;;
12598 x86_64)
12599 $as_echo "#define I386COFF 1" >>confdefs.h
12600 ;;
12601 esac
12602 ;;
12603 esac
12604
12605 # Getting this done right is going to be a bitch. Each configuration specified
12606 # with --enable-targets=... should be checked for environment, format, cpu
12607 # setting.
12608 #
12609 # For each configuration, the necessary object file support code must be linked
12610 # in. This might be only one, it might be up to four. The necessary emulation
12611 # code needs to be provided, too.
12612 #
12613 # And then there's "--enable-targets=all"....
12614 #
12615 # For now, just always do it for MIPS ELF configurations. Sigh.
12616
12617 formats="${obj_format}"
12618 emfiles=""
12619 EMULATIONS=""
12620 _gas_uniq_list="$emulations"
12621 _gas_uniq_newlist=""
12622 for _gas_uniq_i in _gas_uniq_dummy $_gas_uniq_list ; do
12623 case $_gas_uniq_i in
12624 _gas_uniq_dummy) ;;
12625 *) case " $_gas_uniq_newlist " in
12626 *" $_gas_uniq_i "*) ;;
12627 *) _gas_uniq_newlist="$_gas_uniq_newlist $_gas_uniq_i" ;;
12628 esac ;;
12629 esac
12630 done
12631 emulations=$_gas_uniq_newlist
12632
12633 for em in . $emulations ; do
12634 case $em in
12635 .) continue ;;
12636 mipsbelf | mipslelf | mipself)
12637 fmt=elf file=mipself ;;
12638 *coff)
12639 fmt=coff file=$em ;;
12640 *aout)
12641 fmt=aout file=$em ;;
12642 *elf)
12643 fmt=elf file=$em ;;
12644 esac
12645 formats="$formats $fmt"
12646 emfiles="$emfiles e-$file.o"
12647 EMULATIONS="$EMULATIONS &$em,"
12648 done
12649 _gas_uniq_list="$formats"
12650 _gas_uniq_newlist=""
12651 for _gas_uniq_i in _gas_uniq_dummy $_gas_uniq_list ; do
12652 case $_gas_uniq_i in
12653 _gas_uniq_dummy) ;;
12654 *) case " $_gas_uniq_newlist " in
12655 *" $_gas_uniq_i "*) ;;
12656 *) _gas_uniq_newlist="$_gas_uniq_newlist $_gas_uniq_i" ;;
12657 esac ;;
12658 esac
12659 done
12660 formats=$_gas_uniq_newlist
12661
12662 _gas_uniq_list="$emfiles"
12663 _gas_uniq_newlist=""
12664 for _gas_uniq_i in _gas_uniq_dummy $_gas_uniq_list ; do
12665 case $_gas_uniq_i in
12666 _gas_uniq_dummy) ;;
12667 *) case " $_gas_uniq_newlist " in
12668 *" $_gas_uniq_i "*) ;;
12669 *) _gas_uniq_newlist="$_gas_uniq_newlist $_gas_uniq_i" ;;
12670 esac ;;
12671 esac
12672 done
12673 emfiles=$_gas_uniq_newlist
12674
12675 if test `set . $formats ; shift ; echo $#` -gt 1 ; then
12676 for fmt in $formats ; do
12677 case $fmt in
12678 aout)
12679 $as_echo "#define OBJ_MAYBE_AOUT 1" >>confdefs.h
12680 ;;
12681 bout)
12682 $as_echo "#define OBJ_MAYBE_BOUT 1" >>confdefs.h
12683 ;;
12684 coff)
12685 $as_echo "#define OBJ_MAYBE_COFF 1" >>confdefs.h
12686 ;;
12687 ecoff)
12688 $as_echo "#define OBJ_MAYBE_ECOFF 1" >>confdefs.h
12689 ;;
12690 elf)
12691 $as_echo "#define OBJ_MAYBE_ELF 1" >>confdefs.h
12692 ;;
12693 generic)
12694 $as_echo "#define OBJ_MAYBE_GENERIC 1" >>confdefs.h
12695 ;;
12696 som)
12697 $as_echo "#define OBJ_MAYBE_SOM 1" >>confdefs.h
12698 ;;
12699 esac
12700 extra_objects="$extra_objects obj-$fmt.o"
12701 done
12702 obj_format=multi
12703 fi
12704 if test `set . $emfiles ; shift ; echo $#` -gt 0 ; then
12705 DEFAULT_EMULATION=`set . $emulations ; echo $2`
12706 # e-mipself has more than one emulation per file, e-i386* has just one at the
12707 # moment. If only one emulation is specified, then don't define
12708 # USE_EMULATIONS or include any of the e-files as they will only be bloat.
12709 case "${obj_format}${emfiles}" in
12710 multi* | *mipself*)
12711 extra_objects="$extra_objects $emfiles"
12712
12713 $as_echo "#define USE_EMULATIONS 1" >>confdefs.h
12714 ;;
12715 esac
12716 fi
12717
12718
12719 cat >>confdefs.h <<_ACEOF
12720 #define EMULATIONS $EMULATIONS
12721 _ACEOF
12722
12723
12724 cat >>confdefs.h <<_ACEOF
12725 #define DEFAULT_EMULATION "$DEFAULT_EMULATION"
12726 _ACEOF
12727
12728
12729 reject_dev_configs=yes
12730
12731 case ${reject_dev_configs}-${dev} in
12732 yes-yes) # Oops.
12733 as_fn_error "GAS does not support the ${generic_target} configuration." "$LINENO" 5
12734 ;;
12735 esac
12736
12737
12738
12739
12740
12741
12742
12743 # do we need the opcodes library?
12744 case "${need_opcodes}" in
12745 yes)
12746 OPCODES_LIB=../opcodes/libopcodes.la
12747 ;;
12748 esac
12749
12750
12751
12752
12753 cat >>confdefs.h <<_ACEOF
12754 #define TARGET_ALIAS "${target_alias}"
12755 _ACEOF
12756
12757
12758 cat >>confdefs.h <<_ACEOF
12759 #define TARGET_CANONICAL "${target}"
12760 _ACEOF
12761
12762
12763 cat >>confdefs.h <<_ACEOF
12764 #define TARGET_CPU "${target_cpu}"
12765 _ACEOF
12766
12767
12768 cat >>confdefs.h <<_ACEOF
12769 #define TARGET_VENDOR "${target_vendor}"
12770 _ACEOF
12771
12772
12773 cat >>confdefs.h <<_ACEOF
12774 #define TARGET_OS "${target_os}"
12775 _ACEOF
12776
12777
12778 for ac_prog in 'bison -y' byacc
12779 do
12780 # Extract the first word of "$ac_prog", so it can be a program name with args.
12781 set dummy $ac_prog; ac_word=$2
12782 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12783 $as_echo_n "checking for $ac_word... " >&6; }
12784 if test "${ac_cv_prog_YACC+set}" = set; then :
12785 $as_echo_n "(cached) " >&6
12786 else
12787 if test -n "$YACC"; then
12788 ac_cv_prog_YACC="$YACC" # Let the user override the test.
12789 else
12790 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12791 for as_dir in $PATH
12792 do
12793 IFS=$as_save_IFS
12794 test -z "$as_dir" && as_dir=.
12795 for ac_exec_ext in '' $ac_executable_extensions; do
12796 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12797 ac_cv_prog_YACC="$ac_prog"
12798 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12799 break 2
12800 fi
12801 done
12802 done
12803 IFS=$as_save_IFS
12804
12805 fi
12806 fi
12807 YACC=$ac_cv_prog_YACC
12808 if test -n "$YACC"; then
12809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5
12810 $as_echo "$YACC" >&6; }
12811 else
12812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12813 $as_echo "no" >&6; }
12814 fi
12815
12816
12817 test -n "$YACC" && break
12818 done
12819 test -n "$YACC" || YACC="yacc"
12820
12821 for ac_prog in flex lex
12822 do
12823 # Extract the first word of "$ac_prog", so it can be a program name with args.
12824 set dummy $ac_prog; ac_word=$2
12825 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12826 $as_echo_n "checking for $ac_word... " >&6; }
12827 if test "${ac_cv_prog_LEX+set}" = set; then :
12828 $as_echo_n "(cached) " >&6
12829 else
12830 if test -n "$LEX"; then
12831 ac_cv_prog_LEX="$LEX" # Let the user override the test.
12832 else
12833 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12834 for as_dir in $PATH
12835 do
12836 IFS=$as_save_IFS
12837 test -z "$as_dir" && as_dir=.
12838 for ac_exec_ext in '' $ac_executable_extensions; do
12839 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12840 ac_cv_prog_LEX="$ac_prog"
12841 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12842 break 2
12843 fi
12844 done
12845 done
12846 IFS=$as_save_IFS
12847
12848 fi
12849 fi
12850 LEX=$ac_cv_prog_LEX
12851 if test -n "$LEX"; then
12852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LEX" >&5
12853 $as_echo "$LEX" >&6; }
12854 else
12855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12856 $as_echo "no" >&6; }
12857 fi
12858
12859
12860 test -n "$LEX" && break
12861 done
12862 test -n "$LEX" || LEX=":"
12863
12864 if test "x$LEX" != "x:"; then
12865 cat >conftest.l <<_ACEOF
12866 %%
12867 a { ECHO; }
12868 b { REJECT; }
12869 c { yymore (); }
12870 d { yyless (1); }
12871 e { yyless (input () != 0); }
12872 f { unput (yytext[0]); }
12873 . { BEGIN INITIAL; }
12874 %%
12875 #ifdef YYTEXT_POINTER
12876 extern char *yytext;
12877 #endif
12878 int
12879 main (void)
12880 {
12881 return ! yylex () + ! yywrap ();
12882 }
12883 _ACEOF
12884 { { ac_try="$LEX conftest.l"
12885 case "(($ac_try" in
12886 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12887 *) ac_try_echo=$ac_try;;
12888 esac
12889 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
12890 $as_echo "$ac_try_echo"; } >&5
12891 (eval "$LEX conftest.l") 2>&5
12892 ac_status=$?
12893 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12894 test $ac_status = 0; }
12895 { $as_echo "$as_me:${as_lineno-$LINENO}: checking lex output file root" >&5
12896 $as_echo_n "checking lex output file root... " >&6; }
12897 if test "${ac_cv_prog_lex_root+set}" = set; then :
12898 $as_echo_n "(cached) " >&6
12899 else
12900
12901 if test -f lex.yy.c; then
12902 ac_cv_prog_lex_root=lex.yy
12903 elif test -f lexyy.c; then
12904 ac_cv_prog_lex_root=lexyy
12905 else
12906 as_fn_error "cannot find output from $LEX; giving up" "$LINENO" 5
12907 fi
12908 fi
12909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_root" >&5
12910 $as_echo "$ac_cv_prog_lex_root" >&6; }
12911 LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
12912
12913 if test -z "${LEXLIB+set}"; then
12914 { $as_echo "$as_me:${as_lineno-$LINENO}: checking lex library" >&5
12915 $as_echo_n "checking lex library... " >&6; }
12916 if test "${ac_cv_lib_lex+set}" = set; then :
12917 $as_echo_n "(cached) " >&6
12918 else
12919
12920 ac_save_LIBS=$LIBS
12921 ac_cv_lib_lex='none needed'
12922 for ac_lib in '' -lfl -ll; do
12923 LIBS="$ac_lib $ac_save_LIBS"
12924 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12925 /* end confdefs.h. */
12926 `cat $LEX_OUTPUT_ROOT.c`
12927 _ACEOF
12928 if ac_fn_c_try_link "$LINENO"; then :
12929 ac_cv_lib_lex=$ac_lib
12930 fi
12931 rm -f core conftest.err conftest.$ac_objext \
12932 conftest$ac_exeext conftest.$ac_ext
12933 test "$ac_cv_lib_lex" != 'none needed' && break
12934 done
12935 LIBS=$ac_save_LIBS
12936
12937 fi
12938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lex" >&5
12939 $as_echo "$ac_cv_lib_lex" >&6; }
12940 test "$ac_cv_lib_lex" != 'none needed' && LEXLIB=$ac_cv_lib_lex
12941 fi
12942
12943
12944 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether yytext is a pointer" >&5
12945 $as_echo_n "checking whether yytext is a pointer... " >&6; }
12946 if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then :
12947 $as_echo_n "(cached) " >&6
12948 else
12949 # POSIX says lex can declare yytext either as a pointer or an array; the
12950 # default is implementation-dependent. Figure out which it is, since
12951 # not all implementations provide the %pointer and %array declarations.
12952 ac_cv_prog_lex_yytext_pointer=no
12953 ac_save_LIBS=$LIBS
12954 LIBS="$LEXLIB $ac_save_LIBS"
12955 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12956 /* end confdefs.h. */
12957 #define YYTEXT_POINTER 1
12958 `cat $LEX_OUTPUT_ROOT.c`
12959 _ACEOF
12960 if ac_fn_c_try_link "$LINENO"; then :
12961 ac_cv_prog_lex_yytext_pointer=yes
12962 fi
12963 rm -f core conftest.err conftest.$ac_objext \
12964 conftest$ac_exeext conftest.$ac_ext
12965 LIBS=$ac_save_LIBS
12966
12967 fi
12968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_yytext_pointer" >&5
12969 $as_echo "$ac_cv_prog_lex_yytext_pointer" >&6; }
12970 if test $ac_cv_prog_lex_yytext_pointer = yes; then
12971
12972 $as_echo "#define YYTEXT_POINTER 1" >>confdefs.h
12973
12974 fi
12975 rm -f conftest.l $LEX_OUTPUT_ROOT.c
12976
12977 fi
12978 if test "$LEX" = :; then
12979 LEX=${am_missing_run}flex
12980 fi
12981
12982 ALL_LINGUAS="fr tr es rw id ru fi ja"
12983 # If we haven't got the data from the intl directory,
12984 # assume NLS is disabled.
12985 USE_NLS=no
12986 LIBINTL=
12987 LIBINTL_DEP=
12988 INCINTL=
12989 XGETTEXT=
12990 GMSGFMT=
12991 POSUB=
12992
12993 if test -f ../intl/config.intl; then
12994 . ../intl/config.intl
12995 fi
12996 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
12997 $as_echo_n "checking whether NLS is requested... " >&6; }
12998 if test x"$USE_NLS" != xyes; then
12999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13000 $as_echo "no" >&6; }
13001 else
13002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13003 $as_echo "yes" >&6; }
13004
13005 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
13006
13007
13008 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catalogs to be installed" >&5
13009 $as_echo_n "checking for catalogs to be installed... " >&6; }
13010 # Look for .po and .gmo files in the source directory.
13011 CATALOGS=
13012 XLINGUAS=
13013 for cat in $srcdir/po/*.gmo $srcdir/po/*.po; do
13014 # If there aren't any .gmo files the shell will give us the
13015 # literal string "../path/to/srcdir/po/*.gmo" which has to be
13016 # weeded out.
13017 case "$cat" in *\**)
13018 continue;;
13019 esac
13020 # The quadruple backslash is collapsed to a double backslash
13021 # by the backticks, then collapsed again by the double quotes,
13022 # leaving us with one backslash in the sed expression (right
13023 # before the dot that mustn't act as a wildcard).
13024 cat=`echo $cat | sed -e "s!$srcdir/po/!!" -e "s!\\\\.po!.gmo!"`
13025 lang=`echo $cat | sed -e "s!\\\\.gmo!!"`
13026 # The user is allowed to set LINGUAS to a list of languages to
13027 # install catalogs for. If it's empty that means "all of them."
13028 if test "x$LINGUAS" = x; then
13029 CATALOGS="$CATALOGS $cat"
13030 XLINGUAS="$XLINGUAS $lang"
13031 else
13032 case "$LINGUAS" in *$lang*)
13033 CATALOGS="$CATALOGS $cat"
13034 XLINGUAS="$XLINGUAS $lang"
13035 ;;
13036 esac
13037 fi
13038 done
13039 LINGUAS="$XLINGUAS"
13040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINGUAS" >&5
13041 $as_echo "$LINGUAS" >&6; }
13042
13043
13044 DATADIRNAME=share
13045
13046 INSTOBJEXT=.mo
13047
13048 GENCAT=gencat
13049
13050 CATOBJEXT=.gmo
13051
13052 fi
13053
13054 MKINSTALLDIRS=
13055 if test -n "$ac_aux_dir"; then
13056 case "$ac_aux_dir" in
13057 /*) MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" ;;
13058 *) MKINSTALLDIRS="\$(top_builddir)/$ac_aux_dir/mkinstalldirs" ;;
13059 esac
13060 fi
13061 if test -z "$MKINSTALLDIRS"; then
13062 MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
13063 fi
13064
13065
13066
13067 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
13068 $as_echo_n "checking whether NLS is requested... " >&6; }
13069 # Check whether --enable-nls was given.
13070 if test "${enable_nls+set}" = set; then :
13071 enableval=$enable_nls; USE_NLS=$enableval
13072 else
13073 USE_NLS=yes
13074 fi
13075
13076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
13077 $as_echo "$USE_NLS" >&6; }
13078
13079
13080
13081
13082
13083
13084 # Prepare PATH_SEPARATOR.
13085 # The user is always right.
13086 if test "${PATH_SEPARATOR+set}" != set; then
13087 echo "#! /bin/sh" >conf$$.sh
13088 echo "exit 0" >>conf$$.sh
13089 chmod +x conf$$.sh
13090 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
13091 PATH_SEPARATOR=';'
13092 else
13093 PATH_SEPARATOR=:
13094 fi
13095 rm -f conf$$.sh
13096 fi
13097
13098 # Find out how to test for executable files. Don't use a zero-byte file,
13099 # as systems may use methods other than mode bits to determine executability.
13100 cat >conf$$.file <<_ASEOF
13101 #! /bin/sh
13102 exit 0
13103 _ASEOF
13104 chmod +x conf$$.file
13105 if test -x conf$$.file >/dev/null 2>&1; then
13106 ac_executable_p="test -x"
13107 else
13108 ac_executable_p="test -f"
13109 fi
13110 rm -f conf$$.file
13111
13112 # Extract the first word of "msgfmt", so it can be a program name with args.
13113 set dummy msgfmt; ac_word=$2
13114 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13115 $as_echo_n "checking for $ac_word... " >&6; }
13116 if test "${ac_cv_path_MSGFMT+set}" = set; then :
13117 $as_echo_n "(cached) " >&6
13118 else
13119 case "$MSGFMT" in
13120 [\\/]* | ?:[\\/]*)
13121 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
13122 ;;
13123 *)
13124 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
13125 for ac_dir in $PATH; do
13126 IFS="$ac_save_IFS"
13127 test -z "$ac_dir" && ac_dir=.
13128 for ac_exec_ext in '' $ac_executable_extensions; do
13129 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
13130 if $ac_dir/$ac_word --statistics /dev/null >/dev/null 2>&1 &&
13131 (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
13132 ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
13133 break 2
13134 fi
13135 fi
13136 done
13137 done
13138 IFS="$ac_save_IFS"
13139 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
13140 ;;
13141 esac
13142 fi
13143 MSGFMT="$ac_cv_path_MSGFMT"
13144 if test "$MSGFMT" != ":"; then
13145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
13146 $as_echo "$MSGFMT" >&6; }
13147 else
13148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13149 $as_echo "no" >&6; }
13150 fi
13151
13152 # Extract the first word of "gmsgfmt", so it can be a program name with args.
13153 set dummy gmsgfmt; ac_word=$2
13154 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13155 $as_echo_n "checking for $ac_word... " >&6; }
13156 if test "${ac_cv_path_GMSGFMT+set}" = set; then :
13157 $as_echo_n "(cached) " >&6
13158 else
13159 case $GMSGFMT in
13160 [\\/]* | ?:[\\/]*)
13161 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
13162 ;;
13163 *)
13164 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13165 for as_dir in $PATH
13166 do
13167 IFS=$as_save_IFS
13168 test -z "$as_dir" && as_dir=.
13169 for ac_exec_ext in '' $ac_executable_extensions; do
13170 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13171 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
13172 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13173 break 2
13174 fi
13175 done
13176 done
13177 IFS=$as_save_IFS
13178
13179 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
13180 ;;
13181 esac
13182 fi
13183 GMSGFMT=$ac_cv_path_GMSGFMT
13184 if test -n "$GMSGFMT"; then
13185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMSGFMT" >&5
13186 $as_echo "$GMSGFMT" >&6; }
13187 else
13188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13189 $as_echo "no" >&6; }
13190 fi
13191
13192
13193
13194
13195 # Prepare PATH_SEPARATOR.
13196 # The user is always right.
13197 if test "${PATH_SEPARATOR+set}" != set; then
13198 echo "#! /bin/sh" >conf$$.sh
13199 echo "exit 0" >>conf$$.sh
13200 chmod +x conf$$.sh
13201 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
13202 PATH_SEPARATOR=';'
13203 else
13204 PATH_SEPARATOR=:
13205 fi
13206 rm -f conf$$.sh
13207 fi
13208
13209 # Find out how to test for executable files. Don't use a zero-byte file,
13210 # as systems may use methods other than mode bits to determine executability.
13211 cat >conf$$.file <<_ASEOF
13212 #! /bin/sh
13213 exit 0
13214 _ASEOF
13215 chmod +x conf$$.file
13216 if test -x conf$$.file >/dev/null 2>&1; then
13217 ac_executable_p="test -x"
13218 else
13219 ac_executable_p="test -f"
13220 fi
13221 rm -f conf$$.file
13222
13223 # Extract the first word of "xgettext", so it can be a program name with args.
13224 set dummy xgettext; ac_word=$2
13225 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13226 $as_echo_n "checking for $ac_word... " >&6; }
13227 if test "${ac_cv_path_XGETTEXT+set}" = set; then :
13228 $as_echo_n "(cached) " >&6
13229 else
13230 case "$XGETTEXT" in
13231 [\\/]* | ?:[\\/]*)
13232 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
13233 ;;
13234 *)
13235 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
13236 for ac_dir in $PATH; do
13237 IFS="$ac_save_IFS"
13238 test -z "$ac_dir" && ac_dir=.
13239 for ac_exec_ext in '' $ac_executable_extensions; do
13240 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
13241 if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
13242 (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
13243 ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
13244 break 2
13245 fi
13246 fi
13247 done
13248 done
13249 IFS="$ac_save_IFS"
13250 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
13251 ;;
13252 esac
13253 fi
13254 XGETTEXT="$ac_cv_path_XGETTEXT"
13255 if test "$XGETTEXT" != ":"; then
13256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5
13257 $as_echo "$XGETTEXT" >&6; }
13258 else
13259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13260 $as_echo "no" >&6; }
13261 fi
13262
13263 rm -f messages.po
13264
13265
13266 # Prepare PATH_SEPARATOR.
13267 # The user is always right.
13268 if test "${PATH_SEPARATOR+set}" != set; then
13269 echo "#! /bin/sh" >conf$$.sh
13270 echo "exit 0" >>conf$$.sh
13271 chmod +x conf$$.sh
13272 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
13273 PATH_SEPARATOR=';'
13274 else
13275 PATH_SEPARATOR=:
13276 fi
13277 rm -f conf$$.sh
13278 fi
13279
13280 # Find out how to test for executable files. Don't use a zero-byte file,
13281 # as systems may use methods other than mode bits to determine executability.
13282 cat >conf$$.file <<_ASEOF
13283 #! /bin/sh
13284 exit 0
13285 _ASEOF
13286 chmod +x conf$$.file
13287 if test -x conf$$.file >/dev/null 2>&1; then
13288 ac_executable_p="test -x"
13289 else
13290 ac_executable_p="test -f"
13291 fi
13292 rm -f conf$$.file
13293
13294 # Extract the first word of "msgmerge", so it can be a program name with args.
13295 set dummy msgmerge; ac_word=$2
13296 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13297 $as_echo_n "checking for $ac_word... " >&6; }
13298 if test "${ac_cv_path_MSGMERGE+set}" = set; then :
13299 $as_echo_n "(cached) " >&6
13300 else
13301 case "$MSGMERGE" in
13302 [\\/]* | ?:[\\/]*)
13303 ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
13304 ;;
13305 *)
13306 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
13307 for ac_dir in $PATH; do
13308 IFS="$ac_save_IFS"
13309 test -z "$ac_dir" && ac_dir=.
13310 for ac_exec_ext in '' $ac_executable_extensions; do
13311 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
13312 if $ac_dir/$ac_word --update -q /dev/null /dev/null >/dev/null 2>&1; then
13313 ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
13314 break 2
13315 fi
13316 fi
13317 done
13318 done
13319 IFS="$ac_save_IFS"
13320 test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
13321 ;;
13322 esac
13323 fi
13324 MSGMERGE="$ac_cv_path_MSGMERGE"
13325 if test "$MSGMERGE" != ":"; then
13326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGMERGE" >&5
13327 $as_echo "$MSGMERGE" >&6; }
13328 else
13329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13330 $as_echo "no" >&6; }
13331 fi
13332
13333
13334 if test "$GMSGFMT" != ":"; then
13335 if $GMSGFMT --statistics /dev/null >/dev/null 2>&1 &&
13336 (if $GMSGFMT --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
13337 : ;
13338 else
13339 GMSGFMT=`echo "$GMSGFMT" | sed -e 's,^.*/,,'`
13340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found $GMSGFMT program is not GNU msgfmt; ignore it" >&5
13341 $as_echo "found $GMSGFMT program is not GNU msgfmt; ignore it" >&6; }
13342 GMSGFMT=":"
13343 fi
13344 fi
13345
13346 if test "$XGETTEXT" != ":"; then
13347 if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
13348 (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
13349 : ;
13350 else
13351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found xgettext program is not GNU xgettext; ignore it" >&5
13352 $as_echo "found xgettext program is not GNU xgettext; ignore it" >&6; }
13353 XGETTEXT=":"
13354 fi
13355 rm -f messages.po
13356 fi
13357
13358 ac_config_commands="$ac_config_commands default-1"
13359
13360
13361
13362
13363 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
13364 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
13365 # Check whether --enable-maintainer-mode was given.
13366 if test "${enable_maintainer_mode+set}" = set; then :
13367 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
13368 else
13369 USE_MAINTAINER_MODE=no
13370 fi
13371
13372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
13373 $as_echo "$USE_MAINTAINER_MODE" >&6; }
13374 if test $USE_MAINTAINER_MODE = yes; then
13375 MAINTAINER_MODE_TRUE=
13376 MAINTAINER_MODE_FALSE='#'
13377 else
13378 MAINTAINER_MODE_TRUE='#'
13379 MAINTAINER_MODE_FALSE=
13380 fi
13381
13382 MAINT=$MAINTAINER_MODE_TRUE
13383
13384
13385 if false; then
13386 GENINSRC_NEVER_TRUE=
13387 GENINSRC_NEVER_FALSE='#'
13388 else
13389 GENINSRC_NEVER_TRUE='#'
13390 GENINSRC_NEVER_FALSE=
13391 fi
13392
13393
13394
13395 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
13396 do :
13397 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
13398 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
13399 eval as_val=\$$as_ac_Header
13400 if test "x$as_val" = x""yes; then :
13401 cat >>confdefs.h <<_ACEOF
13402 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
13403 _ACEOF
13404
13405 fi
13406
13407 done
13408
13409 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether string.h and strings.h may both be included" >&5
13410 $as_echo_n "checking whether string.h and strings.h may both be included... " >&6; }
13411 if test "${gcc_cv_header_string+set}" = set; then :
13412 $as_echo_n "(cached) " >&6
13413 else
13414 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13415 /* end confdefs.h. */
13416 #include <string.h>
13417 #include <strings.h>
13418 int
13419 main ()
13420 {
13421
13422 ;
13423 return 0;
13424 }
13425 _ACEOF
13426 if ac_fn_c_try_compile "$LINENO"; then :
13427 gcc_cv_header_string=yes
13428 else
13429 gcc_cv_header_string=no
13430 fi
13431 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13432 fi
13433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_string" >&5
13434 $as_echo "$gcc_cv_header_string" >&6; }
13435 if test $gcc_cv_header_string = yes; then
13436
13437 $as_echo "#define STRING_WITH_STRINGS 1" >>confdefs.h
13438
13439 fi
13440
13441
13442 # Put this here so that autoconf's "cross-compiling" message doesn't confuse
13443 # people who are not cross-compiling but are compiling cross-assemblers.
13444 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiling a cross-assembler" >&5
13445 $as_echo_n "checking whether compiling a cross-assembler... " >&6; }
13446 if test "${host}" = "${target}"; then
13447 cross_gas=no
13448 else
13449 cross_gas=yes
13450
13451 $as_echo "#define CROSS_COMPILE 1" >>confdefs.h
13452
13453 fi
13454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_gas" >&5
13455 $as_echo "$cross_gas" >&6; }
13456
13457 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
13458 # for constant arguments. Useless!
13459 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
13460 $as_echo_n "checking for working alloca.h... " >&6; }
13461 if test "${ac_cv_working_alloca_h+set}" = set; then :
13462 $as_echo_n "(cached) " >&6
13463 else
13464 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13465 /* end confdefs.h. */
13466 #include <alloca.h>
13467 int
13468 main ()
13469 {
13470 char *p = (char *) alloca (2 * sizeof (int));
13471 if (p) return 0;
13472 ;
13473 return 0;
13474 }
13475 _ACEOF
13476 if ac_fn_c_try_link "$LINENO"; then :
13477 ac_cv_working_alloca_h=yes
13478 else
13479 ac_cv_working_alloca_h=no
13480 fi
13481 rm -f core conftest.err conftest.$ac_objext \
13482 conftest$ac_exeext conftest.$ac_ext
13483 fi
13484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
13485 $as_echo "$ac_cv_working_alloca_h" >&6; }
13486 if test $ac_cv_working_alloca_h = yes; then
13487
13488 $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
13489
13490 fi
13491
13492 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
13493 $as_echo_n "checking for alloca... " >&6; }
13494 if test "${ac_cv_func_alloca_works+set}" = set; then :
13495 $as_echo_n "(cached) " >&6
13496 else
13497 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13498 /* end confdefs.h. */
13499 #ifdef __GNUC__
13500 # define alloca __builtin_alloca
13501 #else
13502 # ifdef _MSC_VER
13503 # include <malloc.h>
13504 # define alloca _alloca
13505 # else
13506 # ifdef HAVE_ALLOCA_H
13507 # include <alloca.h>
13508 # else
13509 # ifdef _AIX
13510 #pragma alloca
13511 # else
13512 # ifndef alloca /* predefined by HP cc +Olibcalls */
13513 char *alloca ();
13514 # endif
13515 # endif
13516 # endif
13517 # endif
13518 #endif
13519
13520 int
13521 main ()
13522 {
13523 char *p = (char *) alloca (1);
13524 if (p) return 0;
13525 ;
13526 return 0;
13527 }
13528 _ACEOF
13529 if ac_fn_c_try_link "$LINENO"; then :
13530 ac_cv_func_alloca_works=yes
13531 else
13532 ac_cv_func_alloca_works=no
13533 fi
13534 rm -f core conftest.err conftest.$ac_objext \
13535 conftest$ac_exeext conftest.$ac_ext
13536 fi
13537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
13538 $as_echo "$ac_cv_func_alloca_works" >&6; }
13539
13540 if test $ac_cv_func_alloca_works = yes; then
13541
13542 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
13543
13544 else
13545 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
13546 # that cause trouble. Some versions do not even contain alloca or
13547 # contain a buggy version. If you still want to use their alloca,
13548 # use ar to extract alloca.o from them instead of compiling alloca.c.
13549
13550 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
13551
13552 $as_echo "#define C_ALLOCA 1" >>confdefs.h
13553
13554
13555 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
13556 $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
13557 if test "${ac_cv_os_cray+set}" = set; then :
13558 $as_echo_n "(cached) " >&6
13559 else
13560 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13561 /* end confdefs.h. */
13562 #if defined CRAY && ! defined CRAY2
13563 webecray
13564 #else
13565 wenotbecray
13566 #endif
13567
13568 _ACEOF
13569 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13570 $EGREP "webecray" >/dev/null 2>&1; then :
13571 ac_cv_os_cray=yes
13572 else
13573 ac_cv_os_cray=no
13574 fi
13575 rm -f conftest*
13576
13577 fi
13578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
13579 $as_echo "$ac_cv_os_cray" >&6; }
13580 if test $ac_cv_os_cray = yes; then
13581 for ac_func in _getb67 GETB67 getb67; do
13582 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13583 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
13584 eval as_val=\$$as_ac_var
13585 if test "x$as_val" = x""yes; then :
13586
13587 cat >>confdefs.h <<_ACEOF
13588 #define CRAY_STACKSEG_END $ac_func
13589 _ACEOF
13590
13591 break
13592 fi
13593
13594 done
13595 fi
13596
13597 { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
13598 $as_echo_n "checking stack direction for C alloca... " >&6; }
13599 if test "${ac_cv_c_stack_direction+set}" = set; then :
13600 $as_echo_n "(cached) " >&6
13601 else
13602 if test "$cross_compiling" = yes; then :
13603 ac_cv_c_stack_direction=0
13604 else
13605 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13606 /* end confdefs.h. */
13607 $ac_includes_default
13608 int
13609 find_stack_direction ()
13610 {
13611 static char *addr = 0;
13612 auto char dummy;
13613 if (addr == 0)
13614 {
13615 addr = &dummy;
13616 return find_stack_direction ();
13617 }
13618 else
13619 return (&dummy > addr) ? 1 : -1;
13620 }
13621
13622 int
13623 main ()
13624 {
13625 return find_stack_direction () < 0;
13626 }
13627 _ACEOF
13628 if ac_fn_c_try_run "$LINENO"; then :
13629 ac_cv_c_stack_direction=1
13630 else
13631 ac_cv_c_stack_direction=-1
13632 fi
13633 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13634 conftest.$ac_objext conftest.beam conftest.$ac_ext
13635 fi
13636
13637 fi
13638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
13639 $as_echo "$ac_cv_c_stack_direction" >&6; }
13640 cat >>confdefs.h <<_ACEOF
13641 #define STACK_DIRECTION $ac_cv_c_stack_direction
13642 _ACEOF
13643
13644
13645 fi
13646
13647 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
13648 $as_echo_n "checking for inline... " >&6; }
13649 if test "${ac_cv_c_inline+set}" = set; then :
13650 $as_echo_n "(cached) " >&6
13651 else
13652 ac_cv_c_inline=no
13653 for ac_kw in inline __inline__ __inline; do
13654 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13655 /* end confdefs.h. */
13656 #ifndef __cplusplus
13657 typedef int foo_t;
13658 static $ac_kw foo_t static_foo () {return 0; }
13659 $ac_kw foo_t foo () {return 0; }
13660 #endif
13661
13662 _ACEOF
13663 if ac_fn_c_try_compile "$LINENO"; then :
13664 ac_cv_c_inline=$ac_kw
13665 fi
13666 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13667 test "$ac_cv_c_inline" != no && break
13668 done
13669
13670 fi
13671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
13672 $as_echo "$ac_cv_c_inline" >&6; }
13673
13674 case $ac_cv_c_inline in
13675 inline | yes) ;;
13676 *)
13677 case $ac_cv_c_inline in
13678 no) ac_val=;;
13679 *) ac_val=$ac_cv_c_inline;;
13680 esac
13681 cat >>confdefs.h <<_ACEOF
13682 #ifndef __cplusplus
13683 #define inline $ac_val
13684 #endif
13685 _ACEOF
13686 ;;
13687 esac
13688
13689
13690 # VMS doesn't have unlink.
13691 for ac_func in unlink remove
13692 do :
13693 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13694 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
13695 eval as_val=\$$as_ac_var
13696 if test "x$as_val" = x""yes; then :
13697 cat >>confdefs.h <<_ACEOF
13698 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
13699 _ACEOF
13700 break
13701 fi
13702 done
13703
13704 for ac_func in sbrk setlocale
13705 do :
13706 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13707 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
13708 eval as_val=\$$as_ac_var
13709 if test "x$as_val" = x""yes; then :
13710 cat >>confdefs.h <<_ACEOF
13711 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
13712 _ACEOF
13713
13714 fi
13715 done
13716
13717
13718
13719 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LC_MESSAGES" >&5
13720 $as_echo_n "checking for LC_MESSAGES... " >&6; }
13721 if test "${am_cv_val_LC_MESSAGES+set}" = set; then :
13722 $as_echo_n "(cached) " >&6
13723 else
13724 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13725 /* end confdefs.h. */
13726 #include <locale.h>
13727 int
13728 main ()
13729 {
13730 return LC_MESSAGES
13731 ;
13732 return 0;
13733 }
13734 _ACEOF
13735 if ac_fn_c_try_link "$LINENO"; then :
13736 am_cv_val_LC_MESSAGES=yes
13737 else
13738 am_cv_val_LC_MESSAGES=no
13739 fi
13740 rm -f core conftest.err conftest.$ac_objext \
13741 conftest$ac_exeext conftest.$ac_ext
13742 fi
13743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_val_LC_MESSAGES" >&5
13744 $as_echo "$am_cv_val_LC_MESSAGES" >&6; }
13745 if test $am_cv_val_LC_MESSAGES = yes; then
13746
13747 $as_echo "#define HAVE_LC_MESSAGES 1" >>confdefs.h
13748
13749 fi
13750
13751
13752 # do we need the math library?
13753 case "${need_libm}" in
13754 yes)
13755 LIBM=
13756 case $host in
13757 *-*-beos* | *-*-cegcc* | *-*-cygwin* | *-*-haiku* | *-*-pw32* | *-*-darwin*)
13758 # These system don't have libm, or don't need it
13759 ;;
13760 *-ncr-sysv4.3*)
13761 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _mwvalidcheckl in -lmw" >&5
13762 $as_echo_n "checking for _mwvalidcheckl in -lmw... " >&6; }
13763 if test "${ac_cv_lib_mw__mwvalidcheckl+set}" = set; then :
13764 $as_echo_n "(cached) " >&6
13765 else
13766 ac_check_lib_save_LIBS=$LIBS
13767 LIBS="-lmw $LIBS"
13768 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13769 /* end confdefs.h. */
13770
13771 /* Override any GCC internal prototype to avoid an error.
13772 Use char because int might match the return type of a GCC
13773 builtin and then its argument prototype would still apply. */
13774 #ifdef __cplusplus
13775 extern "C"
13776 #endif
13777 char _mwvalidcheckl ();
13778 int
13779 main ()
13780 {
13781 return _mwvalidcheckl ();
13782 ;
13783 return 0;
13784 }
13785 _ACEOF
13786 if ac_fn_c_try_link "$LINENO"; then :
13787 ac_cv_lib_mw__mwvalidcheckl=yes
13788 else
13789 ac_cv_lib_mw__mwvalidcheckl=no
13790 fi
13791 rm -f core conftest.err conftest.$ac_objext \
13792 conftest$ac_exeext conftest.$ac_ext
13793 LIBS=$ac_check_lib_save_LIBS
13794 fi
13795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mw__mwvalidcheckl" >&5
13796 $as_echo "$ac_cv_lib_mw__mwvalidcheckl" >&6; }
13797 if test "x$ac_cv_lib_mw__mwvalidcheckl" = x""yes; then :
13798 LIBM="-lmw"
13799 fi
13800
13801 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cos in -lm" >&5
13802 $as_echo_n "checking for cos in -lm... " >&6; }
13803 if test "${ac_cv_lib_m_cos+set}" = set; then :
13804 $as_echo_n "(cached) " >&6
13805 else
13806 ac_check_lib_save_LIBS=$LIBS
13807 LIBS="-lm $LIBS"
13808 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13809 /* end confdefs.h. */
13810
13811 /* Override any GCC internal prototype to avoid an error.
13812 Use char because int might match the return type of a GCC
13813 builtin and then its argument prototype would still apply. */
13814 #ifdef __cplusplus
13815 extern "C"
13816 #endif
13817 char cos ();
13818 int
13819 main ()
13820 {
13821 return cos ();
13822 ;
13823 return 0;
13824 }
13825 _ACEOF
13826 if ac_fn_c_try_link "$LINENO"; then :
13827 ac_cv_lib_m_cos=yes
13828 else
13829 ac_cv_lib_m_cos=no
13830 fi
13831 rm -f core conftest.err conftest.$ac_objext \
13832 conftest$ac_exeext conftest.$ac_ext
13833 LIBS=$ac_check_lib_save_LIBS
13834 fi
13835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_cos" >&5
13836 $as_echo "$ac_cv_lib_m_cos" >&6; }
13837 if test "x$ac_cv_lib_m_cos" = x""yes; then :
13838 LIBM="$LIBM -lm"
13839 fi
13840
13841 ;;
13842 *)
13843 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cos in -lm" >&5
13844 $as_echo_n "checking for cos in -lm... " >&6; }
13845 if test "${ac_cv_lib_m_cos+set}" = set; then :
13846 $as_echo_n "(cached) " >&6
13847 else
13848 ac_check_lib_save_LIBS=$LIBS
13849 LIBS="-lm $LIBS"
13850 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13851 /* end confdefs.h. */
13852
13853 /* Override any GCC internal prototype to avoid an error.
13854 Use char because int might match the return type of a GCC
13855 builtin and then its argument prototype would still apply. */
13856 #ifdef __cplusplus
13857 extern "C"
13858 #endif
13859 char cos ();
13860 int
13861 main ()
13862 {
13863 return cos ();
13864 ;
13865 return 0;
13866 }
13867 _ACEOF
13868 if ac_fn_c_try_link "$LINENO"; then :
13869 ac_cv_lib_m_cos=yes
13870 else
13871 ac_cv_lib_m_cos=no
13872 fi
13873 rm -f core conftest.err conftest.$ac_objext \
13874 conftest$ac_exeext conftest.$ac_ext
13875 LIBS=$ac_check_lib_save_LIBS
13876 fi
13877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_cos" >&5
13878 $as_echo "$ac_cv_lib_m_cos" >&6; }
13879 if test "x$ac_cv_lib_m_cos" = x""yes; then :
13880 LIBM="-lm"
13881 fi
13882
13883 ;;
13884 esac
13885
13886
13887
13888 ;;
13889 esac
13890
13891 # Some non-ANSI preprocessors botch requoting inside strings. That's bad
13892 # enough, but on some of those systems, the assert macro relies on requoting
13893 # working properly!
13894 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working assert macro" >&5
13895 $as_echo_n "checking for working assert macro... " >&6; }
13896 if test "${gas_cv_assert_ok+set}" = set; then :
13897 $as_echo_n "(cached) " >&6
13898 else
13899 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13900 /* end confdefs.h. */
13901 #include <assert.h>
13902 #include <stdio.h>
13903 int
13904 main ()
13905 {
13906
13907 /* check for requoting problems */
13908 static int a, b, c, d;
13909 static char *s;
13910 assert (!strcmp(s, "foo bar baz quux"));
13911 /* check for newline handling */
13912 assert (a == b
13913 || c == d);
13914
13915 ;
13916 return 0;
13917 }
13918 _ACEOF
13919 if ac_fn_c_try_link "$LINENO"; then :
13920 gas_cv_assert_ok=yes
13921 else
13922 gas_cv_assert_ok=no
13923 fi
13924 rm -f core conftest.err conftest.$ac_objext \
13925 conftest$ac_exeext conftest.$ac_ext
13926 fi
13927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gas_cv_assert_ok" >&5
13928 $as_echo "$gas_cv_assert_ok" >&6; }
13929 test $gas_cv_assert_ok = yes ||
13930 $as_echo "#define BROKEN_ASSERT 1" >>confdefs.h
13931
13932
13933
13934 # On some systems, the system header files may not declare malloc, realloc,
13935 # and free. There are places where gas needs these functions to have been
13936 # declared -- such as when taking their addresses.
13937 gas_test_headers="
13938 #ifdef HAVE_MEMORY_H
13939 #include <memory.h>
13940 #endif
13941 #ifdef HAVE_STRING_H
13942 #include <string.h>
13943 #else
13944 #ifdef HAVE_STRINGS_H
13945 #include <strings.h>
13946 #endif
13947 #endif
13948 #ifdef HAVE_STDLIB_H
13949 #include <stdlib.h>
13950 #endif
13951 #ifdef HAVE_UNISTD_H
13952 #include <unistd.h>
13953 #endif
13954 "
13955
13956 # Does errno.h declare errno, or do we have to add a separate declaration
13957 # for it?
13958
13959 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether declaration is required for errno" >&5
13960 $as_echo_n "checking whether declaration is required for errno... " >&6; }
13961 if test "${gas_cv_decl_needed_errno+set}" = set; then :
13962 $as_echo_n "(cached) " >&6
13963 else
13964 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13965 /* end confdefs.h. */
13966
13967 #ifdef HAVE_ERRNO_H
13968 #include <errno.h>
13969 #endif
13970
13971 int
13972 main ()
13973 {
13974
13975 typedef int f;
13976 f x;
13977 x = (f) errno;
13978
13979 ;
13980 return 0;
13981 }
13982 _ACEOF
13983 if ac_fn_c_try_link "$LINENO"; then :
13984 gas_cv_decl_needed_errno=no
13985 else
13986 gas_cv_decl_needed_errno=yes
13987 fi
13988 rm -f core conftest.err conftest.$ac_objext \
13989 conftest$ac_exeext conftest.$ac_ext
13990 fi
13991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gas_cv_decl_needed_errno" >&5
13992 $as_echo "$gas_cv_decl_needed_errno" >&6; }
13993 if test $gas_cv_decl_needed_errno = yes; then
13994
13995 $as_echo "#define NEED_DECLARATION_ERRNO 1" >>confdefs.h
13996
13997 fi
13998
13999
14000 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a known getopt prototype in unistd.h" >&5
14001 $as_echo_n "checking for a known getopt prototype in unistd.h... " >&6; }
14002 if test "${gas_cv_decl_getopt_unistd_h+set}" = set; then :
14003 $as_echo_n "(cached) " >&6
14004 else
14005 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14006 /* end confdefs.h. */
14007 #include <unistd.h>
14008 int
14009 main ()
14010 {
14011 extern int getopt (int, char *const*, const char *);
14012 ;
14013 return 0;
14014 }
14015 _ACEOF
14016 if ac_fn_c_try_compile "$LINENO"; then :
14017 gas_cv_decl_getopt_unistd_h=yes
14018 else
14019 gas_cv_decl_getopt_unistd_h=no
14020 fi
14021 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14022 fi
14023
14024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gas_cv_decl_getopt_unistd_h" >&5
14025 $as_echo "$gas_cv_decl_getopt_unistd_h" >&6; }
14026 if test $gas_cv_decl_getopt_unistd_h = yes; then
14027
14028 $as_echo "#define HAVE_DECL_GETOPT 1" >>confdefs.h
14029
14030 fi
14031
14032
14033 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether declaration is required for environ" >&5
14034 $as_echo_n "checking whether declaration is required for environ... " >&6; }
14035 if test "${gas_cv_decl_needed_environ+set}" = set; then :
14036 $as_echo_n "(cached) " >&6
14037 else
14038 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14039 /* end confdefs.h. */
14040 $gas_test_headers
14041 int
14042 main ()
14043 {
14044
14045 typedef char **f;
14046 f x;
14047 x = (f) environ;
14048
14049 ;
14050 return 0;
14051 }
14052 _ACEOF
14053 if ac_fn_c_try_link "$LINENO"; then :
14054 gas_cv_decl_needed_environ=no
14055 else
14056 gas_cv_decl_needed_environ=yes
14057 fi
14058 rm -f core conftest.err conftest.$ac_objext \
14059 conftest$ac_exeext conftest.$ac_ext
14060 fi
14061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gas_cv_decl_needed_environ" >&5
14062 $as_echo "$gas_cv_decl_needed_environ" >&6; }
14063 if test $gas_cv_decl_needed_environ = yes; then
14064
14065 $as_echo "#define NEED_DECLARATION_ENVIRON 1" >>confdefs.h
14066
14067 fi
14068
14069
14070 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether declaration is required for ffs" >&5
14071 $as_echo_n "checking whether declaration is required for ffs... " >&6; }
14072 if test "${gas_cv_decl_needed_ffs+set}" = set; then :
14073 $as_echo_n "(cached) " >&6
14074 else
14075 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14076 /* end confdefs.h. */
14077 $gas_test_headers
14078 int
14079 main ()
14080 {
14081
14082 typedef int (*f)(int);
14083 f x;
14084 x = (f) ffs;
14085
14086 ;
14087 return 0;
14088 }
14089 _ACEOF
14090 if ac_fn_c_try_link "$LINENO"; then :
14091 gas_cv_decl_needed_ffs=no
14092 else
14093 gas_cv_decl_needed_ffs=yes
14094 fi
14095 rm -f core conftest.err conftest.$ac_objext \
14096 conftest$ac_exeext conftest.$ac_ext
14097 fi
14098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gas_cv_decl_needed_ffs" >&5
14099 $as_echo "$gas_cv_decl_needed_ffs" >&6; }
14100 if test $gas_cv_decl_needed_ffs = yes; then
14101
14102 $as_echo "#define NEED_DECLARATION_FFS 1" >>confdefs.h
14103
14104 fi
14105
14106
14107 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether declaration is required for free" >&5
14108 $as_echo_n "checking whether declaration is required for free... " >&6; }
14109 if test "${gas_cv_decl_needed_free+set}" = set; then :
14110 $as_echo_n "(cached) " >&6
14111 else
14112 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14113 /* end confdefs.h. */
14114 $gas_test_headers
14115 int
14116 main ()
14117 {
14118
14119 typedef void (*f)();
14120 f x;
14121 x = (f) free;
14122
14123 ;
14124 return 0;
14125 }
14126 _ACEOF
14127 if ac_fn_c_try_link "$LINENO"; then :
14128 gas_cv_decl_needed_free=no
14129 else
14130 gas_cv_decl_needed_free=yes
14131 fi
14132 rm -f core conftest.err conftest.$ac_objext \
14133 conftest$ac_exeext conftest.$ac_ext
14134 fi
14135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gas_cv_decl_needed_free" >&5
14136 $as_echo "$gas_cv_decl_needed_free" >&6; }
14137 if test $gas_cv_decl_needed_free = yes; then
14138
14139 $as_echo "#define NEED_DECLARATION_FREE 1" >>confdefs.h
14140
14141 fi
14142
14143
14144 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether declaration is required for malloc" >&5
14145 $as_echo_n "checking whether declaration is required for malloc... " >&6; }
14146 if test "${gas_cv_decl_needed_malloc+set}" = set; then :
14147 $as_echo_n "(cached) " >&6
14148 else
14149 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14150 /* end confdefs.h. */
14151 $gas_test_headers
14152 int
14153 main ()
14154 {
14155
14156 typedef char *(*f)();
14157 f x;
14158 x = (f) malloc;
14159
14160 ;
14161 return 0;
14162 }
14163 _ACEOF
14164 if ac_fn_c_try_link "$LINENO"; then :
14165 gas_cv_decl_needed_malloc=no
14166 else
14167 gas_cv_decl_needed_malloc=yes
14168 fi
14169 rm -f core conftest.err conftest.$ac_objext \
14170 conftest$ac_exeext conftest.$ac_ext
14171 fi
14172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gas_cv_decl_needed_malloc" >&5
14173 $as_echo "$gas_cv_decl_needed_malloc" >&6; }
14174 if test $gas_cv_decl_needed_malloc = yes; then
14175
14176 $as_echo "#define NEED_DECLARATION_MALLOC 1" >>confdefs.h
14177
14178 fi
14179
14180
14181 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether declaration is required for sbrk" >&5
14182 $as_echo_n "checking whether declaration is required for sbrk... " >&6; }
14183 if test "${gas_cv_decl_needed_sbrk+set}" = set; then :
14184 $as_echo_n "(cached) " >&6
14185 else
14186 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14187 /* end confdefs.h. */
14188 $gas_test_headers
14189 int
14190 main ()
14191 {
14192
14193 typedef char *(*f)();
14194 f x;
14195 x = (f) sbrk;
14196
14197 ;
14198 return 0;
14199 }
14200 _ACEOF
14201 if ac_fn_c_try_link "$LINENO"; then :
14202 gas_cv_decl_needed_sbrk=no
14203 else
14204 gas_cv_decl_needed_sbrk=yes
14205 fi
14206 rm -f core conftest.err conftest.$ac_objext \
14207 conftest$ac_exeext conftest.$ac_ext
14208 fi
14209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gas_cv_decl_needed_sbrk" >&5
14210 $as_echo "$gas_cv_decl_needed_sbrk" >&6; }
14211 if test $gas_cv_decl_needed_sbrk = yes; then
14212
14213 $as_echo "#define NEED_DECLARATION_SBRK 1" >>confdefs.h
14214
14215 fi
14216
14217
14218 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether declaration is required for strstr" >&5
14219 $as_echo_n "checking whether declaration is required for strstr... " >&6; }
14220 if test "${gas_cv_decl_needed_strstr+set}" = set; then :
14221 $as_echo_n "(cached) " >&6
14222 else
14223 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14224 /* end confdefs.h. */
14225 $gas_test_headers
14226 int
14227 main ()
14228 {
14229
14230 typedef char *(*f)();
14231 f x;
14232 x = (f) strstr;
14233
14234 ;
14235 return 0;
14236 }
14237 _ACEOF
14238 if ac_fn_c_try_link "$LINENO"; then :
14239 gas_cv_decl_needed_strstr=no
14240 else
14241 gas_cv_decl_needed_strstr=yes
14242 fi
14243 rm -f core conftest.err conftest.$ac_objext \
14244 conftest$ac_exeext conftest.$ac_ext
14245 fi
14246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gas_cv_decl_needed_strstr" >&5
14247 $as_echo "$gas_cv_decl_needed_strstr" >&6; }
14248 if test $gas_cv_decl_needed_strstr = yes; then
14249
14250 $as_echo "#define NEED_DECLARATION_STRSTR 1" >>confdefs.h
14251
14252 fi
14253
14254
14255 ac_fn_c_check_decl "$LINENO" "free" "ac_cv_have_decl_free" "$ac_includes_default"
14256 if test "x$ac_cv_have_decl_free" = x""yes; then :
14257 ac_have_decl=1
14258 else
14259 ac_have_decl=0
14260 fi
14261
14262 cat >>confdefs.h <<_ACEOF
14263 #define HAVE_DECL_FREE $ac_have_decl
14264 _ACEOF
14265 ac_fn_c_check_decl "$LINENO" "getenv" "ac_cv_have_decl_getenv" "$ac_includes_default"
14266 if test "x$ac_cv_have_decl_getenv" = x""yes; then :
14267 ac_have_decl=1
14268 else
14269 ac_have_decl=0
14270 fi
14271
14272 cat >>confdefs.h <<_ACEOF
14273 #define HAVE_DECL_GETENV $ac_have_decl
14274 _ACEOF
14275 ac_fn_c_check_decl "$LINENO" "malloc" "ac_cv_have_decl_malloc" "$ac_includes_default"
14276 if test "x$ac_cv_have_decl_malloc" = x""yes; then :
14277 ac_have_decl=1
14278 else
14279 ac_have_decl=0
14280 fi
14281
14282 cat >>confdefs.h <<_ACEOF
14283 #define HAVE_DECL_MALLOC $ac_have_decl
14284 _ACEOF
14285 ac_fn_c_check_decl "$LINENO" "mempcpy" "ac_cv_have_decl_mempcpy" "$ac_includes_default"
14286 if test "x$ac_cv_have_decl_mempcpy" = x""yes; then :
14287 ac_have_decl=1
14288 else
14289 ac_have_decl=0
14290 fi
14291
14292 cat >>confdefs.h <<_ACEOF
14293 #define HAVE_DECL_MEMPCPY $ac_have_decl
14294 _ACEOF
14295 ac_fn_c_check_decl "$LINENO" "realloc" "ac_cv_have_decl_realloc" "$ac_includes_default"
14296 if test "x$ac_cv_have_decl_realloc" = x""yes; then :
14297 ac_have_decl=1
14298 else
14299 ac_have_decl=0
14300 fi
14301
14302 cat >>confdefs.h <<_ACEOF
14303 #define HAVE_DECL_REALLOC $ac_have_decl
14304 _ACEOF
14305 ac_fn_c_check_decl "$LINENO" "stpcpy" "ac_cv_have_decl_stpcpy" "$ac_includes_default"
14306 if test "x$ac_cv_have_decl_stpcpy" = x""yes; then :
14307 ac_have_decl=1
14308 else
14309 ac_have_decl=0
14310 fi
14311
14312 cat >>confdefs.h <<_ACEOF
14313 #define HAVE_DECL_STPCPY $ac_have_decl
14314 _ACEOF
14315 ac_fn_c_check_decl "$LINENO" "strstr" "ac_cv_have_decl_strstr" "$ac_includes_default"
14316 if test "x$ac_cv_have_decl_strstr" = x""yes; then :
14317 ac_have_decl=1
14318 else
14319 ac_have_decl=0
14320 fi
14321
14322 cat >>confdefs.h <<_ACEOF
14323 #define HAVE_DECL_STRSTR $ac_have_decl
14324 _ACEOF
14325 ac_fn_c_check_decl "$LINENO" "vsnprintf" "ac_cv_have_decl_vsnprintf" "$ac_includes_default"
14326 if test "x$ac_cv_have_decl_vsnprintf" = x""yes; then :
14327 ac_have_decl=1
14328 else
14329 ac_have_decl=0
14330 fi
14331
14332 cat >>confdefs.h <<_ACEOF
14333 #define HAVE_DECL_VSNPRINTF $ac_have_decl
14334 _ACEOF
14335 ac_fn_c_check_decl "$LINENO" "asprintf" "ac_cv_have_decl_asprintf" "$ac_includes_default"
14336 if test "x$ac_cv_have_decl_asprintf" = x""yes; then :
14337 ac_have_decl=1
14338 else
14339 ac_have_decl=0
14340 fi
14341
14342 cat >>confdefs.h <<_ACEOF
14343 #define HAVE_DECL_ASPRINTF $ac_have_decl
14344 _ACEOF
14345
14346
14347
14348 case "${host}" in
14349 *-*-msdos* | *-*-go32* | *-*-mingw32* | *-*-cygwin* | *-*-windows*)
14350
14351 $as_echo "#define USE_BINARY_FOPEN 1" >>confdefs.h
14352 ;;
14353 esac
14354
14355 # Link in zlib if we can. This allows us to write compressed debug sections.
14356
14357 # Use the system's zlib library.
14358 zlibdir="-L\$(top_builddir)/../zlib"
14359 zlibinc="-I\$(top_srcdir)/../zlib"
14360
14361 # Check whether --with-system-zlib was given.
14362 if test "${with_system_zlib+set}" = set; then :
14363 withval=$with_system_zlib; if test x$with_system_zlib = xyes ; then
14364 zlibdir=
14365 zlibinc=
14366 fi
14367
14368 fi
14369
14370
14371
14372
14373
14374 # Support for VMS timestamps via cross compile
14375
14376 if test "$ac_cv_header_time_h" = yes; then
14377 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct tm.tm_gmtoff in time.h" >&5
14378 $as_echo_n "checking for struct tm.tm_gmtoff in time.h... " >&6; }
14379 if test "${gas_cv_have_time_type_member_tm_gmtoff+set}" = set; then :
14380 $as_echo_n "(cached) " >&6
14381 else
14382 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14383 /* end confdefs.h. */
14384
14385 #define _BSD_SOURCE 1
14386 #include <time.h>
14387 int
14388 main ()
14389 {
14390 struct tm avar; void* aref = (void*) &avar.tm_gmtoff
14391 ;
14392 return 0;
14393 }
14394 _ACEOF
14395 if ac_fn_c_try_compile "$LINENO"; then :
14396 gas_cv_have_time_type_member_tm_gmtoff=yes
14397 else
14398 gas_cv_have_time_type_member_tm_gmtoff=no
14399
14400 fi
14401 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14402 fi
14403
14404 if test $gas_cv_have_time_type_member_tm_gmtoff = yes; then
14405
14406 $as_echo "#define HAVE_TM_GMTOFF 1" >>confdefs.h
14407
14408 fi
14409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gas_cv_have_time_type_member_tm_gmtoff" >&5
14410 $as_echo "$gas_cv_have_time_type_member_tm_gmtoff" >&6; }
14411
14412 fi
14413
14414 if test "$ac_cv_header_sys_stat_h" = yes; then
14415 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct stat.st_mtim.tv_sec in sys/stat.h" >&5
14416 $as_echo_n "checking for struct stat.st_mtim.tv_sec in sys/stat.h... " >&6; }
14417 if test "${gas_cv_have_sys_stat_type_member_st_mtim_tv_sec+set}" = set; then :
14418 $as_echo_n "(cached) " >&6
14419 else
14420 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14421 /* end confdefs.h. */
14422
14423 #define _BSD_SOURCE 1
14424 #include <sys/stat.h>
14425 int
14426 main ()
14427 {
14428 struct stat avar; void* aref = (void*) &avar.st_mtim.tv_sec
14429 ;
14430 return 0;
14431 }
14432 _ACEOF
14433 if ac_fn_c_try_compile "$LINENO"; then :
14434 gas_cv_have_sys_stat_type_member_st_mtim_tv_sec=yes
14435 else
14436 gas_cv_have_sys_stat_type_member_st_mtim_tv_sec=no
14437
14438 fi
14439 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14440 fi
14441
14442 if test $gas_cv_have_sys_stat_type_member_st_mtim_tv_sec = yes; then
14443
14444 $as_echo "#define HAVE_ST_MTIM_TV_SEC 1" >>confdefs.h
14445
14446 fi
14447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gas_cv_have_sys_stat_type_member_st_mtim_tv_sec" >&5
14448 $as_echo "$gas_cv_have_sys_stat_type_member_st_mtim_tv_sec" >&6; }
14449
14450 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct stat.st_mtim.tv_nsec in sys/stat.h" >&5
14451 $as_echo_n "checking for struct stat.st_mtim.tv_nsec in sys/stat.h... " >&6; }
14452 if test "${gas_cv_have_sys_stat_type_member_st_mtim_tv_nsec+set}" = set; then :
14453 $as_echo_n "(cached) " >&6
14454 else
14455 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14456 /* end confdefs.h. */
14457
14458 #define _BSD_SOURCE 1
14459 #include <sys/stat.h>
14460 int
14461 main ()
14462 {
14463 struct stat avar; void* aref = (void*) &avar.st_mtim.tv_nsec
14464 ;
14465 return 0;
14466 }
14467 _ACEOF
14468 if ac_fn_c_try_compile "$LINENO"; then :
14469 gas_cv_have_sys_stat_type_member_st_mtim_tv_nsec=yes
14470 else
14471 gas_cv_have_sys_stat_type_member_st_mtim_tv_nsec=no
14472
14473 fi
14474 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14475 fi
14476
14477 if test $gas_cv_have_sys_stat_type_member_st_mtim_tv_nsec = yes; then
14478
14479 $as_echo "#define HAVE_ST_MTIM_TV_NSEC 1" >>confdefs.h
14480
14481 fi
14482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gas_cv_have_sys_stat_type_member_st_mtim_tv_nsec" >&5
14483 $as_echo "$gas_cv_have_sys_stat_type_member_st_mtim_tv_nsec" >&6; }
14484
14485 fi
14486
14487
14488
14489
14490
14491
14492
14493
14494
14495 ac_config_files="$ac_config_files Makefile doc/Makefile po/Makefile.in:po/Make-in"
14496
14497 ac_config_commands="$ac_config_commands default"
14498
14499
14500 cat >confcache <<\_ACEOF
14501 # This file is a shell script that caches the results of configure
14502 # tests run on this system so they can be shared between configure
14503 # scripts and configure runs, see configure's option --config-cache.
14504 # It is not useful on other systems. If it contains results you don't
14505 # want to keep, you may remove or edit it.
14506 #
14507 # config.status only pays attention to the cache file if you give it
14508 # the --recheck option to rerun configure.
14509 #
14510 # `ac_cv_env_foo' variables (set or unset) will be overridden when
14511 # loading this file, other *unset* `ac_cv_foo' will be assigned the
14512 # following values.
14513
14514 _ACEOF
14515
14516 # The following way of writing the cache mishandles newlines in values,
14517 # but we know of no workaround that is simple, portable, and efficient.
14518 # So, we kill variables containing newlines.
14519 # Ultrix sh set writes to stderr and can't be redirected directly,
14520 # and sets the high bit in the cache file unless we assign to the vars.
14521 (
14522 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
14523 eval ac_val=\$$ac_var
14524 case $ac_val in #(
14525 *${as_nl}*)
14526 case $ac_var in #(
14527 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
14528 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
14529 esac
14530 case $ac_var in #(
14531 _ | IFS | as_nl) ;; #(
14532 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
14533 *) { eval $ac_var=; unset $ac_var;} ;;
14534 esac ;;
14535 esac
14536 done
14537
14538 (set) 2>&1 |
14539 case $as_nl`(ac_space=' '; set) 2>&1` in #(
14540 *${as_nl}ac_space=\ *)
14541 # `set' does not quote correctly, so add quotes: double-quote
14542 # substitution turns \\\\ into \\, and sed turns \\ into \.
14543 sed -n \
14544 "s/'/'\\\\''/g;
14545 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
14546 ;; #(
14547 *)
14548 # `set' quotes correctly as required by POSIX, so do not add quotes.
14549 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
14550 ;;
14551 esac |
14552 sort
14553 ) |
14554 sed '
14555 /^ac_cv_env_/b end
14556 t clear
14557 :clear
14558 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
14559 t end
14560 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
14561 :end' >>confcache
14562 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
14563 if test -w "$cache_file"; then
14564 test "x$cache_file" != "x/dev/null" &&
14565 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
14566 $as_echo "$as_me: updating cache $cache_file" >&6;}
14567 cat confcache >$cache_file
14568 else
14569 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
14570 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
14571 fi
14572 fi
14573 rm -f confcache
14574
14575 test "x$prefix" = xNONE && prefix=$ac_default_prefix
14576 # Let make expand exec_prefix.
14577 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
14578
14579 DEFS=-DHAVE_CONFIG_H
14580
14581 ac_libobjs=
14582 ac_ltlibobjs=
14583 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
14584 # 1. Remove the extension, and $U if already installed.
14585 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
14586 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
14587 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
14588 # will be set to the directory where LIBOBJS objects are built.
14589 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
14590 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
14591 done
14592 LIBOBJS=$ac_libobjs
14593
14594 LTLIBOBJS=$ac_ltlibobjs
14595
14596
14597 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
14598 as_fn_error "conditional \"AMDEP\" was never defined.
14599 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14600 fi
14601 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
14602 as_fn_error "conditional \"am__fastdepCC\" was never defined.
14603 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14604 fi
14605 if test -n "$EXEEXT"; then
14606 am__EXEEXT_TRUE=
14607 am__EXEEXT_FALSE='#'
14608 else
14609 am__EXEEXT_TRUE='#'
14610 am__EXEEXT_FALSE=
14611 fi
14612
14613
14614 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
14615 as_fn_error "conditional \"MAINTAINER_MODE\" was never defined.
14616 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14617 fi
14618 if test -z "${GENINSRC_NEVER_TRUE}" && test -z "${GENINSRC_NEVER_FALSE}"; then
14619 as_fn_error "conditional \"GENINSRC_NEVER\" was never defined.
14620 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14621 fi
14622
14623 : ${CONFIG_STATUS=./config.status}
14624 ac_write_fail=0
14625 ac_clean_files_save=$ac_clean_files
14626 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
14627 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
14628 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
14629 as_write_fail=0
14630 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
14631 #! $SHELL
14632 # Generated by $as_me.
14633 # Run this file to recreate the current configuration.
14634 # Compiler output produced by configure, useful for debugging
14635 # configure, is in config.log if it exists.
14636
14637 debug=false
14638 ac_cs_recheck=false
14639 ac_cs_silent=false
14640
14641 SHELL=\${CONFIG_SHELL-$SHELL}
14642 export SHELL
14643 _ASEOF
14644 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
14645 ## -------------------- ##
14646 ## M4sh Initialization. ##
14647 ## -------------------- ##
14648
14649 # Be more Bourne compatible
14650 DUALCASE=1; export DUALCASE # for MKS sh
14651 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
14652 emulate sh
14653 NULLCMD=:
14654 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
14655 # is contrary to our usage. Disable this feature.
14656 alias -g '${1+"$@"}'='"$@"'
14657 setopt NO_GLOB_SUBST
14658 else
14659 case `(set -o) 2>/dev/null` in #(
14660 *posix*) :
14661 set -o posix ;; #(
14662 *) :
14663 ;;
14664 esac
14665 fi
14666
14667
14668 as_nl='
14669 '
14670 export as_nl
14671 # Printing a long string crashes Solaris 7 /usr/bin/printf.
14672 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
14673 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
14674 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
14675 # Prefer a ksh shell builtin over an external printf program on Solaris,
14676 # but without wasting forks for bash or zsh.
14677 if test -z "$BASH_VERSION$ZSH_VERSION" \
14678 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
14679 as_echo='print -r --'
14680 as_echo_n='print -rn --'
14681 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
14682 as_echo='printf %s\n'
14683 as_echo_n='printf %s'
14684 else
14685 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
14686 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
14687 as_echo_n='/usr/ucb/echo -n'
14688 else
14689 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
14690 as_echo_n_body='eval
14691 arg=$1;
14692 case $arg in #(
14693 *"$as_nl"*)
14694 expr "X$arg" : "X\\(.*\\)$as_nl";
14695 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
14696 esac;
14697 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
14698 '
14699 export as_echo_n_body
14700 as_echo_n='sh -c $as_echo_n_body as_echo'
14701 fi
14702 export as_echo_body
14703 as_echo='sh -c $as_echo_body as_echo'
14704 fi
14705
14706 # The user is always right.
14707 if test "${PATH_SEPARATOR+set}" != set; then
14708 PATH_SEPARATOR=:
14709 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
14710 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
14711 PATH_SEPARATOR=';'
14712 }
14713 fi
14714
14715
14716 # IFS
14717 # We need space, tab and new line, in precisely that order. Quoting is
14718 # there to prevent editors from complaining about space-tab.
14719 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
14720 # splitting by setting IFS to empty value.)
14721 IFS=" "" $as_nl"
14722
14723 # Find who we are. Look in the path if we contain no directory separator.
14724 case $0 in #((
14725 *[\\/]* ) as_myself=$0 ;;
14726 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14727 for as_dir in $PATH
14728 do
14729 IFS=$as_save_IFS
14730 test -z "$as_dir" && as_dir=.
14731 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
14732 done
14733 IFS=$as_save_IFS
14734
14735 ;;
14736 esac
14737 # We did not find ourselves, most probably we were run as `sh COMMAND'
14738 # in which case we are not to be found in the path.
14739 if test "x$as_myself" = x; then
14740 as_myself=$0
14741 fi
14742 if test ! -f "$as_myself"; then
14743 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
14744 exit 1
14745 fi
14746
14747 # Unset variables that we do not need and which cause bugs (e.g. in
14748 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
14749 # suppresses any "Segmentation fault" message there. '((' could
14750 # trigger a bug in pdksh 5.2.14.
14751 for as_var in BASH_ENV ENV MAIL MAILPATH
14752 do eval test x\${$as_var+set} = xset \
14753 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
14754 done
14755 PS1='$ '
14756 PS2='> '
14757 PS4='+ '
14758
14759 # NLS nuisances.
14760 LC_ALL=C
14761 export LC_ALL
14762 LANGUAGE=C
14763 export LANGUAGE
14764
14765 # CDPATH.
14766 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
14767
14768
14769 # as_fn_error ERROR [LINENO LOG_FD]
14770 # ---------------------------------
14771 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
14772 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
14773 # script with status $?, using 1 if that was 0.
14774 as_fn_error ()
14775 {
14776 as_status=$?; test $as_status -eq 0 && as_status=1
14777 if test "$3"; then
14778 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
14779 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
14780 fi
14781 $as_echo "$as_me: error: $1" >&2
14782 as_fn_exit $as_status
14783 } # as_fn_error
14784
14785
14786 # as_fn_set_status STATUS
14787 # -----------------------
14788 # Set $? to STATUS, without forking.
14789 as_fn_set_status ()
14790 {
14791 return $1
14792 } # as_fn_set_status
14793
14794 # as_fn_exit STATUS
14795 # -----------------
14796 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
14797 as_fn_exit ()
14798 {
14799 set +e
14800 as_fn_set_status $1
14801 exit $1
14802 } # as_fn_exit
14803
14804 # as_fn_unset VAR
14805 # ---------------
14806 # Portably unset VAR.
14807 as_fn_unset ()
14808 {
14809 { eval $1=; unset $1;}
14810 }
14811 as_unset=as_fn_unset
14812 # as_fn_append VAR VALUE
14813 # ----------------------
14814 # Append the text in VALUE to the end of the definition contained in VAR. Take
14815 # advantage of any shell optimizations that allow amortized linear growth over
14816 # repeated appends, instead of the typical quadratic growth present in naive
14817 # implementations.
14818 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
14819 eval 'as_fn_append ()
14820 {
14821 eval $1+=\$2
14822 }'
14823 else
14824 as_fn_append ()
14825 {
14826 eval $1=\$$1\$2
14827 }
14828 fi # as_fn_append
14829
14830 # as_fn_arith ARG...
14831 # ------------------
14832 # Perform arithmetic evaluation on the ARGs, and store the result in the
14833 # global $as_val. Take advantage of shells that can avoid forks. The arguments
14834 # must be portable across $(()) and expr.
14835 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
14836 eval 'as_fn_arith ()
14837 {
14838 as_val=$(( $* ))
14839 }'
14840 else
14841 as_fn_arith ()
14842 {
14843 as_val=`expr "$@" || test $? -eq 1`
14844 }
14845 fi # as_fn_arith
14846
14847
14848 if expr a : '\(a\)' >/dev/null 2>&1 &&
14849 test "X`expr 00001 : '.*\(...\)'`" = X001; then
14850 as_expr=expr
14851 else
14852 as_expr=false
14853 fi
14854
14855 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
14856 as_basename=basename
14857 else
14858 as_basename=false
14859 fi
14860
14861 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
14862 as_dirname=dirname
14863 else
14864 as_dirname=false
14865 fi
14866
14867 as_me=`$as_basename -- "$0" ||
14868 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
14869 X"$0" : 'X\(//\)$' \| \
14870 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
14871 $as_echo X/"$0" |
14872 sed '/^.*\/\([^/][^/]*\)\/*$/{
14873 s//\1/
14874 q
14875 }
14876 /^X\/\(\/\/\)$/{
14877 s//\1/
14878 q
14879 }
14880 /^X\/\(\/\).*/{
14881 s//\1/
14882 q
14883 }
14884 s/.*/./; q'`
14885
14886 # Avoid depending upon Character Ranges.
14887 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
14888 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
14889 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
14890 as_cr_digits='0123456789'
14891 as_cr_alnum=$as_cr_Letters$as_cr_digits
14892
14893 ECHO_C= ECHO_N= ECHO_T=
14894 case `echo -n x` in #(((((
14895 -n*)
14896 case `echo 'xy\c'` in
14897 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
14898 xy) ECHO_C='\c';;
14899 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
14900 ECHO_T=' ';;
14901 esac;;
14902 *)
14903 ECHO_N='-n';;
14904 esac
14905
14906 rm -f conf$$ conf$$.exe conf$$.file
14907 if test -d conf$$.dir; then
14908 rm -f conf$$.dir/conf$$.file
14909 else
14910 rm -f conf$$.dir
14911 mkdir conf$$.dir 2>/dev/null
14912 fi
14913 if (echo >conf$$.file) 2>/dev/null; then
14914 if ln -s conf$$.file conf$$ 2>/dev/null; then
14915 as_ln_s='ln -s'
14916 # ... but there are two gotchas:
14917 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
14918 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
14919 # In both cases, we have to default to `cp -p'.
14920 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
14921 as_ln_s='cp -p'
14922 elif ln conf$$.file conf$$ 2>/dev/null; then
14923 as_ln_s=ln
14924 else
14925 as_ln_s='cp -p'
14926 fi
14927 else
14928 as_ln_s='cp -p'
14929 fi
14930 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
14931 rmdir conf$$.dir 2>/dev/null
14932
14933
14934 # as_fn_mkdir_p
14935 # -------------
14936 # Create "$as_dir" as a directory, including parents if necessary.
14937 as_fn_mkdir_p ()
14938 {
14939
14940 case $as_dir in #(
14941 -*) as_dir=./$as_dir;;
14942 esac
14943 test -d "$as_dir" || eval $as_mkdir_p || {
14944 as_dirs=
14945 while :; do
14946 case $as_dir in #(
14947 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
14948 *) as_qdir=$as_dir;;
14949 esac
14950 as_dirs="'$as_qdir' $as_dirs"
14951 as_dir=`$as_dirname -- "$as_dir" ||
14952 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14953 X"$as_dir" : 'X\(//\)[^/]' \| \
14954 X"$as_dir" : 'X\(//\)$' \| \
14955 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
14956 $as_echo X"$as_dir" |
14957 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14958 s//\1/
14959 q
14960 }
14961 /^X\(\/\/\)[^/].*/{
14962 s//\1/
14963 q
14964 }
14965 /^X\(\/\/\)$/{
14966 s//\1/
14967 q
14968 }
14969 /^X\(\/\).*/{
14970 s//\1/
14971 q
14972 }
14973 s/.*/./; q'`
14974 test -d "$as_dir" && break
14975 done
14976 test -z "$as_dirs" || eval "mkdir $as_dirs"
14977 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
14978
14979
14980 } # as_fn_mkdir_p
14981 if mkdir -p . 2>/dev/null; then
14982 as_mkdir_p='mkdir -p "$as_dir"'
14983 else
14984 test -d ./-p && rmdir ./-p
14985 as_mkdir_p=false
14986 fi
14987
14988 if test -x / >/dev/null 2>&1; then
14989 as_test_x='test -x'
14990 else
14991 if ls -dL / >/dev/null 2>&1; then
14992 as_ls_L_option=L
14993 else
14994 as_ls_L_option=
14995 fi
14996 as_test_x='
14997 eval sh -c '\''
14998 if test -d "$1"; then
14999 test -d "$1/.";
15000 else
15001 case $1 in #(
15002 -*)set "./$1";;
15003 esac;
15004 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
15005 ???[sx]*):;;*)false;;esac;fi
15006 '\'' sh
15007 '
15008 fi
15009 as_executable_p=$as_test_x
15010
15011 # Sed expression to map a string onto a valid CPP name.
15012 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
15013
15014 # Sed expression to map a string onto a valid variable name.
15015 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
15016
15017
15018 exec 6>&1
15019 ## ----------------------------------- ##
15020 ## Main body of $CONFIG_STATUS script. ##
15021 ## ----------------------------------- ##
15022 _ASEOF
15023 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
15024
15025 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15026 # Save the log message, to keep $0 and so on meaningful, and to
15027 # report actual input values of CONFIG_FILES etc. instead of their
15028 # values after options handling.
15029 ac_log="
15030 This file was extended by gas $as_me 2.25.51, which was
15031 generated by GNU Autoconf 2.64. Invocation command line was
15032
15033 CONFIG_FILES = $CONFIG_FILES
15034 CONFIG_HEADERS = $CONFIG_HEADERS
15035 CONFIG_LINKS = $CONFIG_LINKS
15036 CONFIG_COMMANDS = $CONFIG_COMMANDS
15037 $ $0 $@
15038
15039 on `(hostname || uname -n) 2>/dev/null | sed 1q`
15040 "
15041
15042 _ACEOF
15043
15044 case $ac_config_files in *"
15045 "*) set x $ac_config_files; shift; ac_config_files=$*;;
15046 esac
15047
15048 case $ac_config_headers in *"
15049 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
15050 esac
15051
15052
15053 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15054 # Files that config.status was made for.
15055 config_files="$ac_config_files"
15056 config_headers="$ac_config_headers"
15057 config_commands="$ac_config_commands"
15058
15059 _ACEOF
15060
15061 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15062 ac_cs_usage="\
15063 \`$as_me' instantiates files and other configuration actions
15064 from templates according to the current configuration. Unless the files
15065 and actions are specified as TAGs, all are instantiated by default.
15066
15067 Usage: $0 [OPTION]... [TAG]...
15068
15069 -h, --help print this help, then exit
15070 -V, --version print version number and configuration settings, then exit
15071 -q, --quiet, --silent
15072 do not print progress messages
15073 -d, --debug don't remove temporary files
15074 --recheck update $as_me by reconfiguring in the same conditions
15075 --file=FILE[:TEMPLATE]
15076 instantiate the configuration file FILE
15077 --header=FILE[:TEMPLATE]
15078 instantiate the configuration header FILE
15079
15080 Configuration files:
15081 $config_files
15082
15083 Configuration headers:
15084 $config_headers
15085
15086 Configuration commands:
15087 $config_commands
15088
15089 Report bugs to the package provider."
15090
15091 _ACEOF
15092 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15093 ac_cs_version="\\
15094 gas config.status 2.25.51
15095 configured by $0, generated by GNU Autoconf 2.64,
15096 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
15097
15098 Copyright (C) 2009 Free Software Foundation, Inc.
15099 This config.status script is free software; the Free Software Foundation
15100 gives unlimited permission to copy, distribute and modify it."
15101
15102 ac_pwd='$ac_pwd'
15103 srcdir='$srcdir'
15104 INSTALL='$INSTALL'
15105 MKDIR_P='$MKDIR_P'
15106 AWK='$AWK'
15107 test -n "\$AWK" || AWK=awk
15108 _ACEOF
15109
15110 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15111 # The default lists apply if the user does not specify any file.
15112 ac_need_defaults=:
15113 while test $# != 0
15114 do
15115 case $1 in
15116 --*=*)
15117 ac_option=`expr "X$1" : 'X\([^=]*\)='`
15118 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
15119 ac_shift=:
15120 ;;
15121 *)
15122 ac_option=$1
15123 ac_optarg=$2
15124 ac_shift=shift
15125 ;;
15126 esac
15127
15128 case $ac_option in
15129 # Handling of the options.
15130 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
15131 ac_cs_recheck=: ;;
15132 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
15133 $as_echo "$ac_cs_version"; exit ;;
15134 --debug | --debu | --deb | --de | --d | -d )
15135 debug=: ;;
15136 --file | --fil | --fi | --f )
15137 $ac_shift
15138 case $ac_optarg in
15139 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
15140 esac
15141 as_fn_append CONFIG_FILES " '$ac_optarg'"
15142 ac_need_defaults=false;;
15143 --header | --heade | --head | --hea )
15144 $ac_shift
15145 case $ac_optarg in
15146 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
15147 esac
15148 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
15149 ac_need_defaults=false;;
15150 --he | --h)
15151 # Conflict between --help and --header
15152 as_fn_error "ambiguous option: \`$1'
15153 Try \`$0 --help' for more information.";;
15154 --help | --hel | -h )
15155 $as_echo "$ac_cs_usage"; exit ;;
15156 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
15157 | -silent | --silent | --silen | --sile | --sil | --si | --s)
15158 ac_cs_silent=: ;;
15159
15160 # This is an error.
15161 -*) as_fn_error "unrecognized option: \`$1'
15162 Try \`$0 --help' for more information." ;;
15163
15164 *) as_fn_append ac_config_targets " $1"
15165 ac_need_defaults=false ;;
15166
15167 esac
15168 shift
15169 done
15170
15171 ac_configure_extra_args=
15172
15173 if $ac_cs_silent; then
15174 exec 6>/dev/null
15175 ac_configure_extra_args="$ac_configure_extra_args --silent"
15176 fi
15177
15178 _ACEOF
15179 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15180 if \$ac_cs_recheck; then
15181 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
15182 shift
15183 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
15184 CONFIG_SHELL='$SHELL'
15185 export CONFIG_SHELL
15186 exec "\$@"
15187 fi
15188
15189 _ACEOF
15190 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15191 exec 5>>config.log
15192 {
15193 echo
15194 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
15195 ## Running $as_me. ##
15196 _ASBOX
15197 $as_echo "$ac_log"
15198 } >&5
15199
15200 _ACEOF
15201 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15202 #
15203 # INIT-COMMANDS
15204 #
15205 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
15206
15207
15208 # The HP-UX ksh and POSIX shell print the target directory to stdout
15209 # if CDPATH is set.
15210 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
15211
15212 sed_quote_subst='$sed_quote_subst'
15213 double_quote_subst='$double_quote_subst'
15214 delay_variable_subst='$delay_variable_subst'
15215 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
15216 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
15217 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
15218 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
15219 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
15220 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
15221 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
15222 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
15223 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
15224 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
15225 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
15226 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
15227 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
15228 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
15229 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
15230 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
15231 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
15232 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
15233 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
15234 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
15235 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
15236 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
15237 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
15238 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
15239 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
15240 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
15241 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
15242 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
15243 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
15244 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
15245 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
15246 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
15247 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
15248 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
15249 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
15250 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
15251 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
15252 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
15253 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
15254 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
15255 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
15256 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
15257 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
15258 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
15259 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
15260 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
15261 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
15262 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
15263 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"`'
15264 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
15265 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
15266 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
15267 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
15268 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
15269 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
15270 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
15271 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
15272 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
15273 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
15274 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
15275 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
15276 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
15277 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
15278 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
15279 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
15280 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
15281 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
15282 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
15283 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
15284 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
15285 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
15286 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
15287 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
15288 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
15289 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
15290 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
15291 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
15292 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
15293 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
15294 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
15295 hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
15296 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
15297 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
15298 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
15299 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
15300 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
15301 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
15302 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
15303 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
15304 fix_srcfile_path='`$ECHO "$fix_srcfile_path" | $SED "$delay_single_quote_subst"`'
15305 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
15306 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
15307 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
15308 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
15309 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
15310 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
15311 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
15312 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
15313 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
15314 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
15315 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
15316 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
15317 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
15318 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
15319 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
15320 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
15321 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
15322 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
15323 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
15324 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
15325 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
15326 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
15327 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
15328 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
15329 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
15330 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
15331 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
15332 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
15333 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
15334 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
15335
15336 LTCC='$LTCC'
15337 LTCFLAGS='$LTCFLAGS'
15338 compiler='$compiler_DEFAULT'
15339
15340 # A function that is used when there is no print builtin or printf.
15341 func_fallback_echo ()
15342 {
15343 eval 'cat <<_LTECHO_EOF
15344 \$1
15345 _LTECHO_EOF'
15346 }
15347
15348 # Quote evaled strings.
15349 for var in SHELL \
15350 ECHO \
15351 SED \
15352 GREP \
15353 EGREP \
15354 FGREP \
15355 LD \
15356 NM \
15357 LN_S \
15358 lt_SP2NL \
15359 lt_NL2SP \
15360 reload_flag \
15361 OBJDUMP \
15362 deplibs_check_method \
15363 file_magic_cmd \
15364 AR \
15365 AR_FLAGS \
15366 STRIP \
15367 RANLIB \
15368 CC \
15369 CFLAGS \
15370 compiler \
15371 lt_cv_sys_global_symbol_pipe \
15372 lt_cv_sys_global_symbol_to_cdecl \
15373 lt_cv_sys_global_symbol_to_c_name_address \
15374 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
15375 lt_prog_compiler_no_builtin_flag \
15376 lt_prog_compiler_wl \
15377 lt_prog_compiler_pic \
15378 lt_prog_compiler_static \
15379 lt_cv_prog_compiler_c_o \
15380 need_locks \
15381 DSYMUTIL \
15382 NMEDIT \
15383 LIPO \
15384 OTOOL \
15385 OTOOL64 \
15386 shrext_cmds \
15387 export_dynamic_flag_spec \
15388 whole_archive_flag_spec \
15389 compiler_needs_object \
15390 with_gnu_ld \
15391 allow_undefined_flag \
15392 no_undefined_flag \
15393 hardcode_libdir_flag_spec \
15394 hardcode_libdir_flag_spec_ld \
15395 hardcode_libdir_separator \
15396 fix_srcfile_path \
15397 exclude_expsyms \
15398 include_expsyms \
15399 file_list_spec \
15400 variables_saved_for_relink \
15401 libname_spec \
15402 library_names_spec \
15403 soname_spec \
15404 install_override_mode \
15405 finish_eval \
15406 old_striplib \
15407 striplib; do
15408 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
15409 *[\\\\\\\`\\"\\\$]*)
15410 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
15411 ;;
15412 *)
15413 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
15414 ;;
15415 esac
15416 done
15417
15418 # Double-quote double-evaled strings.
15419 for var in reload_cmds \
15420 old_postinstall_cmds \
15421 old_postuninstall_cmds \
15422 old_archive_cmds \
15423 extract_expsyms_cmds \
15424 old_archive_from_new_cmds \
15425 old_archive_from_expsyms_cmds \
15426 archive_cmds \
15427 archive_expsym_cmds \
15428 module_cmds \
15429 module_expsym_cmds \
15430 export_symbols_cmds \
15431 prelink_cmds \
15432 postinstall_cmds \
15433 postuninstall_cmds \
15434 finish_cmds \
15435 sys_lib_search_path_spec \
15436 sys_lib_dlsearch_path_spec; do
15437 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
15438 *[\\\\\\\`\\"\\\$]*)
15439 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
15440 ;;
15441 *)
15442 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
15443 ;;
15444 esac
15445 done
15446
15447 ac_aux_dir='$ac_aux_dir'
15448 xsi_shell='$xsi_shell'
15449 lt_shell_append='$lt_shell_append'
15450
15451 # See if we are running on zsh, and set the options which allow our
15452 # commands through without removal of \ escapes INIT.
15453 if test -n "\${ZSH_VERSION+set}" ; then
15454 setopt NO_GLOB_SUBST
15455 fi
15456
15457
15458 PACKAGE='$PACKAGE'
15459 VERSION='$VERSION'
15460 TIMESTAMP='$TIMESTAMP'
15461 RM='$RM'
15462 ofile='$ofile'
15463
15464
15465
15466 # Capture the value of obsolete ALL_LINGUAS because we need it to compute
15467 # POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES, CATALOGS. But hide it
15468 # from automake.
15469 eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
15470 # Capture the value of LINGUAS because we need it to compute CATALOGS.
15471 LINGUAS="${LINGUAS-%UNSET%}"
15472
15473 target_cpu_type=${target_cpu_type}
15474 cgen_cpu_prefix=${cgen_cpu_prefix}
15475 obj_format=${obj_format}
15476 te_file=${te_file}
15477
15478 _ACEOF
15479
15480 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15481
15482 # Handling of arguments.
15483 for ac_config_target in $ac_config_targets
15484 do
15485 case $ac_config_target in
15486 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
15487 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
15488 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h:config.in" ;;
15489 "gdb.ini") CONFIG_FILES="$CONFIG_FILES gdb.ini:gdbinit.in" ;;
15490 ".gdbinit") CONFIG_FILES="$CONFIG_FILES .gdbinit:gdbinit.in" ;;
15491 "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
15492 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
15493 "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
15494 "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in:po/Make-in" ;;
15495 "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
15496
15497 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
15498 esac
15499 done
15500
15501
15502 # If the user did not use the arguments to specify the items to instantiate,
15503 # then the envvar interface is used. Set only those that are not.
15504 # We use the long form for the default assignment because of an extremely
15505 # bizarre bug on SunOS 4.1.3.
15506 if $ac_need_defaults; then
15507 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
15508 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
15509 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
15510 fi
15511
15512 # Have a temporary directory for convenience. Make it in the build tree
15513 # simply because there is no reason against having it here, and in addition,
15514 # creating and moving files from /tmp can sometimes cause problems.
15515 # Hook for its removal unless debugging.
15516 # Note that there is a small window in which the directory will not be cleaned:
15517 # after its creation but before its name has been assigned to `$tmp'.
15518 $debug ||
15519 {
15520 tmp=
15521 trap 'exit_status=$?
15522 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
15523 ' 0
15524 trap 'as_fn_exit 1' 1 2 13 15
15525 }
15526 # Create a (secure) tmp directory for tmp files.
15527
15528 {
15529 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
15530 test -n "$tmp" && test -d "$tmp"
15531 } ||
15532 {
15533 tmp=./conf$$-$RANDOM
15534 (umask 077 && mkdir "$tmp")
15535 } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
15536
15537 # Set up the scripts for CONFIG_FILES section.
15538 # No need to generate them if there are no CONFIG_FILES.
15539 # This happens for instance with `./config.status config.h'.
15540 if test -n "$CONFIG_FILES"; then
15541
15542
15543 ac_cr=`echo X | tr X '\015'`
15544 # On cygwin, bash can eat \r inside `` if the user requested igncr.
15545 # But we know of no other shell where ac_cr would be empty at this
15546 # point, so we can use a bashism as a fallback.
15547 if test "x$ac_cr" = x; then
15548 eval ac_cr=\$\'\\r\'
15549 fi
15550 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
15551 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
15552 ac_cs_awk_cr='\r'
15553 else
15554 ac_cs_awk_cr=$ac_cr
15555 fi
15556
15557 echo 'BEGIN {' >"$tmp/subs1.awk" &&
15558 _ACEOF
15559
15560
15561 {
15562 echo "cat >conf$$subs.awk <<_ACEOF" &&
15563 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
15564 echo "_ACEOF"
15565 } >conf$$subs.sh ||
15566 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
15567 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
15568 ac_delim='%!_!# '
15569 for ac_last_try in false false false false false :; do
15570 . ./conf$$subs.sh ||
15571 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
15572
15573 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
15574 if test $ac_delim_n = $ac_delim_num; then
15575 break
15576 elif $ac_last_try; then
15577 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
15578 else
15579 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
15580 fi
15581 done
15582 rm -f conf$$subs.sh
15583
15584 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15585 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
15586 _ACEOF
15587 sed -n '
15588 h
15589 s/^/S["/; s/!.*/"]=/
15590 p
15591 g
15592 s/^[^!]*!//
15593 :repl
15594 t repl
15595 s/'"$ac_delim"'$//
15596 t delim
15597 :nl
15598 h
15599 s/\(.\{148\}\).*/\1/
15600 t more1
15601 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
15602 p
15603 n
15604 b repl
15605 :more1
15606 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
15607 p
15608 g
15609 s/.\{148\}//
15610 t nl
15611 :delim
15612 h
15613 s/\(.\{148\}\).*/\1/
15614 t more2
15615 s/["\\]/\\&/g; s/^/"/; s/$/"/
15616 p
15617 b
15618 :more2
15619 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
15620 p
15621 g
15622 s/.\{148\}//
15623 t delim
15624 ' <conf$$subs.awk | sed '
15625 /^[^""]/{
15626 N
15627 s/\n//
15628 }
15629 ' >>$CONFIG_STATUS || ac_write_fail=1
15630 rm -f conf$$subs.awk
15631 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15632 _ACAWK
15633 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
15634 for (key in S) S_is_set[key] = 1
15635 FS = "\a"
15636
15637 }
15638 {
15639 line = $ 0
15640 nfields = split(line, field, "@")
15641 substed = 0
15642 len = length(field[1])
15643 for (i = 2; i < nfields; i++) {
15644 key = field[i]
15645 keylen = length(key)
15646 if (S_is_set[key]) {
15647 value = S[key]
15648 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
15649 len += length(value) + length(field[++i])
15650 substed = 1
15651 } else
15652 len += 1 + keylen
15653 }
15654
15655 print line
15656 }
15657
15658 _ACAWK
15659 _ACEOF
15660 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15661 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
15662 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
15663 else
15664 cat
15665 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
15666 || as_fn_error "could not setup config files machinery" "$LINENO" 5
15667 _ACEOF
15668
15669 # VPATH may cause trouble with some makes, so we remove $(srcdir),
15670 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
15671 # trailing colons and then remove the whole line if VPATH becomes empty
15672 # (actually we leave an empty line to preserve line numbers).
15673 if test "x$srcdir" = x.; then
15674 ac_vpsub='/^[ ]*VPATH[ ]*=/{
15675 s/:*\$(srcdir):*/:/
15676 s/:*\${srcdir}:*/:/
15677 s/:*@srcdir@:*/:/
15678 s/^\([^=]*=[ ]*\):*/\1/
15679 s/:*$//
15680 s/^[^=]*=[ ]*$//
15681 }'
15682 fi
15683
15684 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15685 fi # test -n "$CONFIG_FILES"
15686
15687 # Set up the scripts for CONFIG_HEADERS section.
15688 # No need to generate them if there are no CONFIG_HEADERS.
15689 # This happens for instance with `./config.status Makefile'.
15690 if test -n "$CONFIG_HEADERS"; then
15691 cat >"$tmp/defines.awk" <<\_ACAWK ||
15692 BEGIN {
15693 _ACEOF
15694
15695 # Transform confdefs.h into an awk script `defines.awk', embedded as
15696 # here-document in config.status, that substitutes the proper values into
15697 # config.h.in to produce config.h.
15698
15699 # Create a delimiter string that does not exist in confdefs.h, to ease
15700 # handling of long lines.
15701 ac_delim='%!_!# '
15702 for ac_last_try in false false :; do
15703 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
15704 if test -z "$ac_t"; then
15705 break
15706 elif $ac_last_try; then
15707 as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
15708 else
15709 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
15710 fi
15711 done
15712
15713 # For the awk script, D is an array of macro values keyed by name,
15714 # likewise P contains macro parameters if any. Preserve backslash
15715 # newline sequences.
15716
15717 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
15718 sed -n '
15719 s/.\{148\}/&'"$ac_delim"'/g
15720 t rset
15721 :rset
15722 s/^[ ]*#[ ]*define[ ][ ]*/ /
15723 t def
15724 d
15725 :def
15726 s/\\$//
15727 t bsnl
15728 s/["\\]/\\&/g
15729 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
15730 D["\1"]=" \3"/p
15731 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
15732 d
15733 :bsnl
15734 s/["\\]/\\&/g
15735 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
15736 D["\1"]=" \3\\\\\\n"\\/p
15737 t cont
15738 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
15739 t cont
15740 d
15741 :cont
15742 n
15743 s/.\{148\}/&'"$ac_delim"'/g
15744 t clear
15745 :clear
15746 s/\\$//
15747 t bsnlc
15748 s/["\\]/\\&/g; s/^/"/; s/$/"/p
15749 d
15750 :bsnlc
15751 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
15752 b cont
15753 ' <confdefs.h | sed '
15754 s/'"$ac_delim"'/"\\\
15755 "/g' >>$CONFIG_STATUS || ac_write_fail=1
15756
15757 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15758 for (key in D) D_is_set[key] = 1
15759 FS = "\a"
15760 }
15761 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
15762 line = \$ 0
15763 split(line, arg, " ")
15764 if (arg[1] == "#") {
15765 defundef = arg[2]
15766 mac1 = arg[3]
15767 } else {
15768 defundef = substr(arg[1], 2)
15769 mac1 = arg[2]
15770 }
15771 split(mac1, mac2, "(") #)
15772 macro = mac2[1]
15773 prefix = substr(line, 1, index(line, defundef) - 1)
15774 if (D_is_set[macro]) {
15775 # Preserve the white space surrounding the "#".
15776 print prefix "define", macro P[macro] D[macro]
15777 next
15778 } else {
15779 # Replace #undef with comments. This is necessary, for example,
15780 # in the case of _POSIX_SOURCE, which is predefined and required
15781 # on some systems where configure will not decide to define it.
15782 if (defundef == "undef") {
15783 print "/*", prefix defundef, macro, "*/"
15784 next
15785 }
15786 }
15787 }
15788 { print }
15789 _ACAWK
15790 _ACEOF
15791 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15792 as_fn_error "could not setup config headers machinery" "$LINENO" 5
15793 fi # test -n "$CONFIG_HEADERS"
15794
15795
15796 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
15797 shift
15798 for ac_tag
15799 do
15800 case $ac_tag in
15801 :[FHLC]) ac_mode=$ac_tag; continue;;
15802 esac
15803 case $ac_mode$ac_tag in
15804 :[FHL]*:*);;
15805 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
15806 :[FH]-) ac_tag=-:-;;
15807 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
15808 esac
15809 ac_save_IFS=$IFS
15810 IFS=:
15811 set x $ac_tag
15812 IFS=$ac_save_IFS
15813 shift
15814 ac_file=$1
15815 shift
15816
15817 case $ac_mode in
15818 :L) ac_source=$1;;
15819 :[FH])
15820 ac_file_inputs=
15821 for ac_f
15822 do
15823 case $ac_f in
15824 -) ac_f="$tmp/stdin";;
15825 *) # Look for the file first in the build tree, then in the source tree
15826 # (if the path is not absolute). The absolute path cannot be DOS-style,
15827 # because $ac_f cannot contain `:'.
15828 test -f "$ac_f" ||
15829 case $ac_f in
15830 [\\/$]*) false;;
15831 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
15832 esac ||
15833 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
15834 esac
15835 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
15836 as_fn_append ac_file_inputs " '$ac_f'"
15837 done
15838
15839 # Let's still pretend it is `configure' which instantiates (i.e., don't
15840 # use $as_me), people would be surprised to read:
15841 # /* config.h. Generated by config.status. */
15842 configure_input='Generated from '`
15843 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
15844 `' by configure.'
15845 if test x"$ac_file" != x-; then
15846 configure_input="$ac_file. $configure_input"
15847 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
15848 $as_echo "$as_me: creating $ac_file" >&6;}
15849 fi
15850 # Neutralize special characters interpreted by sed in replacement strings.
15851 case $configure_input in #(
15852 *\&* | *\|* | *\\* )
15853 ac_sed_conf_input=`$as_echo "$configure_input" |
15854 sed 's/[\\\\&|]/\\\\&/g'`;; #(
15855 *) ac_sed_conf_input=$configure_input;;
15856 esac
15857
15858 case $ac_tag in
15859 *:-:* | *:-) cat >"$tmp/stdin" \
15860 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
15861 esac
15862 ;;
15863 esac
15864
15865 ac_dir=`$as_dirname -- "$ac_file" ||
15866 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15867 X"$ac_file" : 'X\(//\)[^/]' \| \
15868 X"$ac_file" : 'X\(//\)$' \| \
15869 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
15870 $as_echo X"$ac_file" |
15871 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15872 s//\1/
15873 q
15874 }
15875 /^X\(\/\/\)[^/].*/{
15876 s//\1/
15877 q
15878 }
15879 /^X\(\/\/\)$/{
15880 s//\1/
15881 q
15882 }
15883 /^X\(\/\).*/{
15884 s//\1/
15885 q
15886 }
15887 s/.*/./; q'`
15888 as_dir="$ac_dir"; as_fn_mkdir_p
15889 ac_builddir=.
15890
15891 case "$ac_dir" in
15892 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
15893 *)
15894 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
15895 # A ".." for each directory in $ac_dir_suffix.
15896 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
15897 case $ac_top_builddir_sub in
15898 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
15899 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
15900 esac ;;
15901 esac
15902 ac_abs_top_builddir=$ac_pwd
15903 ac_abs_builddir=$ac_pwd$ac_dir_suffix
15904 # for backward compatibility:
15905 ac_top_builddir=$ac_top_build_prefix
15906
15907 case $srcdir in
15908 .) # We are building in place.
15909 ac_srcdir=.
15910 ac_top_srcdir=$ac_top_builddir_sub
15911 ac_abs_top_srcdir=$ac_pwd ;;
15912 [\\/]* | ?:[\\/]* ) # Absolute name.
15913 ac_srcdir=$srcdir$ac_dir_suffix;
15914 ac_top_srcdir=$srcdir
15915 ac_abs_top_srcdir=$srcdir ;;
15916 *) # Relative name.
15917 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
15918 ac_top_srcdir=$ac_top_build_prefix$srcdir
15919 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
15920 esac
15921 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
15922
15923
15924 case $ac_mode in
15925 :F)
15926 #
15927 # CONFIG_FILE
15928 #
15929
15930 case $INSTALL in
15931 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
15932 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
15933 esac
15934 ac_MKDIR_P=$MKDIR_P
15935 case $MKDIR_P in
15936 [\\/$]* | ?:[\\/]* ) ;;
15937 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
15938 esac
15939 _ACEOF
15940
15941 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15942 # If the template does not know about datarootdir, expand it.
15943 # FIXME: This hack should be removed a few years after 2.60.
15944 ac_datarootdir_hack=; ac_datarootdir_seen=
15945 ac_sed_dataroot='
15946 /datarootdir/ {
15947 p
15948 q
15949 }
15950 /@datadir@/p
15951 /@docdir@/p
15952 /@infodir@/p
15953 /@localedir@/p
15954 /@mandir@/p'
15955 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
15956 *datarootdir*) ac_datarootdir_seen=yes;;
15957 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
15958 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
15959 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
15960 _ACEOF
15961 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15962 ac_datarootdir_hack='
15963 s&@datadir@&$datadir&g
15964 s&@docdir@&$docdir&g
15965 s&@infodir@&$infodir&g
15966 s&@localedir@&$localedir&g
15967 s&@mandir@&$mandir&g
15968 s&\\\${datarootdir}&$datarootdir&g' ;;
15969 esac
15970 _ACEOF
15971
15972 # Neutralize VPATH when `$srcdir' = `.'.
15973 # Shell code in configure.ac might set extrasub.
15974 # FIXME: do we really want to maintain this feature?
15975 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15976 ac_sed_extra="$ac_vpsub
15977 $extrasub
15978 _ACEOF
15979 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15980 :t
15981 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
15982 s|@configure_input@|$ac_sed_conf_input|;t t
15983 s&@top_builddir@&$ac_top_builddir_sub&;t t
15984 s&@top_build_prefix@&$ac_top_build_prefix&;t t
15985 s&@srcdir@&$ac_srcdir&;t t
15986 s&@abs_srcdir@&$ac_abs_srcdir&;t t
15987 s&@top_srcdir@&$ac_top_srcdir&;t t
15988 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
15989 s&@builddir@&$ac_builddir&;t t
15990 s&@abs_builddir@&$ac_abs_builddir&;t t
15991 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
15992 s&@INSTALL@&$ac_INSTALL&;t t
15993 s&@MKDIR_P@&$ac_MKDIR_P&;t t
15994 $ac_datarootdir_hack
15995 "
15996 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
15997 || as_fn_error "could not create $ac_file" "$LINENO" 5
15998
15999 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
16000 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
16001 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
16002 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
16003 which seems to be undefined. Please make sure it is defined." >&5
16004 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
16005 which seems to be undefined. Please make sure it is defined." >&2;}
16006
16007 rm -f "$tmp/stdin"
16008 case $ac_file in
16009 -) cat "$tmp/out" && rm -f "$tmp/out";;
16010 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
16011 esac \
16012 || as_fn_error "could not create $ac_file" "$LINENO" 5
16013 ;;
16014 :H)
16015 #
16016 # CONFIG_HEADER
16017 #
16018 if test x"$ac_file" != x-; then
16019 {
16020 $as_echo "/* $configure_input */" \
16021 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
16022 } >"$tmp/config.h" \
16023 || as_fn_error "could not create $ac_file" "$LINENO" 5
16024 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
16025 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
16026 $as_echo "$as_me: $ac_file is unchanged" >&6;}
16027 else
16028 rm -f "$ac_file"
16029 mv "$tmp/config.h" "$ac_file" \
16030 || as_fn_error "could not create $ac_file" "$LINENO" 5
16031 fi
16032 else
16033 $as_echo "/* $configure_input */" \
16034 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
16035 || as_fn_error "could not create -" "$LINENO" 5
16036 fi
16037 # Compute "$ac_file"'s index in $config_headers.
16038 _am_arg="$ac_file"
16039 _am_stamp_count=1
16040 for _am_header in $config_headers :; do
16041 case $_am_header in
16042 $_am_arg | $_am_arg:* )
16043 break ;;
16044 * )
16045 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
16046 esac
16047 done
16048 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
16049 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16050 X"$_am_arg" : 'X\(//\)[^/]' \| \
16051 X"$_am_arg" : 'X\(//\)$' \| \
16052 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
16053 $as_echo X"$_am_arg" |
16054 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16055 s//\1/
16056 q
16057 }
16058 /^X\(\/\/\)[^/].*/{
16059 s//\1/
16060 q
16061 }
16062 /^X\(\/\/\)$/{
16063 s//\1/
16064 q
16065 }
16066 /^X\(\/\).*/{
16067 s//\1/
16068 q
16069 }
16070 s/.*/./; q'`/stamp-h$_am_stamp_count
16071 ;;
16072
16073 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
16074 $as_echo "$as_me: executing $ac_file commands" >&6;}
16075 ;;
16076 esac
16077
16078
16079 case $ac_file$ac_mode in
16080 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
16081 # Autoconf 2.62 quotes --file arguments for eval, but not when files
16082 # are listed without --file. Let's play safe and only enable the eval
16083 # if we detect the quoting.
16084 case $CONFIG_FILES in
16085 *\'*) eval set x "$CONFIG_FILES" ;;
16086 *) set x $CONFIG_FILES ;;
16087 esac
16088 shift
16089 for mf
16090 do
16091 # Strip MF so we end up with the name of the file.
16092 mf=`echo "$mf" | sed -e 's/:.*$//'`
16093 # Check whether this is an Automake generated Makefile or not.
16094 # We used to match only the files named `Makefile.in', but
16095 # some people rename them; so instead we look at the file content.
16096 # Grep'ing the first line is not enough: some people post-process
16097 # each Makefile.in and add a new line on top of each file to say so.
16098 # Grep'ing the whole file is not good either: AIX grep has a line
16099 # limit of 2048, but all sed's we know have understand at least 4000.
16100 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
16101 dirpart=`$as_dirname -- "$mf" ||
16102 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16103 X"$mf" : 'X\(//\)[^/]' \| \
16104 X"$mf" : 'X\(//\)$' \| \
16105 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
16106 $as_echo X"$mf" |
16107 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16108 s//\1/
16109 q
16110 }
16111 /^X\(\/\/\)[^/].*/{
16112 s//\1/
16113 q
16114 }
16115 /^X\(\/\/\)$/{
16116 s//\1/
16117 q
16118 }
16119 /^X\(\/\).*/{
16120 s//\1/
16121 q
16122 }
16123 s/.*/./; q'`
16124 else
16125 continue
16126 fi
16127 # Extract the definition of DEPDIR, am__include, and am__quote
16128 # from the Makefile without running `make'.
16129 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
16130 test -z "$DEPDIR" && continue
16131 am__include=`sed -n 's/^am__include = //p' < "$mf"`
16132 test -z "am__include" && continue
16133 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
16134 # When using ansi2knr, U may be empty or an underscore; expand it
16135 U=`sed -n 's/^U = //p' < "$mf"`
16136 # Find all dependency output files, they are included files with
16137 # $(DEPDIR) in their names. We invoke sed twice because it is the
16138 # simplest approach to changing $(DEPDIR) to its actual value in the
16139 # expansion.
16140 for file in `sed -n "
16141 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
16142 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
16143 # Make sure the directory exists.
16144 test -f "$dirpart/$file" && continue
16145 fdir=`$as_dirname -- "$file" ||
16146 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16147 X"$file" : 'X\(//\)[^/]' \| \
16148 X"$file" : 'X\(//\)$' \| \
16149 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
16150 $as_echo X"$file" |
16151 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16152 s//\1/
16153 q
16154 }
16155 /^X\(\/\/\)[^/].*/{
16156 s//\1/
16157 q
16158 }
16159 /^X\(\/\/\)$/{
16160 s//\1/
16161 q
16162 }
16163 /^X\(\/\).*/{
16164 s//\1/
16165 q
16166 }
16167 s/.*/./; q'`
16168 as_dir=$dirpart/$fdir; as_fn_mkdir_p
16169 # echo "creating $dirpart/$file"
16170 echo '# dummy' > "$dirpart/$file"
16171 done
16172 done
16173 }
16174 ;;
16175 "libtool":C)
16176
16177 # See if we are running on zsh, and set the options which allow our
16178 # commands through without removal of \ escapes.
16179 if test -n "${ZSH_VERSION+set}" ; then
16180 setopt NO_GLOB_SUBST
16181 fi
16182
16183 cfgfile="${ofile}T"
16184 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
16185 $RM "$cfgfile"
16186
16187 cat <<_LT_EOF >> "$cfgfile"
16188 #! $SHELL
16189
16190 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
16191 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
16192 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
16193 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
16194 #
16195 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
16196 # 2006, 2007, 2008, 2009 Free Software Foundation, Inc.
16197 # Written by Gordon Matzigkeit, 1996
16198 #
16199 # This file is part of GNU Libtool.
16200 #
16201 # GNU Libtool is free software; you can redistribute it and/or
16202 # modify it under the terms of the GNU General Public License as
16203 # published by the Free Software Foundation; either version 2 of
16204 # the License, or (at your option) any later version.
16205 #
16206 # As a special exception to the GNU General Public License,
16207 # if you distribute this file as part of a program or library that
16208 # is built using GNU Libtool, you may include this file under the
16209 # same distribution terms that you use for the rest of that program.
16210 #
16211 # GNU Libtool is distributed in the hope that it will be useful,
16212 # but WITHOUT ANY WARRANTY; without even the implied warranty of
16213 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16214 # GNU General Public License for more details.
16215 #
16216 # You should have received a copy of the GNU General Public License
16217 # along with GNU Libtool; see the file COPYING. If not, a copy
16218 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
16219 # obtained by writing to the Free Software Foundation, Inc.,
16220 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
16221
16222
16223 # The names of the tagged configurations supported by this script.
16224 available_tags=""
16225
16226 # ### BEGIN LIBTOOL CONFIG
16227
16228 # Which release of libtool.m4 was used?
16229 macro_version=$macro_version
16230 macro_revision=$macro_revision
16231
16232 # Whether or not to build shared libraries.
16233 build_libtool_libs=$enable_shared
16234
16235 # Whether or not to build static libraries.
16236 build_old_libs=$enable_static
16237
16238 # What type of objects to build.
16239 pic_mode=$pic_mode
16240
16241 # Whether or not to optimize for fast installation.
16242 fast_install=$enable_fast_install
16243
16244 # Shell to use when invoking shell scripts.
16245 SHELL=$lt_SHELL
16246
16247 # An echo program that protects backslashes.
16248 ECHO=$lt_ECHO
16249
16250 # The host system.
16251 host_alias=$host_alias
16252 host=$host
16253 host_os=$host_os
16254
16255 # The build system.
16256 build_alias=$build_alias
16257 build=$build
16258 build_os=$build_os
16259
16260 # A sed program that does not truncate output.
16261 SED=$lt_SED
16262
16263 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
16264 Xsed="\$SED -e 1s/^X//"
16265
16266 # A grep program that handles long lines.
16267 GREP=$lt_GREP
16268
16269 # An ERE matcher.
16270 EGREP=$lt_EGREP
16271
16272 # A literal string matcher.
16273 FGREP=$lt_FGREP
16274
16275 # A BSD- or MS-compatible name lister.
16276 NM=$lt_NM
16277
16278 # Whether we need soft or hard links.
16279 LN_S=$lt_LN_S
16280
16281 # What is the maximum length of a command?
16282 max_cmd_len=$max_cmd_len
16283
16284 # Object file suffix (normally "o").
16285 objext=$ac_objext
16286
16287 # Executable file suffix (normally "").
16288 exeext=$exeext
16289
16290 # whether the shell understands "unset".
16291 lt_unset=$lt_unset
16292
16293 # turn spaces into newlines.
16294 SP2NL=$lt_lt_SP2NL
16295
16296 # turn newlines into spaces.
16297 NL2SP=$lt_lt_NL2SP
16298
16299 # An object symbol dumper.
16300 OBJDUMP=$lt_OBJDUMP
16301
16302 # Method to check whether dependent libraries are shared objects.
16303 deplibs_check_method=$lt_deplibs_check_method
16304
16305 # Command to use when deplibs_check_method == "file_magic".
16306 file_magic_cmd=$lt_file_magic_cmd
16307
16308 # The archiver.
16309 AR=$lt_AR
16310 AR_FLAGS=$lt_AR_FLAGS
16311
16312 # A symbol stripping program.
16313 STRIP=$lt_STRIP
16314
16315 # Commands used to install an old-style archive.
16316 RANLIB=$lt_RANLIB
16317 old_postinstall_cmds=$lt_old_postinstall_cmds
16318 old_postuninstall_cmds=$lt_old_postuninstall_cmds
16319
16320 # Whether to use a lock for old archive extraction.
16321 lock_old_archive_extraction=$lock_old_archive_extraction
16322
16323 # A C compiler.
16324 LTCC=$lt_CC
16325
16326 # LTCC compiler flags.
16327 LTCFLAGS=$lt_CFLAGS
16328
16329 # Take the output of nm and produce a listing of raw symbols and C names.
16330 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
16331
16332 # Transform the output of nm in a proper C declaration.
16333 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
16334
16335 # Transform the output of nm in a C name address pair.
16336 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
16337
16338 # Transform the output of nm in a C name address pair when lib prefix is needed.
16339 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
16340
16341 # The name of the directory that contains temporary libtool files.
16342 objdir=$objdir
16343
16344 # Used to examine libraries when file_magic_cmd begins with "file".
16345 MAGIC_CMD=$MAGIC_CMD
16346
16347 # Must we lock files when doing compilation?
16348 need_locks=$lt_need_locks
16349
16350 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
16351 DSYMUTIL=$lt_DSYMUTIL
16352
16353 # Tool to change global to local symbols on Mac OS X.
16354 NMEDIT=$lt_NMEDIT
16355
16356 # Tool to manipulate fat objects and archives on Mac OS X.
16357 LIPO=$lt_LIPO
16358
16359 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
16360 OTOOL=$lt_OTOOL
16361
16362 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
16363 OTOOL64=$lt_OTOOL64
16364
16365 # Old archive suffix (normally "a").
16366 libext=$libext
16367
16368 # Shared library suffix (normally ".so").
16369 shrext_cmds=$lt_shrext_cmds
16370
16371 # The commands to extract the exported symbol list from a shared archive.
16372 extract_expsyms_cmds=$lt_extract_expsyms_cmds
16373
16374 # Variables whose values should be saved in libtool wrapper scripts and
16375 # restored at link time.
16376 variables_saved_for_relink=$lt_variables_saved_for_relink
16377
16378 # Do we need the "lib" prefix for modules?
16379 need_lib_prefix=$need_lib_prefix
16380
16381 # Do we need a version for libraries?
16382 need_version=$need_version
16383
16384 # Library versioning type.
16385 version_type=$version_type
16386
16387 # Shared library runtime path variable.
16388 runpath_var=$runpath_var
16389
16390 # Shared library path variable.
16391 shlibpath_var=$shlibpath_var
16392
16393 # Is shlibpath searched before the hard-coded library search path?
16394 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
16395
16396 # Format of library name prefix.
16397 libname_spec=$lt_libname_spec
16398
16399 # List of archive names. First name is the real one, the rest are links.
16400 # The last name is the one that the linker finds with -lNAME
16401 library_names_spec=$lt_library_names_spec
16402
16403 # The coded name of the library, if different from the real name.
16404 soname_spec=$lt_soname_spec
16405
16406 # Permission mode override for installation of shared libraries.
16407 install_override_mode=$lt_install_override_mode
16408
16409 # Command to use after installation of a shared archive.
16410 postinstall_cmds=$lt_postinstall_cmds
16411
16412 # Command to use after uninstallation of a shared archive.
16413 postuninstall_cmds=$lt_postuninstall_cmds
16414
16415 # Commands used to finish a libtool library installation in a directory.
16416 finish_cmds=$lt_finish_cmds
16417
16418 # As "finish_cmds", except a single script fragment to be evaled but
16419 # not shown.
16420 finish_eval=$lt_finish_eval
16421
16422 # Whether we should hardcode library paths into libraries.
16423 hardcode_into_libs=$hardcode_into_libs
16424
16425 # Compile-time system search path for libraries.
16426 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
16427
16428 # Run-time system search path for libraries.
16429 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
16430
16431 # Whether dlopen is supported.
16432 dlopen_support=$enable_dlopen
16433
16434 # Whether dlopen of programs is supported.
16435 dlopen_self=$enable_dlopen_self
16436
16437 # Whether dlopen of statically linked programs is supported.
16438 dlopen_self_static=$enable_dlopen_self_static
16439
16440 # Commands to strip libraries.
16441 old_striplib=$lt_old_striplib
16442 striplib=$lt_striplib
16443
16444
16445 # The linker used to build libraries.
16446 LD=$lt_LD
16447
16448 # How to create reloadable object files.
16449 reload_flag=$lt_reload_flag
16450 reload_cmds=$lt_reload_cmds
16451
16452 # Commands used to build an old-style archive.
16453 old_archive_cmds=$lt_old_archive_cmds
16454
16455 # A language specific compiler.
16456 CC=$lt_compiler
16457
16458 # Is the compiler the GNU compiler?
16459 with_gcc=$GCC
16460
16461 # Compiler flag to turn off builtin functions.
16462 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
16463
16464 # How to pass a linker flag through the compiler.
16465 wl=$lt_lt_prog_compiler_wl
16466
16467 # Additional compiler flags for building library objects.
16468 pic_flag=$lt_lt_prog_compiler_pic
16469
16470 # Compiler flag to prevent dynamic linking.
16471 link_static_flag=$lt_lt_prog_compiler_static
16472
16473 # Does compiler simultaneously support -c and -o options?
16474 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
16475
16476 # Whether or not to add -lc for building shared libraries.
16477 build_libtool_need_lc=$archive_cmds_need_lc
16478
16479 # Whether or not to disallow shared libs when runtime libs are static.
16480 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
16481
16482 # Compiler flag to allow reflexive dlopens.
16483 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
16484
16485 # Compiler flag to generate shared objects directly from archives.
16486 whole_archive_flag_spec=$lt_whole_archive_flag_spec
16487
16488 # Whether the compiler copes with passing no objects directly.
16489 compiler_needs_object=$lt_compiler_needs_object
16490
16491 # Create an old-style archive from a shared archive.
16492 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
16493
16494 # Create a temporary old-style archive to link instead of a shared archive.
16495 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
16496
16497 # Commands used to build a shared archive.
16498 archive_cmds=$lt_archive_cmds
16499 archive_expsym_cmds=$lt_archive_expsym_cmds
16500
16501 # Commands used to build a loadable module if different from building
16502 # a shared archive.
16503 module_cmds=$lt_module_cmds
16504 module_expsym_cmds=$lt_module_expsym_cmds
16505
16506 # Whether we are building with GNU ld or not.
16507 with_gnu_ld=$lt_with_gnu_ld
16508
16509 # Flag that allows shared libraries with undefined symbols to be built.
16510 allow_undefined_flag=$lt_allow_undefined_flag
16511
16512 # Flag that enforces no undefined symbols.
16513 no_undefined_flag=$lt_no_undefined_flag
16514
16515 # Flag to hardcode \$libdir into a binary during linking.
16516 # This must work even if \$libdir does not exist
16517 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
16518
16519 # If ld is used when linking, flag to hardcode \$libdir into a binary
16520 # during linking. This must work even if \$libdir does not exist.
16521 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
16522
16523 # Whether we need a single "-rpath" flag with a separated argument.
16524 hardcode_libdir_separator=$lt_hardcode_libdir_separator
16525
16526 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
16527 # DIR into the resulting binary.
16528 hardcode_direct=$hardcode_direct
16529
16530 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
16531 # DIR into the resulting binary and the resulting library dependency is
16532 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
16533 # library is relocated.
16534 hardcode_direct_absolute=$hardcode_direct_absolute
16535
16536 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
16537 # into the resulting binary.
16538 hardcode_minus_L=$hardcode_minus_L
16539
16540 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
16541 # into the resulting binary.
16542 hardcode_shlibpath_var=$hardcode_shlibpath_var
16543
16544 # Set to "yes" if building a shared library automatically hardcodes DIR
16545 # into the library and all subsequent libraries and executables linked
16546 # against it.
16547 hardcode_automatic=$hardcode_automatic
16548
16549 # Set to yes if linker adds runtime paths of dependent libraries
16550 # to runtime path list.
16551 inherit_rpath=$inherit_rpath
16552
16553 # Whether libtool must link a program against all its dependency libraries.
16554 link_all_deplibs=$link_all_deplibs
16555
16556 # Fix the shell variable \$srcfile for the compiler.
16557 fix_srcfile_path=$lt_fix_srcfile_path
16558
16559 # Set to "yes" if exported symbols are required.
16560 always_export_symbols=$always_export_symbols
16561
16562 # The commands to list exported symbols.
16563 export_symbols_cmds=$lt_export_symbols_cmds
16564
16565 # Symbols that should not be listed in the preloaded symbols.
16566 exclude_expsyms=$lt_exclude_expsyms
16567
16568 # Symbols that must always be exported.
16569 include_expsyms=$lt_include_expsyms
16570
16571 # Commands necessary for linking programs (against libraries) with templates.
16572 prelink_cmds=$lt_prelink_cmds
16573
16574 # Specify filename containing input files.
16575 file_list_spec=$lt_file_list_spec
16576
16577 # How to hardcode a shared library path into an executable.
16578 hardcode_action=$hardcode_action
16579
16580 # ### END LIBTOOL CONFIG
16581
16582 _LT_EOF
16583
16584 case $host_os in
16585 aix3*)
16586 cat <<\_LT_EOF >> "$cfgfile"
16587 # AIX sometimes has problems with the GCC collect2 program. For some
16588 # reason, if we set the COLLECT_NAMES environment variable, the problems
16589 # vanish in a puff of smoke.
16590 if test "X${COLLECT_NAMES+set}" != Xset; then
16591 COLLECT_NAMES=
16592 export COLLECT_NAMES
16593 fi
16594 _LT_EOF
16595 ;;
16596 esac
16597
16598
16599 ltmain="$ac_aux_dir/ltmain.sh"
16600
16601
16602 # We use sed instead of cat because bash on DJGPP gets confused if
16603 # if finds mixed CR/LF and LF-only lines. Since sed operates in
16604 # text mode, it properly converts lines to CR/LF. This bash problem
16605 # is reportedly fixed, but why not run on old versions too?
16606 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
16607 || (rm -f "$cfgfile"; exit 1)
16608
16609 case $xsi_shell in
16610 yes)
16611 cat << \_LT_EOF >> "$cfgfile"
16612
16613 # func_dirname file append nondir_replacement
16614 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
16615 # otherwise set result to NONDIR_REPLACEMENT.
16616 func_dirname ()
16617 {
16618 case ${1} in
16619 */*) func_dirname_result="${1%/*}${2}" ;;
16620 * ) func_dirname_result="${3}" ;;
16621 esac
16622 }
16623
16624 # func_basename file
16625 func_basename ()
16626 {
16627 func_basename_result="${1##*/}"
16628 }
16629
16630 # func_dirname_and_basename file append nondir_replacement
16631 # perform func_basename and func_dirname in a single function
16632 # call:
16633 # dirname: Compute the dirname of FILE. If nonempty,
16634 # add APPEND to the result, otherwise set result
16635 # to NONDIR_REPLACEMENT.
16636 # value returned in "$func_dirname_result"
16637 # basename: Compute filename of FILE.
16638 # value retuned in "$func_basename_result"
16639 # Implementation must be kept synchronized with func_dirname
16640 # and func_basename. For efficiency, we do not delegate to
16641 # those functions but instead duplicate the functionality here.
16642 func_dirname_and_basename ()
16643 {
16644 case ${1} in
16645 */*) func_dirname_result="${1%/*}${2}" ;;
16646 * ) func_dirname_result="${3}" ;;
16647 esac
16648 func_basename_result="${1##*/}"
16649 }
16650
16651 # func_stripname prefix suffix name
16652 # strip PREFIX and SUFFIX off of NAME.
16653 # PREFIX and SUFFIX must not contain globbing or regex special
16654 # characters, hashes, percent signs, but SUFFIX may contain a leading
16655 # dot (in which case that matches only a dot).
16656 func_stripname ()
16657 {
16658 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
16659 # positional parameters, so assign one to ordinary parameter first.
16660 func_stripname_result=${3}
16661 func_stripname_result=${func_stripname_result#"${1}"}
16662 func_stripname_result=${func_stripname_result%"${2}"}
16663 }
16664
16665 # func_opt_split
16666 func_opt_split ()
16667 {
16668 func_opt_split_opt=${1%%=*}
16669 func_opt_split_arg=${1#*=}
16670 }
16671
16672 # func_lo2o object
16673 func_lo2o ()
16674 {
16675 case ${1} in
16676 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
16677 *) func_lo2o_result=${1} ;;
16678 esac
16679 }
16680
16681 # func_xform libobj-or-source
16682 func_xform ()
16683 {
16684 func_xform_result=${1%.*}.lo
16685 }
16686
16687 # func_arith arithmetic-term...
16688 func_arith ()
16689 {
16690 func_arith_result=$(( $* ))
16691 }
16692
16693 # func_len string
16694 # STRING may not start with a hyphen.
16695 func_len ()
16696 {
16697 func_len_result=${#1}
16698 }
16699
16700 _LT_EOF
16701 ;;
16702 *) # Bourne compatible functions.
16703 cat << \_LT_EOF >> "$cfgfile"
16704
16705 # func_dirname file append nondir_replacement
16706 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
16707 # otherwise set result to NONDIR_REPLACEMENT.
16708 func_dirname ()
16709 {
16710 # Extract subdirectory from the argument.
16711 func_dirname_result=`$ECHO "${1}" | $SED "$dirname"`
16712 if test "X$func_dirname_result" = "X${1}"; then
16713 func_dirname_result="${3}"
16714 else
16715 func_dirname_result="$func_dirname_result${2}"
16716 fi
16717 }
16718
16719 # func_basename file
16720 func_basename ()
16721 {
16722 func_basename_result=`$ECHO "${1}" | $SED "$basename"`
16723 }
16724
16725
16726 # func_stripname prefix suffix name
16727 # strip PREFIX and SUFFIX off of NAME.
16728 # PREFIX and SUFFIX must not contain globbing or regex special
16729 # characters, hashes, percent signs, but SUFFIX may contain a leading
16730 # dot (in which case that matches only a dot).
16731 # func_strip_suffix prefix name
16732 func_stripname ()
16733 {
16734 case ${2} in
16735 .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
16736 *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
16737 esac
16738 }
16739
16740 # sed scripts:
16741 my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
16742 my_sed_long_arg='1s/^-[^=]*=//'
16743
16744 # func_opt_split
16745 func_opt_split ()
16746 {
16747 func_opt_split_opt=`$ECHO "${1}" | $SED "$my_sed_long_opt"`
16748 func_opt_split_arg=`$ECHO "${1}" | $SED "$my_sed_long_arg"`
16749 }
16750
16751 # func_lo2o object
16752 func_lo2o ()
16753 {
16754 func_lo2o_result=`$ECHO "${1}" | $SED "$lo2o"`
16755 }
16756
16757 # func_xform libobj-or-source
16758 func_xform ()
16759 {
16760 func_xform_result=`$ECHO "${1}" | $SED 's/\.[^.]*$/.lo/'`
16761 }
16762
16763 # func_arith arithmetic-term...
16764 func_arith ()
16765 {
16766 func_arith_result=`expr "$@"`
16767 }
16768
16769 # func_len string
16770 # STRING may not start with a hyphen.
16771 func_len ()
16772 {
16773 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
16774 }
16775
16776 _LT_EOF
16777 esac
16778
16779 case $lt_shell_append in
16780 yes)
16781 cat << \_LT_EOF >> "$cfgfile"
16782
16783 # func_append var value
16784 # Append VALUE to the end of shell variable VAR.
16785 func_append ()
16786 {
16787 eval "$1+=\$2"
16788 }
16789 _LT_EOF
16790 ;;
16791 *)
16792 cat << \_LT_EOF >> "$cfgfile"
16793
16794 # func_append var value
16795 # Append VALUE to the end of shell variable VAR.
16796 func_append ()
16797 {
16798 eval "$1=\$$1\$2"
16799 }
16800
16801 _LT_EOF
16802 ;;
16803 esac
16804
16805
16806 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
16807 || (rm -f "$cfgfile"; exit 1)
16808
16809 mv -f "$cfgfile" "$ofile" ||
16810 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
16811 chmod +x "$ofile"
16812
16813 ;;
16814 "default-1":C)
16815 for ac_file in $CONFIG_FILES; do
16816 # Support "outfile[:infile[:infile...]]"
16817 case "$ac_file" in
16818 *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
16819 esac
16820 # PO directories have a Makefile.in generated from Makefile.in.in.
16821 case "$ac_file" in */Makefile.in)
16822 # Adjust a relative srcdir.
16823 ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
16824 ac_dir_suffix=/`echo "$ac_dir"|sed 's%^\./%%'`
16825 ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
16826 # In autoconf-2.13 it is called $ac_given_srcdir.
16827 # In autoconf-2.50 it is called $srcdir.
16828 test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
16829 case "$ac_given_srcdir" in
16830 .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
16831 /*) top_srcdir="$ac_given_srcdir" ;;
16832 *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
16833 esac
16834 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
16835 rm -f "$ac_dir/POTFILES"
16836 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
16837 cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
16838 POMAKEFILEDEPS="POTFILES.in"
16839 # ALL_LINGUAS, POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES depend
16840 # on $ac_dir but don't depend on user-specified configuration
16841 # parameters.
16842 if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
16843 # The LINGUAS file contains the set of available languages.
16844 if test -n "$OBSOLETE_ALL_LINGUAS"; then
16845 test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.ac is obsolete" || echo "setting ALL_LINGUAS in configure.ac is obsolete"
16846 fi
16847 ALL_LINGUAS_=`sed -e "/^#/d" "$ac_given_srcdir/$ac_dir/LINGUAS"`
16848 # Hide the ALL_LINGUAS assigment from automake.
16849 eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
16850 POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
16851 else
16852 # The set of available languages was given in configure.ac.
16853 eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
16854 fi
16855 case "$ac_given_srcdir" in
16856 .) srcdirpre= ;;
16857 *) srcdirpre='$(srcdir)/' ;;
16858 esac
16859 POFILES=
16860 GMOFILES=
16861 UPDATEPOFILES=
16862 DUMMYPOFILES=
16863 for lang in $ALL_LINGUAS; do
16864 POFILES="$POFILES $srcdirpre$lang.po"
16865 GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
16866 UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
16867 DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
16868 done
16869 # CATALOGS depends on both $ac_dir and the user's LINGUAS
16870 # environment variable.
16871 INST_LINGUAS=
16872 if test -n "$ALL_LINGUAS"; then
16873 for presentlang in $ALL_LINGUAS; do
16874 useit=no
16875 if test "%UNSET%" != "$LINGUAS"; then
16876 desiredlanguages="$LINGUAS"
16877 else
16878 desiredlanguages="$ALL_LINGUAS"
16879 fi
16880 for desiredlang in $desiredlanguages; do
16881 # Use the presentlang catalog if desiredlang is
16882 # a. equal to presentlang, or
16883 # b. a variant of presentlang (because in this case,
16884 # presentlang can be used as a fallback for messages
16885 # which are not translated in the desiredlang catalog).
16886 case "$desiredlang" in
16887 "$presentlang"*) useit=yes;;
16888 esac
16889 done
16890 if test $useit = yes; then
16891 INST_LINGUAS="$INST_LINGUAS $presentlang"
16892 fi
16893 done
16894 fi
16895 CATALOGS=
16896 if test -n "$INST_LINGUAS"; then
16897 for lang in $INST_LINGUAS; do
16898 CATALOGS="$CATALOGS $lang.gmo"
16899 done
16900 fi
16901 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
16902 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"
16903 for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
16904 if test -f "$f"; then
16905 case "$f" in
16906 *.orig | *.bak | *~) ;;
16907 *) cat "$f" >> "$ac_dir/Makefile" ;;
16908 esac
16909 fi
16910 done
16911 fi
16912 ;;
16913 esac
16914 done ;;
16915 "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
16916 echo '#include "tc-'"${target_cpu_type}"'.h"' > targ-cpu.h
16917 echo '#include "obj-'"${obj_format}"'.h"' > obj-format.h
16918 echo '#include "te-'"${te_file}"'.h"' > targ-env.h
16919 echo '#include "itbl-'"${target_cpu_type}"'.h"' > itbl-cpu.h
16920 if test "x$cgen_cpu_prefix" != x ; then
16921 echo '#include "opcodes/'"${cgen_cpu_prefix}"'-desc.h"' > cgen-desc.h
16922 fi ;;
16923
16924 esac
16925 done # for ac_tag
16926
16927
16928 as_fn_exit 0
16929 _ACEOF
16930 ac_clean_files=$ac_clean_files_save
16931
16932 test $ac_write_fail = 0 ||
16933 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
16934
16935
16936 # configure is writing to config.log, and then calls config.status.
16937 # config.status does its own redirection, appending to config.log.
16938 # Unfortunately, on DOS this fails, as config.log is still kept open
16939 # by configure, so config.status won't be able to write to it; its
16940 # output is simply discarded. So we exec the FD to /dev/null,
16941 # effectively closing config.log, so it can be properly (re)opened and
16942 # appended to by config.status. When coming back to configure, we
16943 # need to make the FD available again.
16944 if test "$no_create" != yes; then
16945 ac_cs_success=:
16946 ac_config_status_args=
16947 test "$silent" = yes &&
16948 ac_config_status_args="$ac_config_status_args --quiet"
16949 exec 5>/dev/null
16950 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
16951 exec 5>>config.log
16952 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
16953 # would make configure fail if this is the last instruction.
16954 $ac_cs_success || as_fn_exit $?
16955 fi
16956 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
16957 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
16958 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
16959 fi
16960