Minor fix
[official-gcc.git] / libbacktrace / configure
blob53c09a0f071febfa144b367b9adbea8f3fff9cb1
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.64 for package-unused version-unused.
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='package-unused'
558 PACKAGE_TARNAME='libbacktrace'
559 PACKAGE_VERSION='version-unused'
560 PACKAGE_STRING='package-unused version-unused'
561 PACKAGE_BUGREPORT=''
562 PACKAGE_URL=''
564 ac_unique_file="backtrace.h"
565 # Factoring default headers for most tests.
566 ac_includes_default="\
567 #include <stdio.h>
568 #ifdef HAVE_SYS_TYPES_H
569 # include <sys/types.h>
570 #endif
571 #ifdef HAVE_SYS_STAT_H
572 # include <sys/stat.h>
573 #endif
574 #ifdef STDC_HEADERS
575 # include <stdlib.h>
576 # include <stddef.h>
577 #else
578 # ifdef HAVE_STDLIB_H
579 # include <stdlib.h>
580 # endif
581 #endif
582 #ifdef HAVE_STRING_H
583 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
584 # include <memory.h>
585 # endif
586 # include <string.h>
587 #endif
588 #ifdef HAVE_STRINGS_H
589 # include <strings.h>
590 #endif
591 #ifdef HAVE_INTTYPES_H
592 # include <inttypes.h>
593 #endif
594 #ifdef HAVE_STDINT_H
595 # include <stdint.h>
596 #endif
597 #ifdef HAVE_UNISTD_H
598 # include <unistd.h>
599 #endif"
601 ac_subst_vars='am__EXEEXT_FALSE
602 am__EXEEXT_TRUE
603 LTLIBOBJS
604 LIBOBJS
605 NATIVE_FALSE
606 NATIVE_TRUE
607 BACKTRACE_USES_MALLOC
608 ALLOC_FILE
609 VIEW_FILE
610 BACKTRACE_SUPPORTED
611 FORMAT_FILE
612 BACKTRACE_SUPPORTS_THREADS
613 PIC_FLAG
614 WARN_FLAGS
615 EXTRA_FLAGS
616 BACKTRACE_FILE
617 OTOOL64
618 OTOOL
619 LIPO
620 NMEDIT
621 DSYMUTIL
623 OBJDUMP
624 LN_S
626 ac_ct_DUMPBIN
627 DUMPBIN
629 FGREP
631 LIBTOOL
632 RANLIB
633 MAINT
634 MAINTAINER_MODE_FALSE
635 MAINTAINER_MODE_TRUE
636 am__untar
637 am__tar
638 AMTAR
639 am__leading_dot
640 SET_MAKE
642 mkdir_p
643 MKDIR_P
644 INSTALL_STRIP_PROGRAM
645 STRIP
646 install_sh
647 MAKEINFO
648 AUTOHEADER
649 AUTOMAKE
650 AUTOCONF
651 ACLOCAL
652 VERSION
653 PACKAGE
654 CYGPATH_W
655 am__isrc
656 INSTALL_DATA
657 INSTALL_SCRIPT
658 INSTALL_PROGRAM
659 libtool_VERSION
660 EGREP
661 GREP
663 OBJEXT
664 EXEEXT
665 ac_ct_CC
666 CPPFLAGS
667 LDFLAGS
668 CFLAGS
670 target_os
671 target_vendor
672 target_cpu
673 target
674 host_os
675 host_vendor
676 host_cpu
677 host
678 build_os
679 build_vendor
680 build_cpu
681 build
682 multi_basedir
683 target_alias
684 host_alias
685 build_alias
686 LIBS
687 ECHO_T
688 ECHO_N
689 ECHO_C
690 DEFS
691 mandir
692 localedir
693 libdir
694 psdir
695 pdfdir
696 dvidir
697 htmldir
698 infodir
699 docdir
700 oldincludedir
701 includedir
702 localstatedir
703 sharedstatedir
704 sysconfdir
705 datadir
706 datarootdir
707 libexecdir
708 sbindir
709 bindir
710 program_transform_name
711 prefix
712 exec_prefix
713 PACKAGE_URL
714 PACKAGE_BUGREPORT
715 PACKAGE_STRING
716 PACKAGE_VERSION
717 PACKAGE_TARNAME
718 PACKAGE_NAME
719 PATH_SEPARATOR
720 SHELL'
721 ac_subst_files=''
722 ac_user_opts='
723 enable_option_checking
724 enable_multilib
725 enable_maintainer_mode
726 with_target_subdir
727 enable_shared
728 enable_static
729 with_pic
730 enable_fast_install
731 with_gnu_ld
732 enable_libtool_lock
733 with_system_libunwind
734 enable_host_shared
736 ac_precious_vars='build_alias
737 host_alias
738 target_alias
740 CFLAGS
741 LDFLAGS
742 LIBS
743 CPPFLAGS
744 CPP'
747 # Initialize some variables set by options.
748 ac_init_help=
749 ac_init_version=false
750 ac_unrecognized_opts=
751 ac_unrecognized_sep=
752 # The variables have the same names as the options, with
753 # dashes changed to underlines.
754 cache_file=/dev/null
755 exec_prefix=NONE
756 no_create=
757 no_recursion=
758 prefix=NONE
759 program_prefix=NONE
760 program_suffix=NONE
761 program_transform_name=s,x,x,
762 silent=
763 site=
764 srcdir=
765 verbose=
766 x_includes=NONE
767 x_libraries=NONE
769 # Installation directory options.
770 # These are left unexpanded so users can "make install exec_prefix=/foo"
771 # and all the variables that are supposed to be based on exec_prefix
772 # by default will actually change.
773 # Use braces instead of parens because sh, perl, etc. also accept them.
774 # (The list follows the same order as the GNU Coding Standards.)
775 bindir='${exec_prefix}/bin'
776 sbindir='${exec_prefix}/sbin'
777 libexecdir='${exec_prefix}/libexec'
778 datarootdir='${prefix}/share'
779 datadir='${datarootdir}'
780 sysconfdir='${prefix}/etc'
781 sharedstatedir='${prefix}/com'
782 localstatedir='${prefix}/var'
783 includedir='${prefix}/include'
784 oldincludedir='/usr/include'
785 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
786 infodir='${datarootdir}/info'
787 htmldir='${docdir}'
788 dvidir='${docdir}'
789 pdfdir='${docdir}'
790 psdir='${docdir}'
791 libdir='${exec_prefix}/lib'
792 localedir='${datarootdir}/locale'
793 mandir='${datarootdir}/man'
795 ac_prev=
796 ac_dashdash=
797 for ac_option
799 # If the previous option needs an argument, assign it.
800 if test -n "$ac_prev"; then
801 eval $ac_prev=\$ac_option
802 ac_prev=
803 continue
806 case $ac_option in
807 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
808 *) ac_optarg=yes ;;
809 esac
811 # Accept the important Cygnus configure options, so we can diagnose typos.
813 case $ac_dashdash$ac_option in
815 ac_dashdash=yes ;;
817 -bindir | --bindir | --bindi | --bind | --bin | --bi)
818 ac_prev=bindir ;;
819 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
820 bindir=$ac_optarg ;;
822 -build | --build | --buil | --bui | --bu)
823 ac_prev=build_alias ;;
824 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
825 build_alias=$ac_optarg ;;
827 -cache-file | --cache-file | --cache-fil | --cache-fi \
828 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
829 ac_prev=cache_file ;;
830 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
831 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
832 cache_file=$ac_optarg ;;
834 --config-cache | -C)
835 cache_file=config.cache ;;
837 -datadir | --datadir | --datadi | --datad)
838 ac_prev=datadir ;;
839 -datadir=* | --datadir=* | --datadi=* | --datad=*)
840 datadir=$ac_optarg ;;
842 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
843 | --dataroo | --dataro | --datar)
844 ac_prev=datarootdir ;;
845 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
846 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
847 datarootdir=$ac_optarg ;;
849 -disable-* | --disable-*)
850 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
851 # Reject names that are not valid shell variable names.
852 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
853 as_fn_error "invalid feature name: $ac_useropt"
854 ac_useropt_orig=$ac_useropt
855 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
856 case $ac_user_opts in
858 "enable_$ac_useropt"
859 "*) ;;
860 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
861 ac_unrecognized_sep=', ';;
862 esac
863 eval enable_$ac_useropt=no ;;
865 -docdir | --docdir | --docdi | --doc | --do)
866 ac_prev=docdir ;;
867 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
868 docdir=$ac_optarg ;;
870 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
871 ac_prev=dvidir ;;
872 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
873 dvidir=$ac_optarg ;;
875 -enable-* | --enable-*)
876 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
877 # Reject names that are not valid shell variable names.
878 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
879 as_fn_error "invalid feature name: $ac_useropt"
880 ac_useropt_orig=$ac_useropt
881 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
882 case $ac_user_opts in
884 "enable_$ac_useropt"
885 "*) ;;
886 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
887 ac_unrecognized_sep=', ';;
888 esac
889 eval enable_$ac_useropt=\$ac_optarg ;;
891 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
892 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
893 | --exec | --exe | --ex)
894 ac_prev=exec_prefix ;;
895 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
896 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
897 | --exec=* | --exe=* | --ex=*)
898 exec_prefix=$ac_optarg ;;
900 -gas | --gas | --ga | --g)
901 # Obsolete; use --with-gas.
902 with_gas=yes ;;
904 -help | --help | --hel | --he | -h)
905 ac_init_help=long ;;
906 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
907 ac_init_help=recursive ;;
908 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
909 ac_init_help=short ;;
911 -host | --host | --hos | --ho)
912 ac_prev=host_alias ;;
913 -host=* | --host=* | --hos=* | --ho=*)
914 host_alias=$ac_optarg ;;
916 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
917 ac_prev=htmldir ;;
918 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
919 | --ht=*)
920 htmldir=$ac_optarg ;;
922 -includedir | --includedir | --includedi | --included | --include \
923 | --includ | --inclu | --incl | --inc)
924 ac_prev=includedir ;;
925 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
926 | --includ=* | --inclu=* | --incl=* | --inc=*)
927 includedir=$ac_optarg ;;
929 -infodir | --infodir | --infodi | --infod | --info | --inf)
930 ac_prev=infodir ;;
931 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
932 infodir=$ac_optarg ;;
934 -libdir | --libdir | --libdi | --libd)
935 ac_prev=libdir ;;
936 -libdir=* | --libdir=* | --libdi=* | --libd=*)
937 libdir=$ac_optarg ;;
939 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
940 | --libexe | --libex | --libe)
941 ac_prev=libexecdir ;;
942 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
943 | --libexe=* | --libex=* | --libe=*)
944 libexecdir=$ac_optarg ;;
946 -localedir | --localedir | --localedi | --localed | --locale)
947 ac_prev=localedir ;;
948 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
949 localedir=$ac_optarg ;;
951 -localstatedir | --localstatedir | --localstatedi | --localstated \
952 | --localstate | --localstat | --localsta | --localst | --locals)
953 ac_prev=localstatedir ;;
954 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
955 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
956 localstatedir=$ac_optarg ;;
958 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
959 ac_prev=mandir ;;
960 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
961 mandir=$ac_optarg ;;
963 -nfp | --nfp | --nf)
964 # Obsolete; use --without-fp.
965 with_fp=no ;;
967 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
968 | --no-cr | --no-c | -n)
969 no_create=yes ;;
971 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
972 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
973 no_recursion=yes ;;
975 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
976 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
977 | --oldin | --oldi | --old | --ol | --o)
978 ac_prev=oldincludedir ;;
979 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
980 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
981 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
982 oldincludedir=$ac_optarg ;;
984 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
985 ac_prev=prefix ;;
986 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
987 prefix=$ac_optarg ;;
989 -program-prefix | --program-prefix | --program-prefi | --program-pref \
990 | --program-pre | --program-pr | --program-p)
991 ac_prev=program_prefix ;;
992 -program-prefix=* | --program-prefix=* | --program-prefi=* \
993 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
994 program_prefix=$ac_optarg ;;
996 -program-suffix | --program-suffix | --program-suffi | --program-suff \
997 | --program-suf | --program-su | --program-s)
998 ac_prev=program_suffix ;;
999 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1000 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1001 program_suffix=$ac_optarg ;;
1003 -program-transform-name | --program-transform-name \
1004 | --program-transform-nam | --program-transform-na \
1005 | --program-transform-n | --program-transform- \
1006 | --program-transform | --program-transfor \
1007 | --program-transfo | --program-transf \
1008 | --program-trans | --program-tran \
1009 | --progr-tra | --program-tr | --program-t)
1010 ac_prev=program_transform_name ;;
1011 -program-transform-name=* | --program-transform-name=* \
1012 | --program-transform-nam=* | --program-transform-na=* \
1013 | --program-transform-n=* | --program-transform-=* \
1014 | --program-transform=* | --program-transfor=* \
1015 | --program-transfo=* | --program-transf=* \
1016 | --program-trans=* | --program-tran=* \
1017 | --progr-tra=* | --program-tr=* | --program-t=*)
1018 program_transform_name=$ac_optarg ;;
1020 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1021 ac_prev=pdfdir ;;
1022 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1023 pdfdir=$ac_optarg ;;
1025 -psdir | --psdir | --psdi | --psd | --ps)
1026 ac_prev=psdir ;;
1027 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1028 psdir=$ac_optarg ;;
1030 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1031 | -silent | --silent | --silen | --sile | --sil)
1032 silent=yes ;;
1034 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1035 ac_prev=sbindir ;;
1036 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1037 | --sbi=* | --sb=*)
1038 sbindir=$ac_optarg ;;
1040 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1041 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1042 | --sharedst | --shareds | --shared | --share | --shar \
1043 | --sha | --sh)
1044 ac_prev=sharedstatedir ;;
1045 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1046 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1047 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1048 | --sha=* | --sh=*)
1049 sharedstatedir=$ac_optarg ;;
1051 -site | --site | --sit)
1052 ac_prev=site ;;
1053 -site=* | --site=* | --sit=*)
1054 site=$ac_optarg ;;
1056 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1057 ac_prev=srcdir ;;
1058 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1059 srcdir=$ac_optarg ;;
1061 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1062 | --syscon | --sysco | --sysc | --sys | --sy)
1063 ac_prev=sysconfdir ;;
1064 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1065 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1066 sysconfdir=$ac_optarg ;;
1068 -target | --target | --targe | --targ | --tar | --ta | --t)
1069 ac_prev=target_alias ;;
1070 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1071 target_alias=$ac_optarg ;;
1073 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1074 verbose=yes ;;
1076 -version | --version | --versio | --versi | --vers | -V)
1077 ac_init_version=: ;;
1079 -with-* | --with-*)
1080 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1081 # Reject names that are not valid shell variable names.
1082 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1083 as_fn_error "invalid package name: $ac_useropt"
1084 ac_useropt_orig=$ac_useropt
1085 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1086 case $ac_user_opts in
1088 "with_$ac_useropt"
1089 "*) ;;
1090 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1091 ac_unrecognized_sep=', ';;
1092 esac
1093 eval with_$ac_useropt=\$ac_optarg ;;
1095 -without-* | --without-*)
1096 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1097 # Reject names that are not valid shell variable names.
1098 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1099 as_fn_error "invalid package name: $ac_useropt"
1100 ac_useropt_orig=$ac_useropt
1101 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1102 case $ac_user_opts in
1104 "with_$ac_useropt"
1105 "*) ;;
1106 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1107 ac_unrecognized_sep=', ';;
1108 esac
1109 eval with_$ac_useropt=no ;;
1111 --x)
1112 # Obsolete; use --with-x.
1113 with_x=yes ;;
1115 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1116 | --x-incl | --x-inc | --x-in | --x-i)
1117 ac_prev=x_includes ;;
1118 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1119 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1120 x_includes=$ac_optarg ;;
1122 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1123 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1124 ac_prev=x_libraries ;;
1125 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1126 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1127 x_libraries=$ac_optarg ;;
1129 -*) as_fn_error "unrecognized option: \`$ac_option'
1130 Try \`$0 --help' for more information."
1133 *=*)
1134 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1135 # Reject names that are not valid shell variable names.
1136 case $ac_envvar in #(
1137 '' | [0-9]* | *[!_$as_cr_alnum]* )
1138 as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1139 esac
1140 eval $ac_envvar=\$ac_optarg
1141 export $ac_envvar ;;
1144 # FIXME: should be removed in autoconf 3.0.
1145 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1146 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1147 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1148 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1151 esac
1152 done
1154 if test -n "$ac_prev"; then
1155 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1156 as_fn_error "missing argument to $ac_option"
1159 if test -n "$ac_unrecognized_opts"; then
1160 case $enable_option_checking in
1161 no) ;;
1162 fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1163 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1164 esac
1167 # Check all directory arguments for consistency.
1168 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1169 datadir sysconfdir sharedstatedir localstatedir includedir \
1170 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1171 libdir localedir mandir
1173 eval ac_val=\$$ac_var
1174 # Remove trailing slashes.
1175 case $ac_val in
1176 */ )
1177 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1178 eval $ac_var=\$ac_val;;
1179 esac
1180 # Be sure to have absolute directory names.
1181 case $ac_val in
1182 [\\/$]* | ?:[\\/]* ) continue;;
1183 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1184 esac
1185 as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1186 done
1188 # There might be people who depend on the old broken behavior: `$host'
1189 # used to hold the argument of --host etc.
1190 # FIXME: To remove some day.
1191 build=$build_alias
1192 host=$host_alias
1193 target=$target_alias
1195 # FIXME: To remove some day.
1196 if test "x$host_alias" != x; then
1197 if test "x$build_alias" = x; then
1198 cross_compiling=maybe
1199 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1200 If a cross compiler is detected then cross compile mode will be used." >&2
1201 elif test "x$build_alias" != "x$host_alias"; then
1202 cross_compiling=yes
1206 ac_tool_prefix=
1207 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1209 test "$silent" = yes && exec 6>/dev/null
1212 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1213 ac_ls_di=`ls -di .` &&
1214 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1215 as_fn_error "working directory cannot be determined"
1216 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1217 as_fn_error "pwd does not report name of working directory"
1220 # Find the source files, if location was not specified.
1221 if test -z "$srcdir"; then
1222 ac_srcdir_defaulted=yes
1223 # Try the directory containing this script, then the parent directory.
1224 ac_confdir=`$as_dirname -- "$as_myself" ||
1225 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1226 X"$as_myself" : 'X\(//\)[^/]' \| \
1227 X"$as_myself" : 'X\(//\)$' \| \
1228 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1229 $as_echo X"$as_myself" |
1230 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1231 s//\1/
1234 /^X\(\/\/\)[^/].*/{
1235 s//\1/
1238 /^X\(\/\/\)$/{
1239 s//\1/
1242 /^X\(\/\).*/{
1243 s//\1/
1246 s/.*/./; q'`
1247 srcdir=$ac_confdir
1248 if test ! -r "$srcdir/$ac_unique_file"; then
1249 srcdir=..
1251 else
1252 ac_srcdir_defaulted=no
1254 if test ! -r "$srcdir/$ac_unique_file"; then
1255 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1256 as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1258 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1259 ac_abs_confdir=`(
1260 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1261 pwd)`
1262 # When building in place, set srcdir=.
1263 if test "$ac_abs_confdir" = "$ac_pwd"; then
1264 srcdir=.
1266 # Remove unnecessary trailing slashes from srcdir.
1267 # Double slashes in file names in object file debugging info
1268 # mess up M-x gdb in Emacs.
1269 case $srcdir in
1270 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1271 esac
1272 for ac_var in $ac_precious_vars; do
1273 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1274 eval ac_env_${ac_var}_value=\$${ac_var}
1275 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1276 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1277 done
1280 # Report the --help message.
1282 if test "$ac_init_help" = "long"; then
1283 # Omit some internal or obsolete options to make the list less imposing.
1284 # This message is too long to be a string in the A/UX 3.1 sh.
1285 cat <<_ACEOF
1286 \`configure' configures package-unused version-unused to adapt to many kinds of systems.
1288 Usage: $0 [OPTION]... [VAR=VALUE]...
1290 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1291 VAR=VALUE. See below for descriptions of some of the useful variables.
1293 Defaults for the options are specified in brackets.
1295 Configuration:
1296 -h, --help display this help and exit
1297 --help=short display options specific to this package
1298 --help=recursive display the short help of all the included packages
1299 -V, --version display version information and exit
1300 -q, --quiet, --silent do not print \`checking...' messages
1301 --cache-file=FILE cache test results in FILE [disabled]
1302 -C, --config-cache alias for \`--cache-file=config.cache'
1303 -n, --no-create do not create output files
1304 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1306 Installation directories:
1307 --prefix=PREFIX install architecture-independent files in PREFIX
1308 [$ac_default_prefix]
1309 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1310 [PREFIX]
1312 By default, \`make install' will install all the files in
1313 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1314 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1315 for instance \`--prefix=\$HOME'.
1317 For better control, use the options below.
1319 Fine tuning of the installation directories:
1320 --bindir=DIR user executables [EPREFIX/bin]
1321 --sbindir=DIR system admin executables [EPREFIX/sbin]
1322 --libexecdir=DIR program executables [EPREFIX/libexec]
1323 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1324 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1325 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1326 --libdir=DIR object code libraries [EPREFIX/lib]
1327 --includedir=DIR C header files [PREFIX/include]
1328 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1329 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1330 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1331 --infodir=DIR info documentation [DATAROOTDIR/info]
1332 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1333 --mandir=DIR man documentation [DATAROOTDIR/man]
1334 --docdir=DIR documentation root [DATAROOTDIR/doc/libbacktrace]
1335 --htmldir=DIR html documentation [DOCDIR]
1336 --dvidir=DIR dvi documentation [DOCDIR]
1337 --pdfdir=DIR pdf documentation [DOCDIR]
1338 --psdir=DIR ps documentation [DOCDIR]
1339 _ACEOF
1341 cat <<\_ACEOF
1343 Program names:
1344 --program-prefix=PREFIX prepend PREFIX to installed program names
1345 --program-suffix=SUFFIX append SUFFIX to installed program names
1346 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1348 System types:
1349 --build=BUILD configure for building on BUILD [guessed]
1350 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1351 --target=TARGET configure for building compilers for TARGET [HOST]
1352 _ACEOF
1355 if test -n "$ac_init_help"; then
1356 case $ac_init_help in
1357 short | recursive ) echo "Configuration of package-unused version-unused:";;
1358 esac
1359 cat <<\_ACEOF
1361 Optional Features:
1362 --disable-option-checking ignore unrecognized --enable/--with options
1363 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1364 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1365 --enable-multilib build many library versions (default)
1366 --enable-maintainer-mode enable make rules and dependencies not useful
1367 (and sometimes confusing) to the casual installer
1368 --enable-shared[=PKGS] build shared libraries [default=no]
1369 --enable-static[=PKGS] build static libraries [default=yes]
1370 --enable-fast-install[=PKGS]
1371 optimize for fast installation [default=yes]
1372 --disable-libtool-lock avoid locking (might break parallel builds)
1373 --enable-host-shared build host code as shared libraries
1375 Optional Packages:
1376 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1377 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1378 --with-target-subdir=SUBDIR Configuring in a subdirectory for target
1379 --with-pic try to use only PIC/non-PIC objects [default=use
1380 both]
1381 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1382 --with-system-libunwind use installed libunwind
1384 Some influential environment variables:
1385 CC C compiler command
1386 CFLAGS C compiler flags
1387 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1388 nonstandard directory <lib dir>
1389 LIBS libraries to pass to the linker, e.g. -l<library>
1390 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1391 you have headers in a nonstandard directory <include dir>
1392 CPP C preprocessor
1394 Use these variables to override the choices made by `configure' or to help
1395 it to find libraries and programs with nonstandard names/locations.
1397 Report bugs to the package provider.
1398 _ACEOF
1399 ac_status=$?
1402 if test "$ac_init_help" = "recursive"; then
1403 # If there are subdirs, report their specific --help.
1404 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1405 test -d "$ac_dir" ||
1406 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1407 continue
1408 ac_builddir=.
1410 case "$ac_dir" in
1411 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1413 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1414 # A ".." for each directory in $ac_dir_suffix.
1415 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1416 case $ac_top_builddir_sub in
1417 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1418 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1419 esac ;;
1420 esac
1421 ac_abs_top_builddir=$ac_pwd
1422 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1423 # for backward compatibility:
1424 ac_top_builddir=$ac_top_build_prefix
1426 case $srcdir in
1427 .) # We are building in place.
1428 ac_srcdir=.
1429 ac_top_srcdir=$ac_top_builddir_sub
1430 ac_abs_top_srcdir=$ac_pwd ;;
1431 [\\/]* | ?:[\\/]* ) # Absolute name.
1432 ac_srcdir=$srcdir$ac_dir_suffix;
1433 ac_top_srcdir=$srcdir
1434 ac_abs_top_srcdir=$srcdir ;;
1435 *) # Relative name.
1436 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1437 ac_top_srcdir=$ac_top_build_prefix$srcdir
1438 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1439 esac
1440 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1442 cd "$ac_dir" || { ac_status=$?; continue; }
1443 # Check for guested configure.
1444 if test -f "$ac_srcdir/configure.gnu"; then
1445 echo &&
1446 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1447 elif test -f "$ac_srcdir/configure"; then
1448 echo &&
1449 $SHELL "$ac_srcdir/configure" --help=recursive
1450 else
1451 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1452 fi || ac_status=$?
1453 cd "$ac_pwd" || { ac_status=$?; break; }
1454 done
1457 test -n "$ac_init_help" && exit $ac_status
1458 if $ac_init_version; then
1459 cat <<\_ACEOF
1460 package-unused configure version-unused
1461 generated by GNU Autoconf 2.64
1463 Copyright (C) 2009 Free Software Foundation, Inc.
1464 This configure script is free software; the Free Software Foundation
1465 gives unlimited permission to copy, distribute and modify it.
1466 _ACEOF
1467 exit
1470 ## ------------------------ ##
1471 ## Autoconf initialization. ##
1472 ## ------------------------ ##
1474 # ac_fn_c_try_compile LINENO
1475 # --------------------------
1476 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1477 ac_fn_c_try_compile ()
1479 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1480 rm -f conftest.$ac_objext
1481 if { { ac_try="$ac_compile"
1482 case "(($ac_try" in
1483 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1484 *) ac_try_echo=$ac_try;;
1485 esac
1486 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1487 $as_echo "$ac_try_echo"; } >&5
1488 (eval "$ac_compile") 2>conftest.err
1489 ac_status=$?
1490 if test -s conftest.err; then
1491 grep -v '^ *+' conftest.err >conftest.er1
1492 cat conftest.er1 >&5
1493 mv -f conftest.er1 conftest.err
1495 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1496 test $ac_status = 0; } && {
1497 test -z "$ac_c_werror_flag" ||
1498 test ! -s conftest.err
1499 } && test -s conftest.$ac_objext; then :
1500 ac_retval=0
1501 else
1502 $as_echo "$as_me: failed program was:" >&5
1503 sed 's/^/| /' conftest.$ac_ext >&5
1505 ac_retval=1
1507 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1508 return $ac_retval
1510 } # ac_fn_c_try_compile
1512 # ac_fn_c_try_cpp LINENO
1513 # ----------------------
1514 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1515 ac_fn_c_try_cpp ()
1517 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1518 if { { ac_try="$ac_cpp conftest.$ac_ext"
1519 case "(($ac_try" in
1520 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1521 *) ac_try_echo=$ac_try;;
1522 esac
1523 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1524 $as_echo "$ac_try_echo"; } >&5
1525 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1526 ac_status=$?
1527 if test -s conftest.err; then
1528 grep -v '^ *+' conftest.err >conftest.er1
1529 cat conftest.er1 >&5
1530 mv -f conftest.er1 conftest.err
1532 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1533 test $ac_status = 0; } >/dev/null && {
1534 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1535 test ! -s conftest.err
1536 }; then :
1537 ac_retval=0
1538 else
1539 $as_echo "$as_me: failed program was:" >&5
1540 sed 's/^/| /' conftest.$ac_ext >&5
1542 ac_retval=1
1544 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1545 return $ac_retval
1547 } # ac_fn_c_try_cpp
1549 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1550 # -------------------------------------------------------
1551 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1552 # the include files in INCLUDES and setting the cache variable VAR
1553 # accordingly.
1554 ac_fn_c_check_header_mongrel ()
1556 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1557 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1558 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1559 $as_echo_n "checking for $2... " >&6; }
1560 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1561 $as_echo_n "(cached) " >&6
1563 eval ac_res=\$$3
1564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1565 $as_echo "$ac_res" >&6; }
1566 else
1567 # Is the header compilable?
1568 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1569 $as_echo_n "checking $2 usability... " >&6; }
1570 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1571 /* end confdefs.h. */
1573 #include <$2>
1574 _ACEOF
1575 if ac_fn_c_try_compile "$LINENO"; then :
1576 ac_header_compiler=yes
1577 else
1578 ac_header_compiler=no
1580 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1582 $as_echo "$ac_header_compiler" >&6; }
1584 # Is the header present?
1585 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1586 $as_echo_n "checking $2 presence... " >&6; }
1587 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1588 /* end confdefs.h. */
1589 #include <$2>
1590 _ACEOF
1591 if ac_fn_c_try_cpp "$LINENO"; then :
1592 ac_header_preproc=yes
1593 else
1594 ac_header_preproc=no
1596 rm -f conftest.err conftest.$ac_ext
1597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1598 $as_echo "$ac_header_preproc" >&6; }
1600 # So? What about this header?
1601 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1602 yes:no: )
1603 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1604 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1605 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1606 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1608 no:yes:* )
1609 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1610 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1611 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1612 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1613 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1614 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1615 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1616 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1617 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1618 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1620 esac
1621 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1622 $as_echo_n "checking for $2... " >&6; }
1623 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1624 $as_echo_n "(cached) " >&6
1625 else
1626 eval "$3=\$ac_header_compiler"
1628 eval ac_res=\$$3
1629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1630 $as_echo "$ac_res" >&6; }
1632 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1634 } # ac_fn_c_check_header_mongrel
1636 # ac_fn_c_try_run LINENO
1637 # ----------------------
1638 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1639 # that executables *can* be run.
1640 ac_fn_c_try_run ()
1642 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1643 if { { ac_try="$ac_link"
1644 case "(($ac_try" in
1645 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1646 *) ac_try_echo=$ac_try;;
1647 esac
1648 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1649 $as_echo "$ac_try_echo"; } >&5
1650 (eval "$ac_link") 2>&5
1651 ac_status=$?
1652 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1653 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1654 { { case "(($ac_try" in
1655 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1656 *) ac_try_echo=$ac_try;;
1657 esac
1658 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1659 $as_echo "$ac_try_echo"; } >&5
1660 (eval "$ac_try") 2>&5
1661 ac_status=$?
1662 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1663 test $ac_status = 0; }; }; then :
1664 ac_retval=0
1665 else
1666 $as_echo "$as_me: program exited with status $ac_status" >&5
1667 $as_echo "$as_me: failed program was:" >&5
1668 sed 's/^/| /' conftest.$ac_ext >&5
1670 ac_retval=$ac_status
1672 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1673 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1674 return $ac_retval
1676 } # ac_fn_c_try_run
1678 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1679 # -------------------------------------------------------
1680 # Tests whether HEADER exists and can be compiled using the include files in
1681 # INCLUDES, setting the cache variable VAR accordingly.
1682 ac_fn_c_check_header_compile ()
1684 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1685 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1686 $as_echo_n "checking for $2... " >&6; }
1687 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1688 $as_echo_n "(cached) " >&6
1689 else
1690 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1691 /* end confdefs.h. */
1693 #include <$2>
1694 _ACEOF
1695 if ac_fn_c_try_compile "$LINENO"; then :
1696 eval "$3=yes"
1697 else
1698 eval "$3=no"
1700 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1702 eval ac_res=\$$3
1703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1704 $as_echo "$ac_res" >&6; }
1705 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1707 } # ac_fn_c_check_header_compile
1709 # ac_fn_c_try_link LINENO
1710 # -----------------------
1711 # Try to link conftest.$ac_ext, and return whether this succeeded.
1712 ac_fn_c_try_link ()
1714 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1715 rm -f conftest.$ac_objext conftest$ac_exeext
1716 if { { ac_try="$ac_link"
1717 case "(($ac_try" in
1718 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1719 *) ac_try_echo=$ac_try;;
1720 esac
1721 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1722 $as_echo "$ac_try_echo"; } >&5
1723 (eval "$ac_link") 2>conftest.err
1724 ac_status=$?
1725 if test -s conftest.err; then
1726 grep -v '^ *+' conftest.err >conftest.er1
1727 cat conftest.er1 >&5
1728 mv -f conftest.er1 conftest.err
1730 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1731 test $ac_status = 0; } && {
1732 test -z "$ac_c_werror_flag" ||
1733 test ! -s conftest.err
1734 } && test -s conftest$ac_exeext && {
1735 test "$cross_compiling" = yes ||
1736 $as_test_x conftest$ac_exeext
1737 }; then :
1738 ac_retval=0
1739 else
1740 $as_echo "$as_me: failed program was:" >&5
1741 sed 's/^/| /' conftest.$ac_ext >&5
1743 ac_retval=1
1745 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1746 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1747 # interfere with the next link command; also delete a directory that is
1748 # left behind by Apple's compiler. We do this before executing the actions.
1749 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1750 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1751 return $ac_retval
1753 } # ac_fn_c_try_link
1755 # ac_fn_c_check_func LINENO FUNC VAR
1756 # ----------------------------------
1757 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1758 ac_fn_c_check_func ()
1760 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1761 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1762 $as_echo_n "checking for $2... " >&6; }
1763 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1764 $as_echo_n "(cached) " >&6
1765 else
1766 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1767 /* end confdefs.h. */
1768 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1769 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1770 #define $2 innocuous_$2
1772 /* System header to define __stub macros and hopefully few prototypes,
1773 which can conflict with char $2 (); below.
1774 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1775 <limits.h> exists even on freestanding compilers. */
1777 #ifdef __STDC__
1778 # include <limits.h>
1779 #else
1780 # include <assert.h>
1781 #endif
1783 #undef $2
1785 /* Override any GCC internal prototype to avoid an error.
1786 Use char because int might match the return type of a GCC
1787 builtin and then its argument prototype would still apply. */
1788 #ifdef __cplusplus
1789 extern "C"
1790 #endif
1791 char $2 ();
1792 /* The GNU C library defines this for functions which it implements
1793 to always fail with ENOSYS. Some functions are actually named
1794 something starting with __ and the normal name is an alias. */
1795 #if defined __stub_$2 || defined __stub___$2
1796 choke me
1797 #endif
1800 main ()
1802 return $2 ();
1804 return 0;
1806 _ACEOF
1807 if ac_fn_c_try_link "$LINENO"; then :
1808 eval "$3=yes"
1809 else
1810 eval "$3=no"
1812 rm -f core conftest.err conftest.$ac_objext \
1813 conftest$ac_exeext conftest.$ac_ext
1815 eval ac_res=\$$3
1816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1817 $as_echo "$ac_res" >&6; }
1818 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1820 } # ac_fn_c_check_func
1822 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1823 # -------------------------------------------
1824 # Tests whether TYPE exists after having included INCLUDES, setting cache
1825 # variable VAR accordingly.
1826 ac_fn_c_check_type ()
1828 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1829 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1830 $as_echo_n "checking for $2... " >&6; }
1831 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1832 $as_echo_n "(cached) " >&6
1833 else
1834 eval "$3=no"
1835 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1836 /* end confdefs.h. */
1839 main ()
1841 if (sizeof ($2))
1842 return 0;
1844 return 0;
1846 _ACEOF
1847 if ac_fn_c_try_compile "$LINENO"; then :
1848 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1849 /* end confdefs.h. */
1852 main ()
1854 if (sizeof (($2)))
1855 return 0;
1857 return 0;
1859 _ACEOF
1860 if ac_fn_c_try_compile "$LINENO"; then :
1862 else
1863 eval "$3=yes"
1865 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1867 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1869 eval ac_res=\$$3
1870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1871 $as_echo "$ac_res" >&6; }
1872 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1874 } # ac_fn_c_check_type
1876 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
1877 # --------------------------------------------
1878 # Tries to find the compile-time value of EXPR in a program that includes
1879 # INCLUDES, setting VAR accordingly. Returns whether the value could be
1880 # computed
1881 ac_fn_c_compute_int ()
1883 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1884 if test "$cross_compiling" = yes; then
1885 # Depending upon the size, compute the lo and hi bounds.
1886 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1887 /* end confdefs.h. */
1890 main ()
1892 static int test_array [1 - 2 * !(($2) >= 0)];
1893 test_array [0] = 0
1896 return 0;
1898 _ACEOF
1899 if ac_fn_c_try_compile "$LINENO"; then :
1900 ac_lo=0 ac_mid=0
1901 while :; do
1902 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1903 /* end confdefs.h. */
1906 main ()
1908 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
1909 test_array [0] = 0
1912 return 0;
1914 _ACEOF
1915 if ac_fn_c_try_compile "$LINENO"; then :
1916 ac_hi=$ac_mid; break
1917 else
1918 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
1919 if test $ac_lo -le $ac_mid; then
1920 ac_lo= ac_hi=
1921 break
1923 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
1925 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1926 done
1927 else
1928 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1929 /* end confdefs.h. */
1932 main ()
1934 static int test_array [1 - 2 * !(($2) < 0)];
1935 test_array [0] = 0
1938 return 0;
1940 _ACEOF
1941 if ac_fn_c_try_compile "$LINENO"; then :
1942 ac_hi=-1 ac_mid=-1
1943 while :; do
1944 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1945 /* end confdefs.h. */
1948 main ()
1950 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
1951 test_array [0] = 0
1954 return 0;
1956 _ACEOF
1957 if ac_fn_c_try_compile "$LINENO"; then :
1958 ac_lo=$ac_mid; break
1959 else
1960 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
1961 if test $ac_mid -le $ac_hi; then
1962 ac_lo= ac_hi=
1963 break
1965 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
1967 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1968 done
1969 else
1970 ac_lo= ac_hi=
1972 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1974 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1975 # Binary search between lo and hi bounds.
1976 while test "x$ac_lo" != "x$ac_hi"; do
1977 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
1978 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1979 /* end confdefs.h. */
1982 main ()
1984 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
1985 test_array [0] = 0
1988 return 0;
1990 _ACEOF
1991 if ac_fn_c_try_compile "$LINENO"; then :
1992 ac_hi=$ac_mid
1993 else
1994 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
1996 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1997 done
1998 case $ac_lo in #((
1999 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2000 '') ac_retval=1 ;;
2001 esac
2002 else
2003 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2004 /* end confdefs.h. */
2006 static long int longval () { return $2; }
2007 static unsigned long int ulongval () { return $2; }
2008 #include <stdio.h>
2009 #include <stdlib.h>
2011 main ()
2014 FILE *f = fopen ("conftest.val", "w");
2015 if (! f)
2016 return 1;
2017 if (($2) < 0)
2019 long int i = longval ();
2020 if (i != ($2))
2021 return 1;
2022 fprintf (f, "%ld", i);
2024 else
2026 unsigned long int i = ulongval ();
2027 if (i != ($2))
2028 return 1;
2029 fprintf (f, "%lu", i);
2031 /* Do not output a trailing newline, as this causes \r\n confusion
2032 on some platforms. */
2033 return ferror (f) || fclose (f) != 0;
2036 return 0;
2038 _ACEOF
2039 if ac_fn_c_try_run "$LINENO"; then :
2040 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2041 else
2042 ac_retval=1
2044 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2045 conftest.$ac_objext conftest.beam conftest.$ac_ext
2046 rm -f conftest.val
2049 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2050 return $ac_retval
2052 } # ac_fn_c_compute_int
2054 # ac_fn_c_check_decl LINENO SYMBOL VAR
2055 # ------------------------------------
2056 # Tests whether SYMBOL is declared, setting cache variable VAR accordingly.
2057 ac_fn_c_check_decl ()
2059 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2060 as_decl_name=`echo $2|sed 's/ *(.*//'`
2061 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2062 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2063 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2064 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2065 $as_echo_n "(cached) " >&6
2066 else
2067 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2068 /* end confdefs.h. */
2071 main ()
2073 #ifndef $as_decl_name
2074 #ifdef __cplusplus
2075 (void) $as_decl_use;
2076 #else
2077 (void) $as_decl_name;
2078 #endif
2079 #endif
2082 return 0;
2084 _ACEOF
2085 if ac_fn_c_try_compile "$LINENO"; then :
2086 eval "$3=yes"
2087 else
2088 eval "$3=no"
2090 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2092 eval ac_res=\$$3
2093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2094 $as_echo "$ac_res" >&6; }
2095 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2097 } # ac_fn_c_check_decl
2098 cat >config.log <<_ACEOF
2099 This file contains any messages produced by compilers while
2100 running configure, to aid debugging if configure makes a mistake.
2102 It was created by package-unused $as_me version-unused, which was
2103 generated by GNU Autoconf 2.64. Invocation command line was
2105 $ $0 $@
2107 _ACEOF
2108 exec 5>>config.log
2110 cat <<_ASUNAME
2111 ## --------- ##
2112 ## Platform. ##
2113 ## --------- ##
2115 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2116 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2117 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2118 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2119 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2121 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2122 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2124 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2125 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2126 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2127 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2128 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2129 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2130 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2132 _ASUNAME
2134 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2135 for as_dir in $PATH
2137 IFS=$as_save_IFS
2138 test -z "$as_dir" && as_dir=.
2139 $as_echo "PATH: $as_dir"
2140 done
2141 IFS=$as_save_IFS
2143 } >&5
2145 cat >&5 <<_ACEOF
2148 ## ----------- ##
2149 ## Core tests. ##
2150 ## ----------- ##
2152 _ACEOF
2155 # Keep a trace of the command line.
2156 # Strip out --no-create and --no-recursion so they do not pile up.
2157 # Strip out --silent because we don't want to record it for future runs.
2158 # Also quote any args containing shell meta-characters.
2159 # Make two passes to allow for proper duplicate-argument suppression.
2160 ac_configure_args=
2161 ac_configure_args0=
2162 ac_configure_args1=
2163 ac_must_keep_next=false
2164 for ac_pass in 1 2
2166 for ac_arg
2168 case $ac_arg in
2169 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2170 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2171 | -silent | --silent | --silen | --sile | --sil)
2172 continue ;;
2173 *\'*)
2174 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2175 esac
2176 case $ac_pass in
2177 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2179 as_fn_append ac_configure_args1 " '$ac_arg'"
2180 if test $ac_must_keep_next = true; then
2181 ac_must_keep_next=false # Got value, back to normal.
2182 else
2183 case $ac_arg in
2184 *=* | --config-cache | -C | -disable-* | --disable-* \
2185 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2186 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2187 | -with-* | --with-* | -without-* | --without-* | --x)
2188 case "$ac_configure_args0 " in
2189 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2190 esac
2192 -* ) ac_must_keep_next=true ;;
2193 esac
2195 as_fn_append ac_configure_args " '$ac_arg'"
2197 esac
2198 done
2199 done
2200 { ac_configure_args0=; unset ac_configure_args0;}
2201 { ac_configure_args1=; unset ac_configure_args1;}
2203 # When interrupted or exit'd, cleanup temporary files, and complete
2204 # config.log. We remove comments because anyway the quotes in there
2205 # would cause problems or look ugly.
2206 # WARNING: Use '\'' to represent an apostrophe within the trap.
2207 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2208 trap 'exit_status=$?
2209 # Save into config.log some information that might help in debugging.
2211 echo
2213 cat <<\_ASBOX
2214 ## ---------------- ##
2215 ## Cache variables. ##
2216 ## ---------------- ##
2217 _ASBOX
2218 echo
2219 # The following way of writing the cache mishandles newlines in values,
2221 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2222 eval ac_val=\$$ac_var
2223 case $ac_val in #(
2224 *${as_nl}*)
2225 case $ac_var in #(
2226 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2227 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2228 esac
2229 case $ac_var in #(
2230 _ | IFS | as_nl) ;; #(
2231 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2232 *) { eval $ac_var=; unset $ac_var;} ;;
2233 esac ;;
2234 esac
2235 done
2236 (set) 2>&1 |
2237 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2238 *${as_nl}ac_space=\ *)
2239 sed -n \
2240 "s/'\''/'\''\\\\'\'''\''/g;
2241 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2242 ;; #(
2244 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2246 esac |
2247 sort
2249 echo
2251 cat <<\_ASBOX
2252 ## ----------------- ##
2253 ## Output variables. ##
2254 ## ----------------- ##
2255 _ASBOX
2256 echo
2257 for ac_var in $ac_subst_vars
2259 eval ac_val=\$$ac_var
2260 case $ac_val in
2261 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2262 esac
2263 $as_echo "$ac_var='\''$ac_val'\''"
2264 done | sort
2265 echo
2267 if test -n "$ac_subst_files"; then
2268 cat <<\_ASBOX
2269 ## ------------------- ##
2270 ## File substitutions. ##
2271 ## ------------------- ##
2272 _ASBOX
2273 echo
2274 for ac_var in $ac_subst_files
2276 eval ac_val=\$$ac_var
2277 case $ac_val in
2278 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2279 esac
2280 $as_echo "$ac_var='\''$ac_val'\''"
2281 done | sort
2282 echo
2285 if test -s confdefs.h; then
2286 cat <<\_ASBOX
2287 ## ----------- ##
2288 ## confdefs.h. ##
2289 ## ----------- ##
2290 _ASBOX
2291 echo
2292 cat confdefs.h
2293 echo
2295 test "$ac_signal" != 0 &&
2296 $as_echo "$as_me: caught signal $ac_signal"
2297 $as_echo "$as_me: exit $exit_status"
2298 } >&5
2299 rm -f core *.core core.conftest.* &&
2300 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2301 exit $exit_status
2303 for ac_signal in 1 2 13 15; do
2304 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2305 done
2306 ac_signal=0
2308 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2309 rm -f -r conftest* confdefs.h
2311 $as_echo "/* confdefs.h */" > confdefs.h
2313 # Predefined preprocessor variables.
2315 cat >>confdefs.h <<_ACEOF
2316 #define PACKAGE_NAME "$PACKAGE_NAME"
2317 _ACEOF
2319 cat >>confdefs.h <<_ACEOF
2320 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2321 _ACEOF
2323 cat >>confdefs.h <<_ACEOF
2324 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2325 _ACEOF
2327 cat >>confdefs.h <<_ACEOF
2328 #define PACKAGE_STRING "$PACKAGE_STRING"
2329 _ACEOF
2331 cat >>confdefs.h <<_ACEOF
2332 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2333 _ACEOF
2335 cat >>confdefs.h <<_ACEOF
2336 #define PACKAGE_URL "$PACKAGE_URL"
2337 _ACEOF
2340 # Let the site file select an alternate cache file if it wants to.
2341 # Prefer an explicitly selected file to automatically selected ones.
2342 ac_site_file1=NONE
2343 ac_site_file2=NONE
2344 if test -n "$CONFIG_SITE"; then
2345 ac_site_file1=$CONFIG_SITE
2346 elif test "x$prefix" != xNONE; then
2347 ac_site_file1=$prefix/share/config.site
2348 ac_site_file2=$prefix/etc/config.site
2349 else
2350 ac_site_file1=$ac_default_prefix/share/config.site
2351 ac_site_file2=$ac_default_prefix/etc/config.site
2353 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2355 test "x$ac_site_file" = xNONE && continue
2356 if test -r "$ac_site_file"; then
2357 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2358 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2359 sed 's/^/| /' "$ac_site_file" >&5
2360 . "$ac_site_file"
2362 done
2364 if test -r "$cache_file"; then
2365 # Some versions of bash will fail to source /dev/null (special
2366 # files actually), so we avoid doing that.
2367 if test -f "$cache_file"; then
2368 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2369 $as_echo "$as_me: loading cache $cache_file" >&6;}
2370 case $cache_file in
2371 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2372 *) . "./$cache_file";;
2373 esac
2375 else
2376 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2377 $as_echo "$as_me: creating cache $cache_file" >&6;}
2378 >$cache_file
2381 # Check that the precious variables saved in the cache have kept the same
2382 # value.
2383 ac_cache_corrupted=false
2384 for ac_var in $ac_precious_vars; do
2385 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2386 eval ac_new_set=\$ac_env_${ac_var}_set
2387 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2388 eval ac_new_val=\$ac_env_${ac_var}_value
2389 case $ac_old_set,$ac_new_set in
2390 set,)
2391 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2392 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2393 ac_cache_corrupted=: ;;
2394 ,set)
2395 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2396 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2397 ac_cache_corrupted=: ;;
2398 ,);;
2400 if test "x$ac_old_val" != "x$ac_new_val"; then
2401 # differences in whitespace do not lead to failure.
2402 ac_old_val_w=`echo x $ac_old_val`
2403 ac_new_val_w=`echo x $ac_new_val`
2404 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2405 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2406 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2407 ac_cache_corrupted=:
2408 else
2409 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2410 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2411 eval $ac_var=\$ac_old_val
2413 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2414 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2415 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2416 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2417 fi;;
2418 esac
2419 # Pass precious variables to config.status.
2420 if test "$ac_new_set" = set; then
2421 case $ac_new_val in
2422 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2423 *) ac_arg=$ac_var=$ac_new_val ;;
2424 esac
2425 case " $ac_configure_args " in
2426 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2427 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2428 esac
2430 done
2431 if $ac_cache_corrupted; then
2432 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2433 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2434 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2435 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2436 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2438 ## -------------------- ##
2439 ## Main body of script. ##
2440 ## -------------------- ##
2442 ac_ext=c
2443 ac_cpp='$CPP $CPPFLAGS'
2444 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2445 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2446 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2453 ac_config_headers="$ac_config_headers config.h"
2456 if test -n "${with_target_subdir}"; then
2457 # Default to --enable-multilib
2458 # Check whether --enable-multilib was given.
2459 if test "${enable_multilib+set}" = set; then :
2460 enableval=$enable_multilib; case "$enableval" in
2461 yes) multilib=yes ;;
2462 no) multilib=no ;;
2463 *) as_fn_error "bad value $enableval for multilib option" "$LINENO" 5 ;;
2464 esac
2465 else
2466 multilib=yes
2470 # We may get other options which we leave undocumented:
2471 # --with-target-subdir, --with-multisrctop, --with-multisubdir
2472 # See config-ml.in if you want the gory details.
2474 if test "$srcdir" = "."; then
2475 if test "$with_target_subdir" != "."; then
2476 multi_basedir="$srcdir/$with_multisrctop../.."
2477 else
2478 multi_basedir="$srcdir/$with_multisrctop.."
2480 else
2481 multi_basedir="$srcdir/.."
2485 # Even if the default multilib is not a cross compilation,
2486 # it may be that some of the other multilibs are.
2487 if test $cross_compiling = no && test $multilib = yes \
2488 && test "x${with_multisubdir}" != x ; then
2489 cross_compiling=maybe
2492 ac_config_commands="$ac_config_commands default-1"
2496 ac_aux_dir=
2497 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2498 for ac_t in install-sh install.sh shtool; do
2499 if test -f "$ac_dir/$ac_t"; then
2500 ac_aux_dir=$ac_dir
2501 ac_install_sh="$ac_aux_dir/$ac_t -c"
2502 break 2
2504 done
2505 done
2506 if test -z "$ac_aux_dir"; then
2507 as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2510 # These three variables are undocumented and unsupported,
2511 # and are intended to be withdrawn in a future Autoconf release.
2512 # They can cause serious problems if a builder's source tree is in a directory
2513 # whose full name contains unusual characters.
2514 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2515 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2516 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2519 # Make sure we can run config.sub.
2520 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2521 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2523 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2524 $as_echo_n "checking build system type... " >&6; }
2525 if test "${ac_cv_build+set}" = set; then :
2526 $as_echo_n "(cached) " >&6
2527 else
2528 ac_build_alias=$build_alias
2529 test "x$ac_build_alias" = x &&
2530 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2531 test "x$ac_build_alias" = x &&
2532 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
2533 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2534 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2538 $as_echo "$ac_cv_build" >&6; }
2539 case $ac_cv_build in
2540 *-*-*) ;;
2541 *) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
2542 esac
2543 build=$ac_cv_build
2544 ac_save_IFS=$IFS; IFS='-'
2545 set x $ac_cv_build
2546 shift
2547 build_cpu=$1
2548 build_vendor=$2
2549 shift; shift
2550 # Remember, the first character of IFS is used to create $*,
2551 # except with old shells:
2552 build_os=$*
2553 IFS=$ac_save_IFS
2554 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2557 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2558 $as_echo_n "checking host system type... " >&6; }
2559 if test "${ac_cv_host+set}" = set; then :
2560 $as_echo_n "(cached) " >&6
2561 else
2562 if test "x$host_alias" = x; then
2563 ac_cv_host=$ac_cv_build
2564 else
2565 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2566 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2571 $as_echo "$ac_cv_host" >&6; }
2572 case $ac_cv_host in
2573 *-*-*) ;;
2574 *) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
2575 esac
2576 host=$ac_cv_host
2577 ac_save_IFS=$IFS; IFS='-'
2578 set x $ac_cv_host
2579 shift
2580 host_cpu=$1
2581 host_vendor=$2
2582 shift; shift
2583 # Remember, the first character of IFS is used to create $*,
2584 # except with old shells:
2585 host_os=$*
2586 IFS=$ac_save_IFS
2587 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2590 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2591 $as_echo_n "checking target system type... " >&6; }
2592 if test "${ac_cv_target+set}" = set; then :
2593 $as_echo_n "(cached) " >&6
2594 else
2595 if test "x$target_alias" = x; then
2596 ac_cv_target=$ac_cv_host
2597 else
2598 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2599 as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2604 $as_echo "$ac_cv_target" >&6; }
2605 case $ac_cv_target in
2606 *-*-*) ;;
2607 *) as_fn_error "invalid value of canonical target" "$LINENO" 5;;
2608 esac
2609 target=$ac_cv_target
2610 ac_save_IFS=$IFS; IFS='-'
2611 set x $ac_cv_target
2612 shift
2613 target_cpu=$1
2614 target_vendor=$2
2615 shift; shift
2616 # Remember, the first character of IFS is used to create $*,
2617 # except with old shells:
2618 target_os=$*
2619 IFS=$ac_save_IFS
2620 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2623 # The aliases save the names the user supplied, while $host etc.
2624 # will get canonicalized.
2625 test -n "$target_alias" &&
2626 test "$program_prefix$program_suffix$program_transform_name" = \
2627 NONENONEs,x,x, &&
2628 program_prefix=${target_alias}-
2630 target_alias=${target_alias-$host_alias}
2632 ac_ext=c
2633 ac_cpp='$CPP $CPPFLAGS'
2634 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2635 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2636 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2637 if test -n "$ac_tool_prefix"; then
2638 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2639 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2640 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2641 $as_echo_n "checking for $ac_word... " >&6; }
2642 if test "${ac_cv_prog_CC+set}" = set; then :
2643 $as_echo_n "(cached) " >&6
2644 else
2645 if test -n "$CC"; then
2646 ac_cv_prog_CC="$CC" # Let the user override the test.
2647 else
2648 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2649 for as_dir in $PATH
2651 IFS=$as_save_IFS
2652 test -z "$as_dir" && as_dir=.
2653 for ac_exec_ext in '' $ac_executable_extensions; do
2654 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2655 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2656 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2657 break 2
2659 done
2660 done
2661 IFS=$as_save_IFS
2665 CC=$ac_cv_prog_CC
2666 if test -n "$CC"; then
2667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2668 $as_echo "$CC" >&6; }
2669 else
2670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2671 $as_echo "no" >&6; }
2676 if test -z "$ac_cv_prog_CC"; then
2677 ac_ct_CC=$CC
2678 # Extract the first word of "gcc", so it can be a program name with args.
2679 set dummy gcc; ac_word=$2
2680 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2681 $as_echo_n "checking for $ac_word... " >&6; }
2682 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
2683 $as_echo_n "(cached) " >&6
2684 else
2685 if test -n "$ac_ct_CC"; then
2686 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2687 else
2688 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2689 for as_dir in $PATH
2691 IFS=$as_save_IFS
2692 test -z "$as_dir" && as_dir=.
2693 for ac_exec_ext in '' $ac_executable_extensions; do
2694 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2695 ac_cv_prog_ac_ct_CC="gcc"
2696 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2697 break 2
2699 done
2700 done
2701 IFS=$as_save_IFS
2705 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2706 if test -n "$ac_ct_CC"; then
2707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2708 $as_echo "$ac_ct_CC" >&6; }
2709 else
2710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2711 $as_echo "no" >&6; }
2714 if test "x$ac_ct_CC" = x; then
2715 CC=""
2716 else
2717 case $cross_compiling:$ac_tool_warned in
2718 yes:)
2719 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2720 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2721 ac_tool_warned=yes ;;
2722 esac
2723 CC=$ac_ct_CC
2725 else
2726 CC="$ac_cv_prog_CC"
2729 if test -z "$CC"; then
2730 if test -n "$ac_tool_prefix"; then
2731 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2732 set dummy ${ac_tool_prefix}cc; ac_word=$2
2733 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2734 $as_echo_n "checking for $ac_word... " >&6; }
2735 if test "${ac_cv_prog_CC+set}" = set; then :
2736 $as_echo_n "(cached) " >&6
2737 else
2738 if test -n "$CC"; then
2739 ac_cv_prog_CC="$CC" # Let the user override the test.
2740 else
2741 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2742 for as_dir in $PATH
2744 IFS=$as_save_IFS
2745 test -z "$as_dir" && as_dir=.
2746 for ac_exec_ext in '' $ac_executable_extensions; do
2747 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2748 ac_cv_prog_CC="${ac_tool_prefix}cc"
2749 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2750 break 2
2752 done
2753 done
2754 IFS=$as_save_IFS
2758 CC=$ac_cv_prog_CC
2759 if test -n "$CC"; then
2760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2761 $as_echo "$CC" >&6; }
2762 else
2763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2764 $as_echo "no" >&6; }
2770 if test -z "$CC"; then
2771 # Extract the first word of "cc", so it can be a program name with args.
2772 set dummy cc; ac_word=$2
2773 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2774 $as_echo_n "checking for $ac_word... " >&6; }
2775 if test "${ac_cv_prog_CC+set}" = set; then :
2776 $as_echo_n "(cached) " >&6
2777 else
2778 if test -n "$CC"; then
2779 ac_cv_prog_CC="$CC" # Let the user override the test.
2780 else
2781 ac_prog_rejected=no
2782 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2783 for as_dir in $PATH
2785 IFS=$as_save_IFS
2786 test -z "$as_dir" && as_dir=.
2787 for ac_exec_ext in '' $ac_executable_extensions; do
2788 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2789 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2790 ac_prog_rejected=yes
2791 continue
2793 ac_cv_prog_CC="cc"
2794 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2795 break 2
2797 done
2798 done
2799 IFS=$as_save_IFS
2801 if test $ac_prog_rejected = yes; then
2802 # We found a bogon in the path, so make sure we never use it.
2803 set dummy $ac_cv_prog_CC
2804 shift
2805 if test $# != 0; then
2806 # We chose a different compiler from the bogus one.
2807 # However, it has the same basename, so the bogon will be chosen
2808 # first if we set CC to just the basename; use the full file name.
2809 shift
2810 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2815 CC=$ac_cv_prog_CC
2816 if test -n "$CC"; then
2817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2818 $as_echo "$CC" >&6; }
2819 else
2820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2821 $as_echo "no" >&6; }
2826 if test -z "$CC"; then
2827 if test -n "$ac_tool_prefix"; then
2828 for ac_prog in cl.exe
2830 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2831 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2832 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2833 $as_echo_n "checking for $ac_word... " >&6; }
2834 if test "${ac_cv_prog_CC+set}" = set; then :
2835 $as_echo_n "(cached) " >&6
2836 else
2837 if test -n "$CC"; then
2838 ac_cv_prog_CC="$CC" # Let the user override the test.
2839 else
2840 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2841 for as_dir in $PATH
2843 IFS=$as_save_IFS
2844 test -z "$as_dir" && as_dir=.
2845 for ac_exec_ext in '' $ac_executable_extensions; do
2846 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2847 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2848 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2849 break 2
2851 done
2852 done
2853 IFS=$as_save_IFS
2857 CC=$ac_cv_prog_CC
2858 if test -n "$CC"; then
2859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2860 $as_echo "$CC" >&6; }
2861 else
2862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2863 $as_echo "no" >&6; }
2867 test -n "$CC" && break
2868 done
2870 if test -z "$CC"; then
2871 ac_ct_CC=$CC
2872 for ac_prog in cl.exe
2874 # Extract the first word of "$ac_prog", so it can be a program name with args.
2875 set dummy $ac_prog; ac_word=$2
2876 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2877 $as_echo_n "checking for $ac_word... " >&6; }
2878 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
2879 $as_echo_n "(cached) " >&6
2880 else
2881 if test -n "$ac_ct_CC"; then
2882 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2883 else
2884 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2885 for as_dir in $PATH
2887 IFS=$as_save_IFS
2888 test -z "$as_dir" && as_dir=.
2889 for ac_exec_ext in '' $ac_executable_extensions; do
2890 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2891 ac_cv_prog_ac_ct_CC="$ac_prog"
2892 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2893 break 2
2895 done
2896 done
2897 IFS=$as_save_IFS
2901 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2902 if test -n "$ac_ct_CC"; then
2903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2904 $as_echo "$ac_ct_CC" >&6; }
2905 else
2906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2907 $as_echo "no" >&6; }
2911 test -n "$ac_ct_CC" && break
2912 done
2914 if test "x$ac_ct_CC" = x; then
2915 CC=""
2916 else
2917 case $cross_compiling:$ac_tool_warned in
2918 yes:)
2919 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2920 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2921 ac_tool_warned=yes ;;
2922 esac
2923 CC=$ac_ct_CC
2930 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2931 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2932 as_fn_error "no acceptable C compiler found in \$PATH
2933 See \`config.log' for more details." "$LINENO" 5; }
2935 # Provide some information about the compiler.
2936 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
2937 set X $ac_compile
2938 ac_compiler=$2
2939 for ac_option in --version -v -V -qversion; do
2940 { { ac_try="$ac_compiler $ac_option >&5"
2941 case "(($ac_try" in
2942 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2943 *) ac_try_echo=$ac_try;;
2944 esac
2945 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2946 $as_echo "$ac_try_echo"; } >&5
2947 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
2948 ac_status=$?
2949 if test -s conftest.err; then
2950 sed '10a\
2951 ... rest of stderr output deleted ...
2952 10q' conftest.err >conftest.er1
2953 cat conftest.er1 >&5
2954 rm -f conftest.er1 conftest.err
2956 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2957 test $ac_status = 0; }
2958 done
2960 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2961 /* end confdefs.h. */
2964 main ()
2968 return 0;
2970 _ACEOF
2971 ac_clean_files_save=$ac_clean_files
2972 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
2973 # Try to create an executable without -o first, disregard a.out.
2974 # It will help us diagnose broken compilers, and finding out an intuition
2975 # of exeext.
2976 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
2977 $as_echo_n "checking for C compiler default output file name... " >&6; }
2978 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2980 # The possible output files:
2981 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2983 ac_rmfiles=
2984 for ac_file in $ac_files
2986 case $ac_file in
2987 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2988 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2989 esac
2990 done
2991 rm -f $ac_rmfiles
2993 if { { ac_try="$ac_link_default"
2994 case "(($ac_try" in
2995 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2996 *) ac_try_echo=$ac_try;;
2997 esac
2998 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2999 $as_echo "$ac_try_echo"; } >&5
3000 (eval "$ac_link_default") 2>&5
3001 ac_status=$?
3002 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3003 test $ac_status = 0; }; then :
3004 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3005 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3006 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3007 # so that the user can short-circuit this test for compilers unknown to
3008 # Autoconf.
3009 for ac_file in $ac_files ''
3011 test -f "$ac_file" || continue
3012 case $ac_file in
3013 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3015 [ab].out )
3016 # We found the default executable, but exeext='' is most
3017 # certainly right.
3018 break;;
3019 *.* )
3020 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3021 then :; else
3022 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3024 # We set ac_cv_exeext here because the later test for it is not
3025 # safe: cross compilers may not add the suffix if given an `-o'
3026 # argument, so we may need to know it at that point already.
3027 # Even if this section looks crufty: it has the advantage of
3028 # actually working.
3029 break;;
3031 break;;
3032 esac
3033 done
3034 test "$ac_cv_exeext" = no && ac_cv_exeext=
3036 else
3037 ac_file=''
3039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3040 $as_echo "$ac_file" >&6; }
3041 if test -z "$ac_file"; then :
3042 $as_echo "$as_me: failed program was:" >&5
3043 sed 's/^/| /' conftest.$ac_ext >&5
3045 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3046 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3047 { as_fn_set_status 77
3048 as_fn_error "C compiler cannot create executables
3049 See \`config.log' for more details." "$LINENO" 5; }; }
3051 ac_exeext=$ac_cv_exeext
3053 # Check that the compiler produces executables we can run. If not, either
3054 # the compiler is broken, or we cross compile.
3055 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3056 $as_echo_n "checking whether the C compiler works... " >&6; }
3057 # If not cross compiling, check that we can run a simple program.
3058 if test "$cross_compiling" != yes; then
3059 if { ac_try='./$ac_file'
3060 { { case "(($ac_try" in
3061 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3062 *) ac_try_echo=$ac_try;;
3063 esac
3064 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3065 $as_echo "$ac_try_echo"; } >&5
3066 (eval "$ac_try") 2>&5
3067 ac_status=$?
3068 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3069 test $ac_status = 0; }; }; then
3070 cross_compiling=no
3071 else
3072 if test "$cross_compiling" = maybe; then
3073 cross_compiling=yes
3074 else
3075 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3076 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3077 as_fn_error "cannot run C compiled programs.
3078 If you meant to cross compile, use \`--host'.
3079 See \`config.log' for more details." "$LINENO" 5; }
3083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3084 $as_echo "yes" >&6; }
3086 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
3087 ac_clean_files=$ac_clean_files_save
3088 # Check that the compiler produces executables we can run. If not, either
3089 # the compiler is broken, or we cross compile.
3090 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3091 $as_echo_n "checking whether we are cross compiling... " >&6; }
3092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3093 $as_echo "$cross_compiling" >&6; }
3095 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3096 $as_echo_n "checking for suffix of executables... " >&6; }
3097 if { { ac_try="$ac_link"
3098 case "(($ac_try" in
3099 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3100 *) ac_try_echo=$ac_try;;
3101 esac
3102 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3103 $as_echo "$ac_try_echo"; } >&5
3104 (eval "$ac_link") 2>&5
3105 ac_status=$?
3106 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3107 test $ac_status = 0; }; then :
3108 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3109 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3110 # work properly (i.e., refer to `conftest.exe'), while it won't with
3111 # `rm'.
3112 for ac_file in conftest.exe conftest 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 | *.o | *.obj ) ;;
3116 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3117 break;;
3118 * ) break;;
3119 esac
3120 done
3121 else
3122 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3123 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3124 as_fn_error "cannot compute suffix of executables: cannot compile and link
3125 See \`config.log' for more details." "$LINENO" 5; }
3127 rm -f conftest$ac_cv_exeext
3128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3129 $as_echo "$ac_cv_exeext" >&6; }
3131 rm -f conftest.$ac_ext
3132 EXEEXT=$ac_cv_exeext
3133 ac_exeext=$EXEEXT
3134 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3135 $as_echo_n "checking for suffix of object files... " >&6; }
3136 if test "${ac_cv_objext+set}" = set; then :
3137 $as_echo_n "(cached) " >&6
3138 else
3139 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3140 /* end confdefs.h. */
3143 main ()
3147 return 0;
3149 _ACEOF
3150 rm -f conftest.o conftest.obj
3151 if { { ac_try="$ac_compile"
3152 case "(($ac_try" in
3153 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3154 *) ac_try_echo=$ac_try;;
3155 esac
3156 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3157 $as_echo "$ac_try_echo"; } >&5
3158 (eval "$ac_compile") 2>&5
3159 ac_status=$?
3160 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3161 test $ac_status = 0; }; then :
3162 for ac_file in conftest.o conftest.obj conftest.*; do
3163 test -f "$ac_file" || continue;
3164 case $ac_file in
3165 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3166 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3167 break;;
3168 esac
3169 done
3170 else
3171 $as_echo "$as_me: failed program was:" >&5
3172 sed 's/^/| /' conftest.$ac_ext >&5
3174 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3175 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3176 as_fn_error "cannot compute suffix of object files: cannot compile
3177 See \`config.log' for more details." "$LINENO" 5; }
3179 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3182 $as_echo "$ac_cv_objext" >&6; }
3183 OBJEXT=$ac_cv_objext
3184 ac_objext=$OBJEXT
3185 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3186 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3187 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
3188 $as_echo_n "(cached) " >&6
3189 else
3190 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3191 /* end confdefs.h. */
3194 main ()
3196 #ifndef __GNUC__
3197 choke me
3198 #endif
3201 return 0;
3203 _ACEOF
3204 if ac_fn_c_try_compile "$LINENO"; then :
3205 ac_compiler_gnu=yes
3206 else
3207 ac_compiler_gnu=no
3209 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3210 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3214 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3215 if test $ac_compiler_gnu = yes; then
3216 GCC=yes
3217 else
3218 GCC=
3220 ac_test_CFLAGS=${CFLAGS+set}
3221 ac_save_CFLAGS=$CFLAGS
3222 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3223 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3224 if test "${ac_cv_prog_cc_g+set}" = set; then :
3225 $as_echo_n "(cached) " >&6
3226 else
3227 ac_save_c_werror_flag=$ac_c_werror_flag
3228 ac_c_werror_flag=yes
3229 ac_cv_prog_cc_g=no
3230 CFLAGS="-g"
3231 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3232 /* end confdefs.h. */
3235 main ()
3239 return 0;
3241 _ACEOF
3242 if ac_fn_c_try_compile "$LINENO"; then :
3243 ac_cv_prog_cc_g=yes
3244 else
3245 CFLAGS=""
3246 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3247 /* end confdefs.h. */
3250 main ()
3254 return 0;
3256 _ACEOF
3257 if ac_fn_c_try_compile "$LINENO"; then :
3259 else
3260 ac_c_werror_flag=$ac_save_c_werror_flag
3261 CFLAGS="-g"
3262 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3263 /* end confdefs.h. */
3266 main ()
3270 return 0;
3272 _ACEOF
3273 if ac_fn_c_try_compile "$LINENO"; then :
3274 ac_cv_prog_cc_g=yes
3276 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3278 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3280 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3281 ac_c_werror_flag=$ac_save_c_werror_flag
3283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3284 $as_echo "$ac_cv_prog_cc_g" >&6; }
3285 if test "$ac_test_CFLAGS" = set; then
3286 CFLAGS=$ac_save_CFLAGS
3287 elif test $ac_cv_prog_cc_g = yes; then
3288 if test "$GCC" = yes; then
3289 CFLAGS="-g -O2"
3290 else
3291 CFLAGS="-g"
3293 else
3294 if test "$GCC" = yes; then
3295 CFLAGS="-O2"
3296 else
3297 CFLAGS=
3300 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3301 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3302 if test "${ac_cv_prog_cc_c89+set}" = set; then :
3303 $as_echo_n "(cached) " >&6
3304 else
3305 ac_cv_prog_cc_c89=no
3306 ac_save_CC=$CC
3307 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3308 /* end confdefs.h. */
3309 #include <stdarg.h>
3310 #include <stdio.h>
3311 #include <sys/types.h>
3312 #include <sys/stat.h>
3313 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3314 struct buf { int x; };
3315 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3316 static char *e (p, i)
3317 char **p;
3318 int i;
3320 return p[i];
3322 static char *f (char * (*g) (char **, int), char **p, ...)
3324 char *s;
3325 va_list v;
3326 va_start (v,p);
3327 s = g (p, va_arg (v,int));
3328 va_end (v);
3329 return s;
3332 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3333 function prototypes and stuff, but not '\xHH' hex character constants.
3334 These don't provoke an error unfortunately, instead are silently treated
3335 as 'x'. The following induces an error, until -std is added to get
3336 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3337 array size at least. It's necessary to write '\x00'==0 to get something
3338 that's true only with -std. */
3339 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3341 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3342 inside strings and character constants. */
3343 #define FOO(x) 'x'
3344 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3346 int test (int i, double x);
3347 struct s1 {int (*f) (int a);};
3348 struct s2 {int (*f) (double a);};
3349 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3350 int argc;
3351 char **argv;
3353 main ()
3355 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3357 return 0;
3359 _ACEOF
3360 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3361 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3363 CC="$ac_save_CC $ac_arg"
3364 if ac_fn_c_try_compile "$LINENO"; then :
3365 ac_cv_prog_cc_c89=$ac_arg
3367 rm -f core conftest.err conftest.$ac_objext
3368 test "x$ac_cv_prog_cc_c89" != "xno" && break
3369 done
3370 rm -f conftest.$ac_ext
3371 CC=$ac_save_CC
3374 # AC_CACHE_VAL
3375 case "x$ac_cv_prog_cc_c89" in
3377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3378 $as_echo "none needed" >&6; } ;;
3379 xno)
3380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3381 $as_echo "unsupported" >&6; } ;;
3383 CC="$CC $ac_cv_prog_cc_c89"
3384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3385 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3386 esac
3387 if test "x$ac_cv_prog_cc_c89" != xno; then :
3391 ac_ext=c
3392 ac_cpp='$CPP $CPPFLAGS'
3393 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3394 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3395 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3398 ac_ext=c
3399 ac_cpp='$CPP $CPPFLAGS'
3400 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3401 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3402 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3403 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3404 $as_echo_n "checking how to run the C preprocessor... " >&6; }
3405 # On Suns, sometimes $CPP names a directory.
3406 if test -n "$CPP" && test -d "$CPP"; then
3407 CPP=
3409 if test -z "$CPP"; then
3410 if test "${ac_cv_prog_CPP+set}" = set; then :
3411 $as_echo_n "(cached) " >&6
3412 else
3413 # Double quotes because CPP needs to be expanded
3414 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3416 ac_preproc_ok=false
3417 for ac_c_preproc_warn_flag in '' yes
3419 # Use a header file that comes with gcc, so configuring glibc
3420 # with a fresh cross-compiler works.
3421 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3422 # <limits.h> exists even on freestanding compilers.
3423 # On the NeXT, cc -E runs the code through the compiler's parser,
3424 # not just through cpp. "Syntax error" is here to catch this case.
3425 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3426 /* end confdefs.h. */
3427 #ifdef __STDC__
3428 # include <limits.h>
3429 #else
3430 # include <assert.h>
3431 #endif
3432 Syntax error
3433 _ACEOF
3434 if ac_fn_c_try_cpp "$LINENO"; then :
3436 else
3437 # Broken: fails on valid input.
3438 continue
3440 rm -f conftest.err conftest.$ac_ext
3442 # OK, works on sane cases. Now check whether nonexistent headers
3443 # can be detected and how.
3444 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3445 /* end confdefs.h. */
3446 #include <ac_nonexistent.h>
3447 _ACEOF
3448 if ac_fn_c_try_cpp "$LINENO"; then :
3449 # Broken: success on invalid input.
3450 continue
3451 else
3452 # Passes both tests.
3453 ac_preproc_ok=:
3454 break
3456 rm -f conftest.err conftest.$ac_ext
3458 done
3459 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3460 rm -f conftest.err conftest.$ac_ext
3461 if $ac_preproc_ok; then :
3462 break
3465 done
3466 ac_cv_prog_CPP=$CPP
3469 CPP=$ac_cv_prog_CPP
3470 else
3471 ac_cv_prog_CPP=$CPP
3473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
3474 $as_echo "$CPP" >&6; }
3475 ac_preproc_ok=false
3476 for ac_c_preproc_warn_flag in '' yes
3478 # Use a header file that comes with gcc, so configuring glibc
3479 # with a fresh cross-compiler works.
3480 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3481 # <limits.h> exists even on freestanding compilers.
3482 # On the NeXT, cc -E runs the code through the compiler's parser,
3483 # not just through cpp. "Syntax error" is here to catch this case.
3484 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3485 /* end confdefs.h. */
3486 #ifdef __STDC__
3487 # include <limits.h>
3488 #else
3489 # include <assert.h>
3490 #endif
3491 Syntax error
3492 _ACEOF
3493 if ac_fn_c_try_cpp "$LINENO"; then :
3495 else
3496 # Broken: fails on valid input.
3497 continue
3499 rm -f conftest.err conftest.$ac_ext
3501 # OK, works on sane cases. Now check whether nonexistent headers
3502 # can be detected and how.
3503 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3504 /* end confdefs.h. */
3505 #include <ac_nonexistent.h>
3506 _ACEOF
3507 if ac_fn_c_try_cpp "$LINENO"; then :
3508 # Broken: success on invalid input.
3509 continue
3510 else
3511 # Passes both tests.
3512 ac_preproc_ok=:
3513 break
3515 rm -f conftest.err conftest.$ac_ext
3517 done
3518 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3519 rm -f conftest.err conftest.$ac_ext
3520 if $ac_preproc_ok; then :
3522 else
3523 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3524 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3525 as_fn_error "C preprocessor \"$CPP\" fails sanity check
3526 See \`config.log' for more details." "$LINENO" 5; }
3529 ac_ext=c
3530 ac_cpp='$CPP $CPPFLAGS'
3531 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3532 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3533 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3536 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
3537 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3538 if test "${ac_cv_path_GREP+set}" = set; then :
3539 $as_echo_n "(cached) " >&6
3540 else
3541 if test -z "$GREP"; then
3542 ac_path_GREP_found=false
3543 # Loop through the user's path and test for each of PROGNAME-LIST
3544 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3545 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3547 IFS=$as_save_IFS
3548 test -z "$as_dir" && as_dir=.
3549 for ac_prog in grep ggrep; do
3550 for ac_exec_ext in '' $ac_executable_extensions; do
3551 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3552 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3553 # Check for GNU ac_path_GREP and select it if it is found.
3554 # Check for GNU $ac_path_GREP
3555 case `"$ac_path_GREP" --version 2>&1` in
3556 *GNU*)
3557 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3559 ac_count=0
3560 $as_echo_n 0123456789 >"conftest.in"
3561 while :
3563 cat "conftest.in" "conftest.in" >"conftest.tmp"
3564 mv "conftest.tmp" "conftest.in"
3565 cp "conftest.in" "conftest.nl"
3566 $as_echo 'GREP' >> "conftest.nl"
3567 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3568 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3569 as_fn_arith $ac_count + 1 && ac_count=$as_val
3570 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3571 # Best one so far, save it but keep looking for a better one
3572 ac_cv_path_GREP="$ac_path_GREP"
3573 ac_path_GREP_max=$ac_count
3575 # 10*(2^10) chars as input seems more than enough
3576 test $ac_count -gt 10 && break
3577 done
3578 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3579 esac
3581 $ac_path_GREP_found && break 3
3582 done
3583 done
3584 done
3585 IFS=$as_save_IFS
3586 if test -z "$ac_cv_path_GREP"; then
3587 as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3589 else
3590 ac_cv_path_GREP=$GREP
3594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
3595 $as_echo "$ac_cv_path_GREP" >&6; }
3596 GREP="$ac_cv_path_GREP"
3599 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
3600 $as_echo_n "checking for egrep... " >&6; }
3601 if test "${ac_cv_path_EGREP+set}" = set; then :
3602 $as_echo_n "(cached) " >&6
3603 else
3604 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3605 then ac_cv_path_EGREP="$GREP -E"
3606 else
3607 if test -z "$EGREP"; then
3608 ac_path_EGREP_found=false
3609 # Loop through the user's path and test for each of PROGNAME-LIST
3610 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3611 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3613 IFS=$as_save_IFS
3614 test -z "$as_dir" && as_dir=.
3615 for ac_prog in egrep; do
3616 for ac_exec_ext in '' $ac_executable_extensions; do
3617 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3618 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
3619 # Check for GNU ac_path_EGREP and select it if it is found.
3620 # Check for GNU $ac_path_EGREP
3621 case `"$ac_path_EGREP" --version 2>&1` in
3622 *GNU*)
3623 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3625 ac_count=0
3626 $as_echo_n 0123456789 >"conftest.in"
3627 while :
3629 cat "conftest.in" "conftest.in" >"conftest.tmp"
3630 mv "conftest.tmp" "conftest.in"
3631 cp "conftest.in" "conftest.nl"
3632 $as_echo 'EGREP' >> "conftest.nl"
3633 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3634 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3635 as_fn_arith $ac_count + 1 && ac_count=$as_val
3636 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3637 # Best one so far, save it but keep looking for a better one
3638 ac_cv_path_EGREP="$ac_path_EGREP"
3639 ac_path_EGREP_max=$ac_count
3641 # 10*(2^10) chars as input seems more than enough
3642 test $ac_count -gt 10 && break
3643 done
3644 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3645 esac
3647 $ac_path_EGREP_found && break 3
3648 done
3649 done
3650 done
3651 IFS=$as_save_IFS
3652 if test -z "$ac_cv_path_EGREP"; then
3653 as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3655 else
3656 ac_cv_path_EGREP=$EGREP
3661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
3662 $as_echo "$ac_cv_path_EGREP" >&6; }
3663 EGREP="$ac_cv_path_EGREP"
3666 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
3667 $as_echo_n "checking for ANSI C header files... " >&6; }
3668 if test "${ac_cv_header_stdc+set}" = set; then :
3669 $as_echo_n "(cached) " >&6
3670 else
3671 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3672 /* end confdefs.h. */
3673 #include <stdlib.h>
3674 #include <stdarg.h>
3675 #include <string.h>
3676 #include <float.h>
3679 main ()
3683 return 0;
3685 _ACEOF
3686 if ac_fn_c_try_compile "$LINENO"; then :
3687 ac_cv_header_stdc=yes
3688 else
3689 ac_cv_header_stdc=no
3691 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3693 if test $ac_cv_header_stdc = yes; then
3694 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3695 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3696 /* end confdefs.h. */
3697 #include <string.h>
3699 _ACEOF
3700 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3701 $EGREP "memchr" >/dev/null 2>&1; then :
3703 else
3704 ac_cv_header_stdc=no
3706 rm -f conftest*
3710 if test $ac_cv_header_stdc = yes; then
3711 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3712 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3713 /* end confdefs.h. */
3714 #include <stdlib.h>
3716 _ACEOF
3717 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3718 $EGREP "free" >/dev/null 2>&1; then :
3720 else
3721 ac_cv_header_stdc=no
3723 rm -f conftest*
3727 if test $ac_cv_header_stdc = yes; then
3728 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3729 if test "$cross_compiling" = yes; then :
3731 else
3732 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3733 /* end confdefs.h. */
3734 #include <ctype.h>
3735 #include <stdlib.h>
3736 #if ((' ' & 0x0FF) == 0x020)
3737 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3738 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3739 #else
3740 # define ISLOWER(c) \
3741 (('a' <= (c) && (c) <= 'i') \
3742 || ('j' <= (c) && (c) <= 'r') \
3743 || ('s' <= (c) && (c) <= 'z'))
3744 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3745 #endif
3747 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3749 main ()
3751 int i;
3752 for (i = 0; i < 256; i++)
3753 if (XOR (islower (i), ISLOWER (i))
3754 || toupper (i) != TOUPPER (i))
3755 return 2;
3756 return 0;
3758 _ACEOF
3759 if ac_fn_c_try_run "$LINENO"; then :
3761 else
3762 ac_cv_header_stdc=no
3764 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
3765 conftest.$ac_objext conftest.beam conftest.$ac_ext
3770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
3771 $as_echo "$ac_cv_header_stdc" >&6; }
3772 if test $ac_cv_header_stdc = yes; then
3774 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
3778 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3779 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3780 inttypes.h stdint.h unistd.h
3781 do :
3782 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
3783 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
3785 eval as_val=\$$as_ac_Header
3786 if test "x$as_val" = x""yes; then :
3787 cat >>confdefs.h <<_ACEOF
3788 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
3789 _ACEOF
3793 done
3797 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
3798 if test "x$ac_cv_header_minix_config_h" = x""yes; then :
3799 MINIX=yes
3800 else
3801 MINIX=
3805 if test "$MINIX" = yes; then
3807 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
3810 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
3813 $as_echo "#define _MINIX 1" >>confdefs.h
3818 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
3819 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
3820 if test "${ac_cv_safe_to_define___extensions__+set}" = set; then :
3821 $as_echo_n "(cached) " >&6
3822 else
3823 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3824 /* end confdefs.h. */
3826 # define __EXTENSIONS__ 1
3827 $ac_includes_default
3829 main ()
3833 return 0;
3835 _ACEOF
3836 if ac_fn_c_try_compile "$LINENO"; then :
3837 ac_cv_safe_to_define___extensions__=yes
3838 else
3839 ac_cv_safe_to_define___extensions__=no
3841 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
3844 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
3845 test $ac_cv_safe_to_define___extensions__ = yes &&
3846 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
3848 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
3850 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
3852 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
3854 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
3858 libtool_VERSION=1:0:0
3861 # 1.11.1: Require that version of automake.
3862 # foreign: Don't require README, INSTALL, NEWS, etc.
3863 # no-define: Don't define PACKAGE and VERSION.
3864 # no-dependencies: Don't generate automatic dependencies.
3865 # (because it breaks when using bootstrap-lean, since some of the
3866 # headers are gone at "make install" time).
3867 # -Wall: Issue all automake warnings.
3868 # -Wno-portability: Don't warn about constructs supported by GNU make.
3869 # (because GCC requires GNU make anyhow).
3870 am__api_version='1.11'
3872 # Find a good install program. We prefer a C program (faster),
3873 # so one script is as good as another. But avoid the broken or
3874 # incompatible versions:
3875 # SysV /etc/install, /usr/sbin/install
3876 # SunOS /usr/etc/install
3877 # IRIX /sbin/install
3878 # AIX /bin/install
3879 # AmigaOS /C/install, which installs bootblocks on floppy discs
3880 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3881 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3882 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3883 # OS/2's system install, which has a completely different semantic
3884 # ./install, which can be erroneously created by make from ./install.sh.
3885 # Reject install programs that cannot install multiple files.
3886 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
3887 $as_echo_n "checking for a BSD-compatible install... " >&6; }
3888 if test -z "$INSTALL"; then
3889 if test "${ac_cv_path_install+set}" = set; then :
3890 $as_echo_n "(cached) " >&6
3891 else
3892 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3893 for as_dir in $PATH
3895 IFS=$as_save_IFS
3896 test -z "$as_dir" && as_dir=.
3897 # Account for people who put trailing slashes in PATH elements.
3898 case $as_dir/ in #((
3899 ./ | .// | /[cC]/* | \
3900 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3901 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
3902 /usr/ucb/* ) ;;
3904 # OSF1 and SCO ODT 3.0 have their own names for install.
3905 # Don't use installbsd from OSF since it installs stuff as root
3906 # by default.
3907 for ac_prog in ginstall scoinst install; do
3908 for ac_exec_ext in '' $ac_executable_extensions; do
3909 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
3910 if test $ac_prog = install &&
3911 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3912 # AIX install. It has an incompatible calling convention.
3914 elif test $ac_prog = install &&
3915 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3916 # program-specific install script used by HP pwplus--don't use.
3918 else
3919 rm -rf conftest.one conftest.two conftest.dir
3920 echo one > conftest.one
3921 echo two > conftest.two
3922 mkdir conftest.dir
3923 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
3924 test -s conftest.one && test -s conftest.two &&
3925 test -s conftest.dir/conftest.one &&
3926 test -s conftest.dir/conftest.two
3927 then
3928 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3929 break 3
3933 done
3934 done
3936 esac
3938 done
3939 IFS=$as_save_IFS
3941 rm -rf conftest.one conftest.two conftest.dir
3944 if test "${ac_cv_path_install+set}" = set; then
3945 INSTALL=$ac_cv_path_install
3946 else
3947 # As a last resort, use the slow shell script. Don't cache a
3948 # value for INSTALL within a source directory, because that will
3949 # break other packages using the cache if that directory is
3950 # removed, or if the value is a relative name.
3951 INSTALL=$ac_install_sh
3954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
3955 $as_echo "$INSTALL" >&6; }
3957 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3958 # It thinks the first close brace ends the variable substitution.
3959 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3961 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3963 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3965 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
3966 $as_echo_n "checking whether build environment is sane... " >&6; }
3967 # Just in case
3968 sleep 1
3969 echo timestamp > conftest.file
3970 # Reject unsafe characters in $srcdir or the absolute working directory
3971 # name. Accept space and tab only in the latter.
3972 am_lf='
3974 case `pwd` in
3975 *[\\\"\#\$\&\'\`$am_lf]*)
3976 as_fn_error "unsafe absolute working directory name" "$LINENO" 5;;
3977 esac
3978 case $srcdir in
3979 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
3980 as_fn_error "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
3981 esac
3983 # Do `set' in a subshell so we don't clobber the current shell's
3984 # arguments. Must try -L first in case configure is actually a
3985 # symlink; some systems play weird games with the mod time of symlinks
3986 # (eg FreeBSD returns the mod time of the symlink's containing
3987 # directory).
3988 if (
3989 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
3990 if test "$*" = "X"; then
3991 # -L didn't work.
3992 set X `ls -t "$srcdir/configure" conftest.file`
3994 rm -f conftest.file
3995 if test "$*" != "X $srcdir/configure conftest.file" \
3996 && test "$*" != "X conftest.file $srcdir/configure"; then
3998 # If neither matched, then we have a broken ls. This can happen
3999 # if, for instance, CONFIG_SHELL is bash and it inherits a
4000 # broken ls alias from the environment. This has actually
4001 # happened. Such a system could not be considered "sane".
4002 as_fn_error "ls -t appears to fail. Make sure there is not a broken
4003 alias in your environment" "$LINENO" 5
4006 test "$2" = conftest.file
4008 then
4009 # Ok.
4011 else
4012 as_fn_error "newly created file is older than distributed files!
4013 Check your system clock" "$LINENO" 5
4015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4016 $as_echo "yes" >&6; }
4017 test "$program_prefix" != NONE &&
4018 program_transform_name="s&^&$program_prefix&;$program_transform_name"
4019 # Use a double $ so make ignores it.
4020 test "$program_suffix" != NONE &&
4021 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
4022 # Double any \ or $.
4023 # By default was `s,x,x', remove it if useless.
4024 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
4025 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
4027 # expand $ac_aux_dir to an absolute path
4028 am_aux_dir=`cd $ac_aux_dir && pwd`
4030 if test x"${MISSING+set}" != xset; then
4031 case $am_aux_dir in
4032 *\ * | *\ *)
4033 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
4035 MISSING="\${SHELL} $am_aux_dir/missing" ;;
4036 esac
4038 # Use eval to expand $SHELL
4039 if eval "$MISSING --run true"; then
4040 am_missing_run="$MISSING --run "
4041 else
4042 am_missing_run=
4043 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
4044 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
4047 if test x"${install_sh}" != xset; then
4048 case $am_aux_dir in
4049 *\ * | *\ *)
4050 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
4052 install_sh="\${SHELL} $am_aux_dir/install-sh"
4053 esac
4056 # Installed binaries are usually stripped using `strip' when the user
4057 # run `make install-strip'. However `strip' might not be the right
4058 # tool to use in cross-compilation environments, therefore Automake
4059 # will honor the `STRIP' environment variable to overrule this program.
4060 if test "$cross_compiling" != no; then
4061 if test -n "$ac_tool_prefix"; then
4062 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
4063 set dummy ${ac_tool_prefix}strip; ac_word=$2
4064 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4065 $as_echo_n "checking for $ac_word... " >&6; }
4066 if test "${ac_cv_prog_STRIP+set}" = set; then :
4067 $as_echo_n "(cached) " >&6
4068 else
4069 if test -n "$STRIP"; then
4070 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
4071 else
4072 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4073 for as_dir in $PATH
4075 IFS=$as_save_IFS
4076 test -z "$as_dir" && as_dir=.
4077 for ac_exec_ext in '' $ac_executable_extensions; do
4078 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4079 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
4080 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4081 break 2
4083 done
4084 done
4085 IFS=$as_save_IFS
4089 STRIP=$ac_cv_prog_STRIP
4090 if test -n "$STRIP"; then
4091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
4092 $as_echo "$STRIP" >&6; }
4093 else
4094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4095 $as_echo "no" >&6; }
4100 if test -z "$ac_cv_prog_STRIP"; then
4101 ac_ct_STRIP=$STRIP
4102 # Extract the first word of "strip", so it can be a program name with args.
4103 set dummy strip; ac_word=$2
4104 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4105 $as_echo_n "checking for $ac_word... " >&6; }
4106 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
4107 $as_echo_n "(cached) " >&6
4108 else
4109 if test -n "$ac_ct_STRIP"; then
4110 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
4111 else
4112 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4113 for as_dir in $PATH
4115 IFS=$as_save_IFS
4116 test -z "$as_dir" && as_dir=.
4117 for ac_exec_ext in '' $ac_executable_extensions; do
4118 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4119 ac_cv_prog_ac_ct_STRIP="strip"
4120 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4121 break 2
4123 done
4124 done
4125 IFS=$as_save_IFS
4129 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
4130 if test -n "$ac_ct_STRIP"; then
4131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
4132 $as_echo "$ac_ct_STRIP" >&6; }
4133 else
4134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4135 $as_echo "no" >&6; }
4138 if test "x$ac_ct_STRIP" = x; then
4139 STRIP=":"
4140 else
4141 case $cross_compiling:$ac_tool_warned in
4142 yes:)
4143 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4144 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4145 ac_tool_warned=yes ;;
4146 esac
4147 STRIP=$ac_ct_STRIP
4149 else
4150 STRIP="$ac_cv_prog_STRIP"
4154 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
4156 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
4157 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
4158 if test -z "$MKDIR_P"; then
4159 if test "${ac_cv_path_mkdir+set}" = set; then :
4160 $as_echo_n "(cached) " >&6
4161 else
4162 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4163 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
4165 IFS=$as_save_IFS
4166 test -z "$as_dir" && as_dir=.
4167 for ac_prog in mkdir gmkdir; do
4168 for ac_exec_ext in '' $ac_executable_extensions; do
4169 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
4170 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
4171 'mkdir (GNU coreutils) '* | \
4172 'mkdir (coreutils) '* | \
4173 'mkdir (fileutils) '4.1*)
4174 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
4175 break 3;;
4176 esac
4177 done
4178 done
4179 done
4180 IFS=$as_save_IFS
4184 if test "${ac_cv_path_mkdir+set}" = set; then
4185 MKDIR_P="$ac_cv_path_mkdir -p"
4186 else
4187 # As a last resort, use the slow shell script. Don't cache a
4188 # value for MKDIR_P within a source directory, because that will
4189 # break other packages using the cache if that directory is
4190 # removed, or if the value is a relative name.
4191 test -d ./--version && rmdir ./--version
4192 MKDIR_P="$ac_install_sh -d"
4195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
4196 $as_echo "$MKDIR_P" >&6; }
4198 mkdir_p="$MKDIR_P"
4199 case $mkdir_p in
4200 [\\/$]* | ?:[\\/]*) ;;
4201 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
4202 esac
4204 for ac_prog in gawk mawk nawk awk
4206 # Extract the first word of "$ac_prog", so it can be a program name with args.
4207 set dummy $ac_prog; ac_word=$2
4208 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4209 $as_echo_n "checking for $ac_word... " >&6; }
4210 if test "${ac_cv_prog_AWK+set}" = set; then :
4211 $as_echo_n "(cached) " >&6
4212 else
4213 if test -n "$AWK"; then
4214 ac_cv_prog_AWK="$AWK" # Let the user override the test.
4215 else
4216 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4217 for as_dir in $PATH
4219 IFS=$as_save_IFS
4220 test -z "$as_dir" && as_dir=.
4221 for ac_exec_ext in '' $ac_executable_extensions; do
4222 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4223 ac_cv_prog_AWK="$ac_prog"
4224 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4225 break 2
4227 done
4228 done
4229 IFS=$as_save_IFS
4233 AWK=$ac_cv_prog_AWK
4234 if test -n "$AWK"; then
4235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
4236 $as_echo "$AWK" >&6; }
4237 else
4238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4239 $as_echo "no" >&6; }
4243 test -n "$AWK" && break
4244 done
4246 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
4247 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
4248 set x ${MAKE-make}
4249 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
4250 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
4251 $as_echo_n "(cached) " >&6
4252 else
4253 cat >conftest.make <<\_ACEOF
4254 SHELL = /bin/sh
4255 all:
4256 @echo '@@@%%%=$(MAKE)=@@@%%%'
4257 _ACEOF
4258 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
4259 case `${MAKE-make} -f conftest.make 2>/dev/null` in
4260 *@@@%%%=?*=@@@%%%*)
4261 eval ac_cv_prog_make_${ac_make}_set=yes;;
4263 eval ac_cv_prog_make_${ac_make}_set=no;;
4264 esac
4265 rm -f conftest.make
4267 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
4268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4269 $as_echo "yes" >&6; }
4270 SET_MAKE=
4271 else
4272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4273 $as_echo "no" >&6; }
4274 SET_MAKE="MAKE=${MAKE-make}"
4277 rm -rf .tst 2>/dev/null
4278 mkdir .tst 2>/dev/null
4279 if test -d .tst; then
4280 am__leading_dot=.
4281 else
4282 am__leading_dot=_
4284 rmdir .tst 2>/dev/null
4286 if test "`cd $srcdir && pwd`" != "`pwd`"; then
4287 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
4288 # is not polluted with repeated "-I."
4289 am__isrc=' -I$(srcdir)'
4290 # test to see if srcdir already configured
4291 if test -f $srcdir/config.status; then
4292 as_fn_error "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
4296 # test whether we have cygpath
4297 if test -z "$CYGPATH_W"; then
4298 if (cygpath --version) >/dev/null 2>/dev/null; then
4299 CYGPATH_W='cygpath -w'
4300 else
4301 CYGPATH_W=echo
4306 # Define the identity of the package.
4307 PACKAGE='libbacktrace'
4308 VERSION='version-unused'
4311 # Some tools Automake needs.
4313 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
4316 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
4319 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
4322 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
4325 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
4327 # We need awk for the "check" target. The system "awk" is bad on
4328 # some platforms.
4329 # Always define AMTAR for backward compatibility.
4331 AMTAR=${AMTAR-"${am_missing_run}tar"}
4333 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
4341 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
4342 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
4343 # Check whether --enable-maintainer-mode was given.
4344 if test "${enable_maintainer_mode+set}" = set; then :
4345 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
4346 else
4347 USE_MAINTAINER_MODE=no
4350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
4351 $as_echo "$USE_MAINTAINER_MODE" >&6; }
4352 if test $USE_MAINTAINER_MODE = yes; then
4353 MAINTAINER_MODE_TRUE=
4354 MAINTAINER_MODE_FALSE='#'
4355 else
4356 MAINTAINER_MODE_TRUE='#'
4357 MAINTAINER_MODE_FALSE=
4360 MAINT=$MAINTAINER_MODE_TRUE
4365 # Check whether --with-target-subdir was given.
4366 if test "${with_target_subdir+set}" = set; then :
4367 withval=$with_target_subdir;
4371 # We must force CC to /not/ be precious variables; otherwise
4372 # the wrong, non-multilib-adjusted value will be used in multilibs.
4373 # As a side effect, we have to subst CFLAGS ourselves.
4376 ac_ext=c
4377 ac_cpp='$CPP $CPPFLAGS'
4378 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4379 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4380 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4381 if test -n "$ac_tool_prefix"; then
4382 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4383 set dummy ${ac_tool_prefix}gcc; ac_word=$2
4384 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4385 $as_echo_n "checking for $ac_word... " >&6; }
4386 if test "${ac_cv_prog_CC+set}" = set; then :
4387 $as_echo_n "(cached) " >&6
4388 else
4389 if test -n "$CC"; then
4390 ac_cv_prog_CC="$CC" # Let the user override the test.
4391 else
4392 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4393 for as_dir in $PATH
4395 IFS=$as_save_IFS
4396 test -z "$as_dir" && as_dir=.
4397 for ac_exec_ext in '' $ac_executable_extensions; do
4398 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4399 ac_cv_prog_CC="${ac_tool_prefix}gcc"
4400 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4401 break 2
4403 done
4404 done
4405 IFS=$as_save_IFS
4409 CC=$ac_cv_prog_CC
4410 if test -n "$CC"; then
4411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4412 $as_echo "$CC" >&6; }
4413 else
4414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4415 $as_echo "no" >&6; }
4420 if test -z "$ac_cv_prog_CC"; then
4421 ac_ct_CC=$CC
4422 # Extract the first word of "gcc", so it can be a program name with args.
4423 set dummy gcc; ac_word=$2
4424 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4425 $as_echo_n "checking for $ac_word... " >&6; }
4426 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
4427 $as_echo_n "(cached) " >&6
4428 else
4429 if test -n "$ac_ct_CC"; then
4430 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4431 else
4432 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4433 for as_dir in $PATH
4435 IFS=$as_save_IFS
4436 test -z "$as_dir" && as_dir=.
4437 for ac_exec_ext in '' $ac_executable_extensions; do
4438 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4439 ac_cv_prog_ac_ct_CC="gcc"
4440 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4441 break 2
4443 done
4444 done
4445 IFS=$as_save_IFS
4449 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4450 if test -n "$ac_ct_CC"; then
4451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4452 $as_echo "$ac_ct_CC" >&6; }
4453 else
4454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4455 $as_echo "no" >&6; }
4458 if test "x$ac_ct_CC" = x; then
4459 CC=""
4460 else
4461 case $cross_compiling:$ac_tool_warned in
4462 yes:)
4463 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4464 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4465 ac_tool_warned=yes ;;
4466 esac
4467 CC=$ac_ct_CC
4469 else
4470 CC="$ac_cv_prog_CC"
4473 if test -z "$CC"; then
4474 if test -n "$ac_tool_prefix"; then
4475 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4476 set dummy ${ac_tool_prefix}cc; ac_word=$2
4477 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4478 $as_echo_n "checking for $ac_word... " >&6; }
4479 if test "${ac_cv_prog_CC+set}" = set; then :
4480 $as_echo_n "(cached) " >&6
4481 else
4482 if test -n "$CC"; then
4483 ac_cv_prog_CC="$CC" # Let the user override the test.
4484 else
4485 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4486 for as_dir in $PATH
4488 IFS=$as_save_IFS
4489 test -z "$as_dir" && as_dir=.
4490 for ac_exec_ext in '' $ac_executable_extensions; do
4491 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4492 ac_cv_prog_CC="${ac_tool_prefix}cc"
4493 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4494 break 2
4496 done
4497 done
4498 IFS=$as_save_IFS
4502 CC=$ac_cv_prog_CC
4503 if test -n "$CC"; then
4504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4505 $as_echo "$CC" >&6; }
4506 else
4507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4508 $as_echo "no" >&6; }
4514 if test -z "$CC"; then
4515 # Extract the first word of "cc", so it can be a program name with args.
4516 set dummy cc; ac_word=$2
4517 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4518 $as_echo_n "checking for $ac_word... " >&6; }
4519 if test "${ac_cv_prog_CC+set}" = set; then :
4520 $as_echo_n "(cached) " >&6
4521 else
4522 if test -n "$CC"; then
4523 ac_cv_prog_CC="$CC" # Let the user override the test.
4524 else
4525 ac_prog_rejected=no
4526 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4527 for as_dir in $PATH
4529 IFS=$as_save_IFS
4530 test -z "$as_dir" && as_dir=.
4531 for ac_exec_ext in '' $ac_executable_extensions; do
4532 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4533 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4534 ac_prog_rejected=yes
4535 continue
4537 ac_cv_prog_CC="cc"
4538 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4539 break 2
4541 done
4542 done
4543 IFS=$as_save_IFS
4545 if test $ac_prog_rejected = yes; then
4546 # We found a bogon in the path, so make sure we never use it.
4547 set dummy $ac_cv_prog_CC
4548 shift
4549 if test $# != 0; then
4550 # We chose a different compiler from the bogus one.
4551 # However, it has the same basename, so the bogon will be chosen
4552 # first if we set CC to just the basename; use the full file name.
4553 shift
4554 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4559 CC=$ac_cv_prog_CC
4560 if test -n "$CC"; then
4561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4562 $as_echo "$CC" >&6; }
4563 else
4564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4565 $as_echo "no" >&6; }
4570 if test -z "$CC"; then
4571 if test -n "$ac_tool_prefix"; then
4572 for ac_prog in cl.exe
4574 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4575 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4576 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4577 $as_echo_n "checking for $ac_word... " >&6; }
4578 if test "${ac_cv_prog_CC+set}" = set; then :
4579 $as_echo_n "(cached) " >&6
4580 else
4581 if test -n "$CC"; then
4582 ac_cv_prog_CC="$CC" # Let the user override the test.
4583 else
4584 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4585 for as_dir in $PATH
4587 IFS=$as_save_IFS
4588 test -z "$as_dir" && as_dir=.
4589 for ac_exec_ext in '' $ac_executable_extensions; do
4590 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4591 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4592 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4593 break 2
4595 done
4596 done
4597 IFS=$as_save_IFS
4601 CC=$ac_cv_prog_CC
4602 if test -n "$CC"; then
4603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4604 $as_echo "$CC" >&6; }
4605 else
4606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4607 $as_echo "no" >&6; }
4611 test -n "$CC" && break
4612 done
4614 if test -z "$CC"; then
4615 ac_ct_CC=$CC
4616 for ac_prog in cl.exe
4618 # Extract the first word of "$ac_prog", so it can be a program name with args.
4619 set dummy $ac_prog; ac_word=$2
4620 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4621 $as_echo_n "checking for $ac_word... " >&6; }
4622 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
4623 $as_echo_n "(cached) " >&6
4624 else
4625 if test -n "$ac_ct_CC"; then
4626 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4627 else
4628 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4629 for as_dir in $PATH
4631 IFS=$as_save_IFS
4632 test -z "$as_dir" && as_dir=.
4633 for ac_exec_ext in '' $ac_executable_extensions; do
4634 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4635 ac_cv_prog_ac_ct_CC="$ac_prog"
4636 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4637 break 2
4639 done
4640 done
4641 IFS=$as_save_IFS
4645 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4646 if test -n "$ac_ct_CC"; then
4647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4648 $as_echo "$ac_ct_CC" >&6; }
4649 else
4650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4651 $as_echo "no" >&6; }
4655 test -n "$ac_ct_CC" && break
4656 done
4658 if test "x$ac_ct_CC" = x; then
4659 CC=""
4660 else
4661 case $cross_compiling:$ac_tool_warned in
4662 yes:)
4663 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4664 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4665 ac_tool_warned=yes ;;
4666 esac
4667 CC=$ac_ct_CC
4674 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4675 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4676 as_fn_error "no acceptable C compiler found in \$PATH
4677 See \`config.log' for more details." "$LINENO" 5; }
4679 # Provide some information about the compiler.
4680 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4681 set X $ac_compile
4682 ac_compiler=$2
4683 for ac_option in --version -v -V -qversion; do
4684 { { ac_try="$ac_compiler $ac_option >&5"
4685 case "(($ac_try" in
4686 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4687 *) ac_try_echo=$ac_try;;
4688 esac
4689 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4690 $as_echo "$ac_try_echo"; } >&5
4691 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4692 ac_status=$?
4693 if test -s conftest.err; then
4694 sed '10a\
4695 ... rest of stderr output deleted ...
4696 10q' conftest.err >conftest.er1
4697 cat conftest.er1 >&5
4698 rm -f conftest.er1 conftest.err
4700 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4701 test $ac_status = 0; }
4702 done
4704 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4705 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4706 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
4707 $as_echo_n "(cached) " >&6
4708 else
4709 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4710 /* end confdefs.h. */
4713 main ()
4715 #ifndef __GNUC__
4716 choke me
4717 #endif
4720 return 0;
4722 _ACEOF
4723 if ac_fn_c_try_compile "$LINENO"; then :
4724 ac_compiler_gnu=yes
4725 else
4726 ac_compiler_gnu=no
4728 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4729 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4733 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4734 if test $ac_compiler_gnu = yes; then
4735 GCC=yes
4736 else
4737 GCC=
4739 ac_test_CFLAGS=${CFLAGS+set}
4740 ac_save_CFLAGS=$CFLAGS
4741 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4742 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4743 if test "${ac_cv_prog_cc_g+set}" = set; then :
4744 $as_echo_n "(cached) " >&6
4745 else
4746 ac_save_c_werror_flag=$ac_c_werror_flag
4747 ac_c_werror_flag=yes
4748 ac_cv_prog_cc_g=no
4749 CFLAGS="-g"
4750 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4751 /* end confdefs.h. */
4754 main ()
4758 return 0;
4760 _ACEOF
4761 if ac_fn_c_try_compile "$LINENO"; then :
4762 ac_cv_prog_cc_g=yes
4763 else
4764 CFLAGS=""
4765 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4766 /* end confdefs.h. */
4769 main ()
4773 return 0;
4775 _ACEOF
4776 if ac_fn_c_try_compile "$LINENO"; then :
4778 else
4779 ac_c_werror_flag=$ac_save_c_werror_flag
4780 CFLAGS="-g"
4781 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4782 /* end confdefs.h. */
4785 main ()
4789 return 0;
4791 _ACEOF
4792 if ac_fn_c_try_compile "$LINENO"; then :
4793 ac_cv_prog_cc_g=yes
4795 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4797 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4799 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4800 ac_c_werror_flag=$ac_save_c_werror_flag
4802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4803 $as_echo "$ac_cv_prog_cc_g" >&6; }
4804 if test "$ac_test_CFLAGS" = set; then
4805 CFLAGS=$ac_save_CFLAGS
4806 elif test $ac_cv_prog_cc_g = yes; then
4807 if test "$GCC" = yes; then
4808 CFLAGS="-g -O2"
4809 else
4810 CFLAGS="-g"
4812 else
4813 if test "$GCC" = yes; then
4814 CFLAGS="-O2"
4815 else
4816 CFLAGS=
4819 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4820 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4821 if test "${ac_cv_prog_cc_c89+set}" = set; then :
4822 $as_echo_n "(cached) " >&6
4823 else
4824 ac_cv_prog_cc_c89=no
4825 ac_save_CC=$CC
4826 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4827 /* end confdefs.h. */
4828 #include <stdarg.h>
4829 #include <stdio.h>
4830 #include <sys/types.h>
4831 #include <sys/stat.h>
4832 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4833 struct buf { int x; };
4834 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4835 static char *e (p, i)
4836 char **p;
4837 int i;
4839 return p[i];
4841 static char *f (char * (*g) (char **, int), char **p, ...)
4843 char *s;
4844 va_list v;
4845 va_start (v,p);
4846 s = g (p, va_arg (v,int));
4847 va_end (v);
4848 return s;
4851 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4852 function prototypes and stuff, but not '\xHH' hex character constants.
4853 These don't provoke an error unfortunately, instead are silently treated
4854 as 'x'. The following induces an error, until -std is added to get
4855 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4856 array size at least. It's necessary to write '\x00'==0 to get something
4857 that's true only with -std. */
4858 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4860 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4861 inside strings and character constants. */
4862 #define FOO(x) 'x'
4863 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4865 int test (int i, double x);
4866 struct s1 {int (*f) (int a);};
4867 struct s2 {int (*f) (double a);};
4868 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4869 int argc;
4870 char **argv;
4872 main ()
4874 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4876 return 0;
4878 _ACEOF
4879 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4880 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4882 CC="$ac_save_CC $ac_arg"
4883 if ac_fn_c_try_compile "$LINENO"; then :
4884 ac_cv_prog_cc_c89=$ac_arg
4886 rm -f core conftest.err conftest.$ac_objext
4887 test "x$ac_cv_prog_cc_c89" != "xno" && break
4888 done
4889 rm -f conftest.$ac_ext
4890 CC=$ac_save_CC
4893 # AC_CACHE_VAL
4894 case "x$ac_cv_prog_cc_c89" in
4896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4897 $as_echo "none needed" >&6; } ;;
4898 xno)
4899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4900 $as_echo "unsupported" >&6; } ;;
4902 CC="$CC $ac_cv_prog_cc_c89"
4903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4904 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4905 esac
4906 if test "x$ac_cv_prog_cc_c89" != xno; then :
4910 ac_ext=c
4911 ac_cpp='$CPP $CPPFLAGS'
4912 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4913 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4914 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4920 if test -n "$ac_tool_prefix"; then
4921 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4922 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4923 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4924 $as_echo_n "checking for $ac_word... " >&6; }
4925 if test "${ac_cv_prog_RANLIB+set}" = set; then :
4926 $as_echo_n "(cached) " >&6
4927 else
4928 if test -n "$RANLIB"; then
4929 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4930 else
4931 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4932 for as_dir in $PATH
4934 IFS=$as_save_IFS
4935 test -z "$as_dir" && as_dir=.
4936 for ac_exec_ext in '' $ac_executable_extensions; do
4937 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4938 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4939 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4940 break 2
4942 done
4943 done
4944 IFS=$as_save_IFS
4948 RANLIB=$ac_cv_prog_RANLIB
4949 if test -n "$RANLIB"; then
4950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
4951 $as_echo "$RANLIB" >&6; }
4952 else
4953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4954 $as_echo "no" >&6; }
4959 if test -z "$ac_cv_prog_RANLIB"; then
4960 ac_ct_RANLIB=$RANLIB
4961 # Extract the first word of "ranlib", so it can be a program name with args.
4962 set dummy ranlib; ac_word=$2
4963 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4964 $as_echo_n "checking for $ac_word... " >&6; }
4965 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
4966 $as_echo_n "(cached) " >&6
4967 else
4968 if test -n "$ac_ct_RANLIB"; then
4969 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4970 else
4971 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4972 for as_dir in $PATH
4974 IFS=$as_save_IFS
4975 test -z "$as_dir" && as_dir=.
4976 for ac_exec_ext in '' $ac_executable_extensions; do
4977 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4978 ac_cv_prog_ac_ct_RANLIB="ranlib"
4979 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4980 break 2
4982 done
4983 done
4984 IFS=$as_save_IFS
4988 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4989 if test -n "$ac_ct_RANLIB"; then
4990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
4991 $as_echo "$ac_ct_RANLIB" >&6; }
4992 else
4993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4994 $as_echo "no" >&6; }
4997 if test "x$ac_ct_RANLIB" = x; then
4998 RANLIB=":"
4999 else
5000 case $cross_compiling:$ac_tool_warned in
5001 yes:)
5002 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5003 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5004 ac_tool_warned=yes ;;
5005 esac
5006 RANLIB=$ac_ct_RANLIB
5008 else
5009 RANLIB="$ac_cv_prog_RANLIB"
5013 for ac_prog in gawk mawk nawk awk
5015 # Extract the first word of "$ac_prog", so it can be a program name with args.
5016 set dummy $ac_prog; ac_word=$2
5017 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5018 $as_echo_n "checking for $ac_word... " >&6; }
5019 if test "${ac_cv_prog_AWK+set}" = set; then :
5020 $as_echo_n "(cached) " >&6
5021 else
5022 if test -n "$AWK"; then
5023 ac_cv_prog_AWK="$AWK" # Let the user override the test.
5024 else
5025 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5026 for as_dir in $PATH
5028 IFS=$as_save_IFS
5029 test -z "$as_dir" && as_dir=.
5030 for ac_exec_ext in '' $ac_executable_extensions; do
5031 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5032 ac_cv_prog_AWK="$ac_prog"
5033 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5034 break 2
5036 done
5037 done
5038 IFS=$as_save_IFS
5042 AWK=$ac_cv_prog_AWK
5043 if test -n "$AWK"; then
5044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
5045 $as_echo "$AWK" >&6; }
5046 else
5047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5048 $as_echo "no" >&6; }
5052 test -n "$AWK" && break
5053 done
5055 case "$AWK" in
5056 "") as_fn_error "can't build without awk" "$LINENO" 5 ;;
5057 esac
5059 case `pwd` in
5060 *\ * | *\ *)
5061 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
5062 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
5063 esac
5067 macro_version='2.2.7a'
5068 macro_revision='1.3134'
5082 ltmain="$ac_aux_dir/ltmain.sh"
5084 # Backslashify metacharacters that are still active within
5085 # double-quoted strings.
5086 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
5088 # Same as above, but do not quote variable references.
5089 double_quote_subst='s/\(["`\\]\)/\\\1/g'
5091 # Sed substitution to delay expansion of an escaped shell variable in a
5092 # double_quote_subst'ed string.
5093 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5095 # Sed substitution to delay expansion of an escaped single quote.
5096 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
5098 # Sed substitution to avoid accidental globbing in evaled expressions
5099 no_glob_subst='s/\*/\\\*/g'
5101 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
5102 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
5103 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
5105 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
5106 $as_echo_n "checking how to print strings... " >&6; }
5107 # Test print first, because it will be a builtin if present.
5108 if test "X`print -r -- -n 2>/dev/null`" = X-n && \
5109 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
5110 ECHO='print -r --'
5111 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
5112 ECHO='printf %s\n'
5113 else
5114 # Use this function as a fallback that always works.
5115 func_fallback_echo ()
5117 eval 'cat <<_LTECHO_EOF
5119 _LTECHO_EOF'
5121 ECHO='func_fallback_echo'
5124 # func_echo_all arg...
5125 # Invoke $ECHO with all args, space-separated.
5126 func_echo_all ()
5128 $ECHO ""
5131 case "$ECHO" in
5132 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
5133 $as_echo "printf" >&6; } ;;
5134 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
5135 $as_echo "print -r" >&6; } ;;
5136 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
5137 $as_echo "cat" >&6; } ;;
5138 esac
5153 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
5154 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
5155 if test "${ac_cv_path_SED+set}" = set; then :
5156 $as_echo_n "(cached) " >&6
5157 else
5158 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
5159 for ac_i in 1 2 3 4 5 6 7; do
5160 ac_script="$ac_script$as_nl$ac_script"
5161 done
5162 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
5163 { ac_script=; unset ac_script;}
5164 if test -z "$SED"; then
5165 ac_path_SED_found=false
5166 # Loop through the user's path and test for each of PROGNAME-LIST
5167 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5168 for as_dir in $PATH
5170 IFS=$as_save_IFS
5171 test -z "$as_dir" && as_dir=.
5172 for ac_prog in sed gsed; do
5173 for ac_exec_ext in '' $ac_executable_extensions; do
5174 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
5175 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
5176 # Check for GNU ac_path_SED and select it if it is found.
5177 # Check for GNU $ac_path_SED
5178 case `"$ac_path_SED" --version 2>&1` in
5179 *GNU*)
5180 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
5182 ac_count=0
5183 $as_echo_n 0123456789 >"conftest.in"
5184 while :
5186 cat "conftest.in" "conftest.in" >"conftest.tmp"
5187 mv "conftest.tmp" "conftest.in"
5188 cp "conftest.in" "conftest.nl"
5189 $as_echo '' >> "conftest.nl"
5190 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
5191 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5192 as_fn_arith $ac_count + 1 && ac_count=$as_val
5193 if test $ac_count -gt ${ac_path_SED_max-0}; then
5194 # Best one so far, save it but keep looking for a better one
5195 ac_cv_path_SED="$ac_path_SED"
5196 ac_path_SED_max=$ac_count
5198 # 10*(2^10) chars as input seems more than enough
5199 test $ac_count -gt 10 && break
5200 done
5201 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5202 esac
5204 $ac_path_SED_found && break 3
5205 done
5206 done
5207 done
5208 IFS=$as_save_IFS
5209 if test -z "$ac_cv_path_SED"; then
5210 as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
5212 else
5213 ac_cv_path_SED=$SED
5217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
5218 $as_echo "$ac_cv_path_SED" >&6; }
5219 SED="$ac_cv_path_SED"
5220 rm -f conftest.sed
5222 test -z "$SED" && SED=sed
5223 Xsed="$SED -e 1s/^X//"
5235 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
5236 $as_echo_n "checking for fgrep... " >&6; }
5237 if test "${ac_cv_path_FGREP+set}" = set; then :
5238 $as_echo_n "(cached) " >&6
5239 else
5240 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
5241 then ac_cv_path_FGREP="$GREP -F"
5242 else
5243 if test -z "$FGREP"; then
5244 ac_path_FGREP_found=false
5245 # Loop through the user's path and test for each of PROGNAME-LIST
5246 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5247 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5249 IFS=$as_save_IFS
5250 test -z "$as_dir" && as_dir=.
5251 for ac_prog in fgrep; do
5252 for ac_exec_ext in '' $ac_executable_extensions; do
5253 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
5254 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
5255 # Check for GNU ac_path_FGREP and select it if it is found.
5256 # Check for GNU $ac_path_FGREP
5257 case `"$ac_path_FGREP" --version 2>&1` in
5258 *GNU*)
5259 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
5261 ac_count=0
5262 $as_echo_n 0123456789 >"conftest.in"
5263 while :
5265 cat "conftest.in" "conftest.in" >"conftest.tmp"
5266 mv "conftest.tmp" "conftest.in"
5267 cp "conftest.in" "conftest.nl"
5268 $as_echo 'FGREP' >> "conftest.nl"
5269 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
5270 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5271 as_fn_arith $ac_count + 1 && ac_count=$as_val
5272 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5273 # Best one so far, save it but keep looking for a better one
5274 ac_cv_path_FGREP="$ac_path_FGREP"
5275 ac_path_FGREP_max=$ac_count
5277 # 10*(2^10) chars as input seems more than enough
5278 test $ac_count -gt 10 && break
5279 done
5280 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5281 esac
5283 $ac_path_FGREP_found && break 3
5284 done
5285 done
5286 done
5287 IFS=$as_save_IFS
5288 if test -z "$ac_cv_path_FGREP"; then
5289 as_fn_error "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5291 else
5292 ac_cv_path_FGREP=$FGREP
5297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
5298 $as_echo "$ac_cv_path_FGREP" >&6; }
5299 FGREP="$ac_cv_path_FGREP"
5302 test -z "$GREP" && GREP=grep
5322 # Check whether --with-gnu-ld was given.
5323 if test "${with_gnu_ld+set}" = set; then :
5324 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
5325 else
5326 with_gnu_ld=no
5329 ac_prog=ld
5330 if test "$GCC" = yes; then
5331 # Check if gcc -print-prog-name=ld gives a path.
5332 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5333 $as_echo_n "checking for ld used by $CC... " >&6; }
5334 case $host in
5335 *-*-mingw*)
5336 # gcc leaves a trailing carriage return which upsets mingw
5337 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5339 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5340 esac
5341 case $ac_prog in
5342 # Accept absolute paths.
5343 [\\/]* | ?:[\\/]*)
5344 re_direlt='/[^/][^/]*/\.\./'
5345 # Canonicalize the pathname of ld
5346 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5347 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5348 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5349 done
5350 test -z "$LD" && LD="$ac_prog"
5353 # If it fails, then pretend we aren't using GCC.
5354 ac_prog=ld
5357 # If it is relative, then search for the first ld in PATH.
5358 with_gnu_ld=unknown
5360 esac
5361 elif test "$with_gnu_ld" = yes; then
5362 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5363 $as_echo_n "checking for GNU ld... " >&6; }
5364 else
5365 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5366 $as_echo_n "checking for non-GNU ld... " >&6; }
5368 if test "${lt_cv_path_LD+set}" = set; then :
5369 $as_echo_n "(cached) " >&6
5370 else
5371 if test -z "$LD"; then
5372 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5373 for ac_dir in $PATH; do
5374 IFS="$lt_save_ifs"
5375 test -z "$ac_dir" && ac_dir=.
5376 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5377 lt_cv_path_LD="$ac_dir/$ac_prog"
5378 # Check to see if the program is GNU ld. I'd rather use --version,
5379 # but apparently some variants of GNU ld only accept -v.
5380 # Break only if it was the GNU/non-GNU ld that we prefer.
5381 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5382 *GNU* | *'with BFD'*)
5383 test "$with_gnu_ld" != no && break
5386 test "$with_gnu_ld" != yes && break
5388 esac
5390 done
5391 IFS="$lt_save_ifs"
5392 else
5393 lt_cv_path_LD="$LD" # Let the user override the test with a path.
5397 LD="$lt_cv_path_LD"
5398 if test -n "$LD"; then
5399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5400 $as_echo "$LD" >&6; }
5401 else
5402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5403 $as_echo "no" >&6; }
5405 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
5406 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5407 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
5408 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
5409 $as_echo_n "(cached) " >&6
5410 else
5411 # I'd rather use --version here, but apparently some GNU lds only accept -v.
5412 case `$LD -v 2>&1 </dev/null` in
5413 *GNU* | *'with BFD'*)
5414 lt_cv_prog_gnu_ld=yes
5417 lt_cv_prog_gnu_ld=no
5419 esac
5421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5422 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
5423 with_gnu_ld=$lt_cv_prog_gnu_ld
5433 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5434 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5435 if test "${lt_cv_path_NM+set}" = set; then :
5436 $as_echo_n "(cached) " >&6
5437 else
5438 if test -n "$NM"; then
5439 # Let the user override the test.
5440 lt_cv_path_NM="$NM"
5441 else
5442 lt_nm_to_check="${ac_tool_prefix}nm"
5443 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5444 lt_nm_to_check="$lt_nm_to_check nm"
5446 for lt_tmp_nm in $lt_nm_to_check; do
5447 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5448 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5449 IFS="$lt_save_ifs"
5450 test -z "$ac_dir" && ac_dir=.
5451 tmp_nm="$ac_dir/$lt_tmp_nm"
5452 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5453 # Check to see if the nm accepts a BSD-compat flag.
5454 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5455 # nm: unknown option "B" ignored
5456 # Tru64's nm complains that /dev/null is an invalid object file
5457 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5458 */dev/null* | *'Invalid file or object type'*)
5459 lt_cv_path_NM="$tmp_nm -B"
5460 break
5463 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5464 */dev/null*)
5465 lt_cv_path_NM="$tmp_nm -p"
5466 break
5469 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5470 continue # so that we can try to find one that supports BSD flags
5472 esac
5474 esac
5476 done
5477 IFS="$lt_save_ifs"
5478 done
5479 : ${lt_cv_path_NM=no}
5482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5483 $as_echo "$lt_cv_path_NM" >&6; }
5484 if test "$lt_cv_path_NM" != "no"; then
5485 NM="$lt_cv_path_NM"
5486 else
5487 # Didn't find any BSD compatible name lister, look for dumpbin.
5488 if test -n "$DUMPBIN"; then :
5489 # Let the user override the test.
5490 else
5491 if test -n "$ac_tool_prefix"; then
5492 for ac_prog in dumpbin "link -dump"
5494 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5495 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5496 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5497 $as_echo_n "checking for $ac_word... " >&6; }
5498 if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
5499 $as_echo_n "(cached) " >&6
5500 else
5501 if test -n "$DUMPBIN"; then
5502 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5503 else
5504 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5505 for as_dir in $PATH
5507 IFS=$as_save_IFS
5508 test -z "$as_dir" && as_dir=.
5509 for ac_exec_ext in '' $ac_executable_extensions; do
5510 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5511 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5512 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5513 break 2
5515 done
5516 done
5517 IFS=$as_save_IFS
5521 DUMPBIN=$ac_cv_prog_DUMPBIN
5522 if test -n "$DUMPBIN"; then
5523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5524 $as_echo "$DUMPBIN" >&6; }
5525 else
5526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5527 $as_echo "no" >&6; }
5531 test -n "$DUMPBIN" && break
5532 done
5534 if test -z "$DUMPBIN"; then
5535 ac_ct_DUMPBIN=$DUMPBIN
5536 for ac_prog in dumpbin "link -dump"
5538 # Extract the first word of "$ac_prog", so it can be a program name with args.
5539 set dummy $ac_prog; ac_word=$2
5540 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5541 $as_echo_n "checking for $ac_word... " >&6; }
5542 if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
5543 $as_echo_n "(cached) " >&6
5544 else
5545 if test -n "$ac_ct_DUMPBIN"; then
5546 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5547 else
5548 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5549 for as_dir in $PATH
5551 IFS=$as_save_IFS
5552 test -z "$as_dir" && as_dir=.
5553 for ac_exec_ext in '' $ac_executable_extensions; do
5554 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5555 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5556 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5557 break 2
5559 done
5560 done
5561 IFS=$as_save_IFS
5565 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5566 if test -n "$ac_ct_DUMPBIN"; then
5567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5568 $as_echo "$ac_ct_DUMPBIN" >&6; }
5569 else
5570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5571 $as_echo "no" >&6; }
5575 test -n "$ac_ct_DUMPBIN" && break
5576 done
5578 if test "x$ac_ct_DUMPBIN" = x; then
5579 DUMPBIN=":"
5580 else
5581 case $cross_compiling:$ac_tool_warned in
5582 yes:)
5583 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5584 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5585 ac_tool_warned=yes ;;
5586 esac
5587 DUMPBIN=$ac_ct_DUMPBIN
5591 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
5592 *COFF*)
5593 DUMPBIN="$DUMPBIN -symbols"
5596 DUMPBIN=:
5598 esac
5601 if test "$DUMPBIN" != ":"; then
5602 NM="$DUMPBIN"
5605 test -z "$NM" && NM=nm
5612 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5613 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
5614 if test "${lt_cv_nm_interface+set}" = set; then :
5615 $as_echo_n "(cached) " >&6
5616 else
5617 lt_cv_nm_interface="BSD nm"
5618 echo "int some_variable = 0;" > conftest.$ac_ext
5619 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
5620 (eval "$ac_compile" 2>conftest.err)
5621 cat conftest.err >&5
5622 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5623 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5624 cat conftest.err >&5
5625 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
5626 cat conftest.out >&5
5627 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5628 lt_cv_nm_interface="MS dumpbin"
5630 rm -f conftest*
5632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5633 $as_echo "$lt_cv_nm_interface" >&6; }
5635 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5636 $as_echo_n "checking whether ln -s works... " >&6; }
5637 LN_S=$as_ln_s
5638 if test "$LN_S" = "ln -s"; then
5639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5640 $as_echo "yes" >&6; }
5641 else
5642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5643 $as_echo "no, using $LN_S" >&6; }
5646 # find the maximum length of command line arguments
5647 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5648 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
5649 if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
5650 $as_echo_n "(cached) " >&6
5651 else
5653 teststring="ABCD"
5655 case $build_os in
5656 msdosdjgpp*)
5657 # On DJGPP, this test can blow up pretty badly due to problems in libc
5658 # (any single argument exceeding 2000 bytes causes a buffer overrun
5659 # during glob expansion). Even if it were fixed, the result of this
5660 # check would be larger than it should be.
5661 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5664 gnu*)
5665 # Under GNU Hurd, this test is not required because there is
5666 # no limit to the length of command line arguments.
5667 # Libtool will interpret -1 as no limit whatsoever
5668 lt_cv_sys_max_cmd_len=-1;
5671 cygwin* | mingw* | cegcc*)
5672 # On Win9x/ME, this test blows up -- it succeeds, but takes
5673 # about 5 minutes as the teststring grows exponentially.
5674 # Worse, since 9x/ME are not pre-emptively multitasking,
5675 # you end up with a "frozen" computer, even though with patience
5676 # the test eventually succeeds (with a max line length of 256k).
5677 # Instead, let's just punt: use the minimum linelength reported by
5678 # all of the supported platforms: 8192 (on NT/2K/XP).
5679 lt_cv_sys_max_cmd_len=8192;
5682 mint*)
5683 # On MiNT this can take a long time and run out of memory.
5684 lt_cv_sys_max_cmd_len=8192;
5687 amigaos*)
5688 # On AmigaOS with pdksh, this test takes hours, literally.
5689 # So we just punt and use a minimum line length of 8192.
5690 lt_cv_sys_max_cmd_len=8192;
5693 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5694 # This has been around since 386BSD, at least. Likely further.
5695 if test -x /sbin/sysctl; then
5696 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5697 elif test -x /usr/sbin/sysctl; then
5698 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5699 else
5700 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
5702 # And add a safety zone
5703 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5704 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5707 interix*)
5708 # We know the value 262144 and hardcode it with a safety zone (like BSD)
5709 lt_cv_sys_max_cmd_len=196608
5712 osf*)
5713 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5714 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5715 # nice to cause kernel panics so lets avoid the loop below.
5716 # First set a reasonable default.
5717 lt_cv_sys_max_cmd_len=16384
5719 if test -x /sbin/sysconfig; then
5720 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5721 *1*) lt_cv_sys_max_cmd_len=-1 ;;
5722 esac
5725 sco3.2v5*)
5726 lt_cv_sys_max_cmd_len=102400
5728 sysv5* | sco5v6* | sysv4.2uw2*)
5729 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5730 if test -n "$kargmax"; then
5731 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
5732 else
5733 lt_cv_sys_max_cmd_len=32768
5737 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5738 if test -n "$lt_cv_sys_max_cmd_len"; then
5739 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5740 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5741 else
5742 # Make teststring a little bigger before we do anything with it.
5743 # a 1K string should be a reasonable start.
5744 for i in 1 2 3 4 5 6 7 8 ; do
5745 teststring=$teststring$teststring
5746 done
5747 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5748 # If test is not a shell built-in, we'll probably end up computing a
5749 # maximum length that is only half of the actual maximum length, but
5750 # we can't tell.
5751 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
5752 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
5753 test $i != 17 # 1/2 MB should be enough
5755 i=`expr $i + 1`
5756 teststring=$teststring$teststring
5757 done
5758 # Only check the string length outside the loop.
5759 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5760 teststring=
5761 # Add a significant safety factor because C++ compilers can tack on
5762 # massive amounts of additional arguments before passing them to the
5763 # linker. It appears as though 1/2 is a usable value.
5764 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5767 esac
5771 if test -n $lt_cv_sys_max_cmd_len ; then
5772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5773 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
5774 else
5775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
5776 $as_echo "none" >&6; }
5778 max_cmd_len=$lt_cv_sys_max_cmd_len
5785 : ${CP="cp -f"}
5786 : ${MV="mv -f"}
5787 : ${RM="rm -f"}
5789 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
5790 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
5791 # Try some XSI features
5792 xsi_shell=no
5793 ( _lt_dummy="a/b/c"
5794 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
5795 = c,a/b,, \
5796 && eval 'test $(( 1 + 1 )) -eq 2 \
5797 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
5798 && xsi_shell=yes
5799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
5800 $as_echo "$xsi_shell" >&6; }
5803 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
5804 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
5805 lt_shell_append=no
5806 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
5807 >/dev/null 2>&1 \
5808 && lt_shell_append=yes
5809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
5810 $as_echo "$lt_shell_append" >&6; }
5813 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5814 lt_unset=unset
5815 else
5816 lt_unset=false
5823 # test EBCDIC or ASCII
5824 case `echo X|tr X '\101'` in
5825 A) # ASCII based system
5826 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5827 lt_SP2NL='tr \040 \012'
5828 lt_NL2SP='tr \015\012 \040\040'
5830 *) # EBCDIC based system
5831 lt_SP2NL='tr \100 \n'
5832 lt_NL2SP='tr \r\n \100\100'
5834 esac
5844 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5845 $as_echo_n "checking for $LD option to reload object files... " >&6; }
5846 if test "${lt_cv_ld_reload_flag+set}" = set; then :
5847 $as_echo_n "(cached) " >&6
5848 else
5849 lt_cv_ld_reload_flag='-r'
5851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5852 $as_echo "$lt_cv_ld_reload_flag" >&6; }
5853 reload_flag=$lt_cv_ld_reload_flag
5854 case $reload_flag in
5855 "" | " "*) ;;
5856 *) reload_flag=" $reload_flag" ;;
5857 esac
5858 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5859 case $host_os in
5860 darwin*)
5861 if test "$GCC" = yes; then
5862 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5863 else
5864 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5867 esac
5877 if test -n "$ac_tool_prefix"; then
5878 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5879 set dummy ${ac_tool_prefix}objdump; ac_word=$2
5880 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5881 $as_echo_n "checking for $ac_word... " >&6; }
5882 if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
5883 $as_echo_n "(cached) " >&6
5884 else
5885 if test -n "$OBJDUMP"; then
5886 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5887 else
5888 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5889 for as_dir in $PATH
5891 IFS=$as_save_IFS
5892 test -z "$as_dir" && as_dir=.
5893 for ac_exec_ext in '' $ac_executable_extensions; do
5894 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5895 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5896 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5897 break 2
5899 done
5900 done
5901 IFS=$as_save_IFS
5905 OBJDUMP=$ac_cv_prog_OBJDUMP
5906 if test -n "$OBJDUMP"; then
5907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5908 $as_echo "$OBJDUMP" >&6; }
5909 else
5910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5911 $as_echo "no" >&6; }
5916 if test -z "$ac_cv_prog_OBJDUMP"; then
5917 ac_ct_OBJDUMP=$OBJDUMP
5918 # Extract the first word of "objdump", so it can be a program name with args.
5919 set dummy objdump; ac_word=$2
5920 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5921 $as_echo_n "checking for $ac_word... " >&6; }
5922 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
5923 $as_echo_n "(cached) " >&6
5924 else
5925 if test -n "$ac_ct_OBJDUMP"; then
5926 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5927 else
5928 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5929 for as_dir in $PATH
5931 IFS=$as_save_IFS
5932 test -z "$as_dir" && as_dir=.
5933 for ac_exec_ext in '' $ac_executable_extensions; do
5934 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5935 ac_cv_prog_ac_ct_OBJDUMP="objdump"
5936 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5937 break 2
5939 done
5940 done
5941 IFS=$as_save_IFS
5945 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5946 if test -n "$ac_ct_OBJDUMP"; then
5947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5948 $as_echo "$ac_ct_OBJDUMP" >&6; }
5949 else
5950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5951 $as_echo "no" >&6; }
5954 if test "x$ac_ct_OBJDUMP" = x; then
5955 OBJDUMP="false"
5956 else
5957 case $cross_compiling:$ac_tool_warned in
5958 yes:)
5959 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5960 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5961 ac_tool_warned=yes ;;
5962 esac
5963 OBJDUMP=$ac_ct_OBJDUMP
5965 else
5966 OBJDUMP="$ac_cv_prog_OBJDUMP"
5969 test -z "$OBJDUMP" && OBJDUMP=objdump
5979 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5980 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
5981 if test "${lt_cv_deplibs_check_method+set}" = set; then :
5982 $as_echo_n "(cached) " >&6
5983 else
5984 lt_cv_file_magic_cmd='$MAGIC_CMD'
5985 lt_cv_file_magic_test_file=
5986 lt_cv_deplibs_check_method='unknown'
5987 # Need to set the preceding variable on all platforms that support
5988 # interlibrary dependencies.
5989 # 'none' -- dependencies not supported.
5990 # `unknown' -- same as none, but documents that we really don't know.
5991 # 'pass_all' -- all dependencies passed with no checks.
5992 # 'test_compile' -- check by making test program.
5993 # 'file_magic [[regex]]' -- check by looking for files in library path
5994 # which responds to the $file_magic_cmd with a given extended regex.
5995 # If you have `file' or equivalent on your system and you're not sure
5996 # whether `pass_all' will *always* work, you probably want this one.
5998 case $host_os in
5999 aix[4-9]*)
6000 lt_cv_deplibs_check_method=pass_all
6003 beos*)
6004 lt_cv_deplibs_check_method=pass_all
6007 bsdi[45]*)
6008 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6009 lt_cv_file_magic_cmd='/usr/bin/file -L'
6010 lt_cv_file_magic_test_file=/shlib/libc.so
6013 cygwin*)
6014 # func_win32_libid is a shell function defined in ltmain.sh
6015 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6016 lt_cv_file_magic_cmd='func_win32_libid'
6019 mingw* | pw32*)
6020 # Base MSYS/MinGW do not provide the 'file' command needed by
6021 # func_win32_libid shell function, so use a weaker test based on 'objdump',
6022 # unless we find 'file', for example because we are cross-compiling.
6023 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
6024 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
6025 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6026 lt_cv_file_magic_cmd='func_win32_libid'
6027 else
6028 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
6029 lt_cv_file_magic_cmd='$OBJDUMP -f'
6033 cegcc*)
6034 # use the weaker test based on 'objdump'. See mingw*.
6035 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
6036 lt_cv_file_magic_cmd='$OBJDUMP -f'
6039 darwin* | rhapsody*)
6040 lt_cv_deplibs_check_method=pass_all
6043 freebsd* | dragonfly*)
6044 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6045 case $host_cpu in
6046 i*86 )
6047 # Not sure whether the presence of OpenBSD here was a mistake.
6048 # Let's accept both of them until this is cleared up.
6049 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6050 lt_cv_file_magic_cmd=/usr/bin/file
6051 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6053 esac
6054 else
6055 lt_cv_deplibs_check_method=pass_all
6059 gnu*)
6060 lt_cv_deplibs_check_method=pass_all
6063 haiku*)
6064 lt_cv_deplibs_check_method=pass_all
6067 hpux10.20* | hpux11*)
6068 lt_cv_file_magic_cmd=/usr/bin/file
6069 case $host_cpu in
6070 ia64*)
6071 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6072 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6074 hppa*64*)
6075 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]'
6076 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6079 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
6080 lt_cv_file_magic_test_file=/usr/lib/libc.sl
6082 esac
6085 interix[3-9]*)
6086 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6087 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6090 irix5* | irix6* | nonstopux*)
6091 case $LD in
6092 *-32|*"-32 ") libmagic=32-bit;;
6093 *-n32|*"-n32 ") libmagic=N32;;
6094 *-64|*"-64 ") libmagic=64-bit;;
6095 *) libmagic=never-match;;
6096 esac
6097 lt_cv_deplibs_check_method=pass_all
6100 # This must be Linux ELF.
6101 linux* | k*bsd*-gnu | kopensolaris*-gnu)
6102 lt_cv_deplibs_check_method=pass_all
6105 netbsd*)
6106 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6107 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6108 else
6109 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6113 newos6*)
6114 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6115 lt_cv_file_magic_cmd=/usr/bin/file
6116 lt_cv_file_magic_test_file=/usr/lib/libnls.so
6119 *nto* | *qnx*)
6120 lt_cv_deplibs_check_method=pass_all
6123 openbsd*)
6124 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6125 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6126 else
6127 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6131 osf3* | osf4* | osf5*)
6132 lt_cv_deplibs_check_method=pass_all
6135 rdos*)
6136 lt_cv_deplibs_check_method=pass_all
6139 solaris*)
6140 lt_cv_deplibs_check_method=pass_all
6143 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6144 lt_cv_deplibs_check_method=pass_all
6147 sysv4 | sysv4.3*)
6148 case $host_vendor in
6149 motorola)
6150 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]'
6151 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6153 ncr)
6154 lt_cv_deplibs_check_method=pass_all
6156 sequent)
6157 lt_cv_file_magic_cmd='/bin/file'
6158 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6160 sni)
6161 lt_cv_file_magic_cmd='/bin/file'
6162 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6163 lt_cv_file_magic_test_file=/lib/libc.so
6165 siemens)
6166 lt_cv_deplibs_check_method=pass_all
6169 lt_cv_deplibs_check_method=pass_all
6171 esac
6174 tpf*)
6175 lt_cv_deplibs_check_method=pass_all
6177 esac
6180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
6181 $as_echo "$lt_cv_deplibs_check_method" >&6; }
6182 file_magic_cmd=$lt_cv_file_magic_cmd
6183 deplibs_check_method=$lt_cv_deplibs_check_method
6184 test -z "$deplibs_check_method" && deplibs_check_method=unknown
6197 if test -n "$ac_tool_prefix"; then
6198 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6199 set dummy ${ac_tool_prefix}ar; ac_word=$2
6200 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6201 $as_echo_n "checking for $ac_word... " >&6; }
6202 if test "${ac_cv_prog_AR+set}" = set; then :
6203 $as_echo_n "(cached) " >&6
6204 else
6205 if test -n "$AR"; then
6206 ac_cv_prog_AR="$AR" # Let the user override the test.
6207 else
6208 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6209 for as_dir in $PATH
6211 IFS=$as_save_IFS
6212 test -z "$as_dir" && as_dir=.
6213 for ac_exec_ext in '' $ac_executable_extensions; do
6214 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6215 ac_cv_prog_AR="${ac_tool_prefix}ar"
6216 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6217 break 2
6219 done
6220 done
6221 IFS=$as_save_IFS
6225 AR=$ac_cv_prog_AR
6226 if test -n "$AR"; then
6227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6228 $as_echo "$AR" >&6; }
6229 else
6230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6231 $as_echo "no" >&6; }
6236 if test -z "$ac_cv_prog_AR"; then
6237 ac_ct_AR=$AR
6238 # Extract the first word of "ar", so it can be a program name with args.
6239 set dummy ar; ac_word=$2
6240 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6241 $as_echo_n "checking for $ac_word... " >&6; }
6242 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
6243 $as_echo_n "(cached) " >&6
6244 else
6245 if test -n "$ac_ct_AR"; then
6246 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6247 else
6248 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6249 for as_dir in $PATH
6251 IFS=$as_save_IFS
6252 test -z "$as_dir" && as_dir=.
6253 for ac_exec_ext in '' $ac_executable_extensions; do
6254 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6255 ac_cv_prog_ac_ct_AR="ar"
6256 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6257 break 2
6259 done
6260 done
6261 IFS=$as_save_IFS
6265 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6266 if test -n "$ac_ct_AR"; then
6267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6268 $as_echo "$ac_ct_AR" >&6; }
6269 else
6270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6271 $as_echo "no" >&6; }
6274 if test "x$ac_ct_AR" = x; then
6275 AR="false"
6276 else
6277 case $cross_compiling:$ac_tool_warned in
6278 yes:)
6279 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6280 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6281 ac_tool_warned=yes ;;
6282 esac
6283 AR=$ac_ct_AR
6285 else
6286 AR="$ac_cv_prog_AR"
6289 test -z "$AR" && AR=ar
6290 test -z "$AR_FLAGS" && AR_FLAGS=cru
6302 if test -n "$ac_tool_prefix"; then
6303 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6304 set dummy ${ac_tool_prefix}strip; ac_word=$2
6305 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6306 $as_echo_n "checking for $ac_word... " >&6; }
6307 if test "${ac_cv_prog_STRIP+set}" = set; then :
6308 $as_echo_n "(cached) " >&6
6309 else
6310 if test -n "$STRIP"; then
6311 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6312 else
6313 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6314 for as_dir in $PATH
6316 IFS=$as_save_IFS
6317 test -z "$as_dir" && as_dir=.
6318 for ac_exec_ext in '' $ac_executable_extensions; do
6319 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6320 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6321 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6322 break 2
6324 done
6325 done
6326 IFS=$as_save_IFS
6330 STRIP=$ac_cv_prog_STRIP
6331 if test -n "$STRIP"; then
6332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6333 $as_echo "$STRIP" >&6; }
6334 else
6335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6336 $as_echo "no" >&6; }
6341 if test -z "$ac_cv_prog_STRIP"; then
6342 ac_ct_STRIP=$STRIP
6343 # Extract the first word of "strip", so it can be a program name with args.
6344 set dummy strip; ac_word=$2
6345 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6346 $as_echo_n "checking for $ac_word... " >&6; }
6347 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
6348 $as_echo_n "(cached) " >&6
6349 else
6350 if test -n "$ac_ct_STRIP"; then
6351 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6352 else
6353 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6354 for as_dir in $PATH
6356 IFS=$as_save_IFS
6357 test -z "$as_dir" && as_dir=.
6358 for ac_exec_ext in '' $ac_executable_extensions; do
6359 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6360 ac_cv_prog_ac_ct_STRIP="strip"
6361 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6362 break 2
6364 done
6365 done
6366 IFS=$as_save_IFS
6370 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6371 if test -n "$ac_ct_STRIP"; then
6372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6373 $as_echo "$ac_ct_STRIP" >&6; }
6374 else
6375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6376 $as_echo "no" >&6; }
6379 if test "x$ac_ct_STRIP" = x; then
6380 STRIP=":"
6381 else
6382 case $cross_compiling:$ac_tool_warned in
6383 yes:)
6384 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6385 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6386 ac_tool_warned=yes ;;
6387 esac
6388 STRIP=$ac_ct_STRIP
6390 else
6391 STRIP="$ac_cv_prog_STRIP"
6394 test -z "$STRIP" && STRIP=:
6401 if test -n "$ac_tool_prefix"; then
6402 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6403 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6404 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6405 $as_echo_n "checking for $ac_word... " >&6; }
6406 if test "${ac_cv_prog_RANLIB+set}" = set; then :
6407 $as_echo_n "(cached) " >&6
6408 else
6409 if test -n "$RANLIB"; then
6410 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6411 else
6412 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6413 for as_dir in $PATH
6415 IFS=$as_save_IFS
6416 test -z "$as_dir" && as_dir=.
6417 for ac_exec_ext in '' $ac_executable_extensions; do
6418 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6419 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6420 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6421 break 2
6423 done
6424 done
6425 IFS=$as_save_IFS
6429 RANLIB=$ac_cv_prog_RANLIB
6430 if test -n "$RANLIB"; then
6431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6432 $as_echo "$RANLIB" >&6; }
6433 else
6434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6435 $as_echo "no" >&6; }
6440 if test -z "$ac_cv_prog_RANLIB"; then
6441 ac_ct_RANLIB=$RANLIB
6442 # Extract the first word of "ranlib", so it can be a program name with args.
6443 set dummy ranlib; ac_word=$2
6444 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6445 $as_echo_n "checking for $ac_word... " >&6; }
6446 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
6447 $as_echo_n "(cached) " >&6
6448 else
6449 if test -n "$ac_ct_RANLIB"; then
6450 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6451 else
6452 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6453 for as_dir in $PATH
6455 IFS=$as_save_IFS
6456 test -z "$as_dir" && as_dir=.
6457 for ac_exec_ext in '' $ac_executable_extensions; do
6458 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6459 ac_cv_prog_ac_ct_RANLIB="ranlib"
6460 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6461 break 2
6463 done
6464 done
6465 IFS=$as_save_IFS
6469 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6470 if test -n "$ac_ct_RANLIB"; then
6471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6472 $as_echo "$ac_ct_RANLIB" >&6; }
6473 else
6474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6475 $as_echo "no" >&6; }
6478 if test "x$ac_ct_RANLIB" = x; then
6479 RANLIB=":"
6480 else
6481 case $cross_compiling:$ac_tool_warned in
6482 yes:)
6483 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6484 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6485 ac_tool_warned=yes ;;
6486 esac
6487 RANLIB=$ac_ct_RANLIB
6489 else
6490 RANLIB="$ac_cv_prog_RANLIB"
6493 test -z "$RANLIB" && RANLIB=:
6500 # Determine commands to create old-style static archives.
6501 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6502 old_postinstall_cmds='chmod 644 $oldlib'
6503 old_postuninstall_cmds=
6505 if test -n "$RANLIB"; then
6506 case $host_os in
6507 openbsd*)
6508 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
6511 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
6513 esac
6514 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6517 case $host_os in
6518 darwin*)
6519 lock_old_archive_extraction=yes ;;
6521 lock_old_archive_extraction=no ;;
6522 esac
6562 # If no C compiler was specified, use CC.
6563 LTCC=${LTCC-"$CC"}
6565 # If no C compiler flags were specified, use CFLAGS.
6566 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6568 # Allow CC to be a program name with arguments.
6569 compiler=$CC
6572 # Check for command to grab the raw symbol name followed by C symbol from nm.
6573 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6574 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6575 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
6576 $as_echo_n "(cached) " >&6
6577 else
6579 # These are sane defaults that work on at least a few old systems.
6580 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
6582 # Character class describing NM global symbol codes.
6583 symcode='[BCDEGRST]'
6585 # Regexp to match symbols that can be accessed directly from C.
6586 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6588 # Define system-specific variables.
6589 case $host_os in
6590 aix*)
6591 symcode='[BCDT]'
6593 cygwin* | mingw* | pw32* | cegcc*)
6594 symcode='[ABCDGISTW]'
6596 hpux*)
6597 if test "$host_cpu" = ia64; then
6598 symcode='[ABCDEGRST]'
6601 irix* | nonstopux*)
6602 symcode='[BCDEGRST]'
6604 osf*)
6605 symcode='[BCDEGQRST]'
6607 solaris*)
6608 symcode='[BDRT]'
6610 sco3.2v5*)
6611 symcode='[DT]'
6613 sysv4.2uw2*)
6614 symcode='[DT]'
6616 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6617 symcode='[ABDT]'
6619 sysv4)
6620 symcode='[DFNSTU]'
6622 esac
6624 # If we're using GNU nm, then use its standard symbol codes.
6625 case `$NM -V 2>&1` in
6626 *GNU* | *'with BFD'*)
6627 symcode='[ABCDGIRSTW]' ;;
6628 esac
6630 # Transform an extracted symbol line into a proper C declaration.
6631 # Some systems (esp. on ia64) link data and code symbols differently,
6632 # so use this general approach.
6633 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6635 # Transform an extracted symbol line into symbol name and symbol address
6636 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
6637 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'"
6639 # Handle CRLF in mingw tool chain
6640 opt_cr=
6641 case $build_os in
6642 mingw*)
6643 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6645 esac
6647 # Try without a prefix underscore, then with it.
6648 for ac_symprfx in "" "_"; do
6650 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6651 symxfrm="\\1 $ac_symprfx\\2 \\2"
6653 # Write the raw and C identifiers.
6654 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6655 # Fake it for dumpbin and say T for any non-static function
6656 # and D for any global variable.
6657 # Also find C++ and __fastcall symbols from MSVC++,
6658 # which start with @ or ?.
6659 lt_cv_sys_global_symbol_pipe="$AWK '"\
6660 " {last_section=section; section=\$ 3};"\
6661 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6662 " \$ 0!~/External *\|/{next};"\
6663 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6664 " {if(hide[section]) next};"\
6665 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
6666 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
6667 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
6668 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
6669 " ' prfx=^$ac_symprfx"
6670 else
6671 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6674 # Check to see that the pipe works correctly.
6675 pipe_works=no
6677 rm -f conftest*
6678 cat > conftest.$ac_ext <<_LT_EOF
6679 #ifdef __cplusplus
6680 extern "C" {
6681 #endif
6682 char nm_test_var;
6683 void nm_test_func(void);
6684 void nm_test_func(void){}
6685 #ifdef __cplusplus
6687 #endif
6688 int main(){nm_test_var='a';nm_test_func();return(0);}
6689 _LT_EOF
6691 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6692 (eval $ac_compile) 2>&5
6693 ac_status=$?
6694 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6695 test $ac_status = 0; }; then
6696 # Now try to grab the symbols.
6697 nlist=conftest.nm
6698 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
6699 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
6700 ac_status=$?
6701 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6702 test $ac_status = 0; } && test -s "$nlist"; then
6703 # Try sorting and uniquifying the output.
6704 if sort "$nlist" | uniq > "$nlist"T; then
6705 mv -f "$nlist"T "$nlist"
6706 else
6707 rm -f "$nlist"T
6710 # Make sure that we snagged all the symbols we need.
6711 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6712 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6713 cat <<_LT_EOF > conftest.$ac_ext
6714 #ifdef __cplusplus
6715 extern "C" {
6716 #endif
6718 _LT_EOF
6719 # Now generate the symbol file.
6720 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6722 cat <<_LT_EOF >> conftest.$ac_ext
6724 /* The mapping between symbol names and symbols. */
6725 const struct {
6726 const char *name;
6727 void *address;
6729 lt__PROGRAM__LTX_preloaded_symbols[] =
6731 { "@PROGRAM@", (void *) 0 },
6732 _LT_EOF
6733 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6734 cat <<\_LT_EOF >> conftest.$ac_ext
6735 {0, (void *) 0}
6738 /* This works around a problem in FreeBSD linker */
6739 #ifdef FREEBSD_WORKAROUND
6740 static const void *lt_preloaded_setup() {
6741 return lt__PROGRAM__LTX_preloaded_symbols;
6743 #endif
6745 #ifdef __cplusplus
6747 #endif
6748 _LT_EOF
6749 # Now try linking the two files.
6750 mv conftest.$ac_objext conftstm.$ac_objext
6751 lt_save_LIBS="$LIBS"
6752 lt_save_CFLAGS="$CFLAGS"
6753 LIBS="conftstm.$ac_objext"
6754 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6755 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6756 (eval $ac_link) 2>&5
6757 ac_status=$?
6758 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6759 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
6760 pipe_works=yes
6762 LIBS="$lt_save_LIBS"
6763 CFLAGS="$lt_save_CFLAGS"
6764 else
6765 echo "cannot find nm_test_func in $nlist" >&5
6767 else
6768 echo "cannot find nm_test_var in $nlist" >&5
6770 else
6771 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6773 else
6774 echo "$progname: failed program was:" >&5
6775 cat conftest.$ac_ext >&5
6777 rm -rf conftest* conftst*
6779 # Do not use the global_symbol_pipe unless it works.
6780 if test "$pipe_works" = yes; then
6781 break
6782 else
6783 lt_cv_sys_global_symbol_pipe=
6785 done
6789 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6790 lt_cv_sys_global_symbol_to_cdecl=
6792 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6794 $as_echo "failed" >&6; }
6795 else
6796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6797 $as_echo "ok" >&6; }
6821 # Check whether --enable-libtool-lock was given.
6822 if test "${enable_libtool_lock+set}" = set; then :
6823 enableval=$enable_libtool_lock;
6826 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6828 # Some flags need to be propagated to the compiler or linker for good
6829 # libtool support.
6830 case $host in
6831 ia64-*-hpux*)
6832 # Find out which ABI we are using.
6833 echo 'int i;' > conftest.$ac_ext
6834 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6835 (eval $ac_compile) 2>&5
6836 ac_status=$?
6837 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6838 test $ac_status = 0; }; then
6839 case `/usr/bin/file conftest.$ac_objext` in
6840 *ELF-32*)
6841 HPUX_IA64_MODE="32"
6843 *ELF-64*)
6844 HPUX_IA64_MODE="64"
6846 esac
6848 rm -rf conftest*
6850 *-*-irix6*)
6851 # Find out which ABI we are using.
6852 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6853 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6854 (eval $ac_compile) 2>&5
6855 ac_status=$?
6856 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6857 test $ac_status = 0; }; then
6858 if test "$lt_cv_prog_gnu_ld" = yes; then
6859 case `/usr/bin/file conftest.$ac_objext` in
6860 *32-bit*)
6861 LD="${LD-ld} -melf32bsmip"
6863 *N32*)
6864 LD="${LD-ld} -melf32bmipn32"
6866 *64-bit*)
6867 LD="${LD-ld} -melf64bmip"
6869 esac
6870 else
6871 case `/usr/bin/file conftest.$ac_objext` in
6872 *32-bit*)
6873 LD="${LD-ld} -32"
6875 *N32*)
6876 LD="${LD-ld} -n32"
6878 *64-bit*)
6879 LD="${LD-ld} -64"
6881 esac
6884 rm -rf conftest*
6887 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
6888 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6889 # Find out which ABI we are using.
6890 echo 'int i;' > conftest.$ac_ext
6891 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6892 (eval $ac_compile) 2>&5
6893 ac_status=$?
6894 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6895 test $ac_status = 0; }; then
6896 case `/usr/bin/file conftest.o` in
6897 *32-bit*)
6898 case $host in
6899 x86_64-*kfreebsd*-gnu)
6900 LD="${LD-ld} -m elf_i386_fbsd"
6902 x86_64-*linux*)
6903 case `/usr/bin/file conftest.o` in
6904 *x86-64*)
6905 LD="${LD-ld} -m elf32_x86_64"
6908 LD="${LD-ld} -m elf_i386"
6910 esac
6912 powerpc64le-*linux*)
6913 LD="${LD-ld} -m elf32lppclinux"
6915 powerpc64-*linux*)
6916 LD="${LD-ld} -m elf32ppclinux"
6918 s390x-*linux*)
6919 LD="${LD-ld} -m elf_s390"
6921 sparc64-*linux*)
6922 LD="${LD-ld} -m elf32_sparc"
6924 esac
6926 *64-bit*)
6927 case $host in
6928 x86_64-*kfreebsd*-gnu)
6929 LD="${LD-ld} -m elf_x86_64_fbsd"
6931 x86_64-*linux*)
6932 LD="${LD-ld} -m elf_x86_64"
6934 powerpcle-*linux*)
6935 LD="${LD-ld} -m elf64lppc"
6937 powerpc-*linux*)
6938 LD="${LD-ld} -m elf64ppc"
6940 s390*-*linux*|s390*-*tpf*)
6941 LD="${LD-ld} -m elf64_s390"
6943 sparc*-*linux*)
6944 LD="${LD-ld} -m elf64_sparc"
6946 esac
6948 esac
6950 rm -rf conftest*
6953 *-*-sco3.2v5*)
6954 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6955 SAVE_CFLAGS="$CFLAGS"
6956 CFLAGS="$CFLAGS -belf"
6957 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
6958 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
6959 if test "${lt_cv_cc_needs_belf+set}" = set; then :
6960 $as_echo_n "(cached) " >&6
6961 else
6962 ac_ext=c
6963 ac_cpp='$CPP $CPPFLAGS'
6964 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6965 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6966 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6968 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6969 /* end confdefs.h. */
6972 main ()
6976 return 0;
6978 _ACEOF
6979 if ac_fn_c_try_link "$LINENO"; then :
6980 lt_cv_cc_needs_belf=yes
6981 else
6982 lt_cv_cc_needs_belf=no
6984 rm -f core conftest.err conftest.$ac_objext \
6985 conftest$ac_exeext conftest.$ac_ext
6986 ac_ext=c
6987 ac_cpp='$CPP $CPPFLAGS'
6988 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6989 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6990 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
6994 $as_echo "$lt_cv_cc_needs_belf" >&6; }
6995 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6996 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6997 CFLAGS="$SAVE_CFLAGS"
7000 sparc*-*solaris*)
7001 # Find out which ABI we are using.
7002 echo 'int i;' > conftest.$ac_ext
7003 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7004 (eval $ac_compile) 2>&5
7005 ac_status=$?
7006 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7007 test $ac_status = 0; }; then
7008 case `/usr/bin/file conftest.o` in
7009 *64-bit*)
7010 case $lt_cv_prog_gnu_ld in
7011 yes*) LD="${LD-ld} -m elf64_sparc" ;;
7013 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7014 LD="${LD-ld} -64"
7017 esac
7019 esac
7021 rm -rf conftest*
7023 esac
7025 need_locks="$enable_libtool_lock"
7028 case $host_os in
7029 rhapsody* | darwin*)
7030 if test -n "$ac_tool_prefix"; then
7031 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7032 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7033 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7034 $as_echo_n "checking for $ac_word... " >&6; }
7035 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
7036 $as_echo_n "(cached) " >&6
7037 else
7038 if test -n "$DSYMUTIL"; then
7039 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7040 else
7041 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7042 for as_dir in $PATH
7044 IFS=$as_save_IFS
7045 test -z "$as_dir" && as_dir=.
7046 for ac_exec_ext in '' $ac_executable_extensions; do
7047 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7048 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7049 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7050 break 2
7052 done
7053 done
7054 IFS=$as_save_IFS
7058 DSYMUTIL=$ac_cv_prog_DSYMUTIL
7059 if test -n "$DSYMUTIL"; then
7060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
7061 $as_echo "$DSYMUTIL" >&6; }
7062 else
7063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7064 $as_echo "no" >&6; }
7069 if test -z "$ac_cv_prog_DSYMUTIL"; then
7070 ac_ct_DSYMUTIL=$DSYMUTIL
7071 # Extract the first word of "dsymutil", so it can be a program name with args.
7072 set dummy dsymutil; ac_word=$2
7073 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7074 $as_echo_n "checking for $ac_word... " >&6; }
7075 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
7076 $as_echo_n "(cached) " >&6
7077 else
7078 if test -n "$ac_ct_DSYMUTIL"; then
7079 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7080 else
7081 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7082 for as_dir in $PATH
7084 IFS=$as_save_IFS
7085 test -z "$as_dir" && as_dir=.
7086 for ac_exec_ext in '' $ac_executable_extensions; do
7087 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7088 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7089 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7090 break 2
7092 done
7093 done
7094 IFS=$as_save_IFS
7098 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7099 if test -n "$ac_ct_DSYMUTIL"; then
7100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
7101 $as_echo "$ac_ct_DSYMUTIL" >&6; }
7102 else
7103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7104 $as_echo "no" >&6; }
7107 if test "x$ac_ct_DSYMUTIL" = x; then
7108 DSYMUTIL=":"
7109 else
7110 case $cross_compiling:$ac_tool_warned in
7111 yes:)
7112 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7113 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7114 ac_tool_warned=yes ;;
7115 esac
7116 DSYMUTIL=$ac_ct_DSYMUTIL
7118 else
7119 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7122 if test -n "$ac_tool_prefix"; then
7123 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7124 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7125 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7126 $as_echo_n "checking for $ac_word... " >&6; }
7127 if test "${ac_cv_prog_NMEDIT+set}" = set; then :
7128 $as_echo_n "(cached) " >&6
7129 else
7130 if test -n "$NMEDIT"; then
7131 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7132 else
7133 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7134 for as_dir in $PATH
7136 IFS=$as_save_IFS
7137 test -z "$as_dir" && as_dir=.
7138 for ac_exec_ext in '' $ac_executable_extensions; do
7139 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7140 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7141 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7142 break 2
7144 done
7145 done
7146 IFS=$as_save_IFS
7150 NMEDIT=$ac_cv_prog_NMEDIT
7151 if test -n "$NMEDIT"; then
7152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
7153 $as_echo "$NMEDIT" >&6; }
7154 else
7155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7156 $as_echo "no" >&6; }
7161 if test -z "$ac_cv_prog_NMEDIT"; then
7162 ac_ct_NMEDIT=$NMEDIT
7163 # Extract the first word of "nmedit", so it can be a program name with args.
7164 set dummy nmedit; ac_word=$2
7165 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7166 $as_echo_n "checking for $ac_word... " >&6; }
7167 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
7168 $as_echo_n "(cached) " >&6
7169 else
7170 if test -n "$ac_ct_NMEDIT"; then
7171 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7172 else
7173 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7174 for as_dir in $PATH
7176 IFS=$as_save_IFS
7177 test -z "$as_dir" && as_dir=.
7178 for ac_exec_ext in '' $ac_executable_extensions; do
7179 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7180 ac_cv_prog_ac_ct_NMEDIT="nmedit"
7181 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7182 break 2
7184 done
7185 done
7186 IFS=$as_save_IFS
7190 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7191 if test -n "$ac_ct_NMEDIT"; then
7192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7193 $as_echo "$ac_ct_NMEDIT" >&6; }
7194 else
7195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7196 $as_echo "no" >&6; }
7199 if test "x$ac_ct_NMEDIT" = x; then
7200 NMEDIT=":"
7201 else
7202 case $cross_compiling:$ac_tool_warned in
7203 yes:)
7204 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7205 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7206 ac_tool_warned=yes ;;
7207 esac
7208 NMEDIT=$ac_ct_NMEDIT
7210 else
7211 NMEDIT="$ac_cv_prog_NMEDIT"
7214 if test -n "$ac_tool_prefix"; then
7215 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7216 set dummy ${ac_tool_prefix}lipo; ac_word=$2
7217 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7218 $as_echo_n "checking for $ac_word... " >&6; }
7219 if test "${ac_cv_prog_LIPO+set}" = set; then :
7220 $as_echo_n "(cached) " >&6
7221 else
7222 if test -n "$LIPO"; then
7223 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7224 else
7225 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7226 for as_dir in $PATH
7228 IFS=$as_save_IFS
7229 test -z "$as_dir" && as_dir=.
7230 for ac_exec_ext in '' $ac_executable_extensions; do
7231 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7232 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7233 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7234 break 2
7236 done
7237 done
7238 IFS=$as_save_IFS
7242 LIPO=$ac_cv_prog_LIPO
7243 if test -n "$LIPO"; then
7244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7245 $as_echo "$LIPO" >&6; }
7246 else
7247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7248 $as_echo "no" >&6; }
7253 if test -z "$ac_cv_prog_LIPO"; then
7254 ac_ct_LIPO=$LIPO
7255 # Extract the first word of "lipo", so it can be a program name with args.
7256 set dummy lipo; ac_word=$2
7257 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7258 $as_echo_n "checking for $ac_word... " >&6; }
7259 if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
7260 $as_echo_n "(cached) " >&6
7261 else
7262 if test -n "$ac_ct_LIPO"; then
7263 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7264 else
7265 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7266 for as_dir in $PATH
7268 IFS=$as_save_IFS
7269 test -z "$as_dir" && as_dir=.
7270 for ac_exec_ext in '' $ac_executable_extensions; do
7271 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7272 ac_cv_prog_ac_ct_LIPO="lipo"
7273 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7274 break 2
7276 done
7277 done
7278 IFS=$as_save_IFS
7282 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7283 if test -n "$ac_ct_LIPO"; then
7284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7285 $as_echo "$ac_ct_LIPO" >&6; }
7286 else
7287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7288 $as_echo "no" >&6; }
7291 if test "x$ac_ct_LIPO" = x; then
7292 LIPO=":"
7293 else
7294 case $cross_compiling:$ac_tool_warned in
7295 yes:)
7296 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7297 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7298 ac_tool_warned=yes ;;
7299 esac
7300 LIPO=$ac_ct_LIPO
7302 else
7303 LIPO="$ac_cv_prog_LIPO"
7306 if test -n "$ac_tool_prefix"; then
7307 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7308 set dummy ${ac_tool_prefix}otool; ac_word=$2
7309 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7310 $as_echo_n "checking for $ac_word... " >&6; }
7311 if test "${ac_cv_prog_OTOOL+set}" = set; then :
7312 $as_echo_n "(cached) " >&6
7313 else
7314 if test -n "$OTOOL"; then
7315 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7316 else
7317 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7318 for as_dir in $PATH
7320 IFS=$as_save_IFS
7321 test -z "$as_dir" && as_dir=.
7322 for ac_exec_ext in '' $ac_executable_extensions; do
7323 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7324 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7325 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7326 break 2
7328 done
7329 done
7330 IFS=$as_save_IFS
7334 OTOOL=$ac_cv_prog_OTOOL
7335 if test -n "$OTOOL"; then
7336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7337 $as_echo "$OTOOL" >&6; }
7338 else
7339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7340 $as_echo "no" >&6; }
7345 if test -z "$ac_cv_prog_OTOOL"; then
7346 ac_ct_OTOOL=$OTOOL
7347 # Extract the first word of "otool", so it can be a program name with args.
7348 set dummy otool; ac_word=$2
7349 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7350 $as_echo_n "checking for $ac_word... " >&6; }
7351 if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
7352 $as_echo_n "(cached) " >&6
7353 else
7354 if test -n "$ac_ct_OTOOL"; then
7355 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7356 else
7357 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7358 for as_dir in $PATH
7360 IFS=$as_save_IFS
7361 test -z "$as_dir" && as_dir=.
7362 for ac_exec_ext in '' $ac_executable_extensions; do
7363 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7364 ac_cv_prog_ac_ct_OTOOL="otool"
7365 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7366 break 2
7368 done
7369 done
7370 IFS=$as_save_IFS
7374 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7375 if test -n "$ac_ct_OTOOL"; then
7376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7377 $as_echo "$ac_ct_OTOOL" >&6; }
7378 else
7379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7380 $as_echo "no" >&6; }
7383 if test "x$ac_ct_OTOOL" = x; then
7384 OTOOL=":"
7385 else
7386 case $cross_compiling:$ac_tool_warned in
7387 yes:)
7388 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7389 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7390 ac_tool_warned=yes ;;
7391 esac
7392 OTOOL=$ac_ct_OTOOL
7394 else
7395 OTOOL="$ac_cv_prog_OTOOL"
7398 if test -n "$ac_tool_prefix"; then
7399 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7400 set dummy ${ac_tool_prefix}otool64; ac_word=$2
7401 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7402 $as_echo_n "checking for $ac_word... " >&6; }
7403 if test "${ac_cv_prog_OTOOL64+set}" = set; then :
7404 $as_echo_n "(cached) " >&6
7405 else
7406 if test -n "$OTOOL64"; then
7407 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7408 else
7409 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7410 for as_dir in $PATH
7412 IFS=$as_save_IFS
7413 test -z "$as_dir" && as_dir=.
7414 for ac_exec_ext in '' $ac_executable_extensions; do
7415 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7416 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7417 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7418 break 2
7420 done
7421 done
7422 IFS=$as_save_IFS
7426 OTOOL64=$ac_cv_prog_OTOOL64
7427 if test -n "$OTOOL64"; then
7428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
7429 $as_echo "$OTOOL64" >&6; }
7430 else
7431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7432 $as_echo "no" >&6; }
7437 if test -z "$ac_cv_prog_OTOOL64"; then
7438 ac_ct_OTOOL64=$OTOOL64
7439 # Extract the first word of "otool64", so it can be a program name with args.
7440 set dummy otool64; ac_word=$2
7441 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7442 $as_echo_n "checking for $ac_word... " >&6; }
7443 if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
7444 $as_echo_n "(cached) " >&6
7445 else
7446 if test -n "$ac_ct_OTOOL64"; then
7447 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7448 else
7449 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7450 for as_dir in $PATH
7452 IFS=$as_save_IFS
7453 test -z "$as_dir" && as_dir=.
7454 for ac_exec_ext in '' $ac_executable_extensions; do
7455 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7456 ac_cv_prog_ac_ct_OTOOL64="otool64"
7457 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7458 break 2
7460 done
7461 done
7462 IFS=$as_save_IFS
7466 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7467 if test -n "$ac_ct_OTOOL64"; then
7468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
7469 $as_echo "$ac_ct_OTOOL64" >&6; }
7470 else
7471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7472 $as_echo "no" >&6; }
7475 if test "x$ac_ct_OTOOL64" = x; then
7476 OTOOL64=":"
7477 else
7478 case $cross_compiling:$ac_tool_warned in
7479 yes:)
7480 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7481 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7482 ac_tool_warned=yes ;;
7483 esac
7484 OTOOL64=$ac_ct_OTOOL64
7486 else
7487 OTOOL64="$ac_cv_prog_OTOOL64"
7516 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7517 $as_echo_n "checking for -single_module linker flag... " >&6; }
7518 if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
7519 $as_echo_n "(cached) " >&6
7520 else
7521 lt_cv_apple_cc_single_mod=no
7522 if test -z "${LT_MULTI_MODULE}"; then
7523 # By default we will add the -single_module flag. You can override
7524 # by either setting the environment variable LT_MULTI_MODULE
7525 # non-empty at configure time, or by adding -multi_module to the
7526 # link flags.
7527 rm -rf libconftest.dylib*
7528 echo "int foo(void){return 1;}" > conftest.c
7529 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7530 -dynamiclib -Wl,-single_module conftest.c" >&5
7531 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7532 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7533 _lt_result=$?
7534 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
7535 lt_cv_apple_cc_single_mod=yes
7536 else
7537 cat conftest.err >&5
7539 rm -rf libconftest.dylib*
7540 rm -f conftest.*
7543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7544 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7545 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7546 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7547 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
7548 $as_echo_n "(cached) " >&6
7549 else
7550 lt_cv_ld_exported_symbols_list=no
7551 save_LDFLAGS=$LDFLAGS
7552 echo "_main" > conftest.sym
7553 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7554 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7555 /* end confdefs.h. */
7558 main ()
7562 return 0;
7564 _ACEOF
7565 if ac_fn_c_try_link "$LINENO"; then :
7566 lt_cv_ld_exported_symbols_list=yes
7567 else
7568 lt_cv_ld_exported_symbols_list=no
7570 rm -f core conftest.err conftest.$ac_objext \
7571 conftest$ac_exeext conftest.$ac_ext
7572 LDFLAGS="$save_LDFLAGS"
7575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7576 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7577 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
7578 $as_echo_n "checking for -force_load linker flag... " >&6; }
7579 if test "${lt_cv_ld_force_load+set}" = set; then :
7580 $as_echo_n "(cached) " >&6
7581 else
7582 lt_cv_ld_force_load=no
7583 cat > conftest.c << _LT_EOF
7584 int forced_loaded() { return 2;}
7585 _LT_EOF
7586 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
7587 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
7588 echo "$AR cru libconftest.a conftest.o" >&5
7589 $AR cru libconftest.a conftest.o 2>&5
7590 cat > conftest.c << _LT_EOF
7591 int main() { return 0;}
7592 _LT_EOF
7593 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
7594 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
7595 _lt_result=$?
7596 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
7597 lt_cv_ld_force_load=yes
7598 else
7599 cat conftest.err >&5
7601 rm -f conftest.err libconftest.a conftest conftest.c
7602 rm -rf conftest.dSYM
7605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
7606 $as_echo "$lt_cv_ld_force_load" >&6; }
7607 case $host_os in
7608 rhapsody* | darwin1.[012])
7609 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7610 darwin1.*)
7611 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7612 darwin*) # darwin 5.x on
7613 # if running on 10.5 or later, the deployment target defaults
7614 # to the OS version, if on x86, and 10.4, the deployment
7615 # target defaults to 10.4. Don't you love it?
7616 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7617 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7618 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7619 10.[012][,.]*)
7620 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7621 10.*)
7622 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7623 esac
7625 esac
7626 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7627 _lt_dar_single_mod='$single_module'
7629 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7630 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7631 else
7632 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
7634 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
7635 _lt_dsymutil='~$DSYMUTIL $lib || :'
7636 else
7637 _lt_dsymutil=
7640 esac
7642 for ac_header in dlfcn.h
7643 do :
7644 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7646 if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
7647 cat >>confdefs.h <<_ACEOF
7648 #define HAVE_DLFCN_H 1
7649 _ACEOF
7653 done
7659 # Set options
7660 # Check whether --enable-shared was given.
7661 if test "${enable_shared+set}" = set; then :
7662 enableval=$enable_shared; p=${PACKAGE-default}
7663 case $enableval in
7664 yes) enable_shared=yes ;;
7665 no) enable_shared=no ;;
7667 enable_shared=no
7668 # Look at the argument we got. We use all the common list separators.
7669 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7670 for pkg in $enableval; do
7671 IFS="$lt_save_ifs"
7672 if test "X$pkg" = "X$p"; then
7673 enable_shared=yes
7675 done
7676 IFS="$lt_save_ifs"
7678 esac
7679 else
7680 enable_shared=no
7692 enable_dlopen=no
7695 enable_win32_dll=no
7699 # Check whether --enable-static was given.
7700 if test "${enable_static+set}" = set; then :
7701 enableval=$enable_static; p=${PACKAGE-default}
7702 case $enableval in
7703 yes) enable_static=yes ;;
7704 no) enable_static=no ;;
7706 enable_static=no
7707 # Look at the argument we got. We use all the common list separators.
7708 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7709 for pkg in $enableval; do
7710 IFS="$lt_save_ifs"
7711 if test "X$pkg" = "X$p"; then
7712 enable_static=yes
7714 done
7715 IFS="$lt_save_ifs"
7717 esac
7718 else
7719 enable_static=yes
7731 # Check whether --with-pic was given.
7732 if test "${with_pic+set}" = set; then :
7733 withval=$with_pic; pic_mode="$withval"
7734 else
7735 pic_mode=default
7739 test -z "$pic_mode" && pic_mode=default
7747 # Check whether --enable-fast-install was given.
7748 if test "${enable_fast_install+set}" = set; then :
7749 enableval=$enable_fast_install; p=${PACKAGE-default}
7750 case $enableval in
7751 yes) enable_fast_install=yes ;;
7752 no) enable_fast_install=no ;;
7754 enable_fast_install=no
7755 # Look at the argument we got. We use all the common list separators.
7756 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7757 for pkg in $enableval; do
7758 IFS="$lt_save_ifs"
7759 if test "X$pkg" = "X$p"; then
7760 enable_fast_install=yes
7762 done
7763 IFS="$lt_save_ifs"
7765 esac
7766 else
7767 enable_fast_install=yes
7780 # This can be used to rebuild libtool when needed
7781 LIBTOOL_DEPS="$ltmain"
7783 # Always use our own libtool.
7784 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
7811 test -z "$LN_S" && LN_S="ln -s"
7826 if test -n "${ZSH_VERSION+set}" ; then
7827 setopt NO_GLOB_SUBST
7830 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
7831 $as_echo_n "checking for objdir... " >&6; }
7832 if test "${lt_cv_objdir+set}" = set; then :
7833 $as_echo_n "(cached) " >&6
7834 else
7835 rm -f .libs 2>/dev/null
7836 mkdir .libs 2>/dev/null
7837 if test -d .libs; then
7838 lt_cv_objdir=.libs
7839 else
7840 # MS-DOS does not allow filenames that begin with a dot.
7841 lt_cv_objdir=_libs
7843 rmdir .libs 2>/dev/null
7845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
7846 $as_echo "$lt_cv_objdir" >&6; }
7847 objdir=$lt_cv_objdir
7853 cat >>confdefs.h <<_ACEOF
7854 #define LT_OBJDIR "$lt_cv_objdir/"
7855 _ACEOF
7860 case $host_os in
7861 aix3*)
7862 # AIX sometimes has problems with the GCC collect2 program. For some
7863 # reason, if we set the COLLECT_NAMES environment variable, the problems
7864 # vanish in a puff of smoke.
7865 if test "X${COLLECT_NAMES+set}" != Xset; then
7866 COLLECT_NAMES=
7867 export COLLECT_NAMES
7870 esac
7872 # Global variables:
7873 ofile=libtool
7874 can_build_shared=yes
7876 # All known linkers require a `.a' archive for static linking (except MSVC,
7877 # which needs '.lib').
7878 libext=a
7880 with_gnu_ld="$lt_cv_prog_gnu_ld"
7882 old_CC="$CC"
7883 old_CFLAGS="$CFLAGS"
7885 # Set sane defaults for various variables
7886 test -z "$CC" && CC=cc
7887 test -z "$LTCC" && LTCC=$CC
7888 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7889 test -z "$LD" && LD=ld
7890 test -z "$ac_objext" && ac_objext=o
7892 for cc_temp in $compiler""; do
7893 case $cc_temp in
7894 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7895 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7896 \-*) ;;
7897 *) break;;
7898 esac
7899 done
7900 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
7903 # Only perform the check for file, if the check method requires it
7904 test -z "$MAGIC_CMD" && MAGIC_CMD=file
7905 case $deplibs_check_method in
7906 file_magic*)
7907 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7908 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
7909 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
7910 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
7911 $as_echo_n "(cached) " >&6
7912 else
7913 case $MAGIC_CMD in
7914 [\\/*] | ?:[\\/]*)
7915 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7918 lt_save_MAGIC_CMD="$MAGIC_CMD"
7919 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7920 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7921 for ac_dir in $ac_dummy; do
7922 IFS="$lt_save_ifs"
7923 test -z "$ac_dir" && ac_dir=.
7924 if test -f $ac_dir/${ac_tool_prefix}file; then
7925 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7926 if test -n "$file_magic_test_file"; then
7927 case $deplibs_check_method in
7928 "file_magic "*)
7929 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7930 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7931 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7932 $EGREP "$file_magic_regex" > /dev/null; then
7934 else
7935 cat <<_LT_EOF 1>&2
7937 *** Warning: the command libtool uses to detect shared libraries,
7938 *** $file_magic_cmd, produces output that libtool cannot recognize.
7939 *** The result is that libtool may fail to recognize shared libraries
7940 *** as such. This will affect the creation of libtool libraries that
7941 *** depend on shared libraries, but programs linked with such libtool
7942 *** libraries will work regardless of this problem. Nevertheless, you
7943 *** may want to report the problem to your system manager and/or to
7944 *** bug-libtool@gnu.org
7946 _LT_EOF
7947 fi ;;
7948 esac
7950 break
7952 done
7953 IFS="$lt_save_ifs"
7954 MAGIC_CMD="$lt_save_MAGIC_CMD"
7956 esac
7959 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7960 if test -n "$MAGIC_CMD"; then
7961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7962 $as_echo "$MAGIC_CMD" >&6; }
7963 else
7964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7965 $as_echo "no" >&6; }
7972 if test -z "$lt_cv_path_MAGIC_CMD"; then
7973 if test -n "$ac_tool_prefix"; then
7974 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
7975 $as_echo_n "checking for file... " >&6; }
7976 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
7977 $as_echo_n "(cached) " >&6
7978 else
7979 case $MAGIC_CMD in
7980 [\\/*] | ?:[\\/]*)
7981 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7984 lt_save_MAGIC_CMD="$MAGIC_CMD"
7985 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7986 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7987 for ac_dir in $ac_dummy; do
7988 IFS="$lt_save_ifs"
7989 test -z "$ac_dir" && ac_dir=.
7990 if test -f $ac_dir/file; then
7991 lt_cv_path_MAGIC_CMD="$ac_dir/file"
7992 if test -n "$file_magic_test_file"; then
7993 case $deplibs_check_method in
7994 "file_magic "*)
7995 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7996 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7997 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7998 $EGREP "$file_magic_regex" > /dev/null; then
8000 else
8001 cat <<_LT_EOF 1>&2
8003 *** Warning: the command libtool uses to detect shared libraries,
8004 *** $file_magic_cmd, produces output that libtool cannot recognize.
8005 *** The result is that libtool may fail to recognize shared libraries
8006 *** as such. This will affect the creation of libtool libraries that
8007 *** depend on shared libraries, but programs linked with such libtool
8008 *** libraries will work regardless of this problem. Nevertheless, you
8009 *** may want to report the problem to your system manager and/or to
8010 *** bug-libtool@gnu.org
8012 _LT_EOF
8013 fi ;;
8014 esac
8016 break
8018 done
8019 IFS="$lt_save_ifs"
8020 MAGIC_CMD="$lt_save_MAGIC_CMD"
8022 esac
8025 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8026 if test -n "$MAGIC_CMD"; then
8027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8028 $as_echo "$MAGIC_CMD" >&6; }
8029 else
8030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8031 $as_echo "no" >&6; }
8035 else
8036 MAGIC_CMD=:
8042 esac
8044 # Use C for the default configuration in the libtool script
8046 lt_save_CC="$CC"
8047 ac_ext=c
8048 ac_cpp='$CPP $CPPFLAGS'
8049 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8050 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8051 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8054 # Source file extension for C test sources.
8055 ac_ext=c
8057 # Object file extension for compiled C test sources.
8058 objext=o
8059 objext=$objext
8061 # Code to be used in simple compile tests
8062 lt_simple_compile_test_code="int some_variable = 0;"
8064 # Code to be used in simple link tests
8065 lt_simple_link_test_code='int main(){return(0);}'
8073 # If no C compiler was specified, use CC.
8074 LTCC=${LTCC-"$CC"}
8076 # If no C compiler flags were specified, use CFLAGS.
8077 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8079 # Allow CC to be a program name with arguments.
8080 compiler=$CC
8082 # Save the default compiler, since it gets overwritten when the other
8083 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8084 compiler_DEFAULT=$CC
8086 # save warnings/boilerplate of simple test code
8087 ac_outfile=conftest.$ac_objext
8088 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8089 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8090 _lt_compiler_boilerplate=`cat conftest.err`
8091 $RM conftest*
8093 ac_outfile=conftest.$ac_objext
8094 echo "$lt_simple_link_test_code" >conftest.$ac_ext
8095 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8096 _lt_linker_boilerplate=`cat conftest.err`
8097 $RM -r conftest*
8100 ## CAVEAT EMPTOR:
8101 ## There is no encapsulation within the following macros, do not change
8102 ## the running order or otherwise move them around unless you know exactly
8103 ## what you are doing...
8104 if test -n "$compiler"; then
8106 lt_prog_compiler_no_builtin_flag=
8108 if test "$GCC" = yes; then
8109 case $cc_basename in
8110 nvcc*)
8111 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
8113 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
8114 esac
8116 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8117 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8118 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
8119 $as_echo_n "(cached) " >&6
8120 else
8121 lt_cv_prog_compiler_rtti_exceptions=no
8122 ac_outfile=conftest.$ac_objext
8123 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8124 lt_compiler_flag="-fno-rtti -fno-exceptions"
8125 # Insert the option either (1) after the last *FLAGS variable, or
8126 # (2) before a word containing "conftest.", or (3) at the end.
8127 # Note that $ac_compile itself does not contain backslashes and begins
8128 # with a dollar sign (not a hyphen), so the echo should work correctly.
8129 # The option is referenced via a variable to avoid confusing sed.
8130 lt_compile=`echo "$ac_compile" | $SED \
8131 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8132 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8133 -e 's:$: $lt_compiler_flag:'`
8134 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8135 (eval "$lt_compile" 2>conftest.err)
8136 ac_status=$?
8137 cat conftest.err >&5
8138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8139 if (exit $ac_status) && test -s "$ac_outfile"; then
8140 # The compiler can only warn and ignore the option if not recognized
8141 # So say no if there are warnings other than the usual output.
8142 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8143 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8144 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8145 lt_cv_prog_compiler_rtti_exceptions=yes
8148 $RM conftest*
8151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8152 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8154 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8155 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8156 else
8167 lt_prog_compiler_wl=
8168 lt_prog_compiler_pic=
8169 lt_prog_compiler_static=
8171 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8172 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8174 if test "$GCC" = yes; then
8175 lt_prog_compiler_wl='-Wl,'
8176 lt_prog_compiler_static='-static'
8178 case $host_os in
8179 aix*)
8180 # All AIX code is PIC.
8181 if test "$host_cpu" = ia64; then
8182 # AIX 5 now supports IA64 processor
8183 lt_prog_compiler_static='-Bstatic'
8185 lt_prog_compiler_pic='-fPIC'
8188 amigaos*)
8189 case $host_cpu in
8190 powerpc)
8191 # see comment about AmigaOS4 .so support
8192 lt_prog_compiler_pic='-fPIC'
8194 m68k)
8195 # FIXME: we need at least 68020 code to build shared libraries, but
8196 # adding the `-m68020' flag to GCC prevents building anything better,
8197 # like `-m68040'.
8198 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8200 esac
8203 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8204 # PIC is the default for these OSes.
8207 mingw* | cygwin* | pw32* | os2* | cegcc*)
8208 # This hack is so that the source file can tell whether it is being
8209 # built for inclusion in a dll (and should export symbols for example).
8210 # Although the cygwin gcc ignores -fPIC, still need this for old-style
8211 # (--disable-auto-import) libraries
8212 lt_prog_compiler_pic='-DDLL_EXPORT'
8215 darwin* | rhapsody*)
8216 # PIC is the default on this platform
8217 # Common symbols not allowed in MH_DYLIB files
8218 lt_prog_compiler_pic='-fno-common'
8221 haiku*)
8222 # PIC is the default for Haiku.
8223 # The "-static" flag exists, but is broken.
8224 lt_prog_compiler_static=
8227 hpux*)
8228 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8229 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
8230 # sets the default TLS model and affects inlining.
8231 case $host_cpu in
8232 hppa*64*)
8233 # +Z the default
8236 lt_prog_compiler_pic='-fPIC'
8238 esac
8241 interix[3-9]*)
8242 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8243 # Instead, we relocate shared libraries at runtime.
8246 msdosdjgpp*)
8247 # Just because we use GCC doesn't mean we suddenly get shared libraries
8248 # on systems that don't support them.
8249 lt_prog_compiler_can_build_shared=no
8250 enable_shared=no
8253 *nto* | *qnx*)
8254 # QNX uses GNU C++, but need to define -shared option too, otherwise
8255 # it will coredump.
8256 lt_prog_compiler_pic='-fPIC -shared'
8259 sysv4*MP*)
8260 if test -d /usr/nec; then
8261 lt_prog_compiler_pic=-Kconform_pic
8266 lt_prog_compiler_pic='-fPIC'
8268 esac
8270 case $cc_basename in
8271 nvcc*) # Cuda Compiler Driver 2.2
8272 lt_prog_compiler_wl='-Xlinker '
8273 lt_prog_compiler_pic='-Xcompiler -fPIC'
8275 esac
8276 else
8277 # PORTME Check for flag to pass linker flags through the system compiler.
8278 case $host_os in
8279 aix*)
8280 lt_prog_compiler_wl='-Wl,'
8281 if test "$host_cpu" = ia64; then
8282 # AIX 5 now supports IA64 processor
8283 lt_prog_compiler_static='-Bstatic'
8284 else
8285 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8289 mingw* | cygwin* | pw32* | os2* | cegcc*)
8290 # This hack is so that the source file can tell whether it is being
8291 # built for inclusion in a dll (and should export symbols for example).
8292 lt_prog_compiler_pic='-DDLL_EXPORT'
8295 hpux9* | hpux10* | hpux11*)
8296 lt_prog_compiler_wl='-Wl,'
8297 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8298 # not for PA HP-UX.
8299 case $host_cpu in
8300 hppa*64*|ia64*)
8301 # +Z the default
8304 lt_prog_compiler_pic='+Z'
8306 esac
8307 # Is there a better lt_prog_compiler_static that works with the bundled CC?
8308 lt_prog_compiler_static='${wl}-a ${wl}archive'
8311 irix5* | irix6* | nonstopux*)
8312 lt_prog_compiler_wl='-Wl,'
8313 # PIC (with -KPIC) is the default.
8314 lt_prog_compiler_static='-non_shared'
8317 linux* | k*bsd*-gnu | kopensolaris*-gnu)
8318 case $cc_basename in
8319 # old Intel for x86_64 which still supported -KPIC.
8320 ecc*)
8321 lt_prog_compiler_wl='-Wl,'
8322 lt_prog_compiler_pic='-KPIC'
8323 lt_prog_compiler_static='-static'
8325 # icc used to be incompatible with GCC.
8326 # ICC 10 doesn't accept -KPIC any more.
8327 icc* | ifort*)
8328 lt_prog_compiler_wl='-Wl,'
8329 lt_prog_compiler_pic='-fPIC'
8330 lt_prog_compiler_static='-static'
8332 # Lahey Fortran 8.1.
8333 lf95*)
8334 lt_prog_compiler_wl='-Wl,'
8335 lt_prog_compiler_pic='--shared'
8336 lt_prog_compiler_static='--static'
8338 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
8339 # Portland Group compilers (*not* the Pentium gcc compiler,
8340 # which looks to be a dead project)
8341 lt_prog_compiler_wl='-Wl,'
8342 lt_prog_compiler_pic='-fpic'
8343 lt_prog_compiler_static='-Bstatic'
8345 ccc*)
8346 lt_prog_compiler_wl='-Wl,'
8347 # All Alpha code is PIC.
8348 lt_prog_compiler_static='-non_shared'
8350 xl* | bgxl* | bgf* | mpixl*)
8351 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
8352 lt_prog_compiler_wl='-Wl,'
8353 lt_prog_compiler_pic='-qpic'
8354 lt_prog_compiler_static='-qstaticlink'
8357 case `$CC -V 2>&1 | sed 5q` in
8358 *Sun\ F* | *Sun*Fortran*)
8359 # Sun Fortran 8.3 passes all unrecognized flags to the linker
8360 lt_prog_compiler_pic='-KPIC'
8361 lt_prog_compiler_static='-Bstatic'
8362 lt_prog_compiler_wl=''
8364 *Sun\ C*)
8365 # Sun C 5.9
8366 lt_prog_compiler_pic='-KPIC'
8367 lt_prog_compiler_static='-Bstatic'
8368 lt_prog_compiler_wl='-Wl,'
8370 esac
8372 esac
8375 newsos6)
8376 lt_prog_compiler_pic='-KPIC'
8377 lt_prog_compiler_static='-Bstatic'
8380 *nto* | *qnx*)
8381 # QNX uses GNU C++, but need to define -shared option too, otherwise
8382 # it will coredump.
8383 lt_prog_compiler_pic='-fPIC -shared'
8386 osf3* | osf4* | osf5*)
8387 lt_prog_compiler_wl='-Wl,'
8388 # All OSF/1 code is PIC.
8389 lt_prog_compiler_static='-non_shared'
8392 rdos*)
8393 lt_prog_compiler_static='-non_shared'
8396 solaris*)
8397 lt_prog_compiler_pic='-KPIC'
8398 lt_prog_compiler_static='-Bstatic'
8399 case $cc_basename in
8400 f77* | f90* | f95*)
8401 lt_prog_compiler_wl='-Qoption ld ';;
8403 lt_prog_compiler_wl='-Wl,';;
8404 esac
8407 sunos4*)
8408 lt_prog_compiler_wl='-Qoption ld '
8409 lt_prog_compiler_pic='-PIC'
8410 lt_prog_compiler_static='-Bstatic'
8413 sysv4 | sysv4.2uw2* | sysv4.3*)
8414 lt_prog_compiler_wl='-Wl,'
8415 lt_prog_compiler_pic='-KPIC'
8416 lt_prog_compiler_static='-Bstatic'
8419 sysv4*MP*)
8420 if test -d /usr/nec ;then
8421 lt_prog_compiler_pic='-Kconform_pic'
8422 lt_prog_compiler_static='-Bstatic'
8426 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8427 lt_prog_compiler_wl='-Wl,'
8428 lt_prog_compiler_pic='-KPIC'
8429 lt_prog_compiler_static='-Bstatic'
8432 unicos*)
8433 lt_prog_compiler_wl='-Wl,'
8434 lt_prog_compiler_can_build_shared=no
8437 uts4*)
8438 lt_prog_compiler_pic='-pic'
8439 lt_prog_compiler_static='-Bstatic'
8443 lt_prog_compiler_can_build_shared=no
8445 esac
8448 case $host_os in
8449 # For platforms which do not support PIC, -DPIC is meaningless:
8450 *djgpp*)
8451 lt_prog_compiler_pic=
8454 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8456 esac
8457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
8458 $as_echo "$lt_prog_compiler_pic" >&6; }
8466 # Check to make sure the PIC flag actually works.
8468 if test -n "$lt_prog_compiler_pic"; then
8469 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8470 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8471 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
8472 $as_echo_n "(cached) " >&6
8473 else
8474 lt_cv_prog_compiler_pic_works=no
8475 ac_outfile=conftest.$ac_objext
8476 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8477 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8478 # Insert the option either (1) after the last *FLAGS variable, or
8479 # (2) before a word containing "conftest.", or (3) at the end.
8480 # Note that $ac_compile itself does not contain backslashes and begins
8481 # with a dollar sign (not a hyphen), so the echo should work correctly.
8482 # The option is referenced via a variable to avoid confusing sed.
8483 lt_compile=`echo "$ac_compile" | $SED \
8484 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8485 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8486 -e 's:$: $lt_compiler_flag:'`
8487 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8488 (eval "$lt_compile" 2>conftest.err)
8489 ac_status=$?
8490 cat conftest.err >&5
8491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8492 if (exit $ac_status) && test -s "$ac_outfile"; then
8493 # The compiler can only warn and ignore the option if not recognized
8494 # So say no if there are warnings other than the usual output.
8495 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8496 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8497 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8498 lt_cv_prog_compiler_pic_works=yes
8501 $RM conftest*
8504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8505 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8507 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
8508 case $lt_prog_compiler_pic in
8509 "" | " "*) ;;
8510 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8511 esac
8512 else
8513 lt_prog_compiler_pic=
8514 lt_prog_compiler_can_build_shared=no
8525 # Check to make sure the static flag actually works.
8527 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8528 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8529 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8530 if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
8531 $as_echo_n "(cached) " >&6
8532 else
8533 lt_cv_prog_compiler_static_works=no
8534 save_LDFLAGS="$LDFLAGS"
8535 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8536 echo "$lt_simple_link_test_code" > conftest.$ac_ext
8537 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8538 # The linker can only warn and ignore the option if not recognized
8539 # So say no if there are warnings
8540 if test -s conftest.err; then
8541 # Append any errors to the config.log.
8542 cat conftest.err 1>&5
8543 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
8544 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8545 if diff conftest.exp conftest.er2 >/dev/null; then
8546 lt_cv_prog_compiler_static_works=yes
8548 else
8549 lt_cv_prog_compiler_static_works=yes
8552 $RM -r conftest*
8553 LDFLAGS="$save_LDFLAGS"
8556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
8557 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
8559 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
8561 else
8562 lt_prog_compiler_static=
8571 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8572 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8573 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
8574 $as_echo_n "(cached) " >&6
8575 else
8576 lt_cv_prog_compiler_c_o=no
8577 $RM -r conftest 2>/dev/null
8578 mkdir conftest
8579 cd conftest
8580 mkdir out
8581 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8583 lt_compiler_flag="-o out/conftest2.$ac_objext"
8584 # Insert the option either (1) after the last *FLAGS variable, or
8585 # (2) before a word containing "conftest.", or (3) at the end.
8586 # Note that $ac_compile itself does not contain backslashes and begins
8587 # with a dollar sign (not a hyphen), so the echo should work correctly.
8588 lt_compile=`echo "$ac_compile" | $SED \
8589 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8590 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8591 -e 's:$: $lt_compiler_flag:'`
8592 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8593 (eval "$lt_compile" 2>out/conftest.err)
8594 ac_status=$?
8595 cat out/conftest.err >&5
8596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8597 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8598 then
8599 # The compiler can only warn and ignore the option if not recognized
8600 # So say no if there are warnings
8601 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8602 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8603 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8604 lt_cv_prog_compiler_c_o=yes
8607 chmod u+w . 2>&5
8608 $RM conftest*
8609 # SGI C++ compiler will create directory out/ii_files/ for
8610 # template instantiation
8611 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8612 $RM out/* && rmdir out
8613 cd ..
8614 $RM -r conftest
8615 $RM conftest*
8618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8619 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8626 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8627 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8628 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
8629 $as_echo_n "(cached) " >&6
8630 else
8631 lt_cv_prog_compiler_c_o=no
8632 $RM -r conftest 2>/dev/null
8633 mkdir conftest
8634 cd conftest
8635 mkdir out
8636 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8638 lt_compiler_flag="-o out/conftest2.$ac_objext"
8639 # Insert the option either (1) after the last *FLAGS variable, or
8640 # (2) before a word containing "conftest.", or (3) at the end.
8641 # Note that $ac_compile itself does not contain backslashes and begins
8642 # with a dollar sign (not a hyphen), so the echo should work correctly.
8643 lt_compile=`echo "$ac_compile" | $SED \
8644 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8645 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8646 -e 's:$: $lt_compiler_flag:'`
8647 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8648 (eval "$lt_compile" 2>out/conftest.err)
8649 ac_status=$?
8650 cat out/conftest.err >&5
8651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8652 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8653 then
8654 # The compiler can only warn and ignore the option if not recognized
8655 # So say no if there are warnings
8656 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8657 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8658 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8659 lt_cv_prog_compiler_c_o=yes
8662 chmod u+w . 2>&5
8663 $RM conftest*
8664 # SGI C++ compiler will create directory out/ii_files/ for
8665 # template instantiation
8666 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8667 $RM out/* && rmdir out
8668 cd ..
8669 $RM -r conftest
8670 $RM conftest*
8673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8674 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8679 hard_links="nottested"
8680 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8681 # do not overwrite the value of need_locks provided by the user
8682 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
8683 $as_echo_n "checking if we can lock with hard links... " >&6; }
8684 hard_links=yes
8685 $RM conftest*
8686 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8687 touch conftest.a
8688 ln conftest.a conftest.b 2>&5 || hard_links=no
8689 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
8691 $as_echo "$hard_links" >&6; }
8692 if test "$hard_links" = no; then
8693 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8694 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8695 need_locks=warn
8697 else
8698 need_locks=no
8706 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8707 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
8709 runpath_var=
8710 allow_undefined_flag=
8711 always_export_symbols=no
8712 archive_cmds=
8713 archive_expsym_cmds=
8714 compiler_needs_object=no
8715 enable_shared_with_static_runtimes=no
8716 export_dynamic_flag_spec=
8717 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8718 hardcode_automatic=no
8719 hardcode_direct=no
8720 hardcode_direct_absolute=no
8721 hardcode_libdir_flag_spec=
8722 hardcode_libdir_flag_spec_ld=
8723 hardcode_libdir_separator=
8724 hardcode_minus_L=no
8725 hardcode_shlibpath_var=unsupported
8726 inherit_rpath=no
8727 link_all_deplibs=unknown
8728 module_cmds=
8729 module_expsym_cmds=
8730 old_archive_from_new_cmds=
8731 old_archive_from_expsyms_cmds=
8732 thread_safe_flag_spec=
8733 whole_archive_flag_spec=
8734 # include_expsyms should be a list of space-separated symbols to be *always*
8735 # included in the symbol list
8736 include_expsyms=
8737 # exclude_expsyms can be an extended regexp of symbols to exclude
8738 # it will be wrapped by ` (' and `)$', so one must not match beginning or
8739 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8740 # as well as any symbol that contains `d'.
8741 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
8742 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8743 # platforms (ab)use it in PIC code, but their linkers get confused if
8744 # the symbol is explicitly referenced. Since portable code cannot
8745 # rely on this symbol name, it's probably fine to never include it in
8746 # preloaded symbol tables.
8747 # Exclude shared library initialization/finalization symbols.
8748 extract_expsyms_cmds=
8750 case $host_os in
8751 cygwin* | mingw* | pw32* | cegcc*)
8752 # FIXME: the MSVC++ port hasn't been tested in a loooong time
8753 # When not using gcc, we currently assume that we are using
8754 # Microsoft Visual C++.
8755 if test "$GCC" != yes; then
8756 with_gnu_ld=no
8759 interix*)
8760 # we just hope/assume this is gcc and not c89 (= MSVC++)
8761 with_gnu_ld=yes
8763 openbsd*)
8764 with_gnu_ld=no
8766 esac
8768 ld_shlibs=yes
8770 # On some targets, GNU ld is compatible enough with the native linker
8771 # that we're better off using the native interface for both.
8772 lt_use_gnu_ld_interface=no
8773 if test "$with_gnu_ld" = yes; then
8774 case $host_os in
8775 aix*)
8776 # The AIX port of GNU ld has always aspired to compatibility
8777 # with the native linker. However, as the warning in the GNU ld
8778 # block says, versions before 2.19.5* couldn't really create working
8779 # shared libraries, regardless of the interface used.
8780 case `$LD -v 2>&1` in
8781 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
8782 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
8783 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
8785 lt_use_gnu_ld_interface=yes
8787 esac
8790 lt_use_gnu_ld_interface=yes
8792 esac
8795 if test "$lt_use_gnu_ld_interface" = yes; then
8796 # If archive_cmds runs LD, not CC, wlarc should be empty
8797 wlarc='${wl}'
8799 # Set some defaults for GNU ld with shared library support. These
8800 # are reset later if shared libraries are not supported. Putting them
8801 # here allows them to be overridden if necessary.
8802 runpath_var=LD_RUN_PATH
8803 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8804 export_dynamic_flag_spec='${wl}--export-dynamic'
8805 # ancient GNU ld didn't support --whole-archive et. al.
8806 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
8807 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8808 else
8809 whole_archive_flag_spec=
8811 supports_anon_versioning=no
8812 case `$LD -v 2>&1` in
8813 *GNU\ gold*) supports_anon_versioning=yes ;;
8814 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8815 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8816 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8817 *\ 2.11.*) ;; # other 2.11 versions
8818 *) supports_anon_versioning=yes ;;
8819 esac
8821 # See if GNU ld supports shared libraries.
8822 case $host_os in
8823 aix[3-9]*)
8824 # On AIX/PPC, the GNU linker is very broken
8825 if test "$host_cpu" != ia64; then
8826 ld_shlibs=no
8827 cat <<_LT_EOF 1>&2
8829 *** Warning: the GNU linker, at least up to release 2.19, is reported
8830 *** to be unable to reliably create shared libraries on AIX.
8831 *** Therefore, libtool is disabling shared libraries support. If you
8832 *** really care for shared libraries, you may want to install binutils
8833 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
8834 *** You will then need to restart the configuration process.
8836 _LT_EOF
8840 amigaos*)
8841 case $host_cpu in
8842 powerpc)
8843 # see comment about AmigaOS4 .so support
8844 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8845 archive_expsym_cmds=''
8847 m68k)
8848 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)'
8849 hardcode_libdir_flag_spec='-L$libdir'
8850 hardcode_minus_L=yes
8852 esac
8855 beos*)
8856 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8857 allow_undefined_flag=unsupported
8858 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8859 # support --undefined. This deserves some investigation. FIXME
8860 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8861 else
8862 ld_shlibs=no
8866 cygwin* | mingw* | pw32* | cegcc*)
8867 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8868 # as there is no search path for DLLs.
8869 hardcode_libdir_flag_spec='-L$libdir'
8870 export_dynamic_flag_spec='${wl}--export-all-symbols'
8871 allow_undefined_flag=unsupported
8872 always_export_symbols=no
8873 enable_shared_with_static_runtimes=yes
8874 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
8876 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
8877 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8878 # If the export-symbols file already is a .def file (1st line
8879 # is EXPORTS), use it as is; otherwise, prepend...
8880 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8881 cp $export_symbols $output_objdir/$soname.def;
8882 else
8883 echo EXPORTS > $output_objdir/$soname.def;
8884 cat $export_symbols >> $output_objdir/$soname.def;
8886 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8887 else
8888 ld_shlibs=no
8892 haiku*)
8893 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8894 link_all_deplibs=yes
8897 interix[3-9]*)
8898 hardcode_direct=no
8899 hardcode_shlibpath_var=no
8900 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8901 export_dynamic_flag_spec='${wl}-E'
8902 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8903 # Instead, shared libraries are loaded at an image base (0x10000000 by
8904 # default) and relocated if they conflict, which is a slow very memory
8905 # consuming and fragmenting process. To avoid this, we pick a random,
8906 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8907 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
8908 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8909 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'
8912 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
8913 tmp_diet=no
8914 if test "$host_os" = linux-dietlibc; then
8915 case $cc_basename in
8916 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
8917 esac
8919 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
8920 && test "$tmp_diet" = no
8921 then
8922 tmp_addflag=' $pic_flag'
8923 tmp_sharedflag='-shared'
8924 case $cc_basename,$host_cpu in
8925 pgcc*) # Portland Group C compiler
8926 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'
8927 tmp_addflag=' $pic_flag'
8929 pgf77* | pgf90* | pgf95* | pgfortran*)
8930 # Portland Group f77 and f90 compilers
8931 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'
8932 tmp_addflag=' $pic_flag -Mnomain' ;;
8933 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
8934 tmp_addflag=' -i_dynamic' ;;
8935 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
8936 tmp_addflag=' -i_dynamic -nofor_main' ;;
8937 ifc* | ifort*) # Intel Fortran compiler
8938 tmp_addflag=' -nofor_main' ;;
8939 lf95*) # Lahey Fortran 8.1
8940 whole_archive_flag_spec=
8941 tmp_sharedflag='--shared' ;;
8942 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
8943 tmp_sharedflag='-qmkshrobj'
8944 tmp_addflag= ;;
8945 nvcc*) # Cuda Compiler Driver 2.2
8946 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'
8947 compiler_needs_object=yes
8949 esac
8950 case `$CC -V 2>&1 | sed 5q` in
8951 *Sun\ C*) # Sun C 5.9
8952 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'
8953 compiler_needs_object=yes
8954 tmp_sharedflag='-G' ;;
8955 *Sun\ F*) # Sun Fortran 8.3
8956 tmp_sharedflag='-G' ;;
8957 esac
8958 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8960 if test "x$supports_anon_versioning" = xyes; then
8961 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8962 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8963 echo "local: *; };" >> $output_objdir/$libname.ver~
8964 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8967 case $cc_basename in
8968 xlf* | bgf* | bgxlf* | mpixlf*)
8969 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
8970 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
8971 hardcode_libdir_flag_spec=
8972 hardcode_libdir_flag_spec_ld='-rpath $libdir'
8973 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
8974 if test "x$supports_anon_versioning" = xyes; then
8975 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8976 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8977 echo "local: *; };" >> $output_objdir/$libname.ver~
8978 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
8981 esac
8982 else
8983 ld_shlibs=no
8987 netbsd*)
8988 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8989 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8990 wlarc=
8991 else
8992 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8993 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8997 solaris*)
8998 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
8999 ld_shlibs=no
9000 cat <<_LT_EOF 1>&2
9002 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
9003 *** create shared libraries on Solaris systems. Therefore, libtool
9004 *** is disabling shared libraries support. We urge you to upgrade GNU
9005 *** binutils to release 2.9.1 or newer. Another option is to modify
9006 *** your PATH or compiler configuration so that the native linker is
9007 *** used, and then restart.
9009 _LT_EOF
9010 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9011 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9012 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9013 else
9014 ld_shlibs=no
9018 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9019 case `$LD -v 2>&1` in
9020 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9021 ld_shlibs=no
9022 cat <<_LT_EOF 1>&2
9024 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9025 *** reliably create shared libraries on SCO systems. Therefore, libtool
9026 *** is disabling shared libraries support. We urge you to upgrade GNU
9027 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
9028 *** your PATH or compiler configuration so that the native linker is
9029 *** used, and then restart.
9031 _LT_EOF
9034 # For security reasons, it is highly recommended that you always
9035 # use absolute paths for naming shared libraries, and exclude the
9036 # DT_RUNPATH tag from executables and libraries. But doing so
9037 # requires that you compile everything twice, which is a pain.
9038 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9039 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9040 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9041 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9042 else
9043 ld_shlibs=no
9046 esac
9049 sunos4*)
9050 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9051 wlarc=
9052 hardcode_direct=yes
9053 hardcode_shlibpath_var=no
9057 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9058 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9059 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9060 else
9061 ld_shlibs=no
9064 esac
9066 if test "$ld_shlibs" = no; then
9067 runpath_var=
9068 hardcode_libdir_flag_spec=
9069 export_dynamic_flag_spec=
9070 whole_archive_flag_spec=
9072 else
9073 # PORTME fill in a description of your system's linker (not GNU ld)
9074 case $host_os in
9075 aix3*)
9076 allow_undefined_flag=unsupported
9077 always_export_symbols=yes
9078 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'
9079 # Note: this linker hardcodes the directories in LIBPATH if there
9080 # are no directories specified by -L.
9081 hardcode_minus_L=yes
9082 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9083 # Neither direct hardcoding nor static linking is supported with a
9084 # broken collect2.
9085 hardcode_direct=unsupported
9089 aix[4-9]*)
9090 if test "$host_cpu" = ia64; then
9091 # On IA64, the linker does run time linking by default, so we don't
9092 # have to do anything special.
9093 aix_use_runtimelinking=no
9094 exp_sym_flag='-Bexport'
9095 no_entry_flag=""
9096 else
9097 # If we're using GNU nm, then we don't want the "-C" option.
9098 # -C means demangle to AIX nm, but means don't demangle with GNU nm
9099 # Also, AIX nm treats weak defined symbols like other global
9100 # defined symbols, whereas GNU nm marks them as "W".
9101 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9102 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'
9103 else
9104 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'
9106 aix_use_runtimelinking=no
9108 # Test if we are trying to use run time linking or normal
9109 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9110 # need to do runtime linking.
9111 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9112 for ld_flag in $LDFLAGS; do
9113 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9114 aix_use_runtimelinking=yes
9115 break
9117 done
9119 esac
9121 exp_sym_flag='-bexport'
9122 no_entry_flag='-bnoentry'
9125 # When large executables or shared objects are built, AIX ld can
9126 # have problems creating the table of contents. If linking a library
9127 # or program results in "error TOC overflow" add -mminimal-toc to
9128 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9129 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9131 archive_cmds=''
9132 hardcode_direct=yes
9133 hardcode_direct_absolute=yes
9134 hardcode_libdir_separator=':'
9135 link_all_deplibs=yes
9136 file_list_spec='${wl}-f,'
9138 if test "$GCC" = yes; then
9139 case $host_os in aix4.[012]|aix4.[012].*)
9140 # We only want to do this on AIX 4.2 and lower, the check
9141 # below for broken collect2 doesn't work under 4.3+
9142 collect2name=`${CC} -print-prog-name=collect2`
9143 if test -f "$collect2name" &&
9144 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9145 then
9146 # We have reworked collect2
9148 else
9149 # We have old collect2
9150 hardcode_direct=unsupported
9151 # It fails to find uninstalled libraries when the uninstalled
9152 # path is not listed in the libpath. Setting hardcode_minus_L
9153 # to unsupported forces relinking
9154 hardcode_minus_L=yes
9155 hardcode_libdir_flag_spec='-L$libdir'
9156 hardcode_libdir_separator=
9159 esac
9160 shared_flag='-shared'
9161 if test "$aix_use_runtimelinking" = yes; then
9162 shared_flag="$shared_flag "'${wl}-G'
9164 else
9165 # not using gcc
9166 if test "$host_cpu" = ia64; then
9167 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9168 # chokes on -Wl,-G. The following line is correct:
9169 shared_flag='-G'
9170 else
9171 if test "$aix_use_runtimelinking" = yes; then
9172 shared_flag='${wl}-G'
9173 else
9174 shared_flag='${wl}-bM:SRE'
9179 export_dynamic_flag_spec='${wl}-bexpall'
9180 # It seems that -bexpall does not export symbols beginning with
9181 # underscore (_), so it is better to generate a list of symbols to export.
9182 always_export_symbols=yes
9183 if test "$aix_use_runtimelinking" = yes; then
9184 # Warning - without using the other runtime loading flags (-brtl),
9185 # -berok will link without error, but may produce a broken library.
9186 allow_undefined_flag='-berok'
9187 # Determine the default libpath from the value encoded in an
9188 # empty executable.
9189 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9190 /* end confdefs.h. */
9193 main ()
9197 return 0;
9199 _ACEOF
9200 if ac_fn_c_try_link "$LINENO"; then :
9202 lt_aix_libpath_sed='
9203 /Import File Strings/,/^$/ {
9204 /^0/ {
9205 s/^0 *\(.*\)$/\1/
9209 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9210 # Check for a 64-bit object if we didn't find anything.
9211 if test -z "$aix_libpath"; then
9212 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9215 rm -f core conftest.err conftest.$ac_objext \
9216 conftest$ac_exeext conftest.$ac_ext
9217 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9219 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9220 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"
9221 else
9222 if test "$host_cpu" = ia64; then
9223 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9224 allow_undefined_flag="-z nodefs"
9225 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"
9226 else
9227 # Determine the default libpath from the value encoded in an
9228 # empty executable.
9229 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9230 /* end confdefs.h. */
9233 main ()
9237 return 0;
9239 _ACEOF
9240 if ac_fn_c_try_link "$LINENO"; then :
9242 lt_aix_libpath_sed='
9243 /Import File Strings/,/^$/ {
9244 /^0/ {
9245 s/^0 *\(.*\)$/\1/
9249 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9250 # Check for a 64-bit object if we didn't find anything.
9251 if test -z "$aix_libpath"; then
9252 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9255 rm -f core conftest.err conftest.$ac_objext \
9256 conftest$ac_exeext conftest.$ac_ext
9257 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9259 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9260 # Warning - without using the other run time loading flags,
9261 # -berok will link without error, but may produce a broken library.
9262 no_undefined_flag=' ${wl}-bernotok'
9263 allow_undefined_flag=' ${wl}-berok'
9264 if test "$with_gnu_ld" = yes; then
9265 # We only use this code for GNU lds that support --whole-archive.
9266 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
9267 else
9268 # Exported symbols can be pulled into shared objects from archives
9269 whole_archive_flag_spec='$convenience'
9271 archive_cmds_need_lc=yes
9272 # This is similar to how AIX traditionally builds its shared libraries.
9273 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'
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 bsdi[45]*)
9294 export_dynamic_flag_spec=-rdynamic
9297 cygwin* | mingw* | pw32* | cegcc*)
9298 # When not using gcc, we currently assume that we are using
9299 # Microsoft Visual C++.
9300 # hardcode_libdir_flag_spec is actually meaningless, as there is
9301 # no search path for DLLs.
9302 hardcode_libdir_flag_spec=' '
9303 allow_undefined_flag=unsupported
9304 # Tell ltmain to make .lib files, not .a files.
9305 libext=lib
9306 # Tell ltmain to make .dll files, not .so files.
9307 shrext_cmds=".dll"
9308 # FIXME: Setting linknames here is a bad hack.
9309 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
9310 # The linker will automatically build a .lib file if we build a DLL.
9311 old_archive_from_new_cmds='true'
9312 # FIXME: Should let the user specify the lib program.
9313 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9314 fix_srcfile_path='`cygpath -w "$srcfile"`'
9315 enable_shared_with_static_runtimes=yes
9318 darwin* | rhapsody*)
9321 archive_cmds_need_lc=no
9322 hardcode_direct=no
9323 hardcode_automatic=yes
9324 hardcode_shlibpath_var=unsupported
9325 if test "$lt_cv_ld_force_load" = "yes"; then
9326 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\"`'
9327 else
9328 whole_archive_flag_spec=''
9330 link_all_deplibs=yes
9331 allow_undefined_flag="$_lt_dar_allow_undefined"
9332 case $cc_basename in
9333 ifort*) _lt_dar_can_shared=yes ;;
9334 *) _lt_dar_can_shared=$GCC ;;
9335 esac
9336 if test "$_lt_dar_can_shared" = "yes"; then
9337 output_verbose_link_cmd=func_echo_all
9338 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9339 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9340 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}"
9341 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}"
9343 else
9344 ld_shlibs=no
9349 dgux*)
9350 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9351 hardcode_libdir_flag_spec='-L$libdir'
9352 hardcode_shlibpath_var=no
9355 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9356 # support. Future versions do this automatically, but an explicit c++rt0.o
9357 # does not break anything, and helps significantly (at the cost of a little
9358 # extra space).
9359 freebsd2.2*)
9360 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9361 hardcode_libdir_flag_spec='-R$libdir'
9362 hardcode_direct=yes
9363 hardcode_shlibpath_var=no
9366 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9367 freebsd2.*)
9368 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9369 hardcode_direct=yes
9370 hardcode_minus_L=yes
9371 hardcode_shlibpath_var=no
9374 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9375 freebsd* | dragonfly*)
9376 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
9377 hardcode_libdir_flag_spec='-R$libdir'
9378 hardcode_direct=yes
9379 hardcode_shlibpath_var=no
9382 hpux9*)
9383 if test "$GCC" = yes; then
9384 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'
9385 else
9386 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'
9388 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9389 hardcode_libdir_separator=:
9390 hardcode_direct=yes
9392 # hardcode_minus_L: Not really in the search PATH,
9393 # but as the default location of the library.
9394 hardcode_minus_L=yes
9395 export_dynamic_flag_spec='${wl}-E'
9398 hpux10*)
9399 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9400 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9401 else
9402 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9404 if test "$with_gnu_ld" = no; then
9405 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9406 hardcode_libdir_flag_spec_ld='+b $libdir'
9407 hardcode_libdir_separator=:
9408 hardcode_direct=yes
9409 hardcode_direct_absolute=yes
9410 export_dynamic_flag_spec='${wl}-E'
9411 # hardcode_minus_L: Not really in the search PATH,
9412 # but as the default location of the library.
9413 hardcode_minus_L=yes
9417 hpux11*)
9418 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9419 case $host_cpu in
9420 hppa*64*)
9421 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9423 ia64*)
9424 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9427 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9429 esac
9430 else
9431 case $host_cpu in
9432 hppa*64*)
9433 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9435 ia64*)
9436 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9440 # Older versions of the 11.00 compiler do not understand -b yet
9441 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
9442 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
9443 $as_echo_n "checking if $CC understands -b... " >&6; }
9444 if test "${lt_cv_prog_compiler__b+set}" = set; then :
9445 $as_echo_n "(cached) " >&6
9446 else
9447 lt_cv_prog_compiler__b=no
9448 save_LDFLAGS="$LDFLAGS"
9449 LDFLAGS="$LDFLAGS -b"
9450 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9451 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9452 # The linker can only warn and ignore the option if not recognized
9453 # So say no if there are warnings
9454 if test -s conftest.err; then
9455 # Append any errors to the config.log.
9456 cat conftest.err 1>&5
9457 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9458 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9459 if diff conftest.exp conftest.er2 >/dev/null; then
9460 lt_cv_prog_compiler__b=yes
9462 else
9463 lt_cv_prog_compiler__b=yes
9466 $RM -r conftest*
9467 LDFLAGS="$save_LDFLAGS"
9470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
9471 $as_echo "$lt_cv_prog_compiler__b" >&6; }
9473 if test x"$lt_cv_prog_compiler__b" = xyes; then
9474 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9475 else
9476 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9480 esac
9482 if test "$with_gnu_ld" = no; then
9483 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9484 hardcode_libdir_separator=:
9486 case $host_cpu in
9487 hppa*64*|ia64*)
9488 hardcode_direct=no
9489 hardcode_shlibpath_var=no
9492 hardcode_direct=yes
9493 hardcode_direct_absolute=yes
9494 export_dynamic_flag_spec='${wl}-E'
9496 # hardcode_minus_L: Not really in the search PATH,
9497 # but as the default location of the library.
9498 hardcode_minus_L=yes
9500 esac
9504 irix5* | irix6* | nonstopux*)
9505 if test "$GCC" = yes; then
9506 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'
9507 # Try to use the -exported_symbol ld option, if it does not
9508 # work, assume that -exports_file does not work either and
9509 # implicitly export all symbols.
9510 save_LDFLAGS="$LDFLAGS"
9511 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
9512 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9513 /* end confdefs.h. */
9514 int foo(void) {}
9515 _ACEOF
9516 if ac_fn_c_try_link "$LINENO"; then :
9517 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'
9520 rm -f core conftest.err conftest.$ac_objext \
9521 conftest$ac_exeext conftest.$ac_ext
9522 LDFLAGS="$save_LDFLAGS"
9523 else
9524 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'
9525 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'
9527 archive_cmds_need_lc='no'
9528 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9529 hardcode_libdir_separator=:
9530 inherit_rpath=yes
9531 link_all_deplibs=yes
9534 netbsd*)
9535 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9536 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
9537 else
9538 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
9540 hardcode_libdir_flag_spec='-R$libdir'
9541 hardcode_direct=yes
9542 hardcode_shlibpath_var=no
9545 newsos6)
9546 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9547 hardcode_direct=yes
9548 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9549 hardcode_libdir_separator=:
9550 hardcode_shlibpath_var=no
9553 *nto* | *qnx*)
9556 openbsd*)
9557 if test -f /usr/libexec/ld.so; then
9558 hardcode_direct=yes
9559 hardcode_shlibpath_var=no
9560 hardcode_direct_absolute=yes
9561 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9562 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9563 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9564 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9565 export_dynamic_flag_spec='${wl}-E'
9566 else
9567 case $host_os in
9568 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9569 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9570 hardcode_libdir_flag_spec='-R$libdir'
9573 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9574 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9576 esac
9578 else
9579 ld_shlibs=no
9583 os2*)
9584 hardcode_libdir_flag_spec='-L$libdir'
9585 hardcode_minus_L=yes
9586 allow_undefined_flag=unsupported
9587 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'
9588 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9591 osf3*)
9592 if test "$GCC" = yes; then
9593 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9594 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'
9595 else
9596 allow_undefined_flag=' -expect_unresolved \*'
9597 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'
9599 archive_cmds_need_lc='no'
9600 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9601 hardcode_libdir_separator=:
9604 osf4* | osf5*) # as osf3* with the addition of -msym flag
9605 if test "$GCC" = yes; then
9606 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9607 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'
9608 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9609 else
9610 allow_undefined_flag=' -expect_unresolved \*'
9611 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'
9612 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~
9613 $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'
9615 # Both c and cxx compiler support -rpath directly
9616 hardcode_libdir_flag_spec='-rpath $libdir'
9618 archive_cmds_need_lc='no'
9619 hardcode_libdir_separator=:
9622 solaris*)
9623 no_undefined_flag=' -z defs'
9624 if test "$GCC" = yes; then
9625 wlarc='${wl}'
9626 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9627 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9628 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9629 else
9630 case `$CC -V 2>&1` in
9631 *"Compilers 5.0"*)
9632 wlarc=''
9633 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9634 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9635 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
9638 wlarc='${wl}'
9639 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
9640 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9641 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9643 esac
9645 hardcode_libdir_flag_spec='-R$libdir'
9646 hardcode_shlibpath_var=no
9647 case $host_os in
9648 solaris2.[0-5] | solaris2.[0-5].*) ;;
9650 # The compiler driver will combine and reorder linker options,
9651 # but understands `-z linker_flag'. GCC discards it without `$wl',
9652 # but is careful enough not to reorder.
9653 # Supported since Solaris 2.6 (maybe 2.5.1?)
9654 if test "$GCC" = yes; then
9655 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9656 else
9657 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
9660 esac
9661 link_all_deplibs=yes
9664 sunos4*)
9665 if test "x$host_vendor" = xsequent; then
9666 # Use $CC to link under sequent, because it throws in some extra .o
9667 # files that make .init and .fini sections work.
9668 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9669 else
9670 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9672 hardcode_libdir_flag_spec='-L$libdir'
9673 hardcode_direct=yes
9674 hardcode_minus_L=yes
9675 hardcode_shlibpath_var=no
9678 sysv4)
9679 case $host_vendor in
9680 sni)
9681 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9682 hardcode_direct=yes # is this really true???
9684 siemens)
9685 ## LD is ld it makes a PLAMLIB
9686 ## CC just makes a GrossModule.
9687 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9688 reload_cmds='$CC -r -o $output$reload_objs'
9689 hardcode_direct=no
9691 motorola)
9692 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9693 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9695 esac
9696 runpath_var='LD_RUN_PATH'
9697 hardcode_shlibpath_var=no
9700 sysv4.3*)
9701 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9702 hardcode_shlibpath_var=no
9703 export_dynamic_flag_spec='-Bexport'
9706 sysv4*MP*)
9707 if test -d /usr/nec; then
9708 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9709 hardcode_shlibpath_var=no
9710 runpath_var=LD_RUN_PATH
9711 hardcode_runpath_var=yes
9712 ld_shlibs=yes
9716 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
9717 no_undefined_flag='${wl}-z,text'
9718 archive_cmds_need_lc=no
9719 hardcode_shlibpath_var=no
9720 runpath_var='LD_RUN_PATH'
9722 if test "$GCC" = yes; then
9723 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9724 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9725 else
9726 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9727 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9731 sysv5* | sco3.2v5* | sco5v6*)
9732 # Note: We can NOT use -z defs as we might desire, because we do not
9733 # link with -lc, and that would cause any symbols used from libc to
9734 # always be unresolved, which means just about no library would
9735 # ever link correctly. If we're not using GNU ld we use -z text
9736 # though, which does catch some bad symbols but isn't as heavy-handed
9737 # as -z defs.
9738 no_undefined_flag='${wl}-z,text'
9739 allow_undefined_flag='${wl}-z,nodefs'
9740 archive_cmds_need_lc=no
9741 hardcode_shlibpath_var=no
9742 hardcode_libdir_flag_spec='${wl}-R,$libdir'
9743 hardcode_libdir_separator=':'
9744 link_all_deplibs=yes
9745 export_dynamic_flag_spec='${wl}-Bexport'
9746 runpath_var='LD_RUN_PATH'
9748 if test "$GCC" = yes; then
9749 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9750 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9751 else
9752 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9753 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9757 uts4*)
9758 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9759 hardcode_libdir_flag_spec='-L$libdir'
9760 hardcode_shlibpath_var=no
9764 ld_shlibs=no
9766 esac
9768 if test x$host_vendor = xsni; then
9769 case $host in
9770 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
9771 export_dynamic_flag_spec='${wl}-Blargedynsym'
9773 esac
9777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
9778 $as_echo "$ld_shlibs" >&6; }
9779 test "$ld_shlibs" = no && can_build_shared=no
9781 with_gnu_ld=$with_gnu_ld
9798 # Do we need to explicitly link libc?
9800 case "x$archive_cmds_need_lc" in
9801 x|xyes)
9802 # Assume -lc should be added
9803 archive_cmds_need_lc=yes
9805 if test "$enable_shared" = yes && test "$GCC" = yes; then
9806 case $archive_cmds in
9807 *'~'*)
9808 # FIXME: we may have to deal with multi-command sequences.
9810 '$CC '*)
9811 # Test whether the compiler implicitly links with -lc since on some
9812 # systems, -lgcc has to come before -lc. If gcc already passes -lc
9813 # to ld, don't add -lc before -lgcc.
9814 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
9815 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
9816 if test "${lt_cv_archive_cmds_need_lc+set}" = set; then :
9817 $as_echo_n "(cached) " >&6
9818 else
9819 $RM conftest*
9820 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9822 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9823 (eval $ac_compile) 2>&5
9824 ac_status=$?
9825 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9826 test $ac_status = 0; } 2>conftest.err; then
9827 soname=conftest
9828 lib=conftest
9829 libobjs=conftest.$ac_objext
9830 deplibs=
9831 wl=$lt_prog_compiler_wl
9832 pic_flag=$lt_prog_compiler_pic
9833 compiler_flags=-v
9834 linker_flags=-v
9835 verstring=
9836 output_objdir=.
9837 libname=conftest
9838 lt_save_allow_undefined_flag=$allow_undefined_flag
9839 allow_undefined_flag=
9840 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
9841 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
9842 ac_status=$?
9843 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9844 test $ac_status = 0; }
9845 then
9846 lt_cv_archive_cmds_need_lc=no
9847 else
9848 lt_cv_archive_cmds_need_lc=yes
9850 allow_undefined_flag=$lt_save_allow_undefined_flag
9851 else
9852 cat conftest.err 1>&5
9854 $RM conftest*
9857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
9858 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
9859 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
9861 esac
9864 esac
10022 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10023 $as_echo_n "checking dynamic linker characteristics... " >&6; }
10025 if test "$GCC" = yes; then
10026 case $host_os in
10027 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
10028 *) lt_awk_arg="/^libraries:/" ;;
10029 esac
10030 case $host_os in
10031 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
10032 *) lt_sed_strip_eq="s,=/,/,g" ;;
10033 esac
10034 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
10035 case $lt_search_path_spec in
10036 *\;*)
10037 # if the path contains ";" then we assume it to be the separator
10038 # otherwise default to the standard path separator (i.e. ":") - it is
10039 # assumed that no part of a normal pathname contains ";" but that should
10040 # okay in the real world where ";" in dirpaths is itself problematic.
10041 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
10044 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
10046 esac
10047 # Ok, now we have the path, separated by spaces, we can step through it
10048 # and add multilib dir if necessary.
10049 lt_tmp_lt_search_path_spec=
10050 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10051 for lt_sys_path in $lt_search_path_spec; do
10052 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
10053 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
10054 else
10055 test -d "$lt_sys_path" && \
10056 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10058 done
10059 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
10060 BEGIN {RS=" "; FS="/|\n";} {
10061 lt_foo="";
10062 lt_count=0;
10063 for (lt_i = NF; lt_i > 0; lt_i--) {
10064 if ($lt_i != "" && $lt_i != ".") {
10065 if ($lt_i == "..") {
10066 lt_count++;
10067 } else {
10068 if (lt_count == 0) {
10069 lt_foo="/" $lt_i lt_foo;
10070 } else {
10071 lt_count--;
10076 if (lt_foo != "") { lt_freq[lt_foo]++; }
10077 if (lt_freq[lt_foo] == 1) { print lt_foo; }
10079 # AWK program above erroneously prepends '/' to C:/dos/paths
10080 # for these hosts.
10081 case $host_os in
10082 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
10083 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
10084 esac
10085 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
10086 else
10087 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10089 library_names_spec=
10090 libname_spec='lib$name'
10091 soname_spec=
10092 shrext_cmds=".so"
10093 postinstall_cmds=
10094 postuninstall_cmds=
10095 finish_cmds=
10096 finish_eval=
10097 shlibpath_var=
10098 shlibpath_overrides_runpath=unknown
10099 version_type=none
10100 dynamic_linker="$host_os ld.so"
10101 sys_lib_dlsearch_path_spec="/lib /usr/lib"
10102 need_lib_prefix=unknown
10103 hardcode_into_libs=no
10105 # when you set need_version to no, make sure it does not cause -set_version
10106 # flags to be left without arguments
10107 need_version=unknown
10109 case $host_os in
10110 aix3*)
10111 version_type=linux
10112 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10113 shlibpath_var=LIBPATH
10115 # AIX 3 has no versioning support, so we append a major version to the name.
10116 soname_spec='${libname}${release}${shared_ext}$major'
10119 aix[4-9]*)
10120 version_type=linux
10121 need_lib_prefix=no
10122 need_version=no
10123 hardcode_into_libs=yes
10124 if test "$host_cpu" = ia64; then
10125 # AIX 5 supports IA64
10126 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10127 shlibpath_var=LD_LIBRARY_PATH
10128 else
10129 # With GCC up to 2.95.x, collect2 would create an import file
10130 # for dependence libraries. The import file would start with
10131 # the line `#! .'. This would cause the generated library to
10132 # depend on `.', always an invalid library. This was fixed in
10133 # development snapshots of GCC prior to 3.0.
10134 case $host_os in
10135 aix4 | aix4.[01] | aix4.[01].*)
10136 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10137 echo ' yes '
10138 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
10140 else
10141 can_build_shared=no
10144 esac
10145 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10146 # soname into executable. Probably we can add versioning support to
10147 # collect2, so additional links can be useful in future.
10148 if test "$aix_use_runtimelinking" = yes; then
10149 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10150 # instead of lib<name>.a to let people know that these are not
10151 # typical AIX shared libraries.
10152 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10153 else
10154 # We preserve .a as extension for shared libraries through AIX4.2
10155 # and later when we are not doing run time linking.
10156 library_names_spec='${libname}${release}.a $libname.a'
10157 soname_spec='${libname}${release}${shared_ext}$major'
10159 shlibpath_var=LIBPATH
10163 amigaos*)
10164 case $host_cpu in
10165 powerpc)
10166 # Since July 2007 AmigaOS4 officially supports .so libraries.
10167 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10168 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10170 m68k)
10171 library_names_spec='$libname.ixlibrary $libname.a'
10172 # Create ${libname}_ixlibrary.a entries in /sys/libs.
10173 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'
10175 esac
10178 beos*)
10179 library_names_spec='${libname}${shared_ext}'
10180 dynamic_linker="$host_os ld.so"
10181 shlibpath_var=LIBRARY_PATH
10184 bsdi[45]*)
10185 version_type=linux
10186 need_version=no
10187 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10188 soname_spec='${libname}${release}${shared_ext}$major'
10189 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10190 shlibpath_var=LD_LIBRARY_PATH
10191 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10192 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10193 # the default ld.so.conf also contains /usr/contrib/lib and
10194 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10195 # libtool to hard-code these into programs
10198 cygwin* | mingw* | pw32* | cegcc*)
10199 version_type=windows
10200 shrext_cmds=".dll"
10201 need_version=no
10202 need_lib_prefix=no
10204 case $GCC,$host_os in
10205 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
10206 library_names_spec='$libname.dll.a'
10207 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10208 postinstall_cmds='base_file=`basename \${file}`~
10209 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10210 dldir=$destdir/`dirname \$dlpath`~
10211 test -d \$dldir || mkdir -p \$dldir~
10212 $install_prog $dir/$dlname \$dldir/$dlname~
10213 chmod a+x \$dldir/$dlname~
10214 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10215 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10217 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10218 dlpath=$dir/\$dldll~
10219 $RM \$dlpath'
10220 shlibpath_overrides_runpath=yes
10222 case $host_os in
10223 cygwin*)
10224 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10225 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10227 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
10229 mingw* | cegcc*)
10230 # MinGW DLLs use traditional 'lib' prefix
10231 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10233 pw32*)
10234 # pw32 DLLs use 'pw' prefix rather than 'lib'
10235 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10237 esac
10241 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10243 esac
10244 dynamic_linker='Win32 ld.exe'
10245 # FIXME: first we should search . and the directory the executable is in
10246 shlibpath_var=PATH
10249 darwin* | rhapsody*)
10250 dynamic_linker="$host_os dyld"
10251 version_type=darwin
10252 need_lib_prefix=no
10253 need_version=no
10254 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10255 soname_spec='${libname}${release}${major}$shared_ext'
10256 shlibpath_overrides_runpath=yes
10257 shlibpath_var=DYLD_LIBRARY_PATH
10258 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10260 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10261 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10264 dgux*)
10265 version_type=linux
10266 need_lib_prefix=no
10267 need_version=no
10268 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10269 soname_spec='${libname}${release}${shared_ext}$major'
10270 shlibpath_var=LD_LIBRARY_PATH
10273 freebsd* | dragonfly*)
10274 # DragonFly does not have aout. When/if they implement a new
10275 # versioning mechanism, adjust this.
10276 if test -x /usr/bin/objformat; then
10277 objformat=`/usr/bin/objformat`
10278 else
10279 case $host_os in
10280 freebsd[23].*) objformat=aout ;;
10281 *) objformat=elf ;;
10282 esac
10284 version_type=freebsd-$objformat
10285 case $version_type in
10286 freebsd-elf*)
10287 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10288 need_version=no
10289 need_lib_prefix=no
10291 freebsd-*)
10292 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10293 need_version=yes
10295 esac
10296 shlibpath_var=LD_LIBRARY_PATH
10297 case $host_os in
10298 freebsd2.*)
10299 shlibpath_overrides_runpath=yes
10301 freebsd3.[01]* | freebsdelf3.[01]*)
10302 shlibpath_overrides_runpath=yes
10303 hardcode_into_libs=yes
10305 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10306 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10307 shlibpath_overrides_runpath=no
10308 hardcode_into_libs=yes
10310 *) # from 4.6 on, and DragonFly
10311 shlibpath_overrides_runpath=yes
10312 hardcode_into_libs=yes
10314 esac
10317 gnu*)
10318 version_type=linux
10319 need_lib_prefix=no
10320 need_version=no
10321 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10322 soname_spec='${libname}${release}${shared_ext}$major'
10323 shlibpath_var=LD_LIBRARY_PATH
10324 hardcode_into_libs=yes
10327 haiku*)
10328 version_type=linux
10329 need_lib_prefix=no
10330 need_version=no
10331 dynamic_linker="$host_os runtime_loader"
10332 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10333 soname_spec='${libname}${release}${shared_ext}$major'
10334 shlibpath_var=LIBRARY_PATH
10335 shlibpath_overrides_runpath=yes
10336 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
10337 hardcode_into_libs=yes
10340 hpux9* | hpux10* | hpux11*)
10341 # Give a soname corresponding to the major version so that dld.sl refuses to
10342 # link against other versions.
10343 version_type=sunos
10344 need_lib_prefix=no
10345 need_version=no
10346 case $host_cpu in
10347 ia64*)
10348 shrext_cmds='.so'
10349 hardcode_into_libs=yes
10350 dynamic_linker="$host_os dld.so"
10351 shlibpath_var=LD_LIBRARY_PATH
10352 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10353 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10354 soname_spec='${libname}${release}${shared_ext}$major'
10355 if test "X$HPUX_IA64_MODE" = X32; then
10356 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10357 else
10358 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10360 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10362 hppa*64*)
10363 shrext_cmds='.sl'
10364 hardcode_into_libs=yes
10365 dynamic_linker="$host_os dld.sl"
10366 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10367 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10368 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10369 soname_spec='${libname}${release}${shared_ext}$major'
10370 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10371 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10374 shrext_cmds='.sl'
10375 dynamic_linker="$host_os dld.sl"
10376 shlibpath_var=SHLIB_PATH
10377 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10378 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10379 soname_spec='${libname}${release}${shared_ext}$major'
10381 esac
10382 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
10383 postinstall_cmds='chmod 555 $lib'
10384 # or fails outright, so override atomically:
10385 install_override_mode=555
10388 interix[3-9]*)
10389 version_type=linux
10390 need_lib_prefix=no
10391 need_version=no
10392 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10393 soname_spec='${libname}${release}${shared_ext}$major'
10394 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10395 shlibpath_var=LD_LIBRARY_PATH
10396 shlibpath_overrides_runpath=no
10397 hardcode_into_libs=yes
10400 irix5* | irix6* | nonstopux*)
10401 case $host_os in
10402 nonstopux*) version_type=nonstopux ;;
10404 if test "$lt_cv_prog_gnu_ld" = yes; then
10405 version_type=linux
10406 else
10407 version_type=irix
10408 fi ;;
10409 esac
10410 need_lib_prefix=no
10411 need_version=no
10412 soname_spec='${libname}${release}${shared_ext}$major'
10413 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10414 case $host_os in
10415 irix5* | nonstopux*)
10416 libsuff= shlibsuff=
10419 case $LD in # libtool.m4 will add one of these switches to LD
10420 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10421 libsuff= shlibsuff= libmagic=32-bit;;
10422 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10423 libsuff=32 shlibsuff=N32 libmagic=N32;;
10424 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10425 libsuff=64 shlibsuff=64 libmagic=64-bit;;
10426 *) libsuff= shlibsuff= libmagic=never-match;;
10427 esac
10429 esac
10430 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10431 shlibpath_overrides_runpath=no
10432 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10433 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10434 hardcode_into_libs=yes
10437 # No shared lib support for Linux oldld, aout, or coff.
10438 linux*oldld* | linux*aout* | linux*coff*)
10439 dynamic_linker=no
10442 # This must be Linux ELF.
10443 linux* | k*bsd*-gnu | kopensolaris*-gnu)
10444 version_type=linux
10445 need_lib_prefix=no
10446 need_version=no
10447 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10448 soname_spec='${libname}${release}${shared_ext}$major'
10449 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10450 shlibpath_var=LD_LIBRARY_PATH
10451 shlibpath_overrides_runpath=no
10453 # Some binutils ld are patched to set DT_RUNPATH
10454 if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
10455 $as_echo_n "(cached) " >&6
10456 else
10457 lt_cv_shlibpath_overrides_runpath=no
10458 save_LDFLAGS=$LDFLAGS
10459 save_libdir=$libdir
10460 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10461 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10462 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10463 /* end confdefs.h. */
10466 main ()
10470 return 0;
10472 _ACEOF
10473 if ac_fn_c_try_link "$LINENO"; then :
10474 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
10475 lt_cv_shlibpath_overrides_runpath=yes
10478 rm -f core conftest.err conftest.$ac_objext \
10479 conftest$ac_exeext conftest.$ac_ext
10480 LDFLAGS=$save_LDFLAGS
10481 libdir=$save_libdir
10485 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
10487 # This implies no fast_install, which is unacceptable.
10488 # Some rework will be needed to allow for fast_install
10489 # before this can be enabled.
10490 hardcode_into_libs=yes
10492 # Append ld.so.conf contents to the search path
10493 if test -f /etc/ld.so.conf; then
10494 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' ' '`
10495 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10498 # We used to test for /lib/ld.so.1 and disable shared libraries on
10499 # powerpc, because MkLinux only supported shared libraries with the
10500 # GNU dynamic linker. Since this was broken with cross compilers,
10501 # most powerpc-linux boxes support dynamic linking these days and
10502 # people can always --disable-shared, the test was removed, and we
10503 # assume the GNU/Linux dynamic linker is in use.
10504 dynamic_linker='GNU/Linux ld.so'
10507 netbsd*)
10508 version_type=sunos
10509 need_lib_prefix=no
10510 need_version=no
10511 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10512 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10513 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10514 dynamic_linker='NetBSD (a.out) ld.so'
10515 else
10516 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10517 soname_spec='${libname}${release}${shared_ext}$major'
10518 dynamic_linker='NetBSD ld.elf_so'
10520 shlibpath_var=LD_LIBRARY_PATH
10521 shlibpath_overrides_runpath=yes
10522 hardcode_into_libs=yes
10525 newsos6)
10526 version_type=linux
10527 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10528 shlibpath_var=LD_LIBRARY_PATH
10529 shlibpath_overrides_runpath=yes
10532 *nto* | *qnx*)
10533 version_type=qnx
10534 need_lib_prefix=no
10535 need_version=no
10536 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10537 soname_spec='${libname}${release}${shared_ext}$major'
10538 shlibpath_var=LD_LIBRARY_PATH
10539 shlibpath_overrides_runpath=no
10540 hardcode_into_libs=yes
10541 dynamic_linker='ldqnx.so'
10544 openbsd*)
10545 version_type=sunos
10546 sys_lib_dlsearch_path_spec="/usr/lib"
10547 need_lib_prefix=no
10548 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10549 case $host_os in
10550 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
10551 *) need_version=no ;;
10552 esac
10553 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10554 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10555 shlibpath_var=LD_LIBRARY_PATH
10556 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10557 case $host_os in
10558 openbsd2.[89] | openbsd2.[89].*)
10559 shlibpath_overrides_runpath=no
10562 shlibpath_overrides_runpath=yes
10564 esac
10565 else
10566 shlibpath_overrides_runpath=yes
10570 os2*)
10571 libname_spec='$name'
10572 shrext_cmds=".dll"
10573 need_lib_prefix=no
10574 library_names_spec='$libname${shared_ext} $libname.a'
10575 dynamic_linker='OS/2 ld.exe'
10576 shlibpath_var=LIBPATH
10579 osf3* | osf4* | osf5*)
10580 version_type=osf
10581 need_lib_prefix=no
10582 need_version=no
10583 soname_spec='${libname}${release}${shared_ext}$major'
10584 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10585 shlibpath_var=LD_LIBRARY_PATH
10586 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10587 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10590 rdos*)
10591 dynamic_linker=no
10594 solaris*)
10595 version_type=linux
10596 need_lib_prefix=no
10597 need_version=no
10598 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10599 soname_spec='${libname}${release}${shared_ext}$major'
10600 shlibpath_var=LD_LIBRARY_PATH
10601 shlibpath_overrides_runpath=yes
10602 hardcode_into_libs=yes
10603 # ldd complains unless libraries are executable
10604 postinstall_cmds='chmod +x $lib'
10607 sunos4*)
10608 version_type=sunos
10609 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10610 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10611 shlibpath_var=LD_LIBRARY_PATH
10612 shlibpath_overrides_runpath=yes
10613 if test "$with_gnu_ld" = yes; then
10614 need_lib_prefix=no
10616 need_version=yes
10619 sysv4 | sysv4.3*)
10620 version_type=linux
10621 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10622 soname_spec='${libname}${release}${shared_ext}$major'
10623 shlibpath_var=LD_LIBRARY_PATH
10624 case $host_vendor in
10625 sni)
10626 shlibpath_overrides_runpath=no
10627 need_lib_prefix=no
10628 runpath_var=LD_RUN_PATH
10630 siemens)
10631 need_lib_prefix=no
10633 motorola)
10634 need_lib_prefix=no
10635 need_version=no
10636 shlibpath_overrides_runpath=no
10637 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10639 esac
10642 sysv4*MP*)
10643 if test -d /usr/nec ;then
10644 version_type=linux
10645 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10646 soname_spec='$libname${shared_ext}.$major'
10647 shlibpath_var=LD_LIBRARY_PATH
10651 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10652 version_type=freebsd-elf
10653 need_lib_prefix=no
10654 need_version=no
10655 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10656 soname_spec='${libname}${release}${shared_ext}$major'
10657 shlibpath_var=LD_LIBRARY_PATH
10658 shlibpath_overrides_runpath=yes
10659 hardcode_into_libs=yes
10660 if test "$with_gnu_ld" = yes; then
10661 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10662 else
10663 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10664 case $host_os in
10665 sco3.2v5*)
10666 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10668 esac
10670 sys_lib_dlsearch_path_spec='/usr/lib'
10673 tpf*)
10674 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
10675 version_type=linux
10676 need_lib_prefix=no
10677 need_version=no
10678 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10679 shlibpath_var=LD_LIBRARY_PATH
10680 shlibpath_overrides_runpath=no
10681 hardcode_into_libs=yes
10684 uts4*)
10685 version_type=linux
10686 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10687 soname_spec='${libname}${release}${shared_ext}$major'
10688 shlibpath_var=LD_LIBRARY_PATH
10692 dynamic_linker=no
10694 esac
10695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
10696 $as_echo "$dynamic_linker" >&6; }
10697 test "$dynamic_linker" = no && can_build_shared=no
10699 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10700 if test "$GCC" = yes; then
10701 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10704 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
10705 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
10707 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
10708 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
10802 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
10803 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
10804 hardcode_action=
10805 if test -n "$hardcode_libdir_flag_spec" ||
10806 test -n "$runpath_var" ||
10807 test "X$hardcode_automatic" = "Xyes" ; then
10809 # We can hardcode non-existent directories.
10810 if test "$hardcode_direct" != no &&
10811 # If the only mechanism to avoid hardcoding is shlibpath_var, we
10812 # have to relink, otherwise we might link with an installed library
10813 # when we should be linking with a yet-to-be-installed one
10814 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
10815 test "$hardcode_minus_L" != no; then
10816 # Linking always hardcodes the temporary library directory.
10817 hardcode_action=relink
10818 else
10819 # We can link without hardcoding, and we can hardcode nonexisting dirs.
10820 hardcode_action=immediate
10822 else
10823 # We cannot hardcode anything, or else we can only hardcode existing
10824 # directories.
10825 hardcode_action=unsupported
10827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
10828 $as_echo "$hardcode_action" >&6; }
10830 if test "$hardcode_action" = relink ||
10831 test "$inherit_rpath" = yes; then
10832 # Fast installation is not supported
10833 enable_fast_install=no
10834 elif test "$shlibpath_overrides_runpath" = yes ||
10835 test "$enable_shared" = no; then
10836 # Fast installation is not necessary
10837 enable_fast_install=needless
10845 if test "x$enable_dlopen" != xyes; then
10846 enable_dlopen=unknown
10847 enable_dlopen_self=unknown
10848 enable_dlopen_self_static=unknown
10849 else
10850 lt_cv_dlopen=no
10851 lt_cv_dlopen_libs=
10853 case $host_os in
10854 beos*)
10855 lt_cv_dlopen="load_add_on"
10856 lt_cv_dlopen_libs=
10857 lt_cv_dlopen_self=yes
10860 mingw* | pw32* | cegcc*)
10861 lt_cv_dlopen="LoadLibrary"
10862 lt_cv_dlopen_libs=
10865 cygwin*)
10866 lt_cv_dlopen="dlopen"
10867 lt_cv_dlopen_libs=
10870 darwin*)
10871 # if libdl is installed we need to link against it
10872 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10873 $as_echo_n "checking for dlopen in -ldl... " >&6; }
10874 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
10875 $as_echo_n "(cached) " >&6
10876 else
10877 ac_check_lib_save_LIBS=$LIBS
10878 LIBS="-ldl $LIBS"
10879 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10880 /* end confdefs.h. */
10882 /* Override any GCC internal prototype to avoid an error.
10883 Use char because int might match the return type of a GCC
10884 builtin and then its argument prototype would still apply. */
10885 #ifdef __cplusplus
10886 extern "C"
10887 #endif
10888 char dlopen ();
10890 main ()
10892 return dlopen ();
10894 return 0;
10896 _ACEOF
10897 if ac_fn_c_try_link "$LINENO"; then :
10898 ac_cv_lib_dl_dlopen=yes
10899 else
10900 ac_cv_lib_dl_dlopen=no
10902 rm -f core conftest.err conftest.$ac_objext \
10903 conftest$ac_exeext conftest.$ac_ext
10904 LIBS=$ac_check_lib_save_LIBS
10906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10907 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10908 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
10909 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10910 else
10912 lt_cv_dlopen="dyld"
10913 lt_cv_dlopen_libs=
10914 lt_cv_dlopen_self=yes
10921 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
10922 if test "x$ac_cv_func_shl_load" = x""yes; then :
10923 lt_cv_dlopen="shl_load"
10924 else
10925 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
10926 $as_echo_n "checking for shl_load in -ldld... " >&6; }
10927 if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
10928 $as_echo_n "(cached) " >&6
10929 else
10930 ac_check_lib_save_LIBS=$LIBS
10931 LIBS="-ldld $LIBS"
10932 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10933 /* end confdefs.h. */
10935 /* Override any GCC internal prototype to avoid an error.
10936 Use char because int might match the return type of a GCC
10937 builtin and then its argument prototype would still apply. */
10938 #ifdef __cplusplus
10939 extern "C"
10940 #endif
10941 char shl_load ();
10943 main ()
10945 return shl_load ();
10947 return 0;
10949 _ACEOF
10950 if ac_fn_c_try_link "$LINENO"; then :
10951 ac_cv_lib_dld_shl_load=yes
10952 else
10953 ac_cv_lib_dld_shl_load=no
10955 rm -f core conftest.err conftest.$ac_objext \
10956 conftest$ac_exeext conftest.$ac_ext
10957 LIBS=$ac_check_lib_save_LIBS
10959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
10960 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
10961 if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
10962 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
10963 else
10964 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
10965 if test "x$ac_cv_func_dlopen" = x""yes; then :
10966 lt_cv_dlopen="dlopen"
10967 else
10968 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10969 $as_echo_n "checking for dlopen in -ldl... " >&6; }
10970 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
10971 $as_echo_n "(cached) " >&6
10972 else
10973 ac_check_lib_save_LIBS=$LIBS
10974 LIBS="-ldl $LIBS"
10975 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10976 /* end confdefs.h. */
10978 /* Override any GCC internal prototype to avoid an error.
10979 Use char because int might match the return type of a GCC
10980 builtin and then its argument prototype would still apply. */
10981 #ifdef __cplusplus
10982 extern "C"
10983 #endif
10984 char dlopen ();
10986 main ()
10988 return dlopen ();
10990 return 0;
10992 _ACEOF
10993 if ac_fn_c_try_link "$LINENO"; then :
10994 ac_cv_lib_dl_dlopen=yes
10995 else
10996 ac_cv_lib_dl_dlopen=no
10998 rm -f core conftest.err conftest.$ac_objext \
10999 conftest$ac_exeext conftest.$ac_ext
11000 LIBS=$ac_check_lib_save_LIBS
11002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11003 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11004 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
11005 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11006 else
11007 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11008 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
11009 if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
11010 $as_echo_n "(cached) " >&6
11011 else
11012 ac_check_lib_save_LIBS=$LIBS
11013 LIBS="-lsvld $LIBS"
11014 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11015 /* end confdefs.h. */
11017 /* Override any GCC internal prototype to avoid an error.
11018 Use char because int might match the return type of a GCC
11019 builtin and then its argument prototype would still apply. */
11020 #ifdef __cplusplus
11021 extern "C"
11022 #endif
11023 char dlopen ();
11025 main ()
11027 return dlopen ();
11029 return 0;
11031 _ACEOF
11032 if ac_fn_c_try_link "$LINENO"; then :
11033 ac_cv_lib_svld_dlopen=yes
11034 else
11035 ac_cv_lib_svld_dlopen=no
11037 rm -f core conftest.err conftest.$ac_objext \
11038 conftest$ac_exeext conftest.$ac_ext
11039 LIBS=$ac_check_lib_save_LIBS
11041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11042 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11043 if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
11044 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11045 else
11046 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11047 $as_echo_n "checking for dld_link in -ldld... " >&6; }
11048 if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
11049 $as_echo_n "(cached) " >&6
11050 else
11051 ac_check_lib_save_LIBS=$LIBS
11052 LIBS="-ldld $LIBS"
11053 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11054 /* end confdefs.h. */
11056 /* Override any GCC internal prototype to avoid an error.
11057 Use char because int might match the return type of a GCC
11058 builtin and then its argument prototype would still apply. */
11059 #ifdef __cplusplus
11060 extern "C"
11061 #endif
11062 char dld_link ();
11064 main ()
11066 return dld_link ();
11068 return 0;
11070 _ACEOF
11071 if ac_fn_c_try_link "$LINENO"; then :
11072 ac_cv_lib_dld_dld_link=yes
11073 else
11074 ac_cv_lib_dld_dld_link=no
11076 rm -f core conftest.err conftest.$ac_objext \
11077 conftest$ac_exeext conftest.$ac_ext
11078 LIBS=$ac_check_lib_save_LIBS
11080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11081 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11082 if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
11083 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
11102 esac
11104 if test "x$lt_cv_dlopen" != xno; then
11105 enable_dlopen=yes
11106 else
11107 enable_dlopen=no
11110 case $lt_cv_dlopen in
11111 dlopen)
11112 save_CPPFLAGS="$CPPFLAGS"
11113 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11115 save_LDFLAGS="$LDFLAGS"
11116 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11118 save_LIBS="$LIBS"
11119 LIBS="$lt_cv_dlopen_libs $LIBS"
11121 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
11122 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
11123 if test "${lt_cv_dlopen_self+set}" = set; then :
11124 $as_echo_n "(cached) " >&6
11125 else
11126 if test "$cross_compiling" = yes; then :
11127 lt_cv_dlopen_self=cross
11128 else
11129 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11130 lt_status=$lt_dlunknown
11131 cat > conftest.$ac_ext <<_LT_EOF
11132 #line 11132 "configure"
11133 #include "confdefs.h"
11135 #if HAVE_DLFCN_H
11136 #include <dlfcn.h>
11137 #endif
11139 #include <stdio.h>
11141 #ifdef RTLD_GLOBAL
11142 # define LT_DLGLOBAL RTLD_GLOBAL
11143 #else
11144 # ifdef DL_GLOBAL
11145 # define LT_DLGLOBAL DL_GLOBAL
11146 # else
11147 # define LT_DLGLOBAL 0
11148 # endif
11149 #endif
11151 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11152 find out it does not work in some platform. */
11153 #ifndef LT_DLLAZY_OR_NOW
11154 # ifdef RTLD_LAZY
11155 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11156 # else
11157 # ifdef DL_LAZY
11158 # define LT_DLLAZY_OR_NOW DL_LAZY
11159 # else
11160 # ifdef RTLD_NOW
11161 # define LT_DLLAZY_OR_NOW RTLD_NOW
11162 # else
11163 # ifdef DL_NOW
11164 # define LT_DLLAZY_OR_NOW DL_NOW
11165 # else
11166 # define LT_DLLAZY_OR_NOW 0
11167 # endif
11168 # endif
11169 # endif
11170 # endif
11171 #endif
11173 /* When -fvisbility=hidden is used, assume the code has been annotated
11174 correspondingly for the symbols needed. */
11175 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11176 void fnord () __attribute__((visibility("default")));
11177 #endif
11179 void fnord () { int i=42; }
11180 int main ()
11182 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11183 int status = $lt_dlunknown;
11185 if (self)
11187 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11188 else
11190 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11191 else puts (dlerror ());
11193 /* dlclose (self); */
11195 else
11196 puts (dlerror ());
11198 return status;
11200 _LT_EOF
11201 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11202 (eval $ac_link) 2>&5
11203 ac_status=$?
11204 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11205 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11206 (./conftest; exit; ) >&5 2>/dev/null
11207 lt_status=$?
11208 case x$lt_status in
11209 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11210 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11211 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11212 esac
11213 else :
11214 # compilation failed
11215 lt_cv_dlopen_self=no
11218 rm -fr conftest*
11222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11223 $as_echo "$lt_cv_dlopen_self" >&6; }
11225 if test "x$lt_cv_dlopen_self" = xyes; then
11226 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11227 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11228 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11229 if test "${lt_cv_dlopen_self_static+set}" = set; then :
11230 $as_echo_n "(cached) " >&6
11231 else
11232 if test "$cross_compiling" = yes; then :
11233 lt_cv_dlopen_self_static=cross
11234 else
11235 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11236 lt_status=$lt_dlunknown
11237 cat > conftest.$ac_ext <<_LT_EOF
11238 #line 11238 "configure"
11239 #include "confdefs.h"
11241 #if HAVE_DLFCN_H
11242 #include <dlfcn.h>
11243 #endif
11245 #include <stdio.h>
11247 #ifdef RTLD_GLOBAL
11248 # define LT_DLGLOBAL RTLD_GLOBAL
11249 #else
11250 # ifdef DL_GLOBAL
11251 # define LT_DLGLOBAL DL_GLOBAL
11252 # else
11253 # define LT_DLGLOBAL 0
11254 # endif
11255 #endif
11257 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11258 find out it does not work in some platform. */
11259 #ifndef LT_DLLAZY_OR_NOW
11260 # ifdef RTLD_LAZY
11261 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11262 # else
11263 # ifdef DL_LAZY
11264 # define LT_DLLAZY_OR_NOW DL_LAZY
11265 # else
11266 # ifdef RTLD_NOW
11267 # define LT_DLLAZY_OR_NOW RTLD_NOW
11268 # else
11269 # ifdef DL_NOW
11270 # define LT_DLLAZY_OR_NOW DL_NOW
11271 # else
11272 # define LT_DLLAZY_OR_NOW 0
11273 # endif
11274 # endif
11275 # endif
11276 # endif
11277 #endif
11279 /* When -fvisbility=hidden is used, assume the code has been annotated
11280 correspondingly for the symbols needed. */
11281 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11282 void fnord () __attribute__((visibility("default")));
11283 #endif
11285 void fnord () { int i=42; }
11286 int main ()
11288 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11289 int status = $lt_dlunknown;
11291 if (self)
11293 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11294 else
11296 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11297 else puts (dlerror ());
11299 /* dlclose (self); */
11301 else
11302 puts (dlerror ());
11304 return status;
11306 _LT_EOF
11307 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11308 (eval $ac_link) 2>&5
11309 ac_status=$?
11310 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11311 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11312 (./conftest; exit; ) >&5 2>/dev/null
11313 lt_status=$?
11314 case x$lt_status in
11315 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11316 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11317 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11318 esac
11319 else :
11320 # compilation failed
11321 lt_cv_dlopen_self_static=no
11324 rm -fr conftest*
11328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11329 $as_echo "$lt_cv_dlopen_self_static" >&6; }
11332 CPPFLAGS="$save_CPPFLAGS"
11333 LDFLAGS="$save_LDFLAGS"
11334 LIBS="$save_LIBS"
11336 esac
11338 case $lt_cv_dlopen_self in
11339 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11340 *) enable_dlopen_self=unknown ;;
11341 esac
11343 case $lt_cv_dlopen_self_static in
11344 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11345 *) enable_dlopen_self_static=unknown ;;
11346 esac
11365 striplib=
11366 old_striplib=
11367 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11368 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
11369 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11370 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11371 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11373 $as_echo "yes" >&6; }
11374 else
11375 # FIXME - insert some real tests, host_os isn't really good enough
11376 case $host_os in
11377 darwin*)
11378 if test -n "$STRIP" ; then
11379 striplib="$STRIP -x"
11380 old_striplib="$STRIP -S"
11381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11382 $as_echo "yes" >&6; }
11383 else
11384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11385 $as_echo "no" >&6; }
11389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11390 $as_echo "no" >&6; }
11392 esac
11406 # Report which library types will actually be built
11407 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
11408 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
11409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
11410 $as_echo "$can_build_shared" >&6; }
11412 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
11413 $as_echo_n "checking whether to build shared libraries... " >&6; }
11414 test "$can_build_shared" = "no" && enable_shared=no
11416 # On AIX, shared libraries and static libraries use the same namespace, and
11417 # are all built from PIC.
11418 case $host_os in
11419 aix3*)
11420 test "$enable_shared" = yes && enable_static=no
11421 if test -n "$RANLIB"; then
11422 archive_cmds="$archive_cmds~\$RANLIB \$lib"
11423 postinstall_cmds='$RANLIB $lib'
11427 aix[4-9]*)
11428 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11429 test "$enable_shared" = yes && enable_static=no
11432 esac
11433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
11434 $as_echo "$enable_shared" >&6; }
11436 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
11437 $as_echo_n "checking whether to build static libraries... " >&6; }
11438 # Make sure either enable_shared or enable_static is yes.
11439 test "$enable_shared" = yes || enable_static=yes
11440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
11441 $as_echo "$enable_static" >&6; }
11447 ac_ext=c
11448 ac_cpp='$CPP $CPPFLAGS'
11449 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11450 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11451 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11453 CC="$lt_save_CC"
11467 ac_config_commands="$ac_config_commands libtool"
11472 # Only expand once:
11477 backtrace_supported=yes
11479 if test -n "${with_target_subdir}"; then
11480 # We are compiling a GCC library. We can assume that the unwind
11481 # library exists.
11482 BACKTRACE_FILE="backtrace.lo simple.lo"
11483 else
11484 ac_fn_c_check_header_mongrel "$LINENO" "unwind.h" "ac_cv_header_unwind_h" "$ac_includes_default"
11485 if test "x$ac_cv_header_unwind_h" = x""yes; then :
11486 ac_fn_c_check_func "$LINENO" "_Unwind_Backtrace" "ac_cv_func__Unwind_Backtrace"
11487 if test "x$ac_cv_func__Unwind_Backtrace" = x""yes; then :
11488 BACKTRACE_FILE="backtrace.lo simple.lo"
11489 else
11490 BACKTRACE_FILE="nounwind.lo"
11491 backtrace_supported=no
11494 else
11495 BACKTRACE_FILE="nounwind.lo"
11496 backtrace_supported=no
11503 EXTRA_FLAGS=
11504 if test -n "${with_target_subdir}"; then
11505 EXTRA_FLAGS="-funwind-tables -frandom-seed=\$@"
11506 else
11507 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -funwind-tables option" >&5
11508 $as_echo_n "checking for -funwind-tables option... " >&6; }
11509 if test "${libbacktrace_cv_c_unwind_tables+set}" = set; then :
11510 $as_echo_n "(cached) " >&6
11511 else
11512 CFLAGS_hold="$CFLAGS"
11513 CFLAGS="$CFLAGS -funwind-tables"
11514 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11515 /* end confdefs.h. */
11516 static int f() { return 0; }
11518 main ()
11520 return f();
11522 return 0;
11524 _ACEOF
11525 if ac_fn_c_try_compile "$LINENO"; then :
11526 libbacktrace_cv_c_unwind_tables=yes
11527 else
11528 libbacktrace_cv_c_unwind_tables=no
11530 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11531 CFLAGS="$CFLAGS_hold"
11533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libbacktrace_cv_c_unwind_tables" >&5
11534 $as_echo "$libbacktrace_cv_c_unwind_tables" >&6; }
11535 if test "$libbacktrace_cv_c_unwind_tables" = "yes"; then
11536 EXTRA_FLAGS=-funwind-tables
11538 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -frandom-seed=string option" >&5
11539 $as_echo_n "checking for -frandom-seed=string option... " >&6; }
11540 if test "${libbacktrace_cv_c_random_seed_string+set}" = set; then :
11541 $as_echo_n "(cached) " >&6
11542 else
11543 CFLAGS_hold="$CFLAGS"
11544 CFLAGS="$CFLAGS -frandom-seed=conftest.lo"
11545 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11546 /* end confdefs.h. */
11549 main ()
11551 return 0;
11553 return 0;
11555 _ACEOF
11556 if ac_fn_c_try_compile "$LINENO"; then :
11557 libbacktrace_cv_c_random_seed_string=yes
11558 else
11559 libbacktrace_cv_c_random_seed_string=no
11561 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11562 CFLAGS="$CFLAGS_hold"
11564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libbacktrace_cv_c_random_seed_string" >&5
11565 $as_echo "$libbacktrace_cv_c_random_seed_string" >&6; }
11566 if test "$libbacktrace_cv_c_random_seed_string" = "yes"; then
11567 EXTRA_FLAGS="$EXTRA_FLAGS -frandom-seed=\$@"
11572 WARN_FLAGS=
11573 save_CFLAGS="$CFLAGS"
11574 for real_option in -W -Wall -Wwrite-strings -Wstrict-prototypes \
11575 -Wmissing-prototypes -Wold-style-definition \
11576 -Wmissing-format-attribute -Wcast-qual; do
11577 # Do the check with the no- prefix removed since gcc silently
11578 # accepts any -Wno-* option on purpose
11579 case $real_option in
11580 -Wno-*) option=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
11581 *) option=$real_option ;;
11582 esac
11583 as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
11585 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
11586 $as_echo_n "checking whether $CC supports $option... " >&6; }
11587 if { as_var=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
11588 $as_echo_n "(cached) " >&6
11589 else
11590 CFLAGS="$option"
11591 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11592 /* end confdefs.h. */
11595 main ()
11599 return 0;
11601 _ACEOF
11602 if ac_fn_c_try_compile "$LINENO"; then :
11603 eval "$as_acx_Woption=yes"
11604 else
11605 eval "$as_acx_Woption=no"
11607 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11610 eval ac_res=\$$as_acx_Woption
11611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
11612 $as_echo "$ac_res" >&6; }
11613 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
11614 WARN_FLAGS="$WARN_FLAGS${WARN_FLAGS:+ }$real_option"
11616 done
11617 CFLAGS="$save_CFLAGS"
11620 if test -n "${with_target_subdir}"; then
11621 WARN_FLAGS="$WARN_FLAGS -Werror"
11626 if test -n "${with_target_subdir}"; then
11629 # Check whether --with-system-libunwind was given.
11630 if test "${with_system_libunwind+set}" = set; then :
11631 withval=$with_system_libunwind;
11634 # If system-libunwind was not specifically set, pick a default setting.
11635 if test x$with_system_libunwind = x; then
11636 case ${target} in
11637 ia64-*-hpux*) with_system_libunwind=yes ;;
11638 *) with_system_libunwind=no ;;
11639 esac
11641 # Based on system-libunwind and target, do we have ipinfo?
11642 if test x$with_system_libunwind = xyes; then
11643 case ${target} in
11644 ia64-*-*) have_unwind_getipinfo=no ;;
11645 *) have_unwind_getipinfo=yes ;;
11646 esac
11647 else
11648 # Darwin before version 9 does not have _Unwind_GetIPInfo.
11650 case ${target} in
11651 *-*-darwin[3-8]|*-*-darwin[3-8].*) have_unwind_getipinfo=no ;;
11652 *) have_unwind_getipinfo=yes ;;
11653 esac
11657 if test x$have_unwind_getipinfo = xyes; then
11659 $as_echo "#define HAVE_GETIPINFO 1" >>confdefs.h
11663 else
11664 ac_save_CFFLAGS="$CFLAGS"
11665 CFLAGS="$CFLAGS -Werror-implicit-function-declaration"
11666 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _Unwind_GetIPInfo" >&5
11667 $as_echo_n "checking for _Unwind_GetIPInfo... " >&6; }
11668 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11669 /* end confdefs.h. */
11670 #include "unwind.h"
11671 struct _Unwind_Context *context;
11672 int ip_before_insn = 0;
11674 main ()
11676 return _Unwind_GetIPInfo (context, &ip_before_insn);
11678 return 0;
11680 _ACEOF
11681 if ac_fn_c_try_link "$LINENO"; then :
11682 have_unwind_getipinfo=yes
11683 else
11684 have_unwind_getipinfo=no
11686 rm -f core conftest.err conftest.$ac_objext \
11687 conftest$ac_exeext conftest.$ac_ext
11688 CFLAGS="$ac_save_CFLAGS"
11689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_unwind_getipinfo" >&5
11690 $as_echo "$have_unwind_getipinfo" >&6; }
11691 if test "$have_unwind_getipinfo" = "yes"; then
11693 $as_echo "#define HAVE_GETIPINFO 1" >>confdefs.h
11698 # When building as a target library, shared libraries may want to link
11699 # this in. We don't want to provide another shared library to
11700 # complicate dependencies. Instead, we just compile with -fPIC.
11701 PIC_FLAG=
11702 if test -n "${with_target_subdir}"; then
11703 PIC_FLAG=-fPIC
11705 # Similarly, use -fPIC with --enable-host-shared:
11706 # Check whether --enable-host-shared was given.
11707 if test "${enable_host_shared+set}" = set; then :
11708 enableval=$enable_host_shared; PIC_FLAG=-fPIC
11713 # Test for __sync support.
11714 { $as_echo "$as_me:${as_lineno-$LINENO}: checking __sync extensions" >&5
11715 $as_echo_n "checking __sync extensions... " >&6; }
11716 if test "${libbacktrace_cv_sys_sync+set}" = set; then :
11717 $as_echo_n "(cached) " >&6
11718 else
11719 if test -n "${with_target_subdir}"; then
11720 libbacktrace_cv_sys_sync=yes
11721 else
11722 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11723 /* end confdefs.h. */
11724 int i;
11726 main ()
11728 __sync_bool_compare_and_swap (&i, i, i);
11729 __sync_lock_test_and_set (&i, 1);
11730 __sync_lock_release (&i);
11732 return 0;
11734 _ACEOF
11735 if ac_fn_c_try_link "$LINENO"; then :
11736 libbacktrace_cv_sys_sync=yes
11737 else
11738 libbacktrace_cv_sys_sync=no
11740 rm -f core conftest.err conftest.$ac_objext \
11741 conftest$ac_exeext conftest.$ac_ext
11744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libbacktrace_cv_sys_sync" >&5
11745 $as_echo "$libbacktrace_cv_sys_sync" >&6; }
11746 BACKTRACE_SUPPORTS_THREADS=0
11747 if test "$libbacktrace_cv_sys_sync" = "yes"; then
11748 BACKTRACE_SUPPORTS_THREADS=1
11750 $as_echo "#define HAVE_SYNC_FUNCTIONS 1" >>confdefs.h
11755 # Test for __atomic support.
11756 { $as_echo "$as_me:${as_lineno-$LINENO}: checking __atomic extensions" >&5
11757 $as_echo_n "checking __atomic extensions... " >&6; }
11758 if test "${libbacktrace_cv_sys_atomic+set}" = set; then :
11759 $as_echo_n "(cached) " >&6
11760 else
11761 if test -n "${with_target_subdir}"; then
11762 libbacktrace_cv_sys_atomic=yes
11763 else
11764 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11765 /* end confdefs.h. */
11766 int i;
11768 main ()
11770 __atomic_load_n (&i, __ATOMIC_ACQUIRE);
11771 __atomic_store_n (&i, 1, __ATOMIC_RELEASE);
11773 return 0;
11775 _ACEOF
11776 if ac_fn_c_try_link "$LINENO"; then :
11777 libbacktrace_cv_sys_atomic=yes
11778 else
11779 libbacktrace_cv_sys_atomic=no
11781 rm -f core conftest.err conftest.$ac_objext \
11782 conftest$ac_exeext conftest.$ac_ext
11785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libbacktrace_cv_sys_atomic" >&5
11786 $as_echo "$libbacktrace_cv_sys_atomic" >&6; }
11787 if test "$libbacktrace_cv_sys_atomic" = "yes"; then
11789 $as_echo "#define HAVE_ATOMIC_FUNCTIONS 1" >>confdefs.h
11793 # The library needs to be able to read the executable itself. Compile
11794 # a file to determine the executable format. The awk script
11795 # filetype.awk prints out the file type.
11796 { $as_echo "$as_me:${as_lineno-$LINENO}: checking output filetype" >&5
11797 $as_echo_n "checking output filetype... " >&6; }
11798 if test "${libbacktrace_cv_sys_filetype+set}" = set; then :
11799 $as_echo_n "(cached) " >&6
11800 else
11801 filetype=
11802 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11803 /* end confdefs.h. */
11804 int i;
11806 main ()
11808 int j;
11810 return 0;
11812 _ACEOF
11813 if ac_fn_c_try_compile "$LINENO"; then :
11814 filetype=`${AWK} -f $srcdir/filetype.awk conftest.$ac_objext`
11815 else
11816 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
11817 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
11818 as_fn_error "compiler failed
11819 See \`config.log' for more details." "$LINENO" 5; }
11821 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11822 libbacktrace_cv_sys_filetype=$filetype
11824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libbacktrace_cv_sys_filetype" >&5
11825 $as_echo "$libbacktrace_cv_sys_filetype" >&6; }
11827 # Match the file type to decide what files to compile.
11828 FORMAT_FILE=
11829 case "$libbacktrace_cv_sys_filetype" in
11830 elf*) FORMAT_FILE="elf.lo" ;;
11831 *) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: could not determine output file type" >&5
11832 $as_echo "$as_me: WARNING: could not determine output file type" >&2;}
11833 FORMAT_FILE="unknown.lo"
11834 backtrace_supported=no
11836 esac
11839 # ELF defines.
11840 elfsize=
11841 case "$libbacktrace_cv_sys_filetype" in
11842 elf32) elfsize=32 ;;
11843 elf64) elfsize=64 ;;
11844 esac
11846 cat >>confdefs.h <<_ACEOF
11847 #define BACKTRACE_ELF_SIZE $elfsize
11848 _ACEOF
11851 BACKTRACE_SUPPORTED=0
11852 if test "$backtrace_supported" = "yes"; then
11853 BACKTRACE_SUPPORTED=1
11859 inttype_headers=`echo inttypes.h sys/inttypes.h | sed -e 's/,/ /g'`
11861 acx_cv_header_stdint=stddef.h
11862 acx_cv_header_stdint_kind="(already complete)"
11863 for i in stdint.h $inttype_headers; do
11864 unset ac_cv_type_uintptr_t
11865 unset ac_cv_type_uintmax_t
11866 unset ac_cv_type_int_least32_t
11867 unset ac_cv_type_int_fast32_t
11868 unset ac_cv_type_uint64_t
11869 $as_echo_n "looking for a compliant stdint.h in $i, " >&6
11870 ac_fn_c_check_type "$LINENO" "uintmax_t" "ac_cv_type_uintmax_t" "#include <sys/types.h>
11871 #include <$i>
11873 if test "x$ac_cv_type_uintmax_t" = x""yes; then :
11874 acx_cv_header_stdint=$i
11875 else
11876 continue
11879 ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "#include <sys/types.h>
11880 #include <$i>
11882 if test "x$ac_cv_type_uintptr_t" = x""yes; then :
11884 else
11885 acx_cv_header_stdint_kind="(mostly complete)"
11888 ac_fn_c_check_type "$LINENO" "int_least32_t" "ac_cv_type_int_least32_t" "#include <sys/types.h>
11889 #include <$i>
11891 if test "x$ac_cv_type_int_least32_t" = x""yes; then :
11893 else
11894 acx_cv_header_stdint_kind="(mostly complete)"
11897 ac_fn_c_check_type "$LINENO" "int_fast32_t" "ac_cv_type_int_fast32_t" "#include <sys/types.h>
11898 #include <$i>
11900 if test "x$ac_cv_type_int_fast32_t" = x""yes; then :
11902 else
11903 acx_cv_header_stdint_kind="(mostly complete)"
11906 ac_fn_c_check_type "$LINENO" "uint64_t" "ac_cv_type_uint64_t" "#include <sys/types.h>
11907 #include <$i>
11909 if test "x$ac_cv_type_uint64_t" = x""yes; then :
11911 else
11912 acx_cv_header_stdint_kind="(lacks uint64_t)"
11915 break
11916 done
11917 if test "$acx_cv_header_stdint" = stddef.h; then
11918 acx_cv_header_stdint_kind="(lacks uintmax_t)"
11919 for i in stdint.h $inttype_headers; do
11920 unset ac_cv_type_uintptr_t
11921 unset ac_cv_type_uint32_t
11922 unset ac_cv_type_uint64_t
11923 $as_echo_n "looking for an incomplete stdint.h in $i, " >&6
11924 ac_fn_c_check_type "$LINENO" "uint32_t" "ac_cv_type_uint32_t" "#include <sys/types.h>
11925 #include <$i>
11927 if test "x$ac_cv_type_uint32_t" = x""yes; then :
11928 acx_cv_header_stdint=$i
11929 else
11930 continue
11933 ac_fn_c_check_type "$LINENO" "uint64_t" "ac_cv_type_uint64_t" "#include <sys/types.h>
11934 #include <$i>
11936 if test "x$ac_cv_type_uint64_t" = x""yes; then :
11940 ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "#include <sys/types.h>
11941 #include <$i>
11943 if test "x$ac_cv_type_uintptr_t" = x""yes; then :
11947 break
11948 done
11950 if test "$acx_cv_header_stdint" = stddef.h; then
11951 acx_cv_header_stdint_kind="(u_intXX_t style)"
11952 for i in sys/types.h $inttype_headers; do
11953 unset ac_cv_type_u_int32_t
11954 unset ac_cv_type_u_int64_t
11955 $as_echo_n "looking for u_intXX_t types in $i, " >&6
11956 ac_fn_c_check_type "$LINENO" "u_int32_t" "ac_cv_type_u_int32_t" "#include <sys/types.h>
11957 #include <$i>
11959 if test "x$ac_cv_type_u_int32_t" = x""yes; then :
11960 acx_cv_header_stdint=$i
11961 else
11962 continue
11965 ac_fn_c_check_type "$LINENO" "u_int64_t" "ac_cv_type_u_int64_t" "#include <sys/types.h>
11966 #include <$i>
11968 if test "x$ac_cv_type_u_int64_t" = x""yes; then :
11972 break
11973 done
11975 if test "$acx_cv_header_stdint" = stddef.h; then
11976 acx_cv_header_stdint_kind="(using manual detection)"
11979 test -z "$ac_cv_type_uintptr_t" && ac_cv_type_uintptr_t=no
11980 test -z "$ac_cv_type_uint64_t" && ac_cv_type_uint64_t=no
11981 test -z "$ac_cv_type_u_int64_t" && ac_cv_type_u_int64_t=no
11982 test -z "$ac_cv_type_int_least32_t" && ac_cv_type_int_least32_t=no
11983 test -z "$ac_cv_type_int_fast32_t" && ac_cv_type_int_fast32_t=no
11985 # ----------------- Summarize what we found so far
11987 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what to include in gstdint.h" >&5
11988 $as_echo_n "checking what to include in gstdint.h... " >&6; }
11990 case `$as_basename -- gstdint.h ||
11991 $as_expr X/gstdint.h : '.*/\([^/][^/]*\)/*$' \| \
11992 Xgstdint.h : 'X\(//\)$' \| \
11993 Xgstdint.h : 'X\(/\)' \| . 2>/dev/null ||
11994 $as_echo X/gstdint.h |
11995 sed '/^.*\/\([^/][^/]*\)\/*$/{
11996 s//\1/
11999 /^X\/\(\/\/\)$/{
12000 s//\1/
12003 /^X\/\(\/\).*/{
12004 s//\1/
12007 s/.*/./; q'` in
12008 stdint.h) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: are you sure you want it there?" >&5
12009 $as_echo "$as_me: WARNING: are you sure you want it there?" >&2;} ;;
12010 inttypes.h) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: are you sure you want it there?" >&5
12011 $as_echo "$as_me: WARNING: are you sure you want it there?" >&2;} ;;
12012 *) ;;
12013 esac
12015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_header_stdint $acx_cv_header_stdint_kind" >&5
12016 $as_echo "$acx_cv_header_stdint $acx_cv_header_stdint_kind" >&6; }
12018 # ----------------- done included file, check C basic types --------
12020 # Lacking an uintptr_t? Test size of void *
12021 case "$acx_cv_header_stdint:$ac_cv_type_uintptr_t" in
12022 stddef.h:* | *:no) # The cast to long int works around a bug in the HP C Compiler
12023 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12024 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12025 # This bug is HP SR number 8606223364.
12026 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5
12027 $as_echo_n "checking size of void *... " >&6; }
12028 if test "${ac_cv_sizeof_void_p+set}" = set; then :
12029 $as_echo_n "(cached) " >&6
12030 else
12031 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (void *))" "ac_cv_sizeof_void_p" "$ac_includes_default"; then :
12033 else
12034 if test "$ac_cv_type_void_p" = yes; then
12035 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12036 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12037 { as_fn_set_status 77
12038 as_fn_error "cannot compute sizeof (void *)
12039 See \`config.log' for more details." "$LINENO" 5; }; }
12040 else
12041 ac_cv_sizeof_void_p=0
12046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5
12047 $as_echo "$ac_cv_sizeof_void_p" >&6; }
12051 cat >>confdefs.h <<_ACEOF
12052 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
12053 _ACEOF
12056 esac
12058 # Lacking an uint64_t? Test size of long
12059 case "$acx_cv_header_stdint:$ac_cv_type_uint64_t:$ac_cv_type_u_int64_t" in
12060 stddef.h:*:* | *:no:no) # The cast to long int works around a bug in the HP C Compiler
12061 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12062 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12063 # This bug is HP SR number 8606223364.
12064 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
12065 $as_echo_n "checking size of long... " >&6; }
12066 if test "${ac_cv_sizeof_long+set}" = set; then :
12067 $as_echo_n "(cached) " >&6
12068 else
12069 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then :
12071 else
12072 if test "$ac_cv_type_long" = yes; then
12073 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12074 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12075 { as_fn_set_status 77
12076 as_fn_error "cannot compute sizeof (long)
12077 See \`config.log' for more details." "$LINENO" 5; }; }
12078 else
12079 ac_cv_sizeof_long=0
12084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
12085 $as_echo "$ac_cv_sizeof_long" >&6; }
12089 cat >>confdefs.h <<_ACEOF
12090 #define SIZEOF_LONG $ac_cv_sizeof_long
12091 _ACEOF
12094 esac
12096 if test $acx_cv_header_stdint = stddef.h; then
12097 # Lacking a good header? Test size of everything and deduce all types.
12098 # The cast to long int works around a bug in the HP C Compiler
12099 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12100 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12101 # This bug is HP SR number 8606223364.
12102 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
12103 $as_echo_n "checking size of int... " >&6; }
12104 if test "${ac_cv_sizeof_int+set}" = set; then :
12105 $as_echo_n "(cached) " >&6
12106 else
12107 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then :
12109 else
12110 if test "$ac_cv_type_int" = yes; then
12111 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12112 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12113 { as_fn_set_status 77
12114 as_fn_error "cannot compute sizeof (int)
12115 See \`config.log' for more details." "$LINENO" 5; }; }
12116 else
12117 ac_cv_sizeof_int=0
12122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
12123 $as_echo "$ac_cv_sizeof_int" >&6; }
12127 cat >>confdefs.h <<_ACEOF
12128 #define SIZEOF_INT $ac_cv_sizeof_int
12129 _ACEOF
12132 # The cast to long int works around a bug in the HP C Compiler
12133 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12134 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12135 # This bug is HP SR number 8606223364.
12136 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5
12137 $as_echo_n "checking size of short... " >&6; }
12138 if test "${ac_cv_sizeof_short+set}" = set; then :
12139 $as_echo_n "(cached) " >&6
12140 else
12141 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short" "$ac_includes_default"; then :
12143 else
12144 if test "$ac_cv_type_short" = yes; then
12145 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12146 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12147 { as_fn_set_status 77
12148 as_fn_error "cannot compute sizeof (short)
12149 See \`config.log' for more details." "$LINENO" 5; }; }
12150 else
12151 ac_cv_sizeof_short=0
12156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5
12157 $as_echo "$ac_cv_sizeof_short" >&6; }
12161 cat >>confdefs.h <<_ACEOF
12162 #define SIZEOF_SHORT $ac_cv_sizeof_short
12163 _ACEOF
12166 # The cast to long int works around a bug in the HP C Compiler
12167 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12168 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12169 # This bug is HP SR number 8606223364.
12170 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of char" >&5
12171 $as_echo_n "checking size of char... " >&6; }
12172 if test "${ac_cv_sizeof_char+set}" = set; then :
12173 $as_echo_n "(cached) " >&6
12174 else
12175 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (char))" "ac_cv_sizeof_char" "$ac_includes_default"; then :
12177 else
12178 if test "$ac_cv_type_char" = yes; then
12179 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12180 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12181 { as_fn_set_status 77
12182 as_fn_error "cannot compute sizeof (char)
12183 See \`config.log' for more details." "$LINENO" 5; }; }
12184 else
12185 ac_cv_sizeof_char=0
12190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_char" >&5
12191 $as_echo "$ac_cv_sizeof_char" >&6; }
12195 cat >>confdefs.h <<_ACEOF
12196 #define SIZEOF_CHAR $ac_cv_sizeof_char
12197 _ACEOF
12201 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type equivalent to int8_t" >&5
12202 $as_echo_n "checking for type equivalent to int8_t... " >&6; }
12203 case "$ac_cv_sizeof_char" in
12204 1) acx_cv_type_int8_t=char ;;
12205 *) as_fn_error "no 8-bit type, please report a bug" "$LINENO" 5
12206 esac
12207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_type_int8_t" >&5
12208 $as_echo "$acx_cv_type_int8_t" >&6; }
12210 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type equivalent to int16_t" >&5
12211 $as_echo_n "checking for type equivalent to int16_t... " >&6; }
12212 case "$ac_cv_sizeof_int:$ac_cv_sizeof_short" in
12213 2:*) acx_cv_type_int16_t=int ;;
12214 *:2) acx_cv_type_int16_t=short ;;
12215 *) as_fn_error "no 16-bit type, please report a bug" "$LINENO" 5
12216 esac
12217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_type_int16_t" >&5
12218 $as_echo "$acx_cv_type_int16_t" >&6; }
12220 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type equivalent to int32_t" >&5
12221 $as_echo_n "checking for type equivalent to int32_t... " >&6; }
12222 case "$ac_cv_sizeof_int:$ac_cv_sizeof_long" in
12223 4:*) acx_cv_type_int32_t=int ;;
12224 *:4) acx_cv_type_int32_t=long ;;
12225 *) as_fn_error "no 32-bit type, please report a bug" "$LINENO" 5
12226 esac
12227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_type_int32_t" >&5
12228 $as_echo "$acx_cv_type_int32_t" >&6; }
12231 # These tests are here to make the output prettier
12233 if test "$ac_cv_type_uint64_t" != yes && test "$ac_cv_type_u_int64_t" != yes; then
12234 case "$ac_cv_sizeof_long" in
12235 8) acx_cv_type_int64_t=long ;;
12236 esac
12237 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type equivalent to int64_t" >&5
12238 $as_echo_n "checking for type equivalent to int64_t... " >&6; }
12239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${acx_cv_type_int64_t-'using preprocessor symbols'}" >&5
12240 $as_echo "${acx_cv_type_int64_t-'using preprocessor symbols'}" >&6; }
12243 # Now we can use the above types
12245 if test "$ac_cv_type_uintptr_t" != yes; then
12246 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type equivalent to intptr_t" >&5
12247 $as_echo_n "checking for type equivalent to intptr_t... " >&6; }
12248 case $ac_cv_sizeof_void_p in
12249 2) acx_cv_type_intptr_t=int16_t ;;
12250 4) acx_cv_type_intptr_t=int32_t ;;
12251 8) acx_cv_type_intptr_t=int64_t ;;
12252 *) as_fn_error "no equivalent for intptr_t, please report a bug" "$LINENO" 5
12253 esac
12254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_type_intptr_t" >&5
12255 $as_echo "$acx_cv_type_intptr_t" >&6; }
12258 # ----------------- done all checks, emit header -------------
12259 ac_config_commands="$ac_config_commands gstdint.h"
12264 for ac_header in sys/mman.h
12265 do :
12266 ac_fn_c_check_header_mongrel "$LINENO" "sys/mman.h" "ac_cv_header_sys_mman_h" "$ac_includes_default"
12267 if test "x$ac_cv_header_sys_mman_h" = x""yes; then :
12268 cat >>confdefs.h <<_ACEOF
12269 #define HAVE_SYS_MMAN_H 1
12270 _ACEOF
12274 done
12276 if test "$ac_cv_header_sys_mman_h" = "no"; then
12277 have_mmap=no
12278 else
12279 if test -n "${with_target_subdir}"; then
12280 # When built as a GCC target library, we can't do a link test. We
12281 # simply assume that if we have mman.h, we have mmap.
12282 have_mmap=yes
12283 else
12284 ac_fn_c_check_func "$LINENO" "mmap" "ac_cv_func_mmap"
12285 if test "x$ac_cv_func_mmap" = x""yes; then :
12286 have_mmap=yes
12287 else
12288 have_mmap=no
12293 if test "$have_mmap" = "no"; then
12294 VIEW_FILE=read.lo
12295 ALLOC_FILE=alloc.lo
12296 else
12297 VIEW_FILE=mmapio.lo
12298 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12299 /* end confdefs.h. */
12301 #include <sys/mman.h>
12302 #if !defined(MAP_ANONYMOUS) && !defined(MAP_ANON)
12303 #error no MAP_ANONYMOUS
12304 #endif
12306 _ACEOF
12307 if ac_fn_c_try_cpp "$LINENO"; then :
12308 ALLOC_FILE=mmap.lo
12309 else
12310 ALLOC_FILE=alloc.lo
12312 rm -f conftest.err conftest.$ac_ext
12317 BACKTRACE_USES_MALLOC=0
12318 if test "$ALLOC_FILE" = "alloc.lo"; then
12319 BACKTRACE_USES_MALLOC=1
12323 # Check for dl_iterate_phdr.
12324 for ac_header in link.h
12325 do :
12326 ac_fn_c_check_header_mongrel "$LINENO" "link.h" "ac_cv_header_link_h" "$ac_includes_default"
12327 if test "x$ac_cv_header_link_h" = x""yes; then :
12328 cat >>confdefs.h <<_ACEOF
12329 #define HAVE_LINK_H 1
12330 _ACEOF
12334 done
12336 if test "$ac_cv_header_link_h" = "no"; then
12337 have_dl_iterate_phdr=no
12338 else
12339 if test -n "${with_target_subdir}"; then
12340 # When built as a GCC target library, we can't do a link test.
12341 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12342 /* end confdefs.h. */
12343 #include <link.h>
12345 _ACEOF
12346 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12347 $EGREP "dl_iterate_phdr" >/dev/null 2>&1; then :
12348 have_dl_iterate_phdr=yes
12349 else
12350 have_dl_iterate_phdr=no
12352 rm -f conftest*
12354 case "${host}" in
12355 *-*-solaris2.10*)
12356 # Avoid dl_iterate_phdr on Solaris 10, where it is in the
12357 # header file but is only in -ldl.
12358 have_dl_iterate_phdr=no ;;
12359 esac
12360 else
12361 ac_fn_c_check_func "$LINENO" "dl_iterate_phdr" "ac_cv_func_dl_iterate_phdr"
12362 if test "x$ac_cv_func_dl_iterate_phdr" = x""yes; then :
12363 have_dl_iterate_phdr=yes
12364 else
12365 have_dl_iterate_phdr=no
12370 if test "$have_dl_iterate_phdr" = "yes"; then
12372 $as_echo "#define HAVE_DL_ITERATE_PHDR 1" >>confdefs.h
12376 # Check for the fcntl function.
12377 if test -n "${with_target_subdir}"; then
12378 case "${host}" in
12379 *-*-mingw*) have_fcntl=no ;;
12380 *) have_fcntl=yes ;;
12381 esac
12382 else
12383 ac_fn_c_check_func "$LINENO" "fcntl" "ac_cv_func_fcntl"
12384 if test "x$ac_cv_func_fcntl" = x""yes; then :
12385 have_fcntl=yes
12386 else
12387 have_fcntl=no
12391 if test "$have_fcntl" = "yes"; then
12393 $as_echo "#define HAVE_FCNTL 1" >>confdefs.h
12397 ac_fn_c_check_decl "$LINENO" "strnlen" "ac_cv_have_decl_strnlen" "$ac_includes_default"
12398 if test "x$ac_cv_have_decl_strnlen" = x""yes; then :
12399 ac_have_decl=1
12400 else
12401 ac_have_decl=0
12404 cat >>confdefs.h <<_ACEOF
12405 #define HAVE_DECL_STRNLEN $ac_have_decl
12406 _ACEOF
12409 # Check for getexecname function.
12410 if test -n "${with_target_subdir}"; then
12411 case "${host}" in
12412 *-*-solaris2*) have_getexecname=yes ;;
12413 *) have_getexecname=no ;;
12414 esac
12415 else
12416 ac_fn_c_check_func "$LINENO" "getexecname" "ac_cv_func_getexecname"
12417 if test "x$ac_cv_func_getexecname" = x""yes; then :
12418 have_getexecname=yes
12419 else
12420 have_getexecname=no
12424 if test "$have_getexecname" = "yes"; then
12426 $as_echo "#define HAVE_GETEXECNAME 1" >>confdefs.h
12430 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether tests can run" >&5
12431 $as_echo_n "checking whether tests can run... " >&6; }
12432 if test "${libbacktrace_cv_sys_native+set}" = set; then :
12433 $as_echo_n "(cached) " >&6
12434 else
12435 if test "$cross_compiling" = yes; then :
12436 libbacktrace_cv_sys_native=no
12437 else
12438 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12439 /* end confdefs.h. */
12442 main ()
12444 return 0;
12446 return 0;
12448 _ACEOF
12449 if ac_fn_c_try_run "$LINENO"; then :
12450 libbacktrace_cv_sys_native=yes
12451 else
12452 libbacktrace_cv_sys_native=no
12454 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12455 conftest.$ac_objext conftest.beam conftest.$ac_ext
12459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libbacktrace_cv_sys_native" >&5
12460 $as_echo "$libbacktrace_cv_sys_native" >&6; }
12461 if test "$libbacktrace_cv_sys_native" = "yes"; then
12462 NATIVE_TRUE=
12463 NATIVE_FALSE='#'
12464 else
12465 NATIVE_TRUE='#'
12466 NATIVE_FALSE=
12470 if test "${multilib}" = "yes"; then
12471 multilib_arg="--enable-multilib"
12472 else
12473 multilib_arg=
12476 ac_config_files="$ac_config_files Makefile backtrace-supported.h"
12479 # We need multilib support, but only if configuring for the target.
12480 ac_config_commands="$ac_config_commands default"
12483 cat >confcache <<\_ACEOF
12484 # This file is a shell script that caches the results of configure
12485 # tests run on this system so they can be shared between configure
12486 # scripts and configure runs, see configure's option --config-cache.
12487 # It is not useful on other systems. If it contains results you don't
12488 # want to keep, you may remove or edit it.
12490 # config.status only pays attention to the cache file if you give it
12491 # the --recheck option to rerun configure.
12493 # `ac_cv_env_foo' variables (set or unset) will be overridden when
12494 # loading this file, other *unset* `ac_cv_foo' will be assigned the
12495 # following values.
12497 _ACEOF
12499 # The following way of writing the cache mishandles newlines in values,
12500 # but we know of no workaround that is simple, portable, and efficient.
12501 # So, we kill variables containing newlines.
12502 # Ultrix sh set writes to stderr and can't be redirected directly,
12503 # and sets the high bit in the cache file unless we assign to the vars.
12505 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
12506 eval ac_val=\$$ac_var
12507 case $ac_val in #(
12508 *${as_nl}*)
12509 case $ac_var in #(
12510 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
12511 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
12512 esac
12513 case $ac_var in #(
12514 _ | IFS | as_nl) ;; #(
12515 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
12516 *) { eval $ac_var=; unset $ac_var;} ;;
12517 esac ;;
12518 esac
12519 done
12521 (set) 2>&1 |
12522 case $as_nl`(ac_space=' '; set) 2>&1` in #(
12523 *${as_nl}ac_space=\ *)
12524 # `set' does not quote correctly, so add quotes: double-quote
12525 # substitution turns \\\\ into \\, and sed turns \\ into \.
12526 sed -n \
12527 "s/'/'\\\\''/g;
12528 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
12529 ;; #(
12531 # `set' quotes correctly as required by POSIX, so do not add quotes.
12532 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
12534 esac |
12535 sort
12537 sed '
12538 /^ac_cv_env_/b end
12539 t clear
12540 :clear
12541 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
12542 t end
12543 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
12544 :end' >>confcache
12545 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
12546 if test -w "$cache_file"; then
12547 test "x$cache_file" != "x/dev/null" &&
12548 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
12549 $as_echo "$as_me: updating cache $cache_file" >&6;}
12550 cat confcache >$cache_file
12551 else
12552 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
12553 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
12556 rm -f confcache
12558 test "x$prefix" = xNONE && prefix=$ac_default_prefix
12559 # Let make expand exec_prefix.
12560 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
12562 DEFS=-DHAVE_CONFIG_H
12564 ac_libobjs=
12565 ac_ltlibobjs=
12566 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
12567 # 1. Remove the extension, and $U if already installed.
12568 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
12569 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
12570 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
12571 # will be set to the directory where LIBOBJS objects are built.
12572 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
12573 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
12574 done
12575 LIBOBJS=$ac_libobjs
12577 LTLIBOBJS=$ac_ltlibobjs
12580 if test -n "$EXEEXT"; then
12581 am__EXEEXT_TRUE=
12582 am__EXEEXT_FALSE='#'
12583 else
12584 am__EXEEXT_TRUE='#'
12585 am__EXEEXT_FALSE=
12588 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
12589 as_fn_error "conditional \"MAINTAINER_MODE\" was never defined.
12590 Usually this means the macro was only invoked conditionally." "$LINENO" 5
12592 if test -z "${NATIVE_TRUE}" && test -z "${NATIVE_FALSE}"; then
12593 as_fn_error "conditional \"NATIVE\" was never defined.
12594 Usually this means the macro was only invoked conditionally." "$LINENO" 5
12597 : ${CONFIG_STATUS=./config.status}
12598 ac_write_fail=0
12599 ac_clean_files_save=$ac_clean_files
12600 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
12601 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
12602 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
12603 as_write_fail=0
12604 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
12605 #! $SHELL
12606 # Generated by $as_me.
12607 # Run this file to recreate the current configuration.
12608 # Compiler output produced by configure, useful for debugging
12609 # configure, is in config.log if it exists.
12611 debug=false
12612 ac_cs_recheck=false
12613 ac_cs_silent=false
12615 SHELL=\${CONFIG_SHELL-$SHELL}
12616 export SHELL
12617 _ASEOF
12618 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
12619 ## -------------------- ##
12620 ## M4sh Initialization. ##
12621 ## -------------------- ##
12623 # Be more Bourne compatible
12624 DUALCASE=1; export DUALCASE # for MKS sh
12625 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
12626 emulate sh
12627 NULLCMD=:
12628 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
12629 # is contrary to our usage. Disable this feature.
12630 alias -g '${1+"$@"}'='"$@"'
12631 setopt NO_GLOB_SUBST
12632 else
12633 case `(set -o) 2>/dev/null` in #(
12634 *posix*) :
12635 set -o posix ;; #(
12636 *) :
12638 esac
12642 as_nl='
12644 export as_nl
12645 # Printing a long string crashes Solaris 7 /usr/bin/printf.
12646 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
12647 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
12648 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
12649 # Prefer a ksh shell builtin over an external printf program on Solaris,
12650 # but without wasting forks for bash or zsh.
12651 if test -z "$BASH_VERSION$ZSH_VERSION" \
12652 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
12653 as_echo='print -r --'
12654 as_echo_n='print -rn --'
12655 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
12656 as_echo='printf %s\n'
12657 as_echo_n='printf %s'
12658 else
12659 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
12660 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
12661 as_echo_n='/usr/ucb/echo -n'
12662 else
12663 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
12664 as_echo_n_body='eval
12665 arg=$1;
12666 case $arg in #(
12667 *"$as_nl"*)
12668 expr "X$arg" : "X\\(.*\\)$as_nl";
12669 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
12670 esac;
12671 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
12673 export as_echo_n_body
12674 as_echo_n='sh -c $as_echo_n_body as_echo'
12676 export as_echo_body
12677 as_echo='sh -c $as_echo_body as_echo'
12680 # The user is always right.
12681 if test "${PATH_SEPARATOR+set}" != set; then
12682 PATH_SEPARATOR=:
12683 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
12684 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
12685 PATH_SEPARATOR=';'
12690 # IFS
12691 # We need space, tab and new line, in precisely that order. Quoting is
12692 # there to prevent editors from complaining about space-tab.
12693 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
12694 # splitting by setting IFS to empty value.)
12695 IFS=" "" $as_nl"
12697 # Find who we are. Look in the path if we contain no directory separator.
12698 case $0 in #((
12699 *[\\/]* ) as_myself=$0 ;;
12700 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12701 for as_dir in $PATH
12703 IFS=$as_save_IFS
12704 test -z "$as_dir" && as_dir=.
12705 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
12706 done
12707 IFS=$as_save_IFS
12710 esac
12711 # We did not find ourselves, most probably we were run as `sh COMMAND'
12712 # in which case we are not to be found in the path.
12713 if test "x$as_myself" = x; then
12714 as_myself=$0
12716 if test ! -f "$as_myself"; then
12717 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
12718 exit 1
12721 # Unset variables that we do not need and which cause bugs (e.g. in
12722 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
12723 # suppresses any "Segmentation fault" message there. '((' could
12724 # trigger a bug in pdksh 5.2.14.
12725 for as_var in BASH_ENV ENV MAIL MAILPATH
12726 do eval test x\${$as_var+set} = xset \
12727 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
12728 done
12729 PS1='$ '
12730 PS2='> '
12731 PS4='+ '
12733 # NLS nuisances.
12734 LC_ALL=C
12735 export LC_ALL
12736 LANGUAGE=C
12737 export LANGUAGE
12739 # CDPATH.
12740 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
12743 # as_fn_error ERROR [LINENO LOG_FD]
12744 # ---------------------------------
12745 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
12746 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
12747 # script with status $?, using 1 if that was 0.
12748 as_fn_error ()
12750 as_status=$?; test $as_status -eq 0 && as_status=1
12751 if test "$3"; then
12752 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
12753 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
12755 $as_echo "$as_me: error: $1" >&2
12756 as_fn_exit $as_status
12757 } # as_fn_error
12760 # as_fn_set_status STATUS
12761 # -----------------------
12762 # Set $? to STATUS, without forking.
12763 as_fn_set_status ()
12765 return $1
12766 } # as_fn_set_status
12768 # as_fn_exit STATUS
12769 # -----------------
12770 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
12771 as_fn_exit ()
12773 set +e
12774 as_fn_set_status $1
12775 exit $1
12776 } # as_fn_exit
12778 # as_fn_unset VAR
12779 # ---------------
12780 # Portably unset VAR.
12781 as_fn_unset ()
12783 { eval $1=; unset $1;}
12785 as_unset=as_fn_unset
12786 # as_fn_append VAR VALUE
12787 # ----------------------
12788 # Append the text in VALUE to the end of the definition contained in VAR. Take
12789 # advantage of any shell optimizations that allow amortized linear growth over
12790 # repeated appends, instead of the typical quadratic growth present in naive
12791 # implementations.
12792 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
12793 eval 'as_fn_append ()
12795 eval $1+=\$2
12797 else
12798 as_fn_append ()
12800 eval $1=\$$1\$2
12802 fi # as_fn_append
12804 # as_fn_arith ARG...
12805 # ------------------
12806 # Perform arithmetic evaluation on the ARGs, and store the result in the
12807 # global $as_val. Take advantage of shells that can avoid forks. The arguments
12808 # must be portable across $(()) and expr.
12809 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
12810 eval 'as_fn_arith ()
12812 as_val=$(( $* ))
12814 else
12815 as_fn_arith ()
12817 as_val=`expr "$@" || test $? -eq 1`
12819 fi # as_fn_arith
12822 if expr a : '\(a\)' >/dev/null 2>&1 &&
12823 test "X`expr 00001 : '.*\(...\)'`" = X001; then
12824 as_expr=expr
12825 else
12826 as_expr=false
12829 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
12830 as_basename=basename
12831 else
12832 as_basename=false
12835 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
12836 as_dirname=dirname
12837 else
12838 as_dirname=false
12841 as_me=`$as_basename -- "$0" ||
12842 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
12843 X"$0" : 'X\(//\)$' \| \
12844 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
12845 $as_echo X/"$0" |
12846 sed '/^.*\/\([^/][^/]*\)\/*$/{
12847 s//\1/
12850 /^X\/\(\/\/\)$/{
12851 s//\1/
12854 /^X\/\(\/\).*/{
12855 s//\1/
12858 s/.*/./; q'`
12860 # Avoid depending upon Character Ranges.
12861 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
12862 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
12863 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
12864 as_cr_digits='0123456789'
12865 as_cr_alnum=$as_cr_Letters$as_cr_digits
12867 ECHO_C= ECHO_N= ECHO_T=
12868 case `echo -n x` in #(((((
12869 -n*)
12870 case `echo 'xy\c'` in
12871 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
12872 xy) ECHO_C='\c';;
12873 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
12874 ECHO_T=' ';;
12875 esac;;
12877 ECHO_N='-n';;
12878 esac
12880 rm -f conf$$ conf$$.exe conf$$.file
12881 if test -d conf$$.dir; then
12882 rm -f conf$$.dir/conf$$.file
12883 else
12884 rm -f conf$$.dir
12885 mkdir conf$$.dir 2>/dev/null
12887 if (echo >conf$$.file) 2>/dev/null; then
12888 if ln -s conf$$.file conf$$ 2>/dev/null; then
12889 as_ln_s='ln -s'
12890 # ... but there are two gotchas:
12891 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
12892 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
12893 # In both cases, we have to default to `cp -p'.
12894 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
12895 as_ln_s='cp -p'
12896 elif ln conf$$.file conf$$ 2>/dev/null; then
12897 as_ln_s=ln
12898 else
12899 as_ln_s='cp -p'
12901 else
12902 as_ln_s='cp -p'
12904 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
12905 rmdir conf$$.dir 2>/dev/null
12908 # as_fn_mkdir_p
12909 # -------------
12910 # Create "$as_dir" as a directory, including parents if necessary.
12911 as_fn_mkdir_p ()
12914 case $as_dir in #(
12915 -*) as_dir=./$as_dir;;
12916 esac
12917 test -d "$as_dir" || eval $as_mkdir_p || {
12918 as_dirs=
12919 while :; do
12920 case $as_dir in #(
12921 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
12922 *) as_qdir=$as_dir;;
12923 esac
12924 as_dirs="'$as_qdir' $as_dirs"
12925 as_dir=`$as_dirname -- "$as_dir" ||
12926 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12927 X"$as_dir" : 'X\(//\)[^/]' \| \
12928 X"$as_dir" : 'X\(//\)$' \| \
12929 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
12930 $as_echo X"$as_dir" |
12931 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12932 s//\1/
12935 /^X\(\/\/\)[^/].*/{
12936 s//\1/
12939 /^X\(\/\/\)$/{
12940 s//\1/
12943 /^X\(\/\).*/{
12944 s//\1/
12947 s/.*/./; q'`
12948 test -d "$as_dir" && break
12949 done
12950 test -z "$as_dirs" || eval "mkdir $as_dirs"
12951 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
12954 } # as_fn_mkdir_p
12955 if mkdir -p . 2>/dev/null; then
12956 as_mkdir_p='mkdir -p "$as_dir"'
12957 else
12958 test -d ./-p && rmdir ./-p
12959 as_mkdir_p=false
12962 if test -x / >/dev/null 2>&1; then
12963 as_test_x='test -x'
12964 else
12965 if ls -dL / >/dev/null 2>&1; then
12966 as_ls_L_option=L
12967 else
12968 as_ls_L_option=
12970 as_test_x='
12971 eval sh -c '\''
12972 if test -d "$1"; then
12973 test -d "$1/.";
12974 else
12975 case $1 in #(
12976 -*)set "./$1";;
12977 esac;
12978 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
12979 ???[sx]*):;;*)false;;esac;fi
12980 '\'' sh
12983 as_executable_p=$as_test_x
12985 # Sed expression to map a string onto a valid CPP name.
12986 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
12988 # Sed expression to map a string onto a valid variable name.
12989 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
12992 exec 6>&1
12993 ## ----------------------------------- ##
12994 ## Main body of $CONFIG_STATUS script. ##
12995 ## ----------------------------------- ##
12996 _ASEOF
12997 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
12999 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13000 # Save the log message, to keep $0 and so on meaningful, and to
13001 # report actual input values of CONFIG_FILES etc. instead of their
13002 # values after options handling.
13003 ac_log="
13004 This file was extended by package-unused $as_me version-unused, which was
13005 generated by GNU Autoconf 2.64. Invocation command line was
13007 CONFIG_FILES = $CONFIG_FILES
13008 CONFIG_HEADERS = $CONFIG_HEADERS
13009 CONFIG_LINKS = $CONFIG_LINKS
13010 CONFIG_COMMANDS = $CONFIG_COMMANDS
13011 $ $0 $@
13013 on `(hostname || uname -n) 2>/dev/null | sed 1q`
13016 _ACEOF
13018 case $ac_config_files in *"
13019 "*) set x $ac_config_files; shift; ac_config_files=$*;;
13020 esac
13022 case $ac_config_headers in *"
13023 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
13024 esac
13027 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13028 # Files that config.status was made for.
13029 config_files="$ac_config_files"
13030 config_headers="$ac_config_headers"
13031 config_commands="$ac_config_commands"
13033 _ACEOF
13035 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13036 ac_cs_usage="\
13037 \`$as_me' instantiates files and other configuration actions
13038 from templates according to the current configuration. Unless the files
13039 and actions are specified as TAGs, all are instantiated by default.
13041 Usage: $0 [OPTION]... [TAG]...
13043 -h, --help print this help, then exit
13044 -V, --version print version number and configuration settings, then exit
13045 -q, --quiet, --silent
13046 do not print progress messages
13047 -d, --debug don't remove temporary files
13048 --recheck update $as_me by reconfiguring in the same conditions
13049 --file=FILE[:TEMPLATE]
13050 instantiate the configuration file FILE
13051 --header=FILE[:TEMPLATE]
13052 instantiate the configuration header FILE
13054 Configuration files:
13055 $config_files
13057 Configuration headers:
13058 $config_headers
13060 Configuration commands:
13061 $config_commands
13063 Report bugs to the package provider."
13065 _ACEOF
13066 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13067 ac_cs_version="\\
13068 package-unused config.status version-unused
13069 configured by $0, generated by GNU Autoconf 2.64,
13070 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
13072 Copyright (C) 2009 Free Software Foundation, Inc.
13073 This config.status script is free software; the Free Software Foundation
13074 gives unlimited permission to copy, distribute and modify it."
13076 ac_pwd='$ac_pwd'
13077 srcdir='$srcdir'
13078 INSTALL='$INSTALL'
13079 MKDIR_P='$MKDIR_P'
13080 AWK='$AWK'
13081 test -n "\$AWK" || AWK=awk
13082 _ACEOF
13084 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13085 # The default lists apply if the user does not specify any file.
13086 ac_need_defaults=:
13087 while test $# != 0
13089 case $1 in
13090 --*=*)
13091 ac_option=`expr "X$1" : 'X\([^=]*\)='`
13092 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
13093 ac_shift=:
13096 ac_option=$1
13097 ac_optarg=$2
13098 ac_shift=shift
13100 esac
13102 case $ac_option in
13103 # Handling of the options.
13104 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
13105 ac_cs_recheck=: ;;
13106 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
13107 $as_echo "$ac_cs_version"; exit ;;
13108 --debug | --debu | --deb | --de | --d | -d )
13109 debug=: ;;
13110 --file | --fil | --fi | --f )
13111 $ac_shift
13112 case $ac_optarg in
13113 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
13114 esac
13115 as_fn_append CONFIG_FILES " '$ac_optarg'"
13116 ac_need_defaults=false;;
13117 --header | --heade | --head | --hea )
13118 $ac_shift
13119 case $ac_optarg in
13120 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
13121 esac
13122 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
13123 ac_need_defaults=false;;
13124 --he | --h)
13125 # Conflict between --help and --header
13126 as_fn_error "ambiguous option: \`$1'
13127 Try \`$0 --help' for more information.";;
13128 --help | --hel | -h )
13129 $as_echo "$ac_cs_usage"; exit ;;
13130 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
13131 | -silent | --silent | --silen | --sile | --sil | --si | --s)
13132 ac_cs_silent=: ;;
13134 # This is an error.
13135 -*) as_fn_error "unrecognized option: \`$1'
13136 Try \`$0 --help' for more information." ;;
13138 *) as_fn_append ac_config_targets " $1"
13139 ac_need_defaults=false ;;
13141 esac
13142 shift
13143 done
13145 ac_configure_extra_args=
13147 if $ac_cs_silent; then
13148 exec 6>/dev/null
13149 ac_configure_extra_args="$ac_configure_extra_args --silent"
13152 _ACEOF
13153 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13154 if \$ac_cs_recheck; then
13155 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
13156 shift
13157 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
13158 CONFIG_SHELL='$SHELL'
13159 export CONFIG_SHELL
13160 exec "\$@"
13163 _ACEOF
13164 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13165 exec 5>>config.log
13167 echo
13168 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
13169 ## Running $as_me. ##
13170 _ASBOX
13171 $as_echo "$ac_log"
13172 } >&5
13174 _ACEOF
13175 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13177 # INIT-COMMANDS
13180 srcdir="$srcdir"
13181 host="$host"
13182 target="$target"
13183 with_multisubdir="$with_multisubdir"
13184 with_multisrctop="$with_multisrctop"
13185 with_target_subdir="$with_target_subdir"
13186 ac_configure_args="${multilib_arg} ${ac_configure_args}"
13187 multi_basedir="$multi_basedir"
13188 CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
13189 CC="$CC"
13190 CXX="$CXX"
13191 GFORTRAN="$GFORTRAN"
13192 GCJ="$GCJ"
13195 # The HP-UX ksh and POSIX shell print the target directory to stdout
13196 # if CDPATH is set.
13197 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
13199 sed_quote_subst='$sed_quote_subst'
13200 double_quote_subst='$double_quote_subst'
13201 delay_variable_subst='$delay_variable_subst'
13202 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
13203 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
13204 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
13205 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
13206 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
13207 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
13208 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
13209 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
13210 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
13211 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
13212 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
13213 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
13214 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
13215 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
13216 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
13217 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
13218 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
13219 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
13220 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
13221 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
13222 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
13223 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
13224 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
13225 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
13226 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
13227 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
13228 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
13229 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
13230 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
13231 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
13232 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
13233 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
13234 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
13235 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
13236 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
13237 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
13238 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
13239 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
13240 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
13241 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
13242 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
13243 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
13244 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
13245 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
13246 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
13247 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
13248 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
13249 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
13250 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"`'
13251 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
13252 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
13253 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
13254 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
13255 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
13256 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
13257 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
13258 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
13259 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
13260 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
13261 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
13262 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
13263 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
13264 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
13265 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
13266 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
13267 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
13268 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
13269 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
13270 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
13271 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
13272 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
13273 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
13274 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
13275 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
13276 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
13277 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
13278 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
13279 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
13280 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
13281 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
13282 hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
13283 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
13284 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
13285 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
13286 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
13287 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
13288 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
13289 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
13290 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
13291 fix_srcfile_path='`$ECHO "$fix_srcfile_path" | $SED "$delay_single_quote_subst"`'
13292 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
13293 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
13294 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
13295 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
13296 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
13297 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
13298 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
13299 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
13300 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
13301 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
13302 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
13303 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
13304 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
13305 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
13306 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
13307 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
13308 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
13309 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
13310 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
13311 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
13312 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
13313 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
13314 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
13315 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
13316 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
13317 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
13318 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
13319 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
13320 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
13321 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
13323 LTCC='$LTCC'
13324 LTCFLAGS='$LTCFLAGS'
13325 compiler='$compiler_DEFAULT'
13327 # A function that is used when there is no print builtin or printf.
13328 func_fallback_echo ()
13330 eval 'cat <<_LTECHO_EOF
13332 _LTECHO_EOF'
13335 # Quote evaled strings.
13336 for var in SHELL \
13337 ECHO \
13338 SED \
13339 GREP \
13340 EGREP \
13341 FGREP \
13342 LD \
13343 NM \
13344 LN_S \
13345 lt_SP2NL \
13346 lt_NL2SP \
13347 reload_flag \
13348 OBJDUMP \
13349 deplibs_check_method \
13350 file_magic_cmd \
13351 AR \
13352 AR_FLAGS \
13353 STRIP \
13354 RANLIB \
13355 CC \
13356 CFLAGS \
13357 compiler \
13358 lt_cv_sys_global_symbol_pipe \
13359 lt_cv_sys_global_symbol_to_cdecl \
13360 lt_cv_sys_global_symbol_to_c_name_address \
13361 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
13362 lt_prog_compiler_no_builtin_flag \
13363 lt_prog_compiler_wl \
13364 lt_prog_compiler_pic \
13365 lt_prog_compiler_static \
13366 lt_cv_prog_compiler_c_o \
13367 need_locks \
13368 DSYMUTIL \
13369 NMEDIT \
13370 LIPO \
13371 OTOOL \
13372 OTOOL64 \
13373 shrext_cmds \
13374 export_dynamic_flag_spec \
13375 whole_archive_flag_spec \
13376 compiler_needs_object \
13377 with_gnu_ld \
13378 allow_undefined_flag \
13379 no_undefined_flag \
13380 hardcode_libdir_flag_spec \
13381 hardcode_libdir_flag_spec_ld \
13382 hardcode_libdir_separator \
13383 fix_srcfile_path \
13384 exclude_expsyms \
13385 include_expsyms \
13386 file_list_spec \
13387 variables_saved_for_relink \
13388 libname_spec \
13389 library_names_spec \
13390 soname_spec \
13391 install_override_mode \
13392 finish_eval \
13393 old_striplib \
13394 striplib; do
13395 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
13396 *[\\\\\\\`\\"\\\$]*)
13397 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
13400 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
13402 esac
13403 done
13405 # Double-quote double-evaled strings.
13406 for var in reload_cmds \
13407 old_postinstall_cmds \
13408 old_postuninstall_cmds \
13409 old_archive_cmds \
13410 extract_expsyms_cmds \
13411 old_archive_from_new_cmds \
13412 old_archive_from_expsyms_cmds \
13413 archive_cmds \
13414 archive_expsym_cmds \
13415 module_cmds \
13416 module_expsym_cmds \
13417 export_symbols_cmds \
13418 prelink_cmds \
13419 postinstall_cmds \
13420 postuninstall_cmds \
13421 finish_cmds \
13422 sys_lib_search_path_spec \
13423 sys_lib_dlsearch_path_spec; do
13424 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
13425 *[\\\\\\\`\\"\\\$]*)
13426 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
13429 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
13431 esac
13432 done
13434 ac_aux_dir='$ac_aux_dir'
13435 xsi_shell='$xsi_shell'
13436 lt_shell_append='$lt_shell_append'
13438 # See if we are running on zsh, and set the options which allow our
13439 # commands through without removal of \ escapes INIT.
13440 if test -n "\${ZSH_VERSION+set}" ; then
13441 setopt NO_GLOB_SUBST
13445 PACKAGE='$PACKAGE'
13446 VERSION='$VERSION'
13447 TIMESTAMP='$TIMESTAMP'
13448 RM='$RM'
13449 ofile='$ofile'
13454 GCC="$GCC"
13455 CC="$CC"
13456 acx_cv_header_stdint="$acx_cv_header_stdint"
13457 acx_cv_type_int8_t="$acx_cv_type_int8_t"
13458 acx_cv_type_int16_t="$acx_cv_type_int16_t"
13459 acx_cv_type_int32_t="$acx_cv_type_int32_t"
13460 acx_cv_type_int64_t="$acx_cv_type_int64_t"
13461 acx_cv_type_intptr_t="$acx_cv_type_intptr_t"
13462 ac_cv_type_uintmax_t="$ac_cv_type_uintmax_t"
13463 ac_cv_type_uintptr_t="$ac_cv_type_uintptr_t"
13464 ac_cv_type_uint64_t="$ac_cv_type_uint64_t"
13465 ac_cv_type_u_int64_t="$ac_cv_type_u_int64_t"
13466 ac_cv_type_u_int32_t="$ac_cv_type_u_int32_t"
13467 ac_cv_type_int_least32_t="$ac_cv_type_int_least32_t"
13468 ac_cv_type_int_fast32_t="$ac_cv_type_int_fast32_t"
13469 ac_cv_sizeof_void_p="$ac_cv_sizeof_void_p"
13472 # Variables needed in config.status (file generation) which aren't already
13473 # passed by autoconf.
13474 SUBDIRS="$SUBDIRS"
13477 _ACEOF
13479 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13481 # Handling of arguments.
13482 for ac_config_target in $ac_config_targets
13484 case $ac_config_target in
13485 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
13486 "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
13487 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
13488 "gstdint.h") CONFIG_COMMANDS="$CONFIG_COMMANDS gstdint.h" ;;
13489 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
13490 "backtrace-supported.h") CONFIG_FILES="$CONFIG_FILES backtrace-supported.h" ;;
13491 "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
13493 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
13494 esac
13495 done
13498 # If the user did not use the arguments to specify the items to instantiate,
13499 # then the envvar interface is used. Set only those that are not.
13500 # We use the long form for the default assignment because of an extremely
13501 # bizarre bug on SunOS 4.1.3.
13502 if $ac_need_defaults; then
13503 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
13504 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
13505 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
13508 # Have a temporary directory for convenience. Make it in the build tree
13509 # simply because there is no reason against having it here, and in addition,
13510 # creating and moving files from /tmp can sometimes cause problems.
13511 # Hook for its removal unless debugging.
13512 # Note that there is a small window in which the directory will not be cleaned:
13513 # after its creation but before its name has been assigned to `$tmp'.
13514 $debug ||
13516 tmp=
13517 trap 'exit_status=$?
13518 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
13520 trap 'as_fn_exit 1' 1 2 13 15
13522 # Create a (secure) tmp directory for tmp files.
13525 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
13526 test -n "$tmp" && test -d "$tmp"
13527 } ||
13529 tmp=./conf$$-$RANDOM
13530 (umask 077 && mkdir "$tmp")
13531 } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
13533 # Set up the scripts for CONFIG_FILES section.
13534 # No need to generate them if there are no CONFIG_FILES.
13535 # This happens for instance with `./config.status config.h'.
13536 if test -n "$CONFIG_FILES"; then
13539 ac_cr=`echo X | tr X '\015'`
13540 # On cygwin, bash can eat \r inside `` if the user requested igncr.
13541 # But we know of no other shell where ac_cr would be empty at this
13542 # point, so we can use a bashism as a fallback.
13543 if test "x$ac_cr" = x; then
13544 eval ac_cr=\$\'\\r\'
13546 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
13547 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
13548 ac_cs_awk_cr='\r'
13549 else
13550 ac_cs_awk_cr=$ac_cr
13553 echo 'BEGIN {' >"$tmp/subs1.awk" &&
13554 _ACEOF
13558 echo "cat >conf$$subs.awk <<_ACEOF" &&
13559 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
13560 echo "_ACEOF"
13561 } >conf$$subs.sh ||
13562 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
13563 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
13564 ac_delim='%!_!# '
13565 for ac_last_try in false false false false false :; do
13566 . ./conf$$subs.sh ||
13567 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
13569 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
13570 if test $ac_delim_n = $ac_delim_num; then
13571 break
13572 elif $ac_last_try; then
13573 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
13574 else
13575 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
13577 done
13578 rm -f conf$$subs.sh
13580 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13581 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
13582 _ACEOF
13583 sed -n '
13585 s/^/S["/; s/!.*/"]=/
13588 s/^[^!]*!//
13589 :repl
13590 t repl
13591 s/'"$ac_delim"'$//
13592 t delim
13595 s/\(.\{148\}\).*/\1/
13596 t more1
13597 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
13600 b repl
13601 :more1
13602 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
13605 s/.\{148\}//
13606 t nl
13607 :delim
13609 s/\(.\{148\}\).*/\1/
13610 t more2
13611 s/["\\]/\\&/g; s/^/"/; s/$/"/
13614 :more2
13615 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
13618 s/.\{148\}//
13619 t delim
13620 ' <conf$$subs.awk | sed '
13621 /^[^""]/{
13623 s/\n//
13625 ' >>$CONFIG_STATUS || ac_write_fail=1
13626 rm -f conf$$subs.awk
13627 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13628 _ACAWK
13629 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
13630 for (key in S) S_is_set[key] = 1
13631 FS = "\a"
13635 line = $ 0
13636 nfields = split(line, field, "@")
13637 substed = 0
13638 len = length(field[1])
13639 for (i = 2; i < nfields; i++) {
13640 key = field[i]
13641 keylen = length(key)
13642 if (S_is_set[key]) {
13643 value = S[key]
13644 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
13645 len += length(value) + length(field[++i])
13646 substed = 1
13647 } else
13648 len += 1 + keylen
13651 print line
13654 _ACAWK
13655 _ACEOF
13656 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13657 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
13658 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
13659 else
13661 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
13662 || as_fn_error "could not setup config files machinery" "$LINENO" 5
13663 _ACEOF
13665 # VPATH may cause trouble with some makes, so we remove $(srcdir),
13666 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
13667 # trailing colons and then remove the whole line if VPATH becomes empty
13668 # (actually we leave an empty line to preserve line numbers).
13669 if test "x$srcdir" = x.; then
13670 ac_vpsub='/^[ ]*VPATH[ ]*=/{
13671 s/:*\$(srcdir):*/:/
13672 s/:*\${srcdir}:*/:/
13673 s/:*@srcdir@:*/:/
13674 s/^\([^=]*=[ ]*\):*/\1/
13675 s/:*$//
13676 s/^[^=]*=[ ]*$//
13680 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13681 fi # test -n "$CONFIG_FILES"
13683 # Set up the scripts for CONFIG_HEADERS section.
13684 # No need to generate them if there are no CONFIG_HEADERS.
13685 # This happens for instance with `./config.status Makefile'.
13686 if test -n "$CONFIG_HEADERS"; then
13687 cat >"$tmp/defines.awk" <<\_ACAWK ||
13688 BEGIN {
13689 _ACEOF
13691 # Transform confdefs.h into an awk script `defines.awk', embedded as
13692 # here-document in config.status, that substitutes the proper values into
13693 # config.h.in to produce config.h.
13695 # Create a delimiter string that does not exist in confdefs.h, to ease
13696 # handling of long lines.
13697 ac_delim='%!_!# '
13698 for ac_last_try in false false :; do
13699 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
13700 if test -z "$ac_t"; then
13701 break
13702 elif $ac_last_try; then
13703 as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
13704 else
13705 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
13707 done
13709 # For the awk script, D is an array of macro values keyed by name,
13710 # likewise P contains macro parameters if any. Preserve backslash
13711 # newline sequences.
13713 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
13714 sed -n '
13715 s/.\{148\}/&'"$ac_delim"'/g
13716 t rset
13717 :rset
13718 s/^[ ]*#[ ]*define[ ][ ]*/ /
13719 t def
13721 :def
13722 s/\\$//
13723 t bsnl
13724 s/["\\]/\\&/g
13725 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
13726 D["\1"]=" \3"/p
13727 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
13729 :bsnl
13730 s/["\\]/\\&/g
13731 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
13732 D["\1"]=" \3\\\\\\n"\\/p
13733 t cont
13734 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
13735 t cont
13737 :cont
13739 s/.\{148\}/&'"$ac_delim"'/g
13740 t clear
13741 :clear
13742 s/\\$//
13743 t bsnlc
13744 s/["\\]/\\&/g; s/^/"/; s/$/"/p
13746 :bsnlc
13747 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
13748 b cont
13749 ' <confdefs.h | sed '
13750 s/'"$ac_delim"'/"\\\
13751 "/g' >>$CONFIG_STATUS || ac_write_fail=1
13753 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13754 for (key in D) D_is_set[key] = 1
13755 FS = "\a"
13757 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
13758 line = \$ 0
13759 split(line, arg, " ")
13760 if (arg[1] == "#") {
13761 defundef = arg[2]
13762 mac1 = arg[3]
13763 } else {
13764 defundef = substr(arg[1], 2)
13765 mac1 = arg[2]
13767 split(mac1, mac2, "(") #)
13768 macro = mac2[1]
13769 prefix = substr(line, 1, index(line, defundef) - 1)
13770 if (D_is_set[macro]) {
13771 # Preserve the white space surrounding the "#".
13772 print prefix "define", macro P[macro] D[macro]
13773 next
13774 } else {
13775 # Replace #undef with comments. This is necessary, for example,
13776 # in the case of _POSIX_SOURCE, which is predefined and required
13777 # on some systems where configure will not decide to define it.
13778 if (defundef == "undef") {
13779 print "/*", prefix defundef, macro, "*/"
13780 next
13784 { print }
13785 _ACAWK
13786 _ACEOF
13787 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13788 as_fn_error "could not setup config headers machinery" "$LINENO" 5
13789 fi # test -n "$CONFIG_HEADERS"
13792 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
13793 shift
13794 for ac_tag
13796 case $ac_tag in
13797 :[FHLC]) ac_mode=$ac_tag; continue;;
13798 esac
13799 case $ac_mode$ac_tag in
13800 :[FHL]*:*);;
13801 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
13802 :[FH]-) ac_tag=-:-;;
13803 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
13804 esac
13805 ac_save_IFS=$IFS
13806 IFS=:
13807 set x $ac_tag
13808 IFS=$ac_save_IFS
13809 shift
13810 ac_file=$1
13811 shift
13813 case $ac_mode in
13814 :L) ac_source=$1;;
13815 :[FH])
13816 ac_file_inputs=
13817 for ac_f
13819 case $ac_f in
13820 -) ac_f="$tmp/stdin";;
13821 *) # Look for the file first in the build tree, then in the source tree
13822 # (if the path is not absolute). The absolute path cannot be DOS-style,
13823 # because $ac_f cannot contain `:'.
13824 test -f "$ac_f" ||
13825 case $ac_f in
13826 [\\/$]*) false;;
13827 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
13828 esac ||
13829 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
13830 esac
13831 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
13832 as_fn_append ac_file_inputs " '$ac_f'"
13833 done
13835 # Let's still pretend it is `configure' which instantiates (i.e., don't
13836 # use $as_me), people would be surprised to read:
13837 # /* config.h. Generated by config.status. */
13838 configure_input='Generated from '`
13839 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
13840 `' by configure.'
13841 if test x"$ac_file" != x-; then
13842 configure_input="$ac_file. $configure_input"
13843 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
13844 $as_echo "$as_me: creating $ac_file" >&6;}
13846 # Neutralize special characters interpreted by sed in replacement strings.
13847 case $configure_input in #(
13848 *\&* | *\|* | *\\* )
13849 ac_sed_conf_input=`$as_echo "$configure_input" |
13850 sed 's/[\\\\&|]/\\\\&/g'`;; #(
13851 *) ac_sed_conf_input=$configure_input;;
13852 esac
13854 case $ac_tag in
13855 *:-:* | *:-) cat >"$tmp/stdin" \
13856 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
13857 esac
13859 esac
13861 ac_dir=`$as_dirname -- "$ac_file" ||
13862 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13863 X"$ac_file" : 'X\(//\)[^/]' \| \
13864 X"$ac_file" : 'X\(//\)$' \| \
13865 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
13866 $as_echo X"$ac_file" |
13867 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13868 s//\1/
13871 /^X\(\/\/\)[^/].*/{
13872 s//\1/
13875 /^X\(\/\/\)$/{
13876 s//\1/
13879 /^X\(\/\).*/{
13880 s//\1/
13883 s/.*/./; q'`
13884 as_dir="$ac_dir"; as_fn_mkdir_p
13885 ac_builddir=.
13887 case "$ac_dir" in
13888 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
13890 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
13891 # A ".." for each directory in $ac_dir_suffix.
13892 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
13893 case $ac_top_builddir_sub in
13894 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
13895 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
13896 esac ;;
13897 esac
13898 ac_abs_top_builddir=$ac_pwd
13899 ac_abs_builddir=$ac_pwd$ac_dir_suffix
13900 # for backward compatibility:
13901 ac_top_builddir=$ac_top_build_prefix
13903 case $srcdir in
13904 .) # We are building in place.
13905 ac_srcdir=.
13906 ac_top_srcdir=$ac_top_builddir_sub
13907 ac_abs_top_srcdir=$ac_pwd ;;
13908 [\\/]* | ?:[\\/]* ) # Absolute name.
13909 ac_srcdir=$srcdir$ac_dir_suffix;
13910 ac_top_srcdir=$srcdir
13911 ac_abs_top_srcdir=$srcdir ;;
13912 *) # Relative name.
13913 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
13914 ac_top_srcdir=$ac_top_build_prefix$srcdir
13915 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
13916 esac
13917 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
13920 case $ac_mode in
13923 # CONFIG_FILE
13926 case $INSTALL in
13927 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
13928 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
13929 esac
13930 ac_MKDIR_P=$MKDIR_P
13931 case $MKDIR_P in
13932 [\\/$]* | ?:[\\/]* ) ;;
13933 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
13934 esac
13935 _ACEOF
13937 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13938 # If the template does not know about datarootdir, expand it.
13939 # FIXME: This hack should be removed a few years after 2.60.
13940 ac_datarootdir_hack=; ac_datarootdir_seen=
13941 ac_sed_dataroot='
13942 /datarootdir/ {
13946 /@datadir@/p
13947 /@docdir@/p
13948 /@infodir@/p
13949 /@localedir@/p
13950 /@mandir@/p'
13951 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
13952 *datarootdir*) ac_datarootdir_seen=yes;;
13953 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
13954 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
13955 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
13956 _ACEOF
13957 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13958 ac_datarootdir_hack='
13959 s&@datadir@&$datadir&g
13960 s&@docdir@&$docdir&g
13961 s&@infodir@&$infodir&g
13962 s&@localedir@&$localedir&g
13963 s&@mandir@&$mandir&g
13964 s&\\\${datarootdir}&$datarootdir&g' ;;
13965 esac
13966 _ACEOF
13968 # Neutralize VPATH when `$srcdir' = `.'.
13969 # Shell code in configure.ac might set extrasub.
13970 # FIXME: do we really want to maintain this feature?
13971 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13972 ac_sed_extra="$ac_vpsub
13973 $extrasub
13974 _ACEOF
13975 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13977 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
13978 s|@configure_input@|$ac_sed_conf_input|;t t
13979 s&@top_builddir@&$ac_top_builddir_sub&;t t
13980 s&@top_build_prefix@&$ac_top_build_prefix&;t t
13981 s&@srcdir@&$ac_srcdir&;t t
13982 s&@abs_srcdir@&$ac_abs_srcdir&;t t
13983 s&@top_srcdir@&$ac_top_srcdir&;t t
13984 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
13985 s&@builddir@&$ac_builddir&;t t
13986 s&@abs_builddir@&$ac_abs_builddir&;t t
13987 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
13988 s&@INSTALL@&$ac_INSTALL&;t t
13989 s&@MKDIR_P@&$ac_MKDIR_P&;t t
13990 $ac_datarootdir_hack
13992 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
13993 || as_fn_error "could not create $ac_file" "$LINENO" 5
13995 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
13996 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
13997 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
13998 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
13999 which seems to be undefined. Please make sure it is defined." >&5
14000 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
14001 which seems to be undefined. Please make sure it is defined." >&2;}
14003 rm -f "$tmp/stdin"
14004 case $ac_file in
14005 -) cat "$tmp/out" && rm -f "$tmp/out";;
14006 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
14007 esac \
14008 || as_fn_error "could not create $ac_file" "$LINENO" 5
14012 # CONFIG_HEADER
14014 if test x"$ac_file" != x-; then
14016 $as_echo "/* $configure_input */" \
14017 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
14018 } >"$tmp/config.h" \
14019 || as_fn_error "could not create $ac_file" "$LINENO" 5
14020 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
14021 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
14022 $as_echo "$as_me: $ac_file is unchanged" >&6;}
14023 else
14024 rm -f "$ac_file"
14025 mv "$tmp/config.h" "$ac_file" \
14026 || as_fn_error "could not create $ac_file" "$LINENO" 5
14028 else
14029 $as_echo "/* $configure_input */" \
14030 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
14031 || as_fn_error "could not create -" "$LINENO" 5
14033 # Compute "$ac_file"'s index in $config_headers.
14034 _am_arg="$ac_file"
14035 _am_stamp_count=1
14036 for _am_header in $config_headers :; do
14037 case $_am_header in
14038 $_am_arg | $_am_arg:* )
14039 break ;;
14041 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
14042 esac
14043 done
14044 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
14045 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14046 X"$_am_arg" : 'X\(//\)[^/]' \| \
14047 X"$_am_arg" : 'X\(//\)$' \| \
14048 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
14049 $as_echo X"$_am_arg" |
14050 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14051 s//\1/
14054 /^X\(\/\/\)[^/].*/{
14055 s//\1/
14058 /^X\(\/\/\)$/{
14059 s//\1/
14062 /^X\(\/\).*/{
14063 s//\1/
14066 s/.*/./; q'`/stamp-h$_am_stamp_count
14069 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
14070 $as_echo "$as_me: executing $ac_file commands" >&6;}
14072 esac
14075 case $ac_file$ac_mode in
14076 "default-1":C)
14077 # Only add multilib support code if we just rebuilt the top-level
14078 # Makefile.
14079 case " $CONFIG_FILES " in
14080 *" Makefile "*)
14081 ac_file=Makefile . ${multi_basedir}/config-ml.in
14083 esac ;;
14084 "libtool":C)
14086 # See if we are running on zsh, and set the options which allow our
14087 # commands through without removal of \ escapes.
14088 if test -n "${ZSH_VERSION+set}" ; then
14089 setopt NO_GLOB_SUBST
14092 cfgfile="${ofile}T"
14093 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
14094 $RM "$cfgfile"
14096 cat <<_LT_EOF >> "$cfgfile"
14097 #! $SHELL
14099 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
14100 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
14101 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
14102 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
14104 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
14105 # 2006, 2007, 2008, 2009 Free Software Foundation, Inc.
14106 # Written by Gordon Matzigkeit, 1996
14108 # This file is part of GNU Libtool.
14110 # GNU Libtool is free software; you can redistribute it and/or
14111 # modify it under the terms of the GNU General Public License as
14112 # published by the Free Software Foundation; either version 2 of
14113 # the License, or (at your option) any later version.
14115 # As a special exception to the GNU General Public License,
14116 # if you distribute this file as part of a program or library that
14117 # is built using GNU Libtool, you may include this file under the
14118 # same distribution terms that you use for the rest of that program.
14120 # GNU Libtool is distributed in the hope that it will be useful,
14121 # but WITHOUT ANY WARRANTY; without even the implied warranty of
14122 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14123 # GNU General Public License for more details.
14125 # You should have received a copy of the GNU General Public License
14126 # along with GNU Libtool; see the file COPYING. If not, a copy
14127 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
14128 # obtained by writing to the Free Software Foundation, Inc.,
14129 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
14132 # The names of the tagged configurations supported by this script.
14133 available_tags=""
14135 # ### BEGIN LIBTOOL CONFIG
14137 # Which release of libtool.m4 was used?
14138 macro_version=$macro_version
14139 macro_revision=$macro_revision
14141 # Whether or not to build shared libraries.
14142 build_libtool_libs=$enable_shared
14144 # Whether or not to build static libraries.
14145 build_old_libs=$enable_static
14147 # What type of objects to build.
14148 pic_mode=$pic_mode
14150 # Whether or not to optimize for fast installation.
14151 fast_install=$enable_fast_install
14153 # Shell to use when invoking shell scripts.
14154 SHELL=$lt_SHELL
14156 # An echo program that protects backslashes.
14157 ECHO=$lt_ECHO
14159 # The host system.
14160 host_alias=$host_alias
14161 host=$host
14162 host_os=$host_os
14164 # The build system.
14165 build_alias=$build_alias
14166 build=$build
14167 build_os=$build_os
14169 # A sed program that does not truncate output.
14170 SED=$lt_SED
14172 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
14173 Xsed="\$SED -e 1s/^X//"
14175 # A grep program that handles long lines.
14176 GREP=$lt_GREP
14178 # An ERE matcher.
14179 EGREP=$lt_EGREP
14181 # A literal string matcher.
14182 FGREP=$lt_FGREP
14184 # A BSD- or MS-compatible name lister.
14185 NM=$lt_NM
14187 # Whether we need soft or hard links.
14188 LN_S=$lt_LN_S
14190 # What is the maximum length of a command?
14191 max_cmd_len=$max_cmd_len
14193 # Object file suffix (normally "o").
14194 objext=$ac_objext
14196 # Executable file suffix (normally "").
14197 exeext=$exeext
14199 # whether the shell understands "unset".
14200 lt_unset=$lt_unset
14202 # turn spaces into newlines.
14203 SP2NL=$lt_lt_SP2NL
14205 # turn newlines into spaces.
14206 NL2SP=$lt_lt_NL2SP
14208 # An object symbol dumper.
14209 OBJDUMP=$lt_OBJDUMP
14211 # Method to check whether dependent libraries are shared objects.
14212 deplibs_check_method=$lt_deplibs_check_method
14214 # Command to use when deplibs_check_method == "file_magic".
14215 file_magic_cmd=$lt_file_magic_cmd
14217 # The archiver.
14218 AR=$lt_AR
14219 AR_FLAGS=$lt_AR_FLAGS
14221 # A symbol stripping program.
14222 STRIP=$lt_STRIP
14224 # Commands used to install an old-style archive.
14225 RANLIB=$lt_RANLIB
14226 old_postinstall_cmds=$lt_old_postinstall_cmds
14227 old_postuninstall_cmds=$lt_old_postuninstall_cmds
14229 # Whether to use a lock for old archive extraction.
14230 lock_old_archive_extraction=$lock_old_archive_extraction
14232 # A C compiler.
14233 LTCC=$lt_CC
14235 # LTCC compiler flags.
14236 LTCFLAGS=$lt_CFLAGS
14238 # Take the output of nm and produce a listing of raw symbols and C names.
14239 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
14241 # Transform the output of nm in a proper C declaration.
14242 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
14244 # Transform the output of nm in a C name address pair.
14245 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
14247 # Transform the output of nm in a C name address pair when lib prefix is needed.
14248 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
14250 # The name of the directory that contains temporary libtool files.
14251 objdir=$objdir
14253 # Used to examine libraries when file_magic_cmd begins with "file".
14254 MAGIC_CMD=$MAGIC_CMD
14256 # Must we lock files when doing compilation?
14257 need_locks=$lt_need_locks
14259 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
14260 DSYMUTIL=$lt_DSYMUTIL
14262 # Tool to change global to local symbols on Mac OS X.
14263 NMEDIT=$lt_NMEDIT
14265 # Tool to manipulate fat objects and archives on Mac OS X.
14266 LIPO=$lt_LIPO
14268 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
14269 OTOOL=$lt_OTOOL
14271 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
14272 OTOOL64=$lt_OTOOL64
14274 # Old archive suffix (normally "a").
14275 libext=$libext
14277 # Shared library suffix (normally ".so").
14278 shrext_cmds=$lt_shrext_cmds
14280 # The commands to extract the exported symbol list from a shared archive.
14281 extract_expsyms_cmds=$lt_extract_expsyms_cmds
14283 # Variables whose values should be saved in libtool wrapper scripts and
14284 # restored at link time.
14285 variables_saved_for_relink=$lt_variables_saved_for_relink
14287 # Do we need the "lib" prefix for modules?
14288 need_lib_prefix=$need_lib_prefix
14290 # Do we need a version for libraries?
14291 need_version=$need_version
14293 # Library versioning type.
14294 version_type=$version_type
14296 # Shared library runtime path variable.
14297 runpath_var=$runpath_var
14299 # Shared library path variable.
14300 shlibpath_var=$shlibpath_var
14302 # Is shlibpath searched before the hard-coded library search path?
14303 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
14305 # Format of library name prefix.
14306 libname_spec=$lt_libname_spec
14308 # List of archive names. First name is the real one, the rest are links.
14309 # The last name is the one that the linker finds with -lNAME
14310 library_names_spec=$lt_library_names_spec
14312 # The coded name of the library, if different from the real name.
14313 soname_spec=$lt_soname_spec
14315 # Permission mode override for installation of shared libraries.
14316 install_override_mode=$lt_install_override_mode
14318 # Command to use after installation of a shared archive.
14319 postinstall_cmds=$lt_postinstall_cmds
14321 # Command to use after uninstallation of a shared archive.
14322 postuninstall_cmds=$lt_postuninstall_cmds
14324 # Commands used to finish a libtool library installation in a directory.
14325 finish_cmds=$lt_finish_cmds
14327 # As "finish_cmds", except a single script fragment to be evaled but
14328 # not shown.
14329 finish_eval=$lt_finish_eval
14331 # Whether we should hardcode library paths into libraries.
14332 hardcode_into_libs=$hardcode_into_libs
14334 # Compile-time system search path for libraries.
14335 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
14337 # Run-time system search path for libraries.
14338 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
14340 # Whether dlopen is supported.
14341 dlopen_support=$enable_dlopen
14343 # Whether dlopen of programs is supported.
14344 dlopen_self=$enable_dlopen_self
14346 # Whether dlopen of statically linked programs is supported.
14347 dlopen_self_static=$enable_dlopen_self_static
14349 # Commands to strip libraries.
14350 old_striplib=$lt_old_striplib
14351 striplib=$lt_striplib
14354 # The linker used to build libraries.
14355 LD=$lt_LD
14357 # How to create reloadable object files.
14358 reload_flag=$lt_reload_flag
14359 reload_cmds=$lt_reload_cmds
14361 # Commands used to build an old-style archive.
14362 old_archive_cmds=$lt_old_archive_cmds
14364 # A language specific compiler.
14365 CC=$lt_compiler
14367 # Is the compiler the GNU compiler?
14368 with_gcc=$GCC
14370 # Compiler flag to turn off builtin functions.
14371 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
14373 # How to pass a linker flag through the compiler.
14374 wl=$lt_lt_prog_compiler_wl
14376 # Additional compiler flags for building library objects.
14377 pic_flag=$lt_lt_prog_compiler_pic
14379 # Compiler flag to prevent dynamic linking.
14380 link_static_flag=$lt_lt_prog_compiler_static
14382 # Does compiler simultaneously support -c and -o options?
14383 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
14385 # Whether or not to add -lc for building shared libraries.
14386 build_libtool_need_lc=$archive_cmds_need_lc
14388 # Whether or not to disallow shared libs when runtime libs are static.
14389 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
14391 # Compiler flag to allow reflexive dlopens.
14392 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
14394 # Compiler flag to generate shared objects directly from archives.
14395 whole_archive_flag_spec=$lt_whole_archive_flag_spec
14397 # Whether the compiler copes with passing no objects directly.
14398 compiler_needs_object=$lt_compiler_needs_object
14400 # Create an old-style archive from a shared archive.
14401 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
14403 # Create a temporary old-style archive to link instead of a shared archive.
14404 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
14406 # Commands used to build a shared archive.
14407 archive_cmds=$lt_archive_cmds
14408 archive_expsym_cmds=$lt_archive_expsym_cmds
14410 # Commands used to build a loadable module if different from building
14411 # a shared archive.
14412 module_cmds=$lt_module_cmds
14413 module_expsym_cmds=$lt_module_expsym_cmds
14415 # Whether we are building with GNU ld or not.
14416 with_gnu_ld=$lt_with_gnu_ld
14418 # Flag that allows shared libraries with undefined symbols to be built.
14419 allow_undefined_flag=$lt_allow_undefined_flag
14421 # Flag that enforces no undefined symbols.
14422 no_undefined_flag=$lt_no_undefined_flag
14424 # Flag to hardcode \$libdir into a binary during linking.
14425 # This must work even if \$libdir does not exist
14426 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
14428 # If ld is used when linking, flag to hardcode \$libdir into a binary
14429 # during linking. This must work even if \$libdir does not exist.
14430 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
14432 # Whether we need a single "-rpath" flag with a separated argument.
14433 hardcode_libdir_separator=$lt_hardcode_libdir_separator
14435 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
14436 # DIR into the resulting binary.
14437 hardcode_direct=$hardcode_direct
14439 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
14440 # DIR into the resulting binary and the resulting library dependency is
14441 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
14442 # library is relocated.
14443 hardcode_direct_absolute=$hardcode_direct_absolute
14445 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
14446 # into the resulting binary.
14447 hardcode_minus_L=$hardcode_minus_L
14449 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
14450 # into the resulting binary.
14451 hardcode_shlibpath_var=$hardcode_shlibpath_var
14453 # Set to "yes" if building a shared library automatically hardcodes DIR
14454 # into the library and all subsequent libraries and executables linked
14455 # against it.
14456 hardcode_automatic=$hardcode_automatic
14458 # Set to yes if linker adds runtime paths of dependent libraries
14459 # to runtime path list.
14460 inherit_rpath=$inherit_rpath
14462 # Whether libtool must link a program against all its dependency libraries.
14463 link_all_deplibs=$link_all_deplibs
14465 # Fix the shell variable \$srcfile for the compiler.
14466 fix_srcfile_path=$lt_fix_srcfile_path
14468 # Set to "yes" if exported symbols are required.
14469 always_export_symbols=$always_export_symbols
14471 # The commands to list exported symbols.
14472 export_symbols_cmds=$lt_export_symbols_cmds
14474 # Symbols that should not be listed in the preloaded symbols.
14475 exclude_expsyms=$lt_exclude_expsyms
14477 # Symbols that must always be exported.
14478 include_expsyms=$lt_include_expsyms
14480 # Commands necessary for linking programs (against libraries) with templates.
14481 prelink_cmds=$lt_prelink_cmds
14483 # Specify filename containing input files.
14484 file_list_spec=$lt_file_list_spec
14486 # How to hardcode a shared library path into an executable.
14487 hardcode_action=$hardcode_action
14489 # ### END LIBTOOL CONFIG
14491 _LT_EOF
14493 case $host_os in
14494 aix3*)
14495 cat <<\_LT_EOF >> "$cfgfile"
14496 # AIX sometimes has problems with the GCC collect2 program. For some
14497 # reason, if we set the COLLECT_NAMES environment variable, the problems
14498 # vanish in a puff of smoke.
14499 if test "X${COLLECT_NAMES+set}" != Xset; then
14500 COLLECT_NAMES=
14501 export COLLECT_NAMES
14503 _LT_EOF
14505 esac
14508 ltmain="$ac_aux_dir/ltmain.sh"
14511 # We use sed instead of cat because bash on DJGPP gets confused if
14512 # if finds mixed CR/LF and LF-only lines. Since sed operates in
14513 # text mode, it properly converts lines to CR/LF. This bash problem
14514 # is reportedly fixed, but why not run on old versions too?
14515 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
14516 || (rm -f "$cfgfile"; exit 1)
14518 case $xsi_shell in
14519 yes)
14520 cat << \_LT_EOF >> "$cfgfile"
14522 # func_dirname file append nondir_replacement
14523 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
14524 # otherwise set result to NONDIR_REPLACEMENT.
14525 func_dirname ()
14527 case ${1} in
14528 */*) func_dirname_result="${1%/*}${2}" ;;
14529 * ) func_dirname_result="${3}" ;;
14530 esac
14533 # func_basename file
14534 func_basename ()
14536 func_basename_result="${1##*/}"
14539 # func_dirname_and_basename file append nondir_replacement
14540 # perform func_basename and func_dirname in a single function
14541 # call:
14542 # dirname: Compute the dirname of FILE. If nonempty,
14543 # add APPEND to the result, otherwise set result
14544 # to NONDIR_REPLACEMENT.
14545 # value returned in "$func_dirname_result"
14546 # basename: Compute filename of FILE.
14547 # value retuned in "$func_basename_result"
14548 # Implementation must be kept synchronized with func_dirname
14549 # and func_basename. For efficiency, we do not delegate to
14550 # those functions but instead duplicate the functionality here.
14551 func_dirname_and_basename ()
14553 case ${1} in
14554 */*) func_dirname_result="${1%/*}${2}" ;;
14555 * ) func_dirname_result="${3}" ;;
14556 esac
14557 func_basename_result="${1##*/}"
14560 # func_stripname prefix suffix name
14561 # strip PREFIX and SUFFIX off of NAME.
14562 # PREFIX and SUFFIX must not contain globbing or regex special
14563 # characters, hashes, percent signs, but SUFFIX may contain a leading
14564 # dot (in which case that matches only a dot).
14565 func_stripname ()
14567 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
14568 # positional parameters, so assign one to ordinary parameter first.
14569 func_stripname_result=${3}
14570 func_stripname_result=${func_stripname_result#"${1}"}
14571 func_stripname_result=${func_stripname_result%"${2}"}
14574 # func_opt_split
14575 func_opt_split ()
14577 func_opt_split_opt=${1%%=*}
14578 func_opt_split_arg=${1#*=}
14581 # func_lo2o object
14582 func_lo2o ()
14584 case ${1} in
14585 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
14586 *) func_lo2o_result=${1} ;;
14587 esac
14590 # func_xform libobj-or-source
14591 func_xform ()
14593 func_xform_result=${1%.*}.lo
14596 # func_arith arithmetic-term...
14597 func_arith ()
14599 func_arith_result=$(( $* ))
14602 # func_len string
14603 # STRING may not start with a hyphen.
14604 func_len ()
14606 func_len_result=${#1}
14609 _LT_EOF
14611 *) # Bourne compatible functions.
14612 cat << \_LT_EOF >> "$cfgfile"
14614 # func_dirname file append nondir_replacement
14615 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
14616 # otherwise set result to NONDIR_REPLACEMENT.
14617 func_dirname ()
14619 # Extract subdirectory from the argument.
14620 func_dirname_result=`$ECHO "${1}" | $SED "$dirname"`
14621 if test "X$func_dirname_result" = "X${1}"; then
14622 func_dirname_result="${3}"
14623 else
14624 func_dirname_result="$func_dirname_result${2}"
14628 # func_basename file
14629 func_basename ()
14631 func_basename_result=`$ECHO "${1}" | $SED "$basename"`
14635 # func_stripname prefix suffix name
14636 # strip PREFIX and SUFFIX off of NAME.
14637 # PREFIX and SUFFIX must not contain globbing or regex special
14638 # characters, hashes, percent signs, but SUFFIX may contain a leading
14639 # dot (in which case that matches only a dot).
14640 # func_strip_suffix prefix name
14641 func_stripname ()
14643 case ${2} in
14644 .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
14645 *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
14646 esac
14649 # sed scripts:
14650 my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
14651 my_sed_long_arg='1s/^-[^=]*=//'
14653 # func_opt_split
14654 func_opt_split ()
14656 func_opt_split_opt=`$ECHO "${1}" | $SED "$my_sed_long_opt"`
14657 func_opt_split_arg=`$ECHO "${1}" | $SED "$my_sed_long_arg"`
14660 # func_lo2o object
14661 func_lo2o ()
14663 func_lo2o_result=`$ECHO "${1}" | $SED "$lo2o"`
14666 # func_xform libobj-or-source
14667 func_xform ()
14669 func_xform_result=`$ECHO "${1}" | $SED 's/\.[^.]*$/.lo/'`
14672 # func_arith arithmetic-term...
14673 func_arith ()
14675 func_arith_result=`expr "$@"`
14678 # func_len string
14679 # STRING may not start with a hyphen.
14680 func_len ()
14682 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
14685 _LT_EOF
14686 esac
14688 case $lt_shell_append in
14689 yes)
14690 cat << \_LT_EOF >> "$cfgfile"
14692 # func_append var value
14693 # Append VALUE to the end of shell variable VAR.
14694 func_append ()
14696 eval "$1+=\$2"
14698 _LT_EOF
14701 cat << \_LT_EOF >> "$cfgfile"
14703 # func_append var value
14704 # Append VALUE to the end of shell variable VAR.
14705 func_append ()
14707 eval "$1=\$$1\$2"
14710 _LT_EOF
14712 esac
14715 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
14716 || (rm -f "$cfgfile"; exit 1)
14718 mv -f "$cfgfile" "$ofile" ||
14719 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
14720 chmod +x "$ofile"
14723 "gstdint.h":C)
14724 if test "$GCC" = yes; then
14725 echo "/* generated for " `$CC --version | sed 1q` "*/" > tmp-stdint.h
14726 else
14727 echo "/* generated for $CC */" > tmp-stdint.h
14730 sed 's/^ *//' >> tmp-stdint.h <<EOF
14732 #ifndef GCC_GENERATED_STDINT_H
14733 #define GCC_GENERATED_STDINT_H 1
14735 #include <sys/types.h>
14738 if test "$acx_cv_header_stdint" != stdint.h; then
14739 echo "#include <stddef.h>" >> tmp-stdint.h
14741 if test "$acx_cv_header_stdint" != stddef.h; then
14742 echo "#include <$acx_cv_header_stdint>" >> tmp-stdint.h
14745 sed 's/^ *//' >> tmp-stdint.h <<EOF
14746 /* glibc uses these symbols as guards to prevent redefinitions. */
14747 #ifdef __int8_t_defined
14748 #define _INT8_T
14749 #define _INT16_T
14750 #define _INT32_T
14751 #endif
14752 #ifdef __uint32_t_defined
14753 #define _UINT32_T
14754 #endif
14758 # ----------------- done header, emit basic int types -------------
14759 if test "$acx_cv_header_stdint" = stddef.h; then
14760 sed 's/^ *//' >> tmp-stdint.h <<EOF
14762 #ifndef _UINT8_T
14763 #define _UINT8_T
14764 #ifndef __uint8_t_defined
14765 #define __uint8_t_defined
14766 #ifndef uint8_t
14767 typedef unsigned $acx_cv_type_int8_t uint8_t;
14768 #endif
14769 #endif
14770 #endif
14772 #ifndef _UINT16_T
14773 #define _UINT16_T
14774 #ifndef __uint16_t_defined
14775 #define __uint16_t_defined
14776 #ifndef uint16_t
14777 typedef unsigned $acx_cv_type_int16_t uint16_t;
14778 #endif
14779 #endif
14780 #endif
14782 #ifndef _UINT32_T
14783 #define _UINT32_T
14784 #ifndef __uint32_t_defined
14785 #define __uint32_t_defined
14786 #ifndef uint32_t
14787 typedef unsigned $acx_cv_type_int32_t uint32_t;
14788 #endif
14789 #endif
14790 #endif
14792 #ifndef _INT8_T
14793 #define _INT8_T
14794 #ifndef __int8_t_defined
14795 #define __int8_t_defined
14796 #ifndef int8_t
14797 typedef $acx_cv_type_int8_t int8_t;
14798 #endif
14799 #endif
14800 #endif
14802 #ifndef _INT16_T
14803 #define _INT16_T
14804 #ifndef __int16_t_defined
14805 #define __int16_t_defined
14806 #ifndef int16_t
14807 typedef $acx_cv_type_int16_t int16_t;
14808 #endif
14809 #endif
14810 #endif
14812 #ifndef _INT32_T
14813 #define _INT32_T
14814 #ifndef __int32_t_defined
14815 #define __int32_t_defined
14816 #ifndef int32_t
14817 typedef $acx_cv_type_int32_t int32_t;
14818 #endif
14819 #endif
14820 #endif
14822 elif test "$ac_cv_type_u_int32_t" = yes; then
14823 sed 's/^ *//' >> tmp-stdint.h <<EOF
14825 /* int8_t int16_t int32_t defined by inet code, we do the u_intXX types */
14826 #ifndef _INT8_T
14827 #define _INT8_T
14828 #endif
14829 #ifndef _INT16_T
14830 #define _INT16_T
14831 #endif
14832 #ifndef _INT32_T
14833 #define _INT32_T
14834 #endif
14836 #ifndef _UINT8_T
14837 #define _UINT8_T
14838 #ifndef __uint8_t_defined
14839 #define __uint8_t_defined
14840 #ifndef uint8_t
14841 typedef u_int8_t uint8_t;
14842 #endif
14843 #endif
14844 #endif
14846 #ifndef _UINT16_T
14847 #define _UINT16_T
14848 #ifndef __uint16_t_defined
14849 #define __uint16_t_defined
14850 #ifndef uint16_t
14851 typedef u_int16_t uint16_t;
14852 #endif
14853 #endif
14854 #endif
14856 #ifndef _UINT32_T
14857 #define _UINT32_T
14858 #ifndef __uint32_t_defined
14859 #define __uint32_t_defined
14860 #ifndef uint32_t
14861 typedef u_int32_t uint32_t;
14862 #endif
14863 #endif
14864 #endif
14866 else
14867 sed 's/^ *//' >> tmp-stdint.h <<EOF
14869 /* Some systems have guard macros to prevent redefinitions, define them. */
14870 #ifndef _INT8_T
14871 #define _INT8_T
14872 #endif
14873 #ifndef _INT16_T
14874 #define _INT16_T
14875 #endif
14876 #ifndef _INT32_T
14877 #define _INT32_T
14878 #endif
14879 #ifndef _UINT8_T
14880 #define _UINT8_T
14881 #endif
14882 #ifndef _UINT16_T
14883 #define _UINT16_T
14884 #endif
14885 #ifndef _UINT32_T
14886 #define _UINT32_T
14887 #endif
14891 # ------------- done basic int types, emit int64_t types ------------
14892 if test "$ac_cv_type_uint64_t" = yes; then
14893 sed 's/^ *//' >> tmp-stdint.h <<EOF
14895 /* system headers have good uint64_t and int64_t */
14896 #ifndef _INT64_T
14897 #define _INT64_T
14898 #endif
14899 #ifndef _UINT64_T
14900 #define _UINT64_T
14901 #endif
14903 elif test "$ac_cv_type_u_int64_t" = yes; then
14904 sed 's/^ *//' >> tmp-stdint.h <<EOF
14906 /* system headers have an u_int64_t (and int64_t) */
14907 #ifndef _INT64_T
14908 #define _INT64_T
14909 #endif
14910 #ifndef _UINT64_T
14911 #define _UINT64_T
14912 #ifndef __uint64_t_defined
14913 #define __uint64_t_defined
14914 #ifndef uint64_t
14915 typedef u_int64_t uint64_t;
14916 #endif
14917 #endif
14918 #endif
14920 elif test -n "$acx_cv_type_int64_t"; then
14921 sed 's/^ *//' >> tmp-stdint.h <<EOF
14923 /* architecture has a 64-bit type, $acx_cv_type_int64_t */
14924 #ifndef _INT64_T
14925 #define _INT64_T
14926 #ifndef int64_t
14927 typedef $acx_cv_type_int64_t int64_t;
14928 #endif
14929 #endif
14930 #ifndef _UINT64_T
14931 #define _UINT64_T
14932 #ifndef __uint64_t_defined
14933 #define __uint64_t_defined
14934 #ifndef uint64_t
14935 typedef unsigned $acx_cv_type_int64_t uint64_t;
14936 #endif
14937 #endif
14938 #endif
14940 else
14941 sed 's/^ *//' >> tmp-stdint.h <<EOF
14943 /* some common heuristics for int64_t, using compiler-specific tests */
14944 #if defined __STDC_VERSION__ && (__STDC_VERSION__-0) >= 199901L
14945 #ifndef _INT64_T
14946 #define _INT64_T
14947 #ifndef __int64_t_defined
14948 #ifndef int64_t
14949 typedef long long int64_t;
14950 #endif
14951 #endif
14952 #endif
14953 #ifndef _UINT64_T
14954 #define _UINT64_T
14955 #ifndef uint64_t
14956 typedef unsigned long long uint64_t;
14957 #endif
14958 #endif
14960 #elif defined __GNUC__ && defined (__STDC__) && __STDC__-0
14961 /* NextStep 2.0 cc is really gcc 1.93 but it defines __GNUC__ = 2 and
14962 does not implement __extension__. But that compiler doesn't define
14963 __GNUC_MINOR__. */
14964 # if __GNUC__ < 2 || (__NeXT__ && !__GNUC_MINOR__)
14965 # define __extension__
14966 # endif
14968 # ifndef _INT64_T
14969 # define _INT64_T
14970 # ifndef int64_t
14971 __extension__ typedef long long int64_t;
14972 # endif
14973 # endif
14974 # ifndef _UINT64_T
14975 # define _UINT64_T
14976 # ifndef uint64_t
14977 __extension__ typedef unsigned long long uint64_t;
14978 # endif
14979 # endif
14981 #elif !defined __STRICT_ANSI__
14982 # if defined _MSC_VER || defined __WATCOMC__ || defined __BORLANDC__
14984 # ifndef _INT64_T
14985 # define _INT64_T
14986 # ifndef int64_t
14987 typedef __int64 int64_t;
14988 # endif
14989 # endif
14990 # ifndef _UINT64_T
14991 # define _UINT64_T
14992 # ifndef uint64_t
14993 typedef unsigned __int64 uint64_t;
14994 # endif
14995 # endif
14996 # endif /* compiler */
14998 #endif /* ANSI version */
15002 # ------------- done int64_t types, emit intptr types ------------
15003 if test "$ac_cv_type_uintptr_t" != yes; then
15004 sed 's/^ *//' >> tmp-stdint.h <<EOF
15006 /* Define intptr_t based on sizeof(void*) = $ac_cv_sizeof_void_p */
15007 #ifndef __uintptr_t_defined
15008 #ifndef uintptr_t
15009 typedef u$acx_cv_type_intptr_t uintptr_t;
15010 #endif
15011 #endif
15012 #ifndef __intptr_t_defined
15013 #ifndef intptr_t
15014 typedef $acx_cv_type_intptr_t intptr_t;
15015 #endif
15016 #endif
15020 # ------------- done intptr types, emit int_least types ------------
15021 if test "$ac_cv_type_int_least32_t" != yes; then
15022 sed 's/^ *//' >> tmp-stdint.h <<EOF
15024 /* Define int_least types */
15025 typedef int8_t int_least8_t;
15026 typedef int16_t int_least16_t;
15027 typedef int32_t int_least32_t;
15028 #ifdef _INT64_T
15029 typedef int64_t int_least64_t;
15030 #endif
15032 typedef uint8_t uint_least8_t;
15033 typedef uint16_t uint_least16_t;
15034 typedef uint32_t uint_least32_t;
15035 #ifdef _UINT64_T
15036 typedef uint64_t uint_least64_t;
15037 #endif
15041 # ------------- done intptr types, emit int_fast types ------------
15042 if test "$ac_cv_type_int_fast32_t" != yes; then
15043 sed 's/^ *//' >> tmp-stdint.h <<EOF
15045 /* Define int_fast types. short is often slow */
15046 typedef int8_t int_fast8_t;
15047 typedef int int_fast16_t;
15048 typedef int32_t int_fast32_t;
15049 #ifdef _INT64_T
15050 typedef int64_t int_fast64_t;
15051 #endif
15053 typedef uint8_t uint_fast8_t;
15054 typedef unsigned int uint_fast16_t;
15055 typedef uint32_t uint_fast32_t;
15056 #ifdef _UINT64_T
15057 typedef uint64_t uint_fast64_t;
15058 #endif
15062 if test "$ac_cv_type_uintmax_t" != yes; then
15063 sed 's/^ *//' >> tmp-stdint.h <<EOF
15065 /* Define intmax based on what we found */
15066 #ifndef intmax_t
15067 #ifdef _INT64_T
15068 typedef int64_t intmax_t;
15069 #else
15070 typedef long intmax_t;
15071 #endif
15072 #endif
15073 #ifndef uintmax_t
15074 #ifdef _UINT64_T
15075 typedef uint64_t uintmax_t;
15076 #else
15077 typedef unsigned long uintmax_t;
15078 #endif
15079 #endif
15083 sed 's/^ *//' >> tmp-stdint.h <<EOF
15085 #endif /* GCC_GENERATED_STDINT_H */
15088 if test -r gstdint.h && cmp -s tmp-stdint.h gstdint.h; then
15089 rm -f tmp-stdint.h
15090 else
15091 mv -f tmp-stdint.h gstdint.h
15095 "default":C) if test -n "$CONFIG_FILES"; then
15096 if test -n "${with_target_subdir}"; then
15097 # Multilibs need MULTISUBDIR defined correctly in certain makefiles so
15098 # that multilib installs will end up installed in the correct place.
15099 # The testsuite needs it for multilib-aware ABI baseline files.
15100 # To work around this not being passed down from config-ml.in ->
15101 # srcdir/Makefile.am -> srcdir/{src,libsupc++,...}/Makefile.am, manually
15102 # append it here. Only modify Makefiles that have just been created.
15104 # Also, get rid of this simulated-VPATH thing that automake does.
15105 cat > vpsed << \_EOF
15106 s!`test -f '$<' || echo '$(srcdir)/'`!!
15107 _EOF
15108 for i in $SUBDIRS; do
15109 case $CONFIG_FILES in
15110 *${i}/Makefile*)
15111 #echo "Adding MULTISUBDIR to $i/Makefile"
15112 sed -f vpsed $i/Makefile > tmp
15113 grep '^MULTISUBDIR =' Makefile >> tmp
15114 mv tmp $i/Makefile
15116 esac
15117 done
15118 rm vpsed
15123 esac
15124 done # for ac_tag
15127 as_fn_exit 0
15128 _ACEOF
15129 ac_clean_files=$ac_clean_files_save
15131 test $ac_write_fail = 0 ||
15132 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
15135 # configure is writing to config.log, and then calls config.status.
15136 # config.status does its own redirection, appending to config.log.
15137 # Unfortunately, on DOS this fails, as config.log is still kept open
15138 # by configure, so config.status won't be able to write to it; its
15139 # output is simply discarded. So we exec the FD to /dev/null,
15140 # effectively closing config.log, so it can be properly (re)opened and
15141 # appended to by config.status. When coming back to configure, we
15142 # need to make the FD available again.
15143 if test "$no_create" != yes; then
15144 ac_cs_success=:
15145 ac_config_status_args=
15146 test "$silent" = yes &&
15147 ac_config_status_args="$ac_config_status_args --quiet"
15148 exec 5>/dev/null
15149 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
15150 exec 5>>config.log
15151 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
15152 # would make configure fail if this is the last instruction.
15153 $ac_cs_success || as_fn_exit $?
15155 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
15156 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
15157 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}