2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69 for PCRE 8.39.
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.39'
591 PACKAGE_STRING='PCRE 8.39'
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
762 INSTALL_STRIP_PROGRAM
804 program_transform_name
817 enable_option_checking
819 enable_dependency_tracking
834 enable_rebuild_chartables
837 enable_unicode_properties
840 enable_newline_is_crlf
841 enable_newline_is_anycrlf
842 enable_newline_is_any
846 enable_stack_for_recursion
848 enable_pcregrep_libbz2
849 with_pcregrep_bufsize
850 enable_pcretest_libedit
851 enable_pcretest_libreadline
852 with_posix_malloc_threshold
854 with_parens_nest_limit
856 with_match_limit_recursion
860 ac_precious_vars='build_alias
883 # Initialize some variables set by options.
885 ac_init_version=false
886 ac_unrecognized_opts=
888 # The variables have the same names as the options, with
889 # dashes changed to underlines.
897 program_transform_name=s,x,x,
905 # Installation directory options.
906 # These are left unexpanded so users can "make install exec_prefix=/foo"
907 # and all the variables that are supposed to be based on exec_prefix
908 # by default will actually change.
909 # Use braces instead of parens because sh, perl, etc. also accept them.
910 # (The list follows the same order as the GNU Coding Standards.)
911 bindir='${exec_prefix}/bin'
912 sbindir='${exec_prefix}/sbin'
913 libexecdir='${exec_prefix}/libexec'
914 datarootdir='${prefix}/share'
915 datadir='${datarootdir}'
916 sysconfdir='${prefix}/etc'
917 sharedstatedir='${prefix}/com'
918 localstatedir='${prefix}/var'
919 includedir='${prefix}/include'
920 oldincludedir='/usr/include'
921 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
922 infodir='${datarootdir}/info'
927 libdir='${exec_prefix}/lib'
928 localedir='${datarootdir}/locale'
929 mandir='${datarootdir}/man'
935 # If the previous option needs an argument, assign it.
936 if test -n "$ac_prev"; then
937 eval $ac_prev=\$ac_option
943 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
948 # Accept the important Cygnus configure options, so we can diagnose typos.
950 case $ac_dashdash$ac_option in
954 -bindir | --bindir | --bindi | --bind | --bin | --bi)
956 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
959 -build | --build | --buil | --bui | --bu)
960 ac_prev=build_alias ;;
961 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
962 build_alias=$ac_optarg ;;
964 -cache-file | --cache-file | --cache-fil | --cache-fi \
965 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
966 ac_prev=cache_file ;;
967 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
968 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
969 cache_file=$ac_optarg ;;
972 cache_file=config.cache ;;
974 -datadir | --datadir | --datadi | --datad)
976 -datadir=* | --datadir=* | --datadi=* | --datad=*)
977 datadir=$ac_optarg ;;
979 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
980 | --dataroo | --dataro | --datar)
981 ac_prev=datarootdir ;;
982 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
983 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
984 datarootdir=$ac_optarg ;;
986 -disable-* | --disable-*)
987 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
988 # Reject names that are not valid shell variable names.
989 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
990 as_fn_error $? "invalid feature name: $ac_useropt"
991 ac_useropt_orig=$ac_useropt
992 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
993 case $ac_user_opts in
997 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
998 ac_unrecognized_sep=', ';;
1000 eval enable_$ac_useropt=no ;;
1002 -docdir | --docdir | --docdi | --doc | --do)
1004 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1005 docdir=$ac_optarg ;;
1007 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1009 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1010 dvidir=$ac_optarg ;;
1012 -enable-* | --enable-*)
1013 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1014 # Reject names that are not valid shell variable names.
1015 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1016 as_fn_error $? "invalid feature name: $ac_useropt"
1017 ac_useropt_orig=$ac_useropt
1018 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1019 case $ac_user_opts in
1021 "enable_$ac_useropt"
1023 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1024 ac_unrecognized_sep=', ';;
1026 eval enable_$ac_useropt=\$ac_optarg ;;
1028 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1029 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1030 | --exec | --exe | --ex)
1031 ac_prev=exec_prefix ;;
1032 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1033 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1034 | --exec=* | --exe=* | --ex=*)
1035 exec_prefix=$ac_optarg ;;
1037 -gas | --gas | --ga | --g)
1038 # Obsolete; use --with-gas.
1041 -help | --help | --hel | --he | -h)
1042 ac_init_help=long ;;
1043 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1044 ac_init_help=recursive ;;
1045 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1046 ac_init_help=short ;;
1048 -host | --host | --hos | --ho)
1049 ac_prev=host_alias ;;
1050 -host=* | --host=* | --hos=* | --ho=*)
1051 host_alias=$ac_optarg ;;
1053 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1055 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1057 htmldir=$ac_optarg ;;
1059 -includedir | --includedir | --includedi | --included | --include \
1060 | --includ | --inclu | --incl | --inc)
1061 ac_prev=includedir ;;
1062 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1063 | --includ=* | --inclu=* | --incl=* | --inc=*)
1064 includedir=$ac_optarg ;;
1066 -infodir | --infodir | --infodi | --infod | --info | --inf)
1068 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1069 infodir=$ac_optarg ;;
1071 -libdir | --libdir | --libdi | --libd)
1073 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1074 libdir=$ac_optarg ;;
1076 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1077 | --libexe | --libex | --libe)
1078 ac_prev=libexecdir ;;
1079 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1080 | --libexe=* | --libex=* | --libe=*)
1081 libexecdir=$ac_optarg ;;
1083 -localedir | --localedir | --localedi | --localed | --locale)
1084 ac_prev=localedir ;;
1085 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1086 localedir=$ac_optarg ;;
1088 -localstatedir | --localstatedir | --localstatedi | --localstated \
1089 | --localstate | --localstat | --localsta | --localst | --locals)
1090 ac_prev=localstatedir ;;
1091 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1092 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1093 localstatedir=$ac_optarg ;;
1095 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1097 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1098 mandir=$ac_optarg ;;
1100 -nfp | --nfp | --nf)
1101 # Obsolete; use --without-fp.
1104 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1105 | --no-cr | --no-c | -n)
1108 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1109 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1112 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1113 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1114 | --oldin | --oldi | --old | --ol | --o)
1115 ac_prev=oldincludedir ;;
1116 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1117 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1118 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1119 oldincludedir=$ac_optarg ;;
1121 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1123 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1124 prefix=$ac_optarg ;;
1126 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1127 | --program-pre | --program-pr | --program-p)
1128 ac_prev=program_prefix ;;
1129 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1130 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1131 program_prefix=$ac_optarg ;;
1133 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1134 | --program-suf | --program-su | --program-s)
1135 ac_prev=program_suffix ;;
1136 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1137 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1138 program_suffix=$ac_optarg ;;
1140 -program-transform-name | --program-transform-name \
1141 | --program-transform-nam | --program-transform-na \
1142 | --program-transform-n | --program-transform- \
1143 | --program-transform | --program-transfor \
1144 | --program-transfo | --program-transf \
1145 | --program-trans | --program-tran \
1146 | --progr-tra | --program-tr | --program-t)
1147 ac_prev=program_transform_name ;;
1148 -program-transform-name=* | --program-transform-name=* \
1149 | --program-transform-nam=* | --program-transform-na=* \
1150 | --program-transform-n=* | --program-transform-=* \
1151 | --program-transform=* | --program-transfor=* \
1152 | --program-transfo=* | --program-transf=* \
1153 | --program-trans=* | --program-tran=* \
1154 | --progr-tra=* | --program-tr=* | --program-t=*)
1155 program_transform_name=$ac_optarg ;;
1157 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1159 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1160 pdfdir=$ac_optarg ;;
1162 -psdir | --psdir | --psdi | --psd | --ps)
1164 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1167 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1168 | -silent | --silent | --silen | --sile | --sil)
1171 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1173 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1175 sbindir=$ac_optarg ;;
1177 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1178 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1179 | --sharedst | --shareds | --shared | --share | --shar \
1181 ac_prev=sharedstatedir ;;
1182 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1183 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1184 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1186 sharedstatedir=$ac_optarg ;;
1188 -site | --site | --sit)
1190 -site=* | --site=* | --sit=*)
1193 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1195 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1196 srcdir=$ac_optarg ;;
1198 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1199 | --syscon | --sysco | --sysc | --sys | --sy)
1200 ac_prev=sysconfdir ;;
1201 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1202 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1203 sysconfdir=$ac_optarg ;;
1205 -target | --target | --targe | --targ | --tar | --ta | --t)
1206 ac_prev=target_alias ;;
1207 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1208 target_alias=$ac_optarg ;;
1210 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1213 -version | --version | --versio | --versi | --vers | -V)
1214 ac_init_version=: ;;
1217 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1218 # Reject names that are not valid shell variable names.
1219 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1220 as_fn_error $? "invalid package name: $ac_useropt"
1221 ac_useropt_orig=$ac_useropt
1222 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1223 case $ac_user_opts in
1227 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1228 ac_unrecognized_sep=', ';;
1230 eval with_$ac_useropt=\$ac_optarg ;;
1232 -without-* | --without-*)
1233 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1234 # Reject names that are not valid shell variable names.
1235 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1236 as_fn_error $? "invalid package name: $ac_useropt"
1237 ac_useropt_orig=$ac_useropt
1238 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1239 case $ac_user_opts in
1243 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1244 ac_unrecognized_sep=', ';;
1246 eval with_$ac_useropt=no ;;
1249 # Obsolete; use --with-x.
1252 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1253 | --x-incl | --x-inc | --x-in | --x-i)
1254 ac_prev=x_includes ;;
1255 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1256 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1257 x_includes=$ac_optarg ;;
1259 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1260 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1261 ac_prev=x_libraries ;;
1262 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1263 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1264 x_libraries=$ac_optarg ;;
1266 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1267 Try \`$0 --help' for more information"
1271 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1272 # Reject names that are not valid shell variable names.
1273 case $ac_envvar in #(
1274 '' | [0-9]* | *[!_$as_cr_alnum]* )
1275 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1277 eval $ac_envvar=\$ac_optarg
1278 export $ac_envvar ;;
1281 # FIXME: should be removed in autoconf 3.0.
1282 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1283 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1284 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1285 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1291 if test -n "$ac_prev"; then
1292 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1293 as_fn_error $? "missing argument to $ac_option"
1296 if test -n "$ac_unrecognized_opts"; then
1297 case $enable_option_checking in
1299 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1300 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1304 # Check all directory arguments for consistency.
1305 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1306 datadir sysconfdir sharedstatedir localstatedir includedir \
1307 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1308 libdir localedir mandir
1310 eval ac_val=\$$ac_var
1311 # Remove trailing slashes.
1314 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1315 eval $ac_var=\$ac_val;;
1317 # Be sure to have absolute directory names.
1319 [\\/$]* | ?:[\\/]* ) continue;;
1320 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1322 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1325 # There might be people who depend on the old broken behavior: `$host'
1326 # used to hold the argument of --host etc.
1327 # FIXME: To remove some day.
1330 target=$target_alias
1332 # FIXME: To remove some day.
1333 if test "x$host_alias" != x; then
1334 if test "x$build_alias" = x; then
1335 cross_compiling=maybe
1336 elif test "x$build_alias" != "x$host_alias"; then
1342 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1344 test "$silent" = yes && exec 6>/dev/null
1347 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1348 ac_ls_di=`ls -di .` &&
1349 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1350 as_fn_error $? "working directory cannot be determined"
1351 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1352 as_fn_error $? "pwd does not report name of working directory"
1355 # Find the source files, if location was not specified.
1356 if test -z "$srcdir"; then
1357 ac_srcdir_defaulted=yes
1358 # Try the directory containing this script, then the parent directory.
1359 ac_confdir=`$as_dirname -- "$as_myself" ||
1360 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1361 X"$as_myself" : 'X\(//\)[^/]' \| \
1362 X"$as_myself" : 'X\(//\)$' \| \
1363 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1364 $as_echo X"$as_myself" |
1365 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1383 if test ! -r "$srcdir/$ac_unique_file"; then
1387 ac_srcdir_defaulted=no
1389 if test ! -r "$srcdir/$ac_unique_file"; then
1390 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1391 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1393 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1395 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1397 # When building in place, set srcdir=.
1398 if test "$ac_abs_confdir" = "$ac_pwd"; then
1401 # Remove unnecessary trailing slashes from srcdir.
1402 # Double slashes in file names in object file debugging info
1403 # mess up M-x gdb in Emacs.
1405 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1407 for ac_var in $ac_precious_vars; do
1408 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1409 eval ac_env_${ac_var}_value=\$${ac_var}
1410 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1411 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1415 # Report the --help message.
1417 if test "$ac_init_help" = "long"; then
1418 # Omit some internal or obsolete options to make the list less imposing.
1419 # This message is too long to be a string in the A/UX 3.1 sh.
1421 \`configure' configures PCRE 8.39 to adapt to many kinds of systems.
1423 Usage: $0 [OPTION]... [VAR=VALUE]...
1425 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1426 VAR=VALUE. See below for descriptions of some of the useful variables.
1428 Defaults for the options are specified in brackets.
1431 -h, --help display this help and exit
1432 --help=short display options specific to this package
1433 --help=recursive display the short help of all the included packages
1434 -V, --version display version information and exit
1435 -q, --quiet, --silent do not print \`checking ...' messages
1436 --cache-file=FILE cache test results in FILE [disabled]
1437 -C, --config-cache alias for \`--cache-file=config.cache'
1438 -n, --no-create do not create output files
1439 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1441 Installation directories:
1442 --prefix=PREFIX install architecture-independent files in PREFIX
1443 [$ac_default_prefix]
1444 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1447 By default, \`make install' will install all the files in
1448 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1449 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1450 for instance \`--prefix=\$HOME'.
1452 For better control, use the options below.
1454 Fine tuning of the installation directories:
1455 --bindir=DIR user executables [EPREFIX/bin]
1456 --sbindir=DIR system admin executables [EPREFIX/sbin]
1457 --libexecdir=DIR program executables [EPREFIX/libexec]
1458 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1459 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1460 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1461 --libdir=DIR object code libraries [EPREFIX/lib]
1462 --includedir=DIR C header files [PREFIX/include]
1463 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1464 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1465 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1466 --infodir=DIR info documentation [DATAROOTDIR/info]
1467 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1468 --mandir=DIR man documentation [DATAROOTDIR/man]
1469 --docdir=DIR documentation root [DATAROOTDIR/doc/pcre]
1470 --htmldir=DIR html documentation [DOCDIR]
1471 --dvidir=DIR dvi documentation [DOCDIR]
1472 --pdfdir=DIR pdf documentation [DOCDIR]
1473 --psdir=DIR ps documentation [DOCDIR]
1479 --program-prefix=PREFIX prepend PREFIX to installed program names
1480 --program-suffix=SUFFIX append SUFFIX to installed program names
1481 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1484 --build=BUILD configure for building on BUILD [guessed]
1485 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1489 if test -n "$ac_init_help"; then
1490 case $ac_init_help in
1491 short | recursive ) echo "Configuration of PCRE 8.39:";;
1496 --disable-option-checking ignore unrecognized --enable/--with options
1497 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1498 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1499 --enable-silent-rules less verbose build output (undo: "make V=1")
1500 --disable-silent-rules verbose build output (undo: "make V=0")
1501 --enable-dependency-tracking
1502 do not reject slow dependency extractors
1503 --disable-dependency-tracking
1504 speeds up one-time build
1505 --enable-shared[=PKGS] build shared libraries [default=yes]
1506 --enable-static[=PKGS] build static libraries [default=yes]
1507 --enable-fast-install[=PKGS]
1508 optimize for fast installation [default=yes]
1509 --disable-libtool-lock avoid locking (might break parallel builds)
1510 --disable-pcre8 disable 8 bit character support
1511 --enable-pcre16 enable 16 bit character support
1512 --enable-pcre32 enable 32 bit character support
1513 --disable-cpp disable C++ support
1514 --enable-jit enable Just-In-Time compiling support
1515 --disable-pcregrep-jit disable JIT support in pcregrep
1516 --enable-rebuild-chartables
1517 rebuild character tables in current locale
1518 --enable-utf8 another name for --enable-utf. Kept only for
1519 compatibility reasons
1520 --enable-utf enable UTF-8/16/32 support (incompatible with
1522 --enable-unicode-properties
1523 enable Unicode properties support (implies
1525 --enable-newline-is-cr use CR as newline character
1526 --enable-newline-is-lf use LF as newline character (default)
1527 --enable-newline-is-crlf
1528 use CRLF as newline sequence
1529 --enable-newline-is-anycrlf
1530 use CR, LF, or CRLF as newline sequence
1531 --enable-newline-is-any use any valid Unicode newline sequence
1532 --enable-bsr-anycrlf \R matches only CR, LF, CRLF by default
1533 --enable-ebcdic assume EBCDIC coding rather than ASCII; incompatible
1534 with --enable-utf; use only in (uncommon) EBCDIC
1535 environments; it implies --enable-rebuild-chartables
1536 --enable-ebcdic-nl25 set EBCDIC code for NL to 0x25 instead of 0x15; it
1537 implies --enable-ebcdic
1538 --disable-stack-for-recursion
1539 don't use stack recursion when matching
1540 --enable-pcregrep-libz link pcregrep with libz to handle .gz files
1541 --enable-pcregrep-libbz2
1542 link pcregrep with libbz2 to handle .bz2 files
1543 --enable-pcretest-libedit
1544 link pcretest with libedit
1545 --enable-pcretest-libreadline
1546 link pcretest with libreadline
1547 --enable-valgrind valgrind support
1548 --enable-coverage enable code coverage reports using gcov
1551 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1552 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1553 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
1555 --with-aix-soname=aix|svr4|both
1556 shared library versioning (aka "SONAME") variant to
1557 provide on AIX, [default=aix].
1558 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1559 --with-sysroot[=DIR] Search for dependent libraries within DIR (or the
1560 compiler's sysroot if not specified).
1561 --with-pcregrep-bufsize=N
1562 pcregrep buffer size (default=20480, minimum=8192)
1563 --with-posix-malloc-threshold=NBYTES
1564 threshold for POSIX malloc usage (default=10)
1565 --with-link-size=N internal link size (2, 3, or 4 allowed; default=2)
1566 --with-parens-nest-limit=N
1567 nested parentheses limit (default=250)
1568 --with-match-limit=N default limit on internal looping (default=10000000)
1569 --with-match-limit-recursion=N
1570 default limit on internal recursion
1571 (default=MATCH_LIMIT)
1573 Some influential environment variables:
1574 CC C compiler command
1575 CFLAGS C compiler flags
1576 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1577 nonstandard directory <lib dir>
1578 LIBS libraries to pass to the linker, e.g. -l<library>
1579 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1580 you have headers in a nonstandard directory <include dir>
1581 CXX C++ compiler command
1582 CXXFLAGS C++ compiler flags
1585 User-defined run-time library search path.
1586 CXXCPP C++ preprocessor
1587 PKG_CONFIG path to pkg-config utility
1589 directories to add to pkg-config's search path
1591 path overriding pkg-config's built-in search path
1593 C compiler flags for VALGRIND, overriding pkg-config
1595 linker flags for VALGRIND, overriding pkg-config
1596 LCOV the ltp lcov program
1597 GENHTML the ltp genhtml program
1599 Use these variables to override the choices made by `configure' or to help
1600 it to find libraries and programs with nonstandard names/locations.
1602 Report bugs to the package provider.
1607 if test "$ac_init_help" = "recursive"; then
1608 # If there are subdirs, report their specific --help.
1609 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1610 test -d "$ac_dir" ||
1611 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1616 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1618 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1619 # A ".." for each directory in $ac_dir_suffix.
1620 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1621 case $ac_top_builddir_sub in
1622 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1623 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1626 ac_abs_top_builddir=$ac_pwd
1627 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1628 # for backward compatibility:
1629 ac_top_builddir=$ac_top_build_prefix
1632 .) # We are building in place.
1634 ac_top_srcdir=$ac_top_builddir_sub
1635 ac_abs_top_srcdir=$ac_pwd ;;
1636 [\\/]* | ?:[\\/]* ) # Absolute name.
1637 ac_srcdir=$srcdir$ac_dir_suffix;
1638 ac_top_srcdir=$srcdir
1639 ac_abs_top_srcdir=$srcdir ;;
1641 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1642 ac_top_srcdir=$ac_top_build_prefix$srcdir
1643 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1645 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1647 cd "$ac_dir" || { ac_status=$?; continue; }
1648 # Check for guested configure.
1649 if test -f "$ac_srcdir/configure.gnu"; then
1651 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1652 elif test -f "$ac_srcdir/configure"; then
1654 $SHELL "$ac_srcdir/configure" --help=recursive
1656 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1658 cd "$ac_pwd" || { ac_status=$?; break; }
1662 test -n "$ac_init_help" && exit $ac_status
1663 if $ac_init_version; then
1666 generated by GNU Autoconf 2.69
1668 Copyright (C) 2012 Free Software Foundation, Inc.
1669 This configure script is free software; the Free Software Foundation
1670 gives unlimited permission to copy, distribute and modify it.
1675 ## ------------------------ ##
1676 ## Autoconf initialization. ##
1677 ## ------------------------ ##
1679 # ac_fn_c_try_compile LINENO
1680 # --------------------------
1681 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1682 ac_fn_c_try_compile ()
1684 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1685 rm -f conftest.$ac_objext
1686 if { { ac_try="$ac_compile"
1688 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1689 *) ac_try_echo=$ac_try;;
1691 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1692 $as_echo "$ac_try_echo"; } >&5
1693 (eval "$ac_compile") 2>conftest.err
1695 if test -s conftest.err; then
1696 grep -v '^ *+' conftest.err >conftest.er1
1697 cat conftest.er1 >&5
1698 mv -f conftest.er1 conftest.err
1700 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1701 test $ac_status = 0; } && {
1702 test -z "$ac_c_werror_flag" ||
1703 test ! -s conftest.err
1704 } && test -s conftest.$ac_objext; then :
1707 $as_echo "$as_me: failed program was:" >&5
1708 sed 's/^/| /' conftest.$ac_ext >&5
1712 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1713 as_fn_set_status $ac_retval
1715 } # ac_fn_c_try_compile
1717 # ac_fn_cxx_try_compile LINENO
1718 # ----------------------------
1719 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1720 ac_fn_cxx_try_compile ()
1722 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1723 rm -f conftest.$ac_objext
1724 if { { ac_try="$ac_compile"
1726 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1727 *) ac_try_echo=$ac_try;;
1729 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1730 $as_echo "$ac_try_echo"; } >&5
1731 (eval "$ac_compile") 2>conftest.err
1733 if test -s conftest.err; then
1734 grep -v '^ *+' conftest.err >conftest.er1
1735 cat conftest.er1 >&5
1736 mv -f conftest.er1 conftest.err
1738 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1739 test $ac_status = 0; } && {
1740 test -z "$ac_cxx_werror_flag" ||
1741 test ! -s conftest.err
1742 } && test -s conftest.$ac_objext; then :
1745 $as_echo "$as_me: failed program was:" >&5
1746 sed 's/^/| /' conftest.$ac_ext >&5
1750 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1751 as_fn_set_status $ac_retval
1753 } # ac_fn_cxx_try_compile
1755 # ac_fn_c_try_cpp LINENO
1756 # ----------------------
1757 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1760 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1761 if { { ac_try="$ac_cpp conftest.$ac_ext"
1763 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1764 *) ac_try_echo=$ac_try;;
1766 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1767 $as_echo "$ac_try_echo"; } >&5
1768 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1770 if test -s conftest.err; then
1771 grep -v '^ *+' conftest.err >conftest.er1
1772 cat conftest.er1 >&5
1773 mv -f conftest.er1 conftest.err
1775 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1776 test $ac_status = 0; } > conftest.i && {
1777 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1778 test ! -s conftest.err
1782 $as_echo "$as_me: failed program was:" >&5
1783 sed 's/^/| /' conftest.$ac_ext >&5
1787 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1788 as_fn_set_status $ac_retval
1792 # ac_fn_c_try_run LINENO
1793 # ----------------------
1794 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1795 # that executables *can* be run.
1798 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1799 if { { ac_try="$ac_link"
1801 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1802 *) ac_try_echo=$ac_try;;
1804 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1805 $as_echo "$ac_try_echo"; } >&5
1806 (eval "$ac_link") 2>&5
1808 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1809 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1810 { { case "(($ac_try" in
1811 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1812 *) ac_try_echo=$ac_try;;
1814 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1815 $as_echo "$ac_try_echo"; } >&5
1816 (eval "$ac_try") 2>&5
1818 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1819 test $ac_status = 0; }; }; then :
1822 $as_echo "$as_me: program exited with status $ac_status" >&5
1823 $as_echo "$as_me: failed program was:" >&5
1824 sed 's/^/| /' conftest.$ac_ext >&5
1826 ac_retval=$ac_status
1828 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1829 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1830 as_fn_set_status $ac_retval
1834 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1835 # -------------------------------------------------------
1836 # Tests whether HEADER exists and can be compiled using the include files in
1837 # INCLUDES, setting the cache variable VAR accordingly.
1838 ac_fn_c_check_header_compile ()
1840 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1841 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1842 $as_echo_n "checking for $2... " >&6; }
1843 if eval \${$3+:} false; then :
1844 $as_echo_n "(cached) " >&6
1846 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1847 /* end confdefs.h. */
1851 if ac_fn_c_try_compile "$LINENO"; then :
1856 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1860 $as_echo "$ac_res" >&6; }
1861 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1863 } # ac_fn_c_check_header_compile
1865 # ac_fn_c_find_intX_t LINENO BITS VAR
1866 # -----------------------------------
1867 # Finds a signed integer type with width BITS, setting cache variable VAR
1869 ac_fn_c_find_intX_t ()
1871 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1872 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for int$2_t" >&5
1873 $as_echo_n "checking for int$2_t... " >&6; }
1874 if eval \${$3+:} false; then :
1875 $as_echo_n "(cached) " >&6
1878 # Order is important - never check a type that is potentially smaller
1879 # than half of the expected target width.
1880 for ac_type in int$2_t 'int' 'long int' \
1881 'long long int' 'short int' 'signed char'; do
1882 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1883 /* end confdefs.h. */
1884 $ac_includes_default
1885 enum { N = $2 / 2 - 1 };
1889 static int test_array [1 - 2 * !(0 < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1))];
1891 return test_array [0];
1897 if ac_fn_c_try_compile "$LINENO"; then :
1898 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1899 /* end confdefs.h. */
1900 $ac_includes_default
1901 enum { N = $2 / 2 - 1 };
1905 static int test_array [1 - 2 * !(($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1)
1906 < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 2))];
1908 return test_array [0];
1914 if ac_fn_c_try_compile "$LINENO"; then :
1921 eval "$3=\$ac_type" ;;
1924 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1926 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1927 if eval test \"x\$"$3"\" = x"no"; then :
1935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1936 $as_echo "$ac_res" >&6; }
1937 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1939 } # ac_fn_c_find_intX_t
1941 # ac_fn_c_try_link LINENO
1942 # -----------------------
1943 # Try to link conftest.$ac_ext, and return whether this succeeded.
1946 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1947 rm -f conftest.$ac_objext conftest$ac_exeext
1948 if { { ac_try="$ac_link"
1950 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1951 *) ac_try_echo=$ac_try;;
1953 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1954 $as_echo "$ac_try_echo"; } >&5
1955 (eval "$ac_link") 2>conftest.err
1957 if test -s conftest.err; then
1958 grep -v '^ *+' conftest.err >conftest.er1
1959 cat conftest.er1 >&5
1960 mv -f conftest.er1 conftest.err
1962 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1963 test $ac_status = 0; } && {
1964 test -z "$ac_c_werror_flag" ||
1965 test ! -s conftest.err
1966 } && test -s conftest$ac_exeext && {
1967 test "$cross_compiling" = yes ||
1968 test -x conftest$ac_exeext
1972 $as_echo "$as_me: failed program was:" >&5
1973 sed 's/^/| /' conftest.$ac_ext >&5
1977 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1978 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1979 # interfere with the next link command; also delete a directory that is
1980 # left behind by Apple's compiler. We do this before executing the actions.
1981 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1982 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1983 as_fn_set_status $ac_retval
1985 } # ac_fn_c_try_link
1987 # ac_fn_c_check_func LINENO FUNC VAR
1988 # ----------------------------------
1989 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1990 ac_fn_c_check_func ()
1992 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1993 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1994 $as_echo_n "checking for $2... " >&6; }
1995 if eval \${$3+:} false; then :
1996 $as_echo_n "(cached) " >&6
1998 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1999 /* end confdefs.h. */
2000 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2001 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2002 #define $2 innocuous_$2
2004 /* System header to define __stub macros and hopefully few prototypes,
2005 which can conflict with char $2 (); below.
2006 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2007 <limits.h> exists even on freestanding compilers. */
2010 # include <limits.h>
2012 # include <assert.h>
2017 /* Override any GCC internal prototype to avoid an error.
2018 Use char because int might match the return type of a GCC
2019 builtin and then its argument prototype would still apply. */
2024 /* The GNU C library defines this for functions which it implements
2025 to always fail with ENOSYS. Some functions are actually named
2026 something starting with __ and the normal name is an alias. */
2027 #if defined __stub_$2 || defined __stub___$2
2039 if ac_fn_c_try_link "$LINENO"; then :
2044 rm -f core conftest.err conftest.$ac_objext \
2045 conftest$ac_exeext conftest.$ac_ext
2048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2049 $as_echo "$ac_res" >&6; }
2050 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2052 } # ac_fn_c_check_func
2054 # ac_fn_cxx_try_cpp LINENO
2055 # ------------------------
2056 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2057 ac_fn_cxx_try_cpp ()
2059 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2060 if { { ac_try="$ac_cpp conftest.$ac_ext"
2062 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2063 *) ac_try_echo=$ac_try;;
2065 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2066 $as_echo "$ac_try_echo"; } >&5
2067 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2069 if test -s conftest.err; then
2070 grep -v '^ *+' conftest.err >conftest.er1
2071 cat conftest.er1 >&5
2072 mv -f conftest.er1 conftest.err
2074 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2075 test $ac_status = 0; } > conftest.i && {
2076 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
2077 test ! -s conftest.err
2081 $as_echo "$as_me: failed program was:" >&5
2082 sed 's/^/| /' conftest.$ac_ext >&5
2086 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2087 as_fn_set_status $ac_retval
2089 } # ac_fn_cxx_try_cpp
2091 # ac_fn_cxx_try_link LINENO
2092 # -------------------------
2093 # Try to link conftest.$ac_ext, and return whether this succeeded.
2094 ac_fn_cxx_try_link ()
2096 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2097 rm -f conftest.$ac_objext conftest$ac_exeext
2098 if { { ac_try="$ac_link"
2100 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2101 *) ac_try_echo=$ac_try;;
2103 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2104 $as_echo "$ac_try_echo"; } >&5
2105 (eval "$ac_link") 2>conftest.err
2107 if test -s conftest.err; then
2108 grep -v '^ *+' conftest.err >conftest.er1
2109 cat conftest.er1 >&5
2110 mv -f conftest.er1 conftest.err
2112 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2113 test $ac_status = 0; } && {
2114 test -z "$ac_cxx_werror_flag" ||
2115 test ! -s conftest.err
2116 } && test -s conftest$ac_exeext && {
2117 test "$cross_compiling" = yes ||
2118 test -x conftest$ac_exeext
2122 $as_echo "$as_me: failed program was:" >&5
2123 sed 's/^/| /' conftest.$ac_ext >&5
2127 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2128 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2129 # interfere with the next link command; also delete a directory that is
2130 # left behind by Apple's compiler. We do this before executing the actions.
2131 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2132 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2133 as_fn_set_status $ac_retval
2135 } # ac_fn_cxx_try_link
2137 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
2138 # -------------------------------------------------------
2139 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
2140 # the include files in INCLUDES and setting the cache variable VAR
2142 ac_fn_c_check_header_mongrel ()
2144 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2145 if eval \${$3+:} false; then :
2146 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2147 $as_echo_n "checking for $2... " >&6; }
2148 if eval \${$3+:} false; then :
2149 $as_echo_n "(cached) " >&6
2152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2153 $as_echo "$ac_res" >&6; }
2155 # Is the header compilable?
2156 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2157 $as_echo_n "checking $2 usability... " >&6; }
2158 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2159 /* end confdefs.h. */
2163 if ac_fn_c_try_compile "$LINENO"; then :
2164 ac_header_compiler=yes
2166 ac_header_compiler=no
2168 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2170 $as_echo "$ac_header_compiler" >&6; }
2172 # Is the header present?
2173 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2174 $as_echo_n "checking $2 presence... " >&6; }
2175 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2176 /* end confdefs.h. */
2179 if ac_fn_c_try_cpp "$LINENO"; then :
2180 ac_header_preproc=yes
2182 ac_header_preproc=no
2184 rm -f conftest.err conftest.i conftest.$ac_ext
2185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2186 $as_echo "$ac_header_preproc" >&6; }
2188 # So? What about this header?
2189 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2191 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2192 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2193 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2194 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2197 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2198 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2199 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2200 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2201 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2202 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2203 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2204 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2205 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2206 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2209 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2210 $as_echo_n "checking for $2... " >&6; }
2211 if eval \${$3+:} false; then :
2212 $as_echo_n "(cached) " >&6
2214 eval "$3=\$ac_header_compiler"
2217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2218 $as_echo "$ac_res" >&6; }
2220 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2222 } # ac_fn_c_check_header_mongrel
2224 # ac_fn_cxx_check_header_mongrel LINENO HEADER VAR INCLUDES
2225 # ---------------------------------------------------------
2226 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
2227 # the include files in INCLUDES and setting the cache variable VAR
2229 ac_fn_cxx_check_header_mongrel ()
2231 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2232 if eval \${$3+:} false; then :
2233 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2234 $as_echo_n "checking for $2... " >&6; }
2235 if eval \${$3+:} false; then :
2236 $as_echo_n "(cached) " >&6
2239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2240 $as_echo "$ac_res" >&6; }
2242 # Is the header compilable?
2243 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2244 $as_echo_n "checking $2 usability... " >&6; }
2245 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2246 /* end confdefs.h. */
2250 if ac_fn_cxx_try_compile "$LINENO"; then :
2251 ac_header_compiler=yes
2253 ac_header_compiler=no
2255 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2257 $as_echo "$ac_header_compiler" >&6; }
2259 # Is the header present?
2260 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2261 $as_echo_n "checking $2 presence... " >&6; }
2262 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2263 /* end confdefs.h. */
2266 if ac_fn_cxx_try_cpp "$LINENO"; then :
2267 ac_header_preproc=yes
2269 ac_header_preproc=no
2271 rm -f conftest.err conftest.i conftest.$ac_ext
2272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2273 $as_echo "$ac_header_preproc" >&6; }
2275 # So? What about this header?
2276 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in #((
2278 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2279 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2280 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2281 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2284 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2285 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2286 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2287 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2288 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2289 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2290 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2291 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2292 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2293 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2296 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2297 $as_echo_n "checking for $2... " >&6; }
2298 if eval \${$3+:} false; then :
2299 $as_echo_n "(cached) " >&6
2301 eval "$3=\$ac_header_compiler"
2304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2305 $as_echo "$ac_res" >&6; }
2307 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2309 } # ac_fn_cxx_check_header_mongrel
2311 # ac_fn_cxx_check_type LINENO TYPE VAR INCLUDES
2312 # ---------------------------------------------
2313 # Tests whether TYPE exists after having included INCLUDES, setting cache
2314 # variable VAR accordingly.
2315 ac_fn_cxx_check_type ()
2317 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2318 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2319 $as_echo_n "checking for $2... " >&6; }
2320 if eval \${$3+:} false; then :
2321 $as_echo_n "(cached) " >&6
2324 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2325 /* end confdefs.h. */
2336 if ac_fn_cxx_try_compile "$LINENO"; then :
2337 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2338 /* end confdefs.h. */
2349 if ac_fn_cxx_try_compile "$LINENO"; then :
2354 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2356 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2360 $as_echo "$ac_res" >&6; }
2361 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2363 } # ac_fn_cxx_check_type
2365 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2366 # -------------------------------------------
2367 # Tests whether TYPE exists after having included INCLUDES, setting cache
2368 # variable VAR accordingly.
2369 ac_fn_c_check_type ()
2371 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2372 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2373 $as_echo_n "checking for $2... " >&6; }
2374 if eval \${$3+:} false; then :
2375 $as_echo_n "(cached) " >&6
2378 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2379 /* end confdefs.h. */
2390 if ac_fn_c_try_compile "$LINENO"; then :
2391 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2392 /* end confdefs.h. */
2403 if ac_fn_c_try_compile "$LINENO"; then :
2408 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2410 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2414 $as_echo "$ac_res" >&6; }
2415 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2417 } # ac_fn_c_check_type
2418 cat >config.log <<_ACEOF
2419 This file contains any messages produced by compilers while
2420 running configure, to aid debugging if configure makes a mistake.
2422 It was created by PCRE $as_me 8.39, which was
2423 generated by GNU Autoconf 2.69. Invocation command line was
2435 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2436 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2437 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2438 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2439 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2441 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2442 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2444 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2445 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2446 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2447 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2448 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2449 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2450 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2454 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2458 test -z "$as_dir" && as_dir=.
2459 $as_echo "PATH: $as_dir"
2475 # Keep a trace of the command line.
2476 # Strip out --no-create and --no-recursion so they do not pile up.
2477 # Strip out --silent because we don't want to record it for future runs.
2478 # Also quote any args containing shell meta-characters.
2479 # Make two passes to allow for proper duplicate-argument suppression.
2483 ac_must_keep_next=false
2489 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2490 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2491 | -silent | --silent | --silen | --sile | --sil)
2494 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2497 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2499 as_fn_append ac_configure_args1 " '$ac_arg'"
2500 if test $ac_must_keep_next = true; then
2501 ac_must_keep_next=false # Got value, back to normal.
2504 *=* | --config-cache | -C | -disable-* | --disable-* \
2505 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2506 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2507 | -with-* | --with-* | -without-* | --without-* | --x)
2508 case "$ac_configure_args0 " in
2509 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2512 -* ) ac_must_keep_next=true ;;
2515 as_fn_append ac_configure_args " '$ac_arg'"
2520 { ac_configure_args0=; unset ac_configure_args0;}
2521 { ac_configure_args1=; unset ac_configure_args1;}
2523 # When interrupted or exit'd, cleanup temporary files, and complete
2524 # config.log. We remove comments because anyway the quotes in there
2525 # would cause problems or look ugly.
2526 # WARNING: Use '\'' to represent an apostrophe within the trap.
2527 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2528 trap 'exit_status=$?
2529 # Save into config.log some information that might help in debugging.
2533 $as_echo "## ---------------- ##
2534 ## Cache variables. ##
2535 ## ---------------- ##"
2537 # The following way of writing the cache mishandles newlines in values,
2539 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2540 eval ac_val=\$$ac_var
2544 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2545 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2548 _ | IFS | as_nl) ;; #(
2549 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2550 *) { eval $ac_var=; unset $ac_var;} ;;
2555 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2556 *${as_nl}ac_space=\ *)
2558 "s/'\''/'\''\\\\'\'''\''/g;
2559 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2562 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2569 $as_echo "## ----------------- ##
2570 ## Output variables. ##
2571 ## ----------------- ##"
2573 for ac_var in $ac_subst_vars
2575 eval ac_val=\$$ac_var
2577 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2579 $as_echo "$ac_var='\''$ac_val'\''"
2583 if test -n "$ac_subst_files"; then
2584 $as_echo "## ------------------- ##
2585 ## File substitutions. ##
2586 ## ------------------- ##"
2588 for ac_var in $ac_subst_files
2590 eval ac_val=\$$ac_var
2592 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2594 $as_echo "$ac_var='\''$ac_val'\''"
2599 if test -s confdefs.h; then
2600 $as_echo "## ----------- ##
2607 test "$ac_signal" != 0 &&
2608 $as_echo "$as_me: caught signal $ac_signal"
2609 $as_echo "$as_me: exit $exit_status"
2611 rm -f core *.core core.conftest.* &&
2612 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2615 for ac_signal in 1 2 13 15; do
2616 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2620 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2621 rm -f -r conftest* confdefs.h
2623 $as_echo "/* confdefs.h */" > confdefs.h
2625 # Predefined preprocessor variables.
2627 cat >>confdefs.h <<_ACEOF
2628 #define PACKAGE_NAME "$PACKAGE_NAME"
2631 cat >>confdefs.h <<_ACEOF
2632 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2635 cat >>confdefs.h <<_ACEOF
2636 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2639 cat >>confdefs.h <<_ACEOF
2640 #define PACKAGE_STRING "$PACKAGE_STRING"
2643 cat >>confdefs.h <<_ACEOF
2644 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2647 cat >>confdefs.h <<_ACEOF
2648 #define PACKAGE_URL "$PACKAGE_URL"
2652 # Let the site file select an alternate cache file if it wants to.
2653 # Prefer an explicitly selected file to automatically selected ones.
2656 if test -n "$CONFIG_SITE"; then
2657 # We do not want a PATH search for config.site.
2658 case $CONFIG_SITE in #((
2659 -*) ac_site_file1=./$CONFIG_SITE;;
2660 */*) ac_site_file1=$CONFIG_SITE;;
2661 *) ac_site_file1=./$CONFIG_SITE;;
2663 elif test "x$prefix" != xNONE; then
2664 ac_site_file1=$prefix/share/config.site
2665 ac_site_file2=$prefix/etc/config.site
2667 ac_site_file1=$ac_default_prefix/share/config.site
2668 ac_site_file2=$ac_default_prefix/etc/config.site
2670 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2672 test "x$ac_site_file" = xNONE && continue
2673 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2674 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2675 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2676 sed 's/^/| /' "$ac_site_file" >&5
2678 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2679 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2680 as_fn_error $? "failed to load site script $ac_site_file
2681 See \`config.log' for more details" "$LINENO" 5; }
2685 if test -r "$cache_file"; then
2686 # Some versions of bash will fail to source /dev/null (special files
2687 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2688 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2689 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2690 $as_echo "$as_me: loading cache $cache_file" >&6;}
2692 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2693 *) . "./$cache_file";;
2697 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2698 $as_echo "$as_me: creating cache $cache_file" >&6;}
2702 # Check that the precious variables saved in the cache have kept the same
2704 ac_cache_corrupted=false
2705 for ac_var in $ac_precious_vars; do
2706 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2707 eval ac_new_set=\$ac_env_${ac_var}_set
2708 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2709 eval ac_new_val=\$ac_env_${ac_var}_value
2710 case $ac_old_set,$ac_new_set in
2712 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2713 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2714 ac_cache_corrupted=: ;;
2716 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2717 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2718 ac_cache_corrupted=: ;;
2721 if test "x$ac_old_val" != "x$ac_new_val"; then
2722 # differences in whitespace do not lead to failure.
2723 ac_old_val_w=`echo x $ac_old_val`
2724 ac_new_val_w=`echo x $ac_new_val`
2725 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2726 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2727 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2728 ac_cache_corrupted=:
2730 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2731 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2732 eval $ac_var=\$ac_old_val
2734 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2735 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2736 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2737 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2740 # Pass precious variables to config.status.
2741 if test "$ac_new_set" = set; then
2743 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2744 *) ac_arg=$ac_var=$ac_new_val ;;
2746 case " $ac_configure_args " in
2747 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2748 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2752 if $ac_cache_corrupted; then
2753 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2754 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2755 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2756 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2757 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2759 ## -------------------- ##
2760 ## Main body of script. ##
2761 ## -------------------- ##
2764 ac_cpp='$CPP $CPPFLAGS'
2765 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2766 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2767 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2771 am__api_version='1.15'
2774 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2775 if test -f "$ac_dir/install-sh"; then
2777 ac_install_sh="$ac_aux_dir/install-sh -c"
2779 elif test -f "$ac_dir/install.sh"; then
2781 ac_install_sh="$ac_aux_dir/install.sh -c"
2783 elif test -f "$ac_dir/shtool"; then
2785 ac_install_sh="$ac_aux_dir/shtool install -c"
2789 if test -z "$ac_aux_dir"; then
2790 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2793 # These three variables are undocumented and unsupported,
2794 # and are intended to be withdrawn in a future Autoconf release.
2795 # They can cause serious problems if a builder's source tree is in a directory
2796 # whose full name contains unusual characters.
2797 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2798 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2799 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2802 # Find a good install program. We prefer a C program (faster),
2803 # so one script is as good as another. But avoid the broken or
2804 # incompatible versions:
2805 # SysV /etc/install, /usr/sbin/install
2806 # SunOS /usr/etc/install
2807 # IRIX /sbin/install
2809 # AmigaOS /C/install, which installs bootblocks on floppy discs
2810 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2811 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2812 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2813 # OS/2's system install, which has a completely different semantic
2814 # ./install, which can be erroneously created by make from ./install.sh.
2815 # Reject install programs that cannot install multiple files.
2816 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2817 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2818 if test -z "$INSTALL"; then
2819 if ${ac_cv_path_install+:} false; then :
2820 $as_echo_n "(cached) " >&6
2822 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2826 test -z "$as_dir" && as_dir=.
2827 # Account for people who put trailing slashes in PATH elements.
2828 case $as_dir/ in #((
2829 ./ | .// | /[cC]/* | \
2830 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2831 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2834 # OSF1 and SCO ODT 3.0 have their own names for install.
2835 # Don't use installbsd from OSF since it installs stuff as root
2837 for ac_prog in ginstall scoinst install; do
2838 for ac_exec_ext in '' $ac_executable_extensions; do
2839 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2840 if test $ac_prog = install &&
2841 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2842 # AIX install. It has an incompatible calling convention.
2844 elif test $ac_prog = install &&
2845 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2846 # program-specific install script used by HP pwplus--don't use.
2849 rm -rf conftest.one conftest.two conftest.dir
2850 echo one > conftest.one
2851 echo two > conftest.two
2853 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2854 test -s conftest.one && test -s conftest.two &&
2855 test -s conftest.dir/conftest.one &&
2856 test -s conftest.dir/conftest.two
2858 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2871 rm -rf conftest.one conftest.two conftest.dir
2874 if test "${ac_cv_path_install+set}" = set; then
2875 INSTALL=$ac_cv_path_install
2877 # As a last resort, use the slow shell script. Don't cache a
2878 # value for INSTALL within a source directory, because that will
2879 # break other packages using the cache if that directory is
2880 # removed, or if the value is a relative name.
2881 INSTALL=$ac_install_sh
2884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2885 $as_echo "$INSTALL" >&6; }
2887 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2888 # It thinks the first close brace ends the variable substitution.
2889 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2891 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2893 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2895 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2896 $as_echo_n "checking whether build environment is sane... " >&6; }
2897 # Reject unsafe characters in $srcdir or the absolute working directory
2898 # name. Accept space and tab only in the latter.
2902 *[\\\"\#\$\&\'\`$am_lf]*)
2903 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2906 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2907 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2910 # Do 'set' in a subshell so we don't clobber the current shell's
2911 # arguments. Must try -L first in case configure is actually a
2912 # symlink; some systems play weird games with the mod time of symlinks
2913 # (eg FreeBSD returns the mod time of the symlink's containing
2917 for am_try in 1 2; do
2918 echo "timestamp, slept: $am_has_slept" > conftest.file
2919 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2920 if test "$*" = "X"; then
2922 set X `ls -t "$srcdir/configure" conftest.file`
2924 if test "$*" != "X $srcdir/configure conftest.file" \
2925 && test "$*" != "X conftest.file $srcdir/configure"; then
2927 # If neither matched, then we have a broken ls. This can happen
2928 # if, for instance, CONFIG_SHELL is bash and it inherits a
2929 # broken ls alias from the environment. This has actually
2930 # happened. Such a system could not be considered "sane".
2931 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
2932 alias in your environment" "$LINENO" 5
2934 if test "$2" = conftest.file || test $am_try -eq 2; then
2941 test "$2" = conftest.file
2947 as_fn_error $? "newly created file is older than distributed files!
2948 Check your system clock" "$LINENO" 5
2950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2951 $as_echo "yes" >&6; }
2952 # If we didn't sleep, we still need to ensure time stamps of config.status and
2953 # generated files are strictly newer.
2955 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
2962 test "$program_prefix" != NONE &&
2963 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2964 # Use a double $ so make ignores it.
2965 test "$program_suffix" != NONE &&
2966 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2967 # Double any \ or $.
2968 # By default was `s,x,x', remove it if useless.
2969 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2970 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2972 # Expand $ac_aux_dir to an absolute path.
2973 am_aux_dir=`cd "$ac_aux_dir" && pwd`
2975 if test x"${MISSING+set}" != xset; then
2978 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2980 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2983 # Use eval to expand $SHELL
2984 if eval "$MISSING --is-lightweight"; then
2985 am_missing_run="$MISSING "
2988 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
2989 $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
2992 if test x"${install_sh+set}" != xset; then
2995 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2997 install_sh="\${SHELL} $am_aux_dir/install-sh"
3001 # Installed binaries are usually stripped using 'strip' when the user
3002 # run "make install-strip". However 'strip' might not be the right
3003 # tool to use in cross-compilation environments, therefore Automake
3004 # will honor the 'STRIP' environment variable to overrule this program.
3005 if test "$cross_compiling" != no; then
3006 if test -n "$ac_tool_prefix"; then
3007 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3008 set dummy ${ac_tool_prefix}strip; ac_word=$2
3009 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3010 $as_echo_n "checking for $ac_word... " >&6; }
3011 if ${ac_cv_prog_STRIP+:} false; then :
3012 $as_echo_n "(cached) " >&6
3014 if test -n "$STRIP"; then
3015 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3017 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3021 test -z "$as_dir" && as_dir=.
3022 for ac_exec_ext in '' $ac_executable_extensions; do
3023 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3024 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3025 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3034 STRIP=$ac_cv_prog_STRIP
3035 if test -n "$STRIP"; then
3036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3037 $as_echo "$STRIP" >&6; }
3039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3040 $as_echo "no" >&6; }
3045 if test -z "$ac_cv_prog_STRIP"; then
3047 # Extract the first word of "strip", so it can be a program name with args.
3048 set dummy strip; ac_word=$2
3049 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3050 $as_echo_n "checking for $ac_word... " >&6; }
3051 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
3052 $as_echo_n "(cached) " >&6
3054 if test -n "$ac_ct_STRIP"; then
3055 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3057 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3061 test -z "$as_dir" && as_dir=.
3062 for ac_exec_ext in '' $ac_executable_extensions; do
3063 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3064 ac_cv_prog_ac_ct_STRIP="strip"
3065 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3074 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3075 if test -n "$ac_ct_STRIP"; then
3076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3077 $as_echo "$ac_ct_STRIP" >&6; }
3079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3080 $as_echo "no" >&6; }
3083 if test "x$ac_ct_STRIP" = x; then
3086 case $cross_compiling:$ac_tool_warned in
3088 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3089 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3090 ac_tool_warned=yes ;;
3095 STRIP="$ac_cv_prog_STRIP"
3099 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3101 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
3102 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3103 if test -z "$MKDIR_P"; then
3104 if ${ac_cv_path_mkdir+:} false; then :
3105 $as_echo_n "(cached) " >&6
3107 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3108 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3111 test -z "$as_dir" && as_dir=.
3112 for ac_prog in mkdir gmkdir; do
3113 for ac_exec_ext in '' $ac_executable_extensions; do
3114 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
3115 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3116 'mkdir (GNU coreutils) '* | \
3117 'mkdir (coreutils) '* | \
3118 'mkdir (fileutils) '4.1*)
3119 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
3129 test -d ./--version && rmdir ./--version
3130 if test "${ac_cv_path_mkdir+set}" = set; then
3131 MKDIR_P="$ac_cv_path_mkdir -p"
3133 # As a last resort, use the slow shell script. Don't cache a
3134 # value for MKDIR_P within a source directory, because that will
3135 # break other packages using the cache if that directory is
3136 # removed, or if the value is a relative name.
3137 MKDIR_P="$ac_install_sh -d"
3140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3141 $as_echo "$MKDIR_P" >&6; }
3143 for ac_prog in gawk mawk nawk awk
3145 # Extract the first word of "$ac_prog", so it can be a program name with args.
3146 set dummy $ac_prog; ac_word=$2
3147 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3148 $as_echo_n "checking for $ac_word... " >&6; }
3149 if ${ac_cv_prog_AWK+:} false; then :
3150 $as_echo_n "(cached) " >&6
3152 if test -n "$AWK"; then
3153 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3155 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3159 test -z "$as_dir" && as_dir=.
3160 for ac_exec_ext in '' $ac_executable_extensions; do
3161 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3162 ac_cv_prog_AWK="$ac_prog"
3163 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3173 if test -n "$AWK"; then
3174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3175 $as_echo "$AWK" >&6; }
3177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3178 $as_echo "no" >&6; }
3182 test -n "$AWK" && break
3185 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3186 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3188 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3189 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
3190 $as_echo_n "(cached) " >&6
3192 cat >conftest.make <<\_ACEOF
3195 @echo '@@@%%%=$(MAKE)=@@@%%%'
3197 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3198 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3200 eval ac_cv_prog_make_${ac_make}_set=yes;;
3202 eval ac_cv_prog_make_${ac_make}_set=no;;
3206 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3208 $as_echo "yes" >&6; }
3211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3212 $as_echo "no" >&6; }
3213 SET_MAKE="MAKE=${MAKE-make}"
3216 rm -rf .tst 2>/dev/null
3217 mkdir .tst 2>/dev/null
3218 if test -d .tst; then
3223 rmdir .tst 2>/dev/null
3225 # Check whether --enable-silent-rules was given.
3226 if test "${enable_silent_rules+set}" = set; then :
3227 enableval=$enable_silent_rules;
3230 case $enable_silent_rules in # (((
3231 yes) AM_DEFAULT_VERBOSITY=0;;
3232 no) AM_DEFAULT_VERBOSITY=1;;
3233 *) AM_DEFAULT_VERBOSITY=1;;
3235 am_make=${MAKE-make}
3236 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3237 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
3238 if ${am_cv_make_support_nested_variables+:} false; then :
3239 $as_echo_n "(cached) " >&6
3241 if $as_echo 'TRUE=$(BAR$(V))
3247 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3248 am_cv_make_support_nested_variables=yes
3250 am_cv_make_support_nested_variables=no
3253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3254 $as_echo "$am_cv_make_support_nested_variables" >&6; }
3255 if test $am_cv_make_support_nested_variables = yes; then
3257 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3259 AM_V=$AM_DEFAULT_VERBOSITY
3260 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3264 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3265 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3266 # is not polluted with repeated "-I."
3267 am__isrc=' -I$(srcdir)'
3268 # test to see if srcdir already configured
3269 if test -f $srcdir/config.status; then
3270 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3274 # test whether we have cygpath
3275 if test -z "$CYGPATH_W"; then
3276 if (cygpath --version) >/dev/null 2>/dev/null; then
3277 CYGPATH_W='cygpath -w'
3284 # Define the identity of the package.
3289 cat >>confdefs.h <<_ACEOF
3290 #define PACKAGE "$PACKAGE"
3294 cat >>confdefs.h <<_ACEOF
3295 #define VERSION "$VERSION"
3298 # Some tools Automake needs.
3300 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3303 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3306 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3309 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3312 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3314 # For better backward compatibility. To be removed once Automake 1.9.x
3315 # dies out for good. For more background, see:
3316 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
3317 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
3318 mkdir_p='$(MKDIR_P)'
3320 # We need awk for the "check" target (and possibly the TAP driver). The
3321 # system "awk" is bad on some platforms.
3322 # Always define AMTAR for backward compatibility. Yes, it's still used
3323 # in the wild :-( We should find a proper way to deprecate it ...
3327 # We'll loop over all known methods to create a tar archive until one works.
3328 _am_tools='gnutar pax cpio none'
3330 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
3337 # POSIX will say in a future version that running "rm -f" with no argument
3338 # is OK; and we want to be able to make that assumption in our Makefile
3339 # recipes. So use an aggressive probe to check that the usage we want is
3340 # actually supported "in the wild" to an acceptable degree.
3341 # See automake bug#10828.
3342 # To make any issue more visible, cause the running configure to be aborted
3343 # by default if the 'rm' program in use doesn't match our expectations; the
3344 # user can still override this though.
3345 if rm -f && rm -fr && rm -rf; then : OK; else
3349 Your 'rm' program seems unable to run without file operands specified
3350 on the command line, even when the '-f' option is present. This is contrary
3351 to the behaviour of most rm programs out there, and not conforming with
3352 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
3354 Please tell bug-automake@gnu.org about your system, including the value
3355 of your $PATH and any error possibly output before this message. This
3356 can help us improve future automake versions.
3359 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
3360 echo 'Configuration will proceed anyway, since you have set the' >&2
3361 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
3365 Aborting the configuration process, to ensure you take notice of the issue.
3367 You can download and install GNU coreutils to get an 'rm' implementation
3368 that behaves properly: <http://www.gnu.org/software/coreutils/>.
3370 If you want to complete the configuration process using your problematic
3371 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
3372 to "yes", and re-run configure.
3375 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
3379 # Check whether --enable-silent-rules was given.
3380 if test "${enable_silent_rules+set}" = set; then :
3381 enableval=$enable_silent_rules;
3384 case $enable_silent_rules in # (((
3385 yes) AM_DEFAULT_VERBOSITY=0;;
3386 no) AM_DEFAULT_VERBOSITY=1;;
3387 *) AM_DEFAULT_VERBOSITY=0;;
3389 am_make=${MAKE-make}
3390 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3391 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
3392 if ${am_cv_make_support_nested_variables+:} false; then :
3393 $as_echo_n "(cached) " >&6
3395 if $as_echo 'TRUE=$(BAR$(V))
3401 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3402 am_cv_make_support_nested_variables=yes
3404 am_cv_make_support_nested_variables=no
3407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3408 $as_echo "$am_cv_make_support_nested_variables" >&6; }
3409 if test $am_cv_make_support_nested_variables = yes; then
3411 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3413 AM_V=$AM_DEFAULT_VERBOSITY
3414 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3418 ac_config_headers="$ac_config_headers config.h"
3421 # This is a new thing required to stop a warning from automake 1.12
3422 DEPDIR="${am__leading_dot}deps"
3424 ac_config_commands="$ac_config_commands depfiles"
3427 am_make=${MAKE-make}
3428 cat > confinc << 'END'
3430 @echo this is the am__doit target
3433 # If we don't find an include directive, just comment out the code.
3434 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3435 $as_echo_n "checking for style of include used by $am_make... " >&6; }
3439 # First try GNU make style include.
3440 echo "include confinc" > confmf
3441 # Ignore all kinds of additional output from 'make'.
3442 case `$am_make -s -f confmf 2> /dev/null` in #(
3443 *the\ am__doit\ target*)
3449 # Now try BSD make style include.
3450 if test "$am__include" = "#"; then
3451 echo '.include "confinc"' > confmf
3452 case `$am_make -s -f confmf 2> /dev/null` in #(
3453 *the\ am__doit\ target*)
3454 am__include=.include
3462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3463 $as_echo "$_am_result" >&6; }
3464 rm -f confinc confmf
3466 # Check whether --enable-dependency-tracking was given.
3467 if test "${enable_dependency_tracking+set}" = set; then :
3468 enableval=$enable_dependency_tracking;
3471 if test "x$enable_dependency_tracking" != xno; then
3472 am_depcomp="$ac_aux_dir/depcomp"
3476 if test "x$enable_dependency_tracking" != xno; then
3486 ac_cpp='$CPP $CPPFLAGS'
3487 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3488 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3489 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3490 if test -n "$ac_tool_prefix"; then
3491 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3492 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3493 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3494 $as_echo_n "checking for $ac_word... " >&6; }
3495 if ${ac_cv_prog_CC+:} false; then :
3496 $as_echo_n "(cached) " >&6
3498 if test -n "$CC"; then
3499 ac_cv_prog_CC="$CC" # Let the user override the test.
3501 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3505 test -z "$as_dir" && as_dir=.
3506 for ac_exec_ext in '' $ac_executable_extensions; do
3507 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3508 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3509 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3519 if test -n "$CC"; then
3520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3521 $as_echo "$CC" >&6; }
3523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3524 $as_echo "no" >&6; }
3529 if test -z "$ac_cv_prog_CC"; then
3531 # Extract the first word of "gcc", so it can be a program name with args.
3532 set dummy gcc; ac_word=$2
3533 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3534 $as_echo_n "checking for $ac_word... " >&6; }
3535 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3536 $as_echo_n "(cached) " >&6
3538 if test -n "$ac_ct_CC"; then
3539 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3541 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3545 test -z "$as_dir" && as_dir=.
3546 for ac_exec_ext in '' $ac_executable_extensions; do
3547 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3548 ac_cv_prog_ac_ct_CC="gcc"
3549 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3558 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3559 if test -n "$ac_ct_CC"; then
3560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3561 $as_echo "$ac_ct_CC" >&6; }
3563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3564 $as_echo "no" >&6; }
3567 if test "x$ac_ct_CC" = x; then
3570 case $cross_compiling:$ac_tool_warned in
3572 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3573 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3574 ac_tool_warned=yes ;;
3582 if test -z "$CC"; then
3583 if test -n "$ac_tool_prefix"; then
3584 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3585 set dummy ${ac_tool_prefix}cc; ac_word=$2
3586 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3587 $as_echo_n "checking for $ac_word... " >&6; }
3588 if ${ac_cv_prog_CC+:} false; then :
3589 $as_echo_n "(cached) " >&6
3591 if test -n "$CC"; then
3592 ac_cv_prog_CC="$CC" # Let the user override the test.
3594 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3598 test -z "$as_dir" && as_dir=.
3599 for ac_exec_ext in '' $ac_executable_extensions; do
3600 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3601 ac_cv_prog_CC="${ac_tool_prefix}cc"
3602 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3612 if test -n "$CC"; then
3613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3614 $as_echo "$CC" >&6; }
3616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3617 $as_echo "no" >&6; }
3623 if test -z "$CC"; then
3624 # Extract the first word of "cc", so it can be a program name with args.
3625 set dummy cc; ac_word=$2
3626 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3627 $as_echo_n "checking for $ac_word... " >&6; }
3628 if ${ac_cv_prog_CC+:} false; then :
3629 $as_echo_n "(cached) " >&6
3631 if test -n "$CC"; then
3632 ac_cv_prog_CC="$CC" # Let the user override the test.
3635 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3639 test -z "$as_dir" && as_dir=.
3640 for ac_exec_ext in '' $ac_executable_extensions; do
3641 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3642 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3643 ac_prog_rejected=yes
3647 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3654 if test $ac_prog_rejected = yes; then
3655 # We found a bogon in the path, so make sure we never use it.
3656 set dummy $ac_cv_prog_CC
3658 if test $# != 0; then
3659 # We chose a different compiler from the bogus one.
3660 # However, it has the same basename, so the bogon will be chosen
3661 # first if we set CC to just the basename; use the full file name.
3663 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3669 if test -n "$CC"; then
3670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3671 $as_echo "$CC" >&6; }
3673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3674 $as_echo "no" >&6; }
3679 if test -z "$CC"; then
3680 if test -n "$ac_tool_prefix"; then
3681 for ac_prog in cl.exe
3683 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3684 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3685 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3686 $as_echo_n "checking for $ac_word... " >&6; }
3687 if ${ac_cv_prog_CC+:} false; then :
3688 $as_echo_n "(cached) " >&6
3690 if test -n "$CC"; then
3691 ac_cv_prog_CC="$CC" # Let the user override the test.
3693 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3697 test -z "$as_dir" && as_dir=.
3698 for ac_exec_ext in '' $ac_executable_extensions; do
3699 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3700 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3701 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3711 if test -n "$CC"; then
3712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3713 $as_echo "$CC" >&6; }
3715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3716 $as_echo "no" >&6; }
3720 test -n "$CC" && break
3723 if test -z "$CC"; then
3725 for ac_prog in cl.exe
3727 # Extract the first word of "$ac_prog", so it can be a program name with args.
3728 set dummy $ac_prog; ac_word=$2
3729 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3730 $as_echo_n "checking for $ac_word... " >&6; }
3731 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3732 $as_echo_n "(cached) " >&6
3734 if test -n "$ac_ct_CC"; then
3735 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3737 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3741 test -z "$as_dir" && as_dir=.
3742 for ac_exec_ext in '' $ac_executable_extensions; do
3743 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3744 ac_cv_prog_ac_ct_CC="$ac_prog"
3745 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3754 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3755 if test -n "$ac_ct_CC"; then
3756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3757 $as_echo "$ac_ct_CC" >&6; }
3759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3760 $as_echo "no" >&6; }
3764 test -n "$ac_ct_CC" && break
3767 if test "x$ac_ct_CC" = x; then
3770 case $cross_compiling:$ac_tool_warned in
3772 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3773 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3774 ac_tool_warned=yes ;;
3783 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3784 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3785 as_fn_error $? "no acceptable C compiler found in \$PATH
3786 See \`config.log' for more details" "$LINENO" 5; }
3788 # Provide some information about the compiler.
3789 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3792 for ac_option in --version -v -V -qversion; do
3793 { { ac_try="$ac_compiler $ac_option >&5"
3795 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3796 *) ac_try_echo=$ac_try;;
3798 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3799 $as_echo "$ac_try_echo"; } >&5
3800 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3802 if test -s conftest.err; then
3804 ... rest of stderr output deleted ...
3805 10q' conftest.err >conftest.er1
3806 cat conftest.er1 >&5
3808 rm -f conftest.er1 conftest.err
3809 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3810 test $ac_status = 0; }
3813 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3814 /* end confdefs.h. */
3824 ac_clean_files_save=$ac_clean_files
3825 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3826 # Try to create an executable without -o first, disregard a.out.
3827 # It will help us diagnose broken compilers, and finding out an intuition
3829 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3830 $as_echo_n "checking whether the C compiler works... " >&6; }
3831 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3833 # The possible output files:
3834 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3837 for ac_file in $ac_files
3840 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3841 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3846 if { { ac_try="$ac_link_default"
3848 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3849 *) ac_try_echo=$ac_try;;
3851 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3852 $as_echo "$ac_try_echo"; } >&5
3853 (eval "$ac_link_default") 2>&5
3855 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3856 test $ac_status = 0; }; then :
3857 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3858 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3859 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3860 # so that the user can short-circuit this test for compilers unknown to
3862 for ac_file in $ac_files ''
3864 test -f "$ac_file" || continue
3866 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3869 # We found the default executable, but exeext='' is most
3873 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3875 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3877 # We set ac_cv_exeext here because the later test for it is not
3878 # safe: cross compilers may not add the suffix if given an `-o'
3879 # argument, so we may need to know it at that point already.
3880 # Even if this section looks crufty: it has the advantage of
3887 test "$ac_cv_exeext" = no && ac_cv_exeext=
3892 if test -z "$ac_file"; then :
3893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3894 $as_echo "no" >&6; }
3895 $as_echo "$as_me: failed program was:" >&5
3896 sed 's/^/| /' conftest.$ac_ext >&5
3898 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3899 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3900 as_fn_error 77 "C compiler cannot create executables
3901 See \`config.log' for more details" "$LINENO" 5; }
3903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3904 $as_echo "yes" >&6; }
3906 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3907 $as_echo_n "checking for C compiler default output file name... " >&6; }
3908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3909 $as_echo "$ac_file" >&6; }
3910 ac_exeext=$ac_cv_exeext
3912 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3913 ac_clean_files=$ac_clean_files_save
3914 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3915 $as_echo_n "checking for suffix of executables... " >&6; }
3916 if { { ac_try="$ac_link"
3918 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3919 *) ac_try_echo=$ac_try;;
3921 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3922 $as_echo "$ac_try_echo"; } >&5
3923 (eval "$ac_link") 2>&5
3925 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3926 test $ac_status = 0; }; then :
3927 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3928 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3929 # work properly (i.e., refer to `conftest.exe'), while it won't with
3931 for ac_file in conftest.exe conftest conftest.*; do
3932 test -f "$ac_file" || continue
3934 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3935 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3941 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3942 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3943 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3944 See \`config.log' for more details" "$LINENO" 5; }
3946 rm -f conftest conftest$ac_cv_exeext
3947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3948 $as_echo "$ac_cv_exeext" >&6; }
3950 rm -f conftest.$ac_ext
3951 EXEEXT=$ac_cv_exeext
3953 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3954 /* end confdefs.h. */
3959 FILE *f = fopen ("conftest.out", "w");
3960 return ferror (f) || fclose (f) != 0;
3966 ac_clean_files="$ac_clean_files conftest.out"
3967 # Check that the compiler produces executables we can run. If not, either
3968 # the compiler is broken, or we cross compile.
3969 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3970 $as_echo_n "checking whether we are cross compiling... " >&6; }
3971 if test "$cross_compiling" != yes; then
3972 { { ac_try="$ac_link"
3974 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3975 *) ac_try_echo=$ac_try;;
3977 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3978 $as_echo "$ac_try_echo"; } >&5
3979 (eval "$ac_link") 2>&5
3981 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3982 test $ac_status = 0; }
3983 if { ac_try='./conftest$ac_cv_exeext'
3984 { { case "(($ac_try" in
3985 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3986 *) ac_try_echo=$ac_try;;
3988 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3989 $as_echo "$ac_try_echo"; } >&5
3990 (eval "$ac_try") 2>&5
3992 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3993 test $ac_status = 0; }; }; then
3996 if test "$cross_compiling" = maybe; then
3999 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4000 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4001 as_fn_error $? "cannot run C compiled programs.
4002 If you meant to cross compile, use \`--host'.
4003 See \`config.log' for more details" "$LINENO" 5; }
4007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4008 $as_echo "$cross_compiling" >&6; }
4010 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
4011 ac_clean_files=$ac_clean_files_save
4012 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4013 $as_echo_n "checking for suffix of object files... " >&6; }
4014 if ${ac_cv_objext+:} false; then :
4015 $as_echo_n "(cached) " >&6
4017 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4018 /* end confdefs.h. */
4028 rm -f conftest.o conftest.obj
4029 if { { ac_try="$ac_compile"
4031 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4032 *) ac_try_echo=$ac_try;;
4034 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4035 $as_echo "$ac_try_echo"; } >&5
4036 (eval "$ac_compile") 2>&5
4038 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4039 test $ac_status = 0; }; then :
4040 for ac_file in conftest.o conftest.obj conftest.*; do
4041 test -f "$ac_file" || continue;
4043 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4044 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4049 $as_echo "$as_me: failed program was:" >&5
4050 sed 's/^/| /' conftest.$ac_ext >&5
4052 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4053 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4054 as_fn_error $? "cannot compute suffix of object files: cannot compile
4055 See \`config.log' for more details" "$LINENO" 5; }
4057 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4060 $as_echo "$ac_cv_objext" >&6; }
4061 OBJEXT=$ac_cv_objext
4063 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4064 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4065 if ${ac_cv_c_compiler_gnu+:} false; then :
4066 $as_echo_n "(cached) " >&6
4068 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4069 /* end confdefs.h. */
4082 if ac_fn_c_try_compile "$LINENO"; then :
4087 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4088 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4092 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4093 if test $ac_compiler_gnu = yes; then
4098 ac_test_CFLAGS=${CFLAGS+set}
4099 ac_save_CFLAGS=$CFLAGS
4100 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4101 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4102 if ${ac_cv_prog_cc_g+:} false; then :
4103 $as_echo_n "(cached) " >&6
4105 ac_save_c_werror_flag=$ac_c_werror_flag
4106 ac_c_werror_flag=yes
4109 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4110 /* end confdefs.h. */
4120 if ac_fn_c_try_compile "$LINENO"; then :
4124 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4125 /* end confdefs.h. */
4135 if ac_fn_c_try_compile "$LINENO"; then :
4138 ac_c_werror_flag=$ac_save_c_werror_flag
4140 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4141 /* end confdefs.h. */
4151 if ac_fn_c_try_compile "$LINENO"; then :
4154 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4156 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4158 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4159 ac_c_werror_flag=$ac_save_c_werror_flag
4161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4162 $as_echo "$ac_cv_prog_cc_g" >&6; }
4163 if test "$ac_test_CFLAGS" = set; then
4164 CFLAGS=$ac_save_CFLAGS
4165 elif test $ac_cv_prog_cc_g = yes; then
4166 if test "$GCC" = yes; then
4172 if test "$GCC" = yes; then
4178 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4179 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4180 if ${ac_cv_prog_cc_c89+:} false; then :
4181 $as_echo_n "(cached) " >&6
4183 ac_cv_prog_cc_c89=no
4185 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4186 /* end confdefs.h. */
4190 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4191 struct buf { int x; };
4192 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4193 static char *e (p, i)
4199 static char *f (char * (*g) (char **, int), char **p, ...)
4204 s = g (p, va_arg (v,int));
4209 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4210 function prototypes and stuff, but not '\xHH' hex character constants.
4211 These don't provoke an error unfortunately, instead are silently treated
4212 as 'x'. The following induces an error, until -std is added to get
4213 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4214 array size at least. It's necessary to write '\x00'==0 to get something
4215 that's true only with -std. */
4216 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4218 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4219 inside strings and character constants. */
4221 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4223 int test (int i, double x);
4224 struct s1 {int (*f) (int a);};
4225 struct s2 {int (*f) (double a);};
4226 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4232 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4237 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4238 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4240 CC="$ac_save_CC $ac_arg"
4241 if ac_fn_c_try_compile "$LINENO"; then :
4242 ac_cv_prog_cc_c89=$ac_arg
4244 rm -f core conftest.err conftest.$ac_objext
4245 test "x$ac_cv_prog_cc_c89" != "xno" && break
4247 rm -f conftest.$ac_ext
4252 case "x$ac_cv_prog_cc_c89" in
4254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4255 $as_echo "none needed" >&6; } ;;
4257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4258 $as_echo "unsupported" >&6; } ;;
4260 CC="$CC $ac_cv_prog_cc_c89"
4261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4262 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4264 if test "x$ac_cv_prog_cc_c89" != xno; then :
4269 ac_cpp='$CPP $CPPFLAGS'
4270 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4271 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4272 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4275 ac_cpp='$CPP $CPPFLAGS'
4276 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4277 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4278 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4279 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
4280 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
4281 if ${am_cv_prog_cc_c_o+:} false; then :
4282 $as_echo_n "(cached) " >&6
4284 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4285 /* end confdefs.h. */
4295 # Make sure it works both with $CC and with simple cc.
4296 # Following AC_PROG_CC_C_O, we do the test twice because some
4297 # compilers refuse to overwrite an existing .o file with -o,
4298 # though they will create one.
4299 am_cv_prog_cc_c_o=yes
4301 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
4302 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
4304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4305 (exit $ac_status); } \
4306 && test -f conftest2.$ac_objext; then
4309 am_cv_prog_cc_c_o=no
4313 rm -f core conftest*
4316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
4317 $as_echo "$am_cv_prog_cc_c_o" >&6; }
4318 if test "$am_cv_prog_cc_c_o" != yes; then
4319 # Losing compiler, so override with the script.
4320 # FIXME: It is wrong to rewrite CC.
4321 # But if we don't then we get into trouble of one sort or another.
4322 # A longer-term fix would be to have automake use am__CC in this case,
4323 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4324 CC="$am_aux_dir/compile $CC"
4327 ac_cpp='$CPP $CPPFLAGS'
4328 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4329 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4330 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4333 depcc="$CC" am_compiler_list=
4335 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4336 $as_echo_n "checking dependency style of $depcc... " >&6; }
4337 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
4338 $as_echo_n "(cached) " >&6
4340 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4341 # We make a subdir and do the tests there. Otherwise we can end up
4342 # making bogus files that we don't know about and never remove. For
4343 # instance it was reported that on HP-UX the gcc test will end up
4344 # making a dummy file named 'D' -- because '-MD' means "put the output
4348 # Copy depcomp to subdir because otherwise we won't find it if we're
4349 # using a relative directory.
4350 cp "$am_depcomp" conftest.dir
4352 # We will build objects and dependencies in a subdirectory because
4353 # it helps to detect inapplicable dependency modes. For instance
4354 # both Tru64's cc and ICC support -MD to output dependencies as a
4355 # side effect of compilation, but ICC will put the dependencies in
4356 # the current directory while Tru64 will put them in the object
4360 am_cv_CC_dependencies_compiler_type=none
4361 if test "$am_compiler_list" = ""; then
4362 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4365 case " $depcc " in #(
4366 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4369 for depmode in $am_compiler_list; do
4370 # Setup a source with many dependencies, because some compilers
4371 # like to wrap large dependency lists on column 80 (with \), and
4372 # we should not choose a depcomp mode which is confused by this.
4374 # We need to recreate these files for each test, as the compiler may
4375 # overwrite some of them when testing with obscure command lines.
4376 # This happens at least with the AIX C compiler.
4378 for i in 1 2 3 4 5 6; do
4379 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4380 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4381 # Solaris 10 /bin/sh.
4382 echo '/* dummy */' > sub/conftst$i.h
4384 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4386 # We check with '-c' and '-o' for the sake of the "dashmstdout"
4387 # mode. It turns out that the SunPro C++ compiler does not properly
4388 # handle '-M -o', and we need to detect this. Also, some Intel
4389 # versions had trouble with output in subdirs.
4390 am__obj=sub/conftest.${OBJEXT-o}
4391 am__minus_obj="-o $am__obj"
4394 # This depmode causes a compiler race in universal mode.
4395 test "$am__universal" = false || continue
4398 # After this tag, mechanisms are not by side-effect, so they'll
4399 # only be used when explicitly requested.
4400 if test "x$enable_dependency_tracking" = xyes; then
4406 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4407 # This compiler won't grok '-c -o', but also, the minuso test has
4408 # not run yet. These depmodes are late enough in the game, and
4409 # so weak that their functioning should not be impacted.
4410 am__obj=conftest.${OBJEXT-o}
4415 if depmode=$depmode \
4416 source=sub/conftest.c object=$am__obj \
4417 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4418 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4419 >/dev/null 2>conftest.err &&
4420 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4421 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4422 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4423 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4424 # icc doesn't choke on unknown options, it will just issue warnings
4425 # or remarks (even with -Werror). So we grep stderr for any message
4426 # that says an option was ignored or not supported.
4427 # When given -MP, icc 7.0 and 7.1 complain thusly:
4428 # icc: Command line warning: ignoring option '-M'; no argument required
4429 # The diagnosis changed in icc 8.0:
4430 # icc: Command line remark: option '-MP' not supported
4431 if (grep 'ignoring option' conftest.err ||
4432 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4433 am_cv_CC_dependencies_compiler_type=$depmode
4442 am_cv_CC_dependencies_compiler_type=none
4446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4447 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4448 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4451 test "x$enable_dependency_tracking" != xno \
4452 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4454 am__fastdepCC_FALSE='#'
4456 am__fastdepCC_TRUE='#'
4457 am__fastdepCC_FALSE=
4462 if test -n "$ac_tool_prefix"; then
4463 for ac_prog in ar lib "link -lib"
4465 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4466 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4467 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4468 $as_echo_n "checking for $ac_word... " >&6; }
4469 if ${ac_cv_prog_AR+:} false; then :
4470 $as_echo_n "(cached) " >&6
4472 if test -n "$AR"; then
4473 ac_cv_prog_AR="$AR" # Let the user override the test.
4475 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4479 test -z "$as_dir" && as_dir=.
4480 for ac_exec_ext in '' $ac_executable_extensions; do
4481 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4482 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
4483 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4493 if test -n "$AR"; then
4494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
4495 $as_echo "$AR" >&6; }
4497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4498 $as_echo "no" >&6; }
4502 test -n "$AR" && break
4505 if test -z "$AR"; then
4507 for ac_prog in ar lib "link -lib"
4509 # Extract the first word of "$ac_prog", so it can be a program name with args.
4510 set dummy $ac_prog; ac_word=$2
4511 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4512 $as_echo_n "checking for $ac_word... " >&6; }
4513 if ${ac_cv_prog_ac_ct_AR+:} false; then :
4514 $as_echo_n "(cached) " >&6
4516 if test -n "$ac_ct_AR"; then
4517 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
4519 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4523 test -z "$as_dir" && as_dir=.
4524 for ac_exec_ext in '' $ac_executable_extensions; do
4525 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4526 ac_cv_prog_ac_ct_AR="$ac_prog"
4527 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4536 ac_ct_AR=$ac_cv_prog_ac_ct_AR
4537 if test -n "$ac_ct_AR"; then
4538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
4539 $as_echo "$ac_ct_AR" >&6; }
4541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4542 $as_echo "no" >&6; }
4546 test -n "$ac_ct_AR" && break
4549 if test "x$ac_ct_AR" = x; then
4552 case $cross_compiling:$ac_tool_warned in
4554 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4555 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4556 ac_tool_warned=yes ;;
4564 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the archiver ($AR) interface" >&5
4565 $as_echo_n "checking the archiver ($AR) interface... " >&6; }
4566 if ${am_cv_ar_interface+:} false; then :
4567 $as_echo_n "(cached) " >&6
4570 ac_cpp='$CPP $CPPFLAGS'
4571 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4572 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4573 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4575 am_cv_ar_interface=ar
4576 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4577 /* end confdefs.h. */
4578 int some_variable = 0;
4580 if ac_fn_c_try_compile "$LINENO"; then :
4581 am_ar_try='$AR cru libconftest.a 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=ar
4590 am_ar_try='$AR -NOLOGO -OUT:conftest.lib conftest.$ac_objext >&5'
4591 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$am_ar_try\""; } >&5
4592 (eval $am_ar_try) 2>&5
4594 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4595 test $ac_status = 0; }
4596 if test "$ac_status" -eq 0; then
4597 am_cv_ar_interface=lib
4599 am_cv_ar_interface=unknown
4602 rm -f conftest.lib libconftest.a
4605 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4607 ac_cpp='$CPP $CPPFLAGS'
4608 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4609 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4610 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_ar_interface" >&5
4614 $as_echo "$am_cv_ar_interface" >&6; }
4616 case $am_cv_ar_interface in
4620 # Microsoft lib, so override with the ar-lib wrapper script.
4621 # FIXME: It is wrong to rewrite AR.
4622 # But if we don't then we get into trouble of one sort or another.
4623 # A longer-term fix would be to have automake use am__AR in this case,
4624 # and then we could set am__AR="$am_aux_dir/ar-lib \$(AR)" or something
4626 AR="$am_aux_dir/ar-lib $AR"
4629 as_fn_error $? "could not determine $AR interface" "$LINENO" 5
4634 # This was added at the suggestion of libtoolize (03-Jan-10)
4637 # The default CFLAGS and CXXFLAGS in Autoconf are "-g -O2" for gcc and just
4638 # "-g" for any other compiler. There doesn't seem to be a standard way of
4639 # getting rid of the -g (which I don't think is needed for a production
4640 # library). This fudge seems to achieve the necessary. First, we remember the
4641 # externally set values of CFLAGS and CXXFLAGS. Then call the AC_PROG_CC and
4642 # AC_PROG_CXX macros to find the compilers - if CFLAGS and CXXFLAGS are not
4643 # set, they will be set to Autoconf's defaults. Afterwards, if the original
4644 # values were not set, remove the -g from the Autoconf defaults.
4647 remember_set_CFLAGS="$CFLAGS"
4648 remember_set_CXXFLAGS="$CXXFLAGS"
4651 ac_cpp='$CPP $CPPFLAGS'
4652 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4653 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4654 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4655 if test -n "$ac_tool_prefix"; then
4656 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4657 set dummy ${ac_tool_prefix}gcc; ac_word=$2
4658 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4659 $as_echo_n "checking for $ac_word... " >&6; }
4660 if ${ac_cv_prog_CC+:} false; then :
4661 $as_echo_n "(cached) " >&6
4663 if test -n "$CC"; then
4664 ac_cv_prog_CC="$CC" # Let the user override the test.
4666 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4670 test -z "$as_dir" && as_dir=.
4671 for ac_exec_ext in '' $ac_executable_extensions; do
4672 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4673 ac_cv_prog_CC="${ac_tool_prefix}gcc"
4674 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4684 if test -n "$CC"; then
4685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4686 $as_echo "$CC" >&6; }
4688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4689 $as_echo "no" >&6; }
4694 if test -z "$ac_cv_prog_CC"; then
4696 # Extract the first word of "gcc", so it can be a program name with args.
4697 set dummy gcc; ac_word=$2
4698 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4699 $as_echo_n "checking for $ac_word... " >&6; }
4700 if ${ac_cv_prog_ac_ct_CC+:} false; then :
4701 $as_echo_n "(cached) " >&6
4703 if test -n "$ac_ct_CC"; then
4704 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4706 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4710 test -z "$as_dir" && as_dir=.
4711 for ac_exec_ext in '' $ac_executable_extensions; do
4712 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4713 ac_cv_prog_ac_ct_CC="gcc"
4714 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4723 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4724 if test -n "$ac_ct_CC"; then
4725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4726 $as_echo "$ac_ct_CC" >&6; }
4728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4729 $as_echo "no" >&6; }
4732 if test "x$ac_ct_CC" = x; then
4735 case $cross_compiling:$ac_tool_warned in
4737 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4738 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4739 ac_tool_warned=yes ;;
4747 if test -z "$CC"; then
4748 if test -n "$ac_tool_prefix"; then
4749 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4750 set dummy ${ac_tool_prefix}cc; ac_word=$2
4751 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4752 $as_echo_n "checking for $ac_word... " >&6; }
4753 if ${ac_cv_prog_CC+:} false; then :
4754 $as_echo_n "(cached) " >&6
4756 if test -n "$CC"; then
4757 ac_cv_prog_CC="$CC" # Let the user override the test.
4759 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4763 test -z "$as_dir" && as_dir=.
4764 for ac_exec_ext in '' $ac_executable_extensions; do
4765 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4766 ac_cv_prog_CC="${ac_tool_prefix}cc"
4767 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4777 if test -n "$CC"; then
4778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4779 $as_echo "$CC" >&6; }
4781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4782 $as_echo "no" >&6; }
4788 if test -z "$CC"; then
4789 # Extract the first word of "cc", so it can be a program name with args.
4790 set dummy cc; ac_word=$2
4791 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4792 $as_echo_n "checking for $ac_word... " >&6; }
4793 if ${ac_cv_prog_CC+:} false; then :
4794 $as_echo_n "(cached) " >&6
4796 if test -n "$CC"; then
4797 ac_cv_prog_CC="$CC" # Let the user override the test.
4800 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4804 test -z "$as_dir" && as_dir=.
4805 for ac_exec_ext in '' $ac_executable_extensions; do
4806 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4807 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4808 ac_prog_rejected=yes
4812 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4819 if test $ac_prog_rejected = yes; then
4820 # We found a bogon in the path, so make sure we never use it.
4821 set dummy $ac_cv_prog_CC
4823 if test $# != 0; then
4824 # We chose a different compiler from the bogus one.
4825 # However, it has the same basename, so the bogon will be chosen
4826 # first if we set CC to just the basename; use the full file name.
4828 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4834 if test -n "$CC"; then
4835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4836 $as_echo "$CC" >&6; }
4838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4839 $as_echo "no" >&6; }
4844 if test -z "$CC"; then
4845 if test -n "$ac_tool_prefix"; then
4846 for ac_prog in cl.exe
4848 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4849 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4850 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4851 $as_echo_n "checking for $ac_word... " >&6; }
4852 if ${ac_cv_prog_CC+:} false; then :
4853 $as_echo_n "(cached) " >&6
4855 if test -n "$CC"; then
4856 ac_cv_prog_CC="$CC" # Let the user override the test.
4858 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4862 test -z "$as_dir" && as_dir=.
4863 for ac_exec_ext in '' $ac_executable_extensions; do
4864 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4865 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4866 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4876 if test -n "$CC"; then
4877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4878 $as_echo "$CC" >&6; }
4880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4881 $as_echo "no" >&6; }
4885 test -n "$CC" && break
4888 if test -z "$CC"; then
4890 for ac_prog in cl.exe
4892 # Extract the first word of "$ac_prog", so it can be a program name with args.
4893 set dummy $ac_prog; ac_word=$2
4894 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4895 $as_echo_n "checking for $ac_word... " >&6; }
4896 if ${ac_cv_prog_ac_ct_CC+:} false; then :
4897 $as_echo_n "(cached) " >&6
4899 if test -n "$ac_ct_CC"; then
4900 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4902 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4906 test -z "$as_dir" && as_dir=.
4907 for ac_exec_ext in '' $ac_executable_extensions; do
4908 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4909 ac_cv_prog_ac_ct_CC="$ac_prog"
4910 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4919 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4920 if test -n "$ac_ct_CC"; then
4921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4922 $as_echo "$ac_ct_CC" >&6; }
4924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4925 $as_echo "no" >&6; }
4929 test -n "$ac_ct_CC" && break
4932 if test "x$ac_ct_CC" = x; then
4935 case $cross_compiling:$ac_tool_warned in
4937 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4938 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4939 ac_tool_warned=yes ;;
4948 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4949 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4950 as_fn_error $? "no acceptable C compiler found in \$PATH
4951 See \`config.log' for more details" "$LINENO" 5; }
4953 # Provide some information about the compiler.
4954 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4957 for ac_option in --version -v -V -qversion; do
4958 { { ac_try="$ac_compiler $ac_option >&5"
4960 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4961 *) ac_try_echo=$ac_try;;
4963 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4964 $as_echo "$ac_try_echo"; } >&5
4965 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4967 if test -s conftest.err; then
4969 ... rest of stderr output deleted ...
4970 10q' conftest.err >conftest.er1
4971 cat conftest.er1 >&5
4973 rm -f conftest.er1 conftest.err
4974 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4975 test $ac_status = 0; }
4978 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4979 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4980 if ${ac_cv_c_compiler_gnu+:} false; then :
4981 $as_echo_n "(cached) " >&6
4983 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4984 /* end confdefs.h. */
4997 if ac_fn_c_try_compile "$LINENO"; then :
5002 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5003 ac_cv_c_compiler_gnu=$ac_compiler_gnu
5006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
5007 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
5008 if test $ac_compiler_gnu = yes; then
5013 ac_test_CFLAGS=${CFLAGS+set}
5014 ac_save_CFLAGS=$CFLAGS
5015 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
5016 $as_echo_n "checking whether $CC accepts -g... " >&6; }
5017 if ${ac_cv_prog_cc_g+:} false; then :
5018 $as_echo_n "(cached) " >&6
5020 ac_save_c_werror_flag=$ac_c_werror_flag
5021 ac_c_werror_flag=yes
5024 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5025 /* end confdefs.h. */
5035 if ac_fn_c_try_compile "$LINENO"; then :
5039 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5040 /* end confdefs.h. */
5050 if ac_fn_c_try_compile "$LINENO"; then :
5053 ac_c_werror_flag=$ac_save_c_werror_flag
5055 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5056 /* end confdefs.h. */
5066 if ac_fn_c_try_compile "$LINENO"; then :
5069 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5071 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5073 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5074 ac_c_werror_flag=$ac_save_c_werror_flag
5076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
5077 $as_echo "$ac_cv_prog_cc_g" >&6; }
5078 if test "$ac_test_CFLAGS" = set; then
5079 CFLAGS=$ac_save_CFLAGS
5080 elif test $ac_cv_prog_cc_g = yes; then
5081 if test "$GCC" = yes; then
5087 if test "$GCC" = yes; then
5093 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
5094 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
5095 if ${ac_cv_prog_cc_c89+:} false; then :
5096 $as_echo_n "(cached) " >&6
5098 ac_cv_prog_cc_c89=no
5100 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5101 /* end confdefs.h. */
5105 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
5106 struct buf { int x; };
5107 FILE * (*rcsopen) (struct buf *, struct stat *, int);
5108 static char *e (p, i)
5114 static char *f (char * (*g) (char **, int), char **p, ...)
5119 s = g (p, va_arg (v,int));
5124 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
5125 function prototypes and stuff, but not '\xHH' hex character constants.
5126 These don't provoke an error unfortunately, instead are silently treated
5127 as 'x'. The following induces an error, until -std is added to get
5128 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
5129 array size at least. It's necessary to write '\x00'==0 to get something
5130 that's true only with -std. */
5131 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5133 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5134 inside strings and character constants. */
5136 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5138 int test (int i, double x);
5139 struct s1 {int (*f) (int a);};
5140 struct s2 {int (*f) (double a);};
5141 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5147 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
5152 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5153 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5155 CC="$ac_save_CC $ac_arg"
5156 if ac_fn_c_try_compile "$LINENO"; then :
5157 ac_cv_prog_cc_c89=$ac_arg
5159 rm -f core conftest.err conftest.$ac_objext
5160 test "x$ac_cv_prog_cc_c89" != "xno" && break
5162 rm -f conftest.$ac_ext
5167 case "x$ac_cv_prog_cc_c89" in
5169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5170 $as_echo "none needed" >&6; } ;;
5172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5173 $as_echo "unsupported" >&6; } ;;
5175 CC="$CC $ac_cv_prog_cc_c89"
5176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
5177 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
5179 if test "x$ac_cv_prog_cc_c89" != xno; then :
5184 ac_cpp='$CPP $CPPFLAGS'
5185 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5186 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5187 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5190 ac_cpp='$CPP $CPPFLAGS'
5191 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5192 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5193 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5194 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
5195 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
5196 if ${am_cv_prog_cc_c_o+:} false; then :
5197 $as_echo_n "(cached) " >&6
5199 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5200 /* end confdefs.h. */
5210 # Make sure it works both with $CC and with simple cc.
5211 # Following AC_PROG_CC_C_O, we do the test twice because some
5212 # compilers refuse to overwrite an existing .o file with -o,
5213 # though they will create one.
5214 am_cv_prog_cc_c_o=yes
5216 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
5217 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
5219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5220 (exit $ac_status); } \
5221 && test -f conftest2.$ac_objext; then
5224 am_cv_prog_cc_c_o=no
5228 rm -f core conftest*
5231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
5232 $as_echo "$am_cv_prog_cc_c_o" >&6; }
5233 if test "$am_cv_prog_cc_c_o" != yes; then
5234 # Losing compiler, so override with the script.
5235 # FIXME: It is wrong to rewrite CC.
5236 # But if we don't then we get into trouble of one sort or another.
5237 # A longer-term fix would be to have automake use am__CC in this case,
5238 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
5239 CC="$am_aux_dir/compile $CC"
5242 ac_cpp='$CPP $CPPFLAGS'
5243 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5244 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5245 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5248 depcc="$CC" am_compiler_list=
5250 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
5251 $as_echo_n "checking dependency style of $depcc... " >&6; }
5252 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
5253 $as_echo_n "(cached) " >&6
5255 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5256 # We make a subdir and do the tests there. Otherwise we can end up
5257 # making bogus files that we don't know about and never remove. For
5258 # instance it was reported that on HP-UX the gcc test will end up
5259 # making a dummy file named 'D' -- because '-MD' means "put the output
5263 # Copy depcomp to subdir because otherwise we won't find it if we're
5264 # using a relative directory.
5265 cp "$am_depcomp" conftest.dir
5267 # We will build objects and dependencies in a subdirectory because
5268 # it helps to detect inapplicable dependency modes. For instance
5269 # both Tru64's cc and ICC support -MD to output dependencies as a
5270 # side effect of compilation, but ICC will put the dependencies in
5271 # the current directory while Tru64 will put them in the object
5275 am_cv_CC_dependencies_compiler_type=none
5276 if test "$am_compiler_list" = ""; then
5277 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5280 case " $depcc " in #(
5281 *\ -arch\ *\ -arch\ *) am__universal=true ;;
5284 for depmode in $am_compiler_list; do
5285 # Setup a source with many dependencies, because some compilers
5286 # like to wrap large dependency lists on column 80 (with \), and
5287 # we should not choose a depcomp mode which is confused by this.
5289 # We need to recreate these files for each test, as the compiler may
5290 # overwrite some of them when testing with obscure command lines.
5291 # This happens at least with the AIX C compiler.
5293 for i in 1 2 3 4 5 6; do
5294 echo '#include "conftst'$i'.h"' >> sub/conftest.c
5295 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
5296 # Solaris 10 /bin/sh.
5297 echo '/* dummy */' > sub/conftst$i.h
5299 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5301 # We check with '-c' and '-o' for the sake of the "dashmstdout"
5302 # mode. It turns out that the SunPro C++ compiler does not properly
5303 # handle '-M -o', and we need to detect this. Also, some Intel
5304 # versions had trouble with output in subdirs.
5305 am__obj=sub/conftest.${OBJEXT-o}
5306 am__minus_obj="-o $am__obj"
5309 # This depmode causes a compiler race in universal mode.
5310 test "$am__universal" = false || continue
5313 # After this tag, mechanisms are not by side-effect, so they'll
5314 # only be used when explicitly requested.
5315 if test "x$enable_dependency_tracking" = xyes; then
5321 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
5322 # This compiler won't grok '-c -o', but also, the minuso test has
5323 # not run yet. These depmodes are late enough in the game, and
5324 # so weak that their functioning should not be impacted.
5325 am__obj=conftest.${OBJEXT-o}
5330 if depmode=$depmode \
5331 source=sub/conftest.c object=$am__obj \
5332 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5333 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
5334 >/dev/null 2>conftest.err &&
5335 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5336 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5337 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
5338 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5339 # icc doesn't choke on unknown options, it will just issue warnings
5340 # or remarks (even with -Werror). So we grep stderr for any message
5341 # that says an option was ignored or not supported.
5342 # When given -MP, icc 7.0 and 7.1 complain thusly:
5343 # icc: Command line warning: ignoring option '-M'; no argument required
5344 # The diagnosis changed in icc 8.0:
5345 # icc: Command line remark: option '-MP' not supported
5346 if (grep 'ignoring option' conftest.err ||
5347 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5348 am_cv_CC_dependencies_compiler_type=$depmode
5357 am_cv_CC_dependencies_compiler_type=none
5361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
5362 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
5363 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5366 test "x$enable_dependency_tracking" != xno \
5367 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5369 am__fastdepCC_FALSE='#'
5371 am__fastdepCC_TRUE='#'
5372 am__fastdepCC_FALSE=
5377 ac_cpp='$CXXCPP $CPPFLAGS'
5378 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5379 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5380 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5381 if test -z "$CXX"; then
5382 if test -n "$CCC"; then
5385 if test -n "$ac_tool_prefix"; then
5386 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5388 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5389 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5390 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5391 $as_echo_n "checking for $ac_word... " >&6; }
5392 if ${ac_cv_prog_CXX+:} false; then :
5393 $as_echo_n "(cached) " >&6
5395 if test -n "$CXX"; then
5396 ac_cv_prog_CXX="$CXX" # Let the user override the test.
5398 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5402 test -z "$as_dir" && as_dir=.
5403 for ac_exec_ext in '' $ac_executable_extensions; do
5404 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5405 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
5406 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5416 if test -n "$CXX"; then
5417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
5418 $as_echo "$CXX" >&6; }
5420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5421 $as_echo "no" >&6; }
5425 test -n "$CXX" && break
5428 if test -z "$CXX"; then
5430 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5432 # Extract the first word of "$ac_prog", so it can be a program name with args.
5433 set dummy $ac_prog; ac_word=$2
5434 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5435 $as_echo_n "checking for $ac_word... " >&6; }
5436 if ${ac_cv_prog_ac_ct_CXX+:} false; then :
5437 $as_echo_n "(cached) " >&6
5439 if test -n "$ac_ct_CXX"; then
5440 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
5442 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5446 test -z "$as_dir" && as_dir=.
5447 for ac_exec_ext in '' $ac_executable_extensions; do
5448 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5449 ac_cv_prog_ac_ct_CXX="$ac_prog"
5450 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5459 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
5460 if test -n "$ac_ct_CXX"; then
5461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
5462 $as_echo "$ac_ct_CXX" >&6; }
5464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5465 $as_echo "no" >&6; }
5469 test -n "$ac_ct_CXX" && break
5472 if test "x$ac_ct_CXX" = x; then
5475 case $cross_compiling:$ac_tool_warned in
5477 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5478 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5479 ac_tool_warned=yes ;;
5487 # Provide some information about the compiler.
5488 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
5491 for ac_option in --version -v -V -qversion; do
5492 { { ac_try="$ac_compiler $ac_option >&5"
5494 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5495 *) ac_try_echo=$ac_try;;
5497 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5498 $as_echo "$ac_try_echo"; } >&5
5499 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
5501 if test -s conftest.err; then
5503 ... rest of stderr output deleted ...
5504 10q' conftest.err >conftest.er1
5505 cat conftest.er1 >&5
5507 rm -f conftest.er1 conftest.err
5508 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5509 test $ac_status = 0; }
5512 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
5513 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
5514 if ${ac_cv_cxx_compiler_gnu+:} false; then :
5515 $as_echo_n "(cached) " >&6
5517 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5518 /* end confdefs.h. */
5531 if ac_fn_cxx_try_compile "$LINENO"; then :
5536 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5537 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
5540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
5541 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
5542 if test $ac_compiler_gnu = yes; then
5547 ac_test_CXXFLAGS=${CXXFLAGS+set}
5548 ac_save_CXXFLAGS=$CXXFLAGS
5549 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
5550 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
5551 if ${ac_cv_prog_cxx_g+:} false; then :
5552 $as_echo_n "(cached) " >&6
5554 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
5555 ac_cxx_werror_flag=yes
5558 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5559 /* end confdefs.h. */
5569 if ac_fn_cxx_try_compile "$LINENO"; then :
5570 ac_cv_prog_cxx_g=yes
5573 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5574 /* end confdefs.h. */
5584 if ac_fn_cxx_try_compile "$LINENO"; then :
5587 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5589 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5590 /* end confdefs.h. */
5600 if ac_fn_cxx_try_compile "$LINENO"; then :
5601 ac_cv_prog_cxx_g=yes
5603 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5605 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5607 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5608 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
5611 $as_echo "$ac_cv_prog_cxx_g" >&6; }
5612 if test "$ac_test_CXXFLAGS" = set; then
5613 CXXFLAGS=$ac_save_CXXFLAGS
5614 elif test $ac_cv_prog_cxx_g = yes; then
5615 if test "$GXX" = yes; then
5621 if test "$GXX" = yes; then
5628 ac_cpp='$CPP $CPPFLAGS'
5629 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5630 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5631 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5633 depcc="$CXX" am_compiler_list=
5635 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
5636 $as_echo_n "checking dependency style of $depcc... " >&6; }
5637 if ${am_cv_CXX_dependencies_compiler_type+:} false; then :
5638 $as_echo_n "(cached) " >&6
5640 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5641 # We make a subdir and do the tests there. Otherwise we can end up
5642 # making bogus files that we don't know about and never remove. For
5643 # instance it was reported that on HP-UX the gcc test will end up
5644 # making a dummy file named 'D' -- because '-MD' means "put the output
5648 # Copy depcomp to subdir because otherwise we won't find it if we're
5649 # using a relative directory.
5650 cp "$am_depcomp" conftest.dir
5652 # We will build objects and dependencies in a subdirectory because
5653 # it helps to detect inapplicable dependency modes. For instance
5654 # both Tru64's cc and ICC support -MD to output dependencies as a
5655 # side effect of compilation, but ICC will put the dependencies in
5656 # the current directory while Tru64 will put them in the object
5660 am_cv_CXX_dependencies_compiler_type=none
5661 if test "$am_compiler_list" = ""; then
5662 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5665 case " $depcc " in #(
5666 *\ -arch\ *\ -arch\ *) am__universal=true ;;
5669 for depmode in $am_compiler_list; do
5670 # Setup a source with many dependencies, because some compilers
5671 # like to wrap large dependency lists on column 80 (with \), and
5672 # we should not choose a depcomp mode which is confused by this.
5674 # We need to recreate these files for each test, as the compiler may
5675 # overwrite some of them when testing with obscure command lines.
5676 # This happens at least with the AIX C compiler.
5678 for i in 1 2 3 4 5 6; do
5679 echo '#include "conftst'$i'.h"' >> sub/conftest.c
5680 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
5681 # Solaris 10 /bin/sh.
5682 echo '/* dummy */' > sub/conftst$i.h
5684 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5686 # We check with '-c' and '-o' for the sake of the "dashmstdout"
5687 # mode. It turns out that the SunPro C++ compiler does not properly
5688 # handle '-M -o', and we need to detect this. Also, some Intel
5689 # versions had trouble with output in subdirs.
5690 am__obj=sub/conftest.${OBJEXT-o}
5691 am__minus_obj="-o $am__obj"
5694 # This depmode causes a compiler race in universal mode.
5695 test "$am__universal" = false || continue
5698 # After this tag, mechanisms are not by side-effect, so they'll
5699 # only be used when explicitly requested.
5700 if test "x$enable_dependency_tracking" = xyes; then
5706 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
5707 # This compiler won't grok '-c -o', but also, the minuso test has
5708 # not run yet. These depmodes are late enough in the game, and
5709 # so weak that their functioning should not be impacted.
5710 am__obj=conftest.${OBJEXT-o}
5715 if depmode=$depmode \
5716 source=sub/conftest.c object=$am__obj \
5717 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5718 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
5719 >/dev/null 2>conftest.err &&
5720 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5721 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5722 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
5723 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5724 # icc doesn't choke on unknown options, it will just issue warnings
5725 # or remarks (even with -Werror). So we grep stderr for any message
5726 # that says an option was ignored or not supported.
5727 # When given -MP, icc 7.0 and 7.1 complain thusly:
5728 # icc: Command line warning: ignoring option '-M'; no argument required
5729 # The diagnosis changed in icc 8.0:
5730 # icc: Command line remark: option '-MP' not supported
5731 if (grep 'ignoring option' conftest.err ||
5732 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5733 am_cv_CXX_dependencies_compiler_type=$depmode
5742 am_cv_CXX_dependencies_compiler_type=none
5746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
5747 $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
5748 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
5751 test "x$enable_dependency_tracking" != xno \
5752 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
5753 am__fastdepCXX_TRUE=
5754 am__fastdepCXX_FALSE='#'
5756 am__fastdepCXX_TRUE='#'
5757 am__fastdepCXX_FALSE=
5763 if test "x$remember_set_CFLAGS" = "x"
5765 if test "$CFLAGS" = "-g -O2"
5768 elif test "$CFLAGS" = "-g"
5774 if test "x$remember_set_CXXFLAGS" = "x"
5776 if test "$CXXFLAGS" = "-g -O2"
5779 elif test "$CXXFLAGS" = "-g"
5785 # AC_PROG_CXX will return "g++" even if no c++ compiler is installed.
5786 # Check for that case, and just disable c++ code if g++ doesn't run.
5788 ac_cpp='$CXXCPP $CPPFLAGS'
5789 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5790 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5791 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5794 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5795 /* end confdefs.h. */
5805 if ac_fn_cxx_try_compile "$LINENO"; then :
5808 CXX=""; CXXCP=""; CXXFLAGS=""
5810 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5812 ac_cpp='$CPP $CPPFLAGS'
5813 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5814 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5815 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5818 # Check for a 64-bit integer type
5820 ac_cpp='$CPP $CPPFLAGS'
5821 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5822 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5823 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5824 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
5825 $as_echo_n "checking how to run the C preprocessor... " >&6; }
5826 # On Suns, sometimes $CPP names a directory.
5827 if test -n "$CPP" && test -d "$CPP"; then
5830 if test -z "$CPP"; then
5831 if ${ac_cv_prog_CPP+:} false; then :
5832 $as_echo_n "(cached) " >&6
5834 # Double quotes because CPP needs to be expanded
5835 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5838 for ac_c_preproc_warn_flag in '' yes
5840 # Use a header file that comes with gcc, so configuring glibc
5841 # with a fresh cross-compiler works.
5842 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5843 # <limits.h> exists even on freestanding compilers.
5844 # On the NeXT, cc -E runs the code through the compiler's parser,
5845 # not just through cpp. "Syntax error" is here to catch this case.
5846 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5847 /* end confdefs.h. */
5849 # include <limits.h>
5851 # include <assert.h>
5855 if ac_fn_c_try_cpp "$LINENO"; then :
5858 # Broken: fails on valid input.
5861 rm -f conftest.err conftest.i conftest.$ac_ext
5863 # OK, works on sane cases. Now check whether nonexistent headers
5864 # can be detected and how.
5865 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5866 /* end confdefs.h. */
5867 #include <ac_nonexistent.h>
5869 if ac_fn_c_try_cpp "$LINENO"; then :
5870 # Broken: success on invalid input.
5873 # Passes both tests.
5877 rm -f conftest.err conftest.i conftest.$ac_ext
5880 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5881 rm -f conftest.i conftest.err conftest.$ac_ext
5882 if $ac_preproc_ok; then :
5894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5895 $as_echo "$CPP" >&6; }
5897 for ac_c_preproc_warn_flag in '' yes
5899 # Use a header file that comes with gcc, so configuring glibc
5900 # with a fresh cross-compiler works.
5901 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5902 # <limits.h> exists even on freestanding compilers.
5903 # On the NeXT, cc -E runs the code through the compiler's parser,
5904 # not just through cpp. "Syntax error" is here to catch this case.
5905 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5906 /* end confdefs.h. */
5908 # include <limits.h>
5910 # include <assert.h>
5914 if ac_fn_c_try_cpp "$LINENO"; then :
5917 # Broken: fails on valid input.
5920 rm -f conftest.err conftest.i conftest.$ac_ext
5922 # OK, works on sane cases. Now check whether nonexistent headers
5923 # can be detected and how.
5924 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5925 /* end confdefs.h. */
5926 #include <ac_nonexistent.h>
5928 if ac_fn_c_try_cpp "$LINENO"; then :
5929 # Broken: success on invalid input.
5932 # Passes both tests.
5936 rm -f conftest.err conftest.i conftest.$ac_ext
5939 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5940 rm -f conftest.i conftest.err conftest.$ac_ext
5941 if $ac_preproc_ok; then :
5944 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5945 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5946 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
5947 See \`config.log' for more details" "$LINENO" 5; }
5951 ac_cpp='$CPP $CPPFLAGS'
5952 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5953 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5954 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5957 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5958 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5959 if ${ac_cv_path_GREP+:} false; then :
5960 $as_echo_n "(cached) " >&6
5962 if test -z "$GREP"; then
5963 ac_path_GREP_found=false
5964 # Loop through the user's path and test for each of PROGNAME-LIST
5965 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5966 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5969 test -z "$as_dir" && as_dir=.
5970 for ac_prog in grep ggrep; do
5971 for ac_exec_ext in '' $ac_executable_extensions; do
5972 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5973 as_fn_executable_p "$ac_path_GREP" || continue
5974 # Check for GNU ac_path_GREP and select it if it is found.
5975 # Check for GNU $ac_path_GREP
5976 case `"$ac_path_GREP" --version 2>&1` in
5978 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5981 $as_echo_n 0123456789 >"conftest.in"
5984 cat "conftest.in" "conftest.in" >"conftest.tmp"
5985 mv "conftest.tmp" "conftest.in"
5986 cp "conftest.in" "conftest.nl"
5987 $as_echo 'GREP' >> "conftest.nl"
5988 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5989 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5990 as_fn_arith $ac_count + 1 && ac_count=$as_val
5991 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5992 # Best one so far, save it but keep looking for a better one
5993 ac_cv_path_GREP="$ac_path_GREP"
5994 ac_path_GREP_max=$ac_count
5996 # 10*(2^10) chars as input seems more than enough
5997 test $ac_count -gt 10 && break
5999 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6002 $ac_path_GREP_found && break 3
6007 if test -z "$ac_cv_path_GREP"; then
6008 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6011 ac_cv_path_GREP=$GREP
6015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
6016 $as_echo "$ac_cv_path_GREP" >&6; }
6017 GREP="$ac_cv_path_GREP"
6020 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
6021 $as_echo_n "checking for egrep... " >&6; }
6022 if ${ac_cv_path_EGREP+:} false; then :
6023 $as_echo_n "(cached) " >&6
6025 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
6026 then ac_cv_path_EGREP="$GREP -E"
6028 if test -z "$EGREP"; then
6029 ac_path_EGREP_found=false
6030 # Loop through the user's path and test for each of PROGNAME-LIST
6031 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6032 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6035 test -z "$as_dir" && as_dir=.
6036 for ac_prog in egrep; do
6037 for ac_exec_ext in '' $ac_executable_extensions; do
6038 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
6039 as_fn_executable_p "$ac_path_EGREP" || continue
6040 # Check for GNU ac_path_EGREP and select it if it is found.
6041 # Check for GNU $ac_path_EGREP
6042 case `"$ac_path_EGREP" --version 2>&1` in
6044 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
6047 $as_echo_n 0123456789 >"conftest.in"
6050 cat "conftest.in" "conftest.in" >"conftest.tmp"
6051 mv "conftest.tmp" "conftest.in"
6052 cp "conftest.in" "conftest.nl"
6053 $as_echo 'EGREP' >> "conftest.nl"
6054 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
6055 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6056 as_fn_arith $ac_count + 1 && ac_count=$as_val
6057 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
6058 # Best one so far, save it but keep looking for a better one
6059 ac_cv_path_EGREP="$ac_path_EGREP"
6060 ac_path_EGREP_max=$ac_count
6062 # 10*(2^10) chars as input seems more than enough
6063 test $ac_count -gt 10 && break
6065 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6068 $ac_path_EGREP_found && break 3
6073 if test -z "$ac_cv_path_EGREP"; then
6074 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6077 ac_cv_path_EGREP=$EGREP
6082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
6083 $as_echo "$ac_cv_path_EGREP" >&6; }
6084 EGREP="$ac_cv_path_EGREP"
6087 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
6088 $as_echo_n "checking for ANSI C header files... " >&6; }
6089 if ${ac_cv_header_stdc+:} false; then :
6090 $as_echo_n "(cached) " >&6
6092 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6093 /* end confdefs.h. */
6107 if ac_fn_c_try_compile "$LINENO"; then :
6108 ac_cv_header_stdc=yes
6110 ac_cv_header_stdc=no
6112 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6114 if test $ac_cv_header_stdc = yes; then
6115 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6116 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6117 /* end confdefs.h. */
6121 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6122 $EGREP "memchr" >/dev/null 2>&1; then :
6125 ac_cv_header_stdc=no
6131 if test $ac_cv_header_stdc = yes; then
6132 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6133 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6134 /* end confdefs.h. */
6138 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6139 $EGREP "free" >/dev/null 2>&1; then :
6142 ac_cv_header_stdc=no
6148 if test $ac_cv_header_stdc = yes; then
6149 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6150 if test "$cross_compiling" = yes; then :
6153 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6154 /* end confdefs.h. */
6157 #if ((' ' & 0x0FF) == 0x020)
6158 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6159 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6161 # define ISLOWER(c) \
6162 (('a' <= (c) && (c) <= 'i') \
6163 || ('j' <= (c) && (c) <= 'r') \
6164 || ('s' <= (c) && (c) <= 'z'))
6165 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6168 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6173 for (i = 0; i < 256; i++)
6174 if (XOR (islower (i), ISLOWER (i))
6175 || toupper (i) != TOUPPER (i))
6180 if ac_fn_c_try_run "$LINENO"; then :
6183 ac_cv_header_stdc=no
6185 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6186 conftest.$ac_objext conftest.beam conftest.$ac_ext
6191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
6192 $as_echo "$ac_cv_header_stdc" >&6; }
6193 if test $ac_cv_header_stdc = yes; then
6195 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
6199 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
6200 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6201 inttypes.h stdint.h unistd.h
6203 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6204 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
6206 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
6207 cat >>confdefs.h <<_ACEOF
6208 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6216 ac_fn_c_find_intX_t "$LINENO" "64" "ac_cv_c_int64_t"
6217 case $ac_cv_c_int64_t in #(
6221 cat >>confdefs.h <<_ACEOF
6222 #define int64_t $ac_cv_c_int64_t
6229 # Make sure we can run config.sub.
6230 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
6231 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
6233 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
6234 $as_echo_n "checking build system type... " >&6; }
6235 if ${ac_cv_build+:} false; then :
6236 $as_echo_n "(cached) " >&6
6238 ac_build_alias=$build_alias
6239 test "x$ac_build_alias" = x &&
6240 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
6241 test "x$ac_build_alias" = x &&
6242 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
6243 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
6244 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
6247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
6248 $as_echo "$ac_cv_build" >&6; }
6249 case $ac_cv_build in
6251 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
6254 ac_save_IFS=$IFS; IFS='-'
6260 # Remember, the first character of IFS is used to create $*,
6261 # except with old shells:
6264 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
6267 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
6268 $as_echo_n "checking host system type... " >&6; }
6269 if ${ac_cv_host+:} false; then :
6270 $as_echo_n "(cached) " >&6
6272 if test "x$host_alias" = x; then
6273 ac_cv_host=$ac_cv_build
6275 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
6276 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
6280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
6281 $as_echo "$ac_cv_host" >&6; }
6284 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
6287 ac_save_IFS=$IFS; IFS='-'
6293 # Remember, the first character of IFS is used to create $*,
6294 # except with old shells:
6297 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
6300 enable_win32_dll=yes
6303 *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-cegcc*)
6304 if test -n "$ac_tool_prefix"; then
6305 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
6306 set dummy ${ac_tool_prefix}as; ac_word=$2
6307 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6308 $as_echo_n "checking for $ac_word... " >&6; }
6309 if ${ac_cv_prog_AS+:} false; then :
6310 $as_echo_n "(cached) " >&6
6312 if test -n "$AS"; then
6313 ac_cv_prog_AS="$AS" # Let the user override the test.
6315 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6319 test -z "$as_dir" && as_dir=.
6320 for ac_exec_ext in '' $ac_executable_extensions; do
6321 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6322 ac_cv_prog_AS="${ac_tool_prefix}as"
6323 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6333 if test -n "$AS"; then
6334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
6335 $as_echo "$AS" >&6; }
6337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6338 $as_echo "no" >&6; }
6343 if test -z "$ac_cv_prog_AS"; then
6345 # Extract the first word of "as", so it can be a program name with args.
6346 set dummy as; ac_word=$2
6347 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6348 $as_echo_n "checking for $ac_word... " >&6; }
6349 if ${ac_cv_prog_ac_ct_AS+:} false; then :
6350 $as_echo_n "(cached) " >&6
6352 if test -n "$ac_ct_AS"; then
6353 ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
6355 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6359 test -z "$as_dir" && as_dir=.
6360 for ac_exec_ext in '' $ac_executable_extensions; do
6361 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6362 ac_cv_prog_ac_ct_AS="as"
6363 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6372 ac_ct_AS=$ac_cv_prog_ac_ct_AS
6373 if test -n "$ac_ct_AS"; then
6374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5
6375 $as_echo "$ac_ct_AS" >&6; }
6377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6378 $as_echo "no" >&6; }
6381 if test "x$ac_ct_AS" = x; then
6384 case $cross_compiling:$ac_tool_warned in
6386 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6387 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6388 ac_tool_warned=yes ;;
6396 if test -n "$ac_tool_prefix"; then
6397 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
6398 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
6399 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6400 $as_echo_n "checking for $ac_word... " >&6; }
6401 if ${ac_cv_prog_DLLTOOL+:} false; then :
6402 $as_echo_n "(cached) " >&6
6404 if test -n "$DLLTOOL"; then
6405 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
6407 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6411 test -z "$as_dir" && as_dir=.
6412 for ac_exec_ext in '' $ac_executable_extensions; do
6413 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6414 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
6415 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6424 DLLTOOL=$ac_cv_prog_DLLTOOL
6425 if test -n "$DLLTOOL"; then
6426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
6427 $as_echo "$DLLTOOL" >&6; }
6429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6430 $as_echo "no" >&6; }
6435 if test -z "$ac_cv_prog_DLLTOOL"; then
6436 ac_ct_DLLTOOL=$DLLTOOL
6437 # Extract the first word of "dlltool", so it can be a program name with args.
6438 set dummy dlltool; ac_word=$2
6439 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6440 $as_echo_n "checking for $ac_word... " >&6; }
6441 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
6442 $as_echo_n "(cached) " >&6
6444 if test -n "$ac_ct_DLLTOOL"; then
6445 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
6447 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6451 test -z "$as_dir" && as_dir=.
6452 for ac_exec_ext in '' $ac_executable_extensions; do
6453 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6454 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
6455 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6464 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
6465 if test -n "$ac_ct_DLLTOOL"; then
6466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
6467 $as_echo "$ac_ct_DLLTOOL" >&6; }
6469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6470 $as_echo "no" >&6; }
6473 if test "x$ac_ct_DLLTOOL" = x; then
6476 case $cross_compiling:$ac_tool_warned in
6478 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6479 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6480 ac_tool_warned=yes ;;
6482 DLLTOOL=$ac_ct_DLLTOOL
6485 DLLTOOL="$ac_cv_prog_DLLTOOL"
6488 if test -n "$ac_tool_prefix"; then
6489 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
6490 set dummy ${ac_tool_prefix}objdump; ac_word=$2
6491 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6492 $as_echo_n "checking for $ac_word... " >&6; }
6493 if ${ac_cv_prog_OBJDUMP+:} false; then :
6494 $as_echo_n "(cached) " >&6
6496 if test -n "$OBJDUMP"; then
6497 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
6499 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6503 test -z "$as_dir" && as_dir=.
6504 for ac_exec_ext in '' $ac_executable_extensions; do
6505 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6506 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
6507 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6516 OBJDUMP=$ac_cv_prog_OBJDUMP
6517 if test -n "$OBJDUMP"; then
6518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
6519 $as_echo "$OBJDUMP" >&6; }
6521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6522 $as_echo "no" >&6; }
6527 if test -z "$ac_cv_prog_OBJDUMP"; then
6528 ac_ct_OBJDUMP=$OBJDUMP
6529 # Extract the first word of "objdump", so it can be a program name with args.
6530 set dummy objdump; ac_word=$2
6531 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6532 $as_echo_n "checking for $ac_word... " >&6; }
6533 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
6534 $as_echo_n "(cached) " >&6
6536 if test -n "$ac_ct_OBJDUMP"; then
6537 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
6539 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6543 test -z "$as_dir" && as_dir=.
6544 for ac_exec_ext in '' $ac_executable_extensions; do
6545 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6546 ac_cv_prog_ac_ct_OBJDUMP="objdump"
6547 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6556 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6557 if test -n "$ac_ct_OBJDUMP"; then
6558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
6559 $as_echo "$ac_ct_OBJDUMP" >&6; }
6561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6562 $as_echo "no" >&6; }
6565 if test "x$ac_ct_OBJDUMP" = x; then
6568 case $cross_compiling:$ac_tool_warned in
6570 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6571 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6572 ac_tool_warned=yes ;;
6574 OBJDUMP=$ac_ct_OBJDUMP
6577 OBJDUMP="$ac_cv_prog_OBJDUMP"
6583 test -z "$AS" && AS=as
6589 test -z "$DLLTOOL" && DLLTOOL=dlltool
6595 test -z "$OBJDUMP" && OBJDUMP=objdump
6605 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
6606 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
6611 macro_version='2.4.6'
6612 macro_revision='2.4.6'
6626 ltmain=$ac_aux_dir/ltmain.sh
6628 # Backslashify metacharacters that are still active within
6629 # double-quoted strings.
6630 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
6632 # Same as above, but do not quote variable references.
6633 double_quote_subst='s/\(["`\\]\)/\\\1/g'
6635 # Sed substitution to delay expansion of an escaped shell variable in a
6636 # double_quote_subst'ed string.
6637 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
6639 # Sed substitution to delay expansion of an escaped single quote.
6640 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
6642 # Sed substitution to avoid accidental globbing in evaled expressions
6643 no_glob_subst='s/\*/\\\*/g'
6645 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
6646 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
6647 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
6649 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
6650 $as_echo_n "checking how to print strings... " >&6; }
6651 # Test print first, because it will be a builtin if present.
6652 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
6653 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
6655 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
6658 # Use this function as a fallback that always works.
6659 func_fallback_echo ()
6661 eval 'cat <<_LTECHO_EOF
6665 ECHO='func_fallback_echo'
6668 # func_echo_all arg...
6669 # Invoke $ECHO with all args, space-separated.
6676 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
6677 $as_echo "printf" >&6; } ;;
6678 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
6679 $as_echo "print -r" >&6; } ;;
6680 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
6681 $as_echo "cat" >&6; } ;;
6697 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
6698 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
6699 if ${ac_cv_path_SED+:} false; then :
6700 $as_echo_n "(cached) " >&6
6702 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
6703 for ac_i in 1 2 3 4 5 6 7; do
6704 ac_script="$ac_script$as_nl$ac_script"
6706 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
6707 { ac_script=; unset ac_script;}
6708 if test -z "$SED"; then
6709 ac_path_SED_found=false
6710 # Loop through the user's path and test for each of PROGNAME-LIST
6711 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6715 test -z "$as_dir" && as_dir=.
6716 for ac_prog in sed gsed; do
6717 for ac_exec_ext in '' $ac_executable_extensions; do
6718 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
6719 as_fn_executable_p "$ac_path_SED" || continue
6720 # Check for GNU ac_path_SED and select it if it is found.
6721 # Check for GNU $ac_path_SED
6722 case `"$ac_path_SED" --version 2>&1` in
6724 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
6727 $as_echo_n 0123456789 >"conftest.in"
6730 cat "conftest.in" "conftest.in" >"conftest.tmp"
6731 mv "conftest.tmp" "conftest.in"
6732 cp "conftest.in" "conftest.nl"
6733 $as_echo '' >> "conftest.nl"
6734 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
6735 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6736 as_fn_arith $ac_count + 1 && ac_count=$as_val
6737 if test $ac_count -gt ${ac_path_SED_max-0}; then
6738 # Best one so far, save it but keep looking for a better one
6739 ac_cv_path_SED="$ac_path_SED"
6740 ac_path_SED_max=$ac_count
6742 # 10*(2^10) chars as input seems more than enough
6743 test $ac_count -gt 10 && break
6745 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6748 $ac_path_SED_found && break 3
6753 if test -z "$ac_cv_path_SED"; then
6754 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
6761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
6762 $as_echo "$ac_cv_path_SED" >&6; }
6763 SED="$ac_cv_path_SED"
6766 test -z "$SED" && SED=sed
6767 Xsed="$SED -e 1s/^X//"
6779 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
6780 $as_echo_n "checking for fgrep... " >&6; }
6781 if ${ac_cv_path_FGREP+:} false; then :
6782 $as_echo_n "(cached) " >&6
6784 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
6785 then ac_cv_path_FGREP="$GREP -F"
6787 if test -z "$FGREP"; then
6788 ac_path_FGREP_found=false
6789 # Loop through the user's path and test for each of PROGNAME-LIST
6790 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6791 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6794 test -z "$as_dir" && as_dir=.
6795 for ac_prog in fgrep; do
6796 for ac_exec_ext in '' $ac_executable_extensions; do
6797 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
6798 as_fn_executable_p "$ac_path_FGREP" || continue
6799 # Check for GNU ac_path_FGREP and select it if it is found.
6800 # Check for GNU $ac_path_FGREP
6801 case `"$ac_path_FGREP" --version 2>&1` in
6803 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
6806 $as_echo_n 0123456789 >"conftest.in"
6809 cat "conftest.in" "conftest.in" >"conftest.tmp"
6810 mv "conftest.tmp" "conftest.in"
6811 cp "conftest.in" "conftest.nl"
6812 $as_echo 'FGREP' >> "conftest.nl"
6813 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
6814 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6815 as_fn_arith $ac_count + 1 && ac_count=$as_val
6816 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
6817 # Best one so far, save it but keep looking for a better one
6818 ac_cv_path_FGREP="$ac_path_FGREP"
6819 ac_path_FGREP_max=$ac_count
6821 # 10*(2^10) chars as input seems more than enough
6822 test $ac_count -gt 10 && break
6824 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6827 $ac_path_FGREP_found && break 3
6832 if test -z "$ac_cv_path_FGREP"; then
6833 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6836 ac_cv_path_FGREP=$FGREP
6841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
6842 $as_echo "$ac_cv_path_FGREP" >&6; }
6843 FGREP="$ac_cv_path_FGREP"
6846 test -z "$GREP" && GREP=grep
6866 # Check whether --with-gnu-ld was given.
6867 if test "${with_gnu_ld+set}" = set; then :
6868 withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
6874 if test yes = "$GCC"; then
6875 # Check if gcc -print-prog-name=ld gives a path.
6876 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
6877 $as_echo_n "checking for ld used by $CC... " >&6; }
6880 # gcc leaves a trailing carriage return, which upsets mingw
6881 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
6883 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
6886 # Accept absolute paths.
6888 re_direlt='/[^/][^/]*/\.\./'
6889 # Canonicalize the pathname of ld
6890 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
6891 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
6892 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
6894 test -z "$LD" && LD=$ac_prog
6897 # If it fails, then pretend we aren't using GCC.
6901 # If it is relative, then search for the first ld in PATH.
6905 elif test yes = "$with_gnu_ld"; then
6906 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
6907 $as_echo_n "checking for GNU ld... " >&6; }
6909 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
6910 $as_echo_n "checking for non-GNU ld... " >&6; }
6912 if ${lt_cv_path_LD+:} false; then :
6913 $as_echo_n "(cached) " >&6
6915 if test -z "$LD"; then
6916 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
6917 for ac_dir in $PATH; do
6919 test -z "$ac_dir" && ac_dir=.
6920 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
6921 lt_cv_path_LD=$ac_dir/$ac_prog
6922 # Check to see if the program is GNU ld. I'd rather use --version,
6923 # but apparently some variants of GNU ld only accept -v.
6924 # Break only if it was the GNU/non-GNU ld that we prefer.
6925 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
6926 *GNU* | *'with BFD'*)
6927 test no != "$with_gnu_ld" && break
6930 test yes != "$with_gnu_ld" && break
6937 lt_cv_path_LD=$LD # Let the user override the test with a path.
6942 if test -n "$LD"; then
6943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
6944 $as_echo "$LD" >&6; }
6946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6947 $as_echo "no" >&6; }
6949 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
6950 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
6951 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
6952 if ${lt_cv_prog_gnu_ld+:} false; then :
6953 $as_echo_n "(cached) " >&6
6955 # I'd rather use --version here, but apparently some GNU lds only accept -v.
6956 case `$LD -v 2>&1 </dev/null` in
6957 *GNU* | *'with BFD'*)
6958 lt_cv_prog_gnu_ld=yes
6961 lt_cv_prog_gnu_ld=no
6965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
6966 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
6967 with_gnu_ld=$lt_cv_prog_gnu_ld
6977 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
6978 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
6979 if ${lt_cv_path_NM+:} false; then :
6980 $as_echo_n "(cached) " >&6
6982 if test -n "$NM"; then
6983 # Let the user override the test.
6986 lt_nm_to_check=${ac_tool_prefix}nm
6987 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
6988 lt_nm_to_check="$lt_nm_to_check nm"
6990 for lt_tmp_nm in $lt_nm_to_check; do
6991 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
6992 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
6994 test -z "$ac_dir" && ac_dir=.
6995 tmp_nm=$ac_dir/$lt_tmp_nm
6996 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
6997 # Check to see if the nm accepts a BSD-compat flag.
6998 # Adding the 'sed 1q' prevents false positives on HP-UX, which says:
6999 # nm: unknown option "B" ignored
7000 # Tru64's nm complains that /dev/null is an invalid object file
7001 # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
7003 mingw*) lt_bad_file=conftest.nm/nofile ;;
7004 *) lt_bad_file=/dev/null ;;
7006 case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in
7007 *$lt_bad_file* | *'Invalid file or object type'*)
7008 lt_cv_path_NM="$tmp_nm -B"
7012 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
7014 lt_cv_path_NM="$tmp_nm -p"
7018 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
7019 continue # so that we can try to find one that supports BSD flags
7028 : ${lt_cv_path_NM=no}
7031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
7032 $as_echo "$lt_cv_path_NM" >&6; }
7033 if test no != "$lt_cv_path_NM"; then
7036 # Didn't find any BSD compatible name lister, look for dumpbin.
7037 if test -n "$DUMPBIN"; then :
7038 # Let the user override the test.
7040 if test -n "$ac_tool_prefix"; then
7041 for ac_prog in dumpbin "link -dump"
7043 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
7044 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
7045 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7046 $as_echo_n "checking for $ac_word... " >&6; }
7047 if ${ac_cv_prog_DUMPBIN+:} false; then :
7048 $as_echo_n "(cached) " >&6
7050 if test -n "$DUMPBIN"; then
7051 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
7053 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7057 test -z "$as_dir" && as_dir=.
7058 for ac_exec_ext in '' $ac_executable_extensions; do
7059 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7060 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
7061 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7070 DUMPBIN=$ac_cv_prog_DUMPBIN
7071 if test -n "$DUMPBIN"; then
7072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
7073 $as_echo "$DUMPBIN" >&6; }
7075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7076 $as_echo "no" >&6; }
7080 test -n "$DUMPBIN" && break
7083 if test -z "$DUMPBIN"; then
7084 ac_ct_DUMPBIN=$DUMPBIN
7085 for ac_prog in dumpbin "link -dump"
7087 # Extract the first word of "$ac_prog", so it can be a program name with args.
7088 set dummy $ac_prog; ac_word=$2
7089 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7090 $as_echo_n "checking for $ac_word... " >&6; }
7091 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
7092 $as_echo_n "(cached) " >&6
7094 if test -n "$ac_ct_DUMPBIN"; then
7095 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
7097 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7101 test -z "$as_dir" && as_dir=.
7102 for ac_exec_ext in '' $ac_executable_extensions; do
7103 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7104 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
7105 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7114 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
7115 if test -n "$ac_ct_DUMPBIN"; then
7116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
7117 $as_echo "$ac_ct_DUMPBIN" >&6; }
7119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7120 $as_echo "no" >&6; }
7124 test -n "$ac_ct_DUMPBIN" && break
7127 if test "x$ac_ct_DUMPBIN" = x; then
7130 case $cross_compiling:$ac_tool_warned in
7132 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7133 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7134 ac_tool_warned=yes ;;
7136 DUMPBIN=$ac_ct_DUMPBIN
7140 case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in
7142 DUMPBIN="$DUMPBIN -symbols -headers"
7150 if test : != "$DUMPBIN"; then
7154 test -z "$NM" && NM=nm
7161 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
7162 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
7163 if ${lt_cv_nm_interface+:} false; then :
7164 $as_echo_n "(cached) " >&6
7166 lt_cv_nm_interface="BSD nm"
7167 echo "int some_variable = 0;" > conftest.$ac_ext
7168 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
7169 (eval "$ac_compile" 2>conftest.err)
7170 cat conftest.err >&5
7171 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
7172 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
7173 cat conftest.err >&5
7174 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
7175 cat conftest.out >&5
7176 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
7177 lt_cv_nm_interface="MS dumpbin"
7181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
7182 $as_echo "$lt_cv_nm_interface" >&6; }
7184 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
7185 $as_echo_n "checking whether ln -s works... " >&6; }
7187 if test "$LN_S" = "ln -s"; then
7188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7189 $as_echo "yes" >&6; }
7191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
7192 $as_echo "no, using $LN_S" >&6; }
7195 # find the maximum length of command line arguments
7196 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
7197 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
7198 if ${lt_cv_sys_max_cmd_len+:} false; then :
7199 $as_echo_n "(cached) " >&6
7206 # On DJGPP, this test can blow up pretty badly due to problems in libc
7207 # (any single argument exceeding 2000 bytes causes a buffer overrun
7208 # during glob expansion). Even if it were fixed, the result of this
7209 # check would be larger than it should be.
7210 lt_cv_sys_max_cmd_len=12288; # 12K is about right
7214 # Under GNU Hurd, this test is not required because there is
7215 # no limit to the length of command line arguments.
7216 # Libtool will interpret -1 as no limit whatsoever
7217 lt_cv_sys_max_cmd_len=-1;
7220 cygwin* | mingw* | cegcc*)
7221 # On Win9x/ME, this test blows up -- it succeeds, but takes
7222 # about 5 minutes as the teststring grows exponentially.
7223 # Worse, since 9x/ME are not pre-emptively multitasking,
7224 # you end up with a "frozen" computer, even though with patience
7225 # the test eventually succeeds (with a max line length of 256k).
7226 # Instead, let's just punt: use the minimum linelength reported by
7227 # all of the supported platforms: 8192 (on NT/2K/XP).
7228 lt_cv_sys_max_cmd_len=8192;
7232 # On MiNT this can take a long time and run out of memory.
7233 lt_cv_sys_max_cmd_len=8192;
7237 # On AmigaOS with pdksh, this test takes hours, literally.
7238 # So we just punt and use a minimum line length of 8192.
7239 lt_cv_sys_max_cmd_len=8192;
7242 bitrig* | darwin* | dragonfly* | freebsd* | netbsd* | openbsd*)
7243 # This has been around since 386BSD, at least. Likely further.
7244 if test -x /sbin/sysctl; then
7245 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
7246 elif test -x /usr/sbin/sysctl; then
7247 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
7249 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
7251 # And add a safety zone
7252 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
7253 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
7257 # We know the value 262144 and hardcode it with a safety zone (like BSD)
7258 lt_cv_sys_max_cmd_len=196608
7262 # The test takes a long time on OS/2.
7263 lt_cv_sys_max_cmd_len=8192
7267 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
7268 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
7269 # nice to cause kernel panics so lets avoid the loop below.
7270 # First set a reasonable default.
7271 lt_cv_sys_max_cmd_len=16384
7273 if test -x /sbin/sysconfig; then
7274 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
7275 *1*) lt_cv_sys_max_cmd_len=-1 ;;
7280 lt_cv_sys_max_cmd_len=102400
7282 sysv5* | sco5v6* | sysv4.2uw2*)
7283 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
7284 if test -n "$kargmax"; then
7285 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
7287 lt_cv_sys_max_cmd_len=32768
7291 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
7292 if test -n "$lt_cv_sys_max_cmd_len" && \
7293 test undefined != "$lt_cv_sys_max_cmd_len"; then
7294 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
7295 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
7297 # Make teststring a little bigger before we do anything with it.
7298 # a 1K string should be a reasonable start.
7299 for i in 1 2 3 4 5 6 7 8; do
7300 teststring=$teststring$teststring
7302 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
7303 # If test is not a shell built-in, we'll probably end up computing a
7304 # maximum length that is only half of the actual maximum length, but
7306 while { test X`env echo "$teststring$teststring" 2>/dev/null` \
7307 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
7308 test 17 != "$i" # 1/2 MB should be enough
7311 teststring=$teststring$teststring
7313 # Only check the string length outside the loop.
7314 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
7316 # Add a significant safety factor because C++ compilers can tack on
7317 # massive amounts of additional arguments before passing them to the
7318 # linker. It appears as though 1/2 is a usable value.
7319 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
7326 if test -n "$lt_cv_sys_max_cmd_len"; then
7327 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
7328 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
7330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
7331 $as_echo "none" >&6; }
7333 max_cmd_len=$lt_cv_sys_max_cmd_len
7344 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
7354 # test EBCDIC or ASCII
7355 case `echo X|tr X '\101'` in
7356 A) # ASCII based system
7357 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
7358 lt_SP2NL='tr \040 \012'
7359 lt_NL2SP='tr \015\012 \040\040'
7361 *) # EBCDIC based system
7362 lt_SP2NL='tr \100 \n'
7363 lt_NL2SP='tr \r\n \100\100'
7375 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
7376 $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
7377 if ${lt_cv_to_host_file_cmd+:} false; then :
7378 $as_echo_n "(cached) " >&6
7383 *-*-mingw* ) # actually msys
7384 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
7387 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
7389 * ) # otherwise, assume *nix
7390 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
7396 *-*-mingw* ) # actually msys
7397 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
7400 lt_cv_to_host_file_cmd=func_convert_file_noop
7402 * ) # otherwise, assume *nix
7403 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
7407 * ) # unhandled hosts (and "normal" native builds)
7408 lt_cv_to_host_file_cmd=func_convert_file_noop
7414 to_host_file_cmd=$lt_cv_to_host_file_cmd
7415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
7416 $as_echo "$lt_cv_to_host_file_cmd" >&6; }
7422 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
7423 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
7424 if ${lt_cv_to_tool_file_cmd+:} false; then :
7425 $as_echo_n "(cached) " >&6
7427 #assume ordinary cross tools, or native build.
7428 lt_cv_to_tool_file_cmd=func_convert_file_noop
7432 *-*-mingw* ) # actually msys
7433 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
7441 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
7442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
7443 $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
7449 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
7450 $as_echo_n "checking for $LD option to reload object files... " >&6; }
7451 if ${lt_cv_ld_reload_flag+:} false; then :
7452 $as_echo_n "(cached) " >&6
7454 lt_cv_ld_reload_flag='-r'
7456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
7457 $as_echo "$lt_cv_ld_reload_flag" >&6; }
7458 reload_flag=$lt_cv_ld_reload_flag
7459 case $reload_flag in
7461 *) reload_flag=" $reload_flag" ;;
7463 reload_cmds='$LD$reload_flag -o $output$reload_objs'
7465 cygwin* | mingw* | pw32* | cegcc*)
7466 if test yes != "$GCC"; then
7471 if test yes = "$GCC"; then
7472 reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
7474 reload_cmds='$LD$reload_flag -o $output$reload_objs'
7487 if test -n "$ac_tool_prefix"; then
7488 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
7489 set dummy ${ac_tool_prefix}objdump; ac_word=$2
7490 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7491 $as_echo_n "checking for $ac_word... " >&6; }
7492 if ${ac_cv_prog_OBJDUMP+:} false; then :
7493 $as_echo_n "(cached) " >&6
7495 if test -n "$OBJDUMP"; then
7496 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
7498 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7502 test -z "$as_dir" && as_dir=.
7503 for ac_exec_ext in '' $ac_executable_extensions; do
7504 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7505 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
7506 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7515 OBJDUMP=$ac_cv_prog_OBJDUMP
7516 if test -n "$OBJDUMP"; then
7517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
7518 $as_echo "$OBJDUMP" >&6; }
7520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7521 $as_echo "no" >&6; }
7526 if test -z "$ac_cv_prog_OBJDUMP"; then
7527 ac_ct_OBJDUMP=$OBJDUMP
7528 # Extract the first word of "objdump", so it can be a program name with args.
7529 set dummy objdump; ac_word=$2
7530 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7531 $as_echo_n "checking for $ac_word... " >&6; }
7532 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
7533 $as_echo_n "(cached) " >&6
7535 if test -n "$ac_ct_OBJDUMP"; then
7536 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
7538 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7542 test -z "$as_dir" && as_dir=.
7543 for ac_exec_ext in '' $ac_executable_extensions; do
7544 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7545 ac_cv_prog_ac_ct_OBJDUMP="objdump"
7546 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7555 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
7556 if test -n "$ac_ct_OBJDUMP"; then
7557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
7558 $as_echo "$ac_ct_OBJDUMP" >&6; }
7560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7561 $as_echo "no" >&6; }
7564 if test "x$ac_ct_OBJDUMP" = x; then
7567 case $cross_compiling:$ac_tool_warned in
7569 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7570 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7571 ac_tool_warned=yes ;;
7573 OBJDUMP=$ac_ct_OBJDUMP
7576 OBJDUMP="$ac_cv_prog_OBJDUMP"
7579 test -z "$OBJDUMP" && OBJDUMP=objdump
7586 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
7587 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
7588 if ${lt_cv_deplibs_check_method+:} false; then :
7589 $as_echo_n "(cached) " >&6
7591 lt_cv_file_magic_cmd='$MAGIC_CMD'
7592 lt_cv_file_magic_test_file=
7593 lt_cv_deplibs_check_method='unknown'
7594 # Need to set the preceding variable on all platforms that support
7595 # interlibrary dependencies.
7596 # 'none' -- dependencies not supported.
7597 # 'unknown' -- same as none, but documents that we really don't know.
7598 # 'pass_all' -- all dependencies passed with no checks.
7599 # 'test_compile' -- check by making test program.
7600 # 'file_magic [[regex]]' -- check by looking for files in library path
7601 # that responds to the $file_magic_cmd with a given extended regex.
7602 # If you have 'file' or equivalent on your system and you're not sure
7603 # whether 'pass_all' will *always* work, you probably want this one.
7607 lt_cv_deplibs_check_method=pass_all
7611 lt_cv_deplibs_check_method=pass_all
7615 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
7616 lt_cv_file_magic_cmd='/usr/bin/file -L'
7617 lt_cv_file_magic_test_file=/shlib/libc.so
7621 # func_win32_libid is a shell function defined in ltmain.sh
7622 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
7623 lt_cv_file_magic_cmd='func_win32_libid'
7627 # Base MSYS/MinGW do not provide the 'file' command needed by
7628 # func_win32_libid shell function, so use a weaker test based on 'objdump',
7629 # unless we find 'file', for example because we are cross-compiling.
7630 if ( file / ) >/dev/null 2>&1; then
7631 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
7632 lt_cv_file_magic_cmd='func_win32_libid'
7634 # Keep this pattern in sync with the one in func_win32_libid.
7635 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
7636 lt_cv_file_magic_cmd='$OBJDUMP -f'
7641 # use the weaker test based on 'objdump'. See mingw*.
7642 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
7643 lt_cv_file_magic_cmd='$OBJDUMP -f'
7646 darwin* | rhapsody*)
7647 lt_cv_deplibs_check_method=pass_all
7650 freebsd* | dragonfly*)
7651 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
7654 # Not sure whether the presence of OpenBSD here was a mistake.
7655 # Let's accept both of them until this is cleared up.
7656 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
7657 lt_cv_file_magic_cmd=/usr/bin/file
7658 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
7662 lt_cv_deplibs_check_method=pass_all
7667 lt_cv_deplibs_check_method=pass_all
7670 hpux10.20* | hpux11*)
7671 lt_cv_file_magic_cmd=/usr/bin/file
7674 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
7675 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
7678 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]'
7679 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
7682 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
7683 lt_cv_file_magic_test_file=/usr/lib/libc.sl
7689 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
7690 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
7693 irix5* | irix6* | nonstopux*)
7695 *-32|*"-32 ") libmagic=32-bit;;
7696 *-n32|*"-n32 ") libmagic=N32;;
7697 *-64|*"-64 ") libmagic=64-bit;;
7698 *) libmagic=never-match;;
7700 lt_cv_deplibs_check_method=pass_all
7703 # This must be glibc/ELF.
7704 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
7705 lt_cv_deplibs_check_method=pass_all
7709 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
7710 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
7712 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
7717 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
7718 lt_cv_file_magic_cmd=/usr/bin/file
7719 lt_cv_file_magic_test_file=/usr/lib/libnls.so
7723 lt_cv_deplibs_check_method=pass_all
7727 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
7728 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
7730 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
7734 osf3* | osf4* | osf5*)
7735 lt_cv_deplibs_check_method=pass_all
7739 lt_cv_deplibs_check_method=pass_all
7743 lt_cv_deplibs_check_method=pass_all
7746 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
7747 lt_cv_deplibs_check_method=pass_all
7751 case $host_vendor in
7753 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]'
7754 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
7757 lt_cv_deplibs_check_method=pass_all
7760 lt_cv_file_magic_cmd='/bin/file'
7761 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
7764 lt_cv_file_magic_cmd='/bin/file'
7765 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
7766 lt_cv_file_magic_test_file=/lib/libc.so
7769 lt_cv_deplibs_check_method=pass_all
7772 lt_cv_deplibs_check_method=pass_all
7778 lt_cv_deplibs_check_method=pass_all
7781 lt_cv_deplibs_check_method=pass_all
7786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
7787 $as_echo "$lt_cv_deplibs_check_method" >&6; }
7791 if test "$build" = "$host"; then
7794 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
7797 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
7803 file_magic_cmd=$lt_cv_file_magic_cmd
7804 deplibs_check_method=$lt_cv_deplibs_check_method
7805 test -z "$deplibs_check_method" && deplibs_check_method=unknown
7828 if test -n "$ac_tool_prefix"; then
7829 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
7830 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
7831 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7832 $as_echo_n "checking for $ac_word... " >&6; }
7833 if ${ac_cv_prog_DLLTOOL+:} false; then :
7834 $as_echo_n "(cached) " >&6
7836 if test -n "$DLLTOOL"; then
7837 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
7839 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7843 test -z "$as_dir" && as_dir=.
7844 for ac_exec_ext in '' $ac_executable_extensions; do
7845 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7846 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
7847 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7856 DLLTOOL=$ac_cv_prog_DLLTOOL
7857 if test -n "$DLLTOOL"; then
7858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
7859 $as_echo "$DLLTOOL" >&6; }
7861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7862 $as_echo "no" >&6; }
7867 if test -z "$ac_cv_prog_DLLTOOL"; then
7868 ac_ct_DLLTOOL=$DLLTOOL
7869 # Extract the first word of "dlltool", so it can be a program name with args.
7870 set dummy dlltool; ac_word=$2
7871 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7872 $as_echo_n "checking for $ac_word... " >&6; }
7873 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
7874 $as_echo_n "(cached) " >&6
7876 if test -n "$ac_ct_DLLTOOL"; then
7877 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
7879 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7883 test -z "$as_dir" && as_dir=.
7884 for ac_exec_ext in '' $ac_executable_extensions; do
7885 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7886 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
7887 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7896 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
7897 if test -n "$ac_ct_DLLTOOL"; then
7898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
7899 $as_echo "$ac_ct_DLLTOOL" >&6; }
7901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7902 $as_echo "no" >&6; }
7905 if test "x$ac_ct_DLLTOOL" = x; then
7908 case $cross_compiling:$ac_tool_warned in
7910 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7911 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7912 ac_tool_warned=yes ;;
7914 DLLTOOL=$ac_ct_DLLTOOL
7917 DLLTOOL="$ac_cv_prog_DLLTOOL"
7920 test -z "$DLLTOOL" && DLLTOOL=dlltool
7928 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
7929 $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
7930 if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
7931 $as_echo_n "(cached) " >&6
7933 lt_cv_sharedlib_from_linklib_cmd='unknown'
7936 cygwin* | mingw* | pw32* | cegcc*)
7937 # two different shell functions defined in ltmain.sh;
7938 # decide which one to use based on capabilities of $DLLTOOL
7939 case `$DLLTOOL --help 2>&1` in
7940 *--identify-strict*)
7941 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
7944 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
7949 # fallback: assume linklib IS sharedlib
7950 lt_cv_sharedlib_from_linklib_cmd=$ECHO
7955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
7956 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
7957 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
7958 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
7966 if test -n "$ac_tool_prefix"; then
7969 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
7970 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
7971 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7972 $as_echo_n "checking for $ac_word... " >&6; }
7973 if ${ac_cv_prog_AR+:} false; then :
7974 $as_echo_n "(cached) " >&6
7976 if test -n "$AR"; then
7977 ac_cv_prog_AR="$AR" # Let the user override the test.
7979 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7983 test -z "$as_dir" && as_dir=.
7984 for ac_exec_ext in '' $ac_executable_extensions; do
7985 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7986 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
7987 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7997 if test -n "$AR"; then
7998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
7999 $as_echo "$AR" >&6; }
8001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8002 $as_echo "no" >&6; }
8006 test -n "$AR" && break
8009 if test -z "$AR"; then
8013 # Extract the first word of "$ac_prog", so it can be a program name with args.
8014 set dummy $ac_prog; ac_word=$2
8015 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8016 $as_echo_n "checking for $ac_word... " >&6; }
8017 if ${ac_cv_prog_ac_ct_AR+:} false; then :
8018 $as_echo_n "(cached) " >&6
8020 if test -n "$ac_ct_AR"; then
8021 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
8023 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8027 test -z "$as_dir" && as_dir=.
8028 for ac_exec_ext in '' $ac_executable_extensions; do
8029 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8030 ac_cv_prog_ac_ct_AR="$ac_prog"
8031 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8040 ac_ct_AR=$ac_cv_prog_ac_ct_AR
8041 if test -n "$ac_ct_AR"; then
8042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
8043 $as_echo "$ac_ct_AR" >&6; }
8045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8046 $as_echo "no" >&6; }
8050 test -n "$ac_ct_AR" && break
8053 if test "x$ac_ct_AR" = x; then
8056 case $cross_compiling:$ac_tool_warned in
8058 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8059 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8060 ac_tool_warned=yes ;;
8079 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
8080 $as_echo_n "checking for archiver @FILE support... " >&6; }
8081 if ${lt_cv_ar_at_file+:} false; then :
8082 $as_echo_n "(cached) " >&6
8085 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8086 /* end confdefs.h. */
8096 if ac_fn_c_try_compile "$LINENO"; then :
8097 echo conftest.$ac_objext > conftest.lst
8098 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
8099 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
8100 (eval $lt_ar_try) 2>&5
8102 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8103 test $ac_status = 0; }
8104 if test 0 -eq "$ac_status"; then
8105 # Ensure the archiver fails upon bogus file names.
8106 rm -f conftest.$ac_objext libconftest.a
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 0 -ne "$ac_status"; then
8116 rm -f conftest.* libconftest.a
8119 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
8123 $as_echo "$lt_cv_ar_at_file" >&6; }
8125 if test no = "$lt_cv_ar_at_file"; then
8128 archiver_list_spec=$lt_cv_ar_at_file
8137 if test -n "$ac_tool_prefix"; then
8138 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
8139 set dummy ${ac_tool_prefix}strip; ac_word=$2
8140 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8141 $as_echo_n "checking for $ac_word... " >&6; }
8142 if ${ac_cv_prog_STRIP+:} false; then :
8143 $as_echo_n "(cached) " >&6
8145 if test -n "$STRIP"; then
8146 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
8148 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8152 test -z "$as_dir" && as_dir=.
8153 for ac_exec_ext in '' $ac_executable_extensions; do
8154 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8155 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
8156 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8165 STRIP=$ac_cv_prog_STRIP
8166 if test -n "$STRIP"; then
8167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
8168 $as_echo "$STRIP" >&6; }
8170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8171 $as_echo "no" >&6; }
8176 if test -z "$ac_cv_prog_STRIP"; then
8178 # Extract the first word of "strip", so it can be a program name with args.
8179 set dummy strip; ac_word=$2
8180 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8181 $as_echo_n "checking for $ac_word... " >&6; }
8182 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
8183 $as_echo_n "(cached) " >&6
8185 if test -n "$ac_ct_STRIP"; then
8186 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
8188 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8192 test -z "$as_dir" && as_dir=.
8193 for ac_exec_ext in '' $ac_executable_extensions; do
8194 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8195 ac_cv_prog_ac_ct_STRIP="strip"
8196 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8205 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
8206 if test -n "$ac_ct_STRIP"; then
8207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
8208 $as_echo "$ac_ct_STRIP" >&6; }
8210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8211 $as_echo "no" >&6; }
8214 if test "x$ac_ct_STRIP" = x; then
8217 case $cross_compiling:$ac_tool_warned in
8219 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8220 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8221 ac_tool_warned=yes ;;
8226 STRIP="$ac_cv_prog_STRIP"
8229 test -z "$STRIP" && STRIP=:
8236 if test -n "$ac_tool_prefix"; then
8237 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
8238 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
8239 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8240 $as_echo_n "checking for $ac_word... " >&6; }
8241 if ${ac_cv_prog_RANLIB+:} false; then :
8242 $as_echo_n "(cached) " >&6
8244 if test -n "$RANLIB"; then
8245 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
8247 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8251 test -z "$as_dir" && as_dir=.
8252 for ac_exec_ext in '' $ac_executable_extensions; do
8253 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8254 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
8255 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8264 RANLIB=$ac_cv_prog_RANLIB
8265 if test -n "$RANLIB"; then
8266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
8267 $as_echo "$RANLIB" >&6; }
8269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8270 $as_echo "no" >&6; }
8275 if test -z "$ac_cv_prog_RANLIB"; then
8276 ac_ct_RANLIB=$RANLIB
8277 # Extract the first word of "ranlib", so it can be a program name with args.
8278 set dummy ranlib; ac_word=$2
8279 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8280 $as_echo_n "checking for $ac_word... " >&6; }
8281 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
8282 $as_echo_n "(cached) " >&6
8284 if test -n "$ac_ct_RANLIB"; then
8285 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
8287 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8291 test -z "$as_dir" && as_dir=.
8292 for ac_exec_ext in '' $ac_executable_extensions; do
8293 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8294 ac_cv_prog_ac_ct_RANLIB="ranlib"
8295 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8304 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
8305 if test -n "$ac_ct_RANLIB"; then
8306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
8307 $as_echo "$ac_ct_RANLIB" >&6; }
8309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8310 $as_echo "no" >&6; }
8313 if test "x$ac_ct_RANLIB" = x; then
8316 case $cross_compiling:$ac_tool_warned in
8318 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8319 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8320 ac_tool_warned=yes ;;
8322 RANLIB=$ac_ct_RANLIB
8325 RANLIB="$ac_cv_prog_RANLIB"
8328 test -z "$RANLIB" && RANLIB=:
8335 # Determine commands to create old-style static archives.
8336 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
8337 old_postinstall_cmds='chmod 644 $oldlib'
8338 old_postuninstall_cmds=
8340 if test -n "$RANLIB"; then
8343 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
8346 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
8349 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
8354 lock_old_archive_extraction=yes ;;
8356 lock_old_archive_extraction=no ;;
8397 # If no C compiler was specified, use CC.
8400 # If no C compiler flags were specified, use CFLAGS.
8401 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8403 # Allow CC to be a program name with arguments.
8407 # Check for command to grab the raw symbol name followed by C symbol from nm.
8408 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
8409 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
8410 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
8411 $as_echo_n "(cached) " >&6
8414 # These are sane defaults that work on at least a few old systems.
8415 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
8417 # Character class describing NM global symbol codes.
8418 symcode='[BCDEGRST]'
8420 # Regexp to match symbols that can be accessed directly from C.
8421 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
8423 # Define system-specific variables.
8428 cygwin* | mingw* | pw32* | cegcc*)
8429 symcode='[ABCDGISTW]'
8432 if test ia64 = "$host_cpu"; then
8433 symcode='[ABCDEGRST]'
8437 symcode='[BCDEGRST]'
8440 symcode='[BCDEGQRST]'
8451 sysv5* | sco5v6* | unixware* | OpenUNIX*)
8459 # If we're using GNU nm, then use its standard symbol codes.
8460 case `$NM -V 2>&1` in
8461 *GNU* | *'with BFD'*)
8462 symcode='[ABCDGIRSTW]' ;;
8465 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
8466 # Gets list of data symbols to import.
8467 lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'"
8468 # Adjust the below global symbol transforms to fixup imported variables.
8469 lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
8470 lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'"
8471 lt_c_name_lib_hook="\
8472 -e 's/^I .* \(lib.*\)$/ {\"\1\", (void *) 0},/p'\
8473 -e 's/^I .* \(.*\)$/ {\"lib\1\", (void *) 0},/p'"
8475 # Disable hooks by default.
8476 lt_cv_sys_global_symbol_to_import=
8482 # Transform an extracted symbol line into a proper C declaration.
8483 # Some systems (esp. on ia64) link data and code symbols differently,
8484 # so use this general approach.
8485 lt_cv_sys_global_symbol_to_cdecl="sed -n"\
8487 " -e 's/^T .* \(.*\)$/extern int \1();/p'"\
8488 " -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
8490 # Transform an extracted symbol line into symbol name and symbol address
8491 lt_cv_sys_global_symbol_to_c_name_address="sed -n"\
8493 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
8494 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'"
8496 # Transform an extracted symbol line into symbol name with lib prefix and
8498 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\
8499 $lt_c_name_lib_hook\
8500 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
8501 " -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\
8502 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"lib\1\", (void *) \&\1},/p'"
8504 # Handle CRLF in mingw tool chain
8508 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
8512 # Try without a prefix underscore, then with it.
8513 for ac_symprfx in "" "_"; do
8515 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
8516 symxfrm="\\1 $ac_symprfx\\2 \\2"
8518 # Write the raw and C identifiers.
8519 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
8520 # Fake it for dumpbin and say T for any non-static function,
8521 # D for any global variable and I for any imported variable.
8522 # Also find C++ and __fastcall symbols from MSVC++,
8523 # which start with @ or ?.
8524 lt_cv_sys_global_symbol_pipe="$AWK '"\
8525 " {last_section=section; section=\$ 3};"\
8526 " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
8527 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
8528 " /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
8529 " /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
8530 " /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
8531 " \$ 0!~/External *\|/{next};"\
8532 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
8533 " {if(hide[section]) next};"\
8534 " {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
8535 " {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
8536 " s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
8537 " s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
8538 " ' prfx=^$ac_symprfx"
8540 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
8542 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
8544 # Check to see that the pipe works correctly.
8548 cat > conftest.$ac_ext <<_LT_EOF
8553 void nm_test_func(void);
8554 void nm_test_func(void){}
8558 int main(){nm_test_var='a';nm_test_func();return(0);}
8561 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8562 (eval $ac_compile) 2>&5
8564 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8565 test $ac_status = 0; }; then
8566 # Now try to grab the symbols.
8568 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
8569 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
8571 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8572 test $ac_status = 0; } && test -s "$nlist"; then
8573 # Try sorting and uniquifying the output.
8574 if sort "$nlist" | uniq > "$nlist"T; then
8575 mv -f "$nlist"T "$nlist"
8580 # Make sure that we snagged all the symbols we need.
8581 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
8582 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
8583 cat <<_LT_EOF > conftest.$ac_ext
8584 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
8585 #if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
8586 /* DATA imports from DLLs on WIN32 can't be const, because runtime
8587 relocations are performed -- see ld's documentation on pseudo-relocs. */
8588 # define LT_DLSYM_CONST
8589 #elif defined __osf__
8590 /* This system does not cope well with relocations in const data. */
8591 # define LT_DLSYM_CONST
8593 # define LT_DLSYM_CONST const
8601 # Now generate the symbol file.
8602 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
8604 cat <<_LT_EOF >> conftest.$ac_ext
8606 /* The mapping between symbol names and symbols. */
8607 LT_DLSYM_CONST struct {
8611 lt__PROGRAM__LTX_preloaded_symbols[] =
8613 { "@PROGRAM@", (void *) 0 },
8615 $SED "s/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
8616 cat <<\_LT_EOF >> conftest.$ac_ext
8620 /* This works around a problem in FreeBSD linker */
8621 #ifdef FREEBSD_WORKAROUND
8622 static const void *lt_preloaded_setup() {
8623 return lt__PROGRAM__LTX_preloaded_symbols;
8631 # Now try linking the two files.
8632 mv conftest.$ac_objext conftstm.$ac_objext
8633 lt_globsym_save_LIBS=$LIBS
8634 lt_globsym_save_CFLAGS=$CFLAGS
8635 LIBS=conftstm.$ac_objext
8636 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
8637 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
8638 (eval $ac_link) 2>&5
8640 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8641 test $ac_status = 0; } && test -s conftest$ac_exeext; then
8644 LIBS=$lt_globsym_save_LIBS
8645 CFLAGS=$lt_globsym_save_CFLAGS
8647 echo "cannot find nm_test_func in $nlist" >&5
8650 echo "cannot find nm_test_var in $nlist" >&5
8653 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
8656 echo "$progname: failed program was:" >&5
8657 cat conftest.$ac_ext >&5
8659 rm -rf conftest* conftst*
8661 # Do not use the global_symbol_pipe unless it works.
8662 if test yes = "$pipe_works"; then
8665 lt_cv_sys_global_symbol_pipe=
8671 if test -z "$lt_cv_sys_global_symbol_pipe"; then
8672 lt_cv_sys_global_symbol_to_cdecl=
8674 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
8675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
8676 $as_echo "failed" >&6; }
8678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
8679 $as_echo "ok" >&6; }
8682 # Response file support.
8683 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
8684 nm_file_list_spec='@'
8685 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
8686 nm_file_list_spec='@'
8725 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
8726 $as_echo_n "checking for sysroot... " >&6; }
8728 # Check whether --with-sysroot was given.
8729 if test "${with_sysroot+set}" = set; then :
8730 withval=$with_sysroot;
8737 case $with_sysroot in #(
8739 if test yes = "$GCC"; then
8740 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
8744 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
8749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5
8750 $as_echo "$with_sysroot" >&6; }
8751 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
8755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
8756 $as_echo "${lt_sysroot:-no}" >&6; }
8762 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5
8763 $as_echo_n "checking for a working dd... " >&6; }
8764 if ${ac_cv_path_lt_DD+:} false; then :
8765 $as_echo_n "(cached) " >&6
8767 printf 0123456789abcdef0123456789abcdef >conftest.i
8768 cat conftest.i conftest.i >conftest2.i
8770 if test -z "$lt_DD"; then
8771 ac_path_lt_DD_found=false
8772 # Loop through the user's path and test for each of PROGNAME-LIST
8773 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8777 test -z "$as_dir" && as_dir=.
8778 for ac_prog in dd; do
8779 for ac_exec_ext in '' $ac_executable_extensions; do
8780 ac_path_lt_DD="$as_dir/$ac_prog$ac_exec_ext"
8781 as_fn_executable_p "$ac_path_lt_DD" || continue
8782 if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
8783 cmp -s conftest.i conftest.out \
8784 && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
8786 $ac_path_lt_DD_found && break 3
8791 if test -z "$ac_cv_path_lt_DD"; then
8795 ac_cv_path_lt_DD=$lt_DD
8798 rm -f conftest.i conftest2.i conftest.out
8800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5
8801 $as_echo "$ac_cv_path_lt_DD" >&6; }
8804 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5
8805 $as_echo_n "checking how to truncate binary pipes... " >&6; }
8806 if ${lt_cv_truncate_bin+:} false; then :
8807 $as_echo_n "(cached) " >&6
8809 printf 0123456789abcdef0123456789abcdef >conftest.i
8810 cat conftest.i conftest.i >conftest2.i
8812 if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
8813 cmp -s conftest.i conftest.out \
8814 && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"
8816 rm -f conftest.i conftest2.i conftest.out
8817 test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q"
8819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5
8820 $as_echo "$lt_cv_truncate_bin" >&6; }
8828 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
8831 for cc_temp in $*""; do
8833 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8834 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8839 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
8842 # Check whether --enable-libtool-lock was given.
8843 if test "${enable_libtool_lock+set}" = set; then :
8844 enableval=$enable_libtool_lock;
8847 test no = "$enable_libtool_lock" || enable_libtool_lock=yes
8849 # Some flags need to be propagated to the compiler or linker for good
8853 # Find out what ABI is being produced by ac_compile, and set mode
8854 # options accordingly.
8855 echo 'int i;' > conftest.$ac_ext
8856 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8857 (eval $ac_compile) 2>&5
8859 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8860 test $ac_status = 0; }; then
8861 case `/usr/bin/file conftest.$ac_objext` in
8873 # Find out what ABI is being produced by ac_compile, and set linker
8874 # options accordingly.
8875 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
8876 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8877 (eval $ac_compile) 2>&5
8879 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8880 test $ac_status = 0; }; then
8881 if test yes = "$lt_cv_prog_gnu_ld"; then
8882 case `/usr/bin/file conftest.$ac_objext` in
8884 LD="${LD-ld} -melf32bsmip"
8887 LD="${LD-ld} -melf32bmipn32"
8890 LD="${LD-ld} -melf64bmip"
8894 case `/usr/bin/file conftest.$ac_objext` in
8911 # Find out what ABI is being produced by ac_compile, and set linker
8912 # options accordingly.
8913 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
8914 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8915 (eval $ac_compile) 2>&5
8917 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8918 test $ac_status = 0; }; then
8920 case `/usr/bin/file conftest.$ac_objext` in
8928 case `/usr/bin/file conftest.$ac_objext` in
8930 emul="${emul}btsmip"
8933 emul="${emul}ltsmip"
8936 case `/usr/bin/file conftest.$ac_objext` in
8941 LD="${LD-ld} -m $emul"
8946 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
8947 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
8948 # Find out what ABI is being produced by ac_compile, and set linker
8949 # options accordingly. Note that the listed cases only cover the
8950 # situations where additional linker options are needed (such as when
8951 # doing 32-bit compilation for a host where ld defaults to 64-bit, or
8952 # vice versa); the common cases where no linker options are needed do
8953 # not appear in the list.
8954 echo 'int i;' > conftest.$ac_ext
8955 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8956 (eval $ac_compile) 2>&5
8958 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8959 test $ac_status = 0; }; then
8960 case `/usr/bin/file conftest.o` in
8963 x86_64-*kfreebsd*-gnu)
8964 LD="${LD-ld} -m elf_i386_fbsd"
8967 case `/usr/bin/file conftest.o` in
8969 LD="${LD-ld} -m elf32_x86_64"
8972 LD="${LD-ld} -m elf_i386"
8976 powerpc64le-*linux*)
8977 LD="${LD-ld} -m elf32lppclinux"
8980 LD="${LD-ld} -m elf32ppclinux"
8983 LD="${LD-ld} -m elf_s390"
8986 LD="${LD-ld} -m elf32_sparc"
8992 x86_64-*kfreebsd*-gnu)
8993 LD="${LD-ld} -m elf_x86_64_fbsd"
8996 LD="${LD-ld} -m elf_x86_64"
8999 LD="${LD-ld} -m elf64lppc"
9002 LD="${LD-ld} -m elf64ppc"
9004 s390*-*linux*|s390*-*tpf*)
9005 LD="${LD-ld} -m elf64_s390"
9008 LD="${LD-ld} -m elf64_sparc"
9018 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
9020 CFLAGS="$CFLAGS -belf"
9021 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
9022 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
9023 if ${lt_cv_cc_needs_belf+:} false; then :
9024 $as_echo_n "(cached) " >&6
9027 ac_cpp='$CPP $CPPFLAGS'
9028 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9029 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9030 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9032 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9033 /* end confdefs.h. */
9043 if ac_fn_c_try_link "$LINENO"; then :
9044 lt_cv_cc_needs_belf=yes
9046 lt_cv_cc_needs_belf=no
9048 rm -f core conftest.err conftest.$ac_objext \
9049 conftest$ac_exeext conftest.$ac_ext
9051 ac_cpp='$CPP $CPPFLAGS'
9052 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9053 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9054 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
9058 $as_echo "$lt_cv_cc_needs_belf" >&6; }
9059 if test yes != "$lt_cv_cc_needs_belf"; then
9060 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
9065 # Find out what ABI is being produced by ac_compile, and set linker
9066 # options accordingly.
9067 echo 'int i;' > conftest.$ac_ext
9068 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9069 (eval $ac_compile) 2>&5
9071 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9072 test $ac_status = 0; }; then
9073 case `/usr/bin/file conftest.o` in
9075 case $lt_cv_prog_gnu_ld in
9078 i?86-*-solaris*|x86_64-*-solaris*)
9079 LD="${LD-ld} -m elf_x86_64"
9082 LD="${LD-ld} -m elf64_sparc"
9085 # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
9086 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
9091 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
9103 need_locks=$enable_libtool_lock
9105 if test -n "$ac_tool_prefix"; then
9106 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
9107 set dummy ${ac_tool_prefix}mt; ac_word=$2
9108 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9109 $as_echo_n "checking for $ac_word... " >&6; }
9110 if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
9111 $as_echo_n "(cached) " >&6
9113 if test -n "$MANIFEST_TOOL"; then
9114 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
9116 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9120 test -z "$as_dir" && as_dir=.
9121 for ac_exec_ext in '' $ac_executable_extensions; do
9122 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9123 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
9124 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9133 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
9134 if test -n "$MANIFEST_TOOL"; then
9135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
9136 $as_echo "$MANIFEST_TOOL" >&6; }
9138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9139 $as_echo "no" >&6; }
9144 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
9145 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
9146 # Extract the first word of "mt", so it can be a program name with args.
9147 set dummy mt; ac_word=$2
9148 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9149 $as_echo_n "checking for $ac_word... " >&6; }
9150 if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
9151 $as_echo_n "(cached) " >&6
9153 if test -n "$ac_ct_MANIFEST_TOOL"; then
9154 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
9156 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9160 test -z "$as_dir" && as_dir=.
9161 for ac_exec_ext in '' $ac_executable_extensions; do
9162 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9163 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
9164 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9173 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
9174 if test -n "$ac_ct_MANIFEST_TOOL"; then
9175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
9176 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
9178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9179 $as_echo "no" >&6; }
9182 if test "x$ac_ct_MANIFEST_TOOL" = x; then
9185 case $cross_compiling:$ac_tool_warned in
9187 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9188 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9189 ac_tool_warned=yes ;;
9191 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
9194 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
9197 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
9198 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
9199 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
9200 if ${lt_cv_path_mainfest_tool+:} false; then :
9201 $as_echo_n "(cached) " >&6
9203 lt_cv_path_mainfest_tool=no
9204 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
9205 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
9206 cat conftest.err >&5
9207 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
9208 lt_cv_path_mainfest_tool=yes
9212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
9213 $as_echo "$lt_cv_path_mainfest_tool" >&6; }
9214 if test yes != "$lt_cv_path_mainfest_tool"; then
9224 rhapsody* | darwin*)
9225 if test -n "$ac_tool_prefix"; then
9226 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
9227 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
9228 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9229 $as_echo_n "checking for $ac_word... " >&6; }
9230 if ${ac_cv_prog_DSYMUTIL+:} false; then :
9231 $as_echo_n "(cached) " >&6
9233 if test -n "$DSYMUTIL"; then
9234 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
9236 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9240 test -z "$as_dir" && as_dir=.
9241 for ac_exec_ext in '' $ac_executable_extensions; do
9242 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9243 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
9244 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9253 DSYMUTIL=$ac_cv_prog_DSYMUTIL
9254 if test -n "$DSYMUTIL"; then
9255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
9256 $as_echo "$DSYMUTIL" >&6; }
9258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9259 $as_echo "no" >&6; }
9264 if test -z "$ac_cv_prog_DSYMUTIL"; then
9265 ac_ct_DSYMUTIL=$DSYMUTIL
9266 # Extract the first word of "dsymutil", so it can be a program name with args.
9267 set dummy dsymutil; ac_word=$2
9268 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9269 $as_echo_n "checking for $ac_word... " >&6; }
9270 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
9271 $as_echo_n "(cached) " >&6
9273 if test -n "$ac_ct_DSYMUTIL"; then
9274 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
9276 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9280 test -z "$as_dir" && as_dir=.
9281 for ac_exec_ext in '' $ac_executable_extensions; do
9282 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9283 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
9284 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9293 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
9294 if test -n "$ac_ct_DSYMUTIL"; then
9295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
9296 $as_echo "$ac_ct_DSYMUTIL" >&6; }
9298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9299 $as_echo "no" >&6; }
9302 if test "x$ac_ct_DSYMUTIL" = x; then
9305 case $cross_compiling:$ac_tool_warned in
9307 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9308 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9309 ac_tool_warned=yes ;;
9311 DSYMUTIL=$ac_ct_DSYMUTIL
9314 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
9317 if test -n "$ac_tool_prefix"; then
9318 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
9319 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
9320 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9321 $as_echo_n "checking for $ac_word... " >&6; }
9322 if ${ac_cv_prog_NMEDIT+:} false; then :
9323 $as_echo_n "(cached) " >&6
9325 if test -n "$NMEDIT"; then
9326 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
9328 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9332 test -z "$as_dir" && as_dir=.
9333 for ac_exec_ext in '' $ac_executable_extensions; do
9334 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9335 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
9336 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9345 NMEDIT=$ac_cv_prog_NMEDIT
9346 if test -n "$NMEDIT"; then
9347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
9348 $as_echo "$NMEDIT" >&6; }
9350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9351 $as_echo "no" >&6; }
9356 if test -z "$ac_cv_prog_NMEDIT"; then
9357 ac_ct_NMEDIT=$NMEDIT
9358 # Extract the first word of "nmedit", so it can be a program name with args.
9359 set dummy nmedit; ac_word=$2
9360 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9361 $as_echo_n "checking for $ac_word... " >&6; }
9362 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
9363 $as_echo_n "(cached) " >&6
9365 if test -n "$ac_ct_NMEDIT"; then
9366 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
9368 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9372 test -z "$as_dir" && as_dir=.
9373 for ac_exec_ext in '' $ac_executable_extensions; do
9374 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9375 ac_cv_prog_ac_ct_NMEDIT="nmedit"
9376 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9385 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
9386 if test -n "$ac_ct_NMEDIT"; then
9387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
9388 $as_echo "$ac_ct_NMEDIT" >&6; }
9390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9391 $as_echo "no" >&6; }
9394 if test "x$ac_ct_NMEDIT" = x; then
9397 case $cross_compiling:$ac_tool_warned in
9399 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9400 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9401 ac_tool_warned=yes ;;
9403 NMEDIT=$ac_ct_NMEDIT
9406 NMEDIT="$ac_cv_prog_NMEDIT"
9409 if test -n "$ac_tool_prefix"; then
9410 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
9411 set dummy ${ac_tool_prefix}lipo; ac_word=$2
9412 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9413 $as_echo_n "checking for $ac_word... " >&6; }
9414 if ${ac_cv_prog_LIPO+:} false; then :
9415 $as_echo_n "(cached) " >&6
9417 if test -n "$LIPO"; then
9418 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
9420 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9424 test -z "$as_dir" && as_dir=.
9425 for ac_exec_ext in '' $ac_executable_extensions; do
9426 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9427 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
9428 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9437 LIPO=$ac_cv_prog_LIPO
9438 if test -n "$LIPO"; then
9439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
9440 $as_echo "$LIPO" >&6; }
9442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9443 $as_echo "no" >&6; }
9448 if test -z "$ac_cv_prog_LIPO"; then
9450 # Extract the first word of "lipo", so it can be a program name with args.
9451 set dummy lipo; ac_word=$2
9452 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9453 $as_echo_n "checking for $ac_word... " >&6; }
9454 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
9455 $as_echo_n "(cached) " >&6
9457 if test -n "$ac_ct_LIPO"; then
9458 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
9460 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9464 test -z "$as_dir" && as_dir=.
9465 for ac_exec_ext in '' $ac_executable_extensions; do
9466 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9467 ac_cv_prog_ac_ct_LIPO="lipo"
9468 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9477 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
9478 if test -n "$ac_ct_LIPO"; then
9479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
9480 $as_echo "$ac_ct_LIPO" >&6; }
9482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9483 $as_echo "no" >&6; }
9486 if test "x$ac_ct_LIPO" = x; then
9489 case $cross_compiling:$ac_tool_warned in
9491 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9492 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9493 ac_tool_warned=yes ;;
9498 LIPO="$ac_cv_prog_LIPO"
9501 if test -n "$ac_tool_prefix"; then
9502 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
9503 set dummy ${ac_tool_prefix}otool; ac_word=$2
9504 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9505 $as_echo_n "checking for $ac_word... " >&6; }
9506 if ${ac_cv_prog_OTOOL+:} false; then :
9507 $as_echo_n "(cached) " >&6
9509 if test -n "$OTOOL"; then
9510 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
9512 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9516 test -z "$as_dir" && as_dir=.
9517 for ac_exec_ext in '' $ac_executable_extensions; do
9518 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9519 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
9520 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9529 OTOOL=$ac_cv_prog_OTOOL
9530 if test -n "$OTOOL"; then
9531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
9532 $as_echo "$OTOOL" >&6; }
9534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9535 $as_echo "no" >&6; }
9540 if test -z "$ac_cv_prog_OTOOL"; then
9542 # Extract the first word of "otool", so it can be a program name with args.
9543 set dummy otool; ac_word=$2
9544 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9545 $as_echo_n "checking for $ac_word... " >&6; }
9546 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
9547 $as_echo_n "(cached) " >&6
9549 if test -n "$ac_ct_OTOOL"; then
9550 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
9552 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9556 test -z "$as_dir" && as_dir=.
9557 for ac_exec_ext in '' $ac_executable_extensions; do
9558 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9559 ac_cv_prog_ac_ct_OTOOL="otool"
9560 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9569 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
9570 if test -n "$ac_ct_OTOOL"; then
9571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
9572 $as_echo "$ac_ct_OTOOL" >&6; }
9574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9575 $as_echo "no" >&6; }
9578 if test "x$ac_ct_OTOOL" = x; then
9581 case $cross_compiling:$ac_tool_warned in
9583 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9584 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9585 ac_tool_warned=yes ;;
9590 OTOOL="$ac_cv_prog_OTOOL"
9593 if test -n "$ac_tool_prefix"; then
9594 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
9595 set dummy ${ac_tool_prefix}otool64; ac_word=$2
9596 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9597 $as_echo_n "checking for $ac_word... " >&6; }
9598 if ${ac_cv_prog_OTOOL64+:} false; then :
9599 $as_echo_n "(cached) " >&6
9601 if test -n "$OTOOL64"; then
9602 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
9604 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9608 test -z "$as_dir" && as_dir=.
9609 for ac_exec_ext in '' $ac_executable_extensions; do
9610 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9611 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
9612 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9621 OTOOL64=$ac_cv_prog_OTOOL64
9622 if test -n "$OTOOL64"; then
9623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
9624 $as_echo "$OTOOL64" >&6; }
9626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9627 $as_echo "no" >&6; }
9632 if test -z "$ac_cv_prog_OTOOL64"; then
9633 ac_ct_OTOOL64=$OTOOL64
9634 # Extract the first word of "otool64", so it can be a program name with args.
9635 set dummy otool64; ac_word=$2
9636 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9637 $as_echo_n "checking for $ac_word... " >&6; }
9638 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
9639 $as_echo_n "(cached) " >&6
9641 if test -n "$ac_ct_OTOOL64"; then
9642 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
9644 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9648 test -z "$as_dir" && as_dir=.
9649 for ac_exec_ext in '' $ac_executable_extensions; do
9650 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9651 ac_cv_prog_ac_ct_OTOOL64="otool64"
9652 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9661 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
9662 if test -n "$ac_ct_OTOOL64"; then
9663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
9664 $as_echo "$ac_ct_OTOOL64" >&6; }
9666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9667 $as_echo "no" >&6; }
9670 if test "x$ac_ct_OTOOL64" = x; then
9673 case $cross_compiling:$ac_tool_warned in
9675 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9676 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9677 ac_tool_warned=yes ;;
9679 OTOOL64=$ac_ct_OTOOL64
9682 OTOOL64="$ac_cv_prog_OTOOL64"
9711 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
9712 $as_echo_n "checking for -single_module linker flag... " >&6; }
9713 if ${lt_cv_apple_cc_single_mod+:} false; then :
9714 $as_echo_n "(cached) " >&6
9716 lt_cv_apple_cc_single_mod=no
9717 if test -z "$LT_MULTI_MODULE"; then
9718 # By default we will add the -single_module flag. You can override
9719 # by either setting the environment variable LT_MULTI_MODULE
9720 # non-empty at configure time, or by adding -multi_module to the
9722 rm -rf libconftest.dylib*
9723 echo "int foo(void){return 1;}" > conftest.c
9724 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
9725 -dynamiclib -Wl,-single_module conftest.c" >&5
9726 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
9727 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
9729 # If there is a non-empty error log, and "single_module"
9730 # appears in it, assume the flag caused a linker warning
9731 if test -s conftest.err && $GREP single_module conftest.err; then
9732 cat conftest.err >&5
9733 # Otherwise, if the output was created with a 0 exit code from
9734 # the compiler, it worked.
9735 elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
9736 lt_cv_apple_cc_single_mod=yes
9738 cat conftest.err >&5
9740 rm -rf libconftest.dylib*
9744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
9745 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
9747 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
9748 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
9749 if ${lt_cv_ld_exported_symbols_list+:} false; then :
9750 $as_echo_n "(cached) " >&6
9752 lt_cv_ld_exported_symbols_list=no
9753 save_LDFLAGS=$LDFLAGS
9754 echo "_main" > conftest.sym
9755 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
9756 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9757 /* end confdefs.h. */
9767 if ac_fn_c_try_link "$LINENO"; then :
9768 lt_cv_ld_exported_symbols_list=yes
9770 lt_cv_ld_exported_symbols_list=no
9772 rm -f core conftest.err conftest.$ac_objext \
9773 conftest$ac_exeext conftest.$ac_ext
9774 LDFLAGS=$save_LDFLAGS
9777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
9778 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
9780 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
9781 $as_echo_n "checking for -force_load linker flag... " >&6; }
9782 if ${lt_cv_ld_force_load+:} false; then :
9783 $as_echo_n "(cached) " >&6
9785 lt_cv_ld_force_load=no
9786 cat > conftest.c << _LT_EOF
9787 int forced_loaded() { return 2;}
9789 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
9790 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
9791 echo "$AR cru libconftest.a conftest.o" >&5
9792 $AR cru libconftest.a conftest.o 2>&5
9793 echo "$RANLIB libconftest.a" >&5
9794 $RANLIB libconftest.a 2>&5
9795 cat > conftest.c << _LT_EOF
9796 int main() { return 0;}
9798 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
9799 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
9801 if test -s conftest.err && $GREP force_load conftest.err; then
9802 cat conftest.err >&5
9803 elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
9804 lt_cv_ld_force_load=yes
9806 cat conftest.err >&5
9808 rm -f conftest.err libconftest.a conftest conftest.c
9809 rm -rf conftest.dSYM
9812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
9813 $as_echo "$lt_cv_ld_force_load" >&6; }
9815 rhapsody* | darwin1.[012])
9816 _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
9818 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
9819 darwin*) # darwin 5.x on
9820 # if running on 10.5 or later, the deployment target defaults
9821 # to the OS version, if on x86, and 10.4, the deployment
9822 # target defaults to 10.4. Don't you love it?
9823 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
9824 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
9825 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
9827 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
9829 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
9833 if test yes = "$lt_cv_apple_cc_single_mod"; then
9834 _lt_dar_single_mod='$single_module'
9836 if test yes = "$lt_cv_ld_exported_symbols_list"; then
9837 _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
9839 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
9841 if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
9842 _lt_dsymutil='~$DSYMUTIL $lib || :'
9849 # func_munge_path_list VARIABLE PATH
9850 # -----------------------------------
9851 # VARIABLE is name of variable containing _space_ separated list of
9852 # directories to be munged by the contents of PATH, which is string
9855 # string "DIR[ DIR]" will be prepended to VARIABLE
9857 # string "DIR[ DIR]" will be appended to VARIABLE
9858 # "DIRP[:DIRP]::[DIRA:]DIRA"
9859 # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
9860 # "DIRA[ DIRA]" will be appended to VARIABLE
9862 # VARIABLE will be replaced by "DIR[ DIR]"
9863 func_munge_path_list ()
9869 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
9872 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
9875 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
9876 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
9879 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
9884 for ac_header in dlfcn.h
9886 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
9888 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
9889 cat >>confdefs.h <<_ACEOF
9890 #define HAVE_DLFCN_H 1
9899 func_stripname_cnf ()
9902 .*) func_stripname_result=`$ECHO "$3" | $SED "s%^$1%%; s%\\\\$2\$%%"`;;
9903 *) func_stripname_result=`$ECHO "$3" | $SED "s%^$1%%; s%$2\$%%"`;;
9905 } # func_stripname_cnf
9919 # Check whether --enable-shared was given.
9920 if test "${enable_shared+set}" = set; then :
9921 enableval=$enable_shared; p=${PACKAGE-default}
9923 yes) enable_shared=yes ;;
9924 no) enable_shared=no ;;
9927 # Look at the argument we got. We use all the common list separators.
9928 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
9929 for pkg in $enableval; do
9931 if test "X$pkg" = "X$p"; then
9950 # Check whether --enable-static was given.
9951 if test "${enable_static+set}" = set; then :
9952 enableval=$enable_static; p=${PACKAGE-default}
9954 yes) enable_static=yes ;;
9955 no) enable_static=no ;;
9958 # Look at the argument we got. We use all the common list separators.
9959 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
9960 for pkg in $enableval; do
9962 if test "X$pkg" = "X$p"; then
9982 # Check whether --with-pic was given.
9983 if test "${with_pic+set}" = set; then :
9984 withval=$with_pic; lt_p=${PACKAGE-default}
9986 yes|no) pic_mode=$withval ;;
9989 # Look at the argument we got. We use all the common list separators.
9990 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
9991 for lt_pkg in $withval; do
9993 if test "X$lt_pkg" = "X$lt_p"; then
10011 # Check whether --enable-fast-install was given.
10012 if test "${enable_fast_install+set}" = set; then :
10013 enableval=$enable_fast_install; p=${PACKAGE-default}
10015 yes) enable_fast_install=yes ;;
10016 no) enable_fast_install=no ;;
10018 enable_fast_install=no
10019 # Look at the argument we got. We use all the common list separators.
10020 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
10021 for pkg in $enableval; do
10023 if test "X$pkg" = "X$p"; then
10024 enable_fast_install=yes
10031 enable_fast_install=yes
10041 shared_archive_member_spec=
10042 case $host,$enable_shared in
10043 power*-*-aix[5-9]*,yes)
10044 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5
10045 $as_echo_n "checking which variant of shared library versioning to provide... " >&6; }
10047 # Check whether --with-aix-soname was given.
10048 if test "${with_aix_soname+set}" = set; then :
10049 withval=$with_aix_soname; case $withval in
10053 as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5
10056 lt_cv_with_aix_soname=$with_aix_soname
10058 if ${lt_cv_with_aix_soname+:} false; then :
10059 $as_echo_n "(cached) " >&6
10061 lt_cv_with_aix_soname=aix
10064 with_aix_soname=$lt_cv_with_aix_soname
10067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5
10068 $as_echo "$with_aix_soname" >&6; }
10069 if test aix != "$with_aix_soname"; then
10070 # For the AIX way of multilib, we name the shared archive member
10071 # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
10072 # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.
10073 # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
10074 # the AIX toolchain works better with OBJECT_MODE set (default 32).
10075 if test 64 = "${OBJECT_MODE-32}"; then
10076 shared_archive_member_spec=shr_64
10078 shared_archive_member_spec=shr
10083 with_aix_soname=aix
10096 # This can be used to rebuild libtool when needed
10097 LIBTOOL_DEPS=$ltmain
10099 # Always use our own libtool.
10100 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
10131 test -z "$LN_S" && LN_S="ln -s"
10146 if test -n "${ZSH_VERSION+set}"; then
10147 setopt NO_GLOB_SUBST
10150 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
10151 $as_echo_n "checking for objdir... " >&6; }
10152 if ${lt_cv_objdir+:} false; then :
10153 $as_echo_n "(cached) " >&6
10155 rm -f .libs 2>/dev/null
10156 mkdir .libs 2>/dev/null
10157 if test -d .libs; then
10160 # MS-DOS does not allow filenames that begin with a dot.
10163 rmdir .libs 2>/dev/null
10165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
10166 $as_echo "$lt_cv_objdir" >&6; }
10167 objdir=$lt_cv_objdir
10173 cat >>confdefs.h <<_ACEOF
10174 #define LT_OBJDIR "$lt_cv_objdir/"
10182 # AIX sometimes has problems with the GCC collect2 program. For some
10183 # reason, if we set the COLLECT_NAMES environment variable, the problems
10184 # vanish in a puff of smoke.
10185 if test set != "${COLLECT_NAMES+set}"; then
10187 export COLLECT_NAMES
10192 # Global variables:
10194 can_build_shared=yes
10196 # All known linkers require a '.a' archive for static linking (except MSVC,
10197 # which needs '.lib').
10200 with_gnu_ld=$lt_cv_prog_gnu_ld
10205 # Set sane defaults for various variables
10206 test -z "$CC" && CC=cc
10207 test -z "$LTCC" && LTCC=$CC
10208 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
10209 test -z "$LD" && LD=ld
10210 test -z "$ac_objext" && ac_objext=o
10212 func_cc_basename $compiler
10213 cc_basename=$func_cc_basename_result
10216 # Only perform the check for file, if the check method requires it
10217 test -z "$MAGIC_CMD" && MAGIC_CMD=file
10218 case $deplibs_check_method in
10220 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
10221 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
10222 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
10223 if ${lt_cv_path_MAGIC_CMD+:} false; then :
10224 $as_echo_n "(cached) " >&6
10228 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
10231 lt_save_MAGIC_CMD=$MAGIC_CMD
10232 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
10233 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
10234 for ac_dir in $ac_dummy; do
10236 test -z "$ac_dir" && ac_dir=.
10237 if test -f "$ac_dir/${ac_tool_prefix}file"; then
10238 lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file"
10239 if test -n "$file_magic_test_file"; then
10240 case $deplibs_check_method in
10242 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
10243 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
10244 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
10245 $EGREP "$file_magic_regex" > /dev/null; then
10250 *** Warning: the command libtool uses to detect shared libraries,
10251 *** $file_magic_cmd, produces output that libtool cannot recognize.
10252 *** The result is that libtool may fail to recognize shared libraries
10253 *** as such. This will affect the creation of libtool libraries that
10254 *** depend on shared libraries, but programs linked with such libtool
10255 *** libraries will work regardless of this problem. Nevertheless, you
10256 *** may want to report the problem to your system manager and/or to
10257 *** bug-libtool@gnu.org
10267 MAGIC_CMD=$lt_save_MAGIC_CMD
10272 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
10273 if test -n "$MAGIC_CMD"; then
10274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
10275 $as_echo "$MAGIC_CMD" >&6; }
10277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10278 $as_echo "no" >&6; }
10285 if test -z "$lt_cv_path_MAGIC_CMD"; then
10286 if test -n "$ac_tool_prefix"; then
10287 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
10288 $as_echo_n "checking for file... " >&6; }
10289 if ${lt_cv_path_MAGIC_CMD+:} false; then :
10290 $as_echo_n "(cached) " >&6
10294 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
10297 lt_save_MAGIC_CMD=$MAGIC_CMD
10298 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
10299 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
10300 for ac_dir in $ac_dummy; do
10302 test -z "$ac_dir" && ac_dir=.
10303 if test -f "$ac_dir/file"; then
10304 lt_cv_path_MAGIC_CMD=$ac_dir/"file"
10305 if test -n "$file_magic_test_file"; then
10306 case $deplibs_check_method in
10308 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
10309 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
10310 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
10311 $EGREP "$file_magic_regex" > /dev/null; then
10316 *** Warning: the command libtool uses to detect shared libraries,
10317 *** $file_magic_cmd, produces output that libtool cannot recognize.
10318 *** The result is that libtool may fail to recognize shared libraries
10319 *** as such. This will affect the creation of libtool libraries that
10320 *** depend on shared libraries, but programs linked with such libtool
10321 *** libraries will work regardless of this problem. Nevertheless, you
10322 *** may want to report the problem to your system manager and/or to
10323 *** bug-libtool@gnu.org
10333 MAGIC_CMD=$lt_save_MAGIC_CMD
10338 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
10339 if test -n "$MAGIC_CMD"; then
10340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
10341 $as_echo "$MAGIC_CMD" >&6; }
10343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10344 $as_echo "no" >&6; }
10357 # Use C for the default configuration in the libtool script
10361 ac_cpp='$CPP $CPPFLAGS'
10362 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10363 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10364 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10367 # Source file extension for C test sources.
10370 # Object file extension for compiled C test sources.
10374 # Code to be used in simple compile tests
10375 lt_simple_compile_test_code="int some_variable = 0;"
10377 # Code to be used in simple link tests
10378 lt_simple_link_test_code='int main(){return(0);}'
10386 # If no C compiler was specified, use CC.
10389 # If no C compiler flags were specified, use CFLAGS.
10390 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
10392 # Allow CC to be a program name with arguments.
10395 # Save the default compiler, since it gets overwritten when the other
10396 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
10397 compiler_DEFAULT=$CC
10399 # save warnings/boilerplate of simple test code
10400 ac_outfile=conftest.$ac_objext
10401 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
10402 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10403 _lt_compiler_boilerplate=`cat conftest.err`
10406 ac_outfile=conftest.$ac_objext
10407 echo "$lt_simple_link_test_code" >conftest.$ac_ext
10408 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10409 _lt_linker_boilerplate=`cat conftest.err`
10414 ## There is no encapsulation within the following macros, do not change
10415 ## the running order or otherwise move them around unless you know exactly
10416 ## what you are doing...
10417 if test -n "$compiler"; then
10419 lt_prog_compiler_no_builtin_flag=
10421 if test yes = "$GCC"; then
10422 case $cc_basename in
10424 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
10426 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
10429 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
10430 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
10431 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
10432 $as_echo_n "(cached) " >&6
10434 lt_cv_prog_compiler_rtti_exceptions=no
10435 ac_outfile=conftest.$ac_objext
10436 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10437 lt_compiler_flag="-fno-rtti -fno-exceptions" ## exclude from sc_useless_quotes_in_assignment
10438 # Insert the option either (1) after the last *FLAGS variable, or
10439 # (2) before a word containing "conftest.", or (3) at the end.
10440 # Note that $ac_compile itself does not contain backslashes and begins
10441 # with a dollar sign (not a hyphen), so the echo should work correctly.
10442 # The option is referenced via a variable to avoid confusing sed.
10443 lt_compile=`echo "$ac_compile" | $SED \
10444 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10445 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10446 -e 's:$: $lt_compiler_flag:'`
10447 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10448 (eval "$lt_compile" 2>conftest.err)
10450 cat conftest.err >&5
10451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10452 if (exit $ac_status) && test -s "$ac_outfile"; then
10453 # The compiler can only warn and ignore the option if not recognized
10454 # So say no if there are warnings other than the usual output.
10455 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
10456 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10457 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
10458 lt_cv_prog_compiler_rtti_exceptions=yes
10464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
10465 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
10467 if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then
10468 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
10480 lt_prog_compiler_wl=
10481 lt_prog_compiler_pic=
10482 lt_prog_compiler_static=
10485 if test yes = "$GCC"; then
10486 lt_prog_compiler_wl='-Wl,'
10487 lt_prog_compiler_static='-static'
10491 # All AIX code is PIC.
10492 if test ia64 = "$host_cpu"; then
10493 # AIX 5 now supports IA64 processor
10494 lt_prog_compiler_static='-Bstatic'
10496 lt_prog_compiler_pic='-fPIC'
10502 # see comment about AmigaOS4 .so support
10503 lt_prog_compiler_pic='-fPIC'
10506 # FIXME: we need at least 68020 code to build shared libraries, but
10507 # adding the '-m68020' flag to GCC prevents building anything better,
10509 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
10514 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
10515 # PIC is the default for these OSes.
10518 mingw* | cygwin* | pw32* | os2* | cegcc*)
10519 # This hack is so that the source file can tell whether it is being
10520 # built for inclusion in a dll (and should export symbols for example).
10521 # Although the cygwin gcc ignores -fPIC, still need this for old-style
10522 # (--disable-auto-import) libraries
10523 lt_prog_compiler_pic='-DDLL_EXPORT'
10526 lt_prog_compiler_static='$wl-static'
10531 darwin* | rhapsody*)
10532 # PIC is the default on this platform
10533 # Common symbols not allowed in MH_DYLIB files
10534 lt_prog_compiler_pic='-fno-common'
10538 # PIC is the default for Haiku.
10539 # The "-static" flag exists, but is broken.
10540 lt_prog_compiler_static=
10544 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
10545 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
10546 # sets the default TLS model and affects inlining.
10552 lt_prog_compiler_pic='-fPIC'
10558 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
10559 # Instead, we relocate shared libraries at runtime.
10563 # Just because we use GCC doesn't mean we suddenly get shared libraries
10564 # on systems that don't support them.
10565 lt_prog_compiler_can_build_shared=no
10570 # QNX uses GNU C++, but need to define -shared option too, otherwise
10571 # it will coredump.
10572 lt_prog_compiler_pic='-fPIC -shared'
10576 if test -d /usr/nec; then
10577 lt_prog_compiler_pic=-Kconform_pic
10582 lt_prog_compiler_pic='-fPIC'
10586 case $cc_basename in
10587 nvcc*) # Cuda Compiler Driver 2.2
10588 lt_prog_compiler_wl='-Xlinker '
10589 if test -n "$lt_prog_compiler_pic"; then
10590 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
10595 # PORTME Check for flag to pass linker flags through the system compiler.
10598 lt_prog_compiler_wl='-Wl,'
10599 if test ia64 = "$host_cpu"; then
10600 # AIX 5 now supports IA64 processor
10601 lt_prog_compiler_static='-Bstatic'
10603 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
10607 darwin* | rhapsody*)
10608 # PIC is the default on this platform
10609 # Common symbols not allowed in MH_DYLIB files
10610 lt_prog_compiler_pic='-fno-common'
10611 case $cc_basename in
10613 # NAG Fortran compiler
10614 lt_prog_compiler_wl='-Wl,-Wl,,'
10615 lt_prog_compiler_pic='-PIC'
10616 lt_prog_compiler_static='-Bstatic'
10621 mingw* | cygwin* | pw32* | os2* | cegcc*)
10622 # This hack is so that the source file can tell whether it is being
10623 # built for inclusion in a dll (and should export symbols for example).
10624 lt_prog_compiler_pic='-DDLL_EXPORT'
10627 lt_prog_compiler_static='$wl-static'
10632 hpux9* | hpux10* | hpux11*)
10633 lt_prog_compiler_wl='-Wl,'
10634 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
10635 # not for PA HP-UX.
10641 lt_prog_compiler_pic='+Z'
10644 # Is there a better lt_prog_compiler_static that works with the bundled CC?
10645 lt_prog_compiler_static='$wl-a ${wl}archive'
10648 irix5* | irix6* | nonstopux*)
10649 lt_prog_compiler_wl='-Wl,'
10650 # PIC (with -KPIC) is the default.
10651 lt_prog_compiler_static='-non_shared'
10654 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
10655 case $cc_basename in
10656 # old Intel for x86_64, which still supported -KPIC.
10658 lt_prog_compiler_wl='-Wl,'
10659 lt_prog_compiler_pic='-KPIC'
10660 lt_prog_compiler_static='-static'
10662 # icc used to be incompatible with GCC.
10663 # ICC 10 doesn't accept -KPIC any more.
10665 lt_prog_compiler_wl='-Wl,'
10666 lt_prog_compiler_pic='-fPIC'
10667 lt_prog_compiler_static='-static'
10669 # Lahey Fortran 8.1.
10671 lt_prog_compiler_wl='-Wl,'
10672 lt_prog_compiler_pic='--shared'
10673 lt_prog_compiler_static='--static'
10676 # NAG Fortran compiler
10677 lt_prog_compiler_wl='-Wl,-Wl,,'
10678 lt_prog_compiler_pic='-PIC'
10679 lt_prog_compiler_static='-Bstatic'
10682 # Fabrice Bellard et al's Tiny C Compiler
10683 lt_prog_compiler_wl='-Wl,'
10684 lt_prog_compiler_pic='-fPIC'
10685 lt_prog_compiler_static='-static'
10687 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
10688 # Portland Group compilers (*not* the Pentium gcc compiler,
10689 # which looks to be a dead project)
10690 lt_prog_compiler_wl='-Wl,'
10691 lt_prog_compiler_pic='-fpic'
10692 lt_prog_compiler_static='-Bstatic'
10695 lt_prog_compiler_wl='-Wl,'
10696 # All Alpha code is PIC.
10697 lt_prog_compiler_static='-non_shared'
10699 xl* | bgxl* | bgf* | mpixl*)
10700 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
10701 lt_prog_compiler_wl='-Wl,'
10702 lt_prog_compiler_pic='-qpic'
10703 lt_prog_compiler_static='-qstaticlink'
10706 case `$CC -V 2>&1 | sed 5q` in
10707 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
10708 # Sun Fortran 8.3 passes all unrecognized flags to the linker
10709 lt_prog_compiler_pic='-KPIC'
10710 lt_prog_compiler_static='-Bstatic'
10711 lt_prog_compiler_wl=''
10713 *Sun\ F* | *Sun*Fortran*)
10714 lt_prog_compiler_pic='-KPIC'
10715 lt_prog_compiler_static='-Bstatic'
10716 lt_prog_compiler_wl='-Qoption ld '
10720 lt_prog_compiler_pic='-KPIC'
10721 lt_prog_compiler_static='-Bstatic'
10722 lt_prog_compiler_wl='-Wl,'
10724 *Intel*\ [CF]*Compiler*)
10725 lt_prog_compiler_wl='-Wl,'
10726 lt_prog_compiler_pic='-fPIC'
10727 lt_prog_compiler_static='-static'
10730 lt_prog_compiler_wl='-Wl,'
10731 lt_prog_compiler_pic='-fpic'
10732 lt_prog_compiler_static='-Bstatic'
10740 lt_prog_compiler_pic='-KPIC'
10741 lt_prog_compiler_static='-Bstatic'
10745 # QNX uses GNU C++, but need to define -shared option too, otherwise
10746 # it will coredump.
10747 lt_prog_compiler_pic='-fPIC -shared'
10750 osf3* | osf4* | osf5*)
10751 lt_prog_compiler_wl='-Wl,'
10752 # All OSF/1 code is PIC.
10753 lt_prog_compiler_static='-non_shared'
10757 lt_prog_compiler_static='-non_shared'
10761 lt_prog_compiler_pic='-KPIC'
10762 lt_prog_compiler_static='-Bstatic'
10763 case $cc_basename in
10764 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
10765 lt_prog_compiler_wl='-Qoption ld ';;
10767 lt_prog_compiler_wl='-Wl,';;
10772 lt_prog_compiler_wl='-Qoption ld '
10773 lt_prog_compiler_pic='-PIC'
10774 lt_prog_compiler_static='-Bstatic'
10777 sysv4 | sysv4.2uw2* | sysv4.3*)
10778 lt_prog_compiler_wl='-Wl,'
10779 lt_prog_compiler_pic='-KPIC'
10780 lt_prog_compiler_static='-Bstatic'
10784 if test -d /usr/nec; then
10785 lt_prog_compiler_pic='-Kconform_pic'
10786 lt_prog_compiler_static='-Bstatic'
10790 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
10791 lt_prog_compiler_wl='-Wl,'
10792 lt_prog_compiler_pic='-KPIC'
10793 lt_prog_compiler_static='-Bstatic'
10797 lt_prog_compiler_wl='-Wl,'
10798 lt_prog_compiler_can_build_shared=no
10802 lt_prog_compiler_pic='-pic'
10803 lt_prog_compiler_static='-Bstatic'
10807 lt_prog_compiler_can_build_shared=no
10813 # For platforms that do not support PIC, -DPIC is meaningless:
10815 lt_prog_compiler_pic=
10818 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
10822 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
10823 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
10824 if ${lt_cv_prog_compiler_pic+:} false; then :
10825 $as_echo_n "(cached) " >&6
10827 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
10829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
10830 $as_echo "$lt_cv_prog_compiler_pic" >&6; }
10831 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
10834 # Check to make sure the PIC flag actually works.
10836 if test -n "$lt_prog_compiler_pic"; then
10837 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
10838 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
10839 if ${lt_cv_prog_compiler_pic_works+:} false; then :
10840 $as_echo_n "(cached) " >&6
10842 lt_cv_prog_compiler_pic_works=no
10843 ac_outfile=conftest.$ac_objext
10844 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10845 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment
10846 # Insert the option either (1) after the last *FLAGS variable, or
10847 # (2) before a word containing "conftest.", or (3) at the end.
10848 # Note that $ac_compile itself does not contain backslashes and begins
10849 # with a dollar sign (not a hyphen), so the echo should work correctly.
10850 # The option is referenced via a variable to avoid confusing sed.
10851 lt_compile=`echo "$ac_compile" | $SED \
10852 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10853 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10854 -e 's:$: $lt_compiler_flag:'`
10855 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10856 (eval "$lt_compile" 2>conftest.err)
10858 cat conftest.err >&5
10859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10860 if (exit $ac_status) && test -s "$ac_outfile"; then
10861 # The compiler can only warn and ignore the option if not recognized
10862 # So say no if there are warnings other than the usual output.
10863 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
10864 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10865 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
10866 lt_cv_prog_compiler_pic_works=yes
10872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
10873 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
10875 if test yes = "$lt_cv_prog_compiler_pic_works"; then
10876 case $lt_prog_compiler_pic in
10878 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
10881 lt_prog_compiler_pic=
10882 lt_prog_compiler_can_build_shared=no
10898 # Check to make sure the static flag actually works.
10900 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
10901 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
10902 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
10903 if ${lt_cv_prog_compiler_static_works+:} false; then :
10904 $as_echo_n "(cached) " >&6
10906 lt_cv_prog_compiler_static_works=no
10907 save_LDFLAGS=$LDFLAGS
10908 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
10909 echo "$lt_simple_link_test_code" > conftest.$ac_ext
10910 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10911 # The linker can only warn and ignore the option if not recognized
10912 # So say no if there are warnings
10913 if test -s conftest.err; then
10914 # Append any errors to the config.log.
10915 cat conftest.err 1>&5
10916 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
10917 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10918 if diff conftest.exp conftest.er2 >/dev/null; then
10919 lt_cv_prog_compiler_static_works=yes
10922 lt_cv_prog_compiler_static_works=yes
10926 LDFLAGS=$save_LDFLAGS
10929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
10930 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
10932 if test yes = "$lt_cv_prog_compiler_static_works"; then
10935 lt_prog_compiler_static=
10944 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
10945 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
10946 if ${lt_cv_prog_compiler_c_o+:} false; then :
10947 $as_echo_n "(cached) " >&6
10949 lt_cv_prog_compiler_c_o=no
10950 $RM -r conftest 2>/dev/null
10954 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10956 lt_compiler_flag="-o out/conftest2.$ac_objext"
10957 # Insert the option either (1) after the last *FLAGS variable, or
10958 # (2) before a word containing "conftest.", or (3) at the end.
10959 # Note that $ac_compile itself does not contain backslashes and begins
10960 # with a dollar sign (not a hyphen), so the echo should work correctly.
10961 lt_compile=`echo "$ac_compile" | $SED \
10962 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10963 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10964 -e 's:$: $lt_compiler_flag:'`
10965 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10966 (eval "$lt_compile" 2>out/conftest.err)
10968 cat out/conftest.err >&5
10969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10970 if (exit $ac_status) && test -s out/conftest2.$ac_objext
10972 # The compiler can only warn and ignore the option if not recognized
10973 # So say no if there are warnings
10974 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
10975 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
10976 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
10977 lt_cv_prog_compiler_c_o=yes
10982 # SGI C++ compiler will create directory out/ii_files/ for
10983 # template instantiation
10984 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
10985 $RM out/* && rmdir out
10991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
10992 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
10999 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
11000 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
11001 if ${lt_cv_prog_compiler_c_o+:} false; then :
11002 $as_echo_n "(cached) " >&6
11004 lt_cv_prog_compiler_c_o=no
11005 $RM -r conftest 2>/dev/null
11009 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11011 lt_compiler_flag="-o out/conftest2.$ac_objext"
11012 # Insert the option either (1) after the last *FLAGS variable, or
11013 # (2) before a word containing "conftest.", or (3) at the end.
11014 # Note that $ac_compile itself does not contain backslashes and begins
11015 # with a dollar sign (not a hyphen), so the echo should work correctly.
11016 lt_compile=`echo "$ac_compile" | $SED \
11017 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11018 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11019 -e 's:$: $lt_compiler_flag:'`
11020 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
11021 (eval "$lt_compile" 2>out/conftest.err)
11023 cat out/conftest.err >&5
11024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11025 if (exit $ac_status) && test -s out/conftest2.$ac_objext
11027 # The compiler can only warn and ignore the option if not recognized
11028 # So say no if there are warnings
11029 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
11030 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
11031 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
11032 lt_cv_prog_compiler_c_o=yes
11037 # SGI C++ compiler will create directory out/ii_files/ for
11038 # template instantiation
11039 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
11040 $RM out/* && rmdir out
11046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
11047 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
11052 hard_links=nottested
11053 if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then
11054 # do not overwrite the value of need_locks provided by the user
11055 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
11056 $as_echo_n "checking if we can lock with hard links... " >&6; }
11059 ln conftest.a conftest.b 2>/dev/null && hard_links=no
11061 ln conftest.a conftest.b 2>&5 || hard_links=no
11062 ln conftest.a conftest.b 2>/dev/null && hard_links=no
11063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
11064 $as_echo "$hard_links" >&6; }
11065 if test no = "$hard_links"; then
11066 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
11067 $as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
11079 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
11080 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
11083 allow_undefined_flag=
11084 always_export_symbols=no
11086 archive_expsym_cmds=
11087 compiler_needs_object=no
11088 enable_shared_with_static_runtimes=no
11089 export_dynamic_flag_spec=
11090 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
11091 hardcode_automatic=no
11093 hardcode_direct_absolute=no
11094 hardcode_libdir_flag_spec=
11095 hardcode_libdir_separator=
11096 hardcode_minus_L=no
11097 hardcode_shlibpath_var=unsupported
11099 link_all_deplibs=unknown
11101 module_expsym_cmds=
11102 old_archive_from_new_cmds=
11103 old_archive_from_expsyms_cmds=
11104 thread_safe_flag_spec=
11105 whole_archive_flag_spec=
11106 # include_expsyms should be a list of space-separated symbols to be *always*
11107 # included in the symbol list
11109 # exclude_expsyms can be an extended regexp of symbols to exclude
11110 # it will be wrapped by ' (' and ')$', so one must not match beginning or
11111 # end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
11112 # as well as any symbol that contains 'd'.
11113 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
11114 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
11115 # platforms (ab)use it in PIC code, but their linkers get confused if
11116 # the symbol is explicitly referenced. Since portable code cannot
11117 # rely on this symbol name, it's probably fine to never include it in
11118 # preloaded symbol tables.
11119 # Exclude shared library initialization/finalization symbols.
11120 extract_expsyms_cmds=
11123 cygwin* | mingw* | pw32* | cegcc*)
11124 # FIXME: the MSVC++ port hasn't been tested in a loooong time
11125 # When not using gcc, we currently assume that we are using
11126 # Microsoft Visual C++.
11127 if test yes != "$GCC"; then
11132 # we just hope/assume this is gcc and not c89 (= MSVC++)
11135 openbsd* | bitrig*)
11142 # On some targets, GNU ld is compatible enough with the native linker
11143 # that we're better off using the native interface for both.
11144 lt_use_gnu_ld_interface=no
11145 if test yes = "$with_gnu_ld"; then
11148 # The AIX port of GNU ld has always aspired to compatibility
11149 # with the native linker. However, as the warning in the GNU ld
11150 # block says, versions before 2.19.5* couldn't really create working
11151 # shared libraries, regardless of the interface used.
11152 case `$LD -v 2>&1` in
11153 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
11154 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
11155 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
11157 lt_use_gnu_ld_interface=yes
11162 lt_use_gnu_ld_interface=yes
11167 if test yes = "$lt_use_gnu_ld_interface"; then
11168 # If archive_cmds runs LD, not CC, wlarc should be empty
11171 # Set some defaults for GNU ld with shared library support. These
11172 # are reset later if shared libraries are not supported. Putting them
11173 # here allows them to be overridden if necessary.
11174 runpath_var=LD_RUN_PATH
11175 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11176 export_dynamic_flag_spec='$wl--export-dynamic'
11177 # ancient GNU ld didn't support --whole-archive et. al.
11178 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
11179 whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
11181 whole_archive_flag_spec=
11183 supports_anon_versioning=no
11184 case `$LD -v | $SED -e 's/(^)\+)\s\+//' 2>&1` in
11185 *GNU\ gold*) supports_anon_versioning=yes ;;
11186 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
11187 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
11188 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
11189 *\ 2.11.*) ;; # other 2.11 versions
11190 *) supports_anon_versioning=yes ;;
11193 # See if GNU ld supports shared libraries.
11196 # On AIX/PPC, the GNU linker is very broken
11197 if test ia64 != "$host_cpu"; then
11201 *** Warning: the GNU linker, at least up to release 2.19, is reported
11202 *** to be unable to reliably create shared libraries on AIX.
11203 *** Therefore, libtool is disabling shared libraries support. If you
11204 *** really care for shared libraries, you may want to install binutils
11205 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
11206 *** You will then need to restart the configuration process.
11215 # see comment about AmigaOS4 .so support
11216 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
11217 archive_expsym_cmds=''
11220 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)'
11221 hardcode_libdir_flag_spec='-L$libdir'
11222 hardcode_minus_L=yes
11228 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
11229 allow_undefined_flag=unsupported
11230 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
11231 # support --undefined. This deserves some investigation. FIXME
11232 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
11238 cygwin* | mingw* | pw32* | cegcc*)
11239 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
11240 # as there is no search path for DLLs.
11241 hardcode_libdir_flag_spec='-L$libdir'
11242 export_dynamic_flag_spec='$wl--export-all-symbols'
11243 allow_undefined_flag=unsupported
11244 always_export_symbols=no
11245 enable_shared_with_static_runtimes=yes
11246 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'
11247 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
11249 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
11250 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
11251 # If the export-symbols file already is a .def file, use it as
11252 # is; otherwise, prepend EXPORTS...
11253 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
11254 cp $export_symbols $output_objdir/$soname.def;
11256 echo EXPORTS > $output_objdir/$soname.def;
11257 cat $export_symbols >> $output_objdir/$soname.def;
11259 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
11266 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
11267 link_all_deplibs=yes
11271 hardcode_libdir_flag_spec='-L$libdir'
11272 hardcode_minus_L=yes
11273 allow_undefined_flag=unsupported
11275 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
11276 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
11277 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
11278 $ECHO EXPORTS >> $output_objdir/$libname.def~
11279 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
11280 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
11281 emximp -o $lib $output_objdir/$libname.def'
11282 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
11283 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
11284 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
11285 $ECHO EXPORTS >> $output_objdir/$libname.def~
11286 prefix_cmds="$SED"~
11287 if test EXPORTS = "`$SED 1q $export_symbols`"; then
11288 prefix_cmds="$prefix_cmds -e 1d";
11290 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
11291 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
11292 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
11293 emximp -o $lib $output_objdir/$libname.def'
11294 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
11295 enable_shared_with_static_runtimes=yes
11300 hardcode_shlibpath_var=no
11301 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
11302 export_dynamic_flag_spec='$wl-E'
11303 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
11304 # Instead, shared libraries are loaded at an image base (0x10000000 by
11305 # default) and relocated if they conflict, which is a slow very memory
11306 # consuming and fragmenting process. To avoid this, we pick a random,
11307 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
11308 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
11309 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
11310 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'
11313 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
11315 if test linux-dietlibc = "$host_os"; then
11316 case $cc_basename in
11317 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
11320 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
11321 && test no = "$tmp_diet"
11323 tmp_addflag=' $pic_flag'
11324 tmp_sharedflag='-shared'
11325 case $cc_basename,$host_cpu in
11326 pgcc*) # Portland Group C compiler
11327 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'
11328 tmp_addflag=' $pic_flag'
11330 pgf77* | pgf90* | pgf95* | pgfortran*)
11331 # Portland Group f77 and f90 compilers
11332 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'
11333 tmp_addflag=' $pic_flag -Mnomain' ;;
11334 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
11335 tmp_addflag=' -i_dynamic' ;;
11336 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
11337 tmp_addflag=' -i_dynamic -nofor_main' ;;
11338 ifc* | ifort*) # Intel Fortran compiler
11339 tmp_addflag=' -nofor_main' ;;
11340 lf95*) # Lahey Fortran 8.1
11341 whole_archive_flag_spec=
11342 tmp_sharedflag='--shared' ;;
11343 nagfor*) # NAGFOR 5.3
11344 tmp_sharedflag='-Wl,-shared' ;;
11345 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
11346 tmp_sharedflag='-qmkshrobj'
11348 nvcc*) # Cuda Compiler Driver 2.2
11349 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'
11350 compiler_needs_object=yes
11353 case `$CC -V 2>&1 | sed 5q` in
11354 *Sun\ C*) # Sun C 5.9
11355 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'
11356 compiler_needs_object=yes
11357 tmp_sharedflag='-G' ;;
11358 *Sun\ F*) # Sun Fortran 8.3
11359 tmp_sharedflag='-G' ;;
11361 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
11363 if test yes = "$supports_anon_versioning"; then
11364 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
11365 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
11366 echo "local: *; };" >> $output_objdir/$libname.ver~
11367 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
11370 case $cc_basename in
11372 export_dynamic_flag_spec='-rdynamic'
11374 xlf* | bgf* | bgxlf* | mpixlf*)
11375 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
11376 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
11377 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11378 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
11379 if test yes = "$supports_anon_versioning"; then
11380 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
11381 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
11382 echo "local: *; };" >> $output_objdir/$libname.ver~
11383 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
11393 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11394 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
11397 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
11398 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
11403 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
11407 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
11408 *** create shared libraries on Solaris systems. Therefore, libtool
11409 *** is disabling shared libraries support. We urge you to upgrade GNU
11410 *** binutils to release 2.9.1 or newer. Another option is to modify
11411 *** your PATH or compiler configuration so that the native linker is
11412 *** used, and then restart.
11415 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
11416 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
11417 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
11423 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
11424 case `$LD -v 2>&1` in
11425 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
11429 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
11430 *** reliably create shared libraries on SCO systems. Therefore, libtool
11431 *** is disabling shared libraries support. We urge you to upgrade GNU
11432 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
11433 *** your PATH or compiler configuration so that the native linker is
11434 *** used, and then restart.
11439 # For security reasons, it is highly recommended that you always
11440 # use absolute paths for naming shared libraries, and exclude the
11441 # DT_RUNPATH tag from executables and libraries. But doing so
11442 # requires that you compile everything twice, which is a pain.
11443 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
11444 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11445 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
11446 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
11455 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
11457 hardcode_direct=yes
11458 hardcode_shlibpath_var=no
11462 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
11463 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
11464 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
11471 if test no = "$ld_shlibs"; then
11473 hardcode_libdir_flag_spec=
11474 export_dynamic_flag_spec=
11475 whole_archive_flag_spec=
11478 # PORTME fill in a description of your system's linker (not GNU ld)
11481 allow_undefined_flag=unsupported
11482 always_export_symbols=yes
11483 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'
11484 # Note: this linker hardcodes the directories in LIBPATH if there
11485 # are no directories specified by -L.
11486 hardcode_minus_L=yes
11487 if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
11488 # Neither direct hardcoding nor static linking is supported with a
11490 hardcode_direct=unsupported
11495 if test ia64 = "$host_cpu"; then
11496 # On IA64, the linker does run time linking by default, so we don't
11497 # have to do anything special.
11498 aix_use_runtimelinking=no
11499 exp_sym_flag='-Bexport'
11502 # If we're using GNU nm, then we don't want the "-C" option.
11503 # -C means demangle to GNU nm, but means don't demangle to AIX nm.
11504 # Without the "-l" option, or with the "-B" option, AIX nm treats
11505 # weak defined symbols like other global defined symbols, whereas
11506 # GNU nm marks them as "W".
11507 # While the 'weak' keyword is ignored in the Export File, we need
11508 # it in the Import File for the 'aix-soname' feature, so we have
11509 # to replace the "-B" option with "-P" for AIX nm.
11510 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
11511 export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { if (\$ 2 == "W") { print \$ 3 " weak" } else { print \$ 3 } } }'\'' | sort -u > $export_symbols'
11513 export_symbols_cmds='`func_echo_all $NM | $SED -e '\''s/B\([^B]*\)$/P\1/'\''` -PCpgl $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) && (substr(\$ 1,1,1) != ".")) { if ((\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) { print \$ 1 " weak" } else { print \$ 1 } } }'\'' | sort -u > $export_symbols'
11515 aix_use_runtimelinking=no
11517 # Test if we are trying to use run time linking or normal
11518 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
11519 # have runtime linking enabled, and use it for executables.
11520 # For shared libraries, we enable/disable runtime linking
11521 # depending on the kind of the shared library created -
11522 # when "with_aix_soname,aix_use_runtimelinking" is:
11523 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables
11524 # "aix,yes" lib.so shared, rtl:yes, for executables
11525 # lib.a static archive
11526 # "both,no" lib.so.V(shr.o) shared, rtl:yes
11527 # lib.a(lib.so.V) shared, rtl:no, for executables
11528 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
11529 # lib.a(lib.so.V) shared, rtl:no
11530 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables
11531 # lib.a static archive
11532 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
11533 for ld_flag in $LDFLAGS; do
11534 if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
11535 aix_use_runtimelinking=yes
11539 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
11540 # With aix-soname=svr4, we create the lib.so.V shared archives only,
11541 # so we don't have lib.a shared libs to link our executables.
11542 # We have to force runtime linking in this case.
11543 aix_use_runtimelinking=yes
11544 LDFLAGS="$LDFLAGS -Wl,-brtl"
11549 exp_sym_flag='-bexport'
11550 no_entry_flag='-bnoentry'
11553 # When large executables or shared objects are built, AIX ld can
11554 # have problems creating the table of contents. If linking a library
11555 # or program results in "error TOC overflow" add -mminimal-toc to
11556 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
11557 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
11560 hardcode_direct=yes
11561 hardcode_direct_absolute=yes
11562 hardcode_libdir_separator=':'
11563 link_all_deplibs=yes
11564 file_list_spec='$wl-f,'
11565 case $with_aix_soname,$aix_use_runtimelinking in
11566 aix,*) ;; # traditional, no import file
11567 svr4,* | *,yes) # use import file
11568 # The Import File defines what to hardcode.
11570 hardcode_direct_absolute=no
11574 if test yes = "$GCC"; then
11575 case $host_os in aix4.[012]|aix4.[012].*)
11576 # We only want to do this on AIX 4.2 and lower, the check
11577 # below for broken collect2 doesn't work under 4.3+
11578 collect2name=`$CC -print-prog-name=collect2`
11579 if test -f "$collect2name" &&
11580 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
11582 # We have reworked collect2
11585 # We have old collect2
11586 hardcode_direct=unsupported
11587 # It fails to find uninstalled libraries when the uninstalled
11588 # path is not listed in the libpath. Setting hardcode_minus_L
11589 # to unsupported forces relinking
11590 hardcode_minus_L=yes
11591 hardcode_libdir_flag_spec='-L$libdir'
11592 hardcode_libdir_separator=
11596 shared_flag='-shared'
11597 if test yes = "$aix_use_runtimelinking"; then
11598 shared_flag="$shared_flag "'$wl-G'
11600 # Need to ensure runtime linking is disabled for the traditional
11601 # shared library, or the linker may eventually find shared libraries
11602 # /with/ Import File - we do not want to mix them.
11603 shared_flag_aix='-shared'
11604 shared_flag_svr4='-shared $wl-G'
11607 if test ia64 = "$host_cpu"; then
11608 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
11609 # chokes on -Wl,-G. The following line is correct:
11612 if test yes = "$aix_use_runtimelinking"; then
11613 shared_flag='$wl-G'
11615 shared_flag='$wl-bM:SRE'
11617 shared_flag_aix='$wl-bM:SRE'
11618 shared_flag_svr4='$wl-G'
11622 export_dynamic_flag_spec='$wl-bexpall'
11623 # It seems that -bexpall does not export symbols beginning with
11624 # underscore (_), so it is better to generate a list of symbols to export.
11625 always_export_symbols=yes
11626 if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
11627 # Warning - without using the other runtime loading flags (-brtl),
11628 # -berok will link without error, but may produce a broken library.
11629 allow_undefined_flag='-berok'
11630 # Determine the default libpath from the value encoded in an
11631 # empty executable.
11632 if test set = "${lt_cv_aix_libpath+set}"; then
11633 aix_libpath=$lt_cv_aix_libpath
11635 if ${lt_cv_aix_libpath_+:} false; then :
11636 $as_echo_n "(cached) " >&6
11638 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11639 /* end confdefs.h. */
11649 if ac_fn_c_try_link "$LINENO"; then :
11651 lt_aix_libpath_sed='
11652 /Import File Strings/,/^$/ {
11654 s/^0 *\([^ ]*\) *$/\1/
11658 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11659 # Check for a 64-bit object if we didn't find anything.
11660 if test -z "$lt_cv_aix_libpath_"; then
11661 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11664 rm -f core conftest.err conftest.$ac_objext \
11665 conftest$ac_exeext conftest.$ac_ext
11666 if test -z "$lt_cv_aix_libpath_"; then
11667 lt_cv_aix_libpath_=/usr/lib:/lib
11672 aix_libpath=$lt_cv_aix_libpath_
11675 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
11676 archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs $wl'$no_entry_flag' $compiler_flags `if test -n "$allow_undefined_flag"; then func_echo_all "$wl$allow_undefined_flag"; else :; fi` $wl'$exp_sym_flag:\$export_symbols' '$shared_flag
11678 if test ia64 = "$host_cpu"; then
11679 hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib'
11680 allow_undefined_flag="-z nodefs"
11681 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"
11683 # Determine the default libpath from the value encoded in an
11684 # empty executable.
11685 if test set = "${lt_cv_aix_libpath+set}"; then
11686 aix_libpath=$lt_cv_aix_libpath
11688 if ${lt_cv_aix_libpath_+:} false; then :
11689 $as_echo_n "(cached) " >&6
11691 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11692 /* end confdefs.h. */
11702 if ac_fn_c_try_link "$LINENO"; then :
11704 lt_aix_libpath_sed='
11705 /Import File Strings/,/^$/ {
11707 s/^0 *\([^ ]*\) *$/\1/
11711 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11712 # Check for a 64-bit object if we didn't find anything.
11713 if test -z "$lt_cv_aix_libpath_"; then
11714 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11717 rm -f core conftest.err conftest.$ac_objext \
11718 conftest$ac_exeext conftest.$ac_ext
11719 if test -z "$lt_cv_aix_libpath_"; then
11720 lt_cv_aix_libpath_=/usr/lib:/lib
11725 aix_libpath=$lt_cv_aix_libpath_
11728 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
11729 # Warning - without using the other run time loading flags,
11730 # -berok will link without error, but may produce a broken library.
11731 no_undefined_flag=' $wl-bernotok'
11732 allow_undefined_flag=' $wl-berok'
11733 if test yes = "$with_gnu_ld"; then
11734 # We only use this code for GNU lds that support --whole-archive.
11735 whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive'
11737 # Exported symbols can be pulled into shared objects from archives
11738 whole_archive_flag_spec='$convenience'
11740 archive_cmds_need_lc=yes
11741 archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
11742 # -brtl affects multiple linker settings, -berok does not and is overridden later
11743 compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
11744 if test svr4 != "$with_aix_soname"; then
11745 # This is similar to how AIX traditionally builds its shared libraries.
11746 archive_expsym_cmds="$archive_expsym_cmds"'~$CC '$shared_flag_aix' -o $output_objdir/$realname.d/$soname $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$realname.d/$soname'
11748 if test aix != "$with_aix_soname"; then
11749 archive_expsym_cmds="$archive_expsym_cmds"'~$CC '$shared_flag_svr4' -o $output_objdir/$realname.d/$shared_archive_member_spec.o $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$STRIP -e $output_objdir/$realname.d/$shared_archive_member_spec.o~( func_echo_all "#! $soname($shared_archive_member_spec.o)"; if test shr_64 = "$shared_archive_member_spec"; then func_echo_all "# 64"; else func_echo_all "# 32"; fi; cat $export_symbols ) > $output_objdir/$realname.d/$shared_archive_member_spec.imp~$AR $AR_FLAGS $output_objdir/$soname $output_objdir/$realname.d/$shared_archive_member_spec.o $output_objdir/$realname.d/$shared_archive_member_spec.imp'
11751 # used by -dlpreopen to get the symbols
11752 archive_expsym_cmds="$archive_expsym_cmds"'~$MV $output_objdir/$realname.d/$soname $output_objdir'
11754 archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d'
11762 # see comment about AmigaOS4 .so support
11763 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
11764 archive_expsym_cmds=''
11767 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)'
11768 hardcode_libdir_flag_spec='-L$libdir'
11769 hardcode_minus_L=yes
11775 export_dynamic_flag_spec=-rdynamic
11778 cygwin* | mingw* | pw32* | cegcc*)
11779 # When not using gcc, we currently assume that we are using
11780 # Microsoft Visual C++.
11781 # hardcode_libdir_flag_spec is actually meaningless, as there is
11782 # no search path for DLLs.
11783 case $cc_basename in
11786 hardcode_libdir_flag_spec=' '
11787 allow_undefined_flag=unsupported
11788 always_export_symbols=yes
11790 # Tell ltmain to make .lib files, not .a files.
11792 # Tell ltmain to make .dll files, not .so files.
11794 # FIXME: Setting linknames here is a bad hack.
11795 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
11796 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
11797 cp "$export_symbols" "$output_objdir/$soname.def";
11798 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
11800 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
11802 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
11804 # The linker will not automatically build a static lib if we build a DLL.
11805 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
11806 enable_shared_with_static_runtimes=yes
11807 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
11808 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
11810 old_postinstall_cmds='chmod 644 $oldlib'
11811 postlink_cmds='lt_outputfile="@OUTPUT@"~
11812 lt_tool_outputfile="@TOOL_OUTPUT@"~
11813 case $lt_outputfile in
11816 lt_outputfile=$lt_outputfile.exe
11817 lt_tool_outputfile=$lt_tool_outputfile.exe
11820 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
11821 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
11822 $RM "$lt_outputfile.manifest";
11826 # Assume MSVC wrapper
11827 hardcode_libdir_flag_spec=' '
11828 allow_undefined_flag=unsupported
11829 # Tell ltmain to make .lib files, not .a files.
11831 # Tell ltmain to make .dll files, not .so files.
11833 # FIXME: Setting linknames here is a bad hack.
11834 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
11835 # The linker will automatically build a .lib file if we build a DLL.
11836 old_archive_from_new_cmds='true'
11837 # FIXME: Should let the user specify the lib program.
11838 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
11839 enable_shared_with_static_runtimes=yes
11844 darwin* | rhapsody*)
11847 archive_cmds_need_lc=no
11849 hardcode_automatic=yes
11850 hardcode_shlibpath_var=unsupported
11851 if test yes = "$lt_cv_ld_force_load"; then
11852 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\"`'
11855 whole_archive_flag_spec=''
11857 link_all_deplibs=yes
11858 allow_undefined_flag=$_lt_dar_allow_undefined
11859 case $cc_basename in
11860 ifort*|nagfor*) _lt_dar_can_shared=yes ;;
11861 *) _lt_dar_can_shared=$GCC ;;
11863 if test yes = "$_lt_dar_can_shared"; then
11864 output_verbose_link_cmd=func_echo_all
11865 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
11866 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
11867 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"
11868 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"
11877 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11878 hardcode_libdir_flag_spec='-L$libdir'
11879 hardcode_shlibpath_var=no
11882 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
11883 # support. Future versions do this automatically, but an explicit c++rt0.o
11884 # does not break anything, and helps significantly (at the cost of a little
11887 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
11888 hardcode_libdir_flag_spec='-R$libdir'
11889 hardcode_direct=yes
11890 hardcode_shlibpath_var=no
11893 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
11895 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
11896 hardcode_direct=yes
11897 hardcode_minus_L=yes
11898 hardcode_shlibpath_var=no
11901 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
11902 freebsd* | dragonfly*)
11903 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11904 hardcode_libdir_flag_spec='-R$libdir'
11905 hardcode_direct=yes
11906 hardcode_shlibpath_var=no
11910 if test yes = "$GCC"; then
11911 archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag $wl+b $wl$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
11913 archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
11915 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
11916 hardcode_libdir_separator=:
11917 hardcode_direct=yes
11919 # hardcode_minus_L: Not really in the search PATH,
11920 # but as the default location of the library.
11921 hardcode_minus_L=yes
11922 export_dynamic_flag_spec='$wl-E'
11926 if test yes,no = "$GCC,$with_gnu_ld"; then
11927 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11929 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
11931 if test no = "$with_gnu_ld"; then
11932 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
11933 hardcode_libdir_separator=:
11934 hardcode_direct=yes
11935 hardcode_direct_absolute=yes
11936 export_dynamic_flag_spec='$wl-E'
11937 # hardcode_minus_L: Not really in the search PATH,
11938 # but as the default location of the library.
11939 hardcode_minus_L=yes
11944 if test yes,no = "$GCC,$with_gnu_ld"; then
11947 archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
11950 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
11953 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11959 archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
11962 archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
11966 # Older versions of the 11.00 compiler do not understand -b yet
11967 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
11968 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
11969 $as_echo_n "checking if $CC understands -b... " >&6; }
11970 if ${lt_cv_prog_compiler__b+:} false; then :
11971 $as_echo_n "(cached) " >&6
11973 lt_cv_prog_compiler__b=no
11974 save_LDFLAGS=$LDFLAGS
11975 LDFLAGS="$LDFLAGS -b"
11976 echo "$lt_simple_link_test_code" > conftest.$ac_ext
11977 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
11978 # The linker can only warn and ignore the option if not recognized
11979 # So say no if there are warnings
11980 if test -s conftest.err; then
11981 # Append any errors to the config.log.
11982 cat conftest.err 1>&5
11983 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
11984 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11985 if diff conftest.exp conftest.er2 >/dev/null; then
11986 lt_cv_prog_compiler__b=yes
11989 lt_cv_prog_compiler__b=yes
11993 LDFLAGS=$save_LDFLAGS
11996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
11997 $as_echo "$lt_cv_prog_compiler__b" >&6; }
11999 if test yes = "$lt_cv_prog_compiler__b"; then
12000 archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
12002 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
12008 if test no = "$with_gnu_ld"; then
12009 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
12010 hardcode_libdir_separator=:
12015 hardcode_shlibpath_var=no
12018 hardcode_direct=yes
12019 hardcode_direct_absolute=yes
12020 export_dynamic_flag_spec='$wl-E'
12022 # hardcode_minus_L: Not really in the search PATH,
12023 # but as the default location of the library.
12024 hardcode_minus_L=yes
12030 irix5* | irix6* | nonstopux*)
12031 if test yes = "$GCC"; then
12032 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'
12033 # Try to use the -exported_symbol ld option, if it does not
12034 # work, assume that -exports_file does not work either and
12035 # implicitly export all symbols.
12036 # This should be the same for all languages, so no per-tag cache variable.
12037 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
12038 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
12039 if ${lt_cv_irix_exported_symbol+:} false; then :
12040 $as_echo_n "(cached) " >&6
12042 save_LDFLAGS=$LDFLAGS
12043 LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
12044 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12045 /* end confdefs.h. */
12046 int foo (void) { return 0; }
12048 if ac_fn_c_try_link "$LINENO"; then :
12049 lt_cv_irix_exported_symbol=yes
12051 lt_cv_irix_exported_symbol=no
12053 rm -f core conftest.err conftest.$ac_objext \
12054 conftest$ac_exeext conftest.$ac_ext
12055 LDFLAGS=$save_LDFLAGS
12057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
12058 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
12059 if test yes = "$lt_cv_irix_exported_symbol"; then
12060 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'
12063 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'
12064 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'
12066 archive_cmds_need_lc='no'
12067 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
12068 hardcode_libdir_separator=:
12070 link_all_deplibs=yes
12074 case $cc_basename in
12076 # Fabrice Bellard et al's Tiny C Compiler
12078 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
12084 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
12085 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
12087 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
12089 hardcode_libdir_flag_spec='-R$libdir'
12090 hardcode_direct=yes
12091 hardcode_shlibpath_var=no
12095 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12096 hardcode_direct=yes
12097 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
12098 hardcode_libdir_separator=:
12099 hardcode_shlibpath_var=no
12105 openbsd* | bitrig*)
12106 if test -f /usr/libexec/ld.so; then
12107 hardcode_direct=yes
12108 hardcode_shlibpath_var=no
12109 hardcode_direct_absolute=yes
12110 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
12111 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
12112 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
12113 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
12114 export_dynamic_flag_spec='$wl-E'
12116 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
12117 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
12125 hardcode_libdir_flag_spec='-L$libdir'
12126 hardcode_minus_L=yes
12127 allow_undefined_flag=unsupported
12129 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
12130 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
12131 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
12132 $ECHO EXPORTS >> $output_objdir/$libname.def~
12133 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
12134 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
12135 emximp -o $lib $output_objdir/$libname.def'
12136 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
12137 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
12138 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
12139 $ECHO EXPORTS >> $output_objdir/$libname.def~
12140 prefix_cmds="$SED"~
12141 if test EXPORTS = "`$SED 1q $export_symbols`"; then
12142 prefix_cmds="$prefix_cmds -e 1d";
12144 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
12145 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
12146 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
12147 emximp -o $lib $output_objdir/$libname.def'
12148 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
12149 enable_shared_with_static_runtimes=yes
12153 if test yes = "$GCC"; then
12154 allow_undefined_flag=' $wl-expect_unresolved $wl\*'
12155 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'
12157 allow_undefined_flag=' -expect_unresolved \*'
12158 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'
12160 archive_cmds_need_lc='no'
12161 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
12162 hardcode_libdir_separator=:
12165 osf4* | osf5*) # as osf3* with the addition of -msym flag
12166 if test yes = "$GCC"; then
12167 allow_undefined_flag=' $wl-expect_unresolved $wl\*'
12168 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'
12169 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
12171 allow_undefined_flag=' -expect_unresolved \*'
12172 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'
12173 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~
12174 $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'
12176 # Both c and cxx compiler support -rpath directly
12177 hardcode_libdir_flag_spec='-rpath $libdir'
12179 archive_cmds_need_lc='no'
12180 hardcode_libdir_separator=:
12184 no_undefined_flag=' -z defs'
12185 if test yes = "$GCC"; then
12187 archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
12188 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
12189 $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'
12191 case `$CC -V 2>&1` in
12194 archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
12195 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
12196 $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
12200 archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
12201 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
12202 $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
12206 hardcode_libdir_flag_spec='-R$libdir'
12207 hardcode_shlibpath_var=no
12209 solaris2.[0-5] | solaris2.[0-5].*) ;;
12211 # The compiler driver will combine and reorder linker options,
12212 # but understands '-z linker_flag'. GCC discards it without '$wl',
12213 # but is careful enough not to reorder.
12214 # Supported since Solaris 2.6 (maybe 2.5.1?)
12215 if test yes = "$GCC"; then
12216 whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
12218 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
12222 link_all_deplibs=yes
12226 if test sequent = "$host_vendor"; then
12227 # Use $CC to link under sequent, because it throws in some extra .o
12228 # files that make .init and .fini sections work.
12229 archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
12231 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
12233 hardcode_libdir_flag_spec='-L$libdir'
12234 hardcode_direct=yes
12235 hardcode_minus_L=yes
12236 hardcode_shlibpath_var=no
12240 case $host_vendor in
12242 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12243 hardcode_direct=yes # is this really true???
12246 ## LD is ld it makes a PLAMLIB
12247 ## CC just makes a GrossModule.
12248 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
12249 reload_cmds='$CC -r -o $output$reload_objs'
12253 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12254 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
12257 runpath_var='LD_RUN_PATH'
12258 hardcode_shlibpath_var=no
12262 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12263 hardcode_shlibpath_var=no
12264 export_dynamic_flag_spec='-Bexport'
12268 if test -d /usr/nec; then
12269 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12270 hardcode_shlibpath_var=no
12271 runpath_var=LD_RUN_PATH
12272 hardcode_runpath_var=yes
12277 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
12278 no_undefined_flag='$wl-z,text'
12279 archive_cmds_need_lc=no
12280 hardcode_shlibpath_var=no
12281 runpath_var='LD_RUN_PATH'
12283 if test yes = "$GCC"; then
12284 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12285 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12287 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12288 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12292 sysv5* | sco3.2v5* | sco5v6*)
12293 # Note: We CANNOT use -z defs as we might desire, because we do not
12294 # link with -lc, and that would cause any symbols used from libc to
12295 # always be unresolved, which means just about no library would
12296 # ever link correctly. If we're not using GNU ld we use -z text
12297 # though, which does catch some bad symbols but isn't as heavy-handed
12299 no_undefined_flag='$wl-z,text'
12300 allow_undefined_flag='$wl-z,nodefs'
12301 archive_cmds_need_lc=no
12302 hardcode_shlibpath_var=no
12303 hardcode_libdir_flag_spec='$wl-R,$libdir'
12304 hardcode_libdir_separator=':'
12305 link_all_deplibs=yes
12306 export_dynamic_flag_spec='$wl-Bexport'
12307 runpath_var='LD_RUN_PATH'
12309 if test yes = "$GCC"; then
12310 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12311 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12313 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12314 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12319 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12320 hardcode_libdir_flag_spec='-L$libdir'
12321 hardcode_shlibpath_var=no
12329 if test sni = "$host_vendor"; then
12331 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
12332 export_dynamic_flag_spec='$wl-Blargedynsym'
12338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
12339 $as_echo "$ld_shlibs" >&6; }
12340 test no = "$ld_shlibs" && can_build_shared=no
12342 with_gnu_ld=$with_gnu_ld
12359 # Do we need to explicitly link libc?
12361 case "x$archive_cmds_need_lc" in
12363 # Assume -lc should be added
12364 archive_cmds_need_lc=yes
12366 if test yes,yes = "$GCC,$enable_shared"; then
12367 case $archive_cmds in
12369 # FIXME: we may have to deal with multi-command sequences.
12372 # Test whether the compiler implicitly links with -lc since on some
12373 # systems, -lgcc has to come before -lc. If gcc already passes -lc
12374 # to ld, don't add -lc before -lgcc.
12375 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
12376 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
12377 if ${lt_cv_archive_cmds_need_lc+:} false; then :
12378 $as_echo_n "(cached) " >&6
12381 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12383 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12384 (eval $ac_compile) 2>&5
12386 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12387 test $ac_status = 0; } 2>conftest.err; then
12390 libobjs=conftest.$ac_objext
12392 wl=$lt_prog_compiler_wl
12393 pic_flag=$lt_prog_compiler_pic
12399 lt_save_allow_undefined_flag=$allow_undefined_flag
12400 allow_undefined_flag=
12401 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
12402 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
12404 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12405 test $ac_status = 0; }
12407 lt_cv_archive_cmds_need_lc=no
12409 lt_cv_archive_cmds_need_lc=yes
12411 allow_undefined_flag=$lt_save_allow_undefined_flag
12413 cat conftest.err 1>&5
12418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
12419 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
12420 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
12578 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
12579 $as_echo_n "checking dynamic linker characteristics... " >&6; }
12581 if test yes = "$GCC"; then
12583 darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;
12584 *) lt_awk_arg='/^libraries:/' ;;
12587 mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;;
12588 *) lt_sed_strip_eq='s|=/|/|g' ;;
12590 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
12591 case $lt_search_path_spec in
12593 # if the path contains ";" then we assume it to be the separator
12594 # otherwise default to the standard path separator (i.e. ":") - it is
12595 # assumed that no part of a normal pathname contains ";" but that should
12596 # okay in the real world where ";" in dirpaths is itself problematic.
12597 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
12600 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
12603 # Ok, now we have the path, separated by spaces, we can step through it
12604 # and add multilib dir if necessary...
12605 lt_tmp_lt_search_path_spec=
12606 lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
12607 # ...but if some path component already ends with the multilib dir we assume
12608 # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
12609 case "$lt_multi_os_dir; $lt_search_path_spec " in
12610 "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
12614 for lt_sys_path in $lt_search_path_spec; do
12615 if test -d "$lt_sys_path$lt_multi_os_dir"; then
12616 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
12617 elif test -n "$lt_multi_os_dir"; then
12618 test -d "$lt_sys_path" && \
12619 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
12622 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
12623 BEGIN {RS = " "; FS = "/|\n";} {
12626 for (lt_i = NF; lt_i > 0; lt_i--) {
12627 if ($lt_i != "" && $lt_i != ".") {
12628 if ($lt_i == "..") {
12631 if (lt_count == 0) {
12632 lt_foo = "/" $lt_i lt_foo;
12639 if (lt_foo != "") { lt_freq[lt_foo]++; }
12640 if (lt_freq[lt_foo] == 1) { print lt_foo; }
12642 # AWK program above erroneously prepends '/' to C:/dos/paths
12645 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
12646 $SED 's|/\([A-Za-z]:\)|\1|g'` ;;
12648 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
12650 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
12652 library_names_spec=
12653 libname_spec='lib$name'
12657 postuninstall_cmds=
12661 shlibpath_overrides_runpath=unknown
12663 dynamic_linker="$host_os ld.so"
12664 sys_lib_dlsearch_path_spec="/lib /usr/lib"
12665 need_lib_prefix=unknown
12666 hardcode_into_libs=no
12668 # when you set need_version to no, make sure it does not cause -set_version
12669 # flags to be left without arguments
12670 need_version=unknown
12676 version_type=linux # correct to gnu/linux during the next big refactor
12677 library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
12678 shlibpath_var=LIBPATH
12680 # AIX 3 has no versioning support, so we append a major version to the name.
12681 soname_spec='$libname$release$shared_ext$major'
12685 version_type=linux # correct to gnu/linux during the next big refactor
12688 hardcode_into_libs=yes
12689 if test ia64 = "$host_cpu"; then
12690 # AIX 5 supports IA64
12691 library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
12692 shlibpath_var=LD_LIBRARY_PATH
12694 # With GCC up to 2.95.x, collect2 would create an import file
12695 # for dependence libraries. The import file would start with
12696 # the line '#! .'. This would cause the generated library to
12697 # depend on '.', always an invalid library. This was fixed in
12698 # development snapshots of GCC prior to 3.0.
12700 aix4 | aix4.[01] | aix4.[01].*)
12701 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
12703 echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
12706 can_build_shared=no
12710 # Using Import Files as archive members, it is possible to support
12711 # filename-based versioning of shared library archives on AIX. While
12712 # this would work for both with and without runtime linking, it will
12713 # prevent static linking of such archives. So we do filename-based
12714 # shared library versioning with .so extension only, which is used
12715 # when both runtime linking and shared linking is enabled.
12716 # Unfortunately, runtime linking may impact performance, so we do
12717 # not want this to be the default eventually. Also, we use the
12718 # versioned .so libs for executables only if there is the -brtl
12719 # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
12720 # To allow for filename-based versioning support, we need to create
12721 # libNAME.so.V as an archive file, containing:
12722 # *) an Import File, referring to the versioned filename of the
12723 # archive as well as the shared archive member, telling the
12724 # bitwidth (32 or 64) of that shared object, and providing the
12725 # list of exported symbols of that shared object, eventually
12726 # decorated with the 'weak' keyword
12727 # *) the shared object with the F_LOADONLY flag set, to really avoid
12728 # it being seen by the linker.
12729 # At run time we better use the real file rather than another symlink,
12730 # but for link time we create the symlink libNAME.so -> libNAME.so.V
12732 case $with_aix_soname,$aix_use_runtimelinking in
12733 # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
12734 # soname into executable. Probably we can add versioning support to
12735 # collect2, so additional links can be useful in future.
12736 aix,yes) # traditional libtool
12737 dynamic_linker='AIX unversionable lib.so'
12738 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
12739 # instead of lib<name>.a to let people know that these are not
12740 # typical AIX shared libraries.
12741 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12743 aix,no) # traditional AIX only
12744 dynamic_linker='AIX lib.a(lib.so.V)'
12745 # We preserve .a as extension for shared libraries through AIX4.2
12746 # and later when we are not doing run time linking.
12747 library_names_spec='$libname$release.a $libname.a'
12748 soname_spec='$libname$release$shared_ext$major'
12750 svr4,*) # full svr4 only
12751 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
12752 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
12753 # We do not specify a path in Import Files, so LIBPATH fires.
12754 shlibpath_overrides_runpath=yes
12756 *,yes) # both, prefer svr4
12757 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
12758 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
12759 # unpreferred sharedlib libNAME.a needs extra handling
12760 postinstall_cmds='test -n "$linkname" || linkname="$realname"~func_stripname "" ".so" "$linkname"~$install_shared_prog "$dir/$func_stripname_result.$libext" "$destdir/$func_stripname_result.$libext"~test -z "$tstripme" || test -z "$striplib" || $striplib "$destdir/$func_stripname_result.$libext"'
12761 postuninstall_cmds='for n in $library_names $old_library; do :; done~func_stripname "" ".so" "$n"~test "$func_stripname_result" = "$n" || func_append rmfiles " $odir/$func_stripname_result.$libext"'
12762 # We do not specify a path in Import Files, so LIBPATH fires.
12763 shlibpath_overrides_runpath=yes
12765 *,no) # both, prefer aix
12766 dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
12767 library_names_spec='$libname$release.a $libname.a'
12768 soname_spec='$libname$release$shared_ext$major'
12769 # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
12770 postinstall_cmds='test -z "$dlname" || $install_shared_prog $dir/$dlname $destdir/$dlname~test -z "$tstripme" || test -z "$striplib" || $striplib $destdir/$dlname~test -n "$linkname" || linkname=$realname~func_stripname "" ".a" "$linkname"~(cd "$destdir" && $LN_S -f $dlname $func_stripname_result.so)'
12771 postuninstall_cmds='test -z "$dlname" || func_append rmfiles " $odir/$dlname"~for n in $old_library $library_names; do :; done~func_stripname "" ".a" "$n"~func_append rmfiles " $odir/$func_stripname_result.so"'
12774 shlibpath_var=LIBPATH
12781 # Since July 2007 AmigaOS4 officially supports .so libraries.
12782 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
12783 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12786 library_names_spec='$libname.ixlibrary $libname.a'
12787 # Create ${libname}_ixlibrary.a entries in /sys/libs.
12788 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; $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'
12794 library_names_spec='$libname$shared_ext'
12795 dynamic_linker="$host_os ld.so"
12796 shlibpath_var=LIBRARY_PATH
12800 version_type=linux # correct to gnu/linux during the next big refactor
12802 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12803 soname_spec='$libname$release$shared_ext$major'
12804 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
12805 shlibpath_var=LD_LIBRARY_PATH
12806 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
12807 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
12808 # the default ld.so.conf also contains /usr/contrib/lib and
12809 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
12810 # libtool to hard-code these into programs
12813 cygwin* | mingw* | pw32* | cegcc*)
12814 version_type=windows
12819 case $GCC,$cc_basename in
12822 library_names_spec='$libname.dll.a'
12823 # DLL is installed to $(libdir)/../bin by postinstall_cmds
12824 postinstall_cmds='base_file=`basename \$file`~
12825 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
12826 dldir=$destdir/`dirname \$dlpath`~
12827 test -d \$dldir || mkdir -p \$dldir~
12828 $install_prog $dir/$dlname \$dldir/$dlname~
12829 chmod a+x \$dldir/$dlname~
12830 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
12831 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
12833 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
12834 dlpath=$dir/\$dldll~
12836 shlibpath_overrides_runpath=yes
12840 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
12841 soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
12843 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
12846 # MinGW DLLs use traditional 'lib' prefix
12847 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
12850 # pw32 DLLs use 'pw' prefix rather than 'lib'
12851 library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
12854 dynamic_linker='Win32 ld.exe'
12859 libname_spec='$name'
12860 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
12861 library_names_spec='$libname.dll.lib'
12865 sys_lib_search_path_spec=
12868 for lt_path in $LIB
12871 # Let DOS variable expansion print the short 8.3 style file name.
12872 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
12873 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
12876 # Convert to MSYS style.
12877 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
12880 # Convert to unix form, then to dos form, then back to unix form
12881 # but this time dos style (no spaces!) so that the unix form looks
12882 # like /cygdrive/c/PROGRA~1:/cygdr...
12883 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
12884 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
12885 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
12888 sys_lib_search_path_spec=$LIB
12889 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
12890 # It is most probably a Windows format PATH.
12891 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
12893 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
12895 # FIXME: find the short name or the path components, as spaces are
12896 # common. (e.g. "Program Files" -> "PROGRA~1")
12900 # DLL is installed to $(libdir)/../bin by postinstall_cmds
12901 postinstall_cmds='base_file=`basename \$file`~
12902 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
12903 dldir=$destdir/`dirname \$dlpath`~
12904 test -d \$dldir || mkdir -p \$dldir~
12905 $install_prog $dir/$dlname \$dldir/$dlname'
12906 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
12907 dlpath=$dir/\$dldll~
12909 shlibpath_overrides_runpath=yes
12910 dynamic_linker='Win32 link.exe'
12914 # Assume MSVC wrapper
12915 library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
12916 dynamic_linker='Win32 ld.exe'
12919 # FIXME: first we should search . and the directory the executable is in
12923 darwin* | rhapsody*)
12924 dynamic_linker="$host_os dyld"
12925 version_type=darwin
12928 library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
12929 soname_spec='$libname$release$major$shared_ext'
12930 shlibpath_overrides_runpath=yes
12931 shlibpath_var=DYLD_LIBRARY_PATH
12932 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
12934 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
12935 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
12939 version_type=linux # correct to gnu/linux during the next big refactor
12942 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12943 soname_spec='$libname$release$shared_ext$major'
12944 shlibpath_var=LD_LIBRARY_PATH
12947 freebsd* | dragonfly*)
12948 # DragonFly does not have aout. When/if they implement a new
12949 # versioning mechanism, adjust this.
12950 if test -x /usr/bin/objformat; then
12951 objformat=`/usr/bin/objformat`
12954 freebsd[23].*) objformat=aout ;;
12955 *) objformat=elf ;;
12958 version_type=freebsd-$objformat
12959 case $version_type in
12961 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12962 soname_spec='$libname$release$shared_ext$major'
12967 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
12971 shlibpath_var=LD_LIBRARY_PATH
12974 shlibpath_overrides_runpath=yes
12976 freebsd3.[01]* | freebsdelf3.[01]*)
12977 shlibpath_overrides_runpath=yes
12978 hardcode_into_libs=yes
12980 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
12981 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
12982 shlibpath_overrides_runpath=no
12983 hardcode_into_libs=yes
12985 *) # from 4.6 on, and DragonFly
12986 shlibpath_overrides_runpath=yes
12987 hardcode_into_libs=yes
12993 version_type=linux # correct to gnu/linux during the next big refactor
12996 dynamic_linker="$host_os runtime_loader"
12997 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12998 soname_spec='$libname$release$shared_ext$major'
12999 shlibpath_var=LIBRARY_PATH
13000 shlibpath_overrides_runpath=no
13001 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
13002 hardcode_into_libs=yes
13005 hpux9* | hpux10* | hpux11*)
13006 # Give a soname corresponding to the major version so that dld.sl refuses to
13007 # link against other versions.
13014 hardcode_into_libs=yes
13015 dynamic_linker="$host_os dld.so"
13016 shlibpath_var=LD_LIBRARY_PATH
13017 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13018 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13019 soname_spec='$libname$release$shared_ext$major'
13020 if test 32 = "$HPUX_IA64_MODE"; then
13021 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
13022 sys_lib_dlsearch_path_spec=/usr/lib/hpux32
13024 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
13025 sys_lib_dlsearch_path_spec=/usr/lib/hpux64
13030 hardcode_into_libs=yes
13031 dynamic_linker="$host_os dld.sl"
13032 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
13033 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13034 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13035 soname_spec='$libname$release$shared_ext$major'
13036 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
13037 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13041 dynamic_linker="$host_os dld.sl"
13042 shlibpath_var=SHLIB_PATH
13043 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
13044 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13045 soname_spec='$libname$release$shared_ext$major'
13048 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
13049 postinstall_cmds='chmod 555 $lib'
13050 # or fails outright, so override atomically:
13051 install_override_mode=555
13055 version_type=linux # correct to gnu/linux during the next big refactor
13058 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13059 soname_spec='$libname$release$shared_ext$major'
13060 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
13061 shlibpath_var=LD_LIBRARY_PATH
13062 shlibpath_overrides_runpath=no
13063 hardcode_into_libs=yes
13066 irix5* | irix6* | nonstopux*)
13068 nonstopux*) version_type=nonstopux ;;
13070 if test yes = "$lt_cv_prog_gnu_ld"; then
13071 version_type=linux # correct to gnu/linux during the next big refactor
13078 soname_spec='$libname$release$shared_ext$major'
13079 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
13081 irix5* | nonstopux*)
13082 libsuff= shlibsuff=
13085 case $LD in # libtool.m4 will add one of these switches to LD
13086 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
13087 libsuff= shlibsuff= libmagic=32-bit;;
13088 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
13089 libsuff=32 shlibsuff=N32 libmagic=N32;;
13090 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
13091 libsuff=64 shlibsuff=64 libmagic=64-bit;;
13092 *) libsuff= shlibsuff= libmagic=never-match;;
13096 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
13097 shlibpath_overrides_runpath=no
13098 sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
13099 sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
13100 hardcode_into_libs=yes
13103 # No shared lib support for Linux oldld, aout, or coff.
13104 linux*oldld* | linux*aout* | linux*coff*)
13109 version_type=none # Android doesn't support versioned libraries.
13112 library_names_spec='$libname$release$shared_ext'
13113 soname_spec='$libname$release$shared_ext'
13115 shlibpath_var=LD_LIBRARY_PATH
13116 shlibpath_overrides_runpath=yes
13118 # This implies no fast_install, which is unacceptable.
13119 # Some rework will be needed to allow for fast_install
13120 # before this can be enabled.
13121 hardcode_into_libs=yes
13123 dynamic_linker='Android linker'
13124 # Don't embed -rpath directories since the linker doesn't support them.
13125 hardcode_libdir_flag_spec='-L$libdir'
13128 # This must be glibc/ELF.
13129 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
13130 version_type=linux # correct to gnu/linux during the next big refactor
13133 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13134 soname_spec='$libname$release$shared_ext$major'
13135 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
13136 shlibpath_var=LD_LIBRARY_PATH
13137 shlibpath_overrides_runpath=no
13139 # Some binutils ld are patched to set DT_RUNPATH
13140 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
13141 $as_echo_n "(cached) " >&6
13143 lt_cv_shlibpath_overrides_runpath=no
13144 save_LDFLAGS=$LDFLAGS
13145 save_libdir=$libdir
13146 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
13147 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
13148 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13149 /* end confdefs.h. */
13159 if ac_fn_c_try_link "$LINENO"; then :
13160 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
13161 lt_cv_shlibpath_overrides_runpath=yes
13164 rm -f core conftest.err conftest.$ac_objext \
13165 conftest$ac_exeext conftest.$ac_ext
13166 LDFLAGS=$save_LDFLAGS
13167 libdir=$save_libdir
13171 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
13173 # This implies no fast_install, which is unacceptable.
13174 # Some rework will be needed to allow for fast_install
13175 # before this can be enabled.
13176 hardcode_into_libs=yes
13178 # Ideally, we could use ldconfig to report *all* directores which are
13179 # searched for libraries, however this is still not possible. Aside from not
13180 # being certain /sbin/ldconfig is available, command
13181 # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
13182 # even though it is searched at run-time. Try to do the best guess by
13183 # appending ld.so.conf contents (and includes) to the search path.
13184 if test -f /etc/ld.so.conf; then
13185 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' ' '`
13186 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
13189 # We used to test for /lib/ld.so.1 and disable shared libraries on
13190 # powerpc, because MkLinux only supported shared libraries with the
13191 # GNU dynamic linker. Since this was broken with cross compilers,
13192 # most powerpc-linux boxes support dynamic linking these days and
13193 # people can always --disable-shared, the test was removed, and we
13194 # assume the GNU/Linux dynamic linker is in use.
13195 dynamic_linker='GNU/Linux ld.so'
13202 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
13203 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
13204 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13205 dynamic_linker='NetBSD (a.out) ld.so'
13207 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13208 soname_spec='$libname$release$shared_ext$major'
13209 dynamic_linker='NetBSD ld.elf_so'
13211 shlibpath_var=LD_LIBRARY_PATH
13212 shlibpath_overrides_runpath=yes
13213 hardcode_into_libs=yes
13217 version_type=linux # correct to gnu/linux during the next big refactor
13218 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13219 shlibpath_var=LD_LIBRARY_PATH
13220 shlibpath_overrides_runpath=yes
13227 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13228 soname_spec='$libname$release$shared_ext$major'
13229 shlibpath_var=LD_LIBRARY_PATH
13230 shlibpath_overrides_runpath=no
13231 hardcode_into_libs=yes
13232 dynamic_linker='ldqnx.so'
13235 openbsd* | bitrig*)
13237 sys_lib_dlsearch_path_spec=/usr/lib
13239 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
13244 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
13245 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13246 shlibpath_var=LD_LIBRARY_PATH
13247 shlibpath_overrides_runpath=yes
13251 libname_spec='$name'
13252 version_type=windows
13256 # OS/2 can only load a DLL with a base name of 8 characters or less.
13257 soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
13258 v=$($ECHO $release$versuffix | tr -d .-);
13259 n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
13260 $ECHO $n$v`$shared_ext'
13261 library_names_spec='${libname}_dll.$libext'
13262 dynamic_linker='OS/2 ld.exe'
13263 shlibpath_var=BEGINLIBPATH
13264 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
13265 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13266 postinstall_cmds='base_file=`basename \$file`~
13267 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
13268 dldir=$destdir/`dirname \$dlpath`~
13269 test -d \$dldir || mkdir -p \$dldir~
13270 $install_prog $dir/$dlname \$dldir/$dlname~
13271 chmod a+x \$dldir/$dlname~
13272 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
13273 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
13275 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
13276 dlpath=$dir/\$dldll~
13280 osf3* | osf4* | osf5*)
13284 soname_spec='$libname$release$shared_ext$major'
13285 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13286 shlibpath_var=LD_LIBRARY_PATH
13287 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
13288 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13296 version_type=linux # correct to gnu/linux during the next big refactor
13299 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13300 soname_spec='$libname$release$shared_ext$major'
13301 shlibpath_var=LD_LIBRARY_PATH
13302 shlibpath_overrides_runpath=yes
13303 hardcode_into_libs=yes
13304 # ldd complains unless libraries are executable
13305 postinstall_cmds='chmod +x $lib'
13310 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
13311 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
13312 shlibpath_var=LD_LIBRARY_PATH
13313 shlibpath_overrides_runpath=yes
13314 if test yes = "$with_gnu_ld"; then
13321 version_type=linux # correct to gnu/linux during the next big refactor
13322 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13323 soname_spec='$libname$release$shared_ext$major'
13324 shlibpath_var=LD_LIBRARY_PATH
13325 case $host_vendor in
13327 shlibpath_overrides_runpath=no
13329 runpath_var=LD_RUN_PATH
13337 shlibpath_overrides_runpath=no
13338 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
13344 if test -d /usr/nec; then
13345 version_type=linux # correct to gnu/linux during the next big refactor
13346 library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
13347 soname_spec='$libname$shared_ext.$major'
13348 shlibpath_var=LD_LIBRARY_PATH
13352 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
13356 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
13357 soname_spec='$libname$release$shared_ext$major'
13358 shlibpath_var=LD_LIBRARY_PATH
13359 shlibpath_overrides_runpath=yes
13360 hardcode_into_libs=yes
13361 if test yes = "$with_gnu_ld"; then
13362 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
13364 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
13367 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
13371 sys_lib_dlsearch_path_spec='/usr/lib'
13375 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
13376 version_type=linux # correct to gnu/linux during the next big refactor
13379 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13380 shlibpath_var=LD_LIBRARY_PATH
13381 shlibpath_overrides_runpath=no
13382 hardcode_into_libs=yes
13386 version_type=linux # correct to gnu/linux during the next big refactor
13387 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13388 soname_spec='$libname$release$shared_ext$major'
13389 shlibpath_var=LD_LIBRARY_PATH
13396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
13397 $as_echo "$dynamic_linker" >&6; }
13398 test no = "$dynamic_linker" && can_build_shared=no
13400 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
13401 if test yes = "$GCC"; then
13402 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
13405 if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
13406 sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
13409 if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
13410 sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
13413 # remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
13414 configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
13416 # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
13417 func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
13419 # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
13420 configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
13518 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
13519 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
13521 if test -n "$hardcode_libdir_flag_spec" ||
13522 test -n "$runpath_var" ||
13523 test yes = "$hardcode_automatic"; then
13525 # We can hardcode non-existent directories.
13526 if test no != "$hardcode_direct" &&
13527 # If the only mechanism to avoid hardcoding is shlibpath_var, we
13528 # have to relink, otherwise we might link with an installed library
13529 # when we should be linking with a yet-to-be-installed one
13530 ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" &&
13531 test no != "$hardcode_minus_L"; then
13532 # Linking always hardcodes the temporary library directory.
13533 hardcode_action=relink
13535 # We can link without hardcoding, and we can hardcode nonexisting dirs.
13536 hardcode_action=immediate
13539 # We cannot hardcode anything, or else we can only hardcode existing
13541 hardcode_action=unsupported
13543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
13544 $as_echo "$hardcode_action" >&6; }
13546 if test relink = "$hardcode_action" ||
13547 test yes = "$inherit_rpath"; then
13548 # Fast installation is not supported
13549 enable_fast_install=no
13550 elif test yes = "$shlibpath_overrides_runpath" ||
13551 test no = "$enable_shared"; then
13552 # Fast installation is not necessary
13553 enable_fast_install=needless
13561 if test yes != "$enable_dlopen"; then
13562 enable_dlopen=unknown
13563 enable_dlopen_self=unknown
13564 enable_dlopen_self_static=unknown
13571 lt_cv_dlopen=load_add_on
13573 lt_cv_dlopen_self=yes
13576 mingw* | pw32* | cegcc*)
13577 lt_cv_dlopen=LoadLibrary
13582 lt_cv_dlopen=dlopen
13587 # if libdl is installed we need to link against it
13588 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
13589 $as_echo_n "checking for dlopen in -ldl... " >&6; }
13590 if ${ac_cv_lib_dl_dlopen+:} false; then :
13591 $as_echo_n "(cached) " >&6
13593 ac_check_lib_save_LIBS=$LIBS
13595 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13596 /* end confdefs.h. */
13598 /* Override any GCC internal prototype to avoid an error.
13599 Use char because int might match the return type of a GCC
13600 builtin and then its argument prototype would still apply. */
13613 if ac_fn_c_try_link "$LINENO"; then :
13614 ac_cv_lib_dl_dlopen=yes
13616 ac_cv_lib_dl_dlopen=no
13618 rm -f core conftest.err conftest.$ac_objext \
13619 conftest$ac_exeext conftest.$ac_ext
13620 LIBS=$ac_check_lib_save_LIBS
13622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
13623 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
13624 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
13625 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
13630 lt_cv_dlopen_self=yes
13637 # Don't try to run any link tests for TPF. We know it's impossible
13638 # because TPF is a cross-compiler, and we know how we open DSOs.
13639 lt_cv_dlopen=dlopen
13641 lt_cv_dlopen_self=no
13645 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
13646 if test "x$ac_cv_func_shl_load" = xyes; then :
13647 lt_cv_dlopen=shl_load
13649 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
13650 $as_echo_n "checking for shl_load in -ldld... " >&6; }
13651 if ${ac_cv_lib_dld_shl_load+:} false; then :
13652 $as_echo_n "(cached) " >&6
13654 ac_check_lib_save_LIBS=$LIBS
13656 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13657 /* end confdefs.h. */
13659 /* Override any GCC internal prototype to avoid an error.
13660 Use char because int might match the return type of a GCC
13661 builtin and then its argument prototype would still apply. */
13669 return shl_load ();
13674 if ac_fn_c_try_link "$LINENO"; then :
13675 ac_cv_lib_dld_shl_load=yes
13677 ac_cv_lib_dld_shl_load=no
13679 rm -f core conftest.err conftest.$ac_objext \
13680 conftest$ac_exeext conftest.$ac_ext
13681 LIBS=$ac_check_lib_save_LIBS
13683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
13684 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
13685 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
13686 lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld
13688 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
13689 if test "x$ac_cv_func_dlopen" = xyes; then :
13690 lt_cv_dlopen=dlopen
13692 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
13693 $as_echo_n "checking for dlopen in -ldl... " >&6; }
13694 if ${ac_cv_lib_dl_dlopen+:} false; then :
13695 $as_echo_n "(cached) " >&6
13697 ac_check_lib_save_LIBS=$LIBS
13699 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13700 /* end confdefs.h. */
13702 /* Override any GCC internal prototype to avoid an error.
13703 Use char because int might match the return type of a GCC
13704 builtin and then its argument prototype would still apply. */
13717 if ac_fn_c_try_link "$LINENO"; then :
13718 ac_cv_lib_dl_dlopen=yes
13720 ac_cv_lib_dl_dlopen=no
13722 rm -f core conftest.err conftest.$ac_objext \
13723 conftest$ac_exeext conftest.$ac_ext
13724 LIBS=$ac_check_lib_save_LIBS
13726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
13727 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
13728 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
13729 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
13731 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
13732 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
13733 if ${ac_cv_lib_svld_dlopen+:} false; then :
13734 $as_echo_n "(cached) " >&6
13736 ac_check_lib_save_LIBS=$LIBS
13737 LIBS="-lsvld $LIBS"
13738 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13739 /* end confdefs.h. */
13741 /* Override any GCC internal prototype to avoid an error.
13742 Use char because int might match the return type of a GCC
13743 builtin and then its argument prototype would still apply. */
13756 if ac_fn_c_try_link "$LINENO"; then :
13757 ac_cv_lib_svld_dlopen=yes
13759 ac_cv_lib_svld_dlopen=no
13761 rm -f core conftest.err conftest.$ac_objext \
13762 conftest$ac_exeext conftest.$ac_ext
13763 LIBS=$ac_check_lib_save_LIBS
13765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
13766 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
13767 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
13768 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld
13770 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
13771 $as_echo_n "checking for dld_link in -ldld... " >&6; }
13772 if ${ac_cv_lib_dld_dld_link+:} false; then :
13773 $as_echo_n "(cached) " >&6
13775 ac_check_lib_save_LIBS=$LIBS
13777 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13778 /* end confdefs.h. */
13780 /* Override any GCC internal prototype to avoid an error.
13781 Use char because int might match the return type of a GCC
13782 builtin and then its argument prototype would still apply. */
13790 return dld_link ();
13795 if ac_fn_c_try_link "$LINENO"; then :
13796 ac_cv_lib_dld_dld_link=yes
13798 ac_cv_lib_dld_dld_link=no
13800 rm -f core conftest.err conftest.$ac_objext \
13801 conftest$ac_exeext conftest.$ac_ext
13802 LIBS=$ac_check_lib_save_LIBS
13804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
13805 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
13806 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
13807 lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld
13828 if test no = "$lt_cv_dlopen"; then
13834 case $lt_cv_dlopen in
13836 save_CPPFLAGS=$CPPFLAGS
13837 test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
13839 save_LDFLAGS=$LDFLAGS
13840 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
13843 LIBS="$lt_cv_dlopen_libs $LIBS"
13845 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
13846 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
13847 if ${lt_cv_dlopen_self+:} false; then :
13848 $as_echo_n "(cached) " >&6
13850 if test yes = "$cross_compiling"; then :
13851 lt_cv_dlopen_self=cross
13853 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
13854 lt_status=$lt_dlunknown
13855 cat > conftest.$ac_ext <<_LT_EOF
13856 #line $LINENO "configure"
13857 #include "confdefs.h"
13866 # define LT_DLGLOBAL RTLD_GLOBAL
13869 # define LT_DLGLOBAL DL_GLOBAL
13871 # define LT_DLGLOBAL 0
13875 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
13876 find out it does not work in some platform. */
13877 #ifndef LT_DLLAZY_OR_NOW
13879 # define LT_DLLAZY_OR_NOW RTLD_LAZY
13882 # define LT_DLLAZY_OR_NOW DL_LAZY
13885 # define LT_DLLAZY_OR_NOW RTLD_NOW
13888 # define LT_DLLAZY_OR_NOW DL_NOW
13890 # define LT_DLLAZY_OR_NOW 0
13897 /* When -fvisibility=hidden is used, assume the code has been annotated
13898 correspondingly for the symbols needed. */
13899 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
13900 int fnord () __attribute__((visibility("default")));
13903 int fnord () { return 42; }
13906 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
13907 int status = $lt_dlunknown;
13911 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
13914 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
13915 else puts (dlerror ());
13917 /* dlclose (self); */
13925 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
13926 (eval $ac_link) 2>&5
13928 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13929 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
13930 (./conftest; exit; ) >&5 2>/dev/null
13932 case x$lt_status in
13933 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
13934 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
13935 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
13938 # compilation failed
13939 lt_cv_dlopen_self=no
13946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
13947 $as_echo "$lt_cv_dlopen_self" >&6; }
13949 if test yes = "$lt_cv_dlopen_self"; then
13950 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
13951 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
13952 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
13953 if ${lt_cv_dlopen_self_static+:} false; then :
13954 $as_echo_n "(cached) " >&6
13956 if test yes = "$cross_compiling"; then :
13957 lt_cv_dlopen_self_static=cross
13959 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
13960 lt_status=$lt_dlunknown
13961 cat > conftest.$ac_ext <<_LT_EOF
13962 #line $LINENO "configure"
13963 #include "confdefs.h"
13972 # define LT_DLGLOBAL RTLD_GLOBAL
13975 # define LT_DLGLOBAL DL_GLOBAL
13977 # define LT_DLGLOBAL 0
13981 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
13982 find out it does not work in some platform. */
13983 #ifndef LT_DLLAZY_OR_NOW
13985 # define LT_DLLAZY_OR_NOW RTLD_LAZY
13988 # define LT_DLLAZY_OR_NOW DL_LAZY
13991 # define LT_DLLAZY_OR_NOW RTLD_NOW
13994 # define LT_DLLAZY_OR_NOW DL_NOW
13996 # define LT_DLLAZY_OR_NOW 0
14003 /* When -fvisibility=hidden is used, assume the code has been annotated
14004 correspondingly for the symbols needed. */
14005 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
14006 int fnord () __attribute__((visibility("default")));
14009 int fnord () { return 42; }
14012 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
14013 int status = $lt_dlunknown;
14017 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
14020 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
14021 else puts (dlerror ());
14023 /* dlclose (self); */
14031 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
14032 (eval $ac_link) 2>&5
14034 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14035 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
14036 (./conftest; exit; ) >&5 2>/dev/null
14038 case x$lt_status in
14039 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
14040 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
14041 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
14044 # compilation failed
14045 lt_cv_dlopen_self_static=no
14052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
14053 $as_echo "$lt_cv_dlopen_self_static" >&6; }
14056 CPPFLAGS=$save_CPPFLAGS
14057 LDFLAGS=$save_LDFLAGS
14062 case $lt_cv_dlopen_self in
14063 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
14064 *) enable_dlopen_self=unknown ;;
14067 case $lt_cv_dlopen_self_static in
14068 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
14069 *) enable_dlopen_self_static=unknown ;;
14091 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
14092 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
14093 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
14094 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
14095 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
14096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14097 $as_echo "yes" >&6; }
14099 # FIXME - insert some real tests, host_os isn't really good enough
14102 if test -n "$STRIP"; then
14103 striplib="$STRIP -x"
14104 old_striplib="$STRIP -S"
14105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14106 $as_echo "yes" >&6; }
14108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14109 $as_echo "no" >&6; }
14113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14114 $as_echo "no" >&6; }
14130 # Report what library types will actually be built
14131 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
14132 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
14133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
14134 $as_echo "$can_build_shared" >&6; }
14136 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
14137 $as_echo_n "checking whether to build shared libraries... " >&6; }
14138 test no = "$can_build_shared" && enable_shared=no
14140 # On AIX, shared libraries and static libraries use the same namespace, and
14141 # are all built from PIC.
14144 test yes = "$enable_shared" && enable_static=no
14145 if test -n "$RANLIB"; then
14146 archive_cmds="$archive_cmds~\$RANLIB \$lib"
14147 postinstall_cmds='$RANLIB $lib'
14152 if test ia64 != "$host_cpu"; then
14153 case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
14154 yes,aix,yes) ;; # shared object as lib.so file only
14155 yes,svr4,*) ;; # shared object as lib.so archive member only
14156 yes,*) enable_static=no ;; # shared object in lib.a archive as well
14161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
14162 $as_echo "$enable_shared" >&6; }
14164 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
14165 $as_echo_n "checking whether to build static libraries... " >&6; }
14166 # Make sure either enable_shared or enable_static is yes.
14167 test yes = "$enable_shared" || enable_static=yes
14168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
14169 $as_echo "$enable_static" >&6; }
14176 ac_cpp='$CPP $CPPFLAGS'
14177 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14178 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14179 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14183 if test -n "$CXX" && ( test no != "$CXX" &&
14184 ( (test g++ = "$CXX" && `g++ -v >/dev/null 2>&1` ) ||
14185 (test g++ != "$CXX"))); then
14187 ac_cpp='$CXXCPP $CPPFLAGS'
14188 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14189 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14190 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14191 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
14192 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
14193 if test -z "$CXXCPP"; then
14194 if ${ac_cv_prog_CXXCPP+:} false; then :
14195 $as_echo_n "(cached) " >&6
14197 # Double quotes because CXXCPP needs to be expanded
14198 for CXXCPP in "$CXX -E" "/lib/cpp"
14200 ac_preproc_ok=false
14201 for ac_cxx_preproc_warn_flag in '' yes
14203 # Use a header file that comes with gcc, so configuring glibc
14204 # with a fresh cross-compiler works.
14205 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14206 # <limits.h> exists even on freestanding compilers.
14207 # On the NeXT, cc -E runs the code through the compiler's parser,
14208 # not just through cpp. "Syntax error" is here to catch this case.
14209 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14210 /* end confdefs.h. */
14212 # include <limits.h>
14214 # include <assert.h>
14218 if ac_fn_cxx_try_cpp "$LINENO"; then :
14221 # Broken: fails on valid input.
14224 rm -f conftest.err conftest.i conftest.$ac_ext
14226 # OK, works on sane cases. Now check whether nonexistent headers
14227 # can be detected and how.
14228 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14229 /* end confdefs.h. */
14230 #include <ac_nonexistent.h>
14232 if ac_fn_cxx_try_cpp "$LINENO"; then :
14233 # Broken: success on invalid input.
14236 # Passes both tests.
14240 rm -f conftest.err conftest.i conftest.$ac_ext
14243 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
14244 rm -f conftest.i conftest.err conftest.$ac_ext
14245 if $ac_preproc_ok; then :
14250 ac_cv_prog_CXXCPP=$CXXCPP
14253 CXXCPP=$ac_cv_prog_CXXCPP
14255 ac_cv_prog_CXXCPP=$CXXCPP
14257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
14258 $as_echo "$CXXCPP" >&6; }
14259 ac_preproc_ok=false
14260 for ac_cxx_preproc_warn_flag in '' yes
14262 # Use a header file that comes with gcc, so configuring glibc
14263 # with a fresh cross-compiler works.
14264 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14265 # <limits.h> exists even on freestanding compilers.
14266 # On the NeXT, cc -E runs the code through the compiler's parser,
14267 # not just through cpp. "Syntax error" is here to catch this case.
14268 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14269 /* end confdefs.h. */
14271 # include <limits.h>
14273 # include <assert.h>
14277 if ac_fn_cxx_try_cpp "$LINENO"; then :
14280 # Broken: fails on valid input.
14283 rm -f conftest.err conftest.i conftest.$ac_ext
14285 # OK, works on sane cases. Now check whether nonexistent headers
14286 # can be detected and how.
14287 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14288 /* end confdefs.h. */
14289 #include <ac_nonexistent.h>
14291 if ac_fn_cxx_try_cpp "$LINENO"; then :
14292 # Broken: success on invalid input.
14295 # Passes both tests.
14299 rm -f conftest.err conftest.i conftest.$ac_ext
14302 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
14303 rm -f conftest.i conftest.err conftest.$ac_ext
14304 if $ac_preproc_ok; then :
14307 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
14308 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14309 as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
14310 See \`config.log' for more details" "$LINENO" 5; }
14314 ac_cpp='$CPP $CPPFLAGS'
14315 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14316 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14317 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14320 _lt_caught_CXX_error=yes
14324 ac_cpp='$CXXCPP $CPPFLAGS'
14325 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14326 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14327 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14329 archive_cmds_need_lc_CXX=no
14330 allow_undefined_flag_CXX=
14331 always_export_symbols_CXX=no
14332 archive_expsym_cmds_CXX=
14333 compiler_needs_object_CXX=no
14334 export_dynamic_flag_spec_CXX=
14335 hardcode_direct_CXX=no
14336 hardcode_direct_absolute_CXX=no
14337 hardcode_libdir_flag_spec_CXX=
14338 hardcode_libdir_separator_CXX=
14339 hardcode_minus_L_CXX=no
14340 hardcode_shlibpath_var_CXX=unsupported
14341 hardcode_automatic_CXX=no
14342 inherit_rpath_CXX=no
14344 module_expsym_cmds_CXX=
14345 link_all_deplibs_CXX=unknown
14346 old_archive_cmds_CXX=$old_archive_cmds
14347 reload_flag_CXX=$reload_flag
14348 reload_cmds_CXX=$reload_cmds
14349 no_undefined_flag_CXX=
14350 whole_archive_flag_spec_CXX=
14351 enable_shared_with_static_runtimes_CXX=no
14353 # Source file extension for C++ test sources.
14356 # Object file extension for compiled C++ test sources.
14360 # No sense in running all these tests if we already determined that
14361 # the CXX compiler isn't working. Some variables (like enable_shared)
14362 # are currently assumed to apply to all compilers on this platform,
14363 # and will be corrupted by setting them based on a non-working compiler.
14364 if test yes != "$_lt_caught_CXX_error"; then
14365 # Code to be used in simple compile tests
14366 lt_simple_compile_test_code="int some_variable = 0;"
14368 # Code to be used in simple link tests
14369 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
14371 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
14378 # If no C compiler was specified, use CC.
14381 # If no C compiler flags were specified, use CFLAGS.
14382 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
14384 # Allow CC to be a program name with arguments.
14388 # save warnings/boilerplate of simple test code
14389 ac_outfile=conftest.$ac_objext
14390 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
14391 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14392 _lt_compiler_boilerplate=`cat conftest.err`
14395 ac_outfile=conftest.$ac_objext
14396 echo "$lt_simple_link_test_code" >conftest.$ac_ext
14397 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14398 _lt_linker_boilerplate=`cat conftest.err`
14402 # Allow CC to be a program name with arguments.
14404 lt_save_CFLAGS=$CFLAGS
14408 lt_save_with_gnu_ld=$with_gnu_ld
14409 lt_save_path_LD=$lt_cv_path_LD
14410 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
14411 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
14413 $as_unset lt_cv_prog_gnu_ld
14415 if test -n "${lt_cv_path_LDCXX+set}"; then
14416 lt_cv_path_LD=$lt_cv_path_LDCXX
14418 $as_unset lt_cv_path_LD
14420 test -z "${LDCXX+set}" || LD=$LDCXX
14425 func_cc_basename $compiler
14426 cc_basename=$func_cc_basename_result
14429 if test -n "$compiler"; then
14430 # We don't want -fno-exception when compiling C++ code, so set the
14431 # no_builtin_flag separately
14432 if test yes = "$GXX"; then
14433 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
14435 lt_prog_compiler_no_builtin_flag_CXX=
14438 if test yes = "$GXX"; then
14439 # Set up default GNU C++ configuration
14443 # Check whether --with-gnu-ld was given.
14444 if test "${with_gnu_ld+set}" = set; then :
14445 withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
14451 if test yes = "$GCC"; then
14452 # Check if gcc -print-prog-name=ld gives a path.
14453 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
14454 $as_echo_n "checking for ld used by $CC... " >&6; }
14457 # gcc leaves a trailing carriage return, which upsets mingw
14458 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
14460 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
14463 # Accept absolute paths.
14465 re_direlt='/[^/][^/]*/\.\./'
14466 # Canonicalize the pathname of ld
14467 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
14468 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
14469 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
14471 test -z "$LD" && LD=$ac_prog
14474 # If it fails, then pretend we aren't using GCC.
14478 # If it is relative, then search for the first ld in PATH.
14479 with_gnu_ld=unknown
14482 elif test yes = "$with_gnu_ld"; then
14483 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
14484 $as_echo_n "checking for GNU ld... " >&6; }
14486 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
14487 $as_echo_n "checking for non-GNU ld... " >&6; }
14489 if ${lt_cv_path_LD+:} false; then :
14490 $as_echo_n "(cached) " >&6
14492 if test -z "$LD"; then
14493 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
14494 for ac_dir in $PATH; do
14496 test -z "$ac_dir" && ac_dir=.
14497 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
14498 lt_cv_path_LD=$ac_dir/$ac_prog
14499 # Check to see if the program is GNU ld. I'd rather use --version,
14500 # but apparently some variants of GNU ld only accept -v.
14501 # Break only if it was the GNU/non-GNU ld that we prefer.
14502 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
14503 *GNU* | *'with BFD'*)
14504 test no != "$with_gnu_ld" && break
14507 test yes != "$with_gnu_ld" && break
14514 lt_cv_path_LD=$LD # Let the user override the test with a path.
14519 if test -n "$LD"; then
14520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
14521 $as_echo "$LD" >&6; }
14523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14524 $as_echo "no" >&6; }
14526 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
14527 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
14528 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
14529 if ${lt_cv_prog_gnu_ld+:} false; then :
14530 $as_echo_n "(cached) " >&6
14532 # I'd rather use --version here, but apparently some GNU lds only accept -v.
14533 case `$LD -v 2>&1 </dev/null` in
14534 *GNU* | *'with BFD'*)
14535 lt_cv_prog_gnu_ld=yes
14538 lt_cv_prog_gnu_ld=no
14542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
14543 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
14544 with_gnu_ld=$lt_cv_prog_gnu_ld
14552 # Check if GNU C++ uses GNU ld as the underlying linker, since the
14553 # archiving commands below assume that GNU ld is being used.
14554 if test yes = "$with_gnu_ld"; then
14555 archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
14556 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'
14558 hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
14559 export_dynamic_flag_spec_CXX='$wl--export-dynamic'
14561 # If archive_cmds runs LD, not CC, wlarc should be empty
14562 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
14563 # investigate it a little bit more. (MM)
14566 # ancient GNU ld didn't support --whole-archive et. al.
14567 if eval "`$CC -print-prog-name=ld` --help 2>&1" |
14568 $GREP 'no-whole-archive' > /dev/null; then
14569 whole_archive_flag_spec_CXX=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
14571 whole_archive_flag_spec_CXX=
14577 # A generic and very simple default shared library creation
14578 # command for GNU C++ for the case where it uses the native
14579 # linker, instead of GNU ld. If possible, this setting should
14580 # overridden to take advantage of the native linker features on
14581 # the platform it is being used on.
14582 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
14585 # Commands to make compiler produce verbose output that lists
14586 # what "hidden" libraries, object files and flags are used when
14587 # linking a shared library.
14588 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
14596 # PORTME: fill in a description of your system's C++ link characteristics
14597 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14598 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
14602 # FIXME: insert proper C++ library support
14606 if test ia64 = "$host_cpu"; then
14607 # On IA64, the linker does run time linking by default, so we don't
14608 # have to do anything special.
14609 aix_use_runtimelinking=no
14610 exp_sym_flag='-Bexport'
14613 aix_use_runtimelinking=no
14615 # Test if we are trying to use run time linking or normal
14616 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
14617 # have runtime linking enabled, and use it for executables.
14618 # For shared libraries, we enable/disable runtime linking
14619 # depending on the kind of the shared library created -
14620 # when "with_aix_soname,aix_use_runtimelinking" is:
14621 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables
14622 # "aix,yes" lib.so shared, rtl:yes, for executables
14623 # lib.a static archive
14624 # "both,no" lib.so.V(shr.o) shared, rtl:yes
14625 # lib.a(lib.so.V) shared, rtl:no, for executables
14626 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
14627 # lib.a(lib.so.V) shared, rtl:no
14628 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables
14629 # lib.a static archive
14630 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
14631 for ld_flag in $LDFLAGS; do
14634 aix_use_runtimelinking=yes
14639 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
14640 # With aix-soname=svr4, we create the lib.so.V shared archives only,
14641 # so we don't have lib.a shared libs to link our executables.
14642 # We have to force runtime linking in this case.
14643 aix_use_runtimelinking=yes
14644 LDFLAGS="$LDFLAGS -Wl,-brtl"
14649 exp_sym_flag='-bexport'
14650 no_entry_flag='-bnoentry'
14653 # When large executables or shared objects are built, AIX ld can
14654 # have problems creating the table of contents. If linking a library
14655 # or program results in "error TOC overflow" add -mminimal-toc to
14656 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
14657 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
14659 archive_cmds_CXX=''
14660 hardcode_direct_CXX=yes
14661 hardcode_direct_absolute_CXX=yes
14662 hardcode_libdir_separator_CXX=':'
14663 link_all_deplibs_CXX=yes
14664 file_list_spec_CXX='$wl-f,'
14665 case $with_aix_soname,$aix_use_runtimelinking in
14666 aix,*) ;; # no import file
14667 svr4,* | *,yes) # use import file
14668 # The Import File defines what to hardcode.
14669 hardcode_direct_CXX=no
14670 hardcode_direct_absolute_CXX=no
14674 if test yes = "$GXX"; then
14675 case $host_os in aix4.[012]|aix4.[012].*)
14676 # We only want to do this on AIX 4.2 and lower, the check
14677 # below for broken collect2 doesn't work under 4.3+
14678 collect2name=`$CC -print-prog-name=collect2`
14679 if test -f "$collect2name" &&
14680 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
14682 # We have reworked collect2
14685 # We have old collect2
14686 hardcode_direct_CXX=unsupported
14687 # It fails to find uninstalled libraries when the uninstalled
14688 # path is not listed in the libpath. Setting hardcode_minus_L
14689 # to unsupported forces relinking
14690 hardcode_minus_L_CXX=yes
14691 hardcode_libdir_flag_spec_CXX='-L$libdir'
14692 hardcode_libdir_separator_CXX=
14695 shared_flag='-shared'
14696 if test yes = "$aix_use_runtimelinking"; then
14697 shared_flag=$shared_flag' $wl-G'
14699 # Need to ensure runtime linking is disabled for the traditional
14700 # shared library, or the linker may eventually find shared libraries
14701 # /with/ Import File - we do not want to mix them.
14702 shared_flag_aix='-shared'
14703 shared_flag_svr4='-shared $wl-G'
14706 if test ia64 = "$host_cpu"; then
14707 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
14708 # chokes on -Wl,-G. The following line is correct:
14711 if test yes = "$aix_use_runtimelinking"; then
14712 shared_flag='$wl-G'
14714 shared_flag='$wl-bM:SRE'
14716 shared_flag_aix='$wl-bM:SRE'
14717 shared_flag_svr4='$wl-G'
14721 export_dynamic_flag_spec_CXX='$wl-bexpall'
14722 # It seems that -bexpall does not export symbols beginning with
14723 # underscore (_), so it is better to generate a list of symbols to
14725 always_export_symbols_CXX=yes
14726 if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
14727 # Warning - without using the other runtime loading flags (-brtl),
14728 # -berok will link without error, but may produce a broken library.
14729 # The "-G" linker flag allows undefined symbols.
14730 no_undefined_flag_CXX='-bernotok'
14731 # Determine the default libpath from the value encoded in an empty
14733 if test set = "${lt_cv_aix_libpath+set}"; then
14734 aix_libpath=$lt_cv_aix_libpath
14736 if ${lt_cv_aix_libpath__CXX+:} false; then :
14737 $as_echo_n "(cached) " >&6
14739 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14740 /* end confdefs.h. */
14750 if ac_fn_cxx_try_link "$LINENO"; then :
14752 lt_aix_libpath_sed='
14753 /Import File Strings/,/^$/ {
14755 s/^0 *\([^ ]*\) *$/\1/
14759 lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14760 # Check for a 64-bit object if we didn't find anything.
14761 if test -z "$lt_cv_aix_libpath__CXX"; then
14762 lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14765 rm -f core conftest.err conftest.$ac_objext \
14766 conftest$ac_exeext conftest.$ac_ext
14767 if test -z "$lt_cv_aix_libpath__CXX"; then
14768 lt_cv_aix_libpath__CXX=/usr/lib:/lib
14773 aix_libpath=$lt_cv_aix_libpath__CXX
14776 hardcode_libdir_flag_spec_CXX='$wl-blibpath:$libdir:'"$aix_libpath"
14778 archive_expsym_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $deplibs $wl'$no_entry_flag' $compiler_flags `if test -n "$allow_undefined_flag"; then func_echo_all "$wl$allow_undefined_flag"; else :; fi` $wl'$exp_sym_flag:\$export_symbols' '$shared_flag
14780 if test ia64 = "$host_cpu"; then
14781 hardcode_libdir_flag_spec_CXX='$wl-R $libdir:/usr/lib:/lib'
14782 allow_undefined_flag_CXX="-z nodefs"
14783 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"
14785 # Determine the default libpath from the value encoded in an
14786 # empty executable.
14787 if test set = "${lt_cv_aix_libpath+set}"; then
14788 aix_libpath=$lt_cv_aix_libpath
14790 if ${lt_cv_aix_libpath__CXX+:} false; then :
14791 $as_echo_n "(cached) " >&6
14793 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14794 /* end confdefs.h. */
14804 if ac_fn_cxx_try_link "$LINENO"; then :
14806 lt_aix_libpath_sed='
14807 /Import File Strings/,/^$/ {
14809 s/^0 *\([^ ]*\) *$/\1/
14813 lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14814 # Check for a 64-bit object if we didn't find anything.
14815 if test -z "$lt_cv_aix_libpath__CXX"; then
14816 lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14819 rm -f core conftest.err conftest.$ac_objext \
14820 conftest$ac_exeext conftest.$ac_ext
14821 if test -z "$lt_cv_aix_libpath__CXX"; then
14822 lt_cv_aix_libpath__CXX=/usr/lib:/lib
14827 aix_libpath=$lt_cv_aix_libpath__CXX
14830 hardcode_libdir_flag_spec_CXX='$wl-blibpath:$libdir:'"$aix_libpath"
14831 # Warning - without using the other run time loading flags,
14832 # -berok will link without error, but may produce a broken library.
14833 no_undefined_flag_CXX=' $wl-bernotok'
14834 allow_undefined_flag_CXX=' $wl-berok'
14835 if test yes = "$with_gnu_ld"; then
14836 # We only use this code for GNU lds that support --whole-archive.
14837 whole_archive_flag_spec_CXX='$wl--whole-archive$convenience $wl--no-whole-archive'
14839 # Exported symbols can be pulled into shared objects from archives
14840 whole_archive_flag_spec_CXX='$convenience'
14842 archive_cmds_need_lc_CXX=yes
14843 archive_expsym_cmds_CXX='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
14844 # -brtl affects multiple linker settings, -berok does not and is overridden later
14845 compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
14846 if test svr4 != "$with_aix_soname"; then
14847 # This is similar to how AIX traditionally builds its shared
14848 # libraries. Need -bnortl late, we may have -brtl in LDFLAGS.
14849 archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$CC '$shared_flag_aix' -o $output_objdir/$realname.d/$soname $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$realname.d/$soname'
14851 if test aix != "$with_aix_soname"; then
14852 archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$CC '$shared_flag_svr4' -o $output_objdir/$realname.d/$shared_archive_member_spec.o $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$STRIP -e $output_objdir/$realname.d/$shared_archive_member_spec.o~( func_echo_all "#! $soname($shared_archive_member_spec.o)"; if test shr_64 = "$shared_archive_member_spec"; then func_echo_all "# 64"; else func_echo_all "# 32"; fi; cat $export_symbols ) > $output_objdir/$realname.d/$shared_archive_member_spec.imp~$AR $AR_FLAGS $output_objdir/$soname $output_objdir/$realname.d/$shared_archive_member_spec.o $output_objdir/$realname.d/$shared_archive_member_spec.imp'
14854 # used by -dlpreopen to get the symbols
14855 archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$MV $output_objdir/$realname.d/$soname $output_objdir'
14857 archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$RM -r $output_objdir/$realname.d'
14863 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
14864 allow_undefined_flag_CXX=unsupported
14865 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
14866 # support --undefined. This deserves some investigation. FIXME
14867 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
14874 case $cc_basename in
14876 # FIXME: insert proper C++ library support
14882 cygwin* | mingw* | pw32* | cegcc*)
14883 case $GXX,$cc_basename in
14886 # hardcode_libdir_flag_spec is actually meaningless, as there is
14887 # no search path for DLLs.
14888 hardcode_libdir_flag_spec_CXX=' '
14889 allow_undefined_flag_CXX=unsupported
14890 always_export_symbols_CXX=yes
14891 file_list_spec_CXX='@'
14892 # Tell ltmain to make .lib files, not .a files.
14894 # Tell ltmain to make .dll files, not .so files.
14896 # FIXME: Setting linknames here is a bad hack.
14897 archive_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
14898 archive_expsym_cmds_CXX='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
14899 cp "$export_symbols" "$output_objdir/$soname.def";
14900 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
14902 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
14904 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
14906 # The linker will not automatically build a static lib if we build a DLL.
14907 # _LT_TAGVAR(old_archive_from_new_cmds, CXX)='true'
14908 enable_shared_with_static_runtimes_CXX=yes
14910 old_postinstall_cmds_CXX='chmod 644 $oldlib'
14911 postlink_cmds_CXX='lt_outputfile="@OUTPUT@"~
14912 lt_tool_outputfile="@TOOL_OUTPUT@"~
14913 case $lt_outputfile in
14916 lt_outputfile=$lt_outputfile.exe
14917 lt_tool_outputfile=$lt_tool_outputfile.exe
14920 func_to_tool_file "$lt_outputfile"~
14921 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
14922 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
14923 $RM "$lt_outputfile.manifest";
14928 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
14929 # as there is no search path for DLLs.
14930 hardcode_libdir_flag_spec_CXX='-L$libdir'
14931 export_dynamic_flag_spec_CXX='$wl--export-all-symbols'
14932 allow_undefined_flag_CXX=unsupported
14933 always_export_symbols_CXX=no
14934 enable_shared_with_static_runtimes_CXX=yes
14936 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
14937 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'
14938 # If the export-symbols file already is a .def file, use it as
14939 # is; otherwise, prepend EXPORTS...
14940 archive_expsym_cmds_CXX='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
14941 cp $export_symbols $output_objdir/$soname.def;
14943 echo EXPORTS > $output_objdir/$soname.def;
14944 cat $export_symbols >> $output_objdir/$soname.def;
14946 $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'
14953 darwin* | rhapsody*)
14956 archive_cmds_need_lc_CXX=no
14957 hardcode_direct_CXX=no
14958 hardcode_automatic_CXX=yes
14959 hardcode_shlibpath_var_CXX=unsupported
14960 if test yes = "$lt_cv_ld_force_load"; then
14961 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\"`'
14964 whole_archive_flag_spec_CXX=''
14966 link_all_deplibs_CXX=yes
14967 allow_undefined_flag_CXX=$_lt_dar_allow_undefined
14968 case $cc_basename in
14969 ifort*|nagfor*) _lt_dar_can_shared=yes ;;
14970 *) _lt_dar_can_shared=$GCC ;;
14972 if test yes = "$_lt_dar_can_shared"; then
14973 output_verbose_link_cmd=func_echo_all
14974 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"
14975 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
14976 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"
14977 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"
14978 if test yes != "$lt_cv_apple_cc_single_mod"; then
14979 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"
14980 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"
14990 hardcode_libdir_flag_spec_CXX='-L$libdir'
14991 hardcode_minus_L_CXX=yes
14992 allow_undefined_flag_CXX=unsupported
14994 archive_cmds_CXX='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
14995 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
14996 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
14997 $ECHO EXPORTS >> $output_objdir/$libname.def~
14998 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
14999 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
15000 emximp -o $lib $output_objdir/$libname.def'
15001 archive_expsym_cmds_CXX='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
15002 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
15003 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
15004 $ECHO EXPORTS >> $output_objdir/$libname.def~
15005 prefix_cmds="$SED"~
15006 if test EXPORTS = "`$SED 1q $export_symbols`"; then
15007 prefix_cmds="$prefix_cmds -e 1d";
15009 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
15010 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
15011 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
15012 emximp -o $lib $output_objdir/$libname.def'
15013 old_archive_From_new_cmds_CXX='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
15014 enable_shared_with_static_runtimes_CXX=yes
15018 case $cc_basename in
15020 # FIXME: insert proper C++ library support
15024 # Green Hills C++ Compiler
15025 # FIXME: insert proper C++ library support
15029 # FIXME: insert proper C++ library support
15036 # C++ shared libraries reported to be fairly broken before
15042 archive_cmds_need_lc_CXX=no
15045 freebsd* | dragonfly*)
15046 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
15052 archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
15053 link_all_deplibs_CXX=yes
15057 hardcode_libdir_flag_spec_CXX='$wl+b $wl$libdir'
15058 hardcode_libdir_separator_CXX=:
15059 export_dynamic_flag_spec_CXX='$wl-E'
15060 hardcode_direct_CXX=yes
15061 hardcode_minus_L_CXX=yes # Not in the search PATH,
15062 # but as the default
15063 # location of the library.
15065 case $cc_basename in
15067 # FIXME: insert proper C++ library support
15071 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 "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
15072 # Commands to make compiler produce verbose output that lists
15073 # what "hidden" libraries, object files and flags are used when
15074 # linking a shared library.
15076 # There doesn't appear to be a way to prevent this compiler from
15077 # explicitly linking system object files so we need to strip them
15078 # from the output so that they don't get included in the library
15080 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"'
15083 if test yes = "$GXX"; then
15084 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 "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
15086 # FIXME: insert proper C++ library support
15094 if test no = "$with_gnu_ld"; then
15095 hardcode_libdir_flag_spec_CXX='$wl+b $wl$libdir'
15096 hardcode_libdir_separator_CXX=:
15102 export_dynamic_flag_spec_CXX='$wl-E'
15108 hardcode_direct_CXX=no
15109 hardcode_shlibpath_var_CXX=no
15112 hardcode_direct_CXX=yes
15113 hardcode_direct_absolute_CXX=yes
15114 hardcode_minus_L_CXX=yes # Not in the search PATH,
15115 # but as the default
15116 # location of the library.
15120 case $cc_basename in
15122 # FIXME: insert proper C++ library support
15128 archive_cmds_CXX='$CC -b $wl+h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
15131 archive_cmds_CXX='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
15134 archive_cmds_CXX='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
15137 # Commands to make compiler produce verbose output that lists
15138 # what "hidden" libraries, object files and flags are used when
15139 # linking a shared library.
15141 # There doesn't appear to be a way to prevent this compiler from
15142 # explicitly linking system object files so we need to strip them
15143 # from the output so that they don't get included in the library
15145 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"'
15148 if test yes = "$GXX"; then
15149 if test no = "$with_gnu_ld"; then
15152 archive_cmds_CXX='$CC -shared -nostdlib -fPIC $wl+h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
15155 archive_cmds_CXX='$CC -shared -nostdlib $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
15158 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'
15163 # FIXME: insert proper C++ library support
15171 hardcode_direct_CXX=no
15172 hardcode_shlibpath_var_CXX=no
15173 hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
15174 export_dynamic_flag_spec_CXX='$wl-E'
15175 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
15176 # Instead, shared libraries are loaded at an image base (0x10000000 by
15177 # default) and relocated if they conflict, which is a slow very memory
15178 # consuming and fragmenting process. To avoid this, we pick a random,
15179 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
15180 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
15181 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'
15182 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'
15185 case $cc_basename in
15188 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'
15190 # Archives containing C++ object files must be created using
15191 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
15192 # necessary to make sure instantiated templates are included
15194 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
15197 if test yes = "$GXX"; then
15198 if test no = "$with_gnu_ld"; then
15199 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'
15201 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'
15204 link_all_deplibs_CXX=yes
15207 hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
15208 hardcode_libdir_separator_CXX=:
15209 inherit_rpath_CXX=yes
15212 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
15213 case $cc_basename in
15215 # Kuck and Associates, Inc. (KAI) C++ Compiler
15217 # KCC will only create a shared library if the output file
15218 # ends with ".so" (or ".sl" for HP-UX), so rename the library
15219 # to its proper name (with version) after linking.
15220 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'
15221 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'
15222 # Commands to make compiler produce verbose output that lists
15223 # what "hidden" libraries, object files and flags are used when
15224 # linking a shared library.
15226 # There doesn't appear to be a way to prevent this compiler from
15227 # explicitly linking system object files so we need to strip them
15228 # from the output so that they don't get included in the library
15230 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"'
15232 hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
15233 export_dynamic_flag_spec_CXX='$wl--export-dynamic'
15235 # Archives containing C++ object files must be created using
15236 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
15237 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
15242 # version 8.0 and above of icpc choke on multiply defined symbols
15243 # if we add $predep_objects and $postdep_objects, however 7.1 and
15244 # earlier do not add the objects themselves.
15245 case `$CC -V 2>&1` in
15247 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
15248 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'
15250 *) # Version 8.0 or newer
15253 ia64*) tmp_idyn=' -i_dynamic';;
15255 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
15256 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'
15259 archive_cmds_need_lc_CXX=no
15260 hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
15261 export_dynamic_flag_spec_CXX='$wl--export-dynamic'
15262 whole_archive_flag_spec_CXX='$wl--whole-archive$convenience $wl--no-whole-archive'
15265 # Portland Group C++ compiler
15267 *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
15268 prelink_cmds_CXX='tpldir=Template.dir~
15270 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
15271 compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
15272 old_archive_cmds_CXX='tpldir=Template.dir~
15274 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
15275 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
15277 archive_cmds_CXX='tpldir=Template.dir~
15279 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
15280 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
15281 archive_expsym_cmds_CXX='tpldir=Template.dir~
15283 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
15284 $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'
15286 *) # Version 6 and above use weak symbols
15287 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
15288 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'
15292 hardcode_libdir_flag_spec_CXX='$wl--rpath $wl$libdir'
15293 export_dynamic_flag_spec_CXX='$wl--export-dynamic'
15294 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'
15298 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
15299 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'
15301 runpath_var=LD_RUN_PATH
15302 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
15303 hardcode_libdir_separator_CXX=:
15305 # Commands to make compiler produce verbose output that lists
15306 # what "hidden" libraries, object files and flags are used when
15307 # linking a shared library.
15309 # There doesn't appear to be a way to prevent this compiler from
15310 # explicitly linking system object files so we need to strip them
15311 # from the output so that they don't get included in the library
15313 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'
15315 xl* | mpixl* | bgxl*)
15316 # IBM XL 8.0 on PPC, with GNU ld
15317 hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
15318 export_dynamic_flag_spec_CXX='$wl--export-dynamic'
15319 archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
15320 if test yes = "$supports_anon_versioning"; then
15321 archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
15322 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
15323 echo "local: *; };" >> $output_objdir/$libname.ver~
15324 $CC -qmkshrobj $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
15328 case `$CC -V 2>&1 | sed 5q` in
15331 no_undefined_flag_CXX=' -zdefs'
15332 archive_cmds_CXX='$CC -G$allow_undefined_flag -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
15333 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'
15334 hardcode_libdir_flag_spec_CXX='-R$libdir'
15335 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'
15336 compiler_needs_object_CXX=yes
15338 # Not sure whether something based on
15339 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
15341 output_verbose_link_cmd='func_echo_all'
15343 # Archives containing C++ object files must be created using
15344 # "CC -xar", where "CC" is the Sun C++ compiler. This is
15345 # necessary to make sure instantiated templates are included
15347 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
15355 # FIXME: insert proper C++ library support
15360 # FIXME: insert proper C++ library support
15365 case $cc_basename in
15367 # FIXME: insert proper C++ library support
15371 # FIXME: insert proper C++ library support
15378 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
15379 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
15381 hardcode_libdir_flag_spec_CXX='-R$libdir'
15382 hardcode_direct_CXX=yes
15383 hardcode_shlibpath_var_CXX=no
15385 # Workaround some broken pre-1.5 toolchains
15386 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
15393 openbsd* | bitrig*)
15394 if test -f /usr/libexec/ld.so; then
15395 hardcode_direct_CXX=yes
15396 hardcode_shlibpath_var_CXX=no
15397 hardcode_direct_absolute_CXX=yes
15398 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
15399 hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
15400 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`"; then
15401 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-retain-symbols-file,$export_symbols -o $lib'
15402 export_dynamic_flag_spec_CXX='$wl-E'
15403 whole_archive_flag_spec_CXX=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
15405 output_verbose_link_cmd=func_echo_all
15411 osf3* | osf4* | osf5*)
15412 case $cc_basename in
15414 # Kuck and Associates, Inc. (KAI) C++ Compiler
15416 # KCC will only create a shared library if the output file
15417 # ends with ".so" (or ".sl" for HP-UX), so rename the library
15418 # to its proper name (with version) after linking.
15419 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'
15421 hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
15422 hardcode_libdir_separator_CXX=:
15424 # Archives containing C++ object files must be created using
15425 # the KAI C++ compiler.
15427 osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
15428 *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
15432 # Rational C++ 2.4.1
15433 # FIXME: insert proper C++ library support
15439 allow_undefined_flag_CXX=' $wl-expect_unresolved $wl\*'
15440 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'
15441 hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
15444 allow_undefined_flag_CXX=' -expect_unresolved \*'
15445 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'
15446 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
15447 echo "-hidden">> $lib.exp~
15448 $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~
15450 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
15454 hardcode_libdir_separator_CXX=:
15456 # Commands to make compiler produce verbose output that lists
15457 # what "hidden" libraries, object files and flags are used when
15458 # linking a shared library.
15460 # There doesn't appear to be a way to prevent this compiler from
15461 # explicitly linking system object files so we need to strip them
15462 # from the output so that they don't get included in the library
15464 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"'
15467 if test yes,no = "$GXX,$with_gnu_ld"; then
15468 allow_undefined_flag_CXX=' $wl-expect_unresolved $wl\*'
15471 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'
15474 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'
15478 hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
15479 hardcode_libdir_separator_CXX=:
15481 # Commands to make compiler produce verbose output that lists
15482 # what "hidden" libraries, object files and flags are used when
15483 # linking a shared library.
15484 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
15487 # FIXME: insert proper C++ library support
15495 # FIXME: insert proper C++ library support
15500 case $cc_basename in
15503 # FIXME: insert proper C++ library support
15508 # FIXME: insert proper C++ library support
15512 # FIXME: insert proper C++ library support
15519 case $cc_basename in
15521 # Sun C++ 4.2, 5.x and Centerline C++
15522 archive_cmds_need_lc_CXX=yes
15523 no_undefined_flag_CXX=' -zdefs'
15524 archive_cmds_CXX='$CC -G$allow_undefined_flag -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
15525 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
15526 $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'
15528 hardcode_libdir_flag_spec_CXX='-R$libdir'
15529 hardcode_shlibpath_var_CXX=no
15531 solaris2.[0-5] | solaris2.[0-5].*) ;;
15533 # The compiler driver will combine and reorder linker options,
15534 # but understands '-z linker_flag'.
15535 # Supported since Solaris 2.6 (maybe 2.5.1?)
15536 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
15539 link_all_deplibs_CXX=yes
15541 output_verbose_link_cmd='func_echo_all'
15543 # Archives containing C++ object files must be created using
15544 # "CC -xar", where "CC" is the Sun C++ compiler. This is
15545 # necessary to make sure instantiated templates are included
15547 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
15550 # Green Hills C++ Compiler
15551 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib'
15553 # The C++ compiler must be used to create the archive.
15554 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
15557 # GNU C++ compiler with Solaris linker
15558 if test yes,no = "$GXX,$with_gnu_ld"; then
15559 no_undefined_flag_CXX=' $wl-z ${wl}defs'
15560 if $CC --version | $GREP -v '^2\.7' > /dev/null; then
15561 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib'
15562 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
15563 $CC -shared $pic_flag -nostdlib $wl-M $wl$lib.exp $wl-h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
15565 # Commands to make compiler produce verbose output that lists
15566 # what "hidden" libraries, object files and flags are used when
15567 # linking a shared library.
15568 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
15570 # g++ 2.7 appears to require '-G' NOT '-shared' on this
15572 archive_cmds_CXX='$CC -G -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib'
15573 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
15574 $CC -G -nostdlib $wl-M $wl$lib.exp $wl-h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
15576 # Commands to make compiler produce verbose output that lists
15577 # what "hidden" libraries, object files and flags are used when
15578 # linking a shared library.
15579 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
15582 hardcode_libdir_flag_spec_CXX='$wl-R $wl$libdir'
15584 solaris2.[0-5] | solaris2.[0-5].*) ;;
15586 whole_archive_flag_spec_CXX='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
15594 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
15595 no_undefined_flag_CXX='$wl-z,text'
15596 archive_cmds_need_lc_CXX=no
15597 hardcode_shlibpath_var_CXX=no
15598 runpath_var='LD_RUN_PATH'
15600 case $cc_basename in
15602 archive_cmds_CXX='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15603 archive_expsym_cmds_CXX='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15606 archive_cmds_CXX='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15607 archive_expsym_cmds_CXX='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15612 sysv5* | sco3.2v5* | sco5v6*)
15613 # Note: We CANNOT use -z defs as we might desire, because we do not
15614 # link with -lc, and that would cause any symbols used from libc to
15615 # always be unresolved, which means just about no library would
15616 # ever link correctly. If we're not using GNU ld we use -z text
15617 # though, which does catch some bad symbols but isn't as heavy-handed
15619 no_undefined_flag_CXX='$wl-z,text'
15620 allow_undefined_flag_CXX='$wl-z,nodefs'
15621 archive_cmds_need_lc_CXX=no
15622 hardcode_shlibpath_var_CXX=no
15623 hardcode_libdir_flag_spec_CXX='$wl-R,$libdir'
15624 hardcode_libdir_separator_CXX=':'
15625 link_all_deplibs_CXX=yes
15626 export_dynamic_flag_spec_CXX='$wl-Bexport'
15627 runpath_var='LD_RUN_PATH'
15629 case $cc_basename in
15631 archive_cmds_CXX='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15632 archive_expsym_cmds_CXX='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15633 old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
15634 '"$old_archive_cmds_CXX"
15635 reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
15636 '"$reload_cmds_CXX"
15639 archive_cmds_CXX='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15640 archive_expsym_cmds_CXX='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15646 case $cc_basename in
15648 # NonStop-UX NCC 3.20
15649 # FIXME: insert proper C++ library support
15653 # FIXME: insert proper C++ library support
15660 # FIXME: insert proper C++ library support
15665 # FIXME: insert proper C++ library support
15670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
15671 $as_echo "$ld_shlibs_CXX" >&6; }
15672 test no = "$ld_shlibs_CXX" && can_build_shared=no
15678 ## There is no encapsulation within the following macros, do not change
15679 ## the running order or otherwise move them around unless you know exactly
15680 ## what you are doing...
15681 # Dependencies to place before and after the object being linked:
15682 predep_objects_CXX=
15683 postdep_objects_CXX=
15686 compiler_lib_search_path_CXX=
15688 cat > conftest.$ac_ext <<_LT_EOF
15692 Foo (void) { a = 0; }
15699 _lt_libdeps_save_CFLAGS=$CFLAGS
15700 case "$CC $CFLAGS " in #(
15701 *\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;;
15702 *\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;;
15703 *\ -fuse-linker-plugin*\ *) CFLAGS="$CFLAGS -fno-use-linker-plugin" ;;
15706 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
15707 (eval $ac_compile) 2>&5
15709 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15710 test $ac_status = 0; }; then
15711 # Parse the compiler output and extract the necessary
15712 # objects, libraries and library flags.
15714 # Sentinel used to keep track of whether or not we are before
15715 # the conftest object file.
15716 pre_test_object_deps_done=no
15718 for p in `eval "$output_verbose_link_cmd"`; do
15722 # Some compilers place space between "-{L,R}" and the path.
15723 # Remove the space.
15724 if test x-L = "$p" ||
15725 test x-R = "$p"; then
15730 # Expand the sysroot to ease extracting the directories later.
15731 if test -z "$prev"; then
15733 -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;;
15734 -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;;
15735 -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;;
15739 =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;;
15741 if test no = "$pre_test_object_deps_done"; then
15744 # Internal compiler library paths should come after those
15745 # provided the user. The postdeps already come after the
15746 # user supplied libs so there is no need to process them.
15747 if test -z "$compiler_lib_search_path_CXX"; then
15748 compiler_lib_search_path_CXX=$prev$p
15750 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} $prev$p"
15753 # The "-l" case would never come before the object being
15754 # linked, so don't bother handling this case.
15757 if test -z "$postdeps_CXX"; then
15758 postdeps_CXX=$prev$p
15760 postdeps_CXX="${postdeps_CXX} $prev$p"
15766 *.lto.$objext) ;; # Ignore GCC LTO objects
15768 # This assumes that the test object file only shows up
15769 # once in the compiler output.
15770 if test "$p" = "conftest.$objext"; then
15771 pre_test_object_deps_done=yes
15775 if test no = "$pre_test_object_deps_done"; then
15776 if test -z "$predep_objects_CXX"; then
15777 predep_objects_CXX=$p
15779 predep_objects_CXX="$predep_objects_CXX $p"
15782 if test -z "$postdep_objects_CXX"; then
15783 postdep_objects_CXX=$p
15785 postdep_objects_CXX="$postdep_objects_CXX $p"
15790 *) ;; # Ignore the rest.
15798 echo "libtool.m4: error: problem compiling CXX test program"
15801 $RM -f confest.$objext
15802 CFLAGS=$_lt_libdeps_save_CFLAGS
15804 # PORTME: override above test on systems where it is broken
15807 # Interix 3.5 installs completely hosed .la files for C++, so rather than
15808 # hack all around it, let's just trust "g++" to DTRT.
15809 predep_objects_CXX=
15810 postdep_objects_CXX=
15816 case " $postdeps_CXX " in
15817 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
15819 compiler_lib_search_dirs_CXX=
15820 if test -n "${compiler_lib_search_path_CXX}"; then
15821 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | $SED -e 's! -L! !g' -e 's!^ !!'`
15854 lt_prog_compiler_wl_CXX=
15855 lt_prog_compiler_pic_CXX=
15856 lt_prog_compiler_static_CXX=
15859 # C++ specific cases for pic, static, wl, etc.
15860 if test yes = "$GXX"; then
15861 lt_prog_compiler_wl_CXX='-Wl,'
15862 lt_prog_compiler_static_CXX='-static'
15866 # All AIX code is PIC.
15867 if test ia64 = "$host_cpu"; then
15868 # AIX 5 now supports IA64 processor
15869 lt_prog_compiler_static_CXX='-Bstatic'
15871 lt_prog_compiler_pic_CXX='-fPIC'
15877 # see comment about AmigaOS4 .so support
15878 lt_prog_compiler_pic_CXX='-fPIC'
15881 # FIXME: we need at least 68020 code to build shared libraries, but
15882 # adding the '-m68020' flag to GCC prevents building anything better,
15884 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
15889 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
15890 # PIC is the default for these OSes.
15892 mingw* | cygwin* | os2* | pw32* | cegcc*)
15893 # This hack is so that the source file can tell whether it is being
15894 # built for inclusion in a dll (and should export symbols for example).
15895 # Although the cygwin gcc ignores -fPIC, still need this for old-style
15896 # (--disable-auto-import) libraries
15897 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
15900 lt_prog_compiler_static_CXX='$wl-static'
15904 darwin* | rhapsody*)
15905 # PIC is the default on this platform
15906 # Common symbols not allowed in MH_DYLIB files
15907 lt_prog_compiler_pic_CXX='-fno-common'
15910 # DJGPP does not support shared libraries at all
15911 lt_prog_compiler_pic_CXX=
15914 # PIC is the default for Haiku.
15915 # The "-static" flag exists, but is broken.
15916 lt_prog_compiler_static_CXX=
15919 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
15920 # Instead, we relocate shared libraries at runtime.
15923 if test -d /usr/nec; then
15924 lt_prog_compiler_pic_CXX=-Kconform_pic
15928 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
15929 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
15930 # sets the default TLS model and affects inlining.
15935 lt_prog_compiler_pic_CXX='-fPIC'
15940 # QNX uses GNU C++, but need to define -shared option too, otherwise
15941 # it will coredump.
15942 lt_prog_compiler_pic_CXX='-fPIC -shared'
15945 lt_prog_compiler_pic_CXX='-fPIC'
15951 # All AIX code is PIC.
15952 if test ia64 = "$host_cpu"; then
15953 # AIX 5 now supports IA64 processor
15954 lt_prog_compiler_static_CXX='-Bstatic'
15956 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
15960 case $cc_basename in
15962 # Green Hills C++ Compiler
15963 # _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"
15967 mingw* | cygwin* | os2* | pw32* | cegcc*)
15968 # This hack is so that the source file can tell whether it is being
15969 # built for inclusion in a dll (and should export symbols for example).
15970 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
15973 case $cc_basename in
15975 lt_prog_compiler_pic_CXX='-KPIC'
15978 # Green Hills C++ Compiler
15979 lt_prog_compiler_pic_CXX='-pic'
15985 freebsd* | dragonfly*)
15986 # FreeBSD uses GNU C++
15988 hpux9* | hpux10* | hpux11*)
15989 case $cc_basename in
15991 lt_prog_compiler_wl_CXX='-Wl,'
15992 lt_prog_compiler_static_CXX='$wl-a ${wl}archive'
15993 if test ia64 != "$host_cpu"; then
15994 lt_prog_compiler_pic_CXX='+Z'
15998 lt_prog_compiler_wl_CXX='-Wl,'
15999 lt_prog_compiler_static_CXX='$wl-a ${wl}archive'
16005 lt_prog_compiler_pic_CXX='+Z'
16014 # This is c89, which is MS Visual C++ (no shared libs)
16015 # Anyone wants to do a port?
16017 irix5* | irix6* | nonstopux*)
16018 case $cc_basename in
16020 lt_prog_compiler_wl_CXX='-Wl,'
16021 lt_prog_compiler_static_CXX='-non_shared'
16022 # CC pic flag -KPIC is the default.
16028 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
16029 case $cc_basename in
16032 lt_prog_compiler_wl_CXX='--backend -Wl,'
16033 lt_prog_compiler_pic_CXX='-fPIC'
16036 # old Intel C++ for x86_64, which still supported -KPIC.
16037 lt_prog_compiler_wl_CXX='-Wl,'
16038 lt_prog_compiler_pic_CXX='-KPIC'
16039 lt_prog_compiler_static_CXX='-static'
16042 # Intel C++, used to be incompatible with GCC.
16043 # ICC 10 doesn't accept -KPIC any more.
16044 lt_prog_compiler_wl_CXX='-Wl,'
16045 lt_prog_compiler_pic_CXX='-fPIC'
16046 lt_prog_compiler_static_CXX='-static'
16049 # Portland Group C++ compiler
16050 lt_prog_compiler_wl_CXX='-Wl,'
16051 lt_prog_compiler_pic_CXX='-fpic'
16052 lt_prog_compiler_static_CXX='-Bstatic'
16056 # Make sure the PIC flag is empty. It appears that all Alpha
16057 # Linux and Compaq Tru64 Unix objects are PIC.
16058 lt_prog_compiler_pic_CXX=
16059 lt_prog_compiler_static_CXX='-non_shared'
16061 xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
16062 # IBM XL 8.0, 9.0 on PPC and BlueGene
16063 lt_prog_compiler_wl_CXX='-Wl,'
16064 lt_prog_compiler_pic_CXX='-qpic'
16065 lt_prog_compiler_static_CXX='-qstaticlink'
16068 case `$CC -V 2>&1 | sed 5q` in
16071 lt_prog_compiler_pic_CXX='-KPIC'
16072 lt_prog_compiler_static_CXX='-Bstatic'
16073 lt_prog_compiler_wl_CXX='-Qoption ld '
16084 case $cc_basename in
16086 lt_prog_compiler_pic_CXX='-W c,exportall'
16095 # QNX uses GNU C++, but need to define -shared option too, otherwise
16096 # it will coredump.
16097 lt_prog_compiler_pic_CXX='-fPIC -shared'
16099 osf3* | osf4* | osf5*)
16100 case $cc_basename in
16102 lt_prog_compiler_wl_CXX='--backend -Wl,'
16105 # Rational C++ 2.4.1
16106 lt_prog_compiler_pic_CXX='-pic'
16109 # Digital/Compaq C++
16110 lt_prog_compiler_wl_CXX='-Wl,'
16111 # Make sure the PIC flag is empty. It appears that all Alpha
16112 # Linux and Compaq Tru64 Unix objects are PIC.
16113 lt_prog_compiler_pic_CXX=
16114 lt_prog_compiler_static_CXX='-non_shared'
16123 case $cc_basename in
16125 # Sun C++ 4.2, 5.x and Centerline C++
16126 lt_prog_compiler_pic_CXX='-KPIC'
16127 lt_prog_compiler_static_CXX='-Bstatic'
16128 lt_prog_compiler_wl_CXX='-Qoption ld '
16131 # Green Hills C++ Compiler
16132 lt_prog_compiler_pic_CXX='-PIC'
16139 case $cc_basename in
16142 lt_prog_compiler_pic_CXX='-pic'
16143 lt_prog_compiler_static_CXX='-Bstatic'
16147 lt_prog_compiler_pic_CXX='-pic'
16153 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
16154 case $cc_basename in
16156 lt_prog_compiler_wl_CXX='-Wl,'
16157 lt_prog_compiler_pic_CXX='-KPIC'
16158 lt_prog_compiler_static_CXX='-Bstatic'
16163 case $cc_basename in
16165 # NonStop-UX NCC 3.20
16166 lt_prog_compiler_pic_CXX='-KPIC'
16175 lt_prog_compiler_can_build_shared_CXX=no
16181 # For platforms that do not support PIC, -DPIC is meaningless:
16183 lt_prog_compiler_pic_CXX=
16186 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
16190 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
16191 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
16192 if ${lt_cv_prog_compiler_pic_CXX+:} false; then :
16193 $as_echo_n "(cached) " >&6
16195 lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX
16197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_CXX" >&5
16198 $as_echo "$lt_cv_prog_compiler_pic_CXX" >&6; }
16199 lt_prog_compiler_pic_CXX=$lt_cv_prog_compiler_pic_CXX
16202 # Check to make sure the PIC flag actually works.
16204 if test -n "$lt_prog_compiler_pic_CXX"; then
16205 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
16206 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
16207 if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then :
16208 $as_echo_n "(cached) " >&6
16210 lt_cv_prog_compiler_pic_works_CXX=no
16211 ac_outfile=conftest.$ac_objext
16212 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16213 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC" ## exclude from sc_useless_quotes_in_assignment
16214 # Insert the option either (1) after the last *FLAGS variable, or
16215 # (2) before a word containing "conftest.", or (3) at the end.
16216 # Note that $ac_compile itself does not contain backslashes and begins
16217 # with a dollar sign (not a hyphen), so the echo should work correctly.
16218 # The option is referenced via a variable to avoid confusing sed.
16219 lt_compile=`echo "$ac_compile" | $SED \
16220 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16221 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16222 -e 's:$: $lt_compiler_flag:'`
16223 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
16224 (eval "$lt_compile" 2>conftest.err)
16226 cat conftest.err >&5
16227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16228 if (exit $ac_status) && test -s "$ac_outfile"; then
16229 # The compiler can only warn and ignore the option if not recognized
16230 # So say no if there are warnings other than the usual output.
16231 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
16232 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16233 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
16234 lt_cv_prog_compiler_pic_works_CXX=yes
16240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
16241 $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
16243 if test yes = "$lt_cv_prog_compiler_pic_works_CXX"; then
16244 case $lt_prog_compiler_pic_CXX in
16246 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
16249 lt_prog_compiler_pic_CXX=
16250 lt_prog_compiler_can_build_shared_CXX=no
16260 # Check to make sure the static flag actually works.
16262 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
16263 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
16264 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
16265 if ${lt_cv_prog_compiler_static_works_CXX+:} false; then :
16266 $as_echo_n "(cached) " >&6
16268 lt_cv_prog_compiler_static_works_CXX=no
16269 save_LDFLAGS=$LDFLAGS
16270 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
16271 echo "$lt_simple_link_test_code" > conftest.$ac_ext
16272 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
16273 # The linker can only warn and ignore the option if not recognized
16274 # So say no if there are warnings
16275 if test -s conftest.err; then
16276 # Append any errors to the config.log.
16277 cat conftest.err 1>&5
16278 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
16279 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16280 if diff conftest.exp conftest.er2 >/dev/null; then
16281 lt_cv_prog_compiler_static_works_CXX=yes
16284 lt_cv_prog_compiler_static_works_CXX=yes
16288 LDFLAGS=$save_LDFLAGS
16291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
16292 $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
16294 if test yes = "$lt_cv_prog_compiler_static_works_CXX"; then
16297 lt_prog_compiler_static_CXX=
16303 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
16304 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
16305 if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
16306 $as_echo_n "(cached) " >&6
16308 lt_cv_prog_compiler_c_o_CXX=no
16309 $RM -r conftest 2>/dev/null
16313 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16315 lt_compiler_flag="-o out/conftest2.$ac_objext"
16316 # Insert the option either (1) after the last *FLAGS variable, or
16317 # (2) before a word containing "conftest.", or (3) at the end.
16318 # Note that $ac_compile itself does not contain backslashes and begins
16319 # with a dollar sign (not a hyphen), so the echo should work correctly.
16320 lt_compile=`echo "$ac_compile" | $SED \
16321 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16322 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16323 -e 's:$: $lt_compiler_flag:'`
16324 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
16325 (eval "$lt_compile" 2>out/conftest.err)
16327 cat out/conftest.err >&5
16328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16329 if (exit $ac_status) && test -s out/conftest2.$ac_objext
16331 # The compiler can only warn and ignore the option if not recognized
16332 # So say no if there are warnings
16333 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
16334 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
16335 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
16336 lt_cv_prog_compiler_c_o_CXX=yes
16341 # SGI C++ compiler will create directory out/ii_files/ for
16342 # template instantiation
16343 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
16344 $RM out/* && rmdir out
16350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
16351 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
16355 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
16356 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
16357 if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
16358 $as_echo_n "(cached) " >&6
16360 lt_cv_prog_compiler_c_o_CXX=no
16361 $RM -r conftest 2>/dev/null
16365 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16367 lt_compiler_flag="-o out/conftest2.$ac_objext"
16368 # Insert the option either (1) after the last *FLAGS variable, or
16369 # (2) before a word containing "conftest.", or (3) at the end.
16370 # Note that $ac_compile itself does not contain backslashes and begins
16371 # with a dollar sign (not a hyphen), so the echo should work correctly.
16372 lt_compile=`echo "$ac_compile" | $SED \
16373 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16374 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16375 -e 's:$: $lt_compiler_flag:'`
16376 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
16377 (eval "$lt_compile" 2>out/conftest.err)
16379 cat out/conftest.err >&5
16380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16381 if (exit $ac_status) && test -s out/conftest2.$ac_objext
16383 # The compiler can only warn and ignore the option if not recognized
16384 # So say no if there are warnings
16385 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
16386 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
16387 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
16388 lt_cv_prog_compiler_c_o_CXX=yes
16393 # SGI C++ compiler will create directory out/ii_files/ for
16394 # template instantiation
16395 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
16396 $RM out/* && rmdir out
16402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
16403 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
16408 hard_links=nottested
16409 if test no = "$lt_cv_prog_compiler_c_o_CXX" && test no != "$need_locks"; then
16410 # do not overwrite the value of need_locks provided by the user
16411 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
16412 $as_echo_n "checking if we can lock with hard links... " >&6; }
16415 ln conftest.a conftest.b 2>/dev/null && hard_links=no
16417 ln conftest.a conftest.b 2>&5 || hard_links=no
16418 ln conftest.a conftest.b 2>/dev/null && hard_links=no
16419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
16420 $as_echo "$hard_links" >&6; }
16421 if test no = "$hard_links"; then
16422 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
16423 $as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
16432 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
16433 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
16435 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
16436 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
16439 # If we're using GNU nm, then we don't want the "-C" option.
16440 # -C means demangle to GNU nm, but means don't demangle to AIX nm.
16441 # Without the "-l" option, or with the "-B" option, AIX nm treats
16442 # weak defined symbols like other global defined symbols, whereas
16443 # GNU nm marks them as "W".
16444 # While the 'weak' keyword is ignored in the Export File, we need
16445 # it in the Import File for the 'aix-soname' feature, so we have
16446 # to replace the "-B" option with "-P" for AIX nm.
16447 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
16448 export_symbols_cmds_CXX='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { if (\$ 2 == "W") { print \$ 3 " weak" } else { print \$ 3 } } }'\'' | sort -u > $export_symbols'
16450 export_symbols_cmds_CXX='`func_echo_all $NM | $SED -e '\''s/B\([^B]*\)$/P\1/'\''` -PCpgl $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) && (substr(\$ 1,1,1) != ".")) { if ((\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) { print \$ 1 " weak" } else { print \$ 1 } } }'\'' | sort -u > $export_symbols'
16454 export_symbols_cmds_CXX=$ltdll_cmds
16456 cygwin* | mingw* | cegcc*)
16457 case $cc_basename in
16459 exclude_expsyms_CXX='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
16462 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'
16463 exclude_expsyms_CXX='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
16468 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
16472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
16473 $as_echo "$ld_shlibs_CXX" >&6; }
16474 test no = "$ld_shlibs_CXX" && can_build_shared=no
16476 with_gnu_ld_CXX=$with_gnu_ld
16484 # Do we need to explicitly link libc?
16486 case "x$archive_cmds_need_lc_CXX" in
16488 # Assume -lc should be added
16489 archive_cmds_need_lc_CXX=yes
16491 if test yes,yes = "$GCC,$enable_shared"; then
16492 case $archive_cmds_CXX in
16494 # FIXME: we may have to deal with multi-command sequences.
16497 # Test whether the compiler implicitly links with -lc since on some
16498 # systems, -lgcc has to come before -lc. If gcc already passes -lc
16499 # to ld, don't add -lc before -lgcc.
16500 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
16501 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
16502 if ${lt_cv_archive_cmds_need_lc_CXX+:} false; then :
16503 $as_echo_n "(cached) " >&6
16506 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16508 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
16509 (eval $ac_compile) 2>&5
16511 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16512 test $ac_status = 0; } 2>conftest.err; then
16515 libobjs=conftest.$ac_objext
16517 wl=$lt_prog_compiler_wl_CXX
16518 pic_flag=$lt_prog_compiler_pic_CXX
16524 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
16525 allow_undefined_flag_CXX=
16526 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
16527 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
16529 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16530 test $ac_status = 0; }
16532 lt_cv_archive_cmds_need_lc_CXX=no
16534 lt_cv_archive_cmds_need_lc_CXX=yes
16536 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
16538 cat conftest.err 1>&5
16543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
16544 $as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
16545 archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
16613 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
16614 $as_echo_n "checking dynamic linker characteristics... " >&6; }
16616 library_names_spec=
16617 libname_spec='lib$name'
16621 postuninstall_cmds=
16625 shlibpath_overrides_runpath=unknown
16627 dynamic_linker="$host_os ld.so"
16628 sys_lib_dlsearch_path_spec="/lib /usr/lib"
16629 need_lib_prefix=unknown
16630 hardcode_into_libs=no
16632 # when you set need_version to no, make sure it does not cause -set_version
16633 # flags to be left without arguments
16634 need_version=unknown
16640 version_type=linux # correct to gnu/linux during the next big refactor
16641 library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
16642 shlibpath_var=LIBPATH
16644 # AIX 3 has no versioning support, so we append a major version to the name.
16645 soname_spec='$libname$release$shared_ext$major'
16649 version_type=linux # correct to gnu/linux during the next big refactor
16652 hardcode_into_libs=yes
16653 if test ia64 = "$host_cpu"; then
16654 # AIX 5 supports IA64
16655 library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
16656 shlibpath_var=LD_LIBRARY_PATH
16658 # With GCC up to 2.95.x, collect2 would create an import file
16659 # for dependence libraries. The import file would start with
16660 # the line '#! .'. This would cause the generated library to
16661 # depend on '.', always an invalid library. This was fixed in
16662 # development snapshots of GCC prior to 3.0.
16664 aix4 | aix4.[01] | aix4.[01].*)
16665 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
16667 echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
16670 can_build_shared=no
16674 # Using Import Files as archive members, it is possible to support
16675 # filename-based versioning of shared library archives on AIX. While
16676 # this would work for both with and without runtime linking, it will
16677 # prevent static linking of such archives. So we do filename-based
16678 # shared library versioning with .so extension only, which is used
16679 # when both runtime linking and shared linking is enabled.
16680 # Unfortunately, runtime linking may impact performance, so we do
16681 # not want this to be the default eventually. Also, we use the
16682 # versioned .so libs for executables only if there is the -brtl
16683 # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
16684 # To allow for filename-based versioning support, we need to create
16685 # libNAME.so.V as an archive file, containing:
16686 # *) an Import File, referring to the versioned filename of the
16687 # archive as well as the shared archive member, telling the
16688 # bitwidth (32 or 64) of that shared object, and providing the
16689 # list of exported symbols of that shared object, eventually
16690 # decorated with the 'weak' keyword
16691 # *) the shared object with the F_LOADONLY flag set, to really avoid
16692 # it being seen by the linker.
16693 # At run time we better use the real file rather than another symlink,
16694 # but for link time we create the symlink libNAME.so -> libNAME.so.V
16696 case $with_aix_soname,$aix_use_runtimelinking in
16697 # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
16698 # soname into executable. Probably we can add versioning support to
16699 # collect2, so additional links can be useful in future.
16700 aix,yes) # traditional libtool
16701 dynamic_linker='AIX unversionable lib.so'
16702 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
16703 # instead of lib<name>.a to let people know that these are not
16704 # typical AIX shared libraries.
16705 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16707 aix,no) # traditional AIX only
16708 dynamic_linker='AIX lib.a(lib.so.V)'
16709 # We preserve .a as extension for shared libraries through AIX4.2
16710 # and later when we are not doing run time linking.
16711 library_names_spec='$libname$release.a $libname.a'
16712 soname_spec='$libname$release$shared_ext$major'
16714 svr4,*) # full svr4 only
16715 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
16716 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
16717 # We do not specify a path in Import Files, so LIBPATH fires.
16718 shlibpath_overrides_runpath=yes
16720 *,yes) # both, prefer svr4
16721 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
16722 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
16723 # unpreferred sharedlib libNAME.a needs extra handling
16724 postinstall_cmds='test -n "$linkname" || linkname="$realname"~func_stripname "" ".so" "$linkname"~$install_shared_prog "$dir/$func_stripname_result.$libext" "$destdir/$func_stripname_result.$libext"~test -z "$tstripme" || test -z "$striplib" || $striplib "$destdir/$func_stripname_result.$libext"'
16725 postuninstall_cmds='for n in $library_names $old_library; do :; done~func_stripname "" ".so" "$n"~test "$func_stripname_result" = "$n" || func_append rmfiles " $odir/$func_stripname_result.$libext"'
16726 # We do not specify a path in Import Files, so LIBPATH fires.
16727 shlibpath_overrides_runpath=yes
16729 *,no) # both, prefer aix
16730 dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
16731 library_names_spec='$libname$release.a $libname.a'
16732 soname_spec='$libname$release$shared_ext$major'
16733 # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
16734 postinstall_cmds='test -z "$dlname" || $install_shared_prog $dir/$dlname $destdir/$dlname~test -z "$tstripme" || test -z "$striplib" || $striplib $destdir/$dlname~test -n "$linkname" || linkname=$realname~func_stripname "" ".a" "$linkname"~(cd "$destdir" && $LN_S -f $dlname $func_stripname_result.so)'
16735 postuninstall_cmds='test -z "$dlname" || func_append rmfiles " $odir/$dlname"~for n in $old_library $library_names; do :; done~func_stripname "" ".a" "$n"~func_append rmfiles " $odir/$func_stripname_result.so"'
16738 shlibpath_var=LIBPATH
16745 # Since July 2007 AmigaOS4 officially supports .so libraries.
16746 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
16747 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16750 library_names_spec='$libname.ixlibrary $libname.a'
16751 # Create ${libname}_ixlibrary.a entries in /sys/libs.
16752 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; $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'
16758 library_names_spec='$libname$shared_ext'
16759 dynamic_linker="$host_os ld.so"
16760 shlibpath_var=LIBRARY_PATH
16764 version_type=linux # correct to gnu/linux during the next big refactor
16766 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16767 soname_spec='$libname$release$shared_ext$major'
16768 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
16769 shlibpath_var=LD_LIBRARY_PATH
16770 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
16771 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
16772 # the default ld.so.conf also contains /usr/contrib/lib and
16773 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
16774 # libtool to hard-code these into programs
16777 cygwin* | mingw* | pw32* | cegcc*)
16778 version_type=windows
16783 case $GCC,$cc_basename in
16786 library_names_spec='$libname.dll.a'
16787 # DLL is installed to $(libdir)/../bin by postinstall_cmds
16788 postinstall_cmds='base_file=`basename \$file`~
16789 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
16790 dldir=$destdir/`dirname \$dlpath`~
16791 test -d \$dldir || mkdir -p \$dldir~
16792 $install_prog $dir/$dlname \$dldir/$dlname~
16793 chmod a+x \$dldir/$dlname~
16794 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
16795 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
16797 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16798 dlpath=$dir/\$dldll~
16800 shlibpath_overrides_runpath=yes
16804 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
16805 soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
16809 # MinGW DLLs use traditional 'lib' prefix
16810 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
16813 # pw32 DLLs use 'pw' prefix rather than 'lib'
16814 library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
16817 dynamic_linker='Win32 ld.exe'
16822 libname_spec='$name'
16823 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
16824 library_names_spec='$libname.dll.lib'
16828 sys_lib_search_path_spec=
16831 for lt_path in $LIB
16834 # Let DOS variable expansion print the short 8.3 style file name.
16835 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
16836 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
16839 # Convert to MSYS style.
16840 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
16843 # Convert to unix form, then to dos form, then back to unix form
16844 # but this time dos style (no spaces!) so that the unix form looks
16845 # like /cygdrive/c/PROGRA~1:/cygdr...
16846 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
16847 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
16848 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16851 sys_lib_search_path_spec=$LIB
16852 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
16853 # It is most probably a Windows format PATH.
16854 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16856 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16858 # FIXME: find the short name or the path components, as spaces are
16859 # common. (e.g. "Program Files" -> "PROGRA~1")
16863 # DLL is installed to $(libdir)/../bin by postinstall_cmds
16864 postinstall_cmds='base_file=`basename \$file`~
16865 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
16866 dldir=$destdir/`dirname \$dlpath`~
16867 test -d \$dldir || mkdir -p \$dldir~
16868 $install_prog $dir/$dlname \$dldir/$dlname'
16869 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16870 dlpath=$dir/\$dldll~
16872 shlibpath_overrides_runpath=yes
16873 dynamic_linker='Win32 link.exe'
16877 # Assume MSVC wrapper
16878 library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
16879 dynamic_linker='Win32 ld.exe'
16882 # FIXME: first we should search . and the directory the executable is in
16886 darwin* | rhapsody*)
16887 dynamic_linker="$host_os dyld"
16888 version_type=darwin
16891 library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
16892 soname_spec='$libname$release$major$shared_ext'
16893 shlibpath_overrides_runpath=yes
16894 shlibpath_var=DYLD_LIBRARY_PATH
16895 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
16897 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
16901 version_type=linux # correct to gnu/linux during the next big refactor
16904 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16905 soname_spec='$libname$release$shared_ext$major'
16906 shlibpath_var=LD_LIBRARY_PATH
16909 freebsd* | dragonfly*)
16910 # DragonFly does not have aout. When/if they implement a new
16911 # versioning mechanism, adjust this.
16912 if test -x /usr/bin/objformat; then
16913 objformat=`/usr/bin/objformat`
16916 freebsd[23].*) objformat=aout ;;
16917 *) objformat=elf ;;
16920 version_type=freebsd-$objformat
16921 case $version_type in
16923 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16924 soname_spec='$libname$release$shared_ext$major'
16929 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
16933 shlibpath_var=LD_LIBRARY_PATH
16936 shlibpath_overrides_runpath=yes
16938 freebsd3.[01]* | freebsdelf3.[01]*)
16939 shlibpath_overrides_runpath=yes
16940 hardcode_into_libs=yes
16942 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
16943 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
16944 shlibpath_overrides_runpath=no
16945 hardcode_into_libs=yes
16947 *) # from 4.6 on, and DragonFly
16948 shlibpath_overrides_runpath=yes
16949 hardcode_into_libs=yes
16955 version_type=linux # correct to gnu/linux during the next big refactor
16958 dynamic_linker="$host_os runtime_loader"
16959 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16960 soname_spec='$libname$release$shared_ext$major'
16961 shlibpath_var=LIBRARY_PATH
16962 shlibpath_overrides_runpath=no
16963 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
16964 hardcode_into_libs=yes
16967 hpux9* | hpux10* | hpux11*)
16968 # Give a soname corresponding to the major version so that dld.sl refuses to
16969 # link against other versions.
16976 hardcode_into_libs=yes
16977 dynamic_linker="$host_os dld.so"
16978 shlibpath_var=LD_LIBRARY_PATH
16979 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16980 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16981 soname_spec='$libname$release$shared_ext$major'
16982 if test 32 = "$HPUX_IA64_MODE"; then
16983 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
16984 sys_lib_dlsearch_path_spec=/usr/lib/hpux32
16986 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
16987 sys_lib_dlsearch_path_spec=/usr/lib/hpux64
16992 hardcode_into_libs=yes
16993 dynamic_linker="$host_os dld.sl"
16994 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
16995 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16996 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16997 soname_spec='$libname$release$shared_ext$major'
16998 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
16999 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17003 dynamic_linker="$host_os dld.sl"
17004 shlibpath_var=SHLIB_PATH
17005 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
17006 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17007 soname_spec='$libname$release$shared_ext$major'
17010 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
17011 postinstall_cmds='chmod 555 $lib'
17012 # or fails outright, so override atomically:
17013 install_override_mode=555
17017 version_type=linux # correct to gnu/linux during the next big refactor
17020 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17021 soname_spec='$libname$release$shared_ext$major'
17022 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
17023 shlibpath_var=LD_LIBRARY_PATH
17024 shlibpath_overrides_runpath=no
17025 hardcode_into_libs=yes
17028 irix5* | irix6* | nonstopux*)
17030 nonstopux*) version_type=nonstopux ;;
17032 if test yes = "$lt_cv_prog_gnu_ld"; then
17033 version_type=linux # correct to gnu/linux during the next big refactor
17040 soname_spec='$libname$release$shared_ext$major'
17041 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
17043 irix5* | nonstopux*)
17044 libsuff= shlibsuff=
17047 case $LD in # libtool.m4 will add one of these switches to LD
17048 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
17049 libsuff= shlibsuff= libmagic=32-bit;;
17050 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
17051 libsuff=32 shlibsuff=N32 libmagic=N32;;
17052 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
17053 libsuff=64 shlibsuff=64 libmagic=64-bit;;
17054 *) libsuff= shlibsuff= libmagic=never-match;;
17058 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
17059 shlibpath_overrides_runpath=no
17060 sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
17061 sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
17062 hardcode_into_libs=yes
17065 # No shared lib support for Linux oldld, aout, or coff.
17066 linux*oldld* | linux*aout* | linux*coff*)
17071 version_type=none # Android doesn't support versioned libraries.
17074 library_names_spec='$libname$release$shared_ext'
17075 soname_spec='$libname$release$shared_ext'
17077 shlibpath_var=LD_LIBRARY_PATH
17078 shlibpath_overrides_runpath=yes
17080 # This implies no fast_install, which is unacceptable.
17081 # Some rework will be needed to allow for fast_install
17082 # before this can be enabled.
17083 hardcode_into_libs=yes
17085 dynamic_linker='Android linker'
17086 # Don't embed -rpath directories since the linker doesn't support them.
17087 hardcode_libdir_flag_spec_CXX='-L$libdir'
17090 # This must be glibc/ELF.
17091 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
17092 version_type=linux # correct to gnu/linux during the next big refactor
17095 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17096 soname_spec='$libname$release$shared_ext$major'
17097 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
17098 shlibpath_var=LD_LIBRARY_PATH
17099 shlibpath_overrides_runpath=no
17101 # Some binutils ld are patched to set DT_RUNPATH
17102 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
17103 $as_echo_n "(cached) " >&6
17105 lt_cv_shlibpath_overrides_runpath=no
17106 save_LDFLAGS=$LDFLAGS
17107 save_libdir=$libdir
17108 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
17109 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
17110 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17111 /* end confdefs.h. */
17121 if ac_fn_cxx_try_link "$LINENO"; then :
17122 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
17123 lt_cv_shlibpath_overrides_runpath=yes
17126 rm -f core conftest.err conftest.$ac_objext \
17127 conftest$ac_exeext conftest.$ac_ext
17128 LDFLAGS=$save_LDFLAGS
17129 libdir=$save_libdir
17133 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
17135 # This implies no fast_install, which is unacceptable.
17136 # Some rework will be needed to allow for fast_install
17137 # before this can be enabled.
17138 hardcode_into_libs=yes
17140 # Ideally, we could use ldconfig to report *all* directores which are
17141 # searched for libraries, however this is still not possible. Aside from not
17142 # being certain /sbin/ldconfig is available, command
17143 # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
17144 # even though it is searched at run-time. Try to do the best guess by
17145 # appending ld.so.conf contents (and includes) to the search path.
17146 if test -f /etc/ld.so.conf; then
17147 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' ' '`
17148 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
17151 # We used to test for /lib/ld.so.1 and disable shared libraries on
17152 # powerpc, because MkLinux only supported shared libraries with the
17153 # GNU dynamic linker. Since this was broken with cross compilers,
17154 # most powerpc-linux boxes support dynamic linking these days and
17155 # people can always --disable-shared, the test was removed, and we
17156 # assume the GNU/Linux dynamic linker is in use.
17157 dynamic_linker='GNU/Linux ld.so'
17164 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
17165 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
17166 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17167 dynamic_linker='NetBSD (a.out) ld.so'
17169 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17170 soname_spec='$libname$release$shared_ext$major'
17171 dynamic_linker='NetBSD ld.elf_so'
17173 shlibpath_var=LD_LIBRARY_PATH
17174 shlibpath_overrides_runpath=yes
17175 hardcode_into_libs=yes
17179 version_type=linux # correct to gnu/linux during the next big refactor
17180 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17181 shlibpath_var=LD_LIBRARY_PATH
17182 shlibpath_overrides_runpath=yes
17189 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17190 soname_spec='$libname$release$shared_ext$major'
17191 shlibpath_var=LD_LIBRARY_PATH
17192 shlibpath_overrides_runpath=no
17193 hardcode_into_libs=yes
17194 dynamic_linker='ldqnx.so'
17197 openbsd* | bitrig*)
17199 sys_lib_dlsearch_path_spec=/usr/lib
17201 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
17206 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
17207 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17208 shlibpath_var=LD_LIBRARY_PATH
17209 shlibpath_overrides_runpath=yes
17213 libname_spec='$name'
17214 version_type=windows
17218 # OS/2 can only load a DLL with a base name of 8 characters or less.
17219 soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
17220 v=$($ECHO $release$versuffix | tr -d .-);
17221 n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
17222 $ECHO $n$v`$shared_ext'
17223 library_names_spec='${libname}_dll.$libext'
17224 dynamic_linker='OS/2 ld.exe'
17225 shlibpath_var=BEGINLIBPATH
17226 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
17227 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17228 postinstall_cmds='base_file=`basename \$file`~
17229 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
17230 dldir=$destdir/`dirname \$dlpath`~
17231 test -d \$dldir || mkdir -p \$dldir~
17232 $install_prog $dir/$dlname \$dldir/$dlname~
17233 chmod a+x \$dldir/$dlname~
17234 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
17235 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
17237 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
17238 dlpath=$dir/\$dldll~
17242 osf3* | osf4* | osf5*)
17246 soname_spec='$libname$release$shared_ext$major'
17247 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17248 shlibpath_var=LD_LIBRARY_PATH
17249 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
17250 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17258 version_type=linux # correct to gnu/linux during the next big refactor
17261 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17262 soname_spec='$libname$release$shared_ext$major'
17263 shlibpath_var=LD_LIBRARY_PATH
17264 shlibpath_overrides_runpath=yes
17265 hardcode_into_libs=yes
17266 # ldd complains unless libraries are executable
17267 postinstall_cmds='chmod +x $lib'
17272 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
17273 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
17274 shlibpath_var=LD_LIBRARY_PATH
17275 shlibpath_overrides_runpath=yes
17276 if test yes = "$with_gnu_ld"; then
17283 version_type=linux # correct to gnu/linux during the next big refactor
17284 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17285 soname_spec='$libname$release$shared_ext$major'
17286 shlibpath_var=LD_LIBRARY_PATH
17287 case $host_vendor in
17289 shlibpath_overrides_runpath=no
17291 runpath_var=LD_RUN_PATH
17299 shlibpath_overrides_runpath=no
17300 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
17306 if test -d /usr/nec; then
17307 version_type=linux # correct to gnu/linux during the next big refactor
17308 library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
17309 soname_spec='$libname$shared_ext.$major'
17310 shlibpath_var=LD_LIBRARY_PATH
17314 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
17318 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
17319 soname_spec='$libname$release$shared_ext$major'
17320 shlibpath_var=LD_LIBRARY_PATH
17321 shlibpath_overrides_runpath=yes
17322 hardcode_into_libs=yes
17323 if test yes = "$with_gnu_ld"; then
17324 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
17326 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
17329 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
17333 sys_lib_dlsearch_path_spec='/usr/lib'
17337 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
17338 version_type=linux # correct to gnu/linux during the next big refactor
17341 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17342 shlibpath_var=LD_LIBRARY_PATH
17343 shlibpath_overrides_runpath=no
17344 hardcode_into_libs=yes
17348 version_type=linux # correct to gnu/linux during the next big refactor
17349 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17350 soname_spec='$libname$release$shared_ext$major'
17351 shlibpath_var=LD_LIBRARY_PATH
17358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
17359 $as_echo "$dynamic_linker" >&6; }
17360 test no = "$dynamic_linker" && can_build_shared=no
17362 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
17363 if test yes = "$GCC"; then
17364 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
17367 if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
17368 sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
17371 if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
17372 sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
17375 # remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
17376 configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
17378 # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
17379 func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
17381 # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
17382 configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
17423 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
17424 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
17425 hardcode_action_CXX=
17426 if test -n "$hardcode_libdir_flag_spec_CXX" ||
17427 test -n "$runpath_var_CXX" ||
17428 test yes = "$hardcode_automatic_CXX"; then
17430 # We can hardcode non-existent directories.
17431 if test no != "$hardcode_direct_CXX" &&
17432 # If the only mechanism to avoid hardcoding is shlibpath_var, we
17433 # have to relink, otherwise we might link with an installed library
17434 # when we should be linking with a yet-to-be-installed one
17435 ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" &&
17436 test no != "$hardcode_minus_L_CXX"; then
17437 # Linking always hardcodes the temporary library directory.
17438 hardcode_action_CXX=relink
17440 # We can link without hardcoding, and we can hardcode nonexisting dirs.
17441 hardcode_action_CXX=immediate
17444 # We cannot hardcode anything, or else we can only hardcode existing
17446 hardcode_action_CXX=unsupported
17448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
17449 $as_echo "$hardcode_action_CXX" >&6; }
17451 if test relink = "$hardcode_action_CXX" ||
17452 test yes = "$inherit_rpath_CXX"; then
17453 # Fast installation is not supported
17454 enable_fast_install=no
17455 elif test yes = "$shlibpath_overrides_runpath" ||
17456 test no = "$enable_shared"; then
17457 # Fast installation is not necessary
17458 enable_fast_install=needless
17467 fi # test -n "$compiler"
17470 CFLAGS=$lt_save_CFLAGS
17474 with_gnu_ld=$lt_save_with_gnu_ld
17475 lt_cv_path_LDCXX=$lt_cv_path_LD
17476 lt_cv_path_LD=$lt_save_path_LD
17477 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
17478 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
17479 fi # test yes != "$_lt_caught_CXX_error"
17482 ac_cpp='$CPP $CPPFLAGS'
17483 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17484 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17485 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17501 ac_config_commands="$ac_config_commands libtool"
17506 # Only expand once:
17509 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
17510 $as_echo_n "checking whether ln -s works... " >&6; }
17512 if test "$LN_S" = "ln -s"; then
17513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17514 $as_echo "yes" >&6; }
17516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
17517 $as_echo "no, using $LN_S" >&6; }
17521 # Check for GCC visibility feature
17526 VISIBILITY_CXXFLAGS=
17528 if test -n "$GCC"; then
17529 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the -Werror option is usable" >&5
17530 $as_echo_n "checking whether the -Werror option is usable... " >&6; }
17531 if ${pcre_cv_cc_vis_werror+:} false; then :
17532 $as_echo_n "(cached) " >&6
17535 pcre_save_CFLAGS="$CFLAGS"
17536 CFLAGS="$CFLAGS -Werror"
17537 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17538 /* end confdefs.h. */
17548 if ac_fn_c_try_compile "$LINENO"; then :
17549 pcre_cv_cc_vis_werror=yes
17551 pcre_cv_cc_vis_werror=no
17553 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17554 CFLAGS="$pcre_save_CFLAGS"
17557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pcre_cv_cc_vis_werror" >&5
17558 $as_echo "$pcre_cv_cc_vis_werror" >&6; }
17559 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for simple visibility declarations" >&5
17560 $as_echo_n "checking for simple visibility declarations... " >&6; }
17561 if ${pcre_cv_cc_visibility+:} false; then :
17562 $as_echo_n "(cached) " >&6
17565 pcre_save_CFLAGS="$CFLAGS"
17566 CFLAGS="$CFLAGS -fvisibility=hidden"
17567 if test $pcre_cv_cc_vis_werror = yes; then
17568 CFLAGS="$CFLAGS -Werror"
17570 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17571 /* end confdefs.h. */
17572 extern __attribute__((__visibility__("hidden"))) int hiddenvar;
17573 extern __attribute__((__visibility__("default"))) int exportedvar;
17574 extern __attribute__((__visibility__("hidden"))) int hiddenfunc (void);
17575 extern __attribute__((__visibility__("default"))) int exportedfunc (void);
17576 void dummyfunc (void) {}
17586 if ac_fn_c_try_compile "$LINENO"; then :
17587 pcre_cv_cc_visibility=yes
17589 pcre_cv_cc_visibility=no
17591 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17592 CFLAGS="$pcre_save_CFLAGS"
17595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pcre_cv_cc_visibility" >&5
17596 $as_echo "$pcre_cv_cc_visibility" >&6; }
17597 if test $pcre_cv_cc_visibility = yes; then
17598 VISIBILITY_CFLAGS="-fvisibility=hidden"
17599 VISIBILITY_CXXFLAGS="-fvisibility=hidden -fvisibility-inlines-hidden"
17602 $as_echo "#define PCRE_EXP_DECL extern __attribute__ ((visibility (\"default\")))" >>confdefs.h
17605 $as_echo "#define PCRE_EXP_DEFN __attribute__ ((visibility (\"default\")))" >>confdefs.h
17608 $as_echo "#define PCRE_EXP_DATA_DEFN __attribute__ ((visibility (\"default\")))" >>confdefs.h
17611 $as_echo "#define PCREPOSIX_EXP_DECL extern __attribute__ ((visibility (\"default\")))" >>confdefs.h
17614 $as_echo "#define PCREPOSIX_EXP_DEFN extern __attribute__ ((visibility (\"default\")))" >>confdefs.h
17617 $as_echo "#define PCRECPP_EXP_DECL extern __attribute__ ((visibility (\"default\")))" >>confdefs.h
17620 $as_echo "#define PCRECPP_EXP_DEFN __attribute__ ((visibility (\"default\")))" >>confdefs.h
17628 cat >>confdefs.h <<_ACEOF
17629 #define HAVE_VISIBILITY $HAVE_VISIBILITY
17639 PCRE_DATE="2016-06-14"
17641 if test "$PCRE_MINOR" = "08" -o "$PCRE_MINOR" = "09"
17644 echo "*** Minor version number $PCRE_MINOR must not be used. ***"
17645 echo "*** Use only 01 to 07 or 10 onwards, to avoid octal issues. ***"
17655 # Set a more sensible default value for $(htmldir).
17656 if test "x$htmldir" = 'x${docdir}'
17658 htmldir='${docdir}/html'
17661 # Handle --disable-pcre8 (enabled by default)
17662 # Check whether --enable-pcre8 was given.
17663 if test "${enable_pcre8+set}" = set; then :
17664 enableval=$enable_pcre8;
17671 # Handle --enable-pcre16 (disabled by default)
17672 # Check whether --enable-pcre16 was given.
17673 if test "${enable_pcre16+set}" = set; then :
17674 enableval=$enable_pcre16;
17676 enable_pcre16=unset
17681 # Handle --enable-pcre32 (disabled by default)
17682 # Check whether --enable-pcre32 was given.
17683 if test "${enable_pcre32+set}" = set; then :
17684 enableval=$enable_pcre32;
17686 enable_pcre32=unset
17691 # Handle --disable-cpp. The substitution of enable_cpp is needed for use in
17693 # Check whether --enable-cpp was given.
17694 if test "${enable_cpp+set}" = set; then :
17695 enableval=$enable_cpp;
17702 # Handle --enable-jit (disabled by default)
17703 # Check whether --enable-jit was given.
17704 if test "${enable_jit+set}" = set; then :
17705 enableval=$enable_jit;
17711 # Handle --disable-pcregrep-jit (enabled by default)
17712 # Check whether --enable-pcregrep-jit was given.
17713 if test "${enable_pcregrep_jit+set}" = set; then :
17714 enableval=$enable_pcregrep_jit;
17716 enable_pcregrep_jit=yes
17720 # Handle --enable-rebuild-chartables
17721 # Check whether --enable-rebuild-chartables was given.
17722 if test "${enable_rebuild_chartables+set}" = set; then :
17723 enableval=$enable_rebuild_chartables;
17725 enable_rebuild_chartables=no
17729 # Handle --enable-utf8 (disabled by default)
17730 # Check whether --enable-utf8 was given.
17731 if test "${enable_utf8+set}" = set; then :
17732 enableval=$enable_utf8;
17738 # Handle --enable-utf (disabled by default)
17739 # Check whether --enable-utf was given.
17740 if test "${enable_utf+set}" = set; then :
17741 enableval=$enable_utf;
17747 # Handle --enable-unicode-properties
17748 # Check whether --enable-unicode-properties was given.
17749 if test "${enable_unicode_properties+set}" = set; then :
17750 enableval=$enable_unicode_properties;
17752 enable_unicode_properties=no
17756 # Handle newline options
17758 # Check whether --enable-newline-is-cr was given.
17759 if test "${enable_newline_is_cr+set}" = set; then :
17760 enableval=$enable_newline_is_cr; ac_pcre_newline=cr
17763 # Check whether --enable-newline-is-lf was given.
17764 if test "${enable_newline_is_lf+set}" = set; then :
17765 enableval=$enable_newline_is_lf; ac_pcre_newline=lf
17768 # Check whether --enable-newline-is-crlf was given.
17769 if test "${enable_newline_is_crlf+set}" = set; then :
17770 enableval=$enable_newline_is_crlf; ac_pcre_newline=crlf
17773 # Check whether --enable-newline-is-anycrlf was given.
17774 if test "${enable_newline_is_anycrlf+set}" = set; then :
17775 enableval=$enable_newline_is_anycrlf; ac_pcre_newline=anycrlf
17778 # Check whether --enable-newline-is-any was given.
17779 if test "${enable_newline_is_any+set}" = set; then :
17780 enableval=$enable_newline_is_any; ac_pcre_newline=any
17783 enable_newline="$ac_pcre_newline"
17785 # Handle --enable-bsr-anycrlf
17786 # Check whether --enable-bsr-anycrlf was given.
17787 if test "${enable_bsr_anycrlf+set}" = set; then :
17788 enableval=$enable_bsr_anycrlf;
17790 enable_bsr_anycrlf=no
17794 # Handle --enable-ebcdic
17795 # Check whether --enable-ebcdic was given.
17796 if test "${enable_ebcdic+set}" = set; then :
17797 enableval=$enable_ebcdic;
17803 # Handle --enable-ebcdic-nl25
17804 # Check whether --enable-ebcdic-nl25 was given.
17805 if test "${enable_ebcdic_nl25+set}" = set; then :
17806 enableval=$enable_ebcdic_nl25;
17808 enable_ebcdic_nl25=no
17812 # Handle --disable-stack-for-recursion
17813 # Check whether --enable-stack-for-recursion was given.
17814 if test "${enable_stack_for_recursion+set}" = set; then :
17815 enableval=$enable_stack_for_recursion;
17817 enable_stack_for_recursion=yes
17821 # Handle --enable-pcregrep-libz
17822 # Check whether --enable-pcregrep-libz was given.
17823 if test "${enable_pcregrep_libz+set}" = set; then :
17824 enableval=$enable_pcregrep_libz;
17826 enable_pcregrep_libz=no
17830 # Handle --enable-pcregrep-libbz2
17831 # Check whether --enable-pcregrep-libbz2 was given.
17832 if test "${enable_pcregrep_libbz2+set}" = set; then :
17833 enableval=$enable_pcregrep_libbz2;
17835 enable_pcregrep_libbz2=no
17839 # Handle --with-pcregrep-bufsize=N
17841 # Check whether --with-pcregrep-bufsize was given.
17842 if test "${with_pcregrep_bufsize+set}" = set; then :
17843 withval=$with_pcregrep_bufsize;
17845 with_pcregrep_bufsize=20480
17849 # Handle --enable-pcretest-libedit
17850 # Check whether --enable-pcretest-libedit was given.
17851 if test "${enable_pcretest_libedit+set}" = set; then :
17852 enableval=$enable_pcretest_libedit;
17854 enable_pcretest_libedit=no
17858 # Handle --enable-pcretest-libreadline
17859 # Check whether --enable-pcretest-libreadline was given.
17860 if test "${enable_pcretest_libreadline+set}" = set; then :
17861 enableval=$enable_pcretest_libreadline;
17863 enable_pcretest_libreadline=no
17867 # Handle --with-posix-malloc-threshold=NBYTES
17869 # Check whether --with-posix-malloc-threshold was given.
17870 if test "${with_posix_malloc_threshold+set}" = set; then :
17871 withval=$with_posix_malloc_threshold;
17873 with_posix_malloc_threshold=10
17877 # Handle --with-link-size=N
17879 # Check whether --with-link-size was given.
17880 if test "${with_link_size+set}" = set; then :
17881 withval=$with_link_size;
17887 # Handle --with-parens-nest-limit=N
17889 # Check whether --with-parens-nest-limit was given.
17890 if test "${with_parens_nest_limit+set}" = set; then :
17891 withval=$with_parens_nest_limit;
17893 with_parens_nest_limit=250
17897 # Handle --with-match-limit=N
17899 # Check whether --with-match-limit was given.
17900 if test "${with_match_limit+set}" = set; then :
17901 withval=$with_match_limit;
17903 with_match_limit=10000000
17907 # Handle --with-match-limit_recursion=N
17909 # Note: In config.h, the default is to define MATCH_LIMIT_RECURSION
17910 # symbolically as MATCH_LIMIT, which in turn is defined to be some numeric
17911 # value (e.g. 10000000). MATCH_LIMIT_RECURSION can otherwise be set to some
17912 # different numeric value (or even the same numeric value as MATCH_LIMIT,
17913 # though no longer defined in terms of the latter).
17916 # Check whether --with-match-limit-recursion was given.
17917 if test "${with_match_limit_recursion+set}" = set; then :
17918 withval=$with_match_limit_recursion;
17920 with_match_limit_recursion=MATCH_LIMIT
17924 # Handle --enable-valgrind
17925 # Check whether --enable-valgrind was given.
17926 if test "${enable_valgrind+set}" = set; then :
17927 enableval=$enable_valgrind;
17933 # Enable code coverage reports using gcov
17934 # Check whether --enable-coverage was given.
17935 if test "${enable_coverage+set}" = set; then :
17936 enableval=$enable_coverage;
17942 # Copy enable_utf8 value to enable_utf for compatibility reasons
17943 if test "x$enable_utf8" != "xunset"
17945 if test "x$enable_utf" != "xunset"
17947 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
17949 enable_utf=$enable_utf8
17952 # Set the default value for pcre8
17953 if test "x$enable_pcre8" = "xunset"
17958 # Set the default value for pcre16
17959 if test "x$enable_pcre16" = "xunset"
17964 # Set the default value for pcre32
17965 if test "x$enable_pcre32" = "xunset"
17970 # Make sure enable_pcre8 or enable_pcre16 was set
17971 if test "x$enable_pcre8$enable_pcre16$enable_pcre32" = "xnonono"
17973 as_fn_error $? "At least one of 8, 16 or 32 bit pcre library must be enabled" "$LINENO" 5
17976 # Make sure that if enable_unicode_properties was set, that UTF support is enabled.
17977 if test "x$enable_unicode_properties" = "xyes"
17979 if test "x$enable_utf" = "xno"
17981 as_fn_error $? "support for Unicode properties requires UTF-8/16/32 support" "$LINENO" 5
17986 # enable_utf is disabled by default.
17987 if test "x$enable_utf" = "xunset"
17992 # enable_cpp copies the value of enable_pcre8 by default
17993 if test "x$enable_cpp" = "xunset"
17995 enable_cpp=$enable_pcre8
17998 # Make sure that if enable_cpp was set, that enable_pcre8 support is enabled
17999 if test "x$enable_cpp" = "xyes"
18001 if test "x$enable_pcre8" = "xno"
18003 as_fn_error $? "C++ library requires pcre library with 8 bit characters" "$LINENO" 5
18007 # Convert the newline identifier into the appropriate integer value. The first
18008 # three are ASCII values 0x0a, 0x0d, and 0x0d0a, but if EBCDIC is enabled, they
18009 # are changed below.
18011 case "$enable_newline" in
18012 lf) ac_pcre_newline_value=10 ;;
18013 cr) ac_pcre_newline_value=13 ;;
18014 crlf) ac_pcre_newline_value=3338 ;;
18015 anycrlf) ac_pcre_newline_value=-2 ;;
18016 any) ac_pcre_newline_value=-1 ;;
18018 as_fn_error $? "invalid argument \"$enable_newline\" to --enable-newline option" "$LINENO" 5
18022 # --enable-ebcdic-nl25 implies --enable-ebcdic
18023 if test "x$enable_ebcdic_nl25" = "xyes"; then
18027 # Make sure that if enable_ebcdic is set, rebuild_chartables is also enabled,
18028 # and the newline value is adjusted appropriately (CR is still 13, but LF is
18029 # 21 or 37). Also check that UTF support is not requested, because PCRE cannot
18030 # handle EBCDIC and UTF in the same build. To do so it would need to use
18031 # different character constants depending on the mode.
18033 if test "x$enable_ebcdic" = "xyes"; then
18034 enable_rebuild_chartables=yes
18036 if test "x$enable_utf" = "xyes"; then
18037 as_fn_error $? "support for EBCDIC and UTF-8/16/32 cannot be enabled at the same time" "$LINENO" 5
18040 if test "x$enable_ebcdic_nl25" = "xno"; then
18041 case "$ac_pcre_newline_value" in
18042 10) ac_pcre_newline_value=21 ;;
18043 3338) ac_pcre_newline_value=3349 ;;
18046 case "$ac_pcre_newline_value" in
18047 10) ac_pcre_newline_value=37 ;;
18048 3338) ac_pcre_newline_value=3365 ;;
18053 # Check argument to --with-link-size
18054 case "$with_link_size" in
18057 as_fn_error $? "invalid argument \"$with_link_size\" to --with-link-size option" "$LINENO" 5
18063 # Checks for header files.
18064 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
18065 $as_echo_n "checking for ANSI C header files... " >&6; }
18066 if ${ac_cv_header_stdc+:} false; then :
18067 $as_echo_n "(cached) " >&6
18069 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18070 /* end confdefs.h. */
18071 #include <stdlib.h>
18072 #include <stdarg.h>
18073 #include <string.h>
18084 if ac_fn_c_try_compile "$LINENO"; then :
18085 ac_cv_header_stdc=yes
18087 ac_cv_header_stdc=no
18089 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18091 if test $ac_cv_header_stdc = yes; then
18092 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
18093 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18094 /* end confdefs.h. */
18095 #include <string.h>
18098 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18099 $EGREP "memchr" >/dev/null 2>&1; then :
18102 ac_cv_header_stdc=no
18108 if test $ac_cv_header_stdc = yes; then
18109 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
18110 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18111 /* end confdefs.h. */
18112 #include <stdlib.h>
18115 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18116 $EGREP "free" >/dev/null 2>&1; then :
18119 ac_cv_header_stdc=no
18125 if test $ac_cv_header_stdc = yes; then
18126 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
18127 if test "$cross_compiling" = yes; then :
18130 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18131 /* end confdefs.h. */
18133 #include <stdlib.h>
18134 #if ((' ' & 0x0FF) == 0x020)
18135 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
18136 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
18138 # define ISLOWER(c) \
18139 (('a' <= (c) && (c) <= 'i') \
18140 || ('j' <= (c) && (c) <= 'r') \
18141 || ('s' <= (c) && (c) <= 'z'))
18142 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
18145 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
18150 for (i = 0; i < 256; i++)
18151 if (XOR (islower (i), ISLOWER (i))
18152 || toupper (i) != TOUPPER (i))
18157 if ac_fn_c_try_run "$LINENO"; then :
18160 ac_cv_header_stdc=no
18162 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
18163 conftest.$ac_objext conftest.beam conftest.$ac_ext
18168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
18169 $as_echo "$ac_cv_header_stdc" >&6; }
18170 if test $ac_cv_header_stdc = yes; then
18172 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
18176 for ac_header in limits.h sys/types.h sys/stat.h dirent.h
18178 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
18179 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
18180 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
18181 cat >>confdefs.h <<_ACEOF
18182 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
18189 for ac_header in windows.h
18191 ac_fn_c_check_header_mongrel "$LINENO" "windows.h" "ac_cv_header_windows_h" "$ac_includes_default"
18192 if test "x$ac_cv_header_windows_h" = xyes; then :
18193 cat >>confdefs.h <<_ACEOF
18194 #define HAVE_WINDOWS_H 1
18202 # The files below are C++ header files.
18203 pcre_have_type_traits="0"
18204 pcre_have_bits_type_traits="0"
18206 if test "x$enable_cpp" = "xyes" -a -z "$CXX"; then
18207 as_fn_error $? "You need a C++ compiler for C++ support." "$LINENO" 5
18210 if test "x$enable_cpp" = "xyes" -a -n "$CXX"
18213 ac_cpp='$CXXCPP $CPPFLAGS'
18214 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18215 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18216 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18219 # Older versions of pcre defined pcrecpp::no_arg, but in new versions
18220 # it's called pcrecpp::RE::no_arg. For backwards ABI compatibility,
18221 # we want to make one an alias for the other. Different systems do
18222 # this in different ways. Some systems, for instance, can do it via
18223 # a linker flag: -alias (for os x 10.5) or -i (for os x <=10.4).
18224 OLD_LDFLAGS="$LDFLAGS"
18225 for flag in "-alias,__ZN7pcrecpp2RE6no_argE,__ZN7pcrecpp6no_argE" \
18226 "-i__ZN7pcrecpp6no_argE:__ZN7pcrecpp2RE6no_argE"; do
18227 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alias support in the linker" >&5
18228 $as_echo_n "checking for alias support in the linker... " >&6; }
18229 LDFLAGS="$OLD_LDFLAGS -Wl,$flag"
18230 # We try to run the linker with this new ld flag. If the link fails,
18231 # we give up and remove the new flag from LDFLAGS.
18232 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18233 /* end confdefs.h. */
18234 namespace pcrecpp {
18235 class RE { static int no_arg; };
18246 if ac_fn_cxx_try_link "$LINENO"; then :
18247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18248 $as_echo "yes" >&6; };
18249 EXTRA_LIBPCRECPP_LDFLAGS="$EXTRA_LIBPCRECPP_LDFLAGS -Wl,$flag";
18252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18253 $as_echo "no" >&6; }
18255 rm -f core conftest.err conftest.$ac_objext \
18256 conftest$ac_exeext conftest.$ac_ext
18258 LDFLAGS="$OLD_LDFLAGS"
18260 # We could be more clever here, given we're doing AC_SUBST with this
18261 # (eg set a var to be the name of the include file we want). But we're not
18262 # so it's easy to change back to 'regular' autoconf vars if we needed to.
18264 for ac_header in string
18266 ac_fn_cxx_check_header_mongrel "$LINENO" "string" "ac_cv_header_string" "$ac_includes_default"
18267 if test "x$ac_cv_header_string" = xyes; then :
18268 cat >>confdefs.h <<_ACEOF
18269 #define HAVE_STRING 1
18271 pcre_have_cpp_headers="1"
18273 pcre_have_cpp_headers="0"
18278 for ac_header in bits/type_traits.h
18280 ac_fn_cxx_check_header_mongrel "$LINENO" "bits/type_traits.h" "ac_cv_header_bits_type_traits_h" "$ac_includes_default"
18281 if test "x$ac_cv_header_bits_type_traits_h" = xyes; then :
18282 cat >>confdefs.h <<_ACEOF
18283 #define HAVE_BITS_TYPE_TRAITS_H 1
18285 pcre_have_bits_type_traits="1"
18287 pcre_have_bits_type_traits="0"
18292 for ac_header in type_traits.h
18294 ac_fn_cxx_check_header_mongrel "$LINENO" "type_traits.h" "ac_cv_header_type_traits_h" "$ac_includes_default"
18295 if test "x$ac_cv_header_type_traits_h" = xyes; then :
18296 cat >>confdefs.h <<_ACEOF
18297 #define HAVE_TYPE_TRAITS_H 1
18299 pcre_have_type_traits="1"
18301 pcre_have_type_traits="0"
18307 # (This isn't c++-specific, but is only used in pcrecpp.cc, so try this
18308 # in a c++ context. This matters becuase strtoimax is C99 and may not
18309 # be supported by the C++ compiler.)
18310 # Figure out how to create a longlong from a string: strtoll and
18311 # equiv. It's not enough to call AC_CHECK_FUNCS: hpux has a
18312 # strtoll, for instance, but it only takes 2 args instead of 3!
18313 # We have to call AH_TEMPLATE since AC_DEFINE_UNQUOTED below is complex.
18319 for fn in strtoq strtoll _strtoi64 strtoimax; do
18320 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $fn" >&5
18321 $as_echo_n "checking for $fn... " >&6; }
18322 if test "$fn" = strtoimax; then
18327 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18328 /* end confdefs.h. */
18329 #include <$include>
18333 char* e; return $fn("100", &e, 10)
18338 if ac_fn_cxx_try_compile "$LINENO"; then :
18339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18340 $as_echo "yes" >&6; }
18342 cat >>confdefs.h <<_ACEOF
18343 #define HAVE_`echo $fn | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ` 1
18349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18350 $as_echo "no" >&6; }
18352 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18355 if test "$have_strto_fn" = 1; then
18356 ac_fn_cxx_check_type "$LINENO" "long long" "ac_cv_type_long_long" "$ac_includes_default"
18357 if test "x$ac_cv_type_long_long" = xyes; then :
18359 cat >>confdefs.h <<_ACEOF
18360 #define HAVE_LONG_LONG 1
18363 pcre_have_long_long="1"
18365 pcre_have_long_long="0"
18368 ac_fn_cxx_check_type "$LINENO" "unsigned long long" "ac_cv_type_unsigned_long_long" "$ac_includes_default"
18369 if test "x$ac_cv_type_unsigned_long_long" = xyes; then :
18371 cat >>confdefs.h <<_ACEOF
18372 #define HAVE_UNSIGNED_LONG_LONG 1
18375 pcre_have_ulong_long="1"
18377 pcre_have_ulong_long="0"
18381 pcre_have_long_long="0"
18382 pcre_have_ulong_long="0"
18388 ac_cpp='$CPP $CPPFLAGS'
18389 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18390 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18391 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18394 # Using AC_SUBST eliminates the need to include config.h in a public .h file
18398 # Conditional compilation
18399 if test "x$enable_pcre8" = "xyes"; then
18401 WITH_PCRE8_FALSE='#'
18403 WITH_PCRE8_TRUE='#'
18407 if test "x$enable_pcre16" = "xyes"; then
18409 WITH_PCRE16_FALSE='#'
18411 WITH_PCRE16_TRUE='#'
18415 if test "x$enable_pcre32" = "xyes"; then
18417 WITH_PCRE32_FALSE='#'
18419 WITH_PCRE32_TRUE='#'
18423 if test "x$enable_cpp" = "xyes"; then
18424 WITH_PCRE_CPP_TRUE=
18425 WITH_PCRE_CPP_FALSE='#'
18427 WITH_PCRE_CPP_TRUE='#'
18428 WITH_PCRE_CPP_FALSE=
18431 if test "x$enable_rebuild_chartables" = "xyes"; then
18432 WITH_REBUILD_CHARTABLES_TRUE=
18433 WITH_REBUILD_CHARTABLES_FALSE='#'
18435 WITH_REBUILD_CHARTABLES_TRUE='#'
18436 WITH_REBUILD_CHARTABLES_FALSE=
18439 if test "x$enable_jit" = "xyes"; then
18447 if test "x$enable_utf" = "xyes"; then
18455 if test "x$enable_valgrind" = "xyes"; then
18456 WITH_VALGRIND_TRUE=
18457 WITH_VALGRIND_FALSE='#'
18459 WITH_VALGRIND_TRUE='#'
18460 WITH_VALGRIND_FALSE=
18464 # Checks for typedefs, structures, and compiler characteristics.
18466 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
18467 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
18468 if ${ac_cv_c_const+:} false; then :
18469 $as_echo_n "(cached) " >&6
18471 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18472 /* end confdefs.h. */
18478 #ifndef __cplusplus
18479 /* Ultrix mips cc rejects this sort of thing. */
18480 typedef int charset[2];
18481 const charset cs = { 0, 0 };
18482 /* SunOS 4.1.1 cc rejects this. */
18483 char const *const *pcpcc;
18485 /* NEC SVR4.0.2 mips cc rejects this. */
18486 struct point {int x, y;};
18487 static struct point const zero = {0,0};
18488 /* AIX XL C 1.02.0.0 rejects this.
18489 It does not let you subtract one const X* pointer from another in
18490 an arm of an if-expression whose if-part is not a constant
18492 const char *g = "string";
18493 pcpcc = &g + (g ? g-g : 0);
18494 /* HPUX 7.0 cc rejects these. */
18496 ppc = (char**) pcpcc;
18497 pcpcc = (char const *const *) ppc;
18498 { /* SCO 3.2v4 cc rejects this sort of thing. */
18501 char const *s = 0 ? (char *) 0 : (char const *) 0;
18506 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
18507 int x[] = {25, 17};
18508 const int *foo = &x[0];
18511 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
18512 typedef const int *iptr;
18516 { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
18517 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
18518 struct s { int j; const int *ap[3]; } bx;
18519 struct s *b = &bx; b->j = 5;
18521 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
18522 const int foo = 10;
18523 if (!foo) return 0;
18525 return !cs[0] && !zero.x;
18532 if ac_fn_c_try_compile "$LINENO"; then :
18537 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
18540 $as_echo "$ac_cv_c_const" >&6; }
18541 if test $ac_cv_c_const = no; then
18543 $as_echo "#define const /**/" >>confdefs.h
18547 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
18548 if test "x$ac_cv_type_size_t" = xyes; then :
18552 cat >>confdefs.h <<_ACEOF
18553 #define size_t unsigned int
18559 # Checks for library functions.
18561 for ac_func in bcopy memmove strerror
18563 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
18564 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
18565 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
18566 cat >>confdefs.h <<_ACEOF
18567 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
18574 # Check for the availability of libz (aka zlib)
18576 for ac_header in zlib.h
18578 ac_fn_c_check_header_mongrel "$LINENO" "zlib.h" "ac_cv_header_zlib_h" "$ac_includes_default"
18579 if test "x$ac_cv_header_zlib_h" = xyes; then :
18580 cat >>confdefs.h <<_ACEOF
18581 #define HAVE_ZLIB_H 1
18588 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gzopen in -lz" >&5
18589 $as_echo_n "checking for gzopen in -lz... " >&6; }
18590 if ${ac_cv_lib_z_gzopen+:} false; then :
18591 $as_echo_n "(cached) " >&6
18593 ac_check_lib_save_LIBS=$LIBS
18595 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18596 /* end confdefs.h. */
18598 /* Override any GCC internal prototype to avoid an error.
18599 Use char because int might match the return type of a GCC
18600 builtin and then its argument prototype would still apply. */
18613 if ac_fn_c_try_link "$LINENO"; then :
18614 ac_cv_lib_z_gzopen=yes
18616 ac_cv_lib_z_gzopen=no
18618 rm -f core conftest.err conftest.$ac_objext \
18619 conftest$ac_exeext conftest.$ac_ext
18620 LIBS=$ac_check_lib_save_LIBS
18622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_gzopen" >&5
18623 $as_echo "$ac_cv_lib_z_gzopen" >&6; }
18624 if test "x$ac_cv_lib_z_gzopen" = xyes; then :
18629 # Check for the availability of libbz2. Originally we just used AC_CHECK_LIB,
18630 # as for libz. However, this had the following problem, diagnosed and fixed by
18633 # - libbz2 uses the Pascal calling convention (WINAPI) for the functions
18635 # - The standard autoconf AC_CHECK_LIB fails to include "bzlib.h",
18636 # therefore missing the function definition.
18637 # - The compiler thus generates a "C" signature for the test function.
18638 # - The linker fails to find the "C" function.
18639 # - PCRE fails to configure if asked to do so against libbz2.
18643 # - Replace the AC_CHECK_LIB test with a custom test.
18645 for ac_header in bzlib.h
18647 ac_fn_c_check_header_mongrel "$LINENO" "bzlib.h" "ac_cv_header_bzlib_h" "$ac_includes_default"
18648 if test "x$ac_cv_header_bzlib_h" = xyes; then :
18649 cat >>confdefs.h <<_ACEOF
18650 #define HAVE_BZLIB_H 1
18658 # AC_CHECK_LIB([bz2], [BZ2_bzopen], [HAVE_LIBBZ2=1])
18660 # Custom test follows
18662 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libbz2" >&5
18663 $as_echo_n "checking for libbz2... " >&6; }
18666 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18667 /* end confdefs.h. */
18669 #ifdef HAVE_BZLIB_H
18675 return (int)BZ2_bzopen("conftest", "rb");
18680 if ac_fn_c_try_link "$LINENO"; then :
18681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18682 $as_echo "yes" >&6; };HAVE_LIBBZ2=1; break;
18684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18685 $as_echo "no" >&6; }
18687 rm -f core conftest.err conftest.$ac_objext \
18688 conftest$ac_exeext conftest.$ac_ext
18691 # Check for the availabiity of libreadline
18693 if test "$enable_pcretest_libreadline" = "yes"; then
18694 for ac_header in readline/readline.h
18696 ac_fn_c_check_header_mongrel "$LINENO" "readline/readline.h" "ac_cv_header_readline_readline_h" "$ac_includes_default"
18697 if test "x$ac_cv_header_readline_readline_h" = xyes; then :
18698 cat >>confdefs.h <<_ACEOF
18699 #define HAVE_READLINE_READLINE_H 1
18706 for ac_header in readline/history.h
18708 ac_fn_c_check_header_mongrel "$LINENO" "readline/history.h" "ac_cv_header_readline_history_h" "$ac_includes_default"
18709 if test "x$ac_cv_header_readline_history_h" = xyes; then :
18710 cat >>confdefs.h <<_ACEOF
18711 #define HAVE_READLINE_HISTORY_H 1
18718 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for readline in -lreadline" >&5
18719 $as_echo_n "checking for readline in -lreadline... " >&6; }
18720 if ${ac_cv_lib_readline_readline+:} false; then :
18721 $as_echo_n "(cached) " >&6
18723 ac_check_lib_save_LIBS=$LIBS
18724 LIBS="-lreadline $LIBS"
18725 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18726 /* end confdefs.h. */
18728 /* Override any GCC internal prototype to avoid an error.
18729 Use char because int might match the return type of a GCC
18730 builtin and then its argument prototype would still apply. */
18738 return readline ();
18743 if ac_fn_c_try_link "$LINENO"; then :
18744 ac_cv_lib_readline_readline=yes
18746 ac_cv_lib_readline_readline=no
18748 rm -f core conftest.err conftest.$ac_objext \
18749 conftest$ac_exeext conftest.$ac_ext
18750 LIBS=$ac_check_lib_save_LIBS
18752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_readline_readline" >&5
18753 $as_echo "$ac_cv_lib_readline_readline" >&6; }
18754 if test "x$ac_cv_lib_readline_readline" = xyes; then :
18755 LIBREADLINE="-lreadline"
18757 unset ac_cv_lib_readline_readline;
18758 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for readline in -lreadline" >&5
18759 $as_echo_n "checking for readline in -lreadline... " >&6; }
18760 if ${ac_cv_lib_readline_readline+:} false; then :
18761 $as_echo_n "(cached) " >&6
18763 ac_check_lib_save_LIBS=$LIBS
18764 LIBS="-lreadline -ltinfo $LIBS"
18765 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18766 /* end confdefs.h. */
18768 /* Override any GCC internal prototype to avoid an error.
18769 Use char because int might match the return type of a GCC
18770 builtin and then its argument prototype would still apply. */
18778 return readline ();
18783 if ac_fn_c_try_link "$LINENO"; then :
18784 ac_cv_lib_readline_readline=yes
18786 ac_cv_lib_readline_readline=no
18788 rm -f core conftest.err conftest.$ac_objext \
18789 conftest$ac_exeext conftest.$ac_ext
18790 LIBS=$ac_check_lib_save_LIBS
18792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_readline_readline" >&5
18793 $as_echo "$ac_cv_lib_readline_readline" >&6; }
18794 if test "x$ac_cv_lib_readline_readline" = xyes; then :
18795 LIBREADLINE="-ltinfo"
18797 unset ac_cv_lib_readline_readline;
18798 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for readline in -lreadline" >&5
18799 $as_echo_n "checking for readline in -lreadline... " >&6; }
18800 if ${ac_cv_lib_readline_readline+:} false; then :
18801 $as_echo_n "(cached) " >&6
18803 ac_check_lib_save_LIBS=$LIBS
18804 LIBS="-lreadline -lcurses $LIBS"
18805 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18806 /* end confdefs.h. */
18808 /* Override any GCC internal prototype to avoid an error.
18809 Use char because int might match the return type of a GCC
18810 builtin and then its argument prototype would still apply. */
18818 return readline ();
18823 if ac_fn_c_try_link "$LINENO"; then :
18824 ac_cv_lib_readline_readline=yes
18826 ac_cv_lib_readline_readline=no
18828 rm -f core conftest.err conftest.$ac_objext \
18829 conftest$ac_exeext conftest.$ac_ext
18830 LIBS=$ac_check_lib_save_LIBS
18832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_readline_readline" >&5
18833 $as_echo "$ac_cv_lib_readline_readline" >&6; }
18834 if test "x$ac_cv_lib_readline_readline" = xyes; then :
18835 LIBREADLINE="-lcurses"
18837 unset ac_cv_lib_readline_readline;
18838 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for readline in -lreadline" >&5
18839 $as_echo_n "checking for readline in -lreadline... " >&6; }
18840 if ${ac_cv_lib_readline_readline+:} false; then :
18841 $as_echo_n "(cached) " >&6
18843 ac_check_lib_save_LIBS=$LIBS
18844 LIBS="-lreadline -lncurses $LIBS"
18845 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18846 /* end confdefs.h. */
18848 /* Override any GCC internal prototype to avoid an error.
18849 Use char because int might match the return type of a GCC
18850 builtin and then its argument prototype would still apply. */
18858 return readline ();
18863 if ac_fn_c_try_link "$LINENO"; then :
18864 ac_cv_lib_readline_readline=yes
18866 ac_cv_lib_readline_readline=no
18868 rm -f core conftest.err conftest.$ac_objext \
18869 conftest$ac_exeext conftest.$ac_ext
18870 LIBS=$ac_check_lib_save_LIBS
18872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_readline_readline" >&5
18873 $as_echo "$ac_cv_lib_readline_readline" >&6; }
18874 if test "x$ac_cv_lib_readline_readline" = xyes; then :
18875 LIBREADLINE="-lncurses"
18877 unset ac_cv_lib_readline_readline;
18878 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for readline in -lreadline" >&5
18879 $as_echo_n "checking for readline in -lreadline... " >&6; }
18880 if ${ac_cv_lib_readline_readline+:} false; then :
18881 $as_echo_n "(cached) " >&6
18883 ac_check_lib_save_LIBS=$LIBS
18884 LIBS="-lreadline -lncursesw $LIBS"
18885 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18886 /* end confdefs.h. */
18888 /* Override any GCC internal prototype to avoid an error.
18889 Use char because int might match the return type of a GCC
18890 builtin and then its argument prototype would still apply. */
18898 return readline ();
18903 if ac_fn_c_try_link "$LINENO"; then :
18904 ac_cv_lib_readline_readline=yes
18906 ac_cv_lib_readline_readline=no
18908 rm -f core conftest.err conftest.$ac_objext \
18909 conftest$ac_exeext conftest.$ac_ext
18910 LIBS=$ac_check_lib_save_LIBS
18912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_readline_readline" >&5
18913 $as_echo "$ac_cv_lib_readline_readline" >&6; }
18914 if test "x$ac_cv_lib_readline_readline" = xyes; then :
18915 LIBREADLINE="-lncursesw"
18917 unset ac_cv_lib_readline_readline;
18918 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for readline in -lreadline" >&5
18919 $as_echo_n "checking for readline in -lreadline... " >&6; }
18920 if ${ac_cv_lib_readline_readline+:} false; then :
18921 $as_echo_n "(cached) " >&6
18923 ac_check_lib_save_LIBS=$LIBS
18924 LIBS="-lreadline -ltermcap $LIBS"
18925 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18926 /* end confdefs.h. */
18928 /* Override any GCC internal prototype to avoid an error.
18929 Use char because int might match the return type of a GCC
18930 builtin and then its argument prototype would still apply. */
18938 return readline ();
18943 if ac_fn_c_try_link "$LINENO"; then :
18944 ac_cv_lib_readline_readline=yes
18946 ac_cv_lib_readline_readline=no
18948 rm -f core conftest.err conftest.$ac_objext \
18949 conftest$ac_exeext conftest.$ac_ext
18950 LIBS=$ac_check_lib_save_LIBS
18952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_readline_readline" >&5
18953 $as_echo "$ac_cv_lib_readline_readline" >&6; }
18954 if test "x$ac_cv_lib_readline_readline" = xyes; then :
18955 LIBREADLINE="-ltermcap"
18971 if test -n "$LIBREADLINE"; then
18972 if test "$LIBREADLINE" != "-lreadline"; then
18973 echo "-lreadline needs $LIBREADLINE"
18974 LIBREADLINE="-lreadline $LIBREADLINE"
18980 # Check for the availability of libedit. Different distributions put its
18981 # headers in different places. Try to cover the most common ones.
18983 if test "$enable_pcretest_libedit" = "yes"; then
18984 for ac_header in editline/readline.h
18986 ac_fn_c_check_header_mongrel "$LINENO" "editline/readline.h" "ac_cv_header_editline_readline_h" "$ac_includes_default"
18987 if test "x$ac_cv_header_editline_readline_h" = xyes; then :
18988 cat >>confdefs.h <<_ACEOF
18989 #define HAVE_EDITLINE_READLINE_H 1
18991 HAVE_EDITLINE_READLINE_H=1
18993 for ac_header in edit/readline/readline.h
18995 ac_fn_c_check_header_mongrel "$LINENO" "edit/readline/readline.h" "ac_cv_header_edit_readline_readline_h" "$ac_includes_default"
18996 if test "x$ac_cv_header_edit_readline_readline_h" = xyes; then :
18997 cat >>confdefs.h <<_ACEOF
18998 #define HAVE_EDIT_READLINE_READLINE_H 1
19000 HAVE_READLINE_READLINE_H=1
19002 for ac_header in readline/readline.h
19004 ac_fn_c_check_header_mongrel "$LINENO" "readline/readline.h" "ac_cv_header_readline_readline_h" "$ac_includes_default"
19005 if test "x$ac_cv_header_readline_readline_h" = xyes; then :
19006 cat >>confdefs.h <<_ACEOF
19007 #define HAVE_READLINE_READLINE_H 1
19009 HAVE_READLINE_READLINE_H=1
19022 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for readline in -ledit" >&5
19023 $as_echo_n "checking for readline in -ledit... " >&6; }
19024 if ${ac_cv_lib_edit_readline+:} false; then :
19025 $as_echo_n "(cached) " >&6
19027 ac_check_lib_save_LIBS=$LIBS
19028 LIBS="-ledit $LIBS"
19029 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19030 /* end confdefs.h. */
19032 /* Override any GCC internal prototype to avoid an error.
19033 Use char because int might match the return type of a GCC
19034 builtin and then its argument prototype would still apply. */
19042 return readline ();
19047 if ac_fn_c_try_link "$LINENO"; then :
19048 ac_cv_lib_edit_readline=yes
19050 ac_cv_lib_edit_readline=no
19052 rm -f core conftest.err conftest.$ac_objext \
19053 conftest$ac_exeext conftest.$ac_ext
19054 LIBS=$ac_check_lib_save_LIBS
19056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_edit_readline" >&5
19057 $as_echo "$ac_cv_lib_edit_readline" >&6; }
19058 if test "x$ac_cv_lib_edit_readline" = xyes; then :
19064 # This facilitates -ansi builds under Linux
19066 PCRE_STATIC_CFLAG=""
19067 if test "x$enable_shared" = "xno" ; then
19069 $as_echo "#define PCRE_STATIC 1" >>confdefs.h
19071 PCRE_STATIC_CFLAG="-DPCRE_STATIC"
19075 # Here is where pcre specific defines are handled
19077 if test "$enable_pcre8" = "yes"; then
19079 $as_echo "#define SUPPORT_PCRE8 /**/" >>confdefs.h
19083 if test "$enable_pcre16" = "yes"; then
19085 $as_echo "#define SUPPORT_PCRE16 /**/" >>confdefs.h
19089 if test "$enable_pcre32" = "yes"; then
19091 $as_echo "#define SUPPORT_PCRE32 /**/" >>confdefs.h
19095 # Unless running under Windows, JIT support requires pthreads.
19097 if test "$enable_jit" = "yes"; then
19098 if test "$HAVE_WINDOWS_H" != "1"; then
19102 ac_cpp='$CPP $CPPFLAGS'
19103 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19104 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19105 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19109 # We used to check for pthread.h first, but this fails if pthread.h
19110 # requires special compiler flags (e.g. on True64 or Sequent).
19111 # It gets checked for in the link test anyway.
19113 # First of all, check if the user has set any of the PTHREAD_LIBS,
19114 # etcetera environment variables, and if threads linking works using
19116 if test x"$PTHREAD_LIBS$PTHREAD_CFLAGS" != x; then
19117 save_CFLAGS="$CFLAGS"
19118 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
19120 LIBS="$PTHREAD_LIBS $LIBS"
19121 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS" >&5
19122 $as_echo_n "checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS... " >&6; }
19123 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19124 /* end confdefs.h. */
19126 /* Override any GCC internal prototype to avoid an error.
19127 Use char because int might match the return type of a GCC
19128 builtin and then its argument prototype would still apply. */
19132 char pthread_join ();
19136 return pthread_join ();
19141 if ac_fn_c_try_link "$LINENO"; then :
19144 rm -f core conftest.err conftest.$ac_objext \
19145 conftest$ac_exeext conftest.$ac_ext
19146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
19147 $as_echo "$ax_pthread_ok" >&6; }
19148 if test x"$ax_pthread_ok" = xno; then
19153 CFLAGS="$save_CFLAGS"
19156 # We must check for the threads library under a number of different
19157 # names; the ordering is very important because some systems
19158 # (e.g. DEC) have both -lpthread and -lpthreads, where one of the
19159 # libraries is broken (non-POSIX).
19161 # Create a list of thread flags to try. Items starting with a "-" are
19162 # C compiler flags, and other items are library names, except for "none"
19163 # which indicates that we try without any flags at all, and "pthread-config"
19164 # which is a program returning the flags for the Pth emulation library.
19166 ax_pthread_flags="pthreads none -Kthread -kthread lthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config"
19168 # The ordering *is* (sometimes) important. Some notes on the
19169 # individual items follow:
19171 # pthreads: AIX (must check this before -lpthread)
19172 # none: in case threads are in libc; should be tried before -Kthread and
19173 # other compiler flags to prevent continual compiler warnings
19174 # -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h)
19175 # -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able)
19176 # lthread: LinuxThreads port on FreeBSD (also preferred to -pthread)
19177 # -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads)
19178 # -pthreads: Solaris/gcc
19179 # -mthreads: Mingw32/gcc, Lynx/gcc
19180 # -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it
19181 # doesn't hurt to check since this sometimes defines pthreads too;
19182 # also defines -D_REENTRANT)
19183 # ... -mt is also the pthreads flag for HP/aCC
19184 # pthread: Linux, etcetera
19185 # --thread-safe: KAI C++
19186 # pthread-config: use pthread-config program (for GNU Pth library)
19191 # On Solaris (at least, for some versions), libc contains stubbed
19192 # (non-functional) versions of the pthreads routines, so link-based
19193 # tests will erroneously succeed. (We need to link with -pthreads/-mt/
19194 # -lpthread.) (The stubs are missing pthread_cleanup_push, or rather
19195 # a function called by this macro, so we could check for that, but
19196 # who knows whether they'll stub that too in a future libc.) So,
19197 # we'll just look for -pthreads and -lpthread first:
19199 ax_pthread_flags="-pthreads pthread -mt -pthread $ax_pthread_flags"
19203 ax_pthread_flags="-pthread $ax_pthread_flags"
19207 if test x"$ax_pthread_ok" = xno; then
19208 for flag in $ax_pthread_flags; do
19212 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work without any flags" >&5
19213 $as_echo_n "checking whether pthreads work without any flags... " >&6; }
19217 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with $flag" >&5
19218 $as_echo_n "checking whether pthreads work with $flag... " >&6; }
19219 PTHREAD_CFLAGS="$flag"
19223 # Extract the first word of "pthread-config", so it can be a program name with args.
19224 set dummy pthread-config; ac_word=$2
19225 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19226 $as_echo_n "checking for $ac_word... " >&6; }
19227 if ${ac_cv_prog_ax_pthread_config+:} false; then :
19228 $as_echo_n "(cached) " >&6
19230 if test -n "$ax_pthread_config"; then
19231 ac_cv_prog_ax_pthread_config="$ax_pthread_config" # Let the user override the test.
19233 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19234 for as_dir in $PATH
19237 test -z "$as_dir" && as_dir=.
19238 for ac_exec_ext in '' $ac_executable_extensions; do
19239 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19240 ac_cv_prog_ax_pthread_config="yes"
19241 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19248 test -z "$ac_cv_prog_ax_pthread_config" && ac_cv_prog_ax_pthread_config="no"
19251 ax_pthread_config=$ac_cv_prog_ax_pthread_config
19252 if test -n "$ax_pthread_config"; then
19253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_config" >&5
19254 $as_echo "$ax_pthread_config" >&6; }
19256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19257 $as_echo "no" >&6; }
19261 if test x"$ax_pthread_config" = xno; then continue; fi
19262 PTHREAD_CFLAGS="`pthread-config --cflags`"
19263 PTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`"
19267 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library -l$flag" >&5
19268 $as_echo_n "checking for the pthreads library -l$flag... " >&6; }
19269 PTHREAD_LIBS="-l$flag"
19274 save_CFLAGS="$CFLAGS"
19275 LIBS="$PTHREAD_LIBS $LIBS"
19276 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
19278 # Check for various functions. We must include pthread.h,
19279 # since some functions may be macros. (On the Sequent, we
19280 # need a special flag -Kthread to make this header compile.)
19281 # We check for pthread_join because it is in -lpthread on IRIX
19282 # while pthread_create is in libc. We check for pthread_attr_init
19283 # due to DEC craziness with -lpthreads. We check for
19284 # pthread_cleanup_push because it is one of the few pthread
19285 # functions on Solaris that doesn't have a non-functional libc stub.
19286 # We try pthread_create on general principles.
19287 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19288 /* end confdefs.h. */
19289 #include <pthread.h>
19290 static void routine(void *a) { a = 0; }
19291 static void *start_routine(void *a) { return a; }
19295 pthread_t th; pthread_attr_t attr;
19296 pthread_create(&th, 0, start_routine, 0);
19297 pthread_join(th, 0);
19298 pthread_attr_init(&attr);
19299 pthread_cleanup_push(routine, 0);
19300 pthread_cleanup_pop(0) /* ; */
19305 if ac_fn_c_try_link "$LINENO"; then :
19308 rm -f core conftest.err conftest.$ac_objext \
19309 conftest$ac_exeext conftest.$ac_ext
19312 CFLAGS="$save_CFLAGS"
19314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
19315 $as_echo "$ax_pthread_ok" >&6; }
19316 if test "x$ax_pthread_ok" = xyes; then
19325 # Various other checks:
19326 if test "x$ax_pthread_ok" = xyes; then
19328 LIBS="$PTHREAD_LIBS $LIBS"
19329 save_CFLAGS="$CFLAGS"
19330 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
19332 # Detect AIX lossage: JOINABLE attribute is called UNDETACHED.
19333 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for joinable pthread attribute" >&5
19334 $as_echo_n "checking for joinable pthread attribute... " >&6; }
19336 for attr in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED; do
19337 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19338 /* end confdefs.h. */
19339 #include <pthread.h>
19343 int attr = $attr; return attr /* ; */
19348 if ac_fn_c_try_link "$LINENO"; then :
19349 attr_name=$attr; break
19351 rm -f core conftest.err conftest.$ac_objext \
19352 conftest$ac_exeext conftest.$ac_ext
19354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $attr_name" >&5
19355 $as_echo "$attr_name" >&6; }
19356 if test "$attr_name" != PTHREAD_CREATE_JOINABLE; then
19358 cat >>confdefs.h <<_ACEOF
19359 #define PTHREAD_CREATE_JOINABLE $attr_name
19364 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if more special flags are required for pthreads" >&5
19365 $as_echo_n "checking if more special flags are required for pthreads... " >&6; }
19368 aix* | freebsd* | darwin*) flag="-D_THREAD_SAFE";;
19369 osf* | hpux*) flag="-D_REENTRANT";;
19371 if test "$GCC" = "yes"; then
19372 flag="-D_REENTRANT"
19374 flag="-mt -D_REENTRANT"
19378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${flag}" >&5
19379 $as_echo "${flag}" >&6; }
19380 if test "x$flag" != xno; then
19381 PTHREAD_CFLAGS="$flag $PTHREAD_CFLAGS"
19384 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PTHREAD_PRIO_INHERIT" >&5
19385 $as_echo_n "checking for PTHREAD_PRIO_INHERIT... " >&6; }
19386 if ${ax_cv_PTHREAD_PRIO_INHERIT+:} false; then :
19387 $as_echo_n "(cached) " >&6
19390 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19391 /* end confdefs.h. */
19393 #include <pthread.h>
19397 int i = PTHREAD_PRIO_INHERIT;
19402 if ac_fn_c_try_link "$LINENO"; then :
19403 ax_cv_PTHREAD_PRIO_INHERIT=yes
19405 ax_cv_PTHREAD_PRIO_INHERIT=no
19407 rm -f core conftest.err conftest.$ac_objext \
19408 conftest$ac_exeext conftest.$ac_ext
19411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_PRIO_INHERIT" >&5
19412 $as_echo "$ax_cv_PTHREAD_PRIO_INHERIT" >&6; }
19413 if test "x$ax_cv_PTHREAD_PRIO_INHERIT" = "xyes"; then :
19415 $as_echo "#define HAVE_PTHREAD_PRIO_INHERIT 1" >>confdefs.h
19420 CFLAGS="$save_CFLAGS"
19422 # More AIX lossage: must compile with xlc_r or cc_r
19423 if test x"$GCC" != xyes; then
19424 for ac_prog in xlc_r cc_r
19426 # Extract the first word of "$ac_prog", so it can be a program name with args.
19427 set dummy $ac_prog; ac_word=$2
19428 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19429 $as_echo_n "checking for $ac_word... " >&6; }
19430 if ${ac_cv_prog_PTHREAD_CC+:} false; then :
19431 $as_echo_n "(cached) " >&6
19433 if test -n "$PTHREAD_CC"; then
19434 ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test.
19436 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19437 for as_dir in $PATH
19440 test -z "$as_dir" && as_dir=.
19441 for ac_exec_ext in '' $ac_executable_extensions; do
19442 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19443 ac_cv_prog_PTHREAD_CC="$ac_prog"
19444 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19453 PTHREAD_CC=$ac_cv_prog_PTHREAD_CC
19454 if test -n "$PTHREAD_CC"; then
19455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PTHREAD_CC" >&5
19456 $as_echo "$PTHREAD_CC" >&6; }
19458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19459 $as_echo "no" >&6; }
19463 test -n "$PTHREAD_CC" && break
19465 test -n "$PTHREAD_CC" || PTHREAD_CC="${CC}"
19478 # Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
19479 if test x"$ax_pthread_ok" = xyes; then
19481 $as_echo "#define HAVE_PTHREAD 1" >>confdefs.h
19486 as_fn_error $? "JIT support requires pthreads" "$LINENO" 5
19489 ac_cpp='$CPP $CPPFLAGS'
19490 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19491 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19492 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19496 CFLAGS="$PTHREAD_CFLAGS $CFLAGS"
19497 LIBS="$PTHREAD_LIBS $LIBS"
19500 $as_echo "#define SUPPORT_JIT /**/" >>confdefs.h
19503 enable_pcregrep_jit="no"
19506 if test "$enable_pcregrep_jit" = "yes"; then
19508 $as_echo "#define SUPPORT_PCREGREP_JIT /**/" >>confdefs.h
19512 if test "$enable_utf" = "yes"; then
19514 $as_echo "#define SUPPORT_UTF /**/" >>confdefs.h
19518 if test "$enable_unicode_properties" = "yes"; then
19520 $as_echo "#define SUPPORT_UCP /**/" >>confdefs.h
19524 if test "$enable_stack_for_recursion" = "no"; then
19526 $as_echo "#define NO_RECURSE /**/" >>confdefs.h
19530 if test "$enable_pcregrep_libz" = "yes"; then
19532 $as_echo "#define SUPPORT_LIBZ /**/" >>confdefs.h
19536 if test "$enable_pcregrep_libbz2" = "yes"; then
19538 $as_echo "#define SUPPORT_LIBBZ2 /**/" >>confdefs.h
19542 if test $with_pcregrep_bufsize -lt 8192 ; then
19543 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $with_pcregrep_bufsize is too small for --with-pcregrep-bufsize; using 8192" >&5
19544 $as_echo "$as_me: WARNING: $with_pcregrep_bufsize is too small for --with-pcregrep-bufsize; using 8192" >&2;}
19545 with_pcregrep_bufsize="8192"
19547 if test $? -gt 1 ; then
19548 as_fn_error $? "Bad value for --with-pcregrep-bufsize" "$LINENO" 5
19553 cat >>confdefs.h <<_ACEOF
19554 #define PCREGREP_BUFSIZE $with_pcregrep_bufsize
19558 if test "$enable_pcretest_libedit" = "yes"; then
19560 $as_echo "#define SUPPORT_LIBEDIT /**/" >>confdefs.h
19562 LIBREADLINE="$LIBEDIT"
19563 elif test "$enable_pcretest_libreadline" = "yes"; then
19565 $as_echo "#define SUPPORT_LIBREADLINE /**/" >>confdefs.h
19570 cat >>confdefs.h <<_ACEOF
19571 #define NEWLINE $ac_pcre_newline_value
19575 if test "$enable_bsr_anycrlf" = "yes"; then
19577 $as_echo "#define BSR_ANYCRLF /**/" >>confdefs.h
19582 cat >>confdefs.h <<_ACEOF
19583 #define LINK_SIZE $with_link_size
19588 cat >>confdefs.h <<_ACEOF
19589 #define POSIX_MALLOC_THRESHOLD $with_posix_malloc_threshold
19594 cat >>confdefs.h <<_ACEOF
19595 #define PARENS_NEST_LIMIT $with_parens_nest_limit
19600 cat >>confdefs.h <<_ACEOF
19601 #define MATCH_LIMIT $with_match_limit
19606 cat >>confdefs.h <<_ACEOF
19607 #define MATCH_LIMIT_RECURSION $with_match_limit_recursion
19612 $as_echo "#define MAX_NAME_SIZE 32" >>confdefs.h
19616 $as_echo "#define MAX_NAME_COUNT 10000" >>confdefs.h
19621 if test "$enable_ebcdic" = "yes"; then
19623 cat >>confdefs.h <<_ACEOF
19624 #define EBCDIC /**/
19629 if test "$enable_ebcdic_nl25" = "yes"; then
19631 cat >>confdefs.h <<_ACEOF
19632 #define EBCDIC_NL25 /**/
19637 if test "$enable_valgrind" = "yes"; then
19639 cat >>confdefs.h <<_ACEOF
19640 #define SUPPORT_VALGRIND /**/
19645 # Platform specific issues
19647 EXPORT_ALL_SYMBOLS=
19650 if test X"$enable_shared" = Xyes; then
19651 NO_UNDEFINED="-no-undefined"
19652 EXPORT_ALL_SYMBOLS="-Wl,--export-all-symbols"
19657 # The extra LDFLAGS for each particular library
19658 # (Note: The libpcre*_version bits are m4 variables, assigned above)
19660 EXTRA_LIBPCRE_LDFLAGS="$EXTRA_LIBPCRE_LDFLAGS \
19661 $NO_UNDEFINED -version-info 3:7:2"
19663 EXTRA_LIBPCRE16_LDFLAGS="$EXTRA_LIBPCRE16_LDFLAGS \
19664 $NO_UNDEFINED -version-info 2:7:2"
19666 EXTRA_LIBPCRE32_LDFLAGS="$EXTRA_LIBPCRE32_LDFLAGS \
19667 $NO_UNDEFINED -version-info 0:7:0"
19669 EXTRA_LIBPCREPOSIX_LDFLAGS="$EXTRA_LIBPCREPOSIX_LDFLAGS \
19670 $NO_UNDEFINED -version-info 0:4:0"
19672 EXTRA_LIBPCRECPP_LDFLAGS="$EXTRA_LIBPCRECPP_LDFLAGS \
19673 $NO_UNDEFINED -version-info 0:1:0 \
19674 $EXPORT_ALL_SYMBOLS"
19682 # When we run 'make distcheck', use these arguments. Turning off compiler
19683 # optimization makes it run faster.
19684 DISTCHECK_CONFIGURE_FLAGS="CFLAGS='' CXXFLAGS='' --enable-pcre16 --enable-pcre32 --enable-jit --enable-cpp --enable-unicode-properties"
19687 # Check that, if --enable-pcregrep-libz or --enable-pcregrep-libbz2 is
19688 # specified, the relevant library is available.
19690 if test "$enable_pcregrep_libz" = "yes"; then
19691 if test "$HAVE_ZLIB_H" != "1"; then
19692 echo "** Cannot --enable-pcregrep-libz because zlib.h was not found"
19695 if test "$HAVE_LIBZ" != "1"; then
19696 echo "** Cannot --enable-pcregrep-libz because libz was not found"
19703 if test "$enable_pcregrep_libbz2" = "yes"; then
19704 if test "$HAVE_BZLIB_H" != "1"; then
19705 echo "** Cannot --enable-pcregrep-libbz2 because bzlib.h was not found"
19708 if test "$HAVE_LIBBZ2" != "1"; then
19709 echo "** Cannot --enable-pcregrep-libbz2 because libbz2 was not found"
19716 # Similarly for --enable-pcretest-readline
19718 if test "$enable_pcretest_libedit" = "yes"; then
19719 if test "$enable_pcretest_libreadline" = "yes"; then
19720 echo "** Cannot use both --enable-pcretest-libedit and --enable-pcretest-readline"
19723 if test "$HAVE_EDITLINE_READLINE_H" != "1" -a \
19724 "$HAVE_READLINE_READLINE_H" != "1"; then
19725 echo "** Cannot --enable-pcretest-libedit because neither editline/readline.h"
19726 echo "** nor readline/readline.h was found."
19729 if test -z "$LIBEDIT"; then
19730 echo "** Cannot --enable-pcretest-libedit because libedit library was not found."
19735 if test "$enable_pcretest_libreadline" = "yes"; then
19736 if test "$HAVE_READLINE_H" != "1"; then
19737 echo "** Cannot --enable-pcretest-readline because readline/readline.h was not found."
19740 if test "$HAVE_HISTORY_H" != "1"; then
19741 echo "** Cannot --enable-pcretest-readline because readline/history.h was not found."
19744 if test -z "$LIBREADLINE"; then
19745 echo "** Cannot --enable-pcretest-readline because readline library was not found."
19750 # Handle valgrind support
19752 if test "$enable_valgrind" = "yes"; then
19760 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
19761 if test -n "$ac_tool_prefix"; then
19762 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
19763 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
19764 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19765 $as_echo_n "checking for $ac_word... " >&6; }
19766 if ${ac_cv_path_PKG_CONFIG+:} false; then :
19767 $as_echo_n "(cached) " >&6
19769 case $PKG_CONFIG in
19771 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
19774 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19775 for as_dir in $PATH
19778 test -z "$as_dir" && as_dir=.
19779 for ac_exec_ext in '' $ac_executable_extensions; do
19780 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19781 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
19782 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19792 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
19793 if test -n "$PKG_CONFIG"; then
19794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
19795 $as_echo "$PKG_CONFIG" >&6; }
19797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19798 $as_echo "no" >&6; }
19803 if test -z "$ac_cv_path_PKG_CONFIG"; then
19804 ac_pt_PKG_CONFIG=$PKG_CONFIG
19805 # Extract the first word of "pkg-config", so it can be a program name with args.
19806 set dummy pkg-config; ac_word=$2
19807 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19808 $as_echo_n "checking for $ac_word... " >&6; }
19809 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
19810 $as_echo_n "(cached) " >&6
19812 case $ac_pt_PKG_CONFIG in
19814 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
19817 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19818 for as_dir in $PATH
19821 test -z "$as_dir" && as_dir=.
19822 for ac_exec_ext in '' $ac_executable_extensions; do
19823 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19824 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
19825 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19835 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
19836 if test -n "$ac_pt_PKG_CONFIG"; then
19837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
19838 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
19840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19841 $as_echo "no" >&6; }
19844 if test "x$ac_pt_PKG_CONFIG" = x; then
19847 case $cross_compiling:$ac_tool_warned in
19849 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
19850 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
19851 ac_tool_warned=yes ;;
19853 PKG_CONFIG=$ac_pt_PKG_CONFIG
19856 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
19860 if test -n "$PKG_CONFIG"; then
19861 _pkg_min_version=0.9.0
19862 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
19863 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
19864 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
19865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19866 $as_echo "yes" >&6; }
19868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19869 $as_echo "no" >&6; }
19875 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for VALGRIND" >&5
19876 $as_echo_n "checking for VALGRIND... " >&6; }
19878 if test -n "$VALGRIND_CFLAGS"; then
19879 pkg_cv_VALGRIND_CFLAGS="$VALGRIND_CFLAGS"
19880 elif test -n "$PKG_CONFIG"; then
19881 if test -n "$PKG_CONFIG" && \
19882 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"valgrind\""; } >&5
19883 ($PKG_CONFIG --exists --print-errors "valgrind") 2>&5
19885 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19886 test $ac_status = 0; }; then
19887 pkg_cv_VALGRIND_CFLAGS=`$PKG_CONFIG --cflags "valgrind" 2>/dev/null`
19888 test "x$?" != "x0" && pkg_failed=yes
19895 if test -n "$VALGRIND_LIBS"; then
19896 pkg_cv_VALGRIND_LIBS="$VALGRIND_LIBS"
19897 elif test -n "$PKG_CONFIG"; then
19898 if test -n "$PKG_CONFIG" && \
19899 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"valgrind\""; } >&5
19900 ($PKG_CONFIG --exists --print-errors "valgrind") 2>&5
19902 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19903 test $ac_status = 0; }; then
19904 pkg_cv_VALGRIND_LIBS=`$PKG_CONFIG --libs "valgrind" 2>/dev/null`
19905 test "x$?" != "x0" && pkg_failed=yes
19915 if test $pkg_failed = yes; then
19916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19917 $as_echo "no" >&6; }
19919 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
19920 _pkg_short_errors_supported=yes
19922 _pkg_short_errors_supported=no
19924 if test $_pkg_short_errors_supported = yes; then
19925 VALGRIND_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "valgrind" 2>&1`
19927 VALGRIND_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "valgrind" 2>&1`
19929 # Put the nasty error message in config.log where it belongs
19930 echo "$VALGRIND_PKG_ERRORS" >&5
19932 as_fn_error $? "Package requirements (valgrind) were not met:
19934 $VALGRIND_PKG_ERRORS
19936 Consider adjusting the PKG_CONFIG_PATH environment variable if you
19937 installed software in a non-standard prefix.
19939 Alternatively, you may set the environment variables VALGRIND_CFLAGS
19940 and VALGRIND_LIBS to avoid the need to call pkg-config.
19941 See the pkg-config man page for more details." "$LINENO" 5
19942 elif test $pkg_failed = untried; then
19943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19944 $as_echo "no" >&6; }
19945 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
19946 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
19947 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
19948 is in your PATH or set the PKG_CONFIG environment variable to the full
19949 path to pkg-config.
19951 Alternatively, you may set the environment variables VALGRIND_CFLAGS
19952 and VALGRIND_LIBS to avoid the need to call pkg-config.
19953 See the pkg-config man page for more details.
19955 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
19956 See \`config.log' for more details" "$LINENO" 5; }
19958 VALGRIND_CFLAGS=$pkg_cv_VALGRIND_CFLAGS
19959 VALGRIND_LIBS=$pkg_cv_VALGRIND_LIBS
19960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19961 $as_echo "yes" >&6; }
19966 # Handle code coverage reporting support
19967 if test "$enable_coverage" = "yes"; then
19968 if test "x$GCC" != "xyes"; then
19969 as_fn_error $? "Code coverage reports can only be generated when using GCC" "$LINENO" 5
19972 # ccache is incompatible with gcov
19973 # Extract the first word of "shtool", so it can be a program name with args.
19974 set dummy shtool; ac_word=$2
19975 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19976 $as_echo_n "checking for $ac_word... " >&6; }
19977 if ${ac_cv_path_SHTOOL+:} false; then :
19978 $as_echo_n "(cached) " >&6
19982 ac_cv_path_SHTOOL="$SHTOOL" # Let the user override the test with a path.
19985 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19986 for as_dir in $PATH
19989 test -z "$as_dir" && as_dir=.
19990 for ac_exec_ext in '' $ac_executable_extensions; do
19991 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19992 ac_cv_path_SHTOOL="$as_dir/$ac_word$ac_exec_ext"
19993 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20000 test -z "$ac_cv_path_SHTOOL" && ac_cv_path_SHTOOL="false"
20004 SHTOOL=$ac_cv_path_SHTOOL
20005 if test -n "$SHTOOL"; then
20006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SHTOOL" >&5
20007 $as_echo "$SHTOOL" >&6; }
20009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20010 $as_echo "no" >&6; }
20014 case `$SHTOOL path $CC` in
20015 *ccache*) cc_ccache=yes;;
20019 if test "$cc_ccache" = "yes"; then
20020 if test -z "$CCACHE_DISABLE" -o "$CCACHE_DISABLE" != "1"; then
20021 as_fn_error $? "must export CCACHE_DISABLE=1 to disable ccache for code coverage" "$LINENO" 5
20026 # Extract the first word of "lcov", so it can be a program name with args.
20027 set dummy lcov; ac_word=$2
20028 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20029 $as_echo_n "checking for $ac_word... " >&6; }
20030 if ${ac_cv_path_LCOV+:} false; then :
20031 $as_echo_n "(cached) " >&6
20035 ac_cv_path_LCOV="$LCOV" # Let the user override the test with a path.
20038 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20039 for as_dir in $PATH
20042 test -z "$as_dir" && as_dir=.
20043 for ac_exec_ext in '' $ac_executable_extensions; do
20044 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
20045 ac_cv_path_LCOV="$as_dir/$ac_word$ac_exec_ext"
20046 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20053 test -z "$ac_cv_path_LCOV" && ac_cv_path_LCOV="false"
20057 LCOV=$ac_cv_path_LCOV
20058 if test -n "$LCOV"; then
20059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LCOV" >&5
20060 $as_echo "$LCOV" >&6; }
20062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20063 $as_echo "no" >&6; }
20067 if test "x$LCOV" = "xfalse"; then
20068 as_fn_error $? "lcov not found" "$LINENO" 5
20072 # Extract the first word of "genhtml", so it can be a program name with args.
20073 set dummy genhtml; ac_word=$2
20074 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20075 $as_echo_n "checking for $ac_word... " >&6; }
20076 if ${ac_cv_path_GENHTML+:} false; then :
20077 $as_echo_n "(cached) " >&6
20081 ac_cv_path_GENHTML="$GENHTML" # Let the user override the test with a path.
20084 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20085 for as_dir in $PATH
20088 test -z "$as_dir" && as_dir=.
20089 for ac_exec_ext in '' $ac_executable_extensions; do
20090 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
20091 ac_cv_path_GENHTML="$as_dir/$ac_word$ac_exec_ext"
20092 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20099 test -z "$ac_cv_path_GENHTML" && ac_cv_path_GENHTML="false"
20103 GENHTML=$ac_cv_path_GENHTML
20104 if test -n "$GENHTML"; then
20105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GENHTML" >&5
20106 $as_echo "$GENHTML" >&6; }
20108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20109 $as_echo "no" >&6; }
20113 if test "x$GENHTML" = "xfalse"; then
20114 as_fn_error $? "genhtml not found" "$LINENO" 5
20117 # Set flags needed for gcov
20118 GCOV_CFLAGS="-O0 -ggdb3 -fprofile-arcs -ftest-coverage"
20119 GCOV_CXXFLAGS="-O0 -ggdb3 -fprofile-arcs -ftest-coverage"
20124 fi # enable_coverage
20126 if test "x$enable_coverage" = "xyes"; then
20128 WITH_GCOV_FALSE='#'
20135 # Produce these files, in addition to config.h.
20136 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"
20139 # Make the generated script files executable.
20140 ac_config_commands="$ac_config_commands script-chmod"
20143 # Make sure that pcre_chartables.c is removed in case the method for
20144 # creating it was changed by reconfiguration.
20145 ac_config_commands="$ac_config_commands delete-old-chartables"
20148 cat >confcache <<\_ACEOF
20149 # This file is a shell script that caches the results of configure
20150 # tests run on this system so they can be shared between configure
20151 # scripts and configure runs, see configure's option --config-cache.
20152 # It is not useful on other systems. If it contains results you don't
20153 # want to keep, you may remove or edit it.
20155 # config.status only pays attention to the cache file if you give it
20156 # the --recheck option to rerun configure.
20158 # `ac_cv_env_foo' variables (set or unset) will be overridden when
20159 # loading this file, other *unset* `ac_cv_foo' will be assigned the
20160 # following values.
20164 # The following way of writing the cache mishandles newlines in values,
20165 # but we know of no workaround that is simple, portable, and efficient.
20166 # So, we kill variables containing newlines.
20167 # Ultrix sh set writes to stderr and can't be redirected directly,
20168 # and sets the high bit in the cache file unless we assign to the vars.
20170 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
20171 eval ac_val=\$$ac_var
20175 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
20176 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
20179 _ | IFS | as_nl) ;; #(
20180 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
20181 *) { eval $ac_var=; unset $ac_var;} ;;
20187 case $as_nl`(ac_space=' '; set) 2>&1` in #(
20188 *${as_nl}ac_space=\ *)
20189 # `set' does not quote correctly, so add quotes: double-quote
20190 # substitution turns \\\\ into \\, and sed turns \\ into \.
20193 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
20196 # `set' quotes correctly as required by POSIX, so do not add quotes.
20197 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
20206 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
20208 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
20210 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
20211 if test -w "$cache_file"; then
20212 if test "x$cache_file" != "x/dev/null"; then
20213 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
20214 $as_echo "$as_me: updating cache $cache_file" >&6;}
20215 if test ! -f "$cache_file" || test -h "$cache_file"; then
20216 cat confcache >"$cache_file"
20218 case $cache_file in #(
20220 mv -f confcache "$cache_file"$$ &&
20221 mv -f "$cache_file"$$ "$cache_file" ;; #(
20223 mv -f confcache "$cache_file" ;;
20228 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
20229 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
20234 test "x$prefix" = xNONE && prefix=$ac_default_prefix
20235 # Let make expand exec_prefix.
20236 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
20238 DEFS=-DHAVE_CONFIG_H
20243 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
20244 # 1. Remove the extension, and $U if already installed.
20245 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
20246 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
20247 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
20248 # will be set to the directory where LIBOBJS objects are built.
20249 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
20250 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
20252 LIBOBJS=$ac_libobjs
20254 LTLIBOBJS=$ac_ltlibobjs
20257 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
20258 $as_echo_n "checking that generated files are newer than configure... " >&6; }
20259 if test -n "$am_sleep_pid"; then
20260 # Hide warnings about reused PIDs.
20261 wait $am_sleep_pid 2>/dev/null
20263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
20264 $as_echo "done" >&6; }
20265 if test -n "$EXEEXT"; then
20267 am__EXEEXT_FALSE='#'
20269 am__EXEEXT_TRUE='#'
20273 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
20274 as_fn_error $? "conditional \"AMDEP\" was never defined.
20275 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20277 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
20278 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
20279 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20281 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
20282 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
20283 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20285 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
20286 as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
20287 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20289 if test -z "${WITH_PCRE8_TRUE}" && test -z "${WITH_PCRE8_FALSE}"; then
20290 as_fn_error $? "conditional \"WITH_PCRE8\" was never defined.
20291 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20293 if test -z "${WITH_PCRE16_TRUE}" && test -z "${WITH_PCRE16_FALSE}"; then
20294 as_fn_error $? "conditional \"WITH_PCRE16\" was never defined.
20295 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20297 if test -z "${WITH_PCRE32_TRUE}" && test -z "${WITH_PCRE32_FALSE}"; then
20298 as_fn_error $? "conditional \"WITH_PCRE32\" was never defined.
20299 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20301 if test -z "${WITH_PCRE_CPP_TRUE}" && test -z "${WITH_PCRE_CPP_FALSE}"; then
20302 as_fn_error $? "conditional \"WITH_PCRE_CPP\" was never defined.
20303 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20305 if test -z "${WITH_REBUILD_CHARTABLES_TRUE}" && test -z "${WITH_REBUILD_CHARTABLES_FALSE}"; then
20306 as_fn_error $? "conditional \"WITH_REBUILD_CHARTABLES\" was never defined.
20307 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20309 if test -z "${WITH_JIT_TRUE}" && test -z "${WITH_JIT_FALSE}"; then
20310 as_fn_error $? "conditional \"WITH_JIT\" was never defined.
20311 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20313 if test -z "${WITH_UTF_TRUE}" && test -z "${WITH_UTF_FALSE}"; then
20314 as_fn_error $? "conditional \"WITH_UTF\" was never defined.
20315 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20317 if test -z "${WITH_VALGRIND_TRUE}" && test -z "${WITH_VALGRIND_FALSE}"; then
20318 as_fn_error $? "conditional \"WITH_VALGRIND\" was never defined.
20319 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20321 if test -z "${WITH_GCOV_TRUE}" && test -z "${WITH_GCOV_FALSE}"; then
20322 as_fn_error $? "conditional \"WITH_GCOV\" was never defined.
20323 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20326 : "${CONFIG_STATUS=./config.status}"
20328 ac_clean_files_save=$ac_clean_files
20329 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
20330 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
20331 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
20333 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
20335 # Generated by $as_me.
20336 # Run this file to recreate the current configuration.
20337 # Compiler output produced by configure, useful for debugging
20338 # configure, is in config.log if it exists.
20341 ac_cs_recheck=false
20344 SHELL=\${CONFIG_SHELL-$SHELL}
20347 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
20348 ## -------------------- ##
20349 ## M4sh Initialization. ##
20350 ## -------------------- ##
20352 # Be more Bourne compatible
20353 DUALCASE=1; export DUALCASE # for MKS sh
20354 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
20357 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
20358 # is contrary to our usage. Disable this feature.
20359 alias -g '${1+"$@"}'='"$@"'
20360 setopt NO_GLOB_SUBST
20362 case `(set -o) 2>/dev/null` in #(
20374 # Printing a long string crashes Solaris 7 /usr/bin/printf.
20375 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
20376 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
20377 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
20378 # Prefer a ksh shell builtin over an external printf program on Solaris,
20379 # but without wasting forks for bash or zsh.
20380 if test -z "$BASH_VERSION$ZSH_VERSION" \
20381 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
20382 as_echo='print -r --'
20383 as_echo_n='print -rn --'
20384 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
20385 as_echo='printf %s\n'
20386 as_echo_n='printf %s'
20388 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
20389 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
20390 as_echo_n='/usr/ucb/echo -n'
20392 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
20393 as_echo_n_body='eval
20397 expr "X$arg" : "X\\(.*\\)$as_nl";
20398 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
20400 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
20402 export as_echo_n_body
20403 as_echo_n='sh -c $as_echo_n_body as_echo'
20405 export as_echo_body
20406 as_echo='sh -c $as_echo_body as_echo'
20409 # The user is always right.
20410 if test "${PATH_SEPARATOR+set}" != set; then
20412 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
20413 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
20420 # We need space, tab and new line, in precisely that order. Quoting is
20421 # there to prevent editors from complaining about space-tab.
20422 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
20423 # splitting by setting IFS to empty value.)
20426 # Find who we are. Look in the path if we contain no directory separator.
20429 *[\\/]* ) as_myself=$0 ;;
20430 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20431 for as_dir in $PATH
20434 test -z "$as_dir" && as_dir=.
20435 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
20441 # We did not find ourselves, most probably we were run as `sh COMMAND'
20442 # in which case we are not to be found in the path.
20443 if test "x$as_myself" = x; then
20446 if test ! -f "$as_myself"; then
20447 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
20451 # Unset variables that we do not need and which cause bugs (e.g. in
20452 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
20453 # suppresses any "Segmentation fault" message there. '((' could
20454 # trigger a bug in pdksh 5.2.14.
20455 for as_var in BASH_ENV ENV MAIL MAILPATH
20456 do eval test x\${$as_var+set} = xset \
20457 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
20470 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
20473 # as_fn_error STATUS ERROR [LINENO LOG_FD]
20474 # ----------------------------------------
20475 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
20476 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
20477 # script with STATUS, using 1 if that was 0.
20480 as_status=$1; test $as_status -eq 0 && as_status=1
20482 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
20483 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
20485 $as_echo "$as_me: error: $2" >&2
20486 as_fn_exit $as_status
20490 # as_fn_set_status STATUS
20491 # -----------------------
20492 # Set $? to STATUS, without forking.
20493 as_fn_set_status ()
20496 } # as_fn_set_status
20498 # as_fn_exit STATUS
20499 # -----------------
20500 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
20504 as_fn_set_status $1
20510 # Portably unset VAR.
20513 { eval $1=; unset $1;}
20515 as_unset=as_fn_unset
20516 # as_fn_append VAR VALUE
20517 # ----------------------
20518 # Append the text in VALUE to the end of the definition contained in VAR. Take
20519 # advantage of any shell optimizations that allow amortized linear growth over
20520 # repeated appends, instead of the typical quadratic growth present in naive
20522 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
20523 eval 'as_fn_append ()
20534 # as_fn_arith ARG...
20535 # ------------------
20536 # Perform arithmetic evaluation on the ARGs, and store the result in the
20537 # global $as_val. Take advantage of shells that can avoid forks. The arguments
20538 # must be portable across $(()) and expr.
20539 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
20540 eval 'as_fn_arith ()
20547 as_val=`expr "$@" || test $? -eq 1`
20552 if expr a : '\(a\)' >/dev/null 2>&1 &&
20553 test "X`expr 00001 : '.*\(...\)'`" = X001; then
20559 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
20560 as_basename=basename
20565 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
20571 as_me=`$as_basename -- "$0" ||
20572 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
20573 X"$0" : 'X\(//\)$' \| \
20574 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
20576 sed '/^.*\/\([^/][^/]*\)\/*$/{
20590 # Avoid depending upon Character Ranges.
20591 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
20592 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
20593 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
20594 as_cr_digits='0123456789'
20595 as_cr_alnum=$as_cr_Letters$as_cr_digits
20597 ECHO_C= ECHO_N= ECHO_T=
20598 case `echo -n x` in #(((((
20600 case `echo 'xy\c'` in
20601 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
20603 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
20610 rm -f conf$$ conf$$.exe conf$$.file
20611 if test -d conf$$.dir; then
20612 rm -f conf$$.dir/conf$$.file
20615 mkdir conf$$.dir 2>/dev/null
20617 if (echo >conf$$.file) 2>/dev/null; then
20618 if ln -s conf$$.file conf$$ 2>/dev/null; then
20620 # ... but there are two gotchas:
20621 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
20622 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
20623 # In both cases, we have to default to `cp -pR'.
20624 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
20626 elif ln conf$$.file conf$$ 2>/dev/null; then
20634 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
20635 rmdir conf$$.dir 2>/dev/null
20640 # Create "$as_dir" as a directory, including parents if necessary.
20645 -*) as_dir=./$as_dir;;
20647 test -d "$as_dir" || eval $as_mkdir_p || {
20651 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
20652 *) as_qdir=$as_dir;;
20654 as_dirs="'$as_qdir' $as_dirs"
20655 as_dir=`$as_dirname -- "$as_dir" ||
20656 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20657 X"$as_dir" : 'X\(//\)[^/]' \| \
20658 X"$as_dir" : 'X\(//\)$' \| \
20659 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
20660 $as_echo X"$as_dir" |
20661 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20665 /^X\(\/\/\)[^/].*/{
20678 test -d "$as_dir" && break
20680 test -z "$as_dirs" || eval "mkdir $as_dirs"
20681 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
20685 if mkdir -p . 2>/dev/null; then
20686 as_mkdir_p='mkdir -p "$as_dir"'
20688 test -d ./-p && rmdir ./-p
20693 # as_fn_executable_p FILE
20694 # -----------------------
20695 # Test if FILE is an executable regular file.
20696 as_fn_executable_p ()
20698 test -f "$1" && test -x "$1"
20699 } # as_fn_executable_p
20700 as_test_x='test -x'
20701 as_executable_p=as_fn_executable_p
20703 # Sed expression to map a string onto a valid CPP name.
20704 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
20706 # Sed expression to map a string onto a valid variable name.
20707 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
20711 ## ----------------------------------- ##
20712 ## Main body of $CONFIG_STATUS script. ##
20713 ## ----------------------------------- ##
20715 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
20717 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20718 # Save the log message, to keep $0 and so on meaningful, and to
20719 # report actual input values of CONFIG_FILES etc. instead of their
20720 # values after options handling.
20722 This file was extended by PCRE $as_me 8.39, which was
20723 generated by GNU Autoconf 2.69. Invocation command line was
20725 CONFIG_FILES = $CONFIG_FILES
20726 CONFIG_HEADERS = $CONFIG_HEADERS
20727 CONFIG_LINKS = $CONFIG_LINKS
20728 CONFIG_COMMANDS = $CONFIG_COMMANDS
20731 on `(hostname || uname -n) 2>/dev/null | sed 1q`
20736 case $ac_config_files in *"
20737 "*) set x $ac_config_files; shift; ac_config_files=$*;;
20740 case $ac_config_headers in *"
20741 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
20745 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20746 # Files that config.status was made for.
20747 config_files="$ac_config_files"
20748 config_headers="$ac_config_headers"
20749 config_commands="$ac_config_commands"
20753 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20755 \`$as_me' instantiates files and other configuration actions
20756 from templates according to the current configuration. Unless the files
20757 and actions are specified as TAGs, all are instantiated by default.
20759 Usage: $0 [OPTION]... [TAG]...
20761 -h, --help print this help, then exit
20762 -V, --version print version number and configuration settings, then exit
20763 --config print configuration, then exit
20764 -q, --quiet, --silent
20765 do not print progress messages
20766 -d, --debug don't remove temporary files
20767 --recheck update $as_me by reconfiguring in the same conditions
20768 --file=FILE[:TEMPLATE]
20769 instantiate the configuration file FILE
20770 --header=FILE[:TEMPLATE]
20771 instantiate the configuration header FILE
20773 Configuration files:
20776 Configuration headers:
20779 Configuration commands:
20782 Report bugs to the package provider."
20785 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20786 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
20788 PCRE config.status 8.39
20789 configured by $0, generated by GNU Autoconf 2.69,
20790 with options \\"\$ac_cs_config\\"
20792 Copyright (C) 2012 Free Software Foundation, Inc.
20793 This config.status script is free software; the Free Software Foundation
20794 gives unlimited permission to copy, distribute and modify it."
20801 test -n "\$AWK" || AWK=awk
20804 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20805 # The default lists apply if the user does not specify any file.
20811 ac_option=`expr "X$1" : 'X\([^=]*\)='`
20812 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
20816 ac_option=`expr "X$1" : 'X\([^=]*\)='`
20828 # Handling of the options.
20829 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
20831 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
20832 $as_echo "$ac_cs_version"; exit ;;
20833 --config | --confi | --conf | --con | --co | --c )
20834 $as_echo "$ac_cs_config"; exit ;;
20835 --debug | --debu | --deb | --de | --d | -d )
20837 --file | --fil | --fi | --f )
20840 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
20841 '') as_fn_error $? "missing file argument" ;;
20843 as_fn_append CONFIG_FILES " '$ac_optarg'"
20844 ac_need_defaults=false;;
20845 --header | --heade | --head | --hea )
20848 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
20850 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
20851 ac_need_defaults=false;;
20853 # Conflict between --help and --header
20854 as_fn_error $? "ambiguous option: \`$1'
20855 Try \`$0 --help' for more information.";;
20856 --help | --hel | -h )
20857 $as_echo "$ac_cs_usage"; exit ;;
20858 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
20859 | -silent | --silent | --silen | --sile | --sil | --si | --s)
20862 # This is an error.
20863 -*) as_fn_error $? "unrecognized option: \`$1'
20864 Try \`$0 --help' for more information." ;;
20866 *) as_fn_append ac_config_targets " $1"
20867 ac_need_defaults=false ;;
20873 ac_configure_extra_args=
20875 if $ac_cs_silent; then
20877 ac_configure_extra_args="$ac_configure_extra_args --silent"
20881 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20882 if \$ac_cs_recheck; then
20883 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
20885 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
20886 CONFIG_SHELL='$SHELL'
20887 export CONFIG_SHELL
20892 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20896 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
20897 ## Running $as_me. ##
20903 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20907 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
20910 # The HP-UX ksh and POSIX shell print the target directory to stdout
20911 # if CDPATH is set.
20912 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
20914 sed_quote_subst='$sed_quote_subst'
20915 double_quote_subst='$double_quote_subst'
20916 delay_variable_subst='$delay_variable_subst'
20917 AS='`$ECHO "$AS" | $SED "$delay_single_quote_subst"`'
20918 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
20919 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
20920 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
20921 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
20922 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
20923 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
20924 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
20925 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
20926 shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'
20927 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
20928 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
20929 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
20930 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
20931 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
20932 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
20933 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
20934 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
20935 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
20936 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
20937 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
20938 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
20939 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
20940 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
20941 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
20942 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
20943 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
20944 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
20945 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
20946 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
20947 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
20948 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
20949 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
20950 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
20951 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
20952 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
20953 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
20954 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
20955 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
20956 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
20957 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
20958 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
20959 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
20960 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
20961 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
20962 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
20963 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
20964 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
20965 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
20966 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
20967 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
20968 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
20969 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
20970 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
20971 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
20972 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
20973 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
20974 lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
20975 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
20976 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"`'
20977 lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
20978 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
20979 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
20980 lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
20981 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
20982 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
20983 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
20984 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
20985 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
20986 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
20987 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
20988 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
20989 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
20990 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
20991 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
20992 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
20993 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
20994 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
20995 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
20996 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
20997 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
20998 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
20999 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
21000 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
21001 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
21002 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
21003 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
21004 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
21005 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
21006 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
21007 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
21008 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
21009 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
21010 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
21011 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
21012 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
21013 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
21014 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
21015 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
21016 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
21017 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
21018 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
21019 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
21020 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
21021 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
21022 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
21023 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
21024 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
21025 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
21026 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
21027 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
21028 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
21029 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
21030 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
21031 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
21032 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
21033 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
21034 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
21035 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
21036 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
21037 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
21038 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
21039 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
21040 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
21041 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
21042 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
21043 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
21044 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
21045 configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`'
21046 configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`'
21047 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
21048 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
21049 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
21050 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
21051 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
21052 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
21053 compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
21054 predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
21055 postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
21056 predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
21057 postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
21058 compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
21059 LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
21060 reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
21061 reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
21062 old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
21063 compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
21064 GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
21065 lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
21066 lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
21067 lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
21068 lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
21069 lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
21070 archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
21071 enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
21072 export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
21073 whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
21074 compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
21075 old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
21076 old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
21077 archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
21078 archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
21079 module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
21080 module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
21081 with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
21082 allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
21083 no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
21084 hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
21085 hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
21086 hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
21087 hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
21088 hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
21089 hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
21090 hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
21091 inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
21092 link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
21093 always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
21094 export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
21095 exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
21096 include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
21097 prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
21098 postlink_cmds_CXX='`$ECHO "$postlink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
21099 file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
21100 hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
21101 compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
21102 predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
21103 postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
21104 predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
21105 postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
21106 compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
21109 LTCFLAGS='$LTCFLAGS'
21110 compiler='$compiler_DEFAULT'
21112 # A function that is used when there is no print builtin or printf.
21113 func_fallback_echo ()
21115 eval 'cat <<_LTECHO_EOF
21120 # Quote evaled strings.
21137 deplibs_check_method \
21141 sharedlib_from_linklib_cmd \
21144 archiver_list_spec \
21150 lt_cv_sys_global_symbol_pipe \
21151 lt_cv_sys_global_symbol_to_cdecl \
21152 lt_cv_sys_global_symbol_to_import \
21153 lt_cv_sys_global_symbol_to_c_name_address \
21154 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
21155 lt_cv_nm_interface \
21156 nm_file_list_spec \
21157 lt_cv_truncate_bin \
21158 lt_prog_compiler_no_builtin_flag \
21159 lt_prog_compiler_pic \
21160 lt_prog_compiler_wl \
21161 lt_prog_compiler_static \
21162 lt_cv_prog_compiler_c_o \
21171 export_dynamic_flag_spec \
21172 whole_archive_flag_spec \
21173 compiler_needs_object \
21175 allow_undefined_flag \
21176 no_undefined_flag \
21177 hardcode_libdir_flag_spec \
21178 hardcode_libdir_separator \
21182 variables_saved_for_relink \
21184 library_names_spec \
21186 install_override_mode \
21190 compiler_lib_search_dirs \
21195 compiler_lib_search_path \
21199 lt_prog_compiler_no_builtin_flag_CXX \
21200 lt_prog_compiler_pic_CXX \
21201 lt_prog_compiler_wl_CXX \
21202 lt_prog_compiler_static_CXX \
21203 lt_cv_prog_compiler_c_o_CXX \
21204 export_dynamic_flag_spec_CXX \
21205 whole_archive_flag_spec_CXX \
21206 compiler_needs_object_CXX \
21208 allow_undefined_flag_CXX \
21209 no_undefined_flag_CXX \
21210 hardcode_libdir_flag_spec_CXX \
21211 hardcode_libdir_separator_CXX \
21212 exclude_expsyms_CXX \
21213 include_expsyms_CXX \
21214 file_list_spec_CXX \
21215 compiler_lib_search_dirs_CXX \
21216 predep_objects_CXX \
21217 postdep_objects_CXX \
21220 compiler_lib_search_path_CXX; do
21221 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
21222 *[\\\\\\\`\\"\\\$]*)
21223 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
21226 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
21231 # Double-quote double-evaled strings.
21232 for var in reload_cmds \
21233 old_postinstall_cmds \
21234 old_postuninstall_cmds \
21236 extract_expsyms_cmds \
21237 old_archive_from_new_cmds \
21238 old_archive_from_expsyms_cmds \
21240 archive_expsym_cmds \
21242 module_expsym_cmds \
21243 export_symbols_cmds \
21247 postuninstall_cmds \
21249 sys_lib_search_path_spec \
21250 configure_time_dlsearch_path \
21251 configure_time_lt_sys_library_path \
21253 old_archive_cmds_CXX \
21254 old_archive_from_new_cmds_CXX \
21255 old_archive_from_expsyms_cmds_CXX \
21257 archive_expsym_cmds_CXX \
21259 module_expsym_cmds_CXX \
21260 export_symbols_cmds_CXX \
21262 postlink_cmds_CXX; do
21263 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
21264 *[\\\\\\\`\\"\\\$]*)
21265 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
21268 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
21273 ac_aux_dir='$ac_aux_dir'
21275 # See if we are running on zsh, and set the options that allow our
21276 # commands through without removal of \ escapes INIT.
21277 if test -n "\${ZSH_VERSION+set}"; then
21278 setopt NO_GLOB_SUBST
21294 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21296 # Handling of arguments.
21297 for ac_config_target in $ac_config_targets
21299 case $ac_config_target in
21300 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
21301 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
21302 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
21303 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
21304 "libpcre.pc") CONFIG_FILES="$CONFIG_FILES libpcre.pc" ;;
21305 "libpcre16.pc") CONFIG_FILES="$CONFIG_FILES libpcre16.pc" ;;
21306 "libpcre32.pc") CONFIG_FILES="$CONFIG_FILES libpcre32.pc" ;;
21307 "libpcreposix.pc") CONFIG_FILES="$CONFIG_FILES libpcreposix.pc" ;;
21308 "libpcrecpp.pc") CONFIG_FILES="$CONFIG_FILES libpcrecpp.pc" ;;
21309 "pcre-config") CONFIG_FILES="$CONFIG_FILES pcre-config" ;;
21310 "pcre.h") CONFIG_FILES="$CONFIG_FILES pcre.h" ;;
21311 "pcre_stringpiece.h") CONFIG_FILES="$CONFIG_FILES pcre_stringpiece.h" ;;
21312 "pcrecpparg.h") CONFIG_FILES="$CONFIG_FILES pcrecpparg.h" ;;
21313 "script-chmod") CONFIG_COMMANDS="$CONFIG_COMMANDS script-chmod" ;;
21314 "delete-old-chartables") CONFIG_COMMANDS="$CONFIG_COMMANDS delete-old-chartables" ;;
21316 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
21321 # If the user did not use the arguments to specify the items to instantiate,
21322 # then the envvar interface is used. Set only those that are not.
21323 # We use the long form for the default assignment because of an extremely
21324 # bizarre bug on SunOS 4.1.3.
21325 if $ac_need_defaults; then
21326 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
21327 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
21328 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
21331 # Have a temporary directory for convenience. Make it in the build tree
21332 # simply because there is no reason against having it here, and in addition,
21333 # creating and moving files from /tmp can sometimes cause problems.
21334 # Hook for its removal unless debugging.
21335 # Note that there is a small window in which the directory will not be cleaned:
21336 # after its creation but before its name has been assigned to `$tmp'.
21340 trap 'exit_status=$?
21341 : "${ac_tmp:=$tmp}"
21342 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
21344 trap 'as_fn_exit 1' 1 2 13 15
21346 # Create a (secure) tmp directory for tmp files.
21349 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
21353 tmp=./conf$$-$RANDOM
21354 (umask 077 && mkdir "$tmp")
21355 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
21358 # Set up the scripts for CONFIG_FILES section.
21359 # No need to generate them if there are no CONFIG_FILES.
21360 # This happens for instance with `./config.status config.h'.
21361 if test -n "$CONFIG_FILES"; then
21364 ac_cr=`echo X | tr X '\015'`
21365 # On cygwin, bash can eat \r inside `` if the user requested igncr.
21366 # But we know of no other shell where ac_cr would be empty at this
21367 # point, so we can use a bashism as a fallback.
21368 if test "x$ac_cr" = x; then
21369 eval ac_cr=\$\'\\r\'
21371 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
21372 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
21375 ac_cs_awk_cr=$ac_cr
21378 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
21383 echo "cat >conf$$subs.awk <<_ACEOF" &&
21384 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
21386 } >conf$$subs.sh ||
21387 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
21388 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
21390 for ac_last_try in false false false false false :; do
21391 . ./conf$$subs.sh ||
21392 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
21394 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
21395 if test $ac_delim_n = $ac_delim_num; then
21397 elif $ac_last_try; then
21398 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
21400 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
21403 rm -f conf$$subs.sh
21405 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21406 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
21410 s/^/S["/; s/!.*/"]=/
21420 s/\(.\{148\}\)..*/\1/
21422 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
21427 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
21434 s/\(.\{148\}\)..*/\1/
21436 s/["\\]/\\&/g; s/^/"/; s/$/"/
21440 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
21445 ' <conf$$subs.awk | sed '
21450 ' >>$CONFIG_STATUS || ac_write_fail=1
21451 rm -f conf$$subs.awk
21452 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21454 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
21455 for (key in S) S_is_set[key] = 1
21461 nfields = split(line, field, "@")
21463 len = length(field[1])
21464 for (i = 2; i < nfields; i++) {
21466 keylen = length(key)
21467 if (S_is_set[key]) {
21469 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
21470 len += length(value) + length(field[++i])
21481 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21482 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
21483 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
21486 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
21487 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
21490 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
21491 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
21492 # trailing colons and then remove the whole line if VPATH becomes empty
21493 # (actually we leave an empty line to preserve line numbers).
21494 if test "x$srcdir" = x.; then
21495 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
21513 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21514 fi # test -n "$CONFIG_FILES"
21516 # Set up the scripts for CONFIG_HEADERS section.
21517 # No need to generate them if there are no CONFIG_HEADERS.
21518 # This happens for instance with `./config.status Makefile'.
21519 if test -n "$CONFIG_HEADERS"; then
21520 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
21524 # Transform confdefs.h into an awk script `defines.awk', embedded as
21525 # here-document in config.status, that substitutes the proper values into
21526 # config.h.in to produce config.h.
21528 # Create a delimiter string that does not exist in confdefs.h, to ease
21529 # handling of long lines.
21531 for ac_last_try in false false :; do
21532 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
21533 if test -z "$ac_tt"; then
21535 elif $ac_last_try; then
21536 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
21538 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
21542 # For the awk script, D is an array of macro values keyed by name,
21543 # likewise P contains macro parameters if any. Preserve backslash
21544 # newline sequences.
21546 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
21548 s/.\{148\}/&'"$ac_delim"'/g
21551 s/^[ ]*#[ ]*define[ ][ ]*/ /
21558 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
21560 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
21564 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
21565 D["\1"]=" \3\\\\\\n"\\/p
21567 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
21572 s/.\{148\}/&'"$ac_delim"'/g
21577 s/["\\]/\\&/g; s/^/"/; s/$/"/p
21580 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
21582 ' <confdefs.h | sed '
21583 s/'"$ac_delim"'/"\\\
21584 "/g' >>$CONFIG_STATUS || ac_write_fail=1
21586 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21587 for (key in D) D_is_set[key] = 1
21590 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
21592 split(line, arg, " ")
21593 if (arg[1] == "#") {
21597 defundef = substr(arg[1], 2)
21600 split(mac1, mac2, "(") #)
21602 prefix = substr(line, 1, index(line, defundef) - 1)
21603 if (D_is_set[macro]) {
21604 # Preserve the white space surrounding the "#".
21605 print prefix "define", macro P[macro] D[macro]
21608 # Replace #undef with comments. This is necessary, for example,
21609 # in the case of _POSIX_SOURCE, which is predefined and required
21610 # on some systems where configure will not decide to define it.
21611 if (defundef == "undef") {
21612 print "/*", prefix defundef, macro, "*/"
21620 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21621 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
21622 fi # test -n "$CONFIG_HEADERS"
21625 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
21630 :[FHLC]) ac_mode=$ac_tag; continue;;
21632 case $ac_mode$ac_tag in
21634 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
21635 :[FH]-) ac_tag=-:-;;
21636 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
21653 -) ac_f="$ac_tmp/stdin";;
21654 *) # Look for the file first in the build tree, then in the source tree
21655 # (if the path is not absolute). The absolute path cannot be DOS-style,
21656 # because $ac_f cannot contain `:'.
21660 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
21662 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
21664 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
21665 as_fn_append ac_file_inputs " '$ac_f'"
21668 # Let's still pretend it is `configure' which instantiates (i.e., don't
21669 # use $as_me), people would be surprised to read:
21670 # /* config.h. Generated by config.status. */
21671 configure_input='Generated from '`
21672 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
21674 if test x"$ac_file" != x-; then
21675 configure_input="$ac_file. $configure_input"
21676 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
21677 $as_echo "$as_me: creating $ac_file" >&6;}
21679 # Neutralize special characters interpreted by sed in replacement strings.
21680 case $configure_input in #(
21681 *\&* | *\|* | *\\* )
21682 ac_sed_conf_input=`$as_echo "$configure_input" |
21683 sed 's/[\\\\&|]/\\\\&/g'`;; #(
21684 *) ac_sed_conf_input=$configure_input;;
21688 *:-:* | *:-) cat >"$ac_tmp/stdin" \
21689 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
21694 ac_dir=`$as_dirname -- "$ac_file" ||
21695 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21696 X"$ac_file" : 'X\(//\)[^/]' \| \
21697 X"$ac_file" : 'X\(//\)$' \| \
21698 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
21699 $as_echo X"$ac_file" |
21700 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21704 /^X\(\/\/\)[^/].*/{
21717 as_dir="$ac_dir"; as_fn_mkdir_p
21721 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
21723 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
21724 # A ".." for each directory in $ac_dir_suffix.
21725 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
21726 case $ac_top_builddir_sub in
21727 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
21728 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
21731 ac_abs_top_builddir=$ac_pwd
21732 ac_abs_builddir=$ac_pwd$ac_dir_suffix
21733 # for backward compatibility:
21734 ac_top_builddir=$ac_top_build_prefix
21737 .) # We are building in place.
21739 ac_top_srcdir=$ac_top_builddir_sub
21740 ac_abs_top_srcdir=$ac_pwd ;;
21741 [\\/]* | ?:[\\/]* ) # Absolute name.
21742 ac_srcdir=$srcdir$ac_dir_suffix;
21743 ac_top_srcdir=$srcdir
21744 ac_abs_top_srcdir=$srcdir ;;
21745 *) # Relative name.
21746 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
21747 ac_top_srcdir=$ac_top_build_prefix$srcdir
21748 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
21750 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
21760 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
21761 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
21763 ac_MKDIR_P=$MKDIR_P
21765 [\\/$]* | ?:[\\/]* ) ;;
21766 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
21770 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21771 # If the template does not know about datarootdir, expand it.
21772 # FIXME: This hack should be removed a few years after 2.60.
21773 ac_datarootdir_hack=; ac_datarootdir_seen=
21784 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
21785 *datarootdir*) ac_datarootdir_seen=yes;;
21786 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
21787 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
21788 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
21790 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21791 ac_datarootdir_hack='
21792 s&@datadir@&$datadir&g
21793 s&@docdir@&$docdir&g
21794 s&@infodir@&$infodir&g
21795 s&@localedir@&$localedir&g
21796 s&@mandir@&$mandir&g
21797 s&\\\${datarootdir}&$datarootdir&g' ;;
21801 # Neutralize VPATH when `$srcdir' = `.'.
21802 # Shell code in configure.ac might set extrasub.
21803 # FIXME: do we really want to maintain this feature?
21804 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21805 ac_sed_extra="$ac_vpsub
21808 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21810 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
21811 s|@configure_input@|$ac_sed_conf_input|;t t
21812 s&@top_builddir@&$ac_top_builddir_sub&;t t
21813 s&@top_build_prefix@&$ac_top_build_prefix&;t t
21814 s&@srcdir@&$ac_srcdir&;t t
21815 s&@abs_srcdir@&$ac_abs_srcdir&;t t
21816 s&@top_srcdir@&$ac_top_srcdir&;t t
21817 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
21818 s&@builddir@&$ac_builddir&;t t
21819 s&@abs_builddir@&$ac_abs_builddir&;t t
21820 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
21821 s&@INSTALL@&$ac_INSTALL&;t t
21822 s&@MKDIR_P@&$ac_MKDIR_P&;t t
21823 $ac_datarootdir_hack
21825 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
21826 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
21828 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
21829 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
21830 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
21831 "$ac_tmp/out"`; test -z "$ac_out"; } &&
21832 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
21833 which seems to be undefined. Please make sure it is defined" >&5
21834 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
21835 which seems to be undefined. Please make sure it is defined" >&2;}
21837 rm -f "$ac_tmp/stdin"
21839 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
21840 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
21842 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
21848 if test x"$ac_file" != x-; then
21850 $as_echo "/* $configure_input */" \
21851 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
21852 } >"$ac_tmp/config.h" \
21853 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
21854 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
21855 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
21856 $as_echo "$as_me: $ac_file is unchanged" >&6;}
21859 mv "$ac_tmp/config.h" "$ac_file" \
21860 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
21863 $as_echo "/* $configure_input */" \
21864 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
21865 || as_fn_error $? "could not create -" "$LINENO" 5
21867 # Compute "$ac_file"'s index in $config_headers.
21870 for _am_header in $config_headers :; do
21871 case $_am_header in
21872 $_am_arg | $_am_arg:* )
21875 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
21878 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
21879 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21880 X"$_am_arg" : 'X\(//\)[^/]' \| \
21881 X"$_am_arg" : 'X\(//\)$' \| \
21882 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
21883 $as_echo X"$_am_arg" |
21884 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21888 /^X\(\/\/\)[^/].*/{
21900 s/.*/./; q'`/stamp-h$_am_stamp_count
21903 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
21904 $as_echo "$as_me: executing $ac_file commands" >&6;}
21909 case $ac_file$ac_mode in
21910 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
21911 # Older Autoconf quotes --file arguments for eval, but not when files
21912 # are listed without --file. Let's play safe and only enable the eval
21913 # if we detect the quoting.
21914 case $CONFIG_FILES in
21915 *\'*) eval set x "$CONFIG_FILES" ;;
21916 *) set x $CONFIG_FILES ;;
21921 # Strip MF so we end up with the name of the file.
21922 mf=`echo "$mf" | sed -e 's/:.*$//'`
21923 # Check whether this is an Automake generated Makefile or not.
21924 # We used to match only the files named 'Makefile.in', but
21925 # some people rename them; so instead we look at the file content.
21926 # Grep'ing the first line is not enough: some people post-process
21927 # each Makefile.in and add a new line on top of each file to say so.
21928 # Grep'ing the whole file is not good either: AIX grep has a line
21929 # limit of 2048, but all sed's we know have understand at least 4000.
21930 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
21931 dirpart=`$as_dirname -- "$mf" ||
21932 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21933 X"$mf" : 'X\(//\)[^/]' \| \
21934 X"$mf" : 'X\(//\)$' \| \
21935 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
21937 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21941 /^X\(\/\/\)[^/].*/{
21957 # Extract the definition of DEPDIR, am__include, and am__quote
21958 # from the Makefile without running 'make'.
21959 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
21960 test -z "$DEPDIR" && continue
21961 am__include=`sed -n 's/^am__include = //p' < "$mf"`
21962 test -z "$am__include" && continue
21963 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
21964 # Find all dependency output files, they are included files with
21965 # $(DEPDIR) in their names. We invoke sed twice because it is the
21966 # simplest approach to changing $(DEPDIR) to its actual value in the
21968 for file in `sed -n "
21969 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
21970 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
21971 # Make sure the directory exists.
21972 test -f "$dirpart/$file" && continue
21973 fdir=`$as_dirname -- "$file" ||
21974 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21975 X"$file" : 'X\(//\)[^/]' \| \
21976 X"$file" : 'X\(//\)$' \| \
21977 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
21978 $as_echo X"$file" |
21979 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21983 /^X\(\/\/\)[^/].*/{
21996 as_dir=$dirpart/$fdir; as_fn_mkdir_p
21997 # echo "creating $dirpart/$file"
21998 echo '# dummy' > "$dirpart/$file"
22005 # See if we are running on zsh, and set the options that allow our
22006 # commands through without removal of \ escapes.
22007 if test -n "${ZSH_VERSION+set}"; then
22008 setopt NO_GLOB_SUBST
22012 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
22015 cat <<_LT_EOF >> "$cfgfile"
22017 # Generated automatically by $as_me ($PACKAGE) $VERSION
22018 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
22019 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
22021 # Provide generalized library-building support services.
22022 # Written by Gordon Matzigkeit, 1996
22024 # Copyright (C) 2014 Free Software Foundation, Inc.
22025 # This is free software; see the source for copying conditions. There is NO
22026 # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
22028 # GNU Libtool is free software; you can redistribute it and/or modify
22029 # it under the terms of the GNU General Public License as published by
22030 # the Free Software Foundation; either version 2 of of the License, or
22031 # (at your option) any later version.
22033 # As a special exception to the GNU General Public License, if you
22034 # distribute this file as part of a program or library that is built
22035 # using GNU Libtool, you may include this file under the same
22036 # distribution terms that you use for the rest of that program.
22038 # GNU Libtool is distributed in the hope that it will be useful, but
22039 # WITHOUT ANY WARRANTY; without even the implied warranty of
22040 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
22041 # GNU General Public License for more details.
22043 # You should have received a copy of the GNU General Public License
22044 # along with this program. If not, see <http://www.gnu.org/licenses/>.
22047 # The names of the tagged configurations supported by this script.
22048 available_tags='CXX '
22050 # Configured defaults for sys_lib_dlsearch_path munging.
22051 : \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
22053 # ### BEGIN LIBTOOL CONFIG
22055 # Assembler program.
22058 # DLL creation program.
22059 DLLTOOL=$lt_DLLTOOL
22061 # Object dumper program.
22062 OBJDUMP=$lt_OBJDUMP
22064 # Which release of libtool.m4 was used?
22065 macro_version=$macro_version
22066 macro_revision=$macro_revision
22068 # Whether or not to build shared libraries.
22069 build_libtool_libs=$enable_shared
22071 # Whether or not to build static libraries.
22072 build_old_libs=$enable_static
22074 # What type of objects to build.
22077 # Whether or not to optimize for fast installation.
22078 fast_install=$enable_fast_install
22080 # Shared archive member basename,for filename based shared library versioning on AIX.
22081 shared_archive_member_spec=$shared_archive_member_spec
22083 # Shell to use when invoking shell scripts.
22086 # An echo program that protects backslashes.
22089 # The PATH separator for the build system.
22090 PATH_SEPARATOR=$lt_PATH_SEPARATOR
22093 host_alias=$host_alias
22097 # The build system.
22098 build_alias=$build_alias
22102 # A sed program that does not truncate output.
22105 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
22106 Xsed="\$SED -e 1s/^X//"
22108 # A grep program that handles long lines.
22114 # A literal string matcher.
22117 # A BSD- or MS-compatible name lister.
22120 # Whether we need soft or hard links.
22123 # What is the maximum length of a command?
22124 max_cmd_len=$max_cmd_len
22126 # Object file suffix (normally "o").
22129 # Executable file suffix (normally "").
22132 # whether the shell understands "unset".
22135 # turn spaces into newlines.
22138 # turn newlines into spaces.
22141 # convert \$build file names to \$host format.
22142 to_host_file_cmd=$lt_cv_to_host_file_cmd
22144 # convert \$build files to toolchain format.
22145 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
22147 # Method to check whether dependent libraries are shared objects.
22148 deplibs_check_method=$lt_deplibs_check_method
22150 # Command to use when deplibs_check_method = "file_magic".
22151 file_magic_cmd=$lt_file_magic_cmd
22153 # How to find potential files when deplibs_check_method = "file_magic".
22154 file_magic_glob=$lt_file_magic_glob
22156 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
22157 want_nocaseglob=$lt_want_nocaseglob
22159 # Command to associate shared and link libraries.
22160 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
22165 # Flags to create an archive.
22166 AR_FLAGS=$lt_AR_FLAGS
22168 # How to feed a file listing to the archiver.
22169 archiver_list_spec=$lt_archiver_list_spec
22171 # A symbol stripping program.
22174 # Commands used to install an old-style archive.
22176 old_postinstall_cmds=$lt_old_postinstall_cmds
22177 old_postuninstall_cmds=$lt_old_postuninstall_cmds
22179 # Whether to use a lock for old archive extraction.
22180 lock_old_archive_extraction=$lock_old_archive_extraction
22185 # LTCC compiler flags.
22186 LTCFLAGS=$lt_CFLAGS
22188 # Take the output of nm and produce a listing of raw symbols and C names.
22189 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
22191 # Transform the output of nm in a proper C declaration.
22192 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
22194 # Transform the output of nm into a list of symbols to manually relocate.
22195 global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
22197 # Transform the output of nm in a C name address pair.
22198 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
22200 # Transform the output of nm in a C name address pair when lib prefix is needed.
22201 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
22203 # The name lister interface.
22204 nm_interface=$lt_lt_cv_nm_interface
22206 # Specify filename containing input files for \$NM.
22207 nm_file_list_spec=$lt_nm_file_list_spec
22209 # The root where to search for dependent libraries,and where our libraries should be installed.
22210 lt_sysroot=$lt_sysroot
22212 # Command to truncate a binary pipe.
22213 lt_truncate_bin=$lt_lt_cv_truncate_bin
22215 # The name of the directory that contains temporary libtool files.
22218 # Used to examine libraries when file_magic_cmd begins with "file".
22219 MAGIC_CMD=$MAGIC_CMD
22221 # Must we lock files when doing compilation?
22222 need_locks=$lt_need_locks
22225 MANIFEST_TOOL=$lt_MANIFEST_TOOL
22227 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
22228 DSYMUTIL=$lt_DSYMUTIL
22230 # Tool to change global to local symbols on Mac OS X.
22233 # Tool to manipulate fat objects and archives on Mac OS X.
22236 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
22239 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
22240 OTOOL64=$lt_OTOOL64
22242 # Old archive suffix (normally "a").
22245 # Shared library suffix (normally ".so").
22246 shrext_cmds=$lt_shrext_cmds
22248 # The commands to extract the exported symbol list from a shared archive.
22249 extract_expsyms_cmds=$lt_extract_expsyms_cmds
22251 # Variables whose values should be saved in libtool wrapper scripts and
22252 # restored at link time.
22253 variables_saved_for_relink=$lt_variables_saved_for_relink
22255 # Do we need the "lib" prefix for modules?
22256 need_lib_prefix=$need_lib_prefix
22258 # Do we need a version for libraries?
22259 need_version=$need_version
22261 # Library versioning type.
22262 version_type=$version_type
22264 # Shared library runtime path variable.
22265 runpath_var=$runpath_var
22267 # Shared library path variable.
22268 shlibpath_var=$shlibpath_var
22270 # Is shlibpath searched before the hard-coded library search path?
22271 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
22273 # Format of library name prefix.
22274 libname_spec=$lt_libname_spec
22276 # List of archive names. First name is the real one, the rest are links.
22277 # The last name is the one that the linker finds with -lNAME
22278 library_names_spec=$lt_library_names_spec
22280 # The coded name of the library, if different from the real name.
22281 soname_spec=$lt_soname_spec
22283 # Permission mode override for installation of shared libraries.
22284 install_override_mode=$lt_install_override_mode
22286 # Command to use after installation of a shared archive.
22287 postinstall_cmds=$lt_postinstall_cmds
22289 # Command to use after uninstallation of a shared archive.
22290 postuninstall_cmds=$lt_postuninstall_cmds
22292 # Commands used to finish a libtool library installation in a directory.
22293 finish_cmds=$lt_finish_cmds
22295 # As "finish_cmds", except a single script fragment to be evaled but
22297 finish_eval=$lt_finish_eval
22299 # Whether we should hardcode library paths into libraries.
22300 hardcode_into_libs=$hardcode_into_libs
22302 # Compile-time system search path for libraries.
22303 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
22305 # Detected run-time system search path for libraries.
22306 sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path
22308 # Explicit LT_SYS_LIBRARY_PATH set during ./configure time.
22309 configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path
22311 # Whether dlopen is supported.
22312 dlopen_support=$enable_dlopen
22314 # Whether dlopen of programs is supported.
22315 dlopen_self=$enable_dlopen_self
22317 # Whether dlopen of statically linked programs is supported.
22318 dlopen_self_static=$enable_dlopen_self_static
22320 # Commands to strip libraries.
22321 old_striplib=$lt_old_striplib
22322 striplib=$lt_striplib
22325 # The linker used to build libraries.
22328 # How to create reloadable object files.
22329 reload_flag=$lt_reload_flag
22330 reload_cmds=$lt_reload_cmds
22332 # Commands used to build an old-style archive.
22333 old_archive_cmds=$lt_old_archive_cmds
22335 # A language specific compiler.
22338 # Is the compiler the GNU compiler?
22341 # Compiler flag to turn off builtin functions.
22342 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
22344 # Additional compiler flags for building library objects.
22345 pic_flag=$lt_lt_prog_compiler_pic
22347 # How to pass a linker flag through the compiler.
22348 wl=$lt_lt_prog_compiler_wl
22350 # Compiler flag to prevent dynamic linking.
22351 link_static_flag=$lt_lt_prog_compiler_static
22353 # Does compiler simultaneously support -c and -o options?
22354 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
22356 # Whether or not to add -lc for building shared libraries.
22357 build_libtool_need_lc=$archive_cmds_need_lc
22359 # Whether or not to disallow shared libs when runtime libs are static.
22360 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
22362 # Compiler flag to allow reflexive dlopens.
22363 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
22365 # Compiler flag to generate shared objects directly from archives.
22366 whole_archive_flag_spec=$lt_whole_archive_flag_spec
22368 # Whether the compiler copes with passing no objects directly.
22369 compiler_needs_object=$lt_compiler_needs_object
22371 # Create an old-style archive from a shared archive.
22372 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
22374 # Create a temporary old-style archive to link instead of a shared archive.
22375 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
22377 # Commands used to build a shared archive.
22378 archive_cmds=$lt_archive_cmds
22379 archive_expsym_cmds=$lt_archive_expsym_cmds
22381 # Commands used to build a loadable module if different from building
22382 # a shared archive.
22383 module_cmds=$lt_module_cmds
22384 module_expsym_cmds=$lt_module_expsym_cmds
22386 # Whether we are building with GNU ld or not.
22387 with_gnu_ld=$lt_with_gnu_ld
22389 # Flag that allows shared libraries with undefined symbols to be built.
22390 allow_undefined_flag=$lt_allow_undefined_flag
22392 # Flag that enforces no undefined symbols.
22393 no_undefined_flag=$lt_no_undefined_flag
22395 # Flag to hardcode \$libdir into a binary during linking.
22396 # This must work even if \$libdir does not exist
22397 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
22399 # Whether we need a single "-rpath" flag with a separated argument.
22400 hardcode_libdir_separator=$lt_hardcode_libdir_separator
22402 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
22403 # DIR into the resulting binary.
22404 hardcode_direct=$hardcode_direct
22406 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
22407 # DIR into the resulting binary and the resulting library dependency is
22408 # "absolute",i.e impossible to change by setting \$shlibpath_var if the
22409 # library is relocated.
22410 hardcode_direct_absolute=$hardcode_direct_absolute
22412 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
22413 # into the resulting binary.
22414 hardcode_minus_L=$hardcode_minus_L
22416 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
22417 # into the resulting binary.
22418 hardcode_shlibpath_var=$hardcode_shlibpath_var
22420 # Set to "yes" if building a shared library automatically hardcodes DIR
22421 # into the library and all subsequent libraries and executables linked
22423 hardcode_automatic=$hardcode_automatic
22425 # Set to yes if linker adds runtime paths of dependent libraries
22426 # to runtime path list.
22427 inherit_rpath=$inherit_rpath
22429 # Whether libtool must link a program against all its dependency libraries.
22430 link_all_deplibs=$link_all_deplibs
22432 # Set to "yes" if exported symbols are required.
22433 always_export_symbols=$always_export_symbols
22435 # The commands to list exported symbols.
22436 export_symbols_cmds=$lt_export_symbols_cmds
22438 # Symbols that should not be listed in the preloaded symbols.
22439 exclude_expsyms=$lt_exclude_expsyms
22441 # Symbols that must always be exported.
22442 include_expsyms=$lt_include_expsyms
22444 # Commands necessary for linking programs (against libraries) with templates.
22445 prelink_cmds=$lt_prelink_cmds
22447 # Commands necessary for finishing linking programs.
22448 postlink_cmds=$lt_postlink_cmds
22450 # Specify filename containing input files.
22451 file_list_spec=$lt_file_list_spec
22453 # How to hardcode a shared library path into an executable.
22454 hardcode_action=$hardcode_action
22456 # The directories searched by this compiler when creating a shared library.
22457 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
22459 # Dependencies to place before and after the objects being linked to
22460 # create a shared library.
22461 predep_objects=$lt_predep_objects
22462 postdep_objects=$lt_postdep_objects
22463 predeps=$lt_predeps
22464 postdeps=$lt_postdeps
22466 # The library search path used internally by the compiler when linking
22467 # a shared library.
22468 compiler_lib_search_path=$lt_compiler_lib_search_path
22470 # ### END LIBTOOL CONFIG
22474 cat <<'_LT_EOF' >> "$cfgfile"
22476 # ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
22478 # func_munge_path_list VARIABLE PATH
22479 # -----------------------------------
22480 # VARIABLE is name of variable containing _space_ separated list of
22481 # directories to be munged by the contents of PATH, which is string
22484 # string "DIR[ DIR]" will be prepended to VARIABLE
22486 # string "DIR[ DIR]" will be appended to VARIABLE
22487 # "DIRP[:DIRP]::[DIRA:]DIRA"
22488 # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
22489 # "DIRA[ DIRA]" will be appended to VARIABLE
22491 # VARIABLE will be replaced by "DIR[ DIR]"
22492 func_munge_path_list ()
22498 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
22501 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
22504 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
22505 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
22508 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
22514 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
22515 func_cc_basename ()
22517 for cc_temp in $*""; do
22519 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
22520 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
22525 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
22529 # ### END FUNCTIONS SHARED WITH CONFIGURE
22535 cat <<\_LT_EOF >> "$cfgfile"
22536 # AIX sometimes has problems with the GCC collect2 program. For some
22537 # reason, if we set the COLLECT_NAMES environment variable, the problems
22538 # vanish in a puff of smoke.
22539 if test set != "${COLLECT_NAMES+set}"; then
22541 export COLLECT_NAMES
22548 ltmain=$ac_aux_dir/ltmain.sh
22551 # We use sed instead of cat because bash on DJGPP gets confused if
22552 # if finds mixed CR/LF and LF-only lines. Since sed operates in
22553 # text mode, it properly converts lines to CR/LF. This bash problem
22554 # is reportedly fixed, but why not run on old versions too?
22555 sed '$q' "$ltmain" >> "$cfgfile" \
22556 || (rm -f "$cfgfile"; exit 1)
22558 mv -f "$cfgfile" "$ofile" ||
22559 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
22563 cat <<_LT_EOF >> "$ofile"
22565 # ### BEGIN LIBTOOL TAG CONFIG: CXX
22567 # The linker used to build libraries.
22570 # How to create reloadable object files.
22571 reload_flag=$lt_reload_flag_CXX
22572 reload_cmds=$lt_reload_cmds_CXX
22574 # Commands used to build an old-style archive.
22575 old_archive_cmds=$lt_old_archive_cmds_CXX
22577 # A language specific compiler.
22578 CC=$lt_compiler_CXX
22580 # Is the compiler the GNU compiler?
22583 # Compiler flag to turn off builtin functions.
22584 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
22586 # Additional compiler flags for building library objects.
22587 pic_flag=$lt_lt_prog_compiler_pic_CXX
22589 # How to pass a linker flag through the compiler.
22590 wl=$lt_lt_prog_compiler_wl_CXX
22592 # Compiler flag to prevent dynamic linking.
22593 link_static_flag=$lt_lt_prog_compiler_static_CXX
22595 # Does compiler simultaneously support -c and -o options?
22596 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
22598 # Whether or not to add -lc for building shared libraries.
22599 build_libtool_need_lc=$archive_cmds_need_lc_CXX
22601 # Whether or not to disallow shared libs when runtime libs are static.
22602 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
22604 # Compiler flag to allow reflexive dlopens.
22605 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
22607 # Compiler flag to generate shared objects directly from archives.
22608 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
22610 # Whether the compiler copes with passing no objects directly.
22611 compiler_needs_object=$lt_compiler_needs_object_CXX
22613 # Create an old-style archive from a shared archive.
22614 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
22616 # Create a temporary old-style archive to link instead of a shared archive.
22617 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
22619 # Commands used to build a shared archive.
22620 archive_cmds=$lt_archive_cmds_CXX
22621 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
22623 # Commands used to build a loadable module if different from building
22624 # a shared archive.
22625 module_cmds=$lt_module_cmds_CXX
22626 module_expsym_cmds=$lt_module_expsym_cmds_CXX
22628 # Whether we are building with GNU ld or not.
22629 with_gnu_ld=$lt_with_gnu_ld_CXX
22631 # Flag that allows shared libraries with undefined symbols to be built.
22632 allow_undefined_flag=$lt_allow_undefined_flag_CXX
22634 # Flag that enforces no undefined symbols.
22635 no_undefined_flag=$lt_no_undefined_flag_CXX
22637 # Flag to hardcode \$libdir into a binary during linking.
22638 # This must work even if \$libdir does not exist
22639 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
22641 # Whether we need a single "-rpath" flag with a separated argument.
22642 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
22644 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
22645 # DIR into the resulting binary.
22646 hardcode_direct=$hardcode_direct_CXX
22648 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
22649 # DIR into the resulting binary and the resulting library dependency is
22650 # "absolute",i.e impossible to change by setting \$shlibpath_var if the
22651 # library is relocated.
22652 hardcode_direct_absolute=$hardcode_direct_absolute_CXX
22654 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
22655 # into the resulting binary.
22656 hardcode_minus_L=$hardcode_minus_L_CXX
22658 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
22659 # into the resulting binary.
22660 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
22662 # Set to "yes" if building a shared library automatically hardcodes DIR
22663 # into the library and all subsequent libraries and executables linked
22665 hardcode_automatic=$hardcode_automatic_CXX
22667 # Set to yes if linker adds runtime paths of dependent libraries
22668 # to runtime path list.
22669 inherit_rpath=$inherit_rpath_CXX
22671 # Whether libtool must link a program against all its dependency libraries.
22672 link_all_deplibs=$link_all_deplibs_CXX
22674 # Set to "yes" if exported symbols are required.
22675 always_export_symbols=$always_export_symbols_CXX
22677 # The commands to list exported symbols.
22678 export_symbols_cmds=$lt_export_symbols_cmds_CXX
22680 # Symbols that should not be listed in the preloaded symbols.
22681 exclude_expsyms=$lt_exclude_expsyms_CXX
22683 # Symbols that must always be exported.
22684 include_expsyms=$lt_include_expsyms_CXX
22686 # Commands necessary for linking programs (against libraries) with templates.
22687 prelink_cmds=$lt_prelink_cmds_CXX
22689 # Commands necessary for finishing linking programs.
22690 postlink_cmds=$lt_postlink_cmds_CXX
22692 # Specify filename containing input files.
22693 file_list_spec=$lt_file_list_spec_CXX
22695 # How to hardcode a shared library path into an executable.
22696 hardcode_action=$hardcode_action_CXX
22698 # The directories searched by this compiler when creating a shared library.
22699 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
22701 # Dependencies to place before and after the objects being linked to
22702 # create a shared library.
22703 predep_objects=$lt_predep_objects_CXX
22704 postdep_objects=$lt_postdep_objects_CXX
22705 predeps=$lt_predeps_CXX
22706 postdeps=$lt_postdeps_CXX
22708 # The library search path used internally by the compiler when linking
22709 # a shared library.
22710 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
22712 # ### END LIBTOOL TAG CONFIG: CXX
22716 "script-chmod":C) chmod a+x pcre-config ;;
22717 "delete-old-chartables":C) rm -f pcre_chartables.c ;;
22725 ac_clean_files=$ac_clean_files_save
22727 test $ac_write_fail = 0 ||
22728 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
22731 # configure is writing to config.log, and then calls config.status.
22732 # config.status does its own redirection, appending to config.log.
22733 # Unfortunately, on DOS this fails, as config.log is still kept open
22734 # by configure, so config.status won't be able to write to it; its
22735 # output is simply discarded. So we exec the FD to /dev/null,
22736 # effectively closing config.log, so it can be properly (re)opened and
22737 # appended to by config.status. When coming back to configure, we
22738 # need to make the FD available again.
22739 if test "$no_create" != yes; then
22741 ac_config_status_args=
22742 test "$silent" = yes &&
22743 ac_config_status_args="$ac_config_status_args --quiet"
22745 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
22747 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
22748 # would make configure fail if this is the last instruction.
22749 $ac_cs_success || as_fn_exit 1
22751 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
22752 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
22753 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
22757 # Print out a nice little message after configure is run displaying the
22761 if test "$enable_ebcdic_nl25" = "yes"; then
22762 ebcdic_nl_code=0x25
22763 elif test "$enable_ebcdic" = "yes"; then
22764 ebcdic_nl_code=0x15
22769 $PACKAGE-$VERSION configuration summary:
22771 Install prefix .................. : ${prefix}
22772 C preprocessor .................. : ${CPP}
22773 C compiler ...................... : ${CC}
22774 C++ preprocessor ................ : ${CXXCPP}
22775 C++ compiler .................... : ${CXX}
22776 Linker .......................... : ${LD}
22777 C preprocessor flags ............ : ${CPPFLAGS}
22778 C compiler flags ................ : ${CFLAGS} ${VISIBILITY_CFLAGS}
22779 C++ compiler flags .............. : ${CXXFLAGS} ${VISIBILITY_CXXFLAGS}
22780 Linker flags .................... : ${LDFLAGS}
22781 Extra libraries ................. : ${LIBS}
22783 Build 8 bit pcre library ........ : ${enable_pcre8}
22784 Build 16 bit pcre library ....... : ${enable_pcre16}
22785 Build 32 bit pcre library ....... : ${enable_pcre32}
22786 Build C++ library ............... : ${enable_cpp}
22787 Enable JIT compiling support .... : ${enable_jit}
22788 Enable UTF-8/16/32 support ...... : ${enable_utf}
22789 Unicode properties .............. : ${enable_unicode_properties}
22790 Newline char/sequence ........... : ${enable_newline}
22791 \R matches only ANYCRLF ......... : ${enable_bsr_anycrlf}
22792 EBCDIC coding ................... : ${enable_ebcdic}
22793 EBCDIC code for NL .............. : ${ebcdic_nl_code}
22794 Rebuild char tables ............. : ${enable_rebuild_chartables}
22795 Use stack recursion ............. : ${enable_stack_for_recursion}
22796 POSIX mem threshold ............. : ${with_posix_malloc_threshold}
22797 Internal link size .............. : ${with_link_size}
22798 Nested parentheses limit ........ : ${with_parens_nest_limit}
22799 Match limit ..................... : ${with_match_limit}
22800 Match limit recursion ........... : ${with_match_limit_recursion}
22801 Build shared libs ............... : ${enable_shared}
22802 Build static libs ............... : ${enable_static}
22803 Use JIT in pcregrep ............. : ${enable_pcregrep_jit}
22804 Buffer size for pcregrep ........ : ${with_pcregrep_bufsize}
22805 Link pcregrep with libz ......... : ${enable_pcregrep_libz}
22806 Link pcregrep with libbz2 ....... : ${enable_pcregrep_libbz2}
22807 Link pcretest with libedit ...... : ${enable_pcretest_libedit}
22808 Link pcretest with libreadline .. : ${enable_pcretest_libreadline}
22809 Valgrind support ................ : ${enable_valgrind}
22810 Code coverage ................... : ${enable_coverage}