daily update
[binutils/dougsmingw.git] / ld / configure
blob422427a46b54811788879972701ccc102bbb3622
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 NATIVE_LIB_DIRS
613 HOSTING_LIBS
614 HOSTING_CRT0
615 HDEFINES
616 do_compare
617 GENINSRC_NEVER_FALSE
618 GENINSRC_NEVER_TRUE
619 LEXLIB
620 LEX_OUTPUT_ROOT
622 YFLAGS
623 YACC
624 MSGMERGE
625 MSGFMT
626 MKINSTALLDIRS
627 CATOBJEXT
628 GENCAT
629 INSTOBJEXT
630 DATADIRNAME
631 CATALOGS
632 POSUB
633 GMSGFMT
634 XGETTEXT
635 INCINTL
636 LIBINTL_DEP
637 LIBINTL
638 USE_NLS
639 OTOOL64
640 OTOOL
641 LIPO
642 NMEDIT
643 DSYMUTIL
644 RANLIB
646 OBJDUMP
647 LN_S
649 ac_ct_DUMPBIN
650 DUMPBIN
652 FGREP
654 LIBTOOL
655 EGREP
656 GREP
658 NO_WERROR
659 WARN_CFLAGS
660 TARGET_SYSTEM_ROOT_DEFINE
661 TARGET_SYSTEM_ROOT
662 use_sysroot
663 MAINT
664 MAINTAINER_MODE_FALSE
665 MAINTAINER_MODE_TRUE
666 am__fastdepCC_FALSE
667 am__fastdepCC_TRUE
668 CCDEPMODE
669 AMDEPBACKSLASH
670 AMDEP_FALSE
671 AMDEP_TRUE
672 am__quote
673 am__include
674 DEPDIR
675 am__untar
676 am__tar
677 AMTAR
678 am__leading_dot
679 SET_MAKE
681 mkdir_p
682 MKDIR_P
683 INSTALL_STRIP_PROGRAM
684 STRIP
685 install_sh
686 MAKEINFO
687 AUTOHEADER
688 AUTOMAKE
689 AUTOCONF
690 ACLOCAL
691 VERSION
692 PACKAGE
693 CYGPATH_W
694 am__isrc
695 INSTALL_DATA
696 INSTALL_SCRIPT
697 INSTALL_PROGRAM
698 OBJEXT
699 EXEEXT
700 ac_ct_CC
701 CPPFLAGS
702 LDFLAGS
703 CFLAGS
705 target_os
706 target_vendor
707 target_cpu
708 target
709 host_os
710 host_vendor
711 host_cpu
712 host
713 build_os
714 build_vendor
715 build_cpu
716 build
717 target_alias
718 host_alias
719 build_alias
720 LIBS
721 ECHO_T
722 ECHO_N
723 ECHO_C
724 DEFS
725 mandir
726 localedir
727 libdir
728 psdir
729 pdfdir
730 dvidir
731 htmldir
732 infodir
733 docdir
734 oldincludedir
735 includedir
736 localstatedir
737 sharedstatedir
738 sysconfdir
739 datadir
740 datarootdir
741 libexecdir
742 sbindir
743 bindir
744 program_transform_name
745 prefix
746 exec_prefix
747 PACKAGE_URL
748 PACKAGE_BUGREPORT
749 PACKAGE_STRING
750 PACKAGE_VERSION
751 PACKAGE_TARNAME
752 PACKAGE_NAME
753 PATH_SEPARATOR
754 SHELL'
755 ac_subst_files='TDIRS'
756 ac_user_opts='
757 enable_option_checking
758 enable_dependency_tracking
759 enable_maintainer_mode
760 with_lib_path
761 enable_targets
762 enable_64_bit_bfd
763 with_sysroot
764 enable_got
765 enable_werror
766 enable_build_warnings
767 enable_plugins
768 enable_largefile
769 enable_shared
770 enable_static
771 with_pic
772 enable_fast_install
773 with_gnu_ld
774 enable_libtool_lock
775 enable_nls
777 ac_precious_vars='build_alias
778 host_alias
779 target_alias
781 CFLAGS
782 LDFLAGS
783 LIBS
784 CPPFLAGS
786 YACC
787 YFLAGS'
790 # Initialize some variables set by options.
791 ac_init_help=
792 ac_init_version=false
793 ac_unrecognized_opts=
794 ac_unrecognized_sep=
795 # The variables have the same names as the options, with
796 # dashes changed to underlines.
797 cache_file=/dev/null
798 exec_prefix=NONE
799 no_create=
800 no_recursion=
801 prefix=NONE
802 program_prefix=NONE
803 program_suffix=NONE
804 program_transform_name=s,x,x,
805 silent=
806 site=
807 srcdir=
808 verbose=
809 x_includes=NONE
810 x_libraries=NONE
812 # Installation directory options.
813 # These are left unexpanded so users can "make install exec_prefix=/foo"
814 # and all the variables that are supposed to be based on exec_prefix
815 # by default will actually change.
816 # Use braces instead of parens because sh, perl, etc. also accept them.
817 # (The list follows the same order as the GNU Coding Standards.)
818 bindir='${exec_prefix}/bin'
819 sbindir='${exec_prefix}/sbin'
820 libexecdir='${exec_prefix}/libexec'
821 datarootdir='${prefix}/share'
822 datadir='${datarootdir}'
823 sysconfdir='${prefix}/etc'
824 sharedstatedir='${prefix}/com'
825 localstatedir='${prefix}/var'
826 includedir='${prefix}/include'
827 oldincludedir='/usr/include'
828 docdir='${datarootdir}/doc/${PACKAGE}'
829 infodir='${datarootdir}/info'
830 htmldir='${docdir}'
831 dvidir='${docdir}'
832 pdfdir='${docdir}'
833 psdir='${docdir}'
834 libdir='${exec_prefix}/lib'
835 localedir='${datarootdir}/locale'
836 mandir='${datarootdir}/man'
838 ac_prev=
839 ac_dashdash=
840 for ac_option
842 # If the previous option needs an argument, assign it.
843 if test -n "$ac_prev"; then
844 eval $ac_prev=\$ac_option
845 ac_prev=
846 continue
849 case $ac_option in
850 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
851 *) ac_optarg=yes ;;
852 esac
854 # Accept the important Cygnus configure options, so we can diagnose typos.
856 case $ac_dashdash$ac_option in
858 ac_dashdash=yes ;;
860 -bindir | --bindir | --bindi | --bind | --bin | --bi)
861 ac_prev=bindir ;;
862 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
863 bindir=$ac_optarg ;;
865 -build | --build | --buil | --bui | --bu)
866 ac_prev=build_alias ;;
867 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
868 build_alias=$ac_optarg ;;
870 -cache-file | --cache-file | --cache-fil | --cache-fi \
871 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
872 ac_prev=cache_file ;;
873 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
874 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
875 cache_file=$ac_optarg ;;
877 --config-cache | -C)
878 cache_file=config.cache ;;
880 -datadir | --datadir | --datadi | --datad)
881 ac_prev=datadir ;;
882 -datadir=* | --datadir=* | --datadi=* | --datad=*)
883 datadir=$ac_optarg ;;
885 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
886 | --dataroo | --dataro | --datar)
887 ac_prev=datarootdir ;;
888 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
889 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
890 datarootdir=$ac_optarg ;;
892 -disable-* | --disable-*)
893 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
894 # Reject names that are not valid shell variable names.
895 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
896 as_fn_error "invalid feature name: $ac_useropt"
897 ac_useropt_orig=$ac_useropt
898 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
899 case $ac_user_opts in
901 "enable_$ac_useropt"
902 "*) ;;
903 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
904 ac_unrecognized_sep=', ';;
905 esac
906 eval enable_$ac_useropt=no ;;
908 -docdir | --docdir | --docdi | --doc | --do)
909 ac_prev=docdir ;;
910 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
911 docdir=$ac_optarg ;;
913 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
914 ac_prev=dvidir ;;
915 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
916 dvidir=$ac_optarg ;;
918 -enable-* | --enable-*)
919 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
920 # Reject names that are not valid shell variable names.
921 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
922 as_fn_error "invalid feature name: $ac_useropt"
923 ac_useropt_orig=$ac_useropt
924 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
925 case $ac_user_opts in
927 "enable_$ac_useropt"
928 "*) ;;
929 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
930 ac_unrecognized_sep=', ';;
931 esac
932 eval enable_$ac_useropt=\$ac_optarg ;;
934 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
935 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
936 | --exec | --exe | --ex)
937 ac_prev=exec_prefix ;;
938 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
939 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
940 | --exec=* | --exe=* | --ex=*)
941 exec_prefix=$ac_optarg ;;
943 -gas | --gas | --ga | --g)
944 # Obsolete; use --with-gas.
945 with_gas=yes ;;
947 -help | --help | --hel | --he | -h)
948 ac_init_help=long ;;
949 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
950 ac_init_help=recursive ;;
951 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
952 ac_init_help=short ;;
954 -host | --host | --hos | --ho)
955 ac_prev=host_alias ;;
956 -host=* | --host=* | --hos=* | --ho=*)
957 host_alias=$ac_optarg ;;
959 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
960 ac_prev=htmldir ;;
961 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
962 | --ht=*)
963 htmldir=$ac_optarg ;;
965 -includedir | --includedir | --includedi | --included | --include \
966 | --includ | --inclu | --incl | --inc)
967 ac_prev=includedir ;;
968 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
969 | --includ=* | --inclu=* | --incl=* | --inc=*)
970 includedir=$ac_optarg ;;
972 -infodir | --infodir | --infodi | --infod | --info | --inf)
973 ac_prev=infodir ;;
974 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
975 infodir=$ac_optarg ;;
977 -libdir | --libdir | --libdi | --libd)
978 ac_prev=libdir ;;
979 -libdir=* | --libdir=* | --libdi=* | --libd=*)
980 libdir=$ac_optarg ;;
982 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
983 | --libexe | --libex | --libe)
984 ac_prev=libexecdir ;;
985 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
986 | --libexe=* | --libex=* | --libe=*)
987 libexecdir=$ac_optarg ;;
989 -localedir | --localedir | --localedi | --localed | --locale)
990 ac_prev=localedir ;;
991 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
992 localedir=$ac_optarg ;;
994 -localstatedir | --localstatedir | --localstatedi | --localstated \
995 | --localstate | --localstat | --localsta | --localst | --locals)
996 ac_prev=localstatedir ;;
997 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
998 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
999 localstatedir=$ac_optarg ;;
1001 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1002 ac_prev=mandir ;;
1003 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1004 mandir=$ac_optarg ;;
1006 -nfp | --nfp | --nf)
1007 # Obsolete; use --without-fp.
1008 with_fp=no ;;
1010 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1011 | --no-cr | --no-c | -n)
1012 no_create=yes ;;
1014 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1015 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1016 no_recursion=yes ;;
1018 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1019 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1020 | --oldin | --oldi | --old | --ol | --o)
1021 ac_prev=oldincludedir ;;
1022 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1023 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1024 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1025 oldincludedir=$ac_optarg ;;
1027 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1028 ac_prev=prefix ;;
1029 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1030 prefix=$ac_optarg ;;
1032 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1033 | --program-pre | --program-pr | --program-p)
1034 ac_prev=program_prefix ;;
1035 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1036 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1037 program_prefix=$ac_optarg ;;
1039 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1040 | --program-suf | --program-su | --program-s)
1041 ac_prev=program_suffix ;;
1042 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1043 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1044 program_suffix=$ac_optarg ;;
1046 -program-transform-name | --program-transform-name \
1047 | --program-transform-nam | --program-transform-na \
1048 | --program-transform-n | --program-transform- \
1049 | --program-transform | --program-transfor \
1050 | --program-transfo | --program-transf \
1051 | --program-trans | --program-tran \
1052 | --progr-tra | --program-tr | --program-t)
1053 ac_prev=program_transform_name ;;
1054 -program-transform-name=* | --program-transform-name=* \
1055 | --program-transform-nam=* | --program-transform-na=* \
1056 | --program-transform-n=* | --program-transform-=* \
1057 | --program-transform=* | --program-transfor=* \
1058 | --program-transfo=* | --program-transf=* \
1059 | --program-trans=* | --program-tran=* \
1060 | --progr-tra=* | --program-tr=* | --program-t=*)
1061 program_transform_name=$ac_optarg ;;
1063 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1064 ac_prev=pdfdir ;;
1065 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1066 pdfdir=$ac_optarg ;;
1068 -psdir | --psdir | --psdi | --psd | --ps)
1069 ac_prev=psdir ;;
1070 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1071 psdir=$ac_optarg ;;
1073 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1074 | -silent | --silent | --silen | --sile | --sil)
1075 silent=yes ;;
1077 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1078 ac_prev=sbindir ;;
1079 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1080 | --sbi=* | --sb=*)
1081 sbindir=$ac_optarg ;;
1083 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1084 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1085 | --sharedst | --shareds | --shared | --share | --shar \
1086 | --sha | --sh)
1087 ac_prev=sharedstatedir ;;
1088 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1089 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1090 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1091 | --sha=* | --sh=*)
1092 sharedstatedir=$ac_optarg ;;
1094 -site | --site | --sit)
1095 ac_prev=site ;;
1096 -site=* | --site=* | --sit=*)
1097 site=$ac_optarg ;;
1099 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1100 ac_prev=srcdir ;;
1101 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1102 srcdir=$ac_optarg ;;
1104 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1105 | --syscon | --sysco | --sysc | --sys | --sy)
1106 ac_prev=sysconfdir ;;
1107 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1108 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1109 sysconfdir=$ac_optarg ;;
1111 -target | --target | --targe | --targ | --tar | --ta | --t)
1112 ac_prev=target_alias ;;
1113 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1114 target_alias=$ac_optarg ;;
1116 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1117 verbose=yes ;;
1119 -version | --version | --versio | --versi | --vers | -V)
1120 ac_init_version=: ;;
1122 -with-* | --with-*)
1123 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1124 # Reject names that are not valid shell variable names.
1125 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1126 as_fn_error "invalid package name: $ac_useropt"
1127 ac_useropt_orig=$ac_useropt
1128 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1129 case $ac_user_opts in
1131 "with_$ac_useropt"
1132 "*) ;;
1133 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1134 ac_unrecognized_sep=', ';;
1135 esac
1136 eval with_$ac_useropt=\$ac_optarg ;;
1138 -without-* | --without-*)
1139 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1140 # Reject names that are not valid shell variable names.
1141 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1142 as_fn_error "invalid package name: $ac_useropt"
1143 ac_useropt_orig=$ac_useropt
1144 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1145 case $ac_user_opts in
1147 "with_$ac_useropt"
1148 "*) ;;
1149 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1150 ac_unrecognized_sep=', ';;
1151 esac
1152 eval with_$ac_useropt=no ;;
1154 --x)
1155 # Obsolete; use --with-x.
1156 with_x=yes ;;
1158 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1159 | --x-incl | --x-inc | --x-in | --x-i)
1160 ac_prev=x_includes ;;
1161 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1162 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1163 x_includes=$ac_optarg ;;
1165 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1166 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1167 ac_prev=x_libraries ;;
1168 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1169 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1170 x_libraries=$ac_optarg ;;
1172 -*) as_fn_error "unrecognized option: \`$ac_option'
1173 Try \`$0 --help' for more information."
1176 *=*)
1177 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1178 # Reject names that are not valid shell variable names.
1179 case $ac_envvar in #(
1180 '' | [0-9]* | *[!_$as_cr_alnum]* )
1181 as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1182 esac
1183 eval $ac_envvar=\$ac_optarg
1184 export $ac_envvar ;;
1187 # FIXME: should be removed in autoconf 3.0.
1188 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1189 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1190 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1191 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1194 esac
1195 done
1197 if test -n "$ac_prev"; then
1198 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1199 as_fn_error "missing argument to $ac_option"
1202 if test -n "$ac_unrecognized_opts"; then
1203 case $enable_option_checking in
1204 no) ;;
1205 fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1206 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1207 esac
1210 # Check all directory arguments for consistency.
1211 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1212 datadir sysconfdir sharedstatedir localstatedir includedir \
1213 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1214 libdir localedir mandir
1216 eval ac_val=\$$ac_var
1217 # Remove trailing slashes.
1218 case $ac_val in
1219 */ )
1220 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1221 eval $ac_var=\$ac_val;;
1222 esac
1223 # Be sure to have absolute directory names.
1224 case $ac_val in
1225 [\\/$]* | ?:[\\/]* ) continue;;
1226 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1227 esac
1228 as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1229 done
1231 # There might be people who depend on the old broken behavior: `$host'
1232 # used to hold the argument of --host etc.
1233 # FIXME: To remove some day.
1234 build=$build_alias
1235 host=$host_alias
1236 target=$target_alias
1238 # FIXME: To remove some day.
1239 if test "x$host_alias" != x; then
1240 if test "x$build_alias" = x; then
1241 cross_compiling=maybe
1242 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1243 If a cross compiler is detected then cross compile mode will be used." >&2
1244 elif test "x$build_alias" != "x$host_alias"; then
1245 cross_compiling=yes
1249 ac_tool_prefix=
1250 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1252 test "$silent" = yes && exec 6>/dev/null
1255 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1256 ac_ls_di=`ls -di .` &&
1257 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1258 as_fn_error "working directory cannot be determined"
1259 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1260 as_fn_error "pwd does not report name of working directory"
1263 # Find the source files, if location was not specified.
1264 if test -z "$srcdir"; then
1265 ac_srcdir_defaulted=yes
1266 # Try the directory containing this script, then the parent directory.
1267 ac_confdir=`$as_dirname -- "$as_myself" ||
1268 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1269 X"$as_myself" : 'X\(//\)[^/]' \| \
1270 X"$as_myself" : 'X\(//\)$' \| \
1271 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1272 $as_echo X"$as_myself" |
1273 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1274 s//\1/
1277 /^X\(\/\/\)[^/].*/{
1278 s//\1/
1281 /^X\(\/\/\)$/{
1282 s//\1/
1285 /^X\(\/\).*/{
1286 s//\1/
1289 s/.*/./; q'`
1290 srcdir=$ac_confdir
1291 if test ! -r "$srcdir/$ac_unique_file"; then
1292 srcdir=..
1294 else
1295 ac_srcdir_defaulted=no
1297 if test ! -r "$srcdir/$ac_unique_file"; then
1298 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1299 as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1301 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1302 ac_abs_confdir=`(
1303 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1304 pwd)`
1305 # When building in place, set srcdir=.
1306 if test "$ac_abs_confdir" = "$ac_pwd"; then
1307 srcdir=.
1309 # Remove unnecessary trailing slashes from srcdir.
1310 # Double slashes in file names in object file debugging info
1311 # mess up M-x gdb in Emacs.
1312 case $srcdir in
1313 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1314 esac
1315 for ac_var in $ac_precious_vars; do
1316 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1317 eval ac_env_${ac_var}_value=\$${ac_var}
1318 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1319 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1320 done
1323 # Report the --help message.
1325 if test "$ac_init_help" = "long"; then
1326 # Omit some internal or obsolete options to make the list less imposing.
1327 # This message is too long to be a string in the A/UX 3.1 sh.
1328 cat <<_ACEOF
1329 \`configure' configures this package to adapt to many kinds of systems.
1331 Usage: $0 [OPTION]... [VAR=VALUE]...
1333 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1334 VAR=VALUE. See below for descriptions of some of the useful variables.
1336 Defaults for the options are specified in brackets.
1338 Configuration:
1339 -h, --help display this help and exit
1340 --help=short display options specific to this package
1341 --help=recursive display the short help of all the included packages
1342 -V, --version display version information and exit
1343 -q, --quiet, --silent do not print \`checking...' messages
1344 --cache-file=FILE cache test results in FILE [disabled]
1345 -C, --config-cache alias for \`--cache-file=config.cache'
1346 -n, --no-create do not create output files
1347 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1349 Installation directories:
1350 --prefix=PREFIX install architecture-independent files in PREFIX
1351 [$ac_default_prefix]
1352 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1353 [PREFIX]
1355 By default, \`make install' will install all the files in
1356 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1357 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1358 for instance \`--prefix=\$HOME'.
1360 For better control, use the options below.
1362 Fine tuning of the installation directories:
1363 --bindir=DIR user executables [EPREFIX/bin]
1364 --sbindir=DIR system admin executables [EPREFIX/sbin]
1365 --libexecdir=DIR program executables [EPREFIX/libexec]
1366 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1367 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1368 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1369 --libdir=DIR object code libraries [EPREFIX/lib]
1370 --includedir=DIR C header files [PREFIX/include]
1371 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1372 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1373 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1374 --infodir=DIR info documentation [DATAROOTDIR/info]
1375 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1376 --mandir=DIR man documentation [DATAROOTDIR/man]
1377 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1378 --htmldir=DIR html documentation [DOCDIR]
1379 --dvidir=DIR dvi documentation [DOCDIR]
1380 --pdfdir=DIR pdf documentation [DOCDIR]
1381 --psdir=DIR ps documentation [DOCDIR]
1382 _ACEOF
1384 cat <<\_ACEOF
1386 Program names:
1387 --program-prefix=PREFIX prepend PREFIX to installed program names
1388 --program-suffix=SUFFIX append SUFFIX to installed program names
1389 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1391 System types:
1392 --build=BUILD configure for building on BUILD [guessed]
1393 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1394 --target=TARGET configure for building compilers for TARGET [HOST]
1395 _ACEOF
1398 if test -n "$ac_init_help"; then
1400 cat <<\_ACEOF
1402 Optional Features:
1403 --disable-option-checking ignore unrecognized --enable/--with options
1404 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1405 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1406 --disable-dependency-tracking speeds up one-time build
1407 --enable-dependency-tracking do not reject slow dependency extractors
1408 --enable-maintainer-mode enable make rules and dependencies not useful
1409 (and sometimes confusing) to the casual installer
1410 --enable-targets alternative target configurations
1411 --enable-64-bit-bfd 64-bit support (on hosts with narrower word sizes)
1412 --enable-got=<type> GOT handling scheme (target, single, negative,
1413 multigot)
1414 --enable-werror treat compile warnings as errors
1415 --enable-build-warnings enable build-time compiler warnings
1416 --enable-plugins Enable support for plugins (defaults no)
1417 --disable-largefile omit support for large files
1418 --enable-shared[=PKGS] build shared libraries [default=yes]
1419 --enable-static[=PKGS] build static libraries [default=yes]
1420 --enable-fast-install[=PKGS]
1421 optimize for fast installation [default=yes]
1422 --disable-libtool-lock avoid locking (might break parallel builds)
1423 --disable-nls do not use Native Language Support
1425 Optional Packages:
1426 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1427 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1428 --with-lib-path=dir1:dir2... set default LIB_PATH
1429 --with-sysroot=DIR Search for usr/lib et al within DIR.
1430 --with-pic try to use only PIC/non-PIC objects [default=use
1431 both]
1432 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1434 Some influential environment variables:
1435 CC C compiler command
1436 CFLAGS C compiler flags
1437 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1438 nonstandard directory <lib dir>
1439 LIBS libraries to pass to the linker, e.g. -l<library>
1440 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1441 you have headers in a nonstandard directory <include dir>
1442 CPP C preprocessor
1443 YACC The `Yet Another C Compiler' implementation to use. Defaults to
1444 the first program found out of: `bison -y', `byacc', `yacc'.
1445 YFLAGS The list of arguments that will be passed by default to $YACC.
1446 This script will default YFLAGS to the empty string to avoid a
1447 default value of `-d' given by some make applications.
1449 Use these variables to override the choices made by `configure' or to help
1450 it to find libraries and programs with nonstandard names/locations.
1452 Report bugs to the package provider.
1453 _ACEOF
1454 ac_status=$?
1457 if test "$ac_init_help" = "recursive"; then
1458 # If there are subdirs, report their specific --help.
1459 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1460 test -d "$ac_dir" ||
1461 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1462 continue
1463 ac_builddir=.
1465 case "$ac_dir" in
1466 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1468 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1469 # A ".." for each directory in $ac_dir_suffix.
1470 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1471 case $ac_top_builddir_sub in
1472 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1473 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1474 esac ;;
1475 esac
1476 ac_abs_top_builddir=$ac_pwd
1477 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1478 # for backward compatibility:
1479 ac_top_builddir=$ac_top_build_prefix
1481 case $srcdir in
1482 .) # We are building in place.
1483 ac_srcdir=.
1484 ac_top_srcdir=$ac_top_builddir_sub
1485 ac_abs_top_srcdir=$ac_pwd ;;
1486 [\\/]* | ?:[\\/]* ) # Absolute name.
1487 ac_srcdir=$srcdir$ac_dir_suffix;
1488 ac_top_srcdir=$srcdir
1489 ac_abs_top_srcdir=$srcdir ;;
1490 *) # Relative name.
1491 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1492 ac_top_srcdir=$ac_top_build_prefix$srcdir
1493 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1494 esac
1495 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1497 cd "$ac_dir" || { ac_status=$?; continue; }
1498 # Check for guested configure.
1499 if test -f "$ac_srcdir/configure.gnu"; then
1500 echo &&
1501 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1502 elif test -f "$ac_srcdir/configure"; then
1503 echo &&
1504 $SHELL "$ac_srcdir/configure" --help=recursive
1505 else
1506 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1507 fi || ac_status=$?
1508 cd "$ac_pwd" || { ac_status=$?; break; }
1509 done
1512 test -n "$ac_init_help" && exit $ac_status
1513 if $ac_init_version; then
1514 cat <<\_ACEOF
1515 configure
1516 generated by GNU Autoconf 2.64
1518 Copyright (C) 2009 Free Software Foundation, Inc.
1519 This configure script is free software; the Free Software Foundation
1520 gives unlimited permission to copy, distribute and modify it.
1521 _ACEOF
1522 exit
1525 ## ------------------------ ##
1526 ## Autoconf initialization. ##
1527 ## ------------------------ ##
1529 # ac_fn_c_try_compile LINENO
1530 # --------------------------
1531 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1532 ac_fn_c_try_compile ()
1534 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1535 rm -f conftest.$ac_objext
1536 if { { ac_try="$ac_compile"
1537 case "(($ac_try" in
1538 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1539 *) ac_try_echo=$ac_try;;
1540 esac
1541 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1542 $as_echo "$ac_try_echo"; } >&5
1543 (eval "$ac_compile") 2>conftest.err
1544 ac_status=$?
1545 if test -s conftest.err; then
1546 grep -v '^ *+' conftest.err >conftest.er1
1547 cat conftest.er1 >&5
1548 mv -f conftest.er1 conftest.err
1550 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1551 test $ac_status = 0; } && {
1552 test -z "$ac_c_werror_flag" ||
1553 test ! -s conftest.err
1554 } && test -s conftest.$ac_objext; then :
1555 ac_retval=0
1556 else
1557 $as_echo "$as_me: failed program was:" >&5
1558 sed 's/^/| /' conftest.$ac_ext >&5
1560 ac_retval=1
1562 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1563 return $ac_retval
1565 } # ac_fn_c_try_compile
1567 # ac_fn_c_try_link LINENO
1568 # -----------------------
1569 # Try to link conftest.$ac_ext, and return whether this succeeded.
1570 ac_fn_c_try_link ()
1572 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1573 rm -f conftest.$ac_objext conftest$ac_exeext
1574 if { { ac_try="$ac_link"
1575 case "(($ac_try" in
1576 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1577 *) ac_try_echo=$ac_try;;
1578 esac
1579 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1580 $as_echo "$ac_try_echo"; } >&5
1581 (eval "$ac_link") 2>conftest.err
1582 ac_status=$?
1583 if test -s conftest.err; then
1584 grep -v '^ *+' conftest.err >conftest.er1
1585 cat conftest.er1 >&5
1586 mv -f conftest.er1 conftest.err
1588 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1589 test $ac_status = 0; } && {
1590 test -z "$ac_c_werror_flag" ||
1591 test ! -s conftest.err
1592 } && test -s conftest$ac_exeext && {
1593 test "$cross_compiling" = yes ||
1594 $as_test_x conftest$ac_exeext
1595 }; then :
1596 ac_retval=0
1597 else
1598 $as_echo "$as_me: failed program was:" >&5
1599 sed 's/^/| /' conftest.$ac_ext >&5
1601 ac_retval=1
1603 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1604 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1605 # interfere with the next link command; also delete a directory that is
1606 # left behind by Apple's compiler. We do this before executing the actions.
1607 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1608 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1609 return $ac_retval
1611 } # ac_fn_c_try_link
1613 # ac_fn_c_try_cpp LINENO
1614 # ----------------------
1615 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1616 ac_fn_c_try_cpp ()
1618 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1619 if { { ac_try="$ac_cpp conftest.$ac_ext"
1620 case "(($ac_try" in
1621 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1622 *) ac_try_echo=$ac_try;;
1623 esac
1624 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1625 $as_echo "$ac_try_echo"; } >&5
1626 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1627 ac_status=$?
1628 if test -s conftest.err; then
1629 grep -v '^ *+' conftest.err >conftest.er1
1630 cat conftest.er1 >&5
1631 mv -f conftest.er1 conftest.err
1633 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1634 test $ac_status = 0; } >/dev/null && {
1635 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1636 test ! -s conftest.err
1637 }; then :
1638 ac_retval=0
1639 else
1640 $as_echo "$as_me: failed program was:" >&5
1641 sed 's/^/| /' conftest.$ac_ext >&5
1643 ac_retval=1
1645 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1646 return $ac_retval
1648 } # ac_fn_c_try_cpp
1650 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1651 # -------------------------------------------------------
1652 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1653 # the include files in INCLUDES and setting the cache variable VAR
1654 # accordingly.
1655 ac_fn_c_check_header_mongrel ()
1657 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1658 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1659 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1660 $as_echo_n "checking for $2... " >&6; }
1661 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1662 $as_echo_n "(cached) " >&6
1664 eval ac_res=\$$3
1665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1666 $as_echo "$ac_res" >&6; }
1667 else
1668 # Is the header compilable?
1669 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1670 $as_echo_n "checking $2 usability... " >&6; }
1671 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1672 /* end confdefs.h. */
1674 #include <$2>
1675 _ACEOF
1676 if ac_fn_c_try_compile "$LINENO"; then :
1677 ac_header_compiler=yes
1678 else
1679 ac_header_compiler=no
1681 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1683 $as_echo "$ac_header_compiler" >&6; }
1685 # Is the header present?
1686 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1687 $as_echo_n "checking $2 presence... " >&6; }
1688 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1689 /* end confdefs.h. */
1690 #include <$2>
1691 _ACEOF
1692 if ac_fn_c_try_cpp "$LINENO"; then :
1693 ac_header_preproc=yes
1694 else
1695 ac_header_preproc=no
1697 rm -f conftest.err conftest.$ac_ext
1698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1699 $as_echo "$ac_header_preproc" >&6; }
1701 # So? What about this header?
1702 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1703 yes:no: )
1704 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1705 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1706 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1707 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1709 no:yes:* )
1710 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1711 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1712 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1713 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1714 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1715 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1716 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1717 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1718 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1719 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1721 esac
1722 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1723 $as_echo_n "checking for $2... " >&6; }
1724 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1725 $as_echo_n "(cached) " >&6
1726 else
1727 eval "$3=\$ac_header_compiler"
1729 eval ac_res=\$$3
1730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1731 $as_echo "$ac_res" >&6; }
1733 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1735 } # ac_fn_c_check_header_mongrel
1737 # ac_fn_c_try_run LINENO
1738 # ----------------------
1739 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1740 # that executables *can* be run.
1741 ac_fn_c_try_run ()
1743 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1744 if { { ac_try="$ac_link"
1745 case "(($ac_try" in
1746 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1747 *) ac_try_echo=$ac_try;;
1748 esac
1749 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1750 $as_echo "$ac_try_echo"; } >&5
1751 (eval "$ac_link") 2>&5
1752 ac_status=$?
1753 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1754 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1755 { { case "(($ac_try" in
1756 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1757 *) ac_try_echo=$ac_try;;
1758 esac
1759 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1760 $as_echo "$ac_try_echo"; } >&5
1761 (eval "$ac_try") 2>&5
1762 ac_status=$?
1763 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1764 test $ac_status = 0; }; }; then :
1765 ac_retval=0
1766 else
1767 $as_echo "$as_me: program exited with status $ac_status" >&5
1768 $as_echo "$as_me: failed program was:" >&5
1769 sed 's/^/| /' conftest.$ac_ext >&5
1771 ac_retval=$ac_status
1773 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1774 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1775 return $ac_retval
1777 } # ac_fn_c_try_run
1779 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1780 # -------------------------------------------------------
1781 # Tests whether HEADER exists and can be compiled using the include files in
1782 # INCLUDES, setting the cache variable VAR accordingly.
1783 ac_fn_c_check_header_compile ()
1785 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1786 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1787 $as_echo_n "checking for $2... " >&6; }
1788 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1789 $as_echo_n "(cached) " >&6
1790 else
1791 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1792 /* end confdefs.h. */
1794 #include <$2>
1795 _ACEOF
1796 if ac_fn_c_try_compile "$LINENO"; then :
1797 eval "$3=yes"
1798 else
1799 eval "$3=no"
1801 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1803 eval ac_res=\$$3
1804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1805 $as_echo "$ac_res" >&6; }
1806 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1808 } # ac_fn_c_check_header_compile
1810 # ac_fn_c_check_func LINENO FUNC VAR
1811 # ----------------------------------
1812 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1813 ac_fn_c_check_func ()
1815 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1816 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1817 $as_echo_n "checking for $2... " >&6; }
1818 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1819 $as_echo_n "(cached) " >&6
1820 else
1821 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1822 /* end confdefs.h. */
1823 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1824 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1825 #define $2 innocuous_$2
1827 /* System header to define __stub macros and hopefully few prototypes,
1828 which can conflict with char $2 (); below.
1829 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1830 <limits.h> exists even on freestanding compilers. */
1832 #ifdef __STDC__
1833 # include <limits.h>
1834 #else
1835 # include <assert.h>
1836 #endif
1838 #undef $2
1840 /* Override any GCC internal prototype to avoid an error.
1841 Use char because int might match the return type of a GCC
1842 builtin and then its argument prototype would still apply. */
1843 #ifdef __cplusplus
1844 extern "C"
1845 #endif
1846 char $2 ();
1847 /* The GNU C library defines this for functions which it implements
1848 to always fail with ENOSYS. Some functions are actually named
1849 something starting with __ and the normal name is an alias. */
1850 #if defined __stub_$2 || defined __stub___$2
1851 choke me
1852 #endif
1855 main ()
1857 return $2 ();
1859 return 0;
1861 _ACEOF
1862 if ac_fn_c_try_link "$LINENO"; then :
1863 eval "$3=yes"
1864 else
1865 eval "$3=no"
1867 rm -f core conftest.err conftest.$ac_objext \
1868 conftest$ac_exeext conftest.$ac_ext
1870 eval ac_res=\$$3
1871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1872 $as_echo "$ac_res" >&6; }
1873 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1875 } # ac_fn_c_check_func
1877 # ac_fn_c_check_decl LINENO SYMBOL VAR
1878 # ------------------------------------
1879 # Tests whether SYMBOL is declared, setting cache variable VAR accordingly.
1880 ac_fn_c_check_decl ()
1882 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1883 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $2 is declared" >&5
1884 $as_echo_n "checking whether $2 is declared... " >&6; }
1885 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1886 $as_echo_n "(cached) " >&6
1887 else
1888 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1889 /* end confdefs.h. */
1892 main ()
1894 #ifndef $2
1895 (void) $2;
1896 #endif
1899 return 0;
1901 _ACEOF
1902 if ac_fn_c_try_compile "$LINENO"; then :
1903 eval "$3=yes"
1904 else
1905 eval "$3=no"
1907 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1909 eval ac_res=\$$3
1910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1911 $as_echo "$ac_res" >&6; }
1912 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1914 } # ac_fn_c_check_decl
1916 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
1917 # --------------------------------------------
1918 # Tries to find the compile-time value of EXPR in a program that includes
1919 # INCLUDES, setting VAR accordingly. Returns whether the value could be
1920 # computed
1921 ac_fn_c_compute_int ()
1923 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1924 if test "$cross_compiling" = yes; then
1925 # Depending upon the size, compute the lo and hi bounds.
1926 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1927 /* end confdefs.h. */
1930 main ()
1932 static int test_array [1 - 2 * !(($2) >= 0)];
1933 test_array [0] = 0
1936 return 0;
1938 _ACEOF
1939 if ac_fn_c_try_compile "$LINENO"; then :
1940 ac_lo=0 ac_mid=0
1941 while :; do
1942 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1943 /* end confdefs.h. */
1946 main ()
1948 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
1949 test_array [0] = 0
1952 return 0;
1954 _ACEOF
1955 if ac_fn_c_try_compile "$LINENO"; then :
1956 ac_hi=$ac_mid; break
1957 else
1958 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
1959 if test $ac_lo -le $ac_mid; then
1960 ac_lo= ac_hi=
1961 break
1963 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
1965 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1966 done
1967 else
1968 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1969 /* end confdefs.h. */
1972 main ()
1974 static int test_array [1 - 2 * !(($2) < 0)];
1975 test_array [0] = 0
1978 return 0;
1980 _ACEOF
1981 if ac_fn_c_try_compile "$LINENO"; then :
1982 ac_hi=-1 ac_mid=-1
1983 while :; do
1984 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1985 /* end confdefs.h. */
1988 main ()
1990 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
1991 test_array [0] = 0
1994 return 0;
1996 _ACEOF
1997 if ac_fn_c_try_compile "$LINENO"; then :
1998 ac_lo=$ac_mid; break
1999 else
2000 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2001 if test $ac_mid -le $ac_hi; then
2002 ac_lo= ac_hi=
2003 break
2005 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2007 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2008 done
2009 else
2010 ac_lo= ac_hi=
2012 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2014 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2015 # Binary search between lo and hi bounds.
2016 while test "x$ac_lo" != "x$ac_hi"; do
2017 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2018 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2019 /* end confdefs.h. */
2022 main ()
2024 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2025 test_array [0] = 0
2028 return 0;
2030 _ACEOF
2031 if ac_fn_c_try_compile "$LINENO"; then :
2032 ac_hi=$ac_mid
2033 else
2034 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2036 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2037 done
2038 case $ac_lo in #((
2039 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2040 '') ac_retval=1 ;;
2041 esac
2042 else
2043 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2044 /* end confdefs.h. */
2046 static long int longval () { return $2; }
2047 static unsigned long int ulongval () { return $2; }
2048 #include <stdio.h>
2049 #include <stdlib.h>
2051 main ()
2054 FILE *f = fopen ("conftest.val", "w");
2055 if (! f)
2056 return 1;
2057 if (($2) < 0)
2059 long int i = longval ();
2060 if (i != ($2))
2061 return 1;
2062 fprintf (f, "%ld", i);
2064 else
2066 unsigned long int i = ulongval ();
2067 if (i != ($2))
2068 return 1;
2069 fprintf (f, "%lu", i);
2071 /* Do not output a trailing newline, as this causes \r\n confusion
2072 on some platforms. */
2073 return ferror (f) || fclose (f) != 0;
2076 return 0;
2078 _ACEOF
2079 if ac_fn_c_try_run "$LINENO"; then :
2080 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2081 else
2082 ac_retval=1
2084 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2085 conftest.$ac_objext conftest.beam conftest.$ac_ext
2086 rm -f conftest.val
2089 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2090 return $ac_retval
2092 } # ac_fn_c_compute_int
2093 cat >config.log <<_ACEOF
2094 This file contains any messages produced by compilers while
2095 running configure, to aid debugging if configure makes a mistake.
2097 It was created by $as_me, which was
2098 generated by GNU Autoconf 2.64. Invocation command line was
2100 $ $0 $@
2102 _ACEOF
2103 exec 5>>config.log
2105 cat <<_ASUNAME
2106 ## --------- ##
2107 ## Platform. ##
2108 ## --------- ##
2110 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2111 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2112 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2113 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2114 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2116 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2117 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2119 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2120 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2121 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2122 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2123 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2124 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2125 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2127 _ASUNAME
2129 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2130 for as_dir in $PATH
2132 IFS=$as_save_IFS
2133 test -z "$as_dir" && as_dir=.
2134 $as_echo "PATH: $as_dir"
2135 done
2136 IFS=$as_save_IFS
2138 } >&5
2140 cat >&5 <<_ACEOF
2143 ## ----------- ##
2144 ## Core tests. ##
2145 ## ----------- ##
2147 _ACEOF
2150 # Keep a trace of the command line.
2151 # Strip out --no-create and --no-recursion so they do not pile up.
2152 # Strip out --silent because we don't want to record it for future runs.
2153 # Also quote any args containing shell meta-characters.
2154 # Make two passes to allow for proper duplicate-argument suppression.
2155 ac_configure_args=
2156 ac_configure_args0=
2157 ac_configure_args1=
2158 ac_must_keep_next=false
2159 for ac_pass in 1 2
2161 for ac_arg
2163 case $ac_arg in
2164 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2165 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2166 | -silent | --silent | --silen | --sile | --sil)
2167 continue ;;
2168 *\'*)
2169 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2170 esac
2171 case $ac_pass in
2172 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2174 as_fn_append ac_configure_args1 " '$ac_arg'"
2175 if test $ac_must_keep_next = true; then
2176 ac_must_keep_next=false # Got value, back to normal.
2177 else
2178 case $ac_arg in
2179 *=* | --config-cache | -C | -disable-* | --disable-* \
2180 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2181 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2182 | -with-* | --with-* | -without-* | --without-* | --x)
2183 case "$ac_configure_args0 " in
2184 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2185 esac
2187 -* ) ac_must_keep_next=true ;;
2188 esac
2190 as_fn_append ac_configure_args " '$ac_arg'"
2192 esac
2193 done
2194 done
2195 { ac_configure_args0=; unset ac_configure_args0;}
2196 { ac_configure_args1=; unset ac_configure_args1;}
2198 # When interrupted or exit'd, cleanup temporary files, and complete
2199 # config.log. We remove comments because anyway the quotes in there
2200 # would cause problems or look ugly.
2201 # WARNING: Use '\'' to represent an apostrophe within the trap.
2202 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2203 trap 'exit_status=$?
2204 # Save into config.log some information that might help in debugging.
2206 echo
2208 cat <<\_ASBOX
2209 ## ---------------- ##
2210 ## Cache variables. ##
2211 ## ---------------- ##
2212 _ASBOX
2213 echo
2214 # The following way of writing the cache mishandles newlines in values,
2216 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2217 eval ac_val=\$$ac_var
2218 case $ac_val in #(
2219 *${as_nl}*)
2220 case $ac_var in #(
2221 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2222 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2223 esac
2224 case $ac_var in #(
2225 _ | IFS | as_nl) ;; #(
2226 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2227 *) { eval $ac_var=; unset $ac_var;} ;;
2228 esac ;;
2229 esac
2230 done
2231 (set) 2>&1 |
2232 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2233 *${as_nl}ac_space=\ *)
2234 sed -n \
2235 "s/'\''/'\''\\\\'\'''\''/g;
2236 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2237 ;; #(
2239 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2241 esac |
2242 sort
2244 echo
2246 cat <<\_ASBOX
2247 ## ----------------- ##
2248 ## Output variables. ##
2249 ## ----------------- ##
2250 _ASBOX
2251 echo
2252 for ac_var in $ac_subst_vars
2254 eval ac_val=\$$ac_var
2255 case $ac_val in
2256 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2257 esac
2258 $as_echo "$ac_var='\''$ac_val'\''"
2259 done | sort
2260 echo
2262 if test -n "$ac_subst_files"; then
2263 cat <<\_ASBOX
2264 ## ------------------- ##
2265 ## File substitutions. ##
2266 ## ------------------- ##
2267 _ASBOX
2268 echo
2269 for ac_var in $ac_subst_files
2271 eval ac_val=\$$ac_var
2272 case $ac_val in
2273 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2274 esac
2275 $as_echo "$ac_var='\''$ac_val'\''"
2276 done | sort
2277 echo
2280 if test -s confdefs.h; then
2281 cat <<\_ASBOX
2282 ## ----------- ##
2283 ## confdefs.h. ##
2284 ## ----------- ##
2285 _ASBOX
2286 echo
2287 cat confdefs.h
2288 echo
2290 test "$ac_signal" != 0 &&
2291 $as_echo "$as_me: caught signal $ac_signal"
2292 $as_echo "$as_me: exit $exit_status"
2293 } >&5
2294 rm -f core *.core core.conftest.* &&
2295 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2296 exit $exit_status
2298 for ac_signal in 1 2 13 15; do
2299 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2300 done
2301 ac_signal=0
2303 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2304 rm -f -r conftest* confdefs.h
2306 $as_echo "/* confdefs.h */" > confdefs.h
2308 # Predefined preprocessor variables.
2310 cat >>confdefs.h <<_ACEOF
2311 #define PACKAGE_NAME "$PACKAGE_NAME"
2312 _ACEOF
2314 cat >>confdefs.h <<_ACEOF
2315 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2316 _ACEOF
2318 cat >>confdefs.h <<_ACEOF
2319 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2320 _ACEOF
2322 cat >>confdefs.h <<_ACEOF
2323 #define PACKAGE_STRING "$PACKAGE_STRING"
2324 _ACEOF
2326 cat >>confdefs.h <<_ACEOF
2327 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2328 _ACEOF
2330 cat >>confdefs.h <<_ACEOF
2331 #define PACKAGE_URL "$PACKAGE_URL"
2332 _ACEOF
2335 # Let the site file select an alternate cache file if it wants to.
2336 # Prefer an explicitly selected file to automatically selected ones.
2337 ac_site_file1=NONE
2338 ac_site_file2=NONE
2339 if test -n "$CONFIG_SITE"; then
2340 ac_site_file1=$CONFIG_SITE
2341 elif test "x$prefix" != xNONE; then
2342 ac_site_file1=$prefix/share/config.site
2343 ac_site_file2=$prefix/etc/config.site
2344 else
2345 ac_site_file1=$ac_default_prefix/share/config.site
2346 ac_site_file2=$ac_default_prefix/etc/config.site
2348 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2350 test "x$ac_site_file" = xNONE && continue
2351 if test -r "$ac_site_file"; then
2352 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2353 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2354 sed 's/^/| /' "$ac_site_file" >&5
2355 . "$ac_site_file"
2357 done
2359 if test -r "$cache_file"; then
2360 # Some versions of bash will fail to source /dev/null (special
2361 # files actually), so we avoid doing that.
2362 if test -f "$cache_file"; then
2363 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2364 $as_echo "$as_me: loading cache $cache_file" >&6;}
2365 case $cache_file in
2366 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2367 *) . "./$cache_file";;
2368 esac
2370 else
2371 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2372 $as_echo "$as_me: creating cache $cache_file" >&6;}
2373 >$cache_file
2376 # Check that the precious variables saved in the cache have kept the same
2377 # value.
2378 ac_cache_corrupted=false
2379 for ac_var in $ac_precious_vars; do
2380 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2381 eval ac_new_set=\$ac_env_${ac_var}_set
2382 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2383 eval ac_new_val=\$ac_env_${ac_var}_value
2384 case $ac_old_set,$ac_new_set in
2385 set,)
2386 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2387 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2388 ac_cache_corrupted=: ;;
2389 ,set)
2390 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2391 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2392 ac_cache_corrupted=: ;;
2393 ,);;
2395 if test "x$ac_old_val" != "x$ac_new_val"; then
2396 # differences in whitespace do not lead to failure.
2397 ac_old_val_w=`echo x $ac_old_val`
2398 ac_new_val_w=`echo x $ac_new_val`
2399 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2400 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2401 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2402 ac_cache_corrupted=:
2403 else
2404 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2405 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2406 eval $ac_var=\$ac_old_val
2408 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2409 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2410 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2411 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2412 fi;;
2413 esac
2414 # Pass precious variables to config.status.
2415 if test "$ac_new_set" = set; then
2416 case $ac_new_val in
2417 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2418 *) ac_arg=$ac_var=$ac_new_val ;;
2419 esac
2420 case " $ac_configure_args " in
2421 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2422 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2423 esac
2425 done
2426 if $ac_cache_corrupted; then
2427 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2428 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2429 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2430 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2431 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2433 ## -------------------- ##
2434 ## Main body of script. ##
2435 ## -------------------- ##
2437 ac_ext=c
2438 ac_cpp='$CPP $CPPFLAGS'
2439 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2440 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2441 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2449 ac_aux_dir=
2450 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2451 for ac_t in install-sh install.sh shtool; do
2452 if test -f "$ac_dir/$ac_t"; then
2453 ac_aux_dir=$ac_dir
2454 ac_install_sh="$ac_aux_dir/$ac_t -c"
2455 break 2
2457 done
2458 done
2459 if test -z "$ac_aux_dir"; then
2460 as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2463 # These three variables are undocumented and unsupported,
2464 # and are intended to be withdrawn in a future Autoconf release.
2465 # They can cause serious problems if a builder's source tree is in a directory
2466 # whose full name contains unusual characters.
2467 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2468 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2469 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2472 # Make sure we can run config.sub.
2473 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2474 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2476 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2477 $as_echo_n "checking build system type... " >&6; }
2478 if test "${ac_cv_build+set}" = set; then :
2479 $as_echo_n "(cached) " >&6
2480 else
2481 ac_build_alias=$build_alias
2482 test "x$ac_build_alias" = x &&
2483 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2484 test "x$ac_build_alias" = x &&
2485 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
2486 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2487 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2491 $as_echo "$ac_cv_build" >&6; }
2492 case $ac_cv_build in
2493 *-*-*) ;;
2494 *) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
2495 esac
2496 build=$ac_cv_build
2497 ac_save_IFS=$IFS; IFS='-'
2498 set x $ac_cv_build
2499 shift
2500 build_cpu=$1
2501 build_vendor=$2
2502 shift; shift
2503 # Remember, the first character of IFS is used to create $*,
2504 # except with old shells:
2505 build_os=$*
2506 IFS=$ac_save_IFS
2507 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2510 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2511 $as_echo_n "checking host system type... " >&6; }
2512 if test "${ac_cv_host+set}" = set; then :
2513 $as_echo_n "(cached) " >&6
2514 else
2515 if test "x$host_alias" = x; then
2516 ac_cv_host=$ac_cv_build
2517 else
2518 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2519 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2524 $as_echo "$ac_cv_host" >&6; }
2525 case $ac_cv_host in
2526 *-*-*) ;;
2527 *) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
2528 esac
2529 host=$ac_cv_host
2530 ac_save_IFS=$IFS; IFS='-'
2531 set x $ac_cv_host
2532 shift
2533 host_cpu=$1
2534 host_vendor=$2
2535 shift; shift
2536 # Remember, the first character of IFS is used to create $*,
2537 # except with old shells:
2538 host_os=$*
2539 IFS=$ac_save_IFS
2540 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2543 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2544 $as_echo_n "checking target system type... " >&6; }
2545 if test "${ac_cv_target+set}" = set; then :
2546 $as_echo_n "(cached) " >&6
2547 else
2548 if test "x$target_alias" = x; then
2549 ac_cv_target=$ac_cv_host
2550 else
2551 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2552 as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2557 $as_echo "$ac_cv_target" >&6; }
2558 case $ac_cv_target in
2559 *-*-*) ;;
2560 *) as_fn_error "invalid value of canonical target" "$LINENO" 5;;
2561 esac
2562 target=$ac_cv_target
2563 ac_save_IFS=$IFS; IFS='-'
2564 set x $ac_cv_target
2565 shift
2566 target_cpu=$1
2567 target_vendor=$2
2568 shift; shift
2569 # Remember, the first character of IFS is used to create $*,
2570 # except with old shells:
2571 target_os=$*
2572 IFS=$ac_save_IFS
2573 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2576 # The aliases save the names the user supplied, while $host etc.
2577 # will get canonicalized.
2578 test -n "$target_alias" &&
2579 test "$program_prefix$program_suffix$program_transform_name" = \
2580 NONENONEs,x,x, &&
2581 program_prefix=${target_alias}-
2582 ac_ext=c
2583 ac_cpp='$CPP $CPPFLAGS'
2584 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2585 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2586 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2587 if test -n "$ac_tool_prefix"; then
2588 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2589 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2590 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2591 $as_echo_n "checking for $ac_word... " >&6; }
2592 if test "${ac_cv_prog_CC+set}" = set; then :
2593 $as_echo_n "(cached) " >&6
2594 else
2595 if test -n "$CC"; then
2596 ac_cv_prog_CC="$CC" # Let the user override the test.
2597 else
2598 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2599 for as_dir in $PATH
2601 IFS=$as_save_IFS
2602 test -z "$as_dir" && as_dir=.
2603 for ac_exec_ext in '' $ac_executable_extensions; do
2604 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2605 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2606 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2607 break 2
2609 done
2610 done
2611 IFS=$as_save_IFS
2615 CC=$ac_cv_prog_CC
2616 if test -n "$CC"; then
2617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2618 $as_echo "$CC" >&6; }
2619 else
2620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2621 $as_echo "no" >&6; }
2626 if test -z "$ac_cv_prog_CC"; then
2627 ac_ct_CC=$CC
2628 # Extract the first word of "gcc", so it can be a program name with args.
2629 set dummy gcc; ac_word=$2
2630 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2631 $as_echo_n "checking for $ac_word... " >&6; }
2632 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
2633 $as_echo_n "(cached) " >&6
2634 else
2635 if test -n "$ac_ct_CC"; then
2636 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2637 else
2638 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2639 for as_dir in $PATH
2641 IFS=$as_save_IFS
2642 test -z "$as_dir" && as_dir=.
2643 for ac_exec_ext in '' $ac_executable_extensions; do
2644 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2645 ac_cv_prog_ac_ct_CC="gcc"
2646 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2647 break 2
2649 done
2650 done
2651 IFS=$as_save_IFS
2655 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2656 if test -n "$ac_ct_CC"; then
2657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2658 $as_echo "$ac_ct_CC" >&6; }
2659 else
2660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2661 $as_echo "no" >&6; }
2664 if test "x$ac_ct_CC" = x; then
2665 CC=""
2666 else
2667 case $cross_compiling:$ac_tool_warned in
2668 yes:)
2669 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2670 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2671 ac_tool_warned=yes ;;
2672 esac
2673 CC=$ac_ct_CC
2675 else
2676 CC="$ac_cv_prog_CC"
2679 if test -z "$CC"; then
2680 if test -n "$ac_tool_prefix"; then
2681 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2682 set dummy ${ac_tool_prefix}cc; ac_word=$2
2683 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2684 $as_echo_n "checking for $ac_word... " >&6; }
2685 if test "${ac_cv_prog_CC+set}" = set; then :
2686 $as_echo_n "(cached) " >&6
2687 else
2688 if test -n "$CC"; then
2689 ac_cv_prog_CC="$CC" # Let the user override the test.
2690 else
2691 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2692 for as_dir in $PATH
2694 IFS=$as_save_IFS
2695 test -z "$as_dir" && as_dir=.
2696 for ac_exec_ext in '' $ac_executable_extensions; do
2697 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2698 ac_cv_prog_CC="${ac_tool_prefix}cc"
2699 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2700 break 2
2702 done
2703 done
2704 IFS=$as_save_IFS
2708 CC=$ac_cv_prog_CC
2709 if test -n "$CC"; then
2710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2711 $as_echo "$CC" >&6; }
2712 else
2713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2714 $as_echo "no" >&6; }
2720 if test -z "$CC"; then
2721 # Extract the first word of "cc", so it can be a program name with args.
2722 set dummy cc; ac_word=$2
2723 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2724 $as_echo_n "checking for $ac_word... " >&6; }
2725 if test "${ac_cv_prog_CC+set}" = set; then :
2726 $as_echo_n "(cached) " >&6
2727 else
2728 if test -n "$CC"; then
2729 ac_cv_prog_CC="$CC" # Let the user override the test.
2730 else
2731 ac_prog_rejected=no
2732 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2733 for as_dir in $PATH
2735 IFS=$as_save_IFS
2736 test -z "$as_dir" && as_dir=.
2737 for ac_exec_ext in '' $ac_executable_extensions; do
2738 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2739 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2740 ac_prog_rejected=yes
2741 continue
2743 ac_cv_prog_CC="cc"
2744 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2745 break 2
2747 done
2748 done
2749 IFS=$as_save_IFS
2751 if test $ac_prog_rejected = yes; then
2752 # We found a bogon in the path, so make sure we never use it.
2753 set dummy $ac_cv_prog_CC
2754 shift
2755 if test $# != 0; then
2756 # We chose a different compiler from the bogus one.
2757 # However, it has the same basename, so the bogon will be chosen
2758 # first if we set CC to just the basename; use the full file name.
2759 shift
2760 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2765 CC=$ac_cv_prog_CC
2766 if test -n "$CC"; then
2767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2768 $as_echo "$CC" >&6; }
2769 else
2770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2771 $as_echo "no" >&6; }
2776 if test -z "$CC"; then
2777 if test -n "$ac_tool_prefix"; then
2778 for ac_prog in cl.exe
2780 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2781 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2782 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2783 $as_echo_n "checking for $ac_word... " >&6; }
2784 if test "${ac_cv_prog_CC+set}" = set; then :
2785 $as_echo_n "(cached) " >&6
2786 else
2787 if test -n "$CC"; then
2788 ac_cv_prog_CC="$CC" # Let the user override the test.
2789 else
2790 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2791 for as_dir in $PATH
2793 IFS=$as_save_IFS
2794 test -z "$as_dir" && as_dir=.
2795 for ac_exec_ext in '' $ac_executable_extensions; do
2796 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2797 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2798 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2799 break 2
2801 done
2802 done
2803 IFS=$as_save_IFS
2807 CC=$ac_cv_prog_CC
2808 if test -n "$CC"; then
2809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2810 $as_echo "$CC" >&6; }
2811 else
2812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2813 $as_echo "no" >&6; }
2817 test -n "$CC" && break
2818 done
2820 if test -z "$CC"; then
2821 ac_ct_CC=$CC
2822 for ac_prog in cl.exe
2824 # Extract the first word of "$ac_prog", so it can be a program name with args.
2825 set dummy $ac_prog; ac_word=$2
2826 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2827 $as_echo_n "checking for $ac_word... " >&6; }
2828 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
2829 $as_echo_n "(cached) " >&6
2830 else
2831 if test -n "$ac_ct_CC"; then
2832 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2833 else
2834 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2835 for as_dir in $PATH
2837 IFS=$as_save_IFS
2838 test -z "$as_dir" && as_dir=.
2839 for ac_exec_ext in '' $ac_executable_extensions; do
2840 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2841 ac_cv_prog_ac_ct_CC="$ac_prog"
2842 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2843 break 2
2845 done
2846 done
2847 IFS=$as_save_IFS
2851 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2852 if test -n "$ac_ct_CC"; then
2853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2854 $as_echo "$ac_ct_CC" >&6; }
2855 else
2856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2857 $as_echo "no" >&6; }
2861 test -n "$ac_ct_CC" && break
2862 done
2864 if test "x$ac_ct_CC" = x; then
2865 CC=""
2866 else
2867 case $cross_compiling:$ac_tool_warned in
2868 yes:)
2869 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2870 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2871 ac_tool_warned=yes ;;
2872 esac
2873 CC=$ac_ct_CC
2880 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2881 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2882 as_fn_error "no acceptable C compiler found in \$PATH
2883 See \`config.log' for more details." "$LINENO" 5; }
2885 # Provide some information about the compiler.
2886 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
2887 set X $ac_compile
2888 ac_compiler=$2
2889 for ac_option in --version -v -V -qversion; do
2890 { { ac_try="$ac_compiler $ac_option >&5"
2891 case "(($ac_try" in
2892 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2893 *) ac_try_echo=$ac_try;;
2894 esac
2895 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2896 $as_echo "$ac_try_echo"; } >&5
2897 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
2898 ac_status=$?
2899 if test -s conftest.err; then
2900 sed '10a\
2901 ... rest of stderr output deleted ...
2902 10q' conftest.err >conftest.er1
2903 cat conftest.er1 >&5
2904 rm -f conftest.er1 conftest.err
2906 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2907 test $ac_status = 0; }
2908 done
2910 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2911 /* end confdefs.h. */
2914 main ()
2918 return 0;
2920 _ACEOF
2921 ac_clean_files_save=$ac_clean_files
2922 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
2923 # Try to create an executable without -o first, disregard a.out.
2924 # It will help us diagnose broken compilers, and finding out an intuition
2925 # of exeext.
2926 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
2927 $as_echo_n "checking for C compiler default output file name... " >&6; }
2928 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2930 # The possible output files:
2931 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2933 ac_rmfiles=
2934 for ac_file in $ac_files
2936 case $ac_file in
2937 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2938 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2939 esac
2940 done
2941 rm -f $ac_rmfiles
2943 if { { ac_try="$ac_link_default"
2944 case "(($ac_try" in
2945 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2946 *) ac_try_echo=$ac_try;;
2947 esac
2948 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2949 $as_echo "$ac_try_echo"; } >&5
2950 (eval "$ac_link_default") 2>&5
2951 ac_status=$?
2952 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2953 test $ac_status = 0; }; then :
2954 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2955 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2956 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2957 # so that the user can short-circuit this test for compilers unknown to
2958 # Autoconf.
2959 for ac_file in $ac_files ''
2961 test -f "$ac_file" || continue
2962 case $ac_file in
2963 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
2965 [ab].out )
2966 # We found the default executable, but exeext='' is most
2967 # certainly right.
2968 break;;
2969 *.* )
2970 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2971 then :; else
2972 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2974 # We set ac_cv_exeext here because the later test for it is not
2975 # safe: cross compilers may not add the suffix if given an `-o'
2976 # argument, so we may need to know it at that point already.
2977 # Even if this section looks crufty: it has the advantage of
2978 # actually working.
2979 break;;
2981 break;;
2982 esac
2983 done
2984 test "$ac_cv_exeext" = no && ac_cv_exeext=
2986 else
2987 ac_file=''
2989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
2990 $as_echo "$ac_file" >&6; }
2991 if test -z "$ac_file"; then :
2992 $as_echo "$as_me: failed program was:" >&5
2993 sed 's/^/| /' conftest.$ac_ext >&5
2995 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2996 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2997 { as_fn_set_status 77
2998 as_fn_error "C compiler cannot create executables
2999 See \`config.log' for more details." "$LINENO" 5; }; }
3001 ac_exeext=$ac_cv_exeext
3003 # Check that the compiler produces executables we can run. If not, either
3004 # the compiler is broken, or we cross compile.
3005 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3006 $as_echo_n "checking whether the C compiler works... " >&6; }
3007 # If not cross compiling, check that we can run a simple program.
3008 if test "$cross_compiling" != yes; then
3009 if { ac_try='./$ac_file'
3010 { { case "(($ac_try" in
3011 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3012 *) ac_try_echo=$ac_try;;
3013 esac
3014 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3015 $as_echo "$ac_try_echo"; } >&5
3016 (eval "$ac_try") 2>&5
3017 ac_status=$?
3018 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3019 test $ac_status = 0; }; }; then
3020 cross_compiling=no
3021 else
3022 if test "$cross_compiling" = maybe; then
3023 cross_compiling=yes
3024 else
3025 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3026 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3027 as_fn_error "cannot run C compiled programs.
3028 If you meant to cross compile, use \`--host'.
3029 See \`config.log' for more details." "$LINENO" 5; }
3033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3034 $as_echo "yes" >&6; }
3036 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
3037 ac_clean_files=$ac_clean_files_save
3038 # Check that the compiler produces executables we can run. If not, either
3039 # the compiler is broken, or we cross compile.
3040 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3041 $as_echo_n "checking whether we are cross compiling... " >&6; }
3042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3043 $as_echo "$cross_compiling" >&6; }
3045 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3046 $as_echo_n "checking for suffix of executables... " >&6; }
3047 if { { ac_try="$ac_link"
3048 case "(($ac_try" in
3049 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3050 *) ac_try_echo=$ac_try;;
3051 esac
3052 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3053 $as_echo "$ac_try_echo"; } >&5
3054 (eval "$ac_link") 2>&5
3055 ac_status=$?
3056 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3057 test $ac_status = 0; }; then :
3058 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3059 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3060 # work properly (i.e., refer to `conftest.exe'), while it won't with
3061 # `rm'.
3062 for ac_file in conftest.exe conftest conftest.*; do
3063 test -f "$ac_file" || continue
3064 case $ac_file in
3065 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3066 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3067 break;;
3068 * ) break;;
3069 esac
3070 done
3071 else
3072 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3073 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3074 as_fn_error "cannot compute suffix of executables: cannot compile and link
3075 See \`config.log' for more details." "$LINENO" 5; }
3077 rm -f conftest$ac_cv_exeext
3078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3079 $as_echo "$ac_cv_exeext" >&6; }
3081 rm -f conftest.$ac_ext
3082 EXEEXT=$ac_cv_exeext
3083 ac_exeext=$EXEEXT
3084 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3085 $as_echo_n "checking for suffix of object files... " >&6; }
3086 if test "${ac_cv_objext+set}" = set; then :
3087 $as_echo_n "(cached) " >&6
3088 else
3089 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3090 /* end confdefs.h. */
3093 main ()
3097 return 0;
3099 _ACEOF
3100 rm -f conftest.o conftest.obj
3101 if { { ac_try="$ac_compile"
3102 case "(($ac_try" in
3103 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3104 *) ac_try_echo=$ac_try;;
3105 esac
3106 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3107 $as_echo "$ac_try_echo"; } >&5
3108 (eval "$ac_compile") 2>&5
3109 ac_status=$?
3110 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3111 test $ac_status = 0; }; then :
3112 for ac_file in conftest.o conftest.obj conftest.*; do
3113 test -f "$ac_file" || continue;
3114 case $ac_file in
3115 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3116 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3117 break;;
3118 esac
3119 done
3120 else
3121 $as_echo "$as_me: failed program was:" >&5
3122 sed 's/^/| /' conftest.$ac_ext >&5
3124 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3125 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3126 as_fn_error "cannot compute suffix of object files: cannot compile
3127 See \`config.log' for more details." "$LINENO" 5; }
3129 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3132 $as_echo "$ac_cv_objext" >&6; }
3133 OBJEXT=$ac_cv_objext
3134 ac_objext=$OBJEXT
3135 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3136 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3137 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
3138 $as_echo_n "(cached) " >&6
3139 else
3140 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3141 /* end confdefs.h. */
3144 main ()
3146 #ifndef __GNUC__
3147 choke me
3148 #endif
3151 return 0;
3153 _ACEOF
3154 if ac_fn_c_try_compile "$LINENO"; then :
3155 ac_compiler_gnu=yes
3156 else
3157 ac_compiler_gnu=no
3159 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3160 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3164 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3165 if test $ac_compiler_gnu = yes; then
3166 GCC=yes
3167 else
3168 GCC=
3170 ac_test_CFLAGS=${CFLAGS+set}
3171 ac_save_CFLAGS=$CFLAGS
3172 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3173 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3174 if test "${ac_cv_prog_cc_g+set}" = set; then :
3175 $as_echo_n "(cached) " >&6
3176 else
3177 ac_save_c_werror_flag=$ac_c_werror_flag
3178 ac_c_werror_flag=yes
3179 ac_cv_prog_cc_g=no
3180 CFLAGS="-g"
3181 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3182 /* end confdefs.h. */
3185 main ()
3189 return 0;
3191 _ACEOF
3192 if ac_fn_c_try_compile "$LINENO"; then :
3193 ac_cv_prog_cc_g=yes
3194 else
3195 CFLAGS=""
3196 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3197 /* end confdefs.h. */
3200 main ()
3204 return 0;
3206 _ACEOF
3207 if ac_fn_c_try_compile "$LINENO"; then :
3209 else
3210 ac_c_werror_flag=$ac_save_c_werror_flag
3211 CFLAGS="-g"
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 :
3224 ac_cv_prog_cc_g=yes
3226 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3228 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3230 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3231 ac_c_werror_flag=$ac_save_c_werror_flag
3233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3234 $as_echo "$ac_cv_prog_cc_g" >&6; }
3235 if test "$ac_test_CFLAGS" = set; then
3236 CFLAGS=$ac_save_CFLAGS
3237 elif test $ac_cv_prog_cc_g = yes; then
3238 if test "$GCC" = yes; then
3239 CFLAGS="-g -O2"
3240 else
3241 CFLAGS="-g"
3243 else
3244 if test "$GCC" = yes; then
3245 CFLAGS="-O2"
3246 else
3247 CFLAGS=
3250 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3251 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3252 if test "${ac_cv_prog_cc_c89+set}" = set; then :
3253 $as_echo_n "(cached) " >&6
3254 else
3255 ac_cv_prog_cc_c89=no
3256 ac_save_CC=$CC
3257 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3258 /* end confdefs.h. */
3259 #include <stdarg.h>
3260 #include <stdio.h>
3261 #include <sys/types.h>
3262 #include <sys/stat.h>
3263 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3264 struct buf { int x; };
3265 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3266 static char *e (p, i)
3267 char **p;
3268 int i;
3270 return p[i];
3272 static char *f (char * (*g) (char **, int), char **p, ...)
3274 char *s;
3275 va_list v;
3276 va_start (v,p);
3277 s = g (p, va_arg (v,int));
3278 va_end (v);
3279 return s;
3282 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3283 function prototypes and stuff, but not '\xHH' hex character constants.
3284 These don't provoke an error unfortunately, instead are silently treated
3285 as 'x'. The following induces an error, until -std is added to get
3286 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3287 array size at least. It's necessary to write '\x00'==0 to get something
3288 that's true only with -std. */
3289 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3291 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3292 inside strings and character constants. */
3293 #define FOO(x) 'x'
3294 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3296 int test (int i, double x);
3297 struct s1 {int (*f) (int a);};
3298 struct s2 {int (*f) (double a);};
3299 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3300 int argc;
3301 char **argv;
3303 main ()
3305 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3307 return 0;
3309 _ACEOF
3310 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3311 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3313 CC="$ac_save_CC $ac_arg"
3314 if ac_fn_c_try_compile "$LINENO"; then :
3315 ac_cv_prog_cc_c89=$ac_arg
3317 rm -f core conftest.err conftest.$ac_objext
3318 test "x$ac_cv_prog_cc_c89" != "xno" && break
3319 done
3320 rm -f conftest.$ac_ext
3321 CC=$ac_save_CC
3324 # AC_CACHE_VAL
3325 case "x$ac_cv_prog_cc_c89" in
3327 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3328 $as_echo "none needed" >&6; } ;;
3329 xno)
3330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3331 $as_echo "unsupported" >&6; } ;;
3333 CC="$CC $ac_cv_prog_cc_c89"
3334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3335 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3336 esac
3337 if test "x$ac_cv_prog_cc_c89" != xno; then :
3341 ac_ext=c
3342 ac_cpp='$CPP $CPPFLAGS'
3343 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3344 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3345 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3348 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing strerror" >&5
3349 $as_echo_n "checking for library containing strerror... " >&6; }
3350 if test "${ac_cv_search_strerror+set}" = set; then :
3351 $as_echo_n "(cached) " >&6
3352 else
3353 ac_func_search_save_LIBS=$LIBS
3354 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3355 /* end confdefs.h. */
3357 /* Override any GCC internal prototype to avoid an error.
3358 Use char because int might match the return type of a GCC
3359 builtin and then its argument prototype would still apply. */
3360 #ifdef __cplusplus
3361 extern "C"
3362 #endif
3363 char strerror ();
3365 main ()
3367 return strerror ();
3369 return 0;
3371 _ACEOF
3372 for ac_lib in '' cposix; do
3373 if test -z "$ac_lib"; then
3374 ac_res="none required"
3375 else
3376 ac_res=-l$ac_lib
3377 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
3379 if ac_fn_c_try_link "$LINENO"; then :
3380 ac_cv_search_strerror=$ac_res
3382 rm -f core conftest.err conftest.$ac_objext \
3383 conftest$ac_exeext
3384 if test "${ac_cv_search_strerror+set}" = set; then :
3385 break
3387 done
3388 if test "${ac_cv_search_strerror+set}" = set; then :
3390 else
3391 ac_cv_search_strerror=no
3393 rm conftest.$ac_ext
3394 LIBS=$ac_func_search_save_LIBS
3396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_strerror" >&5
3397 $as_echo "$ac_cv_search_strerror" >&6; }
3398 ac_res=$ac_cv_search_strerror
3399 if test "$ac_res" != no; then :
3400 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
3405 BFD_VERSION=`sed -n -e 's/^.._INIT_AUTOMAKE.*,[ ]*\([^ ]*\)[ ]*).*/\1/p' < ${srcdir}/../bfd/configure.in`
3406 am__api_version='1.11'
3408 # Find a good install program. We prefer a C program (faster),
3409 # so one script is as good as another. But avoid the broken or
3410 # incompatible versions:
3411 # SysV /etc/install, /usr/sbin/install
3412 # SunOS /usr/etc/install
3413 # IRIX /sbin/install
3414 # AIX /bin/install
3415 # AmigaOS /C/install, which installs bootblocks on floppy discs
3416 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3417 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3418 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3419 # OS/2's system install, which has a completely different semantic
3420 # ./install, which can be erroneously created by make from ./install.sh.
3421 # Reject install programs that cannot install multiple files.
3422 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
3423 $as_echo_n "checking for a BSD-compatible install... " >&6; }
3424 if test -z "$INSTALL"; then
3425 if test "${ac_cv_path_install+set}" = set; then :
3426 $as_echo_n "(cached) " >&6
3427 else
3428 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3429 for as_dir in $PATH
3431 IFS=$as_save_IFS
3432 test -z "$as_dir" && as_dir=.
3433 # Account for people who put trailing slashes in PATH elements.
3434 case $as_dir/ in #((
3435 ./ | .// | /[cC]/* | \
3436 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3437 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
3438 /usr/ucb/* ) ;;
3440 # OSF1 and SCO ODT 3.0 have their own names for install.
3441 # Don't use installbsd from OSF since it installs stuff as root
3442 # by default.
3443 for ac_prog in ginstall scoinst install; do
3444 for ac_exec_ext in '' $ac_executable_extensions; do
3445 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
3446 if test $ac_prog = install &&
3447 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3448 # AIX install. It has an incompatible calling convention.
3450 elif test $ac_prog = install &&
3451 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3452 # program-specific install script used by HP pwplus--don't use.
3454 else
3455 rm -rf conftest.one conftest.two conftest.dir
3456 echo one > conftest.one
3457 echo two > conftest.two
3458 mkdir conftest.dir
3459 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
3460 test -s conftest.one && test -s conftest.two &&
3461 test -s conftest.dir/conftest.one &&
3462 test -s conftest.dir/conftest.two
3463 then
3464 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3465 break 3
3469 done
3470 done
3472 esac
3474 done
3475 IFS=$as_save_IFS
3477 rm -rf conftest.one conftest.two conftest.dir
3480 if test "${ac_cv_path_install+set}" = set; then
3481 INSTALL=$ac_cv_path_install
3482 else
3483 # As a last resort, use the slow shell script. Don't cache a
3484 # value for INSTALL within a source directory, because that will
3485 # break other packages using the cache if that directory is
3486 # removed, or if the value is a relative name.
3487 INSTALL=$ac_install_sh
3490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
3491 $as_echo "$INSTALL" >&6; }
3493 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3494 # It thinks the first close brace ends the variable substitution.
3495 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3497 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3499 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3501 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
3502 $as_echo_n "checking whether build environment is sane... " >&6; }
3503 # Just in case
3504 sleep 1
3505 echo timestamp > conftest.file
3506 # Reject unsafe characters in $srcdir or the absolute working directory
3507 # name. Accept space and tab only in the latter.
3508 am_lf='
3510 case `pwd` in
3511 *[\\\"\#\$\&\'\`$am_lf]*)
3512 as_fn_error "unsafe absolute working directory name" "$LINENO" 5;;
3513 esac
3514 case $srcdir in
3515 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
3516 as_fn_error "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
3517 esac
3519 # Do `set' in a subshell so we don't clobber the current shell's
3520 # arguments. Must try -L first in case configure is actually a
3521 # symlink; some systems play weird games with the mod time of symlinks
3522 # (eg FreeBSD returns the mod time of the symlink's containing
3523 # directory).
3524 if (
3525 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
3526 if test "$*" = "X"; then
3527 # -L didn't work.
3528 set X `ls -t "$srcdir/configure" conftest.file`
3530 rm -f conftest.file
3531 if test "$*" != "X $srcdir/configure conftest.file" \
3532 && test "$*" != "X conftest.file $srcdir/configure"; then
3534 # If neither matched, then we have a broken ls. This can happen
3535 # if, for instance, CONFIG_SHELL is bash and it inherits a
3536 # broken ls alias from the environment. This has actually
3537 # happened. Such a system could not be considered "sane".
3538 as_fn_error "ls -t appears to fail. Make sure there is not a broken
3539 alias in your environment" "$LINENO" 5
3542 test "$2" = conftest.file
3544 then
3545 # Ok.
3547 else
3548 as_fn_error "newly created file is older than distributed files!
3549 Check your system clock" "$LINENO" 5
3551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3552 $as_echo "yes" >&6; }
3553 test "$program_prefix" != NONE &&
3554 program_transform_name="s&^&$program_prefix&;$program_transform_name"
3555 # Use a double $ so make ignores it.
3556 test "$program_suffix" != NONE &&
3557 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3558 # Double any \ or $.
3559 # By default was `s,x,x', remove it if useless.
3560 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3561 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
3563 # expand $ac_aux_dir to an absolute path
3564 am_aux_dir=`cd $ac_aux_dir && pwd`
3566 if test x"${MISSING+set}" != xset; then
3567 case $am_aux_dir in
3568 *\ * | *\ *)
3569 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
3571 MISSING="\${SHELL} $am_aux_dir/missing" ;;
3572 esac
3574 # Use eval to expand $SHELL
3575 if eval "$MISSING --run true"; then
3576 am_missing_run="$MISSING --run "
3577 else
3578 am_missing_run=
3579 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
3580 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
3583 if test x"${install_sh}" != xset; then
3584 case $am_aux_dir in
3585 *\ * | *\ *)
3586 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
3588 install_sh="\${SHELL} $am_aux_dir/install-sh"
3589 esac
3592 # Installed binaries are usually stripped using `strip' when the user
3593 # run `make install-strip'. However `strip' might not be the right
3594 # tool to use in cross-compilation environments, therefore Automake
3595 # will honor the `STRIP' environment variable to overrule this program.
3596 if test "$cross_compiling" != no; then
3597 if test -n "$ac_tool_prefix"; then
3598 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3599 set dummy ${ac_tool_prefix}strip; ac_word=$2
3600 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3601 $as_echo_n "checking for $ac_word... " >&6; }
3602 if test "${ac_cv_prog_STRIP+set}" = set; then :
3603 $as_echo_n "(cached) " >&6
3604 else
3605 if test -n "$STRIP"; then
3606 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3607 else
3608 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3609 for as_dir in $PATH
3611 IFS=$as_save_IFS
3612 test -z "$as_dir" && as_dir=.
3613 for ac_exec_ext in '' $ac_executable_extensions; do
3614 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3615 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3616 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3617 break 2
3619 done
3620 done
3621 IFS=$as_save_IFS
3625 STRIP=$ac_cv_prog_STRIP
3626 if test -n "$STRIP"; then
3627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3628 $as_echo "$STRIP" >&6; }
3629 else
3630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3631 $as_echo "no" >&6; }
3636 if test -z "$ac_cv_prog_STRIP"; then
3637 ac_ct_STRIP=$STRIP
3638 # Extract the first word of "strip", so it can be a program name with args.
3639 set dummy strip; ac_word=$2
3640 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3641 $as_echo_n "checking for $ac_word... " >&6; }
3642 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
3643 $as_echo_n "(cached) " >&6
3644 else
3645 if test -n "$ac_ct_STRIP"; then
3646 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3647 else
3648 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3649 for as_dir in $PATH
3651 IFS=$as_save_IFS
3652 test -z "$as_dir" && as_dir=.
3653 for ac_exec_ext in '' $ac_executable_extensions; do
3654 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3655 ac_cv_prog_ac_ct_STRIP="strip"
3656 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3657 break 2
3659 done
3660 done
3661 IFS=$as_save_IFS
3665 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3666 if test -n "$ac_ct_STRIP"; then
3667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3668 $as_echo "$ac_ct_STRIP" >&6; }
3669 else
3670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3671 $as_echo "no" >&6; }
3674 if test "x$ac_ct_STRIP" = x; then
3675 STRIP=":"
3676 else
3677 case $cross_compiling:$ac_tool_warned in
3678 yes:)
3679 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3680 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3681 ac_tool_warned=yes ;;
3682 esac
3683 STRIP=$ac_ct_STRIP
3685 else
3686 STRIP="$ac_cv_prog_STRIP"
3690 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3692 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
3693 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3694 if test -z "$MKDIR_P"; then
3695 if test "${ac_cv_path_mkdir+set}" = set; then :
3696 $as_echo_n "(cached) " >&6
3697 else
3698 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3699 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3701 IFS=$as_save_IFS
3702 test -z "$as_dir" && as_dir=.
3703 for ac_prog in mkdir gmkdir; do
3704 for ac_exec_ext in '' $ac_executable_extensions; do
3705 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
3706 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3707 'mkdir (GNU coreutils) '* | \
3708 'mkdir (coreutils) '* | \
3709 'mkdir (fileutils) '4.1*)
3710 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
3711 break 3;;
3712 esac
3713 done
3714 done
3715 done
3716 IFS=$as_save_IFS
3720 if test "${ac_cv_path_mkdir+set}" = set; then
3721 MKDIR_P="$ac_cv_path_mkdir -p"
3722 else
3723 # As a last resort, use the slow shell script. Don't cache a
3724 # value for MKDIR_P within a source directory, because that will
3725 # break other packages using the cache if that directory is
3726 # removed, or if the value is a relative name.
3727 test -d ./--version && rmdir ./--version
3728 MKDIR_P="$ac_install_sh -d"
3731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3732 $as_echo "$MKDIR_P" >&6; }
3734 mkdir_p="$MKDIR_P"
3735 case $mkdir_p in
3736 [\\/$]* | ?:[\\/]*) ;;
3737 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
3738 esac
3740 for ac_prog in gawk mawk nawk awk
3742 # Extract the first word of "$ac_prog", so it can be a program name with args.
3743 set dummy $ac_prog; ac_word=$2
3744 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3745 $as_echo_n "checking for $ac_word... " >&6; }
3746 if test "${ac_cv_prog_AWK+set}" = set; then :
3747 $as_echo_n "(cached) " >&6
3748 else
3749 if test -n "$AWK"; then
3750 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3751 else
3752 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3753 for as_dir in $PATH
3755 IFS=$as_save_IFS
3756 test -z "$as_dir" && as_dir=.
3757 for ac_exec_ext in '' $ac_executable_extensions; do
3758 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3759 ac_cv_prog_AWK="$ac_prog"
3760 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3761 break 2
3763 done
3764 done
3765 IFS=$as_save_IFS
3769 AWK=$ac_cv_prog_AWK
3770 if test -n "$AWK"; then
3771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3772 $as_echo "$AWK" >&6; }
3773 else
3774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3775 $as_echo "no" >&6; }
3779 test -n "$AWK" && break
3780 done
3782 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3783 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3784 set x ${MAKE-make}
3785 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3786 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
3787 $as_echo_n "(cached) " >&6
3788 else
3789 cat >conftest.make <<\_ACEOF
3790 SHELL = /bin/sh
3791 all:
3792 @echo '@@@%%%=$(MAKE)=@@@%%%'
3793 _ACEOF
3794 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3795 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3796 *@@@%%%=?*=@@@%%%*)
3797 eval ac_cv_prog_make_${ac_make}_set=yes;;
3799 eval ac_cv_prog_make_${ac_make}_set=no;;
3800 esac
3801 rm -f conftest.make
3803 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3805 $as_echo "yes" >&6; }
3806 SET_MAKE=
3807 else
3808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3809 $as_echo "no" >&6; }
3810 SET_MAKE="MAKE=${MAKE-make}"
3813 rm -rf .tst 2>/dev/null
3814 mkdir .tst 2>/dev/null
3815 if test -d .tst; then
3816 am__leading_dot=.
3817 else
3818 am__leading_dot=_
3820 rmdir .tst 2>/dev/null
3822 DEPDIR="${am__leading_dot}deps"
3824 ac_config_commands="$ac_config_commands depfiles"
3827 am_make=${MAKE-make}
3828 cat > confinc << 'END'
3829 am__doit:
3830 @echo this is the am__doit target
3831 .PHONY: am__doit
3833 # If we don't find an include directive, just comment out the code.
3834 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3835 $as_echo_n "checking for style of include used by $am_make... " >&6; }
3836 am__include="#"
3837 am__quote=
3838 _am_result=none
3839 # First try GNU make style include.
3840 echo "include confinc" > confmf
3841 # Ignore all kinds of additional output from `make'.
3842 case `$am_make -s -f confmf 2> /dev/null` in #(
3843 *the\ am__doit\ target*)
3844 am__include=include
3845 am__quote=
3846 _am_result=GNU
3848 esac
3849 # Now try BSD make style include.
3850 if test "$am__include" = "#"; then
3851 echo '.include "confinc"' > confmf
3852 case `$am_make -s -f confmf 2> /dev/null` in #(
3853 *the\ am__doit\ target*)
3854 am__include=.include
3855 am__quote="\""
3856 _am_result=BSD
3858 esac
3862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3863 $as_echo "$_am_result" >&6; }
3864 rm -f confinc confmf
3866 # Check whether --enable-dependency-tracking was given.
3867 if test "${enable_dependency_tracking+set}" = set; then :
3868 enableval=$enable_dependency_tracking;
3871 if test "x$enable_dependency_tracking" != xno; then
3872 am_depcomp="$ac_aux_dir/depcomp"
3873 AMDEPBACKSLASH='\'
3875 if test "x$enable_dependency_tracking" != xno; then
3876 AMDEP_TRUE=
3877 AMDEP_FALSE='#'
3878 else
3879 AMDEP_TRUE='#'
3880 AMDEP_FALSE=
3884 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3885 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3886 # is not polluted with repeated "-I."
3887 am__isrc=' -I$(srcdir)'
3888 # test to see if srcdir already configured
3889 if test -f $srcdir/config.status; then
3890 as_fn_error "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3894 # test whether we have cygpath
3895 if test -z "$CYGPATH_W"; then
3896 if (cygpath --version) >/dev/null 2>/dev/null; then
3897 CYGPATH_W='cygpath -w'
3898 else
3899 CYGPATH_W=echo
3904 # Define the identity of the package.
3905 PACKAGE=ld
3906 VERSION=${BFD_VERSION}
3909 cat >>confdefs.h <<_ACEOF
3910 #define PACKAGE "$PACKAGE"
3911 _ACEOF
3914 cat >>confdefs.h <<_ACEOF
3915 #define VERSION "$VERSION"
3916 _ACEOF
3918 # Some tools Automake needs.
3920 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3923 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3926 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3929 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3932 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3934 # We need awk for the "check" target. The system "awk" is bad on
3935 # some platforms.
3936 # Always define AMTAR for backward compatibility.
3938 AMTAR=${AMTAR-"${am_missing_run}tar"}
3940 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
3945 depcc="$CC" am_compiler_list=
3947 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3948 $as_echo_n "checking dependency style of $depcc... " >&6; }
3949 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
3950 $as_echo_n "(cached) " >&6
3951 else
3952 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3953 # We make a subdir and do the tests there. Otherwise we can end up
3954 # making bogus files that we don't know about and never remove. For
3955 # instance it was reported that on HP-UX the gcc test will end up
3956 # making a dummy file named `D' -- because `-MD' means `put the output
3957 # in D'.
3958 mkdir conftest.dir
3959 # Copy depcomp to subdir because otherwise we won't find it if we're
3960 # using a relative directory.
3961 cp "$am_depcomp" conftest.dir
3962 cd conftest.dir
3963 # We will build objects and dependencies in a subdirectory because
3964 # it helps to detect inapplicable dependency modes. For instance
3965 # both Tru64's cc and ICC support -MD to output dependencies as a
3966 # side effect of compilation, but ICC will put the dependencies in
3967 # the current directory while Tru64 will put them in the object
3968 # directory.
3969 mkdir sub
3971 am_cv_CC_dependencies_compiler_type=none
3972 if test "$am_compiler_list" = ""; then
3973 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3975 am__universal=false
3976 case " $depcc " in #(
3977 *\ -arch\ *\ -arch\ *) am__universal=true ;;
3978 esac
3980 for depmode in $am_compiler_list; do
3981 # Setup a source with many dependencies, because some compilers
3982 # like to wrap large dependency lists on column 80 (with \), and
3983 # we should not choose a depcomp mode which is confused by this.
3985 # We need to recreate these files for each test, as the compiler may
3986 # overwrite some of them when testing with obscure command lines.
3987 # This happens at least with the AIX C compiler.
3988 : > sub/conftest.c
3989 for i in 1 2 3 4 5 6; do
3990 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3991 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3992 # Solaris 8's {/usr,}/bin/sh.
3993 touch sub/conftst$i.h
3994 done
3995 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3997 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3998 # mode. It turns out that the SunPro C++ compiler does not properly
3999 # handle `-M -o', and we need to detect this. Also, some Intel
4000 # versions had trouble with output in subdirs
4001 am__obj=sub/conftest.${OBJEXT-o}
4002 am__minus_obj="-o $am__obj"
4003 case $depmode in
4004 gcc)
4005 # This depmode causes a compiler race in universal mode.
4006 test "$am__universal" = false || continue
4008 nosideeffect)
4009 # after this tag, mechanisms are not by side-effect, so they'll
4010 # only be used when explicitly requested
4011 if test "x$enable_dependency_tracking" = xyes; then
4012 continue
4013 else
4014 break
4017 msvisualcpp | msvcmsys)
4018 # This compiler won't grok `-c -o', but also, the minuso test has
4019 # not run yet. These depmodes are late enough in the game, and
4020 # so weak that their functioning should not be impacted.
4021 am__obj=conftest.${OBJEXT-o}
4022 am__minus_obj=
4024 none) break ;;
4025 esac
4026 if depmode=$depmode \
4027 source=sub/conftest.c object=$am__obj \
4028 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4029 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4030 >/dev/null 2>conftest.err &&
4031 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4032 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4033 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4034 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4035 # icc doesn't choke on unknown options, it will just issue warnings
4036 # or remarks (even with -Werror). So we grep stderr for any message
4037 # that says an option was ignored or not supported.
4038 # When given -MP, icc 7.0 and 7.1 complain thusly:
4039 # icc: Command line warning: ignoring option '-M'; no argument required
4040 # The diagnosis changed in icc 8.0:
4041 # icc: Command line remark: option '-MP' not supported
4042 if (grep 'ignoring option' conftest.err ||
4043 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4044 am_cv_CC_dependencies_compiler_type=$depmode
4045 break
4048 done
4050 cd ..
4051 rm -rf conftest.dir
4052 else
4053 am_cv_CC_dependencies_compiler_type=none
4057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4058 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4059 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4062 test "x$enable_dependency_tracking" != xno \
4063 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4064 am__fastdepCC_TRUE=
4065 am__fastdepCC_FALSE='#'
4066 else
4067 am__fastdepCC_TRUE='#'
4068 am__fastdepCC_FALSE=
4074 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
4075 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
4076 # Check whether --enable-maintainer-mode was given.
4077 if test "${enable_maintainer_mode+set}" = set; then :
4078 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
4079 else
4080 USE_MAINTAINER_MODE=no
4083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
4084 $as_echo "$USE_MAINTAINER_MODE" >&6; }
4085 if test $USE_MAINTAINER_MODE = yes; then
4086 MAINTAINER_MODE_TRUE=
4087 MAINTAINER_MODE_FALSE='#'
4088 else
4089 MAINTAINER_MODE_TRUE='#'
4090 MAINTAINER_MODE_FALSE=
4093 MAINT=$MAINTAINER_MODE_TRUE
4098 # Check whether --with-lib-path was given.
4099 if test "${with_lib_path+set}" = set; then :
4100 withval=$with_lib_path; LIB_PATH=$withval
4103 # Check whether --enable-targets was given.
4104 if test "${enable_targets+set}" = set; then :
4105 enableval=$enable_targets; case "${enableval}" in
4106 yes | "") as_fn_error "enable-targets option must specify target names or 'all'" "$LINENO" 5
4108 no) enable_targets= ;;
4109 *) enable_targets=$enableval ;;
4110 esac
4112 # Check whether --enable-64-bit-bfd was given.
4113 if test "${enable_64_bit_bfd+set}" = set; then :
4114 enableval=$enable_64_bit_bfd; case "${enableval}" in
4115 yes) want64=true ;;
4116 no) want64=false ;;
4117 *) as_fn_error "bad value ${enableval} for 64-bit-bfd option" "$LINENO" 5 ;;
4118 esac
4119 else
4120 want64=false
4124 # Check whether --with-sysroot was given.
4125 if test "${with_sysroot+set}" = set; then :
4126 withval=$with_sysroot;
4127 case ${with_sysroot} in
4128 yes) TARGET_SYSTEM_ROOT='${exec_prefix}/${target_alias}/sys-root' ;;
4129 *) TARGET_SYSTEM_ROOT=$with_sysroot ;;
4130 esac
4132 TARGET_SYSTEM_ROOT_DEFINE='-DTARGET_SYSTEM_ROOT=\"$(TARGET_SYSTEM_ROOT)\"'
4133 use_sysroot=yes
4135 if test "x$prefix" = xNONE; then
4136 test_prefix=/usr/local
4137 else
4138 test_prefix=$prefix
4140 if test "x$exec_prefix" = xNONE; then
4141 test_exec_prefix=$test_prefix
4142 else
4143 test_exec_prefix=$exec_prefix
4145 case ${TARGET_SYSTEM_ROOT} in
4146 "${test_prefix}"|"${test_prefix}/"*|\
4147 "${test_exec_prefix}"|"${test_exec_prefix}/"*|\
4148 '${prefix}'|'${prefix}/'*|\
4149 '${exec_prefix}'|'${exec_prefix}/'*)
4150 t="$TARGET_SYSTEM_ROOT_DEFINE -DTARGET_SYSTEM_ROOT_RELOCATABLE"
4151 TARGET_SYSTEM_ROOT_DEFINE="$t"
4153 esac
4155 else
4157 use_sysroot=no
4158 TARGET_SYSTEM_ROOT=
4159 TARGET_SYSTEM_ROOT_DEFINE='-DTARGET_SYSTEM_ROOT=\"\"'
4167 # Check whether --enable-got was given.
4168 if test "${enable_got+set}" = set; then :
4169 enableval=$enable_got; case "${enableval}" in
4170 target | single | negative | multigot) got_handling=$enableval ;;
4171 *) as_fn_error "bad value ${enableval} for --enable-got option" "$LINENO" 5 ;;
4172 esac
4173 else
4174 got_handling=target
4178 case "${got_handling}" in
4179 target)
4181 $as_echo "#define GOT_HANDLING_DEFAULT GOT_HANDLING_TARGET_DEFAULT" >>confdefs.h
4183 single)
4185 $as_echo "#define GOT_HANDLING_DEFAULT GOT_HANDLING_SINGLE" >>confdefs.h
4187 negative)
4189 $as_echo "#define GOT_HANDLING_DEFAULT GOT_HANDLING_NEGATIVE" >>confdefs.h
4191 multigot)
4193 $as_echo "#define GOT_HANDLING_DEFAULT GOT_HANDLING_MULTIGOT" >>confdefs.h
4195 *) as_fn_error "bad value ${got_handling} for --enable-got option" "$LINENO" 5 ;;
4196 esac
4199 GCC_WARN_CFLAGS="-W -Wall -Wstrict-prototypes -Wmissing-prototypes -Wshadow"
4201 # Check whether --enable-werror was given.
4202 if test "${enable_werror+set}" = set; then :
4203 enableval=$enable_werror; case "${enableval}" in
4204 yes | y) ERROR_ON_WARNING="yes" ;;
4205 no | n) ERROR_ON_WARNING="no" ;;
4206 *) as_fn_error "bad value ${enableval} for --enable-werror" "$LINENO" 5 ;;
4207 esac
4211 # Enable -Wno-format by default when using gcc on mingw
4212 case "${host}" in
4213 *-*-mingw32*)
4214 if test "${GCC}" = yes -a -z "${ERROR_ON_WARNING}" ; then
4215 GCC_WARN_CFLAGS="$GCC_WARN_CFLAGS -Wno-format"
4218 *) ;;
4219 esac
4221 # Enable -Werror by default when using gcc
4222 if test "${GCC}" = yes -a -z "${ERROR_ON_WARNING}" ; then
4223 ERROR_ON_WARNING=yes
4226 NO_WERROR=
4227 if test "${ERROR_ON_WARNING}" = yes ; then
4228 GCC_WARN_CFLAGS="$GCC_WARN_CFLAGS -Werror"
4229 NO_WERROR="-Wno-error"
4232 if test "${GCC}" = yes ; then
4233 WARN_CFLAGS="${GCC_WARN_CFLAGS}"
4236 # Check whether --enable-build-warnings was given.
4237 if test "${enable_build_warnings+set}" = set; then :
4238 enableval=$enable_build_warnings; case "${enableval}" in
4239 yes) WARN_CFLAGS="${GCC_WARN_CFLAGS}";;
4240 no) if test "${GCC}" = yes ; then
4241 WARN_CFLAGS="-w"
4242 fi;;
4243 ,*) t=`echo "${enableval}" | sed -e "s/,/ /g"`
4244 WARN_CFLAGS="${GCC_WARN_CFLAGS} ${t}";;
4245 *,) t=`echo "${enableval}" | sed -e "s/,/ /g"`
4246 WARN_CFLAGS="${t} ${GCC_WARN_CFLAGS}";;
4247 *) WARN_CFLAGS=`echo "${enableval}" | sed -e "s/,/ /g"`;;
4248 esac
4252 if test x"$silent" != x"yes" && test x"$WARN_CFLAGS" != x""; then
4253 echo "Setting warning flags = $WARN_CFLAGS" 6>&1
4260 ac_config_headers="$ac_config_headers config.h:config.in"
4263 if test -z "$target" ; then
4264 as_fn_error "Unrecognized target system type; please check config.sub." "$LINENO" 5
4266 if test -z "$host" ; then
4267 as_fn_error "Unrecognized host system type; please check config.sub." "$LINENO" 5
4270 # host-specific stuff:
4272 ac_ext=c
4273 ac_cpp='$CPP $CPPFLAGS'
4274 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4275 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4276 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4277 if test -n "$ac_tool_prefix"; then
4278 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4279 set dummy ${ac_tool_prefix}gcc; ac_word=$2
4280 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4281 $as_echo_n "checking for $ac_word... " >&6; }
4282 if test "${ac_cv_prog_CC+set}" = set; then :
4283 $as_echo_n "(cached) " >&6
4284 else
4285 if test -n "$CC"; then
4286 ac_cv_prog_CC="$CC" # Let the user override the test.
4287 else
4288 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4289 for as_dir in $PATH
4291 IFS=$as_save_IFS
4292 test -z "$as_dir" && as_dir=.
4293 for ac_exec_ext in '' $ac_executable_extensions; do
4294 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4295 ac_cv_prog_CC="${ac_tool_prefix}gcc"
4296 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4297 break 2
4299 done
4300 done
4301 IFS=$as_save_IFS
4305 CC=$ac_cv_prog_CC
4306 if test -n "$CC"; then
4307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4308 $as_echo "$CC" >&6; }
4309 else
4310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4311 $as_echo "no" >&6; }
4316 if test -z "$ac_cv_prog_CC"; then
4317 ac_ct_CC=$CC
4318 # Extract the first word of "gcc", so it can be a program name with args.
4319 set dummy gcc; ac_word=$2
4320 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4321 $as_echo_n "checking for $ac_word... " >&6; }
4322 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
4323 $as_echo_n "(cached) " >&6
4324 else
4325 if test -n "$ac_ct_CC"; then
4326 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4327 else
4328 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4329 for as_dir in $PATH
4331 IFS=$as_save_IFS
4332 test -z "$as_dir" && as_dir=.
4333 for ac_exec_ext in '' $ac_executable_extensions; do
4334 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4335 ac_cv_prog_ac_ct_CC="gcc"
4336 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4337 break 2
4339 done
4340 done
4341 IFS=$as_save_IFS
4345 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4346 if test -n "$ac_ct_CC"; then
4347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4348 $as_echo "$ac_ct_CC" >&6; }
4349 else
4350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4351 $as_echo "no" >&6; }
4354 if test "x$ac_ct_CC" = x; then
4355 CC=""
4356 else
4357 case $cross_compiling:$ac_tool_warned in
4358 yes:)
4359 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4360 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4361 ac_tool_warned=yes ;;
4362 esac
4363 CC=$ac_ct_CC
4365 else
4366 CC="$ac_cv_prog_CC"
4369 if test -z "$CC"; then
4370 if test -n "$ac_tool_prefix"; then
4371 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4372 set dummy ${ac_tool_prefix}cc; ac_word=$2
4373 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4374 $as_echo_n "checking for $ac_word... " >&6; }
4375 if test "${ac_cv_prog_CC+set}" = set; then :
4376 $as_echo_n "(cached) " >&6
4377 else
4378 if test -n "$CC"; then
4379 ac_cv_prog_CC="$CC" # Let the user override the test.
4380 else
4381 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4382 for as_dir in $PATH
4384 IFS=$as_save_IFS
4385 test -z "$as_dir" && as_dir=.
4386 for ac_exec_ext in '' $ac_executable_extensions; do
4387 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4388 ac_cv_prog_CC="${ac_tool_prefix}cc"
4389 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4390 break 2
4392 done
4393 done
4394 IFS=$as_save_IFS
4398 CC=$ac_cv_prog_CC
4399 if test -n "$CC"; then
4400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4401 $as_echo "$CC" >&6; }
4402 else
4403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4404 $as_echo "no" >&6; }
4410 if test -z "$CC"; then
4411 # Extract the first word of "cc", so it can be a program name with args.
4412 set dummy cc; ac_word=$2
4413 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4414 $as_echo_n "checking for $ac_word... " >&6; }
4415 if test "${ac_cv_prog_CC+set}" = set; then :
4416 $as_echo_n "(cached) " >&6
4417 else
4418 if test -n "$CC"; then
4419 ac_cv_prog_CC="$CC" # Let the user override the test.
4420 else
4421 ac_prog_rejected=no
4422 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4423 for as_dir in $PATH
4425 IFS=$as_save_IFS
4426 test -z "$as_dir" && as_dir=.
4427 for ac_exec_ext in '' $ac_executable_extensions; do
4428 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4429 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4430 ac_prog_rejected=yes
4431 continue
4433 ac_cv_prog_CC="cc"
4434 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4435 break 2
4437 done
4438 done
4439 IFS=$as_save_IFS
4441 if test $ac_prog_rejected = yes; then
4442 # We found a bogon in the path, so make sure we never use it.
4443 set dummy $ac_cv_prog_CC
4444 shift
4445 if test $# != 0; then
4446 # We chose a different compiler from the bogus one.
4447 # However, it has the same basename, so the bogon will be chosen
4448 # first if we set CC to just the basename; use the full file name.
4449 shift
4450 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4455 CC=$ac_cv_prog_CC
4456 if test -n "$CC"; then
4457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4458 $as_echo "$CC" >&6; }
4459 else
4460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4461 $as_echo "no" >&6; }
4466 if test -z "$CC"; then
4467 if test -n "$ac_tool_prefix"; then
4468 for ac_prog in cl.exe
4470 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4471 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4472 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4473 $as_echo_n "checking for $ac_word... " >&6; }
4474 if test "${ac_cv_prog_CC+set}" = set; then :
4475 $as_echo_n "(cached) " >&6
4476 else
4477 if test -n "$CC"; then
4478 ac_cv_prog_CC="$CC" # Let the user override the test.
4479 else
4480 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4481 for as_dir in $PATH
4483 IFS=$as_save_IFS
4484 test -z "$as_dir" && as_dir=.
4485 for ac_exec_ext in '' $ac_executable_extensions; do
4486 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4487 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4488 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4489 break 2
4491 done
4492 done
4493 IFS=$as_save_IFS
4497 CC=$ac_cv_prog_CC
4498 if test -n "$CC"; then
4499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4500 $as_echo "$CC" >&6; }
4501 else
4502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4503 $as_echo "no" >&6; }
4507 test -n "$CC" && break
4508 done
4510 if test -z "$CC"; then
4511 ac_ct_CC=$CC
4512 for ac_prog in cl.exe
4514 # Extract the first word of "$ac_prog", so it can be a program name with args.
4515 set dummy $ac_prog; ac_word=$2
4516 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4517 $as_echo_n "checking for $ac_word... " >&6; }
4518 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
4519 $as_echo_n "(cached) " >&6
4520 else
4521 if test -n "$ac_ct_CC"; then
4522 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4523 else
4524 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4525 for as_dir in $PATH
4527 IFS=$as_save_IFS
4528 test -z "$as_dir" && as_dir=.
4529 for ac_exec_ext in '' $ac_executable_extensions; do
4530 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4531 ac_cv_prog_ac_ct_CC="$ac_prog"
4532 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4533 break 2
4535 done
4536 done
4537 IFS=$as_save_IFS
4541 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4542 if test -n "$ac_ct_CC"; then
4543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4544 $as_echo "$ac_ct_CC" >&6; }
4545 else
4546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4547 $as_echo "no" >&6; }
4551 test -n "$ac_ct_CC" && break
4552 done
4554 if test "x$ac_ct_CC" = x; then
4555 CC=""
4556 else
4557 case $cross_compiling:$ac_tool_warned in
4558 yes:)
4559 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4560 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4561 ac_tool_warned=yes ;;
4562 esac
4563 CC=$ac_ct_CC
4570 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4571 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4572 as_fn_error "no acceptable C compiler found in \$PATH
4573 See \`config.log' for more details." "$LINENO" 5; }
4575 # Provide some information about the compiler.
4576 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4577 set X $ac_compile
4578 ac_compiler=$2
4579 for ac_option in --version -v -V -qversion; do
4580 { { ac_try="$ac_compiler $ac_option >&5"
4581 case "(($ac_try" in
4582 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4583 *) ac_try_echo=$ac_try;;
4584 esac
4585 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4586 $as_echo "$ac_try_echo"; } >&5
4587 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4588 ac_status=$?
4589 if test -s conftest.err; then
4590 sed '10a\
4591 ... rest of stderr output deleted ...
4592 10q' conftest.err >conftest.er1
4593 cat conftest.er1 >&5
4594 rm -f conftest.er1 conftest.err
4596 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4597 test $ac_status = 0; }
4598 done
4600 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4601 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4602 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
4603 $as_echo_n "(cached) " >&6
4604 else
4605 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4606 /* end confdefs.h. */
4609 main ()
4611 #ifndef __GNUC__
4612 choke me
4613 #endif
4616 return 0;
4618 _ACEOF
4619 if ac_fn_c_try_compile "$LINENO"; then :
4620 ac_compiler_gnu=yes
4621 else
4622 ac_compiler_gnu=no
4624 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4625 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4629 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4630 if test $ac_compiler_gnu = yes; then
4631 GCC=yes
4632 else
4633 GCC=
4635 ac_test_CFLAGS=${CFLAGS+set}
4636 ac_save_CFLAGS=$CFLAGS
4637 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4638 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4639 if test "${ac_cv_prog_cc_g+set}" = set; then :
4640 $as_echo_n "(cached) " >&6
4641 else
4642 ac_save_c_werror_flag=$ac_c_werror_flag
4643 ac_c_werror_flag=yes
4644 ac_cv_prog_cc_g=no
4645 CFLAGS="-g"
4646 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4647 /* end confdefs.h. */
4650 main ()
4654 return 0;
4656 _ACEOF
4657 if ac_fn_c_try_compile "$LINENO"; then :
4658 ac_cv_prog_cc_g=yes
4659 else
4660 CFLAGS=""
4661 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4662 /* end confdefs.h. */
4665 main ()
4669 return 0;
4671 _ACEOF
4672 if ac_fn_c_try_compile "$LINENO"; then :
4674 else
4675 ac_c_werror_flag=$ac_save_c_werror_flag
4676 CFLAGS="-g"
4677 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4678 /* end confdefs.h. */
4681 main ()
4685 return 0;
4687 _ACEOF
4688 if ac_fn_c_try_compile "$LINENO"; then :
4689 ac_cv_prog_cc_g=yes
4691 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4693 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4695 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4696 ac_c_werror_flag=$ac_save_c_werror_flag
4698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4699 $as_echo "$ac_cv_prog_cc_g" >&6; }
4700 if test "$ac_test_CFLAGS" = set; then
4701 CFLAGS=$ac_save_CFLAGS
4702 elif test $ac_cv_prog_cc_g = yes; then
4703 if test "$GCC" = yes; then
4704 CFLAGS="-g -O2"
4705 else
4706 CFLAGS="-g"
4708 else
4709 if test "$GCC" = yes; then
4710 CFLAGS="-O2"
4711 else
4712 CFLAGS=
4715 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4716 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4717 if test "${ac_cv_prog_cc_c89+set}" = set; then :
4718 $as_echo_n "(cached) " >&6
4719 else
4720 ac_cv_prog_cc_c89=no
4721 ac_save_CC=$CC
4722 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4723 /* end confdefs.h. */
4724 #include <stdarg.h>
4725 #include <stdio.h>
4726 #include <sys/types.h>
4727 #include <sys/stat.h>
4728 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4729 struct buf { int x; };
4730 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4731 static char *e (p, i)
4732 char **p;
4733 int i;
4735 return p[i];
4737 static char *f (char * (*g) (char **, int), char **p, ...)
4739 char *s;
4740 va_list v;
4741 va_start (v,p);
4742 s = g (p, va_arg (v,int));
4743 va_end (v);
4744 return s;
4747 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4748 function prototypes and stuff, but not '\xHH' hex character constants.
4749 These don't provoke an error unfortunately, instead are silently treated
4750 as 'x'. The following induces an error, until -std is added to get
4751 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4752 array size at least. It's necessary to write '\x00'==0 to get something
4753 that's true only with -std. */
4754 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4756 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4757 inside strings and character constants. */
4758 #define FOO(x) 'x'
4759 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4761 int test (int i, double x);
4762 struct s1 {int (*f) (int a);};
4763 struct s2 {int (*f) (double a);};
4764 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4765 int argc;
4766 char **argv;
4768 main ()
4770 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4772 return 0;
4774 _ACEOF
4775 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4776 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4778 CC="$ac_save_CC $ac_arg"
4779 if ac_fn_c_try_compile "$LINENO"; then :
4780 ac_cv_prog_cc_c89=$ac_arg
4782 rm -f core conftest.err conftest.$ac_objext
4783 test "x$ac_cv_prog_cc_c89" != "xno" && break
4784 done
4785 rm -f conftest.$ac_ext
4786 CC=$ac_save_CC
4789 # AC_CACHE_VAL
4790 case "x$ac_cv_prog_cc_c89" in
4792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4793 $as_echo "none needed" >&6; } ;;
4794 xno)
4795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4796 $as_echo "unsupported" >&6; } ;;
4798 CC="$CC $ac_cv_prog_cc_c89"
4799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4800 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4801 esac
4802 if test "x$ac_cv_prog_cc_c89" != xno; then :
4806 ac_ext=c
4807 ac_cpp='$CPP $CPPFLAGS'
4808 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4809 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4810 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4812 ac_ext=c
4813 ac_cpp='$CPP $CPPFLAGS'
4814 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4815 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4816 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4817 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4818 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4819 # On Suns, sometimes $CPP names a directory.
4820 if test -n "$CPP" && test -d "$CPP"; then
4821 CPP=
4823 if test -z "$CPP"; then
4824 if test "${ac_cv_prog_CPP+set}" = set; then :
4825 $as_echo_n "(cached) " >&6
4826 else
4827 # Double quotes because CPP needs to be expanded
4828 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4830 ac_preproc_ok=false
4831 for ac_c_preproc_warn_flag in '' yes
4833 # Use a header file that comes with gcc, so configuring glibc
4834 # with a fresh cross-compiler works.
4835 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4836 # <limits.h> exists even on freestanding compilers.
4837 # On the NeXT, cc -E runs the code through the compiler's parser,
4838 # not just through cpp. "Syntax error" is here to catch this case.
4839 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4840 /* end confdefs.h. */
4841 #ifdef __STDC__
4842 # include <limits.h>
4843 #else
4844 # include <assert.h>
4845 #endif
4846 Syntax error
4847 _ACEOF
4848 if ac_fn_c_try_cpp "$LINENO"; then :
4850 else
4851 # Broken: fails on valid input.
4852 continue
4854 rm -f conftest.err conftest.$ac_ext
4856 # OK, works on sane cases. Now check whether nonexistent headers
4857 # can be detected and how.
4858 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4859 /* end confdefs.h. */
4860 #include <ac_nonexistent.h>
4861 _ACEOF
4862 if ac_fn_c_try_cpp "$LINENO"; then :
4863 # Broken: success on invalid input.
4864 continue
4865 else
4866 # Passes both tests.
4867 ac_preproc_ok=:
4868 break
4870 rm -f conftest.err conftest.$ac_ext
4872 done
4873 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4874 rm -f conftest.err conftest.$ac_ext
4875 if $ac_preproc_ok; then :
4876 break
4879 done
4880 ac_cv_prog_CPP=$CPP
4883 CPP=$ac_cv_prog_CPP
4884 else
4885 ac_cv_prog_CPP=$CPP
4887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4888 $as_echo "$CPP" >&6; }
4889 ac_preproc_ok=false
4890 for ac_c_preproc_warn_flag in '' yes
4892 # Use a header file that comes with gcc, so configuring glibc
4893 # with a fresh cross-compiler works.
4894 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4895 # <limits.h> exists even on freestanding compilers.
4896 # On the NeXT, cc -E runs the code through the compiler's parser,
4897 # not just through cpp. "Syntax error" is here to catch this case.
4898 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4899 /* end confdefs.h. */
4900 #ifdef __STDC__
4901 # include <limits.h>
4902 #else
4903 # include <assert.h>
4904 #endif
4905 Syntax error
4906 _ACEOF
4907 if ac_fn_c_try_cpp "$LINENO"; then :
4909 else
4910 # Broken: fails on valid input.
4911 continue
4913 rm -f conftest.err conftest.$ac_ext
4915 # OK, works on sane cases. Now check whether nonexistent headers
4916 # can be detected and how.
4917 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4918 /* end confdefs.h. */
4919 #include <ac_nonexistent.h>
4920 _ACEOF
4921 if ac_fn_c_try_cpp "$LINENO"; then :
4922 # Broken: success on invalid input.
4923 continue
4924 else
4925 # Passes both tests.
4926 ac_preproc_ok=:
4927 break
4929 rm -f conftest.err conftest.$ac_ext
4931 done
4932 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4933 rm -f conftest.err conftest.$ac_ext
4934 if $ac_preproc_ok; then :
4936 else
4937 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4938 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4939 as_fn_error "C preprocessor \"$CPP\" fails sanity check
4940 See \`config.log' for more details." "$LINENO" 5; }
4943 ac_ext=c
4944 ac_cpp='$CPP $CPPFLAGS'
4945 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4946 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4947 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4950 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4951 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4952 if test "${ac_cv_path_GREP+set}" = set; then :
4953 $as_echo_n "(cached) " >&6
4954 else
4955 if test -z "$GREP"; then
4956 ac_path_GREP_found=false
4957 # Loop through the user's path and test for each of PROGNAME-LIST
4958 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4959 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4961 IFS=$as_save_IFS
4962 test -z "$as_dir" && as_dir=.
4963 for ac_prog in grep ggrep; do
4964 for ac_exec_ext in '' $ac_executable_extensions; do
4965 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4966 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4967 # Check for GNU ac_path_GREP and select it if it is found.
4968 # Check for GNU $ac_path_GREP
4969 case `"$ac_path_GREP" --version 2>&1` in
4970 *GNU*)
4971 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4973 ac_count=0
4974 $as_echo_n 0123456789 >"conftest.in"
4975 while :
4977 cat "conftest.in" "conftest.in" >"conftest.tmp"
4978 mv "conftest.tmp" "conftest.in"
4979 cp "conftest.in" "conftest.nl"
4980 $as_echo 'GREP' >> "conftest.nl"
4981 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4982 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4983 as_fn_arith $ac_count + 1 && ac_count=$as_val
4984 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4985 # Best one so far, save it but keep looking for a better one
4986 ac_cv_path_GREP="$ac_path_GREP"
4987 ac_path_GREP_max=$ac_count
4989 # 10*(2^10) chars as input seems more than enough
4990 test $ac_count -gt 10 && break
4991 done
4992 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4993 esac
4995 $ac_path_GREP_found && break 3
4996 done
4997 done
4998 done
4999 IFS=$as_save_IFS
5000 if test -z "$ac_cv_path_GREP"; then
5001 as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5003 else
5004 ac_cv_path_GREP=$GREP
5008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5009 $as_echo "$ac_cv_path_GREP" >&6; }
5010 GREP="$ac_cv_path_GREP"
5013 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5014 $as_echo_n "checking for egrep... " >&6; }
5015 if test "${ac_cv_path_EGREP+set}" = set; then :
5016 $as_echo_n "(cached) " >&6
5017 else
5018 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5019 then ac_cv_path_EGREP="$GREP -E"
5020 else
5021 if test -z "$EGREP"; then
5022 ac_path_EGREP_found=false
5023 # Loop through the user's path and test for each of PROGNAME-LIST
5024 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5025 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5027 IFS=$as_save_IFS
5028 test -z "$as_dir" && as_dir=.
5029 for ac_prog in egrep; do
5030 for ac_exec_ext in '' $ac_executable_extensions; do
5031 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5032 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
5033 # Check for GNU ac_path_EGREP and select it if it is found.
5034 # Check for GNU $ac_path_EGREP
5035 case `"$ac_path_EGREP" --version 2>&1` in
5036 *GNU*)
5037 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5039 ac_count=0
5040 $as_echo_n 0123456789 >"conftest.in"
5041 while :
5043 cat "conftest.in" "conftest.in" >"conftest.tmp"
5044 mv "conftest.tmp" "conftest.in"
5045 cp "conftest.in" "conftest.nl"
5046 $as_echo 'EGREP' >> "conftest.nl"
5047 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5048 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5049 as_fn_arith $ac_count + 1 && ac_count=$as_val
5050 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5051 # Best one so far, save it but keep looking for a better one
5052 ac_cv_path_EGREP="$ac_path_EGREP"
5053 ac_path_EGREP_max=$ac_count
5055 # 10*(2^10) chars as input seems more than enough
5056 test $ac_count -gt 10 && break
5057 done
5058 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5059 esac
5061 $ac_path_EGREP_found && break 3
5062 done
5063 done
5064 done
5065 IFS=$as_save_IFS
5066 if test -z "$ac_cv_path_EGREP"; then
5067 as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5069 else
5070 ac_cv_path_EGREP=$EGREP
5075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5076 $as_echo "$ac_cv_path_EGREP" >&6; }
5077 EGREP="$ac_cv_path_EGREP"
5080 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
5081 $as_echo_n "checking for ANSI C header files... " >&6; }
5082 if test "${ac_cv_header_stdc+set}" = set; then :
5083 $as_echo_n "(cached) " >&6
5084 else
5085 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5086 /* end confdefs.h. */
5087 #include <stdlib.h>
5088 #include <stdarg.h>
5089 #include <string.h>
5090 #include <float.h>
5093 main ()
5097 return 0;
5099 _ACEOF
5100 if ac_fn_c_try_compile "$LINENO"; then :
5101 ac_cv_header_stdc=yes
5102 else
5103 ac_cv_header_stdc=no
5105 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5107 if test $ac_cv_header_stdc = yes; then
5108 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5109 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5110 /* end confdefs.h. */
5111 #include <string.h>
5113 _ACEOF
5114 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5115 $EGREP "memchr" >/dev/null 2>&1; then :
5117 else
5118 ac_cv_header_stdc=no
5120 rm -f conftest*
5124 if test $ac_cv_header_stdc = yes; then
5125 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5126 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5127 /* end confdefs.h. */
5128 #include <stdlib.h>
5130 _ACEOF
5131 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5132 $EGREP "free" >/dev/null 2>&1; then :
5134 else
5135 ac_cv_header_stdc=no
5137 rm -f conftest*
5141 if test $ac_cv_header_stdc = yes; then
5142 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5143 if test "$cross_compiling" = yes; then :
5145 else
5146 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5147 /* end confdefs.h. */
5148 #include <ctype.h>
5149 #include <stdlib.h>
5150 #if ((' ' & 0x0FF) == 0x020)
5151 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5152 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5153 #else
5154 # define ISLOWER(c) \
5155 (('a' <= (c) && (c) <= 'i') \
5156 || ('j' <= (c) && (c) <= 'r') \
5157 || ('s' <= (c) && (c) <= 'z'))
5158 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5159 #endif
5161 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5163 main ()
5165 int i;
5166 for (i = 0; i < 256; i++)
5167 if (XOR (islower (i), ISLOWER (i))
5168 || toupper (i) != TOUPPER (i))
5169 return 2;
5170 return 0;
5172 _ACEOF
5173 if ac_fn_c_try_run "$LINENO"; then :
5175 else
5176 ac_cv_header_stdc=no
5178 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5179 conftest.$ac_objext conftest.beam conftest.$ac_ext
5184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
5185 $as_echo "$ac_cv_header_stdc" >&6; }
5186 if test $ac_cv_header_stdc = yes; then
5188 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
5192 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5193 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5194 inttypes.h stdint.h unistd.h
5195 do :
5196 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5197 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
5199 eval as_val=\$$as_ac_Header
5200 if test "x$as_val" = x""yes; then :
5201 cat >>confdefs.h <<_ACEOF
5202 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5203 _ACEOF
5207 done
5211 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
5212 if test "x$ac_cv_header_minix_config_h" = x""yes; then :
5213 MINIX=yes
5214 else
5215 MINIX=
5219 if test "$MINIX" = yes; then
5221 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
5224 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
5227 $as_echo "#define _MINIX 1" >>confdefs.h
5232 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
5233 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
5234 if test "${ac_cv_safe_to_define___extensions__+set}" = set; then :
5235 $as_echo_n "(cached) " >&6
5236 else
5237 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5238 /* end confdefs.h. */
5240 # define __EXTENSIONS__ 1
5241 $ac_includes_default
5243 main ()
5247 return 0;
5249 _ACEOF
5250 if ac_fn_c_try_compile "$LINENO"; then :
5251 ac_cv_safe_to_define___extensions__=yes
5252 else
5253 ac_cv_safe_to_define___extensions__=no
5255 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
5258 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
5259 test $ac_cv_safe_to_define___extensions__ = yes &&
5260 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
5262 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
5264 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
5266 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
5268 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
5274 # The tests for host and target for $enable_largefile require
5275 # canonical names.
5279 # As the $enable_largefile decision depends on --enable-plugins we must set it
5280 # even in directories otherwise not depending on the $plugins option.
5283 # Check whether --enable-plugins was given.
5284 if test "${enable_plugins+set}" = set; then :
5285 enableval=$enable_plugins; case "${enableval}" in
5286 yes | "") plugins=yes ;;
5287 no) plugins=no ;;
5288 *) plugins=yes ;;
5289 esac
5290 else
5291 plugins=no
5296 case "${host}" in
5297 sparc-*-solaris*|i[3-7]86-*-solaris*)
5298 # On native 32bit sparc and ia32 solaris, large-file and procfs support
5299 # are mutually exclusive; and without procfs support, the bfd/ elf module
5300 # cannot provide certain routines such as elfcore_write_prpsinfo
5301 # or elfcore_write_prstatus. So unless the user explicitly requested
5302 # large-file support through the --enable-largefile switch, disable
5303 # large-file support in favor of procfs support.
5304 test "${target}" = "${host}" -a "x$plugins" = xno \
5305 && : ${enable_largefile="no"}
5307 esac
5309 # Check whether --enable-largefile was given.
5310 if test "${enable_largefile+set}" = set; then :
5311 enableval=$enable_largefile;
5314 if test "$enable_largefile" != no; then
5316 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
5317 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
5318 if test "${ac_cv_sys_largefile_CC+set}" = set; then :
5319 $as_echo_n "(cached) " >&6
5320 else
5321 ac_cv_sys_largefile_CC=no
5322 if test "$GCC" != yes; then
5323 ac_save_CC=$CC
5324 while :; do
5325 # IRIX 6.2 and later do not support large files by default,
5326 # so use the C compiler's -n32 option if that helps.
5327 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5328 /* end confdefs.h. */
5329 #include <sys/types.h>
5330 /* Check that off_t can represent 2**63 - 1 correctly.
5331 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5332 since some C++ compilers masquerading as C compilers
5333 incorrectly reject 9223372036854775807. */
5334 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5335 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5336 && LARGE_OFF_T % 2147483647 == 1)
5337 ? 1 : -1];
5339 main ()
5343 return 0;
5345 _ACEOF
5346 if ac_fn_c_try_compile "$LINENO"; then :
5347 break
5349 rm -f core conftest.err conftest.$ac_objext
5350 CC="$CC -n32"
5351 if ac_fn_c_try_compile "$LINENO"; then :
5352 ac_cv_sys_largefile_CC=' -n32'; break
5354 rm -f core conftest.err conftest.$ac_objext
5355 break
5356 done
5357 CC=$ac_save_CC
5358 rm -f conftest.$ac_ext
5361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
5362 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
5363 if test "$ac_cv_sys_largefile_CC" != no; then
5364 CC=$CC$ac_cv_sys_largefile_CC
5367 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
5368 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
5369 if test "${ac_cv_sys_file_offset_bits+set}" = set; then :
5370 $as_echo_n "(cached) " >&6
5371 else
5372 while :; do
5373 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5374 /* end confdefs.h. */
5375 #include <sys/types.h>
5376 /* Check that off_t can represent 2**63 - 1 correctly.
5377 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5378 since some C++ compilers masquerading as C compilers
5379 incorrectly reject 9223372036854775807. */
5380 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5381 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5382 && LARGE_OFF_T % 2147483647 == 1)
5383 ? 1 : -1];
5385 main ()
5389 return 0;
5391 _ACEOF
5392 if ac_fn_c_try_compile "$LINENO"; then :
5393 ac_cv_sys_file_offset_bits=no; break
5395 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5396 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5397 /* end confdefs.h. */
5398 #define _FILE_OFFSET_BITS 64
5399 #include <sys/types.h>
5400 /* Check that off_t can represent 2**63 - 1 correctly.
5401 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5402 since some C++ compilers masquerading as C compilers
5403 incorrectly reject 9223372036854775807. */
5404 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5405 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5406 && LARGE_OFF_T % 2147483647 == 1)
5407 ? 1 : -1];
5409 main ()
5413 return 0;
5415 _ACEOF
5416 if ac_fn_c_try_compile "$LINENO"; then :
5417 ac_cv_sys_file_offset_bits=64; break
5419 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5420 ac_cv_sys_file_offset_bits=unknown
5421 break
5422 done
5424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
5425 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
5426 case $ac_cv_sys_file_offset_bits in #(
5427 no | unknown) ;;
5429 cat >>confdefs.h <<_ACEOF
5430 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
5431 _ACEOF
5433 esac
5434 rm -rf conftest*
5435 if test $ac_cv_sys_file_offset_bits = unknown; then
5436 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
5437 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
5438 if test "${ac_cv_sys_large_files+set}" = set; then :
5439 $as_echo_n "(cached) " >&6
5440 else
5441 while :; do
5442 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5443 /* end confdefs.h. */
5444 #include <sys/types.h>
5445 /* Check that off_t can represent 2**63 - 1 correctly.
5446 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5447 since some C++ compilers masquerading as C compilers
5448 incorrectly reject 9223372036854775807. */
5449 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5450 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5451 && LARGE_OFF_T % 2147483647 == 1)
5452 ? 1 : -1];
5454 main ()
5458 return 0;
5460 _ACEOF
5461 if ac_fn_c_try_compile "$LINENO"; then :
5462 ac_cv_sys_large_files=no; break
5464 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5465 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5466 /* end confdefs.h. */
5467 #define _LARGE_FILES 1
5468 #include <sys/types.h>
5469 /* Check that off_t can represent 2**63 - 1 correctly.
5470 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5471 since some C++ compilers masquerading as C compilers
5472 incorrectly reject 9223372036854775807. */
5473 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5474 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5475 && LARGE_OFF_T % 2147483647 == 1)
5476 ? 1 : -1];
5478 main ()
5482 return 0;
5484 _ACEOF
5485 if ac_fn_c_try_compile "$LINENO"; then :
5486 ac_cv_sys_large_files=1; break
5488 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5489 ac_cv_sys_large_files=unknown
5490 break
5491 done
5493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
5494 $as_echo "$ac_cv_sys_large_files" >&6; }
5495 case $ac_cv_sys_large_files in #(
5496 no | unknown) ;;
5498 cat >>confdefs.h <<_ACEOF
5499 #define _LARGE_FILES $ac_cv_sys_large_files
5500 _ACEOF
5502 esac
5503 rm -rf conftest*
5510 case `pwd` in
5511 *\ * | *\ *)
5512 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
5513 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
5514 esac
5518 macro_version='2.2.7a'
5519 macro_revision='1.3134'
5533 ltmain="$ac_aux_dir/ltmain.sh"
5535 # Backslashify metacharacters that are still active within
5536 # double-quoted strings.
5537 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
5539 # Same as above, but do not quote variable references.
5540 double_quote_subst='s/\(["`\\]\)/\\\1/g'
5542 # Sed substitution to delay expansion of an escaped shell variable in a
5543 # double_quote_subst'ed string.
5544 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5546 # Sed substitution to delay expansion of an escaped single quote.
5547 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
5549 # Sed substitution to avoid accidental globbing in evaled expressions
5550 no_glob_subst='s/\*/\\\*/g'
5552 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
5553 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
5554 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
5556 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
5557 $as_echo_n "checking how to print strings... " >&6; }
5558 # Test print first, because it will be a builtin if present.
5559 if test "X`print -r -- -n 2>/dev/null`" = X-n && \
5560 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
5561 ECHO='print -r --'
5562 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
5563 ECHO='printf %s\n'
5564 else
5565 # Use this function as a fallback that always works.
5566 func_fallback_echo ()
5568 eval 'cat <<_LTECHO_EOF
5570 _LTECHO_EOF'
5572 ECHO='func_fallback_echo'
5575 # func_echo_all arg...
5576 # Invoke $ECHO with all args, space-separated.
5577 func_echo_all ()
5579 $ECHO ""
5582 case "$ECHO" in
5583 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
5584 $as_echo "printf" >&6; } ;;
5585 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
5586 $as_echo "print -r" >&6; } ;;
5587 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
5588 $as_echo "cat" >&6; } ;;
5589 esac
5604 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
5605 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
5606 if test "${ac_cv_path_SED+set}" = set; then :
5607 $as_echo_n "(cached) " >&6
5608 else
5609 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
5610 for ac_i in 1 2 3 4 5 6 7; do
5611 ac_script="$ac_script$as_nl$ac_script"
5612 done
5613 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
5614 { ac_script=; unset ac_script;}
5615 if test -z "$SED"; then
5616 ac_path_SED_found=false
5617 # Loop through the user's path and test for each of PROGNAME-LIST
5618 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5619 for as_dir in $PATH
5621 IFS=$as_save_IFS
5622 test -z "$as_dir" && as_dir=.
5623 for ac_prog in sed gsed; do
5624 for ac_exec_ext in '' $ac_executable_extensions; do
5625 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
5626 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
5627 # Check for GNU ac_path_SED and select it if it is found.
5628 # Check for GNU $ac_path_SED
5629 case `"$ac_path_SED" --version 2>&1` in
5630 *GNU*)
5631 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
5633 ac_count=0
5634 $as_echo_n 0123456789 >"conftest.in"
5635 while :
5637 cat "conftest.in" "conftest.in" >"conftest.tmp"
5638 mv "conftest.tmp" "conftest.in"
5639 cp "conftest.in" "conftest.nl"
5640 $as_echo '' >> "conftest.nl"
5641 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
5642 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5643 as_fn_arith $ac_count + 1 && ac_count=$as_val
5644 if test $ac_count -gt ${ac_path_SED_max-0}; then
5645 # Best one so far, save it but keep looking for a better one
5646 ac_cv_path_SED="$ac_path_SED"
5647 ac_path_SED_max=$ac_count
5649 # 10*(2^10) chars as input seems more than enough
5650 test $ac_count -gt 10 && break
5651 done
5652 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5653 esac
5655 $ac_path_SED_found && break 3
5656 done
5657 done
5658 done
5659 IFS=$as_save_IFS
5660 if test -z "$ac_cv_path_SED"; then
5661 as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
5663 else
5664 ac_cv_path_SED=$SED
5668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
5669 $as_echo "$ac_cv_path_SED" >&6; }
5670 SED="$ac_cv_path_SED"
5671 rm -f conftest.sed
5673 test -z "$SED" && SED=sed
5674 Xsed="$SED -e 1s/^X//"
5686 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
5687 $as_echo_n "checking for fgrep... " >&6; }
5688 if test "${ac_cv_path_FGREP+set}" = set; then :
5689 $as_echo_n "(cached) " >&6
5690 else
5691 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
5692 then ac_cv_path_FGREP="$GREP -F"
5693 else
5694 if test -z "$FGREP"; then
5695 ac_path_FGREP_found=false
5696 # Loop through the user's path and test for each of PROGNAME-LIST
5697 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5698 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5700 IFS=$as_save_IFS
5701 test -z "$as_dir" && as_dir=.
5702 for ac_prog in fgrep; do
5703 for ac_exec_ext in '' $ac_executable_extensions; do
5704 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
5705 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
5706 # Check for GNU ac_path_FGREP and select it if it is found.
5707 # Check for GNU $ac_path_FGREP
5708 case `"$ac_path_FGREP" --version 2>&1` in
5709 *GNU*)
5710 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
5712 ac_count=0
5713 $as_echo_n 0123456789 >"conftest.in"
5714 while :
5716 cat "conftest.in" "conftest.in" >"conftest.tmp"
5717 mv "conftest.tmp" "conftest.in"
5718 cp "conftest.in" "conftest.nl"
5719 $as_echo 'FGREP' >> "conftest.nl"
5720 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
5721 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5722 as_fn_arith $ac_count + 1 && ac_count=$as_val
5723 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5724 # Best one so far, save it but keep looking for a better one
5725 ac_cv_path_FGREP="$ac_path_FGREP"
5726 ac_path_FGREP_max=$ac_count
5728 # 10*(2^10) chars as input seems more than enough
5729 test $ac_count -gt 10 && break
5730 done
5731 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5732 esac
5734 $ac_path_FGREP_found && break 3
5735 done
5736 done
5737 done
5738 IFS=$as_save_IFS
5739 if test -z "$ac_cv_path_FGREP"; then
5740 as_fn_error "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5742 else
5743 ac_cv_path_FGREP=$FGREP
5748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
5749 $as_echo "$ac_cv_path_FGREP" >&6; }
5750 FGREP="$ac_cv_path_FGREP"
5753 test -z "$GREP" && GREP=grep
5773 # Check whether --with-gnu-ld was given.
5774 if test "${with_gnu_ld+set}" = set; then :
5775 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
5776 else
5777 with_gnu_ld=no
5780 ac_prog=ld
5781 if test "$GCC" = yes; then
5782 # Check if gcc -print-prog-name=ld gives a path.
5783 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5784 $as_echo_n "checking for ld used by $CC... " >&6; }
5785 case $host in
5786 *-*-mingw*)
5787 # gcc leaves a trailing carriage return which upsets mingw
5788 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5790 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5791 esac
5792 case $ac_prog in
5793 # Accept absolute paths.
5794 [\\/]* | ?:[\\/]*)
5795 re_direlt='/[^/][^/]*/\.\./'
5796 # Canonicalize the pathname of ld
5797 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5798 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5799 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5800 done
5801 test -z "$LD" && LD="$ac_prog"
5804 # If it fails, then pretend we aren't using GCC.
5805 ac_prog=ld
5808 # If it is relative, then search for the first ld in PATH.
5809 with_gnu_ld=unknown
5811 esac
5812 elif test "$with_gnu_ld" = yes; then
5813 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5814 $as_echo_n "checking for GNU ld... " >&6; }
5815 else
5816 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5817 $as_echo_n "checking for non-GNU ld... " >&6; }
5819 if test "${lt_cv_path_LD+set}" = set; then :
5820 $as_echo_n "(cached) " >&6
5821 else
5822 if test -z "$LD"; then
5823 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5824 for ac_dir in $PATH; do
5825 IFS="$lt_save_ifs"
5826 test -z "$ac_dir" && ac_dir=.
5827 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5828 lt_cv_path_LD="$ac_dir/$ac_prog"
5829 # Check to see if the program is GNU ld. I'd rather use --version,
5830 # but apparently some variants of GNU ld only accept -v.
5831 # Break only if it was the GNU/non-GNU ld that we prefer.
5832 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5833 *GNU* | *'with BFD'*)
5834 test "$with_gnu_ld" != no && break
5837 test "$with_gnu_ld" != yes && break
5839 esac
5841 done
5842 IFS="$lt_save_ifs"
5843 else
5844 lt_cv_path_LD="$LD" # Let the user override the test with a path.
5848 LD="$lt_cv_path_LD"
5849 if test -n "$LD"; then
5850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5851 $as_echo "$LD" >&6; }
5852 else
5853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5854 $as_echo "no" >&6; }
5856 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
5857 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5858 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
5859 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
5860 $as_echo_n "(cached) " >&6
5861 else
5862 # I'd rather use --version here, but apparently some GNU lds only accept -v.
5863 case `$LD -v 2>&1 </dev/null` in
5864 *GNU* | *'with BFD'*)
5865 lt_cv_prog_gnu_ld=yes
5868 lt_cv_prog_gnu_ld=no
5870 esac
5872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5873 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
5874 with_gnu_ld=$lt_cv_prog_gnu_ld
5884 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5885 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5886 if test "${lt_cv_path_NM+set}" = set; then :
5887 $as_echo_n "(cached) " >&6
5888 else
5889 if test -n "$NM"; then
5890 # Let the user override the test.
5891 lt_cv_path_NM="$NM"
5892 else
5893 lt_nm_to_check="${ac_tool_prefix}nm"
5894 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5895 lt_nm_to_check="$lt_nm_to_check nm"
5897 for lt_tmp_nm in $lt_nm_to_check; do
5898 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5899 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5900 IFS="$lt_save_ifs"
5901 test -z "$ac_dir" && ac_dir=.
5902 tmp_nm="$ac_dir/$lt_tmp_nm"
5903 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5904 # Check to see if the nm accepts a BSD-compat flag.
5905 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5906 # nm: unknown option "B" ignored
5907 # Tru64's nm complains that /dev/null is an invalid object file
5908 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5909 */dev/null* | *'Invalid file or object type'*)
5910 lt_cv_path_NM="$tmp_nm -B"
5911 break
5914 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5915 */dev/null*)
5916 lt_cv_path_NM="$tmp_nm -p"
5917 break
5920 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5921 continue # so that we can try to find one that supports BSD flags
5923 esac
5925 esac
5927 done
5928 IFS="$lt_save_ifs"
5929 done
5930 : ${lt_cv_path_NM=no}
5933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5934 $as_echo "$lt_cv_path_NM" >&6; }
5935 if test "$lt_cv_path_NM" != "no"; then
5936 NM="$lt_cv_path_NM"
5937 else
5938 # Didn't find any BSD compatible name lister, look for dumpbin.
5939 if test -n "$DUMPBIN"; then :
5940 # Let the user override the test.
5941 else
5942 if test -n "$ac_tool_prefix"; then
5943 for ac_prog in dumpbin "link -dump"
5945 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5946 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5947 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5948 $as_echo_n "checking for $ac_word... " >&6; }
5949 if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
5950 $as_echo_n "(cached) " >&6
5951 else
5952 if test -n "$DUMPBIN"; then
5953 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5954 else
5955 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5956 for as_dir in $PATH
5958 IFS=$as_save_IFS
5959 test -z "$as_dir" && as_dir=.
5960 for ac_exec_ext in '' $ac_executable_extensions; do
5961 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5962 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5963 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5964 break 2
5966 done
5967 done
5968 IFS=$as_save_IFS
5972 DUMPBIN=$ac_cv_prog_DUMPBIN
5973 if test -n "$DUMPBIN"; then
5974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5975 $as_echo "$DUMPBIN" >&6; }
5976 else
5977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5978 $as_echo "no" >&6; }
5982 test -n "$DUMPBIN" && break
5983 done
5985 if test -z "$DUMPBIN"; then
5986 ac_ct_DUMPBIN=$DUMPBIN
5987 for ac_prog in dumpbin "link -dump"
5989 # Extract the first word of "$ac_prog", so it can be a program name with args.
5990 set dummy $ac_prog; ac_word=$2
5991 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5992 $as_echo_n "checking for $ac_word... " >&6; }
5993 if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
5994 $as_echo_n "(cached) " >&6
5995 else
5996 if test -n "$ac_ct_DUMPBIN"; then
5997 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5998 else
5999 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6000 for as_dir in $PATH
6002 IFS=$as_save_IFS
6003 test -z "$as_dir" && as_dir=.
6004 for ac_exec_ext in '' $ac_executable_extensions; do
6005 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6006 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
6007 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6008 break 2
6010 done
6011 done
6012 IFS=$as_save_IFS
6016 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
6017 if test -n "$ac_ct_DUMPBIN"; then
6018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
6019 $as_echo "$ac_ct_DUMPBIN" >&6; }
6020 else
6021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6022 $as_echo "no" >&6; }
6026 test -n "$ac_ct_DUMPBIN" && break
6027 done
6029 if test "x$ac_ct_DUMPBIN" = x; then
6030 DUMPBIN=":"
6031 else
6032 case $cross_compiling:$ac_tool_warned in
6033 yes:)
6034 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6035 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6036 ac_tool_warned=yes ;;
6037 esac
6038 DUMPBIN=$ac_ct_DUMPBIN
6042 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
6043 *COFF*)
6044 DUMPBIN="$DUMPBIN -symbols"
6047 DUMPBIN=:
6049 esac
6052 if test "$DUMPBIN" != ":"; then
6053 NM="$DUMPBIN"
6056 test -z "$NM" && NM=nm
6063 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
6064 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
6065 if test "${lt_cv_nm_interface+set}" = set; then :
6066 $as_echo_n "(cached) " >&6
6067 else
6068 lt_cv_nm_interface="BSD nm"
6069 echo "int some_variable = 0;" > conftest.$ac_ext
6070 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
6071 (eval "$ac_compile" 2>conftest.err)
6072 cat conftest.err >&5
6073 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
6074 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
6075 cat conftest.err >&5
6076 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
6077 cat conftest.out >&5
6078 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
6079 lt_cv_nm_interface="MS dumpbin"
6081 rm -f conftest*
6083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
6084 $as_echo "$lt_cv_nm_interface" >&6; }
6086 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
6087 $as_echo_n "checking whether ln -s works... " >&6; }
6088 LN_S=$as_ln_s
6089 if test "$LN_S" = "ln -s"; then
6090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6091 $as_echo "yes" >&6; }
6092 else
6093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
6094 $as_echo "no, using $LN_S" >&6; }
6097 # find the maximum length of command line arguments
6098 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
6099 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
6100 if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
6101 $as_echo_n "(cached) " >&6
6102 else
6104 teststring="ABCD"
6106 case $build_os in
6107 msdosdjgpp*)
6108 # On DJGPP, this test can blow up pretty badly due to problems in libc
6109 # (any single argument exceeding 2000 bytes causes a buffer overrun
6110 # during glob expansion). Even if it were fixed, the result of this
6111 # check would be larger than it should be.
6112 lt_cv_sys_max_cmd_len=12288; # 12K is about right
6115 gnu*)
6116 # Under GNU Hurd, this test is not required because there is
6117 # no limit to the length of command line arguments.
6118 # Libtool will interpret -1 as no limit whatsoever
6119 lt_cv_sys_max_cmd_len=-1;
6122 cygwin* | mingw* | cegcc*)
6123 # On Win9x/ME, this test blows up -- it succeeds, but takes
6124 # about 5 minutes as the teststring grows exponentially.
6125 # Worse, since 9x/ME are not pre-emptively multitasking,
6126 # you end up with a "frozen" computer, even though with patience
6127 # the test eventually succeeds (with a max line length of 256k).
6128 # Instead, let's just punt: use the minimum linelength reported by
6129 # all of the supported platforms: 8192 (on NT/2K/XP).
6130 lt_cv_sys_max_cmd_len=8192;
6133 mint*)
6134 # On MiNT this can take a long time and run out of memory.
6135 lt_cv_sys_max_cmd_len=8192;
6138 amigaos*)
6139 # On AmigaOS with pdksh, this test takes hours, literally.
6140 # So we just punt and use a minimum line length of 8192.
6141 lt_cv_sys_max_cmd_len=8192;
6144 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6145 # This has been around since 386BSD, at least. Likely further.
6146 if test -x /sbin/sysctl; then
6147 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6148 elif test -x /usr/sbin/sysctl; then
6149 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6150 else
6151 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
6153 # And add a safety zone
6154 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6155 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6158 interix*)
6159 # We know the value 262144 and hardcode it with a safety zone (like BSD)
6160 lt_cv_sys_max_cmd_len=196608
6163 osf*)
6164 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6165 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6166 # nice to cause kernel panics so lets avoid the loop below.
6167 # First set a reasonable default.
6168 lt_cv_sys_max_cmd_len=16384
6170 if test -x /sbin/sysconfig; then
6171 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6172 *1*) lt_cv_sys_max_cmd_len=-1 ;;
6173 esac
6176 sco3.2v5*)
6177 lt_cv_sys_max_cmd_len=102400
6179 sysv5* | sco5v6* | sysv4.2uw2*)
6180 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6181 if test -n "$kargmax"; then
6182 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
6183 else
6184 lt_cv_sys_max_cmd_len=32768
6188 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
6189 if test -n "$lt_cv_sys_max_cmd_len"; then
6190 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6191 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6192 else
6193 # Make teststring a little bigger before we do anything with it.
6194 # a 1K string should be a reasonable start.
6195 for i in 1 2 3 4 5 6 7 8 ; do
6196 teststring=$teststring$teststring
6197 done
6198 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6199 # If test is not a shell built-in, we'll probably end up computing a
6200 # maximum length that is only half of the actual maximum length, but
6201 # we can't tell.
6202 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
6203 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
6204 test $i != 17 # 1/2 MB should be enough
6206 i=`expr $i + 1`
6207 teststring=$teststring$teststring
6208 done
6209 # Only check the string length outside the loop.
6210 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
6211 teststring=
6212 # Add a significant safety factor because C++ compilers can tack on
6213 # massive amounts of additional arguments before passing them to the
6214 # linker. It appears as though 1/2 is a usable value.
6215 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6218 esac
6222 if test -n $lt_cv_sys_max_cmd_len ; then
6223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
6224 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
6225 else
6226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
6227 $as_echo "none" >&6; }
6229 max_cmd_len=$lt_cv_sys_max_cmd_len
6236 : ${CP="cp -f"}
6237 : ${MV="mv -f"}
6238 : ${RM="rm -f"}
6240 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
6241 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
6242 # Try some XSI features
6243 xsi_shell=no
6244 ( _lt_dummy="a/b/c"
6245 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
6246 = c,a/b,, \
6247 && eval 'test $(( 1 + 1 )) -eq 2 \
6248 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
6249 && xsi_shell=yes
6250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
6251 $as_echo "$xsi_shell" >&6; }
6254 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
6255 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
6256 lt_shell_append=no
6257 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
6258 >/dev/null 2>&1 \
6259 && lt_shell_append=yes
6260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
6261 $as_echo "$lt_shell_append" >&6; }
6264 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
6265 lt_unset=unset
6266 else
6267 lt_unset=false
6274 # test EBCDIC or ASCII
6275 case `echo X|tr X '\101'` in
6276 A) # ASCII based system
6277 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
6278 lt_SP2NL='tr \040 \012'
6279 lt_NL2SP='tr \015\012 \040\040'
6281 *) # EBCDIC based system
6282 lt_SP2NL='tr \100 \n'
6283 lt_NL2SP='tr \r\n \100\100'
6285 esac
6295 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
6296 $as_echo_n "checking for $LD option to reload object files... " >&6; }
6297 if test "${lt_cv_ld_reload_flag+set}" = set; then :
6298 $as_echo_n "(cached) " >&6
6299 else
6300 lt_cv_ld_reload_flag='-r'
6302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
6303 $as_echo "$lt_cv_ld_reload_flag" >&6; }
6304 reload_flag=$lt_cv_ld_reload_flag
6305 case $reload_flag in
6306 "" | " "*) ;;
6307 *) reload_flag=" $reload_flag" ;;
6308 esac
6309 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6310 case $host_os in
6311 darwin*)
6312 if test "$GCC" = yes; then
6313 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
6314 else
6315 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6318 esac
6328 if test -n "$ac_tool_prefix"; then
6329 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
6330 set dummy ${ac_tool_prefix}objdump; ac_word=$2
6331 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6332 $as_echo_n "checking for $ac_word... " >&6; }
6333 if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
6334 $as_echo_n "(cached) " >&6
6335 else
6336 if test -n "$OBJDUMP"; then
6337 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
6338 else
6339 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6340 for as_dir in $PATH
6342 IFS=$as_save_IFS
6343 test -z "$as_dir" && as_dir=.
6344 for ac_exec_ext in '' $ac_executable_extensions; do
6345 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6346 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
6347 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6348 break 2
6350 done
6351 done
6352 IFS=$as_save_IFS
6356 OBJDUMP=$ac_cv_prog_OBJDUMP
6357 if test -n "$OBJDUMP"; then
6358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
6359 $as_echo "$OBJDUMP" >&6; }
6360 else
6361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6362 $as_echo "no" >&6; }
6367 if test -z "$ac_cv_prog_OBJDUMP"; then
6368 ac_ct_OBJDUMP=$OBJDUMP
6369 # Extract the first word of "objdump", so it can be a program name with args.
6370 set dummy objdump; ac_word=$2
6371 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6372 $as_echo_n "checking for $ac_word... " >&6; }
6373 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
6374 $as_echo_n "(cached) " >&6
6375 else
6376 if test -n "$ac_ct_OBJDUMP"; then
6377 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
6378 else
6379 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6380 for as_dir in $PATH
6382 IFS=$as_save_IFS
6383 test -z "$as_dir" && as_dir=.
6384 for ac_exec_ext in '' $ac_executable_extensions; do
6385 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6386 ac_cv_prog_ac_ct_OBJDUMP="objdump"
6387 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6388 break 2
6390 done
6391 done
6392 IFS=$as_save_IFS
6396 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6397 if test -n "$ac_ct_OBJDUMP"; then
6398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
6399 $as_echo "$ac_ct_OBJDUMP" >&6; }
6400 else
6401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6402 $as_echo "no" >&6; }
6405 if test "x$ac_ct_OBJDUMP" = x; then
6406 OBJDUMP="false"
6407 else
6408 case $cross_compiling:$ac_tool_warned in
6409 yes:)
6410 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6411 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6412 ac_tool_warned=yes ;;
6413 esac
6414 OBJDUMP=$ac_ct_OBJDUMP
6416 else
6417 OBJDUMP="$ac_cv_prog_OBJDUMP"
6420 test -z "$OBJDUMP" && OBJDUMP=objdump
6430 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
6431 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
6432 if test "${lt_cv_deplibs_check_method+set}" = set; then :
6433 $as_echo_n "(cached) " >&6
6434 else
6435 lt_cv_file_magic_cmd='$MAGIC_CMD'
6436 lt_cv_file_magic_test_file=
6437 lt_cv_deplibs_check_method='unknown'
6438 # Need to set the preceding variable on all platforms that support
6439 # interlibrary dependencies.
6440 # 'none' -- dependencies not supported.
6441 # `unknown' -- same as none, but documents that we really don't know.
6442 # 'pass_all' -- all dependencies passed with no checks.
6443 # 'test_compile' -- check by making test program.
6444 # 'file_magic [[regex]]' -- check by looking for files in library path
6445 # which responds to the $file_magic_cmd with a given extended regex.
6446 # If you have `file' or equivalent on your system and you're not sure
6447 # whether `pass_all' will *always* work, you probably want this one.
6449 case $host_os in
6450 aix[4-9]*)
6451 lt_cv_deplibs_check_method=pass_all
6454 beos*)
6455 lt_cv_deplibs_check_method=pass_all
6458 bsdi[45]*)
6459 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6460 lt_cv_file_magic_cmd='/usr/bin/file -L'
6461 lt_cv_file_magic_test_file=/shlib/libc.so
6464 cygwin*)
6465 # func_win32_libid is a shell function defined in ltmain.sh
6466 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6467 lt_cv_file_magic_cmd='func_win32_libid'
6470 mingw* | pw32*)
6471 # Base MSYS/MinGW do not provide the 'file' command needed by
6472 # func_win32_libid shell function, so use a weaker test based on 'objdump',
6473 # unless we find 'file', for example because we are cross-compiling.
6474 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
6475 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
6476 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6477 lt_cv_file_magic_cmd='func_win32_libid'
6478 else
6479 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
6480 lt_cv_file_magic_cmd='$OBJDUMP -f'
6484 cegcc*)
6485 # use the weaker test based on 'objdump'. See mingw*.
6486 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
6487 lt_cv_file_magic_cmd='$OBJDUMP -f'
6490 darwin* | rhapsody*)
6491 lt_cv_deplibs_check_method=pass_all
6494 freebsd* | dragonfly*)
6495 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6496 case $host_cpu in
6497 i*86 )
6498 # Not sure whether the presence of OpenBSD here was a mistake.
6499 # Let's accept both of them until this is cleared up.
6500 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6501 lt_cv_file_magic_cmd=/usr/bin/file
6502 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6504 esac
6505 else
6506 lt_cv_deplibs_check_method=pass_all
6510 gnu*)
6511 lt_cv_deplibs_check_method=pass_all
6514 haiku*)
6515 lt_cv_deplibs_check_method=pass_all
6518 hpux10.20* | hpux11*)
6519 lt_cv_file_magic_cmd=/usr/bin/file
6520 case $host_cpu in
6521 ia64*)
6522 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6523 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6525 hppa*64*)
6526 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]'
6527 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6530 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
6531 lt_cv_file_magic_test_file=/usr/lib/libc.sl
6533 esac
6536 interix[3-9]*)
6537 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6538 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6541 irix5* | irix6* | nonstopux*)
6542 case $LD in
6543 *-32|*"-32 ") libmagic=32-bit;;
6544 *-n32|*"-n32 ") libmagic=N32;;
6545 *-64|*"-64 ") libmagic=64-bit;;
6546 *) libmagic=never-match;;
6547 esac
6548 lt_cv_deplibs_check_method=pass_all
6551 # This must be Linux ELF.
6552 linux* | k*bsd*-gnu | kopensolaris*-gnu)
6553 lt_cv_deplibs_check_method=pass_all
6556 netbsd*)
6557 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6558 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6559 else
6560 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6564 newos6*)
6565 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6566 lt_cv_file_magic_cmd=/usr/bin/file
6567 lt_cv_file_magic_test_file=/usr/lib/libnls.so
6570 *nto* | *qnx*)
6571 lt_cv_deplibs_check_method=pass_all
6574 openbsd*)
6575 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6576 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6577 else
6578 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6582 osf3* | osf4* | osf5*)
6583 lt_cv_deplibs_check_method=pass_all
6586 rdos*)
6587 lt_cv_deplibs_check_method=pass_all
6590 solaris*)
6591 lt_cv_deplibs_check_method=pass_all
6594 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6595 lt_cv_deplibs_check_method=pass_all
6598 sysv4 | sysv4.3*)
6599 case $host_vendor in
6600 motorola)
6601 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]'
6602 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6604 ncr)
6605 lt_cv_deplibs_check_method=pass_all
6607 sequent)
6608 lt_cv_file_magic_cmd='/bin/file'
6609 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6611 sni)
6612 lt_cv_file_magic_cmd='/bin/file'
6613 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6614 lt_cv_file_magic_test_file=/lib/libc.so
6616 siemens)
6617 lt_cv_deplibs_check_method=pass_all
6620 lt_cv_deplibs_check_method=pass_all
6622 esac
6625 tpf*)
6626 lt_cv_deplibs_check_method=pass_all
6628 esac
6631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
6632 $as_echo "$lt_cv_deplibs_check_method" >&6; }
6633 file_magic_cmd=$lt_cv_file_magic_cmd
6634 deplibs_check_method=$lt_cv_deplibs_check_method
6635 test -z "$deplibs_check_method" && deplibs_check_method=unknown
6648 if test -n "$ac_tool_prefix"; then
6649 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6650 set dummy ${ac_tool_prefix}ar; ac_word=$2
6651 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6652 $as_echo_n "checking for $ac_word... " >&6; }
6653 if test "${ac_cv_prog_AR+set}" = set; then :
6654 $as_echo_n "(cached) " >&6
6655 else
6656 if test -n "$AR"; then
6657 ac_cv_prog_AR="$AR" # Let the user override the test.
6658 else
6659 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6660 for as_dir in $PATH
6662 IFS=$as_save_IFS
6663 test -z "$as_dir" && as_dir=.
6664 for ac_exec_ext in '' $ac_executable_extensions; do
6665 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6666 ac_cv_prog_AR="${ac_tool_prefix}ar"
6667 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6668 break 2
6670 done
6671 done
6672 IFS=$as_save_IFS
6676 AR=$ac_cv_prog_AR
6677 if test -n "$AR"; then
6678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6679 $as_echo "$AR" >&6; }
6680 else
6681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6682 $as_echo "no" >&6; }
6687 if test -z "$ac_cv_prog_AR"; then
6688 ac_ct_AR=$AR
6689 # Extract the first word of "ar", so it can be a program name with args.
6690 set dummy ar; ac_word=$2
6691 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6692 $as_echo_n "checking for $ac_word... " >&6; }
6693 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
6694 $as_echo_n "(cached) " >&6
6695 else
6696 if test -n "$ac_ct_AR"; then
6697 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6698 else
6699 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6700 for as_dir in $PATH
6702 IFS=$as_save_IFS
6703 test -z "$as_dir" && as_dir=.
6704 for ac_exec_ext in '' $ac_executable_extensions; do
6705 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6706 ac_cv_prog_ac_ct_AR="ar"
6707 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6708 break 2
6710 done
6711 done
6712 IFS=$as_save_IFS
6716 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6717 if test -n "$ac_ct_AR"; then
6718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6719 $as_echo "$ac_ct_AR" >&6; }
6720 else
6721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6722 $as_echo "no" >&6; }
6725 if test "x$ac_ct_AR" = x; then
6726 AR="false"
6727 else
6728 case $cross_compiling:$ac_tool_warned in
6729 yes:)
6730 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6731 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6732 ac_tool_warned=yes ;;
6733 esac
6734 AR=$ac_ct_AR
6736 else
6737 AR="$ac_cv_prog_AR"
6740 test -z "$AR" && AR=ar
6741 test -z "$AR_FLAGS" && AR_FLAGS=cru
6753 if test -n "$ac_tool_prefix"; then
6754 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6755 set dummy ${ac_tool_prefix}strip; ac_word=$2
6756 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6757 $as_echo_n "checking for $ac_word... " >&6; }
6758 if test "${ac_cv_prog_STRIP+set}" = set; then :
6759 $as_echo_n "(cached) " >&6
6760 else
6761 if test -n "$STRIP"; then
6762 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6763 else
6764 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6765 for as_dir in $PATH
6767 IFS=$as_save_IFS
6768 test -z "$as_dir" && as_dir=.
6769 for ac_exec_ext in '' $ac_executable_extensions; do
6770 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6771 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6772 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6773 break 2
6775 done
6776 done
6777 IFS=$as_save_IFS
6781 STRIP=$ac_cv_prog_STRIP
6782 if test -n "$STRIP"; then
6783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6784 $as_echo "$STRIP" >&6; }
6785 else
6786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6787 $as_echo "no" >&6; }
6792 if test -z "$ac_cv_prog_STRIP"; then
6793 ac_ct_STRIP=$STRIP
6794 # Extract the first word of "strip", so it can be a program name with args.
6795 set dummy strip; ac_word=$2
6796 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6797 $as_echo_n "checking for $ac_word... " >&6; }
6798 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
6799 $as_echo_n "(cached) " >&6
6800 else
6801 if test -n "$ac_ct_STRIP"; then
6802 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6803 else
6804 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6805 for as_dir in $PATH
6807 IFS=$as_save_IFS
6808 test -z "$as_dir" && as_dir=.
6809 for ac_exec_ext in '' $ac_executable_extensions; do
6810 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6811 ac_cv_prog_ac_ct_STRIP="strip"
6812 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6813 break 2
6815 done
6816 done
6817 IFS=$as_save_IFS
6821 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6822 if test -n "$ac_ct_STRIP"; then
6823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6824 $as_echo "$ac_ct_STRIP" >&6; }
6825 else
6826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6827 $as_echo "no" >&6; }
6830 if test "x$ac_ct_STRIP" = x; then
6831 STRIP=":"
6832 else
6833 case $cross_compiling:$ac_tool_warned in
6834 yes:)
6835 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6836 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6837 ac_tool_warned=yes ;;
6838 esac
6839 STRIP=$ac_ct_STRIP
6841 else
6842 STRIP="$ac_cv_prog_STRIP"
6845 test -z "$STRIP" && STRIP=:
6852 if test -n "$ac_tool_prefix"; then
6853 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6854 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6855 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6856 $as_echo_n "checking for $ac_word... " >&6; }
6857 if test "${ac_cv_prog_RANLIB+set}" = set; then :
6858 $as_echo_n "(cached) " >&6
6859 else
6860 if test -n "$RANLIB"; then
6861 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6862 else
6863 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6864 for as_dir in $PATH
6866 IFS=$as_save_IFS
6867 test -z "$as_dir" && as_dir=.
6868 for ac_exec_ext in '' $ac_executable_extensions; do
6869 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6870 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6871 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6872 break 2
6874 done
6875 done
6876 IFS=$as_save_IFS
6880 RANLIB=$ac_cv_prog_RANLIB
6881 if test -n "$RANLIB"; then
6882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6883 $as_echo "$RANLIB" >&6; }
6884 else
6885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6886 $as_echo "no" >&6; }
6891 if test -z "$ac_cv_prog_RANLIB"; then
6892 ac_ct_RANLIB=$RANLIB
6893 # Extract the first word of "ranlib", so it can be a program name with args.
6894 set dummy ranlib; ac_word=$2
6895 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6896 $as_echo_n "checking for $ac_word... " >&6; }
6897 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
6898 $as_echo_n "(cached) " >&6
6899 else
6900 if test -n "$ac_ct_RANLIB"; then
6901 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6902 else
6903 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6904 for as_dir in $PATH
6906 IFS=$as_save_IFS
6907 test -z "$as_dir" && as_dir=.
6908 for ac_exec_ext in '' $ac_executable_extensions; do
6909 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6910 ac_cv_prog_ac_ct_RANLIB="ranlib"
6911 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6912 break 2
6914 done
6915 done
6916 IFS=$as_save_IFS
6920 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6921 if test -n "$ac_ct_RANLIB"; then
6922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6923 $as_echo "$ac_ct_RANLIB" >&6; }
6924 else
6925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6926 $as_echo "no" >&6; }
6929 if test "x$ac_ct_RANLIB" = x; then
6930 RANLIB=":"
6931 else
6932 case $cross_compiling:$ac_tool_warned in
6933 yes:)
6934 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6935 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6936 ac_tool_warned=yes ;;
6937 esac
6938 RANLIB=$ac_ct_RANLIB
6940 else
6941 RANLIB="$ac_cv_prog_RANLIB"
6944 test -z "$RANLIB" && RANLIB=:
6951 # Determine commands to create old-style static archives.
6952 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6953 old_postinstall_cmds='chmod 644 $oldlib'
6954 old_postuninstall_cmds=
6956 if test -n "$RANLIB"; then
6957 case $host_os in
6958 openbsd*)
6959 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
6962 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
6964 esac
6965 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6968 case $host_os in
6969 darwin*)
6970 lock_old_archive_extraction=yes ;;
6972 lock_old_archive_extraction=no ;;
6973 esac
7013 # If no C compiler was specified, use CC.
7014 LTCC=${LTCC-"$CC"}
7016 # If no C compiler flags were specified, use CFLAGS.
7017 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7019 # Allow CC to be a program name with arguments.
7020 compiler=$CC
7023 # Check for command to grab the raw symbol name followed by C symbol from nm.
7024 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
7025 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
7026 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
7027 $as_echo_n "(cached) " >&6
7028 else
7030 # These are sane defaults that work on at least a few old systems.
7031 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
7033 # Character class describing NM global symbol codes.
7034 symcode='[BCDEGRST]'
7036 # Regexp to match symbols that can be accessed directly from C.
7037 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
7039 # Define system-specific variables.
7040 case $host_os in
7041 aix*)
7042 symcode='[BCDT]'
7044 cygwin* | mingw* | pw32* | cegcc*)
7045 symcode='[ABCDGISTW]'
7047 hpux*)
7048 if test "$host_cpu" = ia64; then
7049 symcode='[ABCDEGRST]'
7052 irix* | nonstopux*)
7053 symcode='[BCDEGRST]'
7055 osf*)
7056 symcode='[BCDEGQRST]'
7058 solaris*)
7059 symcode='[BDRT]'
7061 sco3.2v5*)
7062 symcode='[DT]'
7064 sysv4.2uw2*)
7065 symcode='[DT]'
7067 sysv5* | sco5v6* | unixware* | OpenUNIX*)
7068 symcode='[ABDT]'
7070 sysv4)
7071 symcode='[DFNSTU]'
7073 esac
7075 # If we're using GNU nm, then use its standard symbol codes.
7076 case `$NM -V 2>&1` in
7077 *GNU* | *'with BFD'*)
7078 symcode='[ABCDGIRSTW]' ;;
7079 esac
7081 # Transform an extracted symbol line into a proper C declaration.
7082 # Some systems (esp. on ia64) link data and code symbols differently,
7083 # so use this general approach.
7084 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7086 # Transform an extracted symbol line into symbol name and symbol address
7087 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
7088 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'"
7090 # Handle CRLF in mingw tool chain
7091 opt_cr=
7092 case $build_os in
7093 mingw*)
7094 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7096 esac
7098 # Try without a prefix underscore, then with it.
7099 for ac_symprfx in "" "_"; do
7101 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7102 symxfrm="\\1 $ac_symprfx\\2 \\2"
7104 # Write the raw and C identifiers.
7105 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7106 # Fake it for dumpbin and say T for any non-static function
7107 # and D for any global variable.
7108 # Also find C++ and __fastcall symbols from MSVC++,
7109 # which start with @ or ?.
7110 lt_cv_sys_global_symbol_pipe="$AWK '"\
7111 " {last_section=section; section=\$ 3};"\
7112 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
7113 " \$ 0!~/External *\|/{next};"\
7114 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
7115 " {if(hide[section]) next};"\
7116 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
7117 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
7118 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
7119 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
7120 " ' prfx=^$ac_symprfx"
7121 else
7122 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7125 # Check to see that the pipe works correctly.
7126 pipe_works=no
7128 rm -f conftest*
7129 cat > conftest.$ac_ext <<_LT_EOF
7130 #ifdef __cplusplus
7131 extern "C" {
7132 #endif
7133 char nm_test_var;
7134 void nm_test_func(void);
7135 void nm_test_func(void){}
7136 #ifdef __cplusplus
7138 #endif
7139 int main(){nm_test_var='a';nm_test_func();return(0);}
7140 _LT_EOF
7142 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7143 (eval $ac_compile) 2>&5
7144 ac_status=$?
7145 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7146 test $ac_status = 0; }; then
7147 # Now try to grab the symbols.
7148 nlist=conftest.nm
7149 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
7150 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
7151 ac_status=$?
7152 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7153 test $ac_status = 0; } && test -s "$nlist"; then
7154 # Try sorting and uniquifying the output.
7155 if sort "$nlist" | uniq > "$nlist"T; then
7156 mv -f "$nlist"T "$nlist"
7157 else
7158 rm -f "$nlist"T
7161 # Make sure that we snagged all the symbols we need.
7162 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
7163 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
7164 cat <<_LT_EOF > conftest.$ac_ext
7165 #ifdef __cplusplus
7166 extern "C" {
7167 #endif
7169 _LT_EOF
7170 # Now generate the symbol file.
7171 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
7173 cat <<_LT_EOF >> conftest.$ac_ext
7175 /* The mapping between symbol names and symbols. */
7176 const struct {
7177 const char *name;
7178 void *address;
7180 lt__PROGRAM__LTX_preloaded_symbols[] =
7182 { "@PROGRAM@", (void *) 0 },
7183 _LT_EOF
7184 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
7185 cat <<\_LT_EOF >> conftest.$ac_ext
7186 {0, (void *) 0}
7189 /* This works around a problem in FreeBSD linker */
7190 #ifdef FREEBSD_WORKAROUND
7191 static const void *lt_preloaded_setup() {
7192 return lt__PROGRAM__LTX_preloaded_symbols;
7194 #endif
7196 #ifdef __cplusplus
7198 #endif
7199 _LT_EOF
7200 # Now try linking the two files.
7201 mv conftest.$ac_objext conftstm.$ac_objext
7202 lt_save_LIBS="$LIBS"
7203 lt_save_CFLAGS="$CFLAGS"
7204 LIBS="conftstm.$ac_objext"
7205 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7206 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
7207 (eval $ac_link) 2>&5
7208 ac_status=$?
7209 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7210 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
7211 pipe_works=yes
7213 LIBS="$lt_save_LIBS"
7214 CFLAGS="$lt_save_CFLAGS"
7215 else
7216 echo "cannot find nm_test_func in $nlist" >&5
7218 else
7219 echo "cannot find nm_test_var in $nlist" >&5
7221 else
7222 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7224 else
7225 echo "$progname: failed program was:" >&5
7226 cat conftest.$ac_ext >&5
7228 rm -rf conftest* conftst*
7230 # Do not use the global_symbol_pipe unless it works.
7231 if test "$pipe_works" = yes; then
7232 break
7233 else
7234 lt_cv_sys_global_symbol_pipe=
7236 done
7240 if test -z "$lt_cv_sys_global_symbol_pipe"; then
7241 lt_cv_sys_global_symbol_to_cdecl=
7243 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
7245 $as_echo "failed" >&6; }
7246 else
7247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
7248 $as_echo "ok" >&6; }
7272 # Check whether --enable-libtool-lock was given.
7273 if test "${enable_libtool_lock+set}" = set; then :
7274 enableval=$enable_libtool_lock;
7277 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7279 # Some flags need to be propagated to the compiler or linker for good
7280 # libtool support.
7281 case $host in
7282 ia64-*-hpux*)
7283 # Find out which ABI we are using.
7284 echo 'int i;' > conftest.$ac_ext
7285 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7286 (eval $ac_compile) 2>&5
7287 ac_status=$?
7288 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7289 test $ac_status = 0; }; then
7290 case `/usr/bin/file conftest.$ac_objext` in
7291 *ELF-32*)
7292 HPUX_IA64_MODE="32"
7294 *ELF-64*)
7295 HPUX_IA64_MODE="64"
7297 esac
7299 rm -rf conftest*
7301 *-*-irix6*)
7302 # Find out which ABI we are using.
7303 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
7304 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7305 (eval $ac_compile) 2>&5
7306 ac_status=$?
7307 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7308 test $ac_status = 0; }; then
7309 if test "$lt_cv_prog_gnu_ld" = yes; then
7310 case `/usr/bin/file conftest.$ac_objext` in
7311 *32-bit*)
7312 LD="${LD-ld} -melf32bsmip"
7314 *N32*)
7315 LD="${LD-ld} -melf32bmipn32"
7317 *64-bit*)
7318 LD="${LD-ld} -melf64bmip"
7320 esac
7321 else
7322 case `/usr/bin/file conftest.$ac_objext` in
7323 *32-bit*)
7324 LD="${LD-ld} -32"
7326 *N32*)
7327 LD="${LD-ld} -n32"
7329 *64-bit*)
7330 LD="${LD-ld} -64"
7332 esac
7335 rm -rf conftest*
7338 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
7339 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
7340 # Find out which ABI we are using.
7341 echo 'int i;' > conftest.$ac_ext
7342 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7343 (eval $ac_compile) 2>&5
7344 ac_status=$?
7345 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7346 test $ac_status = 0; }; then
7347 case `/usr/bin/file conftest.o` in
7348 *32-bit*)
7349 case $host in
7350 x86_64-*kfreebsd*-gnu)
7351 LD="${LD-ld} -m elf_i386_fbsd"
7353 x86_64-*linux*)
7354 LD="${LD-ld} -m elf_i386"
7356 ppc64-*linux*|powerpc64-*linux*)
7357 LD="${LD-ld} -m elf32ppclinux"
7359 s390x-*linux*)
7360 LD="${LD-ld} -m elf_s390"
7362 sparc64-*linux*)
7363 LD="${LD-ld} -m elf32_sparc"
7365 esac
7367 *64-bit*)
7368 case $host in
7369 x86_64-*kfreebsd*-gnu)
7370 LD="${LD-ld} -m elf_x86_64_fbsd"
7372 x86_64-*linux*)
7373 LD="${LD-ld} -m elf_x86_64"
7375 ppc*-*linux*|powerpc*-*linux*)
7376 LD="${LD-ld} -m elf64ppc"
7378 s390*-*linux*|s390*-*tpf*)
7379 LD="${LD-ld} -m elf64_s390"
7381 sparc*-*linux*)
7382 LD="${LD-ld} -m elf64_sparc"
7384 esac
7386 esac
7388 rm -rf conftest*
7391 *-*-sco3.2v5*)
7392 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7393 SAVE_CFLAGS="$CFLAGS"
7394 CFLAGS="$CFLAGS -belf"
7395 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
7396 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
7397 if test "${lt_cv_cc_needs_belf+set}" = set; then :
7398 $as_echo_n "(cached) " >&6
7399 else
7400 ac_ext=c
7401 ac_cpp='$CPP $CPPFLAGS'
7402 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7403 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7404 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7406 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7407 /* end confdefs.h. */
7410 main ()
7414 return 0;
7416 _ACEOF
7417 if ac_fn_c_try_link "$LINENO"; then :
7418 lt_cv_cc_needs_belf=yes
7419 else
7420 lt_cv_cc_needs_belf=no
7422 rm -f core conftest.err conftest.$ac_objext \
7423 conftest$ac_exeext conftest.$ac_ext
7424 ac_ext=c
7425 ac_cpp='$CPP $CPPFLAGS'
7426 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7427 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7428 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
7432 $as_echo "$lt_cv_cc_needs_belf" >&6; }
7433 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
7434 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7435 CFLAGS="$SAVE_CFLAGS"
7438 sparc*-*solaris*)
7439 # Find out which ABI we are using.
7440 echo 'int i;' > conftest.$ac_ext
7441 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7442 (eval $ac_compile) 2>&5
7443 ac_status=$?
7444 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7445 test $ac_status = 0; }; then
7446 case `/usr/bin/file conftest.o` in
7447 *64-bit*)
7448 case $lt_cv_prog_gnu_ld in
7449 yes*) LD="${LD-ld} -m elf64_sparc" ;;
7451 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7452 LD="${LD-ld} -64"
7455 esac
7457 esac
7459 rm -rf conftest*
7461 esac
7463 need_locks="$enable_libtool_lock"
7466 case $host_os in
7467 rhapsody* | darwin*)
7468 if test -n "$ac_tool_prefix"; then
7469 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7470 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7471 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7472 $as_echo_n "checking for $ac_word... " >&6; }
7473 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
7474 $as_echo_n "(cached) " >&6
7475 else
7476 if test -n "$DSYMUTIL"; then
7477 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7478 else
7479 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7480 for as_dir in $PATH
7482 IFS=$as_save_IFS
7483 test -z "$as_dir" && as_dir=.
7484 for ac_exec_ext in '' $ac_executable_extensions; do
7485 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7486 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7487 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7488 break 2
7490 done
7491 done
7492 IFS=$as_save_IFS
7496 DSYMUTIL=$ac_cv_prog_DSYMUTIL
7497 if test -n "$DSYMUTIL"; then
7498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
7499 $as_echo "$DSYMUTIL" >&6; }
7500 else
7501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7502 $as_echo "no" >&6; }
7507 if test -z "$ac_cv_prog_DSYMUTIL"; then
7508 ac_ct_DSYMUTIL=$DSYMUTIL
7509 # Extract the first word of "dsymutil", so it can be a program name with args.
7510 set dummy dsymutil; ac_word=$2
7511 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7512 $as_echo_n "checking for $ac_word... " >&6; }
7513 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
7514 $as_echo_n "(cached) " >&6
7515 else
7516 if test -n "$ac_ct_DSYMUTIL"; then
7517 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7518 else
7519 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7520 for as_dir in $PATH
7522 IFS=$as_save_IFS
7523 test -z "$as_dir" && as_dir=.
7524 for ac_exec_ext in '' $ac_executable_extensions; do
7525 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7526 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7527 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7528 break 2
7530 done
7531 done
7532 IFS=$as_save_IFS
7536 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7537 if test -n "$ac_ct_DSYMUTIL"; then
7538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
7539 $as_echo "$ac_ct_DSYMUTIL" >&6; }
7540 else
7541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7542 $as_echo "no" >&6; }
7545 if test "x$ac_ct_DSYMUTIL" = x; then
7546 DSYMUTIL=":"
7547 else
7548 case $cross_compiling:$ac_tool_warned in
7549 yes:)
7550 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7551 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7552 ac_tool_warned=yes ;;
7553 esac
7554 DSYMUTIL=$ac_ct_DSYMUTIL
7556 else
7557 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7560 if test -n "$ac_tool_prefix"; then
7561 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7562 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7563 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7564 $as_echo_n "checking for $ac_word... " >&6; }
7565 if test "${ac_cv_prog_NMEDIT+set}" = set; then :
7566 $as_echo_n "(cached) " >&6
7567 else
7568 if test -n "$NMEDIT"; then
7569 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7570 else
7571 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7572 for as_dir in $PATH
7574 IFS=$as_save_IFS
7575 test -z "$as_dir" && as_dir=.
7576 for ac_exec_ext in '' $ac_executable_extensions; do
7577 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7578 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7579 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7580 break 2
7582 done
7583 done
7584 IFS=$as_save_IFS
7588 NMEDIT=$ac_cv_prog_NMEDIT
7589 if test -n "$NMEDIT"; then
7590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
7591 $as_echo "$NMEDIT" >&6; }
7592 else
7593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7594 $as_echo "no" >&6; }
7599 if test -z "$ac_cv_prog_NMEDIT"; then
7600 ac_ct_NMEDIT=$NMEDIT
7601 # Extract the first word of "nmedit", so it can be a program name with args.
7602 set dummy nmedit; ac_word=$2
7603 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7604 $as_echo_n "checking for $ac_word... " >&6; }
7605 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
7606 $as_echo_n "(cached) " >&6
7607 else
7608 if test -n "$ac_ct_NMEDIT"; then
7609 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7610 else
7611 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7612 for as_dir in $PATH
7614 IFS=$as_save_IFS
7615 test -z "$as_dir" && as_dir=.
7616 for ac_exec_ext in '' $ac_executable_extensions; do
7617 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7618 ac_cv_prog_ac_ct_NMEDIT="nmedit"
7619 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7620 break 2
7622 done
7623 done
7624 IFS=$as_save_IFS
7628 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7629 if test -n "$ac_ct_NMEDIT"; then
7630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7631 $as_echo "$ac_ct_NMEDIT" >&6; }
7632 else
7633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7634 $as_echo "no" >&6; }
7637 if test "x$ac_ct_NMEDIT" = x; then
7638 NMEDIT=":"
7639 else
7640 case $cross_compiling:$ac_tool_warned in
7641 yes:)
7642 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7643 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7644 ac_tool_warned=yes ;;
7645 esac
7646 NMEDIT=$ac_ct_NMEDIT
7648 else
7649 NMEDIT="$ac_cv_prog_NMEDIT"
7652 if test -n "$ac_tool_prefix"; then
7653 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7654 set dummy ${ac_tool_prefix}lipo; ac_word=$2
7655 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7656 $as_echo_n "checking for $ac_word... " >&6; }
7657 if test "${ac_cv_prog_LIPO+set}" = set; then :
7658 $as_echo_n "(cached) " >&6
7659 else
7660 if test -n "$LIPO"; then
7661 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7662 else
7663 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7664 for as_dir in $PATH
7666 IFS=$as_save_IFS
7667 test -z "$as_dir" && as_dir=.
7668 for ac_exec_ext in '' $ac_executable_extensions; do
7669 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7670 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7671 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7672 break 2
7674 done
7675 done
7676 IFS=$as_save_IFS
7680 LIPO=$ac_cv_prog_LIPO
7681 if test -n "$LIPO"; then
7682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7683 $as_echo "$LIPO" >&6; }
7684 else
7685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7686 $as_echo "no" >&6; }
7691 if test -z "$ac_cv_prog_LIPO"; then
7692 ac_ct_LIPO=$LIPO
7693 # Extract the first word of "lipo", so it can be a program name with args.
7694 set dummy lipo; ac_word=$2
7695 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7696 $as_echo_n "checking for $ac_word... " >&6; }
7697 if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
7698 $as_echo_n "(cached) " >&6
7699 else
7700 if test -n "$ac_ct_LIPO"; then
7701 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7702 else
7703 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7704 for as_dir in $PATH
7706 IFS=$as_save_IFS
7707 test -z "$as_dir" && as_dir=.
7708 for ac_exec_ext in '' $ac_executable_extensions; do
7709 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7710 ac_cv_prog_ac_ct_LIPO="lipo"
7711 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7712 break 2
7714 done
7715 done
7716 IFS=$as_save_IFS
7720 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7721 if test -n "$ac_ct_LIPO"; then
7722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7723 $as_echo "$ac_ct_LIPO" >&6; }
7724 else
7725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7726 $as_echo "no" >&6; }
7729 if test "x$ac_ct_LIPO" = x; then
7730 LIPO=":"
7731 else
7732 case $cross_compiling:$ac_tool_warned in
7733 yes:)
7734 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7735 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7736 ac_tool_warned=yes ;;
7737 esac
7738 LIPO=$ac_ct_LIPO
7740 else
7741 LIPO="$ac_cv_prog_LIPO"
7744 if test -n "$ac_tool_prefix"; then
7745 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7746 set dummy ${ac_tool_prefix}otool; ac_word=$2
7747 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7748 $as_echo_n "checking for $ac_word... " >&6; }
7749 if test "${ac_cv_prog_OTOOL+set}" = set; then :
7750 $as_echo_n "(cached) " >&6
7751 else
7752 if test -n "$OTOOL"; then
7753 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7754 else
7755 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7756 for as_dir in $PATH
7758 IFS=$as_save_IFS
7759 test -z "$as_dir" && as_dir=.
7760 for ac_exec_ext in '' $ac_executable_extensions; do
7761 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7762 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7763 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7764 break 2
7766 done
7767 done
7768 IFS=$as_save_IFS
7772 OTOOL=$ac_cv_prog_OTOOL
7773 if test -n "$OTOOL"; then
7774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7775 $as_echo "$OTOOL" >&6; }
7776 else
7777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7778 $as_echo "no" >&6; }
7783 if test -z "$ac_cv_prog_OTOOL"; then
7784 ac_ct_OTOOL=$OTOOL
7785 # Extract the first word of "otool", so it can be a program name with args.
7786 set dummy otool; ac_word=$2
7787 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7788 $as_echo_n "checking for $ac_word... " >&6; }
7789 if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
7790 $as_echo_n "(cached) " >&6
7791 else
7792 if test -n "$ac_ct_OTOOL"; then
7793 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7794 else
7795 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7796 for as_dir in $PATH
7798 IFS=$as_save_IFS
7799 test -z "$as_dir" && as_dir=.
7800 for ac_exec_ext in '' $ac_executable_extensions; do
7801 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7802 ac_cv_prog_ac_ct_OTOOL="otool"
7803 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7804 break 2
7806 done
7807 done
7808 IFS=$as_save_IFS
7812 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7813 if test -n "$ac_ct_OTOOL"; then
7814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7815 $as_echo "$ac_ct_OTOOL" >&6; }
7816 else
7817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7818 $as_echo "no" >&6; }
7821 if test "x$ac_ct_OTOOL" = x; then
7822 OTOOL=":"
7823 else
7824 case $cross_compiling:$ac_tool_warned in
7825 yes:)
7826 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7827 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7828 ac_tool_warned=yes ;;
7829 esac
7830 OTOOL=$ac_ct_OTOOL
7832 else
7833 OTOOL="$ac_cv_prog_OTOOL"
7836 if test -n "$ac_tool_prefix"; then
7837 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7838 set dummy ${ac_tool_prefix}otool64; ac_word=$2
7839 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7840 $as_echo_n "checking for $ac_word... " >&6; }
7841 if test "${ac_cv_prog_OTOOL64+set}" = set; then :
7842 $as_echo_n "(cached) " >&6
7843 else
7844 if test -n "$OTOOL64"; then
7845 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7846 else
7847 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7848 for as_dir in $PATH
7850 IFS=$as_save_IFS
7851 test -z "$as_dir" && as_dir=.
7852 for ac_exec_ext in '' $ac_executable_extensions; do
7853 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7854 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7855 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7856 break 2
7858 done
7859 done
7860 IFS=$as_save_IFS
7864 OTOOL64=$ac_cv_prog_OTOOL64
7865 if test -n "$OTOOL64"; then
7866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
7867 $as_echo "$OTOOL64" >&6; }
7868 else
7869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7870 $as_echo "no" >&6; }
7875 if test -z "$ac_cv_prog_OTOOL64"; then
7876 ac_ct_OTOOL64=$OTOOL64
7877 # Extract the first word of "otool64", so it can be a program name with args.
7878 set dummy otool64; ac_word=$2
7879 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7880 $as_echo_n "checking for $ac_word... " >&6; }
7881 if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
7882 $as_echo_n "(cached) " >&6
7883 else
7884 if test -n "$ac_ct_OTOOL64"; then
7885 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7886 else
7887 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7888 for as_dir in $PATH
7890 IFS=$as_save_IFS
7891 test -z "$as_dir" && as_dir=.
7892 for ac_exec_ext in '' $ac_executable_extensions; do
7893 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7894 ac_cv_prog_ac_ct_OTOOL64="otool64"
7895 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7896 break 2
7898 done
7899 done
7900 IFS=$as_save_IFS
7904 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7905 if test -n "$ac_ct_OTOOL64"; then
7906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
7907 $as_echo "$ac_ct_OTOOL64" >&6; }
7908 else
7909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7910 $as_echo "no" >&6; }
7913 if test "x$ac_ct_OTOOL64" = x; then
7914 OTOOL64=":"
7915 else
7916 case $cross_compiling:$ac_tool_warned in
7917 yes:)
7918 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7919 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7920 ac_tool_warned=yes ;;
7921 esac
7922 OTOOL64=$ac_ct_OTOOL64
7924 else
7925 OTOOL64="$ac_cv_prog_OTOOL64"
7954 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7955 $as_echo_n "checking for -single_module linker flag... " >&6; }
7956 if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
7957 $as_echo_n "(cached) " >&6
7958 else
7959 lt_cv_apple_cc_single_mod=no
7960 if test -z "${LT_MULTI_MODULE}"; then
7961 # By default we will add the -single_module flag. You can override
7962 # by either setting the environment variable LT_MULTI_MODULE
7963 # non-empty at configure time, or by adding -multi_module to the
7964 # link flags.
7965 rm -rf libconftest.dylib*
7966 echo "int foo(void){return 1;}" > conftest.c
7967 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7968 -dynamiclib -Wl,-single_module conftest.c" >&5
7969 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7970 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7971 _lt_result=$?
7972 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
7973 lt_cv_apple_cc_single_mod=yes
7974 else
7975 cat conftest.err >&5
7977 rm -rf libconftest.dylib*
7978 rm -f conftest.*
7981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7982 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7983 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7984 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7985 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
7986 $as_echo_n "(cached) " >&6
7987 else
7988 lt_cv_ld_exported_symbols_list=no
7989 save_LDFLAGS=$LDFLAGS
7990 echo "_main" > conftest.sym
7991 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7992 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7993 /* end confdefs.h. */
7996 main ()
8000 return 0;
8002 _ACEOF
8003 if ac_fn_c_try_link "$LINENO"; then :
8004 lt_cv_ld_exported_symbols_list=yes
8005 else
8006 lt_cv_ld_exported_symbols_list=no
8008 rm -f core conftest.err conftest.$ac_objext \
8009 conftest$ac_exeext conftest.$ac_ext
8010 LDFLAGS="$save_LDFLAGS"
8013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
8014 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
8015 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
8016 $as_echo_n "checking for -force_load linker flag... " >&6; }
8017 if test "${lt_cv_ld_force_load+set}" = set; then :
8018 $as_echo_n "(cached) " >&6
8019 else
8020 lt_cv_ld_force_load=no
8021 cat > conftest.c << _LT_EOF
8022 int forced_loaded() { return 2;}
8023 _LT_EOF
8024 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
8025 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
8026 echo "$AR cru libconftest.a conftest.o" >&5
8027 $AR cru libconftest.a conftest.o 2>&5
8028 cat > conftest.c << _LT_EOF
8029 int main() { return 0;}
8030 _LT_EOF
8031 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
8032 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
8033 _lt_result=$?
8034 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
8035 lt_cv_ld_force_load=yes
8036 else
8037 cat conftest.err >&5
8039 rm -f conftest.err libconftest.a conftest conftest.c
8040 rm -rf conftest.dSYM
8043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
8044 $as_echo "$lt_cv_ld_force_load" >&6; }
8045 case $host_os in
8046 rhapsody* | darwin1.[012])
8047 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
8048 darwin1.*)
8049 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8050 darwin*) # darwin 5.x on
8051 # if running on 10.5 or later, the deployment target defaults
8052 # to the OS version, if on x86, and 10.4, the deployment
8053 # target defaults to 10.4. Don't you love it?
8054 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
8055 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
8056 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
8057 10.[012]*)
8058 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8059 10.*)
8060 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
8061 esac
8063 esac
8064 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
8065 _lt_dar_single_mod='$single_module'
8067 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
8068 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
8069 else
8070 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
8072 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
8073 _lt_dsymutil='~$DSYMUTIL $lib || :'
8074 else
8075 _lt_dsymutil=
8078 esac
8080 for ac_header in dlfcn.h
8081 do :
8082 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
8084 if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
8085 cat >>confdefs.h <<_ACEOF
8086 #define HAVE_DLFCN_H 1
8087 _ACEOF
8091 done
8097 # Set options
8101 enable_dlopen=no
8104 enable_win32_dll=no
8107 # Check whether --enable-shared was given.
8108 if test "${enable_shared+set}" = set; then :
8109 enableval=$enable_shared; p=${PACKAGE-default}
8110 case $enableval in
8111 yes) enable_shared=yes ;;
8112 no) enable_shared=no ;;
8114 enable_shared=no
8115 # Look at the argument we got. We use all the common list separators.
8116 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8117 for pkg in $enableval; do
8118 IFS="$lt_save_ifs"
8119 if test "X$pkg" = "X$p"; then
8120 enable_shared=yes
8122 done
8123 IFS="$lt_save_ifs"
8125 esac
8126 else
8127 enable_shared=yes
8138 # Check whether --enable-static was given.
8139 if test "${enable_static+set}" = set; then :
8140 enableval=$enable_static; p=${PACKAGE-default}
8141 case $enableval in
8142 yes) enable_static=yes ;;
8143 no) enable_static=no ;;
8145 enable_static=no
8146 # Look at the argument we got. We use all the common list separators.
8147 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8148 for pkg in $enableval; do
8149 IFS="$lt_save_ifs"
8150 if test "X$pkg" = "X$p"; then
8151 enable_static=yes
8153 done
8154 IFS="$lt_save_ifs"
8156 esac
8157 else
8158 enable_static=yes
8170 # Check whether --with-pic was given.
8171 if test "${with_pic+set}" = set; then :
8172 withval=$with_pic; pic_mode="$withval"
8173 else
8174 pic_mode=default
8178 test -z "$pic_mode" && pic_mode=default
8186 # Check whether --enable-fast-install was given.
8187 if test "${enable_fast_install+set}" = set; then :
8188 enableval=$enable_fast_install; p=${PACKAGE-default}
8189 case $enableval in
8190 yes) enable_fast_install=yes ;;
8191 no) enable_fast_install=no ;;
8193 enable_fast_install=no
8194 # Look at the argument we got. We use all the common list separators.
8195 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8196 for pkg in $enableval; do
8197 IFS="$lt_save_ifs"
8198 if test "X$pkg" = "X$p"; then
8199 enable_fast_install=yes
8201 done
8202 IFS="$lt_save_ifs"
8204 esac
8205 else
8206 enable_fast_install=yes
8219 # This can be used to rebuild libtool when needed
8220 LIBTOOL_DEPS="$ltmain"
8222 # Always use our own libtool.
8223 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8250 test -z "$LN_S" && LN_S="ln -s"
8265 if test -n "${ZSH_VERSION+set}" ; then
8266 setopt NO_GLOB_SUBST
8269 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8270 $as_echo_n "checking for objdir... " >&6; }
8271 if test "${lt_cv_objdir+set}" = set; then :
8272 $as_echo_n "(cached) " >&6
8273 else
8274 rm -f .libs 2>/dev/null
8275 mkdir .libs 2>/dev/null
8276 if test -d .libs; then
8277 lt_cv_objdir=.libs
8278 else
8279 # MS-DOS does not allow filenames that begin with a dot.
8280 lt_cv_objdir=_libs
8282 rmdir .libs 2>/dev/null
8284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8285 $as_echo "$lt_cv_objdir" >&6; }
8286 objdir=$lt_cv_objdir
8292 cat >>confdefs.h <<_ACEOF
8293 #define LT_OBJDIR "$lt_cv_objdir/"
8294 _ACEOF
8299 case $host_os in
8300 aix3*)
8301 # AIX sometimes has problems with the GCC collect2 program. For some
8302 # reason, if we set the COLLECT_NAMES environment variable, the problems
8303 # vanish in a puff of smoke.
8304 if test "X${COLLECT_NAMES+set}" != Xset; then
8305 COLLECT_NAMES=
8306 export COLLECT_NAMES
8309 esac
8311 # Global variables:
8312 ofile=libtool
8313 can_build_shared=yes
8315 # All known linkers require a `.a' archive for static linking (except MSVC,
8316 # which needs '.lib').
8317 libext=a
8319 with_gnu_ld="$lt_cv_prog_gnu_ld"
8321 old_CC="$CC"
8322 old_CFLAGS="$CFLAGS"
8324 # Set sane defaults for various variables
8325 test -z "$CC" && CC=cc
8326 test -z "$LTCC" && LTCC=$CC
8327 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8328 test -z "$LD" && LD=ld
8329 test -z "$ac_objext" && ac_objext=o
8331 for cc_temp in $compiler""; do
8332 case $cc_temp in
8333 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8334 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8335 \-*) ;;
8336 *) break;;
8337 esac
8338 done
8339 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
8342 # Only perform the check for file, if the check method requires it
8343 test -z "$MAGIC_CMD" && MAGIC_CMD=file
8344 case $deplibs_check_method in
8345 file_magic*)
8346 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8347 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8348 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
8349 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
8350 $as_echo_n "(cached) " >&6
8351 else
8352 case $MAGIC_CMD in
8353 [\\/*] | ?:[\\/]*)
8354 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8357 lt_save_MAGIC_CMD="$MAGIC_CMD"
8358 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8359 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8360 for ac_dir in $ac_dummy; do
8361 IFS="$lt_save_ifs"
8362 test -z "$ac_dir" && ac_dir=.
8363 if test -f $ac_dir/${ac_tool_prefix}file; then
8364 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8365 if test -n "$file_magic_test_file"; then
8366 case $deplibs_check_method in
8367 "file_magic "*)
8368 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8369 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8370 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8371 $EGREP "$file_magic_regex" > /dev/null; then
8373 else
8374 cat <<_LT_EOF 1>&2
8376 *** Warning: the command libtool uses to detect shared libraries,
8377 *** $file_magic_cmd, produces output that libtool cannot recognize.
8378 *** The result is that libtool may fail to recognize shared libraries
8379 *** as such. This will affect the creation of libtool libraries that
8380 *** depend on shared libraries, but programs linked with such libtool
8381 *** libraries will work regardless of this problem. Nevertheless, you
8382 *** may want to report the problem to your system manager and/or to
8383 *** bug-libtool@gnu.org
8385 _LT_EOF
8386 fi ;;
8387 esac
8389 break
8391 done
8392 IFS="$lt_save_ifs"
8393 MAGIC_CMD="$lt_save_MAGIC_CMD"
8395 esac
8398 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8399 if test -n "$MAGIC_CMD"; then
8400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8401 $as_echo "$MAGIC_CMD" >&6; }
8402 else
8403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8404 $as_echo "no" >&6; }
8411 if test -z "$lt_cv_path_MAGIC_CMD"; then
8412 if test -n "$ac_tool_prefix"; then
8413 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8414 $as_echo_n "checking for file... " >&6; }
8415 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
8416 $as_echo_n "(cached) " >&6
8417 else
8418 case $MAGIC_CMD in
8419 [\\/*] | ?:[\\/]*)
8420 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8423 lt_save_MAGIC_CMD="$MAGIC_CMD"
8424 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8425 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8426 for ac_dir in $ac_dummy; do
8427 IFS="$lt_save_ifs"
8428 test -z "$ac_dir" && ac_dir=.
8429 if test -f $ac_dir/file; then
8430 lt_cv_path_MAGIC_CMD="$ac_dir/file"
8431 if test -n "$file_magic_test_file"; then
8432 case $deplibs_check_method in
8433 "file_magic "*)
8434 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8435 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8436 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8437 $EGREP "$file_magic_regex" > /dev/null; then
8439 else
8440 cat <<_LT_EOF 1>&2
8442 *** Warning: the command libtool uses to detect shared libraries,
8443 *** $file_magic_cmd, produces output that libtool cannot recognize.
8444 *** The result is that libtool may fail to recognize shared libraries
8445 *** as such. This will affect the creation of libtool libraries that
8446 *** depend on shared libraries, but programs linked with such libtool
8447 *** libraries will work regardless of this problem. Nevertheless, you
8448 *** may want to report the problem to your system manager and/or to
8449 *** bug-libtool@gnu.org
8451 _LT_EOF
8452 fi ;;
8453 esac
8455 break
8457 done
8458 IFS="$lt_save_ifs"
8459 MAGIC_CMD="$lt_save_MAGIC_CMD"
8461 esac
8464 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8465 if test -n "$MAGIC_CMD"; then
8466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8467 $as_echo "$MAGIC_CMD" >&6; }
8468 else
8469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8470 $as_echo "no" >&6; }
8474 else
8475 MAGIC_CMD=:
8481 esac
8483 # Use C for the default configuration in the libtool script
8485 lt_save_CC="$CC"
8486 ac_ext=c
8487 ac_cpp='$CPP $CPPFLAGS'
8488 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8489 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8490 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8493 # Source file extension for C test sources.
8494 ac_ext=c
8496 # Object file extension for compiled C test sources.
8497 objext=o
8498 objext=$objext
8500 # Code to be used in simple compile tests
8501 lt_simple_compile_test_code="int some_variable = 0;"
8503 # Code to be used in simple link tests
8504 lt_simple_link_test_code='int main(){return(0);}'
8512 # If no C compiler was specified, use CC.
8513 LTCC=${LTCC-"$CC"}
8515 # If no C compiler flags were specified, use CFLAGS.
8516 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8518 # Allow CC to be a program name with arguments.
8519 compiler=$CC
8521 # Save the default compiler, since it gets overwritten when the other
8522 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8523 compiler_DEFAULT=$CC
8525 # save warnings/boilerplate of simple test code
8526 ac_outfile=conftest.$ac_objext
8527 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8528 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8529 _lt_compiler_boilerplate=`cat conftest.err`
8530 $RM conftest*
8532 ac_outfile=conftest.$ac_objext
8533 echo "$lt_simple_link_test_code" >conftest.$ac_ext
8534 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8535 _lt_linker_boilerplate=`cat conftest.err`
8536 $RM -r conftest*
8539 ## CAVEAT EMPTOR:
8540 ## There is no encapsulation within the following macros, do not change
8541 ## the running order or otherwise move them around unless you know exactly
8542 ## what you are doing...
8543 if test -n "$compiler"; then
8545 lt_prog_compiler_no_builtin_flag=
8547 if test "$GCC" = yes; then
8548 case $cc_basename in
8549 nvcc*)
8550 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
8552 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
8553 esac
8555 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8556 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8557 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
8558 $as_echo_n "(cached) " >&6
8559 else
8560 lt_cv_prog_compiler_rtti_exceptions=no
8561 ac_outfile=conftest.$ac_objext
8562 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8563 lt_compiler_flag="-fno-rtti -fno-exceptions"
8564 # Insert the option either (1) after the last *FLAGS variable, or
8565 # (2) before a word containing "conftest.", or (3) at the end.
8566 # Note that $ac_compile itself does not contain backslashes and begins
8567 # with a dollar sign (not a hyphen), so the echo should work correctly.
8568 # The option is referenced via a variable to avoid confusing sed.
8569 lt_compile=`echo "$ac_compile" | $SED \
8570 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8571 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8572 -e 's:$: $lt_compiler_flag:'`
8573 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8574 (eval "$lt_compile" 2>conftest.err)
8575 ac_status=$?
8576 cat conftest.err >&5
8577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8578 if (exit $ac_status) && test -s "$ac_outfile"; then
8579 # The compiler can only warn and ignore the option if not recognized
8580 # So say no if there are warnings other than the usual output.
8581 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8582 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8583 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8584 lt_cv_prog_compiler_rtti_exceptions=yes
8587 $RM conftest*
8590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8591 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8593 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8594 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8595 else
8606 lt_prog_compiler_wl=
8607 lt_prog_compiler_pic=
8608 lt_prog_compiler_static=
8610 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8611 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8613 if test "$GCC" = yes; then
8614 lt_prog_compiler_wl='-Wl,'
8615 lt_prog_compiler_static='-static'
8617 case $host_os in
8618 aix*)
8619 # All AIX code is PIC.
8620 if test "$host_cpu" = ia64; then
8621 # AIX 5 now supports IA64 processor
8622 lt_prog_compiler_static='-Bstatic'
8626 amigaos*)
8627 case $host_cpu in
8628 powerpc)
8629 # see comment about AmigaOS4 .so support
8630 lt_prog_compiler_pic='-fPIC'
8632 m68k)
8633 # FIXME: we need at least 68020 code to build shared libraries, but
8634 # adding the `-m68020' flag to GCC prevents building anything better,
8635 # like `-m68040'.
8636 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8638 esac
8641 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8642 # PIC is the default for these OSes.
8645 mingw* | cygwin* | pw32* | os2* | cegcc*)
8646 # This hack is so that the source file can tell whether it is being
8647 # built for inclusion in a dll (and should export symbols for example).
8648 # Although the cygwin gcc ignores -fPIC, still need this for old-style
8649 # (--disable-auto-import) libraries
8650 lt_prog_compiler_pic='-DDLL_EXPORT'
8653 darwin* | rhapsody*)
8654 # PIC is the default on this platform
8655 # Common symbols not allowed in MH_DYLIB files
8656 lt_prog_compiler_pic='-fno-common'
8659 haiku*)
8660 # PIC is the default for Haiku.
8661 # The "-static" flag exists, but is broken.
8662 lt_prog_compiler_static=
8665 hpux*)
8666 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8667 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
8668 # sets the default TLS model and affects inlining.
8669 case $host_cpu in
8670 hppa*64*)
8671 # +Z the default
8674 lt_prog_compiler_pic='-fPIC'
8676 esac
8679 interix[3-9]*)
8680 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8681 # Instead, we relocate shared libraries at runtime.
8684 msdosdjgpp*)
8685 # Just because we use GCC doesn't mean we suddenly get shared libraries
8686 # on systems that don't support them.
8687 lt_prog_compiler_can_build_shared=no
8688 enable_shared=no
8691 *nto* | *qnx*)
8692 # QNX uses GNU C++, but need to define -shared option too, otherwise
8693 # it will coredump.
8694 lt_prog_compiler_pic='-fPIC -shared'
8697 sysv4*MP*)
8698 if test -d /usr/nec; then
8699 lt_prog_compiler_pic=-Kconform_pic
8704 lt_prog_compiler_pic='-fPIC'
8706 esac
8708 case $cc_basename in
8709 nvcc*) # Cuda Compiler Driver 2.2
8710 lt_prog_compiler_wl='-Xlinker '
8711 lt_prog_compiler_pic='-Xcompiler -fPIC'
8713 esac
8714 else
8715 # PORTME Check for flag to pass linker flags through the system compiler.
8716 case $host_os in
8717 aix*)
8718 lt_prog_compiler_wl='-Wl,'
8719 if test "$host_cpu" = ia64; then
8720 # AIX 5 now supports IA64 processor
8721 lt_prog_compiler_static='-Bstatic'
8722 else
8723 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8727 mingw* | cygwin* | pw32* | os2* | cegcc*)
8728 # This hack is so that the source file can tell whether it is being
8729 # built for inclusion in a dll (and should export symbols for example).
8730 lt_prog_compiler_pic='-DDLL_EXPORT'
8733 hpux9* | hpux10* | hpux11*)
8734 lt_prog_compiler_wl='-Wl,'
8735 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8736 # not for PA HP-UX.
8737 case $host_cpu in
8738 hppa*64*|ia64*)
8739 # +Z the default
8742 lt_prog_compiler_pic='+Z'
8744 esac
8745 # Is there a better lt_prog_compiler_static that works with the bundled CC?
8746 lt_prog_compiler_static='${wl}-a ${wl}archive'
8749 irix5* | irix6* | nonstopux*)
8750 lt_prog_compiler_wl='-Wl,'
8751 # PIC (with -KPIC) is the default.
8752 lt_prog_compiler_static='-non_shared'
8755 linux* | k*bsd*-gnu | kopensolaris*-gnu)
8756 case $cc_basename in
8757 # old Intel for x86_64 which still supported -KPIC.
8758 ecc*)
8759 lt_prog_compiler_wl='-Wl,'
8760 lt_prog_compiler_pic='-KPIC'
8761 lt_prog_compiler_static='-static'
8763 # icc used to be incompatible with GCC.
8764 # ICC 10 doesn't accept -KPIC any more.
8765 icc* | ifort*)
8766 lt_prog_compiler_wl='-Wl,'
8767 lt_prog_compiler_pic='-fPIC'
8768 lt_prog_compiler_static='-static'
8770 # Lahey Fortran 8.1.
8771 lf95*)
8772 lt_prog_compiler_wl='-Wl,'
8773 lt_prog_compiler_pic='--shared'
8774 lt_prog_compiler_static='--static'
8776 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
8777 # Portland Group compilers (*not* the Pentium gcc compiler,
8778 # which looks to be a dead project)
8779 lt_prog_compiler_wl='-Wl,'
8780 lt_prog_compiler_pic='-fpic'
8781 lt_prog_compiler_static='-Bstatic'
8783 ccc*)
8784 lt_prog_compiler_wl='-Wl,'
8785 # All Alpha code is PIC.
8786 lt_prog_compiler_static='-non_shared'
8788 xl* | bgxl* | bgf* | mpixl*)
8789 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
8790 lt_prog_compiler_wl='-Wl,'
8791 lt_prog_compiler_pic='-qpic'
8792 lt_prog_compiler_static='-qstaticlink'
8795 case `$CC -V 2>&1 | sed 5q` in
8796 *Sun\ F* | *Sun*Fortran*)
8797 # Sun Fortran 8.3 passes all unrecognized flags to the linker
8798 lt_prog_compiler_pic='-KPIC'
8799 lt_prog_compiler_static='-Bstatic'
8800 lt_prog_compiler_wl=''
8802 *Sun\ C*)
8803 # Sun C 5.9
8804 lt_prog_compiler_pic='-KPIC'
8805 lt_prog_compiler_static='-Bstatic'
8806 lt_prog_compiler_wl='-Wl,'
8808 esac
8810 esac
8813 newsos6)
8814 lt_prog_compiler_pic='-KPIC'
8815 lt_prog_compiler_static='-Bstatic'
8818 *nto* | *qnx*)
8819 # QNX uses GNU C++, but need to define -shared option too, otherwise
8820 # it will coredump.
8821 lt_prog_compiler_pic='-fPIC -shared'
8824 osf3* | osf4* | osf5*)
8825 lt_prog_compiler_wl='-Wl,'
8826 # All OSF/1 code is PIC.
8827 lt_prog_compiler_static='-non_shared'
8830 rdos*)
8831 lt_prog_compiler_static='-non_shared'
8834 solaris*)
8835 lt_prog_compiler_pic='-KPIC'
8836 lt_prog_compiler_static='-Bstatic'
8837 case $cc_basename in
8838 f77* | f90* | f95*)
8839 lt_prog_compiler_wl='-Qoption ld ';;
8841 lt_prog_compiler_wl='-Wl,';;
8842 esac
8845 sunos4*)
8846 lt_prog_compiler_wl='-Qoption ld '
8847 lt_prog_compiler_pic='-PIC'
8848 lt_prog_compiler_static='-Bstatic'
8851 sysv4 | sysv4.2uw2* | sysv4.3*)
8852 lt_prog_compiler_wl='-Wl,'
8853 lt_prog_compiler_pic='-KPIC'
8854 lt_prog_compiler_static='-Bstatic'
8857 sysv4*MP*)
8858 if test -d /usr/nec ;then
8859 lt_prog_compiler_pic='-Kconform_pic'
8860 lt_prog_compiler_static='-Bstatic'
8864 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8865 lt_prog_compiler_wl='-Wl,'
8866 lt_prog_compiler_pic='-KPIC'
8867 lt_prog_compiler_static='-Bstatic'
8870 unicos*)
8871 lt_prog_compiler_wl='-Wl,'
8872 lt_prog_compiler_can_build_shared=no
8875 uts4*)
8876 lt_prog_compiler_pic='-pic'
8877 lt_prog_compiler_static='-Bstatic'
8881 lt_prog_compiler_can_build_shared=no
8883 esac
8886 case $host_os in
8887 # For platforms which do not support PIC, -DPIC is meaningless:
8888 *djgpp*)
8889 lt_prog_compiler_pic=
8892 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8894 esac
8895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
8896 $as_echo "$lt_prog_compiler_pic" >&6; }
8904 # Check to make sure the PIC flag actually works.
8906 if test -n "$lt_prog_compiler_pic"; then
8907 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8908 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8909 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
8910 $as_echo_n "(cached) " >&6
8911 else
8912 lt_cv_prog_compiler_pic_works=no
8913 ac_outfile=conftest.$ac_objext
8914 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8915 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8916 # Insert the option either (1) after the last *FLAGS variable, or
8917 # (2) before a word containing "conftest.", or (3) at the end.
8918 # Note that $ac_compile itself does not contain backslashes and begins
8919 # with a dollar sign (not a hyphen), so the echo should work correctly.
8920 # The option is referenced via a variable to avoid confusing sed.
8921 lt_compile=`echo "$ac_compile" | $SED \
8922 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8923 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8924 -e 's:$: $lt_compiler_flag:'`
8925 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8926 (eval "$lt_compile" 2>conftest.err)
8927 ac_status=$?
8928 cat conftest.err >&5
8929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8930 if (exit $ac_status) && test -s "$ac_outfile"; then
8931 # The compiler can only warn and ignore the option if not recognized
8932 # So say no if there are warnings other than the usual output.
8933 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8934 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8935 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8936 lt_cv_prog_compiler_pic_works=yes
8939 $RM conftest*
8942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8943 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8945 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
8946 case $lt_prog_compiler_pic in
8947 "" | " "*) ;;
8948 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8949 esac
8950 else
8951 lt_prog_compiler_pic=
8952 lt_prog_compiler_can_build_shared=no
8963 # Check to make sure the static flag actually works.
8965 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8966 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8967 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8968 if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
8969 $as_echo_n "(cached) " >&6
8970 else
8971 lt_cv_prog_compiler_static_works=no
8972 save_LDFLAGS="$LDFLAGS"
8973 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8974 echo "$lt_simple_link_test_code" > conftest.$ac_ext
8975 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8976 # The linker can only warn and ignore the option if not recognized
8977 # So say no if there are warnings
8978 if test -s conftest.err; then
8979 # Append any errors to the config.log.
8980 cat conftest.err 1>&5
8981 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
8982 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8983 if diff conftest.exp conftest.er2 >/dev/null; then
8984 lt_cv_prog_compiler_static_works=yes
8986 else
8987 lt_cv_prog_compiler_static_works=yes
8990 $RM -r conftest*
8991 LDFLAGS="$save_LDFLAGS"
8994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
8995 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
8997 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
8999 else
9000 lt_prog_compiler_static=
9009 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9010 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9011 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
9012 $as_echo_n "(cached) " >&6
9013 else
9014 lt_cv_prog_compiler_c_o=no
9015 $RM -r conftest 2>/dev/null
9016 mkdir conftest
9017 cd conftest
9018 mkdir out
9019 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9021 lt_compiler_flag="-o out/conftest2.$ac_objext"
9022 # Insert the option either (1) after the last *FLAGS variable, or
9023 # (2) before a word containing "conftest.", or (3) at the end.
9024 # Note that $ac_compile itself does not contain backslashes and begins
9025 # with a dollar sign (not a hyphen), so the echo should work correctly.
9026 lt_compile=`echo "$ac_compile" | $SED \
9027 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9028 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9029 -e 's:$: $lt_compiler_flag:'`
9030 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9031 (eval "$lt_compile" 2>out/conftest.err)
9032 ac_status=$?
9033 cat out/conftest.err >&5
9034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9035 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9036 then
9037 # The compiler can only warn and ignore the option if not recognized
9038 # So say no if there are warnings
9039 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9040 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9041 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9042 lt_cv_prog_compiler_c_o=yes
9045 chmod u+w . 2>&5
9046 $RM conftest*
9047 # SGI C++ compiler will create directory out/ii_files/ for
9048 # template instantiation
9049 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9050 $RM out/* && rmdir out
9051 cd ..
9052 $RM -r conftest
9053 $RM conftest*
9056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9057 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9064 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9065 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9066 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
9067 $as_echo_n "(cached) " >&6
9068 else
9069 lt_cv_prog_compiler_c_o=no
9070 $RM -r conftest 2>/dev/null
9071 mkdir conftest
9072 cd conftest
9073 mkdir out
9074 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9076 lt_compiler_flag="-o out/conftest2.$ac_objext"
9077 # Insert the option either (1) after the last *FLAGS variable, or
9078 # (2) before a word containing "conftest.", or (3) at the end.
9079 # Note that $ac_compile itself does not contain backslashes and begins
9080 # with a dollar sign (not a hyphen), so the echo should work correctly.
9081 lt_compile=`echo "$ac_compile" | $SED \
9082 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9083 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9084 -e 's:$: $lt_compiler_flag:'`
9085 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9086 (eval "$lt_compile" 2>out/conftest.err)
9087 ac_status=$?
9088 cat out/conftest.err >&5
9089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9090 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9091 then
9092 # The compiler can only warn and ignore the option if not recognized
9093 # So say no if there are warnings
9094 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9095 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9096 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9097 lt_cv_prog_compiler_c_o=yes
9100 chmod u+w . 2>&5
9101 $RM conftest*
9102 # SGI C++ compiler will create directory out/ii_files/ for
9103 # template instantiation
9104 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9105 $RM out/* && rmdir out
9106 cd ..
9107 $RM -r conftest
9108 $RM conftest*
9111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9112 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9117 hard_links="nottested"
9118 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
9119 # do not overwrite the value of need_locks provided by the user
9120 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
9121 $as_echo_n "checking if we can lock with hard links... " >&6; }
9122 hard_links=yes
9123 $RM conftest*
9124 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9125 touch conftest.a
9126 ln conftest.a conftest.b 2>&5 || hard_links=no
9127 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
9129 $as_echo "$hard_links" >&6; }
9130 if test "$hard_links" = no; then
9131 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
9132 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
9133 need_locks=warn
9135 else
9136 need_locks=no
9144 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9145 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
9147 runpath_var=
9148 allow_undefined_flag=
9149 always_export_symbols=no
9150 archive_cmds=
9151 archive_expsym_cmds=
9152 compiler_needs_object=no
9153 enable_shared_with_static_runtimes=no
9154 export_dynamic_flag_spec=
9155 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9156 hardcode_automatic=no
9157 hardcode_direct=no
9158 hardcode_direct_absolute=no
9159 hardcode_libdir_flag_spec=
9160 hardcode_libdir_flag_spec_ld=
9161 hardcode_libdir_separator=
9162 hardcode_minus_L=no
9163 hardcode_shlibpath_var=unsupported
9164 inherit_rpath=no
9165 link_all_deplibs=unknown
9166 module_cmds=
9167 module_expsym_cmds=
9168 old_archive_from_new_cmds=
9169 old_archive_from_expsyms_cmds=
9170 thread_safe_flag_spec=
9171 whole_archive_flag_spec=
9172 # include_expsyms should be a list of space-separated symbols to be *always*
9173 # included in the symbol list
9174 include_expsyms=
9175 # exclude_expsyms can be an extended regexp of symbols to exclude
9176 # it will be wrapped by ` (' and `)$', so one must not match beginning or
9177 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
9178 # as well as any symbol that contains `d'.
9179 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9180 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9181 # platforms (ab)use it in PIC code, but their linkers get confused if
9182 # the symbol is explicitly referenced. Since portable code cannot
9183 # rely on this symbol name, it's probably fine to never include it in
9184 # preloaded symbol tables.
9185 # Exclude shared library initialization/finalization symbols.
9186 extract_expsyms_cmds=
9188 case $host_os in
9189 cygwin* | mingw* | pw32* | cegcc*)
9190 # FIXME: the MSVC++ port hasn't been tested in a loooong time
9191 # When not using gcc, we currently assume that we are using
9192 # Microsoft Visual C++.
9193 if test "$GCC" != yes; then
9194 with_gnu_ld=no
9197 interix*)
9198 # we just hope/assume this is gcc and not c89 (= MSVC++)
9199 with_gnu_ld=yes
9201 openbsd*)
9202 with_gnu_ld=no
9204 esac
9206 ld_shlibs=yes
9208 # On some targets, GNU ld is compatible enough with the native linker
9209 # that we're better off using the native interface for both.
9210 lt_use_gnu_ld_interface=no
9211 if test "$with_gnu_ld" = yes; then
9212 case $host_os in
9213 aix*)
9214 # The AIX port of GNU ld has always aspired to compatibility
9215 # with the native linker. However, as the warning in the GNU ld
9216 # block says, versions before 2.19.5* couldn't really create working
9217 # shared libraries, regardless of the interface used.
9218 case `$LD -v 2>&1` in
9219 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
9220 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
9221 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
9223 lt_use_gnu_ld_interface=yes
9225 esac
9228 lt_use_gnu_ld_interface=yes
9230 esac
9233 if test "$lt_use_gnu_ld_interface" = yes; then
9234 # If archive_cmds runs LD, not CC, wlarc should be empty
9235 wlarc='${wl}'
9237 # Set some defaults for GNU ld with shared library support. These
9238 # are reset later if shared libraries are not supported. Putting them
9239 # here allows them to be overridden if necessary.
9240 runpath_var=LD_RUN_PATH
9241 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9242 export_dynamic_flag_spec='${wl}--export-dynamic'
9243 # ancient GNU ld didn't support --whole-archive et. al.
9244 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9245 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9246 else
9247 whole_archive_flag_spec=
9249 supports_anon_versioning=no
9250 case `$LD -v 2>&1` in
9251 *GNU\ gold*) supports_anon_versioning=yes ;;
9252 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9253 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9254 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9255 *\ 2.11.*) ;; # other 2.11 versions
9256 *) supports_anon_versioning=yes ;;
9257 esac
9259 # See if GNU ld supports shared libraries.
9260 case $host_os in
9261 aix[3-9]*)
9262 # On AIX/PPC, the GNU linker is very broken
9263 if test "$host_cpu" != ia64; then
9264 ld_shlibs=no
9265 cat <<_LT_EOF 1>&2
9267 *** Warning: the GNU linker, at least up to release 2.19, is reported
9268 *** to be unable to reliably create shared libraries on AIX.
9269 *** Therefore, libtool is disabling shared libraries support. If you
9270 *** really care for shared libraries, you may want to install binutils
9271 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
9272 *** You will then need to restart the configuration process.
9274 _LT_EOF
9278 amigaos*)
9279 case $host_cpu in
9280 powerpc)
9281 # see comment about AmigaOS4 .so support
9282 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9283 archive_expsym_cmds=''
9285 m68k)
9286 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)'
9287 hardcode_libdir_flag_spec='-L$libdir'
9288 hardcode_minus_L=yes
9290 esac
9293 beos*)
9294 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9295 allow_undefined_flag=unsupported
9296 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9297 # support --undefined. This deserves some investigation. FIXME
9298 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9299 else
9300 ld_shlibs=no
9304 cygwin* | mingw* | pw32* | cegcc*)
9305 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9306 # as there is no search path for DLLs.
9307 hardcode_libdir_flag_spec='-L$libdir'
9308 export_dynamic_flag_spec='${wl}--export-all-symbols'
9309 allow_undefined_flag=unsupported
9310 always_export_symbols=no
9311 enable_shared_with_static_runtimes=yes
9312 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9314 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9315 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9316 # If the export-symbols file already is a .def file (1st line
9317 # is EXPORTS), use it as is; otherwise, prepend...
9318 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9319 cp $export_symbols $output_objdir/$soname.def;
9320 else
9321 echo EXPORTS > $output_objdir/$soname.def;
9322 cat $export_symbols >> $output_objdir/$soname.def;
9324 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9325 else
9326 ld_shlibs=no
9330 haiku*)
9331 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9332 link_all_deplibs=yes
9335 interix[3-9]*)
9336 hardcode_direct=no
9337 hardcode_shlibpath_var=no
9338 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9339 export_dynamic_flag_spec='${wl}-E'
9340 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9341 # Instead, shared libraries are loaded at an image base (0x10000000 by
9342 # default) and relocated if they conflict, which is a slow very memory
9343 # consuming and fragmenting process. To avoid this, we pick a random,
9344 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9345 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
9346 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9347 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'
9350 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
9351 tmp_diet=no
9352 if test "$host_os" = linux-dietlibc; then
9353 case $cc_basename in
9354 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
9355 esac
9357 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9358 && test "$tmp_diet" = no
9359 then
9360 tmp_addflag=
9361 tmp_sharedflag='-shared'
9362 case $cc_basename,$host_cpu in
9363 pgcc*) # Portland Group C compiler
9364 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'
9365 tmp_addflag=' $pic_flag'
9367 pgf77* | pgf90* | pgf95* | pgfortran*)
9368 # Portland Group f77 and f90 compilers
9369 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'
9370 tmp_addflag=' $pic_flag -Mnomain' ;;
9371 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
9372 tmp_addflag=' -i_dynamic' ;;
9373 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
9374 tmp_addflag=' -i_dynamic -nofor_main' ;;
9375 ifc* | ifort*) # Intel Fortran compiler
9376 tmp_addflag=' -nofor_main' ;;
9377 lf95*) # Lahey Fortran 8.1
9378 whole_archive_flag_spec=
9379 tmp_sharedflag='--shared' ;;
9380 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
9381 tmp_sharedflag='-qmkshrobj'
9382 tmp_addflag= ;;
9383 nvcc*) # Cuda Compiler Driver 2.2
9384 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'
9385 compiler_needs_object=yes
9387 esac
9388 case `$CC -V 2>&1 | sed 5q` in
9389 *Sun\ C*) # Sun C 5.9
9390 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'
9391 compiler_needs_object=yes
9392 tmp_sharedflag='-G' ;;
9393 *Sun\ F*) # Sun Fortran 8.3
9394 tmp_sharedflag='-G' ;;
9395 esac
9396 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9398 if test "x$supports_anon_versioning" = xyes; then
9399 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9400 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9401 echo "local: *; };" >> $output_objdir/$libname.ver~
9402 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9405 case $cc_basename in
9406 xlf* | bgf* | bgxlf* | mpixlf*)
9407 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9408 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9409 hardcode_libdir_flag_spec=
9410 hardcode_libdir_flag_spec_ld='-rpath $libdir'
9411 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
9412 if test "x$supports_anon_versioning" = xyes; then
9413 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9414 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9415 echo "local: *; };" >> $output_objdir/$libname.ver~
9416 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9419 esac
9420 else
9421 ld_shlibs=no
9425 netbsd*)
9426 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9427 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9428 wlarc=
9429 else
9430 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9431 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9435 solaris*)
9436 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9437 ld_shlibs=no
9438 cat <<_LT_EOF 1>&2
9440 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
9441 *** create shared libraries on Solaris systems. Therefore, libtool
9442 *** is disabling shared libraries support. We urge you to upgrade GNU
9443 *** binutils to release 2.9.1 or newer. Another option is to modify
9444 *** your PATH or compiler configuration so that the native linker is
9445 *** used, and then restart.
9447 _LT_EOF
9448 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9449 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9450 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9451 else
9452 ld_shlibs=no
9456 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9457 case `$LD -v 2>&1` in
9458 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9459 ld_shlibs=no
9460 cat <<_LT_EOF 1>&2
9462 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9463 *** reliably create shared libraries on SCO systems. Therefore, libtool
9464 *** is disabling shared libraries support. We urge you to upgrade GNU
9465 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
9466 *** your PATH or compiler configuration so that the native linker is
9467 *** used, and then restart.
9469 _LT_EOF
9472 # For security reasons, it is highly recommended that you always
9473 # use absolute paths for naming shared libraries, and exclude the
9474 # DT_RUNPATH tag from executables and libraries. But doing so
9475 # requires that you compile everything twice, which is a pain.
9476 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9477 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9478 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9479 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9480 else
9481 ld_shlibs=no
9484 esac
9487 sunos4*)
9488 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9489 wlarc=
9490 hardcode_direct=yes
9491 hardcode_shlibpath_var=no
9495 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9496 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9497 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9498 else
9499 ld_shlibs=no
9502 esac
9504 if test "$ld_shlibs" = no; then
9505 runpath_var=
9506 hardcode_libdir_flag_spec=
9507 export_dynamic_flag_spec=
9508 whole_archive_flag_spec=
9510 else
9511 # PORTME fill in a description of your system's linker (not GNU ld)
9512 case $host_os in
9513 aix3*)
9514 allow_undefined_flag=unsupported
9515 always_export_symbols=yes
9516 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'
9517 # Note: this linker hardcodes the directories in LIBPATH if there
9518 # are no directories specified by -L.
9519 hardcode_minus_L=yes
9520 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9521 # Neither direct hardcoding nor static linking is supported with a
9522 # broken collect2.
9523 hardcode_direct=unsupported
9527 aix[4-9]*)
9528 if test "$host_cpu" = ia64; then
9529 # On IA64, the linker does run time linking by default, so we don't
9530 # have to do anything special.
9531 aix_use_runtimelinking=no
9532 exp_sym_flag='-Bexport'
9533 no_entry_flag=""
9534 else
9535 # If we're using GNU nm, then we don't want the "-C" option.
9536 # -C means demangle to AIX nm, but means don't demangle with GNU nm
9537 # Also, AIX nm treats weak defined symbols like other global
9538 # defined symbols, whereas GNU nm marks them as "W".
9539 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9540 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'
9541 else
9542 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'
9544 aix_use_runtimelinking=no
9546 # Test if we are trying to use run time linking or normal
9547 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9548 # need to do runtime linking.
9549 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9550 for ld_flag in $LDFLAGS; do
9551 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9552 aix_use_runtimelinking=yes
9553 break
9555 done
9557 esac
9559 exp_sym_flag='-bexport'
9560 no_entry_flag='-bnoentry'
9563 # When large executables or shared objects are built, AIX ld can
9564 # have problems creating the table of contents. If linking a library
9565 # or program results in "error TOC overflow" add -mminimal-toc to
9566 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9567 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9569 archive_cmds=''
9570 hardcode_direct=yes
9571 hardcode_direct_absolute=yes
9572 hardcode_libdir_separator=':'
9573 link_all_deplibs=yes
9574 file_list_spec='${wl}-f,'
9576 if test "$GCC" = yes; then
9577 case $host_os in aix4.[012]|aix4.[012].*)
9578 # We only want to do this on AIX 4.2 and lower, the check
9579 # below for broken collect2 doesn't work under 4.3+
9580 collect2name=`${CC} -print-prog-name=collect2`
9581 if test -f "$collect2name" &&
9582 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9583 then
9584 # We have reworked collect2
9586 else
9587 # We have old collect2
9588 hardcode_direct=unsupported
9589 # It fails to find uninstalled libraries when the uninstalled
9590 # path is not listed in the libpath. Setting hardcode_minus_L
9591 # to unsupported forces relinking
9592 hardcode_minus_L=yes
9593 hardcode_libdir_flag_spec='-L$libdir'
9594 hardcode_libdir_separator=
9597 esac
9598 shared_flag='-shared'
9599 if test "$aix_use_runtimelinking" = yes; then
9600 shared_flag="$shared_flag "'${wl}-G'
9602 else
9603 # not using gcc
9604 if test "$host_cpu" = ia64; then
9605 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9606 # chokes on -Wl,-G. The following line is correct:
9607 shared_flag='-G'
9608 else
9609 if test "$aix_use_runtimelinking" = yes; then
9610 shared_flag='${wl}-G'
9611 else
9612 shared_flag='${wl}-bM:SRE'
9617 export_dynamic_flag_spec='${wl}-bexpall'
9618 # It seems that -bexpall does not export symbols beginning with
9619 # underscore (_), so it is better to generate a list of symbols to export.
9620 always_export_symbols=yes
9621 if test "$aix_use_runtimelinking" = yes; then
9622 # Warning - without using the other runtime loading flags (-brtl),
9623 # -berok will link without error, but may produce a broken library.
9624 allow_undefined_flag='-berok'
9625 # Determine the default libpath from the value encoded in an
9626 # empty executable.
9627 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9628 /* end confdefs.h. */
9631 main ()
9635 return 0;
9637 _ACEOF
9638 if ac_fn_c_try_link "$LINENO"; then :
9640 lt_aix_libpath_sed='
9641 /Import File Strings/,/^$/ {
9642 /^0/ {
9643 s/^0 *\(.*\)$/\1/
9647 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9648 # Check for a 64-bit object if we didn't find anything.
9649 if test -z "$aix_libpath"; then
9650 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9653 rm -f core conftest.err conftest.$ac_objext \
9654 conftest$ac_exeext conftest.$ac_ext
9655 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9657 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9658 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"
9659 else
9660 if test "$host_cpu" = ia64; then
9661 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9662 allow_undefined_flag="-z nodefs"
9663 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"
9664 else
9665 # Determine the default libpath from the value encoded in an
9666 # empty executable.
9667 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9668 /* end confdefs.h. */
9671 main ()
9675 return 0;
9677 _ACEOF
9678 if ac_fn_c_try_link "$LINENO"; then :
9680 lt_aix_libpath_sed='
9681 /Import File Strings/,/^$/ {
9682 /^0/ {
9683 s/^0 *\(.*\)$/\1/
9687 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9688 # Check for a 64-bit object if we didn't find anything.
9689 if test -z "$aix_libpath"; then
9690 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9693 rm -f core conftest.err conftest.$ac_objext \
9694 conftest$ac_exeext conftest.$ac_ext
9695 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9697 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9698 # Warning - without using the other run time loading flags,
9699 # -berok will link without error, but may produce a broken library.
9700 no_undefined_flag=' ${wl}-bernotok'
9701 allow_undefined_flag=' ${wl}-berok'
9702 if test "$with_gnu_ld" = yes; then
9703 # We only use this code for GNU lds that support --whole-archive.
9704 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
9705 else
9706 # Exported symbols can be pulled into shared objects from archives
9707 whole_archive_flag_spec='$convenience'
9709 archive_cmds_need_lc=yes
9710 # This is similar to how AIX traditionally builds its shared libraries.
9711 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'
9716 amigaos*)
9717 case $host_cpu in
9718 powerpc)
9719 # see comment about AmigaOS4 .so support
9720 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9721 archive_expsym_cmds=''
9723 m68k)
9724 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)'
9725 hardcode_libdir_flag_spec='-L$libdir'
9726 hardcode_minus_L=yes
9728 esac
9731 bsdi[45]*)
9732 export_dynamic_flag_spec=-rdynamic
9735 cygwin* | mingw* | pw32* | cegcc*)
9736 # When not using gcc, we currently assume that we are using
9737 # Microsoft Visual C++.
9738 # hardcode_libdir_flag_spec is actually meaningless, as there is
9739 # no search path for DLLs.
9740 hardcode_libdir_flag_spec=' '
9741 allow_undefined_flag=unsupported
9742 # Tell ltmain to make .lib files, not .a files.
9743 libext=lib
9744 # Tell ltmain to make .dll files, not .so files.
9745 shrext_cmds=".dll"
9746 # FIXME: Setting linknames here is a bad hack.
9747 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
9748 # The linker will automatically build a .lib file if we build a DLL.
9749 old_archive_from_new_cmds='true'
9750 # FIXME: Should let the user specify the lib program.
9751 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9752 fix_srcfile_path='`cygpath -w "$srcfile"`'
9753 enable_shared_with_static_runtimes=yes
9756 darwin* | rhapsody*)
9759 archive_cmds_need_lc=no
9760 hardcode_direct=no
9761 hardcode_automatic=yes
9762 hardcode_shlibpath_var=unsupported
9763 if test "$lt_cv_ld_force_load" = "yes"; then
9764 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\"`'
9765 else
9766 whole_archive_flag_spec=''
9768 link_all_deplibs=yes
9769 allow_undefined_flag="$_lt_dar_allow_undefined"
9770 case $cc_basename in
9771 ifort*) _lt_dar_can_shared=yes ;;
9772 *) _lt_dar_can_shared=$GCC ;;
9773 esac
9774 if test "$_lt_dar_can_shared" = "yes"; then
9775 output_verbose_link_cmd=func_echo_all
9776 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9777 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9778 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}"
9779 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}"
9781 else
9782 ld_shlibs=no
9787 dgux*)
9788 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9789 hardcode_libdir_flag_spec='-L$libdir'
9790 hardcode_shlibpath_var=no
9793 freebsd1*)
9794 ld_shlibs=no
9797 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9798 # support. Future versions do this automatically, but an explicit c++rt0.o
9799 # does not break anything, and helps significantly (at the cost of a little
9800 # extra space).
9801 freebsd2.2*)
9802 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9803 hardcode_libdir_flag_spec='-R$libdir'
9804 hardcode_direct=yes
9805 hardcode_shlibpath_var=no
9808 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9809 freebsd2*)
9810 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9811 hardcode_direct=yes
9812 hardcode_minus_L=yes
9813 hardcode_shlibpath_var=no
9816 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9817 freebsd* | dragonfly*)
9818 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
9819 hardcode_libdir_flag_spec='-R$libdir'
9820 hardcode_direct=yes
9821 hardcode_shlibpath_var=no
9824 hpux9*)
9825 if test "$GCC" = yes; then
9826 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'
9827 else
9828 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'
9830 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9831 hardcode_libdir_separator=:
9832 hardcode_direct=yes
9834 # hardcode_minus_L: Not really in the search PATH,
9835 # but as the default location of the library.
9836 hardcode_minus_L=yes
9837 export_dynamic_flag_spec='${wl}-E'
9840 hpux10*)
9841 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9842 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9843 else
9844 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9846 if test "$with_gnu_ld" = no; then
9847 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9848 hardcode_libdir_flag_spec_ld='+b $libdir'
9849 hardcode_libdir_separator=:
9850 hardcode_direct=yes
9851 hardcode_direct_absolute=yes
9852 export_dynamic_flag_spec='${wl}-E'
9853 # hardcode_minus_L: Not really in the search PATH,
9854 # but as the default location of the library.
9855 hardcode_minus_L=yes
9859 hpux11*)
9860 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9861 case $host_cpu in
9862 hppa*64*)
9863 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9865 ia64*)
9866 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9869 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9871 esac
9872 else
9873 case $host_cpu in
9874 hppa*64*)
9875 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9877 ia64*)
9878 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9882 # Older versions of the 11.00 compiler do not understand -b yet
9883 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
9884 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
9885 $as_echo_n "checking if $CC understands -b... " >&6; }
9886 if test "${lt_cv_prog_compiler__b+set}" = set; then :
9887 $as_echo_n "(cached) " >&6
9888 else
9889 lt_cv_prog_compiler__b=no
9890 save_LDFLAGS="$LDFLAGS"
9891 LDFLAGS="$LDFLAGS -b"
9892 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9893 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9894 # The linker can only warn and ignore the option if not recognized
9895 # So say no if there are warnings
9896 if test -s conftest.err; then
9897 # Append any errors to the config.log.
9898 cat conftest.err 1>&5
9899 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9900 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9901 if diff conftest.exp conftest.er2 >/dev/null; then
9902 lt_cv_prog_compiler__b=yes
9904 else
9905 lt_cv_prog_compiler__b=yes
9908 $RM -r conftest*
9909 LDFLAGS="$save_LDFLAGS"
9912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
9913 $as_echo "$lt_cv_prog_compiler__b" >&6; }
9915 if test x"$lt_cv_prog_compiler__b" = xyes; then
9916 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9917 else
9918 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9922 esac
9924 if test "$with_gnu_ld" = no; then
9925 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9926 hardcode_libdir_separator=:
9928 case $host_cpu in
9929 hppa*64*|ia64*)
9930 hardcode_direct=no
9931 hardcode_shlibpath_var=no
9934 hardcode_direct=yes
9935 hardcode_direct_absolute=yes
9936 export_dynamic_flag_spec='${wl}-E'
9938 # hardcode_minus_L: Not really in the search PATH,
9939 # but as the default location of the library.
9940 hardcode_minus_L=yes
9942 esac
9946 irix5* | irix6* | nonstopux*)
9947 if test "$GCC" = yes; then
9948 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'
9949 # Try to use the -exported_symbol ld option, if it does not
9950 # work, assume that -exports_file does not work either and
9951 # implicitly export all symbols.
9952 save_LDFLAGS="$LDFLAGS"
9953 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
9954 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9955 /* end confdefs.h. */
9956 int foo(void) {}
9957 _ACEOF
9958 if ac_fn_c_try_link "$LINENO"; then :
9959 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'
9962 rm -f core conftest.err conftest.$ac_objext \
9963 conftest$ac_exeext conftest.$ac_ext
9964 LDFLAGS="$save_LDFLAGS"
9965 else
9966 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'
9967 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'
9969 archive_cmds_need_lc='no'
9970 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9971 hardcode_libdir_separator=:
9972 inherit_rpath=yes
9973 link_all_deplibs=yes
9976 netbsd*)
9977 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9978 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
9979 else
9980 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
9982 hardcode_libdir_flag_spec='-R$libdir'
9983 hardcode_direct=yes
9984 hardcode_shlibpath_var=no
9987 newsos6)
9988 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9989 hardcode_direct=yes
9990 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9991 hardcode_libdir_separator=:
9992 hardcode_shlibpath_var=no
9995 *nto* | *qnx*)
9998 openbsd*)
9999 if test -f /usr/libexec/ld.so; then
10000 hardcode_direct=yes
10001 hardcode_shlibpath_var=no
10002 hardcode_direct_absolute=yes
10003 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10004 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10005 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
10006 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10007 export_dynamic_flag_spec='${wl}-E'
10008 else
10009 case $host_os in
10010 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
10011 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10012 hardcode_libdir_flag_spec='-R$libdir'
10015 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10016 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10018 esac
10020 else
10021 ld_shlibs=no
10025 os2*)
10026 hardcode_libdir_flag_spec='-L$libdir'
10027 hardcode_minus_L=yes
10028 allow_undefined_flag=unsupported
10029 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'
10030 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
10033 osf3*)
10034 if test "$GCC" = yes; then
10035 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10036 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'
10037 else
10038 allow_undefined_flag=' -expect_unresolved \*'
10039 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'
10041 archive_cmds_need_lc='no'
10042 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10043 hardcode_libdir_separator=:
10046 osf4* | osf5*) # as osf3* with the addition of -msym flag
10047 if test "$GCC" = yes; then
10048 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10049 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'
10050 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10051 else
10052 allow_undefined_flag=' -expect_unresolved \*'
10053 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'
10054 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~
10055 $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'
10057 # Both c and cxx compiler support -rpath directly
10058 hardcode_libdir_flag_spec='-rpath $libdir'
10060 archive_cmds_need_lc='no'
10061 hardcode_libdir_separator=:
10064 solaris*)
10065 no_undefined_flag=' -z defs'
10066 if test "$GCC" = yes; then
10067 wlarc='${wl}'
10068 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10069 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10070 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10071 else
10072 case `$CC -V 2>&1` in
10073 *"Compilers 5.0"*)
10074 wlarc=''
10075 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
10076 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10077 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10080 wlarc='${wl}'
10081 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10082 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10083 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10085 esac
10087 hardcode_libdir_flag_spec='-R$libdir'
10088 hardcode_shlibpath_var=no
10089 case $host_os in
10090 solaris2.[0-5] | solaris2.[0-5].*) ;;
10092 # The compiler driver will combine and reorder linker options,
10093 # but understands `-z linker_flag'. GCC discards it without `$wl',
10094 # but is careful enough not to reorder.
10095 # Supported since Solaris 2.6 (maybe 2.5.1?)
10096 if test "$GCC" = yes; then
10097 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10098 else
10099 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10102 esac
10103 link_all_deplibs=yes
10106 sunos4*)
10107 if test "x$host_vendor" = xsequent; then
10108 # Use $CC to link under sequent, because it throws in some extra .o
10109 # files that make .init and .fini sections work.
10110 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10111 else
10112 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10114 hardcode_libdir_flag_spec='-L$libdir'
10115 hardcode_direct=yes
10116 hardcode_minus_L=yes
10117 hardcode_shlibpath_var=no
10120 sysv4)
10121 case $host_vendor in
10122 sni)
10123 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10124 hardcode_direct=yes # is this really true???
10126 siemens)
10127 ## LD is ld it makes a PLAMLIB
10128 ## CC just makes a GrossModule.
10129 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10130 reload_cmds='$CC -r -o $output$reload_objs'
10131 hardcode_direct=no
10133 motorola)
10134 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10135 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10137 esac
10138 runpath_var='LD_RUN_PATH'
10139 hardcode_shlibpath_var=no
10142 sysv4.3*)
10143 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10144 hardcode_shlibpath_var=no
10145 export_dynamic_flag_spec='-Bexport'
10148 sysv4*MP*)
10149 if test -d /usr/nec; then
10150 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10151 hardcode_shlibpath_var=no
10152 runpath_var=LD_RUN_PATH
10153 hardcode_runpath_var=yes
10154 ld_shlibs=yes
10158 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10159 no_undefined_flag='${wl}-z,text'
10160 archive_cmds_need_lc=no
10161 hardcode_shlibpath_var=no
10162 runpath_var='LD_RUN_PATH'
10164 if test "$GCC" = yes; then
10165 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10166 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10167 else
10168 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10169 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10173 sysv5* | sco3.2v5* | sco5v6*)
10174 # Note: We can NOT use -z defs as we might desire, because we do not
10175 # link with -lc, and that would cause any symbols used from libc to
10176 # always be unresolved, which means just about no library would
10177 # ever link correctly. If we're not using GNU ld we use -z text
10178 # though, which does catch some bad symbols but isn't as heavy-handed
10179 # as -z defs.
10180 no_undefined_flag='${wl}-z,text'
10181 allow_undefined_flag='${wl}-z,nodefs'
10182 archive_cmds_need_lc=no
10183 hardcode_shlibpath_var=no
10184 hardcode_libdir_flag_spec='${wl}-R,$libdir'
10185 hardcode_libdir_separator=':'
10186 link_all_deplibs=yes
10187 export_dynamic_flag_spec='${wl}-Bexport'
10188 runpath_var='LD_RUN_PATH'
10190 if test "$GCC" = yes; then
10191 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10192 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10193 else
10194 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10195 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10199 uts4*)
10200 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10201 hardcode_libdir_flag_spec='-L$libdir'
10202 hardcode_shlibpath_var=no
10206 ld_shlibs=no
10208 esac
10210 if test x$host_vendor = xsni; then
10211 case $host in
10212 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10213 export_dynamic_flag_spec='${wl}-Blargedynsym'
10215 esac
10219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10220 $as_echo "$ld_shlibs" >&6; }
10221 test "$ld_shlibs" = no && can_build_shared=no
10223 with_gnu_ld=$with_gnu_ld
10240 # Do we need to explicitly link libc?
10242 case "x$archive_cmds_need_lc" in
10243 x|xyes)
10244 # Assume -lc should be added
10245 archive_cmds_need_lc=yes
10247 if test "$enable_shared" = yes && test "$GCC" = yes; then
10248 case $archive_cmds in
10249 *'~'*)
10250 # FIXME: we may have to deal with multi-command sequences.
10252 '$CC '*)
10253 # Test whether the compiler implicitly links with -lc since on some
10254 # systems, -lgcc has to come before -lc. If gcc already passes -lc
10255 # to ld, don't add -lc before -lgcc.
10256 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10257 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
10258 if test "${lt_cv_archive_cmds_need_lc+set}" = set; then :
10259 $as_echo_n "(cached) " >&6
10260 else
10261 $RM conftest*
10262 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10264 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10265 (eval $ac_compile) 2>&5
10266 ac_status=$?
10267 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10268 test $ac_status = 0; } 2>conftest.err; then
10269 soname=conftest
10270 lib=conftest
10271 libobjs=conftest.$ac_objext
10272 deplibs=
10273 wl=$lt_prog_compiler_wl
10274 pic_flag=$lt_prog_compiler_pic
10275 compiler_flags=-v
10276 linker_flags=-v
10277 verstring=
10278 output_objdir=.
10279 libname=conftest
10280 lt_save_allow_undefined_flag=$allow_undefined_flag
10281 allow_undefined_flag=
10282 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
10283 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
10284 ac_status=$?
10285 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10286 test $ac_status = 0; }
10287 then
10288 lt_cv_archive_cmds_need_lc=no
10289 else
10290 lt_cv_archive_cmds_need_lc=yes
10292 allow_undefined_flag=$lt_save_allow_undefined_flag
10293 else
10294 cat conftest.err 1>&5
10296 $RM conftest*
10299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
10300 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
10301 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
10303 esac
10306 esac
10464 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10465 $as_echo_n "checking dynamic linker characteristics... " >&6; }
10467 if test "$GCC" = yes; then
10468 case $host_os in
10469 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
10470 *) lt_awk_arg="/^libraries:/" ;;
10471 esac
10472 case $host_os in
10473 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
10474 *) lt_sed_strip_eq="s,=/,/,g" ;;
10475 esac
10476 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
10477 case $lt_search_path_spec in
10478 *\;*)
10479 # if the path contains ";" then we assume it to be the separator
10480 # otherwise default to the standard path separator (i.e. ":") - it is
10481 # assumed that no part of a normal pathname contains ";" but that should
10482 # okay in the real world where ";" in dirpaths is itself problematic.
10483 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
10486 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
10488 esac
10489 # Ok, now we have the path, separated by spaces, we can step through it
10490 # and add multilib dir if necessary.
10491 lt_tmp_lt_search_path_spec=
10492 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10493 for lt_sys_path in $lt_search_path_spec; do
10494 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
10495 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
10496 else
10497 test -d "$lt_sys_path" && \
10498 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10500 done
10501 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
10502 BEGIN {RS=" "; FS="/|\n";} {
10503 lt_foo="";
10504 lt_count=0;
10505 for (lt_i = NF; lt_i > 0; lt_i--) {
10506 if ($lt_i != "" && $lt_i != ".") {
10507 if ($lt_i == "..") {
10508 lt_count++;
10509 } else {
10510 if (lt_count == 0) {
10511 lt_foo="/" $lt_i lt_foo;
10512 } else {
10513 lt_count--;
10518 if (lt_foo != "") { lt_freq[lt_foo]++; }
10519 if (lt_freq[lt_foo] == 1) { print lt_foo; }
10521 # AWK program above erroneously prepends '/' to C:/dos/paths
10522 # for these hosts.
10523 case $host_os in
10524 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
10525 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
10526 esac
10527 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
10528 else
10529 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10531 library_names_spec=
10532 libname_spec='lib$name'
10533 soname_spec=
10534 shrext_cmds=".so"
10535 postinstall_cmds=
10536 postuninstall_cmds=
10537 finish_cmds=
10538 finish_eval=
10539 shlibpath_var=
10540 shlibpath_overrides_runpath=unknown
10541 version_type=none
10542 dynamic_linker="$host_os ld.so"
10543 sys_lib_dlsearch_path_spec="/lib /usr/lib"
10544 need_lib_prefix=unknown
10545 hardcode_into_libs=no
10547 # when you set need_version to no, make sure it does not cause -set_version
10548 # flags to be left without arguments
10549 need_version=unknown
10551 case $host_os in
10552 aix3*)
10553 version_type=linux
10554 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10555 shlibpath_var=LIBPATH
10557 # AIX 3 has no versioning support, so we append a major version to the name.
10558 soname_spec='${libname}${release}${shared_ext}$major'
10561 aix[4-9]*)
10562 version_type=linux
10563 need_lib_prefix=no
10564 need_version=no
10565 hardcode_into_libs=yes
10566 if test "$host_cpu" = ia64; then
10567 # AIX 5 supports IA64
10568 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10569 shlibpath_var=LD_LIBRARY_PATH
10570 else
10571 # With GCC up to 2.95.x, collect2 would create an import file
10572 # for dependence libraries. The import file would start with
10573 # the line `#! .'. This would cause the generated library to
10574 # depend on `.', always an invalid library. This was fixed in
10575 # development snapshots of GCC prior to 3.0.
10576 case $host_os in
10577 aix4 | aix4.[01] | aix4.[01].*)
10578 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10579 echo ' yes '
10580 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
10582 else
10583 can_build_shared=no
10586 esac
10587 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10588 # soname into executable. Probably we can add versioning support to
10589 # collect2, so additional links can be useful in future.
10590 if test "$aix_use_runtimelinking" = yes; then
10591 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10592 # instead of lib<name>.a to let people know that these are not
10593 # typical AIX shared libraries.
10594 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10595 else
10596 # We preserve .a as extension for shared libraries through AIX4.2
10597 # and later when we are not doing run time linking.
10598 library_names_spec='${libname}${release}.a $libname.a'
10599 soname_spec='${libname}${release}${shared_ext}$major'
10601 shlibpath_var=LIBPATH
10605 amigaos*)
10606 case $host_cpu in
10607 powerpc)
10608 # Since July 2007 AmigaOS4 officially supports .so libraries.
10609 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10610 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10612 m68k)
10613 library_names_spec='$libname.ixlibrary $libname.a'
10614 # Create ${libname}_ixlibrary.a entries in /sys/libs.
10615 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'
10617 esac
10620 beos*)
10621 library_names_spec='${libname}${shared_ext}'
10622 dynamic_linker="$host_os ld.so"
10623 shlibpath_var=LIBRARY_PATH
10626 bsdi[45]*)
10627 version_type=linux
10628 need_version=no
10629 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10630 soname_spec='${libname}${release}${shared_ext}$major'
10631 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10632 shlibpath_var=LD_LIBRARY_PATH
10633 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10634 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10635 # the default ld.so.conf also contains /usr/contrib/lib and
10636 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10637 # libtool to hard-code these into programs
10640 cygwin* | mingw* | pw32* | cegcc*)
10641 version_type=windows
10642 shrext_cmds=".dll"
10643 need_version=no
10644 need_lib_prefix=no
10646 case $GCC,$host_os in
10647 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
10648 library_names_spec='$libname.dll.a'
10649 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10650 postinstall_cmds='base_file=`basename \${file}`~
10651 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10652 dldir=$destdir/`dirname \$dlpath`~
10653 test -d \$dldir || mkdir -p \$dldir~
10654 $install_prog $dir/$dlname \$dldir/$dlname~
10655 chmod a+x \$dldir/$dlname~
10656 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10657 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10659 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10660 dlpath=$dir/\$dldll~
10661 $RM \$dlpath'
10662 shlibpath_overrides_runpath=yes
10664 case $host_os in
10665 cygwin*)
10666 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10667 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10669 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
10671 mingw* | cegcc*)
10672 # MinGW DLLs use traditional 'lib' prefix
10673 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10675 pw32*)
10676 # pw32 DLLs use 'pw' prefix rather than 'lib'
10677 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10679 esac
10683 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10685 esac
10686 dynamic_linker='Win32 ld.exe'
10687 # FIXME: first we should search . and the directory the executable is in
10688 shlibpath_var=PATH
10691 darwin* | rhapsody*)
10692 dynamic_linker="$host_os dyld"
10693 version_type=darwin
10694 need_lib_prefix=no
10695 need_version=no
10696 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10697 soname_spec='${libname}${release}${major}$shared_ext'
10698 shlibpath_overrides_runpath=yes
10699 shlibpath_var=DYLD_LIBRARY_PATH
10700 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10702 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10703 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10706 dgux*)
10707 version_type=linux
10708 need_lib_prefix=no
10709 need_version=no
10710 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10711 soname_spec='${libname}${release}${shared_ext}$major'
10712 shlibpath_var=LD_LIBRARY_PATH
10715 freebsd1*)
10716 dynamic_linker=no
10719 freebsd* | dragonfly*)
10720 # DragonFly does not have aout. When/if they implement a new
10721 # versioning mechanism, adjust this.
10722 if test -x /usr/bin/objformat; then
10723 objformat=`/usr/bin/objformat`
10724 else
10725 case $host_os in
10726 freebsd[123]*) objformat=aout ;;
10727 *) objformat=elf ;;
10728 esac
10730 version_type=freebsd-$objformat
10731 case $version_type in
10732 freebsd-elf*)
10733 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10734 need_version=no
10735 need_lib_prefix=no
10737 freebsd-*)
10738 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10739 need_version=yes
10741 esac
10742 shlibpath_var=LD_LIBRARY_PATH
10743 case $host_os in
10744 freebsd2*)
10745 shlibpath_overrides_runpath=yes
10747 freebsd3.[01]* | freebsdelf3.[01]*)
10748 shlibpath_overrides_runpath=yes
10749 hardcode_into_libs=yes
10751 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10752 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10753 shlibpath_overrides_runpath=no
10754 hardcode_into_libs=yes
10756 *) # from 4.6 on, and DragonFly
10757 shlibpath_overrides_runpath=yes
10758 hardcode_into_libs=yes
10760 esac
10763 gnu*)
10764 version_type=linux
10765 need_lib_prefix=no
10766 need_version=no
10767 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10768 soname_spec='${libname}${release}${shared_ext}$major'
10769 shlibpath_var=LD_LIBRARY_PATH
10770 hardcode_into_libs=yes
10773 haiku*)
10774 version_type=linux
10775 need_lib_prefix=no
10776 need_version=no
10777 dynamic_linker="$host_os runtime_loader"
10778 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10779 soname_spec='${libname}${release}${shared_ext}$major'
10780 shlibpath_var=LIBRARY_PATH
10781 shlibpath_overrides_runpath=yes
10782 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
10783 hardcode_into_libs=yes
10786 hpux9* | hpux10* | hpux11*)
10787 # Give a soname corresponding to the major version so that dld.sl refuses to
10788 # link against other versions.
10789 version_type=sunos
10790 need_lib_prefix=no
10791 need_version=no
10792 case $host_cpu in
10793 ia64*)
10794 shrext_cmds='.so'
10795 hardcode_into_libs=yes
10796 dynamic_linker="$host_os dld.so"
10797 shlibpath_var=LD_LIBRARY_PATH
10798 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10799 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10800 soname_spec='${libname}${release}${shared_ext}$major'
10801 if test "X$HPUX_IA64_MODE" = X32; then
10802 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10803 else
10804 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10806 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10808 hppa*64*)
10809 shrext_cmds='.sl'
10810 hardcode_into_libs=yes
10811 dynamic_linker="$host_os dld.sl"
10812 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10813 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10814 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10815 soname_spec='${libname}${release}${shared_ext}$major'
10816 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10817 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10820 shrext_cmds='.sl'
10821 dynamic_linker="$host_os dld.sl"
10822 shlibpath_var=SHLIB_PATH
10823 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10824 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10825 soname_spec='${libname}${release}${shared_ext}$major'
10827 esac
10828 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
10829 postinstall_cmds='chmod 555 $lib'
10830 # or fails outright, so override atomically:
10831 install_override_mode=555
10834 interix[3-9]*)
10835 version_type=linux
10836 need_lib_prefix=no
10837 need_version=no
10838 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10839 soname_spec='${libname}${release}${shared_ext}$major'
10840 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10841 shlibpath_var=LD_LIBRARY_PATH
10842 shlibpath_overrides_runpath=no
10843 hardcode_into_libs=yes
10846 irix5* | irix6* | nonstopux*)
10847 case $host_os in
10848 nonstopux*) version_type=nonstopux ;;
10850 if test "$lt_cv_prog_gnu_ld" = yes; then
10851 version_type=linux
10852 else
10853 version_type=irix
10854 fi ;;
10855 esac
10856 need_lib_prefix=no
10857 need_version=no
10858 soname_spec='${libname}${release}${shared_ext}$major'
10859 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10860 case $host_os in
10861 irix5* | nonstopux*)
10862 libsuff= shlibsuff=
10865 case $LD in # libtool.m4 will add one of these switches to LD
10866 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10867 libsuff= shlibsuff= libmagic=32-bit;;
10868 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10869 libsuff=32 shlibsuff=N32 libmagic=N32;;
10870 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10871 libsuff=64 shlibsuff=64 libmagic=64-bit;;
10872 *) libsuff= shlibsuff= libmagic=never-match;;
10873 esac
10875 esac
10876 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10877 shlibpath_overrides_runpath=no
10878 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10879 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10880 hardcode_into_libs=yes
10883 # No shared lib support for Linux oldld, aout, or coff.
10884 linux*oldld* | linux*aout* | linux*coff*)
10885 dynamic_linker=no
10888 # This must be Linux ELF.
10889 linux* | k*bsd*-gnu | kopensolaris*-gnu)
10890 version_type=linux
10891 need_lib_prefix=no
10892 need_version=no
10893 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10894 soname_spec='${libname}${release}${shared_ext}$major'
10895 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10896 shlibpath_var=LD_LIBRARY_PATH
10897 shlibpath_overrides_runpath=no
10899 # Some binutils ld are patched to set DT_RUNPATH
10900 if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
10901 $as_echo_n "(cached) " >&6
10902 else
10903 lt_cv_shlibpath_overrides_runpath=no
10904 save_LDFLAGS=$LDFLAGS
10905 save_libdir=$libdir
10906 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10907 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10908 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10909 /* end confdefs.h. */
10912 main ()
10916 return 0;
10918 _ACEOF
10919 if ac_fn_c_try_link "$LINENO"; then :
10920 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
10921 lt_cv_shlibpath_overrides_runpath=yes
10924 rm -f core conftest.err conftest.$ac_objext \
10925 conftest$ac_exeext conftest.$ac_ext
10926 LDFLAGS=$save_LDFLAGS
10927 libdir=$save_libdir
10931 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
10933 # This implies no fast_install, which is unacceptable.
10934 # Some rework will be needed to allow for fast_install
10935 # before this can be enabled.
10936 hardcode_into_libs=yes
10938 # Append ld.so.conf contents to the search path
10939 if test -f /etc/ld.so.conf; then
10940 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' ' '`
10941 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10944 # We used to test for /lib/ld.so.1 and disable shared libraries on
10945 # powerpc, because MkLinux only supported shared libraries with the
10946 # GNU dynamic linker. Since this was broken with cross compilers,
10947 # most powerpc-linux boxes support dynamic linking these days and
10948 # people can always --disable-shared, the test was removed, and we
10949 # assume the GNU/Linux dynamic linker is in use.
10950 dynamic_linker='GNU/Linux ld.so'
10953 netbsd*)
10954 version_type=sunos
10955 need_lib_prefix=no
10956 need_version=no
10957 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10958 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10959 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10960 dynamic_linker='NetBSD (a.out) ld.so'
10961 else
10962 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10963 soname_spec='${libname}${release}${shared_ext}$major'
10964 dynamic_linker='NetBSD ld.elf_so'
10966 shlibpath_var=LD_LIBRARY_PATH
10967 shlibpath_overrides_runpath=yes
10968 hardcode_into_libs=yes
10971 newsos6)
10972 version_type=linux
10973 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10974 shlibpath_var=LD_LIBRARY_PATH
10975 shlibpath_overrides_runpath=yes
10978 *nto* | *qnx*)
10979 version_type=qnx
10980 need_lib_prefix=no
10981 need_version=no
10982 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10983 soname_spec='${libname}${release}${shared_ext}$major'
10984 shlibpath_var=LD_LIBRARY_PATH
10985 shlibpath_overrides_runpath=no
10986 hardcode_into_libs=yes
10987 dynamic_linker='ldqnx.so'
10990 openbsd*)
10991 version_type=sunos
10992 sys_lib_dlsearch_path_spec="/usr/lib"
10993 need_lib_prefix=no
10994 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10995 case $host_os in
10996 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
10997 *) need_version=no ;;
10998 esac
10999 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11000 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11001 shlibpath_var=LD_LIBRARY_PATH
11002 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11003 case $host_os in
11004 openbsd2.[89] | openbsd2.[89].*)
11005 shlibpath_overrides_runpath=no
11008 shlibpath_overrides_runpath=yes
11010 esac
11011 else
11012 shlibpath_overrides_runpath=yes
11016 os2*)
11017 libname_spec='$name'
11018 shrext_cmds=".dll"
11019 need_lib_prefix=no
11020 library_names_spec='$libname${shared_ext} $libname.a'
11021 dynamic_linker='OS/2 ld.exe'
11022 shlibpath_var=LIBPATH
11025 osf3* | osf4* | osf5*)
11026 version_type=osf
11027 need_lib_prefix=no
11028 need_version=no
11029 soname_spec='${libname}${release}${shared_ext}$major'
11030 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11031 shlibpath_var=LD_LIBRARY_PATH
11032 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11033 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11036 rdos*)
11037 dynamic_linker=no
11040 solaris*)
11041 version_type=linux
11042 need_lib_prefix=no
11043 need_version=no
11044 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11045 soname_spec='${libname}${release}${shared_ext}$major'
11046 shlibpath_var=LD_LIBRARY_PATH
11047 shlibpath_overrides_runpath=yes
11048 hardcode_into_libs=yes
11049 # ldd complains unless libraries are executable
11050 postinstall_cmds='chmod +x $lib'
11053 sunos4*)
11054 version_type=sunos
11055 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11056 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11057 shlibpath_var=LD_LIBRARY_PATH
11058 shlibpath_overrides_runpath=yes
11059 if test "$with_gnu_ld" = yes; then
11060 need_lib_prefix=no
11062 need_version=yes
11065 sysv4 | sysv4.3*)
11066 version_type=linux
11067 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11068 soname_spec='${libname}${release}${shared_ext}$major'
11069 shlibpath_var=LD_LIBRARY_PATH
11070 case $host_vendor in
11071 sni)
11072 shlibpath_overrides_runpath=no
11073 need_lib_prefix=no
11074 runpath_var=LD_RUN_PATH
11076 siemens)
11077 need_lib_prefix=no
11079 motorola)
11080 need_lib_prefix=no
11081 need_version=no
11082 shlibpath_overrides_runpath=no
11083 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11085 esac
11088 sysv4*MP*)
11089 if test -d /usr/nec ;then
11090 version_type=linux
11091 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11092 soname_spec='$libname${shared_ext}.$major'
11093 shlibpath_var=LD_LIBRARY_PATH
11097 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11098 version_type=freebsd-elf
11099 need_lib_prefix=no
11100 need_version=no
11101 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11102 soname_spec='${libname}${release}${shared_ext}$major'
11103 shlibpath_var=LD_LIBRARY_PATH
11104 shlibpath_overrides_runpath=yes
11105 hardcode_into_libs=yes
11106 if test "$with_gnu_ld" = yes; then
11107 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11108 else
11109 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11110 case $host_os in
11111 sco3.2v5*)
11112 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11114 esac
11116 sys_lib_dlsearch_path_spec='/usr/lib'
11119 tpf*)
11120 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
11121 version_type=linux
11122 need_lib_prefix=no
11123 need_version=no
11124 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11125 shlibpath_var=LD_LIBRARY_PATH
11126 shlibpath_overrides_runpath=no
11127 hardcode_into_libs=yes
11130 uts4*)
11131 version_type=linux
11132 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11133 soname_spec='${libname}${release}${shared_ext}$major'
11134 shlibpath_var=LD_LIBRARY_PATH
11138 dynamic_linker=no
11140 esac
11141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
11142 $as_echo "$dynamic_linker" >&6; }
11143 test "$dynamic_linker" = no && can_build_shared=no
11145 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11146 if test "$GCC" = yes; then
11147 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11150 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
11151 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
11153 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
11154 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
11248 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
11249 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
11250 hardcode_action=
11251 if test -n "$hardcode_libdir_flag_spec" ||
11252 test -n "$runpath_var" ||
11253 test "X$hardcode_automatic" = "Xyes" ; then
11255 # We can hardcode non-existent directories.
11256 if test "$hardcode_direct" != no &&
11257 # If the only mechanism to avoid hardcoding is shlibpath_var, we
11258 # have to relink, otherwise we might link with an installed library
11259 # when we should be linking with a yet-to-be-installed one
11260 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
11261 test "$hardcode_minus_L" != no; then
11262 # Linking always hardcodes the temporary library directory.
11263 hardcode_action=relink
11264 else
11265 # We can link without hardcoding, and we can hardcode nonexisting dirs.
11266 hardcode_action=immediate
11268 else
11269 # We cannot hardcode anything, or else we can only hardcode existing
11270 # directories.
11271 hardcode_action=unsupported
11273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
11274 $as_echo "$hardcode_action" >&6; }
11276 if test "$hardcode_action" = relink ||
11277 test "$inherit_rpath" = yes; then
11278 # Fast installation is not supported
11279 enable_fast_install=no
11280 elif test "$shlibpath_overrides_runpath" = yes ||
11281 test "$enable_shared" = no; then
11282 # Fast installation is not necessary
11283 enable_fast_install=needless
11291 if test "x$enable_dlopen" != xyes; then
11292 enable_dlopen=unknown
11293 enable_dlopen_self=unknown
11294 enable_dlopen_self_static=unknown
11295 else
11296 lt_cv_dlopen=no
11297 lt_cv_dlopen_libs=
11299 case $host_os in
11300 beos*)
11301 lt_cv_dlopen="load_add_on"
11302 lt_cv_dlopen_libs=
11303 lt_cv_dlopen_self=yes
11306 mingw* | pw32* | cegcc*)
11307 lt_cv_dlopen="LoadLibrary"
11308 lt_cv_dlopen_libs=
11311 cygwin*)
11312 lt_cv_dlopen="dlopen"
11313 lt_cv_dlopen_libs=
11316 darwin*)
11317 # if libdl is installed we need to link against it
11318 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11319 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11320 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
11321 $as_echo_n "(cached) " >&6
11322 else
11323 ac_check_lib_save_LIBS=$LIBS
11324 LIBS="-ldl $LIBS"
11325 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11326 /* end confdefs.h. */
11328 /* Override any GCC internal prototype to avoid an error.
11329 Use char because int might match the return type of a GCC
11330 builtin and then its argument prototype would still apply. */
11331 #ifdef __cplusplus
11332 extern "C"
11333 #endif
11334 char dlopen ();
11336 main ()
11338 return dlopen ();
11340 return 0;
11342 _ACEOF
11343 if ac_fn_c_try_link "$LINENO"; then :
11344 ac_cv_lib_dl_dlopen=yes
11345 else
11346 ac_cv_lib_dl_dlopen=no
11348 rm -f core conftest.err conftest.$ac_objext \
11349 conftest$ac_exeext conftest.$ac_ext
11350 LIBS=$ac_check_lib_save_LIBS
11352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11353 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11354 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
11355 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11356 else
11358 lt_cv_dlopen="dyld"
11359 lt_cv_dlopen_libs=
11360 lt_cv_dlopen_self=yes
11367 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
11368 if test "x$ac_cv_func_shl_load" = x""yes; then :
11369 lt_cv_dlopen="shl_load"
11370 else
11371 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
11372 $as_echo_n "checking for shl_load in -ldld... " >&6; }
11373 if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
11374 $as_echo_n "(cached) " >&6
11375 else
11376 ac_check_lib_save_LIBS=$LIBS
11377 LIBS="-ldld $LIBS"
11378 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11379 /* end confdefs.h. */
11381 /* Override any GCC internal prototype to avoid an error.
11382 Use char because int might match the return type of a GCC
11383 builtin and then its argument prototype would still apply. */
11384 #ifdef __cplusplus
11385 extern "C"
11386 #endif
11387 char shl_load ();
11389 main ()
11391 return shl_load ();
11393 return 0;
11395 _ACEOF
11396 if ac_fn_c_try_link "$LINENO"; then :
11397 ac_cv_lib_dld_shl_load=yes
11398 else
11399 ac_cv_lib_dld_shl_load=no
11401 rm -f core conftest.err conftest.$ac_objext \
11402 conftest$ac_exeext conftest.$ac_ext
11403 LIBS=$ac_check_lib_save_LIBS
11405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
11406 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
11407 if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
11408 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
11409 else
11410 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
11411 if test "x$ac_cv_func_dlopen" = x""yes; then :
11412 lt_cv_dlopen="dlopen"
11413 else
11414 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11415 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11416 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
11417 $as_echo_n "(cached) " >&6
11418 else
11419 ac_check_lib_save_LIBS=$LIBS
11420 LIBS="-ldl $LIBS"
11421 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11422 /* end confdefs.h. */
11424 /* Override any GCC internal prototype to avoid an error.
11425 Use char because int might match the return type of a GCC
11426 builtin and then its argument prototype would still apply. */
11427 #ifdef __cplusplus
11428 extern "C"
11429 #endif
11430 char dlopen ();
11432 main ()
11434 return dlopen ();
11436 return 0;
11438 _ACEOF
11439 if ac_fn_c_try_link "$LINENO"; then :
11440 ac_cv_lib_dl_dlopen=yes
11441 else
11442 ac_cv_lib_dl_dlopen=no
11444 rm -f core conftest.err conftest.$ac_objext \
11445 conftest$ac_exeext conftest.$ac_ext
11446 LIBS=$ac_check_lib_save_LIBS
11448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11449 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11450 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
11451 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11452 else
11453 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11454 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
11455 if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
11456 $as_echo_n "(cached) " >&6
11457 else
11458 ac_check_lib_save_LIBS=$LIBS
11459 LIBS="-lsvld $LIBS"
11460 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11461 /* end confdefs.h. */
11463 /* Override any GCC internal prototype to avoid an error.
11464 Use char because int might match the return type of a GCC
11465 builtin and then its argument prototype would still apply. */
11466 #ifdef __cplusplus
11467 extern "C"
11468 #endif
11469 char dlopen ();
11471 main ()
11473 return dlopen ();
11475 return 0;
11477 _ACEOF
11478 if ac_fn_c_try_link "$LINENO"; then :
11479 ac_cv_lib_svld_dlopen=yes
11480 else
11481 ac_cv_lib_svld_dlopen=no
11483 rm -f core conftest.err conftest.$ac_objext \
11484 conftest$ac_exeext conftest.$ac_ext
11485 LIBS=$ac_check_lib_save_LIBS
11487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11488 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11489 if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
11490 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11491 else
11492 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11493 $as_echo_n "checking for dld_link in -ldld... " >&6; }
11494 if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
11495 $as_echo_n "(cached) " >&6
11496 else
11497 ac_check_lib_save_LIBS=$LIBS
11498 LIBS="-ldld $LIBS"
11499 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11500 /* end confdefs.h. */
11502 /* Override any GCC internal prototype to avoid an error.
11503 Use char because int might match the return type of a GCC
11504 builtin and then its argument prototype would still apply. */
11505 #ifdef __cplusplus
11506 extern "C"
11507 #endif
11508 char dld_link ();
11510 main ()
11512 return dld_link ();
11514 return 0;
11516 _ACEOF
11517 if ac_fn_c_try_link "$LINENO"; then :
11518 ac_cv_lib_dld_dld_link=yes
11519 else
11520 ac_cv_lib_dld_dld_link=no
11522 rm -f core conftest.err conftest.$ac_objext \
11523 conftest$ac_exeext conftest.$ac_ext
11524 LIBS=$ac_check_lib_save_LIBS
11526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11527 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11528 if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
11529 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
11548 esac
11550 if test "x$lt_cv_dlopen" != xno; then
11551 enable_dlopen=yes
11552 else
11553 enable_dlopen=no
11556 case $lt_cv_dlopen in
11557 dlopen)
11558 save_CPPFLAGS="$CPPFLAGS"
11559 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11561 save_LDFLAGS="$LDFLAGS"
11562 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11564 save_LIBS="$LIBS"
11565 LIBS="$lt_cv_dlopen_libs $LIBS"
11567 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
11568 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
11569 if test "${lt_cv_dlopen_self+set}" = set; then :
11570 $as_echo_n "(cached) " >&6
11571 else
11572 if test "$cross_compiling" = yes; then :
11573 lt_cv_dlopen_self=cross
11574 else
11575 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11576 lt_status=$lt_dlunknown
11577 cat > conftest.$ac_ext <<_LT_EOF
11578 #line 11578 "configure"
11579 #include "confdefs.h"
11581 #if HAVE_DLFCN_H
11582 #include <dlfcn.h>
11583 #endif
11585 #include <stdio.h>
11587 #ifdef RTLD_GLOBAL
11588 # define LT_DLGLOBAL RTLD_GLOBAL
11589 #else
11590 # ifdef DL_GLOBAL
11591 # define LT_DLGLOBAL DL_GLOBAL
11592 # else
11593 # define LT_DLGLOBAL 0
11594 # endif
11595 #endif
11597 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11598 find out it does not work in some platform. */
11599 #ifndef LT_DLLAZY_OR_NOW
11600 # ifdef RTLD_LAZY
11601 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11602 # else
11603 # ifdef DL_LAZY
11604 # define LT_DLLAZY_OR_NOW DL_LAZY
11605 # else
11606 # ifdef RTLD_NOW
11607 # define LT_DLLAZY_OR_NOW RTLD_NOW
11608 # else
11609 # ifdef DL_NOW
11610 # define LT_DLLAZY_OR_NOW DL_NOW
11611 # else
11612 # define LT_DLLAZY_OR_NOW 0
11613 # endif
11614 # endif
11615 # endif
11616 # endif
11617 #endif
11619 /* When -fvisbility=hidden is used, assume the code has been annotated
11620 correspondingly for the symbols needed. */
11621 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11622 void fnord () __attribute__((visibility("default")));
11623 #endif
11625 void fnord () { int i=42; }
11626 int main ()
11628 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11629 int status = $lt_dlunknown;
11631 if (self)
11633 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11634 else
11636 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11637 else puts (dlerror ());
11639 /* dlclose (self); */
11641 else
11642 puts (dlerror ());
11644 return status;
11646 _LT_EOF
11647 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11648 (eval $ac_link) 2>&5
11649 ac_status=$?
11650 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11651 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11652 (./conftest; exit; ) >&5 2>/dev/null
11653 lt_status=$?
11654 case x$lt_status in
11655 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11656 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11657 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11658 esac
11659 else :
11660 # compilation failed
11661 lt_cv_dlopen_self=no
11664 rm -fr conftest*
11668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11669 $as_echo "$lt_cv_dlopen_self" >&6; }
11671 if test "x$lt_cv_dlopen_self" = xyes; then
11672 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11673 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11674 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11675 if test "${lt_cv_dlopen_self_static+set}" = set; then :
11676 $as_echo_n "(cached) " >&6
11677 else
11678 if test "$cross_compiling" = yes; then :
11679 lt_cv_dlopen_self_static=cross
11680 else
11681 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11682 lt_status=$lt_dlunknown
11683 cat > conftest.$ac_ext <<_LT_EOF
11684 #line 11684 "configure"
11685 #include "confdefs.h"
11687 #if HAVE_DLFCN_H
11688 #include <dlfcn.h>
11689 #endif
11691 #include <stdio.h>
11693 #ifdef RTLD_GLOBAL
11694 # define LT_DLGLOBAL RTLD_GLOBAL
11695 #else
11696 # ifdef DL_GLOBAL
11697 # define LT_DLGLOBAL DL_GLOBAL
11698 # else
11699 # define LT_DLGLOBAL 0
11700 # endif
11701 #endif
11703 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11704 find out it does not work in some platform. */
11705 #ifndef LT_DLLAZY_OR_NOW
11706 # ifdef RTLD_LAZY
11707 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11708 # else
11709 # ifdef DL_LAZY
11710 # define LT_DLLAZY_OR_NOW DL_LAZY
11711 # else
11712 # ifdef RTLD_NOW
11713 # define LT_DLLAZY_OR_NOW RTLD_NOW
11714 # else
11715 # ifdef DL_NOW
11716 # define LT_DLLAZY_OR_NOW DL_NOW
11717 # else
11718 # define LT_DLLAZY_OR_NOW 0
11719 # endif
11720 # endif
11721 # endif
11722 # endif
11723 #endif
11725 /* When -fvisbility=hidden is used, assume the code has been annotated
11726 correspondingly for the symbols needed. */
11727 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11728 void fnord () __attribute__((visibility("default")));
11729 #endif
11731 void fnord () { int i=42; }
11732 int main ()
11734 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11735 int status = $lt_dlunknown;
11737 if (self)
11739 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11740 else
11742 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11743 else puts (dlerror ());
11745 /* dlclose (self); */
11747 else
11748 puts (dlerror ());
11750 return status;
11752 _LT_EOF
11753 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11754 (eval $ac_link) 2>&5
11755 ac_status=$?
11756 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11757 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11758 (./conftest; exit; ) >&5 2>/dev/null
11759 lt_status=$?
11760 case x$lt_status in
11761 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11762 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11763 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11764 esac
11765 else :
11766 # compilation failed
11767 lt_cv_dlopen_self_static=no
11770 rm -fr conftest*
11774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11775 $as_echo "$lt_cv_dlopen_self_static" >&6; }
11778 CPPFLAGS="$save_CPPFLAGS"
11779 LDFLAGS="$save_LDFLAGS"
11780 LIBS="$save_LIBS"
11782 esac
11784 case $lt_cv_dlopen_self in
11785 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11786 *) enable_dlopen_self=unknown ;;
11787 esac
11789 case $lt_cv_dlopen_self_static in
11790 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11791 *) enable_dlopen_self_static=unknown ;;
11792 esac
11811 striplib=
11812 old_striplib=
11813 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11814 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
11815 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11816 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11817 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11819 $as_echo "yes" >&6; }
11820 else
11821 # FIXME - insert some real tests, host_os isn't really good enough
11822 case $host_os in
11823 darwin*)
11824 if test -n "$STRIP" ; then
11825 striplib="$STRIP -x"
11826 old_striplib="$STRIP -S"
11827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11828 $as_echo "yes" >&6; }
11829 else
11830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11831 $as_echo "no" >&6; }
11835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11836 $as_echo "no" >&6; }
11838 esac
11852 # Report which library types will actually be built
11853 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
11854 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
11855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
11856 $as_echo "$can_build_shared" >&6; }
11858 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
11859 $as_echo_n "checking whether to build shared libraries... " >&6; }
11860 test "$can_build_shared" = "no" && enable_shared=no
11862 # On AIX, shared libraries and static libraries use the same namespace, and
11863 # are all built from PIC.
11864 case $host_os in
11865 aix3*)
11866 test "$enable_shared" = yes && enable_static=no
11867 if test -n "$RANLIB"; then
11868 archive_cmds="$archive_cmds~\$RANLIB \$lib"
11869 postinstall_cmds='$RANLIB $lib'
11873 aix[4-9]*)
11874 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11875 test "$enable_shared" = yes && enable_static=no
11878 esac
11879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
11880 $as_echo "$enable_shared" >&6; }
11882 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
11883 $as_echo_n "checking whether to build static libraries... " >&6; }
11884 # Make sure either enable_shared or enable_static is yes.
11885 test "$enable_shared" = yes || enable_static=yes
11886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
11887 $as_echo "$enable_static" >&6; }
11893 ac_ext=c
11894 ac_cpp='$CPP $CPPFLAGS'
11895 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11896 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11897 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11899 CC="$lt_save_CC"
11913 ac_config_commands="$ac_config_commands libtool"
11918 # Only expand once:
11922 ALL_LINGUAS="fr sv tr es da vi zh_CN zh_TW ga fi id bg"
11923 # If we haven't got the data from the intl directory,
11924 # assume NLS is disabled.
11925 USE_NLS=no
11926 LIBINTL=
11927 LIBINTL_DEP=
11928 INCINTL=
11929 XGETTEXT=
11930 GMSGFMT=
11931 POSUB=
11933 if test -f ../intl/config.intl; then
11934 . ../intl/config.intl
11936 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
11937 $as_echo_n "checking whether NLS is requested... " >&6; }
11938 if test x"$USE_NLS" != xyes; then
11939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11940 $as_echo "no" >&6; }
11941 else
11942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11943 $as_echo "yes" >&6; }
11945 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
11948 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catalogs to be installed" >&5
11949 $as_echo_n "checking for catalogs to be installed... " >&6; }
11950 # Look for .po and .gmo files in the source directory.
11951 CATALOGS=
11952 XLINGUAS=
11953 for cat in $srcdir/po/*.gmo $srcdir/po/*.po; do
11954 # If there aren't any .gmo files the shell will give us the
11955 # literal string "../path/to/srcdir/po/*.gmo" which has to be
11956 # weeded out.
11957 case "$cat" in *\**)
11958 continue;;
11959 esac
11960 # The quadruple backslash is collapsed to a double backslash
11961 # by the backticks, then collapsed again by the double quotes,
11962 # leaving us with one backslash in the sed expression (right
11963 # before the dot that mustn't act as a wildcard).
11964 cat=`echo $cat | sed -e "s!$srcdir/po/!!" -e "s!\\\\.po!.gmo!"`
11965 lang=`echo $cat | sed -e "s!\\\\.gmo!!"`
11966 # The user is allowed to set LINGUAS to a list of languages to
11967 # install catalogs for. If it's empty that means "all of them."
11968 if test "x$LINGUAS" = x; then
11969 CATALOGS="$CATALOGS $cat"
11970 XLINGUAS="$XLINGUAS $lang"
11971 else
11972 case "$LINGUAS" in *$lang*)
11973 CATALOGS="$CATALOGS $cat"
11974 XLINGUAS="$XLINGUAS $lang"
11976 esac
11978 done
11979 LINGUAS="$XLINGUAS"
11980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINGUAS" >&5
11981 $as_echo "$LINGUAS" >&6; }
11984 DATADIRNAME=share
11986 INSTOBJEXT=.mo
11988 GENCAT=gencat
11990 CATOBJEXT=.gmo
11994 MKINSTALLDIRS=
11995 if test -n "$ac_aux_dir"; then
11996 case "$ac_aux_dir" in
11997 /*) MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" ;;
11998 *) MKINSTALLDIRS="\$(top_builddir)/$ac_aux_dir/mkinstalldirs" ;;
11999 esac
12001 if test -z "$MKINSTALLDIRS"; then
12002 MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
12007 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
12008 $as_echo_n "checking whether NLS is requested... " >&6; }
12009 # Check whether --enable-nls was given.
12010 if test "${enable_nls+set}" = set; then :
12011 enableval=$enable_nls; USE_NLS=$enableval
12012 else
12013 USE_NLS=yes
12016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
12017 $as_echo "$USE_NLS" >&6; }
12024 # Prepare PATH_SEPARATOR.
12025 # The user is always right.
12026 if test "${PATH_SEPARATOR+set}" != set; then
12027 echo "#! /bin/sh" >conf$$.sh
12028 echo "exit 0" >>conf$$.sh
12029 chmod +x conf$$.sh
12030 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
12031 PATH_SEPARATOR=';'
12032 else
12033 PATH_SEPARATOR=:
12035 rm -f conf$$.sh
12038 # Find out how to test for executable files. Don't use a zero-byte file,
12039 # as systems may use methods other than mode bits to determine executability.
12040 cat >conf$$.file <<_ASEOF
12041 #! /bin/sh
12042 exit 0
12043 _ASEOF
12044 chmod +x conf$$.file
12045 if test -x conf$$.file >/dev/null 2>&1; then
12046 ac_executable_p="test -x"
12047 else
12048 ac_executable_p="test -f"
12050 rm -f conf$$.file
12052 # Extract the first word of "msgfmt", so it can be a program name with args.
12053 set dummy msgfmt; ac_word=$2
12054 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12055 $as_echo_n "checking for $ac_word... " >&6; }
12056 if test "${ac_cv_path_MSGFMT+set}" = set; then :
12057 $as_echo_n "(cached) " >&6
12058 else
12059 case "$MSGFMT" in
12060 [\\/]* | ?:[\\/]*)
12061 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
12064 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
12065 for ac_dir in $PATH; do
12066 IFS="$ac_save_IFS"
12067 test -z "$ac_dir" && ac_dir=.
12068 for ac_exec_ext in '' $ac_executable_extensions; do
12069 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
12070 if $ac_dir/$ac_word --statistics /dev/null >/dev/null 2>&1 &&
12071 (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
12072 ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
12073 break 2
12076 done
12077 done
12078 IFS="$ac_save_IFS"
12079 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
12081 esac
12083 MSGFMT="$ac_cv_path_MSGFMT"
12084 if test "$MSGFMT" != ":"; then
12085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
12086 $as_echo "$MSGFMT" >&6; }
12087 else
12088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12089 $as_echo "no" >&6; }
12092 # Extract the first word of "gmsgfmt", so it can be a program name with args.
12093 set dummy gmsgfmt; ac_word=$2
12094 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12095 $as_echo_n "checking for $ac_word... " >&6; }
12096 if test "${ac_cv_path_GMSGFMT+set}" = set; then :
12097 $as_echo_n "(cached) " >&6
12098 else
12099 case $GMSGFMT in
12100 [\\/]* | ?:[\\/]*)
12101 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
12104 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12105 for as_dir in $PATH
12107 IFS=$as_save_IFS
12108 test -z "$as_dir" && as_dir=.
12109 for ac_exec_ext in '' $ac_executable_extensions; do
12110 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12111 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
12112 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12113 break 2
12115 done
12116 done
12117 IFS=$as_save_IFS
12119 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
12121 esac
12123 GMSGFMT=$ac_cv_path_GMSGFMT
12124 if test -n "$GMSGFMT"; then
12125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMSGFMT" >&5
12126 $as_echo "$GMSGFMT" >&6; }
12127 else
12128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12129 $as_echo "no" >&6; }
12135 # Prepare PATH_SEPARATOR.
12136 # The user is always right.
12137 if test "${PATH_SEPARATOR+set}" != set; then
12138 echo "#! /bin/sh" >conf$$.sh
12139 echo "exit 0" >>conf$$.sh
12140 chmod +x conf$$.sh
12141 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
12142 PATH_SEPARATOR=';'
12143 else
12144 PATH_SEPARATOR=:
12146 rm -f conf$$.sh
12149 # Find out how to test for executable files. Don't use a zero-byte file,
12150 # as systems may use methods other than mode bits to determine executability.
12151 cat >conf$$.file <<_ASEOF
12152 #! /bin/sh
12153 exit 0
12154 _ASEOF
12155 chmod +x conf$$.file
12156 if test -x conf$$.file >/dev/null 2>&1; then
12157 ac_executable_p="test -x"
12158 else
12159 ac_executable_p="test -f"
12161 rm -f conf$$.file
12163 # Extract the first word of "xgettext", so it can be a program name with args.
12164 set dummy xgettext; ac_word=$2
12165 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12166 $as_echo_n "checking for $ac_word... " >&6; }
12167 if test "${ac_cv_path_XGETTEXT+set}" = set; then :
12168 $as_echo_n "(cached) " >&6
12169 else
12170 case "$XGETTEXT" in
12171 [\\/]* | ?:[\\/]*)
12172 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
12175 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
12176 for ac_dir in $PATH; do
12177 IFS="$ac_save_IFS"
12178 test -z "$ac_dir" && ac_dir=.
12179 for ac_exec_ext in '' $ac_executable_extensions; do
12180 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
12181 if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
12182 (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
12183 ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
12184 break 2
12187 done
12188 done
12189 IFS="$ac_save_IFS"
12190 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
12192 esac
12194 XGETTEXT="$ac_cv_path_XGETTEXT"
12195 if test "$XGETTEXT" != ":"; then
12196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5
12197 $as_echo "$XGETTEXT" >&6; }
12198 else
12199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12200 $as_echo "no" >&6; }
12203 rm -f messages.po
12206 # Prepare PATH_SEPARATOR.
12207 # The user is always right.
12208 if test "${PATH_SEPARATOR+set}" != set; then
12209 echo "#! /bin/sh" >conf$$.sh
12210 echo "exit 0" >>conf$$.sh
12211 chmod +x conf$$.sh
12212 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
12213 PATH_SEPARATOR=';'
12214 else
12215 PATH_SEPARATOR=:
12217 rm -f conf$$.sh
12220 # Find out how to test for executable files. Don't use a zero-byte file,
12221 # as systems may use methods other than mode bits to determine executability.
12222 cat >conf$$.file <<_ASEOF
12223 #! /bin/sh
12224 exit 0
12225 _ASEOF
12226 chmod +x conf$$.file
12227 if test -x conf$$.file >/dev/null 2>&1; then
12228 ac_executable_p="test -x"
12229 else
12230 ac_executable_p="test -f"
12232 rm -f conf$$.file
12234 # Extract the first word of "msgmerge", so it can be a program name with args.
12235 set dummy msgmerge; ac_word=$2
12236 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12237 $as_echo_n "checking for $ac_word... " >&6; }
12238 if test "${ac_cv_path_MSGMERGE+set}" = set; then :
12239 $as_echo_n "(cached) " >&6
12240 else
12241 case "$MSGMERGE" in
12242 [\\/]* | ?:[\\/]*)
12243 ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
12246 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
12247 for ac_dir in $PATH; do
12248 IFS="$ac_save_IFS"
12249 test -z "$ac_dir" && ac_dir=.
12250 for ac_exec_ext in '' $ac_executable_extensions; do
12251 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
12252 if $ac_dir/$ac_word --update -q /dev/null /dev/null >/dev/null 2>&1; then
12253 ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
12254 break 2
12257 done
12258 done
12259 IFS="$ac_save_IFS"
12260 test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
12262 esac
12264 MSGMERGE="$ac_cv_path_MSGMERGE"
12265 if test "$MSGMERGE" != ":"; then
12266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGMERGE" >&5
12267 $as_echo "$MSGMERGE" >&6; }
12268 else
12269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12270 $as_echo "no" >&6; }
12274 if test "$GMSGFMT" != ":"; then
12275 if $GMSGFMT --statistics /dev/null >/dev/null 2>&1 &&
12276 (if $GMSGFMT --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
12278 else
12279 GMSGFMT=`echo "$GMSGFMT" | sed -e 's,^.*/,,'`
12280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found $GMSGFMT program is not GNU msgfmt; ignore it" >&5
12281 $as_echo "found $GMSGFMT program is not GNU msgfmt; ignore it" >&6; }
12282 GMSGFMT=":"
12286 if test "$XGETTEXT" != ":"; then
12287 if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
12288 (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
12290 else
12291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found xgettext program is not GNU xgettext; ignore it" >&5
12292 $as_echo "found xgettext program is not GNU xgettext; ignore it" >&6; }
12293 XGETTEXT=":"
12295 rm -f messages.po
12298 ac_config_commands="$ac_config_commands default-1"
12304 for ac_prog in 'bison -y' byacc
12306 # Extract the first word of "$ac_prog", so it can be a program name with args.
12307 set dummy $ac_prog; ac_word=$2
12308 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12309 $as_echo_n "checking for $ac_word... " >&6; }
12310 if test "${ac_cv_prog_YACC+set}" = set; then :
12311 $as_echo_n "(cached) " >&6
12312 else
12313 if test -n "$YACC"; then
12314 ac_cv_prog_YACC="$YACC" # Let the user override the test.
12315 else
12316 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12317 for as_dir in $PATH
12319 IFS=$as_save_IFS
12320 test -z "$as_dir" && as_dir=.
12321 for ac_exec_ext in '' $ac_executable_extensions; do
12322 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12323 ac_cv_prog_YACC="$ac_prog"
12324 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12325 break 2
12327 done
12328 done
12329 IFS=$as_save_IFS
12333 YACC=$ac_cv_prog_YACC
12334 if test -n "$YACC"; then
12335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5
12336 $as_echo "$YACC" >&6; }
12337 else
12338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12339 $as_echo "no" >&6; }
12343 test -n "$YACC" && break
12344 done
12345 test -n "$YACC" || YACC="yacc"
12347 for ac_prog in flex lex
12349 # Extract the first word of "$ac_prog", so it can be a program name with args.
12350 set dummy $ac_prog; ac_word=$2
12351 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12352 $as_echo_n "checking for $ac_word... " >&6; }
12353 if test "${ac_cv_prog_LEX+set}" = set; then :
12354 $as_echo_n "(cached) " >&6
12355 else
12356 if test -n "$LEX"; then
12357 ac_cv_prog_LEX="$LEX" # Let the user override the test.
12358 else
12359 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12360 for as_dir in $PATH
12362 IFS=$as_save_IFS
12363 test -z "$as_dir" && as_dir=.
12364 for ac_exec_ext in '' $ac_executable_extensions; do
12365 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12366 ac_cv_prog_LEX="$ac_prog"
12367 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12368 break 2
12370 done
12371 done
12372 IFS=$as_save_IFS
12376 LEX=$ac_cv_prog_LEX
12377 if test -n "$LEX"; then
12378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LEX" >&5
12379 $as_echo "$LEX" >&6; }
12380 else
12381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12382 $as_echo "no" >&6; }
12386 test -n "$LEX" && break
12387 done
12388 test -n "$LEX" || LEX=":"
12390 if test "x$LEX" != "x:"; then
12391 cat >conftest.l <<_ACEOF
12393 a { ECHO; }
12394 b { REJECT; }
12395 c { yymore (); }
12396 d { yyless (1); }
12397 e { yyless (input () != 0); }
12398 f { unput (yytext[0]); }
12399 . { BEGIN INITIAL; }
12401 #ifdef YYTEXT_POINTER
12402 extern char *yytext;
12403 #endif
12405 main (void)
12407 return ! yylex () + ! yywrap ();
12409 _ACEOF
12410 { { ac_try="$LEX conftest.l"
12411 case "(($ac_try" in
12412 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12413 *) ac_try_echo=$ac_try;;
12414 esac
12415 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
12416 $as_echo "$ac_try_echo"; } >&5
12417 (eval "$LEX conftest.l") 2>&5
12418 ac_status=$?
12419 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12420 test $ac_status = 0; }
12421 { $as_echo "$as_me:${as_lineno-$LINENO}: checking lex output file root" >&5
12422 $as_echo_n "checking lex output file root... " >&6; }
12423 if test "${ac_cv_prog_lex_root+set}" = set; then :
12424 $as_echo_n "(cached) " >&6
12425 else
12427 if test -f lex.yy.c; then
12428 ac_cv_prog_lex_root=lex.yy
12429 elif test -f lexyy.c; then
12430 ac_cv_prog_lex_root=lexyy
12431 else
12432 as_fn_error "cannot find output from $LEX; giving up" "$LINENO" 5
12435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_root" >&5
12436 $as_echo "$ac_cv_prog_lex_root" >&6; }
12437 LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
12439 if test -z "${LEXLIB+set}"; then
12440 { $as_echo "$as_me:${as_lineno-$LINENO}: checking lex library" >&5
12441 $as_echo_n "checking lex library... " >&6; }
12442 if test "${ac_cv_lib_lex+set}" = set; then :
12443 $as_echo_n "(cached) " >&6
12444 else
12446 ac_save_LIBS=$LIBS
12447 ac_cv_lib_lex='none needed'
12448 for ac_lib in '' -lfl -ll; do
12449 LIBS="$ac_lib $ac_save_LIBS"
12450 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12451 /* end confdefs.h. */
12452 `cat $LEX_OUTPUT_ROOT.c`
12453 _ACEOF
12454 if ac_fn_c_try_link "$LINENO"; then :
12455 ac_cv_lib_lex=$ac_lib
12457 rm -f core conftest.err conftest.$ac_objext \
12458 conftest$ac_exeext conftest.$ac_ext
12459 test "$ac_cv_lib_lex" != 'none needed' && break
12460 done
12461 LIBS=$ac_save_LIBS
12464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lex" >&5
12465 $as_echo "$ac_cv_lib_lex" >&6; }
12466 test "$ac_cv_lib_lex" != 'none needed' && LEXLIB=$ac_cv_lib_lex
12470 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether yytext is a pointer" >&5
12471 $as_echo_n "checking whether yytext is a pointer... " >&6; }
12472 if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then :
12473 $as_echo_n "(cached) " >&6
12474 else
12475 # POSIX says lex can declare yytext either as a pointer or an array; the
12476 # default is implementation-dependent. Figure out which it is, since
12477 # not all implementations provide the %pointer and %array declarations.
12478 ac_cv_prog_lex_yytext_pointer=no
12479 ac_save_LIBS=$LIBS
12480 LIBS="$LEXLIB $ac_save_LIBS"
12481 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12482 /* end confdefs.h. */
12483 #define YYTEXT_POINTER 1
12484 `cat $LEX_OUTPUT_ROOT.c`
12485 _ACEOF
12486 if ac_fn_c_try_link "$LINENO"; then :
12487 ac_cv_prog_lex_yytext_pointer=yes
12489 rm -f core conftest.err conftest.$ac_objext \
12490 conftest$ac_exeext conftest.$ac_ext
12491 LIBS=$ac_save_LIBS
12494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_yytext_pointer" >&5
12495 $as_echo "$ac_cv_prog_lex_yytext_pointer" >&6; }
12496 if test $ac_cv_prog_lex_yytext_pointer = yes; then
12498 $as_echo "#define YYTEXT_POINTER 1" >>confdefs.h
12501 rm -f conftest.l $LEX_OUTPUT_ROOT.c
12504 if test "$LEX" = :; then
12505 LEX=${am_missing_run}flex
12509 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
12510 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
12511 # Check whether --enable-maintainer-mode was given.
12512 if test "${enable_maintainer_mode+set}" = set; then :
12513 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
12514 else
12515 USE_MAINTAINER_MODE=no
12518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
12519 $as_echo "$USE_MAINTAINER_MODE" >&6; }
12520 if test $USE_MAINTAINER_MODE = yes; then
12521 MAINTAINER_MODE_TRUE=
12522 MAINTAINER_MODE_FALSE='#'
12523 else
12524 MAINTAINER_MODE_TRUE='#'
12525 MAINTAINER_MODE_FALSE=
12528 MAINT=$MAINTAINER_MODE_TRUE
12531 if false; then
12532 GENINSRC_NEVER_TRUE=
12533 GENINSRC_NEVER_FALSE='#'
12534 else
12535 GENINSRC_NEVER_TRUE='#'
12536 GENINSRC_NEVER_FALSE=
12539 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to compare bootstrapped objects" >&5
12540 $as_echo_n "checking how to compare bootstrapped objects... " >&6; }
12541 if test "${gcc_cv_prog_cmp_skip+set}" = set; then :
12542 $as_echo_n "(cached) " >&6
12543 else
12544 echo abfoo >t1
12545 echo cdfoo >t2
12546 gcc_cv_prog_cmp_skip='tail +16c $$f1 > tmp-foo1; tail +16c $$f2 > tmp-foo2; cmp tmp-foo1 tmp-foo2'
12547 if cmp t1 t2 2 2 > /dev/null 2>&1; then
12548 if cmp t1 t2 1 1 > /dev/null 2>&1; then
12550 else
12551 gcc_cv_prog_cmp_skip='cmp $$f1 $$f2 16 16'
12554 if cmp --ignore-initial=2 t1 t2 > /dev/null 2>&1; then
12555 if cmp --ignore-initial=1 t1 t2 > /dev/null 2>&1; then
12557 else
12558 gcc_cv_prog_cmp_skip='cmp --ignore-initial=16 $$f1 $$f2'
12561 rm t1 t2
12564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_cmp_skip" >&5
12565 $as_echo "$gcc_cv_prog_cmp_skip" >&6; }
12566 do_compare="$gcc_cv_prog_cmp_skip"
12570 . ${srcdir}/configure.host
12577 for ac_header in string.h strings.h stdlib.h unistd.h elf-hints.h limits.h sys/param.h
12578 do :
12579 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
12580 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
12581 eval as_val=\$$as_ac_Header
12582 if test "x$as_val" = x""yes; then :
12583 cat >>confdefs.h <<_ACEOF
12584 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
12585 _ACEOF
12589 done
12591 for ac_func in glob mkstemp realpath sbrk waitpid
12592 do :
12593 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
12594 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
12595 eval as_val=\$$as_ac_var
12596 if test "x$as_val" = x""yes; then :
12597 cat >>confdefs.h <<_ACEOF
12598 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
12599 _ACEOF
12602 done
12604 ac_header_dirent=no
12605 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
12606 as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
12607 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
12608 $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
12609 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then :
12610 $as_echo_n "(cached) " >&6
12611 else
12612 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12613 /* end confdefs.h. */
12614 #include <sys/types.h>
12615 #include <$ac_hdr>
12618 main ()
12620 if ((DIR *) 0)
12621 return 0;
12623 return 0;
12625 _ACEOF
12626 if ac_fn_c_try_compile "$LINENO"; then :
12627 eval "$as_ac_Header=yes"
12628 else
12629 eval "$as_ac_Header=no"
12631 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12633 eval ac_res=\$$as_ac_Header
12634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
12635 $as_echo "$ac_res" >&6; }
12636 eval as_val=\$$as_ac_Header
12637 if test "x$as_val" = x""yes; then :
12638 cat >>confdefs.h <<_ACEOF
12639 #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
12640 _ACEOF
12642 ac_header_dirent=$ac_hdr; break
12645 done
12646 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
12647 if test $ac_header_dirent = dirent.h; then
12648 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
12649 $as_echo_n "checking for library containing opendir... " >&6; }
12650 if test "${ac_cv_search_opendir+set}" = set; then :
12651 $as_echo_n "(cached) " >&6
12652 else
12653 ac_func_search_save_LIBS=$LIBS
12654 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12655 /* end confdefs.h. */
12657 /* Override any GCC internal prototype to avoid an error.
12658 Use char because int might match the return type of a GCC
12659 builtin and then its argument prototype would still apply. */
12660 #ifdef __cplusplus
12661 extern "C"
12662 #endif
12663 char opendir ();
12665 main ()
12667 return opendir ();
12669 return 0;
12671 _ACEOF
12672 for ac_lib in '' dir; do
12673 if test -z "$ac_lib"; then
12674 ac_res="none required"
12675 else
12676 ac_res=-l$ac_lib
12677 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12679 if ac_fn_c_try_link "$LINENO"; then :
12680 ac_cv_search_opendir=$ac_res
12682 rm -f core conftest.err conftest.$ac_objext \
12683 conftest$ac_exeext
12684 if test "${ac_cv_search_opendir+set}" = set; then :
12685 break
12687 done
12688 if test "${ac_cv_search_opendir+set}" = set; then :
12690 else
12691 ac_cv_search_opendir=no
12693 rm conftest.$ac_ext
12694 LIBS=$ac_func_search_save_LIBS
12696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
12697 $as_echo "$ac_cv_search_opendir" >&6; }
12698 ac_res=$ac_cv_search_opendir
12699 if test "$ac_res" != no; then :
12700 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12704 else
12705 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
12706 $as_echo_n "checking for library containing opendir... " >&6; }
12707 if test "${ac_cv_search_opendir+set}" = set; then :
12708 $as_echo_n "(cached) " >&6
12709 else
12710 ac_func_search_save_LIBS=$LIBS
12711 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12712 /* end confdefs.h. */
12714 /* Override any GCC internal prototype to avoid an error.
12715 Use char because int might match the return type of a GCC
12716 builtin and then its argument prototype would still apply. */
12717 #ifdef __cplusplus
12718 extern "C"
12719 #endif
12720 char opendir ();
12722 main ()
12724 return opendir ();
12726 return 0;
12728 _ACEOF
12729 for ac_lib in '' x; do
12730 if test -z "$ac_lib"; then
12731 ac_res="none required"
12732 else
12733 ac_res=-l$ac_lib
12734 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12736 if ac_fn_c_try_link "$LINENO"; then :
12737 ac_cv_search_opendir=$ac_res
12739 rm -f core conftest.err conftest.$ac_objext \
12740 conftest$ac_exeext
12741 if test "${ac_cv_search_opendir+set}" = set; then :
12742 break
12744 done
12745 if test "${ac_cv_search_opendir+set}" = set; then :
12747 else
12748 ac_cv_search_opendir=no
12750 rm conftest.$ac_ext
12751 LIBS=$ac_func_search_save_LIBS
12753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
12754 $as_echo "$ac_cv_search_opendir" >&6; }
12755 ac_res=$ac_cv_search_opendir
12756 if test "$ac_res" != no; then :
12757 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12764 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a known getopt prototype in unistd.h" >&5
12765 $as_echo_n "checking for a known getopt prototype in unistd.h... " >&6; }
12766 if test "${ld_cv_decl_getopt_unistd_h+set}" = set; then :
12767 $as_echo_n "(cached) " >&6
12768 else
12769 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12770 /* end confdefs.h. */
12771 #include <unistd.h>
12773 main ()
12775 extern int getopt (int, char *const*, const char *);
12777 return 0;
12779 _ACEOF
12780 if ac_fn_c_try_compile "$LINENO"; then :
12781 ld_cv_decl_getopt_unistd_h=yes
12782 else
12783 ld_cv_decl_getopt_unistd_h=no
12785 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_cv_decl_getopt_unistd_h" >&5
12789 $as_echo "$ld_cv_decl_getopt_unistd_h" >&6; }
12790 if test $ld_cv_decl_getopt_unistd_h = yes; then
12792 $as_echo "#define HAVE_DECL_GETOPT 1" >>confdefs.h
12797 case "${host}" in
12798 *-*-msdos* | *-*-go32* | *-*-mingw32* | *-*-cygwin* | *-*-windows*)
12800 $as_echo "#define USE_BINARY_FOPEN 1" >>confdefs.h
12802 esac
12804 ac_fn_c_check_decl "$LINENO" "strstr" "ac_cv_have_decl_strstr" "$ac_includes_default"
12805 if test "x$ac_cv_have_decl_strstr" = x""yes; then :
12806 ac_have_decl=1
12807 else
12808 ac_have_decl=0
12811 cat >>confdefs.h <<_ACEOF
12812 #define HAVE_DECL_STRSTR $ac_have_decl
12813 _ACEOF
12814 ac_fn_c_check_decl "$LINENO" "free" "ac_cv_have_decl_free" "$ac_includes_default"
12815 if test "x$ac_cv_have_decl_free" = x""yes; then :
12816 ac_have_decl=1
12817 else
12818 ac_have_decl=0
12821 cat >>confdefs.h <<_ACEOF
12822 #define HAVE_DECL_FREE $ac_have_decl
12823 _ACEOF
12824 ac_fn_c_check_decl "$LINENO" "sbrk" "ac_cv_have_decl_sbrk" "$ac_includes_default"
12825 if test "x$ac_cv_have_decl_sbrk" = x""yes; then :
12826 ac_have_decl=1
12827 else
12828 ac_have_decl=0
12831 cat >>confdefs.h <<_ACEOF
12832 #define HAVE_DECL_SBRK $ac_have_decl
12833 _ACEOF
12834 ac_fn_c_check_decl "$LINENO" "getenv" "ac_cv_have_decl_getenv" "$ac_includes_default"
12835 if test "x$ac_cv_have_decl_getenv" = x""yes; then :
12836 ac_have_decl=1
12837 else
12838 ac_have_decl=0
12841 cat >>confdefs.h <<_ACEOF
12842 #define HAVE_DECL_GETENV $ac_have_decl
12843 _ACEOF
12844 ac_fn_c_check_decl "$LINENO" "environ" "ac_cv_have_decl_environ" "$ac_includes_default"
12845 if test "x$ac_cv_have_decl_environ" = x""yes; then :
12846 ac_have_decl=1
12847 else
12848 ac_have_decl=0
12851 cat >>confdefs.h <<_ACEOF
12852 #define HAVE_DECL_ENVIRON $ac_have_decl
12853 _ACEOF
12856 # Link in zlib if we can. This is needed only for the bootstrap tests
12857 # right now, since those tests use libbfd, which depends on zlib.
12858 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing zlibVersion" >&5
12859 $as_echo_n "checking for library containing zlibVersion... " >&6; }
12860 if test "${ac_cv_search_zlibVersion+set}" = set; then :
12861 $as_echo_n "(cached) " >&6
12862 else
12863 ac_func_search_save_LIBS=$LIBS
12864 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12865 /* end confdefs.h. */
12867 /* Override any GCC internal prototype to avoid an error.
12868 Use char because int might match the return type of a GCC
12869 builtin and then its argument prototype would still apply. */
12870 #ifdef __cplusplus
12871 extern "C"
12872 #endif
12873 char zlibVersion ();
12875 main ()
12877 return zlibVersion ();
12879 return 0;
12881 _ACEOF
12882 for ac_lib in '' z; do
12883 if test -z "$ac_lib"; then
12884 ac_res="none required"
12885 else
12886 ac_res=-l$ac_lib
12887 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12889 if ac_fn_c_try_link "$LINENO"; then :
12890 ac_cv_search_zlibVersion=$ac_res
12892 rm -f core conftest.err conftest.$ac_objext \
12893 conftest$ac_exeext
12894 if test "${ac_cv_search_zlibVersion+set}" = set; then :
12895 break
12897 done
12898 if test "${ac_cv_search_zlibVersion+set}" = set; then :
12900 else
12901 ac_cv_search_zlibVersion=no
12903 rm conftest.$ac_ext
12904 LIBS=$ac_func_search_save_LIBS
12906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_zlibVersion" >&5
12907 $as_echo "$ac_cv_search_zlibVersion" >&6; }
12908 ac_res=$ac_cv_search_zlibVersion
12909 if test "$ac_res" != no; then :
12910 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12911 for ac_header in zlib.h
12912 do :
12913 ac_fn_c_check_header_mongrel "$LINENO" "zlib.h" "ac_cv_header_zlib_h" "$ac_includes_default"
12914 if test "x$ac_cv_header_zlib_h" = x""yes; then :
12915 cat >>confdefs.h <<_ACEOF
12916 #define HAVE_ZLIB_H 1
12917 _ACEOF
12921 done
12926 # When converting linker scripts into strings for use in emulation
12927 # files, use astring.sed if the compiler supports ANSI string
12928 # concatenation, or ostring.sed otherwise. This is to support the
12929 # broken Microsoft MSVC compiler, which limits the length of string
12930 # constants, while still supporting pre-ANSI compilers which do not
12931 # support string concatenation.
12932 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ANSI C string concatenation works" >&5
12933 $as_echo_n "checking whether ANSI C string concatenation works... " >&6; }
12934 if test "${ld_cv_string_concatenation+set}" = set; then :
12935 $as_echo_n "(cached) " >&6
12936 else
12937 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12938 /* end confdefs.h. */
12941 main ()
12943 char *a = "a" "a";
12945 return 0;
12947 _ACEOF
12948 if ac_fn_c_try_compile "$LINENO"; then :
12949 ld_cv_string_concatenation=yes
12950 else
12951 ld_cv_string_concatenation=no
12953 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_cv_string_concatenation" >&5
12957 $as_echo "$ld_cv_string_concatenation" >&6; }
12958 if test "$ld_cv_string_concatenation" = "yes"; then
12959 STRINGIFY=astring.sed
12960 else
12961 STRINGIFY=ostring.sed
12965 # target-specific stuff:
12967 all_targets=
12968 EMUL=
12969 all_emuls=
12970 all_emul_extras=
12971 all_libpath=
12973 rm -f tdirs
12975 for targ_alias in `echo $target_alias $enable_targets | sed 's/,/ /g'`
12977 if test "$targ_alias" = "all"; then
12978 all_targets=true
12979 else
12980 # Canonicalize the secondary target names.
12981 result=`$ac_config_sub $targ_alias 2>/dev/null`
12982 if test -n "$result"; then
12983 targ=$result
12984 else
12985 targ=$targ_alias
12988 . ${srcdir}/configure.tgt
12990 if test "$targ" = "$target"; then
12991 EMUL=$targ_emul
12994 if test x${want64} = xfalse; then
12995 . ${srcdir}/../bfd/config.bfd
12998 if test x${want64} = xtrue; then
12999 targ_extra_emuls="$targ_extra_emuls $targ64_extra_emuls"
13000 targ_extra_libpath="$targ_extra_libpath $targ64_extra_libpath"
13003 for i in $targ_emul $targ_extra_emuls $targ_extra_libpath; do
13004 case " $all_emuls " in
13005 *" e${i}.o "*) ;;
13007 all_emuls="$all_emuls e${i}.o"
13008 eval result=\$tdir_$i
13009 test -z "$result" && result=$targ_alias
13010 echo tdir_$i=$result >> tdirs
13012 esac
13013 done
13015 for i in $targ_emul $targ_extra_libpath; do
13016 case " $all_libpath " in
13017 *" ${i} "*) ;;
13019 if test -z "$all_libpath"; then
13020 all_libpath=${i}
13021 else
13022 all_libpath="$all_libpath ${i}"
13025 esac
13026 done
13028 for i in $targ_extra_ofiles; do
13029 case " $all_emul_extras " in
13030 *" ${i} "*) ;;
13032 all_emul_extras="$all_emul_extras ${i}"
13034 esac
13035 done
13037 done
13041 TDIRS=tdirs
13044 if test x${all_targets} = xtrue; then
13045 if test x${want64} = xfalse; then
13046 # The cast to long int works around a bug in the HP C Compiler
13047 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13048 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13049 # This bug is HP SR number 8606223364.
13050 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
13051 $as_echo_n "checking size of long... " >&6; }
13052 if test "${ac_cv_sizeof_long+set}" = set; then :
13053 $as_echo_n "(cached) " >&6
13054 else
13055 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then :
13057 else
13058 if test "$ac_cv_type_long" = yes; then
13059 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13060 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13061 { as_fn_set_status 77
13062 as_fn_error "cannot compute sizeof (long)
13063 See \`config.log' for more details." "$LINENO" 5; }; }
13064 else
13065 ac_cv_sizeof_long=0
13070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
13071 $as_echo "$ac_cv_sizeof_long" >&6; }
13075 cat >>confdefs.h <<_ACEOF
13076 #define SIZEOF_LONG $ac_cv_sizeof_long
13077 _ACEOF
13080 if test "x${ac_cv_sizeof_long}" = "x8"; then
13081 want64=true
13084 if test x${want64} = xtrue; then
13085 EMULATION_OFILES='$(ALL_EMULATIONS) $(ALL_64_EMULATIONS)'
13086 else
13087 EMULATION_OFILES='$(ALL_EMULATIONS)'
13089 EMUL_EXTRA_OFILES='$(ALL_EMUL_EXTRA_OFILES)'
13090 else
13091 EMULATION_OFILES=$all_emuls
13092 EMUL_EXTRA_OFILES=$all_emul_extras
13098 EMULATION_LIBPATH=$all_libpath
13101 if test x${enable_static} = xno; then
13102 TESTBFDLIB="--rpath ../bfd/.libs ../bfd/.libs/libbfd.so"
13103 else
13104 TESTBFDLIB="../bfd/.libs/libbfd.a"
13108 target_vendor=${target_vendor=$host_vendor}
13109 case "$target_vendor" in
13110 hp) EXTRA_SHLIB_EXTENSION=".sl" ;;
13111 *) EXTRA_SHLIB_EXTENSION= ;;
13112 esac
13114 case "$target_os" in
13115 lynxos) EXTRA_SHLIB_EXTENSION=".a" ;;
13116 esac
13118 if test x${EXTRA_SHLIB_EXTENSION} != x ; then
13120 cat >>confdefs.h <<_ACEOF
13121 #define EXTRA_SHLIB_EXTENSION "$EXTRA_SHLIB_EXTENSION"
13122 _ACEOF
13131 ac_config_files="$ac_config_files Makefile po/Makefile.in:po/Make-in"
13133 cat >confcache <<\_ACEOF
13134 # This file is a shell script that caches the results of configure
13135 # tests run on this system so they can be shared between configure
13136 # scripts and configure runs, see configure's option --config-cache.
13137 # It is not useful on other systems. If it contains results you don't
13138 # want to keep, you may remove or edit it.
13140 # config.status only pays attention to the cache file if you give it
13141 # the --recheck option to rerun configure.
13143 # `ac_cv_env_foo' variables (set or unset) will be overridden when
13144 # loading this file, other *unset* `ac_cv_foo' will be assigned the
13145 # following values.
13147 _ACEOF
13149 # The following way of writing the cache mishandles newlines in values,
13150 # but we know of no workaround that is simple, portable, and efficient.
13151 # So, we kill variables containing newlines.
13152 # Ultrix sh set writes to stderr and can't be redirected directly,
13153 # and sets the high bit in the cache file unless we assign to the vars.
13155 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
13156 eval ac_val=\$$ac_var
13157 case $ac_val in #(
13158 *${as_nl}*)
13159 case $ac_var in #(
13160 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
13161 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
13162 esac
13163 case $ac_var in #(
13164 _ | IFS | as_nl) ;; #(
13165 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
13166 *) { eval $ac_var=; unset $ac_var;} ;;
13167 esac ;;
13168 esac
13169 done
13171 (set) 2>&1 |
13172 case $as_nl`(ac_space=' '; set) 2>&1` in #(
13173 *${as_nl}ac_space=\ *)
13174 # `set' does not quote correctly, so add quotes: double-quote
13175 # substitution turns \\\\ into \\, and sed turns \\ into \.
13176 sed -n \
13177 "s/'/'\\\\''/g;
13178 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
13179 ;; #(
13181 # `set' quotes correctly as required by POSIX, so do not add quotes.
13182 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
13184 esac |
13185 sort
13187 sed '
13188 /^ac_cv_env_/b end
13189 t clear
13190 :clear
13191 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
13192 t end
13193 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
13194 :end' >>confcache
13195 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
13196 if test -w "$cache_file"; then
13197 test "x$cache_file" != "x/dev/null" &&
13198 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
13199 $as_echo "$as_me: updating cache $cache_file" >&6;}
13200 cat confcache >$cache_file
13201 else
13202 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
13203 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
13206 rm -f confcache
13208 test "x$prefix" = xNONE && prefix=$ac_default_prefix
13209 # Let make expand exec_prefix.
13210 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
13212 DEFS=-DHAVE_CONFIG_H
13214 ac_libobjs=
13215 ac_ltlibobjs=
13216 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
13217 # 1. Remove the extension, and $U if already installed.
13218 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
13219 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
13220 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
13221 # will be set to the directory where LIBOBJS objects are built.
13222 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
13223 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
13224 done
13225 LIBOBJS=$ac_libobjs
13227 LTLIBOBJS=$ac_ltlibobjs
13230 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
13231 as_fn_error "conditional \"AMDEP\" was never defined.
13232 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13234 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
13235 as_fn_error "conditional \"am__fastdepCC\" was never defined.
13236 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13238 if test -n "$EXEEXT"; then
13239 am__EXEEXT_TRUE=
13240 am__EXEEXT_FALSE='#'
13241 else
13242 am__EXEEXT_TRUE='#'
13243 am__EXEEXT_FALSE=
13246 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
13247 as_fn_error "conditional \"MAINTAINER_MODE\" was never defined.
13248 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13250 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
13251 as_fn_error "conditional \"MAINTAINER_MODE\" was never defined.
13252 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13254 if test -z "${GENINSRC_NEVER_TRUE}" && test -z "${GENINSRC_NEVER_FALSE}"; then
13255 as_fn_error "conditional \"GENINSRC_NEVER\" was never defined.
13256 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13259 : ${CONFIG_STATUS=./config.status}
13260 ac_write_fail=0
13261 ac_clean_files_save=$ac_clean_files
13262 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
13263 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
13264 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
13265 as_write_fail=0
13266 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
13267 #! $SHELL
13268 # Generated by $as_me.
13269 # Run this file to recreate the current configuration.
13270 # Compiler output produced by configure, useful for debugging
13271 # configure, is in config.log if it exists.
13273 debug=false
13274 ac_cs_recheck=false
13275 ac_cs_silent=false
13277 SHELL=\${CONFIG_SHELL-$SHELL}
13278 export SHELL
13279 _ASEOF
13280 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
13281 ## -------------------- ##
13282 ## M4sh Initialization. ##
13283 ## -------------------- ##
13285 # Be more Bourne compatible
13286 DUALCASE=1; export DUALCASE # for MKS sh
13287 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
13288 emulate sh
13289 NULLCMD=:
13290 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
13291 # is contrary to our usage. Disable this feature.
13292 alias -g '${1+"$@"}'='"$@"'
13293 setopt NO_GLOB_SUBST
13294 else
13295 case `(set -o) 2>/dev/null` in #(
13296 *posix*) :
13297 set -o posix ;; #(
13298 *) :
13300 esac
13304 as_nl='
13306 export as_nl
13307 # Printing a long string crashes Solaris 7 /usr/bin/printf.
13308 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
13309 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
13310 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
13311 # Prefer a ksh shell builtin over an external printf program on Solaris,
13312 # but without wasting forks for bash or zsh.
13313 if test -z "$BASH_VERSION$ZSH_VERSION" \
13314 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
13315 as_echo='print -r --'
13316 as_echo_n='print -rn --'
13317 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
13318 as_echo='printf %s\n'
13319 as_echo_n='printf %s'
13320 else
13321 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
13322 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
13323 as_echo_n='/usr/ucb/echo -n'
13324 else
13325 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
13326 as_echo_n_body='eval
13327 arg=$1;
13328 case $arg in #(
13329 *"$as_nl"*)
13330 expr "X$arg" : "X\\(.*\\)$as_nl";
13331 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
13332 esac;
13333 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
13335 export as_echo_n_body
13336 as_echo_n='sh -c $as_echo_n_body as_echo'
13338 export as_echo_body
13339 as_echo='sh -c $as_echo_body as_echo'
13342 # The user is always right.
13343 if test "${PATH_SEPARATOR+set}" != set; then
13344 PATH_SEPARATOR=:
13345 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
13346 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
13347 PATH_SEPARATOR=';'
13352 # IFS
13353 # We need space, tab and new line, in precisely that order. Quoting is
13354 # there to prevent editors from complaining about space-tab.
13355 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
13356 # splitting by setting IFS to empty value.)
13357 IFS=" "" $as_nl"
13359 # Find who we are. Look in the path if we contain no directory separator.
13360 case $0 in #((
13361 *[\\/]* ) as_myself=$0 ;;
13362 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13363 for as_dir in $PATH
13365 IFS=$as_save_IFS
13366 test -z "$as_dir" && as_dir=.
13367 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
13368 done
13369 IFS=$as_save_IFS
13372 esac
13373 # We did not find ourselves, most probably we were run as `sh COMMAND'
13374 # in which case we are not to be found in the path.
13375 if test "x$as_myself" = x; then
13376 as_myself=$0
13378 if test ! -f "$as_myself"; then
13379 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
13380 exit 1
13383 # Unset variables that we do not need and which cause bugs (e.g. in
13384 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
13385 # suppresses any "Segmentation fault" message there. '((' could
13386 # trigger a bug in pdksh 5.2.14.
13387 for as_var in BASH_ENV ENV MAIL MAILPATH
13388 do eval test x\${$as_var+set} = xset \
13389 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
13390 done
13391 PS1='$ '
13392 PS2='> '
13393 PS4='+ '
13395 # NLS nuisances.
13396 LC_ALL=C
13397 export LC_ALL
13398 LANGUAGE=C
13399 export LANGUAGE
13401 # CDPATH.
13402 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
13405 # as_fn_error ERROR [LINENO LOG_FD]
13406 # ---------------------------------
13407 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
13408 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
13409 # script with status $?, using 1 if that was 0.
13410 as_fn_error ()
13412 as_status=$?; test $as_status -eq 0 && as_status=1
13413 if test "$3"; then
13414 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
13415 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
13417 $as_echo "$as_me: error: $1" >&2
13418 as_fn_exit $as_status
13419 } # as_fn_error
13422 # as_fn_set_status STATUS
13423 # -----------------------
13424 # Set $? to STATUS, without forking.
13425 as_fn_set_status ()
13427 return $1
13428 } # as_fn_set_status
13430 # as_fn_exit STATUS
13431 # -----------------
13432 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
13433 as_fn_exit ()
13435 set +e
13436 as_fn_set_status $1
13437 exit $1
13438 } # as_fn_exit
13440 # as_fn_unset VAR
13441 # ---------------
13442 # Portably unset VAR.
13443 as_fn_unset ()
13445 { eval $1=; unset $1;}
13447 as_unset=as_fn_unset
13448 # as_fn_append VAR VALUE
13449 # ----------------------
13450 # Append the text in VALUE to the end of the definition contained in VAR. Take
13451 # advantage of any shell optimizations that allow amortized linear growth over
13452 # repeated appends, instead of the typical quadratic growth present in naive
13453 # implementations.
13454 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
13455 eval 'as_fn_append ()
13457 eval $1+=\$2
13459 else
13460 as_fn_append ()
13462 eval $1=\$$1\$2
13464 fi # as_fn_append
13466 # as_fn_arith ARG...
13467 # ------------------
13468 # Perform arithmetic evaluation on the ARGs, and store the result in the
13469 # global $as_val. Take advantage of shells that can avoid forks. The arguments
13470 # must be portable across $(()) and expr.
13471 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
13472 eval 'as_fn_arith ()
13474 as_val=$(( $* ))
13476 else
13477 as_fn_arith ()
13479 as_val=`expr "$@" || test $? -eq 1`
13481 fi # as_fn_arith
13484 if expr a : '\(a\)' >/dev/null 2>&1 &&
13485 test "X`expr 00001 : '.*\(...\)'`" = X001; then
13486 as_expr=expr
13487 else
13488 as_expr=false
13491 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
13492 as_basename=basename
13493 else
13494 as_basename=false
13497 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
13498 as_dirname=dirname
13499 else
13500 as_dirname=false
13503 as_me=`$as_basename -- "$0" ||
13504 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
13505 X"$0" : 'X\(//\)$' \| \
13506 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
13507 $as_echo X/"$0" |
13508 sed '/^.*\/\([^/][^/]*\)\/*$/{
13509 s//\1/
13512 /^X\/\(\/\/\)$/{
13513 s//\1/
13516 /^X\/\(\/\).*/{
13517 s//\1/
13520 s/.*/./; q'`
13522 # Avoid depending upon Character Ranges.
13523 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
13524 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
13525 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
13526 as_cr_digits='0123456789'
13527 as_cr_alnum=$as_cr_Letters$as_cr_digits
13529 ECHO_C= ECHO_N= ECHO_T=
13530 case `echo -n x` in #(((((
13531 -n*)
13532 case `echo 'xy\c'` in
13533 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
13534 xy) ECHO_C='\c';;
13535 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
13536 ECHO_T=' ';;
13537 esac;;
13539 ECHO_N='-n';;
13540 esac
13542 rm -f conf$$ conf$$.exe conf$$.file
13543 if test -d conf$$.dir; then
13544 rm -f conf$$.dir/conf$$.file
13545 else
13546 rm -f conf$$.dir
13547 mkdir conf$$.dir 2>/dev/null
13549 if (echo >conf$$.file) 2>/dev/null; then
13550 if ln -s conf$$.file conf$$ 2>/dev/null; then
13551 as_ln_s='ln -s'
13552 # ... but there are two gotchas:
13553 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
13554 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
13555 # In both cases, we have to default to `cp -p'.
13556 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
13557 as_ln_s='cp -p'
13558 elif ln conf$$.file conf$$ 2>/dev/null; then
13559 as_ln_s=ln
13560 else
13561 as_ln_s='cp -p'
13563 else
13564 as_ln_s='cp -p'
13566 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
13567 rmdir conf$$.dir 2>/dev/null
13570 # as_fn_mkdir_p
13571 # -------------
13572 # Create "$as_dir" as a directory, including parents if necessary.
13573 as_fn_mkdir_p ()
13576 case $as_dir in #(
13577 -*) as_dir=./$as_dir;;
13578 esac
13579 test -d "$as_dir" || eval $as_mkdir_p || {
13580 as_dirs=
13581 while :; do
13582 case $as_dir in #(
13583 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
13584 *) as_qdir=$as_dir;;
13585 esac
13586 as_dirs="'$as_qdir' $as_dirs"
13587 as_dir=`$as_dirname -- "$as_dir" ||
13588 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13589 X"$as_dir" : 'X\(//\)[^/]' \| \
13590 X"$as_dir" : 'X\(//\)$' \| \
13591 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
13592 $as_echo X"$as_dir" |
13593 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13594 s//\1/
13597 /^X\(\/\/\)[^/].*/{
13598 s//\1/
13601 /^X\(\/\/\)$/{
13602 s//\1/
13605 /^X\(\/\).*/{
13606 s//\1/
13609 s/.*/./; q'`
13610 test -d "$as_dir" && break
13611 done
13612 test -z "$as_dirs" || eval "mkdir $as_dirs"
13613 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
13616 } # as_fn_mkdir_p
13617 if mkdir -p . 2>/dev/null; then
13618 as_mkdir_p='mkdir -p "$as_dir"'
13619 else
13620 test -d ./-p && rmdir ./-p
13621 as_mkdir_p=false
13624 if test -x / >/dev/null 2>&1; then
13625 as_test_x='test -x'
13626 else
13627 if ls -dL / >/dev/null 2>&1; then
13628 as_ls_L_option=L
13629 else
13630 as_ls_L_option=
13632 as_test_x='
13633 eval sh -c '\''
13634 if test -d "$1"; then
13635 test -d "$1/.";
13636 else
13637 case $1 in #(
13638 -*)set "./$1";;
13639 esac;
13640 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
13641 ???[sx]*):;;*)false;;esac;fi
13642 '\'' sh
13645 as_executable_p=$as_test_x
13647 # Sed expression to map a string onto a valid CPP name.
13648 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
13650 # Sed expression to map a string onto a valid variable name.
13651 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
13654 exec 6>&1
13655 ## ----------------------------------- ##
13656 ## Main body of $CONFIG_STATUS script. ##
13657 ## ----------------------------------- ##
13658 _ASEOF
13659 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
13661 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13662 # Save the log message, to keep $0 and so on meaningful, and to
13663 # report actual input values of CONFIG_FILES etc. instead of their
13664 # values after options handling.
13665 ac_log="
13666 This file was extended by $as_me, which was
13667 generated by GNU Autoconf 2.64. Invocation command line was
13669 CONFIG_FILES = $CONFIG_FILES
13670 CONFIG_HEADERS = $CONFIG_HEADERS
13671 CONFIG_LINKS = $CONFIG_LINKS
13672 CONFIG_COMMANDS = $CONFIG_COMMANDS
13673 $ $0 $@
13675 on `(hostname || uname -n) 2>/dev/null | sed 1q`
13678 _ACEOF
13680 case $ac_config_files in *"
13681 "*) set x $ac_config_files; shift; ac_config_files=$*;;
13682 esac
13684 case $ac_config_headers in *"
13685 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
13686 esac
13689 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13690 # Files that config.status was made for.
13691 config_files="$ac_config_files"
13692 config_headers="$ac_config_headers"
13693 config_commands="$ac_config_commands"
13695 _ACEOF
13697 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13698 ac_cs_usage="\
13699 \`$as_me' instantiates files and other configuration actions
13700 from templates according to the current configuration. Unless the files
13701 and actions are specified as TAGs, all are instantiated by default.
13703 Usage: $0 [OPTION]... [TAG]...
13705 -h, --help print this help, then exit
13706 -V, --version print version number and configuration settings, then exit
13707 -q, --quiet, --silent
13708 do not print progress messages
13709 -d, --debug don't remove temporary files
13710 --recheck update $as_me by reconfiguring in the same conditions
13711 --file=FILE[:TEMPLATE]
13712 instantiate the configuration file FILE
13713 --header=FILE[:TEMPLATE]
13714 instantiate the configuration header FILE
13716 Configuration files:
13717 $config_files
13719 Configuration headers:
13720 $config_headers
13722 Configuration commands:
13723 $config_commands
13725 Report bugs to the package provider."
13727 _ACEOF
13728 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13729 ac_cs_version="\\
13730 config.status
13731 configured by $0, generated by GNU Autoconf 2.64,
13732 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
13734 Copyright (C) 2009 Free Software Foundation, Inc.
13735 This config.status script is free software; the Free Software Foundation
13736 gives unlimited permission to copy, distribute and modify it."
13738 ac_pwd='$ac_pwd'
13739 srcdir='$srcdir'
13740 INSTALL='$INSTALL'
13741 MKDIR_P='$MKDIR_P'
13742 AWK='$AWK'
13743 test -n "\$AWK" || AWK=awk
13744 _ACEOF
13746 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13747 # The default lists apply if the user does not specify any file.
13748 ac_need_defaults=:
13749 while test $# != 0
13751 case $1 in
13752 --*=*)
13753 ac_option=`expr "X$1" : 'X\([^=]*\)='`
13754 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
13755 ac_shift=:
13758 ac_option=$1
13759 ac_optarg=$2
13760 ac_shift=shift
13762 esac
13764 case $ac_option in
13765 # Handling of the options.
13766 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
13767 ac_cs_recheck=: ;;
13768 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
13769 $as_echo "$ac_cs_version"; exit ;;
13770 --debug | --debu | --deb | --de | --d | -d )
13771 debug=: ;;
13772 --file | --fil | --fi | --f )
13773 $ac_shift
13774 case $ac_optarg in
13775 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
13776 esac
13777 as_fn_append CONFIG_FILES " '$ac_optarg'"
13778 ac_need_defaults=false;;
13779 --header | --heade | --head | --hea )
13780 $ac_shift
13781 case $ac_optarg in
13782 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
13783 esac
13784 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
13785 ac_need_defaults=false;;
13786 --he | --h)
13787 # Conflict between --help and --header
13788 as_fn_error "ambiguous option: \`$1'
13789 Try \`$0 --help' for more information.";;
13790 --help | --hel | -h )
13791 $as_echo "$ac_cs_usage"; exit ;;
13792 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
13793 | -silent | --silent | --silen | --sile | --sil | --si | --s)
13794 ac_cs_silent=: ;;
13796 # This is an error.
13797 -*) as_fn_error "unrecognized option: \`$1'
13798 Try \`$0 --help' for more information." ;;
13800 *) as_fn_append ac_config_targets " $1"
13801 ac_need_defaults=false ;;
13803 esac
13804 shift
13805 done
13807 ac_configure_extra_args=
13809 if $ac_cs_silent; then
13810 exec 6>/dev/null
13811 ac_configure_extra_args="$ac_configure_extra_args --silent"
13814 _ACEOF
13815 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13816 if \$ac_cs_recheck; then
13817 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
13818 shift
13819 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
13820 CONFIG_SHELL='$SHELL'
13821 export CONFIG_SHELL
13822 exec "\$@"
13825 _ACEOF
13826 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13827 exec 5>>config.log
13829 echo
13830 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
13831 ## Running $as_me. ##
13832 _ASBOX
13833 $as_echo "$ac_log"
13834 } >&5
13836 _ACEOF
13837 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13839 # INIT-COMMANDS
13841 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
13844 # The HP-UX ksh and POSIX shell print the target directory to stdout
13845 # if CDPATH is set.
13846 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
13848 sed_quote_subst='$sed_quote_subst'
13849 double_quote_subst='$double_quote_subst'
13850 delay_variable_subst='$delay_variable_subst'
13851 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
13852 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
13853 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
13854 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
13855 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
13856 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
13857 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
13858 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
13859 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
13860 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
13861 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
13862 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
13863 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
13864 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
13865 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
13866 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
13867 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
13868 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
13869 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
13870 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
13871 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
13872 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
13873 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
13874 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
13875 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
13876 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
13877 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
13878 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
13879 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
13880 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
13881 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
13882 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
13883 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
13884 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
13885 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
13886 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
13887 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
13888 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
13889 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
13890 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
13891 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
13892 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
13893 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
13894 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
13895 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
13896 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
13897 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
13898 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
13899 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"`'
13900 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
13901 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
13902 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
13903 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
13904 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
13905 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
13906 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
13907 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
13908 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
13909 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
13910 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
13911 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
13912 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
13913 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
13914 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
13915 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
13916 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
13917 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
13918 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
13919 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
13920 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
13921 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
13922 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
13923 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
13924 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
13925 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
13926 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
13927 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
13928 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
13929 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
13930 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
13931 hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
13932 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
13933 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
13934 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
13935 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
13936 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
13937 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
13938 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
13939 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
13940 fix_srcfile_path='`$ECHO "$fix_srcfile_path" | $SED "$delay_single_quote_subst"`'
13941 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
13942 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
13943 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
13944 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
13945 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
13946 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
13947 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
13948 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
13949 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
13950 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
13951 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
13952 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
13953 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
13954 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
13955 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
13956 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
13957 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
13958 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
13959 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
13960 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
13961 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
13962 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
13963 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
13964 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
13965 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
13966 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
13967 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
13968 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
13969 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
13970 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
13972 LTCC='$LTCC'
13973 LTCFLAGS='$LTCFLAGS'
13974 compiler='$compiler_DEFAULT'
13976 # A function that is used when there is no print builtin or printf.
13977 func_fallback_echo ()
13979 eval 'cat <<_LTECHO_EOF
13981 _LTECHO_EOF'
13984 # Quote evaled strings.
13985 for var in SHELL \
13986 ECHO \
13987 SED \
13988 GREP \
13989 EGREP \
13990 FGREP \
13991 LD \
13992 NM \
13993 LN_S \
13994 lt_SP2NL \
13995 lt_NL2SP \
13996 reload_flag \
13997 OBJDUMP \
13998 deplibs_check_method \
13999 file_magic_cmd \
14000 AR \
14001 AR_FLAGS \
14002 STRIP \
14003 RANLIB \
14004 CC \
14005 CFLAGS \
14006 compiler \
14007 lt_cv_sys_global_symbol_pipe \
14008 lt_cv_sys_global_symbol_to_cdecl \
14009 lt_cv_sys_global_symbol_to_c_name_address \
14010 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
14011 lt_prog_compiler_no_builtin_flag \
14012 lt_prog_compiler_wl \
14013 lt_prog_compiler_pic \
14014 lt_prog_compiler_static \
14015 lt_cv_prog_compiler_c_o \
14016 need_locks \
14017 DSYMUTIL \
14018 NMEDIT \
14019 LIPO \
14020 OTOOL \
14021 OTOOL64 \
14022 shrext_cmds \
14023 export_dynamic_flag_spec \
14024 whole_archive_flag_spec \
14025 compiler_needs_object \
14026 with_gnu_ld \
14027 allow_undefined_flag \
14028 no_undefined_flag \
14029 hardcode_libdir_flag_spec \
14030 hardcode_libdir_flag_spec_ld \
14031 hardcode_libdir_separator \
14032 fix_srcfile_path \
14033 exclude_expsyms \
14034 include_expsyms \
14035 file_list_spec \
14036 variables_saved_for_relink \
14037 libname_spec \
14038 library_names_spec \
14039 soname_spec \
14040 install_override_mode \
14041 finish_eval \
14042 old_striplib \
14043 striplib; do
14044 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
14045 *[\\\\\\\`\\"\\\$]*)
14046 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
14049 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
14051 esac
14052 done
14054 # Double-quote double-evaled strings.
14055 for var in reload_cmds \
14056 old_postinstall_cmds \
14057 old_postuninstall_cmds \
14058 old_archive_cmds \
14059 extract_expsyms_cmds \
14060 old_archive_from_new_cmds \
14061 old_archive_from_expsyms_cmds \
14062 archive_cmds \
14063 archive_expsym_cmds \
14064 module_cmds \
14065 module_expsym_cmds \
14066 export_symbols_cmds \
14067 prelink_cmds \
14068 postinstall_cmds \
14069 postuninstall_cmds \
14070 finish_cmds \
14071 sys_lib_search_path_spec \
14072 sys_lib_dlsearch_path_spec; do
14073 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
14074 *[\\\\\\\`\\"\\\$]*)
14075 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
14078 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
14080 esac
14081 done
14083 ac_aux_dir='$ac_aux_dir'
14084 xsi_shell='$xsi_shell'
14085 lt_shell_append='$lt_shell_append'
14087 # See if we are running on zsh, and set the options which allow our
14088 # commands through without removal of \ escapes INIT.
14089 if test -n "\${ZSH_VERSION+set}" ; then
14090 setopt NO_GLOB_SUBST
14094 PACKAGE='$PACKAGE'
14095 VERSION='$VERSION'
14096 TIMESTAMP='$TIMESTAMP'
14097 RM='$RM'
14098 ofile='$ofile'
14102 # Capture the value of obsolete ALL_LINGUAS because we need it to compute
14103 # POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES, CATALOGS. But hide it
14104 # from automake.
14105 eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
14106 # Capture the value of LINGUAS because we need it to compute CATALOGS.
14107 LINGUAS="${LINGUAS-%UNSET%}"
14110 _ACEOF
14112 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14114 # Handling of arguments.
14115 for ac_config_target in $ac_config_targets
14117 case $ac_config_target in
14118 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
14119 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h:config.in" ;;
14120 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
14121 "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
14122 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
14123 "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in:po/Make-in" ;;
14125 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
14126 esac
14127 done
14130 # If the user did not use the arguments to specify the items to instantiate,
14131 # then the envvar interface is used. Set only those that are not.
14132 # We use the long form for the default assignment because of an extremely
14133 # bizarre bug on SunOS 4.1.3.
14134 if $ac_need_defaults; then
14135 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
14136 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
14137 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
14140 # Have a temporary directory for convenience. Make it in the build tree
14141 # simply because there is no reason against having it here, and in addition,
14142 # creating and moving files from /tmp can sometimes cause problems.
14143 # Hook for its removal unless debugging.
14144 # Note that there is a small window in which the directory will not be cleaned:
14145 # after its creation but before its name has been assigned to `$tmp'.
14146 $debug ||
14148 tmp=
14149 trap 'exit_status=$?
14150 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
14152 trap 'as_fn_exit 1' 1 2 13 15
14154 # Create a (secure) tmp directory for tmp files.
14157 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
14158 test -n "$tmp" && test -d "$tmp"
14159 } ||
14161 tmp=./conf$$-$RANDOM
14162 (umask 077 && mkdir "$tmp")
14163 } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
14165 # Set up the scripts for CONFIG_FILES section.
14166 # No need to generate them if there are no CONFIG_FILES.
14167 # This happens for instance with `./config.status config.h'.
14168 if test -n "$CONFIG_FILES"; then
14170 if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then
14171 ac_cs_awk_getline=:
14172 ac_cs_awk_pipe_init=
14173 ac_cs_awk_read_file='
14174 while ((getline aline < (F[key])) > 0)
14175 print(aline)
14176 close(F[key])'
14177 ac_cs_awk_pipe_fini=
14178 else
14179 ac_cs_awk_getline=false
14180 ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\""
14181 ac_cs_awk_read_file='
14182 print "|#_!!_#|"
14183 print "cat " F[key] " &&"
14184 '$ac_cs_awk_pipe_init
14185 # The final `:' finishes the AND list.
14186 ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }'
14188 ac_cr=`echo X | tr X '\015'`
14189 # On cygwin, bash can eat \r inside `` if the user requested igncr.
14190 # But we know of no other shell where ac_cr would be empty at this
14191 # point, so we can use a bashism as a fallback.
14192 if test "x$ac_cr" = x; then
14193 eval ac_cr=\$\'\\r\'
14195 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
14196 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
14197 ac_cs_awk_cr='\r'
14198 else
14199 ac_cs_awk_cr=$ac_cr
14202 echo 'BEGIN {' >"$tmp/subs1.awk" &&
14203 _ACEOF
14205 # Create commands to substitute file output variables.
14207 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
14208 echo 'cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&' &&
14209 echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' &&
14210 echo "_ACAWK" &&
14211 echo "_ACEOF"
14212 } >conf$$files.sh &&
14213 . ./conf$$files.sh ||
14214 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
14215 rm -f conf$$files.sh
14218 echo "cat >conf$$subs.awk <<_ACEOF" &&
14219 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
14220 echo "_ACEOF"
14221 } >conf$$subs.sh ||
14222 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
14223 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
14224 ac_delim='%!_!# '
14225 for ac_last_try in false false false false false :; do
14226 . ./conf$$subs.sh ||
14227 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
14229 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
14230 if test $ac_delim_n = $ac_delim_num; then
14231 break
14232 elif $ac_last_try; then
14233 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
14234 else
14235 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
14237 done
14238 rm -f conf$$subs.sh
14240 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14241 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
14242 _ACEOF
14243 sed -n '
14245 s/^/S["/; s/!.*/"]=/
14248 s/^[^!]*!//
14249 :repl
14250 t repl
14251 s/'"$ac_delim"'$//
14252 t delim
14255 s/\(.\{148\}\).*/\1/
14256 t more1
14257 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
14260 b repl
14261 :more1
14262 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
14265 s/.\{148\}//
14266 t nl
14267 :delim
14269 s/\(.\{148\}\).*/\1/
14270 t more2
14271 s/["\\]/\\&/g; s/^/"/; s/$/"/
14274 :more2
14275 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
14278 s/.\{148\}//
14279 t delim
14280 ' <conf$$subs.awk | sed '
14281 /^[^""]/{
14283 s/\n//
14285 ' >>$CONFIG_STATUS || ac_write_fail=1
14286 rm -f conf$$subs.awk
14287 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14288 _ACAWK
14289 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
14290 for (key in S) S_is_set[key] = 1
14291 FS = "\a"
14292 \$ac_cs_awk_pipe_init
14295 line = $ 0
14296 nfields = split(line, field, "@")
14297 substed = 0
14298 len = length(field[1])
14299 for (i = 2; i < nfields; i++) {
14300 key = field[i]
14301 keylen = length(key)
14302 if (S_is_set[key]) {
14303 value = S[key]
14304 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
14305 len += length(value) + length(field[++i])
14306 substed = 1
14307 } else
14308 len += 1 + keylen
14310 if (nfields == 3 && !substed) {
14311 key = field[2]
14312 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) {
14313 \$ac_cs_awk_read_file
14314 next
14317 print line
14319 \$ac_cs_awk_pipe_fini
14320 _ACAWK
14321 _ACEOF
14322 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14323 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
14324 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
14325 else
14327 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
14328 || as_fn_error "could not setup config files machinery" "$LINENO" 5
14329 _ACEOF
14331 # VPATH may cause trouble with some makes, so we remove $(srcdir),
14332 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
14333 # trailing colons and then remove the whole line if VPATH becomes empty
14334 # (actually we leave an empty line to preserve line numbers).
14335 if test "x$srcdir" = x.; then
14336 ac_vpsub='/^[ ]*VPATH[ ]*=/{
14337 s/:*\$(srcdir):*/:/
14338 s/:*\${srcdir}:*/:/
14339 s/:*@srcdir@:*/:/
14340 s/^\([^=]*=[ ]*\):*/\1/
14341 s/:*$//
14342 s/^[^=]*=[ ]*$//
14346 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14347 fi # test -n "$CONFIG_FILES"
14349 # Set up the scripts for CONFIG_HEADERS section.
14350 # No need to generate them if there are no CONFIG_HEADERS.
14351 # This happens for instance with `./config.status Makefile'.
14352 if test -n "$CONFIG_HEADERS"; then
14353 cat >"$tmp/defines.awk" <<\_ACAWK ||
14354 BEGIN {
14355 _ACEOF
14357 # Transform confdefs.h into an awk script `defines.awk', embedded as
14358 # here-document in config.status, that substitutes the proper values into
14359 # config.h.in to produce config.h.
14361 # Create a delimiter string that does not exist in confdefs.h, to ease
14362 # handling of long lines.
14363 ac_delim='%!_!# '
14364 for ac_last_try in false false :; do
14365 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
14366 if test -z "$ac_t"; then
14367 break
14368 elif $ac_last_try; then
14369 as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
14370 else
14371 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
14373 done
14375 # For the awk script, D is an array of macro values keyed by name,
14376 # likewise P contains macro parameters if any. Preserve backslash
14377 # newline sequences.
14379 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
14380 sed -n '
14381 s/.\{148\}/&'"$ac_delim"'/g
14382 t rset
14383 :rset
14384 s/^[ ]*#[ ]*define[ ][ ]*/ /
14385 t def
14387 :def
14388 s/\\$//
14389 t bsnl
14390 s/["\\]/\\&/g
14391 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
14392 D["\1"]=" \3"/p
14393 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
14395 :bsnl
14396 s/["\\]/\\&/g
14397 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
14398 D["\1"]=" \3\\\\\\n"\\/p
14399 t cont
14400 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
14401 t cont
14403 :cont
14405 s/.\{148\}/&'"$ac_delim"'/g
14406 t clear
14407 :clear
14408 s/\\$//
14409 t bsnlc
14410 s/["\\]/\\&/g; s/^/"/; s/$/"/p
14412 :bsnlc
14413 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
14414 b cont
14415 ' <confdefs.h | sed '
14416 s/'"$ac_delim"'/"\\\
14417 "/g' >>$CONFIG_STATUS || ac_write_fail=1
14419 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14420 for (key in D) D_is_set[key] = 1
14421 FS = "\a"
14423 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
14424 line = \$ 0
14425 split(line, arg, " ")
14426 if (arg[1] == "#") {
14427 defundef = arg[2]
14428 mac1 = arg[3]
14429 } else {
14430 defundef = substr(arg[1], 2)
14431 mac1 = arg[2]
14433 split(mac1, mac2, "(") #)
14434 macro = mac2[1]
14435 prefix = substr(line, 1, index(line, defundef) - 1)
14436 if (D_is_set[macro]) {
14437 # Preserve the white space surrounding the "#".
14438 print prefix "define", macro P[macro] D[macro]
14439 next
14440 } else {
14441 # Replace #undef with comments. This is necessary, for example,
14442 # in the case of _POSIX_SOURCE, which is predefined and required
14443 # on some systems where configure will not decide to define it.
14444 if (defundef == "undef") {
14445 print "/*", prefix defundef, macro, "*/"
14446 next
14450 { print }
14451 _ACAWK
14452 _ACEOF
14453 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14454 as_fn_error "could not setup config headers machinery" "$LINENO" 5
14455 fi # test -n "$CONFIG_HEADERS"
14458 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
14459 shift
14460 for ac_tag
14462 case $ac_tag in
14463 :[FHLC]) ac_mode=$ac_tag; continue;;
14464 esac
14465 case $ac_mode$ac_tag in
14466 :[FHL]*:*);;
14467 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
14468 :[FH]-) ac_tag=-:-;;
14469 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
14470 esac
14471 ac_save_IFS=$IFS
14472 IFS=:
14473 set x $ac_tag
14474 IFS=$ac_save_IFS
14475 shift
14476 ac_file=$1
14477 shift
14479 case $ac_mode in
14480 :L) ac_source=$1;;
14481 :[FH])
14482 ac_file_inputs=
14483 for ac_f
14485 case $ac_f in
14486 -) ac_f="$tmp/stdin";;
14487 *) # Look for the file first in the build tree, then in the source tree
14488 # (if the path is not absolute). The absolute path cannot be DOS-style,
14489 # because $ac_f cannot contain `:'.
14490 test -f "$ac_f" ||
14491 case $ac_f in
14492 [\\/$]*) false;;
14493 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
14494 esac ||
14495 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
14496 esac
14497 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
14498 as_fn_append ac_file_inputs " '$ac_f'"
14499 done
14501 # Let's still pretend it is `configure' which instantiates (i.e., don't
14502 # use $as_me), people would be surprised to read:
14503 # /* config.h. Generated by config.status. */
14504 configure_input='Generated from '`
14505 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
14506 `' by configure.'
14507 if test x"$ac_file" != x-; then
14508 configure_input="$ac_file. $configure_input"
14509 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
14510 $as_echo "$as_me: creating $ac_file" >&6;}
14512 # Neutralize special characters interpreted by sed in replacement strings.
14513 case $configure_input in #(
14514 *\&* | *\|* | *\\* )
14515 ac_sed_conf_input=`$as_echo "$configure_input" |
14516 sed 's/[\\\\&|]/\\\\&/g'`;; #(
14517 *) ac_sed_conf_input=$configure_input;;
14518 esac
14520 case $ac_tag in
14521 *:-:* | *:-) cat >"$tmp/stdin" \
14522 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
14523 esac
14525 esac
14527 ac_dir=`$as_dirname -- "$ac_file" ||
14528 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14529 X"$ac_file" : 'X\(//\)[^/]' \| \
14530 X"$ac_file" : 'X\(//\)$' \| \
14531 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
14532 $as_echo X"$ac_file" |
14533 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14534 s//\1/
14537 /^X\(\/\/\)[^/].*/{
14538 s//\1/
14541 /^X\(\/\/\)$/{
14542 s//\1/
14545 /^X\(\/\).*/{
14546 s//\1/
14549 s/.*/./; q'`
14550 as_dir="$ac_dir"; as_fn_mkdir_p
14551 ac_builddir=.
14553 case "$ac_dir" in
14554 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
14556 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
14557 # A ".." for each directory in $ac_dir_suffix.
14558 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
14559 case $ac_top_builddir_sub in
14560 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
14561 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
14562 esac ;;
14563 esac
14564 ac_abs_top_builddir=$ac_pwd
14565 ac_abs_builddir=$ac_pwd$ac_dir_suffix
14566 # for backward compatibility:
14567 ac_top_builddir=$ac_top_build_prefix
14569 case $srcdir in
14570 .) # We are building in place.
14571 ac_srcdir=.
14572 ac_top_srcdir=$ac_top_builddir_sub
14573 ac_abs_top_srcdir=$ac_pwd ;;
14574 [\\/]* | ?:[\\/]* ) # Absolute name.
14575 ac_srcdir=$srcdir$ac_dir_suffix;
14576 ac_top_srcdir=$srcdir
14577 ac_abs_top_srcdir=$srcdir ;;
14578 *) # Relative name.
14579 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
14580 ac_top_srcdir=$ac_top_build_prefix$srcdir
14581 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
14582 esac
14583 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
14586 case $ac_mode in
14589 # CONFIG_FILE
14592 case $INSTALL in
14593 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
14594 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
14595 esac
14596 ac_MKDIR_P=$MKDIR_P
14597 case $MKDIR_P in
14598 [\\/$]* | ?:[\\/]* ) ;;
14599 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
14600 esac
14601 _ACEOF
14603 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14604 # If the template does not know about datarootdir, expand it.
14605 # FIXME: This hack should be removed a few years after 2.60.
14606 ac_datarootdir_hack=; ac_datarootdir_seen=
14607 ac_sed_dataroot='
14608 /datarootdir/ {
14612 /@datadir@/p
14613 /@docdir@/p
14614 /@infodir@/p
14615 /@localedir@/p
14616 /@mandir@/p'
14617 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
14618 *datarootdir*) ac_datarootdir_seen=yes;;
14619 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
14620 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
14621 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
14622 _ACEOF
14623 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14624 ac_datarootdir_hack='
14625 s&@datadir@&$datadir&g
14626 s&@docdir@&$docdir&g
14627 s&@infodir@&$infodir&g
14628 s&@localedir@&$localedir&g
14629 s&@mandir@&$mandir&g
14630 s&\\\${datarootdir}&$datarootdir&g' ;;
14631 esac
14632 _ACEOF
14634 # Neutralize VPATH when `$srcdir' = `.'.
14635 # Shell code in configure.ac might set extrasub.
14636 # FIXME: do we really want to maintain this feature?
14637 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14638 ac_sed_extra="$ac_vpsub
14639 $extrasub
14640 _ACEOF
14641 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14643 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
14644 s|@configure_input@|$ac_sed_conf_input|;t t
14645 s&@top_builddir@&$ac_top_builddir_sub&;t t
14646 s&@top_build_prefix@&$ac_top_build_prefix&;t t
14647 s&@srcdir@&$ac_srcdir&;t t
14648 s&@abs_srcdir@&$ac_abs_srcdir&;t t
14649 s&@top_srcdir@&$ac_top_srcdir&;t t
14650 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
14651 s&@builddir@&$ac_builddir&;t t
14652 s&@abs_builddir@&$ac_abs_builddir&;t t
14653 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
14654 s&@INSTALL@&$ac_INSTALL&;t t
14655 s&@MKDIR_P@&$ac_MKDIR_P&;t t
14656 $ac_datarootdir_hack
14658 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
14659 if $ac_cs_awk_getline; then
14660 $AWK -f "$tmp/subs.awk"
14661 else
14662 $AWK -f "$tmp/subs.awk" | $SHELL
14663 fi >$tmp/out \
14664 || as_fn_error "could not create $ac_file" "$LINENO" 5
14666 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
14667 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
14668 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
14669 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
14670 which seems to be undefined. Please make sure it is defined." >&5
14671 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
14672 which seems to be undefined. Please make sure it is defined." >&2;}
14674 rm -f "$tmp/stdin"
14675 case $ac_file in
14676 -) cat "$tmp/out" && rm -f "$tmp/out";;
14677 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
14678 esac \
14679 || as_fn_error "could not create $ac_file" "$LINENO" 5
14683 # CONFIG_HEADER
14685 if test x"$ac_file" != x-; then
14687 $as_echo "/* $configure_input */" \
14688 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
14689 } >"$tmp/config.h" \
14690 || as_fn_error "could not create $ac_file" "$LINENO" 5
14691 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
14692 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
14693 $as_echo "$as_me: $ac_file is unchanged" >&6;}
14694 else
14695 rm -f "$ac_file"
14696 mv "$tmp/config.h" "$ac_file" \
14697 || as_fn_error "could not create $ac_file" "$LINENO" 5
14699 else
14700 $as_echo "/* $configure_input */" \
14701 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
14702 || as_fn_error "could not create -" "$LINENO" 5
14704 # Compute "$ac_file"'s index in $config_headers.
14705 _am_arg="$ac_file"
14706 _am_stamp_count=1
14707 for _am_header in $config_headers :; do
14708 case $_am_header in
14709 $_am_arg | $_am_arg:* )
14710 break ;;
14712 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
14713 esac
14714 done
14715 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
14716 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14717 X"$_am_arg" : 'X\(//\)[^/]' \| \
14718 X"$_am_arg" : 'X\(//\)$' \| \
14719 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
14720 $as_echo X"$_am_arg" |
14721 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14722 s//\1/
14725 /^X\(\/\/\)[^/].*/{
14726 s//\1/
14729 /^X\(\/\/\)$/{
14730 s//\1/
14733 /^X\(\/\).*/{
14734 s//\1/
14737 s/.*/./; q'`/stamp-h$_am_stamp_count
14740 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
14741 $as_echo "$as_me: executing $ac_file commands" >&6;}
14743 esac
14746 case $ac_file$ac_mode in
14747 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
14748 # Autoconf 2.62 quotes --file arguments for eval, but not when files
14749 # are listed without --file. Let's play safe and only enable the eval
14750 # if we detect the quoting.
14751 case $CONFIG_FILES in
14752 *\'*) eval set x "$CONFIG_FILES" ;;
14753 *) set x $CONFIG_FILES ;;
14754 esac
14755 shift
14756 for mf
14758 # Strip MF so we end up with the name of the file.
14759 mf=`echo "$mf" | sed -e 's/:.*$//'`
14760 # Check whether this is an Automake generated Makefile or not.
14761 # We used to match only the files named `Makefile.in', but
14762 # some people rename them; so instead we look at the file content.
14763 # Grep'ing the first line is not enough: some people post-process
14764 # each Makefile.in and add a new line on top of each file to say so.
14765 # Grep'ing the whole file is not good either: AIX grep has a line
14766 # limit of 2048, but all sed's we know have understand at least 4000.
14767 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
14768 dirpart=`$as_dirname -- "$mf" ||
14769 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14770 X"$mf" : 'X\(//\)[^/]' \| \
14771 X"$mf" : 'X\(//\)$' \| \
14772 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
14773 $as_echo X"$mf" |
14774 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14775 s//\1/
14778 /^X\(\/\/\)[^/].*/{
14779 s//\1/
14782 /^X\(\/\/\)$/{
14783 s//\1/
14786 /^X\(\/\).*/{
14787 s//\1/
14790 s/.*/./; q'`
14791 else
14792 continue
14794 # Extract the definition of DEPDIR, am__include, and am__quote
14795 # from the Makefile without running `make'.
14796 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
14797 test -z "$DEPDIR" && continue
14798 am__include=`sed -n 's/^am__include = //p' < "$mf"`
14799 test -z "am__include" && continue
14800 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
14801 # When using ansi2knr, U may be empty or an underscore; expand it
14802 U=`sed -n 's/^U = //p' < "$mf"`
14803 # Find all dependency output files, they are included files with
14804 # $(DEPDIR) in their names. We invoke sed twice because it is the
14805 # simplest approach to changing $(DEPDIR) to its actual value in the
14806 # expansion.
14807 for file in `sed -n "
14808 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
14809 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
14810 # Make sure the directory exists.
14811 test -f "$dirpart/$file" && continue
14812 fdir=`$as_dirname -- "$file" ||
14813 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14814 X"$file" : 'X\(//\)[^/]' \| \
14815 X"$file" : 'X\(//\)$' \| \
14816 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
14817 $as_echo X"$file" |
14818 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14819 s//\1/
14822 /^X\(\/\/\)[^/].*/{
14823 s//\1/
14826 /^X\(\/\/\)$/{
14827 s//\1/
14830 /^X\(\/\).*/{
14831 s//\1/
14834 s/.*/./; q'`
14835 as_dir=$dirpart/$fdir; as_fn_mkdir_p
14836 # echo "creating $dirpart/$file"
14837 echo '# dummy' > "$dirpart/$file"
14838 done
14839 done
14842 "libtool":C)
14844 # See if we are running on zsh, and set the options which allow our
14845 # commands through without removal of \ escapes.
14846 if test -n "${ZSH_VERSION+set}" ; then
14847 setopt NO_GLOB_SUBST
14850 cfgfile="${ofile}T"
14851 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
14852 $RM "$cfgfile"
14854 cat <<_LT_EOF >> "$cfgfile"
14855 #! $SHELL
14857 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
14858 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
14859 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
14860 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
14862 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
14863 # 2006, 2007, 2008, 2009 Free Software Foundation, Inc.
14864 # Written by Gordon Matzigkeit, 1996
14866 # This file is part of GNU Libtool.
14868 # GNU Libtool is free software; you can redistribute it and/or
14869 # modify it under the terms of the GNU General Public License as
14870 # published by the Free Software Foundation; either version 2 of
14871 # the License, or (at your option) any later version.
14873 # As a special exception to the GNU General Public License,
14874 # if you distribute this file as part of a program or library that
14875 # is built using GNU Libtool, you may include this file under the
14876 # same distribution terms that you use for the rest of that program.
14878 # GNU Libtool is distributed in the hope that it will be useful,
14879 # but WITHOUT ANY WARRANTY; without even the implied warranty of
14880 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14881 # GNU General Public License for more details.
14883 # You should have received a copy of the GNU General Public License
14884 # along with GNU Libtool; see the file COPYING. If not, a copy
14885 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
14886 # obtained by writing to the Free Software Foundation, Inc.,
14887 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
14890 # The names of the tagged configurations supported by this script.
14891 available_tags=""
14893 # ### BEGIN LIBTOOL CONFIG
14895 # Which release of libtool.m4 was used?
14896 macro_version=$macro_version
14897 macro_revision=$macro_revision
14899 # Whether or not to build shared libraries.
14900 build_libtool_libs=$enable_shared
14902 # Whether or not to build static libraries.
14903 build_old_libs=$enable_static
14905 # What type of objects to build.
14906 pic_mode=$pic_mode
14908 # Whether or not to optimize for fast installation.
14909 fast_install=$enable_fast_install
14911 # Shell to use when invoking shell scripts.
14912 SHELL=$lt_SHELL
14914 # An echo program that protects backslashes.
14915 ECHO=$lt_ECHO
14917 # The host system.
14918 host_alias=$host_alias
14919 host=$host
14920 host_os=$host_os
14922 # The build system.
14923 build_alias=$build_alias
14924 build=$build
14925 build_os=$build_os
14927 # A sed program that does not truncate output.
14928 SED=$lt_SED
14930 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
14931 Xsed="\$SED -e 1s/^X//"
14933 # A grep program that handles long lines.
14934 GREP=$lt_GREP
14936 # An ERE matcher.
14937 EGREP=$lt_EGREP
14939 # A literal string matcher.
14940 FGREP=$lt_FGREP
14942 # A BSD- or MS-compatible name lister.
14943 NM=$lt_NM
14945 # Whether we need soft or hard links.
14946 LN_S=$lt_LN_S
14948 # What is the maximum length of a command?
14949 max_cmd_len=$max_cmd_len
14951 # Object file suffix (normally "o").
14952 objext=$ac_objext
14954 # Executable file suffix (normally "").
14955 exeext=$exeext
14957 # whether the shell understands "unset".
14958 lt_unset=$lt_unset
14960 # turn spaces into newlines.
14961 SP2NL=$lt_lt_SP2NL
14963 # turn newlines into spaces.
14964 NL2SP=$lt_lt_NL2SP
14966 # An object symbol dumper.
14967 OBJDUMP=$lt_OBJDUMP
14969 # Method to check whether dependent libraries are shared objects.
14970 deplibs_check_method=$lt_deplibs_check_method
14972 # Command to use when deplibs_check_method == "file_magic".
14973 file_magic_cmd=$lt_file_magic_cmd
14975 # The archiver.
14976 AR=$lt_AR
14977 AR_FLAGS=$lt_AR_FLAGS
14979 # A symbol stripping program.
14980 STRIP=$lt_STRIP
14982 # Commands used to install an old-style archive.
14983 RANLIB=$lt_RANLIB
14984 old_postinstall_cmds=$lt_old_postinstall_cmds
14985 old_postuninstall_cmds=$lt_old_postuninstall_cmds
14987 # Whether to use a lock for old archive extraction.
14988 lock_old_archive_extraction=$lock_old_archive_extraction
14990 # A C compiler.
14991 LTCC=$lt_CC
14993 # LTCC compiler flags.
14994 LTCFLAGS=$lt_CFLAGS
14996 # Take the output of nm and produce a listing of raw symbols and C names.
14997 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
14999 # Transform the output of nm in a proper C declaration.
15000 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
15002 # Transform the output of nm in a C name address pair.
15003 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
15005 # Transform the output of nm in a C name address pair when lib prefix is needed.
15006 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
15008 # The name of the directory that contains temporary libtool files.
15009 objdir=$objdir
15011 # Used to examine libraries when file_magic_cmd begins with "file".
15012 MAGIC_CMD=$MAGIC_CMD
15014 # Must we lock files when doing compilation?
15015 need_locks=$lt_need_locks
15017 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
15018 DSYMUTIL=$lt_DSYMUTIL
15020 # Tool to change global to local symbols on Mac OS X.
15021 NMEDIT=$lt_NMEDIT
15023 # Tool to manipulate fat objects and archives on Mac OS X.
15024 LIPO=$lt_LIPO
15026 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
15027 OTOOL=$lt_OTOOL
15029 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
15030 OTOOL64=$lt_OTOOL64
15032 # Old archive suffix (normally "a").
15033 libext=$libext
15035 # Shared library suffix (normally ".so").
15036 shrext_cmds=$lt_shrext_cmds
15038 # The commands to extract the exported symbol list from a shared archive.
15039 extract_expsyms_cmds=$lt_extract_expsyms_cmds
15041 # Variables whose values should be saved in libtool wrapper scripts and
15042 # restored at link time.
15043 variables_saved_for_relink=$lt_variables_saved_for_relink
15045 # Do we need the "lib" prefix for modules?
15046 need_lib_prefix=$need_lib_prefix
15048 # Do we need a version for libraries?
15049 need_version=$need_version
15051 # Library versioning type.
15052 version_type=$version_type
15054 # Shared library runtime path variable.
15055 runpath_var=$runpath_var
15057 # Shared library path variable.
15058 shlibpath_var=$shlibpath_var
15060 # Is shlibpath searched before the hard-coded library search path?
15061 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
15063 # Format of library name prefix.
15064 libname_spec=$lt_libname_spec
15066 # List of archive names. First name is the real one, the rest are links.
15067 # The last name is the one that the linker finds with -lNAME
15068 library_names_spec=$lt_library_names_spec
15070 # The coded name of the library, if different from the real name.
15071 soname_spec=$lt_soname_spec
15073 # Permission mode override for installation of shared libraries.
15074 install_override_mode=$lt_install_override_mode
15076 # Command to use after installation of a shared archive.
15077 postinstall_cmds=$lt_postinstall_cmds
15079 # Command to use after uninstallation of a shared archive.
15080 postuninstall_cmds=$lt_postuninstall_cmds
15082 # Commands used to finish a libtool library installation in a directory.
15083 finish_cmds=$lt_finish_cmds
15085 # As "finish_cmds", except a single script fragment to be evaled but
15086 # not shown.
15087 finish_eval=$lt_finish_eval
15089 # Whether we should hardcode library paths into libraries.
15090 hardcode_into_libs=$hardcode_into_libs
15092 # Compile-time system search path for libraries.
15093 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
15095 # Run-time system search path for libraries.
15096 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
15098 # Whether dlopen is supported.
15099 dlopen_support=$enable_dlopen
15101 # Whether dlopen of programs is supported.
15102 dlopen_self=$enable_dlopen_self
15104 # Whether dlopen of statically linked programs is supported.
15105 dlopen_self_static=$enable_dlopen_self_static
15107 # Commands to strip libraries.
15108 old_striplib=$lt_old_striplib
15109 striplib=$lt_striplib
15112 # The linker used to build libraries.
15113 LD=$lt_LD
15115 # How to create reloadable object files.
15116 reload_flag=$lt_reload_flag
15117 reload_cmds=$lt_reload_cmds
15119 # Commands used to build an old-style archive.
15120 old_archive_cmds=$lt_old_archive_cmds
15122 # A language specific compiler.
15123 CC=$lt_compiler
15125 # Is the compiler the GNU compiler?
15126 with_gcc=$GCC
15128 # Compiler flag to turn off builtin functions.
15129 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
15131 # How to pass a linker flag through the compiler.
15132 wl=$lt_lt_prog_compiler_wl
15134 # Additional compiler flags for building library objects.
15135 pic_flag=$lt_lt_prog_compiler_pic
15137 # Compiler flag to prevent dynamic linking.
15138 link_static_flag=$lt_lt_prog_compiler_static
15140 # Does compiler simultaneously support -c and -o options?
15141 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
15143 # Whether or not to add -lc for building shared libraries.
15144 build_libtool_need_lc=$archive_cmds_need_lc
15146 # Whether or not to disallow shared libs when runtime libs are static.
15147 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
15149 # Compiler flag to allow reflexive dlopens.
15150 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
15152 # Compiler flag to generate shared objects directly from archives.
15153 whole_archive_flag_spec=$lt_whole_archive_flag_spec
15155 # Whether the compiler copes with passing no objects directly.
15156 compiler_needs_object=$lt_compiler_needs_object
15158 # Create an old-style archive from a shared archive.
15159 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
15161 # Create a temporary old-style archive to link instead of a shared archive.
15162 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
15164 # Commands used to build a shared archive.
15165 archive_cmds=$lt_archive_cmds
15166 archive_expsym_cmds=$lt_archive_expsym_cmds
15168 # Commands used to build a loadable module if different from building
15169 # a shared archive.
15170 module_cmds=$lt_module_cmds
15171 module_expsym_cmds=$lt_module_expsym_cmds
15173 # Whether we are building with GNU ld or not.
15174 with_gnu_ld=$lt_with_gnu_ld
15176 # Flag that allows shared libraries with undefined symbols to be built.
15177 allow_undefined_flag=$lt_allow_undefined_flag
15179 # Flag that enforces no undefined symbols.
15180 no_undefined_flag=$lt_no_undefined_flag
15182 # Flag to hardcode \$libdir into a binary during linking.
15183 # This must work even if \$libdir does not exist
15184 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
15186 # If ld is used when linking, flag to hardcode \$libdir into a binary
15187 # during linking. This must work even if \$libdir does not exist.
15188 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
15190 # Whether we need a single "-rpath" flag with a separated argument.
15191 hardcode_libdir_separator=$lt_hardcode_libdir_separator
15193 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
15194 # DIR into the resulting binary.
15195 hardcode_direct=$hardcode_direct
15197 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
15198 # DIR into the resulting binary and the resulting library dependency is
15199 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
15200 # library is relocated.
15201 hardcode_direct_absolute=$hardcode_direct_absolute
15203 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
15204 # into the resulting binary.
15205 hardcode_minus_L=$hardcode_minus_L
15207 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
15208 # into the resulting binary.
15209 hardcode_shlibpath_var=$hardcode_shlibpath_var
15211 # Set to "yes" if building a shared library automatically hardcodes DIR
15212 # into the library and all subsequent libraries and executables linked
15213 # against it.
15214 hardcode_automatic=$hardcode_automatic
15216 # Set to yes if linker adds runtime paths of dependent libraries
15217 # to runtime path list.
15218 inherit_rpath=$inherit_rpath
15220 # Whether libtool must link a program against all its dependency libraries.
15221 link_all_deplibs=$link_all_deplibs
15223 # Fix the shell variable \$srcfile for the compiler.
15224 fix_srcfile_path=$lt_fix_srcfile_path
15226 # Set to "yes" if exported symbols are required.
15227 always_export_symbols=$always_export_symbols
15229 # The commands to list exported symbols.
15230 export_symbols_cmds=$lt_export_symbols_cmds
15232 # Symbols that should not be listed in the preloaded symbols.
15233 exclude_expsyms=$lt_exclude_expsyms
15235 # Symbols that must always be exported.
15236 include_expsyms=$lt_include_expsyms
15238 # Commands necessary for linking programs (against libraries) with templates.
15239 prelink_cmds=$lt_prelink_cmds
15241 # Specify filename containing input files.
15242 file_list_spec=$lt_file_list_spec
15244 # How to hardcode a shared library path into an executable.
15245 hardcode_action=$hardcode_action
15247 # ### END LIBTOOL CONFIG
15249 _LT_EOF
15251 case $host_os in
15252 aix3*)
15253 cat <<\_LT_EOF >> "$cfgfile"
15254 # AIX sometimes has problems with the GCC collect2 program. For some
15255 # reason, if we set the COLLECT_NAMES environment variable, the problems
15256 # vanish in a puff of smoke.
15257 if test "X${COLLECT_NAMES+set}" != Xset; then
15258 COLLECT_NAMES=
15259 export COLLECT_NAMES
15261 _LT_EOF
15263 esac
15266 ltmain="$ac_aux_dir/ltmain.sh"
15269 # We use sed instead of cat because bash on DJGPP gets confused if
15270 # if finds mixed CR/LF and LF-only lines. Since sed operates in
15271 # text mode, it properly converts lines to CR/LF. This bash problem
15272 # is reportedly fixed, but why not run on old versions too?
15273 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
15274 || (rm -f "$cfgfile"; exit 1)
15276 case $xsi_shell in
15277 yes)
15278 cat << \_LT_EOF >> "$cfgfile"
15280 # func_dirname file append nondir_replacement
15281 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
15282 # otherwise set result to NONDIR_REPLACEMENT.
15283 func_dirname ()
15285 case ${1} in
15286 */*) func_dirname_result="${1%/*}${2}" ;;
15287 * ) func_dirname_result="${3}" ;;
15288 esac
15291 # func_basename file
15292 func_basename ()
15294 func_basename_result="${1##*/}"
15297 # func_dirname_and_basename file append nondir_replacement
15298 # perform func_basename and func_dirname in a single function
15299 # call:
15300 # dirname: Compute the dirname of FILE. If nonempty,
15301 # add APPEND to the result, otherwise set result
15302 # to NONDIR_REPLACEMENT.
15303 # value returned in "$func_dirname_result"
15304 # basename: Compute filename of FILE.
15305 # value retuned in "$func_basename_result"
15306 # Implementation must be kept synchronized with func_dirname
15307 # and func_basename. For efficiency, we do not delegate to
15308 # those functions but instead duplicate the functionality here.
15309 func_dirname_and_basename ()
15311 case ${1} in
15312 */*) func_dirname_result="${1%/*}${2}" ;;
15313 * ) func_dirname_result="${3}" ;;
15314 esac
15315 func_basename_result="${1##*/}"
15318 # func_stripname prefix suffix name
15319 # strip PREFIX and SUFFIX off of NAME.
15320 # PREFIX and SUFFIX must not contain globbing or regex special
15321 # characters, hashes, percent signs, but SUFFIX may contain a leading
15322 # dot (in which case that matches only a dot).
15323 func_stripname ()
15325 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
15326 # positional parameters, so assign one to ordinary parameter first.
15327 func_stripname_result=${3}
15328 func_stripname_result=${func_stripname_result#"${1}"}
15329 func_stripname_result=${func_stripname_result%"${2}"}
15332 # func_opt_split
15333 func_opt_split ()
15335 func_opt_split_opt=${1%%=*}
15336 func_opt_split_arg=${1#*=}
15339 # func_lo2o object
15340 func_lo2o ()
15342 case ${1} in
15343 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
15344 *) func_lo2o_result=${1} ;;
15345 esac
15348 # func_xform libobj-or-source
15349 func_xform ()
15351 func_xform_result=${1%.*}.lo
15354 # func_arith arithmetic-term...
15355 func_arith ()
15357 func_arith_result=$(( $* ))
15360 # func_len string
15361 # STRING may not start with a hyphen.
15362 func_len ()
15364 func_len_result=${#1}
15367 _LT_EOF
15369 *) # Bourne compatible functions.
15370 cat << \_LT_EOF >> "$cfgfile"
15372 # func_dirname file append nondir_replacement
15373 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
15374 # otherwise set result to NONDIR_REPLACEMENT.
15375 func_dirname ()
15377 # Extract subdirectory from the argument.
15378 func_dirname_result=`$ECHO "${1}" | $SED "$dirname"`
15379 if test "X$func_dirname_result" = "X${1}"; then
15380 func_dirname_result="${3}"
15381 else
15382 func_dirname_result="$func_dirname_result${2}"
15386 # func_basename file
15387 func_basename ()
15389 func_basename_result=`$ECHO "${1}" | $SED "$basename"`
15393 # func_stripname prefix suffix name
15394 # strip PREFIX and SUFFIX off of NAME.
15395 # PREFIX and SUFFIX must not contain globbing or regex special
15396 # characters, hashes, percent signs, but SUFFIX may contain a leading
15397 # dot (in which case that matches only a dot).
15398 # func_strip_suffix prefix name
15399 func_stripname ()
15401 case ${2} in
15402 .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
15403 *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
15404 esac
15407 # sed scripts:
15408 my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
15409 my_sed_long_arg='1s/^-[^=]*=//'
15411 # func_opt_split
15412 func_opt_split ()
15414 func_opt_split_opt=`$ECHO "${1}" | $SED "$my_sed_long_opt"`
15415 func_opt_split_arg=`$ECHO "${1}" | $SED "$my_sed_long_arg"`
15418 # func_lo2o object
15419 func_lo2o ()
15421 func_lo2o_result=`$ECHO "${1}" | $SED "$lo2o"`
15424 # func_xform libobj-or-source
15425 func_xform ()
15427 func_xform_result=`$ECHO "${1}" | $SED 's/\.[^.]*$/.lo/'`
15430 # func_arith arithmetic-term...
15431 func_arith ()
15433 func_arith_result=`expr "$@"`
15436 # func_len string
15437 # STRING may not start with a hyphen.
15438 func_len ()
15440 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
15443 _LT_EOF
15444 esac
15446 case $lt_shell_append in
15447 yes)
15448 cat << \_LT_EOF >> "$cfgfile"
15450 # func_append var value
15451 # Append VALUE to the end of shell variable VAR.
15452 func_append ()
15454 eval "$1+=\$2"
15456 _LT_EOF
15459 cat << \_LT_EOF >> "$cfgfile"
15461 # func_append var value
15462 # Append VALUE to the end of shell variable VAR.
15463 func_append ()
15465 eval "$1=\$$1\$2"
15468 _LT_EOF
15470 esac
15473 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
15474 || (rm -f "$cfgfile"; exit 1)
15476 mv -f "$cfgfile" "$ofile" ||
15477 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
15478 chmod +x "$ofile"
15481 "default-1":C)
15482 for ac_file in $CONFIG_FILES; do
15483 # Support "outfile[:infile[:infile...]]"
15484 case "$ac_file" in
15485 *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
15486 esac
15487 # PO directories have a Makefile.in generated from Makefile.in.in.
15488 case "$ac_file" in */Makefile.in)
15489 # Adjust a relative srcdir.
15490 ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
15491 ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
15492 ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
15493 # In autoconf-2.13 it is called $ac_given_srcdir.
15494 # In autoconf-2.50 it is called $srcdir.
15495 test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
15496 case "$ac_given_srcdir" in
15497 .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
15498 /*) top_srcdir="$ac_given_srcdir" ;;
15499 *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
15500 esac
15501 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
15502 rm -f "$ac_dir/POTFILES"
15503 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
15504 cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
15505 POMAKEFILEDEPS="POTFILES.in"
15506 # ALL_LINGUAS, POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES depend
15507 # on $ac_dir but don't depend on user-specified configuration
15508 # parameters.
15509 if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
15510 # The LINGUAS file contains the set of available languages.
15511 if test -n "$OBSOLETE_ALL_LINGUAS"; then
15512 test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
15514 ALL_LINGUAS_=`sed -e "/^#/d" "$ac_given_srcdir/$ac_dir/LINGUAS"`
15515 # Hide the ALL_LINGUAS assigment from automake.
15516 eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
15517 POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
15518 else
15519 # The set of available languages was given in configure.in.
15520 eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
15522 case "$ac_given_srcdir" in
15523 .) srcdirpre= ;;
15524 *) srcdirpre='$(srcdir)/' ;;
15525 esac
15526 POFILES=
15527 GMOFILES=
15528 UPDATEPOFILES=
15529 DUMMYPOFILES=
15530 for lang in $ALL_LINGUAS; do
15531 POFILES="$POFILES $srcdirpre$lang.po"
15532 GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
15533 UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
15534 DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
15535 done
15536 # CATALOGS depends on both $ac_dir and the user's LINGUAS
15537 # environment variable.
15538 INST_LINGUAS=
15539 if test -n "$ALL_LINGUAS"; then
15540 for presentlang in $ALL_LINGUAS; do
15541 useit=no
15542 if test "%UNSET%" != "$LINGUAS"; then
15543 desiredlanguages="$LINGUAS"
15544 else
15545 desiredlanguages="$ALL_LINGUAS"
15547 for desiredlang in $desiredlanguages; do
15548 # Use the presentlang catalog if desiredlang is
15549 # a. equal to presentlang, or
15550 # b. a variant of presentlang (because in this case,
15551 # presentlang can be used as a fallback for messages
15552 # which are not translated in the desiredlang catalog).
15553 case "$desiredlang" in
15554 "$presentlang"*) useit=yes;;
15555 esac
15556 done
15557 if test $useit = yes; then
15558 INST_LINGUAS="$INST_LINGUAS $presentlang"
15560 done
15562 CATALOGS=
15563 if test -n "$INST_LINGUAS"; then
15564 for lang in $INST_LINGUAS; do
15565 CATALOGS="$CATALOGS $lang.gmo"
15566 done
15568 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
15569 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"
15570 for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
15571 if test -f "$f"; then
15572 case "$f" in
15573 *.orig | *.bak | *~) ;;
15574 *) cat "$f" >> "$ac_dir/Makefile" ;;
15575 esac
15577 done
15580 esac
15581 done ;;
15583 esac
15584 done # for ac_tag
15587 as_fn_exit 0
15588 _ACEOF
15589 ac_clean_files=$ac_clean_files_save
15591 test $ac_write_fail = 0 ||
15592 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
15595 # configure is writing to config.log, and then calls config.status.
15596 # config.status does its own redirection, appending to config.log.
15597 # Unfortunately, on DOS this fails, as config.log is still kept open
15598 # by configure, so config.status won't be able to write to it; its
15599 # output is simply discarded. So we exec the FD to /dev/null,
15600 # effectively closing config.log, so it can be properly (re)opened and
15601 # appended to by config.status. When coming back to configure, we
15602 # need to make the FD available again.
15603 if test "$no_create" != yes; then
15604 ac_cs_success=:
15605 ac_config_status_args=
15606 test "$silent" = yes &&
15607 ac_config_status_args="$ac_config_status_args --quiet"
15608 exec 5>/dev/null
15609 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
15610 exec 5>>config.log
15611 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
15612 # would make configure fail if this is the last instruction.
15613 $ac_cs_success || as_fn_exit $?
15615 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
15616 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
15617 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}