2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69.
6 # Copyright (C) 1992-1996, 1998-2012 Free Software 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 :
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+"$@"}'='"$@"'
25 case `(set -o) 2>/dev/null` in #(
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
46 as_echo_n='print -rn --'
47 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
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'
55 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
60 expr "X$arg" : "X\\(.*\\)$as_nl";
61 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
63 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
66 as_echo_n='sh -c $as_echo_n_body as_echo'
69 as_echo='sh -c $as_echo_body as_echo'
72 # The user is always right.
73 if test "${PATH_SEPARATOR+set}" != set; then
75 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
76 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
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.)
89 # Find who we are. Look in the path if we contain no directory separator.
92 *[\\/]* ) as_myself=$0 ;;
93 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
97 test -z "$as_dir" && as_dir=.
98 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
104 # We did not find ourselves, most probably we were run as `sh COMMAND'
105 # in which case we are not to be found in the path.
106 if test "x$as_myself" = x; then
109 if test ! -f "$as_myself"; then
110 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
114 # Unset variables that we do not need and which cause bugs (e.g. in
115 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
116 # suppresses any "Segmentation fault" message there. '((' could
117 # trigger a bug in pdksh 5.2.14.
118 for as_var in BASH_ENV ENV MAIL MAILPATH
119 do eval test x\${$as_var+set} = xset \
120 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
133 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
135 # Use a proper internal environment variable to ensure we don't fall
136 # into an infinite loop, continuously re-executing ourselves.
137 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
138 _as_can_reexec=no; export _as_can_reexec;
139 # We cannot yet assume a decent shell, so we have to provide a
140 # neutralization value for shells without unset; and this also
141 # works around shells that cannot unset nonexistent variables.
142 # Preserve -v and -x to the replacement shell.
145 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
147 *v*x* | *x*v* ) as_opts=-vx ;;
152 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
153 # Admittedly, this is quite paranoid, since all the known shells bail
154 # out after a failed `exec'.
155 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
158 # We don't want this to propagate to other subprocesses.
159 { _as_can_reexec=; unset _as_can_reexec;}
160 if test "x$CONFIG_SHELL" = x; then
161 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
164 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
165 # is contrary to our usage. Disable this feature.
166 alias -g '\${1+\"\$@\"}'='\"\$@\"'
169 case \`(set -o) 2>/dev/null\` in #(
177 as_required="as_fn_return () { (exit \$1); }
178 as_fn_success () { as_fn_return 0; }
179 as_fn_failure () { as_fn_return 1; }
180 as_fn_ret_success () { return 0; }
181 as_fn_ret_failure () { return 1; }
184 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
185 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
186 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
187 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
188 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
191 exitcode=1; echo positional parameters were not saved.
193 test x\$exitcode = x0 || exit 1
195 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
196 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
197 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
198 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
199 test \$(( 1 + 1 )) = 2 || exit 1
201 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
202 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
203 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
204 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
205 PATH=/empty FPATH=/empty; export PATH FPATH
206 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
207 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1"
208 if (eval "$as_required") 2>/dev/null; then :
213 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
216 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
218 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
221 test -z "$as_dir" && as_dir=.
225 for as_base in sh bash ksh sh5; do
226 # Try only shells that exist, to save several forks.
227 as_shell=$as_dir/$as_base
228 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
229 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
230 CONFIG_SHELL=$as_shell as_have_required=yes
231 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
239 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
240 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
241 CONFIG_SHELL=$SHELL as_have_required=yes
246 if test "x$CONFIG_SHELL" != x; then :
248 # We cannot yet assume a decent shell, so we have to provide a
249 # neutralization value for shells without unset; and this also
250 # works around shells that cannot unset nonexistent variables.
251 # Preserve -v and -x to the replacement shell.
254 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
256 *v*x* | *x*v* ) as_opts=-vx ;;
261 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
262 # Admittedly, this is quite paranoid, since all the known shells bail
263 # out after a failed `exec'.
264 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
268 if test x$as_have_required = xno; then :
269 $as_echo "$0: This script requires a shell more modern than all"
270 $as_echo "$0: the shells that I found on your system."
271 if test x${ZSH_VERSION+set} = xset ; then
272 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
273 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
276 $0: including any error possibly output before this
277 $0: message. Then install a modern shell, or manually run
278 $0: the script under such a shell if you do have one."
284 SHELL=${CONFIG_SHELL-/bin/sh}
286 # Unset more variables known to interfere with behavior of common tools.
287 CLICOLOR_FORCE= GREP_OPTIONS=
288 unset CLICOLOR_FORCE GREP_OPTIONS
290 ## --------------------- ##
291 ## M4sh Shell Functions. ##
292 ## --------------------- ##
295 # Portably unset VAR.
298 { eval $1=; unset $1;}
302 # as_fn_set_status STATUS
303 # -----------------------
304 # Set $? to STATUS, without forking.
312 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
322 # Create "$as_dir" as a directory, including parents if necessary.
327 -*) as_dir=./$as_dir;;
329 test -d "$as_dir" || eval $as_mkdir_p || {
333 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
336 as_dirs="'$as_qdir' $as_dirs"
337 as_dir=`$as_dirname -- "$as_dir" ||
338 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
339 X"$as_dir" : 'X\(//\)[^/]' \| \
340 X"$as_dir" : 'X\(//\)$' \| \
341 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
342 $as_echo X"$as_dir" |
343 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
360 test -d "$as_dir" && break
362 test -z "$as_dirs" || eval "mkdir $as_dirs"
363 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
368 # as_fn_executable_p FILE
369 # -----------------------
370 # Test if FILE is an executable regular file.
371 as_fn_executable_p ()
373 test -f "$1" && test -x "$1"
374 } # as_fn_executable_p
375 # as_fn_append VAR VALUE
376 # ----------------------
377 # Append the text in VALUE to the end of the definition contained in VAR. Take
378 # advantage of any shell optimizations that allow amortized linear growth over
379 # repeated appends, instead of the typical quadratic growth present in naive
381 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
382 eval 'as_fn_append ()
395 # Perform arithmetic evaluation on the ARGs, and store the result in the
396 # global $as_val. Take advantage of shells that can avoid forks. The arguments
397 # must be portable across $(()) and expr.
398 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
406 as_val=`expr "$@" || test $? -eq 1`
411 # as_fn_error STATUS ERROR [LINENO LOG_FD]
412 # ----------------------------------------
413 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
414 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
415 # script with STATUS, using 1 if that was 0.
418 as_status=$1; test $as_status -eq 0 && as_status=1
420 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
421 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
423 $as_echo "$as_me: error: $2" >&2
424 as_fn_exit $as_status
427 if expr a : '\(a\)' >/dev/null 2>&1 &&
428 test "X`expr 00001 : '.*\(...\)'`" = X001; then
434 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
440 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
446 as_me=`$as_basename -- "$0" ||
447 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
448 X"$0" : 'X\(//\)$' \| \
449 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
451 sed '/^.*\/\([^/][^/]*\)\/*$/{
465 # Avoid depending upon Character Ranges.
466 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
467 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
468 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
469 as_cr_digits='0123456789'
470 as_cr_alnum=$as_cr_Letters$as_cr_digits
473 as_lineno_1=$LINENO as_lineno_1a=$LINENO
474 as_lineno_2=$LINENO as_lineno_2a=$LINENO
475 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
476 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
477 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
489 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
493 chmod +x "$as_me.lineno" ||
494 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
496 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
497 # already done that, so ensure we don't try to do so again and fall
498 # in an infinite loop. This has already happened in practice.
499 _as_can_reexec=no; export _as_can_reexec
500 # Don't try to exec as it changes $[0], causing all sort of problems
501 # (the dirname of $[0] is not the place where we might find the
502 # original and so on. Autoconf is especially sensitive to this).
504 # Exit status is that of the last command.
508 ECHO_C= ECHO_N= ECHO_T=
509 case `echo -n x` in #(((((
511 case `echo 'xy\c'` in
512 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
514 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
521 rm -f conf$$ conf$$.exe conf$$.file
522 if test -d conf$$.dir; then
523 rm -f conf$$.dir/conf$$.file
526 mkdir conf$$.dir 2>/dev/null
528 if (echo >conf$$.file) 2>/dev/null; then
529 if ln -s conf$$.file conf$$ 2>/dev/null; then
531 # ... but there are two gotchas:
532 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
533 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
534 # In both cases, we have to default to `cp -pR'.
535 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
537 elif ln conf$$.file conf$$ 2>/dev/null; then
545 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
546 rmdir conf$$.dir 2>/dev/null
548 if mkdir -p . 2>/dev/null; then
549 as_mkdir_p='mkdir -p "$as_dir"'
551 test -d ./-p && rmdir ./-p
556 as_executable_p=as_fn_executable_p
558 # Sed expression to map a string onto a valid CPP name.
559 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
561 # Sed expression to map a string onto a valid variable name.
562 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
564 SHELL=${CONFIG_SHELL-/bin/sh}
567 test -n "$DJDIR" || exec 7<&0 </dev/null
571 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
572 # so uname gets run too.
573 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
578 ac_default_prefix=/usr/local
580 ac_config_libobj_dir=.
587 # Identity of this package.
595 ac_unique_file="main.c"
596 # Factoring default headers for most tests.
597 ac_includes_default="\
599 #ifdef HAVE_SYS_TYPES_H
600 # include <sys/types.h>
602 #ifdef HAVE_SYS_STAT_H
603 # include <sys/stat.h>
609 # ifdef HAVE_STDLIB_H
614 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
619 #ifdef HAVE_STRINGS_H
620 # include <strings.h>
622 #ifdef HAVE_INTTYPES_H
623 # include <inttypes.h>
632 enable_option_checking=no
634 ac_subst_vars='LTLIBOBJS
651 HAVE_NATIVE_GCORE_HOST
753 READLINE_TEXI_INCFLAG
780 HAVE_NATIVE_GCORE_TARGET
782 ENABLE_BFD_64_BIT_FALSE
783 ENABLE_BFD_64_BIT_TRUE
827 INSTALL_STRIP_PROGRAM
857 MAINTAINER_MODE_FALSE
886 program_transform_name
897 ac_subst_files='nat_makefile_frag'
899 enable_option_checking
900 enable_maintainer_mode
909 with_separate_debug_dir
911 with_relocated_sources
913 with_auto_load_safe_path
945 enable_source_highlight
952 with_system_gdbinit_dir
954 enable_build_warnings
955 enable_gdb_build_warnings
966 with_libbabeltrace_prefix
967 with_libbabeltrace_type
970 with_libxxhash_prefix
974 ac_precious_vars='build_alias
999 ac_subdirs_all='testsuite
1002 # Initialize some variables set by options.
1004 ac_init_version=false
1005 ac_unrecognized_opts=
1006 ac_unrecognized_sep=
1007 # The variables have the same names as the options, with
1008 # dashes changed to underlines.
1009 cache_file=/dev/null
1016 program_transform_name=s,x,x,
1024 # Installation directory options.
1025 # These are left unexpanded so users can "make install exec_prefix=/foo"
1026 # and all the variables that are supposed to be based on exec_prefix
1027 # by default will actually change.
1028 # Use braces instead of parens because sh, perl, etc. also accept them.
1029 # (The list follows the same order as the GNU Coding Standards.)
1030 bindir='${exec_prefix}/bin'
1031 sbindir='${exec_prefix}/sbin'
1032 libexecdir='${exec_prefix}/libexec'
1033 datarootdir='${prefix}/share'
1034 datadir='${datarootdir}'
1035 sysconfdir='${prefix}/etc'
1036 sharedstatedir='${prefix}/com'
1037 localstatedir='${prefix}/var'
1038 includedir='${prefix}/include'
1039 oldincludedir='/usr/include'
1040 docdir='${datarootdir}/doc/${PACKAGE}'
1041 infodir='${datarootdir}/info'
1046 libdir='${exec_prefix}/lib'
1047 localedir='${datarootdir}/locale'
1048 mandir='${datarootdir}/man'
1054 # If the previous option needs an argument, assign it.
1055 if test -n "$ac_prev"; then
1056 eval $ac_prev=\$ac_option
1062 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1067 # Accept the important Cygnus configure options, so we can diagnose typos.
1069 case $ac_dashdash$ac_option in
1073 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1075 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1076 bindir=$ac_optarg ;;
1078 -build | --build | --buil | --bui | --bu)
1079 ac_prev=build_alias ;;
1080 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1081 build_alias=$ac_optarg ;;
1083 -cache-file | --cache-file | --cache-fil | --cache-fi \
1084 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1085 ac_prev=cache_file ;;
1086 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1087 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1088 cache_file=$ac_optarg ;;
1090 --config-cache | -C)
1091 cache_file=config.cache ;;
1093 -datadir | --datadir | --datadi | --datad)
1095 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1096 datadir=$ac_optarg ;;
1098 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1099 | --dataroo | --dataro | --datar)
1100 ac_prev=datarootdir ;;
1101 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1102 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1103 datarootdir=$ac_optarg ;;
1105 -disable-* | --disable-*)
1106 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1107 # Reject names that are not valid shell variable names.
1108 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1109 as_fn_error $? "invalid feature name: $ac_useropt"
1110 ac_useropt_orig=$ac_useropt
1111 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1112 case $ac_user_opts in
1114 "enable_$ac_useropt"
1116 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1117 ac_unrecognized_sep=', ';;
1119 eval enable_$ac_useropt=no ;;
1121 -docdir | --docdir | --docdi | --doc | --do)
1123 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1124 docdir=$ac_optarg ;;
1126 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1128 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1129 dvidir=$ac_optarg ;;
1131 -enable-* | --enable-*)
1132 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1133 # Reject names that are not valid shell variable names.
1134 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1135 as_fn_error $? "invalid feature name: $ac_useropt"
1136 ac_useropt_orig=$ac_useropt
1137 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1138 case $ac_user_opts in
1140 "enable_$ac_useropt"
1142 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1143 ac_unrecognized_sep=', ';;
1145 eval enable_$ac_useropt=\$ac_optarg ;;
1147 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1148 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1149 | --exec | --exe | --ex)
1150 ac_prev=exec_prefix ;;
1151 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1152 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1153 | --exec=* | --exe=* | --ex=*)
1154 exec_prefix=$ac_optarg ;;
1156 -gas | --gas | --ga | --g)
1157 # Obsolete; use --with-gas.
1160 -help | --help | --hel | --he | -h)
1161 ac_init_help=long ;;
1162 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1163 ac_init_help=recursive ;;
1164 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1165 ac_init_help=short ;;
1167 -host | --host | --hos | --ho)
1168 ac_prev=host_alias ;;
1169 -host=* | --host=* | --hos=* | --ho=*)
1170 host_alias=$ac_optarg ;;
1172 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1174 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1176 htmldir=$ac_optarg ;;
1178 -includedir | --includedir | --includedi | --included | --include \
1179 | --includ | --inclu | --incl | --inc)
1180 ac_prev=includedir ;;
1181 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1182 | --includ=* | --inclu=* | --incl=* | --inc=*)
1183 includedir=$ac_optarg ;;
1185 -infodir | --infodir | --infodi | --infod | --info | --inf)
1187 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1188 infodir=$ac_optarg ;;
1190 -libdir | --libdir | --libdi | --libd)
1192 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1193 libdir=$ac_optarg ;;
1195 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1196 | --libexe | --libex | --libe)
1197 ac_prev=libexecdir ;;
1198 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1199 | --libexe=* | --libex=* | --libe=*)
1200 libexecdir=$ac_optarg ;;
1202 -localedir | --localedir | --localedi | --localed | --locale)
1203 ac_prev=localedir ;;
1204 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1205 localedir=$ac_optarg ;;
1207 -localstatedir | --localstatedir | --localstatedi | --localstated \
1208 | --localstate | --localstat | --localsta | --localst | --locals)
1209 ac_prev=localstatedir ;;
1210 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1211 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1212 localstatedir=$ac_optarg ;;
1214 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1216 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1217 mandir=$ac_optarg ;;
1219 -nfp | --nfp | --nf)
1220 # Obsolete; use --without-fp.
1223 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1224 | --no-cr | --no-c | -n)
1227 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1228 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1231 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1232 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1233 | --oldin | --oldi | --old | --ol | --o)
1234 ac_prev=oldincludedir ;;
1235 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1236 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1237 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1238 oldincludedir=$ac_optarg ;;
1240 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1242 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1243 prefix=$ac_optarg ;;
1245 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1246 | --program-pre | --program-pr | --program-p)
1247 ac_prev=program_prefix ;;
1248 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1249 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1250 program_prefix=$ac_optarg ;;
1252 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1253 | --program-suf | --program-su | --program-s)
1254 ac_prev=program_suffix ;;
1255 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1256 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1257 program_suffix=$ac_optarg ;;
1259 -program-transform-name | --program-transform-name \
1260 | --program-transform-nam | --program-transform-na \
1261 | --program-transform-n | --program-transform- \
1262 | --program-transform | --program-transfor \
1263 | --program-transfo | --program-transf \
1264 | --program-trans | --program-tran \
1265 | --progr-tra | --program-tr | --program-t)
1266 ac_prev=program_transform_name ;;
1267 -program-transform-name=* | --program-transform-name=* \
1268 | --program-transform-nam=* | --program-transform-na=* \
1269 | --program-transform-n=* | --program-transform-=* \
1270 | --program-transform=* | --program-transfor=* \
1271 | --program-transfo=* | --program-transf=* \
1272 | --program-trans=* | --program-tran=* \
1273 | --progr-tra=* | --program-tr=* | --program-t=*)
1274 program_transform_name=$ac_optarg ;;
1276 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1278 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1279 pdfdir=$ac_optarg ;;
1281 -psdir | --psdir | --psdi | --psd | --ps)
1283 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1286 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1287 | -silent | --silent | --silen | --sile | --sil)
1290 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1292 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1294 sbindir=$ac_optarg ;;
1296 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1297 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1298 | --sharedst | --shareds | --shared | --share | --shar \
1300 ac_prev=sharedstatedir ;;
1301 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1302 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1303 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1305 sharedstatedir=$ac_optarg ;;
1307 -site | --site | --sit)
1309 -site=* | --site=* | --sit=*)
1312 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1314 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1315 srcdir=$ac_optarg ;;
1317 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1318 | --syscon | --sysco | --sysc | --sys | --sy)
1319 ac_prev=sysconfdir ;;
1320 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1321 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1322 sysconfdir=$ac_optarg ;;
1324 -target | --target | --targe | --targ | --tar | --ta | --t)
1325 ac_prev=target_alias ;;
1326 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1327 target_alias=$ac_optarg ;;
1329 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1332 -version | --version | --versio | --versi | --vers | -V)
1333 ac_init_version=: ;;
1336 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1337 # Reject names that are not valid shell variable names.
1338 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1339 as_fn_error $? "invalid package name: $ac_useropt"
1340 ac_useropt_orig=$ac_useropt
1341 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1342 case $ac_user_opts in
1346 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1347 ac_unrecognized_sep=', ';;
1349 eval with_$ac_useropt=\$ac_optarg ;;
1351 -without-* | --without-*)
1352 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1353 # Reject names that are not valid shell variable names.
1354 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1355 as_fn_error $? "invalid package name: $ac_useropt"
1356 ac_useropt_orig=$ac_useropt
1357 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1358 case $ac_user_opts in
1362 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1363 ac_unrecognized_sep=', ';;
1365 eval with_$ac_useropt=no ;;
1368 # Obsolete; use --with-x.
1371 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1372 | --x-incl | --x-inc | --x-in | --x-i)
1373 ac_prev=x_includes ;;
1374 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1375 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1376 x_includes=$ac_optarg ;;
1378 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1379 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1380 ac_prev=x_libraries ;;
1381 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1382 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1383 x_libraries=$ac_optarg ;;
1385 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1386 Try \`$0 --help' for more information"
1390 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1391 # Reject names that are not valid shell variable names.
1392 case $ac_envvar in #(
1393 '' | [0-9]* | *[!_$as_cr_alnum]* )
1394 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1396 eval $ac_envvar=\$ac_optarg
1397 export $ac_envvar ;;
1400 # FIXME: should be removed in autoconf 3.0.
1401 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1402 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1403 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1404 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1410 if test -n "$ac_prev"; then
1411 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1412 as_fn_error $? "missing argument to $ac_option"
1415 if test -n "$ac_unrecognized_opts"; then
1416 case $enable_option_checking in
1418 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1419 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1423 # Check all directory arguments for consistency.
1424 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1425 datadir sysconfdir sharedstatedir localstatedir includedir \
1426 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1427 libdir localedir mandir
1429 eval ac_val=\$$ac_var
1430 # Remove trailing slashes.
1433 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1434 eval $ac_var=\$ac_val;;
1436 # Be sure to have absolute directory names.
1438 [\\/$]* | ?:[\\/]* ) continue;;
1439 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1441 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1444 # There might be people who depend on the old broken behavior: `$host'
1445 # used to hold the argument of --host etc.
1446 # FIXME: To remove some day.
1449 target=$target_alias
1451 # FIXME: To remove some day.
1452 if test "x$host_alias" != x; then
1453 if test "x$build_alias" = x; then
1454 cross_compiling=maybe
1455 elif test "x$build_alias" != "x$host_alias"; then
1461 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1463 test "$silent" = yes && exec 6>/dev/null
1466 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1467 ac_ls_di=`ls -di .` &&
1468 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1469 as_fn_error $? "working directory cannot be determined"
1470 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1471 as_fn_error $? "pwd does not report name of working directory"
1474 # Find the source files, if location was not specified.
1475 if test -z "$srcdir"; then
1476 ac_srcdir_defaulted=yes
1477 # Try the directory containing this script, then the parent directory.
1478 ac_confdir=`$as_dirname -- "$as_myself" ||
1479 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1480 X"$as_myself" : 'X\(//\)[^/]' \| \
1481 X"$as_myself" : 'X\(//\)$' \| \
1482 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1483 $as_echo X"$as_myself" |
1484 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1502 if test ! -r "$srcdir/$ac_unique_file"; then
1506 ac_srcdir_defaulted=no
1508 if test ! -r "$srcdir/$ac_unique_file"; then
1509 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1510 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1512 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1514 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1516 # When building in place, set srcdir=.
1517 if test "$ac_abs_confdir" = "$ac_pwd"; then
1520 # Remove unnecessary trailing slashes from srcdir.
1521 # Double slashes in file names in object file debugging info
1522 # mess up M-x gdb in Emacs.
1524 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1526 for ac_var in $ac_precious_vars; do
1527 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1528 eval ac_env_${ac_var}_value=\$${ac_var}
1529 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1530 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1534 # Report the --help message.
1536 if test "$ac_init_help" = "long"; then
1537 # Omit some internal or obsolete options to make the list less imposing.
1538 # This message is too long to be a string in the A/UX 3.1 sh.
1540 \`configure' configures this package to adapt to many kinds of systems.
1542 Usage: $0 [OPTION]... [VAR=VALUE]...
1544 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1545 VAR=VALUE. See below for descriptions of some of the useful variables.
1547 Defaults for the options are specified in brackets.
1550 -h, --help display this help and exit
1551 --help=short display options specific to this package
1552 --help=recursive display the short help of all the included packages
1553 -V, --version display version information and exit
1554 -q, --quiet, --silent do not print \`checking ...' messages
1555 --cache-file=FILE cache test results in FILE [disabled]
1556 -C, --config-cache alias for \`--cache-file=config.cache'
1557 -n, --no-create do not create output files
1558 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1560 Installation directories:
1561 --prefix=PREFIX install architecture-independent files in PREFIX
1562 [$ac_default_prefix]
1563 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1566 By default, \`make install' will install all the files in
1567 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1568 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1569 for instance \`--prefix=\$HOME'.
1571 For better control, use the options below.
1573 Fine tuning of the installation directories:
1574 --bindir=DIR user executables [EPREFIX/bin]
1575 --sbindir=DIR system admin executables [EPREFIX/sbin]
1576 --libexecdir=DIR program executables [EPREFIX/libexec]
1577 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1578 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1579 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1580 --libdir=DIR object code libraries [EPREFIX/lib]
1581 --includedir=DIR C header files [PREFIX/include]
1582 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1583 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1584 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1585 --infodir=DIR info documentation [DATAROOTDIR/info]
1586 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1587 --mandir=DIR man documentation [DATAROOTDIR/man]
1588 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1589 --htmldir=DIR html documentation [DOCDIR]
1590 --dvidir=DIR dvi documentation [DOCDIR]
1591 --pdfdir=DIR pdf documentation [DOCDIR]
1592 --psdir=DIR ps documentation [DOCDIR]
1598 --program-prefix=PREFIX prepend PREFIX to installed program names
1599 --program-suffix=SUFFIX append SUFFIX to installed program names
1600 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1603 --x-includes=DIR X include files are in DIR
1604 --x-libraries=DIR X library files are in DIR
1607 --build=BUILD configure for building on BUILD [guessed]
1608 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1609 --target=TARGET configure for building compilers for TARGET [HOST]
1613 if test -n "$ac_init_help"; then
1618 --disable-option-checking ignore unrecognized --enable/--with options
1619 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1620 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1621 --enable-maintainer-mode
1622 enable make rules and dependencies not useful (and
1623 sometimes confusing) to the casual installer
1624 --enable-plugins Enable support for plugins
1625 --disable-largefile omit support for large files
1626 --enable-shared[=PKGS] build shared libraries [default=yes]
1627 --enable-static[=PKGS] build static libraries [default=yes]
1628 --enable-fast-install[=PKGS]
1629 optimize for fast installation [default=yes]
1630 --disable-libtool-lock avoid locking (might break parallel builds)
1631 --enable-targets=TARGETS
1632 alternative target configurations
1633 --enable-64-bit-bfd 64-bit support (on hosts with narrower word sizes)
1634 --disable-gdbmi disable machine-interface (MI)
1635 --enable-tui enable full-screen terminal user interface (TUI)
1636 --enable-gdbtk enable gdbtk graphical user interface (GUI)
1637 --enable-profiling enable profiling of GDB
1638 --enable-codesign=CERT sign gdb with 'codesign -s CERT'
1639 --disable-rpath do not hardcode runtime library paths
1640 --enable-source-highlight
1641 enable source-highlight for source listings
1642 --enable-threading include support for parallel processing of data
1644 --enable-werror treat compile warnings as errors
1645 --enable-build-warnings enable build-time compiler warnings if gcc is used
1646 --enable-gdb-build-warnings
1647 enable GDB specific build-time compiler warnings if
1649 --enable-ubsan enable undefined behavior sanitizer (auto/yes/no)
1650 --enable-sim link gdb with simulator
1651 --enable-libbacktrace use libbacktrace to write a backtrace after a fatal
1653 --enable-libctf Handle .ctf type-info sections [default=yes]
1654 --enable-unit-tests Enable the inclusion of unit tests when compiling
1658 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1659 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1660 --with-pic try to use only PIC/non-PIC objects [default=use
1662 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1663 --with-separate-debug-dir=PATH
1664 look for global separate debug info in this path
1666 --with-gdb-datadir=PATH look for global separate data files in this path
1668 --with-relocated-sources=PATH
1669 automatically relocate this path for source files
1670 --with-auto-load-dir=PATH
1671 directories from which to load auto-loaded scripts
1672 [$debugdir:$datadir/auto-load]
1673 --with-auto-load-safe-path=PATH
1674 directories safe to hold auto-loaded files
1675 [--with-auto-load-dir]
1676 --without-auto-load-safe-path
1677 do not restrict auto-loaded files locations
1678 --with-debuginfod Enable debuginfo lookups with debuginfod
1680 --with-libunwind-ia64 use libunwind frame unwinding for ia64 targets
1681 --with-curses use the curses library instead of the termcap
1683 --with-pkgversion=PKG Use PKG in the version string in place of "GDB"
1684 --with-bugurl=URL Direct users to URL to report a bug
1685 --with-system-zlib use installed libz
1686 --with-zstd support zstd compressed debug sections
1688 --with-gnu-ld assume the C compiler uses GNU ld default=no
1689 --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
1690 --without-libiconv-prefix don't search for libiconv in includedir and libdir
1691 --with-libiconv-type=TYPE type of library to search for (auto/static/shared)
1692 --with-iconv-bin=PATH specify where to find the iconv program
1693 --with-system-readline use installed readline library
1694 --with-jit-reader-dir=PATH
1695 directory to load the JIT readers from
1696 --with-expat include expat support (auto/yes/no)
1697 --with-libexpat-prefix[=DIR] search for libexpat in DIR/include and DIR/lib
1698 --without-libexpat-prefix don't search for libexpat in includedir and libdir
1699 --with-libexpat-type=TYPE type of library to search for (auto/static/shared)
1700 --with-libgmp-prefix[=DIR] search for libgmp in DIR/include and DIR/lib
1701 --without-libgmp-prefix don't search for libgmp in includedir and libdir
1702 --with-libgmp-type=TYPE type of library to search for (auto/static/shared)
1703 --with-mpfr include MPFR support (auto/yes/no)
1704 --with-libmpfr-prefix[=DIR] search for libmpfr in DIR/include and DIR/lib
1705 --without-libmpfr-prefix don't search for libmpfr in includedir and libdir
1706 --with-libmpfr-type=TYPE type of library to search for (auto/static/shared)
1707 --with-python[=PYTHON] include python support
1708 (auto/yes/no/<python-program>)
1709 --with-python-libdir[=DIR]
1710 search for python's libraries in DIR
1711 --with-guile[=GUILE] include guile support
1712 (auto/yes/no/<guile-version>/<pkg-config-program>)
1713 --with-intel-pt include Intel Processor Trace support (auto/yes/no)
1714 --with-libipt-prefix[=DIR] search for libipt in DIR/include and DIR/lib
1715 --without-libipt-prefix don't search for libipt in includedir and libdir
1716 --with-libipt-type=TYPE type of library to search for (auto/static/shared)
1717 --with-sysroot[=DIR] search for usr/lib et al within DIR
1718 --with-system-gdbinit=PATH
1719 automatically load a system-wide gdbinit file
1720 --with-system-gdbinit-dir=PATH
1721 automatically load system-wide gdbinit files from
1723 --with-lzma support lzma compression (auto/yes/no)
1724 --with-liblzma-prefix[=DIR] search for liblzma in DIR/include and DIR/lib
1725 --without-liblzma-prefix don't search for liblzma in includedir and libdir
1726 --with-liblzma-type=TYPE type of library to search for (auto/static/shared)
1727 --with-tcl directory containing tcl configuration (tclConfig.sh)
1728 --with-tk directory containing tk configuration (tkConfig.sh)
1729 --with-x use the X Window System
1730 --with-babeltrace include babeltrace support (auto/yes/no)
1731 --with-libbabeltrace-prefix[=DIR] search for libbabeltrace in DIR/include and DIR/lib
1732 --without-libbabeltrace-prefix don't search for libbabeltrace in includedir and libdir
1733 --with-libbabeltrace-type=TYPE type of library to search for (auto/static/shared)
1734 --with-xxhash use libxxhash for hashing (faster) (auto/yes/no)
1735 --with-libxxhash-prefix[=DIR] search for libxxhash in DIR/include and DIR/lib
1736 --without-libxxhash-prefix don't search for libxxhash in includedir and libdir
1737 --with-libxxhash-type=TYPE type of library to search for (auto/static/shared)
1739 Some influential environment variables:
1740 CC C compiler command
1741 CFLAGS C compiler flags
1742 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1743 nonstandard directory <lib dir>
1744 LIBS libraries to pass to the linker, e.g. -l<library>
1745 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1746 you have headers in a nonstandard directory <include dir>
1747 CXX C++ compiler command
1748 CXXFLAGS C++ compiler flags
1750 CXXCPP C++ preprocessor
1751 MAKEINFO Parent configure detects if it is of sufficient version.
1753 Parameters for MAKEINFO.
1754 PKG_CONFIG path to pkg-config utility
1756 directories to add to pkg-config's search path
1758 path overriding pkg-config's built-in search path
1760 C compiler flags for DEBUGINFOD, overriding pkg-config
1762 linker flags for DEBUGINFOD, overriding pkg-config
1763 YACC The `Yet Another Compiler Compiler' implementation to use.
1764 Defaults to the first program found out of: `bison -y', `byacc',
1766 YFLAGS The list of arguments that will be passed by default to $YACC.
1767 This script will default YFLAGS to the empty string to avoid a
1768 default value of `-d' given by some make applications.
1769 ZSTD_CFLAGS C compiler flags for ZSTD, overriding pkg-config
1770 ZSTD_LIBS linker flags for ZSTD, overriding pkg-config
1771 XMKMF Path to xmkmf, Makefile generator for X Window System
1773 Use these variables to override the choices made by `configure' or to help
1774 it to find libraries and programs with nonstandard names/locations.
1776 Report bugs to the package provider.
1781 if test "$ac_init_help" = "recursive"; then
1782 # If there are subdirs, report their specific --help.
1783 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1784 test -d "$ac_dir" ||
1785 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1790 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1792 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1793 # A ".." for each directory in $ac_dir_suffix.
1794 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1795 case $ac_top_builddir_sub in
1796 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1797 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1800 ac_abs_top_builddir=$ac_pwd
1801 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1802 # for backward compatibility:
1803 ac_top_builddir=$ac_top_build_prefix
1806 .) # We are building in place.
1808 ac_top_srcdir=$ac_top_builddir_sub
1809 ac_abs_top_srcdir=$ac_pwd ;;
1810 [\\/]* | ?:[\\/]* ) # Absolute name.
1811 ac_srcdir=$srcdir$ac_dir_suffix;
1812 ac_top_srcdir=$srcdir
1813 ac_abs_top_srcdir=$srcdir ;;
1815 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1816 ac_top_srcdir=$ac_top_build_prefix$srcdir
1817 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1819 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1821 cd "$ac_dir" || { ac_status=$?; continue; }
1822 # Check for guested configure.
1823 if test -f "$ac_srcdir/configure.gnu"; then
1825 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1826 elif test -f "$ac_srcdir/configure"; then
1828 $SHELL "$ac_srcdir/configure" --help=recursive
1830 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1832 cd "$ac_pwd" || { ac_status=$?; break; }
1836 test -n "$ac_init_help" && exit $ac_status
1837 if $ac_init_version; then
1840 generated by GNU Autoconf 2.69
1842 Copyright (C) 2012 Free Software Foundation, Inc.
1843 This configure script is free software; the Free Software Foundation
1844 gives unlimited permission to copy, distribute and modify it.
1849 ## ------------------------ ##
1850 ## Autoconf initialization. ##
1851 ## ------------------------ ##
1853 # ac_fn_c_try_compile LINENO
1854 # --------------------------
1855 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1856 ac_fn_c_try_compile ()
1858 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1859 rm -f conftest.$ac_objext
1860 if { { ac_try="$ac_compile"
1862 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1863 *) ac_try_echo=$ac_try;;
1865 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1866 $as_echo "$ac_try_echo"; } >&5
1867 (eval "$ac_compile") 2>conftest.err
1869 if test -s conftest.err; then
1870 grep -v '^ *+' conftest.err >conftest.er1
1871 cat conftest.er1 >&5
1872 mv -f conftest.er1 conftest.err
1874 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1875 test $ac_status = 0; } && {
1876 test -z "$ac_c_werror_flag" ||
1877 test ! -s conftest.err
1878 } && test -s conftest.$ac_objext; then :
1881 $as_echo "$as_me: failed program was:" >&5
1882 sed 's/^/| /' conftest.$ac_ext >&5
1886 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1887 as_fn_set_status $ac_retval
1889 } # ac_fn_c_try_compile
1891 # ac_fn_cxx_try_compile LINENO
1892 # ----------------------------
1893 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1894 ac_fn_cxx_try_compile ()
1896 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1897 rm -f conftest.$ac_objext
1898 if { { ac_try="$ac_compile"
1900 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1901 *) ac_try_echo=$ac_try;;
1903 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1904 $as_echo "$ac_try_echo"; } >&5
1905 (eval "$ac_compile") 2>conftest.err
1907 if test -s conftest.err; then
1908 grep -v '^ *+' conftest.err >conftest.er1
1909 cat conftest.er1 >&5
1910 mv -f conftest.er1 conftest.err
1912 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1913 test $ac_status = 0; } && {
1914 test -z "$ac_cxx_werror_flag" ||
1915 test ! -s conftest.err
1916 } && test -s conftest.$ac_objext; then :
1919 $as_echo "$as_me: failed program was:" >&5
1920 sed 's/^/| /' conftest.$ac_ext >&5
1924 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1925 as_fn_set_status $ac_retval
1927 } # ac_fn_cxx_try_compile
1929 # ac_fn_c_try_cpp LINENO
1930 # ----------------------
1931 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1934 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1935 if { { ac_try="$ac_cpp conftest.$ac_ext"
1937 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1938 *) ac_try_echo=$ac_try;;
1940 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1941 $as_echo "$ac_try_echo"; } >&5
1942 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1944 if test -s conftest.err; then
1945 grep -v '^ *+' conftest.err >conftest.er1
1946 cat conftest.er1 >&5
1947 mv -f conftest.er1 conftest.err
1949 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1950 test $ac_status = 0; } > conftest.i && {
1951 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1952 test ! -s conftest.err
1956 $as_echo "$as_me: failed program was:" >&5
1957 sed 's/^/| /' conftest.$ac_ext >&5
1961 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1962 as_fn_set_status $ac_retval
1966 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1967 # -------------------------------------------------------
1968 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1969 # the include files in INCLUDES and setting the cache variable VAR
1971 ac_fn_c_check_header_mongrel ()
1973 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1974 if eval \${$3+:} false; then :
1975 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1976 $as_echo_n "checking for $2... " >&6; }
1977 if eval \${$3+:} false; then :
1978 $as_echo_n "(cached) " >&6
1981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1982 $as_echo "$ac_res" >&6; }
1984 # Is the header compilable?
1985 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1986 $as_echo_n "checking $2 usability... " >&6; }
1987 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1988 /* end confdefs.h. */
1992 if ac_fn_c_try_compile "$LINENO"; then :
1993 ac_header_compiler=yes
1995 ac_header_compiler=no
1997 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1999 $as_echo "$ac_header_compiler" >&6; }
2001 # Is the header present?
2002 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2003 $as_echo_n "checking $2 presence... " >&6; }
2004 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2005 /* end confdefs.h. */
2008 if ac_fn_c_try_cpp "$LINENO"; then :
2009 ac_header_preproc=yes
2011 ac_header_preproc=no
2013 rm -f conftest.err conftest.i conftest.$ac_ext
2014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2015 $as_echo "$ac_header_preproc" >&6; }
2017 # So? What about this header?
2018 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2020 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2021 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2022 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2023 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2026 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2027 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2028 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2029 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2030 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2031 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2032 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2033 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2034 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2035 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2038 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2039 $as_echo_n "checking for $2... " >&6; }
2040 if eval \${$3+:} false; then :
2041 $as_echo_n "(cached) " >&6
2043 eval "$3=\$ac_header_compiler"
2046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2047 $as_echo "$ac_res" >&6; }
2049 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2051 } # ac_fn_c_check_header_mongrel
2053 # ac_fn_c_try_run LINENO
2054 # ----------------------
2055 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2056 # that executables *can* be run.
2059 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2060 if { { ac_try="$ac_link"
2062 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2063 *) ac_try_echo=$ac_try;;
2065 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2066 $as_echo "$ac_try_echo"; } >&5
2067 (eval "$ac_link") 2>&5
2069 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2070 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2071 { { case "(($ac_try" in
2072 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2073 *) ac_try_echo=$ac_try;;
2075 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2076 $as_echo "$ac_try_echo"; } >&5
2077 (eval "$ac_try") 2>&5
2079 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2080 test $ac_status = 0; }; }; then :
2083 $as_echo "$as_me: program exited with status $ac_status" >&5
2084 $as_echo "$as_me: failed program was:" >&5
2085 sed 's/^/| /' conftest.$ac_ext >&5
2087 ac_retval=$ac_status
2089 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2090 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2091 as_fn_set_status $ac_retval
2095 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2096 # -------------------------------------------------------
2097 # Tests whether HEADER exists and can be compiled using the include files in
2098 # INCLUDES, setting the cache variable VAR accordingly.
2099 ac_fn_c_check_header_compile ()
2101 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2102 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2103 $as_echo_n "checking for $2... " >&6; }
2104 if eval \${$3+:} false; then :
2105 $as_echo_n "(cached) " >&6
2107 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2108 /* end confdefs.h. */
2112 if ac_fn_c_try_compile "$LINENO"; then :
2117 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2121 $as_echo "$ac_res" >&6; }
2122 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2124 } # ac_fn_c_check_header_compile
2126 # ac_fn_c_try_link LINENO
2127 # -----------------------
2128 # Try to link conftest.$ac_ext, and return whether this succeeded.
2131 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2132 rm -f conftest.$ac_objext conftest$ac_exeext
2133 if { { ac_try="$ac_link"
2135 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2136 *) ac_try_echo=$ac_try;;
2138 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2139 $as_echo "$ac_try_echo"; } >&5
2140 (eval "$ac_link") 2>conftest.err
2142 if test -s conftest.err; then
2143 grep -v '^ *+' conftest.err >conftest.er1
2144 cat conftest.er1 >&5
2145 mv -f conftest.er1 conftest.err
2147 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2148 test $ac_status = 0; } && {
2149 test -z "$ac_c_werror_flag" ||
2150 test ! -s conftest.err
2151 } && test -s conftest$ac_exeext && {
2152 test "$cross_compiling" = yes ||
2153 test -x conftest$ac_exeext
2157 $as_echo "$as_me: failed program was:" >&5
2158 sed 's/^/| /' conftest.$ac_ext >&5
2162 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2163 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2164 # interfere with the next link command; also delete a directory that is
2165 # left behind by Apple's compiler. We do this before executing the actions.
2166 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2167 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2168 as_fn_set_status $ac_retval
2170 } # ac_fn_c_try_link
2172 # ac_fn_c_check_func LINENO FUNC VAR
2173 # ----------------------------------
2174 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2175 ac_fn_c_check_func ()
2177 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2178 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2179 $as_echo_n "checking for $2... " >&6; }
2180 if eval \${$3+:} false; then :
2181 $as_echo_n "(cached) " >&6
2183 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2184 /* end confdefs.h. */
2185 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2186 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2187 #define $2 innocuous_$2
2189 /* System header to define __stub macros and hopefully few prototypes,
2190 which can conflict with char $2 (); below.
2191 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2192 <limits.h> exists even on freestanding compilers. */
2195 # include <limits.h>
2197 # include <assert.h>
2202 /* Override any GCC internal prototype to avoid an error.
2203 Use char because int might match the return type of a GCC
2204 builtin and then its argument prototype would still apply. */
2209 /* The GNU C library defines this for functions which it implements
2210 to always fail with ENOSYS. Some functions are actually named
2211 something starting with __ and the normal name is an alias. */
2212 #if defined __stub_$2 || defined __stub___$2
2224 if ac_fn_c_try_link "$LINENO"; then :
2229 rm -f core conftest.err conftest.$ac_objext \
2230 conftest$ac_exeext conftest.$ac_ext
2233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2234 $as_echo "$ac_res" >&6; }
2235 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2237 } # ac_fn_c_check_func
2239 # ac_fn_cxx_try_cpp LINENO
2240 # ------------------------
2241 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2242 ac_fn_cxx_try_cpp ()
2244 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2245 if { { ac_try="$ac_cpp conftest.$ac_ext"
2247 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2248 *) ac_try_echo=$ac_try;;
2250 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2251 $as_echo "$ac_try_echo"; } >&5
2252 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2254 if test -s conftest.err; then
2255 grep -v '^ *+' conftest.err >conftest.er1
2256 cat conftest.er1 >&5
2257 mv -f conftest.er1 conftest.err
2259 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2260 test $ac_status = 0; } > conftest.i && {
2261 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
2262 test ! -s conftest.err
2266 $as_echo "$as_me: failed program was:" >&5
2267 sed 's/^/| /' conftest.$ac_ext >&5
2271 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2272 as_fn_set_status $ac_retval
2274 } # ac_fn_cxx_try_cpp
2276 # ac_fn_cxx_try_link LINENO
2277 # -------------------------
2278 # Try to link conftest.$ac_ext, and return whether this succeeded.
2279 ac_fn_cxx_try_link ()
2281 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2282 rm -f conftest.$ac_objext conftest$ac_exeext
2283 if { { ac_try="$ac_link"
2285 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2286 *) ac_try_echo=$ac_try;;
2288 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2289 $as_echo "$ac_try_echo"; } >&5
2290 (eval "$ac_link") 2>conftest.err
2292 if test -s conftest.err; then
2293 grep -v '^ *+' conftest.err >conftest.er1
2294 cat conftest.er1 >&5
2295 mv -f conftest.er1 conftest.err
2297 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2298 test $ac_status = 0; } && {
2299 test -z "$ac_cxx_werror_flag" ||
2300 test ! -s conftest.err
2301 } && test -s conftest$ac_exeext && {
2302 test "$cross_compiling" = yes ||
2303 test -x conftest$ac_exeext
2307 $as_echo "$as_me: failed program was:" >&5
2308 sed 's/^/| /' conftest.$ac_ext >&5
2312 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2313 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2314 # interfere with the next link command; also delete a directory that is
2315 # left behind by Apple's compiler. We do this before executing the actions.
2316 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2317 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2318 as_fn_set_status $ac_retval
2320 } # ac_fn_cxx_try_link
2322 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2323 # --------------------------------------------
2324 # Tries to find the compile-time value of EXPR in a program that includes
2325 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2327 ac_fn_c_compute_int ()
2329 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2330 if test "$cross_compiling" = yes; then
2331 # Depending upon the size, compute the lo and hi bounds.
2332 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2333 /* end confdefs.h. */
2338 static int test_array [1 - 2 * !(($2) >= 0)];
2340 return test_array [0];
2346 if ac_fn_c_try_compile "$LINENO"; then :
2349 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2350 /* end confdefs.h. */
2355 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2357 return test_array [0];
2363 if ac_fn_c_try_compile "$LINENO"; then :
2364 ac_hi=$ac_mid; break
2366 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2367 if test $ac_lo -le $ac_mid; then
2371 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2373 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2376 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2377 /* end confdefs.h. */
2382 static int test_array [1 - 2 * !(($2) < 0)];
2384 return test_array [0];
2390 if ac_fn_c_try_compile "$LINENO"; then :
2393 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2394 /* end confdefs.h. */
2399 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2401 return test_array [0];
2407 if ac_fn_c_try_compile "$LINENO"; then :
2408 ac_lo=$ac_mid; break
2410 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2411 if test $ac_mid -le $ac_hi; then
2415 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2417 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2422 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2424 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2425 # Binary search between lo and hi bounds.
2426 while test "x$ac_lo" != "x$ac_hi"; do
2427 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2428 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2429 /* end confdefs.h. */
2434 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2436 return test_array [0];
2442 if ac_fn_c_try_compile "$LINENO"; then :
2445 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2447 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2450 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2454 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2455 /* end confdefs.h. */
2457 static long int longval () { return $2; }
2458 static unsigned long int ulongval () { return $2; }
2465 FILE *f = fopen ("conftest.val", "w");
2470 long int i = longval ();
2473 fprintf (f, "%ld", i);
2477 unsigned long int i = ulongval ();
2480 fprintf (f, "%lu", i);
2482 /* Do not output a trailing newline, as this causes \r\n confusion
2483 on some platforms. */
2484 return ferror (f) || fclose (f) != 0;
2490 if ac_fn_c_try_run "$LINENO"; then :
2491 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2495 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2496 conftest.$ac_objext conftest.beam conftest.$ac_ext
2500 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2501 as_fn_set_status $ac_retval
2503 } # ac_fn_c_compute_int
2505 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2506 # -------------------------------------------
2507 # Tests whether TYPE exists after having included INCLUDES, setting cache
2508 # variable VAR accordingly.
2509 ac_fn_c_check_type ()
2511 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2512 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2513 $as_echo_n "checking for $2... " >&6; }
2514 if eval \${$3+:} false; then :
2515 $as_echo_n "(cached) " >&6
2518 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2519 /* end confdefs.h. */
2530 if ac_fn_c_try_compile "$LINENO"; then :
2531 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2532 /* end confdefs.h. */
2543 if ac_fn_c_try_compile "$LINENO"; then :
2548 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2550 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2554 $as_echo "$ac_res" >&6; }
2555 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2557 } # ac_fn_c_check_type
2559 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
2560 # ---------------------------------------------
2561 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2563 ac_fn_c_check_decl ()
2565 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2566 as_decl_name=`echo $2|sed 's/ *(.*//'`
2567 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2568 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2569 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2570 if eval \${$3+:} false; then :
2571 $as_echo_n "(cached) " >&6
2573 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2574 /* end confdefs.h. */
2579 #ifndef $as_decl_name
2581 (void) $as_decl_use;
2583 (void) $as_decl_name;
2591 if ac_fn_c_try_compile "$LINENO"; then :
2596 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2600 $as_echo "$ac_res" >&6; }
2601 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2603 } # ac_fn_c_check_decl
2605 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2606 # ----------------------------------------------------
2607 # Tries to find if the field MEMBER exists in type AGGR, after including
2608 # INCLUDES, setting cache variable VAR accordingly.
2609 ac_fn_c_check_member ()
2611 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2612 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2613 $as_echo_n "checking for $2.$3... " >&6; }
2614 if eval \${$4+:} false; then :
2615 $as_echo_n "(cached) " >&6
2617 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2618 /* end confdefs.h. */
2630 if ac_fn_c_try_compile "$LINENO"; then :
2633 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2634 /* end confdefs.h. */
2640 if (sizeof ac_aggr.$3)
2646 if ac_fn_c_try_compile "$LINENO"; then :
2651 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2653 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2657 $as_echo "$ac_res" >&6; }
2658 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2660 } # ac_fn_c_check_member
2662 # ac_fn_cxx_check_func LINENO FUNC VAR
2663 # ------------------------------------
2664 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2665 ac_fn_cxx_check_func ()
2667 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2668 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2669 $as_echo_n "checking for $2... " >&6; }
2670 if eval \${$3+:} false; then :
2671 $as_echo_n "(cached) " >&6
2673 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2674 /* end confdefs.h. */
2675 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2676 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2677 #define $2 innocuous_$2
2679 /* System header to define __stub macros and hopefully few prototypes,
2680 which can conflict with char $2 (); below.
2681 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2682 <limits.h> exists even on freestanding compilers. */
2685 # include <limits.h>
2687 # include <assert.h>
2692 /* Override any GCC internal prototype to avoid an error.
2693 Use char because int might match the return type of a GCC
2694 builtin and then its argument prototype would still apply. */
2699 /* The GNU C library defines this for functions which it implements
2700 to always fail with ENOSYS. Some functions are actually named
2701 something starting with __ and the normal name is an alias. */
2702 #if defined __stub_$2 || defined __stub___$2
2714 if ac_fn_cxx_try_link "$LINENO"; then :
2719 rm -f core conftest.err conftest.$ac_objext \
2720 conftest$ac_exeext conftest.$ac_ext
2723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2724 $as_echo "$ac_res" >&6; }
2725 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2727 } # ac_fn_cxx_check_func
2728 cat >config.log <<_ACEOF
2729 This file contains any messages produced by compilers while
2730 running configure, to aid debugging if configure makes a mistake.
2732 It was created by $as_me, which was
2733 generated by GNU Autoconf 2.69. Invocation command line was
2745 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2746 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2747 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2748 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2749 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2751 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2752 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2754 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2755 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2756 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2757 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2758 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2759 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2760 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2764 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2768 test -z "$as_dir" && as_dir=.
2769 $as_echo "PATH: $as_dir"
2785 # Keep a trace of the command line.
2786 # Strip out --no-create and --no-recursion so they do not pile up.
2787 # Strip out --silent because we don't want to record it for future runs.
2788 # Also quote any args containing shell meta-characters.
2789 # Make two passes to allow for proper duplicate-argument suppression.
2793 ac_must_keep_next=false
2799 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2800 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2801 | -silent | --silent | --silen | --sile | --sil)
2804 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2807 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2809 as_fn_append ac_configure_args1 " '$ac_arg'"
2810 if test $ac_must_keep_next = true; then
2811 ac_must_keep_next=false # Got value, back to normal.
2814 *=* | --config-cache | -C | -disable-* | --disable-* \
2815 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2816 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2817 | -with-* | --with-* | -without-* | --without-* | --x)
2818 case "$ac_configure_args0 " in
2819 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2822 -* ) ac_must_keep_next=true ;;
2825 as_fn_append ac_configure_args " '$ac_arg'"
2830 { ac_configure_args0=; unset ac_configure_args0;}
2831 { ac_configure_args1=; unset ac_configure_args1;}
2833 # When interrupted or exit'd, cleanup temporary files, and complete
2834 # config.log. We remove comments because anyway the quotes in there
2835 # would cause problems or look ugly.
2836 # WARNING: Use '\'' to represent an apostrophe within the trap.
2837 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2838 trap 'exit_status=$?
2839 # Save into config.log some information that might help in debugging.
2843 $as_echo "## ---------------- ##
2844 ## Cache variables. ##
2845 ## ---------------- ##"
2847 # The following way of writing the cache mishandles newlines in values,
2849 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2850 eval ac_val=\$$ac_var
2854 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2855 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2858 _ | IFS | as_nl) ;; #(
2859 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2860 *) { eval $ac_var=; unset $ac_var;} ;;
2865 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2866 *${as_nl}ac_space=\ *)
2868 "s/'\''/'\''\\\\'\'''\''/g;
2869 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2872 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2879 $as_echo "## ----------------- ##
2880 ## Output variables. ##
2881 ## ----------------- ##"
2883 for ac_var in $ac_subst_vars
2885 eval ac_val=\$$ac_var
2887 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2889 $as_echo "$ac_var='\''$ac_val'\''"
2893 if test -n "$ac_subst_files"; then
2894 $as_echo "## ------------------- ##
2895 ## File substitutions. ##
2896 ## ------------------- ##"
2898 for ac_var in $ac_subst_files
2900 eval ac_val=\$$ac_var
2902 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2904 $as_echo "$ac_var='\''$ac_val'\''"
2909 if test -s confdefs.h; then
2910 $as_echo "## ----------- ##
2917 test "$ac_signal" != 0 &&
2918 $as_echo "$as_me: caught signal $ac_signal"
2919 $as_echo "$as_me: exit $exit_status"
2921 rm -f core *.core core.conftest.* &&
2922 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2925 for ac_signal in 1 2 13 15; do
2926 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2930 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2931 rm -f -r conftest* confdefs.h
2933 $as_echo "/* confdefs.h */" > confdefs.h
2935 # Predefined preprocessor variables.
2937 cat >>confdefs.h <<_ACEOF
2938 #define PACKAGE_NAME "$PACKAGE_NAME"
2941 cat >>confdefs.h <<_ACEOF
2942 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2945 cat >>confdefs.h <<_ACEOF
2946 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2949 cat >>confdefs.h <<_ACEOF
2950 #define PACKAGE_STRING "$PACKAGE_STRING"
2953 cat >>confdefs.h <<_ACEOF
2954 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2957 cat >>confdefs.h <<_ACEOF
2958 #define PACKAGE_URL "$PACKAGE_URL"
2962 # Let the site file select an alternate cache file if it wants to.
2963 # Prefer an explicitly selected file to automatically selected ones.
2966 if test -n "$CONFIG_SITE"; then
2967 # We do not want a PATH search for config.site.
2968 case $CONFIG_SITE in #((
2969 -*) ac_site_file1=./$CONFIG_SITE;;
2970 */*) ac_site_file1=$CONFIG_SITE;;
2971 *) ac_site_file1=./$CONFIG_SITE;;
2973 elif test "x$prefix" != xNONE; then
2974 ac_site_file1=$prefix/share/config.site
2975 ac_site_file2=$prefix/etc/config.site
2977 ac_site_file1=$ac_default_prefix/share/config.site
2978 ac_site_file2=$ac_default_prefix/etc/config.site
2980 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2982 test "x$ac_site_file" = xNONE && continue
2983 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2984 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2985 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2986 sed 's/^/| /' "$ac_site_file" >&5
2988 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2989 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2990 as_fn_error $? "failed to load site script $ac_site_file
2991 See \`config.log' for more details" "$LINENO" 5; }
2995 if test -r "$cache_file"; then
2996 # Some versions of bash will fail to source /dev/null (special files
2997 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2998 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2999 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
3000 $as_echo "$as_me: loading cache $cache_file" >&6;}
3002 [\\/]* | ?:[\\/]* ) . "$cache_file";;
3003 *) . "./$cache_file";;
3007 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
3008 $as_echo "$as_me: creating cache $cache_file" >&6;}
3012 as_fn_append ac_header_list " stdlib.h"
3013 as_fn_append ac_header_list " unistd.h"
3014 as_fn_append ac_header_list " sys/param.h"
3015 # Check that the precious variables saved in the cache have kept the same
3017 ac_cache_corrupted=false
3018 for ac_var in $ac_precious_vars; do
3019 eval ac_old_set=\$ac_cv_env_${ac_var}_set
3020 eval ac_new_set=\$ac_env_${ac_var}_set
3021 eval ac_old_val=\$ac_cv_env_${ac_var}_value
3022 eval ac_new_val=\$ac_env_${ac_var}_value
3023 case $ac_old_set,$ac_new_set in
3025 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
3026 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
3027 ac_cache_corrupted=: ;;
3029 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
3030 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
3031 ac_cache_corrupted=: ;;
3034 if test "x$ac_old_val" != "x$ac_new_val"; then
3035 # differences in whitespace do not lead to failure.
3036 ac_old_val_w=`echo x $ac_old_val`
3037 ac_new_val_w=`echo x $ac_new_val`
3038 if test "$ac_old_val_w" != "$ac_new_val_w"; then
3039 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
3040 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
3041 ac_cache_corrupted=:
3043 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
3044 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
3045 eval $ac_var=\$ac_old_val
3047 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
3048 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
3049 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
3050 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
3053 # Pass precious variables to config.status.
3054 if test "$ac_new_set" = set; then
3056 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
3057 *) ac_arg=$ac_var=$ac_new_val ;;
3059 case " $ac_configure_args " in
3060 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
3061 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
3065 if $ac_cache_corrupted; then
3066 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3067 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3068 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
3069 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
3070 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
3072 ## -------------------- ##
3073 ## Main body of script. ##
3074 ## -------------------- ##
3077 ac_cpp='$CPP $CPPFLAGS'
3078 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3079 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3080 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3088 ac_config_headers="$ac_config_headers config.h:config.in"
3091 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
3092 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
3093 # Check whether --enable-maintainer-mode was given.
3094 if test "${enable_maintainer_mode+set}" = set; then :
3095 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
3097 USE_MAINTAINER_MODE=no
3100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
3101 $as_echo "$USE_MAINTAINER_MODE" >&6; }
3102 if test $USE_MAINTAINER_MODE = yes; then
3103 MAINTAINER_MODE_TRUE=
3104 MAINTAINER_MODE_FALSE='#'
3106 MAINTAINER_MODE_TRUE='#'
3107 MAINTAINER_MODE_FALSE=
3110 MAINT=$MAINTAINER_MODE_TRUE
3115 ac_cpp='$CPP $CPPFLAGS'
3116 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3117 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3118 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3119 if test -n "$ac_tool_prefix"; then
3120 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3121 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3122 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3123 $as_echo_n "checking for $ac_word... " >&6; }
3124 if ${ac_cv_prog_CC+:} false; then :
3125 $as_echo_n "(cached) " >&6
3127 if test -n "$CC"; then
3128 ac_cv_prog_CC="$CC" # Let the user override the test.
3130 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3134 test -z "$as_dir" && as_dir=.
3135 for ac_exec_ext in '' $ac_executable_extensions; do
3136 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3137 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3138 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3148 if test -n "$CC"; then
3149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3150 $as_echo "$CC" >&6; }
3152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3153 $as_echo "no" >&6; }
3158 if test -z "$ac_cv_prog_CC"; then
3160 # Extract the first word of "gcc", so it can be a program name with args.
3161 set dummy gcc; ac_word=$2
3162 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3163 $as_echo_n "checking for $ac_word... " >&6; }
3164 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3165 $as_echo_n "(cached) " >&6
3167 if test -n "$ac_ct_CC"; then
3168 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3170 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3174 test -z "$as_dir" && as_dir=.
3175 for ac_exec_ext in '' $ac_executable_extensions; do
3176 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3177 ac_cv_prog_ac_ct_CC="gcc"
3178 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3187 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3188 if test -n "$ac_ct_CC"; then
3189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3190 $as_echo "$ac_ct_CC" >&6; }
3192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3193 $as_echo "no" >&6; }
3196 if test "x$ac_ct_CC" = x; then
3199 case $cross_compiling:$ac_tool_warned in
3201 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3202 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3203 ac_tool_warned=yes ;;
3211 if test -z "$CC"; then
3212 if test -n "$ac_tool_prefix"; then
3213 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3214 set dummy ${ac_tool_prefix}cc; ac_word=$2
3215 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3216 $as_echo_n "checking for $ac_word... " >&6; }
3217 if ${ac_cv_prog_CC+:} false; then :
3218 $as_echo_n "(cached) " >&6
3220 if test -n "$CC"; then
3221 ac_cv_prog_CC="$CC" # Let the user override the test.
3223 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3227 test -z "$as_dir" && as_dir=.
3228 for ac_exec_ext in '' $ac_executable_extensions; do
3229 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3230 ac_cv_prog_CC="${ac_tool_prefix}cc"
3231 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3241 if test -n "$CC"; then
3242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3243 $as_echo "$CC" >&6; }
3245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3246 $as_echo "no" >&6; }
3252 if test -z "$CC"; then
3253 # Extract the first word of "cc", so it can be a program name with args.
3254 set dummy cc; ac_word=$2
3255 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3256 $as_echo_n "checking for $ac_word... " >&6; }
3257 if ${ac_cv_prog_CC+:} false; then :
3258 $as_echo_n "(cached) " >&6
3260 if test -n "$CC"; then
3261 ac_cv_prog_CC="$CC" # Let the user override the test.
3264 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3268 test -z "$as_dir" && as_dir=.
3269 for ac_exec_ext in '' $ac_executable_extensions; do
3270 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3271 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3272 ac_prog_rejected=yes
3276 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3283 if test $ac_prog_rejected = yes; then
3284 # We found a bogon in the path, so make sure we never use it.
3285 set dummy $ac_cv_prog_CC
3287 if test $# != 0; then
3288 # We chose a different compiler from the bogus one.
3289 # However, it has the same basename, so the bogon will be chosen
3290 # first if we set CC to just the basename; use the full file name.
3292 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3298 if test -n "$CC"; then
3299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3300 $as_echo "$CC" >&6; }
3302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3303 $as_echo "no" >&6; }
3308 if test -z "$CC"; then
3309 if test -n "$ac_tool_prefix"; then
3310 for ac_prog in cl.exe
3312 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3313 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3314 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3315 $as_echo_n "checking for $ac_word... " >&6; }
3316 if ${ac_cv_prog_CC+:} false; then :
3317 $as_echo_n "(cached) " >&6
3319 if test -n "$CC"; then
3320 ac_cv_prog_CC="$CC" # Let the user override the test.
3322 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3326 test -z "$as_dir" && as_dir=.
3327 for ac_exec_ext in '' $ac_executable_extensions; do
3328 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3329 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3330 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3340 if test -n "$CC"; then
3341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3342 $as_echo "$CC" >&6; }
3344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3345 $as_echo "no" >&6; }
3349 test -n "$CC" && break
3352 if test -z "$CC"; then
3354 for ac_prog in cl.exe
3356 # Extract the first word of "$ac_prog", so it can be a program name with args.
3357 set dummy $ac_prog; ac_word=$2
3358 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3359 $as_echo_n "checking for $ac_word... " >&6; }
3360 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3361 $as_echo_n "(cached) " >&6
3363 if test -n "$ac_ct_CC"; then
3364 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3366 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3370 test -z "$as_dir" && as_dir=.
3371 for ac_exec_ext in '' $ac_executable_extensions; do
3372 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3373 ac_cv_prog_ac_ct_CC="$ac_prog"
3374 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3383 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3384 if test -n "$ac_ct_CC"; then
3385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3386 $as_echo "$ac_ct_CC" >&6; }
3388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3389 $as_echo "no" >&6; }
3393 test -n "$ac_ct_CC" && break
3396 if test "x$ac_ct_CC" = x; then
3399 case $cross_compiling:$ac_tool_warned in
3401 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3402 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3403 ac_tool_warned=yes ;;
3412 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3413 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3414 as_fn_error $? "no acceptable C compiler found in \$PATH
3415 See \`config.log' for more details" "$LINENO" 5; }
3417 # Provide some information about the compiler.
3418 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3421 for ac_option in --version -v -V -qversion; do
3422 { { ac_try="$ac_compiler $ac_option >&5"
3424 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3425 *) ac_try_echo=$ac_try;;
3427 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3428 $as_echo "$ac_try_echo"; } >&5
3429 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3431 if test -s conftest.err; then
3433 ... rest of stderr output deleted ...
3434 10q' conftest.err >conftest.er1
3435 cat conftest.er1 >&5
3437 rm -f conftest.er1 conftest.err
3438 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3439 test $ac_status = 0; }
3442 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3443 /* end confdefs.h. */
3453 ac_clean_files_save=$ac_clean_files
3454 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3455 # Try to create an executable without -o first, disregard a.out.
3456 # It will help us diagnose broken compilers, and finding out an intuition
3458 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3459 $as_echo_n "checking whether the C compiler works... " >&6; }
3460 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3462 # The possible output files:
3463 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3466 for ac_file in $ac_files
3469 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3470 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3475 if { { ac_try="$ac_link_default"
3477 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3478 *) ac_try_echo=$ac_try;;
3480 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3481 $as_echo "$ac_try_echo"; } >&5
3482 (eval "$ac_link_default") 2>&5
3484 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3485 test $ac_status = 0; }; then :
3486 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3487 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3488 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3489 # so that the user can short-circuit this test for compilers unknown to
3491 for ac_file in $ac_files ''
3493 test -f "$ac_file" || continue
3495 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3498 # We found the default executable, but exeext='' is most
3502 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3504 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3506 # We set ac_cv_exeext here because the later test for it is not
3507 # safe: cross compilers may not add the suffix if given an `-o'
3508 # argument, so we may need to know it at that point already.
3509 # Even if this section looks crufty: it has the advantage of
3516 test "$ac_cv_exeext" = no && ac_cv_exeext=
3521 if test -z "$ac_file"; then :
3522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3523 $as_echo "no" >&6; }
3524 $as_echo "$as_me: failed program was:" >&5
3525 sed 's/^/| /' conftest.$ac_ext >&5
3527 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3528 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3529 as_fn_error 77 "C compiler cannot create executables
3530 See \`config.log' for more details" "$LINENO" 5; }
3532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3533 $as_echo "yes" >&6; }
3535 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3536 $as_echo_n "checking for C compiler default output file name... " >&6; }
3537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3538 $as_echo "$ac_file" >&6; }
3539 ac_exeext=$ac_cv_exeext
3541 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3542 ac_clean_files=$ac_clean_files_save
3543 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3544 $as_echo_n "checking for suffix of executables... " >&6; }
3545 if { { ac_try="$ac_link"
3547 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3548 *) ac_try_echo=$ac_try;;
3550 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3551 $as_echo "$ac_try_echo"; } >&5
3552 (eval "$ac_link") 2>&5
3554 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3555 test $ac_status = 0; }; then :
3556 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3557 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3558 # work properly (i.e., refer to `conftest.exe'), while it won't with
3560 for ac_file in conftest.exe conftest conftest.*; do
3561 test -f "$ac_file" || continue
3563 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3564 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3570 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3571 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3572 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3573 See \`config.log' for more details" "$LINENO" 5; }
3575 rm -f conftest conftest$ac_cv_exeext
3576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3577 $as_echo "$ac_cv_exeext" >&6; }
3579 rm -f conftest.$ac_ext
3580 EXEEXT=$ac_cv_exeext
3582 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3583 /* end confdefs.h. */
3588 FILE *f = fopen ("conftest.out", "w");
3589 return ferror (f) || fclose (f) != 0;
3595 ac_clean_files="$ac_clean_files conftest.out"
3596 # Check that the compiler produces executables we can run. If not, either
3597 # the compiler is broken, or we cross compile.
3598 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3599 $as_echo_n "checking whether we are cross compiling... " >&6; }
3600 if test "$cross_compiling" != yes; then
3601 { { ac_try="$ac_link"
3603 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3604 *) ac_try_echo=$ac_try;;
3606 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3607 $as_echo "$ac_try_echo"; } >&5
3608 (eval "$ac_link") 2>&5
3610 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3611 test $ac_status = 0; }
3612 if { ac_try='./conftest$ac_cv_exeext'
3613 { { case "(($ac_try" in
3614 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3615 *) ac_try_echo=$ac_try;;
3617 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3618 $as_echo "$ac_try_echo"; } >&5
3619 (eval "$ac_try") 2>&5
3621 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3622 test $ac_status = 0; }; }; then
3625 if test "$cross_compiling" = maybe; then
3628 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3629 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3630 as_fn_error $? "cannot run C compiled programs.
3631 If you meant to cross compile, use \`--host'.
3632 See \`config.log' for more details" "$LINENO" 5; }
3636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3637 $as_echo "$cross_compiling" >&6; }
3639 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3640 ac_clean_files=$ac_clean_files_save
3641 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3642 $as_echo_n "checking for suffix of object files... " >&6; }
3643 if ${ac_cv_objext+:} false; then :
3644 $as_echo_n "(cached) " >&6
3646 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3647 /* end confdefs.h. */
3657 rm -f conftest.o conftest.obj
3658 if { { ac_try="$ac_compile"
3660 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3661 *) ac_try_echo=$ac_try;;
3663 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3664 $as_echo "$ac_try_echo"; } >&5
3665 (eval "$ac_compile") 2>&5
3667 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3668 test $ac_status = 0; }; then :
3669 for ac_file in conftest.o conftest.obj conftest.*; do
3670 test -f "$ac_file" || continue;
3672 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3673 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3678 $as_echo "$as_me: failed program was:" >&5
3679 sed 's/^/| /' conftest.$ac_ext >&5
3681 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3682 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3683 as_fn_error $? "cannot compute suffix of object files: cannot compile
3684 See \`config.log' for more details" "$LINENO" 5; }
3686 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3689 $as_echo "$ac_cv_objext" >&6; }
3690 OBJEXT=$ac_cv_objext
3692 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3693 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3694 if ${ac_cv_c_compiler_gnu+:} false; then :
3695 $as_echo_n "(cached) " >&6
3697 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3698 /* end confdefs.h. */
3711 if ac_fn_c_try_compile "$LINENO"; then :
3716 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3717 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3721 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3722 if test $ac_compiler_gnu = yes; then
3727 ac_test_CFLAGS=${CFLAGS+set}
3728 ac_save_CFLAGS=$CFLAGS
3729 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3730 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3731 if ${ac_cv_prog_cc_g+:} false; then :
3732 $as_echo_n "(cached) " >&6
3734 ac_save_c_werror_flag=$ac_c_werror_flag
3735 ac_c_werror_flag=yes
3738 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3739 /* end confdefs.h. */
3749 if ac_fn_c_try_compile "$LINENO"; then :
3753 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3754 /* end confdefs.h. */
3764 if ac_fn_c_try_compile "$LINENO"; then :
3767 ac_c_werror_flag=$ac_save_c_werror_flag
3769 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3770 /* end confdefs.h. */
3780 if ac_fn_c_try_compile "$LINENO"; then :
3783 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3785 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3787 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3788 ac_c_werror_flag=$ac_save_c_werror_flag
3790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3791 $as_echo "$ac_cv_prog_cc_g" >&6; }
3792 if test "$ac_test_CFLAGS" = set; then
3793 CFLAGS=$ac_save_CFLAGS
3794 elif test $ac_cv_prog_cc_g = yes; then
3795 if test "$GCC" = yes; then
3801 if test "$GCC" = yes; then
3807 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3808 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3809 if ${ac_cv_prog_cc_c89+:} false; then :
3810 $as_echo_n "(cached) " >&6
3812 ac_cv_prog_cc_c89=no
3814 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3815 /* end confdefs.h. */
3819 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3820 struct buf { int x; };
3821 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3822 static char *e (p, i)
3828 static char *f (char * (*g) (char **, int), char **p, ...)
3833 s = g (p, va_arg (v,int));
3838 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3839 function prototypes and stuff, but not '\xHH' hex character constants.
3840 These don't provoke an error unfortunately, instead are silently treated
3841 as 'x'. The following induces an error, until -std is added to get
3842 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3843 array size at least. It's necessary to write '\x00'==0 to get something
3844 that's true only with -std. */
3845 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3847 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3848 inside strings and character constants. */
3850 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3852 int test (int i, double x);
3853 struct s1 {int (*f) (int a);};
3854 struct s2 {int (*f) (double a);};
3855 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3861 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3866 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3867 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3869 CC="$ac_save_CC $ac_arg"
3870 if ac_fn_c_try_compile "$LINENO"; then :
3871 ac_cv_prog_cc_c89=$ac_arg
3873 rm -f core conftest.err conftest.$ac_objext
3874 test "x$ac_cv_prog_cc_c89" != "xno" && break
3876 rm -f conftest.$ac_ext
3881 case "x$ac_cv_prog_cc_c89" in
3883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3884 $as_echo "none needed" >&6; } ;;
3886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3887 $as_echo "unsupported" >&6; } ;;
3889 CC="$CC $ac_cv_prog_cc_c89"
3890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3891 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3893 if test "x$ac_cv_prog_cc_c89" != xno; then :
3898 ac_cpp='$CPP $CPPFLAGS'
3899 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3900 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3901 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3904 ac_cpp='$CXXCPP $CPPFLAGS'
3905 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3906 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3907 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3908 if test -z "$CXX"; then
3909 if test -n "$CCC"; then
3912 if test -n "$ac_tool_prefix"; then
3913 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3915 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3916 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3917 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3918 $as_echo_n "checking for $ac_word... " >&6; }
3919 if ${ac_cv_prog_CXX+:} false; then :
3920 $as_echo_n "(cached) " >&6
3922 if test -n "$CXX"; then
3923 ac_cv_prog_CXX="$CXX" # Let the user override the test.
3925 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3929 test -z "$as_dir" && as_dir=.
3930 for ac_exec_ext in '' $ac_executable_extensions; do
3931 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3932 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3933 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3943 if test -n "$CXX"; then
3944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
3945 $as_echo "$CXX" >&6; }
3947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3948 $as_echo "no" >&6; }
3952 test -n "$CXX" && break
3955 if test -z "$CXX"; then
3957 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3959 # Extract the first word of "$ac_prog", so it can be a program name with args.
3960 set dummy $ac_prog; ac_word=$2
3961 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3962 $as_echo_n "checking for $ac_word... " >&6; }
3963 if ${ac_cv_prog_ac_ct_CXX+:} false; then :
3964 $as_echo_n "(cached) " >&6
3966 if test -n "$ac_ct_CXX"; then
3967 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3969 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3973 test -z "$as_dir" && as_dir=.
3974 for ac_exec_ext in '' $ac_executable_extensions; do
3975 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3976 ac_cv_prog_ac_ct_CXX="$ac_prog"
3977 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3986 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3987 if test -n "$ac_ct_CXX"; then
3988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
3989 $as_echo "$ac_ct_CXX" >&6; }
3991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3992 $as_echo "no" >&6; }
3996 test -n "$ac_ct_CXX" && break
3999 if test "x$ac_ct_CXX" = x; then
4002 case $cross_compiling:$ac_tool_warned in
4004 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4005 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4006 ac_tool_warned=yes ;;
4014 # Provide some information about the compiler.
4015 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
4018 for ac_option in --version -v -V -qversion; do
4019 { { ac_try="$ac_compiler $ac_option >&5"
4021 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4022 *) ac_try_echo=$ac_try;;
4024 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4025 $as_echo "$ac_try_echo"; } >&5
4026 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4028 if test -s conftest.err; then
4030 ... rest of stderr output deleted ...
4031 10q' conftest.err >conftest.er1
4032 cat conftest.er1 >&5
4034 rm -f conftest.er1 conftest.err
4035 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4036 test $ac_status = 0; }
4039 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
4040 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
4041 if ${ac_cv_cxx_compiler_gnu+:} false; then :
4042 $as_echo_n "(cached) " >&6
4044 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4045 /* end confdefs.h. */
4058 if ac_fn_cxx_try_compile "$LINENO"; then :
4063 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4064 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
4068 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
4069 if test $ac_compiler_gnu = yes; then
4074 ac_test_CXXFLAGS=${CXXFLAGS+set}
4075 ac_save_CXXFLAGS=$CXXFLAGS
4076 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
4077 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
4078 if ${ac_cv_prog_cxx_g+:} false; then :
4079 $as_echo_n "(cached) " >&6
4081 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
4082 ac_cxx_werror_flag=yes
4085 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4086 /* end confdefs.h. */
4096 if ac_fn_cxx_try_compile "$LINENO"; then :
4097 ac_cv_prog_cxx_g=yes
4100 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4101 /* end confdefs.h. */
4111 if ac_fn_cxx_try_compile "$LINENO"; then :
4114 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4116 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4117 /* end confdefs.h. */
4127 if ac_fn_cxx_try_compile "$LINENO"; then :
4128 ac_cv_prog_cxx_g=yes
4130 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4132 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4134 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4135 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
4138 $as_echo "$ac_cv_prog_cxx_g" >&6; }
4139 if test "$ac_test_CXXFLAGS" = set; then
4140 CXXFLAGS=$ac_save_CXXFLAGS
4141 elif test $ac_cv_prog_cxx_g = yes; then
4142 if test "$GXX" = yes; then
4148 if test "$GXX" = yes; then
4155 ac_cpp='$CPP $CPPFLAGS'
4156 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4157 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4158 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4163 ac_cpp='$CPP $CPPFLAGS'
4164 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4165 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4166 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4167 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4168 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4169 # On Suns, sometimes $CPP names a directory.
4170 if test -n "$CPP" && test -d "$CPP"; then
4173 if test -z "$CPP"; then
4174 if ${ac_cv_prog_CPP+:} false; then :
4175 $as_echo_n "(cached) " >&6
4177 # Double quotes because CPP needs to be expanded
4178 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4181 for ac_c_preproc_warn_flag in '' yes
4183 # Use a header file that comes with gcc, so configuring glibc
4184 # with a fresh cross-compiler works.
4185 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4186 # <limits.h> exists even on freestanding compilers.
4187 # On the NeXT, cc -E runs the code through the compiler's parser,
4188 # not just through cpp. "Syntax error" is here to catch this case.
4189 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4190 /* end confdefs.h. */
4192 # include <limits.h>
4194 # include <assert.h>
4198 if ac_fn_c_try_cpp "$LINENO"; then :
4201 # Broken: fails on valid input.
4204 rm -f conftest.err conftest.i conftest.$ac_ext
4206 # OK, works on sane cases. Now check whether nonexistent headers
4207 # can be detected and how.
4208 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4209 /* end confdefs.h. */
4210 #include <ac_nonexistent.h>
4212 if ac_fn_c_try_cpp "$LINENO"; then :
4213 # Broken: success on invalid input.
4216 # Passes both tests.
4220 rm -f conftest.err conftest.i conftest.$ac_ext
4223 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4224 rm -f conftest.i conftest.err conftest.$ac_ext
4225 if $ac_preproc_ok; then :
4237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4238 $as_echo "$CPP" >&6; }
4240 for ac_c_preproc_warn_flag in '' yes
4242 # Use a header file that comes with gcc, so configuring glibc
4243 # with a fresh cross-compiler works.
4244 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4245 # <limits.h> exists even on freestanding compilers.
4246 # On the NeXT, cc -E runs the code through the compiler's parser,
4247 # not just through cpp. "Syntax error" is here to catch this case.
4248 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4249 /* end confdefs.h. */
4251 # include <limits.h>
4253 # include <assert.h>
4257 if ac_fn_c_try_cpp "$LINENO"; then :
4260 # Broken: fails on valid input.
4263 rm -f conftest.err conftest.i conftest.$ac_ext
4265 # OK, works on sane cases. Now check whether nonexistent headers
4266 # can be detected and how.
4267 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4268 /* end confdefs.h. */
4269 #include <ac_nonexistent.h>
4271 if ac_fn_c_try_cpp "$LINENO"; then :
4272 # Broken: success on invalid input.
4275 # Passes both tests.
4279 rm -f conftest.err conftest.i conftest.$ac_ext
4282 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4283 rm -f conftest.i conftest.err conftest.$ac_ext
4284 if $ac_preproc_ok; then :
4287 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4288 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4289 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4290 See \`config.log' for more details" "$LINENO" 5; }
4294 ac_cpp='$CPP $CPPFLAGS'
4295 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4296 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4297 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4300 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4301 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4302 if ${ac_cv_path_GREP+:} false; then :
4303 $as_echo_n "(cached) " >&6
4305 if test -z "$GREP"; then
4306 ac_path_GREP_found=false
4307 # Loop through the user's path and test for each of PROGNAME-LIST
4308 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4309 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4312 test -z "$as_dir" && as_dir=.
4313 for ac_prog in grep ggrep; do
4314 for ac_exec_ext in '' $ac_executable_extensions; do
4315 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4316 as_fn_executable_p "$ac_path_GREP" || continue
4317 # Check for GNU ac_path_GREP and select it if it is found.
4318 # Check for GNU $ac_path_GREP
4319 case `"$ac_path_GREP" --version 2>&1` in
4321 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4324 $as_echo_n 0123456789 >"conftest.in"
4327 cat "conftest.in" "conftest.in" >"conftest.tmp"
4328 mv "conftest.tmp" "conftest.in"
4329 cp "conftest.in" "conftest.nl"
4330 $as_echo 'GREP' >> "conftest.nl"
4331 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4332 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4333 as_fn_arith $ac_count + 1 && ac_count=$as_val
4334 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4335 # Best one so far, save it but keep looking for a better one
4336 ac_cv_path_GREP="$ac_path_GREP"
4337 ac_path_GREP_max=$ac_count
4339 # 10*(2^10) chars as input seems more than enough
4340 test $ac_count -gt 10 && break
4342 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4345 $ac_path_GREP_found && break 3
4350 if test -z "$ac_cv_path_GREP"; then
4351 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4354 ac_cv_path_GREP=$GREP
4358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4359 $as_echo "$ac_cv_path_GREP" >&6; }
4360 GREP="$ac_cv_path_GREP"
4363 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4364 $as_echo_n "checking for egrep... " >&6; }
4365 if ${ac_cv_path_EGREP+:} false; then :
4366 $as_echo_n "(cached) " >&6
4368 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4369 then ac_cv_path_EGREP="$GREP -E"
4371 if test -z "$EGREP"; then
4372 ac_path_EGREP_found=false
4373 # Loop through the user's path and test for each of PROGNAME-LIST
4374 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4375 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4378 test -z "$as_dir" && as_dir=.
4379 for ac_prog in egrep; do
4380 for ac_exec_ext in '' $ac_executable_extensions; do
4381 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4382 as_fn_executable_p "$ac_path_EGREP" || continue
4383 # Check for GNU ac_path_EGREP and select it if it is found.
4384 # Check for GNU $ac_path_EGREP
4385 case `"$ac_path_EGREP" --version 2>&1` in
4387 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4390 $as_echo_n 0123456789 >"conftest.in"
4393 cat "conftest.in" "conftest.in" >"conftest.tmp"
4394 mv "conftest.tmp" "conftest.in"
4395 cp "conftest.in" "conftest.nl"
4396 $as_echo 'EGREP' >> "conftest.nl"
4397 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4398 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4399 as_fn_arith $ac_count + 1 && ac_count=$as_val
4400 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4401 # Best one so far, save it but keep looking for a better one
4402 ac_cv_path_EGREP="$ac_path_EGREP"
4403 ac_path_EGREP_max=$ac_count
4405 # 10*(2^10) chars as input seems more than enough
4406 test $ac_count -gt 10 && break
4408 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4411 $ac_path_EGREP_found && break 3
4416 if test -z "$ac_cv_path_EGREP"; then
4417 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4420 ac_cv_path_EGREP=$EGREP
4425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4426 $as_echo "$ac_cv_path_EGREP" >&6; }
4427 EGREP="$ac_cv_path_EGREP"
4430 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4431 $as_echo_n "checking for ANSI C header files... " >&6; }
4432 if ${ac_cv_header_stdc+:} false; then :
4433 $as_echo_n "(cached) " >&6
4435 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4436 /* end confdefs.h. */
4450 if ac_fn_c_try_compile "$LINENO"; then :
4451 ac_cv_header_stdc=yes
4453 ac_cv_header_stdc=no
4455 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4457 if test $ac_cv_header_stdc = yes; then
4458 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4459 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4460 /* end confdefs.h. */
4464 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4465 $EGREP "memchr" >/dev/null 2>&1; then :
4468 ac_cv_header_stdc=no
4474 if test $ac_cv_header_stdc = yes; then
4475 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4476 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4477 /* end confdefs.h. */
4481 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4482 $EGREP "free" >/dev/null 2>&1; then :
4485 ac_cv_header_stdc=no
4491 if test $ac_cv_header_stdc = yes; then
4492 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4493 if test "$cross_compiling" = yes; then :
4496 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4497 /* end confdefs.h. */
4500 #if ((' ' & 0x0FF) == 0x020)
4501 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4502 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4504 # define ISLOWER(c) \
4505 (('a' <= (c) && (c) <= 'i') \
4506 || ('j' <= (c) && (c) <= 'r') \
4507 || ('s' <= (c) && (c) <= 'z'))
4508 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4511 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4516 for (i = 0; i < 256; i++)
4517 if (XOR (islower (i), ISLOWER (i))
4518 || toupper (i) != TOUPPER (i))
4523 if ac_fn_c_try_run "$LINENO"; then :
4526 ac_cv_header_stdc=no
4528 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4529 conftest.$ac_objext conftest.beam conftest.$ac_ext
4534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4535 $as_echo "$ac_cv_header_stdc" >&6; }
4536 if test $ac_cv_header_stdc = yes; then
4538 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
4542 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4543 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4544 inttypes.h stdint.h unistd.h
4546 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4547 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4549 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4550 cat >>confdefs.h <<_ACEOF
4551 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4560 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
4561 if test "x$ac_cv_header_minix_config_h" = xyes; then :
4568 if test "$MINIX" = yes; then
4570 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
4573 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
4576 $as_echo "#define _MINIX 1" >>confdefs.h
4581 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
4582 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
4583 if ${ac_cv_safe_to_define___extensions__+:} false; then :
4584 $as_echo_n "(cached) " >&6
4586 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4587 /* end confdefs.h. */
4589 # define __EXTENSIONS__ 1
4590 $ac_includes_default
4599 if ac_fn_c_try_compile "$LINENO"; then :
4600 ac_cv_safe_to_define___extensions__=yes
4602 ac_cv_safe_to_define___extensions__=no
4604 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
4607 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
4608 test $ac_cv_safe_to_define___extensions__ = yes &&
4609 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
4611 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
4613 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
4615 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
4617 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
4621 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
4622 if test -f "$ac_dir/install-sh"; then
4624 ac_install_sh="$ac_aux_dir/install-sh -c"
4626 elif test -f "$ac_dir/install.sh"; then
4628 ac_install_sh="$ac_aux_dir/install.sh -c"
4630 elif test -f "$ac_dir/shtool"; then
4632 ac_install_sh="$ac_aux_dir/shtool install -c"
4636 if test -z "$ac_aux_dir"; then
4637 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
4640 # These three variables are undocumented and unsupported,
4641 # and are intended to be withdrawn in a future Autoconf release.
4642 # They can cause serious problems if a builder's source tree is in a directory
4643 # whose full name contains unusual characters.
4644 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
4645 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
4646 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
4649 # Make sure we can run config.sub.
4650 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
4651 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
4653 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4654 $as_echo_n "checking build system type... " >&6; }
4655 if ${ac_cv_build+:} false; then :
4656 $as_echo_n "(cached) " >&6
4658 ac_build_alias=$build_alias
4659 test "x$ac_build_alias" = x &&
4660 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
4661 test "x$ac_build_alias" = x &&
4662 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
4663 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4664 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
4667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4668 $as_echo "$ac_cv_build" >&6; }
4669 case $ac_cv_build in
4671 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
4674 ac_save_IFS=$IFS; IFS='-'
4680 # Remember, the first character of IFS is used to create $*,
4681 # except with old shells:
4684 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4687 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4688 $as_echo_n "checking host system type... " >&6; }
4689 if ${ac_cv_host+:} false; then :
4690 $as_echo_n "(cached) " >&6
4692 if test "x$host_alias" = x; then
4693 ac_cv_host=$ac_cv_build
4695 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4696 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
4700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4701 $as_echo "$ac_cv_host" >&6; }
4704 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
4707 ac_save_IFS=$IFS; IFS='-'
4713 # Remember, the first character of IFS is used to create $*,
4714 # except with old shells:
4717 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4720 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
4721 $as_echo_n "checking target system type... " >&6; }
4722 if ${ac_cv_target+:} false; then :
4723 $as_echo_n "(cached) " >&6
4725 if test "x$target_alias" = x; then
4726 ac_cv_target=$ac_cv_host
4728 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
4729 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
4733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
4734 $as_echo "$ac_cv_target" >&6; }
4735 case $ac_cv_target in
4737 *) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
4739 target=$ac_cv_target
4740 ac_save_IFS=$IFS; IFS='-'
4746 # Remember, the first character of IFS is used to create $*,
4747 # except with old shells:
4750 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
4753 # The aliases save the names the user supplied, while $host etc.
4754 # will get canonicalized.
4755 test -n "$target_alias" &&
4756 test "$program_prefix$program_suffix$program_transform_name" = \
4758 program_prefix=${target_alias}-
4760 # The tests for host and target for $enable_largefile require
4765 # As the $enable_largefile decision depends on --enable-plugins we must set it
4766 # even in directories otherwise not depending on the $plugins option.
4770 for ac_header in dlfcn.h
4772 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
4774 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
4775 cat >>confdefs.h <<_ACEOF
4776 #define HAVE_DLFCN_H 1
4783 for ac_header in windows.h
4785 ac_fn_c_check_header_compile "$LINENO" "windows.h" "ac_cv_header_windows_h" "$ac_includes_default
4787 if test "x$ac_cv_header_windows_h" = xyes; then :
4788 cat >>confdefs.h <<_ACEOF
4789 #define HAVE_WINDOWS_H 1
4797 # Check whether --enable-plugins was given.
4798 if test "${enable_plugins+set}" = set; then :
4799 enableval=$enable_plugins; case "${enableval}" in
4802 if test "$maybe_plugins" != "yes" ; then
4803 as_fn_error $? "Building with plugin support requires a host that supports dlopen." "$LINENO" 5
4807 plugins=$maybe_plugins
4811 if test "$plugins" = "yes"; then
4812 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlsym" >&5
4813 $as_echo_n "checking for library containing dlsym... " >&6; }
4814 if ${ac_cv_search_dlsym+:} false; then :
4815 $as_echo_n "(cached) " >&6
4817 ac_func_search_save_LIBS=$LIBS
4818 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4819 /* end confdefs.h. */
4821 /* Override any GCC internal prototype to avoid an error.
4822 Use char because int might match the return type of a GCC
4823 builtin and then its argument prototype would still apply. */
4836 for ac_lib in '' dl; do
4837 if test -z "$ac_lib"; then
4838 ac_res="none required"
4841 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
4843 if ac_fn_c_try_link "$LINENO"; then :
4844 ac_cv_search_dlsym=$ac_res
4846 rm -f core conftest.err conftest.$ac_objext \
4848 if ${ac_cv_search_dlsym+:} false; then :
4852 if ${ac_cv_search_dlsym+:} false; then :
4855 ac_cv_search_dlsym=no
4858 LIBS=$ac_func_search_save_LIBS
4860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlsym" >&5
4861 $as_echo "$ac_cv_search_dlsym" >&6; }
4862 ac_res=$ac_cv_search_dlsym
4863 if test "$ac_res" != no; then :
4864 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
4872 sparc-*-solaris*|i?86-*-solaris*)
4873 # On native 32-bit Solaris/SPARC and x86, large-file and procfs support
4874 # were mutually exclusive until Solaris 11.3. Without procfs support,
4875 # the bfd/ elf module cannot provide certain routines such as
4876 # elfcore_write_prpsinfo or elfcore_write_prstatus. So unless the user
4877 # explicitly requested large-file support through the
4878 # --enable-largefile switch, disable large-file support in favor of
4881 # Check if <sys/procfs.h> is incompatible with large-file support.
4882 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4883 /* end confdefs.h. */
4884 #define _FILE_OFFSET_BITS 64
4885 #define _STRUCTURED_PROC 1
4886 #include <sys/procfs.h>
4895 if ac_fn_c_try_compile "$LINENO"; then :
4896 acx_cv_procfs_lfs=yes
4898 acx_cv_procfs_lfs=no
4900 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4902 # Forcefully disable large-file support only if necessary, gdb is in
4904 if test "${target}" = "${host}" -a "$acx_cv_procfs_lfs" = no \
4905 -a -d $srcdir/../gdb -a "$enable_gdb" != no; then
4906 : ${enable_largefile="no"}
4907 if test "$plugins" = yes; then
4908 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
4909 plugin support disabled; require large-file support which is incompatible with GDB." >&5
4910 $as_echo "$as_me: WARNING:
4911 plugin support disabled; require large-file support which is incompatible with GDB." >&2;}
4916 # Explicitly undef _FILE_OFFSET_BITS if enable_largefile=no for the
4917 # benefit of g++ 9+ which predefines it on Solaris.
4918 if test "$enable_largefile" = no; then
4919 LARGEFILE_CPPFLAGS="-U_FILE_OFFSET_BITS"
4925 # Check whether --enable-largefile was given.
4926 if test "${enable_largefile+set}" = set; then :
4927 enableval=$enable_largefile;
4930 if test "$enable_largefile" != no; then
4932 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
4933 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
4934 if ${ac_cv_sys_largefile_CC+:} false; then :
4935 $as_echo_n "(cached) " >&6
4937 ac_cv_sys_largefile_CC=no
4938 if test "$GCC" != yes; then
4941 # IRIX 6.2 and later do not support large files by default,
4942 # so use the C compiler's -n32 option if that helps.
4943 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4944 /* end confdefs.h. */
4945 #include <sys/types.h>
4946 /* Check that off_t can represent 2**63 - 1 correctly.
4947 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4948 since some C++ compilers masquerading as C compilers
4949 incorrectly reject 9223372036854775807. */
4950 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4951 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4952 && LARGE_OFF_T % 2147483647 == 1)
4962 if ac_fn_c_try_compile "$LINENO"; then :
4965 rm -f core conftest.err conftest.$ac_objext
4967 if ac_fn_c_try_compile "$LINENO"; then :
4968 ac_cv_sys_largefile_CC=' -n32'; break
4970 rm -f core conftest.err conftest.$ac_objext
4974 rm -f conftest.$ac_ext
4977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
4978 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
4979 if test "$ac_cv_sys_largefile_CC" != no; then
4980 CC=$CC$ac_cv_sys_largefile_CC
4983 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
4984 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
4985 if ${ac_cv_sys_file_offset_bits+:} false; then :
4986 $as_echo_n "(cached) " >&6
4989 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4990 /* end confdefs.h. */
4991 #include <sys/types.h>
4992 /* Check that off_t can represent 2**63 - 1 correctly.
4993 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4994 since some C++ compilers masquerading as C compilers
4995 incorrectly reject 9223372036854775807. */
4996 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4997 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4998 && LARGE_OFF_T % 2147483647 == 1)
5008 if ac_fn_c_try_compile "$LINENO"; then :
5009 ac_cv_sys_file_offset_bits=no; break
5011 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5012 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5013 /* end confdefs.h. */
5014 #define _FILE_OFFSET_BITS 64
5015 #include <sys/types.h>
5016 /* Check that off_t can represent 2**63 - 1 correctly.
5017 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5018 since some C++ compilers masquerading as C compilers
5019 incorrectly reject 9223372036854775807. */
5020 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5021 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5022 && LARGE_OFF_T % 2147483647 == 1)
5032 if ac_fn_c_try_compile "$LINENO"; then :
5033 ac_cv_sys_file_offset_bits=64; break
5035 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5036 ac_cv_sys_file_offset_bits=unknown
5040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
5041 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
5042 case $ac_cv_sys_file_offset_bits in #(
5045 cat >>confdefs.h <<_ACEOF
5046 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
5051 if test $ac_cv_sys_file_offset_bits = unknown; then
5052 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
5053 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
5054 if ${ac_cv_sys_large_files+:} false; then :
5055 $as_echo_n "(cached) " >&6
5058 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5059 /* end confdefs.h. */
5060 #include <sys/types.h>
5061 /* Check that off_t can represent 2**63 - 1 correctly.
5062 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5063 since some C++ compilers masquerading as C compilers
5064 incorrectly reject 9223372036854775807. */
5065 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5066 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5067 && LARGE_OFF_T % 2147483647 == 1)
5077 if ac_fn_c_try_compile "$LINENO"; then :
5078 ac_cv_sys_large_files=no; break
5080 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5081 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5082 /* end confdefs.h. */
5083 #define _LARGE_FILES 1
5084 #include <sys/types.h>
5085 /* Check that off_t can represent 2**63 - 1 correctly.
5086 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5087 since some C++ compilers masquerading as C compilers
5088 incorrectly reject 9223372036854775807. */
5089 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5090 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5091 && LARGE_OFF_T % 2147483647 == 1)
5101 if ac_fn_c_try_compile "$LINENO"; then :
5102 ac_cv_sys_large_files=1; break
5104 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5105 ac_cv_sys_large_files=unknown
5109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
5110 $as_echo "$ac_cv_sys_large_files" >&6; }
5111 case $ac_cv_sys_large_files in #(
5114 cat >>confdefs.h <<_ACEOF
5115 #define _LARGE_FILES $ac_cv_sys_large_files
5126 # Expand $ac_aux_dir to an absolute path.
5127 am_aux_dir=`cd "$ac_aux_dir" && pwd`
5129 if test x"${install_sh+set}" != xset; then
5132 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
5134 install_sh="\${SHELL} $am_aux_dir/install-sh"
5138 # Installed binaries are usually stripped using 'strip' when the user
5139 # run "make install-strip". However 'strip' might not be the right
5140 # tool to use in cross-compilation environments, therefore Automake
5141 # will honor the 'STRIP' environment variable to overrule this program.
5142 if test "$cross_compiling" != no; then
5143 if test -n "$ac_tool_prefix"; then
5144 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5145 set dummy ${ac_tool_prefix}strip; ac_word=$2
5146 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5147 $as_echo_n "checking for $ac_word... " >&6; }
5148 if ${ac_cv_prog_STRIP+:} false; then :
5149 $as_echo_n "(cached) " >&6
5151 if test -n "$STRIP"; then
5152 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5154 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5158 test -z "$as_dir" && as_dir=.
5159 for ac_exec_ext in '' $ac_executable_extensions; do
5160 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5161 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5162 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5171 STRIP=$ac_cv_prog_STRIP
5172 if test -n "$STRIP"; then
5173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
5174 $as_echo "$STRIP" >&6; }
5176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5177 $as_echo "no" >&6; }
5182 if test -z "$ac_cv_prog_STRIP"; then
5184 # Extract the first word of "strip", so it can be a program name with args.
5185 set dummy strip; ac_word=$2
5186 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5187 $as_echo_n "checking for $ac_word... " >&6; }
5188 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
5189 $as_echo_n "(cached) " >&6
5191 if test -n "$ac_ct_STRIP"; then
5192 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5194 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5198 test -z "$as_dir" && as_dir=.
5199 for ac_exec_ext in '' $ac_executable_extensions; do
5200 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5201 ac_cv_prog_ac_ct_STRIP="strip"
5202 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5211 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5212 if test -n "$ac_ct_STRIP"; then
5213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
5214 $as_echo "$ac_ct_STRIP" >&6; }
5216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5217 $as_echo "no" >&6; }
5220 if test "x$ac_ct_STRIP" = x; then
5223 case $cross_compiling:$ac_tool_warned in
5225 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5226 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5227 ac_tool_warned=yes ;;
5232 STRIP="$ac_cv_prog_STRIP"
5236 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
5240 for ac_dir in .. "$srcdir"/..; do
5241 if test -f "$ac_dir/install-sh"; then
5243 ac_install_sh="$ac_aux_dir/install-sh -c"
5245 elif test -f "$ac_dir/install.sh"; then
5247 ac_install_sh="$ac_aux_dir/install.sh -c"
5249 elif test -f "$ac_dir/shtool"; then
5251 ac_install_sh="$ac_aux_dir/shtool install -c"
5255 if test -z "$ac_aux_dir"; then
5256 as_fn_error $? "cannot find install-sh, install.sh, or shtool in .. \"$srcdir\"/.." "$LINENO" 5
5259 # These three variables are undocumented and unsupported,
5260 # and are intended to be withdrawn in a future Autoconf release.
5261 # They can cause serious problems if a builder's source tree is in a directory
5262 # whose full name contains unusual characters.
5263 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
5264 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
5265 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
5269 # Set build, build_cpu, build_vendor and build_os.
5272 # Set host, host_cpu, host_vendor, and host_os.
5275 # Set target, target_cpu, target_vendor, and target_os.
5278 case ${build_alias} in
5279 "") build_noncanonical=${build} ;;
5280 *) build_noncanonical=${build_alias} ;;
5283 case ${host_alias} in
5284 "") host_noncanonical=${build_noncanonical} ;;
5285 *) host_noncanonical=${host_alias} ;;
5288 case ${target_alias} in
5289 "") target_noncanonical=${host_noncanonical} ;;
5290 *) target_noncanonical=${target_alias} ;;
5296 test "$program_prefix" != NONE &&
5297 program_transform_name="s&^&$program_prefix&;$program_transform_name"
5298 # Use a double $ so make ignores it.
5299 test "$program_suffix" != NONE &&
5300 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
5301 # Double any \ or $.
5302 # By default was `s,x,x', remove it if useless.
5303 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
5304 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
5307 # We require libtool to link with the in-tree libtool libraries
5311 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
5312 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
5317 macro_version='2.2.7a'
5318 macro_revision='1.3134'
5332 ltmain="$ac_aux_dir/ltmain.sh"
5334 # Backslashify metacharacters that are still active within
5335 # double-quoted strings.
5336 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
5338 # Same as above, but do not quote variable references.
5339 double_quote_subst='s/\(["`\\]\)/\\\1/g'
5341 # Sed substitution to delay expansion of an escaped shell variable in a
5342 # double_quote_subst'ed string.
5343 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5345 # Sed substitution to delay expansion of an escaped single quote.
5346 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
5348 # Sed substitution to avoid accidental globbing in evaled expressions
5349 no_glob_subst='s/\*/\\\*/g'
5351 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
5352 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
5353 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
5355 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
5356 $as_echo_n "checking how to print strings... " >&6; }
5357 # Test print first, because it will be a builtin if present.
5358 if test "X`print -r -- -n 2>/dev/null`" = X-n && \
5359 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
5361 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
5364 # Use this function as a fallback that always works.
5365 func_fallback_echo ()
5367 eval 'cat <<_LTECHO_EOF
5371 ECHO='func_fallback_echo'
5374 # func_echo_all arg...
5375 # Invoke $ECHO with all args, space-separated.
5382 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
5383 $as_echo "printf" >&6; } ;;
5384 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
5385 $as_echo "print -r" >&6; } ;;
5386 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
5387 $as_echo "cat" >&6; } ;;
5403 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
5404 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
5405 if ${ac_cv_path_SED+:} false; then :
5406 $as_echo_n "(cached) " >&6
5408 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
5409 for ac_i in 1 2 3 4 5 6 7; do
5410 ac_script="$ac_script$as_nl$ac_script"
5412 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
5413 { ac_script=; unset ac_script;}
5414 if test -z "$SED"; then
5415 ac_path_SED_found=false
5416 # Loop through the user's path and test for each of PROGNAME-LIST
5417 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5421 test -z "$as_dir" && as_dir=.
5422 for ac_prog in sed gsed; do
5423 for ac_exec_ext in '' $ac_executable_extensions; do
5424 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
5425 as_fn_executable_p "$ac_path_SED" || continue
5426 # Check for GNU ac_path_SED and select it if it is found.
5427 # Check for GNU $ac_path_SED
5428 case `"$ac_path_SED" --version 2>&1` in
5430 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
5433 $as_echo_n 0123456789 >"conftest.in"
5436 cat "conftest.in" "conftest.in" >"conftest.tmp"
5437 mv "conftest.tmp" "conftest.in"
5438 cp "conftest.in" "conftest.nl"
5439 $as_echo '' >> "conftest.nl"
5440 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
5441 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5442 as_fn_arith $ac_count + 1 && ac_count=$as_val
5443 if test $ac_count -gt ${ac_path_SED_max-0}; then
5444 # Best one so far, save it but keep looking for a better one
5445 ac_cv_path_SED="$ac_path_SED"
5446 ac_path_SED_max=$ac_count
5448 # 10*(2^10) chars as input seems more than enough
5449 test $ac_count -gt 10 && break
5451 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5454 $ac_path_SED_found && break 3
5459 if test -z "$ac_cv_path_SED"; then
5460 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
5467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
5468 $as_echo "$ac_cv_path_SED" >&6; }
5469 SED="$ac_cv_path_SED"
5472 test -z "$SED" && SED=sed
5473 Xsed="$SED -e 1s/^X//"
5485 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
5486 $as_echo_n "checking for fgrep... " >&6; }
5487 if ${ac_cv_path_FGREP+:} false; then :
5488 $as_echo_n "(cached) " >&6
5490 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
5491 then ac_cv_path_FGREP="$GREP -F"
5493 if test -z "$FGREP"; then
5494 ac_path_FGREP_found=false
5495 # Loop through the user's path and test for each of PROGNAME-LIST
5496 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5497 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5500 test -z "$as_dir" && as_dir=.
5501 for ac_prog in fgrep; do
5502 for ac_exec_ext in '' $ac_executable_extensions; do
5503 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
5504 as_fn_executable_p "$ac_path_FGREP" || continue
5505 # Check for GNU ac_path_FGREP and select it if it is found.
5506 # Check for GNU $ac_path_FGREP
5507 case `"$ac_path_FGREP" --version 2>&1` in
5509 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
5512 $as_echo_n 0123456789 >"conftest.in"
5515 cat "conftest.in" "conftest.in" >"conftest.tmp"
5516 mv "conftest.tmp" "conftest.in"
5517 cp "conftest.in" "conftest.nl"
5518 $as_echo 'FGREP' >> "conftest.nl"
5519 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
5520 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5521 as_fn_arith $ac_count + 1 && ac_count=$as_val
5522 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5523 # Best one so far, save it but keep looking for a better one
5524 ac_cv_path_FGREP="$ac_path_FGREP"
5525 ac_path_FGREP_max=$ac_count
5527 # 10*(2^10) chars as input seems more than enough
5528 test $ac_count -gt 10 && break
5530 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5533 $ac_path_FGREP_found && break 3
5538 if test -z "$ac_cv_path_FGREP"; then
5539 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5542 ac_cv_path_FGREP=$FGREP
5547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
5548 $as_echo "$ac_cv_path_FGREP" >&6; }
5549 FGREP="$ac_cv_path_FGREP"
5552 test -z "$GREP" && GREP=grep
5572 # Check whether --with-gnu-ld was given.
5573 if test "${with_gnu_ld+set}" = set; then :
5574 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
5580 if test "$GCC" = yes; then
5581 # Check if gcc -print-prog-name=ld gives a path.
5582 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5583 $as_echo_n "checking for ld used by $CC... " >&6; }
5586 # gcc leaves a trailing carriage return which upsets mingw
5587 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5589 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5592 # Accept absolute paths.
5594 re_direlt='/[^/][^/]*/\.\./'
5595 # Canonicalize the pathname of ld
5596 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5597 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5598 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5600 test -z "$LD" && LD="$ac_prog"
5603 # If it fails, then pretend we aren't using GCC.
5607 # If it is relative, then search for the first ld in PATH.
5611 elif test "$with_gnu_ld" = yes; then
5612 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5613 $as_echo_n "checking for GNU ld... " >&6; }
5615 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5616 $as_echo_n "checking for non-GNU ld... " >&6; }
5618 if ${lt_cv_path_LD+:} false; then :
5619 $as_echo_n "(cached) " >&6
5621 if test -z "$LD"; then
5622 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5623 for ac_dir in $PATH; do
5625 test -z "$ac_dir" && ac_dir=.
5626 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5627 lt_cv_path_LD="$ac_dir/$ac_prog"
5628 # Check to see if the program is GNU ld. I'd rather use --version,
5629 # but apparently some variants of GNU ld only accept -v.
5630 # Break only if it was the GNU/non-GNU ld that we prefer.
5631 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5632 *GNU* | *'with BFD'*)
5633 test "$with_gnu_ld" != no && break
5636 test "$with_gnu_ld" != yes && break
5643 lt_cv_path_LD="$LD" # Let the user override the test with a path.
5648 if test -n "$LD"; then
5649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5650 $as_echo "$LD" >&6; }
5652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5653 $as_echo "no" >&6; }
5655 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
5656 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5657 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
5658 if ${lt_cv_prog_gnu_ld+:} false; then :
5659 $as_echo_n "(cached) " >&6
5661 # I'd rather use --version here, but apparently some GNU lds only accept -v.
5662 case `$LD -v 2>&1 </dev/null` in
5663 *GNU* | *'with BFD'*)
5664 lt_cv_prog_gnu_ld=yes
5667 lt_cv_prog_gnu_ld=no
5671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5672 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
5673 with_gnu_ld=$lt_cv_prog_gnu_ld
5683 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5684 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5685 if ${lt_cv_path_NM+:} false; then :
5686 $as_echo_n "(cached) " >&6
5688 if test -n "$NM"; then
5689 # Let the user override the nm to test.
5690 lt_nm_to_check="$NM"
5692 lt_nm_to_check="${ac_tool_prefix}nm"
5693 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5694 lt_nm_to_check="$lt_nm_to_check nm"
5697 for lt_tmp_nm in "$lt_nm_to_check"; do
5698 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5699 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5701 test -z "$ac_dir" && ac_dir=.
5702 # Strip out any user-provided options from the nm to test twice,
5703 # the first time to test to see if nm (rather than its options) has
5704 # an explicit path, the second time to yield a file which can be
5706 tmp_nm_path="`$ECHO "$lt_tmp_nm" | sed 's, -.*$,,'`"
5707 case "$tmp_nm_path" in
5708 */*|*\\*) tmp_nm="$lt_tmp_nm";;
5709 *) tmp_nm="$ac_dir/$lt_tmp_nm";;
5711 tmp_nm_to_nm="`$ECHO "$tmp_nm" | sed 's, -.*$,,'`"
5712 if test -f "$tmp_nm_to_nm" || test -f "$tmp_nm_to_nm$ac_exeext" ; then
5713 # Check to see if the nm accepts a BSD-compat flag.
5714 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5715 # nm: unknown option "B" ignored
5716 case `"$tmp_nm" -B "$tmp_nm_to_nm" 2>&1 | grep -v '^ *$' | sed '1q'` in
5717 *$tmp_nm*) lt_cv_path_NM="$tmp_nm -B"
5721 case `"$tmp_nm" -p "$tmp_nm_to_nm" 2>&1 | grep -v '^ *$' | sed '1q'` in
5723 lt_cv_path_NM="$tmp_nm -p"
5727 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5728 continue # so that we can try to find one that supports BSD flags
5737 : ${lt_cv_path_NM=no}
5739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5740 $as_echo "$lt_cv_path_NM" >&6; }
5741 if test "$lt_cv_path_NM" != "no"; then
5744 # Didn't find any BSD compatible name lister, look for dumpbin.
5745 if test -n "$DUMPBIN"; then :
5746 # Let the user override the test.
5748 if test -n "$ac_tool_prefix"; then
5749 for ac_prog in dumpbin "link -dump"
5751 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5752 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5753 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5754 $as_echo_n "checking for $ac_word... " >&6; }
5755 if ${ac_cv_prog_DUMPBIN+:} false; then :
5756 $as_echo_n "(cached) " >&6
5758 if test -n "$DUMPBIN"; then
5759 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5761 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5765 test -z "$as_dir" && as_dir=.
5766 for ac_exec_ext in '' $ac_executable_extensions; do
5767 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5768 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5769 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5778 DUMPBIN=$ac_cv_prog_DUMPBIN
5779 if test -n "$DUMPBIN"; then
5780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5781 $as_echo "$DUMPBIN" >&6; }
5783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5784 $as_echo "no" >&6; }
5788 test -n "$DUMPBIN" && break
5791 if test -z "$DUMPBIN"; then
5792 ac_ct_DUMPBIN=$DUMPBIN
5793 for ac_prog in dumpbin "link -dump"
5795 # Extract the first word of "$ac_prog", so it can be a program name with args.
5796 set dummy $ac_prog; ac_word=$2
5797 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5798 $as_echo_n "checking for $ac_word... " >&6; }
5799 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
5800 $as_echo_n "(cached) " >&6
5802 if test -n "$ac_ct_DUMPBIN"; then
5803 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5805 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5809 test -z "$as_dir" && as_dir=.
5810 for ac_exec_ext in '' $ac_executable_extensions; do
5811 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5812 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5813 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5822 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5823 if test -n "$ac_ct_DUMPBIN"; then
5824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5825 $as_echo "$ac_ct_DUMPBIN" >&6; }
5827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5828 $as_echo "no" >&6; }
5832 test -n "$ac_ct_DUMPBIN" && break
5835 if test "x$ac_ct_DUMPBIN" = x; then
5838 case $cross_compiling:$ac_tool_warned in
5840 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5841 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5842 ac_tool_warned=yes ;;
5844 DUMPBIN=$ac_ct_DUMPBIN
5848 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
5850 DUMPBIN="$DUMPBIN -symbols"
5858 if test "$DUMPBIN" != ":"; then
5862 test -z "$NM" && NM=nm
5869 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5870 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
5871 if ${lt_cv_nm_interface+:} false; then :
5872 $as_echo_n "(cached) " >&6
5874 lt_cv_nm_interface="BSD nm"
5875 echo "int some_variable = 0;" > conftest.$ac_ext
5876 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
5877 (eval "$ac_compile" 2>conftest.err)
5878 cat conftest.err >&5
5879 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5880 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5881 cat conftest.err >&5
5882 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
5883 cat conftest.out >&5
5884 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5885 lt_cv_nm_interface="MS dumpbin"
5889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5890 $as_echo "$lt_cv_nm_interface" >&6; }
5892 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5893 $as_echo_n "checking whether ln -s works... " >&6; }
5895 if test "$LN_S" = "ln -s"; then
5896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5897 $as_echo "yes" >&6; }
5899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5900 $as_echo "no, using $LN_S" >&6; }
5903 # find the maximum length of command line arguments
5904 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5905 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
5906 if ${lt_cv_sys_max_cmd_len+:} false; then :
5907 $as_echo_n "(cached) " >&6
5914 # On DJGPP, this test can blow up pretty badly due to problems in libc
5915 # (any single argument exceeding 2000 bytes causes a buffer overrun
5916 # during glob expansion). Even if it were fixed, the result of this
5917 # check would be larger than it should be.
5918 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5922 # Under GNU Hurd, this test is not required because there is
5923 # no limit to the length of command line arguments.
5924 # Libtool will interpret -1 as no limit whatsoever
5925 lt_cv_sys_max_cmd_len=-1;
5928 cygwin* | mingw* | cegcc*)
5929 # On Win9x/ME, this test blows up -- it succeeds, but takes
5930 # about 5 minutes as the teststring grows exponentially.
5931 # Worse, since 9x/ME are not pre-emptively multitasking,
5932 # you end up with a "frozen" computer, even though with patience
5933 # the test eventually succeeds (with a max line length of 256k).
5934 # Instead, let's just punt: use the minimum linelength reported by
5935 # all of the supported platforms: 8192 (on NT/2K/XP).
5936 lt_cv_sys_max_cmd_len=8192;
5940 # On MiNT this can take a long time and run out of memory.
5941 lt_cv_sys_max_cmd_len=8192;
5945 # On AmigaOS with pdksh, this test takes hours, literally.
5946 # So we just punt and use a minimum line length of 8192.
5947 lt_cv_sys_max_cmd_len=8192;
5950 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5951 # This has been around since 386BSD, at least. Likely further.
5952 if test -x /sbin/sysctl; then
5953 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5954 elif test -x /usr/sbin/sysctl; then
5955 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5957 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
5959 # And add a safety zone
5960 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5961 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5965 # We know the value 262144 and hardcode it with a safety zone (like BSD)
5966 lt_cv_sys_max_cmd_len=196608
5970 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5971 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5972 # nice to cause kernel panics so lets avoid the loop below.
5973 # First set a reasonable default.
5974 lt_cv_sys_max_cmd_len=16384
5976 if test -x /sbin/sysconfig; then
5977 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5978 *1*) lt_cv_sys_max_cmd_len=-1 ;;
5983 lt_cv_sys_max_cmd_len=102400
5985 sysv5* | sco5v6* | sysv4.2uw2*)
5986 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5987 if test -n "$kargmax"; then
5988 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
5990 lt_cv_sys_max_cmd_len=32768
5994 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5995 if test -n "$lt_cv_sys_max_cmd_len"; then
5996 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5997 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5999 # Make teststring a little bigger before we do anything with it.
6000 # a 1K string should be a reasonable start.
6001 for i in 1 2 3 4 5 6 7 8 ; do
6002 teststring=$teststring$teststring
6004 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6005 # If test is not a shell built-in, we'll probably end up computing a
6006 # maximum length that is only half of the actual maximum length, but
6008 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
6009 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
6010 test $i != 17 # 1/2 MB should be enough
6013 teststring=$teststring$teststring
6015 # Only check the string length outside the loop.
6016 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
6018 # Add a significant safety factor because C++ compilers can tack on
6019 # massive amounts of additional arguments before passing them to the
6020 # linker. It appears as though 1/2 is a usable value.
6021 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6028 if test -n $lt_cv_sys_max_cmd_len ; then
6029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
6030 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
6032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
6033 $as_echo "none" >&6; }
6035 max_cmd_len=$lt_cv_sys_max_cmd_len
6046 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
6047 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
6048 # Try some XSI features
6051 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
6053 && eval 'test $(( 1 + 1 )) -eq 2 \
6054 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
6056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
6057 $as_echo "$xsi_shell" >&6; }
6060 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
6061 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
6063 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
6065 && lt_shell_append=yes
6066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
6067 $as_echo "$lt_shell_append" >&6; }
6070 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
6080 # test EBCDIC or ASCII
6081 case `echo X|tr X '\101'` in
6082 A) # ASCII based system
6083 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
6084 lt_SP2NL='tr \040 \012'
6085 lt_NL2SP='tr \015\012 \040\040'
6087 *) # EBCDIC based system
6088 lt_SP2NL='tr \100 \n'
6089 lt_NL2SP='tr \r\n \100\100'
6101 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
6102 $as_echo_n "checking for $LD option to reload object files... " >&6; }
6103 if ${lt_cv_ld_reload_flag+:} false; then :
6104 $as_echo_n "(cached) " >&6
6106 lt_cv_ld_reload_flag='-r'
6108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
6109 $as_echo "$lt_cv_ld_reload_flag" >&6; }
6110 reload_flag=$lt_cv_ld_reload_flag
6111 case $reload_flag in
6113 *) reload_flag=" $reload_flag" ;;
6115 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6118 if test "$GCC" = yes; then
6119 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
6121 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6134 if test -n "$ac_tool_prefix"; then
6135 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
6136 set dummy ${ac_tool_prefix}objdump; ac_word=$2
6137 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6138 $as_echo_n "checking for $ac_word... " >&6; }
6139 if ${ac_cv_prog_OBJDUMP+:} false; then :
6140 $as_echo_n "(cached) " >&6
6142 if test -n "$OBJDUMP"; then
6143 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
6145 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6149 test -z "$as_dir" && as_dir=.
6150 for ac_exec_ext in '' $ac_executable_extensions; do
6151 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6152 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
6153 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6162 OBJDUMP=$ac_cv_prog_OBJDUMP
6163 if test -n "$OBJDUMP"; then
6164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
6165 $as_echo "$OBJDUMP" >&6; }
6167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6168 $as_echo "no" >&6; }
6173 if test -z "$ac_cv_prog_OBJDUMP"; then
6174 ac_ct_OBJDUMP=$OBJDUMP
6175 # Extract the first word of "objdump", so it can be a program name with args.
6176 set dummy objdump; ac_word=$2
6177 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6178 $as_echo_n "checking for $ac_word... " >&6; }
6179 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
6180 $as_echo_n "(cached) " >&6
6182 if test -n "$ac_ct_OBJDUMP"; then
6183 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
6185 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6189 test -z "$as_dir" && as_dir=.
6190 for ac_exec_ext in '' $ac_executable_extensions; do
6191 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6192 ac_cv_prog_ac_ct_OBJDUMP="objdump"
6193 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6202 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6203 if test -n "$ac_ct_OBJDUMP"; then
6204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
6205 $as_echo "$ac_ct_OBJDUMP" >&6; }
6207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6208 $as_echo "no" >&6; }
6211 if test "x$ac_ct_OBJDUMP" = x; then
6214 case $cross_compiling:$ac_tool_warned in
6216 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6217 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6218 ac_tool_warned=yes ;;
6220 OBJDUMP=$ac_ct_OBJDUMP
6223 OBJDUMP="$ac_cv_prog_OBJDUMP"
6226 test -z "$OBJDUMP" && OBJDUMP=objdump
6236 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
6237 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
6238 if ${lt_cv_deplibs_check_method+:} false; then :
6239 $as_echo_n "(cached) " >&6
6241 lt_cv_file_magic_cmd='$MAGIC_CMD'
6242 lt_cv_file_magic_test_file=
6243 lt_cv_deplibs_check_method='unknown'
6244 # Need to set the preceding variable on all platforms that support
6245 # interlibrary dependencies.
6246 # 'none' -- dependencies not supported.
6247 # `unknown' -- same as none, but documents that we really don't know.
6248 # 'pass_all' -- all dependencies passed with no checks.
6249 # 'test_compile' -- check by making test program.
6250 # 'file_magic [[regex]]' -- check by looking for files in library path
6251 # which responds to the $file_magic_cmd with a given extended regex.
6252 # If you have `file' or equivalent on your system and you're not sure
6253 # whether `pass_all' will *always* work, you probably want this one.
6257 lt_cv_deplibs_check_method=pass_all
6261 lt_cv_deplibs_check_method=pass_all
6265 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6266 lt_cv_file_magic_cmd='/usr/bin/file -L'
6267 lt_cv_file_magic_test_file=/shlib/libc.so
6271 # func_win32_libid is a shell function defined in ltmain.sh
6272 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6273 lt_cv_file_magic_cmd='func_win32_libid'
6277 # Base MSYS/MinGW do not provide the 'file' command needed by
6278 # func_win32_libid shell function, so use a weaker test based on 'objdump',
6279 # unless we find 'file', for example because we are cross-compiling.
6280 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
6281 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
6282 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6283 lt_cv_file_magic_cmd='func_win32_libid'
6285 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
6286 lt_cv_file_magic_cmd='$OBJDUMP -f'
6291 # use the weaker test based on 'objdump'. See mingw*.
6292 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
6293 lt_cv_file_magic_cmd='$OBJDUMP -f'
6296 darwin* | rhapsody*)
6297 lt_cv_deplibs_check_method=pass_all
6300 freebsd* | dragonfly*)
6301 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6304 # Not sure whether the presence of OpenBSD here was a mistake.
6305 # Let's accept both of them until this is cleared up.
6306 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6307 lt_cv_file_magic_cmd=/usr/bin/file
6308 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6312 lt_cv_deplibs_check_method=pass_all
6317 lt_cv_deplibs_check_method=pass_all
6321 lt_cv_deplibs_check_method=pass_all
6324 hpux10.20* | hpux11*)
6325 lt_cv_file_magic_cmd=/usr/bin/file
6328 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6329 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6332 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]'
6333 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6336 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
6337 lt_cv_file_magic_test_file=/usr/lib/libc.sl
6343 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6344 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6347 irix5* | irix6* | nonstopux*)
6349 *-32|*"-32 ") libmagic=32-bit;;
6350 *-n32|*"-n32 ") libmagic=N32;;
6351 *-64|*"-64 ") libmagic=64-bit;;
6352 *) libmagic=never-match;;
6354 lt_cv_deplibs_check_method=pass_all
6357 # This must be Linux ELF.
6358 linux* | k*bsd*-gnu | kopensolaris*-gnu)
6359 lt_cv_deplibs_check_method=pass_all
6363 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6364 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6366 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6371 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6372 lt_cv_file_magic_cmd=/usr/bin/file
6373 lt_cv_file_magic_test_file=/usr/lib/libnls.so
6377 lt_cv_deplibs_check_method=pass_all
6381 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6382 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6384 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6388 osf3* | osf4* | osf5*)
6389 lt_cv_deplibs_check_method=pass_all
6393 lt_cv_deplibs_check_method=pass_all
6397 lt_cv_deplibs_check_method=pass_all
6400 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6401 lt_cv_deplibs_check_method=pass_all
6405 case $host_vendor in
6407 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]'
6408 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6411 lt_cv_deplibs_check_method=pass_all
6414 lt_cv_file_magic_cmd='/bin/file'
6415 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6418 lt_cv_file_magic_cmd='/bin/file'
6419 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6420 lt_cv_file_magic_test_file=/lib/libc.so
6423 lt_cv_deplibs_check_method=pass_all
6426 lt_cv_deplibs_check_method=pass_all
6432 lt_cv_deplibs_check_method=pass_all
6437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
6438 $as_echo "$lt_cv_deplibs_check_method" >&6; }
6439 file_magic_cmd=$lt_cv_file_magic_cmd
6440 deplibs_check_method=$lt_cv_deplibs_check_method
6441 test -z "$deplibs_check_method" && deplibs_check_method=unknown
6455 plugin_names="liblto_plugin.so liblto_plugin-0.dll cyglto_plugin-0.dll"
6456 for plugin in $plugin_names; do
6457 plugin_so=`${CC} ${CFLAGS} --print-prog-name $plugin`
6458 if test x$plugin_so = x$plugin; then
6459 plugin_so=`${CC} ${CFLAGS} --print-file-name $plugin`
6461 if test x$plugin_so != x$plugin; then
6462 plugin_option="--plugin $plugin_so"
6467 if test -n "$ac_tool_prefix"; then
6468 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6469 set dummy ${ac_tool_prefix}ar; ac_word=$2
6470 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6471 $as_echo_n "checking for $ac_word... " >&6; }
6472 if ${ac_cv_prog_AR+:} false; then :
6473 $as_echo_n "(cached) " >&6
6475 if test -n "$AR"; then
6476 ac_cv_prog_AR="$AR" # Let the user override the test.
6478 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6482 test -z "$as_dir" && as_dir=.
6483 for ac_exec_ext in '' $ac_executable_extensions; do
6484 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6485 ac_cv_prog_AR="${ac_tool_prefix}ar"
6486 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6496 if test -n "$AR"; then
6497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6498 $as_echo "$AR" >&6; }
6500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6501 $as_echo "no" >&6; }
6506 if test -z "$ac_cv_prog_AR"; then
6508 # Extract the first word of "ar", so it can be a program name with args.
6509 set dummy ar; ac_word=$2
6510 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6511 $as_echo_n "checking for $ac_word... " >&6; }
6512 if ${ac_cv_prog_ac_ct_AR+:} false; then :
6513 $as_echo_n "(cached) " >&6
6515 if test -n "$ac_ct_AR"; then
6516 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6518 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6522 test -z "$as_dir" && as_dir=.
6523 for ac_exec_ext in '' $ac_executable_extensions; do
6524 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6525 ac_cv_prog_ac_ct_AR="ar"
6526 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6535 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6536 if test -n "$ac_ct_AR"; then
6537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6538 $as_echo "$ac_ct_AR" >&6; }
6540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6541 $as_echo "no" >&6; }
6544 if test "x$ac_ct_AR" = x; then
6547 case $cross_compiling:$ac_tool_warned in
6549 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6550 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6551 ac_tool_warned=yes ;;
6559 test -z "$AR" && AR=ar
6560 if test -n "$plugin_option"; then
6561 if $AR --help 2>&1 | grep -q "\--plugin"; then
6563 $AR $plugin_option rc conftest.a conftest.c
6564 if test "$?" != 0; then
6565 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Failed: $AR $plugin_option rc" >&5
6566 $as_echo "$as_me: WARNING: Failed: $AR $plugin_option rc" >&2;}
6568 AR="$AR $plugin_option"
6573 test -z "$AR_FLAGS" && AR_FLAGS=cru
6585 if test -n "$ac_tool_prefix"; then
6586 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6587 set dummy ${ac_tool_prefix}strip; ac_word=$2
6588 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6589 $as_echo_n "checking for $ac_word... " >&6; }
6590 if ${ac_cv_prog_STRIP+:} false; then :
6591 $as_echo_n "(cached) " >&6
6593 if test -n "$STRIP"; then
6594 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6596 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6600 test -z "$as_dir" && as_dir=.
6601 for ac_exec_ext in '' $ac_executable_extensions; do
6602 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6603 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6604 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6613 STRIP=$ac_cv_prog_STRIP
6614 if test -n "$STRIP"; then
6615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6616 $as_echo "$STRIP" >&6; }
6618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6619 $as_echo "no" >&6; }
6624 if test -z "$ac_cv_prog_STRIP"; then
6626 # Extract the first word of "strip", so it can be a program name with args.
6627 set dummy strip; ac_word=$2
6628 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6629 $as_echo_n "checking for $ac_word... " >&6; }
6630 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
6631 $as_echo_n "(cached) " >&6
6633 if test -n "$ac_ct_STRIP"; then
6634 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6636 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6640 test -z "$as_dir" && as_dir=.
6641 for ac_exec_ext in '' $ac_executable_extensions; do
6642 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6643 ac_cv_prog_ac_ct_STRIP="strip"
6644 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6653 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6654 if test -n "$ac_ct_STRIP"; then
6655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6656 $as_echo "$ac_ct_STRIP" >&6; }
6658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6659 $as_echo "no" >&6; }
6662 if test "x$ac_ct_STRIP" = x; then
6665 case $cross_compiling:$ac_tool_warned in
6667 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6668 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6669 ac_tool_warned=yes ;;
6674 STRIP="$ac_cv_prog_STRIP"
6677 test -z "$STRIP" && STRIP=:
6684 if test -n "$ac_tool_prefix"; then
6685 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6686 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6687 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6688 $as_echo_n "checking for $ac_word... " >&6; }
6689 if ${ac_cv_prog_RANLIB+:} false; then :
6690 $as_echo_n "(cached) " >&6
6692 if test -n "$RANLIB"; then
6693 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6695 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6699 test -z "$as_dir" && as_dir=.
6700 for ac_exec_ext in '' $ac_executable_extensions; do
6701 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6702 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6703 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6712 RANLIB=$ac_cv_prog_RANLIB
6713 if test -n "$RANLIB"; then
6714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6715 $as_echo "$RANLIB" >&6; }
6717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6718 $as_echo "no" >&6; }
6723 if test -z "$ac_cv_prog_RANLIB"; then
6724 ac_ct_RANLIB=$RANLIB
6725 # Extract the first word of "ranlib", so it can be a program name with args.
6726 set dummy ranlib; ac_word=$2
6727 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6728 $as_echo_n "checking for $ac_word... " >&6; }
6729 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
6730 $as_echo_n "(cached) " >&6
6732 if test -n "$ac_ct_RANLIB"; then
6733 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6735 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6739 test -z "$as_dir" && as_dir=.
6740 for ac_exec_ext in '' $ac_executable_extensions; do
6741 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6742 ac_cv_prog_ac_ct_RANLIB="ranlib"
6743 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6752 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6753 if test -n "$ac_ct_RANLIB"; then
6754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6755 $as_echo "$ac_ct_RANLIB" >&6; }
6757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6758 $as_echo "no" >&6; }
6761 if test "x$ac_ct_RANLIB" = x; then
6764 case $cross_compiling:$ac_tool_warned in
6766 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6767 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6768 ac_tool_warned=yes ;;
6770 RANLIB=$ac_ct_RANLIB
6773 RANLIB="$ac_cv_prog_RANLIB"
6776 test -z "$RANLIB" && RANLIB=:
6777 if test -n "$plugin_option" && test "$RANLIB" != ":"; then
6778 if $RANLIB --help 2>&1 | grep -q "\--plugin"; then
6779 RANLIB="$RANLIB $plugin_option"
6788 # Determine commands to create old-style static archives.
6789 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6790 old_postinstall_cmds='chmod 644 $oldlib'
6791 old_postuninstall_cmds=
6793 if test -n "$RANLIB"; then
6796 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
6799 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
6802 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6807 lock_old_archive_extraction=yes ;;
6809 lock_old_archive_extraction=no ;;
6832 for ac_prog in gawk mawk nawk awk
6834 # Extract the first word of "$ac_prog", so it can be a program name with args.
6835 set dummy $ac_prog; ac_word=$2
6836 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6837 $as_echo_n "checking for $ac_word... " >&6; }
6838 if ${ac_cv_prog_AWK+:} false; then :
6839 $as_echo_n "(cached) " >&6
6841 if test -n "$AWK"; then
6842 ac_cv_prog_AWK="$AWK" # Let the user override the test.
6844 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6848 test -z "$as_dir" && as_dir=.
6849 for ac_exec_ext in '' $ac_executable_extensions; do
6850 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6851 ac_cv_prog_AWK="$ac_prog"
6852 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6862 if test -n "$AWK"; then
6863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
6864 $as_echo "$AWK" >&6; }
6866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6867 $as_echo "no" >&6; }
6871 test -n "$AWK" && break
6892 # If no C compiler was specified, use CC.
6895 # If no C compiler flags were specified, use CFLAGS.
6896 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6898 # Allow CC to be a program name with arguments.
6902 # Check for command to grab the raw symbol name followed by C symbol from nm.
6903 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6904 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6905 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
6906 $as_echo_n "(cached) " >&6
6909 # These are sane defaults that work on at least a few old systems.
6910 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
6912 # Character class describing NM global symbol codes.
6913 symcode='[BCDEGRST]'
6915 # Regexp to match symbols that can be accessed directly from C.
6916 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6918 # Define system-specific variables.
6923 cygwin* | mingw* | pw32* | cegcc*)
6924 symcode='[ABCDGISTW]'
6927 if test "$host_cpu" = ia64; then
6928 symcode='[ABCDEGRST]'
6932 symcode='[BCDEGRST]'
6935 symcode='[BCDEGQRST]'
6946 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6954 # If we're using GNU nm, then use its standard symbol codes.
6955 case `$NM -V 2>&1` in
6956 *GNU* | *'with BFD'*)
6957 symcode='[ABCDGIRSTW]' ;;
6960 # Transform an extracted symbol line into a proper C declaration.
6961 # Some systems (esp. on ia64) link data and code symbols differently,
6962 # so use this general approach.
6963 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6965 # Transform an extracted symbol line into symbol name and symbol address
6966 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
6967 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'"
6969 # Handle CRLF in mingw tool chain
6973 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6977 # Try without a prefix underscore, then with it.
6978 for ac_symprfx in "" "_"; do
6980 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6981 symxfrm="\\1 $ac_symprfx\\2 \\2"
6983 # Write the raw and C identifiers.
6984 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6985 # Fake it for dumpbin and say T for any non-static function
6986 # and D for any global variable.
6987 # Also find C++ and __fastcall symbols from MSVC++,
6988 # which start with @ or ?.
6989 lt_cv_sys_global_symbol_pipe="$AWK '"\
6990 " {last_section=section; section=\$ 3};"\
6991 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6992 " \$ 0!~/External *\|/{next};"\
6993 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6994 " {if(hide[section]) next};"\
6995 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
6996 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
6997 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
6998 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
6999 " ' prfx=^$ac_symprfx"
7001 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7004 # Check to see that the pipe works correctly.
7008 cat > conftest.$ac_ext <<_LT_EOF
7013 void nm_test_func(void);
7014 void nm_test_func(void){}
7018 int main(){nm_test_var='a';nm_test_func();return(0);}
7021 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7022 (eval $ac_compile) 2>&5
7024 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7025 test $ac_status = 0; }; then
7026 # Now try to grab the symbols.
7028 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
7029 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
7031 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7032 test $ac_status = 0; } && test -s "$nlist"; then
7033 # Try sorting and uniquifying the output.
7034 if sort "$nlist" | uniq > "$nlist"T; then
7035 mv -f "$nlist"T "$nlist"
7040 # Make sure that we snagged all the symbols we need.
7041 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
7042 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
7043 cat <<_LT_EOF > conftest.$ac_ext
7049 # Now generate the symbol file.
7050 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
7052 cat <<_LT_EOF >> conftest.$ac_ext
7054 /* The mapping between symbol names and symbols. */
7059 lt__PROGRAM__LTX_preloaded_symbols[] =
7061 { "@PROGRAM@", (void *) 0 },
7063 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
7064 cat <<\_LT_EOF >> conftest.$ac_ext
7068 /* This works around a problem in FreeBSD linker */
7069 #ifdef FREEBSD_WORKAROUND
7070 static const void *lt_preloaded_setup() {
7071 return lt__PROGRAM__LTX_preloaded_symbols;
7079 # Now try linking the two files.
7080 mv conftest.$ac_objext conftstm.$ac_objext
7081 lt_save_LIBS="$LIBS"
7082 lt_save_CFLAGS="$CFLAGS"
7083 LIBS="conftstm.$ac_objext"
7084 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7085 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
7086 (eval $ac_link) 2>&5
7088 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7089 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
7092 LIBS="$lt_save_LIBS"
7093 CFLAGS="$lt_save_CFLAGS"
7095 echo "cannot find nm_test_func in $nlist" >&5
7098 echo "cannot find nm_test_var in $nlist" >&5
7101 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7104 echo "$progname: failed program was:" >&5
7105 cat conftest.$ac_ext >&5
7107 rm -rf conftest* conftst*
7109 # Do not use the global_symbol_pipe unless it works.
7110 if test "$pipe_works" = yes; then
7113 lt_cv_sys_global_symbol_pipe=
7119 if test -z "$lt_cv_sys_global_symbol_pipe"; then
7120 lt_cv_sys_global_symbol_to_cdecl=
7122 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
7124 $as_echo "failed" >&6; }
7126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
7127 $as_echo "ok" >&6; }
7151 # Check whether --enable-libtool-lock was given.
7152 if test "${enable_libtool_lock+set}" = set; then :
7153 enableval=$enable_libtool_lock;
7156 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7158 # Some flags need to be propagated to the compiler or linker for good
7162 # Find out which ABI we are using.
7163 echo 'int i;' > conftest.$ac_ext
7164 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7165 (eval $ac_compile) 2>&5
7167 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7168 test $ac_status = 0; }; then
7169 case `/usr/bin/file conftest.$ac_objext` in
7181 # Find out which ABI we are using.
7182 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
7183 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7184 (eval $ac_compile) 2>&5
7186 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7187 test $ac_status = 0; }; then
7188 if test "$lt_cv_prog_gnu_ld" = yes; then
7189 case `/usr/bin/file conftest.$ac_objext` in
7191 LD="${LD-ld} -melf32bsmip"
7194 LD="${LD-ld} -melf32bmipn32"
7197 LD="${LD-ld} -melf64bmip"
7201 case `/usr/bin/file conftest.$ac_objext` in
7217 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
7218 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
7219 # Find out which ABI we are using.
7220 echo 'int i;' > conftest.$ac_ext
7221 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7222 (eval $ac_compile) 2>&5
7224 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7225 test $ac_status = 0; }; then
7226 case `/usr/bin/file conftest.o` in
7229 x86_64-*kfreebsd*-gnu)
7230 LD="${LD-ld} -m elf_i386_fbsd"
7233 case `/usr/bin/file conftest.o` in
7235 LD="${LD-ld} -m elf32_x86_64"
7238 LD="${LD-ld} -m elf_i386"
7242 powerpc64le-*linux*)
7243 LD="${LD-ld} -m elf32lppclinux"
7246 LD="${LD-ld} -m elf32ppclinux"
7249 LD="${LD-ld} -m elf_s390"
7252 LD="${LD-ld} -m elf32_sparc"
7258 x86_64-*kfreebsd*-gnu)
7259 LD="${LD-ld} -m elf_x86_64_fbsd"
7262 LD="${LD-ld} -m elf_x86_64"
7265 LD="${LD-ld} -m elf64lppc"
7268 LD="${LD-ld} -m elf64ppc"
7270 s390*-*linux*|s390*-*tpf*)
7271 LD="${LD-ld} -m elf64_s390"
7274 LD="${LD-ld} -m elf64_sparc"
7284 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7285 SAVE_CFLAGS="$CFLAGS"
7286 CFLAGS="$CFLAGS -belf"
7287 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
7288 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
7289 if ${lt_cv_cc_needs_belf+:} false; then :
7290 $as_echo_n "(cached) " >&6
7293 ac_cpp='$CPP $CPPFLAGS'
7294 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7295 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7296 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7298 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7299 /* end confdefs.h. */
7309 if ac_fn_c_try_link "$LINENO"; then :
7310 lt_cv_cc_needs_belf=yes
7312 lt_cv_cc_needs_belf=no
7314 rm -f core conftest.err conftest.$ac_objext \
7315 conftest$ac_exeext conftest.$ac_ext
7317 ac_cpp='$CPP $CPPFLAGS'
7318 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7319 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7320 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
7324 $as_echo "$lt_cv_cc_needs_belf" >&6; }
7325 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
7326 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7327 CFLAGS="$SAVE_CFLAGS"
7331 # Find out which ABI we are using.
7332 echo 'int i;' > conftest.$ac_ext
7333 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7334 (eval $ac_compile) 2>&5
7336 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7337 test $ac_status = 0; }; then
7338 case `/usr/bin/file conftest.o` in
7340 case $lt_cv_prog_gnu_ld in
7341 yes*) LD="${LD-ld} -m elf64_sparc" ;;
7343 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7355 need_locks="$enable_libtool_lock"
7359 rhapsody* | darwin*)
7360 if test -n "$ac_tool_prefix"; then
7361 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7362 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7363 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7364 $as_echo_n "checking for $ac_word... " >&6; }
7365 if ${ac_cv_prog_DSYMUTIL+:} false; then :
7366 $as_echo_n "(cached) " >&6
7368 if test -n "$DSYMUTIL"; then
7369 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7371 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7375 test -z "$as_dir" && as_dir=.
7376 for ac_exec_ext in '' $ac_executable_extensions; do
7377 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7378 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7379 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7388 DSYMUTIL=$ac_cv_prog_DSYMUTIL
7389 if test -n "$DSYMUTIL"; then
7390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
7391 $as_echo "$DSYMUTIL" >&6; }
7393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7394 $as_echo "no" >&6; }
7399 if test -z "$ac_cv_prog_DSYMUTIL"; then
7400 ac_ct_DSYMUTIL=$DSYMUTIL
7401 # Extract the first word of "dsymutil", so it can be a program name with args.
7402 set dummy dsymutil; ac_word=$2
7403 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7404 $as_echo_n "checking for $ac_word... " >&6; }
7405 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
7406 $as_echo_n "(cached) " >&6
7408 if test -n "$ac_ct_DSYMUTIL"; then
7409 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7411 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7415 test -z "$as_dir" && as_dir=.
7416 for ac_exec_ext in '' $ac_executable_extensions; do
7417 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7418 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7419 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7428 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7429 if test -n "$ac_ct_DSYMUTIL"; then
7430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
7431 $as_echo "$ac_ct_DSYMUTIL" >&6; }
7433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7434 $as_echo "no" >&6; }
7437 if test "x$ac_ct_DSYMUTIL" = x; then
7440 case $cross_compiling:$ac_tool_warned in
7442 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7443 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7444 ac_tool_warned=yes ;;
7446 DSYMUTIL=$ac_ct_DSYMUTIL
7449 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7452 if test -n "$ac_tool_prefix"; then
7453 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7454 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7455 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7456 $as_echo_n "checking for $ac_word... " >&6; }
7457 if ${ac_cv_prog_NMEDIT+:} false; then :
7458 $as_echo_n "(cached) " >&6
7460 if test -n "$NMEDIT"; then
7461 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7463 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7467 test -z "$as_dir" && as_dir=.
7468 for ac_exec_ext in '' $ac_executable_extensions; do
7469 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7470 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7471 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7480 NMEDIT=$ac_cv_prog_NMEDIT
7481 if test -n "$NMEDIT"; then
7482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
7483 $as_echo "$NMEDIT" >&6; }
7485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7486 $as_echo "no" >&6; }
7491 if test -z "$ac_cv_prog_NMEDIT"; then
7492 ac_ct_NMEDIT=$NMEDIT
7493 # Extract the first word of "nmedit", so it can be a program name with args.
7494 set dummy nmedit; ac_word=$2
7495 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7496 $as_echo_n "checking for $ac_word... " >&6; }
7497 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
7498 $as_echo_n "(cached) " >&6
7500 if test -n "$ac_ct_NMEDIT"; then
7501 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7503 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7507 test -z "$as_dir" && as_dir=.
7508 for ac_exec_ext in '' $ac_executable_extensions; do
7509 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7510 ac_cv_prog_ac_ct_NMEDIT="nmedit"
7511 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7520 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7521 if test -n "$ac_ct_NMEDIT"; then
7522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7523 $as_echo "$ac_ct_NMEDIT" >&6; }
7525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7526 $as_echo "no" >&6; }
7529 if test "x$ac_ct_NMEDIT" = x; then
7532 case $cross_compiling:$ac_tool_warned in
7534 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7535 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7536 ac_tool_warned=yes ;;
7538 NMEDIT=$ac_ct_NMEDIT
7541 NMEDIT="$ac_cv_prog_NMEDIT"
7544 if test -n "$ac_tool_prefix"; then
7545 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7546 set dummy ${ac_tool_prefix}lipo; ac_word=$2
7547 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7548 $as_echo_n "checking for $ac_word... " >&6; }
7549 if ${ac_cv_prog_LIPO+:} false; then :
7550 $as_echo_n "(cached) " >&6
7552 if test -n "$LIPO"; then
7553 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7555 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7559 test -z "$as_dir" && as_dir=.
7560 for ac_exec_ext in '' $ac_executable_extensions; do
7561 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7562 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7563 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7572 LIPO=$ac_cv_prog_LIPO
7573 if test -n "$LIPO"; then
7574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7575 $as_echo "$LIPO" >&6; }
7577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7578 $as_echo "no" >&6; }
7583 if test -z "$ac_cv_prog_LIPO"; then
7585 # Extract the first word of "lipo", so it can be a program name with args.
7586 set dummy lipo; ac_word=$2
7587 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7588 $as_echo_n "checking for $ac_word... " >&6; }
7589 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
7590 $as_echo_n "(cached) " >&6
7592 if test -n "$ac_ct_LIPO"; then
7593 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7595 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7599 test -z "$as_dir" && as_dir=.
7600 for ac_exec_ext in '' $ac_executable_extensions; do
7601 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7602 ac_cv_prog_ac_ct_LIPO="lipo"
7603 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7612 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7613 if test -n "$ac_ct_LIPO"; then
7614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7615 $as_echo "$ac_ct_LIPO" >&6; }
7617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7618 $as_echo "no" >&6; }
7621 if test "x$ac_ct_LIPO" = x; then
7624 case $cross_compiling:$ac_tool_warned in
7626 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7627 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7628 ac_tool_warned=yes ;;
7633 LIPO="$ac_cv_prog_LIPO"
7636 if test -n "$ac_tool_prefix"; then
7637 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7638 set dummy ${ac_tool_prefix}otool; ac_word=$2
7639 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7640 $as_echo_n "checking for $ac_word... " >&6; }
7641 if ${ac_cv_prog_OTOOL+:} false; then :
7642 $as_echo_n "(cached) " >&6
7644 if test -n "$OTOOL"; then
7645 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7647 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7651 test -z "$as_dir" && as_dir=.
7652 for ac_exec_ext in '' $ac_executable_extensions; do
7653 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7654 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7655 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7664 OTOOL=$ac_cv_prog_OTOOL
7665 if test -n "$OTOOL"; then
7666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7667 $as_echo "$OTOOL" >&6; }
7669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7670 $as_echo "no" >&6; }
7675 if test -z "$ac_cv_prog_OTOOL"; then
7677 # Extract the first word of "otool", so it can be a program name with args.
7678 set dummy otool; ac_word=$2
7679 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7680 $as_echo_n "checking for $ac_word... " >&6; }
7681 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
7682 $as_echo_n "(cached) " >&6
7684 if test -n "$ac_ct_OTOOL"; then
7685 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7687 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7691 test -z "$as_dir" && as_dir=.
7692 for ac_exec_ext in '' $ac_executable_extensions; do
7693 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7694 ac_cv_prog_ac_ct_OTOOL="otool"
7695 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7704 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7705 if test -n "$ac_ct_OTOOL"; then
7706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7707 $as_echo "$ac_ct_OTOOL" >&6; }
7709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7710 $as_echo "no" >&6; }
7713 if test "x$ac_ct_OTOOL" = x; then
7716 case $cross_compiling:$ac_tool_warned in
7718 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7719 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7720 ac_tool_warned=yes ;;
7725 OTOOL="$ac_cv_prog_OTOOL"
7728 if test -n "$ac_tool_prefix"; then
7729 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7730 set dummy ${ac_tool_prefix}otool64; ac_word=$2
7731 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7732 $as_echo_n "checking for $ac_word... " >&6; }
7733 if ${ac_cv_prog_OTOOL64+:} false; then :
7734 $as_echo_n "(cached) " >&6
7736 if test -n "$OTOOL64"; then
7737 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7739 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7743 test -z "$as_dir" && as_dir=.
7744 for ac_exec_ext in '' $ac_executable_extensions; do
7745 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7746 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7747 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7756 OTOOL64=$ac_cv_prog_OTOOL64
7757 if test -n "$OTOOL64"; then
7758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
7759 $as_echo "$OTOOL64" >&6; }
7761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7762 $as_echo "no" >&6; }
7767 if test -z "$ac_cv_prog_OTOOL64"; then
7768 ac_ct_OTOOL64=$OTOOL64
7769 # Extract the first word of "otool64", so it can be a program name with args.
7770 set dummy otool64; ac_word=$2
7771 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7772 $as_echo_n "checking for $ac_word... " >&6; }
7773 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
7774 $as_echo_n "(cached) " >&6
7776 if test -n "$ac_ct_OTOOL64"; then
7777 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7779 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7783 test -z "$as_dir" && as_dir=.
7784 for ac_exec_ext in '' $ac_executable_extensions; do
7785 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7786 ac_cv_prog_ac_ct_OTOOL64="otool64"
7787 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7796 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7797 if test -n "$ac_ct_OTOOL64"; then
7798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
7799 $as_echo "$ac_ct_OTOOL64" >&6; }
7801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7802 $as_echo "no" >&6; }
7805 if test "x$ac_ct_OTOOL64" = x; then
7808 case $cross_compiling:$ac_tool_warned in
7810 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7811 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7812 ac_tool_warned=yes ;;
7814 OTOOL64=$ac_ct_OTOOL64
7817 OTOOL64="$ac_cv_prog_OTOOL64"
7846 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7847 $as_echo_n "checking for -single_module linker flag... " >&6; }
7848 if ${lt_cv_apple_cc_single_mod+:} false; then :
7849 $as_echo_n "(cached) " >&6
7851 lt_cv_apple_cc_single_mod=no
7852 if test -z "${LT_MULTI_MODULE}"; then
7853 # By default we will add the -single_module flag. You can override
7854 # by either setting the environment variable LT_MULTI_MODULE
7855 # non-empty at configure time, or by adding -multi_module to the
7857 rm -rf libconftest.dylib*
7858 echo "int foo(void){return 1;}" > conftest.c
7859 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7860 -dynamiclib -Wl,-single_module conftest.c" >&5
7861 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7862 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7864 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
7865 lt_cv_apple_cc_single_mod=yes
7867 cat conftest.err >&5
7869 rm -rf libconftest.dylib*
7873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7874 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7875 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7876 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7877 if ${lt_cv_ld_exported_symbols_list+:} false; then :
7878 $as_echo_n "(cached) " >&6
7880 lt_cv_ld_exported_symbols_list=no
7881 save_LDFLAGS=$LDFLAGS
7882 echo "_main" > conftest.sym
7883 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7884 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7885 /* end confdefs.h. */
7895 if ac_fn_c_try_link "$LINENO"; then :
7896 lt_cv_ld_exported_symbols_list=yes
7898 lt_cv_ld_exported_symbols_list=no
7900 rm -f core conftest.err conftest.$ac_objext \
7901 conftest$ac_exeext conftest.$ac_ext
7902 LDFLAGS="$save_LDFLAGS"
7905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7906 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7907 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
7908 $as_echo_n "checking for -force_load linker flag... " >&6; }
7909 if ${lt_cv_ld_force_load+:} false; then :
7910 $as_echo_n "(cached) " >&6
7912 lt_cv_ld_force_load=no
7913 cat > conftest.c << _LT_EOF
7914 int forced_loaded() { return 2;}
7916 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
7917 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
7918 echo "$AR cru libconftest.a conftest.o" >&5
7919 $AR cru libconftest.a conftest.o 2>&5
7920 cat > conftest.c << _LT_EOF
7921 int main() { return 0;}
7923 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
7924 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
7926 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
7927 lt_cv_ld_force_load=yes
7929 cat conftest.err >&5
7931 rm -f conftest.err libconftest.a conftest conftest.c
7932 rm -rf conftest.dSYM
7935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
7936 $as_echo "$lt_cv_ld_force_load" >&6; }
7938 rhapsody* | darwin1.[012])
7939 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7941 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7942 darwin*) # darwin 5.x on
7943 # if running on 10.5 or later, the deployment target defaults
7944 # to the OS version, if on x86, and 10.4, the deployment
7945 # target defaults to 10.4. Don't you love it?
7946 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7947 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7948 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7950 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7952 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7956 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7957 _lt_dar_single_mod='$single_module'
7959 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7960 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7962 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
7964 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
7965 _lt_dsymutil='~$DSYMUTIL $lib || :'
7972 for ac_header in dlfcn.h
7974 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7976 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
7977 cat >>confdefs.h <<_ACEOF
7978 #define HAVE_DLFCN_H 1
8000 # Check whether --enable-shared was given.
8001 if test "${enable_shared+set}" = set; then :
8002 enableval=$enable_shared; p=${PACKAGE-default}
8004 yes) enable_shared=yes ;;
8005 no) enable_shared=no ;;
8008 # Look at the argument we got. We use all the common list separators.
8009 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8010 for pkg in $enableval; do
8012 if test "X$pkg" = "X$p"; then
8031 # Check whether --enable-static was given.
8032 if test "${enable_static+set}" = set; then :
8033 enableval=$enable_static; p=${PACKAGE-default}
8035 yes) enable_static=yes ;;
8036 no) enable_static=no ;;
8039 # Look at the argument we got. We use all the common list separators.
8040 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8041 for pkg in $enableval; do
8043 if test "X$pkg" = "X$p"; then
8063 # Check whether --with-pic was given.
8064 if test "${with_pic+set}" = set; then :
8065 withval=$with_pic; pic_mode="$withval"
8071 test -z "$pic_mode" && pic_mode=default
8079 # Check whether --enable-fast-install was given.
8080 if test "${enable_fast_install+set}" = set; then :
8081 enableval=$enable_fast_install; p=${PACKAGE-default}
8083 yes) enable_fast_install=yes ;;
8084 no) enable_fast_install=no ;;
8086 enable_fast_install=no
8087 # Look at the argument we got. We use all the common list separators.
8088 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8089 for pkg in $enableval; do
8091 if test "X$pkg" = "X$p"; then
8092 enable_fast_install=yes
8099 enable_fast_install=yes
8112 # This can be used to rebuild libtool when needed
8113 LIBTOOL_DEPS="$ltmain"
8115 # Always use our own libtool.
8116 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8143 test -z "$LN_S" && LN_S="ln -s"
8158 if test -n "${ZSH_VERSION+set}" ; then
8159 setopt NO_GLOB_SUBST
8162 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8163 $as_echo_n "checking for objdir... " >&6; }
8164 if ${lt_cv_objdir+:} false; then :
8165 $as_echo_n "(cached) " >&6
8167 rm -f .libs 2>/dev/null
8168 mkdir .libs 2>/dev/null
8169 if test -d .libs; then
8172 # MS-DOS does not allow filenames that begin with a dot.
8175 rmdir .libs 2>/dev/null
8177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8178 $as_echo "$lt_cv_objdir" >&6; }
8179 objdir=$lt_cv_objdir
8185 cat >>confdefs.h <<_ACEOF
8186 #define LT_OBJDIR "$lt_cv_objdir/"
8194 # AIX sometimes has problems with the GCC collect2 program. For some
8195 # reason, if we set the COLLECT_NAMES environment variable, the problems
8196 # vanish in a puff of smoke.
8197 if test "X${COLLECT_NAMES+set}" != Xset; then
8199 export COLLECT_NAMES
8206 can_build_shared=yes
8208 # All known linkers require a `.a' archive for static linking (except MSVC,
8209 # which needs '.lib').
8212 with_gnu_ld="$lt_cv_prog_gnu_ld"
8215 old_CFLAGS="$CFLAGS"
8217 # Set sane defaults for various variables
8218 test -z "$CC" && CC=cc
8219 test -z "$LTCC" && LTCC=$CC
8220 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8221 test -z "$LD" && LD=ld
8222 test -z "$ac_objext" && ac_objext=o
8224 for cc_temp in $compiler""; do
8226 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8227 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8232 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
8235 # Only perform the check for file, if the check method requires it
8236 test -z "$MAGIC_CMD" && MAGIC_CMD=file
8237 case $deplibs_check_method in
8239 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8240 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8241 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
8242 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8243 $as_echo_n "(cached) " >&6
8247 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8250 lt_save_MAGIC_CMD="$MAGIC_CMD"
8251 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8252 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8253 for ac_dir in $ac_dummy; do
8255 test -z "$ac_dir" && ac_dir=.
8256 if test -f $ac_dir/${ac_tool_prefix}file; then
8257 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8258 if test -n "$file_magic_test_file"; then
8259 case $deplibs_check_method in
8261 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8262 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8263 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8264 $EGREP "$file_magic_regex" > /dev/null; then
8269 *** Warning: the command libtool uses to detect shared libraries,
8270 *** $file_magic_cmd, produces output that libtool cannot recognize.
8271 *** The result is that libtool may fail to recognize shared libraries
8272 *** as such. This will affect the creation of libtool libraries that
8273 *** depend on shared libraries, but programs linked with such libtool
8274 *** libraries will work regardless of this problem. Nevertheless, you
8275 *** may want to report the problem to your system manager and/or to
8286 MAGIC_CMD="$lt_save_MAGIC_CMD"
8291 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8292 if test -n "$MAGIC_CMD"; then
8293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8294 $as_echo "$MAGIC_CMD" >&6; }
8296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8297 $as_echo "no" >&6; }
8304 if test -z "$lt_cv_path_MAGIC_CMD"; then
8305 if test -n "$ac_tool_prefix"; then
8306 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8307 $as_echo_n "checking for file... " >&6; }
8308 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8309 $as_echo_n "(cached) " >&6
8313 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8316 lt_save_MAGIC_CMD="$MAGIC_CMD"
8317 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8318 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8319 for ac_dir in $ac_dummy; do
8321 test -z "$ac_dir" && ac_dir=.
8322 if test -f $ac_dir/file; then
8323 lt_cv_path_MAGIC_CMD="$ac_dir/file"
8324 if test -n "$file_magic_test_file"; then
8325 case $deplibs_check_method in
8327 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8328 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8329 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8330 $EGREP "$file_magic_regex" > /dev/null; then
8335 *** Warning: the command libtool uses to detect shared libraries,
8336 *** $file_magic_cmd, produces output that libtool cannot recognize.
8337 *** The result is that libtool may fail to recognize shared libraries
8338 *** as such. This will affect the creation of libtool libraries that
8339 *** depend on shared libraries, but programs linked with such libtool
8340 *** libraries will work regardless of this problem. Nevertheless, you
8341 *** may want to report the problem to your system manager and/or to
8352 MAGIC_CMD="$lt_save_MAGIC_CMD"
8357 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8358 if test -n "$MAGIC_CMD"; then
8359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8360 $as_echo "$MAGIC_CMD" >&6; }
8362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8363 $as_echo "no" >&6; }
8376 # Use C for the default configuration in the libtool script
8380 ac_cpp='$CPP $CPPFLAGS'
8381 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8382 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8383 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8386 # Source file extension for C test sources.
8389 # Object file extension for compiled C test sources.
8393 # Code to be used in simple compile tests
8394 lt_simple_compile_test_code="int some_variable = 0;"
8396 # Code to be used in simple link tests
8397 lt_simple_link_test_code='int main(){return(0);}'
8405 # If no C compiler was specified, use CC.
8408 # If no C compiler flags were specified, use CFLAGS.
8409 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8411 # Allow CC to be a program name with arguments.
8414 # Save the default compiler, since it gets overwritten when the other
8415 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8416 compiler_DEFAULT=$CC
8418 # save warnings/boilerplate of simple test code
8419 ac_outfile=conftest.$ac_objext
8420 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8421 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8422 _lt_compiler_boilerplate=`cat conftest.err`
8425 ac_outfile=conftest.$ac_objext
8426 echo "$lt_simple_link_test_code" >conftest.$ac_ext
8427 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8428 _lt_linker_boilerplate=`cat conftest.err`
8433 ## There is no encapsulation within the following macros, do not change
8434 ## the running order or otherwise move them around unless you know exactly
8435 ## what you are doing...
8436 if test -n "$compiler"; then
8438 lt_prog_compiler_no_builtin_flag=
8440 if test "$GCC" = yes; then
8441 case $cc_basename in
8443 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
8445 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
8448 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8449 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8450 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
8451 $as_echo_n "(cached) " >&6
8453 lt_cv_prog_compiler_rtti_exceptions=no
8454 ac_outfile=conftest.$ac_objext
8455 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8456 lt_compiler_flag="-fno-rtti -fno-exceptions"
8457 # Insert the option either (1) after the last *FLAGS variable, or
8458 # (2) before a word containing "conftest.", or (3) at the end.
8459 # Note that $ac_compile itself does not contain backslashes and begins
8460 # with a dollar sign (not a hyphen), so the echo should work correctly.
8461 # The option is referenced via a variable to avoid confusing sed.
8462 lt_compile=`echo "$ac_compile" | $SED \
8463 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8464 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8465 -e 's:$: $lt_compiler_flag:'`
8466 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8467 (eval "$lt_compile" 2>conftest.err)
8469 cat conftest.err >&5
8470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8471 if (exit $ac_status) && test -s "$ac_outfile"; then
8472 # The compiler can only warn and ignore the option if not recognized
8473 # So say no if there are warnings other than the usual output.
8474 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8475 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8476 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8477 lt_cv_prog_compiler_rtti_exceptions=yes
8483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8484 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8486 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8487 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8499 lt_prog_compiler_wl=
8500 lt_prog_compiler_pic=
8501 lt_prog_compiler_static=
8503 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8504 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8506 if test "$GCC" = yes; then
8507 lt_prog_compiler_wl='-Wl,'
8508 lt_prog_compiler_static='-static'
8512 # All AIX code is PIC.
8513 if test "$host_cpu" = ia64; then
8514 # AIX 5 now supports IA64 processor
8515 lt_prog_compiler_static='-Bstatic'
8517 lt_prog_compiler_pic='-fPIC'
8523 # see comment about AmigaOS4 .so support
8524 lt_prog_compiler_pic='-fPIC'
8527 # FIXME: we need at least 68020 code to build shared libraries, but
8528 # adding the `-m68020' flag to GCC prevents building anything better,
8530 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8535 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8536 # PIC is the default for these OSes.
8539 mingw* | cygwin* | pw32* | os2* | cegcc*)
8540 # This hack is so that the source file can tell whether it is being
8541 # built for inclusion in a dll (and should export symbols for example).
8542 # Although the cygwin gcc ignores -fPIC, still need this for old-style
8543 # (--disable-auto-import) libraries
8544 lt_prog_compiler_pic='-DDLL_EXPORT'
8547 darwin* | rhapsody*)
8548 # PIC is the default on this platform
8549 # Common symbols not allowed in MH_DYLIB files
8550 lt_prog_compiler_pic='-fno-common'
8554 # PIC is the default for Haiku.
8555 # The "-static" flag exists, but is broken.
8556 lt_prog_compiler_static=
8560 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8561 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
8562 # sets the default TLS model and affects inlining.
8568 lt_prog_compiler_pic='-fPIC'
8574 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8575 # Instead, we relocate shared libraries at runtime.
8579 # Just because we use GCC doesn't mean we suddenly get shared libraries
8580 # on systems that don't support them.
8581 lt_prog_compiler_can_build_shared=no
8586 # QNX uses GNU C++, but need to define -shared option too, otherwise
8588 lt_prog_compiler_pic='-fPIC -shared'
8592 if test -d /usr/nec; then
8593 lt_prog_compiler_pic=-Kconform_pic
8598 lt_prog_compiler_pic='-fPIC'
8602 case $cc_basename in
8603 nvcc*) # Cuda Compiler Driver 2.2
8604 lt_prog_compiler_wl='-Xlinker '
8605 lt_prog_compiler_pic='-Xcompiler -fPIC'
8609 # PORTME Check for flag to pass linker flags through the system compiler.
8612 lt_prog_compiler_wl='-Wl,'
8613 if test "$host_cpu" = ia64; then
8614 # AIX 5 now supports IA64 processor
8615 lt_prog_compiler_static='-Bstatic'
8617 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8621 mingw* | cygwin* | pw32* | os2* | cegcc*)
8622 # This hack is so that the source file can tell whether it is being
8623 # built for inclusion in a dll (and should export symbols for example).
8624 lt_prog_compiler_pic='-DDLL_EXPORT'
8627 hpux9* | hpux10* | hpux11*)
8628 lt_prog_compiler_wl='-Wl,'
8629 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8636 lt_prog_compiler_pic='+Z'
8639 # Is there a better lt_prog_compiler_static that works with the bundled CC?
8640 lt_prog_compiler_static='${wl}-a ${wl}archive'
8643 irix5* | irix6* | nonstopux*)
8644 lt_prog_compiler_wl='-Wl,'
8645 # PIC (with -KPIC) is the default.
8646 lt_prog_compiler_static='-non_shared'
8649 linux* | k*bsd*-gnu | kopensolaris*-gnu)
8650 case $cc_basename in
8651 # old Intel for x86_64 which still supported -KPIC.
8653 lt_prog_compiler_wl='-Wl,'
8654 lt_prog_compiler_pic='-KPIC'
8655 lt_prog_compiler_static='-static'
8657 # icc used to be incompatible with GCC.
8658 # ICC 10 doesn't accept -KPIC any more.
8660 lt_prog_compiler_wl='-Wl,'
8661 lt_prog_compiler_pic='-fPIC'
8662 lt_prog_compiler_static='-static'
8664 # Lahey Fortran 8.1.
8666 lt_prog_compiler_wl='-Wl,'
8667 lt_prog_compiler_pic='--shared'
8668 lt_prog_compiler_static='--static'
8670 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
8671 # Portland Group compilers (*not* the Pentium gcc compiler,
8672 # which looks to be a dead project)
8673 lt_prog_compiler_wl='-Wl,'
8674 lt_prog_compiler_pic='-fpic'
8675 lt_prog_compiler_static='-Bstatic'
8678 lt_prog_compiler_wl='-Wl,'
8679 # All Alpha code is PIC.
8680 lt_prog_compiler_static='-non_shared'
8682 xl* | bgxl* | bgf* | mpixl*)
8683 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
8684 lt_prog_compiler_wl='-Wl,'
8685 lt_prog_compiler_pic='-qpic'
8686 lt_prog_compiler_static='-qstaticlink'
8689 case `$CC -V 2>&1 | sed 5q` in
8690 *Sun\ F* | *Sun*Fortran*)
8691 # Sun Fortran 8.3 passes all unrecognized flags to the linker
8692 lt_prog_compiler_pic='-KPIC'
8693 lt_prog_compiler_static='-Bstatic'
8694 lt_prog_compiler_wl=''
8698 lt_prog_compiler_pic='-KPIC'
8699 lt_prog_compiler_static='-Bstatic'
8700 lt_prog_compiler_wl='-Wl,'
8708 lt_prog_compiler_pic='-KPIC'
8709 lt_prog_compiler_static='-Bstatic'
8713 # QNX uses GNU C++, but need to define -shared option too, otherwise
8715 lt_prog_compiler_pic='-fPIC -shared'
8718 osf3* | osf4* | osf5*)
8719 lt_prog_compiler_wl='-Wl,'
8720 # All OSF/1 code is PIC.
8721 lt_prog_compiler_static='-non_shared'
8725 lt_prog_compiler_static='-non_shared'
8729 lt_prog_compiler_pic='-KPIC'
8730 lt_prog_compiler_static='-Bstatic'
8731 case $cc_basename in
8733 lt_prog_compiler_wl='-Qoption ld ';;
8735 lt_prog_compiler_wl='-Wl,';;
8740 lt_prog_compiler_wl='-Qoption ld '
8741 lt_prog_compiler_pic='-PIC'
8742 lt_prog_compiler_static='-Bstatic'
8745 sysv4 | sysv4.2uw2* | sysv4.3*)
8746 lt_prog_compiler_wl='-Wl,'
8747 lt_prog_compiler_pic='-KPIC'
8748 lt_prog_compiler_static='-Bstatic'
8752 if test -d /usr/nec ;then
8753 lt_prog_compiler_pic='-Kconform_pic'
8754 lt_prog_compiler_static='-Bstatic'
8758 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8759 lt_prog_compiler_wl='-Wl,'
8760 lt_prog_compiler_pic='-KPIC'
8761 lt_prog_compiler_static='-Bstatic'
8765 lt_prog_compiler_wl='-Wl,'
8766 lt_prog_compiler_can_build_shared=no
8770 lt_prog_compiler_pic='-pic'
8771 lt_prog_compiler_static='-Bstatic'
8775 lt_prog_compiler_can_build_shared=no
8781 # For platforms which do not support PIC, -DPIC is meaningless:
8783 lt_prog_compiler_pic=
8786 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
8790 $as_echo "$lt_prog_compiler_pic" >&6; }
8798 # Check to make sure the PIC flag actually works.
8800 if test -n "$lt_prog_compiler_pic"; then
8801 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8802 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8803 if ${lt_cv_prog_compiler_pic_works+:} false; then :
8804 $as_echo_n "(cached) " >&6
8806 lt_cv_prog_compiler_pic_works=no
8807 ac_outfile=conftest.$ac_objext
8808 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8809 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8810 # Insert the option either (1) after the last *FLAGS variable, or
8811 # (2) before a word containing "conftest.", or (3) at the end.
8812 # Note that $ac_compile itself does not contain backslashes and begins
8813 # with a dollar sign (not a hyphen), so the echo should work correctly.
8814 # The option is referenced via a variable to avoid confusing sed.
8815 lt_compile=`echo "$ac_compile" | $SED \
8816 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8817 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8818 -e 's:$: $lt_compiler_flag:'`
8819 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8820 (eval "$lt_compile" 2>conftest.err)
8822 cat conftest.err >&5
8823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8824 if (exit $ac_status) && test -s "$ac_outfile"; then
8825 # The compiler can only warn and ignore the option if not recognized
8826 # So say no if there are warnings other than the usual output.
8827 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8828 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8829 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8830 lt_cv_prog_compiler_pic_works=yes
8836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8837 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8839 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
8840 case $lt_prog_compiler_pic in
8842 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8845 lt_prog_compiler_pic=
8846 lt_prog_compiler_can_build_shared=no
8857 # Check to make sure the static flag actually works.
8859 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8860 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8861 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8862 if ${lt_cv_prog_compiler_static_works+:} false; then :
8863 $as_echo_n "(cached) " >&6
8865 lt_cv_prog_compiler_static_works=no
8866 save_LDFLAGS="$LDFLAGS"
8867 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8868 echo "$lt_simple_link_test_code" > conftest.$ac_ext
8869 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8870 # The linker can only warn and ignore the option if not recognized
8871 # So say no if there are warnings
8872 if test -s conftest.err; then
8873 # Append any errors to the config.log.
8874 cat conftest.err 1>&5
8875 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
8876 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8877 if diff conftest.exp conftest.er2 >/dev/null; then
8878 lt_cv_prog_compiler_static_works=yes
8881 lt_cv_prog_compiler_static_works=yes
8885 LDFLAGS="$save_LDFLAGS"
8888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
8889 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
8891 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
8894 lt_prog_compiler_static=
8903 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8904 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8905 if ${lt_cv_prog_compiler_c_o+:} false; then :
8906 $as_echo_n "(cached) " >&6
8908 lt_cv_prog_compiler_c_o=no
8909 $RM -r conftest 2>/dev/null
8913 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8915 lt_compiler_flag="-o out/conftest2.$ac_objext"
8916 # Insert the option either (1) after the last *FLAGS variable, or
8917 # (2) before a word containing "conftest.", or (3) at the end.
8918 # Note that $ac_compile itself does not contain backslashes and begins
8919 # with a dollar sign (not a hyphen), so the echo should work correctly.
8920 lt_compile=`echo "$ac_compile" | $SED \
8921 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8922 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8923 -e 's:$: $lt_compiler_flag:'`
8924 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8925 (eval "$lt_compile" 2>out/conftest.err)
8927 cat out/conftest.err >&5
8928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8929 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8931 # The compiler can only warn and ignore the option if not recognized
8932 # So say no if there are warnings
8933 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8934 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8935 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8936 lt_cv_prog_compiler_c_o=yes
8941 # SGI C++ compiler will create directory out/ii_files/ for
8942 # template instantiation
8943 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8944 $RM out/* && rmdir out
8950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8951 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8958 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8959 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8960 if ${lt_cv_prog_compiler_c_o+:} false; then :
8961 $as_echo_n "(cached) " >&6
8963 lt_cv_prog_compiler_c_o=no
8964 $RM -r conftest 2>/dev/null
8968 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8970 lt_compiler_flag="-o out/conftest2.$ac_objext"
8971 # Insert the option either (1) after the last *FLAGS variable, or
8972 # (2) before a word containing "conftest.", or (3) at the end.
8973 # Note that $ac_compile itself does not contain backslashes and begins
8974 # with a dollar sign (not a hyphen), so the echo should work correctly.
8975 lt_compile=`echo "$ac_compile" | $SED \
8976 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8977 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8978 -e 's:$: $lt_compiler_flag:'`
8979 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8980 (eval "$lt_compile" 2>out/conftest.err)
8982 cat out/conftest.err >&5
8983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8984 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8986 # The compiler can only warn and ignore the option if not recognized
8987 # So say no if there are warnings
8988 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8989 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8990 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8991 lt_cv_prog_compiler_c_o=yes
8996 # SGI C++ compiler will create directory out/ii_files/ for
8997 # template instantiation
8998 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8999 $RM out/* && rmdir out
9005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9006 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9011 hard_links="nottested"
9012 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
9013 # do not overwrite the value of need_locks provided by the user
9014 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
9015 $as_echo_n "checking if we can lock with hard links... " >&6; }
9018 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9020 ln conftest.a conftest.b 2>&5 || hard_links=no
9021 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
9023 $as_echo "$hard_links" >&6; }
9024 if test "$hard_links" = no; then
9025 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
9026 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
9038 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9039 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
9042 allow_undefined_flag=
9043 always_export_symbols=no
9045 archive_expsym_cmds=
9046 compiler_needs_object=no
9047 enable_shared_with_static_runtimes=no
9048 export_dynamic_flag_spec=
9049 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9050 hardcode_automatic=no
9052 hardcode_direct_absolute=no
9053 hardcode_libdir_flag_spec=
9054 hardcode_libdir_flag_spec_ld=
9055 hardcode_libdir_separator=
9057 hardcode_shlibpath_var=unsupported
9059 link_all_deplibs=unknown
9062 old_archive_from_new_cmds=
9063 old_archive_from_expsyms_cmds=
9064 thread_safe_flag_spec=
9065 whole_archive_flag_spec=
9066 # include_expsyms should be a list of space-separated symbols to be *always*
9067 # included in the symbol list
9069 # exclude_expsyms can be an extended regexp of symbols to exclude
9070 # it will be wrapped by ` (' and `)$', so one must not match beginning or
9071 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
9072 # as well as any symbol that contains `d'.
9073 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9074 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9075 # platforms (ab)use it in PIC code, but their linkers get confused if
9076 # the symbol is explicitly referenced. Since portable code cannot
9077 # rely on this symbol name, it's probably fine to never include it in
9078 # preloaded symbol tables.
9079 # Exclude shared library initialization/finalization symbols.
9080 extract_expsyms_cmds=
9083 cygwin* | mingw* | pw32* | cegcc*)
9084 # FIXME: the MSVC++ port hasn't been tested in a loooong time
9085 # When not using gcc, we currently assume that we are using
9086 # Microsoft Visual C++.
9087 if test "$GCC" != yes; then
9092 # we just hope/assume this is gcc and not c89 (= MSVC++)
9102 # On some targets, GNU ld is compatible enough with the native linker
9103 # that we're better off using the native interface for both.
9104 lt_use_gnu_ld_interface=no
9105 if test "$with_gnu_ld" = yes; then
9108 # The AIX port of GNU ld has always aspired to compatibility
9109 # with the native linker. However, as the warning in the GNU ld
9110 # block says, versions before 2.19.5* couldn't really create working
9111 # shared libraries, regardless of the interface used.
9112 case `$LD -v 2>&1` in
9113 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
9114 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
9115 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
9117 lt_use_gnu_ld_interface=yes
9122 lt_use_gnu_ld_interface=yes
9127 if test "$lt_use_gnu_ld_interface" = yes; then
9128 # If archive_cmds runs LD, not CC, wlarc should be empty
9131 # Set some defaults for GNU ld with shared library support. These
9132 # are reset later if shared libraries are not supported. Putting them
9133 # here allows them to be overridden if necessary.
9134 runpath_var=LD_RUN_PATH
9135 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9136 export_dynamic_flag_spec='${wl}--export-dynamic'
9137 # ancient GNU ld didn't support --whole-archive et. al.
9138 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9139 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9141 whole_archive_flag_spec=
9143 supports_anon_versioning=no
9144 case `$LD -v 2>&1` in
9145 *GNU\ gold*) supports_anon_versioning=yes ;;
9146 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9147 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9148 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9149 *\ 2.11.*) ;; # other 2.11 versions
9150 *) supports_anon_versioning=yes ;;
9153 # See if GNU ld supports shared libraries.
9156 # On AIX/PPC, the GNU linker is very broken
9157 if test "$host_cpu" != ia64; then
9161 *** Warning: the GNU linker, at least up to release 2.19, is reported
9162 *** to be unable to reliably create shared libraries on AIX.
9163 *** Therefore, libtool is disabling shared libraries support. If you
9164 *** really care for shared libraries, you may want to install binutils
9165 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
9166 *** You will then need to restart the configuration process.
9175 # see comment about AmigaOS4 .so support
9176 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9177 archive_expsym_cmds=''
9180 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)'
9181 hardcode_libdir_flag_spec='-L$libdir'
9182 hardcode_minus_L=yes
9188 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9189 allow_undefined_flag=unsupported
9191 # support --undefined. This deserves some investigation. FIXME
9192 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9198 cygwin* | mingw* | pw32* | cegcc*)
9199 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9200 # as there is no search path for DLLs.
9201 hardcode_libdir_flag_spec='-L$libdir'
9202 export_dynamic_flag_spec='${wl}--export-all-symbols'
9203 allow_undefined_flag=unsupported
9204 always_export_symbols=no
9205 enable_shared_with_static_runtimes=yes
9206 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9208 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9209 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9210 # If the export-symbols file already is a .def file (1st line
9211 # is EXPORTS), use it as is; otherwise, prepend...
9212 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9213 cp $export_symbols $output_objdir/$soname.def;
9215 echo EXPORTS > $output_objdir/$soname.def;
9216 cat $export_symbols >> $output_objdir/$soname.def;
9218 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9225 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9226 link_all_deplibs=yes
9231 hardcode_shlibpath_var=no
9232 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9233 export_dynamic_flag_spec='${wl}-E'
9234 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9235 # Instead, shared libraries are loaded at an image base (0x10000000 by
9236 # default) and relocated if they conflict, which is a slow very memory
9237 # consuming and fragmenting process. To avoid this, we pick a random,
9238 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9239 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
9240 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9241 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'
9244 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
9246 if test "$host_os" = linux-dietlibc; then
9247 case $cc_basename in
9248 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
9251 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9252 && test "$tmp_diet" = no
9254 tmp_addflag=' $pic_flag'
9255 tmp_sharedflag='-shared'
9256 case $cc_basename,$host_cpu in
9257 pgcc*) # Portland Group C compiler
9258 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'
9259 tmp_addflag=' $pic_flag'
9261 pgf77* | pgf90* | pgf95* | pgfortran*)
9262 # Portland Group f77 and f90 compilers
9263 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'
9264 tmp_addflag=' $pic_flag -Mnomain' ;;
9265 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
9266 tmp_addflag=' -i_dynamic' ;;
9267 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
9268 tmp_addflag=' -i_dynamic -nofor_main' ;;
9269 ifc* | ifort*) # Intel Fortran compiler
9270 tmp_addflag=' -nofor_main' ;;
9271 lf95*) # Lahey Fortran 8.1
9272 whole_archive_flag_spec=
9273 tmp_sharedflag='--shared' ;;
9274 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
9275 tmp_sharedflag='-qmkshrobj'
9277 nvcc*) # Cuda Compiler Driver 2.2
9278 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'
9279 compiler_needs_object=yes
9282 case `$CC -V 2>&1 | sed 5q` in
9283 *Sun\ C*) # Sun C 5.9
9284 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'
9285 compiler_needs_object=yes
9286 tmp_sharedflag='-G' ;;
9287 *Sun\ F*) # Sun Fortran 8.3
9288 tmp_sharedflag='-G' ;;
9290 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9292 if test "x$supports_anon_versioning" = xyes; then
9293 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9294 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9295 echo "local: *; };" >> $output_objdir/$libname.ver~
9296 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9299 case $cc_basename in
9300 xlf* | bgf* | bgxlf* | mpixlf*)
9301 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9302 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9303 hardcode_libdir_flag_spec=
9304 hardcode_libdir_flag_spec_ld='-rpath $libdir'
9305 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
9306 if test "x$supports_anon_versioning" = xyes; then
9307 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9308 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9309 echo "local: *; };" >> $output_objdir/$libname.ver~
9310 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9320 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9321 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9324 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9325 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9330 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9334 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
9335 *** create shared libraries on Solaris systems. Therefore, libtool
9336 *** is disabling shared libraries support. We urge you to upgrade GNU
9337 *** binutils to release 2.9.1 or newer. Another option is to modify
9338 *** your PATH or compiler configuration so that the native linker is
9339 *** used, and then restart.
9342 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9343 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9344 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9350 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9351 case `$LD -v 2>&1` in
9352 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9356 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9357 *** reliably create shared libraries on SCO systems. Therefore, libtool
9358 *** is disabling shared libraries support. We urge you to upgrade GNU
9359 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
9360 *** your PATH or compiler configuration so that the native linker is
9361 *** used, and then restart.
9366 # For security reasons, it is highly recommended that you always
9367 # use absolute paths for naming shared libraries, and exclude the
9368 # DT_RUNPATH tag from executables and libraries. But doing so
9369 # requires that you compile everything twice, which is a pain.
9370 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9371 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9372 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9373 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9382 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9385 hardcode_shlibpath_var=no
9389 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9390 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9391 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9398 if test "$ld_shlibs" = no; then
9400 hardcode_libdir_flag_spec=
9401 export_dynamic_flag_spec=
9402 whole_archive_flag_spec=
9405 # PORTME fill in a description of your system's linker (not GNU ld)
9408 allow_undefined_flag=unsupported
9409 always_export_symbols=yes
9410 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'
9411 # Note: this linker hardcodes the directories in LIBPATH if there
9412 # are no directories specified by -L.
9413 hardcode_minus_L=yes
9414 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9415 # Neither direct hardcoding nor static linking is supported with a
9417 hardcode_direct=unsupported
9422 if test "$host_cpu" = ia64; then
9423 # On IA64, the linker does run time linking by default, so we don't
9424 # have to do anything special.
9425 aix_use_runtimelinking=no
9426 exp_sym_flag='-Bexport'
9429 # If we're using GNU nm, then we don't want the "-C" option.
9430 # -C means demangle to AIX nm, but means don't demangle with GNU nm
9431 # Also, AIX nm treats weak defined symbols like other global
9432 # defined symbols, whereas GNU nm marks them as "W".
9433 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9434 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'
9436 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'
9438 aix_use_runtimelinking=no
9440 # Test if we are trying to use run time linking or normal
9441 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9442 # need to do runtime linking.
9443 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9444 for ld_flag in $LDFLAGS; do
9445 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9446 aix_use_runtimelinking=yes
9453 exp_sym_flag='-bexport'
9454 no_entry_flag='-bnoentry'
9457 # When large executables or shared objects are built, AIX ld can
9458 # have problems creating the table of contents. If linking a library
9459 # or program results in "error TOC overflow" add -mminimal-toc to
9460 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9461 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9465 hardcode_direct_absolute=yes
9466 hardcode_libdir_separator=':'
9467 link_all_deplibs=yes
9468 file_list_spec='${wl}-f,'
9470 if test "$GCC" = yes; then
9471 case $host_os in aix4.[012]|aix4.[012].*)
9472 # We only want to do this on AIX 4.2 and lower, the check
9473 # below for broken collect2 doesn't work under 4.3+
9474 collect2name=`${CC} -print-prog-name=collect2`
9475 if test -f "$collect2name" &&
9476 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9478 # We have reworked collect2
9481 # We have old collect2
9482 hardcode_direct=unsupported
9483 # It fails to find uninstalled libraries when the uninstalled
9484 # path is not listed in the libpath. Setting hardcode_minus_L
9485 # to unsupported forces relinking
9486 hardcode_minus_L=yes
9487 hardcode_libdir_flag_spec='-L$libdir'
9488 hardcode_libdir_separator=
9492 shared_flag='-shared'
9493 if test "$aix_use_runtimelinking" = yes; then
9494 shared_flag="$shared_flag "'${wl}-G'
9498 if test "$host_cpu" = ia64; then
9499 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9500 # chokes on -Wl,-G. The following line is correct:
9503 if test "$aix_use_runtimelinking" = yes; then
9504 shared_flag='${wl}-G'
9506 shared_flag='${wl}-bM:SRE'
9511 export_dynamic_flag_spec='${wl}-bexpall'
9512 # It seems that -bexpall does not export symbols beginning with
9513 # underscore (_), so it is better to generate a list of symbols to export.
9514 always_export_symbols=yes
9515 if test "$aix_use_runtimelinking" = yes; then
9516 # Warning - without using the other runtime loading flags (-brtl),
9517 # -berok will link without error, but may produce a broken library.
9518 allow_undefined_flag='-berok'
9519 # Determine the default libpath from the value encoded in an
9521 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9522 /* end confdefs.h. */
9532 if ac_fn_c_try_link "$LINENO"; then :
9534 lt_aix_libpath_sed='
9535 /Import File Strings/,/^$/ {
9541 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9542 # Check for a 64-bit object if we didn't find anything.
9543 if test -z "$aix_libpath"; then
9544 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9547 rm -f core conftest.err conftest.$ac_objext \
9548 conftest$ac_exeext conftest.$ac_ext
9549 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9551 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9552 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"
9554 if test "$host_cpu" = ia64; then
9555 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9556 allow_undefined_flag="-z nodefs"
9557 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"
9559 # Determine the default libpath from the value encoded in an
9561 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9562 /* end confdefs.h. */
9572 if ac_fn_c_try_link "$LINENO"; then :
9574 lt_aix_libpath_sed='
9575 /Import File Strings/,/^$/ {
9581 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9582 # Check for a 64-bit object if we didn't find anything.
9583 if test -z "$aix_libpath"; then
9584 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9587 rm -f core conftest.err conftest.$ac_objext \
9588 conftest$ac_exeext conftest.$ac_ext
9589 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9591 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9592 # Warning - without using the other run time loading flags,
9593 # -berok will link without error, but may produce a broken library.
9594 no_undefined_flag=' ${wl}-bernotok'
9595 allow_undefined_flag=' ${wl}-berok'
9596 if test "$with_gnu_ld" = yes; then
9597 # We only use this code for GNU lds that support --whole-archive.
9598 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
9600 # Exported symbols can be pulled into shared objects from archives
9601 whole_archive_flag_spec='$convenience'
9603 archive_cmds_need_lc=yes
9604 # This is similar to how AIX traditionally builds its shared libraries.
9605 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'
9613 # see comment about AmigaOS4 .so support
9614 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9615 archive_expsym_cmds=''
9618 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)'
9619 hardcode_libdir_flag_spec='-L$libdir'
9620 hardcode_minus_L=yes
9626 export_dynamic_flag_spec=-rdynamic
9629 cygwin* | mingw* | pw32* | cegcc*)
9630 # When not using gcc, we currently assume that we are using
9631 # Microsoft Visual C++.
9632 # hardcode_libdir_flag_spec is actually meaningless, as there is
9633 # no search path for DLLs.
9634 hardcode_libdir_flag_spec=' '
9635 allow_undefined_flag=unsupported
9636 # Tell ltmain to make .lib files, not .a files.
9638 # Tell ltmain to make .dll files, not .so files.
9640 # FIXME: Setting linknames here is a bad hack.
9641 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
9642 # The linker will automatically build a .lib file if we build a DLL.
9643 old_archive_from_new_cmds='true'
9644 # FIXME: Should let the user specify the lib program.
9645 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9646 fix_srcfile_path='`cygpath -w "$srcfile"`'
9647 enable_shared_with_static_runtimes=yes
9650 darwin* | rhapsody*)
9653 archive_cmds_need_lc=no
9655 hardcode_automatic=yes
9656 hardcode_shlibpath_var=unsupported
9657 if test "$lt_cv_ld_force_load" = "yes"; then
9658 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\"`'
9660 whole_archive_flag_spec=''
9662 link_all_deplibs=yes
9663 allow_undefined_flag="$_lt_dar_allow_undefined"
9664 case $cc_basename in
9665 ifort*) _lt_dar_can_shared=yes ;;
9666 *) _lt_dar_can_shared=$GCC ;;
9668 if test "$_lt_dar_can_shared" = "yes"; then
9669 output_verbose_link_cmd=func_echo_all
9670 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9671 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9672 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}"
9673 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}"
9682 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9683 hardcode_libdir_flag_spec='-L$libdir'
9684 hardcode_shlibpath_var=no
9687 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9688 # support. Future versions do this automatically, but an explicit c++rt0.o
9689 # does not break anything, and helps significantly (at the cost of a little
9692 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9693 hardcode_libdir_flag_spec='-R$libdir'
9695 hardcode_shlibpath_var=no
9698 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9700 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9702 hardcode_minus_L=yes
9703 hardcode_shlibpath_var=no
9706 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9707 freebsd* | dragonfly*)
9708 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
9709 hardcode_libdir_flag_spec='-R$libdir'
9711 hardcode_shlibpath_var=no
9715 if test "$GCC" = yes; then
9716 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'
9718 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'
9720 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9721 hardcode_libdir_separator=:
9724 # hardcode_minus_L: Not really in the search PATH,
9725 # but as the default location of the library.
9726 hardcode_minus_L=yes
9727 export_dynamic_flag_spec='${wl}-E'
9731 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9732 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9734 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9736 if test "$with_gnu_ld" = no; then
9737 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9738 hardcode_libdir_flag_spec_ld='+b $libdir'
9739 hardcode_libdir_separator=:
9741 hardcode_direct_absolute=yes
9742 export_dynamic_flag_spec='${wl}-E'
9743 # hardcode_minus_L: Not really in the search PATH,
9744 # but as the default location of the library.
9745 hardcode_minus_L=yes
9750 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9753 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9756 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9759 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9765 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9768 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9772 # Older versions of the 11.00 compiler do not understand -b yet
9773 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
9774 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
9775 $as_echo_n "checking if $CC understands -b... " >&6; }
9776 if ${lt_cv_prog_compiler__b+:} false; then :
9777 $as_echo_n "(cached) " >&6
9779 lt_cv_prog_compiler__b=no
9780 save_LDFLAGS="$LDFLAGS"
9781 LDFLAGS="$LDFLAGS -b"
9782 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9783 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9784 # The linker can only warn and ignore the option if not recognized
9785 # So say no if there are warnings
9786 if test -s conftest.err; then
9787 # Append any errors to the config.log.
9788 cat conftest.err 1>&5
9789 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9790 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9791 if diff conftest.exp conftest.er2 >/dev/null; then
9792 lt_cv_prog_compiler__b=yes
9795 lt_cv_prog_compiler__b=yes
9799 LDFLAGS="$save_LDFLAGS"
9802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
9803 $as_echo "$lt_cv_prog_compiler__b" >&6; }
9805 if test x"$lt_cv_prog_compiler__b" = xyes; then
9806 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9808 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9814 if test "$with_gnu_ld" = no; then
9815 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9816 hardcode_libdir_separator=:
9821 hardcode_shlibpath_var=no
9825 hardcode_direct_absolute=yes
9826 export_dynamic_flag_spec='${wl}-E'
9828 # hardcode_minus_L: Not really in the search PATH,
9829 # but as the default location of the library.
9830 hardcode_minus_L=yes
9836 irix5* | irix6* | nonstopux*)
9837 if test "$GCC" = yes; then
9838 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'
9839 # Try to use the -exported_symbol ld option, if it does not
9840 # work, assume that -exports_file does not work either and
9841 # implicitly export all symbols.
9842 save_LDFLAGS="$LDFLAGS"
9843 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
9844 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9845 /* end confdefs.h. */
9848 if ac_fn_c_try_link "$LINENO"; then :
9849 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'
9852 rm -f core conftest.err conftest.$ac_objext \
9853 conftest$ac_exeext conftest.$ac_ext
9854 LDFLAGS="$save_LDFLAGS"
9856 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'
9857 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'
9859 archive_cmds_need_lc='no'
9860 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9861 hardcode_libdir_separator=:
9863 link_all_deplibs=yes
9867 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9868 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
9870 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
9872 hardcode_libdir_flag_spec='-R$libdir'
9874 hardcode_shlibpath_var=no
9878 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9880 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9881 hardcode_libdir_separator=:
9882 hardcode_shlibpath_var=no
9889 if test -f /usr/libexec/ld.so; then
9891 hardcode_shlibpath_var=no
9892 hardcode_direct_absolute=yes
9893 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9894 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9895 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9896 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9897 export_dynamic_flag_spec='${wl}-E'
9900 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9901 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9902 hardcode_libdir_flag_spec='-R$libdir'
9905 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9906 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9916 hardcode_libdir_flag_spec='-L$libdir'
9917 hardcode_minus_L=yes
9918 allow_undefined_flag=unsupported
9919 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'
9920 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9924 if test "$GCC" = yes; then
9925 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9926 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'
9928 allow_undefined_flag=' -expect_unresolved \*'
9929 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'
9931 archive_cmds_need_lc='no'
9932 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9933 hardcode_libdir_separator=:
9936 osf4* | osf5*) # as osf3* with the addition of -msym flag
9937 if test "$GCC" = yes; then
9938 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9939 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'
9940 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9942 allow_undefined_flag=' -expect_unresolved \*'
9943 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'
9944 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~
9945 $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'
9947 # Both c and cxx compiler support -rpath directly
9948 hardcode_libdir_flag_spec='-rpath $libdir'
9950 archive_cmds_need_lc='no'
9951 hardcode_libdir_separator=:
9955 no_undefined_flag=' -z defs'
9956 if test "$GCC" = yes; then
9958 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9959 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9960 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9962 case `$CC -V 2>&1` in
9965 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9966 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9967 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
9971 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
9972 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9973 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9977 hardcode_libdir_flag_spec='-R$libdir'
9978 hardcode_shlibpath_var=no
9980 solaris2.[0-5] | solaris2.[0-5].*) ;;
9982 # The compiler driver will combine and reorder linker options,
9983 # but understands `-z linker_flag'. GCC discards it without `$wl',
9984 # but is careful enough not to reorder.
9985 # Supported since Solaris 2.6 (maybe 2.5.1?)
9986 if test "$GCC" = yes; then
9987 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9989 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
9993 link_all_deplibs=yes
9997 if test "x$host_vendor" = xsequent; then
9998 # Use $CC to link under sequent, because it throws in some extra .o
9999 # files that make .init and .fini sections work.
10000 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10002 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10004 hardcode_libdir_flag_spec='-L$libdir'
10005 hardcode_direct=yes
10006 hardcode_minus_L=yes
10007 hardcode_shlibpath_var=no
10011 case $host_vendor in
10013 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10014 hardcode_direct=yes # is this really true???
10017 ## LD is ld it makes a PLAMLIB
10018 ## CC just makes a GrossModule.
10019 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10020 reload_cmds='$CC -r -o $output$reload_objs'
10024 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10025 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10028 runpath_var='LD_RUN_PATH'
10029 hardcode_shlibpath_var=no
10033 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10034 hardcode_shlibpath_var=no
10035 export_dynamic_flag_spec='-Bexport'
10039 if test -d /usr/nec; then
10040 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10041 hardcode_shlibpath_var=no
10042 runpath_var=LD_RUN_PATH
10043 hardcode_runpath_var=yes
10048 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10049 no_undefined_flag='${wl}-z,text'
10050 archive_cmds_need_lc=no
10051 hardcode_shlibpath_var=no
10052 runpath_var='LD_RUN_PATH'
10054 if test "$GCC" = yes; then
10055 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10056 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10058 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10059 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10063 sysv5* | sco3.2v5* | sco5v6*)
10064 # Note: We can NOT use -z defs as we might desire, because we do not
10065 # link with -lc, and that would cause any symbols used from libc to
10066 # always be unresolved, which means just about no library would
10067 # ever link correctly. If we're not using GNU ld we use -z text
10068 # though, which does catch some bad symbols but isn't as heavy-handed
10070 no_undefined_flag='${wl}-z,text'
10071 allow_undefined_flag='${wl}-z,nodefs'
10072 archive_cmds_need_lc=no
10073 hardcode_shlibpath_var=no
10074 hardcode_libdir_flag_spec='${wl}-R,$libdir'
10075 hardcode_libdir_separator=':'
10076 link_all_deplibs=yes
10077 export_dynamic_flag_spec='${wl}-Bexport'
10078 runpath_var='LD_RUN_PATH'
10080 if test "$GCC" = yes; then
10081 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10082 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10084 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10085 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10090 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10091 hardcode_libdir_flag_spec='-L$libdir'
10092 hardcode_shlibpath_var=no
10100 if test x$host_vendor = xsni; then
10102 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10103 export_dynamic_flag_spec='${wl}-Blargedynsym'
10109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10110 $as_echo "$ld_shlibs" >&6; }
10111 test "$ld_shlibs" = no && can_build_shared=no
10113 with_gnu_ld=$with_gnu_ld
10130 # Do we need to explicitly link libc?
10132 case "x$archive_cmds_need_lc" in
10134 # Assume -lc should be added
10135 archive_cmds_need_lc=yes
10137 if test "$enable_shared" = yes && test "$GCC" = yes; then
10138 case $archive_cmds in
10140 # FIXME: we may have to deal with multi-command sequences.
10143 # Test whether the compiler implicitly links with -lc since on some
10144 # systems, -lgcc has to come before -lc. If gcc already passes -lc
10145 # to ld, don't add -lc before -lgcc.
10146 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10147 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
10148 if ${lt_cv_archive_cmds_need_lc+:} false; then :
10149 $as_echo_n "(cached) " >&6
10152 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10154 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10155 (eval $ac_compile) 2>&5
10157 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10158 test $ac_status = 0; } 2>conftest.err; then
10161 libobjs=conftest.$ac_objext
10163 wl=$lt_prog_compiler_wl
10164 pic_flag=$lt_prog_compiler_pic
10170 lt_save_allow_undefined_flag=$allow_undefined_flag
10171 allow_undefined_flag=
10172 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
10173 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
10175 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10176 test $ac_status = 0; }
10178 lt_cv_archive_cmds_need_lc=no
10180 lt_cv_archive_cmds_need_lc=yes
10182 allow_undefined_flag=$lt_save_allow_undefined_flag
10184 cat conftest.err 1>&5
10189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
10190 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
10191 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
10354 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10355 $as_echo_n "checking dynamic linker characteristics... " >&6; }
10357 if test "$GCC" = yes; then
10359 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
10360 *) lt_awk_arg="/^libraries:/" ;;
10363 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
10364 *) lt_sed_strip_eq="s,=/,/,g" ;;
10366 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
10367 case $lt_search_path_spec in
10369 # if the path contains ";" then we assume it to be the separator
10370 # otherwise default to the standard path separator (i.e. ":") - it is
10371 # assumed that no part of a normal pathname contains ";" but that should
10372 # okay in the real world where ";" in dirpaths is itself problematic.
10373 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
10376 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
10379 # Ok, now we have the path, separated by spaces, we can step through it
10380 # and add multilib dir if necessary.
10381 lt_tmp_lt_search_path_spec=
10382 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10383 for lt_sys_path in $lt_search_path_spec; do
10384 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
10385 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
10387 test -d "$lt_sys_path" && \
10388 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10391 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
10392 BEGIN {RS=" "; FS="/|\n";} {
10395 for (lt_i = NF; lt_i > 0; lt_i--) {
10396 if ($lt_i != "" && $lt_i != ".") {
10397 if ($lt_i == "..") {
10400 if (lt_count == 0) {
10401 lt_foo="/" $lt_i lt_foo;
10408 if (lt_foo != "") { lt_freq[lt_foo]++; }
10409 if (lt_freq[lt_foo] == 1) { print lt_foo; }
10411 # AWK program above erroneously prepends '/' to C:/dos/paths
10414 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
10415 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
10417 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
10419 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10421 library_names_spec=
10422 libname_spec='lib$name'
10426 postuninstall_cmds=
10430 shlibpath_overrides_runpath=unknown
10432 dynamic_linker="$host_os ld.so"
10433 sys_lib_dlsearch_path_spec="/lib /usr/lib"
10434 need_lib_prefix=unknown
10435 hardcode_into_libs=no
10437 # when you set need_version to no, make sure it does not cause -set_version
10438 # flags to be left without arguments
10439 need_version=unknown
10444 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10445 shlibpath_var=LIBPATH
10447 # AIX 3 has no versioning support, so we append a major version to the name.
10448 soname_spec='${libname}${release}${shared_ext}$major'
10455 hardcode_into_libs=yes
10456 if test "$host_cpu" = ia64; then
10457 # AIX 5 supports IA64
10458 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10459 shlibpath_var=LD_LIBRARY_PATH
10461 # With GCC up to 2.95.x, collect2 would create an import file
10462 # for dependence libraries. The import file would start with
10463 # the line `#! .'. This would cause the generated library to
10464 # depend on `.', always an invalid library. This was fixed in
10465 # development snapshots of GCC prior to 3.0.
10467 aix4 | aix4.[01] | aix4.[01].*)
10468 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10470 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
10473 can_build_shared=no
10477 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10478 # soname into executable. Probably we can add versioning support to
10479 # collect2, so additional links can be useful in future.
10480 if test "$aix_use_runtimelinking" = yes; then
10481 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10482 # instead of lib<name>.a to let people know that these are not
10483 # typical AIX shared libraries.
10484 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10486 # We preserve .a as extension for shared libraries through AIX4.2
10487 # and later when we are not doing run time linking.
10488 library_names_spec='${libname}${release}.a $libname.a'
10489 soname_spec='${libname}${release}${shared_ext}$major'
10491 shlibpath_var=LIBPATH
10498 # Since July 2007 AmigaOS4 officially supports .so libraries.
10499 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10500 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10503 library_names_spec='$libname.ixlibrary $libname.a'
10504 # Create ${libname}_ixlibrary.a entries in /sys/libs.
10505 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'
10511 library_names_spec='${libname}${shared_ext}'
10512 dynamic_linker="$host_os ld.so"
10513 shlibpath_var=LIBRARY_PATH
10519 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10520 soname_spec='${libname}${release}${shared_ext}$major'
10521 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10522 shlibpath_var=LD_LIBRARY_PATH
10523 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10524 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10525 # the default ld.so.conf also contains /usr/contrib/lib and
10526 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10527 # libtool to hard-code these into programs
10530 cygwin* | mingw* | pw32* | cegcc*)
10531 version_type=windows
10536 case $GCC,$host_os in
10537 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
10538 library_names_spec='$libname.dll.a'
10539 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10540 postinstall_cmds='base_file=`basename \${file}`~
10541 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10542 dldir=$destdir/`dirname \$dlpath`~
10543 test -d \$dldir || mkdir -p \$dldir~
10544 $install_prog $dir/$dlname \$dldir/$dlname~
10545 chmod a+x \$dldir/$dlname~
10546 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10547 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10549 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10550 dlpath=$dir/\$dldll~
10552 shlibpath_overrides_runpath=yes
10556 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10557 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10559 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
10562 # MinGW DLLs use traditional 'lib' prefix
10563 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10566 # pw32 DLLs use 'pw' prefix rather than 'lib'
10567 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10573 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10576 dynamic_linker='Win32 ld.exe'
10577 # FIXME: first we should search . and the directory the executable is in
10581 darwin* | rhapsody*)
10582 dynamic_linker="$host_os dyld"
10583 version_type=darwin
10586 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10587 soname_spec='${libname}${release}${major}$shared_ext'
10588 shlibpath_overrides_runpath=yes
10589 shlibpath_var=DYLD_LIBRARY_PATH
10590 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10592 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10593 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10600 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10601 soname_spec='${libname}${release}${shared_ext}$major'
10602 shlibpath_var=LD_LIBRARY_PATH
10605 freebsd* | dragonfly*)
10606 # DragonFly does not have aout. When/if they implement a new
10607 # versioning mechanism, adjust this.
10608 if test -x /usr/bin/objformat; then
10609 objformat=`/usr/bin/objformat`
10612 freebsd[23].*) objformat=aout ;;
10613 *) objformat=elf ;;
10616 version_type=freebsd-$objformat
10617 case $version_type in
10619 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10624 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10628 shlibpath_var=LD_LIBRARY_PATH
10631 shlibpath_overrides_runpath=yes
10633 freebsd3.[01]* | freebsdelf3.[01]*)
10634 shlibpath_overrides_runpath=yes
10635 hardcode_into_libs=yes
10637 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10638 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10639 shlibpath_overrides_runpath=no
10640 hardcode_into_libs=yes
10642 *) # from 4.6 on, and DragonFly
10643 shlibpath_overrides_runpath=yes
10644 hardcode_into_libs=yes
10653 dynamic_linker="$host_os runtime_loader"
10654 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10655 soname_spec='${libname}${release}${shared_ext}$major'
10656 shlibpath_var=LIBRARY_PATH
10657 shlibpath_overrides_runpath=yes
10658 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
10659 hardcode_into_libs=yes
10662 hpux9* | hpux10* | hpux11*)
10663 # Give a soname corresponding to the major version so that dld.sl refuses to
10664 # link against other versions.
10671 hardcode_into_libs=yes
10672 dynamic_linker="$host_os dld.so"
10673 shlibpath_var=LD_LIBRARY_PATH
10674 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10675 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10676 soname_spec='${libname}${release}${shared_ext}$major'
10677 if test "X$HPUX_IA64_MODE" = X32; then
10678 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10680 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10682 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10686 hardcode_into_libs=yes
10687 dynamic_linker="$host_os dld.sl"
10688 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10689 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10690 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10691 soname_spec='${libname}${release}${shared_ext}$major'
10692 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10693 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10697 dynamic_linker="$host_os dld.sl"
10698 shlibpath_var=SHLIB_PATH
10699 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10700 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10701 soname_spec='${libname}${release}${shared_ext}$major'
10704 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
10705 postinstall_cmds='chmod 555 $lib'
10706 # or fails outright, so override atomically:
10707 install_override_mode=555
10714 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10715 soname_spec='${libname}${release}${shared_ext}$major'
10716 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10717 shlibpath_var=LD_LIBRARY_PATH
10718 shlibpath_overrides_runpath=no
10719 hardcode_into_libs=yes
10722 irix5* | irix6* | nonstopux*)
10724 nonstopux*) version_type=nonstopux ;;
10726 if test "$lt_cv_prog_gnu_ld" = yes; then
10734 soname_spec='${libname}${release}${shared_ext}$major'
10735 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10737 irix5* | nonstopux*)
10738 libsuff= shlibsuff=
10741 case $LD in # libtool.m4 will add one of these switches to LD
10742 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10743 libsuff= shlibsuff= libmagic=32-bit;;
10744 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10745 libsuff=32 shlibsuff=N32 libmagic=N32;;
10746 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10747 libsuff=64 shlibsuff=64 libmagic=64-bit;;
10748 *) libsuff= shlibsuff= libmagic=never-match;;
10752 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10753 shlibpath_overrides_runpath=no
10754 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10755 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10756 hardcode_into_libs=yes
10759 # No shared lib support for Linux oldld, aout, or coff.
10760 linux*oldld* | linux*aout* | linux*coff*)
10764 # This must be Linux ELF.
10765 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
10769 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10770 soname_spec='${libname}${release}${shared_ext}$major'
10771 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10772 shlibpath_var=LD_LIBRARY_PATH
10773 shlibpath_overrides_runpath=no
10775 # Some binutils ld are patched to set DT_RUNPATH
10776 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
10777 $as_echo_n "(cached) " >&6
10779 lt_cv_shlibpath_overrides_runpath=no
10780 save_LDFLAGS=$LDFLAGS
10781 save_libdir=$libdir
10782 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10783 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10784 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10785 /* end confdefs.h. */
10795 if ac_fn_c_try_link "$LINENO"; then :
10796 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
10797 lt_cv_shlibpath_overrides_runpath=yes
10800 rm -f core conftest.err conftest.$ac_objext \
10801 conftest$ac_exeext conftest.$ac_ext
10802 LDFLAGS=$save_LDFLAGS
10803 libdir=$save_libdir
10807 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
10809 # This implies no fast_install, which is unacceptable.
10810 # Some rework will be needed to allow for fast_install
10811 # before this can be enabled.
10812 hardcode_into_libs=yes
10814 # Append ld.so.conf contents to the search path
10815 if test -f /etc/ld.so.conf; then
10816 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' ' '`
10817 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10820 # We used to test for /lib/ld.so.1 and disable shared libraries on
10821 # powerpc, because MkLinux only supported shared libraries with the
10822 # GNU dynamic linker. Since this was broken with cross compilers,
10823 # most powerpc-linux boxes support dynamic linking these days and
10824 # people can always --disable-shared, the test was removed, and we
10825 # assume the GNU/Linux dynamic linker is in use.
10826 dynamic_linker='GNU/Linux ld.so'
10833 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10834 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10835 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10836 dynamic_linker='NetBSD (a.out) ld.so'
10838 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10839 soname_spec='${libname}${release}${shared_ext}$major'
10840 dynamic_linker='NetBSD ld.elf_so'
10842 shlibpath_var=LD_LIBRARY_PATH
10843 shlibpath_overrides_runpath=yes
10844 hardcode_into_libs=yes
10849 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10850 shlibpath_var=LD_LIBRARY_PATH
10851 shlibpath_overrides_runpath=yes
10858 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10859 soname_spec='${libname}${release}${shared_ext}$major'
10860 shlibpath_var=LD_LIBRARY_PATH
10861 shlibpath_overrides_runpath=no
10862 hardcode_into_libs=yes
10863 dynamic_linker='ldqnx.so'
10868 sys_lib_dlsearch_path_spec="/usr/lib"
10870 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10872 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
10873 *) need_version=no ;;
10875 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10876 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10877 shlibpath_var=LD_LIBRARY_PATH
10878 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10880 openbsd2.[89] | openbsd2.[89].*)
10881 shlibpath_overrides_runpath=no
10884 shlibpath_overrides_runpath=yes
10888 shlibpath_overrides_runpath=yes
10893 libname_spec='$name'
10896 library_names_spec='$libname${shared_ext} $libname.a'
10897 dynamic_linker='OS/2 ld.exe'
10898 shlibpath_var=LIBPATH
10901 osf3* | osf4* | osf5*)
10905 soname_spec='${libname}${release}${shared_ext}$major'
10906 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10907 shlibpath_var=LD_LIBRARY_PATH
10908 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10909 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10920 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10921 soname_spec='${libname}${release}${shared_ext}$major'
10922 shlibpath_var=LD_LIBRARY_PATH
10923 shlibpath_overrides_runpath=yes
10924 hardcode_into_libs=yes
10925 # ldd complains unless libraries are executable
10926 postinstall_cmds='chmod +x $lib'
10931 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10932 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10933 shlibpath_var=LD_LIBRARY_PATH
10934 shlibpath_overrides_runpath=yes
10935 if test "$with_gnu_ld" = yes; then
10943 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10944 soname_spec='${libname}${release}${shared_ext}$major'
10945 shlibpath_var=LD_LIBRARY_PATH
10946 case $host_vendor in
10948 shlibpath_overrides_runpath=no
10950 runpath_var=LD_RUN_PATH
10958 shlibpath_overrides_runpath=no
10959 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10965 if test -d /usr/nec ;then
10967 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10968 soname_spec='$libname${shared_ext}.$major'
10969 shlibpath_var=LD_LIBRARY_PATH
10973 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10974 version_type=freebsd-elf
10977 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10978 soname_spec='${libname}${release}${shared_ext}$major'
10979 shlibpath_var=LD_LIBRARY_PATH
10980 shlibpath_overrides_runpath=yes
10981 hardcode_into_libs=yes
10982 if test "$with_gnu_ld" = yes; then
10983 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10985 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10988 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10992 sys_lib_dlsearch_path_spec='/usr/lib'
10996 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
11000 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11001 shlibpath_var=LD_LIBRARY_PATH
11002 shlibpath_overrides_runpath=no
11003 hardcode_into_libs=yes
11008 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11009 soname_spec='${libname}${release}${shared_ext}$major'
11010 shlibpath_var=LD_LIBRARY_PATH
11017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
11018 $as_echo "$dynamic_linker" >&6; }
11019 test "$dynamic_linker" = no && can_build_shared=no
11021 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11022 if test "$GCC" = yes; then
11023 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11026 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
11027 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
11029 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
11030 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
11124 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
11125 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
11127 if test -n "$hardcode_libdir_flag_spec" ||
11128 test -n "$runpath_var" ||
11129 test "X$hardcode_automatic" = "Xyes" ; then
11131 # We can hardcode non-existent directories.
11132 if test "$hardcode_direct" != no &&
11133 # If the only mechanism to avoid hardcoding is shlibpath_var, we
11134 # have to relink, otherwise we might link with an installed library
11135 # when we should be linking with a yet-to-be-installed one
11136 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
11137 test "$hardcode_minus_L" != no; then
11138 # Linking always hardcodes the temporary library directory.
11139 hardcode_action=relink
11141 # We can link without hardcoding, and we can hardcode nonexisting dirs.
11142 hardcode_action=immediate
11145 # We cannot hardcode anything, or else we can only hardcode existing
11147 hardcode_action=unsupported
11149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
11150 $as_echo "$hardcode_action" >&6; }
11152 if test "$hardcode_action" = relink ||
11153 test "$inherit_rpath" = yes; then
11154 # Fast installation is not supported
11155 enable_fast_install=no
11156 elif test "$shlibpath_overrides_runpath" = yes ||
11157 test "$enable_shared" = no; then
11158 # Fast installation is not necessary
11159 enable_fast_install=needless
11167 if test "x$enable_dlopen" != xyes; then
11168 enable_dlopen=unknown
11169 enable_dlopen_self=unknown
11170 enable_dlopen_self_static=unknown
11177 lt_cv_dlopen="load_add_on"
11179 lt_cv_dlopen_self=yes
11182 mingw* | pw32* | cegcc*)
11183 lt_cv_dlopen="LoadLibrary"
11188 lt_cv_dlopen="dlopen"
11193 # if libdl is installed we need to link against it
11194 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11195 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11196 if ${ac_cv_lib_dl_dlopen+:} false; then :
11197 $as_echo_n "(cached) " >&6
11199 ac_check_lib_save_LIBS=$LIBS
11201 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11202 /* end confdefs.h. */
11204 /* Override any GCC internal prototype to avoid an error.
11205 Use char because int might match the return type of a GCC
11206 builtin and then its argument prototype would still apply. */
11219 if ac_fn_c_try_link "$LINENO"; then :
11220 ac_cv_lib_dl_dlopen=yes
11222 ac_cv_lib_dl_dlopen=no
11224 rm -f core conftest.err conftest.$ac_objext \
11225 conftest$ac_exeext conftest.$ac_ext
11226 LIBS=$ac_check_lib_save_LIBS
11228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11229 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11230 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11231 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11234 lt_cv_dlopen="dyld"
11236 lt_cv_dlopen_self=yes
11243 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
11244 if test "x$ac_cv_func_shl_load" = xyes; then :
11245 lt_cv_dlopen="shl_load"
11247 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
11248 $as_echo_n "checking for shl_load in -ldld... " >&6; }
11249 if ${ac_cv_lib_dld_shl_load+:} false; then :
11250 $as_echo_n "(cached) " >&6
11252 ac_check_lib_save_LIBS=$LIBS
11254 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11255 /* end confdefs.h. */
11257 /* Override any GCC internal prototype to avoid an error.
11258 Use char because int might match the return type of a GCC
11259 builtin and then its argument prototype would still apply. */
11267 return shl_load ();
11272 if ac_fn_c_try_link "$LINENO"; then :
11273 ac_cv_lib_dld_shl_load=yes
11275 ac_cv_lib_dld_shl_load=no
11277 rm -f core conftest.err conftest.$ac_objext \
11278 conftest$ac_exeext conftest.$ac_ext
11279 LIBS=$ac_check_lib_save_LIBS
11281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
11282 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
11283 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
11284 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
11286 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
11287 if test "x$ac_cv_func_dlopen" = xyes; then :
11288 lt_cv_dlopen="dlopen"
11290 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11291 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11292 if ${ac_cv_lib_dl_dlopen+:} false; then :
11293 $as_echo_n "(cached) " >&6
11295 ac_check_lib_save_LIBS=$LIBS
11297 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11298 /* end confdefs.h. */
11300 /* Override any GCC internal prototype to avoid an error.
11301 Use char because int might match the return type of a GCC
11302 builtin and then its argument prototype would still apply. */
11315 if ac_fn_c_try_link "$LINENO"; then :
11316 ac_cv_lib_dl_dlopen=yes
11318 ac_cv_lib_dl_dlopen=no
11320 rm -f core conftest.err conftest.$ac_objext \
11321 conftest$ac_exeext conftest.$ac_ext
11322 LIBS=$ac_check_lib_save_LIBS
11324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11325 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11326 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11327 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11329 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11330 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
11331 if ${ac_cv_lib_svld_dlopen+:} false; then :
11332 $as_echo_n "(cached) " >&6
11334 ac_check_lib_save_LIBS=$LIBS
11335 LIBS="-lsvld $LIBS"
11336 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11337 /* end confdefs.h. */
11339 /* Override any GCC internal prototype to avoid an error.
11340 Use char because int might match the return type of a GCC
11341 builtin and then its argument prototype would still apply. */
11354 if ac_fn_c_try_link "$LINENO"; then :
11355 ac_cv_lib_svld_dlopen=yes
11357 ac_cv_lib_svld_dlopen=no
11359 rm -f core conftest.err conftest.$ac_objext \
11360 conftest$ac_exeext conftest.$ac_ext
11361 LIBS=$ac_check_lib_save_LIBS
11363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11364 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11365 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
11366 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11368 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11369 $as_echo_n "checking for dld_link in -ldld... " >&6; }
11370 if ${ac_cv_lib_dld_dld_link+:} false; then :
11371 $as_echo_n "(cached) " >&6
11373 ac_check_lib_save_LIBS=$LIBS
11375 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11376 /* end confdefs.h. */
11378 /* Override any GCC internal prototype to avoid an error.
11379 Use char because int might match the return type of a GCC
11380 builtin and then its argument prototype would still apply. */
11388 return dld_link ();
11393 if ac_fn_c_try_link "$LINENO"; then :
11394 ac_cv_lib_dld_dld_link=yes
11396 ac_cv_lib_dld_dld_link=no
11398 rm -f core conftest.err conftest.$ac_objext \
11399 conftest$ac_exeext conftest.$ac_ext
11400 LIBS=$ac_check_lib_save_LIBS
11402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11403 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11404 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
11405 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
11426 if test "x$lt_cv_dlopen" != xno; then
11432 case $lt_cv_dlopen in
11434 save_CPPFLAGS="$CPPFLAGS"
11435 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11437 save_LDFLAGS="$LDFLAGS"
11438 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11441 LIBS="$lt_cv_dlopen_libs $LIBS"
11443 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
11444 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
11445 if ${lt_cv_dlopen_self+:} false; then :
11446 $as_echo_n "(cached) " >&6
11448 if test "$cross_compiling" = yes; then :
11449 lt_cv_dlopen_self=cross
11451 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11452 lt_status=$lt_dlunknown
11453 cat > conftest.$ac_ext <<_LT_EOF
11454 #line 11454 "configure"
11455 #include "confdefs.h"
11464 # define LT_DLGLOBAL RTLD_GLOBAL
11467 # define LT_DLGLOBAL DL_GLOBAL
11469 # define LT_DLGLOBAL 0
11473 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11474 find out it does not work in some platform. */
11475 #ifndef LT_DLLAZY_OR_NOW
11477 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11480 # define LT_DLLAZY_OR_NOW DL_LAZY
11483 # define LT_DLLAZY_OR_NOW RTLD_NOW
11486 # define LT_DLLAZY_OR_NOW DL_NOW
11488 # define LT_DLLAZY_OR_NOW 0
11495 /* When -fvisbility=hidden is used, assume the code has been annotated
11496 correspondingly for the symbols needed. */
11497 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11498 void fnord () __attribute__((visibility("default")));
11501 void fnord () { int i=42; }
11504 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11505 int status = $lt_dlunknown;
11509 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11512 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11513 else puts (dlerror ());
11515 /* dlclose (self); */
11523 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11524 (eval $ac_link) 2>&5
11526 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11527 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11528 (./conftest; exit; ) >&5 2>/dev/null
11530 case x$lt_status in
11531 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11532 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11533 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11536 # compilation failed
11537 lt_cv_dlopen_self=no
11544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11545 $as_echo "$lt_cv_dlopen_self" >&6; }
11547 if test "x$lt_cv_dlopen_self" = xyes; then
11548 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11549 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11550 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11551 if ${lt_cv_dlopen_self_static+:} false; then :
11552 $as_echo_n "(cached) " >&6
11554 if test "$cross_compiling" = yes; then :
11555 lt_cv_dlopen_self_static=cross
11557 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11558 lt_status=$lt_dlunknown
11559 cat > conftest.$ac_ext <<_LT_EOF
11560 #line 11560 "configure"
11561 #include "confdefs.h"
11570 # define LT_DLGLOBAL RTLD_GLOBAL
11573 # define LT_DLGLOBAL DL_GLOBAL
11575 # define LT_DLGLOBAL 0
11579 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11580 find out it does not work in some platform. */
11581 #ifndef LT_DLLAZY_OR_NOW
11583 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11586 # define LT_DLLAZY_OR_NOW DL_LAZY
11589 # define LT_DLLAZY_OR_NOW RTLD_NOW
11592 # define LT_DLLAZY_OR_NOW DL_NOW
11594 # define LT_DLLAZY_OR_NOW 0
11601 /* When -fvisbility=hidden is used, assume the code has been annotated
11602 correspondingly for the symbols needed. */
11603 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11604 void fnord () __attribute__((visibility("default")));
11607 void fnord () { int i=42; }
11610 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11611 int status = $lt_dlunknown;
11615 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11618 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11619 else puts (dlerror ());
11621 /* dlclose (self); */
11629 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11630 (eval $ac_link) 2>&5
11632 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11633 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11634 (./conftest; exit; ) >&5 2>/dev/null
11636 case x$lt_status in
11637 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11638 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11639 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11642 # compilation failed
11643 lt_cv_dlopen_self_static=no
11650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11651 $as_echo "$lt_cv_dlopen_self_static" >&6; }
11654 CPPFLAGS="$save_CPPFLAGS"
11655 LDFLAGS="$save_LDFLAGS"
11660 case $lt_cv_dlopen_self in
11661 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11662 *) enable_dlopen_self=unknown ;;
11665 case $lt_cv_dlopen_self_static in
11666 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11667 *) enable_dlopen_self_static=unknown ;;
11689 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11690 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
11691 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11692 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11693 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11695 $as_echo "yes" >&6; }
11697 # FIXME - insert some real tests, host_os isn't really good enough
11700 if test -n "$STRIP" ; then
11701 striplib="$STRIP -x"
11702 old_striplib="$STRIP -S"
11703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11704 $as_echo "yes" >&6; }
11706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11707 $as_echo "no" >&6; }
11711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11712 $as_echo "no" >&6; }
11728 # Report which library types will actually be built
11729 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
11730 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
11731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
11732 $as_echo "$can_build_shared" >&6; }
11734 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
11735 $as_echo_n "checking whether to build shared libraries... " >&6; }
11736 test "$can_build_shared" = "no" && enable_shared=no
11738 # On AIX, shared libraries and static libraries use the same namespace, and
11739 # are all built from PIC.
11742 test "$enable_shared" = yes && enable_static=no
11743 if test -n "$RANLIB"; then
11744 archive_cmds="$archive_cmds~\$RANLIB \$lib"
11745 postinstall_cmds='$RANLIB $lib'
11750 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11751 test "$enable_shared" = yes && enable_static=no
11755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
11756 $as_echo "$enable_shared" >&6; }
11758 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
11759 $as_echo_n "checking whether to build static libraries... " >&6; }
11760 # Make sure either enable_shared or enable_static is yes.
11761 test "$enable_shared" = yes || enable_static=yes
11762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
11763 $as_echo "$enable_static" >&6; }
11770 ac_cpp='$CPP $CPPFLAGS'
11771 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11772 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11773 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11777 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
11778 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
11779 (test "X$CXX" != "Xg++"))) ; then
11781 ac_cpp='$CXXCPP $CPPFLAGS'
11782 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11783 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11784 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11785 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
11786 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
11787 if test -z "$CXXCPP"; then
11788 if ${ac_cv_prog_CXXCPP+:} false; then :
11789 $as_echo_n "(cached) " >&6
11791 # Double quotes because CXXCPP needs to be expanded
11792 for CXXCPP in "$CXX -E" "/lib/cpp"
11794 ac_preproc_ok=false
11795 for ac_cxx_preproc_warn_flag in '' yes
11797 # Use a header file that comes with gcc, so configuring glibc
11798 # with a fresh cross-compiler works.
11799 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11800 # <limits.h> exists even on freestanding compilers.
11801 # On the NeXT, cc -E runs the code through the compiler's parser,
11802 # not just through cpp. "Syntax error" is here to catch this case.
11803 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11804 /* end confdefs.h. */
11806 # include <limits.h>
11808 # include <assert.h>
11812 if ac_fn_cxx_try_cpp "$LINENO"; then :
11815 # Broken: fails on valid input.
11818 rm -f conftest.err conftest.i conftest.$ac_ext
11820 # OK, works on sane cases. Now check whether nonexistent headers
11821 # can be detected and how.
11822 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11823 /* end confdefs.h. */
11824 #include <ac_nonexistent.h>
11826 if ac_fn_cxx_try_cpp "$LINENO"; then :
11827 # Broken: success on invalid input.
11830 # Passes both tests.
11834 rm -f conftest.err conftest.i conftest.$ac_ext
11837 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
11838 rm -f conftest.i conftest.err conftest.$ac_ext
11839 if $ac_preproc_ok; then :
11844 ac_cv_prog_CXXCPP=$CXXCPP
11847 CXXCPP=$ac_cv_prog_CXXCPP
11849 ac_cv_prog_CXXCPP=$CXXCPP
11851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
11852 $as_echo "$CXXCPP" >&6; }
11853 ac_preproc_ok=false
11854 for ac_cxx_preproc_warn_flag in '' yes
11856 # Use a header file that comes with gcc, so configuring glibc
11857 # with a fresh cross-compiler works.
11858 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11859 # <limits.h> exists even on freestanding compilers.
11860 # On the NeXT, cc -E runs the code through the compiler's parser,
11861 # not just through cpp. "Syntax error" is here to catch this case.
11862 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11863 /* end confdefs.h. */
11865 # include <limits.h>
11867 # include <assert.h>
11871 if ac_fn_cxx_try_cpp "$LINENO"; then :
11874 # Broken: fails on valid input.
11877 rm -f conftest.err conftest.i conftest.$ac_ext
11879 # OK, works on sane cases. Now check whether nonexistent headers
11880 # can be detected and how.
11881 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11882 /* end confdefs.h. */
11883 #include <ac_nonexistent.h>
11885 if ac_fn_cxx_try_cpp "$LINENO"; then :
11886 # Broken: success on invalid input.
11889 # Passes both tests.
11893 rm -f conftest.err conftest.i conftest.$ac_ext
11896 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
11897 rm -f conftest.i conftest.err conftest.$ac_ext
11898 if $ac_preproc_ok; then :
11901 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
11902 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
11903 as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
11904 See \`config.log' for more details" "$LINENO" 5; }
11908 ac_cpp='$CPP $CPPFLAGS'
11909 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11910 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11911 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11914 _lt_caught_CXX_error=yes
11918 ac_cpp='$CXXCPP $CPPFLAGS'
11919 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11920 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11921 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11923 archive_cmds_need_lc_CXX=no
11924 allow_undefined_flag_CXX=
11925 always_export_symbols_CXX=no
11926 archive_expsym_cmds_CXX=
11927 compiler_needs_object_CXX=no
11928 export_dynamic_flag_spec_CXX=
11929 hardcode_direct_CXX=no
11930 hardcode_direct_absolute_CXX=no
11931 hardcode_libdir_flag_spec_CXX=
11932 hardcode_libdir_flag_spec_ld_CXX=
11933 hardcode_libdir_separator_CXX=
11934 hardcode_minus_L_CXX=no
11935 hardcode_shlibpath_var_CXX=unsupported
11936 hardcode_automatic_CXX=no
11937 inherit_rpath_CXX=no
11939 module_expsym_cmds_CXX=
11940 link_all_deplibs_CXX=unknown
11941 old_archive_cmds_CXX=$old_archive_cmds
11942 reload_flag_CXX=$reload_flag
11943 reload_cmds_CXX=$reload_cmds
11944 no_undefined_flag_CXX=
11945 whole_archive_flag_spec_CXX=
11946 enable_shared_with_static_runtimes_CXX=no
11948 # Source file extension for C++ test sources.
11951 # Object file extension for compiled C++ test sources.
11955 # No sense in running all these tests if we already determined that
11956 # the CXX compiler isn't working. Some variables (like enable_shared)
11957 # are currently assumed to apply to all compilers on this platform,
11958 # and will be corrupted by setting them based on a non-working compiler.
11959 if test "$_lt_caught_CXX_error" != yes; then
11960 # Code to be used in simple compile tests
11961 lt_simple_compile_test_code="int some_variable = 0;"
11963 # Code to be used in simple link tests
11964 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
11966 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
11973 # If no C compiler was specified, use CC.
11976 # If no C compiler flags were specified, use CFLAGS.
11977 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
11979 # Allow CC to be a program name with arguments.
11983 # save warnings/boilerplate of simple test code
11984 ac_outfile=conftest.$ac_objext
11985 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
11986 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11987 _lt_compiler_boilerplate=`cat conftest.err`
11990 ac_outfile=conftest.$ac_objext
11991 echo "$lt_simple_link_test_code" >conftest.$ac_ext
11992 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11993 _lt_linker_boilerplate=`cat conftest.err`
11997 # Allow CC to be a program name with arguments.
12002 lt_save_with_gnu_ld=$with_gnu_ld
12003 lt_save_path_LD=$lt_cv_path_LD
12004 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
12005 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
12007 $as_unset lt_cv_prog_gnu_ld
12009 if test -n "${lt_cv_path_LDCXX+set}"; then
12010 lt_cv_path_LD=$lt_cv_path_LDCXX
12012 $as_unset lt_cv_path_LD
12014 test -z "${LDCXX+set}" || LD=$LDCXX
12018 for cc_temp in $compiler""; do
12020 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
12021 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
12026 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
12029 if test -n "$compiler"; then
12030 # We don't want -fno-exception when compiling C++ code, so set the
12031 # no_builtin_flag separately
12032 if test "$GXX" = yes; then
12033 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
12035 lt_prog_compiler_no_builtin_flag_CXX=
12038 if test "$GXX" = yes; then
12039 # Set up default GNU C++ configuration
12043 # Check whether --with-gnu-ld was given.
12044 if test "${with_gnu_ld+set}" = set; then :
12045 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
12051 if test "$GCC" = yes; then
12052 # Check if gcc -print-prog-name=ld gives a path.
12053 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
12054 $as_echo_n "checking for ld used by $CC... " >&6; }
12057 # gcc leaves a trailing carriage return which upsets mingw
12058 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
12060 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
12063 # Accept absolute paths.
12065 re_direlt='/[^/][^/]*/\.\./'
12066 # Canonicalize the pathname of ld
12067 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
12068 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
12069 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
12071 test -z "$LD" && LD="$ac_prog"
12074 # If it fails, then pretend we aren't using GCC.
12078 # If it is relative, then search for the first ld in PATH.
12079 with_gnu_ld=unknown
12082 elif test "$with_gnu_ld" = yes; then
12083 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
12084 $as_echo_n "checking for GNU ld... " >&6; }
12086 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
12087 $as_echo_n "checking for non-GNU ld... " >&6; }
12089 if ${lt_cv_path_LD+:} false; then :
12090 $as_echo_n "(cached) " >&6
12092 if test -z "$LD"; then
12093 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12094 for ac_dir in $PATH; do
12096 test -z "$ac_dir" && ac_dir=.
12097 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
12098 lt_cv_path_LD="$ac_dir/$ac_prog"
12099 # Check to see if the program is GNU ld. I'd rather use --version,
12100 # but apparently some variants of GNU ld only accept -v.
12101 # Break only if it was the GNU/non-GNU ld that we prefer.
12102 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
12103 *GNU* | *'with BFD'*)
12104 test "$with_gnu_ld" != no && break
12107 test "$with_gnu_ld" != yes && break
12114 lt_cv_path_LD="$LD" # Let the user override the test with a path.
12118 LD="$lt_cv_path_LD"
12119 if test -n "$LD"; then
12120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
12121 $as_echo "$LD" >&6; }
12123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12124 $as_echo "no" >&6; }
12126 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
12127 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
12128 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
12129 if ${lt_cv_prog_gnu_ld+:} false; then :
12130 $as_echo_n "(cached) " >&6
12132 # I'd rather use --version here, but apparently some GNU lds only accept -v.
12133 case `$LD -v 2>&1 </dev/null` in
12134 *GNU* | *'with BFD'*)
12135 lt_cv_prog_gnu_ld=yes
12138 lt_cv_prog_gnu_ld=no
12142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
12143 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
12144 with_gnu_ld=$lt_cv_prog_gnu_ld
12152 # Check if GNU C++ uses GNU ld as the underlying linker, since the
12153 # archiving commands below assume that GNU ld is being used.
12154 if test "$with_gnu_ld" = yes; then
12155 archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12156 archive_expsym_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12158 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12159 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12161 # If archive_cmds runs LD, not CC, wlarc should be empty
12162 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
12163 # investigate it a little bit more. (MM)
12166 # ancient GNU ld didn't support --whole-archive et. al.
12167 if eval "`$CC -print-prog-name=ld` --help 2>&1" |
12168 $GREP 'no-whole-archive' > /dev/null; then
12169 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12171 whole_archive_flag_spec_CXX=
12177 # A generic and very simple default shared library creation
12178 # command for GNU C++ for the case where it uses the native
12179 # linker, instead of GNU ld. If possible, this setting should
12180 # overridden to take advantage of the native linker features on
12181 # the platform it is being used on.
12182 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
12185 # Commands to make compiler produce verbose output that lists
12186 # what "hidden" libraries, object files and flags are used when
12187 # linking a shared library.
12188 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
12196 # PORTME: fill in a description of your system's C++ link characteristics
12197 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12198 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
12202 # FIXME: insert proper C++ library support
12206 if test "$host_cpu" = ia64; then
12207 # On IA64, the linker does run time linking by default, so we don't
12208 # have to do anything special.
12209 aix_use_runtimelinking=no
12210 exp_sym_flag='-Bexport'
12213 aix_use_runtimelinking=no
12215 # Test if we are trying to use run time linking or normal
12216 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
12217 # need to do runtime linking.
12218 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
12219 for ld_flag in $LDFLAGS; do
12222 aix_use_runtimelinking=yes
12230 exp_sym_flag='-bexport'
12231 no_entry_flag='-bnoentry'
12234 # When large executables or shared objects are built, AIX ld can
12235 # have problems creating the table of contents. If linking a library
12236 # or program results in "error TOC overflow" add -mminimal-toc to
12237 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
12238 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
12240 archive_cmds_CXX=''
12241 hardcode_direct_CXX=yes
12242 hardcode_direct_absolute_CXX=yes
12243 hardcode_libdir_separator_CXX=':'
12244 link_all_deplibs_CXX=yes
12245 file_list_spec_CXX='${wl}-f,'
12247 if test "$GXX" = yes; then
12248 case $host_os in aix4.[012]|aix4.[012].*)
12249 # We only want to do this on AIX 4.2 and lower, the check
12250 # below for broken collect2 doesn't work under 4.3+
12251 collect2name=`${CC} -print-prog-name=collect2`
12252 if test -f "$collect2name" &&
12253 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
12255 # We have reworked collect2
12258 # We have old collect2
12259 hardcode_direct_CXX=unsupported
12260 # It fails to find uninstalled libraries when the uninstalled
12261 # path is not listed in the libpath. Setting hardcode_minus_L
12262 # to unsupported forces relinking
12263 hardcode_minus_L_CXX=yes
12264 hardcode_libdir_flag_spec_CXX='-L$libdir'
12265 hardcode_libdir_separator_CXX=
12268 shared_flag='-shared'
12269 if test "$aix_use_runtimelinking" = yes; then
12270 shared_flag="$shared_flag "'${wl}-G'
12274 if test "$host_cpu" = ia64; then
12275 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
12276 # chokes on -Wl,-G. The following line is correct:
12279 if test "$aix_use_runtimelinking" = yes; then
12280 shared_flag='${wl}-G'
12282 shared_flag='${wl}-bM:SRE'
12287 export_dynamic_flag_spec_CXX='${wl}-bexpall'
12288 # It seems that -bexpall does not export symbols beginning with
12289 # underscore (_), so it is better to generate a list of symbols to
12291 always_export_symbols_CXX=yes
12292 if test "$aix_use_runtimelinking" = yes; then
12293 # Warning - without using the other runtime loading flags (-brtl),
12294 # -berok will link without error, but may produce a broken library.
12295 allow_undefined_flag_CXX='-berok'
12296 # Determine the default libpath from the value encoded in an empty
12298 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12299 /* end confdefs.h. */
12309 if ac_fn_cxx_try_link "$LINENO"; then :
12311 lt_aix_libpath_sed='
12312 /Import File Strings/,/^$/ {
12318 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12319 # Check for a 64-bit object if we didn't find anything.
12320 if test -z "$aix_libpath"; then
12321 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12324 rm -f core conftest.err conftest.$ac_objext \
12325 conftest$ac_exeext conftest.$ac_ext
12326 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
12328 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
12330 archive_expsym_cmds_CXX='$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"
12332 if test "$host_cpu" = ia64; then
12333 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
12334 allow_undefined_flag_CXX="-z nodefs"
12335 archive_expsym_cmds_CXX="\$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"
12337 # Determine the default libpath from the value encoded in an
12338 # empty executable.
12339 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12340 /* end confdefs.h. */
12350 if ac_fn_cxx_try_link "$LINENO"; then :
12352 lt_aix_libpath_sed='
12353 /Import File Strings/,/^$/ {
12359 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12360 # Check for a 64-bit object if we didn't find anything.
12361 if test -z "$aix_libpath"; then
12362 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12365 rm -f core conftest.err conftest.$ac_objext \
12366 conftest$ac_exeext conftest.$ac_ext
12367 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
12369 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
12370 # Warning - without using the other run time loading flags,
12371 # -berok will link without error, but may produce a broken library.
12372 no_undefined_flag_CXX=' ${wl}-bernotok'
12373 allow_undefined_flag_CXX=' ${wl}-berok'
12374 if test "$with_gnu_ld" = yes; then
12375 # We only use this code for GNU lds that support --whole-archive.
12376 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
12378 # Exported symbols can be pulled into shared objects from archives
12379 whole_archive_flag_spec_CXX='$convenience'
12381 archive_cmds_need_lc_CXX=yes
12382 # This is similar to how AIX traditionally builds its shared
12384 archive_expsym_cmds_CXX="\$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'
12390 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12391 allow_undefined_flag_CXX=unsupported
12393 # support --undefined. This deserves some investigation. FIXME
12394 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12401 case $cc_basename in
12403 # FIXME: insert proper C++ library support
12409 cygwin* | mingw* | pw32* | cegcc*)
12410 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
12411 # as there is no search path for DLLs.
12412 hardcode_libdir_flag_spec_CXX='-L$libdir'
12413 export_dynamic_flag_spec_CXX='${wl}--export-all-symbols'
12414 allow_undefined_flag_CXX=unsupported
12415 always_export_symbols_CXX=no
12416 enable_shared_with_static_runtimes_CXX=yes
12418 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
12419 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
12420 # If the export-symbols file already is a .def file (1st line
12421 # is EXPORTS), use it as is; otherwise, prepend...
12422 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
12423 cp $export_symbols $output_objdir/$soname.def;
12425 echo EXPORTS > $output_objdir/$soname.def;
12426 cat $export_symbols >> $output_objdir/$soname.def;
12428 $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
12433 darwin* | rhapsody*)
12436 archive_cmds_need_lc_CXX=no
12437 hardcode_direct_CXX=no
12438 hardcode_automatic_CXX=yes
12439 hardcode_shlibpath_var_CXX=unsupported
12440 if test "$lt_cv_ld_force_load" = "yes"; then
12441 whole_archive_flag_spec_CXX='`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience ${wl}-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`'
12443 whole_archive_flag_spec_CXX=''
12445 link_all_deplibs_CXX=yes
12446 allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
12447 case $cc_basename in
12448 ifort*) _lt_dar_can_shared=yes ;;
12449 *) _lt_dar_can_shared=$GCC ;;
12451 if test "$_lt_dar_can_shared" = "yes"; then
12452 output_verbose_link_cmd=func_echo_all
12453 archive_cmds_CXX="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
12454 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
12455 archive_expsym_cmds_CXX="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}"
12456 module_expsym_cmds_CXX="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}"
12457 if test "$lt_cv_apple_cc_single_mod" != "yes"; then
12458 archive_cmds_CXX="\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring${_lt_dsymutil}"
12459 archive_expsym_cmds_CXX="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring${_lt_dar_export_syms}${_lt_dsymutil}"
12469 case $cc_basename in
12471 # FIXME: insert proper C++ library support
12475 # Green Hills C++ Compiler
12476 # FIXME: insert proper C++ library support
12480 # FIXME: insert proper C++ library support
12487 # C++ shared libraries reported to be fairly broken before
12493 archive_cmds_need_lc_CXX=no
12496 freebsd* | dragonfly*)
12497 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
12506 archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12507 link_all_deplibs_CXX=yes
12511 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
12512 hardcode_libdir_separator_CXX=:
12513 export_dynamic_flag_spec_CXX='${wl}-E'
12514 hardcode_direct_CXX=yes
12515 hardcode_minus_L_CXX=yes # Not in the search PATH,
12516 # but as the default
12517 # location of the library.
12519 case $cc_basename in
12521 # FIXME: insert proper C++ library support
12525 archive_cmds_CXX='$RM $output_objdir/$soname~$CC -b ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
12526 # Commands to make compiler produce verbose output that lists
12527 # what "hidden" libraries, object files and flags are used when
12528 # linking a shared library.
12530 # There doesn't appear to be a way to prevent this compiler from
12531 # explicitly linking system object files so we need to strip them
12532 # from the output so that they don't get included in the library
12534 output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $EGREP "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
12537 if test "$GXX" = yes; then
12538 archive_cmds_CXX='$RM $output_objdir/$soname~$CC -shared -nostdlib -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
12540 # FIXME: insert proper C++ library support
12548 if test $with_gnu_ld = no; then
12549 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
12550 hardcode_libdir_separator_CXX=:
12556 export_dynamic_flag_spec_CXX='${wl}-E'
12562 hardcode_direct_CXX=no
12563 hardcode_shlibpath_var_CXX=no
12566 hardcode_direct_CXX=yes
12567 hardcode_direct_absolute_CXX=yes
12568 hardcode_minus_L_CXX=yes # Not in the search PATH,
12569 # but as the default
12570 # location of the library.
12574 case $cc_basename in
12576 # FIXME: insert proper C++ library support
12582 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12585 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12588 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12591 # Commands to make compiler produce verbose output that lists
12592 # what "hidden" libraries, object files and flags are used when
12593 # linking a shared library.
12595 # There doesn't appear to be a way to prevent this compiler from
12596 # explicitly linking system object files so we need to strip them
12597 # from the output so that they don't get included in the library
12599 output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $GREP "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
12602 if test "$GXX" = yes; then
12603 if test $with_gnu_ld = no; then
12606 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12609 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12612 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12617 # FIXME: insert proper C++ library support
12625 hardcode_direct_CXX=no
12626 hardcode_shlibpath_var_CXX=no
12627 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12628 export_dynamic_flag_spec_CXX='${wl}-E'
12629 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
12630 # Instead, shared libraries are loaded at an image base (0x10000000 by
12631 # default) and relocated if they conflict, which is a slow very memory
12632 # consuming and fragmenting process. To avoid this, we pick a random,
12633 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
12634 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
12635 archive_cmds_CXX='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
12636 archive_expsym_cmds_CXX='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'
12639 case $cc_basename in
12642 archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
12644 # Archives containing C++ object files must be created using
12645 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
12646 # necessary to make sure instantiated templates are included
12648 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
12651 if test "$GXX" = yes; then
12652 if test "$with_gnu_ld" = no; then
12653 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $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'
12655 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` -o $lib'
12658 link_all_deplibs_CXX=yes
12661 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12662 hardcode_libdir_separator_CXX=:
12663 inherit_rpath_CXX=yes
12666 linux* | k*bsd*-gnu | kopensolaris*-gnu)
12667 case $cc_basename in
12669 # Kuck and Associates, Inc. (KAI) C++ Compiler
12671 # KCC will only create a shared library if the output file
12672 # ends with ".so" (or ".sl" for HP-UX), so rename the library
12673 # to its proper name (with version) after linking.
12674 archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
12675 archive_expsym_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib ${wl}-retain-symbols-file,$export_symbols; mv \$templib $lib'
12676 # Commands to make compiler produce verbose output that lists
12677 # what "hidden" libraries, object files and flags are used when
12678 # linking a shared library.
12680 # There doesn't appear to be a way to prevent this compiler from
12681 # explicitly linking system object files so we need to strip them
12682 # from the output so that they don't get included in the library
12684 output_verbose_link_cmd='templist=`$CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 | $GREP "ld"`; rm -f libconftest$shared_ext; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
12686 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12687 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12689 # Archives containing C++ object files must be created using
12690 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
12691 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
12696 # version 8.0 and above of icpc choke on multiply defined symbols
12697 # if we add $predep_objects and $postdep_objects, however 7.1 and
12698 # earlier do not add the objects themselves.
12699 case `$CC -V 2>&1` in
12701 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12702 archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12704 *) # Version 8.0 or newer
12707 ia64*) tmp_idyn=' -i_dynamic';;
12709 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12710 archive_expsym_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12713 archive_cmds_need_lc_CXX=no
12714 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12715 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12716 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
12719 # Portland Group C++ compiler
12721 *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
12722 prelink_cmds_CXX='tpldir=Template.dir~
12724 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
12725 compile_command="$compile_command `find $tpldir -name \*.o | $NL2SP`"'
12726 old_archive_cmds_CXX='tpldir=Template.dir~
12728 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
12729 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | $NL2SP`~
12731 archive_cmds_CXX='tpldir=Template.dir~
12733 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
12734 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
12735 archive_expsym_cmds_CXX='tpldir=Template.dir~
12737 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
12738 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
12740 *) # Version 6 and above use weak symbols
12741 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
12742 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
12746 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
12747 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12748 whole_archive_flag_spec_CXX='${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'
12752 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12753 archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib ${wl}-retain-symbols-file $wl$export_symbols'
12755 runpath_var=LD_RUN_PATH
12756 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
12757 hardcode_libdir_separator_CXX=:
12759 # Commands to make compiler produce verbose output that lists
12760 # what "hidden" libraries, object files and flags are used when
12761 # linking a shared library.
12763 # There doesn't appear to be a way to prevent this compiler from
12764 # explicitly linking system object files so we need to strip them
12765 # from the output so that they don't get included in the library
12767 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld"`; templist=`func_echo_all "$templist" | $SED "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "X$list" | $Xsed'
12769 xl* | mpixl* | bgxl*)
12770 # IBM XL 8.0 on PPC, with GNU ld
12771 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12772 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12773 archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12774 if test "x$supports_anon_versioning" = xyes; then
12775 archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
12776 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
12777 echo "local: *; };" >> $output_objdir/$libname.ver~
12778 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
12782 case `$CC -V 2>&1 | sed 5q` in
12785 no_undefined_flag_CXX=' -zdefs'
12786 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12787 archive_expsym_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file ${wl}$export_symbols'
12788 hardcode_libdir_flag_spec_CXX='-R$libdir'
12789 whole_archive_flag_spec_CXX='${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'
12790 compiler_needs_object_CXX=yes
12792 # Not sure whether something based on
12793 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
12795 output_verbose_link_cmd='func_echo_all'
12797 # Archives containing C++ object files must be created using
12798 # "CC -xar", where "CC" is the Sun C++ compiler. This is
12799 # necessary to make sure instantiated templates are included
12801 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
12809 # FIXME: insert proper C++ library support
12814 # FIXME: insert proper C++ library support
12819 case $cc_basename in
12821 # FIXME: insert proper C++ library support
12825 # FIXME: insert proper C++ library support
12832 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
12833 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
12835 hardcode_libdir_flag_spec_CXX='-R$libdir'
12836 hardcode_direct_CXX=yes
12837 hardcode_shlibpath_var_CXX=no
12839 # Workaround some broken pre-1.5 toolchains
12840 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
12848 # C++ shared libraries are fairly broken
12853 if test -f /usr/libexec/ld.so; then
12854 hardcode_direct_CXX=yes
12855 hardcode_shlibpath_var_CXX=no
12856 hardcode_direct_absolute_CXX=yes
12857 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
12858 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12859 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12860 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
12861 export_dynamic_flag_spec_CXX='${wl}-E'
12862 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12864 output_verbose_link_cmd=func_echo_all
12870 osf3* | osf4* | osf5*)
12871 case $cc_basename in
12873 # Kuck and Associates, Inc. (KAI) C++ Compiler
12875 # KCC will only create a shared library if the output file
12876 # ends with ".so" (or ".sl" for HP-UX), so rename the library
12877 # to its proper name (with version) after linking.
12878 archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo "$lib" | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
12880 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12881 hardcode_libdir_separator_CXX=:
12883 # Archives containing C++ object files must be created using
12884 # the KAI C++ compiler.
12886 osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
12887 *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
12891 # Rational C++ 2.4.1
12892 # FIXME: insert proper C++ library support
12898 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12899 archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && func_echo_all "${wl}-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
12900 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12903 allow_undefined_flag_CXX=' -expect_unresolved \*'
12904 archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
12905 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
12906 echo "-hidden">> $lib.exp~
12907 $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname ${wl}-input ${wl}$lib.exp `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib~
12909 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
12913 hardcode_libdir_separator_CXX=:
12915 # Commands to make compiler produce verbose output that lists
12916 # what "hidden" libraries, object files and flags are used when
12917 # linking a shared library.
12919 # There doesn't appear to be a way to prevent this compiler from
12920 # explicitly linking system object files so we need to strip them
12921 # from the output so that they don't get included in the library
12923 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld" | $GREP -v "ld:"`; templist=`func_echo_all "$templist" | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
12926 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12927 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12930 archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $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'
12933 archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $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'
12937 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12938 hardcode_libdir_separator_CXX=:
12940 # Commands to make compiler produce verbose output that lists
12941 # what "hidden" libraries, object files and flags are used when
12942 # linking a shared library.
12943 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
12946 # FIXME: insert proper C++ library support
12954 # FIXME: insert proper C++ library support
12959 case $cc_basename in
12962 # FIXME: insert proper C++ library support
12967 # FIXME: insert proper C++ library support
12971 # FIXME: insert proper C++ library support
12978 case $cc_basename in
12980 # Sun C++ 4.2, 5.x and Centerline C++
12981 archive_cmds_need_lc_CXX=yes
12982 no_undefined_flag_CXX=' -zdefs'
12983 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12984 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
12985 $CC -G${allow_undefined_flag} ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
12987 hardcode_libdir_flag_spec_CXX='-R$libdir'
12988 hardcode_shlibpath_var_CXX=no
12990 solaris2.[0-5] | solaris2.[0-5].*) ;;
12992 # The compiler driver will combine and reorder linker options,
12993 # but understands `-z linker_flag'.
12994 # Supported since Solaris 2.6 (maybe 2.5.1?)
12995 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
12998 link_all_deplibs_CXX=yes
13000 output_verbose_link_cmd='func_echo_all'
13002 # Archives containing C++ object files must be created using
13003 # "CC -xar", where "CC" is the Sun C++ compiler. This is
13004 # necessary to make sure instantiated templates are included
13006 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
13009 # Green Hills C++ Compiler
13010 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13012 # The C++ compiler must be used to create the archive.
13013 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
13016 # GNU C++ compiler with Solaris linker
13017 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
13018 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
13019 if $CC --version | $GREP -v '^2\.7' > /dev/null; then
13020 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13021 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13022 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
13024 # Commands to make compiler produce verbose output that lists
13025 # what "hidden" libraries, object files and flags are used when
13026 # linking a shared library.
13027 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13029 # g++ 2.7 appears to require `-G' NOT `-shared' on this
13031 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13032 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13033 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
13035 # Commands to make compiler produce verbose output that lists
13036 # what "hidden" libraries, object files and flags are used when
13037 # linking a shared library.
13038 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13041 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
13043 solaris2.[0-5] | solaris2.[0-5].*) ;;
13045 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
13053 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
13054 no_undefined_flag_CXX='${wl}-z,text'
13055 archive_cmds_need_lc_CXX=no
13056 hardcode_shlibpath_var_CXX=no
13057 runpath_var='LD_RUN_PATH'
13059 case $cc_basename in
13061 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13062 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13065 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13066 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13071 sysv5* | sco3.2v5* | sco5v6*)
13072 # Note: We can NOT use -z defs as we might desire, because we do not
13073 # link with -lc, and that would cause any symbols used from libc to
13074 # always be unresolved, which means just about no library would
13075 # ever link correctly. If we're not using GNU ld we use -z text
13076 # though, which does catch some bad symbols but isn't as heavy-handed
13078 no_undefined_flag_CXX='${wl}-z,text'
13079 allow_undefined_flag_CXX='${wl}-z,nodefs'
13080 archive_cmds_need_lc_CXX=no
13081 hardcode_shlibpath_var_CXX=no
13082 hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
13083 hardcode_libdir_separator_CXX=':'
13084 link_all_deplibs_CXX=yes
13085 export_dynamic_flag_spec_CXX='${wl}-Bexport'
13086 runpath_var='LD_RUN_PATH'
13088 case $cc_basename in
13090 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13091 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13092 old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
13093 '"$old_archive_cmds_CXX"
13094 reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
13095 '"$reload_cmds_CXX"
13098 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13099 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13105 case $cc_basename in
13107 # NonStop-UX NCC 3.20
13108 # FIXME: insert proper C++ library support
13112 # FIXME: insert proper C++ library support
13119 # FIXME: insert proper C++ library support
13124 # FIXME: insert proper C++ library support
13129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
13130 $as_echo "$ld_shlibs_CXX" >&6; }
13131 test "$ld_shlibs_CXX" = no && can_build_shared=no
13137 ## There is no encapsulation within the following macros, do not change
13138 ## the running order or otherwise move them around unless you know exactly
13139 ## what you are doing...
13140 # Dependencies to place before and after the object being linked:
13141 predep_objects_CXX=
13142 postdep_objects_CXX=
13145 compiler_lib_search_path_CXX=
13147 cat > conftest.$ac_ext <<_LT_EOF
13151 Foo (void) { a = 0; }
13157 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13158 (eval $ac_compile) 2>&5
13160 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13161 test $ac_status = 0; }; then
13162 # Parse the compiler output and extract the necessary
13163 # objects, libraries and library flags.
13165 # Sentinel used to keep track of whether or not we are before
13166 # the conftest object file.
13167 pre_test_object_deps_done=no
13169 for p in `eval "$output_verbose_link_cmd"`; do
13173 # Some compilers place space between "-{L,R}" and the path.
13174 # Remove the space.
13175 if test $p = "-L" ||
13176 test $p = "-R"; then
13183 if test "$pre_test_object_deps_done" = no; then
13186 # Internal compiler library paths should come after those
13187 # provided the user. The postdeps already come after the
13188 # user supplied libs so there is no need to process them.
13189 if test -z "$compiler_lib_search_path_CXX"; then
13190 compiler_lib_search_path_CXX="${prev}${p}"
13192 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
13195 # The "-l" case would never come before the object being
13196 # linked, so don't bother handling this case.
13199 if test -z "$postdeps_CXX"; then
13200 postdeps_CXX="${prev}${p}"
13202 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
13208 # This assumes that the test object file only shows up
13209 # once in the compiler output.
13210 if test "$p" = "conftest.$objext"; then
13211 pre_test_object_deps_done=yes
13215 if test "$pre_test_object_deps_done" = no; then
13216 if test -z "$predep_objects_CXX"; then
13217 predep_objects_CXX="$p"
13219 predep_objects_CXX="$predep_objects_CXX $p"
13222 if test -z "$postdep_objects_CXX"; then
13223 postdep_objects_CXX="$p"
13225 postdep_objects_CXX="$postdep_objects_CXX $p"
13230 *) ;; # Ignore the rest.
13238 echo "libtool.m4: error: problem compiling CXX test program"
13241 $RM -f confest.$objext
13243 # PORTME: override above test on systems where it is broken
13246 # Interix 3.5 installs completely hosed .la files for C++, so rather than
13247 # hack all around it, let's just trust "g++" to DTRT.
13248 predep_objects_CXX=
13249 postdep_objects_CXX=
13254 case `$CC -V 2>&1 | sed 5q` in
13258 # The more standards-conforming stlport4 library is
13259 # incompatible with the Cstd library. Avoid specifying
13260 # it if it's in CXXFLAGS. Ignore libCrun as
13261 # -library=stlport4 depends on it.
13262 case " $CXX $CXXFLAGS " in
13263 *" -library=stlport4 "*)
13264 solaris_use_stlport4=yes
13268 if test "$solaris_use_stlport4" != yes; then
13269 postdeps_CXX='-library=Cstd -library=Crun'
13276 case $cc_basename in
13278 # The more standards-conforming stlport4 library is
13279 # incompatible with the Cstd library. Avoid specifying
13280 # it if it's in CXXFLAGS. Ignore libCrun as
13281 # -library=stlport4 depends on it.
13282 case " $CXX $CXXFLAGS " in
13283 *" -library=stlport4 "*)
13284 solaris_use_stlport4=yes
13288 # Adding this requires a known-good setup of shared libraries for
13289 # Sun compiler versions before 5.6, else PIC objects from an old
13290 # archive will be linked into the output, leading to subtle bugs.
13291 if test "$solaris_use_stlport4" != yes; then
13292 postdeps_CXX='-library=Cstd -library=Crun'
13300 case " $postdeps_CXX " in
13301 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
13303 compiler_lib_search_dirs_CXX=
13304 if test -n "${compiler_lib_search_path_CXX}"; then
13305 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
13338 lt_prog_compiler_wl_CXX=
13339 lt_prog_compiler_pic_CXX=
13340 lt_prog_compiler_static_CXX=
13342 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
13343 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
13345 # C++ specific cases for pic, static, wl, etc.
13346 if test "$GXX" = yes; then
13347 lt_prog_compiler_wl_CXX='-Wl,'
13348 lt_prog_compiler_static_CXX='-static'
13352 # All AIX code is PIC.
13353 if test "$host_cpu" = ia64; then
13354 # AIX 5 now supports IA64 processor
13355 lt_prog_compiler_static_CXX='-Bstatic'
13357 lt_prog_compiler_pic_CXX='-fPIC'
13363 # see comment about AmigaOS4 .so support
13364 lt_prog_compiler_pic_CXX='-fPIC'
13367 # FIXME: we need at least 68020 code to build shared libraries, but
13368 # adding the `-m68020' flag to GCC prevents building anything better,
13370 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
13375 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13376 # PIC is the default for these OSes.
13378 mingw* | cygwin* | os2* | pw32* | cegcc*)
13379 # This hack is so that the source file can tell whether it is being
13380 # built for inclusion in a dll (and should export symbols for example).
13381 # Although the cygwin gcc ignores -fPIC, still need this for old-style
13382 # (--disable-auto-import) libraries
13383 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
13385 darwin* | rhapsody*)
13386 # PIC is the default on this platform
13387 # Common symbols not allowed in MH_DYLIB files
13388 lt_prog_compiler_pic_CXX='-fno-common'
13391 # DJGPP does not support shared libraries at all
13392 lt_prog_compiler_pic_CXX=
13395 # PIC is the default for Haiku.
13396 # The "-static" flag exists, but is broken.
13397 lt_prog_compiler_static_CXX=
13400 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
13401 # Instead, we relocate shared libraries at runtime.
13404 if test -d /usr/nec; then
13405 lt_prog_compiler_pic_CXX=-Kconform_pic
13409 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
13410 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
13411 # sets the default TLS model and affects inlining.
13416 lt_prog_compiler_pic_CXX='-fPIC'
13421 # QNX uses GNU C++, but need to define -shared option too, otherwise
13422 # it will coredump.
13423 lt_prog_compiler_pic_CXX='-fPIC -shared'
13426 lt_prog_compiler_pic_CXX='-fPIC'
13432 # All AIX code is PIC.
13433 if test "$host_cpu" = ia64; then
13434 # AIX 5 now supports IA64 processor
13435 lt_prog_compiler_static_CXX='-Bstatic'
13437 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
13441 case $cc_basename in
13443 # Green Hills C++ Compiler
13444 # _LT_TAGVAR(lt_prog_compiler_static, CXX)="--no_auto_instantiation -u __main -u __premain -u _abort -r $COOL_DIR/lib/libOrb.a $MVME_DIR/lib/CC/libC.a $MVME_DIR/lib/classix/libcx.s.a"
13449 case $cc_basename in
13451 lt_prog_compiler_pic_CXX='-KPIC'
13454 # Green Hills C++ Compiler
13455 lt_prog_compiler_pic_CXX='-pic'
13461 freebsd* | dragonfly*)
13462 # FreeBSD uses GNU C++
13464 hpux9* | hpux10* | hpux11*)
13465 case $cc_basename in
13467 lt_prog_compiler_wl_CXX='-Wl,'
13468 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
13469 if test "$host_cpu" != ia64; then
13470 lt_prog_compiler_pic_CXX='+Z'
13474 lt_prog_compiler_wl_CXX='-Wl,'
13475 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
13481 lt_prog_compiler_pic_CXX='+Z'
13490 # This is c89, which is MS Visual C++ (no shared libs)
13491 # Anyone wants to do a port?
13493 irix5* | irix6* | nonstopux*)
13494 case $cc_basename in
13496 lt_prog_compiler_wl_CXX='-Wl,'
13497 lt_prog_compiler_static_CXX='-non_shared'
13498 # CC pic flag -KPIC is the default.
13504 linux* | k*bsd*-gnu | kopensolaris*-gnu)
13505 case $cc_basename in
13508 lt_prog_compiler_wl_CXX='--backend -Wl,'
13509 lt_prog_compiler_pic_CXX='-fPIC'
13512 # old Intel C++ for x86_64 which still supported -KPIC.
13513 lt_prog_compiler_wl_CXX='-Wl,'
13514 lt_prog_compiler_pic_CXX='-KPIC'
13515 lt_prog_compiler_static_CXX='-static'
13518 # Intel C++, used to be incompatible with GCC.
13519 # ICC 10 doesn't accept -KPIC any more.
13520 lt_prog_compiler_wl_CXX='-Wl,'
13521 lt_prog_compiler_pic_CXX='-fPIC'
13522 lt_prog_compiler_static_CXX='-static'
13525 # Portland Group C++ compiler
13526 lt_prog_compiler_wl_CXX='-Wl,'
13527 lt_prog_compiler_pic_CXX='-fpic'
13528 lt_prog_compiler_static_CXX='-Bstatic'
13532 # Make sure the PIC flag is empty. It appears that all Alpha
13533 # Linux and Compaq Tru64 Unix objects are PIC.
13534 lt_prog_compiler_pic_CXX=
13535 lt_prog_compiler_static_CXX='-non_shared'
13537 xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
13538 # IBM XL 8.0, 9.0 on PPC and BlueGene
13539 lt_prog_compiler_wl_CXX='-Wl,'
13540 lt_prog_compiler_pic_CXX='-qpic'
13541 lt_prog_compiler_static_CXX='-qstaticlink'
13544 case `$CC -V 2>&1 | sed 5q` in
13547 lt_prog_compiler_pic_CXX='-KPIC'
13548 lt_prog_compiler_static_CXX='-Bstatic'
13549 lt_prog_compiler_wl_CXX='-Qoption ld '
13560 case $cc_basename in
13562 lt_prog_compiler_pic_CXX='-W c,exportall'
13571 # QNX uses GNU C++, but need to define -shared option too, otherwise
13572 # it will coredump.
13573 lt_prog_compiler_pic_CXX='-fPIC -shared'
13575 osf3* | osf4* | osf5*)
13576 case $cc_basename in
13578 lt_prog_compiler_wl_CXX='--backend -Wl,'
13581 # Rational C++ 2.4.1
13582 lt_prog_compiler_pic_CXX='-pic'
13585 # Digital/Compaq C++
13586 lt_prog_compiler_wl_CXX='-Wl,'
13587 # Make sure the PIC flag is empty. It appears that all Alpha
13588 # Linux and Compaq Tru64 Unix objects are PIC.
13589 lt_prog_compiler_pic_CXX=
13590 lt_prog_compiler_static_CXX='-non_shared'
13599 case $cc_basename in
13601 # Sun C++ 4.2, 5.x and Centerline C++
13602 lt_prog_compiler_pic_CXX='-KPIC'
13603 lt_prog_compiler_static_CXX='-Bstatic'
13604 lt_prog_compiler_wl_CXX='-Qoption ld '
13607 # Green Hills C++ Compiler
13608 lt_prog_compiler_pic_CXX='-PIC'
13615 case $cc_basename in
13618 lt_prog_compiler_pic_CXX='-pic'
13619 lt_prog_compiler_static_CXX='-Bstatic'
13623 lt_prog_compiler_pic_CXX='-pic'
13629 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
13630 case $cc_basename in
13632 lt_prog_compiler_wl_CXX='-Wl,'
13633 lt_prog_compiler_pic_CXX='-KPIC'
13634 lt_prog_compiler_static_CXX='-Bstatic'
13639 case $cc_basename in
13641 # NonStop-UX NCC 3.20
13642 lt_prog_compiler_pic_CXX='-KPIC'
13651 lt_prog_compiler_can_build_shared_CXX=no
13657 # For platforms which do not support PIC, -DPIC is meaningless:
13659 lt_prog_compiler_pic_CXX=
13662 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
13665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_CXX" >&5
13666 $as_echo "$lt_prog_compiler_pic_CXX" >&6; }
13671 # Check to make sure the PIC flag actually works.
13673 if test -n "$lt_prog_compiler_pic_CXX"; then
13674 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
13675 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
13676 if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then :
13677 $as_echo_n "(cached) " >&6
13679 lt_cv_prog_compiler_pic_works_CXX=no
13680 ac_outfile=conftest.$ac_objext
13681 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13682 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
13683 # Insert the option either (1) after the last *FLAGS variable, or
13684 # (2) before a word containing "conftest.", or (3) at the end.
13685 # Note that $ac_compile itself does not contain backslashes and begins
13686 # with a dollar sign (not a hyphen), so the echo should work correctly.
13687 # The option is referenced via a variable to avoid confusing sed.
13688 lt_compile=`echo "$ac_compile" | $SED \
13689 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13690 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13691 -e 's:$: $lt_compiler_flag:'`
13692 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
13693 (eval "$lt_compile" 2>conftest.err)
13695 cat conftest.err >&5
13696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13697 if (exit $ac_status) && test -s "$ac_outfile"; then
13698 # The compiler can only warn and ignore the option if not recognized
13699 # So say no if there are warnings other than the usual output.
13700 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
13701 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13702 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
13703 lt_cv_prog_compiler_pic_works_CXX=yes
13709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
13710 $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
13712 if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
13713 case $lt_prog_compiler_pic_CXX in
13715 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
13718 lt_prog_compiler_pic_CXX=
13719 lt_prog_compiler_can_build_shared_CXX=no
13727 # Check to make sure the static flag actually works.
13729 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
13730 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
13731 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
13732 if ${lt_cv_prog_compiler_static_works_CXX+:} false; then :
13733 $as_echo_n "(cached) " >&6
13735 lt_cv_prog_compiler_static_works_CXX=no
13736 save_LDFLAGS="$LDFLAGS"
13737 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
13738 echo "$lt_simple_link_test_code" > conftest.$ac_ext
13739 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
13740 # The linker can only warn and ignore the option if not recognized
13741 # So say no if there are warnings
13742 if test -s conftest.err; then
13743 # Append any errors to the config.log.
13744 cat conftest.err 1>&5
13745 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
13746 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13747 if diff conftest.exp conftest.er2 >/dev/null; then
13748 lt_cv_prog_compiler_static_works_CXX=yes
13751 lt_cv_prog_compiler_static_works_CXX=yes
13755 LDFLAGS="$save_LDFLAGS"
13758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
13759 $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
13761 if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
13764 lt_prog_compiler_static_CXX=
13770 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
13771 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
13772 if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
13773 $as_echo_n "(cached) " >&6
13775 lt_cv_prog_compiler_c_o_CXX=no
13776 $RM -r conftest 2>/dev/null
13780 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13782 lt_compiler_flag="-o out/conftest2.$ac_objext"
13783 # Insert the option either (1) after the last *FLAGS variable, or
13784 # (2) before a word containing "conftest.", or (3) at the end.
13785 # Note that $ac_compile itself does not contain backslashes and begins
13786 # with a dollar sign (not a hyphen), so the echo should work correctly.
13787 lt_compile=`echo "$ac_compile" | $SED \
13788 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13789 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13790 -e 's:$: $lt_compiler_flag:'`
13791 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
13792 (eval "$lt_compile" 2>out/conftest.err)
13794 cat out/conftest.err >&5
13795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13796 if (exit $ac_status) && test -s out/conftest2.$ac_objext
13798 # The compiler can only warn and ignore the option if not recognized
13799 # So say no if there are warnings
13800 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
13801 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
13802 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
13803 lt_cv_prog_compiler_c_o_CXX=yes
13808 # SGI C++ compiler will create directory out/ii_files/ for
13809 # template instantiation
13810 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
13811 $RM out/* && rmdir out
13817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
13818 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
13822 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
13823 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
13824 if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
13825 $as_echo_n "(cached) " >&6
13827 lt_cv_prog_compiler_c_o_CXX=no
13828 $RM -r conftest 2>/dev/null
13832 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13834 lt_compiler_flag="-o out/conftest2.$ac_objext"
13835 # Insert the option either (1) after the last *FLAGS variable, or
13836 # (2) before a word containing "conftest.", or (3) at the end.
13837 # Note that $ac_compile itself does not contain backslashes and begins
13838 # with a dollar sign (not a hyphen), so the echo should work correctly.
13839 lt_compile=`echo "$ac_compile" | $SED \
13840 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13841 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13842 -e 's:$: $lt_compiler_flag:'`
13843 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
13844 (eval "$lt_compile" 2>out/conftest.err)
13846 cat out/conftest.err >&5
13847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13848 if (exit $ac_status) && test -s out/conftest2.$ac_objext
13850 # The compiler can only warn and ignore the option if not recognized
13851 # So say no if there are warnings
13852 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
13853 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
13854 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
13855 lt_cv_prog_compiler_c_o_CXX=yes
13860 # SGI C++ compiler will create directory out/ii_files/ for
13861 # template instantiation
13862 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
13863 $RM out/* && rmdir out
13869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
13870 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
13875 hard_links="nottested"
13876 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
13877 # do not overwrite the value of need_locks provided by the user
13878 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
13879 $as_echo_n "checking if we can lock with hard links... " >&6; }
13882 ln conftest.a conftest.b 2>/dev/null && hard_links=no
13884 ln conftest.a conftest.b 2>&5 || hard_links=no
13885 ln conftest.a conftest.b 2>/dev/null && hard_links=no
13886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
13887 $as_echo "$hard_links" >&6; }
13888 if test "$hard_links" = no; then
13889 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
13890 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
13899 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13900 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
13902 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13905 # If we're using GNU nm, then we don't want the "-C" option.
13906 # -C means demangle to AIX nm, but means don't demangle with GNU nm
13907 # Also, AIX nm treats weak defined symbols like other global defined
13908 # symbols, whereas GNU nm marks them as "W".
13909 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
13910 export_symbols_cmds_CXX='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
13912 export_symbols_cmds_CXX='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "L")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
13916 export_symbols_cmds_CXX="$ltdll_cmds"
13918 cygwin* | mingw* | cegcc*)
13919 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;/^.*[ ]__nm__/s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols'
13922 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13925 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
13927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
13928 $as_echo "$ld_shlibs_CXX" >&6; }
13929 test "$ld_shlibs_CXX" = no && can_build_shared=no
13931 with_gnu_ld_CXX=$with_gnu_ld
13939 # Do we need to explicitly link libc?
13941 case "x$archive_cmds_need_lc_CXX" in
13943 # Assume -lc should be added
13944 archive_cmds_need_lc_CXX=yes
13946 if test "$enable_shared" = yes && test "$GCC" = yes; then
13947 case $archive_cmds_CXX in
13949 # FIXME: we may have to deal with multi-command sequences.
13952 # Test whether the compiler implicitly links with -lc since on some
13953 # systems, -lgcc has to come before -lc. If gcc already passes -lc
13954 # to ld, don't add -lc before -lgcc.
13955 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
13956 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
13957 if ${lt_cv_archive_cmds_need_lc_CXX+:} false; then :
13958 $as_echo_n "(cached) " >&6
13961 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13963 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13964 (eval $ac_compile) 2>&5
13966 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13967 test $ac_status = 0; } 2>conftest.err; then
13970 libobjs=conftest.$ac_objext
13972 wl=$lt_prog_compiler_wl_CXX
13973 pic_flag=$lt_prog_compiler_pic_CXX
13979 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
13980 allow_undefined_flag_CXX=
13981 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
13982 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
13984 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13985 test $ac_status = 0; }
13987 lt_cv_archive_cmds_need_lc_CXX=no
13989 lt_cv_archive_cmds_need_lc_CXX=yes
13991 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
13993 cat conftest.err 1>&5
13998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
13999 $as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
14000 archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
14070 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
14071 $as_echo_n "checking dynamic linker characteristics... " >&6; }
14073 library_names_spec=
14074 libname_spec='lib$name'
14078 postuninstall_cmds=
14082 shlibpath_overrides_runpath=unknown
14084 dynamic_linker="$host_os ld.so"
14085 sys_lib_dlsearch_path_spec="/lib /usr/lib"
14086 need_lib_prefix=unknown
14087 hardcode_into_libs=no
14089 # when you set need_version to no, make sure it does not cause -set_version
14090 # flags to be left without arguments
14091 need_version=unknown
14096 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
14097 shlibpath_var=LIBPATH
14099 # AIX 3 has no versioning support, so we append a major version to the name.
14100 soname_spec='${libname}${release}${shared_ext}$major'
14107 hardcode_into_libs=yes
14108 if test "$host_cpu" = ia64; then
14109 # AIX 5 supports IA64
14110 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
14111 shlibpath_var=LD_LIBRARY_PATH
14113 # With GCC up to 2.95.x, collect2 would create an import file
14114 # for dependence libraries. The import file would start with
14115 # the line `#! .'. This would cause the generated library to
14116 # depend on `.', always an invalid library. This was fixed in
14117 # development snapshots of GCC prior to 3.0.
14119 aix4 | aix4.[01] | aix4.[01].*)
14120 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
14122 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
14125 can_build_shared=no
14129 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
14130 # soname into executable. Probably we can add versioning support to
14131 # collect2, so additional links can be useful in future.
14132 if test "$aix_use_runtimelinking" = yes; then
14133 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
14134 # instead of lib<name>.a to let people know that these are not
14135 # typical AIX shared libraries.
14136 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14138 # We preserve .a as extension for shared libraries through AIX4.2
14139 # and later when we are not doing run time linking.
14140 library_names_spec='${libname}${release}.a $libname.a'
14141 soname_spec='${libname}${release}${shared_ext}$major'
14143 shlibpath_var=LIBPATH
14150 # Since July 2007 AmigaOS4 officially supports .so libraries.
14151 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
14152 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14155 library_names_spec='$libname.ixlibrary $libname.a'
14156 # Create ${libname}_ixlibrary.a entries in /sys/libs.
14157 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'
14163 library_names_spec='${libname}${shared_ext}'
14164 dynamic_linker="$host_os ld.so"
14165 shlibpath_var=LIBRARY_PATH
14171 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14172 soname_spec='${libname}${release}${shared_ext}$major'
14173 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
14174 shlibpath_var=LD_LIBRARY_PATH
14175 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
14176 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
14177 # the default ld.so.conf also contains /usr/contrib/lib and
14178 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
14179 # libtool to hard-code these into programs
14182 cygwin* | mingw* | pw32* | cegcc*)
14183 version_type=windows
14188 case $GCC,$host_os in
14189 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
14190 library_names_spec='$libname.dll.a'
14191 # DLL is installed to $(libdir)/../bin by postinstall_cmds
14192 postinstall_cmds='base_file=`basename \${file}`~
14193 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
14194 dldir=$destdir/`dirname \$dlpath`~
14195 test -d \$dldir || mkdir -p \$dldir~
14196 $install_prog $dir/$dlname \$dldir/$dlname~
14197 chmod a+x \$dldir/$dlname~
14198 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
14199 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
14201 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14202 dlpath=$dir/\$dldll~
14204 shlibpath_overrides_runpath=yes
14208 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
14209 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14213 # MinGW DLLs use traditional 'lib' prefix
14214 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14217 # pw32 DLLs use 'pw' prefix rather than 'lib'
14218 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14224 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
14227 dynamic_linker='Win32 ld.exe'
14228 # FIXME: first we should search . and the directory the executable is in
14232 darwin* | rhapsody*)
14233 dynamic_linker="$host_os dyld"
14234 version_type=darwin
14237 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
14238 soname_spec='${libname}${release}${major}$shared_ext'
14239 shlibpath_overrides_runpath=yes
14240 shlibpath_var=DYLD_LIBRARY_PATH
14241 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
14243 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
14250 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
14251 soname_spec='${libname}${release}${shared_ext}$major'
14252 shlibpath_var=LD_LIBRARY_PATH
14255 freebsd* | dragonfly*)
14256 # DragonFly does not have aout. When/if they implement a new
14257 # versioning mechanism, adjust this.
14258 if test -x /usr/bin/objformat; then
14259 objformat=`/usr/bin/objformat`
14262 freebsd[23].*) objformat=aout ;;
14263 *) objformat=elf ;;
14266 version_type=freebsd-$objformat
14267 case $version_type in
14269 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14274 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
14278 shlibpath_var=LD_LIBRARY_PATH
14281 shlibpath_overrides_runpath=yes
14283 freebsd3.[01]* | freebsdelf3.[01]*)
14284 shlibpath_overrides_runpath=yes
14285 hardcode_into_libs=yes
14287 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
14288 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
14289 shlibpath_overrides_runpath=no
14290 hardcode_into_libs=yes
14292 *) # from 4.6 on, and DragonFly
14293 shlibpath_overrides_runpath=yes
14294 hardcode_into_libs=yes
14303 dynamic_linker="$host_os runtime_loader"
14304 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14305 soname_spec='${libname}${release}${shared_ext}$major'
14306 shlibpath_var=LIBRARY_PATH
14307 shlibpath_overrides_runpath=yes
14308 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
14309 hardcode_into_libs=yes
14312 hpux9* | hpux10* | hpux11*)
14313 # Give a soname corresponding to the major version so that dld.sl refuses to
14314 # link against other versions.
14321 hardcode_into_libs=yes
14322 dynamic_linker="$host_os dld.so"
14323 shlibpath_var=LD_LIBRARY_PATH
14324 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14325 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14326 soname_spec='${libname}${release}${shared_ext}$major'
14327 if test "X$HPUX_IA64_MODE" = X32; then
14328 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
14330 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
14332 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14336 hardcode_into_libs=yes
14337 dynamic_linker="$host_os dld.sl"
14338 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
14339 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14340 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14341 soname_spec='${libname}${release}${shared_ext}$major'
14342 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
14343 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14347 dynamic_linker="$host_os dld.sl"
14348 shlibpath_var=SHLIB_PATH
14349 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
14350 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14351 soname_spec='${libname}${release}${shared_ext}$major'
14354 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
14355 postinstall_cmds='chmod 555 $lib'
14356 # or fails outright, so override atomically:
14357 install_override_mode=555
14364 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14365 soname_spec='${libname}${release}${shared_ext}$major'
14366 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
14367 shlibpath_var=LD_LIBRARY_PATH
14368 shlibpath_overrides_runpath=no
14369 hardcode_into_libs=yes
14372 irix5* | irix6* | nonstopux*)
14374 nonstopux*) version_type=nonstopux ;;
14376 if test "$lt_cv_prog_gnu_ld" = yes; then
14384 soname_spec='${libname}${release}${shared_ext}$major'
14385 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
14387 irix5* | nonstopux*)
14388 libsuff= shlibsuff=
14391 case $LD in # libtool.m4 will add one of these switches to LD
14392 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
14393 libsuff= shlibsuff= libmagic=32-bit;;
14394 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
14395 libsuff=32 shlibsuff=N32 libmagic=N32;;
14396 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
14397 libsuff=64 shlibsuff=64 libmagic=64-bit;;
14398 *) libsuff= shlibsuff= libmagic=never-match;;
14402 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
14403 shlibpath_overrides_runpath=no
14404 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
14405 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
14406 hardcode_into_libs=yes
14409 # No shared lib support for Linux oldld, aout, or coff.
14410 linux*oldld* | linux*aout* | linux*coff*)
14414 # This must be Linux ELF.
14415 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
14419 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14420 soname_spec='${libname}${release}${shared_ext}$major'
14421 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
14422 shlibpath_var=LD_LIBRARY_PATH
14423 shlibpath_overrides_runpath=no
14425 # Some binutils ld are patched to set DT_RUNPATH
14426 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
14427 $as_echo_n "(cached) " >&6
14429 lt_cv_shlibpath_overrides_runpath=no
14430 save_LDFLAGS=$LDFLAGS
14431 save_libdir=$libdir
14432 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
14433 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
14434 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14435 /* end confdefs.h. */
14445 if ac_fn_cxx_try_link "$LINENO"; then :
14446 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
14447 lt_cv_shlibpath_overrides_runpath=yes
14450 rm -f core conftest.err conftest.$ac_objext \
14451 conftest$ac_exeext conftest.$ac_ext
14452 LDFLAGS=$save_LDFLAGS
14453 libdir=$save_libdir
14457 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
14459 # This implies no fast_install, which is unacceptable.
14460 # Some rework will be needed to allow for fast_install
14461 # before this can be enabled.
14462 hardcode_into_libs=yes
14464 # Append ld.so.conf contents to the search path
14465 if test -f /etc/ld.so.conf; then
14466 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' ' '`
14467 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
14470 # We used to test for /lib/ld.so.1 and disable shared libraries on
14471 # powerpc, because MkLinux only supported shared libraries with the
14472 # GNU dynamic linker. Since this was broken with cross compilers,
14473 # most powerpc-linux boxes support dynamic linking these days and
14474 # people can always --disable-shared, the test was removed, and we
14475 # assume the GNU/Linux dynamic linker is in use.
14476 dynamic_linker='GNU/Linux ld.so'
14483 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
14484 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14485 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14486 dynamic_linker='NetBSD (a.out) ld.so'
14488 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14489 soname_spec='${libname}${release}${shared_ext}$major'
14490 dynamic_linker='NetBSD ld.elf_so'
14492 shlibpath_var=LD_LIBRARY_PATH
14493 shlibpath_overrides_runpath=yes
14494 hardcode_into_libs=yes
14499 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14500 shlibpath_var=LD_LIBRARY_PATH
14501 shlibpath_overrides_runpath=yes
14508 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14509 soname_spec='${libname}${release}${shared_ext}$major'
14510 shlibpath_var=LD_LIBRARY_PATH
14511 shlibpath_overrides_runpath=no
14512 hardcode_into_libs=yes
14513 dynamic_linker='ldqnx.so'
14518 sys_lib_dlsearch_path_spec="/usr/lib"
14520 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
14522 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
14523 *) need_version=no ;;
14525 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14526 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14527 shlibpath_var=LD_LIBRARY_PATH
14528 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14530 openbsd2.[89] | openbsd2.[89].*)
14531 shlibpath_overrides_runpath=no
14534 shlibpath_overrides_runpath=yes
14538 shlibpath_overrides_runpath=yes
14543 libname_spec='$name'
14546 library_names_spec='$libname${shared_ext} $libname.a'
14547 dynamic_linker='OS/2 ld.exe'
14548 shlibpath_var=LIBPATH
14551 osf3* | osf4* | osf5*)
14555 soname_spec='${libname}${release}${shared_ext}$major'
14556 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14557 shlibpath_var=LD_LIBRARY_PATH
14558 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
14559 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
14570 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14571 soname_spec='${libname}${release}${shared_ext}$major'
14572 shlibpath_var=LD_LIBRARY_PATH
14573 shlibpath_overrides_runpath=yes
14574 hardcode_into_libs=yes
14575 # ldd complains unless libraries are executable
14576 postinstall_cmds='chmod +x $lib'
14581 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14582 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
14583 shlibpath_var=LD_LIBRARY_PATH
14584 shlibpath_overrides_runpath=yes
14585 if test "$with_gnu_ld" = yes; then
14593 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14594 soname_spec='${libname}${release}${shared_ext}$major'
14595 shlibpath_var=LD_LIBRARY_PATH
14596 case $host_vendor in
14598 shlibpath_overrides_runpath=no
14600 runpath_var=LD_RUN_PATH
14608 shlibpath_overrides_runpath=no
14609 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
14615 if test -d /usr/nec ;then
14617 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
14618 soname_spec='$libname${shared_ext}.$major'
14619 shlibpath_var=LD_LIBRARY_PATH
14623 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
14624 version_type=freebsd-elf
14627 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14628 soname_spec='${libname}${release}${shared_ext}$major'
14629 shlibpath_var=LD_LIBRARY_PATH
14630 shlibpath_overrides_runpath=yes
14631 hardcode_into_libs=yes
14632 if test "$with_gnu_ld" = yes; then
14633 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
14635 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
14638 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
14642 sys_lib_dlsearch_path_spec='/usr/lib'
14646 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
14650 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14651 shlibpath_var=LD_LIBRARY_PATH
14652 shlibpath_overrides_runpath=no
14653 hardcode_into_libs=yes
14658 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14659 soname_spec='${libname}${release}${shared_ext}$major'
14660 shlibpath_var=LD_LIBRARY_PATH
14667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
14668 $as_echo "$dynamic_linker" >&6; }
14669 test "$dynamic_linker" = no && can_build_shared=no
14671 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
14672 if test "$GCC" = yes; then
14673 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
14676 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
14677 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
14679 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
14680 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
14720 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
14721 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
14722 hardcode_action_CXX=
14723 if test -n "$hardcode_libdir_flag_spec_CXX" ||
14724 test -n "$runpath_var_CXX" ||
14725 test "X$hardcode_automatic_CXX" = "Xyes" ; then
14727 # We can hardcode non-existent directories.
14728 if test "$hardcode_direct_CXX" != no &&
14729 # If the only mechanism to avoid hardcoding is shlibpath_var, we
14730 # have to relink, otherwise we might link with an installed library
14731 # when we should be linking with a yet-to-be-installed one
14732 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
14733 test "$hardcode_minus_L_CXX" != no; then
14734 # Linking always hardcodes the temporary library directory.
14735 hardcode_action_CXX=relink
14737 # We can link without hardcoding, and we can hardcode nonexisting dirs.
14738 hardcode_action_CXX=immediate
14741 # We cannot hardcode anything, or else we can only hardcode existing
14743 hardcode_action_CXX=unsupported
14745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
14746 $as_echo "$hardcode_action_CXX" >&6; }
14748 if test "$hardcode_action_CXX" = relink ||
14749 test "$inherit_rpath_CXX" = yes; then
14750 # Fast installation is not supported
14751 enable_fast_install=no
14752 elif test "$shlibpath_overrides_runpath" = yes ||
14753 test "$enable_shared" = no; then
14754 # Fast installation is not necessary
14755 enable_fast_install=needless
14764 fi # test -n "$compiler"
14770 with_gnu_ld=$lt_save_with_gnu_ld
14771 lt_cv_path_LDCXX=$lt_cv_path_LD
14772 lt_cv_path_LD=$lt_save_path_LD
14773 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
14774 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
14775 fi # test "$_lt_caught_CXX_error" != yes
14778 ac_cpp='$CPP $CPPFLAGS'
14779 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14780 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14781 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14795 ac_config_commands="$ac_config_commands libtool"
14800 # Only expand once:
14803 # ... and we need it soon, since it is used by some of the
14804 # link tests in the configure script.
14805 : ${CONFIG_LT=./config.lt}
14806 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_LT" >&5
14807 $as_echo "$as_me: creating $CONFIG_LT" >&6;}
14809 cat >"$CONFIG_LT" <<_ASEOF || as_write_fail=1
14811 # Generated by $as_me.
14812 # Run this file to recreate a libtool stub with the current configuration.
14813 SHELL=\${CONFIG_SHELL-$SHELL}
14816 cat >>"$CONFIG_LT" <<\_ASEOF || as_write_fail=1
14817 ## -------------------- ##
14818 ## M4sh Initialization. ##
14819 ## -------------------- ##
14821 # Be more Bourne compatible
14822 DUALCASE=1; export DUALCASE # for MKS sh
14823 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
14826 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
14827 # is contrary to our usage. Disable this feature.
14828 alias -g '${1+"$@"}'='"$@"'
14829 setopt NO_GLOB_SUBST
14831 case `(set -o) 2>/dev/null` in #(
14843 # Printing a long string crashes Solaris 7 /usr/bin/printf.
14844 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
14845 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
14846 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
14847 # Prefer a ksh shell builtin over an external printf program on Solaris,
14848 # but without wasting forks for bash or zsh.
14849 if test -z "$BASH_VERSION$ZSH_VERSION" \
14850 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
14851 as_echo='print -r --'
14852 as_echo_n='print -rn --'
14853 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
14854 as_echo='printf %s\n'
14855 as_echo_n='printf %s'
14857 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
14858 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
14859 as_echo_n='/usr/ucb/echo -n'
14861 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
14862 as_echo_n_body='eval
14866 expr "X$arg" : "X\\(.*\\)$as_nl";
14867 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
14869 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
14871 export as_echo_n_body
14872 as_echo_n='sh -c $as_echo_n_body as_echo'
14874 export as_echo_body
14875 as_echo='sh -c $as_echo_body as_echo'
14878 # The user is always right.
14879 if test "${PATH_SEPARATOR+set}" != set; then
14881 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
14882 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
14889 # We need space, tab and new line, in precisely that order. Quoting is
14890 # there to prevent editors from complaining about space-tab.
14891 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
14892 # splitting by setting IFS to empty value.)
14895 # Find who we are. Look in the path if we contain no directory separator.
14898 *[\\/]* ) as_myself=$0 ;;
14899 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14900 for as_dir in $PATH
14903 test -z "$as_dir" && as_dir=.
14904 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
14910 # We did not find ourselves, most probably we were run as `sh COMMAND'
14911 # in which case we are not to be found in the path.
14912 if test "x$as_myself" = x; then
14915 if test ! -f "$as_myself"; then
14916 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
14920 # Unset variables that we do not need and which cause bugs (e.g. in
14921 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
14922 # suppresses any "Segmentation fault" message there. '((' could
14923 # trigger a bug in pdksh 5.2.14.
14924 for as_var in BASH_ENV ENV MAIL MAILPATH
14925 do eval test x\${$as_var+set} = xset \
14926 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
14939 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
14942 # as_fn_error STATUS ERROR [LINENO LOG_FD]
14943 # ----------------------------------------
14944 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
14945 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
14946 # script with STATUS, using 1 if that was 0.
14949 as_status=$1; test $as_status -eq 0 && as_status=1
14951 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
14952 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
14954 $as_echo "$as_me: error: $2" >&2
14955 as_fn_exit $as_status
14959 # as_fn_set_status STATUS
14960 # -----------------------
14961 # Set $? to STATUS, without forking.
14962 as_fn_set_status ()
14965 } # as_fn_set_status
14967 # as_fn_exit STATUS
14968 # -----------------
14969 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
14973 as_fn_set_status $1
14979 # Portably unset VAR.
14982 { eval $1=; unset $1;}
14984 as_unset=as_fn_unset
14985 # as_fn_append VAR VALUE
14986 # ----------------------
14987 # Append the text in VALUE to the end of the definition contained in VAR. Take
14988 # advantage of any shell optimizations that allow amortized linear growth over
14989 # repeated appends, instead of the typical quadratic growth present in naive
14991 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
14992 eval 'as_fn_append ()
15003 # as_fn_arith ARG...
15004 # ------------------
15005 # Perform arithmetic evaluation on the ARGs, and store the result in the
15006 # global $as_val. Take advantage of shells that can avoid forks. The arguments
15007 # must be portable across $(()) and expr.
15008 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
15009 eval 'as_fn_arith ()
15016 as_val=`expr "$@" || test $? -eq 1`
15021 if expr a : '\(a\)' >/dev/null 2>&1 &&
15022 test "X`expr 00001 : '.*\(...\)'`" = X001; then
15028 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
15029 as_basename=basename
15034 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
15040 as_me=`$as_basename -- "$0" ||
15041 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
15042 X"$0" : 'X\(//\)$' \| \
15043 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
15045 sed '/^.*\/\([^/][^/]*\)\/*$/{
15059 # Avoid depending upon Character Ranges.
15060 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
15061 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
15062 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
15063 as_cr_digits='0123456789'
15064 as_cr_alnum=$as_cr_Letters$as_cr_digits
15066 ECHO_C= ECHO_N= ECHO_T=
15067 case `echo -n x` in #(((((
15069 case `echo 'xy\c'` in
15070 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
15072 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
15079 rm -f conf$$ conf$$.exe conf$$.file
15080 if test -d conf$$.dir; then
15081 rm -f conf$$.dir/conf$$.file
15084 mkdir conf$$.dir 2>/dev/null
15086 if (echo >conf$$.file) 2>/dev/null; then
15087 if ln -s conf$$.file conf$$ 2>/dev/null; then
15089 # ... but there are two gotchas:
15090 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
15091 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
15092 # In both cases, we have to default to `cp -pR'.
15093 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
15095 elif ln conf$$.file conf$$ 2>/dev/null; then
15103 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
15104 rmdir conf$$.dir 2>/dev/null
15109 # Create "$as_dir" as a directory, including parents if necessary.
15114 -*) as_dir=./$as_dir;;
15116 test -d "$as_dir" || eval $as_mkdir_p || {
15120 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
15121 *) as_qdir=$as_dir;;
15123 as_dirs="'$as_qdir' $as_dirs"
15124 as_dir=`$as_dirname -- "$as_dir" ||
15125 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15126 X"$as_dir" : 'X\(//\)[^/]' \| \
15127 X"$as_dir" : 'X\(//\)$' \| \
15128 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
15129 $as_echo X"$as_dir" |
15130 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15134 /^X\(\/\/\)[^/].*/{
15147 test -d "$as_dir" && break
15149 test -z "$as_dirs" || eval "mkdir $as_dirs"
15150 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
15154 if mkdir -p . 2>/dev/null; then
15155 as_mkdir_p='mkdir -p "$as_dir"'
15157 test -d ./-p && rmdir ./-p
15162 # as_fn_executable_p FILE
15163 # -----------------------
15164 # Test if FILE is an executable regular file.
15165 as_fn_executable_p ()
15167 test -f "$1" && test -x "$1"
15168 } # as_fn_executable_p
15169 as_test_x='test -x'
15170 as_executable_p=as_fn_executable_p
15172 # Sed expression to map a string onto a valid CPP name.
15173 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
15175 # Sed expression to map a string onto a valid variable name.
15176 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
15180 ## --------------------------------- ##
15181 ## Main body of "$CONFIG_LT" script. ##
15182 ## --------------------------------- ##
15184 test $as_write_fail = 0 && chmod +x "$CONFIG_LT"
15186 cat >>"$CONFIG_LT" <<\_LTEOF
15191 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
15192 ## Running $as_me. ##
15197 \`$as_me' creates a local libtool stub from the current configuration,
15198 for use in further configure time tests before the real libtool is
15201 Usage: $0 [OPTIONS]
15203 -h, --help print this help, then exit
15204 -V, --version print version number, then exit
15205 -q, --quiet do not print progress messages
15206 -d, --debug don't remove temporary files
15212 configured by $0, generated by GNU Autoconf 2.69.
15214 Copyright (C) 2009 Free Software Foundation, Inc.
15215 This config.lt script is free software; the Free Software Foundation
15216 gives unlimited permision to copy, distribute and modify it."
15221 --version | --v* | -V )
15222 echo "$lt_cl_version"; exit 0 ;;
15223 --help | --h* | -h )
15224 echo "$lt_cl_help"; exit 0 ;;
15225 --debug | --d* | -d )
15227 --quiet | --q* | --silent | --s* | -q )
15230 -*) as_fn_error $? "unrecognized option: $1
15231 Try \`$0 --help' for more information." "$LINENO" 5 ;;
15233 *) as_fn_error $? "unrecognized argument: $1
15234 Try \`$0 --help' for more information." "$LINENO" 5 ;;
15239 if $lt_cl_silent; then
15244 cat >>"$CONFIG_LT" <<_LTEOF
15247 # The HP-UX ksh and POSIX shell print the target directory to stdout
15248 # if CDPATH is set.
15249 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
15251 sed_quote_subst='$sed_quote_subst'
15252 double_quote_subst='$double_quote_subst'
15253 delay_variable_subst='$delay_variable_subst'
15254 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
15255 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
15256 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
15257 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
15258 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
15259 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
15260 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
15261 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
15262 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
15263 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
15264 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
15265 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
15266 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
15267 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
15268 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
15269 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
15270 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
15271 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
15272 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
15273 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
15274 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
15275 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
15276 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
15277 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
15278 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
15279 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
15280 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
15281 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
15282 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
15283 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
15284 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
15285 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
15286 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
15287 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
15288 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
15289 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
15290 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
15291 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
15292 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
15293 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
15294 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
15295 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
15296 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
15297 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
15298 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
15299 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
15300 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
15301 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
15302 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"`'
15303 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
15304 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
15305 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
15306 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
15307 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
15308 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
15309 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
15310 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
15311 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
15312 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
15313 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
15314 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
15315 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
15316 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
15317 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
15318 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
15319 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
15320 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
15321 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
15322 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
15323 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
15324 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
15325 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
15326 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
15327 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
15328 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
15329 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
15330 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
15331 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
15332 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
15333 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
15334 hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
15335 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
15336 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
15337 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
15338 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
15339 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
15340 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
15341 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
15342 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
15343 fix_srcfile_path='`$ECHO "$fix_srcfile_path" | $SED "$delay_single_quote_subst"`'
15344 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
15345 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
15346 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
15347 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
15348 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
15349 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
15350 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
15351 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
15352 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
15353 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
15354 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
15355 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
15356 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
15357 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
15358 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
15359 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
15360 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
15361 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
15362 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
15363 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
15364 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
15365 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
15366 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
15367 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
15368 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
15369 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
15370 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
15371 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
15372 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
15373 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
15374 compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
15375 predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
15376 postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
15377 predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
15378 postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
15379 compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
15380 LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
15381 reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
15382 reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
15383 old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
15384 compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
15385 GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
15386 lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
15387 lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
15388 lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
15389 lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
15390 lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
15391 archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
15392 enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
15393 export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
15394 whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
15395 compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
15396 old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
15397 old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
15398 archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
15399 archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
15400 module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
15401 module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
15402 with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
15403 allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
15404 no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
15405 hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
15406 hardcode_libdir_flag_spec_ld_CXX='`$ECHO "$hardcode_libdir_flag_spec_ld_CXX" | $SED "$delay_single_quote_subst"`'
15407 hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
15408 hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
15409 hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
15410 hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
15411 hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
15412 hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
15413 inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
15414 link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
15415 fix_srcfile_path_CXX='`$ECHO "$fix_srcfile_path_CXX" | $SED "$delay_single_quote_subst"`'
15416 always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
15417 export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
15418 exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
15419 include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
15420 prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
15421 file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
15422 hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
15423 compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
15424 predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
15425 postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
15426 predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
15427 postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
15428 compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
15431 LTCFLAGS='$LTCFLAGS'
15432 compiler='$compiler_DEFAULT'
15434 # A function that is used when there is no print builtin or printf.
15435 func_fallback_echo ()
15437 eval 'cat <<_LTECHO_EOF
15442 # Quote evaled strings.
15456 deplibs_check_method \
15465 lt_cv_sys_global_symbol_pipe \
15466 lt_cv_sys_global_symbol_to_cdecl \
15467 lt_cv_sys_global_symbol_to_c_name_address \
15468 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
15469 lt_prog_compiler_no_builtin_flag \
15470 lt_prog_compiler_wl \
15471 lt_prog_compiler_pic \
15472 lt_prog_compiler_static \
15473 lt_cv_prog_compiler_c_o \
15481 export_dynamic_flag_spec \
15482 whole_archive_flag_spec \
15483 compiler_needs_object \
15485 allow_undefined_flag \
15486 no_undefined_flag \
15487 hardcode_libdir_flag_spec \
15488 hardcode_libdir_flag_spec_ld \
15489 hardcode_libdir_separator \
15494 variables_saved_for_relink \
15496 library_names_spec \
15498 install_override_mode \
15502 compiler_lib_search_dirs \
15507 compiler_lib_search_path \
15511 lt_prog_compiler_no_builtin_flag_CXX \
15512 lt_prog_compiler_wl_CXX \
15513 lt_prog_compiler_pic_CXX \
15514 lt_prog_compiler_static_CXX \
15515 lt_cv_prog_compiler_c_o_CXX \
15516 export_dynamic_flag_spec_CXX \
15517 whole_archive_flag_spec_CXX \
15518 compiler_needs_object_CXX \
15520 allow_undefined_flag_CXX \
15521 no_undefined_flag_CXX \
15522 hardcode_libdir_flag_spec_CXX \
15523 hardcode_libdir_flag_spec_ld_CXX \
15524 hardcode_libdir_separator_CXX \
15525 fix_srcfile_path_CXX \
15526 exclude_expsyms_CXX \
15527 include_expsyms_CXX \
15528 file_list_spec_CXX \
15529 compiler_lib_search_dirs_CXX \
15530 predep_objects_CXX \
15531 postdep_objects_CXX \
15534 compiler_lib_search_path_CXX; do
15535 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
15536 *[\\\\\\\`\\"\\\$]*)
15537 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
15540 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
15545 # Double-quote double-evaled strings.
15546 for var in reload_cmds \
15547 old_postinstall_cmds \
15548 old_postuninstall_cmds \
15550 extract_expsyms_cmds \
15551 old_archive_from_new_cmds \
15552 old_archive_from_expsyms_cmds \
15554 archive_expsym_cmds \
15556 module_expsym_cmds \
15557 export_symbols_cmds \
15560 postuninstall_cmds \
15562 sys_lib_search_path_spec \
15563 sys_lib_dlsearch_path_spec \
15565 old_archive_cmds_CXX \
15566 old_archive_from_new_cmds_CXX \
15567 old_archive_from_expsyms_cmds_CXX \
15569 archive_expsym_cmds_CXX \
15571 module_expsym_cmds_CXX \
15572 export_symbols_cmds_CXX \
15573 prelink_cmds_CXX; do
15574 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
15575 *[\\\\\\\`\\"\\\$]*)
15576 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
15579 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
15584 ac_aux_dir='$ac_aux_dir'
15585 xsi_shell='$xsi_shell'
15586 lt_shell_append='$lt_shell_append'
15588 # See if we are running on zsh, and set the options which allow our
15589 # commands through without removal of \ escapes INIT.
15590 if test -n "\${ZSH_VERSION+set}" ; then
15591 setopt NO_GLOB_SUBST
15597 TIMESTAMP='$TIMESTAMP'
15607 cat >>"$CONFIG_LT" <<\_LTEOF
15608 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ofile" >&5
15609 $as_echo "$as_me: creating $ofile" >&6;}
15612 # See if we are running on zsh, and set the options which allow our
15613 # commands through without removal of \ escapes.
15614 if test -n "${ZSH_VERSION+set}" ; then
15615 setopt NO_GLOB_SUBST
15618 cfgfile="${ofile}T"
15619 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
15622 cat <<_LT_EOF >> "$cfgfile"
15625 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
15626 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
15627 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
15628 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
15630 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
15631 # 2006, 2007, 2008, 2009 Free Software Foundation, Inc.
15632 # Written by Gordon Matzigkeit, 1996
15634 # This file is part of GNU Libtool.
15636 # GNU Libtool is free software; you can redistribute it and/or
15637 # modify it under the terms of the GNU General Public License as
15638 # published by the Free Software Foundation; either version 2 of
15639 # the License, or (at your option) any later version.
15641 # As a special exception to the GNU General Public License,
15642 # if you distribute this file as part of a program or library that
15643 # is built using GNU Libtool, you may include this file under the
15644 # same distribution terms that you use for the rest of that program.
15646 # GNU Libtool is distributed in the hope that it will be useful,
15647 # but WITHOUT ANY WARRANTY; without even the implied warranty of
15648 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15649 # GNU General Public License for more details.
15651 # You should have received a copy of the GNU General Public License
15652 # along with GNU Libtool; see the file COPYING. If not, a copy
15653 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
15654 # obtained by writing to the Free Software Foundation, Inc.,
15655 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
15658 # The names of the tagged configurations supported by this script.
15659 available_tags="CXX "
15661 # ### BEGIN LIBTOOL CONFIG
15663 # Which release of libtool.m4 was used?
15664 macro_version=$macro_version
15665 macro_revision=$macro_revision
15667 # Whether or not to build shared libraries.
15668 build_libtool_libs=$enable_shared
15670 # Whether or not to build static libraries.
15671 build_old_libs=$enable_static
15673 # What type of objects to build.
15676 # Whether or not to optimize for fast installation.
15677 fast_install=$enable_fast_install
15679 # Shell to use when invoking shell scripts.
15682 # An echo program that protects backslashes.
15686 host_alias=$host_alias
15690 # The build system.
15691 build_alias=$build_alias
15695 # A sed program that does not truncate output.
15698 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
15699 Xsed="\$SED -e 1s/^X//"
15701 # A grep program that handles long lines.
15707 # A literal string matcher.
15710 # A BSD- or MS-compatible name lister.
15713 # Whether we need soft or hard links.
15716 # What is the maximum length of a command?
15717 max_cmd_len=$max_cmd_len
15719 # Object file suffix (normally "o").
15722 # Executable file suffix (normally "").
15725 # whether the shell understands "unset".
15728 # turn spaces into newlines.
15731 # turn newlines into spaces.
15734 # An object symbol dumper.
15735 OBJDUMP=$lt_OBJDUMP
15737 # Method to check whether dependent libraries are shared objects.
15738 deplibs_check_method=$lt_deplibs_check_method
15740 # Command to use when deplibs_check_method == "file_magic".
15741 file_magic_cmd=$lt_file_magic_cmd
15745 AR_FLAGS=$lt_AR_FLAGS
15747 # A symbol stripping program.
15750 # Commands used to install an old-style archive.
15752 old_postinstall_cmds=$lt_old_postinstall_cmds
15753 old_postuninstall_cmds=$lt_old_postuninstall_cmds
15755 # Whether to use a lock for old archive extraction.
15756 lock_old_archive_extraction=$lock_old_archive_extraction
15761 # LTCC compiler flags.
15762 LTCFLAGS=$lt_CFLAGS
15764 # Take the output of nm and produce a listing of raw symbols and C names.
15765 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
15767 # Transform the output of nm in a proper C declaration.
15768 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
15770 # Transform the output of nm in a C name address pair.
15771 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
15773 # Transform the output of nm in a C name address pair when lib prefix is needed.
15774 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
15776 # The name of the directory that contains temporary libtool files.
15779 # Used to examine libraries when file_magic_cmd begins with "file".
15780 MAGIC_CMD=$MAGIC_CMD
15782 # Must we lock files when doing compilation?
15783 need_locks=$lt_need_locks
15785 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
15786 DSYMUTIL=$lt_DSYMUTIL
15788 # Tool to change global to local symbols on Mac OS X.
15791 # Tool to manipulate fat objects and archives on Mac OS X.
15794 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
15797 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
15798 OTOOL64=$lt_OTOOL64
15800 # Old archive suffix (normally "a").
15803 # Shared library suffix (normally ".so").
15804 shrext_cmds=$lt_shrext_cmds
15806 # The commands to extract the exported symbol list from a shared archive.
15807 extract_expsyms_cmds=$lt_extract_expsyms_cmds
15809 # Variables whose values should be saved in libtool wrapper scripts and
15810 # restored at link time.
15811 variables_saved_for_relink=$lt_variables_saved_for_relink
15813 # Do we need the "lib" prefix for modules?
15814 need_lib_prefix=$need_lib_prefix
15816 # Do we need a version for libraries?
15817 need_version=$need_version
15819 # Library versioning type.
15820 version_type=$version_type
15822 # Shared library runtime path variable.
15823 runpath_var=$runpath_var
15825 # Shared library path variable.
15826 shlibpath_var=$shlibpath_var
15828 # Is shlibpath searched before the hard-coded library search path?
15829 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
15831 # Format of library name prefix.
15832 libname_spec=$lt_libname_spec
15834 # List of archive names. First name is the real one, the rest are links.
15835 # The last name is the one that the linker finds with -lNAME
15836 library_names_spec=$lt_library_names_spec
15838 # The coded name of the library, if different from the real name.
15839 soname_spec=$lt_soname_spec
15841 # Permission mode override for installation of shared libraries.
15842 install_override_mode=$lt_install_override_mode
15844 # Command to use after installation of a shared archive.
15845 postinstall_cmds=$lt_postinstall_cmds
15847 # Command to use after uninstallation of a shared archive.
15848 postuninstall_cmds=$lt_postuninstall_cmds
15850 # Commands used to finish a libtool library installation in a directory.
15851 finish_cmds=$lt_finish_cmds
15853 # As "finish_cmds", except a single script fragment to be evaled but
15855 finish_eval=$lt_finish_eval
15857 # Whether we should hardcode library paths into libraries.
15858 hardcode_into_libs=$hardcode_into_libs
15860 # Compile-time system search path for libraries.
15861 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
15863 # Run-time system search path for libraries.
15864 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
15866 # Whether dlopen is supported.
15867 dlopen_support=$enable_dlopen
15869 # Whether dlopen of programs is supported.
15870 dlopen_self=$enable_dlopen_self
15872 # Whether dlopen of statically linked programs is supported.
15873 dlopen_self_static=$enable_dlopen_self_static
15875 # Commands to strip libraries.
15876 old_striplib=$lt_old_striplib
15877 striplib=$lt_striplib
15880 # The linker used to build libraries.
15883 # How to create reloadable object files.
15884 reload_flag=$lt_reload_flag
15885 reload_cmds=$lt_reload_cmds
15887 # Commands used to build an old-style archive.
15888 old_archive_cmds=$lt_old_archive_cmds
15890 # A language specific compiler.
15893 # Is the compiler the GNU compiler?
15896 # Compiler flag to turn off builtin functions.
15897 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
15899 # How to pass a linker flag through the compiler.
15900 wl=$lt_lt_prog_compiler_wl
15902 # Additional compiler flags for building library objects.
15903 pic_flag=$lt_lt_prog_compiler_pic
15905 # Compiler flag to prevent dynamic linking.
15906 link_static_flag=$lt_lt_prog_compiler_static
15908 # Does compiler simultaneously support -c and -o options?
15909 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
15911 # Whether or not to add -lc for building shared libraries.
15912 build_libtool_need_lc=$archive_cmds_need_lc
15914 # Whether or not to disallow shared libs when runtime libs are static.
15915 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
15917 # Compiler flag to allow reflexive dlopens.
15918 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
15920 # Compiler flag to generate shared objects directly from archives.
15921 whole_archive_flag_spec=$lt_whole_archive_flag_spec
15923 # Whether the compiler copes with passing no objects directly.
15924 compiler_needs_object=$lt_compiler_needs_object
15926 # Create an old-style archive from a shared archive.
15927 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
15929 # Create a temporary old-style archive to link instead of a shared archive.
15930 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
15932 # Commands used to build a shared archive.
15933 archive_cmds=$lt_archive_cmds
15934 archive_expsym_cmds=$lt_archive_expsym_cmds
15936 # Commands used to build a loadable module if different from building
15937 # a shared archive.
15938 module_cmds=$lt_module_cmds
15939 module_expsym_cmds=$lt_module_expsym_cmds
15941 # Whether we are building with GNU ld or not.
15942 with_gnu_ld=$lt_with_gnu_ld
15944 # Flag that allows shared libraries with undefined symbols to be built.
15945 allow_undefined_flag=$lt_allow_undefined_flag
15947 # Flag that enforces no undefined symbols.
15948 no_undefined_flag=$lt_no_undefined_flag
15950 # Flag to hardcode \$libdir into a binary during linking.
15951 # This must work even if \$libdir does not exist
15952 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
15954 # If ld is used when linking, flag to hardcode \$libdir into a binary
15955 # during linking. This must work even if \$libdir does not exist.
15956 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
15958 # Whether we need a single "-rpath" flag with a separated argument.
15959 hardcode_libdir_separator=$lt_hardcode_libdir_separator
15961 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
15962 # DIR into the resulting binary.
15963 hardcode_direct=$hardcode_direct
15965 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
15966 # DIR into the resulting binary and the resulting library dependency is
15967 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
15968 # library is relocated.
15969 hardcode_direct_absolute=$hardcode_direct_absolute
15971 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
15972 # into the resulting binary.
15973 hardcode_minus_L=$hardcode_minus_L
15975 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
15976 # into the resulting binary.
15977 hardcode_shlibpath_var=$hardcode_shlibpath_var
15979 # Set to "yes" if building a shared library automatically hardcodes DIR
15980 # into the library and all subsequent libraries and executables linked
15982 hardcode_automatic=$hardcode_automatic
15984 # Set to yes if linker adds runtime paths of dependent libraries
15985 # to runtime path list.
15986 inherit_rpath=$inherit_rpath
15988 # Whether libtool must link a program against all its dependency libraries.
15989 link_all_deplibs=$link_all_deplibs
15991 # Fix the shell variable \$srcfile for the compiler.
15992 fix_srcfile_path=$lt_fix_srcfile_path
15994 # Set to "yes" if exported symbols are required.
15995 always_export_symbols=$always_export_symbols
15997 # The commands to list exported symbols.
15998 export_symbols_cmds=$lt_export_symbols_cmds
16000 # Symbols that should not be listed in the preloaded symbols.
16001 exclude_expsyms=$lt_exclude_expsyms
16003 # Symbols that must always be exported.
16004 include_expsyms=$lt_include_expsyms
16006 # Commands necessary for linking programs (against libraries) with templates.
16007 prelink_cmds=$lt_prelink_cmds
16009 # Specify filename containing input files.
16010 file_list_spec=$lt_file_list_spec
16012 # How to hardcode a shared library path into an executable.
16013 hardcode_action=$hardcode_action
16015 # The directories searched by this compiler when creating a shared library.
16016 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
16018 # Dependencies to place before and after the objects being linked to
16019 # create a shared library.
16020 predep_objects=$lt_predep_objects
16021 postdep_objects=$lt_postdep_objects
16022 predeps=$lt_predeps
16023 postdeps=$lt_postdeps
16025 # The library search path used internally by the compiler when linking
16026 # a shared library.
16027 compiler_lib_search_path=$lt_compiler_lib_search_path
16029 # ### END LIBTOOL CONFIG
16035 cat <<\_LT_EOF >> "$cfgfile"
16036 # AIX sometimes has problems with the GCC collect2 program. For some
16037 # reason, if we set the COLLECT_NAMES environment variable, the problems
16038 # vanish in a puff of smoke.
16039 if test "X${COLLECT_NAMES+set}" != Xset; then
16041 export COLLECT_NAMES
16048 ltmain="$ac_aux_dir/ltmain.sh"
16051 # We use sed instead of cat because bash on DJGPP gets confused if
16052 # if finds mixed CR/LF and LF-only lines. Since sed operates in
16053 # text mode, it properly converts lines to CR/LF. This bash problem
16054 # is reportedly fixed, but why not run on old versions too?
16055 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
16056 || (rm -f "$cfgfile"; exit 1)
16060 cat << \_LT_EOF >> "$cfgfile"
16062 # func_dirname file append nondir_replacement
16063 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
16064 # otherwise set result to NONDIR_REPLACEMENT.
16068 */*) func_dirname_result="${1%/*}${2}" ;;
16069 * ) func_dirname_result="${3}" ;;
16073 # func_basename file
16076 func_basename_result="${1##*/}"
16079 # func_dirname_and_basename file append nondir_replacement
16080 # perform func_basename and func_dirname in a single function
16082 # dirname: Compute the dirname of FILE. If nonempty,
16083 # add APPEND to the result, otherwise set result
16084 # to NONDIR_REPLACEMENT.
16085 # value returned in "$func_dirname_result"
16086 # basename: Compute filename of FILE.
16087 # value retuned in "$func_basename_result"
16088 # Implementation must be kept synchronized with func_dirname
16089 # and func_basename. For efficiency, we do not delegate to
16090 # those functions but instead duplicate the functionality here.
16091 func_dirname_and_basename ()
16094 */*) func_dirname_result="${1%/*}${2}" ;;
16095 * ) func_dirname_result="${3}" ;;
16097 func_basename_result="${1##*/}"
16100 # func_stripname prefix suffix name
16101 # strip PREFIX and SUFFIX off of NAME.
16102 # PREFIX and SUFFIX must not contain globbing or regex special
16103 # characters, hashes, percent signs, but SUFFIX may contain a leading
16104 # dot (in which case that matches only a dot).
16107 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
16108 # positional parameters, so assign one to ordinary parameter first.
16109 func_stripname_result=${3}
16110 func_stripname_result=${func_stripname_result#"${1}"}
16111 func_stripname_result=${func_stripname_result%"${2}"}
16117 func_opt_split_opt=${1%%=*}
16118 func_opt_split_arg=${1#*=}
16125 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
16126 *) func_lo2o_result=${1} ;;
16130 # func_xform libobj-or-source
16133 func_xform_result=${1%.*}.lo
16136 # func_arith arithmetic-term...
16139 func_arith_result=$(( $* ))
16143 # STRING may not start with a hyphen.
16146 func_len_result=${#1}
16151 *) # Bourne compatible functions.
16152 cat << \_LT_EOF >> "$cfgfile"
16154 # func_dirname file append nondir_replacement
16155 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
16156 # otherwise set result to NONDIR_REPLACEMENT.
16159 # Extract subdirectory from the argument.
16160 func_dirname_result=`$ECHO "${1}" | $SED "$dirname"`
16161 if test "X$func_dirname_result" = "X${1}"; then
16162 func_dirname_result="${3}"
16164 func_dirname_result="$func_dirname_result${2}"
16168 # func_basename file
16171 func_basename_result=`$ECHO "${1}" | $SED "$basename"`
16175 # func_stripname prefix suffix name
16176 # strip PREFIX and SUFFIX off of NAME.
16177 # PREFIX and SUFFIX must not contain globbing or regex special
16178 # characters, hashes, percent signs, but SUFFIX may contain a leading
16179 # dot (in which case that matches only a dot).
16180 # func_strip_suffix prefix name
16184 .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
16185 *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
16190 my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
16191 my_sed_long_arg='1s/^-[^=]*=//'
16196 func_opt_split_opt=`$ECHO "${1}" | $SED "$my_sed_long_opt"`
16197 func_opt_split_arg=`$ECHO "${1}" | $SED "$my_sed_long_arg"`
16203 func_lo2o_result=`$ECHO "${1}" | $SED "$lo2o"`
16206 # func_xform libobj-or-source
16209 func_xform_result=`$ECHO "${1}" | $SED 's/\.[^.]*$/.lo/'`
16212 # func_arith arithmetic-term...
16215 func_arith_result=`expr "$@"`
16219 # STRING may not start with a hyphen.
16222 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
16228 case $lt_shell_append in
16230 cat << \_LT_EOF >> "$cfgfile"
16232 # func_append var value
16233 # Append VALUE to the end of shell variable VAR.
16241 cat << \_LT_EOF >> "$cfgfile"
16243 # func_append var value
16244 # Append VALUE to the end of shell variable VAR.
16255 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
16256 || (rm -f "$cfgfile"; exit 1)
16258 mv -f "$cfgfile" "$ofile" ||
16259 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
16263 cat <<_LT_EOF >> "$ofile"
16265 # ### BEGIN LIBTOOL TAG CONFIG: CXX
16267 # The linker used to build libraries.
16270 # How to create reloadable object files.
16271 reload_flag=$lt_reload_flag_CXX
16272 reload_cmds=$lt_reload_cmds_CXX
16274 # Commands used to build an old-style archive.
16275 old_archive_cmds=$lt_old_archive_cmds_CXX
16277 # A language specific compiler.
16278 CC=$lt_compiler_CXX
16280 # Is the compiler the GNU compiler?
16283 # Compiler flag to turn off builtin functions.
16284 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
16286 # How to pass a linker flag through the compiler.
16287 wl=$lt_lt_prog_compiler_wl_CXX
16289 # Additional compiler flags for building library objects.
16290 pic_flag=$lt_lt_prog_compiler_pic_CXX
16292 # Compiler flag to prevent dynamic linking.
16293 link_static_flag=$lt_lt_prog_compiler_static_CXX
16295 # Does compiler simultaneously support -c and -o options?
16296 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
16298 # Whether or not to add -lc for building shared libraries.
16299 build_libtool_need_lc=$archive_cmds_need_lc_CXX
16301 # Whether or not to disallow shared libs when runtime libs are static.
16302 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
16304 # Compiler flag to allow reflexive dlopens.
16305 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
16307 # Compiler flag to generate shared objects directly from archives.
16308 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
16310 # Whether the compiler copes with passing no objects directly.
16311 compiler_needs_object=$lt_compiler_needs_object_CXX
16313 # Create an old-style archive from a shared archive.
16314 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
16316 # Create a temporary old-style archive to link instead of a shared archive.
16317 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
16319 # Commands used to build a shared archive.
16320 archive_cmds=$lt_archive_cmds_CXX
16321 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
16323 # Commands used to build a loadable module if different from building
16324 # a shared archive.
16325 module_cmds=$lt_module_cmds_CXX
16326 module_expsym_cmds=$lt_module_expsym_cmds_CXX
16328 # Whether we are building with GNU ld or not.
16329 with_gnu_ld=$lt_with_gnu_ld_CXX
16331 # Flag that allows shared libraries with undefined symbols to be built.
16332 allow_undefined_flag=$lt_allow_undefined_flag_CXX
16334 # Flag that enforces no undefined symbols.
16335 no_undefined_flag=$lt_no_undefined_flag_CXX
16337 # Flag to hardcode \$libdir into a binary during linking.
16338 # This must work even if \$libdir does not exist
16339 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
16341 # If ld is used when linking, flag to hardcode \$libdir into a binary
16342 # during linking. This must work even if \$libdir does not exist.
16343 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
16345 # Whether we need a single "-rpath" flag with a separated argument.
16346 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
16348 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
16349 # DIR into the resulting binary.
16350 hardcode_direct=$hardcode_direct_CXX
16352 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
16353 # DIR into the resulting binary and the resulting library dependency is
16354 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
16355 # library is relocated.
16356 hardcode_direct_absolute=$hardcode_direct_absolute_CXX
16358 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
16359 # into the resulting binary.
16360 hardcode_minus_L=$hardcode_minus_L_CXX
16362 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
16363 # into the resulting binary.
16364 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
16366 # Set to "yes" if building a shared library automatically hardcodes DIR
16367 # into the library and all subsequent libraries and executables linked
16369 hardcode_automatic=$hardcode_automatic_CXX
16371 # Set to yes if linker adds runtime paths of dependent libraries
16372 # to runtime path list.
16373 inherit_rpath=$inherit_rpath_CXX
16375 # Whether libtool must link a program against all its dependency libraries.
16376 link_all_deplibs=$link_all_deplibs_CXX
16378 # Fix the shell variable \$srcfile for the compiler.
16379 fix_srcfile_path=$lt_fix_srcfile_path_CXX
16381 # Set to "yes" if exported symbols are required.
16382 always_export_symbols=$always_export_symbols_CXX
16384 # The commands to list exported symbols.
16385 export_symbols_cmds=$lt_export_symbols_cmds_CXX
16387 # Symbols that should not be listed in the preloaded symbols.
16388 exclude_expsyms=$lt_exclude_expsyms_CXX
16390 # Symbols that must always be exported.
16391 include_expsyms=$lt_include_expsyms_CXX
16393 # Commands necessary for linking programs (against libraries) with templates.
16394 prelink_cmds=$lt_prelink_cmds_CXX
16396 # Specify filename containing input files.
16397 file_list_spec=$lt_file_list_spec_CXX
16399 # How to hardcode a shared library path into an executable.
16400 hardcode_action=$hardcode_action_CXX
16402 # The directories searched by this compiler when creating a shared library.
16403 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
16405 # Dependencies to place before and after the objects being linked to
16406 # create a shared library.
16407 predep_objects=$lt_predep_objects_CXX
16408 postdep_objects=$lt_postdep_objects_CXX
16409 predeps=$lt_predeps_CXX
16410 postdeps=$lt_postdeps_CXX
16412 # The library search path used internally by the compiler when linking
16413 # a shared library.
16414 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
16416 # ### END LIBTOOL TAG CONFIG: CXX
16422 chmod +x "$CONFIG_LT"
16424 # configure is writing to config.log, but config.lt does its own redirection,
16425 # appending to config.log, which fails on DOS, as config.log is still kept
16426 # open by configure. Here we exec the FD to /dev/null, effectively closing
16427 # config.log, so it can be properly (re)opened and appended to by config.lt.
16429 test "$silent" = yes &&
16430 lt_config_lt_args="$lt_config_lt_args --quiet"
16432 $SHELL "$CONFIG_LT" $lt_config_lt_args || lt_cl_success=false
16434 $lt_cl_success || as_fn_exit 1
16437 # We require a C++11 compiler. Check if one is available, and if
16438 # necessary, set CXX_DIALECT to some -std=xxx switch.
16439 ax_cxx_compile_alternatives="11 0x" ax_cxx_compile_cxx11_required=true
16441 ac_cpp='$CXXCPP $CPPFLAGS'
16442 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16443 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16444 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
16447 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++11 features by default" >&5
16448 $as_echo_n "checking whether $CXX supports C++11 features by default... " >&6; }
16449 if ${ax_cv_cxx_compile_cxx11+:} false; then :
16450 $as_echo_n "(cached) " >&6
16452 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16453 /* end confdefs.h. */
16456 // If the compiler admits that it is not ready for C++11, why torture it?
16457 // Hopefully, this will speed up the test.
16459 #ifndef __cplusplus
16461 #error "This is not a C++ compiler"
16463 #elif __cplusplus < 201103L
16465 #error "This is not a C++11 compiler"
16472 namespace test_static_assert
16475 template <typename T>
16478 static_assert(sizeof(int) <= sizeof(T), "not big enough");
16483 namespace test_final_override
16488 virtual void f() {}
16491 struct Derived : public Base
16493 virtual void f() override {}
16498 namespace test_double_right_angle_brackets
16501 template < typename T >
16504 typedef check<void> single_type;
16505 typedef check<check<void>> double_type;
16506 typedef check<check<check<void>>> triple_type;
16507 typedef check<check<check<check<void>>>> quadruple_type;
16511 namespace test_decltype
16524 namespace test_type_deduction
16527 template < typename T1, typename T2 >
16530 static const bool value = false;
16533 template < typename T >
16534 struct is_same<T, T>
16536 static const bool value = true;
16539 template < typename T1, typename T2 >
16541 add(T1 a1, T2 a2) -> decltype(a1 + a2)
16547 test(const int c, volatile int v)
16549 static_assert(is_same<int, decltype(0)>::value == true, "");
16550 static_assert(is_same<int, decltype(c)>::value == false, "");
16551 static_assert(is_same<int, decltype(v)>::value == false, "");
16554 auto sumi = ac + av + 'x';
16555 auto sumf = ac + av + 1.0;
16556 static_assert(is_same<int, decltype(ac)>::value == true, "");
16557 static_assert(is_same<int, decltype(av)>::value == true, "");
16558 static_assert(is_same<int, decltype(sumi)>::value == true, "");
16559 static_assert(is_same<int, decltype(sumf)>::value == false, "");
16560 static_assert(is_same<int, decltype(add(c, v))>::value == true, "");
16561 return (sumf > 0.0) ? sumi : add(c, v);
16566 namespace test_noexcept
16569 int f() { return 0; }
16570 int g() noexcept { return 0; }
16572 static_assert(noexcept(f()) == false, "");
16573 static_assert(noexcept(g()) == true, "");
16577 namespace test_constexpr
16580 template < typename CharT >
16581 unsigned long constexpr
16582 strlen_c_r(const CharT *const s, const unsigned long acc) noexcept
16584 return *s ? strlen_c_r(s + 1, acc + 1) : acc;
16587 template < typename CharT >
16588 unsigned long constexpr
16589 strlen_c(const CharT *const s) noexcept
16591 return strlen_c_r(s, 0UL);
16594 static_assert(strlen_c("") == 0UL, "");
16595 static_assert(strlen_c("1") == 1UL, "");
16596 static_assert(strlen_c("example") == 7UL, "");
16597 static_assert(strlen_c("another\0example") == 7UL, "");
16601 namespace test_rvalue_references
16607 static constexpr int value = N;
16610 answer<1> f(int&) { return answer<1>(); }
16611 answer<2> f(const int&) { return answer<2>(); }
16612 answer<3> f(int&&) { return answer<3>(); }
16619 static_assert(decltype(f(i))::value == 1, "");
16620 static_assert(decltype(f(c))::value == 2, "");
16621 static_assert(decltype(f(0))::value == 3, "");
16626 namespace test_uniform_initialization
16631 static const int zero {};
16632 static const int one {1};
16635 static_assert(test::zero == 0, "");
16636 static_assert(test::one == 1, "");
16640 namespace test_lambdas
16646 auto lambda1 = [](){};
16647 auto lambda2 = lambda1;
16655 auto a = [](int i, int j){ return i + j; }(1, 2);
16656 auto b = []() -> int { return '0'; }();
16657 auto c = [=](){ return a + b; }();
16658 auto d = [&](){ return c; }();
16659 auto e = [a, &b](int x) mutable {
16660 const auto identity = [](int y){ return y; };
16661 for (auto i = 0; i < a; ++i)
16663 return x + identity(a + b);
16665 return a + b + c + d + e;
16671 const auto nullary = [](){ return 0; };
16672 const auto unary = [](int x){ return x; };
16673 using nullary_t = decltype(nullary);
16674 using unary_t = decltype(unary);
16675 const auto higher1st = [](nullary_t f){ return f(); };
16676 const auto higher2nd = [unary](nullary_t f1){
16677 return [unary, f1](unary_t f2){ return f2(unary(f1())); };
16679 return higher1st(nullary) + higher2nd(nullary)(unary);
16684 namespace test_variadic_templates
16690 template <int N0, int... N1toN>
16691 struct sum<N0, N1toN...>
16693 static constexpr auto value = N0 + sum<N1toN...>::value;
16699 static constexpr auto value = 0;
16702 static_assert(sum<>::value == 0, "");
16703 static_assert(sum<1>::value == 1, "");
16704 static_assert(sum<23>::value == 23, "");
16705 static_assert(sum<1, 2>::value == 3, "");
16706 static_assert(sum<5, 5, 11>::value == 21, "");
16707 static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, "");
16711 // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae
16712 // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function
16713 // because of this.
16714 namespace test_template_alias_sfinae
16719 template<typename T>
16720 using member = typename T::member_type;
16722 template<typename T>
16725 template<typename T>
16726 void func(member<T>*) {}
16730 void test() { func<foo>(0); }
16734 } // namespace cxx11
16736 #endif // __cplusplus >= 201103L
16741 if ac_fn_cxx_try_compile "$LINENO"; then :
16742 ax_cv_cxx_compile_cxx11=yes
16744 ax_cv_cxx_compile_cxx11=no
16746 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cxx_compile_cxx11" >&5
16749 $as_echo "$ax_cv_cxx_compile_cxx11" >&6; }
16750 if test x$ax_cv_cxx_compile_cxx11 = xyes; then
16754 if test x$ac_success = xno; then
16755 for alternative in ${ax_cxx_compile_alternatives}; do
16756 switch="-std=gnu++${alternative}"
16757 cachevar=`$as_echo "ax_cv_cxx_compile_cxx11_$switch" | $as_tr_sh`
16758 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++11 features with $switch" >&5
16759 $as_echo_n "checking whether $CXX supports C++11 features with $switch... " >&6; }
16760 if eval \${$cachevar+:} false; then :
16761 $as_echo_n "(cached) " >&6
16765 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16766 /* end confdefs.h. */
16769 // If the compiler admits that it is not ready for C++11, why torture it?
16770 // Hopefully, this will speed up the test.
16772 #ifndef __cplusplus
16774 #error "This is not a C++ compiler"
16776 #elif __cplusplus < 201103L
16778 #error "This is not a C++11 compiler"
16785 namespace test_static_assert
16788 template <typename T>
16791 static_assert(sizeof(int) <= sizeof(T), "not big enough");
16796 namespace test_final_override
16801 virtual void f() {}
16804 struct Derived : public Base
16806 virtual void f() override {}
16811 namespace test_double_right_angle_brackets
16814 template < typename T >
16817 typedef check<void> single_type;
16818 typedef check<check<void>> double_type;
16819 typedef check<check<check<void>>> triple_type;
16820 typedef check<check<check<check<void>>>> quadruple_type;
16824 namespace test_decltype
16837 namespace test_type_deduction
16840 template < typename T1, typename T2 >
16843 static const bool value = false;
16846 template < typename T >
16847 struct is_same<T, T>
16849 static const bool value = true;
16852 template < typename T1, typename T2 >
16854 add(T1 a1, T2 a2) -> decltype(a1 + a2)
16860 test(const int c, volatile int v)
16862 static_assert(is_same<int, decltype(0)>::value == true, "");
16863 static_assert(is_same<int, decltype(c)>::value == false, "");
16864 static_assert(is_same<int, decltype(v)>::value == false, "");
16867 auto sumi = ac + av + 'x';
16868 auto sumf = ac + av + 1.0;
16869 static_assert(is_same<int, decltype(ac)>::value == true, "");
16870 static_assert(is_same<int, decltype(av)>::value == true, "");
16871 static_assert(is_same<int, decltype(sumi)>::value == true, "");
16872 static_assert(is_same<int, decltype(sumf)>::value == false, "");
16873 static_assert(is_same<int, decltype(add(c, v))>::value == true, "");
16874 return (sumf > 0.0) ? sumi : add(c, v);
16879 namespace test_noexcept
16882 int f() { return 0; }
16883 int g() noexcept { return 0; }
16885 static_assert(noexcept(f()) == false, "");
16886 static_assert(noexcept(g()) == true, "");
16890 namespace test_constexpr
16893 template < typename CharT >
16894 unsigned long constexpr
16895 strlen_c_r(const CharT *const s, const unsigned long acc) noexcept
16897 return *s ? strlen_c_r(s + 1, acc + 1) : acc;
16900 template < typename CharT >
16901 unsigned long constexpr
16902 strlen_c(const CharT *const s) noexcept
16904 return strlen_c_r(s, 0UL);
16907 static_assert(strlen_c("") == 0UL, "");
16908 static_assert(strlen_c("1") == 1UL, "");
16909 static_assert(strlen_c("example") == 7UL, "");
16910 static_assert(strlen_c("another\0example") == 7UL, "");
16914 namespace test_rvalue_references
16920 static constexpr int value = N;
16923 answer<1> f(int&) { return answer<1>(); }
16924 answer<2> f(const int&) { return answer<2>(); }
16925 answer<3> f(int&&) { return answer<3>(); }
16932 static_assert(decltype(f(i))::value == 1, "");
16933 static_assert(decltype(f(c))::value == 2, "");
16934 static_assert(decltype(f(0))::value == 3, "");
16939 namespace test_uniform_initialization
16944 static const int zero {};
16945 static const int one {1};
16948 static_assert(test::zero == 0, "");
16949 static_assert(test::one == 1, "");
16953 namespace test_lambdas
16959 auto lambda1 = [](){};
16960 auto lambda2 = lambda1;
16968 auto a = [](int i, int j){ return i + j; }(1, 2);
16969 auto b = []() -> int { return '0'; }();
16970 auto c = [=](){ return a + b; }();
16971 auto d = [&](){ return c; }();
16972 auto e = [a, &b](int x) mutable {
16973 const auto identity = [](int y){ return y; };
16974 for (auto i = 0; i < a; ++i)
16976 return x + identity(a + b);
16978 return a + b + c + d + e;
16984 const auto nullary = [](){ return 0; };
16985 const auto unary = [](int x){ return x; };
16986 using nullary_t = decltype(nullary);
16987 using unary_t = decltype(unary);
16988 const auto higher1st = [](nullary_t f){ return f(); };
16989 const auto higher2nd = [unary](nullary_t f1){
16990 return [unary, f1](unary_t f2){ return f2(unary(f1())); };
16992 return higher1st(nullary) + higher2nd(nullary)(unary);
16997 namespace test_variadic_templates
17003 template <int N0, int... N1toN>
17004 struct sum<N0, N1toN...>
17006 static constexpr auto value = N0 + sum<N1toN...>::value;
17012 static constexpr auto value = 0;
17015 static_assert(sum<>::value == 0, "");
17016 static_assert(sum<1>::value == 1, "");
17017 static_assert(sum<23>::value == 23, "");
17018 static_assert(sum<1, 2>::value == 3, "");
17019 static_assert(sum<5, 5, 11>::value == 21, "");
17020 static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, "");
17024 // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae
17025 // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function
17026 // because of this.
17027 namespace test_template_alias_sfinae
17032 template<typename T>
17033 using member = typename T::member_type;
17035 template<typename T>
17038 template<typename T>
17039 void func(member<T>*) {}
17043 void test() { func<foo>(0); }
17047 } // namespace cxx11
17049 #endif // __cplusplus >= 201103L
17054 if ac_fn_cxx_try_compile "$LINENO"; then :
17059 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17062 eval ac_res=\$$cachevar
17063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
17064 $as_echo "$ac_res" >&6; }
17065 if eval test x\$$cachevar = xyes; then
17066 CXX_DIALECT="$switch"
17068 if test -n "$CXXCPP" ; then
17069 CXXCPP="$CXXCPP $switch"
17077 if test x$ac_success = xno; then
17078 for alternative in ${ax_cxx_compile_alternatives}; do
17079 for switch in -std=c++${alternative} +std=c++${alternative} "-h std=c++${alternative}"; do
17080 cachevar=`$as_echo "ax_cv_cxx_compile_cxx11_$switch" | $as_tr_sh`
17081 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++11 features with $switch" >&5
17082 $as_echo_n "checking whether $CXX supports C++11 features with $switch... " >&6; }
17083 if eval \${$cachevar+:} false; then :
17084 $as_echo_n "(cached) " >&6
17088 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17089 /* end confdefs.h. */
17092 // If the compiler admits that it is not ready for C++11, why torture it?
17093 // Hopefully, this will speed up the test.
17095 #ifndef __cplusplus
17097 #error "This is not a C++ compiler"
17099 #elif __cplusplus < 201103L
17101 #error "This is not a C++11 compiler"
17108 namespace test_static_assert
17111 template <typename T>
17114 static_assert(sizeof(int) <= sizeof(T), "not big enough");
17119 namespace test_final_override
17124 virtual void f() {}
17127 struct Derived : public Base
17129 virtual void f() override {}
17134 namespace test_double_right_angle_brackets
17137 template < typename T >
17140 typedef check<void> single_type;
17141 typedef check<check<void>> double_type;
17142 typedef check<check<check<void>>> triple_type;
17143 typedef check<check<check<check<void>>>> quadruple_type;
17147 namespace test_decltype
17160 namespace test_type_deduction
17163 template < typename T1, typename T2 >
17166 static const bool value = false;
17169 template < typename T >
17170 struct is_same<T, T>
17172 static const bool value = true;
17175 template < typename T1, typename T2 >
17177 add(T1 a1, T2 a2) -> decltype(a1 + a2)
17183 test(const int c, volatile int v)
17185 static_assert(is_same<int, decltype(0)>::value == true, "");
17186 static_assert(is_same<int, decltype(c)>::value == false, "");
17187 static_assert(is_same<int, decltype(v)>::value == false, "");
17190 auto sumi = ac + av + 'x';
17191 auto sumf = ac + av + 1.0;
17192 static_assert(is_same<int, decltype(ac)>::value == true, "");
17193 static_assert(is_same<int, decltype(av)>::value == true, "");
17194 static_assert(is_same<int, decltype(sumi)>::value == true, "");
17195 static_assert(is_same<int, decltype(sumf)>::value == false, "");
17196 static_assert(is_same<int, decltype(add(c, v))>::value == true, "");
17197 return (sumf > 0.0) ? sumi : add(c, v);
17202 namespace test_noexcept
17205 int f() { return 0; }
17206 int g() noexcept { return 0; }
17208 static_assert(noexcept(f()) == false, "");
17209 static_assert(noexcept(g()) == true, "");
17213 namespace test_constexpr
17216 template < typename CharT >
17217 unsigned long constexpr
17218 strlen_c_r(const CharT *const s, const unsigned long acc) noexcept
17220 return *s ? strlen_c_r(s + 1, acc + 1) : acc;
17223 template < typename CharT >
17224 unsigned long constexpr
17225 strlen_c(const CharT *const s) noexcept
17227 return strlen_c_r(s, 0UL);
17230 static_assert(strlen_c("") == 0UL, "");
17231 static_assert(strlen_c("1") == 1UL, "");
17232 static_assert(strlen_c("example") == 7UL, "");
17233 static_assert(strlen_c("another\0example") == 7UL, "");
17237 namespace test_rvalue_references
17243 static constexpr int value = N;
17246 answer<1> f(int&) { return answer<1>(); }
17247 answer<2> f(const int&) { return answer<2>(); }
17248 answer<3> f(int&&) { return answer<3>(); }
17255 static_assert(decltype(f(i))::value == 1, "");
17256 static_assert(decltype(f(c))::value == 2, "");
17257 static_assert(decltype(f(0))::value == 3, "");
17262 namespace test_uniform_initialization
17267 static const int zero {};
17268 static const int one {1};
17271 static_assert(test::zero == 0, "");
17272 static_assert(test::one == 1, "");
17276 namespace test_lambdas
17282 auto lambda1 = [](){};
17283 auto lambda2 = lambda1;
17291 auto a = [](int i, int j){ return i + j; }(1, 2);
17292 auto b = []() -> int { return '0'; }();
17293 auto c = [=](){ return a + b; }();
17294 auto d = [&](){ return c; }();
17295 auto e = [a, &b](int x) mutable {
17296 const auto identity = [](int y){ return y; };
17297 for (auto i = 0; i < a; ++i)
17299 return x + identity(a + b);
17301 return a + b + c + d + e;
17307 const auto nullary = [](){ return 0; };
17308 const auto unary = [](int x){ return x; };
17309 using nullary_t = decltype(nullary);
17310 using unary_t = decltype(unary);
17311 const auto higher1st = [](nullary_t f){ return f(); };
17312 const auto higher2nd = [unary](nullary_t f1){
17313 return [unary, f1](unary_t f2){ return f2(unary(f1())); };
17315 return higher1st(nullary) + higher2nd(nullary)(unary);
17320 namespace test_variadic_templates
17326 template <int N0, int... N1toN>
17327 struct sum<N0, N1toN...>
17329 static constexpr auto value = N0 + sum<N1toN...>::value;
17335 static constexpr auto value = 0;
17338 static_assert(sum<>::value == 0, "");
17339 static_assert(sum<1>::value == 1, "");
17340 static_assert(sum<23>::value == 23, "");
17341 static_assert(sum<1, 2>::value == 3, "");
17342 static_assert(sum<5, 5, 11>::value == 21, "");
17343 static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, "");
17347 // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae
17348 // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function
17349 // because of this.
17350 namespace test_template_alias_sfinae
17355 template<typename T>
17356 using member = typename T::member_type;
17358 template<typename T>
17361 template<typename T>
17362 void func(member<T>*) {}
17366 void test() { func<foo>(0); }
17370 } // namespace cxx11
17372 #endif // __cplusplus >= 201103L
17377 if ac_fn_cxx_try_compile "$LINENO"; then :
17382 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17385 eval ac_res=\$$cachevar
17386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
17387 $as_echo "$ac_res" >&6; }
17388 if eval test x\$$cachevar = xyes; then
17389 CXX_DIALECT="$switch"
17391 if test -n "$CXXCPP" ; then
17392 CXXCPP="$CXXCPP $switch"
17398 if test x$ac_success = xyes; then
17404 ac_cpp='$CPP $CPPFLAGS'
17405 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17406 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17407 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17409 if test x$ax_cxx_compile_cxx11_required = xtrue; then
17410 if test x$ac_success = xno; then
17411 as_fn_error $? "*** A compiler with support for C++11 language features is required." "$LINENO" 5
17414 if test x$ac_success = xno; then
17416 { $as_echo "$as_me:${as_lineno-$LINENO}: No compiler with C++11 support was found" >&5
17417 $as_echo "$as_me: No compiler with C++11 support was found" >&6;}
17421 $as_echo "#define HAVE_CXX11 1" >>confdefs.h
17428 # Dependency checking.
17429 rm -rf .tst 2>/dev/null
17430 mkdir .tst 2>/dev/null
17431 if test -d .tst; then
17436 rmdir .tst 2>/dev/null
17438 DEPDIR="${am__leading_dot}deps"
17440 ac_config_commands="$ac_config_commands depdir"
17443 depcc="$CC" am_compiler_list=
17445 am_depcomp=$ac_aux_dir/depcomp
17446 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
17447 $as_echo_n "checking dependency style of $depcc... " >&6; }
17448 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
17449 $as_echo_n "(cached) " >&6
17451 if test -f "$am_depcomp"; then
17452 # We make a subdir and do the tests there. Otherwise we can end up
17453 # making bogus files that we don't know about and never remove. For
17454 # instance it was reported that on HP-UX the gcc test will end up
17455 # making a dummy file named `D' -- because `-MD' means `put the output
17458 # Copy depcomp to subdir because otherwise we won't find it if we're
17459 # using a relative directory.
17460 cp "$am_depcomp" conftest.dir
17462 # We will build objects and dependencies in a subdirectory because
17463 # it helps to detect inapplicable dependency modes. For instance
17464 # both Tru64's cc and ICC support -MD to output dependencies as a
17465 # side effect of compilation, but ICC will put the dependencies in
17466 # the current directory while Tru64 will put them in the object
17470 am_cv_CC_dependencies_compiler_type=none
17471 if test "$am_compiler_list" = ""; then
17472 am_compiler_list=`sed -n 's/^\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
17474 for depmode in $am_compiler_list; do
17475 if test $depmode = none; then break; fi
17477 $as_echo "$as_me:$LINENO: trying $depmode" >&5
17478 # Setup a source with many dependencies, because some compilers
17479 # like to wrap large dependency lists on column 80 (with \), and
17480 # we should not choose a depcomp mode which is confused by this.
17482 # We need to recreate these files for each test, as the compiler may
17483 # overwrite some of them when testing with obscure command lines.
17484 # This happens at least with the AIX C compiler.
17486 for i in 1 2 3 4 5 6; do
17487 echo '#include "conftst'$i'.h"' >> sub/conftest.c
17488 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
17489 # Solaris 8's {/usr,}/bin/sh.
17490 touch sub/conftst$i.h
17492 echo "include sub/conftest.Po" > confmf
17494 # We check with `-c' and `-o' for the sake of the "dashmstdout"
17495 # mode. It turns out that the SunPro C++ compiler does not properly
17496 # handle `-M -o', and we need to detect this.
17497 depcmd="depmode=$depmode \
17498 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
17499 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
17500 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c"
17501 echo "| $depcmd" | sed -e 's/ */ /g' >&5
17502 if env $depcmd > conftest.err 2>&1 &&
17503 grep sub/conftst6.h sub/conftest.Po >>conftest.err 2>&1 &&
17504 grep sub/conftest.${OBJEXT-o} sub/conftest.Po >>conftest.err 2>&1 &&
17505 ${MAKE-make} -s -f confmf >>conftest.err 2>&1; then
17506 # icc doesn't choke on unknown options, it will just issue warnings
17507 # or remarks (even with -Werror). So we grep stderr for any message
17508 # that says an option was ignored or not supported.
17509 # When given -MP, icc 7.0 and 7.1 complain thusly:
17510 # icc: Command line warning: ignoring option '-M'; no argument required
17511 # The diagnosis changed in icc 8.0:
17512 # icc: Command line remark: option '-MP' not supported
17513 if (grep 'ignoring option' conftest.err ||
17514 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
17515 am_cv_CC_dependencies_compiler_type=$depmode
17516 $as_echo "$as_me:$LINENO: success" >&5
17520 $as_echo "$as_me:$LINENO: failure, diagnostics are:" >&5
17521 sed -e 's/^/| /' < conftest.err >&5
17525 rm -rf conftest.dir
17527 am_cv_CC_dependencies_compiler_type=none
17531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
17532 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
17533 if test x${am_cv_CC_dependencies_compiler_type-none} = xnone
17534 then as_fn_error $? "no usable dependency style found" "$LINENO" 5
17535 else CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
17551 # If we haven't got the data from the intl directory,
17552 # assume NLS is disabled.
17561 if test -f ../intl/config.intl; then
17562 . ../intl/config.intl
17564 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
17565 $as_echo_n "checking whether NLS is requested... " >&6; }
17566 if test x"$USE_NLS" != xyes; then
17567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17568 $as_echo "no" >&6; }
17570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17571 $as_echo "yes" >&6; }
17573 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
17576 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catalogs to be installed" >&5
17577 $as_echo_n "checking for catalogs to be installed... " >&6; }
17578 # Look for .po and .gmo files in the source directory.
17581 for cat in $srcdir/po/*.gmo $srcdir/po/*.po; do
17582 # If there aren't any .gmo files the shell will give us the
17583 # literal string "../path/to/srcdir/po/*.gmo" which has to be
17585 case "$cat" in *\**)
17588 # The quadruple backslash is collapsed to a double backslash
17589 # by the backticks, then collapsed again by the double quotes,
17590 # leaving us with one backslash in the sed expression (right
17591 # before the dot that mustn't act as a wildcard).
17592 cat=`echo $cat | sed -e "s!$srcdir/po/!!" -e "s!\\\\.po!.gmo!"`
17593 lang=`echo $cat | sed -e "s!\\\\.gmo!!"`
17594 # The user is allowed to set LINGUAS to a list of languages to
17595 # install catalogs for. If it's empty that means "all of them."
17596 if test "x$LINGUAS" = x; then
17597 CATALOGS="$CATALOGS $cat"
17598 XLINGUAS="$XLINGUAS $lang"
17600 case "$LINGUAS" in *$lang*)
17601 CATALOGS="$CATALOGS $cat"
17602 XLINGUAS="$XLINGUAS $lang"
17607 LINGUAS="$XLINGUAS"
17608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINGUAS" >&5
17609 $as_echo "$LINGUAS" >&6; }
17622 localedir='${datadir}/locale'
17625 if test x"$USE_NLS" = xyes; then
17626 CONFIG_ALL="$CONFIG_ALL all-po"
17627 CONFIG_CLEAN="$CONFIG_CLEAN clean-po"
17628 CONFIG_INSTALL="$CONFIG_INSTALL install-po"
17629 CONFIG_UNINSTALL="$CONFIG_UNINSTALL uninstall-po"
17634 cat >>confdefs.h <<_ACEOF
17635 #define PACKAGE "$PACKAGE"
17640 # We never need to detect it in this sub-configure.
17641 # But preserve it for config.status --recheck.
17645 MAKEINFO_EXTRA_FLAGS=""
17646 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $MAKEINFO supports @click" >&5
17647 $as_echo_n "checking whether $MAKEINFO supports @click... " >&6; }
17648 if ${gdb_cv_have_makeinfo_click+:} false; then :
17649 $as_echo_n "(cached) " >&6
17651 echo '@clicksequence{a @click{} b}' >conftest.texinfo
17652 if eval "$MAKEINFO conftest.texinfo >&5 2>&5"; then
17653 gdb_cv_have_makeinfo_click=yes
17655 gdb_cv_have_makeinfo_click=no
17658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_have_makeinfo_click" >&5
17659 $as_echo "$gdb_cv_have_makeinfo_click" >&6; }
17660 if test x"$gdb_cv_have_makeinfo_click" = xyes; then
17661 MAKEINFO_EXTRA_FLAGS="$MAKEINFO_EXTRA_FLAGS -DHAVE_MAKEINFO_CLICK"
17667 # Check whether --with-separate-debug-dir was given.
17668 if test "${with_separate_debug_dir+set}" = set; then :
17669 withval=$with_separate_debug_dir;
17672 DEBUGDIR=${libdir}/debug
17676 test "x$prefix" = xNONE && prefix="$ac_default_prefix"
17677 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
17678 ac_define_dir=`eval echo $DEBUGDIR`
17679 ac_define_dir=`eval echo $ac_define_dir`
17681 cat >>confdefs.h <<_ACEOF
17682 #define DEBUGDIR "$ac_define_dir"
17688 if test "x$exec_prefix" = xNONE || test "x$exec_prefix" = 'x${prefix}'; then
17689 if test "x$prefix" = xNONE; then
17690 test_prefix=/usr/local
17692 test_prefix=$prefix
17695 test_prefix=$exec_prefix
17698 case ${ac_define_dir} in
17699 "${test_prefix}"|"${test_prefix}/"*|\
17700 '${exec_prefix}'|'${exec_prefix}/'*)
17705 cat >>confdefs.h <<_ACEOF
17706 #define DEBUGDIR_RELOCATABLE $value
17712 # We can't pass paths as command line arguments.
17713 # Mingw32 tries to be clever and will convert the paths for us.
17714 # For example -DBINDIR="/usr/local/bin" passed on the command line may get
17715 # converted to -DBINDIR="E:/msys/mingw32/msys/1.0/local/bin".
17716 # This breaks GDB's relocatable path conversions since paths passed in
17717 # config.h would not get so translated, the path prefixes no longer match.
17719 test "x$prefix" = xNONE && prefix="$ac_default_prefix"
17720 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
17721 ac_define_dir=`eval echo $bindir`
17722 ac_define_dir=`eval echo $ac_define_dir`
17724 cat >>confdefs.h <<_ACEOF
17725 #define BINDIR "$ac_define_dir"
17730 # GDB's datadir relocation
17734 # Check whether --with-gdb-datadir was given.
17735 if test "${with_gdb_datadir+set}" = set; then :
17736 withval=$with_gdb_datadir;
17737 GDB_DATADIR=$withval
17739 GDB_DATADIR=${datadir}/gdb
17743 test "x$prefix" = xNONE && prefix="$ac_default_prefix"
17744 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
17745 ac_define_dir=`eval echo $GDB_DATADIR`
17746 ac_define_dir=`eval echo $ac_define_dir`
17748 cat >>confdefs.h <<_ACEOF
17749 #define GDB_DATADIR "$ac_define_dir"
17755 if test "x$exec_prefix" = xNONE || test "x$exec_prefix" = 'x${prefix}'; then
17756 if test "x$prefix" = xNONE; then
17757 test_prefix=/usr/local
17759 test_prefix=$prefix
17762 test_prefix=$exec_prefix
17765 case ${ac_define_dir} in
17766 "${test_prefix}"|"${test_prefix}/"*|\
17767 '${exec_prefix}'|'${exec_prefix}/'*)
17772 cat >>confdefs.h <<_ACEOF
17773 #define GDB_DATADIR_RELOCATABLE $value
17780 # Check whether --with-relocated-sources was given.
17781 if test "${with_relocated_sources+set}" = set; then :
17782 withval=$with_relocated_sources; reloc_srcdir="${withval}"
17784 test "x$prefix" = xNONE && prefix="$ac_default_prefix"
17785 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
17786 ac_define_dir=`eval echo $reloc_srcdir`
17787 ac_define_dir=`eval echo $ac_define_dir`
17789 cat >>confdefs.h <<_ACEOF
17790 #define RELOC_SRCDIR "$ac_define_dir"
17798 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for default auto-load directory" >&5
17799 $as_echo_n "checking for default auto-load directory... " >&6; }
17801 # Check whether --with-auto-load-dir was given.
17802 if test "${with_auto_load_dir+set}" = set; then :
17803 withval=$with_auto_load_dir;
17805 with_auto_load_dir='$debugdir:$datadir/auto-load'
17808 escape_dir=`echo $with_auto_load_dir | sed -e 's/[$]datadir\>/\\\\\\\\\\\\&/g' -e 's/[$]debugdir\>/\\\\\\\\\\\\&/g'`
17810 test "x$prefix" = xNONE && prefix="$ac_default_prefix"
17811 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
17812 ac_define_dir=`eval echo $escape_dir`
17813 ac_define_dir=`eval echo $ac_define_dir`
17815 cat >>confdefs.h <<_ACEOF
17816 #define AUTO_LOAD_DIR "$ac_define_dir"
17820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_auto_load_dir" >&5
17821 $as_echo "$with_auto_load_dir" >&6; }
17823 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for default auto-load safe-path" >&5
17824 $as_echo_n "checking for default auto-load safe-path... " >&6; }
17826 # Check whether --with-auto-load-safe-path was given.
17827 if test "${with_auto_load_safe_path+set}" = set; then :
17828 withval=$with_auto_load_safe_path; if test "$with_auto_load_safe_path" = "no"; then
17829 with_auto_load_safe_path="/"
17832 with_auto_load_safe_path="$with_auto_load_dir"
17835 escape_dir=`echo $with_auto_load_safe_path | sed -e 's/[$]datadir\>/\\\\\\\\\\\\&/g' -e 's/[$]debugdir\>/\\\\\\\\\\\\&/g'`
17837 test "x$prefix" = xNONE && prefix="$ac_default_prefix"
17838 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
17839 ac_define_dir=`eval echo $escape_dir`
17840 ac_define_dir=`eval echo $ac_define_dir`
17842 cat >>confdefs.h <<_ACEOF
17843 #define AUTO_LOAD_SAFE_PATH "$ac_define_dir"
17847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_auto_load_safe_path" >&5
17848 $as_echo "$with_auto_load_safe_path" >&6; }
17852 subdirs="$subdirs testsuite"
17855 # Check whether to support alternative target configurations
17856 # Check whether --enable-targets was given.
17857 if test "${enable_targets+set}" = set; then :
17858 enableval=$enable_targets; case "${enableval}" in
17859 yes | "") as_fn_error $? "enable-targets option must specify target names or 'all'" "$LINENO" 5
17861 no) enable_targets= ;;
17862 *) enable_targets=$enableval ;;
17867 # Check whether --enable-64-bit-bfd was given.
17868 if test "${enable_64_bit_bfd+set}" = set; then :
17869 enableval=$enable_64_bit_bfd; case $enableval in #(
17873 as_fn_error $? "bad value ${enableval} for 64-bit-bfd option" "$LINENO" 5 ;; #(
17878 enable_64_bit_bfd=no
17882 if test "x$enable_64_bit_bfd" = "xno"; then :
17883 # The cast to long int works around a bug in the HP C Compiler
17884 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
17885 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
17886 # This bug is HP SR number 8606223364.
17887 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5
17888 $as_echo_n "checking size of void *... " >&6; }
17889 if ${ac_cv_sizeof_void_p+:} false; then :
17890 $as_echo_n "(cached) " >&6
17892 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (void *))" "ac_cv_sizeof_void_p" "$ac_includes_default"; then :
17895 if test "$ac_cv_type_void_p" = yes; then
17896 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
17897 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
17898 as_fn_error 77 "cannot compute sizeof (void *)
17899 See \`config.log' for more details" "$LINENO" 5; }
17901 ac_cv_sizeof_void_p=0
17906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5
17907 $as_echo "$ac_cv_sizeof_void_p" >&6; }
17911 cat >>confdefs.h <<_ACEOF
17912 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
17916 if test "x$ac_cv_sizeof_void_p" = "x8"; then :
17917 enable_64_bit_bfd=yes
17922 if test "x$enable_64_bit_bfd" = "xyes"; then
17923 ENABLE_BFD_64_BIT_TRUE=
17924 ENABLE_BFD_64_BIT_FALSE='#'
17926 ENABLE_BFD_64_BIT_TRUE='#'
17927 ENABLE_BFD_64_BIT_FALSE=
17932 # Provide defaults for some variables set by the per-host and per-target
17934 gdb_host_obs=posix-hdep.o
17936 if test "${target}" = "${host}"; then
17942 . $srcdir/configure.host
17944 # Accumulate some settings from configure.tgt over all enabled targets
17948 HAVE_NATIVE_GCORE_TARGET=
17950 for targ_alias in `echo $target_alias $enable_targets | sed 's/,/ /g'`
17952 if test "$targ_alias" = "all"; then
17955 # Canonicalize the secondary target names.
17956 result=`$ac_config_sub $targ_alias 2>/dev/null`
17957 if test -n "$result"; then
17963 . ${srcdir}/configure.tgt
17965 if test -z "${gdb_target_obs}"; then :
17966 as_fn_error $? "configuration ${targ} is unsupported." "$LINENO" 5
17969 # Target-specific object files
17970 for i in ${gdb_target_obs}; do
17971 case " $TARGET_OBS " in
17974 TARGET_OBS="$TARGET_OBS ${i}"
17979 # Check whether this target needs 64-bit CORE_ADDR
17980 if test x${enable_64_bit_bfd} = xno; then
17981 . ${srcdir}/../bfd/config.bfd
17984 # Check whether this target is native and supports gcore.
17985 if test $gdb_native = yes -a "$targ_alias" = "$target_alias" \
17986 && $gdb_have_gcore; then
17987 HAVE_NATIVE_GCORE_TARGET=1
17992 if test x${all_targets} = xtrue; then
17993 if test x${enable_64_bit_bfd} = xyes; then
17994 TARGET_OBS='$(ALL_TARGET_OBS) $(ALL_64_TARGET_OBS)'
17996 TARGET_OBS='$(ALL_TARGET_OBS)'
18003 # For other settings, only the main target counts.
18006 targ=$target; . ${srcdir}/configure.tgt
18008 # Fetch the default architecture and default target vector from BFD.
18009 targ=$target; . $srcdir/../bfd/config.bfd
18011 # We only want the first architecture, so strip off the others if
18012 # there is more than one.
18013 targ_archs=`echo $targ_archs | sed 's/ .*//'`
18015 if test "x$targ_archs" != x; then
18017 cat >>confdefs.h <<_ACEOF
18018 #define DEFAULT_BFD_ARCH $targ_archs
18022 if test "x$targ_defvec" != x; then
18024 cat >>confdefs.h <<_ACEOF
18025 #define DEFAULT_BFD_VEC $targ_defvec
18031 # Check whether --enable-gdbmi was given.
18032 if test "${enable_gdbmi+set}" = set; then :
18033 enableval=$enable_gdbmi;
18038 as_fn_error $? "bad value $enableval for --enable-gdbmi" "$LINENO" 5
18046 if test x"$enable_gdbmi" = xyes; then
18047 if test -d "$srcdir/mi"; then
18048 CONFIG_OBS="$CONFIG_OBS \$(SUBDIR_MI_OBS)"
18049 CONFIG_DEPS="$CONFIG_DEPS \$(SUBDIR_MI_DEPS)"
18050 CONFIG_SRCS="$CONFIG_SRCS \$(SUBDIR_MI_SRCS)"
18051 ENABLE_CFLAGS="$ENABLE_CFLAGS \$(SUBDIR_MI_CFLAGS)"
18056 # Check whether --enable-tui was given.
18057 if test "${enable_tui+set}" = set; then :
18058 enableval=$enable_tui;
18063 as_fn_error $? "bad value $enableval for --enable-tui" "$LINENO" 5
18073 # Check whether --enable-gdbtk was given.
18074 if test "${enable_gdbtk+set}" = set; then :
18075 enableval=$enable_gdbtk;
18080 as_fn_error $? "bad value $enableval for --enable-gdbtk" "$LINENO" 5
18085 if test -d "$srcdir/gdbtk"; then
18092 # We unconditionally disable gdbtk tests on selected platforms.
18095 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: gdbtk isn't supported on $host; disabling" >&5
18096 $as_echo "$as_me: WARNING: gdbtk isn't supported on $host; disabling" >&2;}
18100 # Handle optional debuginfod support
18108 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
18109 if test -n "$ac_tool_prefix"; then
18110 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
18111 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
18112 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18113 $as_echo_n "checking for $ac_word... " >&6; }
18114 if ${ac_cv_path_PKG_CONFIG+:} false; then :
18115 $as_echo_n "(cached) " >&6
18117 case $PKG_CONFIG in
18119 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
18122 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18123 for as_dir in $PATH
18126 test -z "$as_dir" && as_dir=.
18127 for ac_exec_ext in '' $ac_executable_extensions; do
18128 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18129 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
18130 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18140 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
18141 if test -n "$PKG_CONFIG"; then
18142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
18143 $as_echo "$PKG_CONFIG" >&6; }
18145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18146 $as_echo "no" >&6; }
18151 if test -z "$ac_cv_path_PKG_CONFIG"; then
18152 ac_pt_PKG_CONFIG=$PKG_CONFIG
18153 # Extract the first word of "pkg-config", so it can be a program name with args.
18154 set dummy pkg-config; ac_word=$2
18155 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18156 $as_echo_n "checking for $ac_word... " >&6; }
18157 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
18158 $as_echo_n "(cached) " >&6
18160 case $ac_pt_PKG_CONFIG in
18162 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
18165 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18166 for as_dir in $PATH
18169 test -z "$as_dir" && as_dir=.
18170 for ac_exec_ext in '' $ac_executable_extensions; do
18171 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18172 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
18173 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18183 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
18184 if test -n "$ac_pt_PKG_CONFIG"; then
18185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
18186 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
18188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18189 $as_echo "no" >&6; }
18192 if test "x$ac_pt_PKG_CONFIG" = x; then
18195 case $cross_compiling:$ac_tool_warned in
18197 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
18198 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
18199 ac_tool_warned=yes ;;
18201 PKG_CONFIG=$ac_pt_PKG_CONFIG
18204 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
18208 if test -n "$PKG_CONFIG"; then
18209 _pkg_min_version=0.9.0
18210 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
18211 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
18212 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
18213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18214 $as_echo "yes" >&6; }
18216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18217 $as_echo "no" >&6; }
18222 # Handle optional debuginfod support
18224 # Check whether --with-debuginfod was given.
18225 if test "${with_debuginfod+set}" = set; then :
18226 withval=$with_debuginfod;
18228 with_debuginfod=auto
18231 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use debuginfod" >&5
18232 $as_echo_n "checking whether to use debuginfod... " >&6; }
18233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_debuginfod" >&5
18234 $as_echo "$with_debuginfod" >&6; }
18236 if test "x$with_debuginfod" != xno; then
18239 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libdebuginfod >= 0.179" >&5
18240 $as_echo_n "checking for libdebuginfod >= 0.179... " >&6; }
18242 if test -n "$DEBUGINFOD_CFLAGS"; then
18243 pkg_cv_DEBUGINFOD_CFLAGS="$DEBUGINFOD_CFLAGS"
18244 elif test -n "$PKG_CONFIG"; then
18245 if test -n "$PKG_CONFIG" && \
18246 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libdebuginfod >= 0.179\""; } >&5
18247 ($PKG_CONFIG --exists --print-errors "libdebuginfod >= 0.179") 2>&5
18249 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18250 test $ac_status = 0; }; then
18251 pkg_cv_DEBUGINFOD_CFLAGS=`$PKG_CONFIG --cflags "libdebuginfod >= 0.179" 2>/dev/null`
18252 test "x$?" != "x0" && pkg_failed=yes
18259 if test -n "$DEBUGINFOD_LIBS"; then
18260 pkg_cv_DEBUGINFOD_LIBS="$DEBUGINFOD_LIBS"
18261 elif test -n "$PKG_CONFIG"; then
18262 if test -n "$PKG_CONFIG" && \
18263 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libdebuginfod >= 0.179\""; } >&5
18264 ($PKG_CONFIG --exists --print-errors "libdebuginfod >= 0.179") 2>&5
18266 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18267 test $ac_status = 0; }; then
18268 pkg_cv_DEBUGINFOD_LIBS=`$PKG_CONFIG --libs "libdebuginfod >= 0.179" 2>/dev/null`
18269 test "x$?" != "x0" && pkg_failed=yes
18277 if test $pkg_failed = no; then
18278 pkg_save_LDFLAGS="$LDFLAGS"
18279 LDFLAGS="$LDFLAGS $pkg_cv_DEBUGINFOD_LIBS"
18280 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18281 /* end confdefs.h. */
18291 if ac_fn_c_try_link "$LINENO"; then :
18296 rm -f core conftest.err conftest.$ac_objext \
18297 conftest$ac_exeext conftest.$ac_ext
18298 LDFLAGS=$pkg_save_LDFLAGS
18303 if test $pkg_failed = yes; then
18304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18305 $as_echo "no" >&6; }
18307 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
18308 _pkg_short_errors_supported=yes
18310 _pkg_short_errors_supported=no
18312 if test $_pkg_short_errors_supported = yes; then
18313 DEBUGINFOD_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libdebuginfod >= 0.179" 2>&1`
18315 DEBUGINFOD_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libdebuginfod >= 0.179" 2>&1`
18317 # Put the nasty error message in config.log where it belongs
18318 echo "$DEBUGINFOD_PKG_ERRORS" >&5
18320 if test "x$with_debuginfod" = xyes; then
18321 as_fn_error $? "\"--with-debuginfod was given, but libdebuginfod is missing or unusable.\"" "$LINENO" 5
18323 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: libdebuginfod is missing or unusable; some features may be unavailable." >&5
18324 $as_echo "$as_me: WARNING: libdebuginfod is missing or unusable; some features may be unavailable." >&2;}
18326 elif test $pkg_failed = untried; then
18327 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18328 $as_echo "no" >&6; }
18329 if test "x$with_debuginfod" = xyes; then
18330 as_fn_error $? "\"--with-debuginfod was given, but libdebuginfod is missing or unusable.\"" "$LINENO" 5
18332 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: libdebuginfod is missing or unusable; some features may be unavailable." >&5
18333 $as_echo "$as_me: WARNING: libdebuginfod is missing or unusable; some features may be unavailable." >&2;}
18336 DEBUGINFOD_CFLAGS=$pkg_cv_DEBUGINFOD_CFLAGS
18337 DEBUGINFOD_LIBS=$pkg_cv_DEBUGINFOD_LIBS
18338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18339 $as_echo "yes" >&6; }
18341 $as_echo "#define HAVE_LIBDEBUGINFOD 1" >>confdefs.h
18345 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: debuginfod support disabled; some features may be unavailable." >&5
18346 $as_echo "$as_me: WARNING: debuginfod support disabled; some features may be unavailable." >&2;}
18350 # Libunwind support for ia64.
18352 # Check whether --with-libunwind-ia64 was given.
18353 if test "${with_libunwind_ia64+set}" = set; then :
18354 withval=$with_libunwind_ia64;
18356 with_libunwind_ia64=auto
18360 # Backward compatibility option.
18361 if test "${with_libunwind+set}" = set; then
18362 if test x"$with_libunwind_ia64" != xauto; then
18363 as_fn_error $? "option --with-libunwind is deprecated, use --with-libunwind-ia64" "$LINENO" 5
18365 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: option --with-libunwind is deprecated, use --with-libunwind-ia64" >&5
18366 $as_echo "$as_me: WARNING: option --with-libunwind is deprecated, use --with-libunwind-ia64" >&2;}
18367 with_libunwind_ia64="$with_libunwind"
18370 case "$with_libunwind_ia64" in
18374 for ac_header in libunwind-ia64.h
18376 ac_fn_c_check_header_mongrel "$LINENO" "libunwind-ia64.h" "ac_cv_header_libunwind_ia64_h" "$ac_includes_default"
18377 if test "x$ac_cv_header_libunwind_ia64_h" = xyes; then :
18378 cat >>confdefs.h <<_ACEOF
18379 #define HAVE_LIBUNWIND_IA64_H 1
18386 with_libunwind_ia64=$ac_cv_header_libunwind_ia64_h
18389 as_fn_error $? "bad value $with_libunwind_ia64 for GDB --with-libunwind-ia64 option" "$LINENO" 5
18393 if test x"$with_libunwind_ia64" = xyes; then
18394 for ac_header in libunwind-ia64.h
18396 ac_fn_c_check_header_mongrel "$LINENO" "libunwind-ia64.h" "ac_cv_header_libunwind_ia64_h" "$ac_includes_default"
18397 if test "x$ac_cv_header_libunwind_ia64_h" = xyes; then :
18398 cat >>confdefs.h <<_ACEOF
18399 #define HAVE_LIBUNWIND_IA64_H 1
18406 if test x"$ac_cv_header_libunwind_ia64_h" != xyes; then
18407 as_fn_error $? "GDB option --with-libunwind-ia64 requires libunwind-ia64.h" "$LINENO" 5
18409 CONFIG_OBS="$CONFIG_OBS ia64-libunwind-tdep.o"
18410 CONFIG_DEPS="$CONFIG_DEPS ia64-libunwind-tdep.o"
18411 CONFIG_SRCS="$CONFIG_SRCS ia64-libunwind-tdep.c"
18416 # Check whether --with-curses was given.
18417 if test "${with_curses+set}" = set; then :
18418 withval=$with_curses; opt_curses=$withval
18423 if test "$opt_curses" = "yes"; then
18427 # Profiling support.
18428 # Check whether --enable-profiling was given.
18429 if test "${enable_profiling+set}" = set; then :
18430 enableval=$enable_profiling;
18435 as_fn_error $? "bad value $enableval for --enable-profiling" "$LINENO" 5
18440 enable_profiling=no
18444 for ac_func in monstartup _mcleanup
18446 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
18447 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
18448 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
18449 cat >>confdefs.h <<_ACEOF
18450 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
18456 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _etext" >&5
18457 $as_echo_n "checking for _etext... " >&6; }
18458 if ${ac_cv_var__etext+:} false; then :
18459 $as_echo_n "(cached) " >&6
18461 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18462 /* end confdefs.h. */
18463 #include <stdlib.h>
18464 extern char _etext;
18474 if ac_fn_c_try_link "$LINENO"; then :
18475 ac_cv_var__etext=yes
18477 ac_cv_var__etext=no
18480 rm -f core conftest.err conftest.$ac_objext \
18481 conftest$ac_exeext conftest.$ac_ext
18484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var__etext" >&5
18485 $as_echo "$ac_cv_var__etext" >&6; }
18486 if test "$ac_cv_var__etext" = yes; then
18488 $as_echo "#define HAVE__ETEXT 1" >>confdefs.h
18491 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for etext" >&5
18492 $as_echo_n "checking for etext... " >&6; }
18493 if ${ac_cv_var_etext+:} false; then :
18494 $as_echo_n "(cached) " >&6
18496 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18497 /* end confdefs.h. */
18498 #include <stdlib.h>
18509 if ac_fn_c_try_link "$LINENO"; then :
18510 ac_cv_var_etext=yes
18515 rm -f core conftest.err conftest.$ac_objext \
18516 conftest$ac_exeext conftest.$ac_ext
18519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_etext" >&5
18520 $as_echo "$ac_cv_var_etext" >&6; }
18521 if test "$ac_cv_var_etext" = yes; then
18523 $as_echo "#define HAVE_ETEXT 1" >>confdefs.h
18526 if test "$enable_profiling" = yes ; then
18527 if test "$ac_cv_func_monstartup" = no || test "$ac_cv_func__mcleanup" = no; then
18528 as_fn_error $? "--enable-profiling requires monstartup and _mcleanup" "$LINENO" 5
18531 OLD_CFLAGS="$CFLAGS"
18532 CFLAGS="$CFLAGS $PROFILE_CFLAGS"
18534 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -pg" >&5
18535 $as_echo_n "checking whether $CC supports -pg... " >&6; }
18536 if ${ac_cv_cc_supports_pg+:} false; then :
18537 $as_echo_n "(cached) " >&6
18539 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18540 /* end confdefs.h. */
18550 if ac_fn_c_try_compile "$LINENO"; then :
18551 ac_cv_cc_supports_pg=yes
18553 ac_cv_cc_supports_pg=no
18556 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cc_supports_pg" >&5
18560 $as_echo "$ac_cv_cc_supports_pg" >&6; }
18562 if test "$ac_cv_cc_supports_pg" = no; then
18563 as_fn_error $? "--enable-profiling requires a compiler which supports -pg" "$LINENO" 5
18566 CFLAGS="$OLD_CFLAGS"
18570 # Check whether --enable-codesign was given.
18571 if test "${enable_codesign+set}" = set; then :
18572 enableval=$enable_codesign; CODESIGN_CERT=$enableval
18579 # Check whether --with-pkgversion was given.
18580 if test "${with_pkgversion+set}" = set; then :
18581 withval=$with_pkgversion; case "$withval" in
18582 yes) as_fn_error $? "package version not specified" "$LINENO" 5 ;;
18584 *) PKGVERSION="($withval) " ;;
18587 PKGVERSION="(GDB) "
18595 # Check whether --with-bugurl was given.
18596 if test "${with_bugurl+set}" = set; then :
18597 withval=$with_bugurl; case "$withval" in
18598 yes) as_fn_error $? "bug URL not specified" "$LINENO" 5 ;;
18601 *) BUGURL="$withval"
18605 BUGURL="https://www.gnu.org/software/gdb/bugs/"
18615 REPORT_BUGS_TO="<$BUGURL>"
18616 REPORT_BUGS_TEXI=@uref{`echo "$BUGURL" | sed 's/@/@@/g'`}
18623 cat >>confdefs.h <<_ACEOF
18624 #define PKGVERSION "$PKGVERSION"
18628 cat >>confdefs.h <<_ACEOF
18629 #define REPORT_BUGS_TO "$REPORT_BUGS_TO"
18633 # --------------------- #
18634 # Checks for programs. #
18635 # --------------------- #
18637 for ac_prog in gawk mawk nawk awk
18639 # Extract the first word of "$ac_prog", so it can be a program name with args.
18640 set dummy $ac_prog; ac_word=$2
18641 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18642 $as_echo_n "checking for $ac_word... " >&6; }
18643 if ${ac_cv_prog_AWK+:} false; then :
18644 $as_echo_n "(cached) " >&6
18646 if test -n "$AWK"; then
18647 ac_cv_prog_AWK="$AWK" # Let the user override the test.
18649 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18650 for as_dir in $PATH
18653 test -z "$as_dir" && as_dir=.
18654 for ac_exec_ext in '' $ac_executable_extensions; do
18655 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18656 ac_cv_prog_AWK="$ac_prog"
18657 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18666 AWK=$ac_cv_prog_AWK
18667 if test -n "$AWK"; then
18668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
18669 $as_echo "$AWK" >&6; }
18671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18672 $as_echo "no" >&6; }
18676 test -n "$AWK" && break
18679 # Find a good install program. We prefer a C program (faster),
18680 # so one script is as good as another. But avoid the broken or
18681 # incompatible versions:
18682 # SysV /etc/install, /usr/sbin/install
18683 # SunOS /usr/etc/install
18684 # IRIX /sbin/install
18686 # AmigaOS /C/install, which installs bootblocks on floppy discs
18687 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
18688 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
18689 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
18690 # OS/2's system install, which has a completely different semantic
18691 # ./install, which can be erroneously created by make from ./install.sh.
18692 # Reject install programs that cannot install multiple files.
18693 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
18694 $as_echo_n "checking for a BSD-compatible install... " >&6; }
18695 if test -z "$INSTALL"; then
18696 if ${ac_cv_path_install+:} false; then :
18697 $as_echo_n "(cached) " >&6
18699 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18700 for as_dir in $PATH
18703 test -z "$as_dir" && as_dir=.
18704 # Account for people who put trailing slashes in PATH elements.
18705 case $as_dir/ in #((
18706 ./ | .// | /[cC]/* | \
18707 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
18708 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
18711 # OSF1 and SCO ODT 3.0 have their own names for install.
18712 # Don't use installbsd from OSF since it installs stuff as root
18714 for ac_prog in ginstall scoinst install; do
18715 for ac_exec_ext in '' $ac_executable_extensions; do
18716 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
18717 if test $ac_prog = install &&
18718 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
18719 # AIX install. It has an incompatible calling convention.
18721 elif test $ac_prog = install &&
18722 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
18723 # program-specific install script used by HP pwplus--don't use.
18726 rm -rf conftest.one conftest.two conftest.dir
18727 echo one > conftest.one
18728 echo two > conftest.two
18730 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
18731 test -s conftest.one && test -s conftest.two &&
18732 test -s conftest.dir/conftest.one &&
18733 test -s conftest.dir/conftest.two
18735 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
18748 rm -rf conftest.one conftest.two conftest.dir
18751 if test "${ac_cv_path_install+set}" = set; then
18752 INSTALL=$ac_cv_path_install
18754 # As a last resort, use the slow shell script. Don't cache a
18755 # value for INSTALL within a source directory, because that will
18756 # break other packages using the cache if that directory is
18757 # removed, or if the value is a relative name.
18758 INSTALL=$ac_install_sh
18761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
18762 $as_echo "$INSTALL" >&6; }
18764 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
18765 # It thinks the first close brace ends the variable substitution.
18766 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
18768 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
18770 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
18772 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
18773 $as_echo_n "checking whether ln -s works... " >&6; }
18775 if test "$LN_S" = "ln -s"; then
18776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18777 $as_echo "yes" >&6; }
18779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
18780 $as_echo "no, using $LN_S" >&6; }
18783 if test -n "$ac_tool_prefix"; then
18784 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
18785 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
18786 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18787 $as_echo_n "checking for $ac_word... " >&6; }
18788 if ${ac_cv_prog_RANLIB+:} false; then :
18789 $as_echo_n "(cached) " >&6
18791 if test -n "$RANLIB"; then
18792 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
18794 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18795 for as_dir in $PATH
18798 test -z "$as_dir" && as_dir=.
18799 for ac_exec_ext in '' $ac_executable_extensions; do
18800 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18801 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
18802 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18811 RANLIB=$ac_cv_prog_RANLIB
18812 if test -n "$RANLIB"; then
18813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
18814 $as_echo "$RANLIB" >&6; }
18816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18817 $as_echo "no" >&6; }
18822 if test -z "$ac_cv_prog_RANLIB"; then
18823 ac_ct_RANLIB=$RANLIB
18824 # Extract the first word of "ranlib", so it can be a program name with args.
18825 set dummy ranlib; ac_word=$2
18826 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18827 $as_echo_n "checking for $ac_word... " >&6; }
18828 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
18829 $as_echo_n "(cached) " >&6
18831 if test -n "$ac_ct_RANLIB"; then
18832 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
18834 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18835 for as_dir in $PATH
18838 test -z "$as_dir" && as_dir=.
18839 for ac_exec_ext in '' $ac_executable_extensions; do
18840 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18841 ac_cv_prog_ac_ct_RANLIB="ranlib"
18842 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18851 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
18852 if test -n "$ac_ct_RANLIB"; then
18853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
18854 $as_echo "$ac_ct_RANLIB" >&6; }
18856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18857 $as_echo "no" >&6; }
18860 if test "x$ac_ct_RANLIB" = x; then
18863 case $cross_compiling:$ac_tool_warned in
18865 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
18866 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
18867 ac_tool_warned=yes ;;
18869 RANLIB=$ac_ct_RANLIB
18872 RANLIB="$ac_cv_prog_RANLIB"
18875 for ac_prog in 'bison -y' byacc
18877 # Extract the first word of "$ac_prog", so it can be a program name with args.
18878 set dummy $ac_prog; ac_word=$2
18879 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18880 $as_echo_n "checking for $ac_word... " >&6; }
18881 if ${ac_cv_prog_YACC+:} false; then :
18882 $as_echo_n "(cached) " >&6
18884 if test -n "$YACC"; then
18885 ac_cv_prog_YACC="$YACC" # Let the user override the test.
18887 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18888 for as_dir in $PATH
18891 test -z "$as_dir" && as_dir=.
18892 for ac_exec_ext in '' $ac_executable_extensions; do
18893 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18894 ac_cv_prog_YACC="$ac_prog"
18895 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18904 YACC=$ac_cv_prog_YACC
18905 if test -n "$YACC"; then
18906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5
18907 $as_echo "$YACC" >&6; }
18909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18910 $as_echo "no" >&6; }
18914 test -n "$YACC" && break
18916 test -n "$YACC" || YACC="yacc"
18919 if test -n "$ac_tool_prefix"; then
18920 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
18921 set dummy ${ac_tool_prefix}ar; ac_word=$2
18922 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18923 $as_echo_n "checking for $ac_word... " >&6; }
18924 if ${ac_cv_prog_AR+:} false; then :
18925 $as_echo_n "(cached) " >&6
18927 if test -n "$AR"; then
18928 ac_cv_prog_AR="$AR" # Let the user override the test.
18930 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18931 for as_dir in $PATH
18934 test -z "$as_dir" && as_dir=.
18935 for ac_exec_ext in '' $ac_executable_extensions; do
18936 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18937 ac_cv_prog_AR="${ac_tool_prefix}ar"
18938 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18948 if test -n "$AR"; then
18949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
18950 $as_echo "$AR" >&6; }
18952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18953 $as_echo "no" >&6; }
18958 if test -z "$ac_cv_prog_AR"; then
18960 # Extract the first word of "ar", so it can be a program name with args.
18961 set dummy ar; ac_word=$2
18962 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18963 $as_echo_n "checking for $ac_word... " >&6; }
18964 if ${ac_cv_prog_ac_ct_AR+:} false; then :
18965 $as_echo_n "(cached) " >&6
18967 if test -n "$ac_ct_AR"; then
18968 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
18970 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18971 for as_dir in $PATH
18974 test -z "$as_dir" && as_dir=.
18975 for ac_exec_ext in '' $ac_executable_extensions; do
18976 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18977 ac_cv_prog_ac_ct_AR="ar"
18978 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18987 ac_ct_AR=$ac_cv_prog_ac_ct_AR
18988 if test -n "$ac_ct_AR"; then
18989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
18990 $as_echo "$ac_ct_AR" >&6; }
18992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18993 $as_echo "no" >&6; }
18996 if test "x$ac_ct_AR" = x; then
18999 case $cross_compiling:$ac_tool_warned in
19001 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
19002 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
19003 ac_tool_warned=yes ;;
19008 AR="$ac_cv_prog_AR"
19011 if test -n "$ac_tool_prefix"; then
19012 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
19013 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
19014 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19015 $as_echo_n "checking for $ac_word... " >&6; }
19016 if ${ac_cv_prog_DLLTOOL+:} false; then :
19017 $as_echo_n "(cached) " >&6
19019 if test -n "$DLLTOOL"; then
19020 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
19022 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19023 for as_dir in $PATH
19026 test -z "$as_dir" && as_dir=.
19027 for ac_exec_ext in '' $ac_executable_extensions; do
19028 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19029 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
19030 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19039 DLLTOOL=$ac_cv_prog_DLLTOOL
19040 if test -n "$DLLTOOL"; then
19041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
19042 $as_echo "$DLLTOOL" >&6; }
19044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19045 $as_echo "no" >&6; }
19050 if test -z "$ac_cv_prog_DLLTOOL"; then
19051 ac_ct_DLLTOOL=$DLLTOOL
19052 # Extract the first word of "dlltool", so it can be a program name with args.
19053 set dummy dlltool; ac_word=$2
19054 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19055 $as_echo_n "checking for $ac_word... " >&6; }
19056 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
19057 $as_echo_n "(cached) " >&6
19059 if test -n "$ac_ct_DLLTOOL"; then
19060 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
19062 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19063 for as_dir in $PATH
19066 test -z "$as_dir" && as_dir=.
19067 for ac_exec_ext in '' $ac_executable_extensions; do
19068 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19069 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
19070 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19079 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
19080 if test -n "$ac_ct_DLLTOOL"; then
19081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
19082 $as_echo "$ac_ct_DLLTOOL" >&6; }
19084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19085 $as_echo "no" >&6; }
19088 if test "x$ac_ct_DLLTOOL" = x; then
19091 case $cross_compiling:$ac_tool_warned in
19093 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
19094 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
19095 ac_tool_warned=yes ;;
19097 DLLTOOL=$ac_ct_DLLTOOL
19100 DLLTOOL="$ac_cv_prog_DLLTOOL"
19103 if test -n "$ac_tool_prefix"; then
19104 # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
19105 set dummy ${ac_tool_prefix}windres; ac_word=$2
19106 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19107 $as_echo_n "checking for $ac_word... " >&6; }
19108 if ${ac_cv_prog_WINDRES+:} false; then :
19109 $as_echo_n "(cached) " >&6
19111 if test -n "$WINDRES"; then
19112 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
19114 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19115 for as_dir in $PATH
19118 test -z "$as_dir" && as_dir=.
19119 for ac_exec_ext in '' $ac_executable_extensions; do
19120 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19121 ac_cv_prog_WINDRES="${ac_tool_prefix}windres"
19122 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19131 WINDRES=$ac_cv_prog_WINDRES
19132 if test -n "$WINDRES"; then
19133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
19134 $as_echo "$WINDRES" >&6; }
19136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19137 $as_echo "no" >&6; }
19142 if test -z "$ac_cv_prog_WINDRES"; then
19143 ac_ct_WINDRES=$WINDRES
19144 # Extract the first word of "windres", so it can be a program name with args.
19145 set dummy windres; ac_word=$2
19146 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19147 $as_echo_n "checking for $ac_word... " >&6; }
19148 if ${ac_cv_prog_ac_ct_WINDRES+:} false; then :
19149 $as_echo_n "(cached) " >&6
19151 if test -n "$ac_ct_WINDRES"; then
19152 ac_cv_prog_ac_ct_WINDRES="$ac_ct_WINDRES" # Let the user override the test.
19154 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19155 for as_dir in $PATH
19158 test -z "$as_dir" && as_dir=.
19159 for ac_exec_ext in '' $ac_executable_extensions; do
19160 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19161 ac_cv_prog_ac_ct_WINDRES="windres"
19162 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19171 ac_ct_WINDRES=$ac_cv_prog_ac_ct_WINDRES
19172 if test -n "$ac_ct_WINDRES"; then
19173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_WINDRES" >&5
19174 $as_echo "$ac_ct_WINDRES" >&6; }
19176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19177 $as_echo "no" >&6; }
19180 if test "x$ac_ct_WINDRES" = x; then
19183 case $cross_compiling:$ac_tool_warned in
19185 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
19186 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
19187 ac_tool_warned=yes ;;
19189 WINDRES=$ac_ct_WINDRES
19192 WINDRES="$ac_cv_prog_WINDRES"
19198 # Needed for GNU Hurd hosts.
19199 if test -n "$ac_tool_prefix"; then
19200 # Extract the first word of "${ac_tool_prefix}mig", so it can be a program name with args.
19201 set dummy ${ac_tool_prefix}mig; ac_word=$2
19202 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19203 $as_echo_n "checking for $ac_word... " >&6; }
19204 if ${ac_cv_prog_MIG+:} false; then :
19205 $as_echo_n "(cached) " >&6
19207 if test -n "$MIG"; then
19208 ac_cv_prog_MIG="$MIG" # Let the user override the test.
19210 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19211 for as_dir in $PATH
19214 test -z "$as_dir" && as_dir=.
19215 for ac_exec_ext in '' $ac_executable_extensions; do
19216 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19217 ac_cv_prog_MIG="${ac_tool_prefix}mig"
19218 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19227 MIG=$ac_cv_prog_MIG
19228 if test -n "$MIG"; then
19229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MIG" >&5
19230 $as_echo "$MIG" >&6; }
19232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19233 $as_echo "no" >&6; }
19238 if test -z "$ac_cv_prog_MIG"; then
19240 # Extract the first word of "mig", so it can be a program name with args.
19241 set dummy mig; ac_word=$2
19242 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19243 $as_echo_n "checking for $ac_word... " >&6; }
19244 if ${ac_cv_prog_ac_ct_MIG+:} false; then :
19245 $as_echo_n "(cached) " >&6
19247 if test -n "$ac_ct_MIG"; then
19248 ac_cv_prog_ac_ct_MIG="$ac_ct_MIG" # Let the user override the test.
19250 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19251 for as_dir in $PATH
19254 test -z "$as_dir" && as_dir=.
19255 for ac_exec_ext in '' $ac_executable_extensions; do
19256 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19257 ac_cv_prog_ac_ct_MIG="mig"
19258 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19267 ac_ct_MIG=$ac_cv_prog_ac_ct_MIG
19268 if test -n "$ac_ct_MIG"; then
19269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MIG" >&5
19270 $as_echo "$ac_ct_MIG" >&6; }
19272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19273 $as_echo "no" >&6; }
19276 if test "x$ac_ct_MIG" = x; then
19279 case $cross_compiling:$ac_tool_warned in
19281 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
19282 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
19283 ac_tool_warned=yes ;;
19288 MIG="$ac_cv_prog_MIG"
19291 if test x"$MIG" = x; then
19292 as_fn_error $? "MIG not found but required for $host hosts" "$LINENO" 5
19297 # ---------------------- #
19298 # Checks for libraries. #
19299 # ---------------------- #
19301 # We might need to link with -lm; most simulators need it.
19302 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lm" >&5
19303 $as_echo_n "checking for main in -lm... " >&6; }
19304 if ${ac_cv_lib_m_main+:} false; then :
19305 $as_echo_n "(cached) " >&6
19307 ac_check_lib_save_LIBS=$LIBS
19309 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19310 /* end confdefs.h. */
19321 if ac_fn_c_try_link "$LINENO"; then :
19322 ac_cv_lib_m_main=yes
19324 ac_cv_lib_m_main=no
19326 rm -f core conftest.err conftest.$ac_objext \
19327 conftest$ac_exeext conftest.$ac_ext
19328 LIBS=$ac_check_lib_save_LIBS
19330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_main" >&5
19331 $as_echo "$ac_cv_lib_m_main" >&6; }
19332 if test "x$ac_cv_lib_m_main" = xyes; then :
19333 cat >>confdefs.h <<_ACEOF
19334 #define HAVE_LIBM 1
19342 # Some systems (e.g. Solaris) have `gethostbyname' in libnsl.
19343 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing gethostbyname" >&5
19344 $as_echo_n "checking for library containing gethostbyname... " >&6; }
19345 if ${ac_cv_search_gethostbyname+:} false; then :
19346 $as_echo_n "(cached) " >&6
19348 ac_func_search_save_LIBS=$LIBS
19349 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19350 /* end confdefs.h. */
19352 /* Override any GCC internal prototype to avoid an error.
19353 Use char because int might match the return type of a GCC
19354 builtin and then its argument prototype would still apply. */
19358 char gethostbyname ();
19362 return gethostbyname ();
19367 for ac_lib in '' nsl; do
19368 if test -z "$ac_lib"; then
19369 ac_res="none required"
19372 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
19374 if ac_fn_c_try_link "$LINENO"; then :
19375 ac_cv_search_gethostbyname=$ac_res
19377 rm -f core conftest.err conftest.$ac_objext \
19379 if ${ac_cv_search_gethostbyname+:} false; then :
19383 if ${ac_cv_search_gethostbyname+:} false; then :
19386 ac_cv_search_gethostbyname=no
19388 rm conftest.$ac_ext
19389 LIBS=$ac_func_search_save_LIBS
19391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_gethostbyname" >&5
19392 $as_echo "$ac_cv_search_gethostbyname" >&6; }
19393 ac_res=$ac_cv_search_gethostbyname
19394 if test "$ac_res" != no; then :
19395 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
19400 # Some systems (e.g. Solaris) have `socketpair' in libsocket.
19401 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing socketpair" >&5
19402 $as_echo_n "checking for library containing socketpair... " >&6; }
19403 if ${ac_cv_search_socketpair+:} false; then :
19404 $as_echo_n "(cached) " >&6
19406 ac_func_search_save_LIBS=$LIBS
19407 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19408 /* end confdefs.h. */
19410 /* Override any GCC internal prototype to avoid an error.
19411 Use char because int might match the return type of a GCC
19412 builtin and then its argument prototype would still apply. */
19416 char socketpair ();
19420 return socketpair ();
19425 for ac_lib in '' socket; do
19426 if test -z "$ac_lib"; then
19427 ac_res="none required"
19430 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
19432 if ac_fn_c_try_link "$LINENO"; then :
19433 ac_cv_search_socketpair=$ac_res
19435 rm -f core conftest.err conftest.$ac_objext \
19437 if ${ac_cv_search_socketpair+:} false; then :
19441 if ${ac_cv_search_socketpair+:} false; then :
19444 ac_cv_search_socketpair=no
19446 rm conftest.$ac_ext
19447 LIBS=$ac_func_search_save_LIBS
19449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_socketpair" >&5
19450 $as_echo "$ac_cv_search_socketpair" >&6; }
19451 ac_res=$ac_cv_search_socketpair
19452 if test "$ac_res" != no; then :
19453 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
19458 # Link in zlib/zstd if we can. This allows us to read compressed debug
19461 # Use the system's zlib library.
19462 zlibdir="-L\$(top_builddir)/../zlib"
19463 zlibinc="-I\$(top_srcdir)/../zlib"
19465 # Check whether --with-system-zlib was given.
19466 if test "${with_system_zlib+set}" = set; then :
19467 withval=$with_system_zlib; if test x$with_system_zlib = xyes ; then
19479 # Check whether --with-zstd was given.
19480 if test "${with_zstd+set}" = set; then :
19481 withval=$with_zstd;
19487 if test "$with_zstd" != no; then :
19490 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libzstd >= 1.4.0" >&5
19491 $as_echo_n "checking for libzstd >= 1.4.0... " >&6; }
19493 if test -n "$ZSTD_CFLAGS"; then
19494 pkg_cv_ZSTD_CFLAGS="$ZSTD_CFLAGS"
19495 elif test -n "$PKG_CONFIG"; then
19496 if test -n "$PKG_CONFIG" && \
19497 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libzstd >= 1.4.0\""; } >&5
19498 ($PKG_CONFIG --exists --print-errors "libzstd >= 1.4.0") 2>&5
19500 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19501 test $ac_status = 0; }; then
19502 pkg_cv_ZSTD_CFLAGS=`$PKG_CONFIG --cflags "libzstd >= 1.4.0" 2>/dev/null`
19503 test "x$?" != "x0" && pkg_failed=yes
19510 if test -n "$ZSTD_LIBS"; then
19511 pkg_cv_ZSTD_LIBS="$ZSTD_LIBS"
19512 elif test -n "$PKG_CONFIG"; then
19513 if test -n "$PKG_CONFIG" && \
19514 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libzstd >= 1.4.0\""; } >&5
19515 ($PKG_CONFIG --exists --print-errors "libzstd >= 1.4.0") 2>&5
19517 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19518 test $ac_status = 0; }; then
19519 pkg_cv_ZSTD_LIBS=`$PKG_CONFIG --libs "libzstd >= 1.4.0" 2>/dev/null`
19520 test "x$?" != "x0" && pkg_failed=yes
19528 if test $pkg_failed = no; then
19529 pkg_save_LDFLAGS="$LDFLAGS"
19530 LDFLAGS="$LDFLAGS $pkg_cv_ZSTD_LIBS"
19531 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19532 /* end confdefs.h. */
19542 if ac_fn_c_try_link "$LINENO"; then :
19547 rm -f core conftest.err conftest.$ac_objext \
19548 conftest$ac_exeext conftest.$ac_ext
19549 LDFLAGS=$pkg_save_LDFLAGS
19554 if test $pkg_failed = yes; then
19555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19556 $as_echo "no" >&6; }
19558 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
19559 _pkg_short_errors_supported=yes
19561 _pkg_short_errors_supported=no
19563 if test $_pkg_short_errors_supported = yes; then
19564 ZSTD_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libzstd >= 1.4.0" 2>&1`
19566 ZSTD_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libzstd >= 1.4.0" 2>&1`
19568 # Put the nasty error message in config.log where it belongs
19569 echo "$ZSTD_PKG_ERRORS" >&5
19572 if test "$with_zstd" = yes; then
19573 as_fn_error $? "--with-zstd was given, but pkgconfig/libzstd.pc is not found" "$LINENO" 5
19576 elif test $pkg_failed = untried; then
19577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19578 $as_echo "no" >&6; }
19580 if test "$with_zstd" = yes; then
19581 as_fn_error $? "--with-zstd was given, but pkgconfig/libzstd.pc is not found" "$LINENO" 5
19585 ZSTD_CFLAGS=$pkg_cv_ZSTD_CFLAGS
19586 ZSTD_LIBS=$pkg_cv_ZSTD_LIBS
19587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19588 $as_echo "yes" >&6; }
19591 $as_echo "#define HAVE_ZSTD 1" >>confdefs.h
19600 if test "X$prefix" = "XNONE"; then
19601 acl_final_prefix="$ac_default_prefix"
19603 acl_final_prefix="$prefix"
19605 if test "X$exec_prefix" = "XNONE"; then
19606 acl_final_exec_prefix='${prefix}'
19608 acl_final_exec_prefix="$exec_prefix"
19610 acl_save_prefix="$prefix"
19611 prefix="$acl_final_prefix"
19612 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
19613 prefix="$acl_save_prefix"
19616 # Check whether --with-gnu-ld was given.
19617 if test "${with_gnu_ld+set}" = set; then :
19618 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
19623 # Prepare PATH_SEPARATOR.
19624 # The user is always right.
19625 if test "${PATH_SEPARATOR+set}" != set; then
19626 echo "#! /bin/sh" >conf$$.sh
19627 echo "exit 0" >>conf$$.sh
19629 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
19637 if test "$GCC" = yes; then
19638 # Check if gcc -print-prog-name=ld gives a path.
19639 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5
19640 $as_echo_n "checking for ld used by GCC... " >&6; }
19643 # gcc leaves a trailing carriage return which upsets mingw
19644 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
19646 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
19649 # Accept absolute paths.
19650 [\\/]* | [A-Za-z]:[\\/]*)
19651 re_direlt='/[^/][^/]*/\.\./'
19652 # Canonicalize the path of ld
19653 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
19654 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
19655 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
19657 test -z "$LD" && LD="$ac_prog"
19660 # If it fails, then pretend we aren't using GCC.
19664 # If it is relative, then search for the first ld in PATH.
19665 with_gnu_ld=unknown
19668 elif test "$with_gnu_ld" = yes; then
19669 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
19670 $as_echo_n "checking for GNU ld... " >&6; }
19672 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
19673 $as_echo_n "checking for non-GNU ld... " >&6; }
19675 if ${acl_cv_path_LD+:} false; then :
19676 $as_echo_n "(cached) " >&6
19678 if test -z "$LD"; then
19679 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
19680 for ac_dir in $PATH; do
19681 test -z "$ac_dir" && ac_dir=.
19682 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
19683 acl_cv_path_LD="$ac_dir/$ac_prog"
19684 # Check to see if the program is GNU ld. I'd rather use --version,
19685 # but apparently some GNU ld's only accept -v.
19686 # Break only if it was the GNU/non-GNU ld that we prefer.
19687 if "$acl_cv_path_LD" -v 2>&1 < /dev/null | $EGREP '(GNU|with BFD)' > /dev/null; then
19688 test "$with_gnu_ld" != no && break
19690 test "$with_gnu_ld" != yes && break
19696 acl_cv_path_LD="$LD" # Let the user override the test with a path.
19700 LD="$acl_cv_path_LD"
19701 if test -n "$LD"; then
19702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
19703 $as_echo "$LD" >&6; }
19705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19706 $as_echo "no" >&6; }
19708 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
19709 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
19710 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
19711 if ${acl_cv_prog_gnu_ld+:} false; then :
19712 $as_echo_n "(cached) " >&6
19714 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
19715 if $LD -v 2>&1 </dev/null | $EGREP '(GNU|with BFD)' 1>&5; then
19716 acl_cv_prog_gnu_ld=yes
19718 acl_cv_prog_gnu_ld=no
19721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
19722 $as_echo "$acl_cv_prog_gnu_ld" >&6; }
19723 with_gnu_ld=$acl_cv_prog_gnu_ld
19727 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
19728 $as_echo_n "checking for shared library run path origin... " >&6; }
19729 if ${acl_cv_rpath+:} false; then :
19730 $as_echo_n "(cached) " >&6
19733 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
19734 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
19736 rm -f ./conftest.sh
19740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
19741 $as_echo "$acl_cv_rpath" >&6; }
19743 libext="$acl_cv_libext"
19744 shlibext="$acl_cv_shlibext"
19745 hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
19746 hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
19747 hardcode_direct="$acl_cv_hardcode_direct"
19748 hardcode_minus_L="$acl_cv_hardcode_minus_L"
19749 # Check whether --enable-rpath was given.
19750 if test "${enable_rpath+set}" = set; then :
19751 enableval=$enable_rpath; :
19765 acl_save_prefix="$prefix"
19766 prefix="$acl_final_prefix"
19767 acl_save_exec_prefix="$exec_prefix"
19768 exec_prefix="$acl_final_exec_prefix"
19770 eval additional_includedir=\"$includedir\"
19771 eval additional_libdir=\"$libdir\"
19773 exec_prefix="$acl_save_exec_prefix"
19774 prefix="$acl_save_prefix"
19777 # Check whether --with-libiconv-prefix was given.
19778 if test "${with_libiconv_prefix+set}" = set; then :
19779 withval=$with_libiconv_prefix;
19780 if test "X$withval" = "Xno"; then
19783 if test "X$withval" = "X"; then
19785 acl_save_prefix="$prefix"
19786 prefix="$acl_final_prefix"
19787 acl_save_exec_prefix="$exec_prefix"
19788 exec_prefix="$acl_final_exec_prefix"
19790 eval additional_includedir=\"$includedir\"
19791 eval additional_libdir=\"$libdir\"
19793 exec_prefix="$acl_save_exec_prefix"
19794 prefix="$acl_save_prefix"
19797 additional_includedir="$withval/include"
19798 additional_libdir="$withval/lib"
19805 # Check whether --with-libiconv-type was given.
19806 if test "${with_libiconv_type+set}" = set; then :
19807 withval=$with_libiconv_type; with_libiconv_type=$withval
19809 with_libiconv_type=auto
19812 lib_type=`eval echo \$with_libiconv_type`
19819 names_already_handled=
19820 names_next_round='iconv '
19821 while test -n "$names_next_round"; do
19822 names_this_round="$names_next_round"
19824 for name in $names_this_round; do
19826 for n in $names_already_handled; do
19827 if test "$n" = "$name"; then
19828 already_handled=yes
19832 if test -z "$already_handled"; then
19833 names_already_handled="$names_already_handled $name"
19834 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
19835 eval value=\"\$HAVE_LIB$uppername\"
19836 if test -n "$value"; then
19837 if test "$value" = yes; then
19838 eval value=\"\$LIB$uppername\"
19839 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
19840 eval value=\"\$LTLIB$uppername\"
19841 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
19850 if test $use_additional = yes; then
19851 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext" && test x$lib_type != xstatic; then
19852 found_dir="$additional_libdir"
19853 found_so="$additional_libdir/lib$name.$shlibext"
19854 if test -f "$additional_libdir/lib$name.la"; then
19855 found_la="$additional_libdir/lib$name.la"
19857 elif test x$lib_type != xshared; then
19858 if test -f "$additional_libdir/lib$name.$libext"; then
19859 found_dir="$additional_libdir"
19860 found_a="$additional_libdir/lib$name.$libext"
19861 if test -f "$additional_libdir/lib$name.la"; then
19862 found_la="$additional_libdir/lib$name.la"
19867 if test "X$found_dir" = "X"; then
19868 for x in $LDFLAGS $LTLIBICONV; do
19870 acl_save_prefix="$prefix"
19871 prefix="$acl_final_prefix"
19872 acl_save_exec_prefix="$exec_prefix"
19873 exec_prefix="$acl_final_exec_prefix"
19875 exec_prefix="$acl_save_exec_prefix"
19876 prefix="$acl_save_prefix"
19880 dir=`echo "X$x" | sed -e 's/^X-L//'`
19881 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext" && test x$lib_type != xstatic; then
19883 found_so="$dir/lib$name.$shlibext"
19884 if test -f "$dir/lib$name.la"; then
19885 found_la="$dir/lib$name.la"
19887 elif test x$lib_type != xshared; then
19888 if test -f "$dir/lib$name.$libext"; then
19890 found_a="$dir/lib$name.$libext"
19891 if test -f "$dir/lib$name.la"; then
19892 found_la="$dir/lib$name.la"
19898 if test "X$found_dir" != "X"; then
19903 if test "X$found_dir" != "X"; then
19904 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
19905 if test "X$found_so" != "X"; then
19906 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
19907 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
19910 for x in $ltrpathdirs; do
19911 if test "X$x" = "X$found_dir"; then
19916 if test -z "$haveit"; then
19917 ltrpathdirs="$ltrpathdirs $found_dir"
19919 if test "$hardcode_direct" = yes; then
19920 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
19922 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
19923 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
19925 for x in $rpathdirs; do
19926 if test "X$x" = "X$found_dir"; then
19931 if test -z "$haveit"; then
19932 rpathdirs="$rpathdirs $found_dir"
19936 for x in $LDFLAGS $LIBICONV; do
19938 acl_save_prefix="$prefix"
19939 prefix="$acl_final_prefix"
19940 acl_save_exec_prefix="$exec_prefix"
19941 exec_prefix="$acl_final_exec_prefix"
19943 exec_prefix="$acl_save_exec_prefix"
19944 prefix="$acl_save_prefix"
19946 if test "X$x" = "X-L$found_dir"; then
19951 if test -z "$haveit"; then
19952 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
19954 if test "$hardcode_minus_L" != no; then
19955 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
19957 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
19963 if test "X$found_a" != "X"; then
19964 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
19966 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
19969 additional_includedir=
19970 case "$found_dir" in
19972 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
19973 additional_includedir="$basedir/include"
19976 if test "X$additional_includedir" != "X"; then
19977 if test "X$additional_includedir" != "X/usr/include"; then
19979 if test "X$additional_includedir" = "X/usr/local/include"; then
19980 if test -n "$GCC"; then
19982 linux*) haveit=yes;;
19986 if test -z "$haveit"; then
19987 for x in $CPPFLAGS $INCICONV; do
19989 acl_save_prefix="$prefix"
19990 prefix="$acl_final_prefix"
19991 acl_save_exec_prefix="$exec_prefix"
19992 exec_prefix="$acl_final_exec_prefix"
19994 exec_prefix="$acl_save_exec_prefix"
19995 prefix="$acl_save_prefix"
19997 if test "X$x" = "X-I$additional_includedir"; then
20002 if test -z "$haveit"; then
20003 if test -d "$additional_includedir"; then
20004 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
20010 if test -n "$found_la"; then
20011 save_libdir="$libdir"
20012 case "$found_la" in
20013 */* | *\\*) . "$found_la" ;;
20014 *) . "./$found_la" ;;
20016 libdir="$save_libdir"
20017 for dep in $dependency_libs; do
20020 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
20021 if test "X$additional_libdir" != "X/usr/lib"; then
20023 if test "X$additional_libdir" = "X/usr/local/lib"; then
20024 if test -n "$GCC"; then
20026 linux*) haveit=yes;;
20030 if test -z "$haveit"; then
20032 for x in $LDFLAGS $LIBICONV; do
20034 acl_save_prefix="$prefix"
20035 prefix="$acl_final_prefix"
20036 acl_save_exec_prefix="$exec_prefix"
20037 exec_prefix="$acl_final_exec_prefix"
20039 exec_prefix="$acl_save_exec_prefix"
20040 prefix="$acl_save_prefix"
20042 if test "X$x" = "X-L$additional_libdir"; then
20047 if test -z "$haveit"; then
20048 if test -d "$additional_libdir"; then
20049 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
20053 for x in $LDFLAGS $LTLIBICONV; do
20055 acl_save_prefix="$prefix"
20056 prefix="$acl_final_prefix"
20057 acl_save_exec_prefix="$exec_prefix"
20058 exec_prefix="$acl_final_exec_prefix"
20060 exec_prefix="$acl_save_exec_prefix"
20061 prefix="$acl_save_prefix"
20063 if test "X$x" = "X-L$additional_libdir"; then
20068 if test -z "$haveit"; then
20069 if test -d "$additional_libdir"; then
20070 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
20077 dir=`echo "X$dep" | sed -e 's/^X-R//'`
20078 if test "$enable_rpath" != no; then
20080 for x in $rpathdirs; do
20081 if test "X$x" = "X$dir"; then
20086 if test -z "$haveit"; then
20087 rpathdirs="$rpathdirs $dir"
20090 for x in $ltrpathdirs; do
20091 if test "X$x" = "X$dir"; then
20096 if test -z "$haveit"; then
20097 ltrpathdirs="$ltrpathdirs $dir"
20102 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
20105 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
20108 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
20109 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
20115 if test "x$lib_type" = "xauto" || test "x$lib_type" = "xshared"; then
20116 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
20117 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
20119 LIBICONV="${LIBICONV}${LIBICONV:+ }-l:lib$name.$libext"
20120 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l:lib$name.$libext"
20127 if test "X$rpathdirs" != "X"; then
20128 if test -n "$hardcode_libdir_separator"; then
20130 for found_dir in $rpathdirs; do
20131 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
20133 acl_save_libdir="$libdir"
20135 eval flag=\"$hardcode_libdir_flag_spec\"
20136 libdir="$acl_save_libdir"
20137 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
20139 for found_dir in $rpathdirs; do
20140 acl_save_libdir="$libdir"
20141 libdir="$found_dir"
20142 eval flag=\"$hardcode_libdir_flag_spec\"
20143 libdir="$acl_save_libdir"
20144 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
20148 if test "X$ltrpathdirs" != "X"; then
20149 for found_dir in $ltrpathdirs; do
20150 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
20160 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
20161 $as_echo_n "checking for iconv... " >&6; }
20162 if ${am_cv_func_iconv+:} false; then :
20163 $as_echo_n "(cached) " >&6
20166 am_cv_func_iconv="no, consider installing GNU libiconv"
20168 am_save_CPPFLAGS="$CPPFLAGS"
20169 CPPFLAGS="$CPPFLAGS $INCICONV"
20170 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20171 /* end confdefs.h. */
20172 #include <stdlib.h>
20177 iconv_t cd = iconv_open("","");
20178 iconv(cd,NULL,NULL,NULL,NULL);
20184 if ac_fn_c_try_link "$LINENO"; then :
20185 am_cv_func_iconv=yes
20187 rm -f core conftest.err conftest.$ac_objext \
20188 conftest$ac_exeext conftest.$ac_ext
20189 CPPFLAGS="$am_save_CPPFLAGS"
20191 if test "$am_cv_func_iconv" != yes && test -d ../libiconv; then
20192 for _libs in .libs _libs; do
20193 am_save_CPPFLAGS="$CPPFLAGS"
20194 am_save_LIBS="$LIBS"
20195 CPPFLAGS="$CPPFLAGS -I../libiconv/include"
20196 LIBS="$LIBS ../libiconv/lib/$_libs/libiconv.a"
20197 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20198 /* end confdefs.h. */
20199 #include <stdlib.h>
20204 iconv_t cd = iconv_open("","");
20205 iconv(cd,NULL,NULL,NULL,NULL);
20211 if ac_fn_c_try_link "$LINENO"; then :
20212 INCICONV="-I../libiconv/include"
20213 LIBICONV='${top_builddir}'/../libiconv/lib/$_libs/libiconv.a
20214 LTLIBICONV='${top_builddir}'/../libiconv/lib/libiconv.la
20215 am_cv_lib_iconv=yes
20216 am_cv_func_iconv=yes
20218 rm -f core conftest.err conftest.$ac_objext \
20219 conftest$ac_exeext conftest.$ac_ext
20220 CPPFLAGS="$am_save_CPPFLAGS"
20221 LIBS="$am_save_LIBS"
20222 if test "$am_cv_func_iconv" = "yes"; then
20228 if test "$am_cv_func_iconv" != yes; then
20229 am_save_CPPFLAGS="$CPPFLAGS"
20230 am_save_LIBS="$LIBS"
20231 CPPFLAGS="$CPPFLAGS $INCICONV"
20232 LIBS="$LIBS $LIBICONV"
20233 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20234 /* end confdefs.h. */
20235 #include <stdlib.h>
20240 iconv_t cd = iconv_open("","");
20241 iconv(cd,NULL,NULL,NULL,NULL);
20247 if ac_fn_c_try_link "$LINENO"; then :
20248 am_cv_lib_iconv=yes
20249 am_cv_func_iconv=yes
20251 rm -f core conftest.err conftest.$ac_objext \
20252 conftest$ac_exeext conftest.$ac_ext
20253 CPPFLAGS="$am_save_CPPFLAGS"
20254 LIBS="$am_save_LIBS"
20258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
20259 $as_echo "$am_cv_func_iconv" >&6; }
20260 if test "$am_cv_func_iconv" = yes; then
20262 $as_echo "#define HAVE_ICONV 1" >>confdefs.h
20265 if test "$am_cv_lib_iconv" = yes; then
20267 for element in $INCICONV; do
20269 for x in $CPPFLAGS; do
20271 acl_save_prefix="$prefix"
20272 prefix="$acl_final_prefix"
20273 acl_save_exec_prefix="$exec_prefix"
20274 exec_prefix="$acl_final_exec_prefix"
20276 exec_prefix="$acl_save_exec_prefix"
20277 prefix="$acl_save_prefix"
20279 if test "X$x" = "X$element"; then
20284 if test -z "$haveit"; then
20285 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
20289 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
20290 $as_echo_n "checking how to link with libiconv... " >&6; }
20291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
20292 $as_echo "$LIBICONV" >&6; }
20300 if test "$am_cv_func_iconv" = yes; then
20301 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv declaration" >&5
20302 $as_echo_n "checking for iconv declaration... " >&6; }
20303 if ${am_cv_proto_iconv+:} false; then :
20304 $as_echo_n "(cached) " >&6
20307 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20308 /* end confdefs.h. */
20310 #include <stdlib.h>
20316 #if defined(__STDC__) || defined(__cplusplus)
20317 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
20330 if ac_fn_c_try_compile "$LINENO"; then :
20331 am_cv_proto_iconv_arg1=""
20333 am_cv_proto_iconv_arg1="const"
20335 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20336 am_cv_proto_iconv="extern size_t iconv (iconv_t cd, $am_cv_proto_iconv_arg1 char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);"
20339 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
20340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ac_t:-
20341 }$am_cv_proto_iconv" >&5
20343 }$am_cv_proto_iconv" >&6; }
20345 cat >>confdefs.h <<_ACEOF
20346 #define ICONV_CONST $am_cv_proto_iconv_arg1
20352 # GDB may fork/exec the iconv program to get the list of supported character
20353 # sets. Allow the user to specify where to find it.
20354 # There are several factors affecting the choice of option name:
20355 # - There is already --with-libiconv-prefix but we can't use it, it specifies
20356 # the build-time location of libiconv files.
20357 # - The program we need to find is iconv, which comes with glibc. The user
20358 # doesn't necessarily have libiconv installed. Therefore naming this
20359 # --with-libiconv-foo feels wrong.
20360 # - We want the path to be relocatable, but GDB_AC_DEFINE_RELOCATABLE is
20361 # defined to work on directories not files (though it really doesn't know
20363 # - Calling this --with-iconv-prefix is perceived to cause too much confusion
20364 # with --with-libiconv-prefix.
20365 # Putting these together is why the option name is --with-iconv-bin.
20368 # Check whether --with-iconv-bin was given.
20369 if test "${with_iconv_bin+set}" = set; then :
20370 withval=$with_iconv_bin; iconv_bin="${withval}"
20372 cat >>confdefs.h <<_ACEOF
20373 #define ICONV_BIN "${iconv_bin}"
20377 if test "x$exec_prefix" = xNONE || test "x$exec_prefix" = 'x${prefix}'; then
20378 if test "x$prefix" = xNONE; then
20379 test_prefix=/usr/local
20381 test_prefix=$prefix
20384 test_prefix=$exec_prefix
20387 case ${iconv_bin} in
20388 "${test_prefix}"|"${test_prefix}/"*|\
20389 '${exec_prefix}'|'${exec_prefix}/'*)
20394 cat >>confdefs.h <<_ACEOF
20395 #define ICONV_BIN_RELOCATABLE $value
20403 # For the TUI, we need enhanced curses functionality.
20404 if test x"$enable_tui" != xno; then
20409 if test x"$prefer_curses" = xyes; then
20410 # FIXME: kettenis/20040905: We prefer ncurses over the vendor-supplied
20411 # curses library because the latter might not provide all the
20412 # functionality we need. However, this leads to problems on systems
20413 # where the linker searches /usr/local/lib, but the compiler doesn't
20414 # search /usr/local/include, if ncurses is installed in /usr/local. A
20415 # default installation of ncurses on alpha*-dec-osf* will lead to such
20417 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing waddstr" >&5
20418 $as_echo_n "checking for library containing waddstr... " >&6; }
20419 if ${ac_cv_search_waddstr+:} false; then :
20420 $as_echo_n "(cached) " >&6
20422 ac_func_search_save_LIBS=$LIBS
20423 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20424 /* end confdefs.h. */
20426 /* Override any GCC internal prototype to avoid an error.
20427 Use char because int might match the return type of a GCC
20428 builtin and then its argument prototype would still apply. */
20441 for ac_lib in '' ncursesw ncurses cursesX curses; do
20442 if test -z "$ac_lib"; then
20443 ac_res="none required"
20446 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
20448 if ac_fn_c_try_link "$LINENO"; then :
20449 ac_cv_search_waddstr=$ac_res
20451 rm -f core conftest.err conftest.$ac_objext \
20453 if ${ac_cv_search_waddstr+:} false; then :
20457 if ${ac_cv_search_waddstr+:} false; then :
20460 ac_cv_search_waddstr=no
20462 rm conftest.$ac_ext
20463 LIBS=$ac_func_search_save_LIBS
20465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_waddstr" >&5
20466 $as_echo "$ac_cv_search_waddstr" >&6; }
20467 ac_res=$ac_cv_search_waddstr
20468 if test "$ac_res" != no; then :
20469 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
20474 if test "$ac_cv_search_waddstr" != no; then
20479 # Check whether we should enable the TUI, but only do so if we really
20481 if test x"$enable_tui" != xno; then
20482 if test -d "$srcdir/tui"; then
20483 if test "$curses_found" != no; then
20484 CONFIG_OBS="$CONFIG_OBS \$(SUBDIR_TUI_OBS)"
20485 CONFIG_DEPS="$CONFIG_DEPS \$(SUBDIR_TUI_DEPS)"
20486 CONFIG_SRCS="$CONFIG_SRCS \$(SUBDIR_TUI_SRCS)"
20487 ENABLE_CFLAGS="$ENABLE_CFLAGS \$(SUBDIR_TUI_CFLAGS)"
20489 if test x"$enable_tui" = xyes; then
20490 as_fn_error $? "no enhanced curses library found; disable TUI" "$LINENO" 5
20492 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: no enhanced curses library found; disabling TUI" >&5
20493 $as_echo "$as_me: WARNING: no enhanced curses library found; disabling TUI" >&2;}
20499 # Since GDB uses Readline, we need termcap functionality. In many
20500 # cases this will be provided by the curses library, but some systems
20501 # have a separate termcap library, or no curses library at all.
20505 if test -d "$srcdir/libtermcap"; then
20506 LIBS="../libtermcap/libtermcap.a $LIBS"
20507 ac_cv_search_tgetent="../libtermcap/libtermcap.a"
20510 ac_cv_search_tgetent="none required"
20514 # These are the libraries checked by Readline.
20515 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing tgetent" >&5
20516 $as_echo_n "checking for library containing tgetent... " >&6; }
20517 if ${ac_cv_search_tgetent+:} false; then :
20518 $as_echo_n "(cached) " >&6
20520 ac_func_search_save_LIBS=$LIBS
20521 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20522 /* end confdefs.h. */
20524 /* Override any GCC internal prototype to avoid an error.
20525 Use char because int might match the return type of a GCC
20526 builtin and then its argument prototype would still apply. */
20539 for ac_lib in '' termcap tinfow tinfo curses ncursesw ncurses; do
20540 if test -z "$ac_lib"; then
20541 ac_res="none required"
20544 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
20546 if ac_fn_c_try_link "$LINENO"; then :
20547 ac_cv_search_tgetent=$ac_res
20549 rm -f core conftest.err conftest.$ac_objext \
20551 if ${ac_cv_search_tgetent+:} false; then :
20555 if ${ac_cv_search_tgetent+:} false; then :
20558 ac_cv_search_tgetent=no
20560 rm conftest.$ac_ext
20561 LIBS=$ac_func_search_save_LIBS
20563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_tgetent" >&5
20564 $as_echo "$ac_cv_search_tgetent" >&6; }
20565 ac_res=$ac_cv_search_tgetent
20566 if test "$ac_res" != no; then :
20567 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
20572 if test "$ac_cv_search_tgetent" = no; then
20573 CONFIG_OBS="$CONFIG_OBS stub-termcap.o"
20577 # Check whether --with-system-readline was given.
20578 if test "${with_system_readline+set}" = set; then :
20579 withval=$with_system_readline;
20583 if test "$with_system_readline" = yes; then
20584 for ac_header in readline/readline.h
20586 ac_fn_c_check_header_mongrel "$LINENO" "readline/readline.h" "ac_cv_header_readline_readline_h" "$ac_includes_default"
20587 if test "x$ac_cv_header_readline_readline_h" = xyes; then :
20588 cat >>confdefs.h <<_ACEOF
20589 #define HAVE_READLINE_READLINE_H 1
20598 if test "$readline_h" = "no"; then
20599 as_fn_error $? "readline development packages are probably missing" "$LINENO" 5
20601 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether system readline is new enough" >&5
20602 $as_echo_n "checking whether system readline is new enough... " >&6; }
20603 if ${gdb_cv_readline_ok+:} false; then :
20604 $as_echo_n "(cached) " >&6
20606 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20607 /* end confdefs.h. */
20609 #include <readline/readline.h>
20613 #if RL_VERSION_MAJOR < 7
20614 # error "readline version 7 required"
20621 if ac_fn_c_try_compile "$LINENO"; then :
20622 gdb_cv_readline_ok=yes
20624 gdb_cv_readline_ok=no
20627 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_readline_ok" >&5
20631 $as_echo "$gdb_cv_readline_ok" >&6; }
20632 if test "$gdb_cv_readline_ok" != yes; then
20633 as_fn_error $? "system readline is not new enough" "$LINENO" 5
20636 READLINE=-lreadline
20639 READLINE_TEXI_INCFLAG=
20641 READLINE='$(READLINE_DIR)/libreadline.a'
20642 READLINE_DEPS='$(READLINE)'
20643 READLINE_CFLAGS='-I$(READLINE_SRC)/..'
20644 READLINE_TEXI_INCFLAG='-I $(READLINE_DIR)'
20651 # Generate jit-reader.h
20653 # This is typedeffed to GDB_CORE_ADDR in jit-reader.h
20656 # The cast to long int works around a bug in the HP C Compiler
20657 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
20658 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
20659 # This bug is HP SR number 8606223364.
20660 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned long long" >&5
20661 $as_echo_n "checking size of unsigned long long... " >&6; }
20662 if ${ac_cv_sizeof_unsigned_long_long+:} false; then :
20663 $as_echo_n "(cached) " >&6
20665 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (unsigned long long))" "ac_cv_sizeof_unsigned_long_long" "$ac_includes_default"; then :
20668 if test "$ac_cv_type_unsigned_long_long" = yes; then
20669 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
20670 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
20671 as_fn_error 77 "cannot compute sizeof (unsigned long long)
20672 See \`config.log' for more details" "$LINENO" 5; }
20674 ac_cv_sizeof_unsigned_long_long=0
20679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_long_long" >&5
20680 $as_echo "$ac_cv_sizeof_unsigned_long_long" >&6; }
20684 cat >>confdefs.h <<_ACEOF
20685 #define SIZEOF_UNSIGNED_LONG_LONG $ac_cv_sizeof_unsigned_long_long
20689 # The cast to long int works around a bug in the HP C Compiler
20690 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
20691 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
20692 # This bug is HP SR number 8606223364.
20693 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned long" >&5
20694 $as_echo_n "checking size of unsigned long... " >&6; }
20695 if ${ac_cv_sizeof_unsigned_long+:} false; then :
20696 $as_echo_n "(cached) " >&6
20698 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (unsigned long))" "ac_cv_sizeof_unsigned_long" "$ac_includes_default"; then :
20701 if test "$ac_cv_type_unsigned_long" = yes; then
20702 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
20703 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
20704 as_fn_error 77 "cannot compute sizeof (unsigned long)
20705 See \`config.log' for more details" "$LINENO" 5; }
20707 ac_cv_sizeof_unsigned_long=0
20712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_long" >&5
20713 $as_echo "$ac_cv_sizeof_unsigned_long" >&6; }
20717 cat >>confdefs.h <<_ACEOF
20718 #define SIZEOF_UNSIGNED_LONG $ac_cv_sizeof_unsigned_long
20722 # The cast to long int works around a bug in the HP C Compiler
20723 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
20724 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
20725 # This bug is HP SR number 8606223364.
20726 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned __int128" >&5
20727 $as_echo_n "checking size of unsigned __int128... " >&6; }
20728 if ${ac_cv_sizeof_unsigned___int128+:} false; then :
20729 $as_echo_n "(cached) " >&6
20731 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (unsigned __int128))" "ac_cv_sizeof_unsigned___int128" "$ac_includes_default"; then :
20734 if test "$ac_cv_type_unsigned___int128" = yes; then
20735 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
20736 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
20737 as_fn_error 77 "cannot compute sizeof (unsigned __int128)
20738 See \`config.log' for more details" "$LINENO" 5; }
20740 ac_cv_sizeof_unsigned___int128=0
20745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned___int128" >&5
20746 $as_echo "$ac_cv_sizeof_unsigned___int128" >&6; }
20750 cat >>confdefs.h <<_ACEOF
20751 #define SIZEOF_UNSIGNED___INT128 $ac_cv_sizeof_unsigned___int128
20756 if test "x${ac_cv_sizeof_unsigned_long}" = "x8"; then
20757 TARGET_PTR="unsigned long"
20758 elif test "x${ac_cv_sizeof_unsigned_long_long}" = "x8"; then
20759 TARGET_PTR="unsigned long long"
20760 elif test "x${ac_cv_sizeof_unsigned___int128}" = "x16"; then
20761 TARGET_PTR="unsigned __int128"
20763 TARGET_PTR="unsigned long"
20767 ac_config_files="$ac_config_files jit-reader.h:jit-reader.in"
20770 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
20771 $as_echo_n "checking for library containing dlopen... " >&6; }
20772 if ${ac_cv_search_dlopen+:} false; then :
20773 $as_echo_n "(cached) " >&6
20775 ac_func_search_save_LIBS=$LIBS
20776 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20777 /* end confdefs.h. */
20779 /* Override any GCC internal prototype to avoid an error.
20780 Use char because int might match the return type of a GCC
20781 builtin and then its argument prototype would still apply. */
20794 for ac_lib in '' dl; do
20795 if test -z "$ac_lib"; then
20796 ac_res="none required"
20799 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
20801 if ac_fn_c_try_link "$LINENO"; then :
20802 ac_cv_search_dlopen=$ac_res
20804 rm -f core conftest.err conftest.$ac_objext \
20806 if ${ac_cv_search_dlopen+:} false; then :
20810 if ${ac_cv_search_dlopen+:} false; then :
20813 ac_cv_search_dlopen=no
20815 rm conftest.$ac_ext
20816 LIBS=$ac_func_search_save_LIBS
20818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
20819 $as_echo "$ac_cv_search_dlopen" >&6; }
20820 ac_res=$ac_cv_search_dlopen
20821 if test "$ac_res" != no; then :
20822 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
20829 # Check whether --with-jit-reader-dir was given.
20830 if test "${with_jit_reader_dir+set}" = set; then :
20831 withval=$with_jit_reader_dir;
20832 JIT_READER_DIR=$withval
20834 JIT_READER_DIR=${libdir}/gdb
20838 test "x$prefix" = xNONE && prefix="$ac_default_prefix"
20839 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
20840 ac_define_dir=`eval echo $JIT_READER_DIR`
20841 ac_define_dir=`eval echo $ac_define_dir`
20843 cat >>confdefs.h <<_ACEOF
20844 #define JIT_READER_DIR "$ac_define_dir"
20850 if test "x$exec_prefix" = xNONE || test "x$exec_prefix" = 'x${prefix}'; then
20851 if test "x$prefix" = xNONE; then
20852 test_prefix=/usr/local
20854 test_prefix=$prefix
20857 test_prefix=$exec_prefix
20860 case ${ac_define_dir} in
20861 "${test_prefix}"|"${test_prefix}/"*|\
20862 '${exec_prefix}'|'${exec_prefix}/'*)
20867 cat >>confdefs.h <<_ACEOF
20868 #define JIT_READER_DIR_RELOCATABLE $value
20875 # Check whether --with-expat was given.
20876 if test "${with_expat+set}" = set; then :
20877 withval=$with_expat;
20882 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use expat" >&5
20883 $as_echo_n "checking whether to use expat... " >&6; }
20884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_expat" >&5
20885 $as_echo "$with_expat" >&6; }
20887 if test "${with_expat}" = no; then
20888 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: expat support disabled; some features may be unavailable." >&5
20889 $as_echo "$as_me: WARNING: expat support disabled; some features may be unavailable." >&2;}
20902 acl_save_prefix="$prefix"
20903 prefix="$acl_final_prefix"
20904 acl_save_exec_prefix="$exec_prefix"
20905 exec_prefix="$acl_final_exec_prefix"
20907 eval additional_includedir=\"$includedir\"
20908 eval additional_libdir=\"$libdir\"
20910 exec_prefix="$acl_save_exec_prefix"
20911 prefix="$acl_save_prefix"
20914 # Check whether --with-libexpat-prefix was given.
20915 if test "${with_libexpat_prefix+set}" = set; then :
20916 withval=$with_libexpat_prefix;
20917 if test "X$withval" = "Xno"; then
20920 if test "X$withval" = "X"; then
20922 acl_save_prefix="$prefix"
20923 prefix="$acl_final_prefix"
20924 acl_save_exec_prefix="$exec_prefix"
20925 exec_prefix="$acl_final_exec_prefix"
20927 eval additional_includedir=\"$includedir\"
20928 eval additional_libdir=\"$libdir\"
20930 exec_prefix="$acl_save_exec_prefix"
20931 prefix="$acl_save_prefix"
20934 additional_includedir="$withval/include"
20935 additional_libdir="$withval/lib"
20942 # Check whether --with-libexpat-type was given.
20943 if test "${with_libexpat_type+set}" = set; then :
20944 withval=$with_libexpat_type; with_libexpat_type=$withval
20946 with_libexpat_type=auto
20949 lib_type=`eval echo \$with_libexpat_type`
20956 names_already_handled=
20957 names_next_round='expat '
20958 while test -n "$names_next_round"; do
20959 names_this_round="$names_next_round"
20961 for name in $names_this_round; do
20963 for n in $names_already_handled; do
20964 if test "$n" = "$name"; then
20965 already_handled=yes
20969 if test -z "$already_handled"; then
20970 names_already_handled="$names_already_handled $name"
20971 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
20972 eval value=\"\$HAVE_LIB$uppername\"
20973 if test -n "$value"; then
20974 if test "$value" = yes; then
20975 eval value=\"\$LIB$uppername\"
20976 test -z "$value" || LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$value"
20977 eval value=\"\$LTLIB$uppername\"
20978 test -z "$value" || LTLIBEXPAT="${LTLIBEXPAT}${LTLIBEXPAT:+ }$value"
20987 if test $use_additional = yes; then
20988 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext" && test x$lib_type != xstatic; then
20989 found_dir="$additional_libdir"
20990 found_so="$additional_libdir/lib$name.$shlibext"
20991 if test -f "$additional_libdir/lib$name.la"; then
20992 found_la="$additional_libdir/lib$name.la"
20994 elif test x$lib_type != xshared; then
20995 if test -f "$additional_libdir/lib$name.$libext"; then
20996 found_dir="$additional_libdir"
20997 found_a="$additional_libdir/lib$name.$libext"
20998 if test -f "$additional_libdir/lib$name.la"; then
20999 found_la="$additional_libdir/lib$name.la"
21004 if test "X$found_dir" = "X"; then
21005 for x in $LDFLAGS $LTLIBEXPAT; do
21007 acl_save_prefix="$prefix"
21008 prefix="$acl_final_prefix"
21009 acl_save_exec_prefix="$exec_prefix"
21010 exec_prefix="$acl_final_exec_prefix"
21012 exec_prefix="$acl_save_exec_prefix"
21013 prefix="$acl_save_prefix"
21017 dir=`echo "X$x" | sed -e 's/^X-L//'`
21018 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext" && test x$lib_type != xstatic; then
21020 found_so="$dir/lib$name.$shlibext"
21021 if test -f "$dir/lib$name.la"; then
21022 found_la="$dir/lib$name.la"
21024 elif test x$lib_type != xshared; then
21025 if test -f "$dir/lib$name.$libext"; then
21027 found_a="$dir/lib$name.$libext"
21028 if test -f "$dir/lib$name.la"; then
21029 found_la="$dir/lib$name.la"
21035 if test "X$found_dir" != "X"; then
21040 if test "X$found_dir" != "X"; then
21041 LTLIBEXPAT="${LTLIBEXPAT}${LTLIBEXPAT:+ }-L$found_dir -l$name"
21042 if test "X$found_so" != "X"; then
21043 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
21044 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$found_so"
21047 for x in $ltrpathdirs; do
21048 if test "X$x" = "X$found_dir"; then
21053 if test -z "$haveit"; then
21054 ltrpathdirs="$ltrpathdirs $found_dir"
21056 if test "$hardcode_direct" = yes; then
21057 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$found_so"
21059 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
21060 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$found_so"
21062 for x in $rpathdirs; do
21063 if test "X$x" = "X$found_dir"; then
21068 if test -z "$haveit"; then
21069 rpathdirs="$rpathdirs $found_dir"
21073 for x in $LDFLAGS $LIBEXPAT; do
21075 acl_save_prefix="$prefix"
21076 prefix="$acl_final_prefix"
21077 acl_save_exec_prefix="$exec_prefix"
21078 exec_prefix="$acl_final_exec_prefix"
21080 exec_prefix="$acl_save_exec_prefix"
21081 prefix="$acl_save_prefix"
21083 if test "X$x" = "X-L$found_dir"; then
21088 if test -z "$haveit"; then
21089 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }-L$found_dir"
21091 if test "$hardcode_minus_L" != no; then
21092 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$found_so"
21094 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }-l$name"
21100 if test "X$found_a" != "X"; then
21101 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$found_a"
21103 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }-L$found_dir -l$name"
21106 additional_includedir=
21107 case "$found_dir" in
21109 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
21110 additional_includedir="$basedir/include"
21113 if test "X$additional_includedir" != "X"; then
21114 if test "X$additional_includedir" != "X/usr/include"; then
21116 if test "X$additional_includedir" = "X/usr/local/include"; then
21117 if test -n "$GCC"; then
21119 linux*) haveit=yes;;
21123 if test -z "$haveit"; then
21124 for x in $CPPFLAGS $INCEXPAT; do
21126 acl_save_prefix="$prefix"
21127 prefix="$acl_final_prefix"
21128 acl_save_exec_prefix="$exec_prefix"
21129 exec_prefix="$acl_final_exec_prefix"
21131 exec_prefix="$acl_save_exec_prefix"
21132 prefix="$acl_save_prefix"
21134 if test "X$x" = "X-I$additional_includedir"; then
21139 if test -z "$haveit"; then
21140 if test -d "$additional_includedir"; then
21141 INCEXPAT="${INCEXPAT}${INCEXPAT:+ }-I$additional_includedir"
21147 if test -n "$found_la"; then
21148 save_libdir="$libdir"
21149 case "$found_la" in
21150 */* | *\\*) . "$found_la" ;;
21151 *) . "./$found_la" ;;
21153 libdir="$save_libdir"
21154 for dep in $dependency_libs; do
21157 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
21158 if test "X$additional_libdir" != "X/usr/lib"; then
21160 if test "X$additional_libdir" = "X/usr/local/lib"; then
21161 if test -n "$GCC"; then
21163 linux*) haveit=yes;;
21167 if test -z "$haveit"; then
21169 for x in $LDFLAGS $LIBEXPAT; do
21171 acl_save_prefix="$prefix"
21172 prefix="$acl_final_prefix"
21173 acl_save_exec_prefix="$exec_prefix"
21174 exec_prefix="$acl_final_exec_prefix"
21176 exec_prefix="$acl_save_exec_prefix"
21177 prefix="$acl_save_prefix"
21179 if test "X$x" = "X-L$additional_libdir"; then
21184 if test -z "$haveit"; then
21185 if test -d "$additional_libdir"; then
21186 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }-L$additional_libdir"
21190 for x in $LDFLAGS $LTLIBEXPAT; do
21192 acl_save_prefix="$prefix"
21193 prefix="$acl_final_prefix"
21194 acl_save_exec_prefix="$exec_prefix"
21195 exec_prefix="$acl_final_exec_prefix"
21197 exec_prefix="$acl_save_exec_prefix"
21198 prefix="$acl_save_prefix"
21200 if test "X$x" = "X-L$additional_libdir"; then
21205 if test -z "$haveit"; then
21206 if test -d "$additional_libdir"; then
21207 LTLIBEXPAT="${LTLIBEXPAT}${LTLIBEXPAT:+ }-L$additional_libdir"
21214 dir=`echo "X$dep" | sed -e 's/^X-R//'`
21215 if test "$enable_rpath" != no; then
21217 for x in $rpathdirs; do
21218 if test "X$x" = "X$dir"; then
21223 if test -z "$haveit"; then
21224 rpathdirs="$rpathdirs $dir"
21227 for x in $ltrpathdirs; do
21228 if test "X$x" = "X$dir"; then
21233 if test -z "$haveit"; then
21234 ltrpathdirs="$ltrpathdirs $dir"
21239 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
21242 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
21245 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$dep"
21246 LTLIBEXPAT="${LTLIBEXPAT}${LTLIBEXPAT:+ }$dep"
21252 if test "x$lib_type" = "xauto" || test "x$lib_type" = "xshared"; then
21253 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }-l$name"
21254 LTLIBEXPAT="${LTLIBEXPAT}${LTLIBEXPAT:+ }-l$name"
21256 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }-l:lib$name.$libext"
21257 LTLIBEXPAT="${LTLIBEXPAT}${LTLIBEXPAT:+ }-l:lib$name.$libext"
21264 if test "X$rpathdirs" != "X"; then
21265 if test -n "$hardcode_libdir_separator"; then
21267 for found_dir in $rpathdirs; do
21268 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
21270 acl_save_libdir="$libdir"
21272 eval flag=\"$hardcode_libdir_flag_spec\"
21273 libdir="$acl_save_libdir"
21274 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$flag"
21276 for found_dir in $rpathdirs; do
21277 acl_save_libdir="$libdir"
21278 libdir="$found_dir"
21279 eval flag=\"$hardcode_libdir_flag_spec\"
21280 libdir="$acl_save_libdir"
21281 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$flag"
21285 if test "X$ltrpathdirs" != "X"; then
21286 for found_dir in $ltrpathdirs; do
21287 LTLIBEXPAT="${LTLIBEXPAT}${LTLIBEXPAT:+ }-R$found_dir"
21292 ac_save_CPPFLAGS="$CPPFLAGS"
21294 for element in $INCEXPAT; do
21296 for x in $CPPFLAGS; do
21298 acl_save_prefix="$prefix"
21299 prefix="$acl_final_prefix"
21300 acl_save_exec_prefix="$exec_prefix"
21301 exec_prefix="$acl_final_exec_prefix"
21303 exec_prefix="$acl_save_exec_prefix"
21304 prefix="$acl_save_prefix"
21306 if test "X$x" = "X$element"; then
21311 if test -z "$haveit"; then
21312 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
21317 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libexpat" >&5
21318 $as_echo_n "checking for libexpat... " >&6; }
21319 if ${ac_cv_libexpat+:} false; then :
21320 $as_echo_n "(cached) " >&6
21323 ac_save_LIBS="$LIBS"
21324 LIBS="$LIBS $LIBEXPAT"
21325 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21326 /* end confdefs.h. */
21331 XML_Parser p = XML_ParserCreate (0);
21336 if ac_fn_c_try_link "$LINENO"; then :
21341 rm -f core conftest.err conftest.$ac_objext \
21342 conftest$ac_exeext conftest.$ac_ext
21343 LIBS="$ac_save_LIBS"
21346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_libexpat" >&5
21347 $as_echo "$ac_cv_libexpat" >&6; }
21348 if test "$ac_cv_libexpat" = yes; then
21351 $as_echo "#define HAVE_LIBEXPAT 1" >>confdefs.h
21353 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libexpat" >&5
21354 $as_echo_n "checking how to link with libexpat... " >&6; }
21355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBEXPAT" >&5
21356 $as_echo "$LIBEXPAT" >&6; }
21359 CPPFLAGS="$ac_save_CPPFLAGS"
21369 if test "$HAVE_LIBEXPAT" != yes; then
21370 if test "$with_expat" = yes; then
21371 as_fn_error $? "expat is missing or unusable" "$LINENO" 5
21373 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: expat is missing or unusable; some features may be unavailable." >&5
21374 $as_echo "$as_me: WARNING: expat is missing or unusable; some features may be unavailable." >&2;}
21378 LIBS="$LIBS $LIBEXPAT"
21379 for ac_func in XML_StopParser
21381 ac_fn_c_check_func "$LINENO" "XML_StopParser" "ac_cv_func_XML_StopParser"
21382 if test "x$ac_cv_func_XML_StopParser" = xyes; then :
21383 cat >>confdefs.h <<_ACEOF
21384 #define HAVE_XML_STOPPARSER 1
21394 # Verify that we have a usable GMP library.
21405 acl_save_prefix="$prefix"
21406 prefix="$acl_final_prefix"
21407 acl_save_exec_prefix="$exec_prefix"
21408 exec_prefix="$acl_final_exec_prefix"
21410 eval additional_includedir=\"$includedir\"
21411 eval additional_libdir=\"$libdir\"
21413 exec_prefix="$acl_save_exec_prefix"
21414 prefix="$acl_save_prefix"
21417 # Check whether --with-libgmp-prefix was given.
21418 if test "${with_libgmp_prefix+set}" = set; then :
21419 withval=$with_libgmp_prefix;
21420 if test "X$withval" = "Xno"; then
21423 if test "X$withval" = "X"; then
21425 acl_save_prefix="$prefix"
21426 prefix="$acl_final_prefix"
21427 acl_save_exec_prefix="$exec_prefix"
21428 exec_prefix="$acl_final_exec_prefix"
21430 eval additional_includedir=\"$includedir\"
21431 eval additional_libdir=\"$libdir\"
21433 exec_prefix="$acl_save_exec_prefix"
21434 prefix="$acl_save_prefix"
21437 additional_includedir="$withval/include"
21438 additional_libdir="$withval/lib"
21445 # Check whether --with-libgmp-type was given.
21446 if test "${with_libgmp_type+set}" = set; then :
21447 withval=$with_libgmp_type; with_libgmp_type=$withval
21449 with_libgmp_type=auto
21452 lib_type=`eval echo \$with_libgmp_type`
21459 names_already_handled=
21460 names_next_round='gmp '
21461 while test -n "$names_next_round"; do
21462 names_this_round="$names_next_round"
21464 for name in $names_this_round; do
21466 for n in $names_already_handled; do
21467 if test "$n" = "$name"; then
21468 already_handled=yes
21472 if test -z "$already_handled"; then
21473 names_already_handled="$names_already_handled $name"
21474 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
21475 eval value=\"\$HAVE_LIB$uppername\"
21476 if test -n "$value"; then
21477 if test "$value" = yes; then
21478 eval value=\"\$LIB$uppername\"
21479 test -z "$value" || LIBGMP="${LIBGMP}${LIBGMP:+ }$value"
21480 eval value=\"\$LTLIB$uppername\"
21481 test -z "$value" || LTLIBGMP="${LTLIBGMP}${LTLIBGMP:+ }$value"
21490 if test $use_additional = yes; then
21491 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext" && test x$lib_type != xstatic; then
21492 found_dir="$additional_libdir"
21493 found_so="$additional_libdir/lib$name.$shlibext"
21494 if test -f "$additional_libdir/lib$name.la"; then
21495 found_la="$additional_libdir/lib$name.la"
21497 elif test x$lib_type != xshared; then
21498 if test -f "$additional_libdir/lib$name.$libext"; then
21499 found_dir="$additional_libdir"
21500 found_a="$additional_libdir/lib$name.$libext"
21501 if test -f "$additional_libdir/lib$name.la"; then
21502 found_la="$additional_libdir/lib$name.la"
21507 if test "X$found_dir" = "X"; then
21508 for x in $LDFLAGS $LTLIBGMP; do
21510 acl_save_prefix="$prefix"
21511 prefix="$acl_final_prefix"
21512 acl_save_exec_prefix="$exec_prefix"
21513 exec_prefix="$acl_final_exec_prefix"
21515 exec_prefix="$acl_save_exec_prefix"
21516 prefix="$acl_save_prefix"
21520 dir=`echo "X$x" | sed -e 's/^X-L//'`
21521 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext" && test x$lib_type != xstatic; then
21523 found_so="$dir/lib$name.$shlibext"
21524 if test -f "$dir/lib$name.la"; then
21525 found_la="$dir/lib$name.la"
21527 elif test x$lib_type != xshared; then
21528 if test -f "$dir/lib$name.$libext"; then
21530 found_a="$dir/lib$name.$libext"
21531 if test -f "$dir/lib$name.la"; then
21532 found_la="$dir/lib$name.la"
21538 if test "X$found_dir" != "X"; then
21543 if test "X$found_dir" != "X"; then
21544 LTLIBGMP="${LTLIBGMP}${LTLIBGMP:+ }-L$found_dir -l$name"
21545 if test "X$found_so" != "X"; then
21546 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
21547 LIBGMP="${LIBGMP}${LIBGMP:+ }$found_so"
21550 for x in $ltrpathdirs; do
21551 if test "X$x" = "X$found_dir"; then
21556 if test -z "$haveit"; then
21557 ltrpathdirs="$ltrpathdirs $found_dir"
21559 if test "$hardcode_direct" = yes; then
21560 LIBGMP="${LIBGMP}${LIBGMP:+ }$found_so"
21562 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
21563 LIBGMP="${LIBGMP}${LIBGMP:+ }$found_so"
21565 for x in $rpathdirs; do
21566 if test "X$x" = "X$found_dir"; then
21571 if test -z "$haveit"; then
21572 rpathdirs="$rpathdirs $found_dir"
21576 for x in $LDFLAGS $LIBGMP; do
21578 acl_save_prefix="$prefix"
21579 prefix="$acl_final_prefix"
21580 acl_save_exec_prefix="$exec_prefix"
21581 exec_prefix="$acl_final_exec_prefix"
21583 exec_prefix="$acl_save_exec_prefix"
21584 prefix="$acl_save_prefix"
21586 if test "X$x" = "X-L$found_dir"; then
21591 if test -z "$haveit"; then
21592 LIBGMP="${LIBGMP}${LIBGMP:+ }-L$found_dir"
21594 if test "$hardcode_minus_L" != no; then
21595 LIBGMP="${LIBGMP}${LIBGMP:+ }$found_so"
21597 LIBGMP="${LIBGMP}${LIBGMP:+ }-l$name"
21603 if test "X$found_a" != "X"; then
21604 LIBGMP="${LIBGMP}${LIBGMP:+ }$found_a"
21606 LIBGMP="${LIBGMP}${LIBGMP:+ }-L$found_dir -l$name"
21609 additional_includedir=
21610 case "$found_dir" in
21612 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
21613 additional_includedir="$basedir/include"
21616 if test "X$additional_includedir" != "X"; then
21617 if test "X$additional_includedir" != "X/usr/include"; then
21619 if test "X$additional_includedir" = "X/usr/local/include"; then
21620 if test -n "$GCC"; then
21622 linux*) haveit=yes;;
21626 if test -z "$haveit"; then
21627 for x in $CPPFLAGS $INCGMP; do
21629 acl_save_prefix="$prefix"
21630 prefix="$acl_final_prefix"
21631 acl_save_exec_prefix="$exec_prefix"
21632 exec_prefix="$acl_final_exec_prefix"
21634 exec_prefix="$acl_save_exec_prefix"
21635 prefix="$acl_save_prefix"
21637 if test "X$x" = "X-I$additional_includedir"; then
21642 if test -z "$haveit"; then
21643 if test -d "$additional_includedir"; then
21644 INCGMP="${INCGMP}${INCGMP:+ }-I$additional_includedir"
21650 if test -n "$found_la"; then
21651 save_libdir="$libdir"
21652 case "$found_la" in
21653 */* | *\\*) . "$found_la" ;;
21654 *) . "./$found_la" ;;
21656 libdir="$save_libdir"
21657 for dep in $dependency_libs; do
21660 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
21661 if test "X$additional_libdir" != "X/usr/lib"; then
21663 if test "X$additional_libdir" = "X/usr/local/lib"; then
21664 if test -n "$GCC"; then
21666 linux*) haveit=yes;;
21670 if test -z "$haveit"; then
21672 for x in $LDFLAGS $LIBGMP; do
21674 acl_save_prefix="$prefix"
21675 prefix="$acl_final_prefix"
21676 acl_save_exec_prefix="$exec_prefix"
21677 exec_prefix="$acl_final_exec_prefix"
21679 exec_prefix="$acl_save_exec_prefix"
21680 prefix="$acl_save_prefix"
21682 if test "X$x" = "X-L$additional_libdir"; then
21687 if test -z "$haveit"; then
21688 if test -d "$additional_libdir"; then
21689 LIBGMP="${LIBGMP}${LIBGMP:+ }-L$additional_libdir"
21693 for x in $LDFLAGS $LTLIBGMP; do
21695 acl_save_prefix="$prefix"
21696 prefix="$acl_final_prefix"
21697 acl_save_exec_prefix="$exec_prefix"
21698 exec_prefix="$acl_final_exec_prefix"
21700 exec_prefix="$acl_save_exec_prefix"
21701 prefix="$acl_save_prefix"
21703 if test "X$x" = "X-L$additional_libdir"; then
21708 if test -z "$haveit"; then
21709 if test -d "$additional_libdir"; then
21710 LTLIBGMP="${LTLIBGMP}${LTLIBGMP:+ }-L$additional_libdir"
21717 dir=`echo "X$dep" | sed -e 's/^X-R//'`
21718 if test "$enable_rpath" != no; then
21720 for x in $rpathdirs; do
21721 if test "X$x" = "X$dir"; then
21726 if test -z "$haveit"; then
21727 rpathdirs="$rpathdirs $dir"
21730 for x in $ltrpathdirs; do
21731 if test "X$x" = "X$dir"; then
21736 if test -z "$haveit"; then
21737 ltrpathdirs="$ltrpathdirs $dir"
21742 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
21745 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
21748 LIBGMP="${LIBGMP}${LIBGMP:+ }$dep"
21749 LTLIBGMP="${LTLIBGMP}${LTLIBGMP:+ }$dep"
21755 if test "x$lib_type" = "xauto" || test "x$lib_type" = "xshared"; then
21756 LIBGMP="${LIBGMP}${LIBGMP:+ }-l$name"
21757 LTLIBGMP="${LTLIBGMP}${LTLIBGMP:+ }-l$name"
21759 LIBGMP="${LIBGMP}${LIBGMP:+ }-l:lib$name.$libext"
21760 LTLIBGMP="${LTLIBGMP}${LTLIBGMP:+ }-l:lib$name.$libext"
21767 if test "X$rpathdirs" != "X"; then
21768 if test -n "$hardcode_libdir_separator"; then
21770 for found_dir in $rpathdirs; do
21771 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
21773 acl_save_libdir="$libdir"
21775 eval flag=\"$hardcode_libdir_flag_spec\"
21776 libdir="$acl_save_libdir"
21777 LIBGMP="${LIBGMP}${LIBGMP:+ }$flag"
21779 for found_dir in $rpathdirs; do
21780 acl_save_libdir="$libdir"
21781 libdir="$found_dir"
21782 eval flag=\"$hardcode_libdir_flag_spec\"
21783 libdir="$acl_save_libdir"
21784 LIBGMP="${LIBGMP}${LIBGMP:+ }$flag"
21788 if test "X$ltrpathdirs" != "X"; then
21789 for found_dir in $ltrpathdirs; do
21790 LTLIBGMP="${LTLIBGMP}${LTLIBGMP:+ }-R$found_dir"
21795 ac_save_CPPFLAGS="$CPPFLAGS"
21797 for element in $INCGMP; do
21799 for x in $CPPFLAGS; do
21801 acl_save_prefix="$prefix"
21802 prefix="$acl_final_prefix"
21803 acl_save_exec_prefix="$exec_prefix"
21804 exec_prefix="$acl_final_exec_prefix"
21806 exec_prefix="$acl_save_exec_prefix"
21807 prefix="$acl_save_prefix"
21809 if test "X$x" = "X$element"; then
21814 if test -z "$haveit"; then
21815 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
21820 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libgmp" >&5
21821 $as_echo_n "checking for libgmp... " >&6; }
21822 if ${ac_cv_libgmp+:} false; then :
21823 $as_echo_n "(cached) " >&6
21826 ac_save_LIBS="$LIBS"
21827 LIBS="$LIBS $LIBGMP"
21828 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21829 /* end confdefs.h. */
21840 if ac_fn_c_try_link "$LINENO"; then :
21845 rm -f core conftest.err conftest.$ac_objext \
21846 conftest$ac_exeext conftest.$ac_ext
21847 LIBS="$ac_save_LIBS"
21850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_libgmp" >&5
21851 $as_echo "$ac_cv_libgmp" >&6; }
21852 if test "$ac_cv_libgmp" = yes; then
21855 $as_echo "#define HAVE_LIBGMP 1" >>confdefs.h
21857 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libgmp" >&5
21858 $as_echo_n "checking how to link with libgmp... " >&6; }
21859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBGMP" >&5
21860 $as_echo "$LIBGMP" >&6; }
21863 CPPFLAGS="$ac_save_CPPFLAGS"
21873 if test "$HAVE_LIBGMP" != yes; then
21874 as_fn_error $? "GMP is missing or unusable" "$LINENO" 5
21878 # Check whether --with-mpfr was given.
21879 if test "${with_mpfr+set}" = set; then :
21880 withval=$with_mpfr;
21885 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use MPFR" >&5
21886 $as_echo_n "checking whether to use MPFR... " >&6; }
21887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_mpfr" >&5
21888 $as_echo "$with_mpfr" >&6; }
21890 if test "${with_mpfr}" = no; then
21891 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MPFR support disabled; some features may be unavailable." >&5
21892 $as_echo "$as_me: WARNING: MPFR support disabled; some features may be unavailable." >&2;}
21905 acl_save_prefix="$prefix"
21906 prefix="$acl_final_prefix"
21907 acl_save_exec_prefix="$exec_prefix"
21908 exec_prefix="$acl_final_exec_prefix"
21910 eval additional_includedir=\"$includedir\"
21911 eval additional_libdir=\"$libdir\"
21913 exec_prefix="$acl_save_exec_prefix"
21914 prefix="$acl_save_prefix"
21917 # Check whether --with-libmpfr-prefix was given.
21918 if test "${with_libmpfr_prefix+set}" = set; then :
21919 withval=$with_libmpfr_prefix;
21920 if test "X$withval" = "Xno"; then
21923 if test "X$withval" = "X"; then
21925 acl_save_prefix="$prefix"
21926 prefix="$acl_final_prefix"
21927 acl_save_exec_prefix="$exec_prefix"
21928 exec_prefix="$acl_final_exec_prefix"
21930 eval additional_includedir=\"$includedir\"
21931 eval additional_libdir=\"$libdir\"
21933 exec_prefix="$acl_save_exec_prefix"
21934 prefix="$acl_save_prefix"
21937 additional_includedir="$withval/include"
21938 additional_libdir="$withval/lib"
21945 # Check whether --with-libmpfr-type was given.
21946 if test "${with_libmpfr_type+set}" = set; then :
21947 withval=$with_libmpfr_type; with_libmpfr_type=$withval
21949 with_libmpfr_type=auto
21952 lib_type=`eval echo \$with_libmpfr_type`
21959 names_already_handled=
21960 names_next_round='mpfr gmp'
21961 while test -n "$names_next_round"; do
21962 names_this_round="$names_next_round"
21964 for name in $names_this_round; do
21966 for n in $names_already_handled; do
21967 if test "$n" = "$name"; then
21968 already_handled=yes
21972 if test -z "$already_handled"; then
21973 names_already_handled="$names_already_handled $name"
21974 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
21975 eval value=\"\$HAVE_LIB$uppername\"
21976 if test -n "$value"; then
21977 if test "$value" = yes; then
21978 eval value=\"\$LIB$uppername\"
21979 test -z "$value" || LIBMPFR="${LIBMPFR}${LIBMPFR:+ }$value"
21980 eval value=\"\$LTLIB$uppername\"
21981 test -z "$value" || LTLIBMPFR="${LTLIBMPFR}${LTLIBMPFR:+ }$value"
21990 if test $use_additional = yes; then
21991 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext" && test x$lib_type != xstatic; then
21992 found_dir="$additional_libdir"
21993 found_so="$additional_libdir/lib$name.$shlibext"
21994 if test -f "$additional_libdir/lib$name.la"; then
21995 found_la="$additional_libdir/lib$name.la"
21997 elif test x$lib_type != xshared; then
21998 if test -f "$additional_libdir/lib$name.$libext"; then
21999 found_dir="$additional_libdir"
22000 found_a="$additional_libdir/lib$name.$libext"
22001 if test -f "$additional_libdir/lib$name.la"; then
22002 found_la="$additional_libdir/lib$name.la"
22007 if test "X$found_dir" = "X"; then
22008 for x in $LDFLAGS $LTLIBMPFR; do
22010 acl_save_prefix="$prefix"
22011 prefix="$acl_final_prefix"
22012 acl_save_exec_prefix="$exec_prefix"
22013 exec_prefix="$acl_final_exec_prefix"
22015 exec_prefix="$acl_save_exec_prefix"
22016 prefix="$acl_save_prefix"
22020 dir=`echo "X$x" | sed -e 's/^X-L//'`
22021 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext" && test x$lib_type != xstatic; then
22023 found_so="$dir/lib$name.$shlibext"
22024 if test -f "$dir/lib$name.la"; then
22025 found_la="$dir/lib$name.la"
22027 elif test x$lib_type != xshared; then
22028 if test -f "$dir/lib$name.$libext"; then
22030 found_a="$dir/lib$name.$libext"
22031 if test -f "$dir/lib$name.la"; then
22032 found_la="$dir/lib$name.la"
22038 if test "X$found_dir" != "X"; then
22043 if test "X$found_dir" != "X"; then
22044 LTLIBMPFR="${LTLIBMPFR}${LTLIBMPFR:+ }-L$found_dir -l$name"
22045 if test "X$found_so" != "X"; then
22046 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
22047 LIBMPFR="${LIBMPFR}${LIBMPFR:+ }$found_so"
22050 for x in $ltrpathdirs; do
22051 if test "X$x" = "X$found_dir"; then
22056 if test -z "$haveit"; then
22057 ltrpathdirs="$ltrpathdirs $found_dir"
22059 if test "$hardcode_direct" = yes; then
22060 LIBMPFR="${LIBMPFR}${LIBMPFR:+ }$found_so"
22062 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
22063 LIBMPFR="${LIBMPFR}${LIBMPFR:+ }$found_so"
22065 for x in $rpathdirs; do
22066 if test "X$x" = "X$found_dir"; then
22071 if test -z "$haveit"; then
22072 rpathdirs="$rpathdirs $found_dir"
22076 for x in $LDFLAGS $LIBMPFR; do
22078 acl_save_prefix="$prefix"
22079 prefix="$acl_final_prefix"
22080 acl_save_exec_prefix="$exec_prefix"
22081 exec_prefix="$acl_final_exec_prefix"
22083 exec_prefix="$acl_save_exec_prefix"
22084 prefix="$acl_save_prefix"
22086 if test "X$x" = "X-L$found_dir"; then
22091 if test -z "$haveit"; then
22092 LIBMPFR="${LIBMPFR}${LIBMPFR:+ }-L$found_dir"
22094 if test "$hardcode_minus_L" != no; then
22095 LIBMPFR="${LIBMPFR}${LIBMPFR:+ }$found_so"
22097 LIBMPFR="${LIBMPFR}${LIBMPFR:+ }-l$name"
22103 if test "X$found_a" != "X"; then
22104 LIBMPFR="${LIBMPFR}${LIBMPFR:+ }$found_a"
22106 LIBMPFR="${LIBMPFR}${LIBMPFR:+ }-L$found_dir -l$name"
22109 additional_includedir=
22110 case "$found_dir" in
22112 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
22113 additional_includedir="$basedir/include"
22116 if test "X$additional_includedir" != "X"; then
22117 if test "X$additional_includedir" != "X/usr/include"; then
22119 if test "X$additional_includedir" = "X/usr/local/include"; then
22120 if test -n "$GCC"; then
22122 linux*) haveit=yes;;
22126 if test -z "$haveit"; then
22127 for x in $CPPFLAGS $INCMPFR; do
22129 acl_save_prefix="$prefix"
22130 prefix="$acl_final_prefix"
22131 acl_save_exec_prefix="$exec_prefix"
22132 exec_prefix="$acl_final_exec_prefix"
22134 exec_prefix="$acl_save_exec_prefix"
22135 prefix="$acl_save_prefix"
22137 if test "X$x" = "X-I$additional_includedir"; then
22142 if test -z "$haveit"; then
22143 if test -d "$additional_includedir"; then
22144 INCMPFR="${INCMPFR}${INCMPFR:+ }-I$additional_includedir"
22150 if test -n "$found_la"; then
22151 save_libdir="$libdir"
22152 case "$found_la" in
22153 */* | *\\*) . "$found_la" ;;
22154 *) . "./$found_la" ;;
22156 libdir="$save_libdir"
22157 for dep in $dependency_libs; do
22160 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
22161 if test "X$additional_libdir" != "X/usr/lib"; then
22163 if test "X$additional_libdir" = "X/usr/local/lib"; then
22164 if test -n "$GCC"; then
22166 linux*) haveit=yes;;
22170 if test -z "$haveit"; then
22172 for x in $LDFLAGS $LIBMPFR; do
22174 acl_save_prefix="$prefix"
22175 prefix="$acl_final_prefix"
22176 acl_save_exec_prefix="$exec_prefix"
22177 exec_prefix="$acl_final_exec_prefix"
22179 exec_prefix="$acl_save_exec_prefix"
22180 prefix="$acl_save_prefix"
22182 if test "X$x" = "X-L$additional_libdir"; then
22187 if test -z "$haveit"; then
22188 if test -d "$additional_libdir"; then
22189 LIBMPFR="${LIBMPFR}${LIBMPFR:+ }-L$additional_libdir"
22193 for x in $LDFLAGS $LTLIBMPFR; do
22195 acl_save_prefix="$prefix"
22196 prefix="$acl_final_prefix"
22197 acl_save_exec_prefix="$exec_prefix"
22198 exec_prefix="$acl_final_exec_prefix"
22200 exec_prefix="$acl_save_exec_prefix"
22201 prefix="$acl_save_prefix"
22203 if test "X$x" = "X-L$additional_libdir"; then
22208 if test -z "$haveit"; then
22209 if test -d "$additional_libdir"; then
22210 LTLIBMPFR="${LTLIBMPFR}${LTLIBMPFR:+ }-L$additional_libdir"
22217 dir=`echo "X$dep" | sed -e 's/^X-R//'`
22218 if test "$enable_rpath" != no; then
22220 for x in $rpathdirs; do
22221 if test "X$x" = "X$dir"; then
22226 if test -z "$haveit"; then
22227 rpathdirs="$rpathdirs $dir"
22230 for x in $ltrpathdirs; do
22231 if test "X$x" = "X$dir"; then
22236 if test -z "$haveit"; then
22237 ltrpathdirs="$ltrpathdirs $dir"
22242 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
22245 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
22248 LIBMPFR="${LIBMPFR}${LIBMPFR:+ }$dep"
22249 LTLIBMPFR="${LTLIBMPFR}${LTLIBMPFR:+ }$dep"
22255 if test "x$lib_type" = "xauto" || test "x$lib_type" = "xshared"; then
22256 LIBMPFR="${LIBMPFR}${LIBMPFR:+ }-l$name"
22257 LTLIBMPFR="${LTLIBMPFR}${LTLIBMPFR:+ }-l$name"
22259 LIBMPFR="${LIBMPFR}${LIBMPFR:+ }-l:lib$name.$libext"
22260 LTLIBMPFR="${LTLIBMPFR}${LTLIBMPFR:+ }-l:lib$name.$libext"
22267 if test "X$rpathdirs" != "X"; then
22268 if test -n "$hardcode_libdir_separator"; then
22270 for found_dir in $rpathdirs; do
22271 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
22273 acl_save_libdir="$libdir"
22275 eval flag=\"$hardcode_libdir_flag_spec\"
22276 libdir="$acl_save_libdir"
22277 LIBMPFR="${LIBMPFR}${LIBMPFR:+ }$flag"
22279 for found_dir in $rpathdirs; do
22280 acl_save_libdir="$libdir"
22281 libdir="$found_dir"
22282 eval flag=\"$hardcode_libdir_flag_spec\"
22283 libdir="$acl_save_libdir"
22284 LIBMPFR="${LIBMPFR}${LIBMPFR:+ }$flag"
22288 if test "X$ltrpathdirs" != "X"; then
22289 for found_dir in $ltrpathdirs; do
22290 LTLIBMPFR="${LTLIBMPFR}${LTLIBMPFR:+ }-R$found_dir"
22295 ac_save_CPPFLAGS="$CPPFLAGS"
22297 for element in $INCMPFR; do
22299 for x in $CPPFLAGS; do
22301 acl_save_prefix="$prefix"
22302 prefix="$acl_final_prefix"
22303 acl_save_exec_prefix="$exec_prefix"
22304 exec_prefix="$acl_final_exec_prefix"
22306 exec_prefix="$acl_save_exec_prefix"
22307 prefix="$acl_save_prefix"
22309 if test "X$x" = "X$element"; then
22314 if test -z "$haveit"; then
22315 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
22320 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libmpfr" >&5
22321 $as_echo_n "checking for libmpfr... " >&6; }
22322 if ${ac_cv_libmpfr+:} false; then :
22323 $as_echo_n "(cached) " >&6
22326 ac_save_LIBS="$LIBS"
22327 LIBS="$LIBS $LIBMPFR"
22328 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22329 /* end confdefs.h. */
22334 mpfr_exp_t exp; mpfr_t x;
22335 mpfr_frexp (&exp, x, x, MPFR_RNDN);
22340 if ac_fn_c_try_link "$LINENO"; then :
22345 rm -f core conftest.err conftest.$ac_objext \
22346 conftest$ac_exeext conftest.$ac_ext
22347 LIBS="$ac_save_LIBS"
22350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_libmpfr" >&5
22351 $as_echo "$ac_cv_libmpfr" >&6; }
22352 if test "$ac_cv_libmpfr" = yes; then
22355 $as_echo "#define HAVE_LIBMPFR 1" >>confdefs.h
22357 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libmpfr" >&5
22358 $as_echo_n "checking how to link with libmpfr... " >&6; }
22359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBMPFR" >&5
22360 $as_echo "$LIBMPFR" >&6; }
22363 CPPFLAGS="$ac_save_CPPFLAGS"
22373 if test "$HAVE_LIBMPFR" != yes; then
22374 if test "$with_mpfr" = yes; then
22375 as_fn_error $? "MPFR is missing or unusable" "$LINENO" 5
22377 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MPFR is missing or unusable; some features may be unavailable." >&5
22378 $as_echo "$as_me: WARNING: MPFR is missing or unusable; some features may be unavailable." >&2;}
22383 # --------------------- #
22384 # Check for libpython. #
22385 # --------------------- #
22392 # Check whether --with-python was given.
22393 if test "${with_python+set}" = set; then :
22394 withval=$with_python;
22399 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use python" >&5
22400 $as_echo_n "checking whether to use python... " >&6; }
22401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_python" >&5
22402 $as_echo "$with_python" >&6; }
22404 if test "${with_python}" = no; then
22405 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: python support disabled; some features may be unavailable." >&5
22406 $as_echo "$as_me: WARNING: python support disabled; some features may be unavailable." >&2;}
22409 case "${with_python}" in
22411 if test -d "${with_python}"; then
22412 # Assume the python binary is ${with_python}/bin/python.
22413 python_prog="${with_python}/bin/python"
22415 # If python does not exit ${with_python}/bin, then try in
22416 # ${with_python}. On Windows/MinGW, this is where the Python
22418 if test ! -x "${python_prog}"; then
22419 python_prog="${with_python}/python"
22422 if test ! -x "${python_prog}"; then
22423 # Fall back to gdb 7.0/7.1 behaviour.
22424 python_prog=missing
22425 python_prefix=${with_python}
22427 elif test -x "${with_python}"; then
22428 # While we can't run python compiled for $host (unless host == build),
22429 # the user could write a script that provides the needed information,
22430 # so we support that.
22431 python_prog=${with_python}
22434 as_fn_error $? "invalid value for --with-python" "$LINENO" 5
22438 # Disallow --with-python=foo/bar.
22439 as_fn_error $? "invalid value for --with-python" "$LINENO" 5
22442 # The user has either specified auto, yes, or the name of the python
22443 # program assumed to be in $PATH.
22445 case "${with_python}" in
22447 if test "${build}" = "${host}"; then
22448 # Look first for 'python', then 'python3'.
22449 for ac_prog in python python3
22451 # Extract the first word of "$ac_prog", so it can be a program name with args.
22452 set dummy $ac_prog; ac_word=$2
22453 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22454 $as_echo_n "checking for $ac_word... " >&6; }
22455 if ${ac_cv_path_python_prog_path+:} false; then :
22456 $as_echo_n "(cached) " >&6
22458 case $python_prog_path in
22460 ac_cv_path_python_prog_path="$python_prog_path" # Let the user override the test with a path.
22463 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22464 for as_dir in $PATH
22467 test -z "$as_dir" && as_dir=.
22468 for ac_exec_ext in '' $ac_executable_extensions; do
22469 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22470 ac_cv_path_python_prog_path="$as_dir/$ac_word$ac_exec_ext"
22471 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22481 python_prog_path=$ac_cv_path_python_prog_path
22482 if test -n "$python_prog_path"; then
22483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $python_prog_path" >&5
22484 $as_echo "$python_prog_path" >&6; }
22486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22487 $as_echo "no" >&6; }
22491 test -n "$python_prog_path" && break
22493 test -n "$python_prog_path" || python_prog_path="missing"
22495 if test "${python_prog_path}" = missing; then
22496 python_prog=missing
22498 python_prog=${python_prog_path}
22501 # Not much we can do except assume the cross-compiler will find the
22503 python_prog=missing
22507 # While we can't run python compiled for $host (unless host == build),
22508 # the user could write a script that provides the needed information,
22509 # so we support that.
22510 python_prog="${with_python}"
22511 # Extract the first word of "${python_prog}", so it can be a program name with args.
22512 set dummy ${python_prog}; ac_word=$2
22513 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22514 $as_echo_n "checking for $ac_word... " >&6; }
22515 if ${ac_cv_path_python_prog_path+:} false; then :
22516 $as_echo_n "(cached) " >&6
22518 case $python_prog_path in
22520 ac_cv_path_python_prog_path="$python_prog_path" # Let the user override the test with a path.
22523 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22524 for as_dir in $PATH
22527 test -z "$as_dir" && as_dir=.
22528 for ac_exec_ext in '' $ac_executable_extensions; do
22529 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22530 ac_cv_path_python_prog_path="$as_dir/$ac_word$ac_exec_ext"
22531 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22538 test -z "$ac_cv_path_python_prog_path" && ac_cv_path_python_prog_path="missing"
22542 python_prog_path=$ac_cv_path_python_prog_path
22543 if test -n "$python_prog_path"; then
22544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $python_prog_path" >&5
22545 $as_echo "$python_prog_path" >&6; }
22547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22548 $as_echo "no" >&6; }
22552 if test "${python_prog_path}" = missing; then
22553 as_fn_error $? "unable to find python program ${python_prog}" "$LINENO" 5
22559 if test "${python_prog}" != missing; then
22560 # We have a python program to use, but it may be too old.
22561 # Don't flag an error for --with-python=auto (the default).
22562 have_python_config=yes
22563 python_includes=`${python_prog} ${srcdir}/python/python-config.py --includes`
22564 if test $? != 0; then
22565 have_python_config=failed
22566 if test "${with_python}" != auto; then
22567 as_fn_error $? "failure running python-config --includes" "$LINENO" 5
22570 python_libs=`${python_prog} ${srcdir}/python/python-config.py --ldflags`
22571 if test $? != 0; then
22572 have_python_config=failed
22573 if test "${with_python}" != auto; then
22574 as_fn_error $? "failure running python-config --ldflags" "$LINENO" 5
22577 python_prefix=`${python_prog} ${srcdir}/python/python-config.py --exec-prefix`
22578 if test $? != 0; then
22579 have_python_config=failed
22580 if test "${with_python}" != auto; then
22581 as_fn_error $? "failure running python-config --exec-prefix" "$LINENO" 5
22585 # We do not have a python executable we can use to determine where
22586 # to find the Python headers and libs. We cannot guess the include
22587 # path from the python_prefix either, because that include path
22588 # depends on the Python version. So, there is nothing much we can
22589 # do except assume that the compiler will be able to find those files.
22592 have_python_config=no
22595 # If we have python-config, only try the configuration it provides.
22596 # Otherwise fallback on the old way of trying different versions of
22600 if test "${have_python_config}" = yes; then
22603 new_CPPFLAGS=${python_includes}
22604 new_LIBS=${python_libs}
22605 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for python" >&5
22606 $as_echo_n "checking for python... " >&6; }
22607 save_CPPFLAGS=$CPPFLAGS
22609 CPPFLAGS="$CPPFLAGS $new_CPPFLAGS"
22610 LIBS="$new_LIBS $LIBS"
22611 found_usable_python=no
22612 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22613 /* end confdefs.h. */
22614 #include "Python.h"
22619 #if PY_MAJOR_VERSION != 3
22620 # error "We only support Python 3"
22628 if ac_fn_c_try_link "$LINENO"; then :
22630 found_usable_python=yes
22631 PYTHON_CPPFLAGS=$new_CPPFLAGS
22632 PYTHON_LIBS=$new_LIBS
22634 rm -f core conftest.err conftest.$ac_objext \
22635 conftest$ac_exeext conftest.$ac_ext
22636 CPPFLAGS=$save_CPPFLAGS
22638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${found_usable_python}" >&5
22639 $as_echo "${found_usable_python}" >&6; }
22643 if test "${have_libpython}" = no; then
22644 case "${with_python}" in
22646 as_fn_error $? "python is missing or unusable" "$LINENO" 5
22649 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: python is missing or unusable; some features may be unavailable." >&5
22650 $as_echo "$as_me: WARNING: python is missing or unusable; some features may be unavailable." >&2;}
22653 as_fn_error $? "no usable python found at ${with_python}" "$LINENO" 5
22657 if test -n "${python_prefix}"; then
22659 cat >>confdefs.h <<_ACEOF
22660 #define WITH_PYTHON_PATH "${python_prefix}"
22664 if test "x$exec_prefix" = xNONE || test "x$exec_prefix" = 'x${prefix}'; then
22665 if test "x$prefix" = xNONE; then
22666 test_prefix=/usr/local
22668 test_prefix=$prefix
22671 test_prefix=$exec_prefix
22674 case ${python_prefix} in
22675 "${test_prefix}"|"${test_prefix}/"*|\
22676 '${exec_prefix}'|'${exec_prefix}/'*)
22681 cat >>confdefs.h <<_ACEOF
22682 #define PYTHON_PATH_RELOCATABLE $value
22691 # Check whether --with-python-libdir was given.
22692 if test "${with_python_libdir+set}" = set; then :
22693 withval=$with_python_libdir;
22696 # If no python libdir is specified then select one based on
22697 # python's prefix path.
22698 if test -n "${python_prefix}"; then
22699 with_python_libdir=${python_prefix}/lib
22705 if test "${have_libpython}" != no; then
22707 $as_echo "#define HAVE_PYTHON 1" >>confdefs.h
22709 CONFIG_OBS="$CONFIG_OBS \$(SUBDIR_PYTHON_OBS)"
22710 CONFIG_DEPS="$CONFIG_DEPS \$(SUBDIR_PYTHON_DEPS)"
22711 CONFIG_SRCS="$CONFIG_SRCS \$(SUBDIR_PYTHON_SRCS)"
22712 CONFIG_INSTALL="$CONFIG_INSTALL install-python"
22713 ENABLE_CFLAGS="$ENABLE_CFLAGS \$(SUBDIR_PYTHON_CFLAGS)"
22715 if test -n "${with_python_libdir}"; then
22717 cat >>confdefs.h <<_ACEOF
22718 #define WITH_PYTHON_LIBDIR "${with_python_libdir}"
22722 if test "x$exec_prefix" = xNONE || test "x$exec_prefix" = 'x${prefix}'; then
22723 if test "x$prefix" = xNONE; then
22724 test_prefix=/usr/local
22726 test_prefix=$prefix
22729 test_prefix=$exec_prefix
22732 case ${with_python_libdir} in
22733 "${test_prefix}"|"${test_prefix}/"*|\
22734 '${exec_prefix}'|'${exec_prefix}/'*)
22739 cat >>confdefs.h <<_ACEOF
22740 #define PYTHON_LIBDIR_RELOCATABLE $value
22746 # Flags needed to compile Python code (taken from python-config --cflags).
22747 # We cannot call python-config directly because it will output whatever was
22748 # used when compiling the Python interpreter itself, including flags which
22749 # would make the python-related objects be compiled differently from the
22750 # rest of GDB (e.g., -O2 and -fPIC).
22751 if test "${GCC}" = yes; then
22752 tentative_python_cflags="-fno-strict-aliasing -fwrapv"
22753 # Python headers recommend -DNDEBUG, but it's unclear if that just
22754 # refers to building Python itself. In release mode, though, it
22755 # doesn't hurt for the Python code in gdb to follow.
22756 $development || tentative_python_cflags="$tentative_python_cflags -DNDEBUG"
22759 if test "x${tentative_python_cflags}" != x; then
22760 { $as_echo "$as_me:${as_lineno-$LINENO}: checking compiler flags for python code" >&5
22761 $as_echo_n "checking compiler flags for python code... " >&6; }
22762 for flag in ${tentative_python_cflags}; do
22763 # Check that the compiler accepts it
22764 saved_CFLAGS="$CFLAGS"
22765 CFLAGS="$CFLAGS $flag"
22766 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22767 /* end confdefs.h. */
22777 if ac_fn_c_try_compile "$LINENO"; then :
22778 PYTHON_CFLAGS="${PYTHON_CFLAGS} $flag"
22780 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22781 CFLAGS="$saved_CFLAGS"
22783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${PYTHON_CFLAGS}" >&5
22784 $as_echo "${PYTHON_CFLAGS}" >&6; }
22787 # On x64 Windows, Python's include headers, and pyconfig.h in
22788 # particular, rely on MS_WIN64 macro to detect that it's a 64bit
22789 # version of Windows. Unfortunately, MS_WIN64 is only defined if
22790 # _MSC_VER, a Microsoft-specific macro, is defined. So, when
22791 # building on x64 Windows with GCC, we define MS_WIN64 ourselves.
22792 # The issue was reported to the Python community, but still isn't
22793 # solved as of 2012-10-02 (http://bugs.python.org/issue4709).
22795 case "$gdb_host" in
22797 if test "${GCC}" = yes; then
22798 CPPFLAGS="$CPPFLAGS -DMS_WIN64"
22803 # Even if Python support is not compiled in, we need to have this file
22804 # included so that the "python" command, et.al., still exists.
22805 CONFIG_OBS="$CONFIG_OBS python/python.o"
22806 CONFIG_SRCS="$CONFIG_SRCS python/python.c"
22809 # Work around Python http://bugs.python.org/issue10112. See also
22810 # http://bugs.python.org/issue11410, otherwise -Wl,--dynamic-list has
22811 # no effect. Note that the only test after this that uses Python is
22812 # the -rdynamic/-Wl,--dynamic-list test, and we do want that one to be
22813 # run without -export-dynamic too.
22814 PYTHON_LIBS=`echo $PYTHON_LIBS | sed -e 's/-Xlinker -export-dynamic//'`
22819 if test "${have_libpython}" != no; then
22821 HAVE_PYTHON_FALSE='#'
22823 HAVE_PYTHON_TRUE='#'
22828 # -------------------- #
22829 # Check for libguile. #
22830 # -------------------- #
22837 # Check whether --with-guile was given.
22838 if test "${with_guile+set}" = set; then :
22839 withval=$with_guile;
22844 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use guile" >&5
22845 $as_echo_n "checking whether to use guile... " >&6; }
22846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_guile" >&5
22847 $as_echo "$with_guile" >&6; }
22849 # Extract the first word of "pkg-config", so it can be a program name with args.
22850 set dummy pkg-config; ac_word=$2
22851 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22852 $as_echo_n "checking for $ac_word... " >&6; }
22853 if ${ac_cv_path_pkg_config_prog_path+:} false; then :
22854 $as_echo_n "(cached) " >&6
22856 case $pkg_config_prog_path in
22858 ac_cv_path_pkg_config_prog_path="$pkg_config_prog_path" # Let the user override the test with a path.
22861 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22862 for as_dir in $PATH
22865 test -z "$as_dir" && as_dir=.
22866 for ac_exec_ext in '' $ac_executable_extensions; do
22867 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22868 ac_cv_path_pkg_config_prog_path="$as_dir/$ac_word$ac_exec_ext"
22869 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22876 test -z "$ac_cv_path_pkg_config_prog_path" && ac_cv_path_pkg_config_prog_path="missing"
22880 pkg_config_prog_path=$ac_cv_path_pkg_config_prog_path
22881 if test -n "$pkg_config_prog_path"; then
22882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pkg_config_prog_path" >&5
22883 $as_echo "$pkg_config_prog_path" >&6; }
22885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22886 $as_echo "no" >&6; }
22891 try_guile_versions="guile-3.0 guile-2.2 guile-2.0"
22893 case "${with_guile}" in
22895 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: guile support disabled; some features will be unavailable." >&5
22896 $as_echo "$as_me: WARNING: guile support disabled; some features will be unavailable." >&2;}
22899 if test "${pkg_config_prog_path}" = "missing"; then
22900 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: pkg-config not found, guile support disabled" >&5
22901 $as_echo "$as_me: WARNING: pkg-config not found, guile support disabled" >&2;}
22904 pkg_config=${pkg_config_prog_path}
22905 guile_version_list=${try_guile_versions}
22908 found_usable_guile=checking
22909 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for usable guile from ${pkg_config}" >&5
22910 $as_echo_n "checking for usable guile from ${pkg_config}... " >&6; }
22911 for guile_version in ${guile_version_list}; do
22912 ${pkg_config} --exists ${guile_version} 2>/dev/null
22913 if test $? != 0; then
22916 new_CPPFLAGS=`${pkg_config} --cflags ${guile_version}`
22917 if test $? != 0; then
22918 as_fn_error $? "failure running pkg-config --cflags ${guile_version}" "$LINENO" 5
22920 new_LIBS=`${pkg_config} --libs ${guile_version}`
22921 if test $? != 0; then
22922 as_fn_error $? "failure running pkg-config --libs ${guile_version}" "$LINENO" 5
22924 found_usable_guile=${guile_version}
22927 if test "${found_usable_guile}" = "checking"; then
22928 if test "${flag_errors}" = "yes"; then
22929 as_fn_error $? "unable to find usable guile version from \"${guile_version_list}\"" "$LINENO" 5
22931 found_usable_guile=no
22934 if test "${found_usable_guile}" != no; then
22935 save_CPPFLAGS=$CPPFLAGS
22937 CPPFLAGS="$CPPFLAGS $new_CPPFLAGS"
22938 LIBS="$LIBS $new_LIBS"
22939 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22940 /* end confdefs.h. */
22941 #include "libguile.h"
22950 if ac_fn_c_try_link "$LINENO"; then :
22952 GUILE_CPPFLAGS=$new_CPPFLAGS
22953 GUILE_LIBS=$new_LIBS
22955 found_usable_guile=no
22957 rm -f core conftest.err conftest.$ac_objext \
22958 conftest$ac_exeext conftest.$ac_ext
22959 ac_fn_c_check_func "$LINENO" "scm_set_automatic_finalization_enabled" "ac_cv_func_scm_set_automatic_finalization_enabled"
22960 if test "x$ac_cv_func_scm_set_automatic_finalization_enabled" = xyes; then :
22962 $as_echo "#define HAVE_GUILE_MANUAL_FINALIZATION 1" >>confdefs.h
22967 CPPFLAGS=$save_CPPFLAGS
22969 if test "${found_usable_guile}" = no; then
22970 if test "${flag_errors}" = yes; then
22971 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
22972 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
22973 as_fn_error $? "linking guile version ${guile_version} test program failed
22974 See \`config.log' for more details" "$LINENO" 5; }
22978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${found_usable_guile}" >&5
22979 $as_echo "${found_usable_guile}" >&6; }
22984 if test "${pkg_config_prog_path}" = "missing"; then
22985 as_fn_error $? "pkg-config not found" "$LINENO" 5
22988 pkg_config=${pkg_config_prog_path}
22989 guile_version_list=${try_guile_versions}
22992 found_usable_guile=checking
22993 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for usable guile from ${pkg_config}" >&5
22994 $as_echo_n "checking for usable guile from ${pkg_config}... " >&6; }
22995 for guile_version in ${guile_version_list}; do
22996 ${pkg_config} --exists ${guile_version} 2>/dev/null
22997 if test $? != 0; then
23000 new_CPPFLAGS=`${pkg_config} --cflags ${guile_version}`
23001 if test $? != 0; then
23002 as_fn_error $? "failure running pkg-config --cflags ${guile_version}" "$LINENO" 5
23004 new_LIBS=`${pkg_config} --libs ${guile_version}`
23005 if test $? != 0; then
23006 as_fn_error $? "failure running pkg-config --libs ${guile_version}" "$LINENO" 5
23008 found_usable_guile=${guile_version}
23011 if test "${found_usable_guile}" = "checking"; then
23012 if test "${flag_errors}" = "yes"; then
23013 as_fn_error $? "unable to find usable guile version from \"${guile_version_list}\"" "$LINENO" 5
23015 found_usable_guile=no
23018 if test "${found_usable_guile}" != no; then
23019 save_CPPFLAGS=$CPPFLAGS
23021 CPPFLAGS="$CPPFLAGS $new_CPPFLAGS"
23022 LIBS="$LIBS $new_LIBS"
23023 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23024 /* end confdefs.h. */
23025 #include "libguile.h"
23034 if ac_fn_c_try_link "$LINENO"; then :
23036 GUILE_CPPFLAGS=$new_CPPFLAGS
23037 GUILE_LIBS=$new_LIBS
23039 found_usable_guile=no
23041 rm -f core conftest.err conftest.$ac_objext \
23042 conftest$ac_exeext conftest.$ac_ext
23043 ac_fn_c_check_func "$LINENO" "scm_set_automatic_finalization_enabled" "ac_cv_func_scm_set_automatic_finalization_enabled"
23044 if test "x$ac_cv_func_scm_set_automatic_finalization_enabled" = xyes; then :
23046 $as_echo "#define HAVE_GUILE_MANUAL_FINALIZATION 1" >>confdefs.h
23051 CPPFLAGS=$save_CPPFLAGS
23053 if test "${found_usable_guile}" = no; then
23054 if test "${flag_errors}" = yes; then
23055 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
23056 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
23057 as_fn_error $? "linking guile version ${guile_version} test program failed
23058 See \`config.log' for more details" "$LINENO" 5; }
23062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${found_usable_guile}" >&5
23063 $as_echo "${found_usable_guile}" >&6; }
23067 if test -x "${with_guile}"; then
23069 pkg_config=${with_guile}
23070 guile_version_list=${try_guile_versions}
23073 found_usable_guile=checking
23074 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for usable guile from ${pkg_config}" >&5
23075 $as_echo_n "checking for usable guile from ${pkg_config}... " >&6; }
23076 for guile_version in ${guile_version_list}; do
23077 ${pkg_config} --exists ${guile_version} 2>/dev/null
23078 if test $? != 0; then
23081 new_CPPFLAGS=`${pkg_config} --cflags ${guile_version}`
23082 if test $? != 0; then
23083 as_fn_error $? "failure running pkg-config --cflags ${guile_version}" "$LINENO" 5
23085 new_LIBS=`${pkg_config} --libs ${guile_version}`
23086 if test $? != 0; then
23087 as_fn_error $? "failure running pkg-config --libs ${guile_version}" "$LINENO" 5
23089 found_usable_guile=${guile_version}
23092 if test "${found_usable_guile}" = "checking"; then
23093 if test "${flag_errors}" = "yes"; then
23094 as_fn_error $? "unable to find usable guile version from \"${guile_version_list}\"" "$LINENO" 5
23096 found_usable_guile=no
23099 if test "${found_usable_guile}" != no; then
23100 save_CPPFLAGS=$CPPFLAGS
23102 CPPFLAGS="$CPPFLAGS $new_CPPFLAGS"
23103 LIBS="$LIBS $new_LIBS"
23104 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23105 /* end confdefs.h. */
23106 #include "libguile.h"
23115 if ac_fn_c_try_link "$LINENO"; then :
23117 GUILE_CPPFLAGS=$new_CPPFLAGS
23118 GUILE_LIBS=$new_LIBS
23120 found_usable_guile=no
23122 rm -f core conftest.err conftest.$ac_objext \
23123 conftest$ac_exeext conftest.$ac_ext
23124 ac_fn_c_check_func "$LINENO" "scm_set_automatic_finalization_enabled" "ac_cv_func_scm_set_automatic_finalization_enabled"
23125 if test "x$ac_cv_func_scm_set_automatic_finalization_enabled" = xyes; then :
23127 $as_echo "#define HAVE_GUILE_MANUAL_FINALIZATION 1" >>confdefs.h
23132 CPPFLAGS=$save_CPPFLAGS
23134 if test "${found_usable_guile}" = no; then
23135 if test "${flag_errors}" = yes; then
23136 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
23137 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
23138 as_fn_error $? "linking guile version ${guile_version} test program failed
23139 See \`config.log' for more details" "$LINENO" 5; }
23143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${found_usable_guile}" >&5
23144 $as_echo "${found_usable_guile}" >&6; }
23147 as_fn_error $? "Guile config program not executable: ${with_guile}" "$LINENO" 5
23151 # Disallow --with=guile="" and --with-guile=foo/bar.
23152 as_fn_error $? "invalid value for --with-guile" "$LINENO" 5
23155 # A space separate list of guile versions to try, in order.
23156 if test "${pkg_config_prog_path}" = "missing"; then
23157 as_fn_error $? "pkg-config not found" "$LINENO" 5
23160 pkg_config=${pkg_config_prog_path}
23161 guile_version_list=${with_guile}
23164 found_usable_guile=checking
23165 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for usable guile from ${pkg_config}" >&5
23166 $as_echo_n "checking for usable guile from ${pkg_config}... " >&6; }
23167 for guile_version in ${guile_version_list}; do
23168 ${pkg_config} --exists ${guile_version} 2>/dev/null
23169 if test $? != 0; then
23172 new_CPPFLAGS=`${pkg_config} --cflags ${guile_version}`
23173 if test $? != 0; then
23174 as_fn_error $? "failure running pkg-config --cflags ${guile_version}" "$LINENO" 5
23176 new_LIBS=`${pkg_config} --libs ${guile_version}`
23177 if test $? != 0; then
23178 as_fn_error $? "failure running pkg-config --libs ${guile_version}" "$LINENO" 5
23180 found_usable_guile=${guile_version}
23183 if test "${found_usable_guile}" = "checking"; then
23184 if test "${flag_errors}" = "yes"; then
23185 as_fn_error $? "unable to find usable guile version from \"${guile_version_list}\"" "$LINENO" 5
23187 found_usable_guile=no
23190 if test "${found_usable_guile}" != no; then
23191 save_CPPFLAGS=$CPPFLAGS
23193 CPPFLAGS="$CPPFLAGS $new_CPPFLAGS"
23194 LIBS="$LIBS $new_LIBS"
23195 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23196 /* end confdefs.h. */
23197 #include "libguile.h"
23206 if ac_fn_c_try_link "$LINENO"; then :
23208 GUILE_CPPFLAGS=$new_CPPFLAGS
23209 GUILE_LIBS=$new_LIBS
23211 found_usable_guile=no
23213 rm -f core conftest.err conftest.$ac_objext \
23214 conftest$ac_exeext conftest.$ac_ext
23215 ac_fn_c_check_func "$LINENO" "scm_set_automatic_finalization_enabled" "ac_cv_func_scm_set_automatic_finalization_enabled"
23216 if test "x$ac_cv_func_scm_set_automatic_finalization_enabled" = xyes; then :
23218 $as_echo "#define HAVE_GUILE_MANUAL_FINALIZATION 1" >>confdefs.h
23223 CPPFLAGS=$save_CPPFLAGS
23225 if test "${found_usable_guile}" = no; then
23226 if test "${flag_errors}" = yes; then
23227 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
23228 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
23229 as_fn_error $? "linking guile version ${guile_version} test program failed
23230 See \`config.log' for more details" "$LINENO" 5; }
23234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${found_usable_guile}" >&5
23235 $as_echo "${found_usable_guile}" >&6; }
23240 if test "${have_libguile}" != no; then
23241 case "${with_guile}" in
23244 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the absolute file name of the 'guild' command" >&5
23245 $as_echo_n "checking for the absolute file name of the 'guild' command... " >&6; }
23246 if ${ac_cv_guild_program_name+:} false; then :
23247 $as_echo_n "(cached) " >&6
23249 ac_cv_guild_program_name="`"${with_guile}" --variable guild "${guile_version}"`"
23251 # In Guile up to 2.0.11 included, guile-2.0.pc would not define
23252 # the 'guild' and 'bindir' variables. In that case, try to guess
23253 # what the program name is, at the risk of getting it wrong if
23254 # Guile was configured with '--program-suffix' or similar.
23255 if test "x$ac_cv_guild_program_name" = "x"; then
23256 guile_exec_prefix="`"${with_guile}" --variable exec_prefix "${guile_version}"`"
23257 ac_cv_guild_program_name="$guile_exec_prefix/bin/guild"
23261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_guild_program_name" >&5
23262 $as_echo "$ac_cv_guild_program_name" >&6; }
23264 if ! "$ac_cv_guild_program_name" --version >&5 2>&5; then
23265 as_fn_error $? "'$ac_cv_guild_program_name' appears to be unusable" "$LINENO" 5
23268 GUILD="$ac_cv_guild_program_name"
23274 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the absolute file name of the 'guild' command" >&5
23275 $as_echo_n "checking for the absolute file name of the 'guild' command... " >&6; }
23276 if ${ac_cv_guild_program_name+:} false; then :
23277 $as_echo_n "(cached) " >&6
23279 ac_cv_guild_program_name="`"${pkg_config_prog_path}" --variable guild "${guile_version}"`"
23281 # In Guile up to 2.0.11 included, guile-2.0.pc would not define
23282 # the 'guild' and 'bindir' variables. In that case, try to guess
23283 # what the program name is, at the risk of getting it wrong if
23284 # Guile was configured with '--program-suffix' or similar.
23285 if test "x$ac_cv_guild_program_name" = "x"; then
23286 guile_exec_prefix="`"${pkg_config_prog_path}" --variable exec_prefix "${guile_version}"`"
23287 ac_cv_guild_program_name="$guile_exec_prefix/bin/guild"
23291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_guild_program_name" >&5
23292 $as_echo "$ac_cv_guild_program_name" >&6; }
23294 if ! "$ac_cv_guild_program_name" --version >&5 2>&5; then
23295 as_fn_error $? "'$ac_cv_guild_program_name' appears to be unusable" "$LINENO" 5
23298 GUILD="$ac_cv_guild_program_name"
23305 if test "$cross_compiling" = no; then
23308 GUILD_TARGET_FLAG="--target=$host"
23314 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether guild supports this host" >&5
23315 $as_echo_n "checking whether guild supports this host... " >&6; }
23316 if ${ac_cv_guild_ok+:} false; then :
23317 $as_echo_n "(cached) " >&6
23319 echo "$ac_cv_guild_program_name compile $GUILD_TARGET_FLAG -o conftest.go $srcdir/guile/lib/gdb/support.scm" >&5
23320 if "$ac_cv_guild_program_name" compile $GUILD_TARGET_FLAG -o conftest.go "$srcdir/guile/lib/gdb/support.scm" >&5 2>&5; then
23326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_guild_ok" >&5
23327 $as_echo "$ac_cv_guild_ok" >&6; }
23329 if test "$ac_cv_guild_ok" = no; then
23331 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: disabling guile support" >&5
23332 $as_echo "$as_me: WARNING: disabling guile support" >&2;}
23336 if test "${have_libguile}" != no; then
23338 $as_echo "#define HAVE_GUILE 1" >>confdefs.h
23340 CONFIG_OBS="$CONFIG_OBS \$(SUBDIR_GUILE_OBS)"
23341 CONFIG_DEPS="$CONFIG_DEPS \$(SUBDIR_GUILE_DEPS)"
23342 CONFIG_SRCS="$CONFIG_SRCS \$(SUBDIR_GUILE_SRCS)"
23343 CONFIG_INSTALL="$CONFIG_INSTALL install-guile"
23344 ENABLE_CFLAGS="$ENABLE_CFLAGS \$(SUBDIR_GUILE_CFLAGS)"
23347 save_CPPFLAGS="$CPPFLAGS"
23349 CPPFLAGS="$GUILE_CPPFLAGS"
23350 for ac_func in scm_new_smob
23352 ac_fn_c_check_func "$LINENO" "scm_new_smob" "ac_cv_func_scm_new_smob"
23353 if test "x$ac_cv_func_scm_new_smob" = xyes; then :
23354 cat >>confdefs.h <<_ACEOF
23355 #define HAVE_SCM_NEW_SMOB 1
23362 CPPFLAGS="$save_CPPFLAGS"
23364 # Even if Guile support is not compiled in, we need to have these files
23366 CONFIG_OBS="$CONFIG_OBS guile/guile.o"
23367 CONFIG_SRCS="$CONFIG_SRCS guile/guile.c"
23371 if test "${have_libguile}" != no; then
23373 HAVE_GUILE_FALSE='#'
23375 HAVE_GUILE_TRUE='#'
23380 # ---------------------------- #
23381 # Check for source highlight. #
23382 # ---------------------------- #
23387 # Check whether --enable-source-highlight was given.
23388 if test "${enable_source_highlight+set}" = set; then :
23389 enableval=$enable_source_highlight;
23394 as_fn_error $? "bad value $enableval for --enable-source-highlight" "$LINENO" 5
23399 enable_source_highlight=auto
23403 if test "${enable_source_highlight}" != "no"; then
23404 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the source-highlight library" >&5
23405 $as_echo_n "checking for the source-highlight library... " >&6; }
23406 if test "${pkg_config_prog_path}" = "missing"; then
23407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no - pkg-config not found" >&5
23408 $as_echo "no - pkg-config not found" >&6; }
23409 if test "${enable_source_highlight}" = "yes"; then
23410 as_fn_error $? "pkg-config was not found in your system" "$LINENO" 5
23413 if ${pkg_config_prog_path} --exists source-highlight; then
23416 as_fn_error $? "source highlight is incompatible with -static-libstdc++; either use --disable-source-highlight or --without-static-standard-libraries" "$LINENO" 5
23420 srchigh_pkg_cflags=`${pkg_config_prog_path} --cflags source-highlight`
23421 srchigh_pkg_libs=`${pkg_config_prog_path} --libs source-highlight`
23423 # Now that we have found a source-highlight library, check if we can use
23424 # it. In particular, we're trying to detect the situation that the
23425 # library is using the new libstdc++ library abi ( see
23426 # https://gcc.gnu.org/onlinedocs/libstdc++/manual/using_dual_abi.html )
23427 # while the compiler being used to compile gdb is using the old abi.
23428 # Such a situation will result in an undefined reference to
23429 # srchilite::SourceHighlight::SourceHighlight(std::string const&).
23430 # This situation can occur for instance when using a source highlight
23431 # library compiled with g++ 7.5.0 while building gdb with g++ 4.8.5.
23433 ac_cpp='$CXXCPP $CPPFLAGS'
23434 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23435 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23436 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
23438 save_CXXFLAGS="$CXXFLAGS"
23440 CXXFLAGS="$CXXFLAGS $srchigh_pkg_cflags"
23441 LIBS="$LIBS $srchigh_pkg_libs"
23442 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23443 /* end confdefs.h. */
23444 #include <srchilite/sourcehighlight.h>
23448 std::string outlang = "esc.outlang";
23449 new srchilite::SourceHighlight (outlang);
23455 if ac_fn_cxx_try_link "$LINENO"; then :
23456 have_usable_source_highlight=yes
23458 have_usable_source_highlight=no
23461 rm -f core conftest.err conftest.$ac_objext \
23462 conftest$ac_exeext conftest.$ac_ext
23463 CXXFLAGS="$save_CXXFLAGS"
23466 ac_cpp='$CPP $CPPFLAGS'
23467 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23468 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23469 ac_compiler_gnu=$ac_cv_c_compiler_gnu
23472 if test "${have_usable_source_highlight}" = "yes"; then
23474 $as_echo "#define HAVE_SOURCE_HIGHLIGHT 1" >>confdefs.h
23476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23477 $as_echo "yes" >&6; }
23478 SRCHIGH_CFLAGS="$srchigh_pkg_cflags"
23479 SRCHIGH_LIBS="$srchigh_pkg_libs"
23481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23482 $as_echo "no" >&6; }
23483 if test "${enable_source_highlight}" = "yes"; then
23484 as_fn_error $? "source-highlight in your system could not be used" "$LINENO" 5
23488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23489 $as_echo "no" >&6; }
23490 if test "${enable_source_highlight}" = "yes"; then
23491 as_fn_error $? "source-highlight was not found in your system" "$LINENO" 5
23499 # ------------------------- #
23500 # Checks for header files. #
23501 # ------------------------- #
23503 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
23504 $as_echo_n "checking for ANSI C header files... " >&6; }
23505 if ${ac_cv_header_stdc+:} false; then :
23506 $as_echo_n "(cached) " >&6
23508 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23509 /* end confdefs.h. */
23510 #include <stdlib.h>
23511 #include <stdarg.h>
23512 #include <string.h>
23523 if ac_fn_c_try_compile "$LINENO"; then :
23524 ac_cv_header_stdc=yes
23526 ac_cv_header_stdc=no
23528 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23530 if test $ac_cv_header_stdc = yes; then
23531 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
23532 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23533 /* end confdefs.h. */
23534 #include <string.h>
23537 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
23538 $EGREP "memchr" >/dev/null 2>&1; then :
23541 ac_cv_header_stdc=no
23547 if test $ac_cv_header_stdc = yes; then
23548 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
23549 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23550 /* end confdefs.h. */
23551 #include <stdlib.h>
23554 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
23555 $EGREP "free" >/dev/null 2>&1; then :
23558 ac_cv_header_stdc=no
23564 if test $ac_cv_header_stdc = yes; then
23565 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
23566 if test "$cross_compiling" = yes; then :
23569 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23570 /* end confdefs.h. */
23572 #include <stdlib.h>
23573 #if ((' ' & 0x0FF) == 0x020)
23574 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
23575 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
23577 # define ISLOWER(c) \
23578 (('a' <= (c) && (c) <= 'i') \
23579 || ('j' <= (c) && (c) <= 'r') \
23580 || ('s' <= (c) && (c) <= 'z'))
23581 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
23584 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
23589 for (i = 0; i < 256; i++)
23590 if (XOR (islower (i), ISLOWER (i))
23591 || toupper (i) != TOUPPER (i))
23596 if ac_fn_c_try_run "$LINENO"; then :
23599 ac_cv_header_stdc=no
23601 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
23602 conftest.$ac_objext conftest.beam conftest.$ac_ext
23607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
23608 $as_echo "$ac_cv_header_stdc" >&6; }
23609 if test $ac_cv_header_stdc = yes; then
23611 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
23615 # elf_hp.h is for HP/UX 64-bit shared library support.
23616 for ac_header in nlist.h machine/reg.h \
23618 sys/file.h sys/filio.h sys/ioctl.h sys/param.h \
23619 sys/procctl.h sys/resource.h sys/ptrace.h ptrace.h \
23620 sys/reg.h sys/debugreg.h \
23623 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
23624 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
23625 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
23626 cat >>confdefs.h <<_ACEOF
23627 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
23634 for ac_header in sys/user.h
23636 ac_fn_c_check_header_compile "$LINENO" "sys/user.h" "ac_cv_header_sys_user_h" "#if HAVE_SYS_PARAM_H
23637 # include <sys/param.h>
23641 if test "x$ac_cv_header_sys_user_h" = xyes; then :
23642 cat >>confdefs.h <<_ACEOF
23643 #define HAVE_SYS_USER_H 1
23651 for ac_header in curses.h cursesX.h ncurses.h ncursesw/ncurses.h ncurses/ncurses.h ncurses/term.h
23653 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
23654 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
23655 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
23656 cat >>confdefs.h <<_ACEOF
23657 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
23664 for ac_header in term.h
23666 ac_fn_c_check_header_compile "$LINENO" "term.h" "ac_cv_header_term_h" "#if HAVE_CURSES_H
23667 # include <curses.h>
23671 if test "x$ac_cv_header_term_h" = xyes; then :
23672 cat >>confdefs.h <<_ACEOF
23673 #define HAVE_TERM_H 1
23681 for ac_header in sys/socket.h
23683 ac_fn_c_check_header_mongrel "$LINENO" "sys/socket.h" "ac_cv_header_sys_socket_h" "$ac_includes_default"
23684 if test "x$ac_cv_header_sys_socket_h" = xyes; then :
23685 cat >>confdefs.h <<_ACEOF
23686 #define HAVE_SYS_SOCKET_H 1
23693 for ac_header in ws2tcpip.h
23695 ac_fn_c_check_header_mongrel "$LINENO" "ws2tcpip.h" "ac_cv_header_ws2tcpip_h" "$ac_includes_default"
23696 if test "x$ac_cv_header_ws2tcpip_h" = xyes; then :
23697 cat >>confdefs.h <<_ACEOF
23698 #define HAVE_WS2TCPIP_H 1
23705 for ac_header in execinfo.h
23707 ac_fn_c_check_header_mongrel "$LINENO" "execinfo.h" "ac_cv_header_execinfo_h" "$ac_includes_default"
23708 if test "x$ac_cv_header_execinfo_h" = xyes; then :
23709 cat >>confdefs.h <<_ACEOF
23710 #define HAVE_EXECINFO_H 1
23718 # ------------------------- #
23719 # Checks for declarations. #
23720 # ------------------------- #
23723 # Check for presence and size of long long.
23724 ac_fn_c_check_type "$LINENO" "long long" "ac_cv_type_long_long" "$ac_includes_default"
23725 if test "x$ac_cv_type_long_long" = xyes; then :
23727 cat >>confdefs.h <<_ACEOF
23728 #define HAVE_LONG_LONG 1
23731 # The cast to long int works around a bug in the HP C Compiler
23732 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23733 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23734 # This bug is HP SR number 8606223364.
23735 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5
23736 $as_echo_n "checking size of long long... " >&6; }
23737 if ${ac_cv_sizeof_long_long+:} false; then :
23738 $as_echo_n "(cached) " >&6
23740 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long long))" "ac_cv_sizeof_long_long" "$ac_includes_default"; then :
23743 if test "$ac_cv_type_long_long" = yes; then
23744 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
23745 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
23746 as_fn_error 77 "cannot compute sizeof (long long)
23747 See \`config.log' for more details" "$LINENO" 5; }
23749 ac_cv_sizeof_long_long=0
23754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&5
23755 $as_echo "$ac_cv_sizeof_long_long" >&6; }
23759 cat >>confdefs.h <<_ACEOF
23760 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
23767 as_ac_Symbol=`$as_echo "ac_cv_have_decl_basename(char *)" | $as_tr_sh`
23768 ac_fn_c_check_decl "$LINENO" "basename(char *)" "$as_ac_Symbol" "$ac_includes_default"
23769 if eval test \"x\$"$as_ac_Symbol"\" = x"yes"; then :
23775 cat >>confdefs.h <<_ACEOF
23776 #define HAVE_DECL_BASENAME $ac_have_decl
23778 ac_fn_c_check_decl "$LINENO" "ffs" "ac_cv_have_decl_ffs" "$ac_includes_default"
23779 if test "x$ac_cv_have_decl_ffs" = xyes; then :
23785 cat >>confdefs.h <<_ACEOF
23786 #define HAVE_DECL_FFS $ac_have_decl
23788 ac_fn_c_check_decl "$LINENO" "asprintf" "ac_cv_have_decl_asprintf" "$ac_includes_default"
23789 if test "x$ac_cv_have_decl_asprintf" = xyes; then :
23795 cat >>confdefs.h <<_ACEOF
23796 #define HAVE_DECL_ASPRINTF $ac_have_decl
23798 ac_fn_c_check_decl "$LINENO" "vasprintf" "ac_cv_have_decl_vasprintf" "$ac_includes_default"
23799 if test "x$ac_cv_have_decl_vasprintf" = xyes; then :
23805 cat >>confdefs.h <<_ACEOF
23806 #define HAVE_DECL_VASPRINTF $ac_have_decl
23808 ac_fn_c_check_decl "$LINENO" "snprintf" "ac_cv_have_decl_snprintf" "$ac_includes_default"
23809 if test "x$ac_cv_have_decl_snprintf" = xyes; then :
23815 cat >>confdefs.h <<_ACEOF
23816 #define HAVE_DECL_SNPRINTF $ac_have_decl
23818 ac_fn_c_check_decl "$LINENO" "vsnprintf" "ac_cv_have_decl_vsnprintf" "$ac_includes_default"
23819 if test "x$ac_cv_have_decl_vsnprintf" = xyes; then :
23825 cat >>confdefs.h <<_ACEOF
23826 #define HAVE_DECL_VSNPRINTF $ac_have_decl
23829 ac_fn_c_check_decl "$LINENO" "strtol" "ac_cv_have_decl_strtol" "$ac_includes_default"
23830 if test "x$ac_cv_have_decl_strtol" = xyes; then :
23836 cat >>confdefs.h <<_ACEOF
23837 #define HAVE_DECL_STRTOL $ac_have_decl
23839 ac_fn_c_check_decl "$LINENO" "strtoul" "ac_cv_have_decl_strtoul" "$ac_includes_default"
23840 if test "x$ac_cv_have_decl_strtoul" = xyes; then :
23846 cat >>confdefs.h <<_ACEOF
23847 #define HAVE_DECL_STRTOUL $ac_have_decl
23849 ac_fn_c_check_decl "$LINENO" "strtoll" "ac_cv_have_decl_strtoll" "$ac_includes_default"
23850 if test "x$ac_cv_have_decl_strtoll" = xyes; then :
23856 cat >>confdefs.h <<_ACEOF
23857 #define HAVE_DECL_STRTOLL $ac_have_decl
23859 ac_fn_c_check_decl "$LINENO" "strtoull" "ac_cv_have_decl_strtoull" "$ac_includes_default"
23860 if test "x$ac_cv_have_decl_strtoull" = xyes; then :
23866 cat >>confdefs.h <<_ACEOF
23867 #define HAVE_DECL_STRTOULL $ac_have_decl
23870 ac_fn_c_check_decl "$LINENO" "strverscmp" "ac_cv_have_decl_strverscmp" "$ac_includes_default"
23871 if test "x$ac_cv_have_decl_strverscmp" = xyes; then :
23877 cat >>confdefs.h <<_ACEOF
23878 #define HAVE_DECL_STRVERSCMP $ac_have_decl
23883 ac_fn_c_check_decl "$LINENO" "snprintf" "ac_cv_have_decl_snprintf" "$ac_includes_default"
23884 if test "x$ac_cv_have_decl_snprintf" = xyes; then :
23890 cat >>confdefs.h <<_ACEOF
23891 #define HAVE_DECL_SNPRINTF $ac_have_decl
23895 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LC_MESSAGES" >&5
23896 $as_echo_n "checking for LC_MESSAGES... " >&6; }
23897 if ${am_cv_val_LC_MESSAGES+:} false; then :
23898 $as_echo_n "(cached) " >&6
23900 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23901 /* end confdefs.h. */
23902 #include <locale.h>
23911 if ac_fn_c_try_link "$LINENO"; then :
23912 am_cv_val_LC_MESSAGES=yes
23914 am_cv_val_LC_MESSAGES=no
23916 rm -f core conftest.err conftest.$ac_objext \
23917 conftest$ac_exeext conftest.$ac_ext
23919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_val_LC_MESSAGES" >&5
23920 $as_echo "$am_cv_val_LC_MESSAGES" >&6; }
23921 if test $am_cv_val_LC_MESSAGES = yes; then
23923 $as_echo "#define HAVE_LC_MESSAGES 1" >>confdefs.h
23928 # ------------------ #
23929 # Checks for types. #
23930 # ------------------ #
23932 ac_fn_c_check_type "$LINENO" "socklen_t" "ac_cv_type_socklen_t" "#include <sys/types.h>
23933 #if HAVE_SYS_SOCKET_H
23934 # include <sys/socket.h>
23935 #elif HAVE_WS2TCPIP_H
23936 # include <ws2tcpip.h>
23940 if test "x$ac_cv_type_socklen_t" = xyes; then :
23942 cat >>confdefs.h <<_ACEOF
23943 #define HAVE_SOCKLEN_T 1
23950 # ------------------------------------- #
23951 # Checks for compiler characteristics. #
23952 # ------------------------------------- #
23954 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
23955 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
23956 if ${ac_cv_c_const+:} false; then :
23957 $as_echo_n "(cached) " >&6
23959 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23960 /* end confdefs.h. */
23966 #ifndef __cplusplus
23967 /* Ultrix mips cc rejects this sort of thing. */
23968 typedef int charset[2];
23969 const charset cs = { 0, 0 };
23970 /* SunOS 4.1.1 cc rejects this. */
23971 char const *const *pcpcc;
23973 /* NEC SVR4.0.2 mips cc rejects this. */
23974 struct point {int x, y;};
23975 static struct point const zero = {0,0};
23976 /* AIX XL C 1.02.0.0 rejects this.
23977 It does not let you subtract one const X* pointer from another in
23978 an arm of an if-expression whose if-part is not a constant
23980 const char *g = "string";
23981 pcpcc = &g + (g ? g-g : 0);
23982 /* HPUX 7.0 cc rejects these. */
23984 ppc = (char**) pcpcc;
23985 pcpcc = (char const *const *) ppc;
23986 { /* SCO 3.2v4 cc rejects this sort of thing. */
23989 char const *s = 0 ? (char *) 0 : (char const *) 0;
23994 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
23995 int x[] = {25, 17};
23996 const int *foo = &x[0];
23999 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
24000 typedef const int *iptr;
24004 { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
24005 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
24006 struct s { int j; const int *ap[3]; } bx;
24007 struct s *b = &bx; b->j = 5;
24009 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
24010 const int foo = 10;
24011 if (!foo) return 0;
24013 return !cs[0] && !zero.x;
24020 if ac_fn_c_try_compile "$LINENO"; then :
24025 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
24028 $as_echo "$ac_cv_c_const" >&6; }
24029 if test $ac_cv_c_const = no; then
24031 $as_echo "#define const /**/" >>confdefs.h
24035 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
24036 $as_echo_n "checking for inline... " >&6; }
24037 if ${ac_cv_c_inline+:} false; then :
24038 $as_echo_n "(cached) " >&6
24041 for ac_kw in inline __inline__ __inline; do
24042 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24043 /* end confdefs.h. */
24044 #ifndef __cplusplus
24046 static $ac_kw foo_t static_foo () {return 0; }
24047 $ac_kw foo_t foo () {return 0; }
24051 if ac_fn_c_try_compile "$LINENO"; then :
24052 ac_cv_c_inline=$ac_kw
24054 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24055 test "$ac_cv_c_inline" != no && break
24059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
24060 $as_echo "$ac_cv_c_inline" >&6; }
24062 case $ac_cv_c_inline in
24065 case $ac_cv_c_inline in
24067 *) ac_val=$ac_cv_c_inline;;
24069 cat >>confdefs.h <<_ACEOF
24070 #ifndef __cplusplus
24071 #define inline $ac_val
24077 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
24078 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
24079 if ${ac_cv_c_bigendian+:} false; then :
24080 $as_echo_n "(cached) " >&6
24082 ac_cv_c_bigendian=unknown
24083 # See if we're dealing with a universal compiler.
24084 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24085 /* end confdefs.h. */
24086 #ifndef __APPLE_CC__
24087 not a universal capable compiler
24092 if ac_fn_c_try_compile "$LINENO"; then :
24094 # Check for potential -arch flags. It is not universal unless
24095 # there are at least two -arch flags with different values.
24098 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
24099 if test -n "$ac_prev"; then
24101 i?86 | x86_64 | ppc | ppc64)
24102 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
24105 ac_cv_c_bigendian=universal
24111 elif test "x$ac_word" = "x-arch"; then
24116 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24117 if test $ac_cv_c_bigendian = unknown; then
24118 # See if sys/param.h defines the BYTE_ORDER macro.
24119 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24120 /* end confdefs.h. */
24121 #include <sys/types.h>
24122 #include <sys/param.h>
24127 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
24128 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
24130 bogus endian macros
24137 if ac_fn_c_try_compile "$LINENO"; then :
24138 # It does; now see whether it defined to BIG_ENDIAN or not.
24139 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24140 /* end confdefs.h. */
24141 #include <sys/types.h>
24142 #include <sys/param.h>
24147 #if BYTE_ORDER != BIG_ENDIAN
24155 if ac_fn_c_try_compile "$LINENO"; then :
24156 ac_cv_c_bigendian=yes
24158 ac_cv_c_bigendian=no
24160 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24162 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24164 if test $ac_cv_c_bigendian = unknown; then
24165 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
24166 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24167 /* end confdefs.h. */
24168 #include <limits.h>
24173 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
24174 bogus endian macros
24181 if ac_fn_c_try_compile "$LINENO"; then :
24182 # It does; now see whether it defined to _BIG_ENDIAN or not.
24183 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24184 /* end confdefs.h. */
24185 #include <limits.h>
24190 #ifndef _BIG_ENDIAN
24198 if ac_fn_c_try_compile "$LINENO"; then :
24199 ac_cv_c_bigendian=yes
24201 ac_cv_c_bigendian=no
24203 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24205 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24207 if test $ac_cv_c_bigendian = unknown; then
24208 # Compile a test program.
24209 if test "$cross_compiling" = yes; then :
24210 # Try to guess by grepping values from an object file.
24211 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24212 /* end confdefs.h. */
24213 short int ascii_mm[] =
24214 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
24215 short int ascii_ii[] =
24216 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
24217 int use_ascii (int i) {
24218 return ascii_mm[i] + ascii_ii[i];
24220 short int ebcdic_ii[] =
24221 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
24222 short int ebcdic_mm[] =
24223 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
24224 int use_ebcdic (int i) {
24225 return ebcdic_mm[i] + ebcdic_ii[i];
24232 return use_ascii (foo) == use_ebcdic (foo);
24237 if ac_fn_c_try_compile "$LINENO"; then :
24238 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
24239 ac_cv_c_bigendian=yes
24241 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
24242 if test "$ac_cv_c_bigendian" = unknown; then
24243 ac_cv_c_bigendian=no
24245 # finding both strings is unlikely to happen, but who knows?
24246 ac_cv_c_bigendian=unknown
24250 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24252 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24253 /* end confdefs.h. */
24254 $ac_includes_default
24259 /* Are we little or big endian? From Harbison&Steele. */
24263 char c[sizeof (long int)];
24266 return u.c[sizeof (long int) - 1] == 1;
24272 if ac_fn_c_try_run "$LINENO"; then :
24273 ac_cv_c_bigendian=no
24275 ac_cv_c_bigendian=yes
24277 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24278 conftest.$ac_objext conftest.beam conftest.$ac_ext
24283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
24284 $as_echo "$ac_cv_c_bigendian" >&6; }
24285 case $ac_cv_c_bigendian in #(
24287 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
24293 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
24297 as_fn_error $? "unknown endianness
24298 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
24302 # ------------------------------ #
24303 # Checks for library functions. #
24304 # ------------------------------ #
24306 for ac_func in getuid getgid \
24307 pipe pread pread64 pwrite resize_term \
24309 sigaction sigsetmask socketpair \
24310 ttrace wborder wresize setlocale iconvlist libiconvlist btowc \
24311 setrlimit getrlimit posix_madvise waitpid \
24314 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
24315 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
24316 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
24317 cat >>confdefs.h <<_ACEOF
24318 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
24325 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
24326 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
24327 if ${am_cv_langinfo_codeset+:} false; then :
24328 $as_echo_n "(cached) " >&6
24330 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24331 /* end confdefs.h. */
24332 #include <langinfo.h>
24336 char* cs = nl_langinfo(CODESET);
24341 if ac_fn_c_try_link "$LINENO"; then :
24342 am_cv_langinfo_codeset=yes
24344 am_cv_langinfo_codeset=no
24346 rm -f core conftest.err conftest.$ac_objext \
24347 conftest$ac_exeext conftest.$ac_ext
24350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_langinfo_codeset" >&5
24351 $as_echo "$am_cv_langinfo_codeset" >&6; }
24352 if test $am_cv_langinfo_codeset = yes; then
24354 $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
24358 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
24359 if test "x$ac_cv_type_size_t" = xyes; then :
24363 cat >>confdefs.h <<_ACEOF
24364 #define size_t unsigned int
24372 for ac_header in $ac_header_list
24374 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
24375 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
24377 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
24378 cat >>confdefs.h <<_ACEOF
24379 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
24392 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
24393 if test "x$ac_cv_type_pid_t" = xyes; then :
24397 cat >>confdefs.h <<_ACEOF
24404 # Set the 'development' global.
24405 . $srcdir/../bfd/development.sh
24407 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
24408 $as_echo_n "checking for ANSI C header files... " >&6; }
24409 if ${ac_cv_header_stdc+:} false; then :
24410 $as_echo_n "(cached) " >&6
24412 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24413 /* end confdefs.h. */
24414 #include <stdlib.h>
24415 #include <stdarg.h>
24416 #include <string.h>
24427 if ac_fn_c_try_compile "$LINENO"; then :
24428 ac_cv_header_stdc=yes
24430 ac_cv_header_stdc=no
24432 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24434 if test $ac_cv_header_stdc = yes; then
24435 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
24436 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24437 /* end confdefs.h. */
24438 #include <string.h>
24441 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
24442 $EGREP "memchr" >/dev/null 2>&1; then :
24445 ac_cv_header_stdc=no
24451 if test $ac_cv_header_stdc = yes; then
24452 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
24453 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24454 /* end confdefs.h. */
24455 #include <stdlib.h>
24458 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
24459 $EGREP "free" >/dev/null 2>&1; then :
24462 ac_cv_header_stdc=no
24468 if test $ac_cv_header_stdc = yes; then
24469 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
24470 if test "$cross_compiling" = yes; then :
24473 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24474 /* end confdefs.h. */
24476 #include <stdlib.h>
24477 #if ((' ' & 0x0FF) == 0x020)
24478 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
24479 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
24481 # define ISLOWER(c) \
24482 (('a' <= (c) && (c) <= 'i') \
24483 || ('j' <= (c) && (c) <= 'r') \
24484 || ('s' <= (c) && (c) <= 'z'))
24485 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
24488 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
24493 for (i = 0; i < 256; i++)
24494 if (XOR (islower (i), ISLOWER (i))
24495 || toupper (i) != TOUPPER (i))
24500 if ac_fn_c_try_run "$LINENO"; then :
24503 ac_cv_header_stdc=no
24505 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24506 conftest.$ac_objext conftest.beam conftest.$ac_ext
24511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
24512 $as_echo "$ac_cv_header_stdc" >&6; }
24513 if test $ac_cv_header_stdc = yes; then
24515 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
24519 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
24520 # for constant arguments. Useless!
24521 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
24522 $as_echo_n "checking for working alloca.h... " >&6; }
24523 if ${ac_cv_working_alloca_h+:} false; then :
24524 $as_echo_n "(cached) " >&6
24526 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24527 /* end confdefs.h. */
24528 #include <alloca.h>
24532 char *p = (char *) alloca (2 * sizeof (int));
24538 if ac_fn_c_try_link "$LINENO"; then :
24539 ac_cv_working_alloca_h=yes
24541 ac_cv_working_alloca_h=no
24543 rm -f core conftest.err conftest.$ac_objext \
24544 conftest$ac_exeext conftest.$ac_ext
24546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
24547 $as_echo "$ac_cv_working_alloca_h" >&6; }
24548 if test $ac_cv_working_alloca_h = yes; then
24550 $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
24554 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
24555 $as_echo_n "checking for alloca... " >&6; }
24556 if ${ac_cv_func_alloca_works+:} false; then :
24557 $as_echo_n "(cached) " >&6
24559 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24560 /* end confdefs.h. */
24562 # define alloca __builtin_alloca
24565 # include <malloc.h>
24566 # define alloca _alloca
24568 # ifdef HAVE_ALLOCA_H
24569 # include <alloca.h>
24574 # ifndef alloca /* predefined by HP cc +Olibcalls */
24575 void *alloca (size_t);
24585 char *p = (char *) alloca (1);
24591 if ac_fn_c_try_link "$LINENO"; then :
24592 ac_cv_func_alloca_works=yes
24594 ac_cv_func_alloca_works=no
24596 rm -f core conftest.err conftest.$ac_objext \
24597 conftest$ac_exeext conftest.$ac_ext
24599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
24600 $as_echo "$ac_cv_func_alloca_works" >&6; }
24602 if test $ac_cv_func_alloca_works = yes; then
24604 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
24607 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
24608 # that cause trouble. Some versions do not even contain alloca or
24609 # contain a buggy version. If you still want to use their alloca,
24610 # use ar to extract alloca.o from them instead of compiling alloca.c.
24612 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
24614 $as_echo "#define C_ALLOCA 1" >>confdefs.h
24617 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
24618 $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
24619 if ${ac_cv_os_cray+:} false; then :
24620 $as_echo_n "(cached) " >&6
24622 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24623 /* end confdefs.h. */
24624 #if defined CRAY && ! defined CRAY2
24631 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
24632 $EGREP "webecray" >/dev/null 2>&1; then :
24640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
24641 $as_echo "$ac_cv_os_cray" >&6; }
24642 if test $ac_cv_os_cray = yes; then
24643 for ac_func in _getb67 GETB67 getb67; do
24644 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
24645 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
24646 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
24648 cat >>confdefs.h <<_ACEOF
24649 #define CRAY_STACKSEG_END $ac_func
24658 { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
24659 $as_echo_n "checking stack direction for C alloca... " >&6; }
24660 if ${ac_cv_c_stack_direction+:} false; then :
24661 $as_echo_n "(cached) " >&6
24663 if test "$cross_compiling" = yes; then :
24664 ac_cv_c_stack_direction=0
24666 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24667 /* end confdefs.h. */
24668 $ac_includes_default
24670 find_stack_direction (int *addr, int depth)
24672 int dir, dummy = 0;
24675 *addr = addr < &dummy ? 1 : addr == &dummy ? 0 : -1;
24676 dir = depth ? find_stack_direction (addr, depth - 1) : 0;
24677 return dir + dummy;
24681 main (int argc, char **argv)
24683 return find_stack_direction (0, argc + !argv + 20) < 0;
24686 if ac_fn_c_try_run "$LINENO"; then :
24687 ac_cv_c_stack_direction=1
24689 ac_cv_c_stack_direction=-1
24691 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24692 conftest.$ac_objext conftest.beam conftest.$ac_ext
24696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
24697 $as_echo "$ac_cv_c_stack_direction" >&6; }
24698 cat >>confdefs.h <<_ACEOF
24699 #define STACK_DIRECTION $ac_cv_c_stack_direction
24710 $as_echo "#define USE_WIN32API 1" >>confdefs.h
24712 WIN32APILIBS="-lws2_32"
24717 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
24718 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
24719 if ${am_cv_langinfo_codeset+:} false; then :
24720 $as_echo_n "(cached) " >&6
24722 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24723 /* end confdefs.h. */
24724 #include <langinfo.h>
24728 char* cs = nl_langinfo(CODESET);
24733 if ac_fn_c_try_link "$LINENO"; then :
24734 am_cv_langinfo_codeset=yes
24736 am_cv_langinfo_codeset=no
24738 rm -f core conftest.err conftest.$ac_objext \
24739 conftest$ac_exeext conftest.$ac_ext
24742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_langinfo_codeset" >&5
24743 $as_echo "$am_cv_langinfo_codeset" >&6; }
24744 if test $am_cv_langinfo_codeset = yes; then
24746 $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
24751 for ac_header in linux/perf_event.h locale.h memory.h signal.h sys/resource.h sys/socket.h sys/un.h sys/wait.h thread_db.h wait.h termios.h dlfcn.h linux/elf.h proc_service.h poll.h sys/poll.h sys/select.h
24753 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
24754 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
24755 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
24756 cat >>confdefs.h <<_ACEOF
24757 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
24766 for ac_func in getpagesize
24768 ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
24769 if test "x$ac_cv_func_getpagesize" = xyes; then :
24770 cat >>confdefs.h <<_ACEOF
24771 #define HAVE_GETPAGESIZE 1
24777 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
24778 $as_echo_n "checking for working mmap... " >&6; }
24779 if ${ac_cv_func_mmap_fixed_mapped+:} false; then :
24780 $as_echo_n "(cached) " >&6
24782 if test "$cross_compiling" = yes; then :
24783 ac_cv_func_mmap_fixed_mapped=no
24785 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24786 /* end confdefs.h. */
24787 $ac_includes_default
24788 /* malloc might have been renamed as rpl_malloc. */
24791 /* Thanks to Mike Haertel and Jim Avera for this test.
24792 Here is a matrix of mmap possibilities:
24793 mmap private not fixed
24794 mmap private fixed at somewhere currently unmapped
24795 mmap private fixed at somewhere already mapped
24796 mmap shared not fixed
24797 mmap shared fixed at somewhere currently unmapped
24798 mmap shared fixed at somewhere already mapped
24799 For private mappings, we should verify that changes cannot be read()
24800 back from the file, nor mmap's back from the file at a different
24801 address. (There have been systems where private was not correctly
24802 implemented like the infamous i386 svr4.0, and systems where the
24803 VM page cache was not coherent with the file system buffer cache
24804 like early versions of FreeBSD and possibly contemporary NetBSD.)
24805 For shared mappings, we should conversely verify that changes get
24806 propagated back to all the places they're supposed to be.
24808 Grep wants private fixed already mapped.
24809 The main things grep needs to know about mmap are:
24810 * does it exist and is it safe to write into the mmap'd area
24811 * how to use it (BSD variants) */
24814 #include <sys/mman.h>
24816 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
24820 /* This mess was copied from the GNU getpagesize.h. */
24821 #ifndef HAVE_GETPAGESIZE
24822 # ifdef _SC_PAGESIZE
24823 # define getpagesize() sysconf(_SC_PAGESIZE)
24824 # else /* no _SC_PAGESIZE */
24825 # ifdef HAVE_SYS_PARAM_H
24826 # include <sys/param.h>
24827 # ifdef EXEC_PAGESIZE
24828 # define getpagesize() EXEC_PAGESIZE
24829 # else /* no EXEC_PAGESIZE */
24831 # define getpagesize() NBPG * CLSIZE
24834 # endif /* no CLSIZE */
24835 # else /* no NBPG */
24837 # define getpagesize() NBPC
24838 # else /* no NBPC */
24840 # define getpagesize() PAGESIZE
24841 # endif /* PAGESIZE */
24842 # endif /* no NBPC */
24843 # endif /* no NBPG */
24844 # endif /* no EXEC_PAGESIZE */
24845 # else /* no HAVE_SYS_PARAM_H */
24846 # define getpagesize() 8192 /* punt totally */
24847 # endif /* no HAVE_SYS_PARAM_H */
24848 # endif /* no _SC_PAGESIZE */
24850 #endif /* no HAVE_GETPAGESIZE */
24855 char *data, *data2, *data3;
24856 const char *cdata2;
24860 pagesize = getpagesize ();
24862 /* First, make a file with some known garbage in it. */
24863 data = (char *) malloc (pagesize);
24866 for (i = 0; i < pagesize; ++i)
24867 *(data + i) = rand ();
24869 fd = creat ("conftest.mmap", 0600);
24872 if (write (fd, data, pagesize) != pagesize)
24876 /* Next, check that the tail of a page is zero-filled. File must have
24877 non-zero length, otherwise we risk SIGBUS for entire page. */
24878 fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
24882 if (write (fd2, cdata2, 1) != 1)
24884 data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
24885 if (data2 == MAP_FAILED)
24887 for (i = 0; i < pagesize; ++i)
24891 if (munmap (data2, pagesize))
24894 /* Next, try to mmap the file at a fixed address which already has
24895 something else allocated at it. If we can, also make sure that
24896 we see the same garbage. */
24897 fd = open ("conftest.mmap", O_RDWR);
24900 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
24901 MAP_PRIVATE | MAP_FIXED, fd, 0L))
24903 for (i = 0; i < pagesize; ++i)
24904 if (*(data + i) != *(data2 + i))
24907 /* Finally, make sure that changes to the mapped area do not
24908 percolate back to the file as seen by read(). (This is a bug on
24909 some variants of i386 svr4.0.) */
24910 for (i = 0; i < pagesize; ++i)
24911 *(data2 + i) = *(data2 + i) + 1;
24912 data3 = (char *) malloc (pagesize);
24915 if (read (fd, data3, pagesize) != pagesize)
24917 for (i = 0; i < pagesize; ++i)
24918 if (*(data + i) != *(data3 + i))
24924 if ac_fn_c_try_run "$LINENO"; then :
24925 ac_cv_func_mmap_fixed_mapped=yes
24927 ac_cv_func_mmap_fixed_mapped=no
24929 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24930 conftest.$ac_objext conftest.beam conftest.$ac_ext
24934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
24935 $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
24936 if test $ac_cv_func_mmap_fixed_mapped = yes; then
24938 $as_echo "#define HAVE_MMAP 1" >>confdefs.h
24941 rm -f conftest.mmap conftest.txt
24943 for ac_header in vfork.h
24945 ac_fn_c_check_header_mongrel "$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default"
24946 if test "x$ac_cv_header_vfork_h" = xyes; then :
24947 cat >>confdefs.h <<_ACEOF
24948 #define HAVE_VFORK_H 1
24955 for ac_func in fork vfork
24957 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
24958 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
24959 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
24960 cat >>confdefs.h <<_ACEOF
24961 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
24967 if test "x$ac_cv_func_fork" = xyes; then
24968 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
24969 $as_echo_n "checking for working fork... " >&6; }
24970 if ${ac_cv_func_fork_works+:} false; then :
24971 $as_echo_n "(cached) " >&6
24973 if test "$cross_compiling" = yes; then :
24974 ac_cv_func_fork_works=cross
24976 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24977 /* end confdefs.h. */
24978 $ac_includes_default
24983 /* By Ruediger Kuhlmann. */
24984 return fork () < 0;
24990 if ac_fn_c_try_run "$LINENO"; then :
24991 ac_cv_func_fork_works=yes
24993 ac_cv_func_fork_works=no
24995 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24996 conftest.$ac_objext conftest.beam conftest.$ac_ext
25000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
25001 $as_echo "$ac_cv_func_fork_works" >&6; }
25004 ac_cv_func_fork_works=$ac_cv_func_fork
25006 if test "x$ac_cv_func_fork_works" = xcross; then
25008 *-*-amigaos* | *-*-msdosdjgpp*)
25009 # Override, as these systems have only a dummy fork() stub
25010 ac_cv_func_fork_works=no
25013 ac_cv_func_fork_works=yes
25016 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
25017 $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
25019 ac_cv_func_vfork_works=$ac_cv_func_vfork
25020 if test "x$ac_cv_func_vfork" = xyes; then
25021 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
25022 $as_echo_n "checking for working vfork... " >&6; }
25023 if ${ac_cv_func_vfork_works+:} false; then :
25024 $as_echo_n "(cached) " >&6
25026 if test "$cross_compiling" = yes; then :
25027 ac_cv_func_vfork_works=cross
25029 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25030 /* end confdefs.h. */
25031 /* Thanks to Paul Eggert for this test. */
25032 $ac_includes_default
25033 #include <sys/wait.h>
25034 #ifdef HAVE_VFORK_H
25035 # include <vfork.h>
25037 /* On some sparc systems, changes by the child to local and incoming
25038 argument registers are propagated back to the parent. The compiler
25039 is told about this with #include <vfork.h>, but some compilers
25040 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
25041 static variable whose address is put into a register that is
25042 clobbered by the vfork. */
25045 sparc_address_test (int arg)
25047 sparc_address_test (arg) int arg;
25050 static pid_t child;
25068 pid_t parent = getpid ();
25071 sparc_address_test (0);
25076 /* Here is another test for sparc vfork register problems. This
25077 test uses lots of local variables, at least as many local
25078 variables as main has allocated so far including compiler
25079 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
25080 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
25081 reuse the register of parent for one of the local variables,
25082 since it will think that parent can't possibly be used any more
25083 in this routine. Assigning to the local variable will thus
25084 munge parent in the parent process. */
25086 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
25087 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
25088 /* Convince the compiler that p..p7 are live; otherwise, it might
25089 use the same hardware register for all 8 local variables. */
25090 if (p != p1 || p != p2 || p != p3 || p != p4
25091 || p != p5 || p != p6 || p != p7)
25094 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
25095 from child file descriptors. If the child closes a descriptor
25096 before it execs or exits, this munges the parent's descriptor
25097 as well. Test for this by closing stdout in the child. */
25098 _exit(close(fileno(stdout)) != 0);
25103 while (wait(&status) != child)
25106 /* Was there some problem with vforking? */
25109 /* Did the child fail? (This shouldn't happen.) */
25112 /* Did the vfork/compiler bug occur? */
25113 || parent != getpid()
25115 /* Did the file descriptor bug occur? */
25116 || fstat(fileno(stdout), &st) != 0
25121 if ac_fn_c_try_run "$LINENO"; then :
25122 ac_cv_func_vfork_works=yes
25124 ac_cv_func_vfork_works=no
25126 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
25127 conftest.$ac_objext conftest.beam conftest.$ac_ext
25131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
25132 $as_echo "$ac_cv_func_vfork_works" >&6; }
25135 if test "x$ac_cv_func_fork_works" = xcross; then
25136 ac_cv_func_vfork_works=$ac_cv_func_vfork
25137 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
25138 $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
25141 if test "x$ac_cv_func_vfork_works" = xyes; then
25143 $as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
25147 $as_echo "#define vfork fork" >>confdefs.h
25150 if test "x$ac_cv_func_fork_works" = xyes; then
25152 $as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
25156 for ac_func in fdwalk getrlimit pipe pipe2 poll socketpair sigaction \
25157 ptrace64 sbrk setns sigaltstack sigprocmask \
25158 setpgid setpgrp getrusage getauxval sigtimedwait
25160 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
25161 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
25162 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
25163 cat >>confdefs.h <<_ACEOF
25164 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
25171 # This is needed for RHEL 5 and uclibc-ng < 1.0.39.
25172 # These did not define ADDR_NO_RANDOMIZE in sys/personality.h,
25173 # only in linux/personality.h.
25174 ac_fn_c_check_decl "$LINENO" "ADDR_NO_RANDOMIZE" "ac_cv_have_decl_ADDR_NO_RANDOMIZE" "#include <sys/personality.h>
25176 if test "x$ac_cv_have_decl_ADDR_NO_RANDOMIZE" = xyes; then :
25182 cat >>confdefs.h <<_ACEOF
25183 #define HAVE_DECL_ADDR_NO_RANDOMIZE $ac_have_decl
25187 ac_fn_c_check_decl "$LINENO" "strstr" "ac_cv_have_decl_strstr" "$ac_includes_default"
25188 if test "x$ac_cv_have_decl_strstr" = xyes; then :
25194 cat >>confdefs.h <<_ACEOF
25195 #define HAVE_DECL_STRSTR $ac_have_decl
25199 # ----------------------- #
25200 # Checks for structures. #
25201 # ----------------------- #
25203 ac_fn_c_check_member "$LINENO" "struct stat" "st_blocks" "ac_cv_member_struct_stat_st_blocks" "$ac_includes_default"
25204 if test "x$ac_cv_member_struct_stat_st_blocks" = xyes; then :
25206 cat >>confdefs.h <<_ACEOF
25207 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
25212 ac_fn_c_check_member "$LINENO" "struct stat" "st_blksize" "ac_cv_member_struct_stat_st_blksize" "$ac_includes_default"
25213 if test "x$ac_cv_member_struct_stat_st_blksize" = xyes; then :
25215 cat >>confdefs.h <<_ACEOF
25216 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
25223 # On FreeBSD we need libutil for the kinfo_get* functions. On
25224 # GNU/kFreeBSD systems, FreeBSD libutil is renamed to libutil-freebsd.
25225 # Figure out which one to use.
25226 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing kinfo_getfile" >&5
25227 $as_echo_n "checking for library containing kinfo_getfile... " >&6; }
25228 if ${ac_cv_search_kinfo_getfile+:} false; then :
25229 $as_echo_n "(cached) " >&6
25231 ac_func_search_save_LIBS=$LIBS
25232 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25233 /* end confdefs.h. */
25235 /* Override any GCC internal prototype to avoid an error.
25236 Use char because int might match the return type of a GCC
25237 builtin and then its argument prototype would still apply. */
25241 char kinfo_getfile ();
25245 return kinfo_getfile ();
25250 for ac_lib in '' util util-freebsd; do
25251 if test -z "$ac_lib"; then
25252 ac_res="none required"
25255 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
25257 if ac_fn_c_try_link "$LINENO"; then :
25258 ac_cv_search_kinfo_getfile=$ac_res
25260 rm -f core conftest.err conftest.$ac_objext \
25262 if ${ac_cv_search_kinfo_getfile+:} false; then :
25266 if ${ac_cv_search_kinfo_getfile+:} false; then :
25269 ac_cv_search_kinfo_getfile=no
25271 rm conftest.$ac_ext
25272 LIBS=$ac_func_search_save_LIBS
25274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_kinfo_getfile" >&5
25275 $as_echo "$ac_cv_search_kinfo_getfile" >&6; }
25276 ac_res=$ac_cv_search_kinfo_getfile
25277 if test "$ac_res" != no; then :
25278 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
25283 # Define HAVE_KINFO_GETFILE if kinfo_getfile is available.
25284 for ac_func in kinfo_getfile
25286 ac_fn_c_check_func "$LINENO" "kinfo_getfile" "ac_cv_func_kinfo_getfile"
25287 if test "x$ac_cv_func_kinfo_getfile" = xyes; then :
25288 cat >>confdefs.h <<_ACEOF
25289 #define HAVE_KINFO_GETFILE 1
25296 # ----------------------- #
25297 # Check for threading. #
25298 # ----------------------- #
25300 # Check whether --enable-threading was given.
25301 if test "${enable_threading+set}" = set; then :
25302 enableval=$enable_threading; case "$enableval" in
25303 yes) want_threading=yes ;;
25304 no) want_threading=no ;;
25305 *) as_fn_error $? "bad value $enableval for threading" "$LINENO" 5 ;;
25312 # Check for std::thread. This does not work on some platforms, like
25315 ac_cpp='$CXXCPP $CPPFLAGS'
25316 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25317 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25318 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25325 ac_cpp='$CPP $CPPFLAGS'
25326 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25327 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25328 ac_compiler_gnu=$ac_cv_c_compiler_gnu
25332 # We used to check for pthread.h first, but this fails if pthread.h
25333 # requires special compiler flags (e.g. on Tru64 or Sequent).
25334 # It gets checked for in the link test anyway.
25336 # First of all, check if the user has set any of the PTHREAD_LIBS,
25337 # etcetera environment variables, and if threads linking works using
25339 if test "x$PTHREAD_CFLAGS$PTHREAD_LIBS" != "x"; then
25340 ax_pthread_save_CC="$CC"
25341 ax_pthread_save_CFLAGS="$CFLAGS"
25342 ax_pthread_save_LIBS="$LIBS"
25343 if test "x$PTHREAD_CC" != "x"; then :
25346 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
25347 LIBS="$PTHREAD_LIBS $LIBS"
25348 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_join using $CC $PTHREAD_CFLAGS $PTHREAD_LIBS" >&5
25349 $as_echo_n "checking for pthread_join using $CC $PTHREAD_CFLAGS $PTHREAD_LIBS... " >&6; }
25350 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25351 /* end confdefs.h. */
25353 /* Override any GCC internal prototype to avoid an error.
25354 Use char because int might match the return type of a GCC
25355 builtin and then its argument prototype would still apply. */
25359 char pthread_join ();
25363 return pthread_join ();
25368 if ac_fn_c_try_link "$LINENO"; then :
25371 rm -f core conftest.err conftest.$ac_objext \
25372 conftest$ac_exeext conftest.$ac_ext
25373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
25374 $as_echo "$ax_pthread_ok" >&6; }
25375 if test "x$ax_pthread_ok" = "xno"; then
25379 CC="$ax_pthread_save_CC"
25380 CFLAGS="$ax_pthread_save_CFLAGS"
25381 LIBS="$ax_pthread_save_LIBS"
25384 # We must check for the threads library under a number of different
25385 # names; the ordering is very important because some systems
25386 # (e.g. DEC) have both -lpthread and -lpthreads, where one of the
25387 # libraries is broken (non-POSIX).
25389 # Create a list of thread flags to try. Items starting with a "-" are
25390 # C compiler flags, and other items are library names, except for "none"
25391 # which indicates that we try without any flags at all, and "pthread-config"
25392 # which is a program returning the flags for the Pth emulation library.
25394 ax_pthread_flags="pthreads none -Kthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config"
25396 # The ordering *is* (sometimes) important. Some notes on the
25397 # individual items follow:
25399 # pthreads: AIX (must check this before -lpthread)
25400 # none: in case threads are in libc; should be tried before -Kthread and
25401 # other compiler flags to prevent continual compiler warnings
25402 # -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h)
25403 # -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads), Tru64
25404 # (Note: HP C rejects this with "bad form for `-t' option")
25405 # -pthreads: Solaris/gcc (Note: HP C also rejects)
25406 # -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it
25407 # doesn't hurt to check since this sometimes defines pthreads and
25408 # -D_REENTRANT too), HP C (must be checked before -lpthread, which
25409 # is present but should not be used directly; and before -mthreads,
25410 # because the compiler interprets this as "-mt" + "-hreads")
25411 # -mthreads: Mingw32/gcc, Lynx/gcc
25412 # pthread: Linux, etcetera
25413 # --thread-safe: KAI C++
25414 # pthread-config: use pthread-config program (for GNU Pth library)
25420 # -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able)
25421 # lthread: LinuxThreads port on FreeBSD (also preferred to -pthread)
25423 ax_pthread_flags="-kthread lthread $ax_pthread_flags"
25428 # From the cc(1) man page: "[-mt] Sets various -D flags to enable
25429 # multi-threading and also sets -lpthread."
25431 ax_pthread_flags="-mt -pthread pthread $ax_pthread_flags"
25436 # IBM z/OS requires a feature-test macro to be defined in order to
25437 # enable POSIX threads at all, so give the user a hint if this is
25438 # not set. (We don't define these ourselves, as they can affect
25439 # other portions of the system API in unpredictable ways.)
25441 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25442 /* end confdefs.h. */
25444 # if !defined(_OPEN_THREADS) && !defined(_UNIX03_THREADS)
25445 AX_PTHREAD_ZOS_MISSING
25449 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
25450 $EGREP "AX_PTHREAD_ZOS_MISSING" >/dev/null 2>&1; then :
25451 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: IBM z/OS requires -D_OPEN_THREADS or -D_UNIX03_THREADS to enable pthreads support." >&5
25452 $as_echo "$as_me: WARNING: IBM z/OS requires -D_OPEN_THREADS or -D_UNIX03_THREADS to enable pthreads support." >&2;}
25460 # On Solaris (at least, for some versions), libc contains stubbed
25461 # (non-functional) versions of the pthreads routines, so link-based
25462 # tests will erroneously succeed. (N.B.: The stubs are missing
25463 # pthread_cleanup_push, or rather a function called by this macro,
25464 # so we could check for that, but who knows whether they'll stub
25465 # that too in a future libc.) So we'll check first for the
25466 # standard Solaris way of linking pthreads (-mt -lpthread).
25468 ax_pthread_flags="-mt,pthread pthread $ax_pthread_flags"
25472 # GCC generally uses -pthread, or -pthreads on some platforms (e.g. SPARC)
25474 if test "x$GCC" = "xyes"; then :
25475 ax_pthread_flags="-pthread -pthreads $ax_pthread_flags"
25478 # The presence of a feature test macro requesting re-entrant function
25479 # definitions is, on some systems, a strong hint that pthreads support is
25480 # correctly enabled
25483 darwin* | hpux* | linux* | osf* | solaris*)
25484 ax_pthread_check_macro="_REENTRANT"
25488 ax_pthread_check_macro="_THREAD_SAFE"
25492 ax_pthread_check_macro="--"
25495 if test "x$ax_pthread_check_macro" = "x--"; then :
25496 ax_pthread_check_cond=0
25498 ax_pthread_check_cond="!defined($ax_pthread_check_macro)"
25501 # Are we compiling with Clang?
25503 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC is Clang" >&5
25504 $as_echo_n "checking whether $CC is Clang... " >&6; }
25505 if ${ax_cv_PTHREAD_CLANG+:} false; then :
25506 $as_echo_n "(cached) " >&6
25508 ax_cv_PTHREAD_CLANG=no
25509 # Note that Autoconf sets GCC=yes for Clang as well as GCC
25510 if test "x$GCC" = "xyes"; then
25511 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25512 /* end confdefs.h. */
25513 /* Note: Clang 2.7 lacks __clang_[a-z]+__ */
25514 # if defined(__clang__) && defined(__llvm__)
25515 AX_PTHREAD_CC_IS_CLANG
25519 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
25520 $EGREP "AX_PTHREAD_CC_IS_CLANG" >/dev/null 2>&1; then :
25521 ax_cv_PTHREAD_CLANG=yes
25528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_CLANG" >&5
25529 $as_echo "$ax_cv_PTHREAD_CLANG" >&6; }
25530 ax_pthread_clang="$ax_cv_PTHREAD_CLANG"
25532 ax_pthread_clang_warning=no
25534 # Clang needs special handling, because older versions handle the -pthread
25535 # option in a rather... idiosyncratic way
25537 if test "x$ax_pthread_clang" = "xyes"; then
25539 # Clang takes -pthread; it has never supported any other flag
25541 # (Note 1: This will need to be revisited if a system that Clang
25542 # supports has POSIX threads in a separate library. This tends not
25543 # to be the way of modern systems, but it's conceivable.)
25545 # (Note 2: On some systems, notably Darwin, -pthread is not needed
25546 # to get POSIX threads support; the API is always present and
25547 # active. We could reasonably leave PTHREAD_CFLAGS empty. But
25548 # -pthread does define _REENTRANT, and while the Darwin headers
25549 # ignore this macro, third-party headers might not.)
25551 PTHREAD_CFLAGS="-pthread"
25556 # However, older versions of Clang make a point of warning the user
25557 # that, in an invocation where only linking and no compilation is
25558 # taking place, the -pthread option has no effect ("argument unused
25559 # during compilation"). They expect -pthread to be passed in only
25560 # when source code is being compiled.
25562 # Problem is, this is at odds with the way Automake and most other
25563 # C build frameworks function, which is that the same flags used in
25564 # compilation (CFLAGS) are also used in linking. Many systems
25565 # supported by AX_PTHREAD require exactly this for POSIX threads
25566 # support, and in fact it is often not straightforward to specify a
25567 # flag that is used only in the compilation phase and not in
25568 # linking. Such a scenario is extremely rare in practice.
25570 # Even though use of the -pthread flag in linking would only print
25571 # a warning, this can be a nuisance for well-run software projects
25572 # that build with -Werror. So if the active version of Clang has
25573 # this misfeature, we search for an option to squash it.
25575 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether Clang needs flag to prevent \"argument unused\" warning when linking with -pthread" >&5
25576 $as_echo_n "checking whether Clang needs flag to prevent \"argument unused\" warning when linking with -pthread... " >&6; }
25577 if ${ax_cv_PTHREAD_CLANG_NO_WARN_FLAG+:} false; then :
25578 $as_echo_n "(cached) " >&6
25580 ax_cv_PTHREAD_CLANG_NO_WARN_FLAG=unknown
25581 # Create an alternate version of $ac_link that compiles and
25582 # links in two steps (.c -> .o, .o -> exe) instead of one
25583 # (.c -> exe), because the warning occurs only in the second
25585 ax_pthread_save_ac_link="$ac_link"
25586 ax_pthread_sed='s/conftest\.\$ac_ext/conftest.$ac_objext/g'
25587 ax_pthread_link_step=`$as_echo "$ac_link" | sed "$ax_pthread_sed"`
25588 ax_pthread_2step_ac_link="($ac_compile) && (echo ==== >&5) && ($ax_pthread_link_step)"
25589 ax_pthread_save_CFLAGS="$CFLAGS"
25590 for ax_pthread_try in '' -Qunused-arguments -Wno-unused-command-line-argument unknown; do
25591 if test "x$ax_pthread_try" = "xunknown"; then :
25594 CFLAGS="-Werror -Wunknown-warning-option $ax_pthread_try -pthread $ax_pthread_save_CFLAGS"
25595 ac_link="$ax_pthread_save_ac_link"
25596 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25597 /* end confdefs.h. */
25598 int main(void){return 0;}
25600 if ac_fn_c_try_link "$LINENO"; then :
25601 ac_link="$ax_pthread_2step_ac_link"
25602 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25603 /* end confdefs.h. */
25604 int main(void){return 0;}
25606 if ac_fn_c_try_link "$LINENO"; then :
25609 rm -f core conftest.err conftest.$ac_objext \
25610 conftest$ac_exeext conftest.$ac_ext
25613 rm -f core conftest.err conftest.$ac_objext \
25614 conftest$ac_exeext conftest.$ac_ext
25616 ac_link="$ax_pthread_save_ac_link"
25617 CFLAGS="$ax_pthread_save_CFLAGS"
25618 if test "x$ax_pthread_try" = "x"; then :
25621 ax_cv_PTHREAD_CLANG_NO_WARN_FLAG="$ax_pthread_try"
25624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_CLANG_NO_WARN_FLAG" >&5
25625 $as_echo "$ax_cv_PTHREAD_CLANG_NO_WARN_FLAG" >&6; }
25627 case "$ax_cv_PTHREAD_CLANG_NO_WARN_FLAG" in
25629 *) PTHREAD_CFLAGS="$ax_cv_PTHREAD_CLANG_NO_WARN_FLAG $PTHREAD_CFLAGS" ;;
25632 fi # $ax_pthread_clang = yes
25634 if test "x$ax_pthread_ok" = "xno"; then
25635 for ax_pthread_try_flag in $ax_pthread_flags; do
25637 case $ax_pthread_try_flag in
25639 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work without any flags" >&5
25640 $as_echo_n "checking whether pthreads work without any flags... " >&6; }
25644 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with -mt -lpthread" >&5
25645 $as_echo_n "checking whether pthreads work with -mt -lpthread... " >&6; }
25646 PTHREAD_CFLAGS="-mt"
25647 PTHREAD_LIBS="-lpthread"
25651 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with $ax_pthread_try_flag" >&5
25652 $as_echo_n "checking whether pthreads work with $ax_pthread_try_flag... " >&6; }
25653 PTHREAD_CFLAGS="$ax_pthread_try_flag"
25657 # Extract the first word of "pthread-config", so it can be a program name with args.
25658 set dummy pthread-config; ac_word=$2
25659 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
25660 $as_echo_n "checking for $ac_word... " >&6; }
25661 if ${ac_cv_prog_ax_pthread_config+:} false; then :
25662 $as_echo_n "(cached) " >&6
25664 if test -n "$ax_pthread_config"; then
25665 ac_cv_prog_ax_pthread_config="$ax_pthread_config" # Let the user override the test.
25667 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25668 for as_dir in $PATH
25671 test -z "$as_dir" && as_dir=.
25672 for ac_exec_ext in '' $ac_executable_extensions; do
25673 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
25674 ac_cv_prog_ax_pthread_config="yes"
25675 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
25682 test -z "$ac_cv_prog_ax_pthread_config" && ac_cv_prog_ax_pthread_config="no"
25685 ax_pthread_config=$ac_cv_prog_ax_pthread_config
25686 if test -n "$ax_pthread_config"; then
25687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_config" >&5
25688 $as_echo "$ax_pthread_config" >&6; }
25690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25691 $as_echo "no" >&6; }
25695 if test "x$ax_pthread_config" = "xno"; then :
25698 PTHREAD_CFLAGS="`pthread-config --cflags`"
25699 PTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`"
25703 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library -l$ax_pthread_try_flag" >&5
25704 $as_echo_n "checking for the pthreads library -l$ax_pthread_try_flag... " >&6; }
25705 PTHREAD_LIBS="-l$ax_pthread_try_flag"
25709 ax_pthread_save_CFLAGS="$CFLAGS"
25710 ax_pthread_save_LIBS="$LIBS"
25711 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
25712 LIBS="$PTHREAD_LIBS $LIBS"
25714 # Check for various functions. We must include pthread.h,
25715 # since some functions may be macros. (On the Sequent, we
25716 # need a special flag -Kthread to make this header compile.)
25717 # We check for pthread_join because it is in -lpthread on IRIX
25718 # while pthread_create is in libc. We check for pthread_attr_init
25719 # due to DEC craziness with -lpthreads. We check for
25720 # pthread_cleanup_push because it is one of the few pthread
25721 # functions on Solaris that doesn't have a non-functional libc stub.
25722 # We try pthread_create on general principles.
25724 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25725 /* end confdefs.h. */
25726 #include <pthread.h>
25727 # if $ax_pthread_check_cond
25728 # error "$ax_pthread_check_macro must be defined"
25730 static void routine(void *a) { a = 0; }
25731 static void *start_routine(void *a) { return a; }
25735 pthread_t th; pthread_attr_t attr;
25736 pthread_create(&th, 0, start_routine, 0);
25737 pthread_join(th, 0);
25738 pthread_attr_init(&attr);
25739 pthread_cleanup_push(routine, 0);
25740 pthread_cleanup_pop(0) /* ; */
25745 if ac_fn_c_try_link "$LINENO"; then :
25748 rm -f core conftest.err conftest.$ac_objext \
25749 conftest$ac_exeext conftest.$ac_ext
25751 CFLAGS="$ax_pthread_save_CFLAGS"
25752 LIBS="$ax_pthread_save_LIBS"
25754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
25755 $as_echo "$ax_pthread_ok" >&6; }
25756 if test "x$ax_pthread_ok" = "xyes"; then :
25765 # Various other checks:
25766 if test "x$ax_pthread_ok" = "xyes"; then
25767 ax_pthread_save_CFLAGS="$CFLAGS"
25768 ax_pthread_save_LIBS="$LIBS"
25769 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
25770 LIBS="$PTHREAD_LIBS $LIBS"
25772 # Detect AIX lossage: JOINABLE attribute is called UNDETACHED.
25773 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for joinable pthread attribute" >&5
25774 $as_echo_n "checking for joinable pthread attribute... " >&6; }
25775 if ${ax_cv_PTHREAD_JOINABLE_ATTR+:} false; then :
25776 $as_echo_n "(cached) " >&6
25778 ax_cv_PTHREAD_JOINABLE_ATTR=unknown
25779 for ax_pthread_attr in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED; do
25780 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25781 /* end confdefs.h. */
25782 #include <pthread.h>
25786 int attr = $ax_pthread_attr; return attr /* ; */
25791 if ac_fn_c_try_link "$LINENO"; then :
25792 ax_cv_PTHREAD_JOINABLE_ATTR=$ax_pthread_attr; break
25794 rm -f core conftest.err conftest.$ac_objext \
25795 conftest$ac_exeext conftest.$ac_ext
25799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_JOINABLE_ATTR" >&5
25800 $as_echo "$ax_cv_PTHREAD_JOINABLE_ATTR" >&6; }
25801 if test "x$ax_cv_PTHREAD_JOINABLE_ATTR" != "xunknown" && \
25802 test "x$ax_cv_PTHREAD_JOINABLE_ATTR" != "xPTHREAD_CREATE_JOINABLE" && \
25803 test "x$ax_pthread_joinable_attr_defined" != "xyes"; then :
25805 cat >>confdefs.h <<_ACEOF
25806 #define PTHREAD_CREATE_JOINABLE $ax_cv_PTHREAD_JOINABLE_ATTR
25809 ax_pthread_joinable_attr_defined=yes
25813 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether more special flags are required for pthreads" >&5
25814 $as_echo_n "checking whether more special flags are required for pthreads... " >&6; }
25815 if ${ax_cv_PTHREAD_SPECIAL_FLAGS+:} false; then :
25816 $as_echo_n "(cached) " >&6
25818 ax_cv_PTHREAD_SPECIAL_FLAGS=no
25821 ax_cv_PTHREAD_SPECIAL_FLAGS="-D_POSIX_PTHREAD_SEMANTICS"
25826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_SPECIAL_FLAGS" >&5
25827 $as_echo "$ax_cv_PTHREAD_SPECIAL_FLAGS" >&6; }
25828 if test "x$ax_cv_PTHREAD_SPECIAL_FLAGS" != "xno" && \
25829 test "x$ax_pthread_special_flags_added" != "xyes"; then :
25830 PTHREAD_CFLAGS="$ax_cv_PTHREAD_SPECIAL_FLAGS $PTHREAD_CFLAGS"
25831 ax_pthread_special_flags_added=yes
25834 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PTHREAD_PRIO_INHERIT" >&5
25835 $as_echo_n "checking for PTHREAD_PRIO_INHERIT... " >&6; }
25836 if ${ax_cv_PTHREAD_PRIO_INHERIT+:} false; then :
25837 $as_echo_n "(cached) " >&6
25839 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25840 /* end confdefs.h. */
25841 #include <pthread.h>
25845 int i = PTHREAD_PRIO_INHERIT;
25850 if ac_fn_c_try_link "$LINENO"; then :
25851 ax_cv_PTHREAD_PRIO_INHERIT=yes
25853 ax_cv_PTHREAD_PRIO_INHERIT=no
25855 rm -f core conftest.err conftest.$ac_objext \
25856 conftest$ac_exeext conftest.$ac_ext
25859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_PRIO_INHERIT" >&5
25860 $as_echo "$ax_cv_PTHREAD_PRIO_INHERIT" >&6; }
25861 if test "x$ax_cv_PTHREAD_PRIO_INHERIT" = "xyes" && \
25862 test "x$ax_pthread_prio_inherit_defined" != "xyes"; then :
25864 $as_echo "#define HAVE_PTHREAD_PRIO_INHERIT 1" >>confdefs.h
25866 ax_pthread_prio_inherit_defined=yes
25870 CFLAGS="$ax_pthread_save_CFLAGS"
25871 LIBS="$ax_pthread_save_LIBS"
25873 # More AIX lossage: compile with *_r variant
25874 if test "x$GCC" != "xyes"; then
25878 x*/c89|x*/c89_128|x*/c99|x*/c99_128|x*/cc|x*/cc128|x*/xlc|x*/xlc_v6|x*/xlc128|x*/xlc128_v6) :
25879 #handle absolute path differently from PATH based program lookup
25882 if as_fn_executable_p ${CC}_r; then :
25883 PTHREAD_CC="${CC}_r"
25886 for ac_prog in ${CC}_r
25888 # Extract the first word of "$ac_prog", so it can be a program name with args.
25889 set dummy $ac_prog; ac_word=$2
25890 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
25891 $as_echo_n "checking for $ac_word... " >&6; }
25892 if ${ac_cv_prog_PTHREAD_CC+:} false; then :
25893 $as_echo_n "(cached) " >&6
25895 if test -n "$PTHREAD_CC"; then
25896 ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test.
25898 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25899 for as_dir in $PATH
25902 test -z "$as_dir" && as_dir=.
25903 for ac_exec_ext in '' $ac_executable_extensions; do
25904 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
25905 ac_cv_prog_PTHREAD_CC="$ac_prog"
25906 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
25915 PTHREAD_CC=$ac_cv_prog_PTHREAD_CC
25916 if test -n "$PTHREAD_CC"; then
25917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PTHREAD_CC" >&5
25918 $as_echo "$PTHREAD_CC" >&6; }
25920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25921 $as_echo "no" >&6; }
25925 test -n "$PTHREAD_CC" && break
25927 test -n "$PTHREAD_CC" || PTHREAD_CC="$CC"
25938 test -n "$PTHREAD_CC" || PTHREAD_CC="$CC"
25944 # Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
25945 if test "x$ax_pthread_ok" = "xyes"; then
25953 ac_cpp='$CXXCPP $CPPFLAGS'
25954 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25955 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25956 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25960 LIBS="$PTHREAD_LIBS $LIBS"
25961 save_CXXFLAGS="$CXXFLAGS"
25962 CXXFLAGS="$PTHREAD_CFLAGS $save_CXXFLAGS"
25963 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for std::thread" >&5
25964 $as_echo_n "checking for std::thread... " >&6; }
25965 if ${gdb_cv_cxx_std_thread+:} false; then :
25966 $as_echo_n "(cached) " >&6
25968 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25969 /* end confdefs.h. */
25971 void callback() { }
25975 std::thread t(callback);
25980 if ac_fn_cxx_try_compile "$LINENO"; then :
25981 gdb_cv_cxx_std_thread=yes
25983 gdb_cv_cxx_std_thread=no
25985 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_cxx_std_thread" >&5
25988 $as_echo "$gdb_cv_cxx_std_thread" >&6; }
25990 if test "$threads" = "yes"; then
25991 # This check must be here, while LIBS includes any necessary
25992 # threading library.
25993 for ac_func in pthread_sigmask pthread_setname_np
25995 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
25996 ac_fn_cxx_check_func "$LINENO" "$ac_func" "$as_ac_var"
25997 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
25998 cat >>confdefs.h <<_ACEOF
25999 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
26007 CXXFLAGS="$save_CXXFLAGS"
26009 if test "$want_threading" = "yes"; then
26010 if test "$gdb_cv_cxx_std_thread" = "yes"; then
26012 $as_echo "#define CXX_STD_THREAD 1" >>confdefs.h
26017 ac_cpp='$CPP $CPPFLAGS'
26018 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26019 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26020 ac_compiler_gnu=$ac_cv_c_compiler_gnu
26023 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sigsetjmp" >&5
26024 $as_echo_n "checking for sigsetjmp... " >&6; }
26025 if ${gdb_cv_func_sigsetjmp+:} false; then :
26026 $as_echo_n "(cached) " >&6
26028 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26029 /* end confdefs.h. */
26030 #include <setjmp.h>
26035 while (! sigsetjmp (env, 1))
26036 siglongjmp (env, 1);
26042 if ac_fn_c_try_compile "$LINENO"; then :
26043 gdb_cv_func_sigsetjmp=yes
26045 gdb_cv_func_sigsetjmp=no
26048 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_func_sigsetjmp" >&5
26052 $as_echo "$gdb_cv_func_sigsetjmp" >&6; }
26053 if test "$gdb_cv_func_sigsetjmp" = "yes"; then
26055 $as_echo "#define HAVE_SIGSETJMP 1" >>confdefs.h
26060 # Check whether --with-intel_pt was given.
26061 if test "${with_intel_pt+set}" = set; then :
26062 withval=$with_intel_pt;
26067 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use intel pt" >&5
26068 $as_echo_n "checking whether to use intel pt... " >&6; }
26069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_intel_pt" >&5
26070 $as_echo "$with_intel_pt" >&6; }
26072 if test "${with_intel_pt}" = no; then
26073 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Intel Processor Trace support disabled; some features may be unavailable." >&5
26074 $as_echo "$as_me: WARNING: Intel Processor Trace support disabled; some features may be unavailable." >&2;}
26077 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26078 /* end confdefs.h. */
26080 #include <linux/perf_event.h>
26081 #ifndef PERF_ATTR_SIZE_VER5
26086 if ac_fn_c_try_cpp "$LINENO"; then :
26091 rm -f conftest.err conftest.i conftest.$ac_ext
26092 if test "$perf_event" != yes; then
26093 if test "$with_intel_pt" = yes; then
26094 as_fn_error $? "linux/perf_event.h missing or too old" "$LINENO" 5
26096 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: linux/perf_event.h missing or too old; some features may be unavailable." >&5
26097 $as_echo "$as_me: WARNING: linux/perf_event.h missing or too old; some features may be unavailable." >&2;}
26111 acl_save_prefix="$prefix"
26112 prefix="$acl_final_prefix"
26113 acl_save_exec_prefix="$exec_prefix"
26114 exec_prefix="$acl_final_exec_prefix"
26116 eval additional_includedir=\"$includedir\"
26117 eval additional_libdir=\"$libdir\"
26119 exec_prefix="$acl_save_exec_prefix"
26120 prefix="$acl_save_prefix"
26123 # Check whether --with-libipt-prefix was given.
26124 if test "${with_libipt_prefix+set}" = set; then :
26125 withval=$with_libipt_prefix;
26126 if test "X$withval" = "Xno"; then
26129 if test "X$withval" = "X"; then
26131 acl_save_prefix="$prefix"
26132 prefix="$acl_final_prefix"
26133 acl_save_exec_prefix="$exec_prefix"
26134 exec_prefix="$acl_final_exec_prefix"
26136 eval additional_includedir=\"$includedir\"
26137 eval additional_libdir=\"$libdir\"
26139 exec_prefix="$acl_save_exec_prefix"
26140 prefix="$acl_save_prefix"
26143 additional_includedir="$withval/include"
26144 additional_libdir="$withval/lib"
26151 # Check whether --with-libipt-type was given.
26152 if test "${with_libipt_type+set}" = set; then :
26153 withval=$with_libipt_type; with_libipt_type=$withval
26155 with_libipt_type=auto
26158 lib_type=`eval echo \$with_libipt_type`
26165 names_already_handled=
26166 names_next_round='ipt '
26167 while test -n "$names_next_round"; do
26168 names_this_round="$names_next_round"
26170 for name in $names_this_round; do
26172 for n in $names_already_handled; do
26173 if test "$n" = "$name"; then
26174 already_handled=yes
26178 if test -z "$already_handled"; then
26179 names_already_handled="$names_already_handled $name"
26180 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
26181 eval value=\"\$HAVE_LIB$uppername\"
26182 if test -n "$value"; then
26183 if test "$value" = yes; then
26184 eval value=\"\$LIB$uppername\"
26185 test -z "$value" || LIBIPT="${LIBIPT}${LIBIPT:+ }$value"
26186 eval value=\"\$LTLIB$uppername\"
26187 test -z "$value" || LTLIBIPT="${LTLIBIPT}${LTLIBIPT:+ }$value"
26196 if test $use_additional = yes; then
26197 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext" && test x$lib_type != xstatic; then
26198 found_dir="$additional_libdir"
26199 found_so="$additional_libdir/lib$name.$shlibext"
26200 if test -f "$additional_libdir/lib$name.la"; then
26201 found_la="$additional_libdir/lib$name.la"
26203 elif test x$lib_type != xshared; then
26204 if test -f "$additional_libdir/lib$name.$libext"; then
26205 found_dir="$additional_libdir"
26206 found_a="$additional_libdir/lib$name.$libext"
26207 if test -f "$additional_libdir/lib$name.la"; then
26208 found_la="$additional_libdir/lib$name.la"
26213 if test "X$found_dir" = "X"; then
26214 for x in $LDFLAGS $LTLIBIPT; do
26216 acl_save_prefix="$prefix"
26217 prefix="$acl_final_prefix"
26218 acl_save_exec_prefix="$exec_prefix"
26219 exec_prefix="$acl_final_exec_prefix"
26221 exec_prefix="$acl_save_exec_prefix"
26222 prefix="$acl_save_prefix"
26226 dir=`echo "X$x" | sed -e 's/^X-L//'`
26227 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext" && test x$lib_type != xstatic; then
26229 found_so="$dir/lib$name.$shlibext"
26230 if test -f "$dir/lib$name.la"; then
26231 found_la="$dir/lib$name.la"
26233 elif test x$lib_type != xshared; then
26234 if test -f "$dir/lib$name.$libext"; then
26236 found_a="$dir/lib$name.$libext"
26237 if test -f "$dir/lib$name.la"; then
26238 found_la="$dir/lib$name.la"
26244 if test "X$found_dir" != "X"; then
26249 if test "X$found_dir" != "X"; then
26250 LTLIBIPT="${LTLIBIPT}${LTLIBIPT:+ }-L$found_dir -l$name"
26251 if test "X$found_so" != "X"; then
26252 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
26253 LIBIPT="${LIBIPT}${LIBIPT:+ }$found_so"
26256 for x in $ltrpathdirs; do
26257 if test "X$x" = "X$found_dir"; then
26262 if test -z "$haveit"; then
26263 ltrpathdirs="$ltrpathdirs $found_dir"
26265 if test "$hardcode_direct" = yes; then
26266 LIBIPT="${LIBIPT}${LIBIPT:+ }$found_so"
26268 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
26269 LIBIPT="${LIBIPT}${LIBIPT:+ }$found_so"
26271 for x in $rpathdirs; do
26272 if test "X$x" = "X$found_dir"; then
26277 if test -z "$haveit"; then
26278 rpathdirs="$rpathdirs $found_dir"
26282 for x in $LDFLAGS $LIBIPT; do
26284 acl_save_prefix="$prefix"
26285 prefix="$acl_final_prefix"
26286 acl_save_exec_prefix="$exec_prefix"
26287 exec_prefix="$acl_final_exec_prefix"
26289 exec_prefix="$acl_save_exec_prefix"
26290 prefix="$acl_save_prefix"
26292 if test "X$x" = "X-L$found_dir"; then
26297 if test -z "$haveit"; then
26298 LIBIPT="${LIBIPT}${LIBIPT:+ }-L$found_dir"
26300 if test "$hardcode_minus_L" != no; then
26301 LIBIPT="${LIBIPT}${LIBIPT:+ }$found_so"
26303 LIBIPT="${LIBIPT}${LIBIPT:+ }-l$name"
26309 if test "X$found_a" != "X"; then
26310 LIBIPT="${LIBIPT}${LIBIPT:+ }$found_a"
26312 LIBIPT="${LIBIPT}${LIBIPT:+ }-L$found_dir -l$name"
26315 additional_includedir=
26316 case "$found_dir" in
26318 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
26319 additional_includedir="$basedir/include"
26322 if test "X$additional_includedir" != "X"; then
26323 if test "X$additional_includedir" != "X/usr/include"; then
26325 if test "X$additional_includedir" = "X/usr/local/include"; then
26326 if test -n "$GCC"; then
26328 linux*) haveit=yes;;
26332 if test -z "$haveit"; then
26333 for x in $CPPFLAGS $INCIPT; do
26335 acl_save_prefix="$prefix"
26336 prefix="$acl_final_prefix"
26337 acl_save_exec_prefix="$exec_prefix"
26338 exec_prefix="$acl_final_exec_prefix"
26340 exec_prefix="$acl_save_exec_prefix"
26341 prefix="$acl_save_prefix"
26343 if test "X$x" = "X-I$additional_includedir"; then
26348 if test -z "$haveit"; then
26349 if test -d "$additional_includedir"; then
26350 INCIPT="${INCIPT}${INCIPT:+ }-I$additional_includedir"
26356 if test -n "$found_la"; then
26357 save_libdir="$libdir"
26358 case "$found_la" in
26359 */* | *\\*) . "$found_la" ;;
26360 *) . "./$found_la" ;;
26362 libdir="$save_libdir"
26363 for dep in $dependency_libs; do
26366 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
26367 if test "X$additional_libdir" != "X/usr/lib"; then
26369 if test "X$additional_libdir" = "X/usr/local/lib"; then
26370 if test -n "$GCC"; then
26372 linux*) haveit=yes;;
26376 if test -z "$haveit"; then
26378 for x in $LDFLAGS $LIBIPT; do
26380 acl_save_prefix="$prefix"
26381 prefix="$acl_final_prefix"
26382 acl_save_exec_prefix="$exec_prefix"
26383 exec_prefix="$acl_final_exec_prefix"
26385 exec_prefix="$acl_save_exec_prefix"
26386 prefix="$acl_save_prefix"
26388 if test "X$x" = "X-L$additional_libdir"; then
26393 if test -z "$haveit"; then
26394 if test -d "$additional_libdir"; then
26395 LIBIPT="${LIBIPT}${LIBIPT:+ }-L$additional_libdir"
26399 for x in $LDFLAGS $LTLIBIPT; do
26401 acl_save_prefix="$prefix"
26402 prefix="$acl_final_prefix"
26403 acl_save_exec_prefix="$exec_prefix"
26404 exec_prefix="$acl_final_exec_prefix"
26406 exec_prefix="$acl_save_exec_prefix"
26407 prefix="$acl_save_prefix"
26409 if test "X$x" = "X-L$additional_libdir"; then
26414 if test -z "$haveit"; then
26415 if test -d "$additional_libdir"; then
26416 LTLIBIPT="${LTLIBIPT}${LTLIBIPT:+ }-L$additional_libdir"
26423 dir=`echo "X$dep" | sed -e 's/^X-R//'`
26424 if test "$enable_rpath" != no; then
26426 for x in $rpathdirs; do
26427 if test "X$x" = "X$dir"; then
26432 if test -z "$haveit"; then
26433 rpathdirs="$rpathdirs $dir"
26436 for x in $ltrpathdirs; do
26437 if test "X$x" = "X$dir"; then
26442 if test -z "$haveit"; then
26443 ltrpathdirs="$ltrpathdirs $dir"
26448 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
26451 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
26454 LIBIPT="${LIBIPT}${LIBIPT:+ }$dep"
26455 LTLIBIPT="${LTLIBIPT}${LTLIBIPT:+ }$dep"
26461 if test "x$lib_type" = "xauto" || test "x$lib_type" = "xshared"; then
26462 LIBIPT="${LIBIPT}${LIBIPT:+ }-l$name"
26463 LTLIBIPT="${LTLIBIPT}${LTLIBIPT:+ }-l$name"
26465 LIBIPT="${LIBIPT}${LIBIPT:+ }-l:lib$name.$libext"
26466 LTLIBIPT="${LTLIBIPT}${LTLIBIPT:+ }-l:lib$name.$libext"
26473 if test "X$rpathdirs" != "X"; then
26474 if test -n "$hardcode_libdir_separator"; then
26476 for found_dir in $rpathdirs; do
26477 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
26479 acl_save_libdir="$libdir"
26481 eval flag=\"$hardcode_libdir_flag_spec\"
26482 libdir="$acl_save_libdir"
26483 LIBIPT="${LIBIPT}${LIBIPT:+ }$flag"
26485 for found_dir in $rpathdirs; do
26486 acl_save_libdir="$libdir"
26487 libdir="$found_dir"
26488 eval flag=\"$hardcode_libdir_flag_spec\"
26489 libdir="$acl_save_libdir"
26490 LIBIPT="${LIBIPT}${LIBIPT:+ }$flag"
26494 if test "X$ltrpathdirs" != "X"; then
26495 for found_dir in $ltrpathdirs; do
26496 LTLIBIPT="${LTLIBIPT}${LTLIBIPT:+ }-R$found_dir"
26501 ac_save_CPPFLAGS="$CPPFLAGS"
26503 for element in $INCIPT; do
26505 for x in $CPPFLAGS; do
26507 acl_save_prefix="$prefix"
26508 prefix="$acl_final_prefix"
26509 acl_save_exec_prefix="$exec_prefix"
26510 exec_prefix="$acl_final_exec_prefix"
26512 exec_prefix="$acl_save_exec_prefix"
26513 prefix="$acl_save_prefix"
26515 if test "X$x" = "X$element"; then
26520 if test -z "$haveit"; then
26521 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
26526 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libipt" >&5
26527 $as_echo_n "checking for libipt... " >&6; }
26528 if ${ac_cv_libipt+:} false; then :
26529 $as_echo_n "(cached) " >&6
26532 ac_save_LIBS="$LIBS"
26533 LIBS="$LIBS $LIBIPT"
26534 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26535 /* end confdefs.h. */
26536 #include "intel-pt.h"
26540 pt_insn_alloc_decoder (0);
26545 if ac_fn_c_try_link "$LINENO"; then :
26550 rm -f core conftest.err conftest.$ac_objext \
26551 conftest$ac_exeext conftest.$ac_ext
26552 LIBS="$ac_save_LIBS"
26555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_libipt" >&5
26556 $as_echo "$ac_cv_libipt" >&6; }
26557 if test "$ac_cv_libipt" = yes; then
26560 $as_echo "#define HAVE_LIBIPT 1" >>confdefs.h
26562 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libipt" >&5
26563 $as_echo_n "checking how to link with libipt... " >&6; }
26564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBIPT" >&5
26565 $as_echo "$LIBIPT" >&6; }
26568 CPPFLAGS="$ac_save_CPPFLAGS"
26578 if test "$HAVE_LIBIPT" != yes; then
26579 if test "$with_intel_pt" = yes; then
26580 as_fn_error $? "libipt is missing or unusable" "$LINENO" 5
26582 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: libipt is missing or unusable; some features may be unavailable." >&5
26583 $as_echo "$as_me: WARNING: libipt is missing or unusable; some features may be unavailable." >&2;}
26587 LIBS="$LIBS $LIBIPT"
26588 for ac_func in pt_insn_event
26590 ac_fn_c_check_func "$LINENO" "pt_insn_event" "ac_cv_func_pt_insn_event"
26591 if test "x$ac_cv_func_pt_insn_event" = xyes; then :
26592 cat >>confdefs.h <<_ACEOF
26593 #define HAVE_PT_INSN_EVENT 1
26599 ac_fn_c_check_member "$LINENO" "struct pt_insn" "enabled" "ac_cv_member_struct_pt_insn_enabled" "#include <intel-pt.h>
26601 if test "x$ac_cv_member_struct_pt_insn_enabled" = xyes; then :
26603 cat >>confdefs.h <<_ACEOF
26604 #define HAVE_STRUCT_PT_INSN_ENABLED 1
26609 ac_fn_c_check_member "$LINENO" "struct pt_insn" "resynced" "ac_cv_member_struct_pt_insn_resynced" "#include <intel-pt.h>
26611 if test "x$ac_cv_member_struct_pt_insn_resynced" = xyes; then :
26613 cat >>confdefs.h <<_ACEOF
26614 #define HAVE_STRUCT_PT_INSN_RESYNCED 1
26624 # Check if the compiler and runtime support printing long longs.
26626 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long support in printf" >&5
26627 $as_echo_n "checking for long long support in printf... " >&6; }
26628 if ${gdb_cv_printf_has_long_long+:} false; then :
26629 $as_echo_n "(cached) " >&6
26631 if test "$cross_compiling" = yes; then :
26632 gdb_cv_printf_has_long_long=no
26634 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26635 /* end confdefs.h. */
26636 $ac_includes_default
26642 l = (l << 16) + 0x0123;
26643 l = (l << 16) + 0x4567;
26644 l = (l << 16) + 0x89ab;
26645 l = (l << 16) + 0xcdef;
26646 sprintf (buf, "0x%016llx", l);
26647 return (strcmp ("0x0123456789abcdef", buf));
26652 if ac_fn_c_try_run "$LINENO"; then :
26653 gdb_cv_printf_has_long_long=yes
26655 gdb_cv_printf_has_long_long=no
26657 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
26658 conftest.$ac_objext conftest.beam conftest.$ac_ext
26662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_printf_has_long_long" >&5
26663 $as_echo "$gdb_cv_printf_has_long_long" >&6; }
26664 if test "$gdb_cv_printf_has_long_long" = yes; then
26666 $as_echo "#define PRINTF_HAS_LONG_LONG 1" >>confdefs.h
26671 $as_echo "#define _STRUCTURED_PROC 1" >>confdefs.h
26673 for ac_header in sys/procfs.h
26675 ac_fn_c_check_header_mongrel "$LINENO" "sys/procfs.h" "ac_cv_header_sys_procfs_h" "$ac_includes_default"
26676 if test "x$ac_cv_header_sys_procfs_h" = xyes; then :
26677 cat >>confdefs.h <<_ACEOF
26678 #define HAVE_SYS_PROCFS_H 1
26685 if test "$ac_cv_header_sys_procfs_h" = yes; then
26687 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gregset_t in sys/procfs.h" >&5
26688 $as_echo_n "checking for gregset_t in sys/procfs.h... " >&6; }
26689 if ${bfd_cv_have_sys_procfs_type_gregset_t+:} false; then :
26690 $as_echo_n "(cached) " >&6
26692 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26693 /* end confdefs.h. */
26696 #include <sys/procfs.h>
26705 if ac_fn_c_try_compile "$LINENO"; then :
26706 bfd_cv_have_sys_procfs_type_gregset_t=yes
26708 bfd_cv_have_sys_procfs_type_gregset_t=no
26711 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26714 if test $bfd_cv_have_sys_procfs_type_gregset_t = yes; then
26716 $as_echo "#define HAVE_GREGSET_T 1" >>confdefs.h
26719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_gregset_t" >&5
26720 $as_echo "$bfd_cv_have_sys_procfs_type_gregset_t" >&6; }
26723 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fpregset_t in sys/procfs.h" >&5
26724 $as_echo_n "checking for fpregset_t in sys/procfs.h... " >&6; }
26725 if ${bfd_cv_have_sys_procfs_type_fpregset_t+:} false; then :
26726 $as_echo_n "(cached) " >&6
26728 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26729 /* end confdefs.h. */
26732 #include <sys/procfs.h>
26741 if ac_fn_c_try_compile "$LINENO"; then :
26742 bfd_cv_have_sys_procfs_type_fpregset_t=yes
26744 bfd_cv_have_sys_procfs_type_fpregset_t=no
26747 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26750 if test $bfd_cv_have_sys_procfs_type_fpregset_t = yes; then
26752 $as_echo "#define HAVE_FPREGSET_T 1" >>confdefs.h
26755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_fpregset_t" >&5
26756 $as_echo "$bfd_cv_have_sys_procfs_type_fpregset_t" >&6; }
26759 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for prgregset_t in sys/procfs.h" >&5
26760 $as_echo_n "checking for prgregset_t in sys/procfs.h... " >&6; }
26761 if ${bfd_cv_have_sys_procfs_type_prgregset_t+:} false; then :
26762 $as_echo_n "(cached) " >&6
26764 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26765 /* end confdefs.h. */
26768 #include <sys/procfs.h>
26777 if ac_fn_c_try_compile "$LINENO"; then :
26778 bfd_cv_have_sys_procfs_type_prgregset_t=yes
26780 bfd_cv_have_sys_procfs_type_prgregset_t=no
26783 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26786 if test $bfd_cv_have_sys_procfs_type_prgregset_t = yes; then
26788 $as_echo "#define HAVE_PRGREGSET_T 1" >>confdefs.h
26791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_prgregset_t" >&5
26792 $as_echo "$bfd_cv_have_sys_procfs_type_prgregset_t" >&6; }
26795 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for prfpregset_t in sys/procfs.h" >&5
26796 $as_echo_n "checking for prfpregset_t in sys/procfs.h... " >&6; }
26797 if ${bfd_cv_have_sys_procfs_type_prfpregset_t+:} false; then :
26798 $as_echo_n "(cached) " >&6
26800 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26801 /* end confdefs.h. */
26804 #include <sys/procfs.h>
26813 if ac_fn_c_try_compile "$LINENO"; then :
26814 bfd_cv_have_sys_procfs_type_prfpregset_t=yes
26816 bfd_cv_have_sys_procfs_type_prfpregset_t=no
26819 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26822 if test $bfd_cv_have_sys_procfs_type_prfpregset_t = yes; then
26824 $as_echo "#define HAVE_PRFPREGSET_T 1" >>confdefs.h
26827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_prfpregset_t" >&5
26828 $as_echo "$bfd_cv_have_sys_procfs_type_prfpregset_t" >&6; }
26831 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for prgregset32_t in sys/procfs.h" >&5
26832 $as_echo_n "checking for prgregset32_t in sys/procfs.h... " >&6; }
26833 if ${bfd_cv_have_sys_procfs_type_prgregset32_t+:} false; then :
26834 $as_echo_n "(cached) " >&6
26836 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26837 /* end confdefs.h. */
26840 #include <sys/procfs.h>
26849 if ac_fn_c_try_compile "$LINENO"; then :
26850 bfd_cv_have_sys_procfs_type_prgregset32_t=yes
26852 bfd_cv_have_sys_procfs_type_prgregset32_t=no
26855 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26858 if test $bfd_cv_have_sys_procfs_type_prgregset32_t = yes; then
26860 $as_echo "#define HAVE_PRGREGSET32_T 1" >>confdefs.h
26863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_prgregset32_t" >&5
26864 $as_echo "$bfd_cv_have_sys_procfs_type_prgregset32_t" >&6; }
26867 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lwpid_t in sys/procfs.h" >&5
26868 $as_echo_n "checking for lwpid_t in sys/procfs.h... " >&6; }
26869 if ${bfd_cv_have_sys_procfs_type_lwpid_t+:} false; then :
26870 $as_echo_n "(cached) " >&6
26872 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26873 /* end confdefs.h. */
26876 #include <sys/procfs.h>
26885 if ac_fn_c_try_compile "$LINENO"; then :
26886 bfd_cv_have_sys_procfs_type_lwpid_t=yes
26888 bfd_cv_have_sys_procfs_type_lwpid_t=no
26891 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26894 if test $bfd_cv_have_sys_procfs_type_lwpid_t = yes; then
26896 $as_echo "#define HAVE_LWPID_T 1" >>confdefs.h
26899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_lwpid_t" >&5
26900 $as_echo "$bfd_cv_have_sys_procfs_type_lwpid_t" >&6; }
26903 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for psaddr_t in sys/procfs.h" >&5
26904 $as_echo_n "checking for psaddr_t in sys/procfs.h... " >&6; }
26905 if ${bfd_cv_have_sys_procfs_type_psaddr_t+:} false; then :
26906 $as_echo_n "(cached) " >&6
26908 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26909 /* end confdefs.h. */
26912 #include <sys/procfs.h>
26921 if ac_fn_c_try_compile "$LINENO"; then :
26922 bfd_cv_have_sys_procfs_type_psaddr_t=yes
26924 bfd_cv_have_sys_procfs_type_psaddr_t=no
26927 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26930 if test $bfd_cv_have_sys_procfs_type_psaddr_t = yes; then
26932 $as_echo "#define HAVE_PSADDR_T 1" >>confdefs.h
26935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_psaddr_t" >&5
26936 $as_echo "$bfd_cv_have_sys_procfs_type_psaddr_t" >&6; }
26939 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for elf_fpregset_t in sys/procfs.h" >&5
26940 $as_echo_n "checking for elf_fpregset_t in sys/procfs.h... " >&6; }
26941 if ${bfd_cv_have_sys_procfs_type_elf_fpregset_t+:} false; then :
26942 $as_echo_n "(cached) " >&6
26944 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26945 /* end confdefs.h. */
26948 #include <sys/procfs.h>
26952 elf_fpregset_t avar
26957 if ac_fn_c_try_compile "$LINENO"; then :
26958 bfd_cv_have_sys_procfs_type_elf_fpregset_t=yes
26960 bfd_cv_have_sys_procfs_type_elf_fpregset_t=no
26963 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26966 if test $bfd_cv_have_sys_procfs_type_elf_fpregset_t = yes; then
26968 $as_echo "#define HAVE_ELF_FPREGSET_T 1" >>confdefs.h
26971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_elf_fpregset_t" >&5
26972 $as_echo "$bfd_cv_have_sys_procfs_type_elf_fpregset_t" >&6; }
26977 # Check the return and argument types of ptrace.
26980 for ac_header in sys/ptrace.h ptrace.h
26982 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
26983 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
26984 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
26985 cat >>confdefs.h <<_ACEOF
26986 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
26994 gdb_ptrace_headers='
26995 #include <sys/types.h>
26996 #if HAVE_SYS_PTRACE_H
26997 # include <sys/ptrace.h>
27000 # include <unistd.h>
27004 # Check return type. Varargs (used on GNU/Linux) conflict with the
27005 # empty argument list, so check for that explicitly.
27006 { $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of ptrace" >&5
27007 $as_echo_n "checking return type of ptrace... " >&6; }
27008 if ${gdb_cv_func_ptrace_ret+:} false; then :
27009 $as_echo_n "(cached) " >&6
27011 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27012 /* end confdefs.h. */
27013 Â $gdb_ptrace_headers
27017 extern long ptrace (enum __ptrace_request, ...);
27023 if ac_fn_c_try_compile "$LINENO"; then :
27024 gdb_cv_func_ptrace_ret='long'
27026 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27027 /* end confdefs.h. */
27028 $gdb_ptrace_headers
27032 extern int ptrace ();
27038 if ac_fn_c_try_compile "$LINENO"; then :
27039 gdb_cv_func_ptrace_ret='int'
27041 gdb_cv_func_ptrace_ret='long'
27044 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27047 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_func_ptrace_ret" >&5
27051 $as_echo "$gdb_cv_func_ptrace_ret" >&6; }
27054 cat >>confdefs.h <<_ACEOF
27055 #define PTRACE_TYPE_RET $gdb_cv_func_ptrace_ret
27059 # Check argument types.
27060 { $as_echo "$as_me:${as_lineno-$LINENO}: checking types of arguments for ptrace" >&5
27061 $as_echo_n "checking types of arguments for ptrace... " >&6; }
27062 if ${gdb_cv_func_ptrace_args+:} false; then :
27063 $as_echo_n "(cached) " >&6
27065 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27066 /* end confdefs.h. */
27067 $gdb_ptrace_headers
27071 extern long ptrace (enum __ptrace_request, ...);
27077 if ac_fn_c_try_compile "$LINENO"; then :
27078 gdb_cv_func_ptrace_args='enum __ptrace_request,int,long,long'
27080 for gdb_arg1 in 'int' 'long'; do
27081 for gdb_arg2 in 'pid_t' 'int' 'long'; do
27082 for gdb_arg3 in 'int *' 'caddr_t' 'int' 'long' 'void *'; do
27083 for gdb_arg4 in 'int' 'long' 'void *'; do
27084 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27085 /* end confdefs.h. */
27086 $gdb_ptrace_headers
27090 extern $gdb_cv_func_ptrace_ret ptrace ($gdb_arg1, $gdb_arg2, $gdb_arg3, $gdb_arg4);
27096 if ac_fn_c_try_compile "$LINENO"; then :
27097 gdb_cv_func_ptrace_args="$gdb_arg1,$gdb_arg2,$gdb_arg3,$gdb_arg4";
27101 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27103 for gdb_arg5 in 'int *' 'int' 'long'; do
27104 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27105 /* end confdefs.h. */
27106 $gdb_ptrace_headers
27110 extern $gdb_cv_func_ptrace_ret ptrace ($gdb_arg1, $gdb_arg2, $gdb_arg3, $gdb_arg4, $gdb_arg5);
27116 if ac_fn_c_try_compile "$LINENO"; then :
27117 gdb_cv_func_ptrace_args="$gdb_arg1,$gdb_arg2,$gdb_arg3,$gdb_arg4,$gdb_arg5";
27121 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27127 # Provide a safe default value.
27128 : ${gdb_cv_func_ptrace_args='int,int,long,long'}
27131 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_func_ptrace_args" >&5
27135 $as_echo "$gdb_cv_func_ptrace_args" >&6; }
27137 ac_save_IFS=$IFS; IFS=','
27138 set dummy `echo "$gdb_cv_func_ptrace_args" | sed 's/\*/\*/g'`
27142 cat >>confdefs.h <<_ACEOF
27143 #define PTRACE_TYPE_ARG1 $1
27147 cat >>confdefs.h <<_ACEOF
27148 #define PTRACE_TYPE_ARG3 $3
27152 cat >>confdefs.h <<_ACEOF
27153 #define PTRACE_TYPE_ARG4 $4
27156 if test -n "$5"; then
27158 cat >>confdefs.h <<_ACEOF
27159 #define PTRACE_TYPE_ARG5 $5
27165 if test "$cross_compiling" = no; then
27166 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether setpgrp takes no argument" >&5
27167 $as_echo_n "checking whether setpgrp takes no argument... " >&6; }
27168 if ${ac_cv_func_setpgrp_void+:} false; then :
27169 $as_echo_n "(cached) " >&6
27171 if test "$cross_compiling" = yes; then :
27172 as_fn_error $? "cannot check setpgrp when cross compiling" "$LINENO" 5
27174 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27175 /* end confdefs.h. */
27176 $ac_includes_default
27180 /* If this system has a BSD-style setpgrp which takes arguments,
27181 setpgrp(1, 1) will fail with ESRCH and return -1, in that case
27182 exit successfully. */
27183 return setpgrp (1,1) != -1;
27188 if ac_fn_c_try_run "$LINENO"; then :
27189 ac_cv_func_setpgrp_void=no
27191 ac_cv_func_setpgrp_void=yes
27193 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
27194 conftest.$ac_objext conftest.beam conftest.$ac_ext
27198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_setpgrp_void" >&5
27199 $as_echo "$ac_cv_func_setpgrp_void" >&6; }
27200 if test $ac_cv_func_setpgrp_void = yes; then
27202 $as_echo "#define SETPGRP_VOID 1" >>confdefs.h
27207 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether setpgrp takes no argument" >&5
27208 $as_echo_n "checking whether setpgrp takes no argument... " >&6; }
27209 if ${ac_cv_func_setpgrp_void+:} false; then :
27210 $as_echo_n "(cached) " >&6
27212 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27213 /* end confdefs.h. */
27214 #include <unistd.h>
27218 if (setpgrp(1,1) == -1)
27227 if ac_fn_c_try_compile "$LINENO"; then :
27228 ac_cv_func_setpgrp_void=no
27230 ac_cv_func_setpgrp_void=yes
27233 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_setpgrp_void" >&5
27237 $as_echo "$ac_cv_func_setpgrp_void" >&6; }
27238 if test "$ac_cv_func_setpgrp_void" = yes; then
27239 $as_echo "#define SETPGRP_VOID 1" >>confdefs.h
27244 # Check if <sys/proc.h> defines `struct thread' with a td_pcb member.
27245 ac_fn_c_check_member "$LINENO" "struct thread" "td_pcb" "ac_cv_member_struct_thread_td_pcb" "#include <sys/param.h>
27246 #include <sys/proc.h>
27249 if test "x$ac_cv_member_struct_thread_td_pcb" = xyes; then :
27251 cat >>confdefs.h <<_ACEOF
27252 #define HAVE_STRUCT_THREAD_TD_PCB 1
27259 # See if <sys/lwp.h> defines `struct lwp`.
27260 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct lwp" >&5
27261 $as_echo_n "checking for struct lwp... " >&6; }
27262 if ${gdb_cv_struct_lwp+:} false; then :
27263 $as_echo_n "(cached) " >&6
27265 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27266 /* end confdefs.h. */
27267 #include <sys/param.h>
27269 #include <sys/lwp.h>
27279 if ac_fn_c_try_compile "$LINENO"; then :
27280 gdb_cv_struct_lwp=yes
27282 gdb_cv_struct_lwp=no
27285 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_struct_lwp" >&5
27289 $as_echo "$gdb_cv_struct_lwp" >&6; }
27290 if test "$gdb_cv_struct_lwp" = yes; then
27292 $as_echo "#define HAVE_STRUCT_LWP 1" >>confdefs.h
27296 # See if <machine/reg.h> degines `struct reg'.
27297 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct reg in machine/reg.h" >&5
27298 $as_echo_n "checking for struct reg in machine/reg.h... " >&6; }
27299 if ${gdb_cv_struct_reg+:} false; then :
27300 $as_echo_n "(cached) " >&6
27302 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27303 /* end confdefs.h. */
27304 #include <sys/types.h>
27305 #include <machine/reg.h>
27315 if ac_fn_c_try_compile "$LINENO"; then :
27316 gdb_cv_struct_reg=yes
27318 gdb_cv_struct_reg=no
27321 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_struct_reg" >&5
27325 $as_echo "$gdb_cv_struct_reg" >&6; }
27326 if test "$gdb_cv_struct_reg" = yes; then
27328 $as_echo "#define HAVE_STRUCT_REG 1" >>confdefs.h
27332 # See if <machine/reg.h> supports the %fs and %gs i386 segment registers.
27333 # Older i386 BSD's don't have the r_fs and r_gs members of `struct reg'.
27334 ac_fn_c_check_member "$LINENO" "struct reg" "r_fs" "ac_cv_member_struct_reg_r_fs" "#include <sys/types.h>
27335 #include <machine/reg.h>
27337 if test "x$ac_cv_member_struct_reg_r_fs" = xyes; then :
27339 cat >>confdefs.h <<_ACEOF
27340 #define HAVE_STRUCT_REG_R_FS 1
27345 ac_fn_c_check_member "$LINENO" "struct reg" "r_gs" "ac_cv_member_struct_reg_r_gs" "#include <sys/types.h>
27346 #include <machine/reg.h>
27348 if test "x$ac_cv_member_struct_reg_r_gs" = xyes; then :
27350 cat >>confdefs.h <<_ACEOF
27351 #define HAVE_STRUCT_REG_R_GS 1
27358 # See if <sys/ptrace.h> provides the PTRACE_GETREGS request.
27359 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PTRACE_GETREGS" >&5
27360 $as_echo_n "checking for PTRACE_GETREGS... " >&6; }
27361 if ${gdb_cv_have_ptrace_getregs+:} false; then :
27362 $as_echo_n "(cached) " >&6
27364 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27365 /* end confdefs.h. */
27366 #include <sys/ptrace.h>
27375 if ac_fn_c_try_compile "$LINENO"; then :
27376 gdb_cv_have_ptrace_getregs=yes
27378 gdb_cv_have_ptrace_getregs=no
27381 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_have_ptrace_getregs" >&5
27386 $as_echo "$gdb_cv_have_ptrace_getregs" >&6; }
27387 if test "$gdb_cv_have_ptrace_getregs" = yes; then
27389 $as_echo "#define HAVE_PTRACE_GETREGS 1" >>confdefs.h
27393 # See if <sys/ptrace.h> provides the PTRACE_GETFPXREGS request.
27394 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PTRACE_GETFPXREGS" >&5
27395 $as_echo_n "checking for PTRACE_GETFPXREGS... " >&6; }
27396 if ${gdb_cv_have_ptrace_getfpxregs+:} false; then :
27397 $as_echo_n "(cached) " >&6
27399 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27400 /* end confdefs.h. */
27401 #include <sys/ptrace.h>
27410 if ac_fn_c_try_compile "$LINENO"; then :
27411 gdb_cv_have_ptrace_getfpxregs=yes
27413 gdb_cv_have_ptrace_getfpxregs=no
27416 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_have_ptrace_getfpxregs" >&5
27421 $as_echo "$gdb_cv_have_ptrace_getfpxregs" >&6; }
27422 if test "$gdb_cv_have_ptrace_getfpxregs" = yes; then
27424 $as_echo "#define HAVE_PTRACE_GETFPXREGS 1" >>confdefs.h
27428 # See if <sys/ptrace.h> provides the PT_GETDBREGS request.
27429 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PT_GETDBREGS" >&5
27430 $as_echo_n "checking for PT_GETDBREGS... " >&6; }
27431 if ${gdb_cv_have_pt_getdbregs+:} false; then :
27432 $as_echo_n "(cached) " >&6
27434 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27435 /* end confdefs.h. */
27436 #include <sys/types.h>
27437 #include <sys/ptrace.h>
27447 if ac_fn_c_try_compile "$LINENO"; then :
27448 gdb_cv_have_pt_getdbregs=yes
27450 gdb_cv_have_pt_getdbregs=no
27453 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_have_pt_getdbregs" >&5
27458 $as_echo "$gdb_cv_have_pt_getdbregs" >&6; }
27459 if test "$gdb_cv_have_pt_getdbregs" = yes; then
27461 $as_echo "#define HAVE_PT_GETDBREGS 1" >>confdefs.h
27465 # See if <sys/ptrace.h> supports LWP names on FreeBSD
27466 # Older FreeBSD versions don't have the pl_tdname member of
27467 # `struct ptrace_lwpinfo'.
27468 ac_fn_c_check_member "$LINENO" "struct ptrace_lwpinfo" "pl_tdname" "ac_cv_member_struct_ptrace_lwpinfo_pl_tdname" "#include <sys/ptrace.h>
27470 if test "x$ac_cv_member_struct_ptrace_lwpinfo_pl_tdname" = xyes; then :
27472 cat >>confdefs.h <<_ACEOF
27473 #define HAVE_STRUCT_PTRACE_LWPINFO_PL_TDNAME 1
27480 # See if <sys/ptrace.h> supports syscall fields on FreeBSD. The
27481 # pl_syscall_code member of `struct ptrace_lwpinfo' was added in
27483 ac_fn_c_check_member "$LINENO" "struct ptrace_lwpinfo" "pl_syscall_code" "ac_cv_member_struct_ptrace_lwpinfo_pl_syscall_code" "#include <sys/ptrace.h>
27485 if test "x$ac_cv_member_struct_ptrace_lwpinfo_pl_syscall_code" = xyes; then :
27487 cat >>confdefs.h <<_ACEOF
27488 #define HAVE_STRUCT_PTRACE_LWPINFO_PL_SYSCALL_CODE 1
27495 # Check if the compiler supports the `long long' type.
27497 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long support in compiler" >&5
27498 $as_echo_n "checking for long long support in compiler... " >&6; }
27499 if ${gdb_cv_c_long_long+:} false; then :
27500 $as_echo_n "(cached) " >&6
27502 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27503 /* end confdefs.h. */
27504 extern long long foo;
27508 switch (foo & 2) { case 0: return 1; }
27513 if ac_fn_c_try_compile "$LINENO"; then :
27514 gdb_cv_c_long_long=yes
27516 gdb_cv_c_long_long=no
27518 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_c_long_long" >&5
27521 $as_echo "$gdb_cv_c_long_long" >&6; }
27522 if test "$gdb_cv_c_long_long" != yes; then
27523 # libdecnumber requires long long.
27524 as_fn_error $? "Compiler must support long long for GDB." "$LINENO" 5
27527 # Check if the compiler and runtime support printing decfloats.
27529 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for decfloat support in printf" >&5
27530 $as_echo_n "checking for decfloat support in printf... " >&6; }
27531 if ${gdb_cv_printf_has_decfloat+:} false; then :
27532 $as_echo_n "(cached) " >&6
27534 if test "$cross_compiling" = yes; then :
27535 gdb_cv_printf_has_decfloat=no
27537 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27538 /* end confdefs.h. */
27539 $ac_includes_default
27544 _Decimal32 d32 = 1.2345df;
27545 _Decimal64 d64 = 1.2345dd;
27546 _Decimal128 d128 = 1.2345dl;
27547 sprintf (buf, "Decimal32: %H\nDecimal64: %D\nDecimal128: %DD", d32, d64, d128);
27548 return (strcmp ("Decimal32: 1.2345\nDecimal64: 1.2345\nDecimal128: 1.2345", buf));
27553 if ac_fn_c_try_run "$LINENO"; then :
27554 gdb_cv_printf_has_decfloat=yes
27556 gdb_cv_printf_has_decfloat=no
27558 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
27559 conftest.$ac_objext conftest.beam conftest.$ac_ext
27563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_printf_has_decfloat" >&5
27564 $as_echo "$gdb_cv_printf_has_decfloat" >&6; }
27565 if test "$gdb_cv_printf_has_decfloat" = yes; then
27567 $as_echo "#define PRINTF_HAS_DECFLOAT 1" >>confdefs.h
27571 # Check if the compiler supports the `long double' type. We can't use
27572 # AC_C_LONG_DOUBLE because that one does additional checks on the
27573 # constants defined in <float.h> that fail on some systems,
27574 # e.g. FreeBSD/i386 4.7 and OpenBSD/i386 3.6.
27576 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long double support in compiler" >&5
27577 $as_echo_n "checking for long double support in compiler... " >&6; }
27578 if ${gdb_cv_c_long_double+:} false; then :
27579 $as_echo_n "(cached) " >&6
27581 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27582 /* end confdefs.h. */
27585 if ac_fn_c_try_compile "$LINENO"; then :
27586 gdb_cv_c_long_double=yes
27588 gdb_cv_c_long_double=no
27590 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_c_long_double" >&5
27593 $as_echo "$gdb_cv_c_long_double" >&6; }
27594 if test "$gdb_cv_c_long_double" = yes; then
27596 $as_echo "#define HAVE_LONG_DOUBLE 1" >>confdefs.h
27600 # Check if the compiler and runtime support printing long doubles.
27602 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long double support in printf" >&5
27603 $as_echo_n "checking for long double support in printf... " >&6; }
27604 if ${gdb_cv_printf_has_long_double+:} false; then :
27605 $as_echo_n "(cached) " >&6
27607 if test "$cross_compiling" = yes; then :
27608 gdb_cv_printf_has_long_double=no
27610 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27611 /* end confdefs.h. */
27612 $ac_includes_default
27617 long double f = 3.141592653;
27618 sprintf (buf, "%Lg", f);
27619 return (strncmp ("3.14159", buf, 7));
27624 if ac_fn_c_try_run "$LINENO"; then :
27625 gdb_cv_printf_has_long_double=yes
27627 gdb_cv_printf_has_long_double=no
27629 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
27630 conftest.$ac_objext conftest.beam conftest.$ac_ext
27634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_printf_has_long_double" >&5
27635 $as_echo "$gdb_cv_printf_has_long_double" >&6; }
27636 if test "$gdb_cv_printf_has_long_double" = yes; then
27638 $as_echo "#define PRINTF_HAS_LONG_DOUBLE 1" >>confdefs.h
27642 # Check if the compiler and runtime support scanning long doubles.
27644 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long double support in scanf" >&5
27645 $as_echo_n "checking for long double support in scanf... " >&6; }
27646 if ${gdb_cv_scanf_has_long_double+:} false; then :
27647 $as_echo_n "(cached) " >&6
27649 if test "$cross_compiling" = yes; then :
27650 gdb_cv_scanf_has_long_double=no
27652 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27653 /* end confdefs.h. */
27658 char *buf = "3.141592653";
27660 sscanf (buf, "%Lg", &f);
27661 return !(f > 3.14159 && f < 3.14160);
27666 if ac_fn_c_try_run "$LINENO"; then :
27667 gdb_cv_scanf_has_long_double=yes
27669 gdb_cv_scanf_has_long_double=no
27671 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
27672 conftest.$ac_objext conftest.beam conftest.$ac_ext
27676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_scanf_has_long_double" >&5
27677 $as_echo "$gdb_cv_scanf_has_long_double" >&6; }
27678 if test "$gdb_cv_scanf_has_long_double" = yes; then
27680 $as_echo "#define SCANF_HAS_LONG_DOUBLE 1" >>confdefs.h
27686 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -bbigtoc option" >&5
27687 $as_echo_n "checking for -bbigtoc option... " >&6; }
27688 if ${gdb_cv_bigtoc+:} false; then :
27689 $as_echo_n "(cached) " >&6
27691 SAVE_LDFLAGS=$LDFLAGS
27694 yes) gdb_cv_bigtoc=-Wl,-bbigtoc ;;
27695 *) gdb_cv_bigtoc=-bbigtoc ;;
27698 LDFLAGS=$LDFLAGS\ $gdb_cv_bigtoc
27699 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27700 /* end confdefs.h. */
27710 if ac_fn_c_try_link "$LINENO"; then :
27716 rm -f core conftest.err conftest.$ac_objext \
27717 conftest$ac_exeext conftest.$ac_ext
27718 LDFLAGS="${SAVE_LDFLAGS}"
27721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_bigtoc" >&5
27722 $as_echo "$gdb_cv_bigtoc" >&6; }
27723 CONFIG_LDFLAGS="${CONFIG_LDFLAGS} ${gdb_cv_bigtoc}"
27727 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the dynamic export flag" >&5
27728 $as_echo_n "checking for the dynamic export flag... " >&6; }
27730 if test "${gdb_native}" = yes; then
27731 # The dynamically loaded libthread_db needs access to symbols in the gdb
27732 # executable. Older GNU ld supports --export-dynamic but --dynamic-list
27733 # may not be supported there.
27734 old_LDFLAGS="$LDFLAGS"
27735 # Older GNU ld supports --export-dynamic but --dynamic-list it does not.
27736 RDYNAMIC="-Wl,--dynamic-list=${srcdir}/proc-service.list"
27737 LDFLAGS="$LDFLAGS $RDYNAMIC"
27738 if test "${have_libpython}" = no; then
27739 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27740 /* end confdefs.h. */
27750 if ac_fn_c_try_link "$LINENO"; then :
27753 rm -f core conftest.err conftest.$ac_objext \
27754 conftest$ac_exeext conftest.$ac_ext
27756 # Workaround http://bugs.python.org/issue4434 where static
27757 # libpythonX.Y.a would get its symbols required for
27758 # pythonX.Y/lib-dynload/*.so modules hidden by -Wl,--dynamic-list.
27759 # Problem does not happen for the recommended libpythonX.Y.so linkage.
27761 # Note the workaround for Python
27762 # http://bugs.python.org/issue10112 earlier has removed
27763 # -export-dynamic from PYTHON_LIBS. That's exactly what we want
27764 # here too, as otherwise it'd make this -Wl,--dynamic-list test
27766 old_CFLAGS="$CFLAGS"
27767 CFLAGS="$CFLAGS $PYTHON_CFLAGS"
27769 LIBS="$LIBS $PYTHON_LIBS"
27770 old_CPPFLAGS="$CPPFLAGS"
27771 CPPFLAGS="$CPPFLAGS $PYTHON_CPPFLAGS"
27772 if test "$cross_compiling" = yes; then :
27775 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27776 /* end confdefs.h. */
27777 #include "Python.h"
27783 err = PyRun_SimpleString ("import ctypes\n");
27785 return err == 0 ? 0 : 1;
27790 if ac_fn_c_try_run "$LINENO"; then :
27793 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
27794 conftest.$ac_objext conftest.beam conftest.$ac_ext
27798 CFLAGS="$old_CFLAGS"
27799 CPPFLAGS="$old_CPPFLAGS"
27801 LDFLAGS="$old_LDFLAGS"
27803 if $dynamic_list; then
27804 found="-Wl,--dynamic-list"
27805 RDYNAMIC='-Wl,--dynamic-list=$(srcdir)/proc-service.list'
27808 RDYNAMIC="-rdynamic"
27811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $found" >&5
27812 $as_echo "$found" >&6; }
27814 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether execinfo.h backtrace is available" >&5
27815 $as_echo_n "checking whether execinfo.h backtrace is available... " >&6; }
27816 if ${gdb_cv_execinfo_backtrace+:} false; then :
27817 $as_echo_n "(cached) " >&6
27819 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27820 /* end confdefs.h. */
27822 #include <execinfo.h>
27830 f = backtrace (b, 2);
27831 backtrace_symbols_fd (b, f, 2);
27837 if ac_fn_c_try_link "$LINENO"; then :
27838 gdb_cv_execinfo_backtrace=yes
27840 gdb_cv_execinfo_backtrace=no
27842 rm -f core conftest.err conftest.$ac_objext \
27843 conftest$ac_exeext conftest.$ac_ext
27845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_execinfo_backtrace" >&5
27846 $as_echo "$gdb_cv_execinfo_backtrace" >&6; }
27847 if test "$gdb_cv_execinfo_backtrace" = yes; then
27849 $as_echo "#define HAVE_EXECINFO_BACKTRACE 1" >>confdefs.h
27854 if test "${build}" = "${host}" -a "${host}" = "${target}" ; then
27857 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for AiX thread debugging library" >&5
27858 $as_echo_n "checking for AiX thread debugging library... " >&6; }
27859 if ${gdb_cv_have_aix_thread_debug+:} false; then :
27860 $as_echo_n "(cached) " >&6
27862 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27863 /* end confdefs.h. */
27864 #include <sys/pthdebug.h>
27868 #ifndef PTHDB_VERSION_3
27876 if ac_fn_c_try_compile "$LINENO"; then :
27877 gdb_cv_have_aix_thread_debug=yes
27879 gdb_cv_have_aix_thread_debug=no
27882 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_have_aix_thread_debug" >&5
27887 $as_echo "$gdb_cv_have_aix_thread_debug" >&6; }
27888 if test "$gdb_cv_have_aix_thread_debug" = yes; then
27889 CONFIG_SRCS="${CONFIG_SRCS} aix-thread.c"
27890 CONFIG_OBS="${CONFIG_OBS} aix-thread.o"
27891 LIBS="$LIBS -lpthdebug"
27893 # Older versions of AIX do not provide the declaration for
27894 # the getthrds function (it appears that it was introduced
27896 ac_fn_c_check_decl "$LINENO" "getthrds" "ac_cv_have_decl_getthrds" "#include <procinfo.h>
27898 if test "x$ac_cv_have_decl_getthrds" = xyes; then :
27904 cat >>confdefs.h <<_ACEOF
27905 #define HAVE_DECL_GETTHRDS $ac_have_decl
27914 if test "x$ac_cv_header_thread_db_h" = "xyes"; then
27915 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether <thread_db.h> has TD_NOTALLOC" >&5
27916 $as_echo_n "checking whether <thread_db.h> has TD_NOTALLOC... " >&6; }
27917 if ${gdb_cv_thread_db_h_has_td_notalloc+:} false; then :
27918 $as_echo_n "(cached) " >&6
27920 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27921 /* end confdefs.h. */
27922 #include <thread_db.h>
27926 int i = TD_NOTALLOC;
27932 if ac_fn_c_try_compile "$LINENO"; then :
27933 gdb_cv_thread_db_h_has_td_notalloc=yes
27935 gdb_cv_thread_db_h_has_td_notalloc=no
27938 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_thread_db_h_has_td_notalloc" >&5
27942 $as_echo "$gdb_cv_thread_db_h_has_td_notalloc" >&6; }
27944 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether <thread_db.h> has TD_VERSION" >&5
27945 $as_echo_n "checking whether <thread_db.h> has TD_VERSION... " >&6; }
27946 if ${gdb_cv_thread_db_h_has_td_version+:} false; then :
27947 $as_echo_n "(cached) " >&6
27949 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27950 /* end confdefs.h. */
27951 #include <thread_db.h>
27955 int i = TD_VERSION;
27961 if ac_fn_c_try_compile "$LINENO"; then :
27962 gdb_cv_thread_db_h_has_td_version=yes
27964 gdb_cv_thread_db_h_has_td_version=no
27967 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_thread_db_h_has_td_version" >&5
27971 $as_echo "$gdb_cv_thread_db_h_has_td_version" >&6; }
27973 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether <thread_db.h> has TD_NOTLS" >&5
27974 $as_echo_n "checking whether <thread_db.h> has TD_NOTLS... " >&6; }
27975 if ${gdb_cv_thread_db_h_has_td_notls+:} false; then :
27976 $as_echo_n "(cached) " >&6
27978 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27979 /* end confdefs.h. */
27980 #include <thread_db.h>
27990 if ac_fn_c_try_compile "$LINENO"; then :
27991 gdb_cv_thread_db_h_has_td_notls=yes
27993 gdb_cv_thread_db_h_has_td_notls=no
27996 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_thread_db_h_has_td_notls" >&5
28000 $as_echo "$gdb_cv_thread_db_h_has_td_notls" >&6; }
28002 if test "x$gdb_cv_thread_db_h_has_td_notalloc" = "xyes"; then
28004 $as_echo "#define THREAD_DB_HAS_TD_NOTALLOC 1" >>confdefs.h
28007 if test "x$gdb_cv_thread_db_h_has_td_version" = "xyes"; then
28009 $as_echo "#define THREAD_DB_HAS_TD_VERSION 1" >>confdefs.h
28012 if test "x$gdb_cv_thread_db_h_has_td_notls" = "xyes"; then
28014 $as_echo "#define THREAD_DB_HAS_TD_NOTLS 1" >>confdefs.h
28027 cat >>confdefs.h <<_ACEOF
28028 #define GDBINIT "$gdbinit"
28033 cat >>confdefs.h <<_ACEOF
28034 #define GDBEARLYINIT ".gdbearlyinit"
28039 # Support for --with-sysroot is a copy of GDB_AC_WITH_DIR,
28040 # except that the argument to --with-sysroot is optional.
28041 # --with-sysroot (or --with-sysroot=yes) sets the default sysroot path.
28042 if test "x$with_sysroot" = xyes; then
28043 with_sysroot="${exec_prefix}/${target_alias}/sys-root"
28046 # Check whether --with-sysroot was given.
28047 if test "${with_sysroot+set}" = set; then :
28048 withval=$with_sysroot; TARGET_SYSTEM_ROOT=$withval
28050 TARGET_SYSTEM_ROOT=
28054 test "x$prefix" = xNONE && prefix="$ac_default_prefix"
28055 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
28056 ac_define_dir=`eval echo $TARGET_SYSTEM_ROOT`
28057 ac_define_dir=`eval echo $ac_define_dir`
28059 cat >>confdefs.h <<_ACEOF
28060 #define TARGET_SYSTEM_ROOT "$ac_define_dir"
28066 if test "x$exec_prefix" = xNONE || test "x$exec_prefix" = 'x${prefix}'; then
28067 if test "x$prefix" = xNONE; then
28068 test_prefix=/usr/local
28070 test_prefix=$prefix
28073 test_prefix=$exec_prefix
28076 case ${ac_define_dir} in
28077 "${test_prefix}"|"${test_prefix}/"*|\
28078 '${exec_prefix}'|'${exec_prefix}/'*)
28083 cat >>confdefs.h <<_ACEOF
28084 #define TARGET_SYSTEM_ROOT_RELOCATABLE $value
28091 # Check whether --with-system-gdbinit was given.
28092 if test "${with_system_gdbinit+set}" = set; then :
28093 withval=$with_system_gdbinit;
28094 SYSTEM_GDBINIT=$withval
28100 test "x$prefix" = xNONE && prefix="$ac_default_prefix"
28101 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
28102 ac_define_dir=`eval echo $SYSTEM_GDBINIT`
28103 ac_define_dir=`eval echo $ac_define_dir`
28105 cat >>confdefs.h <<_ACEOF
28106 #define SYSTEM_GDBINIT "$ac_define_dir"
28112 if test "x$exec_prefix" = xNONE || test "x$exec_prefix" = 'x${prefix}'; then
28113 if test "x$prefix" = xNONE; then
28114 test_prefix=/usr/local
28116 test_prefix=$prefix
28119 test_prefix=$exec_prefix
28122 case ${ac_define_dir} in
28123 "${test_prefix}"|"${test_prefix}/"*|\
28124 '${exec_prefix}'|'${exec_prefix}/'*)
28129 cat >>confdefs.h <<_ACEOF
28130 #define SYSTEM_GDBINIT_RELOCATABLE $value
28137 # Check whether --with-system-gdbinit-dir was given.
28138 if test "${with_system_gdbinit_dir+set}" = set; then :
28139 withval=$with_system_gdbinit_dir;
28140 SYSTEM_GDBINIT_DIR=$withval
28142 SYSTEM_GDBINIT_DIR=
28146 test "x$prefix" = xNONE && prefix="$ac_default_prefix"
28147 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
28148 ac_define_dir=`eval echo $SYSTEM_GDBINIT_DIR`
28149 ac_define_dir=`eval echo $ac_define_dir`
28151 cat >>confdefs.h <<_ACEOF
28152 #define SYSTEM_GDBINIT_DIR "$ac_define_dir"
28158 if test "x$exec_prefix" = xNONE || test "x$exec_prefix" = 'x${prefix}'; then
28159 if test "x$prefix" = xNONE; then
28160 test_prefix=/usr/local
28162 test_prefix=$prefix
28165 test_prefix=$exec_prefix
28168 case ${ac_define_dir} in
28169 "${test_prefix}"|"${test_prefix}/"*|\
28170 '${exec_prefix}'|'${exec_prefix}/'*)
28175 cat >>confdefs.h <<_ACEOF
28176 #define SYSTEM_GDBINIT_DIR_RELOCATABLE $value
28184 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the compiler type" >&5
28185 $as_echo_n "checking the compiler type... " >&6; }
28186 if ${gdb_cv_compiler_type+:} false; then :
28187 $as_echo_n "(cached) " >&6
28189 gdb_cv_compiler_type=unknown
28190 if test "$gdb_cv_compiler_type" = unknown; then
28191 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28192 /* end confdefs.h. */
28198 #if !defined __GNUC__ || defined __clang__
28206 if ac_fn_c_try_compile "$LINENO"; then :
28207 gdb_cv_compiler_type=gcc
28209 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28212 if test "$gdb_cv_compiler_type" = unknown; then
28213 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28214 /* end confdefs.h. */
28228 if ac_fn_c_try_compile "$LINENO"; then :
28229 gdb_cv_compiler_type=clang
28231 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_compiler_type" >&5
28236 $as_echo "$gdb_cv_compiler_type" >&6; }
28238 GDB_COMPILER_TYPE="$gdb_cv_compiler_type"
28241 # Check whether --enable-werror was given.
28242 if test "${enable_werror+set}" = set; then :
28243 enableval=$enable_werror; case "${enableval}" in
28244 yes | y) ERROR_ON_WARNING="yes" ;;
28245 no | n) ERROR_ON_WARNING="no" ;;
28246 *) as_fn_error $? "bad value ${enableval} for --enable-werror" "$LINENO" 5 ;;
28251 # Enable -Werror by default when using gcc. Turn it off for releases.
28252 if test "${GCC}" = yes -a -z "${ERROR_ON_WARNING}" && $development; then
28253 ERROR_ON_WARNING=yes
28257 if test "${ERROR_ON_WARNING}" = yes ; then
28258 WERROR_CFLAGS="-Werror"
28261 # The options we'll try to enable.
28262 build_warnings="-Wall -Wpointer-arith \
28263 -Wno-unused -Wunused-value -Wunused-variable -Wunused-function \
28264 -Wno-switch -Wno-char-subscripts \
28265 -Wempty-body -Wunused-but-set-parameter -Wunused-but-set-variable \
28266 -Wno-sign-compare -Wno-error=maybe-uninitialized \
28267 -Wno-mismatched-tags \
28268 -Wno-error=deprecated-register \
28269 -Wsuggest-override \
28270 -Wimplicit-fallthrough=3 \
28271 -Wduplicated-cond \
28273 -Wdeprecated-copy \
28274 -Wdeprecated-copy-dtor \
28276 -Wmissing-declarations \
28277 -Wstrict-null-sentinel \
28280 # The -Wmissing-prototypes flag will be accepted by GCC, but results
28281 # in a warning being printed about the flag not being valid for C++,
28282 # this is something to do with using ccache, and argument ordering.
28283 if test "$GDB_COMPILER_TYPE" != gcc; then
28284 build_warnings="$build_warnings -Wmissing-prototypes"
28289 # Enable -Wno-format by default when using gcc on mingw since many
28290 # GCC versions complain about %I64.
28291 build_warnings="$build_warnings -Wno-format" ;;
28293 # Solaris 11.4 <python2.7/ceval.h> uses #pragma no_inline that GCC
28294 # doesn't understand.
28295 build_warnings="$build_warnings -Wno-unknown-pragmas"
28296 # Solaris 11 <unistd.h> marks vfork deprecated.
28297 build_warnings="$build_warnings -Wno-deprecated-declarations" ;;
28299 # Note that gcc requires -Wformat for -Wformat-nonliteral to work,
28300 # but there's a special case for this below.
28301 build_warnings="$build_warnings -Wformat-nonliteral" ;;
28304 # Check whether --enable-build-warnings was given.
28305 if test "${enable_build_warnings+set}" = set; then :
28306 enableval=$enable_build_warnings; case "${enableval}" in
28308 no) build_warnings="-w";;
28309 ,*) t=`echo "${enableval}" | sed -e "s/,/ /g"`
28310 build_warnings="${build_warnings} ${t}";;
28311 *,) t=`echo "${enableval}" | sed -e "s/,/ /g"`
28312 build_warnings="${t} ${build_warnings}";;
28313 *) build_warnings=`echo "${enableval}" | sed -e "s/,/ /g"`;;
28315 if test x"$silent" != x"yes" && test x"$build_warnings" != x""; then
28316 echo "Setting compiler warning flags = $build_warnings" 6>&1
28319 # Check whether --enable-gdb-build-warnings was given.
28320 if test "${enable_gdb_build_warnings+set}" = set; then :
28321 enableval=$enable_gdb_build_warnings; case "${enableval}" in
28323 no) build_warnings="-w";;
28324 ,*) t=`echo "${enableval}" | sed -e "s/,/ /g"`
28325 build_warnings="${build_warnings} ${t}";;
28326 *,) t=`echo "${enableval}" | sed -e "s/,/ /g"`
28327 build_warnings="${t} ${build_warnings}";;
28328 *) build_warnings=`echo "${enableval}" | sed -e "s/,/ /g"`;;
28330 if test x"$silent" != x"yes" && test x"$build_warnings" != x""; then
28331 echo "Setting GDB specific compiler warning flags = $build_warnings" 6>&1
28335 # The set of warnings supported by a C++ compiler is not the same as
28336 # of the C compiler.
28338 ac_cpp='$CXXCPP $CPPFLAGS'
28339 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28340 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28341 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
28345 if test "x${build_warnings}" != x -a "x$GCC" = xyes
28347 { $as_echo "$as_me:${as_lineno-$LINENO}: checking compiler warning flags" >&5
28348 $as_echo_n "checking compiler warning flags... " >&6; }
28349 # Separate out the -Werror flag as some files just cannot be
28350 # compiled with it enabled.
28351 for w in ${build_warnings}; do
28352 # GCC does not complain about -Wno-unknown-warning. Invert
28353 # and test -Wunknown-warning instead.
28356 wtest=`echo $w | sed 's/-Wno-/-W/g'` ;;
28357 -Wformat-nonliteral)
28358 # gcc requires -Wformat before -Wformat-nonliteral
28359 # will work, so stick them together.
28368 -Werr*) WERROR_CFLAGS=-Werror ;;
28370 # Check whether GCC accepts it.
28371 saved_CFLAGS="$CFLAGS"
28372 CFLAGS="$CFLAGS -Werror $wtest"
28373 saved_CXXFLAGS="$CXXFLAGS"
28374 CXXFLAGS="$CXXFLAGS -Werror $wtest"
28375 if test "x$w" = "x-Wunused-variable"; then
28376 # Check for https://gcc.gnu.org/bugzilla/show_bug.cgi?id=38958,
28377 # fixed in GCC 4.9. This test is derived from the gdb
28378 # source code that triggered this bug in GCC.
28379 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28380 /* end confdefs.h. */
28381 struct scoped_restore_base {};
28382 struct scoped_restore_tmpl : public scoped_restore_base {
28383 ~scoped_restore_tmpl() {}
28388 const scoped_restore_base &b = scoped_restore_tmpl();
28394 if ac_fn_cxx_try_compile "$LINENO"; then :
28395 WARN_CFLAGS="${WARN_CFLAGS} $w"
28397 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28399 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28400 /* end confdefs.h. */
28410 if ac_fn_cxx_try_compile "$LINENO"; then :
28411 WARN_CFLAGS="${WARN_CFLAGS} $w"
28413 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28415 CFLAGS="$saved_CFLAGS"
28416 CXXFLAGS="$saved_CXXFLAGS"
28419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${WARN_CFLAGS} ${WERROR_CFLAGS}" >&5
28420 $as_echo "${WARN_CFLAGS} ${WERROR_CFLAGS}" >&6; }
28426 ac_cpp='$CPP $CPPFLAGS'
28427 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28428 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28429 ac_compiler_gnu=$ac_cv_c_compiler_gnu
28433 # Check whether --enable-ubsan was given.
28434 if test "${enable_ubsan+set}" = set; then :
28435 enableval=$enable_ubsan;
28440 if test "x$enable_ubsan" = xauto; then
28441 if $development; then
28446 ac_cpp='$CXXCPP $CPPFLAGS'
28447 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28448 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28449 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
28451 if test "x$enable_ubsan" = xyes; then
28452 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -fsanitize=undefined is accepted" >&5
28453 $as_echo_n "checking whether -fsanitize=undefined is accepted... " >&6; }
28454 saved_CXXFLAGS="$CXXFLAGS"
28455 CXXFLAGS="$CXXFLAGS -fsanitize=undefined -fno-sanitize-recover=undefined"
28456 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28457 /* end confdefs.h. */
28467 if ac_fn_cxx_try_link "$LINENO"; then :
28473 rm -f core conftest.err conftest.$ac_objext \
28474 conftest$ac_exeext conftest.$ac_ext
28475 CXXFLAGS="$saved_CXXFLAGS"
28476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_ubsan" >&5
28477 $as_echo "$enable_ubsan" >&6; }
28478 if test "x$enable_ubsan" = xyes; then
28479 WARN_CFLAGS="$WARN_CFLAGS -fsanitize=undefined -fno-sanitize-recover=undefined"
28480 CONFIG_LDFLAGS="$CONFIG_LDFLAGS -fsanitize=undefined"
28484 ac_cpp='$CPP $CPPFLAGS'
28485 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28486 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28487 ac_compiler_gnu=$ac_cv_c_compiler_gnu
28491 # In the Cygwin environment, we need some additional flags.
28492 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cygwin" >&5
28493 $as_echo_n "checking for cygwin... " >&6; }
28494 if ${gdb_cv_os_cygwin+:} false; then :
28495 $as_echo_n "(cached) " >&6
28497 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28498 /* end confdefs.h. */
28500 #if defined (__CYGWIN__) || defined (__CYGWIN32__)
28504 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
28505 $EGREP "^lose$" >/dev/null 2>&1; then :
28506 gdb_cv_os_cygwin=yes
28508 gdb_cv_os_cygwin=no
28513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_os_cygwin" >&5
28514 $as_echo "$gdb_cv_os_cygwin" >&6; }
28517 SER_HARDWIRE="ser-base.o ser-unix.o ser-pipe.o ser-tcp.o"
28519 *go32* ) SER_HARDWIRE=ser-go32.o ;;
28520 *djgpp* ) SER_HARDWIRE=ser-go32.o ;;
28521 *mingw32*) SER_HARDWIRE="ser-base.o ser-tcp.o ser-mingw.o" ;;
28522 *) SER_HARDWIRE="$SER_HARDWIRE ser-uds.o" ;;
28526 # libreadline needs libuser32.a in a cygwin environment
28528 if test x"$gdb_cv_os_cygwin" = xyes; then
28529 WIN32LIBS="-luser32"
28530 case "${target}" in
28531 *cygwin*) WIN32LIBS="$WIN32LIBS -limagehlp"
28536 # The ser-tcp.c module requires sockets.
28537 # Note that WIN32APILIBS is set by GDB_AC_COMMON.
28538 WIN32LIBS="$WIN32LIBS $WIN32APILIBS"
28540 # Add ELF support to GDB, but only if BFD includes ELF support.
28543 OLD_LDFLAGS=$LDFLAGS
28546 # Put the old CFLAGS/LDFLAGS last, in case the user's (C|LD)FLAGS
28547 # points somewhere with bfd, with -I/foo/lib and -L/foo/lib. We
28548 # always want our bfd.
28549 CFLAGS="-I${srcdir}/../include -I../bfd -I${srcdir}/../bfd $CFLAGS"
28550 LDFLAGS="-L../bfd -L../libiberty"
28551 intl=`echo $LIBINTL | sed 's,${top_builddir}/,,g'`
28552 LIBS="-lbfd -liberty $intl $LIBS"
28553 CC="./libtool --quiet --mode=link $CC"
28554 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ELF support in BFD" >&5
28555 $as_echo_n "checking for ELF support in BFD... " >&6; }
28556 if ${gdb_cv_var_elf+:} false; then :
28557 $as_echo_n "(cached) " >&6
28559 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28560 /* end confdefs.h. */
28561 #include <stdlib.h>
28562 #include <string.h>
28564 #include "elf-bfd.h"
28568 return bfd_get_elf_phdr_upper_bound (NULL);
28574 if ac_fn_c_try_link "$LINENO"; then :
28580 rm -f core conftest.err conftest.$ac_objext \
28581 conftest$ac_exeext conftest.$ac_ext
28584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_var_elf" >&5
28585 $as_echo "$gdb_cv_var_elf" >&6; }
28588 LDFLAGS=$OLD_LDFLAGS
28590 if test "$gdb_cv_var_elf" = yes; then
28591 CONFIG_OBS="$CONFIG_OBS elfread.o stap-probe.o dtrace-probe.o \
28592 gcore-elf.o elf-none-tdep.o"
28594 $as_echo "#define HAVE_ELF 1" >>confdefs.h
28596 # -ldl is provided by bfd/Makfile.am (LIBDL) <PLUGINS>.
28597 if test "$plugins" = "yes"; then
28598 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
28599 $as_echo_n "checking for library containing dlopen... " >&6; }
28600 if ${ac_cv_search_dlopen+:} false; then :
28601 $as_echo_n "(cached) " >&6
28603 ac_func_search_save_LIBS=$LIBS
28604 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28605 /* end confdefs.h. */
28607 /* Override any GCC internal prototype to avoid an error.
28608 Use char because int might match the return type of a GCC
28609 builtin and then its argument prototype would still apply. */
28622 for ac_lib in '' dl; do
28623 if test -z "$ac_lib"; then
28624 ac_res="none required"
28627 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
28629 if ac_fn_c_try_link "$LINENO"; then :
28630 ac_cv_search_dlopen=$ac_res
28632 rm -f core conftest.err conftest.$ac_objext \
28634 if ${ac_cv_search_dlopen+:} false; then :
28638 if ${ac_cv_search_dlopen+:} false; then :
28641 ac_cv_search_dlopen=no
28643 rm conftest.$ac_ext
28644 LIBS=$ac_func_search_save_LIBS
28646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
28647 $as_echo "$ac_cv_search_dlopen" >&6; }
28648 ac_res=$ac_cv_search_dlopen
28649 if test "$ac_res" != no; then :
28650 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
28657 # Add macho support to GDB, but only if BFD includes it.
28660 OLD_LDFLAGS=$LDFLAGS
28663 # Put the old CFLAGS/LDFLAGS last, in case the user's (C|LD)FLAGS
28664 # points somewhere with bfd, with -I/foo/lib and -L/foo/lib. We
28665 # always want our bfd.
28666 CFLAGS="-I${srcdir}/../include -I../bfd -I${srcdir}/../bfd $CFLAGS"
28667 LDFLAGS="-L../bfd -L../libiberty"
28668 intl=`echo $LIBINTL | sed 's,${top_builddir}/,,g'`
28669 LIBS="-lbfd -liberty $intl $LIBS"
28670 CC="./libtool --quiet --mode=link $CC"
28671 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Mach-O support in BFD" >&5
28672 $as_echo_n "checking for Mach-O support in BFD... " >&6; }
28673 if ${gdb_cv_var_macho+:} false; then :
28674 $as_echo_n "(cached) " >&6
28676 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28677 /* end confdefs.h. */
28678 #include <stdlib.h>
28679 #include <string.h>
28681 #include "mach-o.h"
28685 return bfd_mach_o_lookup_command (NULL, 0, NULL);
28691 if ac_fn_c_try_link "$LINENO"; then :
28692 gdb_cv_var_macho=yes
28694 gdb_cv_var_macho=no
28697 rm -f core conftest.err conftest.$ac_objext \
28698 conftest$ac_exeext conftest.$ac_ext
28701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_var_macho" >&5
28702 $as_echo "$gdb_cv_var_macho" >&6; }
28705 LDFLAGS=$OLD_LDFLAGS
28707 if test "$gdb_cv_var_macho" = yes; then
28708 CONFIG_OBS="$CONFIG_OBS machoread.o"
28711 # Add any host-specific objects to GDB.
28712 CONFIG_OBS="${CONFIG_OBS} ${gdb_host_obs}"
28714 # If building on ELF, look for lzma support for embedded compressed debug info.
28715 if test "$gdb_cv_var_elf" = yes; then
28717 # Check whether --with-lzma was given.
28718 if test "${with_lzma+set}" = set; then :
28719 withval=$with_lzma;
28724 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use lzma" >&5
28725 $as_echo_n "checking whether to use lzma... " >&6; }
28726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_lzma" >&5
28727 $as_echo "$with_lzma" >&6; }
28729 if test "${with_lzma}" != no; then
28740 acl_save_prefix="$prefix"
28741 prefix="$acl_final_prefix"
28742 acl_save_exec_prefix="$exec_prefix"
28743 exec_prefix="$acl_final_exec_prefix"
28745 eval additional_includedir=\"$includedir\"
28746 eval additional_libdir=\"$libdir\"
28748 exec_prefix="$acl_save_exec_prefix"
28749 prefix="$acl_save_prefix"
28752 # Check whether --with-liblzma-prefix was given.
28753 if test "${with_liblzma_prefix+set}" = set; then :
28754 withval=$with_liblzma_prefix;
28755 if test "X$withval" = "Xno"; then
28758 if test "X$withval" = "X"; then
28760 acl_save_prefix="$prefix"
28761 prefix="$acl_final_prefix"
28762 acl_save_exec_prefix="$exec_prefix"
28763 exec_prefix="$acl_final_exec_prefix"
28765 eval additional_includedir=\"$includedir\"
28766 eval additional_libdir=\"$libdir\"
28768 exec_prefix="$acl_save_exec_prefix"
28769 prefix="$acl_save_prefix"
28772 additional_includedir="$withval/include"
28773 additional_libdir="$withval/lib"
28780 # Check whether --with-liblzma-type was given.
28781 if test "${with_liblzma_type+set}" = set; then :
28782 withval=$with_liblzma_type; with_liblzma_type=$withval
28784 with_liblzma_type=auto
28787 lib_type=`eval echo \$with_liblzma_type`
28794 names_already_handled=
28795 names_next_round='lzma '
28796 while test -n "$names_next_round"; do
28797 names_this_round="$names_next_round"
28799 for name in $names_this_round; do
28801 for n in $names_already_handled; do
28802 if test "$n" = "$name"; then
28803 already_handled=yes
28807 if test -z "$already_handled"; then
28808 names_already_handled="$names_already_handled $name"
28809 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
28810 eval value=\"\$HAVE_LIB$uppername\"
28811 if test -n "$value"; then
28812 if test "$value" = yes; then
28813 eval value=\"\$LIB$uppername\"
28814 test -z "$value" || LIBLZMA="${LIBLZMA}${LIBLZMA:+ }$value"
28815 eval value=\"\$LTLIB$uppername\"
28816 test -z "$value" || LTLIBLZMA="${LTLIBLZMA}${LTLIBLZMA:+ }$value"
28825 if test $use_additional = yes; then
28826 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext" && test x$lib_type != xstatic; then
28827 found_dir="$additional_libdir"
28828 found_so="$additional_libdir/lib$name.$shlibext"
28829 if test -f "$additional_libdir/lib$name.la"; then
28830 found_la="$additional_libdir/lib$name.la"
28832 elif test x$lib_type != xshared; then
28833 if test -f "$additional_libdir/lib$name.$libext"; then
28834 found_dir="$additional_libdir"
28835 found_a="$additional_libdir/lib$name.$libext"
28836 if test -f "$additional_libdir/lib$name.la"; then
28837 found_la="$additional_libdir/lib$name.la"
28842 if test "X$found_dir" = "X"; then
28843 for x in $LDFLAGS $LTLIBLZMA; do
28845 acl_save_prefix="$prefix"
28846 prefix="$acl_final_prefix"
28847 acl_save_exec_prefix="$exec_prefix"
28848 exec_prefix="$acl_final_exec_prefix"
28850 exec_prefix="$acl_save_exec_prefix"
28851 prefix="$acl_save_prefix"
28855 dir=`echo "X$x" | sed -e 's/^X-L//'`
28856 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext" && test x$lib_type != xstatic; then
28858 found_so="$dir/lib$name.$shlibext"
28859 if test -f "$dir/lib$name.la"; then
28860 found_la="$dir/lib$name.la"
28862 elif test x$lib_type != xshared; then
28863 if test -f "$dir/lib$name.$libext"; then
28865 found_a="$dir/lib$name.$libext"
28866 if test -f "$dir/lib$name.la"; then
28867 found_la="$dir/lib$name.la"
28873 if test "X$found_dir" != "X"; then
28878 if test "X$found_dir" != "X"; then
28879 LTLIBLZMA="${LTLIBLZMA}${LTLIBLZMA:+ }-L$found_dir -l$name"
28880 if test "X$found_so" != "X"; then
28881 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
28882 LIBLZMA="${LIBLZMA}${LIBLZMA:+ }$found_so"
28885 for x in $ltrpathdirs; do
28886 if test "X$x" = "X$found_dir"; then
28891 if test -z "$haveit"; then
28892 ltrpathdirs="$ltrpathdirs $found_dir"
28894 if test "$hardcode_direct" = yes; then
28895 LIBLZMA="${LIBLZMA}${LIBLZMA:+ }$found_so"
28897 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
28898 LIBLZMA="${LIBLZMA}${LIBLZMA:+ }$found_so"
28900 for x in $rpathdirs; do
28901 if test "X$x" = "X$found_dir"; then
28906 if test -z "$haveit"; then
28907 rpathdirs="$rpathdirs $found_dir"
28911 for x in $LDFLAGS $LIBLZMA; do
28913 acl_save_prefix="$prefix"
28914 prefix="$acl_final_prefix"
28915 acl_save_exec_prefix="$exec_prefix"
28916 exec_prefix="$acl_final_exec_prefix"
28918 exec_prefix="$acl_save_exec_prefix"
28919 prefix="$acl_save_prefix"
28921 if test "X$x" = "X-L$found_dir"; then
28926 if test -z "$haveit"; then
28927 LIBLZMA="${LIBLZMA}${LIBLZMA:+ }-L$found_dir"
28929 if test "$hardcode_minus_L" != no; then
28930 LIBLZMA="${LIBLZMA}${LIBLZMA:+ }$found_so"
28932 LIBLZMA="${LIBLZMA}${LIBLZMA:+ }-l$name"
28938 if test "X$found_a" != "X"; then
28939 LIBLZMA="${LIBLZMA}${LIBLZMA:+ }$found_a"
28941 LIBLZMA="${LIBLZMA}${LIBLZMA:+ }-L$found_dir -l$name"
28944 additional_includedir=
28945 case "$found_dir" in
28947 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
28948 additional_includedir="$basedir/include"
28951 if test "X$additional_includedir" != "X"; then
28952 if test "X$additional_includedir" != "X/usr/include"; then
28954 if test "X$additional_includedir" = "X/usr/local/include"; then
28955 if test -n "$GCC"; then
28957 linux*) haveit=yes;;
28961 if test -z "$haveit"; then
28962 for x in $CPPFLAGS $INCLZMA; do
28964 acl_save_prefix="$prefix"
28965 prefix="$acl_final_prefix"
28966 acl_save_exec_prefix="$exec_prefix"
28967 exec_prefix="$acl_final_exec_prefix"
28969 exec_prefix="$acl_save_exec_prefix"
28970 prefix="$acl_save_prefix"
28972 if test "X$x" = "X-I$additional_includedir"; then
28977 if test -z "$haveit"; then
28978 if test -d "$additional_includedir"; then
28979 INCLZMA="${INCLZMA}${INCLZMA:+ }-I$additional_includedir"
28985 if test -n "$found_la"; then
28986 save_libdir="$libdir"
28987 case "$found_la" in
28988 */* | *\\*) . "$found_la" ;;
28989 *) . "./$found_la" ;;
28991 libdir="$save_libdir"
28992 for dep in $dependency_libs; do
28995 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
28996 if test "X$additional_libdir" != "X/usr/lib"; then
28998 if test "X$additional_libdir" = "X/usr/local/lib"; then
28999 if test -n "$GCC"; then
29001 linux*) haveit=yes;;
29005 if test -z "$haveit"; then
29007 for x in $LDFLAGS $LIBLZMA; do
29009 acl_save_prefix="$prefix"
29010 prefix="$acl_final_prefix"
29011 acl_save_exec_prefix="$exec_prefix"
29012 exec_prefix="$acl_final_exec_prefix"
29014 exec_prefix="$acl_save_exec_prefix"
29015 prefix="$acl_save_prefix"
29017 if test "X$x" = "X-L$additional_libdir"; then
29022 if test -z "$haveit"; then
29023 if test -d "$additional_libdir"; then
29024 LIBLZMA="${LIBLZMA}${LIBLZMA:+ }-L$additional_libdir"
29028 for x in $LDFLAGS $LTLIBLZMA; do
29030 acl_save_prefix="$prefix"
29031 prefix="$acl_final_prefix"
29032 acl_save_exec_prefix="$exec_prefix"
29033 exec_prefix="$acl_final_exec_prefix"
29035 exec_prefix="$acl_save_exec_prefix"
29036 prefix="$acl_save_prefix"
29038 if test "X$x" = "X-L$additional_libdir"; then
29043 if test -z "$haveit"; then
29044 if test -d "$additional_libdir"; then
29045 LTLIBLZMA="${LTLIBLZMA}${LTLIBLZMA:+ }-L$additional_libdir"
29052 dir=`echo "X$dep" | sed -e 's/^X-R//'`
29053 if test "$enable_rpath" != no; then
29055 for x in $rpathdirs; do
29056 if test "X$x" = "X$dir"; then
29061 if test -z "$haveit"; then
29062 rpathdirs="$rpathdirs $dir"
29065 for x in $ltrpathdirs; do
29066 if test "X$x" = "X$dir"; then
29071 if test -z "$haveit"; then
29072 ltrpathdirs="$ltrpathdirs $dir"
29077 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
29080 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
29083 LIBLZMA="${LIBLZMA}${LIBLZMA:+ }$dep"
29084 LTLIBLZMA="${LTLIBLZMA}${LTLIBLZMA:+ }$dep"
29090 if test "x$lib_type" = "xauto" || test "x$lib_type" = "xshared"; then
29091 LIBLZMA="${LIBLZMA}${LIBLZMA:+ }-l$name"
29092 LTLIBLZMA="${LTLIBLZMA}${LTLIBLZMA:+ }-l$name"
29094 LIBLZMA="${LIBLZMA}${LIBLZMA:+ }-l:lib$name.$libext"
29095 LTLIBLZMA="${LTLIBLZMA}${LTLIBLZMA:+ }-l:lib$name.$libext"
29102 if test "X$rpathdirs" != "X"; then
29103 if test -n "$hardcode_libdir_separator"; then
29105 for found_dir in $rpathdirs; do
29106 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
29108 acl_save_libdir="$libdir"
29110 eval flag=\"$hardcode_libdir_flag_spec\"
29111 libdir="$acl_save_libdir"
29112 LIBLZMA="${LIBLZMA}${LIBLZMA:+ }$flag"
29114 for found_dir in $rpathdirs; do
29115 acl_save_libdir="$libdir"
29116 libdir="$found_dir"
29117 eval flag=\"$hardcode_libdir_flag_spec\"
29118 libdir="$acl_save_libdir"
29119 LIBLZMA="${LIBLZMA}${LIBLZMA:+ }$flag"
29123 if test "X$ltrpathdirs" != "X"; then
29124 for found_dir in $ltrpathdirs; do
29125 LTLIBLZMA="${LTLIBLZMA}${LTLIBLZMA:+ }-R$found_dir"
29130 ac_save_CPPFLAGS="$CPPFLAGS"
29132 for element in $INCLZMA; do
29134 for x in $CPPFLAGS; do
29136 acl_save_prefix="$prefix"
29137 prefix="$acl_final_prefix"
29138 acl_save_exec_prefix="$exec_prefix"
29139 exec_prefix="$acl_final_exec_prefix"
29141 exec_prefix="$acl_save_exec_prefix"
29142 prefix="$acl_save_prefix"
29144 if test "X$x" = "X$element"; then
29149 if test -z "$haveit"; then
29150 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
29155 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for liblzma" >&5
29156 $as_echo_n "checking for liblzma... " >&6; }
29157 if ${ac_cv_liblzma+:} false; then :
29158 $as_echo_n "(cached) " >&6
29161 ac_save_LIBS="$LIBS"
29162 LIBS="$LIBS $LIBLZMA"
29163 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29164 /* end confdefs.h. */
29169 lzma_index_iter iter;
29170 lzma_index_iter_init (&iter, 0);
29171 lzma_mf_is_supported (LZMA_MF_HC3);
29176 if ac_fn_c_try_link "$LINENO"; then :
29181 rm -f core conftest.err conftest.$ac_objext \
29182 conftest$ac_exeext conftest.$ac_ext
29183 LIBS="$ac_save_LIBS"
29186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_liblzma" >&5
29187 $as_echo "$ac_cv_liblzma" >&6; }
29188 if test "$ac_cv_liblzma" = yes; then
29191 $as_echo "#define HAVE_LIBLZMA 1" >>confdefs.h
29193 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with liblzma" >&5
29194 $as_echo_n "checking how to link with liblzma... " >&6; }
29195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBLZMA" >&5
29196 $as_echo "$LIBLZMA" >&6; }
29199 CPPFLAGS="$ac_save_CPPFLAGS"
29209 if test "$HAVE_LIBLZMA" != yes; then
29210 if test "$with_lzma" = yes; then
29211 as_fn_error $? "missing liblzma for --with-lzma" "$LINENO" 5
29217 LIBGUI="../libgui/src/libgui.a"
29218 GUI_CFLAGS_X="-I${srcdir}/../libgui/src"
29227 *-*-cygwin* | *-*-mingw* )
29236 if test "${enable_gdbtk}" = "yes"; then
29238 # Gdbtk must have an absolute path to srcdir in order to run
29239 # properly when not installed.
29242 GDBTK_SRC_DIR=`pwd`
29247 # Ok, lets find the tcl configuration
29248 # First, look for one uninstalled.
29249 # the alternative search directory is invoked by --with-tcl
29252 if test x"${no_tcl}" = x ; then
29253 # we reset no_tcl in case something fails here
29256 # Check whether --with-tcl was given.
29257 if test "${with_tcl+set}" = set; then :
29258 withval=$with_tcl; with_tclconfig=${withval}
29261 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Tcl configuration" >&5
29262 $as_echo_n "checking for Tcl configuration... " >&6; }
29263 if ${ac_cv_c_tclconfig+:} false; then :
29264 $as_echo_n "(cached) " >&6
29268 # First check to see if --with-tcl was specified.
29270 *-*-cygwin*) platDir="win" ;;
29271 *) platDir="unix" ;;
29273 if test x"${with_tclconfig}" != x ; then
29274 if test -f "${with_tclconfig}/tclConfig.sh" ; then
29275 ac_cv_c_tclconfig=`(cd ${with_tclconfig}; pwd)`
29277 as_fn_error $? "${with_tclconfig} directory doesn't contain tclConfig.sh" "$LINENO" 5
29281 # then check for a private Tcl installation
29282 if test x"${ac_cv_c_tclconfig}" = x ; then
29285 `ls -dr ../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \
29286 `ls -dr ../tcl[8-9].[0-9] 2>/dev/null` \
29287 `ls -dr ../tcl[8-9].[0-9]* 2>/dev/null` \
29289 `ls -dr ../../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \
29290 `ls -dr ../../tcl[8-9].[0-9] 2>/dev/null` \
29291 `ls -dr ../../tcl[8-9].[0-9]* 2>/dev/null` \
29293 `ls -dr ../../../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \
29294 `ls -dr ../../../tcl[8-9].[0-9] 2>/dev/null` \
29295 `ls -dr ../../../tcl[8-9].[0-9]* 2>/dev/null` ; do
29296 if test -f "$i/$platDir/tclConfig.sh" ; then
29297 ac_cv_c_tclconfig=`(cd $i/$platDir; pwd)`
29303 # on Darwin, check in Framework installation locations
29304 if test "`uname -s`" = "Darwin" -a x"${ac_cv_c_tclconfig}" = x ; then
29305 for i in `ls -d ~/Library/Frameworks 2>/dev/null` \
29306 `ls -d /Library/Frameworks 2>/dev/null` \
29307 `ls -d /Network/Library/Frameworks 2>/dev/null` \
29308 `ls -d /System/Library/Frameworks 2>/dev/null` \
29310 if test -f "$i/Tcl.framework/tclConfig.sh" ; then
29311 ac_cv_c_tclconfig=`(cd $i/Tcl.framework; pwd)`
29317 # check in a few common install locations
29318 if test x"${ac_cv_c_tclconfig}" = x ; then
29319 for i in `ls -d ${libdir} 2>/dev/null` \
29320 `ls -d ${exec_prefix}/lib 2>/dev/null` \
29321 `ls -d ${prefix}/lib 2>/dev/null` \
29322 `ls -d /usr/local/lib 2>/dev/null` \
29323 `ls -d /usr/contrib/lib 2>/dev/null` \
29324 `ls -d /usr/lib 2>/dev/null` \
29326 if test -f "$i/tclConfig.sh" ; then
29327 ac_cv_c_tclconfig=`(cd $i; pwd)`
29333 # check in a few other private locations
29334 if test x"${ac_cv_c_tclconfig}" = x ; then
29337 `ls -dr ${srcdir}/../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \
29338 `ls -dr ${srcdir}/../tcl[8-9].[0-9] 2>/dev/null` \
29339 `ls -dr ${srcdir}/../tcl[8-9].[0-9]* 2>/dev/null` ; do
29340 if test -f "$i/$platDir/tclConfig.sh" ; then
29341 ac_cv_c_tclconfig=`(cd $i/$platDir; pwd)`
29350 if test x"${ac_cv_c_tclconfig}" = x ; then
29351 TCL_BIN_DIR="# no Tcl configs found"
29352 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Can't find Tcl configuration definitions" >&5
29353 $as_echo "$as_me: WARNING: Can't find Tcl configuration definitions" >&2;}
29356 TCL_BIN_DIR=${ac_cv_c_tclconfig}
29357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found ${TCL_BIN_DIR}/tclConfig.sh" >&5
29358 $as_echo "found ${TCL_BIN_DIR}/tclConfig.sh" >&6; }
29363 # If $no_tk is nonempty, then we can't do Tk, and there is no
29364 # point to doing Tcl.
29367 # Ok, lets find the tk configuration
29368 # First, look for one uninstalled.
29369 # the alternative search directory is invoked by --with-tk
29372 if test x"${no_tk}" = x ; then
29373 # we reset no_tk in case something fails here
29376 # Check whether --with-tk was given.
29377 if test "${with_tk+set}" = set; then :
29378 withval=$with_tk; with_tkconfig=${withval}
29381 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Tk configuration" >&5
29382 $as_echo_n "checking for Tk configuration... " >&6; }
29383 if ${ac_cv_c_tkconfig+:} false; then :
29384 $as_echo_n "(cached) " >&6
29388 # First check to see if --with-tkconfig was specified.
29389 if test x"${with_tkconfig}" != x ; then
29390 if test -f "${with_tkconfig}/tkConfig.sh" ; then
29391 ac_cv_c_tkconfig=`(cd ${with_tkconfig}; pwd)`
29393 as_fn_error $? "${with_tkconfig} directory doesn't contain tkConfig.sh" "$LINENO" 5
29397 # then check for a private Tk library
29399 *-*-cygwin*) platDir="win" ;;
29400 *) platDir="unix" ;;
29402 if test x"${ac_cv_c_tkconfig}" = x ; then
29405 `ls -dr ../tk[8-9].[0-9].[0-9]* 2>/dev/null` \
29406 `ls -dr ../tk[8-9].[0-9] 2>/dev/null` \
29407 `ls -dr ../tk[8-9].[0-9]* 2>/dev/null` \
29409 `ls -dr ../../tk[8-9].[0-9].[0-9]* 2>/dev/null` \
29410 `ls -dr ../../tk[8-9].[0-9] 2>/dev/null` \
29411 `ls -dr ../../tk[8-9].[0-9]* 2>/dev/null` \
29413 `ls -dr ../../../tk[8-9].[0-9].[0-9]* 2>/dev/null` \
29414 `ls -dr ../../../tk[8-9].[0-9] 2>/dev/null` \
29415 `ls -dr ../../../tk[8-9].[0-9]* 2>/dev/null` ; do
29416 if test -f "$i/$platDir/tkConfig.sh" ; then
29417 ac_cv_c_tkconfig=`(cd $i/$platDir; pwd)`
29423 # on Darwin, check in Framework installation locations
29424 if test "`uname -s`" = "Darwin" -a x"${ac_cv_c_tkconfig}" = x ; then
29425 for i in `ls -d ~/Library/Frameworks 2>/dev/null` \
29426 `ls -d /Library/Frameworks 2>/dev/null` \
29427 `ls -d /Network/Library/Frameworks 2>/dev/null` \
29428 `ls -d /System/Library/Frameworks 2>/dev/null` \
29430 if test -f "$i/Tk.framework/tkConfig.sh" ; then
29431 ac_cv_c_tkconfig=`(cd $i/Tk.framework; pwd)`
29437 # check in a few common install locations
29438 if test x"${ac_cv_c_tkconfig}" = x ; then
29439 for i in `ls -d ${libdir} 2>/dev/null` \
29440 `ls -d ${exec_prefix}/lib 2>/dev/null` \
29441 `ls -d ${prefix}/lib 2>/dev/null` \
29442 `ls -d /usr/local/lib 2>/dev/null` \
29443 `ls -d /usr/contrib/lib 2>/dev/null` \
29444 `ls -d /usr/lib 2>/dev/null` \
29446 if test -f "$i/tkConfig.sh" ; then
29447 ac_cv_c_tkconfig=`(cd $i; pwd)`
29452 # check in a few other private locations
29453 if test x"${ac_cv_c_tkconfig}" = x ; then
29456 `ls -dr ${srcdir}/../tk[8-9].[0-9].[0-9]* 2>/dev/null` \
29457 `ls -dr ${srcdir}/../tk[8-9].[0-9] 2>/dev/null` \
29458 `ls -dr ${srcdir}/../tk[8-9].[0-9]* 2>/dev/null` ; do
29459 if test -f "$i/$platDir/tkConfig.sh" ; then
29460 ac_cv_c_tkconfig=`(cd $i/$platDir; pwd)`
29469 if test x"${ac_cv_c_tkconfig}" = x ; then
29470 TK_BIN_DIR="# no Tk configs found"
29471 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Can't find Tk configuration definitions" >&5
29472 $as_echo "$as_me: WARNING: Can't find Tk configuration definitions" >&2;}
29475 TK_BIN_DIR=${ac_cv_c_tkconfig}
29476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found ${TK_BIN_DIR}/tkConfig.sh" >&5
29477 $as_echo "found ${TK_BIN_DIR}/tkConfig.sh" >&6; }
29482 if test -z "${no_tcl}" -a -z "${no_tk}"; then
29484 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for existence of ${TCL_BIN_DIR}/tclConfig.sh" >&5
29485 $as_echo_n "checking for existence of ${TCL_BIN_DIR}/tclConfig.sh... " >&6; }
29487 if test -f "${TCL_BIN_DIR}/tclConfig.sh" ; then
29488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: loading" >&5
29489 $as_echo "loading" >&6; }
29490 . ${TCL_BIN_DIR}/tclConfig.sh
29492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: could not find ${TCL_BIN_DIR}/tclConfig.sh" >&5
29493 $as_echo "could not find ${TCL_BIN_DIR}/tclConfig.sh" >&6; }
29496 # eval is required to do the TCL_DBGX substitution
29497 eval "TCL_LIB_FILE=\"${TCL_LIB_FILE}\""
29498 eval "TCL_STUB_LIB_FILE=\"${TCL_STUB_LIB_FILE}\""
29500 # If the TCL_BIN_DIR is the build directory (not the install directory),
29501 # then set the common variable name to the value of the build variables.
29502 # For example, the variable TCL_LIB_SPEC will be set to the value
29503 # of TCL_BUILD_LIB_SPEC. An extension should make use of TCL_LIB_SPEC
29504 # instead of TCL_BUILD_LIB_SPEC since it will work with both an
29505 # installed and uninstalled version of Tcl.
29506 if test -f "${TCL_BIN_DIR}/Makefile" ; then
29507 TCL_LIB_SPEC=${TCL_BUILD_LIB_SPEC}
29508 TCL_STUB_LIB_SPEC=${TCL_BUILD_STUB_LIB_SPEC}
29509 TCL_STUB_LIB_PATH=${TCL_BUILD_STUB_LIB_PATH}
29510 elif test "`uname -s`" = "Darwin"; then
29511 # If Tcl was built as a framework, attempt to use the libraries
29512 # from the framework at the given location so that linking works
29513 # against Tcl.framework installed in an arbitrary location.
29514 case ${TCL_DEFS} in
29516 if test -f "${TCL_BIN_DIR}/${TCL_LIB_FILE}"; then
29517 for i in "`cd ${TCL_BIN_DIR}; pwd`" \
29518 "`cd ${TCL_BIN_DIR}/../..; pwd`"; do
29519 if test "`basename "$i"`" = "${TCL_LIB_FILE}.framework"; then
29520 TCL_LIB_SPEC="-F`dirname "$i"` -framework ${TCL_LIB_FILE}"
29525 if test -f "${TCL_BIN_DIR}/${TCL_STUB_LIB_FILE}"; then
29526 TCL_STUB_LIB_SPEC="-L${TCL_BIN_DIR} ${TCL_STUB_LIB_FLAG}"
29527 TCL_STUB_LIB_PATH="${TCL_BIN_DIR}/${TCL_STUB_LIB_FILE}"
29533 # eval is required to do the TCL_DBGX substitution
29534 eval "TCL_LIB_FLAG=\"${TCL_LIB_FLAG}\""
29535 eval "TCL_LIB_SPEC=\"${TCL_LIB_SPEC}\""
29536 eval "TCL_STUB_LIB_FLAG=\"${TCL_STUB_LIB_FLAG}\""
29537 eval "TCL_STUB_LIB_SPEC=\"${TCL_STUB_LIB_SPEC}\""
29553 # Check for in-tree tcl
29560 if test "${TCL_SRC_DIR}" = "${topdir}/tcl"; then
29564 # Find Tcl private headers
29565 if test x"${intree}" = xno; then
29567 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Tcl private headers" >&5
29568 $as_echo_n "checking for Tcl private headers... " >&6; }
29570 dir=`echo ${TCL_INCLUDE_SPEC}/tcl-private/generic | sed -e s/-I//`
29571 if test -f ${dir}/tclInt.h ; then
29575 if test x"${private_dir}" = x; then
29576 as_fn_error $? "could not find private Tcl headers" "$LINENO" 5
29578 TCL_PRIVATE_INCLUDE="-I${private_dir}"
29579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${private_dir}" >&5
29580 $as_echo "${private_dir}" >&6; }
29583 TCL_INCLUDE="${TCL_INCLUDE_SPEC} ${TCL_PRIVATE_INCLUDE}"
29584 TCL_LIBRARY="${TCL_LIB_SPEC}"
29587 # If building tcl in the same src tree, private headers
29588 # are not needed, but we need to be sure to use the right
29590 TCL_INCLUDE="-I${TCL_SRC_DIR}/generic"
29591 TCL_LIBRARY="${TCL_BUILD_LIB_SPEC}"
29592 TCL_DEPS="../tcl/${configdir}${TCL_LIB_FILE}"
29599 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for existence of ${TK_BIN_DIR}/tkConfig.sh" >&5
29600 $as_echo_n "checking for existence of ${TK_BIN_DIR}/tkConfig.sh... " >&6; }
29602 if test -f "${TK_BIN_DIR}/tkConfig.sh" ; then
29603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: loading" >&5
29604 $as_echo "loading" >&6; }
29605 . ${TK_BIN_DIR}/tkConfig.sh
29607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: could not find ${TK_BIN_DIR}/tkConfig.sh" >&5
29608 $as_echo "could not find ${TK_BIN_DIR}/tkConfig.sh" >&6; }
29611 # eval is required to do the TK_DBGX substitution
29612 eval "TK_LIB_FILE=\"${TK_LIB_FILE}\""
29613 eval "TK_STUB_LIB_FILE=\"${TK_STUB_LIB_FILE}\""
29615 # If the TK_BIN_DIR is the build directory (not the install directory),
29616 # then set the common variable name to the value of the build variables.
29617 # For example, the variable TK_LIB_SPEC will be set to the value
29618 # of TK_BUILD_LIB_SPEC. An extension should make use of TK_LIB_SPEC
29619 # instead of TK_BUILD_LIB_SPEC since it will work with both an
29620 # installed and uninstalled version of Tcl.
29621 if test -f "${TK_BIN_DIR}/Makefile" ; then
29622 TK_LIB_SPEC=${TK_BUILD_LIB_SPEC}
29623 TK_STUB_LIB_SPEC=${TK_BUILD_STUB_LIB_SPEC}
29624 TK_STUB_LIB_PATH=${TK_BUILD_STUB_LIB_PATH}
29625 elif test "`uname -s`" = "Darwin"; then
29626 # If Tk was built as a framework, attempt to use the libraries
29627 # from the framework at the given location so that linking works
29628 # against Tk.framework installed in an arbitrary location.
29631 if test -f "${TK_BIN_DIR}/${TK_LIB_FILE}"; then
29632 for i in "`cd ${TK_BIN_DIR}; pwd`" \
29633 "`cd ${TK_BIN_DIR}/../..; pwd`"; do
29634 if test "`basename "$i"`" = "${TK_LIB_FILE}.framework"; then
29635 TK_LIB_SPEC="-F`dirname "$i"` -framework ${TK_LIB_FILE}"
29640 if test -f "${TK_BIN_DIR}/${TK_STUB_LIB_FILE}"; then
29641 TK_STUB_LIB_SPEC="-L${TK_BIN_DIR} ${TK_STUB_LIB_FLAG}"
29642 TK_STUB_LIB_PATH="${TK_BIN_DIR}/${TK_STUB_LIB_FILE}"
29648 # eval is required to do the TK_DBGX substitution
29649 eval "TK_LIB_FLAG=\"${TK_LIB_FLAG}\""
29650 eval "TK_LIB_SPEC=\"${TK_LIB_SPEC}\""
29651 eval "TK_STUB_LIB_FLAG=\"${TK_STUB_LIB_FLAG}\""
29652 eval "TK_STUB_LIB_SPEC=\"${TK_STUB_LIB_SPEC}\""
29667 # Check for in-tree Tk
29669 if test "${TK_SRC_DIR}" = "${topdir}/tk"; then
29673 # Find Tk private headers
29674 if test x"${intree}" = xno; then
29676 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Tk private headers" >&5
29677 $as_echo_n "checking for Tk private headers... " >&6; }
29679 dir=`echo ${TK_INCLUDE_SPEC}/tk-private/generic | sed -e s/-I//`
29680 if test -f ${dir}/tkInt.h; then
29684 if test x"${private_dir}" = x; then
29685 as_fn_error $? "could not find Tk private headers" "$LINENO" 5
29687 TK_PRIVATE_INCLUDE="-I${private_dir}"
29688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${private_dir}" >&5
29689 $as_echo "${private_dir}" >&6; }
29692 TK_INCLUDE="${TK_INCLUDE_SPEC} ${TK_PRIVATE_INCLUDE}"
29693 TK_LIBRARY=${TK_LIB_SPEC}
29696 TK_INCLUDE="-I${TK_SRC_DIR}/generic"
29697 TK_LIBRARY="${TK_BUILD_LIB_SPEC}"
29698 TK_DEPS="../tk/${configdir}/${TK_LIB_FILE}"
29705 ENABLE_CFLAGS="${ENABLE_CFLAGS} \$(SUBDIR_GDBTK_CFLAGS)"
29707 # Include some libraries that Tcl and Tk want.
29708 TCL_LIBS='$(LIBGUI) $(TK) $(TCL) $(X11_LDFLAGS) $(X11_LIBS)'
29709 # Yes, the ordering seems wrong here. But it isn't.
29710 # TK_LIBS is the list of libraries that need to be linked
29711 # after Tcl/Tk. Note that this isn't put into LIBS. If it
29712 # were in LIBS then any link tests after this point would
29713 # try to include things like `$(LIBGUI)', which wouldn't work.
29714 GDBTKLIBS="${TCL_LIBS} ${TK_LIBS}"
29716 CONFIG_OBS="${CONFIG_OBS} \$(SUBDIR_GDBTK_OBS)"
29717 CONFIG_DEPS="${CONFIG_DEPS} \$(SUBDIR_GDBTK_DEPS)"
29718 CONFIG_SRCS="${CONFIG_SRCS} \$(SUBDIR_GDBTK_SRCS)"
29719 CONFIG_ALL="${CONFIG_ALL} all-gdbtk"
29720 CONFIG_CLEAN="${CONFIG_CLEAN} clean-gdbtk"
29721 CONFIG_INSTALL="${CONFIG_INSTALL} install-gdbtk"
29722 CONFIG_UNINSTALL="${CONFIG_UNINSTALL} uninstall-gdbtk"
29724 if test x"$gdb_cv_os_cygwin" = xyes; then
29725 WIN32LIBS="${WIN32LIBS} -lshell32 -lgdi32 -lcomdlg32 -ladvapi32"
29726 WIN32LDAPP="-Wl,--subsystem,console"
29727 CONFIG_OBS="${CONFIG_OBS} gdbres.o"
29730 subdirs="$subdirs gdbtk"
29742 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
29743 $as_echo_n "checking for X... " >&6; }
29746 # Check whether --with-x was given.
29747 if test "${with_x+set}" = set; then :
29751 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
29752 if test "x$with_x" = xno; then
29753 # The user explicitly disabled X.
29756 case $x_includes,$x_libraries in #(
29757 *\'*) as_fn_error $? "cannot use X directory names containing '" "$LINENO" 5;; #(
29758 *,NONE | NONE,*) if ${ac_cv_have_x+:} false; then :
29759 $as_echo_n "(cached) " >&6
29761 # One or both of the vars are not set, and there is no cached value.
29762 ac_x_includes=no ac_x_libraries=no
29763 rm -f -r conftest.dir
29764 if mkdir conftest.dir; then
29766 cat >Imakefile <<'_ACEOF'
29768 @echo incroot='${INCROOT}'
29770 @echo usrlibdir='${USRLIBDIR}'
29772 @echo libdir='${LIBDIR}'
29774 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
29775 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
29776 for ac_var in incroot usrlibdir libdir; do
29777 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
29779 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
29780 for ac_extension in a so sl dylib la dll; do
29781 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
29782 test -f "$ac_im_libdir/libX11.$ac_extension"; then
29783 ac_im_usrlibdir=$ac_im_libdir; break
29786 # Screen out bogus values from the imake configuration. They are
29787 # bogus both because they are the default anyway, and because
29788 # using them would break gcc on systems where it needs fixed includes.
29789 case $ac_im_incroot in
29790 /usr/include) ac_x_includes= ;;
29791 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
29793 case $ac_im_usrlibdir in
29794 /usr/lib | /usr/lib64 | /lib | /lib64) ;;
29795 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
29799 rm -f -r conftest.dir
29802 # Standard set of common directories for X headers.
29803 # Check X11 before X11Rn because it is often a symlink to the current release.
29817 /usr/local/X11/include
29818 /usr/local/X11R7/include
29819 /usr/local/X11R6/include
29820 /usr/local/X11R5/include
29821 /usr/local/X11R4/include
29823 /usr/local/include/X11
29824 /usr/local/include/X11R7
29825 /usr/local/include/X11R6
29826 /usr/local/include/X11R5
29827 /usr/local/include/X11R4
29831 /usr/XFree86/include/X11
29835 /usr/unsupported/include
29836 /usr/athena/include
29837 /usr/local/x11r5/include
29838 /usr/lpp/Xamples/include
29840 /usr/openwin/include
29841 /usr/openwin/share/include'
29843 if test "$ac_x_includes" = no; then
29844 # Guess where to find include files, by looking for Xlib.h.
29845 # First, try using that file with no special directory specified.
29846 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29847 /* end confdefs.h. */
29848 #include <X11/Xlib.h>
29850 if ac_fn_c_try_cpp "$LINENO"; then :
29851 # We can compile using X headers with no special include directory.
29854 for ac_dir in $ac_x_header_dirs; do
29855 if test -r "$ac_dir/X11/Xlib.h"; then
29856 ac_x_includes=$ac_dir
29861 rm -f conftest.err conftest.i conftest.$ac_ext
29862 fi # $ac_x_includes = no
29864 if test "$ac_x_libraries" = no; then
29865 # Check for the libraries.
29866 # See if we find them without any special options.
29867 # Don't add to $LIBS permanently.
29870 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29871 /* end confdefs.h. */
29872 #include <X11/Xlib.h>
29881 if ac_fn_c_try_link "$LINENO"; then :
29883 # We can link X programs with no special library path.
29887 for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
29889 # Don't even attempt the hair of trying to link an X program!
29890 for ac_extension in a so sl dylib la dll; do
29891 if test -r "$ac_dir/libX11.$ac_extension"; then
29892 ac_x_libraries=$ac_dir
29898 rm -f core conftest.err conftest.$ac_objext \
29899 conftest$ac_exeext conftest.$ac_ext
29900 fi # $ac_x_libraries = no
29902 case $ac_x_includes,$ac_x_libraries in #(
29903 no,* | *,no | *\'*)
29904 # Didn't find X, or a directory has "'" in its name.
29905 ac_cv_have_x="have_x=no";; #(
29907 # Record where we found X for the cache.
29908 ac_cv_have_x="have_x=yes\
29909 ac_x_includes='$ac_x_includes'\
29910 ac_x_libraries='$ac_x_libraries'"
29916 eval "$ac_cv_have_x"
29919 if test "$have_x" != yes; then
29920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
29921 $as_echo "$have_x" >&6; }
29924 # If each of the values was on the command line, it overrides each guess.
29925 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
29926 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
29927 # Update the cache value to reflect the command line values.
29928 ac_cv_have_x="have_x=yes\
29929 ac_x_includes='$x_includes'\
29930 ac_x_libraries='$x_libraries'"
29931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
29932 $as_echo "libraries $x_libraries, headers $x_includes" >&6; }
29936 # Unlike the sim directory, whether a simulator is linked is controlled by
29937 # presence of a gdb_sim definition in the target configure.tgt entry.
29938 # This code just checks for a few cases where we'd like to ignore those
29939 # definitions, even when they're present in the '.mt' file. These cases
29940 # are when --disable-sim is specified, or if the simulator directory is
29941 # not part of the source tree.
29943 # Check whether --enable-sim was given.
29944 if test "${enable_sim+set}" = set; then :
29945 enableval=$enable_sim; echo "enable_sim = $enable_sim";
29946 echo "enableval = ${enableval}";
29947 case "${enableval}" in
29948 yes) ignore_sim=false ;;
29949 no) ignore_sim=true ;;
29950 *) ignore_sim=false ;;
29957 if test ! -d "${srcdir}/../sim"; then
29963 if test "${ignore_sim}" = "false"; then
29964 if test x"${gdb_sim}" != x ; then
29966 SIM_OBS="remote-sim.o"
29968 # Some tdep code should only be compiled in when the ppc sim is
29969 # built. PR sim/13418.
29973 $as_echo "#define WITH_PPC_SIM 1" >>confdefs.h
29993 # List of host floatformats.
29995 cat >>confdefs.h <<_ACEOF
29996 #define GDB_HOST_FLOAT_FORMAT $gdb_host_float_format
30000 cat >>confdefs.h <<_ACEOF
30001 #define GDB_HOST_DOUBLE_FORMAT $gdb_host_double_format
30005 cat >>confdefs.h <<_ACEOF
30006 #define GDB_HOST_LONG_DOUBLE_FORMAT $gdb_host_long_double_format
30010 # target_subdir is used by the testsuite to find the target libraries.
30012 if test "${host}" != "${target}"; then
30013 target_subdir="${target_alias}/"
30017 # Import nat definitions.
30018 nat_makefile_frag=/dev/null
30019 if test "${gdb_native}" = "yes"; then
30020 . ${srcdir}/configure.nat
30021 nativefile=$NAT_FILE
30034 if test x"${gdb_osabi}" != x ; then
30036 cat >>confdefs.h <<_ACEOF
30037 #define GDB_OSABI_DEFAULT $gdb_osabi
30042 # Setup possible use of libbacktrace.
30043 # Check whether --enable-libbacktrace was given.
30044 if test "${enable_libbacktrace+set}" = set; then :
30045 enableval=$enable_libbacktrace;
30050 as_fn_error $? "bad value $enableval for --enable-libbacktrace" "$LINENO" 5
30055 enable_libbacktrace=yes
30059 if test "${enable_libbacktrace}" = "yes"; then
30060 LIBBACKTRACE_INC="-I$srcdir/../libbacktrace/ -I../libbacktrace/"
30061 LIBBACKTRACE_LIB=../libbacktrace/libbacktrace.la
30063 $as_echo "#define HAVE_LIBBACKTRACE 1" >>confdefs.h
30073 # Check for babeltrace and babeltrace-ctf
30075 # Check whether --with-babeltrace was given.
30076 if test "${with_babeltrace+set}" = set; then :
30077 withval=$with_babeltrace;
30079 with_babeltrace=auto
30082 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use babeltrace" >&5
30083 $as_echo_n "checking whether to use babeltrace... " >&6; }
30084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_babeltrace" >&5
30085 $as_echo "$with_babeltrace" >&6; }
30087 if test "x$with_babeltrace" = "xno"; then
30088 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: babletrace support disabled; GDB is unable to read CTF data." >&5
30089 $as_echo "$as_me: WARNING: babletrace support disabled; GDB is unable to read CTF data." >&2;}
30091 # Append -Werror to CFLAGS so that configure can catch the warning
30092 # "assignment from incompatible pointer type", which is related to
30093 # the babeltrace change from 1.0.3 to 1.1.0. Babeltrace 1.1.0 works
30094 # in GDB, while babeltrace 1.0.3 is broken.
30095 # AC_LIB_HAVE_LINKFLAGS may modify CPPFLAGS in it, so it should be
30096 # safe to save and restore CFLAGS here.
30097 saved_CFLAGS=$CFLAGS
30098 CFLAGS="$CFLAGS -Werror"
30109 acl_save_prefix="$prefix"
30110 prefix="$acl_final_prefix"
30111 acl_save_exec_prefix="$exec_prefix"
30112 exec_prefix="$acl_final_exec_prefix"
30114 eval additional_includedir=\"$includedir\"
30115 eval additional_libdir=\"$libdir\"
30117 exec_prefix="$acl_save_exec_prefix"
30118 prefix="$acl_save_prefix"
30121 # Check whether --with-libbabeltrace-prefix was given.
30122 if test "${with_libbabeltrace_prefix+set}" = set; then :
30123 withval=$with_libbabeltrace_prefix;
30124 if test "X$withval" = "Xno"; then
30127 if test "X$withval" = "X"; then
30129 acl_save_prefix="$prefix"
30130 prefix="$acl_final_prefix"
30131 acl_save_exec_prefix="$exec_prefix"
30132 exec_prefix="$acl_final_exec_prefix"
30134 eval additional_includedir=\"$includedir\"
30135 eval additional_libdir=\"$libdir\"
30137 exec_prefix="$acl_save_exec_prefix"
30138 prefix="$acl_save_prefix"
30141 additional_includedir="$withval/include"
30142 additional_libdir="$withval/lib"
30149 # Check whether --with-libbabeltrace-type was given.
30150 if test "${with_libbabeltrace_type+set}" = set; then :
30151 withval=$with_libbabeltrace_type; with_libbabeltrace_type=$withval
30153 with_libbabeltrace_type=auto
30156 lib_type=`eval echo \$with_libbabeltrace_type`
30163 names_already_handled=
30164 names_next_round='babeltrace babeltrace-ctf'
30165 while test -n "$names_next_round"; do
30166 names_this_round="$names_next_round"
30168 for name in $names_this_round; do
30170 for n in $names_already_handled; do
30171 if test "$n" = "$name"; then
30172 already_handled=yes
30176 if test -z "$already_handled"; then
30177 names_already_handled="$names_already_handled $name"
30178 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
30179 eval value=\"\$HAVE_LIB$uppername\"
30180 if test -n "$value"; then
30181 if test "$value" = yes; then
30182 eval value=\"\$LIB$uppername\"
30183 test -z "$value" || LIBBABELTRACE="${LIBBABELTRACE}${LIBBABELTRACE:+ }$value"
30184 eval value=\"\$LTLIB$uppername\"
30185 test -z "$value" || LTLIBBABELTRACE="${LTLIBBABELTRACE}${LTLIBBABELTRACE:+ }$value"
30194 if test $use_additional = yes; then
30195 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext" && test x$lib_type != xstatic; then
30196 found_dir="$additional_libdir"
30197 found_so="$additional_libdir/lib$name.$shlibext"
30198 if test -f "$additional_libdir/lib$name.la"; then
30199 found_la="$additional_libdir/lib$name.la"
30201 elif test x$lib_type != xshared; then
30202 if test -f "$additional_libdir/lib$name.$libext"; then
30203 found_dir="$additional_libdir"
30204 found_a="$additional_libdir/lib$name.$libext"
30205 if test -f "$additional_libdir/lib$name.la"; then
30206 found_la="$additional_libdir/lib$name.la"
30211 if test "X$found_dir" = "X"; then
30212 for x in $LDFLAGS $LTLIBBABELTRACE; do
30214 acl_save_prefix="$prefix"
30215 prefix="$acl_final_prefix"
30216 acl_save_exec_prefix="$exec_prefix"
30217 exec_prefix="$acl_final_exec_prefix"
30219 exec_prefix="$acl_save_exec_prefix"
30220 prefix="$acl_save_prefix"
30224 dir=`echo "X$x" | sed -e 's/^X-L//'`
30225 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext" && test x$lib_type != xstatic; then
30227 found_so="$dir/lib$name.$shlibext"
30228 if test -f "$dir/lib$name.la"; then
30229 found_la="$dir/lib$name.la"
30231 elif test x$lib_type != xshared; then
30232 if test -f "$dir/lib$name.$libext"; then
30234 found_a="$dir/lib$name.$libext"
30235 if test -f "$dir/lib$name.la"; then
30236 found_la="$dir/lib$name.la"
30242 if test "X$found_dir" != "X"; then
30247 if test "X$found_dir" != "X"; then
30248 LTLIBBABELTRACE="${LTLIBBABELTRACE}${LTLIBBABELTRACE:+ }-L$found_dir -l$name"
30249 if test "X$found_so" != "X"; then
30250 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
30251 LIBBABELTRACE="${LIBBABELTRACE}${LIBBABELTRACE:+ }$found_so"
30254 for x in $ltrpathdirs; do
30255 if test "X$x" = "X$found_dir"; then
30260 if test -z "$haveit"; then
30261 ltrpathdirs="$ltrpathdirs $found_dir"
30263 if test "$hardcode_direct" = yes; then
30264 LIBBABELTRACE="${LIBBABELTRACE}${LIBBABELTRACE:+ }$found_so"
30266 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
30267 LIBBABELTRACE="${LIBBABELTRACE}${LIBBABELTRACE:+ }$found_so"
30269 for x in $rpathdirs; do
30270 if test "X$x" = "X$found_dir"; then
30275 if test -z "$haveit"; then
30276 rpathdirs="$rpathdirs $found_dir"
30280 for x in $LDFLAGS $LIBBABELTRACE; do
30282 acl_save_prefix="$prefix"
30283 prefix="$acl_final_prefix"
30284 acl_save_exec_prefix="$exec_prefix"
30285 exec_prefix="$acl_final_exec_prefix"
30287 exec_prefix="$acl_save_exec_prefix"
30288 prefix="$acl_save_prefix"
30290 if test "X$x" = "X-L$found_dir"; then
30295 if test -z "$haveit"; then
30296 LIBBABELTRACE="${LIBBABELTRACE}${LIBBABELTRACE:+ }-L$found_dir"
30298 if test "$hardcode_minus_L" != no; then
30299 LIBBABELTRACE="${LIBBABELTRACE}${LIBBABELTRACE:+ }$found_so"
30301 LIBBABELTRACE="${LIBBABELTRACE}${LIBBABELTRACE:+ }-l$name"
30307 if test "X$found_a" != "X"; then
30308 LIBBABELTRACE="${LIBBABELTRACE}${LIBBABELTRACE:+ }$found_a"
30310 LIBBABELTRACE="${LIBBABELTRACE}${LIBBABELTRACE:+ }-L$found_dir -l$name"
30313 additional_includedir=
30314 case "$found_dir" in
30316 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
30317 additional_includedir="$basedir/include"
30320 if test "X$additional_includedir" != "X"; then
30321 if test "X$additional_includedir" != "X/usr/include"; then
30323 if test "X$additional_includedir" = "X/usr/local/include"; then
30324 if test -n "$GCC"; then
30326 linux*) haveit=yes;;
30330 if test -z "$haveit"; then
30331 for x in $CPPFLAGS $INCBABELTRACE; do
30333 acl_save_prefix="$prefix"
30334 prefix="$acl_final_prefix"
30335 acl_save_exec_prefix="$exec_prefix"
30336 exec_prefix="$acl_final_exec_prefix"
30338 exec_prefix="$acl_save_exec_prefix"
30339 prefix="$acl_save_prefix"
30341 if test "X$x" = "X-I$additional_includedir"; then
30346 if test -z "$haveit"; then
30347 if test -d "$additional_includedir"; then
30348 INCBABELTRACE="${INCBABELTRACE}${INCBABELTRACE:+ }-I$additional_includedir"
30354 if test -n "$found_la"; then
30355 save_libdir="$libdir"
30356 case "$found_la" in
30357 */* | *\\*) . "$found_la" ;;
30358 *) . "./$found_la" ;;
30360 libdir="$save_libdir"
30361 for dep in $dependency_libs; do
30364 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
30365 if test "X$additional_libdir" != "X/usr/lib"; then
30367 if test "X$additional_libdir" = "X/usr/local/lib"; then
30368 if test -n "$GCC"; then
30370 linux*) haveit=yes;;
30374 if test -z "$haveit"; then
30376 for x in $LDFLAGS $LIBBABELTRACE; do
30378 acl_save_prefix="$prefix"
30379 prefix="$acl_final_prefix"
30380 acl_save_exec_prefix="$exec_prefix"
30381 exec_prefix="$acl_final_exec_prefix"
30383 exec_prefix="$acl_save_exec_prefix"
30384 prefix="$acl_save_prefix"
30386 if test "X$x" = "X-L$additional_libdir"; then
30391 if test -z "$haveit"; then
30392 if test -d "$additional_libdir"; then
30393 LIBBABELTRACE="${LIBBABELTRACE}${LIBBABELTRACE:+ }-L$additional_libdir"
30397 for x in $LDFLAGS $LTLIBBABELTRACE; do
30399 acl_save_prefix="$prefix"
30400 prefix="$acl_final_prefix"
30401 acl_save_exec_prefix="$exec_prefix"
30402 exec_prefix="$acl_final_exec_prefix"
30404 exec_prefix="$acl_save_exec_prefix"
30405 prefix="$acl_save_prefix"
30407 if test "X$x" = "X-L$additional_libdir"; then
30412 if test -z "$haveit"; then
30413 if test -d "$additional_libdir"; then
30414 LTLIBBABELTRACE="${LTLIBBABELTRACE}${LTLIBBABELTRACE:+ }-L$additional_libdir"
30421 dir=`echo "X$dep" | sed -e 's/^X-R//'`
30422 if test "$enable_rpath" != no; then
30424 for x in $rpathdirs; do
30425 if test "X$x" = "X$dir"; then
30430 if test -z "$haveit"; then
30431 rpathdirs="$rpathdirs $dir"
30434 for x in $ltrpathdirs; do
30435 if test "X$x" = "X$dir"; then
30440 if test -z "$haveit"; then
30441 ltrpathdirs="$ltrpathdirs $dir"
30446 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
30449 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
30452 LIBBABELTRACE="${LIBBABELTRACE}${LIBBABELTRACE:+ }$dep"
30453 LTLIBBABELTRACE="${LTLIBBABELTRACE}${LTLIBBABELTRACE:+ }$dep"
30459 if test "x$lib_type" = "xauto" || test "x$lib_type" = "xshared"; then
30460 LIBBABELTRACE="${LIBBABELTRACE}${LIBBABELTRACE:+ }-l$name"
30461 LTLIBBABELTRACE="${LTLIBBABELTRACE}${LTLIBBABELTRACE:+ }-l$name"
30463 LIBBABELTRACE="${LIBBABELTRACE}${LIBBABELTRACE:+ }-l:lib$name.$libext"
30464 LTLIBBABELTRACE="${LTLIBBABELTRACE}${LTLIBBABELTRACE:+ }-l:lib$name.$libext"
30471 if test "X$rpathdirs" != "X"; then
30472 if test -n "$hardcode_libdir_separator"; then
30474 for found_dir in $rpathdirs; do
30475 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
30477 acl_save_libdir="$libdir"
30479 eval flag=\"$hardcode_libdir_flag_spec\"
30480 libdir="$acl_save_libdir"
30481 LIBBABELTRACE="${LIBBABELTRACE}${LIBBABELTRACE:+ }$flag"
30483 for found_dir in $rpathdirs; do
30484 acl_save_libdir="$libdir"
30485 libdir="$found_dir"
30486 eval flag=\"$hardcode_libdir_flag_spec\"
30487 libdir="$acl_save_libdir"
30488 LIBBABELTRACE="${LIBBABELTRACE}${LIBBABELTRACE:+ }$flag"
30492 if test "X$ltrpathdirs" != "X"; then
30493 for found_dir in $ltrpathdirs; do
30494 LTLIBBABELTRACE="${LTLIBBABELTRACE}${LTLIBBABELTRACE:+ }-R$found_dir"
30499 ac_save_CPPFLAGS="$CPPFLAGS"
30501 for element in $INCBABELTRACE; do
30503 for x in $CPPFLAGS; do
30505 acl_save_prefix="$prefix"
30506 prefix="$acl_final_prefix"
30507 acl_save_exec_prefix="$exec_prefix"
30508 exec_prefix="$acl_final_exec_prefix"
30510 exec_prefix="$acl_save_exec_prefix"
30511 prefix="$acl_save_prefix"
30513 if test "X$x" = "X$element"; then
30518 if test -z "$haveit"; then
30519 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
30524 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libbabeltrace" >&5
30525 $as_echo_n "checking for libbabeltrace... " >&6; }
30526 if ${ac_cv_libbabeltrace+:} false; then :
30527 $as_echo_n "(cached) " >&6
30530 ac_save_LIBS="$LIBS"
30531 LIBS="$LIBS $LIBBABELTRACE"
30532 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30533 /* end confdefs.h. */
30534 #include <babeltrace/babeltrace.h>
30535 #include <babeltrace/ctf/events.h>
30536 #include <babeltrace/ctf/iterator.h>
30540 struct bt_iter_pos *pos = bt_iter_get_pos (bt_ctf_get_iter (NULL));
30541 struct bt_ctf_event *event = NULL;
30542 const struct bt_definition *scope;
30544 pos->type = BT_SEEK_BEGIN;
30545 bt_iter_set_pos (bt_ctf_get_iter (NULL), pos);
30546 scope = bt_ctf_get_top_level_scope (event,
30547 BT_STREAM_EVENT_HEADER);
30548 bt_ctf_get_uint64 (bt_ctf_get_field (event, scope, "id"));
30554 if ac_fn_c_try_link "$LINENO"; then :
30555 ac_cv_libbabeltrace=yes
30557 ac_cv_libbabeltrace=no
30559 rm -f core conftest.err conftest.$ac_objext \
30560 conftest$ac_exeext conftest.$ac_ext
30561 LIBS="$ac_save_LIBS"
30564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_libbabeltrace" >&5
30565 $as_echo "$ac_cv_libbabeltrace" >&6; }
30566 if test "$ac_cv_libbabeltrace" = yes; then
30567 HAVE_LIBBABELTRACE=yes
30569 $as_echo "#define HAVE_LIBBABELTRACE 1" >>confdefs.h
30571 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libbabeltrace" >&5
30572 $as_echo_n "checking how to link with libbabeltrace... " >&6; }
30573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBBABELTRACE" >&5
30574 $as_echo "$LIBBABELTRACE" >&6; }
30576 HAVE_LIBBABELTRACE=no
30577 CPPFLAGS="$ac_save_CPPFLAGS"
30587 CFLAGS=$saved_CFLAGS
30589 if test "$HAVE_LIBBABELTRACE" != yes; then
30590 if test "$with_babeltrace" = yes; then
30591 as_fn_error $? "babeltrace is missing or unusable" "$LINENO" 5
30593 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: babeltrace is missing or unusable; GDB is unable to read CTF data." >&5
30594 $as_echo "$as_me: WARNING: babeltrace is missing or unusable; GDB is unable to read CTF data." >&2;}
30601 # Check whether --with-xxhash was given.
30602 if test "${with_xxhash+set}" = set; then :
30603 withval=$with_xxhash;
30609 # Check whether --enable-libctf was given.
30610 if test "${enable_libctf+set}" = set; then :
30611 enableval=$enable_libctf;
30612 case "$enableval" in
30614 *) as_fn_error $? "Argument to enable/disable libctf must be yes or no" "$LINENO" 5 ;;
30622 if test "${enable_libctf}" = yes; then
30624 $as_echo "#define ENABLE_LIBCTF 1" >>confdefs.h
30626 LIBCTF="../libctf/libctf.la"
30627 CTF_DEPS="../libctf/libctf.la"
30635 # If nativefile (NAT_FILE) is not set in configure.nat, we link to an
30638 if test "x$with_xxhash" != "xno"; then
30649 acl_save_prefix="$prefix"
30650 prefix="$acl_final_prefix"
30651 acl_save_exec_prefix="$exec_prefix"
30652 exec_prefix="$acl_final_exec_prefix"
30654 eval additional_includedir=\"$includedir\"
30655 eval additional_libdir=\"$libdir\"
30657 exec_prefix="$acl_save_exec_prefix"
30658 prefix="$acl_save_prefix"
30661 # Check whether --with-libxxhash-prefix was given.
30662 if test "${with_libxxhash_prefix+set}" = set; then :
30663 withval=$with_libxxhash_prefix;
30664 if test "X$withval" = "Xno"; then
30667 if test "X$withval" = "X"; then
30669 acl_save_prefix="$prefix"
30670 prefix="$acl_final_prefix"
30671 acl_save_exec_prefix="$exec_prefix"
30672 exec_prefix="$acl_final_exec_prefix"
30674 eval additional_includedir=\"$includedir\"
30675 eval additional_libdir=\"$libdir\"
30677 exec_prefix="$acl_save_exec_prefix"
30678 prefix="$acl_save_prefix"
30681 additional_includedir="$withval/include"
30682 additional_libdir="$withval/lib"
30689 # Check whether --with-libxxhash-type was given.
30690 if test "${with_libxxhash_type+set}" = set; then :
30691 withval=$with_libxxhash_type; with_libxxhash_type=$withval
30693 with_libxxhash_type=auto
30696 lib_type=`eval echo \$with_libxxhash_type`
30703 names_already_handled=
30704 names_next_round='xxhash '
30705 while test -n "$names_next_round"; do
30706 names_this_round="$names_next_round"
30708 for name in $names_this_round; do
30710 for n in $names_already_handled; do
30711 if test "$n" = "$name"; then
30712 already_handled=yes
30716 if test -z "$already_handled"; then
30717 names_already_handled="$names_already_handled $name"
30718 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
30719 eval value=\"\$HAVE_LIB$uppername\"
30720 if test -n "$value"; then
30721 if test "$value" = yes; then
30722 eval value=\"\$LIB$uppername\"
30723 test -z "$value" || LIBXXHASH="${LIBXXHASH}${LIBXXHASH:+ }$value"
30724 eval value=\"\$LTLIB$uppername\"
30725 test -z "$value" || LTLIBXXHASH="${LTLIBXXHASH}${LTLIBXXHASH:+ }$value"
30734 if test $use_additional = yes; then
30735 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext" && test x$lib_type != xstatic; then
30736 found_dir="$additional_libdir"
30737 found_so="$additional_libdir/lib$name.$shlibext"
30738 if test -f "$additional_libdir/lib$name.la"; then
30739 found_la="$additional_libdir/lib$name.la"
30741 elif test x$lib_type != xshared; then
30742 if test -f "$additional_libdir/lib$name.$libext"; then
30743 found_dir="$additional_libdir"
30744 found_a="$additional_libdir/lib$name.$libext"
30745 if test -f "$additional_libdir/lib$name.la"; then
30746 found_la="$additional_libdir/lib$name.la"
30751 if test "X$found_dir" = "X"; then
30752 for x in $LDFLAGS $LTLIBXXHASH; do
30754 acl_save_prefix="$prefix"
30755 prefix="$acl_final_prefix"
30756 acl_save_exec_prefix="$exec_prefix"
30757 exec_prefix="$acl_final_exec_prefix"
30759 exec_prefix="$acl_save_exec_prefix"
30760 prefix="$acl_save_prefix"
30764 dir=`echo "X$x" | sed -e 's/^X-L//'`
30765 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext" && test x$lib_type != xstatic; then
30767 found_so="$dir/lib$name.$shlibext"
30768 if test -f "$dir/lib$name.la"; then
30769 found_la="$dir/lib$name.la"
30771 elif test x$lib_type != xshared; then
30772 if test -f "$dir/lib$name.$libext"; then
30774 found_a="$dir/lib$name.$libext"
30775 if test -f "$dir/lib$name.la"; then
30776 found_la="$dir/lib$name.la"
30782 if test "X$found_dir" != "X"; then
30787 if test "X$found_dir" != "X"; then
30788 LTLIBXXHASH="${LTLIBXXHASH}${LTLIBXXHASH:+ }-L$found_dir -l$name"
30789 if test "X$found_so" != "X"; then
30790 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
30791 LIBXXHASH="${LIBXXHASH}${LIBXXHASH:+ }$found_so"
30794 for x in $ltrpathdirs; do
30795 if test "X$x" = "X$found_dir"; then
30800 if test -z "$haveit"; then
30801 ltrpathdirs="$ltrpathdirs $found_dir"
30803 if test "$hardcode_direct" = yes; then
30804 LIBXXHASH="${LIBXXHASH}${LIBXXHASH:+ }$found_so"
30806 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
30807 LIBXXHASH="${LIBXXHASH}${LIBXXHASH:+ }$found_so"
30809 for x in $rpathdirs; do
30810 if test "X$x" = "X$found_dir"; then
30815 if test -z "$haveit"; then
30816 rpathdirs="$rpathdirs $found_dir"
30820 for x in $LDFLAGS $LIBXXHASH; do
30822 acl_save_prefix="$prefix"
30823 prefix="$acl_final_prefix"
30824 acl_save_exec_prefix="$exec_prefix"
30825 exec_prefix="$acl_final_exec_prefix"
30827 exec_prefix="$acl_save_exec_prefix"
30828 prefix="$acl_save_prefix"
30830 if test "X$x" = "X-L$found_dir"; then
30835 if test -z "$haveit"; then
30836 LIBXXHASH="${LIBXXHASH}${LIBXXHASH:+ }-L$found_dir"
30838 if test "$hardcode_minus_L" != no; then
30839 LIBXXHASH="${LIBXXHASH}${LIBXXHASH:+ }$found_so"
30841 LIBXXHASH="${LIBXXHASH}${LIBXXHASH:+ }-l$name"
30847 if test "X$found_a" != "X"; then
30848 LIBXXHASH="${LIBXXHASH}${LIBXXHASH:+ }$found_a"
30850 LIBXXHASH="${LIBXXHASH}${LIBXXHASH:+ }-L$found_dir -l$name"
30853 additional_includedir=
30854 case "$found_dir" in
30856 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
30857 additional_includedir="$basedir/include"
30860 if test "X$additional_includedir" != "X"; then
30861 if test "X$additional_includedir" != "X/usr/include"; then
30863 if test "X$additional_includedir" = "X/usr/local/include"; then
30864 if test -n "$GCC"; then
30866 linux*) haveit=yes;;
30870 if test -z "$haveit"; then
30871 for x in $CPPFLAGS $INCXXHASH; do
30873 acl_save_prefix="$prefix"
30874 prefix="$acl_final_prefix"
30875 acl_save_exec_prefix="$exec_prefix"
30876 exec_prefix="$acl_final_exec_prefix"
30878 exec_prefix="$acl_save_exec_prefix"
30879 prefix="$acl_save_prefix"
30881 if test "X$x" = "X-I$additional_includedir"; then
30886 if test -z "$haveit"; then
30887 if test -d "$additional_includedir"; then
30888 INCXXHASH="${INCXXHASH}${INCXXHASH:+ }-I$additional_includedir"
30894 if test -n "$found_la"; then
30895 save_libdir="$libdir"
30896 case "$found_la" in
30897 */* | *\\*) . "$found_la" ;;
30898 *) . "./$found_la" ;;
30900 libdir="$save_libdir"
30901 for dep in $dependency_libs; do
30904 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
30905 if test "X$additional_libdir" != "X/usr/lib"; then
30907 if test "X$additional_libdir" = "X/usr/local/lib"; then
30908 if test -n "$GCC"; then
30910 linux*) haveit=yes;;
30914 if test -z "$haveit"; then
30916 for x in $LDFLAGS $LIBXXHASH; do
30918 acl_save_prefix="$prefix"
30919 prefix="$acl_final_prefix"
30920 acl_save_exec_prefix="$exec_prefix"
30921 exec_prefix="$acl_final_exec_prefix"
30923 exec_prefix="$acl_save_exec_prefix"
30924 prefix="$acl_save_prefix"
30926 if test "X$x" = "X-L$additional_libdir"; then
30931 if test -z "$haveit"; then
30932 if test -d "$additional_libdir"; then
30933 LIBXXHASH="${LIBXXHASH}${LIBXXHASH:+ }-L$additional_libdir"
30937 for x in $LDFLAGS $LTLIBXXHASH; do
30939 acl_save_prefix="$prefix"
30940 prefix="$acl_final_prefix"
30941 acl_save_exec_prefix="$exec_prefix"
30942 exec_prefix="$acl_final_exec_prefix"
30944 exec_prefix="$acl_save_exec_prefix"
30945 prefix="$acl_save_prefix"
30947 if test "X$x" = "X-L$additional_libdir"; then
30952 if test -z "$haveit"; then
30953 if test -d "$additional_libdir"; then
30954 LTLIBXXHASH="${LTLIBXXHASH}${LTLIBXXHASH:+ }-L$additional_libdir"
30961 dir=`echo "X$dep" | sed -e 's/^X-R//'`
30962 if test "$enable_rpath" != no; then
30964 for x in $rpathdirs; do
30965 if test "X$x" = "X$dir"; then
30970 if test -z "$haveit"; then
30971 rpathdirs="$rpathdirs $dir"
30974 for x in $ltrpathdirs; do
30975 if test "X$x" = "X$dir"; then
30980 if test -z "$haveit"; then
30981 ltrpathdirs="$ltrpathdirs $dir"
30986 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
30989 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
30992 LIBXXHASH="${LIBXXHASH}${LIBXXHASH:+ }$dep"
30993 LTLIBXXHASH="${LTLIBXXHASH}${LTLIBXXHASH:+ }$dep"
30999 if test "x$lib_type" = "xauto" || test "x$lib_type" = "xshared"; then
31000 LIBXXHASH="${LIBXXHASH}${LIBXXHASH:+ }-l$name"
31001 LTLIBXXHASH="${LTLIBXXHASH}${LTLIBXXHASH:+ }-l$name"
31003 LIBXXHASH="${LIBXXHASH}${LIBXXHASH:+ }-l:lib$name.$libext"
31004 LTLIBXXHASH="${LTLIBXXHASH}${LTLIBXXHASH:+ }-l:lib$name.$libext"
31011 if test "X$rpathdirs" != "X"; then
31012 if test -n "$hardcode_libdir_separator"; then
31014 for found_dir in $rpathdirs; do
31015 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
31017 acl_save_libdir="$libdir"
31019 eval flag=\"$hardcode_libdir_flag_spec\"
31020 libdir="$acl_save_libdir"
31021 LIBXXHASH="${LIBXXHASH}${LIBXXHASH:+ }$flag"
31023 for found_dir in $rpathdirs; do
31024 acl_save_libdir="$libdir"
31025 libdir="$found_dir"
31026 eval flag=\"$hardcode_libdir_flag_spec\"
31027 libdir="$acl_save_libdir"
31028 LIBXXHASH="${LIBXXHASH}${LIBXXHASH:+ }$flag"
31032 if test "X$ltrpathdirs" != "X"; then
31033 for found_dir in $ltrpathdirs; do
31034 LTLIBXXHASH="${LTLIBXXHASH}${LTLIBXXHASH:+ }-R$found_dir"
31039 ac_save_CPPFLAGS="$CPPFLAGS"
31041 for element in $INCXXHASH; do
31043 for x in $CPPFLAGS; do
31045 acl_save_prefix="$prefix"
31046 prefix="$acl_final_prefix"
31047 acl_save_exec_prefix="$exec_prefix"
31048 exec_prefix="$acl_final_exec_prefix"
31050 exec_prefix="$acl_save_exec_prefix"
31051 prefix="$acl_save_prefix"
31053 if test "X$x" = "X$element"; then
31058 if test -z "$haveit"; then
31059 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
31064 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libxxhash" >&5
31065 $as_echo_n "checking for libxxhash... " >&6; }
31066 if ${ac_cv_libxxhash+:} false; then :
31067 $as_echo_n "(cached) " >&6
31070 ac_save_LIBS="$LIBS"
31071 LIBS="$LIBS $LIBXXHASH"
31072 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31073 /* end confdefs.h. */
31074 #include <xxhash.h>
31078 XXH32("foo", 3, 0);
31084 if ac_fn_c_try_link "$LINENO"; then :
31085 ac_cv_libxxhash=yes
31089 rm -f core conftest.err conftest.$ac_objext \
31090 conftest$ac_exeext conftest.$ac_ext
31091 LIBS="$ac_save_LIBS"
31094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_libxxhash" >&5
31095 $as_echo "$ac_cv_libxxhash" >&6; }
31096 if test "$ac_cv_libxxhash" = yes; then
31099 $as_echo "#define HAVE_LIBXXHASH 1" >>confdefs.h
31101 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libxxhash" >&5
31102 $as_echo_n "checking how to link with libxxhash... " >&6; }
31103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBXXHASH" >&5
31104 $as_echo "$LIBXXHASH" >&6; }
31107 CPPFLAGS="$ac_save_CPPFLAGS"
31117 if test "$HAVE_LIBXXHASH" != yes; then
31118 if test "$with_xxhash" = yes; then
31119 as_fn_error $? "xxhash is missing or unusable" "$LINENO" 5
31122 if test "x$with_xxhash" = "xauto"; then
31123 with_xxhash="$HAVE_LIBXXHASH"
31127 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use xxhash" >&5
31128 $as_echo_n "checking whether to use xxhash... " >&6; }
31129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_xxhash" >&5
31130 $as_echo "$with_xxhash" >&6; }
31134 if test "${nativefile}" != ""; then
31135 case "${nativefile}" in
31136 nm-*.h ) GDB_NM_FILE="config/${gdb_host_cpu}/${nativefile}" ;;
31137 * ) GDB_NM_FILE="${nativefile}"
31139 ac_config_links="$ac_config_links nm.h:$GDB_NM_FILE"
31142 cat >>confdefs.h <<_ACEOF
31143 #define GDB_NM_FILE "${GDB_NM_FILE}"
31151 for ac_prog in xsltproc
31153 # Extract the first word of "$ac_prog", so it can be a program name with args.
31154 set dummy $ac_prog; ac_word=$2
31155 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
31156 $as_echo_n "checking for $ac_word... " >&6; }
31157 if ${ac_cv_path_XSLTPROC+:} false; then :
31158 $as_echo_n "(cached) " >&6
31162 ac_cv_path_XSLTPROC="$XSLTPROC" # Let the user override the test with a path.
31165 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31166 for as_dir in $PATH
31169 test -z "$as_dir" && as_dir=.
31170 for ac_exec_ext in '' $ac_executable_extensions; do
31171 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
31172 ac_cv_path_XSLTPROC="$as_dir/$ac_word$ac_exec_ext"
31173 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
31183 XSLTPROC=$ac_cv_path_XSLTPROC
31184 if test -n "$XSLTPROC"; then
31185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XSLTPROC" >&5
31186 $as_echo "$XSLTPROC" >&6; }
31188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31189 $as_echo "no" >&6; }
31193 test -n "$XSLTPROC" && break
31195 test -n "$XSLTPROC" || XSLTPROC="missing"
31197 if test "x$USE_MAINTAINER_MODE" = xyes; then
31198 if test "${XSLTPROC}" = missing; then
31199 as_fn_error $? "unable to find xsltproc. maintainer-mode requires xsltproc." "$LINENO" 5
31207 $as_echo "#define GDB_DEFAULT_HOST_CHARSET \"UTF-8\"" >>confdefs.h
31211 # Check whether we will enable the inclusion of unit tests when
31214 # The default value of this option changes depending whether we're on
31215 # development mode (in which case it's "true") or not (in which case
31216 # it's "false"). The $development variable is set by the GDB_AC_COMMON
31217 # macro, which must therefore be used before GDB_AC_SELFTEST.
31219 if test "x$development" != xtrue && test "x$development" != xfalse; then :
31220 as_fn_error $? "Invalid value for \$development, got \"$development\", expecting \"true\" or \"false\"." "$LINENO" 5
31223 # Check whether --enable-unit-tests was given.
31224 if test "${enable_unit_tests+set}" = set; then :
31225 enableval=$enable_unit_tests; case "${enableval}" in
31226 yes) enable_unittests=true ;;
31227 no) enable_unittests=false ;;
31228 *) as_fn_error $? "bad value ${enableval} for --{enable,disable}-unit-tests option" "$LINENO" 5 ;;
31231 enable_unittests=$development
31235 if $enable_unittests; then
31237 $as_echo "#define GDB_SELF_TEST 1" >>confdefs.h
31240 CONFIG_OBS="$CONFIG_OBS \$(SELFTESTS_OBS)"
31241 CONFIG_SRCS="$CONFIG_SRCS \$(SELFTESTS_SRCS)"
31247 gdb_ac_transform=`echo "$program_transform_name" | sed -e 's/\\$\\$/\\$/g'`
31248 GDB_TRANSFORM_NAME=`echo gdb | sed -e "$gdb_ac_transform"`
31249 if test "x$GDB_TRANSFORM_NAME" = x; then
31250 GDB_TRANSFORM_NAME=gdb
31255 gdb_ac_transform=`echo "$program_transform_name" | sed -e 's/\\$\\$/\\$/g'`
31256 GCORE_TRANSFORM_NAME=`echo gcore | sed -e "$gdb_ac_transform"`
31257 if test "x$GCORE_TRANSFORM_NAME" = x; then
31258 GCORE_TRANSFORM_NAME=gcore
31262 ac_config_files="$ac_config_files gcore"
31264 ac_config_files="$ac_config_files Makefile gdb-gdb.gdb gdb-gdb.py doc/Makefile data-directory/Makefile"
31267 cat >confcache <<\_ACEOF
31268 # This file is a shell script that caches the results of configure
31269 # tests run on this system so they can be shared between configure
31270 # scripts and configure runs, see configure's option --config-cache.
31271 # It is not useful on other systems. If it contains results you don't
31272 # want to keep, you may remove or edit it.
31274 # config.status only pays attention to the cache file if you give it
31275 # the --recheck option to rerun configure.
31277 # `ac_cv_env_foo' variables (set or unset) will be overridden when
31278 # loading this file, other *unset* `ac_cv_foo' will be assigned the
31279 # following values.
31283 # The following way of writing the cache mishandles newlines in values,
31284 # but we know of no workaround that is simple, portable, and efficient.
31285 # So, we kill variables containing newlines.
31286 # Ultrix sh set writes to stderr and can't be redirected directly,
31287 # and sets the high bit in the cache file unless we assign to the vars.
31289 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
31290 eval ac_val=\$$ac_var
31294 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
31295 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
31298 _ | IFS | as_nl) ;; #(
31299 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
31300 *) { eval $ac_var=; unset $ac_var;} ;;
31306 case $as_nl`(ac_space=' '; set) 2>&1` in #(
31307 *${as_nl}ac_space=\ *)
31308 # `set' does not quote correctly, so add quotes: double-quote
31309 # substitution turns \\\\ into \\, and sed turns \\ into \.
31312 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
31315 # `set' quotes correctly as required by POSIX, so do not add quotes.
31316 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
31325 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
31327 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
31329 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
31330 if test -w "$cache_file"; then
31331 if test "x$cache_file" != "x/dev/null"; then
31332 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
31333 $as_echo "$as_me: updating cache $cache_file" >&6;}
31334 if test ! -f "$cache_file" || test -h "$cache_file"; then
31335 cat confcache >"$cache_file"
31337 case $cache_file in #(
31339 mv -f confcache "$cache_file"$$ &&
31340 mv -f "$cache_file"$$ "$cache_file" ;; #(
31342 mv -f confcache "$cache_file" ;;
31347 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
31348 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
31353 test "x$prefix" = xNONE && prefix=$ac_default_prefix
31354 # Let make expand exec_prefix.
31355 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
31357 DEFS=-DHAVE_CONFIG_H
31362 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
31363 # 1. Remove the extension, and $U if already installed.
31364 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
31365 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
31366 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
31367 # will be set to the directory where LIBOBJS objects are built.
31368 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
31369 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
31371 LIBOBJS=$ac_libobjs
31373 LTLIBOBJS=$ac_ltlibobjs
31376 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
31377 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
31378 Usually this means the macro was only invoked conditionally." "$LINENO" 5
31380 if test -z "${ENABLE_BFD_64_BIT_TRUE}" && test -z "${ENABLE_BFD_64_BIT_FALSE}"; then
31381 as_fn_error $? "conditional \"ENABLE_BFD_64_BIT\" was never defined.
31382 Usually this means the macro was only invoked conditionally." "$LINENO" 5
31384 if test -z "${HAVE_PYTHON_TRUE}" && test -z "${HAVE_PYTHON_FALSE}"; then
31385 as_fn_error $? "conditional \"HAVE_PYTHON\" was never defined.
31386 Usually this means the macro was only invoked conditionally." "$LINENO" 5
31388 if test -z "${HAVE_GUILE_TRUE}" && test -z "${HAVE_GUILE_FALSE}"; then
31389 as_fn_error $? "conditional \"HAVE_GUILE\" was never defined.
31390 Usually this means the macro was only invoked conditionally." "$LINENO" 5
31394 : "${CONFIG_STATUS=./config.status}"
31396 ac_clean_files_save=$ac_clean_files
31397 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
31398 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
31399 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
31401 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
31403 # Generated by $as_me.
31404 # Run this file to recreate the current configuration.
31405 # Compiler output produced by configure, useful for debugging
31406 # configure, is in config.log if it exists.
31409 ac_cs_recheck=false
31412 SHELL=\${CONFIG_SHELL-$SHELL}
31415 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
31416 ## -------------------- ##
31417 ## M4sh Initialization. ##
31418 ## -------------------- ##
31420 # Be more Bourne compatible
31421 DUALCASE=1; export DUALCASE # for MKS sh
31422 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
31425 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
31426 # is contrary to our usage. Disable this feature.
31427 alias -g '${1+"$@"}'='"$@"'
31428 setopt NO_GLOB_SUBST
31430 case `(set -o) 2>/dev/null` in #(
31442 # Printing a long string crashes Solaris 7 /usr/bin/printf.
31443 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
31444 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
31445 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
31446 # Prefer a ksh shell builtin over an external printf program on Solaris,
31447 # but without wasting forks for bash or zsh.
31448 if test -z "$BASH_VERSION$ZSH_VERSION" \
31449 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
31450 as_echo='print -r --'
31451 as_echo_n='print -rn --'
31452 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
31453 as_echo='printf %s\n'
31454 as_echo_n='printf %s'
31456 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
31457 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
31458 as_echo_n='/usr/ucb/echo -n'
31460 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
31461 as_echo_n_body='eval
31465 expr "X$arg" : "X\\(.*\\)$as_nl";
31466 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
31468 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
31470 export as_echo_n_body
31471 as_echo_n='sh -c $as_echo_n_body as_echo'
31473 export as_echo_body
31474 as_echo='sh -c $as_echo_body as_echo'
31477 # The user is always right.
31478 if test "${PATH_SEPARATOR+set}" != set; then
31480 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
31481 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
31488 # We need space, tab and new line, in precisely that order. Quoting is
31489 # there to prevent editors from complaining about space-tab.
31490 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
31491 # splitting by setting IFS to empty value.)
31494 # Find who we are. Look in the path if we contain no directory separator.
31497 *[\\/]* ) as_myself=$0 ;;
31498 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31499 for as_dir in $PATH
31502 test -z "$as_dir" && as_dir=.
31503 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
31509 # We did not find ourselves, most probably we were run as `sh COMMAND'
31510 # in which case we are not to be found in the path.
31511 if test "x$as_myself" = x; then
31514 if test ! -f "$as_myself"; then
31515 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
31519 # Unset variables that we do not need and which cause bugs (e.g. in
31520 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
31521 # suppresses any "Segmentation fault" message there. '((' could
31522 # trigger a bug in pdksh 5.2.14.
31523 for as_var in BASH_ENV ENV MAIL MAILPATH
31524 do eval test x\${$as_var+set} = xset \
31525 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
31538 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
31541 # as_fn_error STATUS ERROR [LINENO LOG_FD]
31542 # ----------------------------------------
31543 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
31544 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
31545 # script with STATUS, using 1 if that was 0.
31548 as_status=$1; test $as_status -eq 0 && as_status=1
31550 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
31551 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
31553 $as_echo "$as_me: error: $2" >&2
31554 as_fn_exit $as_status
31558 # as_fn_set_status STATUS
31559 # -----------------------
31560 # Set $? to STATUS, without forking.
31561 as_fn_set_status ()
31564 } # as_fn_set_status
31566 # as_fn_exit STATUS
31567 # -----------------
31568 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
31572 as_fn_set_status $1
31578 # Portably unset VAR.
31581 { eval $1=; unset $1;}
31583 as_unset=as_fn_unset
31584 # as_fn_append VAR VALUE
31585 # ----------------------
31586 # Append the text in VALUE to the end of the definition contained in VAR. Take
31587 # advantage of any shell optimizations that allow amortized linear growth over
31588 # repeated appends, instead of the typical quadratic growth present in naive
31590 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
31591 eval 'as_fn_append ()
31602 # as_fn_arith ARG...
31603 # ------------------
31604 # Perform arithmetic evaluation on the ARGs, and store the result in the
31605 # global $as_val. Take advantage of shells that can avoid forks. The arguments
31606 # must be portable across $(()) and expr.
31607 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
31608 eval 'as_fn_arith ()
31615 as_val=`expr "$@" || test $? -eq 1`
31620 if expr a : '\(a\)' >/dev/null 2>&1 &&
31621 test "X`expr 00001 : '.*\(...\)'`" = X001; then
31627 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
31628 as_basename=basename
31633 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
31639 as_me=`$as_basename -- "$0" ||
31640 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
31641 X"$0" : 'X\(//\)$' \| \
31642 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
31644 sed '/^.*\/\([^/][^/]*\)\/*$/{
31658 # Avoid depending upon Character Ranges.
31659 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
31660 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
31661 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
31662 as_cr_digits='0123456789'
31663 as_cr_alnum=$as_cr_Letters$as_cr_digits
31665 ECHO_C= ECHO_N= ECHO_T=
31666 case `echo -n x` in #(((((
31668 case `echo 'xy\c'` in
31669 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
31671 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
31678 rm -f conf$$ conf$$.exe conf$$.file
31679 if test -d conf$$.dir; then
31680 rm -f conf$$.dir/conf$$.file
31683 mkdir conf$$.dir 2>/dev/null
31685 if (echo >conf$$.file) 2>/dev/null; then
31686 if ln -s conf$$.file conf$$ 2>/dev/null; then
31688 # ... but there are two gotchas:
31689 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
31690 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
31691 # In both cases, we have to default to `cp -pR'.
31692 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
31694 elif ln conf$$.file conf$$ 2>/dev/null; then
31702 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
31703 rmdir conf$$.dir 2>/dev/null
31708 # Create "$as_dir" as a directory, including parents if necessary.
31713 -*) as_dir=./$as_dir;;
31715 test -d "$as_dir" || eval $as_mkdir_p || {
31719 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
31720 *) as_qdir=$as_dir;;
31722 as_dirs="'$as_qdir' $as_dirs"
31723 as_dir=`$as_dirname -- "$as_dir" ||
31724 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
31725 X"$as_dir" : 'X\(//\)[^/]' \| \
31726 X"$as_dir" : 'X\(//\)$' \| \
31727 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
31728 $as_echo X"$as_dir" |
31729 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
31733 /^X\(\/\/\)[^/].*/{
31746 test -d "$as_dir" && break
31748 test -z "$as_dirs" || eval "mkdir $as_dirs"
31749 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
31753 if mkdir -p . 2>/dev/null; then
31754 as_mkdir_p='mkdir -p "$as_dir"'
31756 test -d ./-p && rmdir ./-p
31761 # as_fn_executable_p FILE
31762 # -----------------------
31763 # Test if FILE is an executable regular file.
31764 as_fn_executable_p ()
31766 test -f "$1" && test -x "$1"
31767 } # as_fn_executable_p
31768 as_test_x='test -x'
31769 as_executable_p=as_fn_executable_p
31771 # Sed expression to map a string onto a valid CPP name.
31772 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
31774 # Sed expression to map a string onto a valid variable name.
31775 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
31779 ## ----------------------------------- ##
31780 ## Main body of $CONFIG_STATUS script. ##
31781 ## ----------------------------------- ##
31783 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
31785 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
31786 # Save the log message, to keep $0 and so on meaningful, and to
31787 # report actual input values of CONFIG_FILES etc. instead of their
31788 # values after options handling.
31790 This file was extended by $as_me, which was
31791 generated by GNU Autoconf 2.69. Invocation command line was
31793 CONFIG_FILES = $CONFIG_FILES
31794 CONFIG_HEADERS = $CONFIG_HEADERS
31795 CONFIG_LINKS = $CONFIG_LINKS
31796 CONFIG_COMMANDS = $CONFIG_COMMANDS
31799 on `(hostname || uname -n) 2>/dev/null | sed 1q`
31804 case $ac_config_files in *"
31805 "*) set x $ac_config_files; shift; ac_config_files=$*;;
31808 case $ac_config_headers in *"
31809 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
31813 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
31814 # Files that config.status was made for.
31815 config_files="$ac_config_files"
31816 config_headers="$ac_config_headers"
31817 config_links="$ac_config_links"
31818 config_commands="$ac_config_commands"
31822 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
31824 \`$as_me' instantiates files and other configuration actions
31825 from templates according to the current configuration. Unless the files
31826 and actions are specified as TAGs, all are instantiated by default.
31828 Usage: $0 [OPTION]... [TAG]...
31830 -h, --help print this help, then exit
31831 -V, --version print version number and configuration settings, then exit
31832 --config print configuration, then exit
31833 -q, --quiet, --silent
31834 do not print progress messages
31835 -d, --debug don't remove temporary files
31836 --recheck update $as_me by reconfiguring in the same conditions
31837 --file=FILE[:TEMPLATE]
31838 instantiate the configuration file FILE
31839 --header=FILE[:TEMPLATE]
31840 instantiate the configuration header FILE
31842 Configuration files:
31845 Configuration headers:
31848 Configuration links:
31851 Configuration commands:
31854 Report bugs to the package provider."
31857 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
31858 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
31861 configured by $0, generated by GNU Autoconf 2.69,
31862 with options \\"\$ac_cs_config\\"
31864 Copyright (C) 2012 Free Software Foundation, Inc.
31865 This config.status script is free software; the Free Software Foundation
31866 gives unlimited permission to copy, distribute and modify it."
31872 test -n "\$AWK" || AWK=awk
31875 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
31876 # The default lists apply if the user does not specify any file.
31882 ac_option=`expr "X$1" : 'X\([^=]*\)='`
31883 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
31887 ac_option=`expr "X$1" : 'X\([^=]*\)='`
31899 # Handling of the options.
31900 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
31902 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
31903 $as_echo "$ac_cs_version"; exit ;;
31904 --config | --confi | --conf | --con | --co | --c )
31905 $as_echo "$ac_cs_config"; exit ;;
31906 --debug | --debu | --deb | --de | --d | -d )
31908 --file | --fil | --fi | --f )
31911 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
31912 '') as_fn_error $? "missing file argument" ;;
31914 as_fn_append CONFIG_FILES " '$ac_optarg'"
31915 ac_need_defaults=false;;
31916 --header | --heade | --head | --hea )
31919 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
31921 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
31922 ac_need_defaults=false;;
31924 # Conflict between --help and --header
31925 as_fn_error $? "ambiguous option: \`$1'
31926 Try \`$0 --help' for more information.";;
31927 --help | --hel | -h )
31928 $as_echo "$ac_cs_usage"; exit ;;
31929 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
31930 | -silent | --silent | --silen | --sile | --sil | --si | --s)
31933 # This is an error.
31934 -*) as_fn_error $? "unrecognized option: \`$1'
31935 Try \`$0 --help' for more information." ;;
31937 *) as_fn_append ac_config_targets " $1"
31938 ac_need_defaults=false ;;
31944 ac_configure_extra_args=
31946 if $ac_cs_silent; then
31948 ac_configure_extra_args="$ac_configure_extra_args --silent"
31952 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
31953 if \$ac_cs_recheck; then
31954 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
31956 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
31957 CONFIG_SHELL='$SHELL'
31958 export CONFIG_SHELL
31963 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
31967 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
31968 ## Running $as_me. ##
31974 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
31980 # The HP-UX ksh and POSIX shell print the target directory to stdout
31981 # if CDPATH is set.
31982 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
31984 sed_quote_subst='$sed_quote_subst'
31985 double_quote_subst='$double_quote_subst'
31986 delay_variable_subst='$delay_variable_subst'
31987 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
31988 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
31989 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
31990 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
31991 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
31992 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
31993 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
31994 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
31995 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
31996 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
31997 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
31998 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
31999 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
32000 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
32001 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
32002 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
32003 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
32004 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
32005 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
32006 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
32007 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
32008 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
32009 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
32010 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
32011 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
32012 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
32013 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
32014 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
32015 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
32016 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
32017 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
32018 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
32019 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
32020 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
32021 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
32022 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
32023 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
32024 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
32025 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
32026 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
32027 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
32028 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
32029 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
32030 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
32031 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
32032 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
32033 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
32034 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
32035 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"`'
32036 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
32037 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
32038 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
32039 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
32040 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
32041 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
32042 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
32043 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
32044 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
32045 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
32046 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
32047 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
32048 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
32049 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
32050 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
32051 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
32052 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
32053 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
32054 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
32055 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
32056 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
32057 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
32058 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
32059 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
32060 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
32061 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
32062 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
32063 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
32064 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
32065 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
32066 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
32067 hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
32068 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
32069 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
32070 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
32071 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
32072 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
32073 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
32074 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
32075 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
32076 fix_srcfile_path='`$ECHO "$fix_srcfile_path" | $SED "$delay_single_quote_subst"`'
32077 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
32078 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
32079 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
32080 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
32081 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
32082 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
32083 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
32084 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
32085 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
32086 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
32087 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
32088 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
32089 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
32090 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
32091 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
32092 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
32093 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
32094 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
32095 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
32096 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
32097 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
32098 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
32099 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
32100 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
32101 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
32102 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
32103 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
32104 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
32105 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
32106 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
32107 compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
32108 predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
32109 postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
32110 predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
32111 postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
32112 compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
32113 LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
32114 reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
32115 reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
32116 old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
32117 compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
32118 GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
32119 lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
32120 lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
32121 lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
32122 lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
32123 lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
32124 archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
32125 enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
32126 export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
32127 whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
32128 compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
32129 old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
32130 old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
32131 archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
32132 archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
32133 module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
32134 module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
32135 with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
32136 allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
32137 no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
32138 hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
32139 hardcode_libdir_flag_spec_ld_CXX='`$ECHO "$hardcode_libdir_flag_spec_ld_CXX" | $SED "$delay_single_quote_subst"`'
32140 hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
32141 hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
32142 hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
32143 hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
32144 hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
32145 hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
32146 inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
32147 link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
32148 fix_srcfile_path_CXX='`$ECHO "$fix_srcfile_path_CXX" | $SED "$delay_single_quote_subst"`'
32149 always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
32150 export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
32151 exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
32152 include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
32153 prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
32154 file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
32155 hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
32156 compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
32157 predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
32158 postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
32159 predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
32160 postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
32161 compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
32164 LTCFLAGS='$LTCFLAGS'
32165 compiler='$compiler_DEFAULT'
32167 # A function that is used when there is no print builtin or printf.
32168 func_fallback_echo ()
32170 eval 'cat <<_LTECHO_EOF
32175 # Quote evaled strings.
32189 deplibs_check_method \
32198 lt_cv_sys_global_symbol_pipe \
32199 lt_cv_sys_global_symbol_to_cdecl \
32200 lt_cv_sys_global_symbol_to_c_name_address \
32201 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
32202 lt_prog_compiler_no_builtin_flag \
32203 lt_prog_compiler_wl \
32204 lt_prog_compiler_pic \
32205 lt_prog_compiler_static \
32206 lt_cv_prog_compiler_c_o \
32214 export_dynamic_flag_spec \
32215 whole_archive_flag_spec \
32216 compiler_needs_object \
32218 allow_undefined_flag \
32219 no_undefined_flag \
32220 hardcode_libdir_flag_spec \
32221 hardcode_libdir_flag_spec_ld \
32222 hardcode_libdir_separator \
32227 variables_saved_for_relink \
32229 library_names_spec \
32231 install_override_mode \
32235 compiler_lib_search_dirs \
32240 compiler_lib_search_path \
32244 lt_prog_compiler_no_builtin_flag_CXX \
32245 lt_prog_compiler_wl_CXX \
32246 lt_prog_compiler_pic_CXX \
32247 lt_prog_compiler_static_CXX \
32248 lt_cv_prog_compiler_c_o_CXX \
32249 export_dynamic_flag_spec_CXX \
32250 whole_archive_flag_spec_CXX \
32251 compiler_needs_object_CXX \
32253 allow_undefined_flag_CXX \
32254 no_undefined_flag_CXX \
32255 hardcode_libdir_flag_spec_CXX \
32256 hardcode_libdir_flag_spec_ld_CXX \
32257 hardcode_libdir_separator_CXX \
32258 fix_srcfile_path_CXX \
32259 exclude_expsyms_CXX \
32260 include_expsyms_CXX \
32261 file_list_spec_CXX \
32262 compiler_lib_search_dirs_CXX \
32263 predep_objects_CXX \
32264 postdep_objects_CXX \
32267 compiler_lib_search_path_CXX; do
32268 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
32269 *[\\\\\\\`\\"\\\$]*)
32270 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
32273 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
32278 # Double-quote double-evaled strings.
32279 for var in reload_cmds \
32280 old_postinstall_cmds \
32281 old_postuninstall_cmds \
32283 extract_expsyms_cmds \
32284 old_archive_from_new_cmds \
32285 old_archive_from_expsyms_cmds \
32287 archive_expsym_cmds \
32289 module_expsym_cmds \
32290 export_symbols_cmds \
32293 postuninstall_cmds \
32295 sys_lib_search_path_spec \
32296 sys_lib_dlsearch_path_spec \
32298 old_archive_cmds_CXX \
32299 old_archive_from_new_cmds_CXX \
32300 old_archive_from_expsyms_cmds_CXX \
32302 archive_expsym_cmds_CXX \
32304 module_expsym_cmds_CXX \
32305 export_symbols_cmds_CXX \
32306 prelink_cmds_CXX; do
32307 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
32308 *[\\\\\\\`\\"\\\$]*)
32309 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
32312 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
32317 ac_aux_dir='$ac_aux_dir'
32318 xsi_shell='$xsi_shell'
32319 lt_shell_append='$lt_shell_append'
32321 # See if we are running on zsh, and set the options which allow our
32322 # commands through without removal of \ escapes INIT.
32323 if test -n "\${ZSH_VERSION+set}" ; then
32324 setopt NO_GLOB_SUBST
32330 TIMESTAMP='$TIMESTAMP'
32336 ac_aux_dir='$ac_aux_dir'
32339 ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
32340 GDB_NM_FILE=$GDB_NM_FILE
32344 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
32346 # Handling of arguments.
32347 for ac_config_target in $ac_config_targets
32349 case $ac_config_target in
32350 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h:config.in" ;;
32351 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
32352 "depdir") CONFIG_COMMANDS="$CONFIG_COMMANDS depdir" ;;
32353 "jit-reader.h") CONFIG_FILES="$CONFIG_FILES jit-reader.h:jit-reader.in" ;;
32354 "nm.h") CONFIG_LINKS="$CONFIG_LINKS nm.h:$GDB_NM_FILE" ;;
32355 "gcore") CONFIG_FILES="$CONFIG_FILES gcore" ;;
32356 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
32357 "gdb-gdb.gdb") CONFIG_FILES="$CONFIG_FILES gdb-gdb.gdb" ;;
32358 "gdb-gdb.py") CONFIG_FILES="$CONFIG_FILES gdb-gdb.py" ;;
32359 "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
32360 "data-directory/Makefile") CONFIG_FILES="$CONFIG_FILES data-directory/Makefile" ;;
32362 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
32367 # If the user did not use the arguments to specify the items to instantiate,
32368 # then the envvar interface is used. Set only those that are not.
32369 # We use the long form for the default assignment because of an extremely
32370 # bizarre bug on SunOS 4.1.3.
32371 if $ac_need_defaults; then
32372 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
32373 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
32374 test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS=$config_links
32375 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
32378 # Have a temporary directory for convenience. Make it in the build tree
32379 # simply because there is no reason against having it here, and in addition,
32380 # creating and moving files from /tmp can sometimes cause problems.
32381 # Hook for its removal unless debugging.
32382 # Note that there is a small window in which the directory will not be cleaned:
32383 # after its creation but before its name has been assigned to `$tmp'.
32387 trap 'exit_status=$?
32388 : "${ac_tmp:=$tmp}"
32389 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
32391 trap 'as_fn_exit 1' 1 2 13 15
32393 # Create a (secure) tmp directory for tmp files.
32396 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
32400 tmp=./conf$$-$RANDOM
32401 (umask 077 && mkdir "$tmp")
32402 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
32405 # Set up the scripts for CONFIG_FILES section.
32406 # No need to generate them if there are no CONFIG_FILES.
32407 # This happens for instance with `./config.status config.h'.
32408 if test -n "$CONFIG_FILES"; then
32410 if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then
32411 ac_cs_awk_getline=:
32412 ac_cs_awk_pipe_init=
32413 ac_cs_awk_read_file='
32414 while ((getline aline < (F[key])) > 0)
32417 ac_cs_awk_pipe_fini=
32419 ac_cs_awk_getline=false
32420 ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\""
32421 ac_cs_awk_read_file='
32423 print "cat " F[key] " &&"
32424 '$ac_cs_awk_pipe_init
32425 # The final `:' finishes the AND list.
32426 ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }'
32428 ac_cr=`echo X | tr X '\015'`
32429 # On cygwin, bash can eat \r inside `` if the user requested igncr.
32430 # But we know of no other shell where ac_cr would be empty at this
32431 # point, so we can use a bashism as a fallback.
32432 if test "x$ac_cr" = x; then
32433 eval ac_cr=\$\'\\r\'
32435 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
32436 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
32439 ac_cs_awk_cr=$ac_cr
32442 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
32445 # Create commands to substitute file output variables.
32447 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
32448 echo 'cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&' &&
32449 echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' &&
32452 } >conf$$files.sh &&
32453 . ./conf$$files.sh ||
32454 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
32455 rm -f conf$$files.sh
32458 echo "cat >conf$$subs.awk <<_ACEOF" &&
32459 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
32461 } >conf$$subs.sh ||
32462 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
32463 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
32465 for ac_last_try in false false false false false :; do
32466 . ./conf$$subs.sh ||
32467 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
32469 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
32470 if test $ac_delim_n = $ac_delim_num; then
32472 elif $ac_last_try; then
32473 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
32475 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
32478 rm -f conf$$subs.sh
32480 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
32481 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
32485 s/^/S["/; s/!.*/"]=/
32495 s/\(.\{148\}\)..*/\1/
32497 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
32502 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
32509 s/\(.\{148\}\)..*/\1/
32511 s/["\\]/\\&/g; s/^/"/; s/$/"/
32515 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
32520 ' <conf$$subs.awk | sed '
32525 ' >>$CONFIG_STATUS || ac_write_fail=1
32526 rm -f conf$$subs.awk
32527 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
32529 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
32530 for (key in S) S_is_set[key] = 1
32532 \$ac_cs_awk_pipe_init
32536 nfields = split(line, field, "@")
32538 len = length(field[1])
32539 for (i = 2; i < nfields; i++) {
32541 keylen = length(key)
32542 if (S_is_set[key]) {
32544 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
32545 len += length(value) + length(field[++i])
32550 if (nfields == 3 && !substed) {
32552 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) {
32553 \$ac_cs_awk_read_file
32559 \$ac_cs_awk_pipe_fini
32562 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
32563 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
32564 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
32567 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
32568 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
32571 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
32572 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
32573 # trailing colons and then remove the whole line if VPATH becomes empty
32574 # (actually we leave an empty line to preserve line numbers).
32575 if test "x$srcdir" = x.; then
32576 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
32594 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
32595 fi # test -n "$CONFIG_FILES"
32597 # Set up the scripts for CONFIG_HEADERS section.
32598 # No need to generate them if there are no CONFIG_HEADERS.
32599 # This happens for instance with `./config.status Makefile'.
32600 if test -n "$CONFIG_HEADERS"; then
32601 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
32605 # Transform confdefs.h into an awk script `defines.awk', embedded as
32606 # here-document in config.status, that substitutes the proper values into
32607 # config.h.in to produce config.h.
32609 # Create a delimiter string that does not exist in confdefs.h, to ease
32610 # handling of long lines.
32612 for ac_last_try in false false :; do
32613 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
32614 if test -z "$ac_tt"; then
32616 elif $ac_last_try; then
32617 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
32619 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
32623 # For the awk script, D is an array of macro values keyed by name,
32624 # likewise P contains macro parameters if any. Preserve backslash
32625 # newline sequences.
32627 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
32629 s/.\{148\}/&'"$ac_delim"'/g
32632 s/^[ ]*#[ ]*define[ ][ ]*/ /
32639 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
32641 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
32645 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
32646 D["\1"]=" \3\\\\\\n"\\/p
32648 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
32653 s/.\{148\}/&'"$ac_delim"'/g
32658 s/["\\]/\\&/g; s/^/"/; s/$/"/p
32661 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
32663 ' <confdefs.h | sed '
32664 s/'"$ac_delim"'/"\\\
32665 "/g' >>$CONFIG_STATUS || ac_write_fail=1
32667 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
32668 for (key in D) D_is_set[key] = 1
32671 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
32673 split(line, arg, " ")
32674 if (arg[1] == "#") {
32678 defundef = substr(arg[1], 2)
32681 split(mac1, mac2, "(") #)
32683 prefix = substr(line, 1, index(line, defundef) - 1)
32684 if (D_is_set[macro]) {
32685 # Preserve the white space surrounding the "#".
32686 print prefix "define", macro P[macro] D[macro]
32689 # Replace #undef with comments. This is necessary, for example,
32690 # in the case of _POSIX_SOURCE, which is predefined and required
32691 # on some systems where configure will not decide to define it.
32692 if (defundef == "undef") {
32693 print "/*", prefix defundef, macro, "*/"
32701 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
32702 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
32703 fi # test -n "$CONFIG_HEADERS"
32706 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :L $CONFIG_LINKS :C $CONFIG_COMMANDS"
32711 :[FHLC]) ac_mode=$ac_tag; continue;;
32713 case $ac_mode$ac_tag in
32715 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
32716 :[FH]-) ac_tag=-:-;;
32717 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
32734 -) ac_f="$ac_tmp/stdin";;
32735 *) # Look for the file first in the build tree, then in the source tree
32736 # (if the path is not absolute). The absolute path cannot be DOS-style,
32737 # because $ac_f cannot contain `:'.
32741 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
32743 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
32745 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
32746 as_fn_append ac_file_inputs " '$ac_f'"
32749 # Let's still pretend it is `configure' which instantiates (i.e., don't
32750 # use $as_me), people would be surprised to read:
32751 # /* config.h. Generated by config.status. */
32752 configure_input='Generated from '`
32753 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
32755 if test x"$ac_file" != x-; then
32756 configure_input="$ac_file. $configure_input"
32757 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
32758 $as_echo "$as_me: creating $ac_file" >&6;}
32760 # Neutralize special characters interpreted by sed in replacement strings.
32761 case $configure_input in #(
32762 *\&* | *\|* | *\\* )
32763 ac_sed_conf_input=`$as_echo "$configure_input" |
32764 sed 's/[\\\\&|]/\\\\&/g'`;; #(
32765 *) ac_sed_conf_input=$configure_input;;
32769 *:-:* | *:-) cat >"$ac_tmp/stdin" \
32770 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
32775 ac_dir=`$as_dirname -- "$ac_file" ||
32776 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
32777 X"$ac_file" : 'X\(//\)[^/]' \| \
32778 X"$ac_file" : 'X\(//\)$' \| \
32779 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
32780 $as_echo X"$ac_file" |
32781 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
32785 /^X\(\/\/\)[^/].*/{
32798 as_dir="$ac_dir"; as_fn_mkdir_p
32802 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
32804 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
32805 # A ".." for each directory in $ac_dir_suffix.
32806 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
32807 case $ac_top_builddir_sub in
32808 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
32809 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
32812 ac_abs_top_builddir=$ac_pwd
32813 ac_abs_builddir=$ac_pwd$ac_dir_suffix
32814 # for backward compatibility:
32815 ac_top_builddir=$ac_top_build_prefix
32818 .) # We are building in place.
32820 ac_top_srcdir=$ac_top_builddir_sub
32821 ac_abs_top_srcdir=$ac_pwd ;;
32822 [\\/]* | ?:[\\/]* ) # Absolute name.
32823 ac_srcdir=$srcdir$ac_dir_suffix;
32824 ac_top_srcdir=$srcdir
32825 ac_abs_top_srcdir=$srcdir ;;
32826 *) # Relative name.
32827 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
32828 ac_top_srcdir=$ac_top_build_prefix$srcdir
32829 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
32831 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
32841 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
32842 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
32846 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
32847 # If the template does not know about datarootdir, expand it.
32848 # FIXME: This hack should be removed a few years after 2.60.
32849 ac_datarootdir_hack=; ac_datarootdir_seen=
32860 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
32861 *datarootdir*) ac_datarootdir_seen=yes;;
32862 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
32863 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
32864 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
32866 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
32867 ac_datarootdir_hack='
32868 s&@datadir@&$datadir&g
32869 s&@docdir@&$docdir&g
32870 s&@infodir@&$infodir&g
32871 s&@localedir@&$localedir&g
32872 s&@mandir@&$mandir&g
32873 s&\\\${datarootdir}&$datarootdir&g' ;;
32877 # Neutralize VPATH when `$srcdir' = `.'.
32878 # Shell code in configure.ac might set extrasub.
32879 # FIXME: do we really want to maintain this feature?
32880 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
32881 ac_sed_extra="$ac_vpsub
32884 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
32886 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
32887 s|@configure_input@|$ac_sed_conf_input|;t t
32888 s&@top_builddir@&$ac_top_builddir_sub&;t t
32889 s&@top_build_prefix@&$ac_top_build_prefix&;t t
32890 s&@srcdir@&$ac_srcdir&;t t
32891 s&@abs_srcdir@&$ac_abs_srcdir&;t t
32892 s&@top_srcdir@&$ac_top_srcdir&;t t
32893 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
32894 s&@builddir@&$ac_builddir&;t t
32895 s&@abs_builddir@&$ac_abs_builddir&;t t
32896 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
32897 s&@INSTALL@&$ac_INSTALL&;t t
32898 $ac_datarootdir_hack
32900 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
32901 if $ac_cs_awk_getline; then
32902 $AWK -f "$ac_tmp/subs.awk"
32904 $AWK -f "$ac_tmp/subs.awk" | $SHELL
32906 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
32908 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
32909 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
32910 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
32911 "$ac_tmp/out"`; test -z "$ac_out"; } &&
32912 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
32913 which seems to be undefined. Please make sure it is defined" >&5
32914 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
32915 which seems to be undefined. Please make sure it is defined" >&2;}
32917 rm -f "$ac_tmp/stdin"
32919 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
32920 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
32922 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
32928 if test x"$ac_file" != x-; then
32930 $as_echo "/* $configure_input */" \
32931 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
32932 } >"$ac_tmp/config.h" \
32933 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
32934 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
32935 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
32936 $as_echo "$as_me: $ac_file is unchanged" >&6;}
32939 mv "$ac_tmp/config.h" "$ac_file" \
32940 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
32943 $as_echo "/* $configure_input */" \
32944 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
32945 || as_fn_error $? "could not create -" "$LINENO" 5
32953 if test "$ac_source" = "$ac_file" && test "$srcdir" = '.'; then
32956 # Prefer the file from the source tree if names are identical.
32957 if test "$ac_source" = "$ac_file" || test ! -r "$ac_source"; then
32958 ac_source=$srcdir/$ac_source
32961 { $as_echo "$as_me:${as_lineno-$LINENO}: linking $ac_source to $ac_file" >&5
32962 $as_echo "$as_me: linking $ac_source to $ac_file" >&6;}
32964 if test ! -r "$ac_source"; then
32965 as_fn_error $? "$ac_source: file not found" "$LINENO" 5
32969 # Try a relative symlink, then a hard link, then a copy.
32971 [\\/$]* | ?:[\\/]* ) ac_rel_source=$ac_source ;;
32972 *) ac_rel_source=$ac_top_build_prefix$ac_source ;;
32974 ln -s "$ac_rel_source" "$ac_file" 2>/dev/null ||
32975 ln "$ac_source" "$ac_file" 2>/dev/null ||
32976 cp -p "$ac_source" "$ac_file" ||
32977 as_fn_error $? "cannot link or copy $ac_source to $ac_file" "$LINENO" 5
32980 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
32981 $as_echo "$as_me: executing $ac_file commands" >&6;}
32986 case $ac_file$ac_mode in
32987 "config.h":H) echo > stamp-h ;;
32990 # See if we are running on zsh, and set the options which allow our
32991 # commands through without removal of \ escapes.
32992 if test -n "${ZSH_VERSION+set}" ; then
32993 setopt NO_GLOB_SUBST
32996 cfgfile="${ofile}T"
32997 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
33000 cat <<_LT_EOF >> "$cfgfile"
33003 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
33004 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
33005 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
33006 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
33008 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
33009 # 2006, 2007, 2008, 2009 Free Software Foundation, Inc.
33010 # Written by Gordon Matzigkeit, 1996
33012 # This file is part of GNU Libtool.
33014 # GNU Libtool is free software; you can redistribute it and/or
33015 # modify it under the terms of the GNU General Public License as
33016 # published by the Free Software Foundation; either version 2 of
33017 # the License, or (at your option) any later version.
33019 # As a special exception to the GNU General Public License,
33020 # if you distribute this file as part of a program or library that
33021 # is built using GNU Libtool, you may include this file under the
33022 # same distribution terms that you use for the rest of that program.
33024 # GNU Libtool is distributed in the hope that it will be useful,
33025 # but WITHOUT ANY WARRANTY; without even the implied warranty of
33026 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
33027 # GNU General Public License for more details.
33029 # You should have received a copy of the GNU General Public License
33030 # along with GNU Libtool; see the file COPYING. If not, a copy
33031 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
33032 # obtained by writing to the Free Software Foundation, Inc.,
33033 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
33036 # The names of the tagged configurations supported by this script.
33037 available_tags="CXX "
33039 # ### BEGIN LIBTOOL CONFIG
33041 # Which release of libtool.m4 was used?
33042 macro_version=$macro_version
33043 macro_revision=$macro_revision
33045 # Whether or not to build shared libraries.
33046 build_libtool_libs=$enable_shared
33048 # Whether or not to build static libraries.
33049 build_old_libs=$enable_static
33051 # What type of objects to build.
33054 # Whether or not to optimize for fast installation.
33055 fast_install=$enable_fast_install
33057 # Shell to use when invoking shell scripts.
33060 # An echo program that protects backslashes.
33064 host_alias=$host_alias
33068 # The build system.
33069 build_alias=$build_alias
33073 # A sed program that does not truncate output.
33076 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
33077 Xsed="\$SED -e 1s/^X//"
33079 # A grep program that handles long lines.
33085 # A literal string matcher.
33088 # A BSD- or MS-compatible name lister.
33091 # Whether we need soft or hard links.
33094 # What is the maximum length of a command?
33095 max_cmd_len=$max_cmd_len
33097 # Object file suffix (normally "o").
33100 # Executable file suffix (normally "").
33103 # whether the shell understands "unset".
33106 # turn spaces into newlines.
33109 # turn newlines into spaces.
33112 # An object symbol dumper.
33113 OBJDUMP=$lt_OBJDUMP
33115 # Method to check whether dependent libraries are shared objects.
33116 deplibs_check_method=$lt_deplibs_check_method
33118 # Command to use when deplibs_check_method == "file_magic".
33119 file_magic_cmd=$lt_file_magic_cmd
33123 AR_FLAGS=$lt_AR_FLAGS
33125 # A symbol stripping program.
33128 # Commands used to install an old-style archive.
33130 old_postinstall_cmds=$lt_old_postinstall_cmds
33131 old_postuninstall_cmds=$lt_old_postuninstall_cmds
33133 # Whether to use a lock for old archive extraction.
33134 lock_old_archive_extraction=$lock_old_archive_extraction
33139 # LTCC compiler flags.
33140 LTCFLAGS=$lt_CFLAGS
33142 # Take the output of nm and produce a listing of raw symbols and C names.
33143 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
33145 # Transform the output of nm in a proper C declaration.
33146 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
33148 # Transform the output of nm in a C name address pair.
33149 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
33151 # Transform the output of nm in a C name address pair when lib prefix is needed.
33152 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
33154 # The name of the directory that contains temporary libtool files.
33157 # Used to examine libraries when file_magic_cmd begins with "file".
33158 MAGIC_CMD=$MAGIC_CMD
33160 # Must we lock files when doing compilation?
33161 need_locks=$lt_need_locks
33163 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
33164 DSYMUTIL=$lt_DSYMUTIL
33166 # Tool to change global to local symbols on Mac OS X.
33169 # Tool to manipulate fat objects and archives on Mac OS X.
33172 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
33175 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
33176 OTOOL64=$lt_OTOOL64
33178 # Old archive suffix (normally "a").
33181 # Shared library suffix (normally ".so").
33182 shrext_cmds=$lt_shrext_cmds
33184 # The commands to extract the exported symbol list from a shared archive.
33185 extract_expsyms_cmds=$lt_extract_expsyms_cmds
33187 # Variables whose values should be saved in libtool wrapper scripts and
33188 # restored at link time.
33189 variables_saved_for_relink=$lt_variables_saved_for_relink
33191 # Do we need the "lib" prefix for modules?
33192 need_lib_prefix=$need_lib_prefix
33194 # Do we need a version for libraries?
33195 need_version=$need_version
33197 # Library versioning type.
33198 version_type=$version_type
33200 # Shared library runtime path variable.
33201 runpath_var=$runpath_var
33203 # Shared library path variable.
33204 shlibpath_var=$shlibpath_var
33206 # Is shlibpath searched before the hard-coded library search path?
33207 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
33209 # Format of library name prefix.
33210 libname_spec=$lt_libname_spec
33212 # List of archive names. First name is the real one, the rest are links.
33213 # The last name is the one that the linker finds with -lNAME
33214 library_names_spec=$lt_library_names_spec
33216 # The coded name of the library, if different from the real name.
33217 soname_spec=$lt_soname_spec
33219 # Permission mode override for installation of shared libraries.
33220 install_override_mode=$lt_install_override_mode
33222 # Command to use after installation of a shared archive.
33223 postinstall_cmds=$lt_postinstall_cmds
33225 # Command to use after uninstallation of a shared archive.
33226 postuninstall_cmds=$lt_postuninstall_cmds
33228 # Commands used to finish a libtool library installation in a directory.
33229 finish_cmds=$lt_finish_cmds
33231 # As "finish_cmds", except a single script fragment to be evaled but
33233 finish_eval=$lt_finish_eval
33235 # Whether we should hardcode library paths into libraries.
33236 hardcode_into_libs=$hardcode_into_libs
33238 # Compile-time system search path for libraries.
33239 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
33241 # Run-time system search path for libraries.
33242 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
33244 # Whether dlopen is supported.
33245 dlopen_support=$enable_dlopen
33247 # Whether dlopen of programs is supported.
33248 dlopen_self=$enable_dlopen_self
33250 # Whether dlopen of statically linked programs is supported.
33251 dlopen_self_static=$enable_dlopen_self_static
33253 # Commands to strip libraries.
33254 old_striplib=$lt_old_striplib
33255 striplib=$lt_striplib
33258 # The linker used to build libraries.
33261 # How to create reloadable object files.
33262 reload_flag=$lt_reload_flag
33263 reload_cmds=$lt_reload_cmds
33265 # Commands used to build an old-style archive.
33266 old_archive_cmds=$lt_old_archive_cmds
33268 # A language specific compiler.
33271 # Is the compiler the GNU compiler?
33274 # Compiler flag to turn off builtin functions.
33275 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
33277 # How to pass a linker flag through the compiler.
33278 wl=$lt_lt_prog_compiler_wl
33280 # Additional compiler flags for building library objects.
33281 pic_flag=$lt_lt_prog_compiler_pic
33283 # Compiler flag to prevent dynamic linking.
33284 link_static_flag=$lt_lt_prog_compiler_static
33286 # Does compiler simultaneously support -c and -o options?
33287 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
33289 # Whether or not to add -lc for building shared libraries.
33290 build_libtool_need_lc=$archive_cmds_need_lc
33292 # Whether or not to disallow shared libs when runtime libs are static.
33293 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
33295 # Compiler flag to allow reflexive dlopens.
33296 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
33298 # Compiler flag to generate shared objects directly from archives.
33299 whole_archive_flag_spec=$lt_whole_archive_flag_spec
33301 # Whether the compiler copes with passing no objects directly.
33302 compiler_needs_object=$lt_compiler_needs_object
33304 # Create an old-style archive from a shared archive.
33305 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
33307 # Create a temporary old-style archive to link instead of a shared archive.
33308 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
33310 # Commands used to build a shared archive.
33311 archive_cmds=$lt_archive_cmds
33312 archive_expsym_cmds=$lt_archive_expsym_cmds
33314 # Commands used to build a loadable module if different from building
33315 # a shared archive.
33316 module_cmds=$lt_module_cmds
33317 module_expsym_cmds=$lt_module_expsym_cmds
33319 # Whether we are building with GNU ld or not.
33320 with_gnu_ld=$lt_with_gnu_ld
33322 # Flag that allows shared libraries with undefined symbols to be built.
33323 allow_undefined_flag=$lt_allow_undefined_flag
33325 # Flag that enforces no undefined symbols.
33326 no_undefined_flag=$lt_no_undefined_flag
33328 # Flag to hardcode \$libdir into a binary during linking.
33329 # This must work even if \$libdir does not exist
33330 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
33332 # If ld is used when linking, flag to hardcode \$libdir into a binary
33333 # during linking. This must work even if \$libdir does not exist.
33334 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
33336 # Whether we need a single "-rpath" flag with a separated argument.
33337 hardcode_libdir_separator=$lt_hardcode_libdir_separator
33339 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
33340 # DIR into the resulting binary.
33341 hardcode_direct=$hardcode_direct
33343 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
33344 # DIR into the resulting binary and the resulting library dependency is
33345 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
33346 # library is relocated.
33347 hardcode_direct_absolute=$hardcode_direct_absolute
33349 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
33350 # into the resulting binary.
33351 hardcode_minus_L=$hardcode_minus_L
33353 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
33354 # into the resulting binary.
33355 hardcode_shlibpath_var=$hardcode_shlibpath_var
33357 # Set to "yes" if building a shared library automatically hardcodes DIR
33358 # into the library and all subsequent libraries and executables linked
33360 hardcode_automatic=$hardcode_automatic
33362 # Set to yes if linker adds runtime paths of dependent libraries
33363 # to runtime path list.
33364 inherit_rpath=$inherit_rpath
33366 # Whether libtool must link a program against all its dependency libraries.
33367 link_all_deplibs=$link_all_deplibs
33369 # Fix the shell variable \$srcfile for the compiler.
33370 fix_srcfile_path=$lt_fix_srcfile_path
33372 # Set to "yes" if exported symbols are required.
33373 always_export_symbols=$always_export_symbols
33375 # The commands to list exported symbols.
33376 export_symbols_cmds=$lt_export_symbols_cmds
33378 # Symbols that should not be listed in the preloaded symbols.
33379 exclude_expsyms=$lt_exclude_expsyms
33381 # Symbols that must always be exported.
33382 include_expsyms=$lt_include_expsyms
33384 # Commands necessary for linking programs (against libraries) with templates.
33385 prelink_cmds=$lt_prelink_cmds
33387 # Specify filename containing input files.
33388 file_list_spec=$lt_file_list_spec
33390 # How to hardcode a shared library path into an executable.
33391 hardcode_action=$hardcode_action
33393 # The directories searched by this compiler when creating a shared library.
33394 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
33396 # Dependencies to place before and after the objects being linked to
33397 # create a shared library.
33398 predep_objects=$lt_predep_objects
33399 postdep_objects=$lt_postdep_objects
33400 predeps=$lt_predeps
33401 postdeps=$lt_postdeps
33403 # The library search path used internally by the compiler when linking
33404 # a shared library.
33405 compiler_lib_search_path=$lt_compiler_lib_search_path
33407 # ### END LIBTOOL CONFIG
33413 cat <<\_LT_EOF >> "$cfgfile"
33414 # AIX sometimes has problems with the GCC collect2 program. For some
33415 # reason, if we set the COLLECT_NAMES environment variable, the problems
33416 # vanish in a puff of smoke.
33417 if test "X${COLLECT_NAMES+set}" != Xset; then
33419 export COLLECT_NAMES
33426 ltmain="$ac_aux_dir/ltmain.sh"
33429 # We use sed instead of cat because bash on DJGPP gets confused if
33430 # if finds mixed CR/LF and LF-only lines. Since sed operates in
33431 # text mode, it properly converts lines to CR/LF. This bash problem
33432 # is reportedly fixed, but why not run on old versions too?
33433 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
33434 || (rm -f "$cfgfile"; exit 1)
33438 cat << \_LT_EOF >> "$cfgfile"
33440 # func_dirname file append nondir_replacement
33441 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
33442 # otherwise set result to NONDIR_REPLACEMENT.
33446 */*) func_dirname_result="${1%/*}${2}" ;;
33447 * ) func_dirname_result="${3}" ;;
33451 # func_basename file
33454 func_basename_result="${1##*/}"
33457 # func_dirname_and_basename file append nondir_replacement
33458 # perform func_basename and func_dirname in a single function
33460 # dirname: Compute the dirname of FILE. If nonempty,
33461 # add APPEND to the result, otherwise set result
33462 # to NONDIR_REPLACEMENT.
33463 # value returned in "$func_dirname_result"
33464 # basename: Compute filename of FILE.
33465 # value retuned in "$func_basename_result"
33466 # Implementation must be kept synchronized with func_dirname
33467 # and func_basename. For efficiency, we do not delegate to
33468 # those functions but instead duplicate the functionality here.
33469 func_dirname_and_basename ()
33472 */*) func_dirname_result="${1%/*}${2}" ;;
33473 * ) func_dirname_result="${3}" ;;
33475 func_basename_result="${1##*/}"
33478 # func_stripname prefix suffix name
33479 # strip PREFIX and SUFFIX off of NAME.
33480 # PREFIX and SUFFIX must not contain globbing or regex special
33481 # characters, hashes, percent signs, but SUFFIX may contain a leading
33482 # dot (in which case that matches only a dot).
33485 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
33486 # positional parameters, so assign one to ordinary parameter first.
33487 func_stripname_result=${3}
33488 func_stripname_result=${func_stripname_result#"${1}"}
33489 func_stripname_result=${func_stripname_result%"${2}"}
33495 func_opt_split_opt=${1%%=*}
33496 func_opt_split_arg=${1#*=}
33503 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
33504 *) func_lo2o_result=${1} ;;
33508 # func_xform libobj-or-source
33511 func_xform_result=${1%.*}.lo
33514 # func_arith arithmetic-term...
33517 func_arith_result=$(( $* ))
33521 # STRING may not start with a hyphen.
33524 func_len_result=${#1}
33529 *) # Bourne compatible functions.
33530 cat << \_LT_EOF >> "$cfgfile"
33532 # func_dirname file append nondir_replacement
33533 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
33534 # otherwise set result to NONDIR_REPLACEMENT.
33537 # Extract subdirectory from the argument.
33538 func_dirname_result=`$ECHO "${1}" | $SED "$dirname"`
33539 if test "X$func_dirname_result" = "X${1}"; then
33540 func_dirname_result="${3}"
33542 func_dirname_result="$func_dirname_result${2}"
33546 # func_basename file
33549 func_basename_result=`$ECHO "${1}" | $SED "$basename"`
33553 # func_stripname prefix suffix name
33554 # strip PREFIX and SUFFIX off of NAME.
33555 # PREFIX and SUFFIX must not contain globbing or regex special
33556 # characters, hashes, percent signs, but SUFFIX may contain a leading
33557 # dot (in which case that matches only a dot).
33558 # func_strip_suffix prefix name
33562 .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
33563 *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
33568 my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
33569 my_sed_long_arg='1s/^-[^=]*=//'
33574 func_opt_split_opt=`$ECHO "${1}" | $SED "$my_sed_long_opt"`
33575 func_opt_split_arg=`$ECHO "${1}" | $SED "$my_sed_long_arg"`
33581 func_lo2o_result=`$ECHO "${1}" | $SED "$lo2o"`
33584 # func_xform libobj-or-source
33587 func_xform_result=`$ECHO "${1}" | $SED 's/\.[^.]*$/.lo/'`
33590 # func_arith arithmetic-term...
33593 func_arith_result=`expr "$@"`
33597 # STRING may not start with a hyphen.
33600 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
33606 case $lt_shell_append in
33608 cat << \_LT_EOF >> "$cfgfile"
33610 # func_append var value
33611 # Append VALUE to the end of shell variable VAR.
33619 cat << \_LT_EOF >> "$cfgfile"
33621 # func_append var value
33622 # Append VALUE to the end of shell variable VAR.
33633 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
33634 || (rm -f "$cfgfile"; exit 1)
33636 mv -f "$cfgfile" "$ofile" ||
33637 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
33641 cat <<_LT_EOF >> "$ofile"
33643 # ### BEGIN LIBTOOL TAG CONFIG: CXX
33645 # The linker used to build libraries.
33648 # How to create reloadable object files.
33649 reload_flag=$lt_reload_flag_CXX
33650 reload_cmds=$lt_reload_cmds_CXX
33652 # Commands used to build an old-style archive.
33653 old_archive_cmds=$lt_old_archive_cmds_CXX
33655 # A language specific compiler.
33656 CC=$lt_compiler_CXX
33658 # Is the compiler the GNU compiler?
33661 # Compiler flag to turn off builtin functions.
33662 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
33664 # How to pass a linker flag through the compiler.
33665 wl=$lt_lt_prog_compiler_wl_CXX
33667 # Additional compiler flags for building library objects.
33668 pic_flag=$lt_lt_prog_compiler_pic_CXX
33670 # Compiler flag to prevent dynamic linking.
33671 link_static_flag=$lt_lt_prog_compiler_static_CXX
33673 # Does compiler simultaneously support -c and -o options?
33674 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
33676 # Whether or not to add -lc for building shared libraries.
33677 build_libtool_need_lc=$archive_cmds_need_lc_CXX
33679 # Whether or not to disallow shared libs when runtime libs are static.
33680 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
33682 # Compiler flag to allow reflexive dlopens.
33683 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
33685 # Compiler flag to generate shared objects directly from archives.
33686 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
33688 # Whether the compiler copes with passing no objects directly.
33689 compiler_needs_object=$lt_compiler_needs_object_CXX
33691 # Create an old-style archive from a shared archive.
33692 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
33694 # Create a temporary old-style archive to link instead of a shared archive.
33695 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
33697 # Commands used to build a shared archive.
33698 archive_cmds=$lt_archive_cmds_CXX
33699 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
33701 # Commands used to build a loadable module if different from building
33702 # a shared archive.
33703 module_cmds=$lt_module_cmds_CXX
33704 module_expsym_cmds=$lt_module_expsym_cmds_CXX
33706 # Whether we are building with GNU ld or not.
33707 with_gnu_ld=$lt_with_gnu_ld_CXX
33709 # Flag that allows shared libraries with undefined symbols to be built.
33710 allow_undefined_flag=$lt_allow_undefined_flag_CXX
33712 # Flag that enforces no undefined symbols.
33713 no_undefined_flag=$lt_no_undefined_flag_CXX
33715 # Flag to hardcode \$libdir into a binary during linking.
33716 # This must work even if \$libdir does not exist
33717 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
33719 # If ld is used when linking, flag to hardcode \$libdir into a binary
33720 # during linking. This must work even if \$libdir does not exist.
33721 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
33723 # Whether we need a single "-rpath" flag with a separated argument.
33724 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
33726 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
33727 # DIR into the resulting binary.
33728 hardcode_direct=$hardcode_direct_CXX
33730 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
33731 # DIR into the resulting binary and the resulting library dependency is
33732 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
33733 # library is relocated.
33734 hardcode_direct_absolute=$hardcode_direct_absolute_CXX
33736 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
33737 # into the resulting binary.
33738 hardcode_minus_L=$hardcode_minus_L_CXX
33740 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
33741 # into the resulting binary.
33742 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
33744 # Set to "yes" if building a shared library automatically hardcodes DIR
33745 # into the library and all subsequent libraries and executables linked
33747 hardcode_automatic=$hardcode_automatic_CXX
33749 # Set to yes if linker adds runtime paths of dependent libraries
33750 # to runtime path list.
33751 inherit_rpath=$inherit_rpath_CXX
33753 # Whether libtool must link a program against all its dependency libraries.
33754 link_all_deplibs=$link_all_deplibs_CXX
33756 # Fix the shell variable \$srcfile for the compiler.
33757 fix_srcfile_path=$lt_fix_srcfile_path_CXX
33759 # Set to "yes" if exported symbols are required.
33760 always_export_symbols=$always_export_symbols_CXX
33762 # The commands to list exported symbols.
33763 export_symbols_cmds=$lt_export_symbols_cmds_CXX
33765 # Symbols that should not be listed in the preloaded symbols.
33766 exclude_expsyms=$lt_exclude_expsyms_CXX
33768 # Symbols that must always be exported.
33769 include_expsyms=$lt_include_expsyms_CXX
33771 # Commands necessary for linking programs (against libraries) with templates.
33772 prelink_cmds=$lt_prelink_cmds_CXX
33774 # Specify filename containing input files.
33775 file_list_spec=$lt_file_list_spec_CXX
33777 # How to hardcode a shared library path into an executable.
33778 hardcode_action=$hardcode_action_CXX
33780 # The directories searched by this compiler when creating a shared library.
33781 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
33783 # Dependencies to place before and after the objects being linked to
33784 # create a shared library.
33785 predep_objects=$lt_predep_objects_CXX
33786 postdep_objects=$lt_postdep_objects_CXX
33787 predeps=$lt_predeps_CXX
33788 postdeps=$lt_postdeps_CXX
33790 # The library search path used internally by the compiler when linking
33791 # a shared library.
33792 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
33794 # ### END LIBTOOL TAG CONFIG: CXX
33798 "depdir":C) $SHELL $ac_aux_dir/mkinstalldirs $DEPDIR ;;
33799 "nm.h":L) echo > stamp-nmh ;;
33800 "gcore":F) chmod +x gcore ;;
33808 ac_clean_files=$ac_clean_files_save
33810 test $ac_write_fail = 0 ||
33811 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
33814 # configure is writing to config.log, and then calls config.status.
33815 # config.status does its own redirection, appending to config.log.
33816 # Unfortunately, on DOS this fails, as config.log is still kept open
33817 # by configure, so config.status won't be able to write to it; its
33818 # output is simply discarded. So we exec the FD to /dev/null,
33819 # effectively closing config.log, so it can be properly (re)opened and
33820 # appended to by config.status. When coming back to configure, we
33821 # need to make the FD available again.
33822 if test "$no_create" != yes; then
33824 ac_config_status_args=
33825 test "$silent" = yes &&
33826 ac_config_status_args="$ac_config_status_args --quiet"
33828 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
33830 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
33831 # would make configure fail if this is the last instruction.
33832 $ac_cs_success || as_fn_exit 1
33836 # CONFIG_SUBDIRS section.
33838 if test "$no_recursion" != yes; then
33840 # Remove --cache-file, --srcdir, and --disable-option-checking arguments
33841 # so they do not pile up.
33842 ac_sub_configure_args=
33844 eval "set x $ac_configure_args"
33848 if test -n "$ac_prev"; then
33853 -cache-file | --cache-file | --cache-fil | --cache-fi \
33854 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
33855 ac_prev=cache_file ;;
33856 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
33857 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
33860 --config-cache | -C)
33862 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
33864 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
33866 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
33868 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
33870 --disable-option-checking)
33874 *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
33876 as_fn_append ac_sub_configure_args " '$ac_arg'" ;;
33880 # Always prepend --prefix to ensure using the same prefix
33881 # in subdir configurations.
33882 ac_arg="--prefix=$prefix"
33884 *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
33886 ac_sub_configure_args="'$ac_arg' $ac_sub_configure_args"
33889 if test "$silent" = yes; then
33890 ac_sub_configure_args="--silent $ac_sub_configure_args"
33893 # Always prepend --disable-option-checking to silence warnings, since
33894 # different subdirs can have different --enable and --with options.
33895 ac_sub_configure_args="--disable-option-checking $ac_sub_configure_args"
33898 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
33900 # Do not complain, so a configure script can configure whichever
33901 # parts of a large source tree are present.
33902 test -d "$srcdir/$ac_dir" || continue
33904 ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
33905 $as_echo "$as_me:${as_lineno-$LINENO}: $ac_msg" >&5
33906 $as_echo "$ac_msg" >&6
33907 as_dir="$ac_dir"; as_fn_mkdir_p
33911 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
33913 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
33914 # A ".." for each directory in $ac_dir_suffix.
33915 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
33916 case $ac_top_builddir_sub in
33917 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
33918 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
33921 ac_abs_top_builddir=$ac_pwd
33922 ac_abs_builddir=$ac_pwd$ac_dir_suffix
33923 # for backward compatibility:
33924 ac_top_builddir=$ac_top_build_prefix
33927 .) # We are building in place.
33929 ac_top_srcdir=$ac_top_builddir_sub
33930 ac_abs_top_srcdir=$ac_pwd ;;
33931 [\\/]* | ?:[\\/]* ) # Absolute name.
33932 ac_srcdir=$srcdir$ac_dir_suffix;
33933 ac_top_srcdir=$srcdir
33934 ac_abs_top_srcdir=$srcdir ;;
33935 *) # Relative name.
33936 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
33937 ac_top_srcdir=$ac_top_build_prefix$srcdir
33938 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
33940 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
33945 # Check for guested configure; otherwise get Cygnus style configure.
33946 if test -f "$ac_srcdir/configure.gnu"; then
33947 ac_sub_configure=$ac_srcdir/configure.gnu
33948 elif test -f "$ac_srcdir/configure"; then
33949 ac_sub_configure=$ac_srcdir/configure
33950 elif test -f "$ac_srcdir/configure.in"; then
33951 # This should be Cygnus configure.
33952 ac_sub_configure=$ac_aux_dir/configure
33954 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: no configuration information is in $ac_dir" >&5
33955 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
33959 # The recursion is here.
33960 if test -n "$ac_sub_configure"; then
33961 # Make the cache file name correct relative to the subdirectory.
33962 case $cache_file in
33963 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
33964 *) # Relative name.
33965 ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
33968 { $as_echo "$as_me:${as_lineno-$LINENO}: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
33969 $as_echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
33970 # The eval makes quoting arguments work.
33971 eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
33972 --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
33973 as_fn_error $? "$ac_sub_configure failed for $ac_dir" "$LINENO" 5
33979 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
33980 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
33981 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}