PR gas/12390
[binutils.git] / ld / configure
bloba6802ddc318b22695f133ec7d415da7719f37e39
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.64.
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.
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 ## -------------------- ##
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 *) :
30 esac
34 as_nl='
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"
65 export as_echo_n_body
66 as_echo_n='sh -c $as_echo_n_body as_echo'
68 export as_echo_body
69 as_echo='sh -c $as_echo_body as_echo'
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=';'
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"
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
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
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
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
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='+ '
125 # NLS nuisances.
126 LC_ALL=C
127 export LC_ALL
128 LANGUAGE=C
129 export LANGUAGE
131 # CDPATH.
132 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
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 *) :
148 esac
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; }
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 :
164 else
165 exitcode=1; echo positional parameters were not saved.
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
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
186 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
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
193 IFS=$as_save_IFS
194 test -z "$as_dir" && as_dir=.
195 as_found=:
196 case $as_dir in #(
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
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
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+"$@"}
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."
242 exit 1
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
252 ## --------------------- ##
253 ## M4sh Shell Functions. ##
254 ## --------------------- ##
255 # as_fn_unset VAR
256 # ---------------
257 # Portably unset VAR.
258 as_fn_unset ()
260 { eval $1=; unset $1;}
262 as_unset=as_fn_unset
264 # as_fn_set_status STATUS
265 # -----------------------
266 # Set $? to STATUS, without forking.
267 as_fn_set_status ()
269 return $1
270 } # as_fn_set_status
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 ()
277 set +e
278 as_fn_set_status $1
279 exit $1
280 } # as_fn_exit
282 # as_fn_mkdir_p
283 # -------------
284 # Create "$as_dir" as a directory, including parents if necessary.
285 as_fn_mkdir_p ()
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/
309 /^X\(\/\/\)[^/].*/{
310 s//\1/
313 /^X\(\/\/\)$/{
314 s//\1/
317 /^X\(\/\).*/{
318 s//\1/
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"
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 ()
338 eval $1+=\$2
340 else
341 as_fn_append ()
343 eval $1=\$$1\$2
345 fi # as_fn_append
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 ()
355 as_val=$(( $* ))
357 else
358 as_fn_arith ()
360 as_val=`expr "$@" || test $? -eq 1`
362 fi # as_fn_arith
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 ()
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
377 $as_echo "$as_me: error: $1" >&2
378 as_fn_exit $as_status
379 } # as_fn_error
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
388 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
389 as_basename=basename
390 else
391 as_basename=false
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
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/
409 /^X\/\(\/\/\)$/{
410 s//\1/
413 /^X\/\(\/\).*/{
414 s//\1/
417 s/.*/./; q'`
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
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 '
434 /[$]LINENO/=
435 ' <$as_myself |
436 sed '
437 s/[$]LINENO.*/&-/
438 t lineno
440 :lineno
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; }
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
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;;
468 ECHO_N='-n';;
469 esac
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
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'
492 else
493 as_ln_s='cp -p'
495 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
496 rmdir conf$$.dir 2>/dev/null
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
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=
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
526 as_executable_p=$as_test_x
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'"
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'"
534 SHELL=${CONFIG_SHELL-/bin/sh}
537 exec 7<&0 </dev/null 6>&1
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`
545 # Initializations.
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=
556 # Identity of this package.
557 PACKAGE_NAME=
558 PACKAGE_TARNAME=
559 PACKAGE_VERSION=
560 PACKAGE_STRING=
561 PACKAGE_BUGREPORT=
562 PACKAGE_URL=
564 ac_unique_file="ldmain.c"
565 # Factoring default headers for most tests.
566 ac_includes_default="\
567 #include <stdio.h>
568 #ifdef HAVE_SYS_TYPES_H
569 # include <sys/types.h>
570 #endif
571 #ifdef HAVE_SYS_STAT_H
572 # include <sys/stat.h>
573 #endif
574 #ifdef STDC_HEADERS
575 # include <stdlib.h>
576 # include <stddef.h>
577 #else
578 # ifdef HAVE_STDLIB_H
579 # include <stdlib.h>
580 # endif
581 #endif
582 #ifdef HAVE_STRING_H
583 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
584 # include <memory.h>
585 # endif
586 # include <string.h>
587 #endif
588 #ifdef HAVE_STRINGS_H
589 # include <strings.h>
590 #endif
591 #ifdef HAVE_INTTYPES_H
592 # include <inttypes.h>
593 #endif
594 #ifdef HAVE_STDINT_H
595 # include <stdint.h>
596 #endif
597 #ifdef HAVE_UNISTD_H
598 # include <unistd.h>
599 #endif"
601 ac_subst_vars='am__EXEEXT_FALSE
602 am__EXEEXT_TRUE
603 LTLIBOBJS
604 LIBOBJS
605 TESTBFDLIB
606 EMULATION_LIBPATH
607 LIB_PATH
608 EMUL_EXTRA_OFILES
609 EMULATION_OFILES
610 EMUL
611 STRINGIFY
612 enable_initfini_array
613 ENABLE_PLUGINS_FALSE
614 ENABLE_PLUGINS_TRUE
615 NATIVE_LIB_DIRS
616 HOSTING_LIBS
617 HOSTING_CRT0
618 HDEFINES
619 do_compare
620 GENINSRC_NEVER_FALSE
621 GENINSRC_NEVER_TRUE
622 LEXLIB
623 LEX_OUTPUT_ROOT
625 YFLAGS
626 YACC
627 MSGMERGE
628 MSGFMT
629 MKINSTALLDIRS
630 CATOBJEXT
631 GENCAT
632 INSTOBJEXT
633 DATADIRNAME
634 CATALOGS
635 POSUB
636 GMSGFMT
637 XGETTEXT
638 INCINTL
639 LIBINTL_DEP
640 LIBINTL
641 USE_NLS
642 OTOOL64
643 OTOOL
644 LIPO
645 NMEDIT
646 DSYMUTIL
647 RANLIB
649 OBJDUMP
650 LN_S
652 ac_ct_DUMPBIN
653 DUMPBIN
655 FGREP
657 LIBTOOL
658 NO_WERROR
659 WARN_CFLAGS
660 EGREP
661 GREP
663 installed_linker
664 install_as_default
665 TARGET_SYSTEM_ROOT_DEFINE
666 TARGET_SYSTEM_ROOT
667 use_sysroot
668 MAINT
669 MAINTAINER_MODE_FALSE
670 MAINTAINER_MODE_TRUE
671 am__fastdepCC_FALSE
672 am__fastdepCC_TRUE
673 CCDEPMODE
674 AMDEPBACKSLASH
675 AMDEP_FALSE
676 AMDEP_TRUE
677 am__quote
678 am__include
679 DEPDIR
680 am__untar
681 am__tar
682 AMTAR
683 am__leading_dot
684 SET_MAKE
686 mkdir_p
687 MKDIR_P
688 INSTALL_STRIP_PROGRAM
689 STRIP
690 install_sh
691 MAKEINFO
692 AUTOHEADER
693 AUTOMAKE
694 AUTOCONF
695 ACLOCAL
696 VERSION
697 PACKAGE
698 CYGPATH_W
699 am__isrc
700 INSTALL_DATA
701 INSTALL_SCRIPT
702 INSTALL_PROGRAM
703 OBJEXT
704 EXEEXT
705 ac_ct_CC
706 CPPFLAGS
707 LDFLAGS
708 CFLAGS
710 target_os
711 target_vendor
712 target_cpu
713 target
714 host_os
715 host_vendor
716 host_cpu
717 host
718 build_os
719 build_vendor
720 build_cpu
721 build
722 target_alias
723 host_alias
724 build_alias
725 LIBS
726 ECHO_T
727 ECHO_N
728 ECHO_C
729 DEFS
730 mandir
731 localedir
732 libdir
733 psdir
734 pdfdir
735 dvidir
736 htmldir
737 infodir
738 docdir
739 oldincludedir
740 includedir
741 localstatedir
742 sharedstatedir
743 sysconfdir
744 datadir
745 datarootdir
746 libexecdir
747 sbindir
748 bindir
749 program_transform_name
750 prefix
751 exec_prefix
752 PACKAGE_URL
753 PACKAGE_BUGREPORT
754 PACKAGE_STRING
755 PACKAGE_VERSION
756 PACKAGE_TARNAME
757 PACKAGE_NAME
758 PATH_SEPARATOR
759 SHELL'
760 ac_subst_files='TDIRS'
761 ac_user_opts='
762 enable_option_checking
763 enable_dependency_tracking
764 enable_maintainer_mode
765 with_lib_path
766 enable_targets
767 enable_64_bit_bfd
768 with_sysroot
769 enable_gold
770 enable_got
771 enable_werror
772 enable_build_warnings
773 enable_plugins
774 enable_largefile
775 enable_shared
776 enable_static
777 with_pic
778 enable_fast_install
779 with_gnu_ld
780 enable_libtool_lock
781 enable_nls
782 enable_initfini_array
784 ac_precious_vars='build_alias
785 host_alias
786 target_alias
788 CFLAGS
789 LDFLAGS
790 LIBS
791 CPPFLAGS
793 YACC
794 YFLAGS'
797 # Initialize some variables set by options.
798 ac_init_help=
799 ac_init_version=false
800 ac_unrecognized_opts=
801 ac_unrecognized_sep=
802 # The variables have the same names as the options, with
803 # dashes changed to underlines.
804 cache_file=/dev/null
805 exec_prefix=NONE
806 no_create=
807 no_recursion=
808 prefix=NONE
809 program_prefix=NONE
810 program_suffix=NONE
811 program_transform_name=s,x,x,
812 silent=
813 site=
814 srcdir=
815 verbose=
816 x_includes=NONE
817 x_libraries=NONE
819 # Installation directory options.
820 # These are left unexpanded so users can "make install exec_prefix=/foo"
821 # and all the variables that are supposed to be based on exec_prefix
822 # by default will actually change.
823 # Use braces instead of parens because sh, perl, etc. also accept them.
824 # (The list follows the same order as the GNU Coding Standards.)
825 bindir='${exec_prefix}/bin'
826 sbindir='${exec_prefix}/sbin'
827 libexecdir='${exec_prefix}/libexec'
828 datarootdir='${prefix}/share'
829 datadir='${datarootdir}'
830 sysconfdir='${prefix}/etc'
831 sharedstatedir='${prefix}/com'
832 localstatedir='${prefix}/var'
833 includedir='${prefix}/include'
834 oldincludedir='/usr/include'
835 docdir='${datarootdir}/doc/${PACKAGE}'
836 infodir='${datarootdir}/info'
837 htmldir='${docdir}'
838 dvidir='${docdir}'
839 pdfdir='${docdir}'
840 psdir='${docdir}'
841 libdir='${exec_prefix}/lib'
842 localedir='${datarootdir}/locale'
843 mandir='${datarootdir}/man'
845 ac_prev=
846 ac_dashdash=
847 for ac_option
849 # If the previous option needs an argument, assign it.
850 if test -n "$ac_prev"; then
851 eval $ac_prev=\$ac_option
852 ac_prev=
853 continue
856 case $ac_option in
857 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
858 *) ac_optarg=yes ;;
859 esac
861 # Accept the important Cygnus configure options, so we can diagnose typos.
863 case $ac_dashdash$ac_option in
865 ac_dashdash=yes ;;
867 -bindir | --bindir | --bindi | --bind | --bin | --bi)
868 ac_prev=bindir ;;
869 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
870 bindir=$ac_optarg ;;
872 -build | --build | --buil | --bui | --bu)
873 ac_prev=build_alias ;;
874 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
875 build_alias=$ac_optarg ;;
877 -cache-file | --cache-file | --cache-fil | --cache-fi \
878 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
879 ac_prev=cache_file ;;
880 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
881 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
882 cache_file=$ac_optarg ;;
884 --config-cache | -C)
885 cache_file=config.cache ;;
887 -datadir | --datadir | --datadi | --datad)
888 ac_prev=datadir ;;
889 -datadir=* | --datadir=* | --datadi=* | --datad=*)
890 datadir=$ac_optarg ;;
892 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
893 | --dataroo | --dataro | --datar)
894 ac_prev=datarootdir ;;
895 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
896 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
897 datarootdir=$ac_optarg ;;
899 -disable-* | --disable-*)
900 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
901 # Reject names that are not valid shell variable names.
902 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
903 as_fn_error "invalid feature name: $ac_useropt"
904 ac_useropt_orig=$ac_useropt
905 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
906 case $ac_user_opts in
908 "enable_$ac_useropt"
909 "*) ;;
910 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
911 ac_unrecognized_sep=', ';;
912 esac
913 eval enable_$ac_useropt=no ;;
915 -docdir | --docdir | --docdi | --doc | --do)
916 ac_prev=docdir ;;
917 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
918 docdir=$ac_optarg ;;
920 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
921 ac_prev=dvidir ;;
922 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
923 dvidir=$ac_optarg ;;
925 -enable-* | --enable-*)
926 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
927 # Reject names that are not valid shell variable names.
928 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
929 as_fn_error "invalid feature name: $ac_useropt"
930 ac_useropt_orig=$ac_useropt
931 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
932 case $ac_user_opts in
934 "enable_$ac_useropt"
935 "*) ;;
936 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
937 ac_unrecognized_sep=', ';;
938 esac
939 eval enable_$ac_useropt=\$ac_optarg ;;
941 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
942 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
943 | --exec | --exe | --ex)
944 ac_prev=exec_prefix ;;
945 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
946 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
947 | --exec=* | --exe=* | --ex=*)
948 exec_prefix=$ac_optarg ;;
950 -gas | --gas | --ga | --g)
951 # Obsolete; use --with-gas.
952 with_gas=yes ;;
954 -help | --help | --hel | --he | -h)
955 ac_init_help=long ;;
956 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
957 ac_init_help=recursive ;;
958 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
959 ac_init_help=short ;;
961 -host | --host | --hos | --ho)
962 ac_prev=host_alias ;;
963 -host=* | --host=* | --hos=* | --ho=*)
964 host_alias=$ac_optarg ;;
966 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
967 ac_prev=htmldir ;;
968 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
969 | --ht=*)
970 htmldir=$ac_optarg ;;
972 -includedir | --includedir | --includedi | --included | --include \
973 | --includ | --inclu | --incl | --inc)
974 ac_prev=includedir ;;
975 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
976 | --includ=* | --inclu=* | --incl=* | --inc=*)
977 includedir=$ac_optarg ;;
979 -infodir | --infodir | --infodi | --infod | --info | --inf)
980 ac_prev=infodir ;;
981 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
982 infodir=$ac_optarg ;;
984 -libdir | --libdir | --libdi | --libd)
985 ac_prev=libdir ;;
986 -libdir=* | --libdir=* | --libdi=* | --libd=*)
987 libdir=$ac_optarg ;;
989 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
990 | --libexe | --libex | --libe)
991 ac_prev=libexecdir ;;
992 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
993 | --libexe=* | --libex=* | --libe=*)
994 libexecdir=$ac_optarg ;;
996 -localedir | --localedir | --localedi | --localed | --locale)
997 ac_prev=localedir ;;
998 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
999 localedir=$ac_optarg ;;
1001 -localstatedir | --localstatedir | --localstatedi | --localstated \
1002 | --localstate | --localstat | --localsta | --localst | --locals)
1003 ac_prev=localstatedir ;;
1004 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1005 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1006 localstatedir=$ac_optarg ;;
1008 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1009 ac_prev=mandir ;;
1010 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1011 mandir=$ac_optarg ;;
1013 -nfp | --nfp | --nf)
1014 # Obsolete; use --without-fp.
1015 with_fp=no ;;
1017 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1018 | --no-cr | --no-c | -n)
1019 no_create=yes ;;
1021 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1022 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1023 no_recursion=yes ;;
1025 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1026 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1027 | --oldin | --oldi | --old | --ol | --o)
1028 ac_prev=oldincludedir ;;
1029 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1030 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1031 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1032 oldincludedir=$ac_optarg ;;
1034 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1035 ac_prev=prefix ;;
1036 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1037 prefix=$ac_optarg ;;
1039 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1040 | --program-pre | --program-pr | --program-p)
1041 ac_prev=program_prefix ;;
1042 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1043 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1044 program_prefix=$ac_optarg ;;
1046 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1047 | --program-suf | --program-su | --program-s)
1048 ac_prev=program_suffix ;;
1049 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1050 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1051 program_suffix=$ac_optarg ;;
1053 -program-transform-name | --program-transform-name \
1054 | --program-transform-nam | --program-transform-na \
1055 | --program-transform-n | --program-transform- \
1056 | --program-transform | --program-transfor \
1057 | --program-transfo | --program-transf \
1058 | --program-trans | --program-tran \
1059 | --progr-tra | --program-tr | --program-t)
1060 ac_prev=program_transform_name ;;
1061 -program-transform-name=* | --program-transform-name=* \
1062 | --program-transform-nam=* | --program-transform-na=* \
1063 | --program-transform-n=* | --program-transform-=* \
1064 | --program-transform=* | --program-transfor=* \
1065 | --program-transfo=* | --program-transf=* \
1066 | --program-trans=* | --program-tran=* \
1067 | --progr-tra=* | --program-tr=* | --program-t=*)
1068 program_transform_name=$ac_optarg ;;
1070 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1071 ac_prev=pdfdir ;;
1072 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1073 pdfdir=$ac_optarg ;;
1075 -psdir | --psdir | --psdi | --psd | --ps)
1076 ac_prev=psdir ;;
1077 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1078 psdir=$ac_optarg ;;
1080 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1081 | -silent | --silent | --silen | --sile | --sil)
1082 silent=yes ;;
1084 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1085 ac_prev=sbindir ;;
1086 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1087 | --sbi=* | --sb=*)
1088 sbindir=$ac_optarg ;;
1090 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1091 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1092 | --sharedst | --shareds | --shared | --share | --shar \
1093 | --sha | --sh)
1094 ac_prev=sharedstatedir ;;
1095 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1096 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1097 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1098 | --sha=* | --sh=*)
1099 sharedstatedir=$ac_optarg ;;
1101 -site | --site | --sit)
1102 ac_prev=site ;;
1103 -site=* | --site=* | --sit=*)
1104 site=$ac_optarg ;;
1106 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1107 ac_prev=srcdir ;;
1108 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1109 srcdir=$ac_optarg ;;
1111 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1112 | --syscon | --sysco | --sysc | --sys | --sy)
1113 ac_prev=sysconfdir ;;
1114 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1115 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1116 sysconfdir=$ac_optarg ;;
1118 -target | --target | --targe | --targ | --tar | --ta | --t)
1119 ac_prev=target_alias ;;
1120 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1121 target_alias=$ac_optarg ;;
1123 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1124 verbose=yes ;;
1126 -version | --version | --versio | --versi | --vers | -V)
1127 ac_init_version=: ;;
1129 -with-* | --with-*)
1130 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1131 # Reject names that are not valid shell variable names.
1132 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1133 as_fn_error "invalid package name: $ac_useropt"
1134 ac_useropt_orig=$ac_useropt
1135 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1136 case $ac_user_opts in
1138 "with_$ac_useropt"
1139 "*) ;;
1140 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1141 ac_unrecognized_sep=', ';;
1142 esac
1143 eval with_$ac_useropt=\$ac_optarg ;;
1145 -without-* | --without-*)
1146 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1147 # Reject names that are not valid shell variable names.
1148 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1149 as_fn_error "invalid package name: $ac_useropt"
1150 ac_useropt_orig=$ac_useropt
1151 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1152 case $ac_user_opts in
1154 "with_$ac_useropt"
1155 "*) ;;
1156 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1157 ac_unrecognized_sep=', ';;
1158 esac
1159 eval with_$ac_useropt=no ;;
1161 --x)
1162 # Obsolete; use --with-x.
1163 with_x=yes ;;
1165 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1166 | --x-incl | --x-inc | --x-in | --x-i)
1167 ac_prev=x_includes ;;
1168 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1169 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1170 x_includes=$ac_optarg ;;
1172 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1173 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1174 ac_prev=x_libraries ;;
1175 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1176 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1177 x_libraries=$ac_optarg ;;
1179 -*) as_fn_error "unrecognized option: \`$ac_option'
1180 Try \`$0 --help' for more information."
1183 *=*)
1184 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1185 # Reject names that are not valid shell variable names.
1186 case $ac_envvar in #(
1187 '' | [0-9]* | *[!_$as_cr_alnum]* )
1188 as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1189 esac
1190 eval $ac_envvar=\$ac_optarg
1191 export $ac_envvar ;;
1194 # FIXME: should be removed in autoconf 3.0.
1195 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1196 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1197 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1198 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1201 esac
1202 done
1204 if test -n "$ac_prev"; then
1205 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1206 as_fn_error "missing argument to $ac_option"
1209 if test -n "$ac_unrecognized_opts"; then
1210 case $enable_option_checking in
1211 no) ;;
1212 fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1213 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1214 esac
1217 # Check all directory arguments for consistency.
1218 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1219 datadir sysconfdir sharedstatedir localstatedir includedir \
1220 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1221 libdir localedir mandir
1223 eval ac_val=\$$ac_var
1224 # Remove trailing slashes.
1225 case $ac_val in
1226 */ )
1227 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1228 eval $ac_var=\$ac_val;;
1229 esac
1230 # Be sure to have absolute directory names.
1231 case $ac_val in
1232 [\\/$]* | ?:[\\/]* ) continue;;
1233 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1234 esac
1235 as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1236 done
1238 # There might be people who depend on the old broken behavior: `$host'
1239 # used to hold the argument of --host etc.
1240 # FIXME: To remove some day.
1241 build=$build_alias
1242 host=$host_alias
1243 target=$target_alias
1245 # FIXME: To remove some day.
1246 if test "x$host_alias" != x; then
1247 if test "x$build_alias" = x; then
1248 cross_compiling=maybe
1249 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1250 If a cross compiler is detected then cross compile mode will be used." >&2
1251 elif test "x$build_alias" != "x$host_alias"; then
1252 cross_compiling=yes
1256 ac_tool_prefix=
1257 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1259 test "$silent" = yes && exec 6>/dev/null
1262 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1263 ac_ls_di=`ls -di .` &&
1264 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1265 as_fn_error "working directory cannot be determined"
1266 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1267 as_fn_error "pwd does not report name of working directory"
1270 # Find the source files, if location was not specified.
1271 if test -z "$srcdir"; then
1272 ac_srcdir_defaulted=yes
1273 # Try the directory containing this script, then the parent directory.
1274 ac_confdir=`$as_dirname -- "$as_myself" ||
1275 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1276 X"$as_myself" : 'X\(//\)[^/]' \| \
1277 X"$as_myself" : 'X\(//\)$' \| \
1278 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1279 $as_echo X"$as_myself" |
1280 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1281 s//\1/
1284 /^X\(\/\/\)[^/].*/{
1285 s//\1/
1288 /^X\(\/\/\)$/{
1289 s//\1/
1292 /^X\(\/\).*/{
1293 s//\1/
1296 s/.*/./; q'`
1297 srcdir=$ac_confdir
1298 if test ! -r "$srcdir/$ac_unique_file"; then
1299 srcdir=..
1301 else
1302 ac_srcdir_defaulted=no
1304 if test ! -r "$srcdir/$ac_unique_file"; then
1305 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1306 as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1308 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1309 ac_abs_confdir=`(
1310 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1311 pwd)`
1312 # When building in place, set srcdir=.
1313 if test "$ac_abs_confdir" = "$ac_pwd"; then
1314 srcdir=.
1316 # Remove unnecessary trailing slashes from srcdir.
1317 # Double slashes in file names in object file debugging info
1318 # mess up M-x gdb in Emacs.
1319 case $srcdir in
1320 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1321 esac
1322 for ac_var in $ac_precious_vars; do
1323 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1324 eval ac_env_${ac_var}_value=\$${ac_var}
1325 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1326 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1327 done
1330 # Report the --help message.
1332 if test "$ac_init_help" = "long"; then
1333 # Omit some internal or obsolete options to make the list less imposing.
1334 # This message is too long to be a string in the A/UX 3.1 sh.
1335 cat <<_ACEOF
1336 \`configure' configures this package to adapt to many kinds of systems.
1338 Usage: $0 [OPTION]... [VAR=VALUE]...
1340 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1341 VAR=VALUE. See below for descriptions of some of the useful variables.
1343 Defaults for the options are specified in brackets.
1345 Configuration:
1346 -h, --help display this help and exit
1347 --help=short display options specific to this package
1348 --help=recursive display the short help of all the included packages
1349 -V, --version display version information and exit
1350 -q, --quiet, --silent do not print \`checking...' messages
1351 --cache-file=FILE cache test results in FILE [disabled]
1352 -C, --config-cache alias for \`--cache-file=config.cache'
1353 -n, --no-create do not create output files
1354 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1356 Installation directories:
1357 --prefix=PREFIX install architecture-independent files in PREFIX
1358 [$ac_default_prefix]
1359 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1360 [PREFIX]
1362 By default, \`make install' will install all the files in
1363 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1364 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1365 for instance \`--prefix=\$HOME'.
1367 For better control, use the options below.
1369 Fine tuning of the installation directories:
1370 --bindir=DIR user executables [EPREFIX/bin]
1371 --sbindir=DIR system admin executables [EPREFIX/sbin]
1372 --libexecdir=DIR program executables [EPREFIX/libexec]
1373 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1374 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1375 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1376 --libdir=DIR object code libraries [EPREFIX/lib]
1377 --includedir=DIR C header files [PREFIX/include]
1378 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1379 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1380 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1381 --infodir=DIR info documentation [DATAROOTDIR/info]
1382 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1383 --mandir=DIR man documentation [DATAROOTDIR/man]
1384 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1385 --htmldir=DIR html documentation [DOCDIR]
1386 --dvidir=DIR dvi documentation [DOCDIR]
1387 --pdfdir=DIR pdf documentation [DOCDIR]
1388 --psdir=DIR ps documentation [DOCDIR]
1389 _ACEOF
1391 cat <<\_ACEOF
1393 Program names:
1394 --program-prefix=PREFIX prepend PREFIX to installed program names
1395 --program-suffix=SUFFIX append SUFFIX to installed program names
1396 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1398 System types:
1399 --build=BUILD configure for building on BUILD [guessed]
1400 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1401 --target=TARGET configure for building compilers for TARGET [HOST]
1402 _ACEOF
1405 if test -n "$ac_init_help"; then
1407 cat <<\_ACEOF
1409 Optional Features:
1410 --disable-option-checking ignore unrecognized --enable/--with options
1411 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1412 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1413 --disable-dependency-tracking speeds up one-time build
1414 --enable-dependency-tracking do not reject slow dependency extractors
1415 --enable-maintainer-mode enable make rules and dependencies not useful
1416 (and sometimes confusing) to the casual installer
1417 --enable-targets alternative target configurations
1418 --enable-64-bit-bfd 64-bit support (on hosts with narrower word sizes)
1419 --enable-gold[=ARG] build gold [ARG={default,yes,no}]
1420 --enable-got=<type> GOT handling scheme (target, single, negative,
1421 multigot)
1422 --enable-werror treat compile warnings as errors
1423 --enable-build-warnings enable build-time compiler warnings
1424 --enable-plugins Enable support for plugins (defaults no)
1425 --disable-largefile omit support for large files
1426 --enable-shared[=PKGS] build shared libraries [default=yes]
1427 --enable-static[=PKGS] build static libraries [default=yes]
1428 --enable-fast-install[=PKGS]
1429 optimize for fast installation [default=yes]
1430 --disable-libtool-lock avoid locking (might break parallel builds)
1431 --disable-nls do not use Native Language Support
1432 --enable-initfini-array use .init_array/.fini_array sections
1434 Optional Packages:
1435 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1436 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1437 --with-lib-path=dir1:dir2... set default LIB_PATH
1438 --with-sysroot=DIR Search for usr/lib et al within DIR.
1439 --with-pic try to use only PIC/non-PIC objects [default=use
1440 both]
1441 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1443 Some influential environment variables:
1444 CC C compiler command
1445 CFLAGS C compiler flags
1446 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1447 nonstandard directory <lib dir>
1448 LIBS libraries to pass to the linker, e.g. -l<library>
1449 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1450 you have headers in a nonstandard directory <include dir>
1451 CPP C preprocessor
1452 YACC The `Yet Another C Compiler' implementation to use. Defaults to
1453 the first program found out of: `bison -y', `byacc', `yacc'.
1454 YFLAGS The list of arguments that will be passed by default to $YACC.
1455 This script will default YFLAGS to the empty string to avoid a
1456 default value of `-d' given by some make applications.
1458 Use these variables to override the choices made by `configure' or to help
1459 it to find libraries and programs with nonstandard names/locations.
1461 Report bugs to the package provider.
1462 _ACEOF
1463 ac_status=$?
1466 if test "$ac_init_help" = "recursive"; then
1467 # If there are subdirs, report their specific --help.
1468 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1469 test -d "$ac_dir" ||
1470 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1471 continue
1472 ac_builddir=.
1474 case "$ac_dir" in
1475 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1477 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1478 # A ".." for each directory in $ac_dir_suffix.
1479 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1480 case $ac_top_builddir_sub in
1481 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1482 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1483 esac ;;
1484 esac
1485 ac_abs_top_builddir=$ac_pwd
1486 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1487 # for backward compatibility:
1488 ac_top_builddir=$ac_top_build_prefix
1490 case $srcdir in
1491 .) # We are building in place.
1492 ac_srcdir=.
1493 ac_top_srcdir=$ac_top_builddir_sub
1494 ac_abs_top_srcdir=$ac_pwd ;;
1495 [\\/]* | ?:[\\/]* ) # Absolute name.
1496 ac_srcdir=$srcdir$ac_dir_suffix;
1497 ac_top_srcdir=$srcdir
1498 ac_abs_top_srcdir=$srcdir ;;
1499 *) # Relative name.
1500 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1501 ac_top_srcdir=$ac_top_build_prefix$srcdir
1502 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1503 esac
1504 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1506 cd "$ac_dir" || { ac_status=$?; continue; }
1507 # Check for guested configure.
1508 if test -f "$ac_srcdir/configure.gnu"; then
1509 echo &&
1510 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1511 elif test -f "$ac_srcdir/configure"; then
1512 echo &&
1513 $SHELL "$ac_srcdir/configure" --help=recursive
1514 else
1515 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1516 fi || ac_status=$?
1517 cd "$ac_pwd" || { ac_status=$?; break; }
1518 done
1521 test -n "$ac_init_help" && exit $ac_status
1522 if $ac_init_version; then
1523 cat <<\_ACEOF
1524 configure
1525 generated by GNU Autoconf 2.64
1527 Copyright (C) 2009 Free Software Foundation, Inc.
1528 This configure script is free software; the Free Software Foundation
1529 gives unlimited permission to copy, distribute and modify it.
1530 _ACEOF
1531 exit
1534 ## ------------------------ ##
1535 ## Autoconf initialization. ##
1536 ## ------------------------ ##
1538 # ac_fn_c_try_compile LINENO
1539 # --------------------------
1540 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1541 ac_fn_c_try_compile ()
1543 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1544 rm -f conftest.$ac_objext
1545 if { { ac_try="$ac_compile"
1546 case "(($ac_try" in
1547 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1548 *) ac_try_echo=$ac_try;;
1549 esac
1550 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1551 $as_echo "$ac_try_echo"; } >&5
1552 (eval "$ac_compile") 2>conftest.err
1553 ac_status=$?
1554 if test -s conftest.err; then
1555 grep -v '^ *+' conftest.err >conftest.er1
1556 cat conftest.er1 >&5
1557 mv -f conftest.er1 conftest.err
1559 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1560 test $ac_status = 0; } && {
1561 test -z "$ac_c_werror_flag" ||
1562 test ! -s conftest.err
1563 } && test -s conftest.$ac_objext; then :
1564 ac_retval=0
1565 else
1566 $as_echo "$as_me: failed program was:" >&5
1567 sed 's/^/| /' conftest.$ac_ext >&5
1569 ac_retval=1
1571 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1572 return $ac_retval
1574 } # ac_fn_c_try_compile
1576 # ac_fn_c_try_link LINENO
1577 # -----------------------
1578 # Try to link conftest.$ac_ext, and return whether this succeeded.
1579 ac_fn_c_try_link ()
1581 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1582 rm -f conftest.$ac_objext conftest$ac_exeext
1583 if { { ac_try="$ac_link"
1584 case "(($ac_try" in
1585 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1586 *) ac_try_echo=$ac_try;;
1587 esac
1588 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1589 $as_echo "$ac_try_echo"; } >&5
1590 (eval "$ac_link") 2>conftest.err
1591 ac_status=$?
1592 if test -s conftest.err; then
1593 grep -v '^ *+' conftest.err >conftest.er1
1594 cat conftest.er1 >&5
1595 mv -f conftest.er1 conftest.err
1597 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1598 test $ac_status = 0; } && {
1599 test -z "$ac_c_werror_flag" ||
1600 test ! -s conftest.err
1601 } && test -s conftest$ac_exeext && {
1602 test "$cross_compiling" = yes ||
1603 $as_test_x conftest$ac_exeext
1604 }; then :
1605 ac_retval=0
1606 else
1607 $as_echo "$as_me: failed program was:" >&5
1608 sed 's/^/| /' conftest.$ac_ext >&5
1610 ac_retval=1
1612 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1613 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1614 # interfere with the next link command; also delete a directory that is
1615 # left behind by Apple's compiler. We do this before executing the actions.
1616 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1617 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1618 return $ac_retval
1620 } # ac_fn_c_try_link
1622 # ac_fn_c_try_cpp LINENO
1623 # ----------------------
1624 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1625 ac_fn_c_try_cpp ()
1627 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1628 if { { ac_try="$ac_cpp conftest.$ac_ext"
1629 case "(($ac_try" in
1630 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1631 *) ac_try_echo=$ac_try;;
1632 esac
1633 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1634 $as_echo "$ac_try_echo"; } >&5
1635 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1636 ac_status=$?
1637 if test -s conftest.err; then
1638 grep -v '^ *+' conftest.err >conftest.er1
1639 cat conftest.er1 >&5
1640 mv -f conftest.er1 conftest.err
1642 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1643 test $ac_status = 0; } >/dev/null && {
1644 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1645 test ! -s conftest.err
1646 }; then :
1647 ac_retval=0
1648 else
1649 $as_echo "$as_me: failed program was:" >&5
1650 sed 's/^/| /' conftest.$ac_ext >&5
1652 ac_retval=1
1654 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1655 return $ac_retval
1657 } # ac_fn_c_try_cpp
1659 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1660 # -------------------------------------------------------
1661 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1662 # the include files in INCLUDES and setting the cache variable VAR
1663 # accordingly.
1664 ac_fn_c_check_header_mongrel ()
1666 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1667 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1668 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1669 $as_echo_n "checking for $2... " >&6; }
1670 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1671 $as_echo_n "(cached) " >&6
1673 eval ac_res=\$$3
1674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1675 $as_echo "$ac_res" >&6; }
1676 else
1677 # Is the header compilable?
1678 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1679 $as_echo_n "checking $2 usability... " >&6; }
1680 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1681 /* end confdefs.h. */
1683 #include <$2>
1684 _ACEOF
1685 if ac_fn_c_try_compile "$LINENO"; then :
1686 ac_header_compiler=yes
1687 else
1688 ac_header_compiler=no
1690 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1692 $as_echo "$ac_header_compiler" >&6; }
1694 # Is the header present?
1695 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1696 $as_echo_n "checking $2 presence... " >&6; }
1697 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1698 /* end confdefs.h. */
1699 #include <$2>
1700 _ACEOF
1701 if ac_fn_c_try_cpp "$LINENO"; then :
1702 ac_header_preproc=yes
1703 else
1704 ac_header_preproc=no
1706 rm -f conftest.err conftest.$ac_ext
1707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1708 $as_echo "$ac_header_preproc" >&6; }
1710 # So? What about this header?
1711 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1712 yes:no: )
1713 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1714 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1715 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1716 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1718 no:yes:* )
1719 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1720 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1721 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1722 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1723 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1724 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1725 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1726 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1727 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1728 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1730 esac
1731 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1732 $as_echo_n "checking for $2... " >&6; }
1733 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1734 $as_echo_n "(cached) " >&6
1735 else
1736 eval "$3=\$ac_header_compiler"
1738 eval ac_res=\$$3
1739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1740 $as_echo "$ac_res" >&6; }
1742 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1744 } # ac_fn_c_check_header_mongrel
1746 # ac_fn_c_try_run LINENO
1747 # ----------------------
1748 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1749 # that executables *can* be run.
1750 ac_fn_c_try_run ()
1752 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1753 if { { ac_try="$ac_link"
1754 case "(($ac_try" in
1755 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1756 *) ac_try_echo=$ac_try;;
1757 esac
1758 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1759 $as_echo "$ac_try_echo"; } >&5
1760 (eval "$ac_link") 2>&5
1761 ac_status=$?
1762 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1763 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1764 { { case "(($ac_try" in
1765 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1766 *) ac_try_echo=$ac_try;;
1767 esac
1768 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1769 $as_echo "$ac_try_echo"; } >&5
1770 (eval "$ac_try") 2>&5
1771 ac_status=$?
1772 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1773 test $ac_status = 0; }; }; then :
1774 ac_retval=0
1775 else
1776 $as_echo "$as_me: program exited with status $ac_status" >&5
1777 $as_echo "$as_me: failed program was:" >&5
1778 sed 's/^/| /' conftest.$ac_ext >&5
1780 ac_retval=$ac_status
1782 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1783 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1784 return $ac_retval
1786 } # ac_fn_c_try_run
1788 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1789 # -------------------------------------------------------
1790 # Tests whether HEADER exists and can be compiled using the include files in
1791 # INCLUDES, setting the cache variable VAR accordingly.
1792 ac_fn_c_check_header_compile ()
1794 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1795 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1796 $as_echo_n "checking for $2... " >&6; }
1797 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1798 $as_echo_n "(cached) " >&6
1799 else
1800 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1801 /* end confdefs.h. */
1803 #include <$2>
1804 _ACEOF
1805 if ac_fn_c_try_compile "$LINENO"; then :
1806 eval "$3=yes"
1807 else
1808 eval "$3=no"
1810 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1812 eval ac_res=\$$3
1813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1814 $as_echo "$ac_res" >&6; }
1815 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1817 } # ac_fn_c_check_header_compile
1819 # ac_fn_c_check_func LINENO FUNC VAR
1820 # ----------------------------------
1821 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1822 ac_fn_c_check_func ()
1824 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1825 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1826 $as_echo_n "checking for $2... " >&6; }
1827 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1828 $as_echo_n "(cached) " >&6
1829 else
1830 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1831 /* end confdefs.h. */
1832 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1833 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1834 #define $2 innocuous_$2
1836 /* System header to define __stub macros and hopefully few prototypes,
1837 which can conflict with char $2 (); below.
1838 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1839 <limits.h> exists even on freestanding compilers. */
1841 #ifdef __STDC__
1842 # include <limits.h>
1843 #else
1844 # include <assert.h>
1845 #endif
1847 #undef $2
1849 /* Override any GCC internal prototype to avoid an error.
1850 Use char because int might match the return type of a GCC
1851 builtin and then its argument prototype would still apply. */
1852 #ifdef __cplusplus
1853 extern "C"
1854 #endif
1855 char $2 ();
1856 /* The GNU C library defines this for functions which it implements
1857 to always fail with ENOSYS. Some functions are actually named
1858 something starting with __ and the normal name is an alias. */
1859 #if defined __stub_$2 || defined __stub___$2
1860 choke me
1861 #endif
1864 main ()
1866 return $2 ();
1868 return 0;
1870 _ACEOF
1871 if ac_fn_c_try_link "$LINENO"; then :
1872 eval "$3=yes"
1873 else
1874 eval "$3=no"
1876 rm -f core conftest.err conftest.$ac_objext \
1877 conftest$ac_exeext conftest.$ac_ext
1879 eval ac_res=\$$3
1880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1881 $as_echo "$ac_res" >&6; }
1882 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1884 } # ac_fn_c_check_func
1886 # ac_fn_c_check_decl LINENO SYMBOL VAR
1887 # ------------------------------------
1888 # Tests whether SYMBOL is declared, setting cache variable VAR accordingly.
1889 ac_fn_c_check_decl ()
1891 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1892 as_decl_name=`echo $2|sed 's/ *(.*//'`
1893 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
1894 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
1895 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
1896 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1897 $as_echo_n "(cached) " >&6
1898 else
1899 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1900 /* end confdefs.h. */
1903 main ()
1905 #ifndef $as_decl_name
1906 #ifdef __cplusplus
1907 (void) $as_decl_use;
1908 #else
1909 (void) $as_decl_name;
1910 #endif
1911 #endif
1914 return 0;
1916 _ACEOF
1917 if ac_fn_c_try_compile "$LINENO"; then :
1918 eval "$3=yes"
1919 else
1920 eval "$3=no"
1922 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1924 eval ac_res=\$$3
1925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1926 $as_echo "$ac_res" >&6; }
1927 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1929 } # ac_fn_c_check_decl
1931 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
1932 # --------------------------------------------
1933 # Tries to find the compile-time value of EXPR in a program that includes
1934 # INCLUDES, setting VAR accordingly. Returns whether the value could be
1935 # computed
1936 ac_fn_c_compute_int ()
1938 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1939 if test "$cross_compiling" = yes; then
1940 # Depending upon the size, compute the lo and hi bounds.
1941 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1942 /* end confdefs.h. */
1945 main ()
1947 static int test_array [1 - 2 * !(($2) >= 0)];
1948 test_array [0] = 0
1951 return 0;
1953 _ACEOF
1954 if ac_fn_c_try_compile "$LINENO"; then :
1955 ac_lo=0 ac_mid=0
1956 while :; do
1957 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1958 /* end confdefs.h. */
1961 main ()
1963 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
1964 test_array [0] = 0
1967 return 0;
1969 _ACEOF
1970 if ac_fn_c_try_compile "$LINENO"; then :
1971 ac_hi=$ac_mid; break
1972 else
1973 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
1974 if test $ac_lo -le $ac_mid; then
1975 ac_lo= ac_hi=
1976 break
1978 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
1980 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1981 done
1982 else
1983 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1984 /* end confdefs.h. */
1987 main ()
1989 static int test_array [1 - 2 * !(($2) < 0)];
1990 test_array [0] = 0
1993 return 0;
1995 _ACEOF
1996 if ac_fn_c_try_compile "$LINENO"; then :
1997 ac_hi=-1 ac_mid=-1
1998 while :; do
1999 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2000 /* end confdefs.h. */
2003 main ()
2005 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2006 test_array [0] = 0
2009 return 0;
2011 _ACEOF
2012 if ac_fn_c_try_compile "$LINENO"; then :
2013 ac_lo=$ac_mid; break
2014 else
2015 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2016 if test $ac_mid -le $ac_hi; then
2017 ac_lo= ac_hi=
2018 break
2020 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2022 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2023 done
2024 else
2025 ac_lo= ac_hi=
2027 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2029 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2030 # Binary search between lo and hi bounds.
2031 while test "x$ac_lo" != "x$ac_hi"; do
2032 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2033 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2034 /* end confdefs.h. */
2037 main ()
2039 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2040 test_array [0] = 0
2043 return 0;
2045 _ACEOF
2046 if ac_fn_c_try_compile "$LINENO"; then :
2047 ac_hi=$ac_mid
2048 else
2049 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2051 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2052 done
2053 case $ac_lo in #((
2054 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2055 '') ac_retval=1 ;;
2056 esac
2057 else
2058 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2059 /* end confdefs.h. */
2061 static long int longval () { return $2; }
2062 static unsigned long int ulongval () { return $2; }
2063 #include <stdio.h>
2064 #include <stdlib.h>
2066 main ()
2069 FILE *f = fopen ("conftest.val", "w");
2070 if (! f)
2071 return 1;
2072 if (($2) < 0)
2074 long int i = longval ();
2075 if (i != ($2))
2076 return 1;
2077 fprintf (f, "%ld", i);
2079 else
2081 unsigned long int i = ulongval ();
2082 if (i != ($2))
2083 return 1;
2084 fprintf (f, "%lu", i);
2086 /* Do not output a trailing newline, as this causes \r\n confusion
2087 on some platforms. */
2088 return ferror (f) || fclose (f) != 0;
2091 return 0;
2093 _ACEOF
2094 if ac_fn_c_try_run "$LINENO"; then :
2095 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2096 else
2097 ac_retval=1
2099 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2100 conftest.$ac_objext conftest.beam conftest.$ac_ext
2101 rm -f conftest.val
2104 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2105 return $ac_retval
2107 } # ac_fn_c_compute_int
2108 cat >config.log <<_ACEOF
2109 This file contains any messages produced by compilers while
2110 running configure, to aid debugging if configure makes a mistake.
2112 It was created by $as_me, which was
2113 generated by GNU Autoconf 2.64. Invocation command line was
2115 $ $0 $@
2117 _ACEOF
2118 exec 5>>config.log
2120 cat <<_ASUNAME
2121 ## --------- ##
2122 ## Platform. ##
2123 ## --------- ##
2125 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2126 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2127 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2128 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2129 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2131 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2132 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2134 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2135 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2136 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2137 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2138 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2139 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2140 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2142 _ASUNAME
2144 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2145 for as_dir in $PATH
2147 IFS=$as_save_IFS
2148 test -z "$as_dir" && as_dir=.
2149 $as_echo "PATH: $as_dir"
2150 done
2151 IFS=$as_save_IFS
2153 } >&5
2155 cat >&5 <<_ACEOF
2158 ## ----------- ##
2159 ## Core tests. ##
2160 ## ----------- ##
2162 _ACEOF
2165 # Keep a trace of the command line.
2166 # Strip out --no-create and --no-recursion so they do not pile up.
2167 # Strip out --silent because we don't want to record it for future runs.
2168 # Also quote any args containing shell meta-characters.
2169 # Make two passes to allow for proper duplicate-argument suppression.
2170 ac_configure_args=
2171 ac_configure_args0=
2172 ac_configure_args1=
2173 ac_must_keep_next=false
2174 for ac_pass in 1 2
2176 for ac_arg
2178 case $ac_arg in
2179 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2180 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2181 | -silent | --silent | --silen | --sile | --sil)
2182 continue ;;
2183 *\'*)
2184 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2185 esac
2186 case $ac_pass in
2187 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2189 as_fn_append ac_configure_args1 " '$ac_arg'"
2190 if test $ac_must_keep_next = true; then
2191 ac_must_keep_next=false # Got value, back to normal.
2192 else
2193 case $ac_arg in
2194 *=* | --config-cache | -C | -disable-* | --disable-* \
2195 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2196 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2197 | -with-* | --with-* | -without-* | --without-* | --x)
2198 case "$ac_configure_args0 " in
2199 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2200 esac
2202 -* ) ac_must_keep_next=true ;;
2203 esac
2205 as_fn_append ac_configure_args " '$ac_arg'"
2207 esac
2208 done
2209 done
2210 { ac_configure_args0=; unset ac_configure_args0;}
2211 { ac_configure_args1=; unset ac_configure_args1;}
2213 # When interrupted or exit'd, cleanup temporary files, and complete
2214 # config.log. We remove comments because anyway the quotes in there
2215 # would cause problems or look ugly.
2216 # WARNING: Use '\'' to represent an apostrophe within the trap.
2217 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2218 trap 'exit_status=$?
2219 # Save into config.log some information that might help in debugging.
2221 echo
2223 cat <<\_ASBOX
2224 ## ---------------- ##
2225 ## Cache variables. ##
2226 ## ---------------- ##
2227 _ASBOX
2228 echo
2229 # The following way of writing the cache mishandles newlines in values,
2231 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2232 eval ac_val=\$$ac_var
2233 case $ac_val in #(
2234 *${as_nl}*)
2235 case $ac_var in #(
2236 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2237 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2238 esac
2239 case $ac_var in #(
2240 _ | IFS | as_nl) ;; #(
2241 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2242 *) { eval $ac_var=; unset $ac_var;} ;;
2243 esac ;;
2244 esac
2245 done
2246 (set) 2>&1 |
2247 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2248 *${as_nl}ac_space=\ *)
2249 sed -n \
2250 "s/'\''/'\''\\\\'\'''\''/g;
2251 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2252 ;; #(
2254 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2256 esac |
2257 sort
2259 echo
2261 cat <<\_ASBOX
2262 ## ----------------- ##
2263 ## Output variables. ##
2264 ## ----------------- ##
2265 _ASBOX
2266 echo
2267 for ac_var in $ac_subst_vars
2269 eval ac_val=\$$ac_var
2270 case $ac_val in
2271 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2272 esac
2273 $as_echo "$ac_var='\''$ac_val'\''"
2274 done | sort
2275 echo
2277 if test -n "$ac_subst_files"; then
2278 cat <<\_ASBOX
2279 ## ------------------- ##
2280 ## File substitutions. ##
2281 ## ------------------- ##
2282 _ASBOX
2283 echo
2284 for ac_var in $ac_subst_files
2286 eval ac_val=\$$ac_var
2287 case $ac_val in
2288 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2289 esac
2290 $as_echo "$ac_var='\''$ac_val'\''"
2291 done | sort
2292 echo
2295 if test -s confdefs.h; then
2296 cat <<\_ASBOX
2297 ## ----------- ##
2298 ## confdefs.h. ##
2299 ## ----------- ##
2300 _ASBOX
2301 echo
2302 cat confdefs.h
2303 echo
2305 test "$ac_signal" != 0 &&
2306 $as_echo "$as_me: caught signal $ac_signal"
2307 $as_echo "$as_me: exit $exit_status"
2308 } >&5
2309 rm -f core *.core core.conftest.* &&
2310 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2311 exit $exit_status
2313 for ac_signal in 1 2 13 15; do
2314 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2315 done
2316 ac_signal=0
2318 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2319 rm -f -r conftest* confdefs.h
2321 $as_echo "/* confdefs.h */" > confdefs.h
2323 # Predefined preprocessor variables.
2325 cat >>confdefs.h <<_ACEOF
2326 #define PACKAGE_NAME "$PACKAGE_NAME"
2327 _ACEOF
2329 cat >>confdefs.h <<_ACEOF
2330 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2331 _ACEOF
2333 cat >>confdefs.h <<_ACEOF
2334 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2335 _ACEOF
2337 cat >>confdefs.h <<_ACEOF
2338 #define PACKAGE_STRING "$PACKAGE_STRING"
2339 _ACEOF
2341 cat >>confdefs.h <<_ACEOF
2342 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2343 _ACEOF
2345 cat >>confdefs.h <<_ACEOF
2346 #define PACKAGE_URL "$PACKAGE_URL"
2347 _ACEOF
2350 # Let the site file select an alternate cache file if it wants to.
2351 # Prefer an explicitly selected file to automatically selected ones.
2352 ac_site_file1=NONE
2353 ac_site_file2=NONE
2354 if test -n "$CONFIG_SITE"; then
2355 ac_site_file1=$CONFIG_SITE
2356 elif test "x$prefix" != xNONE; then
2357 ac_site_file1=$prefix/share/config.site
2358 ac_site_file2=$prefix/etc/config.site
2359 else
2360 ac_site_file1=$ac_default_prefix/share/config.site
2361 ac_site_file2=$ac_default_prefix/etc/config.site
2363 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2365 test "x$ac_site_file" = xNONE && continue
2366 if test -r "$ac_site_file"; then
2367 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2368 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2369 sed 's/^/| /' "$ac_site_file" >&5
2370 . "$ac_site_file"
2372 done
2374 if test -r "$cache_file"; then
2375 # Some versions of bash will fail to source /dev/null (special
2376 # files actually), so we avoid doing that.
2377 if test -f "$cache_file"; then
2378 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2379 $as_echo "$as_me: loading cache $cache_file" >&6;}
2380 case $cache_file in
2381 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2382 *) . "./$cache_file";;
2383 esac
2385 else
2386 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2387 $as_echo "$as_me: creating cache $cache_file" >&6;}
2388 >$cache_file
2391 # Check that the precious variables saved in the cache have kept the same
2392 # value.
2393 ac_cache_corrupted=false
2394 for ac_var in $ac_precious_vars; do
2395 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2396 eval ac_new_set=\$ac_env_${ac_var}_set
2397 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2398 eval ac_new_val=\$ac_env_${ac_var}_value
2399 case $ac_old_set,$ac_new_set in
2400 set,)
2401 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2402 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2403 ac_cache_corrupted=: ;;
2404 ,set)
2405 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2406 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2407 ac_cache_corrupted=: ;;
2408 ,);;
2410 if test "x$ac_old_val" != "x$ac_new_val"; then
2411 # differences in whitespace do not lead to failure.
2412 ac_old_val_w=`echo x $ac_old_val`
2413 ac_new_val_w=`echo x $ac_new_val`
2414 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2415 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2416 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2417 ac_cache_corrupted=:
2418 else
2419 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2420 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2421 eval $ac_var=\$ac_old_val
2423 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2424 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2425 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2426 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2427 fi;;
2428 esac
2429 # Pass precious variables to config.status.
2430 if test "$ac_new_set" = set; then
2431 case $ac_new_val in
2432 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2433 *) ac_arg=$ac_var=$ac_new_val ;;
2434 esac
2435 case " $ac_configure_args " in
2436 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2437 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2438 esac
2440 done
2441 if $ac_cache_corrupted; then
2442 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2443 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2444 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2445 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2446 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2448 ## -------------------- ##
2449 ## Main body of script. ##
2450 ## -------------------- ##
2452 ac_ext=c
2453 ac_cpp='$CPP $CPPFLAGS'
2454 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2455 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2456 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2464 ac_aux_dir=
2465 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2466 for ac_t in install-sh install.sh shtool; do
2467 if test -f "$ac_dir/$ac_t"; then
2468 ac_aux_dir=$ac_dir
2469 ac_install_sh="$ac_aux_dir/$ac_t -c"
2470 break 2
2472 done
2473 done
2474 if test -z "$ac_aux_dir"; then
2475 as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2478 # These three variables are undocumented and unsupported,
2479 # and are intended to be withdrawn in a future Autoconf release.
2480 # They can cause serious problems if a builder's source tree is in a directory
2481 # whose full name contains unusual characters.
2482 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2483 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2484 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2487 # Make sure we can run config.sub.
2488 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2489 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2491 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2492 $as_echo_n "checking build system type... " >&6; }
2493 if test "${ac_cv_build+set}" = set; then :
2494 $as_echo_n "(cached) " >&6
2495 else
2496 ac_build_alias=$build_alias
2497 test "x$ac_build_alias" = x &&
2498 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2499 test "x$ac_build_alias" = x &&
2500 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
2501 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2502 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2506 $as_echo "$ac_cv_build" >&6; }
2507 case $ac_cv_build in
2508 *-*-*) ;;
2509 *) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
2510 esac
2511 build=$ac_cv_build
2512 ac_save_IFS=$IFS; IFS='-'
2513 set x $ac_cv_build
2514 shift
2515 build_cpu=$1
2516 build_vendor=$2
2517 shift; shift
2518 # Remember, the first character of IFS is used to create $*,
2519 # except with old shells:
2520 build_os=$*
2521 IFS=$ac_save_IFS
2522 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2525 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2526 $as_echo_n "checking host system type... " >&6; }
2527 if test "${ac_cv_host+set}" = set; then :
2528 $as_echo_n "(cached) " >&6
2529 else
2530 if test "x$host_alias" = x; then
2531 ac_cv_host=$ac_cv_build
2532 else
2533 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2534 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2539 $as_echo "$ac_cv_host" >&6; }
2540 case $ac_cv_host in
2541 *-*-*) ;;
2542 *) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
2543 esac
2544 host=$ac_cv_host
2545 ac_save_IFS=$IFS; IFS='-'
2546 set x $ac_cv_host
2547 shift
2548 host_cpu=$1
2549 host_vendor=$2
2550 shift; shift
2551 # Remember, the first character of IFS is used to create $*,
2552 # except with old shells:
2553 host_os=$*
2554 IFS=$ac_save_IFS
2555 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2558 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2559 $as_echo_n "checking target system type... " >&6; }
2560 if test "${ac_cv_target+set}" = set; then :
2561 $as_echo_n "(cached) " >&6
2562 else
2563 if test "x$target_alias" = x; then
2564 ac_cv_target=$ac_cv_host
2565 else
2566 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2567 as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2572 $as_echo "$ac_cv_target" >&6; }
2573 case $ac_cv_target in
2574 *-*-*) ;;
2575 *) as_fn_error "invalid value of canonical target" "$LINENO" 5;;
2576 esac
2577 target=$ac_cv_target
2578 ac_save_IFS=$IFS; IFS='-'
2579 set x $ac_cv_target
2580 shift
2581 target_cpu=$1
2582 target_vendor=$2
2583 shift; shift
2584 # Remember, the first character of IFS is used to create $*,
2585 # except with old shells:
2586 target_os=$*
2587 IFS=$ac_save_IFS
2588 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2591 # The aliases save the names the user supplied, while $host etc.
2592 # will get canonicalized.
2593 test -n "$target_alias" &&
2594 test "$program_prefix$program_suffix$program_transform_name" = \
2595 NONENONEs,x,x, &&
2596 program_prefix=${target_alias}-
2598 ac_ext=c
2599 ac_cpp='$CPP $CPPFLAGS'
2600 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2601 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2602 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2603 if test -n "$ac_tool_prefix"; then
2604 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2605 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2606 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2607 $as_echo_n "checking for $ac_word... " >&6; }
2608 if test "${ac_cv_prog_CC+set}" = set; then :
2609 $as_echo_n "(cached) " >&6
2610 else
2611 if test -n "$CC"; then
2612 ac_cv_prog_CC="$CC" # Let the user override the test.
2613 else
2614 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2615 for as_dir in $PATH
2617 IFS=$as_save_IFS
2618 test -z "$as_dir" && as_dir=.
2619 for ac_exec_ext in '' $ac_executable_extensions; do
2620 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2621 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2622 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2623 break 2
2625 done
2626 done
2627 IFS=$as_save_IFS
2631 CC=$ac_cv_prog_CC
2632 if test -n "$CC"; then
2633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2634 $as_echo "$CC" >&6; }
2635 else
2636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2637 $as_echo "no" >&6; }
2642 if test -z "$ac_cv_prog_CC"; then
2643 ac_ct_CC=$CC
2644 # Extract the first word of "gcc", so it can be a program name with args.
2645 set dummy gcc; ac_word=$2
2646 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2647 $as_echo_n "checking for $ac_word... " >&6; }
2648 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
2649 $as_echo_n "(cached) " >&6
2650 else
2651 if test -n "$ac_ct_CC"; then
2652 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2653 else
2654 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2655 for as_dir in $PATH
2657 IFS=$as_save_IFS
2658 test -z "$as_dir" && as_dir=.
2659 for ac_exec_ext in '' $ac_executable_extensions; do
2660 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2661 ac_cv_prog_ac_ct_CC="gcc"
2662 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2663 break 2
2665 done
2666 done
2667 IFS=$as_save_IFS
2671 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2672 if test -n "$ac_ct_CC"; then
2673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2674 $as_echo "$ac_ct_CC" >&6; }
2675 else
2676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2677 $as_echo "no" >&6; }
2680 if test "x$ac_ct_CC" = x; then
2681 CC=""
2682 else
2683 case $cross_compiling:$ac_tool_warned in
2684 yes:)
2685 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2686 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2687 ac_tool_warned=yes ;;
2688 esac
2689 CC=$ac_ct_CC
2691 else
2692 CC="$ac_cv_prog_CC"
2695 if test -z "$CC"; then
2696 if test -n "$ac_tool_prefix"; then
2697 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2698 set dummy ${ac_tool_prefix}cc; ac_word=$2
2699 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2700 $as_echo_n "checking for $ac_word... " >&6; }
2701 if test "${ac_cv_prog_CC+set}" = set; then :
2702 $as_echo_n "(cached) " >&6
2703 else
2704 if test -n "$CC"; then
2705 ac_cv_prog_CC="$CC" # Let the user override the test.
2706 else
2707 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2708 for as_dir in $PATH
2710 IFS=$as_save_IFS
2711 test -z "$as_dir" && as_dir=.
2712 for ac_exec_ext in '' $ac_executable_extensions; do
2713 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2714 ac_cv_prog_CC="${ac_tool_prefix}cc"
2715 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2716 break 2
2718 done
2719 done
2720 IFS=$as_save_IFS
2724 CC=$ac_cv_prog_CC
2725 if test -n "$CC"; then
2726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2727 $as_echo "$CC" >&6; }
2728 else
2729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2730 $as_echo "no" >&6; }
2736 if test -z "$CC"; then
2737 # Extract the first word of "cc", so it can be a program name with args.
2738 set dummy cc; ac_word=$2
2739 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2740 $as_echo_n "checking for $ac_word... " >&6; }
2741 if test "${ac_cv_prog_CC+set}" = set; then :
2742 $as_echo_n "(cached) " >&6
2743 else
2744 if test -n "$CC"; then
2745 ac_cv_prog_CC="$CC" # Let the user override the test.
2746 else
2747 ac_prog_rejected=no
2748 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2749 for as_dir in $PATH
2751 IFS=$as_save_IFS
2752 test -z "$as_dir" && as_dir=.
2753 for ac_exec_ext in '' $ac_executable_extensions; do
2754 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2755 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2756 ac_prog_rejected=yes
2757 continue
2759 ac_cv_prog_CC="cc"
2760 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2761 break 2
2763 done
2764 done
2765 IFS=$as_save_IFS
2767 if test $ac_prog_rejected = yes; then
2768 # We found a bogon in the path, so make sure we never use it.
2769 set dummy $ac_cv_prog_CC
2770 shift
2771 if test $# != 0; then
2772 # We chose a different compiler from the bogus one.
2773 # However, it has the same basename, so the bogon will be chosen
2774 # first if we set CC to just the basename; use the full file name.
2775 shift
2776 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2781 CC=$ac_cv_prog_CC
2782 if test -n "$CC"; then
2783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2784 $as_echo "$CC" >&6; }
2785 else
2786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2787 $as_echo "no" >&6; }
2792 if test -z "$CC"; then
2793 if test -n "$ac_tool_prefix"; then
2794 for ac_prog in cl.exe
2796 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2797 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2798 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2799 $as_echo_n "checking for $ac_word... " >&6; }
2800 if test "${ac_cv_prog_CC+set}" = set; then :
2801 $as_echo_n "(cached) " >&6
2802 else
2803 if test -n "$CC"; then
2804 ac_cv_prog_CC="$CC" # Let the user override the test.
2805 else
2806 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2807 for as_dir in $PATH
2809 IFS=$as_save_IFS
2810 test -z "$as_dir" && as_dir=.
2811 for ac_exec_ext in '' $ac_executable_extensions; do
2812 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2813 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2814 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2815 break 2
2817 done
2818 done
2819 IFS=$as_save_IFS
2823 CC=$ac_cv_prog_CC
2824 if test -n "$CC"; then
2825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2826 $as_echo "$CC" >&6; }
2827 else
2828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2829 $as_echo "no" >&6; }
2833 test -n "$CC" && break
2834 done
2836 if test -z "$CC"; then
2837 ac_ct_CC=$CC
2838 for ac_prog in cl.exe
2840 # Extract the first word of "$ac_prog", so it can be a program name with args.
2841 set dummy $ac_prog; ac_word=$2
2842 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2843 $as_echo_n "checking for $ac_word... " >&6; }
2844 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
2845 $as_echo_n "(cached) " >&6
2846 else
2847 if test -n "$ac_ct_CC"; then
2848 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2849 else
2850 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2851 for as_dir in $PATH
2853 IFS=$as_save_IFS
2854 test -z "$as_dir" && as_dir=.
2855 for ac_exec_ext in '' $ac_executable_extensions; do
2856 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2857 ac_cv_prog_ac_ct_CC="$ac_prog"
2858 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2859 break 2
2861 done
2862 done
2863 IFS=$as_save_IFS
2867 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2868 if test -n "$ac_ct_CC"; then
2869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2870 $as_echo "$ac_ct_CC" >&6; }
2871 else
2872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2873 $as_echo "no" >&6; }
2877 test -n "$ac_ct_CC" && break
2878 done
2880 if test "x$ac_ct_CC" = x; then
2881 CC=""
2882 else
2883 case $cross_compiling:$ac_tool_warned in
2884 yes:)
2885 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2886 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2887 ac_tool_warned=yes ;;
2888 esac
2889 CC=$ac_ct_CC
2896 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2897 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2898 as_fn_error "no acceptable C compiler found in \$PATH
2899 See \`config.log' for more details." "$LINENO" 5; }
2901 # Provide some information about the compiler.
2902 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
2903 set X $ac_compile
2904 ac_compiler=$2
2905 for ac_option in --version -v -V -qversion; do
2906 { { ac_try="$ac_compiler $ac_option >&5"
2907 case "(($ac_try" in
2908 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2909 *) ac_try_echo=$ac_try;;
2910 esac
2911 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2912 $as_echo "$ac_try_echo"; } >&5
2913 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
2914 ac_status=$?
2915 if test -s conftest.err; then
2916 sed '10a\
2917 ... rest of stderr output deleted ...
2918 10q' conftest.err >conftest.er1
2919 cat conftest.er1 >&5
2920 rm -f conftest.er1 conftest.err
2922 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2923 test $ac_status = 0; }
2924 done
2926 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2927 /* end confdefs.h. */
2930 main ()
2934 return 0;
2936 _ACEOF
2937 ac_clean_files_save=$ac_clean_files
2938 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
2939 # Try to create an executable without -o first, disregard a.out.
2940 # It will help us diagnose broken compilers, and finding out an intuition
2941 # of exeext.
2942 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
2943 $as_echo_n "checking for C compiler default output file name... " >&6; }
2944 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2946 # The possible output files:
2947 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2949 ac_rmfiles=
2950 for ac_file in $ac_files
2952 case $ac_file in
2953 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2954 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2955 esac
2956 done
2957 rm -f $ac_rmfiles
2959 if { { ac_try="$ac_link_default"
2960 case "(($ac_try" in
2961 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2962 *) ac_try_echo=$ac_try;;
2963 esac
2964 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2965 $as_echo "$ac_try_echo"; } >&5
2966 (eval "$ac_link_default") 2>&5
2967 ac_status=$?
2968 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2969 test $ac_status = 0; }; then :
2970 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2971 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2972 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2973 # so that the user can short-circuit this test for compilers unknown to
2974 # Autoconf.
2975 for ac_file in $ac_files ''
2977 test -f "$ac_file" || continue
2978 case $ac_file in
2979 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
2981 [ab].out )
2982 # We found the default executable, but exeext='' is most
2983 # certainly right.
2984 break;;
2985 *.* )
2986 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2987 then :; else
2988 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2990 # We set ac_cv_exeext here because the later test for it is not
2991 # safe: cross compilers may not add the suffix if given an `-o'
2992 # argument, so we may need to know it at that point already.
2993 # Even if this section looks crufty: it has the advantage of
2994 # actually working.
2995 break;;
2997 break;;
2998 esac
2999 done
3000 test "$ac_cv_exeext" = no && ac_cv_exeext=
3002 else
3003 ac_file=''
3005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3006 $as_echo "$ac_file" >&6; }
3007 if test -z "$ac_file"; then :
3008 $as_echo "$as_me: failed program was:" >&5
3009 sed 's/^/| /' conftest.$ac_ext >&5
3011 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3012 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3013 { as_fn_set_status 77
3014 as_fn_error "C compiler cannot create executables
3015 See \`config.log' for more details." "$LINENO" 5; }; }
3017 ac_exeext=$ac_cv_exeext
3019 # Check that the compiler produces executables we can run. If not, either
3020 # the compiler is broken, or we cross compile.
3021 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3022 $as_echo_n "checking whether the C compiler works... " >&6; }
3023 # If not cross compiling, check that we can run a simple program.
3024 if test "$cross_compiling" != yes; then
3025 if { ac_try='./$ac_file'
3026 { { case "(($ac_try" in
3027 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3028 *) ac_try_echo=$ac_try;;
3029 esac
3030 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3031 $as_echo "$ac_try_echo"; } >&5
3032 (eval "$ac_try") 2>&5
3033 ac_status=$?
3034 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3035 test $ac_status = 0; }; }; then
3036 cross_compiling=no
3037 else
3038 if test "$cross_compiling" = maybe; then
3039 cross_compiling=yes
3040 else
3041 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3042 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3043 as_fn_error "cannot run C compiled programs.
3044 If you meant to cross compile, use \`--host'.
3045 See \`config.log' for more details." "$LINENO" 5; }
3049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3050 $as_echo "yes" >&6; }
3052 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
3053 ac_clean_files=$ac_clean_files_save
3054 # Check that the compiler produces executables we can run. If not, either
3055 # the compiler is broken, or we cross compile.
3056 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3057 $as_echo_n "checking whether we are cross compiling... " >&6; }
3058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3059 $as_echo "$cross_compiling" >&6; }
3061 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3062 $as_echo_n "checking for suffix of executables... " >&6; }
3063 if { { ac_try="$ac_link"
3064 case "(($ac_try" in
3065 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3066 *) ac_try_echo=$ac_try;;
3067 esac
3068 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3069 $as_echo "$ac_try_echo"; } >&5
3070 (eval "$ac_link") 2>&5
3071 ac_status=$?
3072 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3073 test $ac_status = 0; }; then :
3074 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3075 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3076 # work properly (i.e., refer to `conftest.exe'), while it won't with
3077 # `rm'.
3078 for ac_file in conftest.exe conftest conftest.*; do
3079 test -f "$ac_file" || continue
3080 case $ac_file in
3081 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3082 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3083 break;;
3084 * ) break;;
3085 esac
3086 done
3087 else
3088 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3089 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3090 as_fn_error "cannot compute suffix of executables: cannot compile and link
3091 See \`config.log' for more details." "$LINENO" 5; }
3093 rm -f conftest$ac_cv_exeext
3094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3095 $as_echo "$ac_cv_exeext" >&6; }
3097 rm -f conftest.$ac_ext
3098 EXEEXT=$ac_cv_exeext
3099 ac_exeext=$EXEEXT
3100 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3101 $as_echo_n "checking for suffix of object files... " >&6; }
3102 if test "${ac_cv_objext+set}" = set; then :
3103 $as_echo_n "(cached) " >&6
3104 else
3105 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3106 /* end confdefs.h. */
3109 main ()
3113 return 0;
3115 _ACEOF
3116 rm -f conftest.o conftest.obj
3117 if { { ac_try="$ac_compile"
3118 case "(($ac_try" in
3119 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3120 *) ac_try_echo=$ac_try;;
3121 esac
3122 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3123 $as_echo "$ac_try_echo"; } >&5
3124 (eval "$ac_compile") 2>&5
3125 ac_status=$?
3126 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3127 test $ac_status = 0; }; then :
3128 for ac_file in conftest.o conftest.obj conftest.*; do
3129 test -f "$ac_file" || continue;
3130 case $ac_file in
3131 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3132 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3133 break;;
3134 esac
3135 done
3136 else
3137 $as_echo "$as_me: failed program was:" >&5
3138 sed 's/^/| /' conftest.$ac_ext >&5
3140 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3141 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3142 as_fn_error "cannot compute suffix of object files: cannot compile
3143 See \`config.log' for more details." "$LINENO" 5; }
3145 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3148 $as_echo "$ac_cv_objext" >&6; }
3149 OBJEXT=$ac_cv_objext
3150 ac_objext=$OBJEXT
3151 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3152 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3153 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
3154 $as_echo_n "(cached) " >&6
3155 else
3156 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3157 /* end confdefs.h. */
3160 main ()
3162 #ifndef __GNUC__
3163 choke me
3164 #endif
3167 return 0;
3169 _ACEOF
3170 if ac_fn_c_try_compile "$LINENO"; then :
3171 ac_compiler_gnu=yes
3172 else
3173 ac_compiler_gnu=no
3175 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3176 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3180 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3181 if test $ac_compiler_gnu = yes; then
3182 GCC=yes
3183 else
3184 GCC=
3186 ac_test_CFLAGS=${CFLAGS+set}
3187 ac_save_CFLAGS=$CFLAGS
3188 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3189 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3190 if test "${ac_cv_prog_cc_g+set}" = set; then :
3191 $as_echo_n "(cached) " >&6
3192 else
3193 ac_save_c_werror_flag=$ac_c_werror_flag
3194 ac_c_werror_flag=yes
3195 ac_cv_prog_cc_g=no
3196 CFLAGS="-g"
3197 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3198 /* end confdefs.h. */
3201 main ()
3205 return 0;
3207 _ACEOF
3208 if ac_fn_c_try_compile "$LINENO"; then :
3209 ac_cv_prog_cc_g=yes
3210 else
3211 CFLAGS=""
3212 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3213 /* end confdefs.h. */
3216 main ()
3220 return 0;
3222 _ACEOF
3223 if ac_fn_c_try_compile "$LINENO"; then :
3225 else
3226 ac_c_werror_flag=$ac_save_c_werror_flag
3227 CFLAGS="-g"
3228 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3229 /* end confdefs.h. */
3232 main ()
3236 return 0;
3238 _ACEOF
3239 if ac_fn_c_try_compile "$LINENO"; then :
3240 ac_cv_prog_cc_g=yes
3242 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3244 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3246 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3247 ac_c_werror_flag=$ac_save_c_werror_flag
3249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3250 $as_echo "$ac_cv_prog_cc_g" >&6; }
3251 if test "$ac_test_CFLAGS" = set; then
3252 CFLAGS=$ac_save_CFLAGS
3253 elif test $ac_cv_prog_cc_g = yes; then
3254 if test "$GCC" = yes; then
3255 CFLAGS="-g -O2"
3256 else
3257 CFLAGS="-g"
3259 else
3260 if test "$GCC" = yes; then
3261 CFLAGS="-O2"
3262 else
3263 CFLAGS=
3266 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3267 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3268 if test "${ac_cv_prog_cc_c89+set}" = set; then :
3269 $as_echo_n "(cached) " >&6
3270 else
3271 ac_cv_prog_cc_c89=no
3272 ac_save_CC=$CC
3273 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3274 /* end confdefs.h. */
3275 #include <stdarg.h>
3276 #include <stdio.h>
3277 #include <sys/types.h>
3278 #include <sys/stat.h>
3279 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3280 struct buf { int x; };
3281 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3282 static char *e (p, i)
3283 char **p;
3284 int i;
3286 return p[i];
3288 static char *f (char * (*g) (char **, int), char **p, ...)
3290 char *s;
3291 va_list v;
3292 va_start (v,p);
3293 s = g (p, va_arg (v,int));
3294 va_end (v);
3295 return s;
3298 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3299 function prototypes and stuff, but not '\xHH' hex character constants.
3300 These don't provoke an error unfortunately, instead are silently treated
3301 as 'x'. The following induces an error, until -std is added to get
3302 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3303 array size at least. It's necessary to write '\x00'==0 to get something
3304 that's true only with -std. */
3305 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3307 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3308 inside strings and character constants. */
3309 #define FOO(x) 'x'
3310 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3312 int test (int i, double x);
3313 struct s1 {int (*f) (int a);};
3314 struct s2 {int (*f) (double a);};
3315 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3316 int argc;
3317 char **argv;
3319 main ()
3321 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3323 return 0;
3325 _ACEOF
3326 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3327 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3329 CC="$ac_save_CC $ac_arg"
3330 if ac_fn_c_try_compile "$LINENO"; then :
3331 ac_cv_prog_cc_c89=$ac_arg
3333 rm -f core conftest.err conftest.$ac_objext
3334 test "x$ac_cv_prog_cc_c89" != "xno" && break
3335 done
3336 rm -f conftest.$ac_ext
3337 CC=$ac_save_CC
3340 # AC_CACHE_VAL
3341 case "x$ac_cv_prog_cc_c89" in
3343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3344 $as_echo "none needed" >&6; } ;;
3345 xno)
3346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3347 $as_echo "unsupported" >&6; } ;;
3349 CC="$CC $ac_cv_prog_cc_c89"
3350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3351 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3352 esac
3353 if test "x$ac_cv_prog_cc_c89" != xno; then :
3357 ac_ext=c
3358 ac_cpp='$CPP $CPPFLAGS'
3359 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3360 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3361 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3364 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing strerror" >&5
3365 $as_echo_n "checking for library containing strerror... " >&6; }
3366 if test "${ac_cv_search_strerror+set}" = set; then :
3367 $as_echo_n "(cached) " >&6
3368 else
3369 ac_func_search_save_LIBS=$LIBS
3370 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3371 /* end confdefs.h. */
3373 /* Override any GCC internal prototype to avoid an error.
3374 Use char because int might match the return type of a GCC
3375 builtin and then its argument prototype would still apply. */
3376 #ifdef __cplusplus
3377 extern "C"
3378 #endif
3379 char strerror ();
3381 main ()
3383 return strerror ();
3385 return 0;
3387 _ACEOF
3388 for ac_lib in '' cposix; do
3389 if test -z "$ac_lib"; then
3390 ac_res="none required"
3391 else
3392 ac_res=-l$ac_lib
3393 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
3395 if ac_fn_c_try_link "$LINENO"; then :
3396 ac_cv_search_strerror=$ac_res
3398 rm -f core conftest.err conftest.$ac_objext \
3399 conftest$ac_exeext
3400 if test "${ac_cv_search_strerror+set}" = set; then :
3401 break
3403 done
3404 if test "${ac_cv_search_strerror+set}" = set; then :
3406 else
3407 ac_cv_search_strerror=no
3409 rm conftest.$ac_ext
3410 LIBS=$ac_func_search_save_LIBS
3412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_strerror" >&5
3413 $as_echo "$ac_cv_search_strerror" >&6; }
3414 ac_res=$ac_cv_search_strerror
3415 if test "$ac_res" != no; then :
3416 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
3421 BFD_VERSION=`sed -n -e 's/^.._INIT_AUTOMAKE.*,[ ]*\([^ ]*\)[ ]*).*/\1/p' < ${srcdir}/../bfd/configure.in`
3422 am__api_version='1.11'
3424 # Find a good install program. We prefer a C program (faster),
3425 # so one script is as good as another. But avoid the broken or
3426 # incompatible versions:
3427 # SysV /etc/install, /usr/sbin/install
3428 # SunOS /usr/etc/install
3429 # IRIX /sbin/install
3430 # AIX /bin/install
3431 # AmigaOS /C/install, which installs bootblocks on floppy discs
3432 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3433 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3434 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3435 # OS/2's system install, which has a completely different semantic
3436 # ./install, which can be erroneously created by make from ./install.sh.
3437 # Reject install programs that cannot install multiple files.
3438 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
3439 $as_echo_n "checking for a BSD-compatible install... " >&6; }
3440 if test -z "$INSTALL"; then
3441 if test "${ac_cv_path_install+set}" = set; then :
3442 $as_echo_n "(cached) " >&6
3443 else
3444 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3445 for as_dir in $PATH
3447 IFS=$as_save_IFS
3448 test -z "$as_dir" && as_dir=.
3449 # Account for people who put trailing slashes in PATH elements.
3450 case $as_dir/ in #((
3451 ./ | .// | /[cC]/* | \
3452 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3453 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
3454 /usr/ucb/* ) ;;
3456 # OSF1 and SCO ODT 3.0 have their own names for install.
3457 # Don't use installbsd from OSF since it installs stuff as root
3458 # by default.
3459 for ac_prog in ginstall scoinst install; do
3460 for ac_exec_ext in '' $ac_executable_extensions; do
3461 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
3462 if test $ac_prog = install &&
3463 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3464 # AIX install. It has an incompatible calling convention.
3466 elif test $ac_prog = install &&
3467 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3468 # program-specific install script used by HP pwplus--don't use.
3470 else
3471 rm -rf conftest.one conftest.two conftest.dir
3472 echo one > conftest.one
3473 echo two > conftest.two
3474 mkdir conftest.dir
3475 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
3476 test -s conftest.one && test -s conftest.two &&
3477 test -s conftest.dir/conftest.one &&
3478 test -s conftest.dir/conftest.two
3479 then
3480 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3481 break 3
3485 done
3486 done
3488 esac
3490 done
3491 IFS=$as_save_IFS
3493 rm -rf conftest.one conftest.two conftest.dir
3496 if test "${ac_cv_path_install+set}" = set; then
3497 INSTALL=$ac_cv_path_install
3498 else
3499 # As a last resort, use the slow shell script. Don't cache a
3500 # value for INSTALL within a source directory, because that will
3501 # break other packages using the cache if that directory is
3502 # removed, or if the value is a relative name.
3503 INSTALL=$ac_install_sh
3506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
3507 $as_echo "$INSTALL" >&6; }
3509 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3510 # It thinks the first close brace ends the variable substitution.
3511 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3513 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3515 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3517 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
3518 $as_echo_n "checking whether build environment is sane... " >&6; }
3519 # Just in case
3520 sleep 1
3521 echo timestamp > conftest.file
3522 # Reject unsafe characters in $srcdir or the absolute working directory
3523 # name. Accept space and tab only in the latter.
3524 am_lf='
3526 case `pwd` in
3527 *[\\\"\#\$\&\'\`$am_lf]*)
3528 as_fn_error "unsafe absolute working directory name" "$LINENO" 5;;
3529 esac
3530 case $srcdir in
3531 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
3532 as_fn_error "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
3533 esac
3535 # Do `set' in a subshell so we don't clobber the current shell's
3536 # arguments. Must try -L first in case configure is actually a
3537 # symlink; some systems play weird games with the mod time of symlinks
3538 # (eg FreeBSD returns the mod time of the symlink's containing
3539 # directory).
3540 if (
3541 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
3542 if test "$*" = "X"; then
3543 # -L didn't work.
3544 set X `ls -t "$srcdir/configure" conftest.file`
3546 rm -f conftest.file
3547 if test "$*" != "X $srcdir/configure conftest.file" \
3548 && test "$*" != "X conftest.file $srcdir/configure"; then
3550 # If neither matched, then we have a broken ls. This can happen
3551 # if, for instance, CONFIG_SHELL is bash and it inherits a
3552 # broken ls alias from the environment. This has actually
3553 # happened. Such a system could not be considered "sane".
3554 as_fn_error "ls -t appears to fail. Make sure there is not a broken
3555 alias in your environment" "$LINENO" 5
3558 test "$2" = conftest.file
3560 then
3561 # Ok.
3563 else
3564 as_fn_error "newly created file is older than distributed files!
3565 Check your system clock" "$LINENO" 5
3567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3568 $as_echo "yes" >&6; }
3569 test "$program_prefix" != NONE &&
3570 program_transform_name="s&^&$program_prefix&;$program_transform_name"
3571 # Use a double $ so make ignores it.
3572 test "$program_suffix" != NONE &&
3573 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3574 # Double any \ or $.
3575 # By default was `s,x,x', remove it if useless.
3576 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3577 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
3579 # expand $ac_aux_dir to an absolute path
3580 am_aux_dir=`cd $ac_aux_dir && pwd`
3582 if test x"${MISSING+set}" != xset; then
3583 case $am_aux_dir in
3584 *\ * | *\ *)
3585 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
3587 MISSING="\${SHELL} $am_aux_dir/missing" ;;
3588 esac
3590 # Use eval to expand $SHELL
3591 if eval "$MISSING --run true"; then
3592 am_missing_run="$MISSING --run "
3593 else
3594 am_missing_run=
3595 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
3596 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
3599 if test x"${install_sh}" != xset; then
3600 case $am_aux_dir in
3601 *\ * | *\ *)
3602 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
3604 install_sh="\${SHELL} $am_aux_dir/install-sh"
3605 esac
3608 # Installed binaries are usually stripped using `strip' when the user
3609 # run `make install-strip'. However `strip' might not be the right
3610 # tool to use in cross-compilation environments, therefore Automake
3611 # will honor the `STRIP' environment variable to overrule this program.
3612 if test "$cross_compiling" != no; then
3613 if test -n "$ac_tool_prefix"; then
3614 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3615 set dummy ${ac_tool_prefix}strip; ac_word=$2
3616 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3617 $as_echo_n "checking for $ac_word... " >&6; }
3618 if test "${ac_cv_prog_STRIP+set}" = set; then :
3619 $as_echo_n "(cached) " >&6
3620 else
3621 if test -n "$STRIP"; then
3622 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3623 else
3624 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3625 for as_dir in $PATH
3627 IFS=$as_save_IFS
3628 test -z "$as_dir" && as_dir=.
3629 for ac_exec_ext in '' $ac_executable_extensions; do
3630 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3631 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3632 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3633 break 2
3635 done
3636 done
3637 IFS=$as_save_IFS
3641 STRIP=$ac_cv_prog_STRIP
3642 if test -n "$STRIP"; then
3643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3644 $as_echo "$STRIP" >&6; }
3645 else
3646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3647 $as_echo "no" >&6; }
3652 if test -z "$ac_cv_prog_STRIP"; then
3653 ac_ct_STRIP=$STRIP
3654 # Extract the first word of "strip", so it can be a program name with args.
3655 set dummy strip; ac_word=$2
3656 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3657 $as_echo_n "checking for $ac_word... " >&6; }
3658 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
3659 $as_echo_n "(cached) " >&6
3660 else
3661 if test -n "$ac_ct_STRIP"; then
3662 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3663 else
3664 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3665 for as_dir in $PATH
3667 IFS=$as_save_IFS
3668 test -z "$as_dir" && as_dir=.
3669 for ac_exec_ext in '' $ac_executable_extensions; do
3670 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3671 ac_cv_prog_ac_ct_STRIP="strip"
3672 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3673 break 2
3675 done
3676 done
3677 IFS=$as_save_IFS
3681 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3682 if test -n "$ac_ct_STRIP"; then
3683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3684 $as_echo "$ac_ct_STRIP" >&6; }
3685 else
3686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3687 $as_echo "no" >&6; }
3690 if test "x$ac_ct_STRIP" = x; then
3691 STRIP=":"
3692 else
3693 case $cross_compiling:$ac_tool_warned in
3694 yes:)
3695 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3696 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3697 ac_tool_warned=yes ;;
3698 esac
3699 STRIP=$ac_ct_STRIP
3701 else
3702 STRIP="$ac_cv_prog_STRIP"
3706 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3708 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
3709 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3710 if test -z "$MKDIR_P"; then
3711 if test "${ac_cv_path_mkdir+set}" = set; then :
3712 $as_echo_n "(cached) " >&6
3713 else
3714 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3715 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3717 IFS=$as_save_IFS
3718 test -z "$as_dir" && as_dir=.
3719 for ac_prog in mkdir gmkdir; do
3720 for ac_exec_ext in '' $ac_executable_extensions; do
3721 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
3722 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3723 'mkdir (GNU coreutils) '* | \
3724 'mkdir (coreutils) '* | \
3725 'mkdir (fileutils) '4.1*)
3726 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
3727 break 3;;
3728 esac
3729 done
3730 done
3731 done
3732 IFS=$as_save_IFS
3736 if test "${ac_cv_path_mkdir+set}" = set; then
3737 MKDIR_P="$ac_cv_path_mkdir -p"
3738 else
3739 # As a last resort, use the slow shell script. Don't cache a
3740 # value for MKDIR_P within a source directory, because that will
3741 # break other packages using the cache if that directory is
3742 # removed, or if the value is a relative name.
3743 test -d ./--version && rmdir ./--version
3744 MKDIR_P="$ac_install_sh -d"
3747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3748 $as_echo "$MKDIR_P" >&6; }
3750 mkdir_p="$MKDIR_P"
3751 case $mkdir_p in
3752 [\\/$]* | ?:[\\/]*) ;;
3753 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
3754 esac
3756 for ac_prog in gawk mawk nawk awk
3758 # Extract the first word of "$ac_prog", so it can be a program name with args.
3759 set dummy $ac_prog; ac_word=$2
3760 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3761 $as_echo_n "checking for $ac_word... " >&6; }
3762 if test "${ac_cv_prog_AWK+set}" = set; then :
3763 $as_echo_n "(cached) " >&6
3764 else
3765 if test -n "$AWK"; then
3766 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3767 else
3768 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3769 for as_dir in $PATH
3771 IFS=$as_save_IFS
3772 test -z "$as_dir" && as_dir=.
3773 for ac_exec_ext in '' $ac_executable_extensions; do
3774 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3775 ac_cv_prog_AWK="$ac_prog"
3776 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3777 break 2
3779 done
3780 done
3781 IFS=$as_save_IFS
3785 AWK=$ac_cv_prog_AWK
3786 if test -n "$AWK"; then
3787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3788 $as_echo "$AWK" >&6; }
3789 else
3790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3791 $as_echo "no" >&6; }
3795 test -n "$AWK" && break
3796 done
3798 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3799 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3800 set x ${MAKE-make}
3801 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3802 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
3803 $as_echo_n "(cached) " >&6
3804 else
3805 cat >conftest.make <<\_ACEOF
3806 SHELL = /bin/sh
3807 all:
3808 @echo '@@@%%%=$(MAKE)=@@@%%%'
3809 _ACEOF
3810 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3811 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3812 *@@@%%%=?*=@@@%%%*)
3813 eval ac_cv_prog_make_${ac_make}_set=yes;;
3815 eval ac_cv_prog_make_${ac_make}_set=no;;
3816 esac
3817 rm -f conftest.make
3819 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3821 $as_echo "yes" >&6; }
3822 SET_MAKE=
3823 else
3824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3825 $as_echo "no" >&6; }
3826 SET_MAKE="MAKE=${MAKE-make}"
3829 rm -rf .tst 2>/dev/null
3830 mkdir .tst 2>/dev/null
3831 if test -d .tst; then
3832 am__leading_dot=.
3833 else
3834 am__leading_dot=_
3836 rmdir .tst 2>/dev/null
3838 DEPDIR="${am__leading_dot}deps"
3840 ac_config_commands="$ac_config_commands depfiles"
3843 am_make=${MAKE-make}
3844 cat > confinc << 'END'
3845 am__doit:
3846 @echo this is the am__doit target
3847 .PHONY: am__doit
3849 # If we don't find an include directive, just comment out the code.
3850 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3851 $as_echo_n "checking for style of include used by $am_make... " >&6; }
3852 am__include="#"
3853 am__quote=
3854 _am_result=none
3855 # First try GNU make style include.
3856 echo "include confinc" > confmf
3857 # Ignore all kinds of additional output from `make'.
3858 case `$am_make -s -f confmf 2> /dev/null` in #(
3859 *the\ am__doit\ target*)
3860 am__include=include
3861 am__quote=
3862 _am_result=GNU
3864 esac
3865 # Now try BSD make style include.
3866 if test "$am__include" = "#"; then
3867 echo '.include "confinc"' > confmf
3868 case `$am_make -s -f confmf 2> /dev/null` in #(
3869 *the\ am__doit\ target*)
3870 am__include=.include
3871 am__quote="\""
3872 _am_result=BSD
3874 esac
3878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3879 $as_echo "$_am_result" >&6; }
3880 rm -f confinc confmf
3882 # Check whether --enable-dependency-tracking was given.
3883 if test "${enable_dependency_tracking+set}" = set; then :
3884 enableval=$enable_dependency_tracking;
3887 if test "x$enable_dependency_tracking" != xno; then
3888 am_depcomp="$ac_aux_dir/depcomp"
3889 AMDEPBACKSLASH='\'
3891 if test "x$enable_dependency_tracking" != xno; then
3892 AMDEP_TRUE=
3893 AMDEP_FALSE='#'
3894 else
3895 AMDEP_TRUE='#'
3896 AMDEP_FALSE=
3900 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3901 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3902 # is not polluted with repeated "-I."
3903 am__isrc=' -I$(srcdir)'
3904 # test to see if srcdir already configured
3905 if test -f $srcdir/config.status; then
3906 as_fn_error "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3910 # test whether we have cygpath
3911 if test -z "$CYGPATH_W"; then
3912 if (cygpath --version) >/dev/null 2>/dev/null; then
3913 CYGPATH_W='cygpath -w'
3914 else
3915 CYGPATH_W=echo
3920 # Define the identity of the package.
3921 PACKAGE=ld
3922 VERSION=${BFD_VERSION}
3925 cat >>confdefs.h <<_ACEOF
3926 #define PACKAGE "$PACKAGE"
3927 _ACEOF
3930 cat >>confdefs.h <<_ACEOF
3931 #define VERSION "$VERSION"
3932 _ACEOF
3934 # Some tools Automake needs.
3936 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3939 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3942 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3945 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3948 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3950 # We need awk for the "check" target. The system "awk" is bad on
3951 # some platforms.
3952 # Always define AMTAR for backward compatibility.
3954 AMTAR=${AMTAR-"${am_missing_run}tar"}
3956 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
3961 depcc="$CC" am_compiler_list=
3963 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3964 $as_echo_n "checking dependency style of $depcc... " >&6; }
3965 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
3966 $as_echo_n "(cached) " >&6
3967 else
3968 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3969 # We make a subdir and do the tests there. Otherwise we can end up
3970 # making bogus files that we don't know about and never remove. For
3971 # instance it was reported that on HP-UX the gcc test will end up
3972 # making a dummy file named `D' -- because `-MD' means `put the output
3973 # in D'.
3974 mkdir conftest.dir
3975 # Copy depcomp to subdir because otherwise we won't find it if we're
3976 # using a relative directory.
3977 cp "$am_depcomp" conftest.dir
3978 cd conftest.dir
3979 # We will build objects and dependencies in a subdirectory because
3980 # it helps to detect inapplicable dependency modes. For instance
3981 # both Tru64's cc and ICC support -MD to output dependencies as a
3982 # side effect of compilation, but ICC will put the dependencies in
3983 # the current directory while Tru64 will put them in the object
3984 # directory.
3985 mkdir sub
3987 am_cv_CC_dependencies_compiler_type=none
3988 if test "$am_compiler_list" = ""; then
3989 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3991 am__universal=false
3992 case " $depcc " in #(
3993 *\ -arch\ *\ -arch\ *) am__universal=true ;;
3994 esac
3996 for depmode in $am_compiler_list; do
3997 # Setup a source with many dependencies, because some compilers
3998 # like to wrap large dependency lists on column 80 (with \), and
3999 # we should not choose a depcomp mode which is confused by this.
4001 # We need to recreate these files for each test, as the compiler may
4002 # overwrite some of them when testing with obscure command lines.
4003 # This happens at least with the AIX C compiler.
4004 : > sub/conftest.c
4005 for i in 1 2 3 4 5 6; do
4006 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4007 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4008 # Solaris 8's {/usr,}/bin/sh.
4009 touch sub/conftst$i.h
4010 done
4011 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4013 # We check with `-c' and `-o' for the sake of the "dashmstdout"
4014 # mode. It turns out that the SunPro C++ compiler does not properly
4015 # handle `-M -o', and we need to detect this. Also, some Intel
4016 # versions had trouble with output in subdirs
4017 am__obj=sub/conftest.${OBJEXT-o}
4018 am__minus_obj="-o $am__obj"
4019 case $depmode in
4020 gcc)
4021 # This depmode causes a compiler race in universal mode.
4022 test "$am__universal" = false || continue
4024 nosideeffect)
4025 # after this tag, mechanisms are not by side-effect, so they'll
4026 # only be used when explicitly requested
4027 if test "x$enable_dependency_tracking" = xyes; then
4028 continue
4029 else
4030 break
4033 msvisualcpp | msvcmsys)
4034 # This compiler won't grok `-c -o', but also, the minuso test has
4035 # not run yet. These depmodes are late enough in the game, and
4036 # so weak that their functioning should not be impacted.
4037 am__obj=conftest.${OBJEXT-o}
4038 am__minus_obj=
4040 none) break ;;
4041 esac
4042 if depmode=$depmode \
4043 source=sub/conftest.c object=$am__obj \
4044 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4045 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4046 >/dev/null 2>conftest.err &&
4047 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4048 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4049 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4050 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4051 # icc doesn't choke on unknown options, it will just issue warnings
4052 # or remarks (even with -Werror). So we grep stderr for any message
4053 # that says an option was ignored or not supported.
4054 # When given -MP, icc 7.0 and 7.1 complain thusly:
4055 # icc: Command line warning: ignoring option '-M'; no argument required
4056 # The diagnosis changed in icc 8.0:
4057 # icc: Command line remark: option '-MP' not supported
4058 if (grep 'ignoring option' conftest.err ||
4059 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4060 am_cv_CC_dependencies_compiler_type=$depmode
4061 break
4064 done
4066 cd ..
4067 rm -rf conftest.dir
4068 else
4069 am_cv_CC_dependencies_compiler_type=none
4073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4074 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4075 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4078 test "x$enable_dependency_tracking" != xno \
4079 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4080 am__fastdepCC_TRUE=
4081 am__fastdepCC_FALSE='#'
4082 else
4083 am__fastdepCC_TRUE='#'
4084 am__fastdepCC_FALSE=
4090 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
4091 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
4092 # Check whether --enable-maintainer-mode was given.
4093 if test "${enable_maintainer_mode+set}" = set; then :
4094 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
4095 else
4096 USE_MAINTAINER_MODE=no
4099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
4100 $as_echo "$USE_MAINTAINER_MODE" >&6; }
4101 if test $USE_MAINTAINER_MODE = yes; then
4102 MAINTAINER_MODE_TRUE=
4103 MAINTAINER_MODE_FALSE='#'
4104 else
4105 MAINTAINER_MODE_TRUE='#'
4106 MAINTAINER_MODE_FALSE=
4109 MAINT=$MAINTAINER_MODE_TRUE
4114 # Check whether --with-lib-path was given.
4115 if test "${with_lib_path+set}" = set; then :
4116 withval=$with_lib_path; LIB_PATH=$withval
4119 # Check whether --enable-targets was given.
4120 if test "${enable_targets+set}" = set; then :
4121 enableval=$enable_targets; case "${enableval}" in
4122 yes | "") as_fn_error "enable-targets option must specify target names or 'all'" "$LINENO" 5
4124 no) enable_targets= ;;
4125 *) enable_targets=$enableval ;;
4126 esac
4128 # Check whether --enable-64-bit-bfd was given.
4129 if test "${enable_64_bit_bfd+set}" = set; then :
4130 enableval=$enable_64_bit_bfd; case "${enableval}" in
4131 yes) want64=true ;;
4132 no) want64=false ;;
4133 *) as_fn_error "bad value ${enableval} for 64-bit-bfd option" "$LINENO" 5 ;;
4134 esac
4135 else
4136 want64=false
4140 # Check whether --with-sysroot was given.
4141 if test "${with_sysroot+set}" = set; then :
4142 withval=$with_sysroot;
4143 case ${with_sysroot} in
4144 yes) TARGET_SYSTEM_ROOT='${exec_prefix}/${target_alias}/sys-root' ;;
4145 *) TARGET_SYSTEM_ROOT=$with_sysroot ;;
4146 esac
4148 TARGET_SYSTEM_ROOT_DEFINE='-DTARGET_SYSTEM_ROOT=\"$(TARGET_SYSTEM_ROOT)\"'
4149 use_sysroot=yes
4151 if test "x$prefix" = xNONE; then
4152 test_prefix=/usr/local
4153 else
4154 test_prefix=$prefix
4156 if test "x$exec_prefix" = xNONE; then
4157 test_exec_prefix=$test_prefix
4158 else
4159 test_exec_prefix=$exec_prefix
4161 case ${TARGET_SYSTEM_ROOT} in
4162 "${test_prefix}"|"${test_prefix}/"*|\
4163 "${test_exec_prefix}"|"${test_exec_prefix}/"*|\
4164 '${prefix}'|'${prefix}/'*|\
4165 '${exec_prefix}'|'${exec_prefix}/'*)
4166 t="$TARGET_SYSTEM_ROOT_DEFINE -DTARGET_SYSTEM_ROOT_RELOCATABLE"
4167 TARGET_SYSTEM_ROOT_DEFINE="$t"
4169 esac
4171 else
4173 use_sysroot=no
4174 TARGET_SYSTEM_ROOT=
4175 TARGET_SYSTEM_ROOT_DEFINE='-DTARGET_SYSTEM_ROOT=\"\"'
4183 # Check whether --enable-gold was given.
4184 if test "${enable_gold+set}" = set; then :
4185 enableval=$enable_gold; case "${enableval}" in
4186 default)
4187 install_as_default=no
4188 installed_linker=ld.bfd
4190 yes|no)
4191 install_as_default=yes
4192 installed_linker=ld.bfd
4195 as_fn_error "invalid --enable-gold argument" "$LINENO" 5
4197 esac
4198 else
4199 install_as_default=yes
4200 installed_linker=ld.bfd
4206 # Check whether --enable-got was given.
4207 if test "${enable_got+set}" = set; then :
4208 enableval=$enable_got; case "${enableval}" in
4209 target | single | negative | multigot) got_handling=$enableval ;;
4210 *) as_fn_error "bad value ${enableval} for --enable-got option" "$LINENO" 5 ;;
4211 esac
4212 else
4213 got_handling=target
4217 case "${got_handling}" in
4218 target)
4220 $as_echo "#define GOT_HANDLING_DEFAULT GOT_HANDLING_TARGET_DEFAULT" >>confdefs.h
4222 single)
4224 $as_echo "#define GOT_HANDLING_DEFAULT GOT_HANDLING_SINGLE" >>confdefs.h
4226 negative)
4228 $as_echo "#define GOT_HANDLING_DEFAULT GOT_HANDLING_NEGATIVE" >>confdefs.h
4230 multigot)
4232 $as_echo "#define GOT_HANDLING_DEFAULT GOT_HANDLING_MULTIGOT" >>confdefs.h
4234 *) as_fn_error "bad value ${got_handling} for --enable-got option" "$LINENO" 5 ;;
4235 esac
4237 ac_ext=c
4238 ac_cpp='$CPP $CPPFLAGS'
4239 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4240 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4241 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4242 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4243 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4244 # On Suns, sometimes $CPP names a directory.
4245 if test -n "$CPP" && test -d "$CPP"; then
4246 CPP=
4248 if test -z "$CPP"; then
4249 if test "${ac_cv_prog_CPP+set}" = set; then :
4250 $as_echo_n "(cached) " >&6
4251 else
4252 # Double quotes because CPP needs to be expanded
4253 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4255 ac_preproc_ok=false
4256 for ac_c_preproc_warn_flag in '' yes
4258 # Use a header file that comes with gcc, so configuring glibc
4259 # with a fresh cross-compiler works.
4260 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4261 # <limits.h> exists even on freestanding compilers.
4262 # On the NeXT, cc -E runs the code through the compiler's parser,
4263 # not just through cpp. "Syntax error" is here to catch this case.
4264 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4265 /* end confdefs.h. */
4266 #ifdef __STDC__
4267 # include <limits.h>
4268 #else
4269 # include <assert.h>
4270 #endif
4271 Syntax error
4272 _ACEOF
4273 if ac_fn_c_try_cpp "$LINENO"; then :
4275 else
4276 # Broken: fails on valid input.
4277 continue
4279 rm -f conftest.err conftest.$ac_ext
4281 # OK, works on sane cases. Now check whether nonexistent headers
4282 # can be detected and how.
4283 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4284 /* end confdefs.h. */
4285 #include <ac_nonexistent.h>
4286 _ACEOF
4287 if ac_fn_c_try_cpp "$LINENO"; then :
4288 # Broken: success on invalid input.
4289 continue
4290 else
4291 # Passes both tests.
4292 ac_preproc_ok=:
4293 break
4295 rm -f conftest.err conftest.$ac_ext
4297 done
4298 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4299 rm -f conftest.err conftest.$ac_ext
4300 if $ac_preproc_ok; then :
4301 break
4304 done
4305 ac_cv_prog_CPP=$CPP
4308 CPP=$ac_cv_prog_CPP
4309 else
4310 ac_cv_prog_CPP=$CPP
4312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4313 $as_echo "$CPP" >&6; }
4314 ac_preproc_ok=false
4315 for ac_c_preproc_warn_flag in '' yes
4317 # Use a header file that comes with gcc, so configuring glibc
4318 # with a fresh cross-compiler works.
4319 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4320 # <limits.h> exists even on freestanding compilers.
4321 # On the NeXT, cc -E runs the code through the compiler's parser,
4322 # not just through cpp. "Syntax error" is here to catch this case.
4323 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4324 /* end confdefs.h. */
4325 #ifdef __STDC__
4326 # include <limits.h>
4327 #else
4328 # include <assert.h>
4329 #endif
4330 Syntax error
4331 _ACEOF
4332 if ac_fn_c_try_cpp "$LINENO"; then :
4334 else
4335 # Broken: fails on valid input.
4336 continue
4338 rm -f conftest.err conftest.$ac_ext
4340 # OK, works on sane cases. Now check whether nonexistent headers
4341 # can be detected and how.
4342 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4343 /* end confdefs.h. */
4344 #include <ac_nonexistent.h>
4345 _ACEOF
4346 if ac_fn_c_try_cpp "$LINENO"; then :
4347 # Broken: success on invalid input.
4348 continue
4349 else
4350 # Passes both tests.
4351 ac_preproc_ok=:
4352 break
4354 rm -f conftest.err conftest.$ac_ext
4356 done
4357 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4358 rm -f conftest.err conftest.$ac_ext
4359 if $ac_preproc_ok; then :
4361 else
4362 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4363 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4364 as_fn_error "C preprocessor \"$CPP\" fails sanity check
4365 See \`config.log' for more details." "$LINENO" 5; }
4368 ac_ext=c
4369 ac_cpp='$CPP $CPPFLAGS'
4370 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4371 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4372 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4375 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4376 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4377 if test "${ac_cv_path_GREP+set}" = set; then :
4378 $as_echo_n "(cached) " >&6
4379 else
4380 if test -z "$GREP"; then
4381 ac_path_GREP_found=false
4382 # Loop through the user's path and test for each of PROGNAME-LIST
4383 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4384 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4386 IFS=$as_save_IFS
4387 test -z "$as_dir" && as_dir=.
4388 for ac_prog in grep ggrep; do
4389 for ac_exec_ext in '' $ac_executable_extensions; do
4390 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4391 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4392 # Check for GNU ac_path_GREP and select it if it is found.
4393 # Check for GNU $ac_path_GREP
4394 case `"$ac_path_GREP" --version 2>&1` in
4395 *GNU*)
4396 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4398 ac_count=0
4399 $as_echo_n 0123456789 >"conftest.in"
4400 while :
4402 cat "conftest.in" "conftest.in" >"conftest.tmp"
4403 mv "conftest.tmp" "conftest.in"
4404 cp "conftest.in" "conftest.nl"
4405 $as_echo 'GREP' >> "conftest.nl"
4406 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4407 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4408 as_fn_arith $ac_count + 1 && ac_count=$as_val
4409 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4410 # Best one so far, save it but keep looking for a better one
4411 ac_cv_path_GREP="$ac_path_GREP"
4412 ac_path_GREP_max=$ac_count
4414 # 10*(2^10) chars as input seems more than enough
4415 test $ac_count -gt 10 && break
4416 done
4417 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4418 esac
4420 $ac_path_GREP_found && break 3
4421 done
4422 done
4423 done
4424 IFS=$as_save_IFS
4425 if test -z "$ac_cv_path_GREP"; then
4426 as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4428 else
4429 ac_cv_path_GREP=$GREP
4433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4434 $as_echo "$ac_cv_path_GREP" >&6; }
4435 GREP="$ac_cv_path_GREP"
4438 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4439 $as_echo_n "checking for egrep... " >&6; }
4440 if test "${ac_cv_path_EGREP+set}" = set; then :
4441 $as_echo_n "(cached) " >&6
4442 else
4443 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4444 then ac_cv_path_EGREP="$GREP -E"
4445 else
4446 if test -z "$EGREP"; then
4447 ac_path_EGREP_found=false
4448 # Loop through the user's path and test for each of PROGNAME-LIST
4449 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4450 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4452 IFS=$as_save_IFS
4453 test -z "$as_dir" && as_dir=.
4454 for ac_prog in egrep; do
4455 for ac_exec_ext in '' $ac_executable_extensions; do
4456 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4457 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4458 # Check for GNU ac_path_EGREP and select it if it is found.
4459 # Check for GNU $ac_path_EGREP
4460 case `"$ac_path_EGREP" --version 2>&1` in
4461 *GNU*)
4462 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4464 ac_count=0
4465 $as_echo_n 0123456789 >"conftest.in"
4466 while :
4468 cat "conftest.in" "conftest.in" >"conftest.tmp"
4469 mv "conftest.tmp" "conftest.in"
4470 cp "conftest.in" "conftest.nl"
4471 $as_echo 'EGREP' >> "conftest.nl"
4472 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4473 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4474 as_fn_arith $ac_count + 1 && ac_count=$as_val
4475 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4476 # Best one so far, save it but keep looking for a better one
4477 ac_cv_path_EGREP="$ac_path_EGREP"
4478 ac_path_EGREP_max=$ac_count
4480 # 10*(2^10) chars as input seems more than enough
4481 test $ac_count -gt 10 && break
4482 done
4483 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4484 esac
4486 $ac_path_EGREP_found && break 3
4487 done
4488 done
4489 done
4490 IFS=$as_save_IFS
4491 if test -z "$ac_cv_path_EGREP"; then
4492 as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4494 else
4495 ac_cv_path_EGREP=$EGREP
4500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4501 $as_echo "$ac_cv_path_EGREP" >&6; }
4502 EGREP="$ac_cv_path_EGREP"
4506 GCC_WARN_CFLAGS="-W -Wall -Wstrict-prototypes -Wmissing-prototypes"
4507 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4508 /* end confdefs.h. */
4509 __GNUC__
4510 _ACEOF
4511 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4512 $EGREP "^[0-3]$" >/dev/null 2>&1; then :
4514 else
4515 GCC_WARN_CFLAGS="$GCC_WARN_CFLAGS -Wshadow"
4517 rm -f conftest*
4520 # Check whether --enable-werror was given.
4521 if test "${enable_werror+set}" = set; then :
4522 enableval=$enable_werror; case "${enableval}" in
4523 yes | y) ERROR_ON_WARNING="yes" ;;
4524 no | n) ERROR_ON_WARNING="no" ;;
4525 *) as_fn_error "bad value ${enableval} for --enable-werror" "$LINENO" 5 ;;
4526 esac
4530 # Disable -Wformat by default when using gcc on mingw
4531 case "${host}" in
4532 *-*-mingw32*)
4533 if test "${GCC}" = yes -a -z "${ERROR_ON_WARNING}" ; then
4534 GCC_WARN_CFLAGS="$GCC_WARN_CFLAGS -Wno-format"
4537 *) ;;
4538 esac
4540 # Enable -Werror by default when using gcc
4541 if test "${GCC}" = yes -a -z "${ERROR_ON_WARNING}" ; then
4542 ERROR_ON_WARNING=yes
4545 NO_WERROR=
4546 if test "${ERROR_ON_WARNING}" = yes ; then
4547 GCC_WARN_CFLAGS="$GCC_WARN_CFLAGS -Werror"
4548 NO_WERROR="-Wno-error"
4551 if test "${GCC}" = yes ; then
4552 WARN_CFLAGS="${GCC_WARN_CFLAGS}"
4555 # Check whether --enable-build-warnings was given.
4556 if test "${enable_build_warnings+set}" = set; then :
4557 enableval=$enable_build_warnings; case "${enableval}" in
4558 yes) WARN_CFLAGS="${GCC_WARN_CFLAGS}";;
4559 no) if test "${GCC}" = yes ; then
4560 WARN_CFLAGS="-w"
4561 fi;;
4562 ,*) t=`echo "${enableval}" | sed -e "s/,/ /g"`
4563 WARN_CFLAGS="${GCC_WARN_CFLAGS} ${t}";;
4564 *,) t=`echo "${enableval}" | sed -e "s/,/ /g"`
4565 WARN_CFLAGS="${t} ${GCC_WARN_CFLAGS}";;
4566 *) WARN_CFLAGS=`echo "${enableval}" | sed -e "s/,/ /g"`;;
4567 esac
4571 if test x"$silent" != x"yes" && test x"$WARN_CFLAGS" != x""; then
4572 echo "Setting warning flags = $WARN_CFLAGS" 6>&1
4579 ac_config_headers="$ac_config_headers config.h:config.in"
4582 if test -z "$target" ; then
4583 as_fn_error "Unrecognized target system type; please check config.sub." "$LINENO" 5
4585 if test -z "$host" ; then
4586 as_fn_error "Unrecognized host system type; please check config.sub." "$LINENO" 5
4589 # host-specific stuff:
4591 ac_ext=c
4592 ac_cpp='$CPP $CPPFLAGS'
4593 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4594 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4595 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4596 if test -n "$ac_tool_prefix"; then
4597 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4598 set dummy ${ac_tool_prefix}gcc; ac_word=$2
4599 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4600 $as_echo_n "checking for $ac_word... " >&6; }
4601 if test "${ac_cv_prog_CC+set}" = set; then :
4602 $as_echo_n "(cached) " >&6
4603 else
4604 if test -n "$CC"; then
4605 ac_cv_prog_CC="$CC" # Let the user override the test.
4606 else
4607 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4608 for as_dir in $PATH
4610 IFS=$as_save_IFS
4611 test -z "$as_dir" && as_dir=.
4612 for ac_exec_ext in '' $ac_executable_extensions; do
4613 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4614 ac_cv_prog_CC="${ac_tool_prefix}gcc"
4615 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4616 break 2
4618 done
4619 done
4620 IFS=$as_save_IFS
4624 CC=$ac_cv_prog_CC
4625 if test -n "$CC"; then
4626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4627 $as_echo "$CC" >&6; }
4628 else
4629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4630 $as_echo "no" >&6; }
4635 if test -z "$ac_cv_prog_CC"; then
4636 ac_ct_CC=$CC
4637 # Extract the first word of "gcc", so it can be a program name with args.
4638 set dummy gcc; ac_word=$2
4639 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4640 $as_echo_n "checking for $ac_word... " >&6; }
4641 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
4642 $as_echo_n "(cached) " >&6
4643 else
4644 if test -n "$ac_ct_CC"; then
4645 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4646 else
4647 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4648 for as_dir in $PATH
4650 IFS=$as_save_IFS
4651 test -z "$as_dir" && as_dir=.
4652 for ac_exec_ext in '' $ac_executable_extensions; do
4653 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4654 ac_cv_prog_ac_ct_CC="gcc"
4655 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4656 break 2
4658 done
4659 done
4660 IFS=$as_save_IFS
4664 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4665 if test -n "$ac_ct_CC"; then
4666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4667 $as_echo "$ac_ct_CC" >&6; }
4668 else
4669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4670 $as_echo "no" >&6; }
4673 if test "x$ac_ct_CC" = x; then
4674 CC=""
4675 else
4676 case $cross_compiling:$ac_tool_warned in
4677 yes:)
4678 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4679 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4680 ac_tool_warned=yes ;;
4681 esac
4682 CC=$ac_ct_CC
4684 else
4685 CC="$ac_cv_prog_CC"
4688 if test -z "$CC"; then
4689 if test -n "$ac_tool_prefix"; then
4690 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4691 set dummy ${ac_tool_prefix}cc; ac_word=$2
4692 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4693 $as_echo_n "checking for $ac_word... " >&6; }
4694 if test "${ac_cv_prog_CC+set}" = set; then :
4695 $as_echo_n "(cached) " >&6
4696 else
4697 if test -n "$CC"; then
4698 ac_cv_prog_CC="$CC" # Let the user override the test.
4699 else
4700 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4701 for as_dir in $PATH
4703 IFS=$as_save_IFS
4704 test -z "$as_dir" && as_dir=.
4705 for ac_exec_ext in '' $ac_executable_extensions; do
4706 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4707 ac_cv_prog_CC="${ac_tool_prefix}cc"
4708 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4709 break 2
4711 done
4712 done
4713 IFS=$as_save_IFS
4717 CC=$ac_cv_prog_CC
4718 if test -n "$CC"; then
4719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4720 $as_echo "$CC" >&6; }
4721 else
4722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4723 $as_echo "no" >&6; }
4729 if test -z "$CC"; then
4730 # Extract the first word of "cc", so it can be a program name with args.
4731 set dummy cc; ac_word=$2
4732 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4733 $as_echo_n "checking for $ac_word... " >&6; }
4734 if test "${ac_cv_prog_CC+set}" = set; then :
4735 $as_echo_n "(cached) " >&6
4736 else
4737 if test -n "$CC"; then
4738 ac_cv_prog_CC="$CC" # Let the user override the test.
4739 else
4740 ac_prog_rejected=no
4741 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4742 for as_dir in $PATH
4744 IFS=$as_save_IFS
4745 test -z "$as_dir" && as_dir=.
4746 for ac_exec_ext in '' $ac_executable_extensions; do
4747 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4748 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4749 ac_prog_rejected=yes
4750 continue
4752 ac_cv_prog_CC="cc"
4753 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4754 break 2
4756 done
4757 done
4758 IFS=$as_save_IFS
4760 if test $ac_prog_rejected = yes; then
4761 # We found a bogon in the path, so make sure we never use it.
4762 set dummy $ac_cv_prog_CC
4763 shift
4764 if test $# != 0; then
4765 # We chose a different compiler from the bogus one.
4766 # However, it has the same basename, so the bogon will be chosen
4767 # first if we set CC to just the basename; use the full file name.
4768 shift
4769 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4774 CC=$ac_cv_prog_CC
4775 if test -n "$CC"; then
4776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4777 $as_echo "$CC" >&6; }
4778 else
4779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4780 $as_echo "no" >&6; }
4785 if test -z "$CC"; then
4786 if test -n "$ac_tool_prefix"; then
4787 for ac_prog in cl.exe
4789 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4790 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4791 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4792 $as_echo_n "checking for $ac_word... " >&6; }
4793 if test "${ac_cv_prog_CC+set}" = set; then :
4794 $as_echo_n "(cached) " >&6
4795 else
4796 if test -n "$CC"; then
4797 ac_cv_prog_CC="$CC" # Let the user override the test.
4798 else
4799 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4800 for as_dir in $PATH
4802 IFS=$as_save_IFS
4803 test -z "$as_dir" && as_dir=.
4804 for ac_exec_ext in '' $ac_executable_extensions; do
4805 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4806 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4807 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4808 break 2
4810 done
4811 done
4812 IFS=$as_save_IFS
4816 CC=$ac_cv_prog_CC
4817 if test -n "$CC"; then
4818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4819 $as_echo "$CC" >&6; }
4820 else
4821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4822 $as_echo "no" >&6; }
4826 test -n "$CC" && break
4827 done
4829 if test -z "$CC"; then
4830 ac_ct_CC=$CC
4831 for ac_prog in cl.exe
4833 # Extract the first word of "$ac_prog", so it can be a program name with args.
4834 set dummy $ac_prog; ac_word=$2
4835 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4836 $as_echo_n "checking for $ac_word... " >&6; }
4837 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
4838 $as_echo_n "(cached) " >&6
4839 else
4840 if test -n "$ac_ct_CC"; then
4841 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4842 else
4843 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4844 for as_dir in $PATH
4846 IFS=$as_save_IFS
4847 test -z "$as_dir" && as_dir=.
4848 for ac_exec_ext in '' $ac_executable_extensions; do
4849 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4850 ac_cv_prog_ac_ct_CC="$ac_prog"
4851 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4852 break 2
4854 done
4855 done
4856 IFS=$as_save_IFS
4860 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4861 if test -n "$ac_ct_CC"; then
4862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4863 $as_echo "$ac_ct_CC" >&6; }
4864 else
4865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4866 $as_echo "no" >&6; }
4870 test -n "$ac_ct_CC" && break
4871 done
4873 if test "x$ac_ct_CC" = x; then
4874 CC=""
4875 else
4876 case $cross_compiling:$ac_tool_warned in
4877 yes:)
4878 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4879 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4880 ac_tool_warned=yes ;;
4881 esac
4882 CC=$ac_ct_CC
4889 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4890 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4891 as_fn_error "no acceptable C compiler found in \$PATH
4892 See \`config.log' for more details." "$LINENO" 5; }
4894 # Provide some information about the compiler.
4895 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4896 set X $ac_compile
4897 ac_compiler=$2
4898 for ac_option in --version -v -V -qversion; do
4899 { { ac_try="$ac_compiler $ac_option >&5"
4900 case "(($ac_try" in
4901 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4902 *) ac_try_echo=$ac_try;;
4903 esac
4904 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4905 $as_echo "$ac_try_echo"; } >&5
4906 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4907 ac_status=$?
4908 if test -s conftest.err; then
4909 sed '10a\
4910 ... rest of stderr output deleted ...
4911 10q' conftest.err >conftest.er1
4912 cat conftest.er1 >&5
4913 rm -f conftest.er1 conftest.err
4915 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4916 test $ac_status = 0; }
4917 done
4919 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4920 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4921 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
4922 $as_echo_n "(cached) " >&6
4923 else
4924 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4925 /* end confdefs.h. */
4928 main ()
4930 #ifndef __GNUC__
4931 choke me
4932 #endif
4935 return 0;
4937 _ACEOF
4938 if ac_fn_c_try_compile "$LINENO"; then :
4939 ac_compiler_gnu=yes
4940 else
4941 ac_compiler_gnu=no
4943 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4944 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4948 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4949 if test $ac_compiler_gnu = yes; then
4950 GCC=yes
4951 else
4952 GCC=
4954 ac_test_CFLAGS=${CFLAGS+set}
4955 ac_save_CFLAGS=$CFLAGS
4956 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4957 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4958 if test "${ac_cv_prog_cc_g+set}" = set; then :
4959 $as_echo_n "(cached) " >&6
4960 else
4961 ac_save_c_werror_flag=$ac_c_werror_flag
4962 ac_c_werror_flag=yes
4963 ac_cv_prog_cc_g=no
4964 CFLAGS="-g"
4965 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4966 /* end confdefs.h. */
4969 main ()
4973 return 0;
4975 _ACEOF
4976 if ac_fn_c_try_compile "$LINENO"; then :
4977 ac_cv_prog_cc_g=yes
4978 else
4979 CFLAGS=""
4980 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4981 /* end confdefs.h. */
4984 main ()
4988 return 0;
4990 _ACEOF
4991 if ac_fn_c_try_compile "$LINENO"; then :
4993 else
4994 ac_c_werror_flag=$ac_save_c_werror_flag
4995 CFLAGS="-g"
4996 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4997 /* end confdefs.h. */
5000 main ()
5004 return 0;
5006 _ACEOF
5007 if ac_fn_c_try_compile "$LINENO"; then :
5008 ac_cv_prog_cc_g=yes
5010 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5012 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5014 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5015 ac_c_werror_flag=$ac_save_c_werror_flag
5017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
5018 $as_echo "$ac_cv_prog_cc_g" >&6; }
5019 if test "$ac_test_CFLAGS" = set; then
5020 CFLAGS=$ac_save_CFLAGS
5021 elif test $ac_cv_prog_cc_g = yes; then
5022 if test "$GCC" = yes; then
5023 CFLAGS="-g -O2"
5024 else
5025 CFLAGS="-g"
5027 else
5028 if test "$GCC" = yes; then
5029 CFLAGS="-O2"
5030 else
5031 CFLAGS=
5034 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
5035 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
5036 if test "${ac_cv_prog_cc_c89+set}" = set; then :
5037 $as_echo_n "(cached) " >&6
5038 else
5039 ac_cv_prog_cc_c89=no
5040 ac_save_CC=$CC
5041 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5042 /* end confdefs.h. */
5043 #include <stdarg.h>
5044 #include <stdio.h>
5045 #include <sys/types.h>
5046 #include <sys/stat.h>
5047 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
5048 struct buf { int x; };
5049 FILE * (*rcsopen) (struct buf *, struct stat *, int);
5050 static char *e (p, i)
5051 char **p;
5052 int i;
5054 return p[i];
5056 static char *f (char * (*g) (char **, int), char **p, ...)
5058 char *s;
5059 va_list v;
5060 va_start (v,p);
5061 s = g (p, va_arg (v,int));
5062 va_end (v);
5063 return s;
5066 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
5067 function prototypes and stuff, but not '\xHH' hex character constants.
5068 These don't provoke an error unfortunately, instead are silently treated
5069 as 'x'. The following induces an error, until -std is added to get
5070 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
5071 array size at least. It's necessary to write '\x00'==0 to get something
5072 that's true only with -std. */
5073 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5075 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5076 inside strings and character constants. */
5077 #define FOO(x) 'x'
5078 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5080 int test (int i, double x);
5081 struct s1 {int (*f) (int a);};
5082 struct s2 {int (*f) (double a);};
5083 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5084 int argc;
5085 char **argv;
5087 main ()
5089 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
5091 return 0;
5093 _ACEOF
5094 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5095 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5097 CC="$ac_save_CC $ac_arg"
5098 if ac_fn_c_try_compile "$LINENO"; then :
5099 ac_cv_prog_cc_c89=$ac_arg
5101 rm -f core conftest.err conftest.$ac_objext
5102 test "x$ac_cv_prog_cc_c89" != "xno" && break
5103 done
5104 rm -f conftest.$ac_ext
5105 CC=$ac_save_CC
5108 # AC_CACHE_VAL
5109 case "x$ac_cv_prog_cc_c89" in
5111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5112 $as_echo "none needed" >&6; } ;;
5113 xno)
5114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5115 $as_echo "unsupported" >&6; } ;;
5117 CC="$CC $ac_cv_prog_cc_c89"
5118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
5119 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
5120 esac
5121 if test "x$ac_cv_prog_cc_c89" != xno; then :
5125 ac_ext=c
5126 ac_cpp='$CPP $CPPFLAGS'
5127 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5128 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5129 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5131 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
5132 $as_echo_n "checking for ANSI C header files... " >&6; }
5133 if test "${ac_cv_header_stdc+set}" = set; then :
5134 $as_echo_n "(cached) " >&6
5135 else
5136 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5137 /* end confdefs.h. */
5138 #include <stdlib.h>
5139 #include <stdarg.h>
5140 #include <string.h>
5141 #include <float.h>
5144 main ()
5148 return 0;
5150 _ACEOF
5151 if ac_fn_c_try_compile "$LINENO"; then :
5152 ac_cv_header_stdc=yes
5153 else
5154 ac_cv_header_stdc=no
5156 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5158 if test $ac_cv_header_stdc = yes; then
5159 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5160 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5161 /* end confdefs.h. */
5162 #include <string.h>
5164 _ACEOF
5165 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5166 $EGREP "memchr" >/dev/null 2>&1; then :
5168 else
5169 ac_cv_header_stdc=no
5171 rm -f conftest*
5175 if test $ac_cv_header_stdc = yes; then
5176 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5177 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5178 /* end confdefs.h. */
5179 #include <stdlib.h>
5181 _ACEOF
5182 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5183 $EGREP "free" >/dev/null 2>&1; then :
5185 else
5186 ac_cv_header_stdc=no
5188 rm -f conftest*
5192 if test $ac_cv_header_stdc = yes; then
5193 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5194 if test "$cross_compiling" = yes; then :
5196 else
5197 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5198 /* end confdefs.h. */
5199 #include <ctype.h>
5200 #include <stdlib.h>
5201 #if ((' ' & 0x0FF) == 0x020)
5202 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5203 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5204 #else
5205 # define ISLOWER(c) \
5206 (('a' <= (c) && (c) <= 'i') \
5207 || ('j' <= (c) && (c) <= 'r') \
5208 || ('s' <= (c) && (c) <= 'z'))
5209 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5210 #endif
5212 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5214 main ()
5216 int i;
5217 for (i = 0; i < 256; i++)
5218 if (XOR (islower (i), ISLOWER (i))
5219 || toupper (i) != TOUPPER (i))
5220 return 2;
5221 return 0;
5223 _ACEOF
5224 if ac_fn_c_try_run "$LINENO"; then :
5226 else
5227 ac_cv_header_stdc=no
5229 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5230 conftest.$ac_objext conftest.beam conftest.$ac_ext
5235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
5236 $as_echo "$ac_cv_header_stdc" >&6; }
5237 if test $ac_cv_header_stdc = yes; then
5239 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
5243 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5244 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5245 inttypes.h stdint.h unistd.h
5246 do :
5247 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5248 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
5250 eval as_val=\$$as_ac_Header
5251 if test "x$as_val" = x""yes; then :
5252 cat >>confdefs.h <<_ACEOF
5253 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5254 _ACEOF
5258 done
5262 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
5263 if test "x$ac_cv_header_minix_config_h" = x""yes; then :
5264 MINIX=yes
5265 else
5266 MINIX=
5270 if test "$MINIX" = yes; then
5272 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
5275 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
5278 $as_echo "#define _MINIX 1" >>confdefs.h
5283 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
5284 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
5285 if test "${ac_cv_safe_to_define___extensions__+set}" = set; then :
5286 $as_echo_n "(cached) " >&6
5287 else
5288 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5289 /* end confdefs.h. */
5291 # define __EXTENSIONS__ 1
5292 $ac_includes_default
5294 main ()
5298 return 0;
5300 _ACEOF
5301 if ac_fn_c_try_compile "$LINENO"; then :
5302 ac_cv_safe_to_define___extensions__=yes
5303 else
5304 ac_cv_safe_to_define___extensions__=no
5306 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5308 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
5309 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
5310 test $ac_cv_safe_to_define___extensions__ = yes &&
5311 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
5313 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
5315 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
5317 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
5319 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
5325 # The tests for host and target for $enable_largefile require
5326 # canonical names.
5330 # As the $enable_largefile decision depends on --enable-plugins we must set it
5331 # even in directories otherwise not depending on the $plugins option.
5334 # Check whether --enable-plugins was given.
5335 if test "${enable_plugins+set}" = set; then :
5336 enableval=$enable_plugins; case "${enableval}" in
5337 yes | "") plugins=yes ;;
5338 no) plugins=no ;;
5339 *) plugins=yes ;;
5340 esac
5341 else
5342 plugins=no
5347 case "${host}" in
5348 sparc-*-solaris*|i[3-7]86-*-solaris*)
5349 # On native 32bit sparc and ia32 solaris, large-file and procfs support
5350 # are mutually exclusive; and without procfs support, the bfd/ elf module
5351 # cannot provide certain routines such as elfcore_write_prpsinfo
5352 # or elfcore_write_prstatus. So unless the user explicitly requested
5353 # large-file support through the --enable-largefile switch, disable
5354 # large-file support in favor of procfs support.
5355 test "${target}" = "${host}" -a "x$plugins" = xno \
5356 && : ${enable_largefile="no"}
5358 esac
5360 # Check whether --enable-largefile was given.
5361 if test "${enable_largefile+set}" = set; then :
5362 enableval=$enable_largefile;
5365 if test "$enable_largefile" != no; then
5367 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
5368 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
5369 if test "${ac_cv_sys_largefile_CC+set}" = set; then :
5370 $as_echo_n "(cached) " >&6
5371 else
5372 ac_cv_sys_largefile_CC=no
5373 if test "$GCC" != yes; then
5374 ac_save_CC=$CC
5375 while :; do
5376 # IRIX 6.2 and later do not support large files by default,
5377 # so use the C compiler's -n32 option if that helps.
5378 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5379 /* end confdefs.h. */
5380 #include <sys/types.h>
5381 /* Check that off_t can represent 2**63 - 1 correctly.
5382 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5383 since some C++ compilers masquerading as C compilers
5384 incorrectly reject 9223372036854775807. */
5385 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5386 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5387 && LARGE_OFF_T % 2147483647 == 1)
5388 ? 1 : -1];
5390 main ()
5394 return 0;
5396 _ACEOF
5397 if ac_fn_c_try_compile "$LINENO"; then :
5398 break
5400 rm -f core conftest.err conftest.$ac_objext
5401 CC="$CC -n32"
5402 if ac_fn_c_try_compile "$LINENO"; then :
5403 ac_cv_sys_largefile_CC=' -n32'; break
5405 rm -f core conftest.err conftest.$ac_objext
5406 break
5407 done
5408 CC=$ac_save_CC
5409 rm -f conftest.$ac_ext
5412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
5413 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
5414 if test "$ac_cv_sys_largefile_CC" != no; then
5415 CC=$CC$ac_cv_sys_largefile_CC
5418 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
5419 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
5420 if test "${ac_cv_sys_file_offset_bits+set}" = set; then :
5421 $as_echo_n "(cached) " >&6
5422 else
5423 while :; do
5424 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5425 /* end confdefs.h. */
5426 #include <sys/types.h>
5427 /* Check that off_t can represent 2**63 - 1 correctly.
5428 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5429 since some C++ compilers masquerading as C compilers
5430 incorrectly reject 9223372036854775807. */
5431 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5432 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5433 && LARGE_OFF_T % 2147483647 == 1)
5434 ? 1 : -1];
5436 main ()
5440 return 0;
5442 _ACEOF
5443 if ac_fn_c_try_compile "$LINENO"; then :
5444 ac_cv_sys_file_offset_bits=no; break
5446 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5447 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5448 /* end confdefs.h. */
5449 #define _FILE_OFFSET_BITS 64
5450 #include <sys/types.h>
5451 /* Check that off_t can represent 2**63 - 1 correctly.
5452 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5453 since some C++ compilers masquerading as C compilers
5454 incorrectly reject 9223372036854775807. */
5455 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5456 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5457 && LARGE_OFF_T % 2147483647 == 1)
5458 ? 1 : -1];
5460 main ()
5464 return 0;
5466 _ACEOF
5467 if ac_fn_c_try_compile "$LINENO"; then :
5468 ac_cv_sys_file_offset_bits=64; break
5470 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5471 ac_cv_sys_file_offset_bits=unknown
5472 break
5473 done
5475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
5476 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
5477 case $ac_cv_sys_file_offset_bits in #(
5478 no | unknown) ;;
5480 cat >>confdefs.h <<_ACEOF
5481 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
5482 _ACEOF
5484 esac
5485 rm -rf conftest*
5486 if test $ac_cv_sys_file_offset_bits = unknown; then
5487 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
5488 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
5489 if test "${ac_cv_sys_large_files+set}" = set; then :
5490 $as_echo_n "(cached) " >&6
5491 else
5492 while :; do
5493 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5494 /* end confdefs.h. */
5495 #include <sys/types.h>
5496 /* Check that off_t can represent 2**63 - 1 correctly.
5497 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5498 since some C++ compilers masquerading as C compilers
5499 incorrectly reject 9223372036854775807. */
5500 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5501 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5502 && LARGE_OFF_T % 2147483647 == 1)
5503 ? 1 : -1];
5505 main ()
5509 return 0;
5511 _ACEOF
5512 if ac_fn_c_try_compile "$LINENO"; then :
5513 ac_cv_sys_large_files=no; break
5515 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5516 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5517 /* end confdefs.h. */
5518 #define _LARGE_FILES 1
5519 #include <sys/types.h>
5520 /* Check that off_t can represent 2**63 - 1 correctly.
5521 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5522 since some C++ compilers masquerading as C compilers
5523 incorrectly reject 9223372036854775807. */
5524 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5525 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5526 && LARGE_OFF_T % 2147483647 == 1)
5527 ? 1 : -1];
5529 main ()
5533 return 0;
5535 _ACEOF
5536 if ac_fn_c_try_compile "$LINENO"; then :
5537 ac_cv_sys_large_files=1; break
5539 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5540 ac_cv_sys_large_files=unknown
5541 break
5542 done
5544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
5545 $as_echo "$ac_cv_sys_large_files" >&6; }
5546 case $ac_cv_sys_large_files in #(
5547 no | unknown) ;;
5549 cat >>confdefs.h <<_ACEOF
5550 #define _LARGE_FILES $ac_cv_sys_large_files
5551 _ACEOF
5553 esac
5554 rm -rf conftest*
5561 case `pwd` in
5562 *\ * | *\ *)
5563 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
5564 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
5565 esac
5569 macro_version='2.2.7a'
5570 macro_revision='1.3134'
5584 ltmain="$ac_aux_dir/ltmain.sh"
5586 # Backslashify metacharacters that are still active within
5587 # double-quoted strings.
5588 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
5590 # Same as above, but do not quote variable references.
5591 double_quote_subst='s/\(["`\\]\)/\\\1/g'
5593 # Sed substitution to delay expansion of an escaped shell variable in a
5594 # double_quote_subst'ed string.
5595 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5597 # Sed substitution to delay expansion of an escaped single quote.
5598 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
5600 # Sed substitution to avoid accidental globbing in evaled expressions
5601 no_glob_subst='s/\*/\\\*/g'
5603 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
5604 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
5605 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
5607 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
5608 $as_echo_n "checking how to print strings... " >&6; }
5609 # Test print first, because it will be a builtin if present.
5610 if test "X`print -r -- -n 2>/dev/null`" = X-n && \
5611 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
5612 ECHO='print -r --'
5613 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
5614 ECHO='printf %s\n'
5615 else
5616 # Use this function as a fallback that always works.
5617 func_fallback_echo ()
5619 eval 'cat <<_LTECHO_EOF
5621 _LTECHO_EOF'
5623 ECHO='func_fallback_echo'
5626 # func_echo_all arg...
5627 # Invoke $ECHO with all args, space-separated.
5628 func_echo_all ()
5630 $ECHO ""
5633 case "$ECHO" in
5634 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
5635 $as_echo "printf" >&6; } ;;
5636 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
5637 $as_echo "print -r" >&6; } ;;
5638 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
5639 $as_echo "cat" >&6; } ;;
5640 esac
5655 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
5656 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
5657 if test "${ac_cv_path_SED+set}" = set; then :
5658 $as_echo_n "(cached) " >&6
5659 else
5660 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
5661 for ac_i in 1 2 3 4 5 6 7; do
5662 ac_script="$ac_script$as_nl$ac_script"
5663 done
5664 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
5665 { ac_script=; unset ac_script;}
5666 if test -z "$SED"; then
5667 ac_path_SED_found=false
5668 # Loop through the user's path and test for each of PROGNAME-LIST
5669 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5670 for as_dir in $PATH
5672 IFS=$as_save_IFS
5673 test -z "$as_dir" && as_dir=.
5674 for ac_prog in sed gsed; do
5675 for ac_exec_ext in '' $ac_executable_extensions; do
5676 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
5677 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
5678 # Check for GNU ac_path_SED and select it if it is found.
5679 # Check for GNU $ac_path_SED
5680 case `"$ac_path_SED" --version 2>&1` in
5681 *GNU*)
5682 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
5684 ac_count=0
5685 $as_echo_n 0123456789 >"conftest.in"
5686 while :
5688 cat "conftest.in" "conftest.in" >"conftest.tmp"
5689 mv "conftest.tmp" "conftest.in"
5690 cp "conftest.in" "conftest.nl"
5691 $as_echo '' >> "conftest.nl"
5692 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
5693 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5694 as_fn_arith $ac_count + 1 && ac_count=$as_val
5695 if test $ac_count -gt ${ac_path_SED_max-0}; then
5696 # Best one so far, save it but keep looking for a better one
5697 ac_cv_path_SED="$ac_path_SED"
5698 ac_path_SED_max=$ac_count
5700 # 10*(2^10) chars as input seems more than enough
5701 test $ac_count -gt 10 && break
5702 done
5703 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5704 esac
5706 $ac_path_SED_found && break 3
5707 done
5708 done
5709 done
5710 IFS=$as_save_IFS
5711 if test -z "$ac_cv_path_SED"; then
5712 as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
5714 else
5715 ac_cv_path_SED=$SED
5719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
5720 $as_echo "$ac_cv_path_SED" >&6; }
5721 SED="$ac_cv_path_SED"
5722 rm -f conftest.sed
5724 test -z "$SED" && SED=sed
5725 Xsed="$SED -e 1s/^X//"
5737 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
5738 $as_echo_n "checking for fgrep... " >&6; }
5739 if test "${ac_cv_path_FGREP+set}" = set; then :
5740 $as_echo_n "(cached) " >&6
5741 else
5742 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
5743 then ac_cv_path_FGREP="$GREP -F"
5744 else
5745 if test -z "$FGREP"; then
5746 ac_path_FGREP_found=false
5747 # Loop through the user's path and test for each of PROGNAME-LIST
5748 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5749 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5751 IFS=$as_save_IFS
5752 test -z "$as_dir" && as_dir=.
5753 for ac_prog in fgrep; do
5754 for ac_exec_ext in '' $ac_executable_extensions; do
5755 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
5756 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
5757 # Check for GNU ac_path_FGREP and select it if it is found.
5758 # Check for GNU $ac_path_FGREP
5759 case `"$ac_path_FGREP" --version 2>&1` in
5760 *GNU*)
5761 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
5763 ac_count=0
5764 $as_echo_n 0123456789 >"conftest.in"
5765 while :
5767 cat "conftest.in" "conftest.in" >"conftest.tmp"
5768 mv "conftest.tmp" "conftest.in"
5769 cp "conftest.in" "conftest.nl"
5770 $as_echo 'FGREP' >> "conftest.nl"
5771 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
5772 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5773 as_fn_arith $ac_count + 1 && ac_count=$as_val
5774 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5775 # Best one so far, save it but keep looking for a better one
5776 ac_cv_path_FGREP="$ac_path_FGREP"
5777 ac_path_FGREP_max=$ac_count
5779 # 10*(2^10) chars as input seems more than enough
5780 test $ac_count -gt 10 && break
5781 done
5782 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5783 esac
5785 $ac_path_FGREP_found && break 3
5786 done
5787 done
5788 done
5789 IFS=$as_save_IFS
5790 if test -z "$ac_cv_path_FGREP"; then
5791 as_fn_error "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5793 else
5794 ac_cv_path_FGREP=$FGREP
5799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
5800 $as_echo "$ac_cv_path_FGREP" >&6; }
5801 FGREP="$ac_cv_path_FGREP"
5804 test -z "$GREP" && GREP=grep
5824 # Check whether --with-gnu-ld was given.
5825 if test "${with_gnu_ld+set}" = set; then :
5826 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
5827 else
5828 with_gnu_ld=no
5831 ac_prog=ld
5832 if test "$GCC" = yes; then
5833 # Check if gcc -print-prog-name=ld gives a path.
5834 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5835 $as_echo_n "checking for ld used by $CC... " >&6; }
5836 case $host in
5837 *-*-mingw*)
5838 # gcc leaves a trailing carriage return which upsets mingw
5839 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5841 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5842 esac
5843 case $ac_prog in
5844 # Accept absolute paths.
5845 [\\/]* | ?:[\\/]*)
5846 re_direlt='/[^/][^/]*/\.\./'
5847 # Canonicalize the pathname of ld
5848 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5849 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5850 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5851 done
5852 test -z "$LD" && LD="$ac_prog"
5855 # If it fails, then pretend we aren't using GCC.
5856 ac_prog=ld
5859 # If it is relative, then search for the first ld in PATH.
5860 with_gnu_ld=unknown
5862 esac
5863 elif test "$with_gnu_ld" = yes; then
5864 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5865 $as_echo_n "checking for GNU ld... " >&6; }
5866 else
5867 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5868 $as_echo_n "checking for non-GNU ld... " >&6; }
5870 if test "${lt_cv_path_LD+set}" = set; then :
5871 $as_echo_n "(cached) " >&6
5872 else
5873 if test -z "$LD"; then
5874 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5875 for ac_dir in $PATH; do
5876 IFS="$lt_save_ifs"
5877 test -z "$ac_dir" && ac_dir=.
5878 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5879 lt_cv_path_LD="$ac_dir/$ac_prog"
5880 # Check to see if the program is GNU ld. I'd rather use --version,
5881 # but apparently some variants of GNU ld only accept -v.
5882 # Break only if it was the GNU/non-GNU ld that we prefer.
5883 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5884 *GNU* | *'with BFD'*)
5885 test "$with_gnu_ld" != no && break
5888 test "$with_gnu_ld" != yes && break
5890 esac
5892 done
5893 IFS="$lt_save_ifs"
5894 else
5895 lt_cv_path_LD="$LD" # Let the user override the test with a path.
5899 LD="$lt_cv_path_LD"
5900 if test -n "$LD"; then
5901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5902 $as_echo "$LD" >&6; }
5903 else
5904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5905 $as_echo "no" >&6; }
5907 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
5908 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5909 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
5910 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
5911 $as_echo_n "(cached) " >&6
5912 else
5913 # I'd rather use --version here, but apparently some GNU lds only accept -v.
5914 case `$LD -v 2>&1 </dev/null` in
5915 *GNU* | *'with BFD'*)
5916 lt_cv_prog_gnu_ld=yes
5919 lt_cv_prog_gnu_ld=no
5921 esac
5923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5924 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
5925 with_gnu_ld=$lt_cv_prog_gnu_ld
5935 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5936 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5937 if test "${lt_cv_path_NM+set}" = set; then :
5938 $as_echo_n "(cached) " >&6
5939 else
5940 if test -n "$NM"; then
5941 # Let the user override the test.
5942 lt_cv_path_NM="$NM"
5943 else
5944 lt_nm_to_check="${ac_tool_prefix}nm"
5945 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5946 lt_nm_to_check="$lt_nm_to_check nm"
5948 for lt_tmp_nm in $lt_nm_to_check; do
5949 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5950 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5951 IFS="$lt_save_ifs"
5952 test -z "$ac_dir" && ac_dir=.
5953 tmp_nm="$ac_dir/$lt_tmp_nm"
5954 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5955 # Check to see if the nm accepts a BSD-compat flag.
5956 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5957 # nm: unknown option "B" ignored
5958 # Tru64's nm complains that /dev/null is an invalid object file
5959 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5960 */dev/null* | *'Invalid file or object type'*)
5961 lt_cv_path_NM="$tmp_nm -B"
5962 break
5965 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5966 */dev/null*)
5967 lt_cv_path_NM="$tmp_nm -p"
5968 break
5971 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5972 continue # so that we can try to find one that supports BSD flags
5974 esac
5976 esac
5978 done
5979 IFS="$lt_save_ifs"
5980 done
5981 : ${lt_cv_path_NM=no}
5984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5985 $as_echo "$lt_cv_path_NM" >&6; }
5986 if test "$lt_cv_path_NM" != "no"; then
5987 NM="$lt_cv_path_NM"
5988 else
5989 # Didn't find any BSD compatible name lister, look for dumpbin.
5990 if test -n "$DUMPBIN"; then :
5991 # Let the user override the test.
5992 else
5993 if test -n "$ac_tool_prefix"; then
5994 for ac_prog in dumpbin "link -dump"
5996 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5997 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5998 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5999 $as_echo_n "checking for $ac_word... " >&6; }
6000 if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
6001 $as_echo_n "(cached) " >&6
6002 else
6003 if test -n "$DUMPBIN"; then
6004 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
6005 else
6006 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6007 for as_dir in $PATH
6009 IFS=$as_save_IFS
6010 test -z "$as_dir" && as_dir=.
6011 for ac_exec_ext in '' $ac_executable_extensions; do
6012 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6013 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
6014 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6015 break 2
6017 done
6018 done
6019 IFS=$as_save_IFS
6023 DUMPBIN=$ac_cv_prog_DUMPBIN
6024 if test -n "$DUMPBIN"; then
6025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
6026 $as_echo "$DUMPBIN" >&6; }
6027 else
6028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6029 $as_echo "no" >&6; }
6033 test -n "$DUMPBIN" && break
6034 done
6036 if test -z "$DUMPBIN"; then
6037 ac_ct_DUMPBIN=$DUMPBIN
6038 for ac_prog in dumpbin "link -dump"
6040 # Extract the first word of "$ac_prog", so it can be a program name with args.
6041 set dummy $ac_prog; ac_word=$2
6042 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6043 $as_echo_n "checking for $ac_word... " >&6; }
6044 if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
6045 $as_echo_n "(cached) " >&6
6046 else
6047 if test -n "$ac_ct_DUMPBIN"; then
6048 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
6049 else
6050 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6051 for as_dir in $PATH
6053 IFS=$as_save_IFS
6054 test -z "$as_dir" && as_dir=.
6055 for ac_exec_ext in '' $ac_executable_extensions; do
6056 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6057 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
6058 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6059 break 2
6061 done
6062 done
6063 IFS=$as_save_IFS
6067 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
6068 if test -n "$ac_ct_DUMPBIN"; then
6069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
6070 $as_echo "$ac_ct_DUMPBIN" >&6; }
6071 else
6072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6073 $as_echo "no" >&6; }
6077 test -n "$ac_ct_DUMPBIN" && break
6078 done
6080 if test "x$ac_ct_DUMPBIN" = x; then
6081 DUMPBIN=":"
6082 else
6083 case $cross_compiling:$ac_tool_warned in
6084 yes:)
6085 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6086 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6087 ac_tool_warned=yes ;;
6088 esac
6089 DUMPBIN=$ac_ct_DUMPBIN
6093 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
6094 *COFF*)
6095 DUMPBIN="$DUMPBIN -symbols"
6098 DUMPBIN=:
6100 esac
6103 if test "$DUMPBIN" != ":"; then
6104 NM="$DUMPBIN"
6107 test -z "$NM" && NM=nm
6114 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
6115 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
6116 if test "${lt_cv_nm_interface+set}" = set; then :
6117 $as_echo_n "(cached) " >&6
6118 else
6119 lt_cv_nm_interface="BSD nm"
6120 echo "int some_variable = 0;" > conftest.$ac_ext
6121 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
6122 (eval "$ac_compile" 2>conftest.err)
6123 cat conftest.err >&5
6124 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
6125 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
6126 cat conftest.err >&5
6127 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
6128 cat conftest.out >&5
6129 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
6130 lt_cv_nm_interface="MS dumpbin"
6132 rm -f conftest*
6134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
6135 $as_echo "$lt_cv_nm_interface" >&6; }
6137 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
6138 $as_echo_n "checking whether ln -s works... " >&6; }
6139 LN_S=$as_ln_s
6140 if test "$LN_S" = "ln -s"; then
6141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6142 $as_echo "yes" >&6; }
6143 else
6144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
6145 $as_echo "no, using $LN_S" >&6; }
6148 # find the maximum length of command line arguments
6149 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
6150 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
6151 if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
6152 $as_echo_n "(cached) " >&6
6153 else
6155 teststring="ABCD"
6157 case $build_os in
6158 msdosdjgpp*)
6159 # On DJGPP, this test can blow up pretty badly due to problems in libc
6160 # (any single argument exceeding 2000 bytes causes a buffer overrun
6161 # during glob expansion). Even if it were fixed, the result of this
6162 # check would be larger than it should be.
6163 lt_cv_sys_max_cmd_len=12288; # 12K is about right
6166 gnu*)
6167 # Under GNU Hurd, this test is not required because there is
6168 # no limit to the length of command line arguments.
6169 # Libtool will interpret -1 as no limit whatsoever
6170 lt_cv_sys_max_cmd_len=-1;
6173 cygwin* | mingw* | cegcc*)
6174 # On Win9x/ME, this test blows up -- it succeeds, but takes
6175 # about 5 minutes as the teststring grows exponentially.
6176 # Worse, since 9x/ME are not pre-emptively multitasking,
6177 # you end up with a "frozen" computer, even though with patience
6178 # the test eventually succeeds (with a max line length of 256k).
6179 # Instead, let's just punt: use the minimum linelength reported by
6180 # all of the supported platforms: 8192 (on NT/2K/XP).
6181 lt_cv_sys_max_cmd_len=8192;
6184 mint*)
6185 # On MiNT this can take a long time and run out of memory.
6186 lt_cv_sys_max_cmd_len=8192;
6189 amigaos*)
6190 # On AmigaOS with pdksh, this test takes hours, literally.
6191 # So we just punt and use a minimum line length of 8192.
6192 lt_cv_sys_max_cmd_len=8192;
6195 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6196 # This has been around since 386BSD, at least. Likely further.
6197 if test -x /sbin/sysctl; then
6198 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6199 elif test -x /usr/sbin/sysctl; then
6200 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6201 else
6202 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
6204 # And add a safety zone
6205 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6206 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6209 interix*)
6210 # We know the value 262144 and hardcode it with a safety zone (like BSD)
6211 lt_cv_sys_max_cmd_len=196608
6214 osf*)
6215 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6216 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6217 # nice to cause kernel panics so lets avoid the loop below.
6218 # First set a reasonable default.
6219 lt_cv_sys_max_cmd_len=16384
6221 if test -x /sbin/sysconfig; then
6222 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6223 *1*) lt_cv_sys_max_cmd_len=-1 ;;
6224 esac
6227 sco3.2v5*)
6228 lt_cv_sys_max_cmd_len=102400
6230 sysv5* | sco5v6* | sysv4.2uw2*)
6231 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6232 if test -n "$kargmax"; then
6233 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
6234 else
6235 lt_cv_sys_max_cmd_len=32768
6239 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
6240 if test -n "$lt_cv_sys_max_cmd_len"; then
6241 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6242 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6243 else
6244 # Make teststring a little bigger before we do anything with it.
6245 # a 1K string should be a reasonable start.
6246 for i in 1 2 3 4 5 6 7 8 ; do
6247 teststring=$teststring$teststring
6248 done
6249 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6250 # If test is not a shell built-in, we'll probably end up computing a
6251 # maximum length that is only half of the actual maximum length, but
6252 # we can't tell.
6253 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
6254 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
6255 test $i != 17 # 1/2 MB should be enough
6257 i=`expr $i + 1`
6258 teststring=$teststring$teststring
6259 done
6260 # Only check the string length outside the loop.
6261 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
6262 teststring=
6263 # Add a significant safety factor because C++ compilers can tack on
6264 # massive amounts of additional arguments before passing them to the
6265 # linker. It appears as though 1/2 is a usable value.
6266 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6269 esac
6273 if test -n $lt_cv_sys_max_cmd_len ; then
6274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
6275 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
6276 else
6277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
6278 $as_echo "none" >&6; }
6280 max_cmd_len=$lt_cv_sys_max_cmd_len
6287 : ${CP="cp -f"}
6288 : ${MV="mv -f"}
6289 : ${RM="rm -f"}
6291 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
6292 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
6293 # Try some XSI features
6294 xsi_shell=no
6295 ( _lt_dummy="a/b/c"
6296 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
6297 = c,a/b,, \
6298 && eval 'test $(( 1 + 1 )) -eq 2 \
6299 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
6300 && xsi_shell=yes
6301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
6302 $as_echo "$xsi_shell" >&6; }
6305 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
6306 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
6307 lt_shell_append=no
6308 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
6309 >/dev/null 2>&1 \
6310 && lt_shell_append=yes
6311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
6312 $as_echo "$lt_shell_append" >&6; }
6315 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
6316 lt_unset=unset
6317 else
6318 lt_unset=false
6325 # test EBCDIC or ASCII
6326 case `echo X|tr X '\101'` in
6327 A) # ASCII based system
6328 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
6329 lt_SP2NL='tr \040 \012'
6330 lt_NL2SP='tr \015\012 \040\040'
6332 *) # EBCDIC based system
6333 lt_SP2NL='tr \100 \n'
6334 lt_NL2SP='tr \r\n \100\100'
6336 esac
6346 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
6347 $as_echo_n "checking for $LD option to reload object files... " >&6; }
6348 if test "${lt_cv_ld_reload_flag+set}" = set; then :
6349 $as_echo_n "(cached) " >&6
6350 else
6351 lt_cv_ld_reload_flag='-r'
6353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
6354 $as_echo "$lt_cv_ld_reload_flag" >&6; }
6355 reload_flag=$lt_cv_ld_reload_flag
6356 case $reload_flag in
6357 "" | " "*) ;;
6358 *) reload_flag=" $reload_flag" ;;
6359 esac
6360 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6361 case $host_os in
6362 darwin*)
6363 if test "$GCC" = yes; then
6364 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
6365 else
6366 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6369 esac
6379 if test -n "$ac_tool_prefix"; then
6380 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
6381 set dummy ${ac_tool_prefix}objdump; ac_word=$2
6382 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6383 $as_echo_n "checking for $ac_word... " >&6; }
6384 if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
6385 $as_echo_n "(cached) " >&6
6386 else
6387 if test -n "$OBJDUMP"; then
6388 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
6389 else
6390 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6391 for as_dir in $PATH
6393 IFS=$as_save_IFS
6394 test -z "$as_dir" && as_dir=.
6395 for ac_exec_ext in '' $ac_executable_extensions; do
6396 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6397 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
6398 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6399 break 2
6401 done
6402 done
6403 IFS=$as_save_IFS
6407 OBJDUMP=$ac_cv_prog_OBJDUMP
6408 if test -n "$OBJDUMP"; then
6409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
6410 $as_echo "$OBJDUMP" >&6; }
6411 else
6412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6413 $as_echo "no" >&6; }
6418 if test -z "$ac_cv_prog_OBJDUMP"; then
6419 ac_ct_OBJDUMP=$OBJDUMP
6420 # Extract the first word of "objdump", so it can be a program name with args.
6421 set dummy objdump; ac_word=$2
6422 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6423 $as_echo_n "checking for $ac_word... " >&6; }
6424 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
6425 $as_echo_n "(cached) " >&6
6426 else
6427 if test -n "$ac_ct_OBJDUMP"; then
6428 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
6429 else
6430 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6431 for as_dir in $PATH
6433 IFS=$as_save_IFS
6434 test -z "$as_dir" && as_dir=.
6435 for ac_exec_ext in '' $ac_executable_extensions; do
6436 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6437 ac_cv_prog_ac_ct_OBJDUMP="objdump"
6438 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6439 break 2
6441 done
6442 done
6443 IFS=$as_save_IFS
6447 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6448 if test -n "$ac_ct_OBJDUMP"; then
6449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
6450 $as_echo "$ac_ct_OBJDUMP" >&6; }
6451 else
6452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6453 $as_echo "no" >&6; }
6456 if test "x$ac_ct_OBJDUMP" = x; then
6457 OBJDUMP="false"
6458 else
6459 case $cross_compiling:$ac_tool_warned in
6460 yes:)
6461 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6462 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6463 ac_tool_warned=yes ;;
6464 esac
6465 OBJDUMP=$ac_ct_OBJDUMP
6467 else
6468 OBJDUMP="$ac_cv_prog_OBJDUMP"
6471 test -z "$OBJDUMP" && OBJDUMP=objdump
6481 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
6482 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
6483 if test "${lt_cv_deplibs_check_method+set}" = set; then :
6484 $as_echo_n "(cached) " >&6
6485 else
6486 lt_cv_file_magic_cmd='$MAGIC_CMD'
6487 lt_cv_file_magic_test_file=
6488 lt_cv_deplibs_check_method='unknown'
6489 # Need to set the preceding variable on all platforms that support
6490 # interlibrary dependencies.
6491 # 'none' -- dependencies not supported.
6492 # `unknown' -- same as none, but documents that we really don't know.
6493 # 'pass_all' -- all dependencies passed with no checks.
6494 # 'test_compile' -- check by making test program.
6495 # 'file_magic [[regex]]' -- check by looking for files in library path
6496 # which responds to the $file_magic_cmd with a given extended regex.
6497 # If you have `file' or equivalent on your system and you're not sure
6498 # whether `pass_all' will *always* work, you probably want this one.
6500 case $host_os in
6501 aix[4-9]*)
6502 lt_cv_deplibs_check_method=pass_all
6505 beos*)
6506 lt_cv_deplibs_check_method=pass_all
6509 bsdi[45]*)
6510 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6511 lt_cv_file_magic_cmd='/usr/bin/file -L'
6512 lt_cv_file_magic_test_file=/shlib/libc.so
6515 cygwin*)
6516 # func_win32_libid is a shell function defined in ltmain.sh
6517 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6518 lt_cv_file_magic_cmd='func_win32_libid'
6521 mingw* | pw32*)
6522 # Base MSYS/MinGW do not provide the 'file' command needed by
6523 # func_win32_libid shell function, so use a weaker test based on 'objdump',
6524 # unless we find 'file', for example because we are cross-compiling.
6525 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
6526 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
6527 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6528 lt_cv_file_magic_cmd='func_win32_libid'
6529 else
6530 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
6531 lt_cv_file_magic_cmd='$OBJDUMP -f'
6535 cegcc*)
6536 # use the weaker test based on 'objdump'. See mingw*.
6537 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
6538 lt_cv_file_magic_cmd='$OBJDUMP -f'
6541 darwin* | rhapsody*)
6542 lt_cv_deplibs_check_method=pass_all
6545 freebsd* | dragonfly*)
6546 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6547 case $host_cpu in
6548 i*86 )
6549 # Not sure whether the presence of OpenBSD here was a mistake.
6550 # Let's accept both of them until this is cleared up.
6551 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6552 lt_cv_file_magic_cmd=/usr/bin/file
6553 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6555 esac
6556 else
6557 lt_cv_deplibs_check_method=pass_all
6561 gnu*)
6562 lt_cv_deplibs_check_method=pass_all
6565 haiku*)
6566 lt_cv_deplibs_check_method=pass_all
6569 hpux10.20* | hpux11*)
6570 lt_cv_file_magic_cmd=/usr/bin/file
6571 case $host_cpu in
6572 ia64*)
6573 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6574 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6576 hppa*64*)
6577 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]'
6578 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6581 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
6582 lt_cv_file_magic_test_file=/usr/lib/libc.sl
6584 esac
6587 interix[3-9]*)
6588 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6589 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6592 irix5* | irix6* | nonstopux*)
6593 case $LD in
6594 *-32|*"-32 ") libmagic=32-bit;;
6595 *-n32|*"-n32 ") libmagic=N32;;
6596 *-64|*"-64 ") libmagic=64-bit;;
6597 *) libmagic=never-match;;
6598 esac
6599 lt_cv_deplibs_check_method=pass_all
6602 # This must be Linux ELF.
6603 linux* | k*bsd*-gnu | kopensolaris*-gnu)
6604 lt_cv_deplibs_check_method=pass_all
6607 netbsd*)
6608 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6609 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6610 else
6611 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6615 newos6*)
6616 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6617 lt_cv_file_magic_cmd=/usr/bin/file
6618 lt_cv_file_magic_test_file=/usr/lib/libnls.so
6621 *nto* | *qnx*)
6622 lt_cv_deplibs_check_method=pass_all
6625 openbsd*)
6626 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6627 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6628 else
6629 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6633 osf3* | osf4* | osf5*)
6634 lt_cv_deplibs_check_method=pass_all
6637 rdos*)
6638 lt_cv_deplibs_check_method=pass_all
6641 solaris*)
6642 lt_cv_deplibs_check_method=pass_all
6645 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6646 lt_cv_deplibs_check_method=pass_all
6649 sysv4 | sysv4.3*)
6650 case $host_vendor in
6651 motorola)
6652 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]'
6653 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6655 ncr)
6656 lt_cv_deplibs_check_method=pass_all
6658 sequent)
6659 lt_cv_file_magic_cmd='/bin/file'
6660 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6662 sni)
6663 lt_cv_file_magic_cmd='/bin/file'
6664 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6665 lt_cv_file_magic_test_file=/lib/libc.so
6667 siemens)
6668 lt_cv_deplibs_check_method=pass_all
6671 lt_cv_deplibs_check_method=pass_all
6673 esac
6676 tpf*)
6677 lt_cv_deplibs_check_method=pass_all
6679 esac
6682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
6683 $as_echo "$lt_cv_deplibs_check_method" >&6; }
6684 file_magic_cmd=$lt_cv_file_magic_cmd
6685 deplibs_check_method=$lt_cv_deplibs_check_method
6686 test -z "$deplibs_check_method" && deplibs_check_method=unknown
6699 if test -n "$ac_tool_prefix"; then
6700 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6701 set dummy ${ac_tool_prefix}ar; ac_word=$2
6702 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6703 $as_echo_n "checking for $ac_word... " >&6; }
6704 if test "${ac_cv_prog_AR+set}" = set; then :
6705 $as_echo_n "(cached) " >&6
6706 else
6707 if test -n "$AR"; then
6708 ac_cv_prog_AR="$AR" # Let the user override the test.
6709 else
6710 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6711 for as_dir in $PATH
6713 IFS=$as_save_IFS
6714 test -z "$as_dir" && as_dir=.
6715 for ac_exec_ext in '' $ac_executable_extensions; do
6716 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6717 ac_cv_prog_AR="${ac_tool_prefix}ar"
6718 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6719 break 2
6721 done
6722 done
6723 IFS=$as_save_IFS
6727 AR=$ac_cv_prog_AR
6728 if test -n "$AR"; then
6729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6730 $as_echo "$AR" >&6; }
6731 else
6732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6733 $as_echo "no" >&6; }
6738 if test -z "$ac_cv_prog_AR"; then
6739 ac_ct_AR=$AR
6740 # Extract the first word of "ar", so it can be a program name with args.
6741 set dummy ar; ac_word=$2
6742 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6743 $as_echo_n "checking for $ac_word... " >&6; }
6744 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
6745 $as_echo_n "(cached) " >&6
6746 else
6747 if test -n "$ac_ct_AR"; then
6748 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6749 else
6750 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6751 for as_dir in $PATH
6753 IFS=$as_save_IFS
6754 test -z "$as_dir" && as_dir=.
6755 for ac_exec_ext in '' $ac_executable_extensions; do
6756 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6757 ac_cv_prog_ac_ct_AR="ar"
6758 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6759 break 2
6761 done
6762 done
6763 IFS=$as_save_IFS
6767 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6768 if test -n "$ac_ct_AR"; then
6769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6770 $as_echo "$ac_ct_AR" >&6; }
6771 else
6772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6773 $as_echo "no" >&6; }
6776 if test "x$ac_ct_AR" = x; then
6777 AR="false"
6778 else
6779 case $cross_compiling:$ac_tool_warned in
6780 yes:)
6781 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6782 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6783 ac_tool_warned=yes ;;
6784 esac
6785 AR=$ac_ct_AR
6787 else
6788 AR="$ac_cv_prog_AR"
6791 test -z "$AR" && AR=ar
6792 test -z "$AR_FLAGS" && AR_FLAGS=cru
6804 if test -n "$ac_tool_prefix"; then
6805 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6806 set dummy ${ac_tool_prefix}strip; ac_word=$2
6807 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6808 $as_echo_n "checking for $ac_word... " >&6; }
6809 if test "${ac_cv_prog_STRIP+set}" = set; then :
6810 $as_echo_n "(cached) " >&6
6811 else
6812 if test -n "$STRIP"; then
6813 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6814 else
6815 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6816 for as_dir in $PATH
6818 IFS=$as_save_IFS
6819 test -z "$as_dir" && as_dir=.
6820 for ac_exec_ext in '' $ac_executable_extensions; do
6821 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6822 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6823 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6824 break 2
6826 done
6827 done
6828 IFS=$as_save_IFS
6832 STRIP=$ac_cv_prog_STRIP
6833 if test -n "$STRIP"; then
6834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6835 $as_echo "$STRIP" >&6; }
6836 else
6837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6838 $as_echo "no" >&6; }
6843 if test -z "$ac_cv_prog_STRIP"; then
6844 ac_ct_STRIP=$STRIP
6845 # Extract the first word of "strip", so it can be a program name with args.
6846 set dummy strip; ac_word=$2
6847 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6848 $as_echo_n "checking for $ac_word... " >&6; }
6849 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
6850 $as_echo_n "(cached) " >&6
6851 else
6852 if test -n "$ac_ct_STRIP"; then
6853 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6854 else
6855 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6856 for as_dir in $PATH
6858 IFS=$as_save_IFS
6859 test -z "$as_dir" && as_dir=.
6860 for ac_exec_ext in '' $ac_executable_extensions; do
6861 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6862 ac_cv_prog_ac_ct_STRIP="strip"
6863 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6864 break 2
6866 done
6867 done
6868 IFS=$as_save_IFS
6872 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6873 if test -n "$ac_ct_STRIP"; then
6874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6875 $as_echo "$ac_ct_STRIP" >&6; }
6876 else
6877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6878 $as_echo "no" >&6; }
6881 if test "x$ac_ct_STRIP" = x; then
6882 STRIP=":"
6883 else
6884 case $cross_compiling:$ac_tool_warned in
6885 yes:)
6886 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6887 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6888 ac_tool_warned=yes ;;
6889 esac
6890 STRIP=$ac_ct_STRIP
6892 else
6893 STRIP="$ac_cv_prog_STRIP"
6896 test -z "$STRIP" && STRIP=:
6903 if test -n "$ac_tool_prefix"; then
6904 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6905 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6906 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6907 $as_echo_n "checking for $ac_word... " >&6; }
6908 if test "${ac_cv_prog_RANLIB+set}" = set; then :
6909 $as_echo_n "(cached) " >&6
6910 else
6911 if test -n "$RANLIB"; then
6912 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6913 else
6914 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6915 for as_dir in $PATH
6917 IFS=$as_save_IFS
6918 test -z "$as_dir" && as_dir=.
6919 for ac_exec_ext in '' $ac_executable_extensions; do
6920 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6921 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6922 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6923 break 2
6925 done
6926 done
6927 IFS=$as_save_IFS
6931 RANLIB=$ac_cv_prog_RANLIB
6932 if test -n "$RANLIB"; then
6933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6934 $as_echo "$RANLIB" >&6; }
6935 else
6936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6937 $as_echo "no" >&6; }
6942 if test -z "$ac_cv_prog_RANLIB"; then
6943 ac_ct_RANLIB=$RANLIB
6944 # Extract the first word of "ranlib", so it can be a program name with args.
6945 set dummy ranlib; ac_word=$2
6946 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6947 $as_echo_n "checking for $ac_word... " >&6; }
6948 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
6949 $as_echo_n "(cached) " >&6
6950 else
6951 if test -n "$ac_ct_RANLIB"; then
6952 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6953 else
6954 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6955 for as_dir in $PATH
6957 IFS=$as_save_IFS
6958 test -z "$as_dir" && as_dir=.
6959 for ac_exec_ext in '' $ac_executable_extensions; do
6960 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6961 ac_cv_prog_ac_ct_RANLIB="ranlib"
6962 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6963 break 2
6965 done
6966 done
6967 IFS=$as_save_IFS
6971 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6972 if test -n "$ac_ct_RANLIB"; then
6973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6974 $as_echo "$ac_ct_RANLIB" >&6; }
6975 else
6976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6977 $as_echo "no" >&6; }
6980 if test "x$ac_ct_RANLIB" = x; then
6981 RANLIB=":"
6982 else
6983 case $cross_compiling:$ac_tool_warned in
6984 yes:)
6985 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6986 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6987 ac_tool_warned=yes ;;
6988 esac
6989 RANLIB=$ac_ct_RANLIB
6991 else
6992 RANLIB="$ac_cv_prog_RANLIB"
6995 test -z "$RANLIB" && RANLIB=:
7002 # Determine commands to create old-style static archives.
7003 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
7004 old_postinstall_cmds='chmod 644 $oldlib'
7005 old_postuninstall_cmds=
7007 if test -n "$RANLIB"; then
7008 case $host_os in
7009 openbsd*)
7010 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
7013 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
7015 esac
7016 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
7019 case $host_os in
7020 darwin*)
7021 lock_old_archive_extraction=yes ;;
7023 lock_old_archive_extraction=no ;;
7024 esac
7064 # If no C compiler was specified, use CC.
7065 LTCC=${LTCC-"$CC"}
7067 # If no C compiler flags were specified, use CFLAGS.
7068 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7070 # Allow CC to be a program name with arguments.
7071 compiler=$CC
7074 # Check for command to grab the raw symbol name followed by C symbol from nm.
7075 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
7076 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
7077 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
7078 $as_echo_n "(cached) " >&6
7079 else
7081 # These are sane defaults that work on at least a few old systems.
7082 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
7084 # Character class describing NM global symbol codes.
7085 symcode='[BCDEGRST]'
7087 # Regexp to match symbols that can be accessed directly from C.
7088 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
7090 # Define system-specific variables.
7091 case $host_os in
7092 aix*)
7093 symcode='[BCDT]'
7095 cygwin* | mingw* | pw32* | cegcc*)
7096 symcode='[ABCDGISTW]'
7098 hpux*)
7099 if test "$host_cpu" = ia64; then
7100 symcode='[ABCDEGRST]'
7103 irix* | nonstopux*)
7104 symcode='[BCDEGRST]'
7106 osf*)
7107 symcode='[BCDEGQRST]'
7109 solaris*)
7110 symcode='[BDRT]'
7112 sco3.2v5*)
7113 symcode='[DT]'
7115 sysv4.2uw2*)
7116 symcode='[DT]'
7118 sysv5* | sco5v6* | unixware* | OpenUNIX*)
7119 symcode='[ABDT]'
7121 sysv4)
7122 symcode='[DFNSTU]'
7124 esac
7126 # If we're using GNU nm, then use its standard symbol codes.
7127 case `$NM -V 2>&1` in
7128 *GNU* | *'with BFD'*)
7129 symcode='[ABCDGIRSTW]' ;;
7130 esac
7132 # Transform an extracted symbol line into a proper C declaration.
7133 # Some systems (esp. on ia64) link data and code symbols differently,
7134 # so use this general approach.
7135 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7137 # Transform an extracted symbol line into symbol name and symbol address
7138 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
7139 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'"
7141 # Handle CRLF in mingw tool chain
7142 opt_cr=
7143 case $build_os in
7144 mingw*)
7145 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7147 esac
7149 # Try without a prefix underscore, then with it.
7150 for ac_symprfx in "" "_"; do
7152 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7153 symxfrm="\\1 $ac_symprfx\\2 \\2"
7155 # Write the raw and C identifiers.
7156 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7157 # Fake it for dumpbin and say T for any non-static function
7158 # and D for any global variable.
7159 # Also find C++ and __fastcall symbols from MSVC++,
7160 # which start with @ or ?.
7161 lt_cv_sys_global_symbol_pipe="$AWK '"\
7162 " {last_section=section; section=\$ 3};"\
7163 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
7164 " \$ 0!~/External *\|/{next};"\
7165 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
7166 " {if(hide[section]) next};"\
7167 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
7168 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
7169 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
7170 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
7171 " ' prfx=^$ac_symprfx"
7172 else
7173 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7176 # Check to see that the pipe works correctly.
7177 pipe_works=no
7179 rm -f conftest*
7180 cat > conftest.$ac_ext <<_LT_EOF
7181 #ifdef __cplusplus
7182 extern "C" {
7183 #endif
7184 char nm_test_var;
7185 void nm_test_func(void);
7186 void nm_test_func(void){}
7187 #ifdef __cplusplus
7189 #endif
7190 int main(){nm_test_var='a';nm_test_func();return(0);}
7191 _LT_EOF
7193 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7194 (eval $ac_compile) 2>&5
7195 ac_status=$?
7196 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7197 test $ac_status = 0; }; then
7198 # Now try to grab the symbols.
7199 nlist=conftest.nm
7200 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
7201 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
7202 ac_status=$?
7203 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7204 test $ac_status = 0; } && test -s "$nlist"; then
7205 # Try sorting and uniquifying the output.
7206 if sort "$nlist" | uniq > "$nlist"T; then
7207 mv -f "$nlist"T "$nlist"
7208 else
7209 rm -f "$nlist"T
7212 # Make sure that we snagged all the symbols we need.
7213 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
7214 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
7215 cat <<_LT_EOF > conftest.$ac_ext
7216 #ifdef __cplusplus
7217 extern "C" {
7218 #endif
7220 _LT_EOF
7221 # Now generate the symbol file.
7222 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
7224 cat <<_LT_EOF >> conftest.$ac_ext
7226 /* The mapping between symbol names and symbols. */
7227 const struct {
7228 const char *name;
7229 void *address;
7231 lt__PROGRAM__LTX_preloaded_symbols[] =
7233 { "@PROGRAM@", (void *) 0 },
7234 _LT_EOF
7235 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
7236 cat <<\_LT_EOF >> conftest.$ac_ext
7237 {0, (void *) 0}
7240 /* This works around a problem in FreeBSD linker */
7241 #ifdef FREEBSD_WORKAROUND
7242 static const void *lt_preloaded_setup() {
7243 return lt__PROGRAM__LTX_preloaded_symbols;
7245 #endif
7247 #ifdef __cplusplus
7249 #endif
7250 _LT_EOF
7251 # Now try linking the two files.
7252 mv conftest.$ac_objext conftstm.$ac_objext
7253 lt_save_LIBS="$LIBS"
7254 lt_save_CFLAGS="$CFLAGS"
7255 LIBS="conftstm.$ac_objext"
7256 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7257 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
7258 (eval $ac_link) 2>&5
7259 ac_status=$?
7260 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7261 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
7262 pipe_works=yes
7264 LIBS="$lt_save_LIBS"
7265 CFLAGS="$lt_save_CFLAGS"
7266 else
7267 echo "cannot find nm_test_func in $nlist" >&5
7269 else
7270 echo "cannot find nm_test_var in $nlist" >&5
7272 else
7273 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7275 else
7276 echo "$progname: failed program was:" >&5
7277 cat conftest.$ac_ext >&5
7279 rm -rf conftest* conftst*
7281 # Do not use the global_symbol_pipe unless it works.
7282 if test "$pipe_works" = yes; then
7283 break
7284 else
7285 lt_cv_sys_global_symbol_pipe=
7287 done
7291 if test -z "$lt_cv_sys_global_symbol_pipe"; then
7292 lt_cv_sys_global_symbol_to_cdecl=
7294 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
7296 $as_echo "failed" >&6; }
7297 else
7298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
7299 $as_echo "ok" >&6; }
7323 # Check whether --enable-libtool-lock was given.
7324 if test "${enable_libtool_lock+set}" = set; then :
7325 enableval=$enable_libtool_lock;
7328 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7330 # Some flags need to be propagated to the compiler or linker for good
7331 # libtool support.
7332 case $host in
7333 ia64-*-hpux*)
7334 # Find out which ABI we are using.
7335 echo 'int i;' > conftest.$ac_ext
7336 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7337 (eval $ac_compile) 2>&5
7338 ac_status=$?
7339 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7340 test $ac_status = 0; }; then
7341 case `/usr/bin/file conftest.$ac_objext` in
7342 *ELF-32*)
7343 HPUX_IA64_MODE="32"
7345 *ELF-64*)
7346 HPUX_IA64_MODE="64"
7348 esac
7350 rm -rf conftest*
7352 *-*-irix6*)
7353 # Find out which ABI we are using.
7354 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
7355 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7356 (eval $ac_compile) 2>&5
7357 ac_status=$?
7358 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7359 test $ac_status = 0; }; then
7360 if test "$lt_cv_prog_gnu_ld" = yes; then
7361 case `/usr/bin/file conftest.$ac_objext` in
7362 *32-bit*)
7363 LD="${LD-ld} -melf32bsmip"
7365 *N32*)
7366 LD="${LD-ld} -melf32bmipn32"
7368 *64-bit*)
7369 LD="${LD-ld} -melf64bmip"
7371 esac
7372 else
7373 case `/usr/bin/file conftest.$ac_objext` in
7374 *32-bit*)
7375 LD="${LD-ld} -32"
7377 *N32*)
7378 LD="${LD-ld} -n32"
7380 *64-bit*)
7381 LD="${LD-ld} -64"
7383 esac
7386 rm -rf conftest*
7389 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
7390 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
7391 # Find out which ABI we are using.
7392 echo 'int i;' > conftest.$ac_ext
7393 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7394 (eval $ac_compile) 2>&5
7395 ac_status=$?
7396 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7397 test $ac_status = 0; }; then
7398 case `/usr/bin/file conftest.o` in
7399 *32-bit*)
7400 case $host in
7401 x86_64-*kfreebsd*-gnu)
7402 LD="${LD-ld} -m elf_i386_fbsd"
7404 x86_64-*linux*)
7405 LD="${LD-ld} -m elf_i386"
7407 ppc64-*linux*|powerpc64-*linux*)
7408 LD="${LD-ld} -m elf32ppclinux"
7410 s390x-*linux*)
7411 LD="${LD-ld} -m elf_s390"
7413 sparc64-*linux*)
7414 LD="${LD-ld} -m elf32_sparc"
7416 esac
7418 *64-bit*)
7419 case $host in
7420 x86_64-*kfreebsd*-gnu)
7421 LD="${LD-ld} -m elf_x86_64_fbsd"
7423 x86_64-*linux*)
7424 LD="${LD-ld} -m elf_x86_64"
7426 ppc*-*linux*|powerpc*-*linux*)
7427 LD="${LD-ld} -m elf64ppc"
7429 s390*-*linux*|s390*-*tpf*)
7430 LD="${LD-ld} -m elf64_s390"
7432 sparc*-*linux*)
7433 LD="${LD-ld} -m elf64_sparc"
7435 esac
7437 esac
7439 rm -rf conftest*
7442 *-*-sco3.2v5*)
7443 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7444 SAVE_CFLAGS="$CFLAGS"
7445 CFLAGS="$CFLAGS -belf"
7446 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
7447 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
7448 if test "${lt_cv_cc_needs_belf+set}" = set; then :
7449 $as_echo_n "(cached) " >&6
7450 else
7451 ac_ext=c
7452 ac_cpp='$CPP $CPPFLAGS'
7453 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7454 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7455 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7457 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7458 /* end confdefs.h. */
7461 main ()
7465 return 0;
7467 _ACEOF
7468 if ac_fn_c_try_link "$LINENO"; then :
7469 lt_cv_cc_needs_belf=yes
7470 else
7471 lt_cv_cc_needs_belf=no
7473 rm -f core conftest.err conftest.$ac_objext \
7474 conftest$ac_exeext conftest.$ac_ext
7475 ac_ext=c
7476 ac_cpp='$CPP $CPPFLAGS'
7477 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7478 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7479 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
7483 $as_echo "$lt_cv_cc_needs_belf" >&6; }
7484 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
7485 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7486 CFLAGS="$SAVE_CFLAGS"
7489 sparc*-*solaris*)
7490 # Find out which ABI we are using.
7491 echo 'int i;' > conftest.$ac_ext
7492 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7493 (eval $ac_compile) 2>&5
7494 ac_status=$?
7495 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7496 test $ac_status = 0; }; then
7497 case `/usr/bin/file conftest.o` in
7498 *64-bit*)
7499 case $lt_cv_prog_gnu_ld in
7500 yes*) LD="${LD-ld} -m elf64_sparc" ;;
7502 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7503 LD="${LD-ld} -64"
7506 esac
7508 esac
7510 rm -rf conftest*
7512 esac
7514 need_locks="$enable_libtool_lock"
7517 case $host_os in
7518 rhapsody* | darwin*)
7519 if test -n "$ac_tool_prefix"; then
7520 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7521 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7522 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7523 $as_echo_n "checking for $ac_word... " >&6; }
7524 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
7525 $as_echo_n "(cached) " >&6
7526 else
7527 if test -n "$DSYMUTIL"; then
7528 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7529 else
7530 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7531 for as_dir in $PATH
7533 IFS=$as_save_IFS
7534 test -z "$as_dir" && as_dir=.
7535 for ac_exec_ext in '' $ac_executable_extensions; do
7536 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7537 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7538 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7539 break 2
7541 done
7542 done
7543 IFS=$as_save_IFS
7547 DSYMUTIL=$ac_cv_prog_DSYMUTIL
7548 if test -n "$DSYMUTIL"; then
7549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
7550 $as_echo "$DSYMUTIL" >&6; }
7551 else
7552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7553 $as_echo "no" >&6; }
7558 if test -z "$ac_cv_prog_DSYMUTIL"; then
7559 ac_ct_DSYMUTIL=$DSYMUTIL
7560 # Extract the first word of "dsymutil", so it can be a program name with args.
7561 set dummy dsymutil; ac_word=$2
7562 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7563 $as_echo_n "checking for $ac_word... " >&6; }
7564 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
7565 $as_echo_n "(cached) " >&6
7566 else
7567 if test -n "$ac_ct_DSYMUTIL"; then
7568 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7569 else
7570 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7571 for as_dir in $PATH
7573 IFS=$as_save_IFS
7574 test -z "$as_dir" && as_dir=.
7575 for ac_exec_ext in '' $ac_executable_extensions; do
7576 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7577 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7578 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7579 break 2
7581 done
7582 done
7583 IFS=$as_save_IFS
7587 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7588 if test -n "$ac_ct_DSYMUTIL"; then
7589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
7590 $as_echo "$ac_ct_DSYMUTIL" >&6; }
7591 else
7592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7593 $as_echo "no" >&6; }
7596 if test "x$ac_ct_DSYMUTIL" = x; then
7597 DSYMUTIL=":"
7598 else
7599 case $cross_compiling:$ac_tool_warned in
7600 yes:)
7601 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7602 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7603 ac_tool_warned=yes ;;
7604 esac
7605 DSYMUTIL=$ac_ct_DSYMUTIL
7607 else
7608 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7611 if test -n "$ac_tool_prefix"; then
7612 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7613 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7614 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7615 $as_echo_n "checking for $ac_word... " >&6; }
7616 if test "${ac_cv_prog_NMEDIT+set}" = set; then :
7617 $as_echo_n "(cached) " >&6
7618 else
7619 if test -n "$NMEDIT"; then
7620 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7621 else
7622 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7623 for as_dir in $PATH
7625 IFS=$as_save_IFS
7626 test -z "$as_dir" && as_dir=.
7627 for ac_exec_ext in '' $ac_executable_extensions; do
7628 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7629 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7630 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7631 break 2
7633 done
7634 done
7635 IFS=$as_save_IFS
7639 NMEDIT=$ac_cv_prog_NMEDIT
7640 if test -n "$NMEDIT"; then
7641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
7642 $as_echo "$NMEDIT" >&6; }
7643 else
7644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7645 $as_echo "no" >&6; }
7650 if test -z "$ac_cv_prog_NMEDIT"; then
7651 ac_ct_NMEDIT=$NMEDIT
7652 # Extract the first word of "nmedit", so it can be a program name with args.
7653 set dummy nmedit; ac_word=$2
7654 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7655 $as_echo_n "checking for $ac_word... " >&6; }
7656 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
7657 $as_echo_n "(cached) " >&6
7658 else
7659 if test -n "$ac_ct_NMEDIT"; then
7660 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7661 else
7662 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7663 for as_dir in $PATH
7665 IFS=$as_save_IFS
7666 test -z "$as_dir" && as_dir=.
7667 for ac_exec_ext in '' $ac_executable_extensions; do
7668 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7669 ac_cv_prog_ac_ct_NMEDIT="nmedit"
7670 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7671 break 2
7673 done
7674 done
7675 IFS=$as_save_IFS
7679 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7680 if test -n "$ac_ct_NMEDIT"; then
7681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7682 $as_echo "$ac_ct_NMEDIT" >&6; }
7683 else
7684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7685 $as_echo "no" >&6; }
7688 if test "x$ac_ct_NMEDIT" = x; then
7689 NMEDIT=":"
7690 else
7691 case $cross_compiling:$ac_tool_warned in
7692 yes:)
7693 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7694 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7695 ac_tool_warned=yes ;;
7696 esac
7697 NMEDIT=$ac_ct_NMEDIT
7699 else
7700 NMEDIT="$ac_cv_prog_NMEDIT"
7703 if test -n "$ac_tool_prefix"; then
7704 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7705 set dummy ${ac_tool_prefix}lipo; ac_word=$2
7706 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7707 $as_echo_n "checking for $ac_word... " >&6; }
7708 if test "${ac_cv_prog_LIPO+set}" = set; then :
7709 $as_echo_n "(cached) " >&6
7710 else
7711 if test -n "$LIPO"; then
7712 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7713 else
7714 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7715 for as_dir in $PATH
7717 IFS=$as_save_IFS
7718 test -z "$as_dir" && as_dir=.
7719 for ac_exec_ext in '' $ac_executable_extensions; do
7720 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7721 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7722 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7723 break 2
7725 done
7726 done
7727 IFS=$as_save_IFS
7731 LIPO=$ac_cv_prog_LIPO
7732 if test -n "$LIPO"; then
7733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7734 $as_echo "$LIPO" >&6; }
7735 else
7736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7737 $as_echo "no" >&6; }
7742 if test -z "$ac_cv_prog_LIPO"; then
7743 ac_ct_LIPO=$LIPO
7744 # Extract the first word of "lipo", so it can be a program name with args.
7745 set dummy lipo; ac_word=$2
7746 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7747 $as_echo_n "checking for $ac_word... " >&6; }
7748 if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
7749 $as_echo_n "(cached) " >&6
7750 else
7751 if test -n "$ac_ct_LIPO"; then
7752 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7753 else
7754 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7755 for as_dir in $PATH
7757 IFS=$as_save_IFS
7758 test -z "$as_dir" && as_dir=.
7759 for ac_exec_ext in '' $ac_executable_extensions; do
7760 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7761 ac_cv_prog_ac_ct_LIPO="lipo"
7762 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7763 break 2
7765 done
7766 done
7767 IFS=$as_save_IFS
7771 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7772 if test -n "$ac_ct_LIPO"; then
7773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7774 $as_echo "$ac_ct_LIPO" >&6; }
7775 else
7776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7777 $as_echo "no" >&6; }
7780 if test "x$ac_ct_LIPO" = x; then
7781 LIPO=":"
7782 else
7783 case $cross_compiling:$ac_tool_warned in
7784 yes:)
7785 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7786 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7787 ac_tool_warned=yes ;;
7788 esac
7789 LIPO=$ac_ct_LIPO
7791 else
7792 LIPO="$ac_cv_prog_LIPO"
7795 if test -n "$ac_tool_prefix"; then
7796 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7797 set dummy ${ac_tool_prefix}otool; ac_word=$2
7798 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7799 $as_echo_n "checking for $ac_word... " >&6; }
7800 if test "${ac_cv_prog_OTOOL+set}" = set; then :
7801 $as_echo_n "(cached) " >&6
7802 else
7803 if test -n "$OTOOL"; then
7804 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7805 else
7806 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7807 for as_dir in $PATH
7809 IFS=$as_save_IFS
7810 test -z "$as_dir" && as_dir=.
7811 for ac_exec_ext in '' $ac_executable_extensions; do
7812 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7813 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7814 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7815 break 2
7817 done
7818 done
7819 IFS=$as_save_IFS
7823 OTOOL=$ac_cv_prog_OTOOL
7824 if test -n "$OTOOL"; then
7825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7826 $as_echo "$OTOOL" >&6; }
7827 else
7828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7829 $as_echo "no" >&6; }
7834 if test -z "$ac_cv_prog_OTOOL"; then
7835 ac_ct_OTOOL=$OTOOL
7836 # Extract the first word of "otool", so it can be a program name with args.
7837 set dummy otool; ac_word=$2
7838 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7839 $as_echo_n "checking for $ac_word... " >&6; }
7840 if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
7841 $as_echo_n "(cached) " >&6
7842 else
7843 if test -n "$ac_ct_OTOOL"; then
7844 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7845 else
7846 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7847 for as_dir in $PATH
7849 IFS=$as_save_IFS
7850 test -z "$as_dir" && as_dir=.
7851 for ac_exec_ext in '' $ac_executable_extensions; do
7852 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7853 ac_cv_prog_ac_ct_OTOOL="otool"
7854 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7855 break 2
7857 done
7858 done
7859 IFS=$as_save_IFS
7863 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7864 if test -n "$ac_ct_OTOOL"; then
7865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7866 $as_echo "$ac_ct_OTOOL" >&6; }
7867 else
7868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7869 $as_echo "no" >&6; }
7872 if test "x$ac_ct_OTOOL" = x; then
7873 OTOOL=":"
7874 else
7875 case $cross_compiling:$ac_tool_warned in
7876 yes:)
7877 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7878 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7879 ac_tool_warned=yes ;;
7880 esac
7881 OTOOL=$ac_ct_OTOOL
7883 else
7884 OTOOL="$ac_cv_prog_OTOOL"
7887 if test -n "$ac_tool_prefix"; then
7888 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7889 set dummy ${ac_tool_prefix}otool64; ac_word=$2
7890 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7891 $as_echo_n "checking for $ac_word... " >&6; }
7892 if test "${ac_cv_prog_OTOOL64+set}" = set; then :
7893 $as_echo_n "(cached) " >&6
7894 else
7895 if test -n "$OTOOL64"; then
7896 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7897 else
7898 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7899 for as_dir in $PATH
7901 IFS=$as_save_IFS
7902 test -z "$as_dir" && as_dir=.
7903 for ac_exec_ext in '' $ac_executable_extensions; do
7904 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7905 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7906 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7907 break 2
7909 done
7910 done
7911 IFS=$as_save_IFS
7915 OTOOL64=$ac_cv_prog_OTOOL64
7916 if test -n "$OTOOL64"; then
7917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
7918 $as_echo "$OTOOL64" >&6; }
7919 else
7920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7921 $as_echo "no" >&6; }
7926 if test -z "$ac_cv_prog_OTOOL64"; then
7927 ac_ct_OTOOL64=$OTOOL64
7928 # Extract the first word of "otool64", so it can be a program name with args.
7929 set dummy otool64; ac_word=$2
7930 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7931 $as_echo_n "checking for $ac_word... " >&6; }
7932 if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
7933 $as_echo_n "(cached) " >&6
7934 else
7935 if test -n "$ac_ct_OTOOL64"; then
7936 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7937 else
7938 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7939 for as_dir in $PATH
7941 IFS=$as_save_IFS
7942 test -z "$as_dir" && as_dir=.
7943 for ac_exec_ext in '' $ac_executable_extensions; do
7944 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7945 ac_cv_prog_ac_ct_OTOOL64="otool64"
7946 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7947 break 2
7949 done
7950 done
7951 IFS=$as_save_IFS
7955 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7956 if test -n "$ac_ct_OTOOL64"; then
7957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
7958 $as_echo "$ac_ct_OTOOL64" >&6; }
7959 else
7960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7961 $as_echo "no" >&6; }
7964 if test "x$ac_ct_OTOOL64" = x; then
7965 OTOOL64=":"
7966 else
7967 case $cross_compiling:$ac_tool_warned in
7968 yes:)
7969 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7970 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7971 ac_tool_warned=yes ;;
7972 esac
7973 OTOOL64=$ac_ct_OTOOL64
7975 else
7976 OTOOL64="$ac_cv_prog_OTOOL64"
8005 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
8006 $as_echo_n "checking for -single_module linker flag... " >&6; }
8007 if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
8008 $as_echo_n "(cached) " >&6
8009 else
8010 lt_cv_apple_cc_single_mod=no
8011 if test -z "${LT_MULTI_MODULE}"; then
8012 # By default we will add the -single_module flag. You can override
8013 # by either setting the environment variable LT_MULTI_MODULE
8014 # non-empty at configure time, or by adding -multi_module to the
8015 # link flags.
8016 rm -rf libconftest.dylib*
8017 echo "int foo(void){return 1;}" > conftest.c
8018 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8019 -dynamiclib -Wl,-single_module conftest.c" >&5
8020 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8021 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
8022 _lt_result=$?
8023 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
8024 lt_cv_apple_cc_single_mod=yes
8025 else
8026 cat conftest.err >&5
8028 rm -rf libconftest.dylib*
8029 rm -f conftest.*
8032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
8033 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
8034 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
8035 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
8036 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
8037 $as_echo_n "(cached) " >&6
8038 else
8039 lt_cv_ld_exported_symbols_list=no
8040 save_LDFLAGS=$LDFLAGS
8041 echo "_main" > conftest.sym
8042 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
8043 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8044 /* end confdefs.h. */
8047 main ()
8051 return 0;
8053 _ACEOF
8054 if ac_fn_c_try_link "$LINENO"; then :
8055 lt_cv_ld_exported_symbols_list=yes
8056 else
8057 lt_cv_ld_exported_symbols_list=no
8059 rm -f core conftest.err conftest.$ac_objext \
8060 conftest$ac_exeext conftest.$ac_ext
8061 LDFLAGS="$save_LDFLAGS"
8064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
8065 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
8066 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
8067 $as_echo_n "checking for -force_load linker flag... " >&6; }
8068 if test "${lt_cv_ld_force_load+set}" = set; then :
8069 $as_echo_n "(cached) " >&6
8070 else
8071 lt_cv_ld_force_load=no
8072 cat > conftest.c << _LT_EOF
8073 int forced_loaded() { return 2;}
8074 _LT_EOF
8075 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
8076 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
8077 echo "$AR cru libconftest.a conftest.o" >&5
8078 $AR cru libconftest.a conftest.o 2>&5
8079 cat > conftest.c << _LT_EOF
8080 int main() { return 0;}
8081 _LT_EOF
8082 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
8083 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
8084 _lt_result=$?
8085 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
8086 lt_cv_ld_force_load=yes
8087 else
8088 cat conftest.err >&5
8090 rm -f conftest.err libconftest.a conftest conftest.c
8091 rm -rf conftest.dSYM
8094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
8095 $as_echo "$lt_cv_ld_force_load" >&6; }
8096 case $host_os in
8097 rhapsody* | darwin1.[012])
8098 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
8099 darwin1.*)
8100 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8101 darwin*) # darwin 5.x on
8102 # if running on 10.5 or later, the deployment target defaults
8103 # to the OS version, if on x86, and 10.4, the deployment
8104 # target defaults to 10.4. Don't you love it?
8105 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
8106 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
8107 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
8108 10.[012]*)
8109 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8110 10.*)
8111 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
8112 esac
8114 esac
8115 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
8116 _lt_dar_single_mod='$single_module'
8118 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
8119 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
8120 else
8121 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
8123 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
8124 _lt_dsymutil='~$DSYMUTIL $lib || :'
8125 else
8126 _lt_dsymutil=
8129 esac
8131 for ac_header in dlfcn.h
8132 do :
8133 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
8135 if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
8136 cat >>confdefs.h <<_ACEOF
8137 #define HAVE_DLFCN_H 1
8138 _ACEOF
8142 done
8148 # Set options
8152 enable_dlopen=no
8155 enable_win32_dll=no
8158 # Check whether --enable-shared was given.
8159 if test "${enable_shared+set}" = set; then :
8160 enableval=$enable_shared; p=${PACKAGE-default}
8161 case $enableval in
8162 yes) enable_shared=yes ;;
8163 no) enable_shared=no ;;
8165 enable_shared=no
8166 # Look at the argument we got. We use all the common list separators.
8167 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8168 for pkg in $enableval; do
8169 IFS="$lt_save_ifs"
8170 if test "X$pkg" = "X$p"; then
8171 enable_shared=yes
8173 done
8174 IFS="$lt_save_ifs"
8176 esac
8177 else
8178 enable_shared=yes
8189 # Check whether --enable-static was given.
8190 if test "${enable_static+set}" = set; then :
8191 enableval=$enable_static; p=${PACKAGE-default}
8192 case $enableval in
8193 yes) enable_static=yes ;;
8194 no) enable_static=no ;;
8196 enable_static=no
8197 # Look at the argument we got. We use all the common list separators.
8198 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8199 for pkg in $enableval; do
8200 IFS="$lt_save_ifs"
8201 if test "X$pkg" = "X$p"; then
8202 enable_static=yes
8204 done
8205 IFS="$lt_save_ifs"
8207 esac
8208 else
8209 enable_static=yes
8221 # Check whether --with-pic was given.
8222 if test "${with_pic+set}" = set; then :
8223 withval=$with_pic; pic_mode="$withval"
8224 else
8225 pic_mode=default
8229 test -z "$pic_mode" && pic_mode=default
8237 # Check whether --enable-fast-install was given.
8238 if test "${enable_fast_install+set}" = set; then :
8239 enableval=$enable_fast_install; p=${PACKAGE-default}
8240 case $enableval in
8241 yes) enable_fast_install=yes ;;
8242 no) enable_fast_install=no ;;
8244 enable_fast_install=no
8245 # Look at the argument we got. We use all the common list separators.
8246 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8247 for pkg in $enableval; do
8248 IFS="$lt_save_ifs"
8249 if test "X$pkg" = "X$p"; then
8250 enable_fast_install=yes
8252 done
8253 IFS="$lt_save_ifs"
8255 esac
8256 else
8257 enable_fast_install=yes
8270 # This can be used to rebuild libtool when needed
8271 LIBTOOL_DEPS="$ltmain"
8273 # Always use our own libtool.
8274 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8301 test -z "$LN_S" && LN_S="ln -s"
8316 if test -n "${ZSH_VERSION+set}" ; then
8317 setopt NO_GLOB_SUBST
8320 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8321 $as_echo_n "checking for objdir... " >&6; }
8322 if test "${lt_cv_objdir+set}" = set; then :
8323 $as_echo_n "(cached) " >&6
8324 else
8325 rm -f .libs 2>/dev/null
8326 mkdir .libs 2>/dev/null
8327 if test -d .libs; then
8328 lt_cv_objdir=.libs
8329 else
8330 # MS-DOS does not allow filenames that begin with a dot.
8331 lt_cv_objdir=_libs
8333 rmdir .libs 2>/dev/null
8335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8336 $as_echo "$lt_cv_objdir" >&6; }
8337 objdir=$lt_cv_objdir
8343 cat >>confdefs.h <<_ACEOF
8344 #define LT_OBJDIR "$lt_cv_objdir/"
8345 _ACEOF
8350 case $host_os in
8351 aix3*)
8352 # AIX sometimes has problems with the GCC collect2 program. For some
8353 # reason, if we set the COLLECT_NAMES environment variable, the problems
8354 # vanish in a puff of smoke.
8355 if test "X${COLLECT_NAMES+set}" != Xset; then
8356 COLLECT_NAMES=
8357 export COLLECT_NAMES
8360 esac
8362 # Global variables:
8363 ofile=libtool
8364 can_build_shared=yes
8366 # All known linkers require a `.a' archive for static linking (except MSVC,
8367 # which needs '.lib').
8368 libext=a
8370 with_gnu_ld="$lt_cv_prog_gnu_ld"
8372 old_CC="$CC"
8373 old_CFLAGS="$CFLAGS"
8375 # Set sane defaults for various variables
8376 test -z "$CC" && CC=cc
8377 test -z "$LTCC" && LTCC=$CC
8378 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8379 test -z "$LD" && LD=ld
8380 test -z "$ac_objext" && ac_objext=o
8382 for cc_temp in $compiler""; do
8383 case $cc_temp in
8384 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8385 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8386 \-*) ;;
8387 *) break;;
8388 esac
8389 done
8390 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
8393 # Only perform the check for file, if the check method requires it
8394 test -z "$MAGIC_CMD" && MAGIC_CMD=file
8395 case $deplibs_check_method in
8396 file_magic*)
8397 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8398 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8399 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
8400 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
8401 $as_echo_n "(cached) " >&6
8402 else
8403 case $MAGIC_CMD in
8404 [\\/*] | ?:[\\/]*)
8405 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8408 lt_save_MAGIC_CMD="$MAGIC_CMD"
8409 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8410 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8411 for ac_dir in $ac_dummy; do
8412 IFS="$lt_save_ifs"
8413 test -z "$ac_dir" && ac_dir=.
8414 if test -f $ac_dir/${ac_tool_prefix}file; then
8415 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8416 if test -n "$file_magic_test_file"; then
8417 case $deplibs_check_method in
8418 "file_magic "*)
8419 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8420 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8421 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8422 $EGREP "$file_magic_regex" > /dev/null; then
8424 else
8425 cat <<_LT_EOF 1>&2
8427 *** Warning: the command libtool uses to detect shared libraries,
8428 *** $file_magic_cmd, produces output that libtool cannot recognize.
8429 *** The result is that libtool may fail to recognize shared libraries
8430 *** as such. This will affect the creation of libtool libraries that
8431 *** depend on shared libraries, but programs linked with such libtool
8432 *** libraries will work regardless of this problem. Nevertheless, you
8433 *** may want to report the problem to your system manager and/or to
8434 *** bug-libtool@gnu.org
8436 _LT_EOF
8437 fi ;;
8438 esac
8440 break
8442 done
8443 IFS="$lt_save_ifs"
8444 MAGIC_CMD="$lt_save_MAGIC_CMD"
8446 esac
8449 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8450 if test -n "$MAGIC_CMD"; then
8451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8452 $as_echo "$MAGIC_CMD" >&6; }
8453 else
8454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8455 $as_echo "no" >&6; }
8462 if test -z "$lt_cv_path_MAGIC_CMD"; then
8463 if test -n "$ac_tool_prefix"; then
8464 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8465 $as_echo_n "checking for file... " >&6; }
8466 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
8467 $as_echo_n "(cached) " >&6
8468 else
8469 case $MAGIC_CMD in
8470 [\\/*] | ?:[\\/]*)
8471 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8474 lt_save_MAGIC_CMD="$MAGIC_CMD"
8475 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8476 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8477 for ac_dir in $ac_dummy; do
8478 IFS="$lt_save_ifs"
8479 test -z "$ac_dir" && ac_dir=.
8480 if test -f $ac_dir/file; then
8481 lt_cv_path_MAGIC_CMD="$ac_dir/file"
8482 if test -n "$file_magic_test_file"; then
8483 case $deplibs_check_method in
8484 "file_magic "*)
8485 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8486 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8487 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8488 $EGREP "$file_magic_regex" > /dev/null; then
8490 else
8491 cat <<_LT_EOF 1>&2
8493 *** Warning: the command libtool uses to detect shared libraries,
8494 *** $file_magic_cmd, produces output that libtool cannot recognize.
8495 *** The result is that libtool may fail to recognize shared libraries
8496 *** as such. This will affect the creation of libtool libraries that
8497 *** depend on shared libraries, but programs linked with such libtool
8498 *** libraries will work regardless of this problem. Nevertheless, you
8499 *** may want to report the problem to your system manager and/or to
8500 *** bug-libtool@gnu.org
8502 _LT_EOF
8503 fi ;;
8504 esac
8506 break
8508 done
8509 IFS="$lt_save_ifs"
8510 MAGIC_CMD="$lt_save_MAGIC_CMD"
8512 esac
8515 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8516 if test -n "$MAGIC_CMD"; then
8517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8518 $as_echo "$MAGIC_CMD" >&6; }
8519 else
8520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8521 $as_echo "no" >&6; }
8525 else
8526 MAGIC_CMD=:
8532 esac
8534 # Use C for the default configuration in the libtool script
8536 lt_save_CC="$CC"
8537 ac_ext=c
8538 ac_cpp='$CPP $CPPFLAGS'
8539 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8540 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8541 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8544 # Source file extension for C test sources.
8545 ac_ext=c
8547 # Object file extension for compiled C test sources.
8548 objext=o
8549 objext=$objext
8551 # Code to be used in simple compile tests
8552 lt_simple_compile_test_code="int some_variable = 0;"
8554 # Code to be used in simple link tests
8555 lt_simple_link_test_code='int main(){return(0);}'
8563 # If no C compiler was specified, use CC.
8564 LTCC=${LTCC-"$CC"}
8566 # If no C compiler flags were specified, use CFLAGS.
8567 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8569 # Allow CC to be a program name with arguments.
8570 compiler=$CC
8572 # Save the default compiler, since it gets overwritten when the other
8573 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8574 compiler_DEFAULT=$CC
8576 # save warnings/boilerplate of simple test code
8577 ac_outfile=conftest.$ac_objext
8578 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8579 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8580 _lt_compiler_boilerplate=`cat conftest.err`
8581 $RM conftest*
8583 ac_outfile=conftest.$ac_objext
8584 echo "$lt_simple_link_test_code" >conftest.$ac_ext
8585 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8586 _lt_linker_boilerplate=`cat conftest.err`
8587 $RM -r conftest*
8590 ## CAVEAT EMPTOR:
8591 ## There is no encapsulation within the following macros, do not change
8592 ## the running order or otherwise move them around unless you know exactly
8593 ## what you are doing...
8594 if test -n "$compiler"; then
8596 lt_prog_compiler_no_builtin_flag=
8598 if test "$GCC" = yes; then
8599 case $cc_basename in
8600 nvcc*)
8601 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
8603 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
8604 esac
8606 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8607 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8608 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
8609 $as_echo_n "(cached) " >&6
8610 else
8611 lt_cv_prog_compiler_rtti_exceptions=no
8612 ac_outfile=conftest.$ac_objext
8613 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8614 lt_compiler_flag="-fno-rtti -fno-exceptions"
8615 # Insert the option either (1) after the last *FLAGS variable, or
8616 # (2) before a word containing "conftest.", or (3) at the end.
8617 # Note that $ac_compile itself does not contain backslashes and begins
8618 # with a dollar sign (not a hyphen), so the echo should work correctly.
8619 # The option is referenced via a variable to avoid confusing sed.
8620 lt_compile=`echo "$ac_compile" | $SED \
8621 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8622 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8623 -e 's:$: $lt_compiler_flag:'`
8624 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8625 (eval "$lt_compile" 2>conftest.err)
8626 ac_status=$?
8627 cat conftest.err >&5
8628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8629 if (exit $ac_status) && test -s "$ac_outfile"; then
8630 # The compiler can only warn and ignore the option if not recognized
8631 # So say no if there are warnings other than the usual output.
8632 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8633 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8634 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8635 lt_cv_prog_compiler_rtti_exceptions=yes
8638 $RM conftest*
8641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8642 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8644 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8645 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8646 else
8657 lt_prog_compiler_wl=
8658 lt_prog_compiler_pic=
8659 lt_prog_compiler_static=
8661 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8662 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8664 if test "$GCC" = yes; then
8665 lt_prog_compiler_wl='-Wl,'
8666 lt_prog_compiler_static='-static'
8668 case $host_os in
8669 aix*)
8670 # All AIX code is PIC.
8671 if test "$host_cpu" = ia64; then
8672 # AIX 5 now supports IA64 processor
8673 lt_prog_compiler_static='-Bstatic'
8677 amigaos*)
8678 case $host_cpu in
8679 powerpc)
8680 # see comment about AmigaOS4 .so support
8681 lt_prog_compiler_pic='-fPIC'
8683 m68k)
8684 # FIXME: we need at least 68020 code to build shared libraries, but
8685 # adding the `-m68020' flag to GCC prevents building anything better,
8686 # like `-m68040'.
8687 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8689 esac
8692 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8693 # PIC is the default for these OSes.
8696 mingw* | cygwin* | pw32* | os2* | cegcc*)
8697 # This hack is so that the source file can tell whether it is being
8698 # built for inclusion in a dll (and should export symbols for example).
8699 # Although the cygwin gcc ignores -fPIC, still need this for old-style
8700 # (--disable-auto-import) libraries
8701 lt_prog_compiler_pic='-DDLL_EXPORT'
8704 darwin* | rhapsody*)
8705 # PIC is the default on this platform
8706 # Common symbols not allowed in MH_DYLIB files
8707 lt_prog_compiler_pic='-fno-common'
8710 haiku*)
8711 # PIC is the default for Haiku.
8712 # The "-static" flag exists, but is broken.
8713 lt_prog_compiler_static=
8716 hpux*)
8717 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8718 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
8719 # sets the default TLS model and affects inlining.
8720 case $host_cpu in
8721 hppa*64*)
8722 # +Z the default
8725 lt_prog_compiler_pic='-fPIC'
8727 esac
8730 interix[3-9]*)
8731 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8732 # Instead, we relocate shared libraries at runtime.
8735 msdosdjgpp*)
8736 # Just because we use GCC doesn't mean we suddenly get shared libraries
8737 # on systems that don't support them.
8738 lt_prog_compiler_can_build_shared=no
8739 enable_shared=no
8742 *nto* | *qnx*)
8743 # QNX uses GNU C++, but need to define -shared option too, otherwise
8744 # it will coredump.
8745 lt_prog_compiler_pic='-fPIC -shared'
8748 sysv4*MP*)
8749 if test -d /usr/nec; then
8750 lt_prog_compiler_pic=-Kconform_pic
8755 lt_prog_compiler_pic='-fPIC'
8757 esac
8759 case $cc_basename in
8760 nvcc*) # Cuda Compiler Driver 2.2
8761 lt_prog_compiler_wl='-Xlinker '
8762 lt_prog_compiler_pic='-Xcompiler -fPIC'
8764 esac
8765 else
8766 # PORTME Check for flag to pass linker flags through the system compiler.
8767 case $host_os in
8768 aix*)
8769 lt_prog_compiler_wl='-Wl,'
8770 if test "$host_cpu" = ia64; then
8771 # AIX 5 now supports IA64 processor
8772 lt_prog_compiler_static='-Bstatic'
8773 else
8774 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8778 mingw* | cygwin* | pw32* | os2* | cegcc*)
8779 # This hack is so that the source file can tell whether it is being
8780 # built for inclusion in a dll (and should export symbols for example).
8781 lt_prog_compiler_pic='-DDLL_EXPORT'
8784 hpux9* | hpux10* | hpux11*)
8785 lt_prog_compiler_wl='-Wl,'
8786 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8787 # not for PA HP-UX.
8788 case $host_cpu in
8789 hppa*64*|ia64*)
8790 # +Z the default
8793 lt_prog_compiler_pic='+Z'
8795 esac
8796 # Is there a better lt_prog_compiler_static that works with the bundled CC?
8797 lt_prog_compiler_static='${wl}-a ${wl}archive'
8800 irix5* | irix6* | nonstopux*)
8801 lt_prog_compiler_wl='-Wl,'
8802 # PIC (with -KPIC) is the default.
8803 lt_prog_compiler_static='-non_shared'
8806 linux* | k*bsd*-gnu | kopensolaris*-gnu)
8807 case $cc_basename in
8808 # old Intel for x86_64 which still supported -KPIC.
8809 ecc*)
8810 lt_prog_compiler_wl='-Wl,'
8811 lt_prog_compiler_pic='-KPIC'
8812 lt_prog_compiler_static='-static'
8814 # icc used to be incompatible with GCC.
8815 # ICC 10 doesn't accept -KPIC any more.
8816 icc* | ifort*)
8817 lt_prog_compiler_wl='-Wl,'
8818 lt_prog_compiler_pic='-fPIC'
8819 lt_prog_compiler_static='-static'
8821 # Lahey Fortran 8.1.
8822 lf95*)
8823 lt_prog_compiler_wl='-Wl,'
8824 lt_prog_compiler_pic='--shared'
8825 lt_prog_compiler_static='--static'
8827 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
8828 # Portland Group compilers (*not* the Pentium gcc compiler,
8829 # which looks to be a dead project)
8830 lt_prog_compiler_wl='-Wl,'
8831 lt_prog_compiler_pic='-fpic'
8832 lt_prog_compiler_static='-Bstatic'
8834 ccc*)
8835 lt_prog_compiler_wl='-Wl,'
8836 # All Alpha code is PIC.
8837 lt_prog_compiler_static='-non_shared'
8839 xl* | bgxl* | bgf* | mpixl*)
8840 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
8841 lt_prog_compiler_wl='-Wl,'
8842 lt_prog_compiler_pic='-qpic'
8843 lt_prog_compiler_static='-qstaticlink'
8846 case `$CC -V 2>&1 | sed 5q` in
8847 *Sun\ F* | *Sun*Fortran*)
8848 # Sun Fortran 8.3 passes all unrecognized flags to the linker
8849 lt_prog_compiler_pic='-KPIC'
8850 lt_prog_compiler_static='-Bstatic'
8851 lt_prog_compiler_wl=''
8853 *Sun\ C*)
8854 # Sun C 5.9
8855 lt_prog_compiler_pic='-KPIC'
8856 lt_prog_compiler_static='-Bstatic'
8857 lt_prog_compiler_wl='-Wl,'
8859 esac
8861 esac
8864 newsos6)
8865 lt_prog_compiler_pic='-KPIC'
8866 lt_prog_compiler_static='-Bstatic'
8869 *nto* | *qnx*)
8870 # QNX uses GNU C++, but need to define -shared option too, otherwise
8871 # it will coredump.
8872 lt_prog_compiler_pic='-fPIC -shared'
8875 osf3* | osf4* | osf5*)
8876 lt_prog_compiler_wl='-Wl,'
8877 # All OSF/1 code is PIC.
8878 lt_prog_compiler_static='-non_shared'
8881 rdos*)
8882 lt_prog_compiler_static='-non_shared'
8885 solaris*)
8886 lt_prog_compiler_pic='-KPIC'
8887 lt_prog_compiler_static='-Bstatic'
8888 case $cc_basename in
8889 f77* | f90* | f95*)
8890 lt_prog_compiler_wl='-Qoption ld ';;
8892 lt_prog_compiler_wl='-Wl,';;
8893 esac
8896 sunos4*)
8897 lt_prog_compiler_wl='-Qoption ld '
8898 lt_prog_compiler_pic='-PIC'
8899 lt_prog_compiler_static='-Bstatic'
8902 sysv4 | sysv4.2uw2* | sysv4.3*)
8903 lt_prog_compiler_wl='-Wl,'
8904 lt_prog_compiler_pic='-KPIC'
8905 lt_prog_compiler_static='-Bstatic'
8908 sysv4*MP*)
8909 if test -d /usr/nec ;then
8910 lt_prog_compiler_pic='-Kconform_pic'
8911 lt_prog_compiler_static='-Bstatic'
8915 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8916 lt_prog_compiler_wl='-Wl,'
8917 lt_prog_compiler_pic='-KPIC'
8918 lt_prog_compiler_static='-Bstatic'
8921 unicos*)
8922 lt_prog_compiler_wl='-Wl,'
8923 lt_prog_compiler_can_build_shared=no
8926 uts4*)
8927 lt_prog_compiler_pic='-pic'
8928 lt_prog_compiler_static='-Bstatic'
8932 lt_prog_compiler_can_build_shared=no
8934 esac
8937 case $host_os in
8938 # For platforms which do not support PIC, -DPIC is meaningless:
8939 *djgpp*)
8940 lt_prog_compiler_pic=
8943 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8945 esac
8946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
8947 $as_echo "$lt_prog_compiler_pic" >&6; }
8955 # Check to make sure the PIC flag actually works.
8957 if test -n "$lt_prog_compiler_pic"; then
8958 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8959 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8960 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
8961 $as_echo_n "(cached) " >&6
8962 else
8963 lt_cv_prog_compiler_pic_works=no
8964 ac_outfile=conftest.$ac_objext
8965 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8966 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8967 # Insert the option either (1) after the last *FLAGS variable, or
8968 # (2) before a word containing "conftest.", or (3) at the end.
8969 # Note that $ac_compile itself does not contain backslashes and begins
8970 # with a dollar sign (not a hyphen), so the echo should work correctly.
8971 # The option is referenced via a variable to avoid confusing sed.
8972 lt_compile=`echo "$ac_compile" | $SED \
8973 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8974 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8975 -e 's:$: $lt_compiler_flag:'`
8976 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8977 (eval "$lt_compile" 2>conftest.err)
8978 ac_status=$?
8979 cat conftest.err >&5
8980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8981 if (exit $ac_status) && test -s "$ac_outfile"; then
8982 # The compiler can only warn and ignore the option if not recognized
8983 # So say no if there are warnings other than the usual output.
8984 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8985 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8986 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8987 lt_cv_prog_compiler_pic_works=yes
8990 $RM conftest*
8993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8994 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8996 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
8997 case $lt_prog_compiler_pic in
8998 "" | " "*) ;;
8999 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
9000 esac
9001 else
9002 lt_prog_compiler_pic=
9003 lt_prog_compiler_can_build_shared=no
9014 # Check to make sure the static flag actually works.
9016 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
9017 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
9018 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
9019 if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
9020 $as_echo_n "(cached) " >&6
9021 else
9022 lt_cv_prog_compiler_static_works=no
9023 save_LDFLAGS="$LDFLAGS"
9024 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
9025 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9026 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9027 # The linker can only warn and ignore the option if not recognized
9028 # So say no if there are warnings
9029 if test -s conftest.err; then
9030 # Append any errors to the config.log.
9031 cat conftest.err 1>&5
9032 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9033 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9034 if diff conftest.exp conftest.er2 >/dev/null; then
9035 lt_cv_prog_compiler_static_works=yes
9037 else
9038 lt_cv_prog_compiler_static_works=yes
9041 $RM -r conftest*
9042 LDFLAGS="$save_LDFLAGS"
9045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
9046 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
9048 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
9050 else
9051 lt_prog_compiler_static=
9060 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9061 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9062 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
9063 $as_echo_n "(cached) " >&6
9064 else
9065 lt_cv_prog_compiler_c_o=no
9066 $RM -r conftest 2>/dev/null
9067 mkdir conftest
9068 cd conftest
9069 mkdir out
9070 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9072 lt_compiler_flag="-o out/conftest2.$ac_objext"
9073 # Insert the option either (1) after the last *FLAGS variable, or
9074 # (2) before a word containing "conftest.", or (3) at the end.
9075 # Note that $ac_compile itself does not contain backslashes and begins
9076 # with a dollar sign (not a hyphen), so the echo should work correctly.
9077 lt_compile=`echo "$ac_compile" | $SED \
9078 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9079 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9080 -e 's:$: $lt_compiler_flag:'`
9081 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9082 (eval "$lt_compile" 2>out/conftest.err)
9083 ac_status=$?
9084 cat out/conftest.err >&5
9085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9086 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9087 then
9088 # The compiler can only warn and ignore the option if not recognized
9089 # So say no if there are warnings
9090 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9091 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9092 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9093 lt_cv_prog_compiler_c_o=yes
9096 chmod u+w . 2>&5
9097 $RM conftest*
9098 # SGI C++ compiler will create directory out/ii_files/ for
9099 # template instantiation
9100 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9101 $RM out/* && rmdir out
9102 cd ..
9103 $RM -r conftest
9104 $RM conftest*
9107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9108 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9115 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9116 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9117 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
9118 $as_echo_n "(cached) " >&6
9119 else
9120 lt_cv_prog_compiler_c_o=no
9121 $RM -r conftest 2>/dev/null
9122 mkdir conftest
9123 cd conftest
9124 mkdir out
9125 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9127 lt_compiler_flag="-o out/conftest2.$ac_objext"
9128 # Insert the option either (1) after the last *FLAGS variable, or
9129 # (2) before a word containing "conftest.", or (3) at the end.
9130 # Note that $ac_compile itself does not contain backslashes and begins
9131 # with a dollar sign (not a hyphen), so the echo should work correctly.
9132 lt_compile=`echo "$ac_compile" | $SED \
9133 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9134 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9135 -e 's:$: $lt_compiler_flag:'`
9136 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9137 (eval "$lt_compile" 2>out/conftest.err)
9138 ac_status=$?
9139 cat out/conftest.err >&5
9140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9141 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9142 then
9143 # The compiler can only warn and ignore the option if not recognized
9144 # So say no if there are warnings
9145 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9146 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9147 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9148 lt_cv_prog_compiler_c_o=yes
9151 chmod u+w . 2>&5
9152 $RM conftest*
9153 # SGI C++ compiler will create directory out/ii_files/ for
9154 # template instantiation
9155 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9156 $RM out/* && rmdir out
9157 cd ..
9158 $RM -r conftest
9159 $RM conftest*
9162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9163 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9168 hard_links="nottested"
9169 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
9170 # do not overwrite the value of need_locks provided by the user
9171 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
9172 $as_echo_n "checking if we can lock with hard links... " >&6; }
9173 hard_links=yes
9174 $RM conftest*
9175 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9176 touch conftest.a
9177 ln conftest.a conftest.b 2>&5 || hard_links=no
9178 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
9180 $as_echo "$hard_links" >&6; }
9181 if test "$hard_links" = no; then
9182 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
9183 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
9184 need_locks=warn
9186 else
9187 need_locks=no
9195 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9196 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
9198 runpath_var=
9199 allow_undefined_flag=
9200 always_export_symbols=no
9201 archive_cmds=
9202 archive_expsym_cmds=
9203 compiler_needs_object=no
9204 enable_shared_with_static_runtimes=no
9205 export_dynamic_flag_spec=
9206 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9207 hardcode_automatic=no
9208 hardcode_direct=no
9209 hardcode_direct_absolute=no
9210 hardcode_libdir_flag_spec=
9211 hardcode_libdir_flag_spec_ld=
9212 hardcode_libdir_separator=
9213 hardcode_minus_L=no
9214 hardcode_shlibpath_var=unsupported
9215 inherit_rpath=no
9216 link_all_deplibs=unknown
9217 module_cmds=
9218 module_expsym_cmds=
9219 old_archive_from_new_cmds=
9220 old_archive_from_expsyms_cmds=
9221 thread_safe_flag_spec=
9222 whole_archive_flag_spec=
9223 # include_expsyms should be a list of space-separated symbols to be *always*
9224 # included in the symbol list
9225 include_expsyms=
9226 # exclude_expsyms can be an extended regexp of symbols to exclude
9227 # it will be wrapped by ` (' and `)$', so one must not match beginning or
9228 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
9229 # as well as any symbol that contains `d'.
9230 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9231 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9232 # platforms (ab)use it in PIC code, but their linkers get confused if
9233 # the symbol is explicitly referenced. Since portable code cannot
9234 # rely on this symbol name, it's probably fine to never include it in
9235 # preloaded symbol tables.
9236 # Exclude shared library initialization/finalization symbols.
9237 extract_expsyms_cmds=
9239 case $host_os in
9240 cygwin* | mingw* | pw32* | cegcc*)
9241 # FIXME: the MSVC++ port hasn't been tested in a loooong time
9242 # When not using gcc, we currently assume that we are using
9243 # Microsoft Visual C++.
9244 if test "$GCC" != yes; then
9245 with_gnu_ld=no
9248 interix*)
9249 # we just hope/assume this is gcc and not c89 (= MSVC++)
9250 with_gnu_ld=yes
9252 openbsd*)
9253 with_gnu_ld=no
9255 esac
9257 ld_shlibs=yes
9259 # On some targets, GNU ld is compatible enough with the native linker
9260 # that we're better off using the native interface for both.
9261 lt_use_gnu_ld_interface=no
9262 if test "$with_gnu_ld" = yes; then
9263 case $host_os in
9264 aix*)
9265 # The AIX port of GNU ld has always aspired to compatibility
9266 # with the native linker. However, as the warning in the GNU ld
9267 # block says, versions before 2.19.5* couldn't really create working
9268 # shared libraries, regardless of the interface used.
9269 case `$LD -v 2>&1` in
9270 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
9271 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
9272 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
9274 lt_use_gnu_ld_interface=yes
9276 esac
9279 lt_use_gnu_ld_interface=yes
9281 esac
9284 if test "$lt_use_gnu_ld_interface" = yes; then
9285 # If archive_cmds runs LD, not CC, wlarc should be empty
9286 wlarc='${wl}'
9288 # Set some defaults for GNU ld with shared library support. These
9289 # are reset later if shared libraries are not supported. Putting them
9290 # here allows them to be overridden if necessary.
9291 runpath_var=LD_RUN_PATH
9292 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9293 export_dynamic_flag_spec='${wl}--export-dynamic'
9294 # ancient GNU ld didn't support --whole-archive et. al.
9295 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9296 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9297 else
9298 whole_archive_flag_spec=
9300 supports_anon_versioning=no
9301 case `$LD -v 2>&1` in
9302 *GNU\ gold*) supports_anon_versioning=yes ;;
9303 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9304 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9305 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9306 *\ 2.11.*) ;; # other 2.11 versions
9307 *) supports_anon_versioning=yes ;;
9308 esac
9310 # See if GNU ld supports shared libraries.
9311 case $host_os in
9312 aix[3-9]*)
9313 # On AIX/PPC, the GNU linker is very broken
9314 if test "$host_cpu" != ia64; then
9315 ld_shlibs=no
9316 cat <<_LT_EOF 1>&2
9318 *** Warning: the GNU linker, at least up to release 2.19, is reported
9319 *** to be unable to reliably create shared libraries on AIX.
9320 *** Therefore, libtool is disabling shared libraries support. If you
9321 *** really care for shared libraries, you may want to install binutils
9322 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
9323 *** You will then need to restart the configuration process.
9325 _LT_EOF
9329 amigaos*)
9330 case $host_cpu in
9331 powerpc)
9332 # see comment about AmigaOS4 .so support
9333 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9334 archive_expsym_cmds=''
9336 m68k)
9337 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)'
9338 hardcode_libdir_flag_spec='-L$libdir'
9339 hardcode_minus_L=yes
9341 esac
9344 beos*)
9345 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9346 allow_undefined_flag=unsupported
9347 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9348 # support --undefined. This deserves some investigation. FIXME
9349 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9350 else
9351 ld_shlibs=no
9355 cygwin* | mingw* | pw32* | cegcc*)
9356 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9357 # as there is no search path for DLLs.
9358 hardcode_libdir_flag_spec='-L$libdir'
9359 export_dynamic_flag_spec='${wl}--export-all-symbols'
9360 allow_undefined_flag=unsupported
9361 always_export_symbols=no
9362 enable_shared_with_static_runtimes=yes
9363 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9365 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9366 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9367 # If the export-symbols file already is a .def file (1st line
9368 # is EXPORTS), use it as is; otherwise, prepend...
9369 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9370 cp $export_symbols $output_objdir/$soname.def;
9371 else
9372 echo EXPORTS > $output_objdir/$soname.def;
9373 cat $export_symbols >> $output_objdir/$soname.def;
9375 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9376 else
9377 ld_shlibs=no
9381 haiku*)
9382 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9383 link_all_deplibs=yes
9386 interix[3-9]*)
9387 hardcode_direct=no
9388 hardcode_shlibpath_var=no
9389 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9390 export_dynamic_flag_spec='${wl}-E'
9391 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9392 # Instead, shared libraries are loaded at an image base (0x10000000 by
9393 # default) and relocated if they conflict, which is a slow very memory
9394 # consuming and fragmenting process. To avoid this, we pick a random,
9395 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9396 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
9397 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9398 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'
9401 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
9402 tmp_diet=no
9403 if test "$host_os" = linux-dietlibc; then
9404 case $cc_basename in
9405 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
9406 esac
9408 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9409 && test "$tmp_diet" = no
9410 then
9411 tmp_addflag=
9412 tmp_sharedflag='-shared'
9413 case $cc_basename,$host_cpu in
9414 pgcc*) # Portland Group C compiler
9415 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'
9416 tmp_addflag=' $pic_flag'
9418 pgf77* | pgf90* | pgf95* | pgfortran*)
9419 # Portland Group f77 and f90 compilers
9420 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'
9421 tmp_addflag=' $pic_flag -Mnomain' ;;
9422 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
9423 tmp_addflag=' -i_dynamic' ;;
9424 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
9425 tmp_addflag=' -i_dynamic -nofor_main' ;;
9426 ifc* | ifort*) # Intel Fortran compiler
9427 tmp_addflag=' -nofor_main' ;;
9428 lf95*) # Lahey Fortran 8.1
9429 whole_archive_flag_spec=
9430 tmp_sharedflag='--shared' ;;
9431 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
9432 tmp_sharedflag='-qmkshrobj'
9433 tmp_addflag= ;;
9434 nvcc*) # Cuda Compiler Driver 2.2
9435 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'
9436 compiler_needs_object=yes
9438 esac
9439 case `$CC -V 2>&1 | sed 5q` in
9440 *Sun\ C*) # Sun C 5.9
9441 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'
9442 compiler_needs_object=yes
9443 tmp_sharedflag='-G' ;;
9444 *Sun\ F*) # Sun Fortran 8.3
9445 tmp_sharedflag='-G' ;;
9446 esac
9447 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9449 if test "x$supports_anon_versioning" = xyes; then
9450 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9451 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9452 echo "local: *; };" >> $output_objdir/$libname.ver~
9453 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9456 case $cc_basename in
9457 xlf* | bgf* | bgxlf* | mpixlf*)
9458 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9459 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9460 hardcode_libdir_flag_spec=
9461 hardcode_libdir_flag_spec_ld='-rpath $libdir'
9462 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
9463 if test "x$supports_anon_versioning" = xyes; then
9464 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9465 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9466 echo "local: *; };" >> $output_objdir/$libname.ver~
9467 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9470 esac
9471 else
9472 ld_shlibs=no
9476 netbsd*)
9477 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9478 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9479 wlarc=
9480 else
9481 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9482 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9486 solaris*)
9487 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9488 ld_shlibs=no
9489 cat <<_LT_EOF 1>&2
9491 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
9492 *** create shared libraries on Solaris systems. Therefore, libtool
9493 *** is disabling shared libraries support. We urge you to upgrade GNU
9494 *** binutils to release 2.9.1 or newer. Another option is to modify
9495 *** your PATH or compiler configuration so that the native linker is
9496 *** used, and then restart.
9498 _LT_EOF
9499 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9500 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9501 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9502 else
9503 ld_shlibs=no
9507 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9508 case `$LD -v 2>&1` in
9509 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9510 ld_shlibs=no
9511 cat <<_LT_EOF 1>&2
9513 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9514 *** reliably create shared libraries on SCO systems. Therefore, libtool
9515 *** is disabling shared libraries support. We urge you to upgrade GNU
9516 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
9517 *** your PATH or compiler configuration so that the native linker is
9518 *** used, and then restart.
9520 _LT_EOF
9523 # For security reasons, it is highly recommended that you always
9524 # use absolute paths for naming shared libraries, and exclude the
9525 # DT_RUNPATH tag from executables and libraries. But doing so
9526 # requires that you compile everything twice, which is a pain.
9527 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9528 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9529 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9530 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9531 else
9532 ld_shlibs=no
9535 esac
9538 sunos4*)
9539 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9540 wlarc=
9541 hardcode_direct=yes
9542 hardcode_shlibpath_var=no
9546 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9547 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9548 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9549 else
9550 ld_shlibs=no
9553 esac
9555 if test "$ld_shlibs" = no; then
9556 runpath_var=
9557 hardcode_libdir_flag_spec=
9558 export_dynamic_flag_spec=
9559 whole_archive_flag_spec=
9561 else
9562 # PORTME fill in a description of your system's linker (not GNU ld)
9563 case $host_os in
9564 aix3*)
9565 allow_undefined_flag=unsupported
9566 always_export_symbols=yes
9567 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'
9568 # Note: this linker hardcodes the directories in LIBPATH if there
9569 # are no directories specified by -L.
9570 hardcode_minus_L=yes
9571 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9572 # Neither direct hardcoding nor static linking is supported with a
9573 # broken collect2.
9574 hardcode_direct=unsupported
9578 aix[4-9]*)
9579 if test "$host_cpu" = ia64; then
9580 # On IA64, the linker does run time linking by default, so we don't
9581 # have to do anything special.
9582 aix_use_runtimelinking=no
9583 exp_sym_flag='-Bexport'
9584 no_entry_flag=""
9585 else
9586 # If we're using GNU nm, then we don't want the "-C" option.
9587 # -C means demangle to AIX nm, but means don't demangle with GNU nm
9588 # Also, AIX nm treats weak defined symbols like other global
9589 # defined symbols, whereas GNU nm marks them as "W".
9590 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9591 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'
9592 else
9593 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'
9595 aix_use_runtimelinking=no
9597 # Test if we are trying to use run time linking or normal
9598 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9599 # need to do runtime linking.
9600 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9601 for ld_flag in $LDFLAGS; do
9602 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9603 aix_use_runtimelinking=yes
9604 break
9606 done
9608 esac
9610 exp_sym_flag='-bexport'
9611 no_entry_flag='-bnoentry'
9614 # When large executables or shared objects are built, AIX ld can
9615 # have problems creating the table of contents. If linking a library
9616 # or program results in "error TOC overflow" add -mminimal-toc to
9617 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9618 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9620 archive_cmds=''
9621 hardcode_direct=yes
9622 hardcode_direct_absolute=yes
9623 hardcode_libdir_separator=':'
9624 link_all_deplibs=yes
9625 file_list_spec='${wl}-f,'
9627 if test "$GCC" = yes; then
9628 case $host_os in aix4.[012]|aix4.[012].*)
9629 # We only want to do this on AIX 4.2 and lower, the check
9630 # below for broken collect2 doesn't work under 4.3+
9631 collect2name=`${CC} -print-prog-name=collect2`
9632 if test -f "$collect2name" &&
9633 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9634 then
9635 # We have reworked collect2
9637 else
9638 # We have old collect2
9639 hardcode_direct=unsupported
9640 # It fails to find uninstalled libraries when the uninstalled
9641 # path is not listed in the libpath. Setting hardcode_minus_L
9642 # to unsupported forces relinking
9643 hardcode_minus_L=yes
9644 hardcode_libdir_flag_spec='-L$libdir'
9645 hardcode_libdir_separator=
9648 esac
9649 shared_flag='-shared'
9650 if test "$aix_use_runtimelinking" = yes; then
9651 shared_flag="$shared_flag "'${wl}-G'
9653 else
9654 # not using gcc
9655 if test "$host_cpu" = ia64; then
9656 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9657 # chokes on -Wl,-G. The following line is correct:
9658 shared_flag='-G'
9659 else
9660 if test "$aix_use_runtimelinking" = yes; then
9661 shared_flag='${wl}-G'
9662 else
9663 shared_flag='${wl}-bM:SRE'
9668 export_dynamic_flag_spec='${wl}-bexpall'
9669 # It seems that -bexpall does not export symbols beginning with
9670 # underscore (_), so it is better to generate a list of symbols to export.
9671 always_export_symbols=yes
9672 if test "$aix_use_runtimelinking" = yes; then
9673 # Warning - without using the other runtime loading flags (-brtl),
9674 # -berok will link without error, but may produce a broken library.
9675 allow_undefined_flag='-berok'
9676 # Determine the default libpath from the value encoded in an
9677 # empty executable.
9678 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9679 /* end confdefs.h. */
9682 main ()
9686 return 0;
9688 _ACEOF
9689 if ac_fn_c_try_link "$LINENO"; then :
9691 lt_aix_libpath_sed='
9692 /Import File Strings/,/^$/ {
9693 /^0/ {
9694 s/^0 *\(.*\)$/\1/
9698 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9699 # Check for a 64-bit object if we didn't find anything.
9700 if test -z "$aix_libpath"; then
9701 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9704 rm -f core conftest.err conftest.$ac_objext \
9705 conftest$ac_exeext conftest.$ac_ext
9706 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9708 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9709 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"
9710 else
9711 if test "$host_cpu" = ia64; then
9712 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9713 allow_undefined_flag="-z nodefs"
9714 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"
9715 else
9716 # Determine the default libpath from the value encoded in an
9717 # empty executable.
9718 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9719 /* end confdefs.h. */
9722 main ()
9726 return 0;
9728 _ACEOF
9729 if ac_fn_c_try_link "$LINENO"; then :
9731 lt_aix_libpath_sed='
9732 /Import File Strings/,/^$/ {
9733 /^0/ {
9734 s/^0 *\(.*\)$/\1/
9738 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9739 # Check for a 64-bit object if we didn't find anything.
9740 if test -z "$aix_libpath"; then
9741 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9744 rm -f core conftest.err conftest.$ac_objext \
9745 conftest$ac_exeext conftest.$ac_ext
9746 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9748 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9749 # Warning - without using the other run time loading flags,
9750 # -berok will link without error, but may produce a broken library.
9751 no_undefined_flag=' ${wl}-bernotok'
9752 allow_undefined_flag=' ${wl}-berok'
9753 if test "$with_gnu_ld" = yes; then
9754 # We only use this code for GNU lds that support --whole-archive.
9755 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
9756 else
9757 # Exported symbols can be pulled into shared objects from archives
9758 whole_archive_flag_spec='$convenience'
9760 archive_cmds_need_lc=yes
9761 # This is similar to how AIX traditionally builds its shared libraries.
9762 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'
9767 amigaos*)
9768 case $host_cpu in
9769 powerpc)
9770 # see comment about AmigaOS4 .so support
9771 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9772 archive_expsym_cmds=''
9774 m68k)
9775 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)'
9776 hardcode_libdir_flag_spec='-L$libdir'
9777 hardcode_minus_L=yes
9779 esac
9782 bsdi[45]*)
9783 export_dynamic_flag_spec=-rdynamic
9786 cygwin* | mingw* | pw32* | cegcc*)
9787 # When not using gcc, we currently assume that we are using
9788 # Microsoft Visual C++.
9789 # hardcode_libdir_flag_spec is actually meaningless, as there is
9790 # no search path for DLLs.
9791 hardcode_libdir_flag_spec=' '
9792 allow_undefined_flag=unsupported
9793 # Tell ltmain to make .lib files, not .a files.
9794 libext=lib
9795 # Tell ltmain to make .dll files, not .so files.
9796 shrext_cmds=".dll"
9797 # FIXME: Setting linknames here is a bad hack.
9798 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
9799 # The linker will automatically build a .lib file if we build a DLL.
9800 old_archive_from_new_cmds='true'
9801 # FIXME: Should let the user specify the lib program.
9802 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9803 fix_srcfile_path='`cygpath -w "$srcfile"`'
9804 enable_shared_with_static_runtimes=yes
9807 darwin* | rhapsody*)
9810 archive_cmds_need_lc=no
9811 hardcode_direct=no
9812 hardcode_automatic=yes
9813 hardcode_shlibpath_var=unsupported
9814 if test "$lt_cv_ld_force_load" = "yes"; then
9815 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\"`'
9816 else
9817 whole_archive_flag_spec=''
9819 link_all_deplibs=yes
9820 allow_undefined_flag="$_lt_dar_allow_undefined"
9821 case $cc_basename in
9822 ifort*) _lt_dar_can_shared=yes ;;
9823 *) _lt_dar_can_shared=$GCC ;;
9824 esac
9825 if test "$_lt_dar_can_shared" = "yes"; then
9826 output_verbose_link_cmd=func_echo_all
9827 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9828 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9829 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}"
9830 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}"
9832 else
9833 ld_shlibs=no
9838 dgux*)
9839 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9840 hardcode_libdir_flag_spec='-L$libdir'
9841 hardcode_shlibpath_var=no
9844 freebsd1*)
9845 ld_shlibs=no
9848 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9849 # support. Future versions do this automatically, but an explicit c++rt0.o
9850 # does not break anything, and helps significantly (at the cost of a little
9851 # extra space).
9852 freebsd2.2*)
9853 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9854 hardcode_libdir_flag_spec='-R$libdir'
9855 hardcode_direct=yes
9856 hardcode_shlibpath_var=no
9859 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9860 freebsd2*)
9861 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9862 hardcode_direct=yes
9863 hardcode_minus_L=yes
9864 hardcode_shlibpath_var=no
9867 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9868 freebsd* | dragonfly*)
9869 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
9870 hardcode_libdir_flag_spec='-R$libdir'
9871 hardcode_direct=yes
9872 hardcode_shlibpath_var=no
9875 hpux9*)
9876 if test "$GCC" = yes; then
9877 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'
9878 else
9879 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'
9881 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9882 hardcode_libdir_separator=:
9883 hardcode_direct=yes
9885 # hardcode_minus_L: Not really in the search PATH,
9886 # but as the default location of the library.
9887 hardcode_minus_L=yes
9888 export_dynamic_flag_spec='${wl}-E'
9891 hpux10*)
9892 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9893 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9894 else
9895 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9897 if test "$with_gnu_ld" = no; then
9898 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9899 hardcode_libdir_flag_spec_ld='+b $libdir'
9900 hardcode_libdir_separator=:
9901 hardcode_direct=yes
9902 hardcode_direct_absolute=yes
9903 export_dynamic_flag_spec='${wl}-E'
9904 # hardcode_minus_L: Not really in the search PATH,
9905 # but as the default location of the library.
9906 hardcode_minus_L=yes
9910 hpux11*)
9911 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9912 case $host_cpu in
9913 hppa*64*)
9914 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9916 ia64*)
9917 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9920 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9922 esac
9923 else
9924 case $host_cpu in
9925 hppa*64*)
9926 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9928 ia64*)
9929 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9933 # Older versions of the 11.00 compiler do not understand -b yet
9934 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
9935 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
9936 $as_echo_n "checking if $CC understands -b... " >&6; }
9937 if test "${lt_cv_prog_compiler__b+set}" = set; then :
9938 $as_echo_n "(cached) " >&6
9939 else
9940 lt_cv_prog_compiler__b=no
9941 save_LDFLAGS="$LDFLAGS"
9942 LDFLAGS="$LDFLAGS -b"
9943 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9944 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9945 # The linker can only warn and ignore the option if not recognized
9946 # So say no if there are warnings
9947 if test -s conftest.err; then
9948 # Append any errors to the config.log.
9949 cat conftest.err 1>&5
9950 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9951 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9952 if diff conftest.exp conftest.er2 >/dev/null; then
9953 lt_cv_prog_compiler__b=yes
9955 else
9956 lt_cv_prog_compiler__b=yes
9959 $RM -r conftest*
9960 LDFLAGS="$save_LDFLAGS"
9963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
9964 $as_echo "$lt_cv_prog_compiler__b" >&6; }
9966 if test x"$lt_cv_prog_compiler__b" = xyes; then
9967 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9968 else
9969 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9973 esac
9975 if test "$with_gnu_ld" = no; then
9976 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9977 hardcode_libdir_separator=:
9979 case $host_cpu in
9980 hppa*64*|ia64*)
9981 hardcode_direct=no
9982 hardcode_shlibpath_var=no
9985 hardcode_direct=yes
9986 hardcode_direct_absolute=yes
9987 export_dynamic_flag_spec='${wl}-E'
9989 # hardcode_minus_L: Not really in the search PATH,
9990 # but as the default location of the library.
9991 hardcode_minus_L=yes
9993 esac
9997 irix5* | irix6* | nonstopux*)
9998 if test "$GCC" = yes; then
9999 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'
10000 # Try to use the -exported_symbol ld option, if it does not
10001 # work, assume that -exports_file does not work either and
10002 # implicitly export all symbols.
10003 save_LDFLAGS="$LDFLAGS"
10004 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
10005 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10006 /* end confdefs.h. */
10007 int foo(void) {}
10008 _ACEOF
10009 if ac_fn_c_try_link "$LINENO"; then :
10010 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'
10013 rm -f core conftest.err conftest.$ac_objext \
10014 conftest$ac_exeext conftest.$ac_ext
10015 LDFLAGS="$save_LDFLAGS"
10016 else
10017 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'
10018 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'
10020 archive_cmds_need_lc='no'
10021 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10022 hardcode_libdir_separator=:
10023 inherit_rpath=yes
10024 link_all_deplibs=yes
10027 netbsd*)
10028 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10029 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
10030 else
10031 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
10033 hardcode_libdir_flag_spec='-R$libdir'
10034 hardcode_direct=yes
10035 hardcode_shlibpath_var=no
10038 newsos6)
10039 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10040 hardcode_direct=yes
10041 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10042 hardcode_libdir_separator=:
10043 hardcode_shlibpath_var=no
10046 *nto* | *qnx*)
10049 openbsd*)
10050 if test -f /usr/libexec/ld.so; then
10051 hardcode_direct=yes
10052 hardcode_shlibpath_var=no
10053 hardcode_direct_absolute=yes
10054 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10055 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10056 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
10057 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10058 export_dynamic_flag_spec='${wl}-E'
10059 else
10060 case $host_os in
10061 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
10062 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10063 hardcode_libdir_flag_spec='-R$libdir'
10066 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10067 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10069 esac
10071 else
10072 ld_shlibs=no
10076 os2*)
10077 hardcode_libdir_flag_spec='-L$libdir'
10078 hardcode_minus_L=yes
10079 allow_undefined_flag=unsupported
10080 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'
10081 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
10084 osf3*)
10085 if test "$GCC" = yes; then
10086 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10087 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'
10088 else
10089 allow_undefined_flag=' -expect_unresolved \*'
10090 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'
10092 archive_cmds_need_lc='no'
10093 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10094 hardcode_libdir_separator=:
10097 osf4* | osf5*) # as osf3* with the addition of -msym flag
10098 if test "$GCC" = yes; then
10099 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10100 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'
10101 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10102 else
10103 allow_undefined_flag=' -expect_unresolved \*'
10104 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'
10105 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~
10106 $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'
10108 # Both c and cxx compiler support -rpath directly
10109 hardcode_libdir_flag_spec='-rpath $libdir'
10111 archive_cmds_need_lc='no'
10112 hardcode_libdir_separator=:
10115 solaris*)
10116 no_undefined_flag=' -z defs'
10117 if test "$GCC" = yes; then
10118 wlarc='${wl}'
10119 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10120 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10121 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10122 else
10123 case `$CC -V 2>&1` in
10124 *"Compilers 5.0"*)
10125 wlarc=''
10126 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
10127 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10128 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10131 wlarc='${wl}'
10132 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10133 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10134 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10136 esac
10138 hardcode_libdir_flag_spec='-R$libdir'
10139 hardcode_shlibpath_var=no
10140 case $host_os in
10141 solaris2.[0-5] | solaris2.[0-5].*) ;;
10143 # The compiler driver will combine and reorder linker options,
10144 # but understands `-z linker_flag'. GCC discards it without `$wl',
10145 # but is careful enough not to reorder.
10146 # Supported since Solaris 2.6 (maybe 2.5.1?)
10147 if test "$GCC" = yes; then
10148 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10149 else
10150 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10153 esac
10154 link_all_deplibs=yes
10157 sunos4*)
10158 if test "x$host_vendor" = xsequent; then
10159 # Use $CC to link under sequent, because it throws in some extra .o
10160 # files that make .init and .fini sections work.
10161 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10162 else
10163 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10165 hardcode_libdir_flag_spec='-L$libdir'
10166 hardcode_direct=yes
10167 hardcode_minus_L=yes
10168 hardcode_shlibpath_var=no
10171 sysv4)
10172 case $host_vendor in
10173 sni)
10174 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10175 hardcode_direct=yes # is this really true???
10177 siemens)
10178 ## LD is ld it makes a PLAMLIB
10179 ## CC just makes a GrossModule.
10180 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10181 reload_cmds='$CC -r -o $output$reload_objs'
10182 hardcode_direct=no
10184 motorola)
10185 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10186 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10188 esac
10189 runpath_var='LD_RUN_PATH'
10190 hardcode_shlibpath_var=no
10193 sysv4.3*)
10194 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10195 hardcode_shlibpath_var=no
10196 export_dynamic_flag_spec='-Bexport'
10199 sysv4*MP*)
10200 if test -d /usr/nec; then
10201 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10202 hardcode_shlibpath_var=no
10203 runpath_var=LD_RUN_PATH
10204 hardcode_runpath_var=yes
10205 ld_shlibs=yes
10209 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10210 no_undefined_flag='${wl}-z,text'
10211 archive_cmds_need_lc=no
10212 hardcode_shlibpath_var=no
10213 runpath_var='LD_RUN_PATH'
10215 if test "$GCC" = yes; then
10216 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10217 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10218 else
10219 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10220 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10224 sysv5* | sco3.2v5* | sco5v6*)
10225 # Note: We can NOT use -z defs as we might desire, because we do not
10226 # link with -lc, and that would cause any symbols used from libc to
10227 # always be unresolved, which means just about no library would
10228 # ever link correctly. If we're not using GNU ld we use -z text
10229 # though, which does catch some bad symbols but isn't as heavy-handed
10230 # as -z defs.
10231 no_undefined_flag='${wl}-z,text'
10232 allow_undefined_flag='${wl}-z,nodefs'
10233 archive_cmds_need_lc=no
10234 hardcode_shlibpath_var=no
10235 hardcode_libdir_flag_spec='${wl}-R,$libdir'
10236 hardcode_libdir_separator=':'
10237 link_all_deplibs=yes
10238 export_dynamic_flag_spec='${wl}-Bexport'
10239 runpath_var='LD_RUN_PATH'
10241 if test "$GCC" = yes; then
10242 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10243 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10244 else
10245 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10246 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10250 uts4*)
10251 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10252 hardcode_libdir_flag_spec='-L$libdir'
10253 hardcode_shlibpath_var=no
10257 ld_shlibs=no
10259 esac
10261 if test x$host_vendor = xsni; then
10262 case $host in
10263 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10264 export_dynamic_flag_spec='${wl}-Blargedynsym'
10266 esac
10270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10271 $as_echo "$ld_shlibs" >&6; }
10272 test "$ld_shlibs" = no && can_build_shared=no
10274 with_gnu_ld=$with_gnu_ld
10291 # Do we need to explicitly link libc?
10293 case "x$archive_cmds_need_lc" in
10294 x|xyes)
10295 # Assume -lc should be added
10296 archive_cmds_need_lc=yes
10298 if test "$enable_shared" = yes && test "$GCC" = yes; then
10299 case $archive_cmds in
10300 *'~'*)
10301 # FIXME: we may have to deal with multi-command sequences.
10303 '$CC '*)
10304 # Test whether the compiler implicitly links with -lc since on some
10305 # systems, -lgcc has to come before -lc. If gcc already passes -lc
10306 # to ld, don't add -lc before -lgcc.
10307 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10308 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
10309 if test "${lt_cv_archive_cmds_need_lc+set}" = set; then :
10310 $as_echo_n "(cached) " >&6
10311 else
10312 $RM conftest*
10313 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10315 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10316 (eval $ac_compile) 2>&5
10317 ac_status=$?
10318 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10319 test $ac_status = 0; } 2>conftest.err; then
10320 soname=conftest
10321 lib=conftest
10322 libobjs=conftest.$ac_objext
10323 deplibs=
10324 wl=$lt_prog_compiler_wl
10325 pic_flag=$lt_prog_compiler_pic
10326 compiler_flags=-v
10327 linker_flags=-v
10328 verstring=
10329 output_objdir=.
10330 libname=conftest
10331 lt_save_allow_undefined_flag=$allow_undefined_flag
10332 allow_undefined_flag=
10333 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
10334 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
10335 ac_status=$?
10336 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10337 test $ac_status = 0; }
10338 then
10339 lt_cv_archive_cmds_need_lc=no
10340 else
10341 lt_cv_archive_cmds_need_lc=yes
10343 allow_undefined_flag=$lt_save_allow_undefined_flag
10344 else
10345 cat conftest.err 1>&5
10347 $RM conftest*
10350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
10351 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
10352 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
10354 esac
10357 esac
10515 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10516 $as_echo_n "checking dynamic linker characteristics... " >&6; }
10518 if test "$GCC" = yes; then
10519 case $host_os in
10520 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
10521 *) lt_awk_arg="/^libraries:/" ;;
10522 esac
10523 case $host_os in
10524 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
10525 *) lt_sed_strip_eq="s,=/,/,g" ;;
10526 esac
10527 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
10528 case $lt_search_path_spec in
10529 *\;*)
10530 # if the path contains ";" then we assume it to be the separator
10531 # otherwise default to the standard path separator (i.e. ":") - it is
10532 # assumed that no part of a normal pathname contains ";" but that should
10533 # okay in the real world where ";" in dirpaths is itself problematic.
10534 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
10537 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
10539 esac
10540 # Ok, now we have the path, separated by spaces, we can step through it
10541 # and add multilib dir if necessary.
10542 lt_tmp_lt_search_path_spec=
10543 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10544 for lt_sys_path in $lt_search_path_spec; do
10545 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
10546 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
10547 else
10548 test -d "$lt_sys_path" && \
10549 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10551 done
10552 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
10553 BEGIN {RS=" "; FS="/|\n";} {
10554 lt_foo="";
10555 lt_count=0;
10556 for (lt_i = NF; lt_i > 0; lt_i--) {
10557 if ($lt_i != "" && $lt_i != ".") {
10558 if ($lt_i == "..") {
10559 lt_count++;
10560 } else {
10561 if (lt_count == 0) {
10562 lt_foo="/" $lt_i lt_foo;
10563 } else {
10564 lt_count--;
10569 if (lt_foo != "") { lt_freq[lt_foo]++; }
10570 if (lt_freq[lt_foo] == 1) { print lt_foo; }
10572 # AWK program above erroneously prepends '/' to C:/dos/paths
10573 # for these hosts.
10574 case $host_os in
10575 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
10576 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
10577 esac
10578 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
10579 else
10580 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10582 library_names_spec=
10583 libname_spec='lib$name'
10584 soname_spec=
10585 shrext_cmds=".so"
10586 postinstall_cmds=
10587 postuninstall_cmds=
10588 finish_cmds=
10589 finish_eval=
10590 shlibpath_var=
10591 shlibpath_overrides_runpath=unknown
10592 version_type=none
10593 dynamic_linker="$host_os ld.so"
10594 sys_lib_dlsearch_path_spec="/lib /usr/lib"
10595 need_lib_prefix=unknown
10596 hardcode_into_libs=no
10598 # when you set need_version to no, make sure it does not cause -set_version
10599 # flags to be left without arguments
10600 need_version=unknown
10602 case $host_os in
10603 aix3*)
10604 version_type=linux
10605 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10606 shlibpath_var=LIBPATH
10608 # AIX 3 has no versioning support, so we append a major version to the name.
10609 soname_spec='${libname}${release}${shared_ext}$major'
10612 aix[4-9]*)
10613 version_type=linux
10614 need_lib_prefix=no
10615 need_version=no
10616 hardcode_into_libs=yes
10617 if test "$host_cpu" = ia64; then
10618 # AIX 5 supports IA64
10619 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10620 shlibpath_var=LD_LIBRARY_PATH
10621 else
10622 # With GCC up to 2.95.x, collect2 would create an import file
10623 # for dependence libraries. The import file would start with
10624 # the line `#! .'. This would cause the generated library to
10625 # depend on `.', always an invalid library. This was fixed in
10626 # development snapshots of GCC prior to 3.0.
10627 case $host_os in
10628 aix4 | aix4.[01] | aix4.[01].*)
10629 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10630 echo ' yes '
10631 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
10633 else
10634 can_build_shared=no
10637 esac
10638 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10639 # soname into executable. Probably we can add versioning support to
10640 # collect2, so additional links can be useful in future.
10641 if test "$aix_use_runtimelinking" = yes; then
10642 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10643 # instead of lib<name>.a to let people know that these are not
10644 # typical AIX shared libraries.
10645 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10646 else
10647 # We preserve .a as extension for shared libraries through AIX4.2
10648 # and later when we are not doing run time linking.
10649 library_names_spec='${libname}${release}.a $libname.a'
10650 soname_spec='${libname}${release}${shared_ext}$major'
10652 shlibpath_var=LIBPATH
10656 amigaos*)
10657 case $host_cpu in
10658 powerpc)
10659 # Since July 2007 AmigaOS4 officially supports .so libraries.
10660 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10661 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10663 m68k)
10664 library_names_spec='$libname.ixlibrary $libname.a'
10665 # Create ${libname}_ixlibrary.a entries in /sys/libs.
10666 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'
10668 esac
10671 beos*)
10672 library_names_spec='${libname}${shared_ext}'
10673 dynamic_linker="$host_os ld.so"
10674 shlibpath_var=LIBRARY_PATH
10677 bsdi[45]*)
10678 version_type=linux
10679 need_version=no
10680 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10681 soname_spec='${libname}${release}${shared_ext}$major'
10682 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10683 shlibpath_var=LD_LIBRARY_PATH
10684 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10685 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10686 # the default ld.so.conf also contains /usr/contrib/lib and
10687 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10688 # libtool to hard-code these into programs
10691 cygwin* | mingw* | pw32* | cegcc*)
10692 version_type=windows
10693 shrext_cmds=".dll"
10694 need_version=no
10695 need_lib_prefix=no
10697 case $GCC,$host_os in
10698 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
10699 library_names_spec='$libname.dll.a'
10700 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10701 postinstall_cmds='base_file=`basename \${file}`~
10702 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10703 dldir=$destdir/`dirname \$dlpath`~
10704 test -d \$dldir || mkdir -p \$dldir~
10705 $install_prog $dir/$dlname \$dldir/$dlname~
10706 chmod a+x \$dldir/$dlname~
10707 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10708 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10710 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10711 dlpath=$dir/\$dldll~
10712 $RM \$dlpath'
10713 shlibpath_overrides_runpath=yes
10715 case $host_os in
10716 cygwin*)
10717 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10718 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10720 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
10722 mingw* | cegcc*)
10723 # MinGW DLLs use traditional 'lib' prefix
10724 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10726 pw32*)
10727 # pw32 DLLs use 'pw' prefix rather than 'lib'
10728 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10730 esac
10734 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10736 esac
10737 dynamic_linker='Win32 ld.exe'
10738 # FIXME: first we should search . and the directory the executable is in
10739 shlibpath_var=PATH
10742 darwin* | rhapsody*)
10743 dynamic_linker="$host_os dyld"
10744 version_type=darwin
10745 need_lib_prefix=no
10746 need_version=no
10747 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10748 soname_spec='${libname}${release}${major}$shared_ext'
10749 shlibpath_overrides_runpath=yes
10750 shlibpath_var=DYLD_LIBRARY_PATH
10751 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10753 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10754 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10757 dgux*)
10758 version_type=linux
10759 need_lib_prefix=no
10760 need_version=no
10761 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10762 soname_spec='${libname}${release}${shared_ext}$major'
10763 shlibpath_var=LD_LIBRARY_PATH
10766 freebsd1*)
10767 dynamic_linker=no
10770 freebsd* | dragonfly*)
10771 # DragonFly does not have aout. When/if they implement a new
10772 # versioning mechanism, adjust this.
10773 if test -x /usr/bin/objformat; then
10774 objformat=`/usr/bin/objformat`
10775 else
10776 case $host_os in
10777 freebsd[123]*) objformat=aout ;;
10778 *) objformat=elf ;;
10779 esac
10781 version_type=freebsd-$objformat
10782 case $version_type in
10783 freebsd-elf*)
10784 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10785 need_version=no
10786 need_lib_prefix=no
10788 freebsd-*)
10789 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10790 need_version=yes
10792 esac
10793 shlibpath_var=LD_LIBRARY_PATH
10794 case $host_os in
10795 freebsd2*)
10796 shlibpath_overrides_runpath=yes
10798 freebsd3.[01]* | freebsdelf3.[01]*)
10799 shlibpath_overrides_runpath=yes
10800 hardcode_into_libs=yes
10802 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10803 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10804 shlibpath_overrides_runpath=no
10805 hardcode_into_libs=yes
10807 *) # from 4.6 on, and DragonFly
10808 shlibpath_overrides_runpath=yes
10809 hardcode_into_libs=yes
10811 esac
10814 gnu*)
10815 version_type=linux
10816 need_lib_prefix=no
10817 need_version=no
10818 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10819 soname_spec='${libname}${release}${shared_ext}$major'
10820 shlibpath_var=LD_LIBRARY_PATH
10821 hardcode_into_libs=yes
10824 haiku*)
10825 version_type=linux
10826 need_lib_prefix=no
10827 need_version=no
10828 dynamic_linker="$host_os runtime_loader"
10829 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10830 soname_spec='${libname}${release}${shared_ext}$major'
10831 shlibpath_var=LIBRARY_PATH
10832 shlibpath_overrides_runpath=yes
10833 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
10834 hardcode_into_libs=yes
10837 hpux9* | hpux10* | hpux11*)
10838 # Give a soname corresponding to the major version so that dld.sl refuses to
10839 # link against other versions.
10840 version_type=sunos
10841 need_lib_prefix=no
10842 need_version=no
10843 case $host_cpu in
10844 ia64*)
10845 shrext_cmds='.so'
10846 hardcode_into_libs=yes
10847 dynamic_linker="$host_os dld.so"
10848 shlibpath_var=LD_LIBRARY_PATH
10849 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10850 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10851 soname_spec='${libname}${release}${shared_ext}$major'
10852 if test "X$HPUX_IA64_MODE" = X32; then
10853 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10854 else
10855 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10857 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10859 hppa*64*)
10860 shrext_cmds='.sl'
10861 hardcode_into_libs=yes
10862 dynamic_linker="$host_os dld.sl"
10863 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10864 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10865 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10866 soname_spec='${libname}${release}${shared_ext}$major'
10867 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10868 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10871 shrext_cmds='.sl'
10872 dynamic_linker="$host_os dld.sl"
10873 shlibpath_var=SHLIB_PATH
10874 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10875 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10876 soname_spec='${libname}${release}${shared_ext}$major'
10878 esac
10879 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
10880 postinstall_cmds='chmod 555 $lib'
10881 # or fails outright, so override atomically:
10882 install_override_mode=555
10885 interix[3-9]*)
10886 version_type=linux
10887 need_lib_prefix=no
10888 need_version=no
10889 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10890 soname_spec='${libname}${release}${shared_ext}$major'
10891 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10892 shlibpath_var=LD_LIBRARY_PATH
10893 shlibpath_overrides_runpath=no
10894 hardcode_into_libs=yes
10897 irix5* | irix6* | nonstopux*)
10898 case $host_os in
10899 nonstopux*) version_type=nonstopux ;;
10901 if test "$lt_cv_prog_gnu_ld" = yes; then
10902 version_type=linux
10903 else
10904 version_type=irix
10905 fi ;;
10906 esac
10907 need_lib_prefix=no
10908 need_version=no
10909 soname_spec='${libname}${release}${shared_ext}$major'
10910 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10911 case $host_os in
10912 irix5* | nonstopux*)
10913 libsuff= shlibsuff=
10916 case $LD in # libtool.m4 will add one of these switches to LD
10917 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10918 libsuff= shlibsuff= libmagic=32-bit;;
10919 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10920 libsuff=32 shlibsuff=N32 libmagic=N32;;
10921 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10922 libsuff=64 shlibsuff=64 libmagic=64-bit;;
10923 *) libsuff= shlibsuff= libmagic=never-match;;
10924 esac
10926 esac
10927 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10928 shlibpath_overrides_runpath=no
10929 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10930 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10931 hardcode_into_libs=yes
10934 # No shared lib support for Linux oldld, aout, or coff.
10935 linux*oldld* | linux*aout* | linux*coff*)
10936 dynamic_linker=no
10939 # This must be Linux ELF.
10940 linux* | k*bsd*-gnu | kopensolaris*-gnu)
10941 version_type=linux
10942 need_lib_prefix=no
10943 need_version=no
10944 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10945 soname_spec='${libname}${release}${shared_ext}$major'
10946 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10947 shlibpath_var=LD_LIBRARY_PATH
10948 shlibpath_overrides_runpath=no
10950 # Some binutils ld are patched to set DT_RUNPATH
10951 if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
10952 $as_echo_n "(cached) " >&6
10953 else
10954 lt_cv_shlibpath_overrides_runpath=no
10955 save_LDFLAGS=$LDFLAGS
10956 save_libdir=$libdir
10957 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10958 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10959 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10960 /* end confdefs.h. */
10963 main ()
10967 return 0;
10969 _ACEOF
10970 if ac_fn_c_try_link "$LINENO"; then :
10971 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
10972 lt_cv_shlibpath_overrides_runpath=yes
10975 rm -f core conftest.err conftest.$ac_objext \
10976 conftest$ac_exeext conftest.$ac_ext
10977 LDFLAGS=$save_LDFLAGS
10978 libdir=$save_libdir
10982 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
10984 # This implies no fast_install, which is unacceptable.
10985 # Some rework will be needed to allow for fast_install
10986 # before this can be enabled.
10987 hardcode_into_libs=yes
10989 # Append ld.so.conf contents to the search path
10990 if test -f /etc/ld.so.conf; then
10991 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' ' '`
10992 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10995 # We used to test for /lib/ld.so.1 and disable shared libraries on
10996 # powerpc, because MkLinux only supported shared libraries with the
10997 # GNU dynamic linker. Since this was broken with cross compilers,
10998 # most powerpc-linux boxes support dynamic linking these days and
10999 # people can always --disable-shared, the test was removed, and we
11000 # assume the GNU/Linux dynamic linker is in use.
11001 dynamic_linker='GNU/Linux ld.so'
11004 netbsd*)
11005 version_type=sunos
11006 need_lib_prefix=no
11007 need_version=no
11008 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11009 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11010 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11011 dynamic_linker='NetBSD (a.out) ld.so'
11012 else
11013 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11014 soname_spec='${libname}${release}${shared_ext}$major'
11015 dynamic_linker='NetBSD ld.elf_so'
11017 shlibpath_var=LD_LIBRARY_PATH
11018 shlibpath_overrides_runpath=yes
11019 hardcode_into_libs=yes
11022 newsos6)
11023 version_type=linux
11024 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11025 shlibpath_var=LD_LIBRARY_PATH
11026 shlibpath_overrides_runpath=yes
11029 *nto* | *qnx*)
11030 version_type=qnx
11031 need_lib_prefix=no
11032 need_version=no
11033 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11034 soname_spec='${libname}${release}${shared_ext}$major'
11035 shlibpath_var=LD_LIBRARY_PATH
11036 shlibpath_overrides_runpath=no
11037 hardcode_into_libs=yes
11038 dynamic_linker='ldqnx.so'
11041 openbsd*)
11042 version_type=sunos
11043 sys_lib_dlsearch_path_spec="/usr/lib"
11044 need_lib_prefix=no
11045 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
11046 case $host_os in
11047 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
11048 *) need_version=no ;;
11049 esac
11050 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11051 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11052 shlibpath_var=LD_LIBRARY_PATH
11053 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11054 case $host_os in
11055 openbsd2.[89] | openbsd2.[89].*)
11056 shlibpath_overrides_runpath=no
11059 shlibpath_overrides_runpath=yes
11061 esac
11062 else
11063 shlibpath_overrides_runpath=yes
11067 os2*)
11068 libname_spec='$name'
11069 shrext_cmds=".dll"
11070 need_lib_prefix=no
11071 library_names_spec='$libname${shared_ext} $libname.a'
11072 dynamic_linker='OS/2 ld.exe'
11073 shlibpath_var=LIBPATH
11076 osf3* | osf4* | osf5*)
11077 version_type=osf
11078 need_lib_prefix=no
11079 need_version=no
11080 soname_spec='${libname}${release}${shared_ext}$major'
11081 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11082 shlibpath_var=LD_LIBRARY_PATH
11083 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11084 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11087 rdos*)
11088 dynamic_linker=no
11091 solaris*)
11092 version_type=linux
11093 need_lib_prefix=no
11094 need_version=no
11095 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11096 soname_spec='${libname}${release}${shared_ext}$major'
11097 shlibpath_var=LD_LIBRARY_PATH
11098 shlibpath_overrides_runpath=yes
11099 hardcode_into_libs=yes
11100 # ldd complains unless libraries are executable
11101 postinstall_cmds='chmod +x $lib'
11104 sunos4*)
11105 version_type=sunos
11106 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11107 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11108 shlibpath_var=LD_LIBRARY_PATH
11109 shlibpath_overrides_runpath=yes
11110 if test "$with_gnu_ld" = yes; then
11111 need_lib_prefix=no
11113 need_version=yes
11116 sysv4 | sysv4.3*)
11117 version_type=linux
11118 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11119 soname_spec='${libname}${release}${shared_ext}$major'
11120 shlibpath_var=LD_LIBRARY_PATH
11121 case $host_vendor in
11122 sni)
11123 shlibpath_overrides_runpath=no
11124 need_lib_prefix=no
11125 runpath_var=LD_RUN_PATH
11127 siemens)
11128 need_lib_prefix=no
11130 motorola)
11131 need_lib_prefix=no
11132 need_version=no
11133 shlibpath_overrides_runpath=no
11134 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11136 esac
11139 sysv4*MP*)
11140 if test -d /usr/nec ;then
11141 version_type=linux
11142 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11143 soname_spec='$libname${shared_ext}.$major'
11144 shlibpath_var=LD_LIBRARY_PATH
11148 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11149 version_type=freebsd-elf
11150 need_lib_prefix=no
11151 need_version=no
11152 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11153 soname_spec='${libname}${release}${shared_ext}$major'
11154 shlibpath_var=LD_LIBRARY_PATH
11155 shlibpath_overrides_runpath=yes
11156 hardcode_into_libs=yes
11157 if test "$with_gnu_ld" = yes; then
11158 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11159 else
11160 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11161 case $host_os in
11162 sco3.2v5*)
11163 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11165 esac
11167 sys_lib_dlsearch_path_spec='/usr/lib'
11170 tpf*)
11171 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
11172 version_type=linux
11173 need_lib_prefix=no
11174 need_version=no
11175 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11176 shlibpath_var=LD_LIBRARY_PATH
11177 shlibpath_overrides_runpath=no
11178 hardcode_into_libs=yes
11181 uts4*)
11182 version_type=linux
11183 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11184 soname_spec='${libname}${release}${shared_ext}$major'
11185 shlibpath_var=LD_LIBRARY_PATH
11189 dynamic_linker=no
11191 esac
11192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
11193 $as_echo "$dynamic_linker" >&6; }
11194 test "$dynamic_linker" = no && can_build_shared=no
11196 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11197 if test "$GCC" = yes; then
11198 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11201 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
11202 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
11204 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
11205 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
11299 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
11300 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
11301 hardcode_action=
11302 if test -n "$hardcode_libdir_flag_spec" ||
11303 test -n "$runpath_var" ||
11304 test "X$hardcode_automatic" = "Xyes" ; then
11306 # We can hardcode non-existent directories.
11307 if test "$hardcode_direct" != no &&
11308 # If the only mechanism to avoid hardcoding is shlibpath_var, we
11309 # have to relink, otherwise we might link with an installed library
11310 # when we should be linking with a yet-to-be-installed one
11311 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
11312 test "$hardcode_minus_L" != no; then
11313 # Linking always hardcodes the temporary library directory.
11314 hardcode_action=relink
11315 else
11316 # We can link without hardcoding, and we can hardcode nonexisting dirs.
11317 hardcode_action=immediate
11319 else
11320 # We cannot hardcode anything, or else we can only hardcode existing
11321 # directories.
11322 hardcode_action=unsupported
11324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
11325 $as_echo "$hardcode_action" >&6; }
11327 if test "$hardcode_action" = relink ||
11328 test "$inherit_rpath" = yes; then
11329 # Fast installation is not supported
11330 enable_fast_install=no
11331 elif test "$shlibpath_overrides_runpath" = yes ||
11332 test "$enable_shared" = no; then
11333 # Fast installation is not necessary
11334 enable_fast_install=needless
11342 if test "x$enable_dlopen" != xyes; then
11343 enable_dlopen=unknown
11344 enable_dlopen_self=unknown
11345 enable_dlopen_self_static=unknown
11346 else
11347 lt_cv_dlopen=no
11348 lt_cv_dlopen_libs=
11350 case $host_os in
11351 beos*)
11352 lt_cv_dlopen="load_add_on"
11353 lt_cv_dlopen_libs=
11354 lt_cv_dlopen_self=yes
11357 mingw* | pw32* | cegcc*)
11358 lt_cv_dlopen="LoadLibrary"
11359 lt_cv_dlopen_libs=
11362 cygwin*)
11363 lt_cv_dlopen="dlopen"
11364 lt_cv_dlopen_libs=
11367 darwin*)
11368 # if libdl is installed we need to link against it
11369 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11370 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11371 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
11372 $as_echo_n "(cached) " >&6
11373 else
11374 ac_check_lib_save_LIBS=$LIBS
11375 LIBS="-ldl $LIBS"
11376 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11377 /* end confdefs.h. */
11379 /* Override any GCC internal prototype to avoid an error.
11380 Use char because int might match the return type of a GCC
11381 builtin and then its argument prototype would still apply. */
11382 #ifdef __cplusplus
11383 extern "C"
11384 #endif
11385 char dlopen ();
11387 main ()
11389 return dlopen ();
11391 return 0;
11393 _ACEOF
11394 if ac_fn_c_try_link "$LINENO"; then :
11395 ac_cv_lib_dl_dlopen=yes
11396 else
11397 ac_cv_lib_dl_dlopen=no
11399 rm -f core conftest.err conftest.$ac_objext \
11400 conftest$ac_exeext conftest.$ac_ext
11401 LIBS=$ac_check_lib_save_LIBS
11403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11404 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11405 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
11406 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11407 else
11409 lt_cv_dlopen="dyld"
11410 lt_cv_dlopen_libs=
11411 lt_cv_dlopen_self=yes
11418 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
11419 if test "x$ac_cv_func_shl_load" = x""yes; then :
11420 lt_cv_dlopen="shl_load"
11421 else
11422 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
11423 $as_echo_n "checking for shl_load in -ldld... " >&6; }
11424 if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
11425 $as_echo_n "(cached) " >&6
11426 else
11427 ac_check_lib_save_LIBS=$LIBS
11428 LIBS="-ldld $LIBS"
11429 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11430 /* end confdefs.h. */
11432 /* Override any GCC internal prototype to avoid an error.
11433 Use char because int might match the return type of a GCC
11434 builtin and then its argument prototype would still apply. */
11435 #ifdef __cplusplus
11436 extern "C"
11437 #endif
11438 char shl_load ();
11440 main ()
11442 return shl_load ();
11444 return 0;
11446 _ACEOF
11447 if ac_fn_c_try_link "$LINENO"; then :
11448 ac_cv_lib_dld_shl_load=yes
11449 else
11450 ac_cv_lib_dld_shl_load=no
11452 rm -f core conftest.err conftest.$ac_objext \
11453 conftest$ac_exeext conftest.$ac_ext
11454 LIBS=$ac_check_lib_save_LIBS
11456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
11457 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
11458 if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
11459 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
11460 else
11461 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
11462 if test "x$ac_cv_func_dlopen" = x""yes; then :
11463 lt_cv_dlopen="dlopen"
11464 else
11465 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11466 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11467 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
11468 $as_echo_n "(cached) " >&6
11469 else
11470 ac_check_lib_save_LIBS=$LIBS
11471 LIBS="-ldl $LIBS"
11472 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11473 /* end confdefs.h. */
11475 /* Override any GCC internal prototype to avoid an error.
11476 Use char because int might match the return type of a GCC
11477 builtin and then its argument prototype would still apply. */
11478 #ifdef __cplusplus
11479 extern "C"
11480 #endif
11481 char dlopen ();
11483 main ()
11485 return dlopen ();
11487 return 0;
11489 _ACEOF
11490 if ac_fn_c_try_link "$LINENO"; then :
11491 ac_cv_lib_dl_dlopen=yes
11492 else
11493 ac_cv_lib_dl_dlopen=no
11495 rm -f core conftest.err conftest.$ac_objext \
11496 conftest$ac_exeext conftest.$ac_ext
11497 LIBS=$ac_check_lib_save_LIBS
11499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11500 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11501 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
11502 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11503 else
11504 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11505 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
11506 if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
11507 $as_echo_n "(cached) " >&6
11508 else
11509 ac_check_lib_save_LIBS=$LIBS
11510 LIBS="-lsvld $LIBS"
11511 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11512 /* end confdefs.h. */
11514 /* Override any GCC internal prototype to avoid an error.
11515 Use char because int might match the return type of a GCC
11516 builtin and then its argument prototype would still apply. */
11517 #ifdef __cplusplus
11518 extern "C"
11519 #endif
11520 char dlopen ();
11522 main ()
11524 return dlopen ();
11526 return 0;
11528 _ACEOF
11529 if ac_fn_c_try_link "$LINENO"; then :
11530 ac_cv_lib_svld_dlopen=yes
11531 else
11532 ac_cv_lib_svld_dlopen=no
11534 rm -f core conftest.err conftest.$ac_objext \
11535 conftest$ac_exeext conftest.$ac_ext
11536 LIBS=$ac_check_lib_save_LIBS
11538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11539 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11540 if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
11541 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11542 else
11543 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11544 $as_echo_n "checking for dld_link in -ldld... " >&6; }
11545 if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
11546 $as_echo_n "(cached) " >&6
11547 else
11548 ac_check_lib_save_LIBS=$LIBS
11549 LIBS="-ldld $LIBS"
11550 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11551 /* end confdefs.h. */
11553 /* Override any GCC internal prototype to avoid an error.
11554 Use char because int might match the return type of a GCC
11555 builtin and then its argument prototype would still apply. */
11556 #ifdef __cplusplus
11557 extern "C"
11558 #endif
11559 char dld_link ();
11561 main ()
11563 return dld_link ();
11565 return 0;
11567 _ACEOF
11568 if ac_fn_c_try_link "$LINENO"; then :
11569 ac_cv_lib_dld_dld_link=yes
11570 else
11571 ac_cv_lib_dld_dld_link=no
11573 rm -f core conftest.err conftest.$ac_objext \
11574 conftest$ac_exeext conftest.$ac_ext
11575 LIBS=$ac_check_lib_save_LIBS
11577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11578 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11579 if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
11580 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
11599 esac
11601 if test "x$lt_cv_dlopen" != xno; then
11602 enable_dlopen=yes
11603 else
11604 enable_dlopen=no
11607 case $lt_cv_dlopen in
11608 dlopen)
11609 save_CPPFLAGS="$CPPFLAGS"
11610 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11612 save_LDFLAGS="$LDFLAGS"
11613 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11615 save_LIBS="$LIBS"
11616 LIBS="$lt_cv_dlopen_libs $LIBS"
11618 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
11619 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
11620 if test "${lt_cv_dlopen_self+set}" = set; then :
11621 $as_echo_n "(cached) " >&6
11622 else
11623 if test "$cross_compiling" = yes; then :
11624 lt_cv_dlopen_self=cross
11625 else
11626 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11627 lt_status=$lt_dlunknown
11628 cat > conftest.$ac_ext <<_LT_EOF
11629 #line 11629 "configure"
11630 #include "confdefs.h"
11632 #if HAVE_DLFCN_H
11633 #include <dlfcn.h>
11634 #endif
11636 #include <stdio.h>
11638 #ifdef RTLD_GLOBAL
11639 # define LT_DLGLOBAL RTLD_GLOBAL
11640 #else
11641 # ifdef DL_GLOBAL
11642 # define LT_DLGLOBAL DL_GLOBAL
11643 # else
11644 # define LT_DLGLOBAL 0
11645 # endif
11646 #endif
11648 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11649 find out it does not work in some platform. */
11650 #ifndef LT_DLLAZY_OR_NOW
11651 # ifdef RTLD_LAZY
11652 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11653 # else
11654 # ifdef DL_LAZY
11655 # define LT_DLLAZY_OR_NOW DL_LAZY
11656 # else
11657 # ifdef RTLD_NOW
11658 # define LT_DLLAZY_OR_NOW RTLD_NOW
11659 # else
11660 # ifdef DL_NOW
11661 # define LT_DLLAZY_OR_NOW DL_NOW
11662 # else
11663 # define LT_DLLAZY_OR_NOW 0
11664 # endif
11665 # endif
11666 # endif
11667 # endif
11668 #endif
11670 /* When -fvisbility=hidden is used, assume the code has been annotated
11671 correspondingly for the symbols needed. */
11672 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11673 void fnord () __attribute__((visibility("default")));
11674 #endif
11676 void fnord () { int i=42; }
11677 int main ()
11679 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11680 int status = $lt_dlunknown;
11682 if (self)
11684 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11685 else
11687 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11688 else puts (dlerror ());
11690 /* dlclose (self); */
11692 else
11693 puts (dlerror ());
11695 return status;
11697 _LT_EOF
11698 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11699 (eval $ac_link) 2>&5
11700 ac_status=$?
11701 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11702 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11703 (./conftest; exit; ) >&5 2>/dev/null
11704 lt_status=$?
11705 case x$lt_status in
11706 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11707 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11708 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11709 esac
11710 else :
11711 # compilation failed
11712 lt_cv_dlopen_self=no
11715 rm -fr conftest*
11719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11720 $as_echo "$lt_cv_dlopen_self" >&6; }
11722 if test "x$lt_cv_dlopen_self" = xyes; then
11723 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11724 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11725 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11726 if test "${lt_cv_dlopen_self_static+set}" = set; then :
11727 $as_echo_n "(cached) " >&6
11728 else
11729 if test "$cross_compiling" = yes; then :
11730 lt_cv_dlopen_self_static=cross
11731 else
11732 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11733 lt_status=$lt_dlunknown
11734 cat > conftest.$ac_ext <<_LT_EOF
11735 #line 11735 "configure"
11736 #include "confdefs.h"
11738 #if HAVE_DLFCN_H
11739 #include <dlfcn.h>
11740 #endif
11742 #include <stdio.h>
11744 #ifdef RTLD_GLOBAL
11745 # define LT_DLGLOBAL RTLD_GLOBAL
11746 #else
11747 # ifdef DL_GLOBAL
11748 # define LT_DLGLOBAL DL_GLOBAL
11749 # else
11750 # define LT_DLGLOBAL 0
11751 # endif
11752 #endif
11754 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11755 find out it does not work in some platform. */
11756 #ifndef LT_DLLAZY_OR_NOW
11757 # ifdef RTLD_LAZY
11758 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11759 # else
11760 # ifdef DL_LAZY
11761 # define LT_DLLAZY_OR_NOW DL_LAZY
11762 # else
11763 # ifdef RTLD_NOW
11764 # define LT_DLLAZY_OR_NOW RTLD_NOW
11765 # else
11766 # ifdef DL_NOW
11767 # define LT_DLLAZY_OR_NOW DL_NOW
11768 # else
11769 # define LT_DLLAZY_OR_NOW 0
11770 # endif
11771 # endif
11772 # endif
11773 # endif
11774 #endif
11776 /* When -fvisbility=hidden is used, assume the code has been annotated
11777 correspondingly for the symbols needed. */
11778 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11779 void fnord () __attribute__((visibility("default")));
11780 #endif
11782 void fnord () { int i=42; }
11783 int main ()
11785 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11786 int status = $lt_dlunknown;
11788 if (self)
11790 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11791 else
11793 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11794 else puts (dlerror ());
11796 /* dlclose (self); */
11798 else
11799 puts (dlerror ());
11801 return status;
11803 _LT_EOF
11804 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11805 (eval $ac_link) 2>&5
11806 ac_status=$?
11807 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11808 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11809 (./conftest; exit; ) >&5 2>/dev/null
11810 lt_status=$?
11811 case x$lt_status in
11812 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11813 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11814 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11815 esac
11816 else :
11817 # compilation failed
11818 lt_cv_dlopen_self_static=no
11821 rm -fr conftest*
11825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11826 $as_echo "$lt_cv_dlopen_self_static" >&6; }
11829 CPPFLAGS="$save_CPPFLAGS"
11830 LDFLAGS="$save_LDFLAGS"
11831 LIBS="$save_LIBS"
11833 esac
11835 case $lt_cv_dlopen_self in
11836 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11837 *) enable_dlopen_self=unknown ;;
11838 esac
11840 case $lt_cv_dlopen_self_static in
11841 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11842 *) enable_dlopen_self_static=unknown ;;
11843 esac
11862 striplib=
11863 old_striplib=
11864 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11865 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
11866 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11867 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11868 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11870 $as_echo "yes" >&6; }
11871 else
11872 # FIXME - insert some real tests, host_os isn't really good enough
11873 case $host_os in
11874 darwin*)
11875 if test -n "$STRIP" ; then
11876 striplib="$STRIP -x"
11877 old_striplib="$STRIP -S"
11878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11879 $as_echo "yes" >&6; }
11880 else
11881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11882 $as_echo "no" >&6; }
11886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11887 $as_echo "no" >&6; }
11889 esac
11903 # Report which library types will actually be built
11904 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
11905 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
11906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
11907 $as_echo "$can_build_shared" >&6; }
11909 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
11910 $as_echo_n "checking whether to build shared libraries... " >&6; }
11911 test "$can_build_shared" = "no" && enable_shared=no
11913 # On AIX, shared libraries and static libraries use the same namespace, and
11914 # are all built from PIC.
11915 case $host_os in
11916 aix3*)
11917 test "$enable_shared" = yes && enable_static=no
11918 if test -n "$RANLIB"; then
11919 archive_cmds="$archive_cmds~\$RANLIB \$lib"
11920 postinstall_cmds='$RANLIB $lib'
11924 aix[4-9]*)
11925 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11926 test "$enable_shared" = yes && enable_static=no
11929 esac
11930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
11931 $as_echo "$enable_shared" >&6; }
11933 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
11934 $as_echo_n "checking whether to build static libraries... " >&6; }
11935 # Make sure either enable_shared or enable_static is yes.
11936 test "$enable_shared" = yes || enable_static=yes
11937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
11938 $as_echo "$enable_static" >&6; }
11944 ac_ext=c
11945 ac_cpp='$CPP $CPPFLAGS'
11946 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11947 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11948 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11950 CC="$lt_save_CC"
11964 ac_config_commands="$ac_config_commands libtool"
11969 # Only expand once:
11973 ALL_LINGUAS="fr sv tr es da vi zh_CN zh_TW ga fi id bg"
11974 # If we haven't got the data from the intl directory,
11975 # assume NLS is disabled.
11976 USE_NLS=no
11977 LIBINTL=
11978 LIBINTL_DEP=
11979 INCINTL=
11980 XGETTEXT=
11981 GMSGFMT=
11982 POSUB=
11984 if test -f ../intl/config.intl; then
11985 . ../intl/config.intl
11987 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
11988 $as_echo_n "checking whether NLS is requested... " >&6; }
11989 if test x"$USE_NLS" != xyes; then
11990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11991 $as_echo "no" >&6; }
11992 else
11993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11994 $as_echo "yes" >&6; }
11996 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
11999 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catalogs to be installed" >&5
12000 $as_echo_n "checking for catalogs to be installed... " >&6; }
12001 # Look for .po and .gmo files in the source directory.
12002 CATALOGS=
12003 XLINGUAS=
12004 for cat in $srcdir/po/*.gmo $srcdir/po/*.po; do
12005 # If there aren't any .gmo files the shell will give us the
12006 # literal string "../path/to/srcdir/po/*.gmo" which has to be
12007 # weeded out.
12008 case "$cat" in *\**)
12009 continue;;
12010 esac
12011 # The quadruple backslash is collapsed to a double backslash
12012 # by the backticks, then collapsed again by the double quotes,
12013 # leaving us with one backslash in the sed expression (right
12014 # before the dot that mustn't act as a wildcard).
12015 cat=`echo $cat | sed -e "s!$srcdir/po/!!" -e "s!\\\\.po!.gmo!"`
12016 lang=`echo $cat | sed -e "s!\\\\.gmo!!"`
12017 # The user is allowed to set LINGUAS to a list of languages to
12018 # install catalogs for. If it's empty that means "all of them."
12019 if test "x$LINGUAS" = x; then
12020 CATALOGS="$CATALOGS $cat"
12021 XLINGUAS="$XLINGUAS $lang"
12022 else
12023 case "$LINGUAS" in *$lang*)
12024 CATALOGS="$CATALOGS $cat"
12025 XLINGUAS="$XLINGUAS $lang"
12027 esac
12029 done
12030 LINGUAS="$XLINGUAS"
12031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINGUAS" >&5
12032 $as_echo "$LINGUAS" >&6; }
12035 DATADIRNAME=share
12037 INSTOBJEXT=.mo
12039 GENCAT=gencat
12041 CATOBJEXT=.gmo
12045 MKINSTALLDIRS=
12046 if test -n "$ac_aux_dir"; then
12047 case "$ac_aux_dir" in
12048 /*) MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" ;;
12049 *) MKINSTALLDIRS="\$(top_builddir)/$ac_aux_dir/mkinstalldirs" ;;
12050 esac
12052 if test -z "$MKINSTALLDIRS"; then
12053 MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
12058 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
12059 $as_echo_n "checking whether NLS is requested... " >&6; }
12060 # Check whether --enable-nls was given.
12061 if test "${enable_nls+set}" = set; then :
12062 enableval=$enable_nls; USE_NLS=$enableval
12063 else
12064 USE_NLS=yes
12067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
12068 $as_echo "$USE_NLS" >&6; }
12075 # Prepare PATH_SEPARATOR.
12076 # The user is always right.
12077 if test "${PATH_SEPARATOR+set}" != set; then
12078 echo "#! /bin/sh" >conf$$.sh
12079 echo "exit 0" >>conf$$.sh
12080 chmod +x conf$$.sh
12081 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
12082 PATH_SEPARATOR=';'
12083 else
12084 PATH_SEPARATOR=:
12086 rm -f conf$$.sh
12089 # Find out how to test for executable files. Don't use a zero-byte file,
12090 # as systems may use methods other than mode bits to determine executability.
12091 cat >conf$$.file <<_ASEOF
12092 #! /bin/sh
12093 exit 0
12094 _ASEOF
12095 chmod +x conf$$.file
12096 if test -x conf$$.file >/dev/null 2>&1; then
12097 ac_executable_p="test -x"
12098 else
12099 ac_executable_p="test -f"
12101 rm -f conf$$.file
12103 # Extract the first word of "msgfmt", so it can be a program name with args.
12104 set dummy msgfmt; ac_word=$2
12105 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12106 $as_echo_n "checking for $ac_word... " >&6; }
12107 if test "${ac_cv_path_MSGFMT+set}" = set; then :
12108 $as_echo_n "(cached) " >&6
12109 else
12110 case "$MSGFMT" in
12111 [\\/]* | ?:[\\/]*)
12112 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
12115 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
12116 for ac_dir in $PATH; do
12117 IFS="$ac_save_IFS"
12118 test -z "$ac_dir" && ac_dir=.
12119 for ac_exec_ext in '' $ac_executable_extensions; do
12120 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
12121 if $ac_dir/$ac_word --statistics /dev/null >/dev/null 2>&1 &&
12122 (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
12123 ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
12124 break 2
12127 done
12128 done
12129 IFS="$ac_save_IFS"
12130 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
12132 esac
12134 MSGFMT="$ac_cv_path_MSGFMT"
12135 if test "$MSGFMT" != ":"; then
12136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
12137 $as_echo "$MSGFMT" >&6; }
12138 else
12139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12140 $as_echo "no" >&6; }
12143 # Extract the first word of "gmsgfmt", so it can be a program name with args.
12144 set dummy gmsgfmt; ac_word=$2
12145 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12146 $as_echo_n "checking for $ac_word... " >&6; }
12147 if test "${ac_cv_path_GMSGFMT+set}" = set; then :
12148 $as_echo_n "(cached) " >&6
12149 else
12150 case $GMSGFMT in
12151 [\\/]* | ?:[\\/]*)
12152 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
12155 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12156 for as_dir in $PATH
12158 IFS=$as_save_IFS
12159 test -z "$as_dir" && as_dir=.
12160 for ac_exec_ext in '' $ac_executable_extensions; do
12161 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12162 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
12163 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12164 break 2
12166 done
12167 done
12168 IFS=$as_save_IFS
12170 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
12172 esac
12174 GMSGFMT=$ac_cv_path_GMSGFMT
12175 if test -n "$GMSGFMT"; then
12176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMSGFMT" >&5
12177 $as_echo "$GMSGFMT" >&6; }
12178 else
12179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12180 $as_echo "no" >&6; }
12186 # Prepare PATH_SEPARATOR.
12187 # The user is always right.
12188 if test "${PATH_SEPARATOR+set}" != set; then
12189 echo "#! /bin/sh" >conf$$.sh
12190 echo "exit 0" >>conf$$.sh
12191 chmod +x conf$$.sh
12192 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
12193 PATH_SEPARATOR=';'
12194 else
12195 PATH_SEPARATOR=:
12197 rm -f conf$$.sh
12200 # Find out how to test for executable files. Don't use a zero-byte file,
12201 # as systems may use methods other than mode bits to determine executability.
12202 cat >conf$$.file <<_ASEOF
12203 #! /bin/sh
12204 exit 0
12205 _ASEOF
12206 chmod +x conf$$.file
12207 if test -x conf$$.file >/dev/null 2>&1; then
12208 ac_executable_p="test -x"
12209 else
12210 ac_executable_p="test -f"
12212 rm -f conf$$.file
12214 # Extract the first word of "xgettext", so it can be a program name with args.
12215 set dummy xgettext; ac_word=$2
12216 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12217 $as_echo_n "checking for $ac_word... " >&6; }
12218 if test "${ac_cv_path_XGETTEXT+set}" = set; then :
12219 $as_echo_n "(cached) " >&6
12220 else
12221 case "$XGETTEXT" in
12222 [\\/]* | ?:[\\/]*)
12223 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
12226 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
12227 for ac_dir in $PATH; do
12228 IFS="$ac_save_IFS"
12229 test -z "$ac_dir" && ac_dir=.
12230 for ac_exec_ext in '' $ac_executable_extensions; do
12231 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
12232 if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
12233 (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
12234 ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
12235 break 2
12238 done
12239 done
12240 IFS="$ac_save_IFS"
12241 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
12243 esac
12245 XGETTEXT="$ac_cv_path_XGETTEXT"
12246 if test "$XGETTEXT" != ":"; then
12247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5
12248 $as_echo "$XGETTEXT" >&6; }
12249 else
12250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12251 $as_echo "no" >&6; }
12254 rm -f messages.po
12257 # Prepare PATH_SEPARATOR.
12258 # The user is always right.
12259 if test "${PATH_SEPARATOR+set}" != set; then
12260 echo "#! /bin/sh" >conf$$.sh
12261 echo "exit 0" >>conf$$.sh
12262 chmod +x conf$$.sh
12263 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
12264 PATH_SEPARATOR=';'
12265 else
12266 PATH_SEPARATOR=:
12268 rm -f conf$$.sh
12271 # Find out how to test for executable files. Don't use a zero-byte file,
12272 # as systems may use methods other than mode bits to determine executability.
12273 cat >conf$$.file <<_ASEOF
12274 #! /bin/sh
12275 exit 0
12276 _ASEOF
12277 chmod +x conf$$.file
12278 if test -x conf$$.file >/dev/null 2>&1; then
12279 ac_executable_p="test -x"
12280 else
12281 ac_executable_p="test -f"
12283 rm -f conf$$.file
12285 # Extract the first word of "msgmerge", so it can be a program name with args.
12286 set dummy msgmerge; ac_word=$2
12287 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12288 $as_echo_n "checking for $ac_word... " >&6; }
12289 if test "${ac_cv_path_MSGMERGE+set}" = set; then :
12290 $as_echo_n "(cached) " >&6
12291 else
12292 case "$MSGMERGE" in
12293 [\\/]* | ?:[\\/]*)
12294 ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
12297 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
12298 for ac_dir in $PATH; do
12299 IFS="$ac_save_IFS"
12300 test -z "$ac_dir" && ac_dir=.
12301 for ac_exec_ext in '' $ac_executable_extensions; do
12302 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
12303 if $ac_dir/$ac_word --update -q /dev/null /dev/null >/dev/null 2>&1; then
12304 ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
12305 break 2
12308 done
12309 done
12310 IFS="$ac_save_IFS"
12311 test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
12313 esac
12315 MSGMERGE="$ac_cv_path_MSGMERGE"
12316 if test "$MSGMERGE" != ":"; then
12317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGMERGE" >&5
12318 $as_echo "$MSGMERGE" >&6; }
12319 else
12320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12321 $as_echo "no" >&6; }
12325 if test "$GMSGFMT" != ":"; then
12326 if $GMSGFMT --statistics /dev/null >/dev/null 2>&1 &&
12327 (if $GMSGFMT --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
12329 else
12330 GMSGFMT=`echo "$GMSGFMT" | sed -e 's,^.*/,,'`
12331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found $GMSGFMT program is not GNU msgfmt; ignore it" >&5
12332 $as_echo "found $GMSGFMT program is not GNU msgfmt; ignore it" >&6; }
12333 GMSGFMT=":"
12337 if test "$XGETTEXT" != ":"; then
12338 if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
12339 (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
12341 else
12342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found xgettext program is not GNU xgettext; ignore it" >&5
12343 $as_echo "found xgettext program is not GNU xgettext; ignore it" >&6; }
12344 XGETTEXT=":"
12346 rm -f messages.po
12349 ac_config_commands="$ac_config_commands default-1"
12355 for ac_prog in 'bison -y' byacc
12357 # Extract the first word of "$ac_prog", so it can be a program name with args.
12358 set dummy $ac_prog; ac_word=$2
12359 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12360 $as_echo_n "checking for $ac_word... " >&6; }
12361 if test "${ac_cv_prog_YACC+set}" = set; then :
12362 $as_echo_n "(cached) " >&6
12363 else
12364 if test -n "$YACC"; then
12365 ac_cv_prog_YACC="$YACC" # Let the user override the test.
12366 else
12367 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12368 for as_dir in $PATH
12370 IFS=$as_save_IFS
12371 test -z "$as_dir" && as_dir=.
12372 for ac_exec_ext in '' $ac_executable_extensions; do
12373 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12374 ac_cv_prog_YACC="$ac_prog"
12375 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12376 break 2
12378 done
12379 done
12380 IFS=$as_save_IFS
12384 YACC=$ac_cv_prog_YACC
12385 if test -n "$YACC"; then
12386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5
12387 $as_echo "$YACC" >&6; }
12388 else
12389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12390 $as_echo "no" >&6; }
12394 test -n "$YACC" && break
12395 done
12396 test -n "$YACC" || YACC="yacc"
12398 for ac_prog in flex lex
12400 # Extract the first word of "$ac_prog", so it can be a program name with args.
12401 set dummy $ac_prog; ac_word=$2
12402 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12403 $as_echo_n "checking for $ac_word... " >&6; }
12404 if test "${ac_cv_prog_LEX+set}" = set; then :
12405 $as_echo_n "(cached) " >&6
12406 else
12407 if test -n "$LEX"; then
12408 ac_cv_prog_LEX="$LEX" # Let the user override the test.
12409 else
12410 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12411 for as_dir in $PATH
12413 IFS=$as_save_IFS
12414 test -z "$as_dir" && as_dir=.
12415 for ac_exec_ext in '' $ac_executable_extensions; do
12416 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12417 ac_cv_prog_LEX="$ac_prog"
12418 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12419 break 2
12421 done
12422 done
12423 IFS=$as_save_IFS
12427 LEX=$ac_cv_prog_LEX
12428 if test -n "$LEX"; then
12429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LEX" >&5
12430 $as_echo "$LEX" >&6; }
12431 else
12432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12433 $as_echo "no" >&6; }
12437 test -n "$LEX" && break
12438 done
12439 test -n "$LEX" || LEX=":"
12441 if test "x$LEX" != "x:"; then
12442 cat >conftest.l <<_ACEOF
12444 a { ECHO; }
12445 b { REJECT; }
12446 c { yymore (); }
12447 d { yyless (1); }
12448 e { yyless (input () != 0); }
12449 f { unput (yytext[0]); }
12450 . { BEGIN INITIAL; }
12452 #ifdef YYTEXT_POINTER
12453 extern char *yytext;
12454 #endif
12456 main (void)
12458 return ! yylex () + ! yywrap ();
12460 _ACEOF
12461 { { ac_try="$LEX conftest.l"
12462 case "(($ac_try" in
12463 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12464 *) ac_try_echo=$ac_try;;
12465 esac
12466 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
12467 $as_echo "$ac_try_echo"; } >&5
12468 (eval "$LEX conftest.l") 2>&5
12469 ac_status=$?
12470 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12471 test $ac_status = 0; }
12472 { $as_echo "$as_me:${as_lineno-$LINENO}: checking lex output file root" >&5
12473 $as_echo_n "checking lex output file root... " >&6; }
12474 if test "${ac_cv_prog_lex_root+set}" = set; then :
12475 $as_echo_n "(cached) " >&6
12476 else
12478 if test -f lex.yy.c; then
12479 ac_cv_prog_lex_root=lex.yy
12480 elif test -f lexyy.c; then
12481 ac_cv_prog_lex_root=lexyy
12482 else
12483 as_fn_error "cannot find output from $LEX; giving up" "$LINENO" 5
12486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_root" >&5
12487 $as_echo "$ac_cv_prog_lex_root" >&6; }
12488 LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
12490 if test -z "${LEXLIB+set}"; then
12491 { $as_echo "$as_me:${as_lineno-$LINENO}: checking lex library" >&5
12492 $as_echo_n "checking lex library... " >&6; }
12493 if test "${ac_cv_lib_lex+set}" = set; then :
12494 $as_echo_n "(cached) " >&6
12495 else
12497 ac_save_LIBS=$LIBS
12498 ac_cv_lib_lex='none needed'
12499 for ac_lib in '' -lfl -ll; do
12500 LIBS="$ac_lib $ac_save_LIBS"
12501 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12502 /* end confdefs.h. */
12503 `cat $LEX_OUTPUT_ROOT.c`
12504 _ACEOF
12505 if ac_fn_c_try_link "$LINENO"; then :
12506 ac_cv_lib_lex=$ac_lib
12508 rm -f core conftest.err conftest.$ac_objext \
12509 conftest$ac_exeext conftest.$ac_ext
12510 test "$ac_cv_lib_lex" != 'none needed' && break
12511 done
12512 LIBS=$ac_save_LIBS
12515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lex" >&5
12516 $as_echo "$ac_cv_lib_lex" >&6; }
12517 test "$ac_cv_lib_lex" != 'none needed' && LEXLIB=$ac_cv_lib_lex
12521 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether yytext is a pointer" >&5
12522 $as_echo_n "checking whether yytext is a pointer... " >&6; }
12523 if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then :
12524 $as_echo_n "(cached) " >&6
12525 else
12526 # POSIX says lex can declare yytext either as a pointer or an array; the
12527 # default is implementation-dependent. Figure out which it is, since
12528 # not all implementations provide the %pointer and %array declarations.
12529 ac_cv_prog_lex_yytext_pointer=no
12530 ac_save_LIBS=$LIBS
12531 LIBS="$LEXLIB $ac_save_LIBS"
12532 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12533 /* end confdefs.h. */
12534 #define YYTEXT_POINTER 1
12535 `cat $LEX_OUTPUT_ROOT.c`
12536 _ACEOF
12537 if ac_fn_c_try_link "$LINENO"; then :
12538 ac_cv_prog_lex_yytext_pointer=yes
12540 rm -f core conftest.err conftest.$ac_objext \
12541 conftest$ac_exeext conftest.$ac_ext
12542 LIBS=$ac_save_LIBS
12545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_yytext_pointer" >&5
12546 $as_echo "$ac_cv_prog_lex_yytext_pointer" >&6; }
12547 if test $ac_cv_prog_lex_yytext_pointer = yes; then
12549 $as_echo "#define YYTEXT_POINTER 1" >>confdefs.h
12552 rm -f conftest.l $LEX_OUTPUT_ROOT.c
12555 if test "$LEX" = :; then
12556 LEX=${am_missing_run}flex
12560 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
12561 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
12562 # Check whether --enable-maintainer-mode was given.
12563 if test "${enable_maintainer_mode+set}" = set; then :
12564 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
12565 else
12566 USE_MAINTAINER_MODE=no
12569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
12570 $as_echo "$USE_MAINTAINER_MODE" >&6; }
12571 if test $USE_MAINTAINER_MODE = yes; then
12572 MAINTAINER_MODE_TRUE=
12573 MAINTAINER_MODE_FALSE='#'
12574 else
12575 MAINTAINER_MODE_TRUE='#'
12576 MAINTAINER_MODE_FALSE=
12579 MAINT=$MAINTAINER_MODE_TRUE
12582 if false; then
12583 GENINSRC_NEVER_TRUE=
12584 GENINSRC_NEVER_FALSE='#'
12585 else
12586 GENINSRC_NEVER_TRUE='#'
12587 GENINSRC_NEVER_FALSE=
12590 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to compare bootstrapped objects" >&5
12591 $as_echo_n "checking how to compare bootstrapped objects... " >&6; }
12592 if test "${gcc_cv_prog_cmp_skip+set}" = set; then :
12593 $as_echo_n "(cached) " >&6
12594 else
12595 echo abfoo >t1
12596 echo cdfoo >t2
12597 gcc_cv_prog_cmp_skip='tail +16c $$f1 > tmp-foo1; tail +16c $$f2 > tmp-foo2; cmp tmp-foo1 tmp-foo2'
12598 if cmp t1 t2 2 2 > /dev/null 2>&1; then
12599 if cmp t1 t2 1 1 > /dev/null 2>&1; then
12601 else
12602 gcc_cv_prog_cmp_skip='cmp $$f1 $$f2 16 16'
12605 if cmp --ignore-initial=2 t1 t2 > /dev/null 2>&1; then
12606 if cmp --ignore-initial=1 t1 t2 > /dev/null 2>&1; then
12608 else
12609 gcc_cv_prog_cmp_skip='cmp --ignore-initial=16 $$f1 $$f2'
12612 rm t1 t2
12615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_cmp_skip" >&5
12616 $as_echo "$gcc_cv_prog_cmp_skip" >&6; }
12617 do_compare="$gcc_cv_prog_cmp_skip"
12621 . ${srcdir}/configure.host
12628 for ac_header in string.h strings.h stdlib.h unistd.h elf-hints.h limits.h sys/param.h
12629 do :
12630 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
12631 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
12632 eval as_val=\$$as_ac_Header
12633 if test "x$as_val" = x""yes; then :
12634 cat >>confdefs.h <<_ACEOF
12635 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
12636 _ACEOF
12640 done
12642 for ac_header in fcntl.h sys/file.h sys/time.h sys/stat.h
12643 do :
12644 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
12645 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
12646 eval as_val=\$$as_ac_Header
12647 if test "x$as_val" = x""yes; then :
12648 cat >>confdefs.h <<_ACEOF
12649 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
12650 _ACEOF
12654 done
12656 for ac_func in glob mkstemp realpath sbrk waitpid
12657 do :
12658 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
12659 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
12660 eval as_val=\$$as_ac_var
12661 if test "x$as_val" = x""yes; then :
12662 cat >>confdefs.h <<_ACEOF
12663 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
12664 _ACEOF
12667 done
12669 for ac_func in open lseek close
12670 do :
12671 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
12672 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
12673 eval as_val=\$$as_ac_var
12674 if test "x$as_val" = x""yes; then :
12675 cat >>confdefs.h <<_ACEOF
12676 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
12677 _ACEOF
12680 done
12682 ac_header_dirent=no
12683 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
12684 as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
12685 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
12686 $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
12687 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then :
12688 $as_echo_n "(cached) " >&6
12689 else
12690 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12691 /* end confdefs.h. */
12692 #include <sys/types.h>
12693 #include <$ac_hdr>
12696 main ()
12698 if ((DIR *) 0)
12699 return 0;
12701 return 0;
12703 _ACEOF
12704 if ac_fn_c_try_compile "$LINENO"; then :
12705 eval "$as_ac_Header=yes"
12706 else
12707 eval "$as_ac_Header=no"
12709 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12711 eval ac_res=\$$as_ac_Header
12712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
12713 $as_echo "$ac_res" >&6; }
12714 eval as_val=\$$as_ac_Header
12715 if test "x$as_val" = x""yes; then :
12716 cat >>confdefs.h <<_ACEOF
12717 #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
12718 _ACEOF
12720 ac_header_dirent=$ac_hdr; break
12723 done
12724 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
12725 if test $ac_header_dirent = dirent.h; then
12726 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
12727 $as_echo_n "checking for library containing opendir... " >&6; }
12728 if test "${ac_cv_search_opendir+set}" = set; then :
12729 $as_echo_n "(cached) " >&6
12730 else
12731 ac_func_search_save_LIBS=$LIBS
12732 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12733 /* end confdefs.h. */
12735 /* Override any GCC internal prototype to avoid an error.
12736 Use char because int might match the return type of a GCC
12737 builtin and then its argument prototype would still apply. */
12738 #ifdef __cplusplus
12739 extern "C"
12740 #endif
12741 char opendir ();
12743 main ()
12745 return opendir ();
12747 return 0;
12749 _ACEOF
12750 for ac_lib in '' dir; do
12751 if test -z "$ac_lib"; then
12752 ac_res="none required"
12753 else
12754 ac_res=-l$ac_lib
12755 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12757 if ac_fn_c_try_link "$LINENO"; then :
12758 ac_cv_search_opendir=$ac_res
12760 rm -f core conftest.err conftest.$ac_objext \
12761 conftest$ac_exeext
12762 if test "${ac_cv_search_opendir+set}" = set; then :
12763 break
12765 done
12766 if test "${ac_cv_search_opendir+set}" = set; then :
12768 else
12769 ac_cv_search_opendir=no
12771 rm conftest.$ac_ext
12772 LIBS=$ac_func_search_save_LIBS
12774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
12775 $as_echo "$ac_cv_search_opendir" >&6; }
12776 ac_res=$ac_cv_search_opendir
12777 if test "$ac_res" != no; then :
12778 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12782 else
12783 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
12784 $as_echo_n "checking for library containing opendir... " >&6; }
12785 if test "${ac_cv_search_opendir+set}" = set; then :
12786 $as_echo_n "(cached) " >&6
12787 else
12788 ac_func_search_save_LIBS=$LIBS
12789 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12790 /* end confdefs.h. */
12792 /* Override any GCC internal prototype to avoid an error.
12793 Use char because int might match the return type of a GCC
12794 builtin and then its argument prototype would still apply. */
12795 #ifdef __cplusplus
12796 extern "C"
12797 #endif
12798 char opendir ();
12800 main ()
12802 return opendir ();
12804 return 0;
12806 _ACEOF
12807 for ac_lib in '' x; do
12808 if test -z "$ac_lib"; then
12809 ac_res="none required"
12810 else
12811 ac_res=-l$ac_lib
12812 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12814 if ac_fn_c_try_link "$LINENO"; then :
12815 ac_cv_search_opendir=$ac_res
12817 rm -f core conftest.err conftest.$ac_objext \
12818 conftest$ac_exeext
12819 if test "${ac_cv_search_opendir+set}" = set; then :
12820 break
12822 done
12823 if test "${ac_cv_search_opendir+set}" = set; then :
12825 else
12826 ac_cv_search_opendir=no
12828 rm conftest.$ac_ext
12829 LIBS=$ac_func_search_save_LIBS
12831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
12832 $as_echo "$ac_cv_search_opendir" >&6; }
12833 ac_res=$ac_cv_search_opendir
12834 if test "$ac_res" != no; then :
12835 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12842 # Check for dlopen support and enable plugins if possible.
12843 enable_plugins=yes
12844 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
12846 if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
12848 else
12849 enable_plugins=no
12853 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
12854 $as_echo_n "checking for library containing dlopen... " >&6; }
12855 if test "${ac_cv_search_dlopen+set}" = set; then :
12856 $as_echo_n "(cached) " >&6
12857 else
12858 ac_func_search_save_LIBS=$LIBS
12859 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12860 /* end confdefs.h. */
12862 /* Override any GCC internal prototype to avoid an error.
12863 Use char because int might match the return type of a GCC
12864 builtin and then its argument prototype would still apply. */
12865 #ifdef __cplusplus
12866 extern "C"
12867 #endif
12868 char dlopen ();
12870 main ()
12872 return dlopen ();
12874 return 0;
12876 _ACEOF
12877 for ac_lib in '' dl; do
12878 if test -z "$ac_lib"; then
12879 ac_res="none required"
12880 else
12881 ac_res=-l$ac_lib
12882 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12884 if ac_fn_c_try_link "$LINENO"; then :
12885 ac_cv_search_dlopen=$ac_res
12887 rm -f core conftest.err conftest.$ac_objext \
12888 conftest$ac_exeext
12889 if test "${ac_cv_search_dlopen+set}" = set; then :
12890 break
12892 done
12893 if test "${ac_cv_search_dlopen+set}" = set; then :
12895 else
12896 ac_cv_search_dlopen=no
12898 rm conftest.$ac_ext
12899 LIBS=$ac_func_search_save_LIBS
12901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
12902 $as_echo "$ac_cv_search_dlopen" >&6; }
12903 ac_res=$ac_cv_search_dlopen
12904 if test "$ac_res" != no; then :
12905 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12907 else
12908 enable_plugins=no
12911 for ac_func in dlopen dlsym dlclose
12912 do :
12913 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
12914 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
12915 eval as_val=\$$as_ac_var
12916 if test "x$as_val" = x""yes; then :
12917 cat >>confdefs.h <<_ACEOF
12918 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
12919 _ACEOF
12921 else
12922 enable_plugins=no
12924 done
12926 # We also support plugins on Windows (MinGW).
12927 if test x$enable_plugins = xno ; then
12928 for ac_header in Windows.h
12929 do :
12930 ac_fn_c_check_header_compile "$LINENO" "Windows.h" "ac_cv_header_Windows_h" "$ac_includes_default
12932 if test "x$ac_cv_header_Windows_h" = x""yes; then :
12933 cat >>confdefs.h <<_ACEOF
12934 #define HAVE_WINDOWS_H 1
12935 _ACEOF
12936 enable_plugins=yes
12939 done
12942 if test x$enable_plugins = xyes; then
12943 ENABLE_PLUGINS_TRUE=
12944 ENABLE_PLUGINS_FALSE='#'
12945 else
12946 ENABLE_PLUGINS_TRUE='#'
12947 ENABLE_PLUGINS_FALSE=
12951 # Check whether --enable-initfini-array was given.
12952 if test "${enable_initfini_array+set}" = set; then :
12953 enableval=$enable_initfini_array;
12954 else
12956 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for .preinit_array/.init_array/.fini_array support" >&5
12957 $as_echo_n "checking for .preinit_array/.init_array/.fini_array support... " >&6; }
12958 if test "${gcc_cv_initfini_array+set}" = set; then :
12959 $as_echo_n "(cached) " >&6
12960 else
12961 if test "x${build}" = "x${target}" ; then
12962 if test "$cross_compiling" = yes; then :
12963 gcc_cv_initfini_array=no
12964 else
12965 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12966 /* end confdefs.h. */
12968 static int x = -1;
12969 int main (void) { return x; }
12970 int foo (void) { x = 0; }
12971 int (*fp) (void) __attribute__ ((section (".init_array"))) = foo;
12972 _ACEOF
12973 if ac_fn_c_try_run "$LINENO"; then :
12974 gcc_cv_initfini_array=yes
12975 else
12976 gcc_cv_initfini_array=no
12978 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12979 conftest.$ac_objext conftest.beam conftest.$ac_ext
12982 else
12983 gcc_cv_initfini_array=no
12986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_initfini_array" >&5
12987 $as_echo "$gcc_cv_initfini_array" >&6; }
12988 enable_initfini_array=$gcc_cv_initfini_array
12993 if test $enable_initfini_array = yes; then
12995 $as_echo "#define HAVE_INITFINI_ARRAY 1" >>confdefs.h
12999 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a known getopt prototype in unistd.h" >&5
13000 $as_echo_n "checking for a known getopt prototype in unistd.h... " >&6; }
13001 if test "${ld_cv_decl_getopt_unistd_h+set}" = set; then :
13002 $as_echo_n "(cached) " >&6
13003 else
13004 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13005 /* end confdefs.h. */
13006 #include <unistd.h>
13008 main ()
13010 extern int getopt (int, char *const*, const char *);
13012 return 0;
13014 _ACEOF
13015 if ac_fn_c_try_compile "$LINENO"; then :
13016 ld_cv_decl_getopt_unistd_h=yes
13017 else
13018 ld_cv_decl_getopt_unistd_h=no
13020 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_cv_decl_getopt_unistd_h" >&5
13024 $as_echo "$ld_cv_decl_getopt_unistd_h" >&6; }
13025 if test $ld_cv_decl_getopt_unistd_h = yes; then
13027 $as_echo "#define HAVE_DECL_GETOPT 1" >>confdefs.h
13032 case "${host}" in
13033 *-*-msdos* | *-*-go32* | *-*-mingw32* | *-*-cygwin* | *-*-windows*)
13035 $as_echo "#define USE_BINARY_FOPEN 1" >>confdefs.h
13037 esac
13039 ac_fn_c_check_decl "$LINENO" "strstr" "ac_cv_have_decl_strstr" "$ac_includes_default"
13040 if test "x$ac_cv_have_decl_strstr" = x""yes; then :
13041 ac_have_decl=1
13042 else
13043 ac_have_decl=0
13046 cat >>confdefs.h <<_ACEOF
13047 #define HAVE_DECL_STRSTR $ac_have_decl
13048 _ACEOF
13049 ac_fn_c_check_decl "$LINENO" "free" "ac_cv_have_decl_free" "$ac_includes_default"
13050 if test "x$ac_cv_have_decl_free" = x""yes; then :
13051 ac_have_decl=1
13052 else
13053 ac_have_decl=0
13056 cat >>confdefs.h <<_ACEOF
13057 #define HAVE_DECL_FREE $ac_have_decl
13058 _ACEOF
13059 ac_fn_c_check_decl "$LINENO" "sbrk" "ac_cv_have_decl_sbrk" "$ac_includes_default"
13060 if test "x$ac_cv_have_decl_sbrk" = x""yes; then :
13061 ac_have_decl=1
13062 else
13063 ac_have_decl=0
13066 cat >>confdefs.h <<_ACEOF
13067 #define HAVE_DECL_SBRK $ac_have_decl
13068 _ACEOF
13069 ac_fn_c_check_decl "$LINENO" "getenv" "ac_cv_have_decl_getenv" "$ac_includes_default"
13070 if test "x$ac_cv_have_decl_getenv" = x""yes; then :
13071 ac_have_decl=1
13072 else
13073 ac_have_decl=0
13076 cat >>confdefs.h <<_ACEOF
13077 #define HAVE_DECL_GETENV $ac_have_decl
13078 _ACEOF
13079 ac_fn_c_check_decl "$LINENO" "environ" "ac_cv_have_decl_environ" "$ac_includes_default"
13080 if test "x$ac_cv_have_decl_environ" = x""yes; then :
13081 ac_have_decl=1
13082 else
13083 ac_have_decl=0
13086 cat >>confdefs.h <<_ACEOF
13087 #define HAVE_DECL_ENVIRON $ac_have_decl
13088 _ACEOF
13091 # Link in zlib if we can. This is needed only for the bootstrap tests
13092 # right now, since those tests use libbfd, which depends on zlib.
13093 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing zlibVersion" >&5
13094 $as_echo_n "checking for library containing zlibVersion... " >&6; }
13095 if test "${ac_cv_search_zlibVersion+set}" = set; then :
13096 $as_echo_n "(cached) " >&6
13097 else
13098 ac_func_search_save_LIBS=$LIBS
13099 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13100 /* end confdefs.h. */
13102 /* Override any GCC internal prototype to avoid an error.
13103 Use char because int might match the return type of a GCC
13104 builtin and then its argument prototype would still apply. */
13105 #ifdef __cplusplus
13106 extern "C"
13107 #endif
13108 char zlibVersion ();
13110 main ()
13112 return zlibVersion ();
13114 return 0;
13116 _ACEOF
13117 for ac_lib in '' z; do
13118 if test -z "$ac_lib"; then
13119 ac_res="none required"
13120 else
13121 ac_res=-l$ac_lib
13122 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13124 if ac_fn_c_try_link "$LINENO"; then :
13125 ac_cv_search_zlibVersion=$ac_res
13127 rm -f core conftest.err conftest.$ac_objext \
13128 conftest$ac_exeext
13129 if test "${ac_cv_search_zlibVersion+set}" = set; then :
13130 break
13132 done
13133 if test "${ac_cv_search_zlibVersion+set}" = set; then :
13135 else
13136 ac_cv_search_zlibVersion=no
13138 rm conftest.$ac_ext
13139 LIBS=$ac_func_search_save_LIBS
13141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_zlibVersion" >&5
13142 $as_echo "$ac_cv_search_zlibVersion" >&6; }
13143 ac_res=$ac_cv_search_zlibVersion
13144 if test "$ac_res" != no; then :
13145 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13146 for ac_header in zlib.h
13147 do :
13148 ac_fn_c_check_header_mongrel "$LINENO" "zlib.h" "ac_cv_header_zlib_h" "$ac_includes_default"
13149 if test "x$ac_cv_header_zlib_h" = x""yes; then :
13150 cat >>confdefs.h <<_ACEOF
13151 #define HAVE_ZLIB_H 1
13152 _ACEOF
13156 done
13161 # When converting linker scripts into strings for use in emulation
13162 # files, use astring.sed if the compiler supports ANSI string
13163 # concatenation, or ostring.sed otherwise. This is to support the
13164 # broken Microsoft MSVC compiler, which limits the length of string
13165 # constants, while still supporting pre-ANSI compilers which do not
13166 # support string concatenation.
13167 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ANSI C string concatenation works" >&5
13168 $as_echo_n "checking whether ANSI C string concatenation works... " >&6; }
13169 if test "${ld_cv_string_concatenation+set}" = set; then :
13170 $as_echo_n "(cached) " >&6
13171 else
13172 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13173 /* end confdefs.h. */
13176 main ()
13178 char *a = "a" "a";
13180 return 0;
13182 _ACEOF
13183 if ac_fn_c_try_compile "$LINENO"; then :
13184 ld_cv_string_concatenation=yes
13185 else
13186 ld_cv_string_concatenation=no
13188 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_cv_string_concatenation" >&5
13192 $as_echo "$ld_cv_string_concatenation" >&6; }
13193 if test "$ld_cv_string_concatenation" = "yes"; then
13194 STRINGIFY=astring.sed
13195 else
13196 STRINGIFY=ostring.sed
13200 # target-specific stuff:
13202 all_targets=
13203 EMUL=
13204 all_emuls=
13205 all_emul_extras=
13206 all_libpath=
13208 rm -f tdirs
13210 for targ_alias in `echo $target_alias $enable_targets | sed 's/,/ /g'`
13212 if test "$targ_alias" = "all"; then
13213 all_targets=true
13214 else
13215 # Canonicalize the secondary target names.
13216 result=`$ac_config_sub $targ_alias 2>/dev/null`
13217 if test -n "$result"; then
13218 targ=$result
13219 else
13220 targ=$targ_alias
13223 . ${srcdir}/configure.tgt
13225 if test "$targ" = "$target"; then
13226 EMUL=$targ_emul
13229 if test x${want64} = xfalse; then
13230 . ${srcdir}/../bfd/config.bfd
13233 if test x${want64} = xtrue; then
13234 targ_extra_emuls="$targ_extra_emuls $targ64_extra_emuls"
13235 targ_extra_libpath="$targ_extra_libpath $targ64_extra_libpath"
13238 for i in $targ_emul $targ_extra_emuls $targ_extra_libpath; do
13239 case " $all_emuls " in
13240 *" e${i}.o "*) ;;
13242 all_emuls="$all_emuls e${i}.o"
13243 eval result=\$tdir_$i
13244 test -z "$result" && result=$targ_alias
13245 echo tdir_$i=$result >> tdirs
13247 esac
13248 done
13250 for i in $targ_emul $targ_extra_libpath; do
13251 case " $all_libpath " in
13252 *" ${i} "*) ;;
13254 if test -z "$all_libpath"; then
13255 all_libpath=${i}
13256 else
13257 all_libpath="$all_libpath ${i}"
13260 esac
13261 done
13263 for i in $targ_extra_ofiles; do
13264 case " $all_emul_extras " in
13265 *" ${i} "*) ;;
13267 all_emul_extras="$all_emul_extras ${i}"
13269 esac
13270 done
13272 done
13276 TDIRS=tdirs
13279 if test x${all_targets} = xtrue; then
13280 if test x${want64} = xfalse; then
13281 # The cast to long int works around a bug in the HP C Compiler
13282 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13283 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13284 # This bug is HP SR number 8606223364.
13285 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
13286 $as_echo_n "checking size of long... " >&6; }
13287 if test "${ac_cv_sizeof_long+set}" = set; then :
13288 $as_echo_n "(cached) " >&6
13289 else
13290 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then :
13292 else
13293 if test "$ac_cv_type_long" = yes; then
13294 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13295 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13296 { as_fn_set_status 77
13297 as_fn_error "cannot compute sizeof (long)
13298 See \`config.log' for more details." "$LINENO" 5; }; }
13299 else
13300 ac_cv_sizeof_long=0
13305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
13306 $as_echo "$ac_cv_sizeof_long" >&6; }
13310 cat >>confdefs.h <<_ACEOF
13311 #define SIZEOF_LONG $ac_cv_sizeof_long
13312 _ACEOF
13315 if test "x${ac_cv_sizeof_long}" = "x8"; then
13316 want64=true
13319 if test x${want64} = xtrue; then
13320 EMULATION_OFILES='$(ALL_EMULATIONS) $(ALL_64_EMULATIONS)'
13321 else
13322 EMULATION_OFILES='$(ALL_EMULATIONS)'
13324 EMUL_EXTRA_OFILES='$(ALL_EMUL_EXTRA_OFILES)'
13325 else
13326 EMULATION_OFILES=$all_emuls
13327 EMUL_EXTRA_OFILES=$all_emul_extras
13333 EMULATION_LIBPATH=$all_libpath
13336 if test x${enable_static} = xno; then
13337 TESTBFDLIB="--rpath ../bfd/.libs ../bfd/.libs/libbfd.so"
13338 else
13339 TESTBFDLIB="../bfd/.libs/libbfd.a"
13343 target_vendor=${target_vendor=$host_vendor}
13344 case "$target_vendor" in
13345 hp) EXTRA_SHLIB_EXTENSION=".sl" ;;
13346 *) EXTRA_SHLIB_EXTENSION= ;;
13347 esac
13349 case "$target_os" in
13350 lynxos) EXTRA_SHLIB_EXTENSION=".a" ;;
13351 esac
13353 if test x${EXTRA_SHLIB_EXTENSION} != x ; then
13355 cat >>confdefs.h <<_ACEOF
13356 #define EXTRA_SHLIB_EXTENSION "$EXTRA_SHLIB_EXTENSION"
13357 _ACEOF
13366 ac_config_files="$ac_config_files Makefile po/Makefile.in:po/Make-in"
13368 cat >confcache <<\_ACEOF
13369 # This file is a shell script that caches the results of configure
13370 # tests run on this system so they can be shared between configure
13371 # scripts and configure runs, see configure's option --config-cache.
13372 # It is not useful on other systems. If it contains results you don't
13373 # want to keep, you may remove or edit it.
13375 # config.status only pays attention to the cache file if you give it
13376 # the --recheck option to rerun configure.
13378 # `ac_cv_env_foo' variables (set or unset) will be overridden when
13379 # loading this file, other *unset* `ac_cv_foo' will be assigned the
13380 # following values.
13382 _ACEOF
13384 # The following way of writing the cache mishandles newlines in values,
13385 # but we know of no workaround that is simple, portable, and efficient.
13386 # So, we kill variables containing newlines.
13387 # Ultrix sh set writes to stderr and can't be redirected directly,
13388 # and sets the high bit in the cache file unless we assign to the vars.
13390 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
13391 eval ac_val=\$$ac_var
13392 case $ac_val in #(
13393 *${as_nl}*)
13394 case $ac_var in #(
13395 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
13396 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
13397 esac
13398 case $ac_var in #(
13399 _ | IFS | as_nl) ;; #(
13400 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
13401 *) { eval $ac_var=; unset $ac_var;} ;;
13402 esac ;;
13403 esac
13404 done
13406 (set) 2>&1 |
13407 case $as_nl`(ac_space=' '; set) 2>&1` in #(
13408 *${as_nl}ac_space=\ *)
13409 # `set' does not quote correctly, so add quotes: double-quote
13410 # substitution turns \\\\ into \\, and sed turns \\ into \.
13411 sed -n \
13412 "s/'/'\\\\''/g;
13413 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
13414 ;; #(
13416 # `set' quotes correctly as required by POSIX, so do not add quotes.
13417 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
13419 esac |
13420 sort
13422 sed '
13423 /^ac_cv_env_/b end
13424 t clear
13425 :clear
13426 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
13427 t end
13428 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
13429 :end' >>confcache
13430 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
13431 if test -w "$cache_file"; then
13432 test "x$cache_file" != "x/dev/null" &&
13433 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
13434 $as_echo "$as_me: updating cache $cache_file" >&6;}
13435 cat confcache >$cache_file
13436 else
13437 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
13438 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
13441 rm -f confcache
13443 test "x$prefix" = xNONE && prefix=$ac_default_prefix
13444 # Let make expand exec_prefix.
13445 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
13447 DEFS=-DHAVE_CONFIG_H
13449 ac_libobjs=
13450 ac_ltlibobjs=
13451 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
13452 # 1. Remove the extension, and $U if already installed.
13453 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
13454 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
13455 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
13456 # will be set to the directory where LIBOBJS objects are built.
13457 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
13458 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
13459 done
13460 LIBOBJS=$ac_libobjs
13462 LTLIBOBJS=$ac_ltlibobjs
13465 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
13466 as_fn_error "conditional \"AMDEP\" was never defined.
13467 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13469 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
13470 as_fn_error "conditional \"am__fastdepCC\" was never defined.
13471 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13473 if test -n "$EXEEXT"; then
13474 am__EXEEXT_TRUE=
13475 am__EXEEXT_FALSE='#'
13476 else
13477 am__EXEEXT_TRUE='#'
13478 am__EXEEXT_FALSE=
13481 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
13482 as_fn_error "conditional \"MAINTAINER_MODE\" was never defined.
13483 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13485 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
13486 as_fn_error "conditional \"MAINTAINER_MODE\" was never defined.
13487 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13489 if test -z "${GENINSRC_NEVER_TRUE}" && test -z "${GENINSRC_NEVER_FALSE}"; then
13490 as_fn_error "conditional \"GENINSRC_NEVER\" was never defined.
13491 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13493 if test -z "${ENABLE_PLUGINS_TRUE}" && test -z "${ENABLE_PLUGINS_FALSE}"; then
13494 as_fn_error "conditional \"ENABLE_PLUGINS\" was never defined.
13495 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13498 : ${CONFIG_STATUS=./config.status}
13499 ac_write_fail=0
13500 ac_clean_files_save=$ac_clean_files
13501 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
13502 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
13503 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
13504 as_write_fail=0
13505 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
13506 #! $SHELL
13507 # Generated by $as_me.
13508 # Run this file to recreate the current configuration.
13509 # Compiler output produced by configure, useful for debugging
13510 # configure, is in config.log if it exists.
13512 debug=false
13513 ac_cs_recheck=false
13514 ac_cs_silent=false
13516 SHELL=\${CONFIG_SHELL-$SHELL}
13517 export SHELL
13518 _ASEOF
13519 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
13520 ## -------------------- ##
13521 ## M4sh Initialization. ##
13522 ## -------------------- ##
13524 # Be more Bourne compatible
13525 DUALCASE=1; export DUALCASE # for MKS sh
13526 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
13527 emulate sh
13528 NULLCMD=:
13529 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
13530 # is contrary to our usage. Disable this feature.
13531 alias -g '${1+"$@"}'='"$@"'
13532 setopt NO_GLOB_SUBST
13533 else
13534 case `(set -o) 2>/dev/null` in #(
13535 *posix*) :
13536 set -o posix ;; #(
13537 *) :
13539 esac
13543 as_nl='
13545 export as_nl
13546 # Printing a long string crashes Solaris 7 /usr/bin/printf.
13547 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
13548 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
13549 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
13550 # Prefer a ksh shell builtin over an external printf program on Solaris,
13551 # but without wasting forks for bash or zsh.
13552 if test -z "$BASH_VERSION$ZSH_VERSION" \
13553 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
13554 as_echo='print -r --'
13555 as_echo_n='print -rn --'
13556 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
13557 as_echo='printf %s\n'
13558 as_echo_n='printf %s'
13559 else
13560 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
13561 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
13562 as_echo_n='/usr/ucb/echo -n'
13563 else
13564 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
13565 as_echo_n_body='eval
13566 arg=$1;
13567 case $arg in #(
13568 *"$as_nl"*)
13569 expr "X$arg" : "X\\(.*\\)$as_nl";
13570 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
13571 esac;
13572 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
13574 export as_echo_n_body
13575 as_echo_n='sh -c $as_echo_n_body as_echo'
13577 export as_echo_body
13578 as_echo='sh -c $as_echo_body as_echo'
13581 # The user is always right.
13582 if test "${PATH_SEPARATOR+set}" != set; then
13583 PATH_SEPARATOR=:
13584 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
13585 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
13586 PATH_SEPARATOR=';'
13591 # IFS
13592 # We need space, tab and new line, in precisely that order. Quoting is
13593 # there to prevent editors from complaining about space-tab.
13594 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
13595 # splitting by setting IFS to empty value.)
13596 IFS=" "" $as_nl"
13598 # Find who we are. Look in the path if we contain no directory separator.
13599 case $0 in #((
13600 *[\\/]* ) as_myself=$0 ;;
13601 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13602 for as_dir in $PATH
13604 IFS=$as_save_IFS
13605 test -z "$as_dir" && as_dir=.
13606 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
13607 done
13608 IFS=$as_save_IFS
13611 esac
13612 # We did not find ourselves, most probably we were run as `sh COMMAND'
13613 # in which case we are not to be found in the path.
13614 if test "x$as_myself" = x; then
13615 as_myself=$0
13617 if test ! -f "$as_myself"; then
13618 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
13619 exit 1
13622 # Unset variables that we do not need and which cause bugs (e.g. in
13623 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
13624 # suppresses any "Segmentation fault" message there. '((' could
13625 # trigger a bug in pdksh 5.2.14.
13626 for as_var in BASH_ENV ENV MAIL MAILPATH
13627 do eval test x\${$as_var+set} = xset \
13628 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
13629 done
13630 PS1='$ '
13631 PS2='> '
13632 PS4='+ '
13634 # NLS nuisances.
13635 LC_ALL=C
13636 export LC_ALL
13637 LANGUAGE=C
13638 export LANGUAGE
13640 # CDPATH.
13641 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
13644 # as_fn_error ERROR [LINENO LOG_FD]
13645 # ---------------------------------
13646 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
13647 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
13648 # script with status $?, using 1 if that was 0.
13649 as_fn_error ()
13651 as_status=$?; test $as_status -eq 0 && as_status=1
13652 if test "$3"; then
13653 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
13654 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
13656 $as_echo "$as_me: error: $1" >&2
13657 as_fn_exit $as_status
13658 } # as_fn_error
13661 # as_fn_set_status STATUS
13662 # -----------------------
13663 # Set $? to STATUS, without forking.
13664 as_fn_set_status ()
13666 return $1
13667 } # as_fn_set_status
13669 # as_fn_exit STATUS
13670 # -----------------
13671 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
13672 as_fn_exit ()
13674 set +e
13675 as_fn_set_status $1
13676 exit $1
13677 } # as_fn_exit
13679 # as_fn_unset VAR
13680 # ---------------
13681 # Portably unset VAR.
13682 as_fn_unset ()
13684 { eval $1=; unset $1;}
13686 as_unset=as_fn_unset
13687 # as_fn_append VAR VALUE
13688 # ----------------------
13689 # Append the text in VALUE to the end of the definition contained in VAR. Take
13690 # advantage of any shell optimizations that allow amortized linear growth over
13691 # repeated appends, instead of the typical quadratic growth present in naive
13692 # implementations.
13693 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
13694 eval 'as_fn_append ()
13696 eval $1+=\$2
13698 else
13699 as_fn_append ()
13701 eval $1=\$$1\$2
13703 fi # as_fn_append
13705 # as_fn_arith ARG...
13706 # ------------------
13707 # Perform arithmetic evaluation on the ARGs, and store the result in the
13708 # global $as_val. Take advantage of shells that can avoid forks. The arguments
13709 # must be portable across $(()) and expr.
13710 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
13711 eval 'as_fn_arith ()
13713 as_val=$(( $* ))
13715 else
13716 as_fn_arith ()
13718 as_val=`expr "$@" || test $? -eq 1`
13720 fi # as_fn_arith
13723 if expr a : '\(a\)' >/dev/null 2>&1 &&
13724 test "X`expr 00001 : '.*\(...\)'`" = X001; then
13725 as_expr=expr
13726 else
13727 as_expr=false
13730 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
13731 as_basename=basename
13732 else
13733 as_basename=false
13736 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
13737 as_dirname=dirname
13738 else
13739 as_dirname=false
13742 as_me=`$as_basename -- "$0" ||
13743 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
13744 X"$0" : 'X\(//\)$' \| \
13745 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
13746 $as_echo X/"$0" |
13747 sed '/^.*\/\([^/][^/]*\)\/*$/{
13748 s//\1/
13751 /^X\/\(\/\/\)$/{
13752 s//\1/
13755 /^X\/\(\/\).*/{
13756 s//\1/
13759 s/.*/./; q'`
13761 # Avoid depending upon Character Ranges.
13762 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
13763 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
13764 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
13765 as_cr_digits='0123456789'
13766 as_cr_alnum=$as_cr_Letters$as_cr_digits
13768 ECHO_C= ECHO_N= ECHO_T=
13769 case `echo -n x` in #(((((
13770 -n*)
13771 case `echo 'xy\c'` in
13772 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
13773 xy) ECHO_C='\c';;
13774 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
13775 ECHO_T=' ';;
13776 esac;;
13778 ECHO_N='-n';;
13779 esac
13781 rm -f conf$$ conf$$.exe conf$$.file
13782 if test -d conf$$.dir; then
13783 rm -f conf$$.dir/conf$$.file
13784 else
13785 rm -f conf$$.dir
13786 mkdir conf$$.dir 2>/dev/null
13788 if (echo >conf$$.file) 2>/dev/null; then
13789 if ln -s conf$$.file conf$$ 2>/dev/null; then
13790 as_ln_s='ln -s'
13791 # ... but there are two gotchas:
13792 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
13793 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
13794 # In both cases, we have to default to `cp -p'.
13795 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
13796 as_ln_s='cp -p'
13797 elif ln conf$$.file conf$$ 2>/dev/null; then
13798 as_ln_s=ln
13799 else
13800 as_ln_s='cp -p'
13802 else
13803 as_ln_s='cp -p'
13805 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
13806 rmdir conf$$.dir 2>/dev/null
13809 # as_fn_mkdir_p
13810 # -------------
13811 # Create "$as_dir" as a directory, including parents if necessary.
13812 as_fn_mkdir_p ()
13815 case $as_dir in #(
13816 -*) as_dir=./$as_dir;;
13817 esac
13818 test -d "$as_dir" || eval $as_mkdir_p || {
13819 as_dirs=
13820 while :; do
13821 case $as_dir in #(
13822 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
13823 *) as_qdir=$as_dir;;
13824 esac
13825 as_dirs="'$as_qdir' $as_dirs"
13826 as_dir=`$as_dirname -- "$as_dir" ||
13827 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13828 X"$as_dir" : 'X\(//\)[^/]' \| \
13829 X"$as_dir" : 'X\(//\)$' \| \
13830 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
13831 $as_echo X"$as_dir" |
13832 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13833 s//\1/
13836 /^X\(\/\/\)[^/].*/{
13837 s//\1/
13840 /^X\(\/\/\)$/{
13841 s//\1/
13844 /^X\(\/\).*/{
13845 s//\1/
13848 s/.*/./; q'`
13849 test -d "$as_dir" && break
13850 done
13851 test -z "$as_dirs" || eval "mkdir $as_dirs"
13852 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
13855 } # as_fn_mkdir_p
13856 if mkdir -p . 2>/dev/null; then
13857 as_mkdir_p='mkdir -p "$as_dir"'
13858 else
13859 test -d ./-p && rmdir ./-p
13860 as_mkdir_p=false
13863 if test -x / >/dev/null 2>&1; then
13864 as_test_x='test -x'
13865 else
13866 if ls -dL / >/dev/null 2>&1; then
13867 as_ls_L_option=L
13868 else
13869 as_ls_L_option=
13871 as_test_x='
13872 eval sh -c '\''
13873 if test -d "$1"; then
13874 test -d "$1/.";
13875 else
13876 case $1 in #(
13877 -*)set "./$1";;
13878 esac;
13879 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
13880 ???[sx]*):;;*)false;;esac;fi
13881 '\'' sh
13884 as_executable_p=$as_test_x
13886 # Sed expression to map a string onto a valid CPP name.
13887 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
13889 # Sed expression to map a string onto a valid variable name.
13890 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
13893 exec 6>&1
13894 ## ----------------------------------- ##
13895 ## Main body of $CONFIG_STATUS script. ##
13896 ## ----------------------------------- ##
13897 _ASEOF
13898 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
13900 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13901 # Save the log message, to keep $0 and so on meaningful, and to
13902 # report actual input values of CONFIG_FILES etc. instead of their
13903 # values after options handling.
13904 ac_log="
13905 This file was extended by $as_me, which was
13906 generated by GNU Autoconf 2.64. Invocation command line was
13908 CONFIG_FILES = $CONFIG_FILES
13909 CONFIG_HEADERS = $CONFIG_HEADERS
13910 CONFIG_LINKS = $CONFIG_LINKS
13911 CONFIG_COMMANDS = $CONFIG_COMMANDS
13912 $ $0 $@
13914 on `(hostname || uname -n) 2>/dev/null | sed 1q`
13917 _ACEOF
13919 case $ac_config_files in *"
13920 "*) set x $ac_config_files; shift; ac_config_files=$*;;
13921 esac
13923 case $ac_config_headers in *"
13924 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
13925 esac
13928 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13929 # Files that config.status was made for.
13930 config_files="$ac_config_files"
13931 config_headers="$ac_config_headers"
13932 config_commands="$ac_config_commands"
13934 _ACEOF
13936 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13937 ac_cs_usage="\
13938 \`$as_me' instantiates files and other configuration actions
13939 from templates according to the current configuration. Unless the files
13940 and actions are specified as TAGs, all are instantiated by default.
13942 Usage: $0 [OPTION]... [TAG]...
13944 -h, --help print this help, then exit
13945 -V, --version print version number and configuration settings, then exit
13946 -q, --quiet, --silent
13947 do not print progress messages
13948 -d, --debug don't remove temporary files
13949 --recheck update $as_me by reconfiguring in the same conditions
13950 --file=FILE[:TEMPLATE]
13951 instantiate the configuration file FILE
13952 --header=FILE[:TEMPLATE]
13953 instantiate the configuration header FILE
13955 Configuration files:
13956 $config_files
13958 Configuration headers:
13959 $config_headers
13961 Configuration commands:
13962 $config_commands
13964 Report bugs to the package provider."
13966 _ACEOF
13967 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13968 ac_cs_version="\\
13969 config.status
13970 configured by $0, generated by GNU Autoconf 2.64,
13971 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
13973 Copyright (C) 2009 Free Software Foundation, Inc.
13974 This config.status script is free software; the Free Software Foundation
13975 gives unlimited permission to copy, distribute and modify it."
13977 ac_pwd='$ac_pwd'
13978 srcdir='$srcdir'
13979 INSTALL='$INSTALL'
13980 MKDIR_P='$MKDIR_P'
13981 AWK='$AWK'
13982 test -n "\$AWK" || AWK=awk
13983 _ACEOF
13985 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13986 # The default lists apply if the user does not specify any file.
13987 ac_need_defaults=:
13988 while test $# != 0
13990 case $1 in
13991 --*=*)
13992 ac_option=`expr "X$1" : 'X\([^=]*\)='`
13993 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
13994 ac_shift=:
13997 ac_option=$1
13998 ac_optarg=$2
13999 ac_shift=shift
14001 esac
14003 case $ac_option in
14004 # Handling of the options.
14005 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
14006 ac_cs_recheck=: ;;
14007 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
14008 $as_echo "$ac_cs_version"; exit ;;
14009 --debug | --debu | --deb | --de | --d | -d )
14010 debug=: ;;
14011 --file | --fil | --fi | --f )
14012 $ac_shift
14013 case $ac_optarg in
14014 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
14015 esac
14016 as_fn_append CONFIG_FILES " '$ac_optarg'"
14017 ac_need_defaults=false;;
14018 --header | --heade | --head | --hea )
14019 $ac_shift
14020 case $ac_optarg in
14021 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
14022 esac
14023 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
14024 ac_need_defaults=false;;
14025 --he | --h)
14026 # Conflict between --help and --header
14027 as_fn_error "ambiguous option: \`$1'
14028 Try \`$0 --help' for more information.";;
14029 --help | --hel | -h )
14030 $as_echo "$ac_cs_usage"; exit ;;
14031 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
14032 | -silent | --silent | --silen | --sile | --sil | --si | --s)
14033 ac_cs_silent=: ;;
14035 # This is an error.
14036 -*) as_fn_error "unrecognized option: \`$1'
14037 Try \`$0 --help' for more information." ;;
14039 *) as_fn_append ac_config_targets " $1"
14040 ac_need_defaults=false ;;
14042 esac
14043 shift
14044 done
14046 ac_configure_extra_args=
14048 if $ac_cs_silent; then
14049 exec 6>/dev/null
14050 ac_configure_extra_args="$ac_configure_extra_args --silent"
14053 _ACEOF
14054 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14055 if \$ac_cs_recheck; then
14056 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
14057 shift
14058 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
14059 CONFIG_SHELL='$SHELL'
14060 export CONFIG_SHELL
14061 exec "\$@"
14064 _ACEOF
14065 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14066 exec 5>>config.log
14068 echo
14069 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
14070 ## Running $as_me. ##
14071 _ASBOX
14072 $as_echo "$ac_log"
14073 } >&5
14075 _ACEOF
14076 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14078 # INIT-COMMANDS
14080 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
14083 # The HP-UX ksh and POSIX shell print the target directory to stdout
14084 # if CDPATH is set.
14085 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
14087 sed_quote_subst='$sed_quote_subst'
14088 double_quote_subst='$double_quote_subst'
14089 delay_variable_subst='$delay_variable_subst'
14090 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
14091 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
14092 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
14093 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
14094 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
14095 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
14096 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
14097 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
14098 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
14099 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
14100 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
14101 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
14102 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
14103 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
14104 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
14105 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
14106 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
14107 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
14108 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
14109 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
14110 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
14111 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
14112 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
14113 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
14114 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
14115 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
14116 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
14117 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
14118 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
14119 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
14120 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
14121 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
14122 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
14123 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
14124 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
14125 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
14126 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
14127 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
14128 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
14129 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
14130 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
14131 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
14132 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
14133 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
14134 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
14135 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
14136 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
14137 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
14138 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"`'
14139 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
14140 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
14141 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
14142 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
14143 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
14144 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
14145 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
14146 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
14147 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
14148 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
14149 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
14150 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
14151 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
14152 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
14153 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
14154 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
14155 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
14156 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
14157 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
14158 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
14159 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
14160 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
14161 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
14162 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
14163 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
14164 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
14165 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
14166 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
14167 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
14168 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
14169 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
14170 hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
14171 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
14172 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
14173 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
14174 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
14175 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
14176 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
14177 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
14178 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
14179 fix_srcfile_path='`$ECHO "$fix_srcfile_path" | $SED "$delay_single_quote_subst"`'
14180 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
14181 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
14182 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
14183 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
14184 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
14185 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
14186 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
14187 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
14188 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
14189 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
14190 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
14191 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
14192 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
14193 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
14194 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
14195 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
14196 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
14197 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
14198 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
14199 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
14200 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
14201 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
14202 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
14203 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
14204 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
14205 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
14206 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
14207 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
14208 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
14209 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
14211 LTCC='$LTCC'
14212 LTCFLAGS='$LTCFLAGS'
14213 compiler='$compiler_DEFAULT'
14215 # A function that is used when there is no print builtin or printf.
14216 func_fallback_echo ()
14218 eval 'cat <<_LTECHO_EOF
14220 _LTECHO_EOF'
14223 # Quote evaled strings.
14224 for var in SHELL \
14225 ECHO \
14226 SED \
14227 GREP \
14228 EGREP \
14229 FGREP \
14230 LD \
14231 NM \
14232 LN_S \
14233 lt_SP2NL \
14234 lt_NL2SP \
14235 reload_flag \
14236 OBJDUMP \
14237 deplibs_check_method \
14238 file_magic_cmd \
14239 AR \
14240 AR_FLAGS \
14241 STRIP \
14242 RANLIB \
14243 CC \
14244 CFLAGS \
14245 compiler \
14246 lt_cv_sys_global_symbol_pipe \
14247 lt_cv_sys_global_symbol_to_cdecl \
14248 lt_cv_sys_global_symbol_to_c_name_address \
14249 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
14250 lt_prog_compiler_no_builtin_flag \
14251 lt_prog_compiler_wl \
14252 lt_prog_compiler_pic \
14253 lt_prog_compiler_static \
14254 lt_cv_prog_compiler_c_o \
14255 need_locks \
14256 DSYMUTIL \
14257 NMEDIT \
14258 LIPO \
14259 OTOOL \
14260 OTOOL64 \
14261 shrext_cmds \
14262 export_dynamic_flag_spec \
14263 whole_archive_flag_spec \
14264 compiler_needs_object \
14265 with_gnu_ld \
14266 allow_undefined_flag \
14267 no_undefined_flag \
14268 hardcode_libdir_flag_spec \
14269 hardcode_libdir_flag_spec_ld \
14270 hardcode_libdir_separator \
14271 fix_srcfile_path \
14272 exclude_expsyms \
14273 include_expsyms \
14274 file_list_spec \
14275 variables_saved_for_relink \
14276 libname_spec \
14277 library_names_spec \
14278 soname_spec \
14279 install_override_mode \
14280 finish_eval \
14281 old_striplib \
14282 striplib; do
14283 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
14284 *[\\\\\\\`\\"\\\$]*)
14285 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
14288 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
14290 esac
14291 done
14293 # Double-quote double-evaled strings.
14294 for var in reload_cmds \
14295 old_postinstall_cmds \
14296 old_postuninstall_cmds \
14297 old_archive_cmds \
14298 extract_expsyms_cmds \
14299 old_archive_from_new_cmds \
14300 old_archive_from_expsyms_cmds \
14301 archive_cmds \
14302 archive_expsym_cmds \
14303 module_cmds \
14304 module_expsym_cmds \
14305 export_symbols_cmds \
14306 prelink_cmds \
14307 postinstall_cmds \
14308 postuninstall_cmds \
14309 finish_cmds \
14310 sys_lib_search_path_spec \
14311 sys_lib_dlsearch_path_spec; do
14312 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
14313 *[\\\\\\\`\\"\\\$]*)
14314 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
14317 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
14319 esac
14320 done
14322 ac_aux_dir='$ac_aux_dir'
14323 xsi_shell='$xsi_shell'
14324 lt_shell_append='$lt_shell_append'
14326 # See if we are running on zsh, and set the options which allow our
14327 # commands through without removal of \ escapes INIT.
14328 if test -n "\${ZSH_VERSION+set}" ; then
14329 setopt NO_GLOB_SUBST
14333 PACKAGE='$PACKAGE'
14334 VERSION='$VERSION'
14335 TIMESTAMP='$TIMESTAMP'
14336 RM='$RM'
14337 ofile='$ofile'
14341 # Capture the value of obsolete ALL_LINGUAS because we need it to compute
14342 # POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES, CATALOGS. But hide it
14343 # from automake.
14344 eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
14345 # Capture the value of LINGUAS because we need it to compute CATALOGS.
14346 LINGUAS="${LINGUAS-%UNSET%}"
14349 _ACEOF
14351 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14353 # Handling of arguments.
14354 for ac_config_target in $ac_config_targets
14356 case $ac_config_target in
14357 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
14358 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h:config.in" ;;
14359 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
14360 "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
14361 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
14362 "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in:po/Make-in" ;;
14364 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
14365 esac
14366 done
14369 # If the user did not use the arguments to specify the items to instantiate,
14370 # then the envvar interface is used. Set only those that are not.
14371 # We use the long form for the default assignment because of an extremely
14372 # bizarre bug on SunOS 4.1.3.
14373 if $ac_need_defaults; then
14374 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
14375 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
14376 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
14379 # Have a temporary directory for convenience. Make it in the build tree
14380 # simply because there is no reason against having it here, and in addition,
14381 # creating and moving files from /tmp can sometimes cause problems.
14382 # Hook for its removal unless debugging.
14383 # Note that there is a small window in which the directory will not be cleaned:
14384 # after its creation but before its name has been assigned to `$tmp'.
14385 $debug ||
14387 tmp=
14388 trap 'exit_status=$?
14389 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
14391 trap 'as_fn_exit 1' 1 2 13 15
14393 # Create a (secure) tmp directory for tmp files.
14396 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
14397 test -n "$tmp" && test -d "$tmp"
14398 } ||
14400 tmp=./conf$$-$RANDOM
14401 (umask 077 && mkdir "$tmp")
14402 } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
14404 # Set up the scripts for CONFIG_FILES section.
14405 # No need to generate them if there are no CONFIG_FILES.
14406 # This happens for instance with `./config.status config.h'.
14407 if test -n "$CONFIG_FILES"; then
14409 if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then
14410 ac_cs_awk_getline=:
14411 ac_cs_awk_pipe_init=
14412 ac_cs_awk_read_file='
14413 while ((getline aline < (F[key])) > 0)
14414 print(aline)
14415 close(F[key])'
14416 ac_cs_awk_pipe_fini=
14417 else
14418 ac_cs_awk_getline=false
14419 ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\""
14420 ac_cs_awk_read_file='
14421 print "|#_!!_#|"
14422 print "cat " F[key] " &&"
14423 '$ac_cs_awk_pipe_init
14424 # The final `:' finishes the AND list.
14425 ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }'
14427 ac_cr=`echo X | tr X '\015'`
14428 # On cygwin, bash can eat \r inside `` if the user requested igncr.
14429 # But we know of no other shell where ac_cr would be empty at this
14430 # point, so we can use a bashism as a fallback.
14431 if test "x$ac_cr" = x; then
14432 eval ac_cr=\$\'\\r\'
14434 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
14435 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
14436 ac_cs_awk_cr='\r'
14437 else
14438 ac_cs_awk_cr=$ac_cr
14441 echo 'BEGIN {' >"$tmp/subs1.awk" &&
14442 _ACEOF
14444 # Create commands to substitute file output variables.
14446 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
14447 echo 'cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&' &&
14448 echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' &&
14449 echo "_ACAWK" &&
14450 echo "_ACEOF"
14451 } >conf$$files.sh &&
14452 . ./conf$$files.sh ||
14453 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
14454 rm -f conf$$files.sh
14457 echo "cat >conf$$subs.awk <<_ACEOF" &&
14458 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
14459 echo "_ACEOF"
14460 } >conf$$subs.sh ||
14461 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
14462 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
14463 ac_delim='%!_!# '
14464 for ac_last_try in false false false false false :; do
14465 . ./conf$$subs.sh ||
14466 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
14468 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
14469 if test $ac_delim_n = $ac_delim_num; then
14470 break
14471 elif $ac_last_try; then
14472 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
14473 else
14474 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
14476 done
14477 rm -f conf$$subs.sh
14479 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14480 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
14481 _ACEOF
14482 sed -n '
14484 s/^/S["/; s/!.*/"]=/
14487 s/^[^!]*!//
14488 :repl
14489 t repl
14490 s/'"$ac_delim"'$//
14491 t delim
14494 s/\(.\{148\}\).*/\1/
14495 t more1
14496 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
14499 b repl
14500 :more1
14501 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
14504 s/.\{148\}//
14505 t nl
14506 :delim
14508 s/\(.\{148\}\).*/\1/
14509 t more2
14510 s/["\\]/\\&/g; s/^/"/; s/$/"/
14513 :more2
14514 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
14517 s/.\{148\}//
14518 t delim
14519 ' <conf$$subs.awk | sed '
14520 /^[^""]/{
14522 s/\n//
14524 ' >>$CONFIG_STATUS || ac_write_fail=1
14525 rm -f conf$$subs.awk
14526 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14527 _ACAWK
14528 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
14529 for (key in S) S_is_set[key] = 1
14530 FS = "\a"
14531 \$ac_cs_awk_pipe_init
14534 line = $ 0
14535 nfields = split(line, field, "@")
14536 substed = 0
14537 len = length(field[1])
14538 for (i = 2; i < nfields; i++) {
14539 key = field[i]
14540 keylen = length(key)
14541 if (S_is_set[key]) {
14542 value = S[key]
14543 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
14544 len += length(value) + length(field[++i])
14545 substed = 1
14546 } else
14547 len += 1 + keylen
14549 if (nfields == 3 && !substed) {
14550 key = field[2]
14551 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) {
14552 \$ac_cs_awk_read_file
14553 next
14556 print line
14558 \$ac_cs_awk_pipe_fini
14559 _ACAWK
14560 _ACEOF
14561 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14562 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
14563 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
14564 else
14566 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
14567 || as_fn_error "could not setup config files machinery" "$LINENO" 5
14568 _ACEOF
14570 # VPATH may cause trouble with some makes, so we remove $(srcdir),
14571 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
14572 # trailing colons and then remove the whole line if VPATH becomes empty
14573 # (actually we leave an empty line to preserve line numbers).
14574 if test "x$srcdir" = x.; then
14575 ac_vpsub='/^[ ]*VPATH[ ]*=/{
14576 s/:*\$(srcdir):*/:/
14577 s/:*\${srcdir}:*/:/
14578 s/:*@srcdir@:*/:/
14579 s/^\([^=]*=[ ]*\):*/\1/
14580 s/:*$//
14581 s/^[^=]*=[ ]*$//
14585 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14586 fi # test -n "$CONFIG_FILES"
14588 # Set up the scripts for CONFIG_HEADERS section.
14589 # No need to generate them if there are no CONFIG_HEADERS.
14590 # This happens for instance with `./config.status Makefile'.
14591 if test -n "$CONFIG_HEADERS"; then
14592 cat >"$tmp/defines.awk" <<\_ACAWK ||
14593 BEGIN {
14594 _ACEOF
14596 # Transform confdefs.h into an awk script `defines.awk', embedded as
14597 # here-document in config.status, that substitutes the proper values into
14598 # config.h.in to produce config.h.
14600 # Create a delimiter string that does not exist in confdefs.h, to ease
14601 # handling of long lines.
14602 ac_delim='%!_!# '
14603 for ac_last_try in false false :; do
14604 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
14605 if test -z "$ac_t"; then
14606 break
14607 elif $ac_last_try; then
14608 as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
14609 else
14610 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
14612 done
14614 # For the awk script, D is an array of macro values keyed by name,
14615 # likewise P contains macro parameters if any. Preserve backslash
14616 # newline sequences.
14618 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
14619 sed -n '
14620 s/.\{148\}/&'"$ac_delim"'/g
14621 t rset
14622 :rset
14623 s/^[ ]*#[ ]*define[ ][ ]*/ /
14624 t def
14626 :def
14627 s/\\$//
14628 t bsnl
14629 s/["\\]/\\&/g
14630 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
14631 D["\1"]=" \3"/p
14632 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
14634 :bsnl
14635 s/["\\]/\\&/g
14636 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
14637 D["\1"]=" \3\\\\\\n"\\/p
14638 t cont
14639 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
14640 t cont
14642 :cont
14644 s/.\{148\}/&'"$ac_delim"'/g
14645 t clear
14646 :clear
14647 s/\\$//
14648 t bsnlc
14649 s/["\\]/\\&/g; s/^/"/; s/$/"/p
14651 :bsnlc
14652 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
14653 b cont
14654 ' <confdefs.h | sed '
14655 s/'"$ac_delim"'/"\\\
14656 "/g' >>$CONFIG_STATUS || ac_write_fail=1
14658 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14659 for (key in D) D_is_set[key] = 1
14660 FS = "\a"
14662 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
14663 line = \$ 0
14664 split(line, arg, " ")
14665 if (arg[1] == "#") {
14666 defundef = arg[2]
14667 mac1 = arg[3]
14668 } else {
14669 defundef = substr(arg[1], 2)
14670 mac1 = arg[2]
14672 split(mac1, mac2, "(") #)
14673 macro = mac2[1]
14674 prefix = substr(line, 1, index(line, defundef) - 1)
14675 if (D_is_set[macro]) {
14676 # Preserve the white space surrounding the "#".
14677 print prefix "define", macro P[macro] D[macro]
14678 next
14679 } else {
14680 # Replace #undef with comments. This is necessary, for example,
14681 # in the case of _POSIX_SOURCE, which is predefined and required
14682 # on some systems where configure will not decide to define it.
14683 if (defundef == "undef") {
14684 print "/*", prefix defundef, macro, "*/"
14685 next
14689 { print }
14690 _ACAWK
14691 _ACEOF
14692 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14693 as_fn_error "could not setup config headers machinery" "$LINENO" 5
14694 fi # test -n "$CONFIG_HEADERS"
14697 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
14698 shift
14699 for ac_tag
14701 case $ac_tag in
14702 :[FHLC]) ac_mode=$ac_tag; continue;;
14703 esac
14704 case $ac_mode$ac_tag in
14705 :[FHL]*:*);;
14706 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
14707 :[FH]-) ac_tag=-:-;;
14708 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
14709 esac
14710 ac_save_IFS=$IFS
14711 IFS=:
14712 set x $ac_tag
14713 IFS=$ac_save_IFS
14714 shift
14715 ac_file=$1
14716 shift
14718 case $ac_mode in
14719 :L) ac_source=$1;;
14720 :[FH])
14721 ac_file_inputs=
14722 for ac_f
14724 case $ac_f in
14725 -) ac_f="$tmp/stdin";;
14726 *) # Look for the file first in the build tree, then in the source tree
14727 # (if the path is not absolute). The absolute path cannot be DOS-style,
14728 # because $ac_f cannot contain `:'.
14729 test -f "$ac_f" ||
14730 case $ac_f in
14731 [\\/$]*) false;;
14732 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
14733 esac ||
14734 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
14735 esac
14736 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
14737 as_fn_append ac_file_inputs " '$ac_f'"
14738 done
14740 # Let's still pretend it is `configure' which instantiates (i.e., don't
14741 # use $as_me), people would be surprised to read:
14742 # /* config.h. Generated by config.status. */
14743 configure_input='Generated from '`
14744 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
14745 `' by configure.'
14746 if test x"$ac_file" != x-; then
14747 configure_input="$ac_file. $configure_input"
14748 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
14749 $as_echo "$as_me: creating $ac_file" >&6;}
14751 # Neutralize special characters interpreted by sed in replacement strings.
14752 case $configure_input in #(
14753 *\&* | *\|* | *\\* )
14754 ac_sed_conf_input=`$as_echo "$configure_input" |
14755 sed 's/[\\\\&|]/\\\\&/g'`;; #(
14756 *) ac_sed_conf_input=$configure_input;;
14757 esac
14759 case $ac_tag in
14760 *:-:* | *:-) cat >"$tmp/stdin" \
14761 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
14762 esac
14764 esac
14766 ac_dir=`$as_dirname -- "$ac_file" ||
14767 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14768 X"$ac_file" : 'X\(//\)[^/]' \| \
14769 X"$ac_file" : 'X\(//\)$' \| \
14770 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
14771 $as_echo X"$ac_file" |
14772 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14773 s//\1/
14776 /^X\(\/\/\)[^/].*/{
14777 s//\1/
14780 /^X\(\/\/\)$/{
14781 s//\1/
14784 /^X\(\/\).*/{
14785 s//\1/
14788 s/.*/./; q'`
14789 as_dir="$ac_dir"; as_fn_mkdir_p
14790 ac_builddir=.
14792 case "$ac_dir" in
14793 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
14795 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
14796 # A ".." for each directory in $ac_dir_suffix.
14797 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
14798 case $ac_top_builddir_sub in
14799 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
14800 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
14801 esac ;;
14802 esac
14803 ac_abs_top_builddir=$ac_pwd
14804 ac_abs_builddir=$ac_pwd$ac_dir_suffix
14805 # for backward compatibility:
14806 ac_top_builddir=$ac_top_build_prefix
14808 case $srcdir in
14809 .) # We are building in place.
14810 ac_srcdir=.
14811 ac_top_srcdir=$ac_top_builddir_sub
14812 ac_abs_top_srcdir=$ac_pwd ;;
14813 [\\/]* | ?:[\\/]* ) # Absolute name.
14814 ac_srcdir=$srcdir$ac_dir_suffix;
14815 ac_top_srcdir=$srcdir
14816 ac_abs_top_srcdir=$srcdir ;;
14817 *) # Relative name.
14818 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
14819 ac_top_srcdir=$ac_top_build_prefix$srcdir
14820 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
14821 esac
14822 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
14825 case $ac_mode in
14828 # CONFIG_FILE
14831 case $INSTALL in
14832 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
14833 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
14834 esac
14835 ac_MKDIR_P=$MKDIR_P
14836 case $MKDIR_P in
14837 [\\/$]* | ?:[\\/]* ) ;;
14838 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
14839 esac
14840 _ACEOF
14842 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14843 # If the template does not know about datarootdir, expand it.
14844 # FIXME: This hack should be removed a few years after 2.60.
14845 ac_datarootdir_hack=; ac_datarootdir_seen=
14846 ac_sed_dataroot='
14847 /datarootdir/ {
14851 /@datadir@/p
14852 /@docdir@/p
14853 /@infodir@/p
14854 /@localedir@/p
14855 /@mandir@/p'
14856 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
14857 *datarootdir*) ac_datarootdir_seen=yes;;
14858 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
14859 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
14860 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
14861 _ACEOF
14862 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14863 ac_datarootdir_hack='
14864 s&@datadir@&$datadir&g
14865 s&@docdir@&$docdir&g
14866 s&@infodir@&$infodir&g
14867 s&@localedir@&$localedir&g
14868 s&@mandir@&$mandir&g
14869 s&\\\${datarootdir}&$datarootdir&g' ;;
14870 esac
14871 _ACEOF
14873 # Neutralize VPATH when `$srcdir' = `.'.
14874 # Shell code in configure.ac might set extrasub.
14875 # FIXME: do we really want to maintain this feature?
14876 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14877 ac_sed_extra="$ac_vpsub
14878 $extrasub
14879 _ACEOF
14880 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14882 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
14883 s|@configure_input@|$ac_sed_conf_input|;t t
14884 s&@top_builddir@&$ac_top_builddir_sub&;t t
14885 s&@top_build_prefix@&$ac_top_build_prefix&;t t
14886 s&@srcdir@&$ac_srcdir&;t t
14887 s&@abs_srcdir@&$ac_abs_srcdir&;t t
14888 s&@top_srcdir@&$ac_top_srcdir&;t t
14889 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
14890 s&@builddir@&$ac_builddir&;t t
14891 s&@abs_builddir@&$ac_abs_builddir&;t t
14892 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
14893 s&@INSTALL@&$ac_INSTALL&;t t
14894 s&@MKDIR_P@&$ac_MKDIR_P&;t t
14895 $ac_datarootdir_hack
14897 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
14898 if $ac_cs_awk_getline; then
14899 $AWK -f "$tmp/subs.awk"
14900 else
14901 $AWK -f "$tmp/subs.awk" | $SHELL
14902 fi >$tmp/out \
14903 || as_fn_error "could not create $ac_file" "$LINENO" 5
14905 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
14906 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
14907 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
14908 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
14909 which seems to be undefined. Please make sure it is defined." >&5
14910 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
14911 which seems to be undefined. Please make sure it is defined." >&2;}
14913 rm -f "$tmp/stdin"
14914 case $ac_file in
14915 -) cat "$tmp/out" && rm -f "$tmp/out";;
14916 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
14917 esac \
14918 || as_fn_error "could not create $ac_file" "$LINENO" 5
14922 # CONFIG_HEADER
14924 if test x"$ac_file" != x-; then
14926 $as_echo "/* $configure_input */" \
14927 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
14928 } >"$tmp/config.h" \
14929 || as_fn_error "could not create $ac_file" "$LINENO" 5
14930 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
14931 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
14932 $as_echo "$as_me: $ac_file is unchanged" >&6;}
14933 else
14934 rm -f "$ac_file"
14935 mv "$tmp/config.h" "$ac_file" \
14936 || as_fn_error "could not create $ac_file" "$LINENO" 5
14938 else
14939 $as_echo "/* $configure_input */" \
14940 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
14941 || as_fn_error "could not create -" "$LINENO" 5
14943 # Compute "$ac_file"'s index in $config_headers.
14944 _am_arg="$ac_file"
14945 _am_stamp_count=1
14946 for _am_header in $config_headers :; do
14947 case $_am_header in
14948 $_am_arg | $_am_arg:* )
14949 break ;;
14951 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
14952 esac
14953 done
14954 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
14955 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14956 X"$_am_arg" : 'X\(//\)[^/]' \| \
14957 X"$_am_arg" : 'X\(//\)$' \| \
14958 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
14959 $as_echo X"$_am_arg" |
14960 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14961 s//\1/
14964 /^X\(\/\/\)[^/].*/{
14965 s//\1/
14968 /^X\(\/\/\)$/{
14969 s//\1/
14972 /^X\(\/\).*/{
14973 s//\1/
14976 s/.*/./; q'`/stamp-h$_am_stamp_count
14979 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
14980 $as_echo "$as_me: executing $ac_file commands" >&6;}
14982 esac
14985 case $ac_file$ac_mode in
14986 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
14987 # Autoconf 2.62 quotes --file arguments for eval, but not when files
14988 # are listed without --file. Let's play safe and only enable the eval
14989 # if we detect the quoting.
14990 case $CONFIG_FILES in
14991 *\'*) eval set x "$CONFIG_FILES" ;;
14992 *) set x $CONFIG_FILES ;;
14993 esac
14994 shift
14995 for mf
14997 # Strip MF so we end up with the name of the file.
14998 mf=`echo "$mf" | sed -e 's/:.*$//'`
14999 # Check whether this is an Automake generated Makefile or not.
15000 # We used to match only the files named `Makefile.in', but
15001 # some people rename them; so instead we look at the file content.
15002 # Grep'ing the first line is not enough: some people post-process
15003 # each Makefile.in and add a new line on top of each file to say so.
15004 # Grep'ing the whole file is not good either: AIX grep has a line
15005 # limit of 2048, but all sed's we know have understand at least 4000.
15006 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
15007 dirpart=`$as_dirname -- "$mf" ||
15008 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15009 X"$mf" : 'X\(//\)[^/]' \| \
15010 X"$mf" : 'X\(//\)$' \| \
15011 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
15012 $as_echo X"$mf" |
15013 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15014 s//\1/
15017 /^X\(\/\/\)[^/].*/{
15018 s//\1/
15021 /^X\(\/\/\)$/{
15022 s//\1/
15025 /^X\(\/\).*/{
15026 s//\1/
15029 s/.*/./; q'`
15030 else
15031 continue
15033 # Extract the definition of DEPDIR, am__include, and am__quote
15034 # from the Makefile without running `make'.
15035 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
15036 test -z "$DEPDIR" && continue
15037 am__include=`sed -n 's/^am__include = //p' < "$mf"`
15038 test -z "am__include" && continue
15039 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
15040 # When using ansi2knr, U may be empty or an underscore; expand it
15041 U=`sed -n 's/^U = //p' < "$mf"`
15042 # Find all dependency output files, they are included files with
15043 # $(DEPDIR) in their names. We invoke sed twice because it is the
15044 # simplest approach to changing $(DEPDIR) to its actual value in the
15045 # expansion.
15046 for file in `sed -n "
15047 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
15048 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
15049 # Make sure the directory exists.
15050 test -f "$dirpart/$file" && continue
15051 fdir=`$as_dirname -- "$file" ||
15052 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15053 X"$file" : 'X\(//\)[^/]' \| \
15054 X"$file" : 'X\(//\)$' \| \
15055 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
15056 $as_echo X"$file" |
15057 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15058 s//\1/
15061 /^X\(\/\/\)[^/].*/{
15062 s//\1/
15065 /^X\(\/\/\)$/{
15066 s//\1/
15069 /^X\(\/\).*/{
15070 s//\1/
15073 s/.*/./; q'`
15074 as_dir=$dirpart/$fdir; as_fn_mkdir_p
15075 # echo "creating $dirpart/$file"
15076 echo '# dummy' > "$dirpart/$file"
15077 done
15078 done
15081 "libtool":C)
15083 # See if we are running on zsh, and set the options which allow our
15084 # commands through without removal of \ escapes.
15085 if test -n "${ZSH_VERSION+set}" ; then
15086 setopt NO_GLOB_SUBST
15089 cfgfile="${ofile}T"
15090 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
15091 $RM "$cfgfile"
15093 cat <<_LT_EOF >> "$cfgfile"
15094 #! $SHELL
15096 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
15097 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
15098 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
15099 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
15101 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
15102 # 2006, 2007, 2008, 2009 Free Software Foundation, Inc.
15103 # Written by Gordon Matzigkeit, 1996
15105 # This file is part of GNU Libtool.
15107 # GNU Libtool is free software; you can redistribute it and/or
15108 # modify it under the terms of the GNU General Public License as
15109 # published by the Free Software Foundation; either version 2 of
15110 # the License, or (at your option) any later version.
15112 # As a special exception to the GNU General Public License,
15113 # if you distribute this file as part of a program or library that
15114 # is built using GNU Libtool, you may include this file under the
15115 # same distribution terms that you use for the rest of that program.
15117 # GNU Libtool is distributed in the hope that it will be useful,
15118 # but WITHOUT ANY WARRANTY; without even the implied warranty of
15119 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15120 # GNU General Public License for more details.
15122 # You should have received a copy of the GNU General Public License
15123 # along with GNU Libtool; see the file COPYING. If not, a copy
15124 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
15125 # obtained by writing to the Free Software Foundation, Inc.,
15126 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
15129 # The names of the tagged configurations supported by this script.
15130 available_tags=""
15132 # ### BEGIN LIBTOOL CONFIG
15134 # Which release of libtool.m4 was used?
15135 macro_version=$macro_version
15136 macro_revision=$macro_revision
15138 # Whether or not to build shared libraries.
15139 build_libtool_libs=$enable_shared
15141 # Whether or not to build static libraries.
15142 build_old_libs=$enable_static
15144 # What type of objects to build.
15145 pic_mode=$pic_mode
15147 # Whether or not to optimize for fast installation.
15148 fast_install=$enable_fast_install
15150 # Shell to use when invoking shell scripts.
15151 SHELL=$lt_SHELL
15153 # An echo program that protects backslashes.
15154 ECHO=$lt_ECHO
15156 # The host system.
15157 host_alias=$host_alias
15158 host=$host
15159 host_os=$host_os
15161 # The build system.
15162 build_alias=$build_alias
15163 build=$build
15164 build_os=$build_os
15166 # A sed program that does not truncate output.
15167 SED=$lt_SED
15169 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
15170 Xsed="\$SED -e 1s/^X//"
15172 # A grep program that handles long lines.
15173 GREP=$lt_GREP
15175 # An ERE matcher.
15176 EGREP=$lt_EGREP
15178 # A literal string matcher.
15179 FGREP=$lt_FGREP
15181 # A BSD- or MS-compatible name lister.
15182 NM=$lt_NM
15184 # Whether we need soft or hard links.
15185 LN_S=$lt_LN_S
15187 # What is the maximum length of a command?
15188 max_cmd_len=$max_cmd_len
15190 # Object file suffix (normally "o").
15191 objext=$ac_objext
15193 # Executable file suffix (normally "").
15194 exeext=$exeext
15196 # whether the shell understands "unset".
15197 lt_unset=$lt_unset
15199 # turn spaces into newlines.
15200 SP2NL=$lt_lt_SP2NL
15202 # turn newlines into spaces.
15203 NL2SP=$lt_lt_NL2SP
15205 # An object symbol dumper.
15206 OBJDUMP=$lt_OBJDUMP
15208 # Method to check whether dependent libraries are shared objects.
15209 deplibs_check_method=$lt_deplibs_check_method
15211 # Command to use when deplibs_check_method == "file_magic".
15212 file_magic_cmd=$lt_file_magic_cmd
15214 # The archiver.
15215 AR=$lt_AR
15216 AR_FLAGS=$lt_AR_FLAGS
15218 # A symbol stripping program.
15219 STRIP=$lt_STRIP
15221 # Commands used to install an old-style archive.
15222 RANLIB=$lt_RANLIB
15223 old_postinstall_cmds=$lt_old_postinstall_cmds
15224 old_postuninstall_cmds=$lt_old_postuninstall_cmds
15226 # Whether to use a lock for old archive extraction.
15227 lock_old_archive_extraction=$lock_old_archive_extraction
15229 # A C compiler.
15230 LTCC=$lt_CC
15232 # LTCC compiler flags.
15233 LTCFLAGS=$lt_CFLAGS
15235 # Take the output of nm and produce a listing of raw symbols and C names.
15236 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
15238 # Transform the output of nm in a proper C declaration.
15239 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
15241 # Transform the output of nm in a C name address pair.
15242 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
15244 # Transform the output of nm in a C name address pair when lib prefix is needed.
15245 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
15247 # The name of the directory that contains temporary libtool files.
15248 objdir=$objdir
15250 # Used to examine libraries when file_magic_cmd begins with "file".
15251 MAGIC_CMD=$MAGIC_CMD
15253 # Must we lock files when doing compilation?
15254 need_locks=$lt_need_locks
15256 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
15257 DSYMUTIL=$lt_DSYMUTIL
15259 # Tool to change global to local symbols on Mac OS X.
15260 NMEDIT=$lt_NMEDIT
15262 # Tool to manipulate fat objects and archives on Mac OS X.
15263 LIPO=$lt_LIPO
15265 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
15266 OTOOL=$lt_OTOOL
15268 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
15269 OTOOL64=$lt_OTOOL64
15271 # Old archive suffix (normally "a").
15272 libext=$libext
15274 # Shared library suffix (normally ".so").
15275 shrext_cmds=$lt_shrext_cmds
15277 # The commands to extract the exported symbol list from a shared archive.
15278 extract_expsyms_cmds=$lt_extract_expsyms_cmds
15280 # Variables whose values should be saved in libtool wrapper scripts and
15281 # restored at link time.
15282 variables_saved_for_relink=$lt_variables_saved_for_relink
15284 # Do we need the "lib" prefix for modules?
15285 need_lib_prefix=$need_lib_prefix
15287 # Do we need a version for libraries?
15288 need_version=$need_version
15290 # Library versioning type.
15291 version_type=$version_type
15293 # Shared library runtime path variable.
15294 runpath_var=$runpath_var
15296 # Shared library path variable.
15297 shlibpath_var=$shlibpath_var
15299 # Is shlibpath searched before the hard-coded library search path?
15300 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
15302 # Format of library name prefix.
15303 libname_spec=$lt_libname_spec
15305 # List of archive names. First name is the real one, the rest are links.
15306 # The last name is the one that the linker finds with -lNAME
15307 library_names_spec=$lt_library_names_spec
15309 # The coded name of the library, if different from the real name.
15310 soname_spec=$lt_soname_spec
15312 # Permission mode override for installation of shared libraries.
15313 install_override_mode=$lt_install_override_mode
15315 # Command to use after installation of a shared archive.
15316 postinstall_cmds=$lt_postinstall_cmds
15318 # Command to use after uninstallation of a shared archive.
15319 postuninstall_cmds=$lt_postuninstall_cmds
15321 # Commands used to finish a libtool library installation in a directory.
15322 finish_cmds=$lt_finish_cmds
15324 # As "finish_cmds", except a single script fragment to be evaled but
15325 # not shown.
15326 finish_eval=$lt_finish_eval
15328 # Whether we should hardcode library paths into libraries.
15329 hardcode_into_libs=$hardcode_into_libs
15331 # Compile-time system search path for libraries.
15332 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
15334 # Run-time system search path for libraries.
15335 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
15337 # Whether dlopen is supported.
15338 dlopen_support=$enable_dlopen
15340 # Whether dlopen of programs is supported.
15341 dlopen_self=$enable_dlopen_self
15343 # Whether dlopen of statically linked programs is supported.
15344 dlopen_self_static=$enable_dlopen_self_static
15346 # Commands to strip libraries.
15347 old_striplib=$lt_old_striplib
15348 striplib=$lt_striplib
15351 # The linker used to build libraries.
15352 LD=$lt_LD
15354 # How to create reloadable object files.
15355 reload_flag=$lt_reload_flag
15356 reload_cmds=$lt_reload_cmds
15358 # Commands used to build an old-style archive.
15359 old_archive_cmds=$lt_old_archive_cmds
15361 # A language specific compiler.
15362 CC=$lt_compiler
15364 # Is the compiler the GNU compiler?
15365 with_gcc=$GCC
15367 # Compiler flag to turn off builtin functions.
15368 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
15370 # How to pass a linker flag through the compiler.
15371 wl=$lt_lt_prog_compiler_wl
15373 # Additional compiler flags for building library objects.
15374 pic_flag=$lt_lt_prog_compiler_pic
15376 # Compiler flag to prevent dynamic linking.
15377 link_static_flag=$lt_lt_prog_compiler_static
15379 # Does compiler simultaneously support -c and -o options?
15380 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
15382 # Whether or not to add -lc for building shared libraries.
15383 build_libtool_need_lc=$archive_cmds_need_lc
15385 # Whether or not to disallow shared libs when runtime libs are static.
15386 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
15388 # Compiler flag to allow reflexive dlopens.
15389 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
15391 # Compiler flag to generate shared objects directly from archives.
15392 whole_archive_flag_spec=$lt_whole_archive_flag_spec
15394 # Whether the compiler copes with passing no objects directly.
15395 compiler_needs_object=$lt_compiler_needs_object
15397 # Create an old-style archive from a shared archive.
15398 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
15400 # Create a temporary old-style archive to link instead of a shared archive.
15401 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
15403 # Commands used to build a shared archive.
15404 archive_cmds=$lt_archive_cmds
15405 archive_expsym_cmds=$lt_archive_expsym_cmds
15407 # Commands used to build a loadable module if different from building
15408 # a shared archive.
15409 module_cmds=$lt_module_cmds
15410 module_expsym_cmds=$lt_module_expsym_cmds
15412 # Whether we are building with GNU ld or not.
15413 with_gnu_ld=$lt_with_gnu_ld
15415 # Flag that allows shared libraries with undefined symbols to be built.
15416 allow_undefined_flag=$lt_allow_undefined_flag
15418 # Flag that enforces no undefined symbols.
15419 no_undefined_flag=$lt_no_undefined_flag
15421 # Flag to hardcode \$libdir into a binary during linking.
15422 # This must work even if \$libdir does not exist
15423 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
15425 # If ld is used when linking, flag to hardcode \$libdir into a binary
15426 # during linking. This must work even if \$libdir does not exist.
15427 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
15429 # Whether we need a single "-rpath" flag with a separated argument.
15430 hardcode_libdir_separator=$lt_hardcode_libdir_separator
15432 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
15433 # DIR into the resulting binary.
15434 hardcode_direct=$hardcode_direct
15436 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
15437 # DIR into the resulting binary and the resulting library dependency is
15438 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
15439 # library is relocated.
15440 hardcode_direct_absolute=$hardcode_direct_absolute
15442 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
15443 # into the resulting binary.
15444 hardcode_minus_L=$hardcode_minus_L
15446 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
15447 # into the resulting binary.
15448 hardcode_shlibpath_var=$hardcode_shlibpath_var
15450 # Set to "yes" if building a shared library automatically hardcodes DIR
15451 # into the library and all subsequent libraries and executables linked
15452 # against it.
15453 hardcode_automatic=$hardcode_automatic
15455 # Set to yes if linker adds runtime paths of dependent libraries
15456 # to runtime path list.
15457 inherit_rpath=$inherit_rpath
15459 # Whether libtool must link a program against all its dependency libraries.
15460 link_all_deplibs=$link_all_deplibs
15462 # Fix the shell variable \$srcfile for the compiler.
15463 fix_srcfile_path=$lt_fix_srcfile_path
15465 # Set to "yes" if exported symbols are required.
15466 always_export_symbols=$always_export_symbols
15468 # The commands to list exported symbols.
15469 export_symbols_cmds=$lt_export_symbols_cmds
15471 # Symbols that should not be listed in the preloaded symbols.
15472 exclude_expsyms=$lt_exclude_expsyms
15474 # Symbols that must always be exported.
15475 include_expsyms=$lt_include_expsyms
15477 # Commands necessary for linking programs (against libraries) with templates.
15478 prelink_cmds=$lt_prelink_cmds
15480 # Specify filename containing input files.
15481 file_list_spec=$lt_file_list_spec
15483 # How to hardcode a shared library path into an executable.
15484 hardcode_action=$hardcode_action
15486 # ### END LIBTOOL CONFIG
15488 _LT_EOF
15490 case $host_os in
15491 aix3*)
15492 cat <<\_LT_EOF >> "$cfgfile"
15493 # AIX sometimes has problems with the GCC collect2 program. For some
15494 # reason, if we set the COLLECT_NAMES environment variable, the problems
15495 # vanish in a puff of smoke.
15496 if test "X${COLLECT_NAMES+set}" != Xset; then
15497 COLLECT_NAMES=
15498 export COLLECT_NAMES
15500 _LT_EOF
15502 esac
15505 ltmain="$ac_aux_dir/ltmain.sh"
15508 # We use sed instead of cat because bash on DJGPP gets confused if
15509 # if finds mixed CR/LF and LF-only lines. Since sed operates in
15510 # text mode, it properly converts lines to CR/LF. This bash problem
15511 # is reportedly fixed, but why not run on old versions too?
15512 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
15513 || (rm -f "$cfgfile"; exit 1)
15515 case $xsi_shell in
15516 yes)
15517 cat << \_LT_EOF >> "$cfgfile"
15519 # func_dirname file append nondir_replacement
15520 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
15521 # otherwise set result to NONDIR_REPLACEMENT.
15522 func_dirname ()
15524 case ${1} in
15525 */*) func_dirname_result="${1%/*}${2}" ;;
15526 * ) func_dirname_result="${3}" ;;
15527 esac
15530 # func_basename file
15531 func_basename ()
15533 func_basename_result="${1##*/}"
15536 # func_dirname_and_basename file append nondir_replacement
15537 # perform func_basename and func_dirname in a single function
15538 # call:
15539 # dirname: Compute the dirname of FILE. If nonempty,
15540 # add APPEND to the result, otherwise set result
15541 # to NONDIR_REPLACEMENT.
15542 # value returned in "$func_dirname_result"
15543 # basename: Compute filename of FILE.
15544 # value retuned in "$func_basename_result"
15545 # Implementation must be kept synchronized with func_dirname
15546 # and func_basename. For efficiency, we do not delegate to
15547 # those functions but instead duplicate the functionality here.
15548 func_dirname_and_basename ()
15550 case ${1} in
15551 */*) func_dirname_result="${1%/*}${2}" ;;
15552 * ) func_dirname_result="${3}" ;;
15553 esac
15554 func_basename_result="${1##*/}"
15557 # func_stripname prefix suffix name
15558 # strip PREFIX and SUFFIX off of NAME.
15559 # PREFIX and SUFFIX must not contain globbing or regex special
15560 # characters, hashes, percent signs, but SUFFIX may contain a leading
15561 # dot (in which case that matches only a dot).
15562 func_stripname ()
15564 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
15565 # positional parameters, so assign one to ordinary parameter first.
15566 func_stripname_result=${3}
15567 func_stripname_result=${func_stripname_result#"${1}"}
15568 func_stripname_result=${func_stripname_result%"${2}"}
15571 # func_opt_split
15572 func_opt_split ()
15574 func_opt_split_opt=${1%%=*}
15575 func_opt_split_arg=${1#*=}
15578 # func_lo2o object
15579 func_lo2o ()
15581 case ${1} in
15582 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
15583 *) func_lo2o_result=${1} ;;
15584 esac
15587 # func_xform libobj-or-source
15588 func_xform ()
15590 func_xform_result=${1%.*}.lo
15593 # func_arith arithmetic-term...
15594 func_arith ()
15596 func_arith_result=$(( $* ))
15599 # func_len string
15600 # STRING may not start with a hyphen.
15601 func_len ()
15603 func_len_result=${#1}
15606 _LT_EOF
15608 *) # Bourne compatible functions.
15609 cat << \_LT_EOF >> "$cfgfile"
15611 # func_dirname file append nondir_replacement
15612 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
15613 # otherwise set result to NONDIR_REPLACEMENT.
15614 func_dirname ()
15616 # Extract subdirectory from the argument.
15617 func_dirname_result=`$ECHO "${1}" | $SED "$dirname"`
15618 if test "X$func_dirname_result" = "X${1}"; then
15619 func_dirname_result="${3}"
15620 else
15621 func_dirname_result="$func_dirname_result${2}"
15625 # func_basename file
15626 func_basename ()
15628 func_basename_result=`$ECHO "${1}" | $SED "$basename"`
15632 # func_stripname prefix suffix name
15633 # strip PREFIX and SUFFIX off of NAME.
15634 # PREFIX and SUFFIX must not contain globbing or regex special
15635 # characters, hashes, percent signs, but SUFFIX may contain a leading
15636 # dot (in which case that matches only a dot).
15637 # func_strip_suffix prefix name
15638 func_stripname ()
15640 case ${2} in
15641 .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
15642 *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
15643 esac
15646 # sed scripts:
15647 my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
15648 my_sed_long_arg='1s/^-[^=]*=//'
15650 # func_opt_split
15651 func_opt_split ()
15653 func_opt_split_opt=`$ECHO "${1}" | $SED "$my_sed_long_opt"`
15654 func_opt_split_arg=`$ECHO "${1}" | $SED "$my_sed_long_arg"`
15657 # func_lo2o object
15658 func_lo2o ()
15660 func_lo2o_result=`$ECHO "${1}" | $SED "$lo2o"`
15663 # func_xform libobj-or-source
15664 func_xform ()
15666 func_xform_result=`$ECHO "${1}" | $SED 's/\.[^.]*$/.lo/'`
15669 # func_arith arithmetic-term...
15670 func_arith ()
15672 func_arith_result=`expr "$@"`
15675 # func_len string
15676 # STRING may not start with a hyphen.
15677 func_len ()
15679 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
15682 _LT_EOF
15683 esac
15685 case $lt_shell_append in
15686 yes)
15687 cat << \_LT_EOF >> "$cfgfile"
15689 # func_append var value
15690 # Append VALUE to the end of shell variable VAR.
15691 func_append ()
15693 eval "$1+=\$2"
15695 _LT_EOF
15698 cat << \_LT_EOF >> "$cfgfile"
15700 # func_append var value
15701 # Append VALUE to the end of shell variable VAR.
15702 func_append ()
15704 eval "$1=\$$1\$2"
15707 _LT_EOF
15709 esac
15712 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
15713 || (rm -f "$cfgfile"; exit 1)
15715 mv -f "$cfgfile" "$ofile" ||
15716 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
15717 chmod +x "$ofile"
15720 "default-1":C)
15721 for ac_file in $CONFIG_FILES; do
15722 # Support "outfile[:infile[:infile...]]"
15723 case "$ac_file" in
15724 *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
15725 esac
15726 # PO directories have a Makefile.in generated from Makefile.in.in.
15727 case "$ac_file" in */Makefile.in)
15728 # Adjust a relative srcdir.
15729 ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
15730 ac_dir_suffix=/`echo "$ac_dir"|sed 's%^\./%%'`
15731 ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
15732 # In autoconf-2.13 it is called $ac_given_srcdir.
15733 # In autoconf-2.50 it is called $srcdir.
15734 test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
15735 case "$ac_given_srcdir" in
15736 .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
15737 /*) top_srcdir="$ac_given_srcdir" ;;
15738 *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
15739 esac
15740 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
15741 rm -f "$ac_dir/POTFILES"
15742 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
15743 cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
15744 POMAKEFILEDEPS="POTFILES.in"
15745 # ALL_LINGUAS, POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES depend
15746 # on $ac_dir but don't depend on user-specified configuration
15747 # parameters.
15748 if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
15749 # The LINGUAS file contains the set of available languages.
15750 if test -n "$OBSOLETE_ALL_LINGUAS"; then
15751 test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
15753 ALL_LINGUAS_=`sed -e "/^#/d" "$ac_given_srcdir/$ac_dir/LINGUAS"`
15754 # Hide the ALL_LINGUAS assigment from automake.
15755 eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
15756 POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
15757 else
15758 # The set of available languages was given in configure.in.
15759 eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
15761 case "$ac_given_srcdir" in
15762 .) srcdirpre= ;;
15763 *) srcdirpre='$(srcdir)/' ;;
15764 esac
15765 POFILES=
15766 GMOFILES=
15767 UPDATEPOFILES=
15768 DUMMYPOFILES=
15769 for lang in $ALL_LINGUAS; do
15770 POFILES="$POFILES $srcdirpre$lang.po"
15771 GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
15772 UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
15773 DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
15774 done
15775 # CATALOGS depends on both $ac_dir and the user's LINGUAS
15776 # environment variable.
15777 INST_LINGUAS=
15778 if test -n "$ALL_LINGUAS"; then
15779 for presentlang in $ALL_LINGUAS; do
15780 useit=no
15781 if test "%UNSET%" != "$LINGUAS"; then
15782 desiredlanguages="$LINGUAS"
15783 else
15784 desiredlanguages="$ALL_LINGUAS"
15786 for desiredlang in $desiredlanguages; do
15787 # Use the presentlang catalog if desiredlang is
15788 # a. equal to presentlang, or
15789 # b. a variant of presentlang (because in this case,
15790 # presentlang can be used as a fallback for messages
15791 # which are not translated in the desiredlang catalog).
15792 case "$desiredlang" in
15793 "$presentlang"*) useit=yes;;
15794 esac
15795 done
15796 if test $useit = yes; then
15797 INST_LINGUAS="$INST_LINGUAS $presentlang"
15799 done
15801 CATALOGS=
15802 if test -n "$INST_LINGUAS"; then
15803 for lang in $INST_LINGUAS; do
15804 CATALOGS="$CATALOGS $lang.gmo"
15805 done
15807 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
15808 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"
15809 for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
15810 if test -f "$f"; then
15811 case "$f" in
15812 *.orig | *.bak | *~) ;;
15813 *) cat "$f" >> "$ac_dir/Makefile" ;;
15814 esac
15816 done
15819 esac
15820 done ;;
15822 esac
15823 done # for ac_tag
15826 as_fn_exit 0
15827 _ACEOF
15828 ac_clean_files=$ac_clean_files_save
15830 test $ac_write_fail = 0 ||
15831 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
15834 # configure is writing to config.log, and then calls config.status.
15835 # config.status does its own redirection, appending to config.log.
15836 # Unfortunately, on DOS this fails, as config.log is still kept open
15837 # by configure, so config.status won't be able to write to it; its
15838 # output is simply discarded. So we exec the FD to /dev/null,
15839 # effectively closing config.log, so it can be properly (re)opened and
15840 # appended to by config.status. When coming back to configure, we
15841 # need to make the FD available again.
15842 if test "$no_create" != yes; then
15843 ac_cs_success=:
15844 ac_config_status_args=
15845 test "$silent" = yes &&
15846 ac_config_status_args="$ac_config_status_args --quiet"
15847 exec 5>/dev/null
15848 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
15849 exec 5>>config.log
15850 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
15851 # would make configure fail if this is the last instruction.
15852 $ac_cs_success || as_fn_exit $?
15854 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
15855 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
15856 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}