2017-07-20 Richard Biener <rguenther@suse.de>
[official-gcc.git] / libbacktrace / configure
blobe6420ea94daaf68abdbabaec452e6966b5b8b96e
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 HAVE_PTHREAD_FALSE
608 HAVE_PTHREAD_TRUE
609 PTHREAD_CFLAGS
610 BACKTRACE_USES_MALLOC
611 ALLOC_FILE
612 VIEW_FILE
613 BACKTRACE_SUPPORTS_DATA
614 BACKTRACE_SUPPORTED
615 FORMAT_FILE
616 BACKTRACE_SUPPORTS_THREADS
617 PIC_FLAG
618 WARN_FLAGS
619 EXTRA_FLAGS
620 BACKTRACE_FILE
621 OTOOL64
622 OTOOL
623 LIPO
624 NMEDIT
625 DSYMUTIL
627 OBJDUMP
628 LN_S
630 ac_ct_DUMPBIN
631 DUMPBIN
633 FGREP
635 LIBTOOL
636 RANLIB
637 MAINT
638 MAINTAINER_MODE_FALSE
639 MAINTAINER_MODE_TRUE
640 am__untar
641 am__tar
642 AMTAR
643 am__leading_dot
644 SET_MAKE
646 mkdir_p
647 MKDIR_P
648 INSTALL_STRIP_PROGRAM
649 STRIP
650 install_sh
651 MAKEINFO
652 AUTOHEADER
653 AUTOMAKE
654 AUTOCONF
655 ACLOCAL
656 VERSION
657 PACKAGE
658 CYGPATH_W
659 am__isrc
660 INSTALL_DATA
661 INSTALL_SCRIPT
662 INSTALL_PROGRAM
663 libtool_VERSION
664 EGREP
665 GREP
667 OBJEXT
668 EXEEXT
669 ac_ct_CC
670 CPPFLAGS
671 LDFLAGS
672 CFLAGS
674 target_os
675 target_vendor
676 target_cpu
677 target
678 host_os
679 host_vendor
680 host_cpu
681 host
682 build_os
683 build_vendor
684 build_cpu
685 build
686 multi_basedir
687 target_alias
688 host_alias
689 build_alias
690 LIBS
691 ECHO_T
692 ECHO_N
693 ECHO_C
694 DEFS
695 mandir
696 localedir
697 libdir
698 psdir
699 pdfdir
700 dvidir
701 htmldir
702 infodir
703 docdir
704 oldincludedir
705 includedir
706 localstatedir
707 sharedstatedir
708 sysconfdir
709 datadir
710 datarootdir
711 libexecdir
712 sbindir
713 bindir
714 program_transform_name
715 prefix
716 exec_prefix
717 PACKAGE_URL
718 PACKAGE_BUGREPORT
719 PACKAGE_STRING
720 PACKAGE_VERSION
721 PACKAGE_TARNAME
722 PACKAGE_NAME
723 PATH_SEPARATOR
724 SHELL'
725 ac_subst_files=''
726 ac_user_opts='
727 enable_option_checking
728 enable_multilib
729 enable_maintainer_mode
730 with_target_subdir
731 enable_shared
732 enable_static
733 with_pic
734 enable_fast_install
735 with_gnu_ld
736 enable_libtool_lock
737 enable_largefile
738 with_system_libunwind
739 enable_host_shared
741 ac_precious_vars='build_alias
742 host_alias
743 target_alias
745 CFLAGS
746 LDFLAGS
747 LIBS
748 CPPFLAGS
749 CPP'
752 # Initialize some variables set by options.
753 ac_init_help=
754 ac_init_version=false
755 ac_unrecognized_opts=
756 ac_unrecognized_sep=
757 # The variables have the same names as the options, with
758 # dashes changed to underlines.
759 cache_file=/dev/null
760 exec_prefix=NONE
761 no_create=
762 no_recursion=
763 prefix=NONE
764 program_prefix=NONE
765 program_suffix=NONE
766 program_transform_name=s,x,x,
767 silent=
768 site=
769 srcdir=
770 verbose=
771 x_includes=NONE
772 x_libraries=NONE
774 # Installation directory options.
775 # These are left unexpanded so users can "make install exec_prefix=/foo"
776 # and all the variables that are supposed to be based on exec_prefix
777 # by default will actually change.
778 # Use braces instead of parens because sh, perl, etc. also accept them.
779 # (The list follows the same order as the GNU Coding Standards.)
780 bindir='${exec_prefix}/bin'
781 sbindir='${exec_prefix}/sbin'
782 libexecdir='${exec_prefix}/libexec'
783 datarootdir='${prefix}/share'
784 datadir='${datarootdir}'
785 sysconfdir='${prefix}/etc'
786 sharedstatedir='${prefix}/com'
787 localstatedir='${prefix}/var'
788 includedir='${prefix}/include'
789 oldincludedir='/usr/include'
790 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
791 infodir='${datarootdir}/info'
792 htmldir='${docdir}'
793 dvidir='${docdir}'
794 pdfdir='${docdir}'
795 psdir='${docdir}'
796 libdir='${exec_prefix}/lib'
797 localedir='${datarootdir}/locale'
798 mandir='${datarootdir}/man'
800 ac_prev=
801 ac_dashdash=
802 for ac_option
804 # If the previous option needs an argument, assign it.
805 if test -n "$ac_prev"; then
806 eval $ac_prev=\$ac_option
807 ac_prev=
808 continue
811 case $ac_option in
812 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
813 *) ac_optarg=yes ;;
814 esac
816 # Accept the important Cygnus configure options, so we can diagnose typos.
818 case $ac_dashdash$ac_option in
820 ac_dashdash=yes ;;
822 -bindir | --bindir | --bindi | --bind | --bin | --bi)
823 ac_prev=bindir ;;
824 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
825 bindir=$ac_optarg ;;
827 -build | --build | --buil | --bui | --bu)
828 ac_prev=build_alias ;;
829 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
830 build_alias=$ac_optarg ;;
832 -cache-file | --cache-file | --cache-fil | --cache-fi \
833 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
834 ac_prev=cache_file ;;
835 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
836 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
837 cache_file=$ac_optarg ;;
839 --config-cache | -C)
840 cache_file=config.cache ;;
842 -datadir | --datadir | --datadi | --datad)
843 ac_prev=datadir ;;
844 -datadir=* | --datadir=* | --datadi=* | --datad=*)
845 datadir=$ac_optarg ;;
847 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
848 | --dataroo | --dataro | --datar)
849 ac_prev=datarootdir ;;
850 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
851 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
852 datarootdir=$ac_optarg ;;
854 -disable-* | --disable-*)
855 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
856 # Reject names that are not valid shell variable names.
857 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
858 as_fn_error "invalid feature name: $ac_useropt"
859 ac_useropt_orig=$ac_useropt
860 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
861 case $ac_user_opts in
863 "enable_$ac_useropt"
864 "*) ;;
865 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
866 ac_unrecognized_sep=', ';;
867 esac
868 eval enable_$ac_useropt=no ;;
870 -docdir | --docdir | --docdi | --doc | --do)
871 ac_prev=docdir ;;
872 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
873 docdir=$ac_optarg ;;
875 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
876 ac_prev=dvidir ;;
877 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
878 dvidir=$ac_optarg ;;
880 -enable-* | --enable-*)
881 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
882 # Reject names that are not valid shell variable names.
883 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
884 as_fn_error "invalid feature name: $ac_useropt"
885 ac_useropt_orig=$ac_useropt
886 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
887 case $ac_user_opts in
889 "enable_$ac_useropt"
890 "*) ;;
891 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
892 ac_unrecognized_sep=', ';;
893 esac
894 eval enable_$ac_useropt=\$ac_optarg ;;
896 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
897 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
898 | --exec | --exe | --ex)
899 ac_prev=exec_prefix ;;
900 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
901 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
902 | --exec=* | --exe=* | --ex=*)
903 exec_prefix=$ac_optarg ;;
905 -gas | --gas | --ga | --g)
906 # Obsolete; use --with-gas.
907 with_gas=yes ;;
909 -help | --help | --hel | --he | -h)
910 ac_init_help=long ;;
911 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
912 ac_init_help=recursive ;;
913 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
914 ac_init_help=short ;;
916 -host | --host | --hos | --ho)
917 ac_prev=host_alias ;;
918 -host=* | --host=* | --hos=* | --ho=*)
919 host_alias=$ac_optarg ;;
921 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
922 ac_prev=htmldir ;;
923 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
924 | --ht=*)
925 htmldir=$ac_optarg ;;
927 -includedir | --includedir | --includedi | --included | --include \
928 | --includ | --inclu | --incl | --inc)
929 ac_prev=includedir ;;
930 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
931 | --includ=* | --inclu=* | --incl=* | --inc=*)
932 includedir=$ac_optarg ;;
934 -infodir | --infodir | --infodi | --infod | --info | --inf)
935 ac_prev=infodir ;;
936 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
937 infodir=$ac_optarg ;;
939 -libdir | --libdir | --libdi | --libd)
940 ac_prev=libdir ;;
941 -libdir=* | --libdir=* | --libdi=* | --libd=*)
942 libdir=$ac_optarg ;;
944 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
945 | --libexe | --libex | --libe)
946 ac_prev=libexecdir ;;
947 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
948 | --libexe=* | --libex=* | --libe=*)
949 libexecdir=$ac_optarg ;;
951 -localedir | --localedir | --localedi | --localed | --locale)
952 ac_prev=localedir ;;
953 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
954 localedir=$ac_optarg ;;
956 -localstatedir | --localstatedir | --localstatedi | --localstated \
957 | --localstate | --localstat | --localsta | --localst | --locals)
958 ac_prev=localstatedir ;;
959 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
960 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
961 localstatedir=$ac_optarg ;;
963 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
964 ac_prev=mandir ;;
965 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
966 mandir=$ac_optarg ;;
968 -nfp | --nfp | --nf)
969 # Obsolete; use --without-fp.
970 with_fp=no ;;
972 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
973 | --no-cr | --no-c | -n)
974 no_create=yes ;;
976 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
977 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
978 no_recursion=yes ;;
980 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
981 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
982 | --oldin | --oldi | --old | --ol | --o)
983 ac_prev=oldincludedir ;;
984 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
985 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
986 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
987 oldincludedir=$ac_optarg ;;
989 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
990 ac_prev=prefix ;;
991 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
992 prefix=$ac_optarg ;;
994 -program-prefix | --program-prefix | --program-prefi | --program-pref \
995 | --program-pre | --program-pr | --program-p)
996 ac_prev=program_prefix ;;
997 -program-prefix=* | --program-prefix=* | --program-prefi=* \
998 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
999 program_prefix=$ac_optarg ;;
1001 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1002 | --program-suf | --program-su | --program-s)
1003 ac_prev=program_suffix ;;
1004 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1005 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1006 program_suffix=$ac_optarg ;;
1008 -program-transform-name | --program-transform-name \
1009 | --program-transform-nam | --program-transform-na \
1010 | --program-transform-n | --program-transform- \
1011 | --program-transform | --program-transfor \
1012 | --program-transfo | --program-transf \
1013 | --program-trans | --program-tran \
1014 | --progr-tra | --program-tr | --program-t)
1015 ac_prev=program_transform_name ;;
1016 -program-transform-name=* | --program-transform-name=* \
1017 | --program-transform-nam=* | --program-transform-na=* \
1018 | --program-transform-n=* | --program-transform-=* \
1019 | --program-transform=* | --program-transfor=* \
1020 | --program-transfo=* | --program-transf=* \
1021 | --program-trans=* | --program-tran=* \
1022 | --progr-tra=* | --program-tr=* | --program-t=*)
1023 program_transform_name=$ac_optarg ;;
1025 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1026 ac_prev=pdfdir ;;
1027 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1028 pdfdir=$ac_optarg ;;
1030 -psdir | --psdir | --psdi | --psd | --ps)
1031 ac_prev=psdir ;;
1032 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1033 psdir=$ac_optarg ;;
1035 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1036 | -silent | --silent | --silen | --sile | --sil)
1037 silent=yes ;;
1039 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1040 ac_prev=sbindir ;;
1041 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1042 | --sbi=* | --sb=*)
1043 sbindir=$ac_optarg ;;
1045 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1046 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1047 | --sharedst | --shareds | --shared | --share | --shar \
1048 | --sha | --sh)
1049 ac_prev=sharedstatedir ;;
1050 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1051 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1052 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1053 | --sha=* | --sh=*)
1054 sharedstatedir=$ac_optarg ;;
1056 -site | --site | --sit)
1057 ac_prev=site ;;
1058 -site=* | --site=* | --sit=*)
1059 site=$ac_optarg ;;
1061 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1062 ac_prev=srcdir ;;
1063 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1064 srcdir=$ac_optarg ;;
1066 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1067 | --syscon | --sysco | --sysc | --sys | --sy)
1068 ac_prev=sysconfdir ;;
1069 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1070 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1071 sysconfdir=$ac_optarg ;;
1073 -target | --target | --targe | --targ | --tar | --ta | --t)
1074 ac_prev=target_alias ;;
1075 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1076 target_alias=$ac_optarg ;;
1078 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1079 verbose=yes ;;
1081 -version | --version | --versio | --versi | --vers | -V)
1082 ac_init_version=: ;;
1084 -with-* | --with-*)
1085 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1086 # Reject names that are not valid shell variable names.
1087 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1088 as_fn_error "invalid package name: $ac_useropt"
1089 ac_useropt_orig=$ac_useropt
1090 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1091 case $ac_user_opts in
1093 "with_$ac_useropt"
1094 "*) ;;
1095 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1096 ac_unrecognized_sep=', ';;
1097 esac
1098 eval with_$ac_useropt=\$ac_optarg ;;
1100 -without-* | --without-*)
1101 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1102 # Reject names that are not valid shell variable names.
1103 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1104 as_fn_error "invalid package name: $ac_useropt"
1105 ac_useropt_orig=$ac_useropt
1106 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1107 case $ac_user_opts in
1109 "with_$ac_useropt"
1110 "*) ;;
1111 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1112 ac_unrecognized_sep=', ';;
1113 esac
1114 eval with_$ac_useropt=no ;;
1116 --x)
1117 # Obsolete; use --with-x.
1118 with_x=yes ;;
1120 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1121 | --x-incl | --x-inc | --x-in | --x-i)
1122 ac_prev=x_includes ;;
1123 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1124 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1125 x_includes=$ac_optarg ;;
1127 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1128 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1129 ac_prev=x_libraries ;;
1130 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1131 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1132 x_libraries=$ac_optarg ;;
1134 -*) as_fn_error "unrecognized option: \`$ac_option'
1135 Try \`$0 --help' for more information."
1138 *=*)
1139 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1140 # Reject names that are not valid shell variable names.
1141 case $ac_envvar in #(
1142 '' | [0-9]* | *[!_$as_cr_alnum]* )
1143 as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1144 esac
1145 eval $ac_envvar=\$ac_optarg
1146 export $ac_envvar ;;
1149 # FIXME: should be removed in autoconf 3.0.
1150 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1151 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1152 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1153 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1156 esac
1157 done
1159 if test -n "$ac_prev"; then
1160 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1161 as_fn_error "missing argument to $ac_option"
1164 if test -n "$ac_unrecognized_opts"; then
1165 case $enable_option_checking in
1166 no) ;;
1167 fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1168 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1169 esac
1172 # Check all directory arguments for consistency.
1173 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1174 datadir sysconfdir sharedstatedir localstatedir includedir \
1175 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1176 libdir localedir mandir
1178 eval ac_val=\$$ac_var
1179 # Remove trailing slashes.
1180 case $ac_val in
1181 */ )
1182 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1183 eval $ac_var=\$ac_val;;
1184 esac
1185 # Be sure to have absolute directory names.
1186 case $ac_val in
1187 [\\/$]* | ?:[\\/]* ) continue;;
1188 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1189 esac
1190 as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1191 done
1193 # There might be people who depend on the old broken behavior: `$host'
1194 # used to hold the argument of --host etc.
1195 # FIXME: To remove some day.
1196 build=$build_alias
1197 host=$host_alias
1198 target=$target_alias
1200 # FIXME: To remove some day.
1201 if test "x$host_alias" != x; then
1202 if test "x$build_alias" = x; then
1203 cross_compiling=maybe
1204 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1205 If a cross compiler is detected then cross compile mode will be used." >&2
1206 elif test "x$build_alias" != "x$host_alias"; then
1207 cross_compiling=yes
1211 ac_tool_prefix=
1212 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1214 test "$silent" = yes && exec 6>/dev/null
1217 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1218 ac_ls_di=`ls -di .` &&
1219 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1220 as_fn_error "working directory cannot be determined"
1221 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1222 as_fn_error "pwd does not report name of working directory"
1225 # Find the source files, if location was not specified.
1226 if test -z "$srcdir"; then
1227 ac_srcdir_defaulted=yes
1228 # Try the directory containing this script, then the parent directory.
1229 ac_confdir=`$as_dirname -- "$as_myself" ||
1230 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1231 X"$as_myself" : 'X\(//\)[^/]' \| \
1232 X"$as_myself" : 'X\(//\)$' \| \
1233 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1234 $as_echo X"$as_myself" |
1235 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1236 s//\1/
1239 /^X\(\/\/\)[^/].*/{
1240 s//\1/
1243 /^X\(\/\/\)$/{
1244 s//\1/
1247 /^X\(\/\).*/{
1248 s//\1/
1251 s/.*/./; q'`
1252 srcdir=$ac_confdir
1253 if test ! -r "$srcdir/$ac_unique_file"; then
1254 srcdir=..
1256 else
1257 ac_srcdir_defaulted=no
1259 if test ! -r "$srcdir/$ac_unique_file"; then
1260 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1261 as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1263 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1264 ac_abs_confdir=`(
1265 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1266 pwd)`
1267 # When building in place, set srcdir=.
1268 if test "$ac_abs_confdir" = "$ac_pwd"; then
1269 srcdir=.
1271 # Remove unnecessary trailing slashes from srcdir.
1272 # Double slashes in file names in object file debugging info
1273 # mess up M-x gdb in Emacs.
1274 case $srcdir in
1275 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1276 esac
1277 for ac_var in $ac_precious_vars; do
1278 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1279 eval ac_env_${ac_var}_value=\$${ac_var}
1280 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1281 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1282 done
1285 # Report the --help message.
1287 if test "$ac_init_help" = "long"; then
1288 # Omit some internal or obsolete options to make the list less imposing.
1289 # This message is too long to be a string in the A/UX 3.1 sh.
1290 cat <<_ACEOF
1291 \`configure' configures package-unused version-unused to adapt to many kinds of systems.
1293 Usage: $0 [OPTION]... [VAR=VALUE]...
1295 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1296 VAR=VALUE. See below for descriptions of some of the useful variables.
1298 Defaults for the options are specified in brackets.
1300 Configuration:
1301 -h, --help display this help and exit
1302 --help=short display options specific to this package
1303 --help=recursive display the short help of all the included packages
1304 -V, --version display version information and exit
1305 -q, --quiet, --silent do not print \`checking...' messages
1306 --cache-file=FILE cache test results in FILE [disabled]
1307 -C, --config-cache alias for \`--cache-file=config.cache'
1308 -n, --no-create do not create output files
1309 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1311 Installation directories:
1312 --prefix=PREFIX install architecture-independent files in PREFIX
1313 [$ac_default_prefix]
1314 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1315 [PREFIX]
1317 By default, \`make install' will install all the files in
1318 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1319 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1320 for instance \`--prefix=\$HOME'.
1322 For better control, use the options below.
1324 Fine tuning of the installation directories:
1325 --bindir=DIR user executables [EPREFIX/bin]
1326 --sbindir=DIR system admin executables [EPREFIX/sbin]
1327 --libexecdir=DIR program executables [EPREFIX/libexec]
1328 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1329 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1330 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1331 --libdir=DIR object code libraries [EPREFIX/lib]
1332 --includedir=DIR C header files [PREFIX/include]
1333 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1334 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1335 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1336 --infodir=DIR info documentation [DATAROOTDIR/info]
1337 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1338 --mandir=DIR man documentation [DATAROOTDIR/man]
1339 --docdir=DIR documentation root [DATAROOTDIR/doc/libbacktrace]
1340 --htmldir=DIR html documentation [DOCDIR]
1341 --dvidir=DIR dvi documentation [DOCDIR]
1342 --pdfdir=DIR pdf documentation [DOCDIR]
1343 --psdir=DIR ps documentation [DOCDIR]
1344 _ACEOF
1346 cat <<\_ACEOF
1348 Program names:
1349 --program-prefix=PREFIX prepend PREFIX to installed program names
1350 --program-suffix=SUFFIX append SUFFIX to installed program names
1351 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1353 System types:
1354 --build=BUILD configure for building on BUILD [guessed]
1355 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1356 --target=TARGET configure for building compilers for TARGET [HOST]
1357 _ACEOF
1360 if test -n "$ac_init_help"; then
1361 case $ac_init_help in
1362 short | recursive ) echo "Configuration of package-unused version-unused:";;
1363 esac
1364 cat <<\_ACEOF
1366 Optional Features:
1367 --disable-option-checking ignore unrecognized --enable/--with options
1368 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1369 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1370 --enable-multilib build many library versions (default)
1371 --enable-maintainer-mode enable make rules and dependencies not useful
1372 (and sometimes confusing) to the casual installer
1373 --enable-shared[=PKGS] build shared libraries [default=yes]
1374 --enable-static[=PKGS] build static libraries [default=yes]
1375 --enable-fast-install[=PKGS]
1376 optimize for fast installation [default=yes]
1377 --disable-libtool-lock avoid locking (might break parallel builds)
1378 --disable-largefile omit support for large files
1379 --enable-host-shared build host code as shared libraries
1381 Optional Packages:
1382 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1383 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1384 --with-target-subdir=SUBDIR Configuring in a subdirectory for target
1385 --with-pic try to use only PIC/non-PIC objects [default=use
1386 both]
1387 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1388 --with-system-libunwind use installed libunwind
1390 Some influential environment variables:
1391 CC C compiler command
1392 CFLAGS C compiler flags
1393 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1394 nonstandard directory <lib dir>
1395 LIBS libraries to pass to the linker, e.g. -l<library>
1396 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1397 you have headers in a nonstandard directory <include dir>
1398 CPP C preprocessor
1400 Use these variables to override the choices made by `configure' or to help
1401 it to find libraries and programs with nonstandard names/locations.
1403 Report bugs to the package provider.
1404 _ACEOF
1405 ac_status=$?
1408 if test "$ac_init_help" = "recursive"; then
1409 # If there are subdirs, report their specific --help.
1410 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1411 test -d "$ac_dir" ||
1412 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1413 continue
1414 ac_builddir=.
1416 case "$ac_dir" in
1417 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1419 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1420 # A ".." for each directory in $ac_dir_suffix.
1421 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1422 case $ac_top_builddir_sub in
1423 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1424 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1425 esac ;;
1426 esac
1427 ac_abs_top_builddir=$ac_pwd
1428 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1429 # for backward compatibility:
1430 ac_top_builddir=$ac_top_build_prefix
1432 case $srcdir in
1433 .) # We are building in place.
1434 ac_srcdir=.
1435 ac_top_srcdir=$ac_top_builddir_sub
1436 ac_abs_top_srcdir=$ac_pwd ;;
1437 [\\/]* | ?:[\\/]* ) # Absolute name.
1438 ac_srcdir=$srcdir$ac_dir_suffix;
1439 ac_top_srcdir=$srcdir
1440 ac_abs_top_srcdir=$srcdir ;;
1441 *) # Relative name.
1442 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1443 ac_top_srcdir=$ac_top_build_prefix$srcdir
1444 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1445 esac
1446 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1448 cd "$ac_dir" || { ac_status=$?; continue; }
1449 # Check for guested configure.
1450 if test -f "$ac_srcdir/configure.gnu"; then
1451 echo &&
1452 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1453 elif test -f "$ac_srcdir/configure"; then
1454 echo &&
1455 $SHELL "$ac_srcdir/configure" --help=recursive
1456 else
1457 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1458 fi || ac_status=$?
1459 cd "$ac_pwd" || { ac_status=$?; break; }
1460 done
1463 test -n "$ac_init_help" && exit $ac_status
1464 if $ac_init_version; then
1465 cat <<\_ACEOF
1466 package-unused configure version-unused
1467 generated by GNU Autoconf 2.64
1469 Copyright (C) 2009 Free Software Foundation, Inc.
1470 This configure script is free software; the Free Software Foundation
1471 gives unlimited permission to copy, distribute and modify it.
1472 _ACEOF
1473 exit
1476 ## ------------------------ ##
1477 ## Autoconf initialization. ##
1478 ## ------------------------ ##
1480 # ac_fn_c_try_compile LINENO
1481 # --------------------------
1482 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1483 ac_fn_c_try_compile ()
1485 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1486 rm -f conftest.$ac_objext
1487 if { { ac_try="$ac_compile"
1488 case "(($ac_try" in
1489 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1490 *) ac_try_echo=$ac_try;;
1491 esac
1492 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1493 $as_echo "$ac_try_echo"; } >&5
1494 (eval "$ac_compile") 2>conftest.err
1495 ac_status=$?
1496 if test -s conftest.err; then
1497 grep -v '^ *+' conftest.err >conftest.er1
1498 cat conftest.er1 >&5
1499 mv -f conftest.er1 conftest.err
1501 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1502 test $ac_status = 0; } && {
1503 test -z "$ac_c_werror_flag" ||
1504 test ! -s conftest.err
1505 } && test -s conftest.$ac_objext; then :
1506 ac_retval=0
1507 else
1508 $as_echo "$as_me: failed program was:" >&5
1509 sed 's/^/| /' conftest.$ac_ext >&5
1511 ac_retval=1
1513 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1514 return $ac_retval
1516 } # ac_fn_c_try_compile
1518 # ac_fn_c_try_cpp LINENO
1519 # ----------------------
1520 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1521 ac_fn_c_try_cpp ()
1523 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1524 if { { ac_try="$ac_cpp conftest.$ac_ext"
1525 case "(($ac_try" in
1526 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1527 *) ac_try_echo=$ac_try;;
1528 esac
1529 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1530 $as_echo "$ac_try_echo"; } >&5
1531 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1532 ac_status=$?
1533 if test -s conftest.err; then
1534 grep -v '^ *+' conftest.err >conftest.er1
1535 cat conftest.er1 >&5
1536 mv -f conftest.er1 conftest.err
1538 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1539 test $ac_status = 0; } >/dev/null && {
1540 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1541 test ! -s conftest.err
1542 }; then :
1543 ac_retval=0
1544 else
1545 $as_echo "$as_me: failed program was:" >&5
1546 sed 's/^/| /' conftest.$ac_ext >&5
1548 ac_retval=1
1550 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1551 return $ac_retval
1553 } # ac_fn_c_try_cpp
1555 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1556 # -------------------------------------------------------
1557 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1558 # the include files in INCLUDES and setting the cache variable VAR
1559 # accordingly.
1560 ac_fn_c_check_header_mongrel ()
1562 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1563 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1564 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1565 $as_echo_n "checking for $2... " >&6; }
1566 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1567 $as_echo_n "(cached) " >&6
1569 eval ac_res=\$$3
1570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1571 $as_echo "$ac_res" >&6; }
1572 else
1573 # Is the header compilable?
1574 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1575 $as_echo_n "checking $2 usability... " >&6; }
1576 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1577 /* end confdefs.h. */
1579 #include <$2>
1580 _ACEOF
1581 if ac_fn_c_try_compile "$LINENO"; then :
1582 ac_header_compiler=yes
1583 else
1584 ac_header_compiler=no
1586 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1588 $as_echo "$ac_header_compiler" >&6; }
1590 # Is the header present?
1591 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1592 $as_echo_n "checking $2 presence... " >&6; }
1593 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1594 /* end confdefs.h. */
1595 #include <$2>
1596 _ACEOF
1597 if ac_fn_c_try_cpp "$LINENO"; then :
1598 ac_header_preproc=yes
1599 else
1600 ac_header_preproc=no
1602 rm -f conftest.err conftest.$ac_ext
1603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1604 $as_echo "$ac_header_preproc" >&6; }
1606 # So? What about this header?
1607 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1608 yes:no: )
1609 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1610 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1611 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1612 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1614 no:yes:* )
1615 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1616 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1617 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1618 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1619 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1620 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1621 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1622 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1623 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1624 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1626 esac
1627 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1628 $as_echo_n "checking for $2... " >&6; }
1629 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1630 $as_echo_n "(cached) " >&6
1631 else
1632 eval "$3=\$ac_header_compiler"
1634 eval ac_res=\$$3
1635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1636 $as_echo "$ac_res" >&6; }
1638 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1640 } # ac_fn_c_check_header_mongrel
1642 # ac_fn_c_try_run LINENO
1643 # ----------------------
1644 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1645 # that executables *can* be run.
1646 ac_fn_c_try_run ()
1648 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1649 if { { ac_try="$ac_link"
1650 case "(($ac_try" in
1651 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1652 *) ac_try_echo=$ac_try;;
1653 esac
1654 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1655 $as_echo "$ac_try_echo"; } >&5
1656 (eval "$ac_link") 2>&5
1657 ac_status=$?
1658 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1659 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1660 { { case "(($ac_try" in
1661 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1662 *) ac_try_echo=$ac_try;;
1663 esac
1664 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1665 $as_echo "$ac_try_echo"; } >&5
1666 (eval "$ac_try") 2>&5
1667 ac_status=$?
1668 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1669 test $ac_status = 0; }; }; then :
1670 ac_retval=0
1671 else
1672 $as_echo "$as_me: program exited with status $ac_status" >&5
1673 $as_echo "$as_me: failed program was:" >&5
1674 sed 's/^/| /' conftest.$ac_ext >&5
1676 ac_retval=$ac_status
1678 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1679 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1680 return $ac_retval
1682 } # ac_fn_c_try_run
1684 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1685 # -------------------------------------------------------
1686 # Tests whether HEADER exists and can be compiled using the include files in
1687 # INCLUDES, setting the cache variable VAR accordingly.
1688 ac_fn_c_check_header_compile ()
1690 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1691 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1692 $as_echo_n "checking for $2... " >&6; }
1693 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1694 $as_echo_n "(cached) " >&6
1695 else
1696 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1697 /* end confdefs.h. */
1699 #include <$2>
1700 _ACEOF
1701 if ac_fn_c_try_compile "$LINENO"; then :
1702 eval "$3=yes"
1703 else
1704 eval "$3=no"
1706 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1708 eval ac_res=\$$3
1709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1710 $as_echo "$ac_res" >&6; }
1711 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1713 } # ac_fn_c_check_header_compile
1715 # ac_fn_c_try_link LINENO
1716 # -----------------------
1717 # Try to link conftest.$ac_ext, and return whether this succeeded.
1718 ac_fn_c_try_link ()
1720 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1721 rm -f conftest.$ac_objext conftest$ac_exeext
1722 if { { ac_try="$ac_link"
1723 case "(($ac_try" in
1724 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1725 *) ac_try_echo=$ac_try;;
1726 esac
1727 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1728 $as_echo "$ac_try_echo"; } >&5
1729 (eval "$ac_link") 2>conftest.err
1730 ac_status=$?
1731 if test -s conftest.err; then
1732 grep -v '^ *+' conftest.err >conftest.er1
1733 cat conftest.er1 >&5
1734 mv -f conftest.er1 conftest.err
1736 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1737 test $ac_status = 0; } && {
1738 test -z "$ac_c_werror_flag" ||
1739 test ! -s conftest.err
1740 } && test -s conftest$ac_exeext && {
1741 test "$cross_compiling" = yes ||
1742 $as_test_x conftest$ac_exeext
1743 }; then :
1744 ac_retval=0
1745 else
1746 $as_echo "$as_me: failed program was:" >&5
1747 sed 's/^/| /' conftest.$ac_ext >&5
1749 ac_retval=1
1751 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1752 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1753 # interfere with the next link command; also delete a directory that is
1754 # left behind by Apple's compiler. We do this before executing the actions.
1755 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1756 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1757 return $ac_retval
1759 } # ac_fn_c_try_link
1761 # ac_fn_c_check_func LINENO FUNC VAR
1762 # ----------------------------------
1763 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1764 ac_fn_c_check_func ()
1766 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1767 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1768 $as_echo_n "checking for $2... " >&6; }
1769 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1770 $as_echo_n "(cached) " >&6
1771 else
1772 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1773 /* end confdefs.h. */
1774 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1775 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1776 #define $2 innocuous_$2
1778 /* System header to define __stub macros and hopefully few prototypes,
1779 which can conflict with char $2 (); below.
1780 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1781 <limits.h> exists even on freestanding compilers. */
1783 #ifdef __STDC__
1784 # include <limits.h>
1785 #else
1786 # include <assert.h>
1787 #endif
1789 #undef $2
1791 /* Override any GCC internal prototype to avoid an error.
1792 Use char because int might match the return type of a GCC
1793 builtin and then its argument prototype would still apply. */
1794 #ifdef __cplusplus
1795 extern "C"
1796 #endif
1797 char $2 ();
1798 /* The GNU C library defines this for functions which it implements
1799 to always fail with ENOSYS. Some functions are actually named
1800 something starting with __ and the normal name is an alias. */
1801 #if defined __stub_$2 || defined __stub___$2
1802 choke me
1803 #endif
1806 main ()
1808 return $2 ();
1810 return 0;
1812 _ACEOF
1813 if ac_fn_c_try_link "$LINENO"; then :
1814 eval "$3=yes"
1815 else
1816 eval "$3=no"
1818 rm -f core conftest.err conftest.$ac_objext \
1819 conftest$ac_exeext conftest.$ac_ext
1821 eval ac_res=\$$3
1822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1823 $as_echo "$ac_res" >&6; }
1824 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1826 } # ac_fn_c_check_func
1828 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1829 # -------------------------------------------
1830 # Tests whether TYPE exists after having included INCLUDES, setting cache
1831 # variable VAR accordingly.
1832 ac_fn_c_check_type ()
1834 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1835 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1836 $as_echo_n "checking for $2... " >&6; }
1837 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1838 $as_echo_n "(cached) " >&6
1839 else
1840 eval "$3=no"
1841 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1842 /* end confdefs.h. */
1845 main ()
1847 if (sizeof ($2))
1848 return 0;
1850 return 0;
1852 _ACEOF
1853 if ac_fn_c_try_compile "$LINENO"; then :
1854 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1855 /* end confdefs.h. */
1858 main ()
1860 if (sizeof (($2)))
1861 return 0;
1863 return 0;
1865 _ACEOF
1866 if ac_fn_c_try_compile "$LINENO"; then :
1868 else
1869 eval "$3=yes"
1871 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1873 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1875 eval ac_res=\$$3
1876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1877 $as_echo "$ac_res" >&6; }
1878 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1880 } # ac_fn_c_check_type
1882 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
1883 # --------------------------------------------
1884 # Tries to find the compile-time value of EXPR in a program that includes
1885 # INCLUDES, setting VAR accordingly. Returns whether the value could be
1886 # computed
1887 ac_fn_c_compute_int ()
1889 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1890 if test "$cross_compiling" = yes; then
1891 # Depending upon the size, compute the lo and hi bounds.
1892 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1893 /* end confdefs.h. */
1896 main ()
1898 static int test_array [1 - 2 * !(($2) >= 0)];
1899 test_array [0] = 0
1902 return 0;
1904 _ACEOF
1905 if ac_fn_c_try_compile "$LINENO"; then :
1906 ac_lo=0 ac_mid=0
1907 while :; do
1908 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1909 /* end confdefs.h. */
1912 main ()
1914 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
1915 test_array [0] = 0
1918 return 0;
1920 _ACEOF
1921 if ac_fn_c_try_compile "$LINENO"; then :
1922 ac_hi=$ac_mid; break
1923 else
1924 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
1925 if test $ac_lo -le $ac_mid; then
1926 ac_lo= ac_hi=
1927 break
1929 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
1931 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1932 done
1933 else
1934 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1935 /* end confdefs.h. */
1938 main ()
1940 static int test_array [1 - 2 * !(($2) < 0)];
1941 test_array [0] = 0
1944 return 0;
1946 _ACEOF
1947 if ac_fn_c_try_compile "$LINENO"; then :
1948 ac_hi=-1 ac_mid=-1
1949 while :; do
1950 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1951 /* end confdefs.h. */
1954 main ()
1956 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
1957 test_array [0] = 0
1960 return 0;
1962 _ACEOF
1963 if ac_fn_c_try_compile "$LINENO"; then :
1964 ac_lo=$ac_mid; break
1965 else
1966 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
1967 if test $ac_mid -le $ac_hi; then
1968 ac_lo= ac_hi=
1969 break
1971 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
1973 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1974 done
1975 else
1976 ac_lo= ac_hi=
1978 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1980 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1981 # Binary search between lo and hi bounds.
1982 while test "x$ac_lo" != "x$ac_hi"; do
1983 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
1984 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1985 /* end confdefs.h. */
1988 main ()
1990 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
1991 test_array [0] = 0
1994 return 0;
1996 _ACEOF
1997 if ac_fn_c_try_compile "$LINENO"; then :
1998 ac_hi=$ac_mid
1999 else
2000 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2002 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2003 done
2004 case $ac_lo in #((
2005 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2006 '') ac_retval=1 ;;
2007 esac
2008 else
2009 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2010 /* end confdefs.h. */
2012 static long int longval () { return $2; }
2013 static unsigned long int ulongval () { return $2; }
2014 #include <stdio.h>
2015 #include <stdlib.h>
2017 main ()
2020 FILE *f = fopen ("conftest.val", "w");
2021 if (! f)
2022 return 1;
2023 if (($2) < 0)
2025 long int i = longval ();
2026 if (i != ($2))
2027 return 1;
2028 fprintf (f, "%ld", i);
2030 else
2032 unsigned long int i = ulongval ();
2033 if (i != ($2))
2034 return 1;
2035 fprintf (f, "%lu", i);
2037 /* Do not output a trailing newline, as this causes \r\n confusion
2038 on some platforms. */
2039 return ferror (f) || fclose (f) != 0;
2042 return 0;
2044 _ACEOF
2045 if ac_fn_c_try_run "$LINENO"; then :
2046 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2047 else
2048 ac_retval=1
2050 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2051 conftest.$ac_objext conftest.beam conftest.$ac_ext
2052 rm -f conftest.val
2055 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2056 return $ac_retval
2058 } # ac_fn_c_compute_int
2060 # ac_fn_c_check_decl LINENO SYMBOL VAR
2061 # ------------------------------------
2062 # Tests whether SYMBOL is declared, setting cache variable VAR accordingly.
2063 ac_fn_c_check_decl ()
2065 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2066 as_decl_name=`echo $2|sed 's/ *(.*//'`
2067 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2068 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2069 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2070 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2071 $as_echo_n "(cached) " >&6
2072 else
2073 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2074 /* end confdefs.h. */
2077 main ()
2079 #ifndef $as_decl_name
2080 #ifdef __cplusplus
2081 (void) $as_decl_use;
2082 #else
2083 (void) $as_decl_name;
2084 #endif
2085 #endif
2088 return 0;
2090 _ACEOF
2091 if ac_fn_c_try_compile "$LINENO"; then :
2092 eval "$3=yes"
2093 else
2094 eval "$3=no"
2096 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2098 eval ac_res=\$$3
2099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2100 $as_echo "$ac_res" >&6; }
2101 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2103 } # ac_fn_c_check_decl
2104 cat >config.log <<_ACEOF
2105 This file contains any messages produced by compilers while
2106 running configure, to aid debugging if configure makes a mistake.
2108 It was created by package-unused $as_me version-unused, which was
2109 generated by GNU Autoconf 2.64. Invocation command line was
2111 $ $0 $@
2113 _ACEOF
2114 exec 5>>config.log
2116 cat <<_ASUNAME
2117 ## --------- ##
2118 ## Platform. ##
2119 ## --------- ##
2121 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2122 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2123 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2124 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2125 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2127 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2128 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2130 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2131 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2132 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2133 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2134 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2135 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2136 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2138 _ASUNAME
2140 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2141 for as_dir in $PATH
2143 IFS=$as_save_IFS
2144 test -z "$as_dir" && as_dir=.
2145 $as_echo "PATH: $as_dir"
2146 done
2147 IFS=$as_save_IFS
2149 } >&5
2151 cat >&5 <<_ACEOF
2154 ## ----------- ##
2155 ## Core tests. ##
2156 ## ----------- ##
2158 _ACEOF
2161 # Keep a trace of the command line.
2162 # Strip out --no-create and --no-recursion so they do not pile up.
2163 # Strip out --silent because we don't want to record it for future runs.
2164 # Also quote any args containing shell meta-characters.
2165 # Make two passes to allow for proper duplicate-argument suppression.
2166 ac_configure_args=
2167 ac_configure_args0=
2168 ac_configure_args1=
2169 ac_must_keep_next=false
2170 for ac_pass in 1 2
2172 for ac_arg
2174 case $ac_arg in
2175 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2176 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2177 | -silent | --silent | --silen | --sile | --sil)
2178 continue ;;
2179 *\'*)
2180 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2181 esac
2182 case $ac_pass in
2183 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2185 as_fn_append ac_configure_args1 " '$ac_arg'"
2186 if test $ac_must_keep_next = true; then
2187 ac_must_keep_next=false # Got value, back to normal.
2188 else
2189 case $ac_arg in
2190 *=* | --config-cache | -C | -disable-* | --disable-* \
2191 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2192 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2193 | -with-* | --with-* | -without-* | --without-* | --x)
2194 case "$ac_configure_args0 " in
2195 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2196 esac
2198 -* ) ac_must_keep_next=true ;;
2199 esac
2201 as_fn_append ac_configure_args " '$ac_arg'"
2203 esac
2204 done
2205 done
2206 { ac_configure_args0=; unset ac_configure_args0;}
2207 { ac_configure_args1=; unset ac_configure_args1;}
2209 # When interrupted or exit'd, cleanup temporary files, and complete
2210 # config.log. We remove comments because anyway the quotes in there
2211 # would cause problems or look ugly.
2212 # WARNING: Use '\'' to represent an apostrophe within the trap.
2213 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2214 trap 'exit_status=$?
2215 # Save into config.log some information that might help in debugging.
2217 echo
2219 cat <<\_ASBOX
2220 ## ---------------- ##
2221 ## Cache variables. ##
2222 ## ---------------- ##
2223 _ASBOX
2224 echo
2225 # The following way of writing the cache mishandles newlines in values,
2227 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2228 eval ac_val=\$$ac_var
2229 case $ac_val in #(
2230 *${as_nl}*)
2231 case $ac_var in #(
2232 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2233 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2234 esac
2235 case $ac_var in #(
2236 _ | IFS | as_nl) ;; #(
2237 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2238 *) { eval $ac_var=; unset $ac_var;} ;;
2239 esac ;;
2240 esac
2241 done
2242 (set) 2>&1 |
2243 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2244 *${as_nl}ac_space=\ *)
2245 sed -n \
2246 "s/'\''/'\''\\\\'\'''\''/g;
2247 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2248 ;; #(
2250 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2252 esac |
2253 sort
2255 echo
2257 cat <<\_ASBOX
2258 ## ----------------- ##
2259 ## Output variables. ##
2260 ## ----------------- ##
2261 _ASBOX
2262 echo
2263 for ac_var in $ac_subst_vars
2265 eval ac_val=\$$ac_var
2266 case $ac_val in
2267 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2268 esac
2269 $as_echo "$ac_var='\''$ac_val'\''"
2270 done | sort
2271 echo
2273 if test -n "$ac_subst_files"; then
2274 cat <<\_ASBOX
2275 ## ------------------- ##
2276 ## File substitutions. ##
2277 ## ------------------- ##
2278 _ASBOX
2279 echo
2280 for ac_var in $ac_subst_files
2282 eval ac_val=\$$ac_var
2283 case $ac_val in
2284 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2285 esac
2286 $as_echo "$ac_var='\''$ac_val'\''"
2287 done | sort
2288 echo
2291 if test -s confdefs.h; then
2292 cat <<\_ASBOX
2293 ## ----------- ##
2294 ## confdefs.h. ##
2295 ## ----------- ##
2296 _ASBOX
2297 echo
2298 cat confdefs.h
2299 echo
2301 test "$ac_signal" != 0 &&
2302 $as_echo "$as_me: caught signal $ac_signal"
2303 $as_echo "$as_me: exit $exit_status"
2304 } >&5
2305 rm -f core *.core core.conftest.* &&
2306 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2307 exit $exit_status
2309 for ac_signal in 1 2 13 15; do
2310 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2311 done
2312 ac_signal=0
2314 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2315 rm -f -r conftest* confdefs.h
2317 $as_echo "/* confdefs.h */" > confdefs.h
2319 # Predefined preprocessor variables.
2321 cat >>confdefs.h <<_ACEOF
2322 #define PACKAGE_NAME "$PACKAGE_NAME"
2323 _ACEOF
2325 cat >>confdefs.h <<_ACEOF
2326 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2327 _ACEOF
2329 cat >>confdefs.h <<_ACEOF
2330 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2331 _ACEOF
2333 cat >>confdefs.h <<_ACEOF
2334 #define PACKAGE_STRING "$PACKAGE_STRING"
2335 _ACEOF
2337 cat >>confdefs.h <<_ACEOF
2338 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2339 _ACEOF
2341 cat >>confdefs.h <<_ACEOF
2342 #define PACKAGE_URL "$PACKAGE_URL"
2343 _ACEOF
2346 # Let the site file select an alternate cache file if it wants to.
2347 # Prefer an explicitly selected file to automatically selected ones.
2348 ac_site_file1=NONE
2349 ac_site_file2=NONE
2350 if test -n "$CONFIG_SITE"; then
2351 ac_site_file1=$CONFIG_SITE
2352 elif test "x$prefix" != xNONE; then
2353 ac_site_file1=$prefix/share/config.site
2354 ac_site_file2=$prefix/etc/config.site
2355 else
2356 ac_site_file1=$ac_default_prefix/share/config.site
2357 ac_site_file2=$ac_default_prefix/etc/config.site
2359 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2361 test "x$ac_site_file" = xNONE && continue
2362 if test -r "$ac_site_file"; then
2363 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2364 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2365 sed 's/^/| /' "$ac_site_file" >&5
2366 . "$ac_site_file"
2368 done
2370 if test -r "$cache_file"; then
2371 # Some versions of bash will fail to source /dev/null (special
2372 # files actually), so we avoid doing that.
2373 if test -f "$cache_file"; then
2374 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2375 $as_echo "$as_me: loading cache $cache_file" >&6;}
2376 case $cache_file in
2377 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2378 *) . "./$cache_file";;
2379 esac
2381 else
2382 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2383 $as_echo "$as_me: creating cache $cache_file" >&6;}
2384 >$cache_file
2387 # Check that the precious variables saved in the cache have kept the same
2388 # value.
2389 ac_cache_corrupted=false
2390 for ac_var in $ac_precious_vars; do
2391 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2392 eval ac_new_set=\$ac_env_${ac_var}_set
2393 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2394 eval ac_new_val=\$ac_env_${ac_var}_value
2395 case $ac_old_set,$ac_new_set in
2396 set,)
2397 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2398 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2399 ac_cache_corrupted=: ;;
2400 ,set)
2401 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2402 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2403 ac_cache_corrupted=: ;;
2404 ,);;
2406 if test "x$ac_old_val" != "x$ac_new_val"; then
2407 # differences in whitespace do not lead to failure.
2408 ac_old_val_w=`echo x $ac_old_val`
2409 ac_new_val_w=`echo x $ac_new_val`
2410 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2411 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2412 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2413 ac_cache_corrupted=:
2414 else
2415 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2416 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2417 eval $ac_var=\$ac_old_val
2419 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2420 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2421 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2422 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2423 fi;;
2424 esac
2425 # Pass precious variables to config.status.
2426 if test "$ac_new_set" = set; then
2427 case $ac_new_val in
2428 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2429 *) ac_arg=$ac_var=$ac_new_val ;;
2430 esac
2431 case " $ac_configure_args " in
2432 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2433 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2434 esac
2436 done
2437 if $ac_cache_corrupted; then
2438 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2439 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2440 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2441 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2442 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2444 ## -------------------- ##
2445 ## Main body of script. ##
2446 ## -------------------- ##
2448 ac_ext=c
2449 ac_cpp='$CPP $CPPFLAGS'
2450 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2451 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2452 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2459 ac_config_headers="$ac_config_headers config.h"
2462 if test -n "${with_target_subdir}"; then
2463 # Default to --enable-multilib
2464 # Check whether --enable-multilib was given.
2465 if test "${enable_multilib+set}" = set; then :
2466 enableval=$enable_multilib; case "$enableval" in
2467 yes) multilib=yes ;;
2468 no) multilib=no ;;
2469 *) as_fn_error "bad value $enableval for multilib option" "$LINENO" 5 ;;
2470 esac
2471 else
2472 multilib=yes
2476 # We may get other options which we leave undocumented:
2477 # --with-target-subdir, --with-multisrctop, --with-multisubdir
2478 # See config-ml.in if you want the gory details.
2480 if test "$srcdir" = "."; then
2481 if test "$with_target_subdir" != "."; then
2482 multi_basedir="$srcdir/$with_multisrctop../.."
2483 else
2484 multi_basedir="$srcdir/$with_multisrctop.."
2486 else
2487 multi_basedir="$srcdir/.."
2491 # Even if the default multilib is not a cross compilation,
2492 # it may be that some of the other multilibs are.
2493 if test $cross_compiling = no && test $multilib = yes \
2494 && test "x${with_multisubdir}" != x ; then
2495 cross_compiling=maybe
2498 ac_config_commands="$ac_config_commands default-1"
2502 ac_aux_dir=
2503 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2504 for ac_t in install-sh install.sh shtool; do
2505 if test -f "$ac_dir/$ac_t"; then
2506 ac_aux_dir=$ac_dir
2507 ac_install_sh="$ac_aux_dir/$ac_t -c"
2508 break 2
2510 done
2511 done
2512 if test -z "$ac_aux_dir"; then
2513 as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2516 # These three variables are undocumented and unsupported,
2517 # and are intended to be withdrawn in a future Autoconf release.
2518 # They can cause serious problems if a builder's source tree is in a directory
2519 # whose full name contains unusual characters.
2520 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2521 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2522 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2525 # Make sure we can run config.sub.
2526 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2527 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2529 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2530 $as_echo_n "checking build system type... " >&6; }
2531 if test "${ac_cv_build+set}" = set; then :
2532 $as_echo_n "(cached) " >&6
2533 else
2534 ac_build_alias=$build_alias
2535 test "x$ac_build_alias" = x &&
2536 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2537 test "x$ac_build_alias" = x &&
2538 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
2539 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2540 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2544 $as_echo "$ac_cv_build" >&6; }
2545 case $ac_cv_build in
2546 *-*-*) ;;
2547 *) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
2548 esac
2549 build=$ac_cv_build
2550 ac_save_IFS=$IFS; IFS='-'
2551 set x $ac_cv_build
2552 shift
2553 build_cpu=$1
2554 build_vendor=$2
2555 shift; shift
2556 # Remember, the first character of IFS is used to create $*,
2557 # except with old shells:
2558 build_os=$*
2559 IFS=$ac_save_IFS
2560 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2563 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2564 $as_echo_n "checking host system type... " >&6; }
2565 if test "${ac_cv_host+set}" = set; then :
2566 $as_echo_n "(cached) " >&6
2567 else
2568 if test "x$host_alias" = x; then
2569 ac_cv_host=$ac_cv_build
2570 else
2571 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2572 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2577 $as_echo "$ac_cv_host" >&6; }
2578 case $ac_cv_host in
2579 *-*-*) ;;
2580 *) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
2581 esac
2582 host=$ac_cv_host
2583 ac_save_IFS=$IFS; IFS='-'
2584 set x $ac_cv_host
2585 shift
2586 host_cpu=$1
2587 host_vendor=$2
2588 shift; shift
2589 # Remember, the first character of IFS is used to create $*,
2590 # except with old shells:
2591 host_os=$*
2592 IFS=$ac_save_IFS
2593 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2596 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2597 $as_echo_n "checking target system type... " >&6; }
2598 if test "${ac_cv_target+set}" = set; then :
2599 $as_echo_n "(cached) " >&6
2600 else
2601 if test "x$target_alias" = x; then
2602 ac_cv_target=$ac_cv_host
2603 else
2604 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2605 as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2610 $as_echo "$ac_cv_target" >&6; }
2611 case $ac_cv_target in
2612 *-*-*) ;;
2613 *) as_fn_error "invalid value of canonical target" "$LINENO" 5;;
2614 esac
2615 target=$ac_cv_target
2616 ac_save_IFS=$IFS; IFS='-'
2617 set x $ac_cv_target
2618 shift
2619 target_cpu=$1
2620 target_vendor=$2
2621 shift; shift
2622 # Remember, the first character of IFS is used to create $*,
2623 # except with old shells:
2624 target_os=$*
2625 IFS=$ac_save_IFS
2626 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2629 # The aliases save the names the user supplied, while $host etc.
2630 # will get canonicalized.
2631 test -n "$target_alias" &&
2632 test "$program_prefix$program_suffix$program_transform_name" = \
2633 NONENONEs,x,x, &&
2634 program_prefix=${target_alias}-
2636 target_alias=${target_alias-$host_alias}
2638 ac_ext=c
2639 ac_cpp='$CPP $CPPFLAGS'
2640 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2641 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2642 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2643 if test -n "$ac_tool_prefix"; then
2644 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2645 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2646 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2647 $as_echo_n "checking for $ac_word... " >&6; }
2648 if test "${ac_cv_prog_CC+set}" = set; then :
2649 $as_echo_n "(cached) " >&6
2650 else
2651 if test -n "$CC"; then
2652 ac_cv_prog_CC="$CC" # Let the user override the test.
2653 else
2654 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2655 for as_dir in $PATH
2657 IFS=$as_save_IFS
2658 test -z "$as_dir" && as_dir=.
2659 for ac_exec_ext in '' $ac_executable_extensions; do
2660 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2661 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2662 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2663 break 2
2665 done
2666 done
2667 IFS=$as_save_IFS
2671 CC=$ac_cv_prog_CC
2672 if test -n "$CC"; then
2673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2674 $as_echo "$CC" >&6; }
2675 else
2676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2677 $as_echo "no" >&6; }
2682 if test -z "$ac_cv_prog_CC"; then
2683 ac_ct_CC=$CC
2684 # Extract the first word of "gcc", so it can be a program name with args.
2685 set dummy gcc; ac_word=$2
2686 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2687 $as_echo_n "checking for $ac_word... " >&6; }
2688 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
2689 $as_echo_n "(cached) " >&6
2690 else
2691 if test -n "$ac_ct_CC"; then
2692 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2693 else
2694 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2695 for as_dir in $PATH
2697 IFS=$as_save_IFS
2698 test -z "$as_dir" && as_dir=.
2699 for ac_exec_ext in '' $ac_executable_extensions; do
2700 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2701 ac_cv_prog_ac_ct_CC="gcc"
2702 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2703 break 2
2705 done
2706 done
2707 IFS=$as_save_IFS
2711 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2712 if test -n "$ac_ct_CC"; then
2713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2714 $as_echo "$ac_ct_CC" >&6; }
2715 else
2716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2717 $as_echo "no" >&6; }
2720 if test "x$ac_ct_CC" = x; then
2721 CC=""
2722 else
2723 case $cross_compiling:$ac_tool_warned in
2724 yes:)
2725 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2726 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2727 ac_tool_warned=yes ;;
2728 esac
2729 CC=$ac_ct_CC
2731 else
2732 CC="$ac_cv_prog_CC"
2735 if test -z "$CC"; then
2736 if test -n "$ac_tool_prefix"; then
2737 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2738 set dummy ${ac_tool_prefix}cc; ac_word=$2
2739 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2740 $as_echo_n "checking for $ac_word... " >&6; }
2741 if test "${ac_cv_prog_CC+set}" = set; then :
2742 $as_echo_n "(cached) " >&6
2743 else
2744 if test -n "$CC"; then
2745 ac_cv_prog_CC="$CC" # Let the user override the test.
2746 else
2747 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2748 for as_dir in $PATH
2750 IFS=$as_save_IFS
2751 test -z "$as_dir" && as_dir=.
2752 for ac_exec_ext in '' $ac_executable_extensions; do
2753 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2754 ac_cv_prog_CC="${ac_tool_prefix}cc"
2755 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2756 break 2
2758 done
2759 done
2760 IFS=$as_save_IFS
2764 CC=$ac_cv_prog_CC
2765 if test -n "$CC"; then
2766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2767 $as_echo "$CC" >&6; }
2768 else
2769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2770 $as_echo "no" >&6; }
2776 if test -z "$CC"; then
2777 # Extract the first word of "cc", so it can be a program name with args.
2778 set dummy cc; ac_word=$2
2779 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2780 $as_echo_n "checking for $ac_word... " >&6; }
2781 if test "${ac_cv_prog_CC+set}" = set; then :
2782 $as_echo_n "(cached) " >&6
2783 else
2784 if test -n "$CC"; then
2785 ac_cv_prog_CC="$CC" # Let the user override the test.
2786 else
2787 ac_prog_rejected=no
2788 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2789 for as_dir in $PATH
2791 IFS=$as_save_IFS
2792 test -z "$as_dir" && as_dir=.
2793 for ac_exec_ext in '' $ac_executable_extensions; do
2794 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2795 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2796 ac_prog_rejected=yes
2797 continue
2799 ac_cv_prog_CC="cc"
2800 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2801 break 2
2803 done
2804 done
2805 IFS=$as_save_IFS
2807 if test $ac_prog_rejected = yes; then
2808 # We found a bogon in the path, so make sure we never use it.
2809 set dummy $ac_cv_prog_CC
2810 shift
2811 if test $# != 0; then
2812 # We chose a different compiler from the bogus one.
2813 # However, it has the same basename, so the bogon will be chosen
2814 # first if we set CC to just the basename; use the full file name.
2815 shift
2816 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2821 CC=$ac_cv_prog_CC
2822 if test -n "$CC"; then
2823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2824 $as_echo "$CC" >&6; }
2825 else
2826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2827 $as_echo "no" >&6; }
2832 if test -z "$CC"; then
2833 if test -n "$ac_tool_prefix"; then
2834 for ac_prog in cl.exe
2836 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2837 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2838 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2839 $as_echo_n "checking for $ac_word... " >&6; }
2840 if test "${ac_cv_prog_CC+set}" = set; then :
2841 $as_echo_n "(cached) " >&6
2842 else
2843 if test -n "$CC"; then
2844 ac_cv_prog_CC="$CC" # Let the user override the test.
2845 else
2846 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2847 for as_dir in $PATH
2849 IFS=$as_save_IFS
2850 test -z "$as_dir" && as_dir=.
2851 for ac_exec_ext in '' $ac_executable_extensions; do
2852 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2853 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2854 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2855 break 2
2857 done
2858 done
2859 IFS=$as_save_IFS
2863 CC=$ac_cv_prog_CC
2864 if test -n "$CC"; then
2865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2866 $as_echo "$CC" >&6; }
2867 else
2868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2869 $as_echo "no" >&6; }
2873 test -n "$CC" && break
2874 done
2876 if test -z "$CC"; then
2877 ac_ct_CC=$CC
2878 for ac_prog in cl.exe
2880 # Extract the first word of "$ac_prog", so it can be a program name with args.
2881 set dummy $ac_prog; ac_word=$2
2882 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2883 $as_echo_n "checking for $ac_word... " >&6; }
2884 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
2885 $as_echo_n "(cached) " >&6
2886 else
2887 if test -n "$ac_ct_CC"; then
2888 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2889 else
2890 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2891 for as_dir in $PATH
2893 IFS=$as_save_IFS
2894 test -z "$as_dir" && as_dir=.
2895 for ac_exec_ext in '' $ac_executable_extensions; do
2896 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2897 ac_cv_prog_ac_ct_CC="$ac_prog"
2898 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2899 break 2
2901 done
2902 done
2903 IFS=$as_save_IFS
2907 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2908 if test -n "$ac_ct_CC"; then
2909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2910 $as_echo "$ac_ct_CC" >&6; }
2911 else
2912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2913 $as_echo "no" >&6; }
2917 test -n "$ac_ct_CC" && break
2918 done
2920 if test "x$ac_ct_CC" = x; then
2921 CC=""
2922 else
2923 case $cross_compiling:$ac_tool_warned in
2924 yes:)
2925 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2926 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2927 ac_tool_warned=yes ;;
2928 esac
2929 CC=$ac_ct_CC
2936 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2937 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2938 as_fn_error "no acceptable C compiler found in \$PATH
2939 See \`config.log' for more details." "$LINENO" 5; }
2941 # Provide some information about the compiler.
2942 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
2943 set X $ac_compile
2944 ac_compiler=$2
2945 for ac_option in --version -v -V -qversion; do
2946 { { ac_try="$ac_compiler $ac_option >&5"
2947 case "(($ac_try" in
2948 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2949 *) ac_try_echo=$ac_try;;
2950 esac
2951 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2952 $as_echo "$ac_try_echo"; } >&5
2953 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
2954 ac_status=$?
2955 if test -s conftest.err; then
2956 sed '10a\
2957 ... rest of stderr output deleted ...
2958 10q' conftest.err >conftest.er1
2959 cat conftest.er1 >&5
2960 rm -f conftest.er1 conftest.err
2962 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2963 test $ac_status = 0; }
2964 done
2966 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2967 /* end confdefs.h. */
2970 main ()
2974 return 0;
2976 _ACEOF
2977 ac_clean_files_save=$ac_clean_files
2978 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
2979 # Try to create an executable without -o first, disregard a.out.
2980 # It will help us diagnose broken compilers, and finding out an intuition
2981 # of exeext.
2982 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
2983 $as_echo_n "checking for C compiler default output file name... " >&6; }
2984 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2986 # The possible output files:
2987 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2989 ac_rmfiles=
2990 for ac_file in $ac_files
2992 case $ac_file in
2993 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2994 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2995 esac
2996 done
2997 rm -f $ac_rmfiles
2999 if { { ac_try="$ac_link_default"
3000 case "(($ac_try" in
3001 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3002 *) ac_try_echo=$ac_try;;
3003 esac
3004 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3005 $as_echo "$ac_try_echo"; } >&5
3006 (eval "$ac_link_default") 2>&5
3007 ac_status=$?
3008 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3009 test $ac_status = 0; }; then :
3010 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3011 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3012 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3013 # so that the user can short-circuit this test for compilers unknown to
3014 # Autoconf.
3015 for ac_file in $ac_files ''
3017 test -f "$ac_file" || continue
3018 case $ac_file in
3019 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3021 [ab].out )
3022 # We found the default executable, but exeext='' is most
3023 # certainly right.
3024 break;;
3025 *.* )
3026 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3027 then :; else
3028 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3030 # We set ac_cv_exeext here because the later test for it is not
3031 # safe: cross compilers may not add the suffix if given an `-o'
3032 # argument, so we may need to know it at that point already.
3033 # Even if this section looks crufty: it has the advantage of
3034 # actually working.
3035 break;;
3037 break;;
3038 esac
3039 done
3040 test "$ac_cv_exeext" = no && ac_cv_exeext=
3042 else
3043 ac_file=''
3045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3046 $as_echo "$ac_file" >&6; }
3047 if test -z "$ac_file"; then :
3048 $as_echo "$as_me: failed program was:" >&5
3049 sed 's/^/| /' conftest.$ac_ext >&5
3051 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3052 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3053 { as_fn_set_status 77
3054 as_fn_error "C compiler cannot create executables
3055 See \`config.log' for more details." "$LINENO" 5; }; }
3057 ac_exeext=$ac_cv_exeext
3059 # Check that the compiler produces executables we can run. If not, either
3060 # the compiler is broken, or we cross compile.
3061 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3062 $as_echo_n "checking whether the C compiler works... " >&6; }
3063 # If not cross compiling, check that we can run a simple program.
3064 if test "$cross_compiling" != yes; then
3065 if { ac_try='./$ac_file'
3066 { { case "(($ac_try" in
3067 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3068 *) ac_try_echo=$ac_try;;
3069 esac
3070 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3071 $as_echo "$ac_try_echo"; } >&5
3072 (eval "$ac_try") 2>&5
3073 ac_status=$?
3074 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3075 test $ac_status = 0; }; }; then
3076 cross_compiling=no
3077 else
3078 if test "$cross_compiling" = maybe; then
3079 cross_compiling=yes
3080 else
3081 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3082 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3083 as_fn_error "cannot run C compiled programs.
3084 If you meant to cross compile, use \`--host'.
3085 See \`config.log' for more details." "$LINENO" 5; }
3089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3090 $as_echo "yes" >&6; }
3092 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
3093 ac_clean_files=$ac_clean_files_save
3094 # Check that the compiler produces executables we can run. If not, either
3095 # the compiler is broken, or we cross compile.
3096 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3097 $as_echo_n "checking whether we are cross compiling... " >&6; }
3098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3099 $as_echo "$cross_compiling" >&6; }
3101 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3102 $as_echo_n "checking for suffix of executables... " >&6; }
3103 if { { ac_try="$ac_link"
3104 case "(($ac_try" in
3105 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3106 *) ac_try_echo=$ac_try;;
3107 esac
3108 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3109 $as_echo "$ac_try_echo"; } >&5
3110 (eval "$ac_link") 2>&5
3111 ac_status=$?
3112 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3113 test $ac_status = 0; }; then :
3114 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3115 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3116 # work properly (i.e., refer to `conftest.exe'), while it won't with
3117 # `rm'.
3118 for ac_file in conftest.exe conftest conftest.*; do
3119 test -f "$ac_file" || continue
3120 case $ac_file in
3121 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3122 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3123 break;;
3124 * ) break;;
3125 esac
3126 done
3127 else
3128 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3129 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3130 as_fn_error "cannot compute suffix of executables: cannot compile and link
3131 See \`config.log' for more details." "$LINENO" 5; }
3133 rm -f conftest$ac_cv_exeext
3134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3135 $as_echo "$ac_cv_exeext" >&6; }
3137 rm -f conftest.$ac_ext
3138 EXEEXT=$ac_cv_exeext
3139 ac_exeext=$EXEEXT
3140 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3141 $as_echo_n "checking for suffix of object files... " >&6; }
3142 if test "${ac_cv_objext+set}" = set; then :
3143 $as_echo_n "(cached) " >&6
3144 else
3145 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3146 /* end confdefs.h. */
3149 main ()
3153 return 0;
3155 _ACEOF
3156 rm -f conftest.o conftest.obj
3157 if { { ac_try="$ac_compile"
3158 case "(($ac_try" in
3159 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3160 *) ac_try_echo=$ac_try;;
3161 esac
3162 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3163 $as_echo "$ac_try_echo"; } >&5
3164 (eval "$ac_compile") 2>&5
3165 ac_status=$?
3166 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3167 test $ac_status = 0; }; then :
3168 for ac_file in conftest.o conftest.obj conftest.*; do
3169 test -f "$ac_file" || continue;
3170 case $ac_file in
3171 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3172 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3173 break;;
3174 esac
3175 done
3176 else
3177 $as_echo "$as_me: failed program was:" >&5
3178 sed 's/^/| /' conftest.$ac_ext >&5
3180 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3181 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3182 as_fn_error "cannot compute suffix of object files: cannot compile
3183 See \`config.log' for more details." "$LINENO" 5; }
3185 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3188 $as_echo "$ac_cv_objext" >&6; }
3189 OBJEXT=$ac_cv_objext
3190 ac_objext=$OBJEXT
3191 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3192 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3193 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
3194 $as_echo_n "(cached) " >&6
3195 else
3196 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3197 /* end confdefs.h. */
3200 main ()
3202 #ifndef __GNUC__
3203 choke me
3204 #endif
3207 return 0;
3209 _ACEOF
3210 if ac_fn_c_try_compile "$LINENO"; then :
3211 ac_compiler_gnu=yes
3212 else
3213 ac_compiler_gnu=no
3215 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3216 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3220 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3221 if test $ac_compiler_gnu = yes; then
3222 GCC=yes
3223 else
3224 GCC=
3226 ac_test_CFLAGS=${CFLAGS+set}
3227 ac_save_CFLAGS=$CFLAGS
3228 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3229 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3230 if test "${ac_cv_prog_cc_g+set}" = set; then :
3231 $as_echo_n "(cached) " >&6
3232 else
3233 ac_save_c_werror_flag=$ac_c_werror_flag
3234 ac_c_werror_flag=yes
3235 ac_cv_prog_cc_g=no
3236 CFLAGS="-g"
3237 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3238 /* end confdefs.h. */
3241 main ()
3245 return 0;
3247 _ACEOF
3248 if ac_fn_c_try_compile "$LINENO"; then :
3249 ac_cv_prog_cc_g=yes
3250 else
3251 CFLAGS=""
3252 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3253 /* end confdefs.h. */
3256 main ()
3260 return 0;
3262 _ACEOF
3263 if ac_fn_c_try_compile "$LINENO"; then :
3265 else
3266 ac_c_werror_flag=$ac_save_c_werror_flag
3267 CFLAGS="-g"
3268 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3269 /* end confdefs.h. */
3272 main ()
3276 return 0;
3278 _ACEOF
3279 if ac_fn_c_try_compile "$LINENO"; then :
3280 ac_cv_prog_cc_g=yes
3282 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3284 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3286 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3287 ac_c_werror_flag=$ac_save_c_werror_flag
3289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3290 $as_echo "$ac_cv_prog_cc_g" >&6; }
3291 if test "$ac_test_CFLAGS" = set; then
3292 CFLAGS=$ac_save_CFLAGS
3293 elif test $ac_cv_prog_cc_g = yes; then
3294 if test "$GCC" = yes; then
3295 CFLAGS="-g -O2"
3296 else
3297 CFLAGS="-g"
3299 else
3300 if test "$GCC" = yes; then
3301 CFLAGS="-O2"
3302 else
3303 CFLAGS=
3306 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3307 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3308 if test "${ac_cv_prog_cc_c89+set}" = set; then :
3309 $as_echo_n "(cached) " >&6
3310 else
3311 ac_cv_prog_cc_c89=no
3312 ac_save_CC=$CC
3313 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3314 /* end confdefs.h. */
3315 #include <stdarg.h>
3316 #include <stdio.h>
3317 #include <sys/types.h>
3318 #include <sys/stat.h>
3319 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3320 struct buf { int x; };
3321 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3322 static char *e (p, i)
3323 char **p;
3324 int i;
3326 return p[i];
3328 static char *f (char * (*g) (char **, int), char **p, ...)
3330 char *s;
3331 va_list v;
3332 va_start (v,p);
3333 s = g (p, va_arg (v,int));
3334 va_end (v);
3335 return s;
3338 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3339 function prototypes and stuff, but not '\xHH' hex character constants.
3340 These don't provoke an error unfortunately, instead are silently treated
3341 as 'x'. The following induces an error, until -std is added to get
3342 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3343 array size at least. It's necessary to write '\x00'==0 to get something
3344 that's true only with -std. */
3345 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3347 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3348 inside strings and character constants. */
3349 #define FOO(x) 'x'
3350 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3352 int test (int i, double x);
3353 struct s1 {int (*f) (int a);};
3354 struct s2 {int (*f) (double a);};
3355 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3356 int argc;
3357 char **argv;
3359 main ()
3361 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3363 return 0;
3365 _ACEOF
3366 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3367 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3369 CC="$ac_save_CC $ac_arg"
3370 if ac_fn_c_try_compile "$LINENO"; then :
3371 ac_cv_prog_cc_c89=$ac_arg
3373 rm -f core conftest.err conftest.$ac_objext
3374 test "x$ac_cv_prog_cc_c89" != "xno" && break
3375 done
3376 rm -f conftest.$ac_ext
3377 CC=$ac_save_CC
3380 # AC_CACHE_VAL
3381 case "x$ac_cv_prog_cc_c89" in
3383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3384 $as_echo "none needed" >&6; } ;;
3385 xno)
3386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3387 $as_echo "unsupported" >&6; } ;;
3389 CC="$CC $ac_cv_prog_cc_c89"
3390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3391 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3392 esac
3393 if test "x$ac_cv_prog_cc_c89" != xno; then :
3397 ac_ext=c
3398 ac_cpp='$CPP $CPPFLAGS'
3399 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3400 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3401 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3404 ac_ext=c
3405 ac_cpp='$CPP $CPPFLAGS'
3406 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3407 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3408 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3409 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3410 $as_echo_n "checking how to run the C preprocessor... " >&6; }
3411 # On Suns, sometimes $CPP names a directory.
3412 if test -n "$CPP" && test -d "$CPP"; then
3413 CPP=
3415 if test -z "$CPP"; then
3416 if test "${ac_cv_prog_CPP+set}" = set; then :
3417 $as_echo_n "(cached) " >&6
3418 else
3419 # Double quotes because CPP needs to be expanded
3420 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3422 ac_preproc_ok=false
3423 for ac_c_preproc_warn_flag in '' yes
3425 # Use a header file that comes with gcc, so configuring glibc
3426 # with a fresh cross-compiler works.
3427 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3428 # <limits.h> exists even on freestanding compilers.
3429 # On the NeXT, cc -E runs the code through the compiler's parser,
3430 # not just through cpp. "Syntax error" is here to catch this case.
3431 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3432 /* end confdefs.h. */
3433 #ifdef __STDC__
3434 # include <limits.h>
3435 #else
3436 # include <assert.h>
3437 #endif
3438 Syntax error
3439 _ACEOF
3440 if ac_fn_c_try_cpp "$LINENO"; then :
3442 else
3443 # Broken: fails on valid input.
3444 continue
3446 rm -f conftest.err conftest.$ac_ext
3448 # OK, works on sane cases. Now check whether nonexistent headers
3449 # can be detected and how.
3450 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3451 /* end confdefs.h. */
3452 #include <ac_nonexistent.h>
3453 _ACEOF
3454 if ac_fn_c_try_cpp "$LINENO"; then :
3455 # Broken: success on invalid input.
3456 continue
3457 else
3458 # Passes both tests.
3459 ac_preproc_ok=:
3460 break
3462 rm -f conftest.err conftest.$ac_ext
3464 done
3465 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3466 rm -f conftest.err conftest.$ac_ext
3467 if $ac_preproc_ok; then :
3468 break
3471 done
3472 ac_cv_prog_CPP=$CPP
3475 CPP=$ac_cv_prog_CPP
3476 else
3477 ac_cv_prog_CPP=$CPP
3479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
3480 $as_echo "$CPP" >&6; }
3481 ac_preproc_ok=false
3482 for ac_c_preproc_warn_flag in '' yes
3484 # Use a header file that comes with gcc, so configuring glibc
3485 # with a fresh cross-compiler works.
3486 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3487 # <limits.h> exists even on freestanding compilers.
3488 # On the NeXT, cc -E runs the code through the compiler's parser,
3489 # not just through cpp. "Syntax error" is here to catch this case.
3490 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3491 /* end confdefs.h. */
3492 #ifdef __STDC__
3493 # include <limits.h>
3494 #else
3495 # include <assert.h>
3496 #endif
3497 Syntax error
3498 _ACEOF
3499 if ac_fn_c_try_cpp "$LINENO"; then :
3501 else
3502 # Broken: fails on valid input.
3503 continue
3505 rm -f conftest.err conftest.$ac_ext
3507 # OK, works on sane cases. Now check whether nonexistent headers
3508 # can be detected and how.
3509 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3510 /* end confdefs.h. */
3511 #include <ac_nonexistent.h>
3512 _ACEOF
3513 if ac_fn_c_try_cpp "$LINENO"; then :
3514 # Broken: success on invalid input.
3515 continue
3516 else
3517 # Passes both tests.
3518 ac_preproc_ok=:
3519 break
3521 rm -f conftest.err conftest.$ac_ext
3523 done
3524 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3525 rm -f conftest.err conftest.$ac_ext
3526 if $ac_preproc_ok; then :
3528 else
3529 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3530 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3531 as_fn_error "C preprocessor \"$CPP\" fails sanity check
3532 See \`config.log' for more details." "$LINENO" 5; }
3535 ac_ext=c
3536 ac_cpp='$CPP $CPPFLAGS'
3537 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3538 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3539 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3542 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
3543 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3544 if test "${ac_cv_path_GREP+set}" = set; then :
3545 $as_echo_n "(cached) " >&6
3546 else
3547 if test -z "$GREP"; then
3548 ac_path_GREP_found=false
3549 # Loop through the user's path and test for each of PROGNAME-LIST
3550 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3551 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3553 IFS=$as_save_IFS
3554 test -z "$as_dir" && as_dir=.
3555 for ac_prog in grep ggrep; do
3556 for ac_exec_ext in '' $ac_executable_extensions; do
3557 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3558 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3559 # Check for GNU ac_path_GREP and select it if it is found.
3560 # Check for GNU $ac_path_GREP
3561 case `"$ac_path_GREP" --version 2>&1` in
3562 *GNU*)
3563 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3565 ac_count=0
3566 $as_echo_n 0123456789 >"conftest.in"
3567 while :
3569 cat "conftest.in" "conftest.in" >"conftest.tmp"
3570 mv "conftest.tmp" "conftest.in"
3571 cp "conftest.in" "conftest.nl"
3572 $as_echo 'GREP' >> "conftest.nl"
3573 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3574 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3575 as_fn_arith $ac_count + 1 && ac_count=$as_val
3576 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3577 # Best one so far, save it but keep looking for a better one
3578 ac_cv_path_GREP="$ac_path_GREP"
3579 ac_path_GREP_max=$ac_count
3581 # 10*(2^10) chars as input seems more than enough
3582 test $ac_count -gt 10 && break
3583 done
3584 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3585 esac
3587 $ac_path_GREP_found && break 3
3588 done
3589 done
3590 done
3591 IFS=$as_save_IFS
3592 if test -z "$ac_cv_path_GREP"; then
3593 as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3595 else
3596 ac_cv_path_GREP=$GREP
3600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
3601 $as_echo "$ac_cv_path_GREP" >&6; }
3602 GREP="$ac_cv_path_GREP"
3605 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
3606 $as_echo_n "checking for egrep... " >&6; }
3607 if test "${ac_cv_path_EGREP+set}" = set; then :
3608 $as_echo_n "(cached) " >&6
3609 else
3610 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3611 then ac_cv_path_EGREP="$GREP -E"
3612 else
3613 if test -z "$EGREP"; then
3614 ac_path_EGREP_found=false
3615 # Loop through the user's path and test for each of PROGNAME-LIST
3616 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3617 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3619 IFS=$as_save_IFS
3620 test -z "$as_dir" && as_dir=.
3621 for ac_prog in egrep; do
3622 for ac_exec_ext in '' $ac_executable_extensions; do
3623 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3624 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
3625 # Check for GNU ac_path_EGREP and select it if it is found.
3626 # Check for GNU $ac_path_EGREP
3627 case `"$ac_path_EGREP" --version 2>&1` in
3628 *GNU*)
3629 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3631 ac_count=0
3632 $as_echo_n 0123456789 >"conftest.in"
3633 while :
3635 cat "conftest.in" "conftest.in" >"conftest.tmp"
3636 mv "conftest.tmp" "conftest.in"
3637 cp "conftest.in" "conftest.nl"
3638 $as_echo 'EGREP' >> "conftest.nl"
3639 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3640 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3641 as_fn_arith $ac_count + 1 && ac_count=$as_val
3642 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3643 # Best one so far, save it but keep looking for a better one
3644 ac_cv_path_EGREP="$ac_path_EGREP"
3645 ac_path_EGREP_max=$ac_count
3647 # 10*(2^10) chars as input seems more than enough
3648 test $ac_count -gt 10 && break
3649 done
3650 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3651 esac
3653 $ac_path_EGREP_found && break 3
3654 done
3655 done
3656 done
3657 IFS=$as_save_IFS
3658 if test -z "$ac_cv_path_EGREP"; then
3659 as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3661 else
3662 ac_cv_path_EGREP=$EGREP
3667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
3668 $as_echo "$ac_cv_path_EGREP" >&6; }
3669 EGREP="$ac_cv_path_EGREP"
3672 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
3673 $as_echo_n "checking for ANSI C header files... " >&6; }
3674 if test "${ac_cv_header_stdc+set}" = set; then :
3675 $as_echo_n "(cached) " >&6
3676 else
3677 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3678 /* end confdefs.h. */
3679 #include <stdlib.h>
3680 #include <stdarg.h>
3681 #include <string.h>
3682 #include <float.h>
3685 main ()
3689 return 0;
3691 _ACEOF
3692 if ac_fn_c_try_compile "$LINENO"; then :
3693 ac_cv_header_stdc=yes
3694 else
3695 ac_cv_header_stdc=no
3697 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3699 if test $ac_cv_header_stdc = yes; then
3700 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3701 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3702 /* end confdefs.h. */
3703 #include <string.h>
3705 _ACEOF
3706 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3707 $EGREP "memchr" >/dev/null 2>&1; then :
3709 else
3710 ac_cv_header_stdc=no
3712 rm -f conftest*
3716 if test $ac_cv_header_stdc = yes; then
3717 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3718 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3719 /* end confdefs.h. */
3720 #include <stdlib.h>
3722 _ACEOF
3723 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3724 $EGREP "free" >/dev/null 2>&1; then :
3726 else
3727 ac_cv_header_stdc=no
3729 rm -f conftest*
3733 if test $ac_cv_header_stdc = yes; then
3734 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3735 if test "$cross_compiling" = yes; then :
3737 else
3738 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3739 /* end confdefs.h. */
3740 #include <ctype.h>
3741 #include <stdlib.h>
3742 #if ((' ' & 0x0FF) == 0x020)
3743 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3744 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3745 #else
3746 # define ISLOWER(c) \
3747 (('a' <= (c) && (c) <= 'i') \
3748 || ('j' <= (c) && (c) <= 'r') \
3749 || ('s' <= (c) && (c) <= 'z'))
3750 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3751 #endif
3753 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3755 main ()
3757 int i;
3758 for (i = 0; i < 256; i++)
3759 if (XOR (islower (i), ISLOWER (i))
3760 || toupper (i) != TOUPPER (i))
3761 return 2;
3762 return 0;
3764 _ACEOF
3765 if ac_fn_c_try_run "$LINENO"; then :
3767 else
3768 ac_cv_header_stdc=no
3770 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
3771 conftest.$ac_objext conftest.beam conftest.$ac_ext
3776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
3777 $as_echo "$ac_cv_header_stdc" >&6; }
3778 if test $ac_cv_header_stdc = yes; then
3780 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
3784 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3785 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3786 inttypes.h stdint.h unistd.h
3787 do :
3788 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
3789 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
3791 eval as_val=\$$as_ac_Header
3792 if test "x$as_val" = x""yes; then :
3793 cat >>confdefs.h <<_ACEOF
3794 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
3795 _ACEOF
3799 done
3803 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
3804 if test "x$ac_cv_header_minix_config_h" = x""yes; then :
3805 MINIX=yes
3806 else
3807 MINIX=
3811 if test "$MINIX" = yes; then
3813 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
3816 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
3819 $as_echo "#define _MINIX 1" >>confdefs.h
3824 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
3825 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
3826 if test "${ac_cv_safe_to_define___extensions__+set}" = set; then :
3827 $as_echo_n "(cached) " >&6
3828 else
3829 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3830 /* end confdefs.h. */
3832 # define __EXTENSIONS__ 1
3833 $ac_includes_default
3835 main ()
3839 return 0;
3841 _ACEOF
3842 if ac_fn_c_try_compile "$LINENO"; then :
3843 ac_cv_safe_to_define___extensions__=yes
3844 else
3845 ac_cv_safe_to_define___extensions__=no
3847 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
3850 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
3851 test $ac_cv_safe_to_define___extensions__ = yes &&
3852 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
3854 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
3856 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
3858 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
3860 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
3864 libtool_VERSION=1:0:0
3867 # 1.11.1: Require that version of automake.
3868 # foreign: Don't require README, INSTALL, NEWS, etc.
3869 # no-define: Don't define PACKAGE and VERSION.
3870 # no-dependencies: Don't generate automatic dependencies.
3871 # (because it breaks when using bootstrap-lean, since some of the
3872 # headers are gone at "make install" time).
3873 # -Wall: Issue all automake warnings.
3874 # -Wno-portability: Don't warn about constructs supported by GNU make.
3875 # (because GCC requires GNU make anyhow).
3876 am__api_version='1.11'
3878 # Find a good install program. We prefer a C program (faster),
3879 # so one script is as good as another. But avoid the broken or
3880 # incompatible versions:
3881 # SysV /etc/install, /usr/sbin/install
3882 # SunOS /usr/etc/install
3883 # IRIX /sbin/install
3884 # AIX /bin/install
3885 # AmigaOS /C/install, which installs bootblocks on floppy discs
3886 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3887 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3888 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3889 # OS/2's system install, which has a completely different semantic
3890 # ./install, which can be erroneously created by make from ./install.sh.
3891 # Reject install programs that cannot install multiple files.
3892 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
3893 $as_echo_n "checking for a BSD-compatible install... " >&6; }
3894 if test -z "$INSTALL"; then
3895 if test "${ac_cv_path_install+set}" = set; then :
3896 $as_echo_n "(cached) " >&6
3897 else
3898 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3899 for as_dir in $PATH
3901 IFS=$as_save_IFS
3902 test -z "$as_dir" && as_dir=.
3903 # Account for people who put trailing slashes in PATH elements.
3904 case $as_dir/ in #((
3905 ./ | .// | /[cC]/* | \
3906 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3907 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
3908 /usr/ucb/* ) ;;
3910 # OSF1 and SCO ODT 3.0 have their own names for install.
3911 # Don't use installbsd from OSF since it installs stuff as root
3912 # by default.
3913 for ac_prog in ginstall scoinst install; do
3914 for ac_exec_ext in '' $ac_executable_extensions; do
3915 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
3916 if test $ac_prog = install &&
3917 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3918 # AIX install. It has an incompatible calling convention.
3920 elif test $ac_prog = install &&
3921 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3922 # program-specific install script used by HP pwplus--don't use.
3924 else
3925 rm -rf conftest.one conftest.two conftest.dir
3926 echo one > conftest.one
3927 echo two > conftest.two
3928 mkdir conftest.dir
3929 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
3930 test -s conftest.one && test -s conftest.two &&
3931 test -s conftest.dir/conftest.one &&
3932 test -s conftest.dir/conftest.two
3933 then
3934 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3935 break 3
3939 done
3940 done
3942 esac
3944 done
3945 IFS=$as_save_IFS
3947 rm -rf conftest.one conftest.two conftest.dir
3950 if test "${ac_cv_path_install+set}" = set; then
3951 INSTALL=$ac_cv_path_install
3952 else
3953 # As a last resort, use the slow shell script. Don't cache a
3954 # value for INSTALL within a source directory, because that will
3955 # break other packages using the cache if that directory is
3956 # removed, or if the value is a relative name.
3957 INSTALL=$ac_install_sh
3960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
3961 $as_echo "$INSTALL" >&6; }
3963 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3964 # It thinks the first close brace ends the variable substitution.
3965 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3967 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3969 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3971 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
3972 $as_echo_n "checking whether build environment is sane... " >&6; }
3973 # Just in case
3974 sleep 1
3975 echo timestamp > conftest.file
3976 # Reject unsafe characters in $srcdir or the absolute working directory
3977 # name. Accept space and tab only in the latter.
3978 am_lf='
3980 case `pwd` in
3981 *[\\\"\#\$\&\'\`$am_lf]*)
3982 as_fn_error "unsafe absolute working directory name" "$LINENO" 5;;
3983 esac
3984 case $srcdir in
3985 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
3986 as_fn_error "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
3987 esac
3989 # Do `set' in a subshell so we don't clobber the current shell's
3990 # arguments. Must try -L first in case configure is actually a
3991 # symlink; some systems play weird games with the mod time of symlinks
3992 # (eg FreeBSD returns the mod time of the symlink's containing
3993 # directory).
3994 if (
3995 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
3996 if test "$*" = "X"; then
3997 # -L didn't work.
3998 set X `ls -t "$srcdir/configure" conftest.file`
4000 rm -f conftest.file
4001 if test "$*" != "X $srcdir/configure conftest.file" \
4002 && test "$*" != "X conftest.file $srcdir/configure"; then
4004 # If neither matched, then we have a broken ls. This can happen
4005 # if, for instance, CONFIG_SHELL is bash and it inherits a
4006 # broken ls alias from the environment. This has actually
4007 # happened. Such a system could not be considered "sane".
4008 as_fn_error "ls -t appears to fail. Make sure there is not a broken
4009 alias in your environment" "$LINENO" 5
4012 test "$2" = conftest.file
4014 then
4015 # Ok.
4017 else
4018 as_fn_error "newly created file is older than distributed files!
4019 Check your system clock" "$LINENO" 5
4021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4022 $as_echo "yes" >&6; }
4023 test "$program_prefix" != NONE &&
4024 program_transform_name="s&^&$program_prefix&;$program_transform_name"
4025 # Use a double $ so make ignores it.
4026 test "$program_suffix" != NONE &&
4027 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
4028 # Double any \ or $.
4029 # By default was `s,x,x', remove it if useless.
4030 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
4031 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
4033 # expand $ac_aux_dir to an absolute path
4034 am_aux_dir=`cd $ac_aux_dir && pwd`
4036 if test x"${MISSING+set}" != xset; then
4037 case $am_aux_dir in
4038 *\ * | *\ *)
4039 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
4041 MISSING="\${SHELL} $am_aux_dir/missing" ;;
4042 esac
4044 # Use eval to expand $SHELL
4045 if eval "$MISSING --run true"; then
4046 am_missing_run="$MISSING --run "
4047 else
4048 am_missing_run=
4049 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
4050 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
4053 if test x"${install_sh}" != xset; then
4054 case $am_aux_dir in
4055 *\ * | *\ *)
4056 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
4058 install_sh="\${SHELL} $am_aux_dir/install-sh"
4059 esac
4062 # Installed binaries are usually stripped using `strip' when the user
4063 # run `make install-strip'. However `strip' might not be the right
4064 # tool to use in cross-compilation environments, therefore Automake
4065 # will honor the `STRIP' environment variable to overrule this program.
4066 if test "$cross_compiling" != no; then
4067 if test -n "$ac_tool_prefix"; then
4068 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
4069 set dummy ${ac_tool_prefix}strip; ac_word=$2
4070 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4071 $as_echo_n "checking for $ac_word... " >&6; }
4072 if test "${ac_cv_prog_STRIP+set}" = set; then :
4073 $as_echo_n "(cached) " >&6
4074 else
4075 if test -n "$STRIP"; then
4076 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
4077 else
4078 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4079 for as_dir in $PATH
4081 IFS=$as_save_IFS
4082 test -z "$as_dir" && as_dir=.
4083 for ac_exec_ext in '' $ac_executable_extensions; do
4084 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4085 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
4086 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4087 break 2
4089 done
4090 done
4091 IFS=$as_save_IFS
4095 STRIP=$ac_cv_prog_STRIP
4096 if test -n "$STRIP"; then
4097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
4098 $as_echo "$STRIP" >&6; }
4099 else
4100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4101 $as_echo "no" >&6; }
4106 if test -z "$ac_cv_prog_STRIP"; then
4107 ac_ct_STRIP=$STRIP
4108 # Extract the first word of "strip", so it can be a program name with args.
4109 set dummy strip; ac_word=$2
4110 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4111 $as_echo_n "checking for $ac_word... " >&6; }
4112 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
4113 $as_echo_n "(cached) " >&6
4114 else
4115 if test -n "$ac_ct_STRIP"; then
4116 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
4117 else
4118 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4119 for as_dir in $PATH
4121 IFS=$as_save_IFS
4122 test -z "$as_dir" && as_dir=.
4123 for ac_exec_ext in '' $ac_executable_extensions; do
4124 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4125 ac_cv_prog_ac_ct_STRIP="strip"
4126 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4127 break 2
4129 done
4130 done
4131 IFS=$as_save_IFS
4135 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
4136 if test -n "$ac_ct_STRIP"; then
4137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
4138 $as_echo "$ac_ct_STRIP" >&6; }
4139 else
4140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4141 $as_echo "no" >&6; }
4144 if test "x$ac_ct_STRIP" = x; then
4145 STRIP=":"
4146 else
4147 case $cross_compiling:$ac_tool_warned in
4148 yes:)
4149 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4150 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4151 ac_tool_warned=yes ;;
4152 esac
4153 STRIP=$ac_ct_STRIP
4155 else
4156 STRIP="$ac_cv_prog_STRIP"
4160 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
4162 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
4163 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
4164 if test -z "$MKDIR_P"; then
4165 if test "${ac_cv_path_mkdir+set}" = set; then :
4166 $as_echo_n "(cached) " >&6
4167 else
4168 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4169 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
4171 IFS=$as_save_IFS
4172 test -z "$as_dir" && as_dir=.
4173 for ac_prog in mkdir gmkdir; do
4174 for ac_exec_ext in '' $ac_executable_extensions; do
4175 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
4176 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
4177 'mkdir (GNU coreutils) '* | \
4178 'mkdir (coreutils) '* | \
4179 'mkdir (fileutils) '4.1*)
4180 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
4181 break 3;;
4182 esac
4183 done
4184 done
4185 done
4186 IFS=$as_save_IFS
4190 if test "${ac_cv_path_mkdir+set}" = set; then
4191 MKDIR_P="$ac_cv_path_mkdir -p"
4192 else
4193 # As a last resort, use the slow shell script. Don't cache a
4194 # value for MKDIR_P within a source directory, because that will
4195 # break other packages using the cache if that directory is
4196 # removed, or if the value is a relative name.
4197 test -d ./--version && rmdir ./--version
4198 MKDIR_P="$ac_install_sh -d"
4201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
4202 $as_echo "$MKDIR_P" >&6; }
4204 mkdir_p="$MKDIR_P"
4205 case $mkdir_p in
4206 [\\/$]* | ?:[\\/]*) ;;
4207 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
4208 esac
4210 for ac_prog in gawk mawk nawk awk
4212 # Extract the first word of "$ac_prog", so it can be a program name with args.
4213 set dummy $ac_prog; ac_word=$2
4214 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4215 $as_echo_n "checking for $ac_word... " >&6; }
4216 if test "${ac_cv_prog_AWK+set}" = set; then :
4217 $as_echo_n "(cached) " >&6
4218 else
4219 if test -n "$AWK"; then
4220 ac_cv_prog_AWK="$AWK" # Let the user override the test.
4221 else
4222 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4223 for as_dir in $PATH
4225 IFS=$as_save_IFS
4226 test -z "$as_dir" && as_dir=.
4227 for ac_exec_ext in '' $ac_executable_extensions; do
4228 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4229 ac_cv_prog_AWK="$ac_prog"
4230 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4231 break 2
4233 done
4234 done
4235 IFS=$as_save_IFS
4239 AWK=$ac_cv_prog_AWK
4240 if test -n "$AWK"; then
4241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
4242 $as_echo "$AWK" >&6; }
4243 else
4244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4245 $as_echo "no" >&6; }
4249 test -n "$AWK" && break
4250 done
4252 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
4253 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
4254 set x ${MAKE-make}
4255 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
4256 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
4257 $as_echo_n "(cached) " >&6
4258 else
4259 cat >conftest.make <<\_ACEOF
4260 SHELL = /bin/sh
4261 all:
4262 @echo '@@@%%%=$(MAKE)=@@@%%%'
4263 _ACEOF
4264 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
4265 case `${MAKE-make} -f conftest.make 2>/dev/null` in
4266 *@@@%%%=?*=@@@%%%*)
4267 eval ac_cv_prog_make_${ac_make}_set=yes;;
4269 eval ac_cv_prog_make_${ac_make}_set=no;;
4270 esac
4271 rm -f conftest.make
4273 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
4274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4275 $as_echo "yes" >&6; }
4276 SET_MAKE=
4277 else
4278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4279 $as_echo "no" >&6; }
4280 SET_MAKE="MAKE=${MAKE-make}"
4283 rm -rf .tst 2>/dev/null
4284 mkdir .tst 2>/dev/null
4285 if test -d .tst; then
4286 am__leading_dot=.
4287 else
4288 am__leading_dot=_
4290 rmdir .tst 2>/dev/null
4292 if test "`cd $srcdir && pwd`" != "`pwd`"; then
4293 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
4294 # is not polluted with repeated "-I."
4295 am__isrc=' -I$(srcdir)'
4296 # test to see if srcdir already configured
4297 if test -f $srcdir/config.status; then
4298 as_fn_error "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
4302 # test whether we have cygpath
4303 if test -z "$CYGPATH_W"; then
4304 if (cygpath --version) >/dev/null 2>/dev/null; then
4305 CYGPATH_W='cygpath -w'
4306 else
4307 CYGPATH_W=echo
4312 # Define the identity of the package.
4313 PACKAGE='libbacktrace'
4314 VERSION='version-unused'
4317 # Some tools Automake needs.
4319 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
4322 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
4325 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
4328 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
4331 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
4333 # We need awk for the "check" target. The system "awk" is bad on
4334 # some platforms.
4335 # Always define AMTAR for backward compatibility. Yes, it's still used
4336 # in the wild :-( We should find a proper way to deprecate it ...
4337 AMTAR='$${TAR-tar}'
4339 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
4347 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
4348 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
4349 # Check whether --enable-maintainer-mode was given.
4350 if test "${enable_maintainer_mode+set}" = set; then :
4351 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
4352 else
4353 USE_MAINTAINER_MODE=no
4356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
4357 $as_echo "$USE_MAINTAINER_MODE" >&6; }
4358 if test $USE_MAINTAINER_MODE = yes; then
4359 MAINTAINER_MODE_TRUE=
4360 MAINTAINER_MODE_FALSE='#'
4361 else
4362 MAINTAINER_MODE_TRUE='#'
4363 MAINTAINER_MODE_FALSE=
4366 MAINT=$MAINTAINER_MODE_TRUE
4371 # Check whether --with-target-subdir was given.
4372 if test "${with_target_subdir+set}" = set; then :
4373 withval=$with_target_subdir;
4377 # We must force CC to /not/ be precious variables; otherwise
4378 # the wrong, non-multilib-adjusted value will be used in multilibs.
4379 # As a side effect, we have to subst CFLAGS ourselves.
4382 ac_ext=c
4383 ac_cpp='$CPP $CPPFLAGS'
4384 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4385 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4386 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4387 if test -n "$ac_tool_prefix"; then
4388 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4389 set dummy ${ac_tool_prefix}gcc; ac_word=$2
4390 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4391 $as_echo_n "checking for $ac_word... " >&6; }
4392 if test "${ac_cv_prog_CC+set}" = set; then :
4393 $as_echo_n "(cached) " >&6
4394 else
4395 if test -n "$CC"; then
4396 ac_cv_prog_CC="$CC" # Let the user override the test.
4397 else
4398 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4399 for as_dir in $PATH
4401 IFS=$as_save_IFS
4402 test -z "$as_dir" && as_dir=.
4403 for ac_exec_ext in '' $ac_executable_extensions; do
4404 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4405 ac_cv_prog_CC="${ac_tool_prefix}gcc"
4406 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4407 break 2
4409 done
4410 done
4411 IFS=$as_save_IFS
4415 CC=$ac_cv_prog_CC
4416 if test -n "$CC"; then
4417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4418 $as_echo "$CC" >&6; }
4419 else
4420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4421 $as_echo "no" >&6; }
4426 if test -z "$ac_cv_prog_CC"; then
4427 ac_ct_CC=$CC
4428 # Extract the first word of "gcc", so it can be a program name with args.
4429 set dummy gcc; ac_word=$2
4430 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4431 $as_echo_n "checking for $ac_word... " >&6; }
4432 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
4433 $as_echo_n "(cached) " >&6
4434 else
4435 if test -n "$ac_ct_CC"; then
4436 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4437 else
4438 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4439 for as_dir in $PATH
4441 IFS=$as_save_IFS
4442 test -z "$as_dir" && as_dir=.
4443 for ac_exec_ext in '' $ac_executable_extensions; do
4444 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4445 ac_cv_prog_ac_ct_CC="gcc"
4446 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4447 break 2
4449 done
4450 done
4451 IFS=$as_save_IFS
4455 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4456 if test -n "$ac_ct_CC"; then
4457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4458 $as_echo "$ac_ct_CC" >&6; }
4459 else
4460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4461 $as_echo "no" >&6; }
4464 if test "x$ac_ct_CC" = x; then
4465 CC=""
4466 else
4467 case $cross_compiling:$ac_tool_warned in
4468 yes:)
4469 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4470 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4471 ac_tool_warned=yes ;;
4472 esac
4473 CC=$ac_ct_CC
4475 else
4476 CC="$ac_cv_prog_CC"
4479 if test -z "$CC"; then
4480 if test -n "$ac_tool_prefix"; then
4481 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4482 set dummy ${ac_tool_prefix}cc; ac_word=$2
4483 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4484 $as_echo_n "checking for $ac_word... " >&6; }
4485 if test "${ac_cv_prog_CC+set}" = set; then :
4486 $as_echo_n "(cached) " >&6
4487 else
4488 if test -n "$CC"; then
4489 ac_cv_prog_CC="$CC" # Let the user override the test.
4490 else
4491 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4492 for as_dir in $PATH
4494 IFS=$as_save_IFS
4495 test -z "$as_dir" && as_dir=.
4496 for ac_exec_ext in '' $ac_executable_extensions; do
4497 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4498 ac_cv_prog_CC="${ac_tool_prefix}cc"
4499 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4500 break 2
4502 done
4503 done
4504 IFS=$as_save_IFS
4508 CC=$ac_cv_prog_CC
4509 if test -n "$CC"; then
4510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4511 $as_echo "$CC" >&6; }
4512 else
4513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4514 $as_echo "no" >&6; }
4520 if test -z "$CC"; then
4521 # Extract the first word of "cc", so it can be a program name with args.
4522 set dummy cc; ac_word=$2
4523 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4524 $as_echo_n "checking for $ac_word... " >&6; }
4525 if test "${ac_cv_prog_CC+set}" = set; then :
4526 $as_echo_n "(cached) " >&6
4527 else
4528 if test -n "$CC"; then
4529 ac_cv_prog_CC="$CC" # Let the user override the test.
4530 else
4531 ac_prog_rejected=no
4532 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4533 for as_dir in $PATH
4535 IFS=$as_save_IFS
4536 test -z "$as_dir" && as_dir=.
4537 for ac_exec_ext in '' $ac_executable_extensions; do
4538 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4539 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4540 ac_prog_rejected=yes
4541 continue
4543 ac_cv_prog_CC="cc"
4544 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4545 break 2
4547 done
4548 done
4549 IFS=$as_save_IFS
4551 if test $ac_prog_rejected = yes; then
4552 # We found a bogon in the path, so make sure we never use it.
4553 set dummy $ac_cv_prog_CC
4554 shift
4555 if test $# != 0; then
4556 # We chose a different compiler from the bogus one.
4557 # However, it has the same basename, so the bogon will be chosen
4558 # first if we set CC to just the basename; use the full file name.
4559 shift
4560 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4565 CC=$ac_cv_prog_CC
4566 if test -n "$CC"; then
4567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4568 $as_echo "$CC" >&6; }
4569 else
4570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4571 $as_echo "no" >&6; }
4576 if test -z "$CC"; then
4577 if test -n "$ac_tool_prefix"; then
4578 for ac_prog in cl.exe
4580 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4581 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4582 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4583 $as_echo_n "checking for $ac_word... " >&6; }
4584 if test "${ac_cv_prog_CC+set}" = set; then :
4585 $as_echo_n "(cached) " >&6
4586 else
4587 if test -n "$CC"; then
4588 ac_cv_prog_CC="$CC" # Let the user override the test.
4589 else
4590 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4591 for as_dir in $PATH
4593 IFS=$as_save_IFS
4594 test -z "$as_dir" && as_dir=.
4595 for ac_exec_ext in '' $ac_executable_extensions; do
4596 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4597 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4598 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4599 break 2
4601 done
4602 done
4603 IFS=$as_save_IFS
4607 CC=$ac_cv_prog_CC
4608 if test -n "$CC"; then
4609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4610 $as_echo "$CC" >&6; }
4611 else
4612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4613 $as_echo "no" >&6; }
4617 test -n "$CC" && break
4618 done
4620 if test -z "$CC"; then
4621 ac_ct_CC=$CC
4622 for ac_prog in cl.exe
4624 # Extract the first word of "$ac_prog", so it can be a program name with args.
4625 set dummy $ac_prog; ac_word=$2
4626 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4627 $as_echo_n "checking for $ac_word... " >&6; }
4628 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
4629 $as_echo_n "(cached) " >&6
4630 else
4631 if test -n "$ac_ct_CC"; then
4632 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4633 else
4634 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4635 for as_dir in $PATH
4637 IFS=$as_save_IFS
4638 test -z "$as_dir" && as_dir=.
4639 for ac_exec_ext in '' $ac_executable_extensions; do
4640 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4641 ac_cv_prog_ac_ct_CC="$ac_prog"
4642 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4643 break 2
4645 done
4646 done
4647 IFS=$as_save_IFS
4651 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4652 if test -n "$ac_ct_CC"; then
4653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4654 $as_echo "$ac_ct_CC" >&6; }
4655 else
4656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4657 $as_echo "no" >&6; }
4661 test -n "$ac_ct_CC" && break
4662 done
4664 if test "x$ac_ct_CC" = x; then
4665 CC=""
4666 else
4667 case $cross_compiling:$ac_tool_warned in
4668 yes:)
4669 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4670 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4671 ac_tool_warned=yes ;;
4672 esac
4673 CC=$ac_ct_CC
4680 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4681 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4682 as_fn_error "no acceptable C compiler found in \$PATH
4683 See \`config.log' for more details." "$LINENO" 5; }
4685 # Provide some information about the compiler.
4686 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4687 set X $ac_compile
4688 ac_compiler=$2
4689 for ac_option in --version -v -V -qversion; do
4690 { { ac_try="$ac_compiler $ac_option >&5"
4691 case "(($ac_try" in
4692 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4693 *) ac_try_echo=$ac_try;;
4694 esac
4695 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4696 $as_echo "$ac_try_echo"; } >&5
4697 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4698 ac_status=$?
4699 if test -s conftest.err; then
4700 sed '10a\
4701 ... rest of stderr output deleted ...
4702 10q' conftest.err >conftest.er1
4703 cat conftest.er1 >&5
4704 rm -f conftest.er1 conftest.err
4706 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4707 test $ac_status = 0; }
4708 done
4710 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4711 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4712 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
4713 $as_echo_n "(cached) " >&6
4714 else
4715 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4716 /* end confdefs.h. */
4719 main ()
4721 #ifndef __GNUC__
4722 choke me
4723 #endif
4726 return 0;
4728 _ACEOF
4729 if ac_fn_c_try_compile "$LINENO"; then :
4730 ac_compiler_gnu=yes
4731 else
4732 ac_compiler_gnu=no
4734 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4735 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4739 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4740 if test $ac_compiler_gnu = yes; then
4741 GCC=yes
4742 else
4743 GCC=
4745 ac_test_CFLAGS=${CFLAGS+set}
4746 ac_save_CFLAGS=$CFLAGS
4747 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4748 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4749 if test "${ac_cv_prog_cc_g+set}" = set; then :
4750 $as_echo_n "(cached) " >&6
4751 else
4752 ac_save_c_werror_flag=$ac_c_werror_flag
4753 ac_c_werror_flag=yes
4754 ac_cv_prog_cc_g=no
4755 CFLAGS="-g"
4756 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4757 /* end confdefs.h. */
4760 main ()
4764 return 0;
4766 _ACEOF
4767 if ac_fn_c_try_compile "$LINENO"; then :
4768 ac_cv_prog_cc_g=yes
4769 else
4770 CFLAGS=""
4771 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4772 /* end confdefs.h. */
4775 main ()
4779 return 0;
4781 _ACEOF
4782 if ac_fn_c_try_compile "$LINENO"; then :
4784 else
4785 ac_c_werror_flag=$ac_save_c_werror_flag
4786 CFLAGS="-g"
4787 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4788 /* end confdefs.h. */
4791 main ()
4795 return 0;
4797 _ACEOF
4798 if ac_fn_c_try_compile "$LINENO"; then :
4799 ac_cv_prog_cc_g=yes
4801 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4803 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4805 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4806 ac_c_werror_flag=$ac_save_c_werror_flag
4808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4809 $as_echo "$ac_cv_prog_cc_g" >&6; }
4810 if test "$ac_test_CFLAGS" = set; then
4811 CFLAGS=$ac_save_CFLAGS
4812 elif test $ac_cv_prog_cc_g = yes; then
4813 if test "$GCC" = yes; then
4814 CFLAGS="-g -O2"
4815 else
4816 CFLAGS="-g"
4818 else
4819 if test "$GCC" = yes; then
4820 CFLAGS="-O2"
4821 else
4822 CFLAGS=
4825 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4826 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4827 if test "${ac_cv_prog_cc_c89+set}" = set; then :
4828 $as_echo_n "(cached) " >&6
4829 else
4830 ac_cv_prog_cc_c89=no
4831 ac_save_CC=$CC
4832 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4833 /* end confdefs.h. */
4834 #include <stdarg.h>
4835 #include <stdio.h>
4836 #include <sys/types.h>
4837 #include <sys/stat.h>
4838 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4839 struct buf { int x; };
4840 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4841 static char *e (p, i)
4842 char **p;
4843 int i;
4845 return p[i];
4847 static char *f (char * (*g) (char **, int), char **p, ...)
4849 char *s;
4850 va_list v;
4851 va_start (v,p);
4852 s = g (p, va_arg (v,int));
4853 va_end (v);
4854 return s;
4857 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4858 function prototypes and stuff, but not '\xHH' hex character constants.
4859 These don't provoke an error unfortunately, instead are silently treated
4860 as 'x'. The following induces an error, until -std is added to get
4861 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4862 array size at least. It's necessary to write '\x00'==0 to get something
4863 that's true only with -std. */
4864 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4866 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4867 inside strings and character constants. */
4868 #define FOO(x) 'x'
4869 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4871 int test (int i, double x);
4872 struct s1 {int (*f) (int a);};
4873 struct s2 {int (*f) (double a);};
4874 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4875 int argc;
4876 char **argv;
4878 main ()
4880 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4882 return 0;
4884 _ACEOF
4885 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4886 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4888 CC="$ac_save_CC $ac_arg"
4889 if ac_fn_c_try_compile "$LINENO"; then :
4890 ac_cv_prog_cc_c89=$ac_arg
4892 rm -f core conftest.err conftest.$ac_objext
4893 test "x$ac_cv_prog_cc_c89" != "xno" && break
4894 done
4895 rm -f conftest.$ac_ext
4896 CC=$ac_save_CC
4899 # AC_CACHE_VAL
4900 case "x$ac_cv_prog_cc_c89" in
4902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4903 $as_echo "none needed" >&6; } ;;
4904 xno)
4905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4906 $as_echo "unsupported" >&6; } ;;
4908 CC="$CC $ac_cv_prog_cc_c89"
4909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4910 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4911 esac
4912 if test "x$ac_cv_prog_cc_c89" != xno; then :
4916 ac_ext=c
4917 ac_cpp='$CPP $CPPFLAGS'
4918 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4919 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4920 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4926 if test -n "$ac_tool_prefix"; then
4927 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4928 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4929 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4930 $as_echo_n "checking for $ac_word... " >&6; }
4931 if test "${ac_cv_prog_RANLIB+set}" = set; then :
4932 $as_echo_n "(cached) " >&6
4933 else
4934 if test -n "$RANLIB"; then
4935 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4936 else
4937 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4938 for as_dir in $PATH
4940 IFS=$as_save_IFS
4941 test -z "$as_dir" && as_dir=.
4942 for ac_exec_ext in '' $ac_executable_extensions; do
4943 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4944 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4945 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4946 break 2
4948 done
4949 done
4950 IFS=$as_save_IFS
4954 RANLIB=$ac_cv_prog_RANLIB
4955 if test -n "$RANLIB"; then
4956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
4957 $as_echo "$RANLIB" >&6; }
4958 else
4959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4960 $as_echo "no" >&6; }
4965 if test -z "$ac_cv_prog_RANLIB"; then
4966 ac_ct_RANLIB=$RANLIB
4967 # Extract the first word of "ranlib", so it can be a program name with args.
4968 set dummy ranlib; ac_word=$2
4969 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4970 $as_echo_n "checking for $ac_word... " >&6; }
4971 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
4972 $as_echo_n "(cached) " >&6
4973 else
4974 if test -n "$ac_ct_RANLIB"; then
4975 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4976 else
4977 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4978 for as_dir in $PATH
4980 IFS=$as_save_IFS
4981 test -z "$as_dir" && as_dir=.
4982 for ac_exec_ext in '' $ac_executable_extensions; do
4983 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4984 ac_cv_prog_ac_ct_RANLIB="ranlib"
4985 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4986 break 2
4988 done
4989 done
4990 IFS=$as_save_IFS
4994 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4995 if test -n "$ac_ct_RANLIB"; then
4996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
4997 $as_echo "$ac_ct_RANLIB" >&6; }
4998 else
4999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5000 $as_echo "no" >&6; }
5003 if test "x$ac_ct_RANLIB" = x; then
5004 RANLIB=":"
5005 else
5006 case $cross_compiling:$ac_tool_warned in
5007 yes:)
5008 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5009 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5010 ac_tool_warned=yes ;;
5011 esac
5012 RANLIB=$ac_ct_RANLIB
5014 else
5015 RANLIB="$ac_cv_prog_RANLIB"
5019 for ac_prog in gawk mawk nawk awk
5021 # Extract the first word of "$ac_prog", so it can be a program name with args.
5022 set dummy $ac_prog; ac_word=$2
5023 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5024 $as_echo_n "checking for $ac_word... " >&6; }
5025 if test "${ac_cv_prog_AWK+set}" = set; then :
5026 $as_echo_n "(cached) " >&6
5027 else
5028 if test -n "$AWK"; then
5029 ac_cv_prog_AWK="$AWK" # Let the user override the test.
5030 else
5031 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5032 for as_dir in $PATH
5034 IFS=$as_save_IFS
5035 test -z "$as_dir" && as_dir=.
5036 for ac_exec_ext in '' $ac_executable_extensions; do
5037 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5038 ac_cv_prog_AWK="$ac_prog"
5039 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5040 break 2
5042 done
5043 done
5044 IFS=$as_save_IFS
5048 AWK=$ac_cv_prog_AWK
5049 if test -n "$AWK"; then
5050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
5051 $as_echo "$AWK" >&6; }
5052 else
5053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5054 $as_echo "no" >&6; }
5058 test -n "$AWK" && break
5059 done
5061 case "$AWK" in
5062 "") as_fn_error "can't build without awk" "$LINENO" 5 ;;
5063 esac
5065 case `pwd` in
5066 *\ * | *\ *)
5067 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
5068 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
5069 esac
5073 macro_version='2.2.7a'
5074 macro_revision='1.3134'
5088 ltmain="$ac_aux_dir/ltmain.sh"
5090 # Backslashify metacharacters that are still active within
5091 # double-quoted strings.
5092 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
5094 # Same as above, but do not quote variable references.
5095 double_quote_subst='s/\(["`\\]\)/\\\1/g'
5097 # Sed substitution to delay expansion of an escaped shell variable in a
5098 # double_quote_subst'ed string.
5099 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5101 # Sed substitution to delay expansion of an escaped single quote.
5102 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
5104 # Sed substitution to avoid accidental globbing in evaled expressions
5105 no_glob_subst='s/\*/\\\*/g'
5107 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
5108 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
5109 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
5111 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
5112 $as_echo_n "checking how to print strings... " >&6; }
5113 # Test print first, because it will be a builtin if present.
5114 if test "X`print -r -- -n 2>/dev/null`" = X-n && \
5115 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
5116 ECHO='print -r --'
5117 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
5118 ECHO='printf %s\n'
5119 else
5120 # Use this function as a fallback that always works.
5121 func_fallback_echo ()
5123 eval 'cat <<_LTECHO_EOF
5125 _LTECHO_EOF'
5127 ECHO='func_fallback_echo'
5130 # func_echo_all arg...
5131 # Invoke $ECHO with all args, space-separated.
5132 func_echo_all ()
5134 $ECHO ""
5137 case "$ECHO" in
5138 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
5139 $as_echo "printf" >&6; } ;;
5140 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
5141 $as_echo "print -r" >&6; } ;;
5142 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
5143 $as_echo "cat" >&6; } ;;
5144 esac
5159 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
5160 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
5161 if test "${ac_cv_path_SED+set}" = set; then :
5162 $as_echo_n "(cached) " >&6
5163 else
5164 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
5165 for ac_i in 1 2 3 4 5 6 7; do
5166 ac_script="$ac_script$as_nl$ac_script"
5167 done
5168 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
5169 { ac_script=; unset ac_script;}
5170 if test -z "$SED"; then
5171 ac_path_SED_found=false
5172 # Loop through the user's path and test for each of PROGNAME-LIST
5173 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5174 for as_dir in $PATH
5176 IFS=$as_save_IFS
5177 test -z "$as_dir" && as_dir=.
5178 for ac_prog in sed gsed; do
5179 for ac_exec_ext in '' $ac_executable_extensions; do
5180 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
5181 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
5182 # Check for GNU ac_path_SED and select it if it is found.
5183 # Check for GNU $ac_path_SED
5184 case `"$ac_path_SED" --version 2>&1` in
5185 *GNU*)
5186 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
5188 ac_count=0
5189 $as_echo_n 0123456789 >"conftest.in"
5190 while :
5192 cat "conftest.in" "conftest.in" >"conftest.tmp"
5193 mv "conftest.tmp" "conftest.in"
5194 cp "conftest.in" "conftest.nl"
5195 $as_echo '' >> "conftest.nl"
5196 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
5197 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5198 as_fn_arith $ac_count + 1 && ac_count=$as_val
5199 if test $ac_count -gt ${ac_path_SED_max-0}; then
5200 # Best one so far, save it but keep looking for a better one
5201 ac_cv_path_SED="$ac_path_SED"
5202 ac_path_SED_max=$ac_count
5204 # 10*(2^10) chars as input seems more than enough
5205 test $ac_count -gt 10 && break
5206 done
5207 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5208 esac
5210 $ac_path_SED_found && break 3
5211 done
5212 done
5213 done
5214 IFS=$as_save_IFS
5215 if test -z "$ac_cv_path_SED"; then
5216 as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
5218 else
5219 ac_cv_path_SED=$SED
5223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
5224 $as_echo "$ac_cv_path_SED" >&6; }
5225 SED="$ac_cv_path_SED"
5226 rm -f conftest.sed
5228 test -z "$SED" && SED=sed
5229 Xsed="$SED -e 1s/^X//"
5241 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
5242 $as_echo_n "checking for fgrep... " >&6; }
5243 if test "${ac_cv_path_FGREP+set}" = set; then :
5244 $as_echo_n "(cached) " >&6
5245 else
5246 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
5247 then ac_cv_path_FGREP="$GREP -F"
5248 else
5249 if test -z "$FGREP"; then
5250 ac_path_FGREP_found=false
5251 # Loop through the user's path and test for each of PROGNAME-LIST
5252 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5253 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5255 IFS=$as_save_IFS
5256 test -z "$as_dir" && as_dir=.
5257 for ac_prog in fgrep; do
5258 for ac_exec_ext in '' $ac_executable_extensions; do
5259 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
5260 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
5261 # Check for GNU ac_path_FGREP and select it if it is found.
5262 # Check for GNU $ac_path_FGREP
5263 case `"$ac_path_FGREP" --version 2>&1` in
5264 *GNU*)
5265 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
5267 ac_count=0
5268 $as_echo_n 0123456789 >"conftest.in"
5269 while :
5271 cat "conftest.in" "conftest.in" >"conftest.tmp"
5272 mv "conftest.tmp" "conftest.in"
5273 cp "conftest.in" "conftest.nl"
5274 $as_echo 'FGREP' >> "conftest.nl"
5275 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
5276 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5277 as_fn_arith $ac_count + 1 && ac_count=$as_val
5278 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5279 # Best one so far, save it but keep looking for a better one
5280 ac_cv_path_FGREP="$ac_path_FGREP"
5281 ac_path_FGREP_max=$ac_count
5283 # 10*(2^10) chars as input seems more than enough
5284 test $ac_count -gt 10 && break
5285 done
5286 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5287 esac
5289 $ac_path_FGREP_found && break 3
5290 done
5291 done
5292 done
5293 IFS=$as_save_IFS
5294 if test -z "$ac_cv_path_FGREP"; then
5295 as_fn_error "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5297 else
5298 ac_cv_path_FGREP=$FGREP
5303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
5304 $as_echo "$ac_cv_path_FGREP" >&6; }
5305 FGREP="$ac_cv_path_FGREP"
5308 test -z "$GREP" && GREP=grep
5328 # Check whether --with-gnu-ld was given.
5329 if test "${with_gnu_ld+set}" = set; then :
5330 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
5331 else
5332 with_gnu_ld=no
5335 ac_prog=ld
5336 if test "$GCC" = yes; then
5337 # Check if gcc -print-prog-name=ld gives a path.
5338 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5339 $as_echo_n "checking for ld used by $CC... " >&6; }
5340 case $host in
5341 *-*-mingw*)
5342 # gcc leaves a trailing carriage return which upsets mingw
5343 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5345 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5346 esac
5347 case $ac_prog in
5348 # Accept absolute paths.
5349 [\\/]* | ?:[\\/]*)
5350 re_direlt='/[^/][^/]*/\.\./'
5351 # Canonicalize the pathname of ld
5352 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5353 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5354 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5355 done
5356 test -z "$LD" && LD="$ac_prog"
5359 # If it fails, then pretend we aren't using GCC.
5360 ac_prog=ld
5363 # If it is relative, then search for the first ld in PATH.
5364 with_gnu_ld=unknown
5366 esac
5367 elif test "$with_gnu_ld" = yes; then
5368 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5369 $as_echo_n "checking for GNU ld... " >&6; }
5370 else
5371 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5372 $as_echo_n "checking for non-GNU ld... " >&6; }
5374 if test "${lt_cv_path_LD+set}" = set; then :
5375 $as_echo_n "(cached) " >&6
5376 else
5377 if test -z "$LD"; then
5378 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5379 for ac_dir in $PATH; do
5380 IFS="$lt_save_ifs"
5381 test -z "$ac_dir" && ac_dir=.
5382 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5383 lt_cv_path_LD="$ac_dir/$ac_prog"
5384 # Check to see if the program is GNU ld. I'd rather use --version,
5385 # but apparently some variants of GNU ld only accept -v.
5386 # Break only if it was the GNU/non-GNU ld that we prefer.
5387 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5388 *GNU* | *'with BFD'*)
5389 test "$with_gnu_ld" != no && break
5392 test "$with_gnu_ld" != yes && break
5394 esac
5396 done
5397 IFS="$lt_save_ifs"
5398 else
5399 lt_cv_path_LD="$LD" # Let the user override the test with a path.
5403 LD="$lt_cv_path_LD"
5404 if test -n "$LD"; then
5405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5406 $as_echo "$LD" >&6; }
5407 else
5408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5409 $as_echo "no" >&6; }
5411 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
5412 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5413 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
5414 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
5415 $as_echo_n "(cached) " >&6
5416 else
5417 # I'd rather use --version here, but apparently some GNU lds only accept -v.
5418 case `$LD -v 2>&1 </dev/null` in
5419 *GNU* | *'with BFD'*)
5420 lt_cv_prog_gnu_ld=yes
5423 lt_cv_prog_gnu_ld=no
5425 esac
5427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5428 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
5429 with_gnu_ld=$lt_cv_prog_gnu_ld
5439 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5440 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5441 if test "${lt_cv_path_NM+set}" = set; then :
5442 $as_echo_n "(cached) " >&6
5443 else
5444 if test -n "$NM"; then
5445 # Let the user override the test.
5446 lt_cv_path_NM="$NM"
5447 else
5448 lt_nm_to_check="${ac_tool_prefix}nm"
5449 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5450 lt_nm_to_check="$lt_nm_to_check nm"
5452 for lt_tmp_nm in $lt_nm_to_check; do
5453 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5454 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5455 IFS="$lt_save_ifs"
5456 test -z "$ac_dir" && ac_dir=.
5457 tmp_nm="$ac_dir/$lt_tmp_nm"
5458 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5459 # Check to see if the nm accepts a BSD-compat flag.
5460 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5461 # nm: unknown option "B" ignored
5462 # Tru64's nm complains that /dev/null is an invalid object file
5463 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5464 */dev/null* | *'Invalid file or object type'*)
5465 lt_cv_path_NM="$tmp_nm -B"
5466 break
5469 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5470 */dev/null*)
5471 lt_cv_path_NM="$tmp_nm -p"
5472 break
5475 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5476 continue # so that we can try to find one that supports BSD flags
5478 esac
5480 esac
5482 done
5483 IFS="$lt_save_ifs"
5484 done
5485 : ${lt_cv_path_NM=no}
5488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5489 $as_echo "$lt_cv_path_NM" >&6; }
5490 if test "$lt_cv_path_NM" != "no"; then
5491 NM="$lt_cv_path_NM"
5492 else
5493 # Didn't find any BSD compatible name lister, look for dumpbin.
5494 if test -n "$DUMPBIN"; then :
5495 # Let the user override the test.
5496 else
5497 if test -n "$ac_tool_prefix"; then
5498 for ac_prog in dumpbin "link -dump"
5500 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5501 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5502 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5503 $as_echo_n "checking for $ac_word... " >&6; }
5504 if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
5505 $as_echo_n "(cached) " >&6
5506 else
5507 if test -n "$DUMPBIN"; then
5508 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5509 else
5510 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5511 for as_dir in $PATH
5513 IFS=$as_save_IFS
5514 test -z "$as_dir" && as_dir=.
5515 for ac_exec_ext in '' $ac_executable_extensions; do
5516 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5517 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5518 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5519 break 2
5521 done
5522 done
5523 IFS=$as_save_IFS
5527 DUMPBIN=$ac_cv_prog_DUMPBIN
5528 if test -n "$DUMPBIN"; then
5529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5530 $as_echo "$DUMPBIN" >&6; }
5531 else
5532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5533 $as_echo "no" >&6; }
5537 test -n "$DUMPBIN" && break
5538 done
5540 if test -z "$DUMPBIN"; then
5541 ac_ct_DUMPBIN=$DUMPBIN
5542 for ac_prog in dumpbin "link -dump"
5544 # Extract the first word of "$ac_prog", so it can be a program name with args.
5545 set dummy $ac_prog; ac_word=$2
5546 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5547 $as_echo_n "checking for $ac_word... " >&6; }
5548 if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
5549 $as_echo_n "(cached) " >&6
5550 else
5551 if test -n "$ac_ct_DUMPBIN"; then
5552 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5553 else
5554 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5555 for as_dir in $PATH
5557 IFS=$as_save_IFS
5558 test -z "$as_dir" && as_dir=.
5559 for ac_exec_ext in '' $ac_executable_extensions; do
5560 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5561 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5562 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5563 break 2
5565 done
5566 done
5567 IFS=$as_save_IFS
5571 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5572 if test -n "$ac_ct_DUMPBIN"; then
5573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5574 $as_echo "$ac_ct_DUMPBIN" >&6; }
5575 else
5576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5577 $as_echo "no" >&6; }
5581 test -n "$ac_ct_DUMPBIN" && break
5582 done
5584 if test "x$ac_ct_DUMPBIN" = x; then
5585 DUMPBIN=":"
5586 else
5587 case $cross_compiling:$ac_tool_warned in
5588 yes:)
5589 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5590 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5591 ac_tool_warned=yes ;;
5592 esac
5593 DUMPBIN=$ac_ct_DUMPBIN
5597 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
5598 *COFF*)
5599 DUMPBIN="$DUMPBIN -symbols"
5602 DUMPBIN=:
5604 esac
5607 if test "$DUMPBIN" != ":"; then
5608 NM="$DUMPBIN"
5611 test -z "$NM" && NM=nm
5618 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5619 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
5620 if test "${lt_cv_nm_interface+set}" = set; then :
5621 $as_echo_n "(cached) " >&6
5622 else
5623 lt_cv_nm_interface="BSD nm"
5624 echo "int some_variable = 0;" > conftest.$ac_ext
5625 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
5626 (eval "$ac_compile" 2>conftest.err)
5627 cat conftest.err >&5
5628 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5629 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5630 cat conftest.err >&5
5631 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
5632 cat conftest.out >&5
5633 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5634 lt_cv_nm_interface="MS dumpbin"
5636 rm -f conftest*
5638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5639 $as_echo "$lt_cv_nm_interface" >&6; }
5641 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5642 $as_echo_n "checking whether ln -s works... " >&6; }
5643 LN_S=$as_ln_s
5644 if test "$LN_S" = "ln -s"; then
5645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5646 $as_echo "yes" >&6; }
5647 else
5648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5649 $as_echo "no, using $LN_S" >&6; }
5652 # find the maximum length of command line arguments
5653 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5654 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
5655 if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
5656 $as_echo_n "(cached) " >&6
5657 else
5659 teststring="ABCD"
5661 case $build_os in
5662 msdosdjgpp*)
5663 # On DJGPP, this test can blow up pretty badly due to problems in libc
5664 # (any single argument exceeding 2000 bytes causes a buffer overrun
5665 # during glob expansion). Even if it were fixed, the result of this
5666 # check would be larger than it should be.
5667 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5670 gnu*)
5671 # Under GNU Hurd, this test is not required because there is
5672 # no limit to the length of command line arguments.
5673 # Libtool will interpret -1 as no limit whatsoever
5674 lt_cv_sys_max_cmd_len=-1;
5677 cygwin* | mingw* | cegcc*)
5678 # On Win9x/ME, this test blows up -- it succeeds, but takes
5679 # about 5 minutes as the teststring grows exponentially.
5680 # Worse, since 9x/ME are not pre-emptively multitasking,
5681 # you end up with a "frozen" computer, even though with patience
5682 # the test eventually succeeds (with a max line length of 256k).
5683 # Instead, let's just punt: use the minimum linelength reported by
5684 # all of the supported platforms: 8192 (on NT/2K/XP).
5685 lt_cv_sys_max_cmd_len=8192;
5688 mint*)
5689 # On MiNT this can take a long time and run out of memory.
5690 lt_cv_sys_max_cmd_len=8192;
5693 amigaos*)
5694 # On AmigaOS with pdksh, this test takes hours, literally.
5695 # So we just punt and use a minimum line length of 8192.
5696 lt_cv_sys_max_cmd_len=8192;
5699 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5700 # This has been around since 386BSD, at least. Likely further.
5701 if test -x /sbin/sysctl; then
5702 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5703 elif test -x /usr/sbin/sysctl; then
5704 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5705 else
5706 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
5708 # And add a safety zone
5709 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5710 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5713 interix*)
5714 # We know the value 262144 and hardcode it with a safety zone (like BSD)
5715 lt_cv_sys_max_cmd_len=196608
5718 osf*)
5719 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5720 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5721 # nice to cause kernel panics so lets avoid the loop below.
5722 # First set a reasonable default.
5723 lt_cv_sys_max_cmd_len=16384
5725 if test -x /sbin/sysconfig; then
5726 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5727 *1*) lt_cv_sys_max_cmd_len=-1 ;;
5728 esac
5731 sco3.2v5*)
5732 lt_cv_sys_max_cmd_len=102400
5734 sysv5* | sco5v6* | sysv4.2uw2*)
5735 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5736 if test -n "$kargmax"; then
5737 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
5738 else
5739 lt_cv_sys_max_cmd_len=32768
5743 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5744 if test -n "$lt_cv_sys_max_cmd_len"; then
5745 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5746 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5747 else
5748 # Make teststring a little bigger before we do anything with it.
5749 # a 1K string should be a reasonable start.
5750 for i in 1 2 3 4 5 6 7 8 ; do
5751 teststring=$teststring$teststring
5752 done
5753 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5754 # If test is not a shell built-in, we'll probably end up computing a
5755 # maximum length that is only half of the actual maximum length, but
5756 # we can't tell.
5757 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
5758 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
5759 test $i != 17 # 1/2 MB should be enough
5761 i=`expr $i + 1`
5762 teststring=$teststring$teststring
5763 done
5764 # Only check the string length outside the loop.
5765 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5766 teststring=
5767 # Add a significant safety factor because C++ compilers can tack on
5768 # massive amounts of additional arguments before passing them to the
5769 # linker. It appears as though 1/2 is a usable value.
5770 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5773 esac
5777 if test -n $lt_cv_sys_max_cmd_len ; then
5778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5779 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
5780 else
5781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
5782 $as_echo "none" >&6; }
5784 max_cmd_len=$lt_cv_sys_max_cmd_len
5791 : ${CP="cp -f"}
5792 : ${MV="mv -f"}
5793 : ${RM="rm -f"}
5795 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
5796 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
5797 # Try some XSI features
5798 xsi_shell=no
5799 ( _lt_dummy="a/b/c"
5800 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
5801 = c,a/b,, \
5802 && eval 'test $(( 1 + 1 )) -eq 2 \
5803 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
5804 && xsi_shell=yes
5805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
5806 $as_echo "$xsi_shell" >&6; }
5809 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
5810 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
5811 lt_shell_append=no
5812 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
5813 >/dev/null 2>&1 \
5814 && lt_shell_append=yes
5815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
5816 $as_echo "$lt_shell_append" >&6; }
5819 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5820 lt_unset=unset
5821 else
5822 lt_unset=false
5829 # test EBCDIC or ASCII
5830 case `echo X|tr X '\101'` in
5831 A) # ASCII based system
5832 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5833 lt_SP2NL='tr \040 \012'
5834 lt_NL2SP='tr \015\012 \040\040'
5836 *) # EBCDIC based system
5837 lt_SP2NL='tr \100 \n'
5838 lt_NL2SP='tr \r\n \100\100'
5840 esac
5850 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5851 $as_echo_n "checking for $LD option to reload object files... " >&6; }
5852 if test "${lt_cv_ld_reload_flag+set}" = set; then :
5853 $as_echo_n "(cached) " >&6
5854 else
5855 lt_cv_ld_reload_flag='-r'
5857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5858 $as_echo "$lt_cv_ld_reload_flag" >&6; }
5859 reload_flag=$lt_cv_ld_reload_flag
5860 case $reload_flag in
5861 "" | " "*) ;;
5862 *) reload_flag=" $reload_flag" ;;
5863 esac
5864 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5865 case $host_os in
5866 darwin*)
5867 if test "$GCC" = yes; then
5868 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5869 else
5870 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5873 esac
5883 if test -n "$ac_tool_prefix"; then
5884 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5885 set dummy ${ac_tool_prefix}objdump; ac_word=$2
5886 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5887 $as_echo_n "checking for $ac_word... " >&6; }
5888 if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
5889 $as_echo_n "(cached) " >&6
5890 else
5891 if test -n "$OBJDUMP"; then
5892 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5893 else
5894 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5895 for as_dir in $PATH
5897 IFS=$as_save_IFS
5898 test -z "$as_dir" && as_dir=.
5899 for ac_exec_ext in '' $ac_executable_extensions; do
5900 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5901 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5902 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5903 break 2
5905 done
5906 done
5907 IFS=$as_save_IFS
5911 OBJDUMP=$ac_cv_prog_OBJDUMP
5912 if test -n "$OBJDUMP"; then
5913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5914 $as_echo "$OBJDUMP" >&6; }
5915 else
5916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5917 $as_echo "no" >&6; }
5922 if test -z "$ac_cv_prog_OBJDUMP"; then
5923 ac_ct_OBJDUMP=$OBJDUMP
5924 # Extract the first word of "objdump", so it can be a program name with args.
5925 set dummy objdump; ac_word=$2
5926 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5927 $as_echo_n "checking for $ac_word... " >&6; }
5928 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
5929 $as_echo_n "(cached) " >&6
5930 else
5931 if test -n "$ac_ct_OBJDUMP"; then
5932 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5933 else
5934 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5935 for as_dir in $PATH
5937 IFS=$as_save_IFS
5938 test -z "$as_dir" && as_dir=.
5939 for ac_exec_ext in '' $ac_executable_extensions; do
5940 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5941 ac_cv_prog_ac_ct_OBJDUMP="objdump"
5942 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5943 break 2
5945 done
5946 done
5947 IFS=$as_save_IFS
5951 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5952 if test -n "$ac_ct_OBJDUMP"; then
5953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5954 $as_echo "$ac_ct_OBJDUMP" >&6; }
5955 else
5956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5957 $as_echo "no" >&6; }
5960 if test "x$ac_ct_OBJDUMP" = x; then
5961 OBJDUMP="false"
5962 else
5963 case $cross_compiling:$ac_tool_warned in
5964 yes:)
5965 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5966 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5967 ac_tool_warned=yes ;;
5968 esac
5969 OBJDUMP=$ac_ct_OBJDUMP
5971 else
5972 OBJDUMP="$ac_cv_prog_OBJDUMP"
5975 test -z "$OBJDUMP" && OBJDUMP=objdump
5985 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5986 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
5987 if test "${lt_cv_deplibs_check_method+set}" = set; then :
5988 $as_echo_n "(cached) " >&6
5989 else
5990 lt_cv_file_magic_cmd='$MAGIC_CMD'
5991 lt_cv_file_magic_test_file=
5992 lt_cv_deplibs_check_method='unknown'
5993 # Need to set the preceding variable on all platforms that support
5994 # interlibrary dependencies.
5995 # 'none' -- dependencies not supported.
5996 # `unknown' -- same as none, but documents that we really don't know.
5997 # 'pass_all' -- all dependencies passed with no checks.
5998 # 'test_compile' -- check by making test program.
5999 # 'file_magic [[regex]]' -- check by looking for files in library path
6000 # which responds to the $file_magic_cmd with a given extended regex.
6001 # If you have `file' or equivalent on your system and you're not sure
6002 # whether `pass_all' will *always* work, you probably want this one.
6004 case $host_os in
6005 aix[4-9]*)
6006 lt_cv_deplibs_check_method=pass_all
6009 beos*)
6010 lt_cv_deplibs_check_method=pass_all
6013 bsdi[45]*)
6014 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6015 lt_cv_file_magic_cmd='/usr/bin/file -L'
6016 lt_cv_file_magic_test_file=/shlib/libc.so
6019 cygwin*)
6020 # func_win32_libid is a shell function defined in ltmain.sh
6021 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6022 lt_cv_file_magic_cmd='func_win32_libid'
6025 mingw* | pw32*)
6026 # Base MSYS/MinGW do not provide the 'file' command needed by
6027 # func_win32_libid shell function, so use a weaker test based on 'objdump',
6028 # unless we find 'file', for example because we are cross-compiling.
6029 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
6030 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
6031 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6032 lt_cv_file_magic_cmd='func_win32_libid'
6033 else
6034 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
6035 lt_cv_file_magic_cmd='$OBJDUMP -f'
6039 cegcc*)
6040 # use the weaker test based on 'objdump'. See mingw*.
6041 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
6042 lt_cv_file_magic_cmd='$OBJDUMP -f'
6045 darwin* | rhapsody*)
6046 lt_cv_deplibs_check_method=pass_all
6049 freebsd* | dragonfly*)
6050 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6051 case $host_cpu in
6052 i*86 )
6053 # Not sure whether the presence of OpenBSD here was a mistake.
6054 # Let's accept both of them until this is cleared up.
6055 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6056 lt_cv_file_magic_cmd=/usr/bin/file
6057 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6059 esac
6060 else
6061 lt_cv_deplibs_check_method=pass_all
6065 gnu*)
6066 lt_cv_deplibs_check_method=pass_all
6069 haiku*)
6070 lt_cv_deplibs_check_method=pass_all
6073 hpux10.20* | hpux11*)
6074 lt_cv_file_magic_cmd=/usr/bin/file
6075 case $host_cpu in
6076 ia64*)
6077 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6078 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6080 hppa*64*)
6081 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]'
6082 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6085 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
6086 lt_cv_file_magic_test_file=/usr/lib/libc.sl
6088 esac
6091 interix[3-9]*)
6092 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6093 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6096 irix5* | irix6* | nonstopux*)
6097 case $LD in
6098 *-32|*"-32 ") libmagic=32-bit;;
6099 *-n32|*"-n32 ") libmagic=N32;;
6100 *-64|*"-64 ") libmagic=64-bit;;
6101 *) libmagic=never-match;;
6102 esac
6103 lt_cv_deplibs_check_method=pass_all
6106 # This must be Linux ELF.
6107 linux* | k*bsd*-gnu | kopensolaris*-gnu)
6108 lt_cv_deplibs_check_method=pass_all
6111 netbsd*)
6112 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6113 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6114 else
6115 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6119 newos6*)
6120 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6121 lt_cv_file_magic_cmd=/usr/bin/file
6122 lt_cv_file_magic_test_file=/usr/lib/libnls.so
6125 *nto* | *qnx*)
6126 lt_cv_deplibs_check_method=pass_all
6129 openbsd*)
6130 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6131 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6132 else
6133 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6137 osf3* | osf4* | osf5*)
6138 lt_cv_deplibs_check_method=pass_all
6141 rdos*)
6142 lt_cv_deplibs_check_method=pass_all
6145 solaris*)
6146 lt_cv_deplibs_check_method=pass_all
6149 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6150 lt_cv_deplibs_check_method=pass_all
6153 sysv4 | sysv4.3*)
6154 case $host_vendor in
6155 motorola)
6156 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]'
6157 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6159 ncr)
6160 lt_cv_deplibs_check_method=pass_all
6162 sequent)
6163 lt_cv_file_magic_cmd='/bin/file'
6164 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6166 sni)
6167 lt_cv_file_magic_cmd='/bin/file'
6168 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6169 lt_cv_file_magic_test_file=/lib/libc.so
6171 siemens)
6172 lt_cv_deplibs_check_method=pass_all
6175 lt_cv_deplibs_check_method=pass_all
6177 esac
6180 tpf*)
6181 lt_cv_deplibs_check_method=pass_all
6183 esac
6186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
6187 $as_echo "$lt_cv_deplibs_check_method" >&6; }
6188 file_magic_cmd=$lt_cv_file_magic_cmd
6189 deplibs_check_method=$lt_cv_deplibs_check_method
6190 test -z "$deplibs_check_method" && deplibs_check_method=unknown
6203 if test -n "$ac_tool_prefix"; then
6204 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6205 set dummy ${ac_tool_prefix}ar; ac_word=$2
6206 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6207 $as_echo_n "checking for $ac_word... " >&6; }
6208 if test "${ac_cv_prog_AR+set}" = set; then :
6209 $as_echo_n "(cached) " >&6
6210 else
6211 if test -n "$AR"; then
6212 ac_cv_prog_AR="$AR" # Let the user override the test.
6213 else
6214 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6215 for as_dir in $PATH
6217 IFS=$as_save_IFS
6218 test -z "$as_dir" && as_dir=.
6219 for ac_exec_ext in '' $ac_executable_extensions; do
6220 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6221 ac_cv_prog_AR="${ac_tool_prefix}ar"
6222 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6223 break 2
6225 done
6226 done
6227 IFS=$as_save_IFS
6231 AR=$ac_cv_prog_AR
6232 if test -n "$AR"; then
6233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6234 $as_echo "$AR" >&6; }
6235 else
6236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6237 $as_echo "no" >&6; }
6242 if test -z "$ac_cv_prog_AR"; then
6243 ac_ct_AR=$AR
6244 # Extract the first word of "ar", so it can be a program name with args.
6245 set dummy ar; ac_word=$2
6246 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6247 $as_echo_n "checking for $ac_word... " >&6; }
6248 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
6249 $as_echo_n "(cached) " >&6
6250 else
6251 if test -n "$ac_ct_AR"; then
6252 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6253 else
6254 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6255 for as_dir in $PATH
6257 IFS=$as_save_IFS
6258 test -z "$as_dir" && as_dir=.
6259 for ac_exec_ext in '' $ac_executable_extensions; do
6260 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6261 ac_cv_prog_ac_ct_AR="ar"
6262 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6263 break 2
6265 done
6266 done
6267 IFS=$as_save_IFS
6271 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6272 if test -n "$ac_ct_AR"; then
6273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6274 $as_echo "$ac_ct_AR" >&6; }
6275 else
6276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6277 $as_echo "no" >&6; }
6280 if test "x$ac_ct_AR" = x; then
6281 AR="false"
6282 else
6283 case $cross_compiling:$ac_tool_warned in
6284 yes:)
6285 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6286 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6287 ac_tool_warned=yes ;;
6288 esac
6289 AR=$ac_ct_AR
6291 else
6292 AR="$ac_cv_prog_AR"
6295 test -z "$AR" && AR=ar
6296 test -z "$AR_FLAGS" && AR_FLAGS=cru
6308 if test -n "$ac_tool_prefix"; then
6309 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6310 set dummy ${ac_tool_prefix}strip; ac_word=$2
6311 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6312 $as_echo_n "checking for $ac_word... " >&6; }
6313 if test "${ac_cv_prog_STRIP+set}" = set; then :
6314 $as_echo_n "(cached) " >&6
6315 else
6316 if test -n "$STRIP"; then
6317 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6318 else
6319 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6320 for as_dir in $PATH
6322 IFS=$as_save_IFS
6323 test -z "$as_dir" && as_dir=.
6324 for ac_exec_ext in '' $ac_executable_extensions; do
6325 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6326 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6327 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6328 break 2
6330 done
6331 done
6332 IFS=$as_save_IFS
6336 STRIP=$ac_cv_prog_STRIP
6337 if test -n "$STRIP"; then
6338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6339 $as_echo "$STRIP" >&6; }
6340 else
6341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6342 $as_echo "no" >&6; }
6347 if test -z "$ac_cv_prog_STRIP"; then
6348 ac_ct_STRIP=$STRIP
6349 # Extract the first word of "strip", so it can be a program name with args.
6350 set dummy strip; ac_word=$2
6351 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6352 $as_echo_n "checking for $ac_word... " >&6; }
6353 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
6354 $as_echo_n "(cached) " >&6
6355 else
6356 if test -n "$ac_ct_STRIP"; then
6357 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6358 else
6359 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6360 for as_dir in $PATH
6362 IFS=$as_save_IFS
6363 test -z "$as_dir" && as_dir=.
6364 for ac_exec_ext in '' $ac_executable_extensions; do
6365 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6366 ac_cv_prog_ac_ct_STRIP="strip"
6367 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6368 break 2
6370 done
6371 done
6372 IFS=$as_save_IFS
6376 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6377 if test -n "$ac_ct_STRIP"; then
6378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6379 $as_echo "$ac_ct_STRIP" >&6; }
6380 else
6381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6382 $as_echo "no" >&6; }
6385 if test "x$ac_ct_STRIP" = x; then
6386 STRIP=":"
6387 else
6388 case $cross_compiling:$ac_tool_warned in
6389 yes:)
6390 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6391 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6392 ac_tool_warned=yes ;;
6393 esac
6394 STRIP=$ac_ct_STRIP
6396 else
6397 STRIP="$ac_cv_prog_STRIP"
6400 test -z "$STRIP" && STRIP=:
6407 if test -n "$ac_tool_prefix"; then
6408 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6409 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6410 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6411 $as_echo_n "checking for $ac_word... " >&6; }
6412 if test "${ac_cv_prog_RANLIB+set}" = set; then :
6413 $as_echo_n "(cached) " >&6
6414 else
6415 if test -n "$RANLIB"; then
6416 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6417 else
6418 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6419 for as_dir in $PATH
6421 IFS=$as_save_IFS
6422 test -z "$as_dir" && as_dir=.
6423 for ac_exec_ext in '' $ac_executable_extensions; do
6424 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6425 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6426 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6427 break 2
6429 done
6430 done
6431 IFS=$as_save_IFS
6435 RANLIB=$ac_cv_prog_RANLIB
6436 if test -n "$RANLIB"; then
6437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6438 $as_echo "$RANLIB" >&6; }
6439 else
6440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6441 $as_echo "no" >&6; }
6446 if test -z "$ac_cv_prog_RANLIB"; then
6447 ac_ct_RANLIB=$RANLIB
6448 # Extract the first word of "ranlib", so it can be a program name with args.
6449 set dummy ranlib; ac_word=$2
6450 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6451 $as_echo_n "checking for $ac_word... " >&6; }
6452 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
6453 $as_echo_n "(cached) " >&6
6454 else
6455 if test -n "$ac_ct_RANLIB"; then
6456 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6457 else
6458 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6459 for as_dir in $PATH
6461 IFS=$as_save_IFS
6462 test -z "$as_dir" && as_dir=.
6463 for ac_exec_ext in '' $ac_executable_extensions; do
6464 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6465 ac_cv_prog_ac_ct_RANLIB="ranlib"
6466 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6467 break 2
6469 done
6470 done
6471 IFS=$as_save_IFS
6475 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6476 if test -n "$ac_ct_RANLIB"; then
6477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6478 $as_echo "$ac_ct_RANLIB" >&6; }
6479 else
6480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6481 $as_echo "no" >&6; }
6484 if test "x$ac_ct_RANLIB" = x; then
6485 RANLIB=":"
6486 else
6487 case $cross_compiling:$ac_tool_warned in
6488 yes:)
6489 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6490 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6491 ac_tool_warned=yes ;;
6492 esac
6493 RANLIB=$ac_ct_RANLIB
6495 else
6496 RANLIB="$ac_cv_prog_RANLIB"
6499 test -z "$RANLIB" && RANLIB=:
6506 # Determine commands to create old-style static archives.
6507 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6508 old_postinstall_cmds='chmod 644 $oldlib'
6509 old_postuninstall_cmds=
6511 if test -n "$RANLIB"; then
6512 case $host_os in
6513 openbsd*)
6514 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
6517 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
6519 esac
6520 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6523 case $host_os in
6524 darwin*)
6525 lock_old_archive_extraction=yes ;;
6527 lock_old_archive_extraction=no ;;
6528 esac
6568 # If no C compiler was specified, use CC.
6569 LTCC=${LTCC-"$CC"}
6571 # If no C compiler flags were specified, use CFLAGS.
6572 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6574 # Allow CC to be a program name with arguments.
6575 compiler=$CC
6578 # Check for command to grab the raw symbol name followed by C symbol from nm.
6579 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6580 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6581 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
6582 $as_echo_n "(cached) " >&6
6583 else
6585 # These are sane defaults that work on at least a few old systems.
6586 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
6588 # Character class describing NM global symbol codes.
6589 symcode='[BCDEGRST]'
6591 # Regexp to match symbols that can be accessed directly from C.
6592 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6594 # Define system-specific variables.
6595 case $host_os in
6596 aix*)
6597 symcode='[BCDT]'
6599 cygwin* | mingw* | pw32* | cegcc*)
6600 symcode='[ABCDGISTW]'
6602 hpux*)
6603 if test "$host_cpu" = ia64; then
6604 symcode='[ABCDEGRST]'
6607 irix* | nonstopux*)
6608 symcode='[BCDEGRST]'
6610 osf*)
6611 symcode='[BCDEGQRST]'
6613 solaris*)
6614 symcode='[BDRT]'
6616 sco3.2v5*)
6617 symcode='[DT]'
6619 sysv4.2uw2*)
6620 symcode='[DT]'
6622 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6623 symcode='[ABDT]'
6625 sysv4)
6626 symcode='[DFNSTU]'
6628 esac
6630 # If we're using GNU nm, then use its standard symbol codes.
6631 case `$NM -V 2>&1` in
6632 *GNU* | *'with BFD'*)
6633 symcode='[ABCDGIRSTW]' ;;
6634 esac
6636 # Transform an extracted symbol line into a proper C declaration.
6637 # Some systems (esp. on ia64) link data and code symbols differently,
6638 # so use this general approach.
6639 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6641 # Transform an extracted symbol line into symbol name and symbol address
6642 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
6643 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'"
6645 # Handle CRLF in mingw tool chain
6646 opt_cr=
6647 case $build_os in
6648 mingw*)
6649 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6651 esac
6653 # Try without a prefix underscore, then with it.
6654 for ac_symprfx in "" "_"; do
6656 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6657 symxfrm="\\1 $ac_symprfx\\2 \\2"
6659 # Write the raw and C identifiers.
6660 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6661 # Fake it for dumpbin and say T for any non-static function
6662 # and D for any global variable.
6663 # Also find C++ and __fastcall symbols from MSVC++,
6664 # which start with @ or ?.
6665 lt_cv_sys_global_symbol_pipe="$AWK '"\
6666 " {last_section=section; section=\$ 3};"\
6667 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6668 " \$ 0!~/External *\|/{next};"\
6669 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6670 " {if(hide[section]) next};"\
6671 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
6672 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
6673 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
6674 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
6675 " ' prfx=^$ac_symprfx"
6676 else
6677 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6680 # Check to see that the pipe works correctly.
6681 pipe_works=no
6683 rm -f conftest*
6684 cat > conftest.$ac_ext <<_LT_EOF
6685 #ifdef __cplusplus
6686 extern "C" {
6687 #endif
6688 char nm_test_var;
6689 void nm_test_func(void);
6690 void nm_test_func(void){}
6691 #ifdef __cplusplus
6693 #endif
6694 int main(){nm_test_var='a';nm_test_func();return(0);}
6695 _LT_EOF
6697 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6698 (eval $ac_compile) 2>&5
6699 ac_status=$?
6700 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6701 test $ac_status = 0; }; then
6702 # Now try to grab the symbols.
6703 nlist=conftest.nm
6704 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
6705 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
6706 ac_status=$?
6707 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6708 test $ac_status = 0; } && test -s "$nlist"; then
6709 # Try sorting and uniquifying the output.
6710 if sort "$nlist" | uniq > "$nlist"T; then
6711 mv -f "$nlist"T "$nlist"
6712 else
6713 rm -f "$nlist"T
6716 # Make sure that we snagged all the symbols we need.
6717 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6718 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6719 cat <<_LT_EOF > conftest.$ac_ext
6720 #ifdef __cplusplus
6721 extern "C" {
6722 #endif
6724 _LT_EOF
6725 # Now generate the symbol file.
6726 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6728 cat <<_LT_EOF >> conftest.$ac_ext
6730 /* The mapping between symbol names and symbols. */
6731 const struct {
6732 const char *name;
6733 void *address;
6735 lt__PROGRAM__LTX_preloaded_symbols[] =
6737 { "@PROGRAM@", (void *) 0 },
6738 _LT_EOF
6739 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6740 cat <<\_LT_EOF >> conftest.$ac_ext
6741 {0, (void *) 0}
6744 /* This works around a problem in FreeBSD linker */
6745 #ifdef FREEBSD_WORKAROUND
6746 static const void *lt_preloaded_setup() {
6747 return lt__PROGRAM__LTX_preloaded_symbols;
6749 #endif
6751 #ifdef __cplusplus
6753 #endif
6754 _LT_EOF
6755 # Now try linking the two files.
6756 mv conftest.$ac_objext conftstm.$ac_objext
6757 lt_save_LIBS="$LIBS"
6758 lt_save_CFLAGS="$CFLAGS"
6759 LIBS="conftstm.$ac_objext"
6760 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6761 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6762 (eval $ac_link) 2>&5
6763 ac_status=$?
6764 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6765 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
6766 pipe_works=yes
6768 LIBS="$lt_save_LIBS"
6769 CFLAGS="$lt_save_CFLAGS"
6770 else
6771 echo "cannot find nm_test_func in $nlist" >&5
6773 else
6774 echo "cannot find nm_test_var in $nlist" >&5
6776 else
6777 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6779 else
6780 echo "$progname: failed program was:" >&5
6781 cat conftest.$ac_ext >&5
6783 rm -rf conftest* conftst*
6785 # Do not use the global_symbol_pipe unless it works.
6786 if test "$pipe_works" = yes; then
6787 break
6788 else
6789 lt_cv_sys_global_symbol_pipe=
6791 done
6795 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6796 lt_cv_sys_global_symbol_to_cdecl=
6798 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6800 $as_echo "failed" >&6; }
6801 else
6802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6803 $as_echo "ok" >&6; }
6827 # Check whether --enable-libtool-lock was given.
6828 if test "${enable_libtool_lock+set}" = set; then :
6829 enableval=$enable_libtool_lock;
6832 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6834 # Some flags need to be propagated to the compiler or linker for good
6835 # libtool support.
6836 case $host in
6837 ia64-*-hpux*)
6838 # Find out which ABI we are using.
6839 echo 'int i;' > conftest.$ac_ext
6840 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6841 (eval $ac_compile) 2>&5
6842 ac_status=$?
6843 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6844 test $ac_status = 0; }; then
6845 case `/usr/bin/file conftest.$ac_objext` in
6846 *ELF-32*)
6847 HPUX_IA64_MODE="32"
6849 *ELF-64*)
6850 HPUX_IA64_MODE="64"
6852 esac
6854 rm -rf conftest*
6856 *-*-irix6*)
6857 # Find out which ABI we are using.
6858 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6859 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6860 (eval $ac_compile) 2>&5
6861 ac_status=$?
6862 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6863 test $ac_status = 0; }; then
6864 if test "$lt_cv_prog_gnu_ld" = yes; then
6865 case `/usr/bin/file conftest.$ac_objext` in
6866 *32-bit*)
6867 LD="${LD-ld} -melf32bsmip"
6869 *N32*)
6870 LD="${LD-ld} -melf32bmipn32"
6872 *64-bit*)
6873 LD="${LD-ld} -melf64bmip"
6875 esac
6876 else
6877 case `/usr/bin/file conftest.$ac_objext` in
6878 *32-bit*)
6879 LD="${LD-ld} -32"
6881 *N32*)
6882 LD="${LD-ld} -n32"
6884 *64-bit*)
6885 LD="${LD-ld} -64"
6887 esac
6890 rm -rf conftest*
6893 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
6894 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6895 # Find out which ABI we are using.
6896 echo 'int i;' > conftest.$ac_ext
6897 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6898 (eval $ac_compile) 2>&5
6899 ac_status=$?
6900 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6901 test $ac_status = 0; }; then
6902 case `/usr/bin/file conftest.o` in
6903 *32-bit*)
6904 case $host in
6905 x86_64-*kfreebsd*-gnu)
6906 LD="${LD-ld} -m elf_i386_fbsd"
6908 x86_64-*linux*)
6909 case `/usr/bin/file conftest.o` in
6910 *x86-64*)
6911 LD="${LD-ld} -m elf32_x86_64"
6914 LD="${LD-ld} -m elf_i386"
6916 esac
6918 powerpc64le-*linux*)
6919 LD="${LD-ld} -m elf32lppclinux"
6921 powerpc64-*linux*)
6922 LD="${LD-ld} -m elf32ppclinux"
6924 s390x-*linux*)
6925 LD="${LD-ld} -m elf_s390"
6927 sparc64-*linux*)
6928 LD="${LD-ld} -m elf32_sparc"
6930 esac
6932 *64-bit*)
6933 case $host in
6934 x86_64-*kfreebsd*-gnu)
6935 LD="${LD-ld} -m elf_x86_64_fbsd"
6937 x86_64-*linux*)
6938 LD="${LD-ld} -m elf_x86_64"
6940 powerpcle-*linux*)
6941 LD="${LD-ld} -m elf64lppc"
6943 powerpc-*linux*)
6944 LD="${LD-ld} -m elf64ppc"
6946 s390*-*linux*|s390*-*tpf*)
6947 LD="${LD-ld} -m elf64_s390"
6949 sparc*-*linux*)
6950 LD="${LD-ld} -m elf64_sparc"
6952 esac
6954 esac
6956 rm -rf conftest*
6959 *-*-sco3.2v5*)
6960 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6961 SAVE_CFLAGS="$CFLAGS"
6962 CFLAGS="$CFLAGS -belf"
6963 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
6964 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
6965 if test "${lt_cv_cc_needs_belf+set}" = set; then :
6966 $as_echo_n "(cached) " >&6
6967 else
6968 ac_ext=c
6969 ac_cpp='$CPP $CPPFLAGS'
6970 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6971 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6972 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6974 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6975 /* end confdefs.h. */
6978 main ()
6982 return 0;
6984 _ACEOF
6985 if ac_fn_c_try_link "$LINENO"; then :
6986 lt_cv_cc_needs_belf=yes
6987 else
6988 lt_cv_cc_needs_belf=no
6990 rm -f core conftest.err conftest.$ac_objext \
6991 conftest$ac_exeext conftest.$ac_ext
6992 ac_ext=c
6993 ac_cpp='$CPP $CPPFLAGS'
6994 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6995 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6996 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
7000 $as_echo "$lt_cv_cc_needs_belf" >&6; }
7001 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
7002 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7003 CFLAGS="$SAVE_CFLAGS"
7006 sparc*-*solaris*)
7007 # Find out which ABI we are using.
7008 echo 'int i;' > conftest.$ac_ext
7009 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7010 (eval $ac_compile) 2>&5
7011 ac_status=$?
7012 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7013 test $ac_status = 0; }; then
7014 case `/usr/bin/file conftest.o` in
7015 *64-bit*)
7016 case $lt_cv_prog_gnu_ld in
7017 yes*) LD="${LD-ld} -m elf64_sparc" ;;
7019 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7020 LD="${LD-ld} -64"
7023 esac
7025 esac
7027 rm -rf conftest*
7029 esac
7031 need_locks="$enable_libtool_lock"
7034 case $host_os in
7035 rhapsody* | darwin*)
7036 if test -n "$ac_tool_prefix"; then
7037 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7038 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7039 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7040 $as_echo_n "checking for $ac_word... " >&6; }
7041 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
7042 $as_echo_n "(cached) " >&6
7043 else
7044 if test -n "$DSYMUTIL"; then
7045 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7046 else
7047 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7048 for as_dir in $PATH
7050 IFS=$as_save_IFS
7051 test -z "$as_dir" && as_dir=.
7052 for ac_exec_ext in '' $ac_executable_extensions; do
7053 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7054 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7055 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7056 break 2
7058 done
7059 done
7060 IFS=$as_save_IFS
7064 DSYMUTIL=$ac_cv_prog_DSYMUTIL
7065 if test -n "$DSYMUTIL"; then
7066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
7067 $as_echo "$DSYMUTIL" >&6; }
7068 else
7069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7070 $as_echo "no" >&6; }
7075 if test -z "$ac_cv_prog_DSYMUTIL"; then
7076 ac_ct_DSYMUTIL=$DSYMUTIL
7077 # Extract the first word of "dsymutil", so it can be a program name with args.
7078 set dummy dsymutil; ac_word=$2
7079 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7080 $as_echo_n "checking for $ac_word... " >&6; }
7081 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
7082 $as_echo_n "(cached) " >&6
7083 else
7084 if test -n "$ac_ct_DSYMUTIL"; then
7085 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7086 else
7087 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7088 for as_dir in $PATH
7090 IFS=$as_save_IFS
7091 test -z "$as_dir" && as_dir=.
7092 for ac_exec_ext in '' $ac_executable_extensions; do
7093 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7094 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7095 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7096 break 2
7098 done
7099 done
7100 IFS=$as_save_IFS
7104 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7105 if test -n "$ac_ct_DSYMUTIL"; then
7106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
7107 $as_echo "$ac_ct_DSYMUTIL" >&6; }
7108 else
7109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7110 $as_echo "no" >&6; }
7113 if test "x$ac_ct_DSYMUTIL" = x; then
7114 DSYMUTIL=":"
7115 else
7116 case $cross_compiling:$ac_tool_warned in
7117 yes:)
7118 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7119 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7120 ac_tool_warned=yes ;;
7121 esac
7122 DSYMUTIL=$ac_ct_DSYMUTIL
7124 else
7125 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7128 if test -n "$ac_tool_prefix"; then
7129 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7130 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7131 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7132 $as_echo_n "checking for $ac_word... " >&6; }
7133 if test "${ac_cv_prog_NMEDIT+set}" = set; then :
7134 $as_echo_n "(cached) " >&6
7135 else
7136 if test -n "$NMEDIT"; then
7137 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7138 else
7139 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7140 for as_dir in $PATH
7142 IFS=$as_save_IFS
7143 test -z "$as_dir" && as_dir=.
7144 for ac_exec_ext in '' $ac_executable_extensions; do
7145 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7146 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7147 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7148 break 2
7150 done
7151 done
7152 IFS=$as_save_IFS
7156 NMEDIT=$ac_cv_prog_NMEDIT
7157 if test -n "$NMEDIT"; then
7158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
7159 $as_echo "$NMEDIT" >&6; }
7160 else
7161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7162 $as_echo "no" >&6; }
7167 if test -z "$ac_cv_prog_NMEDIT"; then
7168 ac_ct_NMEDIT=$NMEDIT
7169 # Extract the first word of "nmedit", so it can be a program name with args.
7170 set dummy nmedit; ac_word=$2
7171 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7172 $as_echo_n "checking for $ac_word... " >&6; }
7173 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
7174 $as_echo_n "(cached) " >&6
7175 else
7176 if test -n "$ac_ct_NMEDIT"; then
7177 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7178 else
7179 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7180 for as_dir in $PATH
7182 IFS=$as_save_IFS
7183 test -z "$as_dir" && as_dir=.
7184 for ac_exec_ext in '' $ac_executable_extensions; do
7185 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7186 ac_cv_prog_ac_ct_NMEDIT="nmedit"
7187 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7188 break 2
7190 done
7191 done
7192 IFS=$as_save_IFS
7196 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7197 if test -n "$ac_ct_NMEDIT"; then
7198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7199 $as_echo "$ac_ct_NMEDIT" >&6; }
7200 else
7201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7202 $as_echo "no" >&6; }
7205 if test "x$ac_ct_NMEDIT" = x; then
7206 NMEDIT=":"
7207 else
7208 case $cross_compiling:$ac_tool_warned in
7209 yes:)
7210 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7211 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7212 ac_tool_warned=yes ;;
7213 esac
7214 NMEDIT=$ac_ct_NMEDIT
7216 else
7217 NMEDIT="$ac_cv_prog_NMEDIT"
7220 if test -n "$ac_tool_prefix"; then
7221 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7222 set dummy ${ac_tool_prefix}lipo; ac_word=$2
7223 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7224 $as_echo_n "checking for $ac_word... " >&6; }
7225 if test "${ac_cv_prog_LIPO+set}" = set; then :
7226 $as_echo_n "(cached) " >&6
7227 else
7228 if test -n "$LIPO"; then
7229 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7230 else
7231 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7232 for as_dir in $PATH
7234 IFS=$as_save_IFS
7235 test -z "$as_dir" && as_dir=.
7236 for ac_exec_ext in '' $ac_executable_extensions; do
7237 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7238 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7239 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7240 break 2
7242 done
7243 done
7244 IFS=$as_save_IFS
7248 LIPO=$ac_cv_prog_LIPO
7249 if test -n "$LIPO"; then
7250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7251 $as_echo "$LIPO" >&6; }
7252 else
7253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7254 $as_echo "no" >&6; }
7259 if test -z "$ac_cv_prog_LIPO"; then
7260 ac_ct_LIPO=$LIPO
7261 # Extract the first word of "lipo", so it can be a program name with args.
7262 set dummy lipo; ac_word=$2
7263 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7264 $as_echo_n "checking for $ac_word... " >&6; }
7265 if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
7266 $as_echo_n "(cached) " >&6
7267 else
7268 if test -n "$ac_ct_LIPO"; then
7269 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7270 else
7271 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7272 for as_dir in $PATH
7274 IFS=$as_save_IFS
7275 test -z "$as_dir" && as_dir=.
7276 for ac_exec_ext in '' $ac_executable_extensions; do
7277 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7278 ac_cv_prog_ac_ct_LIPO="lipo"
7279 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7280 break 2
7282 done
7283 done
7284 IFS=$as_save_IFS
7288 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7289 if test -n "$ac_ct_LIPO"; then
7290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7291 $as_echo "$ac_ct_LIPO" >&6; }
7292 else
7293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7294 $as_echo "no" >&6; }
7297 if test "x$ac_ct_LIPO" = x; then
7298 LIPO=":"
7299 else
7300 case $cross_compiling:$ac_tool_warned in
7301 yes:)
7302 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7303 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7304 ac_tool_warned=yes ;;
7305 esac
7306 LIPO=$ac_ct_LIPO
7308 else
7309 LIPO="$ac_cv_prog_LIPO"
7312 if test -n "$ac_tool_prefix"; then
7313 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7314 set dummy ${ac_tool_prefix}otool; ac_word=$2
7315 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7316 $as_echo_n "checking for $ac_word... " >&6; }
7317 if test "${ac_cv_prog_OTOOL+set}" = set; then :
7318 $as_echo_n "(cached) " >&6
7319 else
7320 if test -n "$OTOOL"; then
7321 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7322 else
7323 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7324 for as_dir in $PATH
7326 IFS=$as_save_IFS
7327 test -z "$as_dir" && as_dir=.
7328 for ac_exec_ext in '' $ac_executable_extensions; do
7329 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7330 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7331 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7332 break 2
7334 done
7335 done
7336 IFS=$as_save_IFS
7340 OTOOL=$ac_cv_prog_OTOOL
7341 if test -n "$OTOOL"; then
7342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7343 $as_echo "$OTOOL" >&6; }
7344 else
7345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7346 $as_echo "no" >&6; }
7351 if test -z "$ac_cv_prog_OTOOL"; then
7352 ac_ct_OTOOL=$OTOOL
7353 # Extract the first word of "otool", so it can be a program name with args.
7354 set dummy otool; ac_word=$2
7355 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7356 $as_echo_n "checking for $ac_word... " >&6; }
7357 if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
7358 $as_echo_n "(cached) " >&6
7359 else
7360 if test -n "$ac_ct_OTOOL"; then
7361 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7362 else
7363 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7364 for as_dir in $PATH
7366 IFS=$as_save_IFS
7367 test -z "$as_dir" && as_dir=.
7368 for ac_exec_ext in '' $ac_executable_extensions; do
7369 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7370 ac_cv_prog_ac_ct_OTOOL="otool"
7371 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7372 break 2
7374 done
7375 done
7376 IFS=$as_save_IFS
7380 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7381 if test -n "$ac_ct_OTOOL"; then
7382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7383 $as_echo "$ac_ct_OTOOL" >&6; }
7384 else
7385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7386 $as_echo "no" >&6; }
7389 if test "x$ac_ct_OTOOL" = x; then
7390 OTOOL=":"
7391 else
7392 case $cross_compiling:$ac_tool_warned in
7393 yes:)
7394 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7395 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7396 ac_tool_warned=yes ;;
7397 esac
7398 OTOOL=$ac_ct_OTOOL
7400 else
7401 OTOOL="$ac_cv_prog_OTOOL"
7404 if test -n "$ac_tool_prefix"; then
7405 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7406 set dummy ${ac_tool_prefix}otool64; ac_word=$2
7407 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7408 $as_echo_n "checking for $ac_word... " >&6; }
7409 if test "${ac_cv_prog_OTOOL64+set}" = set; then :
7410 $as_echo_n "(cached) " >&6
7411 else
7412 if test -n "$OTOOL64"; then
7413 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7414 else
7415 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7416 for as_dir in $PATH
7418 IFS=$as_save_IFS
7419 test -z "$as_dir" && as_dir=.
7420 for ac_exec_ext in '' $ac_executable_extensions; do
7421 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7422 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7423 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7424 break 2
7426 done
7427 done
7428 IFS=$as_save_IFS
7432 OTOOL64=$ac_cv_prog_OTOOL64
7433 if test -n "$OTOOL64"; then
7434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
7435 $as_echo "$OTOOL64" >&6; }
7436 else
7437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7438 $as_echo "no" >&6; }
7443 if test -z "$ac_cv_prog_OTOOL64"; then
7444 ac_ct_OTOOL64=$OTOOL64
7445 # Extract the first word of "otool64", so it can be a program name with args.
7446 set dummy otool64; ac_word=$2
7447 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7448 $as_echo_n "checking for $ac_word... " >&6; }
7449 if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
7450 $as_echo_n "(cached) " >&6
7451 else
7452 if test -n "$ac_ct_OTOOL64"; then
7453 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7454 else
7455 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7456 for as_dir in $PATH
7458 IFS=$as_save_IFS
7459 test -z "$as_dir" && as_dir=.
7460 for ac_exec_ext in '' $ac_executable_extensions; do
7461 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7462 ac_cv_prog_ac_ct_OTOOL64="otool64"
7463 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7464 break 2
7466 done
7467 done
7468 IFS=$as_save_IFS
7472 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7473 if test -n "$ac_ct_OTOOL64"; then
7474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
7475 $as_echo "$ac_ct_OTOOL64" >&6; }
7476 else
7477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7478 $as_echo "no" >&6; }
7481 if test "x$ac_ct_OTOOL64" = x; then
7482 OTOOL64=":"
7483 else
7484 case $cross_compiling:$ac_tool_warned in
7485 yes:)
7486 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7487 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7488 ac_tool_warned=yes ;;
7489 esac
7490 OTOOL64=$ac_ct_OTOOL64
7492 else
7493 OTOOL64="$ac_cv_prog_OTOOL64"
7522 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7523 $as_echo_n "checking for -single_module linker flag... " >&6; }
7524 if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
7525 $as_echo_n "(cached) " >&6
7526 else
7527 lt_cv_apple_cc_single_mod=no
7528 if test -z "${LT_MULTI_MODULE}"; then
7529 # By default we will add the -single_module flag. You can override
7530 # by either setting the environment variable LT_MULTI_MODULE
7531 # non-empty at configure time, or by adding -multi_module to the
7532 # link flags.
7533 rm -rf libconftest.dylib*
7534 echo "int foo(void){return 1;}" > conftest.c
7535 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7536 -dynamiclib -Wl,-single_module conftest.c" >&5
7537 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7538 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7539 _lt_result=$?
7540 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
7541 lt_cv_apple_cc_single_mod=yes
7542 else
7543 cat conftest.err >&5
7545 rm -rf libconftest.dylib*
7546 rm -f conftest.*
7549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7550 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7551 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7552 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7553 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
7554 $as_echo_n "(cached) " >&6
7555 else
7556 lt_cv_ld_exported_symbols_list=no
7557 save_LDFLAGS=$LDFLAGS
7558 echo "_main" > conftest.sym
7559 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7560 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7561 /* end confdefs.h. */
7564 main ()
7568 return 0;
7570 _ACEOF
7571 if ac_fn_c_try_link "$LINENO"; then :
7572 lt_cv_ld_exported_symbols_list=yes
7573 else
7574 lt_cv_ld_exported_symbols_list=no
7576 rm -f core conftest.err conftest.$ac_objext \
7577 conftest$ac_exeext conftest.$ac_ext
7578 LDFLAGS="$save_LDFLAGS"
7581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7582 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7583 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
7584 $as_echo_n "checking for -force_load linker flag... " >&6; }
7585 if test "${lt_cv_ld_force_load+set}" = set; then :
7586 $as_echo_n "(cached) " >&6
7587 else
7588 lt_cv_ld_force_load=no
7589 cat > conftest.c << _LT_EOF
7590 int forced_loaded() { return 2;}
7591 _LT_EOF
7592 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
7593 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
7594 echo "$AR cru libconftest.a conftest.o" >&5
7595 $AR cru libconftest.a conftest.o 2>&5
7596 cat > conftest.c << _LT_EOF
7597 int main() { return 0;}
7598 _LT_EOF
7599 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
7600 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
7601 _lt_result=$?
7602 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
7603 lt_cv_ld_force_load=yes
7604 else
7605 cat conftest.err >&5
7607 rm -f conftest.err libconftest.a conftest conftest.c
7608 rm -rf conftest.dSYM
7611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
7612 $as_echo "$lt_cv_ld_force_load" >&6; }
7613 case $host_os in
7614 rhapsody* | darwin1.[012])
7615 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7616 darwin1.*)
7617 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7618 darwin*) # darwin 5.x on
7619 # if running on 10.5 or later, the deployment target defaults
7620 # to the OS version, if on x86, and 10.4, the deployment
7621 # target defaults to 10.4. Don't you love it?
7622 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7623 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7624 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7625 10.[012][,.]*)
7626 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7627 10.*)
7628 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7629 esac
7631 esac
7632 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7633 _lt_dar_single_mod='$single_module'
7635 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7636 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7637 else
7638 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
7640 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
7641 _lt_dsymutil='~$DSYMUTIL $lib || :'
7642 else
7643 _lt_dsymutil=
7646 esac
7648 for ac_header in dlfcn.h
7649 do :
7650 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7652 if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
7653 cat >>confdefs.h <<_ACEOF
7654 #define HAVE_DLFCN_H 1
7655 _ACEOF
7659 done
7665 # Set options
7669 enable_dlopen=no
7672 enable_win32_dll=no
7675 # Check whether --enable-shared was given.
7676 if test "${enable_shared+set}" = set; then :
7677 enableval=$enable_shared; p=${PACKAGE-default}
7678 case $enableval in
7679 yes) enable_shared=yes ;;
7680 no) enable_shared=no ;;
7682 enable_shared=no
7683 # Look at the argument we got. We use all the common list separators.
7684 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7685 for pkg in $enableval; do
7686 IFS="$lt_save_ifs"
7687 if test "X$pkg" = "X$p"; then
7688 enable_shared=yes
7690 done
7691 IFS="$lt_save_ifs"
7693 esac
7694 else
7695 enable_shared=yes
7706 # Check whether --enable-static was given.
7707 if test "${enable_static+set}" = set; then :
7708 enableval=$enable_static; p=${PACKAGE-default}
7709 case $enableval in
7710 yes) enable_static=yes ;;
7711 no) enable_static=no ;;
7713 enable_static=no
7714 # Look at the argument we got. We use all the common list separators.
7715 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7716 for pkg in $enableval; do
7717 IFS="$lt_save_ifs"
7718 if test "X$pkg" = "X$p"; then
7719 enable_static=yes
7721 done
7722 IFS="$lt_save_ifs"
7724 esac
7725 else
7726 enable_static=yes
7738 # Check whether --with-pic was given.
7739 if test "${with_pic+set}" = set; then :
7740 withval=$with_pic; pic_mode="$withval"
7741 else
7742 pic_mode=default
7746 test -z "$pic_mode" && pic_mode=default
7754 # Check whether --enable-fast-install was given.
7755 if test "${enable_fast_install+set}" = set; then :
7756 enableval=$enable_fast_install; p=${PACKAGE-default}
7757 case $enableval in
7758 yes) enable_fast_install=yes ;;
7759 no) enable_fast_install=no ;;
7761 enable_fast_install=no
7762 # Look at the argument we got. We use all the common list separators.
7763 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7764 for pkg in $enableval; do
7765 IFS="$lt_save_ifs"
7766 if test "X$pkg" = "X$p"; then
7767 enable_fast_install=yes
7769 done
7770 IFS="$lt_save_ifs"
7772 esac
7773 else
7774 enable_fast_install=yes
7787 # This can be used to rebuild libtool when needed
7788 LIBTOOL_DEPS="$ltmain"
7790 # Always use our own libtool.
7791 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
7818 test -z "$LN_S" && LN_S="ln -s"
7833 if test -n "${ZSH_VERSION+set}" ; then
7834 setopt NO_GLOB_SUBST
7837 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
7838 $as_echo_n "checking for objdir... " >&6; }
7839 if test "${lt_cv_objdir+set}" = set; then :
7840 $as_echo_n "(cached) " >&6
7841 else
7842 rm -f .libs 2>/dev/null
7843 mkdir .libs 2>/dev/null
7844 if test -d .libs; then
7845 lt_cv_objdir=.libs
7846 else
7847 # MS-DOS does not allow filenames that begin with a dot.
7848 lt_cv_objdir=_libs
7850 rmdir .libs 2>/dev/null
7852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
7853 $as_echo "$lt_cv_objdir" >&6; }
7854 objdir=$lt_cv_objdir
7860 cat >>confdefs.h <<_ACEOF
7861 #define LT_OBJDIR "$lt_cv_objdir/"
7862 _ACEOF
7867 case $host_os in
7868 aix3*)
7869 # AIX sometimes has problems with the GCC collect2 program. For some
7870 # reason, if we set the COLLECT_NAMES environment variable, the problems
7871 # vanish in a puff of smoke.
7872 if test "X${COLLECT_NAMES+set}" != Xset; then
7873 COLLECT_NAMES=
7874 export COLLECT_NAMES
7877 esac
7879 # Global variables:
7880 ofile=libtool
7881 can_build_shared=yes
7883 # All known linkers require a `.a' archive for static linking (except MSVC,
7884 # which needs '.lib').
7885 libext=a
7887 with_gnu_ld="$lt_cv_prog_gnu_ld"
7889 old_CC="$CC"
7890 old_CFLAGS="$CFLAGS"
7892 # Set sane defaults for various variables
7893 test -z "$CC" && CC=cc
7894 test -z "$LTCC" && LTCC=$CC
7895 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7896 test -z "$LD" && LD=ld
7897 test -z "$ac_objext" && ac_objext=o
7899 for cc_temp in $compiler""; do
7900 case $cc_temp in
7901 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7902 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7903 \-*) ;;
7904 *) break;;
7905 esac
7906 done
7907 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
7910 # Only perform the check for file, if the check method requires it
7911 test -z "$MAGIC_CMD" && MAGIC_CMD=file
7912 case $deplibs_check_method in
7913 file_magic*)
7914 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7915 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
7916 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
7917 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
7918 $as_echo_n "(cached) " >&6
7919 else
7920 case $MAGIC_CMD in
7921 [\\/*] | ?:[\\/]*)
7922 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7925 lt_save_MAGIC_CMD="$MAGIC_CMD"
7926 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7927 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7928 for ac_dir in $ac_dummy; do
7929 IFS="$lt_save_ifs"
7930 test -z "$ac_dir" && ac_dir=.
7931 if test -f $ac_dir/${ac_tool_prefix}file; then
7932 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7933 if test -n "$file_magic_test_file"; then
7934 case $deplibs_check_method in
7935 "file_magic "*)
7936 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7937 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7938 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7939 $EGREP "$file_magic_regex" > /dev/null; then
7941 else
7942 cat <<_LT_EOF 1>&2
7944 *** Warning: the command libtool uses to detect shared libraries,
7945 *** $file_magic_cmd, produces output that libtool cannot recognize.
7946 *** The result is that libtool may fail to recognize shared libraries
7947 *** as such. This will affect the creation of libtool libraries that
7948 *** depend on shared libraries, but programs linked with such libtool
7949 *** libraries will work regardless of this problem. Nevertheless, you
7950 *** may want to report the problem to your system manager and/or to
7951 *** bug-libtool@gnu.org
7953 _LT_EOF
7954 fi ;;
7955 esac
7957 break
7959 done
7960 IFS="$lt_save_ifs"
7961 MAGIC_CMD="$lt_save_MAGIC_CMD"
7963 esac
7966 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7967 if test -n "$MAGIC_CMD"; then
7968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7969 $as_echo "$MAGIC_CMD" >&6; }
7970 else
7971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7972 $as_echo "no" >&6; }
7979 if test -z "$lt_cv_path_MAGIC_CMD"; then
7980 if test -n "$ac_tool_prefix"; then
7981 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
7982 $as_echo_n "checking for file... " >&6; }
7983 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
7984 $as_echo_n "(cached) " >&6
7985 else
7986 case $MAGIC_CMD in
7987 [\\/*] | ?:[\\/]*)
7988 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7991 lt_save_MAGIC_CMD="$MAGIC_CMD"
7992 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7993 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7994 for ac_dir in $ac_dummy; do
7995 IFS="$lt_save_ifs"
7996 test -z "$ac_dir" && ac_dir=.
7997 if test -f $ac_dir/file; then
7998 lt_cv_path_MAGIC_CMD="$ac_dir/file"
7999 if test -n "$file_magic_test_file"; then
8000 case $deplibs_check_method in
8001 "file_magic "*)
8002 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8003 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8004 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8005 $EGREP "$file_magic_regex" > /dev/null; then
8007 else
8008 cat <<_LT_EOF 1>&2
8010 *** Warning: the command libtool uses to detect shared libraries,
8011 *** $file_magic_cmd, produces output that libtool cannot recognize.
8012 *** The result is that libtool may fail to recognize shared libraries
8013 *** as such. This will affect the creation of libtool libraries that
8014 *** depend on shared libraries, but programs linked with such libtool
8015 *** libraries will work regardless of this problem. Nevertheless, you
8016 *** may want to report the problem to your system manager and/or to
8017 *** bug-libtool@gnu.org
8019 _LT_EOF
8020 fi ;;
8021 esac
8023 break
8025 done
8026 IFS="$lt_save_ifs"
8027 MAGIC_CMD="$lt_save_MAGIC_CMD"
8029 esac
8032 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8033 if test -n "$MAGIC_CMD"; then
8034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8035 $as_echo "$MAGIC_CMD" >&6; }
8036 else
8037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8038 $as_echo "no" >&6; }
8042 else
8043 MAGIC_CMD=:
8049 esac
8051 # Use C for the default configuration in the libtool script
8053 lt_save_CC="$CC"
8054 ac_ext=c
8055 ac_cpp='$CPP $CPPFLAGS'
8056 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8057 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8058 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8061 # Source file extension for C test sources.
8062 ac_ext=c
8064 # Object file extension for compiled C test sources.
8065 objext=o
8066 objext=$objext
8068 # Code to be used in simple compile tests
8069 lt_simple_compile_test_code="int some_variable = 0;"
8071 # Code to be used in simple link tests
8072 lt_simple_link_test_code='int main(){return(0);}'
8080 # If no C compiler was specified, use CC.
8081 LTCC=${LTCC-"$CC"}
8083 # If no C compiler flags were specified, use CFLAGS.
8084 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8086 # Allow CC to be a program name with arguments.
8087 compiler=$CC
8089 # Save the default compiler, since it gets overwritten when the other
8090 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8091 compiler_DEFAULT=$CC
8093 # save warnings/boilerplate of simple test code
8094 ac_outfile=conftest.$ac_objext
8095 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8096 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8097 _lt_compiler_boilerplate=`cat conftest.err`
8098 $RM conftest*
8100 ac_outfile=conftest.$ac_objext
8101 echo "$lt_simple_link_test_code" >conftest.$ac_ext
8102 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8103 _lt_linker_boilerplate=`cat conftest.err`
8104 $RM -r conftest*
8107 ## CAVEAT EMPTOR:
8108 ## There is no encapsulation within the following macros, do not change
8109 ## the running order or otherwise move them around unless you know exactly
8110 ## what you are doing...
8111 if test -n "$compiler"; then
8113 lt_prog_compiler_no_builtin_flag=
8115 if test "$GCC" = yes; then
8116 case $cc_basename in
8117 nvcc*)
8118 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
8120 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
8121 esac
8123 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8124 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8125 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
8126 $as_echo_n "(cached) " >&6
8127 else
8128 lt_cv_prog_compiler_rtti_exceptions=no
8129 ac_outfile=conftest.$ac_objext
8130 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8131 lt_compiler_flag="-fno-rtti -fno-exceptions"
8132 # Insert the option either (1) after the last *FLAGS variable, or
8133 # (2) before a word containing "conftest.", or (3) at the end.
8134 # Note that $ac_compile itself does not contain backslashes and begins
8135 # with a dollar sign (not a hyphen), so the echo should work correctly.
8136 # The option is referenced via a variable to avoid confusing sed.
8137 lt_compile=`echo "$ac_compile" | $SED \
8138 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8139 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8140 -e 's:$: $lt_compiler_flag:'`
8141 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8142 (eval "$lt_compile" 2>conftest.err)
8143 ac_status=$?
8144 cat conftest.err >&5
8145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8146 if (exit $ac_status) && test -s "$ac_outfile"; then
8147 # The compiler can only warn and ignore the option if not recognized
8148 # So say no if there are warnings other than the usual output.
8149 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8150 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8151 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8152 lt_cv_prog_compiler_rtti_exceptions=yes
8155 $RM conftest*
8158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8159 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8161 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8162 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8163 else
8174 lt_prog_compiler_wl=
8175 lt_prog_compiler_pic=
8176 lt_prog_compiler_static=
8178 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8179 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8181 if test "$GCC" = yes; then
8182 lt_prog_compiler_wl='-Wl,'
8183 lt_prog_compiler_static='-static'
8185 case $host_os in
8186 aix*)
8187 # All AIX code is PIC.
8188 if test "$host_cpu" = ia64; then
8189 # AIX 5 now supports IA64 processor
8190 lt_prog_compiler_static='-Bstatic'
8192 lt_prog_compiler_pic='-fPIC'
8195 amigaos*)
8196 case $host_cpu in
8197 powerpc)
8198 # see comment about AmigaOS4 .so support
8199 lt_prog_compiler_pic='-fPIC'
8201 m68k)
8202 # FIXME: we need at least 68020 code to build shared libraries, but
8203 # adding the `-m68020' flag to GCC prevents building anything better,
8204 # like `-m68040'.
8205 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8207 esac
8210 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8211 # PIC is the default for these OSes.
8214 mingw* | cygwin* | pw32* | os2* | cegcc*)
8215 # This hack is so that the source file can tell whether it is being
8216 # built for inclusion in a dll (and should export symbols for example).
8217 # Although the cygwin gcc ignores -fPIC, still need this for old-style
8218 # (--disable-auto-import) libraries
8219 lt_prog_compiler_pic='-DDLL_EXPORT'
8222 darwin* | rhapsody*)
8223 # PIC is the default on this platform
8224 # Common symbols not allowed in MH_DYLIB files
8225 lt_prog_compiler_pic='-fno-common'
8228 haiku*)
8229 # PIC is the default for Haiku.
8230 # The "-static" flag exists, but is broken.
8231 lt_prog_compiler_static=
8234 hpux*)
8235 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8236 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
8237 # sets the default TLS model and affects inlining.
8238 case $host_cpu in
8239 hppa*64*)
8240 # +Z the default
8243 lt_prog_compiler_pic='-fPIC'
8245 esac
8248 interix[3-9]*)
8249 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8250 # Instead, we relocate shared libraries at runtime.
8253 msdosdjgpp*)
8254 # Just because we use GCC doesn't mean we suddenly get shared libraries
8255 # on systems that don't support them.
8256 lt_prog_compiler_can_build_shared=no
8257 enable_shared=no
8260 *nto* | *qnx*)
8261 # QNX uses GNU C++, but need to define -shared option too, otherwise
8262 # it will coredump.
8263 lt_prog_compiler_pic='-fPIC -shared'
8266 sysv4*MP*)
8267 if test -d /usr/nec; then
8268 lt_prog_compiler_pic=-Kconform_pic
8273 lt_prog_compiler_pic='-fPIC'
8275 esac
8277 case $cc_basename in
8278 nvcc*) # Cuda Compiler Driver 2.2
8279 lt_prog_compiler_wl='-Xlinker '
8280 lt_prog_compiler_pic='-Xcompiler -fPIC'
8282 esac
8283 else
8284 # PORTME Check for flag to pass linker flags through the system compiler.
8285 case $host_os in
8286 aix*)
8287 lt_prog_compiler_wl='-Wl,'
8288 if test "$host_cpu" = ia64; then
8289 # AIX 5 now supports IA64 processor
8290 lt_prog_compiler_static='-Bstatic'
8291 else
8292 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8296 mingw* | cygwin* | pw32* | os2* | cegcc*)
8297 # This hack is so that the source file can tell whether it is being
8298 # built for inclusion in a dll (and should export symbols for example).
8299 lt_prog_compiler_pic='-DDLL_EXPORT'
8302 hpux9* | hpux10* | hpux11*)
8303 lt_prog_compiler_wl='-Wl,'
8304 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8305 # not for PA HP-UX.
8306 case $host_cpu in
8307 hppa*64*|ia64*)
8308 # +Z the default
8311 lt_prog_compiler_pic='+Z'
8313 esac
8314 # Is there a better lt_prog_compiler_static that works with the bundled CC?
8315 lt_prog_compiler_static='${wl}-a ${wl}archive'
8318 irix5* | irix6* | nonstopux*)
8319 lt_prog_compiler_wl='-Wl,'
8320 # PIC (with -KPIC) is the default.
8321 lt_prog_compiler_static='-non_shared'
8324 linux* | k*bsd*-gnu | kopensolaris*-gnu)
8325 case $cc_basename in
8326 # old Intel for x86_64 which still supported -KPIC.
8327 ecc*)
8328 lt_prog_compiler_wl='-Wl,'
8329 lt_prog_compiler_pic='-KPIC'
8330 lt_prog_compiler_static='-static'
8332 # icc used to be incompatible with GCC.
8333 # ICC 10 doesn't accept -KPIC any more.
8334 icc* | ifort*)
8335 lt_prog_compiler_wl='-Wl,'
8336 lt_prog_compiler_pic='-fPIC'
8337 lt_prog_compiler_static='-static'
8339 # Lahey Fortran 8.1.
8340 lf95*)
8341 lt_prog_compiler_wl='-Wl,'
8342 lt_prog_compiler_pic='--shared'
8343 lt_prog_compiler_static='--static'
8345 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
8346 # Portland Group compilers (*not* the Pentium gcc compiler,
8347 # which looks to be a dead project)
8348 lt_prog_compiler_wl='-Wl,'
8349 lt_prog_compiler_pic='-fpic'
8350 lt_prog_compiler_static='-Bstatic'
8352 ccc*)
8353 lt_prog_compiler_wl='-Wl,'
8354 # All Alpha code is PIC.
8355 lt_prog_compiler_static='-non_shared'
8357 xl* | bgxl* | bgf* | mpixl*)
8358 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
8359 lt_prog_compiler_wl='-Wl,'
8360 lt_prog_compiler_pic='-qpic'
8361 lt_prog_compiler_static='-qstaticlink'
8364 case `$CC -V 2>&1 | sed 5q` in
8365 *Sun\ F* | *Sun*Fortran*)
8366 # Sun Fortran 8.3 passes all unrecognized flags to the linker
8367 lt_prog_compiler_pic='-KPIC'
8368 lt_prog_compiler_static='-Bstatic'
8369 lt_prog_compiler_wl=''
8371 *Sun\ C*)
8372 # Sun C 5.9
8373 lt_prog_compiler_pic='-KPIC'
8374 lt_prog_compiler_static='-Bstatic'
8375 lt_prog_compiler_wl='-Wl,'
8377 esac
8379 esac
8382 newsos6)
8383 lt_prog_compiler_pic='-KPIC'
8384 lt_prog_compiler_static='-Bstatic'
8387 *nto* | *qnx*)
8388 # QNX uses GNU C++, but need to define -shared option too, otherwise
8389 # it will coredump.
8390 lt_prog_compiler_pic='-fPIC -shared'
8393 osf3* | osf4* | osf5*)
8394 lt_prog_compiler_wl='-Wl,'
8395 # All OSF/1 code is PIC.
8396 lt_prog_compiler_static='-non_shared'
8399 rdos*)
8400 lt_prog_compiler_static='-non_shared'
8403 solaris*)
8404 lt_prog_compiler_pic='-KPIC'
8405 lt_prog_compiler_static='-Bstatic'
8406 case $cc_basename in
8407 f77* | f90* | f95*)
8408 lt_prog_compiler_wl='-Qoption ld ';;
8410 lt_prog_compiler_wl='-Wl,';;
8411 esac
8414 sunos4*)
8415 lt_prog_compiler_wl='-Qoption ld '
8416 lt_prog_compiler_pic='-PIC'
8417 lt_prog_compiler_static='-Bstatic'
8420 sysv4 | sysv4.2uw2* | sysv4.3*)
8421 lt_prog_compiler_wl='-Wl,'
8422 lt_prog_compiler_pic='-KPIC'
8423 lt_prog_compiler_static='-Bstatic'
8426 sysv4*MP*)
8427 if test -d /usr/nec ;then
8428 lt_prog_compiler_pic='-Kconform_pic'
8429 lt_prog_compiler_static='-Bstatic'
8433 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8434 lt_prog_compiler_wl='-Wl,'
8435 lt_prog_compiler_pic='-KPIC'
8436 lt_prog_compiler_static='-Bstatic'
8439 unicos*)
8440 lt_prog_compiler_wl='-Wl,'
8441 lt_prog_compiler_can_build_shared=no
8444 uts4*)
8445 lt_prog_compiler_pic='-pic'
8446 lt_prog_compiler_static='-Bstatic'
8450 lt_prog_compiler_can_build_shared=no
8452 esac
8455 case $host_os in
8456 # For platforms which do not support PIC, -DPIC is meaningless:
8457 *djgpp*)
8458 lt_prog_compiler_pic=
8461 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8463 esac
8464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
8465 $as_echo "$lt_prog_compiler_pic" >&6; }
8473 # Check to make sure the PIC flag actually works.
8475 if test -n "$lt_prog_compiler_pic"; then
8476 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8477 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8478 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
8479 $as_echo_n "(cached) " >&6
8480 else
8481 lt_cv_prog_compiler_pic_works=no
8482 ac_outfile=conftest.$ac_objext
8483 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8484 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8485 # Insert the option either (1) after the last *FLAGS variable, or
8486 # (2) before a word containing "conftest.", or (3) at the end.
8487 # Note that $ac_compile itself does not contain backslashes and begins
8488 # with a dollar sign (not a hyphen), so the echo should work correctly.
8489 # The option is referenced via a variable to avoid confusing sed.
8490 lt_compile=`echo "$ac_compile" | $SED \
8491 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8492 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8493 -e 's:$: $lt_compiler_flag:'`
8494 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8495 (eval "$lt_compile" 2>conftest.err)
8496 ac_status=$?
8497 cat conftest.err >&5
8498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8499 if (exit $ac_status) && test -s "$ac_outfile"; then
8500 # The compiler can only warn and ignore the option if not recognized
8501 # So say no if there are warnings other than the usual output.
8502 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8503 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8504 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8505 lt_cv_prog_compiler_pic_works=yes
8508 $RM conftest*
8511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8512 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8514 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
8515 case $lt_prog_compiler_pic in
8516 "" | " "*) ;;
8517 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8518 esac
8519 else
8520 lt_prog_compiler_pic=
8521 lt_prog_compiler_can_build_shared=no
8532 # Check to make sure the static flag actually works.
8534 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8535 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8536 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8537 if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
8538 $as_echo_n "(cached) " >&6
8539 else
8540 lt_cv_prog_compiler_static_works=no
8541 save_LDFLAGS="$LDFLAGS"
8542 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8543 echo "$lt_simple_link_test_code" > conftest.$ac_ext
8544 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8545 # The linker can only warn and ignore the option if not recognized
8546 # So say no if there are warnings
8547 if test -s conftest.err; then
8548 # Append any errors to the config.log.
8549 cat conftest.err 1>&5
8550 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
8551 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8552 if diff conftest.exp conftest.er2 >/dev/null; then
8553 lt_cv_prog_compiler_static_works=yes
8555 else
8556 lt_cv_prog_compiler_static_works=yes
8559 $RM -r conftest*
8560 LDFLAGS="$save_LDFLAGS"
8563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
8564 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
8566 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
8568 else
8569 lt_prog_compiler_static=
8578 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8579 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8580 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
8581 $as_echo_n "(cached) " >&6
8582 else
8583 lt_cv_prog_compiler_c_o=no
8584 $RM -r conftest 2>/dev/null
8585 mkdir conftest
8586 cd conftest
8587 mkdir out
8588 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8590 lt_compiler_flag="-o out/conftest2.$ac_objext"
8591 # Insert the option either (1) after the last *FLAGS variable, or
8592 # (2) before a word containing "conftest.", or (3) at the end.
8593 # Note that $ac_compile itself does not contain backslashes and begins
8594 # with a dollar sign (not a hyphen), so the echo should work correctly.
8595 lt_compile=`echo "$ac_compile" | $SED \
8596 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8597 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8598 -e 's:$: $lt_compiler_flag:'`
8599 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8600 (eval "$lt_compile" 2>out/conftest.err)
8601 ac_status=$?
8602 cat out/conftest.err >&5
8603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8604 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8605 then
8606 # The compiler can only warn and ignore the option if not recognized
8607 # So say no if there are warnings
8608 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8609 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8610 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8611 lt_cv_prog_compiler_c_o=yes
8614 chmod u+w . 2>&5
8615 $RM conftest*
8616 # SGI C++ compiler will create directory out/ii_files/ for
8617 # template instantiation
8618 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8619 $RM out/* && rmdir out
8620 cd ..
8621 $RM -r conftest
8622 $RM conftest*
8625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8626 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8633 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8634 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8635 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
8636 $as_echo_n "(cached) " >&6
8637 else
8638 lt_cv_prog_compiler_c_o=no
8639 $RM -r conftest 2>/dev/null
8640 mkdir conftest
8641 cd conftest
8642 mkdir out
8643 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8645 lt_compiler_flag="-o out/conftest2.$ac_objext"
8646 # Insert the option either (1) after the last *FLAGS variable, or
8647 # (2) before a word containing "conftest.", or (3) at the end.
8648 # Note that $ac_compile itself does not contain backslashes and begins
8649 # with a dollar sign (not a hyphen), so the echo should work correctly.
8650 lt_compile=`echo "$ac_compile" | $SED \
8651 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8652 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8653 -e 's:$: $lt_compiler_flag:'`
8654 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8655 (eval "$lt_compile" 2>out/conftest.err)
8656 ac_status=$?
8657 cat out/conftest.err >&5
8658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8659 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8660 then
8661 # The compiler can only warn and ignore the option if not recognized
8662 # So say no if there are warnings
8663 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8664 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8665 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8666 lt_cv_prog_compiler_c_o=yes
8669 chmod u+w . 2>&5
8670 $RM conftest*
8671 # SGI C++ compiler will create directory out/ii_files/ for
8672 # template instantiation
8673 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8674 $RM out/* && rmdir out
8675 cd ..
8676 $RM -r conftest
8677 $RM conftest*
8680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8681 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8686 hard_links="nottested"
8687 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8688 # do not overwrite the value of need_locks provided by the user
8689 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
8690 $as_echo_n "checking if we can lock with hard links... " >&6; }
8691 hard_links=yes
8692 $RM conftest*
8693 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8694 touch conftest.a
8695 ln conftest.a conftest.b 2>&5 || hard_links=no
8696 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
8698 $as_echo "$hard_links" >&6; }
8699 if test "$hard_links" = no; then
8700 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8701 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8702 need_locks=warn
8704 else
8705 need_locks=no
8713 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8714 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
8716 runpath_var=
8717 allow_undefined_flag=
8718 always_export_symbols=no
8719 archive_cmds=
8720 archive_expsym_cmds=
8721 compiler_needs_object=no
8722 enable_shared_with_static_runtimes=no
8723 export_dynamic_flag_spec=
8724 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8725 hardcode_automatic=no
8726 hardcode_direct=no
8727 hardcode_direct_absolute=no
8728 hardcode_libdir_flag_spec=
8729 hardcode_libdir_flag_spec_ld=
8730 hardcode_libdir_separator=
8731 hardcode_minus_L=no
8732 hardcode_shlibpath_var=unsupported
8733 inherit_rpath=no
8734 link_all_deplibs=unknown
8735 module_cmds=
8736 module_expsym_cmds=
8737 old_archive_from_new_cmds=
8738 old_archive_from_expsyms_cmds=
8739 thread_safe_flag_spec=
8740 whole_archive_flag_spec=
8741 # include_expsyms should be a list of space-separated symbols to be *always*
8742 # included in the symbol list
8743 include_expsyms=
8744 # exclude_expsyms can be an extended regexp of symbols to exclude
8745 # it will be wrapped by ` (' and `)$', so one must not match beginning or
8746 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8747 # as well as any symbol that contains `d'.
8748 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
8749 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8750 # platforms (ab)use it in PIC code, but their linkers get confused if
8751 # the symbol is explicitly referenced. Since portable code cannot
8752 # rely on this symbol name, it's probably fine to never include it in
8753 # preloaded symbol tables.
8754 # Exclude shared library initialization/finalization symbols.
8755 extract_expsyms_cmds=
8757 case $host_os in
8758 cygwin* | mingw* | pw32* | cegcc*)
8759 # FIXME: the MSVC++ port hasn't been tested in a loooong time
8760 # When not using gcc, we currently assume that we are using
8761 # Microsoft Visual C++.
8762 if test "$GCC" != yes; then
8763 with_gnu_ld=no
8766 interix*)
8767 # we just hope/assume this is gcc and not c89 (= MSVC++)
8768 with_gnu_ld=yes
8770 openbsd*)
8771 with_gnu_ld=no
8773 esac
8775 ld_shlibs=yes
8777 # On some targets, GNU ld is compatible enough with the native linker
8778 # that we're better off using the native interface for both.
8779 lt_use_gnu_ld_interface=no
8780 if test "$with_gnu_ld" = yes; then
8781 case $host_os in
8782 aix*)
8783 # The AIX port of GNU ld has always aspired to compatibility
8784 # with the native linker. However, as the warning in the GNU ld
8785 # block says, versions before 2.19.5* couldn't really create working
8786 # shared libraries, regardless of the interface used.
8787 case `$LD -v 2>&1` in
8788 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
8789 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
8790 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
8792 lt_use_gnu_ld_interface=yes
8794 esac
8797 lt_use_gnu_ld_interface=yes
8799 esac
8802 if test "$lt_use_gnu_ld_interface" = yes; then
8803 # If archive_cmds runs LD, not CC, wlarc should be empty
8804 wlarc='${wl}'
8806 # Set some defaults for GNU ld with shared library support. These
8807 # are reset later if shared libraries are not supported. Putting them
8808 # here allows them to be overridden if necessary.
8809 runpath_var=LD_RUN_PATH
8810 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8811 export_dynamic_flag_spec='${wl}--export-dynamic'
8812 # ancient GNU ld didn't support --whole-archive et. al.
8813 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
8814 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8815 else
8816 whole_archive_flag_spec=
8818 supports_anon_versioning=no
8819 case `$LD -v 2>&1` in
8820 *GNU\ gold*) supports_anon_versioning=yes ;;
8821 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8822 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8823 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8824 *\ 2.11.*) ;; # other 2.11 versions
8825 *) supports_anon_versioning=yes ;;
8826 esac
8828 # See if GNU ld supports shared libraries.
8829 case $host_os in
8830 aix[3-9]*)
8831 # On AIX/PPC, the GNU linker is very broken
8832 if test "$host_cpu" != ia64; then
8833 ld_shlibs=no
8834 cat <<_LT_EOF 1>&2
8836 *** Warning: the GNU linker, at least up to release 2.19, is reported
8837 *** to be unable to reliably create shared libraries on AIX.
8838 *** Therefore, libtool is disabling shared libraries support. If you
8839 *** really care for shared libraries, you may want to install binutils
8840 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
8841 *** You will then need to restart the configuration process.
8843 _LT_EOF
8847 amigaos*)
8848 case $host_cpu in
8849 powerpc)
8850 # see comment about AmigaOS4 .so support
8851 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8852 archive_expsym_cmds=''
8854 m68k)
8855 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)'
8856 hardcode_libdir_flag_spec='-L$libdir'
8857 hardcode_minus_L=yes
8859 esac
8862 beos*)
8863 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8864 allow_undefined_flag=unsupported
8865 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8866 # support --undefined. This deserves some investigation. FIXME
8867 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8868 else
8869 ld_shlibs=no
8873 cygwin* | mingw* | pw32* | cegcc*)
8874 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8875 # as there is no search path for DLLs.
8876 hardcode_libdir_flag_spec='-L$libdir'
8877 export_dynamic_flag_spec='${wl}--export-all-symbols'
8878 allow_undefined_flag=unsupported
8879 always_export_symbols=no
8880 enable_shared_with_static_runtimes=yes
8881 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
8883 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
8884 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8885 # If the export-symbols file already is a .def file (1st line
8886 # is EXPORTS), use it as is; otherwise, prepend...
8887 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8888 cp $export_symbols $output_objdir/$soname.def;
8889 else
8890 echo EXPORTS > $output_objdir/$soname.def;
8891 cat $export_symbols >> $output_objdir/$soname.def;
8893 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8894 else
8895 ld_shlibs=no
8899 haiku*)
8900 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8901 link_all_deplibs=yes
8904 interix[3-9]*)
8905 hardcode_direct=no
8906 hardcode_shlibpath_var=no
8907 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8908 export_dynamic_flag_spec='${wl}-E'
8909 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8910 # Instead, shared libraries are loaded at an image base (0x10000000 by
8911 # default) and relocated if they conflict, which is a slow very memory
8912 # consuming and fragmenting process. To avoid this, we pick a random,
8913 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8914 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
8915 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8916 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'
8919 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
8920 tmp_diet=no
8921 if test "$host_os" = linux-dietlibc; then
8922 case $cc_basename in
8923 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
8924 esac
8926 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
8927 && test "$tmp_diet" = no
8928 then
8929 tmp_addflag=' $pic_flag'
8930 tmp_sharedflag='-shared'
8931 case $cc_basename,$host_cpu in
8932 pgcc*) # Portland Group C compiler
8933 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'
8934 tmp_addflag=' $pic_flag'
8936 pgf77* | pgf90* | pgf95* | pgfortran*)
8937 # Portland Group f77 and f90 compilers
8938 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'
8939 tmp_addflag=' $pic_flag -Mnomain' ;;
8940 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
8941 tmp_addflag=' -i_dynamic' ;;
8942 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
8943 tmp_addflag=' -i_dynamic -nofor_main' ;;
8944 ifc* | ifort*) # Intel Fortran compiler
8945 tmp_addflag=' -nofor_main' ;;
8946 lf95*) # Lahey Fortran 8.1
8947 whole_archive_flag_spec=
8948 tmp_sharedflag='--shared' ;;
8949 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
8950 tmp_sharedflag='-qmkshrobj'
8951 tmp_addflag= ;;
8952 nvcc*) # Cuda Compiler Driver 2.2
8953 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'
8954 compiler_needs_object=yes
8956 esac
8957 case `$CC -V 2>&1 | sed 5q` in
8958 *Sun\ C*) # Sun C 5.9
8959 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'
8960 compiler_needs_object=yes
8961 tmp_sharedflag='-G' ;;
8962 *Sun\ F*) # Sun Fortran 8.3
8963 tmp_sharedflag='-G' ;;
8964 esac
8965 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8967 if test "x$supports_anon_versioning" = xyes; then
8968 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8969 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8970 echo "local: *; };" >> $output_objdir/$libname.ver~
8971 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8974 case $cc_basename in
8975 xlf* | bgf* | bgxlf* | mpixlf*)
8976 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
8977 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
8978 hardcode_libdir_flag_spec=
8979 hardcode_libdir_flag_spec_ld='-rpath $libdir'
8980 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
8981 if test "x$supports_anon_versioning" = xyes; then
8982 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8983 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8984 echo "local: *; };" >> $output_objdir/$libname.ver~
8985 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
8988 esac
8989 else
8990 ld_shlibs=no
8994 netbsd*)
8995 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8996 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8997 wlarc=
8998 else
8999 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9000 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9004 solaris*)
9005 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9006 ld_shlibs=no
9007 cat <<_LT_EOF 1>&2
9009 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
9010 *** create shared libraries on Solaris systems. Therefore, libtool
9011 *** is disabling shared libraries support. We urge you to upgrade GNU
9012 *** binutils to release 2.9.1 or newer. Another option is to modify
9013 *** your PATH or compiler configuration so that the native linker is
9014 *** used, and then restart.
9016 _LT_EOF
9017 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9018 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9019 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9020 else
9021 ld_shlibs=no
9025 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9026 case `$LD -v 2>&1` in
9027 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9028 ld_shlibs=no
9029 cat <<_LT_EOF 1>&2
9031 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9032 *** reliably create shared libraries on SCO systems. Therefore, libtool
9033 *** is disabling shared libraries support. We urge you to upgrade GNU
9034 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
9035 *** your PATH or compiler configuration so that the native linker is
9036 *** used, and then restart.
9038 _LT_EOF
9041 # For security reasons, it is highly recommended that you always
9042 # use absolute paths for naming shared libraries, and exclude the
9043 # DT_RUNPATH tag from executables and libraries. But doing so
9044 # requires that you compile everything twice, which is a pain.
9045 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9046 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9047 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9048 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9049 else
9050 ld_shlibs=no
9053 esac
9056 sunos4*)
9057 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9058 wlarc=
9059 hardcode_direct=yes
9060 hardcode_shlibpath_var=no
9064 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9065 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9066 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9067 else
9068 ld_shlibs=no
9071 esac
9073 if test "$ld_shlibs" = no; then
9074 runpath_var=
9075 hardcode_libdir_flag_spec=
9076 export_dynamic_flag_spec=
9077 whole_archive_flag_spec=
9079 else
9080 # PORTME fill in a description of your system's linker (not GNU ld)
9081 case $host_os in
9082 aix3*)
9083 allow_undefined_flag=unsupported
9084 always_export_symbols=yes
9085 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'
9086 # Note: this linker hardcodes the directories in LIBPATH if there
9087 # are no directories specified by -L.
9088 hardcode_minus_L=yes
9089 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9090 # Neither direct hardcoding nor static linking is supported with a
9091 # broken collect2.
9092 hardcode_direct=unsupported
9096 aix[4-9]*)
9097 if test "$host_cpu" = ia64; then
9098 # On IA64, the linker does run time linking by default, so we don't
9099 # have to do anything special.
9100 aix_use_runtimelinking=no
9101 exp_sym_flag='-Bexport'
9102 no_entry_flag=""
9103 else
9104 # If we're using GNU nm, then we don't want the "-C" option.
9105 # -C means demangle to AIX nm, but means don't demangle with GNU nm
9106 # Also, AIX nm treats weak defined symbols like other global
9107 # defined symbols, whereas GNU nm marks them as "W".
9108 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9109 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'
9110 else
9111 export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "L")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
9113 aix_use_runtimelinking=no
9115 # Test if we are trying to use run time linking or normal
9116 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9117 # need to do runtime linking.
9118 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9119 for ld_flag in $LDFLAGS; do
9120 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9121 aix_use_runtimelinking=yes
9122 break
9124 done
9126 esac
9128 exp_sym_flag='-bexport'
9129 no_entry_flag='-bnoentry'
9132 # When large executables or shared objects are built, AIX ld can
9133 # have problems creating the table of contents. If linking a library
9134 # or program results in "error TOC overflow" add -mminimal-toc to
9135 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9136 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9138 archive_cmds=''
9139 hardcode_direct=yes
9140 hardcode_direct_absolute=yes
9141 hardcode_libdir_separator=':'
9142 link_all_deplibs=yes
9143 file_list_spec='${wl}-f,'
9145 if test "$GCC" = yes; then
9146 case $host_os in aix4.[012]|aix4.[012].*)
9147 # We only want to do this on AIX 4.2 and lower, the check
9148 # below for broken collect2 doesn't work under 4.3+
9149 collect2name=`${CC} -print-prog-name=collect2`
9150 if test -f "$collect2name" &&
9151 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9152 then
9153 # We have reworked collect2
9155 else
9156 # We have old collect2
9157 hardcode_direct=unsupported
9158 # It fails to find uninstalled libraries when the uninstalled
9159 # path is not listed in the libpath. Setting hardcode_minus_L
9160 # to unsupported forces relinking
9161 hardcode_minus_L=yes
9162 hardcode_libdir_flag_spec='-L$libdir'
9163 hardcode_libdir_separator=
9166 esac
9167 shared_flag='-shared'
9168 if test "$aix_use_runtimelinking" = yes; then
9169 shared_flag="$shared_flag "'${wl}-G'
9171 else
9172 # not using gcc
9173 if test "$host_cpu" = ia64; then
9174 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9175 # chokes on -Wl,-G. The following line is correct:
9176 shared_flag='-G'
9177 else
9178 if test "$aix_use_runtimelinking" = yes; then
9179 shared_flag='${wl}-G'
9180 else
9181 shared_flag='${wl}-bM:SRE'
9186 export_dynamic_flag_spec='${wl}-bexpall'
9187 # It seems that -bexpall does not export symbols beginning with
9188 # underscore (_), so it is better to generate a list of symbols to export.
9189 always_export_symbols=yes
9190 if test "$aix_use_runtimelinking" = yes; then
9191 # Warning - without using the other runtime loading flags (-brtl),
9192 # -berok will link without error, but may produce a broken library.
9193 allow_undefined_flag='-berok'
9194 # Determine the default libpath from the value encoded in an
9195 # empty executable.
9196 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9197 /* end confdefs.h. */
9200 main ()
9204 return 0;
9206 _ACEOF
9207 if ac_fn_c_try_link "$LINENO"; then :
9209 lt_aix_libpath_sed='
9210 /Import File Strings/,/^$/ {
9211 /^0/ {
9212 s/^0 *\(.*\)$/\1/
9216 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9217 # Check for a 64-bit object if we didn't find anything.
9218 if test -z "$aix_libpath"; then
9219 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9222 rm -f core conftest.err conftest.$ac_objext \
9223 conftest$ac_exeext conftest.$ac_ext
9224 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9226 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9227 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"
9228 else
9229 if test "$host_cpu" = ia64; then
9230 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9231 allow_undefined_flag="-z nodefs"
9232 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"
9233 else
9234 # Determine the default libpath from the value encoded in an
9235 # empty executable.
9236 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9237 /* end confdefs.h. */
9240 main ()
9244 return 0;
9246 _ACEOF
9247 if ac_fn_c_try_link "$LINENO"; then :
9249 lt_aix_libpath_sed='
9250 /Import File Strings/,/^$/ {
9251 /^0/ {
9252 s/^0 *\(.*\)$/\1/
9256 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9257 # Check for a 64-bit object if we didn't find anything.
9258 if test -z "$aix_libpath"; then
9259 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9262 rm -f core conftest.err conftest.$ac_objext \
9263 conftest$ac_exeext conftest.$ac_ext
9264 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9266 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9267 # Warning - without using the other run time loading flags,
9268 # -berok will link without error, but may produce a broken library.
9269 no_undefined_flag=' ${wl}-bernotok'
9270 allow_undefined_flag=' ${wl}-berok'
9271 if test "$with_gnu_ld" = yes; then
9272 # We only use this code for GNU lds that support --whole-archive.
9273 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
9274 else
9275 # Exported symbols can be pulled into shared objects from archives
9276 whole_archive_flag_spec='$convenience'
9278 archive_cmds_need_lc=yes
9279 # This is similar to how AIX traditionally builds its shared libraries.
9280 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'
9285 amigaos*)
9286 case $host_cpu in
9287 powerpc)
9288 # see comment about AmigaOS4 .so support
9289 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9290 archive_expsym_cmds=''
9292 m68k)
9293 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)'
9294 hardcode_libdir_flag_spec='-L$libdir'
9295 hardcode_minus_L=yes
9297 esac
9300 bsdi[45]*)
9301 export_dynamic_flag_spec=-rdynamic
9304 cygwin* | mingw* | pw32* | cegcc*)
9305 # When not using gcc, we currently assume that we are using
9306 # Microsoft Visual C++.
9307 # hardcode_libdir_flag_spec is actually meaningless, as there is
9308 # no search path for DLLs.
9309 hardcode_libdir_flag_spec=' '
9310 allow_undefined_flag=unsupported
9311 # Tell ltmain to make .lib files, not .a files.
9312 libext=lib
9313 # Tell ltmain to make .dll files, not .so files.
9314 shrext_cmds=".dll"
9315 # FIXME: Setting linknames here is a bad hack.
9316 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
9317 # The linker will automatically build a .lib file if we build a DLL.
9318 old_archive_from_new_cmds='true'
9319 # FIXME: Should let the user specify the lib program.
9320 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9321 fix_srcfile_path='`cygpath -w "$srcfile"`'
9322 enable_shared_with_static_runtimes=yes
9325 darwin* | rhapsody*)
9328 archive_cmds_need_lc=no
9329 hardcode_direct=no
9330 hardcode_automatic=yes
9331 hardcode_shlibpath_var=unsupported
9332 if test "$lt_cv_ld_force_load" = "yes"; then
9333 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\"`'
9334 else
9335 whole_archive_flag_spec=''
9337 link_all_deplibs=yes
9338 allow_undefined_flag="$_lt_dar_allow_undefined"
9339 case $cc_basename in
9340 ifort*) _lt_dar_can_shared=yes ;;
9341 *) _lt_dar_can_shared=$GCC ;;
9342 esac
9343 if test "$_lt_dar_can_shared" = "yes"; then
9344 output_verbose_link_cmd=func_echo_all
9345 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9346 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9347 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}"
9348 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}"
9350 else
9351 ld_shlibs=no
9356 dgux*)
9357 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9358 hardcode_libdir_flag_spec='-L$libdir'
9359 hardcode_shlibpath_var=no
9362 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9363 # support. Future versions do this automatically, but an explicit c++rt0.o
9364 # does not break anything, and helps significantly (at the cost of a little
9365 # extra space).
9366 freebsd2.2*)
9367 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9368 hardcode_libdir_flag_spec='-R$libdir'
9369 hardcode_direct=yes
9370 hardcode_shlibpath_var=no
9373 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9374 freebsd2.*)
9375 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9376 hardcode_direct=yes
9377 hardcode_minus_L=yes
9378 hardcode_shlibpath_var=no
9381 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9382 freebsd* | dragonfly*)
9383 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
9384 hardcode_libdir_flag_spec='-R$libdir'
9385 hardcode_direct=yes
9386 hardcode_shlibpath_var=no
9389 hpux9*)
9390 if test "$GCC" = yes; then
9391 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'
9392 else
9393 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'
9395 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9396 hardcode_libdir_separator=:
9397 hardcode_direct=yes
9399 # hardcode_minus_L: Not really in the search PATH,
9400 # but as the default location of the library.
9401 hardcode_minus_L=yes
9402 export_dynamic_flag_spec='${wl}-E'
9405 hpux10*)
9406 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9407 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9408 else
9409 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9411 if test "$with_gnu_ld" = no; then
9412 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9413 hardcode_libdir_flag_spec_ld='+b $libdir'
9414 hardcode_libdir_separator=:
9415 hardcode_direct=yes
9416 hardcode_direct_absolute=yes
9417 export_dynamic_flag_spec='${wl}-E'
9418 # hardcode_minus_L: Not really in the search PATH,
9419 # but as the default location of the library.
9420 hardcode_minus_L=yes
9424 hpux11*)
9425 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9426 case $host_cpu in
9427 hppa*64*)
9428 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9430 ia64*)
9431 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9434 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9436 esac
9437 else
9438 case $host_cpu in
9439 hppa*64*)
9440 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9442 ia64*)
9443 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9447 # Older versions of the 11.00 compiler do not understand -b yet
9448 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
9449 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
9450 $as_echo_n "checking if $CC understands -b... " >&6; }
9451 if test "${lt_cv_prog_compiler__b+set}" = set; then :
9452 $as_echo_n "(cached) " >&6
9453 else
9454 lt_cv_prog_compiler__b=no
9455 save_LDFLAGS="$LDFLAGS"
9456 LDFLAGS="$LDFLAGS -b"
9457 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9458 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9459 # The linker can only warn and ignore the option if not recognized
9460 # So say no if there are warnings
9461 if test -s conftest.err; then
9462 # Append any errors to the config.log.
9463 cat conftest.err 1>&5
9464 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9465 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9466 if diff conftest.exp conftest.er2 >/dev/null; then
9467 lt_cv_prog_compiler__b=yes
9469 else
9470 lt_cv_prog_compiler__b=yes
9473 $RM -r conftest*
9474 LDFLAGS="$save_LDFLAGS"
9477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
9478 $as_echo "$lt_cv_prog_compiler__b" >&6; }
9480 if test x"$lt_cv_prog_compiler__b" = xyes; then
9481 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9482 else
9483 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9487 esac
9489 if test "$with_gnu_ld" = no; then
9490 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9491 hardcode_libdir_separator=:
9493 case $host_cpu in
9494 hppa*64*|ia64*)
9495 hardcode_direct=no
9496 hardcode_shlibpath_var=no
9499 hardcode_direct=yes
9500 hardcode_direct_absolute=yes
9501 export_dynamic_flag_spec='${wl}-E'
9503 # hardcode_minus_L: Not really in the search PATH,
9504 # but as the default location of the library.
9505 hardcode_minus_L=yes
9507 esac
9511 irix5* | irix6* | nonstopux*)
9512 if test "$GCC" = yes; then
9513 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'
9514 # Try to use the -exported_symbol ld option, if it does not
9515 # work, assume that -exports_file does not work either and
9516 # implicitly export all symbols.
9517 save_LDFLAGS="$LDFLAGS"
9518 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
9519 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9520 /* end confdefs.h. */
9521 int foo(void) {}
9522 _ACEOF
9523 if ac_fn_c_try_link "$LINENO"; then :
9524 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'
9527 rm -f core conftest.err conftest.$ac_objext \
9528 conftest$ac_exeext conftest.$ac_ext
9529 LDFLAGS="$save_LDFLAGS"
9530 else
9531 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'
9532 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'
9534 archive_cmds_need_lc='no'
9535 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9536 hardcode_libdir_separator=:
9537 inherit_rpath=yes
9538 link_all_deplibs=yes
9541 netbsd*)
9542 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9543 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
9544 else
9545 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
9547 hardcode_libdir_flag_spec='-R$libdir'
9548 hardcode_direct=yes
9549 hardcode_shlibpath_var=no
9552 newsos6)
9553 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9554 hardcode_direct=yes
9555 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9556 hardcode_libdir_separator=:
9557 hardcode_shlibpath_var=no
9560 *nto* | *qnx*)
9563 openbsd*)
9564 if test -f /usr/libexec/ld.so; then
9565 hardcode_direct=yes
9566 hardcode_shlibpath_var=no
9567 hardcode_direct_absolute=yes
9568 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9569 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9570 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9571 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9572 export_dynamic_flag_spec='${wl}-E'
9573 else
9574 case $host_os in
9575 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9576 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9577 hardcode_libdir_flag_spec='-R$libdir'
9580 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9581 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9583 esac
9585 else
9586 ld_shlibs=no
9590 os2*)
9591 hardcode_libdir_flag_spec='-L$libdir'
9592 hardcode_minus_L=yes
9593 allow_undefined_flag=unsupported
9594 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'
9595 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9598 osf3*)
9599 if test "$GCC" = yes; then
9600 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9601 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'
9602 else
9603 allow_undefined_flag=' -expect_unresolved \*'
9604 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'
9606 archive_cmds_need_lc='no'
9607 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9608 hardcode_libdir_separator=:
9611 osf4* | osf5*) # as osf3* with the addition of -msym flag
9612 if test "$GCC" = yes; then
9613 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9614 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'
9615 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9616 else
9617 allow_undefined_flag=' -expect_unresolved \*'
9618 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'
9619 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~
9620 $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'
9622 # Both c and cxx compiler support -rpath directly
9623 hardcode_libdir_flag_spec='-rpath $libdir'
9625 archive_cmds_need_lc='no'
9626 hardcode_libdir_separator=:
9629 solaris*)
9630 no_undefined_flag=' -z defs'
9631 if test "$GCC" = yes; then
9632 wlarc='${wl}'
9633 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9634 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9635 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9636 else
9637 case `$CC -V 2>&1` in
9638 *"Compilers 5.0"*)
9639 wlarc=''
9640 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9641 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9642 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
9645 wlarc='${wl}'
9646 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
9647 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9648 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9650 esac
9652 hardcode_libdir_flag_spec='-R$libdir'
9653 hardcode_shlibpath_var=no
9654 case $host_os in
9655 solaris2.[0-5] | solaris2.[0-5].*) ;;
9657 # The compiler driver will combine and reorder linker options,
9658 # but understands `-z linker_flag'. GCC discards it without `$wl',
9659 # but is careful enough not to reorder.
9660 # Supported since Solaris 2.6 (maybe 2.5.1?)
9661 if test "$GCC" = yes; then
9662 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9663 else
9664 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
9667 esac
9668 link_all_deplibs=yes
9671 sunos4*)
9672 if test "x$host_vendor" = xsequent; then
9673 # Use $CC to link under sequent, because it throws in some extra .o
9674 # files that make .init and .fini sections work.
9675 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9676 else
9677 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9679 hardcode_libdir_flag_spec='-L$libdir'
9680 hardcode_direct=yes
9681 hardcode_minus_L=yes
9682 hardcode_shlibpath_var=no
9685 sysv4)
9686 case $host_vendor in
9687 sni)
9688 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9689 hardcode_direct=yes # is this really true???
9691 siemens)
9692 ## LD is ld it makes a PLAMLIB
9693 ## CC just makes a GrossModule.
9694 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9695 reload_cmds='$CC -r -o $output$reload_objs'
9696 hardcode_direct=no
9698 motorola)
9699 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9700 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9702 esac
9703 runpath_var='LD_RUN_PATH'
9704 hardcode_shlibpath_var=no
9707 sysv4.3*)
9708 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9709 hardcode_shlibpath_var=no
9710 export_dynamic_flag_spec='-Bexport'
9713 sysv4*MP*)
9714 if test -d /usr/nec; then
9715 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9716 hardcode_shlibpath_var=no
9717 runpath_var=LD_RUN_PATH
9718 hardcode_runpath_var=yes
9719 ld_shlibs=yes
9723 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
9724 no_undefined_flag='${wl}-z,text'
9725 archive_cmds_need_lc=no
9726 hardcode_shlibpath_var=no
9727 runpath_var='LD_RUN_PATH'
9729 if test "$GCC" = yes; then
9730 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9731 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9732 else
9733 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9734 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9738 sysv5* | sco3.2v5* | sco5v6*)
9739 # Note: We can NOT use -z defs as we might desire, because we do not
9740 # link with -lc, and that would cause any symbols used from libc to
9741 # always be unresolved, which means just about no library would
9742 # ever link correctly. If we're not using GNU ld we use -z text
9743 # though, which does catch some bad symbols but isn't as heavy-handed
9744 # as -z defs.
9745 no_undefined_flag='${wl}-z,text'
9746 allow_undefined_flag='${wl}-z,nodefs'
9747 archive_cmds_need_lc=no
9748 hardcode_shlibpath_var=no
9749 hardcode_libdir_flag_spec='${wl}-R,$libdir'
9750 hardcode_libdir_separator=':'
9751 link_all_deplibs=yes
9752 export_dynamic_flag_spec='${wl}-Bexport'
9753 runpath_var='LD_RUN_PATH'
9755 if test "$GCC" = yes; then
9756 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9757 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9758 else
9759 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9760 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9764 uts4*)
9765 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9766 hardcode_libdir_flag_spec='-L$libdir'
9767 hardcode_shlibpath_var=no
9771 ld_shlibs=no
9773 esac
9775 if test x$host_vendor = xsni; then
9776 case $host in
9777 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
9778 export_dynamic_flag_spec='${wl}-Blargedynsym'
9780 esac
9784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
9785 $as_echo "$ld_shlibs" >&6; }
9786 test "$ld_shlibs" = no && can_build_shared=no
9788 with_gnu_ld=$with_gnu_ld
9805 # Do we need to explicitly link libc?
9807 case "x$archive_cmds_need_lc" in
9808 x|xyes)
9809 # Assume -lc should be added
9810 archive_cmds_need_lc=yes
9812 if test "$enable_shared" = yes && test "$GCC" = yes; then
9813 case $archive_cmds in
9814 *'~'*)
9815 # FIXME: we may have to deal with multi-command sequences.
9817 '$CC '*)
9818 # Test whether the compiler implicitly links with -lc since on some
9819 # systems, -lgcc has to come before -lc. If gcc already passes -lc
9820 # to ld, don't add -lc before -lgcc.
9821 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
9822 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
9823 if test "${lt_cv_archive_cmds_need_lc+set}" = set; then :
9824 $as_echo_n "(cached) " >&6
9825 else
9826 $RM conftest*
9827 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9829 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9830 (eval $ac_compile) 2>&5
9831 ac_status=$?
9832 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9833 test $ac_status = 0; } 2>conftest.err; then
9834 soname=conftest
9835 lib=conftest
9836 libobjs=conftest.$ac_objext
9837 deplibs=
9838 wl=$lt_prog_compiler_wl
9839 pic_flag=$lt_prog_compiler_pic
9840 compiler_flags=-v
9841 linker_flags=-v
9842 verstring=
9843 output_objdir=.
9844 libname=conftest
9845 lt_save_allow_undefined_flag=$allow_undefined_flag
9846 allow_undefined_flag=
9847 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
9848 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
9849 ac_status=$?
9850 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9851 test $ac_status = 0; }
9852 then
9853 lt_cv_archive_cmds_need_lc=no
9854 else
9855 lt_cv_archive_cmds_need_lc=yes
9857 allow_undefined_flag=$lt_save_allow_undefined_flag
9858 else
9859 cat conftest.err 1>&5
9861 $RM conftest*
9864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
9865 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
9866 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
9868 esac
9871 esac
10029 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10030 $as_echo_n "checking dynamic linker characteristics... " >&6; }
10032 if test "$GCC" = yes; then
10033 case $host_os in
10034 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
10035 *) lt_awk_arg="/^libraries:/" ;;
10036 esac
10037 case $host_os in
10038 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
10039 *) lt_sed_strip_eq="s,=/,/,g" ;;
10040 esac
10041 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
10042 case $lt_search_path_spec in
10043 *\;*)
10044 # if the path contains ";" then we assume it to be the separator
10045 # otherwise default to the standard path separator (i.e. ":") - it is
10046 # assumed that no part of a normal pathname contains ";" but that should
10047 # okay in the real world where ";" in dirpaths is itself problematic.
10048 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
10051 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
10053 esac
10054 # Ok, now we have the path, separated by spaces, we can step through it
10055 # and add multilib dir if necessary.
10056 lt_tmp_lt_search_path_spec=
10057 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10058 for lt_sys_path in $lt_search_path_spec; do
10059 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
10060 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
10061 else
10062 test -d "$lt_sys_path" && \
10063 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10065 done
10066 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
10067 BEGIN {RS=" "; FS="/|\n";} {
10068 lt_foo="";
10069 lt_count=0;
10070 for (lt_i = NF; lt_i > 0; lt_i--) {
10071 if ($lt_i != "" && $lt_i != ".") {
10072 if ($lt_i == "..") {
10073 lt_count++;
10074 } else {
10075 if (lt_count == 0) {
10076 lt_foo="/" $lt_i lt_foo;
10077 } else {
10078 lt_count--;
10083 if (lt_foo != "") { lt_freq[lt_foo]++; }
10084 if (lt_freq[lt_foo] == 1) { print lt_foo; }
10086 # AWK program above erroneously prepends '/' to C:/dos/paths
10087 # for these hosts.
10088 case $host_os in
10089 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
10090 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
10091 esac
10092 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
10093 else
10094 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10096 library_names_spec=
10097 libname_spec='lib$name'
10098 soname_spec=
10099 shrext_cmds=".so"
10100 postinstall_cmds=
10101 postuninstall_cmds=
10102 finish_cmds=
10103 finish_eval=
10104 shlibpath_var=
10105 shlibpath_overrides_runpath=unknown
10106 version_type=none
10107 dynamic_linker="$host_os ld.so"
10108 sys_lib_dlsearch_path_spec="/lib /usr/lib"
10109 need_lib_prefix=unknown
10110 hardcode_into_libs=no
10112 # when you set need_version to no, make sure it does not cause -set_version
10113 # flags to be left without arguments
10114 need_version=unknown
10116 case $host_os in
10117 aix3*)
10118 version_type=linux
10119 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10120 shlibpath_var=LIBPATH
10122 # AIX 3 has no versioning support, so we append a major version to the name.
10123 soname_spec='${libname}${release}${shared_ext}$major'
10126 aix[4-9]*)
10127 version_type=linux
10128 need_lib_prefix=no
10129 need_version=no
10130 hardcode_into_libs=yes
10131 if test "$host_cpu" = ia64; then
10132 # AIX 5 supports IA64
10133 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10134 shlibpath_var=LD_LIBRARY_PATH
10135 else
10136 # With GCC up to 2.95.x, collect2 would create an import file
10137 # for dependence libraries. The import file would start with
10138 # the line `#! .'. This would cause the generated library to
10139 # depend on `.', always an invalid library. This was fixed in
10140 # development snapshots of GCC prior to 3.0.
10141 case $host_os in
10142 aix4 | aix4.[01] | aix4.[01].*)
10143 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10144 echo ' yes '
10145 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
10147 else
10148 can_build_shared=no
10151 esac
10152 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10153 # soname into executable. Probably we can add versioning support to
10154 # collect2, so additional links can be useful in future.
10155 if test "$aix_use_runtimelinking" = yes; then
10156 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10157 # instead of lib<name>.a to let people know that these are not
10158 # typical AIX shared libraries.
10159 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10160 else
10161 # We preserve .a as extension for shared libraries through AIX4.2
10162 # and later when we are not doing run time linking.
10163 library_names_spec='${libname}${release}.a $libname.a'
10164 soname_spec='${libname}${release}${shared_ext}$major'
10166 shlibpath_var=LIBPATH
10170 amigaos*)
10171 case $host_cpu in
10172 powerpc)
10173 # Since July 2007 AmigaOS4 officially supports .so libraries.
10174 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10175 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10177 m68k)
10178 library_names_spec='$libname.ixlibrary $libname.a'
10179 # Create ${libname}_ixlibrary.a entries in /sys/libs.
10180 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'
10182 esac
10185 beos*)
10186 library_names_spec='${libname}${shared_ext}'
10187 dynamic_linker="$host_os ld.so"
10188 shlibpath_var=LIBRARY_PATH
10191 bsdi[45]*)
10192 version_type=linux
10193 need_version=no
10194 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10195 soname_spec='${libname}${release}${shared_ext}$major'
10196 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10197 shlibpath_var=LD_LIBRARY_PATH
10198 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10199 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10200 # the default ld.so.conf also contains /usr/contrib/lib and
10201 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10202 # libtool to hard-code these into programs
10205 cygwin* | mingw* | pw32* | cegcc*)
10206 version_type=windows
10207 shrext_cmds=".dll"
10208 need_version=no
10209 need_lib_prefix=no
10211 case $GCC,$host_os in
10212 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
10213 library_names_spec='$libname.dll.a'
10214 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10215 postinstall_cmds='base_file=`basename \${file}`~
10216 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10217 dldir=$destdir/`dirname \$dlpath`~
10218 test -d \$dldir || mkdir -p \$dldir~
10219 $install_prog $dir/$dlname \$dldir/$dlname~
10220 chmod a+x \$dldir/$dlname~
10221 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10222 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10224 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10225 dlpath=$dir/\$dldll~
10226 $RM \$dlpath'
10227 shlibpath_overrides_runpath=yes
10229 case $host_os in
10230 cygwin*)
10231 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10232 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10234 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
10236 mingw* | cegcc*)
10237 # MinGW DLLs use traditional 'lib' prefix
10238 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10240 pw32*)
10241 # pw32 DLLs use 'pw' prefix rather than 'lib'
10242 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10244 esac
10248 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10250 esac
10251 dynamic_linker='Win32 ld.exe'
10252 # FIXME: first we should search . and the directory the executable is in
10253 shlibpath_var=PATH
10256 darwin* | rhapsody*)
10257 dynamic_linker="$host_os dyld"
10258 version_type=darwin
10259 need_lib_prefix=no
10260 need_version=no
10261 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10262 soname_spec='${libname}${release}${major}$shared_ext'
10263 shlibpath_overrides_runpath=yes
10264 shlibpath_var=DYLD_LIBRARY_PATH
10265 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10267 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10268 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10271 dgux*)
10272 version_type=linux
10273 need_lib_prefix=no
10274 need_version=no
10275 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10276 soname_spec='${libname}${release}${shared_ext}$major'
10277 shlibpath_var=LD_LIBRARY_PATH
10280 freebsd* | dragonfly*)
10281 # DragonFly does not have aout. When/if they implement a new
10282 # versioning mechanism, adjust this.
10283 if test -x /usr/bin/objformat; then
10284 objformat=`/usr/bin/objformat`
10285 else
10286 case $host_os in
10287 freebsd[23].*) objformat=aout ;;
10288 *) objformat=elf ;;
10289 esac
10291 version_type=freebsd-$objformat
10292 case $version_type in
10293 freebsd-elf*)
10294 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10295 need_version=no
10296 need_lib_prefix=no
10298 freebsd-*)
10299 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10300 need_version=yes
10302 esac
10303 shlibpath_var=LD_LIBRARY_PATH
10304 case $host_os in
10305 freebsd2.*)
10306 shlibpath_overrides_runpath=yes
10308 freebsd3.[01]* | freebsdelf3.[01]*)
10309 shlibpath_overrides_runpath=yes
10310 hardcode_into_libs=yes
10312 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10313 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10314 shlibpath_overrides_runpath=no
10315 hardcode_into_libs=yes
10317 *) # from 4.6 on, and DragonFly
10318 shlibpath_overrides_runpath=yes
10319 hardcode_into_libs=yes
10321 esac
10324 gnu*)
10325 version_type=linux
10326 need_lib_prefix=no
10327 need_version=no
10328 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10329 soname_spec='${libname}${release}${shared_ext}$major'
10330 shlibpath_var=LD_LIBRARY_PATH
10331 hardcode_into_libs=yes
10334 haiku*)
10335 version_type=linux
10336 need_lib_prefix=no
10337 need_version=no
10338 dynamic_linker="$host_os runtime_loader"
10339 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10340 soname_spec='${libname}${release}${shared_ext}$major'
10341 shlibpath_var=LIBRARY_PATH
10342 shlibpath_overrides_runpath=yes
10343 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
10344 hardcode_into_libs=yes
10347 hpux9* | hpux10* | hpux11*)
10348 # Give a soname corresponding to the major version so that dld.sl refuses to
10349 # link against other versions.
10350 version_type=sunos
10351 need_lib_prefix=no
10352 need_version=no
10353 case $host_cpu in
10354 ia64*)
10355 shrext_cmds='.so'
10356 hardcode_into_libs=yes
10357 dynamic_linker="$host_os dld.so"
10358 shlibpath_var=LD_LIBRARY_PATH
10359 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10360 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10361 soname_spec='${libname}${release}${shared_ext}$major'
10362 if test "X$HPUX_IA64_MODE" = X32; then
10363 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10364 else
10365 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10367 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10369 hppa*64*)
10370 shrext_cmds='.sl'
10371 hardcode_into_libs=yes
10372 dynamic_linker="$host_os dld.sl"
10373 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10374 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10375 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10376 soname_spec='${libname}${release}${shared_ext}$major'
10377 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10378 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10381 shrext_cmds='.sl'
10382 dynamic_linker="$host_os dld.sl"
10383 shlibpath_var=SHLIB_PATH
10384 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10385 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10386 soname_spec='${libname}${release}${shared_ext}$major'
10388 esac
10389 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
10390 postinstall_cmds='chmod 555 $lib'
10391 # or fails outright, so override atomically:
10392 install_override_mode=555
10395 interix[3-9]*)
10396 version_type=linux
10397 need_lib_prefix=no
10398 need_version=no
10399 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10400 soname_spec='${libname}${release}${shared_ext}$major'
10401 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10402 shlibpath_var=LD_LIBRARY_PATH
10403 shlibpath_overrides_runpath=no
10404 hardcode_into_libs=yes
10407 irix5* | irix6* | nonstopux*)
10408 case $host_os in
10409 nonstopux*) version_type=nonstopux ;;
10411 if test "$lt_cv_prog_gnu_ld" = yes; then
10412 version_type=linux
10413 else
10414 version_type=irix
10415 fi ;;
10416 esac
10417 need_lib_prefix=no
10418 need_version=no
10419 soname_spec='${libname}${release}${shared_ext}$major'
10420 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10421 case $host_os in
10422 irix5* | nonstopux*)
10423 libsuff= shlibsuff=
10426 case $LD in # libtool.m4 will add one of these switches to LD
10427 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10428 libsuff= shlibsuff= libmagic=32-bit;;
10429 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10430 libsuff=32 shlibsuff=N32 libmagic=N32;;
10431 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10432 libsuff=64 shlibsuff=64 libmagic=64-bit;;
10433 *) libsuff= shlibsuff= libmagic=never-match;;
10434 esac
10436 esac
10437 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10438 shlibpath_overrides_runpath=no
10439 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10440 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10441 hardcode_into_libs=yes
10444 # No shared lib support for Linux oldld, aout, or coff.
10445 linux*oldld* | linux*aout* | linux*coff*)
10446 dynamic_linker=no
10449 # This must be Linux ELF.
10450 linux* | k*bsd*-gnu | kopensolaris*-gnu)
10451 version_type=linux
10452 need_lib_prefix=no
10453 need_version=no
10454 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10455 soname_spec='${libname}${release}${shared_ext}$major'
10456 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10457 shlibpath_var=LD_LIBRARY_PATH
10458 shlibpath_overrides_runpath=no
10460 # Some binutils ld are patched to set DT_RUNPATH
10461 if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
10462 $as_echo_n "(cached) " >&6
10463 else
10464 lt_cv_shlibpath_overrides_runpath=no
10465 save_LDFLAGS=$LDFLAGS
10466 save_libdir=$libdir
10467 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10468 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10469 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10470 /* end confdefs.h. */
10473 main ()
10477 return 0;
10479 _ACEOF
10480 if ac_fn_c_try_link "$LINENO"; then :
10481 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
10482 lt_cv_shlibpath_overrides_runpath=yes
10485 rm -f core conftest.err conftest.$ac_objext \
10486 conftest$ac_exeext conftest.$ac_ext
10487 LDFLAGS=$save_LDFLAGS
10488 libdir=$save_libdir
10492 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
10494 # This implies no fast_install, which is unacceptable.
10495 # Some rework will be needed to allow for fast_install
10496 # before this can be enabled.
10497 hardcode_into_libs=yes
10499 # Append ld.so.conf contents to the search path
10500 if test -f /etc/ld.so.conf; then
10501 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' ' '`
10502 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10505 # We used to test for /lib/ld.so.1 and disable shared libraries on
10506 # powerpc, because MkLinux only supported shared libraries with the
10507 # GNU dynamic linker. Since this was broken with cross compilers,
10508 # most powerpc-linux boxes support dynamic linking these days and
10509 # people can always --disable-shared, the test was removed, and we
10510 # assume the GNU/Linux dynamic linker is in use.
10511 dynamic_linker='GNU/Linux ld.so'
10514 netbsd*)
10515 version_type=sunos
10516 need_lib_prefix=no
10517 need_version=no
10518 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10519 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10520 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10521 dynamic_linker='NetBSD (a.out) ld.so'
10522 else
10523 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10524 soname_spec='${libname}${release}${shared_ext}$major'
10525 dynamic_linker='NetBSD ld.elf_so'
10527 shlibpath_var=LD_LIBRARY_PATH
10528 shlibpath_overrides_runpath=yes
10529 hardcode_into_libs=yes
10532 newsos6)
10533 version_type=linux
10534 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10535 shlibpath_var=LD_LIBRARY_PATH
10536 shlibpath_overrides_runpath=yes
10539 *nto* | *qnx*)
10540 version_type=qnx
10541 need_lib_prefix=no
10542 need_version=no
10543 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10544 soname_spec='${libname}${release}${shared_ext}$major'
10545 shlibpath_var=LD_LIBRARY_PATH
10546 shlibpath_overrides_runpath=no
10547 hardcode_into_libs=yes
10548 dynamic_linker='ldqnx.so'
10551 openbsd*)
10552 version_type=sunos
10553 sys_lib_dlsearch_path_spec="/usr/lib"
10554 need_lib_prefix=no
10555 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10556 case $host_os in
10557 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
10558 *) need_version=no ;;
10559 esac
10560 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10561 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10562 shlibpath_var=LD_LIBRARY_PATH
10563 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10564 case $host_os in
10565 openbsd2.[89] | openbsd2.[89].*)
10566 shlibpath_overrides_runpath=no
10569 shlibpath_overrides_runpath=yes
10571 esac
10572 else
10573 shlibpath_overrides_runpath=yes
10577 os2*)
10578 libname_spec='$name'
10579 shrext_cmds=".dll"
10580 need_lib_prefix=no
10581 library_names_spec='$libname${shared_ext} $libname.a'
10582 dynamic_linker='OS/2 ld.exe'
10583 shlibpath_var=LIBPATH
10586 osf3* | osf4* | osf5*)
10587 version_type=osf
10588 need_lib_prefix=no
10589 need_version=no
10590 soname_spec='${libname}${release}${shared_ext}$major'
10591 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10592 shlibpath_var=LD_LIBRARY_PATH
10593 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10594 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10597 rdos*)
10598 dynamic_linker=no
10601 solaris*)
10602 version_type=linux
10603 need_lib_prefix=no
10604 need_version=no
10605 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10606 soname_spec='${libname}${release}${shared_ext}$major'
10607 shlibpath_var=LD_LIBRARY_PATH
10608 shlibpath_overrides_runpath=yes
10609 hardcode_into_libs=yes
10610 # ldd complains unless libraries are executable
10611 postinstall_cmds='chmod +x $lib'
10614 sunos4*)
10615 version_type=sunos
10616 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10617 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10618 shlibpath_var=LD_LIBRARY_PATH
10619 shlibpath_overrides_runpath=yes
10620 if test "$with_gnu_ld" = yes; then
10621 need_lib_prefix=no
10623 need_version=yes
10626 sysv4 | sysv4.3*)
10627 version_type=linux
10628 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10629 soname_spec='${libname}${release}${shared_ext}$major'
10630 shlibpath_var=LD_LIBRARY_PATH
10631 case $host_vendor in
10632 sni)
10633 shlibpath_overrides_runpath=no
10634 need_lib_prefix=no
10635 runpath_var=LD_RUN_PATH
10637 siemens)
10638 need_lib_prefix=no
10640 motorola)
10641 need_lib_prefix=no
10642 need_version=no
10643 shlibpath_overrides_runpath=no
10644 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10646 esac
10649 sysv4*MP*)
10650 if test -d /usr/nec ;then
10651 version_type=linux
10652 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10653 soname_spec='$libname${shared_ext}.$major'
10654 shlibpath_var=LD_LIBRARY_PATH
10658 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10659 version_type=freebsd-elf
10660 need_lib_prefix=no
10661 need_version=no
10662 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10663 soname_spec='${libname}${release}${shared_ext}$major'
10664 shlibpath_var=LD_LIBRARY_PATH
10665 shlibpath_overrides_runpath=yes
10666 hardcode_into_libs=yes
10667 if test "$with_gnu_ld" = yes; then
10668 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10669 else
10670 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10671 case $host_os in
10672 sco3.2v5*)
10673 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10675 esac
10677 sys_lib_dlsearch_path_spec='/usr/lib'
10680 tpf*)
10681 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
10682 version_type=linux
10683 need_lib_prefix=no
10684 need_version=no
10685 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10686 shlibpath_var=LD_LIBRARY_PATH
10687 shlibpath_overrides_runpath=no
10688 hardcode_into_libs=yes
10691 uts4*)
10692 version_type=linux
10693 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10694 soname_spec='${libname}${release}${shared_ext}$major'
10695 shlibpath_var=LD_LIBRARY_PATH
10699 dynamic_linker=no
10701 esac
10702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
10703 $as_echo "$dynamic_linker" >&6; }
10704 test "$dynamic_linker" = no && can_build_shared=no
10706 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10707 if test "$GCC" = yes; then
10708 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10711 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
10712 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
10714 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
10715 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
10809 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
10810 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
10811 hardcode_action=
10812 if test -n "$hardcode_libdir_flag_spec" ||
10813 test -n "$runpath_var" ||
10814 test "X$hardcode_automatic" = "Xyes" ; then
10816 # We can hardcode non-existent directories.
10817 if test "$hardcode_direct" != no &&
10818 # If the only mechanism to avoid hardcoding is shlibpath_var, we
10819 # have to relink, otherwise we might link with an installed library
10820 # when we should be linking with a yet-to-be-installed one
10821 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
10822 test "$hardcode_minus_L" != no; then
10823 # Linking always hardcodes the temporary library directory.
10824 hardcode_action=relink
10825 else
10826 # We can link without hardcoding, and we can hardcode nonexisting dirs.
10827 hardcode_action=immediate
10829 else
10830 # We cannot hardcode anything, or else we can only hardcode existing
10831 # directories.
10832 hardcode_action=unsupported
10834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
10835 $as_echo "$hardcode_action" >&6; }
10837 if test "$hardcode_action" = relink ||
10838 test "$inherit_rpath" = yes; then
10839 # Fast installation is not supported
10840 enable_fast_install=no
10841 elif test "$shlibpath_overrides_runpath" = yes ||
10842 test "$enable_shared" = no; then
10843 # Fast installation is not necessary
10844 enable_fast_install=needless
10852 if test "x$enable_dlopen" != xyes; then
10853 enable_dlopen=unknown
10854 enable_dlopen_self=unknown
10855 enable_dlopen_self_static=unknown
10856 else
10857 lt_cv_dlopen=no
10858 lt_cv_dlopen_libs=
10860 case $host_os in
10861 beos*)
10862 lt_cv_dlopen="load_add_on"
10863 lt_cv_dlopen_libs=
10864 lt_cv_dlopen_self=yes
10867 mingw* | pw32* | cegcc*)
10868 lt_cv_dlopen="LoadLibrary"
10869 lt_cv_dlopen_libs=
10872 cygwin*)
10873 lt_cv_dlopen="dlopen"
10874 lt_cv_dlopen_libs=
10877 darwin*)
10878 # if libdl is installed we need to link against it
10879 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10880 $as_echo_n "checking for dlopen in -ldl... " >&6; }
10881 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
10882 $as_echo_n "(cached) " >&6
10883 else
10884 ac_check_lib_save_LIBS=$LIBS
10885 LIBS="-ldl $LIBS"
10886 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10887 /* end confdefs.h. */
10889 /* Override any GCC internal prototype to avoid an error.
10890 Use char because int might match the return type of a GCC
10891 builtin and then its argument prototype would still apply. */
10892 #ifdef __cplusplus
10893 extern "C"
10894 #endif
10895 char dlopen ();
10897 main ()
10899 return dlopen ();
10901 return 0;
10903 _ACEOF
10904 if ac_fn_c_try_link "$LINENO"; then :
10905 ac_cv_lib_dl_dlopen=yes
10906 else
10907 ac_cv_lib_dl_dlopen=no
10909 rm -f core conftest.err conftest.$ac_objext \
10910 conftest$ac_exeext conftest.$ac_ext
10911 LIBS=$ac_check_lib_save_LIBS
10913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10914 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10915 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
10916 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10917 else
10919 lt_cv_dlopen="dyld"
10920 lt_cv_dlopen_libs=
10921 lt_cv_dlopen_self=yes
10928 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
10929 if test "x$ac_cv_func_shl_load" = x""yes; then :
10930 lt_cv_dlopen="shl_load"
10931 else
10932 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
10933 $as_echo_n "checking for shl_load in -ldld... " >&6; }
10934 if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
10935 $as_echo_n "(cached) " >&6
10936 else
10937 ac_check_lib_save_LIBS=$LIBS
10938 LIBS="-ldld $LIBS"
10939 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10940 /* end confdefs.h. */
10942 /* Override any GCC internal prototype to avoid an error.
10943 Use char because int might match the return type of a GCC
10944 builtin and then its argument prototype would still apply. */
10945 #ifdef __cplusplus
10946 extern "C"
10947 #endif
10948 char shl_load ();
10950 main ()
10952 return shl_load ();
10954 return 0;
10956 _ACEOF
10957 if ac_fn_c_try_link "$LINENO"; then :
10958 ac_cv_lib_dld_shl_load=yes
10959 else
10960 ac_cv_lib_dld_shl_load=no
10962 rm -f core conftest.err conftest.$ac_objext \
10963 conftest$ac_exeext conftest.$ac_ext
10964 LIBS=$ac_check_lib_save_LIBS
10966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
10967 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
10968 if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
10969 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
10970 else
10971 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
10972 if test "x$ac_cv_func_dlopen" = x""yes; then :
10973 lt_cv_dlopen="dlopen"
10974 else
10975 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10976 $as_echo_n "checking for dlopen in -ldl... " >&6; }
10977 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
10978 $as_echo_n "(cached) " >&6
10979 else
10980 ac_check_lib_save_LIBS=$LIBS
10981 LIBS="-ldl $LIBS"
10982 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10983 /* end confdefs.h. */
10985 /* Override any GCC internal prototype to avoid an error.
10986 Use char because int might match the return type of a GCC
10987 builtin and then its argument prototype would still apply. */
10988 #ifdef __cplusplus
10989 extern "C"
10990 #endif
10991 char dlopen ();
10993 main ()
10995 return dlopen ();
10997 return 0;
10999 _ACEOF
11000 if ac_fn_c_try_link "$LINENO"; then :
11001 ac_cv_lib_dl_dlopen=yes
11002 else
11003 ac_cv_lib_dl_dlopen=no
11005 rm -f core conftest.err conftest.$ac_objext \
11006 conftest$ac_exeext conftest.$ac_ext
11007 LIBS=$ac_check_lib_save_LIBS
11009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11010 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11011 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
11012 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11013 else
11014 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11015 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
11016 if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
11017 $as_echo_n "(cached) " >&6
11018 else
11019 ac_check_lib_save_LIBS=$LIBS
11020 LIBS="-lsvld $LIBS"
11021 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11022 /* end confdefs.h. */
11024 /* Override any GCC internal prototype to avoid an error.
11025 Use char because int might match the return type of a GCC
11026 builtin and then its argument prototype would still apply. */
11027 #ifdef __cplusplus
11028 extern "C"
11029 #endif
11030 char dlopen ();
11032 main ()
11034 return dlopen ();
11036 return 0;
11038 _ACEOF
11039 if ac_fn_c_try_link "$LINENO"; then :
11040 ac_cv_lib_svld_dlopen=yes
11041 else
11042 ac_cv_lib_svld_dlopen=no
11044 rm -f core conftest.err conftest.$ac_objext \
11045 conftest$ac_exeext conftest.$ac_ext
11046 LIBS=$ac_check_lib_save_LIBS
11048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11049 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11050 if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
11051 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11052 else
11053 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11054 $as_echo_n "checking for dld_link in -ldld... " >&6; }
11055 if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
11056 $as_echo_n "(cached) " >&6
11057 else
11058 ac_check_lib_save_LIBS=$LIBS
11059 LIBS="-ldld $LIBS"
11060 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11061 /* end confdefs.h. */
11063 /* Override any GCC internal prototype to avoid an error.
11064 Use char because int might match the return type of a GCC
11065 builtin and then its argument prototype would still apply. */
11066 #ifdef __cplusplus
11067 extern "C"
11068 #endif
11069 char dld_link ();
11071 main ()
11073 return dld_link ();
11075 return 0;
11077 _ACEOF
11078 if ac_fn_c_try_link "$LINENO"; then :
11079 ac_cv_lib_dld_dld_link=yes
11080 else
11081 ac_cv_lib_dld_dld_link=no
11083 rm -f core conftest.err conftest.$ac_objext \
11084 conftest$ac_exeext conftest.$ac_ext
11085 LIBS=$ac_check_lib_save_LIBS
11087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11088 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11089 if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
11090 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
11109 esac
11111 if test "x$lt_cv_dlopen" != xno; then
11112 enable_dlopen=yes
11113 else
11114 enable_dlopen=no
11117 case $lt_cv_dlopen in
11118 dlopen)
11119 save_CPPFLAGS="$CPPFLAGS"
11120 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11122 save_LDFLAGS="$LDFLAGS"
11123 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11125 save_LIBS="$LIBS"
11126 LIBS="$lt_cv_dlopen_libs $LIBS"
11128 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
11129 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
11130 if test "${lt_cv_dlopen_self+set}" = set; then :
11131 $as_echo_n "(cached) " >&6
11132 else
11133 if test "$cross_compiling" = yes; then :
11134 lt_cv_dlopen_self=cross
11135 else
11136 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11137 lt_status=$lt_dlunknown
11138 cat > conftest.$ac_ext <<_LT_EOF
11139 #line 11139 "configure"
11140 #include "confdefs.h"
11142 #if HAVE_DLFCN_H
11143 #include <dlfcn.h>
11144 #endif
11146 #include <stdio.h>
11148 #ifdef RTLD_GLOBAL
11149 # define LT_DLGLOBAL RTLD_GLOBAL
11150 #else
11151 # ifdef DL_GLOBAL
11152 # define LT_DLGLOBAL DL_GLOBAL
11153 # else
11154 # define LT_DLGLOBAL 0
11155 # endif
11156 #endif
11158 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11159 find out it does not work in some platform. */
11160 #ifndef LT_DLLAZY_OR_NOW
11161 # ifdef RTLD_LAZY
11162 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11163 # else
11164 # ifdef DL_LAZY
11165 # define LT_DLLAZY_OR_NOW DL_LAZY
11166 # else
11167 # ifdef RTLD_NOW
11168 # define LT_DLLAZY_OR_NOW RTLD_NOW
11169 # else
11170 # ifdef DL_NOW
11171 # define LT_DLLAZY_OR_NOW DL_NOW
11172 # else
11173 # define LT_DLLAZY_OR_NOW 0
11174 # endif
11175 # endif
11176 # endif
11177 # endif
11178 #endif
11180 /* When -fvisbility=hidden is used, assume the code has been annotated
11181 correspondingly for the symbols needed. */
11182 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11183 void fnord () __attribute__((visibility("default")));
11184 #endif
11186 void fnord () { int i=42; }
11187 int main ()
11189 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11190 int status = $lt_dlunknown;
11192 if (self)
11194 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11195 else
11197 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11198 else puts (dlerror ());
11200 /* dlclose (self); */
11202 else
11203 puts (dlerror ());
11205 return status;
11207 _LT_EOF
11208 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11209 (eval $ac_link) 2>&5
11210 ac_status=$?
11211 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11212 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11213 (./conftest; exit; ) >&5 2>/dev/null
11214 lt_status=$?
11215 case x$lt_status in
11216 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11217 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11218 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11219 esac
11220 else :
11221 # compilation failed
11222 lt_cv_dlopen_self=no
11225 rm -fr conftest*
11229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11230 $as_echo "$lt_cv_dlopen_self" >&6; }
11232 if test "x$lt_cv_dlopen_self" = xyes; then
11233 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11234 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11235 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11236 if test "${lt_cv_dlopen_self_static+set}" = set; then :
11237 $as_echo_n "(cached) " >&6
11238 else
11239 if test "$cross_compiling" = yes; then :
11240 lt_cv_dlopen_self_static=cross
11241 else
11242 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11243 lt_status=$lt_dlunknown
11244 cat > conftest.$ac_ext <<_LT_EOF
11245 #line 11245 "configure"
11246 #include "confdefs.h"
11248 #if HAVE_DLFCN_H
11249 #include <dlfcn.h>
11250 #endif
11252 #include <stdio.h>
11254 #ifdef RTLD_GLOBAL
11255 # define LT_DLGLOBAL RTLD_GLOBAL
11256 #else
11257 # ifdef DL_GLOBAL
11258 # define LT_DLGLOBAL DL_GLOBAL
11259 # else
11260 # define LT_DLGLOBAL 0
11261 # endif
11262 #endif
11264 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11265 find out it does not work in some platform. */
11266 #ifndef LT_DLLAZY_OR_NOW
11267 # ifdef RTLD_LAZY
11268 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11269 # else
11270 # ifdef DL_LAZY
11271 # define LT_DLLAZY_OR_NOW DL_LAZY
11272 # else
11273 # ifdef RTLD_NOW
11274 # define LT_DLLAZY_OR_NOW RTLD_NOW
11275 # else
11276 # ifdef DL_NOW
11277 # define LT_DLLAZY_OR_NOW DL_NOW
11278 # else
11279 # define LT_DLLAZY_OR_NOW 0
11280 # endif
11281 # endif
11282 # endif
11283 # endif
11284 #endif
11286 /* When -fvisbility=hidden is used, assume the code has been annotated
11287 correspondingly for the symbols needed. */
11288 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11289 void fnord () __attribute__((visibility("default")));
11290 #endif
11292 void fnord () { int i=42; }
11293 int main ()
11295 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11296 int status = $lt_dlunknown;
11298 if (self)
11300 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11301 else
11303 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11304 else puts (dlerror ());
11306 /* dlclose (self); */
11308 else
11309 puts (dlerror ());
11311 return status;
11313 _LT_EOF
11314 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11315 (eval $ac_link) 2>&5
11316 ac_status=$?
11317 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11318 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11319 (./conftest; exit; ) >&5 2>/dev/null
11320 lt_status=$?
11321 case x$lt_status in
11322 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11323 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11324 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11325 esac
11326 else :
11327 # compilation failed
11328 lt_cv_dlopen_self_static=no
11331 rm -fr conftest*
11335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11336 $as_echo "$lt_cv_dlopen_self_static" >&6; }
11339 CPPFLAGS="$save_CPPFLAGS"
11340 LDFLAGS="$save_LDFLAGS"
11341 LIBS="$save_LIBS"
11343 esac
11345 case $lt_cv_dlopen_self in
11346 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11347 *) enable_dlopen_self=unknown ;;
11348 esac
11350 case $lt_cv_dlopen_self_static in
11351 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11352 *) enable_dlopen_self_static=unknown ;;
11353 esac
11372 striplib=
11373 old_striplib=
11374 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11375 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
11376 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11377 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11378 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11380 $as_echo "yes" >&6; }
11381 else
11382 # FIXME - insert some real tests, host_os isn't really good enough
11383 case $host_os in
11384 darwin*)
11385 if test -n "$STRIP" ; then
11386 striplib="$STRIP -x"
11387 old_striplib="$STRIP -S"
11388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11389 $as_echo "yes" >&6; }
11390 else
11391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11392 $as_echo "no" >&6; }
11396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11397 $as_echo "no" >&6; }
11399 esac
11413 # Report which library types will actually be built
11414 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
11415 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
11416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
11417 $as_echo "$can_build_shared" >&6; }
11419 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
11420 $as_echo_n "checking whether to build shared libraries... " >&6; }
11421 test "$can_build_shared" = "no" && enable_shared=no
11423 # On AIX, shared libraries and static libraries use the same namespace, and
11424 # are all built from PIC.
11425 case $host_os in
11426 aix3*)
11427 test "$enable_shared" = yes && enable_static=no
11428 if test -n "$RANLIB"; then
11429 archive_cmds="$archive_cmds~\$RANLIB \$lib"
11430 postinstall_cmds='$RANLIB $lib'
11434 aix[4-9]*)
11435 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11436 test "$enable_shared" = yes && enable_static=no
11439 esac
11440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
11441 $as_echo "$enable_shared" >&6; }
11443 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
11444 $as_echo_n "checking whether to build static libraries... " >&6; }
11445 # Make sure either enable_shared or enable_static is yes.
11446 test "$enable_shared" = yes || enable_static=yes
11447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
11448 $as_echo "$enable_static" >&6; }
11454 ac_ext=c
11455 ac_cpp='$CPP $CPPFLAGS'
11456 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11457 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11458 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11460 CC="$lt_save_CC"
11474 ac_config_commands="$ac_config_commands libtool"
11479 # Only expand once:
11484 # Check whether --enable-largefile was given.
11485 if test "${enable_largefile+set}" = set; then :
11486 enableval=$enable_largefile;
11489 if test "$enable_largefile" != no; then
11491 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
11492 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
11493 if test "${ac_cv_sys_largefile_CC+set}" = set; then :
11494 $as_echo_n "(cached) " >&6
11495 else
11496 ac_cv_sys_largefile_CC=no
11497 if test "$GCC" != yes; then
11498 ac_save_CC=$CC
11499 while :; do
11500 # IRIX 6.2 and later do not support large files by default,
11501 # so use the C compiler's -n32 option if that helps.
11502 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11503 /* end confdefs.h. */
11504 #include <sys/types.h>
11505 /* Check that off_t can represent 2**63 - 1 correctly.
11506 We can't simply define LARGE_OFF_T to be 9223372036854775807,
11507 since some C++ compilers masquerading as C compilers
11508 incorrectly reject 9223372036854775807. */
11509 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
11510 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
11511 && LARGE_OFF_T % 2147483647 == 1)
11512 ? 1 : -1];
11514 main ()
11518 return 0;
11520 _ACEOF
11521 if ac_fn_c_try_compile "$LINENO"; then :
11522 break
11524 rm -f core conftest.err conftest.$ac_objext
11525 CC="$CC -n32"
11526 if ac_fn_c_try_compile "$LINENO"; then :
11527 ac_cv_sys_largefile_CC=' -n32'; break
11529 rm -f core conftest.err conftest.$ac_objext
11530 break
11531 done
11532 CC=$ac_save_CC
11533 rm -f conftest.$ac_ext
11536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
11537 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
11538 if test "$ac_cv_sys_largefile_CC" != no; then
11539 CC=$CC$ac_cv_sys_largefile_CC
11542 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
11543 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
11544 if test "${ac_cv_sys_file_offset_bits+set}" = set; then :
11545 $as_echo_n "(cached) " >&6
11546 else
11547 while :; do
11548 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11549 /* end confdefs.h. */
11550 #include <sys/types.h>
11551 /* Check that off_t can represent 2**63 - 1 correctly.
11552 We can't simply define LARGE_OFF_T to be 9223372036854775807,
11553 since some C++ compilers masquerading as C compilers
11554 incorrectly reject 9223372036854775807. */
11555 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
11556 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
11557 && LARGE_OFF_T % 2147483647 == 1)
11558 ? 1 : -1];
11560 main ()
11564 return 0;
11566 _ACEOF
11567 if ac_fn_c_try_compile "$LINENO"; then :
11568 ac_cv_sys_file_offset_bits=no; break
11570 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11571 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11572 /* end confdefs.h. */
11573 #define _FILE_OFFSET_BITS 64
11574 #include <sys/types.h>
11575 /* Check that off_t can represent 2**63 - 1 correctly.
11576 We can't simply define LARGE_OFF_T to be 9223372036854775807,
11577 since some C++ compilers masquerading as C compilers
11578 incorrectly reject 9223372036854775807. */
11579 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
11580 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
11581 && LARGE_OFF_T % 2147483647 == 1)
11582 ? 1 : -1];
11584 main ()
11588 return 0;
11590 _ACEOF
11591 if ac_fn_c_try_compile "$LINENO"; then :
11592 ac_cv_sys_file_offset_bits=64; break
11594 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11595 ac_cv_sys_file_offset_bits=unknown
11596 break
11597 done
11599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
11600 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
11601 case $ac_cv_sys_file_offset_bits in #(
11602 no | unknown) ;;
11604 cat >>confdefs.h <<_ACEOF
11605 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
11606 _ACEOF
11608 esac
11609 rm -rf conftest*
11610 if test $ac_cv_sys_file_offset_bits = unknown; then
11611 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
11612 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
11613 if test "${ac_cv_sys_large_files+set}" = set; then :
11614 $as_echo_n "(cached) " >&6
11615 else
11616 while :; do
11617 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11618 /* end confdefs.h. */
11619 #include <sys/types.h>
11620 /* Check that off_t can represent 2**63 - 1 correctly.
11621 We can't simply define LARGE_OFF_T to be 9223372036854775807,
11622 since some C++ compilers masquerading as C compilers
11623 incorrectly reject 9223372036854775807. */
11624 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
11625 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
11626 && LARGE_OFF_T % 2147483647 == 1)
11627 ? 1 : -1];
11629 main ()
11633 return 0;
11635 _ACEOF
11636 if ac_fn_c_try_compile "$LINENO"; then :
11637 ac_cv_sys_large_files=no; break
11639 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11640 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11641 /* end confdefs.h. */
11642 #define _LARGE_FILES 1
11643 #include <sys/types.h>
11644 /* Check that off_t can represent 2**63 - 1 correctly.
11645 We can't simply define LARGE_OFF_T to be 9223372036854775807,
11646 since some C++ compilers masquerading as C compilers
11647 incorrectly reject 9223372036854775807. */
11648 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
11649 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
11650 && LARGE_OFF_T % 2147483647 == 1)
11651 ? 1 : -1];
11653 main ()
11657 return 0;
11659 _ACEOF
11660 if ac_fn_c_try_compile "$LINENO"; then :
11661 ac_cv_sys_large_files=1; break
11663 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11664 ac_cv_sys_large_files=unknown
11665 break
11666 done
11668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
11669 $as_echo "$ac_cv_sys_large_files" >&6; }
11670 case $ac_cv_sys_large_files in #(
11671 no | unknown) ;;
11673 cat >>confdefs.h <<_ACEOF
11674 #define _LARGE_FILES $ac_cv_sys_large_files
11675 _ACEOF
11677 esac
11678 rm -rf conftest*
11683 backtrace_supported=yes
11685 if test -n "${with_target_subdir}"; then
11686 # We are compiling a GCC library. We can assume that the unwind
11687 # library exists.
11688 BACKTRACE_FILE="backtrace.lo simple.lo"
11689 else
11690 ac_fn_c_check_header_mongrel "$LINENO" "unwind.h" "ac_cv_header_unwind_h" "$ac_includes_default"
11691 if test "x$ac_cv_header_unwind_h" = x""yes; then :
11692 ac_fn_c_check_func "$LINENO" "_Unwind_Backtrace" "ac_cv_func__Unwind_Backtrace"
11693 if test "x$ac_cv_func__Unwind_Backtrace" = x""yes; then :
11694 BACKTRACE_FILE="backtrace.lo simple.lo"
11695 else
11696 BACKTRACE_FILE="nounwind.lo"
11697 backtrace_supported=no
11700 else
11701 BACKTRACE_FILE="nounwind.lo"
11702 backtrace_supported=no
11709 EXTRA_FLAGS=
11710 if test -n "${with_target_subdir}"; then
11711 EXTRA_FLAGS="-funwind-tables -frandom-seed=\$@"
11712 else
11713 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -funwind-tables option" >&5
11714 $as_echo_n "checking for -funwind-tables option... " >&6; }
11715 if test "${libbacktrace_cv_c_unwind_tables+set}" = set; then :
11716 $as_echo_n "(cached) " >&6
11717 else
11718 CFLAGS_hold="$CFLAGS"
11719 CFLAGS="$CFLAGS -funwind-tables"
11720 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11721 /* end confdefs.h. */
11722 static int f() { return 0; }
11724 main ()
11726 return f();
11728 return 0;
11730 _ACEOF
11731 if ac_fn_c_try_compile "$LINENO"; then :
11732 libbacktrace_cv_c_unwind_tables=yes
11733 else
11734 libbacktrace_cv_c_unwind_tables=no
11736 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11737 CFLAGS="$CFLAGS_hold"
11739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libbacktrace_cv_c_unwind_tables" >&5
11740 $as_echo "$libbacktrace_cv_c_unwind_tables" >&6; }
11741 if test "$libbacktrace_cv_c_unwind_tables" = "yes"; then
11742 EXTRA_FLAGS=-funwind-tables
11744 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -frandom-seed=string option" >&5
11745 $as_echo_n "checking for -frandom-seed=string option... " >&6; }
11746 if test "${libbacktrace_cv_c_random_seed_string+set}" = set; then :
11747 $as_echo_n "(cached) " >&6
11748 else
11749 CFLAGS_hold="$CFLAGS"
11750 CFLAGS="$CFLAGS -frandom-seed=conftest.lo"
11751 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11752 /* end confdefs.h. */
11755 main ()
11757 return 0;
11759 return 0;
11761 _ACEOF
11762 if ac_fn_c_try_compile "$LINENO"; then :
11763 libbacktrace_cv_c_random_seed_string=yes
11764 else
11765 libbacktrace_cv_c_random_seed_string=no
11767 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11768 CFLAGS="$CFLAGS_hold"
11770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libbacktrace_cv_c_random_seed_string" >&5
11771 $as_echo "$libbacktrace_cv_c_random_seed_string" >&6; }
11772 if test "$libbacktrace_cv_c_random_seed_string" = "yes"; then
11773 EXTRA_FLAGS="$EXTRA_FLAGS -frandom-seed=\$@"
11778 ac_ext=c
11779 ac_cpp='$CPP $CPPFLAGS'
11780 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11781 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11782 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11784 WARN_FLAGS=
11785 save_CFLAGS="$CFLAGS"
11786 for real_option in -W -Wall -Wwrite-strings -Wstrict-prototypes \
11787 -Wmissing-prototypes -Wold-style-definition \
11788 -Wmissing-format-attribute -Wcast-qual; do
11789 # Do the check with the no- prefix removed since gcc silently
11790 # accepts any -Wno-* option on purpose
11791 case $real_option in
11792 -Wno-*) option=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
11793 *) option=$real_option ;;
11794 esac
11795 as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
11797 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
11798 $as_echo_n "checking whether $CC supports $option... " >&6; }
11799 if { as_var=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
11800 $as_echo_n "(cached) " >&6
11801 else
11802 CFLAGS="$option"
11803 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11804 /* end confdefs.h. */
11807 main ()
11811 return 0;
11813 _ACEOF
11814 if ac_fn_c_try_compile "$LINENO"; then :
11815 eval "$as_acx_Woption=yes"
11816 else
11817 eval "$as_acx_Woption=no"
11819 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11822 eval ac_res=\$$as_acx_Woption
11823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
11824 $as_echo "$ac_res" >&6; }
11825 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
11826 WARN_FLAGS="$WARN_FLAGS${WARN_FLAGS:+ }$real_option"
11828 done
11829 CFLAGS="$save_CFLAGS"
11830 ac_ext=c
11831 ac_cpp='$CPP $CPPFLAGS'
11832 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11833 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11834 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11838 if test -n "${with_target_subdir}"; then
11839 WARN_FLAGS="$WARN_FLAGS -Werror"
11844 if test -n "${with_target_subdir}"; then
11847 # Check whether --with-system-libunwind was given.
11848 if test "${with_system_libunwind+set}" = set; then :
11849 withval=$with_system_libunwind;
11852 # If system-libunwind was not specifically set, pick a default setting.
11853 if test x$with_system_libunwind = x; then
11854 case ${target} in
11855 ia64-*-hpux*) with_system_libunwind=yes ;;
11856 *) with_system_libunwind=no ;;
11857 esac
11859 # Based on system-libunwind and target, do we have ipinfo?
11860 if test x$with_system_libunwind = xyes; then
11861 case ${target} in
11862 ia64-*-*) have_unwind_getipinfo=no ;;
11863 *) have_unwind_getipinfo=yes ;;
11864 esac
11865 else
11866 # Darwin before version 9 does not have _Unwind_GetIPInfo.
11868 case ${target} in
11869 *-*-darwin[3-8]|*-*-darwin[3-8].*) have_unwind_getipinfo=no ;;
11870 *) have_unwind_getipinfo=yes ;;
11871 esac
11875 if test x$have_unwind_getipinfo = xyes; then
11877 $as_echo "#define HAVE_GETIPINFO 1" >>confdefs.h
11881 else
11882 ac_save_CFFLAGS="$CFLAGS"
11883 CFLAGS="$CFLAGS -Werror-implicit-function-declaration"
11884 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _Unwind_GetIPInfo" >&5
11885 $as_echo_n "checking for _Unwind_GetIPInfo... " >&6; }
11886 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11887 /* end confdefs.h. */
11888 #include "unwind.h"
11889 struct _Unwind_Context *context;
11890 int ip_before_insn = 0;
11892 main ()
11894 return _Unwind_GetIPInfo (context, &ip_before_insn);
11896 return 0;
11898 _ACEOF
11899 if ac_fn_c_try_link "$LINENO"; then :
11900 have_unwind_getipinfo=yes
11901 else
11902 have_unwind_getipinfo=no
11904 rm -f core conftest.err conftest.$ac_objext \
11905 conftest$ac_exeext conftest.$ac_ext
11906 CFLAGS="$ac_save_CFLAGS"
11907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_unwind_getipinfo" >&5
11908 $as_echo "$have_unwind_getipinfo" >&6; }
11909 if test "$have_unwind_getipinfo" = "yes"; then
11911 $as_echo "#define HAVE_GETIPINFO 1" >>confdefs.h
11916 # Enable --enable-host-shared.
11917 # Check whether --enable-host-shared was given.
11918 if test "${enable_host_shared+set}" = set; then :
11919 enableval=$enable_host_shared; PIC_FLAG=-fPIC
11920 else
11921 PIC_FLAG=
11926 # Test for __sync support.
11927 { $as_echo "$as_me:${as_lineno-$LINENO}: checking __sync extensions" >&5
11928 $as_echo_n "checking __sync extensions... " >&6; }
11929 if test "${libbacktrace_cv_sys_sync+set}" = set; then :
11930 $as_echo_n "(cached) " >&6
11931 else
11932 if test -n "${with_target_subdir}"; then
11933 case "${host}" in
11934 hppa*-*-hpux*) libbacktrace_cv_sys_sync=no ;;
11935 *) libbacktrace_cv_sys_sync=yes ;;
11936 esac
11937 else
11938 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11939 /* end confdefs.h. */
11940 int i;
11942 main ()
11944 __sync_bool_compare_and_swap (&i, i, i);
11945 __sync_lock_test_and_set (&i, 1);
11946 __sync_lock_release (&i);
11948 return 0;
11950 _ACEOF
11951 if ac_fn_c_try_link "$LINENO"; then :
11952 libbacktrace_cv_sys_sync=yes
11953 else
11954 libbacktrace_cv_sys_sync=no
11956 rm -f core conftest.err conftest.$ac_objext \
11957 conftest$ac_exeext conftest.$ac_ext
11960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libbacktrace_cv_sys_sync" >&5
11961 $as_echo "$libbacktrace_cv_sys_sync" >&6; }
11962 BACKTRACE_SUPPORTS_THREADS=0
11963 if test "$libbacktrace_cv_sys_sync" = "yes"; then
11964 BACKTRACE_SUPPORTS_THREADS=1
11966 $as_echo "#define HAVE_SYNC_FUNCTIONS 1" >>confdefs.h
11971 # Test for __atomic support.
11972 { $as_echo "$as_me:${as_lineno-$LINENO}: checking __atomic extensions" >&5
11973 $as_echo_n "checking __atomic extensions... " >&6; }
11974 if test "${libbacktrace_cv_sys_atomic+set}" = set; then :
11975 $as_echo_n "(cached) " >&6
11976 else
11977 if test -n "${with_target_subdir}"; then
11978 libbacktrace_cv_sys_atomic=yes
11979 else
11980 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11981 /* end confdefs.h. */
11982 int i;
11984 main ()
11986 __atomic_load_n (&i, __ATOMIC_ACQUIRE);
11987 __atomic_store_n (&i, 1, __ATOMIC_RELEASE);
11989 return 0;
11991 _ACEOF
11992 if ac_fn_c_try_link "$LINENO"; then :
11993 libbacktrace_cv_sys_atomic=yes
11994 else
11995 libbacktrace_cv_sys_atomic=no
11997 rm -f core conftest.err conftest.$ac_objext \
11998 conftest$ac_exeext conftest.$ac_ext
12001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libbacktrace_cv_sys_atomic" >&5
12002 $as_echo "$libbacktrace_cv_sys_atomic" >&6; }
12003 if test "$libbacktrace_cv_sys_atomic" = "yes"; then
12005 $as_echo "#define HAVE_ATOMIC_FUNCTIONS 1" >>confdefs.h
12009 # The library needs to be able to read the executable itself. Compile
12010 # a file to determine the executable format. The awk script
12011 # filetype.awk prints out the file type.
12012 { $as_echo "$as_me:${as_lineno-$LINENO}: checking output filetype" >&5
12013 $as_echo_n "checking output filetype... " >&6; }
12014 if test "${libbacktrace_cv_sys_filetype+set}" = set; then :
12015 $as_echo_n "(cached) " >&6
12016 else
12017 filetype=
12018 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12019 /* end confdefs.h. */
12020 int i;
12022 main ()
12024 int j;
12026 return 0;
12028 _ACEOF
12029 if ac_fn_c_try_compile "$LINENO"; then :
12030 filetype=`${AWK} -f $srcdir/filetype.awk conftest.$ac_objext`
12031 else
12032 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12033 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12034 as_fn_error "compiler failed
12035 See \`config.log' for more details." "$LINENO" 5; }
12037 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12038 libbacktrace_cv_sys_filetype=$filetype
12040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libbacktrace_cv_sys_filetype" >&5
12041 $as_echo "$libbacktrace_cv_sys_filetype" >&6; }
12043 # Match the file type to decide what files to compile.
12044 FORMAT_FILE=
12045 backtrace_supports_data=yes
12046 case "$libbacktrace_cv_sys_filetype" in
12047 elf*) FORMAT_FILE="elf.lo" ;;
12048 pecoff) FORMAT_FILE="pecoff.lo"
12049 backtrace_supports_data=no
12051 *) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: could not determine output file type" >&5
12052 $as_echo "$as_me: WARNING: could not determine output file type" >&2;}
12053 FORMAT_FILE="unknown.lo"
12054 backtrace_supported=no
12056 esac
12059 # ELF defines.
12060 elfsize=
12061 case "$libbacktrace_cv_sys_filetype" in
12062 elf32) elfsize=32 ;;
12063 elf64) elfsize=64 ;;
12064 *) elfsize=unused
12065 esac
12067 cat >>confdefs.h <<_ACEOF
12068 #define BACKTRACE_ELF_SIZE $elfsize
12069 _ACEOF
12072 BACKTRACE_SUPPORTED=0
12073 if test "$backtrace_supported" = "yes"; then
12074 BACKTRACE_SUPPORTED=1
12078 BACKTRACE_SUPPORTS_DATA=0
12079 if test "$backtrace_supports_data" = "yes"; then
12080 BACKTRACE_SUPPORTS_DATA=1
12086 inttype_headers=`echo inttypes.h sys/inttypes.h | sed -e 's/,/ /g'`
12088 acx_cv_header_stdint=stddef.h
12089 acx_cv_header_stdint_kind="(already complete)"
12090 for i in stdint.h $inttype_headers; do
12091 unset ac_cv_type_uintptr_t
12092 unset ac_cv_type_uintmax_t
12093 unset ac_cv_type_int_least32_t
12094 unset ac_cv_type_int_fast32_t
12095 unset ac_cv_type_uint64_t
12096 $as_echo_n "looking for a compliant stdint.h in $i, " >&6
12097 ac_fn_c_check_type "$LINENO" "uintmax_t" "ac_cv_type_uintmax_t" "#include <sys/types.h>
12098 #include <$i>
12100 if test "x$ac_cv_type_uintmax_t" = x""yes; then :
12101 acx_cv_header_stdint=$i
12102 else
12103 continue
12106 ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "#include <sys/types.h>
12107 #include <$i>
12109 if test "x$ac_cv_type_uintptr_t" = x""yes; then :
12111 else
12112 acx_cv_header_stdint_kind="(mostly complete)"
12115 ac_fn_c_check_type "$LINENO" "int_least32_t" "ac_cv_type_int_least32_t" "#include <sys/types.h>
12116 #include <$i>
12118 if test "x$ac_cv_type_int_least32_t" = x""yes; then :
12120 else
12121 acx_cv_header_stdint_kind="(mostly complete)"
12124 ac_fn_c_check_type "$LINENO" "int_fast32_t" "ac_cv_type_int_fast32_t" "#include <sys/types.h>
12125 #include <$i>
12127 if test "x$ac_cv_type_int_fast32_t" = x""yes; then :
12129 else
12130 acx_cv_header_stdint_kind="(mostly complete)"
12133 ac_fn_c_check_type "$LINENO" "uint64_t" "ac_cv_type_uint64_t" "#include <sys/types.h>
12134 #include <$i>
12136 if test "x$ac_cv_type_uint64_t" = x""yes; then :
12138 else
12139 acx_cv_header_stdint_kind="(lacks uint64_t)"
12142 break
12143 done
12144 if test "$acx_cv_header_stdint" = stddef.h; then
12145 acx_cv_header_stdint_kind="(lacks uintmax_t)"
12146 for i in stdint.h $inttype_headers; do
12147 unset ac_cv_type_uintptr_t
12148 unset ac_cv_type_uint32_t
12149 unset ac_cv_type_uint64_t
12150 $as_echo_n "looking for an incomplete stdint.h in $i, " >&6
12151 ac_fn_c_check_type "$LINENO" "uint32_t" "ac_cv_type_uint32_t" "#include <sys/types.h>
12152 #include <$i>
12154 if test "x$ac_cv_type_uint32_t" = x""yes; then :
12155 acx_cv_header_stdint=$i
12156 else
12157 continue
12160 ac_fn_c_check_type "$LINENO" "uint64_t" "ac_cv_type_uint64_t" "#include <sys/types.h>
12161 #include <$i>
12163 if test "x$ac_cv_type_uint64_t" = x""yes; then :
12167 ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "#include <sys/types.h>
12168 #include <$i>
12170 if test "x$ac_cv_type_uintptr_t" = x""yes; then :
12174 break
12175 done
12177 if test "$acx_cv_header_stdint" = stddef.h; then
12178 acx_cv_header_stdint_kind="(u_intXX_t style)"
12179 for i in sys/types.h $inttype_headers; do
12180 unset ac_cv_type_u_int32_t
12181 unset ac_cv_type_u_int64_t
12182 $as_echo_n "looking for u_intXX_t types in $i, " >&6
12183 ac_fn_c_check_type "$LINENO" "u_int32_t" "ac_cv_type_u_int32_t" "#include <sys/types.h>
12184 #include <$i>
12186 if test "x$ac_cv_type_u_int32_t" = x""yes; then :
12187 acx_cv_header_stdint=$i
12188 else
12189 continue
12192 ac_fn_c_check_type "$LINENO" "u_int64_t" "ac_cv_type_u_int64_t" "#include <sys/types.h>
12193 #include <$i>
12195 if test "x$ac_cv_type_u_int64_t" = x""yes; then :
12199 break
12200 done
12202 if test "$acx_cv_header_stdint" = stddef.h; then
12203 acx_cv_header_stdint_kind="(using manual detection)"
12206 test -z "$ac_cv_type_uintptr_t" && ac_cv_type_uintptr_t=no
12207 test -z "$ac_cv_type_uint64_t" && ac_cv_type_uint64_t=no
12208 test -z "$ac_cv_type_u_int64_t" && ac_cv_type_u_int64_t=no
12209 test -z "$ac_cv_type_int_least32_t" && ac_cv_type_int_least32_t=no
12210 test -z "$ac_cv_type_int_fast32_t" && ac_cv_type_int_fast32_t=no
12212 # ----------------- Summarize what we found so far
12214 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what to include in gstdint.h" >&5
12215 $as_echo_n "checking what to include in gstdint.h... " >&6; }
12217 case `$as_basename -- gstdint.h ||
12218 $as_expr X/gstdint.h : '.*/\([^/][^/]*\)/*$' \| \
12219 Xgstdint.h : 'X\(//\)$' \| \
12220 Xgstdint.h : 'X\(/\)' \| . 2>/dev/null ||
12221 $as_echo X/gstdint.h |
12222 sed '/^.*\/\([^/][^/]*\)\/*$/{
12223 s//\1/
12226 /^X\/\(\/\/\)$/{
12227 s//\1/
12230 /^X\/\(\/\).*/{
12231 s//\1/
12234 s/.*/./; q'` in
12235 stdint.h) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: are you sure you want it there?" >&5
12236 $as_echo "$as_me: WARNING: are you sure you want it there?" >&2;} ;;
12237 inttypes.h) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: are you sure you want it there?" >&5
12238 $as_echo "$as_me: WARNING: are you sure you want it there?" >&2;} ;;
12239 *) ;;
12240 esac
12242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_header_stdint $acx_cv_header_stdint_kind" >&5
12243 $as_echo "$acx_cv_header_stdint $acx_cv_header_stdint_kind" >&6; }
12245 # ----------------- done included file, check C basic types --------
12247 # Lacking an uintptr_t? Test size of void *
12248 case "$acx_cv_header_stdint:$ac_cv_type_uintptr_t" in
12249 stddef.h:* | *:no) # The cast to long int works around a bug in the HP C Compiler
12250 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12251 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12252 # This bug is HP SR number 8606223364.
12253 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5
12254 $as_echo_n "checking size of void *... " >&6; }
12255 if test "${ac_cv_sizeof_void_p+set}" = set; then :
12256 $as_echo_n "(cached) " >&6
12257 else
12258 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (void *))" "ac_cv_sizeof_void_p" "$ac_includes_default"; then :
12260 else
12261 if test "$ac_cv_type_void_p" = yes; then
12262 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12263 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12264 { as_fn_set_status 77
12265 as_fn_error "cannot compute sizeof (void *)
12266 See \`config.log' for more details." "$LINENO" 5; }; }
12267 else
12268 ac_cv_sizeof_void_p=0
12273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5
12274 $as_echo "$ac_cv_sizeof_void_p" >&6; }
12278 cat >>confdefs.h <<_ACEOF
12279 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
12280 _ACEOF
12283 esac
12285 # Lacking an uint64_t? Test size of long
12286 case "$acx_cv_header_stdint:$ac_cv_type_uint64_t:$ac_cv_type_u_int64_t" in
12287 stddef.h:*:* | *:no:no) # The cast to long int works around a bug in the HP C Compiler
12288 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12289 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12290 # This bug is HP SR number 8606223364.
12291 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
12292 $as_echo_n "checking size of long... " >&6; }
12293 if test "${ac_cv_sizeof_long+set}" = set; then :
12294 $as_echo_n "(cached) " >&6
12295 else
12296 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then :
12298 else
12299 if test "$ac_cv_type_long" = yes; then
12300 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12301 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12302 { as_fn_set_status 77
12303 as_fn_error "cannot compute sizeof (long)
12304 See \`config.log' for more details." "$LINENO" 5; }; }
12305 else
12306 ac_cv_sizeof_long=0
12311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
12312 $as_echo "$ac_cv_sizeof_long" >&6; }
12316 cat >>confdefs.h <<_ACEOF
12317 #define SIZEOF_LONG $ac_cv_sizeof_long
12318 _ACEOF
12321 esac
12323 if test $acx_cv_header_stdint = stddef.h; then
12324 # Lacking a good header? Test size of everything and deduce all types.
12325 # The cast to long int works around a bug in the HP C Compiler
12326 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12327 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12328 # This bug is HP SR number 8606223364.
12329 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
12330 $as_echo_n "checking size of int... " >&6; }
12331 if test "${ac_cv_sizeof_int+set}" = set; then :
12332 $as_echo_n "(cached) " >&6
12333 else
12334 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then :
12336 else
12337 if test "$ac_cv_type_int" = yes; then
12338 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12339 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12340 { as_fn_set_status 77
12341 as_fn_error "cannot compute sizeof (int)
12342 See \`config.log' for more details." "$LINENO" 5; }; }
12343 else
12344 ac_cv_sizeof_int=0
12349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
12350 $as_echo "$ac_cv_sizeof_int" >&6; }
12354 cat >>confdefs.h <<_ACEOF
12355 #define SIZEOF_INT $ac_cv_sizeof_int
12356 _ACEOF
12359 # The cast to long int works around a bug in the HP C Compiler
12360 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12361 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12362 # This bug is HP SR number 8606223364.
12363 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5
12364 $as_echo_n "checking size of short... " >&6; }
12365 if test "${ac_cv_sizeof_short+set}" = set; then :
12366 $as_echo_n "(cached) " >&6
12367 else
12368 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short" "$ac_includes_default"; then :
12370 else
12371 if test "$ac_cv_type_short" = yes; then
12372 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12373 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12374 { as_fn_set_status 77
12375 as_fn_error "cannot compute sizeof (short)
12376 See \`config.log' for more details." "$LINENO" 5; }; }
12377 else
12378 ac_cv_sizeof_short=0
12383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5
12384 $as_echo "$ac_cv_sizeof_short" >&6; }
12388 cat >>confdefs.h <<_ACEOF
12389 #define SIZEOF_SHORT $ac_cv_sizeof_short
12390 _ACEOF
12393 # The cast to long int works around a bug in the HP C Compiler
12394 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12395 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12396 # This bug is HP SR number 8606223364.
12397 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of char" >&5
12398 $as_echo_n "checking size of char... " >&6; }
12399 if test "${ac_cv_sizeof_char+set}" = set; then :
12400 $as_echo_n "(cached) " >&6
12401 else
12402 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (char))" "ac_cv_sizeof_char" "$ac_includes_default"; then :
12404 else
12405 if test "$ac_cv_type_char" = yes; then
12406 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12407 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12408 { as_fn_set_status 77
12409 as_fn_error "cannot compute sizeof (char)
12410 See \`config.log' for more details." "$LINENO" 5; }; }
12411 else
12412 ac_cv_sizeof_char=0
12417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_char" >&5
12418 $as_echo "$ac_cv_sizeof_char" >&6; }
12422 cat >>confdefs.h <<_ACEOF
12423 #define SIZEOF_CHAR $ac_cv_sizeof_char
12424 _ACEOF
12428 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type equivalent to int8_t" >&5
12429 $as_echo_n "checking for type equivalent to int8_t... " >&6; }
12430 case "$ac_cv_sizeof_char" in
12431 1) acx_cv_type_int8_t=char ;;
12432 *) as_fn_error "no 8-bit type, please report a bug" "$LINENO" 5
12433 esac
12434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_type_int8_t" >&5
12435 $as_echo "$acx_cv_type_int8_t" >&6; }
12437 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type equivalent to int16_t" >&5
12438 $as_echo_n "checking for type equivalent to int16_t... " >&6; }
12439 case "$ac_cv_sizeof_int:$ac_cv_sizeof_short" in
12440 2:*) acx_cv_type_int16_t=int ;;
12441 *:2) acx_cv_type_int16_t=short ;;
12442 *) as_fn_error "no 16-bit type, please report a bug" "$LINENO" 5
12443 esac
12444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_type_int16_t" >&5
12445 $as_echo "$acx_cv_type_int16_t" >&6; }
12447 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type equivalent to int32_t" >&5
12448 $as_echo_n "checking for type equivalent to int32_t... " >&6; }
12449 case "$ac_cv_sizeof_int:$ac_cv_sizeof_long" in
12450 4:*) acx_cv_type_int32_t=int ;;
12451 *:4) acx_cv_type_int32_t=long ;;
12452 *) as_fn_error "no 32-bit type, please report a bug" "$LINENO" 5
12453 esac
12454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_type_int32_t" >&5
12455 $as_echo "$acx_cv_type_int32_t" >&6; }
12458 # These tests are here to make the output prettier
12460 if test "$ac_cv_type_uint64_t" != yes && test "$ac_cv_type_u_int64_t" != yes; then
12461 case "$ac_cv_sizeof_long" in
12462 8) acx_cv_type_int64_t=long ;;
12463 esac
12464 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type equivalent to int64_t" >&5
12465 $as_echo_n "checking for type equivalent to int64_t... " >&6; }
12466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${acx_cv_type_int64_t-'using preprocessor symbols'}" >&5
12467 $as_echo "${acx_cv_type_int64_t-'using preprocessor symbols'}" >&6; }
12470 # Now we can use the above types
12472 if test "$ac_cv_type_uintptr_t" != yes; then
12473 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type equivalent to intptr_t" >&5
12474 $as_echo_n "checking for type equivalent to intptr_t... " >&6; }
12475 case $ac_cv_sizeof_void_p in
12476 2) acx_cv_type_intptr_t=int16_t ;;
12477 4) acx_cv_type_intptr_t=int32_t ;;
12478 8) acx_cv_type_intptr_t=int64_t ;;
12479 *) as_fn_error "no equivalent for intptr_t, please report a bug" "$LINENO" 5
12480 esac
12481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_type_intptr_t" >&5
12482 $as_echo "$acx_cv_type_intptr_t" >&6; }
12485 # ----------------- done all checks, emit header -------------
12486 ac_config_commands="$ac_config_commands gstdint.h"
12491 for ac_header in sys/mman.h
12492 do :
12493 ac_fn_c_check_header_mongrel "$LINENO" "sys/mman.h" "ac_cv_header_sys_mman_h" "$ac_includes_default"
12494 if test "x$ac_cv_header_sys_mman_h" = x""yes; then :
12495 cat >>confdefs.h <<_ACEOF
12496 #define HAVE_SYS_MMAN_H 1
12497 _ACEOF
12501 done
12503 if test "$ac_cv_header_sys_mman_h" = "no"; then
12504 have_mmap=no
12505 else
12506 if test -n "${with_target_subdir}"; then
12507 # When built as a GCC target library, we can't do a link test. We
12508 # simply assume that if we have mman.h, we have mmap.
12509 have_mmap=yes
12510 case "${host}" in
12511 spu-*-*|*-*-msdosdjgpp)
12512 # The SPU does not have mmap, but it has a sys/mman.h header file
12513 # containing "mmap_eaddr" and the mmap flags, confusing the test.
12514 # DJGPP also has sys/man.h, but no mmap
12515 have_mmap=no ;;
12516 esac
12517 else
12518 ac_fn_c_check_func "$LINENO" "mmap" "ac_cv_func_mmap"
12519 if test "x$ac_cv_func_mmap" = x""yes; then :
12520 have_mmap=yes
12521 else
12522 have_mmap=no
12527 if test "$have_mmap" = "no"; then
12528 VIEW_FILE=read.lo
12529 ALLOC_FILE=alloc.lo
12530 else
12531 VIEW_FILE=mmapio.lo
12532 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12533 /* end confdefs.h. */
12535 #include <sys/mman.h>
12536 #if !defined(MAP_ANONYMOUS) && !defined(MAP_ANON)
12537 #error no MAP_ANONYMOUS
12538 #endif
12540 _ACEOF
12541 if ac_fn_c_try_cpp "$LINENO"; then :
12542 ALLOC_FILE=mmap.lo
12543 else
12544 ALLOC_FILE=alloc.lo
12546 rm -f conftest.err conftest.$ac_ext
12551 BACKTRACE_USES_MALLOC=0
12552 if test "$ALLOC_FILE" = "alloc.lo"; then
12553 BACKTRACE_USES_MALLOC=1
12557 # Check for dl_iterate_phdr.
12558 for ac_header in link.h
12559 do :
12560 ac_fn_c_check_header_mongrel "$LINENO" "link.h" "ac_cv_header_link_h" "$ac_includes_default"
12561 if test "x$ac_cv_header_link_h" = x""yes; then :
12562 cat >>confdefs.h <<_ACEOF
12563 #define HAVE_LINK_H 1
12564 _ACEOF
12568 done
12570 if test "$ac_cv_header_link_h" = "no"; then
12571 have_dl_iterate_phdr=no
12572 else
12573 if test -n "${with_target_subdir}"; then
12574 # When built as a GCC target library, we can't do a link test.
12575 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12576 /* end confdefs.h. */
12577 #include <link.h>
12579 _ACEOF
12580 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12581 $EGREP "dl_iterate_phdr" >/dev/null 2>&1; then :
12582 have_dl_iterate_phdr=yes
12583 else
12584 have_dl_iterate_phdr=no
12586 rm -f conftest*
12588 case "${host}" in
12589 *-*-solaris2.10*)
12590 # Avoid dl_iterate_phdr on Solaris 10, where it is in the
12591 # header file but is only in -ldl.
12592 have_dl_iterate_phdr=no ;;
12593 esac
12594 else
12595 ac_fn_c_check_func "$LINENO" "dl_iterate_phdr" "ac_cv_func_dl_iterate_phdr"
12596 if test "x$ac_cv_func_dl_iterate_phdr" = x""yes; then :
12597 have_dl_iterate_phdr=yes
12598 else
12599 have_dl_iterate_phdr=no
12604 if test "$have_dl_iterate_phdr" = "yes"; then
12606 $as_echo "#define HAVE_DL_ITERATE_PHDR 1" >>confdefs.h
12610 # Check for the fcntl function.
12611 if test -n "${with_target_subdir}"; then
12612 case "${host}" in
12613 *-*-mingw*) have_fcntl=no ;;
12614 spu-*-*) have_fcntl=no ;;
12615 *) have_fcntl=yes ;;
12616 esac
12617 else
12618 ac_fn_c_check_func "$LINENO" "fcntl" "ac_cv_func_fcntl"
12619 if test "x$ac_cv_func_fcntl" = x""yes; then :
12620 have_fcntl=yes
12621 else
12622 have_fcntl=no
12626 if test "$have_fcntl" = "yes"; then
12628 $as_echo "#define HAVE_FCNTL 1" >>confdefs.h
12632 ac_fn_c_check_decl "$LINENO" "strnlen" "ac_cv_have_decl_strnlen" "$ac_includes_default"
12633 if test "x$ac_cv_have_decl_strnlen" = x""yes; then :
12634 ac_have_decl=1
12635 else
12636 ac_have_decl=0
12639 cat >>confdefs.h <<_ACEOF
12640 #define HAVE_DECL_STRNLEN $ac_have_decl
12641 _ACEOF
12644 # Check for getexecname function.
12645 if test -n "${with_target_subdir}"; then
12646 case "${host}" in
12647 *-*-solaris2*) have_getexecname=yes ;;
12648 *) have_getexecname=no ;;
12649 esac
12650 else
12651 ac_fn_c_check_func "$LINENO" "getexecname" "ac_cv_func_getexecname"
12652 if test "x$ac_cv_func_getexecname" = x""yes; then :
12653 have_getexecname=yes
12654 else
12655 have_getexecname=no
12659 if test "$have_getexecname" = "yes"; then
12661 $as_echo "#define HAVE_GETEXECNAME 1" >>confdefs.h
12665 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -pthread is supported" >&5
12666 $as_echo_n "checking whether -pthread is supported... " >&6; }
12667 if test "${libgo_cv_lib_pthread+set}" = set; then :
12668 $as_echo_n "(cached) " >&6
12669 else
12670 CFLAGS_hold=$CFLAGS
12671 CFLAGS="$CFLAGS -pthread"
12672 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12673 /* end confdefs.h. */
12674 int i;
12675 _ACEOF
12676 if ac_fn_c_try_compile "$LINENO"; then :
12677 libgo_cv_lib_pthread=yes
12678 else
12679 libgo_cv_lib_pthread=no
12681 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12682 CFLAGS=$CFLAGS_hold
12684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgo_cv_lib_pthread" >&5
12685 $as_echo "$libgo_cv_lib_pthread" >&6; }
12686 PTHREAD_CFLAGS=
12687 if test "$libgo_cv_lib_pthread" = yes; then
12688 PTHREAD_CFLAGS=-pthread
12692 if test "$libgo_cv_lib_pthread" = yes; then
12693 HAVE_PTHREAD_TRUE=
12694 HAVE_PTHREAD_FALSE='#'
12695 else
12696 HAVE_PTHREAD_TRUE='#'
12697 HAVE_PTHREAD_FALSE=
12701 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether tests can run" >&5
12702 $as_echo_n "checking whether tests can run... " >&6; }
12703 if test "${libbacktrace_cv_sys_native+set}" = set; then :
12704 $as_echo_n "(cached) " >&6
12705 else
12706 if test "$cross_compiling" = yes; then :
12707 libbacktrace_cv_sys_native=no
12708 else
12709 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12710 /* end confdefs.h. */
12713 main ()
12715 return 0;
12717 return 0;
12719 _ACEOF
12720 if ac_fn_c_try_run "$LINENO"; then :
12721 libbacktrace_cv_sys_native=yes
12722 else
12723 libbacktrace_cv_sys_native=no
12725 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12726 conftest.$ac_objext conftest.beam conftest.$ac_ext
12730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libbacktrace_cv_sys_native" >&5
12731 $as_echo "$libbacktrace_cv_sys_native" >&6; }
12732 if test "$libbacktrace_cv_sys_native" = "yes"; then
12733 NATIVE_TRUE=
12734 NATIVE_FALSE='#'
12735 else
12736 NATIVE_TRUE='#'
12737 NATIVE_FALSE=
12741 if test "${multilib}" = "yes"; then
12742 multilib_arg="--enable-multilib"
12743 else
12744 multilib_arg=
12747 ac_config_files="$ac_config_files Makefile backtrace-supported.h"
12750 # We need multilib support, but only if configuring for the target.
12751 ac_config_commands="$ac_config_commands default"
12754 cat >confcache <<\_ACEOF
12755 # This file is a shell script that caches the results of configure
12756 # tests run on this system so they can be shared between configure
12757 # scripts and configure runs, see configure's option --config-cache.
12758 # It is not useful on other systems. If it contains results you don't
12759 # want to keep, you may remove or edit it.
12761 # config.status only pays attention to the cache file if you give it
12762 # the --recheck option to rerun configure.
12764 # `ac_cv_env_foo' variables (set or unset) will be overridden when
12765 # loading this file, other *unset* `ac_cv_foo' will be assigned the
12766 # following values.
12768 _ACEOF
12770 # The following way of writing the cache mishandles newlines in values,
12771 # but we know of no workaround that is simple, portable, and efficient.
12772 # So, we kill variables containing newlines.
12773 # Ultrix sh set writes to stderr and can't be redirected directly,
12774 # and sets the high bit in the cache file unless we assign to the vars.
12776 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
12777 eval ac_val=\$$ac_var
12778 case $ac_val in #(
12779 *${as_nl}*)
12780 case $ac_var in #(
12781 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
12782 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
12783 esac
12784 case $ac_var in #(
12785 _ | IFS | as_nl) ;; #(
12786 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
12787 *) { eval $ac_var=; unset $ac_var;} ;;
12788 esac ;;
12789 esac
12790 done
12792 (set) 2>&1 |
12793 case $as_nl`(ac_space=' '; set) 2>&1` in #(
12794 *${as_nl}ac_space=\ *)
12795 # `set' does not quote correctly, so add quotes: double-quote
12796 # substitution turns \\\\ into \\, and sed turns \\ into \.
12797 sed -n \
12798 "s/'/'\\\\''/g;
12799 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
12800 ;; #(
12802 # `set' quotes correctly as required by POSIX, so do not add quotes.
12803 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
12805 esac |
12806 sort
12808 sed '
12809 /^ac_cv_env_/b end
12810 t clear
12811 :clear
12812 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
12813 t end
12814 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
12815 :end' >>confcache
12816 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
12817 if test -w "$cache_file"; then
12818 test "x$cache_file" != "x/dev/null" &&
12819 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
12820 $as_echo "$as_me: updating cache $cache_file" >&6;}
12821 cat confcache >$cache_file
12822 else
12823 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
12824 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
12827 rm -f confcache
12829 test "x$prefix" = xNONE && prefix=$ac_default_prefix
12830 # Let make expand exec_prefix.
12831 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
12833 DEFS=-DHAVE_CONFIG_H
12835 ac_libobjs=
12836 ac_ltlibobjs=
12837 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
12838 # 1. Remove the extension, and $U if already installed.
12839 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
12840 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
12841 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
12842 # will be set to the directory where LIBOBJS objects are built.
12843 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
12844 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
12845 done
12846 LIBOBJS=$ac_libobjs
12848 LTLIBOBJS=$ac_ltlibobjs
12851 if test -n "$EXEEXT"; then
12852 am__EXEEXT_TRUE=
12853 am__EXEEXT_FALSE='#'
12854 else
12855 am__EXEEXT_TRUE='#'
12856 am__EXEEXT_FALSE=
12859 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
12860 as_fn_error "conditional \"MAINTAINER_MODE\" was never defined.
12861 Usually this means the macro was only invoked conditionally." "$LINENO" 5
12863 if test -z "${HAVE_PTHREAD_TRUE}" && test -z "${HAVE_PTHREAD_FALSE}"; then
12864 as_fn_error "conditional \"HAVE_PTHREAD\" was never defined.
12865 Usually this means the macro was only invoked conditionally." "$LINENO" 5
12867 if test -z "${NATIVE_TRUE}" && test -z "${NATIVE_FALSE}"; then
12868 as_fn_error "conditional \"NATIVE\" was never defined.
12869 Usually this means the macro was only invoked conditionally." "$LINENO" 5
12872 : ${CONFIG_STATUS=./config.status}
12873 ac_write_fail=0
12874 ac_clean_files_save=$ac_clean_files
12875 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
12876 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
12877 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
12878 as_write_fail=0
12879 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
12880 #! $SHELL
12881 # Generated by $as_me.
12882 # Run this file to recreate the current configuration.
12883 # Compiler output produced by configure, useful for debugging
12884 # configure, is in config.log if it exists.
12886 debug=false
12887 ac_cs_recheck=false
12888 ac_cs_silent=false
12890 SHELL=\${CONFIG_SHELL-$SHELL}
12891 export SHELL
12892 _ASEOF
12893 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
12894 ## -------------------- ##
12895 ## M4sh Initialization. ##
12896 ## -------------------- ##
12898 # Be more Bourne compatible
12899 DUALCASE=1; export DUALCASE # for MKS sh
12900 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
12901 emulate sh
12902 NULLCMD=:
12903 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
12904 # is contrary to our usage. Disable this feature.
12905 alias -g '${1+"$@"}'='"$@"'
12906 setopt NO_GLOB_SUBST
12907 else
12908 case `(set -o) 2>/dev/null` in #(
12909 *posix*) :
12910 set -o posix ;; #(
12911 *) :
12913 esac
12917 as_nl='
12919 export as_nl
12920 # Printing a long string crashes Solaris 7 /usr/bin/printf.
12921 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
12922 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
12923 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
12924 # Prefer a ksh shell builtin over an external printf program on Solaris,
12925 # but without wasting forks for bash or zsh.
12926 if test -z "$BASH_VERSION$ZSH_VERSION" \
12927 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
12928 as_echo='print -r --'
12929 as_echo_n='print -rn --'
12930 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
12931 as_echo='printf %s\n'
12932 as_echo_n='printf %s'
12933 else
12934 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
12935 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
12936 as_echo_n='/usr/ucb/echo -n'
12937 else
12938 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
12939 as_echo_n_body='eval
12940 arg=$1;
12941 case $arg in #(
12942 *"$as_nl"*)
12943 expr "X$arg" : "X\\(.*\\)$as_nl";
12944 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
12945 esac;
12946 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
12948 export as_echo_n_body
12949 as_echo_n='sh -c $as_echo_n_body as_echo'
12951 export as_echo_body
12952 as_echo='sh -c $as_echo_body as_echo'
12955 # The user is always right.
12956 if test "${PATH_SEPARATOR+set}" != set; then
12957 PATH_SEPARATOR=:
12958 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
12959 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
12960 PATH_SEPARATOR=';'
12965 # IFS
12966 # We need space, tab and new line, in precisely that order. Quoting is
12967 # there to prevent editors from complaining about space-tab.
12968 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
12969 # splitting by setting IFS to empty value.)
12970 IFS=" "" $as_nl"
12972 # Find who we are. Look in the path if we contain no directory separator.
12973 case $0 in #((
12974 *[\\/]* ) as_myself=$0 ;;
12975 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12976 for as_dir in $PATH
12978 IFS=$as_save_IFS
12979 test -z "$as_dir" && as_dir=.
12980 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
12981 done
12982 IFS=$as_save_IFS
12985 esac
12986 # We did not find ourselves, most probably we were run as `sh COMMAND'
12987 # in which case we are not to be found in the path.
12988 if test "x$as_myself" = x; then
12989 as_myself=$0
12991 if test ! -f "$as_myself"; then
12992 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
12993 exit 1
12996 # Unset variables that we do not need and which cause bugs (e.g. in
12997 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
12998 # suppresses any "Segmentation fault" message there. '((' could
12999 # trigger a bug in pdksh 5.2.14.
13000 for as_var in BASH_ENV ENV MAIL MAILPATH
13001 do eval test x\${$as_var+set} = xset \
13002 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
13003 done
13004 PS1='$ '
13005 PS2='> '
13006 PS4='+ '
13008 # NLS nuisances.
13009 LC_ALL=C
13010 export LC_ALL
13011 LANGUAGE=C
13012 export LANGUAGE
13014 # CDPATH.
13015 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
13018 # as_fn_error ERROR [LINENO LOG_FD]
13019 # ---------------------------------
13020 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
13021 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
13022 # script with status $?, using 1 if that was 0.
13023 as_fn_error ()
13025 as_status=$?; test $as_status -eq 0 && as_status=1
13026 if test "$3"; then
13027 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
13028 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
13030 $as_echo "$as_me: error: $1" >&2
13031 as_fn_exit $as_status
13032 } # as_fn_error
13035 # as_fn_set_status STATUS
13036 # -----------------------
13037 # Set $? to STATUS, without forking.
13038 as_fn_set_status ()
13040 return $1
13041 } # as_fn_set_status
13043 # as_fn_exit STATUS
13044 # -----------------
13045 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
13046 as_fn_exit ()
13048 set +e
13049 as_fn_set_status $1
13050 exit $1
13051 } # as_fn_exit
13053 # as_fn_unset VAR
13054 # ---------------
13055 # Portably unset VAR.
13056 as_fn_unset ()
13058 { eval $1=; unset $1;}
13060 as_unset=as_fn_unset
13061 # as_fn_append VAR VALUE
13062 # ----------------------
13063 # Append the text in VALUE to the end of the definition contained in VAR. Take
13064 # advantage of any shell optimizations that allow amortized linear growth over
13065 # repeated appends, instead of the typical quadratic growth present in naive
13066 # implementations.
13067 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
13068 eval 'as_fn_append ()
13070 eval $1+=\$2
13072 else
13073 as_fn_append ()
13075 eval $1=\$$1\$2
13077 fi # as_fn_append
13079 # as_fn_arith ARG...
13080 # ------------------
13081 # Perform arithmetic evaluation on the ARGs, and store the result in the
13082 # global $as_val. Take advantage of shells that can avoid forks. The arguments
13083 # must be portable across $(()) and expr.
13084 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
13085 eval 'as_fn_arith ()
13087 as_val=$(( $* ))
13089 else
13090 as_fn_arith ()
13092 as_val=`expr "$@" || test $? -eq 1`
13094 fi # as_fn_arith
13097 if expr a : '\(a\)' >/dev/null 2>&1 &&
13098 test "X`expr 00001 : '.*\(...\)'`" = X001; then
13099 as_expr=expr
13100 else
13101 as_expr=false
13104 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
13105 as_basename=basename
13106 else
13107 as_basename=false
13110 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
13111 as_dirname=dirname
13112 else
13113 as_dirname=false
13116 as_me=`$as_basename -- "$0" ||
13117 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
13118 X"$0" : 'X\(//\)$' \| \
13119 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
13120 $as_echo X/"$0" |
13121 sed '/^.*\/\([^/][^/]*\)\/*$/{
13122 s//\1/
13125 /^X\/\(\/\/\)$/{
13126 s//\1/
13129 /^X\/\(\/\).*/{
13130 s//\1/
13133 s/.*/./; q'`
13135 # Avoid depending upon Character Ranges.
13136 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
13137 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
13138 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
13139 as_cr_digits='0123456789'
13140 as_cr_alnum=$as_cr_Letters$as_cr_digits
13142 ECHO_C= ECHO_N= ECHO_T=
13143 case `echo -n x` in #(((((
13144 -n*)
13145 case `echo 'xy\c'` in
13146 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
13147 xy) ECHO_C='\c';;
13148 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
13149 ECHO_T=' ';;
13150 esac;;
13152 ECHO_N='-n';;
13153 esac
13155 rm -f conf$$ conf$$.exe conf$$.file
13156 if test -d conf$$.dir; then
13157 rm -f conf$$.dir/conf$$.file
13158 else
13159 rm -f conf$$.dir
13160 mkdir conf$$.dir 2>/dev/null
13162 if (echo >conf$$.file) 2>/dev/null; then
13163 if ln -s conf$$.file conf$$ 2>/dev/null; then
13164 as_ln_s='ln -s'
13165 # ... but there are two gotchas:
13166 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
13167 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
13168 # In both cases, we have to default to `cp -p'.
13169 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
13170 as_ln_s='cp -p'
13171 elif ln conf$$.file conf$$ 2>/dev/null; then
13172 as_ln_s=ln
13173 else
13174 as_ln_s='cp -p'
13176 else
13177 as_ln_s='cp -p'
13179 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
13180 rmdir conf$$.dir 2>/dev/null
13183 # as_fn_mkdir_p
13184 # -------------
13185 # Create "$as_dir" as a directory, including parents if necessary.
13186 as_fn_mkdir_p ()
13189 case $as_dir in #(
13190 -*) as_dir=./$as_dir;;
13191 esac
13192 test -d "$as_dir" || eval $as_mkdir_p || {
13193 as_dirs=
13194 while :; do
13195 case $as_dir in #(
13196 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
13197 *) as_qdir=$as_dir;;
13198 esac
13199 as_dirs="'$as_qdir' $as_dirs"
13200 as_dir=`$as_dirname -- "$as_dir" ||
13201 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13202 X"$as_dir" : 'X\(//\)[^/]' \| \
13203 X"$as_dir" : 'X\(//\)$' \| \
13204 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
13205 $as_echo X"$as_dir" |
13206 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13207 s//\1/
13210 /^X\(\/\/\)[^/].*/{
13211 s//\1/
13214 /^X\(\/\/\)$/{
13215 s//\1/
13218 /^X\(\/\).*/{
13219 s//\1/
13222 s/.*/./; q'`
13223 test -d "$as_dir" && break
13224 done
13225 test -z "$as_dirs" || eval "mkdir $as_dirs"
13226 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
13229 } # as_fn_mkdir_p
13230 if mkdir -p . 2>/dev/null; then
13231 as_mkdir_p='mkdir -p "$as_dir"'
13232 else
13233 test -d ./-p && rmdir ./-p
13234 as_mkdir_p=false
13237 if test -x / >/dev/null 2>&1; then
13238 as_test_x='test -x'
13239 else
13240 if ls -dL / >/dev/null 2>&1; then
13241 as_ls_L_option=L
13242 else
13243 as_ls_L_option=
13245 as_test_x='
13246 eval sh -c '\''
13247 if test -d "$1"; then
13248 test -d "$1/.";
13249 else
13250 case $1 in #(
13251 -*)set "./$1";;
13252 esac;
13253 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
13254 ???[sx]*):;;*)false;;esac;fi
13255 '\'' sh
13258 as_executable_p=$as_test_x
13260 # Sed expression to map a string onto a valid CPP name.
13261 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
13263 # Sed expression to map a string onto a valid variable name.
13264 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
13267 exec 6>&1
13268 ## ----------------------------------- ##
13269 ## Main body of $CONFIG_STATUS script. ##
13270 ## ----------------------------------- ##
13271 _ASEOF
13272 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
13274 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13275 # Save the log message, to keep $0 and so on meaningful, and to
13276 # report actual input values of CONFIG_FILES etc. instead of their
13277 # values after options handling.
13278 ac_log="
13279 This file was extended by package-unused $as_me version-unused, which was
13280 generated by GNU Autoconf 2.64. Invocation command line was
13282 CONFIG_FILES = $CONFIG_FILES
13283 CONFIG_HEADERS = $CONFIG_HEADERS
13284 CONFIG_LINKS = $CONFIG_LINKS
13285 CONFIG_COMMANDS = $CONFIG_COMMANDS
13286 $ $0 $@
13288 on `(hostname || uname -n) 2>/dev/null | sed 1q`
13291 _ACEOF
13293 case $ac_config_files in *"
13294 "*) set x $ac_config_files; shift; ac_config_files=$*;;
13295 esac
13297 case $ac_config_headers in *"
13298 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
13299 esac
13302 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13303 # Files that config.status was made for.
13304 config_files="$ac_config_files"
13305 config_headers="$ac_config_headers"
13306 config_commands="$ac_config_commands"
13308 _ACEOF
13310 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13311 ac_cs_usage="\
13312 \`$as_me' instantiates files and other configuration actions
13313 from templates according to the current configuration. Unless the files
13314 and actions are specified as TAGs, all are instantiated by default.
13316 Usage: $0 [OPTION]... [TAG]...
13318 -h, --help print this help, then exit
13319 -V, --version print version number and configuration settings, then exit
13320 -q, --quiet, --silent
13321 do not print progress messages
13322 -d, --debug don't remove temporary files
13323 --recheck update $as_me by reconfiguring in the same conditions
13324 --file=FILE[:TEMPLATE]
13325 instantiate the configuration file FILE
13326 --header=FILE[:TEMPLATE]
13327 instantiate the configuration header FILE
13329 Configuration files:
13330 $config_files
13332 Configuration headers:
13333 $config_headers
13335 Configuration commands:
13336 $config_commands
13338 Report bugs to the package provider."
13340 _ACEOF
13341 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13342 ac_cs_version="\\
13343 package-unused config.status version-unused
13344 configured by $0, generated by GNU Autoconf 2.64,
13345 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
13347 Copyright (C) 2009 Free Software Foundation, Inc.
13348 This config.status script is free software; the Free Software Foundation
13349 gives unlimited permission to copy, distribute and modify it."
13351 ac_pwd='$ac_pwd'
13352 srcdir='$srcdir'
13353 INSTALL='$INSTALL'
13354 MKDIR_P='$MKDIR_P'
13355 AWK='$AWK'
13356 test -n "\$AWK" || AWK=awk
13357 _ACEOF
13359 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13360 # The default lists apply if the user does not specify any file.
13361 ac_need_defaults=:
13362 while test $# != 0
13364 case $1 in
13365 --*=*)
13366 ac_option=`expr "X$1" : 'X\([^=]*\)='`
13367 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
13368 ac_shift=:
13371 ac_option=$1
13372 ac_optarg=$2
13373 ac_shift=shift
13375 esac
13377 case $ac_option in
13378 # Handling of the options.
13379 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
13380 ac_cs_recheck=: ;;
13381 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
13382 $as_echo "$ac_cs_version"; exit ;;
13383 --debug | --debu | --deb | --de | --d | -d )
13384 debug=: ;;
13385 --file | --fil | --fi | --f )
13386 $ac_shift
13387 case $ac_optarg in
13388 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
13389 esac
13390 as_fn_append CONFIG_FILES " '$ac_optarg'"
13391 ac_need_defaults=false;;
13392 --header | --heade | --head | --hea )
13393 $ac_shift
13394 case $ac_optarg in
13395 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
13396 esac
13397 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
13398 ac_need_defaults=false;;
13399 --he | --h)
13400 # Conflict between --help and --header
13401 as_fn_error "ambiguous option: \`$1'
13402 Try \`$0 --help' for more information.";;
13403 --help | --hel | -h )
13404 $as_echo "$ac_cs_usage"; exit ;;
13405 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
13406 | -silent | --silent | --silen | --sile | --sil | --si | --s)
13407 ac_cs_silent=: ;;
13409 # This is an error.
13410 -*) as_fn_error "unrecognized option: \`$1'
13411 Try \`$0 --help' for more information." ;;
13413 *) as_fn_append ac_config_targets " $1"
13414 ac_need_defaults=false ;;
13416 esac
13417 shift
13418 done
13420 ac_configure_extra_args=
13422 if $ac_cs_silent; then
13423 exec 6>/dev/null
13424 ac_configure_extra_args="$ac_configure_extra_args --silent"
13427 _ACEOF
13428 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13429 if \$ac_cs_recheck; then
13430 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
13431 shift
13432 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
13433 CONFIG_SHELL='$SHELL'
13434 export CONFIG_SHELL
13435 exec "\$@"
13438 _ACEOF
13439 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13440 exec 5>>config.log
13442 echo
13443 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
13444 ## Running $as_me. ##
13445 _ASBOX
13446 $as_echo "$ac_log"
13447 } >&5
13449 _ACEOF
13450 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13452 # INIT-COMMANDS
13455 srcdir="$srcdir"
13456 host="$host"
13457 target="$target"
13458 with_multisubdir="$with_multisubdir"
13459 with_multisrctop="$with_multisrctop"
13460 with_target_subdir="$with_target_subdir"
13461 ac_configure_args="${multilib_arg} ${ac_configure_args}"
13462 multi_basedir="$multi_basedir"
13463 CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
13464 CC="$CC"
13465 CXX="$CXX"
13466 GFORTRAN="$GFORTRAN"
13469 # The HP-UX ksh and POSIX shell print the target directory to stdout
13470 # if CDPATH is set.
13471 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
13473 sed_quote_subst='$sed_quote_subst'
13474 double_quote_subst='$double_quote_subst'
13475 delay_variable_subst='$delay_variable_subst'
13476 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
13477 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
13478 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
13479 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
13480 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
13481 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
13482 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
13483 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
13484 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
13485 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
13486 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
13487 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
13488 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
13489 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
13490 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
13491 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
13492 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
13493 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
13494 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
13495 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
13496 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
13497 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
13498 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
13499 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
13500 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
13501 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
13502 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
13503 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
13504 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
13505 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
13506 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
13507 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
13508 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
13509 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
13510 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
13511 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
13512 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
13513 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
13514 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
13515 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
13516 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
13517 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
13518 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
13519 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
13520 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
13521 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
13522 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
13523 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
13524 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"`'
13525 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
13526 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
13527 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
13528 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
13529 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
13530 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
13531 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
13532 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
13533 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
13534 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
13535 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
13536 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
13537 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
13538 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
13539 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
13540 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
13541 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
13542 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
13543 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
13544 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
13545 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
13546 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
13547 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
13548 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
13549 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
13550 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
13551 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
13552 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
13553 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
13554 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
13555 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
13556 hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
13557 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
13558 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
13559 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
13560 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
13561 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
13562 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
13563 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
13564 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
13565 fix_srcfile_path='`$ECHO "$fix_srcfile_path" | $SED "$delay_single_quote_subst"`'
13566 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
13567 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
13568 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
13569 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
13570 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
13571 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
13572 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
13573 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
13574 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
13575 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
13576 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
13577 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
13578 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
13579 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
13580 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
13581 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
13582 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
13583 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
13584 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
13585 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
13586 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
13587 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
13588 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
13589 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
13590 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
13591 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
13592 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
13593 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
13594 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
13595 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
13597 LTCC='$LTCC'
13598 LTCFLAGS='$LTCFLAGS'
13599 compiler='$compiler_DEFAULT'
13601 # A function that is used when there is no print builtin or printf.
13602 func_fallback_echo ()
13604 eval 'cat <<_LTECHO_EOF
13606 _LTECHO_EOF'
13609 # Quote evaled strings.
13610 for var in SHELL \
13611 ECHO \
13612 SED \
13613 GREP \
13614 EGREP \
13615 FGREP \
13616 LD \
13617 NM \
13618 LN_S \
13619 lt_SP2NL \
13620 lt_NL2SP \
13621 reload_flag \
13622 OBJDUMP \
13623 deplibs_check_method \
13624 file_magic_cmd \
13625 AR \
13626 AR_FLAGS \
13627 STRIP \
13628 RANLIB \
13629 CC \
13630 CFLAGS \
13631 compiler \
13632 lt_cv_sys_global_symbol_pipe \
13633 lt_cv_sys_global_symbol_to_cdecl \
13634 lt_cv_sys_global_symbol_to_c_name_address \
13635 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
13636 lt_prog_compiler_no_builtin_flag \
13637 lt_prog_compiler_wl \
13638 lt_prog_compiler_pic \
13639 lt_prog_compiler_static \
13640 lt_cv_prog_compiler_c_o \
13641 need_locks \
13642 DSYMUTIL \
13643 NMEDIT \
13644 LIPO \
13645 OTOOL \
13646 OTOOL64 \
13647 shrext_cmds \
13648 export_dynamic_flag_spec \
13649 whole_archive_flag_spec \
13650 compiler_needs_object \
13651 with_gnu_ld \
13652 allow_undefined_flag \
13653 no_undefined_flag \
13654 hardcode_libdir_flag_spec \
13655 hardcode_libdir_flag_spec_ld \
13656 hardcode_libdir_separator \
13657 fix_srcfile_path \
13658 exclude_expsyms \
13659 include_expsyms \
13660 file_list_spec \
13661 variables_saved_for_relink \
13662 libname_spec \
13663 library_names_spec \
13664 soname_spec \
13665 install_override_mode \
13666 finish_eval \
13667 old_striplib \
13668 striplib; do
13669 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
13670 *[\\\\\\\`\\"\\\$]*)
13671 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
13674 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
13676 esac
13677 done
13679 # Double-quote double-evaled strings.
13680 for var in reload_cmds \
13681 old_postinstall_cmds \
13682 old_postuninstall_cmds \
13683 old_archive_cmds \
13684 extract_expsyms_cmds \
13685 old_archive_from_new_cmds \
13686 old_archive_from_expsyms_cmds \
13687 archive_cmds \
13688 archive_expsym_cmds \
13689 module_cmds \
13690 module_expsym_cmds \
13691 export_symbols_cmds \
13692 prelink_cmds \
13693 postinstall_cmds \
13694 postuninstall_cmds \
13695 finish_cmds \
13696 sys_lib_search_path_spec \
13697 sys_lib_dlsearch_path_spec; do
13698 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
13699 *[\\\\\\\`\\"\\\$]*)
13700 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
13703 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
13705 esac
13706 done
13708 ac_aux_dir='$ac_aux_dir'
13709 xsi_shell='$xsi_shell'
13710 lt_shell_append='$lt_shell_append'
13712 # See if we are running on zsh, and set the options which allow our
13713 # commands through without removal of \ escapes INIT.
13714 if test -n "\${ZSH_VERSION+set}" ; then
13715 setopt NO_GLOB_SUBST
13719 PACKAGE='$PACKAGE'
13720 VERSION='$VERSION'
13721 TIMESTAMP='$TIMESTAMP'
13722 RM='$RM'
13723 ofile='$ofile'
13728 GCC="$GCC"
13729 CC="$CC"
13730 acx_cv_header_stdint="$acx_cv_header_stdint"
13731 acx_cv_type_int8_t="$acx_cv_type_int8_t"
13732 acx_cv_type_int16_t="$acx_cv_type_int16_t"
13733 acx_cv_type_int32_t="$acx_cv_type_int32_t"
13734 acx_cv_type_int64_t="$acx_cv_type_int64_t"
13735 acx_cv_type_intptr_t="$acx_cv_type_intptr_t"
13736 ac_cv_type_uintmax_t="$ac_cv_type_uintmax_t"
13737 ac_cv_type_uintptr_t="$ac_cv_type_uintptr_t"
13738 ac_cv_type_uint64_t="$ac_cv_type_uint64_t"
13739 ac_cv_type_u_int64_t="$ac_cv_type_u_int64_t"
13740 ac_cv_type_u_int32_t="$ac_cv_type_u_int32_t"
13741 ac_cv_type_int_least32_t="$ac_cv_type_int_least32_t"
13742 ac_cv_type_int_fast32_t="$ac_cv_type_int_fast32_t"
13743 ac_cv_sizeof_void_p="$ac_cv_sizeof_void_p"
13746 # Variables needed in config.status (file generation) which aren't already
13747 # passed by autoconf.
13748 SUBDIRS="$SUBDIRS"
13751 _ACEOF
13753 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13755 # Handling of arguments.
13756 for ac_config_target in $ac_config_targets
13758 case $ac_config_target in
13759 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
13760 "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
13761 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
13762 "gstdint.h") CONFIG_COMMANDS="$CONFIG_COMMANDS gstdint.h" ;;
13763 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
13764 "backtrace-supported.h") CONFIG_FILES="$CONFIG_FILES backtrace-supported.h" ;;
13765 "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
13767 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
13768 esac
13769 done
13772 # If the user did not use the arguments to specify the items to instantiate,
13773 # then the envvar interface is used. Set only those that are not.
13774 # We use the long form for the default assignment because of an extremely
13775 # bizarre bug on SunOS 4.1.3.
13776 if $ac_need_defaults; then
13777 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
13778 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
13779 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
13782 # Have a temporary directory for convenience. Make it in the build tree
13783 # simply because there is no reason against having it here, and in addition,
13784 # creating and moving files from /tmp can sometimes cause problems.
13785 # Hook for its removal unless debugging.
13786 # Note that there is a small window in which the directory will not be cleaned:
13787 # after its creation but before its name has been assigned to `$tmp'.
13788 $debug ||
13790 tmp=
13791 trap 'exit_status=$?
13792 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
13794 trap 'as_fn_exit 1' 1 2 13 15
13796 # Create a (secure) tmp directory for tmp files.
13799 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
13800 test -n "$tmp" && test -d "$tmp"
13801 } ||
13803 tmp=./conf$$-$RANDOM
13804 (umask 077 && mkdir "$tmp")
13805 } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
13807 # Set up the scripts for CONFIG_FILES section.
13808 # No need to generate them if there are no CONFIG_FILES.
13809 # This happens for instance with `./config.status config.h'.
13810 if test -n "$CONFIG_FILES"; then
13813 ac_cr=`echo X | tr X '\015'`
13814 # On cygwin, bash can eat \r inside `` if the user requested igncr.
13815 # But we know of no other shell where ac_cr would be empty at this
13816 # point, so we can use a bashism as a fallback.
13817 if test "x$ac_cr" = x; then
13818 eval ac_cr=\$\'\\r\'
13820 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
13821 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
13822 ac_cs_awk_cr='\r'
13823 else
13824 ac_cs_awk_cr=$ac_cr
13827 echo 'BEGIN {' >"$tmp/subs1.awk" &&
13828 _ACEOF
13832 echo "cat >conf$$subs.awk <<_ACEOF" &&
13833 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
13834 echo "_ACEOF"
13835 } >conf$$subs.sh ||
13836 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
13837 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
13838 ac_delim='%!_!# '
13839 for ac_last_try in false false false false false :; do
13840 . ./conf$$subs.sh ||
13841 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
13843 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
13844 if test $ac_delim_n = $ac_delim_num; then
13845 break
13846 elif $ac_last_try; then
13847 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
13848 else
13849 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
13851 done
13852 rm -f conf$$subs.sh
13854 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13855 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
13856 _ACEOF
13857 sed -n '
13859 s/^/S["/; s/!.*/"]=/
13862 s/^[^!]*!//
13863 :repl
13864 t repl
13865 s/'"$ac_delim"'$//
13866 t delim
13869 s/\(.\{148\}\).*/\1/
13870 t more1
13871 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
13874 b repl
13875 :more1
13876 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
13879 s/.\{148\}//
13880 t nl
13881 :delim
13883 s/\(.\{148\}\).*/\1/
13884 t more2
13885 s/["\\]/\\&/g; s/^/"/; s/$/"/
13888 :more2
13889 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
13892 s/.\{148\}//
13893 t delim
13894 ' <conf$$subs.awk | sed '
13895 /^[^""]/{
13897 s/\n//
13899 ' >>$CONFIG_STATUS || ac_write_fail=1
13900 rm -f conf$$subs.awk
13901 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13902 _ACAWK
13903 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
13904 for (key in S) S_is_set[key] = 1
13905 FS = "\a"
13909 line = $ 0
13910 nfields = split(line, field, "@")
13911 substed = 0
13912 len = length(field[1])
13913 for (i = 2; i < nfields; i++) {
13914 key = field[i]
13915 keylen = length(key)
13916 if (S_is_set[key]) {
13917 value = S[key]
13918 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
13919 len += length(value) + length(field[++i])
13920 substed = 1
13921 } else
13922 len += 1 + keylen
13925 print line
13928 _ACAWK
13929 _ACEOF
13930 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13931 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
13932 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
13933 else
13935 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
13936 || as_fn_error "could not setup config files machinery" "$LINENO" 5
13937 _ACEOF
13939 # VPATH may cause trouble with some makes, so we remove $(srcdir),
13940 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
13941 # trailing colons and then remove the whole line if VPATH becomes empty
13942 # (actually we leave an empty line to preserve line numbers).
13943 if test "x$srcdir" = x.; then
13944 ac_vpsub='/^[ ]*VPATH[ ]*=/{
13945 s/:*\$(srcdir):*/:/
13946 s/:*\${srcdir}:*/:/
13947 s/:*@srcdir@:*/:/
13948 s/^\([^=]*=[ ]*\):*/\1/
13949 s/:*$//
13950 s/^[^=]*=[ ]*$//
13954 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13955 fi # test -n "$CONFIG_FILES"
13957 # Set up the scripts for CONFIG_HEADERS section.
13958 # No need to generate them if there are no CONFIG_HEADERS.
13959 # This happens for instance with `./config.status Makefile'.
13960 if test -n "$CONFIG_HEADERS"; then
13961 cat >"$tmp/defines.awk" <<\_ACAWK ||
13962 BEGIN {
13963 _ACEOF
13965 # Transform confdefs.h into an awk script `defines.awk', embedded as
13966 # here-document in config.status, that substitutes the proper values into
13967 # config.h.in to produce config.h.
13969 # Create a delimiter string that does not exist in confdefs.h, to ease
13970 # handling of long lines.
13971 ac_delim='%!_!# '
13972 for ac_last_try in false false :; do
13973 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
13974 if test -z "$ac_t"; then
13975 break
13976 elif $ac_last_try; then
13977 as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
13978 else
13979 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
13981 done
13983 # For the awk script, D is an array of macro values keyed by name,
13984 # likewise P contains macro parameters if any. Preserve backslash
13985 # newline sequences.
13987 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
13988 sed -n '
13989 s/.\{148\}/&'"$ac_delim"'/g
13990 t rset
13991 :rset
13992 s/^[ ]*#[ ]*define[ ][ ]*/ /
13993 t def
13995 :def
13996 s/\\$//
13997 t bsnl
13998 s/["\\]/\\&/g
13999 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
14000 D["\1"]=" \3"/p
14001 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
14003 :bsnl
14004 s/["\\]/\\&/g
14005 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
14006 D["\1"]=" \3\\\\\\n"\\/p
14007 t cont
14008 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
14009 t cont
14011 :cont
14013 s/.\{148\}/&'"$ac_delim"'/g
14014 t clear
14015 :clear
14016 s/\\$//
14017 t bsnlc
14018 s/["\\]/\\&/g; s/^/"/; s/$/"/p
14020 :bsnlc
14021 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
14022 b cont
14023 ' <confdefs.h | sed '
14024 s/'"$ac_delim"'/"\\\
14025 "/g' >>$CONFIG_STATUS || ac_write_fail=1
14027 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14028 for (key in D) D_is_set[key] = 1
14029 FS = "\a"
14031 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
14032 line = \$ 0
14033 split(line, arg, " ")
14034 if (arg[1] == "#") {
14035 defundef = arg[2]
14036 mac1 = arg[3]
14037 } else {
14038 defundef = substr(arg[1], 2)
14039 mac1 = arg[2]
14041 split(mac1, mac2, "(") #)
14042 macro = mac2[1]
14043 prefix = substr(line, 1, index(line, defundef) - 1)
14044 if (D_is_set[macro]) {
14045 # Preserve the white space surrounding the "#".
14046 print prefix "define", macro P[macro] D[macro]
14047 next
14048 } else {
14049 # Replace #undef with comments. This is necessary, for example,
14050 # in the case of _POSIX_SOURCE, which is predefined and required
14051 # on some systems where configure will not decide to define it.
14052 if (defundef == "undef") {
14053 print "/*", prefix defundef, macro, "*/"
14054 next
14058 { print }
14059 _ACAWK
14060 _ACEOF
14061 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14062 as_fn_error "could not setup config headers machinery" "$LINENO" 5
14063 fi # test -n "$CONFIG_HEADERS"
14066 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
14067 shift
14068 for ac_tag
14070 case $ac_tag in
14071 :[FHLC]) ac_mode=$ac_tag; continue;;
14072 esac
14073 case $ac_mode$ac_tag in
14074 :[FHL]*:*);;
14075 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
14076 :[FH]-) ac_tag=-:-;;
14077 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
14078 esac
14079 ac_save_IFS=$IFS
14080 IFS=:
14081 set x $ac_tag
14082 IFS=$ac_save_IFS
14083 shift
14084 ac_file=$1
14085 shift
14087 case $ac_mode in
14088 :L) ac_source=$1;;
14089 :[FH])
14090 ac_file_inputs=
14091 for ac_f
14093 case $ac_f in
14094 -) ac_f="$tmp/stdin";;
14095 *) # Look for the file first in the build tree, then in the source tree
14096 # (if the path is not absolute). The absolute path cannot be DOS-style,
14097 # because $ac_f cannot contain `:'.
14098 test -f "$ac_f" ||
14099 case $ac_f in
14100 [\\/$]*) false;;
14101 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
14102 esac ||
14103 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
14104 esac
14105 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
14106 as_fn_append ac_file_inputs " '$ac_f'"
14107 done
14109 # Let's still pretend it is `configure' which instantiates (i.e., don't
14110 # use $as_me), people would be surprised to read:
14111 # /* config.h. Generated by config.status. */
14112 configure_input='Generated from '`
14113 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
14114 `' by configure.'
14115 if test x"$ac_file" != x-; then
14116 configure_input="$ac_file. $configure_input"
14117 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
14118 $as_echo "$as_me: creating $ac_file" >&6;}
14120 # Neutralize special characters interpreted by sed in replacement strings.
14121 case $configure_input in #(
14122 *\&* | *\|* | *\\* )
14123 ac_sed_conf_input=`$as_echo "$configure_input" |
14124 sed 's/[\\\\&|]/\\\\&/g'`;; #(
14125 *) ac_sed_conf_input=$configure_input;;
14126 esac
14128 case $ac_tag in
14129 *:-:* | *:-) cat >"$tmp/stdin" \
14130 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
14131 esac
14133 esac
14135 ac_dir=`$as_dirname -- "$ac_file" ||
14136 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14137 X"$ac_file" : 'X\(//\)[^/]' \| \
14138 X"$ac_file" : 'X\(//\)$' \| \
14139 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
14140 $as_echo X"$ac_file" |
14141 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14142 s//\1/
14145 /^X\(\/\/\)[^/].*/{
14146 s//\1/
14149 /^X\(\/\/\)$/{
14150 s//\1/
14153 /^X\(\/\).*/{
14154 s//\1/
14157 s/.*/./; q'`
14158 as_dir="$ac_dir"; as_fn_mkdir_p
14159 ac_builddir=.
14161 case "$ac_dir" in
14162 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
14164 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
14165 # A ".." for each directory in $ac_dir_suffix.
14166 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
14167 case $ac_top_builddir_sub in
14168 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
14169 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
14170 esac ;;
14171 esac
14172 ac_abs_top_builddir=$ac_pwd
14173 ac_abs_builddir=$ac_pwd$ac_dir_suffix
14174 # for backward compatibility:
14175 ac_top_builddir=$ac_top_build_prefix
14177 case $srcdir in
14178 .) # We are building in place.
14179 ac_srcdir=.
14180 ac_top_srcdir=$ac_top_builddir_sub
14181 ac_abs_top_srcdir=$ac_pwd ;;
14182 [\\/]* | ?:[\\/]* ) # Absolute name.
14183 ac_srcdir=$srcdir$ac_dir_suffix;
14184 ac_top_srcdir=$srcdir
14185 ac_abs_top_srcdir=$srcdir ;;
14186 *) # Relative name.
14187 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
14188 ac_top_srcdir=$ac_top_build_prefix$srcdir
14189 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
14190 esac
14191 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
14194 case $ac_mode in
14197 # CONFIG_FILE
14200 case $INSTALL in
14201 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
14202 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
14203 esac
14204 ac_MKDIR_P=$MKDIR_P
14205 case $MKDIR_P in
14206 [\\/$]* | ?:[\\/]* ) ;;
14207 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
14208 esac
14209 _ACEOF
14211 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14212 # If the template does not know about datarootdir, expand it.
14213 # FIXME: This hack should be removed a few years after 2.60.
14214 ac_datarootdir_hack=; ac_datarootdir_seen=
14215 ac_sed_dataroot='
14216 /datarootdir/ {
14220 /@datadir@/p
14221 /@docdir@/p
14222 /@infodir@/p
14223 /@localedir@/p
14224 /@mandir@/p'
14225 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
14226 *datarootdir*) ac_datarootdir_seen=yes;;
14227 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
14228 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
14229 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
14230 _ACEOF
14231 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14232 ac_datarootdir_hack='
14233 s&@datadir@&$datadir&g
14234 s&@docdir@&$docdir&g
14235 s&@infodir@&$infodir&g
14236 s&@localedir@&$localedir&g
14237 s&@mandir@&$mandir&g
14238 s&\\\${datarootdir}&$datarootdir&g' ;;
14239 esac
14240 _ACEOF
14242 # Neutralize VPATH when `$srcdir' = `.'.
14243 # Shell code in configure.ac might set extrasub.
14244 # FIXME: do we really want to maintain this feature?
14245 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14246 ac_sed_extra="$ac_vpsub
14247 $extrasub
14248 _ACEOF
14249 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14251 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
14252 s|@configure_input@|$ac_sed_conf_input|;t t
14253 s&@top_builddir@&$ac_top_builddir_sub&;t t
14254 s&@top_build_prefix@&$ac_top_build_prefix&;t t
14255 s&@srcdir@&$ac_srcdir&;t t
14256 s&@abs_srcdir@&$ac_abs_srcdir&;t t
14257 s&@top_srcdir@&$ac_top_srcdir&;t t
14258 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
14259 s&@builddir@&$ac_builddir&;t t
14260 s&@abs_builddir@&$ac_abs_builddir&;t t
14261 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
14262 s&@INSTALL@&$ac_INSTALL&;t t
14263 s&@MKDIR_P@&$ac_MKDIR_P&;t t
14264 $ac_datarootdir_hack
14266 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
14267 || as_fn_error "could not create $ac_file" "$LINENO" 5
14269 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
14270 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
14271 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
14272 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
14273 which seems to be undefined. Please make sure it is defined." >&5
14274 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
14275 which seems to be undefined. Please make sure it is defined." >&2;}
14277 rm -f "$tmp/stdin"
14278 case $ac_file in
14279 -) cat "$tmp/out" && rm -f "$tmp/out";;
14280 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
14281 esac \
14282 || as_fn_error "could not create $ac_file" "$LINENO" 5
14286 # CONFIG_HEADER
14288 if test x"$ac_file" != x-; then
14290 $as_echo "/* $configure_input */" \
14291 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
14292 } >"$tmp/config.h" \
14293 || as_fn_error "could not create $ac_file" "$LINENO" 5
14294 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
14295 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
14296 $as_echo "$as_me: $ac_file is unchanged" >&6;}
14297 else
14298 rm -f "$ac_file"
14299 mv "$tmp/config.h" "$ac_file" \
14300 || as_fn_error "could not create $ac_file" "$LINENO" 5
14302 else
14303 $as_echo "/* $configure_input */" \
14304 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
14305 || as_fn_error "could not create -" "$LINENO" 5
14307 # Compute "$ac_file"'s index in $config_headers.
14308 _am_arg="$ac_file"
14309 _am_stamp_count=1
14310 for _am_header in $config_headers :; do
14311 case $_am_header in
14312 $_am_arg | $_am_arg:* )
14313 break ;;
14315 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
14316 esac
14317 done
14318 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
14319 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14320 X"$_am_arg" : 'X\(//\)[^/]' \| \
14321 X"$_am_arg" : 'X\(//\)$' \| \
14322 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
14323 $as_echo X"$_am_arg" |
14324 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14325 s//\1/
14328 /^X\(\/\/\)[^/].*/{
14329 s//\1/
14332 /^X\(\/\/\)$/{
14333 s//\1/
14336 /^X\(\/\).*/{
14337 s//\1/
14340 s/.*/./; q'`/stamp-h$_am_stamp_count
14343 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
14344 $as_echo "$as_me: executing $ac_file commands" >&6;}
14346 esac
14349 case $ac_file$ac_mode in
14350 "default-1":C)
14351 # Only add multilib support code if we just rebuilt the top-level
14352 # Makefile.
14353 case " $CONFIG_FILES " in
14354 *" Makefile "*)
14355 ac_file=Makefile . ${multi_basedir}/config-ml.in
14357 esac ;;
14358 "libtool":C)
14360 # See if we are running on zsh, and set the options which allow our
14361 # commands through without removal of \ escapes.
14362 if test -n "${ZSH_VERSION+set}" ; then
14363 setopt NO_GLOB_SUBST
14366 cfgfile="${ofile}T"
14367 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
14368 $RM "$cfgfile"
14370 cat <<_LT_EOF >> "$cfgfile"
14371 #! $SHELL
14373 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
14374 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
14375 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
14376 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
14378 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
14379 # 2006, 2007, 2008, 2009 Free Software Foundation, Inc.
14380 # Written by Gordon Matzigkeit, 1996
14382 # This file is part of GNU Libtool.
14384 # GNU Libtool is free software; you can redistribute it and/or
14385 # modify it under the terms of the GNU General Public License as
14386 # published by the Free Software Foundation; either version 2 of
14387 # the License, or (at your option) any later version.
14389 # As a special exception to the GNU General Public License,
14390 # if you distribute this file as part of a program or library that
14391 # is built using GNU Libtool, you may include this file under the
14392 # same distribution terms that you use for the rest of that program.
14394 # GNU Libtool is distributed in the hope that it will be useful,
14395 # but WITHOUT ANY WARRANTY; without even the implied warranty of
14396 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14397 # GNU General Public License for more details.
14399 # You should have received a copy of the GNU General Public License
14400 # along with GNU Libtool; see the file COPYING. If not, a copy
14401 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
14402 # obtained by writing to the Free Software Foundation, Inc.,
14403 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
14406 # The names of the tagged configurations supported by this script.
14407 available_tags=""
14409 # ### BEGIN LIBTOOL CONFIG
14411 # Which release of libtool.m4 was used?
14412 macro_version=$macro_version
14413 macro_revision=$macro_revision
14415 # Whether or not to build shared libraries.
14416 build_libtool_libs=$enable_shared
14418 # Whether or not to build static libraries.
14419 build_old_libs=$enable_static
14421 # What type of objects to build.
14422 pic_mode=$pic_mode
14424 # Whether or not to optimize for fast installation.
14425 fast_install=$enable_fast_install
14427 # Shell to use when invoking shell scripts.
14428 SHELL=$lt_SHELL
14430 # An echo program that protects backslashes.
14431 ECHO=$lt_ECHO
14433 # The host system.
14434 host_alias=$host_alias
14435 host=$host
14436 host_os=$host_os
14438 # The build system.
14439 build_alias=$build_alias
14440 build=$build
14441 build_os=$build_os
14443 # A sed program that does not truncate output.
14444 SED=$lt_SED
14446 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
14447 Xsed="\$SED -e 1s/^X//"
14449 # A grep program that handles long lines.
14450 GREP=$lt_GREP
14452 # An ERE matcher.
14453 EGREP=$lt_EGREP
14455 # A literal string matcher.
14456 FGREP=$lt_FGREP
14458 # A BSD- or MS-compatible name lister.
14459 NM=$lt_NM
14461 # Whether we need soft or hard links.
14462 LN_S=$lt_LN_S
14464 # What is the maximum length of a command?
14465 max_cmd_len=$max_cmd_len
14467 # Object file suffix (normally "o").
14468 objext=$ac_objext
14470 # Executable file suffix (normally "").
14471 exeext=$exeext
14473 # whether the shell understands "unset".
14474 lt_unset=$lt_unset
14476 # turn spaces into newlines.
14477 SP2NL=$lt_lt_SP2NL
14479 # turn newlines into spaces.
14480 NL2SP=$lt_lt_NL2SP
14482 # An object symbol dumper.
14483 OBJDUMP=$lt_OBJDUMP
14485 # Method to check whether dependent libraries are shared objects.
14486 deplibs_check_method=$lt_deplibs_check_method
14488 # Command to use when deplibs_check_method == "file_magic".
14489 file_magic_cmd=$lt_file_magic_cmd
14491 # The archiver.
14492 AR=$lt_AR
14493 AR_FLAGS=$lt_AR_FLAGS
14495 # A symbol stripping program.
14496 STRIP=$lt_STRIP
14498 # Commands used to install an old-style archive.
14499 RANLIB=$lt_RANLIB
14500 old_postinstall_cmds=$lt_old_postinstall_cmds
14501 old_postuninstall_cmds=$lt_old_postuninstall_cmds
14503 # Whether to use a lock for old archive extraction.
14504 lock_old_archive_extraction=$lock_old_archive_extraction
14506 # A C compiler.
14507 LTCC=$lt_CC
14509 # LTCC compiler flags.
14510 LTCFLAGS=$lt_CFLAGS
14512 # Take the output of nm and produce a listing of raw symbols and C names.
14513 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
14515 # Transform the output of nm in a proper C declaration.
14516 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
14518 # Transform the output of nm in a C name address pair.
14519 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
14521 # Transform the output of nm in a C name address pair when lib prefix is needed.
14522 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
14524 # The name of the directory that contains temporary libtool files.
14525 objdir=$objdir
14527 # Used to examine libraries when file_magic_cmd begins with "file".
14528 MAGIC_CMD=$MAGIC_CMD
14530 # Must we lock files when doing compilation?
14531 need_locks=$lt_need_locks
14533 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
14534 DSYMUTIL=$lt_DSYMUTIL
14536 # Tool to change global to local symbols on Mac OS X.
14537 NMEDIT=$lt_NMEDIT
14539 # Tool to manipulate fat objects and archives on Mac OS X.
14540 LIPO=$lt_LIPO
14542 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
14543 OTOOL=$lt_OTOOL
14545 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
14546 OTOOL64=$lt_OTOOL64
14548 # Old archive suffix (normally "a").
14549 libext=$libext
14551 # Shared library suffix (normally ".so").
14552 shrext_cmds=$lt_shrext_cmds
14554 # The commands to extract the exported symbol list from a shared archive.
14555 extract_expsyms_cmds=$lt_extract_expsyms_cmds
14557 # Variables whose values should be saved in libtool wrapper scripts and
14558 # restored at link time.
14559 variables_saved_for_relink=$lt_variables_saved_for_relink
14561 # Do we need the "lib" prefix for modules?
14562 need_lib_prefix=$need_lib_prefix
14564 # Do we need a version for libraries?
14565 need_version=$need_version
14567 # Library versioning type.
14568 version_type=$version_type
14570 # Shared library runtime path variable.
14571 runpath_var=$runpath_var
14573 # Shared library path variable.
14574 shlibpath_var=$shlibpath_var
14576 # Is shlibpath searched before the hard-coded library search path?
14577 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
14579 # Format of library name prefix.
14580 libname_spec=$lt_libname_spec
14582 # List of archive names. First name is the real one, the rest are links.
14583 # The last name is the one that the linker finds with -lNAME
14584 library_names_spec=$lt_library_names_spec
14586 # The coded name of the library, if different from the real name.
14587 soname_spec=$lt_soname_spec
14589 # Permission mode override for installation of shared libraries.
14590 install_override_mode=$lt_install_override_mode
14592 # Command to use after installation of a shared archive.
14593 postinstall_cmds=$lt_postinstall_cmds
14595 # Command to use after uninstallation of a shared archive.
14596 postuninstall_cmds=$lt_postuninstall_cmds
14598 # Commands used to finish a libtool library installation in a directory.
14599 finish_cmds=$lt_finish_cmds
14601 # As "finish_cmds", except a single script fragment to be evaled but
14602 # not shown.
14603 finish_eval=$lt_finish_eval
14605 # Whether we should hardcode library paths into libraries.
14606 hardcode_into_libs=$hardcode_into_libs
14608 # Compile-time system search path for libraries.
14609 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
14611 # Run-time system search path for libraries.
14612 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
14614 # Whether dlopen is supported.
14615 dlopen_support=$enable_dlopen
14617 # Whether dlopen of programs is supported.
14618 dlopen_self=$enable_dlopen_self
14620 # Whether dlopen of statically linked programs is supported.
14621 dlopen_self_static=$enable_dlopen_self_static
14623 # Commands to strip libraries.
14624 old_striplib=$lt_old_striplib
14625 striplib=$lt_striplib
14628 # The linker used to build libraries.
14629 LD=$lt_LD
14631 # How to create reloadable object files.
14632 reload_flag=$lt_reload_flag
14633 reload_cmds=$lt_reload_cmds
14635 # Commands used to build an old-style archive.
14636 old_archive_cmds=$lt_old_archive_cmds
14638 # A language specific compiler.
14639 CC=$lt_compiler
14641 # Is the compiler the GNU compiler?
14642 with_gcc=$GCC
14644 # Compiler flag to turn off builtin functions.
14645 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
14647 # How to pass a linker flag through the compiler.
14648 wl=$lt_lt_prog_compiler_wl
14650 # Additional compiler flags for building library objects.
14651 pic_flag=$lt_lt_prog_compiler_pic
14653 # Compiler flag to prevent dynamic linking.
14654 link_static_flag=$lt_lt_prog_compiler_static
14656 # Does compiler simultaneously support -c and -o options?
14657 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
14659 # Whether or not to add -lc for building shared libraries.
14660 build_libtool_need_lc=$archive_cmds_need_lc
14662 # Whether or not to disallow shared libs when runtime libs are static.
14663 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
14665 # Compiler flag to allow reflexive dlopens.
14666 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
14668 # Compiler flag to generate shared objects directly from archives.
14669 whole_archive_flag_spec=$lt_whole_archive_flag_spec
14671 # Whether the compiler copes with passing no objects directly.
14672 compiler_needs_object=$lt_compiler_needs_object
14674 # Create an old-style archive from a shared archive.
14675 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
14677 # Create a temporary old-style archive to link instead of a shared archive.
14678 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
14680 # Commands used to build a shared archive.
14681 archive_cmds=$lt_archive_cmds
14682 archive_expsym_cmds=$lt_archive_expsym_cmds
14684 # Commands used to build a loadable module if different from building
14685 # a shared archive.
14686 module_cmds=$lt_module_cmds
14687 module_expsym_cmds=$lt_module_expsym_cmds
14689 # Whether we are building with GNU ld or not.
14690 with_gnu_ld=$lt_with_gnu_ld
14692 # Flag that allows shared libraries with undefined symbols to be built.
14693 allow_undefined_flag=$lt_allow_undefined_flag
14695 # Flag that enforces no undefined symbols.
14696 no_undefined_flag=$lt_no_undefined_flag
14698 # Flag to hardcode \$libdir into a binary during linking.
14699 # This must work even if \$libdir does not exist
14700 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
14702 # If ld is used when linking, flag to hardcode \$libdir into a binary
14703 # during linking. This must work even if \$libdir does not exist.
14704 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
14706 # Whether we need a single "-rpath" flag with a separated argument.
14707 hardcode_libdir_separator=$lt_hardcode_libdir_separator
14709 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
14710 # DIR into the resulting binary.
14711 hardcode_direct=$hardcode_direct
14713 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
14714 # DIR into the resulting binary and the resulting library dependency is
14715 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
14716 # library is relocated.
14717 hardcode_direct_absolute=$hardcode_direct_absolute
14719 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
14720 # into the resulting binary.
14721 hardcode_minus_L=$hardcode_minus_L
14723 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
14724 # into the resulting binary.
14725 hardcode_shlibpath_var=$hardcode_shlibpath_var
14727 # Set to "yes" if building a shared library automatically hardcodes DIR
14728 # into the library and all subsequent libraries and executables linked
14729 # against it.
14730 hardcode_automatic=$hardcode_automatic
14732 # Set to yes if linker adds runtime paths of dependent libraries
14733 # to runtime path list.
14734 inherit_rpath=$inherit_rpath
14736 # Whether libtool must link a program against all its dependency libraries.
14737 link_all_deplibs=$link_all_deplibs
14739 # Fix the shell variable \$srcfile for the compiler.
14740 fix_srcfile_path=$lt_fix_srcfile_path
14742 # Set to "yes" if exported symbols are required.
14743 always_export_symbols=$always_export_symbols
14745 # The commands to list exported symbols.
14746 export_symbols_cmds=$lt_export_symbols_cmds
14748 # Symbols that should not be listed in the preloaded symbols.
14749 exclude_expsyms=$lt_exclude_expsyms
14751 # Symbols that must always be exported.
14752 include_expsyms=$lt_include_expsyms
14754 # Commands necessary for linking programs (against libraries) with templates.
14755 prelink_cmds=$lt_prelink_cmds
14757 # Specify filename containing input files.
14758 file_list_spec=$lt_file_list_spec
14760 # How to hardcode a shared library path into an executable.
14761 hardcode_action=$hardcode_action
14763 # ### END LIBTOOL CONFIG
14765 _LT_EOF
14767 case $host_os in
14768 aix3*)
14769 cat <<\_LT_EOF >> "$cfgfile"
14770 # AIX sometimes has problems with the GCC collect2 program. For some
14771 # reason, if we set the COLLECT_NAMES environment variable, the problems
14772 # vanish in a puff of smoke.
14773 if test "X${COLLECT_NAMES+set}" != Xset; then
14774 COLLECT_NAMES=
14775 export COLLECT_NAMES
14777 _LT_EOF
14779 esac
14782 ltmain="$ac_aux_dir/ltmain.sh"
14785 # We use sed instead of cat because bash on DJGPP gets confused if
14786 # if finds mixed CR/LF and LF-only lines. Since sed operates in
14787 # text mode, it properly converts lines to CR/LF. This bash problem
14788 # is reportedly fixed, but why not run on old versions too?
14789 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
14790 || (rm -f "$cfgfile"; exit 1)
14792 case $xsi_shell in
14793 yes)
14794 cat << \_LT_EOF >> "$cfgfile"
14796 # func_dirname file append nondir_replacement
14797 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
14798 # otherwise set result to NONDIR_REPLACEMENT.
14799 func_dirname ()
14801 case ${1} in
14802 */*) func_dirname_result="${1%/*}${2}" ;;
14803 * ) func_dirname_result="${3}" ;;
14804 esac
14807 # func_basename file
14808 func_basename ()
14810 func_basename_result="${1##*/}"
14813 # func_dirname_and_basename file append nondir_replacement
14814 # perform func_basename and func_dirname in a single function
14815 # call:
14816 # dirname: Compute the dirname of FILE. If nonempty,
14817 # add APPEND to the result, otherwise set result
14818 # to NONDIR_REPLACEMENT.
14819 # value returned in "$func_dirname_result"
14820 # basename: Compute filename of FILE.
14821 # value retuned in "$func_basename_result"
14822 # Implementation must be kept synchronized with func_dirname
14823 # and func_basename. For efficiency, we do not delegate to
14824 # those functions but instead duplicate the functionality here.
14825 func_dirname_and_basename ()
14827 case ${1} in
14828 */*) func_dirname_result="${1%/*}${2}" ;;
14829 * ) func_dirname_result="${3}" ;;
14830 esac
14831 func_basename_result="${1##*/}"
14834 # func_stripname prefix suffix name
14835 # strip PREFIX and SUFFIX off of NAME.
14836 # PREFIX and SUFFIX must not contain globbing or regex special
14837 # characters, hashes, percent signs, but SUFFIX may contain a leading
14838 # dot (in which case that matches only a dot).
14839 func_stripname ()
14841 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
14842 # positional parameters, so assign one to ordinary parameter first.
14843 func_stripname_result=${3}
14844 func_stripname_result=${func_stripname_result#"${1}"}
14845 func_stripname_result=${func_stripname_result%"${2}"}
14848 # func_opt_split
14849 func_opt_split ()
14851 func_opt_split_opt=${1%%=*}
14852 func_opt_split_arg=${1#*=}
14855 # func_lo2o object
14856 func_lo2o ()
14858 case ${1} in
14859 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
14860 *) func_lo2o_result=${1} ;;
14861 esac
14864 # func_xform libobj-or-source
14865 func_xform ()
14867 func_xform_result=${1%.*}.lo
14870 # func_arith arithmetic-term...
14871 func_arith ()
14873 func_arith_result=$(( $* ))
14876 # func_len string
14877 # STRING may not start with a hyphen.
14878 func_len ()
14880 func_len_result=${#1}
14883 _LT_EOF
14885 *) # Bourne compatible functions.
14886 cat << \_LT_EOF >> "$cfgfile"
14888 # func_dirname file append nondir_replacement
14889 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
14890 # otherwise set result to NONDIR_REPLACEMENT.
14891 func_dirname ()
14893 # Extract subdirectory from the argument.
14894 func_dirname_result=`$ECHO "${1}" | $SED "$dirname"`
14895 if test "X$func_dirname_result" = "X${1}"; then
14896 func_dirname_result="${3}"
14897 else
14898 func_dirname_result="$func_dirname_result${2}"
14902 # func_basename file
14903 func_basename ()
14905 func_basename_result=`$ECHO "${1}" | $SED "$basename"`
14909 # func_stripname prefix suffix name
14910 # strip PREFIX and SUFFIX off of NAME.
14911 # PREFIX and SUFFIX must not contain globbing or regex special
14912 # characters, hashes, percent signs, but SUFFIX may contain a leading
14913 # dot (in which case that matches only a dot).
14914 # func_strip_suffix prefix name
14915 func_stripname ()
14917 case ${2} in
14918 .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
14919 *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
14920 esac
14923 # sed scripts:
14924 my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
14925 my_sed_long_arg='1s/^-[^=]*=//'
14927 # func_opt_split
14928 func_opt_split ()
14930 func_opt_split_opt=`$ECHO "${1}" | $SED "$my_sed_long_opt"`
14931 func_opt_split_arg=`$ECHO "${1}" | $SED "$my_sed_long_arg"`
14934 # func_lo2o object
14935 func_lo2o ()
14937 func_lo2o_result=`$ECHO "${1}" | $SED "$lo2o"`
14940 # func_xform libobj-or-source
14941 func_xform ()
14943 func_xform_result=`$ECHO "${1}" | $SED 's/\.[^.]*$/.lo/'`
14946 # func_arith arithmetic-term...
14947 func_arith ()
14949 func_arith_result=`expr "$@"`
14952 # func_len string
14953 # STRING may not start with a hyphen.
14954 func_len ()
14956 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
14959 _LT_EOF
14960 esac
14962 case $lt_shell_append in
14963 yes)
14964 cat << \_LT_EOF >> "$cfgfile"
14966 # func_append var value
14967 # Append VALUE to the end of shell variable VAR.
14968 func_append ()
14970 eval "$1+=\$2"
14972 _LT_EOF
14975 cat << \_LT_EOF >> "$cfgfile"
14977 # func_append var value
14978 # Append VALUE to the end of shell variable VAR.
14979 func_append ()
14981 eval "$1=\$$1\$2"
14984 _LT_EOF
14986 esac
14989 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
14990 || (rm -f "$cfgfile"; exit 1)
14992 mv -f "$cfgfile" "$ofile" ||
14993 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
14994 chmod +x "$ofile"
14997 "gstdint.h":C)
14998 if test "$GCC" = yes; then
14999 echo "/* generated for " `$CC --version | sed 1q` "*/" > tmp-stdint.h
15000 else
15001 echo "/* generated for $CC */" > tmp-stdint.h
15004 sed 's/^ *//' >> tmp-stdint.h <<EOF
15006 #ifndef GCC_GENERATED_STDINT_H
15007 #define GCC_GENERATED_STDINT_H 1
15009 #include <sys/types.h>
15012 if test "$acx_cv_header_stdint" != stdint.h; then
15013 echo "#include <stddef.h>" >> tmp-stdint.h
15015 if test "$acx_cv_header_stdint" != stddef.h; then
15016 echo "#include <$acx_cv_header_stdint>" >> tmp-stdint.h
15019 sed 's/^ *//' >> tmp-stdint.h <<EOF
15020 /* glibc uses these symbols as guards to prevent redefinitions. */
15021 #ifdef __int8_t_defined
15022 #define _INT8_T
15023 #define _INT16_T
15024 #define _INT32_T
15025 #endif
15026 #ifdef __uint32_t_defined
15027 #define _UINT32_T
15028 #endif
15032 # ----------------- done header, emit basic int types -------------
15033 if test "$acx_cv_header_stdint" = stddef.h; then
15034 sed 's/^ *//' >> tmp-stdint.h <<EOF
15036 #ifndef _UINT8_T
15037 #define _UINT8_T
15038 #ifndef __uint8_t_defined
15039 #define __uint8_t_defined
15040 #ifndef uint8_t
15041 typedef unsigned $acx_cv_type_int8_t uint8_t;
15042 #endif
15043 #endif
15044 #endif
15046 #ifndef _UINT16_T
15047 #define _UINT16_T
15048 #ifndef __uint16_t_defined
15049 #define __uint16_t_defined
15050 #ifndef uint16_t
15051 typedef unsigned $acx_cv_type_int16_t uint16_t;
15052 #endif
15053 #endif
15054 #endif
15056 #ifndef _UINT32_T
15057 #define _UINT32_T
15058 #ifndef __uint32_t_defined
15059 #define __uint32_t_defined
15060 #ifndef uint32_t
15061 typedef unsigned $acx_cv_type_int32_t uint32_t;
15062 #endif
15063 #endif
15064 #endif
15066 #ifndef _INT8_T
15067 #define _INT8_T
15068 #ifndef __int8_t_defined
15069 #define __int8_t_defined
15070 #ifndef int8_t
15071 typedef $acx_cv_type_int8_t int8_t;
15072 #endif
15073 #endif
15074 #endif
15076 #ifndef _INT16_T
15077 #define _INT16_T
15078 #ifndef __int16_t_defined
15079 #define __int16_t_defined
15080 #ifndef int16_t
15081 typedef $acx_cv_type_int16_t int16_t;
15082 #endif
15083 #endif
15084 #endif
15086 #ifndef _INT32_T
15087 #define _INT32_T
15088 #ifndef __int32_t_defined
15089 #define __int32_t_defined
15090 #ifndef int32_t
15091 typedef $acx_cv_type_int32_t int32_t;
15092 #endif
15093 #endif
15094 #endif
15096 elif test "$ac_cv_type_u_int32_t" = yes; then
15097 sed 's/^ *//' >> tmp-stdint.h <<EOF
15099 /* int8_t int16_t int32_t defined by inet code, we do the u_intXX types */
15100 #ifndef _INT8_T
15101 #define _INT8_T
15102 #endif
15103 #ifndef _INT16_T
15104 #define _INT16_T
15105 #endif
15106 #ifndef _INT32_T
15107 #define _INT32_T
15108 #endif
15110 #ifndef _UINT8_T
15111 #define _UINT8_T
15112 #ifndef __uint8_t_defined
15113 #define __uint8_t_defined
15114 #ifndef uint8_t
15115 typedef u_int8_t uint8_t;
15116 #endif
15117 #endif
15118 #endif
15120 #ifndef _UINT16_T
15121 #define _UINT16_T
15122 #ifndef __uint16_t_defined
15123 #define __uint16_t_defined
15124 #ifndef uint16_t
15125 typedef u_int16_t uint16_t;
15126 #endif
15127 #endif
15128 #endif
15130 #ifndef _UINT32_T
15131 #define _UINT32_T
15132 #ifndef __uint32_t_defined
15133 #define __uint32_t_defined
15134 #ifndef uint32_t
15135 typedef u_int32_t uint32_t;
15136 #endif
15137 #endif
15138 #endif
15140 else
15141 sed 's/^ *//' >> tmp-stdint.h <<EOF
15143 /* Some systems have guard macros to prevent redefinitions, define them. */
15144 #ifndef _INT8_T
15145 #define _INT8_T
15146 #endif
15147 #ifndef _INT16_T
15148 #define _INT16_T
15149 #endif
15150 #ifndef _INT32_T
15151 #define _INT32_T
15152 #endif
15153 #ifndef _UINT8_T
15154 #define _UINT8_T
15155 #endif
15156 #ifndef _UINT16_T
15157 #define _UINT16_T
15158 #endif
15159 #ifndef _UINT32_T
15160 #define _UINT32_T
15161 #endif
15165 # ------------- done basic int types, emit int64_t types ------------
15166 if test "$ac_cv_type_uint64_t" = yes; then
15167 sed 's/^ *//' >> tmp-stdint.h <<EOF
15169 /* system headers have good uint64_t and int64_t */
15170 #ifndef _INT64_T
15171 #define _INT64_T
15172 #endif
15173 #ifndef _UINT64_T
15174 #define _UINT64_T
15175 #endif
15177 elif test "$ac_cv_type_u_int64_t" = yes; then
15178 sed 's/^ *//' >> tmp-stdint.h <<EOF
15180 /* system headers have an u_int64_t (and int64_t) */
15181 #ifndef _INT64_T
15182 #define _INT64_T
15183 #endif
15184 #ifndef _UINT64_T
15185 #define _UINT64_T
15186 #ifndef __uint64_t_defined
15187 #define __uint64_t_defined
15188 #ifndef uint64_t
15189 typedef u_int64_t uint64_t;
15190 #endif
15191 #endif
15192 #endif
15194 elif test -n "$acx_cv_type_int64_t"; then
15195 sed 's/^ *//' >> tmp-stdint.h <<EOF
15197 /* architecture has a 64-bit type, $acx_cv_type_int64_t */
15198 #ifndef _INT64_T
15199 #define _INT64_T
15200 #ifndef int64_t
15201 typedef $acx_cv_type_int64_t int64_t;
15202 #endif
15203 #endif
15204 #ifndef _UINT64_T
15205 #define _UINT64_T
15206 #ifndef __uint64_t_defined
15207 #define __uint64_t_defined
15208 #ifndef uint64_t
15209 typedef unsigned $acx_cv_type_int64_t uint64_t;
15210 #endif
15211 #endif
15212 #endif
15214 else
15215 sed 's/^ *//' >> tmp-stdint.h <<EOF
15217 /* some common heuristics for int64_t, using compiler-specific tests */
15218 #if defined __STDC_VERSION__ && (__STDC_VERSION__-0) >= 199901L
15219 #ifndef _INT64_T
15220 #define _INT64_T
15221 #ifndef __int64_t_defined
15222 #ifndef int64_t
15223 typedef long long int64_t;
15224 #endif
15225 #endif
15226 #endif
15227 #ifndef _UINT64_T
15228 #define _UINT64_T
15229 #ifndef uint64_t
15230 typedef unsigned long long uint64_t;
15231 #endif
15232 #endif
15234 #elif defined __GNUC__ && defined (__STDC__) && __STDC__-0
15235 /* NextStep 2.0 cc is really gcc 1.93 but it defines __GNUC__ = 2 and
15236 does not implement __extension__. But that compiler doesn't define
15237 __GNUC_MINOR__. */
15238 # if __GNUC__ < 2 || (__NeXT__ && !__GNUC_MINOR__)
15239 # define __extension__
15240 # endif
15242 # ifndef _INT64_T
15243 # define _INT64_T
15244 # ifndef int64_t
15245 __extension__ typedef long long int64_t;
15246 # endif
15247 # endif
15248 # ifndef _UINT64_T
15249 # define _UINT64_T
15250 # ifndef uint64_t
15251 __extension__ typedef unsigned long long uint64_t;
15252 # endif
15253 # endif
15255 #elif !defined __STRICT_ANSI__
15256 # if defined _MSC_VER || defined __WATCOMC__ || defined __BORLANDC__
15258 # ifndef _INT64_T
15259 # define _INT64_T
15260 # ifndef int64_t
15261 typedef __int64 int64_t;
15262 # endif
15263 # endif
15264 # ifndef _UINT64_T
15265 # define _UINT64_T
15266 # ifndef uint64_t
15267 typedef unsigned __int64 uint64_t;
15268 # endif
15269 # endif
15270 # endif /* compiler */
15272 #endif /* ANSI version */
15276 # ------------- done int64_t types, emit intptr types ------------
15277 if test "$ac_cv_type_uintptr_t" != yes; then
15278 sed 's/^ *//' >> tmp-stdint.h <<EOF
15280 /* Define intptr_t based on sizeof(void*) = $ac_cv_sizeof_void_p */
15281 #ifndef __uintptr_t_defined
15282 #ifndef uintptr_t
15283 typedef u$acx_cv_type_intptr_t uintptr_t;
15284 #endif
15285 #endif
15286 #ifndef __intptr_t_defined
15287 #ifndef intptr_t
15288 typedef $acx_cv_type_intptr_t intptr_t;
15289 #endif
15290 #endif
15294 # ------------- done intptr types, emit int_least types ------------
15295 if test "$ac_cv_type_int_least32_t" != yes; then
15296 sed 's/^ *//' >> tmp-stdint.h <<EOF
15298 /* Define int_least types */
15299 typedef int8_t int_least8_t;
15300 typedef int16_t int_least16_t;
15301 typedef int32_t int_least32_t;
15302 #ifdef _INT64_T
15303 typedef int64_t int_least64_t;
15304 #endif
15306 typedef uint8_t uint_least8_t;
15307 typedef uint16_t uint_least16_t;
15308 typedef uint32_t uint_least32_t;
15309 #ifdef _UINT64_T
15310 typedef uint64_t uint_least64_t;
15311 #endif
15315 # ------------- done intptr types, emit int_fast types ------------
15316 if test "$ac_cv_type_int_fast32_t" != yes; then
15317 sed 's/^ *//' >> tmp-stdint.h <<EOF
15319 /* Define int_fast types. short is often slow */
15320 typedef int8_t int_fast8_t;
15321 typedef int int_fast16_t;
15322 typedef int32_t int_fast32_t;
15323 #ifdef _INT64_T
15324 typedef int64_t int_fast64_t;
15325 #endif
15327 typedef uint8_t uint_fast8_t;
15328 typedef unsigned int uint_fast16_t;
15329 typedef uint32_t uint_fast32_t;
15330 #ifdef _UINT64_T
15331 typedef uint64_t uint_fast64_t;
15332 #endif
15336 if test "$ac_cv_type_uintmax_t" != yes; then
15337 sed 's/^ *//' >> tmp-stdint.h <<EOF
15339 /* Define intmax based on what we found */
15340 #ifndef intmax_t
15341 #ifdef _INT64_T
15342 typedef int64_t intmax_t;
15343 #else
15344 typedef long intmax_t;
15345 #endif
15346 #endif
15347 #ifndef uintmax_t
15348 #ifdef _UINT64_T
15349 typedef uint64_t uintmax_t;
15350 #else
15351 typedef unsigned long uintmax_t;
15352 #endif
15353 #endif
15357 sed 's/^ *//' >> tmp-stdint.h <<EOF
15359 #endif /* GCC_GENERATED_STDINT_H */
15362 if test -r gstdint.h && cmp -s tmp-stdint.h gstdint.h; then
15363 rm -f tmp-stdint.h
15364 else
15365 mv -f tmp-stdint.h gstdint.h
15369 "default":C) if test -n "$CONFIG_FILES"; then
15370 if test -n "${with_target_subdir}"; then
15371 # Multilibs need MULTISUBDIR defined correctly in certain makefiles so
15372 # that multilib installs will end up installed in the correct place.
15373 # The testsuite needs it for multilib-aware ABI baseline files.
15374 # To work around this not being passed down from config-ml.in ->
15375 # srcdir/Makefile.am -> srcdir/{src,libsupc++,...}/Makefile.am, manually
15376 # append it here. Only modify Makefiles that have just been created.
15378 # Also, get rid of this simulated-VPATH thing that automake does.
15379 cat > vpsed << \_EOF
15380 s!`test -f '$<' || echo '$(srcdir)/'`!!
15381 _EOF
15382 for i in $SUBDIRS; do
15383 case $CONFIG_FILES in
15384 *${i}/Makefile*)
15385 #echo "Adding MULTISUBDIR to $i/Makefile"
15386 sed -f vpsed $i/Makefile > tmp
15387 grep '^MULTISUBDIR =' Makefile >> tmp
15388 mv tmp $i/Makefile
15390 esac
15391 done
15392 rm vpsed
15397 esac
15398 done # for ac_tag
15401 as_fn_exit 0
15402 _ACEOF
15403 ac_clean_files=$ac_clean_files_save
15405 test $ac_write_fail = 0 ||
15406 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
15409 # configure is writing to config.log, and then calls config.status.
15410 # config.status does its own redirection, appending to config.log.
15411 # Unfortunately, on DOS this fails, as config.log is still kept open
15412 # by configure, so config.status won't be able to write to it; its
15413 # output is simply discarded. So we exec the FD to /dev/null,
15414 # effectively closing config.log, so it can be properly (re)opened and
15415 # appended to by config.status. When coming back to configure, we
15416 # need to make the FD available again.
15417 if test "$no_create" != yes; then
15418 ac_cs_success=:
15419 ac_config_status_args=
15420 test "$silent" = yes &&
15421 ac_config_status_args="$ac_config_status_args --quiet"
15422 exec 5>/dev/null
15423 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
15424 exec 5>>config.log
15425 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
15426 # would make configure fail if this is the last instruction.
15427 $ac_cs_success || as_fn_exit $?
15429 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
15430 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
15431 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}