2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69 for PCRE 8.35.
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."
275 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
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.
589 PACKAGE_TARNAME
='pcre'
590 PACKAGE_VERSION
='8.35'
591 PACKAGE_STRING
='PCRE 8.35'
595 ac_unique_file
="pcre.h.in"
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 ac_subst_vars
='am__EXEEXT_FALSE
651 DISTCHECK_CONFIGURE_FLAGS
652 EXTRA_LIBPCRECPP_LDFLAGS
653 EXTRA_LIBPCREPOSIX_LDFLAGS
654 EXTRA_LIBPCRE32_LDFLAGS
655 EXTRA_LIBPCRE16_LDFLAGS
656 EXTRA_LIBPCRE_LDFLAGS
669 WITH_REBUILD_CHARTABLES_FALSE
670 WITH_REBUILD_CHARTABLES_TRUE
679 pcre_have_bits_type_traits
680 pcre_have_type_traits
761 INSTALL_STRIP_PROGRAM
803 program_transform_name
816 enable_option_checking
818 enable_dependency_tracking
832 enable_rebuild_chartables
835 enable_unicode_properties
838 enable_newline_is_crlf
839 enable_newline_is_anycrlf
840 enable_newline_is_any
844 enable_stack_for_recursion
846 enable_pcregrep_libbz2
847 with_pcregrep_bufsize
848 enable_pcretest_libedit
849 enable_pcretest_libreadline
850 with_posix_malloc_threshold
852 with_parens_nest_limit
854 with_match_limit_recursion
858 ac_precious_vars
='build_alias
880 # Initialize some variables set by options.
882 ac_init_version
=false
883 ac_unrecognized_opts
=
885 # The variables have the same names as the options, with
886 # dashes changed to underlines.
894 program_transform_name
=s
,x
,x
,
902 # Installation directory options.
903 # These are left unexpanded so users can "make install exec_prefix=/foo"
904 # and all the variables that are supposed to be based on exec_prefix
905 # by default will actually change.
906 # Use braces instead of parens because sh, perl, etc. also accept them.
907 # (The list follows the same order as the GNU Coding Standards.)
908 bindir
='${exec_prefix}/bin'
909 sbindir
='${exec_prefix}/sbin'
910 libexecdir
='${exec_prefix}/libexec'
911 datarootdir
='${prefix}/share'
912 datadir
='${datarootdir}'
913 sysconfdir
='${prefix}/etc'
914 sharedstatedir
='${prefix}/com'
915 localstatedir
='${prefix}/var'
916 includedir
='${prefix}/include'
917 oldincludedir
='/usr/include'
918 docdir
='${datarootdir}/doc/${PACKAGE_TARNAME}'
919 infodir
='${datarootdir}/info'
924 libdir
='${exec_prefix}/lib'
925 localedir
='${datarootdir}/locale'
926 mandir
='${datarootdir}/man'
932 # If the previous option needs an argument, assign it.
933 if test -n "$ac_prev"; then
934 eval $ac_prev=\
$ac_option
940 *=?
*) ac_optarg
=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
945 # Accept the important Cygnus configure options, so we can diagnose typos.
947 case $ac_dashdash$ac_option in
951 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
953 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
956 -build |
--build |
--buil |
--bui |
--bu)
957 ac_prev
=build_alias
;;
958 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
959 build_alias
=$ac_optarg ;;
961 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
962 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
963 ac_prev
=cache_file
;;
964 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
965 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
966 cache_file
=$ac_optarg ;;
969 cache_file
=config.cache
;;
971 -datadir |
--datadir |
--datadi |
--datad)
973 -datadir=* |
--datadir=* |
--datadi=* |
--datad=*)
974 datadir
=$ac_optarg ;;
976 -datarootdir |
--datarootdir |
--datarootdi |
--datarootd |
--dataroot \
977 |
--dataroo |
--dataro |
--datar)
978 ac_prev
=datarootdir
;;
979 -datarootdir=* |
--datarootdir=* |
--datarootdi=* |
--datarootd=* \
980 |
--dataroot=* |
--dataroo=* |
--dataro=* |
--datar=*)
981 datarootdir
=$ac_optarg ;;
983 -disable-* |
--disable-*)
984 ac_useropt
=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
985 # Reject names that are not valid shell variable names.
986 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
987 as_fn_error $?
"invalid feature name: $ac_useropt"
988 ac_useropt_orig
=$ac_useropt
989 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
990 case $ac_user_opts in
994 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
995 ac_unrecognized_sep
=', ';;
997 eval enable_
$ac_useropt=no
;;
999 -docdir |
--docdir |
--docdi |
--doc |
--do)
1001 -docdir=* |
--docdir=* |
--docdi=* |
--doc=* |
--do=*)
1002 docdir
=$ac_optarg ;;
1004 -dvidir |
--dvidir |
--dvidi |
--dvid |
--dvi |
--dv)
1006 -dvidir=* |
--dvidir=* |
--dvidi=* |
--dvid=* |
--dvi=* |
--dv=*)
1007 dvidir
=$ac_optarg ;;
1009 -enable-* |
--enable-*)
1010 ac_useropt
=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1011 # Reject names that are not valid shell variable names.
1012 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1013 as_fn_error $?
"invalid feature name: $ac_useropt"
1014 ac_useropt_orig
=$ac_useropt
1015 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1016 case $ac_user_opts in
1018 "enable_
$ac_useropt"
1020 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1021 ac_unrecognized_sep
=', ';;
1023 eval enable_
$ac_useropt=\
$ac_optarg ;;
1025 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
1026 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
1027 |
--exec |
--exe |
--ex)
1028 ac_prev
=exec_prefix
;;
1029 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
1030 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
1031 |
--exec=* |
--exe=* |
--ex=*)
1032 exec_prefix
=$ac_optarg ;;
1034 -gas |
--gas |
--ga |
--g)
1035 # Obsolete; use --with-gas.
1038 -help |
--help |
--hel |
--he |
-h)
1039 ac_init_help
=long
;;
1040 -help=r
* |
--help=r
* |
--hel=r
* |
--he=r
* |
-hr*)
1041 ac_init_help
=recursive
;;
1042 -help=s
* |
--help=s
* |
--hel=s
* |
--he=s
* |
-hs*)
1043 ac_init_help
=short
;;
1045 -host |
--host |
--hos |
--ho)
1046 ac_prev
=host_alias
;;
1047 -host=* |
--host=* |
--hos=* |
--ho=*)
1048 host_alias
=$ac_optarg ;;
1050 -htmldir |
--htmldir |
--htmldi |
--htmld |
--html |
--htm |
--ht)
1052 -htmldir=* |
--htmldir=* |
--htmldi=* |
--htmld=* |
--html=* |
--htm=* \
1054 htmldir
=$ac_optarg ;;
1056 -includedir |
--includedir |
--includedi |
--included |
--include \
1057 |
--includ |
--inclu |
--incl |
--inc)
1058 ac_prev
=includedir
;;
1059 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
1060 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
1061 includedir
=$ac_optarg ;;
1063 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
1065 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
1066 infodir
=$ac_optarg ;;
1068 -libdir |
--libdir |
--libdi |
--libd)
1070 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
1071 libdir
=$ac_optarg ;;
1073 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
1074 |
--libexe |
--libex |
--libe)
1075 ac_prev
=libexecdir
;;
1076 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
1077 |
--libexe=* |
--libex=* |
--libe=*)
1078 libexecdir
=$ac_optarg ;;
1080 -localedir |
--localedir |
--localedi |
--localed |
--locale)
1081 ac_prev
=localedir
;;
1082 -localedir=* |
--localedir=* |
--localedi=* |
--localed=* |
--locale=*)
1083 localedir
=$ac_optarg ;;
1085 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
1086 |
--localstate |
--localstat |
--localsta |
--localst |
--locals)
1087 ac_prev
=localstatedir
;;
1088 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
1089 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* |
--locals=*)
1090 localstatedir
=$ac_optarg ;;
1092 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
1094 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
1095 mandir
=$ac_optarg ;;
1097 -nfp |
--nfp |
--nf)
1098 # Obsolete; use --without-fp.
1101 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
1102 |
--no-cr |
--no-c |
-n)
1105 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
1106 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
1109 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
1110 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
1111 |
--oldin |
--oldi |
--old |
--ol |
--o)
1112 ac_prev
=oldincludedir
;;
1113 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
1114 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
1115 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
1116 oldincludedir
=$ac_optarg ;;
1118 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
1120 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
1121 prefix
=$ac_optarg ;;
1123 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
1124 |
--program-pre |
--program-pr |
--program-p)
1125 ac_prev
=program_prefix
;;
1126 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
1127 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
1128 program_prefix
=$ac_optarg ;;
1130 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
1131 |
--program-suf |
--program-su |
--program-s)
1132 ac_prev
=program_suffix
;;
1133 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
1134 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
1135 program_suffix
=$ac_optarg ;;
1137 -program-transform-name |
--program-transform-name \
1138 |
--program-transform-nam |
--program-transform-na \
1139 |
--program-transform-n |
--program-transform- \
1140 |
--program-transform |
--program-transfor \
1141 |
--program-transfo |
--program-transf \
1142 |
--program-trans |
--program-tran \
1143 |
--progr-tra |
--program-tr |
--program-t)
1144 ac_prev
=program_transform_name
;;
1145 -program-transform-name=* |
--program-transform-name=* \
1146 |
--program-transform-nam=* |
--program-transform-na=* \
1147 |
--program-transform-n=* |
--program-transform-=* \
1148 |
--program-transform=* |
--program-transfor=* \
1149 |
--program-transfo=* |
--program-transf=* \
1150 |
--program-trans=* |
--program-tran=* \
1151 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
1152 program_transform_name
=$ac_optarg ;;
1154 -pdfdir |
--pdfdir |
--pdfdi |
--pdfd |
--pdf |
--pd)
1156 -pdfdir=* |
--pdfdir=* |
--pdfdi=* |
--pdfd=* |
--pdf=* |
--pd=*)
1157 pdfdir
=$ac_optarg ;;
1159 -psdir |
--psdir |
--psdi |
--psd |
--ps)
1161 -psdir=* |
--psdir=* |
--psdi=* |
--psd=* |
--ps=*)
1164 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
1165 |
-silent |
--silent |
--silen |
--sile |
--sil)
1168 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
1170 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
1172 sbindir
=$ac_optarg ;;
1174 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
1175 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
1176 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
1178 ac_prev
=sharedstatedir
;;
1179 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
1180 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
1181 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
1183 sharedstatedir
=$ac_optarg ;;
1185 -site |
--site |
--sit)
1187 -site=* |
--site=* |
--sit=*)
1190 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
1192 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
1193 srcdir
=$ac_optarg ;;
1195 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
1196 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
1197 ac_prev
=sysconfdir
;;
1198 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
1199 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
1200 sysconfdir
=$ac_optarg ;;
1202 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
1203 ac_prev
=target_alias
;;
1204 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
1205 target_alias
=$ac_optarg ;;
1207 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
1210 -version |
--version |
--versio |
--versi |
--vers |
-V)
1211 ac_init_version
=: ;;
1214 ac_useropt
=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1215 # Reject names that are not valid shell variable names.
1216 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1217 as_fn_error $?
"invalid package name: $ac_useropt"
1218 ac_useropt_orig
=$ac_useropt
1219 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1220 case $ac_user_opts in
1224 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1225 ac_unrecognized_sep
=', ';;
1227 eval with_
$ac_useropt=\
$ac_optarg ;;
1229 -without-* |
--without-*)
1230 ac_useropt
=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1231 # Reject names that are not valid shell variable names.
1232 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1233 as_fn_error $?
"invalid package name: $ac_useropt"
1234 ac_useropt_orig
=$ac_useropt
1235 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1236 case $ac_user_opts in
1240 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1241 ac_unrecognized_sep
=', ';;
1243 eval with_
$ac_useropt=no
;;
1246 # Obsolete; use --with-x.
1249 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
1250 |
--x-incl |
--x-inc |
--x-in |
--x-i)
1251 ac_prev
=x_includes
;;
1252 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
1253 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
1254 x_includes
=$ac_optarg ;;
1256 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
1257 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
1258 ac_prev
=x_libraries
;;
1259 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
1260 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
1261 x_libraries
=$ac_optarg ;;
1263 -*) as_fn_error $?
"unrecognized option: \`$ac_option'
1264 Try \`$0 --help' for more information"
1268 ac_envvar
=`expr "x$ac_option" : 'x\([^=]*\)='`
1269 # Reject names that are not valid shell variable names.
1270 case $ac_envvar in #(
1271 '' |
[0-9]* |
*[!_
$as_cr_alnum]* )
1272 as_fn_error $?
"invalid variable name: \`$ac_envvar'" ;;
1274 eval $ac_envvar=\
$ac_optarg
1275 export $ac_envvar ;;
1278 # FIXME: should be removed in autoconf 3.0.
1279 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1280 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
1281 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1282 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1288 if test -n "$ac_prev"; then
1289 ac_option
=--`echo $ac_prev | sed 's/_/-/g'`
1290 as_fn_error $?
"missing argument to $ac_option"
1293 if test -n "$ac_unrecognized_opts"; then
1294 case $enable_option_checking in
1296 fatal
) as_fn_error $?
"unrecognized options: $ac_unrecognized_opts" ;;
1297 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1301 # Check all directory arguments for consistency.
1302 for ac_var
in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1303 datadir sysconfdir sharedstatedir localstatedir includedir \
1304 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1305 libdir localedir mandir
1307 eval ac_val
=\$
$ac_var
1308 # Remove trailing slashes.
1311 ac_val
=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1312 eval $ac_var=\
$ac_val;;
1314 # Be sure to have absolute directory names.
1316 [\\/$
]* | ?
:[\\/]* ) continue;;
1317 NONE |
'' ) case $ac_var in *prefix
) continue;; esac;;
1319 as_fn_error $?
"expected an absolute directory name for --$ac_var: $ac_val"
1322 # There might be people who depend on the old broken behavior: `$host'
1323 # used to hold the argument of --host etc.
1324 # FIXME: To remove some day.
1327 target
=$target_alias
1329 # FIXME: To remove some day.
1330 if test "x$host_alias" != x
; then
1331 if test "x$build_alias" = x
; then
1332 cross_compiling
=maybe
1333 elif test "x$build_alias" != "x$host_alias"; then
1339 test -n "$host_alias" && ac_tool_prefix
=$host_alias-
1341 test "$silent" = yes && exec 6>/dev
/null
1344 ac_pwd
=`pwd` && test -n "$ac_pwd" &&
1345 ac_ls_di
=`ls -di .` &&
1346 ac_pwd_ls_di
=`cd "$ac_pwd" && ls -di .` ||
1347 as_fn_error $?
"working directory cannot be determined"
1348 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1349 as_fn_error $?
"pwd does not report name of working directory"
1352 # Find the source files, if location was not specified.
1353 if test -z "$srcdir"; then
1354 ac_srcdir_defaulted
=yes
1355 # Try the directory containing this script, then the parent directory.
1356 ac_confdir
=`$as_dirname -- "$as_myself" ||
1357 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1358 X"$as_myself" : 'X\(//\)[^/]' \| \
1359 X"$as_myself" : 'X\(//\)$' \| \
1360 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1361 $as_echo X"$as_myself" |
1362 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1380 if test ! -r "$srcdir/$ac_unique_file"; then
1384 ac_srcdir_defaulted
=no
1386 if test ! -r "$srcdir/$ac_unique_file"; then
1387 test "$ac_srcdir_defaulted" = yes && srcdir
="$ac_confdir or .."
1388 as_fn_error $?
"cannot find sources ($ac_unique_file) in $srcdir"
1390 ac_msg
="sources are in $srcdir, but \`cd $srcdir' does not work"
1392 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1394 # When building in place, set srcdir=.
1395 if test "$ac_abs_confdir" = "$ac_pwd"; then
1398 # Remove unnecessary trailing slashes from srcdir.
1399 # Double slashes in file names in object file debugging info
1400 # mess up M-x gdb in Emacs.
1402 */) srcdir
=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1404 for ac_var
in $ac_precious_vars; do
1405 eval ac_env_
${ac_var}_set=\${${ac_var}+set}
1406 eval ac_env_
${ac_var}_value
=\$
${ac_var}
1407 eval ac_cv_env_
${ac_var}_set=\${${ac_var}+set}
1408 eval ac_cv_env_
${ac_var}_value
=\$
${ac_var}
1412 # Report the --help message.
1414 if test "$ac_init_help" = "long"; then
1415 # Omit some internal or obsolete options to make the list less imposing.
1416 # This message is too long to be a string in the A/UX 3.1 sh.
1418 \`configure' configures PCRE 8.35 to adapt to many kinds of systems.
1420 Usage: $0 [OPTION]... [VAR=VALUE]...
1422 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1423 VAR=VALUE. See below for descriptions of some of the useful variables.
1425 Defaults for the options are specified in brackets.
1428 -h, --help display this help and exit
1429 --help=short display options specific to this package
1430 --help=recursive display the short help of all the included packages
1431 -V, --version display version information and exit
1432 -q, --quiet, --silent do not print \`checking ...' messages
1433 --cache-file=FILE cache test results in FILE [disabled]
1434 -C, --config-cache alias for \`--cache-file=config.cache'
1435 -n, --no-create do not create output files
1436 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1438 Installation directories:
1439 --prefix=PREFIX install architecture-independent files in PREFIX
1440 [$ac_default_prefix]
1441 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1444 By default, \`make install' will install all the files in
1445 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1446 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1447 for instance \`--prefix=\$HOME'.
1449 For better control, use the options below.
1451 Fine tuning of the installation directories:
1452 --bindir=DIR user executables [EPREFIX/bin]
1453 --sbindir=DIR system admin executables [EPREFIX/sbin]
1454 --libexecdir=DIR program executables [EPREFIX/libexec]
1455 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1456 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1457 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1458 --libdir=DIR object code libraries [EPREFIX/lib]
1459 --includedir=DIR C header files [PREFIX/include]
1460 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1461 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1462 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1463 --infodir=DIR info documentation [DATAROOTDIR/info]
1464 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1465 --mandir=DIR man documentation [DATAROOTDIR/man]
1466 --docdir=DIR documentation root [DATAROOTDIR/doc/pcre]
1467 --htmldir=DIR html documentation [DOCDIR]
1468 --dvidir=DIR dvi documentation [DOCDIR]
1469 --pdfdir=DIR pdf documentation [DOCDIR]
1470 --psdir=DIR ps documentation [DOCDIR]
1476 --program-prefix=PREFIX prepend PREFIX to installed program names
1477 --program-suffix=SUFFIX append SUFFIX to installed program names
1478 --program-transform-name=PROGRAM run
sed PROGRAM on installed program names
1481 --build=BUILD configure
for building on BUILD
[guessed
]
1482 --host=HOST cross-compile to build programs to run on HOST
[BUILD
]
1486 if test -n "$ac_init_help"; then
1487 case $ac_init_help in
1488 short | recursive
) echo "Configuration of PCRE 8.35:";;
1493 --disable-option-checking ignore unrecognized
--enable/--with options
1494 --disable-FEATURE do not include FEATURE
(same as
--enable-FEATURE=no
)
1495 --enable-FEATURE[=ARG
] include FEATURE
[ARG
=yes]
1496 --enable-silent-rules less verbose build output
(undo
: "make V=1")
1497 --disable-silent-rules verbose build output
(undo
: "make V=0")
1498 --enable-dependency-tracking
1499 do not reject slow dependency extractors
1500 --disable-dependency-tracking
1501 speeds up one-time build
1502 --enable-shared[=PKGS
] build shared libraries
[default
=yes]
1503 --enable-static[=PKGS
] build static libraries
[default
=yes]
1504 --enable-fast-install[=PKGS
]
1505 optimize
for fast installation
[default
=yes]
1506 --disable-libtool-lock avoid locking
(might
break parallel builds
)
1507 --disable-pcre8 disable
8 bit character support
1508 --enable-pcre16 enable 16 bit character support
1509 --enable-pcre32 enable 32 bit character support
1510 --disable-cpp disable C
++ support
1511 --enable-jit enable Just-In-Time compiling support
1512 --disable-pcregrep-jit disable JIT support
in pcregrep
1513 --enable-rebuild-chartables
1514 rebuild character tables
in current locale
1515 --enable-utf8 another name
for --enable-utf. Kept only
for
1516 compatibility reasons
1517 --enable-utf enable UTF-
8/16/32 support
(incompatible with
1519 --enable-unicode-properties
1520 enable Unicode properties support
(implies
1522 --enable-newline-is-cr use CR as newline character
1523 --enable-newline-is-lf use LF as newline character
(default
)
1524 --enable-newline-is-crlf
1525 use CRLF as newline sequence
1526 --enable-newline-is-anycrlf
1527 use CR
, LF
, or CRLF as newline sequence
1528 --enable-newline-is-any use any valid Unicode newline sequence
1529 --enable-bsr-anycrlf \R matches only CR
, LF
, CRLF by default
1530 --enable-ebcdic assume EBCDIC coding rather than ASCII
; incompatible
1531 with
--enable-utf; use only
in (uncommon
) EBCDIC
1532 environments
; it implies
--enable-rebuild-chartables
1533 --enable-ebcdic-nl25 set EBCDIC code
for NL to
0x25 instead of
0x15; it
1534 implies
--enable-ebcdic
1535 --disable-stack-for-recursion
1536 don
't use stack recursion when matching
1537 --enable-pcregrep-libz link pcregrep with libz to handle .gz files
1538 --enable-pcregrep-libbz2
1539 link pcregrep with libbz2 to handle .bz2 files
1540 --enable-pcretest-libedit
1541 link pcretest with libedit
1542 --enable-pcretest-libreadline
1543 link pcretest with libreadline
1544 --enable-valgrind valgrind support
1545 --enable-coverage enable code coverage reports using gcov
1548 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1549 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1550 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
1552 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1553 --with-sysroot=DIR Search for dependent libraries within DIR
1554 (or the compiler's sysroot
if not specified
).
1555 --with-pcregrep-bufsize=N
1556 pcregrep buffer size
(default
=20480, minimum
=8192)
1557 --with-posix-malloc-threshold=NBYTES
1558 threshold
for POSIX malloc usage
(default
=10)
1559 --with-link-size=N internal link size
(2, 3, or
4 allowed
; default
=2)
1560 --with-parens-nest-limit=N
1561 nested parentheses limit
(default
=250)
1562 --with-match-limit=N default limit on internal looping
(default
=10000000)
1563 --with-match-limit-recursion=N
1564 default limit on internal recursion
1565 (default
=MATCH_LIMIT
)
1567 Some influential environment variables
:
1568 CC C compiler
command
1569 CFLAGS C compiler flags
1570 LDFLAGS linker flags
, e.g.
-L<lib dir
> if you have libraries
in a
1571 nonstandard directory
<lib dir
>
1572 LIBS libraries to pass to the linker
, e.g.
-l<library
>
1573 CPPFLAGS
(Objective
) C
/C
++ preprocessor flags
, e.g.
-I<include dir
> if
1574 you have headers
in a nonstandard directory
<include dir
>
1575 CXX C
++ compiler
command
1576 CXXFLAGS C
++ compiler flags
1578 CXXCPP C
++ preprocessor
1579 PKG_CONFIG path to pkg-config utility
1581 directories to add to pkg-config
's search path
1583 path overriding pkg-config's built-in search path
1585 C compiler flags
for VALGRIND
, overriding pkg-config
1587 linker flags
for VALGRIND
, overriding pkg-config
1588 LCOV the ltp lcov program
1589 GENHTML the ltp genhtml program
1591 Use these variables to override the choices made by
`configure' or to help
1592 it to find libraries and programs with nonstandard names/locations.
1594 Report bugs to the package provider.
1599 if test "$ac_init_help" = "recursive"; then
1600 # If there are subdirs, report their specific --help.
1601 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1602 test -d "$ac_dir" ||
1603 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1608 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1610 ac_dir_suffix=/`$as_echo "$ac_dir" |
sed 's|^\.[\\/]||'`
1611 # A ".." for each directory in $ac_dir_suffix.
1612 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" |
sed 's|/[^\\/]*|/..|g;s|/||'`
1613 case $ac_top_builddir_sub in
1614 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1615 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1618 ac_abs_top_builddir=$ac_pwd
1619 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1620 # for backward compatibility:
1621 ac_top_builddir=$ac_top_build_prefix
1624 .) # We are building in place.
1626 ac_top_srcdir=$ac_top_builddir_sub
1627 ac_abs_top_srcdir=$ac_pwd ;;
1628 [\\/]* | ?:[\\/]* ) # Absolute name.
1629 ac_srcdir=$srcdir$ac_dir_suffix;
1630 ac_top_srcdir=$srcdir
1631 ac_abs_top_srcdir=$srcdir ;;
1633 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1634 ac_top_srcdir=$ac_top_build_prefix$srcdir
1635 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1637 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1639 cd "$ac_dir" || { ac_status=$?; continue; }
1640 # Check for guested configure.
1641 if test -f "$ac_srcdir/configure.gnu"; then
1643 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1644 elif test -f "$ac_srcdir/configure"; then
1646 $SHELL "$ac_srcdir/configure" --help=recursive
1648 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1650 cd "$ac_pwd" || { ac_status=$?; break; }
1654 test -n "$ac_init_help" && exit $ac_status
1655 if $ac_init_version; then
1658 generated by GNU Autoconf 2.69
1660 Copyright (C) 2012 Free Software Foundation, Inc.
1661 This configure script is free software; the Free Software Foundation
1662 gives unlimited permission to copy, distribute and modify it.
1667 ## ------------------------ ##
1668 ## Autoconf initialization. ##
1669 ## ------------------------ ##
1671 # ac_fn_c_try_compile LINENO
1672 # --------------------------
1673 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1674 ac_fn_c_try_compile ()
1676 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1677 rm -f conftest.$ac_objext
1678 if { { ac_try="$ac_compile"
1680 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
1681 *) ac_try_echo
=$ac_try;;
1683 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1684 $as_echo "$ac_try_echo"; } >&5
1685 (eval "$ac_compile") 2>conftest.err
1687 if test -s conftest.err
; then
1688 grep -v '^ *+' conftest.err
>conftest.er1
1689 cat conftest.er1
>&5
1690 mv -f conftest.er1 conftest.err
1692 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1693 test $ac_status = 0; } && {
1694 test -z "$ac_c_werror_flag" ||
1695 test ! -s conftest.err
1696 } && test -s conftest.
$ac_objext; then :
1699 $as_echo "$as_me: failed program was:" >&5
1700 sed 's/^/| /' conftest.
$ac_ext >&5
1704 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1705 as_fn_set_status
$ac_retval
1707 } # ac_fn_c_try_compile
1709 # ac_fn_cxx_try_compile LINENO
1710 # ----------------------------
1711 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1712 ac_fn_cxx_try_compile
()
1714 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1715 rm -f conftest.
$ac_objext
1716 if { { ac_try
="$ac_compile"
1718 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
1719 *) ac_try_echo=$ac_try;;
1721 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1722 $as_echo "$ac_try_echo"; } >&5
1723 (eval "$ac_compile") 2>conftest.err
1725 if test -s conftest.err; then
1726 grep -v '^ *+' conftest.err >conftest.er1
1727 cat conftest.er1 >&5
1728 mv -f conftest.er1 conftest.err
1730 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1731 test $ac_status = 0; } && {
1732 test -z "$ac_cxx_werror_flag" ||
1733 test ! -s conftest.err
1734 } && test -s conftest.$ac_objext; then :
1737 $as_echo "$as_me: failed program was:" >&5
1738 sed 's/^/| /' conftest.$ac_ext >&5
1742 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1743 as_fn_set_status $ac_retval
1745 } # ac_fn_cxx_try_compile
1747 # ac_fn_c_try_cpp LINENO
1748 # ----------------------
1749 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1752 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1753 if { { ac_try="$ac_cpp conftest.$ac_ext"
1755 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
1756 *) ac_try_echo
=$ac_try;;
1758 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1759 $as_echo "$ac_try_echo"; } >&5
1760 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1762 if test -s conftest.err
; then
1763 grep -v '^ *+' conftest.err
>conftest.er1
1764 cat conftest.er1
>&5
1765 mv -f conftest.er1 conftest.err
1767 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1768 test $ac_status = 0; } > conftest.i
&& {
1769 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1770 test ! -s conftest.err
1774 $as_echo "$as_me: failed program was:" >&5
1775 sed 's/^/| /' conftest.
$ac_ext >&5
1779 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1780 as_fn_set_status
$ac_retval
1784 # ac_fn_c_try_run LINENO
1785 # ----------------------
1786 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1787 # that executables *can* be run.
1790 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1791 if { { ac_try
="$ac_link"
1793 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
1794 *) ac_try_echo=$ac_try;;
1796 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1797 $as_echo "$ac_try_echo"; } >&5
1798 (eval "$ac_link") 2>&5
1800 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1801 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1802 { { case "(($ac_try" in
1803 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
1804 *) ac_try_echo
=$ac_try;;
1806 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1807 $as_echo "$ac_try_echo"; } >&5
1808 (eval "$ac_try") 2>&5
1810 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1811 test $ac_status = 0; }; }; then :
1814 $as_echo "$as_me: program exited with status $ac_status" >&5
1815 $as_echo "$as_me: failed program was:" >&5
1816 sed 's/^/| /' conftest.
$ac_ext >&5
1818 ac_retval
=$ac_status
1820 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1821 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1822 as_fn_set_status
$ac_retval
1826 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1827 # -------------------------------------------------------
1828 # Tests whether HEADER exists and can be compiled using the include files in
1829 # INCLUDES, setting the cache variable VAR accordingly.
1830 ac_fn_c_check_header_compile
()
1832 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1833 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1834 $as_echo_n "checking for $2... " >&6; }
1835 if eval \
${$3+:} false
; then :
1836 $as_echo_n "(cached) " >&6
1838 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
1839 /* end confdefs.h. */
1843 if ac_fn_c_try_compile
"$LINENO"; then :
1848 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
1851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1852 $as_echo "$ac_res" >&6; }
1853 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1855 } # ac_fn_c_check_header_compile
1857 # ac_fn_c_find_intX_t LINENO BITS VAR
1858 # -----------------------------------
1859 # Finds a signed integer type with width BITS, setting cache variable VAR
1861 ac_fn_c_find_intX_t
()
1863 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1864 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for int$2_t" >&5
1865 $as_echo_n "checking for int$2_t... " >&6; }
1866 if eval \
${$3+:} false
; then :
1867 $as_echo_n "(cached) " >&6
1870 # Order is important - never check a type that is potentially smaller
1871 # than half of the expected target width.
1872 for ac_type
in int
$2_t 'int' 'long int' \
1873 'long long int' 'short int' 'signed char'; do
1874 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
1875 /* end confdefs.h. */
1876 $ac_includes_default
1877 enum { N = $2 / 2 - 1 };
1881 static int test_array [1 - 2 * !(0 < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1))];
1883 return test_array [0];
1889 if ac_fn_c_try_compile
"$LINENO"; then :
1890 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
1891 /* end confdefs.h. */
1892 $ac_includes_default
1893 enum { N = $2 / 2 - 1 };
1897 static int test_array [1 - 2 * !(($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1)
1898 < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 2))];
1900 return test_array [0];
1906 if ac_fn_c_try_compile
"$LINENO"; then :
1913 eval "$3=\$ac_type" ;;
1916 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
1918 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
1919 if eval test \"x\$
"$3"\" = x
"no"; then :
1927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1928 $as_echo "$ac_res" >&6; }
1929 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1931 } # ac_fn_c_find_intX_t
1933 # ac_fn_c_try_link LINENO
1934 # -----------------------
1935 # Try to link conftest.$ac_ext, and return whether this succeeded.
1938 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1939 rm -f conftest.
$ac_objext conftest
$ac_exeext
1940 if { { ac_try
="$ac_link"
1942 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
1943 *) ac_try_echo=$ac_try;;
1945 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1946 $as_echo "$ac_try_echo"; } >&5
1947 (eval "$ac_link") 2>conftest.err
1949 if test -s conftest.err; then
1950 grep -v '^ *+' conftest.err >conftest.er1
1951 cat conftest.er1 >&5
1952 mv -f conftest.er1 conftest.err
1954 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1955 test $ac_status = 0; } && {
1956 test -z "$ac_c_werror_flag" ||
1957 test ! -s conftest.err
1958 } && test -s conftest$ac_exeext && {
1959 test "$cross_compiling" = yes ||
1960 test -x conftest$ac_exeext
1964 $as_echo "$as_me: failed program was:" >&5
1965 sed 's/^/| /' conftest.$ac_ext >&5
1969 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1970 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1971 # interfere with the next link command; also delete a directory that is
1972 # left behind by Apple's compiler. We do this before executing the actions.
1973 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1974 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1975 as_fn_set_status $ac_retval
1977 } # ac_fn_c_try_link
1979 # ac_fn_c_check_func LINENO FUNC VAR
1980 # ----------------------------------
1981 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1982 ac_fn_c_check_func ()
1984 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1985 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1986 $as_echo_n "checking for $2... " >&6; }
1987 if eval \${$3+:} false; then :
1988 $as_echo_n "(cached) " >&6
1990 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1991 /* end confdefs.h. */
1992 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1993 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1994 #define $2 innocuous_$2
1996 /* System header to define __stub macros and hopefully few prototypes,
1997 which can conflict with char $2 (); below.
1998 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1999 <limits.h> exists even on freestanding compilers. */
2002 # include <limits.h>
2004 # include <assert.h>
2009 /* Override any GCC internal prototype to avoid an error.
2010 Use char because int might match the return type of a GCC
2011 builtin and then its argument prototype would still apply. */
2016 /* The GNU C library defines this for functions which it implements
2017 to always fail with ENOSYS. Some functions are actually named
2018 something starting with __ and the normal name is an alias. */
2019 #if defined __stub_$2 || defined __stub___$2
2031 if ac_fn_c_try_link "$LINENO"; then :
2036 rm -f core conftest.err conftest.$ac_objext \
2037 conftest$ac_exeext conftest.$ac_ext
2040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2041 $as_echo "$ac_res" >&6; }
2042 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2044 } # ac_fn_c_check_func
2046 # ac_fn_cxx_try_cpp LINENO
2047 # ------------------------
2048 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2049 ac_fn_cxx_try_cpp ()
2051 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2052 if { { ac_try="$ac_cpp conftest.$ac_ext"
2054 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
2055 *) ac_try_echo
=$ac_try;;
2057 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2058 $as_echo "$ac_try_echo"; } >&5
2059 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2061 if test -s conftest.err
; then
2062 grep -v '^ *+' conftest.err
>conftest.er1
2063 cat conftest.er1
>&5
2064 mv -f conftest.er1 conftest.err
2066 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2067 test $ac_status = 0; } > conftest.i
&& {
2068 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
2069 test ! -s conftest.err
2073 $as_echo "$as_me: failed program was:" >&5
2074 sed 's/^/| /' conftest.
$ac_ext >&5
2078 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2079 as_fn_set_status
$ac_retval
2081 } # ac_fn_cxx_try_cpp
2083 # ac_fn_cxx_try_link LINENO
2084 # -------------------------
2085 # Try to link conftest.$ac_ext, and return whether this succeeded.
2086 ac_fn_cxx_try_link
()
2088 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2089 rm -f conftest.
$ac_objext conftest
$ac_exeext
2090 if { { ac_try
="$ac_link"
2092 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
2093 *) ac_try_echo=$ac_try;;
2095 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2096 $as_echo "$ac_try_echo"; } >&5
2097 (eval "$ac_link") 2>conftest.err
2099 if test -s conftest.err; then
2100 grep -v '^ *+' conftest.err >conftest.er1
2101 cat conftest.er1 >&5
2102 mv -f conftest.er1 conftest.err
2104 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2105 test $ac_status = 0; } && {
2106 test -z "$ac_cxx_werror_flag" ||
2107 test ! -s conftest.err
2108 } && test -s conftest$ac_exeext && {
2109 test "$cross_compiling" = yes ||
2110 test -x conftest$ac_exeext
2114 $as_echo "$as_me: failed program was:" >&5
2115 sed 's/^/| /' conftest.$ac_ext >&5
2119 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2120 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2121 # interfere with the next link command; also delete a directory that is
2122 # left behind by Apple's compiler. We do this before executing the actions.
2123 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2124 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2125 as_fn_set_status $ac_retval
2127 } # ac_fn_cxx_try_link
2129 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
2130 # -------------------------------------------------------
2131 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
2132 # the include files in INCLUDES and setting the cache variable VAR
2134 ac_fn_c_check_header_mongrel ()
2136 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2137 if eval \${$3+:} false; then :
2138 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2139 $as_echo_n "checking for $2... " >&6; }
2140 if eval \${$3+:} false; then :
2141 $as_echo_n "(cached) " >&6
2144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2145 $as_echo "$ac_res" >&6; }
2147 # Is the header compilable?
2148 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2149 $as_echo_n "checking $2 usability... " >&6; }
2150 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2151 /* end confdefs.h. */
2155 if ac_fn_c_try_compile "$LINENO"; then :
2156 ac_header_compiler=yes
2158 ac_header_compiler=no
2160 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2162 $as_echo "$ac_header_compiler" >&6; }
2164 # Is the header present?
2165 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2166 $as_echo_n "checking $2 presence... " >&6; }
2167 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2168 /* end confdefs.h. */
2171 if ac_fn_c_try_cpp "$LINENO"; then :
2172 ac_header_preproc=yes
2174 ac_header_preproc=no
2176 rm -f conftest.err conftest.i conftest.$ac_ext
2177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2178 $as_echo "$ac_header_preproc" >&6; }
2180 # So? What about this header?
2181 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2183 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2184 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2185 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2186 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2189 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2190 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2191 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2192 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2193 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2194 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2195 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2196 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2197 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2198 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2201 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2202 $as_echo_n "checking for $2... " >&6; }
2203 if eval \${$3+:} false; then :
2204 $as_echo_n "(cached) " >&6
2206 eval "$3=\$ac_header_compiler"
2209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2210 $as_echo "$ac_res" >&6; }
2212 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2214 } # ac_fn_c_check_header_mongrel
2216 # ac_fn_cxx_check_header_mongrel LINENO HEADER VAR INCLUDES
2217 # ---------------------------------------------------------
2218 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
2219 # the include files in INCLUDES and setting the cache variable VAR
2221 ac_fn_cxx_check_header_mongrel ()
2223 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2224 if eval \${$3+:} false; then :
2225 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2226 $as_echo_n "checking for $2... " >&6; }
2227 if eval \${$3+:} false; then :
2228 $as_echo_n "(cached) " >&6
2231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2232 $as_echo "$ac_res" >&6; }
2234 # Is the header compilable?
2235 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2236 $as_echo_n "checking $2 usability... " >&6; }
2237 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2238 /* end confdefs.h. */
2242 if ac_fn_cxx_try_compile "$LINENO"; then :
2243 ac_header_compiler=yes
2245 ac_header_compiler=no
2247 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2249 $as_echo "$ac_header_compiler" >&6; }
2251 # Is the header present?
2252 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2253 $as_echo_n "checking $2 presence... " >&6; }
2254 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2255 /* end confdefs.h. */
2258 if ac_fn_cxx_try_cpp "$LINENO"; then :
2259 ac_header_preproc=yes
2261 ac_header_preproc=no
2263 rm -f conftest.err conftest.i conftest.$ac_ext
2264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2265 $as_echo "$ac_header_preproc" >&6; }
2267 # So? What about this header?
2268 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in #((
2270 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2271 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2272 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2273 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2276 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2277 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2278 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2279 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2280 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2281 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2282 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2283 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2284 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2285 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2288 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2289 $as_echo_n "checking for $2... " >&6; }
2290 if eval \${$3+:} false; then :
2291 $as_echo_n "(cached) " >&6
2293 eval "$3=\$ac_header_compiler"
2296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2297 $as_echo "$ac_res" >&6; }
2299 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2301 } # ac_fn_cxx_check_header_mongrel
2303 # ac_fn_cxx_check_type LINENO TYPE VAR INCLUDES
2304 # ---------------------------------------------
2305 # Tests whether TYPE exists after having included INCLUDES, setting cache
2306 # variable VAR accordingly.
2307 ac_fn_cxx_check_type ()
2309 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2310 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2311 $as_echo_n "checking for $2... " >&6; }
2312 if eval \${$3+:} false; then :
2313 $as_echo_n "(cached) " >&6
2316 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2317 /* end confdefs.h. */
2328 if ac_fn_cxx_try_compile "$LINENO"; then :
2329 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2330 /* end confdefs.h. */
2341 if ac_fn_cxx_try_compile "$LINENO"; then :
2346 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2348 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2352 $as_echo "$ac_res" >&6; }
2353 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2355 } # ac_fn_cxx_check_type
2357 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2358 # -------------------------------------------
2359 # Tests whether TYPE exists after having included INCLUDES, setting cache
2360 # variable VAR accordingly.
2361 ac_fn_c_check_type ()
2363 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2364 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2365 $as_echo_n "checking for $2... " >&6; }
2366 if eval \${$3+:} false; then :
2367 $as_echo_n "(cached) " >&6
2370 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2371 /* end confdefs.h. */
2382 if ac_fn_c_try_compile "$LINENO"; then :
2383 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2384 /* end confdefs.h. */
2395 if ac_fn_c_try_compile "$LINENO"; then :
2400 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2402 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2406 $as_echo "$ac_res" >&6; }
2407 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2409 } # ac_fn_c_check_type
2410 cat >config.log <<_ACEOF
2411 This file contains any messages produced by compilers while
2412 running configure, to aid debugging if configure makes a mistake.
2414 It was created by PCRE $as_me 8.35, which was
2415 generated by GNU Autoconf 2.69. Invocation command line was
2427 hostname = `(hostname || uname
-n) 2>/dev
/null |
sed 1q
`
2428 uname -m = `(uname
-m) 2>/dev
/null ||
echo unknown
`
2429 uname -r = `(uname
-r) 2>/dev
/null ||
echo unknown
`
2430 uname -s = `(uname
-s) 2>/dev
/null ||
echo unknown
`
2431 uname -v = `(uname
-v) 2>/dev
/null ||
echo unknown
`
2433 /usr/bin/uname -p = `(/usr
/bin
/uname
-p) 2>/dev
/null ||
echo unknown
`
2434 /bin/uname -X = `(/bin
/uname
-X) 2>/dev
/null ||
echo unknown
`
2436 /bin/arch = `(/bin
/arch
) 2>/dev
/null ||
echo unknown
`
2437 /usr/bin/arch -k = `(/usr
/bin
/arch
-k) 2>/dev
/null ||
echo unknown
`
2438 /usr/convex/getsysinfo = `(/usr
/convex
/getsysinfo
) 2>/dev
/null ||
echo unknown
`
2439 /usr/bin/hostinfo = `(/usr
/bin
/hostinfo
) 2>/dev
/null ||
echo unknown
`
2440 /bin/machine = `(/bin
/machine
) 2>/dev
/null ||
echo unknown
`
2441 /usr/bin/oslevel = `(/usr
/bin
/oslevel
) 2>/dev
/null ||
echo unknown
`
2442 /bin/universe = `(/bin
/universe
) 2>/dev
/null ||
echo unknown
`
2446 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2450 test -z "$as_dir" && as_dir=.
2451 $as_echo "PATH: $as_dir"
2467 # Keep a trace of the command line.
2468 # Strip out --no-create and --no-recursion so they do not pile up.
2469 # Strip out --silent because we don't want to record it for future runs.
2470 # Also quote any args containing shell meta-characters.
2471 # Make two passes to allow for proper duplicate-argument suppression.
2475 ac_must_keep_next=false
2481 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2482 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2483 | -silent | --silent | --silen | --sile | --sil)
2486 ac_arg=`$as_echo "$ac_arg" |
sed "s/'/'\\\\\\\\''/g"` ;;
2489 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2491 as_fn_append ac_configure_args1 " '$ac_arg'"
2492 if test $ac_must_keep_next = true; then
2493 ac_must_keep_next=false # Got value, back to normal.
2496 *=* | --config-cache | -C | -disable-* | --disable-* \
2497 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2498 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2499 | -with-* | --with-* | -without-* | --without-* | --x)
2500 case "$ac_configure_args0 " in
2501 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2504 -* ) ac_must_keep_next=true ;;
2507 as_fn_append ac_configure_args " '$ac_arg'"
2512 { ac_configure_args0=; unset ac_configure_args0;}
2513 { ac_configure_args1=; unset ac_configure_args1;}
2515 # When interrupted or exit'd, cleanup temporary files, and complete
2516 # config.log. We remove comments because anyway the quotes in there
2517 # would cause problems or look ugly.
2518 # WARNING: Use '\'' to represent an apostrophe within the trap.
2519 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2520 trap 'exit_status=$?
2521 # Save into config.log some information that might help in debugging.
2525 $as_echo "## ---------------- ##
2526 ## Cache variables. ##
2527 ## ---------------- ##"
2529 # The following way of writing the cache mishandles newlines in values,
2531 for ac_var in `(set) 2>&1 |
sed -n '\''s
/^\
([a-zA-Z_
][a-zA-Z0-9_
]*\
)=.
*/\
1/p
'\''`; do
2532 eval ac_val=\$$ac_var
2536 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2537 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2540 _ | IFS | as_nl) ;; #(
2541 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2542 *) { eval $ac_var=; unset $ac_var;} ;;
2547 case $as_nl`(ac_space
='\'' '\''; set) 2>&1` in #(
2548 *${as_nl}ac_space=\ *)
2550 "s/'\''/'\''\\\\'\'''\''/g;
2551 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2554 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2561 $as_echo "## ----------------- ##
2562 ## Output variables. ##
2563 ## ----------------- ##"
2565 for ac_var in $ac_subst_vars
2567 eval ac_val=\$$ac_var
2569 *\'\''*) ac_val=`$as_echo "$ac_val" |
sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2571 $as_echo "$ac_var='\''$ac_val'\''"
2575 if test -n "$ac_subst_files"; then
2576 $as_echo "## ------------------- ##
2577 ## File substitutions. ##
2578 ## ------------------- ##"
2580 for ac_var in $ac_subst_files
2582 eval ac_val=\$$ac_var
2584 *\'\''*) ac_val=`$as_echo "$ac_val" |
sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2586 $as_echo "$ac_var='\''$ac_val'\''"
2591 if test -s confdefs.h; then
2592 $as_echo "## ----------- ##
2599 test "$ac_signal" != 0 &&
2600 $as_echo "$as_me: caught signal $ac_signal"
2601 $as_echo "$as_me: exit $exit_status"
2603 rm -f core *.core core.conftest.* &&
2604 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2607 for ac_signal in 1 2 13 15; do
2608 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2612 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2613 rm -f -r conftest* confdefs.h
2615 $as_echo "/* confdefs.h */" > confdefs.h
2617 # Predefined preprocessor variables.
2619 cat >>confdefs.h <<_ACEOF
2620 #define PACKAGE_NAME "$PACKAGE_NAME"
2623 cat >>confdefs.h <<_ACEOF
2624 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2627 cat >>confdefs.h <<_ACEOF
2628 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2631 cat >>confdefs.h <<_ACEOF
2632 #define PACKAGE_STRING "$PACKAGE_STRING"
2635 cat >>confdefs.h <<_ACEOF
2636 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2639 cat >>confdefs.h <<_ACEOF
2640 #define PACKAGE_URL "$PACKAGE_URL"
2644 # Let the site file select an alternate cache file if it wants to.
2645 # Prefer an explicitly selected file to automatically selected ones.
2648 if test -n "$CONFIG_SITE"; then
2649 # We do not want a PATH search for config.site.
2650 case $CONFIG_SITE in #((
2651 -*) ac_site_file1=./$CONFIG_SITE;;
2652 */*) ac_site_file1=$CONFIG_SITE;;
2653 *) ac_site_file1=./$CONFIG_SITE;;
2655 elif test "x$prefix" != xNONE; then
2656 ac_site_file1=$prefix/share/config.site
2657 ac_site_file2=$prefix/etc/config.site
2659 ac_site_file1=$ac_default_prefix/share/config.site
2660 ac_site_file2=$ac_default_prefix/etc/config.site
2662 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2664 test "x$ac_site_file" = xNONE && continue
2665 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2666 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2667 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2668 sed 's/^/| /' "$ac_site_file" >&5
2670 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2671 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2672 as_fn_error $? "failed to load site
script $ac_site_file
2673 See \
`config.log' for more details" "$LINENO" 5; }
2677 if test -r "$cache_file"; then
2678 # Some versions of bash will fail to source /dev/null (special files
2679 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2680 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2681 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2682 $as_echo "$as_me: loading cache $cache_file" >&6;}
2684 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2685 *) . "./$cache_file";;
2689 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2690 $as_echo "$as_me: creating cache $cache_file" >&6;}
2694 # Check that the precious variables saved in the cache have kept the same
2696 ac_cache_corrupted=false
2697 for ac_var in $ac_precious_vars; do
2698 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2699 eval ac_new_set=\$ac_env_${ac_var}_set
2700 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2701 eval ac_new_val=\$ac_env_${ac_var}_value
2702 case $ac_old_set,$ac_new_set in
2704 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run
" >&5
2705 $as_echo "$as_me: error
: \
`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2706 ac_cache_corrupted=: ;;
2708 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not
set in the previous run
" >&5
2709 $as_echo "$as_me: error
: \
`$ac_var' was not set in the previous run" >&2;}
2710 ac_cache_corrupted=: ;;
2713 if test "x$ac_old_val" != "x$ac_new_val"; then
2714 # differences in whitespace do not lead to failure.
2715 ac_old_val_w=`echo x
$ac_old_val`
2716 ac_new_val_w=`echo x
$ac_new_val`
2717 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2718 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2719 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run
:" >&2;}
2720 ac_cache_corrupted=:
2722 { $as_echo "$as_me:${as_lineno-$LINENO}: warning
: ignoring whitespace changes
in \
`$ac_var' since the previous run:" >&5
2723 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2724 eval $ac_var=\$ac_old_val
2726 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2727 $as_echo "$as_me: former value
: \
`$ac_old_val'" >&2;}
2728 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2729 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2732 # Pass precious variables to config.status.
2733 if test "$ac_new_set" = set; then
2735 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s
/'/'\\\\\\\\''/g
"` ;;
2736 *) ac_arg=$ac_var=$ac_new_val ;;
2738 case " $ac_configure_args " in
2739 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2740 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2744 if $ac_cache_corrupted; then
2745 { $as_echo "$as_me:${as_lineno-$LINENO}: error
: in \
`$ac_pwd':" >&5
2746 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2747 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2748 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2749 as_fn_error $? "run \`make distclean' and
/or \
`rm $cache_file' and start over" "$LINENO" 5
2751 ## -------------------- ##
2752 ## Main body of script. ##
2753 ## -------------------- ##
2756 ac_cpp='$CPP $CPPFLAGS'
2757 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2758 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2759 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2763 am__api_version='1.14'
2766 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2767 if test -f "$ac_dir/install-sh"; then
2769 ac_install_sh="$ac_aux_dir/install-sh -c"
2771 elif test -f "$ac_dir/install.sh"; then
2773 ac_install_sh="$ac_aux_dir/install.sh -c"
2775 elif test -f "$ac_dir/shtool"; then
2777 ac_install_sh="$ac_aux_dir/shtool install -c"
2781 if test -z "$ac_aux_dir"; then
2782 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2785 # These three variables are undocumented and unsupported,
2786 # and are intended to be withdrawn in a future Autoconf release.
2787 # They can cause serious problems if a builder's source tree is in a directory
2788 # whose full name contains unusual characters.
2789 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2790 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2791 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2794 # Find a good install program. We prefer a C program (faster),
2795 # so one script is as good as another. But avoid the broken or
2796 # incompatible versions:
2797 # SysV /etc/install, /usr/sbin/install
2798 # SunOS /usr/etc/install
2799 # IRIX /sbin/install
2801 # AmigaOS /C/install, which installs bootblocks on floppy discs
2802 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2803 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2804 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2805 # OS/2's system install, which has a completely different semantic
2806 # ./install, which can be erroneously created by make from ./install.sh.
2807 # Reject install programs that cannot install multiple files.
2808 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2809 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2810 if test -z "$INSTALL"; then
2811 if ${ac_cv_path_install+:} false; then :
2812 $as_echo_n "(cached) " >&6
2814 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2818 test -z "$as_dir" && as_dir=.
2819 # Account for people who put trailing slashes in PATH elements.
2820 case $as_dir/ in #((
2821 ./ | .// | /[cC]/* | \
2822 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2823 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2826 # OSF1 and SCO ODT 3.0 have their own names for install.
2827 # Don't use installbsd from OSF since it installs stuff as root
2829 for ac_prog in ginstall scoinst install; do
2830 for ac_exec_ext in '' $ac_executable_extensions; do
2831 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2832 if test $ac_prog = install &&
2833 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2834 # AIX install. It has an incompatible calling convention.
2836 elif test $ac_prog = install &&
2837 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2838 # program-specific install script used by HP pwplus--don't use.
2841 rm -rf conftest.one conftest.two conftest.dir
2842 echo one > conftest.one
2843 echo two > conftest.two
2845 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2846 test -s conftest.one && test -s conftest.two &&
2847 test -s conftest.dir/conftest.one &&
2848 test -s conftest.dir/conftest.two
2850 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2863 rm -rf conftest.one conftest.two conftest.dir
2866 if test "${ac_cv_path_install+set}" = set; then
2867 INSTALL=$ac_cv_path_install
2869 # As a last resort, use the slow shell script. Don't cache a
2870 # value for INSTALL within a source directory, because that will
2871 # break other packages using the cache if that directory is
2872 # removed, or if the value is a relative name.
2873 INSTALL=$ac_install_sh
2876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2877 $as_echo "$INSTALL" >&6; }
2879 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2880 # It thinks the first close brace ends the variable substitution.
2881 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2883 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2885 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2887 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2888 $as_echo_n "checking whether build environment is sane... " >&6; }
2889 # Reject unsafe characters in $srcdir or the absolute working directory
2890 # name. Accept space and tab only in the latter.
2894 *[\\\"\#\$\&\'\`$am_lf]*)
2895 as_fn_error $?
"unsafe absolute working directory name" "$LINENO" 5;;
2898 *[\\\"\
#\$\&\'\`$am_lf\ \ ]*)
2899 as_fn_error $?
"unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2902 # Do 'set' in a subshell so we don't clobber the current shell's
2903 # arguments. Must try -L first in case configure is actually a
2904 # symlink; some systems play weird games with the mod time of symlinks
2905 # (eg FreeBSD returns the mod time of the symlink's containing
2909 for am_try
in 1 2; do
2910 echo "timestamp, slept: $am_has_slept" > conftest.
file
2911 set X
`ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2912 if test "$*" = "X"; then
2914 set X
`ls -t "$srcdir/configure" conftest.file`
2916 if test "$*" != "X $srcdir/configure conftest.file" \
2917 && test "$*" != "X conftest.file $srcdir/configure"; then
2919 # If neither matched, then we have a broken ls. This can happen
2920 # if, for instance, CONFIG_SHELL is bash and it inherits a
2921 # broken ls alias from the environment. This has actually
2922 # happened. Such a system could not be considered "sane".
2923 as_fn_error $?
"ls -t appears to fail. Make sure there is not a broken
2924 alias in your environment" "$LINENO" 5
2926 if test "$2" = conftest.
file ||
test $am_try -eq 2; then
2933 test "$2" = conftest.
file
2939 as_fn_error $?
"newly created file is older than distributed files!
2940 Check your system clock" "$LINENO" 5
2942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2943 $as_echo "yes" >&6; }
2944 # If we didn't sleep, we still need to ensure time stamps of config.status and
2945 # generated files are strictly newer.
2947 if grep 'slept: no' conftest.
file >/dev
/null
2>&1; then
2954 test "$program_prefix" != NONE
&&
2955 program_transform_name
="s&^&$program_prefix&;$program_transform_name"
2956 # Use a double $ so make ignores it.
2957 test "$program_suffix" != NONE
&&
2958 program_transform_name
="s&\$&$program_suffix&;$program_transform_name"
2959 # Double any \ or $.
2960 # By default was `s,x,x', remove it if useless.
2961 ac_script
='s/[\\$]/&&/g;s/;s,x,x,$//'
2962 program_transform_name
=`$as_echo "$program_transform_name" | sed "$ac_script"`
2964 # expand $ac_aux_dir to an absolute path
2965 am_aux_dir
=`cd $ac_aux_dir && pwd`
2967 if test x
"${MISSING+set}" != xset
; then
2970 MISSING
="\${SHELL} \"$am_aux_dir/missing\"" ;;
2972 MISSING
="\${SHELL} $am_aux_dir/missing" ;;
2975 # Use eval to expand $SHELL
2976 if eval "$MISSING --is-lightweight"; then
2977 am_missing_run
="$MISSING "
2980 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
2981 $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
2984 if test x
"${install_sh}" != xset
; then
2987 install_sh
="\${SHELL} '$am_aux_dir/install-sh'" ;;
2989 install_sh
="\${SHELL} $am_aux_dir/install-sh"
2993 # Installed binaries are usually stripped using 'strip' when the user
2994 # run "make install-strip". However 'strip' might not be the right
2995 # tool to use in cross-compilation environments, therefore Automake
2996 # will honor the 'STRIP' environment variable to overrule this program.
2997 if test "$cross_compiling" != no
; then
2998 if test -n "$ac_tool_prefix"; then
2999 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3000 set dummy
${ac_tool_prefix}strip
; ac_word
=$2
3001 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3002 $as_echo_n "checking for $ac_word... " >&6; }
3003 if ${ac_cv_prog_STRIP+:} false
; then :
3004 $as_echo_n "(cached) " >&6
3006 if test -n "$STRIP"; then
3007 ac_cv_prog_STRIP
="$STRIP" # Let the user override the test.
3009 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3013 test -z "$as_dir" && as_dir
=.
3014 for ac_exec_ext
in '' $ac_executable_extensions; do
3015 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
3016 ac_cv_prog_STRIP
="${ac_tool_prefix}strip"
3017 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3026 STRIP
=$ac_cv_prog_STRIP
3027 if test -n "$STRIP"; then
3028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3029 $as_echo "$STRIP" >&6; }
3031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3032 $as_echo "no" >&6; }
3037 if test -z "$ac_cv_prog_STRIP"; then
3039 # Extract the first word of "strip", so it can be a program name with args.
3040 set dummy strip
; ac_word
=$2
3041 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3042 $as_echo_n "checking for $ac_word... " >&6; }
3043 if ${ac_cv_prog_ac_ct_STRIP+:} false
; then :
3044 $as_echo_n "(cached) " >&6
3046 if test -n "$ac_ct_STRIP"; then
3047 ac_cv_prog_ac_ct_STRIP
="$ac_ct_STRIP" # Let the user override the test.
3049 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3053 test -z "$as_dir" && as_dir
=.
3054 for ac_exec_ext
in '' $ac_executable_extensions; do
3055 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
3056 ac_cv_prog_ac_ct_STRIP
="strip"
3057 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3066 ac_ct_STRIP
=$ac_cv_prog_ac_ct_STRIP
3067 if test -n "$ac_ct_STRIP"; then
3068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3069 $as_echo "$ac_ct_STRIP" >&6; }
3071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3072 $as_echo "no" >&6; }
3075 if test "x$ac_ct_STRIP" = x
; then
3078 case $cross_compiling:$ac_tool_warned in
3080 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3081 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3082 ac_tool_warned
=yes ;;
3087 STRIP
="$ac_cv_prog_STRIP"
3091 INSTALL_STRIP_PROGRAM
="\$(install_sh) -c -s"
3093 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
3094 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3095 if test -z "$MKDIR_P"; then
3096 if ${ac_cv_path_mkdir+:} false
; then :
3097 $as_echo_n "(cached) " >&6
3099 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3100 for as_dir
in $PATH$PATH_SEPARATOR/opt
/sfw
/bin
3103 test -z "$as_dir" && as_dir
=.
3104 for ac_prog
in mkdir gmkdir
; do
3105 for ac_exec_ext
in '' $ac_executable_extensions; do
3106 as_fn_executable_p
"$as_dir/$ac_prog$ac_exec_ext" ||
continue
3107 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3108 'mkdir (GNU coreutils) '* | \
3109 'mkdir (coreutils) '* | \
3110 'mkdir (fileutils) '4.1*)
3111 ac_cv_path_mkdir
=$as_dir/$ac_prog$ac_exec_ext
3121 test -d .
/--version && rmdir .
/--version
3122 if test "${ac_cv_path_mkdir+set}" = set; then
3123 MKDIR_P
="$ac_cv_path_mkdir -p"
3125 # As a last resort, use the slow shell script. Don't cache a
3126 # value for MKDIR_P within a source directory, because that will
3127 # break other packages using the cache if that directory is
3128 # removed, or if the value is a relative name.
3129 MKDIR_P
="$ac_install_sh -d"
3132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3133 $as_echo "$MKDIR_P" >&6; }
3135 for ac_prog
in gawk mawk nawk
awk
3137 # Extract the first word of "$ac_prog", so it can be a program name with args.
3138 set dummy
$ac_prog; ac_word
=$2
3139 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3140 $as_echo_n "checking for $ac_word... " >&6; }
3141 if ${ac_cv_prog_AWK+:} false
; then :
3142 $as_echo_n "(cached) " >&6
3144 if test -n "$AWK"; then
3145 ac_cv_prog_AWK
="$AWK" # Let the user override the test.
3147 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3151 test -z "$as_dir" && as_dir
=.
3152 for ac_exec_ext
in '' $ac_executable_extensions; do
3153 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
3154 ac_cv_prog_AWK
="$ac_prog"
3155 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3165 if test -n "$AWK"; then
3166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3167 $as_echo "$AWK" >&6; }
3169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3170 $as_echo "no" >&6; }
3174 test -n "$AWK" && break
3177 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3178 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3180 ac_make
=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3181 if eval \
${ac_cv_prog_make_${ac_make}_set+:} false
; then :
3182 $as_echo_n "(cached) " >&6
3184 cat >conftest.
make <<\_ACEOF
3187 @
echo '@@@%%%=$(MAKE)=@@@%%%'
3189 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3190 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3192 eval ac_cv_prog_make_
${ac_make}_set
=yes;;
3194 eval ac_cv_prog_make_
${ac_make}_set
=no
;;
3198 if eval test \
$ac_cv_prog_make_${ac_make}_set
= yes; then
3199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3200 $as_echo "yes" >&6; }
3203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3204 $as_echo "no" >&6; }
3205 SET_MAKE
="MAKE=${MAKE-make}"
3208 rm -rf .tst
2>/dev
/null
3209 mkdir .tst
2>/dev
/null
3210 if test -d .tst
; then
3215 rmdir .tst
2>/dev
/null
3217 # Check whether --enable-silent-rules was given.
3218 if test "${enable_silent_rules+set}" = set; then :
3219 enableval
=$enable_silent_rules;
3222 case $enable_silent_rules in # (((
3223 yes) AM_DEFAULT_VERBOSITY
=0;;
3224 no
) AM_DEFAULT_VERBOSITY
=1;;
3225 *) AM_DEFAULT_VERBOSITY
=1;;
3227 am_make
=${MAKE-make}
3228 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3229 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
3230 if ${am_cv_make_support_nested_variables+:} false
; then :
3231 $as_echo_n "(cached) " >&6
3233 if $as_echo 'TRUE=$(BAR$(V))
3239 .PHONY: am__doit' |
$am_make -f - >/dev
/null
2>&1; then
3240 am_cv_make_support_nested_variables
=yes
3242 am_cv_make_support_nested_variables
=no
3245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3246 $as_echo "$am_cv_make_support_nested_variables" >&6; }
3247 if test $am_cv_make_support_nested_variables = yes; then
3249 AM_DEFAULT_V
='$(AM_DEFAULT_VERBOSITY)'
3251 AM_V
=$AM_DEFAULT_VERBOSITY
3252 AM_DEFAULT_V
=$AM_DEFAULT_VERBOSITY
3256 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3257 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3258 # is not polluted with repeated "-I."
3259 am__isrc
=' -I$(srcdir)'
3260 # test to see if srcdir already configured
3261 if test -f $srcdir/config.status
; then
3262 as_fn_error $?
"source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3266 # test whether we have cygpath
3267 if test -z "$CYGPATH_W"; then
3268 if (cygpath
--version) >/dev
/null
2>/dev
/null
; then
3269 CYGPATH_W
='cygpath -w'
3276 # Define the identity of the package.
3281 cat >>confdefs.h
<<_ACEOF
3282 #define PACKAGE "$PACKAGE"
3286 cat >>confdefs.h
<<_ACEOF
3287 #define VERSION "$VERSION"
3290 # Some tools Automake needs.
3292 ACLOCAL
=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3295 AUTOCONF
=${AUTOCONF-"${am_missing_run}autoconf"}
3298 AUTOMAKE
=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3301 AUTOHEADER
=${AUTOHEADER-"${am_missing_run}autoheader"}
3304 MAKEINFO
=${MAKEINFO-"${am_missing_run}makeinfo"}
3306 # For better backward compatibility. To be removed once Automake 1.9.x
3307 # dies out for good. For more background, see:
3308 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
3309 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
3310 mkdir_p
='$(MKDIR_P)'
3312 # We need awk for the "check" target. The system "awk" is bad on
3314 # Always define AMTAR for backward compatibility. Yes, it's still used
3315 # in the wild :-( We should find a proper way to deprecate it ...
3319 # We'll loop over all known methods to create a tar archive until one works.
3320 _am_tools
='gnutar pax cpio none'
3322 am__tar
='$${TAR-tar} chof - "$$tardir"' am__untar
='$${TAR-tar} xf -'
3329 # POSIX will say in a future version that running "rm -f" with no argument
3330 # is OK; and we want to be able to make that assumption in our Makefile
3331 # recipes. So use an aggressive probe to check that the usage we want is
3332 # actually supported "in the wild" to an acceptable degree.
3333 # See automake bug#10828.
3334 # To make any issue more visible, cause the running configure to be aborted
3335 # by default if the 'rm' program in use doesn't match our expectations; the
3336 # user can still override this though.
3337 if rm -f && rm -fr && rm -rf; then : OK
; else
3341 Your 'rm' program seems unable to run without file operands specified
3342 on the command line, even when the '-f' option is present. This is contrary
3343 to the behaviour of most rm programs out there, and not conforming with
3344 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
3346 Please tell bug-automake@gnu.org about your system, including the value
3347 of your $PATH and any error possibly output before this message. This
3348 can help us improve future automake versions.
3351 if test x
"$ACCEPT_INFERIOR_RM_PROGRAM" = x
"yes"; then
3352 echo 'Configuration will proceed anyway, since you have set the' >&2
3353 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
3357 Aborting the configuration process, to ensure you take notice of the issue.
3359 You can download and install GNU coreutils to get an 'rm' implementation
3360 that behaves properly: <http://www.gnu.org/software/coreutils/>.
3362 If you want to complete the configuration process using your problematic
3363 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
3364 to "yes", and re-run configure.
3367 as_fn_error $?
"Your 'rm' program is bad, sorry." "$LINENO" 5
3370 # Check whether --enable-silent-rules was given.
3371 if test "${enable_silent_rules+set}" = set; then :
3372 enableval
=$enable_silent_rules;
3375 case $enable_silent_rules in # (((
3376 yes) AM_DEFAULT_VERBOSITY
=0;;
3377 no
) AM_DEFAULT_VERBOSITY
=1;;
3378 *) AM_DEFAULT_VERBOSITY
=0;;
3380 am_make
=${MAKE-make}
3381 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3382 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
3383 if ${am_cv_make_support_nested_variables+:} false
; then :
3384 $as_echo_n "(cached) " >&6
3386 if $as_echo 'TRUE=$(BAR$(V))
3392 .PHONY: am__doit' |
$am_make -f - >/dev
/null
2>&1; then
3393 am_cv_make_support_nested_variables
=yes
3395 am_cv_make_support_nested_variables
=no
3398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3399 $as_echo "$am_cv_make_support_nested_variables" >&6; }
3400 if test $am_cv_make_support_nested_variables = yes; then
3402 AM_DEFAULT_V
='$(AM_DEFAULT_VERBOSITY)'
3404 AM_V
=$AM_DEFAULT_VERBOSITY
3405 AM_DEFAULT_V
=$AM_DEFAULT_VERBOSITY
3409 ac_config_headers="$ac_config_headers config.h"
3412 # This is a new thing required to stop a warning from automake 1.12
3413 DEPDIR="${am__leading_dot}deps"
3415 ac_config_commands="$ac_config_commands depfiles"
3418 am_make=${MAKE-make}
3419 cat > confinc << 'END
'
3421 @echo this is the am__doit target
3424 # If we don't
find an include directive
, just comment out the code.
3425 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3426 $as_echo_n "checking for style of include used by $am_make... " >&6; }
3430 # First try GNU make style include.
3431 echo "include confinc" > confmf
3432 # Ignore all kinds of additional output from 'make'.
3433 case `$am_make -s -f confmf 2> /dev/null` in #(
3434 *the\ am__doit\ target
*)
3440 # Now try BSD make style include.
3441 if test "$am__include" = "#"; then
3442 echo '.include "confinc"' > confmf
3443 case `$am_make -s -f confmf 2> /dev/null` in #(
3444 *the\ am__doit\ target
*)
3445 am__include
=.include
3453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3454 $as_echo "$_am_result" >&6; }
3455 rm -f confinc confmf
3457 # Check whether --enable-dependency-tracking was given.
3458 if test "${enable_dependency_tracking+set}" = set; then :
3459 enableval
=$enable_dependency_tracking;
3462 if test "x$enable_dependency_tracking" != xno
; then
3463 am_depcomp
="$ac_aux_dir/depcomp"
3467 if test "x$enable_dependency_tracking" != xno; then
3477 ac_cpp
='$CPP $CPPFLAGS'
3478 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3479 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3480 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3481 if test -n "$ac_tool_prefix"; then
3482 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3483 set dummy
${ac_tool_prefix}gcc
; ac_word
=$2
3484 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3485 $as_echo_n "checking for $ac_word... " >&6; }
3486 if ${ac_cv_prog_CC+:} false
; then :
3487 $as_echo_n "(cached) " >&6
3489 if test -n "$CC"; then
3490 ac_cv_prog_CC
="$CC" # Let the user override the test.
3492 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3496 test -z "$as_dir" && as_dir
=.
3497 for ac_exec_ext
in '' $ac_executable_extensions; do
3498 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
3499 ac_cv_prog_CC
="${ac_tool_prefix}gcc"
3500 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3510 if test -n "$CC"; then
3511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3512 $as_echo "$CC" >&6; }
3514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3515 $as_echo "no" >&6; }
3520 if test -z "$ac_cv_prog_CC"; then
3522 # Extract the first word of "gcc", so it can be a program name with args.
3523 set dummy gcc
; ac_word
=$2
3524 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3525 $as_echo_n "checking for $ac_word... " >&6; }
3526 if ${ac_cv_prog_ac_ct_CC+:} false
; then :
3527 $as_echo_n "(cached) " >&6
3529 if test -n "$ac_ct_CC"; then
3530 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
3532 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3536 test -z "$as_dir" && as_dir
=.
3537 for ac_exec_ext
in '' $ac_executable_extensions; do
3538 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
3539 ac_cv_prog_ac_ct_CC
="gcc"
3540 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3549 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
3550 if test -n "$ac_ct_CC"; then
3551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3552 $as_echo "$ac_ct_CC" >&6; }
3554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3555 $as_echo "no" >&6; }
3558 if test "x$ac_ct_CC" = x
; then
3561 case $cross_compiling:$ac_tool_warned in
3563 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3564 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3565 ac_tool_warned
=yes ;;
3573 if test -z "$CC"; then
3574 if test -n "$ac_tool_prefix"; then
3575 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3576 set dummy
${ac_tool_prefix}cc
; ac_word
=$2
3577 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3578 $as_echo_n "checking for $ac_word... " >&6; }
3579 if ${ac_cv_prog_CC+:} false
; then :
3580 $as_echo_n "(cached) " >&6
3582 if test -n "$CC"; then
3583 ac_cv_prog_CC
="$CC" # Let the user override the test.
3585 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3589 test -z "$as_dir" && as_dir
=.
3590 for ac_exec_ext
in '' $ac_executable_extensions; do
3591 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
3592 ac_cv_prog_CC
="${ac_tool_prefix}cc"
3593 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3603 if test -n "$CC"; then
3604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3605 $as_echo "$CC" >&6; }
3607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3608 $as_echo "no" >&6; }
3614 if test -z "$CC"; then
3615 # Extract the first word of "cc", so it can be a program name with args.
3616 set dummy cc
; ac_word
=$2
3617 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3618 $as_echo_n "checking for $ac_word... " >&6; }
3619 if ${ac_cv_prog_CC+:} false
; then :
3620 $as_echo_n "(cached) " >&6
3622 if test -n "$CC"; then
3623 ac_cv_prog_CC
="$CC" # Let the user override the test.
3626 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3630 test -z "$as_dir" && as_dir
=.
3631 for ac_exec_ext
in '' $ac_executable_extensions; do
3632 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
3633 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3634 ac_prog_rejected
=yes
3638 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3645 if test $ac_prog_rejected = yes; then
3646 # We found a bogon in the path, so make sure we never use it.
3647 set dummy
$ac_cv_prog_CC
3649 if test $# != 0; then
3650 # We chose a different compiler from the bogus one.
3651 # However, it has the same basename, so the bogon will be chosen
3652 # first if we set CC to just the basename; use the full file name.
3654 ac_cv_prog_CC
="$as_dir/$ac_word${1+' '}$@"
3660 if test -n "$CC"; then
3661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3662 $as_echo "$CC" >&6; }
3664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3665 $as_echo "no" >&6; }
3670 if test -z "$CC"; then
3671 if test -n "$ac_tool_prefix"; then
3672 for ac_prog
in cl.exe
3674 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3675 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
3676 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3677 $as_echo_n "checking for $ac_word... " >&6; }
3678 if ${ac_cv_prog_CC+:} false
; then :
3679 $as_echo_n "(cached) " >&6
3681 if test -n "$CC"; then
3682 ac_cv_prog_CC
="$CC" # Let the user override the test.
3684 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3688 test -z "$as_dir" && as_dir
=.
3689 for ac_exec_ext
in '' $ac_executable_extensions; do
3690 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
3691 ac_cv_prog_CC
="$ac_tool_prefix$ac_prog"
3692 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3702 if test -n "$CC"; then
3703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3704 $as_echo "$CC" >&6; }
3706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3707 $as_echo "no" >&6; }
3711 test -n "$CC" && break
3714 if test -z "$CC"; then
3716 for ac_prog
in cl.exe
3718 # Extract the first word of "$ac_prog", so it can be a program name with args.
3719 set dummy
$ac_prog; ac_word
=$2
3720 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3721 $as_echo_n "checking for $ac_word... " >&6; }
3722 if ${ac_cv_prog_ac_ct_CC+:} false
; then :
3723 $as_echo_n "(cached) " >&6
3725 if test -n "$ac_ct_CC"; then
3726 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
3728 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3732 test -z "$as_dir" && as_dir
=.
3733 for ac_exec_ext
in '' $ac_executable_extensions; do
3734 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
3735 ac_cv_prog_ac_ct_CC
="$ac_prog"
3736 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3745 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
3746 if test -n "$ac_ct_CC"; then
3747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3748 $as_echo "$ac_ct_CC" >&6; }
3750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3751 $as_echo "no" >&6; }
3755 test -n "$ac_ct_CC" && break
3758 if test "x$ac_ct_CC" = x
; then
3761 case $cross_compiling:$ac_tool_warned in
3763 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3764 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3765 ac_tool_warned
=yes ;;
3774 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3775 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3776 as_fn_error $?
"no acceptable C compiler found in \$PATH
3777 See \`config.log' for more details" "$LINENO" 5; }
3779 # Provide some information about the compiler.
3780 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3783 for ac_option
in --version -v -V -qversion; do
3784 { { ac_try
="$ac_compiler $ac_option >&5"
3786 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3787 *) ac_try_echo=$ac_try;;
3789 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3790 $as_echo "$ac_try_echo"; } >&5
3791 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3793 if test -s conftest.err; then
3795 ... rest of stderr output deleted ...
3796 10q' conftest.err >conftest.er1
3797 cat conftest.er1 >&5
3799 rm -f conftest.er1 conftest.err
3800 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3801 test $ac_status = 0; }
3804 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3805 /* end confdefs.h. */
3815 ac_clean_files_save=$ac_clean_files
3816 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3817 # Try to create an executable without -o first, disregard a.out.
3818 # It will help us diagnose broken compilers, and finding out an intuition
3820 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3821 $as_echo_n "checking whether the C compiler works... " >&6; }
3822 ac_link_default=`$as_echo "$ac_link" |
sed 's/ -o *conftest[^ ]*//'`
3824 # The possible output files:
3825 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3828 for ac_file in $ac_files
3831 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3832 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3837 if { { ac_try="$ac_link_default"
3839 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3840 *) ac_try_echo
=$ac_try;;
3842 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3843 $as_echo "$ac_try_echo"; } >&5
3844 (eval "$ac_link_default") 2>&5
3846 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3847 test $ac_status = 0; }; then :
3848 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3849 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3850 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3851 # so that the user can short-circuit this test for compilers unknown to
3853 for ac_file
in $ac_files ''
3855 test -f "$ac_file" ||
continue
3857 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
)
3860 # We found the default executable, but exeext='' is most
3864 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no
;
3866 ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
3868 # We set ac_cv_exeext here because the later test for it is not
3869 # safe: cross compilers may not add the suffix if given an `-o'
3870 # argument, so we may need to know it at that point already.
3871 # Even if this section looks crufty: it has the advantage of
3878 test "$ac_cv_exeext" = no
&& ac_cv_exeext
=
3883 if test -z "$ac_file"; then :
3884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3885 $as_echo "no" >&6; }
3886 $as_echo "$as_me: failed program was:" >&5
3887 sed 's/^/| /' conftest.
$ac_ext >&5
3889 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3890 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3891 as_fn_error
77 "C compiler cannot create executables
3892 See \`config.log' for more details" "$LINENO" 5; }
3894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3895 $as_echo "yes" >&6; }
3897 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3898 $as_echo_n "checking for C compiler default output file name... " >&6; }
3899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3900 $as_echo "$ac_file" >&6; }
3901 ac_exeext
=$ac_cv_exeext
3903 rm -f -r a.out a.out.dSYM a.exe conftest
$ac_cv_exeext b.out
3904 ac_clean_files
=$ac_clean_files_save
3905 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3906 $as_echo_n "checking for suffix of executables... " >&6; }
3907 if { { ac_try
="$ac_link"
3909 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3910 *) ac_try_echo=$ac_try;;
3912 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3913 $as_echo "$ac_try_echo"; } >&5
3914 (eval "$ac_link") 2>&5
3916 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3917 test $ac_status = 0; }; then :
3918 # If both `conftest.exe
' and `conftest' are
`present' (well, observable)
3919 # catch `conftest.exe
'. For instance with Cygwin, `ls conftest' will
3920 # work properly (i.e., refer to `conftest.exe'), while it won't with
3922 for ac_file
in conftest.exe conftest conftest.
*; do
3923 test -f "$ac_file" ||
continue
3925 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
) ;;
3926 *.
* ) ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
3932 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3933 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3934 as_fn_error $?
"cannot compute suffix of executables: cannot compile and link
3935 See \`config.log' for more details" "$LINENO" 5; }
3937 rm -f conftest conftest
$ac_cv_exeext
3938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3939 $as_echo "$ac_cv_exeext" >&6; }
3941 rm -f conftest.
$ac_ext
3942 EXEEXT
=$ac_cv_exeext
3944 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3945 /* end confdefs.h. */
3950 FILE *f = fopen ("conftest.out", "w");
3951 return ferror (f) || fclose (f) != 0;
3957 ac_clean_files
="$ac_clean_files conftest.out"
3958 # Check that the compiler produces executables we can run. If not, either
3959 # the compiler is broken, or we cross compile.
3960 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3961 $as_echo_n "checking whether we are cross compiling... " >&6; }
3962 if test "$cross_compiling" != yes; then
3963 { { ac_try
="$ac_link"
3965 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3966 *) ac_try_echo=$ac_try;;
3968 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3969 $as_echo "$ac_try_echo"; } >&5
3970 (eval "$ac_link") 2>&5
3972 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3973 test $ac_status = 0; }
3974 if { ac_try='./conftest$ac_cv_exeext'
3975 { { case "(($ac_try" in
3976 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3977 *) ac_try_echo
=$ac_try;;
3979 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3980 $as_echo "$ac_try_echo"; } >&5
3981 (eval "$ac_try") 2>&5
3983 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3984 test $ac_status = 0; }; }; then
3987 if test "$cross_compiling" = maybe
; then
3990 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3991 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3992 as_fn_error $?
"cannot run C compiled programs.
3993 If you meant to cross compile, use \`--host'.
3994 See \`config.log' for more details" "$LINENO" 5; }
3998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3999 $as_echo "$cross_compiling" >&6; }
4001 rm -f conftest.
$ac_ext conftest
$ac_cv_exeext conftest.out
4002 ac_clean_files
=$ac_clean_files_save
4003 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4004 $as_echo_n "checking for suffix of object files... " >&6; }
4005 if ${ac_cv_objext+:} false
; then :
4006 $as_echo_n "(cached) " >&6
4008 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4009 /* end confdefs.h. */
4019 rm -f conftest.o conftest.obj
4020 if { { ac_try
="$ac_compile"
4022 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4023 *) ac_try_echo=$ac_try;;
4025 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4026 $as_echo "$ac_try_echo"; } >&5
4027 (eval "$ac_compile") 2>&5
4029 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4030 test $ac_status = 0; }; then :
4031 for ac_file in conftest.o conftest.obj conftest.*; do
4032 test -f "$ac_file" || continue;
4034 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4035 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4040 $as_echo "$as_me: failed program was:" >&5
4041 sed 's/^/| /' conftest.$ac_ext >&5
4043 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4044 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4045 as_fn_error $? "cannot compute suffix of object files
: cannot compile
4046 See \
`config.log' for more details" "$LINENO" 5; }
4048 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4051 $as_echo "$ac_cv_objext" >&6; }
4052 OBJEXT=$ac_cv_objext
4054 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4055 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4056 if ${ac_cv_c_compiler_gnu+:} false; then :
4057 $as_echo_n "(cached) " >&6
4059 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4060 /* end confdefs.h. */
4073 if ac_fn_c_try_compile "$LINENO"; then :
4078 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4079 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4083 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4084 if test $ac_compiler_gnu = yes; then
4089 ac_test_CFLAGS=${CFLAGS+set}
4090 ac_save_CFLAGS=$CFLAGS
4091 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4092 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4093 if ${ac_cv_prog_cc_g+:} false; then :
4094 $as_echo_n "(cached) " >&6
4096 ac_save_c_werror_flag=$ac_c_werror_flag
4097 ac_c_werror_flag=yes
4100 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4101 /* end confdefs.h. */
4111 if ac_fn_c_try_compile "$LINENO"; then :
4115 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4116 /* end confdefs.h. */
4126 if ac_fn_c_try_compile "$LINENO"; then :
4129 ac_c_werror_flag=$ac_save_c_werror_flag
4131 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4132 /* end confdefs.h. */
4142 if ac_fn_c_try_compile "$LINENO"; then :
4145 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4147 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4149 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4150 ac_c_werror_flag=$ac_save_c_werror_flag
4152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4153 $as_echo "$ac_cv_prog_cc_g" >&6; }
4154 if test "$ac_test_CFLAGS" = set; then
4155 CFLAGS=$ac_save_CFLAGS
4156 elif test $ac_cv_prog_cc_g = yes; then
4157 if test "$GCC" = yes; then
4163 if test "$GCC" = yes; then
4169 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4170 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4171 if ${ac_cv_prog_cc_c89+:} false; then :
4172 $as_echo_n "(cached) " >&6
4174 ac_cv_prog_cc_c89=no
4176 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4177 /* end confdefs.h. */
4181 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4182 struct buf { int x; };
4183 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4184 static char *e (p, i)
4190 static char *f (char * (*g) (char **, int), char **p, ...)
4195 s = g (p, va_arg (v,int));
4200 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4201 function prototypes and stuff, but not '\xHH' hex character constants.
4202 These don't provoke an error unfortunately, instead are silently treated
4203 as 'x'. The following induces an error, until -std is added to get
4204 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4205 array size at least. It's necessary to write '\x00'==0 to get something
4206 that's true only with -std. */
4207 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4209 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4210 inside strings and character constants. */
4212 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4214 int test (int i, double x);
4215 struct s1 {int (*f) (int a);};
4216 struct s2 {int (*f) (double a);};
4217 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4223 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4228 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4229 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4231 CC="$ac_save_CC $ac_arg"
4232 if ac_fn_c_try_compile "$LINENO"; then :
4233 ac_cv_prog_cc_c89=$ac_arg
4235 rm -f core conftest.err conftest.$ac_objext
4236 test "x$ac_cv_prog_cc_c89" != "xno" && break
4238 rm -f conftest.$ac_ext
4243 case "x$ac_cv_prog_cc_c89" in
4245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4246 $as_echo "none needed" >&6; } ;;
4248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4249 $as_echo "unsupported" >&6; } ;;
4251 CC="$CC $ac_cv_prog_cc_c89"
4252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4253 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4255 if test "x$ac_cv_prog_cc_c89" != xno; then :
4260 ac_cpp='$CPP $CPPFLAGS'
4261 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4262 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4263 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4266 ac_cpp='$CPP $CPPFLAGS'
4267 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4268 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4269 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4270 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
4271 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
4272 if ${am_cv_prog_cc_c_o+:} false; then :
4273 $as_echo_n "(cached) " >&6
4275 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4276 /* end confdefs.h. */
4286 # Make sure it works both with $CC and with simple cc.
4287 # Following AC_PROG_CC_C_O, we do the test twice because some
4288 # compilers refuse to overwrite an existing .o file with -o,
4289 # though they will create one.
4290 am_cv_prog_cc_c_o=yes
4292 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
4293 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
4295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4296 (exit $ac_status); } \
4297 && test -f conftest2.$ac_objext; then
4300 am_cv_prog_cc_c_o=no
4304 rm -f core conftest*
4307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
4308 $as_echo "$am_cv_prog_cc_c_o" >&6; }
4309 if test "$am_cv_prog_cc_c_o" != yes; then
4310 # Losing compiler, so override with the script.
4311 # FIXME: It is wrong to rewrite CC.
4312 # But if we don't then we get into trouble of one sort or another.
4313 # A longer-term fix would be to have automake use am__CC in this case,
4314 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4315 CC="$am_aux_dir/compile $CC"
4318 ac_cpp='$CPP $CPPFLAGS'
4319 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4320 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4321 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4324 depcc="$CC" am_compiler_list=
4326 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4327 $as_echo_n "checking dependency style of $depcc... " >&6; }
4328 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
4329 $as_echo_n "(cached) " >&6
4331 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4332 # We make a subdir and do the tests there. Otherwise we can end up
4333 # making bogus files that we don't know about and never remove. For
4334 # instance it was reported that on HP-UX the gcc test will end up
4335 # making a dummy file named 'D' -- because '-MD' means "put the output
4339 # Copy depcomp to subdir because otherwise we won't find it if we're
4340 # using a relative directory.
4341 cp "$am_depcomp" conftest.dir
4343 # We will build objects and dependencies in a subdirectory because
4344 # it helps to detect inapplicable dependency modes. For instance
4345 # both Tru64's cc and ICC support -MD to output dependencies as a
4346 # side effect of compilation, but ICC will put the dependencies in
4347 # the current directory while Tru64 will put them in the object
4351 am_cv_CC_dependencies_compiler_type=none
4352 if test "$am_compiler_list" = ""; then
4353 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < .
/depcomp
`
4356 case " $depcc " in #(
4357 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4360 for depmode in $am_compiler_list; do
4361 # Setup a source with many dependencies, because some compilers
4362 # like to wrap large dependency lists on column 80 (with \), and
4363 # we should not choose a depcomp mode which is confused by this.
4365 # We need to recreate these files for each test, as the compiler may
4366 # overwrite some of them when testing with obscure command lines.
4367 # This happens at least with the AIX C compiler.
4369 for i in 1 2 3 4 5 6; do
4370 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4371 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4372 # Solaris 10 /bin/sh.
4373 echo '/* dummy */' > sub/conftst$i.h
4375 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4377 # We check with '-c' and '-o' for the sake of the "dashmstdout"
4378 # mode. It turns out that the SunPro C++ compiler does not properly
4379 # handle '-M -o', and we need to detect this. Also, some Intel
4380 # versions had trouble with output in subdirs.
4381 am__obj=sub/conftest.${OBJEXT-o}
4382 am__minus_obj="-o $am__obj"
4385 # This depmode causes a compiler race in universal mode.
4386 test "$am__universal" = false || continue
4389 # After this tag, mechanisms are not by side-effect, so they'll
4390 # only be used when explicitly requested.
4391 if test "x$enable_dependency_tracking" = xyes; then
4397 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4398 # This compiler won't grok '-c -o', but also, the minuso test has
4399 # not run yet. These depmodes are late enough in the game, and
4400 # so weak that their functioning should not be impacted.
4401 am__obj=conftest.${OBJEXT-o}
4406 if depmode=$depmode \
4407 source=sub/conftest.c object=$am__obj \
4408 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4409 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4410 >/dev/null 2>conftest.err &&
4411 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4412 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4413 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4414 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4415 # icc doesn't choke on unknown options, it will just issue warnings
4416 # or remarks (even with -Werror). So we grep stderr for any message
4417 # that says an option was ignored or not supported.
4418 # When given -MP, icc 7.0 and 7.1 complain thusly:
4419 # icc: Command line warning: ignoring option '-M'; no argument required
4420 # The diagnosis changed in icc 8.0:
4421 # icc: Command line remark: option '-MP' not supported
4422 if (grep 'ignoring option' conftest.err ||
4423 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4424 am_cv_CC_dependencies_compiler_type=$depmode
4433 am_cv_CC_dependencies_compiler_type=none
4437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4438 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4439 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4442 test "x$enable_dependency_tracking" != xno \
4443 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4445 am__fastdepCC_FALSE='#'
4447 am__fastdepCC_TRUE='#'
4448 am__fastdepCC_FALSE=
4453 if test -n "$ac_tool_prefix"; then
4454 for ac_prog in ar lib "link -lib"
4456 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4457 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4458 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4459 $as_echo_n "checking for $ac_word... " >&6; }
4460 if ${ac_cv_prog_AR+:} false; then :
4461 $as_echo_n "(cached) " >&6
4463 if test -n "$AR"; then
4464 ac_cv_prog_AR="$AR" # Let the user override the test.
4466 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4470 test -z "$as_dir" && as_dir=.
4471 for ac_exec_ext in '' $ac_executable_extensions; do
4472 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4473 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
4474 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4484 if test -n "$AR"; then
4485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
4486 $as_echo "$AR" >&6; }
4488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4489 $as_echo "no" >&6; }
4493 test -n "$AR" && break
4496 if test -z "$AR"; then
4498 for ac_prog in ar lib "link -lib"
4500 # Extract the first word of "$ac_prog", so it can be a program name with args.
4501 set dummy $ac_prog; ac_word=$2
4502 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4503 $as_echo_n "checking for $ac_word... " >&6; }
4504 if ${ac_cv_prog_ac_ct_AR+:} false; then :
4505 $as_echo_n "(cached) " >&6
4507 if test -n "$ac_ct_AR"; then
4508 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
4510 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4514 test -z "$as_dir" && as_dir=.
4515 for ac_exec_ext in '' $ac_executable_extensions; do
4516 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4517 ac_cv_prog_ac_ct_AR="$ac_prog"
4518 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4527 ac_ct_AR=$ac_cv_prog_ac_ct_AR
4528 if test -n "$ac_ct_AR"; then
4529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
4530 $as_echo "$ac_ct_AR" >&6; }
4532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4533 $as_echo "no" >&6; }
4537 test -n "$ac_ct_AR" && break
4540 if test "x$ac_ct_AR" = x; then
4543 case $cross_compiling:$ac_tool_warned in
4545 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4546 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4547 ac_tool_warned=yes ;;
4555 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the archiver ($AR) interface" >&5
4556 $as_echo_n "checking the archiver ($AR) interface... " >&6; }
4557 if ${am_cv_ar_interface+:} false; then :
4558 $as_echo_n "(cached) " >&6
4561 ac_cpp='$CPP $CPPFLAGS'
4562 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4563 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4564 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4566 am_cv_ar_interface=ar
4567 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4568 /* end confdefs.h. */
4569 int some_variable = 0;
4571 if ac_fn_c_try_compile "$LINENO"; then :
4572 am_ar_try='$AR cru libconftest.a conftest.$ac_objext >&5'
4573 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$am_ar_try\""; } >&5
4574 (eval $am_ar_try) 2>&5
4576 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4577 test $ac_status = 0; }
4578 if test "$ac_status" -eq 0; then
4579 am_cv_ar_interface=ar
4581 am_ar_try='$AR -NOLOGO -OUT:conftest.lib conftest.$ac_objext >&5'
4582 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$am_ar_try\""; } >&5
4583 (eval $am_ar_try) 2>&5
4585 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4586 test $ac_status = 0; }
4587 if test "$ac_status" -eq 0; then
4588 am_cv_ar_interface=lib
4590 am_cv_ar_interface=unknown
4593 rm -f conftest.lib libconftest.a
4596 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4598 ac_cpp='$CPP $CPPFLAGS'
4599 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4600 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4601 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_ar_interface" >&5
4605 $as_echo "$am_cv_ar_interface" >&6; }
4607 case $am_cv_ar_interface in
4611 # Microsoft lib, so override with the ar-lib wrapper script.
4612 # FIXME: It is wrong to rewrite AR.
4613 # But if we don't then we get into trouble of one sort or another.
4614 # A longer-term fix would be to have automake use am__AR in this case,
4615 # and then we could set am__AR="$am_aux_dir/ar-lib \$(AR)" or something
4617 AR="$am_aux_dir/ar-lib $AR"
4620 as_fn_error $? "could not determine $AR interface" "$LINENO" 5
4625 # This was added at the suggestion of libtoolize (03-Jan-10)
4628 # The default CFLAGS and CXXFLAGS in Autoconf are "-g -O2" for gcc and just
4629 # "-g" for any other compiler. There doesn't seem to be a standard way of
4630 # getting rid of the -g (which I don't think is needed for a production
4631 # library). This fudge seems to achieve the necessary. First, we remember the
4632 # externally set values of CFLAGS and CXXFLAGS. Then call the AC_PROG_CC and
4633 # AC_PROG_CXX macros to find the compilers - if CFLAGS and CXXFLAGS are not
4634 # set, they will be set to Autoconf's defaults. Afterwards, if the original
4635 # values were not set, remove the -g from the Autoconf defaults.
4638 remember_set_CFLAGS="$CFLAGS"
4639 remember_set_CXXFLAGS="$CXXFLAGS"
4642 ac_cpp='$CPP $CPPFLAGS'
4643 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4644 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4645 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4646 if test -n "$ac_tool_prefix"; then
4647 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4648 set dummy ${ac_tool_prefix}gcc; ac_word=$2
4649 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4650 $as_echo_n "checking for $ac_word... " >&6; }
4651 if ${ac_cv_prog_CC+:} false; then :
4652 $as_echo_n "(cached) " >&6
4654 if test -n "$CC"; then
4655 ac_cv_prog_CC="$CC" # Let the user override the test.
4657 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4661 test -z "$as_dir" && as_dir=.
4662 for ac_exec_ext in '' $ac_executable_extensions; do
4663 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4664 ac_cv_prog_CC="${ac_tool_prefix}gcc"
4665 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4675 if test -n "$CC"; then
4676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4677 $as_echo "$CC" >&6; }
4679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4680 $as_echo "no" >&6; }
4685 if test -z "$ac_cv_prog_CC"; then
4687 # Extract the first word of "gcc", so it can be a program name with args.
4688 set dummy gcc; ac_word=$2
4689 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4690 $as_echo_n "checking for $ac_word... " >&6; }
4691 if ${ac_cv_prog_ac_ct_CC+:} false; then :
4692 $as_echo_n "(cached) " >&6
4694 if test -n "$ac_ct_CC"; then
4695 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4697 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4701 test -z "$as_dir" && as_dir=.
4702 for ac_exec_ext in '' $ac_executable_extensions; do
4703 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4704 ac_cv_prog_ac_ct_CC="gcc"
4705 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4714 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4715 if test -n "$ac_ct_CC"; then
4716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4717 $as_echo "$ac_ct_CC" >&6; }
4719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4720 $as_echo "no" >&6; }
4723 if test "x$ac_ct_CC" = x; then
4726 case $cross_compiling:$ac_tool_warned in
4728 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4729 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4730 ac_tool_warned=yes ;;
4738 if test -z "$CC"; then
4739 if test -n "$ac_tool_prefix"; then
4740 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4741 set dummy ${ac_tool_prefix}cc; ac_word=$2
4742 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4743 $as_echo_n "checking for $ac_word... " >&6; }
4744 if ${ac_cv_prog_CC+:} false; then :
4745 $as_echo_n "(cached) " >&6
4747 if test -n "$CC"; then
4748 ac_cv_prog_CC="$CC" # Let the user override the test.
4750 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4754 test -z "$as_dir" && as_dir=.
4755 for ac_exec_ext in '' $ac_executable_extensions; do
4756 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4757 ac_cv_prog_CC="${ac_tool_prefix}cc"
4758 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4768 if test -n "$CC"; then
4769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4770 $as_echo "$CC" >&6; }
4772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4773 $as_echo "no" >&6; }
4779 if test -z "$CC"; then
4780 # Extract the first word of "cc", so it can be a program name with args.
4781 set dummy cc; ac_word=$2
4782 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4783 $as_echo_n "checking for $ac_word... " >&6; }
4784 if ${ac_cv_prog_CC+:} false; then :
4785 $as_echo_n "(cached) " >&6
4787 if test -n "$CC"; then
4788 ac_cv_prog_CC="$CC" # Let the user override the test.
4791 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4795 test -z "$as_dir" && as_dir=.
4796 for ac_exec_ext in '' $ac_executable_extensions; do
4797 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4798 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4799 ac_prog_rejected=yes
4803 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4810 if test $ac_prog_rejected = yes; then
4811 # We found a bogon in the path, so make sure we never use it.
4812 set dummy $ac_cv_prog_CC
4814 if test $# != 0; then
4815 # We chose a different compiler from the bogus one.
4816 # However, it has the same basename, so the bogon will be chosen
4817 # first if we set CC to just the basename; use the full file name.
4819 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4825 if test -n "$CC"; then
4826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4827 $as_echo "$CC" >&6; }
4829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4830 $as_echo "no" >&6; }
4835 if test -z "$CC"; then
4836 if test -n "$ac_tool_prefix"; then
4837 for ac_prog in cl.exe
4839 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4840 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4841 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4842 $as_echo_n "checking for $ac_word... " >&6; }
4843 if ${ac_cv_prog_CC+:} false; then :
4844 $as_echo_n "(cached) " >&6
4846 if test -n "$CC"; then
4847 ac_cv_prog_CC="$CC" # Let the user override the test.
4849 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4853 test -z "$as_dir" && as_dir=.
4854 for ac_exec_ext in '' $ac_executable_extensions; do
4855 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4856 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4857 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4867 if test -n "$CC"; then
4868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4869 $as_echo "$CC" >&6; }
4871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4872 $as_echo "no" >&6; }
4876 test -n "$CC" && break
4879 if test -z "$CC"; then
4881 for ac_prog in cl.exe
4883 # Extract the first word of "$ac_prog", so it can be a program name with args.
4884 set dummy $ac_prog; ac_word=$2
4885 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4886 $as_echo_n "checking for $ac_word... " >&6; }
4887 if ${ac_cv_prog_ac_ct_CC+:} false; then :
4888 $as_echo_n "(cached) " >&6
4890 if test -n "$ac_ct_CC"; then
4891 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4893 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4897 test -z "$as_dir" && as_dir=.
4898 for ac_exec_ext in '' $ac_executable_extensions; do
4899 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4900 ac_cv_prog_ac_ct_CC="$ac_prog"
4901 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4910 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4911 if test -n "$ac_ct_CC"; then
4912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4913 $as_echo "$ac_ct_CC" >&6; }
4915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4916 $as_echo "no" >&6; }
4920 test -n "$ac_ct_CC" && break
4923 if test "x$ac_ct_CC" = x; then
4926 case $cross_compiling:$ac_tool_warned in
4928 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4929 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4930 ac_tool_warned=yes ;;
4939 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4940 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4941 as_fn_error $? "no acceptable C compiler found
in \
$PATH
4942 See \
`config.log' for more details" "$LINENO" 5; }
4944 # Provide some information about the compiler.
4945 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4948 for ac_option in --version -v -V -qversion; do
4949 { { ac_try="$ac_compiler $ac_option >&5"
4951 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4952 *) ac_try_echo
=$ac_try;;
4954 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4955 $as_echo "$ac_try_echo"; } >&5
4956 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4958 if test -s conftest.err
; then
4960 ... rest of stderr output deleted ...
4961 10q' conftest.err
>conftest.er1
4962 cat conftest.er1
>&5
4964 rm -f conftest.er1 conftest.err
4965 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4966 test $ac_status = 0; }
4969 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4970 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4971 if ${ac_cv_c_compiler_gnu+:} false
; then :
4972 $as_echo_n "(cached) " >&6
4974 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4975 /* end confdefs.h. */
4988 if ac_fn_c_try_compile
"$LINENO"; then :
4993 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4994 ac_cv_c_compiler_gnu
=$ac_compiler_gnu
4997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4998 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4999 if test $ac_compiler_gnu = yes; then
5004 ac_test_CFLAGS
=${CFLAGS+set}
5005 ac_save_CFLAGS
=$CFLAGS
5006 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
5007 $as_echo_n "checking whether $CC accepts -g... " >&6; }
5008 if ${ac_cv_prog_cc_g+:} false
; then :
5009 $as_echo_n "(cached) " >&6
5011 ac_save_c_werror_flag
=$ac_c_werror_flag
5012 ac_c_werror_flag
=yes
5015 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5016 /* end confdefs.h. */
5026 if ac_fn_c_try_compile
"$LINENO"; then :
5030 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5031 /* end confdefs.h. */
5041 if ac_fn_c_try_compile
"$LINENO"; then :
5044 ac_c_werror_flag
=$ac_save_c_werror_flag
5046 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5047 /* end confdefs.h. */
5057 if ac_fn_c_try_compile
"$LINENO"; then :
5060 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5062 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5064 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5065 ac_c_werror_flag
=$ac_save_c_werror_flag
5067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
5068 $as_echo "$ac_cv_prog_cc_g" >&6; }
5069 if test "$ac_test_CFLAGS" = set; then
5070 CFLAGS
=$ac_save_CFLAGS
5071 elif test $ac_cv_prog_cc_g = yes; then
5072 if test "$GCC" = yes; then
5078 if test "$GCC" = yes; then
5084 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
5085 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
5086 if ${ac_cv_prog_cc_c89+:} false
; then :
5087 $as_echo_n "(cached) " >&6
5089 ac_cv_prog_cc_c89
=no
5091 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5092 /* end confdefs.h. */
5096 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
5097 struct buf { int x; };
5098 FILE * (*rcsopen) (struct buf *, struct stat *, int);
5099 static char *e (p, i)
5105 static char *f (char * (*g) (char **, int), char **p, ...)
5110 s = g (p, va_arg (v,int));
5115 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
5116 function prototypes and stuff, but not '\xHH' hex character constants.
5117 These don't provoke an error unfortunately, instead are silently treated
5118 as 'x'. The following induces an error, until -std is added to get
5119 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
5120 array size at least. It's necessary to write '\x00'==0 to get something
5121 that's true only with -std. */
5122 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5124 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5125 inside strings and character constants. */
5127 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5129 int test (int i, double x);
5130 struct s1 {int (*f) (int a);};
5131 struct s2 {int (*f) (double a);};
5132 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5138 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
5143 for ac_arg
in '' -qlanglvl=extc89
-qlanglvl=ansi
-std \
5144 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5146 CC
="$ac_save_CC $ac_arg"
5147 if ac_fn_c_try_compile
"$LINENO"; then :
5148 ac_cv_prog_cc_c89
=$ac_arg
5150 rm -f core conftest.err conftest.
$ac_objext
5151 test "x$ac_cv_prog_cc_c89" != "xno" && break
5153 rm -f conftest.
$ac_ext
5158 case "x$ac_cv_prog_cc_c89" in
5160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5161 $as_echo "none needed" >&6; } ;;
5163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5164 $as_echo "unsupported" >&6; } ;;
5166 CC
="$CC $ac_cv_prog_cc_c89"
5167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
5168 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
5170 if test "x$ac_cv_prog_cc_c89" != xno
; then :
5175 ac_cpp
='$CPP $CPPFLAGS'
5176 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5177 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5178 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
5181 ac_cpp
='$CPP $CPPFLAGS'
5182 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5183 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5184 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
5185 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
5186 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
5187 if ${am_cv_prog_cc_c_o+:} false
; then :
5188 $as_echo_n "(cached) " >&6
5190 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5191 /* end confdefs.h. */
5201 # Make sure it works both with $CC and with simple cc.
5202 # Following AC_PROG_CC_C_O, we do the test twice because some
5203 # compilers refuse to overwrite an existing .o file with -o,
5204 # though they will create one.
5205 am_cv_prog_cc_c_o
=yes
5207 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
5208 ($CC -c conftest.
$ac_ext -o conftest2.
$ac_objext) >&5 2>&5
5210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5211 (exit $ac_status); } \
5212 && test -f conftest2.
$ac_objext; then
5215 am_cv_prog_cc_c_o
=no
5219 rm -f core conftest
*
5222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
5223 $as_echo "$am_cv_prog_cc_c_o" >&6; }
5224 if test "$am_cv_prog_cc_c_o" != yes; then
5225 # Losing compiler, so override with the script.
5226 # FIXME: It is wrong to rewrite CC.
5227 # But if we don't then we get into trouble of one sort or another.
5228 # A longer-term fix would be to have automake use am__CC in this case,
5229 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
5230 CC
="$am_aux_dir/compile $CC"
5233 ac_cpp
='$CPP $CPPFLAGS'
5234 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5235 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5236 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
5239 depcc
="$CC" am_compiler_list
=
5241 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
5242 $as_echo_n "checking dependency style of $depcc... " >&6; }
5243 if ${am_cv_CC_dependencies_compiler_type+:} false
; then :
5244 $as_echo_n "(cached) " >&6
5246 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5247 # We make a subdir and do the tests there. Otherwise we can end up
5248 # making bogus files that we don't know about and never remove. For
5249 # instance it was reported that on HP-UX the gcc test will end up
5250 # making a dummy file named 'D' -- because '-MD' means "put the output
5254 # Copy depcomp to subdir because otherwise we won't find it if we're
5255 # using a relative directory.
5256 cp "$am_depcomp" conftest.dir
5258 # We will build objects and dependencies in a subdirectory because
5259 # it helps to detect inapplicable dependency modes. For instance
5260 # both Tru64's cc and ICC support -MD to output dependencies as a
5261 # side effect of compilation, but ICC will put the dependencies in
5262 # the current directory while Tru64 will put them in the object
5266 am_cv_CC_dependencies_compiler_type
=none
5267 if test "$am_compiler_list" = ""; then
5268 am_compiler_list
=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5271 case " $depcc " in #(
5272 *\
-arch\
*\
-arch\
*) am__universal
=true
;;
5275 for depmode
in $am_compiler_list; do
5276 # Setup a source with many dependencies, because some compilers
5277 # like to wrap large dependency lists on column 80 (with \), and
5278 # we should not choose a depcomp mode which is confused by this.
5280 # We need to recreate these files for each test, as the compiler may
5281 # overwrite some of them when testing with obscure command lines.
5282 # This happens at least with the AIX C compiler.
5284 for i
in 1 2 3 4 5 6; do
5285 echo '#include "conftst'$i'.h"' >> sub
/conftest.c
5286 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
5287 # Solaris 10 /bin/sh.
5288 echo '/* dummy */' > sub
/conftst
$i.h
5290 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5292 # We check with '-c' and '-o' for the sake of the "dashmstdout"
5293 # mode. It turns out that the SunPro C++ compiler does not properly
5294 # handle '-M -o', and we need to detect this. Also, some Intel
5295 # versions had trouble with output in subdirs.
5296 am__obj
=sub
/conftest.
${OBJEXT-o}
5297 am__minus_obj
="-o $am__obj"
5300 # This depmode causes a compiler race in universal mode.
5301 test "$am__universal" = false ||
continue
5304 # After this tag, mechanisms are not by side-effect, so they'll
5305 # only be used when explicitly requested.
5306 if test "x$enable_dependency_tracking" = xyes
; then
5312 msvc7 | msvc7msys | msvisualcpp | msvcmsys
)
5313 # This compiler won't grok '-c -o', but also, the minuso test has
5314 # not run yet. These depmodes are late enough in the game, and
5315 # so weak that their functioning should not be impacted.
5316 am__obj
=conftest.
${OBJEXT-o}
5321 if depmode
=$depmode \
5322 source=sub
/conftest.c object
=$am__obj \
5323 depfile
=sub
/conftest.Po tmpdepfile
=sub
/conftest.TPo \
5324 $SHELL .
/depcomp
$depcc -c $am__minus_obj sub
/conftest.c \
5325 >/dev
/null
2>conftest.err
&&
5326 grep sub
/conftst1.h sub
/conftest.Po
> /dev
/null
2>&1 &&
5327 grep sub
/conftst6.h sub
/conftest.Po
> /dev
/null
2>&1 &&
5328 grep $am__obj sub
/conftest.Po
> /dev
/null
2>&1 &&
5329 ${MAKE-make} -s -f confmf
> /dev
/null
2>&1; then
5330 # icc doesn't choke on unknown options, it will just issue warnings
5331 # or remarks (even with -Werror). So we grep stderr for any message
5332 # that says an option was ignored or not supported.
5333 # When given -MP, icc 7.0 and 7.1 complain thusly:
5334 # icc: Command line warning: ignoring option '-M'; no argument required
5335 # The diagnosis changed in icc 8.0:
5336 # icc: Command line remark: option '-MP' not supported
5337 if (grep 'ignoring option' conftest.err ||
5338 grep 'not supported' conftest.err
) >/dev
/null
2>&1; then :; else
5339 am_cv_CC_dependencies_compiler_type
=$depmode
5348 am_cv_CC_dependencies_compiler_type
=none
5352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
5353 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
5354 CCDEPMODE
=depmode
=$am_cv_CC_dependencies_compiler_type
5357 test "x$enable_dependency_tracking" != xno \
5358 && test "$am_cv_CC_dependencies_compiler_type" = gcc3
; then
5360 am__fastdepCC_FALSE
='#'
5362 am__fastdepCC_TRUE
='#'
5363 am__fastdepCC_FALSE
=
5368 ac_cpp
='$CXXCPP $CPPFLAGS'
5369 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5370 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5371 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
5372 if test -z "$CXX"; then
5373 if test -n "$CCC"; then
5376 if test -n "$ac_tool_prefix"; then
5377 for ac_prog
in g
++ c
++ gpp aCC CC cxx cc
++ cl.exe FCC KCC RCC xlC_r xlC
5379 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5380 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
5381 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5382 $as_echo_n "checking for $ac_word... " >&6; }
5383 if ${ac_cv_prog_CXX+:} false
; then :
5384 $as_echo_n "(cached) " >&6
5386 if test -n "$CXX"; then
5387 ac_cv_prog_CXX
="$CXX" # Let the user override the test.
5389 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5393 test -z "$as_dir" && as_dir
=.
5394 for ac_exec_ext
in '' $ac_executable_extensions; do
5395 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
5396 ac_cv_prog_CXX
="$ac_tool_prefix$ac_prog"
5397 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5407 if test -n "$CXX"; then
5408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
5409 $as_echo "$CXX" >&6; }
5411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5412 $as_echo "no" >&6; }
5416 test -n "$CXX" && break
5419 if test -z "$CXX"; then
5421 for ac_prog
in g
++ c
++ gpp aCC CC cxx cc
++ cl.exe FCC KCC RCC xlC_r xlC
5423 # Extract the first word of "$ac_prog", so it can be a program name with args.
5424 set dummy
$ac_prog; ac_word
=$2
5425 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5426 $as_echo_n "checking for $ac_word... " >&6; }
5427 if ${ac_cv_prog_ac_ct_CXX+:} false
; then :
5428 $as_echo_n "(cached) " >&6
5430 if test -n "$ac_ct_CXX"; then
5431 ac_cv_prog_ac_ct_CXX
="$ac_ct_CXX" # Let the user override the test.
5433 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5437 test -z "$as_dir" && as_dir
=.
5438 for ac_exec_ext
in '' $ac_executable_extensions; do
5439 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
5440 ac_cv_prog_ac_ct_CXX
="$ac_prog"
5441 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5450 ac_ct_CXX
=$ac_cv_prog_ac_ct_CXX
5451 if test -n "$ac_ct_CXX"; then
5452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
5453 $as_echo "$ac_ct_CXX" >&6; }
5455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5456 $as_echo "no" >&6; }
5460 test -n "$ac_ct_CXX" && break
5463 if test "x$ac_ct_CXX" = x
; then
5466 case $cross_compiling:$ac_tool_warned in
5468 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5469 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5470 ac_tool_warned
=yes ;;
5478 # Provide some information about the compiler.
5479 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
5482 for ac_option
in --version -v -V -qversion; do
5483 { { ac_try
="$ac_compiler $ac_option >&5"
5485 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5486 *) ac_try_echo=$ac_try;;
5488 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5489 $as_echo "$ac_try_echo"; } >&5
5490 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
5492 if test -s conftest.err; then
5494 ... rest of stderr output deleted ...
5495 10q' conftest.err >conftest.er1
5496 cat conftest.er1 >&5
5498 rm -f conftest.er1 conftest.err
5499 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5500 test $ac_status = 0; }
5503 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
5504 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
5505 if ${ac_cv_cxx_compiler_gnu+:} false; then :
5506 $as_echo_n "(cached) " >&6
5508 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5509 /* end confdefs.h. */
5522 if ac_fn_cxx_try_compile "$LINENO"; then :
5527 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5528 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
5531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
5532 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
5533 if test $ac_compiler_gnu = yes; then
5538 ac_test_CXXFLAGS=${CXXFLAGS+set}
5539 ac_save_CXXFLAGS=$CXXFLAGS
5540 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
5541 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
5542 if ${ac_cv_prog_cxx_g+:} false; then :
5543 $as_echo_n "(cached) " >&6
5545 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
5546 ac_cxx_werror_flag=yes
5549 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5550 /* end confdefs.h. */
5560 if ac_fn_cxx_try_compile "$LINENO"; then :
5561 ac_cv_prog_cxx_g=yes
5564 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5565 /* end confdefs.h. */
5575 if ac_fn_cxx_try_compile "$LINENO"; then :
5578 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5580 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5581 /* end confdefs.h. */
5591 if ac_fn_cxx_try_compile "$LINENO"; then :
5592 ac_cv_prog_cxx_g=yes
5594 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5596 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5598 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5599 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
5602 $as_echo "$ac_cv_prog_cxx_g" >&6; }
5603 if test "$ac_test_CXXFLAGS" = set; then
5604 CXXFLAGS=$ac_save_CXXFLAGS
5605 elif test $ac_cv_prog_cxx_g = yes; then
5606 if test "$GXX" = yes; then
5612 if test "$GXX" = yes; then
5619 ac_cpp='$CPP $CPPFLAGS'
5620 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5621 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5622 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5624 depcc="$CXX" am_compiler_list=
5626 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
5627 $as_echo_n "checking dependency style of $depcc... " >&6; }
5628 if ${am_cv_CXX_dependencies_compiler_type+:} false; then :
5629 $as_echo_n "(cached) " >&6
5631 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5632 # We make a subdir and do the tests there. Otherwise we can end up
5633 # making bogus files that we don't know about and never remove. For
5634 # instance it was reported that on HP-UX the gcc test will end up
5635 # making a dummy file named 'D' -- because '-MD' means "put the output
5639 # Copy depcomp to subdir because otherwise we won't find it if we're
5640 # using a relative directory.
5641 cp "$am_depcomp" conftest.dir
5643 # We will build objects and dependencies in a subdirectory because
5644 # it helps to detect inapplicable dependency modes. For instance
5645 # both Tru64's cc and ICC support -MD to output dependencies as a
5646 # side effect of compilation, but ICC will put the dependencies in
5647 # the current directory while Tru64 will put them in the object
5651 am_cv_CXX_dependencies_compiler_type=none
5652 if test "$am_compiler_list" = ""; then
5653 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < .
/depcomp
`
5656 case " $depcc " in #(
5657 *\ -arch\ *\ -arch\ *) am__universal=true ;;
5660 for depmode in $am_compiler_list; do
5661 # Setup a source with many dependencies, because some compilers
5662 # like to wrap large dependency lists on column 80 (with \), and
5663 # we should not choose a depcomp mode which is confused by this.
5665 # We need to recreate these files for each test, as the compiler may
5666 # overwrite some of them when testing with obscure command lines.
5667 # This happens at least with the AIX C compiler.
5669 for i in 1 2 3 4 5 6; do
5670 echo '#include "conftst'$i'.h"' >> sub/conftest.c
5671 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
5672 # Solaris 10 /bin/sh.
5673 echo '/* dummy */' > sub/conftst$i.h
5675 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5677 # We check with '-c' and '-o' for the sake of the "dashmstdout"
5678 # mode. It turns out that the SunPro C++ compiler does not properly
5679 # handle '-M -o', and we need to detect this. Also, some Intel
5680 # versions had trouble with output in subdirs.
5681 am__obj=sub/conftest.${OBJEXT-o}
5682 am__minus_obj="-o $am__obj"
5685 # This depmode causes a compiler race in universal mode.
5686 test "$am__universal" = false || continue
5689 # After this tag, mechanisms are not by side-effect, so they'll
5690 # only be used when explicitly requested.
5691 if test "x$enable_dependency_tracking" = xyes; then
5697 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
5698 # This compiler won't grok '-c -o', but also, the minuso test has
5699 # not run yet. These depmodes are late enough in the game, and
5700 # so weak that their functioning should not be impacted.
5701 am__obj=conftest.${OBJEXT-o}
5706 if depmode=$depmode \
5707 source=sub/conftest.c object=$am__obj \
5708 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5709 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
5710 >/dev/null 2>conftest.err &&
5711 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5712 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5713 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
5714 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5715 # icc doesn't choke on unknown options, it will just issue warnings
5716 # or remarks (even with -Werror). So we grep stderr for any message
5717 # that says an option was ignored or not supported.
5718 # When given -MP, icc 7.0 and 7.1 complain thusly:
5719 # icc: Command line warning: ignoring option '-M'; no argument required
5720 # The diagnosis changed in icc 8.0:
5721 # icc: Command line remark: option '-MP' not supported
5722 if (grep 'ignoring option' conftest.err ||
5723 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5724 am_cv_CXX_dependencies_compiler_type=$depmode
5733 am_cv_CXX_dependencies_compiler_type=none
5737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
5738 $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
5739 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
5742 test "x$enable_dependency_tracking" != xno \
5743 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
5744 am__fastdepCXX_TRUE=
5745 am__fastdepCXX_FALSE='#'
5747 am__fastdepCXX_TRUE='#'
5748 am__fastdepCXX_FALSE=
5754 if test "x$remember_set_CFLAGS" = "x"
5756 if test "$CFLAGS" = "-g -O2"
5759 elif test "$CFLAGS" = "-g"
5765 if test "x$remember_set_CXXFLAGS" = "x"
5767 if test "$CXXFLAGS" = "-g -O2"
5770 elif test "$CXXFLAGS" = "-g"
5776 # AC_PROG_CXX will return "g++" even if no c++ compiler is installed.
5777 # Check for that case, and just disable c++ code if g++ doesn't run.
5779 ac_cpp='$CXXCPP $CPPFLAGS'
5780 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5781 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5782 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5785 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5786 /* end confdefs.h. */
5796 if ac_fn_cxx_try_compile "$LINENO"; then :
5799 CXX=""; CXXCP=""; CXXFLAGS=""
5801 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5803 ac_cpp='$CPP $CPPFLAGS'
5804 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5805 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5806 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5809 # Check for a 64-bit integer type
5811 ac_cpp='$CPP $CPPFLAGS'
5812 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5813 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5814 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5815 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
5816 $as_echo_n "checking how to run the C preprocessor... " >&6; }
5817 # On Suns, sometimes $CPP names a directory.
5818 if test -n "$CPP" && test -d "$CPP"; then
5821 if test -z "$CPP"; then
5822 if ${ac_cv_prog_CPP+:} false; then :
5823 $as_echo_n "(cached) " >&6
5825 # Double quotes because CPP needs to be expanded
5826 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5829 for ac_c_preproc_warn_flag in '' yes
5831 # Use a header file that comes with gcc, so configuring glibc
5832 # with a fresh cross-compiler works.
5833 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5834 # <limits.h> exists even on freestanding compilers.
5835 # On the NeXT, cc -E runs the code through the compiler's parser,
5836 # not just through cpp. "Syntax error" is here to catch this case.
5837 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5838 /* end confdefs.h. */
5840 # include <limits.h>
5842 # include <assert.h>
5846 if ac_fn_c_try_cpp "$LINENO"; then :
5849 # Broken: fails on valid input.
5852 rm -f conftest.err conftest.i conftest.$ac_ext
5854 # OK, works on sane cases. Now check whether nonexistent headers
5855 # can be detected and how.
5856 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5857 /* end confdefs.h. */
5858 #include <ac_nonexistent.h>
5860 if ac_fn_c_try_cpp "$LINENO"; then :
5861 # Broken: success on invalid input.
5864 # Passes both tests.
5868 rm -f conftest.err conftest.i conftest.$ac_ext
5871 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5872 rm -f conftest.i conftest.err conftest.
$ac_ext
5873 if $ac_preproc_ok; then :
5885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5886 $as_echo "$CPP" >&6; }
5888 for ac_c_preproc_warn_flag
in '' yes
5890 # Use a header file that comes with gcc, so configuring glibc
5891 # with a fresh cross-compiler works.
5892 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5893 # <limits.h> exists even on freestanding compilers.
5894 # On the NeXT, cc -E runs the code through the compiler's parser,
5895 # not just through cpp. "Syntax error" is here to catch this case.
5896 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5897 /* end confdefs.h. */
5899 # include <limits.h>
5901 # include <assert.h>
5905 if ac_fn_c_try_cpp
"$LINENO"; then :
5908 # Broken: fails on valid input.
5911 rm -f conftest.err conftest.i conftest.
$ac_ext
5913 # OK, works on sane cases. Now check whether nonexistent headers
5914 # can be detected and how.
5915 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5916 /* end confdefs.h. */
5917 #include <ac_nonexistent.h>
5919 if ac_fn_c_try_cpp
"$LINENO"; then :
5920 # Broken: success on invalid input.
5923 # Passes both tests.
5927 rm -f conftest.err conftest.i conftest.
$ac_ext
5930 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5931 rm -f conftest.i conftest.err conftest.
$ac_ext
5932 if $ac_preproc_ok; then :
5935 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5936 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5937 as_fn_error $?
"C preprocessor \"$CPP\" fails sanity check
5938 See \`config.log' for more details" "$LINENO" 5; }
5942 ac_cpp
='$CPP $CPPFLAGS'
5943 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5944 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5945 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
5948 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5949 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5950 if ${ac_cv_path_GREP+:} false
; then :
5951 $as_echo_n "(cached) " >&6
5953 if test -z "$GREP"; then
5954 ac_path_GREP_found
=false
5955 # Loop through the user's path and test for each of PROGNAME-LIST
5956 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5957 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
5960 test -z "$as_dir" && as_dir
=.
5961 for ac_prog
in grep ggrep
; do
5962 for ac_exec_ext
in '' $ac_executable_extensions; do
5963 ac_path_GREP
="$as_dir/$ac_prog$ac_exec_ext"
5964 as_fn_executable_p
"$ac_path_GREP" ||
continue
5965 # Check for GNU ac_path_GREP and select it if it is found.
5966 # Check for GNU $ac_path_GREP
5967 case `"$ac_path_GREP" --version 2>&1` in
5969 ac_cv_path_GREP
="$ac_path_GREP" ac_path_GREP_found
=:;;
5972 $as_echo_n 0123456789 >"conftest.in"
5975 cat "conftest.in" "conftest.in" >"conftest.tmp"
5976 mv "conftest.tmp" "conftest.in"
5977 cp "conftest.in" "conftest.nl"
5978 $as_echo 'GREP' >> "conftest.nl"
5979 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
5980 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
5981 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
5982 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5983 # Best one so far, save it but keep looking for a better one
5984 ac_cv_path_GREP
="$ac_path_GREP"
5985 ac_path_GREP_max
=$ac_count
5987 # 10*(2^10) chars as input seems more than enough
5988 test $ac_count -gt 10 && break
5990 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
5993 $ac_path_GREP_found && break 3
5998 if test -z "$ac_cv_path_GREP"; then
5999 as_fn_error $?
"no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6002 ac_cv_path_GREP
=$GREP
6006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
6007 $as_echo "$ac_cv_path_GREP" >&6; }
6008 GREP
="$ac_cv_path_GREP"
6011 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
6012 $as_echo_n "checking for egrep... " >&6; }
6013 if ${ac_cv_path_EGREP+:} false
; then :
6014 $as_echo_n "(cached) " >&6
6016 if echo a |
$GREP -E '(a|b)' >/dev
/null
2>&1
6017 then ac_cv_path_EGREP
="$GREP -E"
6019 if test -z "$EGREP"; then
6020 ac_path_EGREP_found
=false
6021 # Loop through the user's path and test for each of PROGNAME-LIST
6022 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6023 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
6026 test -z "$as_dir" && as_dir
=.
6027 for ac_prog
in egrep; do
6028 for ac_exec_ext
in '' $ac_executable_extensions; do
6029 ac_path_EGREP
="$as_dir/$ac_prog$ac_exec_ext"
6030 as_fn_executable_p
"$ac_path_EGREP" ||
continue
6031 # Check for GNU ac_path_EGREP and select it if it is found.
6032 # Check for GNU $ac_path_EGREP
6033 case `"$ac_path_EGREP" --version 2>&1` in
6035 ac_cv_path_EGREP
="$ac_path_EGREP" ac_path_EGREP_found
=:;;
6038 $as_echo_n 0123456789 >"conftest.in"
6041 cat "conftest.in" "conftest.in" >"conftest.tmp"
6042 mv "conftest.tmp" "conftest.in"
6043 cp "conftest.in" "conftest.nl"
6044 $as_echo 'EGREP' >> "conftest.nl"
6045 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
6046 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
6047 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
6048 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
6049 # Best one so far, save it but keep looking for a better one
6050 ac_cv_path_EGREP
="$ac_path_EGREP"
6051 ac_path_EGREP_max
=$ac_count
6053 # 10*(2^10) chars as input seems more than enough
6054 test $ac_count -gt 10 && break
6056 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
6059 $ac_path_EGREP_found && break 3
6064 if test -z "$ac_cv_path_EGREP"; then
6065 as_fn_error $?
"no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6068 ac_cv_path_EGREP
=$EGREP
6073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
6074 $as_echo "$ac_cv_path_EGREP" >&6; }
6075 EGREP
="$ac_cv_path_EGREP"
6078 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
6079 $as_echo_n "checking for ANSI C header files... " >&6; }
6080 if ${ac_cv_header_stdc+:} false
; then :
6081 $as_echo_n "(cached) " >&6
6083 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6084 /* end confdefs.h. */
6098 if ac_fn_c_try_compile
"$LINENO"; then :
6099 ac_cv_header_stdc
=yes
6101 ac_cv_header_stdc
=no
6103 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6105 if test $ac_cv_header_stdc = yes; then
6106 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6107 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6108 /* end confdefs.h. */
6112 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6113 $EGREP "memchr" >/dev
/null
2>&1; then :
6116 ac_cv_header_stdc
=no
6122 if test $ac_cv_header_stdc = yes; then
6123 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6124 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6125 /* end confdefs.h. */
6129 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6130 $EGREP "free" >/dev
/null
2>&1; then :
6133 ac_cv_header_stdc
=no
6139 if test $ac_cv_header_stdc = yes; then
6140 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6141 if test "$cross_compiling" = yes; then :
6144 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6145 /* end confdefs.h. */
6148 #if ((' ' & 0x0FF) == 0x020)
6149 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6150 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6152 # define ISLOWER(c) \
6153 (('a' <= (c) && (c) <= 'i') \
6154 || ('j' <= (c) && (c) <= 'r') \
6155 || ('s' <= (c) && (c) <= 'z'))
6156 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6159 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6164 for (i = 0; i < 256; i++)
6165 if (XOR (islower (i), ISLOWER (i))
6166 || toupper (i) != TOUPPER (i))
6171 if ac_fn_c_try_run
"$LINENO"; then :
6174 ac_cv_header_stdc
=no
6176 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
6177 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
6182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
6183 $as_echo "$ac_cv_header_stdc" >&6; }
6184 if test $ac_cv_header_stdc = yes; then
6186 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
6190 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
6191 for ac_header
in sys
/types.h sys
/stat.h stdlib.h string.h memory.h
strings.h \
6192 inttypes.h stdint.h unistd.h
6194 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6195 ac_fn_c_check_header_compile
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
6197 if eval test \"x\$
"$as_ac_Header"\" = x
"yes"; then :
6198 cat >>confdefs.h
<<_ACEOF
6199 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6207 ac_fn_c_find_intX_t
"$LINENO" "64" "ac_cv_c_int64_t"
6208 case $ac_cv_c_int64_t in #(
6212 cat >>confdefs.h
<<_ACEOF
6213 #define int64_t $ac_cv_c_int64_t
6220 # Make sure we can run config.sub.
6221 $SHELL "$ac_aux_dir/config.sub" sun4
>/dev
/null
2>&1 ||
6222 as_fn_error $?
"cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
6224 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
6225 $as_echo_n "checking build system type... " >&6; }
6226 if ${ac_cv_build+:} false
; then :
6227 $as_echo_n "(cached) " >&6
6229 ac_build_alias
=$build_alias
6230 test "x$ac_build_alias" = x
&&
6231 ac_build_alias
=`$SHELL "$ac_aux_dir/config.guess"`
6232 test "x$ac_build_alias" = x
&&
6233 as_fn_error $?
"cannot guess build type; you must specify one" "$LINENO" 5
6234 ac_cv_build
=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
6235 as_fn_error $?
"$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
6238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
6239 $as_echo "$ac_cv_build" >&6; }
6240 case $ac_cv_build in
6242 *) as_fn_error $?
"invalid value of canonical build" "$LINENO" 5;;
6245 ac_save_IFS
=$IFS; IFS
='-'
6251 # Remember, the first character of IFS is used to create $*,
6252 # except with old shells:
6255 case $build_os in *\
*) build_os
=`echo "$build_os" | sed 's/ /-/g'`;; esac
6258 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
6259 $as_echo_n "checking host system type... " >&6; }
6260 if ${ac_cv_host+:} false
; then :
6261 $as_echo_n "(cached) " >&6
6263 if test "x$host_alias" = x
; then
6264 ac_cv_host
=$ac_cv_build
6266 ac_cv_host
=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
6267 as_fn_error $?
"$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
6271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
6272 $as_echo "$ac_cv_host" >&6; }
6275 *) as_fn_error $?
"invalid value of canonical host" "$LINENO" 5;;
6278 ac_save_IFS
=$IFS; IFS
='-'
6284 # Remember, the first character of IFS is used to create $*,
6285 # except with old shells:
6288 case $host_os in *\
*) host_os
=`echo "$host_os" | sed 's/ /-/g'`;; esac
6291 enable_win32_dll
=yes
6294 *-*-cygwin* |
*-*-mingw* |
*-*-pw32* |
*-*-cegcc*)
6295 if test -n "$ac_tool_prefix"; then
6296 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
6297 set dummy
${ac_tool_prefix}as
; ac_word
=$2
6298 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6299 $as_echo_n "checking for $ac_word... " >&6; }
6300 if ${ac_cv_prog_AS+:} false
; then :
6301 $as_echo_n "(cached) " >&6
6303 if test -n "$AS"; then
6304 ac_cv_prog_AS
="$AS" # Let the user override the test.
6306 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6310 test -z "$as_dir" && as_dir
=.
6311 for ac_exec_ext
in '' $ac_executable_extensions; do
6312 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
6313 ac_cv_prog_AS
="${ac_tool_prefix}as"
6314 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6324 if test -n "$AS"; then
6325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
6326 $as_echo "$AS" >&6; }
6328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6329 $as_echo "no" >&6; }
6334 if test -z "$ac_cv_prog_AS"; then
6336 # Extract the first word of "as", so it can be a program name with args.
6337 set dummy as
; ac_word
=$2
6338 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6339 $as_echo_n "checking for $ac_word... " >&6; }
6340 if ${ac_cv_prog_ac_ct_AS+:} false
; then :
6341 $as_echo_n "(cached) " >&6
6343 if test -n "$ac_ct_AS"; then
6344 ac_cv_prog_ac_ct_AS
="$ac_ct_AS" # Let the user override the test.
6346 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6350 test -z "$as_dir" && as_dir
=.
6351 for ac_exec_ext
in '' $ac_executable_extensions; do
6352 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
6353 ac_cv_prog_ac_ct_AS
="as"
6354 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6363 ac_ct_AS
=$ac_cv_prog_ac_ct_AS
6364 if test -n "$ac_ct_AS"; then
6365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5
6366 $as_echo "$ac_ct_AS" >&6; }
6368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6369 $as_echo "no" >&6; }
6372 if test "x$ac_ct_AS" = x
; then
6375 case $cross_compiling:$ac_tool_warned in
6377 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6378 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6379 ac_tool_warned
=yes ;;
6387 if test -n "$ac_tool_prefix"; then
6388 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
6389 set dummy
${ac_tool_prefix}dlltool
; ac_word
=$2
6390 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6391 $as_echo_n "checking for $ac_word... " >&6; }
6392 if ${ac_cv_prog_DLLTOOL+:} false
; then :
6393 $as_echo_n "(cached) " >&6
6395 if test -n "$DLLTOOL"; then
6396 ac_cv_prog_DLLTOOL
="$DLLTOOL" # Let the user override the test.
6398 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6402 test -z "$as_dir" && as_dir
=.
6403 for ac_exec_ext
in '' $ac_executable_extensions; do
6404 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
6405 ac_cv_prog_DLLTOOL
="${ac_tool_prefix}dlltool"
6406 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6415 DLLTOOL
=$ac_cv_prog_DLLTOOL
6416 if test -n "$DLLTOOL"; then
6417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
6418 $as_echo "$DLLTOOL" >&6; }
6420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6421 $as_echo "no" >&6; }
6426 if test -z "$ac_cv_prog_DLLTOOL"; then
6427 ac_ct_DLLTOOL
=$DLLTOOL
6428 # Extract the first word of "dlltool", so it can be a program name with args.
6429 set dummy dlltool
; ac_word
=$2
6430 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6431 $as_echo_n "checking for $ac_word... " >&6; }
6432 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false
; then :
6433 $as_echo_n "(cached) " >&6
6435 if test -n "$ac_ct_DLLTOOL"; then
6436 ac_cv_prog_ac_ct_DLLTOOL
="$ac_ct_DLLTOOL" # Let the user override the test.
6438 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6442 test -z "$as_dir" && as_dir
=.
6443 for ac_exec_ext
in '' $ac_executable_extensions; do
6444 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
6445 ac_cv_prog_ac_ct_DLLTOOL
="dlltool"
6446 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6455 ac_ct_DLLTOOL
=$ac_cv_prog_ac_ct_DLLTOOL
6456 if test -n "$ac_ct_DLLTOOL"; then
6457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
6458 $as_echo "$ac_ct_DLLTOOL" >&6; }
6460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6461 $as_echo "no" >&6; }
6464 if test "x$ac_ct_DLLTOOL" = x
; then
6467 case $cross_compiling:$ac_tool_warned in
6469 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6470 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6471 ac_tool_warned
=yes ;;
6473 DLLTOOL
=$ac_ct_DLLTOOL
6476 DLLTOOL
="$ac_cv_prog_DLLTOOL"
6479 if test -n "$ac_tool_prefix"; then
6480 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
6481 set dummy
${ac_tool_prefix}objdump
; ac_word
=$2
6482 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6483 $as_echo_n "checking for $ac_word... " >&6; }
6484 if ${ac_cv_prog_OBJDUMP+:} false
; then :
6485 $as_echo_n "(cached) " >&6
6487 if test -n "$OBJDUMP"; then
6488 ac_cv_prog_OBJDUMP
="$OBJDUMP" # Let the user override the test.
6490 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6494 test -z "$as_dir" && as_dir
=.
6495 for ac_exec_ext
in '' $ac_executable_extensions; do
6496 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
6497 ac_cv_prog_OBJDUMP
="${ac_tool_prefix}objdump"
6498 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6507 OBJDUMP
=$ac_cv_prog_OBJDUMP
6508 if test -n "$OBJDUMP"; then
6509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
6510 $as_echo "$OBJDUMP" >&6; }
6512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6513 $as_echo "no" >&6; }
6518 if test -z "$ac_cv_prog_OBJDUMP"; then
6519 ac_ct_OBJDUMP
=$OBJDUMP
6520 # Extract the first word of "objdump", so it can be a program name with args.
6521 set dummy objdump
; ac_word
=$2
6522 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6523 $as_echo_n "checking for $ac_word... " >&6; }
6524 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false
; then :
6525 $as_echo_n "(cached) " >&6
6527 if test -n "$ac_ct_OBJDUMP"; then
6528 ac_cv_prog_ac_ct_OBJDUMP
="$ac_ct_OBJDUMP" # Let the user override the test.
6530 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6534 test -z "$as_dir" && as_dir
=.
6535 for ac_exec_ext
in '' $ac_executable_extensions; do
6536 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
6537 ac_cv_prog_ac_ct_OBJDUMP
="objdump"
6538 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6547 ac_ct_OBJDUMP
=$ac_cv_prog_ac_ct_OBJDUMP
6548 if test -n "$ac_ct_OBJDUMP"; then
6549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
6550 $as_echo "$ac_ct_OBJDUMP" >&6; }
6552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6553 $as_echo "no" >&6; }
6556 if test "x$ac_ct_OBJDUMP" = x
; then
6559 case $cross_compiling:$ac_tool_warned in
6561 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6562 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6563 ac_tool_warned
=yes ;;
6565 OBJDUMP
=$ac_ct_OBJDUMP
6568 OBJDUMP
="$ac_cv_prog_OBJDUMP"
6574 test -z "$AS" && AS
=as
6580 test -z "$DLLTOOL" && DLLTOOL
=dlltool
6586 test -z "$OBJDUMP" && OBJDUMP
=objdump
6596 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
6597 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
6602 macro_version
='2.4.2'
6603 macro_revision
='1.3337'
6617 ltmain
="$ac_aux_dir/ltmain.sh"
6619 # Backslashify metacharacters that are still active within
6620 # double-quoted strings.
6621 sed_quote_subst
='s/\(["`$\\]\)/\\\1/g'
6623 # Same as above, but do not quote variable references.
6624 double_quote_subst
='s/\(["`\\]\)/\\\1/g'
6626 # Sed substitution to delay expansion of an escaped shell variable in a
6627 # double_quote_subst'ed string.
6628 delay_variable_subst
='s/\\\\\\\\\\\$/\\\\\\$/g'
6630 # Sed substitution to delay expansion of an escaped single quote.
6631 delay_single_quote_subst
='s/'\''/'\'\\\\\\\'\''/g'
6633 # Sed substitution to avoid accidental globbing in evaled expressions
6634 no_glob_subst
='s/\*/\\\*/g'
6636 ECHO
='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
6637 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
6638 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
6640 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
6641 $as_echo_n "checking how to print strings... " >&6; }
6642 # Test print first, because it will be a builtin if present.
6643 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
6644 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
6646 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
6649 # Use this function as a fallback that always works.
6650 func_fallback_echo ()
6652 eval 'cat <<_LTECHO_EOF
6656 ECHO='func_fallback_echo
'
6659 # func_echo_all arg...
6660 # Invoke $ECHO with all args, space-separated.
6667 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
6668 $as_echo "printf" >&6; } ;;
6669 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
6670 $as_echo "print -r" >&6; } ;;
6671 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
6672 $as_echo "cat" >&6; } ;;
6688 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
6689 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
6690 if ${ac_cv_path_SED+:} false; then :
6691 $as_echo_n "(cached) " >&6
6693 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
6694 for ac_i in 1 2 3 4 5 6 7; do
6695 ac_script="$ac_script$as_nl$ac_script"
6697 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
6698 { ac_script=; unset ac_script;}
6699 if test -z "$SED"; then
6700 ac_path_SED_found=false
6701 # Loop through the user's path and
test for each of PROGNAME-LIST
6702 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6706 test -z "$as_dir" && as_dir
=.
6707 for ac_prog
in sed gsed
; do
6708 for ac_exec_ext
in '' $ac_executable_extensions; do
6709 ac_path_SED
="$as_dir/$ac_prog$ac_exec_ext"
6710 as_fn_executable_p
"$ac_path_SED" ||
continue
6711 # Check for GNU ac_path_SED and select it if it is found.
6712 # Check for GNU $ac_path_SED
6713 case `"$ac_path_SED" --version 2>&1` in
6715 ac_cv_path_SED
="$ac_path_SED" ac_path_SED_found
=:;;
6718 $as_echo_n 0123456789 >"conftest.in"
6721 cat "conftest.in" "conftest.in" >"conftest.tmp"
6722 mv "conftest.tmp" "conftest.in"
6723 cp "conftest.in" "conftest.nl"
6724 $as_echo '' >> "conftest.nl"
6725 "$ac_path_SED" -f conftest.
sed < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
6726 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
6727 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
6728 if test $ac_count -gt ${ac_path_SED_max-0}; then
6729 # Best one so far, save it but keep looking for a better one
6730 ac_cv_path_SED
="$ac_path_SED"
6731 ac_path_SED_max
=$ac_count
6733 # 10*(2^10) chars as input seems more than enough
6734 test $ac_count -gt 10 && break
6736 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
6739 $ac_path_SED_found && break 3
6744 if test -z "$ac_cv_path_SED"; then
6745 as_fn_error $?
"no acceptable sed could be found in \$PATH" "$LINENO" 5
6752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
6753 $as_echo "$ac_cv_path_SED" >&6; }
6754 SED
="$ac_cv_path_SED"
6757 test -z "$SED" && SED
=sed
6758 Xsed
="$SED -e 1s/^X//"
6770 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
6771 $as_echo_n "checking for fgrep... " >&6; }
6772 if ${ac_cv_path_FGREP+:} false
; then :
6773 $as_echo_n "(cached) " >&6
6775 if echo 'ab*c' |
$GREP -F 'ab*c' >/dev
/null
2>&1
6776 then ac_cv_path_FGREP
="$GREP -F"
6778 if test -z "$FGREP"; then
6779 ac_path_FGREP_found
=false
6780 # Loop through the user's path and test for each of PROGNAME-LIST
6781 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6782 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
6785 test -z "$as_dir" && as_dir
=.
6786 for ac_prog
in fgrep
; do
6787 for ac_exec_ext
in '' $ac_executable_extensions; do
6788 ac_path_FGREP
="$as_dir/$ac_prog$ac_exec_ext"
6789 as_fn_executable_p
"$ac_path_FGREP" ||
continue
6790 # Check for GNU ac_path_FGREP and select it if it is found.
6791 # Check for GNU $ac_path_FGREP
6792 case `"$ac_path_FGREP" --version 2>&1` in
6794 ac_cv_path_FGREP
="$ac_path_FGREP" ac_path_FGREP_found
=:;;
6797 $as_echo_n 0123456789 >"conftest.in"
6800 cat "conftest.in" "conftest.in" >"conftest.tmp"
6801 mv "conftest.tmp" "conftest.in"
6802 cp "conftest.in" "conftest.nl"
6803 $as_echo 'FGREP' >> "conftest.nl"
6804 "$ac_path_FGREP" FGREP
< "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
6805 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
6806 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
6807 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
6808 # Best one so far, save it but keep looking for a better one
6809 ac_cv_path_FGREP
="$ac_path_FGREP"
6810 ac_path_FGREP_max
=$ac_count
6812 # 10*(2^10) chars as input seems more than enough
6813 test $ac_count -gt 10 && break
6815 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
6818 $ac_path_FGREP_found && break 3
6823 if test -z "$ac_cv_path_FGREP"; then
6824 as_fn_error $?
"no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6827 ac_cv_path_FGREP
=$FGREP
6832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
6833 $as_echo "$ac_cv_path_FGREP" >&6; }
6834 FGREP
="$ac_cv_path_FGREP"
6837 test -z "$GREP" && GREP
=grep
6857 # Check whether --with-gnu-ld was given.
6858 if test "${with_gnu_ld+set}" = set; then :
6859 withval
=$with_gnu_ld; test "$withval" = no || with_gnu_ld
=yes
6865 if test "$GCC" = yes; then
6866 # Check if gcc -print-prog-name=ld gives a path.
6867 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
6868 $as_echo_n "checking for ld used by $CC... " >&6; }
6871 # gcc leaves a trailing carriage return which upsets mingw
6872 ac_prog
=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
6874 ac_prog
=`($CC -print-prog-name=ld) 2>&5` ;;
6877 # Accept absolute paths.
6879 re_direlt
='/[^/][^/]*/\.\./'
6880 # Canonicalize the pathname of ld
6881 ac_prog
=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
6882 while $ECHO "$ac_prog" |
$GREP "$re_direlt" > /dev
/null
2>&1; do
6883 ac_prog
=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
6885 test -z "$LD" && LD
="$ac_prog"
6888 # If it fails, then pretend we aren't using GCC.
6892 # If it is relative, then search for the first ld in PATH.
6896 elif test "$with_gnu_ld" = yes; then
6897 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
6898 $as_echo_n "checking for GNU ld... " >&6; }
6900 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
6901 $as_echo_n "checking for non-GNU ld... " >&6; }
6903 if ${lt_cv_path_LD+:} false
; then :
6904 $as_echo_n "(cached) " >&6
6906 if test -z "$LD"; then
6907 lt_save_ifs
="$IFS"; IFS
=$PATH_SEPARATOR
6908 for ac_dir
in $PATH; do
6910 test -z "$ac_dir" && ac_dir
=.
6911 if test -f "$ac_dir/$ac_prog" ||
test -f "$ac_dir/$ac_prog$ac_exeext"; then
6912 lt_cv_path_LD
="$ac_dir/$ac_prog"
6913 # Check to see if the program is GNU ld. I'd rather use --version,
6914 # but apparently some variants of GNU ld only accept -v.
6915 # Break only if it was the GNU/non-GNU ld that we prefer.
6916 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
6917 *GNU
* |
*'with BFD'*)
6918 test "$with_gnu_ld" != no
&& break
6921 test "$with_gnu_ld" != yes && break
6928 lt_cv_path_LD
="$LD" # Let the user override the test with a path.
6933 if test -n "$LD"; then
6934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
6935 $as_echo "$LD" >&6; }
6937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6938 $as_echo "no" >&6; }
6940 test -z "$LD" && as_fn_error $?
"no acceptable ld found in \$PATH" "$LINENO" 5
6941 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
6942 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
6943 if ${lt_cv_prog_gnu_ld+:} false
; then :
6944 $as_echo_n "(cached) " >&6
6946 # I'd rather use --version here, but apparently some GNU lds only accept -v.
6947 case `$LD -v 2>&1 </dev/null` in
6948 *GNU
* |
*'with BFD'*)
6949 lt_cv_prog_gnu_ld
=yes
6952 lt_cv_prog_gnu_ld
=no
6956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
6957 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
6958 with_gnu_ld
=$lt_cv_prog_gnu_ld
6968 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
6969 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
6970 if ${lt_cv_path_NM+:} false
; then :
6971 $as_echo_n "(cached) " >&6
6973 if test -n "$NM"; then
6974 # Let the user override the test.
6977 lt_nm_to_check
="${ac_tool_prefix}nm"
6978 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
6979 lt_nm_to_check
="$lt_nm_to_check nm"
6981 for lt_tmp_nm
in $lt_nm_to_check; do
6982 lt_save_ifs
="$IFS"; IFS
=$PATH_SEPARATOR
6983 for ac_dir
in $PATH /usr
/ccs
/bin
/elf
/usr
/ccs
/bin
/usr
/ucb
/bin
; do
6985 test -z "$ac_dir" && ac_dir
=.
6986 tmp_nm
="$ac_dir/$lt_tmp_nm"
6987 if test -f "$tmp_nm" ||
test -f "$tmp_nm$ac_exeext" ; then
6988 # Check to see if the nm accepts a BSD-compat flag.
6989 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
6990 # nm: unknown option "B" ignored
6991 # Tru64's nm complains that /dev/null is an invalid object file
6992 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
6993 */dev
/null
* |
*'Invalid file or object type'*)
6994 lt_cv_path_NM
="$tmp_nm -B"
6998 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
7000 lt_cv_path_NM
="$tmp_nm -p"
7004 lt_cv_path_NM
=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
7005 continue # so that we can try to find one that supports BSD flags
7014 : ${lt_cv_path_NM=no}
7017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
7018 $as_echo "$lt_cv_path_NM" >&6; }
7019 if test "$lt_cv_path_NM" != "no"; then
7022 # Didn't find any BSD compatible name lister, look for dumpbin.
7023 if test -n "$DUMPBIN"; then :
7024 # Let the user override the test.
7026 if test -n "$ac_tool_prefix"; then
7027 for ac_prog
in dumpbin
"link -dump"
7029 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
7030 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
7031 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7032 $as_echo_n "checking for $ac_word... " >&6; }
7033 if ${ac_cv_prog_DUMPBIN+:} false
; then :
7034 $as_echo_n "(cached) " >&6
7036 if test -n "$DUMPBIN"; then
7037 ac_cv_prog_DUMPBIN
="$DUMPBIN" # Let the user override the test.
7039 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7043 test -z "$as_dir" && as_dir
=.
7044 for ac_exec_ext
in '' $ac_executable_extensions; do
7045 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
7046 ac_cv_prog_DUMPBIN
="$ac_tool_prefix$ac_prog"
7047 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7056 DUMPBIN
=$ac_cv_prog_DUMPBIN
7057 if test -n "$DUMPBIN"; then
7058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
7059 $as_echo "$DUMPBIN" >&6; }
7061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7062 $as_echo "no" >&6; }
7066 test -n "$DUMPBIN" && break
7069 if test -z "$DUMPBIN"; then
7070 ac_ct_DUMPBIN
=$DUMPBIN
7071 for ac_prog
in dumpbin
"link -dump"
7073 # Extract the first word of "$ac_prog", so it can be a program name with args.
7074 set dummy
$ac_prog; ac_word
=$2
7075 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7076 $as_echo_n "checking for $ac_word... " >&6; }
7077 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false
; then :
7078 $as_echo_n "(cached) " >&6
7080 if test -n "$ac_ct_DUMPBIN"; then
7081 ac_cv_prog_ac_ct_DUMPBIN
="$ac_ct_DUMPBIN" # Let the user override the test.
7083 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7087 test -z "$as_dir" && as_dir
=.
7088 for ac_exec_ext
in '' $ac_executable_extensions; do
7089 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
7090 ac_cv_prog_ac_ct_DUMPBIN
="$ac_prog"
7091 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7100 ac_ct_DUMPBIN
=$ac_cv_prog_ac_ct_DUMPBIN
7101 if test -n "$ac_ct_DUMPBIN"; then
7102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
7103 $as_echo "$ac_ct_DUMPBIN" >&6; }
7105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7106 $as_echo "no" >&6; }
7110 test -n "$ac_ct_DUMPBIN" && break
7113 if test "x$ac_ct_DUMPBIN" = x
; then
7116 case $cross_compiling:$ac_tool_warned in
7118 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7119 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7120 ac_tool_warned
=yes ;;
7122 DUMPBIN
=$ac_ct_DUMPBIN
7126 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
7128 DUMPBIN
="$DUMPBIN -symbols"
7136 if test "$DUMPBIN" != ":"; then
7140 test -z "$NM" && NM
=nm
7147 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
7148 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
7149 if ${lt_cv_nm_interface+:} false
; then :
7150 $as_echo_n "(cached) " >&6
7152 lt_cv_nm_interface
="BSD nm"
7153 echo "int some_variable = 0;" > conftest.
$ac_ext
7154 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
7155 (eval "$ac_compile" 2>conftest.err
)
7156 cat conftest.err
>&5
7157 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
7158 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err
> conftest.out
)
7159 cat conftest.err
>&5
7160 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
7161 cat conftest.out
>&5
7162 if $GREP 'External.*some_variable' conftest.out
> /dev
/null
; then
7163 lt_cv_nm_interface
="MS dumpbin"
7167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
7168 $as_echo "$lt_cv_nm_interface" >&6; }
7170 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
7171 $as_echo_n "checking whether ln -s works... " >&6; }
7173 if test "$LN_S" = "ln -s"; then
7174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7175 $as_echo "yes" >&6; }
7177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
7178 $as_echo "no, using $LN_S" >&6; }
7181 # find the maximum length of command line arguments
7182 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
7183 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
7184 if ${lt_cv_sys_max_cmd_len+:} false
; then :
7185 $as_echo_n "(cached) " >&6
7192 # On DJGPP, this test can blow up pretty badly due to problems in libc
7193 # (any single argument exceeding 2000 bytes causes a buffer overrun
7194 # during glob expansion). Even if it were fixed, the result of this
7195 # check would be larger than it should be.
7196 lt_cv_sys_max_cmd_len
=12288; # 12K is about right
7200 # Under GNU Hurd, this test is not required because there is
7201 # no limit to the length of command line arguments.
7202 # Libtool will interpret -1 as no limit whatsoever
7203 lt_cv_sys_max_cmd_len
=-1;
7206 cygwin
* | mingw
* | cegcc
*)
7207 # On Win9x/ME, this test blows up -- it succeeds, but takes
7208 # about 5 minutes as the teststring grows exponentially.
7209 # Worse, since 9x/ME are not pre-emptively multitasking,
7210 # you end up with a "frozen" computer, even though with patience
7211 # the test eventually succeeds (with a max line length of 256k).
7212 # Instead, let's just punt: use the minimum linelength reported by
7213 # all of the supported platforms: 8192 (on NT/2K/XP).
7214 lt_cv_sys_max_cmd_len
=8192;
7218 # On MiNT this can take a long time and run out of memory.
7219 lt_cv_sys_max_cmd_len
=8192;
7223 # On AmigaOS with pdksh, this test takes hours, literally.
7224 # So we just punt and use a minimum line length of 8192.
7225 lt_cv_sys_max_cmd_len
=8192;
7228 netbsd
* | freebsd
* | openbsd
* | darwin
* | dragonfly
*)
7229 # This has been around since 386BSD, at least. Likely further.
7230 if test -x /sbin
/sysctl
; then
7231 lt_cv_sys_max_cmd_len
=`/sbin/sysctl -n kern.argmax`
7232 elif test -x /usr
/sbin
/sysctl
; then
7233 lt_cv_sys_max_cmd_len
=`/usr/sbin/sysctl -n kern.argmax`
7235 lt_cv_sys_max_cmd_len
=65536 # usable default for all BSDs
7237 # And add a safety zone
7238 lt_cv_sys_max_cmd_len
=`expr $lt_cv_sys_max_cmd_len \/ 4`
7239 lt_cv_sys_max_cmd_len
=`expr $lt_cv_sys_max_cmd_len \* 3`
7243 # We know the value 262144 and hardcode it with a safety zone (like BSD)
7244 lt_cv_sys_max_cmd_len
=196608
7248 # The test takes a long time on OS/2.
7249 lt_cv_sys_max_cmd_len
=8192
7253 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
7254 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
7255 # nice to cause kernel panics so lets avoid the loop below.
7256 # First set a reasonable default.
7257 lt_cv_sys_max_cmd_len
=16384
7259 if test -x /sbin
/sysconfig
; then
7260 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
7261 *1*) lt_cv_sys_max_cmd_len
=-1 ;;
7266 lt_cv_sys_max_cmd_len
=102400
7268 sysv5
* | sco5v6
* | sysv4.2uw2
*)
7269 kargmax
=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
7270 if test -n "$kargmax"; then
7271 lt_cv_sys_max_cmd_len
=`echo $kargmax | sed 's/.*[ ]//'`
7273 lt_cv_sys_max_cmd_len
=32768
7277 lt_cv_sys_max_cmd_len
=`(getconf ARG_MAX) 2> /dev/null`
7278 if test -n "$lt_cv_sys_max_cmd_len" && \
7279 test undefined
!= "$lt_cv_sys_max_cmd_len"; then
7280 lt_cv_sys_max_cmd_len
=`expr $lt_cv_sys_max_cmd_len \/ 4`
7281 lt_cv_sys_max_cmd_len
=`expr $lt_cv_sys_max_cmd_len \* 3`
7283 # Make teststring a little bigger before we do anything with it.
7284 # a 1K string should be a reasonable start.
7285 for i
in 1 2 3 4 5 6 7 8 ; do
7286 teststring
=$teststring$teststring
7288 SHELL
=${SHELL-${CONFIG_SHELL-/bin/sh}}
7289 # If test is not a shell built-in, we'll probably end up computing a
7290 # maximum length that is only half of the actual maximum length, but
7292 while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
7293 = "X$teststring$teststring"; } >/dev
/null
2>&1 &&
7294 test $i != 17 # 1/2 MB should be enough
7297 teststring
=$teststring$teststring
7299 # Only check the string length outside the loop.
7300 lt_cv_sys_max_cmd_len
=`expr "X$teststring" : ".*" 2>&1`
7302 # Add a significant safety factor because C++ compilers can tack on
7303 # massive amounts of additional arguments before passing them to the
7304 # linker. It appears as though 1/2 is a usable value.
7305 lt_cv_sys_max_cmd_len
=`expr $lt_cv_sys_max_cmd_len \/ 2`
7312 if test -n $lt_cv_sys_max_cmd_len ; then
7313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
7314 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
7316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
7317 $as_echo "none" >&6; }
7319 max_cmd_len
=$lt_cv_sys_max_cmd_len
7330 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
7331 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
7332 # Try some XSI features
7335 test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
7337 && eval 'test $(( 1 + 1 )) -eq 2 \
7338 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
7340 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $xsi_shell" >&5
7341 $as_echo "$xsi_shell" >&6; }
7344 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands
\"+=\"" >&5
7345 $as_echo_n "checking whether the shell understands
\"+=\"...
" >&6; }
7347 ( foo=bar; set foo baz; eval "$1+=\
$2" && test "$foo" = barbaz ) \
7349 && lt_shell_append=yes
7350 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_shell_append" >&5
7351 $as_echo "$lt_shell_append" >&6; }
7354 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
7364 # test EBCDIC or ASCII
7365 case `echo X|tr X '\101'` in
7366 A) # ASCII based system
7367 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
7368 lt_SP2NL='tr \040 \012'
7369 lt_NL2SP='tr \015\012 \040\040'
7371 *) # EBCDIC based system
7372 lt_SP2NL='tr \100 \n'
7373 lt_NL2SP='tr \r\n \100\100'
7385 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert
$build file names to
$host format
" >&5
7386 $as_echo_n "checking how to convert
$build file names to
$host format...
" >&6; }
7387 if ${lt_cv_to_host_file_cmd+:} false; then :
7388 $as_echo_n "(cached
) " >&6
7393 *-*-mingw* ) # actually msys
7394 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
7397 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
7399 * ) # otherwise, assume *nix
7400 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
7406 *-*-mingw* ) # actually msys
7407 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
7410 lt_cv_to_host_file_cmd=func_convert_file_noop
7412 * ) # otherwise, assume *nix
7413 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
7417 * ) # unhandled hosts (and "normal
" native builds)
7418 lt_cv_to_host_file_cmd=func_convert_file_noop
7424 to_host_file_cmd=$lt_cv_to_host_file_cmd
7425 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_to_host_file_cmd" >&5
7426 $as_echo "$lt_cv_to_host_file_cmd" >&6; }
7432 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert
$build file names to toolchain format
" >&5
7433 $as_echo_n "checking how to convert
$build file names to toolchain format...
" >&6; }
7434 if ${lt_cv_to_tool_file_cmd+:} false; then :
7435 $as_echo_n "(cached
) " >&6
7437 #assume ordinary cross tools, or native build.
7438 lt_cv_to_tool_file_cmd=func_convert_file_noop
7442 *-*-mingw* ) # actually msys
7443 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
7451 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
7452 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_to_tool_file_cmd" >&5
7453 $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
7459 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $LD option to reload object files
" >&5
7460 $as_echo_n "checking
for $LD option to reload object files...
" >&6; }
7461 if ${lt_cv_ld_reload_flag+:} false; then :
7462 $as_echo_n "(cached
) " >&6
7464 lt_cv_ld_reload_flag='-r'
7466 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_ld_reload_flag" >&5
7467 $as_echo "$lt_cv_ld_reload_flag" >&6; }
7468 reload_flag=$lt_cv_ld_reload_flag
7469 case $reload_flag in
7471 *) reload_flag=" $reload_flag" ;;
7473 reload_cmds='$LD$reload_flag -o $output$reload_objs'
7475 cygwin* | mingw* | pw32* | cegcc*)
7476 if test "$GCC" != yes; then
7481 if test "$GCC" = yes; then
7482 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
7484 reload_cmds='$LD$reload_flag -o $output$reload_objs'
7497 if test -n "$ac_tool_prefix"; then
7498 # Extract the first word of "${ac_tool_prefix}objdump
", so it can be a program name with args.
7499 set dummy ${ac_tool_prefix}objdump; ac_word=$2
7500 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
7501 $as_echo_n "checking
for $ac_word...
" >&6; }
7502 if ${ac_cv_prog_OBJDUMP+:} false; then :
7503 $as_echo_n "(cached
) " >&6
7505 if test -n "$OBJDUMP"; then
7506 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
7508 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7512 test -z "$as_dir" && as_dir=.
7513 for ac_exec_ext in '' $ac_executable_extensions; do
7514 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7515 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump
"
7516 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
7525 OBJDUMP=$ac_cv_prog_OBJDUMP
7526 if test -n "$OBJDUMP"; then
7527 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $OBJDUMP" >&5
7528 $as_echo "$OBJDUMP" >&6; }
7530 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
7531 $as_echo "no
" >&6; }
7536 if test -z "$ac_cv_prog_OBJDUMP"; then
7537 ac_ct_OBJDUMP=$OBJDUMP
7538 # Extract the first word of "objdump
", so it can be a program name with args.
7539 set dummy objdump; ac_word=$2
7540 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
7541 $as_echo_n "checking
for $ac_word...
" >&6; }
7542 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
7543 $as_echo_n "(cached
) " >&6
7545 if test -n "$ac_ct_OBJDUMP"; then
7546 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
7548 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7552 test -z "$as_dir" && as_dir=.
7553 for ac_exec_ext in '' $ac_executable_extensions; do
7554 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7555 ac_cv_prog_ac_ct_OBJDUMP="objdump
"
7556 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
7565 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
7566 if test -n "$ac_ct_OBJDUMP"; then
7567 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_OBJDUMP" >&5
7568 $as_echo "$ac_ct_OBJDUMP" >&6; }
7570 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
7571 $as_echo "no
" >&6; }
7574 if test "x
$ac_ct_OBJDUMP" = x; then
7577 case $cross_compiling:$ac_tool_warned in
7579 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
7580 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
7581 ac_tool_warned=yes ;;
7583 OBJDUMP=$ac_ct_OBJDUMP
7586 OBJDUMP="$ac_cv_prog_OBJDUMP"
7589 test -z "$OBJDUMP" && OBJDUMP=objdump
7596 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries
" >&5
7597 $as_echo_n "checking how to recognize dependent libraries...
" >&6; }
7598 if ${lt_cv_deplibs_check_method+:} false; then :
7599 $as_echo_n "(cached
) " >&6
7601 lt_cv_file_magic_cmd='$MAGIC_CMD'
7602 lt_cv_file_magic_test_file=
7603 lt_cv_deplibs_check_method='unknown'
7604 # Need to set the preceding variable on all platforms that support
7605 # interlibrary dependencies.
7606 # 'none' -- dependencies not supported.
7607 # `unknown' -- same as none, but documents that we really don't know.
7608 # 'pass_all' -- all dependencies passed with no checks.
7609 # 'test_compile' -- check by making test program.
7610 # 'file_magic [[regex]]' -- check by looking for files in library path
7611 # which responds to the $file_magic_cmd with a given extended regex.
7612 # If you have `file' or equivalent on your system and you're not sure
7613 # whether `pass_all' will *always* work, you probably want this one.
7617 lt_cv_deplibs_check_method=pass_all
7621 lt_cv_deplibs_check_method=pass_all
7625 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
7626 lt_cv_file_magic_cmd='/usr/bin/file -L'
7627 lt_cv_file_magic_test_file=/shlib/libc.so
7631 # func_win32_libid is a shell function defined in ltmain.sh
7632 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
7633 lt_cv_file_magic_cmd='func_win32_libid'
7637 # Base MSYS/MinGW do not provide the 'file' command needed by
7638 # func_win32_libid shell function, so use a weaker test based on 'objdump',
7639 # unless we find 'file', for example because we are cross-compiling.
7640 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
7641 if ( test "$lt_cv_nm_interface" = "BSD nm
" && file / ) >/dev/null 2>&1; then
7642 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
7643 lt_cv_file_magic_cmd='func_win32_libid'
7645 # Keep this pattern in sync with the one in func_win32_libid.
7646 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
7647 lt_cv_file_magic_cmd='$OBJDUMP -f'
7652 # use the weaker test based on 'objdump'. See mingw*.
7653 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
7654 lt_cv_file_magic_cmd='$OBJDUMP -f'
7657 darwin* | rhapsody*)
7658 lt_cv_deplibs_check_method=pass_all
7661 freebsd* | dragonfly*)
7662 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
7665 # Not sure whether the presence of OpenBSD here was a mistake.
7666 # Let's accept both of them until this is cleared up.
7667 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
7668 lt_cv_file_magic_cmd=/usr/bin/file
7669 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
7673 lt_cv_deplibs_check_method=pass_all
7678 lt_cv_deplibs_check_method=pass_all
7681 hpux10.20* | hpux11*)
7682 lt_cv_file_magic_cmd=/usr/bin/file
7685 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
7686 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
7689 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]'
7690 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
7693 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
7694 lt_cv_file_magic_test_file=/usr/lib/libc.sl
7700 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
7701 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
7704 irix5* | irix6* | nonstopux*)
7706 *-32|*"-32 ") libmagic=32-bit;;
7707 *-n32|*"-n32 ") libmagic=N32;;
7708 *-64|*"-64 ") libmagic=64-bit;;
7709 *) libmagic=never-match;;
7711 lt_cv_deplibs_check_method=pass_all
7714 # This must be glibc/ELF.
7715 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
7716 lt_cv_deplibs_check_method=pass_all
7719 netbsd* | netbsdelf*-gnu)
7720 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
7721 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
7723 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
7728 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
7729 lt_cv_file_magic_cmd=/usr/bin/file
7730 lt_cv_file_magic_test_file=/usr/lib/libnls.so
7734 lt_cv_deplibs_check_method=pass_all
7738 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8
-powerpc"; then
7739 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
7741 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
7745 osf3* | osf4* | osf5*)
7746 lt_cv_deplibs_check_method=pass_all
7750 lt_cv_deplibs_check_method=pass_all
7754 lt_cv_deplibs_check_method=pass_all
7757 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
7758 lt_cv_deplibs_check_method=pass_all
7762 case $host_vendor in
7764 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]'
7765 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
7768 lt_cv_deplibs_check_method=pass_all
7771 lt_cv_file_magic_cmd='/bin/file'
7772 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
7775 lt_cv_file_magic_cmd='/bin/file'
7776 lt_cv_deplibs_check_method="file_magic ELF
[0-9][0-9]*-bit [LM
]SB dynamic lib
"
7777 lt_cv_file_magic_test_file=/lib/libc.so
7780 lt_cv_deplibs_check_method=pass_all
7783 lt_cv_deplibs_check_method=pass_all
7789 lt_cv_deplibs_check_method=pass_all
7794 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_deplibs_check_method" >&5
7795 $as_echo "$lt_cv_deplibs_check_method" >&6; }
7799 if test "$build" = "$host"; then
7802 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
7805 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s
/\
(..\
)/s\
/[\
1]\
/[\
1]\
/g
;/g
"`
7811 file_magic_cmd=$lt_cv_file_magic_cmd
7812 deplibs_check_method=$lt_cv_deplibs_check_method
7813 test -z "$deplibs_check_method" && deplibs_check_method=unknown
7836 if test -n "$ac_tool_prefix"; then
7837 # Extract the first word of "${ac_tool_prefix}dlltool
", so it can be a program name with args.
7838 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
7839 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
7840 $as_echo_n "checking
for $ac_word...
" >&6; }
7841 if ${ac_cv_prog_DLLTOOL+:} false; then :
7842 $as_echo_n "(cached
) " >&6
7844 if test -n "$DLLTOOL"; then
7845 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
7847 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7851 test -z "$as_dir" && as_dir=.
7852 for ac_exec_ext in '' $ac_executable_extensions; do
7853 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7854 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool
"
7855 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
7864 DLLTOOL=$ac_cv_prog_DLLTOOL
7865 if test -n "$DLLTOOL"; then
7866 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $DLLTOOL" >&5
7867 $as_echo "$DLLTOOL" >&6; }
7869 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
7870 $as_echo "no
" >&6; }
7875 if test -z "$ac_cv_prog_DLLTOOL"; then
7876 ac_ct_DLLTOOL=$DLLTOOL
7877 # Extract the first word of "dlltool
", so it can be a program name with args.
7878 set dummy dlltool; ac_word=$2
7879 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
7880 $as_echo_n "checking
for $ac_word...
" >&6; }
7881 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
7882 $as_echo_n "(cached
) " >&6
7884 if test -n "$ac_ct_DLLTOOL"; then
7885 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
7887 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7891 test -z "$as_dir" && as_dir=.
7892 for ac_exec_ext in '' $ac_executable_extensions; do
7893 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7894 ac_cv_prog_ac_ct_DLLTOOL="dlltool
"
7895 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
7904 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
7905 if test -n "$ac_ct_DLLTOOL"; then
7906 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_DLLTOOL" >&5
7907 $as_echo "$ac_ct_DLLTOOL" >&6; }
7909 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
7910 $as_echo "no
" >&6; }
7913 if test "x
$ac_ct_DLLTOOL" = x; then
7916 case $cross_compiling:$ac_tool_warned in
7918 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
7919 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
7920 ac_tool_warned=yes ;;
7922 DLLTOOL=$ac_ct_DLLTOOL
7925 DLLTOOL="$ac_cv_prog_DLLTOOL"
7928 test -z "$DLLTOOL" && DLLTOOL=dlltool
7936 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries
" >&5
7937 $as_echo_n "checking how to associate runtime and link libraries...
" >&6; }
7938 if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
7939 $as_echo_n "(cached
) " >&6
7941 lt_cv_sharedlib_from_linklib_cmd='unknown'
7944 cygwin* | mingw* | pw32* | cegcc*)
7945 # two different shell functions defined in ltmain.sh
7946 # decide which to use based on capabilities of $DLLTOOL
7947 case `$DLLTOOL --help 2>&1` in
7948 *--identify-strict*)
7949 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
7952 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
7957 # fallback: assume linklib IS sharedlib
7958 lt_cv_sharedlib_from_linklib_cmd="$ECHO"
7963 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_sharedlib_from_linklib_cmd" >&5
7964 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
7965 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
7966 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
7974 if test -n "$ac_tool_prefix"; then
7977 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
7978 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
7979 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
7980 $as_echo_n "checking
for $ac_word...
" >&6; }
7981 if ${ac_cv_prog_AR+:} false; then :
7982 $as_echo_n "(cached
) " >&6
7984 if test -n "$AR"; then
7985 ac_cv_prog_AR="$AR" # Let the user override the test.
7987 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7991 test -z "$as_dir" && as_dir=.
7992 for ac_exec_ext in '' $ac_executable_extensions; do
7993 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7994 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
7995 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
8005 if test -n "$AR"; then
8006 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $AR" >&5
8007 $as_echo "$AR" >&6; }
8009 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
8010 $as_echo "no
" >&6; }
8014 test -n "$AR" && break
8017 if test -z "$AR"; then
8021 # Extract the first word of "$ac_prog", so it can be a program name with args.
8022 set dummy $ac_prog; ac_word=$2
8023 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
8024 $as_echo_n "checking
for $ac_word...
" >&6; }
8025 if ${ac_cv_prog_ac_ct_AR+:} false; then :
8026 $as_echo_n "(cached
) " >&6
8028 if test -n "$ac_ct_AR"; then
8029 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
8031 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8035 test -z "$as_dir" && as_dir=.
8036 for ac_exec_ext in '' $ac_executable_extensions; do
8037 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8038 ac_cv_prog_ac_ct_AR="$ac_prog"
8039 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
8048 ac_ct_AR=$ac_cv_prog_ac_ct_AR
8049 if test -n "$ac_ct_AR"; then
8050 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_AR" >&5
8051 $as_echo "$ac_ct_AR" >&6; }
8053 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
8054 $as_echo "no
" >&6; }
8058 test -n "$ac_ct_AR" && break
8061 if test "x
$ac_ct_AR" = x; then
8064 case $cross_compiling:$ac_tool_warned in
8066 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
8067 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
8068 ac_tool_warned=yes ;;
8087 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for archiver @FILE support
" >&5
8088 $as_echo_n "checking
for archiver @FILE support...
" >&6; }
8089 if ${lt_cv_ar_at_file+:} false; then :
8090 $as_echo_n "(cached
) " >&6
8093 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8094 /* end confdefs.h. */
8104 if ac_fn_c_try_compile "$LINENO"; then :
8105 echo conftest.$ac_objext > conftest.lst
8106 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
8107 { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
8108 (eval $lt_ar_try) 2>&5
8110 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
8111 test $ac_status = 0; }
8112 if test "$ac_status" -eq 0; then
8113 # Ensure the archiver fails upon bogus file names.
8114 rm -f conftest.$ac_objext libconftest.a
8115 { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
8116 (eval $lt_ar_try) 2>&5
8118 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
8119 test $ac_status = 0; }
8120 if test "$ac_status" -ne 0; then
8124 rm -f conftest.* libconftest.a
8127 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8130 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_ar_at_file" >&5
8131 $as_echo "$lt_cv_ar_at_file" >&6; }
8133 if test "x
$lt_cv_ar_at_file" = xno; then
8136 archiver_list_spec=$lt_cv_ar_at_file
8145 if test -n "$ac_tool_prefix"; then
8146 # Extract the first word of "${ac_tool_prefix}strip
", so it can be a program name with args.
8147 set dummy ${ac_tool_prefix}strip; ac_word=$2
8148 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
8149 $as_echo_n "checking
for $ac_word...
" >&6; }
8150 if ${ac_cv_prog_STRIP+:} false; then :
8151 $as_echo_n "(cached
) " >&6
8153 if test -n "$STRIP"; then
8154 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
8156 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8160 test -z "$as_dir" && as_dir=.
8161 for ac_exec_ext in '' $ac_executable_extensions; do
8162 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8163 ac_cv_prog_STRIP="${ac_tool_prefix}strip
"
8164 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
8173 STRIP=$ac_cv_prog_STRIP
8174 if test -n "$STRIP"; then
8175 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $STRIP" >&5
8176 $as_echo "$STRIP" >&6; }
8178 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
8179 $as_echo "no
" >&6; }
8184 if test -z "$ac_cv_prog_STRIP"; then
8186 # Extract the first word of "strip
", so it can be a program name with args.
8187 set dummy strip; ac_word=$2
8188 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
8189 $as_echo_n "checking
for $ac_word...
" >&6; }
8190 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
8191 $as_echo_n "(cached
) " >&6
8193 if test -n "$ac_ct_STRIP"; then
8194 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
8196 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8200 test -z "$as_dir" && as_dir=.
8201 for ac_exec_ext in '' $ac_executable_extensions; do
8202 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8203 ac_cv_prog_ac_ct_STRIP="strip
"
8204 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
8213 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
8214 if test -n "$ac_ct_STRIP"; then
8215 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_STRIP" >&5
8216 $as_echo "$ac_ct_STRIP" >&6; }
8218 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
8219 $as_echo "no
" >&6; }
8222 if test "x
$ac_ct_STRIP" = x; then
8225 case $cross_compiling:$ac_tool_warned in
8227 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
8228 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
8229 ac_tool_warned=yes ;;
8234 STRIP="$ac_cv_prog_STRIP"
8237 test -z "$STRIP" && STRIP=:
8244 if test -n "$ac_tool_prefix"; then
8245 # Extract the first word of "${ac_tool_prefix}ranlib
", so it can be a program name with args.
8246 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
8247 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
8248 $as_echo_n "checking
for $ac_word...
" >&6; }
8249 if ${ac_cv_prog_RANLIB+:} false; then :
8250 $as_echo_n "(cached
) " >&6
8252 if test -n "$RANLIB"; then
8253 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
8255 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8259 test -z "$as_dir" && as_dir=.
8260 for ac_exec_ext in '' $ac_executable_extensions; do
8261 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8262 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib
"
8263 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
8272 RANLIB=$ac_cv_prog_RANLIB
8273 if test -n "$RANLIB"; then
8274 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $RANLIB" >&5
8275 $as_echo "$RANLIB" >&6; }
8277 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
8278 $as_echo "no
" >&6; }
8283 if test -z "$ac_cv_prog_RANLIB"; then
8284 ac_ct_RANLIB=$RANLIB
8285 # Extract the first word of "ranlib
", so it can be a program name with args.
8286 set dummy ranlib; ac_word=$2
8287 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
8288 $as_echo_n "checking
for $ac_word...
" >&6; }
8289 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
8290 $as_echo_n "(cached
) " >&6
8292 if test -n "$ac_ct_RANLIB"; then
8293 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
8295 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8299 test -z "$as_dir" && as_dir=.
8300 for ac_exec_ext in '' $ac_executable_extensions; do
8301 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8302 ac_cv_prog_ac_ct_RANLIB="ranlib
"
8303 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
8312 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
8313 if test -n "$ac_ct_RANLIB"; then
8314 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_RANLIB" >&5
8315 $as_echo "$ac_ct_RANLIB" >&6; }
8317 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
8318 $as_echo "no
" >&6; }
8321 if test "x
$ac_ct_RANLIB" = x; then
8324 case $cross_compiling:$ac_tool_warned in
8326 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
8327 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
8328 ac_tool_warned=yes ;;
8330 RANLIB=$ac_ct_RANLIB
8333 RANLIB="$ac_cv_prog_RANLIB"
8336 test -z "$RANLIB" && RANLIB=:
8343 # Determine commands to create old-style static archives.
8344 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
8345 old_postinstall_cmds='chmod 644 $oldlib'
8346 old_postuninstall_cmds=
8348 if test -n "$RANLIB"; then
8351 old_postinstall_cmds="$old_postinstall_cmds~\
$RANLIB -t \
$tool_oldlib"
8354 old_postinstall_cmds="$old_postinstall_cmds~\
$RANLIB \
$tool_oldlib"
8357 old_archive_cmds="$old_archive_cmds~\
$RANLIB \
$tool_oldlib"
8362 lock_old_archive_extraction=yes ;;
8364 lock_old_archive_extraction=no ;;
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.
8415 # Check for command to grab the raw symbol name followed by C symbol from nm.
8416 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
command to parse
$NM output from
$compiler object
" >&5
8417 $as_echo_n "checking
command to parse
$NM output from
$compiler object...
" >&6; }
8418 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
8419 $as_echo_n "(cached
) " >&6
8422 # These are sane defaults that work on at least a few old systems.
8423 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
8425 # Character class describing NM global symbol codes.
8426 symcode='[BCDEGRST]'
8428 # Regexp to match symbols that can be accessed directly from C.
8429 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
8431 # Define system-specific variables.
8436 cygwin* | mingw* | pw32* | cegcc*)
8437 symcode='[ABCDGISTW]'
8440 if test "$host_cpu" = ia64; then
8441 symcode='[ABCDEGRST]'
8445 symcode='[BCDEGRST]'
8448 symcode='[BCDEGQRST]'
8459 sysv5* | sco5v6* | unixware* | OpenUNIX*)
8467 # If we're using GNU nm, then use its standard symbol codes.
8468 case `$NM -V 2>&1` in
8469 *GNU* | *'with BFD'*)
8470 symcode='[ABCDGIRSTW]' ;;
8473 # Transform an extracted symbol line into a proper C declaration.
8474 # Some systems (esp. on ia64) link data and code symbols differently,
8475 # so use this general approach.
8476 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
8478 # Transform an extracted symbol line into symbol name and symbol address
8479 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
8480 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'"
8482 # Handle CRLF in mingw tool chain
8486 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
8490 # Try without a prefix underscore, then with it.
8491 for ac_symprfx in "" "_
"; do
8493 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
8494 symxfrm="\\1 $ac_symprfx\\2 \\2"
8496 # Write the raw and C identifiers.
8497 if test "$lt_cv_nm_interface" = "MS dumpbin
"; then
8498 # Fake it for dumpbin and say T for any non-static function
8499 # and D for any global variable.
8500 # Also find C++ and __fastcall symbols from MSVC++,
8501 # which start with @ or ?.
8502 lt_cv_sys_global_symbol_pipe="$AWK '"\
8503 " {last_section=section; section=\$ 3};"\
8504 " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
8505 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
8506 " \$ 0!~/External *\|/{next};"\
8507 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
8508 " {if(hide[section]) next};"\
8509 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
8510 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
8511 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
8512 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
8513 " ' prfx
=^
$ac_symprfx"
8515 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
8517 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe |
sed '/ __gnu_lto/d'"
8519 # Check to see that the pipe works correctly.
8523 cat > conftest.$ac_ext <<_LT_EOF
8528 void nm_test_func(void);
8529 void nm_test_func(void){}
8533 int main(){nm_test_var='a';nm_test_func();return(0);}
8536 if { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8537 (eval $ac_compile) 2>&5
8539 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
8540 test $ac_status = 0; }; then
8541 # Now try to grab the symbols.
8543 if { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$NM conftest.
$ac_objext \|
"$lt_cv_sys_global_symbol_pipe" \
> $nlist\""; } >&5
8544 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
8546 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
8547 test $ac_status = 0; } && test -s "$nlist"; then
8548 # Try sorting and uniquifying the output.
8549 if sort "$nlist" | uniq > "$nlist"T; then
8550 mv -f "$nlist"T "$nlist"
8555 # Make sure that we snagged all the symbols we need.
8556 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
8557 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
8558 cat <<_LT_EOF > conftest.$ac_ext
8559 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
8560 #if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
8561 /* DATA imports from DLLs on WIN32 con't be const, because runtime
8562 relocations are performed -- see ld's documentation on pseudo-relocs. */
8563 # define LT_DLSYM_CONST
8564 #elif defined(__osf__)
8565 /* This system does not cope well with relocations in const data. */
8566 # define LT_DLSYM_CONST
8568 # define LT_DLSYM_CONST const
8576 # Now generate the symbol file.
8577 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
8579 cat <<_LT_EOF >> conftest.$ac_ext
8581 /* The mapping between symbol names and symbols. */
8582 LT_DLSYM_CONST struct {
8586 lt__PROGRAM__LTX_preloaded_symbols[] =
8588 { "@PROGRAM@
", (void *) 0 },
8590 $SED "s
/^
$symcode$symcode* \
(.
*\
) \
(.
*\
)$
/ {\"\
2\", (void
*) \
&\
2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
8591 cat <<\_LT_EOF >> conftest.$ac_ext
8595 /* This works around a problem in FreeBSD linker */
8596 #ifdef FREEBSD_WORKAROUND
8597 static const void *lt_preloaded_setup() {
8598 return lt__PROGRAM__LTX_preloaded_symbols;
8606 # Now try linking the two files.
8607 mv conftest.$ac_objext conftstm.$ac_objext
8608 lt_globsym_save_LIBS=$LIBS
8609 lt_globsym_save_CFLAGS=$CFLAGS
8610 LIBS="conftstm.
$ac_objext"
8611 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
8612 if { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
8613 (eval $ac_link) 2>&5
8615 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
8616 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
8619 LIBS=$lt_globsym_save_LIBS
8620 CFLAGS=$lt_globsym_save_CFLAGS
8622 echo "cannot
find nm_test_func
in $nlist" >&5
8625 echo "cannot
find nm_test_var
in $nlist" >&5
8628 echo "cannot run
$lt_cv_sys_global_symbol_pipe" >&5
8631 echo "$progname: failed program was
:" >&5
8632 cat conftest.$ac_ext >&5
8634 rm -rf conftest* conftst*
8636 # Do not use the global_symbol_pipe unless it works.
8637 if test "$pipe_works" = yes; then
8640 lt_cv_sys_global_symbol_pipe=
8646 if test -z "$lt_cv_sys_global_symbol_pipe"; then
8647 lt_cv_sys_global_symbol_to_cdecl=
8649 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
8650 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: failed
" >&5
8651 $as_echo "failed
" >&6; }
8653 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: ok
" >&5
8654 $as_echo "ok
" >&6; }
8657 # Response file support.
8658 if test "$lt_cv_nm_interface" = "MS dumpbin
"; then
8659 nm_file_list_spec='@'
8660 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
8661 nm_file_list_spec='@'
8690 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for sysroot
" >&5
8691 $as_echo_n "checking
for sysroot...
" >&6; }
8693 # Check whether --with-sysroot was given.
8694 if test "${with_sysroot+set}" = set; then :
8695 withval=$with_sysroot;
8702 case ${with_sysroot} in #(
8704 if test "$GCC" = yes; then
8705 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
8709 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
8714 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: ${with_sysroot}" >&5
8715 $as_echo "${with_sysroot}" >&6; }
8716 as_fn_error $? "The sysroot must be an absolute path.
" "$LINENO" 5
8720 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: ${lt_sysroot:-no}" >&5
8721 $as_echo "${lt_sysroot:-no}" >&6; }
8727 # Check whether --enable-libtool-lock was given.
8728 if test "${enable_libtool_lock+set}" = set; then :
8729 enableval=$enable_libtool_lock;
8732 test "x
$enable_libtool_lock" != xno && enable_libtool_lock=yes
8734 # Some flags need to be propagated to the compiler or linker for good
8738 # Find out which ABI we are using.
8739 echo 'int i;' > conftest.$ac_ext
8740 if { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8741 (eval $ac_compile) 2>&5
8743 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
8744 test $ac_status = 0; }; then
8745 case `/usr/bin/file conftest.$ac_objext` in
8757 # Find out which ABI we are using.
8758 echo '#line '$LINENO' "configure
"' > conftest.$ac_ext
8759 if { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8760 (eval $ac_compile) 2>&5
8762 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
8763 test $ac_status = 0; }; then
8764 if test "$lt_cv_prog_gnu_ld" = yes; then
8765 case `/usr/bin/file conftest.$ac_objext` in
8767 LD="${LD-ld} -melf32bsmip"
8770 LD="${LD-ld} -melf32bmipn32"
8773 LD="${LD-ld} -melf64bmip"
8777 case `/usr/bin/file conftest.$ac_objext` in
8793 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
8794 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
8795 # Find out which ABI we are using.
8796 echo 'int i;' > conftest.$ac_ext
8797 if { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8798 (eval $ac_compile) 2>&5
8800 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
8801 test $ac_status = 0; }; then
8802 case `/usr/bin/file conftest.o` in
8805 x86_64-*kfreebsd*-gnu)
8806 LD="${LD-ld} -m elf_i386_fbsd
"
8809 case `/usr/bin/file conftest.o` in
8811 LD="${LD-ld} -m elf32_x86_64
"
8814 LD="${LD-ld} -m elf_i386
"
8819 LD="${LD-ld} -m elf32lppclinux
"
8822 LD="${LD-ld} -m elf32ppclinux
"
8825 LD="${LD-ld} -m elf_s390
"
8828 LD="${LD-ld} -m elf32_sparc
"
8834 x86_64-*kfreebsd*-gnu)
8835 LD="${LD-ld} -m elf_x86_64_fbsd
"
8838 LD="${LD-ld} -m elf_x86_64
"
8841 LD="${LD-ld} -m elf64lppc
"
8844 LD="${LD-ld} -m elf64ppc
"
8846 s390*-*linux*|s390*-*tpf*)
8847 LD="${LD-ld} -m elf64_s390
"
8850 LD="${LD-ld} -m elf64_sparc
"
8860 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
8861 SAVE_CFLAGS="$CFLAGS"
8862 CFLAGS="$CFLAGS -belf"
8863 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs
-belf" >&5
8864 $as_echo_n "checking whether the C compiler needs
-belf...
" >&6; }
8865 if ${lt_cv_cc_needs_belf+:} false; then :
8866 $as_echo_n "(cached
) " >&6
8869 ac_cpp='$CPP $CPPFLAGS'
8870 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8871 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8872 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8874 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8875 /* end confdefs.h. */
8885 if ac_fn_c_try_link "$LINENO"; then :
8886 lt_cv_cc_needs_belf=yes
8888 lt_cv_cc_needs_belf=no
8890 rm -f core conftest.err conftest.$ac_objext \
8891 conftest$ac_exeext conftest.$ac_ext
8893 ac_cpp='$CPP $CPPFLAGS'
8894 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8895 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8896 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8899 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_cc_needs_belf" >&5
8900 $as_echo "$lt_cv_cc_needs_belf" >&6; }
8901 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
8902 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
8903 CFLAGS="$SAVE_CFLAGS"
8907 # Find out which ABI we are using.
8908 echo 'int i;' > conftest.$ac_ext
8909 if { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8910 (eval $ac_compile) 2>&5
8912 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
8913 test $ac_status = 0; }; then
8914 case `/usr/bin/file conftest.o` in
8916 case $lt_cv_prog_gnu_ld in
8920 LD="${LD-ld} -m elf_x86_64
"
8923 LD="${LD-ld} -m elf64_sparc
"
8926 # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
8927 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
8932 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
8944 need_locks="$enable_libtool_lock"
8946 if test -n "$ac_tool_prefix"; then
8947 # Extract the first word of "${ac_tool_prefix}mt
", so it can be a program name with args.
8948 set dummy ${ac_tool_prefix}mt; ac_word=$2
8949 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
8950 $as_echo_n "checking
for $ac_word...
" >&6; }
8951 if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
8952 $as_echo_n "(cached
) " >&6
8954 if test -n "$MANIFEST_TOOL"; then
8955 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
8957 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8961 test -z "$as_dir" && as_dir=.
8962 for ac_exec_ext in '' $ac_executable_extensions; do
8963 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8964 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt
"
8965 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
8974 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
8975 if test -n "$MANIFEST_TOOL"; then
8976 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $MANIFEST_TOOL" >&5
8977 $as_echo "$MANIFEST_TOOL" >&6; }
8979 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
8980 $as_echo "no
" >&6; }
8985 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
8986 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
8987 # Extract the first word of "mt
", so it can be a program name with args.
8988 set dummy mt; ac_word=$2
8989 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
8990 $as_echo_n "checking
for $ac_word...
" >&6; }
8991 if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
8992 $as_echo_n "(cached
) " >&6
8994 if test -n "$ac_ct_MANIFEST_TOOL"; then
8995 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
8997 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9001 test -z "$as_dir" && as_dir=.
9002 for ac_exec_ext in '' $ac_executable_extensions; do
9003 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9004 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt
"
9005 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
9014 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
9015 if test -n "$ac_ct_MANIFEST_TOOL"; then
9016 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_MANIFEST_TOOL" >&5
9017 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
9019 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
9020 $as_echo "no
" >&6; }
9023 if test "x
$ac_ct_MANIFEST_TOOL" = x; then
9026 case $cross_compiling:$ac_tool_warned in
9028 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
9029 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
9030 ac_tool_warned=yes ;;
9032 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
9035 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
9038 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
9039 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
if $MANIFEST_TOOL is a manifest tool
" >&5
9040 $as_echo_n "checking
if $MANIFEST_TOOL is a manifest tool...
" >&6; }
9041 if ${lt_cv_path_mainfest_tool+:} false; then :
9042 $as_echo_n "(cached
) " >&6
9044 lt_cv_path_mainfest_tool=no
9045 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
9046 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
9047 cat conftest.err >&5
9048 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
9049 lt_cv_path_mainfest_tool=yes
9053 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_path_mainfest_tool" >&5
9054 $as_echo "$lt_cv_path_mainfest_tool" >&6; }
9055 if test "x
$lt_cv_path_mainfest_tool" != xyes; then
9065 rhapsody* | darwin*)
9066 if test -n "$ac_tool_prefix"; then
9067 # Extract the first word of "${ac_tool_prefix}dsymutil
", so it can be a program name with args.
9068 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
9069 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
9070 $as_echo_n "checking
for $ac_word...
" >&6; }
9071 if ${ac_cv_prog_DSYMUTIL+:} false; then :
9072 $as_echo_n "(cached
) " >&6
9074 if test -n "$DSYMUTIL"; then
9075 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
9077 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9081 test -z "$as_dir" && as_dir=.
9082 for ac_exec_ext in '' $ac_executable_extensions; do
9083 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9084 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil
"
9085 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
9094 DSYMUTIL=$ac_cv_prog_DSYMUTIL
9095 if test -n "$DSYMUTIL"; then
9096 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $DSYMUTIL" >&5
9097 $as_echo "$DSYMUTIL" >&6; }
9099 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
9100 $as_echo "no
" >&6; }
9105 if test -z "$ac_cv_prog_DSYMUTIL"; then
9106 ac_ct_DSYMUTIL=$DSYMUTIL
9107 # Extract the first word of "dsymutil
", so it can be a program name with args.
9108 set dummy dsymutil; ac_word=$2
9109 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
9110 $as_echo_n "checking
for $ac_word...
" >&6; }
9111 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
9112 $as_echo_n "(cached
) " >&6
9114 if test -n "$ac_ct_DSYMUTIL"; then
9115 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
9117 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9121 test -z "$as_dir" && as_dir=.
9122 for ac_exec_ext in '' $ac_executable_extensions; do
9123 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9124 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil
"
9125 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
9134 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
9135 if test -n "$ac_ct_DSYMUTIL"; then
9136 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_DSYMUTIL" >&5
9137 $as_echo "$ac_ct_DSYMUTIL" >&6; }
9139 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
9140 $as_echo "no
" >&6; }
9143 if test "x
$ac_ct_DSYMUTIL" = x; then
9146 case $cross_compiling:$ac_tool_warned in
9148 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
9149 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
9150 ac_tool_warned=yes ;;
9152 DSYMUTIL=$ac_ct_DSYMUTIL
9155 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
9158 if test -n "$ac_tool_prefix"; then
9159 # Extract the first word of "${ac_tool_prefix}nmedit
", so it can be a program name with args.
9160 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
9161 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
9162 $as_echo_n "checking
for $ac_word...
" >&6; }
9163 if ${ac_cv_prog_NMEDIT+:} false; then :
9164 $as_echo_n "(cached
) " >&6
9166 if test -n "$NMEDIT"; then
9167 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
9169 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9173 test -z "$as_dir" && as_dir=.
9174 for ac_exec_ext in '' $ac_executable_extensions; do
9175 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9176 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit
"
9177 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
9186 NMEDIT=$ac_cv_prog_NMEDIT
9187 if test -n "$NMEDIT"; then
9188 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $NMEDIT" >&5
9189 $as_echo "$NMEDIT" >&6; }
9191 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
9192 $as_echo "no
" >&6; }
9197 if test -z "$ac_cv_prog_NMEDIT"; then
9198 ac_ct_NMEDIT=$NMEDIT
9199 # Extract the first word of "nmedit
", so it can be a program name with args.
9200 set dummy nmedit; ac_word=$2
9201 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
9202 $as_echo_n "checking
for $ac_word...
" >&6; }
9203 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
9204 $as_echo_n "(cached
) " >&6
9206 if test -n "$ac_ct_NMEDIT"; then
9207 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
9209 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9213 test -z "$as_dir" && as_dir=.
9214 for ac_exec_ext in '' $ac_executable_extensions; do
9215 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9216 ac_cv_prog_ac_ct_NMEDIT="nmedit
"
9217 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
9226 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
9227 if test -n "$ac_ct_NMEDIT"; then
9228 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_NMEDIT" >&5
9229 $as_echo "$ac_ct_NMEDIT" >&6; }
9231 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
9232 $as_echo "no
" >&6; }
9235 if test "x
$ac_ct_NMEDIT" = x; then
9238 case $cross_compiling:$ac_tool_warned in
9240 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
9241 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
9242 ac_tool_warned=yes ;;
9244 NMEDIT=$ac_ct_NMEDIT
9247 NMEDIT="$ac_cv_prog_NMEDIT"
9250 if test -n "$ac_tool_prefix"; then
9251 # Extract the first word of "${ac_tool_prefix}lipo
", so it can be a program name with args.
9252 set dummy ${ac_tool_prefix}lipo; ac_word=$2
9253 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
9254 $as_echo_n "checking
for $ac_word...
" >&6; }
9255 if ${ac_cv_prog_LIPO+:} false; then :
9256 $as_echo_n "(cached
) " >&6
9258 if test -n "$LIPO"; then
9259 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
9261 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9265 test -z "$as_dir" && as_dir=.
9266 for ac_exec_ext in '' $ac_executable_extensions; do
9267 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9268 ac_cv_prog_LIPO="${ac_tool_prefix}lipo
"
9269 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
9278 LIPO=$ac_cv_prog_LIPO
9279 if test -n "$LIPO"; then
9280 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $LIPO" >&5
9281 $as_echo "$LIPO" >&6; }
9283 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
9284 $as_echo "no
" >&6; }
9289 if test -z "$ac_cv_prog_LIPO"; then
9291 # Extract the first word of "lipo
", so it can be a program name with args.
9292 set dummy lipo; ac_word=$2
9293 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
9294 $as_echo_n "checking
for $ac_word...
" >&6; }
9295 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
9296 $as_echo_n "(cached
) " >&6
9298 if test -n "$ac_ct_LIPO"; then
9299 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
9301 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9305 test -z "$as_dir" && as_dir=.
9306 for ac_exec_ext in '' $ac_executable_extensions; do
9307 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9308 ac_cv_prog_ac_ct_LIPO="lipo
"
9309 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
9318 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
9319 if test -n "$ac_ct_LIPO"; then
9320 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_LIPO" >&5
9321 $as_echo "$ac_ct_LIPO" >&6; }
9323 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
9324 $as_echo "no
" >&6; }
9327 if test "x
$ac_ct_LIPO" = x; then
9330 case $cross_compiling:$ac_tool_warned in
9332 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
9333 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
9334 ac_tool_warned=yes ;;
9339 LIPO="$ac_cv_prog_LIPO"
9342 if test -n "$ac_tool_prefix"; then
9343 # Extract the first word of "${ac_tool_prefix}otool
", so it can be a program name with args.
9344 set dummy ${ac_tool_prefix}otool; ac_word=$2
9345 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
9346 $as_echo_n "checking
for $ac_word...
" >&6; }
9347 if ${ac_cv_prog_OTOOL+:} false; then :
9348 $as_echo_n "(cached
) " >&6
9350 if test -n "$OTOOL"; then
9351 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
9353 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9357 test -z "$as_dir" && as_dir=.
9358 for ac_exec_ext in '' $ac_executable_extensions; do
9359 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9360 ac_cv_prog_OTOOL="${ac_tool_prefix}otool
"
9361 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
9370 OTOOL=$ac_cv_prog_OTOOL
9371 if test -n "$OTOOL"; then
9372 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $OTOOL" >&5
9373 $as_echo "$OTOOL" >&6; }
9375 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
9376 $as_echo "no
" >&6; }
9381 if test -z "$ac_cv_prog_OTOOL"; then
9383 # Extract the first word of "otool
", so it can be a program name with args.
9384 set dummy otool; ac_word=$2
9385 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
9386 $as_echo_n "checking
for $ac_word...
" >&6; }
9387 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
9388 $as_echo_n "(cached
) " >&6
9390 if test -n "$ac_ct_OTOOL"; then
9391 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
9393 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9397 test -z "$as_dir" && as_dir=.
9398 for ac_exec_ext in '' $ac_executable_extensions; do
9399 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9400 ac_cv_prog_ac_ct_OTOOL="otool
"
9401 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
9410 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
9411 if test -n "$ac_ct_OTOOL"; then
9412 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_OTOOL" >&5
9413 $as_echo "$ac_ct_OTOOL" >&6; }
9415 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
9416 $as_echo "no
" >&6; }
9419 if test "x
$ac_ct_OTOOL" = x; then
9422 case $cross_compiling:$ac_tool_warned in
9424 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
9425 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
9426 ac_tool_warned=yes ;;
9431 OTOOL="$ac_cv_prog_OTOOL"
9434 if test -n "$ac_tool_prefix"; then
9435 # Extract the first word of "${ac_tool_prefix}otool64
", so it can be a program name with args.
9436 set dummy ${ac_tool_prefix}otool64; ac_word=$2
9437 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
9438 $as_echo_n "checking
for $ac_word...
" >&6; }
9439 if ${ac_cv_prog_OTOOL64+:} false; then :
9440 $as_echo_n "(cached
) " >&6
9442 if test -n "$OTOOL64"; then
9443 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
9445 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9449 test -z "$as_dir" && as_dir=.
9450 for ac_exec_ext in '' $ac_executable_extensions; do
9451 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9452 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64
"
9453 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
9462 OTOOL64=$ac_cv_prog_OTOOL64
9463 if test -n "$OTOOL64"; then
9464 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $OTOOL64" >&5
9465 $as_echo "$OTOOL64" >&6; }
9467 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
9468 $as_echo "no
" >&6; }
9473 if test -z "$ac_cv_prog_OTOOL64"; then
9474 ac_ct_OTOOL64=$OTOOL64
9475 # Extract the first word of "otool64
", so it can be a program name with args.
9476 set dummy otool64; ac_word=$2
9477 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
9478 $as_echo_n "checking
for $ac_word...
" >&6; }
9479 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
9480 $as_echo_n "(cached
) " >&6
9482 if test -n "$ac_ct_OTOOL64"; then
9483 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
9485 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9489 test -z "$as_dir" && as_dir=.
9490 for ac_exec_ext in '' $ac_executable_extensions; do
9491 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9492 ac_cv_prog_ac_ct_OTOOL64="otool64
"
9493 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
9502 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
9503 if test -n "$ac_ct_OTOOL64"; then
9504 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_OTOOL64" >&5
9505 $as_echo "$ac_ct_OTOOL64" >&6; }
9507 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
9508 $as_echo "no
" >&6; }
9511 if test "x
$ac_ct_OTOOL64" = x; then
9514 case $cross_compiling:$ac_tool_warned in
9516 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
9517 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
9518 ac_tool_warned=yes ;;
9520 OTOOL64=$ac_ct_OTOOL64
9523 OTOOL64="$ac_cv_prog_OTOOL64"
9552 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for -single_module linker flag
" >&5
9553 $as_echo_n "checking
for -single_module linker flag...
" >&6; }
9554 if ${lt_cv_apple_cc_single_mod+:} false; then :
9555 $as_echo_n "(cached
) " >&6
9557 lt_cv_apple_cc_single_mod=no
9558 if test -z "${LT_MULTI_MODULE}"; then
9559 # By default we will add the -single_module flag. You can override
9560 # by either setting the environment variable LT_MULTI_MODULE
9561 # non-empty at configure time, or by adding -multi_module to the
9563 rm -rf libconftest.dylib*
9564 echo "int foo
(void
){return 1;}" > conftest.c
9565 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
9566 -dynamiclib -Wl,-single_module conftest.c
" >&5
9567 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
9568 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
9570 # If there is a non-empty error log, and "single_module
"
9571 # appears in it, assume the flag caused a linker warning
9572 if test -s conftest.err && $GREP single_module conftest.err; then
9573 cat conftest.err >&5
9574 # Otherwise, if the output was created with a 0 exit code from
9575 # the compiler, it worked.
9576 elif test -f libconftest.dylib && test $_lt_result -eq 0; then
9577 lt_cv_apple_cc_single_mod=yes
9579 cat conftest.err >&5
9581 rm -rf libconftest.dylib*
9585 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_apple_cc_single_mod" >&5
9586 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
9588 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for -exported_symbols_list linker flag
" >&5
9589 $as_echo_n "checking
for -exported_symbols_list linker flag...
" >&6; }
9590 if ${lt_cv_ld_exported_symbols_list+:} false; then :
9591 $as_echo_n "(cached
) " >&6
9593 lt_cv_ld_exported_symbols_list=no
9594 save_LDFLAGS=$LDFLAGS
9595 echo "_main
" > conftest.sym
9596 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym
"
9597 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9598 /* end confdefs.h. */
9608 if ac_fn_c_try_link "$LINENO"; then :
9609 lt_cv_ld_exported_symbols_list=yes
9611 lt_cv_ld_exported_symbols_list=no
9613 rm -f core conftest.err conftest.$ac_objext \
9614 conftest$ac_exeext conftest.$ac_ext
9615 LDFLAGS="$save_LDFLAGS"
9618 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_ld_exported_symbols_list" >&5
9619 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
9621 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for -force_load linker flag
" >&5
9622 $as_echo_n "checking
for -force_load linker flag...
" >&6; }
9623 if ${lt_cv_ld_force_load+:} false; then :
9624 $as_echo_n "(cached
) " >&6
9626 lt_cv_ld_force_load=no
9627 cat > conftest.c << _LT_EOF
9628 int forced_loaded() { return 2;}
9630 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c
" >&5
9631 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
9632 echo "$AR cru libconftest.a conftest.o
" >&5
9633 $AR cru libconftest.a conftest.o 2>&5
9634 echo "$RANLIB libconftest.a
" >&5
9635 $RANLIB libconftest.a 2>&5
9636 cat > conftest.c << _LT_EOF
9637 int main() { return 0;}
9639 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c
-Wl,-force_load,.
/libconftest.a
" >&5
9640 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
9642 if test -s conftest.err && $GREP force_load conftest.err; then
9643 cat conftest.err >&5
9644 elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then
9645 lt_cv_ld_force_load=yes
9647 cat conftest.err >&5
9649 rm -f conftest.err libconftest.a conftest conftest.c
9650 rm -rf conftest.dSYM
9653 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_ld_force_load" >&5
9654 $as_echo "$lt_cv_ld_force_load" >&6; }
9656 rhapsody* | darwin1.[012])
9657 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
9659 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
9660 darwin*) # darwin 5.x on
9661 # if running on 10.5 or later, the deployment target defaults
9662 # to the OS version, if on x86, and 10.4, the deployment
9663 # target defaults to 10.4. Don't you love it?
9664 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
9665 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
9666 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
9668 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
9670 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
9674 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
9675 _lt_dar_single_mod='$single_module'
9677 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
9678 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
9680 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
9682 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no
"; then
9683 _lt_dsymutil='~$DSYMUTIL $lib || :'
9690 for ac_header in dlfcn.h
9692 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h
" "ac_cv_header_dlfcn_h
" "$ac_includes_default
9694 if test "x
$ac_cv_header_dlfcn_h" = xyes; then :
9695 cat >>confdefs.h <<_ACEOF
9696 #define HAVE_DLFCN_H 1
9705 func_stripname_cnf ()
9708 .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$
%%"`;;
9709 *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$
%%"`;;
9711 } # func_stripname_cnf
9725 # Check whether --enable-shared was given.
9726 if test "${enable_shared+set}" = set; then :
9727 enableval=$enable_shared; p=${PACKAGE-default}
9729 yes) enable_shared=yes ;;
9730 no) enable_shared=no ;;
9733 # Look at the argument we got. We use all the common list separators.
9734 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9735 for pkg in $enableval; do
9737 if test "X
$pkg" = "X
$p"; then
9756 # Check whether --enable-static was given.
9757 if test "${enable_static+set}" = set; then :
9758 enableval=$enable_static; p=${PACKAGE-default}
9760 yes) enable_static=yes ;;
9761 no) enable_static=no ;;
9764 # Look at the argument we got. We use all the common list separators.
9765 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9766 for pkg in $enableval; do
9768 if test "X
$pkg" = "X
$p"; then
9788 # Check whether --with-pic was given.
9789 if test "${with_pic+set}" = set; then :
9790 withval=$with_pic; lt_p=${PACKAGE-default}
9792 yes|no) pic_mode=$withval ;;
9795 # Look at the argument we got. We use all the common list separators.
9796 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9797 for lt_pkg in $withval; do
9799 if test "X
$lt_pkg" = "X
$lt_p"; then
9811 test -z "$pic_mode" && pic_mode=default
9819 # Check whether --enable-fast-install was given.
9820 if test "${enable_fast_install+set}" = set; then :
9821 enableval=$enable_fast_install; p=${PACKAGE-default}
9823 yes) enable_fast_install=yes ;;
9824 no) enable_fast_install=no ;;
9826 enable_fast_install=no
9827 # Look at the argument we got. We use all the common list separators.
9828 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9829 for pkg in $enableval; do
9831 if test "X
$pkg" = "X
$p"; then
9832 enable_fast_install=yes
9839 enable_fast_install=yes
9852 # This can be used to rebuild libtool when needed
9853 LIBTOOL_DEPS="$ltmain"
9855 # Always use our own libtool.
9856 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
9887 test -z "$LN_S" && LN_S="ln -s"
9902 if test -n "${ZSH_VERSION+set}" ; then
9903 setopt NO_GLOB_SUBST
9906 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for objdir
" >&5
9907 $as_echo_n "checking
for objdir...
" >&6; }
9908 if ${lt_cv_objdir+:} false; then :
9909 $as_echo_n "(cached
) " >&6
9911 rm -f .libs 2>/dev/null
9912 mkdir .libs 2>/dev/null
9913 if test -d .libs; then
9916 # MS-DOS does not allow filenames that begin with a dot.
9919 rmdir .libs 2>/dev/null
9921 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_objdir" >&5
9922 $as_echo "$lt_cv_objdir" >&6; }
9923 objdir=$lt_cv_objdir
9929 cat >>confdefs.h <<_ACEOF
9930 #define LT_OBJDIR "$lt_cv_objdir/"
9938 # AIX sometimes has problems with the GCC collect2 program. For some
9939 # reason, if we set the COLLECT_NAMES environment variable, the problems
9940 # vanish in a puff of smoke.
9941 if test "X
${COLLECT_NAMES+set}" != Xset; then
9943 export COLLECT_NAMES
9950 can_build_shared=yes
9952 # All known linkers require a `.a' archive for static linking (except MSVC,
9953 # which needs '.lib').
9956 with_gnu_ld="$lt_cv_prog_gnu_ld"
9959 old_CFLAGS="$CFLAGS"
9961 # Set sane defaults for various variables
9962 test -z "$CC" && CC=cc
9963 test -z "$LTCC" && LTCC=$CC
9964 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
9965 test -z "$LD" && LD=ld
9966 test -z "$ac_objext" && ac_objext=o
9968 for cc_temp in $compiler""; do
9970 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
9971 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
9976 cc_basename=`$ECHO "$cc_temp" | $SED "s
%.
*/%%; s
%^
$host_alias-%%"`
9979 # Only perform the check for file, if the check method requires it
9980 test -z "$MAGIC_CMD" && MAGIC_CMD=file
9981 case $deplibs_check_method in
9983 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
9984 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for ${ac_tool_prefix}file" >&5
9985 $as_echo_n "checking
for ${ac_tool_prefix}file...
" >&6; }
9986 if ${lt_cv_path_MAGIC_CMD+:} false; then :
9987 $as_echo_n "(cached
) " >&6
9991 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
9994 lt_save_MAGIC_CMD="$MAGIC_CMD"
9995 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9996 ac_dummy="/usr
/bin
$PATH_SEPARATOR$PATH"
9997 for ac_dir in $ac_dummy; do
9999 test -z "$ac_dir" && ac_dir=.
10000 if test -f $ac_dir/${ac_tool_prefix}file; then
10001 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
10002 if test -n "$file_magic_test_file"; then
10003 case $deplibs_check_method in
10005 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \
(.
*\
)"`
10006 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
10007 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
10008 $EGREP "$file_magic_regex" > /dev/null; then
10013 *** Warning: the command libtool uses to detect shared libraries,
10014 *** $file_magic_cmd, produces output that libtool cannot recognize.
10015 *** The result is that libtool may fail to recognize shared libraries
10016 *** as such. This will affect the creation of libtool libraries that
10017 *** depend on shared libraries, but programs linked with such libtool
10018 *** libraries will work regardless of this problem. Nevertheless, you
10019 *** may want to report the problem to your system manager and/or to
10020 *** bug-libtool@gnu.org
10030 MAGIC_CMD="$lt_save_MAGIC_CMD"
10035 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
10036 if test -n "$MAGIC_CMD"; then
10037 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $MAGIC_CMD" >&5
10038 $as_echo "$MAGIC_CMD" >&6; }
10040 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
10041 $as_echo "no
" >&6; }
10048 if test -z "$lt_cv_path_MAGIC_CMD"; then
10049 if test -n "$ac_tool_prefix"; then
10050 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for file" >&5
10051 $as_echo_n "checking
for file...
" >&6; }
10052 if ${lt_cv_path_MAGIC_CMD+:} false; then :
10053 $as_echo_n "(cached
) " >&6
10057 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
10060 lt_save_MAGIC_CMD="$MAGIC_CMD"
10061 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
10062 ac_dummy="/usr
/bin
$PATH_SEPARATOR$PATH"
10063 for ac_dir in $ac_dummy; do
10065 test -z "$ac_dir" && ac_dir=.
10066 if test -f $ac_dir/file; then
10067 lt_cv_path_MAGIC_CMD="$ac_dir/file"
10068 if test -n "$file_magic_test_file"; then
10069 case $deplibs_check_method in
10071 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \
(.
*\
)"`
10072 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
10073 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
10074 $EGREP "$file_magic_regex" > /dev/null; then
10079 *** Warning: the command libtool uses to detect shared libraries,
10080 *** $file_magic_cmd, produces output that libtool cannot recognize.
10081 *** The result is that libtool may fail to recognize shared libraries
10082 *** as such. This will affect the creation of libtool libraries that
10083 *** depend on shared libraries, but programs linked with such libtool
10084 *** libraries will work regardless of this problem. Nevertheless, you
10085 *** may want to report the problem to your system manager and/or to
10086 *** bug-libtool@gnu.org
10096 MAGIC_CMD="$lt_save_MAGIC_CMD"
10101 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
10102 if test -n "$MAGIC_CMD"; then
10103 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $MAGIC_CMD" >&5
10104 $as_echo "$MAGIC_CMD" >&6; }
10106 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
10107 $as_echo "no
" >&6; }
10120 # Use C for the default configuration in the libtool script
10124 ac_cpp='$CPP $CPPFLAGS'
10125 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10126 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10127 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10130 # Source file extension for C test sources.
10133 # Object file extension for compiled C test sources.
10137 # Code to be used in simple compile tests
10138 lt_simple_compile_test_code="int some_variable
= 0;"
10140 # Code to be used in simple link tests
10141 lt_simple_link_test_code='int main(){return(0);}'
10149 # If no C compiler was specified, use CC.
10152 # If no C compiler flags were specified, use CFLAGS.
10153 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
10155 # Allow CC to be a program name with arguments.
10158 # Save the default compiler, since it gets overwritten when the other
10159 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
10160 compiler_DEFAULT=$CC
10162 # save warnings/boilerplate of simple test code
10163 ac_outfile=conftest.$ac_objext
10164 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
10165 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10166 _lt_compiler_boilerplate=`cat conftest.err`
10169 ac_outfile=conftest.$ac_objext
10170 echo "$lt_simple_link_test_code" >conftest.$ac_ext
10171 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10172 _lt_linker_boilerplate=`cat conftest.err`
10177 ## There is no encapsulation within the following macros, do not change
10178 ## the running order or otherwise move them around unless you know exactly
10179 ## what you are doing...
10180 if test -n "$compiler"; then
10182 lt_prog_compiler_no_builtin_flag=
10184 if test "$GCC" = yes; then
10185 case $cc_basename in
10187 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
10189 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
10192 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
if $compiler supports
-fno-rtti -fno-exceptions" >&5
10193 $as_echo_n "checking
if $compiler supports
-fno-rtti -fno-exceptions...
" >&6; }
10194 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
10195 $as_echo_n "(cached
) " >&6
10197 lt_cv_prog_compiler_rtti_exceptions=no
10198 ac_outfile=conftest.$ac_objext
10199 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10200 lt_compiler_flag="-fno-rtti -fno-exceptions"
10201 # Insert the option either (1) after the last *FLAGS variable, or
10202 # (2) before a word containing "conftest.
", or (3) at the end.
10203 # Note that $ac_compile itself does not contain backslashes and begins
10204 # with a dollar sign (not a hyphen), so the echo should work correctly.
10205 # The option is referenced via a variable to avoid confusing sed.
10206 lt_compile=`echo "$ac_compile" | $SED \
10207 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10208 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10209 -e 's:$: $lt_compiler_flag:'`
10210 (eval echo "\"\
$as_me:$LINENO: $lt_compile\"" >&5)
10211 (eval "$lt_compile" 2>conftest.err)
10213 cat conftest.err >&5
10214 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
10215 if (exit $ac_status) && test -s "$ac_outfile"; then
10216 # The compiler can only warn and ignore the option if not recognized
10217 # So say no if there are warnings other than the usual output.
10218 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
10219 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10220 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
10221 lt_cv_prog_compiler_rtti_exceptions=yes
10227 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_prog_compiler_rtti_exceptions" >&5
10228 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
10230 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
10231 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
10243 lt_prog_compiler_wl=
10244 lt_prog_compiler_pic=
10245 lt_prog_compiler_static=
10248 if test "$GCC" = yes; then
10249 lt_prog_compiler_wl='-Wl,'
10250 lt_prog_compiler_static='-static'
10254 # All AIX code is PIC.
10255 if test "$host_cpu" = ia64; then
10256 # AIX 5 now supports IA64 processor
10257 lt_prog_compiler_static='-Bstatic'
10264 # see comment about AmigaOS4 .so support
10265 lt_prog_compiler_pic='-fPIC'
10268 # FIXME: we need at least 68020 code to build shared libraries, but
10269 # adding the `-m68020' flag to GCC prevents building anything better,
10271 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
10276 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
10277 # PIC is the default for these OSes.
10280 mingw* | cygwin* | pw32* | os2* | cegcc*)
10281 # This hack is so that the source file can tell whether it is being
10282 # built for inclusion in a dll (and should export symbols for example).
10283 # Although the cygwin gcc ignores -fPIC, still need this for old-style
10284 # (--disable-auto-import) libraries
10285 lt_prog_compiler_pic='-DDLL_EXPORT'
10288 darwin* | rhapsody*)
10289 # PIC is the default on this platform
10290 # Common symbols not allowed in MH_DYLIB files
10291 lt_prog_compiler_pic='-fno-common'
10295 # PIC is the default for Haiku.
10296 # The "-static" flag exists, but is broken.
10297 lt_prog_compiler_static=
10301 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
10302 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
10303 # sets the default TLS model and affects inlining.
10309 lt_prog_compiler_pic='-fPIC'
10315 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
10316 # Instead, we relocate shared libraries at runtime.
10320 # Just because we use GCC doesn't mean we suddenly get shared libraries
10321 # on systems that don't support them.
10322 lt_prog_compiler_can_build_shared=no
10327 # QNX uses GNU C++, but need to define -shared option too, otherwise
10328 # it will coredump.
10329 lt_prog_compiler_pic='-fPIC -shared'
10333 if test -d /usr/nec; then
10334 lt_prog_compiler_pic=-Kconform_pic
10339 lt_prog_compiler_pic='-fPIC'
10343 case $cc_basename in
10344 nvcc*) # Cuda Compiler Driver 2.2
10345 lt_prog_compiler_wl='-Xlinker '
10346 if test -n "$lt_prog_compiler_pic"; then
10347 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
10352 # PORTME Check for flag to pass linker flags through the system compiler.
10355 lt_prog_compiler_wl='-Wl,'
10356 if test "$host_cpu" = ia64; then
10357 # AIX 5 now supports IA64 processor
10358 lt_prog_compiler_static='-Bstatic'
10360 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
10364 mingw* | cygwin* | pw32* | os2* | cegcc*)
10365 # This hack is so that the source file can tell whether it is being
10366 # built for inclusion in a dll (and should export symbols for example).
10367 lt_prog_compiler_pic='-DDLL_EXPORT'
10370 hpux9* | hpux10* | hpux11*)
10371 lt_prog_compiler_wl='-Wl,'
10372 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
10373 # not for PA HP-UX.
10379 lt_prog_compiler_pic='+Z'
10382 # Is there a better lt_prog_compiler_static that works with the bundled CC?
10383 lt_prog_compiler_static='${wl}-a ${wl}archive'
10386 irix5* | irix6* | nonstopux*)
10387 lt_prog_compiler_wl='-Wl,'
10388 # PIC (with -KPIC) is the default.
10389 lt_prog_compiler_static='-non_shared'
10392 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
10393 case $cc_basename in
10394 # old Intel for x86_64 which still supported -KPIC.
10396 lt_prog_compiler_wl='-Wl,'
10397 lt_prog_compiler_pic='-KPIC'
10398 lt_prog_compiler_static='-static'
10400 # icc used to be incompatible with GCC.
10401 # ICC 10 doesn't accept -KPIC any more.
10403 lt_prog_compiler_wl='-Wl,'
10404 lt_prog_compiler_pic='-fPIC'
10405 lt_prog_compiler_static='-static'
10407 # Lahey Fortran 8.1.
10409 lt_prog_compiler_wl='-Wl,'
10410 lt_prog_compiler_pic='--shared'
10411 lt_prog_compiler_static='--static'
10414 # NAG Fortran compiler
10415 lt_prog_compiler_wl='-Wl,-Wl,,'
10416 lt_prog_compiler_pic='-PIC'
10417 lt_prog_compiler_static='-Bstatic'
10419 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
10420 # Portland Group compilers (*not* the Pentium gcc compiler,
10421 # which looks to be a dead project)
10422 lt_prog_compiler_wl='-Wl,'
10423 lt_prog_compiler_pic='-fpic'
10424 lt_prog_compiler_static='-Bstatic'
10427 lt_prog_compiler_wl='-Wl,'
10428 # All Alpha code is PIC.
10429 lt_prog_compiler_static='-non_shared'
10431 xl* | bgxl* | bgf* | mpixl*)
10432 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
10433 lt_prog_compiler_wl='-Wl,'
10434 lt_prog_compiler_pic='-qpic'
10435 lt_prog_compiler_static='-qstaticlink'
10438 case `$CC -V 2>&1 | sed 5q` in
10439 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
10440 # Sun Fortran 8.3 passes all unrecognized flags to the linker
10441 lt_prog_compiler_pic='-KPIC'
10442 lt_prog_compiler_static='-Bstatic'
10443 lt_prog_compiler_wl=''
10445 *Sun\ F* | *Sun*Fortran*)
10446 lt_prog_compiler_pic='-KPIC'
10447 lt_prog_compiler_static='-Bstatic'
10448 lt_prog_compiler_wl='-Qoption ld '
10452 lt_prog_compiler_pic='-KPIC'
10453 lt_prog_compiler_static='-Bstatic'
10454 lt_prog_compiler_wl='-Wl,'
10456 *Intel*\ [CF]*Compiler*)
10457 lt_prog_compiler_wl='-Wl,'
10458 lt_prog_compiler_pic='-fPIC'
10459 lt_prog_compiler_static='-static'
10462 lt_prog_compiler_wl='-Wl,'
10463 lt_prog_compiler_pic='-fpic'
10464 lt_prog_compiler_static='-Bstatic'
10472 lt_prog_compiler_pic='-KPIC'
10473 lt_prog_compiler_static='-Bstatic'
10477 # QNX uses GNU C++, but need to define -shared option too, otherwise
10478 # it will coredump.
10479 lt_prog_compiler_pic='-fPIC -shared'
10482 osf3* | osf4* | osf5*)
10483 lt_prog_compiler_wl='-Wl,'
10484 # All OSF/1 code is PIC.
10485 lt_prog_compiler_static='-non_shared'
10489 lt_prog_compiler_static='-non_shared'
10493 lt_prog_compiler_pic='-KPIC'
10494 lt_prog_compiler_static='-Bstatic'
10495 case $cc_basename in
10496 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
10497 lt_prog_compiler_wl='-Qoption ld ';;
10499 lt_prog_compiler_wl='-Wl,';;
10504 lt_prog_compiler_wl='-Qoption ld '
10505 lt_prog_compiler_pic='-PIC'
10506 lt_prog_compiler_static='-Bstatic'
10509 sysv4 | sysv4.2uw2* | sysv4.3*)
10510 lt_prog_compiler_wl='-Wl,'
10511 lt_prog_compiler_pic='-KPIC'
10512 lt_prog_compiler_static='-Bstatic'
10516 if test -d /usr/nec ;then
10517 lt_prog_compiler_pic='-Kconform_pic'
10518 lt_prog_compiler_static='-Bstatic'
10522 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
10523 lt_prog_compiler_wl='-Wl,'
10524 lt_prog_compiler_pic='-KPIC'
10525 lt_prog_compiler_static='-Bstatic'
10529 lt_prog_compiler_wl='-Wl,'
10530 lt_prog_compiler_can_build_shared=no
10534 lt_prog_compiler_pic='-pic'
10535 lt_prog_compiler_static='-Bstatic'
10539 lt_prog_compiler_can_build_shared=no
10545 # For platforms which do not support PIC, -DPIC is meaningless:
10547 lt_prog_compiler_pic=
10550 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
10554 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $compiler option to produce PIC
" >&5
10555 $as_echo_n "checking
for $compiler option to produce PIC...
" >&6; }
10556 if ${lt_cv_prog_compiler_pic+:} false; then :
10557 $as_echo_n "(cached
) " >&6
10559 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
10561 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_prog_compiler_pic" >&5
10562 $as_echo "$lt_cv_prog_compiler_pic" >&6; }
10563 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
10566 # Check to make sure the PIC flag actually works.
10568 if test -n "$lt_prog_compiler_pic"; then
10569 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
if $compiler PIC flag
$lt_prog_compiler_pic works
" >&5
10570 $as_echo_n "checking
if $compiler PIC flag
$lt_prog_compiler_pic works...
" >&6; }
10571 if ${lt_cv_prog_compiler_pic_works+:} false; then :
10572 $as_echo_n "(cached
) " >&6
10574 lt_cv_prog_compiler_pic_works=no
10575 ac_outfile=conftest.$ac_objext
10576 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10577 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
10578 # Insert the option either (1) after the last *FLAGS variable, or
10579 # (2) before a word containing "conftest.
", or (3) at the end.
10580 # Note that $ac_compile itself does not contain backslashes and begins
10581 # with a dollar sign (not a hyphen), so the echo should work correctly.
10582 # The option is referenced via a variable to avoid confusing sed.
10583 lt_compile=`echo "$ac_compile" | $SED \
10584 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10585 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10586 -e 's:$: $lt_compiler_flag:'`
10587 (eval echo "\"\
$as_me:$LINENO: $lt_compile\"" >&5)
10588 (eval "$lt_compile" 2>conftest.err)
10590 cat conftest.err >&5
10591 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
10592 if (exit $ac_status) && test -s "$ac_outfile"; then
10593 # The compiler can only warn and ignore the option if not recognized
10594 # So say no if there are warnings other than the usual output.
10595 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
10596 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10597 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
10598 lt_cv_prog_compiler_pic_works=yes
10604 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_prog_compiler_pic_works" >&5
10605 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
10607 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
10608 case $lt_prog_compiler_pic in
10610 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
10613 lt_prog_compiler_pic=
10614 lt_prog_compiler_can_build_shared=no
10630 # Check to make sure the static flag actually works.
10632 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
10633 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
if $compiler static flag
$lt_tmp_static_flag works
" >&5
10634 $as_echo_n "checking
if $compiler static flag
$lt_tmp_static_flag works...
" >&6; }
10635 if ${lt_cv_prog_compiler_static_works+:} false; then :
10636 $as_echo_n "(cached
) " >&6
10638 lt_cv_prog_compiler_static_works=no
10639 save_LDFLAGS="$LDFLAGS"
10640 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
10641 echo "$lt_simple_link_test_code" > conftest.$ac_ext
10642 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10643 # The linker can only warn and ignore the option if not recognized
10644 # So say no if there are warnings
10645 if test -s conftest.err; then
10646 # Append any errors to the config.log.
10647 cat conftest.err 1>&5
10648 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
10649 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10650 if diff conftest.exp conftest.er2 >/dev/null; then
10651 lt_cv_prog_compiler_static_works=yes
10654 lt_cv_prog_compiler_static_works=yes
10658 LDFLAGS="$save_LDFLAGS"
10661 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_prog_compiler_static_works" >&5
10662 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
10664 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
10667 lt_prog_compiler_static=
10676 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
if $compiler supports
-c -o file.
$ac_objext" >&5
10677 $as_echo_n "checking
if $compiler supports
-c -o file.
$ac_objext...
" >&6; }
10678 if ${lt_cv_prog_compiler_c_o+:} false; then :
10679 $as_echo_n "(cached
) " >&6
10681 lt_cv_prog_compiler_c_o=no
10682 $RM -r conftest 2>/dev/null
10686 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10688 lt_compiler_flag="-o out
/conftest2.
$ac_objext"
10689 # Insert the option either (1) after the last *FLAGS variable, or
10690 # (2) before a word containing "conftest.
", or (3) at the end.
10691 # Note that $ac_compile itself does not contain backslashes and begins
10692 # with a dollar sign (not a hyphen), so the echo should work correctly.
10693 lt_compile=`echo "$ac_compile" | $SED \
10694 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10695 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10696 -e 's:$: $lt_compiler_flag:'`
10697 (eval echo "\"\
$as_me:$LINENO: $lt_compile\"" >&5)
10698 (eval "$lt_compile" 2>out/conftest.err)
10700 cat out/conftest.err >&5
10701 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
10702 if (exit $ac_status) && test -s out/conftest2.$ac_objext
10704 # The compiler can only warn and ignore the option if not recognized
10705 # So say no if there are warnings
10706 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
10707 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
10708 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
10709 lt_cv_prog_compiler_c_o=yes
10714 # SGI C++ compiler will create directory out/ii_files/ for
10715 # template instantiation
10716 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
10717 $RM out/* && rmdir out
10723 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_prog_compiler_c_o" >&5
10724 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
10731 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
if $compiler supports
-c -o file.
$ac_objext" >&5
10732 $as_echo_n "checking
if $compiler supports
-c -o file.
$ac_objext...
" >&6; }
10733 if ${lt_cv_prog_compiler_c_o+:} false; then :
10734 $as_echo_n "(cached
) " >&6
10736 lt_cv_prog_compiler_c_o=no
10737 $RM -r conftest 2>/dev/null
10741 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10743 lt_compiler_flag="-o out
/conftest2.
$ac_objext"
10744 # Insert the option either (1) after the last *FLAGS variable, or
10745 # (2) before a word containing "conftest.
", or (3) at the end.
10746 # Note that $ac_compile itself does not contain backslashes and begins
10747 # with a dollar sign (not a hyphen), so the echo should work correctly.
10748 lt_compile=`echo "$ac_compile" | $SED \
10749 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10750 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10751 -e 's:$: $lt_compiler_flag:'`
10752 (eval echo "\"\
$as_me:$LINENO: $lt_compile\"" >&5)
10753 (eval "$lt_compile" 2>out/conftest.err)
10755 cat out/conftest.err >&5
10756 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
10757 if (exit $ac_status) && test -s out/conftest2.$ac_objext
10759 # The compiler can only warn and ignore the option if not recognized
10760 # So say no if there are warnings
10761 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
10762 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
10763 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
10764 lt_cv_prog_compiler_c_o=yes
10769 # SGI C++ compiler will create directory out/ii_files/ for
10770 # template instantiation
10771 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
10772 $RM out/* && rmdir out
10778 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_prog_compiler_c_o" >&5
10779 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
10784 hard_links="nottested
"
10785 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
10786 # do not overwrite the value of need_locks provided by the user
10787 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
if we can lock with hard links
" >&5
10788 $as_echo_n "checking
if we can lock with hard links...
" >&6; }
10791 ln conftest.a conftest.b 2>/dev/null && hard_links=no
10793 ln conftest.a conftest.b 2>&5 || hard_links=no
10794 ln conftest.a conftest.b 2>/dev/null && hard_links=no
10795 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $hard_links" >&5
10796 $as_echo "$hard_links" >&6; }
10797 if test "$hard_links" = no; then
10798 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: \
`$CC' does not support \`-c -o', so \`make -j' may be unsafe
" >&5
10799 $as_echo "$as_me: WARNING
: \
`$CC' does not support \`-c -o', so \`make -j' may be unsafe
" >&2;}
10811 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the
$compiler linker
($LD) supports shared libraries
" >&5
10812 $as_echo_n "checking whether the
$compiler linker
($LD) supports shared libraries...
" >&6; }
10815 allow_undefined_flag=
10816 always_export_symbols=no
10818 archive_expsym_cmds=
10819 compiler_needs_object=no
10820 enable_shared_with_static_runtimes=no
10821 export_dynamic_flag_spec=
10822 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
10823 hardcode_automatic=no
10825 hardcode_direct_absolute=no
10826 hardcode_libdir_flag_spec=
10827 hardcode_libdir_separator=
10828 hardcode_minus_L=no
10829 hardcode_shlibpath_var=unsupported
10831 link_all_deplibs=unknown
10833 module_expsym_cmds=
10834 old_archive_from_new_cmds=
10835 old_archive_from_expsyms_cmds=
10836 thread_safe_flag_spec=
10837 whole_archive_flag_spec=
10838 # include_expsyms should be a list of space-separated symbols to be *always*
10839 # included in the symbol list
10841 # exclude_expsyms can be an extended regexp of symbols to exclude
10842 # it will be wrapped by ` (' and `)$', so one must not match beginning or
10843 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
10844 # as well as any symbol that contains `d'.
10845 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
10846 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
10847 # platforms (ab)use it in PIC code, but their linkers get confused if
10848 # the symbol is explicitly referenced. Since portable code cannot
10849 # rely on this symbol name, it's probably fine to never include it in
10850 # preloaded symbol tables.
10851 # Exclude shared library initialization/finalization symbols.
10852 extract_expsyms_cmds=
10855 cygwin* | mingw* | pw32* | cegcc*)
10856 # FIXME: the MSVC++ port hasn't been tested in a loooong time
10857 # When not using gcc, we currently assume that we are using
10858 # Microsoft Visual C++.
10859 if test "$GCC" != yes; then
10864 # we just hope/assume this is gcc and not c89 (= MSVC++)
10870 linux* | k*bsd*-gnu | gnu*)
10871 link_all_deplibs=no
10877 # On some targets, GNU ld is compatible enough with the native linker
10878 # that we're better off using the native interface for both.
10879 lt_use_gnu_ld_interface=no
10880 if test "$with_gnu_ld" = yes; then
10883 # The AIX port of GNU ld has always aspired to compatibility
10884 # with the native linker. However, as the warning in the GNU ld
10885 # block says, versions before 2.19.5* couldn't really create working
10886 # shared libraries, regardless of the interface used.
10887 case `$LD -v 2>&1` in
10888 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
10889 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
10890 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
10892 lt_use_gnu_ld_interface=yes
10897 lt_use_gnu_ld_interface=yes
10902 if test "$lt_use_gnu_ld_interface" = yes; then
10903 # If archive_cmds runs LD, not CC, wlarc should be empty
10906 # Set some defaults for GNU ld with shared library support. These
10907 # are reset later if shared libraries are not supported. Putting them
10908 # here allows them to be overridden if necessary.
10909 runpath_var=LD_RUN_PATH
10910 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10911 export_dynamic_flag_spec='${wl}--export-dynamic'
10912 # ancient GNU ld didn't support --whole-archive et. al.
10913 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
10914 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
10916 whole_archive_flag_spec=
10918 supports_anon_versioning=no
10919 case `$LD -v 2>&1` in
10920 *GNU\ gold*) supports_anon_versioning=yes ;;
10921 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
10922 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
10923 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
10924 *\ 2.11.*) ;; # other 2.11 versions
10925 *) supports_anon_versioning=yes ;;
10928 # See if GNU ld supports shared libraries.
10931 # On AIX/PPC, the GNU linker is very broken
10932 if test "$host_cpu" != ia64; then
10936 *** Warning: the GNU linker, at least up to release 2.19, is reported
10937 *** to be unable to reliably create shared libraries on AIX.
10938 *** Therefore, libtool is disabling shared libraries support. If you
10939 *** really care for shared libraries, you may want to install binutils
10940 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
10941 *** You will then need to restart the configuration process.
10950 # see comment about AmigaOS4 .so support
10951 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10952 archive_expsym_cmds=''
10955 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)'
10956 hardcode_libdir_flag_spec
='-L$libdir'
10957 hardcode_minus_L
=yes
10963 if $LD --help 2>&1 |
$GREP ': supported targets:.* elf' > /dev
/null
; then
10964 allow_undefined_flag
=unsupported
10965 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
10966 # support --undefined. This deserves some investigation. FIXME
10967 archive_cmds
='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10973 cygwin
* | mingw
* | pw32
* | cegcc
*)
10974 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
10975 # as there is no search path for DLLs.
10976 hardcode_libdir_flag_spec
='-L$libdir'
10977 export_dynamic_flag_spec
='${wl}--export-all-symbols'
10978 allow_undefined_flag
=unsupported
10979 always_export_symbols
=no
10980 enable_shared_with_static_runtimes
=yes
10981 export_symbols_cmds
='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols'
10982 exclude_expsyms
='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
10984 if $LD --help 2>&1 |
$GREP 'auto-import' > /dev
/null
; then
10985 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10986 # If the export-symbols file already is a .def file (1st line
10987 # is EXPORTS), use it as is; otherwise, prepend...
10988 archive_expsym_cmds
='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
10989 cp $export_symbols $output_objdir/$soname.def;
10991 echo EXPORTS > $output_objdir/$soname.def;
10992 cat $export_symbols >> $output_objdir/$soname.def;
10994 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
11001 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11002 link_all_deplibs
=yes
11007 hardcode_shlibpath_var
=no
11008 hardcode_libdir_flag_spec
='${wl}-rpath,$libdir'
11009 export_dynamic_flag_spec
='${wl}-E'
11010 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
11011 # Instead, shared libraries are loaded at an image base (0x10000000 by
11012 # default) and relocated if they conflict, which is a slow very memory
11013 # consuming and fragmenting process. To avoid this, we pick a random,
11014 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
11015 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
11016 archive_cmds
='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
11017 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'
11020 gnu
* | linux
* | tpf
* | k
*bsd
*-gnu | kopensolaris
*-gnu)
11022 if test "$host_os" = linux-dietlibc
; then
11023 case $cc_basename in
11024 diet\
*) tmp_diet
=yes;; # linux-dietlibc with static linking (!diet-dyn)
11027 if $LD --help 2>&1 |
$EGREP ': supported targets:.* elf' > /dev
/null \
11028 && test "$tmp_diet" = no
11030 tmp_addflag
=' $pic_flag'
11031 tmp_sharedflag
='-shared'
11032 case $cc_basename,$host_cpu in
11033 pgcc
*) # Portland Group C compiler
11034 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'
11035 tmp_addflag
=' $pic_flag'
11037 pgf77
* | pgf90
* | pgf95
* | pgfortran
*)
11038 # Portland Group f77 and f90 compilers
11039 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'
11040 tmp_addflag
=' $pic_flag -Mnomain' ;;
11041 ecc
*,ia64
* | icc
*,ia64
*) # Intel C compiler on ia64
11042 tmp_addflag
=' -i_dynamic' ;;
11043 efc
*,ia64
* | ifort
*,ia64
*) # Intel Fortran compiler on ia64
11044 tmp_addflag
=' -i_dynamic -nofor_main' ;;
11045 ifc
* | ifort
*) # Intel Fortran compiler
11046 tmp_addflag
=' -nofor_main' ;;
11047 lf95
*) # Lahey Fortran 8.1
11048 whole_archive_flag_spec
=
11049 tmp_sharedflag
='--shared' ;;
11050 xl
[cC
]* | bgxl
[cC
]* | mpixl
[cC
]*) # IBM XL C 8.0 on PPC (deal with xlf below)
11051 tmp_sharedflag
='-qmkshrobj'
11053 nvcc
*) # Cuda Compiler Driver 2.2
11054 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'
11055 compiler_needs_object
=yes
11058 case `$CC -V 2>&1 | sed 5q` in
11059 *Sun\ C
*) # Sun C 5.9
11060 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'
11061 compiler_needs_object
=yes
11062 tmp_sharedflag
='-G' ;;
11063 *Sun\ F
*) # Sun Fortran 8.3
11064 tmp_sharedflag
='-G' ;;
11066 archive_cmds
='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11068 if test "x$supports_anon_versioning" = xyes
; then
11069 archive_expsym_cmds
='echo "{ global:" > $output_objdir/$libname.ver~
11070 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
11071 echo "local: *; };" >> $output_objdir/$libname.ver~
11072 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
11075 case $cc_basename in
11076 xlf
* | bgf
* | bgxlf
* | mpixlf
*)
11077 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
11078 whole_archive_flag_spec
='--whole-archive$convenience --no-whole-archive'
11079 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
11080 archive_cmds
='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
11081 if test "x$supports_anon_versioning" = xyes
; then
11082 archive_expsym_cmds
='echo "{ global:" > $output_objdir/$libname.ver~
11083 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
11084 echo "local: *; };" >> $output_objdir/$libname.ver~
11085 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
11094 netbsd
* | netbsdelf
*-gnu)
11095 if echo __ELF__ |
$CC -E - |
$GREP __ELF__
>/dev
/null
; then
11096 archive_cmds
='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
11099 archive_cmds
='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11100 archive_expsym_cmds
='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
11105 if $LD -v 2>&1 |
$GREP 'BFD 2\.8' > /dev
/null
; then
11109 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
11110 *** create shared libraries on Solaris systems. Therefore, libtool
11111 *** is disabling shared libraries support. We urge you to upgrade GNU
11112 *** binutils to release 2.9.1 or newer. Another option is to modify
11113 *** your PATH or compiler configuration so that the native linker is
11114 *** used, and then restart.
11117 elif $LD --help 2>&1 |
$GREP ': supported targets:.* elf' > /dev
/null
; then
11118 archive_cmds
='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11119 archive_expsym_cmds
='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
11125 sysv5
* | sco3.2v5
* | sco5v6
* | unixware
* | OpenUNIX
*)
11126 case `$LD -v 2>&1` in
11127 *\
[01].
* |
*\
2.
[0-9].
* |
*\
2.1[0-5].
*)
11131 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
11132 *** reliably create shared libraries on SCO systems. Therefore, libtool
11133 *** is disabling shared libraries support. We urge you to upgrade GNU
11134 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
11135 *** your PATH or compiler configuration so that the native linker is
11136 *** used, and then restart.
11141 # For security reasons, it is highly recommended that you always
11142 # use absolute paths for naming shared libraries, and exclude the
11143 # DT_RUNPATH tag from executables and libraries. But doing so
11144 # requires that you compile everything twice, which is a pain.
11145 if $LD --help 2>&1 |
$GREP ': supported targets:.* elf' > /dev
/null
; then
11146 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
11147 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11148 archive_expsym_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
11157 archive_cmds
='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
11159 hardcode_direct
=yes
11160 hardcode_shlibpath_var
=no
11164 if $LD --help 2>&1 |
$GREP ': supported targets:.* elf' > /dev
/null
; then
11165 archive_cmds
='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11166 archive_expsym_cmds
='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
11173 if test "$ld_shlibs" = no
; then
11175 hardcode_libdir_flag_spec
=
11176 export_dynamic_flag_spec
=
11177 whole_archive_flag_spec
=
11180 # PORTME fill in a description of your system's linker (not GNU ld)
11183 allow_undefined_flag
=unsupported
11184 always_export_symbols
=yes
11185 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'
11186 # Note: this linker hardcodes the directories in LIBPATH if there
11187 # are no directories specified by -L.
11188 hardcode_minus_L
=yes
11189 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
11190 # Neither direct hardcoding nor static linking is supported with a
11192 hardcode_direct
=unsupported
11197 if test "$host_cpu" = ia64
; then
11198 # On IA64, the linker does run time linking by default, so we don't
11199 # have to do anything special.
11200 aix_use_runtimelinking
=no
11201 exp_sym_flag
='-Bexport'
11204 # If we're using GNU nm, then we don't want the "-C" option.
11205 # -C means demangle to AIX nm, but means don't demangle with GNU nm
11206 # Also, AIX nm treats weak defined symbols like other global
11207 # defined symbols, whereas GNU nm marks them as "W".
11208 if $NM -V 2>&1 |
$GREP 'GNU' > /dev
/null
; then
11209 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'
11211 export_symbols_cmds
='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
11213 aix_use_runtimelinking
=no
11215 # Test if we are trying to use run time linking or normal
11216 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
11217 # need to do runtime linking.
11218 case $host_os in aix4.
[23]|aix4.
[23].
*|aix
[5-9]*)
11219 for ld_flag
in $LDFLAGS; do
11220 if (test $ld_flag = "-brtl" ||
test $ld_flag = "-Wl,-brtl"); then
11221 aix_use_runtimelinking
=yes
11228 exp_sym_flag
='-bexport'
11229 no_entry_flag
='-bnoentry'
11232 # When large executables or shared objects are built, AIX ld can
11233 # have problems creating the table of contents. If linking a library
11234 # or program results in "error TOC overflow" add -mminimal-toc to
11235 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
11236 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
11239 hardcode_direct
=yes
11240 hardcode_direct_absolute
=yes
11241 hardcode_libdir_separator
=':'
11242 link_all_deplibs
=yes
11243 file_list_spec
='${wl}-f,'
11245 if test "$GCC" = yes; then
11246 case $host_os in aix4.
[012]|aix4.
[012].
*)
11247 # We only want to do this on AIX 4.2 and lower, the check
11248 # below for broken collect2 doesn't work under 4.3+
11249 collect2name
=`${CC} -print-prog-name=collect2`
11250 if test -f "$collect2name" &&
11251 strings "$collect2name" |
$GREP resolve_lib_name
>/dev
/null
11253 # We have reworked collect2
11256 # We have old collect2
11257 hardcode_direct
=unsupported
11258 # It fails to find uninstalled libraries when the uninstalled
11259 # path is not listed in the libpath. Setting hardcode_minus_L
11260 # to unsupported forces relinking
11261 hardcode_minus_L
=yes
11262 hardcode_libdir_flag_spec
='-L$libdir'
11263 hardcode_libdir_separator
=
11267 shared_flag
='-shared'
11268 if test "$aix_use_runtimelinking" = yes; then
11269 shared_flag
="$shared_flag "'${wl}-G'
11271 link_all_deplibs
=no
11274 if test "$host_cpu" = ia64
; then
11275 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
11276 # chokes on -Wl,-G. The following line is correct:
11279 if test "$aix_use_runtimelinking" = yes; then
11280 shared_flag
='${wl}-G'
11282 shared_flag
='${wl}-bM:SRE'
11287 export_dynamic_flag_spec
='${wl}-bexpall'
11288 # It seems that -bexpall does not export symbols beginning with
11289 # underscore (_), so it is better to generate a list of symbols to export.
11290 always_export_symbols
=yes
11291 if test "$aix_use_runtimelinking" = yes; then
11292 # Warning - without using the other runtime loading flags (-brtl),
11293 # -berok will link without error, but may produce a broken library.
11294 allow_undefined_flag
='-berok'
11295 # Determine the default libpath from the value encoded in an
11296 # empty executable.
11297 if test "${lt_cv_aix_libpath+set}" = set; then
11298 aix_libpath
=$lt_cv_aix_libpath
11300 if ${lt_cv_aix_libpath_+:} false
; then :
11301 $as_echo_n "(cached) " >&6
11303 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11304 /* end confdefs.h. */
11314 if ac_fn_c_try_link
"$LINENO"; then :
11316 lt_aix_libpath_sed
='
11317 /Import File Strings/,/^$/ {
11319 s/^0 *\([^ ]*\) *$/\1/
11323 lt_cv_aix_libpath_
=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11324 # Check for a 64-bit object if we didn't find anything.
11325 if test -z "$lt_cv_aix_libpath_"; then
11326 lt_cv_aix_libpath_
=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11329 rm -f core conftest.err conftest.
$ac_objext \
11330 conftest
$ac_exeext conftest.
$ac_ext
11331 if test -z "$lt_cv_aix_libpath_"; then
11332 lt_cv_aix_libpath_
="/usr/lib:/lib"
11337 aix_libpath
=$lt_cv_aix_libpath_
11340 hardcode_libdir_flag_spec
='${wl}-blibpath:$libdir:'"$aix_libpath"
11341 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"
11343 if test "$host_cpu" = ia64
; then
11344 hardcode_libdir_flag_spec
='${wl}-R $libdir:/usr/lib:/lib'
11345 allow_undefined_flag
="-z nodefs"
11346 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"
11348 # Determine the default libpath from the value encoded in an
11349 # empty executable.
11350 if test "${lt_cv_aix_libpath+set}" = set; then
11351 aix_libpath
=$lt_cv_aix_libpath
11353 if ${lt_cv_aix_libpath_+:} false
; then :
11354 $as_echo_n "(cached) " >&6
11356 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11357 /* end confdefs.h. */
11367 if ac_fn_c_try_link
"$LINENO"; then :
11369 lt_aix_libpath_sed
='
11370 /Import File Strings/,/^$/ {
11372 s/^0 *\([^ ]*\) *$/\1/
11376 lt_cv_aix_libpath_
=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11377 # Check for a 64-bit object if we didn't find anything.
11378 if test -z "$lt_cv_aix_libpath_"; then
11379 lt_cv_aix_libpath_
=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11382 rm -f core conftest.err conftest.
$ac_objext \
11383 conftest
$ac_exeext conftest.
$ac_ext
11384 if test -z "$lt_cv_aix_libpath_"; then
11385 lt_cv_aix_libpath_
="/usr/lib:/lib"
11390 aix_libpath
=$lt_cv_aix_libpath_
11393 hardcode_libdir_flag_spec
='${wl}-blibpath:$libdir:'"$aix_libpath"
11394 # Warning - without using the other run time loading flags,
11395 # -berok will link without error, but may produce a broken library.
11396 no_undefined_flag
=' ${wl}-bernotok'
11397 allow_undefined_flag
=' ${wl}-berok'
11398 if test "$with_gnu_ld" = yes; then
11399 # We only use this code for GNU lds that support --whole-archive.
11400 whole_archive_flag_spec
='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
11402 # Exported symbols can be pulled into shared objects from archives
11403 whole_archive_flag_spec
='$convenience'
11405 archive_cmds_need_lc
=yes
11406 # This is similar to how AIX traditionally builds its shared libraries.
11407 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'
11415 # see comment about AmigaOS4 .so support
11416 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11417 archive_expsym_cmds
=''
11420 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)'
11421 hardcode_libdir_flag_spec
='-L$libdir'
11422 hardcode_minus_L
=yes
11428 export_dynamic_flag_spec
=-rdynamic
11431 cygwin
* | mingw
* | pw32
* | cegcc
*)
11432 # When not using gcc, we currently assume that we are using
11433 # Microsoft Visual C++.
11434 # hardcode_libdir_flag_spec is actually meaningless, as there is
11435 # no search path for DLLs.
11436 case $cc_basename in
11439 hardcode_libdir_flag_spec
=' '
11440 allow_undefined_flag
=unsupported
11441 always_export_symbols
=yes
11443 # Tell ltmain to make .lib files, not .a files.
11445 # Tell ltmain to make .dll files, not .so files.
11447 # FIXME: Setting linknames here is a bad hack.
11448 archive_cmds
='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
11449 archive_expsym_cmds
='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
11450 sed -n -e 's
/\\\\\\\
(.
*\\\\\\\
)/-link\\\
-EXPORT:\\\\\\\
1/' -e '1\\\
!p
' < $export_symbols > $output_objdir/$soname.exp;
11452 sed -e 's
/\\\\\\\
(.
*\\\\\\\
)/-link\\\
-EXPORT:\\\\\\\
1/' < $export_symbols > $output_objdir/$soname.exp;
11454 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
11456 # The linker will not automatically build a static lib if we build a DLL.
11457 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
11458 enable_shared_with_static_runtimes
=yes
11459 exclude_expsyms
='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
11460 export_symbols_cmds
='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
11462 old_postinstall_cmds
='chmod 644 $oldlib'
11463 postlink_cmds
='lt_outputfile="@OUTPUT@"~
11464 lt_tool_outputfile="@TOOL_OUTPUT@"~
11465 case $lt_outputfile in
11468 lt_outputfile="$lt_outputfile.exe"
11469 lt_tool_outputfile="$lt_tool_outputfile.exe"
11472 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
11473 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
11474 $RM "$lt_outputfile.manifest";
11478 # Assume MSVC wrapper
11479 hardcode_libdir_flag_spec
=' '
11480 allow_undefined_flag
=unsupported
11481 # Tell ltmain to make .lib files, not .a files.
11483 # Tell ltmain to make .dll files, not .so files.
11485 # FIXME: Setting linknames here is a bad hack.
11486 archive_cmds
='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
11487 # The linker will automatically build a .lib file if we build a DLL.
11488 old_archive_from_new_cmds
='true'
11489 # FIXME: Should let the user specify the lib program.
11490 old_archive_cmds
='lib -OUT:$oldlib$oldobjs$old_deplibs'
11491 enable_shared_with_static_runtimes
=yes
11496 darwin
* | rhapsody
*)
11499 archive_cmds_need_lc
=no
11501 hardcode_automatic
=yes
11502 hardcode_shlibpath_var
=unsupported
11503 if test "$lt_cv_ld_force_load" = "yes"; then
11504 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\"`'
11507 whole_archive_flag_spec
=''
11509 link_all_deplibs
=yes
11510 allow_undefined_flag
="$_lt_dar_allow_undefined"
11511 case $cc_basename in
11512 ifort
*) _lt_dar_can_shared
=yes ;;
11513 *) _lt_dar_can_shared
=$GCC ;;
11515 if test "$_lt_dar_can_shared" = "yes"; then
11516 output_verbose_link_cmd
=func_echo_all
11517 archive_cmds
="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
11518 module_cmds
="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
11519 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}"
11520 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}"
11529 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11530 hardcode_libdir_flag_spec
='-L$libdir'
11531 hardcode_shlibpath_var
=no
11534 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
11535 # support. Future versions do this automatically, but an explicit c++rt0.o
11536 # does not break anything, and helps significantly (at the cost of a little
11539 archive_cmds
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
11540 hardcode_libdir_flag_spec
='-R$libdir'
11541 hardcode_direct
=yes
11542 hardcode_shlibpath_var
=no
11545 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
11547 archive_cmds
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
11548 hardcode_direct
=yes
11549 hardcode_minus_L
=yes
11550 hardcode_shlibpath_var
=no
11553 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
11554 freebsd
* | dragonfly
*)
11555 archive_cmds
='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11556 hardcode_libdir_flag_spec
='-R$libdir'
11557 hardcode_direct
=yes
11558 hardcode_shlibpath_var
=no
11562 if test "$GCC" = yes; then
11563 archive_cmds
='$RM $output_objdir/$soname~$CC -shared $pic_flag ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
11565 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'
11567 hardcode_libdir_flag_spec
='${wl}+b ${wl}$libdir'
11568 hardcode_libdir_separator
=:
11569 hardcode_direct
=yes
11571 # hardcode_minus_L: Not really in the search PATH,
11572 # but as the default location of the library.
11573 hardcode_minus_L
=yes
11574 export_dynamic_flag_spec
='${wl}-E'
11578 if test "$GCC" = yes && test "$with_gnu_ld" = no
; then
11579 archive_cmds
='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11581 archive_cmds
='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
11583 if test "$with_gnu_ld" = no
; then
11584 hardcode_libdir_flag_spec
='${wl}+b ${wl}$libdir'
11585 hardcode_libdir_separator
=:
11586 hardcode_direct
=yes
11587 hardcode_direct_absolute
=yes
11588 export_dynamic_flag_spec
='${wl}-E'
11589 # hardcode_minus_L: Not really in the search PATH,
11590 # but as the default location of the library.
11591 hardcode_minus_L
=yes
11596 if test "$GCC" = yes && test "$with_gnu_ld" = no
; then
11599 archive_cmds
='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
11602 archive_cmds
='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
11605 archive_cmds
='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11611 archive_cmds
='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
11614 archive_cmds
='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
11618 # Older versions of the 11.00 compiler do not understand -b yet
11619 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
11620 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
11621 $as_echo_n "checking if $CC understands -b... " >&6; }
11622 if ${lt_cv_prog_compiler__b+:} false
; then :
11623 $as_echo_n "(cached) " >&6
11625 lt_cv_prog_compiler__b
=no
11626 save_LDFLAGS
="$LDFLAGS"
11627 LDFLAGS
="$LDFLAGS -b"
11628 echo "$lt_simple_link_test_code" > conftest.
$ac_ext
11629 if (eval $ac_link 2>conftest.err
) && test -s conftest
$ac_exeext; then
11630 # The linker can only warn and ignore the option if not recognized
11631 # So say no if there are warnings
11632 if test -s conftest.err
; then
11633 # Append any errors to the config.log.
11634 cat conftest.err
1>&5
11635 $ECHO "$_lt_linker_boilerplate" |
$SED '/^$/d' > conftest.exp
11636 $SED '/^$/d; /^ *+/d' conftest.err
>conftest.er2
11637 if diff conftest.exp conftest.er2
>/dev
/null
; then
11638 lt_cv_prog_compiler__b
=yes
11641 lt_cv_prog_compiler__b
=yes
11645 LDFLAGS
="$save_LDFLAGS"
11648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
11649 $as_echo "$lt_cv_prog_compiler__b" >&6; }
11651 if test x
"$lt_cv_prog_compiler__b" = xyes
; then
11652 archive_cmds
='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11654 archive_cmds
='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
11660 if test "$with_gnu_ld" = no
; then
11661 hardcode_libdir_flag_spec
='${wl}+b ${wl}$libdir'
11662 hardcode_libdir_separator
=:
11667 hardcode_shlibpath_var
=no
11670 hardcode_direct
=yes
11671 hardcode_direct_absolute
=yes
11672 export_dynamic_flag_spec
='${wl}-E'
11674 # hardcode_minus_L: Not really in the search PATH,
11675 # but as the default location of the library.
11676 hardcode_minus_L
=yes
11682 irix5
* | irix6
* | nonstopux
*)
11683 if test "$GCC" = yes; then
11684 archive_cmds
='$CC -shared $pic_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'
11685 # Try to use the -exported_symbol ld option, if it does not
11686 # work, assume that -exports_file does not work either and
11687 # implicitly export all symbols.
11688 # This should be the same for all languages, so no per-tag cache variable.
11689 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
11690 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
11691 if ${lt_cv_irix_exported_symbol+:} false
; then :
11692 $as_echo_n "(cached) " >&6
11694 save_LDFLAGS
="$LDFLAGS"
11695 LDFLAGS
="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
11696 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11697 /* end confdefs.h. */
11698 int foo (void) { return 0; }
11700 if ac_fn_c_try_link
"$LINENO"; then :
11701 lt_cv_irix_exported_symbol
=yes
11703 lt_cv_irix_exported_symbol
=no
11705 rm -f core conftest.err conftest.
$ac_objext \
11706 conftest
$ac_exeext conftest.
$ac_ext
11707 LDFLAGS
="$save_LDFLAGS"
11709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
11710 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
11711 if test "$lt_cv_irix_exported_symbol" = yes; then
11712 archive_expsym_cmds
='$CC -shared $pic_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 ${wl}-exports_file ${wl}$export_symbols -o $lib'
11715 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'
11716 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'
11718 archive_cmds_need_lc
='no'
11719 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
11720 hardcode_libdir_separator
=:
11722 link_all_deplibs
=yes
11725 netbsd
* | netbsdelf
*-gnu)
11726 if echo __ELF__ |
$CC -E - |
$GREP __ELF__
>/dev
/null
; then
11727 archive_cmds
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
11729 archive_cmds
='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
11731 hardcode_libdir_flag_spec
='-R$libdir'
11732 hardcode_direct
=yes
11733 hardcode_shlibpath_var
=no
11737 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11738 hardcode_direct
=yes
11739 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
11740 hardcode_libdir_separator
=:
11741 hardcode_shlibpath_var
=no
11748 if test -f /usr
/libexec
/ld.so
; then
11749 hardcode_direct
=yes
11750 hardcode_shlibpath_var
=no
11751 hardcode_direct_absolute
=yes
11752 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" ||
test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11753 archive_cmds
='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11754 archive_expsym_cmds
='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
11755 hardcode_libdir_flag_spec
='${wl}-rpath,$libdir'
11756 export_dynamic_flag_spec
='${wl}-E'
11759 openbsd
[01].
* | openbsd2.
[0-7] | openbsd2.
[0-7].
*)
11760 archive_cmds
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
11761 hardcode_libdir_flag_spec
='-R$libdir'
11764 archive_cmds
='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11765 hardcode_libdir_flag_spec
='${wl}-rpath,$libdir'
11775 hardcode_libdir_flag_spec
='-L$libdir'
11776 hardcode_minus_L
=yes
11777 allow_undefined_flag
=unsupported
11778 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'
11779 old_archive_from_new_cmds
='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
11783 if test "$GCC" = yes; then
11784 allow_undefined_flag
=' ${wl}-expect_unresolved ${wl}\*'
11785 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'
11787 allow_undefined_flag
=' -expect_unresolved \*'
11788 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'
11790 archive_cmds_need_lc
='no'
11791 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
11792 hardcode_libdir_separator
=:
11795 osf4
* | osf5
*) # as osf3* with the addition of -msym flag
11796 if test "$GCC" = yes; then
11797 allow_undefined_flag
=' ${wl}-expect_unresolved ${wl}\*'
11798 archive_cmds
='$CC -shared${allow_undefined_flag} $pic_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'
11799 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
11801 allow_undefined_flag
=' -expect_unresolved \*'
11802 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'
11803 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~
11804 $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'
11806 # Both c and cxx compiler support -rpath directly
11807 hardcode_libdir_flag_spec
='-rpath $libdir'
11809 archive_cmds_need_lc
='no'
11810 hardcode_libdir_separator
=:
11814 no_undefined_flag
=' -z defs'
11815 if test "$GCC" = yes; then
11817 archive_cmds
='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
11818 archive_expsym_cmds
='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11819 $CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
11821 case `$CC -V 2>&1` in
11824 archive_cmds
='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
11825 archive_expsym_cmds
='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11826 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
11830 archive_cmds
='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
11831 archive_expsym_cmds
='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11832 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
11836 hardcode_libdir_flag_spec
='-R$libdir'
11837 hardcode_shlibpath_var
=no
11839 solaris2.
[0-5] | solaris2.
[0-5].
*) ;;
11841 # The compiler driver will combine and reorder linker options,
11842 # but understands `-z linker_flag'. GCC discards it without `$wl',
11843 # but is careful enough not to reorder.
11844 # Supported since Solaris 2.6 (maybe 2.5.1?)
11845 if test "$GCC" = yes; then
11846 whole_archive_flag_spec
='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
11848 whole_archive_flag_spec
='-z allextract$convenience -z defaultextract'
11852 link_all_deplibs
=yes
11856 if test "x$host_vendor" = xsequent
; then
11857 # Use $CC to link under sequent, because it throws in some extra .o
11858 # files that make .init and .fini sections work.
11859 archive_cmds
='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
11861 archive_cmds
='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
11863 hardcode_libdir_flag_spec
='-L$libdir'
11864 hardcode_direct
=yes
11865 hardcode_minus_L
=yes
11866 hardcode_shlibpath_var
=no
11870 case $host_vendor in
11872 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11873 hardcode_direct
=yes # is this really true???
11876 ## LD is ld it makes a PLAMLIB
11877 ## CC just makes a GrossModule.
11878 archive_cmds
='$LD -G -o $lib $libobjs $deplibs $linker_flags'
11879 reload_cmds
='$CC -r -o $output$reload_objs'
11883 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11884 hardcode_direct
=no
#Motorola manual says yes, but my tests say they lie
11887 runpath_var
='LD_RUN_PATH'
11888 hardcode_shlibpath_var
=no
11892 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11893 hardcode_shlibpath_var
=no
11894 export_dynamic_flag_spec
='-Bexport'
11898 if test -d /usr
/nec
; then
11899 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11900 hardcode_shlibpath_var
=no
11901 runpath_var
=LD_RUN_PATH
11902 hardcode_runpath_var
=yes
11907 sysv4
*uw2
* | sysv5OpenUNIX
* | sysv5UnixWare7.
[01].
[10]* | unixware7
* | sco3.2v5.0.
[024]*)
11908 no_undefined_flag
='${wl}-z,text'
11909 archive_cmds_need_lc
=no
11910 hardcode_shlibpath_var
=no
11911 runpath_var
='LD_RUN_PATH'
11913 if test "$GCC" = yes; then
11914 archive_cmds
='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11915 archive_expsym_cmds
='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11917 archive_cmds
='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11918 archive_expsym_cmds
='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11922 sysv5
* | sco3.2v5
* | sco5v6
*)
11923 # Note: We can NOT use -z defs as we might desire, because we do not
11924 # link with -lc, and that would cause any symbols used from libc to
11925 # always be unresolved, which means just about no library would
11926 # ever link correctly. If we're not using GNU ld we use -z text
11927 # though, which does catch some bad symbols but isn't as heavy-handed
11929 no_undefined_flag
='${wl}-z,text'
11930 allow_undefined_flag
='${wl}-z,nodefs'
11931 archive_cmds_need_lc
=no
11932 hardcode_shlibpath_var
=no
11933 hardcode_libdir_flag_spec
='${wl}-R,$libdir'
11934 hardcode_libdir_separator
=':'
11935 link_all_deplibs
=yes
11936 export_dynamic_flag_spec
='${wl}-Bexport'
11937 runpath_var
='LD_RUN_PATH'
11939 if test "$GCC" = yes; then
11940 archive_cmds
='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11941 archive_expsym_cmds
='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11943 archive_cmds
='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11944 archive_expsym_cmds
='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11949 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11950 hardcode_libdir_flag_spec
='-L$libdir'
11951 hardcode_shlibpath_var
=no
11959 if test x
$host_vendor = xsni
; then
11961 sysv4 | sysv4.2uw2
* | sysv4.3
* | sysv5
*)
11962 export_dynamic_flag_spec
='${wl}-Blargedynsym'
11968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
11969 $as_echo "$ld_shlibs" >&6; }
11970 test "$ld_shlibs" = no
&& can_build_shared
=no
11972 with_gnu_ld
=$with_gnu_ld
11989 # Do we need to explicitly link libc?
11991 case "x$archive_cmds_need_lc" in
11993 # Assume -lc should be added
11994 archive_cmds_need_lc
=yes
11996 if test "$enable_shared" = yes && test "$GCC" = yes; then
11997 case $archive_cmds in
11999 # FIXME: we may have to deal with multi-command sequences.
12002 # Test whether the compiler implicitly links with -lc since on some
12003 # systems, -lgcc has to come before -lc. If gcc already passes -lc
12004 # to ld, don't add -lc before -lgcc.
12005 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
12006 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
12007 if ${lt_cv_archive_cmds_need_lc+:} false
; then :
12008 $as_echo_n "(cached) " >&6
12011 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
12013 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12014 (eval $ac_compile) 2>&5
12016 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12017 test $ac_status = 0; } 2>conftest.err
; then
12020 libobjs
=conftest.
$ac_objext
12022 wl
=$lt_prog_compiler_wl
12023 pic_flag
=$lt_prog_compiler_pic
12029 lt_save_allow_undefined_flag
=$allow_undefined_flag
12030 allow_undefined_flag
=
12031 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
12032 (eval $archive_cmds 2\
>\
&1 \|
$GREP \" -lc \" \
>/dev
/null
2\
>\
&1) 2>&5
12034 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12035 test $ac_status = 0; }
12037 lt_cv_archive_cmds_need_lc
=no
12039 lt_cv_archive_cmds_need_lc
=yes
12041 allow_undefined_flag
=$lt_save_allow_undefined_flag
12043 cat conftest.err
1>&5
12048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
12049 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
12050 archive_cmds_need_lc
=$lt_cv_archive_cmds_need_lc
12208 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
12209 $as_echo_n "checking dynamic linker characteristics... " >&6; }
12211 if test "$GCC" = yes; then
12213 darwin
*) lt_awk_arg
="/^libraries:/,/LR/" ;;
12214 *) lt_awk_arg
="/^libraries:/" ;;
12217 mingw
* | cegcc
*) lt_sed_strip_eq
="s,=\([A-Za-z]:\),\1,g" ;;
12218 *) lt_sed_strip_eq
="s,=/,/,g" ;;
12220 lt_search_path_spec
=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
12221 case $lt_search_path_spec in
12223 # if the path contains ";" then we assume it to be the separator
12224 # otherwise default to the standard path separator (i.e. ":") - it is
12225 # assumed that no part of a normal pathname contains ";" but that should
12226 # okay in the real world where ";" in dirpaths is itself problematic.
12227 lt_search_path_spec
=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
12230 lt_search_path_spec
=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
12233 # Ok, now we have the path, separated by spaces, we can step through it
12234 # and add multilib dir if necessary.
12235 lt_tmp_lt_search_path_spec
=
12236 lt_multi_os_dir
=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
12237 for lt_sys_path
in $lt_search_path_spec; do
12238 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
12239 lt_tmp_lt_search_path_spec
="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
12241 test -d "$lt_sys_path" && \
12242 lt_tmp_lt_search_path_spec
="$lt_tmp_lt_search_path_spec $lt_sys_path"
12245 lt_search_path_spec
=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
12246 BEGIN {RS=" "; FS="/|\n";} {
12249 for (lt_i = NF; lt_i > 0; lt_i--) {
12250 if ($lt_i != "" && $lt_i != ".") {
12251 if ($lt_i == "..") {
12254 if (lt_count == 0) {
12255 lt_foo="/" $lt_i lt_foo;
12262 if (lt_foo != "") { lt_freq[lt_foo]++; }
12263 if (lt_freq[lt_foo] == 1) { print lt_foo; }
12265 # AWK program above erroneously prepends '/' to C:/dos/paths
12268 mingw
* | cegcc
*) lt_search_path_spec
=`$ECHO "$lt_search_path_spec" |\
12269 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
12271 sys_lib_search_path_spec
=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
12273 sys_lib_search_path_spec
="/lib /usr/lib /usr/local/lib"
12275 library_names_spec
=
12276 libname_spec
='lib$name'
12280 postuninstall_cmds
=
12284 shlibpath_overrides_runpath
=unknown
12286 dynamic_linker
="$host_os ld.so"
12287 sys_lib_dlsearch_path_spec
="/lib /usr/lib"
12288 need_lib_prefix
=unknown
12289 hardcode_into_libs
=no
12291 # when you set need_version to no, make sure it does not cause -set_version
12292 # flags to be left without arguments
12293 need_version
=unknown
12297 version_type
=linux
# correct to gnu/linux during the next big refactor
12298 library_names_spec
='${libname}${release}${shared_ext}$versuffix $libname.a'
12299 shlibpath_var
=LIBPATH
12301 # AIX 3 has no versioning support, so we append a major version to the name.
12302 soname_spec
='${libname}${release}${shared_ext}$major'
12306 version_type
=linux
# correct to gnu/linux during the next big refactor
12309 hardcode_into_libs
=yes
12310 if test "$host_cpu" = ia64
; then
12311 # AIX 5 supports IA64
12312 library_names_spec
='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
12313 shlibpath_var
=LD_LIBRARY_PATH
12315 # With GCC up to 2.95.x, collect2 would create an import file
12316 # for dependence libraries. The import file would start with
12317 # the line `#! .'. This would cause the generated library to
12318 # depend on `.', always an invalid library. This was fixed in
12319 # development snapshots of GCC prior to 3.0.
12321 aix4 | aix4.
[01] | aix4.
[01].
*)
12322 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
12324 echo '#endif'; } |
${CC} -E - |
$GREP yes > /dev
/null
; then
12327 can_build_shared
=no
12331 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
12332 # soname into executable. Probably we can add versioning support to
12333 # collect2, so additional links can be useful in future.
12334 if test "$aix_use_runtimelinking" = yes; then
12335 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
12336 # instead of lib<name>.a to let people know that these are not
12337 # typical AIX shared libraries.
12338 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12340 # We preserve .a as extension for shared libraries through AIX4.2
12341 # and later when we are not doing run time linking.
12342 library_names_spec
='${libname}${release}.a $libname.a'
12343 soname_spec
='${libname}${release}${shared_ext}$major'
12345 shlibpath_var
=LIBPATH
12352 # Since July 2007 AmigaOS4 officially supports .so libraries.
12353 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
12354 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12357 library_names_spec
='$libname.ixlibrary $libname.a'
12358 # Create ${libname}_ixlibrary.a entries in /sys/libs.
12359 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'
12365 library_names_spec
='${libname}${shared_ext}'
12366 dynamic_linker
="$host_os ld.so"
12367 shlibpath_var
=LIBRARY_PATH
12371 version_type
=linux
# correct to gnu/linux during the next big refactor
12373 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12374 soname_spec
='${libname}${release}${shared_ext}$major'
12375 finish_cmds
='PATH="\$PATH:/sbin" ldconfig $libdir'
12376 shlibpath_var
=LD_LIBRARY_PATH
12377 sys_lib_search_path_spec
="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
12378 sys_lib_dlsearch_path_spec
="/shlib /usr/lib /usr/local/lib"
12379 # the default ld.so.conf also contains /usr/contrib/lib and
12380 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
12381 # libtool to hard-code these into programs
12384 cygwin
* | mingw
* | pw32
* | cegcc
*)
12385 version_type
=windows
12390 case $GCC,$cc_basename in
12393 library_names_spec
='$libname.dll.a'
12394 # DLL is installed to $(libdir)/../bin by postinstall_cmds
12395 postinstall_cmds
='base_file=`basename \${file}`~
12396 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
12397 dldir=$destdir/`dirname \$dlpath`~
12398 test -d \$dldir || mkdir -p \$dldir~
12399 $install_prog $dir/$dlname \$dldir/$dlname~
12400 chmod a+x \$dldir/$dlname~
12401 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
12402 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
12404 postuninstall_cmds
='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
12405 dlpath=$dir/\$dldll~
12407 shlibpath_overrides_runpath
=yes
12411 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
12412 soname_spec
='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12414 sys_lib_search_path_spec
="$sys_lib_search_path_spec /usr/lib/w32api"
12417 # MinGW DLLs use traditional 'lib' prefix
12418 soname_spec
='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12421 # pw32 DLLs use 'pw' prefix rather than 'lib'
12422 library_names_spec
='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12425 dynamic_linker
='Win32 ld.exe'
12430 libname_spec
='$name'
12431 soname_spec
='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12432 library_names_spec
='${libname}.dll.lib'
12436 sys_lib_search_path_spec
=
12439 for lt_path
in $LIB
12442 # Let DOS variable expansion print the short 8.3 style file name.
12443 lt_path
=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
12444 sys_lib_search_path_spec
="$sys_lib_search_path_spec $lt_path"
12447 # Convert to MSYS style.
12448 sys_lib_search_path_spec
=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
12451 # Convert to unix form, then to dos form, then back to unix form
12452 # but this time dos style (no spaces!) so that the unix form looks
12453 # like /cygdrive/c/PROGRA~1:/cygdr...
12454 sys_lib_search_path_spec
=`cygpath --path --unix "$LIB"`
12455 sys_lib_search_path_spec
=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
12456 sys_lib_search_path_spec
=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
12459 sys_lib_search_path_spec
="$LIB"
12460 if $ECHO "$sys_lib_search_path_spec" |
$GREP ';[c-zC-Z]:/' >/dev
/null
; then
12461 # It is most probably a Windows format PATH.
12462 sys_lib_search_path_spec
=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
12464 sys_lib_search_path_spec
=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
12466 # FIXME: find the short name or the path components, as spaces are
12467 # common. (e.g. "Program Files" -> "PROGRA~1")
12471 # DLL is installed to $(libdir)/../bin by postinstall_cmds
12472 postinstall_cmds
='base_file=`basename \${file}`~
12473 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
12474 dldir=$destdir/`dirname \$dlpath`~
12475 test -d \$dldir || mkdir -p \$dldir~
12476 $install_prog $dir/$dlname \$dldir/$dlname'
12477 postuninstall_cmds
='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
12478 dlpath=$dir/\$dldll~
12480 shlibpath_overrides_runpath
=yes
12481 dynamic_linker
='Win32 link.exe'
12485 # Assume MSVC wrapper
12486 library_names_spec
='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
12487 dynamic_linker
='Win32 ld.exe'
12490 # FIXME: first we should search . and the directory the executable is in
12494 darwin
* | rhapsody
*)
12495 dynamic_linker
="$host_os dyld"
12496 version_type
=darwin
12499 library_names_spec
='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
12500 soname_spec
='${libname}${release}${major}$shared_ext'
12501 shlibpath_overrides_runpath
=yes
12502 shlibpath_var
=DYLD_LIBRARY_PATH
12503 shrext_cmds
='`test .$module = .yes && echo .so || echo .dylib`'
12505 sys_lib_search_path_spec
="$sys_lib_search_path_spec /usr/local/lib"
12506 sys_lib_dlsearch_path_spec
='/usr/local/lib /lib /usr/lib'
12510 version_type
=linux
# correct to gnu/linux during the next big refactor
12513 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
12514 soname_spec
='${libname}${release}${shared_ext}$major'
12515 shlibpath_var
=LD_LIBRARY_PATH
12518 freebsd
* | dragonfly
*)
12519 # DragonFly does not have aout. When/if they implement a new
12520 # versioning mechanism, adjust this.
12521 if test -x /usr
/bin
/objformat
; then
12522 objformat
=`/usr/bin/objformat`
12525 freebsd
[23].
*) objformat
=aout
;;
12526 *) objformat
=elf
;;
12529 version_type
=freebsd-
$objformat
12530 case $version_type in
12532 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
12537 library_names_spec
='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
12541 shlibpath_var
=LD_LIBRARY_PATH
12544 shlibpath_overrides_runpath
=yes
12546 freebsd3.
[01]* | freebsdelf3.
[01]*)
12547 shlibpath_overrides_runpath
=yes
12548 hardcode_into_libs
=yes
12550 freebsd3.
[2-9]* | freebsdelf3.
[2-9]* | \
12551 freebsd4.
[0-5] | freebsdelf4.
[0-5] | freebsd4.1
.1 | freebsdelf4.1
.1)
12552 shlibpath_overrides_runpath
=no
12553 hardcode_into_libs
=yes
12555 *) # from 4.6 on, and DragonFly
12556 shlibpath_overrides_runpath
=yes
12557 hardcode_into_libs
=yes
12563 version_type
=linux
# correct to gnu/linux during the next big refactor
12566 dynamic_linker
="$host_os runtime_loader"
12567 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
12568 soname_spec
='${libname}${release}${shared_ext}$major'
12569 shlibpath_var
=LIBRARY_PATH
12570 shlibpath_overrides_runpath
=yes
12571 sys_lib_dlsearch_path_spec
='/boot/home/config/lib /boot/common/lib /boot/system/lib'
12572 hardcode_into_libs
=yes
12575 hpux9
* | hpux10
* | hpux11
*)
12576 # Give a soname corresponding to the major version so that dld.sl refuses to
12577 # link against other versions.
12584 hardcode_into_libs
=yes
12585 dynamic_linker
="$host_os dld.so"
12586 shlibpath_var
=LD_LIBRARY_PATH
12587 shlibpath_overrides_runpath
=yes # Unless +noenvvar is specified.
12588 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12589 soname_spec
='${libname}${release}${shared_ext}$major'
12590 if test "X$HPUX_IA64_MODE" = X32
; then
12591 sys_lib_search_path_spec
="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
12593 sys_lib_search_path_spec
="/usr/lib/hpux64 /usr/local/lib/hpux64"
12595 sys_lib_dlsearch_path_spec
=$sys_lib_search_path_spec
12599 hardcode_into_libs
=yes
12600 dynamic_linker
="$host_os dld.sl"
12601 shlibpath_var
=LD_LIBRARY_PATH
# How should we handle SHLIB_PATH
12602 shlibpath_overrides_runpath
=yes # Unless +noenvvar is specified.
12603 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12604 soname_spec
='${libname}${release}${shared_ext}$major'
12605 sys_lib_search_path_spec
="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
12606 sys_lib_dlsearch_path_spec
=$sys_lib_search_path_spec
12610 dynamic_linker
="$host_os dld.sl"
12611 shlibpath_var
=SHLIB_PATH
12612 shlibpath_overrides_runpath
=no
# +s is required to enable SHLIB_PATH
12613 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12614 soname_spec
='${libname}${release}${shared_ext}$major'
12617 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
12618 postinstall_cmds
='chmod 555 $lib'
12619 # or fails outright, so override atomically:
12620 install_override_mode
=555
12624 version_type
=linux
# correct to gnu/linux during the next big refactor
12627 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12628 soname_spec
='${libname}${release}${shared_ext}$major'
12629 dynamic_linker
='Interix 3.x ld.so.1 (PE, like ELF)'
12630 shlibpath_var
=LD_LIBRARY_PATH
12631 shlibpath_overrides_runpath
=no
12632 hardcode_into_libs
=yes
12635 irix5
* | irix6
* | nonstopux
*)
12637 nonstopux
*) version_type
=nonstopux
;;
12639 if test "$lt_cv_prog_gnu_ld" = yes; then
12640 version_type
=linux
# correct to gnu/linux during the next big refactor
12647 soname_spec
='${libname}${release}${shared_ext}$major'
12648 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
12650 irix5
* | nonstopux
*)
12651 libsuff
= shlibsuff
=
12654 case $LD in # libtool.m4 will add one of these switches to LD
12655 *-32|
*"-32 "|
*-melf32bsmip|
*"-melf32bsmip ")
12656 libsuff
= shlibsuff
= libmagic
=32-bit;;
12657 *-n32|
*"-n32 "|
*-melf32bmipn32|
*"-melf32bmipn32 ")
12658 libsuff
=32 shlibsuff
=N32 libmagic
=N32
;;
12659 *-64|
*"-64 "|
*-melf64bmip|
*"-melf64bmip ")
12660 libsuff
=64 shlibsuff
=64 libmagic
=64-bit;;
12661 *) libsuff
= shlibsuff
= libmagic
=never-match
;;
12665 shlibpath_var
=LD_LIBRARY
${shlibsuff}_PATH
12666 shlibpath_overrides_runpath
=no
12667 sys_lib_search_path_spec
="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
12668 sys_lib_dlsearch_path_spec
="/usr/lib${libsuff} /lib${libsuff}"
12669 hardcode_into_libs
=yes
12672 # No shared lib support for Linux oldld, aout, or coff.
12673 linux
*oldld
* | linux
*aout
* | linux
*coff
*)
12677 # This must be glibc/ELF.
12678 linux
* | k
*bsd
*-gnu | kopensolaris
*-gnu | gnu
*)
12679 version_type
=linux
# correct to gnu/linux during the next big refactor
12682 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12683 soname_spec
='${libname}${release}${shared_ext}$major'
12684 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -n $libdir'
12685 shlibpath_var
=LD_LIBRARY_PATH
12686 shlibpath_overrides_runpath
=no
12688 # Some binutils ld are patched to set DT_RUNPATH
12689 if ${lt_cv_shlibpath_overrides_runpath+:} false
; then :
12690 $as_echo_n "(cached) " >&6
12692 lt_cv_shlibpath_overrides_runpath
=no
12693 save_LDFLAGS
=$LDFLAGS
12694 save_libdir
=$libdir
12695 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
12696 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
12697 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12698 /* end confdefs.h. */
12708 if ac_fn_c_try_link
"$LINENO"; then :
12709 if ($OBJDUMP -p conftest
$ac_exeext) 2>/dev
/null |
grep "RUNPATH.*$libdir" >/dev
/null
; then :
12710 lt_cv_shlibpath_overrides_runpath
=yes
12713 rm -f core conftest.err conftest.
$ac_objext \
12714 conftest
$ac_exeext conftest.
$ac_ext
12715 LDFLAGS
=$save_LDFLAGS
12716 libdir
=$save_libdir
12720 shlibpath_overrides_runpath
=$lt_cv_shlibpath_overrides_runpath
12722 # This implies no fast_install, which is unacceptable.
12723 # Some rework will be needed to allow for fast_install
12724 # before this can be enabled.
12725 hardcode_into_libs
=yes
12727 # Append ld.so.conf contents to the search path
12728 if test -f /etc
/ld.so.conf
; then
12729 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' ' '`
12730 sys_lib_dlsearch_path_spec
="/lib /usr/lib $lt_ld_extra"
12733 # We used to test for /lib/ld.so.1 and disable shared libraries on
12734 # powerpc, because MkLinux only supported shared libraries with the
12735 # GNU dynamic linker. Since this was broken with cross compilers,
12736 # most powerpc-linux boxes support dynamic linking these days and
12737 # people can always --disable-shared, the test was removed, and we
12738 # assume the GNU/Linux dynamic linker is in use.
12739 dynamic_linker
='GNU/Linux ld.so'
12746 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12747 soname_spec
='${libname}${release}${shared_ext}$major'
12748 shlibpath_var
=LD_LIBRARY_PATH
12749 shlibpath_overrides_runpath
=no
12750 hardcode_into_libs
=yes
12751 dynamic_linker
='NetBSD ld.elf_so'
12758 if echo __ELF__ |
$CC -E - |
$GREP __ELF__
>/dev
/null
; then
12759 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12760 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12761 dynamic_linker
='NetBSD (a.out) ld.so'
12763 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12764 soname_spec
='${libname}${release}${shared_ext}$major'
12765 dynamic_linker
='NetBSD ld.elf_so'
12767 shlibpath_var
=LD_LIBRARY_PATH
12768 shlibpath_overrides_runpath
=yes
12769 hardcode_into_libs
=yes
12773 version_type
=linux
# correct to gnu/linux during the next big refactor
12774 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12775 shlibpath_var
=LD_LIBRARY_PATH
12776 shlibpath_overrides_runpath
=yes
12783 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12784 soname_spec
='${libname}${release}${shared_ext}$major'
12785 shlibpath_var
=LD_LIBRARY_PATH
12786 shlibpath_overrides_runpath
=no
12787 hardcode_into_libs
=yes
12788 dynamic_linker
='ldqnx.so'
12793 sys_lib_dlsearch_path_spec
="/usr/lib"
12795 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
12797 openbsd3.3 | openbsd3.3.
*) need_version
=yes ;;
12798 *) need_version
=no
;;
12800 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12801 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12802 shlibpath_var
=LD_LIBRARY_PATH
12803 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" ||
test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12805 openbsd2.
[89] | openbsd2.
[89].
*)
12806 shlibpath_overrides_runpath
=no
12809 shlibpath_overrides_runpath
=yes
12813 shlibpath_overrides_runpath
=yes
12818 libname_spec
='$name'
12821 library_names_spec
='$libname${shared_ext} $libname.a'
12822 dynamic_linker
='OS/2 ld.exe'
12823 shlibpath_var
=LIBPATH
12826 osf3
* | osf4
* | osf5
*)
12830 soname_spec
='${libname}${release}${shared_ext}$major'
12831 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12832 shlibpath_var
=LD_LIBRARY_PATH
12833 sys_lib_search_path_spec
="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
12834 sys_lib_dlsearch_path_spec
="$sys_lib_search_path_spec"
12842 version_type
=linux
# correct to gnu/linux during the next big refactor
12845 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12846 soname_spec
='${libname}${release}${shared_ext}$major'
12847 shlibpath_var
=LD_LIBRARY_PATH
12848 shlibpath_overrides_runpath
=yes
12849 hardcode_into_libs
=yes
12850 # ldd complains unless libraries are executable
12851 postinstall_cmds
='chmod +x $lib'
12856 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12857 finish_cmds
='PATH="\$PATH:/usr/etc" ldconfig $libdir'
12858 shlibpath_var
=LD_LIBRARY_PATH
12859 shlibpath_overrides_runpath
=yes
12860 if test "$with_gnu_ld" = yes; then
12867 version_type
=linux
# correct to gnu/linux during the next big refactor
12868 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12869 soname_spec
='${libname}${release}${shared_ext}$major'
12870 shlibpath_var
=LD_LIBRARY_PATH
12871 case $host_vendor in
12873 shlibpath_overrides_runpath
=no
12875 runpath_var
=LD_RUN_PATH
12883 shlibpath_overrides_runpath
=no
12884 sys_lib_search_path_spec
='/lib /usr/lib /usr/ccs/lib'
12890 if test -d /usr
/nec
;then
12891 version_type
=linux
# correct to gnu/linux during the next big refactor
12892 library_names_spec
='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
12893 soname_spec
='$libname${shared_ext}.$major'
12894 shlibpath_var
=LD_LIBRARY_PATH
12898 sysv5
* | sco3.2v5
* | sco5v6
* | unixware
* | OpenUNIX
* | sysv4
*uw2
*)
12899 version_type
=freebsd-elf
12902 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
12903 soname_spec
='${libname}${release}${shared_ext}$major'
12904 shlibpath_var
=LD_LIBRARY_PATH
12905 shlibpath_overrides_runpath
=yes
12906 hardcode_into_libs
=yes
12907 if test "$with_gnu_ld" = yes; then
12908 sys_lib_search_path_spec
='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
12910 sys_lib_search_path_spec
='/usr/ccs/lib /usr/lib'
12913 sys_lib_search_path_spec
="$sys_lib_search_path_spec /lib"
12917 sys_lib_dlsearch_path_spec
='/usr/lib'
12921 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
12922 version_type
=linux
# correct to gnu/linux during the next big refactor
12925 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12926 shlibpath_var
=LD_LIBRARY_PATH
12927 shlibpath_overrides_runpath
=no
12928 hardcode_into_libs
=yes
12932 version_type
=linux
# correct to gnu/linux during the next big refactor
12933 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12934 soname_spec
='${libname}${release}${shared_ext}$major'
12935 shlibpath_var
=LD_LIBRARY_PATH
12942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
12943 $as_echo "$dynamic_linker" >&6; }
12944 test "$dynamic_linker" = no
&& can_build_shared
=no
12946 variables_saved_for_relink
="PATH $shlibpath_var $runpath_var"
12947 if test "$GCC" = yes; then
12948 variables_saved_for_relink
="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
12951 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
12952 sys_lib_search_path_spec
="$lt_cv_sys_lib_search_path_spec"
12954 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
12955 sys_lib_dlsearch_path_spec
="$lt_cv_sys_lib_dlsearch_path_spec"
13049 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
13050 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
13052 if test -n "$hardcode_libdir_flag_spec" ||
13053 test -n "$runpath_var" ||
13054 test "X$hardcode_automatic" = "Xyes" ; then
13056 # We can hardcode non-existent directories.
13057 if test "$hardcode_direct" != no
&&
13058 # If the only mechanism to avoid hardcoding is shlibpath_var, we
13059 # have to relink, otherwise we might link with an installed library
13060 # when we should be linking with a yet-to-be-installed one
13061 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
13062 test "$hardcode_minus_L" != no
; then
13063 # Linking always hardcodes the temporary library directory.
13064 hardcode_action
=relink
13066 # We can link without hardcoding, and we can hardcode nonexisting dirs.
13067 hardcode_action
=immediate
13070 # We cannot hardcode anything, or else we can only hardcode existing
13072 hardcode_action
=unsupported
13074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
13075 $as_echo "$hardcode_action" >&6; }
13077 if test "$hardcode_action" = relink ||
13078 test "$inherit_rpath" = yes; then
13079 # Fast installation is not supported
13080 enable_fast_install
=no
13081 elif test "$shlibpath_overrides_runpath" = yes ||
13082 test "$enable_shared" = no
; then
13083 # Fast installation is not necessary
13084 enable_fast_install
=needless
13092 if test "x$enable_dlopen" != xyes
; then
13093 enable_dlopen
=unknown
13094 enable_dlopen_self
=unknown
13095 enable_dlopen_self_static
=unknown
13102 lt_cv_dlopen
="load_add_on"
13104 lt_cv_dlopen_self
=yes
13107 mingw
* | pw32
* | cegcc
*)
13108 lt_cv_dlopen
="LoadLibrary"
13113 lt_cv_dlopen
="dlopen"
13118 # if libdl is installed we need to link against it
13119 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
13120 $as_echo_n "checking for dlopen in -ldl... " >&6; }
13121 if ${ac_cv_lib_dl_dlopen+:} false
; then :
13122 $as_echo_n "(cached) " >&6
13124 ac_check_lib_save_LIBS
=$LIBS
13126 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13127 /* end confdefs.h. */
13129 /* Override any GCC internal prototype to avoid an error.
13130 Use char because int might match the return type of a GCC
13131 builtin and then its argument prototype would still apply. */
13144 if ac_fn_c_try_link
"$LINENO"; then :
13145 ac_cv_lib_dl_dlopen
=yes
13147 ac_cv_lib_dl_dlopen
=no
13149 rm -f core conftest.err conftest.
$ac_objext \
13150 conftest
$ac_exeext conftest.
$ac_ext
13151 LIBS
=$ac_check_lib_save_LIBS
13153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
13154 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
13155 if test "x$ac_cv_lib_dl_dlopen" = xyes
; then :
13156 lt_cv_dlopen
="dlopen" lt_cv_dlopen_libs
="-ldl"
13159 lt_cv_dlopen
="dyld"
13161 lt_cv_dlopen_self
=yes
13168 ac_fn_c_check_func
"$LINENO" "shl_load" "ac_cv_func_shl_load"
13169 if test "x$ac_cv_func_shl_load" = xyes
; then :
13170 lt_cv_dlopen
="shl_load"
13172 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
13173 $as_echo_n "checking for shl_load in -ldld... " >&6; }
13174 if ${ac_cv_lib_dld_shl_load+:} false
; then :
13175 $as_echo_n "(cached) " >&6
13177 ac_check_lib_save_LIBS
=$LIBS
13179 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13180 /* end confdefs.h. */
13182 /* Override any GCC internal prototype to avoid an error.
13183 Use char because int might match the return type of a GCC
13184 builtin and then its argument prototype would still apply. */
13192 return shl_load ();
13197 if ac_fn_c_try_link
"$LINENO"; then :
13198 ac_cv_lib_dld_shl_load
=yes
13200 ac_cv_lib_dld_shl_load
=no
13202 rm -f core conftest.err conftest.
$ac_objext \
13203 conftest
$ac_exeext conftest.
$ac_ext
13204 LIBS
=$ac_check_lib_save_LIBS
13206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
13207 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
13208 if test "x$ac_cv_lib_dld_shl_load" = xyes
; then :
13209 lt_cv_dlopen
="shl_load" lt_cv_dlopen_libs
="-ldld"
13211 ac_fn_c_check_func
"$LINENO" "dlopen" "ac_cv_func_dlopen"
13212 if test "x$ac_cv_func_dlopen" = xyes
; then :
13213 lt_cv_dlopen
="dlopen"
13215 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
13216 $as_echo_n "checking for dlopen in -ldl... " >&6; }
13217 if ${ac_cv_lib_dl_dlopen+:} false
; then :
13218 $as_echo_n "(cached) " >&6
13220 ac_check_lib_save_LIBS
=$LIBS
13222 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13223 /* end confdefs.h. */
13225 /* Override any GCC internal prototype to avoid an error.
13226 Use char because int might match the return type of a GCC
13227 builtin and then its argument prototype would still apply. */
13240 if ac_fn_c_try_link
"$LINENO"; then :
13241 ac_cv_lib_dl_dlopen
=yes
13243 ac_cv_lib_dl_dlopen
=no
13245 rm -f core conftest.err conftest.
$ac_objext \
13246 conftest
$ac_exeext conftest.
$ac_ext
13247 LIBS
=$ac_check_lib_save_LIBS
13249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
13250 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
13251 if test "x$ac_cv_lib_dl_dlopen" = xyes
; then :
13252 lt_cv_dlopen
="dlopen" lt_cv_dlopen_libs
="-ldl"
13254 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
13255 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
13256 if ${ac_cv_lib_svld_dlopen+:} false
; then :
13257 $as_echo_n "(cached) " >&6
13259 ac_check_lib_save_LIBS
=$LIBS
13260 LIBS
="-lsvld $LIBS"
13261 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13262 /* end confdefs.h. */
13264 /* Override any GCC internal prototype to avoid an error.
13265 Use char because int might match the return type of a GCC
13266 builtin and then its argument prototype would still apply. */
13279 if ac_fn_c_try_link
"$LINENO"; then :
13280 ac_cv_lib_svld_dlopen
=yes
13282 ac_cv_lib_svld_dlopen
=no
13284 rm -f core conftest.err conftest.
$ac_objext \
13285 conftest
$ac_exeext conftest.
$ac_ext
13286 LIBS
=$ac_check_lib_save_LIBS
13288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
13289 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
13290 if test "x$ac_cv_lib_svld_dlopen" = xyes
; then :
13291 lt_cv_dlopen
="dlopen" lt_cv_dlopen_libs
="-lsvld"
13293 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
13294 $as_echo_n "checking for dld_link in -ldld... " >&6; }
13295 if ${ac_cv_lib_dld_dld_link+:} false
; then :
13296 $as_echo_n "(cached) " >&6
13298 ac_check_lib_save_LIBS
=$LIBS
13300 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13301 /* end confdefs.h. */
13303 /* Override any GCC internal prototype to avoid an error.
13304 Use char because int might match the return type of a GCC
13305 builtin and then its argument prototype would still apply. */
13313 return dld_link ();
13318 if ac_fn_c_try_link
"$LINENO"; then :
13319 ac_cv_lib_dld_dld_link
=yes
13321 ac_cv_lib_dld_dld_link
=no
13323 rm -f core conftest.err conftest.
$ac_objext \
13324 conftest
$ac_exeext conftest.
$ac_ext
13325 LIBS
=$ac_check_lib_save_LIBS
13327 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
13328 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
13329 if test "x$ac_cv_lib_dld_dld_link" = xyes
; then :
13330 lt_cv_dlopen
="dld_link" lt_cv_dlopen_libs
="-ldld"
13351 if test "x$lt_cv_dlopen" != xno
; then
13357 case $lt_cv_dlopen in
13359 save_CPPFLAGS
="$CPPFLAGS"
13360 test "x$ac_cv_header_dlfcn_h" = xyes
&& CPPFLAGS
="$CPPFLAGS -DHAVE_DLFCN_H"
13362 save_LDFLAGS
="$LDFLAGS"
13363 wl
=$lt_prog_compiler_wl eval LDFLAGS
=\"\
$LDFLAGS $export_dynamic_flag_spec\"
13366 LIBS
="$lt_cv_dlopen_libs $LIBS"
13368 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
13369 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
13370 if ${lt_cv_dlopen_self+:} false
; then :
13371 $as_echo_n "(cached) " >&6
13373 if test "$cross_compiling" = yes; then :
13374 lt_cv_dlopen_self
=cross
13376 lt_dlunknown
=0; lt_dlno_uscore
=1; lt_dlneed_uscore
=2
13377 lt_status
=$lt_dlunknown
13378 cat > conftest.
$ac_ext <<_LT_EOF
13379 #line $LINENO "configure"
13380 #include "confdefs.h"
13389 # define LT_DLGLOBAL RTLD_GLOBAL
13392 # define LT_DLGLOBAL DL_GLOBAL
13394 # define LT_DLGLOBAL 0
13398 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
13399 find out it does not work in some platform. */
13400 #ifndef LT_DLLAZY_OR_NOW
13402 # define LT_DLLAZY_OR_NOW RTLD_LAZY
13405 # define LT_DLLAZY_OR_NOW DL_LAZY
13408 # define LT_DLLAZY_OR_NOW RTLD_NOW
13411 # define LT_DLLAZY_OR_NOW DL_NOW
13413 # define LT_DLLAZY_OR_NOW 0
13420 /* When -fvisbility=hidden is used, assume the code has been annotated
13421 correspondingly for the symbols needed. */
13422 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
13423 int fnord () __attribute__((visibility("default")));
13426 int fnord () { return 42; }
13429 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
13430 int status = $lt_dlunknown;
13434 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
13437 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
13438 else puts (dlerror ());
13440 /* dlclose (self); */
13448 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
13449 (eval $ac_link) 2>&5
13451 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13452 test $ac_status = 0; } && test -s conftest
${ac_exeext} 2>/dev
/null
; then
13453 (.
/conftest
; exit; ) >&5 2>/dev
/null
13455 case x
$lt_status in
13456 x
$lt_dlno_uscore) lt_cv_dlopen_self
=yes ;;
13457 x
$lt_dlneed_uscore) lt_cv_dlopen_self
=yes ;;
13458 x
$lt_dlunknown|x
*) lt_cv_dlopen_self
=no
;;
13461 # compilation failed
13462 lt_cv_dlopen_self
=no
13469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
13470 $as_echo "$lt_cv_dlopen_self" >&6; }
13472 if test "x$lt_cv_dlopen_self" = xyes
; then
13473 wl
=$lt_prog_compiler_wl eval LDFLAGS
=\"\
$LDFLAGS $lt_prog_compiler_static\"
13474 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
13475 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
13476 if ${lt_cv_dlopen_self_static+:} false
; then :
13477 $as_echo_n "(cached) " >&6
13479 if test "$cross_compiling" = yes; then :
13480 lt_cv_dlopen_self_static
=cross
13482 lt_dlunknown
=0; lt_dlno_uscore
=1; lt_dlneed_uscore
=2
13483 lt_status
=$lt_dlunknown
13484 cat > conftest.
$ac_ext <<_LT_EOF
13485 #line $LINENO "configure"
13486 #include "confdefs.h"
13495 # define LT_DLGLOBAL RTLD_GLOBAL
13498 # define LT_DLGLOBAL DL_GLOBAL
13500 # define LT_DLGLOBAL 0
13504 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
13505 find out it does not work in some platform. */
13506 #ifndef LT_DLLAZY_OR_NOW
13508 # define LT_DLLAZY_OR_NOW RTLD_LAZY
13511 # define LT_DLLAZY_OR_NOW DL_LAZY
13514 # define LT_DLLAZY_OR_NOW RTLD_NOW
13517 # define LT_DLLAZY_OR_NOW DL_NOW
13519 # define LT_DLLAZY_OR_NOW 0
13526 /* When -fvisbility=hidden is used, assume the code has been annotated
13527 correspondingly for the symbols needed. */
13528 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
13529 int fnord () __attribute__((visibility("default")));
13532 int fnord () { return 42; }
13535 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
13536 int status = $lt_dlunknown;
13540 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
13543 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
13544 else puts (dlerror ());
13546 /* dlclose (self); */
13554 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
13555 (eval $ac_link) 2>&5
13557 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13558 test $ac_status = 0; } && test -s conftest
${ac_exeext} 2>/dev
/null
; then
13559 (.
/conftest
; exit; ) >&5 2>/dev
/null
13561 case x
$lt_status in
13562 x
$lt_dlno_uscore) lt_cv_dlopen_self_static
=yes ;;
13563 x
$lt_dlneed_uscore) lt_cv_dlopen_self_static
=yes ;;
13564 x
$lt_dlunknown|x
*) lt_cv_dlopen_self_static
=no
;;
13567 # compilation failed
13568 lt_cv_dlopen_self_static
=no
13575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
13576 $as_echo "$lt_cv_dlopen_self_static" >&6; }
13579 CPPFLAGS
="$save_CPPFLAGS"
13580 LDFLAGS
="$save_LDFLAGS"
13585 case $lt_cv_dlopen_self in
13586 yes|no
) enable_dlopen_self
=$lt_cv_dlopen_self ;;
13587 *) enable_dlopen_self
=unknown
;;
13590 case $lt_cv_dlopen_self_static in
13591 yes|no
) enable_dlopen_self_static
=$lt_cv_dlopen_self_static ;;
13592 *) enable_dlopen_self_static
=unknown
;;
13614 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
13615 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
13616 if test -n "$STRIP" && $STRIP -V 2>&1 |
$GREP "GNU strip" >/dev
/null
; then
13617 test -z "$old_striplib" && old_striplib
="$STRIP --strip-debug"
13618 test -z "$striplib" && striplib
="$STRIP --strip-unneeded"
13619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13620 $as_echo "yes" >&6; }
13622 # FIXME - insert some real tests, host_os isn't really good enough
13625 if test -n "$STRIP" ; then
13626 striplib
="$STRIP -x"
13627 old_striplib
="$STRIP -S"
13628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13629 $as_echo "yes" >&6; }
13631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13632 $as_echo "no" >&6; }
13636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13637 $as_echo "no" >&6; }
13653 # Report which library types will actually be built
13654 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
13655 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
13656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
13657 $as_echo "$can_build_shared" >&6; }
13659 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
13660 $as_echo_n "checking whether to build shared libraries... " >&6; }
13661 test "$can_build_shared" = "no" && enable_shared
=no
13663 # On AIX, shared libraries and static libraries use the same namespace, and
13664 # are all built from PIC.
13667 test "$enable_shared" = yes && enable_static
=no
13668 if test -n "$RANLIB"; then
13669 archive_cmds
="$archive_cmds~\$RANLIB \$lib"
13670 postinstall_cmds
='$RANLIB $lib'
13675 if test "$host_cpu" != ia64
&& test "$aix_use_runtimelinking" = no
; then
13676 test "$enable_shared" = yes && enable_static
=no
13680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
13681 $as_echo "$enable_shared" >&6; }
13683 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
13684 $as_echo_n "checking whether to build static libraries... " >&6; }
13685 # Make sure either enable_shared or enable_static is yes.
13686 test "$enable_shared" = yes || enable_static
=yes
13687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
13688 $as_echo "$enable_static" >&6; }
13695 ac_cpp
='$CPP $CPPFLAGS'
13696 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13697 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13698 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
13702 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
13703 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
13704 (test "X$CXX" != "Xg++"))) ; then
13706 ac_cpp
='$CXXCPP $CPPFLAGS'
13707 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13708 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13709 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
13710 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
13711 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
13712 if test -z "$CXXCPP"; then
13713 if ${ac_cv_prog_CXXCPP+:} false
; then :
13714 $as_echo_n "(cached) " >&6
13716 # Double quotes because CXXCPP needs to be expanded
13717 for CXXCPP
in "$CXX -E" "/lib/cpp"
13719 ac_preproc_ok
=false
13720 for ac_cxx_preproc_warn_flag
in '' yes
13722 # Use a header file that comes with gcc, so configuring glibc
13723 # with a fresh cross-compiler works.
13724 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13725 # <limits.h> exists even on freestanding compilers.
13726 # On the NeXT, cc -E runs the code through the compiler's parser,
13727 # not just through cpp. "Syntax error" is here to catch this case.
13728 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13729 /* end confdefs.h. */
13731 # include <limits.h>
13733 # include <assert.h>
13737 if ac_fn_cxx_try_cpp
"$LINENO"; then :
13740 # Broken: fails on valid input.
13743 rm -f conftest.err conftest.i conftest.
$ac_ext
13745 # OK, works on sane cases. Now check whether nonexistent headers
13746 # can be detected and how.
13747 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13748 /* end confdefs.h. */
13749 #include <ac_nonexistent.h>
13751 if ac_fn_cxx_try_cpp
"$LINENO"; then :
13752 # Broken: success on invalid input.
13755 # Passes both tests.
13759 rm -f conftest.err conftest.i conftest.
$ac_ext
13762 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
13763 rm -f conftest.i conftest.err conftest.
$ac_ext
13764 if $ac_preproc_ok; then :
13769 ac_cv_prog_CXXCPP
=$CXXCPP
13772 CXXCPP
=$ac_cv_prog_CXXCPP
13774 ac_cv_prog_CXXCPP
=$CXXCPP
13776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
13777 $as_echo "$CXXCPP" >&6; }
13778 ac_preproc_ok
=false
13779 for ac_cxx_preproc_warn_flag
in '' yes
13781 # Use a header file that comes with gcc, so configuring glibc
13782 # with a fresh cross-compiler works.
13783 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13784 # <limits.h> exists even on freestanding compilers.
13785 # On the NeXT, cc -E runs the code through the compiler's parser,
13786 # not just through cpp. "Syntax error" is here to catch this case.
13787 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13788 /* end confdefs.h. */
13790 # include <limits.h>
13792 # include <assert.h>
13796 if ac_fn_cxx_try_cpp
"$LINENO"; then :
13799 # Broken: fails on valid input.
13802 rm -f conftest.err conftest.i conftest.
$ac_ext
13804 # OK, works on sane cases. Now check whether nonexistent headers
13805 # can be detected and how.
13806 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13807 /* end confdefs.h. */
13808 #include <ac_nonexistent.h>
13810 if ac_fn_cxx_try_cpp
"$LINENO"; then :
13811 # Broken: success on invalid input.
13814 # Passes both tests.
13818 rm -f conftest.err conftest.i conftest.
$ac_ext
13821 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
13822 rm -f conftest.i conftest.err conftest.
$ac_ext
13823 if $ac_preproc_ok; then :
13826 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13827 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13828 as_fn_error $?
"C++ preprocessor \"$CXXCPP\" fails sanity check
13829 See \`config.log' for more details" "$LINENO" 5; }
13833 ac_cpp
='$CPP $CPPFLAGS'
13834 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13835 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13836 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
13839 _lt_caught_CXX_error
=yes
13843 ac_cpp
='$CXXCPP $CPPFLAGS'
13844 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13845 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13846 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
13848 archive_cmds_need_lc_CXX
=no
13849 allow_undefined_flag_CXX
=
13850 always_export_symbols_CXX
=no
13851 archive_expsym_cmds_CXX
=
13852 compiler_needs_object_CXX
=no
13853 export_dynamic_flag_spec_CXX
=
13854 hardcode_direct_CXX
=no
13855 hardcode_direct_absolute_CXX
=no
13856 hardcode_libdir_flag_spec_CXX
=
13857 hardcode_libdir_separator_CXX
=
13858 hardcode_minus_L_CXX
=no
13859 hardcode_shlibpath_var_CXX
=unsupported
13860 hardcode_automatic_CXX
=no
13861 inherit_rpath_CXX
=no
13863 module_expsym_cmds_CXX
=
13864 link_all_deplibs_CXX
=unknown
13865 old_archive_cmds_CXX
=$old_archive_cmds
13866 reload_flag_CXX
=$reload_flag
13867 reload_cmds_CXX
=$reload_cmds
13868 no_undefined_flag_CXX
=
13869 whole_archive_flag_spec_CXX
=
13870 enable_shared_with_static_runtimes_CXX
=no
13872 # Source file extension for C++ test sources.
13875 # Object file extension for compiled C++ test sources.
13879 # No sense in running all these tests if we already determined that
13880 # the CXX compiler isn't working. Some variables (like enable_shared)
13881 # are currently assumed to apply to all compilers on this platform,
13882 # and will be corrupted by setting them based on a non-working compiler.
13883 if test "$_lt_caught_CXX_error" != yes; then
13884 # Code to be used in simple compile tests
13885 lt_simple_compile_test_code
="int some_variable = 0;"
13887 # Code to be used in simple link tests
13888 lt_simple_link_test_code
='int main(int, char *[]) { return(0); }'
13890 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
13897 # If no C compiler was specified, use CC.
13900 # If no C compiler flags were specified, use CFLAGS.
13901 LTCFLAGS
=${LTCFLAGS-"$CFLAGS"}
13903 # Allow CC to be a program name with arguments.
13907 # save warnings/boilerplate of simple test code
13908 ac_outfile
=conftest.
$ac_objext
13909 echo "$lt_simple_compile_test_code" >conftest.
$ac_ext
13910 eval "$ac_compile" 2>&1 >/dev
/null |
$SED '/^$/d; /^ *+/d' >conftest.err
13911 _lt_compiler_boilerplate
=`cat conftest.err`
13914 ac_outfile
=conftest.
$ac_objext
13915 echo "$lt_simple_link_test_code" >conftest.
$ac_ext
13916 eval "$ac_link" 2>&1 >/dev
/null |
$SED '/^$/d; /^ *+/d' >conftest.err
13917 _lt_linker_boilerplate
=`cat conftest.err`
13921 # Allow CC to be a program name with arguments.
13923 lt_save_CFLAGS
=$CFLAGS
13927 lt_save_with_gnu_ld
=$with_gnu_ld
13928 lt_save_path_LD
=$lt_cv_path_LD
13929 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
13930 lt_cv_prog_gnu_ld
=$lt_cv_prog_gnu_ldcxx
13932 $as_unset lt_cv_prog_gnu_ld
13934 if test -n "${lt_cv_path_LDCXX+set}"; then
13935 lt_cv_path_LD
=$lt_cv_path_LDCXX
13937 $as_unset lt_cv_path_LD
13939 test -z "${LDCXX+set}" || LD
=$LDCXX
13944 for cc_temp
in $compiler""; do
13946 compile |
*[\\/]compile | ccache |
*[\\/]ccache
) ;;
13947 distcc |
*[\\/]distcc | purify |
*[\\/]purify
) ;;
13952 cc_basename
=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
13955 if test -n "$compiler"; then
13956 # We don't want -fno-exception when compiling C++ code, so set the
13957 # no_builtin_flag separately
13958 if test "$GXX" = yes; then
13959 lt_prog_compiler_no_builtin_flag_CXX
=' -fno-builtin'
13961 lt_prog_compiler_no_builtin_flag_CXX
=
13964 if test "$GXX" = yes; then
13965 # Set up default GNU C++ configuration
13969 # Check whether --with-gnu-ld was given.
13970 if test "${with_gnu_ld+set}" = set; then :
13971 withval
=$with_gnu_ld; test "$withval" = no || with_gnu_ld
=yes
13977 if test "$GCC" = yes; then
13978 # Check if gcc -print-prog-name=ld gives a path.
13979 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
13980 $as_echo_n "checking for ld used by $CC... " >&6; }
13983 # gcc leaves a trailing carriage return which upsets mingw
13984 ac_prog
=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
13986 ac_prog
=`($CC -print-prog-name=ld) 2>&5` ;;
13989 # Accept absolute paths.
13991 re_direlt
='/[^/][^/]*/\.\./'
13992 # Canonicalize the pathname of ld
13993 ac_prog
=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
13994 while $ECHO "$ac_prog" |
$GREP "$re_direlt" > /dev
/null
2>&1; do
13995 ac_prog
=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
13997 test -z "$LD" && LD
="$ac_prog"
14000 # If it fails, then pretend we aren't using GCC.
14004 # If it is relative, then search for the first ld in PATH.
14005 with_gnu_ld
=unknown
14008 elif test "$with_gnu_ld" = yes; then
14009 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
14010 $as_echo_n "checking for GNU ld... " >&6; }
14012 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
14013 $as_echo_n "checking for non-GNU ld... " >&6; }
14015 if ${lt_cv_path_LD+:} false
; then :
14016 $as_echo_n "(cached) " >&6
14018 if test -z "$LD"; then
14019 lt_save_ifs
="$IFS"; IFS
=$PATH_SEPARATOR
14020 for ac_dir
in $PATH; do
14022 test -z "$ac_dir" && ac_dir
=.
14023 if test -f "$ac_dir/$ac_prog" ||
test -f "$ac_dir/$ac_prog$ac_exeext"; then
14024 lt_cv_path_LD
="$ac_dir/$ac_prog"
14025 # Check to see if the program is GNU ld. I'd rather use --version,
14026 # but apparently some variants of GNU ld only accept -v.
14027 # Break only if it was the GNU/non-GNU ld that we prefer.
14028 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
14029 *GNU
* |
*'with BFD'*)
14030 test "$with_gnu_ld" != no
&& break
14033 test "$with_gnu_ld" != yes && break
14040 lt_cv_path_LD
="$LD" # Let the user override the test with a path.
14044 LD
="$lt_cv_path_LD"
14045 if test -n "$LD"; then
14046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
14047 $as_echo "$LD" >&6; }
14049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14050 $as_echo "no" >&6; }
14052 test -z "$LD" && as_fn_error $?
"no acceptable ld found in \$PATH" "$LINENO" 5
14053 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
14054 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
14055 if ${lt_cv_prog_gnu_ld+:} false
; then :
14056 $as_echo_n "(cached) " >&6
14058 # I'd rather use --version here, but apparently some GNU lds only accept -v.
14059 case `$LD -v 2>&1 </dev/null` in
14060 *GNU
* |
*'with BFD'*)
14061 lt_cv_prog_gnu_ld
=yes
14064 lt_cv_prog_gnu_ld
=no
14068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
14069 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
14070 with_gnu_ld
=$lt_cv_prog_gnu_ld
14078 # Check if GNU C++ uses GNU ld as the underlying linker, since the
14079 # archiving commands below assume that GNU ld is being used.
14080 if test "$with_gnu_ld" = yes; then
14081 archive_cmds_CXX
='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
14082 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'
14084 hardcode_libdir_flag_spec_CXX
='${wl}-rpath ${wl}$libdir'
14085 export_dynamic_flag_spec_CXX
='${wl}--export-dynamic'
14087 # If archive_cmds runs LD, not CC, wlarc should be empty
14088 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
14089 # investigate it a little bit more. (MM)
14092 # ancient GNU ld didn't support --whole-archive et. al.
14093 if eval "`$CC -print-prog-name=ld` --help 2>&1" |
14094 $GREP 'no-whole-archive' > /dev
/null
; then
14095 whole_archive_flag_spec_CXX
="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
14097 whole_archive_flag_spec_CXX
=
14103 # A generic and very simple default shared library creation
14104 # command for GNU C++ for the case where it uses the native
14105 # linker, instead of GNU ld. If possible, this setting should
14106 # overridden to take advantage of the native linker features on
14107 # the platform it is being used on.
14108 archive_cmds_CXX
='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
14111 # Commands to make compiler produce verbose output that lists
14112 # what "hidden" libraries, object files and flags are used when
14113 # linking a shared library.
14114 output_verbose_link_cmd
='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
14122 # PORTME: fill in a description of your system's C++ link characteristics
14123 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14124 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
14128 # FIXME: insert proper C++ library support
14132 if test "$host_cpu" = ia64
; then
14133 # On IA64, the linker does run time linking by default, so we don't
14134 # have to do anything special.
14135 aix_use_runtimelinking
=no
14136 exp_sym_flag
='-Bexport'
14139 aix_use_runtimelinking
=no
14141 # Test if we are trying to use run time linking or normal
14142 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
14143 # need to do runtime linking.
14144 case $host_os in aix4.
[23]|aix4.
[23].
*|aix
[5-9]*)
14145 for ld_flag
in $LDFLAGS; do
14148 aix_use_runtimelinking
=yes
14156 exp_sym_flag
='-bexport'
14157 no_entry_flag
='-bnoentry'
14160 # When large executables or shared objects are built, AIX ld can
14161 # have problems creating the table of contents. If linking a library
14162 # or program results in "error TOC overflow" add -mminimal-toc to
14163 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
14164 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
14166 archive_cmds_CXX
=''
14167 hardcode_direct_CXX
=yes
14168 hardcode_direct_absolute_CXX
=yes
14169 hardcode_libdir_separator_CXX
=':'
14170 link_all_deplibs_CXX
=yes
14171 file_list_spec_CXX
='${wl}-f,'
14173 if test "$GXX" = yes; then
14174 case $host_os in aix4.
[012]|aix4.
[012].
*)
14175 # We only want to do this on AIX 4.2 and lower, the check
14176 # below for broken collect2 doesn't work under 4.3+
14177 collect2name
=`${CC} -print-prog-name=collect2`
14178 if test -f "$collect2name" &&
14179 strings "$collect2name" |
$GREP resolve_lib_name
>/dev
/null
14181 # We have reworked collect2
14184 # We have old collect2
14185 hardcode_direct_CXX
=unsupported
14186 # It fails to find uninstalled libraries when the uninstalled
14187 # path is not listed in the libpath. Setting hardcode_minus_L
14188 # to unsupported forces relinking
14189 hardcode_minus_L_CXX
=yes
14190 hardcode_libdir_flag_spec_CXX
='-L$libdir'
14191 hardcode_libdir_separator_CXX
=
14194 shared_flag
='-shared'
14195 if test "$aix_use_runtimelinking" = yes; then
14196 shared_flag
="$shared_flag "'${wl}-G'
14200 if test "$host_cpu" = ia64
; then
14201 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
14202 # chokes on -Wl,-G. The following line is correct:
14205 if test "$aix_use_runtimelinking" = yes; then
14206 shared_flag
='${wl}-G'
14208 shared_flag
='${wl}-bM:SRE'
14213 export_dynamic_flag_spec_CXX
='${wl}-bexpall'
14214 # It seems that -bexpall does not export symbols beginning with
14215 # underscore (_), so it is better to generate a list of symbols to
14217 always_export_symbols_CXX
=yes
14218 if test "$aix_use_runtimelinking" = yes; then
14219 # Warning - without using the other runtime loading flags (-brtl),
14220 # -berok will link without error, but may produce a broken library.
14221 allow_undefined_flag_CXX
='-berok'
14222 # Determine the default libpath from the value encoded in an empty
14224 if test "${lt_cv_aix_libpath+set}" = set; then
14225 aix_libpath
=$lt_cv_aix_libpath
14227 if ${lt_cv_aix_libpath__CXX+:} false
; then :
14228 $as_echo_n "(cached) " >&6
14230 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14231 /* end confdefs.h. */
14241 if ac_fn_cxx_try_link
"$LINENO"; then :
14243 lt_aix_libpath_sed
='
14244 /Import File Strings/,/^$/ {
14246 s/^0 *\([^ ]*\) *$/\1/
14250 lt_cv_aix_libpath__CXX
=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14251 # Check for a 64-bit object if we didn't find anything.
14252 if test -z "$lt_cv_aix_libpath__CXX"; then
14253 lt_cv_aix_libpath__CXX
=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14256 rm -f core conftest.err conftest.
$ac_objext \
14257 conftest
$ac_exeext conftest.
$ac_ext
14258 if test -z "$lt_cv_aix_libpath__CXX"; then
14259 lt_cv_aix_libpath__CXX
="/usr/lib:/lib"
14264 aix_libpath
=$lt_cv_aix_libpath__CXX
14267 hardcode_libdir_flag_spec_CXX
='${wl}-blibpath:$libdir:'"$aix_libpath"
14269 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"
14271 if test "$host_cpu" = ia64
; then
14272 hardcode_libdir_flag_spec_CXX
='${wl}-R $libdir:/usr/lib:/lib'
14273 allow_undefined_flag_CXX
="-z nodefs"
14274 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"
14276 # Determine the default libpath from the value encoded in an
14277 # empty executable.
14278 if test "${lt_cv_aix_libpath+set}" = set; then
14279 aix_libpath
=$lt_cv_aix_libpath
14281 if ${lt_cv_aix_libpath__CXX+:} false
; then :
14282 $as_echo_n "(cached) " >&6
14284 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14285 /* end confdefs.h. */
14295 if ac_fn_cxx_try_link
"$LINENO"; then :
14297 lt_aix_libpath_sed
='
14298 /Import File Strings/,/^$/ {
14300 s/^0 *\([^ ]*\) *$/\1/
14304 lt_cv_aix_libpath__CXX
=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14305 # Check for a 64-bit object if we didn't find anything.
14306 if test -z "$lt_cv_aix_libpath__CXX"; then
14307 lt_cv_aix_libpath__CXX
=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14310 rm -f core conftest.err conftest.
$ac_objext \
14311 conftest
$ac_exeext conftest.
$ac_ext
14312 if test -z "$lt_cv_aix_libpath__CXX"; then
14313 lt_cv_aix_libpath__CXX
="/usr/lib:/lib"
14318 aix_libpath
=$lt_cv_aix_libpath__CXX
14321 hardcode_libdir_flag_spec_CXX
='${wl}-blibpath:$libdir:'"$aix_libpath"
14322 # Warning - without using the other run time loading flags,
14323 # -berok will link without error, but may produce a broken library.
14324 no_undefined_flag_CXX
=' ${wl}-bernotok'
14325 allow_undefined_flag_CXX
=' ${wl}-berok'
14326 if test "$with_gnu_ld" = yes; then
14327 # We only use this code for GNU lds that support --whole-archive.
14328 whole_archive_flag_spec_CXX
='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
14330 # Exported symbols can be pulled into shared objects from archives
14331 whole_archive_flag_spec_CXX
='$convenience'
14333 archive_cmds_need_lc_CXX
=yes
14334 # This is similar to how AIX traditionally builds its shared
14336 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'
14342 if $LD --help 2>&1 |
$GREP ': supported targets:.* elf' > /dev
/null
; then
14343 allow_undefined_flag_CXX
=unsupported
14344 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
14345 # support --undefined. This deserves some investigation. FIXME
14346 archive_cmds_CXX
='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14353 case $cc_basename in
14355 # FIXME: insert proper C++ library support
14361 cygwin
* | mingw
* | pw32
* | cegcc
*)
14362 case $GXX,$cc_basename in
14365 # hardcode_libdir_flag_spec is actually meaningless, as there is
14366 # no search path for DLLs.
14367 hardcode_libdir_flag_spec_CXX
=' '
14368 allow_undefined_flag_CXX
=unsupported
14369 always_export_symbols_CXX
=yes
14370 file_list_spec_CXX
='@'
14371 # Tell ltmain to make .lib files, not .a files.
14373 # Tell ltmain to make .dll files, not .so files.
14375 # FIXME: Setting linknames here is a bad hack.
14376 archive_cmds_CXX
='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
14377 archive_expsym_cmds_CXX
='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
14378 $SED -n -e 's
/\\\\\\\
(.
*\\\\\\\
)/-link\\\
-EXPORT:\\\\\\\
1/' -e '1\\\
!p
' < $export_symbols > $output_objdir/$soname.exp;
14380 $SED -e 's
/\\\\\\\
(.
*\\\\\\\
)/-link\\\
-EXPORT:\\\\\\\
1/' < $export_symbols > $output_objdir/$soname.exp;
14382 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
14384 # The linker will not automatically build a static lib if we build a DLL.
14385 # _LT_TAGVAR(old_archive_from_new_cmds, CXX)='true'
14386 enable_shared_with_static_runtimes_CXX
=yes
14388 old_postinstall_cmds_CXX
='chmod 644 $oldlib'
14389 postlink_cmds_CXX
='lt_outputfile="@OUTPUT@"~
14390 lt_tool_outputfile="@TOOL_OUTPUT@"~
14391 case $lt_outputfile in
14394 lt_outputfile="$lt_outputfile.exe"
14395 lt_tool_outputfile="$lt_tool_outputfile.exe"
14398 func_to_tool_file "$lt_outputfile"~
14399 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
14400 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
14401 $RM "$lt_outputfile.manifest";
14406 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
14407 # as there is no search path for DLLs.
14408 hardcode_libdir_flag_spec_CXX
='-L$libdir'
14409 export_dynamic_flag_spec_CXX
='${wl}--export-all-symbols'
14410 allow_undefined_flag_CXX
=unsupported
14411 always_export_symbols_CXX
=no
14412 enable_shared_with_static_runtimes_CXX
=yes
14414 if $LD --help 2>&1 |
$GREP 'auto-import' > /dev
/null
; then
14415 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'
14416 # If the export-symbols file already is a .def file (1st line
14417 # is EXPORTS), use it as is; otherwise, prepend...
14418 archive_expsym_cmds_CXX
='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
14419 cp $export_symbols $output_objdir/$soname.def;
14421 echo EXPORTS > $output_objdir/$soname.def;
14422 cat $export_symbols >> $output_objdir/$soname.def;
14424 $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'
14431 darwin
* | rhapsody
*)
14434 archive_cmds_need_lc_CXX
=no
14435 hardcode_direct_CXX
=no
14436 hardcode_automatic_CXX
=yes
14437 hardcode_shlibpath_var_CXX
=unsupported
14438 if test "$lt_cv_ld_force_load" = "yes"; then
14439 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\"`'
14442 whole_archive_flag_spec_CXX
=''
14444 link_all_deplibs_CXX
=yes
14445 allow_undefined_flag_CXX
="$_lt_dar_allow_undefined"
14446 case $cc_basename in
14447 ifort
*) _lt_dar_can_shared
=yes ;;
14448 *) _lt_dar_can_shared
=$GCC ;;
14450 if test "$_lt_dar_can_shared" = "yes"; then
14451 output_verbose_link_cmd
=func_echo_all
14452 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}"
14453 module_cmds_CXX
="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
14454 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}"
14455 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}"
14456 if test "$lt_cv_apple_cc_single_mod" != "yes"; then
14457 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}"
14458 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}"
14468 case $cc_basename in
14470 # FIXME: insert proper C++ library support
14474 # Green Hills C++ Compiler
14475 # FIXME: insert proper C++ library support
14479 # FIXME: insert proper C++ library support
14486 # C++ shared libraries reported to be fairly broken before
14492 archive_cmds_need_lc_CXX
=no
14495 freebsd
* | dragonfly
*)
14496 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
14502 archive_cmds_CXX
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14503 link_all_deplibs_CXX
=yes
14507 hardcode_libdir_flag_spec_CXX
='${wl}+b ${wl}$libdir'
14508 hardcode_libdir_separator_CXX
=:
14509 export_dynamic_flag_spec_CXX
='${wl}-E'
14510 hardcode_direct_CXX
=yes
14511 hardcode_minus_L_CXX
=yes # Not in the search PATH,
14512 # but as the default
14513 # location of the library.
14515 case $cc_basename in
14517 # FIXME: insert proper C++ library support
14521 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'
14522 # Commands to make compiler produce verbose output that lists
14523 # what "hidden" libraries, object files and flags are used when
14524 # linking a shared library.
14526 # There doesn't appear to be a way to prevent this compiler from
14527 # explicitly linking system object files so we need to strip them
14528 # from the output so that they don't get included in the library
14530 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"'
14533 if test "$GXX" = yes; then
14534 archive_cmds_CXX
='$RM $output_objdir/$soname~$CC -shared -nostdlib $pic_flag ${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'
14536 # FIXME: insert proper C++ library support
14544 if test $with_gnu_ld = no
; then
14545 hardcode_libdir_flag_spec_CXX
='${wl}+b ${wl}$libdir'
14546 hardcode_libdir_separator_CXX
=:
14552 export_dynamic_flag_spec_CXX
='${wl}-E'
14558 hardcode_direct_CXX
=no
14559 hardcode_shlibpath_var_CXX
=no
14562 hardcode_direct_CXX
=yes
14563 hardcode_direct_absolute_CXX
=yes
14564 hardcode_minus_L_CXX
=yes # Not in the search PATH,
14565 # but as the default
14566 # location of the library.
14570 case $cc_basename in
14572 # FIXME: insert proper C++ library support
14578 archive_cmds_CXX
='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14581 archive_cmds_CXX
='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14584 archive_cmds_CXX
='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14587 # Commands to make compiler produce verbose output that lists
14588 # what "hidden" libraries, object files and flags are used when
14589 # linking a shared library.
14591 # There doesn't appear to be a way to prevent this compiler from
14592 # explicitly linking system object files so we need to strip them
14593 # from the output so that they don't get included in the library
14595 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"'
14598 if test "$GXX" = yes; then
14599 if test $with_gnu_ld = no
; then
14602 archive_cmds_CXX
='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14605 archive_cmds_CXX
='$CC -shared -nostdlib $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14608 archive_cmds_CXX
='$CC -shared -nostdlib $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14613 # FIXME: insert proper C++ library support
14621 hardcode_direct_CXX
=no
14622 hardcode_shlibpath_var_CXX
=no
14623 hardcode_libdir_flag_spec_CXX
='${wl}-rpath,$libdir'
14624 export_dynamic_flag_spec_CXX
='${wl}-E'
14625 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
14626 # Instead, shared libraries are loaded at an image base (0x10000000 by
14627 # default) and relocated if they conflict, which is a slow very memory
14628 # consuming and fragmenting process. To avoid this, we pick a random,
14629 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
14630 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
14631 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'
14632 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'
14635 case $cc_basename in
14638 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'
14640 # Archives containing C++ object files must be created using
14641 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
14642 # necessary to make sure instantiated templates are included
14644 old_archive_cmds_CXX
='$CC -ar -WR,-u -o $oldlib $oldobjs'
14647 if test "$GXX" = yes; then
14648 if test "$with_gnu_ld" = no
; then
14649 archive_cmds_CXX
='$CC -shared $pic_flag -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'
14651 archive_cmds_CXX
='$CC -shared $pic_flag -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'
14654 link_all_deplibs_CXX
=yes
14657 hardcode_libdir_flag_spec_CXX
='${wl}-rpath ${wl}$libdir'
14658 hardcode_libdir_separator_CXX
=:
14659 inherit_rpath_CXX
=yes
14662 linux
* | k
*bsd
*-gnu | kopensolaris
*-gnu | gnu
*)
14663 case $cc_basename in
14665 # Kuck and Associates, Inc. (KAI) C++ Compiler
14667 # KCC will only create a shared library if the output file
14668 # ends with ".so" (or ".sl" for HP-UX), so rename the library
14669 # to its proper name (with version) after linking.
14670 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'
14671 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'
14672 # Commands to make compiler produce verbose output that lists
14673 # what "hidden" libraries, object files and flags are used when
14674 # linking a shared library.
14676 # There doesn't appear to be a way to prevent this compiler from
14677 # explicitly linking system object files so we need to strip them
14678 # from the output so that they don't get included in the library
14680 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"'
14682 hardcode_libdir_flag_spec_CXX
='${wl}-rpath,$libdir'
14683 export_dynamic_flag_spec_CXX
='${wl}--export-dynamic'
14685 # Archives containing C++ object files must be created using
14686 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
14687 old_archive_cmds_CXX
='$CC -Bstatic -o $oldlib $oldobjs'
14692 # version 8.0 and above of icpc choke on multiply defined symbols
14693 # if we add $predep_objects and $postdep_objects, however 7.1 and
14694 # earlier do not add the objects themselves.
14695 case `$CC -V 2>&1` in
14697 archive_cmds_CXX
='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
14698 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'
14700 *) # Version 8.0 or newer
14703 ia64
*) tmp_idyn
=' -i_dynamic';;
14705 archive_cmds_CXX
='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14706 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'
14709 archive_cmds_need_lc_CXX
=no
14710 hardcode_libdir_flag_spec_CXX
='${wl}-rpath,$libdir'
14711 export_dynamic_flag_spec_CXX
='${wl}--export-dynamic'
14712 whole_archive_flag_spec_CXX
='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
14715 # Portland Group C++ compiler
14717 *pgCC\
[1-5].
* |
*pgcpp\
[1-5].
*)
14718 prelink_cmds_CXX
='tpldir=Template.dir~
14720 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
14721 compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
14722 old_archive_cmds_CXX
='tpldir=Template.dir~
14724 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
14725 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
14727 archive_cmds_CXX
='tpldir=Template.dir~
14729 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
14730 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
14731 archive_expsym_cmds_CXX
='tpldir=Template.dir~
14733 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
14734 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
14736 *) # Version 6 and above use weak symbols
14737 archive_cmds_CXX
='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
14738 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'
14742 hardcode_libdir_flag_spec_CXX
='${wl}--rpath ${wl}$libdir'
14743 export_dynamic_flag_spec_CXX
='${wl}--export-dynamic'
14744 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'
14748 archive_cmds_CXX
='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
14749 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'
14751 runpath_var
=LD_RUN_PATH
14752 hardcode_libdir_flag_spec_CXX
='-rpath $libdir'
14753 hardcode_libdir_separator_CXX
=:
14755 # Commands to make compiler produce verbose output that lists
14756 # what "hidden" libraries, object files and flags are used when
14757 # linking a shared library.
14759 # There doesn't appear to be a way to prevent this compiler from
14760 # explicitly linking system object files so we need to strip them
14761 # from the output so that they don't get included in the library
14763 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'
14765 xl
* | mpixl
* | bgxl
*)
14766 # IBM XL 8.0 on PPC, with GNU ld
14767 hardcode_libdir_flag_spec_CXX
='${wl}-rpath ${wl}$libdir'
14768 export_dynamic_flag_spec_CXX
='${wl}--export-dynamic'
14769 archive_cmds_CXX
='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14770 if test "x$supports_anon_versioning" = xyes
; then
14771 archive_expsym_cmds_CXX
='echo "{ global:" > $output_objdir/$libname.ver~
14772 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
14773 echo "local: *; };" >> $output_objdir/$libname.ver~
14774 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
14778 case `$CC -V 2>&1 | sed 5q` in
14781 no_undefined_flag_CXX
=' -zdefs'
14782 archive_cmds_CXX
='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14783 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'
14784 hardcode_libdir_flag_spec_CXX
='-R$libdir'
14785 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'
14786 compiler_needs_object_CXX
=yes
14788 # Not sure whether something based on
14789 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
14791 output_verbose_link_cmd
='func_echo_all'
14793 # Archives containing C++ object files must be created using
14794 # "CC -xar", where "CC" is the Sun C++ compiler. This is
14795 # necessary to make sure instantiated templates are included
14797 old_archive_cmds_CXX
='$CC -xar -o $oldlib $oldobjs'
14805 # FIXME: insert proper C++ library support
14810 # FIXME: insert proper C++ library support
14815 case $cc_basename in
14817 # FIXME: insert proper C++ library support
14821 # FIXME: insert proper C++ library support
14828 if echo __ELF__ |
$CC -E - |
$GREP __ELF__
>/dev
/null
; then
14829 archive_cmds_CXX
='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
14831 hardcode_libdir_flag_spec_CXX
='-R$libdir'
14832 hardcode_direct_CXX
=yes
14833 hardcode_shlibpath_var_CXX
=no
14835 # Workaround some broken pre-1.5 toolchains
14836 output_verbose_link_cmd
='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
14844 # C++ shared libraries are fairly broken
14849 if test -f /usr
/libexec
/ld.so
; then
14850 hardcode_direct_CXX
=yes
14851 hardcode_shlibpath_var_CXX
=no
14852 hardcode_direct_absolute_CXX
=yes
14853 archive_cmds_CXX
='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
14854 hardcode_libdir_flag_spec_CXX
='${wl}-rpath,$libdir'
14855 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" ||
test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14856 archive_expsym_cmds_CXX
='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
14857 export_dynamic_flag_spec_CXX
='${wl}-E'
14858 whole_archive_flag_spec_CXX
="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
14860 output_verbose_link_cmd
=func_echo_all
14866 osf3
* | osf4
* | osf5
*)
14867 case $cc_basename in
14869 # Kuck and Associates, Inc. (KAI) C++ Compiler
14871 # KCC will only create a shared library if the output file
14872 # ends with ".so" (or ".sl" for HP-UX), so rename the library
14873 # to its proper name (with version) after linking.
14874 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'
14876 hardcode_libdir_flag_spec_CXX
='${wl}-rpath,$libdir'
14877 hardcode_libdir_separator_CXX
=:
14879 # Archives containing C++ object files must be created using
14880 # the KAI C++ compiler.
14882 osf3
*) old_archive_cmds_CXX
='$CC -Bstatic -o $oldlib $oldobjs' ;;
14883 *) old_archive_cmds_CXX
='$CC -o $oldlib $oldobjs' ;;
14887 # Rational C++ 2.4.1
14888 # FIXME: insert proper C++ library support
14894 allow_undefined_flag_CXX
=' ${wl}-expect_unresolved ${wl}\*'
14895 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'
14896 hardcode_libdir_flag_spec_CXX
='${wl}-rpath ${wl}$libdir'
14899 allow_undefined_flag_CXX
=' -expect_unresolved \*'
14900 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'
14901 archive_expsym_cmds_CXX
='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
14902 echo "-hidden">> $lib.exp~
14903 $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~
14905 hardcode_libdir_flag_spec_CXX
='-rpath $libdir'
14909 hardcode_libdir_separator_CXX
=:
14911 # Commands to make compiler produce verbose output that lists
14912 # what "hidden" libraries, object files and flags are used when
14913 # linking a shared library.
14915 # There doesn't appear to be a way to prevent this compiler from
14916 # explicitly linking system object files so we need to strip them
14917 # from the output so that they don't get included in the library
14919 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"'
14922 if test "$GXX" = yes && test "$with_gnu_ld" = no
; then
14923 allow_undefined_flag_CXX
=' ${wl}-expect_unresolved ${wl}\*'
14926 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'
14929 archive_cmds_CXX
='$CC -shared $pic_flag -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'
14933 hardcode_libdir_flag_spec_CXX
='${wl}-rpath ${wl}$libdir'
14934 hardcode_libdir_separator_CXX
=:
14936 # Commands to make compiler produce verbose output that lists
14937 # what "hidden" libraries, object files and flags are used when
14938 # linking a shared library.
14939 output_verbose_link_cmd
='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
14942 # FIXME: insert proper C++ library support
14950 # FIXME: insert proper C++ library support
14955 case $cc_basename in
14958 # FIXME: insert proper C++ library support
14963 # FIXME: insert proper C++ library support
14967 # FIXME: insert proper C++ library support
14974 case $cc_basename in
14976 # Sun C++ 4.2, 5.x and Centerline C++
14977 archive_cmds_need_lc_CXX
=yes
14978 no_undefined_flag_CXX
=' -zdefs'
14979 archive_cmds_CXX
='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14980 archive_expsym_cmds_CXX
='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14981 $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'
14983 hardcode_libdir_flag_spec_CXX
='-R$libdir'
14984 hardcode_shlibpath_var_CXX
=no
14986 solaris2.
[0-5] | solaris2.
[0-5].
*) ;;
14988 # The compiler driver will combine and reorder linker options,
14989 # but understands `-z linker_flag'.
14990 # Supported since Solaris 2.6 (maybe 2.5.1?)
14991 whole_archive_flag_spec_CXX
='-z allextract$convenience -z defaultextract'
14994 link_all_deplibs_CXX
=yes
14996 output_verbose_link_cmd
='func_echo_all'
14998 # Archives containing C++ object files must be created using
14999 # "CC -xar", where "CC" is the Sun C++ compiler. This is
15000 # necessary to make sure instantiated templates are included
15002 old_archive_cmds_CXX
='$CC -xar -o $oldlib $oldobjs'
15005 # Green Hills C++ Compiler
15006 archive_cmds_CXX
='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
15008 # The C++ compiler must be used to create the archive.
15009 old_archive_cmds_CXX
='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
15012 # GNU C++ compiler with Solaris linker
15013 if test "$GXX" = yes && test "$with_gnu_ld" = no
; then
15014 no_undefined_flag_CXX
=' ${wl}-z ${wl}defs'
15015 if $CC --version |
$GREP -v '^2\.7' > /dev
/null
; then
15016 archive_cmds_CXX
='$CC -shared $pic_flag -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
15017 archive_expsym_cmds_CXX
='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
15018 $CC -shared $pic_flag -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
15020 # Commands to make compiler produce verbose output that lists
15021 # what "hidden" libraries, object files and flags are used when
15022 # linking a shared library.
15023 output_verbose_link_cmd
='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
15025 # g++ 2.7 appears to require `-G' NOT `-shared' on this
15027 archive_cmds_CXX
='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
15028 archive_expsym_cmds_CXX
='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
15029 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
15031 # Commands to make compiler produce verbose output that lists
15032 # what "hidden" libraries, object files and flags are used when
15033 # linking a shared library.
15034 output_verbose_link_cmd
='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
15037 hardcode_libdir_flag_spec_CXX
='${wl}-R $wl$libdir'
15039 solaris2.
[0-5] | solaris2.
[0-5].
*) ;;
15041 whole_archive_flag_spec_CXX
='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
15049 sysv4
*uw2
* | sysv5OpenUNIX
* | sysv5UnixWare7.
[01].
[10]* | unixware7
* | sco3.2v5.0.
[024]*)
15050 no_undefined_flag_CXX
='${wl}-z,text'
15051 archive_cmds_need_lc_CXX
=no
15052 hardcode_shlibpath_var_CXX
=no
15053 runpath_var
='LD_RUN_PATH'
15055 case $cc_basename in
15057 archive_cmds_CXX
='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15058 archive_expsym_cmds_CXX
='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15061 archive_cmds_CXX
='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15062 archive_expsym_cmds_CXX
='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15067 sysv5
* | sco3.2v5
* | sco5v6
*)
15068 # Note: We can NOT use -z defs as we might desire, because we do not
15069 # link with -lc, and that would cause any symbols used from libc to
15070 # always be unresolved, which means just about no library would
15071 # ever link correctly. If we're not using GNU ld we use -z text
15072 # though, which does catch some bad symbols but isn't as heavy-handed
15074 no_undefined_flag_CXX
='${wl}-z,text'
15075 allow_undefined_flag_CXX
='${wl}-z,nodefs'
15076 archive_cmds_need_lc_CXX
=no
15077 hardcode_shlibpath_var_CXX
=no
15078 hardcode_libdir_flag_spec_CXX
='${wl}-R,$libdir'
15079 hardcode_libdir_separator_CXX
=':'
15080 link_all_deplibs_CXX
=yes
15081 export_dynamic_flag_spec_CXX
='${wl}-Bexport'
15082 runpath_var
='LD_RUN_PATH'
15084 case $cc_basename in
15086 archive_cmds_CXX
='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15087 archive_expsym_cmds_CXX
='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15088 old_archive_cmds_CXX
='$CC -Tprelink_objects $oldobjs~
15089 '"$old_archive_cmds_CXX"
15090 reload_cmds_CXX
='$CC -Tprelink_objects $reload_objs~
15091 '"$reload_cmds_CXX"
15094 archive_cmds_CXX
='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15095 archive_expsym_cmds_CXX
='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15101 case $cc_basename in
15103 # NonStop-UX NCC 3.20
15104 # FIXME: insert proper C++ library support
15108 # FIXME: insert proper C++ library support
15115 # FIXME: insert proper C++ library support
15120 # FIXME: insert proper C++ library support
15125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
15126 $as_echo "$ld_shlibs_CXX" >&6; }
15127 test "$ld_shlibs_CXX" = no
&& can_build_shared
=no
15133 ## There is no encapsulation within the following macros, do not change
15134 ## the running order or otherwise move them around unless you know exactly
15135 ## what you are doing...
15136 # Dependencies to place before and after the object being linked:
15137 predep_objects_CXX
=
15138 postdep_objects_CXX
=
15141 compiler_lib_search_path_CXX
=
15143 cat > conftest.
$ac_ext <<_LT_EOF
15147 Foo (void) { a = 0; }
15154 _lt_libdeps_save_CFLAGS
=$CFLAGS
15155 case "$CC $CFLAGS " in #(
15156 *\
-flto*\
*) CFLAGS
="$CFLAGS -fno-lto" ;;
15157 *\
-fwhopr*\
*) CFLAGS
="$CFLAGS -fno-whopr" ;;
15158 *\
-fuse-linker-plugin*\
*) CFLAGS
="$CFLAGS -fno-use-linker-plugin" ;;
15161 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
15162 (eval $ac_compile) 2>&5
15164 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15165 test $ac_status = 0; }; then
15166 # Parse the compiler output and extract the necessary
15167 # objects, libraries and library flags.
15169 # Sentinel used to keep track of whether or not we are before
15170 # the conftest object file.
15171 pre_test_object_deps_done
=no
15173 for p
in `eval "$output_verbose_link_cmd"`; do
15174 case ${prev}${p} in
15177 # Some compilers place space between "-{L,R}" and the path.
15178 # Remove the space.
15179 if test $p = "-L" ||
15180 test $p = "-R"; then
15185 # Expand the sysroot to ease extracting the directories later.
15186 if test -z "$prev"; then
15188 -L*) func_stripname_cnf
'-L' '' "$p"; prev
=-L; p
=$func_stripname_result ;;
15189 -R*) func_stripname_cnf
'-R' '' "$p"; prev
=-R; p
=$func_stripname_result ;;
15190 -l*) func_stripname_cnf
'-l' '' "$p"; prev
=-l; p
=$func_stripname_result ;;
15194 =*) func_stripname_cnf
'=' '' "$p"; p
=$lt_sysroot$func_stripname_result ;;
15196 if test "$pre_test_object_deps_done" = no
; then
15199 # Internal compiler library paths should come after those
15200 # provided the user. The postdeps already come after the
15201 # user supplied libs so there is no need to process them.
15202 if test -z "$compiler_lib_search_path_CXX"; then
15203 compiler_lib_search_path_CXX
="${prev}${p}"
15205 compiler_lib_search_path_CXX
="${compiler_lib_search_path_CXX} ${prev}${p}"
15208 # The "-l" case would never come before the object being
15209 # linked, so don't bother handling this case.
15212 if test -z "$postdeps_CXX"; then
15213 postdeps_CXX
="${prev}${p}"
15215 postdeps_CXX
="${postdeps_CXX} ${prev}${p}"
15221 *.lto.
$objext) ;; # Ignore GCC LTO objects
15223 # This assumes that the test object file only shows up
15224 # once in the compiler output.
15225 if test "$p" = "conftest.$objext"; then
15226 pre_test_object_deps_done
=yes
15230 if test "$pre_test_object_deps_done" = no
; then
15231 if test -z "$predep_objects_CXX"; then
15232 predep_objects_CXX
="$p"
15234 predep_objects_CXX
="$predep_objects_CXX $p"
15237 if test -z "$postdep_objects_CXX"; then
15238 postdep_objects_CXX
="$p"
15240 postdep_objects_CXX
="$postdep_objects_CXX $p"
15245 *) ;; # Ignore the rest.
15253 echo "libtool.m4: error: problem compiling CXX test program"
15256 $RM -f confest.
$objext
15257 CFLAGS
=$_lt_libdeps_save_CFLAGS
15259 # PORTME: override above test on systems where it is broken
15262 # Interix 3.5 installs completely hosed .la files for C++, so rather than
15263 # hack all around it, let's just trust "g++" to DTRT.
15264 predep_objects_CXX
=
15265 postdep_objects_CXX
=
15270 case `$CC -V 2>&1 | sed 5q` in
15274 # The more standards-conforming stlport4 library is
15275 # incompatible with the Cstd library. Avoid specifying
15276 # it if it's in CXXFLAGS. Ignore libCrun as
15277 # -library=stlport4 depends on it.
15278 case " $CXX $CXXFLAGS " in
15279 *" -library=stlport4 "*)
15280 solaris_use_stlport4
=yes
15284 if test "$solaris_use_stlport4" != yes; then
15285 postdeps_CXX
='-library=Cstd -library=Crun'
15292 case $cc_basename in
15294 # The more standards-conforming stlport4 library is
15295 # incompatible with the Cstd library. Avoid specifying
15296 # it if it's in CXXFLAGS. Ignore libCrun as
15297 # -library=stlport4 depends on it.
15298 case " $CXX $CXXFLAGS " in
15299 *" -library=stlport4 "*)
15300 solaris_use_stlport4
=yes
15304 # Adding this requires a known-good setup of shared libraries for
15305 # Sun compiler versions before 5.6, else PIC objects from an old
15306 # archive will be linked into the output, leading to subtle bugs.
15307 if test "$solaris_use_stlport4" != yes; then
15308 postdeps_CXX
='-library=Cstd -library=Crun'
15316 case " $postdeps_CXX " in
15317 *" -lc "*) archive_cmds_need_lc_CXX
=no
;;
15319 compiler_lib_search_dirs_CXX
=
15320 if test -n "${compiler_lib_search_path_CXX}"; then
15321 compiler_lib_search_dirs_CXX
=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
15354 lt_prog_compiler_wl_CXX
=
15355 lt_prog_compiler_pic_CXX
=
15356 lt_prog_compiler_static_CXX
=
15359 # C++ specific cases for pic, static, wl, etc.
15360 if test "$GXX" = yes; then
15361 lt_prog_compiler_wl_CXX
='-Wl,'
15362 lt_prog_compiler_static_CXX
='-static'
15366 # All AIX code is PIC.
15367 if test "$host_cpu" = ia64
; then
15368 # AIX 5 now supports IA64 processor
15369 lt_prog_compiler_static_CXX
='-Bstatic'
15376 # see comment about AmigaOS4 .so support
15377 lt_prog_compiler_pic_CXX
='-fPIC'
15380 # FIXME: we need at least 68020 code to build shared libraries, but
15381 # adding the `-m68020' flag to GCC prevents building anything better,
15383 lt_prog_compiler_pic_CXX
='-m68020 -resident32 -malways-restore-a4'
15388 beos
* | irix5
* | irix6
* | nonstopux
* | osf3
* | osf4
* | osf5
*)
15389 # PIC is the default for these OSes.
15391 mingw
* | cygwin
* | os2
* | pw32
* | cegcc
*)
15392 # This hack is so that the source file can tell whether it is being
15393 # built for inclusion in a dll (and should export symbols for example).
15394 # Although the cygwin gcc ignores -fPIC, still need this for old-style
15395 # (--disable-auto-import) libraries
15396 lt_prog_compiler_pic_CXX
='-DDLL_EXPORT'
15398 darwin
* | rhapsody
*)
15399 # PIC is the default on this platform
15400 # Common symbols not allowed in MH_DYLIB files
15401 lt_prog_compiler_pic_CXX
='-fno-common'
15404 # DJGPP does not support shared libraries at all
15405 lt_prog_compiler_pic_CXX
=
15408 # PIC is the default for Haiku.
15409 # The "-static" flag exists, but is broken.
15410 lt_prog_compiler_static_CXX
=
15413 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
15414 # Instead, we relocate shared libraries at runtime.
15417 if test -d /usr
/nec
; then
15418 lt_prog_compiler_pic_CXX
=-Kconform_pic
15422 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
15423 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
15424 # sets the default TLS model and affects inlining.
15429 lt_prog_compiler_pic_CXX
='-fPIC'
15434 # QNX uses GNU C++, but need to define -shared option too, otherwise
15435 # it will coredump.
15436 lt_prog_compiler_pic_CXX
='-fPIC -shared'
15439 lt_prog_compiler_pic_CXX
='-fPIC'
15445 # All AIX code is PIC.
15446 if test "$host_cpu" = ia64
; then
15447 # AIX 5 now supports IA64 processor
15448 lt_prog_compiler_static_CXX
='-Bstatic'
15450 lt_prog_compiler_static_CXX
='-bnso -bI:/lib/syscalls.exp'
15454 case $cc_basename in
15456 # Green Hills C++ Compiler
15457 # _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"
15461 mingw
* | cygwin
* | os2
* | pw32
* | cegcc
*)
15462 # This hack is so that the source file can tell whether it is being
15463 # built for inclusion in a dll (and should export symbols for example).
15464 lt_prog_compiler_pic_CXX
='-DDLL_EXPORT'
15467 case $cc_basename in
15469 lt_prog_compiler_pic_CXX
='-KPIC'
15472 # Green Hills C++ Compiler
15473 lt_prog_compiler_pic_CXX
='-pic'
15479 freebsd
* | dragonfly
*)
15480 # FreeBSD uses GNU C++
15482 hpux9
* | hpux10
* | hpux11
*)
15483 case $cc_basename in
15485 lt_prog_compiler_wl_CXX
='-Wl,'
15486 lt_prog_compiler_static_CXX
='${wl}-a ${wl}archive'
15487 if test "$host_cpu" != ia64
; then
15488 lt_prog_compiler_pic_CXX
='+Z'
15492 lt_prog_compiler_wl_CXX
='-Wl,'
15493 lt_prog_compiler_static_CXX
='${wl}-a ${wl}archive'
15499 lt_prog_compiler_pic_CXX
='+Z'
15508 # This is c89, which is MS Visual C++ (no shared libs)
15509 # Anyone wants to do a port?
15511 irix5
* | irix6
* | nonstopux
*)
15512 case $cc_basename in
15514 lt_prog_compiler_wl_CXX
='-Wl,'
15515 lt_prog_compiler_static_CXX
='-non_shared'
15516 # CC pic flag -KPIC is the default.
15522 linux
* | k
*bsd
*-gnu | kopensolaris
*-gnu | gnu
*)
15523 case $cc_basename in
15526 lt_prog_compiler_wl_CXX
='--backend -Wl,'
15527 lt_prog_compiler_pic_CXX
='-fPIC'
15530 # old Intel C++ for x86_64 which still supported -KPIC.
15531 lt_prog_compiler_wl_CXX
='-Wl,'
15532 lt_prog_compiler_pic_CXX
='-KPIC'
15533 lt_prog_compiler_static_CXX
='-static'
15536 # Intel C++, used to be incompatible with GCC.
15537 # ICC 10 doesn't accept -KPIC any more.
15538 lt_prog_compiler_wl_CXX
='-Wl,'
15539 lt_prog_compiler_pic_CXX
='-fPIC'
15540 lt_prog_compiler_static_CXX
='-static'
15543 # Portland Group C++ compiler
15544 lt_prog_compiler_wl_CXX
='-Wl,'
15545 lt_prog_compiler_pic_CXX
='-fpic'
15546 lt_prog_compiler_static_CXX
='-Bstatic'
15550 # Make sure the PIC flag is empty. It appears that all Alpha
15551 # Linux and Compaq Tru64 Unix objects are PIC.
15552 lt_prog_compiler_pic_CXX
=
15553 lt_prog_compiler_static_CXX
='-non_shared'
15555 xlc
* | xlC
* | bgxl
[cC
]* | mpixl
[cC
]*)
15556 # IBM XL 8.0, 9.0 on PPC and BlueGene
15557 lt_prog_compiler_wl_CXX
='-Wl,'
15558 lt_prog_compiler_pic_CXX
='-qpic'
15559 lt_prog_compiler_static_CXX
='-qstaticlink'
15562 case `$CC -V 2>&1 | sed 5q` in
15565 lt_prog_compiler_pic_CXX
='-KPIC'
15566 lt_prog_compiler_static_CXX
='-Bstatic'
15567 lt_prog_compiler_wl_CXX
='-Qoption ld '
15578 case $cc_basename in
15580 lt_prog_compiler_pic_CXX
='-W c,exportall'
15586 netbsd
* | netbsdelf
*-gnu)
15589 # QNX uses GNU C++, but need to define -shared option too, otherwise
15590 # it will coredump.
15591 lt_prog_compiler_pic_CXX
='-fPIC -shared'
15593 osf3
* | osf4
* | osf5
*)
15594 case $cc_basename in
15596 lt_prog_compiler_wl_CXX
='--backend -Wl,'
15599 # Rational C++ 2.4.1
15600 lt_prog_compiler_pic_CXX
='-pic'
15603 # Digital/Compaq C++
15604 lt_prog_compiler_wl_CXX
='-Wl,'
15605 # Make sure the PIC flag is empty. It appears that all Alpha
15606 # Linux and Compaq Tru64 Unix objects are PIC.
15607 lt_prog_compiler_pic_CXX
=
15608 lt_prog_compiler_static_CXX
='-non_shared'
15617 case $cc_basename in
15619 # Sun C++ 4.2, 5.x and Centerline C++
15620 lt_prog_compiler_pic_CXX
='-KPIC'
15621 lt_prog_compiler_static_CXX
='-Bstatic'
15622 lt_prog_compiler_wl_CXX
='-Qoption ld '
15625 # Green Hills C++ Compiler
15626 lt_prog_compiler_pic_CXX
='-PIC'
15633 case $cc_basename in
15636 lt_prog_compiler_pic_CXX
='-pic'
15637 lt_prog_compiler_static_CXX
='-Bstatic'
15641 lt_prog_compiler_pic_CXX
='-pic'
15647 sysv5
* | unixware
* | sco3.2v5
* | sco5v6
* | OpenUNIX
*)
15648 case $cc_basename in
15650 lt_prog_compiler_wl_CXX
='-Wl,'
15651 lt_prog_compiler_pic_CXX
='-KPIC'
15652 lt_prog_compiler_static_CXX
='-Bstatic'
15657 case $cc_basename in
15659 # NonStop-UX NCC 3.20
15660 lt_prog_compiler_pic_CXX
='-KPIC'
15669 lt_prog_compiler_can_build_shared_CXX
=no
15675 # For platforms which do not support PIC, -DPIC is meaningless:
15677 lt_prog_compiler_pic_CXX
=
15680 lt_prog_compiler_pic_CXX
="$lt_prog_compiler_pic_CXX -DPIC"
15684 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
15685 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
15686 if ${lt_cv_prog_compiler_pic_CXX+:} false
; then :
15687 $as_echo_n "(cached) " >&6
15689 lt_cv_prog_compiler_pic_CXX
=$lt_prog_compiler_pic_CXX
15691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_CXX" >&5
15692 $as_echo "$lt_cv_prog_compiler_pic_CXX" >&6; }
15693 lt_prog_compiler_pic_CXX
=$lt_cv_prog_compiler_pic_CXX
15696 # Check to make sure the PIC flag actually works.
15698 if test -n "$lt_prog_compiler_pic_CXX"; then
15699 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
15700 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
15701 if ${lt_cv_prog_compiler_pic_works_CXX+:} false
; then :
15702 $as_echo_n "(cached) " >&6
15704 lt_cv_prog_compiler_pic_works_CXX
=no
15705 ac_outfile
=conftest.
$ac_objext
15706 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
15707 lt_compiler_flag
="$lt_prog_compiler_pic_CXX -DPIC"
15708 # Insert the option either (1) after the last *FLAGS variable, or
15709 # (2) before a word containing "conftest.", or (3) at the end.
15710 # Note that $ac_compile itself does not contain backslashes and begins
15711 # with a dollar sign (not a hyphen), so the echo should work correctly.
15712 # The option is referenced via a variable to avoid confusing sed.
15713 lt_compile
=`echo "$ac_compile" | $SED \
15714 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15715 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15716 -e 's:$: $lt_compiler_flag:'`
15717 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15718 (eval "$lt_compile" 2>conftest.err
)
15720 cat conftest.err
>&5
15721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15722 if (exit $ac_status) && test -s "$ac_outfile"; then
15723 # The compiler can only warn and ignore the option if not recognized
15724 # So say no if there are warnings other than the usual output.
15725 $ECHO "$_lt_compiler_boilerplate" |
$SED '/^$/d' >conftest.exp
15726 $SED '/^$/d; /^ *+/d' conftest.err
>conftest.er2
15727 if test ! -s conftest.er2 ||
diff conftest.exp conftest.er2
>/dev
/null
; then
15728 lt_cv_prog_compiler_pic_works_CXX
=yes
15734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
15735 $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
15737 if test x
"$lt_cv_prog_compiler_pic_works_CXX" = xyes
; then
15738 case $lt_prog_compiler_pic_CXX in
15740 *) lt_prog_compiler_pic_CXX
=" $lt_prog_compiler_pic_CXX" ;;
15743 lt_prog_compiler_pic_CXX
=
15744 lt_prog_compiler_can_build_shared_CXX
=no
15754 # Check to make sure the static flag actually works.
15756 wl
=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag
=\"$lt_prog_compiler_static_CXX\"
15757 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
15758 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
15759 if ${lt_cv_prog_compiler_static_works_CXX+:} false
; then :
15760 $as_echo_n "(cached) " >&6
15762 lt_cv_prog_compiler_static_works_CXX
=no
15763 save_LDFLAGS
="$LDFLAGS"
15764 LDFLAGS
="$LDFLAGS $lt_tmp_static_flag"
15765 echo "$lt_simple_link_test_code" > conftest.
$ac_ext
15766 if (eval $ac_link 2>conftest.err
) && test -s conftest
$ac_exeext; then
15767 # The linker can only warn and ignore the option if not recognized
15768 # So say no if there are warnings
15769 if test -s conftest.err
; then
15770 # Append any errors to the config.log.
15771 cat conftest.err
1>&5
15772 $ECHO "$_lt_linker_boilerplate" |
$SED '/^$/d' > conftest.exp
15773 $SED '/^$/d; /^ *+/d' conftest.err
>conftest.er2
15774 if diff conftest.exp conftest.er2
>/dev
/null
; then
15775 lt_cv_prog_compiler_static_works_CXX
=yes
15778 lt_cv_prog_compiler_static_works_CXX
=yes
15782 LDFLAGS
="$save_LDFLAGS"
15785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
15786 $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
15788 if test x
"$lt_cv_prog_compiler_static_works_CXX" = xyes
; then
15791 lt_prog_compiler_static_CXX
=
15797 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
15798 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
15799 if ${lt_cv_prog_compiler_c_o_CXX+:} false
; then :
15800 $as_echo_n "(cached) " >&6
15802 lt_cv_prog_compiler_c_o_CXX
=no
15803 $RM -r conftest
2>/dev
/null
15807 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
15809 lt_compiler_flag
="-o out/conftest2.$ac_objext"
15810 # Insert the option either (1) after the last *FLAGS variable, or
15811 # (2) before a word containing "conftest.", or (3) at the end.
15812 # Note that $ac_compile itself does not contain backslashes and begins
15813 # with a dollar sign (not a hyphen), so the echo should work correctly.
15814 lt_compile
=`echo "$ac_compile" | $SED \
15815 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15816 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15817 -e 's:$: $lt_compiler_flag:'`
15818 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15819 (eval "$lt_compile" 2>out
/conftest.err
)
15821 cat out
/conftest.err
>&5
15822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15823 if (exit $ac_status) && test -s out
/conftest2.
$ac_objext
15825 # The compiler can only warn and ignore the option if not recognized
15826 # So say no if there are warnings
15827 $ECHO "$_lt_compiler_boilerplate" |
$SED '/^$/d' > out
/conftest.exp
15828 $SED '/^$/d; /^ *+/d' out
/conftest.err
>out
/conftest.er2
15829 if test ! -s out
/conftest.er2 ||
diff out
/conftest.exp out
/conftest.er2
>/dev
/null
; then
15830 lt_cv_prog_compiler_c_o_CXX
=yes
15835 # SGI C++ compiler will create directory out/ii_files/ for
15836 # template instantiation
15837 test -d out
/ii_files
&& $RM out
/ii_files
/* && rmdir out
/ii_files
15838 $RM out
/* && rmdir out
15844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
15845 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
15849 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
15850 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
15851 if ${lt_cv_prog_compiler_c_o_CXX+:} false
; then :
15852 $as_echo_n "(cached) " >&6
15854 lt_cv_prog_compiler_c_o_CXX
=no
15855 $RM -r conftest
2>/dev
/null
15859 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
15861 lt_compiler_flag
="-o out/conftest2.$ac_objext"
15862 # Insert the option either (1) after the last *FLAGS variable, or
15863 # (2) before a word containing "conftest.", or (3) at the end.
15864 # Note that $ac_compile itself does not contain backslashes and begins
15865 # with a dollar sign (not a hyphen), so the echo should work correctly.
15866 lt_compile
=`echo "$ac_compile" | $SED \
15867 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15868 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15869 -e 's:$: $lt_compiler_flag:'`
15870 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15871 (eval "$lt_compile" 2>out
/conftest.err
)
15873 cat out
/conftest.err
>&5
15874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15875 if (exit $ac_status) && test -s out
/conftest2.
$ac_objext
15877 # The compiler can only warn and ignore the option if not recognized
15878 # So say no if there are warnings
15879 $ECHO "$_lt_compiler_boilerplate" |
$SED '/^$/d' > out
/conftest.exp
15880 $SED '/^$/d; /^ *+/d' out
/conftest.err
>out
/conftest.er2
15881 if test ! -s out
/conftest.er2 ||
diff out
/conftest.exp out
/conftest.er2
>/dev
/null
; then
15882 lt_cv_prog_compiler_c_o_CXX
=yes
15887 # SGI C++ compiler will create directory out/ii_files/ for
15888 # template instantiation
15889 test -d out
/ii_files
&& $RM out
/ii_files
/* && rmdir out
/ii_files
15890 $RM out
/* && rmdir out
15896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
15897 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
15902 hard_links
="nottested"
15903 if test "$lt_cv_prog_compiler_c_o_CXX" = no
&& test "$need_locks" != no
; then
15904 # do not overwrite the value of need_locks provided by the user
15905 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
15906 $as_echo_n "checking if we can lock with hard links... " >&6; }
15909 ln conftest.a conftest.b
2>/dev
/null
&& hard_links
=no
15911 ln conftest.a conftest.b
2>&5 || hard_links
=no
15912 ln conftest.a conftest.b
2>/dev
/null
&& hard_links
=no
15913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
15914 $as_echo "$hard_links" >&6; }
15915 if test "$hard_links" = no
; then
15916 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
15917 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
15926 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15927 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
15929 export_symbols_cmds_CXX
='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15930 exclude_expsyms_CXX
='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
15933 # If we're using GNU nm, then we don't want the "-C" option.
15934 # -C means demangle to AIX nm, but means don't demangle with GNU nm
15935 # Also, AIX nm treats weak defined symbols like other global defined
15936 # symbols, whereas GNU nm marks them as "W".
15937 if $NM -V 2>&1 |
$GREP 'GNU' > /dev
/null
; then
15938 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'
15940 export_symbols_cmds_CXX
='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
15944 export_symbols_cmds_CXX
="$ltdll_cmds"
15946 cygwin
* | mingw
* | cegcc
*)
15947 case $cc_basename in
15949 exclude_expsyms_CXX
='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
15952 export_symbols_cmds_CXX
='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols'
15953 exclude_expsyms_CXX
='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
15957 linux
* | k
*bsd
*-gnu | gnu
*)
15958 link_all_deplibs_CXX
=no
15961 export_symbols_cmds_CXX
='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
15966 $as_echo "$ld_shlibs_CXX" >&6; }
15967 test "$ld_shlibs_CXX" = no
&& can_build_shared
=no
15969 with_gnu_ld_CXX
=$with_gnu_ld
15977 # Do we need to explicitly link libc?
15979 case "x$archive_cmds_need_lc_CXX" in
15981 # Assume -lc should be added
15982 archive_cmds_need_lc_CXX
=yes
15984 if test "$enable_shared" = yes && test "$GCC" = yes; then
15985 case $archive_cmds_CXX in
15987 # FIXME: we may have to deal with multi-command sequences.
15990 # Test whether the compiler implicitly links with -lc since on some
15991 # systems, -lgcc has to come before -lc. If gcc already passes -lc
15992 # to ld, don't add -lc before -lgcc.
15993 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
15994 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
15995 if ${lt_cv_archive_cmds_need_lc_CXX+:} false
; then :
15996 $as_echo_n "(cached) " >&6
15999 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
16001 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
16002 (eval $ac_compile) 2>&5
16004 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16005 test $ac_status = 0; } 2>conftest.err
; then
16008 libobjs
=conftest.
$ac_objext
16010 wl
=$lt_prog_compiler_wl_CXX
16011 pic_flag
=$lt_prog_compiler_pic_CXX
16017 lt_save_allow_undefined_flag
=$allow_undefined_flag_CXX
16018 allow_undefined_flag_CXX
=
16019 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
16020 (eval $archive_cmds_CXX 2\
>\
&1 \|
$GREP \" -lc \" \
>/dev
/null
2\
>\
&1) 2>&5
16022 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16023 test $ac_status = 0; }
16025 lt_cv_archive_cmds_need_lc_CXX
=no
16027 lt_cv_archive_cmds_need_lc_CXX
=yes
16029 allow_undefined_flag_CXX
=$lt_save_allow_undefined_flag
16031 cat conftest.err
1>&5
16036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
16037 $as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
16038 archive_cmds_need_lc_CXX
=$lt_cv_archive_cmds_need_lc_CXX
16106 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
16107 $as_echo_n "checking dynamic linker characteristics... " >&6; }
16109 library_names_spec
=
16110 libname_spec
='lib$name'
16114 postuninstall_cmds
=
16118 shlibpath_overrides_runpath
=unknown
16120 dynamic_linker
="$host_os ld.so"
16121 sys_lib_dlsearch_path_spec
="/lib /usr/lib"
16122 need_lib_prefix
=unknown
16123 hardcode_into_libs
=no
16125 # when you set need_version to no, make sure it does not cause -set_version
16126 # flags to be left without arguments
16127 need_version
=unknown
16131 version_type
=linux
# correct to gnu/linux during the next big refactor
16132 library_names_spec
='${libname}${release}${shared_ext}$versuffix $libname.a'
16133 shlibpath_var
=LIBPATH
16135 # AIX 3 has no versioning support, so we append a major version to the name.
16136 soname_spec
='${libname}${release}${shared_ext}$major'
16140 version_type
=linux
# correct to gnu/linux during the next big refactor
16143 hardcode_into_libs
=yes
16144 if test "$host_cpu" = ia64
; then
16145 # AIX 5 supports IA64
16146 library_names_spec
='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
16147 shlibpath_var
=LD_LIBRARY_PATH
16149 # With GCC up to 2.95.x, collect2 would create an import file
16150 # for dependence libraries. The import file would start with
16151 # the line `#! .'. This would cause the generated library to
16152 # depend on `.', always an invalid library. This was fixed in
16153 # development snapshots of GCC prior to 3.0.
16155 aix4 | aix4.
[01] | aix4.
[01].
*)
16156 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
16158 echo '#endif'; } |
${CC} -E - |
$GREP yes > /dev
/null
; then
16161 can_build_shared
=no
16165 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
16166 # soname into executable. Probably we can add versioning support to
16167 # collect2, so additional links can be useful in future.
16168 if test "$aix_use_runtimelinking" = yes; then
16169 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
16170 # instead of lib<name>.a to let people know that these are not
16171 # typical AIX shared libraries.
16172 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16174 # We preserve .a as extension for shared libraries through AIX4.2
16175 # and later when we are not doing run time linking.
16176 library_names_spec
='${libname}${release}.a $libname.a'
16177 soname_spec
='${libname}${release}${shared_ext}$major'
16179 shlibpath_var
=LIBPATH
16186 # Since July 2007 AmigaOS4 officially supports .so libraries.
16187 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
16188 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16191 library_names_spec
='$libname.ixlibrary $libname.a'
16192 # Create ${libname}_ixlibrary.a entries in /sys/libs.
16193 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'
16199 library_names_spec
='${libname}${shared_ext}'
16200 dynamic_linker
="$host_os ld.so"
16201 shlibpath_var
=LIBRARY_PATH
16205 version_type
=linux
# correct to gnu/linux during the next big refactor
16207 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16208 soname_spec
='${libname}${release}${shared_ext}$major'
16209 finish_cmds
='PATH="\$PATH:/sbin" ldconfig $libdir'
16210 shlibpath_var
=LD_LIBRARY_PATH
16211 sys_lib_search_path_spec
="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
16212 sys_lib_dlsearch_path_spec
="/shlib /usr/lib /usr/local/lib"
16213 # the default ld.so.conf also contains /usr/contrib/lib and
16214 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
16215 # libtool to hard-code these into programs
16218 cygwin
* | mingw
* | pw32
* | cegcc
*)
16219 version_type
=windows
16224 case $GCC,$cc_basename in
16227 library_names_spec
='$libname.dll.a'
16228 # DLL is installed to $(libdir)/../bin by postinstall_cmds
16229 postinstall_cmds
='base_file=`basename \${file}`~
16230 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
16231 dldir=$destdir/`dirname \$dlpath`~
16232 test -d \$dldir || mkdir -p \$dldir~
16233 $install_prog $dir/$dlname \$dldir/$dlname~
16234 chmod a+x \$dldir/$dlname~
16235 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
16236 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
16238 postuninstall_cmds
='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16239 dlpath=$dir/\$dldll~
16241 shlibpath_overrides_runpath
=yes
16245 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
16246 soname_spec
='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16250 # MinGW DLLs use traditional 'lib' prefix
16251 soname_spec
='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16254 # pw32 DLLs use 'pw' prefix rather than 'lib'
16255 library_names_spec
='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16258 dynamic_linker
='Win32 ld.exe'
16263 libname_spec
='$name'
16264 soname_spec
='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16265 library_names_spec
='${libname}.dll.lib'
16269 sys_lib_search_path_spec
=
16272 for lt_path
in $LIB
16275 # Let DOS variable expansion print the short 8.3 style file name.
16276 lt_path
=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
16277 sys_lib_search_path_spec
="$sys_lib_search_path_spec $lt_path"
16280 # Convert to MSYS style.
16281 sys_lib_search_path_spec
=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
16284 # Convert to unix form, then to dos form, then back to unix form
16285 # but this time dos style (no spaces!) so that the unix form looks
16286 # like /cygdrive/c/PROGRA~1:/cygdr...
16287 sys_lib_search_path_spec
=`cygpath --path --unix "$LIB"`
16288 sys_lib_search_path_spec
=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
16289 sys_lib_search_path_spec
=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16292 sys_lib_search_path_spec
="$LIB"
16293 if $ECHO "$sys_lib_search_path_spec" |
$GREP ';[c-zC-Z]:/' >/dev
/null
; then
16294 # It is most probably a Windows format PATH.
16295 sys_lib_search_path_spec
=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16297 sys_lib_search_path_spec
=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16299 # FIXME: find the short name or the path components, as spaces are
16300 # common. (e.g. "Program Files" -> "PROGRA~1")
16304 # DLL is installed to $(libdir)/../bin by postinstall_cmds
16305 postinstall_cmds
='base_file=`basename \${file}`~
16306 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
16307 dldir=$destdir/`dirname \$dlpath`~
16308 test -d \$dldir || mkdir -p \$dldir~
16309 $install_prog $dir/$dlname \$dldir/$dlname'
16310 postuninstall_cmds
='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16311 dlpath=$dir/\$dldll~
16313 shlibpath_overrides_runpath
=yes
16314 dynamic_linker
='Win32 link.exe'
16318 # Assume MSVC wrapper
16319 library_names_spec
='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
16320 dynamic_linker
='Win32 ld.exe'
16323 # FIXME: first we should search . and the directory the executable is in
16327 darwin
* | rhapsody
*)
16328 dynamic_linker
="$host_os dyld"
16329 version_type
=darwin
16332 library_names_spec
='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
16333 soname_spec
='${libname}${release}${major}$shared_ext'
16334 shlibpath_overrides_runpath
=yes
16335 shlibpath_var
=DYLD_LIBRARY_PATH
16336 shrext_cmds
='`test .$module = .yes && echo .so || echo .dylib`'
16338 sys_lib_dlsearch_path_spec
='/usr/local/lib /lib /usr/lib'
16342 version_type
=linux
# correct to gnu/linux during the next big refactor
16345 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
16346 soname_spec
='${libname}${release}${shared_ext}$major'
16347 shlibpath_var
=LD_LIBRARY_PATH
16350 freebsd
* | dragonfly
*)
16351 # DragonFly does not have aout. When/if they implement a new
16352 # versioning mechanism, adjust this.
16353 if test -x /usr
/bin
/objformat
; then
16354 objformat
=`/usr/bin/objformat`
16357 freebsd
[23].
*) objformat
=aout
;;
16358 *) objformat
=elf
;;
16361 version_type
=freebsd-
$objformat
16362 case $version_type in
16364 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16369 library_names_spec
='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
16373 shlibpath_var
=LD_LIBRARY_PATH
16376 shlibpath_overrides_runpath
=yes
16378 freebsd3.
[01]* | freebsdelf3.
[01]*)
16379 shlibpath_overrides_runpath
=yes
16380 hardcode_into_libs
=yes
16382 freebsd3.
[2-9]* | freebsdelf3.
[2-9]* | \
16383 freebsd4.
[0-5] | freebsdelf4.
[0-5] | freebsd4.1
.1 | freebsdelf4.1
.1)
16384 shlibpath_overrides_runpath
=no
16385 hardcode_into_libs
=yes
16387 *) # from 4.6 on, and DragonFly
16388 shlibpath_overrides_runpath
=yes
16389 hardcode_into_libs
=yes
16395 version_type
=linux
# correct to gnu/linux during the next big refactor
16398 dynamic_linker
="$host_os runtime_loader"
16399 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
16400 soname_spec
='${libname}${release}${shared_ext}$major'
16401 shlibpath_var
=LIBRARY_PATH
16402 shlibpath_overrides_runpath
=yes
16403 sys_lib_dlsearch_path_spec
='/boot/home/config/lib /boot/common/lib /boot/system/lib'
16404 hardcode_into_libs
=yes
16407 hpux9
* | hpux10
* | hpux11
*)
16408 # Give a soname corresponding to the major version so that dld.sl refuses to
16409 # link against other versions.
16416 hardcode_into_libs
=yes
16417 dynamic_linker
="$host_os dld.so"
16418 shlibpath_var
=LD_LIBRARY_PATH
16419 shlibpath_overrides_runpath
=yes # Unless +noenvvar is specified.
16420 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16421 soname_spec
='${libname}${release}${shared_ext}$major'
16422 if test "X$HPUX_IA64_MODE" = X32
; then
16423 sys_lib_search_path_spec
="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
16425 sys_lib_search_path_spec
="/usr/lib/hpux64 /usr/local/lib/hpux64"
16427 sys_lib_dlsearch_path_spec
=$sys_lib_search_path_spec
16431 hardcode_into_libs
=yes
16432 dynamic_linker
="$host_os dld.sl"
16433 shlibpath_var
=LD_LIBRARY_PATH
# How should we handle SHLIB_PATH
16434 shlibpath_overrides_runpath
=yes # Unless +noenvvar is specified.
16435 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16436 soname_spec
='${libname}${release}${shared_ext}$major'
16437 sys_lib_search_path_spec
="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
16438 sys_lib_dlsearch_path_spec
=$sys_lib_search_path_spec
16442 dynamic_linker
="$host_os dld.sl"
16443 shlibpath_var
=SHLIB_PATH
16444 shlibpath_overrides_runpath
=no
# +s is required to enable SHLIB_PATH
16445 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16446 soname_spec
='${libname}${release}${shared_ext}$major'
16449 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
16450 postinstall_cmds
='chmod 555 $lib'
16451 # or fails outright, so override atomically:
16452 install_override_mode
=555
16456 version_type
=linux
# correct to gnu/linux during the next big refactor
16459 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16460 soname_spec
='${libname}${release}${shared_ext}$major'
16461 dynamic_linker
='Interix 3.x ld.so.1 (PE, like ELF)'
16462 shlibpath_var
=LD_LIBRARY_PATH
16463 shlibpath_overrides_runpath
=no
16464 hardcode_into_libs
=yes
16467 irix5
* | irix6
* | nonstopux
*)
16469 nonstopux
*) version_type
=nonstopux
;;
16471 if test "$lt_cv_prog_gnu_ld" = yes; then
16472 version_type
=linux
# correct to gnu/linux during the next big refactor
16479 soname_spec
='${libname}${release}${shared_ext}$major'
16480 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
16482 irix5
* | nonstopux
*)
16483 libsuff
= shlibsuff
=
16486 case $LD in # libtool.m4 will add one of these switches to LD
16487 *-32|
*"-32 "|
*-melf32bsmip|
*"-melf32bsmip ")
16488 libsuff
= shlibsuff
= libmagic
=32-bit;;
16489 *-n32|
*"-n32 "|
*-melf32bmipn32|
*"-melf32bmipn32 ")
16490 libsuff
=32 shlibsuff
=N32 libmagic
=N32
;;
16491 *-64|
*"-64 "|
*-melf64bmip|
*"-melf64bmip ")
16492 libsuff
=64 shlibsuff
=64 libmagic
=64-bit;;
16493 *) libsuff
= shlibsuff
= libmagic
=never-match
;;
16497 shlibpath_var
=LD_LIBRARY
${shlibsuff}_PATH
16498 shlibpath_overrides_runpath
=no
16499 sys_lib_search_path_spec
="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
16500 sys_lib_dlsearch_path_spec
="/usr/lib${libsuff} /lib${libsuff}"
16501 hardcode_into_libs
=yes
16504 # No shared lib support for Linux oldld, aout, or coff.
16505 linux
*oldld
* | linux
*aout
* | linux
*coff
*)
16509 # This must be glibc/ELF.
16510 linux
* | k
*bsd
*-gnu | kopensolaris
*-gnu | gnu
*)
16511 version_type
=linux
# correct to gnu/linux during the next big refactor
16514 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16515 soname_spec
='${libname}${release}${shared_ext}$major'
16516 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -n $libdir'
16517 shlibpath_var
=LD_LIBRARY_PATH
16518 shlibpath_overrides_runpath
=no
16520 # Some binutils ld are patched to set DT_RUNPATH
16521 if ${lt_cv_shlibpath_overrides_runpath+:} false
; then :
16522 $as_echo_n "(cached) " >&6
16524 lt_cv_shlibpath_overrides_runpath
=no
16525 save_LDFLAGS
=$LDFLAGS
16526 save_libdir
=$libdir
16527 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
16528 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
16529 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16530 /* end confdefs.h. */
16540 if ac_fn_cxx_try_link
"$LINENO"; then :
16541 if ($OBJDUMP -p conftest
$ac_exeext) 2>/dev
/null |
grep "RUNPATH.*$libdir" >/dev
/null
; then :
16542 lt_cv_shlibpath_overrides_runpath
=yes
16545 rm -f core conftest.err conftest.
$ac_objext \
16546 conftest
$ac_exeext conftest.
$ac_ext
16547 LDFLAGS
=$save_LDFLAGS
16548 libdir
=$save_libdir
16552 shlibpath_overrides_runpath
=$lt_cv_shlibpath_overrides_runpath
16554 # This implies no fast_install, which is unacceptable.
16555 # Some rework will be needed to allow for fast_install
16556 # before this can be enabled.
16557 hardcode_into_libs
=yes
16559 # Append ld.so.conf contents to the search path
16560 if test -f /etc
/ld.so.conf
; then
16561 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' ' '`
16562 sys_lib_dlsearch_path_spec
="/lib /usr/lib $lt_ld_extra"
16565 # We used to test for /lib/ld.so.1 and disable shared libraries on
16566 # powerpc, because MkLinux only supported shared libraries with the
16567 # GNU dynamic linker. Since this was broken with cross compilers,
16568 # most powerpc-linux boxes support dynamic linking these days and
16569 # people can always --disable-shared, the test was removed, and we
16570 # assume the GNU/Linux dynamic linker is in use.
16571 dynamic_linker
='GNU/Linux ld.so'
16578 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16579 soname_spec
='${libname}${release}${shared_ext}$major'
16580 shlibpath_var
=LD_LIBRARY_PATH
16581 shlibpath_overrides_runpath
=no
16582 hardcode_into_libs
=yes
16583 dynamic_linker
='NetBSD ld.elf_so'
16590 if echo __ELF__ |
$CC -E - |
$GREP __ELF__
>/dev
/null
; then
16591 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16592 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16593 dynamic_linker
='NetBSD (a.out) ld.so'
16595 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16596 soname_spec
='${libname}${release}${shared_ext}$major'
16597 dynamic_linker
='NetBSD ld.elf_so'
16599 shlibpath_var
=LD_LIBRARY_PATH
16600 shlibpath_overrides_runpath
=yes
16601 hardcode_into_libs
=yes
16605 version_type
=linux
# correct to gnu/linux during the next big refactor
16606 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16607 shlibpath_var
=LD_LIBRARY_PATH
16608 shlibpath_overrides_runpath
=yes
16615 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16616 soname_spec
='${libname}${release}${shared_ext}$major'
16617 shlibpath_var
=LD_LIBRARY_PATH
16618 shlibpath_overrides_runpath
=no
16619 hardcode_into_libs
=yes
16620 dynamic_linker
='ldqnx.so'
16625 sys_lib_dlsearch_path_spec
="/usr/lib"
16627 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
16629 openbsd3.3 | openbsd3.3.
*) need_version
=yes ;;
16630 *) need_version
=no
;;
16632 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16633 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16634 shlibpath_var
=LD_LIBRARY_PATH
16635 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" ||
test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16637 openbsd2.
[89] | openbsd2.
[89].
*)
16638 shlibpath_overrides_runpath
=no
16641 shlibpath_overrides_runpath
=yes
16645 shlibpath_overrides_runpath
=yes
16650 libname_spec
='$name'
16653 library_names_spec
='$libname${shared_ext} $libname.a'
16654 dynamic_linker
='OS/2 ld.exe'
16655 shlibpath_var
=LIBPATH
16658 osf3
* | osf4
* | osf5
*)
16662 soname_spec
='${libname}${release}${shared_ext}$major'
16663 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16664 shlibpath_var
=LD_LIBRARY_PATH
16665 sys_lib_search_path_spec
="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
16666 sys_lib_dlsearch_path_spec
="$sys_lib_search_path_spec"
16674 version_type
=linux
# correct to gnu/linux during the next big refactor
16677 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16678 soname_spec
='${libname}${release}${shared_ext}$major'
16679 shlibpath_var
=LD_LIBRARY_PATH
16680 shlibpath_overrides_runpath
=yes
16681 hardcode_into_libs
=yes
16682 # ldd complains unless libraries are executable
16683 postinstall_cmds
='chmod +x $lib'
16688 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16689 finish_cmds
='PATH="\$PATH:/usr/etc" ldconfig $libdir'
16690 shlibpath_var
=LD_LIBRARY_PATH
16691 shlibpath_overrides_runpath
=yes
16692 if test "$with_gnu_ld" = yes; then
16699 version_type
=linux
# correct to gnu/linux during the next big refactor
16700 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16701 soname_spec
='${libname}${release}${shared_ext}$major'
16702 shlibpath_var
=LD_LIBRARY_PATH
16703 case $host_vendor in
16705 shlibpath_overrides_runpath
=no
16707 runpath_var
=LD_RUN_PATH
16715 shlibpath_overrides_runpath
=no
16716 sys_lib_search_path_spec
='/lib /usr/lib /usr/ccs/lib'
16722 if test -d /usr
/nec
;then
16723 version_type
=linux
# correct to gnu/linux during the next big refactor
16724 library_names_spec
='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
16725 soname_spec
='$libname${shared_ext}.$major'
16726 shlibpath_var
=LD_LIBRARY_PATH
16730 sysv5
* | sco3.2v5
* | sco5v6
* | unixware
* | OpenUNIX
* | sysv4
*uw2
*)
16731 version_type
=freebsd-elf
16734 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16735 soname_spec
='${libname}${release}${shared_ext}$major'
16736 shlibpath_var
=LD_LIBRARY_PATH
16737 shlibpath_overrides_runpath
=yes
16738 hardcode_into_libs
=yes
16739 if test "$with_gnu_ld" = yes; then
16740 sys_lib_search_path_spec
='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
16742 sys_lib_search_path_spec
='/usr/ccs/lib /usr/lib'
16745 sys_lib_search_path_spec
="$sys_lib_search_path_spec /lib"
16749 sys_lib_dlsearch_path_spec
='/usr/lib'
16753 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
16754 version_type
=linux
# correct to gnu/linux during the next big refactor
16757 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16758 shlibpath_var
=LD_LIBRARY_PATH
16759 shlibpath_overrides_runpath
=no
16760 hardcode_into_libs
=yes
16764 version_type
=linux
# correct to gnu/linux during the next big refactor
16765 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16766 soname_spec
='${libname}${release}${shared_ext}$major'
16767 shlibpath_var
=LD_LIBRARY_PATH
16774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
16775 $as_echo "$dynamic_linker" >&6; }
16776 test "$dynamic_linker" = no
&& can_build_shared
=no
16778 variables_saved_for_relink
="PATH $shlibpath_var $runpath_var"
16779 if test "$GCC" = yes; then
16780 variables_saved_for_relink
="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16783 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
16784 sys_lib_search_path_spec
="$lt_cv_sys_lib_search_path_spec"
16786 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
16787 sys_lib_dlsearch_path_spec
="$lt_cv_sys_lib_dlsearch_path_spec"
16827 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
16828 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
16829 hardcode_action_CXX
=
16830 if test -n "$hardcode_libdir_flag_spec_CXX" ||
16831 test -n "$runpath_var_CXX" ||
16832 test "X$hardcode_automatic_CXX" = "Xyes" ; then
16834 # We can hardcode non-existent directories.
16835 if test "$hardcode_direct_CXX" != no
&&
16836 # If the only mechanism to avoid hardcoding is shlibpath_var, we
16837 # have to relink, otherwise we might link with an installed library
16838 # when we should be linking with a yet-to-be-installed one
16839 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
16840 test "$hardcode_minus_L_CXX" != no
; then
16841 # Linking always hardcodes the temporary library directory.
16842 hardcode_action_CXX
=relink
16844 # We can link without hardcoding, and we can hardcode nonexisting dirs.
16845 hardcode_action_CXX
=immediate
16848 # We cannot hardcode anything, or else we can only hardcode existing
16850 hardcode_action_CXX
=unsupported
16852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
16853 $as_echo "$hardcode_action_CXX" >&6; }
16855 if test "$hardcode_action_CXX" = relink ||
16856 test "$inherit_rpath_CXX" = yes; then
16857 # Fast installation is not supported
16858 enable_fast_install
=no
16859 elif test "$shlibpath_overrides_runpath" = yes ||
16860 test "$enable_shared" = no
; then
16861 # Fast installation is not necessary
16862 enable_fast_install
=needless
16871 fi # test -n "$compiler"
16874 CFLAGS
=$lt_save_CFLAGS
16878 with_gnu_ld
=$lt_save_with_gnu_ld
16879 lt_cv_path_LDCXX
=$lt_cv_path_LD
16880 lt_cv_path_LD
=$lt_save_path_LD
16881 lt_cv_prog_gnu_ldcxx
=$lt_cv_prog_gnu_ld
16882 lt_cv_prog_gnu_ld
=$lt_save_with_gnu_ld
16883 fi # test "$_lt_caught_CXX_error" != yes
16886 ac_cpp
='$CPP $CPPFLAGS'
16887 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16888 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16889 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
16905 ac_config_commands
="$ac_config_commands libtool"
16910 # Only expand once:
16913 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
16914 $as_echo_n "checking whether ln -s works... " >&6; }
16916 if test "$LN_S" = "ln -s"; then
16917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16918 $as_echo "yes" >&6; }
16920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
16921 $as_echo "no, using $LN_S" >&6; }
16925 # Check for GCC visibility feature
16930 VISIBILITY_CXXFLAGS
=
16932 if test -n "$GCC"; then
16933 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the -Werror option is usable" >&5
16934 $as_echo_n "checking whether the -Werror option is usable... " >&6; }
16935 if ${pcre_cv_cc_vis_werror+:} false
; then :
16936 $as_echo_n "(cached) " >&6
16939 pcre_save_CFLAGS
="$CFLAGS"
16940 CFLAGS
="$CFLAGS -Werror"
16941 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16942 /* end confdefs.h. */
16952 if ac_fn_c_try_compile
"$LINENO"; then :
16953 pcre_cv_cc_vis_werror
=yes
16955 pcre_cv_cc_vis_werror
=no
16957 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
16958 CFLAGS
="$pcre_save_CFLAGS"
16961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pcre_cv_cc_vis_werror" >&5
16962 $as_echo "$pcre_cv_cc_vis_werror" >&6; }
16963 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for simple visibility declarations" >&5
16964 $as_echo_n "checking for simple visibility declarations... " >&6; }
16965 if ${pcre_cv_cc_visibility+:} false
; then :
16966 $as_echo_n "(cached) " >&6
16969 pcre_save_CFLAGS
="$CFLAGS"
16970 CFLAGS
="$CFLAGS -fvisibility=hidden"
16971 if test $pcre_cv_cc_vis_werror = yes; then
16972 CFLAGS
="$CFLAGS -Werror"
16974 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16975 /* end confdefs.h. */
16976 extern __attribute__((__visibility__("hidden"))) int hiddenvar;
16977 extern __attribute__((__visibility__("default"))) int exportedvar;
16978 extern __attribute__((__visibility__("hidden"))) int hiddenfunc (void);
16979 extern __attribute__((__visibility__("default"))) int exportedfunc (void);
16980 void dummyfunc (void) {}
16990 if ac_fn_c_try_compile
"$LINENO"; then :
16991 pcre_cv_cc_visibility
=yes
16993 pcre_cv_cc_visibility
=no
16995 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
16996 CFLAGS
="$pcre_save_CFLAGS"
16999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pcre_cv_cc_visibility" >&5
17000 $as_echo "$pcre_cv_cc_visibility" >&6; }
17001 if test $pcre_cv_cc_visibility = yes; then
17002 VISIBILITY_CFLAGS
="-fvisibility=hidden"
17003 VISIBILITY_CXXFLAGS
="-fvisibility=hidden -fvisibility-inlines-hidden"
17006 $as_echo "#define PCRE_EXP_DECL extern __attribute__ ((visibility (\"default\")))" >>confdefs.h
17009 $as_echo "#define PCRE_EXP_DEFN __attribute__ ((visibility (\"default\")))" >>confdefs.h
17012 $as_echo "#define PCRE_EXP_DATA_DEFN __attribute__ ((visibility (\"default\")))" >>confdefs.h
17015 $as_echo "#define PCREPOSIX_EXP_DECL extern __attribute__ ((visibility (\"default\")))" >>confdefs.h
17018 $as_echo "#define PCREPOSIX_EXP_DEFN extern __attribute__ ((visibility (\"default\")))" >>confdefs.h
17021 $as_echo "#define PCRECPP_EXP_DECL extern __attribute__ ((visibility (\"default\")))" >>confdefs.h
17024 $as_echo "#define PCRECPP_EXP_DEFN __attribute__ ((visibility (\"default\")))" >>confdefs.h
17032 cat >>confdefs.h
<<_ACEOF
17033 #define HAVE_VISIBILITY $HAVE_VISIBILITY
17043 PCRE_DATE
="2014-04-04"
17045 if test "$PCRE_MINOR" = "08" -o "$PCRE_MINOR" = "09"
17048 echo "*** Minor version number $PCRE_MINOR must not be used. ***"
17049 echo "*** Use only 01 to 07 or 10 onwards, to avoid octal issues. ***"
17059 # Set a more sensible default value for $(htmldir).
17060 if test "x$htmldir" = 'x${docdir}'
17062 htmldir
='${docdir}/html'
17065 # Handle --disable-pcre8 (enabled by default)
17066 # Check whether --enable-pcre8 was given.
17067 if test "${enable_pcre8+set}" = set; then :
17068 enableval
=$enable_pcre8;
17075 # Handle --enable-pcre16 (disabled by default)
17076 # Check whether --enable-pcre16 was given.
17077 if test "${enable_pcre16+set}" = set; then :
17078 enableval
=$enable_pcre16;
17080 enable_pcre16
=unset
17085 # Handle --enable-pcre32 (disabled by default)
17086 # Check whether --enable-pcre32 was given.
17087 if test "${enable_pcre32+set}" = set; then :
17088 enableval
=$enable_pcre32;
17090 enable_pcre32
=unset
17095 # Handle --disable-cpp. The substitution of enable_cpp is needed for use in
17097 # Check whether --enable-cpp was given.
17098 if test "${enable_cpp+set}" = set; then :
17099 enableval
=$enable_cpp;
17106 # Handle --enable-jit (disabled by default)
17107 # Check whether --enable-jit was given.
17108 if test "${enable_jit+set}" = set; then :
17109 enableval
=$enable_jit;
17115 # Handle --disable-pcregrep-jit (enabled by default)
17116 # Check whether --enable-pcregrep-jit was given.
17117 if test "${enable_pcregrep_jit+set}" = set; then :
17118 enableval
=$enable_pcregrep_jit;
17120 enable_pcregrep_jit
=yes
17124 # Handle --enable-rebuild-chartables
17125 # Check whether --enable-rebuild-chartables was given.
17126 if test "${enable_rebuild_chartables+set}" = set; then :
17127 enableval
=$enable_rebuild_chartables;
17129 enable_rebuild_chartables
=no
17133 # Handle --enable-utf8 (disabled by default)
17134 # Check whether --enable-utf8 was given.
17135 if test "${enable_utf8+set}" = set; then :
17136 enableval
=$enable_utf8;
17142 # Handle --enable-utf (disabled by default)
17143 # Check whether --enable-utf was given.
17144 if test "${enable_utf+set}" = set; then :
17145 enableval
=$enable_utf;
17151 # Handle --enable-unicode-properties
17152 # Check whether --enable-unicode-properties was given.
17153 if test "${enable_unicode_properties+set}" = set; then :
17154 enableval
=$enable_unicode_properties;
17156 enable_unicode_properties
=no
17160 # Handle newline options
17162 # Check whether --enable-newline-is-cr was given.
17163 if test "${enable_newline_is_cr+set}" = set; then :
17164 enableval
=$enable_newline_is_cr; ac_pcre_newline
=cr
17167 # Check whether --enable-newline-is-lf was given.
17168 if test "${enable_newline_is_lf+set}" = set; then :
17169 enableval
=$enable_newline_is_lf; ac_pcre_newline
=lf
17172 # Check whether --enable-newline-is-crlf was given.
17173 if test "${enable_newline_is_crlf+set}" = set; then :
17174 enableval
=$enable_newline_is_crlf; ac_pcre_newline
=crlf
17177 # Check whether --enable-newline-is-anycrlf was given.
17178 if test "${enable_newline_is_anycrlf+set}" = set; then :
17179 enableval
=$enable_newline_is_anycrlf; ac_pcre_newline
=anycrlf
17182 # Check whether --enable-newline-is-any was given.
17183 if test "${enable_newline_is_any+set}" = set; then :
17184 enableval
=$enable_newline_is_any; ac_pcre_newline
=any
17187 enable_newline
="$ac_pcre_newline"
17189 # Handle --enable-bsr-anycrlf
17190 # Check whether --enable-bsr-anycrlf was given.
17191 if test "${enable_bsr_anycrlf+set}" = set; then :
17192 enableval
=$enable_bsr_anycrlf;
17194 enable_bsr_anycrlf
=no
17198 # Handle --enable-ebcdic
17199 # Check whether --enable-ebcdic was given.
17200 if test "${enable_ebcdic+set}" = set; then :
17201 enableval
=$enable_ebcdic;
17207 # Handle --enable-ebcdic-nl25
17208 # Check whether --enable-ebcdic-nl25 was given.
17209 if test "${enable_ebcdic_nl25+set}" = set; then :
17210 enableval
=$enable_ebcdic_nl25;
17212 enable_ebcdic_nl25
=no
17216 # Handle --disable-stack-for-recursion
17217 # Check whether --enable-stack-for-recursion was given.
17218 if test "${enable_stack_for_recursion+set}" = set; then :
17219 enableval
=$enable_stack_for_recursion;
17221 enable_stack_for_recursion
=yes
17225 # Handle --enable-pcregrep-libz
17226 # Check whether --enable-pcregrep-libz was given.
17227 if test "${enable_pcregrep_libz+set}" = set; then :
17228 enableval
=$enable_pcregrep_libz;
17230 enable_pcregrep_libz
=no
17234 # Handle --enable-pcregrep-libbz2
17235 # Check whether --enable-pcregrep-libbz2 was given.
17236 if test "${enable_pcregrep_libbz2+set}" = set; then :
17237 enableval
=$enable_pcregrep_libbz2;
17239 enable_pcregrep_libbz2
=no
17243 # Handle --with-pcregrep-bufsize=N
17245 # Check whether --with-pcregrep-bufsize was given.
17246 if test "${with_pcregrep_bufsize+set}" = set; then :
17247 withval
=$with_pcregrep_bufsize;
17249 with_pcregrep_bufsize
=20480
17253 # Handle --enable-pcretest-libedit
17254 # Check whether --enable-pcretest-libedit was given.
17255 if test "${enable_pcretest_libedit+set}" = set; then :
17256 enableval
=$enable_pcretest_libedit;
17258 enable_pcretest_libedit
=no
17262 # Handle --enable-pcretest-libreadline
17263 # Check whether --enable-pcretest-libreadline was given.
17264 if test "${enable_pcretest_libreadline+set}" = set; then :
17265 enableval
=$enable_pcretest_libreadline;
17267 enable_pcretest_libreadline
=no
17271 # Handle --with-posix-malloc-threshold=NBYTES
17273 # Check whether --with-posix-malloc-threshold was given.
17274 if test "${with_posix_malloc_threshold+set}" = set; then :
17275 withval
=$with_posix_malloc_threshold;
17277 with_posix_malloc_threshold
=10
17281 # Handle --with-link-size=N
17283 # Check whether --with-link-size was given.
17284 if test "${with_link_size+set}" = set; then :
17285 withval
=$with_link_size;
17291 # Handle --with-parens-nest-limit=N
17293 # Check whether --with-parens-nest-limit was given.
17294 if test "${with_parens_nest_limit+set}" = set; then :
17295 withval
=$with_parens_nest_limit;
17297 with_parens_nest_limit
=250
17301 # Handle --with-match-limit=N
17303 # Check whether --with-match-limit was given.
17304 if test "${with_match_limit+set}" = set; then :
17305 withval
=$with_match_limit;
17307 with_match_limit
=10000000
17311 # Handle --with-match-limit_recursion=N
17313 # Note: In config.h, the default is to define MATCH_LIMIT_RECURSION
17314 # symbolically as MATCH_LIMIT, which in turn is defined to be some numeric
17315 # value (e.g. 10000000). MATCH_LIMIT_RECURSION can otherwise be set to some
17316 # different numeric value (or even the same numeric value as MATCH_LIMIT,
17317 # though no longer defined in terms of the latter).
17320 # Check whether --with-match-limit-recursion was given.
17321 if test "${with_match_limit_recursion+set}" = set; then :
17322 withval
=$with_match_limit_recursion;
17324 with_match_limit_recursion
=MATCH_LIMIT
17328 # Handle --enable-valgrind
17329 # Check whether --enable-valgrind was given.
17330 if test "${enable_valgrind+set}" = set; then :
17331 enableval
=$enable_valgrind;
17337 # Enable code coverage reports using gcov
17338 # Check whether --enable-coverage was given.
17339 if test "${enable_coverage+set}" = set; then :
17340 enableval
=$enable_coverage;
17346 # Copy enable_utf8 value to enable_utf for compatibility reasons
17347 if test "x$enable_utf8" != "xunset"
17349 if test "x$enable_utf" != "xunset"
17351 as_fn_error $?
"--enable/disable-utf8 is kept only for compatibility reasons and its value is copied to --enable/disable-utf. Newer code must use --enable/disable-utf alone." "$LINENO" 5
17353 enable_utf
=$enable_utf8
17356 # Set the default value for pcre8
17357 if test "x$enable_pcre8" = "xunset"
17362 # Set the default value for pcre16
17363 if test "x$enable_pcre16" = "xunset"
17368 # Set the default value for pcre32
17369 if test "x$enable_pcre32" = "xunset"
17374 # Make sure enable_pcre8 or enable_pcre16 was set
17375 if test "x$enable_pcre8$enable_pcre16$enable_pcre32" = "xnonono"
17377 as_fn_error $?
"At least one of 8, 16 or 32 bit pcre library must be enabled" "$LINENO" 5
17380 # Make sure that if enable_unicode_properties was set, that UTF support is enabled.
17381 if test "x$enable_unicode_properties" = "xyes"
17383 if test "x$enable_utf" = "xno"
17385 as_fn_error $?
"support for Unicode properties requires UTF-8/16/32 support" "$LINENO" 5
17390 # enable_utf is disabled by default.
17391 if test "x$enable_utf" = "xunset"
17396 # enable_cpp copies the value of enable_pcre8 by default
17397 if test "x$enable_cpp" = "xunset"
17399 enable_cpp
=$enable_pcre8
17402 # Make sure that if enable_cpp was set, that enable_pcre8 support is enabled
17403 if test "x$enable_cpp" = "xyes"
17405 if test "x$enable_pcre8" = "xno"
17407 as_fn_error $?
"C++ library requires pcre library with 8 bit characters" "$LINENO" 5
17411 # Convert the newline identifier into the appropriate integer value. The first
17412 # three are ASCII values 0x0a, 0x0d, and 0x0d0a, but if EBCDIC is enabled, they
17413 # are changed below.
17415 case "$enable_newline" in
17416 lf
) ac_pcre_newline_value
=10 ;;
17417 cr
) ac_pcre_newline_value
=13 ;;
17418 crlf
) ac_pcre_newline_value
=3338 ;;
17419 anycrlf
) ac_pcre_newline_value
=-2 ;;
17420 any
) ac_pcre_newline_value
=-1 ;;
17422 as_fn_error $?
"invalid argument \"$enable_newline\" to --enable-newline option" "$LINENO" 5
17426 # --enable-ebcdic-nl25 implies --enable-ebcdic
17427 if test "x$enable_ebcdic_nl25" = "xyes"; then
17431 # Make sure that if enable_ebcdic is set, rebuild_chartables is also enabled,
17432 # and the newline value is adjusted appropriately (CR is still 13, but LF is
17433 # 21 or 37). Also check that UTF support is not requested, because PCRE cannot
17434 # handle EBCDIC and UTF in the same build. To do so it would need to use
17435 # different character constants depending on the mode.
17437 if test "x$enable_ebcdic" = "xyes"; then
17438 enable_rebuild_chartables
=yes
17440 if test "x$enable_utf" = "xyes"; then
17441 as_fn_error $?
"support for EBCDIC and UTF-8/16/32 cannot be enabled at the same time" "$LINENO" 5
17444 if test "x$enable_ebcdic_nl25" = "xno"; then
17445 case "$ac_pcre_newline_value" in
17446 10) ac_pcre_newline_value
=21 ;;
17447 3338) ac_pcre_newline_value
=3349 ;;
17450 case "$ac_pcre_newline_value" in
17451 10) ac_pcre_newline_value
=37 ;;
17452 3338) ac_pcre_newline_value
=3365 ;;
17457 # Check argument to --with-link-size
17458 case "$with_link_size" in
17461 as_fn_error $?
"invalid argument \"$with_link_size\" to --with-link-size option" "$LINENO" 5
17467 # Checks for header files.
17468 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
17469 $as_echo_n "checking for ANSI C header files... " >&6; }
17470 if ${ac_cv_header_stdc+:} false
; then :
17471 $as_echo_n "(cached) " >&6
17473 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17474 /* end confdefs.h. */
17475 #include <stdlib.h>
17476 #include <stdarg.h>
17477 #include <string.h>
17488 if ac_fn_c_try_compile
"$LINENO"; then :
17489 ac_cv_header_stdc
=yes
17491 ac_cv_header_stdc
=no
17493 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
17495 if test $ac_cv_header_stdc = yes; then
17496 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
17497 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17498 /* end confdefs.h. */
17499 #include <string.h>
17502 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
17503 $EGREP "memchr" >/dev
/null
2>&1; then :
17506 ac_cv_header_stdc
=no
17512 if test $ac_cv_header_stdc = yes; then
17513 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
17514 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17515 /* end confdefs.h. */
17516 #include <stdlib.h>
17519 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
17520 $EGREP "free" >/dev
/null
2>&1; then :
17523 ac_cv_header_stdc
=no
17529 if test $ac_cv_header_stdc = yes; then
17530 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
17531 if test "$cross_compiling" = yes; then :
17534 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17535 /* end confdefs.h. */
17537 #include <stdlib.h>
17538 #if ((' ' & 0x0FF) == 0x020)
17539 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
17540 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
17542 # define ISLOWER(c) \
17543 (('a' <= (c) && (c) <= 'i') \
17544 || ('j' <= (c) && (c) <= 'r') \
17545 || ('s' <= (c) && (c) <= 'z'))
17546 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
17549 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
17554 for (i = 0; i < 256; i++)
17555 if (XOR (islower (i), ISLOWER (i))
17556 || toupper (i) != TOUPPER (i))
17561 if ac_fn_c_try_run
"$LINENO"; then :
17564 ac_cv_header_stdc
=no
17566 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
17567 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
17572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
17573 $as_echo "$ac_cv_header_stdc" >&6; }
17574 if test $ac_cv_header_stdc = yes; then
17576 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
17580 for ac_header
in limits.h sys
/types.h sys
/stat.h dirent.h
17582 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
17583 ac_fn_c_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
17584 if eval test \"x\$
"$as_ac_Header"\" = x
"yes"; then :
17585 cat >>confdefs.h
<<_ACEOF
17586 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
17593 for ac_header
in windows.h
17595 ac_fn_c_check_header_mongrel
"$LINENO" "windows.h" "ac_cv_header_windows_h" "$ac_includes_default"
17596 if test "x$ac_cv_header_windows_h" = xyes
; then :
17597 cat >>confdefs.h
<<_ACEOF
17598 #define HAVE_WINDOWS_H 1
17606 # The files below are C++ header files.
17607 pcre_have_type_traits
="0"
17608 pcre_have_bits_type_traits
="0"
17610 if test "x$enable_cpp" = "xyes" -a -z "$CXX"; then
17611 as_fn_error $?
"You need a C++ compiler for C++ support." "$LINENO" 5
17614 if test "x$enable_cpp" = "xyes" -a -n "$CXX"
17617 ac_cpp
='$CXXCPP $CPPFLAGS'
17618 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17619 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17620 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
17623 # Older versions of pcre defined pcrecpp::no_arg, but in new versions
17624 # it's called pcrecpp::RE::no_arg. For backwards ABI compatibility,
17625 # we want to make one an alias for the other. Different systems do
17626 # this in different ways. Some systems, for instance, can do it via
17627 # a linker flag: -alias (for os x 10.5) or -i (for os x <=10.4).
17628 OLD_LDFLAGS
="$LDFLAGS"
17629 for flag
in "-alias,__ZN7pcrecpp2RE6no_argE,__ZN7pcrecpp6no_argE" \
17630 "-i__ZN7pcrecpp6no_argE:__ZN7pcrecpp2RE6no_argE"; do
17631 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alias support in the linker" >&5
17632 $as_echo_n "checking for alias support in the linker... " >&6; }
17633 LDFLAGS
="$OLD_LDFLAGS -Wl,$flag"
17634 # We try to run the linker with this new ld flag. If the link fails,
17635 # we give up and remove the new flag from LDFLAGS.
17636 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17637 /* end confdefs.h. */
17638 namespace pcrecpp {
17639 class RE { static int no_arg; };
17650 if ac_fn_cxx_try_link
"$LINENO"; then :
17651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17652 $as_echo "yes" >&6; };
17653 EXTRA_LIBPCRECPP_LDFLAGS
="$EXTRA_LIBPCRECPP_LDFLAGS -Wl,$flag";
17656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17657 $as_echo "no" >&6; }
17659 rm -f core conftest.err conftest.
$ac_objext \
17660 conftest
$ac_exeext conftest.
$ac_ext
17662 LDFLAGS
="$OLD_LDFLAGS"
17664 # We could be more clever here, given we're doing AC_SUBST with this
17665 # (eg set a var to be the name of the include file we want). But we're not
17666 # so it's easy to change back to 'regular' autoconf vars if we needed to.
17668 for ac_header
in string
17670 ac_fn_cxx_check_header_mongrel
"$LINENO" "string" "ac_cv_header_string" "$ac_includes_default"
17671 if test "x$ac_cv_header_string" = xyes
; then :
17672 cat >>confdefs.h
<<_ACEOF
17673 #define HAVE_STRING 1
17675 pcre_have_cpp_headers
="1"
17677 pcre_have_cpp_headers
="0"
17682 for ac_header
in bits
/type_traits.h
17684 ac_fn_cxx_check_header_mongrel
"$LINENO" "bits/type_traits.h" "ac_cv_header_bits_type_traits_h" "$ac_includes_default"
17685 if test "x$ac_cv_header_bits_type_traits_h" = xyes
; then :
17686 cat >>confdefs.h
<<_ACEOF
17687 #define HAVE_BITS_TYPE_TRAITS_H 1
17689 pcre_have_bits_type_traits
="1"
17691 pcre_have_bits_type_traits
="0"
17696 for ac_header
in type_traits.h
17698 ac_fn_cxx_check_header_mongrel
"$LINENO" "type_traits.h" "ac_cv_header_type_traits_h" "$ac_includes_default"
17699 if test "x$ac_cv_header_type_traits_h" = xyes
; then :
17700 cat >>confdefs.h
<<_ACEOF
17701 #define HAVE_TYPE_TRAITS_H 1
17703 pcre_have_type_traits
="1"
17705 pcre_have_type_traits
="0"
17711 # (This isn't c++-specific, but is only used in pcrecpp.cc, so try this
17712 # in a c++ context. This matters becuase strtoimax is C99 and may not
17713 # be supported by the C++ compiler.)
17714 # Figure out how to create a longlong from a string: strtoll and
17715 # equiv. It's not enough to call AC_CHECK_FUNCS: hpux has a
17716 # strtoll, for instance, but it only takes 2 args instead of 3!
17717 # We have to call AH_TEMPLATE since AC_DEFINE_UNQUOTED below is complex.
17723 for fn
in strtoq strtoll _strtoi64 strtoimax
; do
17724 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $fn" >&5
17725 $as_echo_n "checking for $fn... " >&6; }
17726 if test "$fn" = strtoimax
; then
17731 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17732 /* end confdefs.h. */
17733 #include <$include>
17737 char* e; return $fn("100", &e, 10)
17742 if ac_fn_cxx_try_compile
"$LINENO"; then :
17743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17744 $as_echo "yes" >&6; }
17746 cat >>confdefs.h
<<_ACEOF
17747 #define HAVE_`echo $fn | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ` 1
17753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17754 $as_echo "no" >&6; }
17756 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
17759 if test "$have_strto_fn" = 1; then
17760 ac_fn_cxx_check_type
"$LINENO" "long long" "ac_cv_type_long_long" "$ac_includes_default"
17761 if test "x$ac_cv_type_long_long" = xyes
; then :
17763 cat >>confdefs.h
<<_ACEOF
17764 #define HAVE_LONG_LONG 1
17767 pcre_have_long_long
="1"
17769 pcre_have_long_long
="0"
17772 ac_fn_cxx_check_type
"$LINENO" "unsigned long long" "ac_cv_type_unsigned_long_long" "$ac_includes_default"
17773 if test "x$ac_cv_type_unsigned_long_long" = xyes
; then :
17775 cat >>confdefs.h
<<_ACEOF
17776 #define HAVE_UNSIGNED_LONG_LONG 1
17779 pcre_have_ulong_long
="1"
17781 pcre_have_ulong_long
="0"
17785 pcre_have_long_long
="0"
17786 pcre_have_ulong_long
="0"
17792 ac_cpp
='$CPP $CPPFLAGS'
17793 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17794 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17795 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
17798 # Using AC_SUBST eliminates the need to include config.h in a public .h file
17802 # Conditional compilation
17803 if test "x$enable_pcre8" = "xyes"; then
17805 WITH_PCRE8_FALSE
='#'
17807 WITH_PCRE8_TRUE
='#'
17811 if test "x$enable_pcre16" = "xyes"; then
17813 WITH_PCRE16_FALSE
='#'
17815 WITH_PCRE16_TRUE
='#'
17819 if test "x$enable_pcre32" = "xyes"; then
17821 WITH_PCRE32_FALSE
='#'
17823 WITH_PCRE32_TRUE
='#'
17827 if test "x$enable_cpp" = "xyes"; then
17828 WITH_PCRE_CPP_TRUE
=
17829 WITH_PCRE_CPP_FALSE
='#'
17831 WITH_PCRE_CPP_TRUE
='#'
17832 WITH_PCRE_CPP_FALSE
=
17835 if test "x$enable_rebuild_chartables" = "xyes"; then
17836 WITH_REBUILD_CHARTABLES_TRUE
=
17837 WITH_REBUILD_CHARTABLES_FALSE
='#'
17839 WITH_REBUILD_CHARTABLES_TRUE
='#'
17840 WITH_REBUILD_CHARTABLES_FALSE
=
17843 if test "x$enable_jit" = "xyes"; then
17851 if test "x$enable_utf" = "xyes"; then
17859 if test "x$enable_valgrind" = "xyes"; then
17860 WITH_VALGRIND_TRUE
=
17861 WITH_VALGRIND_FALSE
='#'
17863 WITH_VALGRIND_TRUE
='#'
17864 WITH_VALGRIND_FALSE
=
17868 # Checks for typedefs, structures, and compiler characteristics.
17870 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
17871 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
17872 if ${ac_cv_c_const+:} false
; then :
17873 $as_echo_n "(cached) " >&6
17875 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17876 /* end confdefs.h. */
17882 #ifndef __cplusplus
17883 /* Ultrix mips cc rejects this sort of thing. */
17884 typedef int charset[2];
17885 const charset cs = { 0, 0 };
17886 /* SunOS 4.1.1 cc rejects this. */
17887 char const *const *pcpcc;
17889 /* NEC SVR4.0.2 mips cc rejects this. */
17890 struct point {int x, y;};
17891 static struct point const zero = {0,0};
17892 /* AIX XL C 1.02.0.0 rejects this.
17893 It does not let you subtract one const X* pointer from another in
17894 an arm of an if-expression whose if-part is not a constant
17896 const char *g = "string";
17897 pcpcc = &g + (g ? g-g : 0);
17898 /* HPUX 7.0 cc rejects these. */
17900 ppc = (char**) pcpcc;
17901 pcpcc = (char const *const *) ppc;
17902 { /* SCO 3.2v4 cc rejects this sort of thing. */
17905 char const *s = 0 ? (char *) 0 : (char const *) 0;
17910 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
17911 int x[] = {25, 17};
17912 const int *foo = &x[0];
17915 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
17916 typedef const int *iptr;
17920 { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
17921 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
17922 struct s { int j; const int *ap[3]; } bx;
17923 struct s *b = &bx; b->j = 5;
17925 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
17926 const int foo = 10;
17927 if (!foo) return 0;
17929 return !cs[0] && !zero.x;
17936 if ac_fn_c_try_compile
"$LINENO"; then :
17941 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
17943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
17944 $as_echo "$ac_cv_c_const" >&6; }
17945 if test $ac_cv_c_const = no
; then
17947 $as_echo "#define const /**/" >>confdefs.h
17951 ac_fn_c_check_type
"$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
17952 if test "x$ac_cv_type_size_t" = xyes
; then :
17956 cat >>confdefs.h
<<_ACEOF
17957 #define size_t unsigned int
17963 # Checks for library functions.
17965 for ac_func
in bcopy memmove strerror
17967 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
17968 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
17969 if eval test \"x\$
"$as_ac_var"\" = x
"yes"; then :
17970 cat >>confdefs.h
<<_ACEOF
17971 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
17978 # Check for the availability of libz (aka zlib)
17980 for ac_header
in zlib.h
17982 ac_fn_c_check_header_mongrel
"$LINENO" "zlib.h" "ac_cv_header_zlib_h" "$ac_includes_default"
17983 if test "x$ac_cv_header_zlib_h" = xyes
; then :
17984 cat >>confdefs.h
<<_ACEOF
17985 #define HAVE_ZLIB_H 1
17992 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gzopen in -lz" >&5
17993 $as_echo_n "checking for gzopen in -lz... " >&6; }
17994 if ${ac_cv_lib_z_gzopen+:} false
; then :
17995 $as_echo_n "(cached) " >&6
17997 ac_check_lib_save_LIBS
=$LIBS
17999 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18000 /* end confdefs.h. */
18002 /* Override any GCC internal prototype to avoid an error.
18003 Use char because int might match the return type of a GCC
18004 builtin and then its argument prototype would still apply. */
18017 if ac_fn_c_try_link
"$LINENO"; then :
18018 ac_cv_lib_z_gzopen
=yes
18020 ac_cv_lib_z_gzopen
=no
18022 rm -f core conftest.err conftest.
$ac_objext \
18023 conftest
$ac_exeext conftest.
$ac_ext
18024 LIBS
=$ac_check_lib_save_LIBS
18026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_gzopen" >&5
18027 $as_echo "$ac_cv_lib_z_gzopen" >&6; }
18028 if test "x$ac_cv_lib_z_gzopen" = xyes
; then :
18033 # Check for the availability of libbz2. Originally we just used AC_CHECK_LIB,
18034 # as for libz. However, this had the following problem, diagnosed and fixed by
18037 # - libbz2 uses the Pascal calling convention (WINAPI) for the functions
18039 # - The standard autoconf AC_CHECK_LIB fails to include "bzlib.h",
18040 # therefore missing the function definition.
18041 # - The compiler thus generates a "C" signature for the test function.
18042 # - The linker fails to find the "C" function.
18043 # - PCRE fails to configure if asked to do so against libbz2.
18047 # - Replace the AC_CHECK_LIB test with a custom test.
18049 for ac_header
in bzlib.h
18051 ac_fn_c_check_header_mongrel
"$LINENO" "bzlib.h" "ac_cv_header_bzlib_h" "$ac_includes_default"
18052 if test "x$ac_cv_header_bzlib_h" = xyes
; then :
18053 cat >>confdefs.h
<<_ACEOF
18054 #define HAVE_BZLIB_H 1
18062 # AC_CHECK_LIB([bz2], [BZ2_bzopen], [HAVE_LIBBZ2=1])
18064 # Custom test follows
18066 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libbz2" >&5
18067 $as_echo_n "checking for libbz2... " >&6; }
18070 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18071 /* end confdefs.h. */
18073 #ifdef HAVE_BZLIB_H
18079 return (int)BZ2_bzopen("conftest", "rb");
18084 if ac_fn_c_try_link
"$LINENO"; then :
18085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18086 $as_echo "yes" >&6; };HAVE_LIBBZ2
=1; break;
18088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18089 $as_echo "no" >&6; }
18091 rm -f core conftest.err conftest.
$ac_objext \
18092 conftest
$ac_exeext conftest.
$ac_ext
18095 # Check for the availabiity of libreadline
18097 if test "$enable_pcretest_libreadline" = "yes"; then
18098 for ac_header
in readline
/readline.h
18100 ac_fn_c_check_header_mongrel
"$LINENO" "readline/readline.h" "ac_cv_header_readline_readline_h" "$ac_includes_default"
18101 if test "x$ac_cv_header_readline_readline_h" = xyes
; then :
18102 cat >>confdefs.h
<<_ACEOF
18103 #define HAVE_READLINE_READLINE_H 1
18110 for ac_header
in readline
/history.h
18112 ac_fn_c_check_header_mongrel
"$LINENO" "readline/history.h" "ac_cv_header_readline_history_h" "$ac_includes_default"
18113 if test "x$ac_cv_header_readline_history_h" = xyes
; then :
18114 cat >>confdefs.h
<<_ACEOF
18115 #define HAVE_READLINE_HISTORY_H 1
18122 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for readline in -lreadline" >&5
18123 $as_echo_n "checking for readline in -lreadline... " >&6; }
18124 if ${ac_cv_lib_readline_readline+:} false
; then :
18125 $as_echo_n "(cached) " >&6
18127 ac_check_lib_save_LIBS
=$LIBS
18128 LIBS
="-lreadline $LIBS"
18129 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18130 /* end confdefs.h. */
18132 /* Override any GCC internal prototype to avoid an error.
18133 Use char because int might match the return type of a GCC
18134 builtin and then its argument prototype would still apply. */
18142 return readline ();
18147 if ac_fn_c_try_link
"$LINENO"; then :
18148 ac_cv_lib_readline_readline
=yes
18150 ac_cv_lib_readline_readline
=no
18152 rm -f core conftest.err conftest.
$ac_objext \
18153 conftest
$ac_exeext conftest.
$ac_ext
18154 LIBS
=$ac_check_lib_save_LIBS
18156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_readline_readline" >&5
18157 $as_echo "$ac_cv_lib_readline_readline" >&6; }
18158 if test "x$ac_cv_lib_readline_readline" = xyes
; then :
18159 LIBREADLINE
="-lreadline"
18161 unset ac_cv_lib_readline_readline
;
18162 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for readline in -lreadline" >&5
18163 $as_echo_n "checking for readline in -lreadline... " >&6; }
18164 if ${ac_cv_lib_readline_readline+:} false
; then :
18165 $as_echo_n "(cached) " >&6
18167 ac_check_lib_save_LIBS
=$LIBS
18168 LIBS
="-lreadline -ltinfo $LIBS"
18169 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18170 /* end confdefs.h. */
18172 /* Override any GCC internal prototype to avoid an error.
18173 Use char because int might match the return type of a GCC
18174 builtin and then its argument prototype would still apply. */
18182 return readline ();
18187 if ac_fn_c_try_link
"$LINENO"; then :
18188 ac_cv_lib_readline_readline
=yes
18190 ac_cv_lib_readline_readline
=no
18192 rm -f core conftest.err conftest.
$ac_objext \
18193 conftest
$ac_exeext conftest.
$ac_ext
18194 LIBS
=$ac_check_lib_save_LIBS
18196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_readline_readline" >&5
18197 $as_echo "$ac_cv_lib_readline_readline" >&6; }
18198 if test "x$ac_cv_lib_readline_readline" = xyes
; then :
18199 LIBREADLINE
="-ltinfo"
18201 unset ac_cv_lib_readline_readline
;
18202 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for readline in -lreadline" >&5
18203 $as_echo_n "checking for readline in -lreadline... " >&6; }
18204 if ${ac_cv_lib_readline_readline+:} false
; then :
18205 $as_echo_n "(cached) " >&6
18207 ac_check_lib_save_LIBS
=$LIBS
18208 LIBS
="-lreadline -lcurses $LIBS"
18209 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18210 /* end confdefs.h. */
18212 /* Override any GCC internal prototype to avoid an error.
18213 Use char because int might match the return type of a GCC
18214 builtin and then its argument prototype would still apply. */
18222 return readline ();
18227 if ac_fn_c_try_link
"$LINENO"; then :
18228 ac_cv_lib_readline_readline
=yes
18230 ac_cv_lib_readline_readline
=no
18232 rm -f core conftest.err conftest.
$ac_objext \
18233 conftest
$ac_exeext conftest.
$ac_ext
18234 LIBS
=$ac_check_lib_save_LIBS
18236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_readline_readline" >&5
18237 $as_echo "$ac_cv_lib_readline_readline" >&6; }
18238 if test "x$ac_cv_lib_readline_readline" = xyes
; then :
18239 LIBREADLINE
="-lcurses"
18241 unset ac_cv_lib_readline_readline
;
18242 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for readline in -lreadline" >&5
18243 $as_echo_n "checking for readline in -lreadline... " >&6; }
18244 if ${ac_cv_lib_readline_readline+:} false
; then :
18245 $as_echo_n "(cached) " >&6
18247 ac_check_lib_save_LIBS
=$LIBS
18248 LIBS
="-lreadline -lncurses $LIBS"
18249 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18250 /* end confdefs.h. */
18252 /* Override any GCC internal prototype to avoid an error.
18253 Use char because int might match the return type of a GCC
18254 builtin and then its argument prototype would still apply. */
18262 return readline ();
18267 if ac_fn_c_try_link
"$LINENO"; then :
18268 ac_cv_lib_readline_readline
=yes
18270 ac_cv_lib_readline_readline
=no
18272 rm -f core conftest.err conftest.
$ac_objext \
18273 conftest
$ac_exeext conftest.
$ac_ext
18274 LIBS
=$ac_check_lib_save_LIBS
18276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_readline_readline" >&5
18277 $as_echo "$ac_cv_lib_readline_readline" >&6; }
18278 if test "x$ac_cv_lib_readline_readline" = xyes
; then :
18279 LIBREADLINE
="-lncurses"
18281 unset ac_cv_lib_readline_readline
;
18282 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for readline in -lreadline" >&5
18283 $as_echo_n "checking for readline in -lreadline... " >&6; }
18284 if ${ac_cv_lib_readline_readline+:} false
; then :
18285 $as_echo_n "(cached) " >&6
18287 ac_check_lib_save_LIBS
=$LIBS
18288 LIBS
="-lreadline -lncursesw $LIBS"
18289 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18290 /* end confdefs.h. */
18292 /* Override any GCC internal prototype to avoid an error.
18293 Use char because int might match the return type of a GCC
18294 builtin and then its argument prototype would still apply. */
18302 return readline ();
18307 if ac_fn_c_try_link
"$LINENO"; then :
18308 ac_cv_lib_readline_readline
=yes
18310 ac_cv_lib_readline_readline
=no
18312 rm -f core conftest.err conftest.
$ac_objext \
18313 conftest
$ac_exeext conftest.
$ac_ext
18314 LIBS
=$ac_check_lib_save_LIBS
18316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_readline_readline" >&5
18317 $as_echo "$ac_cv_lib_readline_readline" >&6; }
18318 if test "x$ac_cv_lib_readline_readline" = xyes
; then :
18319 LIBREADLINE
="-lncursesw"
18321 unset ac_cv_lib_readline_readline
;
18322 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for readline in -lreadline" >&5
18323 $as_echo_n "checking for readline in -lreadline... " >&6; }
18324 if ${ac_cv_lib_readline_readline+:} false
; then :
18325 $as_echo_n "(cached) " >&6
18327 ac_check_lib_save_LIBS
=$LIBS
18328 LIBS
="-lreadline -ltermcap $LIBS"
18329 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18330 /* end confdefs.h. */
18332 /* Override any GCC internal prototype to avoid an error.
18333 Use char because int might match the return type of a GCC
18334 builtin and then its argument prototype would still apply. */
18342 return readline ();
18347 if ac_fn_c_try_link
"$LINENO"; then :
18348 ac_cv_lib_readline_readline
=yes
18350 ac_cv_lib_readline_readline
=no
18352 rm -f core conftest.err conftest.
$ac_objext \
18353 conftest
$ac_exeext conftest.
$ac_ext
18354 LIBS
=$ac_check_lib_save_LIBS
18356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_readline_readline" >&5
18357 $as_echo "$ac_cv_lib_readline_readline" >&6; }
18358 if test "x$ac_cv_lib_readline_readline" = xyes
; then :
18359 LIBREADLINE
="-ltermcap"
18375 if test -n "$LIBREADLINE"; then
18376 if test "$LIBREADLINE" != "-lreadline"; then
18377 echo "-lreadline needs $LIBREADLINE"
18378 LIBREADLINE
="-lreadline $LIBREADLINE"
18384 # Check for the availability of libedit. Different distributions put its
18385 # headers in different places. Try to cover the most common ones.
18387 if test "$enable_pcretest_libedit" = "yes"; then
18388 for ac_header
in editline
/readline.h
18390 ac_fn_c_check_header_mongrel
"$LINENO" "editline/readline.h" "ac_cv_header_editline_readline_h" "$ac_includes_default"
18391 if test "x$ac_cv_header_editline_readline_h" = xyes
; then :
18392 cat >>confdefs.h
<<_ACEOF
18393 #define HAVE_EDITLINE_READLINE_H 1
18395 HAVE_EDITLINE_READLINE_H
=1
18397 for ac_header
in edit
/readline
/readline.h
18399 ac_fn_c_check_header_mongrel
"$LINENO" "edit/readline/readline.h" "ac_cv_header_edit_readline_readline_h" "$ac_includes_default"
18400 if test "x$ac_cv_header_edit_readline_readline_h" = xyes
; then :
18401 cat >>confdefs.h
<<_ACEOF
18402 #define HAVE_EDIT_READLINE_READLINE_H 1
18404 HAVE_READLINE_READLINE_H
=1
18406 for ac_header
in readline
/readline.h
18408 ac_fn_c_check_header_mongrel
"$LINENO" "readline/readline.h" "ac_cv_header_readline_readline_h" "$ac_includes_default"
18409 if test "x$ac_cv_header_readline_readline_h" = xyes
; then :
18410 cat >>confdefs.h
<<_ACEOF
18411 #define HAVE_READLINE_READLINE_H 1
18413 HAVE_READLINE_READLINE_H
=1
18426 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for readline in -ledit" >&5
18427 $as_echo_n "checking for readline in -ledit... " >&6; }
18428 if ${ac_cv_lib_edit_readline+:} false
; then :
18429 $as_echo_n "(cached) " >&6
18431 ac_check_lib_save_LIBS
=$LIBS
18432 LIBS
="-ledit $LIBS"
18433 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18434 /* end confdefs.h. */
18436 /* Override any GCC internal prototype to avoid an error.
18437 Use char because int might match the return type of a GCC
18438 builtin and then its argument prototype would still apply. */
18446 return readline ();
18451 if ac_fn_c_try_link
"$LINENO"; then :
18452 ac_cv_lib_edit_readline
=yes
18454 ac_cv_lib_edit_readline
=no
18456 rm -f core conftest.err conftest.
$ac_objext \
18457 conftest
$ac_exeext conftest.
$ac_ext
18458 LIBS
=$ac_check_lib_save_LIBS
18460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_edit_readline" >&5
18461 $as_echo "$ac_cv_lib_edit_readline" >&6; }
18462 if test "x$ac_cv_lib_edit_readline" = xyes
; then :
18468 # This facilitates -ansi builds under Linux
18470 PCRE_STATIC_CFLAG
=""
18471 if test "x$enable_shared" = "xno" ; then
18473 $as_echo "#define PCRE_STATIC 1" >>confdefs.h
18475 PCRE_STATIC_CFLAG
="-DPCRE_STATIC"
18479 # Here is where pcre specific defines are handled
18481 if test "$enable_pcre8" = "yes"; then
18483 $as_echo "#define SUPPORT_PCRE8 /**/" >>confdefs.h
18487 if test "$enable_pcre16" = "yes"; then
18489 $as_echo "#define SUPPORT_PCRE16 /**/" >>confdefs.h
18493 if test "$enable_pcre32" = "yes"; then
18495 $as_echo "#define SUPPORT_PCRE32 /**/" >>confdefs.h
18499 # Unless running under Windows, JIT support requires pthreads.
18501 if test "$enable_jit" = "yes"; then
18502 if test "$HAVE_WINDOWS_H" != "1"; then
18506 ac_cpp
='$CPP $CPPFLAGS'
18507 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18508 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18509 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
18513 # We used to check for pthread.h first, but this fails if pthread.h
18514 # requires special compiler flags (e.g. on True64 or Sequent).
18515 # It gets checked for in the link test anyway.
18517 # First of all, check if the user has set any of the PTHREAD_LIBS,
18518 # etcetera environment variables, and if threads linking works using
18520 if test x
"$PTHREAD_LIBS$PTHREAD_CFLAGS" != x
; then
18521 save_CFLAGS
="$CFLAGS"
18522 CFLAGS
="$CFLAGS $PTHREAD_CFLAGS"
18524 LIBS
="$PTHREAD_LIBS $LIBS"
18525 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS" >&5
18526 $as_echo_n "checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS... " >&6; }
18527 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18528 /* end confdefs.h. */
18530 /* Override any GCC internal prototype to avoid an error.
18531 Use char because int might match the return type of a GCC
18532 builtin and then its argument prototype would still apply. */
18536 char pthread_join ();
18540 return pthread_join ();
18545 if ac_fn_c_try_link
"$LINENO"; then :
18548 rm -f core conftest.err conftest.
$ac_objext \
18549 conftest
$ac_exeext conftest.
$ac_ext
18550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
18551 $as_echo "$ax_pthread_ok" >&6; }
18552 if test x
"$ax_pthread_ok" = xno
; then
18557 CFLAGS
="$save_CFLAGS"
18560 # We must check for the threads library under a number of different
18561 # names; the ordering is very important because some systems
18562 # (e.g. DEC) have both -lpthread and -lpthreads, where one of the
18563 # libraries is broken (non-POSIX).
18565 # Create a list of thread flags to try. Items starting with a "-" are
18566 # C compiler flags, and other items are library names, except for "none"
18567 # which indicates that we try without any flags at all, and "pthread-config"
18568 # which is a program returning the flags for the Pth emulation library.
18570 ax_pthread_flags
="pthreads none -Kthread -kthread lthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config"
18572 # The ordering *is* (sometimes) important. Some notes on the
18573 # individual items follow:
18575 # pthreads: AIX (must check this before -lpthread)
18576 # none: in case threads are in libc; should be tried before -Kthread and
18577 # other compiler flags to prevent continual compiler warnings
18578 # -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h)
18579 # -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able)
18580 # lthread: LinuxThreads port on FreeBSD (also preferred to -pthread)
18581 # -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads)
18582 # -pthreads: Solaris/gcc
18583 # -mthreads: Mingw32/gcc, Lynx/gcc
18584 # -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it
18585 # doesn't hurt to check since this sometimes defines pthreads too;
18586 # also defines -D_REENTRANT)
18587 # ... -mt is also the pthreads flag for HP/aCC
18588 # pthread: Linux, etcetera
18589 # --thread-safe: KAI C++
18590 # pthread-config: use pthread-config program (for GNU Pth library)
18595 # On Solaris (at least, for some versions), libc contains stubbed
18596 # (non-functional) versions of the pthreads routines, so link-based
18597 # tests will erroneously succeed. (We need to link with -pthreads/-mt/
18598 # -lpthread.) (The stubs are missing pthread_cleanup_push, or rather
18599 # a function called by this macro, so we could check for that, but
18600 # who knows whether they'll stub that too in a future libc.) So,
18601 # we'll just look for -pthreads and -lpthread first:
18603 ax_pthread_flags
="-pthreads pthread -mt -pthread $ax_pthread_flags"
18607 ax_pthread_flags
="-pthread $ax_pthread_flags"
18611 if test x
"$ax_pthread_ok" = xno
; then
18612 for flag
in $ax_pthread_flags; do
18616 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work without any flags" >&5
18617 $as_echo_n "checking whether pthreads work without any flags... " >&6; }
18621 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with $flag" >&5
18622 $as_echo_n "checking whether pthreads work with $flag... " >&6; }
18623 PTHREAD_CFLAGS
="$flag"
18627 # Extract the first word of "pthread-config", so it can be a program name with args.
18628 set dummy pthread-config
; ac_word
=$2
18629 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18630 $as_echo_n "checking for $ac_word... " >&6; }
18631 if ${ac_cv_prog_ax_pthread_config+:} false
; then :
18632 $as_echo_n "(cached) " >&6
18634 if test -n "$ax_pthread_config"; then
18635 ac_cv_prog_ax_pthread_config
="$ax_pthread_config" # Let the user override the test.
18637 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
18638 for as_dir
in $PATH
18641 test -z "$as_dir" && as_dir
=.
18642 for ac_exec_ext
in '' $ac_executable_extensions; do
18643 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
18644 ac_cv_prog_ax_pthread_config
="yes"
18645 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18652 test -z "$ac_cv_prog_ax_pthread_config" && ac_cv_prog_ax_pthread_config
="no"
18655 ax_pthread_config
=$ac_cv_prog_ax_pthread_config
18656 if test -n "$ax_pthread_config"; then
18657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_config" >&5
18658 $as_echo "$ax_pthread_config" >&6; }
18660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18661 $as_echo "no" >&6; }
18665 if test x
"$ax_pthread_config" = xno
; then continue; fi
18666 PTHREAD_CFLAGS
="`pthread-config --cflags`"
18667 PTHREAD_LIBS
="`pthread-config --ldflags` `pthread-config --libs`"
18671 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library -l$flag" >&5
18672 $as_echo_n "checking for the pthreads library -l$flag... " >&6; }
18673 PTHREAD_LIBS
="-l$flag"
18678 save_CFLAGS
="$CFLAGS"
18679 LIBS
="$PTHREAD_LIBS $LIBS"
18680 CFLAGS
="$CFLAGS $PTHREAD_CFLAGS"
18682 # Check for various functions. We must include pthread.h,
18683 # since some functions may be macros. (On the Sequent, we
18684 # need a special flag -Kthread to make this header compile.)
18685 # We check for pthread_join because it is in -lpthread on IRIX
18686 # while pthread_create is in libc. We check for pthread_attr_init
18687 # due to DEC craziness with -lpthreads. We check for
18688 # pthread_cleanup_push because it is one of the few pthread
18689 # functions on Solaris that doesn't have a non-functional libc stub.
18690 # We try pthread_create on general principles.
18691 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18692 /* end confdefs.h. */
18693 #include <pthread.h>
18694 static void routine(void *a) { a = 0; }
18695 static void *start_routine(void *a) { return a; }
18699 pthread_t th; pthread_attr_t attr;
18700 pthread_create(&th, 0, start_routine, 0);
18701 pthread_join(th, 0);
18702 pthread_attr_init(&attr);
18703 pthread_cleanup_push(routine, 0);
18704 pthread_cleanup_pop(0) /* ; */
18709 if ac_fn_c_try_link
"$LINENO"; then :
18712 rm -f core conftest.err conftest.
$ac_objext \
18713 conftest
$ac_exeext conftest.
$ac_ext
18716 CFLAGS
="$save_CFLAGS"
18718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
18719 $as_echo "$ax_pthread_ok" >&6; }
18720 if test "x$ax_pthread_ok" = xyes
; then
18729 # Various other checks:
18730 if test "x$ax_pthread_ok" = xyes
; then
18732 LIBS
="$PTHREAD_LIBS $LIBS"
18733 save_CFLAGS
="$CFLAGS"
18734 CFLAGS
="$CFLAGS $PTHREAD_CFLAGS"
18736 # Detect AIX lossage: JOINABLE attribute is called UNDETACHED.
18737 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for joinable pthread attribute" >&5
18738 $as_echo_n "checking for joinable pthread attribute... " >&6; }
18740 for attr
in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED
; do
18741 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18742 /* end confdefs.h. */
18743 #include <pthread.h>
18747 int attr = $attr; return attr /* ; */
18752 if ac_fn_c_try_link
"$LINENO"; then :
18753 attr_name
=$attr; break
18755 rm -f core conftest.err conftest.
$ac_objext \
18756 conftest
$ac_exeext conftest.
$ac_ext
18758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $attr_name" >&5
18759 $as_echo "$attr_name" >&6; }
18760 if test "$attr_name" != PTHREAD_CREATE_JOINABLE
; then
18762 cat >>confdefs.h
<<_ACEOF
18763 #define PTHREAD_CREATE_JOINABLE $attr_name
18768 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if more special flags are required for pthreads" >&5
18769 $as_echo_n "checking if more special flags are required for pthreads... " >&6; }
18772 aix
* | freebsd
* | darwin
*) flag
="-D_THREAD_SAFE";;
18773 osf
* | hpux
*) flag
="-D_REENTRANT";;
18775 if test "$GCC" = "yes"; then
18776 flag
="-D_REENTRANT"
18778 flag
="-mt -D_REENTRANT"
18782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${flag}" >&5
18783 $as_echo "${flag}" >&6; }
18784 if test "x$flag" != xno
; then
18785 PTHREAD_CFLAGS
="$flag $PTHREAD_CFLAGS"
18788 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PTHREAD_PRIO_INHERIT" >&5
18789 $as_echo_n "checking for PTHREAD_PRIO_INHERIT... " >&6; }
18790 if ${ax_cv_PTHREAD_PRIO_INHERIT+:} false
; then :
18791 $as_echo_n "(cached) " >&6
18794 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18795 /* end confdefs.h. */
18797 #include <pthread.h>
18801 int i = PTHREAD_PRIO_INHERIT;
18806 if ac_fn_c_try_link
"$LINENO"; then :
18807 ax_cv_PTHREAD_PRIO_INHERIT
=yes
18809 ax_cv_PTHREAD_PRIO_INHERIT
=no
18811 rm -f core conftest.err conftest.
$ac_objext \
18812 conftest
$ac_exeext conftest.
$ac_ext
18815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_PRIO_INHERIT" >&5
18816 $as_echo "$ax_cv_PTHREAD_PRIO_INHERIT" >&6; }
18817 if test "x$ax_cv_PTHREAD_PRIO_INHERIT" = "xyes"; then :
18819 $as_echo "#define HAVE_PTHREAD_PRIO_INHERIT 1" >>confdefs.h
18824 CFLAGS
="$save_CFLAGS"
18826 # More AIX lossage: must compile with xlc_r or cc_r
18827 if test x
"$GCC" != xyes
; then
18828 for ac_prog
in xlc_r cc_r
18830 # Extract the first word of "$ac_prog", so it can be a program name with args.
18831 set dummy
$ac_prog; ac_word
=$2
18832 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18833 $as_echo_n "checking for $ac_word... " >&6; }
18834 if ${ac_cv_prog_PTHREAD_CC+:} false
; then :
18835 $as_echo_n "(cached) " >&6
18837 if test -n "$PTHREAD_CC"; then
18838 ac_cv_prog_PTHREAD_CC
="$PTHREAD_CC" # Let the user override the test.
18840 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
18841 for as_dir
in $PATH
18844 test -z "$as_dir" && as_dir
=.
18845 for ac_exec_ext
in '' $ac_executable_extensions; do
18846 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
18847 ac_cv_prog_PTHREAD_CC
="$ac_prog"
18848 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18857 PTHREAD_CC
=$ac_cv_prog_PTHREAD_CC
18858 if test -n "$PTHREAD_CC"; then
18859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PTHREAD_CC" >&5
18860 $as_echo "$PTHREAD_CC" >&6; }
18862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18863 $as_echo "no" >&6; }
18867 test -n "$PTHREAD_CC" && break
18869 test -n "$PTHREAD_CC" || PTHREAD_CC
="${CC}"
18882 # Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
18883 if test x
"$ax_pthread_ok" = xyes
; then
18885 $as_echo "#define HAVE_PTHREAD 1" >>confdefs.h
18890 as_fn_error $?
"JIT support requires pthreads" "$LINENO" 5
18893 ac_cpp
='$CPP $CPPFLAGS'
18894 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18895 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18896 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
18900 CFLAGS
="$PTHREAD_CFLAGS $CFLAGS"
18901 LIBS
="$PTHREAD_LIBS $LIBS"
18904 $as_echo "#define SUPPORT_JIT /**/" >>confdefs.h
18907 enable_pcregrep_jit
="no"
18910 if test "$enable_pcregrep_jit" = "yes"; then
18912 $as_echo "#define SUPPORT_PCREGREP_JIT /**/" >>confdefs.h
18916 if test "$enable_utf" = "yes"; then
18918 $as_echo "#define SUPPORT_UTF /**/" >>confdefs.h
18922 if test "$enable_unicode_properties" = "yes"; then
18924 $as_echo "#define SUPPORT_UCP /**/" >>confdefs.h
18928 if test "$enable_stack_for_recursion" = "no"; then
18930 $as_echo "#define NO_RECURSE /**/" >>confdefs.h
18934 if test "$enable_pcregrep_libz" = "yes"; then
18936 $as_echo "#define SUPPORT_LIBZ /**/" >>confdefs.h
18940 if test "$enable_pcregrep_libbz2" = "yes"; then
18942 $as_echo "#define SUPPORT_LIBBZ2 /**/" >>confdefs.h
18946 if test $with_pcregrep_bufsize -lt 8192 ; then
18947 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $with_pcregrep_bufsize is too small for --with-pcregrep-bufsize; using 8192" >&5
18948 $as_echo "$as_me: WARNING: $with_pcregrep_bufsize is too small for --with-pcregrep-bufsize; using 8192" >&2;}
18949 with_pcregrep_bufsize
="8192"
18951 if test $?
-gt 1 ; then
18952 as_fn_error $?
"Bad value for --with-pcregrep-bufsize" "$LINENO" 5
18957 cat >>confdefs.h
<<_ACEOF
18958 #define PCREGREP_BUFSIZE $with_pcregrep_bufsize
18962 if test "$enable_pcretest_libedit" = "yes"; then
18964 $as_echo "#define SUPPORT_LIBEDIT /**/" >>confdefs.h
18966 LIBREADLINE
="$LIBEDIT"
18967 elif test "$enable_pcretest_libreadline" = "yes"; then
18969 $as_echo "#define SUPPORT_LIBREADLINE /**/" >>confdefs.h
18974 cat >>confdefs.h
<<_ACEOF
18975 #define NEWLINE $ac_pcre_newline_value
18979 if test "$enable_bsr_anycrlf" = "yes"; then
18981 $as_echo "#define BSR_ANYCRLF /**/" >>confdefs.h
18986 cat >>confdefs.h
<<_ACEOF
18987 #define LINK_SIZE $with_link_size
18992 cat >>confdefs.h
<<_ACEOF
18993 #define POSIX_MALLOC_THRESHOLD $with_posix_malloc_threshold
18998 cat >>confdefs.h
<<_ACEOF
18999 #define PARENS_NEST_LIMIT $with_parens_nest_limit
19004 cat >>confdefs.h
<<_ACEOF
19005 #define MATCH_LIMIT $with_match_limit
19010 cat >>confdefs.h
<<_ACEOF
19011 #define MATCH_LIMIT_RECURSION $with_match_limit_recursion
19016 $as_echo "#define MAX_NAME_SIZE 32" >>confdefs.h
19020 $as_echo "#define MAX_NAME_COUNT 10000" >>confdefs.h
19025 if test "$enable_ebcdic" = "yes"; then
19027 cat >>confdefs.h
<<_ACEOF
19028 #define EBCDIC /**/
19033 if test "$enable_ebcdic_nl25" = "yes"; then
19035 cat >>confdefs.h
<<_ACEOF
19036 #define EBCDIC_NL25 /**/
19041 if test "$enable_valgrind" = "yes"; then
19043 cat >>confdefs.h
<<_ACEOF
19044 #define SUPPORT_VALGRIND /**/
19049 # Platform specific issues
19051 EXPORT_ALL_SYMBOLS
=
19054 if test X
"$enable_shared" = Xyes
; then
19055 NO_UNDEFINED
="-no-undefined"
19056 EXPORT_ALL_SYMBOLS
="-Wl,--export-all-symbols"
19061 # The extra LDFLAGS for each particular library
19062 # (Note: The libpcre*_version bits are m4 variables, assigned above)
19064 EXTRA_LIBPCRE_LDFLAGS
="$EXTRA_LIBPCRE_LDFLAGS \
19065 $NO_UNDEFINED -version-info 3:3:2"
19067 EXTRA_LIBPCRE16_LDFLAGS
="$EXTRA_LIBPCRE16_LDFLAGS \
19068 $NO_UNDEFINED -version-info 2:3:2"
19070 EXTRA_LIBPCRE32_LDFLAGS
="$EXTRA_LIBPCRE32_LDFLAGS \
19071 $NO_UNDEFINED -version-info 0:3:0"
19073 EXTRA_LIBPCREPOSIX_LDFLAGS
="$EXTRA_LIBPCREPOSIX_LDFLAGS \
19074 $NO_UNDEFINED -version-info 0:2:0"
19076 EXTRA_LIBPCRECPP_LDFLAGS
="$EXTRA_LIBPCRECPP_LDFLAGS \
19077 $NO_UNDEFINED -version-info 0:0:0 \
19078 $EXPORT_ALL_SYMBOLS"
19086 # When we run 'make distcheck', use these arguments. Turning off compiler
19087 # optimization makes it run faster.
19088 DISTCHECK_CONFIGURE_FLAGS
="CFLAGS='' CXXFLAGS='' --enable-pcre16 --enable-pcre32 --enable-jit --enable-cpp --enable-unicode-properties"
19091 # Check that, if --enable-pcregrep-libz or --enable-pcregrep-libbz2 is
19092 # specified, the relevant library is available.
19094 if test "$enable_pcregrep_libz" = "yes"; then
19095 if test "$HAVE_ZLIB_H" != "1"; then
19096 echo "** Cannot --enable-pcregrep-libz because zlib.h was not found"
19099 if test "$HAVE_LIBZ" != "1"; then
19100 echo "** Cannot --enable-pcregrep-libz because libz was not found"
19107 if test "$enable_pcregrep_libbz2" = "yes"; then
19108 if test "$HAVE_BZLIB_H" != "1"; then
19109 echo "** Cannot --enable-pcregrep-libbz2 because bzlib.h was not found"
19112 if test "$HAVE_LIBBZ2" != "1"; then
19113 echo "** Cannot --enable-pcregrep-libbz2 because libbz2 was not found"
19120 # Similarly for --enable-pcretest-readline
19122 if test "$enable_pcretest_libedit" = "yes"; then
19123 if test "$enable_pcretest_libreadline" = "yes"; then
19124 echo "** Cannot use both --enable-pcretest-libedit and --enable-pcretest-readline"
19127 if test "$HAVE_EDITLINE_READLINE_H" != "1" -a \
19128 "$HAVE_READLINE_READLINE_H" != "1"; then
19129 echo "** Cannot --enable-pcretest-libedit because neither editline/readline.h"
19130 echo "** nor readline/readline.h was found."
19133 if test -z "$LIBEDIT"; then
19134 echo "** Cannot --enable-pcretest-libedit because libedit library was not found."
19139 if test "$enable_pcretest_libreadline" = "yes"; then
19140 if test "$HAVE_READLINE_H" != "1"; then
19141 echo "** Cannot --enable-pcretest-readline because readline/readline.h was not found."
19144 if test "$HAVE_HISTORY_H" != "1"; then
19145 echo "** Cannot --enable-pcretest-readline because readline/history.h was not found."
19148 if test -z "$LIBREADLINE"; then
19149 echo "** Cannot --enable-pcretest-readline because readline library was not found."
19154 # Handle valgrind support
19156 if test "$enable_valgrind" = "yes"; then
19164 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
19165 if test -n "$ac_tool_prefix"; then
19166 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
19167 set dummy
${ac_tool_prefix}pkg-config
; ac_word
=$2
19168 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19169 $as_echo_n "checking for $ac_word... " >&6; }
19170 if ${ac_cv_path_PKG_CONFIG+:} false
; then :
19171 $as_echo_n "(cached) " >&6
19173 case $PKG_CONFIG in
19175 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
19178 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
19179 for as_dir
in $PATH
19182 test -z "$as_dir" && as_dir
=.
19183 for ac_exec_ext
in '' $ac_executable_extensions; do
19184 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
19185 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
19186 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19196 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
19197 if test -n "$PKG_CONFIG"; then
19198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
19199 $as_echo "$PKG_CONFIG" >&6; }
19201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19202 $as_echo "no" >&6; }
19207 if test -z "$ac_cv_path_PKG_CONFIG"; then
19208 ac_pt_PKG_CONFIG
=$PKG_CONFIG
19209 # Extract the first word of "pkg-config", so it can be a program name with args.
19210 set dummy pkg-config
; ac_word
=$2
19211 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19212 $as_echo_n "checking for $ac_word... " >&6; }
19213 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false
; then :
19214 $as_echo_n "(cached) " >&6
19216 case $ac_pt_PKG_CONFIG in
19218 ac_cv_path_ac_pt_PKG_CONFIG
="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
19221 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
19222 for as_dir
in $PATH
19225 test -z "$as_dir" && as_dir
=.
19226 for ac_exec_ext
in '' $ac_executable_extensions; do
19227 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
19228 ac_cv_path_ac_pt_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
19229 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19239 ac_pt_PKG_CONFIG
=$ac_cv_path_ac_pt_PKG_CONFIG
19240 if test -n "$ac_pt_PKG_CONFIG"; then
19241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
19242 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
19244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19245 $as_echo "no" >&6; }
19248 if test "x$ac_pt_PKG_CONFIG" = x
; then
19251 case $cross_compiling:$ac_tool_warned in
19253 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
19254 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
19255 ac_tool_warned
=yes ;;
19257 PKG_CONFIG
=$ac_pt_PKG_CONFIG
19260 PKG_CONFIG
="$ac_cv_path_PKG_CONFIG"
19264 if test -n "$PKG_CONFIG"; then
19265 _pkg_min_version
=0.9.0
19266 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
19267 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
19268 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
19269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19270 $as_echo "yes" >&6; }
19272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19273 $as_echo "no" >&6; }
19279 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for VALGRIND" >&5
19280 $as_echo_n "checking for VALGRIND... " >&6; }
19282 if test -n "$VALGRIND_CFLAGS"; then
19283 pkg_cv_VALGRIND_CFLAGS
="$VALGRIND_CFLAGS"
19284 elif test -n "$PKG_CONFIG"; then
19285 if test -n "$PKG_CONFIG" && \
19286 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"valgrind\""; } >&5
19287 ($PKG_CONFIG --exists --print-errors "valgrind") 2>&5
19289 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19290 test $ac_status = 0; }; then
19291 pkg_cv_VALGRIND_CFLAGS
=`$PKG_CONFIG --cflags "valgrind" 2>/dev/null`
19292 test "x$?" != "x0" && pkg_failed
=yes
19299 if test -n "$VALGRIND_LIBS"; then
19300 pkg_cv_VALGRIND_LIBS
="$VALGRIND_LIBS"
19301 elif test -n "$PKG_CONFIG"; then
19302 if test -n "$PKG_CONFIG" && \
19303 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"valgrind\""; } >&5
19304 ($PKG_CONFIG --exists --print-errors "valgrind") 2>&5
19306 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19307 test $ac_status = 0; }; then
19308 pkg_cv_VALGRIND_LIBS
=`$PKG_CONFIG --libs "valgrind" 2>/dev/null`
19309 test "x$?" != "x0" && pkg_failed
=yes
19319 if test $pkg_failed = yes; then
19320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19321 $as_echo "no" >&6; }
19323 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
19324 _pkg_short_errors_supported
=yes
19326 _pkg_short_errors_supported
=no
19328 if test $_pkg_short_errors_supported = yes; then
19329 VALGRIND_PKG_ERRORS
=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "valgrind" 2>&1`
19331 VALGRIND_PKG_ERRORS
=`$PKG_CONFIG --print-errors --cflags --libs "valgrind" 2>&1`
19333 # Put the nasty error message in config.log where it belongs
19334 echo "$VALGRIND_PKG_ERRORS" >&5
19336 as_fn_error $?
"Package requirements (valgrind) were not met:
19338 $VALGRIND_PKG_ERRORS
19340 Consider adjusting the PKG_CONFIG_PATH environment variable if you
19341 installed software in a non-standard prefix.
19343 Alternatively, you may set the environment variables VALGRIND_CFLAGS
19344 and VALGRIND_LIBS to avoid the need to call pkg-config.
19345 See the pkg-config man page for more details." "$LINENO" 5
19346 elif test $pkg_failed = untried
; then
19347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19348 $as_echo "no" >&6; }
19349 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
19350 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
19351 as_fn_error $?
"The pkg-config script could not be found or is too old. Make sure it
19352 is in your PATH or set the PKG_CONFIG environment variable to the full
19353 path to pkg-config.
19355 Alternatively, you may set the environment variables VALGRIND_CFLAGS
19356 and VALGRIND_LIBS to avoid the need to call pkg-config.
19357 See the pkg-config man page for more details.
19359 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
19360 See \`config.log' for more details" "$LINENO" 5; }
19362 VALGRIND_CFLAGS
=$pkg_cv_VALGRIND_CFLAGS
19363 VALGRIND_LIBS
=$pkg_cv_VALGRIND_LIBS
19364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19365 $as_echo "yes" >&6; }
19370 # Handle code coverage reporting support
19371 if test "$enable_coverage" = "yes"; then
19372 if test "x$GCC" != "xyes"; then
19373 as_fn_error $?
"Code coverage reports can only be generated when using GCC" "$LINENO" 5
19376 # ccache is incompatible with gcov
19377 # Extract the first word of "shtool", so it can be a program name with args.
19378 set dummy shtool
; ac_word
=$2
19379 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19380 $as_echo_n "checking for $ac_word... " >&6; }
19381 if ${ac_cv_path_SHTOOL+:} false
; then :
19382 $as_echo_n "(cached) " >&6
19386 ac_cv_path_SHTOOL
="$SHTOOL" # Let the user override the test with a path.
19389 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
19390 for as_dir
in $PATH
19393 test -z "$as_dir" && as_dir
=.
19394 for ac_exec_ext
in '' $ac_executable_extensions; do
19395 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
19396 ac_cv_path_SHTOOL
="$as_dir/$ac_word$ac_exec_ext"
19397 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19404 test -z "$ac_cv_path_SHTOOL" && ac_cv_path_SHTOOL
="false"
19408 SHTOOL
=$ac_cv_path_SHTOOL
19409 if test -n "$SHTOOL"; then
19410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SHTOOL" >&5
19411 $as_echo "$SHTOOL" >&6; }
19413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19414 $as_echo "no" >&6; }
19418 case `$SHTOOL path $CC` in
19419 *ccache
*) cc_ccache
=yes;;
19423 if test "$cc_ccache" = "yes"; then
19424 if test -z "$CCACHE_DISABLE" -o "$CCACHE_DISABLE" != "1"; then
19425 as_fn_error $?
"must export CCACHE_DISABLE=1 to disable ccache for code coverage" "$LINENO" 5
19430 # Extract the first word of "lcov", so it can be a program name with args.
19431 set dummy lcov
; ac_word
=$2
19432 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19433 $as_echo_n "checking for $ac_word... " >&6; }
19434 if ${ac_cv_path_LCOV+:} false
; then :
19435 $as_echo_n "(cached) " >&6
19439 ac_cv_path_LCOV
="$LCOV" # Let the user override the test with a path.
19442 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
19443 for as_dir
in $PATH
19446 test -z "$as_dir" && as_dir
=.
19447 for ac_exec_ext
in '' $ac_executable_extensions; do
19448 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
19449 ac_cv_path_LCOV
="$as_dir/$ac_word$ac_exec_ext"
19450 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19457 test -z "$ac_cv_path_LCOV" && ac_cv_path_LCOV
="false"
19461 LCOV
=$ac_cv_path_LCOV
19462 if test -n "$LCOV"; then
19463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LCOV" >&5
19464 $as_echo "$LCOV" >&6; }
19466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19467 $as_echo "no" >&6; }
19471 if test "x$LCOV" = "xfalse"; then
19472 as_fn_error $?
"lcov not found" "$LINENO" 5
19476 # Extract the first word of "genhtml", so it can be a program name with args.
19477 set dummy genhtml
; ac_word
=$2
19478 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19479 $as_echo_n "checking for $ac_word... " >&6; }
19480 if ${ac_cv_path_GENHTML+:} false
; then :
19481 $as_echo_n "(cached) " >&6
19485 ac_cv_path_GENHTML
="$GENHTML" # Let the user override the test with a path.
19488 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
19489 for as_dir
in $PATH
19492 test -z "$as_dir" && as_dir
=.
19493 for ac_exec_ext
in '' $ac_executable_extensions; do
19494 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
19495 ac_cv_path_GENHTML
="$as_dir/$ac_word$ac_exec_ext"
19496 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19503 test -z "$ac_cv_path_GENHTML" && ac_cv_path_GENHTML
="false"
19507 GENHTML
=$ac_cv_path_GENHTML
19508 if test -n "$GENHTML"; then
19509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GENHTML" >&5
19510 $as_echo "$GENHTML" >&6; }
19512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19513 $as_echo "no" >&6; }
19517 if test "x$GENHTML" = "xfalse"; then
19518 as_fn_error $?
"genhtml not found" "$LINENO" 5
19521 # Set flags needed for gcov
19522 GCOV_CFLAGS
="-O0 -ggdb3 -fprofile-arcs -ftest-coverage"
19523 GCOV_CXXFLAGS
="-O0 -ggdb3 -fprofile-arcs -ftest-coverage"
19528 fi # enable_coverage
19530 if test "x$enable_coverage" = "xyes"; then
19532 WITH_GCOV_FALSE
='#'
19539 # Produce these files, in addition to config.h.
19540 ac_config_files
="$ac_config_files Makefile libpcre.pc libpcre16.pc libpcre32.pc libpcreposix.pc libpcrecpp.pc pcre-config pcre.h pcre_stringpiece.h pcrecpparg.h"
19543 # Make the generated script files executable.
19544 ac_config_commands
="$ac_config_commands script-chmod"
19547 # Make sure that pcre_chartables.c is removed in case the method for
19548 # creating it was changed by reconfiguration.
19549 ac_config_commands
="$ac_config_commands delete-old-chartables"
19552 cat >confcache
<<\_ACEOF
19553 # This file is a shell script that caches the results of configure
19554 # tests run on this system so they can be shared between configure
19555 # scripts and configure runs, see configure's option --config-cache.
19556 # It is not useful on other systems. If it contains results you don't
19557 # want to keep, you may remove or edit it.
19559 # config.status only pays attention to the cache file if you give it
19560 # the --recheck option to rerun configure.
19562 # `ac_cv_env_foo' variables (set or unset) will be overridden when
19563 # loading this file, other *unset* `ac_cv_foo' will be assigned the
19564 # following values.
19568 # The following way of writing the cache mishandles newlines in values,
19569 # but we know of no workaround that is simple, portable, and efficient.
19570 # So, we kill variables containing newlines.
19571 # Ultrix sh set writes to stderr and can't be redirected directly,
19572 # and sets the high bit in the cache file unless we assign to the vars.
19574 for ac_var
in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
19575 eval ac_val
=\$
$ac_var
19579 *_cv_
*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
19580 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
19583 _ | IFS | as_nl
) ;; #(
19584 BASH_ARGV | BASH_SOURCE
) eval $ac_var= ;; #(
19585 *) { eval $ac_var=; unset $ac_var;} ;;
19591 case $as_nl`(ac_space=' '; set) 2>&1` in #(
19592 *${as_nl}ac_space
=\
*)
19593 # `set' does not quote correctly, so add quotes: double-quote
19594 # substitution turns \\\\ into \\, and sed turns \\ into \.
19597 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
19600 # `set' quotes correctly as required by POSIX, so do not add quotes.
19601 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
19610 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
19612 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
19614 if diff "$cache_file" confcache
>/dev
/null
2>&1; then :; else
19615 if test -w "$cache_file"; then
19616 if test "x$cache_file" != "x/dev/null"; then
19617 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
19618 $as_echo "$as_me: updating cache $cache_file" >&6;}
19619 if test ! -f "$cache_file" ||
test -h "$cache_file"; then
19620 cat confcache
>"$cache_file"
19622 case $cache_file in #(
19624 mv -f confcache
"$cache_file"$$
&&
19625 mv -f "$cache_file"$$
"$cache_file" ;; #(
19627 mv -f confcache
"$cache_file" ;;
19632 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
19633 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
19638 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
19639 # Let make expand exec_prefix.
19640 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
19642 DEFS
=-DHAVE_CONFIG_H
19647 for ac_i
in : $LIBOBJS; do test "x$ac_i" = x
: && continue
19648 # 1. Remove the extension, and $U if already installed.
19649 ac_script
='s/\$U\././;s/\.o$//;s/\.obj$//'
19650 ac_i
=`$as_echo "$ac_i" | sed "$ac_script"`
19651 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
19652 # will be set to the directory where LIBOBJS objects are built.
19653 as_fn_append ac_libobjs
" \${LIBOBJDIR}$ac_i\$U.$ac_objext"
19654 as_fn_append ac_ltlibobjs
" \${LIBOBJDIR}$ac_i"'$U.lo'
19656 LIBOBJS
=$ac_libobjs
19658 LTLIBOBJS
=$ac_ltlibobjs
19661 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
19662 $as_echo_n "checking that generated files are newer than configure... " >&6; }
19663 if test -n "$am_sleep_pid"; then
19664 # Hide warnings about reused PIDs.
19665 wait $am_sleep_pid 2>/dev
/null
19667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
19668 $as_echo "done" >&6; }
19669 if test -n "$EXEEXT"; then
19671 am__EXEEXT_FALSE
='#'
19673 am__EXEEXT_TRUE
='#'
19677 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
19678 as_fn_error $?
"conditional \"AMDEP\" was never defined.
19679 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19681 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
19682 as_fn_error $?
"conditional \"am__fastdepCC\" was never defined.
19683 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19685 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
19686 as_fn_error $?
"conditional \"am__fastdepCC\" was never defined.
19687 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19689 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
19690 as_fn_error $?
"conditional \"am__fastdepCXX\" was never defined.
19691 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19693 if test -z "${WITH_PCRE8_TRUE}" && test -z "${WITH_PCRE8_FALSE}"; then
19694 as_fn_error $?
"conditional \"WITH_PCRE8\" was never defined.
19695 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19697 if test -z "${WITH_PCRE16_TRUE}" && test -z "${WITH_PCRE16_FALSE}"; then
19698 as_fn_error $?
"conditional \"WITH_PCRE16\" was never defined.
19699 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19701 if test -z "${WITH_PCRE32_TRUE}" && test -z "${WITH_PCRE32_FALSE}"; then
19702 as_fn_error $?
"conditional \"WITH_PCRE32\" was never defined.
19703 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19705 if test -z "${WITH_PCRE_CPP_TRUE}" && test -z "${WITH_PCRE_CPP_FALSE}"; then
19706 as_fn_error $?
"conditional \"WITH_PCRE_CPP\" was never defined.
19707 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19709 if test -z "${WITH_REBUILD_CHARTABLES_TRUE}" && test -z "${WITH_REBUILD_CHARTABLES_FALSE}"; then
19710 as_fn_error $?
"conditional \"WITH_REBUILD_CHARTABLES\" was never defined.
19711 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19713 if test -z "${WITH_JIT_TRUE}" && test -z "${WITH_JIT_FALSE}"; then
19714 as_fn_error $?
"conditional \"WITH_JIT\" was never defined.
19715 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19717 if test -z "${WITH_UTF_TRUE}" && test -z "${WITH_UTF_FALSE}"; then
19718 as_fn_error $?
"conditional \"WITH_UTF\" was never defined.
19719 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19721 if test -z "${WITH_VALGRIND_TRUE}" && test -z "${WITH_VALGRIND_FALSE}"; then
19722 as_fn_error $?
"conditional \"WITH_VALGRIND\" was never defined.
19723 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19725 if test -z "${WITH_GCOV_TRUE}" && test -z "${WITH_GCOV_FALSE}"; then
19726 as_fn_error $?
"conditional \"WITH_GCOV\" was never defined.
19727 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19730 : "${CONFIG_STATUS=./config.status}"
19732 ac_clean_files_save
=$ac_clean_files
19733 ac_clean_files
="$ac_clean_files $CONFIG_STATUS"
19734 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
19735 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
19737 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
19739 # Generated by $as_me.
19740 # Run this file to recreate the current configuration.
19741 # Compiler output produced by configure, useful for debugging
19742 # configure, is in config.log if it exists.
19745 ac_cs_recheck=false
19748 SHELL=\${CONFIG_SHELL-$SHELL}
19751 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail
=1
19752 ## -------------------- ##
19753 ## M4sh Initialization. ##
19754 ## -------------------- ##
19756 # Be more Bourne compatible
19757 DUALCASE
=1; export DUALCASE
# for MKS sh
19758 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then :
19761 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
19762 # is contrary to our usage. Disable this feature.
19763 alias -g '${1+"$@"}'='"$@"'
19764 setopt NO_GLOB_SUBST
19766 case `(set -o) 2>/dev/null` in #(
19778 # Printing a long string crashes Solaris 7 /usr/bin/printf.
19779 as_echo
='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
19780 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
19781 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
19782 # Prefer a ksh shell builtin over an external printf program on Solaris,
19783 # but without wasting forks for bash or zsh.
19784 if test -z "$BASH_VERSION$ZSH_VERSION" \
19785 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
19786 as_echo='print
-r --'
19787 as_echo_n='print
-rn --'
19788 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
19789 as_echo='printf %s
\n'
19790 as_echo_n='printf %s
'
19792 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
19793 as_echo_body='eval /usr
/ucb
/echo -n "$1$as_nl"'
19794 as_echo_n='/usr
/ucb
/echo -n'
19796 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
19797 as_echo_n_body='eval
19801 expr "X$arg" : "X\\(.*\\)$as_nl";
19802 arg
=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
19804 expr "X$arg" : "X\\(.*\\)" |
tr -d "$as_nl"
19806 export as_echo_n_body
19807 as_echo_n='sh
-c $as_echo_n_body as_echo
'
19809 export as_echo_body
19810 as_echo='sh
-c $as_echo_body as_echo
'
19813 # The user is always right.
19814 if test "${PATH_SEPARATOR+set}" != set; then
19816 (PATH='/bin
;/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
19817 (PATH='/bin
:/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
19824 # We need space, tab and new line, in precisely that order. Quoting is
19825 # there to prevent editors from complaining about space-tab.
19826 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
19827 # splitting by setting IFS to empty value.)
19830 # Find who we are. Look in the path if we contain no directory separator.
19833 *[\\/]* ) as_myself=$0 ;;
19834 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19835 for as_dir in $PATH
19838 test -z "$as_dir" && as_dir=.
19839 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
19845 # We did not find ourselves, most probably we were run as `sh COMMAND'
19846 # in which case we are not to be found in the path.
19847 if test "x$as_myself" = x
; then
19850 if test ! -f "$as_myself"; then
19851 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
19855 # Unset variables that we do not need and which cause bugs (e.g. in
19856 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
19857 # suppresses any "Segmentation fault" message there. '((' could
19858 # trigger a bug in pdksh 5.2.14.
19859 for as_var
in BASH_ENV ENV MAIL MAILPATH
19860 do eval test x\
${$as_var+set} = xset \
19861 && ( (unset $as_var) ||
exit 1) >/dev
/null
2>&1 && unset $as_var ||
:
19874 (unset CDPATH
) >/dev
/null
2>&1 && unset CDPATH
19877 # as_fn_error STATUS ERROR [LINENO LOG_FD]
19878 # ----------------------------------------
19879 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
19880 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
19881 # script with STATUS, using 1 if that was 0.
19884 as_status
=$1; test $as_status -eq 0 && as_status
=1
19886 as_lineno
=${as_lineno-"$3"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
19887 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
19889 $as_echo "$as_me: error: $2" >&2
19890 as_fn_exit
$as_status
19894 # as_fn_set_status STATUS
19895 # -----------------------
19896 # Set $? to STATUS, without forking.
19897 as_fn_set_status
()
19900 } # as_fn_set_status
19902 # as_fn_exit STATUS
19903 # -----------------
19904 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
19908 as_fn_set_status
$1
19914 # Portably unset VAR.
19917 { eval $1=; unset $1;}
19919 as_unset
=as_fn_unset
19920 # as_fn_append VAR VALUE
19921 # ----------------------
19922 # Append the text in VALUE to the end of the definition contained in VAR. Take
19923 # advantage of any shell optimizations that allow amortized linear growth over
19924 # repeated appends, instead of the typical quadratic growth present in naive
19926 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev
/null
; then :
19927 eval 'as_fn_append ()
19938 # as_fn_arith ARG...
19939 # ------------------
19940 # Perform arithmetic evaluation on the ARGs, and store the result in the
19941 # global $as_val. Take advantage of shells that can avoid forks. The arguments
19942 # must be portable across $(()) and expr.
19943 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev
/null
; then :
19944 eval 'as_fn_arith ()
19951 as_val
=`expr "$@" || test $? -eq 1`
19956 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
19957 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
19963 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
19964 as_basename
=basename
19969 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
19975 as_me
=`$as_basename -- "$0" ||
19976 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
19977 X"$0" : 'X\(//\)$' \| \
19978 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
19980 sed '/^.*\/\([^/][^/]*\)\/*$/{
19994 # Avoid depending upon Character Ranges.
19995 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
19996 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
19997 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
19998 as_cr_digits
='0123456789'
19999 as_cr_alnum
=$as_cr_Letters$as_cr_digits
20001 ECHO_C
= ECHO_N
= ECHO_T
=
20002 case `echo -n x` in #(((((
20004 case `echo 'xy\c'` in
20005 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
20007 *) echo `echo ksh88 bug on AIX 6.1` > /dev
/null
20014 rm -f conf$$ conf$$.exe conf$$.
file
20015 if test -d conf$$.dir
; then
20016 rm -f conf$$.dir
/conf$$.
file
20019 mkdir conf$$.dir
2>/dev
/null
20021 if (echo >conf$$.
file) 2>/dev
/null
; then
20022 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
20024 # ... but there are two gotchas:
20025 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
20026 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
20027 # In both cases, we have to default to `cp -pR'.
20028 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
20030 elif ln conf$$.
file conf$$
2>/dev
/null
; then
20038 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
20039 rmdir conf$$.dir
2>/dev
/null
20044 # Create "$as_dir" as a directory, including parents if necessary.
20049 -*) as_dir
=.
/$as_dir;;
20051 test -d "$as_dir" ||
eval $as_mkdir_p ||
{
20055 *\'*) as_qdir
=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
20056 *) as_qdir
=$as_dir;;
20058 as_dirs
="'$as_qdir' $as_dirs"
20059 as_dir
=`$as_dirname -- "$as_dir" ||
20060 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20061 X"$as_dir" : 'X\(//\)[^/]' \| \
20062 X"$as_dir" : 'X\(//\)$' \| \
20063 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
20064 $as_echo X"$as_dir" |
20065 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20069 /^X\(\/\/\)[^/].*/{
20082 test -d "$as_dir" && break
20084 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
20085 } ||
test -d "$as_dir" || as_fn_error $?
"cannot create directory $as_dir"
20089 if mkdir
-p .
2>/dev
/null
; then
20090 as_mkdir_p
='mkdir -p "$as_dir"'
20092 test -d .
/-p && rmdir .
/-p
20097 # as_fn_executable_p FILE
20098 # -----------------------
20099 # Test if FILE is an executable regular file.
20100 as_fn_executable_p
()
20102 test -f "$1" && test -x "$1"
20103 } # as_fn_executable_p
20104 as_test_x
='test -x'
20105 as_executable_p
=as_fn_executable_p
20107 # Sed expression to map a string onto a valid CPP name.
20108 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
20110 # Sed expression to map a string onto a valid variable name.
20111 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
20115 ## ----------------------------------- ##
20116 ## Main body of $CONFIG_STATUS script. ##
20117 ## ----------------------------------- ##
20119 test $as_write_fail = 0 && chmod +x
$CONFIG_STATUS || ac_write_fail
=1
20121 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
20122 # Save the log message, to keep $0 and so on meaningful, and to
20123 # report actual input values of CONFIG_FILES etc. instead of their
20124 # values after options handling.
20126 This file was extended by PCRE $as_me 8.35, which was
20127 generated by GNU Autoconf 2.69. Invocation command line was
20129 CONFIG_FILES = $CONFIG_FILES
20130 CONFIG_HEADERS = $CONFIG_HEADERS
20131 CONFIG_LINKS = $CONFIG_LINKS
20132 CONFIG_COMMANDS = $CONFIG_COMMANDS
20135 on `(hostname || uname -n) 2>/dev/null | sed 1q`
20140 case $ac_config_files in *"
20141 "*) set x
$ac_config_files; shift; ac_config_files
=$
*;;
20144 case $ac_config_headers in *"
20145 "*) set x
$ac_config_headers; shift; ac_config_headers
=$
*;;
20149 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20150 # Files that config.status was made for.
20151 config_files="$ac_config_files"
20152 config_headers="$ac_config_headers"
20153 config_commands="$ac_config_commands"
20157 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
20159 \`$as_me' instantiates files and other configuration actions
20160 from templates according to the current configuration. Unless the files
20161 and actions are specified as TAGs, all are instantiated by default.
20163 Usage: $0 [OPTION]... [TAG]...
20165 -h, --help print this help, then exit
20166 -V, --version print version number and configuration settings, then exit
20167 --config print configuration, then exit
20168 -q, --quiet, --silent
20169 do not print progress messages
20170 -d, --debug don't remove temporary files
20171 --recheck update $as_me by reconfiguring in the same conditions
20172 --file=FILE[:TEMPLATE]
20173 instantiate the configuration file FILE
20174 --header=FILE[:TEMPLATE]
20175 instantiate the configuration header FILE
20177 Configuration files:
20180 Configuration headers:
20183 Configuration commands:
20186 Report bugs to the package provider."
20189 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20190 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
20192 PCRE config.status 8.35
20193 configured by $0, generated by GNU Autoconf 2.69,
20194 with options \\"\$ac_cs_config\\"
20196 Copyright (C) 2012 Free Software Foundation, Inc.
20197 This config.status script is free software; the Free Software Foundation
20198 gives unlimited permission to copy, distribute and modify it."
20205 test -n "\$AWK" || AWK=awk
20208 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
20209 # The default lists apply if the user does not specify any file.
20215 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
20216 ac_optarg
=`expr "X$1" : 'X[^=]*=\(.*\)'`
20220 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
20232 # Handling of the options.
20233 -recheck |
--recheck |
--rechec |
--reche |
--rech |
--rec |
--re |
--r)
20235 --version |
--versio |
--versi |
--vers |
--ver |
--ve |
--v |
-V )
20236 $as_echo "$ac_cs_version"; exit ;;
20237 --config |
--confi |
--conf |
--con |
--co |
--c )
20238 $as_echo "$ac_cs_config"; exit ;;
20239 --debug |
--debu |
--deb |
--de |
--d |
-d )
20241 --file |
--fil |
--fi |
--f )
20244 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
20245 '') as_fn_error $?
"missing file argument" ;;
20247 as_fn_append CONFIG_FILES
" '$ac_optarg'"
20248 ac_need_defaults
=false
;;
20249 --header |
--heade |
--head |
--hea )
20252 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
20254 as_fn_append CONFIG_HEADERS
" '$ac_optarg'"
20255 ac_need_defaults
=false
;;
20257 # Conflict between --help and --header
20258 as_fn_error $?
"ambiguous option: \`$1'
20259 Try \`$0 --help' for more information.";;
20260 --help |
--hel |
-h )
20261 $as_echo "$ac_cs_usage"; exit ;;
20262 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
20263 |
-silent |
--silent |
--silen |
--sile |
--sil |
--si |
--s)
20266 # This is an error.
20267 -*) as_fn_error $?
"unrecognized option: \`$1'
20268 Try \`$0 --help' for more information." ;;
20270 *) as_fn_append ac_config_targets
" $1"
20271 ac_need_defaults
=false
;;
20277 ac_configure_extra_args
=
20279 if $ac_cs_silent; then
20281 ac_configure_extra_args
="$ac_configure_extra_args --silent"
20285 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20286 if \$ac_cs_recheck; then
20287 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
20289 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
20290 CONFIG_SHELL='$SHELL'
20291 export CONFIG_SHELL
20296 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
20300 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
20301 ## Running $as_me. ##
20307 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20311 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
20314 # The HP-UX ksh and POSIX shell print the target directory to stdout
20315 # if CDPATH is set.
20316 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
20318 sed_quote_subst='$sed_quote_subst'
20319 double_quote_subst='$double_quote_subst'
20320 delay_variable_subst='$delay_variable_subst'
20321 AS='`$ECHO "$AS" | $SED "$delay_single_quote_subst"`'
20322 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
20323 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
20324 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
20325 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
20326 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
20327 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
20328 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
20329 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
20330 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
20331 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
20332 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
20333 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
20334 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
20335 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
20336 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
20337 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
20338 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
20339 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
20340 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
20341 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
20342 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
20343 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
20344 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
20345 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
20346 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
20347 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
20348 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
20349 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
20350 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
20351 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
20352 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
20353 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
20354 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
20355 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
20356 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
20357 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
20358 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
20359 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
20360 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
20361 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
20362 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
20363 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
20364 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
20365 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
20366 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
20367 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
20368 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
20369 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
20370 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
20371 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
20372 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
20373 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
20374 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
20375 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
20376 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
20377 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
20378 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"`'
20379 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
20380 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
20381 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
20382 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
20383 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
20384 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
20385 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
20386 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
20387 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
20388 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
20389 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
20390 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
20391 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
20392 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
20393 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
20394 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
20395 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
20396 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
20397 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
20398 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
20399 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
20400 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
20401 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
20402 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
20403 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
20404 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
20405 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
20406 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
20407 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
20408 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
20409 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
20410 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
20411 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
20412 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
20413 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
20414 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
20415 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
20416 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
20417 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
20418 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
20419 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
20420 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
20421 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
20422 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
20423 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
20424 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
20425 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
20426 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
20427 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
20428 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
20429 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
20430 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
20431 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
20432 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
20433 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
20434 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
20435 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
20436 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
20437 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
20438 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
20439 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
20440 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
20441 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
20442 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
20443 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
20444 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
20445 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
20446 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
20447 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
20448 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
20449 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
20450 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
20451 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
20452 compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
20453 predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
20454 postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
20455 predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
20456 postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
20457 compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
20458 LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
20459 reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
20460 reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
20461 old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
20462 compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
20463 GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
20464 lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
20465 lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
20466 lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
20467 lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
20468 lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
20469 archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
20470 enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
20471 export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
20472 whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
20473 compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
20474 old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
20475 old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
20476 archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
20477 archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
20478 module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
20479 module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
20480 with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
20481 allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
20482 no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
20483 hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
20484 hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
20485 hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
20486 hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
20487 hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
20488 hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
20489 hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
20490 inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
20491 link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
20492 always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
20493 export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
20494 exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
20495 include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
20496 prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
20497 postlink_cmds_CXX='`$ECHO "$postlink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
20498 file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
20499 hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
20500 compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
20501 predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
20502 postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
20503 predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
20504 postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
20505 compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
20508 LTCFLAGS='$LTCFLAGS'
20509 compiler='$compiler_DEFAULT'
20511 # A function that is used when there is no print builtin or printf.
20512 func_fallback_echo ()
20514 eval 'cat <<_LTECHO_EOF
20519 # Quote evaled strings.
20536 deplibs_check_method \
20540 sharedlib_from_linklib_cmd \
20543 archiver_list_spec \
20549 lt_cv_sys_global_symbol_pipe \
20550 lt_cv_sys_global_symbol_to_cdecl \
20551 lt_cv_sys_global_symbol_to_c_name_address \
20552 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
20553 nm_file_list_spec \
20554 lt_prog_compiler_no_builtin_flag \
20555 lt_prog_compiler_pic \
20556 lt_prog_compiler_wl \
20557 lt_prog_compiler_static \
20558 lt_cv_prog_compiler_c_o \
20567 export_dynamic_flag_spec \
20568 whole_archive_flag_spec \
20569 compiler_needs_object \
20571 allow_undefined_flag \
20572 no_undefined_flag \
20573 hardcode_libdir_flag_spec \
20574 hardcode_libdir_separator \
20578 variables_saved_for_relink \
20580 library_names_spec \
20582 install_override_mode \
20586 compiler_lib_search_dirs \
20591 compiler_lib_search_path \
20595 lt_prog_compiler_no_builtin_flag_CXX \
20596 lt_prog_compiler_pic_CXX \
20597 lt_prog_compiler_wl_CXX \
20598 lt_prog_compiler_static_CXX \
20599 lt_cv_prog_compiler_c_o_CXX \
20600 export_dynamic_flag_spec_CXX \
20601 whole_archive_flag_spec_CXX \
20602 compiler_needs_object_CXX \
20604 allow_undefined_flag_CXX \
20605 no_undefined_flag_CXX \
20606 hardcode_libdir_flag_spec_CXX \
20607 hardcode_libdir_separator_CXX \
20608 exclude_expsyms_CXX \
20609 include_expsyms_CXX \
20610 file_list_spec_CXX \
20611 compiler_lib_search_dirs_CXX \
20612 predep_objects_CXX \
20613 postdep_objects_CXX \
20616 compiler_lib_search_path_CXX; do
20617 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
20618 *[\\\\\\\`\\"\\\$]*)
20619 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
20622 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
20627 # Double-quote double-evaled strings.
20628 for var in reload_cmds \
20629 old_postinstall_cmds \
20630 old_postuninstall_cmds \
20632 extract_expsyms_cmds \
20633 old_archive_from_new_cmds \
20634 old_archive_from_expsyms_cmds \
20636 archive_expsym_cmds \
20638 module_expsym_cmds \
20639 export_symbols_cmds \
20643 postuninstall_cmds \
20645 sys_lib_search_path_spec \
20646 sys_lib_dlsearch_path_spec \
20648 old_archive_cmds_CXX \
20649 old_archive_from_new_cmds_CXX \
20650 old_archive_from_expsyms_cmds_CXX \
20652 archive_expsym_cmds_CXX \
20654 module_expsym_cmds_CXX \
20655 export_symbols_cmds_CXX \
20657 postlink_cmds_CXX; do
20658 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
20659 *[\\\\\\\`\\"\\\$]*)
20660 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
20663 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
20668 ac_aux_dir='$ac_aux_dir'
20669 xsi_shell='$xsi_shell'
20670 lt_shell_append='$lt_shell_append'
20672 # See if we are running on zsh, and set the options which allow our
20673 # commands through without removal of \ escapes INIT.
20674 if test -n "\${ZSH_VERSION+set}" ; then
20675 setopt NO_GLOB_SUBST
20681 TIMESTAMP='$TIMESTAMP'
20692 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
20694 # Handling of arguments.
20695 for ac_config_target
in $ac_config_targets
20697 case $ac_config_target in
20698 "config.h") CONFIG_HEADERS
="$CONFIG_HEADERS config.h" ;;
20699 "depfiles") CONFIG_COMMANDS
="$CONFIG_COMMANDS depfiles" ;;
20700 "libtool") CONFIG_COMMANDS
="$CONFIG_COMMANDS libtool" ;;
20701 "Makefile") CONFIG_FILES
="$CONFIG_FILES Makefile" ;;
20702 "libpcre.pc") CONFIG_FILES
="$CONFIG_FILES libpcre.pc" ;;
20703 "libpcre16.pc") CONFIG_FILES
="$CONFIG_FILES libpcre16.pc" ;;
20704 "libpcre32.pc") CONFIG_FILES
="$CONFIG_FILES libpcre32.pc" ;;
20705 "libpcreposix.pc") CONFIG_FILES
="$CONFIG_FILES libpcreposix.pc" ;;
20706 "libpcrecpp.pc") CONFIG_FILES
="$CONFIG_FILES libpcrecpp.pc" ;;
20707 "pcre-config") CONFIG_FILES
="$CONFIG_FILES pcre-config" ;;
20708 "pcre.h") CONFIG_FILES
="$CONFIG_FILES pcre.h" ;;
20709 "pcre_stringpiece.h") CONFIG_FILES
="$CONFIG_FILES pcre_stringpiece.h" ;;
20710 "pcrecpparg.h") CONFIG_FILES
="$CONFIG_FILES pcrecpparg.h" ;;
20711 "script-chmod") CONFIG_COMMANDS
="$CONFIG_COMMANDS script-chmod" ;;
20712 "delete-old-chartables") CONFIG_COMMANDS
="$CONFIG_COMMANDS delete-old-chartables" ;;
20714 *) as_fn_error $?
"invalid argument: \`$ac_config_target'" "$LINENO" 5;;
20719 # If the user did not use the arguments to specify the items to instantiate,
20720 # then the envvar interface is used. Set only those that are not.
20721 # We use the long form for the default assignment because of an extremely
20722 # bizarre bug on SunOS 4.1.3.
20723 if $ac_need_defaults; then
20724 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
20725 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS
=$config_headers
20726 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS
=$config_commands
20729 # Have a temporary directory for convenience. Make it in the build tree
20730 # simply because there is no reason against having it here, and in addition,
20731 # creating and moving files from /tmp can sometimes cause problems.
20732 # Hook for its removal unless debugging.
20733 # Note that there is a small window in which the directory will not be cleaned:
20734 # after its creation but before its name has been assigned to `$tmp'.
20738 trap 'exit_status=$?
20739 : "${ac_tmp:=$tmp}"
20740 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
20742 trap 'as_fn_exit 1' 1 2 13 15
20744 # Create a (secure) tmp directory for tmp files.
20747 tmp
=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
20751 tmp
=.
/conf$$
-$RANDOM
20752 (umask 077 && mkdir
"$tmp")
20753 } || as_fn_error $?
"cannot create a temporary directory in ." "$LINENO" 5
20756 # Set up the scripts for CONFIG_FILES section.
20757 # No need to generate them if there are no CONFIG_FILES.
20758 # This happens for instance with `./config.status config.h'.
20759 if test -n "$CONFIG_FILES"; then
20762 ac_cr
=`echo X | tr X '\015'`
20763 # On cygwin, bash can eat \r inside `` if the user requested igncr.
20764 # But we know of no other shell where ac_cr would be empty at this
20765 # point, so we can use a bashism as a fallback.
20766 if test "x$ac_cr" = x
; then
20767 eval ac_cr
=\$
\'\\r
\'
20769 ac_cs_awk_cr
=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
20770 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
20773 ac_cs_awk_cr
=$ac_cr
20776 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
20781 echo "cat >conf$$subs.awk <<_ACEOF" &&
20782 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
20784 } >conf$$subs.sh ||
20785 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
20786 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
20788 for ac_last_try in false false false false false :; do
20789 . ./conf$$subs.sh ||
20790 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
20792 ac_delim_n=`sed -n "s
/.
*$ac_delim\$
/X
/p
" conf$$subs.awk | grep -c X`
20793 if test $ac_delim_n = $ac_delim_num; then
20795 elif $ac_last_try; then
20796 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
20798 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
20801 rm -f conf$$subs.sh
20803 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20804 cat >>"\
$ac_tmp/subs1.
awk" <<\\_ACAWK &&
20808 s/^/S["/; s
/!.
*/"]=/
20818 s/\(.\{148\}\)..*/\1/
20820 s/["\\]/\\&/g
; s
/^
/"/; s/$/\\n"\\/
20825 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
20832 s/\(.\{148\}\)..*/\1/
20834 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/
20838 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
20843 ' <conf$$subs.awk | sed '
20848 ' >>$CONFIG_STATUS || ac_write_fail=1
20849 rm -f conf$$subs.awk
20850 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20852 cat >>"\
$ac_tmp/subs1.
awk" <<_ACAWK &&
20853 for (key in S) S_is_set[key] = 1
20859 nfields = split(line, field, "@
")
20861 len = length(field[1])
20862 for (i = 2; i < nfields; i++) {
20864 keylen = length(key)
20865 if (S_is_set[key]) {
20867 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
20868 len += length(value) + length(field[++i])
20879 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20880 if sed "s
/$ac_cr//" < /dev/null > /dev/null 2>&1; then
20881 sed "s
/$ac_cr\$
//; s
/$ac_cr/$ac_cs_awk_cr/g
"
20884 fi < "$ac_tmp/subs1.
awk" > "$ac_tmp/subs.
awk" \
20885 || as_fn_error $? "could not setup config files machinery
" "$LINENO" 5
20888 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
20889 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".
", strip leading and
20890 # trailing colons and then remove the whole line if VPATH becomes empty
20891 # (actually we leave an empty line to preserve line numbers).
20892 if test "x
$srcdir" = x.; then
20893 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
20911 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20912 fi # test -n "$CONFIG_FILES"
20914 # Set up the scripts for CONFIG_HEADERS section.
20915 # No need to generate them if there are no CONFIG_HEADERS.
20916 # This happens for instance with `./config.status Makefile'.
20917 if test -n "$CONFIG_HEADERS"; then
20918 cat >"$ac_tmp/defines.
awk" <<\_ACAWK ||
20922 # Transform confdefs.h into an awk script `defines.awk', embedded as
20923 # here-document in config.status, that substitutes the proper values into
20924 # config.h.in to produce config.h.
20926 # Create a delimiter string that does not exist in confdefs.h, to ease
20927 # handling of long lines.
20929 for ac_last_try in false false :; do
20930 ac_tt=`sed -n "/$ac_delim/p
" confdefs.h`
20931 if test -z "$ac_tt"; then
20933 elif $ac_last_try; then
20934 as_fn_error $? "could not
make $CONFIG_HEADERS" "$LINENO" 5
20936 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
20940 # For the awk script, D is an array of macro values keyed by name,
20941 # likewise P contains macro parameters if any. Preserve backslash
20942 # newline sequences.
20944 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
20946 s/.\{148\}/&'"$ac_delim"'/g
20949 s/^[ ]*#[ ]*define[ ][ ]*/ /
20956 s
/^ \
('"$ac_word_re"'\
)\
(([^
()]*)\
)[ ]*\
(.
*\
)/P
["\1"]="\2"\
20958 s
/^ \
('"$ac_word_re"'\
)[ ]*\
(.
*\
)/D
["\1"]=" \2"/p
20962 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\
1"]="\
2"\
20963 D["\
1"]=" \
3\\\\\\n
"\\/p
20965 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\
1"]=" \
2\\\\\\n
"\\/p
20970 s/.\{148\}/&'"$ac_delim"'/g
20975 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/p
20978 s
/["\\]/\\&/g; s/^/"/; s
/$
/\\\\\\n
"\\/p
20980 ' <confdefs.h | sed '
20981 s/'"$ac_delim"'/"\\\
20982 "/g' >>$CONFIG_STATUS || ac_write_fail=1
20984 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20985 for (key in D) D_is_set[key] = 1
20988 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
20990 split(line, arg, " ")
20991 if (arg[1] == "#") {
20995 defundef
= substr
(arg
[1], 2)
20998 split(mac1
, mac2
, "(") #)
21000 prefix
= substr
(line
, 1, index
(line
, defundef
) - 1)
21001 if (D_is_set
[macro
]) {
21002 # Preserve the white space surrounding the "#".
21003 print prefix
"define", macro P
[macro
] D
[macro
]
21006 # Replace #undef with comments. This is necessary, for example,
21007 # in the case of _POSIX_SOURCE, which is predefined and required
21008 # on some systems where configure will not decide to define it.
21009 if (defundef
== "undef") {
21010 print
"/*", prefix defundef
, macro
, "*/"
21018 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
21019 as_fn_error $?
"could not setup config headers machinery" "$LINENO" 5
21020 fi # test -n "$CONFIG_HEADERS"
21023 eval set X
" :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
21028 :[FHLC
]) ac_mode
=$ac_tag; continue;;
21030 case $ac_mode$ac_tag in
21032 :L
* |
:C
*:*) as_fn_error $?
"invalid tag \`$ac_tag'" "$LINENO" 5;;
21033 :[FH
]-) ac_tag
=-:-;;
21034 :[FH
]*) ac_tag
=$ac_tag:$ac_tag.
in;;
21051 -) ac_f
="$ac_tmp/stdin";;
21052 *) # Look for the file first in the build tree, then in the source tree
21053 # (if the path is not absolute). The absolute path cannot be DOS-style,
21054 # because $ac_f cannot contain `:'.
21058 *) test -f "$srcdir/$ac_f" && ac_f
="$srcdir/$ac_f";;
21060 as_fn_error
1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
21062 case $ac_f in *\'*) ac_f
=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
21063 as_fn_append ac_file_inputs
" '$ac_f'"
21066 # Let's still pretend it is `configure' which instantiates (i.e., don't
21067 # use $as_me), people would be surprised to read:
21068 # /* config.h. Generated by config.status. */
21069 configure_input
='Generated from '`
21070 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
21072 if test x
"$ac_file" != x-
; then
21073 configure_input
="$ac_file. $configure_input"
21074 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
21075 $as_echo "$as_me: creating $ac_file" >&6;}
21077 # Neutralize special characters interpreted by sed in replacement strings.
21078 case $configure_input in #(
21079 *\
&* |
*\|
* |
*\\* )
21080 ac_sed_conf_input
=`$as_echo "$configure_input" |
21081 sed 's/[\\\\&|]/\\\\&/g'`;; #(
21082 *) ac_sed_conf_input
=$configure_input;;
21086 *:-:* |
*:-) cat >"$ac_tmp/stdin" \
21087 || as_fn_error $?
"could not create $ac_file" "$LINENO" 5 ;;
21092 ac_dir
=`$as_dirname -- "$ac_file" ||
21093 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21094 X"$ac_file" : 'X\(//\)[^/]' \| \
21095 X"$ac_file" : 'X\(//\)$' \| \
21096 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
21097 $as_echo X"$ac_file" |
21098 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21102 /^X\(\/\/\)[^/].*/{
21115 as_dir
="$ac_dir"; as_fn_mkdir_p
21119 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
21121 ac_dir_suffix
=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
21122 # A ".." for each directory in $ac_dir_suffix.
21123 ac_top_builddir_sub
=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
21124 case $ac_top_builddir_sub in
21125 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
21126 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
21129 ac_abs_top_builddir
=$ac_pwd
21130 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
21131 # for backward compatibility:
21132 ac_top_builddir
=$ac_top_build_prefix
21135 .
) # We are building in place.
21137 ac_top_srcdir
=$ac_top_builddir_sub
21138 ac_abs_top_srcdir
=$ac_pwd ;;
21139 [\\/]* | ?
:[\\/]* ) # Absolute name.
21140 ac_srcdir
=$srcdir$ac_dir_suffix;
21141 ac_top_srcdir
=$srcdir
21142 ac_abs_top_srcdir
=$srcdir ;;
21143 *) # Relative name.
21144 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
21145 ac_top_srcdir
=$ac_top_build_prefix$srcdir
21146 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
21148 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
21158 [\\/$
]* | ?
:[\\/]* ) ac_INSTALL
=$INSTALL ;;
21159 *) ac_INSTALL
=$ac_top_build_prefix$INSTALL ;;
21161 ac_MKDIR_P
=$MKDIR_P
21163 [\\/$
]* | ?
:[\\/]* ) ;;
21164 */*) ac_MKDIR_P
=$ac_top_build_prefix$MKDIR_P ;;
21168 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
21169 # If the template does not know about datarootdir, expand it.
21170 # FIXME: This hack should be removed a few years after 2.60.
21171 ac_datarootdir_hack
=; ac_datarootdir_seen
=
21182 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
21183 *datarootdir
*) ac_datarootdir_seen
=yes;;
21184 *@datadir@
*|
*@docdir@
*|
*@infodir@
*|
*@localedir@
*|
*@mandir@
*)
21185 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
21186 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
21188 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21189 ac_datarootdir_hack='
21190 s&@datadir@&$datadir&g
21191 s&@docdir@&$docdir&g
21192 s&@infodir@&$infodir&g
21193 s&@localedir@&$localedir&g
21194 s&@mandir@&$mandir&g
21195 s&\\\${datarootdir}&$datarootdir&g' ;;
21199 # Neutralize VPATH when `$srcdir' = `.'.
21200 # Shell code in configure.ac might set extrasub.
21201 # FIXME: do we really want to maintain this feature?
21202 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21203 ac_sed_extra="$ac_vpsub
21206 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
21208 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
21209 s|@configure_input@|
$ac_sed_conf_input|
;t t
21210 s
&@top_builddir@
&$ac_top_builddir_sub&;t t
21211 s
&@top_build_prefix@
&$ac_top_build_prefix&;t t
21212 s
&@srcdir@
&$ac_srcdir&;t t
21213 s
&@abs_srcdir@
&$ac_abs_srcdir&;t t
21214 s
&@top_srcdir@
&$ac_top_srcdir&;t t
21215 s
&@abs_top_srcdir@
&$ac_abs_top_srcdir&;t t
21216 s
&@builddir@
&$ac_builddir&;t t
21217 s
&@abs_builddir@
&$ac_abs_builddir&;t t
21218 s
&@abs_top_builddir@
&$ac_abs_top_builddir&;t t
21219 s
&@INSTALL@
&$ac_INSTALL&;t t
21220 s
&@MKDIR_P@
&$ac_MKDIR_P&;t t
21221 $ac_datarootdir_hack
21223 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.
awk" \
21224 >$ac_tmp/out || as_fn_error $? "could not create
$ac_file" "$LINENO" 5
21226 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
21227 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out
"`; test -n "$ac_out"; } &&
21228 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
21229 "$ac_tmp/out
"`; test -z "$ac_out"; } &&
21230 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: $ac_file contains a reference to the variable \
`datarootdir'
21231 which seems to be undefined. Please make sure it is defined" >&5
21232 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir
'
21233 which seems to be undefined. Please make sure it is defined" >&2;}
21235 rm -f "$ac_tmp/stdin"
21237 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
21238 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
21240 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
21246 if test x"$ac_file" != x-; then
21248 $as_echo "/* $configure_input */" \
21249 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
21250 } >"$ac_tmp/config.h" \
21251 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
21252 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
21253 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
21254 $as_echo "$as_me: $ac_file is unchanged" >&6;}
21257 mv "$ac_tmp/config.h" "$ac_file" \
21258 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
21261 $as_echo "/* $configure_input */" \
21262 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
21263 || as_fn_error $? "could not create -" "$LINENO" 5
21265 # Compute "$ac_file"'s index
in $config_headers.
21268 for _am_header
in $config_headers :; do
21269 case $_am_header in
21270 $_am_arg |
$_am_arg:* )
21273 _am_stamp_count
=`expr $_am_stamp_count + 1` ;;
21276 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
21277 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21278 X"$_am_arg" : 'X\(//\)[^/]' \| \
21279 X"$_am_arg" : 'X\(//\)$' \| \
21280 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
21281 $as_echo X"$_am_arg" |
21282 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21286 /^X\(\/\/\)[^/].*/{
21298 s/.*/./; q'`/stamp-h
$_am_stamp_count
21301 :C
) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
21302 $as_echo "$as_me: executing $ac_file commands" >&6;}
21307 case $ac_file$ac_mode in
21308 "depfiles":C
) test x
"$AMDEP_TRUE" != x
"" ||
{
21309 # Older Autoconf quotes --file arguments for eval, but not when files
21310 # are listed without --file. Let's play safe and only enable the eval
21311 # if we detect the quoting.
21312 case $CONFIG_FILES in
21313 *\'*) eval set x
"$CONFIG_FILES" ;;
21314 *) set x
$CONFIG_FILES ;;
21319 # Strip MF so we end up with the name of the file.
21320 mf
=`echo "$mf" | sed -e 's/:.*$//'`
21321 # Check whether this is an Automake generated Makefile or not.
21322 # We used to match only the files named 'Makefile.in', but
21323 # some people rename them; so instead we look at the file content.
21324 # Grep'ing the first line is not enough: some people post-process
21325 # each Makefile.in and add a new line on top of each file to say so.
21326 # Grep'ing the whole file is not good either: AIX grep has a line
21327 # limit of 2048, but all sed's we know have understand at least 4000.
21328 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" |
grep X
>/dev
/null
2>&1; then
21329 dirpart
=`$as_dirname -- "$mf" ||
21330 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21331 X"$mf" : 'X\(//\)[^/]' \| \
21332 X"$mf" : 'X\(//\)$' \| \
21333 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
21335 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21339 /^X\(\/\/\)[^/].*/{
21355 # Extract the definition of DEPDIR, am__include, and am__quote
21356 # from the Makefile without running 'make'.
21357 DEPDIR
=`sed -n 's/^DEPDIR = //p' < "$mf"`
21358 test -z "$DEPDIR" && continue
21359 am__include
=`sed -n 's/^am__include = //p' < "$mf"`
21360 test -z "$am__include" && continue
21361 am__quote
=`sed -n 's/^am__quote = //p' < "$mf"`
21362 # Find all dependency output files, they are included files with
21363 # $(DEPDIR) in their names. We invoke sed twice because it is the
21364 # simplest approach to changing $(DEPDIR) to its actual value in the
21366 for file in `sed -n "
21367 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
21368 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
21369 # Make sure the directory exists.
21370 test -f "$dirpart/$file" && continue
21371 fdir
=`$as_dirname -- "$file" ||
21372 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21373 X"$file" : 'X\(//\)[^/]' \| \
21374 X"$file" : 'X\(//\)$' \| \
21375 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
21376 $as_echo X"$file" |
21377 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21381 /^X\(\/\/\)[^/].*/{
21394 as_dir
=$dirpart/$fdir; as_fn_mkdir_p
21395 # echo "creating $dirpart/$file"
21396 echo '# dummy' > "$dirpart/$file"
21403 # See if we are running on zsh, and set the options which allow our
21404 # commands through without removal of \ escapes.
21405 if test -n "${ZSH_VERSION+set}" ; then
21406 setopt NO_GLOB_SUBST
21409 cfgfile
="${ofile}T"
21410 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
21413 cat <<_LT_EOF >> "$cfgfile"
21416 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
21417 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
21418 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
21419 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
21421 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
21422 # 2006, 2007, 2008, 2009, 2010, 2011 Free Software
21424 # Written by Gordon Matzigkeit, 1996
21426 # This file is part of GNU Libtool.
21428 # GNU Libtool is free software; you can redistribute it and/or
21429 # modify it under the terms of the GNU General Public License as
21430 # published by the Free Software Foundation; either version 2 of
21431 # the License, or (at your option) any later version.
21433 # As a special exception to the GNU General Public License,
21434 # if you distribute this file as part of a program or library that
21435 # is built using GNU Libtool, you may include this file under the
21436 # same distribution terms that you use for the rest of that program.
21438 # GNU Libtool is distributed in the hope that it will be useful,
21439 # but WITHOUT ANY WARRANTY; without even the implied warranty of
21440 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
21441 # GNU General Public License for more details.
21443 # You should have received a copy of the GNU General Public License
21444 # along with GNU Libtool; see the file COPYING. If not, a copy
21445 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
21446 # obtained by writing to the Free Software Foundation, Inc.,
21447 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
21450 # The names of the tagged configurations supported by this script.
21451 available_tags="CXX "
21453 # ### BEGIN LIBTOOL CONFIG
21455 # Assembler program.
21458 # DLL creation program.
21459 DLLTOOL=$lt_DLLTOOL
21461 # Object dumper program.
21462 OBJDUMP=$lt_OBJDUMP
21464 # Which release of libtool.m4 was used?
21465 macro_version=$macro_version
21466 macro_revision=$macro_revision
21468 # Whether or not to build shared libraries.
21469 build_libtool_libs=$enable_shared
21471 # Whether or not to build static libraries.
21472 build_old_libs=$enable_static
21474 # What type of objects to build.
21477 # Whether or not to optimize for fast installation.
21478 fast_install=$enable_fast_install
21480 # Shell to use when invoking shell scripts.
21483 # An echo program that protects backslashes.
21486 # The PATH separator for the build system.
21487 PATH_SEPARATOR=$lt_PATH_SEPARATOR
21490 host_alias=$host_alias
21494 # The build system.
21495 build_alias=$build_alias
21499 # A sed program that does not truncate output.
21502 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
21503 Xsed="\$SED -e 1s/^X//"
21505 # A grep program that handles long lines.
21511 # A literal string matcher.
21514 # A BSD- or MS-compatible name lister.
21517 # Whether we need soft or hard links.
21520 # What is the maximum length of a command?
21521 max_cmd_len=$max_cmd_len
21523 # Object file suffix (normally "o").
21526 # Executable file suffix (normally "").
21529 # whether the shell understands "unset".
21532 # turn spaces into newlines.
21535 # turn newlines into spaces.
21538 # convert \$build file names to \$host format.
21539 to_host_file_cmd=$lt_cv_to_host_file_cmd
21541 # convert \$build files to toolchain format.
21542 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
21544 # Method to check whether dependent libraries are shared objects.
21545 deplibs_check_method=$lt_deplibs_check_method
21547 # Command to use when deplibs_check_method = "file_magic".
21548 file_magic_cmd=$lt_file_magic_cmd
21550 # How to find potential files when deplibs_check_method = "file_magic".
21551 file_magic_glob=$lt_file_magic_glob
21553 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
21554 want_nocaseglob=$lt_want_nocaseglob
21556 # Command to associate shared and link libraries.
21557 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
21562 # Flags to create an archive.
21563 AR_FLAGS=$lt_AR_FLAGS
21565 # How to feed a file listing to the archiver.
21566 archiver_list_spec=$lt_archiver_list_spec
21568 # A symbol stripping program.
21571 # Commands used to install an old-style archive.
21573 old_postinstall_cmds=$lt_old_postinstall_cmds
21574 old_postuninstall_cmds=$lt_old_postuninstall_cmds
21576 # Whether to use a lock for old archive extraction.
21577 lock_old_archive_extraction=$lock_old_archive_extraction
21582 # LTCC compiler flags.
21583 LTCFLAGS=$lt_CFLAGS
21585 # Take the output of nm and produce a listing of raw symbols and C names.
21586 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
21588 # Transform the output of nm in a proper C declaration.
21589 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
21591 # Transform the output of nm in a C name address pair.
21592 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
21594 # Transform the output of nm in a C name address pair when lib prefix is needed.
21595 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
21597 # Specify filename containing input files for \$NM.
21598 nm_file_list_spec=$lt_nm_file_list_spec
21600 # The root where to search for dependent libraries,and in which our libraries should be installed.
21601 lt_sysroot=$lt_sysroot
21603 # The name of the directory that contains temporary libtool files.
21606 # Used to examine libraries when file_magic_cmd begins with "file".
21607 MAGIC_CMD=$MAGIC_CMD
21609 # Must we lock files when doing compilation?
21610 need_locks=$lt_need_locks
21613 MANIFEST_TOOL=$lt_MANIFEST_TOOL
21615 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
21616 DSYMUTIL=$lt_DSYMUTIL
21618 # Tool to change global to local symbols on Mac OS X.
21621 # Tool to manipulate fat objects and archives on Mac OS X.
21624 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
21627 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
21628 OTOOL64=$lt_OTOOL64
21630 # Old archive suffix (normally "a").
21633 # Shared library suffix (normally ".so").
21634 shrext_cmds=$lt_shrext_cmds
21636 # The commands to extract the exported symbol list from a shared archive.
21637 extract_expsyms_cmds=$lt_extract_expsyms_cmds
21639 # Variables whose values should be saved in libtool wrapper scripts and
21640 # restored at link time.
21641 variables_saved_for_relink=$lt_variables_saved_for_relink
21643 # Do we need the "lib" prefix for modules?
21644 need_lib_prefix=$need_lib_prefix
21646 # Do we need a version for libraries?
21647 need_version=$need_version
21649 # Library versioning type.
21650 version_type=$version_type
21652 # Shared library runtime path variable.
21653 runpath_var=$runpath_var
21655 # Shared library path variable.
21656 shlibpath_var=$shlibpath_var
21658 # Is shlibpath searched before the hard-coded library search path?
21659 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
21661 # Format of library name prefix.
21662 libname_spec=$lt_libname_spec
21664 # List of archive names. First name is the real one, the rest are links.
21665 # The last name is the one that the linker finds with -lNAME
21666 library_names_spec=$lt_library_names_spec
21668 # The coded name of the library, if different from the real name.
21669 soname_spec=$lt_soname_spec
21671 # Permission mode override for installation of shared libraries.
21672 install_override_mode=$lt_install_override_mode
21674 # Command to use after installation of a shared archive.
21675 postinstall_cmds=$lt_postinstall_cmds
21677 # Command to use after uninstallation of a shared archive.
21678 postuninstall_cmds=$lt_postuninstall_cmds
21680 # Commands used to finish a libtool library installation in a directory.
21681 finish_cmds=$lt_finish_cmds
21683 # As "finish_cmds", except a single script fragment to be evaled but
21685 finish_eval=$lt_finish_eval
21687 # Whether we should hardcode library paths into libraries.
21688 hardcode_into_libs=$hardcode_into_libs
21690 # Compile-time system search path for libraries.
21691 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
21693 # Run-time system search path for libraries.
21694 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
21696 # Whether dlopen is supported.
21697 dlopen_support=$enable_dlopen
21699 # Whether dlopen of programs is supported.
21700 dlopen_self=$enable_dlopen_self
21702 # Whether dlopen of statically linked programs is supported.
21703 dlopen_self_static=$enable_dlopen_self_static
21705 # Commands to strip libraries.
21706 old_striplib=$lt_old_striplib
21707 striplib=$lt_striplib
21710 # The linker used to build libraries.
21713 # How to create reloadable object files.
21714 reload_flag=$lt_reload_flag
21715 reload_cmds=$lt_reload_cmds
21717 # Commands used to build an old-style archive.
21718 old_archive_cmds=$lt_old_archive_cmds
21720 # A language specific compiler.
21723 # Is the compiler the GNU compiler?
21726 # Compiler flag to turn off builtin functions.
21727 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
21729 # Additional compiler flags for building library objects.
21730 pic_flag=$lt_lt_prog_compiler_pic
21732 # How to pass a linker flag through the compiler.
21733 wl=$lt_lt_prog_compiler_wl
21735 # Compiler flag to prevent dynamic linking.
21736 link_static_flag=$lt_lt_prog_compiler_static
21738 # Does compiler simultaneously support -c and -o options?
21739 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
21741 # Whether or not to add -lc for building shared libraries.
21742 build_libtool_need_lc=$archive_cmds_need_lc
21744 # Whether or not to disallow shared libs when runtime libs are static.
21745 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
21747 # Compiler flag to allow reflexive dlopens.
21748 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
21750 # Compiler flag to generate shared objects directly from archives.
21751 whole_archive_flag_spec=$lt_whole_archive_flag_spec
21753 # Whether the compiler copes with passing no objects directly.
21754 compiler_needs_object=$lt_compiler_needs_object
21756 # Create an old-style archive from a shared archive.
21757 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
21759 # Create a temporary old-style archive to link instead of a shared archive.
21760 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
21762 # Commands used to build a shared archive.
21763 archive_cmds=$lt_archive_cmds
21764 archive_expsym_cmds=$lt_archive_expsym_cmds
21766 # Commands used to build a loadable module if different from building
21767 # a shared archive.
21768 module_cmds=$lt_module_cmds
21769 module_expsym_cmds=$lt_module_expsym_cmds
21771 # Whether we are building with GNU ld or not.
21772 with_gnu_ld=$lt_with_gnu_ld
21774 # Flag that allows shared libraries with undefined symbols to be built.
21775 allow_undefined_flag=$lt_allow_undefined_flag
21777 # Flag that enforces no undefined symbols.
21778 no_undefined_flag=$lt_no_undefined_flag
21780 # Flag to hardcode \$libdir into a binary during linking.
21781 # This must work even if \$libdir does not exist
21782 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
21784 # Whether we need a single "-rpath" flag with a separated argument.
21785 hardcode_libdir_separator=$lt_hardcode_libdir_separator
21787 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
21788 # DIR into the resulting binary.
21789 hardcode_direct=$hardcode_direct
21791 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
21792 # DIR into the resulting binary and the resulting library dependency is
21793 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
21794 # library is relocated.
21795 hardcode_direct_absolute=$hardcode_direct_absolute
21797 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
21798 # into the resulting binary.
21799 hardcode_minus_L=$hardcode_minus_L
21801 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
21802 # into the resulting binary.
21803 hardcode_shlibpath_var=$hardcode_shlibpath_var
21805 # Set to "yes" if building a shared library automatically hardcodes DIR
21806 # into the library and all subsequent libraries and executables linked
21808 hardcode_automatic=$hardcode_automatic
21810 # Set to yes if linker adds runtime paths of dependent libraries
21811 # to runtime path list.
21812 inherit_rpath=$inherit_rpath
21814 # Whether libtool must link a program against all its dependency libraries.
21815 link_all_deplibs=$link_all_deplibs
21817 # Set to "yes" if exported symbols are required.
21818 always_export_symbols=$always_export_symbols
21820 # The commands to list exported symbols.
21821 export_symbols_cmds=$lt_export_symbols_cmds
21823 # Symbols that should not be listed in the preloaded symbols.
21824 exclude_expsyms=$lt_exclude_expsyms
21826 # Symbols that must always be exported.
21827 include_expsyms=$lt_include_expsyms
21829 # Commands necessary for linking programs (against libraries) with templates.
21830 prelink_cmds=$lt_prelink_cmds
21832 # Commands necessary for finishing linking programs.
21833 postlink_cmds=$lt_postlink_cmds
21835 # Specify filename containing input files.
21836 file_list_spec=$lt_file_list_spec
21838 # How to hardcode a shared library path into an executable.
21839 hardcode_action=$hardcode_action
21841 # The directories searched by this compiler when creating a shared library.
21842 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
21844 # Dependencies to place before and after the objects being linked to
21845 # create a shared library.
21846 predep_objects=$lt_predep_objects
21847 postdep_objects=$lt_postdep_objects
21848 predeps=$lt_predeps
21849 postdeps=$lt_postdeps
21851 # The library search path used internally by the compiler when linking
21852 # a shared library.
21853 compiler_lib_search_path=$lt_compiler_lib_search_path
21855 # ### END LIBTOOL CONFIG
21861 cat <<\_LT_EOF
>> "$cfgfile"
21862 # AIX sometimes has problems with the GCC collect2 program. For some
21863 # reason, if we set the COLLECT_NAMES environment variable, the problems
21864 # vanish in a puff of smoke.
21865 if test "X${COLLECT_NAMES+set}" != Xset
; then
21867 export COLLECT_NAMES
21874 ltmain
="$ac_aux_dir/ltmain.sh"
21877 # We use sed instead of cat because bash on DJGPP gets confused if
21878 # if finds mixed CR/LF and LF-only lines. Since sed operates in
21879 # text mode, it properly converts lines to CR/LF. This bash problem
21880 # is reportedly fixed, but why not run on old versions too?
21881 sed '$q' "$ltmain" >> "$cfgfile" \
21882 ||
(rm -f "$cfgfile"; exit 1)
21884 if test x
"$xsi_shell" = xyes
; then
21885 sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
21889 \ */*) func_dirname_result="${1%/*}${2}" ;;\
21890 \ * ) func_dirname_result="${3}" ;;\
21892 } # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
21893 && mv -f "$cfgfile.tmp" "$cfgfile" \
21894 ||
(rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
21895 test 0 -eq $? || _lt_function_replace_fail
=:
21898 sed -e '/^func_basename ()$/,/^} # func_basename /c\
21901 \ func_basename_result="${1##*/}"\
21902 } # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
21903 && mv -f "$cfgfile.tmp" "$cfgfile" \
21904 ||
(rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
21905 test 0 -eq $? || _lt_function_replace_fail
=:
21908 sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
21909 func_dirname_and_basename ()\
21912 \ */*) func_dirname_result="${1%/*}${2}" ;;\
21913 \ * ) func_dirname_result="${3}" ;;\
21915 \ func_basename_result="${1##*/}"\
21916 } # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
21917 && mv -f "$cfgfile.tmp" "$cfgfile" \
21918 ||
(rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
21919 test 0 -eq $? || _lt_function_replace_fail
=:
21922 sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
21925 \ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
21926 \ # positional parameters, so assign one to ordinary parameter first.\
21927 \ func_stripname_result=${3}\
21928 \ func_stripname_result=${func_stripname_result#"${1}"}\
21929 \ func_stripname_result=${func_stripname_result%"${2}"}\
21930 } # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
21931 && mv -f "$cfgfile.tmp" "$cfgfile" \
21932 ||
(rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
21933 test 0 -eq $? || _lt_function_replace_fail
=:
21936 sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
21937 func_split_long_opt ()\
21939 \ func_split_long_opt_name=${1%%=*}\
21940 \ func_split_long_opt_arg=${1#*=}\
21941 } # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
21942 && mv -f "$cfgfile.tmp" "$cfgfile" \
21943 ||
(rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
21944 test 0 -eq $? || _lt_function_replace_fail
=:
21947 sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
21948 func_split_short_opt ()\
21950 \ func_split_short_opt_arg=${1#??}\
21951 \ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
21952 } # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
21953 && mv -f "$cfgfile.tmp" "$cfgfile" \
21954 ||
(rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
21955 test 0 -eq $? || _lt_function_replace_fail
=:
21958 sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
21962 \ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
21963 \ *) func_lo2o_result=${1} ;;\
21965 } # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
21966 && mv -f "$cfgfile.tmp" "$cfgfile" \
21967 ||
(rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
21968 test 0 -eq $? || _lt_function_replace_fail
=:
21971 sed -e '/^func_xform ()$/,/^} # func_xform /c\
21974 func_xform_result=${1%.*}.lo\
21975 } # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
21976 && mv -f "$cfgfile.tmp" "$cfgfile" \
21977 ||
(rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
21978 test 0 -eq $? || _lt_function_replace_fail
=:
21981 sed -e '/^func_arith ()$/,/^} # func_arith /c\
21984 func_arith_result=$(( $* ))\
21985 } # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
21986 && mv -f "$cfgfile.tmp" "$cfgfile" \
21987 ||
(rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
21988 test 0 -eq $? || _lt_function_replace_fail
=:
21991 sed -e '/^func_len ()$/,/^} # func_len /c\
21994 func_len_result=${#1}\
21995 } # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
21996 && mv -f "$cfgfile.tmp" "$cfgfile" \
21997 ||
(rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
21998 test 0 -eq $? || _lt_function_replace_fail
=:
22002 if test x
"$lt_shell_append" = xyes
; then
22003 sed -e '/^func_append ()$/,/^} # func_append /c\
22006 eval "${1}+=\\${2}"\
22007 } # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
22008 && mv -f "$cfgfile.tmp" "$cfgfile" \
22009 ||
(rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
22010 test 0 -eq $? || _lt_function_replace_fail
=:
22013 sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
22014 func_append_quoted ()\
22016 \ func_quote_for_eval "${2}"\
22017 \ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
22018 } # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
22019 && mv -f "$cfgfile.tmp" "$cfgfile" \
22020 ||
(rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
22021 test 0 -eq $? || _lt_function_replace_fail
=:
22024 # Save a `func_append' function call where possible by direct use of '+='
22025 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
22026 && mv -f "$cfgfile.tmp" "$cfgfile" \
22027 ||
(rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
22028 test 0 -eq $? || _lt_function_replace_fail
=:
22030 # Save a `func_append' function call even when '+=' is not available
22031 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
22032 && mv -f "$cfgfile.tmp" "$cfgfile" \
22033 ||
(rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
22034 test 0 -eq $? || _lt_function_replace_fail
=:
22037 if test x
"$_lt_function_replace_fail" = x
":"; then
22038 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
22039 $as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
22043 mv -f "$cfgfile" "$ofile" ||
22044 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
22048 cat <<_LT_EOF >> "$ofile"
22050 # ### BEGIN LIBTOOL TAG CONFIG: CXX
22052 # The linker used to build libraries.
22055 # How to create reloadable object files.
22056 reload_flag=$lt_reload_flag_CXX
22057 reload_cmds=$lt_reload_cmds_CXX
22059 # Commands used to build an old-style archive.
22060 old_archive_cmds=$lt_old_archive_cmds_CXX
22062 # A language specific compiler.
22063 CC=$lt_compiler_CXX
22065 # Is the compiler the GNU compiler?
22068 # Compiler flag to turn off builtin functions.
22069 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
22071 # Additional compiler flags for building library objects.
22072 pic_flag=$lt_lt_prog_compiler_pic_CXX
22074 # How to pass a linker flag through the compiler.
22075 wl=$lt_lt_prog_compiler_wl_CXX
22077 # Compiler flag to prevent dynamic linking.
22078 link_static_flag=$lt_lt_prog_compiler_static_CXX
22080 # Does compiler simultaneously support -c and -o options?
22081 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
22083 # Whether or not to add -lc for building shared libraries.
22084 build_libtool_need_lc=$archive_cmds_need_lc_CXX
22086 # Whether or not to disallow shared libs when runtime libs are static.
22087 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
22089 # Compiler flag to allow reflexive dlopens.
22090 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
22092 # Compiler flag to generate shared objects directly from archives.
22093 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
22095 # Whether the compiler copes with passing no objects directly.
22096 compiler_needs_object=$lt_compiler_needs_object_CXX
22098 # Create an old-style archive from a shared archive.
22099 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
22101 # Create a temporary old-style archive to link instead of a shared archive.
22102 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
22104 # Commands used to build a shared archive.
22105 archive_cmds=$lt_archive_cmds_CXX
22106 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
22108 # Commands used to build a loadable module if different from building
22109 # a shared archive.
22110 module_cmds=$lt_module_cmds_CXX
22111 module_expsym_cmds=$lt_module_expsym_cmds_CXX
22113 # Whether we are building with GNU ld or not.
22114 with_gnu_ld=$lt_with_gnu_ld_CXX
22116 # Flag that allows shared libraries with undefined symbols to be built.
22117 allow_undefined_flag=$lt_allow_undefined_flag_CXX
22119 # Flag that enforces no undefined symbols.
22120 no_undefined_flag=$lt_no_undefined_flag_CXX
22122 # Flag to hardcode \$libdir into a binary during linking.
22123 # This must work even if \$libdir does not exist
22124 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
22126 # Whether we need a single "-rpath" flag with a separated argument.
22127 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
22129 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
22130 # DIR into the resulting binary.
22131 hardcode_direct=$hardcode_direct_CXX
22133 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
22134 # DIR into the resulting binary and the resulting library dependency is
22135 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
22136 # library is relocated.
22137 hardcode_direct_absolute=$hardcode_direct_absolute_CXX
22139 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
22140 # into the resulting binary.
22141 hardcode_minus_L=$hardcode_minus_L_CXX
22143 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
22144 # into the resulting binary.
22145 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
22147 # Set to "yes" if building a shared library automatically hardcodes DIR
22148 # into the library and all subsequent libraries and executables linked
22150 hardcode_automatic=$hardcode_automatic_CXX
22152 # Set to yes if linker adds runtime paths of dependent libraries
22153 # to runtime path list.
22154 inherit_rpath=$inherit_rpath_CXX
22156 # Whether libtool must link a program against all its dependency libraries.
22157 link_all_deplibs=$link_all_deplibs_CXX
22159 # Set to "yes" if exported symbols are required.
22160 always_export_symbols=$always_export_symbols_CXX
22162 # The commands to list exported symbols.
22163 export_symbols_cmds=$lt_export_symbols_cmds_CXX
22165 # Symbols that should not be listed in the preloaded symbols.
22166 exclude_expsyms=$lt_exclude_expsyms_CXX
22168 # Symbols that must always be exported.
22169 include_expsyms=$lt_include_expsyms_CXX
22171 # Commands necessary for linking programs (against libraries) with templates.
22172 prelink_cmds=$lt_prelink_cmds_CXX
22174 # Commands necessary for finishing linking programs.
22175 postlink_cmds=$lt_postlink_cmds_CXX
22177 # Specify filename containing input files.
22178 file_list_spec=$lt_file_list_spec_CXX
22180 # How to hardcode a shared library path into an executable.
22181 hardcode_action=$hardcode_action_CXX
22183 # The directories searched by this compiler when creating a shared library.
22184 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
22186 # Dependencies to place before and after the objects being linked to
22187 # create a shared library.
22188 predep_objects=$lt_predep_objects_CXX
22189 postdep_objects=$lt_postdep_objects_CXX
22190 predeps=$lt_predeps_CXX
22191 postdeps=$lt_postdeps_CXX
22193 # The library search path used internally by the compiler when linking
22194 # a shared library.
22195 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
22197 # ### END LIBTOOL TAG CONFIG: CXX
22201 "script-chmod":C
) chmod a
+x pcre-config
;;
22202 "delete-old-chartables":C
) rm -f pcre_chartables.c
;;
22210 ac_clean_files
=$ac_clean_files_save
22212 test $ac_write_fail = 0 ||
22213 as_fn_error $?
"write failure creating $CONFIG_STATUS" "$LINENO" 5
22216 # configure is writing to config.log, and then calls config.status.
22217 # config.status does its own redirection, appending to config.log.
22218 # Unfortunately, on DOS this fails, as config.log is still kept open
22219 # by configure, so config.status won't be able to write to it; its
22220 # output is simply discarded. So we exec the FD to /dev/null,
22221 # effectively closing config.log, so it can be properly (re)opened and
22222 # appended to by config.status. When coming back to configure, we
22223 # need to make the FD available again.
22224 if test "$no_create" != yes; then
22226 ac_config_status_args
=
22227 test "$silent" = yes &&
22228 ac_config_status_args
="$ac_config_status_args --quiet"
22230 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success
=false
22232 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
22233 # would make configure fail if this is the last instruction.
22234 $ac_cs_success || as_fn_exit
1
22236 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no
; then
22237 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
22238 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
22242 # Print out a nice little message after configure is run displaying the
22246 if test "$enable_ebcdic_nl25" = "yes"; then
22247 ebcdic_nl_code
=0x25
22248 elif test "$enable_ebcdic" = "yes"; then
22249 ebcdic_nl_code
=0x15
22254 $PACKAGE-$VERSION configuration summary:
22256 Install prefix .................. : ${prefix}
22257 C preprocessor .................. : ${CPP}
22258 C compiler ...................... : ${CC}
22259 C++ preprocessor ................ : ${CXXCPP}
22260 C++ compiler .................... : ${CXX}
22261 Linker .......................... : ${LD}
22262 C preprocessor flags ............ : ${CPPFLAGS}
22263 C compiler flags ................ : ${CFLAGS} ${VISIBILITY_CFLAGS}
22264 C++ compiler flags .............. : ${CXXFLAGS} ${VISIBILITY_CXXFLAGS}
22265 Linker flags .................... : ${LDFLAGS}
22266 Extra libraries ................. : ${LIBS}
22268 Build 8 bit pcre library ........ : ${enable_pcre8}
22269 Build 16 bit pcre library ....... : ${enable_pcre16}
22270 Build 32 bit pcre library ....... : ${enable_pcre32}
22271 Build C++ library ............... : ${enable_cpp}
22272 Enable JIT compiling support .... : ${enable_jit}
22273 Enable UTF-8/16/32 support ...... : ${enable_utf}
22274 Unicode properties .............. : ${enable_unicode_properties}
22275 Newline char/sequence ........... : ${enable_newline}
22276 \R matches only ANYCRLF ......... : ${enable_bsr_anycrlf}
22277 EBCDIC coding ................... : ${enable_ebcdic}
22278 EBCDIC code for NL .............. : ${ebcdic_nl_code}
22279 Rebuild char tables ............. : ${enable_rebuild_chartables}
22280 Use stack recursion ............. : ${enable_stack_for_recursion}
22281 POSIX mem threshold ............. : ${with_posix_malloc_threshold}
22282 Internal link size .............. : ${with_link_size}
22283 Nested parentheses limit ........ : ${with_parens_nest_limit}
22284 Match limit ..................... : ${with_match_limit}
22285 Match limit recursion ........... : ${with_match_limit_recursion}
22286 Build shared libs ............... : ${enable_shared}
22287 Build static libs ............... : ${enable_static}
22288 Use JIT in pcregrep ............. : ${enable_pcregrep_jit}
22289 Buffer size for pcregrep ........ : ${with_pcregrep_bufsize}
22290 Link pcregrep with libz ......... : ${enable_pcregrep_libz}
22291 Link pcregrep with libbz2 ....... : ${enable_pcregrep_libbz2}
22292 Link pcretest with libedit ...... : ${enable_pcretest_libedit}
22293 Link pcretest with libreadline .. : ${enable_pcretest_libreadline}
22294 Valgrind support ................ : ${enable_valgrind}
22295 Code coverage ................... : ${enable_coverage}