397bb38b16c17dde885e929942f1cd6d75c902bc
[deliverable/binutils-gdb.git] / gas / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.64 for gas 2.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_werror
768 enable_build_warnings
769 enable_nls
770 enable_maintainer_mode
771 with_system_zlib
772 '
773 ac_precious_vars='build_alias
774 host_alias
775 target_alias
776 CC
777 CFLAGS
778 LDFLAGS
779 LIBS
780 CPPFLAGS
781 CPP
782 YACC
783 YFLAGS'
784
785
786 # Initialize some variables set by options.
787 ac_init_help=
788 ac_init_version=false
789 ac_unrecognized_opts=
790 ac_unrecognized_sep=
791 # The variables have the same names as the options, with
792 # dashes changed to underlines.
793 cache_file=/dev/null
794 exec_prefix=NONE
795 no_create=
796 no_recursion=
797 prefix=NONE
798 program_prefix=NONE
799 program_suffix=NONE
800 program_transform_name=s,x,x,
801 silent=
802 site=
803 srcdir=
804 verbose=
805 x_includes=NONE
806 x_libraries=NONE
807
808 # Installation directory options.
809 # These are left unexpanded so users can "make install exec_prefix=/foo"
810 # and all the variables that are supposed to be based on exec_prefix
811 # by default will actually change.
812 # Use braces instead of parens because sh, perl, etc. also accept them.
813 # (The list follows the same order as the GNU Coding Standards.)
814 bindir='${exec_prefix}/bin'
815 sbindir='${exec_prefix}/sbin'
816 libexecdir='${exec_prefix}/libexec'
817 datarootdir='${prefix}/share'
818 datadir='${datarootdir}'
819 sysconfdir='${prefix}/etc'
820 sharedstatedir='${prefix}/com'
821 localstatedir='${prefix}/var'
822 includedir='${prefix}/include'
823 oldincludedir='/usr/include'
824 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
825 infodir='${datarootdir}/info'
826 htmldir='${docdir}'
827 dvidir='${docdir}'
828 pdfdir='${docdir}'
829 psdir='${docdir}'
830 libdir='${exec_prefix}/lib'
831 localedir='${datarootdir}/locale'
832 mandir='${datarootdir}/man'
833
834 ac_prev=
835 ac_dashdash=
836 for ac_option
837 do
838 # If the previous option needs an argument, assign it.
839 if test -n "$ac_prev"; then
840 eval $ac_prev=\$ac_option
841 ac_prev=
842 continue
843 fi
844
845 case $ac_option in
846 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
847 *) ac_optarg=yes ;;
848 esac
849
850 # Accept the important Cygnus configure options, so we can diagnose typos.
851
852 case $ac_dashdash$ac_option in
853 --)
854 ac_dashdash=yes ;;
855
856 -bindir | --bindir | --bindi | --bind | --bin | --bi)
857 ac_prev=bindir ;;
858 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
859 bindir=$ac_optarg ;;
860
861 -build | --build | --buil | --bui | --bu)
862 ac_prev=build_alias ;;
863 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
864 build_alias=$ac_optarg ;;
865
866 -cache-file | --cache-file | --cache-fil | --cache-fi \
867 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
868 ac_prev=cache_file ;;
869 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
870 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
871 cache_file=$ac_optarg ;;
872
873 --config-cache | -C)
874 cache_file=config.cache ;;
875
876 -datadir | --datadir | --datadi | --datad)
877 ac_prev=datadir ;;
878 -datadir=* | --datadir=* | --datadi=* | --datad=*)
879 datadir=$ac_optarg ;;
880
881 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
882 | --dataroo | --dataro | --datar)
883 ac_prev=datarootdir ;;
884 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
885 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
886 datarootdir=$ac_optarg ;;
887
888 -disable-* | --disable-*)
889 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
890 # Reject names that are not valid shell variable names.
891 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
892 as_fn_error "invalid feature name: $ac_useropt"
893 ac_useropt_orig=$ac_useropt
894 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
895 case $ac_user_opts in
896 *"
897 "enable_$ac_useropt"
898 "*) ;;
899 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
900 ac_unrecognized_sep=', ';;
901 esac
902 eval enable_$ac_useropt=no ;;
903
904 -docdir | --docdir | --docdi | --doc | --do)
905 ac_prev=docdir ;;
906 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
907 docdir=$ac_optarg ;;
908
909 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
910 ac_prev=dvidir ;;
911 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
912 dvidir=$ac_optarg ;;
913
914 -enable-* | --enable-*)
915 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
916 # Reject names that are not valid shell variable names.
917 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
918 as_fn_error "invalid feature name: $ac_useropt"
919 ac_useropt_orig=$ac_useropt
920 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
921 case $ac_user_opts in
922 *"
923 "enable_$ac_useropt"
924 "*) ;;
925 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
926 ac_unrecognized_sep=', ';;
927 esac
928 eval enable_$ac_useropt=\$ac_optarg ;;
929
930 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
931 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
932 | --exec | --exe | --ex)
933 ac_prev=exec_prefix ;;
934 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
935 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
936 | --exec=* | --exe=* | --ex=*)
937 exec_prefix=$ac_optarg ;;
938
939 -gas | --gas | --ga | --g)
940 # Obsolete; use --with-gas.
941 with_gas=yes ;;
942
943 -help | --help | --hel | --he | -h)
944 ac_init_help=long ;;
945 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
946 ac_init_help=recursive ;;
947 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
948 ac_init_help=short ;;
949
950 -host | --host | --hos | --ho)
951 ac_prev=host_alias ;;
952 -host=* | --host=* | --hos=* | --ho=*)
953 host_alias=$ac_optarg ;;
954
955 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
956 ac_prev=htmldir ;;
957 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
958 | --ht=*)
959 htmldir=$ac_optarg ;;
960
961 -includedir | --includedir | --includedi | --included | --include \
962 | --includ | --inclu | --incl | --inc)
963 ac_prev=includedir ;;
964 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
965 | --includ=* | --inclu=* | --incl=* | --inc=*)
966 includedir=$ac_optarg ;;
967
968 -infodir | --infodir | --infodi | --infod | --info | --inf)
969 ac_prev=infodir ;;
970 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
971 infodir=$ac_optarg ;;
972
973 -libdir | --libdir | --libdi | --libd)
974 ac_prev=libdir ;;
975 -libdir=* | --libdir=* | --libdi=* | --libd=*)
976 libdir=$ac_optarg ;;
977
978 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
979 | --libexe | --libex | --libe)
980 ac_prev=libexecdir ;;
981 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
982 | --libexe=* | --libex=* | --libe=*)
983 libexecdir=$ac_optarg ;;
984
985 -localedir | --localedir | --localedi | --localed | --locale)
986 ac_prev=localedir ;;
987 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
988 localedir=$ac_optarg ;;
989
990 -localstatedir | --localstatedir | --localstatedi | --localstated \
991 | --localstate | --localstat | --localsta | --localst | --locals)
992 ac_prev=localstatedir ;;
993 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
994 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
995 localstatedir=$ac_optarg ;;
996
997 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
998 ac_prev=mandir ;;
999 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1000 mandir=$ac_optarg ;;
1001
1002 -nfp | --nfp | --nf)
1003 # Obsolete; use --without-fp.
1004 with_fp=no ;;
1005
1006 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1007 | --no-cr | --no-c | -n)
1008 no_create=yes ;;
1009
1010 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1011 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1012 no_recursion=yes ;;
1013
1014 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1015 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1016 | --oldin | --oldi | --old | --ol | --o)
1017 ac_prev=oldincludedir ;;
1018 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1019 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1020 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1021 oldincludedir=$ac_optarg ;;
1022
1023 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1024 ac_prev=prefix ;;
1025 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1026 prefix=$ac_optarg ;;
1027
1028 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1029 | --program-pre | --program-pr | --program-p)
1030 ac_prev=program_prefix ;;
1031 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1032 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1033 program_prefix=$ac_optarg ;;
1034
1035 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1036 | --program-suf | --program-su | --program-s)
1037 ac_prev=program_suffix ;;
1038 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1039 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1040 program_suffix=$ac_optarg ;;
1041
1042 -program-transform-name | --program-transform-name \
1043 | --program-transform-nam | --program-transform-na \
1044 | --program-transform-n | --program-transform- \
1045 | --program-transform | --program-transfor \
1046 | --program-transfo | --program-transf \
1047 | --program-trans | --program-tran \
1048 | --progr-tra | --program-tr | --program-t)
1049 ac_prev=program_transform_name ;;
1050 -program-transform-name=* | --program-transform-name=* \
1051 | --program-transform-nam=* | --program-transform-na=* \
1052 | --program-transform-n=* | --program-transform-=* \
1053 | --program-transform=* | --program-transfor=* \
1054 | --program-transfo=* | --program-transf=* \
1055 | --program-trans=* | --program-tran=* \
1056 | --progr-tra=* | --program-tr=* | --program-t=*)
1057 program_transform_name=$ac_optarg ;;
1058
1059 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1060 ac_prev=pdfdir ;;
1061 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1062 pdfdir=$ac_optarg ;;
1063
1064 -psdir | --psdir | --psdi | --psd | --ps)
1065 ac_prev=psdir ;;
1066 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1067 psdir=$ac_optarg ;;
1068
1069 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1070 | -silent | --silent | --silen | --sile | --sil)
1071 silent=yes ;;
1072
1073 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1074 ac_prev=sbindir ;;
1075 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1076 | --sbi=* | --sb=*)
1077 sbindir=$ac_optarg ;;
1078
1079 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1080 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1081 | --sharedst | --shareds | --shared | --share | --shar \
1082 | --sha | --sh)
1083 ac_prev=sharedstatedir ;;
1084 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1085 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1086 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1087 | --sha=* | --sh=*)
1088 sharedstatedir=$ac_optarg ;;
1089
1090 -site | --site | --sit)
1091 ac_prev=site ;;
1092 -site=* | --site=* | --sit=*)
1093 site=$ac_optarg ;;
1094
1095 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1096 ac_prev=srcdir ;;
1097 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1098 srcdir=$ac_optarg ;;
1099
1100 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1101 | --syscon | --sysco | --sysc | --sys | --sy)
1102 ac_prev=sysconfdir ;;
1103 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1104 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1105 sysconfdir=$ac_optarg ;;
1106
1107 -target | --target | --targe | --targ | --tar | --ta | --t)
1108 ac_prev=target_alias ;;
1109 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1110 target_alias=$ac_optarg ;;
1111
1112 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1113 verbose=yes ;;
1114
1115 -version | --version | --versio | --versi | --vers | -V)
1116 ac_init_version=: ;;
1117
1118 -with-* | --with-*)
1119 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1120 # Reject names that are not valid shell variable names.
1121 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1122 as_fn_error "invalid package name: $ac_useropt"
1123 ac_useropt_orig=$ac_useropt
1124 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1125 case $ac_user_opts in
1126 *"
1127 "with_$ac_useropt"
1128 "*) ;;
1129 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1130 ac_unrecognized_sep=', ';;
1131 esac
1132 eval with_$ac_useropt=\$ac_optarg ;;
1133
1134 -without-* | --without-*)
1135 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1136 # Reject names that are not valid shell variable names.
1137 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1138 as_fn_error "invalid package name: $ac_useropt"
1139 ac_useropt_orig=$ac_useropt
1140 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1141 case $ac_user_opts in
1142 *"
1143 "with_$ac_useropt"
1144 "*) ;;
1145 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1146 ac_unrecognized_sep=', ';;
1147 esac
1148 eval with_$ac_useropt=no ;;
1149
1150 --x)
1151 # Obsolete; use --with-x.
1152 with_x=yes ;;
1153
1154 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1155 | --x-incl | --x-inc | --x-in | --x-i)
1156 ac_prev=x_includes ;;
1157 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1158 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1159 x_includes=$ac_optarg ;;
1160
1161 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1162 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1163 ac_prev=x_libraries ;;
1164 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1165 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1166 x_libraries=$ac_optarg ;;
1167
1168 -*) as_fn_error "unrecognized option: \`$ac_option'
1169 Try \`$0 --help' for more information."
1170 ;;
1171
1172 *=*)
1173 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1174 # Reject names that are not valid shell variable names.
1175 case $ac_envvar in #(
1176 '' | [0-9]* | *[!_$as_cr_alnum]* )
1177 as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1178 esac
1179 eval $ac_envvar=\$ac_optarg
1180 export $ac_envvar ;;
1181
1182 *)
1183 # FIXME: should be removed in autoconf 3.0.
1184 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1185 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1186 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1187 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1188 ;;
1189
1190 esac
1191 done
1192
1193 if test -n "$ac_prev"; then
1194 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1195 as_fn_error "missing argument to $ac_option"
1196 fi
1197
1198 if test -n "$ac_unrecognized_opts"; then
1199 case $enable_option_checking in
1200 no) ;;
1201 fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1202 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1203 esac
1204 fi
1205
1206 # Check all directory arguments for consistency.
1207 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1208 datadir sysconfdir sharedstatedir localstatedir includedir \
1209 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1210 libdir localedir mandir
1211 do
1212 eval ac_val=\$$ac_var
1213 # Remove trailing slashes.
1214 case $ac_val in
1215 */ )
1216 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1217 eval $ac_var=\$ac_val;;
1218 esac
1219 # Be sure to have absolute directory names.
1220 case $ac_val in
1221 [\\/$]* | ?:[\\/]* ) continue;;
1222 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1223 esac
1224 as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1225 done
1226
1227 # There might be people who depend on the old broken behavior: `$host'
1228 # used to hold the argument of --host etc.
1229 # FIXME: To remove some day.
1230 build=$build_alias
1231 host=$host_alias
1232 target=$target_alias
1233
1234 # FIXME: To remove some day.
1235 if test "x$host_alias" != x; then
1236 if test "x$build_alias" = x; then
1237 cross_compiling=maybe
1238 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1239 If a cross compiler is detected then cross compile mode will be used." >&2
1240 elif test "x$build_alias" != "x$host_alias"; then
1241 cross_compiling=yes
1242 fi
1243 fi
1244
1245 ac_tool_prefix=
1246 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1247
1248 test "$silent" = yes && exec 6>/dev/null
1249
1250
1251 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1252 ac_ls_di=`ls -di .` &&
1253 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1254 as_fn_error "working directory cannot be determined"
1255 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1256 as_fn_error "pwd does not report name of working directory"
1257
1258
1259 # Find the source files, if location was not specified.
1260 if test -z "$srcdir"; then
1261 ac_srcdir_defaulted=yes
1262 # Try the directory containing this script, then the parent directory.
1263 ac_confdir=`$as_dirname -- "$as_myself" ||
1264 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1265 X"$as_myself" : 'X\(//\)[^/]' \| \
1266 X"$as_myself" : 'X\(//\)$' \| \
1267 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1268 $as_echo X"$as_myself" |
1269 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1270 s//\1/
1271 q
1272 }
1273 /^X\(\/\/\)[^/].*/{
1274 s//\1/
1275 q
1276 }
1277 /^X\(\/\/\)$/{
1278 s//\1/
1279 q
1280 }
1281 /^X\(\/\).*/{
1282 s//\1/
1283 q
1284 }
1285 s/.*/./; q'`
1286 srcdir=$ac_confdir
1287 if test ! -r "$srcdir/$ac_unique_file"; then
1288 srcdir=..
1289 fi
1290 else
1291 ac_srcdir_defaulted=no
1292 fi
1293 if test ! -r "$srcdir/$ac_unique_file"; then
1294 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1295 as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1296 fi
1297 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1298 ac_abs_confdir=`(
1299 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1300 pwd)`
1301 # When building in place, set srcdir=.
1302 if test "$ac_abs_confdir" = "$ac_pwd"; then
1303 srcdir=.
1304 fi
1305 # Remove unnecessary trailing slashes from srcdir.
1306 # Double slashes in file names in object file debugging info
1307 # mess up M-x gdb in Emacs.
1308 case $srcdir in
1309 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1310 esac
1311 for ac_var in $ac_precious_vars; do
1312 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1313 eval ac_env_${ac_var}_value=\$${ac_var}
1314 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1315 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1316 done
1317
1318 #
1319 # Report the --help message.
1320 #
1321 if test "$ac_init_help" = "long"; then
1322 # Omit some internal or obsolete options to make the list less imposing.
1323 # This message is too long to be a string in the A/UX 3.1 sh.
1324 cat <<_ACEOF
1325 \`configure' configures gas 2.25.51 to adapt to many kinds of systems.
1326
1327 Usage: $0 [OPTION]... [VAR=VALUE]...
1328
1329 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1330 VAR=VALUE. See below for descriptions of some of the useful variables.
1331
1332 Defaults for the options are specified in brackets.
1333
1334 Configuration:
1335 -h, --help display this help and exit
1336 --help=short display options specific to this package
1337 --help=recursive display the short help of all the included packages
1338 -V, --version display version information and exit
1339 -q, --quiet, --silent do not print \`checking...' messages
1340 --cache-file=FILE cache test results in FILE [disabled]
1341 -C, --config-cache alias for \`--cache-file=config.cache'
1342 -n, --no-create do not create output files
1343 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1344
1345 Installation directories:
1346 --prefix=PREFIX install architecture-independent files in PREFIX
1347 [$ac_default_prefix]
1348 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1349 [PREFIX]
1350
1351 By default, \`make install' will install all the files in
1352 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1353 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1354 for instance \`--prefix=\$HOME'.
1355
1356 For better control, use the options below.
1357
1358 Fine tuning of the installation directories:
1359 --bindir=DIR user executables [EPREFIX/bin]
1360 --sbindir=DIR system admin executables [EPREFIX/sbin]
1361 --libexecdir=DIR program executables [EPREFIX/libexec]
1362 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1363 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1364 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1365 --libdir=DIR object code libraries [EPREFIX/lib]
1366 --includedir=DIR C header files [PREFIX/include]
1367 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1368 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1369 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1370 --infodir=DIR info documentation [DATAROOTDIR/info]
1371 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1372 --mandir=DIR man documentation [DATAROOTDIR/man]
1373 --docdir=DIR documentation root [DATAROOTDIR/doc/gas]
1374 --htmldir=DIR html documentation [DOCDIR]
1375 --dvidir=DIR dvi documentation [DOCDIR]
1376 --pdfdir=DIR pdf documentation [DOCDIR]
1377 --psdir=DIR ps documentation [DOCDIR]
1378 _ACEOF
1379
1380 cat <<\_ACEOF
1381
1382 Program names:
1383 --program-prefix=PREFIX prepend PREFIX to installed program names
1384 --program-suffix=SUFFIX append SUFFIX to installed program names
1385 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1386
1387 System types:
1388 --build=BUILD configure for building on BUILD [guessed]
1389 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1390 --target=TARGET configure for building compilers for TARGET [HOST]
1391 _ACEOF
1392 fi
1393
1394 if test -n "$ac_init_help"; then
1395 case $ac_init_help in
1396 short | recursive ) echo "Configuration of gas 2.25.51:";;
1397 esac
1398 cat <<\_ACEOF
1399
1400 Optional Features:
1401 --disable-option-checking ignore unrecognized --enable/--with options
1402 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1403 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1404 --disable-dependency-tracking speeds up one-time build
1405 --enable-dependency-tracking do not reject slow dependency extractors
1406 --enable-shared[=PKGS] build shared libraries [default=yes]
1407 --enable-static[=PKGS] build static libraries [default=yes]
1408 --enable-fast-install[=PKGS]
1409 optimize for fast installation [default=yes]
1410 --disable-libtool-lock avoid locking (might break parallel builds)
1411 --enable-plugins Enable support for plugins
1412 --disable-largefile omit support for large files
1413 --enable-targets alternative target configurations besides the primary
1414 --enable-checking enable run-time checks
1415 --enable-werror treat compile warnings as errors
1416 --enable-build-warnings enable build-time compiler warnings
1417 --disable-nls do not use Native Language Support
1418 --enable-maintainer-mode enable make rules and dependencies not useful
1419 (and sometimes confusing) to the casual installer
1420
1421 Optional Packages:
1422 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1423 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1424 --with-pic try to use only PIC/non-PIC objects [default=use
1425 both]
1426 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1427 --with-system-zlib use installed libz
1428
1429 Some influential environment variables:
1430 CC C compiler command
1431 CFLAGS C compiler flags
1432 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1433 nonstandard directory <lib dir>
1434 LIBS libraries to pass to the linker, e.g. -l<library>
1435 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1436 you have headers in a nonstandard directory <include dir>
1437 CPP C preprocessor
1438 YACC The `Yet Another C Compiler' implementation to use. Defaults to
1439 the first program found out of: `bison -y', `byacc', `yacc'.
1440 YFLAGS The list of arguments that will be passed by default to $YACC.
1441 This script will default YFLAGS to the empty string to avoid a
1442 default value of `-d' given by some make applications.
1443
1444 Use these variables to override the choices made by `configure' or to help
1445 it to find libraries and programs with nonstandard names/locations.
1446
1447 Report bugs to the package provider.
1448 _ACEOF
1449 ac_status=$?
1450 fi
1451
1452 if test "$ac_init_help" = "recursive"; then
1453 # If there are subdirs, report their specific --help.
1454 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1455 test -d "$ac_dir" ||
1456 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1457 continue
1458 ac_builddir=.
1459
1460 case "$ac_dir" in
1461 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1462 *)
1463 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1464 # A ".." for each directory in $ac_dir_suffix.
1465 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1466 case $ac_top_builddir_sub in
1467 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1468 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1469 esac ;;
1470 esac
1471 ac_abs_top_builddir=$ac_pwd
1472 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1473 # for backward compatibility:
1474 ac_top_builddir=$ac_top_build_prefix
1475
1476 case $srcdir in
1477 .) # We are building in place.
1478 ac_srcdir=.
1479 ac_top_srcdir=$ac_top_builddir_sub
1480 ac_abs_top_srcdir=$ac_pwd ;;
1481 [\\/]* | ?:[\\/]* ) # Absolute name.
1482 ac_srcdir=$srcdir$ac_dir_suffix;
1483 ac_top_srcdir=$srcdir
1484 ac_abs_top_srcdir=$srcdir ;;
1485 *) # Relative name.
1486 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1487 ac_top_srcdir=$ac_top_build_prefix$srcdir
1488 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1489 esac
1490 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1491
1492 cd "$ac_dir" || { ac_status=$?; continue; }
1493 # Check for guested configure.
1494 if test -f "$ac_srcdir/configure.gnu"; then
1495 echo &&
1496 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1497 elif test -f "$ac_srcdir/configure"; then
1498 echo &&
1499 $SHELL "$ac_srcdir/configure" --help=recursive
1500 else
1501 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1502 fi || ac_status=$?
1503 cd "$ac_pwd" || { ac_status=$?; break; }
1504 done
1505 fi
1506
1507 test -n "$ac_init_help" && exit $ac_status
1508 if $ac_init_version; then
1509 cat <<\_ACEOF
1510 gas configure 2.25.51
1511 generated by GNU Autoconf 2.64
1512
1513 Copyright (C) 2009 Free Software Foundation, Inc.
1514 This configure script is free software; the Free Software Foundation
1515 gives unlimited permission to copy, distribute and modify it.
1516 _ACEOF
1517 exit
1518 fi
1519
1520 ## ------------------------ ##
1521 ## Autoconf initialization. ##
1522 ## ------------------------ ##
1523
1524 # ac_fn_c_try_compile LINENO
1525 # --------------------------
1526 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1527 ac_fn_c_try_compile ()
1528 {
1529 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1530 rm -f conftest.$ac_objext
1531 if { { ac_try="$ac_compile"
1532 case "(($ac_try" in
1533 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1534 *) ac_try_echo=$ac_try;;
1535 esac
1536 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1537 $as_echo "$ac_try_echo"; } >&5
1538 (eval "$ac_compile") 2>conftest.err
1539 ac_status=$?
1540 if test -s conftest.err; then
1541 grep -v '^ *+' conftest.err >conftest.er1
1542 cat conftest.er1 >&5
1543 mv -f conftest.er1 conftest.err
1544 fi
1545 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1546 test $ac_status = 0; } && {
1547 test -z "$ac_c_werror_flag" ||
1548 test ! -s conftest.err
1549 } && test -s conftest.$ac_objext; then :
1550 ac_retval=0
1551 else
1552 $as_echo "$as_me: failed program was:" >&5
1553 sed 's/^/| /' conftest.$ac_ext >&5
1554
1555 ac_retval=1
1556 fi
1557 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1558 return $ac_retval
1559
1560 } # ac_fn_c_try_compile
1561
1562 # ac_fn_c_try_link LINENO
1563 # -----------------------
1564 # Try to link conftest.$ac_ext, and return whether this succeeded.
1565 ac_fn_c_try_link ()
1566 {
1567 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1568 rm -f conftest.$ac_objext conftest$ac_exeext
1569 if { { ac_try="$ac_link"
1570 case "(($ac_try" in
1571 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1572 *) ac_try_echo=$ac_try;;
1573 esac
1574 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1575 $as_echo "$ac_try_echo"; } >&5
1576 (eval "$ac_link") 2>conftest.err
1577 ac_status=$?
1578 if test -s conftest.err; then
1579 grep -v '^ *+' conftest.err >conftest.er1
1580 cat conftest.er1 >&5
1581 mv -f conftest.er1 conftest.err
1582 fi
1583 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1584 test $ac_status = 0; } && {
1585 test -z "$ac_c_werror_flag" ||
1586 test ! -s conftest.err
1587 } && test -s conftest$ac_exeext && {
1588 test "$cross_compiling" = yes ||
1589 $as_test_x conftest$ac_exeext
1590 }; then :
1591 ac_retval=0
1592 else
1593 $as_echo "$as_me: failed program was:" >&5
1594 sed 's/^/| /' conftest.$ac_ext >&5
1595
1596 ac_retval=1
1597 fi
1598 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1599 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1600 # interfere with the next link command; also delete a directory that is
1601 # left behind by Apple's compiler. We do this before executing the actions.
1602 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1603 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1604 return $ac_retval
1605
1606 } # ac_fn_c_try_link
1607
1608 # ac_fn_c_try_cpp LINENO
1609 # ----------------------
1610 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1611 ac_fn_c_try_cpp ()
1612 {
1613 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1614 if { { ac_try="$ac_cpp conftest.$ac_ext"
1615 case "(($ac_try" in
1616 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1617 *) ac_try_echo=$ac_try;;
1618 esac
1619 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1620 $as_echo "$ac_try_echo"; } >&5
1621 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1622 ac_status=$?
1623 if test -s conftest.err; then
1624 grep -v '^ *+' conftest.err >conftest.er1
1625 cat conftest.er1 >&5
1626 mv -f conftest.er1 conftest.err
1627 fi
1628 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1629 test $ac_status = 0; } >/dev/null && {
1630 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1631 test ! -s conftest.err
1632 }; then :
1633 ac_retval=0
1634 else
1635 $as_echo "$as_me: failed program was:" >&5
1636 sed 's/^/| /' conftest.$ac_ext >&5
1637
1638 ac_retval=1
1639 fi
1640 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1641 return $ac_retval
1642
1643 } # ac_fn_c_try_cpp
1644
1645 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1646 # -------------------------------------------------------
1647 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1648 # the include files in INCLUDES and setting the cache variable VAR
1649 # accordingly.
1650 ac_fn_c_check_header_mongrel ()
1651 {
1652 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1653 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1654 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1655 $as_echo_n "checking for $2... " >&6; }
1656 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1657 $as_echo_n "(cached) " >&6
1658 fi
1659 eval ac_res=\$$3
1660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1661 $as_echo "$ac_res" >&6; }
1662 else
1663 # Is the header compilable?
1664 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1665 $as_echo_n "checking $2 usability... " >&6; }
1666 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1667 /* end confdefs.h. */
1668 $4
1669 #include <$2>
1670 _ACEOF
1671 if ac_fn_c_try_compile "$LINENO"; then :
1672 ac_header_compiler=yes
1673 else
1674 ac_header_compiler=no
1675 fi
1676 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1678 $as_echo "$ac_header_compiler" >&6; }
1679
1680 # Is the header present?
1681 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1682 $as_echo_n "checking $2 presence... " >&6; }
1683 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1684 /* end confdefs.h. */
1685 #include <$2>
1686 _ACEOF
1687 if ac_fn_c_try_cpp "$LINENO"; then :
1688 ac_header_preproc=yes
1689 else
1690 ac_header_preproc=no
1691 fi
1692 rm -f conftest.err conftest.$ac_ext
1693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1694 $as_echo "$ac_header_preproc" >&6; }
1695
1696 # So? What about this header?
1697 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1698 yes:no: )
1699 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1700 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1701 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1702 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1703 ;;
1704 no:yes:* )
1705 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1706 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1707 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1708 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1709 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1710 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1711 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1712 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1713 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1714 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1715 ;;
1716 esac
1717 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1718 $as_echo_n "checking for $2... " >&6; }
1719 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1720 $as_echo_n "(cached) " >&6
1721 else
1722 eval "$3=\$ac_header_compiler"
1723 fi
1724 eval ac_res=\$$3
1725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1726 $as_echo "$ac_res" >&6; }
1727 fi
1728 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1729
1730 } # ac_fn_c_check_header_mongrel
1731
1732 # ac_fn_c_try_run LINENO
1733 # ----------------------
1734 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1735 # that executables *can* be run.
1736 ac_fn_c_try_run ()
1737 {
1738 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1739 if { { ac_try="$ac_link"
1740 case "(($ac_try" in
1741 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1742 *) ac_try_echo=$ac_try;;
1743 esac
1744 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1745 $as_echo "$ac_try_echo"; } >&5
1746 (eval "$ac_link") 2>&5
1747 ac_status=$?
1748 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1749 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1750 { { case "(($ac_try" in
1751 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1752 *) ac_try_echo=$ac_try;;
1753 esac
1754 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1755 $as_echo "$ac_try_echo"; } >&5
1756 (eval "$ac_try") 2>&5
1757 ac_status=$?
1758 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1759 test $ac_status = 0; }; }; then :
1760 ac_retval=0
1761 else
1762 $as_echo "$as_me: program exited with status $ac_status" >&5
1763 $as_echo "$as_me: failed program was:" >&5
1764 sed 's/^/| /' conftest.$ac_ext >&5
1765
1766 ac_retval=$ac_status
1767 fi
1768 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1769 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1770 return $ac_retval
1771
1772 } # ac_fn_c_try_run
1773
1774 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1775 # -------------------------------------------------------
1776 # Tests whether HEADER exists and can be compiled using the include files in
1777 # INCLUDES, setting the cache variable VAR accordingly.
1778 ac_fn_c_check_header_compile ()
1779 {
1780 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1781 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1782 $as_echo_n "checking for $2... " >&6; }
1783 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1784 $as_echo_n "(cached) " >&6
1785 else
1786 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1787 /* end confdefs.h. */
1788 $4
1789 #include <$2>
1790 _ACEOF
1791 if ac_fn_c_try_compile "$LINENO"; then :
1792 eval "$3=yes"
1793 else
1794 eval "$3=no"
1795 fi
1796 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1797 fi
1798 eval ac_res=\$$3
1799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1800 $as_echo "$ac_res" >&6; }
1801 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1802
1803 } # ac_fn_c_check_header_compile
1804
1805 # ac_fn_c_check_func LINENO FUNC VAR
1806 # ----------------------------------
1807 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1808 ac_fn_c_check_func ()
1809 {
1810 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1811 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1812 $as_echo_n "checking for $2... " >&6; }
1813 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1814 $as_echo_n "(cached) " >&6
1815 else
1816 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1817 /* end confdefs.h. */
1818 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1819 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1820 #define $2 innocuous_$2
1821
1822 /* System header to define __stub macros and hopefully few prototypes,
1823 which can conflict with char $2 (); below.
1824 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1825 <limits.h> exists even on freestanding compilers. */
1826
1827 #ifdef __STDC__
1828 # include <limits.h>
1829 #else
1830 # include <assert.h>
1831 #endif
1832
1833 #undef $2
1834
1835 /* Override any GCC internal prototype to avoid an error.
1836 Use char because int might match the return type of a GCC
1837 builtin and then its argument prototype would still apply. */
1838 #ifdef __cplusplus
1839 extern "C"
1840 #endif
1841 char $2 ();
1842 /* The GNU C library defines this for functions which it implements
1843 to always fail with ENOSYS. Some functions are actually named
1844 something starting with __ and the normal name is an alias. */
1845 #if defined __stub_$2 || defined __stub___$2
1846 choke me
1847 #endif
1848
1849 int
1850 main ()
1851 {
1852 return $2 ();
1853 ;
1854 return 0;
1855 }
1856 _ACEOF
1857 if ac_fn_c_try_link "$LINENO"; then :
1858 eval "$3=yes"
1859 else
1860 eval "$3=no"
1861 fi
1862 rm -f core conftest.err conftest.$ac_objext \
1863 conftest$ac_exeext conftest.$ac_ext
1864 fi
1865 eval ac_res=\$$3
1866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1867 $as_echo "$ac_res" >&6; }
1868 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1869
1870 } # ac_fn_c_check_func
1871
1872 # ac_fn_c_check_decl LINENO SYMBOL VAR
1873 # ------------------------------------
1874 # Tests whether SYMBOL is declared, setting cache variable VAR accordingly.
1875 ac_fn_c_check_decl ()
1876 {
1877 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1878 as_decl_name=`echo $2|sed 's/ *(.*//'`
1879 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
1880 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
1881 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
1882 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1883 $as_echo_n "(cached) " >&6
1884 else
1885 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1886 /* end confdefs.h. */
1887 $4
1888 int
1889 main ()
1890 {
1891 #ifndef $as_decl_name
1892 #ifdef __cplusplus
1893 (void) $as_decl_use;
1894 #else
1895 (void) $as_decl_name;
1896 #endif
1897 #endif
1898
1899 ;
1900 return 0;
1901 }
1902 _ACEOF
1903 if ac_fn_c_try_compile "$LINENO"; then :
1904 eval "$3=yes"
1905 else
1906 eval "$3=no"
1907 fi
1908 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1909 fi
1910 eval ac_res=\$$3
1911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1912 $as_echo "$ac_res" >&6; }
1913 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1914
1915 } # ac_fn_c_check_decl
1916 cat >config.log <<_ACEOF
1917 This file contains any messages produced by compilers while
1918 running configure, to aid debugging if configure makes a mistake.
1919
1920 It was created by gas $as_me 2.25.51, which was
1921 generated by GNU Autoconf 2.64. Invocation command line was
1922
1923 $ $0 $@
1924
1925 _ACEOF
1926 exec 5>>config.log
1927 {
1928 cat <<_ASUNAME
1929 ## --------- ##
1930 ## Platform. ##
1931 ## --------- ##
1932
1933 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1934 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1935 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1936 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1937 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1938
1939 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1940 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1941
1942 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1943 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1944 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1945 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1946 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1947 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1948 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1949
1950 _ASUNAME
1951
1952 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1953 for as_dir in $PATH
1954 do
1955 IFS=$as_save_IFS
1956 test -z "$as_dir" && as_dir=.
1957 $as_echo "PATH: $as_dir"
1958 done
1959 IFS=$as_save_IFS
1960
1961 } >&5
1962
1963 cat >&5 <<_ACEOF
1964
1965
1966 ## ----------- ##
1967 ## Core tests. ##
1968 ## ----------- ##
1969
1970 _ACEOF
1971
1972
1973 # Keep a trace of the command line.
1974 # Strip out --no-create and --no-recursion so they do not pile up.
1975 # Strip out --silent because we don't want to record it for future runs.
1976 # Also quote any args containing shell meta-characters.
1977 # Make two passes to allow for proper duplicate-argument suppression.
1978 ac_configure_args=
1979 ac_configure_args0=
1980 ac_configure_args1=
1981 ac_must_keep_next=false
1982 for ac_pass in 1 2
1983 do
1984 for ac_arg
1985 do
1986 case $ac_arg in
1987 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1988 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1989 | -silent | --silent | --silen | --sile | --sil)
1990 continue ;;
1991 *\'*)
1992 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1993 esac
1994 case $ac_pass in
1995 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1996 2)
1997 as_fn_append ac_configure_args1 " '$ac_arg'"
1998 if test $ac_must_keep_next = true; then
1999 ac_must_keep_next=false # Got value, back to normal.
2000 else
2001 case $ac_arg in
2002 *=* | --config-cache | -C | -disable-* | --disable-* \
2003 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2004 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2005 | -with-* | --with-* | -without-* | --without-* | --x)
2006 case "$ac_configure_args0 " in
2007 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2008 esac
2009 ;;
2010 -* ) ac_must_keep_next=true ;;
2011 esac
2012 fi
2013 as_fn_append ac_configure_args " '$ac_arg'"
2014 ;;
2015 esac
2016 done
2017 done
2018 { ac_configure_args0=; unset ac_configure_args0;}
2019 { ac_configure_args1=; unset ac_configure_args1;}
2020
2021 # When interrupted or exit'd, cleanup temporary files, and complete
2022 # config.log. We remove comments because anyway the quotes in there
2023 # would cause problems or look ugly.
2024 # WARNING: Use '\'' to represent an apostrophe within the trap.
2025 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2026 trap 'exit_status=$?
2027 # Save into config.log some information that might help in debugging.
2028 {
2029 echo
2030
2031 cat <<\_ASBOX
2032 ## ---------------- ##
2033 ## Cache variables. ##
2034 ## ---------------- ##
2035 _ASBOX
2036 echo
2037 # The following way of writing the cache mishandles newlines in values,
2038 (
2039 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2040 eval ac_val=\$$ac_var
2041 case $ac_val in #(
2042 *${as_nl}*)
2043 case $ac_var in #(
2044 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2045 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2046 esac
2047 case $ac_var in #(
2048 _ | IFS | as_nl) ;; #(
2049 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2050 *) { eval $ac_var=; unset $ac_var;} ;;
2051 esac ;;
2052 esac
2053 done
2054 (set) 2>&1 |
2055 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2056 *${as_nl}ac_space=\ *)
2057 sed -n \
2058 "s/'\''/'\''\\\\'\'''\''/g;
2059 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2060 ;; #(
2061 *)
2062 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2063 ;;
2064 esac |
2065 sort
2066 )
2067 echo
2068
2069 cat <<\_ASBOX
2070 ## ----------------- ##
2071 ## Output variables. ##
2072 ## ----------------- ##
2073 _ASBOX
2074 echo
2075 for ac_var in $ac_subst_vars
2076 do
2077 eval ac_val=\$$ac_var
2078 case $ac_val in
2079 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2080 esac
2081 $as_echo "$ac_var='\''$ac_val'\''"
2082 done | sort
2083 echo
2084
2085 if test -n "$ac_subst_files"; then
2086 cat <<\_ASBOX
2087 ## ------------------- ##
2088 ## File substitutions. ##
2089 ## ------------------- ##
2090 _ASBOX
2091 echo
2092 for ac_var in $ac_subst_files
2093 do
2094 eval ac_val=\$$ac_var
2095 case $ac_val in
2096 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2097 esac
2098 $as_echo "$ac_var='\''$ac_val'\''"
2099 done | sort
2100 echo
2101 fi
2102
2103 if test -s confdefs.h; then
2104 cat <<\_ASBOX
2105 ## ----------- ##
2106 ## confdefs.h. ##
2107 ## ----------- ##
2108 _ASBOX
2109 echo
2110 cat confdefs.h
2111 echo
2112 fi
2113 test "$ac_signal" != 0 &&
2114 $as_echo "$as_me: caught signal $ac_signal"
2115 $as_echo "$as_me: exit $exit_status"
2116 } >&5
2117 rm -f core *.core core.conftest.* &&
2118 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2119 exit $exit_status
2120 ' 0
2121 for ac_signal in 1 2 13 15; do
2122 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2123 done
2124 ac_signal=0
2125
2126 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2127 rm -f -r conftest* confdefs.h
2128
2129 $as_echo "/* confdefs.h */" > confdefs.h
2130
2131 # Predefined preprocessor variables.
2132
2133 cat >>confdefs.h <<_ACEOF
2134 #define PACKAGE_NAME "$PACKAGE_NAME"
2135 _ACEOF
2136
2137 cat >>confdefs.h <<_ACEOF
2138 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2139 _ACEOF
2140
2141 cat >>confdefs.h <<_ACEOF
2142 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2143 _ACEOF
2144
2145 cat >>confdefs.h <<_ACEOF
2146 #define PACKAGE_STRING "$PACKAGE_STRING"
2147 _ACEOF
2148
2149 cat >>confdefs.h <<_ACEOF
2150 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2151 _ACEOF
2152
2153 cat >>confdefs.h <<_ACEOF
2154 #define PACKAGE_URL "$PACKAGE_URL"
2155 _ACEOF
2156
2157
2158 # Let the site file select an alternate cache file if it wants to.
2159 # Prefer an explicitly selected file to automatically selected ones.
2160 ac_site_file1=NONE
2161 ac_site_file2=NONE
2162 if test -n "$CONFIG_SITE"; then
2163 ac_site_file1=$CONFIG_SITE
2164 elif test "x$prefix" != xNONE; then
2165 ac_site_file1=$prefix/share/config.site
2166 ac_site_file2=$prefix/etc/config.site
2167 else
2168 ac_site_file1=$ac_default_prefix/share/config.site
2169 ac_site_file2=$ac_default_prefix/etc/config.site
2170 fi
2171 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2172 do
2173 test "x$ac_site_file" = xNONE && continue
2174 if test -r "$ac_site_file"; then
2175 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2176 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2177 sed 's/^/| /' "$ac_site_file" >&5
2178 . "$ac_site_file"
2179 fi
2180 done
2181
2182 if test -r "$cache_file"; then
2183 # Some versions of bash will fail to source /dev/null (special
2184 # files actually), so we avoid doing that.
2185 if test -f "$cache_file"; then
2186 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2187 $as_echo "$as_me: loading cache $cache_file" >&6;}
2188 case $cache_file in
2189 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2190 *) . "./$cache_file";;
2191 esac
2192 fi
2193 else
2194 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2195 $as_echo "$as_me: creating cache $cache_file" >&6;}
2196 >$cache_file
2197 fi
2198
2199 # Check that the precious variables saved in the cache have kept the same
2200 # value.
2201 ac_cache_corrupted=false
2202 for ac_var in $ac_precious_vars; do
2203 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2204 eval ac_new_set=\$ac_env_${ac_var}_set
2205 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2206 eval ac_new_val=\$ac_env_${ac_var}_value
2207 case $ac_old_set,$ac_new_set in
2208 set,)
2209 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2210 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2211 ac_cache_corrupted=: ;;
2212 ,set)
2213 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2214 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2215 ac_cache_corrupted=: ;;
2216 ,);;
2217 *)
2218 if test "x$ac_old_val" != "x$ac_new_val"; then
2219 # differences in whitespace do not lead to failure.
2220 ac_old_val_w=`echo x $ac_old_val`
2221 ac_new_val_w=`echo x $ac_new_val`
2222 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2223 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2224 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2225 ac_cache_corrupted=:
2226 else
2227 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2228 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2229 eval $ac_var=\$ac_old_val
2230 fi
2231 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2232 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2233 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2234 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2235 fi;;
2236 esac
2237 # Pass precious variables to config.status.
2238 if test "$ac_new_set" = set; then
2239 case $ac_new_val in
2240 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2241 *) ac_arg=$ac_var=$ac_new_val ;;
2242 esac
2243 case " $ac_configure_args " in
2244 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2245 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2246 esac
2247 fi
2248 done
2249 if $ac_cache_corrupted; then
2250 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2251 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2252 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2253 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2254 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2255 fi
2256 ## -------------------- ##
2257 ## Main body of script. ##
2258 ## -------------------- ##
2259
2260 ac_ext=c
2261 ac_cpp='$CPP $CPPFLAGS'
2262 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2263 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2264 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2265
2266
2267
2268
2269
2270
2271
2272 ac_aux_dir=
2273 for ac_dir in .. "$srcdir"/..; do
2274 for ac_t in install-sh install.sh shtool; do
2275 if test -f "$ac_dir/$ac_t"; then
2276 ac_aux_dir=$ac_dir
2277 ac_install_sh="$ac_aux_dir/$ac_t -c"
2278 break 2
2279 fi
2280 done
2281 done
2282 if test -z "$ac_aux_dir"; then
2283 as_fn_error "cannot find install-sh, install.sh, or shtool in .. \"$srcdir\"/.." "$LINENO" 5
2284 fi
2285
2286 # These three variables are undocumented and unsupported,
2287 # and are intended to be withdrawn in a future Autoconf release.
2288 # They can cause serious problems if a builder's source tree is in a directory
2289 # whose full name contains unusual characters.
2290 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2291 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2292 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2293
2294
2295 # Make sure we can run config.sub.
2296 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2297 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2298
2299 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2300 $as_echo_n "checking build system type... " >&6; }
2301 if test "${ac_cv_build+set}" = set; then :
2302 $as_echo_n "(cached) " >&6
2303 else
2304 ac_build_alias=$build_alias
2305 test "x$ac_build_alias" = x &&
2306 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2307 test "x$ac_build_alias" = x &&
2308 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
2309 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2310 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2311
2312 fi
2313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2314 $as_echo "$ac_cv_build" >&6; }
2315 case $ac_cv_build in
2316 *-*-*) ;;
2317 *) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
2318 esac
2319 build=$ac_cv_build
2320 ac_save_IFS=$IFS; IFS='-'
2321 set x $ac_cv_build
2322 shift
2323 build_cpu=$1
2324 build_vendor=$2
2325 shift; shift
2326 # Remember, the first character of IFS is used to create $*,
2327 # except with old shells:
2328 build_os=$*
2329 IFS=$ac_save_IFS
2330 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2331
2332
2333 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2334 $as_echo_n "checking host system type... " >&6; }
2335 if test "${ac_cv_host+set}" = set; then :
2336 $as_echo_n "(cached) " >&6
2337 else
2338 if test "x$host_alias" = x; then
2339 ac_cv_host=$ac_cv_build
2340 else
2341 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2342 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2343 fi
2344
2345 fi
2346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2347 $as_echo "$ac_cv_host" >&6; }
2348 case $ac_cv_host in
2349 *-*-*) ;;
2350 *) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
2351 esac
2352 host=$ac_cv_host
2353 ac_save_IFS=$IFS; IFS='-'
2354 set x $ac_cv_host
2355 shift
2356 host_cpu=$1
2357 host_vendor=$2
2358 shift; shift
2359 # Remember, the first character of IFS is used to create $*,
2360 # except with old shells:
2361 host_os=$*
2362 IFS=$ac_save_IFS
2363 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2364
2365
2366 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2367 $as_echo_n "checking target system type... " >&6; }
2368 if test "${ac_cv_target+set}" = set; then :
2369 $as_echo_n "(cached) " >&6
2370 else
2371 if test "x$target_alias" = x; then
2372 ac_cv_target=$ac_cv_host
2373 else
2374 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2375 as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2376 fi
2377
2378 fi
2379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2380 $as_echo "$ac_cv_target" >&6; }
2381 case $ac_cv_target in
2382 *-*-*) ;;
2383 *) as_fn_error "invalid value of canonical target" "$LINENO" 5;;
2384 esac
2385 target=$ac_cv_target
2386 ac_save_IFS=$IFS; IFS='-'
2387 set x $ac_cv_target
2388 shift
2389 target_cpu=$1
2390 target_vendor=$2
2391 shift; shift
2392 # Remember, the first character of IFS is used to create $*,
2393 # except with old shells:
2394 target_os=$*
2395 IFS=$ac_save_IFS
2396 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2397
2398
2399 # The aliases save the names the user supplied, while $host etc.
2400 # will get canonicalized.
2401 test -n "$target_alias" &&
2402 test "$program_prefix$program_suffix$program_transform_name" = \
2403 NONENONEs,x,x, &&
2404 program_prefix=${target_alias}-
2405 ac_ext=c
2406 ac_cpp='$CPP $CPPFLAGS'
2407 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2408 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2409 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2410 if test -n "$ac_tool_prefix"; then
2411 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2412 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2413 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2414 $as_echo_n "checking for $ac_word... " >&6; }
2415 if test "${ac_cv_prog_CC+set}" = set; then :
2416 $as_echo_n "(cached) " >&6
2417 else
2418 if test -n "$CC"; then
2419 ac_cv_prog_CC="$CC" # Let the user override the test.
2420 else
2421 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2422 for as_dir in $PATH
2423 do
2424 IFS=$as_save_IFS
2425 test -z "$as_dir" && as_dir=.
2426 for ac_exec_ext in '' $ac_executable_extensions; do
2427 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2428 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2429 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2430 break 2
2431 fi
2432 done
2433 done
2434 IFS=$as_save_IFS
2435
2436 fi
2437 fi
2438 CC=$ac_cv_prog_CC
2439 if test -n "$CC"; then
2440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2441 $as_echo "$CC" >&6; }
2442 else
2443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2444 $as_echo "no" >&6; }
2445 fi
2446
2447
2448 fi
2449 if test -z "$ac_cv_prog_CC"; then
2450 ac_ct_CC=$CC
2451 # Extract the first word of "gcc", so it can be a program name with args.
2452 set dummy gcc; ac_word=$2
2453 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2454 $as_echo_n "checking for $ac_word... " >&6; }
2455 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
2456 $as_echo_n "(cached) " >&6
2457 else
2458 if test -n "$ac_ct_CC"; then
2459 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2460 else
2461 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2462 for as_dir in $PATH
2463 do
2464 IFS=$as_save_IFS
2465 test -z "$as_dir" && as_dir=.
2466 for ac_exec_ext in '' $ac_executable_extensions; do
2467 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2468 ac_cv_prog_ac_ct_CC="gcc"
2469 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2470 break 2
2471 fi
2472 done
2473 done
2474 IFS=$as_save_IFS
2475
2476 fi
2477 fi
2478 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2479 if test -n "$ac_ct_CC"; then
2480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2481 $as_echo "$ac_ct_CC" >&6; }
2482 else
2483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2484 $as_echo "no" >&6; }
2485 fi
2486
2487 if test "x$ac_ct_CC" = x; then
2488 CC=""
2489 else
2490 case $cross_compiling:$ac_tool_warned in
2491 yes:)
2492 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2493 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2494 ac_tool_warned=yes ;;
2495 esac
2496 CC=$ac_ct_CC
2497 fi
2498 else
2499 CC="$ac_cv_prog_CC"
2500 fi
2501
2502 if test -z "$CC"; then
2503 if test -n "$ac_tool_prefix"; then
2504 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2505 set dummy ${ac_tool_prefix}cc; ac_word=$2
2506 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2507 $as_echo_n "checking for $ac_word... " >&6; }
2508 if test "${ac_cv_prog_CC+set}" = set; then :
2509 $as_echo_n "(cached) " >&6
2510 else
2511 if test -n "$CC"; then
2512 ac_cv_prog_CC="$CC" # Let the user override the test.
2513 else
2514 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2515 for as_dir in $PATH
2516 do
2517 IFS=$as_save_IFS
2518 test -z "$as_dir" && as_dir=.
2519 for ac_exec_ext in '' $ac_executable_extensions; do
2520 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2521 ac_cv_prog_CC="${ac_tool_prefix}cc"
2522 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2523 break 2
2524 fi
2525 done
2526 done
2527 IFS=$as_save_IFS
2528
2529 fi
2530 fi
2531 CC=$ac_cv_prog_CC
2532 if test -n "$CC"; then
2533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2534 $as_echo "$CC" >&6; }
2535 else
2536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2537 $as_echo "no" >&6; }
2538 fi
2539
2540
2541 fi
2542 fi
2543 if test -z "$CC"; then
2544 # Extract the first word of "cc", so it can be a program name with args.
2545 set dummy cc; ac_word=$2
2546 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2547 $as_echo_n "checking for $ac_word... " >&6; }
2548 if test "${ac_cv_prog_CC+set}" = set; then :
2549 $as_echo_n "(cached) " >&6
2550 else
2551 if test -n "$CC"; then
2552 ac_cv_prog_CC="$CC" # Let the user override the test.
2553 else
2554 ac_prog_rejected=no
2555 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2556 for as_dir in $PATH
2557 do
2558 IFS=$as_save_IFS
2559 test -z "$as_dir" && as_dir=.
2560 for ac_exec_ext in '' $ac_executable_extensions; do
2561 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2562 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2563 ac_prog_rejected=yes
2564 continue
2565 fi
2566 ac_cv_prog_CC="cc"
2567 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2568 break 2
2569 fi
2570 done
2571 done
2572 IFS=$as_save_IFS
2573
2574 if test $ac_prog_rejected = yes; then
2575 # We found a bogon in the path, so make sure we never use it.
2576 set dummy $ac_cv_prog_CC
2577 shift
2578 if test $# != 0; then
2579 # We chose a different compiler from the bogus one.
2580 # However, it has the same basename, so the bogon will be chosen
2581 # first if we set CC to just the basename; use the full file name.
2582 shift
2583 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2584 fi
2585 fi
2586 fi
2587 fi
2588 CC=$ac_cv_prog_CC
2589 if test -n "$CC"; then
2590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2591 $as_echo "$CC" >&6; }
2592 else
2593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2594 $as_echo "no" >&6; }
2595 fi
2596
2597
2598 fi
2599 if test -z "$CC"; then
2600 if test -n "$ac_tool_prefix"; then
2601 for ac_prog in cl.exe
2602 do
2603 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2604 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2605 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2606 $as_echo_n "checking for $ac_word... " >&6; }
2607 if test "${ac_cv_prog_CC+set}" = set; then :
2608 $as_echo_n "(cached) " >&6
2609 else
2610 if test -n "$CC"; then
2611 ac_cv_prog_CC="$CC" # Let the user override the test.
2612 else
2613 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2614 for as_dir in $PATH
2615 do
2616 IFS=$as_save_IFS
2617 test -z "$as_dir" && as_dir=.
2618 for ac_exec_ext in '' $ac_executable_extensions; do
2619 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2620 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2621 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2622 break 2
2623 fi
2624 done
2625 done
2626 IFS=$as_save_IFS
2627
2628 fi
2629 fi
2630 CC=$ac_cv_prog_CC
2631 if test -n "$CC"; then
2632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2633 $as_echo "$CC" >&6; }
2634 else
2635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2636 $as_echo "no" >&6; }
2637 fi
2638
2639
2640 test -n "$CC" && break
2641 done
2642 fi
2643 if test -z "$CC"; then
2644 ac_ct_CC=$CC
2645 for ac_prog in cl.exe
2646 do
2647 # Extract the first word of "$ac_prog", so it can be a program name with args.
2648 set dummy $ac_prog; ac_word=$2
2649 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2650 $as_echo_n "checking for $ac_word... " >&6; }
2651 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
2652 $as_echo_n "(cached) " >&6
2653 else
2654 if test -n "$ac_ct_CC"; then
2655 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2656 else
2657 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2658 for as_dir in $PATH
2659 do
2660 IFS=$as_save_IFS
2661 test -z "$as_dir" && as_dir=.
2662 for ac_exec_ext in '' $ac_executable_extensions; do
2663 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2664 ac_cv_prog_ac_ct_CC="$ac_prog"
2665 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2666 break 2
2667 fi
2668 done
2669 done
2670 IFS=$as_save_IFS
2671
2672 fi
2673 fi
2674 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2675 if test -n "$ac_ct_CC"; then
2676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2677 $as_echo "$ac_ct_CC" >&6; }
2678 else
2679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2680 $as_echo "no" >&6; }
2681 fi
2682
2683
2684 test -n "$ac_ct_CC" && break
2685 done
2686
2687 if test "x$ac_ct_CC" = x; then
2688 CC=""
2689 else
2690 case $cross_compiling:$ac_tool_warned in
2691 yes:)
2692 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2693 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2694 ac_tool_warned=yes ;;
2695 esac
2696 CC=$ac_ct_CC
2697 fi
2698 fi
2699
2700 fi
2701
2702
2703 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2704 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2705 as_fn_error "no acceptable C compiler found in \$PATH
2706 See \`config.log' for more details." "$LINENO" 5; }
2707
2708 # Provide some information about the compiler.
2709 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
2710 set X $ac_compile
2711 ac_compiler=$2
2712 for ac_option in --version -v -V -qversion; do
2713 { { ac_try="$ac_compiler $ac_option >&5"
2714 case "(($ac_try" in
2715 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2716 *) ac_try_echo=$ac_try;;
2717 esac
2718 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2719 $as_echo "$ac_try_echo"; } >&5
2720 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
2721 ac_status=$?
2722 if test -s conftest.err; then
2723 sed '10a\
2724 ... rest of stderr output deleted ...
2725 10q' conftest.err >conftest.er1
2726 cat conftest.er1 >&5
2727 rm -f conftest.er1 conftest.err
2728 fi
2729 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2730 test $ac_status = 0; }
2731 done
2732
2733 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2734 /* end confdefs.h. */
2735
2736 int
2737 main ()
2738 {
2739
2740 ;
2741 return 0;
2742 }
2743 _ACEOF
2744 ac_clean_files_save=$ac_clean_files
2745 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
2746 # Try to create an executable without -o first, disregard a.out.
2747 # It will help us diagnose broken compilers, and finding out an intuition
2748 # of exeext.
2749 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
2750 $as_echo_n "checking for C compiler default output file name... " >&6; }
2751 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2752
2753 # The possible output files:
2754 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2755
2756 ac_rmfiles=
2757 for ac_file in $ac_files
2758 do
2759 case $ac_file in
2760 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2761 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2762 esac
2763 done
2764 rm -f $ac_rmfiles
2765
2766 if { { ac_try="$ac_link_default"
2767 case "(($ac_try" in
2768 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2769 *) ac_try_echo=$ac_try;;
2770 esac
2771 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2772 $as_echo "$ac_try_echo"; } >&5
2773 (eval "$ac_link_default") 2>&5
2774 ac_status=$?
2775 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2776 test $ac_status = 0; }; then :
2777 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2778 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2779 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2780 # so that the user can short-circuit this test for compilers unknown to
2781 # Autoconf.
2782 for ac_file in $ac_files ''
2783 do
2784 test -f "$ac_file" || continue
2785 case $ac_file in
2786 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
2787 ;;
2788 [ab].out )
2789 # We found the default executable, but exeext='' is most
2790 # certainly right.
2791 break;;
2792 *.* )
2793 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2794 then :; else
2795 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2796 fi
2797 # We set ac_cv_exeext here because the later test for it is not
2798 # safe: cross compilers may not add the suffix if given an `-o'
2799 # argument, so we may need to know it at that point already.
2800 # Even if this section looks crufty: it has the advantage of
2801 # actually working.
2802 break;;
2803 * )
2804 break;;
2805 esac
2806 done
2807 test "$ac_cv_exeext" = no && ac_cv_exeext=
2808
2809 else
2810 ac_file=''
2811 fi
2812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
2813 $as_echo "$ac_file" >&6; }
2814 if test -z "$ac_file"; then :
2815 $as_echo "$as_me: failed program was:" >&5
2816 sed 's/^/| /' conftest.$ac_ext >&5
2817
2818 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2819 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2820 { as_fn_set_status 77
2821 as_fn_error "C compiler cannot create executables
2822 See \`config.log' for more details." "$LINENO" 5; }; }
2823 fi
2824 ac_exeext=$ac_cv_exeext
2825
2826 # Check that the compiler produces executables we can run. If not, either
2827 # the compiler is broken, or we cross compile.
2828 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
2829 $as_echo_n "checking whether the C compiler works... " >&6; }
2830 # If not cross compiling, check that we can run a simple program.
2831 if test "$cross_compiling" != yes; then
2832 if { ac_try='./$ac_file'
2833 { { case "(($ac_try" in
2834 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2835 *) ac_try_echo=$ac_try;;
2836 esac
2837 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2838 $as_echo "$ac_try_echo"; } >&5
2839 (eval "$ac_try") 2>&5
2840 ac_status=$?
2841 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2842 test $ac_status = 0; }; }; then
2843 cross_compiling=no
2844 else
2845 if test "$cross_compiling" = maybe; then
2846 cross_compiling=yes
2847 else
2848 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2849 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2850 as_fn_error "cannot run C compiled programs.
2851 If you meant to cross compile, use \`--host'.
2852 See \`config.log' for more details." "$LINENO" 5; }
2853 fi
2854 fi
2855 fi
2856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2857 $as_echo "yes" >&6; }
2858
2859 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
2860 ac_clean_files=$ac_clean_files_save
2861 # Check that the compiler produces executables we can run. If not, either
2862 # the compiler is broken, or we cross compile.
2863 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
2864 $as_echo_n "checking whether we are cross compiling... " >&6; }
2865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
2866 $as_echo "$cross_compiling" >&6; }
2867
2868 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
2869 $as_echo_n "checking for suffix of executables... " >&6; }
2870 if { { ac_try="$ac_link"
2871 case "(($ac_try" in
2872 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2873 *) ac_try_echo=$ac_try;;
2874 esac
2875 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2876 $as_echo "$ac_try_echo"; } >&5
2877 (eval "$ac_link") 2>&5
2878 ac_status=$?
2879 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2880 test $ac_status = 0; }; then :
2881 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2882 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2883 # work properly (i.e., refer to `conftest.exe'), while it won't with
2884 # `rm'.
2885 for ac_file in conftest.exe conftest conftest.*; do
2886 test -f "$ac_file" || continue
2887 case $ac_file in
2888 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2889 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2890 break;;
2891 * ) break;;
2892 esac
2893 done
2894 else
2895 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2896 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2897 as_fn_error "cannot compute suffix of executables: cannot compile and link
2898 See \`config.log' for more details." "$LINENO" 5; }
2899 fi
2900 rm -f conftest$ac_cv_exeext
2901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
2902 $as_echo "$ac_cv_exeext" >&6; }
2903
2904 rm -f conftest.$ac_ext
2905 EXEEXT=$ac_cv_exeext
2906 ac_exeext=$EXEEXT
2907 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
2908 $as_echo_n "checking for suffix of object files... " >&6; }
2909 if test "${ac_cv_objext+set}" = set; then :
2910 $as_echo_n "(cached) " >&6
2911 else
2912 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2913 /* end confdefs.h. */
2914
2915 int
2916 main ()
2917 {
2918
2919 ;
2920 return 0;
2921 }
2922 _ACEOF
2923 rm -f conftest.o conftest.obj
2924 if { { ac_try="$ac_compile"
2925 case "(($ac_try" in
2926 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2927 *) ac_try_echo=$ac_try;;
2928 esac
2929 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2930 $as_echo "$ac_try_echo"; } >&5
2931 (eval "$ac_compile") 2>&5
2932 ac_status=$?
2933 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2934 test $ac_status = 0; }; then :
2935 for ac_file in conftest.o conftest.obj conftest.*; do
2936 test -f "$ac_file" || continue;
2937 case $ac_file in
2938 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
2939 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2940 break;;
2941 esac
2942 done
2943 else
2944 $as_echo "$as_me: failed program was:" >&5
2945 sed 's/^/| /' conftest.$ac_ext >&5
2946
2947 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2948 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2949 as_fn_error "cannot compute suffix of object files: cannot compile
2950 See \`config.log' for more details." "$LINENO" 5; }
2951 fi
2952 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2953 fi
2954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
2955 $as_echo "$ac_cv_objext" >&6; }
2956 OBJEXT=$ac_cv_objext
2957 ac_objext=$OBJEXT
2958 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
2959 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
2960 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
2961 $as_echo_n "(cached) " >&6
2962 else
2963 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2964 /* end confdefs.h. */
2965
2966 int
2967 main ()
2968 {
2969 #ifndef __GNUC__
2970 choke me
2971 #endif
2972
2973 ;
2974 return 0;
2975 }
2976 _ACEOF
2977 if ac_fn_c_try_compile "$LINENO"; then :
2978 ac_compiler_gnu=yes
2979 else
2980 ac_compiler_gnu=no
2981 fi
2982 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2983 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2984
2985 fi
2986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
2987 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
2988 if test $ac_compiler_gnu = yes; then
2989 GCC=yes
2990 else
2991 GCC=
2992 fi
2993 ac_test_CFLAGS=${CFLAGS+set}
2994 ac_save_CFLAGS=$CFLAGS
2995 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
2996 $as_echo_n "checking whether $CC accepts -g... " >&6; }
2997 if test "${ac_cv_prog_cc_g+set}" = set; then :
2998 $as_echo_n "(cached) " >&6
2999 else
3000 ac_save_c_werror_flag=$ac_c_werror_flag
3001 ac_c_werror_flag=yes
3002 ac_cv_prog_cc_g=no
3003 CFLAGS="-g"
3004 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3005 /* end confdefs.h. */
3006
3007 int
3008 main ()
3009 {
3010
3011 ;
3012 return 0;
3013 }
3014 _ACEOF
3015 if ac_fn_c_try_compile "$LINENO"; then :
3016 ac_cv_prog_cc_g=yes
3017 else
3018 CFLAGS=""
3019 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3020 /* end confdefs.h. */
3021
3022 int
3023 main ()
3024 {
3025
3026 ;
3027 return 0;
3028 }
3029 _ACEOF
3030 if ac_fn_c_try_compile "$LINENO"; then :
3031
3032 else
3033 ac_c_werror_flag=$ac_save_c_werror_flag
3034 CFLAGS="-g"
3035 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3036 /* end confdefs.h. */
3037
3038 int
3039 main ()
3040 {
3041
3042 ;
3043 return 0;
3044 }
3045 _ACEOF
3046 if ac_fn_c_try_compile "$LINENO"; then :
3047 ac_cv_prog_cc_g=yes
3048 fi
3049 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
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 ac_c_werror_flag=$ac_save_c_werror_flag
3055 fi
3056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3057 $as_echo "$ac_cv_prog_cc_g" >&6; }
3058 if test "$ac_test_CFLAGS" = set; then
3059 CFLAGS=$ac_save_CFLAGS
3060 elif test $ac_cv_prog_cc_g = yes; then
3061 if test "$GCC" = yes; then
3062 CFLAGS="-g -O2"
3063 else
3064 CFLAGS="-g"
3065 fi
3066 else
3067 if test "$GCC" = yes; then
3068 CFLAGS="-O2"
3069 else
3070 CFLAGS=
3071 fi
3072 fi
3073 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3074 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3075 if test "${ac_cv_prog_cc_c89+set}" = set; then :
3076 $as_echo_n "(cached) " >&6
3077 else
3078 ac_cv_prog_cc_c89=no
3079 ac_save_CC=$CC
3080 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3081 /* end confdefs.h. */
3082 #include <stdarg.h>
3083 #include <stdio.h>
3084 #include <sys/types.h>
3085 #include <sys/stat.h>
3086 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3087 struct buf { int x; };
3088 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3089 static char *e (p, i)
3090 char **p;
3091 int i;
3092 {
3093 return p[i];
3094 }
3095 static char *f (char * (*g) (char **, int), char **p, ...)
3096 {
3097 char *s;
3098 va_list v;
3099 va_start (v,p);
3100 s = g (p, va_arg (v,int));
3101 va_end (v);
3102 return s;
3103 }
3104
3105 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3106 function prototypes and stuff, but not '\xHH' hex character constants.
3107 These don't provoke an error unfortunately, instead are silently treated
3108 as 'x'. The following induces an error, until -std is added to get
3109 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3110 array size at least. It's necessary to write '\x00'==0 to get something
3111 that's true only with -std. */
3112 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3113
3114 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3115 inside strings and character constants. */
3116 #define FOO(x) 'x'
3117 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3118
3119 int test (int i, double x);
3120 struct s1 {int (*f) (int a);};
3121 struct s2 {int (*f) (double a);};
3122 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3123 int argc;
3124 char **argv;
3125 int
3126 main ()
3127 {
3128 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3129 ;
3130 return 0;
3131 }
3132 _ACEOF
3133 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3134 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3135 do
3136 CC="$ac_save_CC $ac_arg"
3137 if ac_fn_c_try_compile "$LINENO"; then :
3138 ac_cv_prog_cc_c89=$ac_arg
3139 fi
3140 rm -f core conftest.err conftest.$ac_objext
3141 test "x$ac_cv_prog_cc_c89" != "xno" && break
3142 done
3143 rm -f conftest.$ac_ext
3144 CC=$ac_save_CC
3145
3146 fi
3147 # AC_CACHE_VAL
3148 case "x$ac_cv_prog_cc_c89" in
3149 x)
3150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3151 $as_echo "none needed" >&6; } ;;
3152 xno)
3153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3154 $as_echo "unsupported" >&6; } ;;
3155 *)
3156 CC="$CC $ac_cv_prog_cc_c89"
3157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3158 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3159 esac
3160 if test "x$ac_cv_prog_cc_c89" != xno; then :
3161
3162 fi
3163
3164 ac_ext=c
3165 ac_cpp='$CPP $CPPFLAGS'
3166 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3167 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3168 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3169
3170
3171 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing strerror" >&5
3172 $as_echo_n "checking for library containing strerror... " >&6; }
3173 if test "${ac_cv_search_strerror+set}" = set; then :
3174 $as_echo_n "(cached) " >&6
3175 else
3176 ac_func_search_save_LIBS=$LIBS
3177 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3178 /* end confdefs.h. */
3179
3180 /* Override any GCC internal prototype to avoid an error.
3181 Use char because int might match the return type of a GCC
3182 builtin and then its argument prototype would still apply. */
3183 #ifdef __cplusplus
3184 extern "C"
3185 #endif
3186 char strerror ();
3187 int
3188 main ()
3189 {
3190 return strerror ();
3191 ;
3192 return 0;
3193 }
3194 _ACEOF
3195 for ac_lib in '' cposix; do
3196 if test -z "$ac_lib"; then
3197 ac_res="none required"
3198 else
3199 ac_res=-l$ac_lib
3200 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
3201 fi
3202 if ac_fn_c_try_link "$LINENO"; then :
3203 ac_cv_search_strerror=$ac_res
3204 fi
3205 rm -f core conftest.err conftest.$ac_objext \
3206 conftest$ac_exeext
3207 if test "${ac_cv_search_strerror+set}" = set; then :
3208 break
3209 fi
3210 done
3211 if test "${ac_cv_search_strerror+set}" = set; then :
3212
3213 else
3214 ac_cv_search_strerror=no
3215 fi
3216 rm conftest.$ac_ext
3217 LIBS=$ac_func_search_save_LIBS
3218 fi
3219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_strerror" >&5
3220 $as_echo "$ac_cv_search_strerror" >&6; }
3221 ac_res=$ac_cv_search_strerror
3222 if test "$ac_res" != no; then :
3223 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
3224
3225 fi
3226
3227
3228 am__api_version='1.11'
3229
3230 # Find a good install program. We prefer a C program (faster),
3231 # so one script is as good as another. But avoid the broken or
3232 # incompatible versions:
3233 # SysV /etc/install, /usr/sbin/install
3234 # SunOS /usr/etc/install
3235 # IRIX /sbin/install
3236 # AIX /bin/install
3237 # AmigaOS /C/install, which installs bootblocks on floppy discs
3238 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3239 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3240 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3241 # OS/2's system install, which has a completely different semantic
3242 # ./install, which can be erroneously created by make from ./install.sh.
3243 # Reject install programs that cannot install multiple files.
3244 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
3245 $as_echo_n "checking for a BSD-compatible install... " >&6; }
3246 if test -z "$INSTALL"; then
3247 if test "${ac_cv_path_install+set}" = set; then :
3248 $as_echo_n "(cached) " >&6
3249 else
3250 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3251 for as_dir in $PATH
3252 do
3253 IFS=$as_save_IFS
3254 test -z "$as_dir" && as_dir=.
3255 # Account for people who put trailing slashes in PATH elements.
3256 case $as_dir/ in #((
3257 ./ | .// | /[cC]/* | \
3258 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3259 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
3260 /usr/ucb/* ) ;;
3261 *)
3262 # OSF1 and SCO ODT 3.0 have their own names for install.
3263 # Don't use installbsd from OSF since it installs stuff as root
3264 # by default.
3265 for ac_prog in ginstall scoinst install; do
3266 for ac_exec_ext in '' $ac_executable_extensions; do
3267 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
3268 if test $ac_prog = install &&
3269 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3270 # AIX install. It has an incompatible calling convention.
3271 :
3272 elif test $ac_prog = install &&
3273 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3274 # program-specific install script used by HP pwplus--don't use.
3275 :
3276 else
3277 rm -rf conftest.one conftest.two conftest.dir
3278 echo one > conftest.one
3279 echo two > conftest.two
3280 mkdir conftest.dir
3281 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
3282 test -s conftest.one && test -s conftest.two &&
3283 test -s conftest.dir/conftest.one &&
3284 test -s conftest.dir/conftest.two
3285 then
3286 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3287 break 3
3288 fi
3289 fi
3290 fi
3291 done
3292 done
3293 ;;
3294 esac
3295
3296 done
3297 IFS=$as_save_IFS
3298
3299 rm -rf conftest.one conftest.two conftest.dir
3300
3301 fi
3302 if test "${ac_cv_path_install+set}" = set; then
3303 INSTALL=$ac_cv_path_install
3304 else
3305 # As a last resort, use the slow shell script. Don't cache a
3306 # value for INSTALL within a source directory, because that will
3307 # break other packages using the cache if that directory is
3308 # removed, or if the value is a relative name.
3309 INSTALL=$ac_install_sh
3310 fi
3311 fi
3312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
3313 $as_echo "$INSTALL" >&6; }
3314
3315 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3316 # It thinks the first close brace ends the variable substitution.
3317 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3318
3319 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3320
3321 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3322
3323 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
3324 $as_echo_n "checking whether build environment is sane... " >&6; }
3325 # Just in case
3326 sleep 1
3327 echo timestamp > conftest.file
3328 # Reject unsafe characters in $srcdir or the absolute working directory
3329 # name. Accept space and tab only in the latter.
3330 am_lf='
3331 '
3332 case `pwd` in
3333 *[\\\"\#\$\&\'\`$am_lf]*)
3334 as_fn_error "unsafe absolute working directory name" "$LINENO" 5;;
3335 esac
3336 case $srcdir in
3337 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
3338 as_fn_error "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
3339 esac
3340
3341 # Do `set' in a subshell so we don't clobber the current shell's
3342 # arguments. Must try -L first in case configure is actually a
3343 # symlink; some systems play weird games with the mod time of symlinks
3344 # (eg FreeBSD returns the mod time of the symlink's containing
3345 # directory).
3346 if (
3347 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
3348 if test "$*" = "X"; then
3349 # -L didn't work.
3350 set X `ls -t "$srcdir/configure" conftest.file`
3351 fi
3352 rm -f conftest.file
3353 if test "$*" != "X $srcdir/configure conftest.file" \
3354 && test "$*" != "X conftest.file $srcdir/configure"; then
3355
3356 # If neither matched, then we have a broken ls. This can happen
3357 # if, for instance, CONFIG_SHELL is bash and it inherits a
3358 # broken ls alias from the environment. This has actually
3359 # happened. Such a system could not be considered "sane".
3360 as_fn_error "ls -t appears to fail. Make sure there is not a broken
3361 alias in your environment" "$LINENO" 5
3362 fi
3363
3364 test "$2" = conftest.file
3365 )
3366 then
3367 # Ok.
3368 :
3369 else
3370 as_fn_error "newly created file is older than distributed files!
3371 Check your system clock" "$LINENO" 5
3372 fi
3373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3374 $as_echo "yes" >&6; }
3375 test "$program_prefix" != NONE &&
3376 program_transform_name="s&^&$program_prefix&;$program_transform_name"
3377 # Use a double $ so make ignores it.
3378 test "$program_suffix" != NONE &&
3379 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3380 # Double any \ or $.
3381 # By default was `s,x,x', remove it if useless.
3382 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3383 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
3384
3385 # expand $ac_aux_dir to an absolute path
3386 am_aux_dir=`cd $ac_aux_dir && pwd`
3387
3388 if test x"${MISSING+set}" != xset; then
3389 case $am_aux_dir in
3390 *\ * | *\ *)
3391 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
3392 *)
3393 MISSING="\${SHELL} $am_aux_dir/missing" ;;
3394 esac
3395 fi
3396 # Use eval to expand $SHELL
3397 if eval "$MISSING --run true"; then
3398 am_missing_run="$MISSING --run "
3399 else
3400 am_missing_run=
3401 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
3402 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
3403 fi
3404
3405 if test x"${install_sh}" != xset; then
3406 case $am_aux_dir in
3407 *\ * | *\ *)
3408 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
3409 *)
3410 install_sh="\${SHELL} $am_aux_dir/install-sh"
3411 esac
3412 fi
3413
3414 # Installed binaries are usually stripped using `strip' when the user
3415 # run `make install-strip'. However `strip' might not be the right
3416 # tool to use in cross-compilation environments, therefore Automake
3417 # will honor the `STRIP' environment variable to overrule this program.
3418 if test "$cross_compiling" != no; then
3419 if test -n "$ac_tool_prefix"; then
3420 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3421 set dummy ${ac_tool_prefix}strip; ac_word=$2
3422 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3423 $as_echo_n "checking for $ac_word... " >&6; }
3424 if test "${ac_cv_prog_STRIP+set}" = set; then :
3425 $as_echo_n "(cached) " >&6
3426 else
3427 if test -n "$STRIP"; then
3428 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3429 else
3430 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3431 for as_dir in $PATH
3432 do
3433 IFS=$as_save_IFS
3434 test -z "$as_dir" && as_dir=.
3435 for ac_exec_ext in '' $ac_executable_extensions; do
3436 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3437 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3438 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3439 break 2
3440 fi
3441 done
3442 done
3443 IFS=$as_save_IFS
3444
3445 fi
3446 fi
3447 STRIP=$ac_cv_prog_STRIP
3448 if test -n "$STRIP"; then
3449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3450 $as_echo "$STRIP" >&6; }
3451 else
3452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3453 $as_echo "no" >&6; }
3454 fi
3455
3456
3457 fi
3458 if test -z "$ac_cv_prog_STRIP"; then
3459 ac_ct_STRIP=$STRIP
3460 # Extract the first word of "strip", so it can be a program name with args.
3461 set dummy strip; ac_word=$2
3462 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3463 $as_echo_n "checking for $ac_word... " >&6; }
3464 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
3465 $as_echo_n "(cached) " >&6
3466 else
3467 if test -n "$ac_ct_STRIP"; then
3468 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3469 else
3470 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3471 for as_dir in $PATH
3472 do
3473 IFS=$as_save_IFS
3474 test -z "$as_dir" && as_dir=.
3475 for ac_exec_ext in '' $ac_executable_extensions; do
3476 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3477 ac_cv_prog_ac_ct_STRIP="strip"
3478 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3479 break 2
3480 fi
3481 done
3482 done
3483 IFS=$as_save_IFS
3484
3485 fi
3486 fi
3487 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3488 if test -n "$ac_ct_STRIP"; then
3489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3490 $as_echo "$ac_ct_STRIP" >&6; }
3491 else
3492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3493 $as_echo "no" >&6; }
3494 fi
3495
3496 if test "x$ac_ct_STRIP" = x; then
3497 STRIP=":"
3498 else
3499 case $cross_compiling:$ac_tool_warned in
3500 yes:)
3501 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3502 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3503 ac_tool_warned=yes ;;
3504 esac
3505 STRIP=$ac_ct_STRIP
3506 fi
3507 else
3508 STRIP="$ac_cv_prog_STRIP"
3509 fi
3510
3511 fi
3512 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3513
3514 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
3515 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3516 if test -z "$MKDIR_P"; then
3517 if test "${ac_cv_path_mkdir+set}" = set; then :
3518 $as_echo_n "(cached) " >&6
3519 else
3520 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3521 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3522 do
3523 IFS=$as_save_IFS
3524 test -z "$as_dir" && as_dir=.
3525 for ac_prog in mkdir gmkdir; do
3526 for ac_exec_ext in '' $ac_executable_extensions; do
3527 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
3528 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3529 'mkdir (GNU coreutils) '* | \
3530 'mkdir (coreutils) '* | \
3531 'mkdir (fileutils) '4.1*)
3532 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
3533 break 3;;
3534 esac
3535 done
3536 done
3537 done
3538 IFS=$as_save_IFS
3539
3540 fi
3541
3542 if test "${ac_cv_path_mkdir+set}" = set; then
3543 MKDIR_P="$ac_cv_path_mkdir -p"
3544 else
3545 # As a last resort, use the slow shell script. Don't cache a
3546 # value for MKDIR_P within a source directory, because that will
3547 # break other packages using the cache if that directory is
3548 # removed, or if the value is a relative name.
3549 test -d ./--version && rmdir ./--version
3550 MKDIR_P="$ac_install_sh -d"
3551 fi
3552 fi
3553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3554 $as_echo "$MKDIR_P" >&6; }
3555
3556 mkdir_p="$MKDIR_P"
3557 case $mkdir_p in
3558 [\\/$]* | ?:[\\/]*) ;;
3559 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
3560 esac
3561
3562 for ac_prog in gawk mawk nawk awk
3563 do
3564 # Extract the first word of "$ac_prog", so it can be a program name with args.
3565 set dummy $ac_prog; ac_word=$2
3566 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3567 $as_echo_n "checking for $ac_word... " >&6; }
3568 if test "${ac_cv_prog_AWK+set}" = set; then :
3569 $as_echo_n "(cached) " >&6
3570 else
3571 if test -n "$AWK"; then
3572 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3573 else
3574 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3575 for as_dir in $PATH
3576 do
3577 IFS=$as_save_IFS
3578 test -z "$as_dir" && as_dir=.
3579 for ac_exec_ext in '' $ac_executable_extensions; do
3580 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3581 ac_cv_prog_AWK="$ac_prog"
3582 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3583 break 2
3584 fi
3585 done
3586 done
3587 IFS=$as_save_IFS
3588
3589 fi
3590 fi
3591 AWK=$ac_cv_prog_AWK
3592 if test -n "$AWK"; then
3593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3594 $as_echo "$AWK" >&6; }
3595 else
3596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3597 $as_echo "no" >&6; }
3598 fi
3599
3600
3601 test -n "$AWK" && break
3602 done
3603
3604 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3605 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3606 set x ${MAKE-make}
3607 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3608 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
3609 $as_echo_n "(cached) " >&6
3610 else
3611 cat >conftest.make <<\_ACEOF
3612 SHELL = /bin/sh
3613 all:
3614 @echo '@@@%%%=$(MAKE)=@@@%%%'
3615 _ACEOF
3616 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3617 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3618 *@@@%%%=?*=@@@%%%*)
3619 eval ac_cv_prog_make_${ac_make}_set=yes;;
3620 *)
3621 eval ac_cv_prog_make_${ac_make}_set=no;;
3622 esac
3623 rm -f conftest.make
3624 fi
3625 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3627 $as_echo "yes" >&6; }
3628 SET_MAKE=
3629 else
3630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3631 $as_echo "no" >&6; }
3632 SET_MAKE="MAKE=${MAKE-make}"
3633 fi
3634
3635 rm -rf .tst 2>/dev/null
3636 mkdir .tst 2>/dev/null
3637 if test -d .tst; then
3638 am__leading_dot=.
3639 else
3640 am__leading_dot=_
3641 fi
3642 rmdir .tst 2>/dev/null
3643
3644 DEPDIR="${am__leading_dot}deps"
3645
3646 ac_config_commands="$ac_config_commands depfiles"
3647
3648
3649 am_make=${MAKE-make}
3650 cat > confinc << 'END'
3651 am__doit:
3652 @echo this is the am__doit target
3653 .PHONY: am__doit
3654 END
3655 # If we don't find an include directive, just comment out the code.
3656 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3657 $as_echo_n "checking for style of include used by $am_make... " >&6; }
3658 am__include="#"
3659 am__quote=
3660 _am_result=none
3661 # First try GNU make style include.
3662 echo "include confinc" > confmf
3663 # Ignore all kinds of additional output from `make'.
3664 case `$am_make -s -f confmf 2> /dev/null` in #(
3665 *the\ am__doit\ target*)
3666 am__include=include
3667 am__quote=
3668 _am_result=GNU
3669 ;;
3670 esac
3671 # Now try BSD make style include.
3672 if test "$am__include" = "#"; then
3673 echo '.include "confinc"' > confmf
3674 case `$am_make -s -f confmf 2> /dev/null` in #(
3675 *the\ am__doit\ target*)
3676 am__include=.include
3677 am__quote="\""
3678 _am_result=BSD
3679 ;;
3680 esac
3681 fi
3682
3683
3684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3685 $as_echo "$_am_result" >&6; }
3686 rm -f confinc confmf
3687
3688 # Check whether --enable-dependency-tracking was given.
3689 if test "${enable_dependency_tracking+set}" = set; then :
3690 enableval=$enable_dependency_tracking;
3691 fi
3692
3693 if test "x$enable_dependency_tracking" != xno; then
3694 am_depcomp="$ac_aux_dir/depcomp"
3695 AMDEPBACKSLASH='\'
3696 fi
3697 if test "x$enable_dependency_tracking" != xno; then
3698 AMDEP_TRUE=
3699 AMDEP_FALSE='#'
3700 else
3701 AMDEP_TRUE='#'
3702 AMDEP_FALSE=
3703 fi
3704
3705
3706 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3707 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3708 # is not polluted with repeated "-I."
3709 am__isrc=' -I$(srcdir)'
3710 # test to see if srcdir already configured
3711 if test -f $srcdir/config.status; then
3712 as_fn_error "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3713 fi
3714 fi
3715
3716 # test whether we have cygpath
3717 if test -z "$CYGPATH_W"; then
3718 if (cygpath --version) >/dev/null 2>/dev/null; then
3719 CYGPATH_W='cygpath -w'
3720 else
3721 CYGPATH_W=echo
3722 fi
3723 fi
3724
3725
3726 # Define the identity of the package.
3727 PACKAGE='gas'
3728 VERSION='2.25.51'
3729
3730
3731 cat >>confdefs.h <<_ACEOF
3732 #define PACKAGE "$PACKAGE"
3733 _ACEOF
3734
3735
3736 cat >>confdefs.h <<_ACEOF
3737 #define VERSION "$VERSION"
3738 _ACEOF
3739
3740 # Some tools Automake needs.
3741
3742 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3743
3744
3745 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3746
3747
3748 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3749
3750
3751 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3752
3753
3754 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3755
3756 # We need awk for the "check" target. The system "awk" is bad on
3757 # some platforms.
3758 # Always define AMTAR for backward compatibility.
3759
3760 AMTAR=${AMTAR-"${am_missing_run}tar"}
3761
3762 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
3763
3764
3765
3766
3767 depcc="$CC" am_compiler_list=
3768
3769 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3770 $as_echo_n "checking dependency style of $depcc... " >&6; }
3771 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
3772 $as_echo_n "(cached) " >&6
3773 else
3774 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3775 # We make a subdir and do the tests there. Otherwise we can end up
3776 # making bogus files that we don't know about and never remove. For
3777 # instance it was reported that on HP-UX the gcc test will end up
3778 # making a dummy file named `D' -- because `-MD' means `put the output
3779 # in D'.
3780 mkdir conftest.dir
3781 # Copy depcomp to subdir because otherwise we won't find it if we're
3782 # using a relative directory.
3783 cp "$am_depcomp" conftest.dir
3784 cd conftest.dir
3785 # We will build objects and dependencies in a subdirectory because
3786 # it helps to detect inapplicable dependency modes. For instance
3787 # both Tru64's cc and ICC support -MD to output dependencies as a
3788 # side effect of compilation, but ICC will put the dependencies in
3789 # the current directory while Tru64 will put them in the object
3790 # directory.
3791 mkdir sub
3792
3793 am_cv_CC_dependencies_compiler_type=none
3794 if test "$am_compiler_list" = ""; then
3795 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3796 fi
3797 am__universal=false
3798 case " $depcc " in #(
3799 *\ -arch\ *\ -arch\ *) am__universal=true ;;
3800 esac
3801
3802 for depmode in $am_compiler_list; do
3803 # Setup a source with many dependencies, because some compilers
3804 # like to wrap large dependency lists on column 80 (with \), and
3805 # we should not choose a depcomp mode which is confused by this.
3806 #
3807 # We need to recreate these files for each test, as the compiler may
3808 # overwrite some of them when testing with obscure command lines.
3809 # This happens at least with the AIX C compiler.
3810 : > sub/conftest.c
3811 for i in 1 2 3 4 5 6; do
3812 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3813 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3814 # Solaris 8's {/usr,}/bin/sh.
3815 touch sub/conftst$i.h
3816 done
3817 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3818
3819 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3820 # mode. It turns out that the SunPro C++ compiler does not properly
3821 # handle `-M -o', and we need to detect this. Also, some Intel
3822 # versions had trouble with output in subdirs
3823 am__obj=sub/conftest.${OBJEXT-o}
3824 am__minus_obj="-o $am__obj"
3825 case $depmode in
3826 gcc)
3827 # This depmode causes a compiler race in universal mode.
3828 test "$am__universal" = false || continue
3829 ;;
3830 nosideeffect)
3831 # after this tag, mechanisms are not by side-effect, so they'll
3832 # only be used when explicitly requested
3833 if test "x$enable_dependency_tracking" = xyes; then
3834 continue
3835 else
3836 break
3837 fi
3838 ;;
3839 msvisualcpp | msvcmsys)
3840 # This compiler won't grok `-c -o', but also, the minuso test has
3841 # not run yet. These depmodes are late enough in the game, and
3842 # so weak that their functioning should not be impacted.
3843 am__obj=conftest.${OBJEXT-o}
3844 am__minus_obj=
3845 ;;
3846 none) break ;;
3847 esac
3848 if depmode=$depmode \
3849 source=sub/conftest.c object=$am__obj \
3850 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3851 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
3852 >/dev/null 2>conftest.err &&
3853 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3854 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3855 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
3856 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3857 # icc doesn't choke on unknown options, it will just issue warnings
3858 # or remarks (even with -Werror). So we grep stderr for any message
3859 # that says an option was ignored or not supported.
3860 # When given -MP, icc 7.0 and 7.1 complain thusly:
3861 # icc: Command line warning: ignoring option '-M'; no argument required
3862 # The diagnosis changed in icc 8.0:
3863 # icc: Command line remark: option '-MP' not supported
3864 if (grep 'ignoring option' conftest.err ||
3865 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3866 am_cv_CC_dependencies_compiler_type=$depmode
3867 break
3868 fi
3869 fi
3870 done
3871
3872 cd ..
3873 rm -rf conftest.dir
3874 else
3875 am_cv_CC_dependencies_compiler_type=none
3876 fi
3877
3878 fi
3879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
3880 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
3881 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3882
3883 if
3884 test "x$enable_dependency_tracking" != xno \
3885 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3886 am__fastdepCC_TRUE=
3887 am__fastdepCC_FALSE='#'
3888 else
3889 am__fastdepCC_TRUE='#'
3890 am__fastdepCC_FALSE=
3891 fi
3892
3893
3894
3895
3896 ac_ext=c
3897 ac_cpp='$CPP $CPPFLAGS'
3898 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3899 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3900 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3901 if test -n "$ac_tool_prefix"; then
3902 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3903 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3904 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3905 $as_echo_n "checking for $ac_word... " >&6; }
3906 if test "${ac_cv_prog_CC+set}" = set; then :
3907 $as_echo_n "(cached) " >&6
3908 else
3909 if test -n "$CC"; then
3910 ac_cv_prog_CC="$CC" # Let the user override the test.
3911 else
3912 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3913 for as_dir in $PATH
3914 do
3915 IFS=$as_save_IFS
3916 test -z "$as_dir" && as_dir=.
3917 for ac_exec_ext in '' $ac_executable_extensions; do
3918 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3919 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3920 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3921 break 2
3922 fi
3923 done
3924 done
3925 IFS=$as_save_IFS
3926
3927 fi
3928 fi
3929 CC=$ac_cv_prog_CC
3930 if test -n "$CC"; then
3931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3932 $as_echo "$CC" >&6; }
3933 else
3934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3935 $as_echo "no" >&6; }
3936 fi
3937
3938
3939 fi
3940 if test -z "$ac_cv_prog_CC"; then
3941 ac_ct_CC=$CC
3942 # Extract the first word of "gcc", so it can be a program name with args.
3943 set dummy gcc; ac_word=$2
3944 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3945 $as_echo_n "checking for $ac_word... " >&6; }
3946 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3947 $as_echo_n "(cached) " >&6
3948 else
3949 if test -n "$ac_ct_CC"; then
3950 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3951 else
3952 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3953 for as_dir in $PATH
3954 do
3955 IFS=$as_save_IFS
3956 test -z "$as_dir" && as_dir=.
3957 for ac_exec_ext in '' $ac_executable_extensions; do
3958 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3959 ac_cv_prog_ac_ct_CC="gcc"
3960 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3961 break 2
3962 fi
3963 done
3964 done
3965 IFS=$as_save_IFS
3966
3967 fi
3968 fi
3969 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3970 if test -n "$ac_ct_CC"; then
3971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3972 $as_echo "$ac_ct_CC" >&6; }
3973 else
3974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3975 $as_echo "no" >&6; }
3976 fi
3977
3978 if test "x$ac_ct_CC" = x; then
3979 CC=""
3980 else
3981 case $cross_compiling:$ac_tool_warned in
3982 yes:)
3983 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3984 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3985 ac_tool_warned=yes ;;
3986 esac
3987 CC=$ac_ct_CC
3988 fi
3989 else
3990 CC="$ac_cv_prog_CC"
3991 fi
3992
3993 if test -z "$CC"; then
3994 if test -n "$ac_tool_prefix"; then
3995 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3996 set dummy ${ac_tool_prefix}cc; ac_word=$2
3997 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3998 $as_echo_n "checking for $ac_word... " >&6; }
3999 if test "${ac_cv_prog_CC+set}" = set; then :
4000 $as_echo_n "(cached) " >&6
4001 else
4002 if test -n "$CC"; then
4003 ac_cv_prog_CC="$CC" # Let the user override the test.
4004 else
4005 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4006 for as_dir in $PATH
4007 do
4008 IFS=$as_save_IFS
4009 test -z "$as_dir" && as_dir=.
4010 for ac_exec_ext in '' $ac_executable_extensions; do
4011 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4012 ac_cv_prog_CC="${ac_tool_prefix}cc"
4013 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4014 break 2
4015 fi
4016 done
4017 done
4018 IFS=$as_save_IFS
4019
4020 fi
4021 fi
4022 CC=$ac_cv_prog_CC
4023 if test -n "$CC"; then
4024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4025 $as_echo "$CC" >&6; }
4026 else
4027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4028 $as_echo "no" >&6; }
4029 fi
4030
4031
4032 fi
4033 fi
4034 if test -z "$CC"; then
4035 # Extract the first word of "cc", so it can be a program name with args.
4036 set dummy cc; ac_word=$2
4037 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4038 $as_echo_n "checking for $ac_word... " >&6; }
4039 if test "${ac_cv_prog_CC+set}" = set; then :
4040 $as_echo_n "(cached) " >&6
4041 else
4042 if test -n "$CC"; then
4043 ac_cv_prog_CC="$CC" # Let the user override the test.
4044 else
4045 ac_prog_rejected=no
4046 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4047 for as_dir in $PATH
4048 do
4049 IFS=$as_save_IFS
4050 test -z "$as_dir" && as_dir=.
4051 for ac_exec_ext in '' $ac_executable_extensions; do
4052 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4053 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4054 ac_prog_rejected=yes
4055 continue
4056 fi
4057 ac_cv_prog_CC="cc"
4058 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4059 break 2
4060 fi
4061 done
4062 done
4063 IFS=$as_save_IFS
4064
4065 if test $ac_prog_rejected = yes; then
4066 # We found a bogon in the path, so make sure we never use it.
4067 set dummy $ac_cv_prog_CC
4068 shift
4069 if test $# != 0; then
4070 # We chose a different compiler from the bogus one.
4071 # However, it has the same basename, so the bogon will be chosen
4072 # first if we set CC to just the basename; use the full file name.
4073 shift
4074 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4075 fi
4076 fi
4077 fi
4078 fi
4079 CC=$ac_cv_prog_CC
4080 if test -n "$CC"; then
4081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4082 $as_echo "$CC" >&6; }
4083 else
4084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4085 $as_echo "no" >&6; }
4086 fi
4087
4088
4089 fi
4090 if test -z "$CC"; then
4091 if test -n "$ac_tool_prefix"; then
4092 for ac_prog in cl.exe
4093 do
4094 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4095 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4096 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4097 $as_echo_n "checking for $ac_word... " >&6; }
4098 if test "${ac_cv_prog_CC+set}" = set; then :
4099 $as_echo_n "(cached) " >&6
4100 else
4101 if test -n "$CC"; then
4102 ac_cv_prog_CC="$CC" # Let the user override the test.
4103 else
4104 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4105 for as_dir in $PATH
4106 do
4107 IFS=$as_save_IFS
4108 test -z "$as_dir" && as_dir=.
4109 for ac_exec_ext in '' $ac_executable_extensions; do
4110 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4111 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4112 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4113 break 2
4114 fi
4115 done
4116 done
4117 IFS=$as_save_IFS
4118
4119 fi
4120 fi
4121 CC=$ac_cv_prog_CC
4122 if test -n "$CC"; then
4123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4124 $as_echo "$CC" >&6; }
4125 else
4126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4127 $as_echo "no" >&6; }
4128 fi
4129
4130
4131 test -n "$CC" && break
4132 done
4133 fi
4134 if test -z "$CC"; then
4135 ac_ct_CC=$CC
4136 for ac_prog in cl.exe
4137 do
4138 # Extract the first word of "$ac_prog", so it can be a program name with args.
4139 set dummy $ac_prog; ac_word=$2
4140 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4141 $as_echo_n "checking for $ac_word... " >&6; }
4142 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
4143 $as_echo_n "(cached) " >&6
4144 else
4145 if test -n "$ac_ct_CC"; then
4146 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4147 else
4148 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4149 for as_dir in $PATH
4150 do
4151 IFS=$as_save_IFS
4152 test -z "$as_dir" && as_dir=.
4153 for ac_exec_ext in '' $ac_executable_extensions; do
4154 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4155 ac_cv_prog_ac_ct_CC="$ac_prog"
4156 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4157 break 2
4158 fi
4159 done
4160 done
4161 IFS=$as_save_IFS
4162
4163 fi
4164 fi
4165 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4166 if test -n "$ac_ct_CC"; then
4167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4168 $as_echo "$ac_ct_CC" >&6; }
4169 else
4170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4171 $as_echo "no" >&6; }
4172 fi
4173
4174
4175 test -n "$ac_ct_CC" && break
4176 done
4177
4178 if test "x$ac_ct_CC" = x; then
4179 CC=""
4180 else
4181 case $cross_compiling:$ac_tool_warned in
4182 yes:)
4183 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4184 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4185 ac_tool_warned=yes ;;
4186 esac
4187 CC=$ac_ct_CC
4188 fi
4189 fi
4190
4191 fi
4192
4193
4194 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4195 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4196 as_fn_error "no acceptable C compiler found in \$PATH
4197 See \`config.log' for more details." "$LINENO" 5; }
4198
4199 # Provide some information about the compiler.
4200 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4201 set X $ac_compile
4202 ac_compiler=$2
4203 for ac_option in --version -v -V -qversion; do
4204 { { ac_try="$ac_compiler $ac_option >&5"
4205 case "(($ac_try" in
4206 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4207 *) ac_try_echo=$ac_try;;
4208 esac
4209 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4210 $as_echo "$ac_try_echo"; } >&5
4211 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4212 ac_status=$?
4213 if test -s conftest.err; then
4214 sed '10a\
4215 ... rest of stderr output deleted ...
4216 10q' conftest.err >conftest.er1
4217 cat conftest.er1 >&5
4218 rm -f conftest.er1 conftest.err
4219 fi
4220 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4221 test $ac_status = 0; }
4222 done
4223
4224 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4225 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4226 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
4227 $as_echo_n "(cached) " >&6
4228 else
4229 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4230 /* end confdefs.h. */
4231
4232 int
4233 main ()
4234 {
4235 #ifndef __GNUC__
4236 choke me
4237 #endif
4238
4239 ;
4240 return 0;
4241 }
4242 _ACEOF
4243 if ac_fn_c_try_compile "$LINENO"; then :
4244 ac_compiler_gnu=yes
4245 else
4246 ac_compiler_gnu=no
4247 fi
4248 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4249 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4250
4251 fi
4252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4253 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4254 if test $ac_compiler_gnu = yes; then
4255 GCC=yes
4256 else
4257 GCC=
4258 fi
4259 ac_test_CFLAGS=${CFLAGS+set}
4260 ac_save_CFLAGS=$CFLAGS
4261 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4262 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4263 if test "${ac_cv_prog_cc_g+set}" = set; then :
4264 $as_echo_n "(cached) " >&6
4265 else
4266 ac_save_c_werror_flag=$ac_c_werror_flag
4267 ac_c_werror_flag=yes
4268 ac_cv_prog_cc_g=no
4269 CFLAGS="-g"
4270 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4271 /* end confdefs.h. */
4272
4273 int
4274 main ()
4275 {
4276
4277 ;
4278 return 0;
4279 }
4280 _ACEOF
4281 if ac_fn_c_try_compile "$LINENO"; then :
4282 ac_cv_prog_cc_g=yes
4283 else
4284 CFLAGS=""
4285 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4286 /* end confdefs.h. */
4287
4288 int
4289 main ()
4290 {
4291
4292 ;
4293 return 0;
4294 }
4295 _ACEOF
4296 if ac_fn_c_try_compile "$LINENO"; then :
4297
4298 else
4299 ac_c_werror_flag=$ac_save_c_werror_flag
4300 CFLAGS="-g"
4301 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4302 /* end confdefs.h. */
4303
4304 int
4305 main ()
4306 {
4307
4308 ;
4309 return 0;
4310 }
4311 _ACEOF
4312 if ac_fn_c_try_compile "$LINENO"; then :
4313 ac_cv_prog_cc_g=yes
4314 fi
4315 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
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 ac_c_werror_flag=$ac_save_c_werror_flag
4321 fi
4322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4323 $as_echo "$ac_cv_prog_cc_g" >&6; }
4324 if test "$ac_test_CFLAGS" = set; then
4325 CFLAGS=$ac_save_CFLAGS
4326 elif test $ac_cv_prog_cc_g = yes; then
4327 if test "$GCC" = yes; then
4328 CFLAGS="-g -O2"
4329 else
4330 CFLAGS="-g"
4331 fi
4332 else
4333 if test "$GCC" = yes; then
4334 CFLAGS="-O2"
4335 else
4336 CFLAGS=
4337 fi
4338 fi
4339 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4340 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4341 if test "${ac_cv_prog_cc_c89+set}" = set; then :
4342 $as_echo_n "(cached) " >&6
4343 else
4344 ac_cv_prog_cc_c89=no
4345 ac_save_CC=$CC
4346 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4347 /* end confdefs.h. */
4348 #include <stdarg.h>
4349 #include <stdio.h>
4350 #include <sys/types.h>
4351 #include <sys/stat.h>
4352 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4353 struct buf { int x; };
4354 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4355 static char *e (p, i)
4356 char **p;
4357 int i;
4358 {
4359 return p[i];
4360 }
4361 static char *f (char * (*g) (char **, int), char **p, ...)
4362 {
4363 char *s;
4364 va_list v;
4365 va_start (v,p);
4366 s = g (p, va_arg (v,int));
4367 va_end (v);
4368 return s;
4369 }
4370
4371 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4372 function prototypes and stuff, but not '\xHH' hex character constants.
4373 These don't provoke an error unfortunately, instead are silently treated
4374 as 'x'. The following induces an error, until -std is added to get
4375 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4376 array size at least. It's necessary to write '\x00'==0 to get something
4377 that's true only with -std. */
4378 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4379
4380 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4381 inside strings and character constants. */
4382 #define FOO(x) 'x'
4383 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4384
4385 int test (int i, double x);
4386 struct s1 {int (*f) (int a);};
4387 struct s2 {int (*f) (double a);};
4388 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4389 int argc;
4390 char **argv;
4391 int
4392 main ()
4393 {
4394 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4395 ;
4396 return 0;
4397 }
4398 _ACEOF
4399 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4400 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4401 do
4402 CC="$ac_save_CC $ac_arg"
4403 if ac_fn_c_try_compile "$LINENO"; then :
4404 ac_cv_prog_cc_c89=$ac_arg
4405 fi
4406 rm -f core conftest.err conftest.$ac_objext
4407 test "x$ac_cv_prog_cc_c89" != "xno" && break
4408 done
4409 rm -f conftest.$ac_ext
4410 CC=$ac_save_CC
4411
4412 fi
4413 # AC_CACHE_VAL
4414 case "x$ac_cv_prog_cc_c89" in
4415 x)
4416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4417 $as_echo "none needed" >&6; } ;;
4418 xno)
4419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4420 $as_echo "unsupported" >&6; } ;;
4421 *)
4422 CC="$CC $ac_cv_prog_cc_c89"
4423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4424 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4425 esac
4426 if test "x$ac_cv_prog_cc_c89" != xno; then :
4427
4428 fi
4429
4430 ac_ext=c
4431 ac_cpp='$CPP $CPPFLAGS'
4432 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4433 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4434 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4435
4436 ac_ext=c
4437 ac_cpp='$CPP $CPPFLAGS'
4438 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4439 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4440 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4441 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4442 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4443 # On Suns, sometimes $CPP names a directory.
4444 if test -n "$CPP" && test -d "$CPP"; then
4445 CPP=
4446 fi
4447 if test -z "$CPP"; then
4448 if test "${ac_cv_prog_CPP+set}" = set; then :
4449 $as_echo_n "(cached) " >&6
4450 else
4451 # Double quotes because CPP needs to be expanded
4452 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4453 do
4454 ac_preproc_ok=false
4455 for ac_c_preproc_warn_flag in '' yes
4456 do
4457 # Use a header file that comes with gcc, so configuring glibc
4458 # with a fresh cross-compiler works.
4459 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4460 # <limits.h> exists even on freestanding compilers.
4461 # On the NeXT, cc -E runs the code through the compiler's parser,
4462 # not just through cpp. "Syntax error" is here to catch this case.
4463 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4464 /* end confdefs.h. */
4465 #ifdef __STDC__
4466 # include <limits.h>
4467 #else
4468 # include <assert.h>
4469 #endif
4470 Syntax error
4471 _ACEOF
4472 if ac_fn_c_try_cpp "$LINENO"; then :
4473
4474 else
4475 # Broken: fails on valid input.
4476 continue
4477 fi
4478 rm -f conftest.err conftest.$ac_ext
4479
4480 # OK, works on sane cases. Now check whether nonexistent headers
4481 # can be detected and how.
4482 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4483 /* end confdefs.h. */
4484 #include <ac_nonexistent.h>
4485 _ACEOF
4486 if ac_fn_c_try_cpp "$LINENO"; then :
4487 # Broken: success on invalid input.
4488 continue
4489 else
4490 # Passes both tests.
4491 ac_preproc_ok=:
4492 break
4493 fi
4494 rm -f conftest.err conftest.$ac_ext
4495
4496 done
4497 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4498 rm -f conftest.err conftest.$ac_ext
4499 if $ac_preproc_ok; then :
4500 break
4501 fi
4502
4503 done
4504 ac_cv_prog_CPP=$CPP
4505
4506 fi
4507 CPP=$ac_cv_prog_CPP
4508 else
4509 ac_cv_prog_CPP=$CPP
4510 fi
4511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4512 $as_echo "$CPP" >&6; }
4513 ac_preproc_ok=false
4514 for ac_c_preproc_warn_flag in '' yes
4515 do
4516 # Use a header file that comes with gcc, so configuring glibc
4517 # with a fresh cross-compiler works.
4518 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4519 # <limits.h> exists even on freestanding compilers.
4520 # On the NeXT, cc -E runs the code through the compiler's parser,
4521 # not just through cpp. "Syntax error" is here to catch this case.
4522 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4523 /* end confdefs.h. */
4524 #ifdef __STDC__
4525 # include <limits.h>
4526 #else
4527 # include <assert.h>
4528 #endif
4529 Syntax error
4530 _ACEOF
4531 if ac_fn_c_try_cpp "$LINENO"; then :
4532
4533 else
4534 # Broken: fails on valid input.
4535 continue
4536 fi
4537 rm -f conftest.err conftest.$ac_ext
4538
4539 # OK, works on sane cases. Now check whether nonexistent headers
4540 # can be detected and how.
4541 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4542 /* end confdefs.h. */
4543 #include <ac_nonexistent.h>
4544 _ACEOF
4545 if ac_fn_c_try_cpp "$LINENO"; then :
4546 # Broken: success on invalid input.
4547 continue
4548 else
4549 # Passes both tests.
4550 ac_preproc_ok=:
4551 break
4552 fi
4553 rm -f conftest.err conftest.$ac_ext
4554
4555 done
4556 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4557 rm -f conftest.err conftest.$ac_ext
4558 if $ac_preproc_ok; then :
4559
4560 else
4561 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4562 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4563 as_fn_error "C preprocessor \"$CPP\" fails sanity check
4564 See \`config.log' for more details." "$LINENO" 5; }
4565 fi
4566
4567 ac_ext=c
4568 ac_cpp='$CPP $CPPFLAGS'
4569 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4570 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4571 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4572
4573
4574 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4575 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4576 if test "${ac_cv_path_GREP+set}" = set; then :
4577 $as_echo_n "(cached) " >&6
4578 else
4579 if test -z "$GREP"; then
4580 ac_path_GREP_found=false
4581 # Loop through the user's path and test for each of PROGNAME-LIST
4582 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4583 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4584 do
4585 IFS=$as_save_IFS
4586 test -z "$as_dir" && as_dir=.
4587 for ac_prog in grep ggrep; do
4588 for ac_exec_ext in '' $ac_executable_extensions; do
4589 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4590 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4591 # Check for GNU ac_path_GREP and select it if it is found.
4592 # Check for GNU $ac_path_GREP
4593 case `"$ac_path_GREP" --version 2>&1` in
4594 *GNU*)
4595 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4596 *)
4597 ac_count=0
4598 $as_echo_n 0123456789 >"conftest.in"
4599 while :
4600 do
4601 cat "conftest.in" "conftest.in" >"conftest.tmp"
4602 mv "conftest.tmp" "conftest.in"
4603 cp "conftest.in" "conftest.nl"
4604 $as_echo 'GREP' >> "conftest.nl"
4605 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4606 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4607 as_fn_arith $ac_count + 1 && ac_count=$as_val
4608 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4609 # Best one so far, save it but keep looking for a better one
4610 ac_cv_path_GREP="$ac_path_GREP"
4611 ac_path_GREP_max=$ac_count
4612 fi
4613 # 10*(2^10) chars as input seems more than enough
4614 test $ac_count -gt 10 && break
4615 done
4616 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4617 esac
4618
4619 $ac_path_GREP_found && break 3
4620 done
4621 done
4622 done
4623 IFS=$as_save_IFS
4624 if test -z "$ac_cv_path_GREP"; then
4625 as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4626 fi
4627 else
4628 ac_cv_path_GREP=$GREP
4629 fi
4630
4631 fi
4632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4633 $as_echo "$ac_cv_path_GREP" >&6; }
4634 GREP="$ac_cv_path_GREP"
4635
4636
4637 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4638 $as_echo_n "checking for egrep... " >&6; }
4639 if test "${ac_cv_path_EGREP+set}" = set; then :
4640 $as_echo_n "(cached) " >&6
4641 else
4642 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4643 then ac_cv_path_EGREP="$GREP -E"
4644 else
4645 if test -z "$EGREP"; then
4646 ac_path_EGREP_found=false
4647 # Loop through the user's path and test for each of PROGNAME-LIST
4648 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4649 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4650 do
4651 IFS=$as_save_IFS
4652 test -z "$as_dir" && as_dir=.
4653 for ac_prog in egrep; do
4654 for ac_exec_ext in '' $ac_executable_extensions; do
4655 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4656 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4657 # Check for GNU ac_path_EGREP and select it if it is found.
4658 # Check for GNU $ac_path_EGREP
4659 case `"$ac_path_EGREP" --version 2>&1` in
4660 *GNU*)
4661 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4662 *)
4663 ac_count=0
4664 $as_echo_n 0123456789 >"conftest.in"
4665 while :
4666 do
4667 cat "conftest.in" "conftest.in" >"conftest.tmp"
4668 mv "conftest.tmp" "conftest.in"
4669 cp "conftest.in" "conftest.nl"
4670 $as_echo 'EGREP' >> "conftest.nl"
4671 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4672 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4673 as_fn_arith $ac_count + 1 && ac_count=$as_val
4674 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4675 # Best one so far, save it but keep looking for a better one
4676 ac_cv_path_EGREP="$ac_path_EGREP"
4677 ac_path_EGREP_max=$ac_count
4678 fi
4679 # 10*(2^10) chars as input seems more than enough
4680 test $ac_count -gt 10 && break
4681 done
4682 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4683 esac
4684
4685 $ac_path_EGREP_found && break 3
4686 done
4687 done
4688 done
4689 IFS=$as_save_IFS
4690 if test -z "$ac_cv_path_EGREP"; then
4691 as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4692 fi
4693 else
4694 ac_cv_path_EGREP=$EGREP
4695 fi
4696
4697 fi
4698 fi
4699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4700 $as_echo "$ac_cv_path_EGREP" >&6; }
4701 EGREP="$ac_cv_path_EGREP"
4702
4703
4704 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4705 $as_echo_n "checking for ANSI C header files... " >&6; }
4706 if test "${ac_cv_header_stdc+set}" = set; then :
4707 $as_echo_n "(cached) " >&6
4708 else
4709 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4710 /* end confdefs.h. */
4711 #include <stdlib.h>
4712 #include <stdarg.h>
4713 #include <string.h>
4714 #include <float.h>
4715
4716 int
4717 main ()
4718 {
4719
4720 ;
4721 return 0;
4722 }
4723 _ACEOF
4724 if ac_fn_c_try_compile "$LINENO"; then :
4725 ac_cv_header_stdc=yes
4726 else
4727 ac_cv_header_stdc=no
4728 fi
4729 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4730
4731 if test $ac_cv_header_stdc = yes; then
4732 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4733 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4734 /* end confdefs.h. */
4735 #include <string.h>
4736
4737 _ACEOF
4738 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4739 $EGREP "memchr" >/dev/null 2>&1; then :
4740
4741 else
4742 ac_cv_header_stdc=no
4743 fi
4744 rm -f conftest*
4745
4746 fi
4747
4748 if test $ac_cv_header_stdc = yes; then
4749 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4750 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4751 /* end confdefs.h. */
4752 #include <stdlib.h>
4753
4754 _ACEOF
4755 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4756 $EGREP "free" >/dev/null 2>&1; then :
4757
4758 else
4759 ac_cv_header_stdc=no
4760 fi
4761 rm -f conftest*
4762
4763 fi
4764
4765 if test $ac_cv_header_stdc = yes; then
4766 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4767 if test "$cross_compiling" = yes; then :
4768 :
4769 else
4770 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4771 /* end confdefs.h. */
4772 #include <ctype.h>
4773 #include <stdlib.h>
4774 #if ((' ' & 0x0FF) == 0x020)
4775 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4776 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4777 #else
4778 # define ISLOWER(c) \
4779 (('a' <= (c) && (c) <= 'i') \
4780 || ('j' <= (c) && (c) <= 'r') \
4781 || ('s' <= (c) && (c) <= 'z'))
4782 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4783 #endif
4784
4785 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4786 int
4787 main ()
4788 {
4789 int i;
4790 for (i = 0; i < 256; i++)
4791 if (XOR (islower (i), ISLOWER (i))
4792 || toupper (i) != TOUPPER (i))
4793 return 2;
4794 return 0;
4795 }
4796 _ACEOF
4797 if ac_fn_c_try_run "$LINENO"; then :
4798
4799 else
4800 ac_cv_header_stdc=no
4801 fi
4802 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4803 conftest.$ac_objext conftest.beam conftest.$ac_ext
4804 fi
4805
4806 fi
4807 fi
4808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4809 $as_echo "$ac_cv_header_stdc" >&6; }
4810 if test $ac_cv_header_stdc = yes; then
4811
4812 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
4813
4814 fi
4815
4816 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4817 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4818 inttypes.h stdint.h unistd.h
4819 do :
4820 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4821 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4822 "
4823 eval as_val=\$$as_ac_Header
4824 if test "x$as_val" = x""yes; then :
4825 cat >>confdefs.h <<_ACEOF
4826 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4827 _ACEOF
4828
4829 fi
4830
4831 done
4832
4833
4834
4835 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
4836 if test "x$ac_cv_header_minix_config_h" = x""yes; then :
4837 MINIX=yes
4838 else
4839 MINIX=
4840 fi
4841
4842
4843 if test "$MINIX" = yes; then
4844
4845 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
4846
4847
4848 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
4849
4850
4851 $as_echo "#define _MINIX 1" >>confdefs.h
4852
4853 fi
4854
4855
4856 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
4857 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
4858 if test "${ac_cv_safe_to_define___extensions__+set}" = set; then :
4859 $as_echo_n "(cached) " >&6
4860 else
4861 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4862 /* end confdefs.h. */
4863
4864 # define __EXTENSIONS__ 1
4865 $ac_includes_default
4866 int
4867 main ()
4868 {
4869
4870 ;
4871 return 0;
4872 }
4873 _ACEOF
4874 if ac_fn_c_try_compile "$LINENO"; then :
4875 ac_cv_safe_to_define___extensions__=yes
4876 else
4877 ac_cv_safe_to_define___extensions__=no
4878 fi
4879 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4880 fi
4881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
4882 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
4883 test $ac_cv_safe_to_define___extensions__ = yes &&
4884 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
4885
4886 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
4887
4888 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
4889
4890 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
4891
4892 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
4893
4894
4895
4896
4897
4898 case `pwd` in
4899 *\ * | *\ *)
4900 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
4901 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
4902 esac
4903
4904
4905
4906 macro_version='2.2.7a'
4907 macro_revision='1.3134'
4908
4909
4910
4911
4912
4913
4914
4915
4916
4917
4918
4919
4920
4921 ltmain="$ac_aux_dir/ltmain.sh"
4922
4923 # Backslashify metacharacters that are still active within
4924 # double-quoted strings.
4925 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
4926
4927 # Same as above, but do not quote variable references.
4928 double_quote_subst='s/\(["`\\]\)/\\\1/g'
4929
4930 # Sed substitution to delay expansion of an escaped shell variable in a
4931 # double_quote_subst'ed string.
4932 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
4933
4934 # Sed substitution to delay expansion of an escaped single quote.
4935 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
4936
4937 # Sed substitution to avoid accidental globbing in evaled expressions
4938 no_glob_subst='s/\*/\\\*/g'
4939
4940 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
4941 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
4942 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
4943
4944 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
4945 $as_echo_n "checking how to print strings... " >&6; }
4946 # Test print first, because it will be a builtin if present.
4947 if test "X`print -r -- -n 2>/dev/null`" = X-n && \
4948 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
4949 ECHO='print -r --'
4950 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
4951 ECHO='printf %s\n'
4952 else
4953 # Use this function as a fallback that always works.
4954 func_fallback_echo ()
4955 {
4956 eval 'cat <<_LTECHO_EOF
4957 $1
4958 _LTECHO_EOF'
4959 }
4960 ECHO='func_fallback_echo'
4961 fi
4962
4963 # func_echo_all arg...
4964 # Invoke $ECHO with all args, space-separated.
4965 func_echo_all ()
4966 {
4967 $ECHO ""
4968 }
4969
4970 case "$ECHO" in
4971 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
4972 $as_echo "printf" >&6; } ;;
4973 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
4974 $as_echo "print -r" >&6; } ;;
4975 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
4976 $as_echo "cat" >&6; } ;;
4977 esac
4978
4979
4980
4981
4982
4983
4984
4985
4986
4987
4988
4989
4990
4991
4992 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4993 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
4994 if test "${ac_cv_path_SED+set}" = set; then :
4995 $as_echo_n "(cached) " >&6
4996 else
4997 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4998 for ac_i in 1 2 3 4 5 6 7; do
4999 ac_script="$ac_script$as_nl$ac_script"
5000 done
5001 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
5002 { ac_script=; unset ac_script;}
5003 if test -z "$SED"; then
5004 ac_path_SED_found=false
5005 # Loop through the user's path and test for each of PROGNAME-LIST
5006 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5007 for as_dir in $PATH
5008 do
5009 IFS=$as_save_IFS
5010 test -z "$as_dir" && as_dir=.
5011 for ac_prog in sed gsed; do
5012 for ac_exec_ext in '' $ac_executable_extensions; do
5013 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
5014 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
5015 # Check for GNU ac_path_SED and select it if it is found.
5016 # Check for GNU $ac_path_SED
5017 case `"$ac_path_SED" --version 2>&1` in
5018 *GNU*)
5019 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
5020 *)
5021 ac_count=0
5022 $as_echo_n 0123456789 >"conftest.in"
5023 while :
5024 do
5025 cat "conftest.in" "conftest.in" >"conftest.tmp"
5026 mv "conftest.tmp" "conftest.in"
5027 cp "conftest.in" "conftest.nl"
5028 $as_echo '' >> "conftest.nl"
5029 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
5030 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5031 as_fn_arith $ac_count + 1 && ac_count=$as_val
5032 if test $ac_count -gt ${ac_path_SED_max-0}; then
5033 # Best one so far, save it but keep looking for a better one
5034 ac_cv_path_SED="$ac_path_SED"
5035 ac_path_SED_max=$ac_count
5036 fi
5037 # 10*(2^10) chars as input seems more than enough
5038 test $ac_count -gt 10 && break
5039 done
5040 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5041 esac
5042
5043 $ac_path_SED_found && break 3
5044 done
5045 done
5046 done
5047 IFS=$as_save_IFS
5048 if test -z "$ac_cv_path_SED"; then
5049 as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
5050 fi
5051 else
5052 ac_cv_path_SED=$SED
5053 fi
5054
5055 fi
5056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
5057 $as_echo "$ac_cv_path_SED" >&6; }
5058 SED="$ac_cv_path_SED"
5059 rm -f conftest.sed
5060
5061 test -z "$SED" && SED=sed
5062 Xsed="$SED -e 1s/^X//"
5063
5064
5065
5066
5067
5068
5069
5070
5071
5072
5073
5074 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
5075 $as_echo_n "checking for fgrep... " >&6; }
5076 if test "${ac_cv_path_FGREP+set}" = set; then :
5077 $as_echo_n "(cached) " >&6
5078 else
5079 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
5080 then ac_cv_path_FGREP="$GREP -F"
5081 else
5082 if test -z "$FGREP"; then
5083 ac_path_FGREP_found=false
5084 # Loop through the user's path and test for each of PROGNAME-LIST
5085 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5086 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5087 do
5088 IFS=$as_save_IFS
5089 test -z "$as_dir" && as_dir=.
5090 for ac_prog in fgrep; do
5091 for ac_exec_ext in '' $ac_executable_extensions; do
5092 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
5093 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
5094 # Check for GNU ac_path_FGREP and select it if it is found.
5095 # Check for GNU $ac_path_FGREP
5096 case `"$ac_path_FGREP" --version 2>&1` in
5097 *GNU*)
5098 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
5099 *)
5100 ac_count=0
5101 $as_echo_n 0123456789 >"conftest.in"
5102 while :
5103 do
5104 cat "conftest.in" "conftest.in" >"conftest.tmp"
5105 mv "conftest.tmp" "conftest.in"
5106 cp "conftest.in" "conftest.nl"
5107 $as_echo 'FGREP' >> "conftest.nl"
5108 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
5109 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5110 as_fn_arith $ac_count + 1 && ac_count=$as_val
5111 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5112 # Best one so far, save it but keep looking for a better one
5113 ac_cv_path_FGREP="$ac_path_FGREP"
5114 ac_path_FGREP_max=$ac_count
5115 fi
5116 # 10*(2^10) chars as input seems more than enough
5117 test $ac_count -gt 10 && break
5118 done
5119 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5120 esac
5121
5122 $ac_path_FGREP_found && break 3
5123 done
5124 done
5125 done
5126 IFS=$as_save_IFS
5127 if test -z "$ac_cv_path_FGREP"; then
5128 as_fn_error "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5129 fi
5130 else
5131 ac_cv_path_FGREP=$FGREP
5132 fi
5133
5134 fi
5135 fi
5136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
5137 $as_echo "$ac_cv_path_FGREP" >&6; }
5138 FGREP="$ac_cv_path_FGREP"
5139
5140
5141 test -z "$GREP" && GREP=grep
5142
5143
5144
5145
5146
5147
5148
5149
5150
5151
5152
5153
5154
5155
5156
5157
5158
5159
5160
5161 # Check whether --with-gnu-ld was given.
5162 if test "${with_gnu_ld+set}" = set; then :
5163 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
5164 else
5165 with_gnu_ld=no
5166 fi
5167
5168 ac_prog=ld
5169 if test "$GCC" = yes; then
5170 # Check if gcc -print-prog-name=ld gives a path.
5171 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5172 $as_echo_n "checking for ld used by $CC... " >&6; }
5173 case $host in
5174 *-*-mingw*)
5175 # gcc leaves a trailing carriage return which upsets mingw
5176 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5177 *)
5178 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5179 esac
5180 case $ac_prog in
5181 # Accept absolute paths.
5182 [\\/]* | ?:[\\/]*)
5183 re_direlt='/[^/][^/]*/\.\./'
5184 # Canonicalize the pathname of ld
5185 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5186 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5187 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5188 done
5189 test -z "$LD" && LD="$ac_prog"
5190 ;;
5191 "")
5192 # If it fails, then pretend we aren't using GCC.
5193 ac_prog=ld
5194 ;;
5195 *)
5196 # If it is relative, then search for the first ld in PATH.
5197 with_gnu_ld=unknown
5198 ;;
5199 esac
5200 elif test "$with_gnu_ld" = yes; then
5201 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5202 $as_echo_n "checking for GNU ld... " >&6; }
5203 else
5204 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5205 $as_echo_n "checking for non-GNU ld... " >&6; }
5206 fi
5207 if test "${lt_cv_path_LD+set}" = set; then :
5208 $as_echo_n "(cached) " >&6
5209 else
5210 if test -z "$LD"; then
5211 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5212 for ac_dir in $PATH; do
5213 IFS="$lt_save_ifs"
5214 test -z "$ac_dir" && ac_dir=.
5215 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5216 lt_cv_path_LD="$ac_dir/$ac_prog"
5217 # Check to see if the program is GNU ld. I'd rather use --version,
5218 # but apparently some variants of GNU ld only accept -v.
5219 # Break only if it was the GNU/non-GNU ld that we prefer.
5220 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5221 *GNU* | *'with BFD'*)
5222 test "$with_gnu_ld" != no && break
5223 ;;
5224 *)
5225 test "$with_gnu_ld" != yes && break
5226 ;;
5227 esac
5228 fi
5229 done
5230 IFS="$lt_save_ifs"
5231 else
5232 lt_cv_path_LD="$LD" # Let the user override the test with a path.
5233 fi
5234 fi
5235
5236 LD="$lt_cv_path_LD"
5237 if test -n "$LD"; then
5238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5239 $as_echo "$LD" >&6; }
5240 else
5241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5242 $as_echo "no" >&6; }
5243 fi
5244 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
5245 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5246 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
5247 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
5248 $as_echo_n "(cached) " >&6
5249 else
5250 # I'd rather use --version here, but apparently some GNU lds only accept -v.
5251 case `$LD -v 2>&1 </dev/null` in
5252 *GNU* | *'with BFD'*)
5253 lt_cv_prog_gnu_ld=yes
5254 ;;
5255 *)
5256 lt_cv_prog_gnu_ld=no
5257 ;;
5258 esac
5259 fi
5260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5261 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
5262 with_gnu_ld=$lt_cv_prog_gnu_ld
5263
5264
5265
5266
5267
5268
5269
5270
5271
5272 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5273 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5274 if test "${lt_cv_path_NM+set}" = set; then :
5275 $as_echo_n "(cached) " >&6
5276 else
5277 if test -n "$NM"; then
5278 # Let the user override the test.
5279 lt_cv_path_NM="$NM"
5280 else
5281 lt_nm_to_check="${ac_tool_prefix}nm"
5282 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5283 lt_nm_to_check="$lt_nm_to_check nm"
5284 fi
5285 for lt_tmp_nm in $lt_nm_to_check; do
5286 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5287 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5288 IFS="$lt_save_ifs"
5289 test -z "$ac_dir" && ac_dir=.
5290 tmp_nm="$ac_dir/$lt_tmp_nm"
5291 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5292 # Check to see if the nm accepts a BSD-compat flag.
5293 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5294 # nm: unknown option "B" ignored
5295 # Tru64's nm complains that /dev/null is an invalid object file
5296 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5297 */dev/null* | *'Invalid file or object type'*)
5298 lt_cv_path_NM="$tmp_nm -B"
5299 break
5300 ;;
5301 *)
5302 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5303 */dev/null*)
5304 lt_cv_path_NM="$tmp_nm -p"
5305 break
5306 ;;
5307 *)
5308 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5309 continue # so that we can try to find one that supports BSD flags
5310 ;;
5311 esac
5312 ;;
5313 esac
5314 fi
5315 done
5316 IFS="$lt_save_ifs"
5317 done
5318 : ${lt_cv_path_NM=no}
5319 fi
5320 fi
5321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5322 $as_echo "$lt_cv_path_NM" >&6; }
5323 if test "$lt_cv_path_NM" != "no"; then
5324 NM="$lt_cv_path_NM"
5325 else
5326 # Didn't find any BSD compatible name lister, look for dumpbin.
5327 if test -n "$DUMPBIN"; then :
5328 # Let the user override the test.
5329 else
5330 if test -n "$ac_tool_prefix"; then
5331 for ac_prog in dumpbin "link -dump"
5332 do
5333 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5334 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5335 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5336 $as_echo_n "checking for $ac_word... " >&6; }
5337 if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
5338 $as_echo_n "(cached) " >&6
5339 else
5340 if test -n "$DUMPBIN"; then
5341 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5342 else
5343 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5344 for as_dir in $PATH
5345 do
5346 IFS=$as_save_IFS
5347 test -z "$as_dir" && as_dir=.
5348 for ac_exec_ext in '' $ac_executable_extensions; do
5349 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5350 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5351 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5352 break 2
5353 fi
5354 done
5355 done
5356 IFS=$as_save_IFS
5357
5358 fi
5359 fi
5360 DUMPBIN=$ac_cv_prog_DUMPBIN
5361 if test -n "$DUMPBIN"; then
5362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5363 $as_echo "$DUMPBIN" >&6; }
5364 else
5365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5366 $as_echo "no" >&6; }
5367 fi
5368
5369
5370 test -n "$DUMPBIN" && break
5371 done
5372 fi
5373 if test -z "$DUMPBIN"; then
5374 ac_ct_DUMPBIN=$DUMPBIN
5375 for ac_prog in dumpbin "link -dump"
5376 do
5377 # Extract the first word of "$ac_prog", so it can be a program name with args.
5378 set dummy $ac_prog; ac_word=$2
5379 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5380 $as_echo_n "checking for $ac_word... " >&6; }
5381 if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
5382 $as_echo_n "(cached) " >&6
5383 else
5384 if test -n "$ac_ct_DUMPBIN"; then
5385 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5386 else
5387 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5388 for as_dir in $PATH
5389 do
5390 IFS=$as_save_IFS
5391 test -z "$as_dir" && as_dir=.
5392 for ac_exec_ext in '' $ac_executable_extensions; do
5393 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5394 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5395 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5396 break 2
5397 fi
5398 done
5399 done
5400 IFS=$as_save_IFS
5401
5402 fi
5403 fi
5404 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5405 if test -n "$ac_ct_DUMPBIN"; then
5406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5407 $as_echo "$ac_ct_DUMPBIN" >&6; }
5408 else
5409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5410 $as_echo "no" >&6; }
5411 fi
5412
5413
5414 test -n "$ac_ct_DUMPBIN" && break
5415 done
5416
5417 if test "x$ac_ct_DUMPBIN" = x; then
5418 DUMPBIN=":"
5419 else
5420 case $cross_compiling:$ac_tool_warned in
5421 yes:)
5422 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5423 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5424 ac_tool_warned=yes ;;
5425 esac
5426 DUMPBIN=$ac_ct_DUMPBIN
5427 fi
5428 fi
5429
5430 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
5431 *COFF*)
5432 DUMPBIN="$DUMPBIN -symbols"
5433 ;;
5434 *)
5435 DUMPBIN=:
5436 ;;
5437 esac
5438 fi
5439
5440 if test "$DUMPBIN" != ":"; then
5441 NM="$DUMPBIN"
5442 fi
5443 fi
5444 test -z "$NM" && NM=nm
5445
5446
5447
5448
5449
5450
5451 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5452 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
5453 if test "${lt_cv_nm_interface+set}" = set; then :
5454 $as_echo_n "(cached) " >&6
5455 else
5456 lt_cv_nm_interface="BSD nm"
5457 echo "int some_variable = 0;" > conftest.$ac_ext
5458 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
5459 (eval "$ac_compile" 2>conftest.err)
5460 cat conftest.err >&5
5461 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5462 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5463 cat conftest.err >&5
5464 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
5465 cat conftest.out >&5
5466 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5467 lt_cv_nm_interface="MS dumpbin"
5468 fi
5469 rm -f conftest*
5470 fi
5471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5472 $as_echo "$lt_cv_nm_interface" >&6; }
5473
5474 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5475 $as_echo_n "checking whether ln -s works... " >&6; }
5476 LN_S=$as_ln_s
5477 if test "$LN_S" = "ln -s"; then
5478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5479 $as_echo "yes" >&6; }
5480 else
5481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5482 $as_echo "no, using $LN_S" >&6; }
5483 fi
5484
5485 # find the maximum length of command line arguments
5486 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5487 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
5488 if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
5489 $as_echo_n "(cached) " >&6
5490 else
5491 i=0
5492 teststring="ABCD"
5493
5494 case $build_os in
5495 msdosdjgpp*)
5496 # On DJGPP, this test can blow up pretty badly due to problems in libc
5497 # (any single argument exceeding 2000 bytes causes a buffer overrun
5498 # during glob expansion). Even if it were fixed, the result of this
5499 # check would be larger than it should be.
5500 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5501 ;;
5502
5503 gnu*)
5504 # Under GNU Hurd, this test is not required because there is
5505 # no limit to the length of command line arguments.
5506 # Libtool will interpret -1 as no limit whatsoever
5507 lt_cv_sys_max_cmd_len=-1;
5508 ;;
5509
5510 cygwin* | mingw* | cegcc*)
5511 # On Win9x/ME, this test blows up -- it succeeds, but takes
5512 # about 5 minutes as the teststring grows exponentially.
5513 # Worse, since 9x/ME are not pre-emptively multitasking,
5514 # you end up with a "frozen" computer, even though with patience
5515 # the test eventually succeeds (with a max line length of 256k).
5516 # Instead, let's just punt: use the minimum linelength reported by
5517 # all of the supported platforms: 8192 (on NT/2K/XP).
5518 lt_cv_sys_max_cmd_len=8192;
5519 ;;
5520
5521 mint*)
5522 # On MiNT this can take a long time and run out of memory.
5523 lt_cv_sys_max_cmd_len=8192;
5524 ;;
5525
5526 amigaos*)
5527 # On AmigaOS with pdksh, this test takes hours, literally.
5528 # So we just punt and use a minimum line length of 8192.
5529 lt_cv_sys_max_cmd_len=8192;
5530 ;;
5531
5532 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5533 # This has been around since 386BSD, at least. Likely further.
5534 if test -x /sbin/sysctl; then
5535 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5536 elif test -x /usr/sbin/sysctl; then
5537 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5538 else
5539 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
5540 fi
5541 # And add a safety zone
5542 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5543 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5544 ;;
5545
5546 interix*)
5547 # We know the value 262144 and hardcode it with a safety zone (like BSD)
5548 lt_cv_sys_max_cmd_len=196608
5549 ;;
5550
5551 osf*)
5552 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5553 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5554 # nice to cause kernel panics so lets avoid the loop below.
5555 # First set a reasonable default.
5556 lt_cv_sys_max_cmd_len=16384
5557 #
5558 if test -x /sbin/sysconfig; then
5559 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5560 *1*) lt_cv_sys_max_cmd_len=-1 ;;
5561 esac
5562 fi
5563 ;;
5564 sco3.2v5*)
5565 lt_cv_sys_max_cmd_len=102400
5566 ;;
5567 sysv5* | sco5v6* | sysv4.2uw2*)
5568 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5569 if test -n "$kargmax"; then
5570 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
5571 else
5572 lt_cv_sys_max_cmd_len=32768
5573 fi
5574 ;;
5575 *)
5576 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5577 if test -n "$lt_cv_sys_max_cmd_len"; then
5578 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5579 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5580 else
5581 # Make teststring a little bigger before we do anything with it.
5582 # a 1K string should be a reasonable start.
5583 for i in 1 2 3 4 5 6 7 8 ; do
5584 teststring=$teststring$teststring
5585 done
5586 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5587 # If test is not a shell built-in, we'll probably end up computing a
5588 # maximum length that is only half of the actual maximum length, but
5589 # we can't tell.
5590 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
5591 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
5592 test $i != 17 # 1/2 MB should be enough
5593 do
5594 i=`expr $i + 1`
5595 teststring=$teststring$teststring
5596 done
5597 # Only check the string length outside the loop.
5598 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5599 teststring=
5600 # Add a significant safety factor because C++ compilers can tack on
5601 # massive amounts of additional arguments before passing them to the
5602 # linker. It appears as though 1/2 is a usable value.
5603 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5604 fi
5605 ;;
5606 esac
5607
5608 fi
5609
5610 if test -n $lt_cv_sys_max_cmd_len ; then
5611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5612 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
5613 else
5614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
5615 $as_echo "none" >&6; }
5616 fi
5617 max_cmd_len=$lt_cv_sys_max_cmd_len
5618
5619
5620
5621
5622
5623
5624 : ${CP="cp -f"}
5625 : ${MV="mv -f"}
5626 : ${RM="rm -f"}
5627
5628 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
5629 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
5630 # Try some XSI features
5631 xsi_shell=no
5632 ( _lt_dummy="a/b/c"
5633 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
5634 = c,a/b,, \
5635 && eval 'test $(( 1 + 1 )) -eq 2 \
5636 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
5637 && xsi_shell=yes
5638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
5639 $as_echo "$xsi_shell" >&6; }
5640
5641
5642 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
5643 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
5644 lt_shell_append=no
5645 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
5646 >/dev/null 2>&1 \
5647 && lt_shell_append=yes
5648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
5649 $as_echo "$lt_shell_append" >&6; }
5650
5651
5652 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5653 lt_unset=unset
5654 else
5655 lt_unset=false
5656 fi
5657
5658
5659
5660
5661
5662 # test EBCDIC or ASCII
5663 case `echo X|tr X '\101'` in
5664 A) # ASCII based system
5665 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5666 lt_SP2NL='tr \040 \012'
5667 lt_NL2SP='tr \015\012 \040\040'
5668 ;;
5669 *) # EBCDIC based system
5670 lt_SP2NL='tr \100 \n'
5671 lt_NL2SP='tr \r\n \100\100'
5672 ;;
5673 esac
5674
5675
5676
5677
5678
5679
5680
5681
5682
5683 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5684 $as_echo_n "checking for $LD option to reload object files... " >&6; }
5685 if test "${lt_cv_ld_reload_flag+set}" = set; then :
5686 $as_echo_n "(cached) " >&6
5687 else
5688 lt_cv_ld_reload_flag='-r'
5689 fi
5690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5691 $as_echo "$lt_cv_ld_reload_flag" >&6; }
5692 reload_flag=$lt_cv_ld_reload_flag
5693 case $reload_flag in
5694 "" | " "*) ;;
5695 *) reload_flag=" $reload_flag" ;;
5696 esac
5697 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5698 case $host_os in
5699 darwin*)
5700 if test "$GCC" = yes; then
5701 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5702 else
5703 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5704 fi
5705 ;;
5706 esac
5707
5708
5709
5710
5711
5712
5713
5714
5715
5716 if test -n "$ac_tool_prefix"; then
5717 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5718 set dummy ${ac_tool_prefix}objdump; ac_word=$2
5719 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5720 $as_echo_n "checking for $ac_word... " >&6; }
5721 if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
5722 $as_echo_n "(cached) " >&6
5723 else
5724 if test -n "$OBJDUMP"; then
5725 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5726 else
5727 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5728 for as_dir in $PATH
5729 do
5730 IFS=$as_save_IFS
5731 test -z "$as_dir" && as_dir=.
5732 for ac_exec_ext in '' $ac_executable_extensions; do
5733 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5734 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5735 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5736 break 2
5737 fi
5738 done
5739 done
5740 IFS=$as_save_IFS
5741
5742 fi
5743 fi
5744 OBJDUMP=$ac_cv_prog_OBJDUMP
5745 if test -n "$OBJDUMP"; then
5746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5747 $as_echo "$OBJDUMP" >&6; }
5748 else
5749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5750 $as_echo "no" >&6; }
5751 fi
5752
5753
5754 fi
5755 if test -z "$ac_cv_prog_OBJDUMP"; then
5756 ac_ct_OBJDUMP=$OBJDUMP
5757 # Extract the first word of "objdump", so it can be a program name with args.
5758 set dummy objdump; ac_word=$2
5759 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5760 $as_echo_n "checking for $ac_word... " >&6; }
5761 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
5762 $as_echo_n "(cached) " >&6
5763 else
5764 if test -n "$ac_ct_OBJDUMP"; then
5765 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5766 else
5767 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5768 for as_dir in $PATH
5769 do
5770 IFS=$as_save_IFS
5771 test -z "$as_dir" && as_dir=.
5772 for ac_exec_ext in '' $ac_executable_extensions; do
5773 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5774 ac_cv_prog_ac_ct_OBJDUMP="objdump"
5775 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5776 break 2
5777 fi
5778 done
5779 done
5780 IFS=$as_save_IFS
5781
5782 fi
5783 fi
5784 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5785 if test -n "$ac_ct_OBJDUMP"; then
5786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5787 $as_echo "$ac_ct_OBJDUMP" >&6; }
5788 else
5789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5790 $as_echo "no" >&6; }
5791 fi
5792
5793 if test "x$ac_ct_OBJDUMP" = x; then
5794 OBJDUMP="false"
5795 else
5796 case $cross_compiling:$ac_tool_warned in
5797 yes:)
5798 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5799 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5800 ac_tool_warned=yes ;;
5801 esac
5802 OBJDUMP=$ac_ct_OBJDUMP
5803 fi
5804 else
5805 OBJDUMP="$ac_cv_prog_OBJDUMP"
5806 fi
5807
5808 test -z "$OBJDUMP" && OBJDUMP=objdump
5809
5810
5811
5812
5813
5814
5815
5816
5817
5818 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5819 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
5820 if test "${lt_cv_deplibs_check_method+set}" = set; then :
5821 $as_echo_n "(cached) " >&6
5822 else
5823 lt_cv_file_magic_cmd='$MAGIC_CMD'
5824 lt_cv_file_magic_test_file=
5825 lt_cv_deplibs_check_method='unknown'
5826 # Need to set the preceding variable on all platforms that support
5827 # interlibrary dependencies.
5828 # 'none' -- dependencies not supported.
5829 # `unknown' -- same as none, but documents that we really don't know.
5830 # 'pass_all' -- all dependencies passed with no checks.
5831 # 'test_compile' -- check by making test program.
5832 # 'file_magic [[regex]]' -- check by looking for files in library path
5833 # which responds to the $file_magic_cmd with a given extended regex.
5834 # If you have `file' or equivalent on your system and you're not sure
5835 # whether `pass_all' will *always* work, you probably want this one.
5836
5837 case $host_os in
5838 aix[4-9]*)
5839 lt_cv_deplibs_check_method=pass_all
5840 ;;
5841
5842 beos*)
5843 lt_cv_deplibs_check_method=pass_all
5844 ;;
5845
5846 bsdi[45]*)
5847 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5848 lt_cv_file_magic_cmd='/usr/bin/file -L'
5849 lt_cv_file_magic_test_file=/shlib/libc.so
5850 ;;
5851
5852 cygwin*)
5853 # func_win32_libid is a shell function defined in ltmain.sh
5854 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5855 lt_cv_file_magic_cmd='func_win32_libid'
5856 ;;
5857
5858 mingw* | pw32*)
5859 # Base MSYS/MinGW do not provide the 'file' command needed by
5860 # func_win32_libid shell function, so use a weaker test based on 'objdump',
5861 # unless we find 'file', for example because we are cross-compiling.
5862 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
5863 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
5864 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5865 lt_cv_file_magic_cmd='func_win32_libid'
5866 else
5867 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
5868 lt_cv_file_magic_cmd='$OBJDUMP -f'
5869 fi
5870 ;;
5871
5872 cegcc*)
5873 # use the weaker test based on 'objdump'. See mingw*.
5874 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5875 lt_cv_file_magic_cmd='$OBJDUMP -f'
5876 ;;
5877
5878 darwin* | rhapsody*)
5879 lt_cv_deplibs_check_method=pass_all
5880 ;;
5881
5882 freebsd* | dragonfly*)
5883 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5884 case $host_cpu in
5885 i*86 )
5886 # Not sure whether the presence of OpenBSD here was a mistake.
5887 # Let's accept both of them until this is cleared up.
5888 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5889 lt_cv_file_magic_cmd=/usr/bin/file
5890 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5891 ;;
5892 esac
5893 else
5894 lt_cv_deplibs_check_method=pass_all
5895 fi
5896 ;;
5897
5898 gnu*)
5899 lt_cv_deplibs_check_method=pass_all
5900 ;;
5901
5902 haiku*)
5903 lt_cv_deplibs_check_method=pass_all
5904 ;;
5905
5906 hpux10.20* | hpux11*)
5907 lt_cv_file_magic_cmd=/usr/bin/file
5908 case $host_cpu in
5909 ia64*)
5910 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5911 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5912 ;;
5913 hppa*64*)
5914 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]'
5915 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5916 ;;
5917 *)
5918 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
5919 lt_cv_file_magic_test_file=/usr/lib/libc.sl
5920 ;;
5921 esac
5922 ;;
5923
5924 interix[3-9]*)
5925 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5926 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5927 ;;
5928
5929 irix5* | irix6* | nonstopux*)
5930 case $LD in
5931 *-32|*"-32 ") libmagic=32-bit;;
5932 *-n32|*"-n32 ") libmagic=N32;;
5933 *-64|*"-64 ") libmagic=64-bit;;
5934 *) libmagic=never-match;;
5935 esac
5936 lt_cv_deplibs_check_method=pass_all
5937 ;;
5938
5939 # This must be Linux ELF.
5940 linux* | k*bsd*-gnu | kopensolaris*-gnu)
5941 lt_cv_deplibs_check_method=pass_all
5942 ;;
5943
5944 netbsd*)
5945 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5946 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5947 else
5948 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5949 fi
5950 ;;
5951
5952 newos6*)
5953 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5954 lt_cv_file_magic_cmd=/usr/bin/file
5955 lt_cv_file_magic_test_file=/usr/lib/libnls.so
5956 ;;
5957
5958 *nto* | *qnx*)
5959 lt_cv_deplibs_check_method=pass_all
5960 ;;
5961
5962 openbsd*)
5963 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5964 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5965 else
5966 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5967 fi
5968 ;;
5969
5970 osf3* | osf4* | osf5*)
5971 lt_cv_deplibs_check_method=pass_all
5972 ;;
5973
5974 rdos*)
5975 lt_cv_deplibs_check_method=pass_all
5976 ;;
5977
5978 solaris*)
5979 lt_cv_deplibs_check_method=pass_all
5980 ;;
5981
5982 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5983 lt_cv_deplibs_check_method=pass_all
5984 ;;
5985
5986 sysv4 | sysv4.3*)
5987 case $host_vendor in
5988 motorola)
5989 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]'
5990 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5991 ;;
5992 ncr)
5993 lt_cv_deplibs_check_method=pass_all
5994 ;;
5995 sequent)
5996 lt_cv_file_magic_cmd='/bin/file'
5997 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5998 ;;
5999 sni)
6000 lt_cv_file_magic_cmd='/bin/file'
6001 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6002 lt_cv_file_magic_test_file=/lib/libc.so
6003 ;;
6004 siemens)
6005 lt_cv_deplibs_check_method=pass_all
6006 ;;
6007 pc)
6008 lt_cv_deplibs_check_method=pass_all
6009 ;;
6010 esac
6011 ;;
6012
6013 tpf*)
6014 lt_cv_deplibs_check_method=pass_all
6015 ;;
6016 esac
6017
6018 fi
6019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
6020 $as_echo "$lt_cv_deplibs_check_method" >&6; }
6021 file_magic_cmd=$lt_cv_file_magic_cmd
6022 deplibs_check_method=$lt_cv_deplibs_check_method
6023 test -z "$deplibs_check_method" && deplibs_check_method=unknown
6024
6025
6026
6027
6028
6029
6030
6031
6032
6033
6034
6035
6036 if test -n "$ac_tool_prefix"; then
6037 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6038 set dummy ${ac_tool_prefix}ar; ac_word=$2
6039 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6040 $as_echo_n "checking for $ac_word... " >&6; }
6041 if test "${ac_cv_prog_AR+set}" = set; then :
6042 $as_echo_n "(cached) " >&6
6043 else
6044 if test -n "$AR"; then
6045 ac_cv_prog_AR="$AR" # Let the user override the test.
6046 else
6047 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6048 for as_dir in $PATH
6049 do
6050 IFS=$as_save_IFS
6051 test -z "$as_dir" && as_dir=.
6052 for ac_exec_ext in '' $ac_executable_extensions; do
6053 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6054 ac_cv_prog_AR="${ac_tool_prefix}ar"
6055 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6056 break 2
6057 fi
6058 done
6059 done
6060 IFS=$as_save_IFS
6061
6062 fi
6063 fi
6064 AR=$ac_cv_prog_AR
6065 if test -n "$AR"; then
6066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6067 $as_echo "$AR" >&6; }
6068 else
6069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6070 $as_echo "no" >&6; }
6071 fi
6072
6073
6074 fi
6075 if test -z "$ac_cv_prog_AR"; then
6076 ac_ct_AR=$AR
6077 # Extract the first word of "ar", so it can be a program name with args.
6078 set dummy ar; ac_word=$2
6079 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6080 $as_echo_n "checking for $ac_word... " >&6; }
6081 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
6082 $as_echo_n "(cached) " >&6
6083 else
6084 if test -n "$ac_ct_AR"; then
6085 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6086 else
6087 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6088 for as_dir in $PATH
6089 do
6090 IFS=$as_save_IFS
6091 test -z "$as_dir" && as_dir=.
6092 for ac_exec_ext in '' $ac_executable_extensions; do
6093 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6094 ac_cv_prog_ac_ct_AR="ar"
6095 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6096 break 2
6097 fi
6098 done
6099 done
6100 IFS=$as_save_IFS
6101
6102 fi
6103 fi
6104 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6105 if test -n "$ac_ct_AR"; then
6106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6107 $as_echo "$ac_ct_AR" >&6; }
6108 else
6109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6110 $as_echo "no" >&6; }
6111 fi
6112
6113 if test "x$ac_ct_AR" = x; then
6114 AR="false"
6115 else
6116 case $cross_compiling:$ac_tool_warned in
6117 yes:)
6118 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6119 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6120 ac_tool_warned=yes ;;
6121 esac
6122 AR=$ac_ct_AR
6123 fi
6124 else
6125 AR="$ac_cv_prog_AR"
6126 fi
6127
6128 test -z "$AR" && AR=ar
6129 test -z "$AR_FLAGS" && AR_FLAGS=cru
6130
6131
6132
6133
6134
6135
6136
6137
6138
6139
6140
6141 if test -n "$ac_tool_prefix"; then
6142 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6143 set dummy ${ac_tool_prefix}strip; ac_word=$2
6144 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6145 $as_echo_n "checking for $ac_word... " >&6; }
6146 if test "${ac_cv_prog_STRIP+set}" = set; then :
6147 $as_echo_n "(cached) " >&6
6148 else
6149 if test -n "$STRIP"; then
6150 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6151 else
6152 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6153 for as_dir in $PATH
6154 do
6155 IFS=$as_save_IFS
6156 test -z "$as_dir" && as_dir=.
6157 for ac_exec_ext in '' $ac_executable_extensions; do
6158 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6159 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6160 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6161 break 2
6162 fi
6163 done
6164 done
6165 IFS=$as_save_IFS
6166
6167 fi
6168 fi
6169 STRIP=$ac_cv_prog_STRIP
6170 if test -n "$STRIP"; then
6171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6172 $as_echo "$STRIP" >&6; }
6173 else
6174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6175 $as_echo "no" >&6; }
6176 fi
6177
6178
6179 fi
6180 if test -z "$ac_cv_prog_STRIP"; then
6181 ac_ct_STRIP=$STRIP
6182 # Extract the first word of "strip", so it can be a program name with args.
6183 set dummy strip; ac_word=$2
6184 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6185 $as_echo_n "checking for $ac_word... " >&6; }
6186 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
6187 $as_echo_n "(cached) " >&6
6188 else
6189 if test -n "$ac_ct_STRIP"; then
6190 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6191 else
6192 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6193 for as_dir in $PATH
6194 do
6195 IFS=$as_save_IFS
6196 test -z "$as_dir" && as_dir=.
6197 for ac_exec_ext in '' $ac_executable_extensions; do
6198 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6199 ac_cv_prog_ac_ct_STRIP="strip"
6200 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6201 break 2
6202 fi
6203 done
6204 done
6205 IFS=$as_save_IFS
6206
6207 fi
6208 fi
6209 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6210 if test -n "$ac_ct_STRIP"; then
6211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6212 $as_echo "$ac_ct_STRIP" >&6; }
6213 else
6214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6215 $as_echo "no" >&6; }
6216 fi
6217
6218 if test "x$ac_ct_STRIP" = x; then
6219 STRIP=":"
6220 else
6221 case $cross_compiling:$ac_tool_warned in
6222 yes:)
6223 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6224 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6225 ac_tool_warned=yes ;;
6226 esac
6227 STRIP=$ac_ct_STRIP
6228 fi
6229 else
6230 STRIP="$ac_cv_prog_STRIP"
6231 fi
6232
6233 test -z "$STRIP" && STRIP=:
6234
6235
6236
6237
6238
6239
6240 if test -n "$ac_tool_prefix"; then
6241 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6242 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6243 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6244 $as_echo_n "checking for $ac_word... " >&6; }
6245 if test "${ac_cv_prog_RANLIB+set}" = set; then :
6246 $as_echo_n "(cached) " >&6
6247 else
6248 if test -n "$RANLIB"; then
6249 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6250 else
6251 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6252 for as_dir in $PATH
6253 do
6254 IFS=$as_save_IFS
6255 test -z "$as_dir" && as_dir=.
6256 for ac_exec_ext in '' $ac_executable_extensions; do
6257 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6258 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6259 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6260 break 2
6261 fi
6262 done
6263 done
6264 IFS=$as_save_IFS
6265
6266 fi
6267 fi
6268 RANLIB=$ac_cv_prog_RANLIB
6269 if test -n "$RANLIB"; then
6270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6271 $as_echo "$RANLIB" >&6; }
6272 else
6273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6274 $as_echo "no" >&6; }
6275 fi
6276
6277
6278 fi
6279 if test -z "$ac_cv_prog_RANLIB"; then
6280 ac_ct_RANLIB=$RANLIB
6281 # Extract the first word of "ranlib", so it can be a program name with args.
6282 set dummy ranlib; ac_word=$2
6283 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6284 $as_echo_n "checking for $ac_word... " >&6; }
6285 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
6286 $as_echo_n "(cached) " >&6
6287 else
6288 if test -n "$ac_ct_RANLIB"; then
6289 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6290 else
6291 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6292 for as_dir in $PATH
6293 do
6294 IFS=$as_save_IFS
6295 test -z "$as_dir" && as_dir=.
6296 for ac_exec_ext in '' $ac_executable_extensions; do
6297 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6298 ac_cv_prog_ac_ct_RANLIB="ranlib"
6299 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6300 break 2
6301 fi
6302 done
6303 done
6304 IFS=$as_save_IFS
6305
6306 fi
6307 fi
6308 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6309 if test -n "$ac_ct_RANLIB"; then
6310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6311 $as_echo "$ac_ct_RANLIB" >&6; }
6312 else
6313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6314 $as_echo "no" >&6; }
6315 fi
6316
6317 if test "x$ac_ct_RANLIB" = x; then
6318 RANLIB=":"
6319 else
6320 case $cross_compiling:$ac_tool_warned in
6321 yes:)
6322 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6323 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6324 ac_tool_warned=yes ;;
6325 esac
6326 RANLIB=$ac_ct_RANLIB
6327 fi
6328 else
6329 RANLIB="$ac_cv_prog_RANLIB"
6330 fi
6331
6332 test -z "$RANLIB" && RANLIB=:
6333
6334
6335
6336
6337
6338
6339 # Determine commands to create old-style static archives.
6340 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6341 old_postinstall_cmds='chmod 644 $oldlib'
6342 old_postuninstall_cmds=
6343
6344 if test -n "$RANLIB"; then
6345 case $host_os in
6346 openbsd*)
6347 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
6348 ;;
6349 *)
6350 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
6351 ;;
6352 esac
6353 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6354 fi
6355
6356 case $host_os in
6357 darwin*)
6358 lock_old_archive_extraction=yes ;;
6359 *)
6360 lock_old_archive_extraction=no ;;
6361 esac
6362
6363
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 # If no C compiler was specified, use CC.
6402 LTCC=${LTCC-"$CC"}
6403
6404 # If no C compiler flags were specified, use CFLAGS.
6405 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6406
6407 # Allow CC to be a program name with arguments.
6408 compiler=$CC
6409
6410
6411 # Check for command to grab the raw symbol name followed by C symbol from nm.
6412 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6413 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6414 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
6415 $as_echo_n "(cached) " >&6
6416 else
6417
6418 # These are sane defaults that work on at least a few old systems.
6419 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
6420
6421 # Character class describing NM global symbol codes.
6422 symcode='[BCDEGRST]'
6423
6424 # Regexp to match symbols that can be accessed directly from C.
6425 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6426
6427 # Define system-specific variables.
6428 case $host_os in
6429 aix*)
6430 symcode='[BCDT]'
6431 ;;
6432 cygwin* | mingw* | pw32* | cegcc*)
6433 symcode='[ABCDGISTW]'
6434 ;;
6435 hpux*)
6436 if test "$host_cpu" = ia64; then
6437 symcode='[ABCDEGRST]'
6438 fi
6439 ;;
6440 irix* | nonstopux*)
6441 symcode='[BCDEGRST]'
6442 ;;
6443 osf*)
6444 symcode='[BCDEGQRST]'
6445 ;;
6446 solaris*)
6447 symcode='[BDRT]'
6448 ;;
6449 sco3.2v5*)
6450 symcode='[DT]'
6451 ;;
6452 sysv4.2uw2*)
6453 symcode='[DT]'
6454 ;;
6455 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6456 symcode='[ABDT]'
6457 ;;
6458 sysv4)
6459 symcode='[DFNSTU]'
6460 ;;
6461 esac
6462
6463 # If we're using GNU nm, then use its standard symbol codes.
6464 case `$NM -V 2>&1` in
6465 *GNU* | *'with BFD'*)
6466 symcode='[ABCDGIRSTW]' ;;
6467 esac
6468
6469 # Transform an extracted symbol line into a proper C declaration.
6470 # Some systems (esp. on ia64) link data and code symbols differently,
6471 # so use this general approach.
6472 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6473
6474 # Transform an extracted symbol line into symbol name and symbol address
6475 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
6476 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'"
6477
6478 # Handle CRLF in mingw tool chain
6479 opt_cr=
6480 case $build_os in
6481 mingw*)
6482 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6483 ;;
6484 esac
6485
6486 # Try without a prefix underscore, then with it.
6487 for ac_symprfx in "" "_"; do
6488
6489 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6490 symxfrm="\\1 $ac_symprfx\\2 \\2"
6491
6492 # Write the raw and C identifiers.
6493 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6494 # Fake it for dumpbin and say T for any non-static function
6495 # and D for any global variable.
6496 # Also find C++ and __fastcall symbols from MSVC++,
6497 # which start with @ or ?.
6498 lt_cv_sys_global_symbol_pipe="$AWK '"\
6499 " {last_section=section; section=\$ 3};"\
6500 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6501 " \$ 0!~/External *\|/{next};"\
6502 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6503 " {if(hide[section]) next};"\
6504 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
6505 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
6506 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
6507 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
6508 " ' prfx=^$ac_symprfx"
6509 else
6510 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6511 fi
6512
6513 # Check to see that the pipe works correctly.
6514 pipe_works=no
6515
6516 rm -f conftest*
6517 cat > conftest.$ac_ext <<_LT_EOF
6518 #ifdef __cplusplus
6519 extern "C" {
6520 #endif
6521 char nm_test_var;
6522 void nm_test_func(void);
6523 void nm_test_func(void){}
6524 #ifdef __cplusplus
6525 }
6526 #endif
6527 int main(){nm_test_var='a';nm_test_func();return(0);}
6528 _LT_EOF
6529
6530 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6531 (eval $ac_compile) 2>&5
6532 ac_status=$?
6533 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6534 test $ac_status = 0; }; then
6535 # Now try to grab the symbols.
6536 nlist=conftest.nm
6537 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
6538 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
6539 ac_status=$?
6540 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6541 test $ac_status = 0; } && test -s "$nlist"; then
6542 # Try sorting and uniquifying the output.
6543 if sort "$nlist" | uniq > "$nlist"T; then
6544 mv -f "$nlist"T "$nlist"
6545 else
6546 rm -f "$nlist"T
6547 fi
6548
6549 # Make sure that we snagged all the symbols we need.
6550 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6551 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6552 cat <<_LT_EOF > conftest.$ac_ext
6553 #ifdef __cplusplus
6554 extern "C" {
6555 #endif
6556
6557 _LT_EOF
6558 # Now generate the symbol file.
6559 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6560
6561 cat <<_LT_EOF >> conftest.$ac_ext
6562
6563 /* The mapping between symbol names and symbols. */
6564 const struct {
6565 const char *name;
6566 void *address;
6567 }
6568 lt__PROGRAM__LTX_preloaded_symbols[] =
6569 {
6570 { "@PROGRAM@", (void *) 0 },
6571 _LT_EOF
6572 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6573 cat <<\_LT_EOF >> conftest.$ac_ext
6574 {0, (void *) 0}
6575 };
6576
6577 /* This works around a problem in FreeBSD linker */
6578 #ifdef FREEBSD_WORKAROUND
6579 static const void *lt_preloaded_setup() {
6580 return lt__PROGRAM__LTX_preloaded_symbols;
6581 }
6582 #endif
6583
6584 #ifdef __cplusplus
6585 }
6586 #endif
6587 _LT_EOF
6588 # Now try linking the two files.
6589 mv conftest.$ac_objext conftstm.$ac_objext
6590 lt_save_LIBS="$LIBS"
6591 lt_save_CFLAGS="$CFLAGS"
6592 LIBS="conftstm.$ac_objext"
6593 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6594 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6595 (eval $ac_link) 2>&5
6596 ac_status=$?
6597 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6598 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
6599 pipe_works=yes
6600 fi
6601 LIBS="$lt_save_LIBS"
6602 CFLAGS="$lt_save_CFLAGS"
6603 else
6604 echo "cannot find nm_test_func in $nlist" >&5
6605 fi
6606 else
6607 echo "cannot find nm_test_var in $nlist" >&5
6608 fi
6609 else
6610 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6611 fi
6612 else
6613 echo "$progname: failed program was:" >&5
6614 cat conftest.$ac_ext >&5
6615 fi
6616 rm -rf conftest* conftst*
6617
6618 # Do not use the global_symbol_pipe unless it works.
6619 if test "$pipe_works" = yes; then
6620 break
6621 else
6622 lt_cv_sys_global_symbol_pipe=
6623 fi
6624 done
6625
6626 fi
6627
6628 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6629 lt_cv_sys_global_symbol_to_cdecl=
6630 fi
6631 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6633 $as_echo "failed" >&6; }
6634 else
6635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6636 $as_echo "ok" >&6; }
6637 fi
6638
6639
6640
6641
6642
6643
6644
6645
6646
6647
6648
6649
6650
6651
6652
6653
6654
6655
6656
6657
6658
6659
6660 # Check whether --enable-libtool-lock was given.
6661 if test "${enable_libtool_lock+set}" = set; then :
6662 enableval=$enable_libtool_lock;
6663 fi
6664
6665 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6666
6667 # Some flags need to be propagated to the compiler or linker for good
6668 # libtool support.
6669 case $host in
6670 ia64-*-hpux*)
6671 # Find out which ABI we are using.
6672 echo 'int i;' > conftest.$ac_ext
6673 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6674 (eval $ac_compile) 2>&5
6675 ac_status=$?
6676 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6677 test $ac_status = 0; }; then
6678 case `/usr/bin/file conftest.$ac_objext` in
6679 *ELF-32*)
6680 HPUX_IA64_MODE="32"
6681 ;;
6682 *ELF-64*)
6683 HPUX_IA64_MODE="64"
6684 ;;
6685 esac
6686 fi
6687 rm -rf conftest*
6688 ;;
6689 *-*-irix6*)
6690 # Find out which ABI we are using.
6691 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6692 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6693 (eval $ac_compile) 2>&5
6694 ac_status=$?
6695 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6696 test $ac_status = 0; }; then
6697 if test "$lt_cv_prog_gnu_ld" = yes; then
6698 case `/usr/bin/file conftest.$ac_objext` in
6699 *32-bit*)
6700 LD="${LD-ld} -melf32bsmip"
6701 ;;
6702 *N32*)
6703 LD="${LD-ld} -melf32bmipn32"
6704 ;;
6705 *64-bit*)
6706 LD="${LD-ld} -melf64bmip"
6707 ;;
6708 esac
6709 else
6710 case `/usr/bin/file conftest.$ac_objext` in
6711 *32-bit*)
6712 LD="${LD-ld} -32"
6713 ;;
6714 *N32*)
6715 LD="${LD-ld} -n32"
6716 ;;
6717 *64-bit*)
6718 LD="${LD-ld} -64"
6719 ;;
6720 esac
6721 fi
6722 fi
6723 rm -rf conftest*
6724 ;;
6725
6726 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
6727 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6728 # Find out which ABI we are using.
6729 echo 'int i;' > conftest.$ac_ext
6730 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6731 (eval $ac_compile) 2>&5
6732 ac_status=$?
6733 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6734 test $ac_status = 0; }; then
6735 case `/usr/bin/file conftest.o` in
6736 *32-bit*)
6737 case $host in
6738 x86_64-*kfreebsd*-gnu)
6739 LD="${LD-ld} -m elf_i386_fbsd"
6740 ;;
6741 x86_64-*linux*)
6742 case `/usr/bin/file conftest.o` in
6743 *x86-64*)
6744 LD="${LD-ld} -m elf32_x86_64"
6745 ;;
6746 *)
6747 LD="${LD-ld} -m elf_i386"
6748 ;;
6749 esac
6750 ;;
6751 powerpc64le-*linux*)
6752 LD="${LD-ld} -m elf32lppclinux"
6753 ;;
6754 powerpc64-*linux*)
6755 LD="${LD-ld} -m elf32ppclinux"
6756 ;;
6757 s390x-*linux*)
6758 LD="${LD-ld} -m elf_s390"
6759 ;;
6760 sparc64-*linux*)
6761 LD="${LD-ld} -m elf32_sparc"
6762 ;;
6763 esac
6764 ;;
6765 *64-bit*)
6766 case $host in
6767 x86_64-*kfreebsd*-gnu)
6768 LD="${LD-ld} -m elf_x86_64_fbsd"
6769 ;;
6770 x86_64-*linux*)
6771 LD="${LD-ld} -m elf_x86_64"
6772 ;;
6773 powerpcle-*linux*)
6774 LD="${LD-ld} -m elf64lppc"
6775 ;;
6776 powerpc-*linux*)
6777 LD="${LD-ld} -m elf64ppc"
6778 ;;
6779 s390*-*linux*|s390*-*tpf*)
6780 LD="${LD-ld} -m elf64_s390"
6781 ;;
6782 sparc*-*linux*)
6783 LD="${LD-ld} -m elf64_sparc"
6784 ;;
6785 esac
6786 ;;
6787 esac
6788 fi
6789 rm -rf conftest*
6790 ;;
6791
6792 *-*-sco3.2v5*)
6793 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6794 SAVE_CFLAGS="$CFLAGS"
6795 CFLAGS="$CFLAGS -belf"
6796 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
6797 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
6798 if test "${lt_cv_cc_needs_belf+set}" = set; then :
6799 $as_echo_n "(cached) " >&6
6800 else
6801 ac_ext=c
6802 ac_cpp='$CPP $CPPFLAGS'
6803 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6804 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6805 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6806
6807 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6808 /* end confdefs.h. */
6809
6810 int
6811 main ()
6812 {
6813
6814 ;
6815 return 0;
6816 }
6817 _ACEOF
6818 if ac_fn_c_try_link "$LINENO"; then :
6819 lt_cv_cc_needs_belf=yes
6820 else
6821 lt_cv_cc_needs_belf=no
6822 fi
6823 rm -f core conftest.err conftest.$ac_objext \
6824 conftest$ac_exeext conftest.$ac_ext
6825 ac_ext=c
6826 ac_cpp='$CPP $CPPFLAGS'
6827 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6828 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6829 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6830
6831 fi
6832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
6833 $as_echo "$lt_cv_cc_needs_belf" >&6; }
6834 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6835 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6836 CFLAGS="$SAVE_CFLAGS"
6837 fi
6838 ;;
6839 sparc*-*solaris*)
6840 # Find out which ABI we are using.
6841 echo 'int i;' > conftest.$ac_ext
6842 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6843 (eval $ac_compile) 2>&5
6844 ac_status=$?
6845 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6846 test $ac_status = 0; }; then
6847 case `/usr/bin/file conftest.o` in
6848 *64-bit*)
6849 case $lt_cv_prog_gnu_ld in
6850 yes*) LD="${LD-ld} -m elf64_sparc" ;;
6851 *)
6852 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6853 LD="${LD-ld} -64"
6854 fi
6855 ;;
6856 esac
6857 ;;
6858 esac
6859 fi
6860 rm -rf conftest*
6861 ;;
6862 esac
6863
6864 need_locks="$enable_libtool_lock"
6865
6866
6867 case $host_os in
6868 rhapsody* | darwin*)
6869 if test -n "$ac_tool_prefix"; then
6870 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
6871 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
6872 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6873 $as_echo_n "checking for $ac_word... " >&6; }
6874 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
6875 $as_echo_n "(cached) " >&6
6876 else
6877 if test -n "$DSYMUTIL"; then
6878 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
6879 else
6880 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6881 for as_dir in $PATH
6882 do
6883 IFS=$as_save_IFS
6884 test -z "$as_dir" && as_dir=.
6885 for ac_exec_ext in '' $ac_executable_extensions; do
6886 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6887 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
6888 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6889 break 2
6890 fi
6891 done
6892 done
6893 IFS=$as_save_IFS
6894
6895 fi
6896 fi
6897 DSYMUTIL=$ac_cv_prog_DSYMUTIL
6898 if test -n "$DSYMUTIL"; then
6899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
6900 $as_echo "$DSYMUTIL" >&6; }
6901 else
6902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6903 $as_echo "no" >&6; }
6904 fi
6905
6906
6907 fi
6908 if test -z "$ac_cv_prog_DSYMUTIL"; then
6909 ac_ct_DSYMUTIL=$DSYMUTIL
6910 # Extract the first word of "dsymutil", so it can be a program name with args.
6911 set dummy dsymutil; ac_word=$2
6912 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6913 $as_echo_n "checking for $ac_word... " >&6; }
6914 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
6915 $as_echo_n "(cached) " >&6
6916 else
6917 if test -n "$ac_ct_DSYMUTIL"; then
6918 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
6919 else
6920 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6921 for as_dir in $PATH
6922 do
6923 IFS=$as_save_IFS
6924 test -z "$as_dir" && as_dir=.
6925 for ac_exec_ext in '' $ac_executable_extensions; do
6926 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6927 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
6928 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6929 break 2
6930 fi
6931 done
6932 done
6933 IFS=$as_save_IFS
6934
6935 fi
6936 fi
6937 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
6938 if test -n "$ac_ct_DSYMUTIL"; then
6939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
6940 $as_echo "$ac_ct_DSYMUTIL" >&6; }
6941 else
6942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6943 $as_echo "no" >&6; }
6944 fi
6945
6946 if test "x$ac_ct_DSYMUTIL" = x; then
6947 DSYMUTIL=":"
6948 else
6949 case $cross_compiling:$ac_tool_warned in
6950 yes:)
6951 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6952 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6953 ac_tool_warned=yes ;;
6954 esac
6955 DSYMUTIL=$ac_ct_DSYMUTIL
6956 fi
6957 else
6958 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
6959 fi
6960
6961 if test -n "$ac_tool_prefix"; then
6962 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
6963 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
6964 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6965 $as_echo_n "checking for $ac_word... " >&6; }
6966 if test "${ac_cv_prog_NMEDIT+set}" = set; then :
6967 $as_echo_n "(cached) " >&6
6968 else
6969 if test -n "$NMEDIT"; then
6970 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
6971 else
6972 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6973 for as_dir in $PATH
6974 do
6975 IFS=$as_save_IFS
6976 test -z "$as_dir" && as_dir=.
6977 for ac_exec_ext in '' $ac_executable_extensions; do
6978 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6979 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
6980 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6981 break 2
6982 fi
6983 done
6984 done
6985 IFS=$as_save_IFS
6986
6987 fi
6988 fi
6989 NMEDIT=$ac_cv_prog_NMEDIT
6990 if test -n "$NMEDIT"; then
6991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
6992 $as_echo "$NMEDIT" >&6; }
6993 else
6994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6995 $as_echo "no" >&6; }
6996 fi
6997
6998
6999 fi
7000 if test -z "$ac_cv_prog_NMEDIT"; then
7001 ac_ct_NMEDIT=$NMEDIT
7002 # Extract the first word of "nmedit", so it can be a program name with args.
7003 set dummy nmedit; ac_word=$2
7004 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7005 $as_echo_n "checking for $ac_word... " >&6; }
7006 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
7007 $as_echo_n "(cached) " >&6
7008 else
7009 if test -n "$ac_ct_NMEDIT"; then
7010 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7011 else
7012 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7013 for as_dir in $PATH
7014 do
7015 IFS=$as_save_IFS
7016 test -z "$as_dir" && as_dir=.
7017 for ac_exec_ext in '' $ac_executable_extensions; do
7018 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7019 ac_cv_prog_ac_ct_NMEDIT="nmedit"
7020 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7021 break 2
7022 fi
7023 done
7024 done
7025 IFS=$as_save_IFS
7026
7027 fi
7028 fi
7029 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7030 if test -n "$ac_ct_NMEDIT"; then
7031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7032 $as_echo "$ac_ct_NMEDIT" >&6; }
7033 else
7034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7035 $as_echo "no" >&6; }
7036 fi
7037
7038 if test "x$ac_ct_NMEDIT" = x; then
7039 NMEDIT=":"
7040 else
7041 case $cross_compiling:$ac_tool_warned in
7042 yes:)
7043 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7044 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7045 ac_tool_warned=yes ;;
7046 esac
7047 NMEDIT=$ac_ct_NMEDIT
7048 fi
7049 else
7050 NMEDIT="$ac_cv_prog_NMEDIT"
7051 fi
7052
7053 if test -n "$ac_tool_prefix"; then
7054 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7055 set dummy ${ac_tool_prefix}lipo; ac_word=$2
7056 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7057 $as_echo_n "checking for $ac_word... " >&6; }
7058 if test "${ac_cv_prog_LIPO+set}" = set; then :
7059 $as_echo_n "(cached) " >&6
7060 else
7061 if test -n "$LIPO"; then
7062 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7063 else
7064 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7065 for as_dir in $PATH
7066 do
7067 IFS=$as_save_IFS
7068 test -z "$as_dir" && as_dir=.
7069 for ac_exec_ext in '' $ac_executable_extensions; do
7070 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7071 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7072 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7073 break 2
7074 fi
7075 done
7076 done
7077 IFS=$as_save_IFS
7078
7079 fi
7080 fi
7081 LIPO=$ac_cv_prog_LIPO
7082 if test -n "$LIPO"; then
7083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7084 $as_echo "$LIPO" >&6; }
7085 else
7086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7087 $as_echo "no" >&6; }
7088 fi
7089
7090
7091 fi
7092 if test -z "$ac_cv_prog_LIPO"; then
7093 ac_ct_LIPO=$LIPO
7094 # Extract the first word of "lipo", so it can be a program name with args.
7095 set dummy lipo; ac_word=$2
7096 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7097 $as_echo_n "checking for $ac_word... " >&6; }
7098 if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
7099 $as_echo_n "(cached) " >&6
7100 else
7101 if test -n "$ac_ct_LIPO"; then
7102 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7103 else
7104 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7105 for as_dir in $PATH
7106 do
7107 IFS=$as_save_IFS
7108 test -z "$as_dir" && as_dir=.
7109 for ac_exec_ext in '' $ac_executable_extensions; do
7110 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7111 ac_cv_prog_ac_ct_LIPO="lipo"
7112 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7113 break 2
7114 fi
7115 done
7116 done
7117 IFS=$as_save_IFS
7118
7119 fi
7120 fi
7121 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7122 if test -n "$ac_ct_LIPO"; then
7123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7124 $as_echo "$ac_ct_LIPO" >&6; }
7125 else
7126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7127 $as_echo "no" >&6; }
7128 fi
7129
7130 if test "x$ac_ct_LIPO" = x; then
7131 LIPO=":"
7132 else
7133 case $cross_compiling:$ac_tool_warned in
7134 yes:)
7135 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7136 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7137 ac_tool_warned=yes ;;
7138 esac
7139 LIPO=$ac_ct_LIPO
7140 fi
7141 else
7142 LIPO="$ac_cv_prog_LIPO"
7143 fi
7144
7145 if test -n "$ac_tool_prefix"; then
7146 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7147 set dummy ${ac_tool_prefix}otool; ac_word=$2
7148 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7149 $as_echo_n "checking for $ac_word... " >&6; }
7150 if test "${ac_cv_prog_OTOOL+set}" = set; then :
7151 $as_echo_n "(cached) " >&6
7152 else
7153 if test -n "$OTOOL"; then
7154 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7155 else
7156 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7157 for as_dir in $PATH
7158 do
7159 IFS=$as_save_IFS
7160 test -z "$as_dir" && as_dir=.
7161 for ac_exec_ext in '' $ac_executable_extensions; do
7162 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7163 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7164 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7165 break 2
7166 fi
7167 done
7168 done
7169 IFS=$as_save_IFS
7170
7171 fi
7172 fi
7173 OTOOL=$ac_cv_prog_OTOOL
7174 if test -n "$OTOOL"; then
7175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7176 $as_echo "$OTOOL" >&6; }
7177 else
7178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7179 $as_echo "no" >&6; }
7180 fi
7181
7182
7183 fi
7184 if test -z "$ac_cv_prog_OTOOL"; then
7185 ac_ct_OTOOL=$OTOOL
7186 # Extract the first word of "otool", so it can be a program name with args.
7187 set dummy otool; ac_word=$2
7188 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7189 $as_echo_n "checking for $ac_word... " >&6; }
7190 if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
7191 $as_echo_n "(cached) " >&6
7192 else
7193 if test -n "$ac_ct_OTOOL"; then
7194 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7195 else
7196 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7197 for as_dir in $PATH
7198 do
7199 IFS=$as_save_IFS
7200 test -z "$as_dir" && as_dir=.
7201 for ac_exec_ext in '' $ac_executable_extensions; do
7202 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7203 ac_cv_prog_ac_ct_OTOOL="otool"
7204 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7205 break 2
7206 fi
7207 done
7208 done
7209 IFS=$as_save_IFS
7210
7211 fi
7212 fi
7213 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7214 if test -n "$ac_ct_OTOOL"; then
7215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7216 $as_echo "$ac_ct_OTOOL" >&6; }
7217 else
7218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7219 $as_echo "no" >&6; }
7220 fi
7221
7222 if test "x$ac_ct_OTOOL" = x; then
7223 OTOOL=":"
7224 else
7225 case $cross_compiling:$ac_tool_warned in
7226 yes:)
7227 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7228 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7229 ac_tool_warned=yes ;;
7230 esac
7231 OTOOL=$ac_ct_OTOOL
7232 fi
7233 else
7234 OTOOL="$ac_cv_prog_OTOOL"
7235 fi
7236
7237 if test -n "$ac_tool_prefix"; then
7238 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7239 set dummy ${ac_tool_prefix}otool64; ac_word=$2
7240 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7241 $as_echo_n "checking for $ac_word... " >&6; }
7242 if test "${ac_cv_prog_OTOOL64+set}" = set; then :
7243 $as_echo_n "(cached) " >&6
7244 else
7245 if test -n "$OTOOL64"; then
7246 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7247 else
7248 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7249 for as_dir in $PATH
7250 do
7251 IFS=$as_save_IFS
7252 test -z "$as_dir" && as_dir=.
7253 for ac_exec_ext in '' $ac_executable_extensions; do
7254 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7255 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7256 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7257 break 2
7258 fi
7259 done
7260 done
7261 IFS=$as_save_IFS
7262
7263 fi
7264 fi
7265 OTOOL64=$ac_cv_prog_OTOOL64
7266 if test -n "$OTOOL64"; then
7267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
7268 $as_echo "$OTOOL64" >&6; }
7269 else
7270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7271 $as_echo "no" >&6; }
7272 fi
7273
7274
7275 fi
7276 if test -z "$ac_cv_prog_OTOOL64"; then
7277 ac_ct_OTOOL64=$OTOOL64
7278 # Extract the first word of "otool64", so it can be a program name with args.
7279 set dummy otool64; ac_word=$2
7280 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7281 $as_echo_n "checking for $ac_word... " >&6; }
7282 if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
7283 $as_echo_n "(cached) " >&6
7284 else
7285 if test -n "$ac_ct_OTOOL64"; then
7286 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7287 else
7288 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7289 for as_dir in $PATH
7290 do
7291 IFS=$as_save_IFS
7292 test -z "$as_dir" && as_dir=.
7293 for ac_exec_ext in '' $ac_executable_extensions; do
7294 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7295 ac_cv_prog_ac_ct_OTOOL64="otool64"
7296 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7297 break 2
7298 fi
7299 done
7300 done
7301 IFS=$as_save_IFS
7302
7303 fi
7304 fi
7305 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7306 if test -n "$ac_ct_OTOOL64"; then
7307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
7308 $as_echo "$ac_ct_OTOOL64" >&6; }
7309 else
7310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7311 $as_echo "no" >&6; }
7312 fi
7313
7314 if test "x$ac_ct_OTOOL64" = x; then
7315 OTOOL64=":"
7316 else
7317 case $cross_compiling:$ac_tool_warned in
7318 yes:)
7319 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7320 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7321 ac_tool_warned=yes ;;
7322 esac
7323 OTOOL64=$ac_ct_OTOOL64
7324 fi
7325 else
7326 OTOOL64="$ac_cv_prog_OTOOL64"
7327 fi
7328
7329
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 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7356 $as_echo_n "checking for -single_module linker flag... " >&6; }
7357 if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
7358 $as_echo_n "(cached) " >&6
7359 else
7360 lt_cv_apple_cc_single_mod=no
7361 if test -z "${LT_MULTI_MODULE}"; then
7362 # By default we will add the -single_module flag. You can override
7363 # by either setting the environment variable LT_MULTI_MODULE
7364 # non-empty at configure time, or by adding -multi_module to the
7365 # link flags.
7366 rm -rf libconftest.dylib*
7367 echo "int foo(void){return 1;}" > conftest.c
7368 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7369 -dynamiclib -Wl,-single_module conftest.c" >&5
7370 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7371 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7372 _lt_result=$?
7373 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
7374 lt_cv_apple_cc_single_mod=yes
7375 else
7376 cat conftest.err >&5
7377 fi
7378 rm -rf libconftest.dylib*
7379 rm -f conftest.*
7380 fi
7381 fi
7382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7383 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7384 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7385 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7386 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
7387 $as_echo_n "(cached) " >&6
7388 else
7389 lt_cv_ld_exported_symbols_list=no
7390 save_LDFLAGS=$LDFLAGS
7391 echo "_main" > conftest.sym
7392 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7393 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7394 /* end confdefs.h. */
7395
7396 int
7397 main ()
7398 {
7399
7400 ;
7401 return 0;
7402 }
7403 _ACEOF
7404 if ac_fn_c_try_link "$LINENO"; then :
7405 lt_cv_ld_exported_symbols_list=yes
7406 else
7407 lt_cv_ld_exported_symbols_list=no
7408 fi
7409 rm -f core conftest.err conftest.$ac_objext \
7410 conftest$ac_exeext conftest.$ac_ext
7411 LDFLAGS="$save_LDFLAGS"
7412
7413 fi
7414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7415 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7416 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
7417 $as_echo_n "checking for -force_load linker flag... " >&6; }
7418 if test "${lt_cv_ld_force_load+set}" = set; then :
7419 $as_echo_n "(cached) " >&6
7420 else
7421 lt_cv_ld_force_load=no
7422 cat > conftest.c << _LT_EOF
7423 int forced_loaded() { return 2;}
7424 _LT_EOF
7425 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
7426 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
7427 echo "$AR cru libconftest.a conftest.o" >&5
7428 $AR cru libconftest.a conftest.o 2>&5
7429 cat > conftest.c << _LT_EOF
7430 int main() { return 0;}
7431 _LT_EOF
7432 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
7433 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
7434 _lt_result=$?
7435 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
7436 lt_cv_ld_force_load=yes
7437 else
7438 cat conftest.err >&5
7439 fi
7440 rm -f conftest.err libconftest.a conftest conftest.c
7441 rm -rf conftest.dSYM
7442
7443 fi
7444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
7445 $as_echo "$lt_cv_ld_force_load" >&6; }
7446 case $host_os in
7447 rhapsody* | darwin1.[012])
7448 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7449 darwin1.*)
7450 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7451 darwin*) # darwin 5.x on
7452 # if running on 10.5 or later, the deployment target defaults
7453 # to the OS version, if on x86, and 10.4, the deployment
7454 # target defaults to 10.4. Don't you love it?
7455 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7456 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7457 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7458 10.[012][,.]*)
7459 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7460 10.*)
7461 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7462 esac
7463 ;;
7464 esac
7465 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7466 _lt_dar_single_mod='$single_module'
7467 fi
7468 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7469 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7470 else
7471 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
7472 fi
7473 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
7474 _lt_dsymutil='~$DSYMUTIL $lib || :'
7475 else
7476 _lt_dsymutil=
7477 fi
7478 ;;
7479 esac
7480
7481 for ac_header in dlfcn.h
7482 do :
7483 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7484 "
7485 if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
7486 cat >>confdefs.h <<_ACEOF
7487 #define HAVE_DLFCN_H 1
7488 _ACEOF
7489
7490 fi
7491
7492 done
7493
7494
7495
7496
7497
7498 # Set options
7499
7500
7501
7502 enable_dlopen=no
7503
7504
7505 enable_win32_dll=no
7506
7507
7508 # Check whether --enable-shared was given.
7509 if test "${enable_shared+set}" = set; then :
7510 enableval=$enable_shared; p=${PACKAGE-default}
7511 case $enableval in
7512 yes) enable_shared=yes ;;
7513 no) enable_shared=no ;;
7514 *)
7515 enable_shared=no
7516 # Look at the argument we got. We use all the common list separators.
7517 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7518 for pkg in $enableval; do
7519 IFS="$lt_save_ifs"
7520 if test "X$pkg" = "X$p"; then
7521 enable_shared=yes
7522 fi
7523 done
7524 IFS="$lt_save_ifs"
7525 ;;
7526 esac
7527 else
7528 enable_shared=yes
7529 fi
7530
7531
7532
7533
7534
7535
7536
7537
7538
7539 # Check whether --enable-static was given.
7540 if test "${enable_static+set}" = set; then :
7541 enableval=$enable_static; p=${PACKAGE-default}
7542 case $enableval in
7543 yes) enable_static=yes ;;
7544 no) enable_static=no ;;
7545 *)
7546 enable_static=no
7547 # Look at the argument we got. We use all the common list separators.
7548 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7549 for pkg in $enableval; do
7550 IFS="$lt_save_ifs"
7551 if test "X$pkg" = "X$p"; then
7552 enable_static=yes
7553 fi
7554 done
7555 IFS="$lt_save_ifs"
7556 ;;
7557 esac
7558 else
7559 enable_static=yes
7560 fi
7561
7562
7563
7564
7565
7566
7567
7568
7569
7570
7571 # Check whether --with-pic was given.
7572 if test "${with_pic+set}" = set; then :
7573 withval=$with_pic; pic_mode="$withval"
7574 else
7575 pic_mode=default
7576 fi
7577
7578
7579 test -z "$pic_mode" && pic_mode=default
7580
7581
7582
7583
7584
7585
7586
7587 # Check whether --enable-fast-install was given.
7588 if test "${enable_fast_install+set}" = set; then :
7589 enableval=$enable_fast_install; p=${PACKAGE-default}
7590 case $enableval in
7591 yes) enable_fast_install=yes ;;
7592 no) enable_fast_install=no ;;
7593 *)
7594 enable_fast_install=no
7595 # Look at the argument we got. We use all the common list separators.
7596 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7597 for pkg in $enableval; do
7598 IFS="$lt_save_ifs"
7599 if test "X$pkg" = "X$p"; then
7600 enable_fast_install=yes
7601 fi
7602 done
7603 IFS="$lt_save_ifs"
7604 ;;
7605 esac
7606 else
7607 enable_fast_install=yes
7608 fi
7609
7610
7611
7612
7613
7614
7615
7616
7617
7618
7619
7620 # This can be used to rebuild libtool when needed
7621 LIBTOOL_DEPS="$ltmain"
7622
7623 # Always use our own libtool.
7624 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
7625
7626
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 test -z "$LN_S" && LN_S="ln -s"
7652
7653
7654
7655
7656
7657
7658
7659
7660
7661
7662
7663
7664
7665
7666 if test -n "${ZSH_VERSION+set}" ; then
7667 setopt NO_GLOB_SUBST
7668 fi
7669
7670 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
7671 $as_echo_n "checking for objdir... " >&6; }
7672 if test "${lt_cv_objdir+set}" = set; then :
7673 $as_echo_n "(cached) " >&6
7674 else
7675 rm -f .libs 2>/dev/null
7676 mkdir .libs 2>/dev/null
7677 if test -d .libs; then
7678 lt_cv_objdir=.libs
7679 else
7680 # MS-DOS does not allow filenames that begin with a dot.
7681 lt_cv_objdir=_libs
7682 fi
7683 rmdir .libs 2>/dev/null
7684 fi
7685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
7686 $as_echo "$lt_cv_objdir" >&6; }
7687 objdir=$lt_cv_objdir
7688
7689
7690
7691
7692
7693 cat >>confdefs.h <<_ACEOF
7694 #define LT_OBJDIR "$lt_cv_objdir/"
7695 _ACEOF
7696
7697
7698
7699
7700 case $host_os in
7701 aix3*)
7702 # AIX sometimes has problems with the GCC collect2 program. For some
7703 # reason, if we set the COLLECT_NAMES environment variable, the problems
7704 # vanish in a puff of smoke.
7705 if test "X${COLLECT_NAMES+set}" != Xset; then
7706 COLLECT_NAMES=
7707 export COLLECT_NAMES
7708 fi
7709 ;;
7710 esac
7711
7712 # Global variables:
7713 ofile=libtool
7714 can_build_shared=yes
7715
7716 # All known linkers require a `.a' archive for static linking (except MSVC,
7717 # which needs '.lib').
7718 libext=a
7719
7720 with_gnu_ld="$lt_cv_prog_gnu_ld"
7721
7722 old_CC="$CC"
7723 old_CFLAGS="$CFLAGS"
7724
7725 # Set sane defaults for various variables
7726 test -z "$CC" && CC=cc
7727 test -z "$LTCC" && LTCC=$CC
7728 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7729 test -z "$LD" && LD=ld
7730 test -z "$ac_objext" && ac_objext=o
7731
7732 for cc_temp in $compiler""; do
7733 case $cc_temp in
7734 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7735 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7736 \-*) ;;
7737 *) break;;
7738 esac
7739 done
7740 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
7741
7742
7743 # Only perform the check for file, if the check method requires it
7744 test -z "$MAGIC_CMD" && MAGIC_CMD=file
7745 case $deplibs_check_method in
7746 file_magic*)
7747 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7748 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
7749 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
7750 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
7751 $as_echo_n "(cached) " >&6
7752 else
7753 case $MAGIC_CMD in
7754 [\\/*] | ?:[\\/]*)
7755 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7756 ;;
7757 *)
7758 lt_save_MAGIC_CMD="$MAGIC_CMD"
7759 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7760 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7761 for ac_dir in $ac_dummy; do
7762 IFS="$lt_save_ifs"
7763 test -z "$ac_dir" && ac_dir=.
7764 if test -f $ac_dir/${ac_tool_prefix}file; then
7765 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7766 if test -n "$file_magic_test_file"; then
7767 case $deplibs_check_method in
7768 "file_magic "*)
7769 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7770 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7771 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7772 $EGREP "$file_magic_regex" > /dev/null; then
7773 :
7774 else
7775 cat <<_LT_EOF 1>&2
7776
7777 *** Warning: the command libtool uses to detect shared libraries,
7778 *** $file_magic_cmd, produces output that libtool cannot recognize.
7779 *** The result is that libtool may fail to recognize shared libraries
7780 *** as such. This will affect the creation of libtool libraries that
7781 *** depend on shared libraries, but programs linked with such libtool
7782 *** libraries will work regardless of this problem. Nevertheless, you
7783 *** may want to report the problem to your system manager and/or to
7784 *** bug-libtool@gnu.org
7785
7786 _LT_EOF
7787 fi ;;
7788 esac
7789 fi
7790 break
7791 fi
7792 done
7793 IFS="$lt_save_ifs"
7794 MAGIC_CMD="$lt_save_MAGIC_CMD"
7795 ;;
7796 esac
7797 fi
7798
7799 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7800 if test -n "$MAGIC_CMD"; then
7801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7802 $as_echo "$MAGIC_CMD" >&6; }
7803 else
7804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7805 $as_echo "no" >&6; }
7806 fi
7807
7808
7809
7810
7811
7812 if test -z "$lt_cv_path_MAGIC_CMD"; then
7813 if test -n "$ac_tool_prefix"; then
7814 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
7815 $as_echo_n "checking for file... " >&6; }
7816 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
7817 $as_echo_n "(cached) " >&6
7818 else
7819 case $MAGIC_CMD in
7820 [\\/*] | ?:[\\/]*)
7821 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7822 ;;
7823 *)
7824 lt_save_MAGIC_CMD="$MAGIC_CMD"
7825 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7826 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7827 for ac_dir in $ac_dummy; do
7828 IFS="$lt_save_ifs"
7829 test -z "$ac_dir" && ac_dir=.
7830 if test -f $ac_dir/file; then
7831 lt_cv_path_MAGIC_CMD="$ac_dir/file"
7832 if test -n "$file_magic_test_file"; then
7833 case $deplibs_check_method in
7834 "file_magic "*)
7835 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7836 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7837 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7838 $EGREP "$file_magic_regex" > /dev/null; then
7839 :
7840 else
7841 cat <<_LT_EOF 1>&2
7842
7843 *** Warning: the command libtool uses to detect shared libraries,
7844 *** $file_magic_cmd, produces output that libtool cannot recognize.
7845 *** The result is that libtool may fail to recognize shared libraries
7846 *** as such. This will affect the creation of libtool libraries that
7847 *** depend on shared libraries, but programs linked with such libtool
7848 *** libraries will work regardless of this problem. Nevertheless, you
7849 *** may want to report the problem to your system manager and/or to
7850 *** bug-libtool@gnu.org
7851
7852 _LT_EOF
7853 fi ;;
7854 esac
7855 fi
7856 break
7857 fi
7858 done
7859 IFS="$lt_save_ifs"
7860 MAGIC_CMD="$lt_save_MAGIC_CMD"
7861 ;;
7862 esac
7863 fi
7864
7865 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7866 if test -n "$MAGIC_CMD"; then
7867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7868 $as_echo "$MAGIC_CMD" >&6; }
7869 else
7870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7871 $as_echo "no" >&6; }
7872 fi
7873
7874
7875 else
7876 MAGIC_CMD=:
7877 fi
7878 fi
7879
7880 fi
7881 ;;
7882 esac
7883
7884 # Use C for the default configuration in the libtool script
7885
7886 lt_save_CC="$CC"
7887 ac_ext=c
7888 ac_cpp='$CPP $CPPFLAGS'
7889 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7890 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7891 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7892
7893
7894 # Source file extension for C test sources.
7895 ac_ext=c
7896
7897 # Object file extension for compiled C test sources.
7898 objext=o
7899 objext=$objext
7900
7901 # Code to be used in simple compile tests
7902 lt_simple_compile_test_code="int some_variable = 0;"
7903
7904 # Code to be used in simple link tests
7905 lt_simple_link_test_code='int main(){return(0);}'
7906
7907
7908
7909
7910
7911
7912
7913 # If no C compiler was specified, use CC.
7914 LTCC=${LTCC-"$CC"}
7915
7916 # If no C compiler flags were specified, use CFLAGS.
7917 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7918
7919 # Allow CC to be a program name with arguments.
7920 compiler=$CC
7921
7922 # Save the default compiler, since it gets overwritten when the other
7923 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
7924 compiler_DEFAULT=$CC
7925
7926 # save warnings/boilerplate of simple test code
7927 ac_outfile=conftest.$ac_objext
7928 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
7929 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7930 _lt_compiler_boilerplate=`cat conftest.err`
7931 $RM conftest*
7932
7933 ac_outfile=conftest.$ac_objext
7934 echo "$lt_simple_link_test_code" >conftest.$ac_ext
7935 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7936 _lt_linker_boilerplate=`cat conftest.err`
7937 $RM -r conftest*
7938
7939
7940 ## CAVEAT EMPTOR:
7941 ## There is no encapsulation within the following macros, do not change
7942 ## the running order or otherwise move them around unless you know exactly
7943 ## what you are doing...
7944 if test -n "$compiler"; then
7945
7946 lt_prog_compiler_no_builtin_flag=
7947
7948 if test "$GCC" = yes; then
7949 case $cc_basename in
7950 nvcc*)
7951 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
7952 *)
7953 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
7954 esac
7955
7956 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7957 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
7958 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
7959 $as_echo_n "(cached) " >&6
7960 else
7961 lt_cv_prog_compiler_rtti_exceptions=no
7962 ac_outfile=conftest.$ac_objext
7963 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7964 lt_compiler_flag="-fno-rtti -fno-exceptions"
7965 # Insert the option either (1) after the last *FLAGS variable, or
7966 # (2) before a word containing "conftest.", or (3) at the end.
7967 # Note that $ac_compile itself does not contain backslashes and begins
7968 # with a dollar sign (not a hyphen), so the echo should work correctly.
7969 # The option is referenced via a variable to avoid confusing sed.
7970 lt_compile=`echo "$ac_compile" | $SED \
7971 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7972 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7973 -e 's:$: $lt_compiler_flag:'`
7974 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
7975 (eval "$lt_compile" 2>conftest.err)
7976 ac_status=$?
7977 cat conftest.err >&5
7978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7979 if (exit $ac_status) && test -s "$ac_outfile"; then
7980 # The compiler can only warn and ignore the option if not recognized
7981 # So say no if there are warnings other than the usual output.
7982 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
7983 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7984 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7985 lt_cv_prog_compiler_rtti_exceptions=yes
7986 fi
7987 fi
7988 $RM conftest*
7989
7990 fi
7991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7992 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
7993
7994 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7995 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7996 else
7997 :
7998 fi
7999
8000 fi
8001
8002
8003
8004
8005
8006
8007 lt_prog_compiler_wl=
8008 lt_prog_compiler_pic=
8009 lt_prog_compiler_static=
8010
8011 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8012 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8013
8014 if test "$GCC" = yes; then
8015 lt_prog_compiler_wl='-Wl,'
8016 lt_prog_compiler_static='-static'
8017
8018 case $host_os in
8019 aix*)
8020 # All AIX code is PIC.
8021 if test "$host_cpu" = ia64; then
8022 # AIX 5 now supports IA64 processor
8023 lt_prog_compiler_static='-Bstatic'
8024 fi
8025 lt_prog_compiler_pic='-fPIC'
8026 ;;
8027
8028 amigaos*)
8029 case $host_cpu in
8030 powerpc)
8031 # see comment about AmigaOS4 .so support
8032 lt_prog_compiler_pic='-fPIC'
8033 ;;
8034 m68k)
8035 # FIXME: we need at least 68020 code to build shared libraries, but
8036 # adding the `-m68020' flag to GCC prevents building anything better,
8037 # like `-m68040'.
8038 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8039 ;;
8040 esac
8041 ;;
8042
8043 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8044 # PIC is the default for these OSes.
8045 ;;
8046
8047 mingw* | cygwin* | pw32* | os2* | cegcc*)
8048 # This hack is so that the source file can tell whether it is being
8049 # built for inclusion in a dll (and should export symbols for example).
8050 # Although the cygwin gcc ignores -fPIC, still need this for old-style
8051 # (--disable-auto-import) libraries
8052 lt_prog_compiler_pic='-DDLL_EXPORT'
8053 ;;
8054
8055 darwin* | rhapsody*)
8056 # PIC is the default on this platform
8057 # Common symbols not allowed in MH_DYLIB files
8058 lt_prog_compiler_pic='-fno-common'
8059 ;;
8060
8061 haiku*)
8062 # PIC is the default for Haiku.
8063 # The "-static" flag exists, but is broken.
8064 lt_prog_compiler_static=
8065 ;;
8066
8067 hpux*)
8068 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8069 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
8070 # sets the default TLS model and affects inlining.
8071 case $host_cpu in
8072 hppa*64*)
8073 # +Z the default
8074 ;;
8075 *)
8076 lt_prog_compiler_pic='-fPIC'
8077 ;;
8078 esac
8079 ;;
8080
8081 interix[3-9]*)
8082 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8083 # Instead, we relocate shared libraries at runtime.
8084 ;;
8085
8086 msdosdjgpp*)
8087 # Just because we use GCC doesn't mean we suddenly get shared libraries
8088 # on systems that don't support them.
8089 lt_prog_compiler_can_build_shared=no
8090 enable_shared=no
8091 ;;
8092
8093 *nto* | *qnx*)
8094 # QNX uses GNU C++, but need to define -shared option too, otherwise
8095 # it will coredump.
8096 lt_prog_compiler_pic='-fPIC -shared'
8097 ;;
8098
8099 sysv4*MP*)
8100 if test -d /usr/nec; then
8101 lt_prog_compiler_pic=-Kconform_pic
8102 fi
8103 ;;
8104
8105 *)
8106 lt_prog_compiler_pic='-fPIC'
8107 ;;
8108 esac
8109
8110 case $cc_basename in
8111 nvcc*) # Cuda Compiler Driver 2.2
8112 lt_prog_compiler_wl='-Xlinker '
8113 lt_prog_compiler_pic='-Xcompiler -fPIC'
8114 ;;
8115 esac
8116 else
8117 # PORTME Check for flag to pass linker flags through the system compiler.
8118 case $host_os in
8119 aix*)
8120 lt_prog_compiler_wl='-Wl,'
8121 if test "$host_cpu" = ia64; then
8122 # AIX 5 now supports IA64 processor
8123 lt_prog_compiler_static='-Bstatic'
8124 else
8125 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8126 fi
8127 ;;
8128
8129 mingw* | cygwin* | pw32* | os2* | cegcc*)
8130 # This hack is so that the source file can tell whether it is being
8131 # built for inclusion in a dll (and should export symbols for example).
8132 lt_prog_compiler_pic='-DDLL_EXPORT'
8133 ;;
8134
8135 hpux9* | hpux10* | hpux11*)
8136 lt_prog_compiler_wl='-Wl,'
8137 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8138 # not for PA HP-UX.
8139 case $host_cpu in
8140 hppa*64*|ia64*)
8141 # +Z the default
8142 ;;
8143 *)
8144 lt_prog_compiler_pic='+Z'
8145 ;;
8146 esac
8147 # Is there a better lt_prog_compiler_static that works with the bundled CC?
8148 lt_prog_compiler_static='${wl}-a ${wl}archive'
8149 ;;
8150
8151 irix5* | irix6* | nonstopux*)
8152 lt_prog_compiler_wl='-Wl,'
8153 # PIC (with -KPIC) is the default.
8154 lt_prog_compiler_static='-non_shared'
8155 ;;
8156
8157 linux* | k*bsd*-gnu | kopensolaris*-gnu)
8158 case $cc_basename in
8159 # old Intel for x86_64 which still supported -KPIC.
8160 ecc*)
8161 lt_prog_compiler_wl='-Wl,'
8162 lt_prog_compiler_pic='-KPIC'
8163 lt_prog_compiler_static='-static'
8164 ;;
8165 # icc used to be incompatible with GCC.
8166 # ICC 10 doesn't accept -KPIC any more.
8167 icc* | ifort*)
8168 lt_prog_compiler_wl='-Wl,'
8169 lt_prog_compiler_pic='-fPIC'
8170 lt_prog_compiler_static='-static'
8171 ;;
8172 # Lahey Fortran 8.1.
8173 lf95*)
8174 lt_prog_compiler_wl='-Wl,'
8175 lt_prog_compiler_pic='--shared'
8176 lt_prog_compiler_static='--static'
8177 ;;
8178 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
8179 # Portland Group compilers (*not* the Pentium gcc compiler,
8180 # which looks to be a dead project)
8181 lt_prog_compiler_wl='-Wl,'
8182 lt_prog_compiler_pic='-fpic'
8183 lt_prog_compiler_static='-Bstatic'
8184 ;;
8185 ccc*)
8186 lt_prog_compiler_wl='-Wl,'
8187 # All Alpha code is PIC.
8188 lt_prog_compiler_static='-non_shared'
8189 ;;
8190 xl* | bgxl* | bgf* | mpixl*)
8191 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
8192 lt_prog_compiler_wl='-Wl,'
8193 lt_prog_compiler_pic='-qpic'
8194 lt_prog_compiler_static='-qstaticlink'
8195 ;;
8196 *)
8197 case `$CC -V 2>&1 | sed 5q` in
8198 *Sun\ F* | *Sun*Fortran*)
8199 # Sun Fortran 8.3 passes all unrecognized flags to the linker
8200 lt_prog_compiler_pic='-KPIC'
8201 lt_prog_compiler_static='-Bstatic'
8202 lt_prog_compiler_wl=''
8203 ;;
8204 *Sun\ C*)
8205 # Sun C 5.9
8206 lt_prog_compiler_pic='-KPIC'
8207 lt_prog_compiler_static='-Bstatic'
8208 lt_prog_compiler_wl='-Wl,'
8209 ;;
8210 esac
8211 ;;
8212 esac
8213 ;;
8214
8215 newsos6)
8216 lt_prog_compiler_pic='-KPIC'
8217 lt_prog_compiler_static='-Bstatic'
8218 ;;
8219
8220 *nto* | *qnx*)
8221 # QNX uses GNU C++, but need to define -shared option too, otherwise
8222 # it will coredump.
8223 lt_prog_compiler_pic='-fPIC -shared'
8224 ;;
8225
8226 osf3* | osf4* | osf5*)
8227 lt_prog_compiler_wl='-Wl,'
8228 # All OSF/1 code is PIC.
8229 lt_prog_compiler_static='-non_shared'
8230 ;;
8231
8232 rdos*)
8233 lt_prog_compiler_static='-non_shared'
8234 ;;
8235
8236 solaris*)
8237 lt_prog_compiler_pic='-KPIC'
8238 lt_prog_compiler_static='-Bstatic'
8239 case $cc_basename in
8240 f77* | f90* | f95*)
8241 lt_prog_compiler_wl='-Qoption ld ';;
8242 *)
8243 lt_prog_compiler_wl='-Wl,';;
8244 esac
8245 ;;
8246
8247 sunos4*)
8248 lt_prog_compiler_wl='-Qoption ld '
8249 lt_prog_compiler_pic='-PIC'
8250 lt_prog_compiler_static='-Bstatic'
8251 ;;
8252
8253 sysv4 | sysv4.2uw2* | sysv4.3*)
8254 lt_prog_compiler_wl='-Wl,'
8255 lt_prog_compiler_pic='-KPIC'
8256 lt_prog_compiler_static='-Bstatic'
8257 ;;
8258
8259 sysv4*MP*)
8260 if test -d /usr/nec ;then
8261 lt_prog_compiler_pic='-Kconform_pic'
8262 lt_prog_compiler_static='-Bstatic'
8263 fi
8264 ;;
8265
8266 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8267 lt_prog_compiler_wl='-Wl,'
8268 lt_prog_compiler_pic='-KPIC'
8269 lt_prog_compiler_static='-Bstatic'
8270 ;;
8271
8272 unicos*)
8273 lt_prog_compiler_wl='-Wl,'
8274 lt_prog_compiler_can_build_shared=no
8275 ;;
8276
8277 uts4*)
8278 lt_prog_compiler_pic='-pic'
8279 lt_prog_compiler_static='-Bstatic'
8280 ;;
8281
8282 *)
8283 lt_prog_compiler_can_build_shared=no
8284 ;;
8285 esac
8286 fi
8287
8288 case $host_os in
8289 # For platforms which do not support PIC, -DPIC is meaningless:
8290 *djgpp*)
8291 lt_prog_compiler_pic=
8292 ;;
8293 *)
8294 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8295 ;;
8296 esac
8297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
8298 $as_echo "$lt_prog_compiler_pic" >&6; }
8299
8300
8301
8302
8303
8304
8305 #
8306 # Check to make sure the PIC flag actually works.
8307 #
8308 if test -n "$lt_prog_compiler_pic"; then
8309 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8310 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8311 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
8312 $as_echo_n "(cached) " >&6
8313 else
8314 lt_cv_prog_compiler_pic_works=no
8315 ac_outfile=conftest.$ac_objext
8316 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8317 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8318 # Insert the option either (1) after the last *FLAGS variable, or
8319 # (2) before a word containing "conftest.", or (3) at the end.
8320 # Note that $ac_compile itself does not contain backslashes and begins
8321 # with a dollar sign (not a hyphen), so the echo should work correctly.
8322 # The option is referenced via a variable to avoid confusing sed.
8323 lt_compile=`echo "$ac_compile" | $SED \
8324 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8325 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8326 -e 's:$: $lt_compiler_flag:'`
8327 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8328 (eval "$lt_compile" 2>conftest.err)
8329 ac_status=$?
8330 cat conftest.err >&5
8331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8332 if (exit $ac_status) && test -s "$ac_outfile"; then
8333 # The compiler can only warn and ignore the option if not recognized
8334 # So say no if there are warnings other than the usual output.
8335 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8336 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8337 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8338 lt_cv_prog_compiler_pic_works=yes
8339 fi
8340 fi
8341 $RM conftest*
8342
8343 fi
8344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8345 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8346
8347 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
8348 case $lt_prog_compiler_pic in
8349 "" | " "*) ;;
8350 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8351 esac
8352 else
8353 lt_prog_compiler_pic=
8354 lt_prog_compiler_can_build_shared=no
8355 fi
8356
8357 fi
8358
8359
8360
8361
8362
8363
8364 #
8365 # Check to make sure the static flag actually works.
8366 #
8367 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8368 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8369 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8370 if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
8371 $as_echo_n "(cached) " >&6
8372 else
8373 lt_cv_prog_compiler_static_works=no
8374 save_LDFLAGS="$LDFLAGS"
8375 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8376 echo "$lt_simple_link_test_code" > conftest.$ac_ext
8377 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8378 # The linker can only warn and ignore the option if not recognized
8379 # So say no if there are warnings
8380 if test -s conftest.err; then
8381 # Append any errors to the config.log.
8382 cat conftest.err 1>&5
8383 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
8384 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8385 if diff conftest.exp conftest.er2 >/dev/null; then
8386 lt_cv_prog_compiler_static_works=yes
8387 fi
8388 else
8389 lt_cv_prog_compiler_static_works=yes
8390 fi
8391 fi
8392 $RM -r conftest*
8393 LDFLAGS="$save_LDFLAGS"
8394
8395 fi
8396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
8397 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
8398
8399 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
8400 :
8401 else
8402 lt_prog_compiler_static=
8403 fi
8404
8405
8406
8407
8408
8409
8410
8411 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8412 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8413 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
8414 $as_echo_n "(cached) " >&6
8415 else
8416 lt_cv_prog_compiler_c_o=no
8417 $RM -r conftest 2>/dev/null
8418 mkdir conftest
8419 cd conftest
8420 mkdir out
8421 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8422
8423 lt_compiler_flag="-o out/conftest2.$ac_objext"
8424 # Insert the option either (1) after the last *FLAGS variable, or
8425 # (2) before a word containing "conftest.", or (3) at the end.
8426 # Note that $ac_compile itself does not contain backslashes and begins
8427 # with a dollar sign (not a hyphen), so the echo should work correctly.
8428 lt_compile=`echo "$ac_compile" | $SED \
8429 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8430 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8431 -e 's:$: $lt_compiler_flag:'`
8432 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8433 (eval "$lt_compile" 2>out/conftest.err)
8434 ac_status=$?
8435 cat out/conftest.err >&5
8436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8437 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8438 then
8439 # The compiler can only warn and ignore the option if not recognized
8440 # So say no if there are warnings
8441 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8442 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8443 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8444 lt_cv_prog_compiler_c_o=yes
8445 fi
8446 fi
8447 chmod u+w . 2>&5
8448 $RM conftest*
8449 # SGI C++ compiler will create directory out/ii_files/ for
8450 # template instantiation
8451 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8452 $RM out/* && rmdir out
8453 cd ..
8454 $RM -r conftest
8455 $RM conftest*
8456
8457 fi
8458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8459 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8460
8461
8462
8463
8464
8465
8466 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8467 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8468 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
8469 $as_echo_n "(cached) " >&6
8470 else
8471 lt_cv_prog_compiler_c_o=no
8472 $RM -r conftest 2>/dev/null
8473 mkdir conftest
8474 cd conftest
8475 mkdir out
8476 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8477
8478 lt_compiler_flag="-o out/conftest2.$ac_objext"
8479 # Insert the option either (1) after the last *FLAGS variable, or
8480 # (2) before a word containing "conftest.", or (3) at the end.
8481 # Note that $ac_compile itself does not contain backslashes and begins
8482 # with a dollar sign (not a hyphen), so the echo should work correctly.
8483 lt_compile=`echo "$ac_compile" | $SED \
8484 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8485 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8486 -e 's:$: $lt_compiler_flag:'`
8487 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8488 (eval "$lt_compile" 2>out/conftest.err)
8489 ac_status=$?
8490 cat out/conftest.err >&5
8491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8492 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8493 then
8494 # The compiler can only warn and ignore the option if not recognized
8495 # So say no if there are warnings
8496 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8497 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8498 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8499 lt_cv_prog_compiler_c_o=yes
8500 fi
8501 fi
8502 chmod u+w . 2>&5
8503 $RM conftest*
8504 # SGI C++ compiler will create directory out/ii_files/ for
8505 # template instantiation
8506 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8507 $RM out/* && rmdir out
8508 cd ..
8509 $RM -r conftest
8510 $RM conftest*
8511
8512 fi
8513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8514 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8515
8516
8517
8518
8519 hard_links="nottested"
8520 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8521 # do not overwrite the value of need_locks provided by the user
8522 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
8523 $as_echo_n "checking if we can lock with hard links... " >&6; }
8524 hard_links=yes
8525 $RM conftest*
8526 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8527 touch conftest.a
8528 ln conftest.a conftest.b 2>&5 || hard_links=no
8529 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
8531 $as_echo "$hard_links" >&6; }
8532 if test "$hard_links" = no; then
8533 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8534 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8535 need_locks=warn
8536 fi
8537 else
8538 need_locks=no
8539 fi
8540
8541
8542
8543
8544
8545
8546 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8547 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
8548
8549 runpath_var=
8550 allow_undefined_flag=
8551 always_export_symbols=no
8552 archive_cmds=
8553 archive_expsym_cmds=
8554 compiler_needs_object=no
8555 enable_shared_with_static_runtimes=no
8556 export_dynamic_flag_spec=
8557 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8558 hardcode_automatic=no
8559 hardcode_direct=no
8560 hardcode_direct_absolute=no
8561 hardcode_libdir_flag_spec=
8562 hardcode_libdir_flag_spec_ld=
8563 hardcode_libdir_separator=
8564 hardcode_minus_L=no
8565 hardcode_shlibpath_var=unsupported
8566 inherit_rpath=no
8567 link_all_deplibs=unknown
8568 module_cmds=
8569 module_expsym_cmds=
8570 old_archive_from_new_cmds=
8571 old_archive_from_expsyms_cmds=
8572 thread_safe_flag_spec=
8573 whole_archive_flag_spec=
8574 # include_expsyms should be a list of space-separated symbols to be *always*
8575 # included in the symbol list
8576 include_expsyms=
8577 # exclude_expsyms can be an extended regexp of symbols to exclude
8578 # it will be wrapped by ` (' and `)$', so one must not match beginning or
8579 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8580 # as well as any symbol that contains `d'.
8581 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
8582 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8583 # platforms (ab)use it in PIC code, but their linkers get confused if
8584 # the symbol is explicitly referenced. Since portable code cannot
8585 # rely on this symbol name, it's probably fine to never include it in
8586 # preloaded symbol tables.
8587 # Exclude shared library initialization/finalization symbols.
8588 extract_expsyms_cmds=
8589
8590 case $host_os in
8591 cygwin* | mingw* | pw32* | cegcc*)
8592 # FIXME: the MSVC++ port hasn't been tested in a loooong time
8593 # When not using gcc, we currently assume that we are using
8594 # Microsoft Visual C++.
8595 if test "$GCC" != yes; then
8596 with_gnu_ld=no
8597 fi
8598 ;;
8599 interix*)
8600 # we just hope/assume this is gcc and not c89 (= MSVC++)
8601 with_gnu_ld=yes
8602 ;;
8603 openbsd*)
8604 with_gnu_ld=no
8605 ;;
8606 esac
8607
8608 ld_shlibs=yes
8609
8610 # On some targets, GNU ld is compatible enough with the native linker
8611 # that we're better off using the native interface for both.
8612 lt_use_gnu_ld_interface=no
8613 if test "$with_gnu_ld" = yes; then
8614 case $host_os in
8615 aix*)
8616 # The AIX port of GNU ld has always aspired to compatibility
8617 # with the native linker. However, as the warning in the GNU ld
8618 # block says, versions before 2.19.5* couldn't really create working
8619 # shared libraries, regardless of the interface used.
8620 case `$LD -v 2>&1` in
8621 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
8622 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
8623 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
8624 *)
8625 lt_use_gnu_ld_interface=yes
8626 ;;
8627 esac
8628 ;;
8629 *)
8630 lt_use_gnu_ld_interface=yes
8631 ;;
8632 esac
8633 fi
8634
8635 if test "$lt_use_gnu_ld_interface" = yes; then
8636 # If archive_cmds runs LD, not CC, wlarc should be empty
8637 wlarc='${wl}'
8638
8639 # Set some defaults for GNU ld with shared library support. These
8640 # are reset later if shared libraries are not supported. Putting them
8641 # here allows them to be overridden if necessary.
8642 runpath_var=LD_RUN_PATH
8643 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8644 export_dynamic_flag_spec='${wl}--export-dynamic'
8645 # ancient GNU ld didn't support --whole-archive et. al.
8646 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
8647 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8648 else
8649 whole_archive_flag_spec=
8650 fi
8651 supports_anon_versioning=no
8652 case `$LD -v 2>&1` in
8653 *GNU\ gold*) supports_anon_versioning=yes ;;
8654 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8655 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8656 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8657 *\ 2.11.*) ;; # other 2.11 versions
8658 *) supports_anon_versioning=yes ;;
8659 esac
8660
8661 # See if GNU ld supports shared libraries.
8662 case $host_os in
8663 aix[3-9]*)
8664 # On AIX/PPC, the GNU linker is very broken
8665 if test "$host_cpu" != ia64; then
8666 ld_shlibs=no
8667 cat <<_LT_EOF 1>&2
8668
8669 *** Warning: the GNU linker, at least up to release 2.19, is reported
8670 *** to be unable to reliably create shared libraries on AIX.
8671 *** Therefore, libtool is disabling shared libraries support. If you
8672 *** really care for shared libraries, you may want to install binutils
8673 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
8674 *** You will then need to restart the configuration process.
8675
8676 _LT_EOF
8677 fi
8678 ;;
8679
8680 amigaos*)
8681 case $host_cpu in
8682 powerpc)
8683 # see comment about AmigaOS4 .so support
8684 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8685 archive_expsym_cmds=''
8686 ;;
8687 m68k)
8688 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)'
8689 hardcode_libdir_flag_spec='-L$libdir'
8690 hardcode_minus_L=yes
8691 ;;
8692 esac
8693 ;;
8694
8695 beos*)
8696 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8697 allow_undefined_flag=unsupported
8698 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8699 # support --undefined. This deserves some investigation. FIXME
8700 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8701 else
8702 ld_shlibs=no
8703 fi
8704 ;;
8705
8706 cygwin* | mingw* | pw32* | cegcc*)
8707 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8708 # as there is no search path for DLLs.
8709 hardcode_libdir_flag_spec='-L$libdir'
8710 export_dynamic_flag_spec='${wl}--export-all-symbols'
8711 allow_undefined_flag=unsupported
8712 always_export_symbols=no
8713 enable_shared_with_static_runtimes=yes
8714 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
8715
8716 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
8717 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8718 # If the export-symbols file already is a .def file (1st line
8719 # is EXPORTS), use it as is; otherwise, prepend...
8720 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8721 cp $export_symbols $output_objdir/$soname.def;
8722 else
8723 echo EXPORTS > $output_objdir/$soname.def;
8724 cat $export_symbols >> $output_objdir/$soname.def;
8725 fi~
8726 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8727 else
8728 ld_shlibs=no
8729 fi
8730 ;;
8731
8732 haiku*)
8733 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8734 link_all_deplibs=yes
8735 ;;
8736
8737 interix[3-9]*)
8738 hardcode_direct=no
8739 hardcode_shlibpath_var=no
8740 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8741 export_dynamic_flag_spec='${wl}-E'
8742 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8743 # Instead, shared libraries are loaded at an image base (0x10000000 by
8744 # default) and relocated if they conflict, which is a slow very memory
8745 # consuming and fragmenting process. To avoid this, we pick a random,
8746 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8747 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
8748 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8749 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'
8750 ;;
8751
8752 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
8753 tmp_diet=no
8754 if test "$host_os" = linux-dietlibc; then
8755 case $cc_basename in
8756 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
8757 esac
8758 fi
8759 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
8760 && test "$tmp_diet" = no
8761 then
8762 tmp_addflag=' $pic_flag'
8763 tmp_sharedflag='-shared'
8764 case $cc_basename,$host_cpu in
8765 pgcc*) # Portland Group C compiler
8766 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'
8767 tmp_addflag=' $pic_flag'
8768 ;;
8769 pgf77* | pgf90* | pgf95* | pgfortran*)
8770 # Portland Group f77 and f90 compilers
8771 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'
8772 tmp_addflag=' $pic_flag -Mnomain' ;;
8773 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
8774 tmp_addflag=' -i_dynamic' ;;
8775 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
8776 tmp_addflag=' -i_dynamic -nofor_main' ;;
8777 ifc* | ifort*) # Intel Fortran compiler
8778 tmp_addflag=' -nofor_main' ;;
8779 lf95*) # Lahey Fortran 8.1
8780 whole_archive_flag_spec=
8781 tmp_sharedflag='--shared' ;;
8782 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
8783 tmp_sharedflag='-qmkshrobj'
8784 tmp_addflag= ;;
8785 nvcc*) # Cuda Compiler Driver 2.2
8786 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'
8787 compiler_needs_object=yes
8788 ;;
8789 esac
8790 case `$CC -V 2>&1 | sed 5q` in
8791 *Sun\ C*) # Sun C 5.9
8792 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'
8793 compiler_needs_object=yes
8794 tmp_sharedflag='-G' ;;
8795 *Sun\ F*) # Sun Fortran 8.3
8796 tmp_sharedflag='-G' ;;
8797 esac
8798 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8799
8800 if test "x$supports_anon_versioning" = xyes; then
8801 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8802 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8803 echo "local: *; };" >> $output_objdir/$libname.ver~
8804 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8805 fi
8806
8807 case $cc_basename in
8808 xlf* | bgf* | bgxlf* | mpixlf*)
8809 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
8810 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
8811 hardcode_libdir_flag_spec=
8812 hardcode_libdir_flag_spec_ld='-rpath $libdir'
8813 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
8814 if test "x$supports_anon_versioning" = xyes; then
8815 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8816 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8817 echo "local: *; };" >> $output_objdir/$libname.ver~
8818 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
8819 fi
8820 ;;
8821 esac
8822 else
8823 ld_shlibs=no
8824 fi
8825 ;;
8826
8827 netbsd*)
8828 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8829 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8830 wlarc=
8831 else
8832 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8833 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8834 fi
8835 ;;
8836
8837 solaris*)
8838 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
8839 ld_shlibs=no
8840 cat <<_LT_EOF 1>&2
8841
8842 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
8843 *** create shared libraries on Solaris systems. Therefore, libtool
8844 *** is disabling shared libraries support. We urge you to upgrade GNU
8845 *** binutils to release 2.9.1 or newer. Another option is to modify
8846 *** your PATH or compiler configuration so that the native linker is
8847 *** used, and then restart.
8848
8849 _LT_EOF
8850 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8851 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8852 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8853 else
8854 ld_shlibs=no
8855 fi
8856 ;;
8857
8858 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8859 case `$LD -v 2>&1` in
8860 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8861 ld_shlibs=no
8862 cat <<_LT_EOF 1>&2
8863
8864 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8865 *** reliably create shared libraries on SCO systems. Therefore, libtool
8866 *** is disabling shared libraries support. We urge you to upgrade GNU
8867 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
8868 *** your PATH or compiler configuration so that the native linker is
8869 *** used, and then restart.
8870
8871 _LT_EOF
8872 ;;
8873 *)
8874 # For security reasons, it is highly recommended that you always
8875 # use absolute paths for naming shared libraries, and exclude the
8876 # DT_RUNPATH tag from executables and libraries. But doing so
8877 # requires that you compile everything twice, which is a pain.
8878 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8879 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8880 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8881 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8882 else
8883 ld_shlibs=no
8884 fi
8885 ;;
8886 esac
8887 ;;
8888
8889 sunos4*)
8890 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8891 wlarc=
8892 hardcode_direct=yes
8893 hardcode_shlibpath_var=no
8894 ;;
8895
8896 *)
8897 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8898 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8899 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8900 else
8901 ld_shlibs=no
8902 fi
8903 ;;
8904 esac
8905
8906 if test "$ld_shlibs" = no; then
8907 runpath_var=
8908 hardcode_libdir_flag_spec=
8909 export_dynamic_flag_spec=
8910 whole_archive_flag_spec=
8911 fi
8912 else
8913 # PORTME fill in a description of your system's linker (not GNU ld)
8914 case $host_os in
8915 aix3*)
8916 allow_undefined_flag=unsupported
8917 always_export_symbols=yes
8918 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'
8919 # Note: this linker hardcodes the directories in LIBPATH if there
8920 # are no directories specified by -L.
8921 hardcode_minus_L=yes
8922 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
8923 # Neither direct hardcoding nor static linking is supported with a
8924 # broken collect2.
8925 hardcode_direct=unsupported
8926 fi
8927 ;;
8928
8929 aix[4-9]*)
8930 if test "$host_cpu" = ia64; then
8931 # On IA64, the linker does run time linking by default, so we don't
8932 # have to do anything special.
8933 aix_use_runtimelinking=no
8934 exp_sym_flag='-Bexport'
8935 no_entry_flag=""
8936 else
8937 # If we're using GNU nm, then we don't want the "-C" option.
8938 # -C means demangle to AIX nm, but means don't demangle with GNU nm
8939 # Also, AIX nm treats weak defined symbols like other global
8940 # defined symbols, whereas GNU nm marks them as "W".
8941 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
8942 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'
8943 else
8944 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'
8945 fi
8946 aix_use_runtimelinking=no
8947
8948 # Test if we are trying to use run time linking or normal
8949 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
8950 # need to do runtime linking.
8951 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
8952 for ld_flag in $LDFLAGS; do
8953 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8954 aix_use_runtimelinking=yes
8955 break
8956 fi
8957 done
8958 ;;
8959 esac
8960
8961 exp_sym_flag='-bexport'
8962 no_entry_flag='-bnoentry'
8963 fi
8964
8965 # When large executables or shared objects are built, AIX ld can
8966 # have problems creating the table of contents. If linking a library
8967 # or program results in "error TOC overflow" add -mminimal-toc to
8968 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
8969 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8970
8971 archive_cmds=''
8972 hardcode_direct=yes
8973 hardcode_direct_absolute=yes
8974 hardcode_libdir_separator=':'
8975 link_all_deplibs=yes
8976 file_list_spec='${wl}-f,'
8977
8978 if test "$GCC" = yes; then
8979 case $host_os in aix4.[012]|aix4.[012].*)
8980 # We only want to do this on AIX 4.2 and lower, the check
8981 # below for broken collect2 doesn't work under 4.3+
8982 collect2name=`${CC} -print-prog-name=collect2`
8983 if test -f "$collect2name" &&
8984 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
8985 then
8986 # We have reworked collect2
8987 :
8988 else
8989 # We have old collect2
8990 hardcode_direct=unsupported
8991 # It fails to find uninstalled libraries when the uninstalled
8992 # path is not listed in the libpath. Setting hardcode_minus_L
8993 # to unsupported forces relinking
8994 hardcode_minus_L=yes
8995 hardcode_libdir_flag_spec='-L$libdir'
8996 hardcode_libdir_separator=
8997 fi
8998 ;;
8999 esac
9000 shared_flag='-shared'
9001 if test "$aix_use_runtimelinking" = yes; then
9002 shared_flag="$shared_flag "'${wl}-G'
9003 fi
9004 else
9005 # not using gcc
9006 if test "$host_cpu" = ia64; then
9007 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9008 # chokes on -Wl,-G. The following line is correct:
9009 shared_flag='-G'
9010 else
9011 if test "$aix_use_runtimelinking" = yes; then
9012 shared_flag='${wl}-G'
9013 else
9014 shared_flag='${wl}-bM:SRE'
9015 fi
9016 fi
9017 fi
9018
9019 export_dynamic_flag_spec='${wl}-bexpall'
9020 # It seems that -bexpall does not export symbols beginning with
9021 # underscore (_), so it is better to generate a list of symbols to export.
9022 always_export_symbols=yes
9023 if test "$aix_use_runtimelinking" = yes; then
9024 # Warning - without using the other runtime loading flags (-brtl),
9025 # -berok will link without error, but may produce a broken library.
9026 allow_undefined_flag='-berok'
9027 # Determine the default libpath from the value encoded in an
9028 # empty executable.
9029 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9030 /* end confdefs.h. */
9031
9032 int
9033 main ()
9034 {
9035
9036 ;
9037 return 0;
9038 }
9039 _ACEOF
9040 if ac_fn_c_try_link "$LINENO"; then :
9041
9042 lt_aix_libpath_sed='
9043 /Import File Strings/,/^$/ {
9044 /^0/ {
9045 s/^0 *\(.*\)$/\1/
9046 p
9047 }
9048 }'
9049 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9050 # Check for a 64-bit object if we didn't find anything.
9051 if test -z "$aix_libpath"; then
9052 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9053 fi
9054 fi
9055 rm -f core conftest.err conftest.$ac_objext \
9056 conftest$ac_exeext conftest.$ac_ext
9057 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9058
9059 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9060 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"
9061 else
9062 if test "$host_cpu" = ia64; then
9063 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9064 allow_undefined_flag="-z nodefs"
9065 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"
9066 else
9067 # Determine the default libpath from the value encoded in an
9068 # empty executable.
9069 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9070 /* end confdefs.h. */
9071
9072 int
9073 main ()
9074 {
9075
9076 ;
9077 return 0;
9078 }
9079 _ACEOF
9080 if ac_fn_c_try_link "$LINENO"; then :
9081
9082 lt_aix_libpath_sed='
9083 /Import File Strings/,/^$/ {
9084 /^0/ {
9085 s/^0 *\(.*\)$/\1/
9086 p
9087 }
9088 }'
9089 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9090 # Check for a 64-bit object if we didn't find anything.
9091 if test -z "$aix_libpath"; then
9092 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9093 fi
9094 fi
9095 rm -f core conftest.err conftest.$ac_objext \
9096 conftest$ac_exeext conftest.$ac_ext
9097 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9098
9099 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9100 # Warning - without using the other run time loading flags,
9101 # -berok will link without error, but may produce a broken library.
9102 no_undefined_flag=' ${wl}-bernotok'
9103 allow_undefined_flag=' ${wl}-berok'
9104 if test "$with_gnu_ld" = yes; then
9105 # We only use this code for GNU lds that support --whole-archive.
9106 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
9107 else
9108 # Exported symbols can be pulled into shared objects from archives
9109 whole_archive_flag_spec='$convenience'
9110 fi
9111 archive_cmds_need_lc=yes
9112 # This is similar to how AIX traditionally builds its shared libraries.
9113 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'
9114 fi
9115 fi
9116 ;;
9117
9118 amigaos*)
9119 case $host_cpu in
9120 powerpc)
9121 # see comment about AmigaOS4 .so support
9122 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9123 archive_expsym_cmds=''
9124 ;;
9125 m68k)
9126 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)'
9127 hardcode_libdir_flag_spec='-L$libdir'
9128 hardcode_minus_L=yes
9129 ;;
9130 esac
9131 ;;
9132
9133 bsdi[45]*)
9134 export_dynamic_flag_spec=-rdynamic
9135 ;;
9136
9137 cygwin* | mingw* | pw32* | cegcc*)
9138 # When not using gcc, we currently assume that we are using
9139 # Microsoft Visual C++.
9140 # hardcode_libdir_flag_spec is actually meaningless, as there is
9141 # no search path for DLLs.
9142 hardcode_libdir_flag_spec=' '
9143 allow_undefined_flag=unsupported
9144 # Tell ltmain to make .lib files, not .a files.
9145 libext=lib
9146 # Tell ltmain to make .dll files, not .so files.
9147 shrext_cmds=".dll"
9148 # FIXME: Setting linknames here is a bad hack.
9149 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
9150 # The linker will automatically build a .lib file if we build a DLL.
9151 old_archive_from_new_cmds='true'
9152 # FIXME: Should let the user specify the lib program.
9153 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9154 fix_srcfile_path='`cygpath -w "$srcfile"`'
9155 enable_shared_with_static_runtimes=yes
9156 ;;
9157
9158 darwin* | rhapsody*)
9159
9160
9161 archive_cmds_need_lc=no
9162 hardcode_direct=no
9163 hardcode_automatic=yes
9164 hardcode_shlibpath_var=unsupported
9165 if test "$lt_cv_ld_force_load" = "yes"; then
9166 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\"`'
9167 else
9168 whole_archive_flag_spec=''
9169 fi
9170 link_all_deplibs=yes
9171 allow_undefined_flag="$_lt_dar_allow_undefined"
9172 case $cc_basename in
9173 ifort*) _lt_dar_can_shared=yes ;;
9174 *) _lt_dar_can_shared=$GCC ;;
9175 esac
9176 if test "$_lt_dar_can_shared" = "yes"; then
9177 output_verbose_link_cmd=func_echo_all
9178 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9179 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9180 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}"
9181 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}"
9182
9183 else
9184 ld_shlibs=no
9185 fi
9186
9187 ;;
9188
9189 dgux*)
9190 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9191 hardcode_libdir_flag_spec='-L$libdir'
9192 hardcode_shlibpath_var=no
9193 ;;
9194
9195 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9196 # support. Future versions do this automatically, but an explicit c++rt0.o
9197 # does not break anything, and helps significantly (at the cost of a little
9198 # extra space).
9199 freebsd2.2*)
9200 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9201 hardcode_libdir_flag_spec='-R$libdir'
9202 hardcode_direct=yes
9203 hardcode_shlibpath_var=no
9204 ;;
9205
9206 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9207 freebsd2.*)
9208 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9209 hardcode_direct=yes
9210 hardcode_minus_L=yes
9211 hardcode_shlibpath_var=no
9212 ;;
9213
9214 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9215 freebsd* | dragonfly*)
9216 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
9217 hardcode_libdir_flag_spec='-R$libdir'
9218 hardcode_direct=yes
9219 hardcode_shlibpath_var=no
9220 ;;
9221
9222 hpux9*)
9223 if test "$GCC" = yes; then
9224 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'
9225 else
9226 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'
9227 fi
9228 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9229 hardcode_libdir_separator=:
9230 hardcode_direct=yes
9231
9232 # hardcode_minus_L: Not really in the search PATH,
9233 # but as the default location of the library.
9234 hardcode_minus_L=yes
9235 export_dynamic_flag_spec='${wl}-E'
9236 ;;
9237
9238 hpux10*)
9239 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9240 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9241 else
9242 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9243 fi
9244 if test "$with_gnu_ld" = no; then
9245 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9246 hardcode_libdir_flag_spec_ld='+b $libdir'
9247 hardcode_libdir_separator=:
9248 hardcode_direct=yes
9249 hardcode_direct_absolute=yes
9250 export_dynamic_flag_spec='${wl}-E'
9251 # hardcode_minus_L: Not really in the search PATH,
9252 # but as the default location of the library.
9253 hardcode_minus_L=yes
9254 fi
9255 ;;
9256
9257 hpux11*)
9258 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9259 case $host_cpu in
9260 hppa*64*)
9261 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9262 ;;
9263 ia64*)
9264 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9265 ;;
9266 *)
9267 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9268 ;;
9269 esac
9270 else
9271 case $host_cpu in
9272 hppa*64*)
9273 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9274 ;;
9275 ia64*)
9276 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9277 ;;
9278 *)
9279
9280 # Older versions of the 11.00 compiler do not understand -b yet
9281 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
9282 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
9283 $as_echo_n "checking if $CC understands -b... " >&6; }
9284 if test "${lt_cv_prog_compiler__b+set}" = set; then :
9285 $as_echo_n "(cached) " >&6
9286 else
9287 lt_cv_prog_compiler__b=no
9288 save_LDFLAGS="$LDFLAGS"
9289 LDFLAGS="$LDFLAGS -b"
9290 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9291 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9292 # The linker can only warn and ignore the option if not recognized
9293 # So say no if there are warnings
9294 if test -s conftest.err; then
9295 # Append any errors to the config.log.
9296 cat conftest.err 1>&5
9297 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9298 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9299 if diff conftest.exp conftest.er2 >/dev/null; then
9300 lt_cv_prog_compiler__b=yes
9301 fi
9302 else
9303 lt_cv_prog_compiler__b=yes
9304 fi
9305 fi
9306 $RM -r conftest*
9307 LDFLAGS="$save_LDFLAGS"
9308
9309 fi
9310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
9311 $as_echo "$lt_cv_prog_compiler__b" >&6; }
9312
9313 if test x"$lt_cv_prog_compiler__b" = xyes; then
9314 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9315 else
9316 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9317 fi
9318
9319 ;;
9320 esac
9321 fi
9322 if test "$with_gnu_ld" = no; then
9323 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9324 hardcode_libdir_separator=:
9325
9326 case $host_cpu in
9327 hppa*64*|ia64*)
9328 hardcode_direct=no
9329 hardcode_shlibpath_var=no
9330 ;;
9331 *)
9332 hardcode_direct=yes
9333 hardcode_direct_absolute=yes
9334 export_dynamic_flag_spec='${wl}-E'
9335
9336 # hardcode_minus_L: Not really in the search PATH,
9337 # but as the default location of the library.
9338 hardcode_minus_L=yes
9339 ;;
9340 esac
9341 fi
9342 ;;
9343
9344 irix5* | irix6* | nonstopux*)
9345 if test "$GCC" = yes; then
9346 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'
9347 # Try to use the -exported_symbol ld option, if it does not
9348 # work, assume that -exports_file does not work either and
9349 # implicitly export all symbols.
9350 save_LDFLAGS="$LDFLAGS"
9351 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
9352 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9353 /* end confdefs.h. */
9354 int foo(void) {}
9355 _ACEOF
9356 if ac_fn_c_try_link "$LINENO"; then :
9357 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'
9358
9359 fi
9360 rm -f core conftest.err conftest.$ac_objext \
9361 conftest$ac_exeext conftest.$ac_ext
9362 LDFLAGS="$save_LDFLAGS"
9363 else
9364 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'
9365 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'
9366 fi
9367 archive_cmds_need_lc='no'
9368 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9369 hardcode_libdir_separator=:
9370 inherit_rpath=yes
9371 link_all_deplibs=yes
9372 ;;
9373
9374 netbsd*)
9375 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9376 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
9377 else
9378 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
9379 fi
9380 hardcode_libdir_flag_spec='-R$libdir'
9381 hardcode_direct=yes
9382 hardcode_shlibpath_var=no
9383 ;;
9384
9385 newsos6)
9386 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9387 hardcode_direct=yes
9388 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9389 hardcode_libdir_separator=:
9390 hardcode_shlibpath_var=no
9391 ;;
9392
9393 *nto* | *qnx*)
9394 ;;
9395
9396 openbsd*)
9397 if test -f /usr/libexec/ld.so; then
9398 hardcode_direct=yes
9399 hardcode_shlibpath_var=no
9400 hardcode_direct_absolute=yes
9401 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9402 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9403 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9404 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9405 export_dynamic_flag_spec='${wl}-E'
9406 else
9407 case $host_os in
9408 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9409 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9410 hardcode_libdir_flag_spec='-R$libdir'
9411 ;;
9412 *)
9413 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9414 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9415 ;;
9416 esac
9417 fi
9418 else
9419 ld_shlibs=no
9420 fi
9421 ;;
9422
9423 os2*)
9424 hardcode_libdir_flag_spec='-L$libdir'
9425 hardcode_minus_L=yes
9426 allow_undefined_flag=unsupported
9427 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'
9428 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9429 ;;
9430
9431 osf3*)
9432 if test "$GCC" = yes; then
9433 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9434 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'
9435 else
9436 allow_undefined_flag=' -expect_unresolved \*'
9437 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'
9438 fi
9439 archive_cmds_need_lc='no'
9440 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9441 hardcode_libdir_separator=:
9442 ;;
9443
9444 osf4* | osf5*) # as osf3* with the addition of -msym flag
9445 if test "$GCC" = yes; then
9446 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9447 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-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'
9448 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9449 else
9450 allow_undefined_flag=' -expect_unresolved \*'
9451 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'
9452 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~
9453 $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'
9454
9455 # Both c and cxx compiler support -rpath directly
9456 hardcode_libdir_flag_spec='-rpath $libdir'
9457 fi
9458 archive_cmds_need_lc='no'
9459 hardcode_libdir_separator=:
9460 ;;
9461
9462 solaris*)
9463 no_undefined_flag=' -z defs'
9464 if test "$GCC" = yes; then
9465 wlarc='${wl}'
9466 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9467 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9468 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9469 else
9470 case `$CC -V 2>&1` in
9471 *"Compilers 5.0"*)
9472 wlarc=''
9473 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9474 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9475 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
9476 ;;
9477 *)
9478 wlarc='${wl}'
9479 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
9480 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9481 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9482 ;;
9483 esac
9484 fi
9485 hardcode_libdir_flag_spec='-R$libdir'
9486 hardcode_shlibpath_var=no
9487 case $host_os in
9488 solaris2.[0-5] | solaris2.[0-5].*) ;;
9489 *)
9490 # The compiler driver will combine and reorder linker options,
9491 # but understands `-z linker_flag'. GCC discards it without `$wl',
9492 # but is careful enough not to reorder.
9493 # Supported since Solaris 2.6 (maybe 2.5.1?)
9494 if test "$GCC" = yes; then
9495 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9496 else
9497 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
9498 fi
9499 ;;
9500 esac
9501 link_all_deplibs=yes
9502 ;;
9503
9504 sunos4*)
9505 if test "x$host_vendor" = xsequent; then
9506 # Use $CC to link under sequent, because it throws in some extra .o
9507 # files that make .init and .fini sections work.
9508 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9509 else
9510 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9511 fi
9512 hardcode_libdir_flag_spec='-L$libdir'
9513 hardcode_direct=yes
9514 hardcode_minus_L=yes
9515 hardcode_shlibpath_var=no
9516 ;;
9517
9518 sysv4)
9519 case $host_vendor in
9520 sni)
9521 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9522 hardcode_direct=yes # is this really true???
9523 ;;
9524 siemens)
9525 ## LD is ld it makes a PLAMLIB
9526 ## CC just makes a GrossModule.
9527 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9528 reload_cmds='$CC -r -o $output$reload_objs'
9529 hardcode_direct=no
9530 ;;
9531 motorola)
9532 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9533 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9534 ;;
9535 esac
9536 runpath_var='LD_RUN_PATH'
9537 hardcode_shlibpath_var=no
9538 ;;
9539
9540 sysv4.3*)
9541 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9542 hardcode_shlibpath_var=no
9543 export_dynamic_flag_spec='-Bexport'
9544 ;;
9545
9546 sysv4*MP*)
9547 if test -d /usr/nec; then
9548 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9549 hardcode_shlibpath_var=no
9550 runpath_var=LD_RUN_PATH
9551 hardcode_runpath_var=yes
9552 ld_shlibs=yes
9553 fi
9554 ;;
9555
9556 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
9557 no_undefined_flag='${wl}-z,text'
9558 archive_cmds_need_lc=no
9559 hardcode_shlibpath_var=no
9560 runpath_var='LD_RUN_PATH'
9561
9562 if test "$GCC" = yes; then
9563 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9564 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9565 else
9566 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9567 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9568 fi
9569 ;;
9570
9571 sysv5* | sco3.2v5* | sco5v6*)
9572 # Note: We can NOT use -z defs as we might desire, because we do not
9573 # link with -lc, and that would cause any symbols used from libc to
9574 # always be unresolved, which means just about no library would
9575 # ever link correctly. If we're not using GNU ld we use -z text
9576 # though, which does catch some bad symbols but isn't as heavy-handed
9577 # as -z defs.
9578 no_undefined_flag='${wl}-z,text'
9579 allow_undefined_flag='${wl}-z,nodefs'
9580 archive_cmds_need_lc=no
9581 hardcode_shlibpath_var=no
9582 hardcode_libdir_flag_spec='${wl}-R,$libdir'
9583 hardcode_libdir_separator=':'
9584 link_all_deplibs=yes
9585 export_dynamic_flag_spec='${wl}-Bexport'
9586 runpath_var='LD_RUN_PATH'
9587
9588 if test "$GCC" = yes; then
9589 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9590 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9591 else
9592 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9593 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9594 fi
9595 ;;
9596
9597 uts4*)
9598 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9599 hardcode_libdir_flag_spec='-L$libdir'
9600 hardcode_shlibpath_var=no
9601 ;;
9602
9603 *)
9604 ld_shlibs=no
9605 ;;
9606 esac
9607
9608 if test x$host_vendor = xsni; then
9609 case $host in
9610 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
9611 export_dynamic_flag_spec='${wl}-Blargedynsym'
9612 ;;
9613 esac
9614 fi
9615 fi
9616
9617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
9618 $as_echo "$ld_shlibs" >&6; }
9619 test "$ld_shlibs" = no && can_build_shared=no
9620
9621 with_gnu_ld=$with_gnu_ld
9622
9623
9624
9625
9626
9627
9628
9629
9630
9631
9632
9633
9634
9635
9636
9637 #
9638 # Do we need to explicitly link libc?
9639 #
9640 case "x$archive_cmds_need_lc" in
9641 x|xyes)
9642 # Assume -lc should be added
9643 archive_cmds_need_lc=yes
9644
9645 if test "$enable_shared" = yes && test "$GCC" = yes; then
9646 case $archive_cmds in
9647 *'~'*)
9648 # FIXME: we may have to deal with multi-command sequences.
9649 ;;
9650 '$CC '*)
9651 # Test whether the compiler implicitly links with -lc since on some
9652 # systems, -lgcc has to come before -lc. If gcc already passes -lc
9653 # to ld, don't add -lc before -lgcc.
9654 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
9655 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
9656 if test "${lt_cv_archive_cmds_need_lc+set}" = set; then :
9657 $as_echo_n "(cached) " >&6
9658 else
9659 $RM conftest*
9660 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9661
9662 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9663 (eval $ac_compile) 2>&5
9664 ac_status=$?
9665 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9666 test $ac_status = 0; } 2>conftest.err; then
9667 soname=conftest
9668 lib=conftest
9669 libobjs=conftest.$ac_objext
9670 deplibs=
9671 wl=$lt_prog_compiler_wl
9672 pic_flag=$lt_prog_compiler_pic
9673 compiler_flags=-v
9674 linker_flags=-v
9675 verstring=
9676 output_objdir=.
9677 libname=conftest
9678 lt_save_allow_undefined_flag=$allow_undefined_flag
9679 allow_undefined_flag=
9680 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
9681 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
9682 ac_status=$?
9683 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9684 test $ac_status = 0; }
9685 then
9686 lt_cv_archive_cmds_need_lc=no
9687 else
9688 lt_cv_archive_cmds_need_lc=yes
9689 fi
9690 allow_undefined_flag=$lt_save_allow_undefined_flag
9691 else
9692 cat conftest.err 1>&5
9693 fi
9694 $RM conftest*
9695
9696 fi
9697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
9698 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
9699 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
9700 ;;
9701 esac
9702 fi
9703 ;;
9704 esac
9705
9706
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 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
9863 $as_echo_n "checking dynamic linker characteristics... " >&6; }
9864
9865 if test "$GCC" = yes; then
9866 case $host_os in
9867 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
9868 *) lt_awk_arg="/^libraries:/" ;;
9869 esac
9870 case $host_os in
9871 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
9872 *) lt_sed_strip_eq="s,=/,/,g" ;;
9873 esac
9874 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
9875 case $lt_search_path_spec in
9876 *\;*)
9877 # if the path contains ";" then we assume it to be the separator
9878 # otherwise default to the standard path separator (i.e. ":") - it is
9879 # assumed that no part of a normal pathname contains ";" but that should
9880 # okay in the real world where ";" in dirpaths is itself problematic.
9881 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
9882 ;;
9883 *)
9884 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
9885 ;;
9886 esac
9887 # Ok, now we have the path, separated by spaces, we can step through it
9888 # and add multilib dir if necessary.
9889 lt_tmp_lt_search_path_spec=
9890 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
9891 for lt_sys_path in $lt_search_path_spec; do
9892 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
9893 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
9894 else
9895 test -d "$lt_sys_path" && \
9896 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
9897 fi
9898 done
9899 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
9900 BEGIN {RS=" "; FS="/|\n";} {
9901 lt_foo="";
9902 lt_count=0;
9903 for (lt_i = NF; lt_i > 0; lt_i--) {
9904 if ($lt_i != "" && $lt_i != ".") {
9905 if ($lt_i == "..") {
9906 lt_count++;
9907 } else {
9908 if (lt_count == 0) {
9909 lt_foo="/" $lt_i lt_foo;
9910 } else {
9911 lt_count--;
9912 }
9913 }
9914 }
9915 }
9916 if (lt_foo != "") { lt_freq[lt_foo]++; }
9917 if (lt_freq[lt_foo] == 1) { print lt_foo; }
9918 }'`
9919 # AWK program above erroneously prepends '/' to C:/dos/paths
9920 # for these hosts.
9921 case $host_os in
9922 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
9923 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
9924 esac
9925 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
9926 else
9927 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9928 fi
9929 library_names_spec=
9930 libname_spec='lib$name'
9931 soname_spec=
9932 shrext_cmds=".so"
9933 postinstall_cmds=
9934 postuninstall_cmds=
9935 finish_cmds=
9936 finish_eval=
9937 shlibpath_var=
9938 shlibpath_overrides_runpath=unknown
9939 version_type=none
9940 dynamic_linker="$host_os ld.so"
9941 sys_lib_dlsearch_path_spec="/lib /usr/lib"
9942 need_lib_prefix=unknown
9943 hardcode_into_libs=no
9944
9945 # when you set need_version to no, make sure it does not cause -set_version
9946 # flags to be left without arguments
9947 need_version=unknown
9948
9949 case $host_os in
9950 aix3*)
9951 version_type=linux
9952 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9953 shlibpath_var=LIBPATH
9954
9955 # AIX 3 has no versioning support, so we append a major version to the name.
9956 soname_spec='${libname}${release}${shared_ext}$major'
9957 ;;
9958
9959 aix[4-9]*)
9960 version_type=linux
9961 need_lib_prefix=no
9962 need_version=no
9963 hardcode_into_libs=yes
9964 if test "$host_cpu" = ia64; then
9965 # AIX 5 supports IA64
9966 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9967 shlibpath_var=LD_LIBRARY_PATH
9968 else
9969 # With GCC up to 2.95.x, collect2 would create an import file
9970 # for dependence libraries. The import file would start with
9971 # the line `#! .'. This would cause the generated library to
9972 # depend on `.', always an invalid library. This was fixed in
9973 # development snapshots of GCC prior to 3.0.
9974 case $host_os in
9975 aix4 | aix4.[01] | aix4.[01].*)
9976 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9977 echo ' yes '
9978 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
9979 :
9980 else
9981 can_build_shared=no
9982 fi
9983 ;;
9984 esac
9985 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9986 # soname into executable. Probably we can add versioning support to
9987 # collect2, so additional links can be useful in future.
9988 if test "$aix_use_runtimelinking" = yes; then
9989 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9990 # instead of lib<name>.a to let people know that these are not
9991 # typical AIX shared libraries.
9992 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9993 else
9994 # We preserve .a as extension for shared libraries through AIX4.2
9995 # and later when we are not doing run time linking.
9996 library_names_spec='${libname}${release}.a $libname.a'
9997 soname_spec='${libname}${release}${shared_ext}$major'
9998 fi
9999 shlibpath_var=LIBPATH
10000 fi
10001 ;;
10002
10003 amigaos*)
10004 case $host_cpu in
10005 powerpc)
10006 # Since July 2007 AmigaOS4 officially supports .so libraries.
10007 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10008 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10009 ;;
10010 m68k)
10011 library_names_spec='$libname.ixlibrary $libname.a'
10012 # Create ${libname}_ixlibrary.a entries in /sys/libs.
10013 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'
10014 ;;
10015 esac
10016 ;;
10017
10018 beos*)
10019 library_names_spec='${libname}${shared_ext}'
10020 dynamic_linker="$host_os ld.so"
10021 shlibpath_var=LIBRARY_PATH
10022 ;;
10023
10024 bsdi[45]*)
10025 version_type=linux
10026 need_version=no
10027 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10028 soname_spec='${libname}${release}${shared_ext}$major'
10029 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10030 shlibpath_var=LD_LIBRARY_PATH
10031 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10032 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10033 # the default ld.so.conf also contains /usr/contrib/lib and
10034 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10035 # libtool to hard-code these into programs
10036 ;;
10037
10038 cygwin* | mingw* | pw32* | cegcc*)
10039 version_type=windows
10040 shrext_cmds=".dll"
10041 need_version=no
10042 need_lib_prefix=no
10043
10044 case $GCC,$host_os in
10045 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
10046 library_names_spec='$libname.dll.a'
10047 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10048 postinstall_cmds='base_file=`basename \${file}`~
10049 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10050 dldir=$destdir/`dirname \$dlpath`~
10051 test -d \$dldir || mkdir -p \$dldir~
10052 $install_prog $dir/$dlname \$dldir/$dlname~
10053 chmod a+x \$dldir/$dlname~
10054 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10055 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10056 fi'
10057 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10058 dlpath=$dir/\$dldll~
10059 $RM \$dlpath'
10060 shlibpath_overrides_runpath=yes
10061
10062 case $host_os in
10063 cygwin*)
10064 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10065 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10066
10067 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
10068 ;;
10069 mingw* | cegcc*)
10070 # MinGW DLLs use traditional 'lib' prefix
10071 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10072 ;;
10073 pw32*)
10074 # pw32 DLLs use 'pw' prefix rather than 'lib'
10075 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10076 ;;
10077 esac
10078 ;;
10079
10080 *)
10081 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10082 ;;
10083 esac
10084 dynamic_linker='Win32 ld.exe'
10085 # FIXME: first we should search . and the directory the executable is in
10086 shlibpath_var=PATH
10087 ;;
10088
10089 darwin* | rhapsody*)
10090 dynamic_linker="$host_os dyld"
10091 version_type=darwin
10092 need_lib_prefix=no
10093 need_version=no
10094 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10095 soname_spec='${libname}${release}${major}$shared_ext'
10096 shlibpath_overrides_runpath=yes
10097 shlibpath_var=DYLD_LIBRARY_PATH
10098 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10099
10100 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10101 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10102 ;;
10103
10104 dgux*)
10105 version_type=linux
10106 need_lib_prefix=no
10107 need_version=no
10108 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10109 soname_spec='${libname}${release}${shared_ext}$major'
10110 shlibpath_var=LD_LIBRARY_PATH
10111 ;;
10112
10113 freebsd* | dragonfly*)
10114 # DragonFly does not have aout. When/if they implement a new
10115 # versioning mechanism, adjust this.
10116 if test -x /usr/bin/objformat; then
10117 objformat=`/usr/bin/objformat`
10118 else
10119 case $host_os in
10120 freebsd[23].*) objformat=aout ;;
10121 *) objformat=elf ;;
10122 esac
10123 fi
10124 version_type=freebsd-$objformat
10125 case $version_type in
10126 freebsd-elf*)
10127 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10128 need_version=no
10129 need_lib_prefix=no
10130 ;;
10131 freebsd-*)
10132 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10133 need_version=yes
10134 ;;
10135 esac
10136 shlibpath_var=LD_LIBRARY_PATH
10137 case $host_os in
10138 freebsd2.*)
10139 shlibpath_overrides_runpath=yes
10140 ;;
10141 freebsd3.[01]* | freebsdelf3.[01]*)
10142 shlibpath_overrides_runpath=yes
10143 hardcode_into_libs=yes
10144 ;;
10145 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10146 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10147 shlibpath_overrides_runpath=no
10148 hardcode_into_libs=yes
10149 ;;
10150 *) # from 4.6 on, and DragonFly
10151 shlibpath_overrides_runpath=yes
10152 hardcode_into_libs=yes
10153 ;;
10154 esac
10155 ;;
10156
10157 gnu*)
10158 version_type=linux
10159 need_lib_prefix=no
10160 need_version=no
10161 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10162 soname_spec='${libname}${release}${shared_ext}$major'
10163 shlibpath_var=LD_LIBRARY_PATH
10164 hardcode_into_libs=yes
10165 ;;
10166
10167 haiku*)
10168 version_type=linux
10169 need_lib_prefix=no
10170 need_version=no
10171 dynamic_linker="$host_os runtime_loader"
10172 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10173 soname_spec='${libname}${release}${shared_ext}$major'
10174 shlibpath_var=LIBRARY_PATH
10175 shlibpath_overrides_runpath=yes
10176 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
10177 hardcode_into_libs=yes
10178 ;;
10179
10180 hpux9* | hpux10* | hpux11*)
10181 # Give a soname corresponding to the major version so that dld.sl refuses to
10182 # link against other versions.
10183 version_type=sunos
10184 need_lib_prefix=no
10185 need_version=no
10186 case $host_cpu in
10187 ia64*)
10188 shrext_cmds='.so'
10189 hardcode_into_libs=yes
10190 dynamic_linker="$host_os dld.so"
10191 shlibpath_var=LD_LIBRARY_PATH
10192 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10193 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10194 soname_spec='${libname}${release}${shared_ext}$major'
10195 if test "X$HPUX_IA64_MODE" = X32; then
10196 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10197 else
10198 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10199 fi
10200 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10201 ;;
10202 hppa*64*)
10203 shrext_cmds='.sl'
10204 hardcode_into_libs=yes
10205 dynamic_linker="$host_os dld.sl"
10206 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10207 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10208 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10209 soname_spec='${libname}${release}${shared_ext}$major'
10210 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10211 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10212 ;;
10213 *)
10214 shrext_cmds='.sl'
10215 dynamic_linker="$host_os dld.sl"
10216 shlibpath_var=SHLIB_PATH
10217 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10218 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10219 soname_spec='${libname}${release}${shared_ext}$major'
10220 ;;
10221 esac
10222 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
10223 postinstall_cmds='chmod 555 $lib'
10224 # or fails outright, so override atomically:
10225 install_override_mode=555
10226 ;;
10227
10228 interix[3-9]*)
10229 version_type=linux
10230 need_lib_prefix=no
10231 need_version=no
10232 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10233 soname_spec='${libname}${release}${shared_ext}$major'
10234 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10235 shlibpath_var=LD_LIBRARY_PATH
10236 shlibpath_overrides_runpath=no
10237 hardcode_into_libs=yes
10238 ;;
10239
10240 irix5* | irix6* | nonstopux*)
10241 case $host_os in
10242 nonstopux*) version_type=nonstopux ;;
10243 *)
10244 if test "$lt_cv_prog_gnu_ld" = yes; then
10245 version_type=linux
10246 else
10247 version_type=irix
10248 fi ;;
10249 esac
10250 need_lib_prefix=no
10251 need_version=no
10252 soname_spec='${libname}${release}${shared_ext}$major'
10253 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10254 case $host_os in
10255 irix5* | nonstopux*)
10256 libsuff= shlibsuff=
10257 ;;
10258 *)
10259 case $LD in # libtool.m4 will add one of these switches to LD
10260 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10261 libsuff= shlibsuff= libmagic=32-bit;;
10262 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10263 libsuff=32 shlibsuff=N32 libmagic=N32;;
10264 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10265 libsuff=64 shlibsuff=64 libmagic=64-bit;;
10266 *) libsuff= shlibsuff= libmagic=never-match;;
10267 esac
10268 ;;
10269 esac
10270 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10271 shlibpath_overrides_runpath=no
10272 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10273 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10274 hardcode_into_libs=yes
10275 ;;
10276
10277 # No shared lib support for Linux oldld, aout, or coff.
10278 linux*oldld* | linux*aout* | linux*coff*)
10279 dynamic_linker=no
10280 ;;
10281
10282 # This must be Linux ELF.
10283 linux* | k*bsd*-gnu | kopensolaris*-gnu)
10284 version_type=linux
10285 need_lib_prefix=no
10286 need_version=no
10287 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10288 soname_spec='${libname}${release}${shared_ext}$major'
10289 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10290 shlibpath_var=LD_LIBRARY_PATH
10291 shlibpath_overrides_runpath=no
10292
10293 # Some binutils ld are patched to set DT_RUNPATH
10294 if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
10295 $as_echo_n "(cached) " >&6
10296 else
10297 lt_cv_shlibpath_overrides_runpath=no
10298 save_LDFLAGS=$LDFLAGS
10299 save_libdir=$libdir
10300 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10301 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10302 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10303 /* end confdefs.h. */
10304
10305 int
10306 main ()
10307 {
10308
10309 ;
10310 return 0;
10311 }
10312 _ACEOF
10313 if ac_fn_c_try_link "$LINENO"; then :
10314 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
10315 lt_cv_shlibpath_overrides_runpath=yes
10316 fi
10317 fi
10318 rm -f core conftest.err conftest.$ac_objext \
10319 conftest$ac_exeext conftest.$ac_ext
10320 LDFLAGS=$save_LDFLAGS
10321 libdir=$save_libdir
10322
10323 fi
10324
10325 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
10326
10327 # This implies no fast_install, which is unacceptable.
10328 # Some rework will be needed to allow for fast_install
10329 # before this can be enabled.
10330 hardcode_into_libs=yes
10331
10332 # Append ld.so.conf contents to the search path
10333 if test -f /etc/ld.so.conf; then
10334 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' ' '`
10335 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10336 fi
10337
10338 # We used to test for /lib/ld.so.1 and disable shared libraries on
10339 # powerpc, because MkLinux only supported shared libraries with the
10340 # GNU dynamic linker. Since this was broken with cross compilers,
10341 # most powerpc-linux boxes support dynamic linking these days and
10342 # people can always --disable-shared, the test was removed, and we
10343 # assume the GNU/Linux dynamic linker is in use.
10344 dynamic_linker='GNU/Linux ld.so'
10345 ;;
10346
10347 netbsd*)
10348 version_type=sunos
10349 need_lib_prefix=no
10350 need_version=no
10351 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10352 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10353 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10354 dynamic_linker='NetBSD (a.out) ld.so'
10355 else
10356 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10357 soname_spec='${libname}${release}${shared_ext}$major'
10358 dynamic_linker='NetBSD ld.elf_so'
10359 fi
10360 shlibpath_var=LD_LIBRARY_PATH
10361 shlibpath_overrides_runpath=yes
10362 hardcode_into_libs=yes
10363 ;;
10364
10365 newsos6)
10366 version_type=linux
10367 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10368 shlibpath_var=LD_LIBRARY_PATH
10369 shlibpath_overrides_runpath=yes
10370 ;;
10371
10372 *nto* | *qnx*)
10373 version_type=qnx
10374 need_lib_prefix=no
10375 need_version=no
10376 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10377 soname_spec='${libname}${release}${shared_ext}$major'
10378 shlibpath_var=LD_LIBRARY_PATH
10379 shlibpath_overrides_runpath=no
10380 hardcode_into_libs=yes
10381 dynamic_linker='ldqnx.so'
10382 ;;
10383
10384 openbsd*)
10385 version_type=sunos
10386 sys_lib_dlsearch_path_spec="/usr/lib"
10387 need_lib_prefix=no
10388 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10389 case $host_os in
10390 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
10391 *) need_version=no ;;
10392 esac
10393 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10394 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10395 shlibpath_var=LD_LIBRARY_PATH
10396 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10397 case $host_os in
10398 openbsd2.[89] | openbsd2.[89].*)
10399 shlibpath_overrides_runpath=no
10400 ;;
10401 *)
10402 shlibpath_overrides_runpath=yes
10403 ;;
10404 esac
10405 else
10406 shlibpath_overrides_runpath=yes
10407 fi
10408 ;;
10409
10410 os2*)
10411 libname_spec='$name'
10412 shrext_cmds=".dll"
10413 need_lib_prefix=no
10414 library_names_spec='$libname${shared_ext} $libname.a'
10415 dynamic_linker='OS/2 ld.exe'
10416 shlibpath_var=LIBPATH
10417 ;;
10418
10419 osf3* | osf4* | osf5*)
10420 version_type=osf
10421 need_lib_prefix=no
10422 need_version=no
10423 soname_spec='${libname}${release}${shared_ext}$major'
10424 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10425 shlibpath_var=LD_LIBRARY_PATH
10426 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10427 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10428 ;;
10429
10430 rdos*)
10431 dynamic_linker=no
10432 ;;
10433
10434 solaris*)
10435 version_type=linux
10436 need_lib_prefix=no
10437 need_version=no
10438 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10439 soname_spec='${libname}${release}${shared_ext}$major'
10440 shlibpath_var=LD_LIBRARY_PATH
10441 shlibpath_overrides_runpath=yes
10442 hardcode_into_libs=yes
10443 # ldd complains unless libraries are executable
10444 postinstall_cmds='chmod +x $lib'
10445 ;;
10446
10447 sunos4*)
10448 version_type=sunos
10449 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10450 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10451 shlibpath_var=LD_LIBRARY_PATH
10452 shlibpath_overrides_runpath=yes
10453 if test "$with_gnu_ld" = yes; then
10454 need_lib_prefix=no
10455 fi
10456 need_version=yes
10457 ;;
10458
10459 sysv4 | sysv4.3*)
10460 version_type=linux
10461 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10462 soname_spec='${libname}${release}${shared_ext}$major'
10463 shlibpath_var=LD_LIBRARY_PATH
10464 case $host_vendor in
10465 sni)
10466 shlibpath_overrides_runpath=no
10467 need_lib_prefix=no
10468 runpath_var=LD_RUN_PATH
10469 ;;
10470 siemens)
10471 need_lib_prefix=no
10472 ;;
10473 motorola)
10474 need_lib_prefix=no
10475 need_version=no
10476 shlibpath_overrides_runpath=no
10477 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10478 ;;
10479 esac
10480 ;;
10481
10482 sysv4*MP*)
10483 if test -d /usr/nec ;then
10484 version_type=linux
10485 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10486 soname_spec='$libname${shared_ext}.$major'
10487 shlibpath_var=LD_LIBRARY_PATH
10488 fi
10489 ;;
10490
10491 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10492 version_type=freebsd-elf
10493 need_lib_prefix=no
10494 need_version=no
10495 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10496 soname_spec='${libname}${release}${shared_ext}$major'
10497 shlibpath_var=LD_LIBRARY_PATH
10498 shlibpath_overrides_runpath=yes
10499 hardcode_into_libs=yes
10500 if test "$with_gnu_ld" = yes; then
10501 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10502 else
10503 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10504 case $host_os in
10505 sco3.2v5*)
10506 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10507 ;;
10508 esac
10509 fi
10510 sys_lib_dlsearch_path_spec='/usr/lib'
10511 ;;
10512
10513 tpf*)
10514 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
10515 version_type=linux
10516 need_lib_prefix=no
10517 need_version=no
10518 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10519 shlibpath_var=LD_LIBRARY_PATH
10520 shlibpath_overrides_runpath=no
10521 hardcode_into_libs=yes
10522 ;;
10523
10524 uts4*)
10525 version_type=linux
10526 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10527 soname_spec='${libname}${release}${shared_ext}$major'
10528 shlibpath_var=LD_LIBRARY_PATH
10529 ;;
10530
10531 *)
10532 dynamic_linker=no
10533 ;;
10534 esac
10535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
10536 $as_echo "$dynamic_linker" >&6; }
10537 test "$dynamic_linker" = no && can_build_shared=no
10538
10539 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10540 if test "$GCC" = yes; then
10541 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10542 fi
10543
10544 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
10545 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
10546 fi
10547 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
10548 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
10549 fi
10550
10551
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 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
10643 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
10644 hardcode_action=
10645 if test -n "$hardcode_libdir_flag_spec" ||
10646 test -n "$runpath_var" ||
10647 test "X$hardcode_automatic" = "Xyes" ; then
10648
10649 # We can hardcode non-existent directories.
10650 if test "$hardcode_direct" != no &&
10651 # If the only mechanism to avoid hardcoding is shlibpath_var, we
10652 # have to relink, otherwise we might link with an installed library
10653 # when we should be linking with a yet-to-be-installed one
10654 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
10655 test "$hardcode_minus_L" != no; then
10656 # Linking always hardcodes the temporary library directory.
10657 hardcode_action=relink
10658 else
10659 # We can link without hardcoding, and we can hardcode nonexisting dirs.
10660 hardcode_action=immediate
10661 fi
10662 else
10663 # We cannot hardcode anything, or else we can only hardcode existing
10664 # directories.
10665 hardcode_action=unsupported
10666 fi
10667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
10668 $as_echo "$hardcode_action" >&6; }
10669
10670 if test "$hardcode_action" = relink ||
10671 test "$inherit_rpath" = yes; then
10672 # Fast installation is not supported
10673 enable_fast_install=no
10674 elif test "$shlibpath_overrides_runpath" = yes ||
10675 test "$enable_shared" = no; then
10676 # Fast installation is not necessary
10677 enable_fast_install=needless
10678 fi
10679
10680
10681
10682
10683
10684
10685 if test "x$enable_dlopen" != xyes; then
10686 enable_dlopen=unknown
10687 enable_dlopen_self=unknown
10688 enable_dlopen_self_static=unknown
10689 else
10690 lt_cv_dlopen=no
10691 lt_cv_dlopen_libs=
10692
10693 case $host_os in
10694 beos*)
10695 lt_cv_dlopen="load_add_on"
10696 lt_cv_dlopen_libs=
10697 lt_cv_dlopen_self=yes
10698 ;;
10699
10700 mingw* | pw32* | cegcc*)
10701 lt_cv_dlopen="LoadLibrary"
10702 lt_cv_dlopen_libs=
10703 ;;
10704
10705 cygwin*)
10706 lt_cv_dlopen="dlopen"
10707 lt_cv_dlopen_libs=
10708 ;;
10709
10710 darwin*)
10711 # if libdl is installed we need to link against it
10712 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10713 $as_echo_n "checking for dlopen in -ldl... " >&6; }
10714 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
10715 $as_echo_n "(cached) " >&6
10716 else
10717 ac_check_lib_save_LIBS=$LIBS
10718 LIBS="-ldl $LIBS"
10719 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10720 /* end confdefs.h. */
10721
10722 /* Override any GCC internal prototype to avoid an error.
10723 Use char because int might match the return type of a GCC
10724 builtin and then its argument prototype would still apply. */
10725 #ifdef __cplusplus
10726 extern "C"
10727 #endif
10728 char dlopen ();
10729 int
10730 main ()
10731 {
10732 return dlopen ();
10733 ;
10734 return 0;
10735 }
10736 _ACEOF
10737 if ac_fn_c_try_link "$LINENO"; then :
10738 ac_cv_lib_dl_dlopen=yes
10739 else
10740 ac_cv_lib_dl_dlopen=no
10741 fi
10742 rm -f core conftest.err conftest.$ac_objext \
10743 conftest$ac_exeext conftest.$ac_ext
10744 LIBS=$ac_check_lib_save_LIBS
10745 fi
10746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10747 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10748 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
10749 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10750 else
10751
10752 lt_cv_dlopen="dyld"
10753 lt_cv_dlopen_libs=
10754 lt_cv_dlopen_self=yes
10755
10756 fi
10757
10758 ;;
10759
10760 *)
10761 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
10762 if test "x$ac_cv_func_shl_load" = x""yes; then :
10763 lt_cv_dlopen="shl_load"
10764 else
10765 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
10766 $as_echo_n "checking for shl_load in -ldld... " >&6; }
10767 if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
10768 $as_echo_n "(cached) " >&6
10769 else
10770 ac_check_lib_save_LIBS=$LIBS
10771 LIBS="-ldld $LIBS"
10772 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10773 /* end confdefs.h. */
10774
10775 /* Override any GCC internal prototype to avoid an error.
10776 Use char because int might match the return type of a GCC
10777 builtin and then its argument prototype would still apply. */
10778 #ifdef __cplusplus
10779 extern "C"
10780 #endif
10781 char shl_load ();
10782 int
10783 main ()
10784 {
10785 return shl_load ();
10786 ;
10787 return 0;
10788 }
10789 _ACEOF
10790 if ac_fn_c_try_link "$LINENO"; then :
10791 ac_cv_lib_dld_shl_load=yes
10792 else
10793 ac_cv_lib_dld_shl_load=no
10794 fi
10795 rm -f core conftest.err conftest.$ac_objext \
10796 conftest$ac_exeext conftest.$ac_ext
10797 LIBS=$ac_check_lib_save_LIBS
10798 fi
10799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
10800 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
10801 if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
10802 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
10803 else
10804 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
10805 if test "x$ac_cv_func_dlopen" = x""yes; then :
10806 lt_cv_dlopen="dlopen"
10807 else
10808 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10809 $as_echo_n "checking for dlopen in -ldl... " >&6; }
10810 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
10811 $as_echo_n "(cached) " >&6
10812 else
10813 ac_check_lib_save_LIBS=$LIBS
10814 LIBS="-ldl $LIBS"
10815 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10816 /* end confdefs.h. */
10817
10818 /* Override any GCC internal prototype to avoid an error.
10819 Use char because int might match the return type of a GCC
10820 builtin and then its argument prototype would still apply. */
10821 #ifdef __cplusplus
10822 extern "C"
10823 #endif
10824 char dlopen ();
10825 int
10826 main ()
10827 {
10828 return dlopen ();
10829 ;
10830 return 0;
10831 }
10832 _ACEOF
10833 if ac_fn_c_try_link "$LINENO"; then :
10834 ac_cv_lib_dl_dlopen=yes
10835 else
10836 ac_cv_lib_dl_dlopen=no
10837 fi
10838 rm -f core conftest.err conftest.$ac_objext \
10839 conftest$ac_exeext conftest.$ac_ext
10840 LIBS=$ac_check_lib_save_LIBS
10841 fi
10842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10843 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10844 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
10845 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10846 else
10847 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
10848 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
10849 if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
10850 $as_echo_n "(cached) " >&6
10851 else
10852 ac_check_lib_save_LIBS=$LIBS
10853 LIBS="-lsvld $LIBS"
10854 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10855 /* end confdefs.h. */
10856
10857 /* Override any GCC internal prototype to avoid an error.
10858 Use char because int might match the return type of a GCC
10859 builtin and then its argument prototype would still apply. */
10860 #ifdef __cplusplus
10861 extern "C"
10862 #endif
10863 char dlopen ();
10864 int
10865 main ()
10866 {
10867 return dlopen ();
10868 ;
10869 return 0;
10870 }
10871 _ACEOF
10872 if ac_fn_c_try_link "$LINENO"; then :
10873 ac_cv_lib_svld_dlopen=yes
10874 else
10875 ac_cv_lib_svld_dlopen=no
10876 fi
10877 rm -f core conftest.err conftest.$ac_objext \
10878 conftest$ac_exeext conftest.$ac_ext
10879 LIBS=$ac_check_lib_save_LIBS
10880 fi
10881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
10882 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
10883 if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
10884 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10885 else
10886 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
10887 $as_echo_n "checking for dld_link in -ldld... " >&6; }
10888 if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
10889 $as_echo_n "(cached) " >&6
10890 else
10891 ac_check_lib_save_LIBS=$LIBS
10892 LIBS="-ldld $LIBS"
10893 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10894 /* end confdefs.h. */
10895
10896 /* Override any GCC internal prototype to avoid an error.
10897 Use char because int might match the return type of a GCC
10898 builtin and then its argument prototype would still apply. */
10899 #ifdef __cplusplus
10900 extern "C"
10901 #endif
10902 char dld_link ();
10903 int
10904 main ()
10905 {
10906 return dld_link ();
10907 ;
10908 return 0;
10909 }
10910 _ACEOF
10911 if ac_fn_c_try_link "$LINENO"; then :
10912 ac_cv_lib_dld_dld_link=yes
10913 else
10914 ac_cv_lib_dld_dld_link=no
10915 fi
10916 rm -f core conftest.err conftest.$ac_objext \
10917 conftest$ac_exeext conftest.$ac_ext
10918 LIBS=$ac_check_lib_save_LIBS
10919 fi
10920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
10921 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
10922 if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
10923 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
10924 fi
10925
10926
10927 fi
10928
10929
10930 fi
10931
10932
10933 fi
10934
10935
10936 fi
10937
10938
10939 fi
10940
10941 ;;
10942 esac
10943
10944 if test "x$lt_cv_dlopen" != xno; then
10945 enable_dlopen=yes
10946 else
10947 enable_dlopen=no
10948 fi
10949
10950 case $lt_cv_dlopen in
10951 dlopen)
10952 save_CPPFLAGS="$CPPFLAGS"
10953 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
10954
10955 save_LDFLAGS="$LDFLAGS"
10956 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
10957
10958 save_LIBS="$LIBS"
10959 LIBS="$lt_cv_dlopen_libs $LIBS"
10960
10961 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
10962 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
10963 if test "${lt_cv_dlopen_self+set}" = set; then :
10964 $as_echo_n "(cached) " >&6
10965 else
10966 if test "$cross_compiling" = yes; then :
10967 lt_cv_dlopen_self=cross
10968 else
10969 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10970 lt_status=$lt_dlunknown
10971 cat > conftest.$ac_ext <<_LT_EOF
10972 #line 10972 "configure"
10973 #include "confdefs.h"
10974
10975 #if HAVE_DLFCN_H
10976 #include <dlfcn.h>
10977 #endif
10978
10979 #include <stdio.h>
10980
10981 #ifdef RTLD_GLOBAL
10982 # define LT_DLGLOBAL RTLD_GLOBAL
10983 #else
10984 # ifdef DL_GLOBAL
10985 # define LT_DLGLOBAL DL_GLOBAL
10986 # else
10987 # define LT_DLGLOBAL 0
10988 # endif
10989 #endif
10990
10991 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10992 find out it does not work in some platform. */
10993 #ifndef LT_DLLAZY_OR_NOW
10994 # ifdef RTLD_LAZY
10995 # define LT_DLLAZY_OR_NOW RTLD_LAZY
10996 # else
10997 # ifdef DL_LAZY
10998 # define LT_DLLAZY_OR_NOW DL_LAZY
10999 # else
11000 # ifdef RTLD_NOW
11001 # define LT_DLLAZY_OR_NOW RTLD_NOW
11002 # else
11003 # ifdef DL_NOW
11004 # define LT_DLLAZY_OR_NOW DL_NOW
11005 # else
11006 # define LT_DLLAZY_OR_NOW 0
11007 # endif
11008 # endif
11009 # endif
11010 # endif
11011 #endif
11012
11013 /* When -fvisbility=hidden is used, assume the code has been annotated
11014 correspondingly for the symbols needed. */
11015 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11016 void fnord () __attribute__((visibility("default")));
11017 #endif
11018
11019 void fnord () { int i=42; }
11020 int main ()
11021 {
11022 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11023 int status = $lt_dlunknown;
11024
11025 if (self)
11026 {
11027 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11028 else
11029 {
11030 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11031 else puts (dlerror ());
11032 }
11033 /* dlclose (self); */
11034 }
11035 else
11036 puts (dlerror ());
11037
11038 return status;
11039 }
11040 _LT_EOF
11041 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11042 (eval $ac_link) 2>&5
11043 ac_status=$?
11044 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11045 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11046 (./conftest; exit; ) >&5 2>/dev/null
11047 lt_status=$?
11048 case x$lt_status in
11049 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11050 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11051 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11052 esac
11053 else :
11054 # compilation failed
11055 lt_cv_dlopen_self=no
11056 fi
11057 fi
11058 rm -fr conftest*
11059
11060
11061 fi
11062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11063 $as_echo "$lt_cv_dlopen_self" >&6; }
11064
11065 if test "x$lt_cv_dlopen_self" = xyes; then
11066 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11067 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11068 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11069 if test "${lt_cv_dlopen_self_static+set}" = set; then :
11070 $as_echo_n "(cached) " >&6
11071 else
11072 if test "$cross_compiling" = yes; then :
11073 lt_cv_dlopen_self_static=cross
11074 else
11075 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11076 lt_status=$lt_dlunknown
11077 cat > conftest.$ac_ext <<_LT_EOF
11078 #line 11078 "configure"
11079 #include "confdefs.h"
11080
11081 #if HAVE_DLFCN_H
11082 #include <dlfcn.h>
11083 #endif
11084
11085 #include <stdio.h>
11086
11087 #ifdef RTLD_GLOBAL
11088 # define LT_DLGLOBAL RTLD_GLOBAL
11089 #else
11090 # ifdef DL_GLOBAL
11091 # define LT_DLGLOBAL DL_GLOBAL
11092 # else
11093 # define LT_DLGLOBAL 0
11094 # endif
11095 #endif
11096
11097 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11098 find out it does not work in some platform. */
11099 #ifndef LT_DLLAZY_OR_NOW
11100 # ifdef RTLD_LAZY
11101 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11102 # else
11103 # ifdef DL_LAZY
11104 # define LT_DLLAZY_OR_NOW DL_LAZY
11105 # else
11106 # ifdef RTLD_NOW
11107 # define LT_DLLAZY_OR_NOW RTLD_NOW
11108 # else
11109 # ifdef DL_NOW
11110 # define LT_DLLAZY_OR_NOW DL_NOW
11111 # else
11112 # define LT_DLLAZY_OR_NOW 0
11113 # endif
11114 # endif
11115 # endif
11116 # endif
11117 #endif
11118
11119 /* When -fvisbility=hidden is used, assume the code has been annotated
11120 correspondingly for the symbols needed. */
11121 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11122 void fnord () __attribute__((visibility("default")));
11123 #endif
11124
11125 void fnord () { int i=42; }
11126 int main ()
11127 {
11128 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11129 int status = $lt_dlunknown;
11130
11131 if (self)
11132 {
11133 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11134 else
11135 {
11136 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11137 else puts (dlerror ());
11138 }
11139 /* dlclose (self); */
11140 }
11141 else
11142 puts (dlerror ());
11143
11144 return status;
11145 }
11146 _LT_EOF
11147 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11148 (eval $ac_link) 2>&5
11149 ac_status=$?
11150 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11151 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11152 (./conftest; exit; ) >&5 2>/dev/null
11153 lt_status=$?
11154 case x$lt_status in
11155 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11156 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11157 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11158 esac
11159 else :
11160 # compilation failed
11161 lt_cv_dlopen_self_static=no
11162 fi
11163 fi
11164 rm -fr conftest*
11165
11166
11167 fi
11168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11169 $as_echo "$lt_cv_dlopen_self_static" >&6; }
11170 fi
11171
11172 CPPFLAGS="$save_CPPFLAGS"
11173 LDFLAGS="$save_LDFLAGS"
11174 LIBS="$save_LIBS"
11175 ;;
11176 esac
11177
11178 case $lt_cv_dlopen_self in
11179 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11180 *) enable_dlopen_self=unknown ;;
11181 esac
11182
11183 case $lt_cv_dlopen_self_static in
11184 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11185 *) enable_dlopen_self_static=unknown ;;
11186 esac
11187 fi
11188
11189
11190
11191
11192
11193
11194
11195
11196
11197
11198
11199
11200
11201
11202
11203
11204
11205 striplib=
11206 old_striplib=
11207 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11208 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
11209 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11210 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11211 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11213 $as_echo "yes" >&6; }
11214 else
11215 # FIXME - insert some real tests, host_os isn't really good enough
11216 case $host_os in
11217 darwin*)
11218 if test -n "$STRIP" ; then
11219 striplib="$STRIP -x"
11220 old_striplib="$STRIP -S"
11221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11222 $as_echo "yes" >&6; }
11223 else
11224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11225 $as_echo "no" >&6; }
11226 fi
11227 ;;
11228 *)
11229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11230 $as_echo "no" >&6; }
11231 ;;
11232 esac
11233 fi
11234
11235
11236
11237
11238
11239
11240
11241
11242
11243
11244
11245
11246 # Report which library types will actually be built
11247 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
11248 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
11249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
11250 $as_echo "$can_build_shared" >&6; }
11251
11252 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
11253 $as_echo_n "checking whether to build shared libraries... " >&6; }
11254 test "$can_build_shared" = "no" && enable_shared=no
11255
11256 # On AIX, shared libraries and static libraries use the same namespace, and
11257 # are all built from PIC.
11258 case $host_os in
11259 aix3*)
11260 test "$enable_shared" = yes && enable_static=no
11261 if test -n "$RANLIB"; then
11262 archive_cmds="$archive_cmds~\$RANLIB \$lib"
11263 postinstall_cmds='$RANLIB $lib'
11264 fi
11265 ;;
11266
11267 aix[4-9]*)
11268 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11269 test "$enable_shared" = yes && enable_static=no
11270 fi
11271 ;;
11272 esac
11273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
11274 $as_echo "$enable_shared" >&6; }
11275
11276 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
11277 $as_echo_n "checking whether to build static libraries... " >&6; }
11278 # Make sure either enable_shared or enable_static is yes.
11279 test "$enable_shared" = yes || enable_static=yes
11280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
11281 $as_echo "$enable_static" >&6; }
11282
11283
11284
11285
11286 fi
11287 ac_ext=c
11288 ac_cpp='$CPP $CPPFLAGS'
11289 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11290 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11291 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11292
11293 CC="$lt_save_CC"
11294
11295
11296
11297
11298
11299
11300
11301
11302
11303
11304
11305
11306
11307 ac_config_commands="$ac_config_commands libtool"
11308
11309
11310
11311
11312 # Only expand once:
11313
11314
11315
11316 # The tests for host and target for $enable_largefile require
11317 # canonical names.
11318
11319
11320
11321 # As the $enable_largefile decision depends on --enable-plugins we must set it
11322 # even in directories otherwise not depending on the $plugins option.
11323
11324
11325 maybe_plugins=no
11326 for ac_header in dlfcn.h
11327 do :
11328 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
11329 "
11330 if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
11331 cat >>confdefs.h <<_ACEOF
11332 #define HAVE_DLFCN_H 1
11333 _ACEOF
11334 maybe_plugins=yes
11335 fi
11336
11337 done
11338
11339 for ac_header in windows.h
11340 do :
11341 ac_fn_c_check_header_compile "$LINENO" "windows.h" "ac_cv_header_windows_h" "$ac_includes_default
11342 "
11343 if test "x$ac_cv_header_windows_h" = x""yes; then :
11344 cat >>confdefs.h <<_ACEOF
11345 #define HAVE_WINDOWS_H 1
11346 _ACEOF
11347 maybe_plugins=yes
11348 fi
11349
11350 done
11351
11352
11353 # Check whether --enable-plugins was given.
11354 if test "${enable_plugins+set}" = set; then :
11355 enableval=$enable_plugins; case "${enableval}" in
11356 no) plugins=no ;;
11357 *) plugins=yes
11358 if test "$maybe_plugins" != "yes" ; then
11359 as_fn_error "Building with plugin support requires a host that supports dlopen." "$LINENO" 5
11360 fi ;;
11361 esac
11362 else
11363 plugins=$maybe_plugins
11364
11365 fi
11366
11367 if test "$plugins" = "yes"; then
11368 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
11369 $as_echo_n "checking for library containing dlopen... " >&6; }
11370 if test "${ac_cv_search_dlopen+set}" = set; then :
11371 $as_echo_n "(cached) " >&6
11372 else
11373 ac_func_search_save_LIBS=$LIBS
11374 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11375 /* end confdefs.h. */
11376
11377 /* Override any GCC internal prototype to avoid an error.
11378 Use char because int might match the return type of a GCC
11379 builtin and then its argument prototype would still apply. */
11380 #ifdef __cplusplus
11381 extern "C"
11382 #endif
11383 char dlopen ();
11384 int
11385 main ()
11386 {
11387 return dlopen ();
11388 ;
11389 return 0;
11390 }
11391 _ACEOF
11392 for ac_lib in '' dl; do
11393 if test -z "$ac_lib"; then
11394 ac_res="none required"
11395 else
11396 ac_res=-l$ac_lib
11397 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
11398 fi
11399 if ac_fn_c_try_link "$LINENO"; then :
11400 ac_cv_search_dlopen=$ac_res
11401 fi
11402 rm -f core conftest.err conftest.$ac_objext \
11403 conftest$ac_exeext
11404 if test "${ac_cv_search_dlopen+set}" = set; then :
11405 break
11406 fi
11407 done
11408 if test "${ac_cv_search_dlopen+set}" = set; then :
11409
11410 else
11411 ac_cv_search_dlopen=no
11412 fi
11413 rm conftest.$ac_ext
11414 LIBS=$ac_func_search_save_LIBS
11415 fi
11416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
11417 $as_echo "$ac_cv_search_dlopen" >&6; }
11418 ac_res=$ac_cv_search_dlopen
11419 if test "$ac_res" != no; then :
11420 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
11421
11422 fi
11423
11424 fi
11425
11426
11427 case "${host}" in
11428 sparc-*-solaris*|i[3-7]86-*-solaris*)
11429 # On native 32bit sparc and ia32 solaris, large-file and procfs support
11430 # are mutually exclusive; and without procfs support, the bfd/ elf module
11431 # cannot provide certain routines such as elfcore_write_prpsinfo
11432 # or elfcore_write_prstatus. So unless the user explicitly requested
11433 # large-file support through the --enable-largefile switch, disable
11434 # large-file support in favor of procfs support.
11435 test "${target}" = "${host}" -a "x$plugins" = xno \
11436 && : ${enable_largefile="no"}
11437 ;;
11438 esac
11439
11440 # Check whether --enable-largefile was given.
11441 if test "${enable_largefile+set}" = set; then :
11442 enableval=$enable_largefile;
11443 fi
11444
11445 if test "$enable_largefile" != no; then
11446
11447 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
11448 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
11449 if test "${ac_cv_sys_largefile_CC+set}" = set; then :
11450 $as_echo_n "(cached) " >&6
11451 else
11452 ac_cv_sys_largefile_CC=no
11453 if test "$GCC" != yes; then
11454 ac_save_CC=$CC
11455 while :; do
11456 # IRIX 6.2 and later do not support large files by default,
11457 # so use the C compiler's -n32 option if that helps.
11458 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11459 /* end confdefs.h. */
11460 #include <sys/types.h>
11461 /* Check that off_t can represent 2**63 - 1 correctly.
11462 We can't simply define LARGE_OFF_T to be 9223372036854775807,
11463 since some C++ compilers masquerading as C compilers
11464 incorrectly reject 9223372036854775807. */
11465 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
11466 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
11467 && LARGE_OFF_T % 2147483647 == 1)
11468 ? 1 : -1];
11469 int
11470 main ()
11471 {
11472
11473 ;
11474 return 0;
11475 }
11476 _ACEOF
11477 if ac_fn_c_try_compile "$LINENO"; then :
11478 break
11479 fi
11480 rm -f core conftest.err conftest.$ac_objext
11481 CC="$CC -n32"
11482 if ac_fn_c_try_compile "$LINENO"; then :
11483 ac_cv_sys_largefile_CC=' -n32'; break
11484 fi
11485 rm -f core conftest.err conftest.$ac_objext
11486 break
11487 done
11488 CC=$ac_save_CC
11489 rm -f conftest.$ac_ext
11490 fi
11491 fi
11492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
11493 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
11494 if test "$ac_cv_sys_largefile_CC" != no; then
11495 CC=$CC$ac_cv_sys_largefile_CC
11496 fi
11497
11498 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
11499 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
11500 if test "${ac_cv_sys_file_offset_bits+set}" = set; then :
11501 $as_echo_n "(cached) " >&6
11502 else
11503 while :; do
11504 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11505 /* end confdefs.h. */
11506 #include <sys/types.h>
11507 /* Check that off_t can represent 2**63 - 1 correctly.
11508 We can't simply define LARGE_OFF_T to be 9223372036854775807,
11509 since some C++ compilers masquerading as C compilers
11510 incorrectly reject 9223372036854775807. */
11511 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
11512 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
11513 && LARGE_OFF_T % 2147483647 == 1)
11514 ? 1 : -1];
11515 int
11516 main ()
11517 {
11518
11519 ;
11520 return 0;
11521 }
11522 _ACEOF
11523 if ac_fn_c_try_compile "$LINENO"; then :
11524 ac_cv_sys_file_offset_bits=no; break
11525 fi
11526 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11527 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11528 /* end confdefs.h. */
11529 #define _FILE_OFFSET_BITS 64
11530 #include <sys/types.h>
11531 /* Check that off_t can represent 2**63 - 1 correctly.
11532 We can't simply define LARGE_OFF_T to be 9223372036854775807,
11533 since some C++ compilers masquerading as C compilers
11534 incorrectly reject 9223372036854775807. */
11535 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
11536 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
11537 && LARGE_OFF_T % 2147483647 == 1)
11538 ? 1 : -1];
11539 int
11540 main ()
11541 {
11542
11543 ;
11544 return 0;
11545 }
11546 _ACEOF
11547 if ac_fn_c_try_compile "$LINENO"; then :
11548 ac_cv_sys_file_offset_bits=64; break
11549 fi
11550 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11551 ac_cv_sys_file_offset_bits=unknown
11552 break
11553 done
11554 fi
11555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
11556 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
11557 case $ac_cv_sys_file_offset_bits in #(
11558 no | unknown) ;;
11559 *)
11560 cat >>confdefs.h <<_ACEOF
11561 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
11562 _ACEOF
11563 ;;
11564 esac
11565 rm -rf conftest*
11566 if test $ac_cv_sys_file_offset_bits = unknown; then
11567 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
11568 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
11569 if test "${ac_cv_sys_large_files+set}" = set; then :
11570 $as_echo_n "(cached) " >&6
11571 else
11572 while :; do
11573 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11574 /* end confdefs.h. */
11575 #include <sys/types.h>
11576 /* Check that off_t can represent 2**63 - 1 correctly.
11577 We can't simply define LARGE_OFF_T to be 9223372036854775807,
11578 since some C++ compilers masquerading as C compilers
11579 incorrectly reject 9223372036854775807. */
11580 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
11581 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
11582 && LARGE_OFF_T % 2147483647 == 1)
11583 ? 1 : -1];
11584 int
11585 main ()
11586 {
11587
11588 ;
11589 return 0;
11590 }
11591 _ACEOF
11592 if ac_fn_c_try_compile "$LINENO"; then :
11593 ac_cv_sys_large_files=no; break
11594 fi
11595 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11596 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11597 /* end confdefs.h. */
11598 #define _LARGE_FILES 1
11599 #include <sys/types.h>
11600 /* Check that off_t can represent 2**63 - 1 correctly.
11601 We can't simply define LARGE_OFF_T to be 9223372036854775807,
11602 since some C++ compilers masquerading as C compilers
11603 incorrectly reject 9223372036854775807. */
11604 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
11605 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
11606 && LARGE_OFF_T % 2147483647 == 1)
11607 ? 1 : -1];
11608 int
11609 main ()
11610 {
11611
11612 ;
11613 return 0;
11614 }
11615 _ACEOF
11616 if ac_fn_c_try_compile "$LINENO"; then :
11617 ac_cv_sys_large_files=1; break
11618 fi
11619 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11620 ac_cv_sys_large_files=unknown
11621 break
11622 done
11623 fi
11624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
11625 $as_echo "$ac_cv_sys_large_files" >&6; }
11626 case $ac_cv_sys_large_files in #(
11627 no | unknown) ;;
11628 *)
11629 cat >>confdefs.h <<_ACEOF
11630 #define _LARGE_FILES $ac_cv_sys_large_files
11631 _ACEOF
11632 ;;
11633 esac
11634 rm -rf conftest*
11635 fi
11636 fi
11637
11638
11639
11640 # Check whether --enable-targets was given.
11641 if test "${enable_targets+set}" = set; then :
11642 enableval=$enable_targets; case "${enableval}" in
11643 yes | "") as_fn_error "enable-targets option must specify target names or 'all'" "$LINENO" 5
11644 ;;
11645 no) enable_targets= ;;
11646 *) enable_targets=$enableval ;;
11647 esac
11648 fi
11649
11650 ac_checking=yes
11651 if grep '^RELEASE=y' ${srcdir}/../bfd/Makefile.am >/dev/null 2>/dev/null ; then
11652 ac_checking=
11653 fi
11654 # Check whether --enable-checking was given.
11655 if test "${enable_checking+set}" = set; then :
11656 enableval=$enable_checking; case "${enableval}" in
11657 no|none) ac_checking= ;;
11658 *) ac_checking=yes ;;
11659 esac
11660 fi
11661 if test x$ac_checking != x ; then
11662
11663 $as_echo "#define ENABLE_CHECKING 1" >>confdefs.h
11664
11665 fi
11666
11667 using_cgen=no
11668
11669
11670 # Set the 'development' global.
11671 . $srcdir/../bfd/development.sh
11672
11673 GCC_WARN_CFLAGS="-W -Wall -Wstrict-prototypes -Wmissing-prototypes"
11674 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11675 /* end confdefs.h. */
11676 __GNUC__
11677 _ACEOF
11678 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11679 $EGREP "^[0-3]$" >/dev/null 2>&1; then :
11680
11681 else
11682 GCC_WARN_CFLAGS="$GCC_WARN_CFLAGS -Wshadow"
11683 fi
11684 rm -f conftest*
11685
11686
11687 # Check whether --enable-werror was given.
11688 if test "${enable_werror+set}" = set; then :
11689 enableval=$enable_werror; case "${enableval}" in
11690 yes | y) ERROR_ON_WARNING="yes" ;;
11691 no | n) ERROR_ON_WARNING="no" ;;
11692 *) as_fn_error "bad value ${enableval} for --enable-werror" "$LINENO" 5 ;;
11693 esac
11694 fi
11695
11696
11697 # Disable -Wformat by default when using gcc on mingw
11698 case "${host}" in
11699 *-*-mingw32*)
11700 if test "${GCC}" = yes -a -z "${ERROR_ON_WARNING}" ; then
11701 GCC_WARN_CFLAGS="$GCC_WARN_CFLAGS -Wno-format"
11702 fi
11703 ;;
11704 *) ;;
11705 esac
11706
11707 # Enable -Werror by default when using gcc. Turn it off for releases.
11708 if test "${GCC}" = yes -a -z "${ERROR_ON_WARNING}" -a "$development" = true ; then
11709 ERROR_ON_WARNING=yes
11710 fi
11711
11712 NO_WERROR=
11713 if test "${ERROR_ON_WARNING}" = yes ; then
11714 GCC_WARN_CFLAGS="$GCC_WARN_CFLAGS -Werror"
11715 NO_WERROR="-Wno-error"
11716 fi
11717
11718 if test "${GCC}" = yes ; then
11719 WARN_CFLAGS="${GCC_WARN_CFLAGS}"
11720 fi
11721
11722 # Check whether --enable-build-warnings was given.
11723 if test "${enable_build_warnings+set}" = set; then :
11724 enableval=$enable_build_warnings; case "${enableval}" in
11725 yes) WARN_CFLAGS="${GCC_WARN_CFLAGS}";;
11726 no) if test "${GCC}" = yes ; then
11727 WARN_CFLAGS="-w"
11728 fi;;
11729 ,*) t=`echo "${enableval}" | sed -e "s/,/ /g"`
11730 WARN_CFLAGS="${GCC_WARN_CFLAGS} ${t}";;
11731 *,) t=`echo "${enableval}" | sed -e "s/,/ /g"`
11732 WARN_CFLAGS="${t} ${GCC_WARN_CFLAGS}";;
11733 *) WARN_CFLAGS=`echo "${enableval}" | sed -e "s/,/ /g"`;;
11734 esac
11735 fi
11736
11737
11738 if test x"$silent" != x"yes" && test x"$WARN_CFLAGS" != x""; then
11739 echo "Setting warning flags = $WARN_CFLAGS" 6>&1
11740 fi
11741
11742
11743
11744
11745
11746 # Generate a header file
11747 ac_config_headers="$ac_config_headers config.h:config.in"
11748
11749
11750 # PR 14072
11751
11752
11753 # If we are on a DOS filesystem, we must use gdb.ini rather than
11754 # .gdbinit.
11755 case "${host}" in
11756 *-*-msdos* | *-*-go32* | *-*-mingw32* | *-*-windows*)
11757 GDBINIT="gdb.ini"
11758 ac_config_files="$ac_config_files gdb.ini:gdbinit.in"
11759
11760 ;;
11761 *)
11762 GDBINIT=".gdbinit"
11763 ac_config_files="$ac_config_files .gdbinit:gdbinit.in"
11764
11765 ;;
11766 esac
11767
11768
11769 #We need this for the host. BOUT header is in host order.
11770 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
11771 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
11772 if test "${ac_cv_c_bigendian+set}" = set; then :
11773 $as_echo_n "(cached) " >&6
11774 else
11775 ac_cv_c_bigendian=unknown
11776 # See if we're dealing with a universal compiler.
11777 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11778 /* end confdefs.h. */
11779 #ifndef __APPLE_CC__
11780 not a universal capable compiler
11781 #endif
11782 typedef int dummy;
11783
11784 _ACEOF
11785 if ac_fn_c_try_compile "$LINENO"; then :
11786
11787 # Check for potential -arch flags. It is not universal unless
11788 # there are at least two -arch flags with different values.
11789 ac_arch=
11790 ac_prev=
11791 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
11792 if test -n "$ac_prev"; then
11793 case $ac_word in
11794 i?86 | x86_64 | ppc | ppc64)
11795 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
11796 ac_arch=$ac_word
11797 else
11798 ac_cv_c_bigendian=universal
11799 break
11800 fi
11801 ;;
11802 esac
11803 ac_prev=
11804 elif test "x$ac_word" = "x-arch"; then
11805 ac_prev=arch
11806 fi
11807 done
11808 fi
11809 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11810 if test $ac_cv_c_bigendian = unknown; then
11811 # See if sys/param.h defines the BYTE_ORDER macro.
11812 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11813 /* end confdefs.h. */
11814 #include <sys/types.h>
11815 #include <sys/param.h>
11816
11817 int
11818 main ()
11819 {
11820 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
11821 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
11822 && LITTLE_ENDIAN)
11823 bogus endian macros
11824 #endif
11825
11826 ;
11827 return 0;
11828 }
11829 _ACEOF
11830 if ac_fn_c_try_compile "$LINENO"; then :
11831 # It does; now see whether it defined to BIG_ENDIAN or not.
11832 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11833 /* end confdefs.h. */
11834 #include <sys/types.h>
11835 #include <sys/param.h>
11836
11837 int
11838 main ()
11839 {
11840 #if BYTE_ORDER != BIG_ENDIAN
11841 not big endian
11842 #endif
11843
11844 ;
11845 return 0;
11846 }
11847 _ACEOF
11848 if ac_fn_c_try_compile "$LINENO"; then :
11849 ac_cv_c_bigendian=yes
11850 else
11851 ac_cv_c_bigendian=no
11852 fi
11853 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11854 fi
11855 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11856 fi
11857 if test $ac_cv_c_bigendian = unknown; then
11858 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
11859 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11860 /* end confdefs.h. */
11861 #include <limits.h>
11862
11863 int
11864 main ()
11865 {
11866 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
11867 bogus endian macros
11868 #endif
11869
11870 ;
11871 return 0;
11872 }
11873 _ACEOF
11874 if ac_fn_c_try_compile "$LINENO"; then :
11875 # It does; now see whether it defined to _BIG_ENDIAN or not.
11876 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11877 /* end confdefs.h. */
11878 #include <limits.h>
11879
11880 int
11881 main ()
11882 {
11883 #ifndef _BIG_ENDIAN
11884 not big endian
11885 #endif
11886
11887 ;
11888 return 0;
11889 }
11890 _ACEOF
11891 if ac_fn_c_try_compile "$LINENO"; then :
11892 ac_cv_c_bigendian=yes
11893 else
11894 ac_cv_c_bigendian=no
11895 fi
11896 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11897 fi
11898 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11899 fi
11900 if test $ac_cv_c_bigendian = unknown; then
11901 # Compile a test program.
11902 if test "$cross_compiling" = yes; then :
11903 # Try to guess by grepping values from an object file.
11904 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11905 /* end confdefs.h. */
11906 short int ascii_mm[] =
11907 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
11908 short int ascii_ii[] =
11909 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
11910 int use_ascii (int i) {
11911 return ascii_mm[i] + ascii_ii[i];
11912 }
11913 short int ebcdic_ii[] =
11914 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
11915 short int ebcdic_mm[] =
11916 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
11917 int use_ebcdic (int i) {
11918 return ebcdic_mm[i] + ebcdic_ii[i];
11919 }
11920 extern int foo;
11921
11922 int
11923 main ()
11924 {
11925 return use_ascii (foo) == use_ebcdic (foo);
11926 ;
11927 return 0;
11928 }
11929 _ACEOF
11930 if ac_fn_c_try_compile "$LINENO"; then :
11931 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
11932 ac_cv_c_bigendian=yes
11933 fi
11934 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
11935 if test "$ac_cv_c_bigendian" = unknown; then
11936 ac_cv_c_bigendian=no
11937 else
11938 # finding both strings is unlikely to happen, but who knows?
11939 ac_cv_c_bigendian=unknown
11940 fi
11941 fi
11942 fi
11943 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11944 else
11945 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11946 /* end confdefs.h. */
11947 $ac_includes_default
11948 int
11949 main ()
11950 {
11951
11952 /* Are we little or big endian? From Harbison&Steele. */
11953 union
11954 {
11955 long int l;
11956 char c[sizeof (long int)];
11957 } u;
11958 u.l = 1;
11959 return u.c[sizeof (long int) - 1] == 1;
11960
11961 ;
11962 return 0;
11963 }
11964 _ACEOF
11965 if ac_fn_c_try_run "$LINENO"; then :
11966 ac_cv_c_bigendian=no
11967 else
11968 ac_cv_c_bigendian=yes
11969 fi
11970 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11971 conftest.$ac_objext conftest.beam conftest.$ac_ext
11972 fi
11973
11974 fi
11975 fi
11976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
11977 $as_echo "$ac_cv_c_bigendian" >&6; }
11978 case $ac_cv_c_bigendian in #(
11979 yes)
11980 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
11981 ;; #(
11982 no)
11983 ;; #(
11984 universal)
11985
11986 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
11987
11988 ;; #(
11989 *)
11990 as_fn_error "unknown endianness
11991 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
11992 esac
11993
11994
11995 te_file=generic
11996
11997 # Makefile target for installing gas in $(tooldir)/bin.
11998 install_tooldir=install-exec-tooldir
11999
12000 canon_targets=""
12001 all_targets=no
12002 if test -n "$enable_targets" ; then
12003 for t in `echo $enable_targets | sed 's/,/ /g'`; do
12004 if test $t = "all"; then
12005 all_targets=yes
12006 continue
12007 fi
12008 result=`$ac_config_sub $t 2>/dev/null`
12009 if test -n "$result" ; then
12010 canon_targets="$canon_targets $result"
12011 # else
12012 # # Permit "all", etc. We don't support it yet though.
12013 # canon_targets="$canon_targets $t"
12014 fi
12015 done
12016 _gas_uniq_list="$canon_targets"
12017 _gas_uniq_newlist=""
12018 for _gas_uniq_i in _gas_uniq_dummy $_gas_uniq_list ; do
12019 case $_gas_uniq_i in
12020 _gas_uniq_dummy) ;;
12021 *) case " $_gas_uniq_newlist " in
12022 *" $_gas_uniq_i "*) ;;
12023 *) _gas_uniq_newlist="$_gas_uniq_newlist $_gas_uniq_i" ;;
12024 esac ;;
12025 esac
12026 done
12027 canon_targets=$_gas_uniq_newlist
12028
12029 fi
12030
12031 emulations=""
12032
12033 for this_target in $target $canon_targets ; do
12034
12035 targ=${this_target}
12036 . ${srcdir}/configure.tgt
12037
12038 case ${target_cpu} in
12039 crisv32)
12040
12041 cat >>confdefs.h <<_ACEOF
12042 #define DEFAULT_CRIS_ARCH $arch
12043 _ACEOF
12044
12045 ;;
12046 esac
12047
12048 if test ${this_target} = $target ; then
12049 target_cpu_type=${cpu_type}
12050 elif test ${target_cpu_type} != ${cpu_type} ; then
12051 continue
12052 fi
12053
12054 generic_target=${cpu_type}-${target_vendor}-${target_os}
12055 case ${generic_target} in
12056 i386-*-sco3.2v5*)
12057 if test ${this_target} = $target; then
12058
12059 $as_echo "#define SCO_ELF 1" >>confdefs.h
12060
12061 fi
12062 ;;
12063
12064 i386-*-msdosdjgpp* \
12065 | i386-*-go32* \
12066 | i386-go32-rtems*)
12067
12068 $as_echo "#define STRICTCOFF 1" >>confdefs.h
12069
12070 ;;
12071
12072 i860-*-*)
12073 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: GAS support for ${generic_target} is preliminary and a work in progress" >&5
12074 $as_echo "$as_me: WARNING: GAS support for ${generic_target} is preliminary and a work in progress" >&2;}
12075 ;;
12076
12077 microblaze*)
12078 ;;
12079
12080 ppc-*-aix[5-9].*)
12081
12082 $as_echo "#define AIX_WEAK_SUPPORT 1" >>confdefs.h
12083
12084 ;;
12085 ppc-*-solaris*)
12086 if test ${this_target} = $target; then
12087
12088 $as_echo "#define TARGET_SOLARIS_COMMENT 1" >>confdefs.h
12089
12090 fi
12091 if test x${endian} = xbig; then
12092 as_fn_error "Solaris must be configured little endian" "$LINENO" 5
12093 fi
12094 ;;
12095
12096 sh*-*-symbianelf*)
12097
12098 $as_echo "#define TARGET_SYMBIAN 1" >>confdefs.h
12099
12100 ;;
12101 esac
12102
12103 if test ${this_target} = $target ; then
12104 endian_def=
12105 if test x${endian} = xbig; then
12106 endian_def=1
12107 elif test x${endian} = xlittle; then
12108 endian_def=0
12109 fi
12110 if test x${endian_def} != x; then
12111
12112 cat >>confdefs.h <<_ACEOF
12113 #define TARGET_BYTES_BIG_ENDIAN $endian_def
12114 _ACEOF
12115
12116 fi
12117 fi
12118
12119 # Other random stuff.
12120
12121 case ${cpu_type} in
12122 mips)
12123 # Set mips_cpu to the name of the default CPU.
12124 case ${target_cpu} in
12125 mips | mipsbe | mipseb | mipsle | mipsel | mips64 | mips64el)
12126 mips_cpu=from-abi
12127 ;;
12128 mipsisa32 | mipsisa32el)
12129 mips_cpu=mips32
12130 ;;
12131 mipsisa32r2 | mipsisa32r2el)
12132 mips_cpu=mips32r2
12133 ;;
12134 mipsisa32r3 | mipsisa32r3el)
12135 mips_cpu=mips32r3
12136 ;;
12137 mipsisa32r5 | mipsisa32r5el)
12138 mips_cpu=mips32r5
12139 ;;
12140 mipsisa32r6 | mipsisa32r6el)
12141 mips_cpu=mips32r6
12142 ;;
12143 mipsisa64 | mipsisa64el)
12144 mips_cpu=mips64
12145 ;;
12146 mipsisa64r2 | mipsisa64r2el)
12147 mips_cpu=mips64r2
12148 ;;
12149 mipsisa64r3 | mipsisa64r3el)
12150 mips_cpu=mips64r3
12151 ;;
12152 mipsisa64r5 | mipsisa64r5el)
12153 mips_cpu=mips64r5
12154 ;;
12155 mipsisa64r6 | mipsisa64r6el)
12156 mips_cpu=mips64r6
12157 ;;
12158 mipstx39 | mipstx39el)
12159 mips_cpu=r3900
12160 ;;
12161 mips64vr | mips64vrel)
12162 mips_cpu=vr4100
12163 ;;
12164 mipsisa32r2* | mipsisa64r2*)
12165 mips_cpu=`echo $target_cpu | sed -e 's/[a-z]*..r2//' -e 's/el$//'`
12166 ;;
12167 mipsisa32r6* | mipsisa64r6*)
12168 mips_cpu=`echo $target_cpu | sed -e 's/[a-z]*..r6//' -e 's/el$//'`
12169 ;;
12170 mips64* | mipsisa64* | mipsisa32*)
12171 mips_cpu=`echo $target_cpu | sed -e 's/[a-z]*..//' -e 's/el$//'`
12172 ;;
12173 mips*)
12174 mips_cpu=`echo $target_cpu | sed -e 's/^mips//' -e 's/el$//'`
12175 ;;
12176 *)
12177 as_fn_error "$target_cpu isn't a supported MIPS CPU name" "$LINENO" 5
12178 ;;
12179 esac
12180 # See whether it's appropriate to set E_MIPS_ABI_O32 for o32
12181 # binaries. It's a GNU extension that some OSes don't understand.
12182 case ${target} in
12183 *-*-irix*)
12184 use_e_mips_abi_o32=0
12185 ;;
12186 *)
12187 use_e_mips_abi_o32=1
12188 ;;
12189 esac
12190 # Decide whether to generate 32-bit or 64-bit code by default.
12191 # Used to resolve -march=from-abi when an embedded ABI is selected.
12192 case ${target} in
12193 mips64*-*-* | mipsisa64*-*-*)
12194 mips_default_64bit=1
12195 ;;
12196 *)
12197 mips_default_64bit=0
12198 ;;
12199 esac
12200 # Decide which ABI to target by default.
12201 case ${target} in
12202 mips64*-linux* | mips-sgi-irix6* | mips64*-freebsd* | mips64*-kfreebsd*-gnu)
12203 mips_default_abi=N32_ABI
12204 ;;
12205 mips*-linux* | mips*-freebsd* | mips*-kfreebsd*-gnu)
12206 mips_default_abi=O32_ABI
12207 ;;
12208 mips64*-openbsd*)
12209 mips_default_abi=N64_ABI
12210 ;;
12211 *)
12212 mips_default_abi=NO_ABI
12213 ;;
12214 esac
12215
12216 cat >>confdefs.h <<_ACEOF
12217 #define MIPS_CPU_STRING_DEFAULT "$mips_cpu"
12218 _ACEOF
12219
12220
12221 cat >>confdefs.h <<_ACEOF
12222 #define USE_E_MIPS_ABI_O32 $use_e_mips_abi_o32
12223 _ACEOF
12224
12225
12226 cat >>confdefs.h <<_ACEOF
12227 #define MIPS_DEFAULT_64BIT $mips_default_64bit
12228 _ACEOF
12229
12230
12231 cat >>confdefs.h <<_ACEOF
12232 #define MIPS_DEFAULT_ABI $mips_default_abi
12233 _ACEOF
12234
12235 ;;
12236 esac
12237
12238 # Do we need the opcodes library?
12239 case ${cpu_type} in
12240 vax | tic30)
12241 ;;
12242
12243 *)
12244 need_opcodes=yes
12245
12246 case "${enable_shared}" in
12247 yes) shared_opcodes=true ;;
12248 *opcodes*) shared_opcodes=true ;;
12249 *) shared_opcodes=false ;;
12250 esac
12251 ;;
12252 esac
12253
12254 # Any other special object files needed ?
12255 case ${cpu_type} in
12256
12257 bfin)
12258 echo ${extra_objects} | grep -s "bfin-parse.o"
12259 if test $? -ne 0 ; then
12260 extra_objects="$extra_objects bfin-parse.o"
12261 fi
12262
12263 echo ${extra_objects} | grep -s "bfin-lex-wrapper.o"
12264 if test $? -ne 0 ; then
12265 extra_objects="$extra_objects bfin-lex-wrapper.o"
12266 fi
12267 ;;
12268
12269 epiphany | fr30 | ip2k | iq2000 | lm32 | m32r | or1k)
12270 using_cgen=yes
12271 ;;
12272
12273 m32c)
12274 using_cgen=yes
12275 ;;
12276 frv)
12277 using_cgen=yes
12278 ;;
12279 m68k)
12280 case ${extra_objects} in
12281 *m68k-parse.o*) ;;
12282 *) extra_objects="$extra_objects m68k-parse.o" ;;
12283 esac
12284 ;;
12285
12286 mep)
12287 using_cgen=yes
12288 ;;
12289
12290 mips)
12291 echo ${extra_objects} | grep -s "itbl-parse.o"
12292 if test $? -ne 0 ; then
12293 extra_objects="$extra_objects itbl-parse.o"
12294 fi
12295
12296 echo ${extra_objects} | grep -s "itbl-lex-wrapper.o"
12297 if test $? -ne 0 ; then
12298 extra_objects="$extra_objects itbl-lex-wrapper.o"
12299 fi
12300
12301 echo ${extra_objects} | grep -s "itbl-ops.o"
12302 if test $? -ne 0 ; then
12303 extra_objects="$extra_objects itbl-ops.o"
12304 fi
12305 ;;
12306
12307 mt)
12308 using_cgen=yes
12309 ;;
12310
12311 nds32)
12312 # Decide BASELINE, REDUCED_REGS, FPU_DP_EXT, FPU_SP_EXT features
12313 # based on arch_name.
12314 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for default configuration of --with-arch" >&5
12315 $as_echo_n "checking for default configuration of --with-arch... " >&6; }
12316 if test "x${with_arch}" != x; then
12317 case ${with_arch} in
12318 v2j | v2s | v2f | v2 | v3m | v3j | v3s | v3f | v3 )
12319
12320 cat >>confdefs.h <<_ACEOF
12321 #define NDS32_DEFAULT_ARCH_NAME "$with_arch"
12322 _ACEOF
12323
12324 ;;
12325 *)
12326 as_fn_error "This kind of arch name does *NOT* exist!" "$LINENO" 5
12327 ;;
12328 esac
12329 fi
12330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_arch" >&5
12331 $as_echo "$with_arch" >&6; }
12332
12333 # Decide features one by one.
12334 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for default configuration of --enable-dx-regs" >&5
12335 $as_echo_n "checking for default configuration of --enable-dx-regs... " >&6; }
12336 if test "x${enable_dx_regs}" = xyes; then
12337
12338 $as_echo "#define NDS32_DEFAULT_DX_REGS 1" >>confdefs.h
12339
12340 else
12341
12342 $as_echo "#define NDS32_DEFAULT_DX_REGS 0" >>confdefs.h
12343
12344 fi
12345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_dx_regs" >&5
12346 $as_echo "$enable_dx_regs" >&6; }
12347
12348 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for default configuration of --enable-perf-ext" >&5
12349 $as_echo_n "checking for default configuration of --enable-perf-ext... " >&6; }
12350 if test "x${enable_perf_ext}" = xno; then
12351
12352 $as_echo "#define NDS32_DEFAULT_PERF_EXT 0" >>confdefs.h
12353
12354 else
12355
12356 $as_echo "#define NDS32_DEFAULT_PERF_EXT 1" >>confdefs.h
12357
12358 fi
12359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_perf_ext" >&5
12360 $as_echo "$enable_perf_ext" >&6; }
12361
12362 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for default configuration of --enable-perf-ext2" >&5
12363 $as_echo_n "checking for default configuration of --enable-perf-ext2... " >&6; }
12364 if test "x${enable_perf_ext2}" = xno; then
12365
12366 $as_echo "#define NDS32_DEFAULT_PERF_EXT2 0" >>confdefs.h
12367
12368 else
12369
12370 $as_echo "#define NDS32_DEFAULT_PERF_EXT2 1" >>confdefs.h
12371
12372 fi
12373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_perf_ext2" >&5
12374 $as_echo "$enable_perf_ext2" >&6; }
12375
12376 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for default configuration of --enable-string-ext" >&5
12377 $as_echo_n "checking for default configuration of --enable-string-ext... " >&6; }
12378 if test "x${enable_string_ext}" = xno; then
12379
12380 $as_echo "#define NDS32_DEFAULT_STRING_EXT 0" >>confdefs.h
12381
12382 else
12383
12384 $as_echo "#define NDS32_DEFAULT_STRING_EXT 1" >>confdefs.h
12385
12386 fi
12387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_string_ext" >&5
12388 $as_echo "$enable_string_ext" >&6; }
12389
12390 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for default configuration of --enable-audio-ext" >&5
12391 $as_echo_n "checking for default configuration of --enable-audio-ext... " >&6; }
12392 if test "x${enable_audio_ext}" = xno; then
12393
12394 $as_echo "#define NDS32_DEFAULT_AUDIO_EXT 0" >>confdefs.h
12395
12396 else
12397
12398 $as_echo "#define NDS32_DEFAULT_AUDIO_EXT 1" >>confdefs.h
12399
12400 fi
12401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_audio_ext" >&5
12402 $as_echo "$enable_audio_ext" >&6; }
12403 ;;
12404
12405 i386 | s390 | sparc)
12406 if test $this_target = $target ; then
12407
12408 cat >>confdefs.h <<_ACEOF
12409 #define DEFAULT_ARCH "${arch}"
12410 _ACEOF
12411
12412 fi
12413 ;;
12414
12415 rl78)
12416 echo ${extra_objects} | grep -s "rl78-parse.o"
12417 if test $? -ne 0 ; then
12418 extra_objects="$extra_objects rl78-parse.o"
12419 fi
12420 ;;
12421
12422 rx)
12423 echo ${extra_objects} | grep -s "rx-parse.o"
12424 if test $? -ne 0 ; then
12425 extra_objects="$extra_objects rx-parse.o"
12426 fi
12427 ;;
12428
12429 xstormy16)
12430 using_cgen=yes
12431 ;;
12432
12433 xc16x)
12434 using_cgen=yes
12435 ;;
12436
12437 xtensa)
12438 echo ${extra_objects} | grep -s "xtensa-relax.o"
12439 if test $? -ne 0 ; then
12440 extra_objects="$extra_objects xtensa-relax.o"
12441 fi
12442 ;;
12443
12444 *)
12445 ;;
12446 esac
12447
12448 if test $using_cgen = yes ; then
12449 case "x${extra_objects}" in
12450 *cgen.o*) ;;
12451 *) extra_objects="$extra_objects cgen.o" ;;
12452 esac
12453 fi
12454
12455 # See if we really can support this configuration with the emulation code.
12456
12457 if test $this_target = $target ; then
12458 obj_format=$fmt
12459 te_file=$em
12460 fi
12461
12462 case ${te_file} in
12463 vms) extra_objects="$extra_objects te-vms.o" ;;
12464 esac
12465
12466 # From target name and format, produce a list of supported emulations.
12467
12468 case ${generic_target}-${fmt} in
12469 mips-*-*-*) case "$endian" in
12470 big) emulation="mipsbelf mipslelf mipself" ;;
12471 *) emulation="mipslelf mipsbelf mipself" ;;
12472 esac ;;
12473 # i386-pc-pe-coff != i386-pc-coff.
12474 i386-*-pe-coff) ;;
12475 # Uncommenting the next line will turn on support for i386 AOUT
12476 # for the default linux configuration
12477 # i386-*-linux*-elf) emulation="i386elf i386aout" ;;
12478 #
12479 i386-*-aout) emulation="i386aout" ;;
12480 i386-*-coff) emulation="i386coff" ;;
12481 i386-*-elf) emulation="i386elf" ;;
12482
12483 # Always all formats. The first stated emulation becomes the default.
12484 cris-*-*aout*) emulation="crisaout criself" ;;
12485 cris-*-*) emulation="criself crisaout" ;;
12486 esac
12487
12488 emulations="$emulations $emulation"
12489
12490 done
12491
12492 # For x86 Linux targets, default to compressing debug sections unless
12493 # configured otherwise.
12494 case x${enable_compressed_debug_sections}-${target_cpu_type}-${target_os} in
12495 x*gas*|xall*|x-i386-linux-gnu)
12496
12497 $as_echo "#define DEFAULT_FLAG_COMPRESS_DEBUG 1" >>confdefs.h
12498
12499 ;;
12500 esac
12501
12502 # Turn on all targets if possible
12503 if test ${all_targets} = "yes"; then
12504 case ${target_cpu_type} in
12505 i386)
12506 case ${obj_format} in
12507 aout)
12508 emulations="$emulations i386coff i386elf"
12509 ;;
12510 coff)
12511 emulations="$emulations i386aout i386elf"
12512 ;;
12513 elf)
12514 emulations="$emulations i386aout i386coff"
12515 ;;
12516 esac
12517 ;;
12518 x86_64)
12519 case ${obj_format} in
12520 aout)
12521 emulations="$emulations i386coff i386elf"
12522 ;;
12523 coff)
12524 emulations="$emulations i386aout i386elf"
12525 ;;
12526 elf)
12527 emulations="$emulations i386aout i386coff"
12528 ;;
12529 esac
12530 ;;
12531 esac
12532 fi
12533
12534 # PE code has way too many macros tweaking behaviour
12535 case ${te_file} in
12536 pe*) emulations="" ;;
12537 esac
12538
12539 # Assign floating point type. Most processors with FP support
12540 # IEEE FP. On those that don't support FP at all, usually IEEE
12541 # is emulated.
12542 case ${target_cpu} in
12543 vax | pdp11 ) atof=vax ;;
12544 *) atof=ieee ;;
12545 esac
12546
12547 case "${obj_format}" in
12548 "") as_fn_error "GAS does not know what format to use for target ${target}" "$LINENO" 5 ;;
12549 esac
12550
12551 # Unfortunately the cpu in cpu-opc.h file isn't always $(TARGET_CPU).
12552 cgen_cpu_prefix=""
12553 if test $using_cgen = yes ; then
12554 case ${target_cpu} in
12555 or1knd)
12556 cgen_cpu_prefix=or1k ;;
12557 *) cgen_cpu_prefix=${target_cpu} ;;
12558 esac
12559
12560
12561 $as_echo "#define USING_CGEN 1" >>confdefs.h
12562
12563 fi
12564
12565
12566 if test ! -r ${srcdir}/config/tc-${target_cpu_type}.c; then
12567 as_fn_error "GAS does not support target CPU ${target_cpu_type}" "$LINENO" 5
12568 fi
12569
12570 if test ! -r ${srcdir}/config/obj-${obj_format}.c; then
12571 as_fn_error "GAS does not have support for object file format ${obj_format}" "$LINENO" 5
12572 fi
12573
12574 # Some COFF configurations want these random other flags set.
12575 case ${obj_format} in
12576 coff)
12577 case ${target_cpu_type} in
12578 i386)
12579 $as_echo "#define I386COFF 1" >>confdefs.h
12580 ;;
12581 m68k)
12582 $as_echo "#define M68KCOFF 1" >>confdefs.h
12583 ;;
12584 m88k)
12585 $as_echo "#define M88KCOFF 1" >>confdefs.h
12586 ;;
12587 x86_64)
12588 $as_echo "#define I386COFF 1" >>confdefs.h
12589 ;;
12590 esac
12591 ;;
12592 esac
12593
12594 # Getting this done right is going to be a bitch. Each configuration specified
12595 # with --enable-targets=... should be checked for environment, format, cpu
12596 # setting.
12597 #
12598 # For each configuration, the necessary object file support code must be linked
12599 # in. This might be only one, it might be up to four. The necessary emulation
12600 # code needs to be provided, too.
12601 #
12602 # And then there's "--enable-targets=all"....
12603 #
12604 # For now, just always do it for MIPS ELF configurations. Sigh.
12605
12606 formats="${obj_format}"
12607 emfiles=""
12608 EMULATIONS=""
12609 _gas_uniq_list="$emulations"
12610 _gas_uniq_newlist=""
12611 for _gas_uniq_i in _gas_uniq_dummy $_gas_uniq_list ; do
12612 case $_gas_uniq_i in
12613 _gas_uniq_dummy) ;;
12614 *) case " $_gas_uniq_newlist " in
12615 *" $_gas_uniq_i "*) ;;
12616 *) _gas_uniq_newlist="$_gas_uniq_newlist $_gas_uniq_i" ;;
12617 esac ;;
12618 esac
12619 done
12620 emulations=$_gas_uniq_newlist
12621
12622 for em in . $emulations ; do
12623 case $em in
12624 .) continue ;;
12625 mipsbelf | mipslelf | mipself)
12626 fmt=elf file=mipself ;;
12627 *coff)
12628 fmt=coff file=$em ;;
12629 *aout)
12630 fmt=aout file=$em ;;
12631 *elf)
12632 fmt=elf file=$em ;;
12633 esac
12634 formats="$formats $fmt"
12635 emfiles="$emfiles e-$file.o"
12636 EMULATIONS="$EMULATIONS &$em,"
12637 done
12638 _gas_uniq_list="$formats"
12639 _gas_uniq_newlist=""
12640 for _gas_uniq_i in _gas_uniq_dummy $_gas_uniq_list ; do
12641 case $_gas_uniq_i in
12642 _gas_uniq_dummy) ;;
12643 *) case " $_gas_uniq_newlist " in
12644 *" $_gas_uniq_i "*) ;;
12645 *) _gas_uniq_newlist="$_gas_uniq_newlist $_gas_uniq_i" ;;
12646 esac ;;
12647 esac
12648 done
12649 formats=$_gas_uniq_newlist
12650
12651 _gas_uniq_list="$emfiles"
12652 _gas_uniq_newlist=""
12653 for _gas_uniq_i in _gas_uniq_dummy $_gas_uniq_list ; do
12654 case $_gas_uniq_i in
12655 _gas_uniq_dummy) ;;
12656 *) case " $_gas_uniq_newlist " in
12657 *" $_gas_uniq_i "*) ;;
12658 *) _gas_uniq_newlist="$_gas_uniq_newlist $_gas_uniq_i" ;;
12659 esac ;;
12660 esac
12661 done
12662 emfiles=$_gas_uniq_newlist
12663
12664 if test `set . $formats ; shift ; echo $#` -gt 1 ; then
12665 for fmt in $formats ; do
12666 case $fmt in
12667 aout)
12668 $as_echo "#define OBJ_MAYBE_AOUT 1" >>confdefs.h
12669 ;;
12670 bout)
12671 $as_echo "#define OBJ_MAYBE_BOUT 1" >>confdefs.h
12672 ;;
12673 coff)
12674 $as_echo "#define OBJ_MAYBE_COFF 1" >>confdefs.h
12675 ;;
12676 ecoff)
12677 $as_echo "#define OBJ_MAYBE_ECOFF 1" >>confdefs.h
12678 ;;
12679 elf)
12680 $as_echo "#define OBJ_MAYBE_ELF 1" >>confdefs.h
12681 ;;
12682 generic)
12683 $as_echo "#define OBJ_MAYBE_GENERIC 1" >>confdefs.h
12684 ;;
12685 som)
12686 $as_echo "#define OBJ_MAYBE_SOM 1" >>confdefs.h
12687 ;;
12688 esac
12689 extra_objects="$extra_objects obj-$fmt.o"
12690 done
12691 obj_format=multi
12692 fi
12693 if test `set . $emfiles ; shift ; echo $#` -gt 0 ; then
12694 DEFAULT_EMULATION=`set . $emulations ; echo $2`
12695 # e-mipself has more than one emulation per file, e-i386* has just one at the
12696 # moment. If only one emulation is specified, then don't define
12697 # USE_EMULATIONS or include any of the e-files as they will only be bloat.
12698 case "${obj_format}${emfiles}" in
12699 multi* | *mipself*)
12700 extra_objects="$extra_objects $emfiles"
12701
12702 $as_echo "#define USE_EMULATIONS 1" >>confdefs.h
12703 ;;
12704 esac
12705 fi
12706
12707
12708 cat >>confdefs.h <<_ACEOF
12709 #define EMULATIONS $EMULATIONS
12710 _ACEOF
12711
12712
12713 cat >>confdefs.h <<_ACEOF
12714 #define DEFAULT_EMULATION "$DEFAULT_EMULATION"
12715 _ACEOF
12716
12717
12718 reject_dev_configs=yes
12719
12720 case ${reject_dev_configs}-${dev} in
12721 yes-yes) # Oops.
12722 as_fn_error "GAS does not support the ${generic_target} configuration." "$LINENO" 5
12723 ;;
12724 esac
12725
12726
12727
12728
12729
12730
12731
12732 # do we need the opcodes library?
12733 case "${need_opcodes}" in
12734 yes)
12735 OPCODES_LIB=../opcodes/libopcodes.la
12736 ;;
12737 esac
12738
12739
12740
12741
12742 cat >>confdefs.h <<_ACEOF
12743 #define TARGET_ALIAS "${target_alias}"
12744 _ACEOF
12745
12746
12747 cat >>confdefs.h <<_ACEOF
12748 #define TARGET_CANONICAL "${target}"
12749 _ACEOF
12750
12751
12752 cat >>confdefs.h <<_ACEOF
12753 #define TARGET_CPU "${target_cpu}"
12754 _ACEOF
12755
12756
12757 cat >>confdefs.h <<_ACEOF
12758 #define TARGET_VENDOR "${target_vendor}"
12759 _ACEOF
12760
12761
12762 cat >>confdefs.h <<_ACEOF
12763 #define TARGET_OS "${target_os}"
12764 _ACEOF
12765
12766
12767 for ac_prog in 'bison -y' byacc
12768 do
12769 # Extract the first word of "$ac_prog", so it can be a program name with args.
12770 set dummy $ac_prog; ac_word=$2
12771 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12772 $as_echo_n "checking for $ac_word... " >&6; }
12773 if test "${ac_cv_prog_YACC+set}" = set; then :
12774 $as_echo_n "(cached) " >&6
12775 else
12776 if test -n "$YACC"; then
12777 ac_cv_prog_YACC="$YACC" # Let the user override the test.
12778 else
12779 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12780 for as_dir in $PATH
12781 do
12782 IFS=$as_save_IFS
12783 test -z "$as_dir" && as_dir=.
12784 for ac_exec_ext in '' $ac_executable_extensions; do
12785 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12786 ac_cv_prog_YACC="$ac_prog"
12787 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12788 break 2
12789 fi
12790 done
12791 done
12792 IFS=$as_save_IFS
12793
12794 fi
12795 fi
12796 YACC=$ac_cv_prog_YACC
12797 if test -n "$YACC"; then
12798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5
12799 $as_echo "$YACC" >&6; }
12800 else
12801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12802 $as_echo "no" >&6; }
12803 fi
12804
12805
12806 test -n "$YACC" && break
12807 done
12808 test -n "$YACC" || YACC="yacc"
12809
12810 for ac_prog in flex lex
12811 do
12812 # Extract the first word of "$ac_prog", so it can be a program name with args.
12813 set dummy $ac_prog; ac_word=$2
12814 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12815 $as_echo_n "checking for $ac_word... " >&6; }
12816 if test "${ac_cv_prog_LEX+set}" = set; then :
12817 $as_echo_n "(cached) " >&6
12818 else
12819 if test -n "$LEX"; then
12820 ac_cv_prog_LEX="$LEX" # Let the user override the test.
12821 else
12822 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12823 for as_dir in $PATH
12824 do
12825 IFS=$as_save_IFS
12826 test -z "$as_dir" && as_dir=.
12827 for ac_exec_ext in '' $ac_executable_extensions; do
12828 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12829 ac_cv_prog_LEX="$ac_prog"
12830 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12831 break 2
12832 fi
12833 done
12834 done
12835 IFS=$as_save_IFS
12836
12837 fi
12838 fi
12839 LEX=$ac_cv_prog_LEX
12840 if test -n "$LEX"; then
12841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LEX" >&5
12842 $as_echo "$LEX" >&6; }
12843 else
12844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12845 $as_echo "no" >&6; }
12846 fi
12847
12848
12849 test -n "$LEX" && break
12850 done
12851 test -n "$LEX" || LEX=":"
12852
12853 if test "x$LEX" != "x:"; then
12854 cat >conftest.l <<_ACEOF
12855 %%
12856 a { ECHO; }
12857 b { REJECT; }
12858 c { yymore (); }
12859 d { yyless (1); }
12860 e { yyless (input () != 0); }
12861 f { unput (yytext[0]); }
12862 . { BEGIN INITIAL; }
12863 %%
12864 #ifdef YYTEXT_POINTER
12865 extern char *yytext;
12866 #endif
12867 int
12868 main (void)
12869 {
12870 return ! yylex () + ! yywrap ();
12871 }
12872 _ACEOF
12873 { { ac_try="$LEX conftest.l"
12874 case "(($ac_try" in
12875 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12876 *) ac_try_echo=$ac_try;;
12877 esac
12878 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
12879 $as_echo "$ac_try_echo"; } >&5
12880 (eval "$LEX conftest.l") 2>&5
12881 ac_status=$?
12882 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12883 test $ac_status = 0; }
12884 { $as_echo "$as_me:${as_lineno-$LINENO}: checking lex output file root" >&5
12885 $as_echo_n "checking lex output file root... " >&6; }
12886 if test "${ac_cv_prog_lex_root+set}" = set; then :
12887 $as_echo_n "(cached) " >&6
12888 else
12889
12890 if test -f lex.yy.c; then
12891 ac_cv_prog_lex_root=lex.yy
12892 elif test -f lexyy.c; then
12893 ac_cv_prog_lex_root=lexyy
12894 else
12895 as_fn_error "cannot find output from $LEX; giving up" "$LINENO" 5
12896 fi
12897 fi
12898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_root" >&5
12899 $as_echo "$ac_cv_prog_lex_root" >&6; }
12900 LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
12901
12902 if test -z "${LEXLIB+set}"; then
12903 { $as_echo "$as_me:${as_lineno-$LINENO}: checking lex library" >&5
12904 $as_echo_n "checking lex library... " >&6; }
12905 if test "${ac_cv_lib_lex+set}" = set; then :
12906 $as_echo_n "(cached) " >&6
12907 else
12908
12909 ac_save_LIBS=$LIBS
12910 ac_cv_lib_lex='none needed'
12911 for ac_lib in '' -lfl -ll; do
12912 LIBS="$ac_lib $ac_save_LIBS"
12913 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12914 /* end confdefs.h. */
12915 `cat $LEX_OUTPUT_ROOT.c`
12916 _ACEOF
12917 if ac_fn_c_try_link "$LINENO"; then :
12918 ac_cv_lib_lex=$ac_lib
12919 fi
12920 rm -f core conftest.err conftest.$ac_objext \
12921 conftest$ac_exeext conftest.$ac_ext
12922 test "$ac_cv_lib_lex" != 'none needed' && break
12923 done
12924 LIBS=$ac_save_LIBS
12925
12926 fi
12927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lex" >&5
12928 $as_echo "$ac_cv_lib_lex" >&6; }
12929 test "$ac_cv_lib_lex" != 'none needed' && LEXLIB=$ac_cv_lib_lex
12930 fi
12931
12932
12933 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether yytext is a pointer" >&5
12934 $as_echo_n "checking whether yytext is a pointer... " >&6; }
12935 if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then :
12936 $as_echo_n "(cached) " >&6
12937 else
12938 # POSIX says lex can declare yytext either as a pointer or an array; the
12939 # default is implementation-dependent. Figure out which it is, since
12940 # not all implementations provide the %pointer and %array declarations.
12941 ac_cv_prog_lex_yytext_pointer=no
12942 ac_save_LIBS=$LIBS
12943 LIBS="$LEXLIB $ac_save_LIBS"
12944 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12945 /* end confdefs.h. */
12946 #define YYTEXT_POINTER 1
12947 `cat $LEX_OUTPUT_ROOT.c`
12948 _ACEOF
12949 if ac_fn_c_try_link "$LINENO"; then :
12950 ac_cv_prog_lex_yytext_pointer=yes
12951 fi
12952 rm -f core conftest.err conftest.$ac_objext \
12953 conftest$ac_exeext conftest.$ac_ext
12954 LIBS=$ac_save_LIBS
12955
12956 fi
12957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_yytext_pointer" >&5
12958 $as_echo "$ac_cv_prog_lex_yytext_pointer" >&6; }
12959 if test $ac_cv_prog_lex_yytext_pointer = yes; then
12960
12961 $as_echo "#define YYTEXT_POINTER 1" >>confdefs.h
12962
12963 fi
12964 rm -f conftest.l $LEX_OUTPUT_ROOT.c
12965
12966 fi
12967 if test "$LEX" = :; then
12968 LEX=${am_missing_run}flex
12969 fi
12970
12971 ALL_LINGUAS="fr tr es rw id ru fi ja"
12972 # If we haven't got the data from the intl directory,
12973 # assume NLS is disabled.
12974 USE_NLS=no
12975 LIBINTL=
12976 LIBINTL_DEP=
12977 INCINTL=
12978 XGETTEXT=
12979 GMSGFMT=
12980 POSUB=
12981
12982 if test -f ../intl/config.intl; then
12983 . ../intl/config.intl
12984 fi
12985 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
12986 $as_echo_n "checking whether NLS is requested... " >&6; }
12987 if test x"$USE_NLS" != xyes; then
12988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12989 $as_echo "no" >&6; }
12990 else
12991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12992 $as_echo "yes" >&6; }
12993
12994 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
12995
12996
12997 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catalogs to be installed" >&5
12998 $as_echo_n "checking for catalogs to be installed... " >&6; }
12999 # Look for .po and .gmo files in the source directory.
13000 CATALOGS=
13001 XLINGUAS=
13002 for cat in $srcdir/po/*.gmo $srcdir/po/*.po; do
13003 # If there aren't any .gmo files the shell will give us the
13004 # literal string "../path/to/srcdir/po/*.gmo" which has to be
13005 # weeded out.
13006 case "$cat" in *\**)
13007 continue;;
13008 esac
13009 # The quadruple backslash is collapsed to a double backslash
13010 # by the backticks, then collapsed again by the double quotes,
13011 # leaving us with one backslash in the sed expression (right
13012 # before the dot that mustn't act as a wildcard).
13013 cat=`echo $cat | sed -e "s!$srcdir/po/!!" -e "s!\\\\.po!.gmo!"`
13014 lang=`echo $cat | sed -e "s!\\\\.gmo!!"`
13015 # The user is allowed to set LINGUAS to a list of languages to
13016 # install catalogs for. If it's empty that means "all of them."
13017 if test "x$LINGUAS" = x; then
13018 CATALOGS="$CATALOGS $cat"
13019 XLINGUAS="$XLINGUAS $lang"
13020 else
13021 case "$LINGUAS" in *$lang*)
13022 CATALOGS="$CATALOGS $cat"
13023 XLINGUAS="$XLINGUAS $lang"
13024 ;;
13025 esac
13026 fi
13027 done
13028 LINGUAS="$XLINGUAS"
13029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINGUAS" >&5
13030 $as_echo "$LINGUAS" >&6; }
13031
13032
13033 DATADIRNAME=share
13034
13035 INSTOBJEXT=.mo
13036
13037 GENCAT=gencat
13038
13039 CATOBJEXT=.gmo
13040
13041 fi
13042
13043 MKINSTALLDIRS=
13044 if test -n "$ac_aux_dir"; then
13045 case "$ac_aux_dir" in
13046 /*) MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" ;;
13047 *) MKINSTALLDIRS="\$(top_builddir)/$ac_aux_dir/mkinstalldirs" ;;
13048 esac
13049 fi
13050 if test -z "$MKINSTALLDIRS"; then
13051 MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
13052 fi
13053
13054
13055
13056 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
13057 $as_echo_n "checking whether NLS is requested... " >&6; }
13058 # Check whether --enable-nls was given.
13059 if test "${enable_nls+set}" = set; then :
13060 enableval=$enable_nls; USE_NLS=$enableval
13061 else
13062 USE_NLS=yes
13063 fi
13064
13065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
13066 $as_echo "$USE_NLS" >&6; }
13067
13068
13069
13070
13071
13072
13073 # Prepare PATH_SEPARATOR.
13074 # The user is always right.
13075 if test "${PATH_SEPARATOR+set}" != set; then
13076 echo "#! /bin/sh" >conf$$.sh
13077 echo "exit 0" >>conf$$.sh
13078 chmod +x conf$$.sh
13079 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
13080 PATH_SEPARATOR=';'
13081 else
13082 PATH_SEPARATOR=:
13083 fi
13084 rm -f conf$$.sh
13085 fi
13086
13087 # Find out how to test for executable files. Don't use a zero-byte file,
13088 # as systems may use methods other than mode bits to determine executability.
13089 cat >conf$$.file <<_ASEOF
13090 #! /bin/sh
13091 exit 0
13092 _ASEOF
13093 chmod +x conf$$.file
13094 if test -x conf$$.file >/dev/null 2>&1; then
13095 ac_executable_p="test -x"
13096 else
13097 ac_executable_p="test -f"
13098 fi
13099 rm -f conf$$.file
13100
13101 # Extract the first word of "msgfmt", so it can be a program name with args.
13102 set dummy msgfmt; ac_word=$2
13103 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13104 $as_echo_n "checking for $ac_word... " >&6; }
13105 if test "${ac_cv_path_MSGFMT+set}" = set; then :
13106 $as_echo_n "(cached) " >&6
13107 else
13108 case "$MSGFMT" in
13109 [\\/]* | ?:[\\/]*)
13110 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
13111 ;;
13112 *)
13113 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
13114 for ac_dir in $PATH; do
13115 IFS="$ac_save_IFS"
13116 test -z "$ac_dir" && ac_dir=.
13117 for ac_exec_ext in '' $ac_executable_extensions; do
13118 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
13119 if $ac_dir/$ac_word --statistics /dev/null >/dev/null 2>&1 &&
13120 (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
13121 ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
13122 break 2
13123 fi
13124 fi
13125 done
13126 done
13127 IFS="$ac_save_IFS"
13128 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
13129 ;;
13130 esac
13131 fi
13132 MSGFMT="$ac_cv_path_MSGFMT"
13133 if test "$MSGFMT" != ":"; then
13134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
13135 $as_echo "$MSGFMT" >&6; }
13136 else
13137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13138 $as_echo "no" >&6; }
13139 fi
13140
13141 # Extract the first word of "gmsgfmt", so it can be a program name with args.
13142 set dummy gmsgfmt; ac_word=$2
13143 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13144 $as_echo_n "checking for $ac_word... " >&6; }
13145 if test "${ac_cv_path_GMSGFMT+set}" = set; then :
13146 $as_echo_n "(cached) " >&6
13147 else
13148 case $GMSGFMT in
13149 [\\/]* | ?:[\\/]*)
13150 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
13151 ;;
13152 *)
13153 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13154 for as_dir in $PATH
13155 do
13156 IFS=$as_save_IFS
13157 test -z "$as_dir" && as_dir=.
13158 for ac_exec_ext in '' $ac_executable_extensions; do
13159 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13160 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
13161 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13162 break 2
13163 fi
13164 done
13165 done
13166 IFS=$as_save_IFS
13167
13168 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
13169 ;;
13170 esac
13171 fi
13172 GMSGFMT=$ac_cv_path_GMSGFMT
13173 if test -n "$GMSGFMT"; then
13174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMSGFMT" >&5
13175 $as_echo "$GMSGFMT" >&6; }
13176 else
13177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13178 $as_echo "no" >&6; }
13179 fi
13180
13181
13182
13183
13184 # Prepare PATH_SEPARATOR.
13185 # The user is always right.
13186 if test "${PATH_SEPARATOR+set}" != set; then
13187 echo "#! /bin/sh" >conf$$.sh
13188 echo "exit 0" >>conf$$.sh
13189 chmod +x conf$$.sh
13190 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
13191 PATH_SEPARATOR=';'
13192 else
13193 PATH_SEPARATOR=:
13194 fi
13195 rm -f conf$$.sh
13196 fi
13197
13198 # Find out how to test for executable files. Don't use a zero-byte file,
13199 # as systems may use methods other than mode bits to determine executability.
13200 cat >conf$$.file <<_ASEOF
13201 #! /bin/sh
13202 exit 0
13203 _ASEOF
13204 chmod +x conf$$.file
13205 if test -x conf$$.file >/dev/null 2>&1; then
13206 ac_executable_p="test -x"
13207 else
13208 ac_executable_p="test -f"
13209 fi
13210 rm -f conf$$.file
13211
13212 # Extract the first word of "xgettext", so it can be a program name with args.
13213 set dummy xgettext; ac_word=$2
13214 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13215 $as_echo_n "checking for $ac_word... " >&6; }
13216 if test "${ac_cv_path_XGETTEXT+set}" = set; then :
13217 $as_echo_n "(cached) " >&6
13218 else
13219 case "$XGETTEXT" in
13220 [\\/]* | ?:[\\/]*)
13221 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
13222 ;;
13223 *)
13224 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
13225 for ac_dir in $PATH; do
13226 IFS="$ac_save_IFS"
13227 test -z "$ac_dir" && ac_dir=.
13228 for ac_exec_ext in '' $ac_executable_extensions; do
13229 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
13230 if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
13231 (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
13232 ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
13233 break 2
13234 fi
13235 fi
13236 done
13237 done
13238 IFS="$ac_save_IFS"
13239 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
13240 ;;
13241 esac
13242 fi
13243 XGETTEXT="$ac_cv_path_XGETTEXT"
13244 if test "$XGETTEXT" != ":"; then
13245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5
13246 $as_echo "$XGETTEXT" >&6; }
13247 else
13248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13249 $as_echo "no" >&6; }
13250 fi
13251
13252 rm -f messages.po
13253
13254
13255 # Prepare PATH_SEPARATOR.
13256 # The user is always right.
13257 if test "${PATH_SEPARATOR+set}" != set; then
13258 echo "#! /bin/sh" >conf$$.sh
13259 echo "exit 0" >>conf$$.sh
13260 chmod +x conf$$.sh
13261 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
13262 PATH_SEPARATOR=';'
13263 else
13264 PATH_SEPARATOR=:
13265 fi
13266 rm -f conf$$.sh
13267 fi
13268
13269 # Find out how to test for executable files. Don't use a zero-byte file,
13270 # as systems may use methods other than mode bits to determine executability.
13271 cat >conf$$.file <<_ASEOF
13272 #! /bin/sh
13273 exit 0
13274 _ASEOF
13275 chmod +x conf$$.file
13276 if test -x conf$$.file >/dev/null 2>&1; then
13277 ac_executable_p="test -x"
13278 else
13279 ac_executable_p="test -f"
13280 fi
13281 rm -f conf$$.file
13282
13283 # Extract the first word of "msgmerge", so it can be a program name with args.
13284 set dummy msgmerge; ac_word=$2
13285 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13286 $as_echo_n "checking for $ac_word... " >&6; }
13287 if test "${ac_cv_path_MSGMERGE+set}" = set; then :
13288 $as_echo_n "(cached) " >&6
13289 else
13290 case "$MSGMERGE" in
13291 [\\/]* | ?:[\\/]*)
13292 ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
13293 ;;
13294 *)
13295 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
13296 for ac_dir in $PATH; do
13297 IFS="$ac_save_IFS"
13298 test -z "$ac_dir" && ac_dir=.
13299 for ac_exec_ext in '' $ac_executable_extensions; do
13300 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
13301 if $ac_dir/$ac_word --update -q /dev/null /dev/null >/dev/null 2>&1; then
13302 ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
13303 break 2
13304 fi
13305 fi
13306 done
13307 done
13308 IFS="$ac_save_IFS"
13309 test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
13310 ;;
13311 esac
13312 fi
13313 MSGMERGE="$ac_cv_path_MSGMERGE"
13314 if test "$MSGMERGE" != ":"; then
13315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGMERGE" >&5
13316 $as_echo "$MSGMERGE" >&6; }
13317 else
13318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13319 $as_echo "no" >&6; }
13320 fi
13321
13322
13323 if test "$GMSGFMT" != ":"; then
13324 if $GMSGFMT --statistics /dev/null >/dev/null 2>&1 &&
13325 (if $GMSGFMT --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
13326 : ;
13327 else
13328 GMSGFMT=`echo "$GMSGFMT" | sed -e 's,^.*/,,'`
13329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found $GMSGFMT program is not GNU msgfmt; ignore it" >&5
13330 $as_echo "found $GMSGFMT program is not GNU msgfmt; ignore it" >&6; }
13331 GMSGFMT=":"
13332 fi
13333 fi
13334
13335 if test "$XGETTEXT" != ":"; then
13336 if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
13337 (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
13338 : ;
13339 else
13340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found xgettext program is not GNU xgettext; ignore it" >&5
13341 $as_echo "found xgettext program is not GNU xgettext; ignore it" >&6; }
13342 XGETTEXT=":"
13343 fi
13344 rm -f messages.po
13345 fi
13346
13347 ac_config_commands="$ac_config_commands default-1"
13348
13349
13350
13351
13352 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
13353 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
13354 # Check whether --enable-maintainer-mode was given.
13355 if test "${enable_maintainer_mode+set}" = set; then :
13356 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
13357 else
13358 USE_MAINTAINER_MODE=no
13359 fi
13360
13361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
13362 $as_echo "$USE_MAINTAINER_MODE" >&6; }
13363 if test $USE_MAINTAINER_MODE = yes; then
13364 MAINTAINER_MODE_TRUE=
13365 MAINTAINER_MODE_FALSE='#'
13366 else
13367 MAINTAINER_MODE_TRUE='#'
13368 MAINTAINER_MODE_FALSE=
13369 fi
13370
13371 MAINT=$MAINTAINER_MODE_TRUE
13372
13373
13374 if false; then
13375 GENINSRC_NEVER_TRUE=
13376 GENINSRC_NEVER_FALSE='#'
13377 else
13378 GENINSRC_NEVER_TRUE='#'
13379 GENINSRC_NEVER_FALSE=
13380 fi
13381
13382
13383
13384 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
13385 do :
13386 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
13387 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
13388 eval as_val=\$$as_ac_Header
13389 if test "x$as_val" = x""yes; then :
13390 cat >>confdefs.h <<_ACEOF
13391 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
13392 _ACEOF
13393
13394 fi
13395
13396 done
13397
13398 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether string.h and strings.h may both be included" >&5
13399 $as_echo_n "checking whether string.h and strings.h may both be included... " >&6; }
13400 if test "${gcc_cv_header_string+set}" = set; then :
13401 $as_echo_n "(cached) " >&6
13402 else
13403 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13404 /* end confdefs.h. */
13405 #include <string.h>
13406 #include <strings.h>
13407 int
13408 main ()
13409 {
13410
13411 ;
13412 return 0;
13413 }
13414 _ACEOF
13415 if ac_fn_c_try_compile "$LINENO"; then :
13416 gcc_cv_header_string=yes
13417 else
13418 gcc_cv_header_string=no
13419 fi
13420 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13421 fi
13422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_string" >&5
13423 $as_echo "$gcc_cv_header_string" >&6; }
13424 if test $gcc_cv_header_string = yes; then
13425
13426 $as_echo "#define STRING_WITH_STRINGS 1" >>confdefs.h
13427
13428 fi
13429
13430
13431 # Put this here so that autoconf's "cross-compiling" message doesn't confuse
13432 # people who are not cross-compiling but are compiling cross-assemblers.
13433 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiling a cross-assembler" >&5
13434 $as_echo_n "checking whether compiling a cross-assembler... " >&6; }
13435 if test "${host}" = "${target}"; then
13436 cross_gas=no
13437 else
13438 cross_gas=yes
13439
13440 $as_echo "#define CROSS_COMPILE 1" >>confdefs.h
13441
13442 fi
13443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_gas" >&5
13444 $as_echo "$cross_gas" >&6; }
13445
13446 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
13447 # for constant arguments. Useless!
13448 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
13449 $as_echo_n "checking for working alloca.h... " >&6; }
13450 if test "${ac_cv_working_alloca_h+set}" = set; then :
13451 $as_echo_n "(cached) " >&6
13452 else
13453 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13454 /* end confdefs.h. */
13455 #include <alloca.h>
13456 int
13457 main ()
13458 {
13459 char *p = (char *) alloca (2 * sizeof (int));
13460 if (p) return 0;
13461 ;
13462 return 0;
13463 }
13464 _ACEOF
13465 if ac_fn_c_try_link "$LINENO"; then :
13466 ac_cv_working_alloca_h=yes
13467 else
13468 ac_cv_working_alloca_h=no
13469 fi
13470 rm -f core conftest.err conftest.$ac_objext \
13471 conftest$ac_exeext conftest.$ac_ext
13472 fi
13473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
13474 $as_echo "$ac_cv_working_alloca_h" >&6; }
13475 if test $ac_cv_working_alloca_h = yes; then
13476
13477 $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
13478
13479 fi
13480
13481 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
13482 $as_echo_n "checking for alloca... " >&6; }
13483 if test "${ac_cv_func_alloca_works+set}" = set; then :
13484 $as_echo_n "(cached) " >&6
13485 else
13486 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13487 /* end confdefs.h. */
13488 #ifdef __GNUC__
13489 # define alloca __builtin_alloca
13490 #else
13491 # ifdef _MSC_VER
13492 # include <malloc.h>
13493 # define alloca _alloca
13494 # else
13495 # ifdef HAVE_ALLOCA_H
13496 # include <alloca.h>
13497 # else
13498 # ifdef _AIX
13499 #pragma alloca
13500 # else
13501 # ifndef alloca /* predefined by HP cc +Olibcalls */
13502 char *alloca ();
13503 # endif
13504 # endif
13505 # endif
13506 # endif
13507 #endif
13508
13509 int
13510 main ()
13511 {
13512 char *p = (char *) alloca (1);
13513 if (p) return 0;
13514 ;
13515 return 0;
13516 }
13517 _ACEOF
13518 if ac_fn_c_try_link "$LINENO"; then :
13519 ac_cv_func_alloca_works=yes
13520 else
13521 ac_cv_func_alloca_works=no
13522 fi
13523 rm -f core conftest.err conftest.$ac_objext \
13524 conftest$ac_exeext conftest.$ac_ext
13525 fi
13526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
13527 $as_echo "$ac_cv_func_alloca_works" >&6; }
13528
13529 if test $ac_cv_func_alloca_works = yes; then
13530
13531 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
13532
13533 else
13534 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
13535 # that cause trouble. Some versions do not even contain alloca or
13536 # contain a buggy version. If you still want to use their alloca,
13537 # use ar to extract alloca.o from them instead of compiling alloca.c.
13538
13539 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
13540
13541 $as_echo "#define C_ALLOCA 1" >>confdefs.h
13542
13543
13544 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
13545 $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
13546 if test "${ac_cv_os_cray+set}" = set; then :
13547 $as_echo_n "(cached) " >&6
13548 else
13549 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13550 /* end confdefs.h. */
13551 #if defined CRAY && ! defined CRAY2
13552 webecray
13553 #else
13554 wenotbecray
13555 #endif
13556
13557 _ACEOF
13558 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13559 $EGREP "webecray" >/dev/null 2>&1; then :
13560 ac_cv_os_cray=yes
13561 else
13562 ac_cv_os_cray=no
13563 fi
13564 rm -f conftest*
13565
13566 fi
13567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
13568 $as_echo "$ac_cv_os_cray" >&6; }
13569 if test $ac_cv_os_cray = yes; then
13570 for ac_func in _getb67 GETB67 getb67; do
13571 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13572 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
13573 eval as_val=\$$as_ac_var
13574 if test "x$as_val" = x""yes; then :
13575
13576 cat >>confdefs.h <<_ACEOF
13577 #define CRAY_STACKSEG_END $ac_func
13578 _ACEOF
13579
13580 break
13581 fi
13582
13583 done
13584 fi
13585
13586 { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
13587 $as_echo_n "checking stack direction for C alloca... " >&6; }
13588 if test "${ac_cv_c_stack_direction+set}" = set; then :
13589 $as_echo_n "(cached) " >&6
13590 else
13591 if test "$cross_compiling" = yes; then :
13592 ac_cv_c_stack_direction=0
13593 else
13594 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13595 /* end confdefs.h. */
13596 $ac_includes_default
13597 int
13598 find_stack_direction ()
13599 {
13600 static char *addr = 0;
13601 auto char dummy;
13602 if (addr == 0)
13603 {
13604 addr = &dummy;
13605 return find_stack_direction ();
13606 }
13607 else
13608 return (&dummy > addr) ? 1 : -1;
13609 }
13610
13611 int
13612 main ()
13613 {
13614 return find_stack_direction () < 0;
13615 }
13616 _ACEOF
13617 if ac_fn_c_try_run "$LINENO"; then :
13618 ac_cv_c_stack_direction=1
13619 else
13620 ac_cv_c_stack_direction=-1
13621 fi
13622 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13623 conftest.$ac_objext conftest.beam conftest.$ac_ext
13624 fi
13625
13626 fi
13627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
13628 $as_echo "$ac_cv_c_stack_direction" >&6; }
13629 cat >>confdefs.h <<_ACEOF
13630 #define STACK_DIRECTION $ac_cv_c_stack_direction
13631 _ACEOF
13632
13633
13634 fi
13635
13636 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
13637 $as_echo_n "checking for inline... " >&6; }
13638 if test "${ac_cv_c_inline+set}" = set; then :
13639 $as_echo_n "(cached) " >&6
13640 else
13641 ac_cv_c_inline=no
13642 for ac_kw in inline __inline__ __inline; do
13643 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13644 /* end confdefs.h. */
13645 #ifndef __cplusplus
13646 typedef int foo_t;
13647 static $ac_kw foo_t static_foo () {return 0; }
13648 $ac_kw foo_t foo () {return 0; }
13649 #endif
13650
13651 _ACEOF
13652 if ac_fn_c_try_compile "$LINENO"; then :
13653 ac_cv_c_inline=$ac_kw
13654 fi
13655 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13656 test "$ac_cv_c_inline" != no && break
13657 done
13658
13659 fi
13660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
13661 $as_echo "$ac_cv_c_inline" >&6; }
13662
13663 case $ac_cv_c_inline in
13664 inline | yes) ;;
13665 *)
13666 case $ac_cv_c_inline in
13667 no) ac_val=;;
13668 *) ac_val=$ac_cv_c_inline;;
13669 esac
13670 cat >>confdefs.h <<_ACEOF
13671 #ifndef __cplusplus
13672 #define inline $ac_val
13673 #endif
13674 _ACEOF
13675 ;;
13676 esac
13677
13678
13679 # VMS doesn't have unlink.
13680 for ac_func in unlink remove
13681 do :
13682 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13683 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
13684 eval as_val=\$$as_ac_var
13685 if test "x$as_val" = x""yes; then :
13686 cat >>confdefs.h <<_ACEOF
13687 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
13688 _ACEOF
13689 break
13690 fi
13691 done
13692
13693 for ac_func in sbrk setlocale
13694 do :
13695 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13696 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
13697 eval as_val=\$$as_ac_var
13698 if test "x$as_val" = x""yes; then :
13699 cat >>confdefs.h <<_ACEOF
13700 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
13701 _ACEOF
13702
13703 fi
13704 done
13705
13706
13707
13708 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LC_MESSAGES" >&5
13709 $as_echo_n "checking for LC_MESSAGES... " >&6; }
13710 if test "${am_cv_val_LC_MESSAGES+set}" = set; then :
13711 $as_echo_n "(cached) " >&6
13712 else
13713 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13714 /* end confdefs.h. */
13715 #include <locale.h>
13716 int
13717 main ()
13718 {
13719 return LC_MESSAGES
13720 ;
13721 return 0;
13722 }
13723 _ACEOF
13724 if ac_fn_c_try_link "$LINENO"; then :
13725 am_cv_val_LC_MESSAGES=yes
13726 else
13727 am_cv_val_LC_MESSAGES=no
13728 fi
13729 rm -f core conftest.err conftest.$ac_objext \
13730 conftest$ac_exeext conftest.$ac_ext
13731 fi
13732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_val_LC_MESSAGES" >&5
13733 $as_echo "$am_cv_val_LC_MESSAGES" >&6; }
13734 if test $am_cv_val_LC_MESSAGES = yes; then
13735
13736 $as_echo "#define HAVE_LC_MESSAGES 1" >>confdefs.h
13737
13738 fi
13739
13740
13741 # do we need the math library?
13742 case "${need_libm}" in
13743 yes)
13744 LIBM=
13745 case $host in
13746 *-*-beos* | *-*-cegcc* | *-*-cygwin* | *-*-haiku* | *-*-pw32* | *-*-darwin*)
13747 # These system don't have libm, or don't need it
13748 ;;
13749 *-ncr-sysv4.3*)
13750 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _mwvalidcheckl in -lmw" >&5
13751 $as_echo_n "checking for _mwvalidcheckl in -lmw... " >&6; }
13752 if test "${ac_cv_lib_mw__mwvalidcheckl+set}" = set; then :
13753 $as_echo_n "(cached) " >&6
13754 else
13755 ac_check_lib_save_LIBS=$LIBS
13756 LIBS="-lmw $LIBS"
13757 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13758 /* end confdefs.h. */
13759
13760 /* Override any GCC internal prototype to avoid an error.
13761 Use char because int might match the return type of a GCC
13762 builtin and then its argument prototype would still apply. */
13763 #ifdef __cplusplus
13764 extern "C"
13765 #endif
13766 char _mwvalidcheckl ();
13767 int
13768 main ()
13769 {
13770 return _mwvalidcheckl ();
13771 ;
13772 return 0;
13773 }
13774 _ACEOF
13775 if ac_fn_c_try_link "$LINENO"; then :
13776 ac_cv_lib_mw__mwvalidcheckl=yes
13777 else
13778 ac_cv_lib_mw__mwvalidcheckl=no
13779 fi
13780 rm -f core conftest.err conftest.$ac_objext \
13781 conftest$ac_exeext conftest.$ac_ext
13782 LIBS=$ac_check_lib_save_LIBS
13783 fi
13784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mw__mwvalidcheckl" >&5
13785 $as_echo "$ac_cv_lib_mw__mwvalidcheckl" >&6; }
13786 if test "x$ac_cv_lib_mw__mwvalidcheckl" = x""yes; then :
13787 LIBM="-lmw"
13788 fi
13789
13790 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cos in -lm" >&5
13791 $as_echo_n "checking for cos in -lm... " >&6; }
13792 if test "${ac_cv_lib_m_cos+set}" = set; then :
13793 $as_echo_n "(cached) " >&6
13794 else
13795 ac_check_lib_save_LIBS=$LIBS
13796 LIBS="-lm $LIBS"
13797 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13798 /* end confdefs.h. */
13799
13800 /* Override any GCC internal prototype to avoid an error.
13801 Use char because int might match the return type of a GCC
13802 builtin and then its argument prototype would still apply. */
13803 #ifdef __cplusplus
13804 extern "C"
13805 #endif
13806 char cos ();
13807 int
13808 main ()
13809 {
13810 return cos ();
13811 ;
13812 return 0;
13813 }
13814 _ACEOF
13815 if ac_fn_c_try_link "$LINENO"; then :
13816 ac_cv_lib_m_cos=yes
13817 else
13818 ac_cv_lib_m_cos=no
13819 fi
13820 rm -f core conftest.err conftest.$ac_objext \
13821 conftest$ac_exeext conftest.$ac_ext
13822 LIBS=$ac_check_lib_save_LIBS
13823 fi
13824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_cos" >&5
13825 $as_echo "$ac_cv_lib_m_cos" >&6; }
13826 if test "x$ac_cv_lib_m_cos" = x""yes; then :
13827 LIBM="$LIBM -lm"
13828 fi
13829
13830 ;;
13831 *)
13832 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cos in -lm" >&5
13833 $as_echo_n "checking for cos in -lm... " >&6; }
13834 if test "${ac_cv_lib_m_cos+set}" = set; then :
13835 $as_echo_n "(cached) " >&6
13836 else
13837 ac_check_lib_save_LIBS=$LIBS
13838 LIBS="-lm $LIBS"
13839 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13840 /* end confdefs.h. */
13841
13842 /* Override any GCC internal prototype to avoid an error.
13843 Use char because int might match the return type of a GCC
13844 builtin and then its argument prototype would still apply. */
13845 #ifdef __cplusplus
13846 extern "C"
13847 #endif
13848 char cos ();
13849 int
13850 main ()
13851 {
13852 return cos ();
13853 ;
13854 return 0;
13855 }
13856 _ACEOF
13857 if ac_fn_c_try_link "$LINENO"; then :
13858 ac_cv_lib_m_cos=yes
13859 else
13860 ac_cv_lib_m_cos=no
13861 fi
13862 rm -f core conftest.err conftest.$ac_objext \
13863 conftest$ac_exeext conftest.$ac_ext
13864 LIBS=$ac_check_lib_save_LIBS
13865 fi
13866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_cos" >&5
13867 $as_echo "$ac_cv_lib_m_cos" >&6; }
13868 if test "x$ac_cv_lib_m_cos" = x""yes; then :
13869 LIBM="-lm"
13870 fi
13871
13872 ;;
13873 esac
13874
13875
13876
13877 ;;
13878 esac
13879
13880 # Some non-ANSI preprocessors botch requoting inside strings. That's bad
13881 # enough, but on some of those systems, the assert macro relies on requoting
13882 # working properly!
13883 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working assert macro" >&5
13884 $as_echo_n "checking for working assert macro... " >&6; }
13885 if test "${gas_cv_assert_ok+set}" = set; then :
13886 $as_echo_n "(cached) " >&6
13887 else
13888 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13889 /* end confdefs.h. */
13890 #include <assert.h>
13891 #include <stdio.h>
13892 int
13893 main ()
13894 {
13895
13896 /* check for requoting problems */
13897 static int a, b, c, d;
13898 static char *s;
13899 assert (!strcmp(s, "foo bar baz quux"));
13900 /* check for newline handling */
13901 assert (a == b
13902 || c == d);
13903
13904 ;
13905 return 0;
13906 }
13907 _ACEOF
13908 if ac_fn_c_try_link "$LINENO"; then :
13909 gas_cv_assert_ok=yes
13910 else
13911 gas_cv_assert_ok=no
13912 fi
13913 rm -f core conftest.err conftest.$ac_objext \
13914 conftest$ac_exeext conftest.$ac_ext
13915 fi
13916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gas_cv_assert_ok" >&5
13917 $as_echo "$gas_cv_assert_ok" >&6; }
13918 test $gas_cv_assert_ok = yes ||
13919 $as_echo "#define BROKEN_ASSERT 1" >>confdefs.h
13920
13921
13922
13923 # On some systems, the system header files may not declare malloc, realloc,
13924 # and free. There are places where gas needs these functions to have been
13925 # declared -- such as when taking their addresses.
13926 gas_test_headers="
13927 #ifdef HAVE_MEMORY_H
13928 #include <memory.h>
13929 #endif
13930 #ifdef HAVE_STRING_H
13931 #include <string.h>
13932 #else
13933 #ifdef HAVE_STRINGS_H
13934 #include <strings.h>
13935 #endif
13936 #endif
13937 #ifdef HAVE_STDLIB_H
13938 #include <stdlib.h>
13939 #endif
13940 #ifdef HAVE_UNISTD_H
13941 #include <unistd.h>
13942 #endif
13943 "
13944
13945 # Does errno.h declare errno, or do we have to add a separate declaration
13946 # for it?
13947
13948 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether declaration is required for errno" >&5
13949 $as_echo_n "checking whether declaration is required for errno... " >&6; }
13950 if test "${gas_cv_decl_needed_errno+set}" = set; then :
13951 $as_echo_n "(cached) " >&6
13952 else
13953 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13954 /* end confdefs.h. */
13955
13956 #ifdef HAVE_ERRNO_H
13957 #include <errno.h>
13958 #endif
13959
13960 int
13961 main ()
13962 {
13963
13964 typedef int f;
13965 f x;
13966 x = (f) errno;
13967
13968 ;
13969 return 0;
13970 }
13971 _ACEOF
13972 if ac_fn_c_try_link "$LINENO"; then :
13973 gas_cv_decl_needed_errno=no
13974 else
13975 gas_cv_decl_needed_errno=yes
13976 fi
13977 rm -f core conftest.err conftest.$ac_objext \
13978 conftest$ac_exeext conftest.$ac_ext
13979 fi
13980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gas_cv_decl_needed_errno" >&5
13981 $as_echo "$gas_cv_decl_needed_errno" >&6; }
13982 if test $gas_cv_decl_needed_errno = yes; then
13983
13984 $as_echo "#define NEED_DECLARATION_ERRNO 1" >>confdefs.h
13985
13986 fi
13987
13988
13989 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a known getopt prototype in unistd.h" >&5
13990 $as_echo_n "checking for a known getopt prototype in unistd.h... " >&6; }
13991 if test "${gas_cv_decl_getopt_unistd_h+set}" = set; then :
13992 $as_echo_n "(cached) " >&6
13993 else
13994 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13995 /* end confdefs.h. */
13996 #include <unistd.h>
13997 int
13998 main ()
13999 {
14000 extern int getopt (int, char *const*, const char *);
14001 ;
14002 return 0;
14003 }
14004 _ACEOF
14005 if ac_fn_c_try_compile "$LINENO"; then :
14006 gas_cv_decl_getopt_unistd_h=yes
14007 else
14008 gas_cv_decl_getopt_unistd_h=no
14009 fi
14010 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14011 fi
14012
14013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gas_cv_decl_getopt_unistd_h" >&5
14014 $as_echo "$gas_cv_decl_getopt_unistd_h" >&6; }
14015 if test $gas_cv_decl_getopt_unistd_h = yes; then
14016
14017 $as_echo "#define HAVE_DECL_GETOPT 1" >>confdefs.h
14018
14019 fi
14020
14021
14022 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether declaration is required for environ" >&5
14023 $as_echo_n "checking whether declaration is required for environ... " >&6; }
14024 if test "${gas_cv_decl_needed_environ+set}" = set; then :
14025 $as_echo_n "(cached) " >&6
14026 else
14027 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14028 /* end confdefs.h. */
14029 $gas_test_headers
14030 int
14031 main ()
14032 {
14033
14034 typedef char **f;
14035 f x;
14036 x = (f) environ;
14037
14038 ;
14039 return 0;
14040 }
14041 _ACEOF
14042 if ac_fn_c_try_link "$LINENO"; then :
14043 gas_cv_decl_needed_environ=no
14044 else
14045 gas_cv_decl_needed_environ=yes
14046 fi
14047 rm -f core conftest.err conftest.$ac_objext \
14048 conftest$ac_exeext conftest.$ac_ext
14049 fi
14050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gas_cv_decl_needed_environ" >&5
14051 $as_echo "$gas_cv_decl_needed_environ" >&6; }
14052 if test $gas_cv_decl_needed_environ = yes; then
14053
14054 $as_echo "#define NEED_DECLARATION_ENVIRON 1" >>confdefs.h
14055
14056 fi
14057
14058
14059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether declaration is required for ffs" >&5
14060 $as_echo_n "checking whether declaration is required for ffs... " >&6; }
14061 if test "${gas_cv_decl_needed_ffs+set}" = set; then :
14062 $as_echo_n "(cached) " >&6
14063 else
14064 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14065 /* end confdefs.h. */
14066 $gas_test_headers
14067 int
14068 main ()
14069 {
14070
14071 typedef int (*f)(int);
14072 f x;
14073 x = (f) ffs;
14074
14075 ;
14076 return 0;
14077 }
14078 _ACEOF
14079 if ac_fn_c_try_link "$LINENO"; then :
14080 gas_cv_decl_needed_ffs=no
14081 else
14082 gas_cv_decl_needed_ffs=yes
14083 fi
14084 rm -f core conftest.err conftest.$ac_objext \
14085 conftest$ac_exeext conftest.$ac_ext
14086 fi
14087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gas_cv_decl_needed_ffs" >&5
14088 $as_echo "$gas_cv_decl_needed_ffs" >&6; }
14089 if test $gas_cv_decl_needed_ffs = yes; then
14090
14091 $as_echo "#define NEED_DECLARATION_FFS 1" >>confdefs.h
14092
14093 fi
14094
14095
14096 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether declaration is required for free" >&5
14097 $as_echo_n "checking whether declaration is required for free... " >&6; }
14098 if test "${gas_cv_decl_needed_free+set}" = set; then :
14099 $as_echo_n "(cached) " >&6
14100 else
14101 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14102 /* end confdefs.h. */
14103 $gas_test_headers
14104 int
14105 main ()
14106 {
14107
14108 typedef void (*f)();
14109 f x;
14110 x = (f) free;
14111
14112 ;
14113 return 0;
14114 }
14115 _ACEOF
14116 if ac_fn_c_try_link "$LINENO"; then :
14117 gas_cv_decl_needed_free=no
14118 else
14119 gas_cv_decl_needed_free=yes
14120 fi
14121 rm -f core conftest.err conftest.$ac_objext \
14122 conftest$ac_exeext conftest.$ac_ext
14123 fi
14124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gas_cv_decl_needed_free" >&5
14125 $as_echo "$gas_cv_decl_needed_free" >&6; }
14126 if test $gas_cv_decl_needed_free = yes; then
14127
14128 $as_echo "#define NEED_DECLARATION_FREE 1" >>confdefs.h
14129
14130 fi
14131
14132
14133 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether declaration is required for malloc" >&5
14134 $as_echo_n "checking whether declaration is required for malloc... " >&6; }
14135 if test "${gas_cv_decl_needed_malloc+set}" = set; then :
14136 $as_echo_n "(cached) " >&6
14137 else
14138 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14139 /* end confdefs.h. */
14140 $gas_test_headers
14141 int
14142 main ()
14143 {
14144
14145 typedef char *(*f)();
14146 f x;
14147 x = (f) malloc;
14148
14149 ;
14150 return 0;
14151 }
14152 _ACEOF
14153 if ac_fn_c_try_link "$LINENO"; then :
14154 gas_cv_decl_needed_malloc=no
14155 else
14156 gas_cv_decl_needed_malloc=yes
14157 fi
14158 rm -f core conftest.err conftest.$ac_objext \
14159 conftest$ac_exeext conftest.$ac_ext
14160 fi
14161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gas_cv_decl_needed_malloc" >&5
14162 $as_echo "$gas_cv_decl_needed_malloc" >&6; }
14163 if test $gas_cv_decl_needed_malloc = yes; then
14164
14165 $as_echo "#define NEED_DECLARATION_MALLOC 1" >>confdefs.h
14166
14167 fi
14168
14169
14170 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether declaration is required for sbrk" >&5
14171 $as_echo_n "checking whether declaration is required for sbrk... " >&6; }
14172 if test "${gas_cv_decl_needed_sbrk+set}" = set; then :
14173 $as_echo_n "(cached) " >&6
14174 else
14175 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14176 /* end confdefs.h. */
14177 $gas_test_headers
14178 int
14179 main ()
14180 {
14181
14182 typedef char *(*f)();
14183 f x;
14184 x = (f) sbrk;
14185
14186 ;
14187 return 0;
14188 }
14189 _ACEOF
14190 if ac_fn_c_try_link "$LINENO"; then :
14191 gas_cv_decl_needed_sbrk=no
14192 else
14193 gas_cv_decl_needed_sbrk=yes
14194 fi
14195 rm -f core conftest.err conftest.$ac_objext \
14196 conftest$ac_exeext conftest.$ac_ext
14197 fi
14198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gas_cv_decl_needed_sbrk" >&5
14199 $as_echo "$gas_cv_decl_needed_sbrk" >&6; }
14200 if test $gas_cv_decl_needed_sbrk = yes; then
14201
14202 $as_echo "#define NEED_DECLARATION_SBRK 1" >>confdefs.h
14203
14204 fi
14205
14206
14207 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether declaration is required for strstr" >&5
14208 $as_echo_n "checking whether declaration is required for strstr... " >&6; }
14209 if test "${gas_cv_decl_needed_strstr+set}" = set; then :
14210 $as_echo_n "(cached) " >&6
14211 else
14212 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14213 /* end confdefs.h. */
14214 $gas_test_headers
14215 int
14216 main ()
14217 {
14218
14219 typedef char *(*f)();
14220 f x;
14221 x = (f) strstr;
14222
14223 ;
14224 return 0;
14225 }
14226 _ACEOF
14227 if ac_fn_c_try_link "$LINENO"; then :
14228 gas_cv_decl_needed_strstr=no
14229 else
14230 gas_cv_decl_needed_strstr=yes
14231 fi
14232 rm -f core conftest.err conftest.$ac_objext \
14233 conftest$ac_exeext conftest.$ac_ext
14234 fi
14235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gas_cv_decl_needed_strstr" >&5
14236 $as_echo "$gas_cv_decl_needed_strstr" >&6; }
14237 if test $gas_cv_decl_needed_strstr = yes; then
14238
14239 $as_echo "#define NEED_DECLARATION_STRSTR 1" >>confdefs.h
14240
14241 fi
14242
14243
14244 ac_fn_c_check_decl "$LINENO" "free" "ac_cv_have_decl_free" "$ac_includes_default"
14245 if test "x$ac_cv_have_decl_free" = x""yes; then :
14246 ac_have_decl=1
14247 else
14248 ac_have_decl=0
14249 fi
14250
14251 cat >>confdefs.h <<_ACEOF
14252 #define HAVE_DECL_FREE $ac_have_decl
14253 _ACEOF
14254 ac_fn_c_check_decl "$LINENO" "getenv" "ac_cv_have_decl_getenv" "$ac_includes_default"
14255 if test "x$ac_cv_have_decl_getenv" = x""yes; then :
14256 ac_have_decl=1
14257 else
14258 ac_have_decl=0
14259 fi
14260
14261 cat >>confdefs.h <<_ACEOF
14262 #define HAVE_DECL_GETENV $ac_have_decl
14263 _ACEOF
14264 ac_fn_c_check_decl "$LINENO" "malloc" "ac_cv_have_decl_malloc" "$ac_includes_default"
14265 if test "x$ac_cv_have_decl_malloc" = x""yes; then :
14266 ac_have_decl=1
14267 else
14268 ac_have_decl=0
14269 fi
14270
14271 cat >>confdefs.h <<_ACEOF
14272 #define HAVE_DECL_MALLOC $ac_have_decl
14273 _ACEOF
14274 ac_fn_c_check_decl "$LINENO" "mempcpy" "ac_cv_have_decl_mempcpy" "$ac_includes_default"
14275 if test "x$ac_cv_have_decl_mempcpy" = x""yes; then :
14276 ac_have_decl=1
14277 else
14278 ac_have_decl=0
14279 fi
14280
14281 cat >>confdefs.h <<_ACEOF
14282 #define HAVE_DECL_MEMPCPY $ac_have_decl
14283 _ACEOF
14284 ac_fn_c_check_decl "$LINENO" "realloc" "ac_cv_have_decl_realloc" "$ac_includes_default"
14285 if test "x$ac_cv_have_decl_realloc" = x""yes; then :
14286 ac_have_decl=1
14287 else
14288 ac_have_decl=0
14289 fi
14290
14291 cat >>confdefs.h <<_ACEOF
14292 #define HAVE_DECL_REALLOC $ac_have_decl
14293 _ACEOF
14294 ac_fn_c_check_decl "$LINENO" "stpcpy" "ac_cv_have_decl_stpcpy" "$ac_includes_default"
14295 if test "x$ac_cv_have_decl_stpcpy" = x""yes; then :
14296 ac_have_decl=1
14297 else
14298 ac_have_decl=0
14299 fi
14300
14301 cat >>confdefs.h <<_ACEOF
14302 #define HAVE_DECL_STPCPY $ac_have_decl
14303 _ACEOF
14304 ac_fn_c_check_decl "$LINENO" "strstr" "ac_cv_have_decl_strstr" "$ac_includes_default"
14305 if test "x$ac_cv_have_decl_strstr" = x""yes; then :
14306 ac_have_decl=1
14307 else
14308 ac_have_decl=0
14309 fi
14310
14311 cat >>confdefs.h <<_ACEOF
14312 #define HAVE_DECL_STRSTR $ac_have_decl
14313 _ACEOF
14314 ac_fn_c_check_decl "$LINENO" "vsnprintf" "ac_cv_have_decl_vsnprintf" "$ac_includes_default"
14315 if test "x$ac_cv_have_decl_vsnprintf" = x""yes; then :
14316 ac_have_decl=1
14317 else
14318 ac_have_decl=0
14319 fi
14320
14321 cat >>confdefs.h <<_ACEOF
14322 #define HAVE_DECL_VSNPRINTF $ac_have_decl
14323 _ACEOF
14324 ac_fn_c_check_decl "$LINENO" "asprintf" "ac_cv_have_decl_asprintf" "$ac_includes_default"
14325 if test "x$ac_cv_have_decl_asprintf" = x""yes; then :
14326 ac_have_decl=1
14327 else
14328 ac_have_decl=0
14329 fi
14330
14331 cat >>confdefs.h <<_ACEOF
14332 #define HAVE_DECL_ASPRINTF $ac_have_decl
14333 _ACEOF
14334
14335
14336
14337 case "${host}" in
14338 *-*-msdos* | *-*-go32* | *-*-mingw32* | *-*-cygwin* | *-*-windows*)
14339
14340 $as_echo "#define USE_BINARY_FOPEN 1" >>confdefs.h
14341 ;;
14342 esac
14343
14344 # Link in zlib if we can. This allows us to write compressed debug sections.
14345
14346 # Use the system's zlib library.
14347 zlibdir="-L\$(top_builddir)/../zlib"
14348 zlibinc="-I\$(top_srcdir)/../zlib"
14349
14350 # Check whether --with-system-zlib was given.
14351 if test "${with_system_zlib+set}" = set; then :
14352 withval=$with_system_zlib; if test x$with_system_zlib = xyes ; then
14353 zlibdir=
14354 zlibinc=
14355 fi
14356
14357 fi
14358
14359
14360
14361
14362
14363 # Support for VMS timestamps via cross compile
14364
14365 if test "$ac_cv_header_time_h" = yes; then
14366 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct tm.tm_gmtoff in time.h" >&5
14367 $as_echo_n "checking for struct tm.tm_gmtoff in time.h... " >&6; }
14368 if test "${gas_cv_have_time_type_member_tm_gmtoff+set}" = set; then :
14369 $as_echo_n "(cached) " >&6
14370 else
14371 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14372 /* end confdefs.h. */
14373
14374 #define _BSD_SOURCE 1
14375 #include <time.h>
14376 int
14377 main ()
14378 {
14379 struct tm avar; void* aref = (void*) &avar.tm_gmtoff
14380 ;
14381 return 0;
14382 }
14383 _ACEOF
14384 if ac_fn_c_try_compile "$LINENO"; then :
14385 gas_cv_have_time_type_member_tm_gmtoff=yes
14386 else
14387 gas_cv_have_time_type_member_tm_gmtoff=no
14388
14389 fi
14390 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14391 fi
14392
14393 if test $gas_cv_have_time_type_member_tm_gmtoff = yes; then
14394
14395 $as_echo "#define HAVE_TM_GMTOFF 1" >>confdefs.h
14396
14397 fi
14398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gas_cv_have_time_type_member_tm_gmtoff" >&5
14399 $as_echo "$gas_cv_have_time_type_member_tm_gmtoff" >&6; }
14400
14401 fi
14402
14403 if test "$ac_cv_header_sys_stat_h" = yes; then
14404 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct stat.st_mtim.tv_sec in sys/stat.h" >&5
14405 $as_echo_n "checking for struct stat.st_mtim.tv_sec in sys/stat.h... " >&6; }
14406 if test "${gas_cv_have_sys_stat_type_member_st_mtim_tv_sec+set}" = set; then :
14407 $as_echo_n "(cached) " >&6
14408 else
14409 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14410 /* end confdefs.h. */
14411
14412 #define _BSD_SOURCE 1
14413 #include <sys/stat.h>
14414 int
14415 main ()
14416 {
14417 struct stat avar; void* aref = (void*) &avar.st_mtim.tv_sec
14418 ;
14419 return 0;
14420 }
14421 _ACEOF
14422 if ac_fn_c_try_compile "$LINENO"; then :
14423 gas_cv_have_sys_stat_type_member_st_mtim_tv_sec=yes
14424 else
14425 gas_cv_have_sys_stat_type_member_st_mtim_tv_sec=no
14426
14427 fi
14428 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14429 fi
14430
14431 if test $gas_cv_have_sys_stat_type_member_st_mtim_tv_sec = yes; then
14432
14433 $as_echo "#define HAVE_ST_MTIM_TV_SEC 1" >>confdefs.h
14434
14435 fi
14436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gas_cv_have_sys_stat_type_member_st_mtim_tv_sec" >&5
14437 $as_echo "$gas_cv_have_sys_stat_type_member_st_mtim_tv_sec" >&6; }
14438
14439 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct stat.st_mtim.tv_nsec in sys/stat.h" >&5
14440 $as_echo_n "checking for struct stat.st_mtim.tv_nsec in sys/stat.h... " >&6; }
14441 if test "${gas_cv_have_sys_stat_type_member_st_mtim_tv_nsec+set}" = set; then :
14442 $as_echo_n "(cached) " >&6
14443 else
14444 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14445 /* end confdefs.h. */
14446
14447 #define _BSD_SOURCE 1
14448 #include <sys/stat.h>
14449 int
14450 main ()
14451 {
14452 struct stat avar; void* aref = (void*) &avar.st_mtim.tv_nsec
14453 ;
14454 return 0;
14455 }
14456 _ACEOF
14457 if ac_fn_c_try_compile "$LINENO"; then :
14458 gas_cv_have_sys_stat_type_member_st_mtim_tv_nsec=yes
14459 else
14460 gas_cv_have_sys_stat_type_member_st_mtim_tv_nsec=no
14461
14462 fi
14463 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14464 fi
14465
14466 if test $gas_cv_have_sys_stat_type_member_st_mtim_tv_nsec = yes; then
14467
14468 $as_echo "#define HAVE_ST_MTIM_TV_NSEC 1" >>confdefs.h
14469
14470 fi
14471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gas_cv_have_sys_stat_type_member_st_mtim_tv_nsec" >&5
14472 $as_echo "$gas_cv_have_sys_stat_type_member_st_mtim_tv_nsec" >&6; }
14473
14474 fi
14475
14476
14477
14478
14479
14480
14481
14482
14483
14484 ac_config_files="$ac_config_files Makefile doc/Makefile po/Makefile.in:po/Make-in"
14485
14486 ac_config_commands="$ac_config_commands default"
14487
14488
14489 cat >confcache <<\_ACEOF
14490 # This file is a shell script that caches the results of configure
14491 # tests run on this system so they can be shared between configure
14492 # scripts and configure runs, see configure's option --config-cache.
14493 # It is not useful on other systems. If it contains results you don't
14494 # want to keep, you may remove or edit it.
14495 #
14496 # config.status only pays attention to the cache file if you give it
14497 # the --recheck option to rerun configure.
14498 #
14499 # `ac_cv_env_foo' variables (set or unset) will be overridden when
14500 # loading this file, other *unset* `ac_cv_foo' will be assigned the
14501 # following values.
14502
14503 _ACEOF
14504
14505 # The following way of writing the cache mishandles newlines in values,
14506 # but we know of no workaround that is simple, portable, and efficient.
14507 # So, we kill variables containing newlines.
14508 # Ultrix sh set writes to stderr and can't be redirected directly,
14509 # and sets the high bit in the cache file unless we assign to the vars.
14510 (
14511 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
14512 eval ac_val=\$$ac_var
14513 case $ac_val in #(
14514 *${as_nl}*)
14515 case $ac_var in #(
14516 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
14517 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
14518 esac
14519 case $ac_var in #(
14520 _ | IFS | as_nl) ;; #(
14521 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
14522 *) { eval $ac_var=; unset $ac_var;} ;;
14523 esac ;;
14524 esac
14525 done
14526
14527 (set) 2>&1 |
14528 case $as_nl`(ac_space=' '; set) 2>&1` in #(
14529 *${as_nl}ac_space=\ *)
14530 # `set' does not quote correctly, so add quotes: double-quote
14531 # substitution turns \\\\ into \\, and sed turns \\ into \.
14532 sed -n \
14533 "s/'/'\\\\''/g;
14534 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
14535 ;; #(
14536 *)
14537 # `set' quotes correctly as required by POSIX, so do not add quotes.
14538 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
14539 ;;
14540 esac |
14541 sort
14542 ) |
14543 sed '
14544 /^ac_cv_env_/b end
14545 t clear
14546 :clear
14547 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
14548 t end
14549 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
14550 :end' >>confcache
14551 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
14552 if test -w "$cache_file"; then
14553 test "x$cache_file" != "x/dev/null" &&
14554 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
14555 $as_echo "$as_me: updating cache $cache_file" >&6;}
14556 cat confcache >$cache_file
14557 else
14558 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
14559 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
14560 fi
14561 fi
14562 rm -f confcache
14563
14564 test "x$prefix" = xNONE && prefix=$ac_default_prefix
14565 # Let make expand exec_prefix.
14566 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
14567
14568 DEFS=-DHAVE_CONFIG_H
14569
14570 ac_libobjs=
14571 ac_ltlibobjs=
14572 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
14573 # 1. Remove the extension, and $U if already installed.
14574 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
14575 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
14576 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
14577 # will be set to the directory where LIBOBJS objects are built.
14578 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
14579 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
14580 done
14581 LIBOBJS=$ac_libobjs
14582
14583 LTLIBOBJS=$ac_ltlibobjs
14584
14585
14586 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
14587 as_fn_error "conditional \"AMDEP\" was never defined.
14588 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14589 fi
14590 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
14591 as_fn_error "conditional \"am__fastdepCC\" was never defined.
14592 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14593 fi
14594 if test -n "$EXEEXT"; then
14595 am__EXEEXT_TRUE=
14596 am__EXEEXT_FALSE='#'
14597 else
14598 am__EXEEXT_TRUE='#'
14599 am__EXEEXT_FALSE=
14600 fi
14601
14602
14603 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
14604 as_fn_error "conditional \"MAINTAINER_MODE\" was never defined.
14605 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14606 fi
14607 if test -z "${GENINSRC_NEVER_TRUE}" && test -z "${GENINSRC_NEVER_FALSE}"; then
14608 as_fn_error "conditional \"GENINSRC_NEVER\" was never defined.
14609 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14610 fi
14611
14612 : ${CONFIG_STATUS=./config.status}
14613 ac_write_fail=0
14614 ac_clean_files_save=$ac_clean_files
14615 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
14616 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
14617 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
14618 as_write_fail=0
14619 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
14620 #! $SHELL
14621 # Generated by $as_me.
14622 # Run this file to recreate the current configuration.
14623 # Compiler output produced by configure, useful for debugging
14624 # configure, is in config.log if it exists.
14625
14626 debug=false
14627 ac_cs_recheck=false
14628 ac_cs_silent=false
14629
14630 SHELL=\${CONFIG_SHELL-$SHELL}
14631 export SHELL
14632 _ASEOF
14633 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
14634 ## -------------------- ##
14635 ## M4sh Initialization. ##
14636 ## -------------------- ##
14637
14638 # Be more Bourne compatible
14639 DUALCASE=1; export DUALCASE # for MKS sh
14640 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
14641 emulate sh
14642 NULLCMD=:
14643 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
14644 # is contrary to our usage. Disable this feature.
14645 alias -g '${1+"$@"}'='"$@"'
14646 setopt NO_GLOB_SUBST
14647 else
14648 case `(set -o) 2>/dev/null` in #(
14649 *posix*) :
14650 set -o posix ;; #(
14651 *) :
14652 ;;
14653 esac
14654 fi
14655
14656
14657 as_nl='
14658 '
14659 export as_nl
14660 # Printing a long string crashes Solaris 7 /usr/bin/printf.
14661 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
14662 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
14663 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
14664 # Prefer a ksh shell builtin over an external printf program on Solaris,
14665 # but without wasting forks for bash or zsh.
14666 if test -z "$BASH_VERSION$ZSH_VERSION" \
14667 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
14668 as_echo='print -r --'
14669 as_echo_n='print -rn --'
14670 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
14671 as_echo='printf %s\n'
14672 as_echo_n='printf %s'
14673 else
14674 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
14675 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
14676 as_echo_n='/usr/ucb/echo -n'
14677 else
14678 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
14679 as_echo_n_body='eval
14680 arg=$1;
14681 case $arg in #(
14682 *"$as_nl"*)
14683 expr "X$arg" : "X\\(.*\\)$as_nl";
14684 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
14685 esac;
14686 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
14687 '
14688 export as_echo_n_body
14689 as_echo_n='sh -c $as_echo_n_body as_echo'
14690 fi
14691 export as_echo_body
14692 as_echo='sh -c $as_echo_body as_echo'
14693 fi
14694
14695 # The user is always right.
14696 if test "${PATH_SEPARATOR+set}" != set; then
14697 PATH_SEPARATOR=:
14698 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
14699 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
14700 PATH_SEPARATOR=';'
14701 }
14702 fi
14703
14704
14705 # IFS
14706 # We need space, tab and new line, in precisely that order. Quoting is
14707 # there to prevent editors from complaining about space-tab.
14708 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
14709 # splitting by setting IFS to empty value.)
14710 IFS=" "" $as_nl"
14711
14712 # Find who we are. Look in the path if we contain no directory separator.
14713 case $0 in #((
14714 *[\\/]* ) as_myself=$0 ;;
14715 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14716 for as_dir in $PATH
14717 do
14718 IFS=$as_save_IFS
14719 test -z "$as_dir" && as_dir=.
14720 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
14721 done
14722 IFS=$as_save_IFS
14723
14724 ;;
14725 esac
14726 # We did not find ourselves, most probably we were run as `sh COMMAND'
14727 # in which case we are not to be found in the path.
14728 if test "x$as_myself" = x; then
14729 as_myself=$0
14730 fi
14731 if test ! -f "$as_myself"; then
14732 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
14733 exit 1
14734 fi
14735
14736 # Unset variables that we do not need and which cause bugs (e.g. in
14737 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
14738 # suppresses any "Segmentation fault" message there. '((' could
14739 # trigger a bug in pdksh 5.2.14.
14740 for as_var in BASH_ENV ENV MAIL MAILPATH
14741 do eval test x\${$as_var+set} = xset \
14742 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
14743 done
14744 PS1='$ '
14745 PS2='> '
14746 PS4='+ '
14747
14748 # NLS nuisances.
14749 LC_ALL=C
14750 export LC_ALL
14751 LANGUAGE=C
14752 export LANGUAGE
14753
14754 # CDPATH.
14755 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
14756
14757
14758 # as_fn_error ERROR [LINENO LOG_FD]
14759 # ---------------------------------
14760 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
14761 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
14762 # script with status $?, using 1 if that was 0.
14763 as_fn_error ()
14764 {
14765 as_status=$?; test $as_status -eq 0 && as_status=1
14766 if test "$3"; then
14767 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
14768 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
14769 fi
14770 $as_echo "$as_me: error: $1" >&2
14771 as_fn_exit $as_status
14772 } # as_fn_error
14773
14774
14775 # as_fn_set_status STATUS
14776 # -----------------------
14777 # Set $? to STATUS, without forking.
14778 as_fn_set_status ()
14779 {
14780 return $1
14781 } # as_fn_set_status
14782
14783 # as_fn_exit STATUS
14784 # -----------------
14785 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
14786 as_fn_exit ()
14787 {
14788 set +e
14789 as_fn_set_status $1
14790 exit $1
14791 } # as_fn_exit
14792
14793 # as_fn_unset VAR
14794 # ---------------
14795 # Portably unset VAR.
14796 as_fn_unset ()
14797 {
14798 { eval $1=; unset $1;}
14799 }
14800 as_unset=as_fn_unset
14801 # as_fn_append VAR VALUE
14802 # ----------------------
14803 # Append the text in VALUE to the end of the definition contained in VAR. Take
14804 # advantage of any shell optimizations that allow amortized linear growth over
14805 # repeated appends, instead of the typical quadratic growth present in naive
14806 # implementations.
14807 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
14808 eval 'as_fn_append ()
14809 {
14810 eval $1+=\$2
14811 }'
14812 else
14813 as_fn_append ()
14814 {
14815 eval $1=\$$1\$2
14816 }
14817 fi # as_fn_append
14818
14819 # as_fn_arith ARG...
14820 # ------------------
14821 # Perform arithmetic evaluation on the ARGs, and store the result in the
14822 # global $as_val. Take advantage of shells that can avoid forks. The arguments
14823 # must be portable across $(()) and expr.
14824 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
14825 eval 'as_fn_arith ()
14826 {
14827 as_val=$(( $* ))
14828 }'
14829 else
14830 as_fn_arith ()
14831 {
14832 as_val=`expr "$@" || test $? -eq 1`
14833 }
14834 fi # as_fn_arith
14835
14836
14837 if expr a : '\(a\)' >/dev/null 2>&1 &&
14838 test "X`expr 00001 : '.*\(...\)'`" = X001; then
14839 as_expr=expr
14840 else
14841 as_expr=false
14842 fi
14843
14844 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
14845 as_basename=basename
14846 else
14847 as_basename=false
14848 fi
14849
14850 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
14851 as_dirname=dirname
14852 else
14853 as_dirname=false
14854 fi
14855
14856 as_me=`$as_basename -- "$0" ||
14857 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
14858 X"$0" : 'X\(//\)$' \| \
14859 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
14860 $as_echo X/"$0" |
14861 sed '/^.*\/\([^/][^/]*\)\/*$/{
14862 s//\1/
14863 q
14864 }
14865 /^X\/\(\/\/\)$/{
14866 s//\1/
14867 q
14868 }
14869 /^X\/\(\/\).*/{
14870 s//\1/
14871 q
14872 }
14873 s/.*/./; q'`
14874
14875 # Avoid depending upon Character Ranges.
14876 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
14877 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
14878 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
14879 as_cr_digits='0123456789'
14880 as_cr_alnum=$as_cr_Letters$as_cr_digits
14881
14882 ECHO_C= ECHO_N= ECHO_T=
14883 case `echo -n x` in #(((((
14884 -n*)
14885 case `echo 'xy\c'` in
14886 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
14887 xy) ECHO_C='\c';;
14888 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
14889 ECHO_T=' ';;
14890 esac;;
14891 *)
14892 ECHO_N='-n';;
14893 esac
14894
14895 rm -f conf$$ conf$$.exe conf$$.file
14896 if test -d conf$$.dir; then
14897 rm -f conf$$.dir/conf$$.file
14898 else
14899 rm -f conf$$.dir
14900 mkdir conf$$.dir 2>/dev/null
14901 fi
14902 if (echo >conf$$.file) 2>/dev/null; then
14903 if ln -s conf$$.file conf$$ 2>/dev/null; then
14904 as_ln_s='ln -s'
14905 # ... but there are two gotchas:
14906 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
14907 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
14908 # In both cases, we have to default to `cp -p'.
14909 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
14910 as_ln_s='cp -p'
14911 elif ln conf$$.file conf$$ 2>/dev/null; then
14912 as_ln_s=ln
14913 else
14914 as_ln_s='cp -p'
14915 fi
14916 else
14917 as_ln_s='cp -p'
14918 fi
14919 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
14920 rmdir conf$$.dir 2>/dev/null
14921
14922
14923 # as_fn_mkdir_p
14924 # -------------
14925 # Create "$as_dir" as a directory, including parents if necessary.
14926 as_fn_mkdir_p ()
14927 {
14928
14929 case $as_dir in #(
14930 -*) as_dir=./$as_dir;;
14931 esac
14932 test -d "$as_dir" || eval $as_mkdir_p || {
14933 as_dirs=
14934 while :; do
14935 case $as_dir in #(
14936 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
14937 *) as_qdir=$as_dir;;
14938 esac
14939 as_dirs="'$as_qdir' $as_dirs"
14940 as_dir=`$as_dirname -- "$as_dir" ||
14941 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14942 X"$as_dir" : 'X\(//\)[^/]' \| \
14943 X"$as_dir" : 'X\(//\)$' \| \
14944 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
14945 $as_echo X"$as_dir" |
14946 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14947 s//\1/
14948 q
14949 }
14950 /^X\(\/\/\)[^/].*/{
14951 s//\1/
14952 q
14953 }
14954 /^X\(\/\/\)$/{
14955 s//\1/
14956 q
14957 }
14958 /^X\(\/\).*/{
14959 s//\1/
14960 q
14961 }
14962 s/.*/./; q'`
14963 test -d "$as_dir" && break
14964 done
14965 test -z "$as_dirs" || eval "mkdir $as_dirs"
14966 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
14967
14968
14969 } # as_fn_mkdir_p
14970 if mkdir -p . 2>/dev/null; then
14971 as_mkdir_p='mkdir -p "$as_dir"'
14972 else
14973 test -d ./-p && rmdir ./-p
14974 as_mkdir_p=false
14975 fi
14976
14977 if test -x / >/dev/null 2>&1; then
14978 as_test_x='test -x'
14979 else
14980 if ls -dL / >/dev/null 2>&1; then
14981 as_ls_L_option=L
14982 else
14983 as_ls_L_option=
14984 fi
14985 as_test_x='
14986 eval sh -c '\''
14987 if test -d "$1"; then
14988 test -d "$1/.";
14989 else
14990 case $1 in #(
14991 -*)set "./$1";;
14992 esac;
14993 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
14994 ???[sx]*):;;*)false;;esac;fi
14995 '\'' sh
14996 '
14997 fi
14998 as_executable_p=$as_test_x
14999
15000 # Sed expression to map a string onto a valid CPP name.
15001 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
15002
15003 # Sed expression to map a string onto a valid variable name.
15004 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
15005
15006
15007 exec 6>&1
15008 ## ----------------------------------- ##
15009 ## Main body of $CONFIG_STATUS script. ##
15010 ## ----------------------------------- ##
15011 _ASEOF
15012 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
15013
15014 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15015 # Save the log message, to keep $0 and so on meaningful, and to
15016 # report actual input values of CONFIG_FILES etc. instead of their
15017 # values after options handling.
15018 ac_log="
15019 This file was extended by gas $as_me 2.25.51, which was
15020 generated by GNU Autoconf 2.64. Invocation command line was
15021
15022 CONFIG_FILES = $CONFIG_FILES
15023 CONFIG_HEADERS = $CONFIG_HEADERS
15024 CONFIG_LINKS = $CONFIG_LINKS
15025 CONFIG_COMMANDS = $CONFIG_COMMANDS
15026 $ $0 $@
15027
15028 on `(hostname || uname -n) 2>/dev/null | sed 1q`
15029 "
15030
15031 _ACEOF
15032
15033 case $ac_config_files in *"
15034 "*) set x $ac_config_files; shift; ac_config_files=$*;;
15035 esac
15036
15037 case $ac_config_headers in *"
15038 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
15039 esac
15040
15041
15042 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15043 # Files that config.status was made for.
15044 config_files="$ac_config_files"
15045 config_headers="$ac_config_headers"
15046 config_commands="$ac_config_commands"
15047
15048 _ACEOF
15049
15050 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15051 ac_cs_usage="\
15052 \`$as_me' instantiates files and other configuration actions
15053 from templates according to the current configuration. Unless the files
15054 and actions are specified as TAGs, all are instantiated by default.
15055
15056 Usage: $0 [OPTION]... [TAG]...
15057
15058 -h, --help print this help, then exit
15059 -V, --version print version number and configuration settings, then exit
15060 -q, --quiet, --silent
15061 do not print progress messages
15062 -d, --debug don't remove temporary files
15063 --recheck update $as_me by reconfiguring in the same conditions
15064 --file=FILE[:TEMPLATE]
15065 instantiate the configuration file FILE
15066 --header=FILE[:TEMPLATE]
15067 instantiate the configuration header FILE
15068
15069 Configuration files:
15070 $config_files
15071
15072 Configuration headers:
15073 $config_headers
15074
15075 Configuration commands:
15076 $config_commands
15077
15078 Report bugs to the package provider."
15079
15080 _ACEOF
15081 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15082 ac_cs_version="\\
15083 gas config.status 2.25.51
15084 configured by $0, generated by GNU Autoconf 2.64,
15085 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
15086
15087 Copyright (C) 2009 Free Software Foundation, Inc.
15088 This config.status script is free software; the Free Software Foundation
15089 gives unlimited permission to copy, distribute and modify it."
15090
15091 ac_pwd='$ac_pwd'
15092 srcdir='$srcdir'
15093 INSTALL='$INSTALL'
15094 MKDIR_P='$MKDIR_P'
15095 AWK='$AWK'
15096 test -n "\$AWK" || AWK=awk
15097 _ACEOF
15098
15099 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15100 # The default lists apply if the user does not specify any file.
15101 ac_need_defaults=:
15102 while test $# != 0
15103 do
15104 case $1 in
15105 --*=*)
15106 ac_option=`expr "X$1" : 'X\([^=]*\)='`
15107 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
15108 ac_shift=:
15109 ;;
15110 *)
15111 ac_option=$1
15112 ac_optarg=$2
15113 ac_shift=shift
15114 ;;
15115 esac
15116
15117 case $ac_option in
15118 # Handling of the options.
15119 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
15120 ac_cs_recheck=: ;;
15121 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
15122 $as_echo "$ac_cs_version"; exit ;;
15123 --debug | --debu | --deb | --de | --d | -d )
15124 debug=: ;;
15125 --file | --fil | --fi | --f )
15126 $ac_shift
15127 case $ac_optarg in
15128 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
15129 esac
15130 as_fn_append CONFIG_FILES " '$ac_optarg'"
15131 ac_need_defaults=false;;
15132 --header | --heade | --head | --hea )
15133 $ac_shift
15134 case $ac_optarg in
15135 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
15136 esac
15137 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
15138 ac_need_defaults=false;;
15139 --he | --h)
15140 # Conflict between --help and --header
15141 as_fn_error "ambiguous option: \`$1'
15142 Try \`$0 --help' for more information.";;
15143 --help | --hel | -h )
15144 $as_echo "$ac_cs_usage"; exit ;;
15145 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
15146 | -silent | --silent | --silen | --sile | --sil | --si | --s)
15147 ac_cs_silent=: ;;
15148
15149 # This is an error.
15150 -*) as_fn_error "unrecognized option: \`$1'
15151 Try \`$0 --help' for more information." ;;
15152
15153 *) as_fn_append ac_config_targets " $1"
15154 ac_need_defaults=false ;;
15155
15156 esac
15157 shift
15158 done
15159
15160 ac_configure_extra_args=
15161
15162 if $ac_cs_silent; then
15163 exec 6>/dev/null
15164 ac_configure_extra_args="$ac_configure_extra_args --silent"
15165 fi
15166
15167 _ACEOF
15168 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15169 if \$ac_cs_recheck; then
15170 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
15171 shift
15172 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
15173 CONFIG_SHELL='$SHELL'
15174 export CONFIG_SHELL
15175 exec "\$@"
15176 fi
15177
15178 _ACEOF
15179 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15180 exec 5>>config.log
15181 {
15182 echo
15183 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
15184 ## Running $as_me. ##
15185 _ASBOX
15186 $as_echo "$ac_log"
15187 } >&5
15188
15189 _ACEOF
15190 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15191 #
15192 # INIT-COMMANDS
15193 #
15194 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
15195
15196
15197 # The HP-UX ksh and POSIX shell print the target directory to stdout
15198 # if CDPATH is set.
15199 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
15200
15201 sed_quote_subst='$sed_quote_subst'
15202 double_quote_subst='$double_quote_subst'
15203 delay_variable_subst='$delay_variable_subst'
15204 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
15205 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
15206 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
15207 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
15208 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
15209 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
15210 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
15211 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
15212 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
15213 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
15214 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
15215 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
15216 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
15217 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
15218 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
15219 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
15220 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
15221 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
15222 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
15223 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
15224 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
15225 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
15226 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
15227 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
15228 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
15229 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
15230 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
15231 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
15232 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
15233 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
15234 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
15235 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
15236 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
15237 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
15238 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
15239 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
15240 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
15241 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
15242 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
15243 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
15244 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
15245 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
15246 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
15247 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
15248 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
15249 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
15250 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
15251 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
15252 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"`'
15253 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
15254 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
15255 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
15256 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
15257 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
15258 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
15259 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
15260 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
15261 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
15262 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
15263 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
15264 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
15265 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
15266 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
15267 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
15268 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
15269 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
15270 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
15271 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
15272 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
15273 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
15274 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
15275 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
15276 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
15277 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
15278 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
15279 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
15280 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
15281 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
15282 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
15283 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
15284 hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
15285 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
15286 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
15287 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
15288 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
15289 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
15290 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
15291 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
15292 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
15293 fix_srcfile_path='`$ECHO "$fix_srcfile_path" | $SED "$delay_single_quote_subst"`'
15294 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
15295 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
15296 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
15297 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
15298 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
15299 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
15300 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
15301 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
15302 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
15303 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
15304 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
15305 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
15306 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
15307 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
15308 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
15309 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
15310 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
15311 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
15312 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
15313 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
15314 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
15315 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
15316 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
15317 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
15318 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
15319 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
15320 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
15321 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
15322 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
15323 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
15324
15325 LTCC='$LTCC'
15326 LTCFLAGS='$LTCFLAGS'
15327 compiler='$compiler_DEFAULT'
15328
15329 # A function that is used when there is no print builtin or printf.
15330 func_fallback_echo ()
15331 {
15332 eval 'cat <<_LTECHO_EOF
15333 \$1
15334 _LTECHO_EOF'
15335 }
15336
15337 # Quote evaled strings.
15338 for var in SHELL \
15339 ECHO \
15340 SED \
15341 GREP \
15342 EGREP \
15343 FGREP \
15344 LD \
15345 NM \
15346 LN_S \
15347 lt_SP2NL \
15348 lt_NL2SP \
15349 reload_flag \
15350 OBJDUMP \
15351 deplibs_check_method \
15352 file_magic_cmd \
15353 AR \
15354 AR_FLAGS \
15355 STRIP \
15356 RANLIB \
15357 CC \
15358 CFLAGS \
15359 compiler \
15360 lt_cv_sys_global_symbol_pipe \
15361 lt_cv_sys_global_symbol_to_cdecl \
15362 lt_cv_sys_global_symbol_to_c_name_address \
15363 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
15364 lt_prog_compiler_no_builtin_flag \
15365 lt_prog_compiler_wl \
15366 lt_prog_compiler_pic \
15367 lt_prog_compiler_static \
15368 lt_cv_prog_compiler_c_o \
15369 need_locks \
15370 DSYMUTIL \
15371 NMEDIT \
15372 LIPO \
15373 OTOOL \
15374 OTOOL64 \
15375 shrext_cmds \
15376 export_dynamic_flag_spec \
15377 whole_archive_flag_spec \
15378 compiler_needs_object \
15379 with_gnu_ld \
15380 allow_undefined_flag \
15381 no_undefined_flag \
15382 hardcode_libdir_flag_spec \
15383 hardcode_libdir_flag_spec_ld \
15384 hardcode_libdir_separator \
15385 fix_srcfile_path \
15386 exclude_expsyms \
15387 include_expsyms \
15388 file_list_spec \
15389 variables_saved_for_relink \
15390 libname_spec \
15391 library_names_spec \
15392 soname_spec \
15393 install_override_mode \
15394 finish_eval \
15395 old_striplib \
15396 striplib; do
15397 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
15398 *[\\\\\\\`\\"\\\$]*)
15399 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
15400 ;;
15401 *)
15402 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
15403 ;;
15404 esac
15405 done
15406
15407 # Double-quote double-evaled strings.
15408 for var in reload_cmds \
15409 old_postinstall_cmds \
15410 old_postuninstall_cmds \
15411 old_archive_cmds \
15412 extract_expsyms_cmds \
15413 old_archive_from_new_cmds \
15414 old_archive_from_expsyms_cmds \
15415 archive_cmds \
15416 archive_expsym_cmds \
15417 module_cmds \
15418 module_expsym_cmds \
15419 export_symbols_cmds \
15420 prelink_cmds \
15421 postinstall_cmds \
15422 postuninstall_cmds \
15423 finish_cmds \
15424 sys_lib_search_path_spec \
15425 sys_lib_dlsearch_path_spec; do
15426 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
15427 *[\\\\\\\`\\"\\\$]*)
15428 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
15429 ;;
15430 *)
15431 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
15432 ;;
15433 esac
15434 done
15435
15436 ac_aux_dir='$ac_aux_dir'
15437 xsi_shell='$xsi_shell'
15438 lt_shell_append='$lt_shell_append'
15439
15440 # See if we are running on zsh, and set the options which allow our
15441 # commands through without removal of \ escapes INIT.
15442 if test -n "\${ZSH_VERSION+set}" ; then
15443 setopt NO_GLOB_SUBST
15444 fi
15445
15446
15447 PACKAGE='$PACKAGE'
15448 VERSION='$VERSION'
15449 TIMESTAMP='$TIMESTAMP'
15450 RM='$RM'
15451 ofile='$ofile'
15452
15453
15454
15455 # Capture the value of obsolete ALL_LINGUAS because we need it to compute
15456 # POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES, CATALOGS. But hide it
15457 # from automake.
15458 eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
15459 # Capture the value of LINGUAS because we need it to compute CATALOGS.
15460 LINGUAS="${LINGUAS-%UNSET%}"
15461
15462 target_cpu_type=${target_cpu_type}
15463 cgen_cpu_prefix=${cgen_cpu_prefix}
15464 obj_format=${obj_format}
15465 te_file=${te_file}
15466
15467 _ACEOF
15468
15469 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15470
15471 # Handling of arguments.
15472 for ac_config_target in $ac_config_targets
15473 do
15474 case $ac_config_target in
15475 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
15476 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
15477 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h:config.in" ;;
15478 "gdb.ini") CONFIG_FILES="$CONFIG_FILES gdb.ini:gdbinit.in" ;;
15479 ".gdbinit") CONFIG_FILES="$CONFIG_FILES .gdbinit:gdbinit.in" ;;
15480 "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
15481 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
15482 "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
15483 "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in:po/Make-in" ;;
15484 "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
15485
15486 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
15487 esac
15488 done
15489
15490
15491 # If the user did not use the arguments to specify the items to instantiate,
15492 # then the envvar interface is used. Set only those that are not.
15493 # We use the long form for the default assignment because of an extremely
15494 # bizarre bug on SunOS 4.1.3.
15495 if $ac_need_defaults; then
15496 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
15497 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
15498 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
15499 fi
15500
15501 # Have a temporary directory for convenience. Make it in the build tree
15502 # simply because there is no reason against having it here, and in addition,
15503 # creating and moving files from /tmp can sometimes cause problems.
15504 # Hook for its removal unless debugging.
15505 # Note that there is a small window in which the directory will not be cleaned:
15506 # after its creation but before its name has been assigned to `$tmp'.
15507 $debug ||
15508 {
15509 tmp=
15510 trap 'exit_status=$?
15511 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
15512 ' 0
15513 trap 'as_fn_exit 1' 1 2 13 15
15514 }
15515 # Create a (secure) tmp directory for tmp files.
15516
15517 {
15518 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
15519 test -n "$tmp" && test -d "$tmp"
15520 } ||
15521 {
15522 tmp=./conf$$-$RANDOM
15523 (umask 077 && mkdir "$tmp")
15524 } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
15525
15526 # Set up the scripts for CONFIG_FILES section.
15527 # No need to generate them if there are no CONFIG_FILES.
15528 # This happens for instance with `./config.status config.h'.
15529 if test -n "$CONFIG_FILES"; then
15530
15531
15532 ac_cr=`echo X | tr X '\015'`
15533 # On cygwin, bash can eat \r inside `` if the user requested igncr.
15534 # But we know of no other shell where ac_cr would be empty at this
15535 # point, so we can use a bashism as a fallback.
15536 if test "x$ac_cr" = x; then
15537 eval ac_cr=\$\'\\r\'
15538 fi
15539 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
15540 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
15541 ac_cs_awk_cr='\r'
15542 else
15543 ac_cs_awk_cr=$ac_cr
15544 fi
15545
15546 echo 'BEGIN {' >"$tmp/subs1.awk" &&
15547 _ACEOF
15548
15549
15550 {
15551 echo "cat >conf$$subs.awk <<_ACEOF" &&
15552 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
15553 echo "_ACEOF"
15554 } >conf$$subs.sh ||
15555 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
15556 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
15557 ac_delim='%!_!# '
15558 for ac_last_try in false false false false false :; do
15559 . ./conf$$subs.sh ||
15560 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
15561
15562 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
15563 if test $ac_delim_n = $ac_delim_num; then
15564 break
15565 elif $ac_last_try; then
15566 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
15567 else
15568 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
15569 fi
15570 done
15571 rm -f conf$$subs.sh
15572
15573 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15574 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
15575 _ACEOF
15576 sed -n '
15577 h
15578 s/^/S["/; s/!.*/"]=/
15579 p
15580 g
15581 s/^[^!]*!//
15582 :repl
15583 t repl
15584 s/'"$ac_delim"'$//
15585 t delim
15586 :nl
15587 h
15588 s/\(.\{148\}\).*/\1/
15589 t more1
15590 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
15591 p
15592 n
15593 b repl
15594 :more1
15595 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
15596 p
15597 g
15598 s/.\{148\}//
15599 t nl
15600 :delim
15601 h
15602 s/\(.\{148\}\).*/\1/
15603 t more2
15604 s/["\\]/\\&/g; s/^/"/; s/$/"/
15605 p
15606 b
15607 :more2
15608 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
15609 p
15610 g
15611 s/.\{148\}//
15612 t delim
15613 ' <conf$$subs.awk | sed '
15614 /^[^""]/{
15615 N
15616 s/\n//
15617 }
15618 ' >>$CONFIG_STATUS || ac_write_fail=1
15619 rm -f conf$$subs.awk
15620 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15621 _ACAWK
15622 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
15623 for (key in S) S_is_set[key] = 1
15624 FS = "\a"
15625
15626 }
15627 {
15628 line = $ 0
15629 nfields = split(line, field, "@")
15630 substed = 0
15631 len = length(field[1])
15632 for (i = 2; i < nfields; i++) {
15633 key = field[i]
15634 keylen = length(key)
15635 if (S_is_set[key]) {
15636 value = S[key]
15637 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
15638 len += length(value) + length(field[++i])
15639 substed = 1
15640 } else
15641 len += 1 + keylen
15642 }
15643
15644 print line
15645 }
15646
15647 _ACAWK
15648 _ACEOF
15649 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15650 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
15651 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
15652 else
15653 cat
15654 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
15655 || as_fn_error "could not setup config files machinery" "$LINENO" 5
15656 _ACEOF
15657
15658 # VPATH may cause trouble with some makes, so we remove $(srcdir),
15659 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
15660 # trailing colons and then remove the whole line if VPATH becomes empty
15661 # (actually we leave an empty line to preserve line numbers).
15662 if test "x$srcdir" = x.; then
15663 ac_vpsub='/^[ ]*VPATH[ ]*=/{
15664 s/:*\$(srcdir):*/:/
15665 s/:*\${srcdir}:*/:/
15666 s/:*@srcdir@:*/:/
15667 s/^\([^=]*=[ ]*\):*/\1/
15668 s/:*$//
15669 s/^[^=]*=[ ]*$//
15670 }'
15671 fi
15672
15673 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15674 fi # test -n "$CONFIG_FILES"
15675
15676 # Set up the scripts for CONFIG_HEADERS section.
15677 # No need to generate them if there are no CONFIG_HEADERS.
15678 # This happens for instance with `./config.status Makefile'.
15679 if test -n "$CONFIG_HEADERS"; then
15680 cat >"$tmp/defines.awk" <<\_ACAWK ||
15681 BEGIN {
15682 _ACEOF
15683
15684 # Transform confdefs.h into an awk script `defines.awk', embedded as
15685 # here-document in config.status, that substitutes the proper values into
15686 # config.h.in to produce config.h.
15687
15688 # Create a delimiter string that does not exist in confdefs.h, to ease
15689 # handling of long lines.
15690 ac_delim='%!_!# '
15691 for ac_last_try in false false :; do
15692 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
15693 if test -z "$ac_t"; then
15694 break
15695 elif $ac_last_try; then
15696 as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
15697 else
15698 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
15699 fi
15700 done
15701
15702 # For the awk script, D is an array of macro values keyed by name,
15703 # likewise P contains macro parameters if any. Preserve backslash
15704 # newline sequences.
15705
15706 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
15707 sed -n '
15708 s/.\{148\}/&'"$ac_delim"'/g
15709 t rset
15710 :rset
15711 s/^[ ]*#[ ]*define[ ][ ]*/ /
15712 t def
15713 d
15714 :def
15715 s/\\$//
15716 t bsnl
15717 s/["\\]/\\&/g
15718 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
15719 D["\1"]=" \3"/p
15720 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
15721 d
15722 :bsnl
15723 s/["\\]/\\&/g
15724 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
15725 D["\1"]=" \3\\\\\\n"\\/p
15726 t cont
15727 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
15728 t cont
15729 d
15730 :cont
15731 n
15732 s/.\{148\}/&'"$ac_delim"'/g
15733 t clear
15734 :clear
15735 s/\\$//
15736 t bsnlc
15737 s/["\\]/\\&/g; s/^/"/; s/$/"/p
15738 d
15739 :bsnlc
15740 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
15741 b cont
15742 ' <confdefs.h | sed '
15743 s/'"$ac_delim"'/"\\\
15744 "/g' >>$CONFIG_STATUS || ac_write_fail=1
15745
15746 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15747 for (key in D) D_is_set[key] = 1
15748 FS = "\a"
15749 }
15750 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
15751 line = \$ 0
15752 split(line, arg, " ")
15753 if (arg[1] == "#") {
15754 defundef = arg[2]
15755 mac1 = arg[3]
15756 } else {
15757 defundef = substr(arg[1], 2)
15758 mac1 = arg[2]
15759 }
15760 split(mac1, mac2, "(") #)
15761 macro = mac2[1]
15762 prefix = substr(line, 1, index(line, defundef) - 1)
15763 if (D_is_set[macro]) {
15764 # Preserve the white space surrounding the "#".
15765 print prefix "define", macro P[macro] D[macro]
15766 next
15767 } else {
15768 # Replace #undef with comments. This is necessary, for example,
15769 # in the case of _POSIX_SOURCE, which is predefined and required
15770 # on some systems where configure will not decide to define it.
15771 if (defundef == "undef") {
15772 print "/*", prefix defundef, macro, "*/"
15773 next
15774 }
15775 }
15776 }
15777 { print }
15778 _ACAWK
15779 _ACEOF
15780 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15781 as_fn_error "could not setup config headers machinery" "$LINENO" 5
15782 fi # test -n "$CONFIG_HEADERS"
15783
15784
15785 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
15786 shift
15787 for ac_tag
15788 do
15789 case $ac_tag in
15790 :[FHLC]) ac_mode=$ac_tag; continue;;
15791 esac
15792 case $ac_mode$ac_tag in
15793 :[FHL]*:*);;
15794 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
15795 :[FH]-) ac_tag=-:-;;
15796 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
15797 esac
15798 ac_save_IFS=$IFS
15799 IFS=:
15800 set x $ac_tag
15801 IFS=$ac_save_IFS
15802 shift
15803 ac_file=$1
15804 shift
15805
15806 case $ac_mode in
15807 :L) ac_source=$1;;
15808 :[FH])
15809 ac_file_inputs=
15810 for ac_f
15811 do
15812 case $ac_f in
15813 -) ac_f="$tmp/stdin";;
15814 *) # Look for the file first in the build tree, then in the source tree
15815 # (if the path is not absolute). The absolute path cannot be DOS-style,
15816 # because $ac_f cannot contain `:'.
15817 test -f "$ac_f" ||
15818 case $ac_f in
15819 [\\/$]*) false;;
15820 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
15821 esac ||
15822 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
15823 esac
15824 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
15825 as_fn_append ac_file_inputs " '$ac_f'"
15826 done
15827
15828 # Let's still pretend it is `configure' which instantiates (i.e., don't
15829 # use $as_me), people would be surprised to read:
15830 # /* config.h. Generated by config.status. */
15831 configure_input='Generated from '`
15832 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
15833 `' by configure.'
15834 if test x"$ac_file" != x-; then
15835 configure_input="$ac_file. $configure_input"
15836 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
15837 $as_echo "$as_me: creating $ac_file" >&6;}
15838 fi
15839 # Neutralize special characters interpreted by sed in replacement strings.
15840 case $configure_input in #(
15841 *\&* | *\|* | *\\* )
15842 ac_sed_conf_input=`$as_echo "$configure_input" |
15843 sed 's/[\\\\&|]/\\\\&/g'`;; #(
15844 *) ac_sed_conf_input=$configure_input;;
15845 esac
15846
15847 case $ac_tag in
15848 *:-:* | *:-) cat >"$tmp/stdin" \
15849 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
15850 esac
15851 ;;
15852 esac
15853
15854 ac_dir=`$as_dirname -- "$ac_file" ||
15855 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15856 X"$ac_file" : 'X\(//\)[^/]' \| \
15857 X"$ac_file" : 'X\(//\)$' \| \
15858 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
15859 $as_echo X"$ac_file" |
15860 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15861 s//\1/
15862 q
15863 }
15864 /^X\(\/\/\)[^/].*/{
15865 s//\1/
15866 q
15867 }
15868 /^X\(\/\/\)$/{
15869 s//\1/
15870 q
15871 }
15872 /^X\(\/\).*/{
15873 s//\1/
15874 q
15875 }
15876 s/.*/./; q'`
15877 as_dir="$ac_dir"; as_fn_mkdir_p
15878 ac_builddir=.
15879
15880 case "$ac_dir" in
15881 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
15882 *)
15883 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
15884 # A ".." for each directory in $ac_dir_suffix.
15885 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
15886 case $ac_top_builddir_sub in
15887 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
15888 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
15889 esac ;;
15890 esac
15891 ac_abs_top_builddir=$ac_pwd
15892 ac_abs_builddir=$ac_pwd$ac_dir_suffix
15893 # for backward compatibility:
15894 ac_top_builddir=$ac_top_build_prefix
15895
15896 case $srcdir in
15897 .) # We are building in place.
15898 ac_srcdir=.
15899 ac_top_srcdir=$ac_top_builddir_sub
15900 ac_abs_top_srcdir=$ac_pwd ;;
15901 [\\/]* | ?:[\\/]* ) # Absolute name.
15902 ac_srcdir=$srcdir$ac_dir_suffix;
15903 ac_top_srcdir=$srcdir
15904 ac_abs_top_srcdir=$srcdir ;;
15905 *) # Relative name.
15906 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
15907 ac_top_srcdir=$ac_top_build_prefix$srcdir
15908 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
15909 esac
15910 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
15911
15912
15913 case $ac_mode in
15914 :F)
15915 #
15916 # CONFIG_FILE
15917 #
15918
15919 case $INSTALL in
15920 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
15921 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
15922 esac
15923 ac_MKDIR_P=$MKDIR_P
15924 case $MKDIR_P in
15925 [\\/$]* | ?:[\\/]* ) ;;
15926 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
15927 esac
15928 _ACEOF
15929
15930 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15931 # If the template does not know about datarootdir, expand it.
15932 # FIXME: This hack should be removed a few years after 2.60.
15933 ac_datarootdir_hack=; ac_datarootdir_seen=
15934 ac_sed_dataroot='
15935 /datarootdir/ {
15936 p
15937 q
15938 }
15939 /@datadir@/p
15940 /@docdir@/p
15941 /@infodir@/p
15942 /@localedir@/p
15943 /@mandir@/p'
15944 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
15945 *datarootdir*) ac_datarootdir_seen=yes;;
15946 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
15947 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
15948 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
15949 _ACEOF
15950 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15951 ac_datarootdir_hack='
15952 s&@datadir@&$datadir&g
15953 s&@docdir@&$docdir&g
15954 s&@infodir@&$infodir&g
15955 s&@localedir@&$localedir&g
15956 s&@mandir@&$mandir&g
15957 s&\\\${datarootdir}&$datarootdir&g' ;;
15958 esac
15959 _ACEOF
15960
15961 # Neutralize VPATH when `$srcdir' = `.'.
15962 # Shell code in configure.ac might set extrasub.
15963 # FIXME: do we really want to maintain this feature?
15964 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15965 ac_sed_extra="$ac_vpsub
15966 $extrasub
15967 _ACEOF
15968 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15969 :t
15970 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
15971 s|@configure_input@|$ac_sed_conf_input|;t t
15972 s&@top_builddir@&$ac_top_builddir_sub&;t t
15973 s&@top_build_prefix@&$ac_top_build_prefix&;t t
15974 s&@srcdir@&$ac_srcdir&;t t
15975 s&@abs_srcdir@&$ac_abs_srcdir&;t t
15976 s&@top_srcdir@&$ac_top_srcdir&;t t
15977 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
15978 s&@builddir@&$ac_builddir&;t t
15979 s&@abs_builddir@&$ac_abs_builddir&;t t
15980 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
15981 s&@INSTALL@&$ac_INSTALL&;t t
15982 s&@MKDIR_P@&$ac_MKDIR_P&;t t
15983 $ac_datarootdir_hack
15984 "
15985 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
15986 || as_fn_error "could not create $ac_file" "$LINENO" 5
15987
15988 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
15989 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
15990 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
15991 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
15992 which seems to be undefined. Please make sure it is defined." >&5
15993 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
15994 which seems to be undefined. Please make sure it is defined." >&2;}
15995
15996 rm -f "$tmp/stdin"
15997 case $ac_file in
15998 -) cat "$tmp/out" && rm -f "$tmp/out";;
15999 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
16000 esac \
16001 || as_fn_error "could not create $ac_file" "$LINENO" 5
16002 ;;
16003 :H)
16004 #
16005 # CONFIG_HEADER
16006 #
16007 if test x"$ac_file" != x-; then
16008 {
16009 $as_echo "/* $configure_input */" \
16010 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
16011 } >"$tmp/config.h" \
16012 || as_fn_error "could not create $ac_file" "$LINENO" 5
16013 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
16014 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
16015 $as_echo "$as_me: $ac_file is unchanged" >&6;}
16016 else
16017 rm -f "$ac_file"
16018 mv "$tmp/config.h" "$ac_file" \
16019 || as_fn_error "could not create $ac_file" "$LINENO" 5
16020 fi
16021 else
16022 $as_echo "/* $configure_input */" \
16023 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
16024 || as_fn_error "could not create -" "$LINENO" 5
16025 fi
16026 # Compute "$ac_file"'s index in $config_headers.
16027 _am_arg="$ac_file"
16028 _am_stamp_count=1
16029 for _am_header in $config_headers :; do
16030 case $_am_header in
16031 $_am_arg | $_am_arg:* )
16032 break ;;
16033 * )
16034 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
16035 esac
16036 done
16037 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
16038 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16039 X"$_am_arg" : 'X\(//\)[^/]' \| \
16040 X"$_am_arg" : 'X\(//\)$' \| \
16041 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
16042 $as_echo X"$_am_arg" |
16043 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16044 s//\1/
16045 q
16046 }
16047 /^X\(\/\/\)[^/].*/{
16048 s//\1/
16049 q
16050 }
16051 /^X\(\/\/\)$/{
16052 s//\1/
16053 q
16054 }
16055 /^X\(\/\).*/{
16056 s//\1/
16057 q
16058 }
16059 s/.*/./; q'`/stamp-h$_am_stamp_count
16060 ;;
16061
16062 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
16063 $as_echo "$as_me: executing $ac_file commands" >&6;}
16064 ;;
16065 esac
16066
16067
16068 case $ac_file$ac_mode in
16069 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
16070 # Autoconf 2.62 quotes --file arguments for eval, but not when files
16071 # are listed without --file. Let's play safe and only enable the eval
16072 # if we detect the quoting.
16073 case $CONFIG_FILES in
16074 *\'*) eval set x "$CONFIG_FILES" ;;
16075 *) set x $CONFIG_FILES ;;
16076 esac
16077 shift
16078 for mf
16079 do
16080 # Strip MF so we end up with the name of the file.
16081 mf=`echo "$mf" | sed -e 's/:.*$//'`
16082 # Check whether this is an Automake generated Makefile or not.
16083 # We used to match only the files named `Makefile.in', but
16084 # some people rename them; so instead we look at the file content.
16085 # Grep'ing the first line is not enough: some people post-process
16086 # each Makefile.in and add a new line on top of each file to say so.
16087 # Grep'ing the whole file is not good either: AIX grep has a line
16088 # limit of 2048, but all sed's we know have understand at least 4000.
16089 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
16090 dirpart=`$as_dirname -- "$mf" ||
16091 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16092 X"$mf" : 'X\(//\)[^/]' \| \
16093 X"$mf" : 'X\(//\)$' \| \
16094 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
16095 $as_echo X"$mf" |
16096 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16097 s//\1/
16098 q
16099 }
16100 /^X\(\/\/\)[^/].*/{
16101 s//\1/
16102 q
16103 }
16104 /^X\(\/\/\)$/{
16105 s//\1/
16106 q
16107 }
16108 /^X\(\/\).*/{
16109 s//\1/
16110 q
16111 }
16112 s/.*/./; q'`
16113 else
16114 continue
16115 fi
16116 # Extract the definition of DEPDIR, am__include, and am__quote
16117 # from the Makefile without running `make'.
16118 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
16119 test -z "$DEPDIR" && continue
16120 am__include=`sed -n 's/^am__include = //p' < "$mf"`
16121 test -z "am__include" && continue
16122 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
16123 # When using ansi2knr, U may be empty or an underscore; expand it
16124 U=`sed -n 's/^U = //p' < "$mf"`
16125 # Find all dependency output files, they are included files with
16126 # $(DEPDIR) in their names. We invoke sed twice because it is the
16127 # simplest approach to changing $(DEPDIR) to its actual value in the
16128 # expansion.
16129 for file in `sed -n "
16130 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
16131 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
16132 # Make sure the directory exists.
16133 test -f "$dirpart/$file" && continue
16134 fdir=`$as_dirname -- "$file" ||
16135 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16136 X"$file" : 'X\(//\)[^/]' \| \
16137 X"$file" : 'X\(//\)$' \| \
16138 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
16139 $as_echo X"$file" |
16140 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16141 s//\1/
16142 q
16143 }
16144 /^X\(\/\/\)[^/].*/{
16145 s//\1/
16146 q
16147 }
16148 /^X\(\/\/\)$/{
16149 s//\1/
16150 q
16151 }
16152 /^X\(\/\).*/{
16153 s//\1/
16154 q
16155 }
16156 s/.*/./; q'`
16157 as_dir=$dirpart/$fdir; as_fn_mkdir_p
16158 # echo "creating $dirpart/$file"
16159 echo '# dummy' > "$dirpart/$file"
16160 done
16161 done
16162 }
16163 ;;
16164 "libtool":C)
16165
16166 # See if we are running on zsh, and set the options which allow our
16167 # commands through without removal of \ escapes.
16168 if test -n "${ZSH_VERSION+set}" ; then
16169 setopt NO_GLOB_SUBST
16170 fi
16171
16172 cfgfile="${ofile}T"
16173 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
16174 $RM "$cfgfile"
16175
16176 cat <<_LT_EOF >> "$cfgfile"
16177 #! $SHELL
16178
16179 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
16180 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
16181 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
16182 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
16183 #
16184 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
16185 # 2006, 2007, 2008, 2009 Free Software Foundation, Inc.
16186 # Written by Gordon Matzigkeit, 1996
16187 #
16188 # This file is part of GNU Libtool.
16189 #
16190 # GNU Libtool is free software; you can redistribute it and/or
16191 # modify it under the terms of the GNU General Public License as
16192 # published by the Free Software Foundation; either version 2 of
16193 # the License, or (at your option) any later version.
16194 #
16195 # As a special exception to the GNU General Public License,
16196 # if you distribute this file as part of a program or library that
16197 # is built using GNU Libtool, you may include this file under the
16198 # same distribution terms that you use for the rest of that program.
16199 #
16200 # GNU Libtool is distributed in the hope that it will be useful,
16201 # but WITHOUT ANY WARRANTY; without even the implied warranty of
16202 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16203 # GNU General Public License for more details.
16204 #
16205 # You should have received a copy of the GNU General Public License
16206 # along with GNU Libtool; see the file COPYING. If not, a copy
16207 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
16208 # obtained by writing to the Free Software Foundation, Inc.,
16209 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
16210
16211
16212 # The names of the tagged configurations supported by this script.
16213 available_tags=""
16214
16215 # ### BEGIN LIBTOOL CONFIG
16216
16217 # Which release of libtool.m4 was used?
16218 macro_version=$macro_version
16219 macro_revision=$macro_revision
16220
16221 # Whether or not to build shared libraries.
16222 build_libtool_libs=$enable_shared
16223
16224 # Whether or not to build static libraries.
16225 build_old_libs=$enable_static
16226
16227 # What type of objects to build.
16228 pic_mode=$pic_mode
16229
16230 # Whether or not to optimize for fast installation.
16231 fast_install=$enable_fast_install
16232
16233 # Shell to use when invoking shell scripts.
16234 SHELL=$lt_SHELL
16235
16236 # An echo program that protects backslashes.
16237 ECHO=$lt_ECHO
16238
16239 # The host system.
16240 host_alias=$host_alias
16241 host=$host
16242 host_os=$host_os
16243
16244 # The build system.
16245 build_alias=$build_alias
16246 build=$build
16247 build_os=$build_os
16248
16249 # A sed program that does not truncate output.
16250 SED=$lt_SED
16251
16252 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
16253 Xsed="\$SED -e 1s/^X//"
16254
16255 # A grep program that handles long lines.
16256 GREP=$lt_GREP
16257
16258 # An ERE matcher.
16259 EGREP=$lt_EGREP
16260
16261 # A literal string matcher.
16262 FGREP=$lt_FGREP
16263
16264 # A BSD- or MS-compatible name lister.
16265 NM=$lt_NM
16266
16267 # Whether we need soft or hard links.
16268 LN_S=$lt_LN_S
16269
16270 # What is the maximum length of a command?
16271 max_cmd_len=$max_cmd_len
16272
16273 # Object file suffix (normally "o").
16274 objext=$ac_objext
16275
16276 # Executable file suffix (normally "").
16277 exeext=$exeext
16278
16279 # whether the shell understands "unset".
16280 lt_unset=$lt_unset
16281
16282 # turn spaces into newlines.
16283 SP2NL=$lt_lt_SP2NL
16284
16285 # turn newlines into spaces.
16286 NL2SP=$lt_lt_NL2SP
16287
16288 # An object symbol dumper.
16289 OBJDUMP=$lt_OBJDUMP
16290
16291 # Method to check whether dependent libraries are shared objects.
16292 deplibs_check_method=$lt_deplibs_check_method
16293
16294 # Command to use when deplibs_check_method == "file_magic".
16295 file_magic_cmd=$lt_file_magic_cmd
16296
16297 # The archiver.
16298 AR=$lt_AR
16299 AR_FLAGS=$lt_AR_FLAGS
16300
16301 # A symbol stripping program.
16302 STRIP=$lt_STRIP
16303
16304 # Commands used to install an old-style archive.
16305 RANLIB=$lt_RANLIB
16306 old_postinstall_cmds=$lt_old_postinstall_cmds
16307 old_postuninstall_cmds=$lt_old_postuninstall_cmds
16308
16309 # Whether to use a lock for old archive extraction.
16310 lock_old_archive_extraction=$lock_old_archive_extraction
16311
16312 # A C compiler.
16313 LTCC=$lt_CC
16314
16315 # LTCC compiler flags.
16316 LTCFLAGS=$lt_CFLAGS
16317
16318 # Take the output of nm and produce a listing of raw symbols and C names.
16319 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
16320
16321 # Transform the output of nm in a proper C declaration.
16322 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
16323
16324 # Transform the output of nm in a C name address pair.
16325 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
16326
16327 # Transform the output of nm in a C name address pair when lib prefix is needed.
16328 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
16329
16330 # The name of the directory that contains temporary libtool files.
16331 objdir=$objdir
16332
16333 # Used to examine libraries when file_magic_cmd begins with "file".
16334 MAGIC_CMD=$MAGIC_CMD
16335
16336 # Must we lock files when doing compilation?
16337 need_locks=$lt_need_locks
16338
16339 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
16340 DSYMUTIL=$lt_DSYMUTIL
16341
16342 # Tool to change global to local symbols on Mac OS X.
16343 NMEDIT=$lt_NMEDIT
16344
16345 # Tool to manipulate fat objects and archives on Mac OS X.
16346 LIPO=$lt_LIPO
16347
16348 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
16349 OTOOL=$lt_OTOOL
16350
16351 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
16352 OTOOL64=$lt_OTOOL64
16353
16354 # Old archive suffix (normally "a").
16355 libext=$libext
16356
16357 # Shared library suffix (normally ".so").
16358 shrext_cmds=$lt_shrext_cmds
16359
16360 # The commands to extract the exported symbol list from a shared archive.
16361 extract_expsyms_cmds=$lt_extract_expsyms_cmds
16362
16363 # Variables whose values should be saved in libtool wrapper scripts and
16364 # restored at link time.
16365 variables_saved_for_relink=$lt_variables_saved_for_relink
16366
16367 # Do we need the "lib" prefix for modules?
16368 need_lib_prefix=$need_lib_prefix
16369
16370 # Do we need a version for libraries?
16371 need_version=$need_version
16372
16373 # Library versioning type.
16374 version_type=$version_type
16375
16376 # Shared library runtime path variable.
16377 runpath_var=$runpath_var
16378
16379 # Shared library path variable.
16380 shlibpath_var=$shlibpath_var
16381
16382 # Is shlibpath searched before the hard-coded library search path?
16383 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
16384
16385 # Format of library name prefix.
16386 libname_spec=$lt_libname_spec
16387
16388 # List of archive names. First name is the real one, the rest are links.
16389 # The last name is the one that the linker finds with -lNAME
16390 library_names_spec=$lt_library_names_spec
16391
16392 # The coded name of the library, if different from the real name.
16393 soname_spec=$lt_soname_spec
16394
16395 # Permission mode override for installation of shared libraries.
16396 install_override_mode=$lt_install_override_mode
16397
16398 # Command to use after installation of a shared archive.
16399 postinstall_cmds=$lt_postinstall_cmds
16400
16401 # Command to use after uninstallation of a shared archive.
16402 postuninstall_cmds=$lt_postuninstall_cmds
16403
16404 # Commands used to finish a libtool library installation in a directory.
16405 finish_cmds=$lt_finish_cmds
16406
16407 # As "finish_cmds", except a single script fragment to be evaled but
16408 # not shown.
16409 finish_eval=$lt_finish_eval
16410
16411 # Whether we should hardcode library paths into libraries.
16412 hardcode_into_libs=$hardcode_into_libs
16413
16414 # Compile-time system search path for libraries.
16415 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
16416
16417 # Run-time system search path for libraries.
16418 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
16419
16420 # Whether dlopen is supported.
16421 dlopen_support=$enable_dlopen
16422
16423 # Whether dlopen of programs is supported.
16424 dlopen_self=$enable_dlopen_self
16425
16426 # Whether dlopen of statically linked programs is supported.
16427 dlopen_self_static=$enable_dlopen_self_static
16428
16429 # Commands to strip libraries.
16430 old_striplib=$lt_old_striplib
16431 striplib=$lt_striplib
16432
16433
16434 # The linker used to build libraries.
16435 LD=$lt_LD
16436
16437 # How to create reloadable object files.
16438 reload_flag=$lt_reload_flag
16439 reload_cmds=$lt_reload_cmds
16440
16441 # Commands used to build an old-style archive.
16442 old_archive_cmds=$lt_old_archive_cmds
16443
16444 # A language specific compiler.
16445 CC=$lt_compiler
16446
16447 # Is the compiler the GNU compiler?
16448 with_gcc=$GCC
16449
16450 # Compiler flag to turn off builtin functions.
16451 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
16452
16453 # How to pass a linker flag through the compiler.
16454 wl=$lt_lt_prog_compiler_wl
16455
16456 # Additional compiler flags for building library objects.
16457 pic_flag=$lt_lt_prog_compiler_pic
16458
16459 # Compiler flag to prevent dynamic linking.
16460 link_static_flag=$lt_lt_prog_compiler_static
16461
16462 # Does compiler simultaneously support -c and -o options?
16463 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
16464
16465 # Whether or not to add -lc for building shared libraries.
16466 build_libtool_need_lc=$archive_cmds_need_lc
16467
16468 # Whether or not to disallow shared libs when runtime libs are static.
16469 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
16470
16471 # Compiler flag to allow reflexive dlopens.
16472 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
16473
16474 # Compiler flag to generate shared objects directly from archives.
16475 whole_archive_flag_spec=$lt_whole_archive_flag_spec
16476
16477 # Whether the compiler copes with passing no objects directly.
16478 compiler_needs_object=$lt_compiler_needs_object
16479
16480 # Create an old-style archive from a shared archive.
16481 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
16482
16483 # Create a temporary old-style archive to link instead of a shared archive.
16484 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
16485
16486 # Commands used to build a shared archive.
16487 archive_cmds=$lt_archive_cmds
16488 archive_expsym_cmds=$lt_archive_expsym_cmds
16489
16490 # Commands used to build a loadable module if different from building
16491 # a shared archive.
16492 module_cmds=$lt_module_cmds
16493 module_expsym_cmds=$lt_module_expsym_cmds
16494
16495 # Whether we are building with GNU ld or not.
16496 with_gnu_ld=$lt_with_gnu_ld
16497
16498 # Flag that allows shared libraries with undefined symbols to be built.
16499 allow_undefined_flag=$lt_allow_undefined_flag
16500
16501 # Flag that enforces no undefined symbols.
16502 no_undefined_flag=$lt_no_undefined_flag
16503
16504 # Flag to hardcode \$libdir into a binary during linking.
16505 # This must work even if \$libdir does not exist
16506 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
16507
16508 # If ld is used when linking, flag to hardcode \$libdir into a binary
16509 # during linking. This must work even if \$libdir does not exist.
16510 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
16511
16512 # Whether we need a single "-rpath" flag with a separated argument.
16513 hardcode_libdir_separator=$lt_hardcode_libdir_separator
16514
16515 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
16516 # DIR into the resulting binary.
16517 hardcode_direct=$hardcode_direct
16518
16519 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
16520 # DIR into the resulting binary and the resulting library dependency is
16521 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
16522 # library is relocated.
16523 hardcode_direct_absolute=$hardcode_direct_absolute
16524
16525 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
16526 # into the resulting binary.
16527 hardcode_minus_L=$hardcode_minus_L
16528
16529 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
16530 # into the resulting binary.
16531 hardcode_shlibpath_var=$hardcode_shlibpath_var
16532
16533 # Set to "yes" if building a shared library automatically hardcodes DIR
16534 # into the library and all subsequent libraries and executables linked
16535 # against it.
16536 hardcode_automatic=$hardcode_automatic
16537
16538 # Set to yes if linker adds runtime paths of dependent libraries
16539 # to runtime path list.
16540 inherit_rpath=$inherit_rpath
16541
16542 # Whether libtool must link a program against all its dependency libraries.
16543 link_all_deplibs=$link_all_deplibs
16544
16545 # Fix the shell variable \$srcfile for the compiler.
16546 fix_srcfile_path=$lt_fix_srcfile_path
16547
16548 # Set to "yes" if exported symbols are required.
16549 always_export_symbols=$always_export_symbols
16550
16551 # The commands to list exported symbols.
16552 export_symbols_cmds=$lt_export_symbols_cmds
16553
16554 # Symbols that should not be listed in the preloaded symbols.
16555 exclude_expsyms=$lt_exclude_expsyms
16556
16557 # Symbols that must always be exported.
16558 include_expsyms=$lt_include_expsyms
16559
16560 # Commands necessary for linking programs (against libraries) with templates.
16561 prelink_cmds=$lt_prelink_cmds
16562
16563 # Specify filename containing input files.
16564 file_list_spec=$lt_file_list_spec
16565
16566 # How to hardcode a shared library path into an executable.
16567 hardcode_action=$hardcode_action
16568
16569 # ### END LIBTOOL CONFIG
16570
16571 _LT_EOF
16572
16573 case $host_os in
16574 aix3*)
16575 cat <<\_LT_EOF >> "$cfgfile"
16576 # AIX sometimes has problems with the GCC collect2 program. For some
16577 # reason, if we set the COLLECT_NAMES environment variable, the problems
16578 # vanish in a puff of smoke.
16579 if test "X${COLLECT_NAMES+set}" != Xset; then
16580 COLLECT_NAMES=
16581 export COLLECT_NAMES
16582 fi
16583 _LT_EOF
16584 ;;
16585 esac
16586
16587
16588 ltmain="$ac_aux_dir/ltmain.sh"
16589
16590
16591 # We use sed instead of cat because bash on DJGPP gets confused if
16592 # if finds mixed CR/LF and LF-only lines. Since sed operates in
16593 # text mode, it properly converts lines to CR/LF. This bash problem
16594 # is reportedly fixed, but why not run on old versions too?
16595 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
16596 || (rm -f "$cfgfile"; exit 1)
16597
16598 case $xsi_shell in
16599 yes)
16600 cat << \_LT_EOF >> "$cfgfile"
16601
16602 # func_dirname file append nondir_replacement
16603 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
16604 # otherwise set result to NONDIR_REPLACEMENT.
16605 func_dirname ()
16606 {
16607 case ${1} in
16608 */*) func_dirname_result="${1%/*}${2}" ;;
16609 * ) func_dirname_result="${3}" ;;
16610 esac
16611 }
16612
16613 # func_basename file
16614 func_basename ()
16615 {
16616 func_basename_result="${1##*/}"
16617 }
16618
16619 # func_dirname_and_basename file append nondir_replacement
16620 # perform func_basename and func_dirname in a single function
16621 # call:
16622 # dirname: Compute the dirname of FILE. If nonempty,
16623 # add APPEND to the result, otherwise set result
16624 # to NONDIR_REPLACEMENT.
16625 # value returned in "$func_dirname_result"
16626 # basename: Compute filename of FILE.
16627 # value retuned in "$func_basename_result"
16628 # Implementation must be kept synchronized with func_dirname
16629 # and func_basename. For efficiency, we do not delegate to
16630 # those functions but instead duplicate the functionality here.
16631 func_dirname_and_basename ()
16632 {
16633 case ${1} in
16634 */*) func_dirname_result="${1%/*}${2}" ;;
16635 * ) func_dirname_result="${3}" ;;
16636 esac
16637 func_basename_result="${1##*/}"
16638 }
16639
16640 # func_stripname prefix suffix name
16641 # strip PREFIX and SUFFIX off of NAME.
16642 # PREFIX and SUFFIX must not contain globbing or regex special
16643 # characters, hashes, percent signs, but SUFFIX may contain a leading
16644 # dot (in which case that matches only a dot).
16645 func_stripname ()
16646 {
16647 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
16648 # positional parameters, so assign one to ordinary parameter first.
16649 func_stripname_result=${3}
16650 func_stripname_result=${func_stripname_result#"${1}"}
16651 func_stripname_result=${func_stripname_result%"${2}"}
16652 }
16653
16654 # func_opt_split
16655 func_opt_split ()
16656 {
16657 func_opt_split_opt=${1%%=*}
16658 func_opt_split_arg=${1#*=}
16659 }
16660
16661 # func_lo2o object
16662 func_lo2o ()
16663 {
16664 case ${1} in
16665 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
16666 *) func_lo2o_result=${1} ;;
16667 esac
16668 }
16669
16670 # func_xform libobj-or-source
16671 func_xform ()
16672 {
16673 func_xform_result=${1%.*}.lo
16674 }
16675
16676 # func_arith arithmetic-term...
16677 func_arith ()
16678 {
16679 func_arith_result=$(( $* ))
16680 }
16681
16682 # func_len string
16683 # STRING may not start with a hyphen.
16684 func_len ()
16685 {
16686 func_len_result=${#1}
16687 }
16688
16689 _LT_EOF
16690 ;;
16691 *) # Bourne compatible functions.
16692 cat << \_LT_EOF >> "$cfgfile"
16693
16694 # func_dirname file append nondir_replacement
16695 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
16696 # otherwise set result to NONDIR_REPLACEMENT.
16697 func_dirname ()
16698 {
16699 # Extract subdirectory from the argument.
16700 func_dirname_result=`$ECHO "${1}" | $SED "$dirname"`
16701 if test "X$func_dirname_result" = "X${1}"; then
16702 func_dirname_result="${3}"
16703 else
16704 func_dirname_result="$func_dirname_result${2}"
16705 fi
16706 }
16707
16708 # func_basename file
16709 func_basename ()
16710 {
16711 func_basename_result=`$ECHO "${1}" | $SED "$basename"`
16712 }
16713
16714
16715 # func_stripname prefix suffix name
16716 # strip PREFIX and SUFFIX off of NAME.
16717 # PREFIX and SUFFIX must not contain globbing or regex special
16718 # characters, hashes, percent signs, but SUFFIX may contain a leading
16719 # dot (in which case that matches only a dot).
16720 # func_strip_suffix prefix name
16721 func_stripname ()
16722 {
16723 case ${2} in
16724 .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
16725 *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
16726 esac
16727 }
16728
16729 # sed scripts:
16730 my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
16731 my_sed_long_arg='1s/^-[^=]*=//'
16732
16733 # func_opt_split
16734 func_opt_split ()
16735 {
16736 func_opt_split_opt=`$ECHO "${1}" | $SED "$my_sed_long_opt"`
16737 func_opt_split_arg=`$ECHO "${1}" | $SED "$my_sed_long_arg"`
16738 }
16739
16740 # func_lo2o object
16741 func_lo2o ()
16742 {
16743 func_lo2o_result=`$ECHO "${1}" | $SED "$lo2o"`
16744 }
16745
16746 # func_xform libobj-or-source
16747 func_xform ()
16748 {
16749 func_xform_result=`$ECHO "${1}" | $SED 's/\.[^.]*$/.lo/'`
16750 }
16751
16752 # func_arith arithmetic-term...
16753 func_arith ()
16754 {
16755 func_arith_result=`expr "$@"`
16756 }
16757
16758 # func_len string
16759 # STRING may not start with a hyphen.
16760 func_len ()
16761 {
16762 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
16763 }
16764
16765 _LT_EOF
16766 esac
16767
16768 case $lt_shell_append in
16769 yes)
16770 cat << \_LT_EOF >> "$cfgfile"
16771
16772 # func_append var value
16773 # Append VALUE to the end of shell variable VAR.
16774 func_append ()
16775 {
16776 eval "$1+=\$2"
16777 }
16778 _LT_EOF
16779 ;;
16780 *)
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=\$$1\$2"
16788 }
16789
16790 _LT_EOF
16791 ;;
16792 esac
16793
16794
16795 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
16796 || (rm -f "$cfgfile"; exit 1)
16797
16798 mv -f "$cfgfile" "$ofile" ||
16799 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
16800 chmod +x "$ofile"
16801
16802 ;;
16803 "default-1":C)
16804 for ac_file in $CONFIG_FILES; do
16805 # Support "outfile[:infile[:infile...]]"
16806 case "$ac_file" in
16807 *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
16808 esac
16809 # PO directories have a Makefile.in generated from Makefile.in.in.
16810 case "$ac_file" in */Makefile.in)
16811 # Adjust a relative srcdir.
16812 ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
16813 ac_dir_suffix=/`echo "$ac_dir"|sed 's%^\./%%'`
16814 ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
16815 # In autoconf-2.13 it is called $ac_given_srcdir.
16816 # In autoconf-2.50 it is called $srcdir.
16817 test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
16818 case "$ac_given_srcdir" in
16819 .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
16820 /*) top_srcdir="$ac_given_srcdir" ;;
16821 *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
16822 esac
16823 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
16824 rm -f "$ac_dir/POTFILES"
16825 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
16826 cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
16827 POMAKEFILEDEPS="POTFILES.in"
16828 # ALL_LINGUAS, POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES depend
16829 # on $ac_dir but don't depend on user-specified configuration
16830 # parameters.
16831 if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
16832 # The LINGUAS file contains the set of available languages.
16833 if test -n "$OBSOLETE_ALL_LINGUAS"; then
16834 test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.ac is obsolete" || echo "setting ALL_LINGUAS in configure.ac is obsolete"
16835 fi
16836 ALL_LINGUAS_=`sed -e "/^#/d" "$ac_given_srcdir/$ac_dir/LINGUAS"`
16837 # Hide the ALL_LINGUAS assigment from automake.
16838 eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
16839 POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
16840 else
16841 # The set of available languages was given in configure.ac.
16842 eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
16843 fi
16844 case "$ac_given_srcdir" in
16845 .) srcdirpre= ;;
16846 *) srcdirpre='$(srcdir)/' ;;
16847 esac
16848 POFILES=
16849 GMOFILES=
16850 UPDATEPOFILES=
16851 DUMMYPOFILES=
16852 for lang in $ALL_LINGUAS; do
16853 POFILES="$POFILES $srcdirpre$lang.po"
16854 GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
16855 UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
16856 DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
16857 done
16858 # CATALOGS depends on both $ac_dir and the user's LINGUAS
16859 # environment variable.
16860 INST_LINGUAS=
16861 if test -n "$ALL_LINGUAS"; then
16862 for presentlang in $ALL_LINGUAS; do
16863 useit=no
16864 if test "%UNSET%" != "$LINGUAS"; then
16865 desiredlanguages="$LINGUAS"
16866 else
16867 desiredlanguages="$ALL_LINGUAS"
16868 fi
16869 for desiredlang in $desiredlanguages; do
16870 # Use the presentlang catalog if desiredlang is
16871 # a. equal to presentlang, or
16872 # b. a variant of presentlang (because in this case,
16873 # presentlang can be used as a fallback for messages
16874 # which are not translated in the desiredlang catalog).
16875 case "$desiredlang" in
16876 "$presentlang"*) useit=yes;;
16877 esac
16878 done
16879 if test $useit = yes; then
16880 INST_LINGUAS="$INST_LINGUAS $presentlang"
16881 fi
16882 done
16883 fi
16884 CATALOGS=
16885 if test -n "$INST_LINGUAS"; then
16886 for lang in $INST_LINGUAS; do
16887 CATALOGS="$CATALOGS $lang.gmo"
16888 done
16889 fi
16890 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
16891 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"
16892 for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
16893 if test -f "$f"; then
16894 case "$f" in
16895 *.orig | *.bak | *~) ;;
16896 *) cat "$f" >> "$ac_dir/Makefile" ;;
16897 esac
16898 fi
16899 done
16900 fi
16901 ;;
16902 esac
16903 done ;;
16904 "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
16905 echo '#include "tc-'"${target_cpu_type}"'.h"' > targ-cpu.h
16906 echo '#include "obj-'"${obj_format}"'.h"' > obj-format.h
16907 echo '#include "te-'"${te_file}"'.h"' > targ-env.h
16908 echo '#include "itbl-'"${target_cpu_type}"'.h"' > itbl-cpu.h
16909 if test "x$cgen_cpu_prefix" != x ; then
16910 echo '#include "opcodes/'"${cgen_cpu_prefix}"'-desc.h"' > cgen-desc.h
16911 fi ;;
16912
16913 esac
16914 done # for ac_tag
16915
16916
16917 as_fn_exit 0
16918 _ACEOF
16919 ac_clean_files=$ac_clean_files_save
16920
16921 test $ac_write_fail = 0 ||
16922 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
16923
16924
16925 # configure is writing to config.log, and then calls config.status.
16926 # config.status does its own redirection, appending to config.log.
16927 # Unfortunately, on DOS this fails, as config.log is still kept open
16928 # by configure, so config.status won't be able to write to it; its
16929 # output is simply discarded. So we exec the FD to /dev/null,
16930 # effectively closing config.log, so it can be properly (re)opened and
16931 # appended to by config.status. When coming back to configure, we
16932 # need to make the FD available again.
16933 if test "$no_create" != yes; then
16934 ac_cs_success=:
16935 ac_config_status_args=
16936 test "$silent" = yes &&
16937 ac_config_status_args="$ac_config_status_args --quiet"
16938 exec 5>/dev/null
16939 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
16940 exec 5>>config.log
16941 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
16942 # would make configure fail if this is the last instruction.
16943 $ac_cs_success || as_fn_exit $?
16944 fi
16945 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
16946 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
16947 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
16948 fi
16949
This page took 0.41242 seconds and 4 git commands to generate.