2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69 for PCRE 8.35.
6 # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
9 # This configure script is free software; the Free Software Foundation
10 # gives unlimited permission to copy, distribute and modify it.
11 ## -------------------- ##
12 ## M4sh Initialization. ##
13 ## -------------------- ##
15 # Be more Bourne compatible
16 DUALCASE=1; export DUALCASE # for MKS sh
17 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
20 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
21 # is contrary to our usage. Disable this feature.
22 alias -g '${1+"$@"}'='"$@"'
25 case `(set -o) 2>/dev/null` in #(
37 # Printing a long string crashes Solaris 7 /usr/bin/printf.
38 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
39 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
40 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
41 # Prefer a ksh shell builtin over an external printf program on Solaris,
42 # but without wasting forks for bash or zsh.
43 if test -z "$BASH_VERSION$ZSH_VERSION" \
44 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
46 as_echo_n='print -rn --'
47 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
51 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
52 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
53 as_echo_n='/usr/ucb/echo -n'
55 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
60 expr "X$arg" : "X\\(.*\\)$as_nl";
61 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
63 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
66 as_echo_n='sh -c $as_echo_n_body as_echo'
69 as_echo='sh -c $as_echo_body as_echo'
72 # The user is always right.
73 if test "${PATH_SEPARATOR+set}" != set; then
75 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
76 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
83 # We need space, tab and new line, in precisely that order. Quoting is
84 # there to prevent editors from complaining about space-tab.
85 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
86 # splitting by setting IFS to empty value.)
89 # Find who we are. Look in the path if we contain no directory separator.
92 *[\\/]* ) as_myself=$0 ;;
93 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
97 test -z "$as_dir" && as_dir=.
98 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
104 # We did not find ourselves, most probably we were run as `sh COMMAND'
105 # in which case we are not to be found in the path.
106 if test "x$as_myself" = x; then
109 if test ! -f "$as_myself"; then
110 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
114 # Unset variables that we do not need and which cause bugs (e.g. in
115 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
116 # suppresses any "Segmentation fault" message there. '((' could
117 # trigger a bug in pdksh 5.2.14.
118 for as_var in BASH_ENV ENV MAIL MAILPATH
119 do eval test x\${$as_var+set} = xset \
120 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
133 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
135 # Use a proper internal environment variable to ensure we don't fall
136 # into an infinite loop, continuously re-executing ourselves.
137 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
138 _as_can_reexec=no; export _as_can_reexec;
139 # We cannot yet assume a decent shell, so we have to provide a
140 # neutralization value for shells without unset; and this also
141 # works around shells that cannot unset nonexistent variables.
142 # Preserve -v and -x to the replacement shell.
145 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
147 *v*x* | *x*v* ) as_opts=-vx ;;
152 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
153 # Admittedly, this is quite paranoid, since all the known shells bail
154 # out after a failed `exec'.
155 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
158 # We don't want this to propagate to other subprocesses.
159 { _as_can_reexec=; unset _as_can_reexec;}
160 if test "x$CONFIG_SHELL" = x; then
161 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
164 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
165 # is contrary to our usage. Disable this feature.
166 alias -g '\${1+\"\$@\"}'='\"\$@\"'
169 case \`(set -o) 2>/dev/null\` in #(
177 as_required="as_fn_return () { (exit \$1); }
178 as_fn_success () { as_fn_return 0; }
179 as_fn_failure () { as_fn_return 1; }
180 as_fn_ret_success () { return 0; }
181 as_fn_ret_failure () { return 1; }
184 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
185 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
186 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
187 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
188 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
191 exitcode=1; echo positional parameters were not saved.
193 test x\$exitcode = x0 || exit 1
195 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
196 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
197 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
198 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
199 test \$(( 1 + 1 )) = 2 || exit 1
201 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
202 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
203 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
204 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
205 PATH=/empty FPATH=/empty; export PATH FPATH
206 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
207 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1"
208 if (eval "$as_required") 2>/dev/null; then :
213 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
216 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
218 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
221 test -z "$as_dir" && as_dir=.
225 for as_base in sh bash ksh sh5; do
226 # Try only shells that exist, to save several forks.
227 as_shell=$as_dir/$as_base
228 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
229 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
230 CONFIG_SHELL=$as_shell as_have_required=yes
231 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
239 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
240 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
241 CONFIG_SHELL=$SHELL as_have_required=yes
246 if test "x$CONFIG_SHELL" != x; then :
248 # We cannot yet assume a decent shell, so we have to provide a
249 # neutralization value for shells without unset; and this also
250 # works around shells that cannot unset nonexistent variables.
251 # Preserve -v and -x to the replacement shell.
254 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
256 *v*x* | *x*v* ) as_opts=-vx ;;
261 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
262 # Admittedly, this is quite paranoid, since all the known shells bail
263 # out after a failed `exec'.
264 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
268 if test x$as_have_required = xno; then :
269 $as_echo "$0: This script requires a shell more modern than all"
270 $as_echo "$0: the shells that I found on your system."
271 if test x${ZSH_VERSION+set} = xset ; then
272 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
273 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
275 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
276 $0: including any error possibly output before this
277 $0: message. Then install a modern shell, or manually run
278 $0: the script under such a shell if you do have one."
284 SHELL=${CONFIG_SHELL-/bin/sh}
286 # Unset more variables known to interfere with behavior of common tools.
287 CLICOLOR_FORCE= GREP_OPTIONS=
288 unset CLICOLOR_FORCE GREP_OPTIONS
290 ## --------------------- ##
291 ## M4sh Shell Functions. ##
292 ## --------------------- ##
295 # Portably unset VAR.
298 { eval $1=; unset $1;}
302 # as_fn_set_status STATUS
303 # -----------------------
304 # Set $? to STATUS, without forking.
312 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
322 # Create "$as_dir" as a directory, including parents if necessary.
327 -*) as_dir=./$as_dir;;
329 test -d "$as_dir" || eval $as_mkdir_p || {
333 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
336 as_dirs="'$as_qdir' $as_dirs"
337 as_dir=`$as_dirname -- "$as_dir" ||
338 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
339 X"$as_dir" : 'X\(//\)[^/]' \| \
340 X"$as_dir" : 'X\(//\)$' \| \
341 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
342 $as_echo X"$as_dir" |
343 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
360 test -d "$as_dir" && break
362 test -z "$as_dirs" || eval "mkdir $as_dirs"
363 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
368 # as_fn_executable_p FILE
369 # -----------------------
370 # Test if FILE is an executable regular file.
371 as_fn_executable_p ()
373 test -f "$1" && test -x "$1"
374 } # as_fn_executable_p
375 # as_fn_append VAR VALUE
376 # ----------------------
377 # Append the text in VALUE to the end of the definition contained in VAR. Take
378 # advantage of any shell optimizations that allow amortized linear growth over
379 # repeated appends, instead of the typical quadratic growth present in naive
381 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
382 eval 'as_fn_append ()
395 # Perform arithmetic evaluation on the ARGs, and store the result in the
396 # global $as_val. Take advantage of shells that can avoid forks. The arguments
397 # must be portable across $(()) and expr.
398 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
406 as_val=`expr "$@" || test $? -eq 1`
411 # as_fn_error STATUS ERROR [LINENO LOG_FD]
412 # ----------------------------------------
413 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
414 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
415 # script with STATUS, using 1 if that was 0.
418 as_status=$1; test $as_status -eq 0 && as_status=1
420 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
421 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
423 $as_echo "$as_me: error: $2" >&2
424 as_fn_exit $as_status
427 if expr a : '\(a\)' >/dev/null 2>&1 &&
428 test "X`expr 00001 : '.*\(...\)'`" = X001; then
434 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
440 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
446 as_me=`$as_basename -- "$0" ||
447 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
448 X"$0" : 'X\(//\)$' \| \
449 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
451 sed '/^.*\/\([^/][^/]*\)\/*$/{
465 # Avoid depending upon Character Ranges.
466 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
467 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
468 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
469 as_cr_digits='0123456789'
470 as_cr_alnum=$as_cr_Letters$as_cr_digits
473 as_lineno_1=$LINENO as_lineno_1a=$LINENO
474 as_lineno_2=$LINENO as_lineno_2a=$LINENO
475 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
476 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
477 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
489 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
493 chmod +x "$as_me.lineno" ||
494 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
496 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
497 # already done that, so ensure we don't try to do so again and fall
498 # in an infinite loop. This has already happened in practice.
499 _as_can_reexec=no; export _as_can_reexec
500 # Don't try to exec as it changes $[0], causing all sort of problems
501 # (the dirname of $[0] is not the place where we might find the
502 # original and so on. Autoconf is especially sensitive to this).
504 # Exit status is that of the last command.
508 ECHO_C= ECHO_N= ECHO_T=
509 case `echo -n x` in #(((((
511 case `echo 'xy\c'` in
512 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
514 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
521 rm -f conf$$ conf$$.exe conf$$.file
522 if test -d conf$$.dir; then
523 rm -f conf$$.dir/conf$$.file
526 mkdir conf$$.dir 2>/dev/null
528 if (echo >conf$$.file) 2>/dev/null; then
529 if ln -s conf$$.file conf$$ 2>/dev/null; then
531 # ... but there are two gotchas:
532 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
533 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
534 # In both cases, we have to default to `cp -pR'.
535 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
537 elif ln conf$$.file conf$$ 2>/dev/null; then
545 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
546 rmdir conf$$.dir 2>/dev/null
548 if mkdir -p . 2>/dev/null; then
549 as_mkdir_p='mkdir -p "$as_dir"'
551 test -d ./-p && rmdir ./-p
556 as_executable_p=as_fn_executable_p
558 # Sed expression to map a string onto a valid CPP name.
559 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
561 # Sed expression to map a string onto a valid variable name.
562 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
564 SHELL=${CONFIG_SHELL-/bin/sh}
567 test -n "$DJDIR" || exec 7<&0 </dev/null
571 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
572 # so uname gets run too.
573 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
578 ac_default_prefix=/usr/local
580 ac_config_libobj_dir=.
587 # Identity of this package.
589 PACKAGE_TARNAME='pcre'
590 PACKAGE_VERSION='8.35'
591 PACKAGE_STRING='PCRE 8.35'
595 ac_unique_file="pcre.h.in"
596 # Factoring default headers for most tests.
597 ac_includes_default="\
599 #ifdef HAVE_SYS_TYPES_H
600 # include <sys/types.h>
602 #ifdef HAVE_SYS_STAT_H
603 # include <sys/stat.h>
609 # ifdef HAVE_STDLIB_H
614 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
619 #ifdef HAVE_STRINGS_H
620 # include <strings.h>
622 #ifdef HAVE_INTTYPES_H
623 # include <inttypes.h>
632 ac_subst_vars='am__EXEEXT_FALSE
651 DISTCHECK_CONFIGURE_FLAGS
652 EXTRA_LIBPCRECPP_LDFLAGS
653 EXTRA_LIBPCREPOSIX_LDFLAGS
654 EXTRA_LIBPCRE32_LDFLAGS
655 EXTRA_LIBPCRE16_LDFLAGS
656 EXTRA_LIBPCRE_LDFLAGS
669 WITH_REBUILD_CHARTABLES_FALSE
670 WITH_REBUILD_CHARTABLES_TRUE
679 pcre_have_bits_type_traits
680 pcre_have_type_traits
761 INSTALL_STRIP_PROGRAM
803 program_transform_name
816 enable_option_checking
818 enable_dependency_tracking
832 enable_rebuild_chartables
835 enable_unicode_properties
838 enable_newline_is_crlf
839 enable_newline_is_anycrlf
840 enable_newline_is_any
844 enable_stack_for_recursion
846 enable_pcregrep_libbz2
847 with_pcregrep_bufsize
848 enable_pcretest_libedit
849 enable_pcretest_libreadline
850 with_posix_malloc_threshold
852 with_parens_nest_limit
854 with_match_limit_recursion
858 ac_precious_vars='build_alias
880 # Initialize some variables set by options.
882 ac_init_version=false
883 ac_unrecognized_opts=
885 # The variables have the same names as the options, with
886 # dashes changed to underlines.
894 program_transform_name=s,x,x,
902 # Installation directory options.
903 # These are left unexpanded so users can "make install exec_prefix=/foo"
904 # and all the variables that are supposed to be based on exec_prefix
905 # by default will actually change.
906 # Use braces instead of parens because sh, perl, etc. also accept them.
907 # (The list follows the same order as the GNU Coding Standards.)
908 bindir='${exec_prefix}/bin'
909 sbindir='${exec_prefix}/sbin'
910 libexecdir='${exec_prefix}/libexec'
911 datarootdir='${prefix}/share'
912 datadir='${datarootdir}'
913 sysconfdir='${prefix}/etc'
914 sharedstatedir='${prefix}/com'
915 localstatedir='${prefix}/var'
916 includedir='${prefix}/include'
917 oldincludedir='/usr/include'
918 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
919 infodir='${datarootdir}/info'
924 libdir='${exec_prefix}/lib'
925 localedir='${datarootdir}/locale'
926 mandir='${datarootdir}/man'
932 # If the previous option needs an argument, assign it.
933 if test -n "$ac_prev"; then
934 eval $ac_prev=\$ac_option
940 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
945 # Accept the important Cygnus configure options, so we can diagnose typos.
947 case $ac_dashdash$ac_option in
951 -bindir | --bindir | --bindi | --bind | --bin | --bi)
953 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
956 -build | --build | --buil | --bui | --bu)
957 ac_prev=build_alias ;;
958 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
959 build_alias=$ac_optarg ;;
961 -cache-file | --cache-file | --cache-fil | --cache-fi \
962 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
963 ac_prev=cache_file ;;
964 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
965 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
966 cache_file=$ac_optarg ;;
969 cache_file=config.cache ;;
971 -datadir | --datadir | --datadi | --datad)
973 -datadir=* | --datadir=* | --datadi=* | --datad=*)
974 datadir=$ac_optarg ;;
976 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
977 | --dataroo | --dataro | --datar)
978 ac_prev=datarootdir ;;
979 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
980 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
981 datarootdir=$ac_optarg ;;
983 -disable-* | --disable-*)
984 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
985 # Reject names that are not valid shell variable names.
986 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
987 as_fn_error $? "invalid feature name: $ac_useropt"
988 ac_useropt_orig=$ac_useropt
989 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
990 case $ac_user_opts in
994 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
995 ac_unrecognized_sep=', ';;
997 eval enable_$ac_useropt=no ;;
999 -docdir | --docdir | --docdi | --doc | --do)
1001 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1002 docdir=$ac_optarg ;;
1004 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1006 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1007 dvidir=$ac_optarg ;;
1009 -enable-* | --enable-*)
1010 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1011 # Reject names that are not valid shell variable names.
1012 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1013 as_fn_error $? "invalid feature name: $ac_useropt"
1014 ac_useropt_orig=$ac_useropt
1015 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1016 case $ac_user_opts in
1018 "enable_$ac_useropt"
1020 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1021 ac_unrecognized_sep=', ';;
1023 eval enable_$ac_useropt=\$ac_optarg ;;
1025 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1026 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1027 | --exec | --exe | --ex)
1028 ac_prev=exec_prefix ;;
1029 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1030 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1031 | --exec=* | --exe=* | --ex=*)
1032 exec_prefix=$ac_optarg ;;
1034 -gas | --gas | --ga | --g)
1035 # Obsolete; use --with-gas.
1038 -help | --help | --hel | --he | -h)
1039 ac_init_help=long ;;
1040 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1041 ac_init_help=recursive ;;
1042 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1043 ac_init_help=short ;;
1045 -host | --host | --hos | --ho)
1046 ac_prev=host_alias ;;
1047 -host=* | --host=* | --hos=* | --ho=*)
1048 host_alias=$ac_optarg ;;
1050 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1052 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1054 htmldir=$ac_optarg ;;
1056 -includedir | --includedir | --includedi | --included | --include \
1057 | --includ | --inclu | --incl | --inc)
1058 ac_prev=includedir ;;
1059 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1060 | --includ=* | --inclu=* | --incl=* | --inc=*)
1061 includedir=$ac_optarg ;;
1063 -infodir | --infodir | --infodi | --infod | --info | --inf)
1065 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1066 infodir=$ac_optarg ;;
1068 -libdir | --libdir | --libdi | --libd)
1070 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1071 libdir=$ac_optarg ;;
1073 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1074 | --libexe | --libex | --libe)
1075 ac_prev=libexecdir ;;
1076 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1077 | --libexe=* | --libex=* | --libe=*)
1078 libexecdir=$ac_optarg ;;
1080 -localedir | --localedir | --localedi | --localed | --locale)
1081 ac_prev=localedir ;;
1082 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1083 localedir=$ac_optarg ;;
1085 -localstatedir | --localstatedir | --localstatedi | --localstated \
1086 | --localstate | --localstat | --localsta | --localst | --locals)
1087 ac_prev=localstatedir ;;
1088 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1089 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1090 localstatedir=$ac_optarg ;;
1092 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1094 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1095 mandir=$ac_optarg ;;
1097 -nfp | --nfp | --nf)
1098 # Obsolete; use --without-fp.
1101 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1102 | --no-cr | --no-c | -n)
1105 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1106 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1109 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1110 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1111 | --oldin | --oldi | --old | --ol | --o)
1112 ac_prev=oldincludedir ;;
1113 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1114 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1115 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1116 oldincludedir=$ac_optarg ;;
1118 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1120 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1121 prefix=$ac_optarg ;;
1123 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1124 | --program-pre | --program-pr | --program-p)
1125 ac_prev=program_prefix ;;
1126 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1127 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1128 program_prefix=$ac_optarg ;;
1130 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1131 | --program-suf | --program-su | --program-s)
1132 ac_prev=program_suffix ;;
1133 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1134 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1135 program_suffix=$ac_optarg ;;
1137 -program-transform-name | --program-transform-name \
1138 | --program-transform-nam | --program-transform-na \
1139 | --program-transform-n | --program-transform- \
1140 | --program-transform | --program-transfor \
1141 | --program-transfo | --program-transf \
1142 | --program-trans | --program-tran \
1143 | --progr-tra | --program-tr | --program-t)
1144 ac_prev=program_transform_name ;;
1145 -program-transform-name=* | --program-transform-name=* \
1146 | --program-transform-nam=* | --program-transform-na=* \
1147 | --program-transform-n=* | --program-transform-=* \
1148 | --program-transform=* | --program-transfor=* \
1149 | --program-transfo=* | --program-transf=* \
1150 | --program-trans=* | --program-tran=* \
1151 | --progr-tra=* | --program-tr=* | --program-t=*)
1152 program_transform_name=$ac_optarg ;;
1154 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1156 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1157 pdfdir=$ac_optarg ;;
1159 -psdir | --psdir | --psdi | --psd | --ps)
1161 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1164 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1165 | -silent | --silent | --silen | --sile | --sil)
1168 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1170 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1172 sbindir=$ac_optarg ;;
1174 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1175 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1176 | --sharedst | --shareds | --shared | --share | --shar \
1178 ac_prev=sharedstatedir ;;
1179 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1180 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1181 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1183 sharedstatedir=$ac_optarg ;;
1185 -site | --site | --sit)
1187 -site=* | --site=* | --sit=*)
1190 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1192 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1193 srcdir=$ac_optarg ;;
1195 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1196 | --syscon | --sysco | --sysc | --sys | --sy)
1197 ac_prev=sysconfdir ;;
1198 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1199 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1200 sysconfdir=$ac_optarg ;;
1202 -target | --target | --targe | --targ | --tar | --ta | --t)
1203 ac_prev=target_alias ;;
1204 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1205 target_alias=$ac_optarg ;;
1207 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1210 -version | --version | --versio | --versi | --vers | -V)
1211 ac_init_version=: ;;
1214 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1215 # Reject names that are not valid shell variable names.
1216 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1217 as_fn_error $? "invalid package name: $ac_useropt"
1218 ac_useropt_orig=$ac_useropt
1219 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1220 case $ac_user_opts in
1224 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1225 ac_unrecognized_sep=', ';;
1227 eval with_$ac_useropt=\$ac_optarg ;;
1229 -without-* | --without-*)
1230 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1231 # Reject names that are not valid shell variable names.
1232 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1233 as_fn_error $? "invalid package name: $ac_useropt"
1234 ac_useropt_orig=$ac_useropt
1235 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1236 case $ac_user_opts in
1240 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1241 ac_unrecognized_sep=', ';;
1243 eval with_$ac_useropt=no ;;
1246 # Obsolete; use --with-x.
1249 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1250 | --x-incl | --x-inc | --x-in | --x-i)
1251 ac_prev=x_includes ;;
1252 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1253 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1254 x_includes=$ac_optarg ;;
1256 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1257 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1258 ac_prev=x_libraries ;;
1259 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1260 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1261 x_libraries=$ac_optarg ;;
1263 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1264 Try \`$0 --help' for more information"
1268 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1269 # Reject names that are not valid shell variable names.
1270 case $ac_envvar in #(
1271 '' | [0-9]* | *[!_$as_cr_alnum]* )
1272 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1274 eval $ac_envvar=\$ac_optarg
1275 export $ac_envvar ;;
1278 # FIXME: should be removed in autoconf 3.0.
1279 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1280 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1281 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1282 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1288 if test -n "$ac_prev"; then
1289 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1290 as_fn_error $? "missing argument to $ac_option"
1293 if test -n "$ac_unrecognized_opts"; then
1294 case $enable_option_checking in
1296 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1297 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1301 # Check all directory arguments for consistency.
1302 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1303 datadir sysconfdir sharedstatedir localstatedir includedir \
1304 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1305 libdir localedir mandir
1307 eval ac_val=\$$ac_var
1308 # Remove trailing slashes.
1311 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1312 eval $ac_var=\$ac_val;;
1314 # Be sure to have absolute directory names.
1316 [\\/$]* | ?:[\\/]* ) continue;;
1317 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1319 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1322 # There might be people who depend on the old broken behavior: `$host'
1323 # used to hold the argument of --host etc.
1324 # FIXME: To remove some day.
1327 target=$target_alias
1329 # FIXME: To remove some day.
1330 if test "x$host_alias" != x; then
1331 if test "x$build_alias" = x; then
1332 cross_compiling=maybe
1333 elif test "x$build_alias" != "x$host_alias"; then
1339 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1341 test "$silent" = yes && exec 6>/dev/null
1344 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1345 ac_ls_di=`ls -di .` &&
1346 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1347 as_fn_error $? "working directory cannot be determined"
1348 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1349 as_fn_error $? "pwd does not report name of working directory"
1352 # Find the source files, if location was not specified.
1353 if test -z "$srcdir"; then
1354 ac_srcdir_defaulted=yes
1355 # Try the directory containing this script, then the parent directory.
1356 ac_confdir=`$as_dirname -- "$as_myself" ||
1357 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1358 X"$as_myself" : 'X\(//\)[^/]' \| \
1359 X"$as_myself" : 'X\(//\)$' \| \
1360 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1361 $as_echo X"$as_myself" |
1362 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1380 if test ! -r "$srcdir/$ac_unique_file"; then
1384 ac_srcdir_defaulted=no
1386 if test ! -r "$srcdir/$ac_unique_file"; then
1387 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1388 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1390 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1392 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1394 # When building in place, set srcdir=.
1395 if test "$ac_abs_confdir" = "$ac_pwd"; then
1398 # Remove unnecessary trailing slashes from srcdir.
1399 # Double slashes in file names in object file debugging info
1400 # mess up M-x gdb in Emacs.
1402 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1404 for ac_var in $ac_precious_vars; do
1405 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1406 eval ac_env_${ac_var}_value=\$${ac_var}
1407 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1408 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1412 # Report the --help message.
1414 if test "$ac_init_help" = "long"; then
1415 # Omit some internal or obsolete options to make the list less imposing.
1416 # This message is too long to be a string in the A/UX 3.1 sh.
1418 \`configure' configures PCRE 8.35 to adapt to many kinds of systems.
1420 Usage: $0 [OPTION]... [VAR=VALUE]...
1422 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1423 VAR=VALUE. See below for descriptions of some of the useful variables.
1425 Defaults for the options are specified in brackets.
1428 -h, --help display this help and exit
1429 --help=short display options specific to this package
1430 --help=recursive display the short help of all the included packages
1431 -V, --version display version information and exit
1432 -q, --quiet, --silent do not print \`checking ...' messages
1433 --cache-file=FILE cache test results in FILE [disabled]
1434 -C, --config-cache alias for \`--cache-file=config.cache'
1435 -n, --no-create do not create output files
1436 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1438 Installation directories:
1439 --prefix=PREFIX install architecture-independent files in PREFIX
1440 [$ac_default_prefix]
1441 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1444 By default, \`make install' will install all the files in
1445 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1446 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1447 for instance \`--prefix=\$HOME'.
1449 For better control, use the options below.
1451 Fine tuning of the installation directories:
1452 --bindir=DIR user executables [EPREFIX/bin]
1453 --sbindir=DIR system admin executables [EPREFIX/sbin]
1454 --libexecdir=DIR program executables [EPREFIX/libexec]
1455 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1456 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1457 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1458 --libdir=DIR object code libraries [EPREFIX/lib]
1459 --includedir=DIR C header files [PREFIX/include]
1460 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1461 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1462 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1463 --infodir=DIR info documentation [DATAROOTDIR/info]
1464 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1465 --mandir=DIR man documentation [DATAROOTDIR/man]
1466 --docdir=DIR documentation root [DATAROOTDIR/doc/pcre]
1467 --htmldir=DIR html documentation [DOCDIR]
1468 --dvidir=DIR dvi documentation [DOCDIR]
1469 --pdfdir=DIR pdf documentation [DOCDIR]
1470 --psdir=DIR ps documentation [DOCDIR]
1476 --program-prefix=PREFIX prepend PREFIX to installed program names
1477 --program-suffix=SUFFIX append SUFFIX to installed program names
1478 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1481 --build=BUILD configure for building on BUILD [guessed]
1482 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1486 if test -n "$ac_init_help"; then
1487 case $ac_init_help in
1488 short | recursive ) echo "Configuration of PCRE 8.35:";;
1493 --disable-option-checking ignore unrecognized --enable/--with options
1494 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1495 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1496 --enable-silent-rules less verbose build output (undo: "make V=1")
1497 --disable-silent-rules verbose build output (undo: "make V=0")
1498 --enable-dependency-tracking
1499 do not reject slow dependency extractors
1500 --disable-dependency-tracking
1501 speeds up one-time build
1502 --enable-shared[=PKGS] build shared libraries [default=yes]
1503 --enable-static[=PKGS] build static libraries [default=yes]
1504 --enable-fast-install[=PKGS]
1505 optimize for fast installation [default=yes]
1506 --disable-libtool-lock avoid locking (might break parallel builds)
1507 --disable-pcre8 disable 8 bit character support
1508 --enable-pcre16 enable 16 bit character support
1509 --enable-pcre32 enable 32 bit character support
1510 --disable-cpp disable C++ support
1511 --enable-jit enable Just-In-Time compiling support
1512 --disable-pcregrep-jit disable JIT support in pcregrep
1513 --enable-rebuild-chartables
1514 rebuild character tables in current locale
1515 --enable-utf8 another name for --enable-utf. Kept only for
1516 compatibility reasons
1517 --enable-utf enable UTF-8/16/32 support (incompatible with
1519 --enable-unicode-properties
1520 enable Unicode properties support (implies
1522 --enable-newline-is-cr use CR as newline character
1523 --enable-newline-is-lf use LF as newline character (default)
1524 --enable-newline-is-crlf
1525 use CRLF as newline sequence
1526 --enable-newline-is-anycrlf
1527 use CR, LF, or CRLF as newline sequence
1528 --enable-newline-is-any use any valid Unicode newline sequence
1529 --enable-bsr-anycrlf \R matches only CR, LF, CRLF by default
1530 --enable-ebcdic assume EBCDIC coding rather than ASCII; incompatible
1531 with --enable-utf; use only in (uncommon) EBCDIC
1532 environments; it implies --enable-rebuild-chartables
1533 --enable-ebcdic-nl25 set EBCDIC code for NL to 0x25 instead of 0x15; it
1534 implies --enable-ebcdic
1535 --disable-stack-for-recursion
1536 don't use stack recursion when matching
1537 --enable-pcregrep-libz link pcregrep with libz to handle .gz files
1538 --enable-pcregrep-libbz2
1539 link pcregrep with libbz2 to handle .bz2 files
1540 --enable-pcretest-libedit
1541 link pcretest with libedit
1542 --enable-pcretest-libreadline
1543 link pcretest with libreadline
1544 --enable-valgrind valgrind support
1545 --enable-coverage enable code coverage reports using gcov
1548 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1549 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1550 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
1552 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1553 --with-sysroot=DIR Search for dependent libraries within DIR
1554 (or the compiler's sysroot if not specified).
1555 --with-pcregrep-bufsize=N
1556 pcregrep buffer size (default=20480, minimum=8192)
1557 --with-posix-malloc-threshold=NBYTES
1558 threshold for POSIX malloc usage (default=10)
1559 --with-link-size=N internal link size (2, 3, or 4 allowed; default=2)
1560 --with-parens-nest-limit=N
1561 nested parentheses limit (default=250)
1562 --with-match-limit=N default limit on internal looping (default=10000000)
1563 --with-match-limit-recursion=N
1564 default limit on internal recursion
1565 (default=MATCH_LIMIT)
1567 Some influential environment variables:
1568 CC C compiler command
1569 CFLAGS C compiler flags
1570 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1571 nonstandard directory <lib dir>
1572 LIBS libraries to pass to the linker, e.g. -l<library>
1573 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1574 you have headers in a nonstandard directory <include dir>
1575 CXX C++ compiler command
1576 CXXFLAGS C++ compiler flags
1578 CXXCPP C++ preprocessor
1579 PKG_CONFIG path to pkg-config utility
1581 directories to add to pkg-config's search path
1583 path overriding pkg-config's built-in search path
1585 C compiler flags for VALGRIND, overriding pkg-config
1587 linker flags for VALGRIND, overriding pkg-config
1588 LCOV the ltp lcov program
1589 GENHTML the ltp genhtml program
1591 Use these variables to override the choices made by `configure' or to help
1592 it to find libraries and programs with nonstandard names/locations.
1594 Report bugs to the package provider.
1599 if test "$ac_init_help" = "recursive"; then
1600 # If there are subdirs, report their specific --help.
1601 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1602 test -d "$ac_dir" ||
1603 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1608 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1610 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1611 # A ".." for each directory in $ac_dir_suffix.
1612 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1613 case $ac_top_builddir_sub in
1614 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1615 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1618 ac_abs_top_builddir=$ac_pwd
1619 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1620 # for backward compatibility:
1621 ac_top_builddir=$ac_top_build_prefix
1624 .) # We are building in place.
1626 ac_top_srcdir=$ac_top_builddir_sub
1627 ac_abs_top_srcdir=$ac_pwd ;;
1628 [\\/]* | ?:[\\/]* ) # Absolute name.
1629 ac_srcdir=$srcdir$ac_dir_suffix;
1630 ac_top_srcdir=$srcdir
1631 ac_abs_top_srcdir=$srcdir ;;
1633 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1634 ac_top_srcdir=$ac_top_build_prefix$srcdir
1635 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1637 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1639 cd "$ac_dir" || { ac_status=$?; continue; }
1640 # Check for guested configure.
1641 if test -f "$ac_srcdir/configure.gnu"; then
1643 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1644 elif test -f "$ac_srcdir/configure"; then
1646 $SHELL "$ac_srcdir/configure" --help=recursive
1648 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1650 cd "$ac_pwd" || { ac_status=$?; break; }
1654 test -n "$ac_init_help" && exit $ac_status
1655 if $ac_init_version; then
1658 generated by GNU Autoconf 2.69
1660 Copyright (C) 2012 Free Software Foundation, Inc.
1661 This configure script is free software; the Free Software Foundation
1662 gives unlimited permission to copy, distribute and modify it.
1667 ## ------------------------ ##
1668 ## Autoconf initialization. ##
1669 ## ------------------------ ##
1671 # ac_fn_c_try_compile LINENO
1672 # --------------------------
1673 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1674 ac_fn_c_try_compile ()
1676 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1677 rm -f conftest.$ac_objext
1678 if { { ac_try="$ac_compile"
1680 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1681 *) ac_try_echo=$ac_try;;
1683 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1684 $as_echo "$ac_try_echo"; } >&5
1685 (eval "$ac_compile") 2>conftest.err
1687 if test -s conftest.err; then
1688 grep -v '^ *+' conftest.err >conftest.er1
1689 cat conftest.er1 >&5
1690 mv -f conftest.er1 conftest.err
1692 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1693 test $ac_status = 0; } && {
1694 test -z "$ac_c_werror_flag" ||
1695 test ! -s conftest.err
1696 } && test -s conftest.$ac_objext; then :
1699 $as_echo "$as_me: failed program was:" >&5
1700 sed 's/^/| /' conftest.$ac_ext >&5
1704 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1705 as_fn_set_status $ac_retval
1707 } # ac_fn_c_try_compile
1709 # ac_fn_cxx_try_compile LINENO
1710 # ----------------------------
1711 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1712 ac_fn_cxx_try_compile ()
1714 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1715 rm -f conftest.$ac_objext
1716 if { { ac_try="$ac_compile"
1718 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1719 *) ac_try_echo=$ac_try;;
1721 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1722 $as_echo "$ac_try_echo"; } >&5
1723 (eval "$ac_compile") 2>conftest.err
1725 if test -s conftest.err; then
1726 grep -v '^ *+' conftest.err >conftest.er1
1727 cat conftest.er1 >&5
1728 mv -f conftest.er1 conftest.err
1730 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1731 test $ac_status = 0; } && {
1732 test -z "$ac_cxx_werror_flag" ||
1733 test ! -s conftest.err
1734 } && test -s conftest.$ac_objext; then :
1737 $as_echo "$as_me: failed program was:" >&5
1738 sed 's/^/| /' conftest.$ac_ext >&5
1742 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1743 as_fn_set_status $ac_retval
1745 } # ac_fn_cxx_try_compile
1747 # ac_fn_c_try_cpp LINENO
1748 # ----------------------
1749 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1752 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1753 if { { ac_try="$ac_cpp conftest.$ac_ext"
1755 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1756 *) ac_try_echo=$ac_try;;
1758 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1759 $as_echo "$ac_try_echo"; } >&5
1760 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1762 if test -s conftest.err; then
1763 grep -v '^ *+' conftest.err >conftest.er1
1764 cat conftest.er1 >&5
1765 mv -f conftest.er1 conftest.err
1767 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1768 test $ac_status = 0; } > conftest.i && {
1769 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1770 test ! -s conftest.err
1774 $as_echo "$as_me: failed program was:" >&5
1775 sed 's/^/| /' conftest.$ac_ext >&5
1779 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1780 as_fn_set_status $ac_retval
1784 # ac_fn_c_try_run LINENO
1785 # ----------------------
1786 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1787 # that executables *can* be run.
1790 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1791 if { { ac_try="$ac_link"
1793 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1794 *) ac_try_echo=$ac_try;;
1796 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1797 $as_echo "$ac_try_echo"; } >&5
1798 (eval "$ac_link") 2>&5
1800 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1801 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1802 { { case "(($ac_try" in
1803 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1804 *) ac_try_echo=$ac_try;;
1806 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1807 $as_echo "$ac_try_echo"; } >&5
1808 (eval "$ac_try") 2>&5
1810 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1811 test $ac_status = 0; }; }; then :
1814 $as_echo "$as_me: program exited with status $ac_status" >&5
1815 $as_echo "$as_me: failed program was:" >&5
1816 sed 's/^/| /' conftest.$ac_ext >&5
1818 ac_retval=$ac_status
1820 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1821 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1822 as_fn_set_status $ac_retval
1826 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1827 # -------------------------------------------------------
1828 # Tests whether HEADER exists and can be compiled using the include files in
1829 # INCLUDES, setting the cache variable VAR accordingly.
1830 ac_fn_c_check_header_compile ()
1832 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1833 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1834 $as_echo_n "checking for $2... " >&6; }
1835 if eval \${$3+:} false; then :
1836 $as_echo_n "(cached) " >&6
1838 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1839 /* end confdefs.h. */
1843 if ac_fn_c_try_compile "$LINENO"; then :
1848 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1852 $as_echo "$ac_res" >&6; }
1853 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1855 } # ac_fn_c_check_header_compile
1857 # ac_fn_c_find_intX_t LINENO BITS VAR
1858 # -----------------------------------
1859 # Finds a signed integer type with width BITS, setting cache variable VAR
1861 ac_fn_c_find_intX_t ()
1863 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1864 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for int$2_t" >&5
1865 $as_echo_n "checking for int$2_t... " >&6; }
1866 if eval \${$3+:} false; then :
1867 $as_echo_n "(cached) " >&6
1870 # Order is important - never check a type that is potentially smaller
1871 # than half of the expected target width.
1872 for ac_type in int$2_t 'int' 'long int' \
1873 'long long int' 'short int' 'signed char'; do
1874 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1875 /* end confdefs.h. */
1876 $ac_includes_default
1877 enum { N = $2 / 2 - 1 };
1881 static int test_array [1 - 2 * !(0 < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1))];
1883 return test_array [0];
1889 if ac_fn_c_try_compile "$LINENO"; then :
1890 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1891 /* end confdefs.h. */
1892 $ac_includes_default
1893 enum { N = $2 / 2 - 1 };
1897 static int test_array [1 - 2 * !(($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1)
1898 < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 2))];
1900 return test_array [0];
1906 if ac_fn_c_try_compile "$LINENO"; then :
1913 eval "$3=\$ac_type" ;;
1916 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1918 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1919 if eval test \"x\$"$3"\" = x"no"; then :
1927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1928 $as_echo "$ac_res" >&6; }
1929 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1931 } # ac_fn_c_find_intX_t
1933 # ac_fn_c_try_link LINENO
1934 # -----------------------
1935 # Try to link conftest.$ac_ext, and return whether this succeeded.
1938 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1939 rm -f conftest.$ac_objext conftest$ac_exeext
1940 if { { ac_try="$ac_link"
1942 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1943 *) ac_try_echo=$ac_try;;
1945 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1946 $as_echo "$ac_try_echo"; } >&5
1947 (eval "$ac_link") 2>conftest.err
1949 if test -s conftest.err; then
1950 grep -v '^ *+' conftest.err >conftest.er1
1951 cat conftest.er1 >&5
1952 mv -f conftest.er1 conftest.err
1954 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1955 test $ac_status = 0; } && {
1956 test -z "$ac_c_werror_flag" ||
1957 test ! -s conftest.err
1958 } && test -s conftest$ac_exeext && {
1959 test "$cross_compiling" = yes ||
1960 test -x conftest$ac_exeext
1964 $as_echo "$as_me: failed program was:" >&5
1965 sed 's/^/| /' conftest.$ac_ext >&5
1969 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1970 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1971 # interfere with the next link command; also delete a directory that is
1972 # left behind by Apple's compiler. We do this before executing the actions.
1973 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1974 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1975 as_fn_set_status $ac_retval
1977 } # ac_fn_c_try_link
1979 # ac_fn_c_check_func LINENO FUNC VAR
1980 # ----------------------------------
1981 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1982 ac_fn_c_check_func ()
1984 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1985 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1986 $as_echo_n "checking for $2... " >&6; }
1987 if eval \${$3+:} false; then :
1988 $as_echo_n "(cached) " >&6
1990 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1991 /* end confdefs.h. */
1992 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1993 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1994 #define $2 innocuous_$2
1996 /* System header to define __stub macros and hopefully few prototypes,
1997 which can conflict with char $2 (); below.
1998 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1999 <limits.h> exists even on freestanding compilers. */
2002 # include <limits.h>
2004 # include <assert.h>
2009 /* Override any GCC internal prototype to avoid an error.
2010 Use char because int might match the return type of a GCC
2011 builtin and then its argument prototype would still apply. */
2016 /* The GNU C library defines this for functions which it implements
2017 to always fail with ENOSYS. Some functions are actually named
2018 something starting with __ and the normal name is an alias. */
2019 #if defined __stub_$2 || defined __stub___$2
2031 if ac_fn_c_try_link "$LINENO"; then :
2036 rm -f core conftest.err conftest.$ac_objext \
2037 conftest$ac_exeext conftest.$ac_ext
2040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2041 $as_echo "$ac_res" >&6; }
2042 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2044 } # ac_fn_c_check_func
2046 # ac_fn_cxx_try_cpp LINENO
2047 # ------------------------
2048 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2049 ac_fn_cxx_try_cpp ()
2051 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2052 if { { ac_try="$ac_cpp conftest.$ac_ext"
2054 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2055 *) ac_try_echo=$ac_try;;
2057 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2058 $as_echo "$ac_try_echo"; } >&5
2059 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2061 if test -s conftest.err; then
2062 grep -v '^ *+' conftest.err >conftest.er1
2063 cat conftest.er1 >&5
2064 mv -f conftest.er1 conftest.err
2066 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2067 test $ac_status = 0; } > conftest.i && {
2068 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
2069 test ! -s conftest.err
2073 $as_echo "$as_me: failed program was:" >&5
2074 sed 's/^/| /' conftest.$ac_ext >&5
2078 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2079 as_fn_set_status $ac_retval
2081 } # ac_fn_cxx_try_cpp
2083 # ac_fn_cxx_try_link LINENO
2084 # -------------------------
2085 # Try to link conftest.$ac_ext, and return whether this succeeded.
2086 ac_fn_cxx_try_link ()
2088 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2089 rm -f conftest.$ac_objext conftest$ac_exeext
2090 if { { ac_try="$ac_link"
2092 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2093 *) ac_try_echo=$ac_try;;
2095 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2096 $as_echo "$ac_try_echo"; } >&5
2097 (eval "$ac_link") 2>conftest.err
2099 if test -s conftest.err; then
2100 grep -v '^ *+' conftest.err >conftest.er1
2101 cat conftest.er1 >&5
2102 mv -f conftest.er1 conftest.err
2104 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2105 test $ac_status = 0; } && {
2106 test -z "$ac_cxx_werror_flag" ||
2107 test ! -s conftest.err
2108 } && test -s conftest$ac_exeext && {
2109 test "$cross_compiling" = yes ||
2110 test -x conftest$ac_exeext
2114 $as_echo "$as_me: failed program was:" >&5
2115 sed 's/^/| /' conftest.$ac_ext >&5
2119 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2120 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2121 # interfere with the next link command; also delete a directory that is
2122 # left behind by Apple's compiler. We do this before executing the actions.
2123 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2124 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2125 as_fn_set_status $ac_retval
2127 } # ac_fn_cxx_try_link
2129 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
2130 # -------------------------------------------------------
2131 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
2132 # the include files in INCLUDES and setting the cache variable VAR
2134 ac_fn_c_check_header_mongrel ()
2136 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2137 if eval \${$3+:} false; then :
2138 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2139 $as_echo_n "checking for $2... " >&6; }
2140 if eval \${$3+:} false; then :
2141 $as_echo_n "(cached) " >&6
2144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2145 $as_echo "$ac_res" >&6; }
2147 # Is the header compilable?
2148 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2149 $as_echo_n "checking $2 usability... " >&6; }
2150 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2151 /* end confdefs.h. */
2155 if ac_fn_c_try_compile "$LINENO"; then :
2156 ac_header_compiler=yes
2158 ac_header_compiler=no
2160 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2162 $as_echo "$ac_header_compiler" >&6; }
2164 # Is the header present?
2165 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2166 $as_echo_n "checking $2 presence... " >&6; }
2167 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2168 /* end confdefs.h. */
2171 if ac_fn_c_try_cpp "$LINENO"; then :
2172 ac_header_preproc=yes
2174 ac_header_preproc=no
2176 rm -f conftest.err conftest.i conftest.$ac_ext
2177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2178 $as_echo "$ac_header_preproc" >&6; }
2180 # So? What about this header?
2181 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2183 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2184 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2185 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2186 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2189 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2190 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2191 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2192 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2193 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2194 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2195 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2196 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2197 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2198 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2201 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2202 $as_echo_n "checking for $2... " >&6; }
2203 if eval \${$3+:} false; then :
2204 $as_echo_n "(cached) " >&6
2206 eval "$3=\$ac_header_compiler"
2209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2210 $as_echo "$ac_res" >&6; }
2212 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2214 } # ac_fn_c_check_header_mongrel
2216 # ac_fn_cxx_check_header_mongrel LINENO HEADER VAR INCLUDES
2217 # ---------------------------------------------------------
2218 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
2219 # the include files in INCLUDES and setting the cache variable VAR
2221 ac_fn_cxx_check_header_mongrel ()
2223 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2224 if eval \${$3+:} false; then :
2225 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2226 $as_echo_n "checking for $2... " >&6; }
2227 if eval \${$3+:} false; then :
2228 $as_echo_n "(cached) " >&6
2231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2232 $as_echo "$ac_res" >&6; }
2234 # Is the header compilable?
2235 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2236 $as_echo_n "checking $2 usability... " >&6; }
2237 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2238 /* end confdefs.h. */
2242 if ac_fn_cxx_try_compile "$LINENO"; then :
2243 ac_header_compiler=yes
2245 ac_header_compiler=no
2247 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2249 $as_echo "$ac_header_compiler" >&6; }
2251 # Is the header present?
2252 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2253 $as_echo_n "checking $2 presence... " >&6; }
2254 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2255 /* end confdefs.h. */
2258 if ac_fn_cxx_try_cpp "$LINENO"; then :
2259 ac_header_preproc=yes
2261 ac_header_preproc=no
2263 rm -f conftest.err conftest.i conftest.$ac_ext
2264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2265 $as_echo "$ac_header_preproc" >&6; }
2267 # So? What about this header?
2268 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in #((
2270 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2271 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2272 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2273 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2276 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2277 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2278 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2279 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2280 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2281 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2282 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2283 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2284 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2285 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2288 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2289 $as_echo_n "checking for $2... " >&6; }
2290 if eval \${$3+:} false; then :
2291 $as_echo_n "(cached) " >&6
2293 eval "$3=\$ac_header_compiler"
2296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2297 $as_echo "$ac_res" >&6; }
2299 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2301 } # ac_fn_cxx_check_header_mongrel
2303 # ac_fn_cxx_check_type LINENO TYPE VAR INCLUDES
2304 # ---------------------------------------------
2305 # Tests whether TYPE exists after having included INCLUDES, setting cache
2306 # variable VAR accordingly.
2307 ac_fn_cxx_check_type ()
2309 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2310 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2311 $as_echo_n "checking for $2... " >&6; }
2312 if eval \${$3+:} false; then :
2313 $as_echo_n "(cached) " >&6
2316 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2317 /* end confdefs.h. */
2328 if ac_fn_cxx_try_compile "$LINENO"; then :
2329 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2330 /* end confdefs.h. */
2341 if ac_fn_cxx_try_compile "$LINENO"; then :
2346 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2348 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2352 $as_echo "$ac_res" >&6; }
2353 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2355 } # ac_fn_cxx_check_type
2357 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2358 # -------------------------------------------
2359 # Tests whether TYPE exists after having included INCLUDES, setting cache
2360 # variable VAR accordingly.
2361 ac_fn_c_check_type ()
2363 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2364 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2365 $as_echo_n "checking for $2... " >&6; }
2366 if eval \${$3+:} false; then :
2367 $as_echo_n "(cached) " >&6
2370 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2371 /* end confdefs.h. */
2382 if ac_fn_c_try_compile "$LINENO"; then :
2383 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2384 /* end confdefs.h. */
2395 if ac_fn_c_try_compile "$LINENO"; then :
2400 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2402 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2406 $as_echo "$ac_res" >&6; }
2407 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2409 } # ac_fn_c_check_type
2410 cat >config.log <<_ACEOF
2411 This file contains any messages produced by compilers while
2412 running configure, to aid debugging if configure makes a mistake.
2414 It was created by PCRE $as_me 8.35, which was
2415 generated by GNU Autoconf 2.69. Invocation command line was
2427 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2428 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2429 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2430 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2431 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2433 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2434 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2436 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2437 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2438 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2439 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2440 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2441 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2442 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2446 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2450 test -z "$as_dir" && as_dir=.
2451 $as_echo "PATH: $as_dir"
2467 # Keep a trace of the command line.
2468 # Strip out --no-create and --no-recursion so they do not pile up.
2469 # Strip out --silent because we don't want to record it for future runs.
2470 # Also quote any args containing shell meta-characters.
2471 # Make two passes to allow for proper duplicate-argument suppression.
2475 ac_must_keep_next=false
2481 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2482 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2483 | -silent | --silent | --silen | --sile | --sil)
2486 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2489 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2491 as_fn_append ac_configure_args1 " '$ac_arg'"
2492 if test $ac_must_keep_next = true; then
2493 ac_must_keep_next=false # Got value, back to normal.
2496 *=* | --config-cache | -C | -disable-* | --disable-* \
2497 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2498 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2499 | -with-* | --with-* | -without-* | --without-* | --x)
2500 case "$ac_configure_args0 " in
2501 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2504 -* ) ac_must_keep_next=true ;;
2507 as_fn_append ac_configure_args " '$ac_arg'"
2512 { ac_configure_args0=; unset ac_configure_args0;}
2513 { ac_configure_args1=; unset ac_configure_args1;}
2515 # When interrupted or exit'd, cleanup temporary files, and complete
2516 # config.log. We remove comments because anyway the quotes in there
2517 # would cause problems or look ugly.
2518 # WARNING: Use '\'' to represent an apostrophe within the trap.
2519 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2520 trap 'exit_status=$?
2521 # Save into config.log some information that might help in debugging.
2525 $as_echo "## ---------------- ##
2526 ## Cache variables. ##
2527 ## ---------------- ##"
2529 # The following way of writing the cache mishandles newlines in values,
2531 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2532 eval ac_val=\$$ac_var
2536 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2537 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2540 _ | IFS | as_nl) ;; #(
2541 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2542 *) { eval $ac_var=; unset $ac_var;} ;;
2547 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2548 *${as_nl}ac_space=\ *)
2550 "s/'\''/'\''\\\\'\'''\''/g;
2551 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2554 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2561 $as_echo "## ----------------- ##
2562 ## Output variables. ##
2563 ## ----------------- ##"
2565 for ac_var in $ac_subst_vars
2567 eval ac_val=\$$ac_var
2569 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2571 $as_echo "$ac_var='\''$ac_val'\''"
2575 if test -n "$ac_subst_files"; then
2576 $as_echo "## ------------------- ##
2577 ## File substitutions. ##
2578 ## ------------------- ##"
2580 for ac_var in $ac_subst_files
2582 eval ac_val=\$$ac_var
2584 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2586 $as_echo "$ac_var='\''$ac_val'\''"
2591 if test -s confdefs.h; then
2592 $as_echo "## ----------- ##
2599 test "$ac_signal" != 0 &&
2600 $as_echo "$as_me: caught signal $ac_signal"
2601 $as_echo "$as_me: exit $exit_status"
2603 rm -f core *.core core.conftest.* &&
2604 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2607 for ac_signal in 1 2 13 15; do
2608 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2612 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2613 rm -f -r conftest* confdefs.h
2615 $as_echo "/* confdefs.h */" > confdefs.h
2617 # Predefined preprocessor variables.
2619 cat >>confdefs.h <<_ACEOF
2620 #define PACKAGE_NAME "$PACKAGE_NAME"
2623 cat >>confdefs.h <<_ACEOF
2624 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2627 cat >>confdefs.h <<_ACEOF
2628 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2631 cat >>confdefs.h <<_ACEOF
2632 #define PACKAGE_STRING "$PACKAGE_STRING"
2635 cat >>confdefs.h <<_ACEOF
2636 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2639 cat >>confdefs.h <<_ACEOF
2640 #define PACKAGE_URL "$PACKAGE_URL"
2644 # Let the site file select an alternate cache file if it wants to.
2645 # Prefer an explicitly selected file to automatically selected ones.
2648 if test -n "$CONFIG_SITE"; then
2649 # We do not want a PATH search for config.site.
2650 case $CONFIG_SITE in #((
2651 -*) ac_site_file1=./$CONFIG_SITE;;
2652 */*) ac_site_file1=$CONFIG_SITE;;
2653 *) ac_site_file1=./$CONFIG_SITE;;
2655 elif test "x$prefix" != xNONE; then
2656 ac_site_file1=$prefix/share/config.site
2657 ac_site_file2=$prefix/etc/config.site
2659 ac_site_file1=$ac_default_prefix/share/config.site
2660 ac_site_file2=$ac_default_prefix/etc/config.site
2662 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2664 test "x$ac_site_file" = xNONE && continue
2665 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2666 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2667 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2668 sed 's/^/| /' "$ac_site_file" >&5
2670 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2671 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2672 as_fn_error $? "failed to load site script $ac_site_file
2673 See \`config.log' for more details" "$LINENO" 5; }
2677 if test -r "$cache_file"; then
2678 # Some versions of bash will fail to source /dev/null (special files
2679 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2680 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2681 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2682 $as_echo "$as_me: loading cache $cache_file" >&6;}
2684 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2685 *) . "./$cache_file";;
2689 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2690 $as_echo "$as_me: creating cache $cache_file" >&6;}
2694 # Check that the precious variables saved in the cache have kept the same
2696 ac_cache_corrupted=false
2697 for ac_var in $ac_precious_vars; do
2698 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2699 eval ac_new_set=\$ac_env_${ac_var}_set
2700 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2701 eval ac_new_val=\$ac_env_${ac_var}_value
2702 case $ac_old_set,$ac_new_set in
2704 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2705 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2706 ac_cache_corrupted=: ;;
2708 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2709 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2710 ac_cache_corrupted=: ;;
2713 if test "x$ac_old_val" != "x$ac_new_val"; then
2714 # differences in whitespace do not lead to failure.
2715 ac_old_val_w=`echo x $ac_old_val`
2716 ac_new_val_w=`echo x $ac_new_val`
2717 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2718 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2719 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2720 ac_cache_corrupted=:
2722 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2723 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2724 eval $ac_var=\$ac_old_val
2726 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2727 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2728 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2729 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2732 # Pass precious variables to config.status.
2733 if test "$ac_new_set" = set; then
2735 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2736 *) ac_arg=$ac_var=$ac_new_val ;;
2738 case " $ac_configure_args " in
2739 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2740 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2744 if $ac_cache_corrupted; then
2745 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2746 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2747 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2748 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2749 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2751 ## -------------------- ##
2752 ## Main body of script. ##
2753 ## -------------------- ##
2756 ac_cpp='$CPP $CPPFLAGS'
2757 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2758 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2759 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2763 am__api_version='1.14'
2766 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2767 if test -f "$ac_dir/install-sh"; then
2769 ac_install_sh="$ac_aux_dir/install-sh -c"
2771 elif test -f "$ac_dir/install.sh"; then
2773 ac_install_sh="$ac_aux_dir/install.sh -c"
2775 elif test -f "$ac_dir/shtool"; then
2777 ac_install_sh="$ac_aux_dir/shtool install -c"
2781 if test -z "$ac_aux_dir"; then
2782 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2785 # These three variables are undocumented and unsupported,
2786 # and are intended to be withdrawn in a future Autoconf release.
2787 # They can cause serious problems if a builder's source tree is in a directory
2788 # whose full name contains unusual characters.
2789 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2790 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2791 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2794 # Find a good install program. We prefer a C program (faster),
2795 # so one script is as good as another. But avoid the broken or
2796 # incompatible versions:
2797 # SysV /etc/install, /usr/sbin/install
2798 # SunOS /usr/etc/install
2799 # IRIX /sbin/install
2801 # AmigaOS /C/install, which installs bootblocks on floppy discs
2802 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2803 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2804 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2805 # OS/2's system install, which has a completely different semantic
2806 # ./install, which can be erroneously created by make from ./install.sh.
2807 # Reject install programs that cannot install multiple files.
2808 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2809 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2810 if test -z "$INSTALL"; then
2811 if ${ac_cv_path_install+:} false; then :
2812 $as_echo_n "(cached) " >&6
2814 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2818 test -z "$as_dir" && as_dir=.
2819 # Account for people who put trailing slashes in PATH elements.
2820 case $as_dir/ in #((
2821 ./ | .// | /[cC]/* | \
2822 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2823 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2826 # OSF1 and SCO ODT 3.0 have their own names for install.
2827 # Don't use installbsd from OSF since it installs stuff as root
2829 for ac_prog in ginstall scoinst install; do
2830 for ac_exec_ext in '' $ac_executable_extensions; do
2831 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2832 if test $ac_prog = install &&
2833 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2834 # AIX install. It has an incompatible calling convention.
2836 elif test $ac_prog = install &&
2837 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2838 # program-specific install script used by HP pwplus--don't use.
2841 rm -rf conftest.one conftest.two conftest.dir
2842 echo one > conftest.one
2843 echo two > conftest.two
2845 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2846 test -s conftest.one && test -s conftest.two &&
2847 test -s conftest.dir/conftest.one &&
2848 test -s conftest.dir/conftest.two
2850 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2863 rm -rf conftest.one conftest.two conftest.dir
2866 if test "${ac_cv_path_install+set}" = set; then
2867 INSTALL=$ac_cv_path_install
2869 # As a last resort, use the slow shell script. Don't cache a
2870 # value for INSTALL within a source directory, because that will
2871 # break other packages using the cache if that directory is
2872 # removed, or if the value is a relative name.
2873 INSTALL=$ac_install_sh
2876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2877 $as_echo "$INSTALL" >&6; }
2879 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2880 # It thinks the first close brace ends the variable substitution.
2881 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2883 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2885 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2887 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2888 $as_echo_n "checking whether build environment is sane... " >&6; }
2889 # Reject unsafe characters in $srcdir or the absolute working directory
2890 # name. Accept space and tab only in the latter.
2894 *[\\\"\#\$\&\'\`$am_lf]*)
2895 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2898 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2899 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2902 # Do 'set' in a subshell so we don't clobber the current shell's
2903 # arguments. Must try -L first in case configure is actually a
2904 # symlink; some systems play weird games with the mod time of symlinks
2905 # (eg FreeBSD returns the mod time of the symlink's containing
2909 for am_try in 1 2; do
2910 echo "timestamp, slept: $am_has_slept" > conftest.file
2911 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2912 if test "$*" = "X"; then
2914 set X `ls -t "$srcdir/configure" conftest.file`
2916 if test "$*" != "X $srcdir/configure conftest.file" \
2917 && test "$*" != "X conftest.file $srcdir/configure"; then
2919 # If neither matched, then we have a broken ls. This can happen
2920 # if, for instance, CONFIG_SHELL is bash and it inherits a
2921 # broken ls alias from the environment. This has actually
2922 # happened. Such a system could not be considered "sane".
2923 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
2924 alias in your environment" "$LINENO" 5
2926 if test "$2" = conftest.file || test $am_try -eq 2; then
2933 test "$2" = conftest.file
2939 as_fn_error $? "newly created file is older than distributed files!
2940 Check your system clock" "$LINENO" 5
2942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2943 $as_echo "yes" >&6; }
2944 # If we didn't sleep, we still need to ensure time stamps of config.status and
2945 # generated files are strictly newer.
2947 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
2954 test "$program_prefix" != NONE &&
2955 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2956 # Use a double $ so make ignores it.
2957 test "$program_suffix" != NONE &&
2958 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2959 # Double any \ or $.
2960 # By default was `s,x,x', remove it if useless.
2961 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2962 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2964 # expand $ac_aux_dir to an absolute path
2965 am_aux_dir=`cd $ac_aux_dir && pwd`
2967 if test x"${MISSING+set}" != xset; then
2970 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2972 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2975 # Use eval to expand $SHELL
2976 if eval "$MISSING --is-lightweight"; then
2977 am_missing_run="$MISSING "
2980 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
2981 $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
2984 if test x"${install_sh}" != xset; then
2987 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2989 install_sh="\${SHELL} $am_aux_dir/install-sh"
2993 # Installed binaries are usually stripped using 'strip' when the user
2994 # run "make install-strip". However 'strip' might not be the right
2995 # tool to use in cross-compilation environments, therefore Automake
2996 # will honor the 'STRIP' environment variable to overrule this program.
2997 if test "$cross_compiling" != no; then
2998 if test -n "$ac_tool_prefix"; then
2999 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3000 set dummy ${ac_tool_prefix}strip; ac_word=$2
3001 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3002 $as_echo_n "checking for $ac_word... " >&6; }
3003 if ${ac_cv_prog_STRIP+:} false; then :
3004 $as_echo_n "(cached) " >&6
3006 if test -n "$STRIP"; then
3007 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3009 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3013 test -z "$as_dir" && as_dir=.
3014 for ac_exec_ext in '' $ac_executable_extensions; do
3015 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3016 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3017 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3026 STRIP=$ac_cv_prog_STRIP
3027 if test -n "$STRIP"; then
3028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3029 $as_echo "$STRIP" >&6; }
3031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3032 $as_echo "no" >&6; }
3037 if test -z "$ac_cv_prog_STRIP"; then
3039 # Extract the first word of "strip", so it can be a program name with args.
3040 set dummy strip; ac_word=$2
3041 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3042 $as_echo_n "checking for $ac_word... " >&6; }
3043 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
3044 $as_echo_n "(cached) " >&6
3046 if test -n "$ac_ct_STRIP"; then
3047 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3049 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3053 test -z "$as_dir" && as_dir=.
3054 for ac_exec_ext in '' $ac_executable_extensions; do
3055 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3056 ac_cv_prog_ac_ct_STRIP="strip"
3057 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3066 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3067 if test -n "$ac_ct_STRIP"; then
3068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3069 $as_echo "$ac_ct_STRIP" >&6; }
3071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3072 $as_echo "no" >&6; }
3075 if test "x$ac_ct_STRIP" = x; then
3078 case $cross_compiling:$ac_tool_warned in
3080 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3081 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3082 ac_tool_warned=yes ;;
3087 STRIP="$ac_cv_prog_STRIP"
3091 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3093 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
3094 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3095 if test -z "$MKDIR_P"; then
3096 if ${ac_cv_path_mkdir+:} false; then :
3097 $as_echo_n "(cached) " >&6
3099 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3100 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3103 test -z "$as_dir" && as_dir=.
3104 for ac_prog in mkdir gmkdir; do
3105 for ac_exec_ext in '' $ac_executable_extensions; do
3106 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
3107 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3108 'mkdir (GNU coreutils) '* | \
3109 'mkdir (coreutils) '* | \
3110 'mkdir (fileutils) '4.1*)
3111 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
3121 test -d ./--version && rmdir ./--version
3122 if test "${ac_cv_path_mkdir+set}" = set; then
3123 MKDIR_P="$ac_cv_path_mkdir -p"
3125 # As a last resort, use the slow shell script. Don't cache a
3126 # value for MKDIR_P within a source directory, because that will
3127 # break other packages using the cache if that directory is
3128 # removed, or if the value is a relative name.
3129 MKDIR_P="$ac_install_sh -d"
3132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3133 $as_echo "$MKDIR_P" >&6; }
3135 for ac_prog in gawk mawk nawk awk
3137 # Extract the first word of "$ac_prog", so it can be a program name with args.
3138 set dummy $ac_prog; ac_word=$2
3139 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3140 $as_echo_n "checking for $ac_word... " >&6; }
3141 if ${ac_cv_prog_AWK+:} false; then :
3142 $as_echo_n "(cached) " >&6
3144 if test -n "$AWK"; then
3145 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3147 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3151 test -z "$as_dir" && as_dir=.
3152 for ac_exec_ext in '' $ac_executable_extensions; do
3153 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3154 ac_cv_prog_AWK="$ac_prog"
3155 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3165 if test -n "$AWK"; then
3166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3167 $as_echo "$AWK" >&6; }
3169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3170 $as_echo "no" >&6; }
3174 test -n "$AWK" && break
3177 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3178 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3180 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3181 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
3182 $as_echo_n "(cached) " >&6
3184 cat >conftest.make <<\_ACEOF
3187 @echo '@@@%%%=$(MAKE)=@@@%%%'
3189 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3190 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3192 eval ac_cv_prog_make_${ac_make}_set=yes;;
3194 eval ac_cv_prog_make_${ac_make}_set=no;;
3198 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3200 $as_echo "yes" >&6; }
3203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3204 $as_echo "no" >&6; }
3205 SET_MAKE="MAKE=${MAKE-make}"
3208 rm -rf .tst 2>/dev/null
3209 mkdir .tst 2>/dev/null
3210 if test -d .tst; then
3215 rmdir .tst 2>/dev/null
3217 # Check whether --enable-silent-rules was given.
3218 if test "${enable_silent_rules+set}" = set; then :
3219 enableval=$enable_silent_rules;
3222 case $enable_silent_rules in # (((
3223 yes) AM_DEFAULT_VERBOSITY=0;;
3224 no) AM_DEFAULT_VERBOSITY=1;;
3225 *) AM_DEFAULT_VERBOSITY=1;;
3227 am_make=${MAKE-make}
3228 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3229 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
3230 if ${am_cv_make_support_nested_variables+:} false; then :
3231 $as_echo_n "(cached) " >&6
3233 if $as_echo 'TRUE=$(BAR$(V))
3239 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3240 am_cv_make_support_nested_variables=yes
3242 am_cv_make_support_nested_variables=no
3245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3246 $as_echo "$am_cv_make_support_nested_variables" >&6; }
3247 if test $am_cv_make_support_nested_variables = yes; then
3249 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3251 AM_V=$AM_DEFAULT_VERBOSITY
3252 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3256 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3257 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3258 # is not polluted with repeated "-I."
3259 am__isrc=' -I$(srcdir)'
3260 # test to see if srcdir already configured
3261 if test -f $srcdir/config.status; then
3262 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3266 # test whether we have cygpath
3267 if test -z "$CYGPATH_W"; then
3268 if (cygpath --version) >/dev/null 2>/dev/null; then
3269 CYGPATH_W='cygpath -w'
3276 # Define the identity of the package.
3281 cat >>confdefs.h <<_ACEOF
3282 #define PACKAGE "$PACKAGE"
3286 cat >>confdefs.h <<_ACEOF
3287 #define VERSION "$VERSION"
3290 # Some tools Automake needs.
3292 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3295 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3298 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3301 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3304 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3306 # For better backward compatibility. To be removed once Automake 1.9.x
3307 # dies out for good. For more background, see:
3308 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
3309 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
3310 mkdir_p='$(MKDIR_P)'
3312 # We need awk for the "check" target. The system "awk" is bad on
3314 # Always define AMTAR for backward compatibility. Yes, it's still used
3315 # in the wild :-( We should find a proper way to deprecate it ...
3319 # We'll loop over all known methods to create a tar archive until one works.
3320 _am_tools='gnutar pax cpio none'
3322 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
3329 # POSIX will say in a future version that running "rm -f" with no argument
3330 # is OK; and we want to be able to make that assumption in our Makefile
3331 # recipes. So use an aggressive probe to check that the usage we want is
3332 # actually supported "in the wild" to an acceptable degree.
3333 # See automake bug#10828.
3334 # To make any issue more visible, cause the running configure to be aborted
3335 # by default if the 'rm' program in use doesn't match our expectations; the
3336 # user can still override this though.
3337 if rm -f && rm -fr && rm -rf; then : OK; else
3341 Your 'rm' program seems unable to run without file operands specified
3342 on the command line, even when the '-f' option is present. This is contrary
3343 to the behaviour of most rm programs out there, and not conforming with
3344 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
3346 Please tell bug-automake@gnu.org about your system, including the value
3347 of your $PATH and any error possibly output before this message. This
3348 can help us improve future automake versions.
3351 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
3352 echo 'Configuration will proceed anyway, since you have set the' >&2
3353 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
3357 Aborting the configuration process, to ensure you take notice of the issue.
3359 You can download and install GNU coreutils to get an 'rm' implementation
3360 that behaves properly: <http://www.gnu.org/software/coreutils/>.
3362 If you want to complete the configuration process using your problematic
3363 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
3364 to "yes", and re-run configure.
3367 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
3370 # Check whether --enable-silent-rules was given.
3371 if test "${enable_silent_rules+set}" = set; then :
3372 enableval=$enable_silent_rules;
3375 case $enable_silent_rules in # (((
3376 yes) AM_DEFAULT_VERBOSITY=0;;
3377 no) AM_DEFAULT_VERBOSITY=1;;
3378 *) AM_DEFAULT_VERBOSITY=0;;
3380 am_make=${MAKE-make}
3381 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3382 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
3383 if ${am_cv_make_support_nested_variables+:} false; then :
3384 $as_echo_n "(cached) " >&6
3386 if $as_echo 'TRUE=$(BAR$(V))
3392 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3393 am_cv_make_support_nested_variables=yes
3395 am_cv_make_support_nested_variables=no
3398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3399 $as_echo "$am_cv_make_support_nested_variables" >&6; }
3400 if test $am_cv_make_support_nested_variables = yes; then
3402 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3404 AM_V=$AM_DEFAULT_VERBOSITY
3405 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3409 ac_config_headers="$ac_config_headers config.h"
3412 # This is a new thing required to stop a warning from automake 1.12
3413 DEPDIR="${am__leading_dot}deps"
3415 ac_config_commands="$ac_config_commands depfiles"
3418 am_make=${MAKE-make}
3419 cat > confinc << 'END'
3421 @echo this is the am__doit target
3424 # If we don't find an include directive, just comment out the code.
3425 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3426 $as_echo_n "checking for style of include used by $am_make... " >&6; }
3430 # First try GNU make style include.
3431 echo "include confinc" > confmf
3432 # Ignore all kinds of additional output from 'make'.
3433 case `$am_make -s -f confmf 2> /dev/null` in #(
3434 *the\ am__doit\ target*)
3440 # Now try BSD make style include.
3441 if test "$am__include" = "#"; then
3442 echo '.include "confinc"' > confmf
3443 case `$am_make -s -f confmf 2> /dev/null` in #(
3444 *the\ am__doit\ target*)
3445 am__include=.include
3453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3454 $as_echo "$_am_result" >&6; }
3455 rm -f confinc confmf
3457 # Check whether --enable-dependency-tracking was given.
3458 if test "${enable_dependency_tracking+set}" = set; then :
3459 enableval=$enable_dependency_tracking;
3462 if test "x$enable_dependency_tracking" != xno; then
3463 am_depcomp="$ac_aux_dir/depcomp"
3467 if test "x$enable_dependency_tracking" != xno; then
3477 ac_cpp='$CPP $CPPFLAGS'
3478 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3479 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3480 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3481 if test -n "$ac_tool_prefix"; then
3482 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3483 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3484 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3485 $as_echo_n "checking for $ac_word... " >&6; }
3486 if ${ac_cv_prog_CC+:} false; then :
3487 $as_echo_n "(cached) " >&6
3489 if test -n "$CC"; then
3490 ac_cv_prog_CC="$CC" # Let the user override the test.
3492 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3496 test -z "$as_dir" && as_dir=.
3497 for ac_exec_ext in '' $ac_executable_extensions; do
3498 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3499 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3500 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3510 if test -n "$CC"; then
3511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3512 $as_echo "$CC" >&6; }
3514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3515 $as_echo "no" >&6; }
3520 if test -z "$ac_cv_prog_CC"; then
3522 # Extract the first word of "gcc", so it can be a program name with args.
3523 set dummy gcc; ac_word=$2
3524 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3525 $as_echo_n "checking for $ac_word... " >&6; }
3526 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3527 $as_echo_n "(cached) " >&6
3529 if test -n "$ac_ct_CC"; then
3530 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3532 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3536 test -z "$as_dir" && as_dir=.
3537 for ac_exec_ext in '' $ac_executable_extensions; do
3538 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3539 ac_cv_prog_ac_ct_CC="gcc"
3540 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3549 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3550 if test -n "$ac_ct_CC"; then
3551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3552 $as_echo "$ac_ct_CC" >&6; }
3554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3555 $as_echo "no" >&6; }
3558 if test "x$ac_ct_CC" = x; then
3561 case $cross_compiling:$ac_tool_warned in
3563 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3564 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3565 ac_tool_warned=yes ;;
3573 if test -z "$CC"; then
3574 if test -n "$ac_tool_prefix"; then
3575 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3576 set dummy ${ac_tool_prefix}cc; ac_word=$2
3577 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3578 $as_echo_n "checking for $ac_word... " >&6; }
3579 if ${ac_cv_prog_CC+:} false; then :
3580 $as_echo_n "(cached) " >&6
3582 if test -n "$CC"; then
3583 ac_cv_prog_CC="$CC" # Let the user override the test.
3585 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3589 test -z "$as_dir" && as_dir=.
3590 for ac_exec_ext in '' $ac_executable_extensions; do
3591 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3592 ac_cv_prog_CC="${ac_tool_prefix}cc"
3593 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3603 if test -n "$CC"; then
3604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3605 $as_echo "$CC" >&6; }
3607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3608 $as_echo "no" >&6; }
3614 if test -z "$CC"; then
3615 # Extract the first word of "cc", so it can be a program name with args.
3616 set dummy cc; ac_word=$2
3617 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3618 $as_echo_n "checking for $ac_word... " >&6; }
3619 if ${ac_cv_prog_CC+:} false; then :
3620 $as_echo_n "(cached) " >&6
3622 if test -n "$CC"; then
3623 ac_cv_prog_CC="$CC" # Let the user override the test.
3626 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3630 test -z "$as_dir" && as_dir=.
3631 for ac_exec_ext in '' $ac_executable_extensions; do
3632 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3633 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3634 ac_prog_rejected=yes
3638 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3645 if test $ac_prog_rejected = yes; then
3646 # We found a bogon in the path, so make sure we never use it.
3647 set dummy $ac_cv_prog_CC
3649 if test $# != 0; then
3650 # We chose a different compiler from the bogus one.
3651 # However, it has the same basename, so the bogon will be chosen
3652 # first if we set CC to just the basename; use the full file name.
3654 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3660 if test -n "$CC"; then
3661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3662 $as_echo "$CC" >&6; }
3664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3665 $as_echo "no" >&6; }
3670 if test -z "$CC"; then
3671 if test -n "$ac_tool_prefix"; then
3672 for ac_prog in cl.exe
3674 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3675 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3676 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3677 $as_echo_n "checking for $ac_word... " >&6; }
3678 if ${ac_cv_prog_CC+:} false; then :
3679 $as_echo_n "(cached) " >&6
3681 if test -n "$CC"; then
3682 ac_cv_prog_CC="$CC" # Let the user override the test.
3684 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3688 test -z "$as_dir" && as_dir=.
3689 for ac_exec_ext in '' $ac_executable_extensions; do
3690 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3691 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3692 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3702 if test -n "$CC"; then
3703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3704 $as_echo "$CC" >&6; }
3706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3707 $as_echo "no" >&6; }
3711 test -n "$CC" && break
3714 if test -z "$CC"; then
3716 for ac_prog in cl.exe
3718 # Extract the first word of "$ac_prog", so it can be a program name with args.
3719 set dummy $ac_prog; ac_word=$2
3720 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3721 $as_echo_n "checking for $ac_word... " >&6; }
3722 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3723 $as_echo_n "(cached) " >&6
3725 if test -n "$ac_ct_CC"; then
3726 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3728 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3732 test -z "$as_dir" && as_dir=.
3733 for ac_exec_ext in '' $ac_executable_extensions; do
3734 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3735 ac_cv_prog_ac_ct_CC="$ac_prog"
3736 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3745 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3746 if test -n "$ac_ct_CC"; then
3747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3748 $as_echo "$ac_ct_CC" >&6; }
3750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3751 $as_echo "no" >&6; }
3755 test -n "$ac_ct_CC" && break
3758 if test "x$ac_ct_CC" = x; then
3761 case $cross_compiling:$ac_tool_warned in
3763 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3764 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3765 ac_tool_warned=yes ;;
3774 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3775 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3776 as_fn_error $? "no acceptable C compiler found in \$PATH
3777 See \`config.log' for more details" "$LINENO" 5; }
3779 # Provide some information about the compiler.
3780 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3783 for ac_option in --version -v -V -qversion; do
3784 { { ac_try="$ac_compiler $ac_option >&5"
3786 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3787 *) ac_try_echo=$ac_try;;
3789 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3790 $as_echo "$ac_try_echo"; } >&5
3791 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3793 if test -s conftest.err; then
3795 ... rest of stderr output deleted ...
3796 10q' conftest.err >conftest.er1
3797 cat conftest.er1 >&5
3799 rm -f conftest.er1 conftest.err
3800 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3801 test $ac_status = 0; }
3804 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3805 /* end confdefs.h. */
3815 ac_clean_files_save=$ac_clean_files
3816 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3817 # Try to create an executable without -o first, disregard a.out.
3818 # It will help us diagnose broken compilers, and finding out an intuition
3820 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3821 $as_echo_n "checking whether the C compiler works... " >&6; }
3822 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3824 # The possible output files:
3825 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3828 for ac_file in $ac_files
3831 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3832 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3837 if { { ac_try="$ac_link_default"
3839 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3840 *) ac_try_echo=$ac_try;;
3842 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3843 $as_echo "$ac_try_echo"; } >&5
3844 (eval "$ac_link_default") 2>&5
3846 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3847 test $ac_status = 0; }; then :
3848 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3849 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3850 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3851 # so that the user can short-circuit this test for compilers unknown to
3853 for ac_file in $ac_files ''
3855 test -f "$ac_file" || continue
3857 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3860 # We found the default executable, but exeext='' is most
3864 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3866 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3868 # We set ac_cv_exeext here because the later test for it is not
3869 # safe: cross compilers may not add the suffix if given an `-o'
3870 # argument, so we may need to know it at that point already.
3871 # Even if this section looks crufty: it has the advantage of
3878 test "$ac_cv_exeext" = no && ac_cv_exeext=
3883 if test -z "$ac_file"; then :
3884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3885 $as_echo "no" >&6; }
3886 $as_echo "$as_me: failed program was:" >&5
3887 sed 's/^/| /' conftest.$ac_ext >&5
3889 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3890 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3891 as_fn_error 77 "C compiler cannot create executables
3892 See \`config.log' for more details" "$LINENO" 5; }
3894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3895 $as_echo "yes" >&6; }
3897 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3898 $as_echo_n "checking for C compiler default output file name... " >&6; }
3899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3900 $as_echo "$ac_file" >&6; }
3901 ac_exeext=$ac_cv_exeext
3903 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3904 ac_clean_files=$ac_clean_files_save
3905 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3906 $as_echo_n "checking for suffix of executables... " >&6; }
3907 if { { ac_try="$ac_link"
3909 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3910 *) ac_try_echo=$ac_try;;
3912 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3913 $as_echo "$ac_try_echo"; } >&5
3914 (eval "$ac_link") 2>&5
3916 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3917 test $ac_status = 0; }; then :
3918 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3919 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3920 # work properly (i.e., refer to `conftest.exe'), while it won't with
3922 for ac_file in conftest.exe conftest conftest.*; do
3923 test -f "$ac_file" || continue
3925 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3926 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3932 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3933 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3934 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3935 See \`config.log' for more details" "$LINENO" 5; }
3937 rm -f conftest conftest$ac_cv_exeext
3938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3939 $as_echo "$ac_cv_exeext" >&6; }
3941 rm -f conftest.$ac_ext
3942 EXEEXT=$ac_cv_exeext
3944 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3945 /* end confdefs.h. */
3950 FILE *f = fopen ("conftest.out", "w");
3951 return ferror (f) || fclose (f) != 0;
3957 ac_clean_files="$ac_clean_files conftest.out"
3958 # Check that the compiler produces executables we can run. If not, either
3959 # the compiler is broken, or we cross compile.
3960 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3961 $as_echo_n "checking whether we are cross compiling... " >&6; }
3962 if test "$cross_compiling" != yes; then
3963 { { ac_try="$ac_link"
3965 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3966 *) ac_try_echo=$ac_try;;
3968 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3969 $as_echo "$ac_try_echo"; } >&5
3970 (eval "$ac_link") 2>&5
3972 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3973 test $ac_status = 0; }
3974 if { ac_try='./conftest$ac_cv_exeext'
3975 { { case "(($ac_try" in
3976 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3977 *) ac_try_echo=$ac_try;;
3979 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3980 $as_echo "$ac_try_echo"; } >&5
3981 (eval "$ac_try") 2>&5
3983 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3984 test $ac_status = 0; }; }; then
3987 if test "$cross_compiling" = maybe; then
3990 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3991 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3992 as_fn_error $? "cannot run C compiled programs.
3993 If you meant to cross compile, use \`--host'.
3994 See \`config.log' for more details" "$LINENO" 5; }
3998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3999 $as_echo "$cross_compiling" >&6; }
4001 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
4002 ac_clean_files=$ac_clean_files_save
4003 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4004 $as_echo_n "checking for suffix of object files... " >&6; }
4005 if ${ac_cv_objext+:} false; then :
4006 $as_echo_n "(cached) " >&6
4008 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4009 /* end confdefs.h. */
4019 rm -f conftest.o conftest.obj
4020 if { { ac_try="$ac_compile"
4022 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4023 *) ac_try_echo=$ac_try;;
4025 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4026 $as_echo "$ac_try_echo"; } >&5
4027 (eval "$ac_compile") 2>&5
4029 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4030 test $ac_status = 0; }; then :
4031 for ac_file in conftest.o conftest.obj conftest.*; do
4032 test -f "$ac_file" || continue;
4034 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4035 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4040 $as_echo "$as_me: failed program was:" >&5
4041 sed 's/^/| /' conftest.$ac_ext >&5
4043 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4044 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4045 as_fn_error $? "cannot compute suffix of object files: cannot compile
4046 See \`config.log' for more details" "$LINENO" 5; }
4048 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4051 $as_echo "$ac_cv_objext" >&6; }
4052 OBJEXT=$ac_cv_objext
4054 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4055 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4056 if ${ac_cv_c_compiler_gnu+:} false; then :
4057 $as_echo_n "(cached) " >&6
4059 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4060 /* end confdefs.h. */
4073 if ac_fn_c_try_compile "$LINENO"; then :
4078 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4079 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4083 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4084 if test $ac_compiler_gnu = yes; then
4089 ac_test_CFLAGS=${CFLAGS+set}
4090 ac_save_CFLAGS=$CFLAGS
4091 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4092 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4093 if ${ac_cv_prog_cc_g+:} false; then :
4094 $as_echo_n "(cached) " >&6
4096 ac_save_c_werror_flag=$ac_c_werror_flag
4097 ac_c_werror_flag=yes
4100 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4101 /* end confdefs.h. */
4111 if ac_fn_c_try_compile "$LINENO"; then :
4115 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4116 /* end confdefs.h. */
4126 if ac_fn_c_try_compile "$LINENO"; then :
4129 ac_c_werror_flag=$ac_save_c_werror_flag
4131 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4132 /* end confdefs.h. */
4142 if ac_fn_c_try_compile "$LINENO"; then :
4145 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4147 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4149 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4150 ac_c_werror_flag=$ac_save_c_werror_flag
4152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4153 $as_echo "$ac_cv_prog_cc_g" >&6; }
4154 if test "$ac_test_CFLAGS" = set; then
4155 CFLAGS=$ac_save_CFLAGS
4156 elif test $ac_cv_prog_cc_g = yes; then
4157 if test "$GCC" = yes; then
4163 if test "$GCC" = yes; then
4169 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4170 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4171 if ${ac_cv_prog_cc_c89+:} false; then :
4172 $as_echo_n "(cached) " >&6
4174 ac_cv_prog_cc_c89=no
4176 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4177 /* end confdefs.h. */
4181 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4182 struct buf { int x; };
4183 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4184 static char *e (p, i)
4190 static char *f (char * (*g) (char **, int), char **p, ...)
4195 s = g (p, va_arg (v,int));
4200 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4201 function prototypes and stuff, but not '\xHH' hex character constants.
4202 These don't provoke an error unfortunately, instead are silently treated
4203 as 'x'. The following induces an error, until -std is added to get
4204 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4205 array size at least. It's necessary to write '\x00'==0 to get something
4206 that's true only with -std. */
4207 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4209 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4210 inside strings and character constants. */
4212 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4214 int test (int i, double x);
4215 struct s1 {int (*f) (int a);};
4216 struct s2 {int (*f) (double a);};
4217 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4223 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4228 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4229 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4231 CC="$ac_save_CC $ac_arg"
4232 if ac_fn_c_try_compile "$LINENO"; then :
4233 ac_cv_prog_cc_c89=$ac_arg
4235 rm -f core conftest.err conftest.$ac_objext
4236 test "x$ac_cv_prog_cc_c89" != "xno" && break
4238 rm -f conftest.$ac_ext
4243 case "x$ac_cv_prog_cc_c89" in
4245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4246 $as_echo "none needed" >&6; } ;;
4248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4249 $as_echo "unsupported" >&6; } ;;
4251 CC="$CC $ac_cv_prog_cc_c89"
4252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4253 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4255 if test "x$ac_cv_prog_cc_c89" != xno; then :
4260 ac_cpp='$CPP $CPPFLAGS'
4261 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4262 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4263 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4266 ac_cpp='$CPP $CPPFLAGS'
4267 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4268 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4269 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4270 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
4271 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
4272 if ${am_cv_prog_cc_c_o+:} false; then :
4273 $as_echo_n "(cached) " >&6
4275 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4276 /* end confdefs.h. */
4286 # Make sure it works both with $CC and with simple cc.
4287 # Following AC_PROG_CC_C_O, we do the test twice because some
4288 # compilers refuse to overwrite an existing .o file with -o,
4289 # though they will create one.
4290 am_cv_prog_cc_c_o=yes
4292 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
4293 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
4295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4296 (exit $ac_status); } \
4297 && test -f conftest2.$ac_objext; then
4300 am_cv_prog_cc_c_o=no
4304 rm -f core conftest*
4307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
4308 $as_echo "$am_cv_prog_cc_c_o" >&6; }
4309 if test "$am_cv_prog_cc_c_o" != yes; then
4310 # Losing compiler, so override with the script.
4311 # FIXME: It is wrong to rewrite CC.
4312 # But if we don't then we get into trouble of one sort or another.
4313 # A longer-term fix would be to have automake use am__CC in this case,
4314 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4315 CC="$am_aux_dir/compile $CC"
4318 ac_cpp='$CPP $CPPFLAGS'
4319 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4320 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4321 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4324 depcc="$CC" am_compiler_list=
4326 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4327 $as_echo_n "checking dependency style of $depcc... " >&6; }
4328 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
4329 $as_echo_n "(cached) " >&6
4331 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4332 # We make a subdir and do the tests there. Otherwise we can end up
4333 # making bogus files that we don't know about and never remove. For
4334 # instance it was reported that on HP-UX the gcc test will end up
4335 # making a dummy file named 'D' -- because '-MD' means "put the output
4339 # Copy depcomp to subdir because otherwise we won't find it if we're
4340 # using a relative directory.
4341 cp "$am_depcomp" conftest.dir
4343 # We will build objects and dependencies in a subdirectory because
4344 # it helps to detect inapplicable dependency modes. For instance
4345 # both Tru64's cc and ICC support -MD to output dependencies as a
4346 # side effect of compilation, but ICC will put the dependencies in
4347 # the current directory while Tru64 will put them in the object
4351 am_cv_CC_dependencies_compiler_type=none
4352 if test "$am_compiler_list" = ""; then
4353 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4356 case " $depcc " in #(
4357 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4360 for depmode in $am_compiler_list; do
4361 # Setup a source with many dependencies, because some compilers
4362 # like to wrap large dependency lists on column 80 (with \), and
4363 # we should not choose a depcomp mode which is confused by this.
4365 # We need to recreate these files for each test, as the compiler may
4366 # overwrite some of them when testing with obscure command lines.
4367 # This happens at least with the AIX C compiler.
4369 for i in 1 2 3 4 5 6; do
4370 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4371 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4372 # Solaris 10 /bin/sh.
4373 echo '/* dummy */' > sub/conftst$i.h
4375 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4377 # We check with '-c' and '-o' for the sake of the "dashmstdout"
4378 # mode. It turns out that the SunPro C++ compiler does not properly
4379 # handle '-M -o', and we need to detect this. Also, some Intel
4380 # versions had trouble with output in subdirs.
4381 am__obj=sub/conftest.${OBJEXT-o}
4382 am__minus_obj="-o $am__obj"
4385 # This depmode causes a compiler race in universal mode.
4386 test "$am__universal" = false || continue
4389 # After this tag, mechanisms are not by side-effect, so they'll
4390 # only be used when explicitly requested.
4391 if test "x$enable_dependency_tracking" = xyes; then
4397 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4398 # This compiler won't grok '-c -o', but also, the minuso test has
4399 # not run yet. These depmodes are late enough in the game, and
4400 # so weak that their functioning should not be impacted.
4401 am__obj=conftest.${OBJEXT-o}
4406 if depmode=$depmode \
4407 source=sub/conftest.c object=$am__obj \
4408 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4409 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4410 >/dev/null 2>conftest.err &&
4411 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4412 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4413 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4414 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4415 # icc doesn't choke on unknown options, it will just issue warnings
4416 # or remarks (even with -Werror). So we grep stderr for any message
4417 # that says an option was ignored or not supported.
4418 # When given -MP, icc 7.0 and 7.1 complain thusly:
4419 # icc: Command line warning: ignoring option '-M'; no argument required
4420 # The diagnosis changed in icc 8.0:
4421 # icc: Command line remark: option '-MP' not supported
4422 if (grep 'ignoring option' conftest.err ||
4423 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4424 am_cv_CC_dependencies_compiler_type=$depmode
4433 am_cv_CC_dependencies_compiler_type=none
4437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4438 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4439 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4442 test "x$enable_dependency_tracking" != xno \
4443 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4445 am__fastdepCC_FALSE='#'
4447 am__fastdepCC_TRUE='#'
4448 am__fastdepCC_FALSE=
4453 if test -n "$ac_tool_prefix"; then
4454 for ac_prog in ar lib "link -lib"
4456 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4457 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4458 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4459 $as_echo_n "checking for $ac_word... " >&6; }
4460 if ${ac_cv_prog_AR+:} false; then :
4461 $as_echo_n "(cached) " >&6
4463 if test -n "$AR"; then
4464 ac_cv_prog_AR="$AR" # Let the user override the test.
4466 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4470 test -z "$as_dir" && as_dir=.
4471 for ac_exec_ext in '' $ac_executable_extensions; do
4472 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4473 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
4474 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4484 if test -n "$AR"; then
4485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
4486 $as_echo "$AR" >&6; }
4488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4489 $as_echo "no" >&6; }
4493 test -n "$AR" && break
4496 if test -z "$AR"; then
4498 for ac_prog in ar lib "link -lib"
4500 # Extract the first word of "$ac_prog", so it can be a program name with args.
4501 set dummy $ac_prog; ac_word=$2
4502 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4503 $as_echo_n "checking for $ac_word... " >&6; }
4504 if ${ac_cv_prog_ac_ct_AR+:} false; then :
4505 $as_echo_n "(cached) " >&6
4507 if test -n "$ac_ct_AR"; then
4508 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
4510 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4514 test -z "$as_dir" && as_dir=.
4515 for ac_exec_ext in '' $ac_executable_extensions; do
4516 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4517 ac_cv_prog_ac_ct_AR="$ac_prog"
4518 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4527 ac_ct_AR=$ac_cv_prog_ac_ct_AR
4528 if test -n "$ac_ct_AR"; then
4529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
4530 $as_echo "$ac_ct_AR" >&6; }
4532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4533 $as_echo "no" >&6; }
4537 test -n "$ac_ct_AR" && break
4540 if test "x$ac_ct_AR" = x; then
4543 case $cross_compiling:$ac_tool_warned in
4545 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4546 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4547 ac_tool_warned=yes ;;
4555 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the archiver ($AR) interface" >&5
4556 $as_echo_n "checking the archiver ($AR) interface... " >&6; }
4557 if ${am_cv_ar_interface+:} false; then :
4558 $as_echo_n "(cached) " >&6
4561 ac_cpp='$CPP $CPPFLAGS'
4562 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4563 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4564 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4566 am_cv_ar_interface=ar
4567 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4568 /* end confdefs.h. */
4569 int some_variable = 0;
4571 if ac_fn_c_try_compile "$LINENO"; then :
4572 am_ar_try='$AR cru libconftest.a conftest.$ac_objext >&5'
4573 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$am_ar_try\""; } >&5
4574 (eval $am_ar_try) 2>&5
4576 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4577 test $ac_status = 0; }
4578 if test "$ac_status" -eq 0; then
4579 am_cv_ar_interface=ar
4581 am_ar_try='$AR -NOLOGO -OUT:conftest.lib conftest.$ac_objext >&5'
4582 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$am_ar_try\""; } >&5
4583 (eval $am_ar_try) 2>&5
4585 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4586 test $ac_status = 0; }
4587 if test "$ac_status" -eq 0; then
4588 am_cv_ar_interface=lib
4590 am_cv_ar_interface=unknown
4593 rm -f conftest.lib libconftest.a
4596 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4598 ac_cpp='$CPP $CPPFLAGS'
4599 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4600 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4601 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_ar_interface" >&5
4605 $as_echo "$am_cv_ar_interface" >&6; }
4607 case $am_cv_ar_interface in
4611 # Microsoft lib, so override with the ar-lib wrapper script.
4612 # FIXME: It is wrong to rewrite AR.
4613 # But if we don't then we get into trouble of one sort or another.
4614 # A longer-term fix would be to have automake use am__AR in this case,
4615 # and then we could set am__AR="$am_aux_dir/ar-lib \$(AR)" or something
4617 AR="$am_aux_dir/ar-lib $AR"
4620 as_fn_error $? "could not determine $AR interface" "$LINENO" 5
4625 # This was added at the suggestion of libtoolize (03-Jan-10)
4628 # The default CFLAGS and CXXFLAGS in Autoconf are "-g -O2" for gcc and just
4629 # "-g" for any other compiler. There doesn't seem to be a standard way of
4630 # getting rid of the -g (which I don't think is needed for a production
4631 # library). This fudge seems to achieve the necessary. First, we remember the
4632 # externally set values of CFLAGS and CXXFLAGS. Then call the AC_PROG_CC and
4633 # AC_PROG_CXX macros to find the compilers - if CFLAGS and CXXFLAGS are not
4634 # set, they will be set to Autoconf's defaults. Afterwards, if the original
4635 # values were not set, remove the -g from the Autoconf defaults.
4638 remember_set_CFLAGS="$CFLAGS"
4639 remember_set_CXXFLAGS="$CXXFLAGS"
4642 ac_cpp='$CPP $CPPFLAGS'
4643 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4644 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4645 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4646 if test -n "$ac_tool_prefix"; then
4647 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4648 set dummy ${ac_tool_prefix}gcc; ac_word=$2
4649 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4650 $as_echo_n "checking for $ac_word... " >&6; }
4651 if ${ac_cv_prog_CC+:} false; then :
4652 $as_echo_n "(cached) " >&6
4654 if test -n "$CC"; then
4655 ac_cv_prog_CC="$CC" # Let the user override the test.
4657 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4661 test -z "$as_dir" && as_dir=.
4662 for ac_exec_ext in '' $ac_executable_extensions; do
4663 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4664 ac_cv_prog_CC="${ac_tool_prefix}gcc"
4665 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4675 if test -n "$CC"; then
4676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4677 $as_echo "$CC" >&6; }
4679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4680 $as_echo "no" >&6; }
4685 if test -z "$ac_cv_prog_CC"; then
4687 # Extract the first word of "gcc", so it can be a program name with args.
4688 set dummy gcc; ac_word=$2
4689 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4690 $as_echo_n "checking for $ac_word... " >&6; }
4691 if ${ac_cv_prog_ac_ct_CC+:} false; then :
4692 $as_echo_n "(cached) " >&6
4694 if test -n "$ac_ct_CC"; then
4695 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4697 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4701 test -z "$as_dir" && as_dir=.
4702 for ac_exec_ext in '' $ac_executable_extensions; do
4703 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4704 ac_cv_prog_ac_ct_CC="gcc"
4705 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4714 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4715 if test -n "$ac_ct_CC"; then
4716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4717 $as_echo "$ac_ct_CC" >&6; }
4719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4720 $as_echo "no" >&6; }
4723 if test "x$ac_ct_CC" = x; then
4726 case $cross_compiling:$ac_tool_warned in
4728 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4729 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4730 ac_tool_warned=yes ;;
4738 if test -z "$CC"; then
4739 if test -n "$ac_tool_prefix"; then
4740 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4741 set dummy ${ac_tool_prefix}cc; ac_word=$2
4742 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4743 $as_echo_n "checking for $ac_word... " >&6; }
4744 if ${ac_cv_prog_CC+:} false; then :
4745 $as_echo_n "(cached) " >&6
4747 if test -n "$CC"; then
4748 ac_cv_prog_CC="$CC" # Let the user override the test.
4750 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4754 test -z "$as_dir" && as_dir=.
4755 for ac_exec_ext in '' $ac_executable_extensions; do
4756 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4757 ac_cv_prog_CC="${ac_tool_prefix}cc"
4758 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4768 if test -n "$CC"; then
4769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4770 $as_echo "$CC" >&6; }
4772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4773 $as_echo "no" >&6; }
4779 if test -z "$CC"; then
4780 # Extract the first word of "cc", so it can be a program name with args.
4781 set dummy cc; ac_word=$2
4782 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4783 $as_echo_n "checking for $ac_word... " >&6; }
4784 if ${ac_cv_prog_CC+:} false; then :
4785 $as_echo_n "(cached) " >&6
4787 if test -n "$CC"; then
4788 ac_cv_prog_CC="$CC" # Let the user override the test.
4791 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4795 test -z "$as_dir" && as_dir=.
4796 for ac_exec_ext in '' $ac_executable_extensions; do
4797 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4798 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4799 ac_prog_rejected=yes
4803 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4810 if test $ac_prog_rejected = yes; then
4811 # We found a bogon in the path, so make sure we never use it.
4812 set dummy $ac_cv_prog_CC
4814 if test $# != 0; then
4815 # We chose a different compiler from the bogus one.
4816 # However, it has the same basename, so the bogon will be chosen
4817 # first if we set CC to just the basename; use the full file name.
4819 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4825 if test -n "$CC"; then
4826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4827 $as_echo "$CC" >&6; }
4829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4830 $as_echo "no" >&6; }
4835 if test -z "$CC"; then
4836 if test -n "$ac_tool_prefix"; then
4837 for ac_prog in cl.exe
4839 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4840 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4841 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4842 $as_echo_n "checking for $ac_word... " >&6; }
4843 if ${ac_cv_prog_CC+:} false; then :
4844 $as_echo_n "(cached) " >&6
4846 if test -n "$CC"; then
4847 ac_cv_prog_CC="$CC" # Let the user override the test.
4849 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4853 test -z "$as_dir" && as_dir=.
4854 for ac_exec_ext in '' $ac_executable_extensions; do
4855 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4856 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4857 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4867 if test -n "$CC"; then
4868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4869 $as_echo "$CC" >&6; }
4871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4872 $as_echo "no" >&6; }
4876 test -n "$CC" && break
4879 if test -z "$CC"; then
4881 for ac_prog in cl.exe
4883 # Extract the first word of "$ac_prog", so it can be a program name with args.
4884 set dummy $ac_prog; ac_word=$2
4885 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4886 $as_echo_n "checking for $ac_word... " >&6; }
4887 if ${ac_cv_prog_ac_ct_CC+:} false; then :
4888 $as_echo_n "(cached) " >&6
4890 if test -n "$ac_ct_CC"; then
4891 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4893 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4897 test -z "$as_dir" && as_dir=.
4898 for ac_exec_ext in '' $ac_executable_extensions; do
4899 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4900 ac_cv_prog_ac_ct_CC="$ac_prog"
4901 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4910 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4911 if test -n "$ac_ct_CC"; then
4912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4913 $as_echo "$ac_ct_CC" >&6; }
4915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4916 $as_echo "no" >&6; }
4920 test -n "$ac_ct_CC" && break
4923 if test "x$ac_ct_CC" = x; then
4926 case $cross_compiling:$ac_tool_warned in
4928 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4929 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4930 ac_tool_warned=yes ;;
4939 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4940 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4941 as_fn_error $? "no acceptable C compiler found in \$PATH
4942 See \`config.log' for more details" "$LINENO" 5; }
4944 # Provide some information about the compiler.
4945 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4948 for ac_option in --version -v -V -qversion; do
4949 { { ac_try="$ac_compiler $ac_option >&5"
4951 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4952 *) ac_try_echo=$ac_try;;
4954 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4955 $as_echo "$ac_try_echo"; } >&5
4956 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4958 if test -s conftest.err; then
4960 ... rest of stderr output deleted ...
4961 10q' conftest.err >conftest.er1
4962 cat conftest.er1 >&5
4964 rm -f conftest.er1 conftest.err
4965 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4966 test $ac_status = 0; }
4969 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4970 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4971 if ${ac_cv_c_compiler_gnu+:} false; then :
4972 $as_echo_n "(cached) " >&6
4974 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4975 /* end confdefs.h. */
4988 if ac_fn_c_try_compile "$LINENO"; then :
4993 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4994 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4998 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4999 if test $ac_compiler_gnu = yes; then
5004 ac_test_CFLAGS=${CFLAGS+set}
5005 ac_save_CFLAGS=$CFLAGS
5006 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
5007 $as_echo_n "checking whether $CC accepts -g... " >&6; }
5008 if ${ac_cv_prog_cc_g+:} false; then :
5009 $as_echo_n "(cached) " >&6
5011 ac_save_c_werror_flag=$ac_c_werror_flag
5012 ac_c_werror_flag=yes
5015 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5016 /* end confdefs.h. */
5026 if ac_fn_c_try_compile "$LINENO"; then :
5030 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5031 /* end confdefs.h. */
5041 if ac_fn_c_try_compile "$LINENO"; then :
5044 ac_c_werror_flag=$ac_save_c_werror_flag
5046 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5047 /* end confdefs.h. */
5057 if ac_fn_c_try_compile "$LINENO"; then :
5060 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5062 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5064 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5065 ac_c_werror_flag=$ac_save_c_werror_flag
5067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
5068 $as_echo "$ac_cv_prog_cc_g" >&6; }
5069 if test "$ac_test_CFLAGS" = set; then
5070 CFLAGS=$ac_save_CFLAGS
5071 elif test $ac_cv_prog_cc_g = yes; then
5072 if test "$GCC" = yes; then
5078 if test "$GCC" = yes; then
5084 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
5085 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
5086 if ${ac_cv_prog_cc_c89+:} false; then :
5087 $as_echo_n "(cached) " >&6
5089 ac_cv_prog_cc_c89=no
5091 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5092 /* end confdefs.h. */
5096 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
5097 struct buf { int x; };
5098 FILE * (*rcsopen) (struct buf *, struct stat *, int);
5099 static char *e (p, i)
5105 static char *f (char * (*g) (char **, int), char **p, ...)
5110 s = g (p, va_arg (v,int));
5115 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
5116 function prototypes and stuff, but not '\xHH' hex character constants.
5117 These don't provoke an error unfortunately, instead are silently treated
5118 as 'x'. The following induces an error, until -std is added to get
5119 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
5120 array size at least. It's necessary to write '\x00'==0 to get something
5121 that's true only with -std. */
5122 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5124 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5125 inside strings and character constants. */
5127 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5129 int test (int i, double x);
5130 struct s1 {int (*f) (int a);};
5131 struct s2 {int (*f) (double a);};
5132 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5138 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
5143 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5144 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5146 CC="$ac_save_CC $ac_arg"
5147 if ac_fn_c_try_compile "$LINENO"; then :
5148 ac_cv_prog_cc_c89=$ac_arg
5150 rm -f core conftest.err conftest.$ac_objext
5151 test "x$ac_cv_prog_cc_c89" != "xno" && break
5153 rm -f conftest.$ac_ext
5158 case "x$ac_cv_prog_cc_c89" in
5160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5161 $as_echo "none needed" >&6; } ;;
5163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5164 $as_echo "unsupported" >&6; } ;;
5166 CC="$CC $ac_cv_prog_cc_c89"
5167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
5168 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
5170 if test "x$ac_cv_prog_cc_c89" != xno; then :
5175 ac_cpp='$CPP $CPPFLAGS'
5176 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5177 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5178 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5181 ac_cpp='$CPP $CPPFLAGS'
5182 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5183 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5184 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5185 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
5186 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
5187 if ${am_cv_prog_cc_c_o+:} false; then :
5188 $as_echo_n "(cached) " >&6
5190 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5191 /* end confdefs.h. */
5201 # Make sure it works both with $CC and with simple cc.
5202 # Following AC_PROG_CC_C_O, we do the test twice because some
5203 # compilers refuse to overwrite an existing .o file with -o,
5204 # though they will create one.
5205 am_cv_prog_cc_c_o=yes
5207 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
5208 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
5210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5211 (exit $ac_status); } \
5212 && test -f conftest2.$ac_objext; then
5215 am_cv_prog_cc_c_o=no
5219 rm -f core conftest*
5222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
5223 $as_echo "$am_cv_prog_cc_c_o" >&6; }
5224 if test "$am_cv_prog_cc_c_o" != yes; then
5225 # Losing compiler, so override with the script.
5226 # FIXME: It is wrong to rewrite CC.
5227 # But if we don't then we get into trouble of one sort or another.
5228 # A longer-term fix would be to have automake use am__CC in this case,
5229 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
5230 CC="$am_aux_dir/compile $CC"
5233 ac_cpp='$CPP $CPPFLAGS'
5234 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5235 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5236 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5239 depcc="$CC" am_compiler_list=
5241 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
5242 $as_echo_n "checking dependency style of $depcc... " >&6; }
5243 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
5244 $as_echo_n "(cached) " >&6
5246 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5247 # We make a subdir and do the tests there. Otherwise we can end up
5248 # making bogus files that we don't know about and never remove. For
5249 # instance it was reported that on HP-UX the gcc test will end up
5250 # making a dummy file named 'D' -- because '-MD' means "put the output
5254 # Copy depcomp to subdir because otherwise we won't find it if we're
5255 # using a relative directory.
5256 cp "$am_depcomp" conftest.dir
5258 # We will build objects and dependencies in a subdirectory because
5259 # it helps to detect inapplicable dependency modes. For instance
5260 # both Tru64's cc and ICC support -MD to output dependencies as a
5261 # side effect of compilation, but ICC will put the dependencies in
5262 # the current directory while Tru64 will put them in the object
5266 am_cv_CC_dependencies_compiler_type=none
5267 if test "$am_compiler_list" = ""; then
5268 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5271 case " $depcc " in #(
5272 *\ -arch\ *\ -arch\ *) am__universal=true ;;
5275 for depmode in $am_compiler_list; do
5276 # Setup a source with many dependencies, because some compilers
5277 # like to wrap large dependency lists on column 80 (with \), and
5278 # we should not choose a depcomp mode which is confused by this.
5280 # We need to recreate these files for each test, as the compiler may
5281 # overwrite some of them when testing with obscure command lines.
5282 # This happens at least with the AIX C compiler.
5284 for i in 1 2 3 4 5 6; do
5285 echo '#include "conftst'$i'.h"' >> sub/conftest.c
5286 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
5287 # Solaris 10 /bin/sh.
5288 echo '/* dummy */' > sub/conftst$i.h
5290 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5292 # We check with '-c' and '-o' for the sake of the "dashmstdout"
5293 # mode. It turns out that the SunPro C++ compiler does not properly
5294 # handle '-M -o', and we need to detect this. Also, some Intel
5295 # versions had trouble with output in subdirs.
5296 am__obj=sub/conftest.${OBJEXT-o}
5297 am__minus_obj="-o $am__obj"
5300 # This depmode causes a compiler race in universal mode.
5301 test "$am__universal" = false || continue
5304 # After this tag, mechanisms are not by side-effect, so they'll
5305 # only be used when explicitly requested.
5306 if test "x$enable_dependency_tracking" = xyes; then
5312 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
5313 # This compiler won't grok '-c -o', but also, the minuso test has
5314 # not run yet. These depmodes are late enough in the game, and
5315 # so weak that their functioning should not be impacted.
5316 am__obj=conftest.${OBJEXT-o}
5321 if depmode=$depmode \
5322 source=sub/conftest.c object=$am__obj \
5323 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5324 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
5325 >/dev/null 2>conftest.err &&
5326 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5327 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5328 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
5329 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5330 # icc doesn't choke on unknown options, it will just issue warnings
5331 # or remarks (even with -Werror). So we grep stderr for any message
5332 # that says an option was ignored or not supported.
5333 # When given -MP, icc 7.0 and 7.1 complain thusly:
5334 # icc: Command line warning: ignoring option '-M'; no argument required
5335 # The diagnosis changed in icc 8.0:
5336 # icc: Command line remark: option '-MP' not supported
5337 if (grep 'ignoring option' conftest.err ||
5338 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5339 am_cv_CC_dependencies_compiler_type=$depmode
5348 am_cv_CC_dependencies_compiler_type=none
5352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
5353 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
5354 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5357 test "x$enable_dependency_tracking" != xno \
5358 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5360 am__fastdepCC_FALSE='#'
5362 am__fastdepCC_TRUE='#'
5363 am__fastdepCC_FALSE=
5368 ac_cpp='$CXXCPP $CPPFLAGS'
5369 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5370 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5371 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5372 if test -z "$CXX"; then
5373 if test -n "$CCC"; then
5376 if test -n "$ac_tool_prefix"; then
5377 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5379 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5380 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5381 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5382 $as_echo_n "checking for $ac_word... " >&6; }
5383 if ${ac_cv_prog_CXX+:} false; then :
5384 $as_echo_n "(cached) " >&6
5386 if test -n "$CXX"; then
5387 ac_cv_prog_CXX="$CXX" # Let the user override the test.
5389 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5393 test -z "$as_dir" && as_dir=.
5394 for ac_exec_ext in '' $ac_executable_extensions; do
5395 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5396 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
5397 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5407 if test -n "$CXX"; then
5408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
5409 $as_echo "$CXX" >&6; }
5411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5412 $as_echo "no" >&6; }
5416 test -n "$CXX" && break
5419 if test -z "$CXX"; then
5421 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5423 # Extract the first word of "$ac_prog", so it can be a program name with args.
5424 set dummy $ac_prog; ac_word=$2
5425 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5426 $as_echo_n "checking for $ac_word... " >&6; }
5427 if ${ac_cv_prog_ac_ct_CXX+:} false; then :
5428 $as_echo_n "(cached) " >&6
5430 if test -n "$ac_ct_CXX"; then
5431 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
5433 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5437 test -z "$as_dir" && as_dir=.
5438 for ac_exec_ext in '' $ac_executable_extensions; do
5439 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5440 ac_cv_prog_ac_ct_CXX="$ac_prog"
5441 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5450 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
5451 if test -n "$ac_ct_CXX"; then
5452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
5453 $as_echo "$ac_ct_CXX" >&6; }
5455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5456 $as_echo "no" >&6; }
5460 test -n "$ac_ct_CXX" && break
5463 if test "x$ac_ct_CXX" = x; then
5466 case $cross_compiling:$ac_tool_warned in
5468 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5469 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5470 ac_tool_warned=yes ;;
5478 # Provide some information about the compiler.
5479 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
5482 for ac_option in --version -v -V -qversion; do
5483 { { ac_try="$ac_compiler $ac_option >&5"
5485 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5486 *) ac_try_echo=$ac_try;;
5488 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5489 $as_echo "$ac_try_echo"; } >&5
5490 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
5492 if test -s conftest.err; then
5494 ... rest of stderr output deleted ...
5495 10q' conftest.err >conftest.er1
5496 cat conftest.er1 >&5
5498 rm -f conftest.er1 conftest.err
5499 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5500 test $ac_status = 0; }
5503 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
5504 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
5505 if ${ac_cv_cxx_compiler_gnu+:} false; then :
5506 $as_echo_n "(cached) " >&6
5508 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5509 /* end confdefs.h. */
5522 if ac_fn_cxx_try_compile "$LINENO"; then :
5527 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5528 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
5531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
5532 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
5533 if test $ac_compiler_gnu = yes; then
5538 ac_test_CXXFLAGS=${CXXFLAGS+set}
5539 ac_save_CXXFLAGS=$CXXFLAGS
5540 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
5541 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
5542 if ${ac_cv_prog_cxx_g+:} false; then :
5543 $as_echo_n "(cached) " >&6
5545 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
5546 ac_cxx_werror_flag=yes
5549 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5550 /* end confdefs.h. */
5560 if ac_fn_cxx_try_compile "$LINENO"; then :
5561 ac_cv_prog_cxx_g=yes
5564 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5565 /* end confdefs.h. */
5575 if ac_fn_cxx_try_compile "$LINENO"; then :
5578 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5580 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5581 /* end confdefs.h. */
5591 if ac_fn_cxx_try_compile "$LINENO"; then :
5592 ac_cv_prog_cxx_g=yes
5594 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5596 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5598 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5599 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
5602 $as_echo "$ac_cv_prog_cxx_g" >&6; }
5603 if test "$ac_test_CXXFLAGS" = set; then
5604 CXXFLAGS=$ac_save_CXXFLAGS
5605 elif test $ac_cv_prog_cxx_g = yes; then
5606 if test "$GXX" = yes; then
5612 if test "$GXX" = yes; then
5619 ac_cpp='$CPP $CPPFLAGS'
5620 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5621 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5622 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5624 depcc="$CXX" am_compiler_list=
5626 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
5627 $as_echo_n "checking dependency style of $depcc... " >&6; }
5628 if ${am_cv_CXX_dependencies_compiler_type+:} false; then :
5629 $as_echo_n "(cached) " >&6
5631 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5632 # We make a subdir and do the tests there. Otherwise we can end up
5633 # making bogus files that we don't know about and never remove. For
5634 # instance it was reported that on HP-UX the gcc test will end up
5635 # making a dummy file named 'D' -- because '-MD' means "put the output
5639 # Copy depcomp to subdir because otherwise we won't find it if we're
5640 # using a relative directory.
5641 cp "$am_depcomp" conftest.dir
5643 # We will build objects and dependencies in a subdirectory because
5644 # it helps to detect inapplicable dependency modes. For instance
5645 # both Tru64's cc and ICC support -MD to output dependencies as a
5646 # side effect of compilation, but ICC will put the dependencies in
5647 # the current directory while Tru64 will put them in the object
5651 am_cv_CXX_dependencies_compiler_type=none
5652 if test "$am_compiler_list" = ""; then
5653 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5656 case " $depcc " in #(
5657 *\ -arch\ *\ -arch\ *) am__universal=true ;;
5660 for depmode in $am_compiler_list; do
5661 # Setup a source with many dependencies, because some compilers
5662 # like to wrap large dependency lists on column 80 (with \), and
5663 # we should not choose a depcomp mode which is confused by this.
5665 # We need to recreate these files for each test, as the compiler may
5666 # overwrite some of them when testing with obscure command lines.
5667 # This happens at least with the AIX C compiler.
5669 for i in 1 2 3 4 5 6; do
5670 echo '#include "conftst'$i'.h"' >> sub/conftest.c
5671 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
5672 # Solaris 10 /bin/sh.
5673 echo '/* dummy */' > sub/conftst$i.h
5675 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5677 # We check with '-c' and '-o' for the sake of the "dashmstdout"
5678 # mode. It turns out that the SunPro C++ compiler does not properly
5679 # handle '-M -o', and we need to detect this. Also, some Intel
5680 # versions had trouble with output in subdirs.
5681 am__obj=sub/conftest.${OBJEXT-o}
5682 am__minus_obj="-o $am__obj"
5685 # This depmode causes a compiler race in universal mode.
5686 test "$am__universal" = false || continue
5689 # After this tag, mechanisms are not by side-effect, so they'll
5690 # only be used when explicitly requested.
5691 if test "x$enable_dependency_tracking" = xyes; then
5697 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
5698 # This compiler won't grok '-c -o', but also, the minuso test has
5699 # not run yet. These depmodes are late enough in the game, and
5700 # so weak that their functioning should not be impacted.
5701 am__obj=conftest.${OBJEXT-o}
5706 if depmode=$depmode \
5707 source=sub/conftest.c object=$am__obj \
5708 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5709 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
5710 >/dev/null 2>conftest.err &&
5711 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5712 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5713 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
5714 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5715 # icc doesn't choke on unknown options, it will just issue warnings
5716 # or remarks (even with -Werror). So we grep stderr for any message
5717 # that says an option was ignored or not supported.
5718 # When given -MP, icc 7.0 and 7.1 complain thusly:
5719 # icc: Command line warning: ignoring option '-M'; no argument required
5720 # The diagnosis changed in icc 8.0:
5721 # icc: Command line remark: option '-MP' not supported
5722 if (grep 'ignoring option' conftest.err ||
5723 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5724 am_cv_CXX_dependencies_compiler_type=$depmode
5733 am_cv_CXX_dependencies_compiler_type=none
5737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
5738 $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
5739 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
5742 test "x$enable_dependency_tracking" != xno \
5743 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
5744 am__fastdepCXX_TRUE=
5745 am__fastdepCXX_FALSE='#'
5747 am__fastdepCXX_TRUE='#'
5748 am__fastdepCXX_FALSE=
5754 if test "x$remember_set_CFLAGS" = "x"
5756 if test "$CFLAGS" = "-g -O2"
5759 elif test "$CFLAGS" = "-g"
5765 if test "x$remember_set_CXXFLAGS" = "x"
5767 if test "$CXXFLAGS" = "-g -O2"
5770 elif test "$CXXFLAGS" = "-g"
5776 # AC_PROG_CXX will return "g++" even if no c++ compiler is installed.
5777 # Check for that case, and just disable c++ code if g++ doesn't run.
5779 ac_cpp='$CXXCPP $CPPFLAGS'
5780 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5781 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5782 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5785 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5786 /* end confdefs.h. */
5796 if ac_fn_cxx_try_compile "$LINENO"; then :
5799 CXX=""; CXXCP=""; CXXFLAGS=""
5801 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5803 ac_cpp='$CPP $CPPFLAGS'
5804 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5805 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5806 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5809 # Check for a 64-bit integer type
5811 ac_cpp='$CPP $CPPFLAGS'
5812 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5813 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5814 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5815 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
5816 $as_echo_n "checking how to run the C preprocessor... " >&6; }
5817 # On Suns, sometimes $CPP names a directory.
5818 if test -n "$CPP" && test -d "$CPP"; then
5821 if test -z "$CPP"; then
5822 if ${ac_cv_prog_CPP+:} false; then :
5823 $as_echo_n "(cached) " >&6
5825 # Double quotes because CPP needs to be expanded
5826 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5829 for ac_c_preproc_warn_flag in '' yes
5831 # Use a header file that comes with gcc, so configuring glibc
5832 # with a fresh cross-compiler works.
5833 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5834 # <limits.h> exists even on freestanding compilers.
5835 # On the NeXT, cc -E runs the code through the compiler's parser,
5836 # not just through cpp. "Syntax error" is here to catch this case.
5837 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5838 /* end confdefs.h. */
5840 # include <limits.h>
5842 # include <assert.h>
5846 if ac_fn_c_try_cpp "$LINENO"; then :
5849 # Broken: fails on valid input.
5852 rm -f conftest.err conftest.i conftest.$ac_ext
5854 # OK, works on sane cases. Now check whether nonexistent headers
5855 # can be detected and how.
5856 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5857 /* end confdefs.h. */
5858 #include <ac_nonexistent.h>
5860 if ac_fn_c_try_cpp "$LINENO"; then :
5861 # Broken: success on invalid input.
5864 # Passes both tests.
5868 rm -f conftest.err conftest.i conftest.$ac_ext
5871 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5872 rm -f conftest.i conftest.err conftest.$ac_ext
5873 if $ac_preproc_ok; then :
5885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5886 $as_echo "$CPP" >&6; }
5888 for ac_c_preproc_warn_flag in '' yes
5890 # Use a header file that comes with gcc, so configuring glibc
5891 # with a fresh cross-compiler works.
5892 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5893 # <limits.h> exists even on freestanding compilers.
5894 # On the NeXT, cc -E runs the code through the compiler's parser,
5895 # not just through cpp. "Syntax error" is here to catch this case.
5896 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5897 /* end confdefs.h. */
5899 # include <limits.h>
5901 # include <assert.h>
5905 if ac_fn_c_try_cpp "$LINENO"; then :
5908 # Broken: fails on valid input.
5911 rm -f conftest.err conftest.i conftest.$ac_ext
5913 # OK, works on sane cases. Now check whether nonexistent headers
5914 # can be detected and how.
5915 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5916 /* end confdefs.h. */
5917 #include <ac_nonexistent.h>
5919 if ac_fn_c_try_cpp "$LINENO"; then :
5920 # Broken: success on invalid input.
5923 # Passes both tests.
5927 rm -f conftest.err conftest.i conftest.$ac_ext
5930 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5931 rm -f conftest.i conftest.err conftest.$ac_ext
5932 if $ac_preproc_ok; then :
5935 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5936 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5937 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
5938 See \`config.log' for more details" "$LINENO" 5; }
5942 ac_cpp='$CPP $CPPFLAGS'
5943 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5944 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5945 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5948 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5949 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5950 if ${ac_cv_path_GREP+:} false; then :
5951 $as_echo_n "(cached) " >&6
5953 if test -z "$GREP"; then
5954 ac_path_GREP_found=false
5955 # Loop through the user's path and test for each of PROGNAME-LIST
5956 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5957 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5960 test -z "$as_dir" && as_dir=.
5961 for ac_prog in grep ggrep; do
5962 for ac_exec_ext in '' $ac_executable_extensions; do
5963 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5964 as_fn_executable_p "$ac_path_GREP" || continue
5965 # Check for GNU ac_path_GREP and select it if it is found.
5966 # Check for GNU $ac_path_GREP
5967 case `"$ac_path_GREP" --version 2>&1` in
5969 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5972 $as_echo_n 0123456789 >"conftest.in"
5975 cat "conftest.in" "conftest.in" >"conftest.tmp"
5976 mv "conftest.tmp" "conftest.in"
5977 cp "conftest.in" "conftest.nl"
5978 $as_echo 'GREP' >> "conftest.nl"
5979 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5980 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5981 as_fn_arith $ac_count + 1 && ac_count=$as_val
5982 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5983 # Best one so far, save it but keep looking for a better one
5984 ac_cv_path_GREP="$ac_path_GREP"
5985 ac_path_GREP_max=$ac_count
5987 # 10*(2^10) chars as input seems more than enough
5988 test $ac_count -gt 10 && break
5990 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5993 $ac_path_GREP_found && break 3
5998 if test -z "$ac_cv_path_GREP"; then
5999 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6002 ac_cv_path_GREP=$GREP
6006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
6007 $as_echo "$ac_cv_path_GREP" >&6; }
6008 GREP="$ac_cv_path_GREP"
6011 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
6012 $as_echo_n "checking for egrep... " >&6; }
6013 if ${ac_cv_path_EGREP+:} false; then :
6014 $as_echo_n "(cached) " >&6
6016 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
6017 then ac_cv_path_EGREP="$GREP -E"
6019 if test -z "$EGREP"; then
6020 ac_path_EGREP_found=false
6021 # Loop through the user's path and test for each of PROGNAME-LIST
6022 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6023 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6026 test -z "$as_dir" && as_dir=.
6027 for ac_prog in egrep; do
6028 for ac_exec_ext in '' $ac_executable_extensions; do
6029 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
6030 as_fn_executable_p "$ac_path_EGREP" || continue
6031 # Check for GNU ac_path_EGREP and select it if it is found.
6032 # Check for GNU $ac_path_EGREP
6033 case `"$ac_path_EGREP" --version 2>&1` in
6035 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
6038 $as_echo_n 0123456789 >"conftest.in"
6041 cat "conftest.in" "conftest.in" >"conftest.tmp"
6042 mv "conftest.tmp" "conftest.in"
6043 cp "conftest.in" "conftest.nl"
6044 $as_echo 'EGREP' >> "conftest.nl"
6045 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
6046 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6047 as_fn_arith $ac_count + 1 && ac_count=$as_val
6048 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
6049 # Best one so far, save it but keep looking for a better one
6050 ac_cv_path_EGREP="$ac_path_EGREP"
6051 ac_path_EGREP_max=$ac_count
6053 # 10*(2^10) chars as input seems more than enough
6054 test $ac_count -gt 10 && break
6056 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6059 $ac_path_EGREP_found && break 3
6064 if test -z "$ac_cv_path_EGREP"; then
6065 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6068 ac_cv_path_EGREP=$EGREP
6073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
6074 $as_echo "$ac_cv_path_EGREP" >&6; }
6075 EGREP="$ac_cv_path_EGREP"
6078 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
6079 $as_echo_n "checking for ANSI C header files... " >&6; }
6080 if ${ac_cv_header_stdc+:} false; then :
6081 $as_echo_n "(cached) " >&6
6083 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6084 /* end confdefs.h. */
6098 if ac_fn_c_try_compile "$LINENO"; then :
6099 ac_cv_header_stdc=yes
6101 ac_cv_header_stdc=no
6103 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6105 if test $ac_cv_header_stdc = yes; then
6106 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6107 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6108 /* end confdefs.h. */
6112 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6113 $EGREP "memchr" >/dev/null 2>&1; then :
6116 ac_cv_header_stdc=no
6122 if test $ac_cv_header_stdc = yes; then
6123 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6124 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6125 /* end confdefs.h. */
6129 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6130 $EGREP "free" >/dev/null 2>&1; then :
6133 ac_cv_header_stdc=no
6139 if test $ac_cv_header_stdc = yes; then
6140 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6141 if test "$cross_compiling" = yes; then :
6144 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6145 /* end confdefs.h. */
6148 #if ((' ' & 0x0FF) == 0x020)
6149 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6150 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6152 # define ISLOWER(c) \
6153 (('a' <= (c) && (c) <= 'i') \
6154 || ('j' <= (c) && (c) <= 'r') \
6155 || ('s' <= (c) && (c) <= 'z'))
6156 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6159 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6164 for (i = 0; i < 256; i++)
6165 if (XOR (islower (i), ISLOWER (i))
6166 || toupper (i) != TOUPPER (i))
6171 if ac_fn_c_try_run "$LINENO"; then :
6174 ac_cv_header_stdc=no
6176 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6177 conftest.$ac_objext conftest.beam conftest.$ac_ext
6182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
6183 $as_echo "$ac_cv_header_stdc" >&6; }
6184 if test $ac_cv_header_stdc = yes; then
6186 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
6190 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
6191 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6192 inttypes.h stdint.h unistd.h
6194 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6195 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
6197 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
6198 cat >>confdefs.h <<_ACEOF
6199 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6207 ac_fn_c_find_intX_t "$LINENO" "64" "ac_cv_c_int64_t"
6208 case $ac_cv_c_int64_t in #(
6212 cat >>confdefs.h <<_ACEOF
6213 #define int64_t $ac_cv_c_int64_t
6220 # Make sure we can run config.sub.
6221 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
6222 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
6224 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
6225 $as_echo_n "checking build system type... " >&6; }
6226 if ${ac_cv_build+:} false; then :
6227 $as_echo_n "(cached) " >&6
6229 ac_build_alias=$build_alias
6230 test "x$ac_build_alias" = x &&
6231 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
6232 test "x$ac_build_alias" = x &&
6233 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
6234 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
6235 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
6238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
6239 $as_echo "$ac_cv_build" >&6; }
6240 case $ac_cv_build in
6242 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
6245 ac_save_IFS=$IFS; IFS='-'
6251 # Remember, the first character of IFS is used to create $*,
6252 # except with old shells:
6255 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
6258 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
6259 $as_echo_n "checking host system type... " >&6; }
6260 if ${ac_cv_host+:} false; then :
6261 $as_echo_n "(cached) " >&6
6263 if test "x$host_alias" = x; then
6264 ac_cv_host=$ac_cv_build
6266 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
6267 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
6271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
6272 $as_echo "$ac_cv_host" >&6; }
6275 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
6278 ac_save_IFS=$IFS; IFS='-'
6284 # Remember, the first character of IFS is used to create $*,
6285 # except with old shells:
6288 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
6291 enable_win32_dll=yes
6294 *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-cegcc*)
6295 if test -n "$ac_tool_prefix"; then
6296 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
6297 set dummy ${ac_tool_prefix}as; ac_word=$2
6298 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6299 $as_echo_n "checking for $ac_word... " >&6; }
6300 if ${ac_cv_prog_AS+:} false; then :
6301 $as_echo_n "(cached) " >&6
6303 if test -n "$AS"; then
6304 ac_cv_prog_AS="$AS" # Let the user override the test.
6306 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6310 test -z "$as_dir" && as_dir=.
6311 for ac_exec_ext in '' $ac_executable_extensions; do
6312 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6313 ac_cv_prog_AS="${ac_tool_prefix}as"
6314 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6324 if test -n "$AS"; then
6325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
6326 $as_echo "$AS" >&6; }
6328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6329 $as_echo "no" >&6; }
6334 if test -z "$ac_cv_prog_AS"; then
6336 # Extract the first word of "as", so it can be a program name with args.
6337 set dummy as; ac_word=$2
6338 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6339 $as_echo_n "checking for $ac_word... " >&6; }
6340 if ${ac_cv_prog_ac_ct_AS+:} false; then :
6341 $as_echo_n "(cached) " >&6
6343 if test -n "$ac_ct_AS"; then
6344 ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
6346 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6350 test -z "$as_dir" && as_dir=.
6351 for ac_exec_ext in '' $ac_executable_extensions; do
6352 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6353 ac_cv_prog_ac_ct_AS="as"
6354 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6363 ac_ct_AS=$ac_cv_prog_ac_ct_AS
6364 if test -n "$ac_ct_AS"; then
6365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5
6366 $as_echo "$ac_ct_AS" >&6; }
6368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6369 $as_echo "no" >&6; }
6372 if test "x$ac_ct_AS" = x; then
6375 case $cross_compiling:$ac_tool_warned in
6377 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6378 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6379 ac_tool_warned=yes ;;
6387 if test -n "$ac_tool_prefix"; then
6388 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
6389 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
6390 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6391 $as_echo_n "checking for $ac_word... " >&6; }
6392 if ${ac_cv_prog_DLLTOOL+:} false; then :
6393 $as_echo_n "(cached) " >&6
6395 if test -n "$DLLTOOL"; then
6396 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
6398 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6402 test -z "$as_dir" && as_dir=.
6403 for ac_exec_ext in '' $ac_executable_extensions; do
6404 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6405 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
6406 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6415 DLLTOOL=$ac_cv_prog_DLLTOOL
6416 if test -n "$DLLTOOL"; then
6417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
6418 $as_echo "$DLLTOOL" >&6; }
6420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6421 $as_echo "no" >&6; }
6426 if test -z "$ac_cv_prog_DLLTOOL"; then
6427 ac_ct_DLLTOOL=$DLLTOOL
6428 # Extract the first word of "dlltool", so it can be a program name with args.
6429 set dummy dlltool; ac_word=$2
6430 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6431 $as_echo_n "checking for $ac_word... " >&6; }
6432 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
6433 $as_echo_n "(cached) " >&6
6435 if test -n "$ac_ct_DLLTOOL"; then
6436 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
6438 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6442 test -z "$as_dir" && as_dir=.
6443 for ac_exec_ext in '' $ac_executable_extensions; do
6444 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6445 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
6446 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6455 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
6456 if test -n "$ac_ct_DLLTOOL"; then
6457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
6458 $as_echo "$ac_ct_DLLTOOL" >&6; }
6460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6461 $as_echo "no" >&6; }
6464 if test "x$ac_ct_DLLTOOL" = x; then
6467 case $cross_compiling:$ac_tool_warned in
6469 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6470 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6471 ac_tool_warned=yes ;;
6473 DLLTOOL=$ac_ct_DLLTOOL
6476 DLLTOOL="$ac_cv_prog_DLLTOOL"
6479 if test -n "$ac_tool_prefix"; then
6480 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
6481 set dummy ${ac_tool_prefix}objdump; ac_word=$2
6482 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6483 $as_echo_n "checking for $ac_word... " >&6; }
6484 if ${ac_cv_prog_OBJDUMP+:} false; then :
6485 $as_echo_n "(cached) " >&6
6487 if test -n "$OBJDUMP"; then
6488 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
6490 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6494 test -z "$as_dir" && as_dir=.
6495 for ac_exec_ext in '' $ac_executable_extensions; do
6496 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6497 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
6498 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6507 OBJDUMP=$ac_cv_prog_OBJDUMP
6508 if test -n "$OBJDUMP"; then
6509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
6510 $as_echo "$OBJDUMP" >&6; }
6512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6513 $as_echo "no" >&6; }
6518 if test -z "$ac_cv_prog_OBJDUMP"; then
6519 ac_ct_OBJDUMP=$OBJDUMP
6520 # Extract the first word of "objdump", so it can be a program name with args.
6521 set dummy objdump; ac_word=$2
6522 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6523 $as_echo_n "checking for $ac_word... " >&6; }
6524 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
6525 $as_echo_n "(cached) " >&6
6527 if test -n "$ac_ct_OBJDUMP"; then
6528 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
6530 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6534 test -z "$as_dir" && as_dir=.
6535 for ac_exec_ext in '' $ac_executable_extensions; do
6536 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6537 ac_cv_prog_ac_ct_OBJDUMP="objdump"
6538 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6547 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6548 if test -n "$ac_ct_OBJDUMP"; then
6549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
6550 $as_echo "$ac_ct_OBJDUMP" >&6; }
6552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6553 $as_echo "no" >&6; }
6556 if test "x$ac_ct_OBJDUMP" = x; then
6559 case $cross_compiling:$ac_tool_warned in
6561 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6562 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6563 ac_tool_warned=yes ;;
6565 OBJDUMP=$ac_ct_OBJDUMP
6568 OBJDUMP="$ac_cv_prog_OBJDUMP"
6574 test -z "$AS" && AS=as
6580 test -z "$DLLTOOL" && DLLTOOL=dlltool
6586 test -z "$OBJDUMP" && OBJDUMP=objdump
6596 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
6597 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
6602 macro_version='2.4.2'
6603 macro_revision='1.3337'
6617 ltmain="$ac_aux_dir/ltmain.sh"
6619 # Backslashify metacharacters that are still active within
6620 # double-quoted strings.
6621 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
6623 # Same as above, but do not quote variable references.
6624 double_quote_subst='s/\(["`\\]\)/\\\1/g'
6626 # Sed substitution to delay expansion of an escaped shell variable in a
6627 # double_quote_subst'ed string.
6628 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
6630 # Sed substitution to delay expansion of an escaped single quote.
6631 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
6633 # Sed substitution to avoid accidental globbing in evaled expressions
6634 no_glob_subst='s/\*/\\\*/g'
6636 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
6637 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
6638 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
6640 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
6641 $as_echo_n "checking how to print strings... " >&6; }
6642 # Test print first, because it will be a builtin if present.
6643 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
6644 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
6646 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
6649 # Use this function as a fallback that always works.
6650 func_fallback_echo ()
6652 eval 'cat <<_LTECHO_EOF
6656 ECHO='func_fallback_echo'
6659 # func_echo_all arg...
6660 # Invoke $ECHO with all args, space-separated.
6667 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
6668 $as_echo "printf" >&6; } ;;
6669 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
6670 $as_echo "print -r" >&6; } ;;
6671 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
6672 $as_echo "cat" >&6; } ;;
6688 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
6689 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
6690 if ${ac_cv_path_SED+:} false; then :
6691 $as_echo_n "(cached) " >&6
6693 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
6694 for ac_i in 1 2 3 4 5 6 7; do
6695 ac_script="$ac_script$as_nl$ac_script"
6697 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
6698 { ac_script=; unset ac_script;}
6699 if test -z "$SED"; then
6700 ac_path_SED_found=false
6701 # Loop through the user's path and test for each of PROGNAME-LIST
6702 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6706 test -z "$as_dir" && as_dir=.
6707 for ac_prog in sed gsed; do
6708 for ac_exec_ext in '' $ac_executable_extensions; do
6709 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
6710 as_fn_executable_p "$ac_path_SED" || continue
6711 # Check for GNU ac_path_SED and select it if it is found.
6712 # Check for GNU $ac_path_SED
6713 case `"$ac_path_SED" --version 2>&1` in
6715 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
6718 $as_echo_n 0123456789 >"conftest.in"
6721 cat "conftest.in" "conftest.in" >"conftest.tmp"
6722 mv "conftest.tmp" "conftest.in"
6723 cp "conftest.in" "conftest.nl"
6724 $as_echo '' >> "conftest.nl"
6725 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
6726 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6727 as_fn_arith $ac_count + 1 && ac_count=$as_val
6728 if test $ac_count -gt ${ac_path_SED_max-0}; then
6729 # Best one so far, save it but keep looking for a better one
6730 ac_cv_path_SED="$ac_path_SED"
6731 ac_path_SED_max=$ac_count
6733 # 10*(2^10) chars as input seems more than enough
6734 test $ac_count -gt 10 && break
6736 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6739 $ac_path_SED_found && break 3
6744 if test -z "$ac_cv_path_SED"; then
6745 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
6752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
6753 $as_echo "$ac_cv_path_SED" >&6; }
6754 SED="$ac_cv_path_SED"
6757 test -z "$SED" && SED=sed
6758 Xsed="$SED -e 1s/^X//"
6770 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
6771 $as_echo_n "checking for fgrep... " >&6; }
6772 if ${ac_cv_path_FGREP+:} false; then :
6773 $as_echo_n "(cached) " >&6
6775 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
6776 then ac_cv_path_FGREP="$GREP -F"
6778 if test -z "$FGREP"; then
6779 ac_path_FGREP_found=false
6780 # Loop through the user's path and test for each of PROGNAME-LIST
6781 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6782 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6785 test -z "$as_dir" && as_dir=.
6786 for ac_prog in fgrep; do
6787 for ac_exec_ext in '' $ac_executable_extensions; do
6788 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
6789 as_fn_executable_p "$ac_path_FGREP" || continue
6790 # Check for GNU ac_path_FGREP and select it if it is found.
6791 # Check for GNU $ac_path_FGREP
6792 case `"$ac_path_FGREP" --version 2>&1` in
6794 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
6797 $as_echo_n 0123456789 >"conftest.in"
6800 cat "conftest.in" "conftest.in" >"conftest.tmp"
6801 mv "conftest.tmp" "conftest.in"
6802 cp "conftest.in" "conftest.nl"
6803 $as_echo 'FGREP' >> "conftest.nl"
6804 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
6805 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6806 as_fn_arith $ac_count + 1 && ac_count=$as_val
6807 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
6808 # Best one so far, save it but keep looking for a better one
6809 ac_cv_path_FGREP="$ac_path_FGREP"
6810 ac_path_FGREP_max=$ac_count
6812 # 10*(2^10) chars as input seems more than enough
6813 test $ac_count -gt 10 && break
6815 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6818 $ac_path_FGREP_found && break 3
6823 if test -z "$ac_cv_path_FGREP"; then
6824 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6827 ac_cv_path_FGREP=$FGREP
6832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
6833 $as_echo "$ac_cv_path_FGREP" >&6; }
6834 FGREP="$ac_cv_path_FGREP"
6837 test -z "$GREP" && GREP=grep
6857 # Check whether --with-gnu-ld was given.
6858 if test "${with_gnu_ld+set}" = set; then :
6859 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
6865 if test "$GCC" = yes; then
6866 # Check if gcc -print-prog-name=ld gives a path.
6867 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
6868 $as_echo_n "checking for ld used by $CC... " >&6; }
6871 # gcc leaves a trailing carriage return which upsets mingw
6872 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
6874 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
6877 # Accept absolute paths.
6879 re_direlt='/[^/][^/]*/\.\./'
6880 # Canonicalize the pathname of ld
6881 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
6882 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
6883 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
6885 test -z "$LD" && LD="$ac_prog"
6888 # If it fails, then pretend we aren't using GCC.
6892 # If it is relative, then search for the first ld in PATH.
6896 elif test "$with_gnu_ld" = yes; then
6897 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
6898 $as_echo_n "checking for GNU ld... " >&6; }
6900 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
6901 $as_echo_n "checking for non-GNU ld... " >&6; }
6903 if ${lt_cv_path_LD+:} false; then :
6904 $as_echo_n "(cached) " >&6
6906 if test -z "$LD"; then
6907 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6908 for ac_dir in $PATH; do
6910 test -z "$ac_dir" && ac_dir=.
6911 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
6912 lt_cv_path_LD="$ac_dir/$ac_prog"
6913 # Check to see if the program is GNU ld. I'd rather use --version,
6914 # but apparently some variants of GNU ld only accept -v.
6915 # Break only if it was the GNU/non-GNU ld that we prefer.
6916 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
6917 *GNU* | *'with BFD'*)
6918 test "$with_gnu_ld" != no && break
6921 test "$with_gnu_ld" != yes && break
6928 lt_cv_path_LD="$LD" # Let the user override the test with a path.
6933 if test -n "$LD"; then
6934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
6935 $as_echo "$LD" >&6; }
6937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6938 $as_echo "no" >&6; }
6940 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
6941 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
6942 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
6943 if ${lt_cv_prog_gnu_ld+:} false; then :
6944 $as_echo_n "(cached) " >&6
6946 # I'd rather use --version here, but apparently some GNU lds only accept -v.
6947 case `$LD -v 2>&1 </dev/null` in
6948 *GNU* | *'with BFD'*)
6949 lt_cv_prog_gnu_ld=yes
6952 lt_cv_prog_gnu_ld=no
6956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
6957 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
6958 with_gnu_ld=$lt_cv_prog_gnu_ld
6968 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
6969 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
6970 if ${lt_cv_path_NM+:} false; then :
6971 $as_echo_n "(cached) " >&6
6973 if test -n "$NM"; then
6974 # Let the user override the test.
6977 lt_nm_to_check="${ac_tool_prefix}nm"
6978 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
6979 lt_nm_to_check="$lt_nm_to_check nm"
6981 for lt_tmp_nm in $lt_nm_to_check; do
6982 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6983 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
6985 test -z "$ac_dir" && ac_dir=.
6986 tmp_nm="$ac_dir/$lt_tmp_nm"
6987 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
6988 # Check to see if the nm accepts a BSD-compat flag.
6989 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
6990 # nm: unknown option "B" ignored
6991 # Tru64's nm complains that /dev/null is an invalid object file
6992 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
6993 */dev/null* | *'Invalid file or object type'*)
6994 lt_cv_path_NM="$tmp_nm -B"
6998 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
7000 lt_cv_path_NM="$tmp_nm -p"
7004 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
7005 continue # so that we can try to find one that supports BSD flags
7014 : ${lt_cv_path_NM=no}
7017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
7018 $as_echo "$lt_cv_path_NM" >&6; }
7019 if test "$lt_cv_path_NM" != "no"; then
7022 # Didn't find any BSD compatible name lister, look for dumpbin.
7023 if test -n "$DUMPBIN"; then :
7024 # Let the user override the test.
7026 if test -n "$ac_tool_prefix"; then
7027 for ac_prog in dumpbin "link -dump"
7029 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
7030 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
7031 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7032 $as_echo_n "checking for $ac_word... " >&6; }
7033 if ${ac_cv_prog_DUMPBIN+:} false; then :
7034 $as_echo_n "(cached) " >&6
7036 if test -n "$DUMPBIN"; then
7037 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
7039 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7043 test -z "$as_dir" && as_dir=.
7044 for ac_exec_ext in '' $ac_executable_extensions; do
7045 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7046 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
7047 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7056 DUMPBIN=$ac_cv_prog_DUMPBIN
7057 if test -n "$DUMPBIN"; then
7058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
7059 $as_echo "$DUMPBIN" >&6; }
7061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7062 $as_echo "no" >&6; }
7066 test -n "$DUMPBIN" && break
7069 if test -z "$DUMPBIN"; then
7070 ac_ct_DUMPBIN=$DUMPBIN
7071 for ac_prog in dumpbin "link -dump"
7073 # Extract the first word of "$ac_prog", so it can be a program name with args.
7074 set dummy $ac_prog; ac_word=$2
7075 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7076 $as_echo_n "checking for $ac_word... " >&6; }
7077 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
7078 $as_echo_n "(cached) " >&6
7080 if test -n "$ac_ct_DUMPBIN"; then
7081 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
7083 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7087 test -z "$as_dir" && as_dir=.
7088 for ac_exec_ext in '' $ac_executable_extensions; do
7089 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7090 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
7091 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7100 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
7101 if test -n "$ac_ct_DUMPBIN"; then
7102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
7103 $as_echo "$ac_ct_DUMPBIN" >&6; }
7105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7106 $as_echo "no" >&6; }
7110 test -n "$ac_ct_DUMPBIN" && break
7113 if test "x$ac_ct_DUMPBIN" = x; then
7116 case $cross_compiling:$ac_tool_warned in
7118 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7119 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7120 ac_tool_warned=yes ;;
7122 DUMPBIN=$ac_ct_DUMPBIN
7126 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
7128 DUMPBIN="$DUMPBIN -symbols"
7136 if test "$DUMPBIN" != ":"; then
7140 test -z "$NM" && NM=nm
7147 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
7148 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
7149 if ${lt_cv_nm_interface+:} false; then :
7150 $as_echo_n "(cached) " >&6
7152 lt_cv_nm_interface="BSD nm"
7153 echo "int some_variable = 0;" > conftest.$ac_ext
7154 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
7155 (eval "$ac_compile" 2>conftest.err)
7156 cat conftest.err >&5
7157 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
7158 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
7159 cat conftest.err >&5
7160 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
7161 cat conftest.out >&5
7162 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
7163 lt_cv_nm_interface="MS dumpbin"
7167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
7168 $as_echo "$lt_cv_nm_interface" >&6; }
7170 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
7171 $as_echo_n "checking whether ln -s works... " >&6; }
7173 if test "$LN_S" = "ln -s"; then
7174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7175 $as_echo "yes" >&6; }
7177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
7178 $as_echo "no, using $LN_S" >&6; }
7181 # find the maximum length of command line arguments
7182 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
7183 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
7184 if ${lt_cv_sys_max_cmd_len+:} false; then :
7185 $as_echo_n "(cached) " >&6
7192 # On DJGPP, this test can blow up pretty badly due to problems in libc
7193 # (any single argument exceeding 2000 bytes causes a buffer overrun
7194 # during glob expansion). Even if it were fixed, the result of this
7195 # check would be larger than it should be.
7196 lt_cv_sys_max_cmd_len=12288; # 12K is about right
7200 # Under GNU Hurd, this test is not required because there is
7201 # no limit to the length of command line arguments.
7202 # Libtool will interpret -1 as no limit whatsoever
7203 lt_cv_sys_max_cmd_len=-1;
7206 cygwin* | mingw* | cegcc*)
7207 # On Win9x/ME, this test blows up -- it succeeds, but takes
7208 # about 5 minutes as the teststring grows exponentially.
7209 # Worse, since 9x/ME are not pre-emptively multitasking,
7210 # you end up with a "frozen" computer, even though with patience
7211 # the test eventually succeeds (with a max line length of 256k).
7212 # Instead, let's just punt: use the minimum linelength reported by
7213 # all of the supported platforms: 8192 (on NT/2K/XP).
7214 lt_cv_sys_max_cmd_len=8192;
7218 # On MiNT this can take a long time and run out of memory.
7219 lt_cv_sys_max_cmd_len=8192;
7223 # On AmigaOS with pdksh, this test takes hours, literally.
7224 # So we just punt and use a minimum line length of 8192.
7225 lt_cv_sys_max_cmd_len=8192;
7228 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
7229 # This has been around since 386BSD, at least. Likely further.
7230 if test -x /sbin/sysctl; then
7231 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
7232 elif test -x /usr/sbin/sysctl; then
7233 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
7235 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
7237 # And add a safety zone
7238 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
7239 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
7243 # We know the value 262144 and hardcode it with a safety zone (like BSD)
7244 lt_cv_sys_max_cmd_len=196608
7248 # The test takes a long time on OS/2.
7249 lt_cv_sys_max_cmd_len=8192
7253 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
7254 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
7255 # nice to cause kernel panics so lets avoid the loop below.
7256 # First set a reasonable default.
7257 lt_cv_sys_max_cmd_len=16384
7259 if test -x /sbin/sysconfig; then
7260 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
7261 *1*) lt_cv_sys_max_cmd_len=-1 ;;
7266 lt_cv_sys_max_cmd_len=102400
7268 sysv5* | sco5v6* | sysv4.2uw2*)
7269 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
7270 if test -n "$kargmax"; then
7271 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
7273 lt_cv_sys_max_cmd_len=32768
7277 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
7278 if test -n "$lt_cv_sys_max_cmd_len"; then
7279 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
7280 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
7282 # Make teststring a little bigger before we do anything with it.
7283 # a 1K string should be a reasonable start.
7284 for i in 1 2 3 4 5 6 7 8 ; do
7285 teststring=$teststring$teststring
7287 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
7288 # If test is not a shell built-in, we'll probably end up computing a
7289 # maximum length that is only half of the actual maximum length, but
7291 while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
7292 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
7293 test $i != 17 # 1/2 MB should be enough
7296 teststring=$teststring$teststring
7298 # Only check the string length outside the loop.
7299 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
7301 # Add a significant safety factor because C++ compilers can tack on
7302 # massive amounts of additional arguments before passing them to the
7303 # linker. It appears as though 1/2 is a usable value.
7304 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
7311 if test -n $lt_cv_sys_max_cmd_len ; then
7312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
7313 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
7315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
7316 $as_echo "none" >&6; }
7318 max_cmd_len=$lt_cv_sys_max_cmd_len
7329 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
7330 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
7331 # Try some XSI features
7334 test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
7336 && eval 'test $(( 1 + 1 )) -eq 2 \
7337 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
7339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
7340 $as_echo "$xsi_shell" >&6; }
7343 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
7344 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
7346 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
7348 && lt_shell_append=yes
7349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
7350 $as_echo "$lt_shell_append" >&6; }
7353 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
7363 # test EBCDIC or ASCII
7364 case `echo X|tr X '\101'` in
7365 A) # ASCII based system
7366 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
7367 lt_SP2NL='tr \040 \012'
7368 lt_NL2SP='tr \015\012 \040\040'
7370 *) # EBCDIC based system
7371 lt_SP2NL='tr \100 \n'
7372 lt_NL2SP='tr \r\n \100\100'
7384 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
7385 $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
7386 if ${lt_cv_to_host_file_cmd+:} false; then :
7387 $as_echo_n "(cached) " >&6
7392 *-*-mingw* ) # actually msys
7393 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
7396 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
7398 * ) # otherwise, assume *nix
7399 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
7405 *-*-mingw* ) # actually msys
7406 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
7409 lt_cv_to_host_file_cmd=func_convert_file_noop
7411 * ) # otherwise, assume *nix
7412 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
7416 * ) # unhandled hosts (and "normal" native builds)
7417 lt_cv_to_host_file_cmd=func_convert_file_noop
7423 to_host_file_cmd=$lt_cv_to_host_file_cmd
7424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
7425 $as_echo "$lt_cv_to_host_file_cmd" >&6; }
7431 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
7432 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
7433 if ${lt_cv_to_tool_file_cmd+:} false; then :
7434 $as_echo_n "(cached) " >&6
7436 #assume ordinary cross tools, or native build.
7437 lt_cv_to_tool_file_cmd=func_convert_file_noop
7441 *-*-mingw* ) # actually msys
7442 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
7450 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
7451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
7452 $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
7458 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
7459 $as_echo_n "checking for $LD option to reload object files... " >&6; }
7460 if ${lt_cv_ld_reload_flag+:} false; then :
7461 $as_echo_n "(cached) " >&6
7463 lt_cv_ld_reload_flag='-r'
7465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
7466 $as_echo "$lt_cv_ld_reload_flag" >&6; }
7467 reload_flag=$lt_cv_ld_reload_flag
7468 case $reload_flag in
7470 *) reload_flag=" $reload_flag" ;;
7472 reload_cmds='$LD$reload_flag -o $output$reload_objs'
7474 cygwin* | mingw* | pw32* | cegcc*)
7475 if test "$GCC" != yes; then
7480 if test "$GCC" = yes; then
7481 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
7483 reload_cmds='$LD$reload_flag -o $output$reload_objs'
7496 if test -n "$ac_tool_prefix"; then
7497 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
7498 set dummy ${ac_tool_prefix}objdump; ac_word=$2
7499 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7500 $as_echo_n "checking for $ac_word... " >&6; }
7501 if ${ac_cv_prog_OBJDUMP+:} false; then :
7502 $as_echo_n "(cached) " >&6
7504 if test -n "$OBJDUMP"; then
7505 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
7507 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7511 test -z "$as_dir" && as_dir=.
7512 for ac_exec_ext in '' $ac_executable_extensions; do
7513 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7514 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
7515 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7524 OBJDUMP=$ac_cv_prog_OBJDUMP
7525 if test -n "$OBJDUMP"; then
7526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
7527 $as_echo "$OBJDUMP" >&6; }
7529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7530 $as_echo "no" >&6; }
7535 if test -z "$ac_cv_prog_OBJDUMP"; then
7536 ac_ct_OBJDUMP=$OBJDUMP
7537 # Extract the first word of "objdump", so it can be a program name with args.
7538 set dummy objdump; ac_word=$2
7539 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7540 $as_echo_n "checking for $ac_word... " >&6; }
7541 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
7542 $as_echo_n "(cached) " >&6
7544 if test -n "$ac_ct_OBJDUMP"; then
7545 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
7547 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7551 test -z "$as_dir" && as_dir=.
7552 for ac_exec_ext in '' $ac_executable_extensions; do
7553 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7554 ac_cv_prog_ac_ct_OBJDUMP="objdump"
7555 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7564 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
7565 if test -n "$ac_ct_OBJDUMP"; then
7566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
7567 $as_echo "$ac_ct_OBJDUMP" >&6; }
7569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7570 $as_echo "no" >&6; }
7573 if test "x$ac_ct_OBJDUMP" = x; then
7576 case $cross_compiling:$ac_tool_warned in
7578 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7579 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7580 ac_tool_warned=yes ;;
7582 OBJDUMP=$ac_ct_OBJDUMP
7585 OBJDUMP="$ac_cv_prog_OBJDUMP"
7588 test -z "$OBJDUMP" && OBJDUMP=objdump
7595 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
7596 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
7597 if ${lt_cv_deplibs_check_method+:} false; then :
7598 $as_echo_n "(cached) " >&6
7600 lt_cv_file_magic_cmd='$MAGIC_CMD'
7601 lt_cv_file_magic_test_file=
7602 lt_cv_deplibs_check_method='unknown'
7603 # Need to set the preceding variable on all platforms that support
7604 # interlibrary dependencies.
7605 # 'none' -- dependencies not supported.
7606 # `unknown' -- same as none, but documents that we really don't know.
7607 # 'pass_all' -- all dependencies passed with no checks.
7608 # 'test_compile' -- check by making test program.
7609 # 'file_magic [[regex]]' -- check by looking for files in library path
7610 # which responds to the $file_magic_cmd with a given extended regex.
7611 # If you have `file' or equivalent on your system and you're not sure
7612 # whether `pass_all' will *always* work, you probably want this one.
7616 lt_cv_deplibs_check_method=pass_all
7620 lt_cv_deplibs_check_method=pass_all
7624 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
7625 lt_cv_file_magic_cmd='/usr/bin/file -L'
7626 lt_cv_file_magic_test_file=/shlib/libc.so
7630 # func_win32_libid is a shell function defined in ltmain.sh
7631 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
7632 lt_cv_file_magic_cmd='func_win32_libid'
7636 # Base MSYS/MinGW do not provide the 'file' command needed by
7637 # func_win32_libid shell function, so use a weaker test based on 'objdump',
7638 # unless we find 'file', for example because we are cross-compiling.
7639 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
7640 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
7641 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
7642 lt_cv_file_magic_cmd='func_win32_libid'
7644 # Keep this pattern in sync with the one in func_win32_libid.
7645 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
7646 lt_cv_file_magic_cmd='$OBJDUMP -f'
7651 # use the weaker test based on 'objdump'. See mingw*.
7652 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
7653 lt_cv_file_magic_cmd='$OBJDUMP -f'
7656 darwin* | rhapsody*)
7657 lt_cv_deplibs_check_method=pass_all
7660 freebsd* | dragonfly*)
7661 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
7664 # Not sure whether the presence of OpenBSD here was a mistake.
7665 # Let's accept both of them until this is cleared up.
7666 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
7667 lt_cv_file_magic_cmd=/usr/bin/file
7668 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
7672 lt_cv_deplibs_check_method=pass_all
7677 lt_cv_deplibs_check_method=pass_all
7681 lt_cv_deplibs_check_method=pass_all
7684 hpux10.20* | hpux11*)
7685 lt_cv_file_magic_cmd=/usr/bin/file
7688 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
7689 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
7692 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]'
7693 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
7696 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
7697 lt_cv_file_magic_test_file=/usr/lib/libc.sl
7703 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
7704 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
7707 irix5* | irix6* | nonstopux*)
7709 *-32|*"-32 ") libmagic=32-bit;;
7710 *-n32|*"-n32 ") libmagic=N32;;
7711 *-64|*"-64 ") libmagic=64-bit;;
7712 *) libmagic=never-match;;
7714 lt_cv_deplibs_check_method=pass_all
7717 # This must be glibc/ELF.
7718 linux* | k*bsd*-gnu | kopensolaris*-gnu)
7719 lt_cv_deplibs_check_method=pass_all
7723 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
7724 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
7726 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
7731 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
7732 lt_cv_file_magic_cmd=/usr/bin/file
7733 lt_cv_file_magic_test_file=/usr/lib/libnls.so
7737 lt_cv_deplibs_check_method=pass_all
7741 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7742 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
7744 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
7748 osf3* | osf4* | osf5*)
7749 lt_cv_deplibs_check_method=pass_all
7753 lt_cv_deplibs_check_method=pass_all
7757 lt_cv_deplibs_check_method=pass_all
7760 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
7761 lt_cv_deplibs_check_method=pass_all
7765 case $host_vendor in
7767 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]'
7768 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
7771 lt_cv_deplibs_check_method=pass_all
7774 lt_cv_file_magic_cmd='/bin/file'
7775 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
7778 lt_cv_file_magic_cmd='/bin/file'
7779 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
7780 lt_cv_file_magic_test_file=/lib/libc.so
7783 lt_cv_deplibs_check_method=pass_all
7786 lt_cv_deplibs_check_method=pass_all
7792 lt_cv_deplibs_check_method=pass_all
7797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
7798 $as_echo "$lt_cv_deplibs_check_method" >&6; }
7802 if test "$build" = "$host"; then
7805 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
7808 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
7814 file_magic_cmd=$lt_cv_file_magic_cmd
7815 deplibs_check_method=$lt_cv_deplibs_check_method
7816 test -z "$deplibs_check_method" && deplibs_check_method=unknown
7839 if test -n "$ac_tool_prefix"; then
7840 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
7841 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
7842 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7843 $as_echo_n "checking for $ac_word... " >&6; }
7844 if ${ac_cv_prog_DLLTOOL+:} false; then :
7845 $as_echo_n "(cached) " >&6
7847 if test -n "$DLLTOOL"; then
7848 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
7850 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7854 test -z "$as_dir" && as_dir=.
7855 for ac_exec_ext in '' $ac_executable_extensions; do
7856 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7857 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
7858 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7867 DLLTOOL=$ac_cv_prog_DLLTOOL
7868 if test -n "$DLLTOOL"; then
7869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
7870 $as_echo "$DLLTOOL" >&6; }
7872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7873 $as_echo "no" >&6; }
7878 if test -z "$ac_cv_prog_DLLTOOL"; then
7879 ac_ct_DLLTOOL=$DLLTOOL
7880 # Extract the first word of "dlltool", so it can be a program name with args.
7881 set dummy dlltool; ac_word=$2
7882 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7883 $as_echo_n "checking for $ac_word... " >&6; }
7884 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
7885 $as_echo_n "(cached) " >&6
7887 if test -n "$ac_ct_DLLTOOL"; then
7888 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
7890 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7894 test -z "$as_dir" && as_dir=.
7895 for ac_exec_ext in '' $ac_executable_extensions; do
7896 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7897 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
7898 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7907 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
7908 if test -n "$ac_ct_DLLTOOL"; then
7909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
7910 $as_echo "$ac_ct_DLLTOOL" >&6; }
7912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7913 $as_echo "no" >&6; }
7916 if test "x$ac_ct_DLLTOOL" = x; then
7919 case $cross_compiling:$ac_tool_warned in
7921 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7922 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7923 ac_tool_warned=yes ;;
7925 DLLTOOL=$ac_ct_DLLTOOL
7928 DLLTOOL="$ac_cv_prog_DLLTOOL"
7931 test -z "$DLLTOOL" && DLLTOOL=dlltool
7939 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
7940 $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
7941 if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
7942 $as_echo_n "(cached) " >&6
7944 lt_cv_sharedlib_from_linklib_cmd='unknown'
7947 cygwin* | mingw* | pw32* | cegcc*)
7948 # two different shell functions defined in ltmain.sh
7949 # decide which to use based on capabilities of $DLLTOOL
7950 case `$DLLTOOL --help 2>&1` in
7951 *--identify-strict*)
7952 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
7955 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
7960 # fallback: assume linklib IS sharedlib
7961 lt_cv_sharedlib_from_linklib_cmd="$ECHO"
7966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
7967 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
7968 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
7969 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
7977 if test -n "$ac_tool_prefix"; then
7980 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
7981 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
7982 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7983 $as_echo_n "checking for $ac_word... " >&6; }
7984 if ${ac_cv_prog_AR+:} false; then :
7985 $as_echo_n "(cached) " >&6
7987 if test -n "$AR"; then
7988 ac_cv_prog_AR="$AR" # Let the user override the test.
7990 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7994 test -z "$as_dir" && as_dir=.
7995 for ac_exec_ext in '' $ac_executable_extensions; do
7996 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7997 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
7998 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8008 if test -n "$AR"; then
8009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
8010 $as_echo "$AR" >&6; }
8012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8013 $as_echo "no" >&6; }
8017 test -n "$AR" && break
8020 if test -z "$AR"; then
8024 # Extract the first word of "$ac_prog", so it can be a program name with args.
8025 set dummy $ac_prog; ac_word=$2
8026 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8027 $as_echo_n "checking for $ac_word... " >&6; }
8028 if ${ac_cv_prog_ac_ct_AR+:} false; then :
8029 $as_echo_n "(cached) " >&6
8031 if test -n "$ac_ct_AR"; then
8032 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
8034 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8038 test -z "$as_dir" && as_dir=.
8039 for ac_exec_ext in '' $ac_executable_extensions; do
8040 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8041 ac_cv_prog_ac_ct_AR="$ac_prog"
8042 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8051 ac_ct_AR=$ac_cv_prog_ac_ct_AR
8052 if test -n "$ac_ct_AR"; then
8053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
8054 $as_echo "$ac_ct_AR" >&6; }
8056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8057 $as_echo "no" >&6; }
8061 test -n "$ac_ct_AR" && break
8064 if test "x$ac_ct_AR" = x; then
8067 case $cross_compiling:$ac_tool_warned in
8069 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8070 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8071 ac_tool_warned=yes ;;
8090 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
8091 $as_echo_n "checking for archiver @FILE support... " >&6; }
8092 if ${lt_cv_ar_at_file+:} false; then :
8093 $as_echo_n "(cached) " >&6
8096 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8097 /* end confdefs.h. */
8107 if ac_fn_c_try_compile "$LINENO"; then :
8108 echo conftest.$ac_objext > conftest.lst
8109 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
8110 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
8111 (eval $lt_ar_try) 2>&5
8113 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8114 test $ac_status = 0; }
8115 if test "$ac_status" -eq 0; then
8116 # Ensure the archiver fails upon bogus file names.
8117 rm -f conftest.$ac_objext libconftest.a
8118 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
8119 (eval $lt_ar_try) 2>&5
8121 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8122 test $ac_status = 0; }
8123 if test "$ac_status" -ne 0; then
8127 rm -f conftest.* libconftest.a
8130 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
8134 $as_echo "$lt_cv_ar_at_file" >&6; }
8136 if test "x$lt_cv_ar_at_file" = xno; then
8139 archiver_list_spec=$lt_cv_ar_at_file
8148 if test -n "$ac_tool_prefix"; then
8149 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
8150 set dummy ${ac_tool_prefix}strip; ac_word=$2
8151 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8152 $as_echo_n "checking for $ac_word... " >&6; }
8153 if ${ac_cv_prog_STRIP+:} false; then :
8154 $as_echo_n "(cached) " >&6
8156 if test -n "$STRIP"; then
8157 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
8159 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8163 test -z "$as_dir" && as_dir=.
8164 for ac_exec_ext in '' $ac_executable_extensions; do
8165 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8166 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
8167 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8176 STRIP=$ac_cv_prog_STRIP
8177 if test -n "$STRIP"; then
8178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
8179 $as_echo "$STRIP" >&6; }
8181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8182 $as_echo "no" >&6; }
8187 if test -z "$ac_cv_prog_STRIP"; then
8189 # Extract the first word of "strip", so it can be a program name with args.
8190 set dummy strip; ac_word=$2
8191 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8192 $as_echo_n "checking for $ac_word... " >&6; }
8193 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
8194 $as_echo_n "(cached) " >&6
8196 if test -n "$ac_ct_STRIP"; then
8197 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
8199 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8203 test -z "$as_dir" && as_dir=.
8204 for ac_exec_ext in '' $ac_executable_extensions; do
8205 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8206 ac_cv_prog_ac_ct_STRIP="strip"
8207 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8216 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
8217 if test -n "$ac_ct_STRIP"; then
8218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
8219 $as_echo "$ac_ct_STRIP" >&6; }
8221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8222 $as_echo "no" >&6; }
8225 if test "x$ac_ct_STRIP" = x; then
8228 case $cross_compiling:$ac_tool_warned in
8230 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8231 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8232 ac_tool_warned=yes ;;
8237 STRIP="$ac_cv_prog_STRIP"
8240 test -z "$STRIP" && STRIP=:
8247 if test -n "$ac_tool_prefix"; then
8248 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
8249 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
8250 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8251 $as_echo_n "checking for $ac_word... " >&6; }
8252 if ${ac_cv_prog_RANLIB+:} false; then :
8253 $as_echo_n "(cached) " >&6
8255 if test -n "$RANLIB"; then
8256 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
8258 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8262 test -z "$as_dir" && as_dir=.
8263 for ac_exec_ext in '' $ac_executable_extensions; do
8264 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8265 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
8266 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8275 RANLIB=$ac_cv_prog_RANLIB
8276 if test -n "$RANLIB"; then
8277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
8278 $as_echo "$RANLIB" >&6; }
8280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8281 $as_echo "no" >&6; }
8286 if test -z "$ac_cv_prog_RANLIB"; then
8287 ac_ct_RANLIB=$RANLIB
8288 # Extract the first word of "ranlib", so it can be a program name with args.
8289 set dummy ranlib; ac_word=$2
8290 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8291 $as_echo_n "checking for $ac_word... " >&6; }
8292 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
8293 $as_echo_n "(cached) " >&6
8295 if test -n "$ac_ct_RANLIB"; then
8296 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
8298 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8302 test -z "$as_dir" && as_dir=.
8303 for ac_exec_ext in '' $ac_executable_extensions; do
8304 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8305 ac_cv_prog_ac_ct_RANLIB="ranlib"
8306 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8315 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
8316 if test -n "$ac_ct_RANLIB"; then
8317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
8318 $as_echo "$ac_ct_RANLIB" >&6; }
8320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8321 $as_echo "no" >&6; }
8324 if test "x$ac_ct_RANLIB" = x; then
8327 case $cross_compiling:$ac_tool_warned in
8329 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8330 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8331 ac_tool_warned=yes ;;
8333 RANLIB=$ac_ct_RANLIB
8336 RANLIB="$ac_cv_prog_RANLIB"
8339 test -z "$RANLIB" && RANLIB=:
8346 # Determine commands to create old-style static archives.
8347 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
8348 old_postinstall_cmds='chmod 644 $oldlib'
8349 old_postuninstall_cmds=
8351 if test -n "$RANLIB"; then
8354 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
8357 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
8360 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
8365 lock_old_archive_extraction=yes ;;
8367 lock_old_archive_extraction=no ;;
8408 # If no C compiler was specified, use CC.
8411 # If no C compiler flags were specified, use CFLAGS.
8412 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8414 # Allow CC to be a program name with arguments.
8418 # Check for command to grab the raw symbol name followed by C symbol from nm.
8419 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
8420 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
8421 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
8422 $as_echo_n "(cached) " >&6
8425 # These are sane defaults that work on at least a few old systems.
8426 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
8428 # Character class describing NM global symbol codes.
8429 symcode='[BCDEGRST]'
8431 # Regexp to match symbols that can be accessed directly from C.
8432 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
8434 # Define system-specific variables.
8439 cygwin* | mingw* | pw32* | cegcc*)
8440 symcode='[ABCDGISTW]'
8443 if test "$host_cpu" = ia64; then
8444 symcode='[ABCDEGRST]'
8448 symcode='[BCDEGRST]'
8451 symcode='[BCDEGQRST]'
8462 sysv5* | sco5v6* | unixware* | OpenUNIX*)
8470 # If we're using GNU nm, then use its standard symbol codes.
8471 case `$NM -V 2>&1` in
8472 *GNU* | *'with BFD'*)
8473 symcode='[ABCDGIRSTW]' ;;
8476 # Transform an extracted symbol line into a proper C declaration.
8477 # Some systems (esp. on ia64) link data and code symbols differently,
8478 # so use this general approach.
8479 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
8481 # Transform an extracted symbol line into symbol name and symbol address
8482 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
8483 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \(lib[^ ]*\)$/ {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"lib\2\", (void *) \&\2},/p'"
8485 # Handle CRLF in mingw tool chain
8489 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
8493 # Try without a prefix underscore, then with it.
8494 for ac_symprfx in "" "_"; do
8496 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
8497 symxfrm="\\1 $ac_symprfx\\2 \\2"
8499 # Write the raw and C identifiers.
8500 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
8501 # Fake it for dumpbin and say T for any non-static function
8502 # and D for any global variable.
8503 # Also find C++ and __fastcall symbols from MSVC++,
8504 # which start with @ or ?.
8505 lt_cv_sys_global_symbol_pipe="$AWK '"\
8506 " {last_section=section; section=\$ 3};"\
8507 " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
8508 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
8509 " \$ 0!~/External *\|/{next};"\
8510 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
8511 " {if(hide[section]) next};"\
8512 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
8513 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
8514 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
8515 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
8516 " ' prfx=^$ac_symprfx"
8518 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
8520 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
8522 # Check to see that the pipe works correctly.
8526 cat > conftest.$ac_ext <<_LT_EOF
8531 void nm_test_func(void);
8532 void nm_test_func(void){}
8536 int main(){nm_test_var='a';nm_test_func();return(0);}
8539 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8540 (eval $ac_compile) 2>&5
8542 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8543 test $ac_status = 0; }; then
8544 # Now try to grab the symbols.
8546 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
8547 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
8549 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8550 test $ac_status = 0; } && test -s "$nlist"; then
8551 # Try sorting and uniquifying the output.
8552 if sort "$nlist" | uniq > "$nlist"T; then
8553 mv -f "$nlist"T "$nlist"
8558 # Make sure that we snagged all the symbols we need.
8559 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
8560 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
8561 cat <<_LT_EOF > conftest.$ac_ext
8562 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
8563 #if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
8564 /* DATA imports from DLLs on WIN32 con't be const, because runtime
8565 relocations are performed -- see ld's documentation on pseudo-relocs. */
8566 # define LT_DLSYM_CONST
8567 #elif defined(__osf__)
8568 /* This system does not cope well with relocations in const data. */
8569 # define LT_DLSYM_CONST
8571 # define LT_DLSYM_CONST const
8579 # Now generate the symbol file.
8580 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
8582 cat <<_LT_EOF >> conftest.$ac_ext
8584 /* The mapping between symbol names and symbols. */
8585 LT_DLSYM_CONST struct {
8589 lt__PROGRAM__LTX_preloaded_symbols[] =
8591 { "@PROGRAM@", (void *) 0 },
8593 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
8594 cat <<\_LT_EOF >> conftest.$ac_ext
8598 /* This works around a problem in FreeBSD linker */
8599 #ifdef FREEBSD_WORKAROUND
8600 static const void *lt_preloaded_setup() {
8601 return lt__PROGRAM__LTX_preloaded_symbols;
8609 # Now try linking the two files.
8610 mv conftest.$ac_objext conftstm.$ac_objext
8611 lt_globsym_save_LIBS=$LIBS
8612 lt_globsym_save_CFLAGS=$CFLAGS
8613 LIBS="conftstm.$ac_objext"
8614 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
8615 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
8616 (eval $ac_link) 2>&5
8618 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8619 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
8622 LIBS=$lt_globsym_save_LIBS
8623 CFLAGS=$lt_globsym_save_CFLAGS
8625 echo "cannot find nm_test_func in $nlist" >&5
8628 echo "cannot find nm_test_var in $nlist" >&5
8631 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
8634 echo "$progname: failed program was:" >&5
8635 cat conftest.$ac_ext >&5
8637 rm -rf conftest* conftst*
8639 # Do not use the global_symbol_pipe unless it works.
8640 if test "$pipe_works" = yes; then
8643 lt_cv_sys_global_symbol_pipe=
8649 if test -z "$lt_cv_sys_global_symbol_pipe"; then
8650 lt_cv_sys_global_symbol_to_cdecl=
8652 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
8653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
8654 $as_echo "failed" >&6; }
8656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
8657 $as_echo "ok" >&6; }
8660 # Response file support.
8661 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
8662 nm_file_list_spec='@'
8663 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
8664 nm_file_list_spec='@'
8693 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
8694 $as_echo_n "checking for sysroot... " >&6; }
8696 # Check whether --with-sysroot was given.
8697 if test "${with_sysroot+set}" = set; then :
8698 withval=$with_sysroot;
8705 case ${with_sysroot} in #(
8707 if test "$GCC" = yes; then
8708 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
8712 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
8717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
8718 $as_echo "${with_sysroot}" >&6; }
8719 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
8723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
8724 $as_echo "${lt_sysroot:-no}" >&6; }
8730 # Check whether --enable-libtool-lock was given.
8731 if test "${enable_libtool_lock+set}" = set; then :
8732 enableval=$enable_libtool_lock;
8735 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
8737 # Some flags need to be propagated to the compiler or linker for good
8741 # Find out which ABI we are using.
8742 echo 'int i;' > conftest.$ac_ext
8743 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8744 (eval $ac_compile) 2>&5
8746 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8747 test $ac_status = 0; }; then
8748 case `/usr/bin/file conftest.$ac_objext` in
8760 # Find out which ABI we are using.
8761 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
8762 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8763 (eval $ac_compile) 2>&5
8765 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8766 test $ac_status = 0; }; then
8767 if test "$lt_cv_prog_gnu_ld" = yes; then
8768 case `/usr/bin/file conftest.$ac_objext` in
8770 LD="${LD-ld} -melf32bsmip"
8773 LD="${LD-ld} -melf32bmipn32"
8776 LD="${LD-ld} -melf64bmip"
8780 case `/usr/bin/file conftest.$ac_objext` in
8796 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
8797 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
8798 # Find out which ABI we are using.
8799 echo 'int i;' > conftest.$ac_ext
8800 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8801 (eval $ac_compile) 2>&5
8803 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8804 test $ac_status = 0; }; then
8805 case `/usr/bin/file conftest.o` in
8808 x86_64-*kfreebsd*-gnu)
8809 LD="${LD-ld} -m elf_i386_fbsd"
8812 LD="${LD-ld} -m elf_i386"
8814 ppc64-*linux*|powerpc64-*linux*)
8815 LD="${LD-ld} -m elf32ppclinux"
8818 LD="${LD-ld} -m elf_s390"
8821 LD="${LD-ld} -m elf32_sparc"
8827 x86_64-*kfreebsd*-gnu)
8828 LD="${LD-ld} -m elf_x86_64_fbsd"
8831 LD="${LD-ld} -m elf_x86_64"
8833 ppc*-*linux*|powerpc*-*linux*)
8834 LD="${LD-ld} -m elf64ppc"
8836 s390*-*linux*|s390*-*tpf*)
8837 LD="${LD-ld} -m elf64_s390"
8840 LD="${LD-ld} -m elf64_sparc"
8850 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
8851 SAVE_CFLAGS="$CFLAGS"
8852 CFLAGS="$CFLAGS -belf"
8853 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
8854 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
8855 if ${lt_cv_cc_needs_belf+:} false; then :
8856 $as_echo_n "(cached) " >&6
8859 ac_cpp='$CPP $CPPFLAGS'
8860 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8861 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8862 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8864 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8865 /* end confdefs.h. */
8875 if ac_fn_c_try_link "$LINENO"; then :
8876 lt_cv_cc_needs_belf=yes
8878 lt_cv_cc_needs_belf=no
8880 rm -f core conftest.err conftest.$ac_objext \
8881 conftest$ac_exeext conftest.$ac_ext
8883 ac_cpp='$CPP $CPPFLAGS'
8884 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8885 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8886 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
8890 $as_echo "$lt_cv_cc_needs_belf" >&6; }
8891 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
8892 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
8893 CFLAGS="$SAVE_CFLAGS"
8897 # Find out which ABI we are using.
8898 echo 'int i;' > conftest.$ac_ext
8899 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8900 (eval $ac_compile) 2>&5
8902 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8903 test $ac_status = 0; }; then
8904 case `/usr/bin/file conftest.o` in
8906 case $lt_cv_prog_gnu_ld in
8910 LD="${LD-ld} -m elf_x86_64"
8913 LD="${LD-ld} -m elf64_sparc"
8916 # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
8917 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
8922 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
8934 need_locks="$enable_libtool_lock"
8936 if test -n "$ac_tool_prefix"; then
8937 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
8938 set dummy ${ac_tool_prefix}mt; ac_word=$2
8939 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8940 $as_echo_n "checking for $ac_word... " >&6; }
8941 if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
8942 $as_echo_n "(cached) " >&6
8944 if test -n "$MANIFEST_TOOL"; then
8945 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
8947 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8951 test -z "$as_dir" && as_dir=.
8952 for ac_exec_ext in '' $ac_executable_extensions; do
8953 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8954 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
8955 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8964 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
8965 if test -n "$MANIFEST_TOOL"; then
8966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
8967 $as_echo "$MANIFEST_TOOL" >&6; }
8969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8970 $as_echo "no" >&6; }
8975 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
8976 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
8977 # Extract the first word of "mt", so it can be a program name with args.
8978 set dummy mt; ac_word=$2
8979 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8980 $as_echo_n "checking for $ac_word... " >&6; }
8981 if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
8982 $as_echo_n "(cached) " >&6
8984 if test -n "$ac_ct_MANIFEST_TOOL"; then
8985 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
8987 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8991 test -z "$as_dir" && as_dir=.
8992 for ac_exec_ext in '' $ac_executable_extensions; do
8993 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8994 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
8995 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9004 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
9005 if test -n "$ac_ct_MANIFEST_TOOL"; then
9006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
9007 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
9009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9010 $as_echo "no" >&6; }
9013 if test "x$ac_ct_MANIFEST_TOOL" = x; then
9016 case $cross_compiling:$ac_tool_warned in
9018 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9019 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9020 ac_tool_warned=yes ;;
9022 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
9025 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
9028 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
9029 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
9030 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
9031 if ${lt_cv_path_mainfest_tool+:} false; then :
9032 $as_echo_n "(cached) " >&6
9034 lt_cv_path_mainfest_tool=no
9035 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
9036 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
9037 cat conftest.err >&5
9038 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
9039 lt_cv_path_mainfest_tool=yes
9043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
9044 $as_echo "$lt_cv_path_mainfest_tool" >&6; }
9045 if test "x$lt_cv_path_mainfest_tool" != xyes; then
9055 rhapsody* | darwin*)
9056 if test -n "$ac_tool_prefix"; then
9057 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
9058 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
9059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9060 $as_echo_n "checking for $ac_word... " >&6; }
9061 if ${ac_cv_prog_DSYMUTIL+:} false; then :
9062 $as_echo_n "(cached) " >&6
9064 if test -n "$DSYMUTIL"; then
9065 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
9067 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9071 test -z "$as_dir" && as_dir=.
9072 for ac_exec_ext in '' $ac_executable_extensions; do
9073 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9074 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
9075 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9084 DSYMUTIL=$ac_cv_prog_DSYMUTIL
9085 if test -n "$DSYMUTIL"; then
9086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
9087 $as_echo "$DSYMUTIL" >&6; }
9089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9090 $as_echo "no" >&6; }
9095 if test -z "$ac_cv_prog_DSYMUTIL"; then
9096 ac_ct_DSYMUTIL=$DSYMUTIL
9097 # Extract the first word of "dsymutil", so it can be a program name with args.
9098 set dummy dsymutil; ac_word=$2
9099 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9100 $as_echo_n "checking for $ac_word... " >&6; }
9101 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
9102 $as_echo_n "(cached) " >&6
9104 if test -n "$ac_ct_DSYMUTIL"; then
9105 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
9107 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9111 test -z "$as_dir" && as_dir=.
9112 for ac_exec_ext in '' $ac_executable_extensions; do
9113 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9114 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
9115 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9124 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
9125 if test -n "$ac_ct_DSYMUTIL"; then
9126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
9127 $as_echo "$ac_ct_DSYMUTIL" >&6; }
9129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9130 $as_echo "no" >&6; }
9133 if test "x$ac_ct_DSYMUTIL" = x; then
9136 case $cross_compiling:$ac_tool_warned in
9138 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9139 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9140 ac_tool_warned=yes ;;
9142 DSYMUTIL=$ac_ct_DSYMUTIL
9145 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
9148 if test -n "$ac_tool_prefix"; then
9149 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
9150 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
9151 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9152 $as_echo_n "checking for $ac_word... " >&6; }
9153 if ${ac_cv_prog_NMEDIT+:} false; then :
9154 $as_echo_n "(cached) " >&6
9156 if test -n "$NMEDIT"; then
9157 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
9159 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9163 test -z "$as_dir" && as_dir=.
9164 for ac_exec_ext in '' $ac_executable_extensions; do
9165 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9166 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
9167 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9176 NMEDIT=$ac_cv_prog_NMEDIT
9177 if test -n "$NMEDIT"; then
9178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
9179 $as_echo "$NMEDIT" >&6; }
9181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9182 $as_echo "no" >&6; }
9187 if test -z "$ac_cv_prog_NMEDIT"; then
9188 ac_ct_NMEDIT=$NMEDIT
9189 # Extract the first word of "nmedit", so it can be a program name with args.
9190 set dummy nmedit; ac_word=$2
9191 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9192 $as_echo_n "checking for $ac_word... " >&6; }
9193 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
9194 $as_echo_n "(cached) " >&6
9196 if test -n "$ac_ct_NMEDIT"; then
9197 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
9199 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9203 test -z "$as_dir" && as_dir=.
9204 for ac_exec_ext in '' $ac_executable_extensions; do
9205 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9206 ac_cv_prog_ac_ct_NMEDIT="nmedit"
9207 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9216 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
9217 if test -n "$ac_ct_NMEDIT"; then
9218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
9219 $as_echo "$ac_ct_NMEDIT" >&6; }
9221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9222 $as_echo "no" >&6; }
9225 if test "x$ac_ct_NMEDIT" = x; then
9228 case $cross_compiling:$ac_tool_warned in
9230 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9231 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9232 ac_tool_warned=yes ;;
9234 NMEDIT=$ac_ct_NMEDIT
9237 NMEDIT="$ac_cv_prog_NMEDIT"
9240 if test -n "$ac_tool_prefix"; then
9241 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
9242 set dummy ${ac_tool_prefix}lipo; ac_word=$2
9243 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9244 $as_echo_n "checking for $ac_word... " >&6; }
9245 if ${ac_cv_prog_LIPO+:} false; then :
9246 $as_echo_n "(cached) " >&6
9248 if test -n "$LIPO"; then
9249 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
9251 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9255 test -z "$as_dir" && as_dir=.
9256 for ac_exec_ext in '' $ac_executable_extensions; do
9257 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9258 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
9259 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9268 LIPO=$ac_cv_prog_LIPO
9269 if test -n "$LIPO"; then
9270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
9271 $as_echo "$LIPO" >&6; }
9273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9274 $as_echo "no" >&6; }
9279 if test -z "$ac_cv_prog_LIPO"; then
9281 # Extract the first word of "lipo", so it can be a program name with args.
9282 set dummy lipo; ac_word=$2
9283 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9284 $as_echo_n "checking for $ac_word... " >&6; }
9285 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
9286 $as_echo_n "(cached) " >&6
9288 if test -n "$ac_ct_LIPO"; then
9289 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
9291 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9295 test -z "$as_dir" && as_dir=.
9296 for ac_exec_ext in '' $ac_executable_extensions; do
9297 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9298 ac_cv_prog_ac_ct_LIPO="lipo"
9299 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9308 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
9309 if test -n "$ac_ct_LIPO"; then
9310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
9311 $as_echo "$ac_ct_LIPO" >&6; }
9313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9314 $as_echo "no" >&6; }
9317 if test "x$ac_ct_LIPO" = x; then
9320 case $cross_compiling:$ac_tool_warned in
9322 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9323 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9324 ac_tool_warned=yes ;;
9329 LIPO="$ac_cv_prog_LIPO"
9332 if test -n "$ac_tool_prefix"; then
9333 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
9334 set dummy ${ac_tool_prefix}otool; ac_word=$2
9335 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9336 $as_echo_n "checking for $ac_word... " >&6; }
9337 if ${ac_cv_prog_OTOOL+:} false; then :
9338 $as_echo_n "(cached) " >&6
9340 if test -n "$OTOOL"; then
9341 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
9343 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9347 test -z "$as_dir" && as_dir=.
9348 for ac_exec_ext in '' $ac_executable_extensions; do
9349 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9350 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
9351 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9360 OTOOL=$ac_cv_prog_OTOOL
9361 if test -n "$OTOOL"; then
9362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
9363 $as_echo "$OTOOL" >&6; }
9365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9366 $as_echo "no" >&6; }
9371 if test -z "$ac_cv_prog_OTOOL"; then
9373 # Extract the first word of "otool", so it can be a program name with args.
9374 set dummy otool; ac_word=$2
9375 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9376 $as_echo_n "checking for $ac_word... " >&6; }
9377 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
9378 $as_echo_n "(cached) " >&6
9380 if test -n "$ac_ct_OTOOL"; then
9381 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
9383 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9387 test -z "$as_dir" && as_dir=.
9388 for ac_exec_ext in '' $ac_executable_extensions; do
9389 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9390 ac_cv_prog_ac_ct_OTOOL="otool"
9391 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9400 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
9401 if test -n "$ac_ct_OTOOL"; then
9402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
9403 $as_echo "$ac_ct_OTOOL" >&6; }
9405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9406 $as_echo "no" >&6; }
9409 if test "x$ac_ct_OTOOL" = x; then
9412 case $cross_compiling:$ac_tool_warned in
9414 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9415 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9416 ac_tool_warned=yes ;;
9421 OTOOL="$ac_cv_prog_OTOOL"
9424 if test -n "$ac_tool_prefix"; then
9425 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
9426 set dummy ${ac_tool_prefix}otool64; ac_word=$2
9427 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9428 $as_echo_n "checking for $ac_word... " >&6; }
9429 if ${ac_cv_prog_OTOOL64+:} false; then :
9430 $as_echo_n "(cached) " >&6
9432 if test -n "$OTOOL64"; then
9433 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
9435 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9439 test -z "$as_dir" && as_dir=.
9440 for ac_exec_ext in '' $ac_executable_extensions; do
9441 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9442 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
9443 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9452 OTOOL64=$ac_cv_prog_OTOOL64
9453 if test -n "$OTOOL64"; then
9454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
9455 $as_echo "$OTOOL64" >&6; }
9457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9458 $as_echo "no" >&6; }
9463 if test -z "$ac_cv_prog_OTOOL64"; then
9464 ac_ct_OTOOL64=$OTOOL64
9465 # Extract the first word of "otool64", so it can be a program name with args.
9466 set dummy otool64; ac_word=$2
9467 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9468 $as_echo_n "checking for $ac_word... " >&6; }
9469 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
9470 $as_echo_n "(cached) " >&6
9472 if test -n "$ac_ct_OTOOL64"; then
9473 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
9475 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9479 test -z "$as_dir" && as_dir=.
9480 for ac_exec_ext in '' $ac_executable_extensions; do
9481 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9482 ac_cv_prog_ac_ct_OTOOL64="otool64"
9483 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9492 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
9493 if test -n "$ac_ct_OTOOL64"; then
9494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
9495 $as_echo "$ac_ct_OTOOL64" >&6; }
9497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9498 $as_echo "no" >&6; }
9501 if test "x$ac_ct_OTOOL64" = x; then
9504 case $cross_compiling:$ac_tool_warned in
9506 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9507 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9508 ac_tool_warned=yes ;;
9510 OTOOL64=$ac_ct_OTOOL64
9513 OTOOL64="$ac_cv_prog_OTOOL64"
9542 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
9543 $as_echo_n "checking for -single_module linker flag... " >&6; }
9544 if ${lt_cv_apple_cc_single_mod+:} false; then :
9545 $as_echo_n "(cached) " >&6
9547 lt_cv_apple_cc_single_mod=no
9548 if test -z "${LT_MULTI_MODULE}"; then
9549 # By default we will add the -single_module flag. You can override
9550 # by either setting the environment variable LT_MULTI_MODULE
9551 # non-empty at configure time, or by adding -multi_module to the
9553 rm -rf libconftest.dylib*
9554 echo "int foo(void){return 1;}" > conftest.c
9555 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
9556 -dynamiclib -Wl,-single_module conftest.c" >&5
9557 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
9558 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
9560 # If there is a non-empty error log, and "single_module"
9561 # appears in it, assume the flag caused a linker warning
9562 if test -s conftest.err && $GREP single_module conftest.err; then
9563 cat conftest.err >&5
9564 # Otherwise, if the output was created with a 0 exit code from
9565 # the compiler, it worked.
9566 elif test -f libconftest.dylib && test $_lt_result -eq 0; then
9567 lt_cv_apple_cc_single_mod=yes
9569 cat conftest.err >&5
9571 rm -rf libconftest.dylib*
9575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
9576 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
9578 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
9579 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
9580 if ${lt_cv_ld_exported_symbols_list+:} false; then :
9581 $as_echo_n "(cached) " >&6
9583 lt_cv_ld_exported_symbols_list=no
9584 save_LDFLAGS=$LDFLAGS
9585 echo "_main" > conftest.sym
9586 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
9587 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9588 /* end confdefs.h. */
9598 if ac_fn_c_try_link "$LINENO"; then :
9599 lt_cv_ld_exported_symbols_list=yes
9601 lt_cv_ld_exported_symbols_list=no
9603 rm -f core conftest.err conftest.$ac_objext \
9604 conftest$ac_exeext conftest.$ac_ext
9605 LDFLAGS="$save_LDFLAGS"
9608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
9609 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
9611 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
9612 $as_echo_n "checking for -force_load linker flag... " >&6; }
9613 if ${lt_cv_ld_force_load+:} false; then :
9614 $as_echo_n "(cached) " >&6
9616 lt_cv_ld_force_load=no
9617 cat > conftest.c << _LT_EOF
9618 int forced_loaded() { return 2;}
9620 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
9621 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
9622 echo "$AR cru libconftest.a conftest.o" >&5
9623 $AR cru libconftest.a conftest.o 2>&5
9624 echo "$RANLIB libconftest.a" >&5
9625 $RANLIB libconftest.a 2>&5
9626 cat > conftest.c << _LT_EOF
9627 int main() { return 0;}
9629 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
9630 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
9632 if test -s conftest.err && $GREP force_load conftest.err; then
9633 cat conftest.err >&5
9634 elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then
9635 lt_cv_ld_force_load=yes
9637 cat conftest.err >&5
9639 rm -f conftest.err libconftest.a conftest conftest.c
9640 rm -rf conftest.dSYM
9643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
9644 $as_echo "$lt_cv_ld_force_load" >&6; }
9646 rhapsody* | darwin1.[012])
9647 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
9649 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
9650 darwin*) # darwin 5.x on
9651 # if running on 10.5 or later, the deployment target defaults
9652 # to the OS version, if on x86, and 10.4, the deployment
9653 # target defaults to 10.4. Don't you love it?
9654 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
9655 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
9656 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
9658 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
9660 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
9664 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
9665 _lt_dar_single_mod='$single_module'
9667 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
9668 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
9670 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
9672 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
9673 _lt_dsymutil='~$DSYMUTIL $lib || :'
9680 for ac_header in dlfcn.h
9682 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
9684 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
9685 cat >>confdefs.h <<_ACEOF
9686 #define HAVE_DLFCN_H 1
9695 func_stripname_cnf ()
9698 .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
9699 *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
9701 } # func_stripname_cnf
9715 # Check whether --enable-shared was given.
9716 if test "${enable_shared+set}" = set; then :
9717 enableval=$enable_shared; p=${PACKAGE-default}
9719 yes) enable_shared=yes ;;
9720 no) enable_shared=no ;;
9723 # Look at the argument we got. We use all the common list separators.
9724 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9725 for pkg in $enableval; do
9727 if test "X$pkg" = "X$p"; then
9746 # Check whether --enable-static was given.
9747 if test "${enable_static+set}" = set; then :
9748 enableval=$enable_static; p=${PACKAGE-default}
9750 yes) enable_static=yes ;;
9751 no) enable_static=no ;;
9754 # Look at the argument we got. We use all the common list separators.
9755 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9756 for pkg in $enableval; do
9758 if test "X$pkg" = "X$p"; then
9778 # Check whether --with-pic was given.
9779 if test "${with_pic+set}" = set; then :
9780 withval=$with_pic; lt_p=${PACKAGE-default}
9782 yes|no) pic_mode=$withval ;;
9785 # Look at the argument we got. We use all the common list separators.
9786 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9787 for lt_pkg in $withval; do
9789 if test "X$lt_pkg" = "X$lt_p"; then
9801 test -z "$pic_mode" && pic_mode=default
9809 # Check whether --enable-fast-install was given.
9810 if test "${enable_fast_install+set}" = set; then :
9811 enableval=$enable_fast_install; p=${PACKAGE-default}
9813 yes) enable_fast_install=yes ;;
9814 no) enable_fast_install=no ;;
9816 enable_fast_install=no
9817 # Look at the argument we got. We use all the common list separators.
9818 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9819 for pkg in $enableval; do
9821 if test "X$pkg" = "X$p"; then
9822 enable_fast_install=yes
9829 enable_fast_install=yes
9842 # This can be used to rebuild libtool when needed
9843 LIBTOOL_DEPS="$ltmain"
9845 # Always use our own libtool.
9846 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
9877 test -z "$LN_S" && LN_S="ln -s"
9892 if test -n "${ZSH_VERSION+set}" ; then
9893 setopt NO_GLOB_SUBST
9896 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
9897 $as_echo_n "checking for objdir... " >&6; }
9898 if ${lt_cv_objdir+:} false; then :
9899 $as_echo_n "(cached) " >&6
9901 rm -f .libs 2>/dev/null
9902 mkdir .libs 2>/dev/null
9903 if test -d .libs; then
9906 # MS-DOS does not allow filenames that begin with a dot.
9909 rmdir .libs 2>/dev/null
9911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
9912 $as_echo "$lt_cv_objdir" >&6; }
9913 objdir=$lt_cv_objdir
9919 cat >>confdefs.h <<_ACEOF
9920 #define LT_OBJDIR "$lt_cv_objdir/"
9928 # AIX sometimes has problems with the GCC collect2 program. For some
9929 # reason, if we set the COLLECT_NAMES environment variable, the problems
9930 # vanish in a puff of smoke.
9931 if test "X${COLLECT_NAMES+set}" != Xset; then
9933 export COLLECT_NAMES
9940 can_build_shared=yes
9942 # All known linkers require a `.a' archive for static linking (except MSVC,
9943 # which needs '.lib').
9946 with_gnu_ld="$lt_cv_prog_gnu_ld"
9949 old_CFLAGS="$CFLAGS"
9951 # Set sane defaults for various variables
9952 test -z "$CC" && CC=cc
9953 test -z "$LTCC" && LTCC=$CC
9954 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
9955 test -z "$LD" && LD=ld
9956 test -z "$ac_objext" && ac_objext=o
9958 for cc_temp in $compiler""; do
9960 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
9961 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
9966 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
9969 # Only perform the check for file, if the check method requires it
9970 test -z "$MAGIC_CMD" && MAGIC_CMD=file
9971 case $deplibs_check_method in
9973 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
9974 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
9975 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
9976 if ${lt_cv_path_MAGIC_CMD+:} false; then :
9977 $as_echo_n "(cached) " >&6
9981 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
9984 lt_save_MAGIC_CMD="$MAGIC_CMD"
9985 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9986 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9987 for ac_dir in $ac_dummy; do
9989 test -z "$ac_dir" && ac_dir=.
9990 if test -f $ac_dir/${ac_tool_prefix}file; then
9991 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
9992 if test -n "$file_magic_test_file"; then
9993 case $deplibs_check_method in
9995 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9996 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9997 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9998 $EGREP "$file_magic_regex" > /dev/null; then
10003 *** Warning: the command libtool uses to detect shared libraries,
10004 *** $file_magic_cmd, produces output that libtool cannot recognize.
10005 *** The result is that libtool may fail to recognize shared libraries
10006 *** as such. This will affect the creation of libtool libraries that
10007 *** depend on shared libraries, but programs linked with such libtool
10008 *** libraries will work regardless of this problem. Nevertheless, you
10009 *** may want to report the problem to your system manager and/or to
10010 *** bug-libtool@gnu.org
10020 MAGIC_CMD="$lt_save_MAGIC_CMD"
10025 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
10026 if test -n "$MAGIC_CMD"; then
10027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
10028 $as_echo "$MAGIC_CMD" >&6; }
10030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10031 $as_echo "no" >&6; }
10038 if test -z "$lt_cv_path_MAGIC_CMD"; then
10039 if test -n "$ac_tool_prefix"; then
10040 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
10041 $as_echo_n "checking for file... " >&6; }
10042 if ${lt_cv_path_MAGIC_CMD+:} false; then :
10043 $as_echo_n "(cached) " >&6
10047 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
10050 lt_save_MAGIC_CMD="$MAGIC_CMD"
10051 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
10052 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
10053 for ac_dir in $ac_dummy; do
10055 test -z "$ac_dir" && ac_dir=.
10056 if test -f $ac_dir/file; then
10057 lt_cv_path_MAGIC_CMD="$ac_dir/file"
10058 if test -n "$file_magic_test_file"; then
10059 case $deplibs_check_method in
10061 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
10062 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
10063 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
10064 $EGREP "$file_magic_regex" > /dev/null; then
10069 *** Warning: the command libtool uses to detect shared libraries,
10070 *** $file_magic_cmd, produces output that libtool cannot recognize.
10071 *** The result is that libtool may fail to recognize shared libraries
10072 *** as such. This will affect the creation of libtool libraries that
10073 *** depend on shared libraries, but programs linked with such libtool
10074 *** libraries will work regardless of this problem. Nevertheless, you
10075 *** may want to report the problem to your system manager and/or to
10076 *** bug-libtool@gnu.org
10086 MAGIC_CMD="$lt_save_MAGIC_CMD"
10091 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
10092 if test -n "$MAGIC_CMD"; then
10093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
10094 $as_echo "$MAGIC_CMD" >&6; }
10096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10097 $as_echo "no" >&6; }
10110 # Use C for the default configuration in the libtool script
10114 ac_cpp='$CPP $CPPFLAGS'
10115 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10116 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10117 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10120 # Source file extension for C test sources.
10123 # Object file extension for compiled C test sources.
10127 # Code to be used in simple compile tests
10128 lt_simple_compile_test_code="int some_variable = 0;"
10130 # Code to be used in simple link tests
10131 lt_simple_link_test_code='int main(){return(0);}'
10139 # If no C compiler was specified, use CC.
10142 # If no C compiler flags were specified, use CFLAGS.
10143 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
10145 # Allow CC to be a program name with arguments.
10148 # Save the default compiler, since it gets overwritten when the other
10149 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
10150 compiler_DEFAULT=$CC
10152 # save warnings/boilerplate of simple test code
10153 ac_outfile=conftest.$ac_objext
10154 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
10155 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10156 _lt_compiler_boilerplate=`cat conftest.err`
10159 ac_outfile=conftest.$ac_objext
10160 echo "$lt_simple_link_test_code" >conftest.$ac_ext
10161 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10162 _lt_linker_boilerplate=`cat conftest.err`
10167 ## There is no encapsulation within the following macros, do not change
10168 ## the running order or otherwise move them around unless you know exactly
10169 ## what you are doing...
10170 if test -n "$compiler"; then
10172 lt_prog_compiler_no_builtin_flag=
10174 if test "$GCC" = yes; then
10175 case $cc_basename in
10177 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
10179 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
10182 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
10183 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
10184 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
10185 $as_echo_n "(cached) " >&6
10187 lt_cv_prog_compiler_rtti_exceptions=no
10188 ac_outfile=conftest.$ac_objext
10189 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10190 lt_compiler_flag="-fno-rtti -fno-exceptions"
10191 # Insert the option either (1) after the last *FLAGS variable, or
10192 # (2) before a word containing "conftest.", or (3) at the end.
10193 # Note that $ac_compile itself does not contain backslashes and begins
10194 # with a dollar sign (not a hyphen), so the echo should work correctly.
10195 # The option is referenced via a variable to avoid confusing sed.
10196 lt_compile=`echo "$ac_compile" | $SED \
10197 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10198 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10199 -e 's:$: $lt_compiler_flag:'`
10200 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10201 (eval "$lt_compile" 2>conftest.err)
10203 cat conftest.err >&5
10204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10205 if (exit $ac_status) && test -s "$ac_outfile"; then
10206 # The compiler can only warn and ignore the option if not recognized
10207 # So say no if there are warnings other than the usual output.
10208 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
10209 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10210 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
10211 lt_cv_prog_compiler_rtti_exceptions=yes
10217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
10218 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
10220 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
10221 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
10233 lt_prog_compiler_wl=
10234 lt_prog_compiler_pic=
10235 lt_prog_compiler_static=
10238 if test "$GCC" = yes; then
10239 lt_prog_compiler_wl='-Wl,'
10240 lt_prog_compiler_static='-static'
10244 # All AIX code is PIC.
10245 if test "$host_cpu" = ia64; then
10246 # AIX 5 now supports IA64 processor
10247 lt_prog_compiler_static='-Bstatic'
10254 # see comment about AmigaOS4 .so support
10255 lt_prog_compiler_pic='-fPIC'
10258 # FIXME: we need at least 68020 code to build shared libraries, but
10259 # adding the `-m68020' flag to GCC prevents building anything better,
10261 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
10266 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
10267 # PIC is the default for these OSes.
10270 mingw* | cygwin* | pw32* | os2* | cegcc*)
10271 # This hack is so that the source file can tell whether it is being
10272 # built for inclusion in a dll (and should export symbols for example).
10273 # Although the cygwin gcc ignores -fPIC, still need this for old-style
10274 # (--disable-auto-import) libraries
10275 lt_prog_compiler_pic='-DDLL_EXPORT'
10278 darwin* | rhapsody*)
10279 # PIC is the default on this platform
10280 # Common symbols not allowed in MH_DYLIB files
10281 lt_prog_compiler_pic='-fno-common'
10285 # PIC is the default for Haiku.
10286 # The "-static" flag exists, but is broken.
10287 lt_prog_compiler_static=
10291 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
10292 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
10293 # sets the default TLS model and affects inlining.
10299 lt_prog_compiler_pic='-fPIC'
10305 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
10306 # Instead, we relocate shared libraries at runtime.
10310 # Just because we use GCC doesn't mean we suddenly get shared libraries
10311 # on systems that don't support them.
10312 lt_prog_compiler_can_build_shared=no
10317 # QNX uses GNU C++, but need to define -shared option too, otherwise
10318 # it will coredump.
10319 lt_prog_compiler_pic='-fPIC -shared'
10323 if test -d /usr/nec; then
10324 lt_prog_compiler_pic=-Kconform_pic
10329 lt_prog_compiler_pic='-fPIC'
10333 case $cc_basename in
10334 nvcc*) # Cuda Compiler Driver 2.2
10335 lt_prog_compiler_wl='-Xlinker '
10336 if test -n "$lt_prog_compiler_pic"; then
10337 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
10342 # PORTME Check for flag to pass linker flags through the system compiler.
10345 lt_prog_compiler_wl='-Wl,'
10346 if test "$host_cpu" = ia64; then
10347 # AIX 5 now supports IA64 processor
10348 lt_prog_compiler_static='-Bstatic'
10350 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
10354 mingw* | cygwin* | pw32* | os2* | cegcc*)
10355 # This hack is so that the source file can tell whether it is being
10356 # built for inclusion in a dll (and should export symbols for example).
10357 lt_prog_compiler_pic='-DDLL_EXPORT'
10360 hpux9* | hpux10* | hpux11*)
10361 lt_prog_compiler_wl='-Wl,'
10362 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
10363 # not for PA HP-UX.
10369 lt_prog_compiler_pic='+Z'
10372 # Is there a better lt_prog_compiler_static that works with the bundled CC?
10373 lt_prog_compiler_static='${wl}-a ${wl}archive'
10376 irix5* | irix6* | nonstopux*)
10377 lt_prog_compiler_wl='-Wl,'
10378 # PIC (with -KPIC) is the default.
10379 lt_prog_compiler_static='-non_shared'
10382 linux* | k*bsd*-gnu | kopensolaris*-gnu)
10383 case $cc_basename in
10384 # old Intel for x86_64 which still supported -KPIC.
10386 lt_prog_compiler_wl='-Wl,'
10387 lt_prog_compiler_pic='-KPIC'
10388 lt_prog_compiler_static='-static'
10390 # icc used to be incompatible with GCC.
10391 # ICC 10 doesn't accept -KPIC any more.
10393 lt_prog_compiler_wl='-Wl,'
10394 lt_prog_compiler_pic='-fPIC'
10395 lt_prog_compiler_static='-static'
10397 # Lahey Fortran 8.1.
10399 lt_prog_compiler_wl='-Wl,'
10400 lt_prog_compiler_pic='--shared'
10401 lt_prog_compiler_static='--static'
10404 # NAG Fortran compiler
10405 lt_prog_compiler_wl='-Wl,-Wl,,'
10406 lt_prog_compiler_pic='-PIC'
10407 lt_prog_compiler_static='-Bstatic'
10409 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
10410 # Portland Group compilers (*not* the Pentium gcc compiler,
10411 # which looks to be a dead project)
10412 lt_prog_compiler_wl='-Wl,'
10413 lt_prog_compiler_pic='-fpic'
10414 lt_prog_compiler_static='-Bstatic'
10417 lt_prog_compiler_wl='-Wl,'
10418 # All Alpha code is PIC.
10419 lt_prog_compiler_static='-non_shared'
10421 xl* | bgxl* | bgf* | mpixl*)
10422 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
10423 lt_prog_compiler_wl='-Wl,'
10424 lt_prog_compiler_pic='-qpic'
10425 lt_prog_compiler_static='-qstaticlink'
10428 case `$CC -V 2>&1 | sed 5q` in
10429 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
10430 # Sun Fortran 8.3 passes all unrecognized flags to the linker
10431 lt_prog_compiler_pic='-KPIC'
10432 lt_prog_compiler_static='-Bstatic'
10433 lt_prog_compiler_wl=''
10435 *Sun\ F* | *Sun*Fortran*)
10436 lt_prog_compiler_pic='-KPIC'
10437 lt_prog_compiler_static='-Bstatic'
10438 lt_prog_compiler_wl='-Qoption ld '
10442 lt_prog_compiler_pic='-KPIC'
10443 lt_prog_compiler_static='-Bstatic'
10444 lt_prog_compiler_wl='-Wl,'
10446 *Intel*\ [CF]*Compiler*)
10447 lt_prog_compiler_wl='-Wl,'
10448 lt_prog_compiler_pic='-fPIC'
10449 lt_prog_compiler_static='-static'
10452 lt_prog_compiler_wl='-Wl,'
10453 lt_prog_compiler_pic='-fpic'
10454 lt_prog_compiler_static='-Bstatic'
10462 lt_prog_compiler_pic='-KPIC'
10463 lt_prog_compiler_static='-Bstatic'
10467 # QNX uses GNU C++, but need to define -shared option too, otherwise
10468 # it will coredump.
10469 lt_prog_compiler_pic='-fPIC -shared'
10472 osf3* | osf4* | osf5*)
10473 lt_prog_compiler_wl='-Wl,'
10474 # All OSF/1 code is PIC.
10475 lt_prog_compiler_static='-non_shared'
10479 lt_prog_compiler_static='-non_shared'
10483 lt_prog_compiler_pic='-KPIC'
10484 lt_prog_compiler_static='-Bstatic'
10485 case $cc_basename in
10486 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
10487 lt_prog_compiler_wl='-Qoption ld ';;
10489 lt_prog_compiler_wl='-Wl,';;
10494 lt_prog_compiler_wl='-Qoption ld '
10495 lt_prog_compiler_pic='-PIC'
10496 lt_prog_compiler_static='-Bstatic'
10499 sysv4 | sysv4.2uw2* | sysv4.3*)
10500 lt_prog_compiler_wl='-Wl,'
10501 lt_prog_compiler_pic='-KPIC'
10502 lt_prog_compiler_static='-Bstatic'
10506 if test -d /usr/nec ;then
10507 lt_prog_compiler_pic='-Kconform_pic'
10508 lt_prog_compiler_static='-Bstatic'
10512 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
10513 lt_prog_compiler_wl='-Wl,'
10514 lt_prog_compiler_pic='-KPIC'
10515 lt_prog_compiler_static='-Bstatic'
10519 lt_prog_compiler_wl='-Wl,'
10520 lt_prog_compiler_can_build_shared=no
10524 lt_prog_compiler_pic='-pic'
10525 lt_prog_compiler_static='-Bstatic'
10529 lt_prog_compiler_can_build_shared=no
10535 # For platforms which do not support PIC, -DPIC is meaningless:
10537 lt_prog_compiler_pic=
10540 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
10544 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
10545 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
10546 if ${lt_cv_prog_compiler_pic+:} false; then :
10547 $as_echo_n "(cached) " >&6
10549 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
10551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
10552 $as_echo "$lt_cv_prog_compiler_pic" >&6; }
10553 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
10556 # Check to make sure the PIC flag actually works.
10558 if test -n "$lt_prog_compiler_pic"; then
10559 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
10560 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
10561 if ${lt_cv_prog_compiler_pic_works+:} false; then :
10562 $as_echo_n "(cached) " >&6
10564 lt_cv_prog_compiler_pic_works=no
10565 ac_outfile=conftest.$ac_objext
10566 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10567 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
10568 # Insert the option either (1) after the last *FLAGS variable, or
10569 # (2) before a word containing "conftest.", or (3) at the end.
10570 # Note that $ac_compile itself does not contain backslashes and begins
10571 # with a dollar sign (not a hyphen), so the echo should work correctly.
10572 # The option is referenced via a variable to avoid confusing sed.
10573 lt_compile=`echo "$ac_compile" | $SED \
10574 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10575 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10576 -e 's:$: $lt_compiler_flag:'`
10577 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10578 (eval "$lt_compile" 2>conftest.err)
10580 cat conftest.err >&5
10581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10582 if (exit $ac_status) && test -s "$ac_outfile"; then
10583 # The compiler can only warn and ignore the option if not recognized
10584 # So say no if there are warnings other than the usual output.
10585 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
10586 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10587 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
10588 lt_cv_prog_compiler_pic_works=yes
10594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
10595 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
10597 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
10598 case $lt_prog_compiler_pic in
10600 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
10603 lt_prog_compiler_pic=
10604 lt_prog_compiler_can_build_shared=no
10620 # Check to make sure the static flag actually works.
10622 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
10623 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
10624 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
10625 if ${lt_cv_prog_compiler_static_works+:} false; then :
10626 $as_echo_n "(cached) " >&6
10628 lt_cv_prog_compiler_static_works=no
10629 save_LDFLAGS="$LDFLAGS"
10630 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
10631 echo "$lt_simple_link_test_code" > conftest.$ac_ext
10632 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10633 # The linker can only warn and ignore the option if not recognized
10634 # So say no if there are warnings
10635 if test -s conftest.err; then
10636 # Append any errors to the config.log.
10637 cat conftest.err 1>&5
10638 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
10639 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10640 if diff conftest.exp conftest.er2 >/dev/null; then
10641 lt_cv_prog_compiler_static_works=yes
10644 lt_cv_prog_compiler_static_works=yes
10648 LDFLAGS="$save_LDFLAGS"
10651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
10652 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
10654 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
10657 lt_prog_compiler_static=
10666 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
10667 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
10668 if ${lt_cv_prog_compiler_c_o+:} false; then :
10669 $as_echo_n "(cached) " >&6
10671 lt_cv_prog_compiler_c_o=no
10672 $RM -r conftest 2>/dev/null
10676 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10678 lt_compiler_flag="-o out/conftest2.$ac_objext"
10679 # Insert the option either (1) after the last *FLAGS variable, or
10680 # (2) before a word containing "conftest.", or (3) at the end.
10681 # Note that $ac_compile itself does not contain backslashes and begins
10682 # with a dollar sign (not a hyphen), so the echo should work correctly.
10683 lt_compile=`echo "$ac_compile" | $SED \
10684 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10685 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10686 -e 's:$: $lt_compiler_flag:'`
10687 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10688 (eval "$lt_compile" 2>out/conftest.err)
10690 cat out/conftest.err >&5
10691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10692 if (exit $ac_status) && test -s out/conftest2.$ac_objext
10694 # The compiler can only warn and ignore the option if not recognized
10695 # So say no if there are warnings
10696 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
10697 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
10698 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
10699 lt_cv_prog_compiler_c_o=yes
10704 # SGI C++ compiler will create directory out/ii_files/ for
10705 # template instantiation
10706 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
10707 $RM out/* && rmdir out
10713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
10714 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
10721 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
10722 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
10723 if ${lt_cv_prog_compiler_c_o+:} false; then :
10724 $as_echo_n "(cached) " >&6
10726 lt_cv_prog_compiler_c_o=no
10727 $RM -r conftest 2>/dev/null
10731 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10733 lt_compiler_flag="-o out/conftest2.$ac_objext"
10734 # Insert the option either (1) after the last *FLAGS variable, or
10735 # (2) before a word containing "conftest.", or (3) at the end.
10736 # Note that $ac_compile itself does not contain backslashes and begins
10737 # with a dollar sign (not a hyphen), so the echo should work correctly.
10738 lt_compile=`echo "$ac_compile" | $SED \
10739 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10740 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10741 -e 's:$: $lt_compiler_flag:'`
10742 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10743 (eval "$lt_compile" 2>out/conftest.err)
10745 cat out/conftest.err >&5
10746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10747 if (exit $ac_status) && test -s out/conftest2.$ac_objext
10749 # The compiler can only warn and ignore the option if not recognized
10750 # So say no if there are warnings
10751 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
10752 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
10753 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
10754 lt_cv_prog_compiler_c_o=yes
10759 # SGI C++ compiler will create directory out/ii_files/ for
10760 # template instantiation
10761 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
10762 $RM out/* && rmdir out
10768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
10769 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
10774 hard_links="nottested"
10775 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
10776 # do not overwrite the value of need_locks provided by the user
10777 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
10778 $as_echo_n "checking if we can lock with hard links... " >&6; }
10781 ln conftest.a conftest.b 2>/dev/null && hard_links=no
10783 ln conftest.a conftest.b 2>&5 || hard_links=no
10784 ln conftest.a conftest.b 2>/dev/null && hard_links=no
10785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
10786 $as_echo "$hard_links" >&6; }
10787 if test "$hard_links" = no; then
10788 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
10789 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
10801 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
10802 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
10805 allow_undefined_flag=
10806 always_export_symbols=no
10808 archive_expsym_cmds=
10809 compiler_needs_object=no
10810 enable_shared_with_static_runtimes=no
10811 export_dynamic_flag_spec=
10812 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
10813 hardcode_automatic=no
10815 hardcode_direct_absolute=no
10816 hardcode_libdir_flag_spec=
10817 hardcode_libdir_separator=
10818 hardcode_minus_L=no
10819 hardcode_shlibpath_var=unsupported
10821 link_all_deplibs=unknown
10823 module_expsym_cmds=
10824 old_archive_from_new_cmds=
10825 old_archive_from_expsyms_cmds=
10826 thread_safe_flag_spec=
10827 whole_archive_flag_spec=
10828 # include_expsyms should be a list of space-separated symbols to be *always*
10829 # included in the symbol list
10831 # exclude_expsyms can be an extended regexp of symbols to exclude
10832 # it will be wrapped by ` (' and `)$', so one must not match beginning or
10833 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
10834 # as well as any symbol that contains `d'.
10835 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
10836 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
10837 # platforms (ab)use it in PIC code, but their linkers get confused if
10838 # the symbol is explicitly referenced. Since portable code cannot
10839 # rely on this symbol name, it's probably fine to never include it in
10840 # preloaded symbol tables.
10841 # Exclude shared library initialization/finalization symbols.
10842 extract_expsyms_cmds=
10845 cygwin* | mingw* | pw32* | cegcc*)
10846 # FIXME: the MSVC++ port hasn't been tested in a loooong time
10847 # When not using gcc, we currently assume that we are using
10848 # Microsoft Visual C++.
10849 if test "$GCC" != yes; then
10854 # we just hope/assume this is gcc and not c89 (= MSVC++)
10864 # On some targets, GNU ld is compatible enough with the native linker
10865 # that we're better off using the native interface for both.
10866 lt_use_gnu_ld_interface=no
10867 if test "$with_gnu_ld" = yes; then
10870 # The AIX port of GNU ld has always aspired to compatibility
10871 # with the native linker. However, as the warning in the GNU ld
10872 # block says, versions before 2.19.5* couldn't really create working
10873 # shared libraries, regardless of the interface used.
10874 case `$LD -v 2>&1` in
10875 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
10876 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
10877 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
10879 lt_use_gnu_ld_interface=yes
10884 lt_use_gnu_ld_interface=yes
10889 if test "$lt_use_gnu_ld_interface" = yes; then
10890 # If archive_cmds runs LD, not CC, wlarc should be empty
10893 # Set some defaults for GNU ld with shared library support. These
10894 # are reset later if shared libraries are not supported. Putting them
10895 # here allows them to be overridden if necessary.
10896 runpath_var=LD_RUN_PATH
10897 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10898 export_dynamic_flag_spec='${wl}--export-dynamic'
10899 # ancient GNU ld didn't support --whole-archive et. al.
10900 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
10901 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
10903 whole_archive_flag_spec=
10905 supports_anon_versioning=no
10906 case `$LD -v 2>&1` in
10907 *GNU\ gold*) supports_anon_versioning=yes ;;
10908 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
10909 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
10910 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
10911 *\ 2.11.*) ;; # other 2.11 versions
10912 *) supports_anon_versioning=yes ;;
10915 # See if GNU ld supports shared libraries.
10918 # On AIX/PPC, the GNU linker is very broken
10919 if test "$host_cpu" != ia64; then
10923 *** Warning: the GNU linker, at least up to release 2.19, is reported
10924 *** to be unable to reliably create shared libraries on AIX.
10925 *** Therefore, libtool is disabling shared libraries support. If you
10926 *** really care for shared libraries, you may want to install binutils
10927 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
10928 *** You will then need to restart the configuration process.
10937 # see comment about AmigaOS4 .so support
10938 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10939 archive_expsym_cmds=''
10942 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)'
10943 hardcode_libdir_flag_spec='-L$libdir'
10944 hardcode_minus_L=yes
10950 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10951 allow_undefined_flag=unsupported
10952 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
10953 # support --undefined. This deserves some investigation. FIXME
10954 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10960 cygwin* | mingw* | pw32* | cegcc*)
10961 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
10962 # as there is no search path for DLLs.
10963 hardcode_libdir_flag_spec='-L$libdir'
10964 export_dynamic_flag_spec='${wl}--export-all-symbols'
10965 allow_undefined_flag=unsupported
10966 always_export_symbols=no
10967 enable_shared_with_static_runtimes=yes
10968 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'
10969 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
10971 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
10972 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10973 # If the export-symbols file already is a .def file (1st line
10974 # is EXPORTS), use it as is; otherwise, prepend...
10975 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
10976 cp $export_symbols $output_objdir/$soname.def;
10978 echo EXPORTS > $output_objdir/$soname.def;
10979 cat $export_symbols >> $output_objdir/$soname.def;
10981 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10988 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10989 link_all_deplibs=yes
10994 hardcode_shlibpath_var=no
10995 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10996 export_dynamic_flag_spec='${wl}-E'
10997 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
10998 # Instead, shared libraries are loaded at an image base (0x10000000 by
10999 # default) and relocated if they conflict, which is a slow very memory
11000 # consuming and fragmenting process. To avoid this, we pick a random,
11001 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
11002 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
11003 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
11004 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'
11007 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
11009 if test "$host_os" = linux-dietlibc; then
11010 case $cc_basename in
11011 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
11014 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
11015 && test "$tmp_diet" = no
11017 tmp_addflag=' $pic_flag'
11018 tmp_sharedflag='-shared'
11019 case $cc_basename,$host_cpu in
11020 pgcc*) # Portland Group C compiler
11021 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'
11022 tmp_addflag=' $pic_flag'
11024 pgf77* | pgf90* | pgf95* | pgfortran*)
11025 # Portland Group f77 and f90 compilers
11026 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'
11027 tmp_addflag=' $pic_flag -Mnomain' ;;
11028 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
11029 tmp_addflag=' -i_dynamic' ;;
11030 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
11031 tmp_addflag=' -i_dynamic -nofor_main' ;;
11032 ifc* | ifort*) # Intel Fortran compiler
11033 tmp_addflag=' -nofor_main' ;;
11034 lf95*) # Lahey Fortran 8.1
11035 whole_archive_flag_spec=
11036 tmp_sharedflag='--shared' ;;
11037 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
11038 tmp_sharedflag='-qmkshrobj'
11040 nvcc*) # Cuda Compiler Driver 2.2
11041 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'
11042 compiler_needs_object=yes
11045 case `$CC -V 2>&1 | sed 5q` in
11046 *Sun\ C*) # Sun C 5.9
11047 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'
11048 compiler_needs_object=yes
11049 tmp_sharedflag='-G' ;;
11050 *Sun\ F*) # Sun Fortran 8.3
11051 tmp_sharedflag='-G' ;;
11053 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11055 if test "x$supports_anon_versioning" = xyes; then
11056 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
11057 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
11058 echo "local: *; };" >> $output_objdir/$libname.ver~
11059 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
11062 case $cc_basename in
11063 xlf* | bgf* | bgxlf* | mpixlf*)
11064 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
11065 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
11066 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11067 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
11068 if test "x$supports_anon_versioning" = xyes; then
11069 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
11070 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
11071 echo "local: *; };" >> $output_objdir/$libname.ver~
11072 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
11082 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11083 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
11086 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11087 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
11092 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
11096 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
11097 *** create shared libraries on Solaris systems. Therefore, libtool
11098 *** is disabling shared libraries support. We urge you to upgrade GNU
11099 *** binutils to release 2.9.1 or newer. Another option is to modify
11100 *** your PATH or compiler configuration so that the native linker is
11101 *** used, and then restart.
11104 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
11105 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11106 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
11112 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
11113 case `$LD -v 2>&1` in
11114 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
11118 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
11119 *** reliably create shared libraries on SCO systems. Therefore, libtool
11120 *** is disabling shared libraries support. We urge you to upgrade GNU
11121 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
11122 *** your PATH or compiler configuration so that the native linker is
11123 *** used, and then restart.
11128 # For security reasons, it is highly recommended that you always
11129 # use absolute paths for naming shared libraries, and exclude the
11130 # DT_RUNPATH tag from executables and libraries. But doing so
11131 # requires that you compile everything twice, which is a pain.
11132 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
11133 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11134 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11135 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
11144 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
11146 hardcode_direct=yes
11147 hardcode_shlibpath_var=no
11151 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
11152 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11153 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
11160 if test "$ld_shlibs" = no; then
11162 hardcode_libdir_flag_spec=
11163 export_dynamic_flag_spec=
11164 whole_archive_flag_spec=
11167 # PORTME fill in a description of your system's linker (not GNU ld)
11170 allow_undefined_flag=unsupported
11171 always_export_symbols=yes
11172 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'
11173 # Note: this linker hardcodes the directories in LIBPATH if there
11174 # are no directories specified by -L.
11175 hardcode_minus_L=yes
11176 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
11177 # Neither direct hardcoding nor static linking is supported with a
11179 hardcode_direct=unsupported
11184 if test "$host_cpu" = ia64; then
11185 # On IA64, the linker does run time linking by default, so we don't
11186 # have to do anything special.
11187 aix_use_runtimelinking=no
11188 exp_sym_flag='-Bexport'
11191 # If we're using GNU nm, then we don't want the "-C" option.
11192 # -C means demangle to AIX nm, but means don't demangle with GNU nm
11193 # Also, AIX nm treats weak defined symbols like other global
11194 # defined symbols, whereas GNU nm marks them as "W".
11195 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
11196 export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
11198 export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
11200 aix_use_runtimelinking=no
11202 # Test if we are trying to use run time linking or normal
11203 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
11204 # need to do runtime linking.
11205 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
11206 for ld_flag in $LDFLAGS; do
11207 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
11208 aix_use_runtimelinking=yes
11215 exp_sym_flag='-bexport'
11216 no_entry_flag='-bnoentry'
11219 # When large executables or shared objects are built, AIX ld can
11220 # have problems creating the table of contents. If linking a library
11221 # or program results in "error TOC overflow" add -mminimal-toc to
11222 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
11223 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
11226 hardcode_direct=yes
11227 hardcode_direct_absolute=yes
11228 hardcode_libdir_separator=':'
11229 link_all_deplibs=yes
11230 file_list_spec='${wl}-f,'
11232 if test "$GCC" = yes; then
11233 case $host_os in aix4.[012]|aix4.[012].*)
11234 # We only want to do this on AIX 4.2 and lower, the check
11235 # below for broken collect2 doesn't work under 4.3+
11236 collect2name=`${CC} -print-prog-name=collect2`
11237 if test -f "$collect2name" &&
11238 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
11240 # We have reworked collect2
11243 # We have old collect2
11244 hardcode_direct=unsupported
11245 # It fails to find uninstalled libraries when the uninstalled
11246 # path is not listed in the libpath. Setting hardcode_minus_L
11247 # to unsupported forces relinking
11248 hardcode_minus_L=yes
11249 hardcode_libdir_flag_spec='-L$libdir'
11250 hardcode_libdir_separator=
11254 shared_flag='-shared'
11255 if test "$aix_use_runtimelinking" = yes; then
11256 shared_flag="$shared_flag "'${wl}-G'
11260 if test "$host_cpu" = ia64; then
11261 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
11262 # chokes on -Wl,-G. The following line is correct:
11265 if test "$aix_use_runtimelinking" = yes; then
11266 shared_flag='${wl}-G'
11268 shared_flag='${wl}-bM:SRE'
11273 export_dynamic_flag_spec='${wl}-bexpall'
11274 # It seems that -bexpall does not export symbols beginning with
11275 # underscore (_), so it is better to generate a list of symbols to export.
11276 always_export_symbols=yes
11277 if test "$aix_use_runtimelinking" = yes; then
11278 # Warning - without using the other runtime loading flags (-brtl),
11279 # -berok will link without error, but may produce a broken library.
11280 allow_undefined_flag='-berok'
11281 # Determine the default libpath from the value encoded in an
11282 # empty executable.
11283 if test "${lt_cv_aix_libpath+set}" = set; then
11284 aix_libpath=$lt_cv_aix_libpath
11286 if ${lt_cv_aix_libpath_+:} false; then :
11287 $as_echo_n "(cached) " >&6
11289 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11290 /* end confdefs.h. */
11300 if ac_fn_c_try_link "$LINENO"; then :
11302 lt_aix_libpath_sed='
11303 /Import File Strings/,/^$/ {
11305 s/^0 *\([^ ]*\) *$/\1/
11309 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11310 # Check for a 64-bit object if we didn't find anything.
11311 if test -z "$lt_cv_aix_libpath_"; then
11312 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11315 rm -f core conftest.err conftest.$ac_objext \
11316 conftest$ac_exeext conftest.$ac_ext
11317 if test -z "$lt_cv_aix_libpath_"; then
11318 lt_cv_aix_libpath_="/usr/lib:/lib"
11323 aix_libpath=$lt_cv_aix_libpath_
11326 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
11327 archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
11329 if test "$host_cpu" = ia64; then
11330 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
11331 allow_undefined_flag="-z nodefs"
11332 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"
11334 # Determine the default libpath from the value encoded in an
11335 # empty executable.
11336 if test "${lt_cv_aix_libpath+set}" = set; then
11337 aix_libpath=$lt_cv_aix_libpath
11339 if ${lt_cv_aix_libpath_+:} false; then :
11340 $as_echo_n "(cached) " >&6
11342 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11343 /* end confdefs.h. */
11353 if ac_fn_c_try_link "$LINENO"; then :
11355 lt_aix_libpath_sed='
11356 /Import File Strings/,/^$/ {
11358 s/^0 *\([^ ]*\) *$/\1/
11362 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11363 # Check for a 64-bit object if we didn't find anything.
11364 if test -z "$lt_cv_aix_libpath_"; then
11365 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11368 rm -f core conftest.err conftest.$ac_objext \
11369 conftest$ac_exeext conftest.$ac_ext
11370 if test -z "$lt_cv_aix_libpath_"; then
11371 lt_cv_aix_libpath_="/usr/lib:/lib"
11376 aix_libpath=$lt_cv_aix_libpath_
11379 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
11380 # Warning - without using the other run time loading flags,
11381 # -berok will link without error, but may produce a broken library.
11382 no_undefined_flag=' ${wl}-bernotok'
11383 allow_undefined_flag=' ${wl}-berok'
11384 if test "$with_gnu_ld" = yes; then
11385 # We only use this code for GNU lds that support --whole-archive.
11386 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
11388 # Exported symbols can be pulled into shared objects from archives
11389 whole_archive_flag_spec='$convenience'
11391 archive_cmds_need_lc=yes
11392 # This is similar to how AIX traditionally builds its shared libraries.
11393 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
11401 # see comment about AmigaOS4 .so support
11402 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11403 archive_expsym_cmds=''
11406 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)'
11407 hardcode_libdir_flag_spec='-L$libdir'
11408 hardcode_minus_L=yes
11414 export_dynamic_flag_spec=-rdynamic
11417 cygwin* | mingw* | pw32* | cegcc*)
11418 # When not using gcc, we currently assume that we are using
11419 # Microsoft Visual C++.
11420 # hardcode_libdir_flag_spec is actually meaningless, as there is
11421 # no search path for DLLs.
11422 case $cc_basename in
11425 hardcode_libdir_flag_spec=' '
11426 allow_undefined_flag=unsupported
11427 always_export_symbols=yes
11429 # Tell ltmain to make .lib files, not .a files.
11431 # Tell ltmain to make .dll files, not .so files.
11433 # FIXME: Setting linknames here is a bad hack.
11434 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
11435 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
11436 sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
11438 sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
11440 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
11442 # The linker will not automatically build a static lib if we build a DLL.
11443 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
11444 enable_shared_with_static_runtimes=yes
11445 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
11446 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
11448 old_postinstall_cmds='chmod 644 $oldlib'
11449 postlink_cmds='lt_outputfile="@OUTPUT@"~
11450 lt_tool_outputfile="@TOOL_OUTPUT@"~
11451 case $lt_outputfile in
11454 lt_outputfile="$lt_outputfile.exe"
11455 lt_tool_outputfile="$lt_tool_outputfile.exe"
11458 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
11459 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
11460 $RM "$lt_outputfile.manifest";
11464 # Assume MSVC wrapper
11465 hardcode_libdir_flag_spec=' '
11466 allow_undefined_flag=unsupported
11467 # Tell ltmain to make .lib files, not .a files.
11469 # Tell ltmain to make .dll files, not .so files.
11471 # FIXME: Setting linknames here is a bad hack.
11472 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
11473 # The linker will automatically build a .lib file if we build a DLL.
11474 old_archive_from_new_cmds='true'
11475 # FIXME: Should let the user specify the lib program.
11476 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
11477 enable_shared_with_static_runtimes=yes
11482 darwin* | rhapsody*)
11485 archive_cmds_need_lc=no
11487 hardcode_automatic=yes
11488 hardcode_shlibpath_var=unsupported
11489 if test "$lt_cv_ld_force_load" = "yes"; then
11490 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\"`'
11493 whole_archive_flag_spec=''
11495 link_all_deplibs=yes
11496 allow_undefined_flag="$_lt_dar_allow_undefined"
11497 case $cc_basename in
11498 ifort*) _lt_dar_can_shared=yes ;;
11499 *) _lt_dar_can_shared=$GCC ;;
11501 if test "$_lt_dar_can_shared" = "yes"; then
11502 output_verbose_link_cmd=func_echo_all
11503 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
11504 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
11505 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}"
11506 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}"
11515 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11516 hardcode_libdir_flag_spec='-L$libdir'
11517 hardcode_shlibpath_var=no
11520 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
11521 # support. Future versions do this automatically, but an explicit c++rt0.o
11522 # does not break anything, and helps significantly (at the cost of a little
11525 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
11526 hardcode_libdir_flag_spec='-R$libdir'
11527 hardcode_direct=yes
11528 hardcode_shlibpath_var=no
11531 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
11533 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
11534 hardcode_direct=yes
11535 hardcode_minus_L=yes
11536 hardcode_shlibpath_var=no
11539 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
11540 freebsd* | dragonfly*)
11541 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11542 hardcode_libdir_flag_spec='-R$libdir'
11543 hardcode_direct=yes
11544 hardcode_shlibpath_var=no
11548 if test "$GCC" = yes; then
11549 archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
11551 archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
11553 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
11554 hardcode_libdir_separator=:
11555 hardcode_direct=yes
11557 # hardcode_minus_L: Not really in the search PATH,
11558 # but as the default location of the library.
11559 hardcode_minus_L=yes
11560 export_dynamic_flag_spec='${wl}-E'
11564 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
11565 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11567 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
11569 if test "$with_gnu_ld" = no; then
11570 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
11571 hardcode_libdir_separator=:
11572 hardcode_direct=yes
11573 hardcode_direct_absolute=yes
11574 export_dynamic_flag_spec='${wl}-E'
11575 # hardcode_minus_L: Not really in the search PATH,
11576 # but as the default location of the library.
11577 hardcode_minus_L=yes
11582 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
11585 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
11588 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
11591 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11597 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
11600 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
11604 # Older versions of the 11.00 compiler do not understand -b yet
11605 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
11606 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
11607 $as_echo_n "checking if $CC understands -b... " >&6; }
11608 if ${lt_cv_prog_compiler__b+:} false; then :
11609 $as_echo_n "(cached) " >&6
11611 lt_cv_prog_compiler__b=no
11612 save_LDFLAGS="$LDFLAGS"
11613 LDFLAGS="$LDFLAGS -b"
11614 echo "$lt_simple_link_test_code" > conftest.$ac_ext
11615 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
11616 # The linker can only warn and ignore the option if not recognized
11617 # So say no if there are warnings
11618 if test -s conftest.err; then
11619 # Append any errors to the config.log.
11620 cat conftest.err 1>&5
11621 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
11622 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11623 if diff conftest.exp conftest.er2 >/dev/null; then
11624 lt_cv_prog_compiler__b=yes
11627 lt_cv_prog_compiler__b=yes
11631 LDFLAGS="$save_LDFLAGS"
11634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
11635 $as_echo "$lt_cv_prog_compiler__b" >&6; }
11637 if test x"$lt_cv_prog_compiler__b" = xyes; then
11638 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11640 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
11646 if test "$with_gnu_ld" = no; then
11647 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
11648 hardcode_libdir_separator=:
11653 hardcode_shlibpath_var=no
11656 hardcode_direct=yes
11657 hardcode_direct_absolute=yes
11658 export_dynamic_flag_spec='${wl}-E'
11660 # hardcode_minus_L: Not really in the search PATH,
11661 # but as the default location of the library.
11662 hardcode_minus_L=yes
11668 irix5* | irix6* | nonstopux*)
11669 if test "$GCC" = yes; then
11670 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'
11671 # Try to use the -exported_symbol ld option, if it does not
11672 # work, assume that -exports_file does not work either and
11673 # implicitly export all symbols.
11674 # This should be the same for all languages, so no per-tag cache variable.
11675 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
11676 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
11677 if ${lt_cv_irix_exported_symbol+:} false; then :
11678 $as_echo_n "(cached) " >&6
11680 save_LDFLAGS="$LDFLAGS"
11681 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
11682 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11683 /* end confdefs.h. */
11684 int foo (void) { return 0; }
11686 if ac_fn_c_try_link "$LINENO"; then :
11687 lt_cv_irix_exported_symbol=yes
11689 lt_cv_irix_exported_symbol=no
11691 rm -f core conftest.err conftest.$ac_objext \
11692 conftest$ac_exeext conftest.$ac_ext
11693 LDFLAGS="$save_LDFLAGS"
11695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
11696 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
11697 if test "$lt_cv_irix_exported_symbol" = yes; then
11698 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'
11701 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'
11702 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'
11704 archive_cmds_need_lc='no'
11705 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11706 hardcode_libdir_separator=:
11708 link_all_deplibs=yes
11712 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11713 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
11715 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
11717 hardcode_libdir_flag_spec='-R$libdir'
11718 hardcode_direct=yes
11719 hardcode_shlibpath_var=no
11723 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11724 hardcode_direct=yes
11725 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11726 hardcode_libdir_separator=:
11727 hardcode_shlibpath_var=no
11734 if test -f /usr/libexec/ld.so; then
11735 hardcode_direct=yes
11736 hardcode_shlibpath_var=no
11737 hardcode_direct_absolute=yes
11738 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11739 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11740 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
11741 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
11742 export_dynamic_flag_spec='${wl}-E'
11745 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
11746 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
11747 hardcode_libdir_flag_spec='-R$libdir'
11750 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11751 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
11761 hardcode_libdir_flag_spec='-L$libdir'
11762 hardcode_minus_L=yes
11763 allow_undefined_flag=unsupported
11764 archive_cmds='$ECHO "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~echo DATA >> $output_objdir/$libname.def~echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
11765 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
11769 if test "$GCC" = yes; then
11770 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
11771 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'
11773 allow_undefined_flag=' -expect_unresolved \*'
11774 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'
11776 archive_cmds_need_lc='no'
11777 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11778 hardcode_libdir_separator=:
11781 osf4* | osf5*) # as osf3* with the addition of -msym flag
11782 if test "$GCC" = yes; then
11783 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
11784 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'
11785 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11787 allow_undefined_flag=' -expect_unresolved \*'
11788 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'
11789 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~
11790 $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'
11792 # Both c and cxx compiler support -rpath directly
11793 hardcode_libdir_flag_spec='-rpath $libdir'
11795 archive_cmds_need_lc='no'
11796 hardcode_libdir_separator=:
11800 no_undefined_flag=' -z defs'
11801 if test "$GCC" = yes; then
11803 archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
11804 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11805 $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'
11807 case `$CC -V 2>&1` in
11810 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
11811 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11812 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
11816 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
11817 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11818 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
11822 hardcode_libdir_flag_spec='-R$libdir'
11823 hardcode_shlibpath_var=no
11825 solaris2.[0-5] | solaris2.[0-5].*) ;;
11827 # The compiler driver will combine and reorder linker options,
11828 # but understands `-z linker_flag'. GCC discards it without `$wl',
11829 # but is careful enough not to reorder.
11830 # Supported since Solaris 2.6 (maybe 2.5.1?)
11831 if test "$GCC" = yes; then
11832 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
11834 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
11838 link_all_deplibs=yes
11842 if test "x$host_vendor" = xsequent; then
11843 # Use $CC to link under sequent, because it throws in some extra .o
11844 # files that make .init and .fini sections work.
11845 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
11847 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
11849 hardcode_libdir_flag_spec='-L$libdir'
11850 hardcode_direct=yes
11851 hardcode_minus_L=yes
11852 hardcode_shlibpath_var=no
11856 case $host_vendor in
11858 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11859 hardcode_direct=yes # is this really true???
11862 ## LD is ld it makes a PLAMLIB
11863 ## CC just makes a GrossModule.
11864 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
11865 reload_cmds='$CC -r -o $output$reload_objs'
11869 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11870 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
11873 runpath_var='LD_RUN_PATH'
11874 hardcode_shlibpath_var=no
11878 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11879 hardcode_shlibpath_var=no
11880 export_dynamic_flag_spec='-Bexport'
11884 if test -d /usr/nec; then
11885 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11886 hardcode_shlibpath_var=no
11887 runpath_var=LD_RUN_PATH
11888 hardcode_runpath_var=yes
11893 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
11894 no_undefined_flag='${wl}-z,text'
11895 archive_cmds_need_lc=no
11896 hardcode_shlibpath_var=no
11897 runpath_var='LD_RUN_PATH'
11899 if test "$GCC" = yes; then
11900 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11901 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11903 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11904 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11908 sysv5* | sco3.2v5* | sco5v6*)
11909 # Note: We can NOT use -z defs as we might desire, because we do not
11910 # link with -lc, and that would cause any symbols used from libc to
11911 # always be unresolved, which means just about no library would
11912 # ever link correctly. If we're not using GNU ld we use -z text
11913 # though, which does catch some bad symbols but isn't as heavy-handed
11915 no_undefined_flag='${wl}-z,text'
11916 allow_undefined_flag='${wl}-z,nodefs'
11917 archive_cmds_need_lc=no
11918 hardcode_shlibpath_var=no
11919 hardcode_libdir_flag_spec='${wl}-R,$libdir'
11920 hardcode_libdir_separator=':'
11921 link_all_deplibs=yes
11922 export_dynamic_flag_spec='${wl}-Bexport'
11923 runpath_var='LD_RUN_PATH'
11925 if test "$GCC" = yes; then
11926 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11927 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11929 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11930 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11935 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11936 hardcode_libdir_flag_spec='-L$libdir'
11937 hardcode_shlibpath_var=no
11945 if test x$host_vendor = xsni; then
11947 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
11948 export_dynamic_flag_spec='${wl}-Blargedynsym'
11954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
11955 $as_echo "$ld_shlibs" >&6; }
11956 test "$ld_shlibs" = no && can_build_shared=no
11958 with_gnu_ld=$with_gnu_ld
11975 # Do we need to explicitly link libc?
11977 case "x$archive_cmds_need_lc" in
11979 # Assume -lc should be added
11980 archive_cmds_need_lc=yes
11982 if test "$enable_shared" = yes && test "$GCC" = yes; then
11983 case $archive_cmds in
11985 # FIXME: we may have to deal with multi-command sequences.
11988 # Test whether the compiler implicitly links with -lc since on some
11989 # systems, -lgcc has to come before -lc. If gcc already passes -lc
11990 # to ld, don't add -lc before -lgcc.
11991 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
11992 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
11993 if ${lt_cv_archive_cmds_need_lc+:} false; then :
11994 $as_echo_n "(cached) " >&6
11997 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11999 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12000 (eval $ac_compile) 2>&5
12002 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12003 test $ac_status = 0; } 2>conftest.err; then
12006 libobjs=conftest.$ac_objext
12008 wl=$lt_prog_compiler_wl
12009 pic_flag=$lt_prog_compiler_pic
12015 lt_save_allow_undefined_flag=$allow_undefined_flag
12016 allow_undefined_flag=
12017 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
12018 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
12020 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12021 test $ac_status = 0; }
12023 lt_cv_archive_cmds_need_lc=no
12025 lt_cv_archive_cmds_need_lc=yes
12027 allow_undefined_flag=$lt_save_allow_undefined_flag
12029 cat conftest.err 1>&5
12034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
12035 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
12036 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
12194 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
12195 $as_echo_n "checking dynamic linker characteristics... " >&6; }
12197 if test "$GCC" = yes; then
12199 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
12200 *) lt_awk_arg="/^libraries:/" ;;
12203 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
12204 *) lt_sed_strip_eq="s,=/,/,g" ;;
12206 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
12207 case $lt_search_path_spec in
12209 # if the path contains ";" then we assume it to be the separator
12210 # otherwise default to the standard path separator (i.e. ":") - it is
12211 # assumed that no part of a normal pathname contains ";" but that should
12212 # okay in the real world where ";" in dirpaths is itself problematic.
12213 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
12216 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
12219 # Ok, now we have the path, separated by spaces, we can step through it
12220 # and add multilib dir if necessary.
12221 lt_tmp_lt_search_path_spec=
12222 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
12223 for lt_sys_path in $lt_search_path_spec; do
12224 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
12225 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
12227 test -d "$lt_sys_path" && \
12228 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
12231 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
12232 BEGIN {RS=" "; FS="/|\n";} {
12235 for (lt_i = NF; lt_i > 0; lt_i--) {
12236 if ($lt_i != "" && $lt_i != ".") {
12237 if ($lt_i == "..") {
12240 if (lt_count == 0) {
12241 lt_foo="/" $lt_i lt_foo;
12248 if (lt_foo != "") { lt_freq[lt_foo]++; }
12249 if (lt_freq[lt_foo] == 1) { print lt_foo; }
12251 # AWK program above erroneously prepends '/' to C:/dos/paths
12254 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
12255 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
12257 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
12259 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
12261 library_names_spec=
12262 libname_spec='lib$name'
12266 postuninstall_cmds=
12270 shlibpath_overrides_runpath=unknown
12272 dynamic_linker="$host_os ld.so"
12273 sys_lib_dlsearch_path_spec="/lib /usr/lib"
12274 need_lib_prefix=unknown
12275 hardcode_into_libs=no
12277 # when you set need_version to no, make sure it does not cause -set_version
12278 # flags to be left without arguments
12279 need_version=unknown
12283 version_type=linux # correct to gnu/linux during the next big refactor
12284 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
12285 shlibpath_var=LIBPATH
12287 # AIX 3 has no versioning support, so we append a major version to the name.
12288 soname_spec='${libname}${release}${shared_ext}$major'
12292 version_type=linux # correct to gnu/linux during the next big refactor
12295 hardcode_into_libs=yes
12296 if test "$host_cpu" = ia64; then
12297 # AIX 5 supports IA64
12298 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
12299 shlibpath_var=LD_LIBRARY_PATH
12301 # With GCC up to 2.95.x, collect2 would create an import file
12302 # for dependence libraries. The import file would start with
12303 # the line `#! .'. This would cause the generated library to
12304 # depend on `.', always an invalid library. This was fixed in
12305 # development snapshots of GCC prior to 3.0.
12307 aix4 | aix4.[01] | aix4.[01].*)
12308 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
12310 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
12313 can_build_shared=no
12317 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
12318 # soname into executable. Probably we can add versioning support to
12319 # collect2, so additional links can be useful in future.
12320 if test "$aix_use_runtimelinking" = yes; then
12321 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
12322 # instead of lib<name>.a to let people know that these are not
12323 # typical AIX shared libraries.
12324 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12326 # We preserve .a as extension for shared libraries through AIX4.2
12327 # and later when we are not doing run time linking.
12328 library_names_spec='${libname}${release}.a $libname.a'
12329 soname_spec='${libname}${release}${shared_ext}$major'
12331 shlibpath_var=LIBPATH
12338 # Since July 2007 AmigaOS4 officially supports .so libraries.
12339 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
12340 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12343 library_names_spec='$libname.ixlibrary $libname.a'
12344 # Create ${libname}_ixlibrary.a entries in /sys/libs.
12345 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
12351 library_names_spec='${libname}${shared_ext}'
12352 dynamic_linker="$host_os ld.so"
12353 shlibpath_var=LIBRARY_PATH
12357 version_type=linux # correct to gnu/linux during the next big refactor
12359 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12360 soname_spec='${libname}${release}${shared_ext}$major'
12361 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
12362 shlibpath_var=LD_LIBRARY_PATH
12363 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
12364 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
12365 # the default ld.so.conf also contains /usr/contrib/lib and
12366 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
12367 # libtool to hard-code these into programs
12370 cygwin* | mingw* | pw32* | cegcc*)
12371 version_type=windows
12376 case $GCC,$cc_basename in
12379 library_names_spec='$libname.dll.a'
12380 # DLL is installed to $(libdir)/../bin by postinstall_cmds
12381 postinstall_cmds='base_file=`basename \${file}`~
12382 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
12383 dldir=$destdir/`dirname \$dlpath`~
12384 test -d \$dldir || mkdir -p \$dldir~
12385 $install_prog $dir/$dlname \$dldir/$dlname~
12386 chmod a+x \$dldir/$dlname~
12387 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
12388 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
12390 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
12391 dlpath=$dir/\$dldll~
12393 shlibpath_overrides_runpath=yes
12397 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
12398 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12400 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
12403 # MinGW DLLs use traditional 'lib' prefix
12404 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12407 # pw32 DLLs use 'pw' prefix rather than 'lib'
12408 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12411 dynamic_linker='Win32 ld.exe'
12416 libname_spec='$name'
12417 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12418 library_names_spec='${libname}.dll.lib'
12422 sys_lib_search_path_spec=
12425 for lt_path in $LIB
12428 # Let DOS variable expansion print the short 8.3 style file name.
12429 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
12430 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
12433 # Convert to MSYS style.
12434 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
12437 # Convert to unix form, then to dos form, then back to unix form
12438 # but this time dos style (no spaces!) so that the unix form looks
12439 # like /cygdrive/c/PROGRA~1:/cygdr...
12440 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
12441 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
12442 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
12445 sys_lib_search_path_spec="$LIB"
12446 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
12447 # It is most probably a Windows format PATH.
12448 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
12450 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
12452 # FIXME: find the short name or the path components, as spaces are
12453 # common. (e.g. "Program Files" -> "PROGRA~1")
12457 # DLL is installed to $(libdir)/../bin by postinstall_cmds
12458 postinstall_cmds='base_file=`basename \${file}`~
12459 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
12460 dldir=$destdir/`dirname \$dlpath`~
12461 test -d \$dldir || mkdir -p \$dldir~
12462 $install_prog $dir/$dlname \$dldir/$dlname'
12463 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
12464 dlpath=$dir/\$dldll~
12466 shlibpath_overrides_runpath=yes
12467 dynamic_linker='Win32 link.exe'
12471 # Assume MSVC wrapper
12472 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
12473 dynamic_linker='Win32 ld.exe'
12476 # FIXME: first we should search . and the directory the executable is in
12480 darwin* | rhapsody*)
12481 dynamic_linker="$host_os dyld"
12482 version_type=darwin
12485 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
12486 soname_spec='${libname}${release}${major}$shared_ext'
12487 shlibpath_overrides_runpath=yes
12488 shlibpath_var=DYLD_LIBRARY_PATH
12489 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
12491 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
12492 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
12496 version_type=linux # correct to gnu/linux during the next big refactor
12499 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
12500 soname_spec='${libname}${release}${shared_ext}$major'
12501 shlibpath_var=LD_LIBRARY_PATH
12504 freebsd* | dragonfly*)
12505 # DragonFly does not have aout. When/if they implement a new
12506 # versioning mechanism, adjust this.
12507 if test -x /usr/bin/objformat; then
12508 objformat=`/usr/bin/objformat`
12511 freebsd[23].*) objformat=aout ;;
12512 *) objformat=elf ;;
12515 version_type=freebsd-$objformat
12516 case $version_type in
12518 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
12523 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
12527 shlibpath_var=LD_LIBRARY_PATH
12530 shlibpath_overrides_runpath=yes
12532 freebsd3.[01]* | freebsdelf3.[01]*)
12533 shlibpath_overrides_runpath=yes
12534 hardcode_into_libs=yes
12536 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
12537 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
12538 shlibpath_overrides_runpath=no
12539 hardcode_into_libs=yes
12541 *) # from 4.6 on, and DragonFly
12542 shlibpath_overrides_runpath=yes
12543 hardcode_into_libs=yes
12549 version_type=linux # correct to gnu/linux during the next big refactor
12552 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
12553 soname_spec='${libname}${release}${shared_ext}$major'
12554 shlibpath_var=LD_LIBRARY_PATH
12555 shlibpath_overrides_runpath=no
12556 hardcode_into_libs=yes
12560 version_type=linux # correct to gnu/linux during the next big refactor
12563 dynamic_linker="$host_os runtime_loader"
12564 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
12565 soname_spec='${libname}${release}${shared_ext}$major'
12566 shlibpath_var=LIBRARY_PATH
12567 shlibpath_overrides_runpath=yes
12568 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
12569 hardcode_into_libs=yes
12572 hpux9* | hpux10* | hpux11*)
12573 # Give a soname corresponding to the major version so that dld.sl refuses to
12574 # link against other versions.
12581 hardcode_into_libs=yes
12582 dynamic_linker="$host_os dld.so"
12583 shlibpath_var=LD_LIBRARY_PATH
12584 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12585 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12586 soname_spec='${libname}${release}${shared_ext}$major'
12587 if test "X$HPUX_IA64_MODE" = X32; then
12588 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
12590 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
12592 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12596 hardcode_into_libs=yes
12597 dynamic_linker="$host_os dld.sl"
12598 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
12599 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12600 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12601 soname_spec='${libname}${release}${shared_ext}$major'
12602 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
12603 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12607 dynamic_linker="$host_os dld.sl"
12608 shlibpath_var=SHLIB_PATH
12609 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
12610 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12611 soname_spec='${libname}${release}${shared_ext}$major'
12614 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
12615 postinstall_cmds='chmod 555 $lib'
12616 # or fails outright, so override atomically:
12617 install_override_mode=555
12621 version_type=linux # correct to gnu/linux during the next big refactor
12624 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12625 soname_spec='${libname}${release}${shared_ext}$major'
12626 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
12627 shlibpath_var=LD_LIBRARY_PATH
12628 shlibpath_overrides_runpath=no
12629 hardcode_into_libs=yes
12632 irix5* | irix6* | nonstopux*)
12634 nonstopux*) version_type=nonstopux ;;
12636 if test "$lt_cv_prog_gnu_ld" = yes; then
12637 version_type=linux # correct to gnu/linux during the next big refactor
12644 soname_spec='${libname}${release}${shared_ext}$major'
12645 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
12647 irix5* | nonstopux*)
12648 libsuff= shlibsuff=
12651 case $LD in # libtool.m4 will add one of these switches to LD
12652 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
12653 libsuff= shlibsuff= libmagic=32-bit;;
12654 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
12655 libsuff=32 shlibsuff=N32 libmagic=N32;;
12656 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
12657 libsuff=64 shlibsuff=64 libmagic=64-bit;;
12658 *) libsuff= shlibsuff= libmagic=never-match;;
12662 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
12663 shlibpath_overrides_runpath=no
12664 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
12665 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
12666 hardcode_into_libs=yes
12669 # No shared lib support for Linux oldld, aout, or coff.
12670 linux*oldld* | linux*aout* | linux*coff*)
12674 # This must be glibc/ELF.
12675 linux* | k*bsd*-gnu | kopensolaris*-gnu)
12676 version_type=linux # correct to gnu/linux during the next big refactor
12679 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12680 soname_spec='${libname}${release}${shared_ext}$major'
12681 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
12682 shlibpath_var=LD_LIBRARY_PATH
12683 shlibpath_overrides_runpath=no
12685 # Some binutils ld are patched to set DT_RUNPATH
12686 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
12687 $as_echo_n "(cached) " >&6
12689 lt_cv_shlibpath_overrides_runpath=no
12690 save_LDFLAGS=$LDFLAGS
12691 save_libdir=$libdir
12692 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
12693 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
12694 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12695 /* end confdefs.h. */
12705 if ac_fn_c_try_link "$LINENO"; then :
12706 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
12707 lt_cv_shlibpath_overrides_runpath=yes
12710 rm -f core conftest.err conftest.$ac_objext \
12711 conftest$ac_exeext conftest.$ac_ext
12712 LDFLAGS=$save_LDFLAGS
12713 libdir=$save_libdir
12717 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
12719 # This implies no fast_install, which is unacceptable.
12720 # Some rework will be needed to allow for fast_install
12721 # before this can be enabled.
12722 hardcode_into_libs=yes
12724 # Append ld.so.conf contents to the search path
12725 if test -f /etc/ld.so.conf; then
12726 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' ' '`
12727 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
12730 # We used to test for /lib/ld.so.1 and disable shared libraries on
12731 # powerpc, because MkLinux only supported shared libraries with the
12732 # GNU dynamic linker. Since this was broken with cross compilers,
12733 # most powerpc-linux boxes support dynamic linking these days and
12734 # people can always --disable-shared, the test was removed, and we
12735 # assume the GNU/Linux dynamic linker is in use.
12736 dynamic_linker='GNU/Linux ld.so'
12743 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
12744 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12745 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12746 dynamic_linker='NetBSD (a.out) ld.so'
12748 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12749 soname_spec='${libname}${release}${shared_ext}$major'
12750 dynamic_linker='NetBSD ld.elf_so'
12752 shlibpath_var=LD_LIBRARY_PATH
12753 shlibpath_overrides_runpath=yes
12754 hardcode_into_libs=yes
12758 version_type=linux # correct to gnu/linux during the next big refactor
12759 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12760 shlibpath_var=LD_LIBRARY_PATH
12761 shlibpath_overrides_runpath=yes
12768 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12769 soname_spec='${libname}${release}${shared_ext}$major'
12770 shlibpath_var=LD_LIBRARY_PATH
12771 shlibpath_overrides_runpath=no
12772 hardcode_into_libs=yes
12773 dynamic_linker='ldqnx.so'
12778 sys_lib_dlsearch_path_spec="/usr/lib"
12780 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
12782 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
12783 *) need_version=no ;;
12785 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12786 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12787 shlibpath_var=LD_LIBRARY_PATH
12788 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12790 openbsd2.[89] | openbsd2.[89].*)
12791 shlibpath_overrides_runpath=no
12794 shlibpath_overrides_runpath=yes
12798 shlibpath_overrides_runpath=yes
12803 libname_spec='$name'
12806 library_names_spec='$libname${shared_ext} $libname.a'
12807 dynamic_linker='OS/2 ld.exe'
12808 shlibpath_var=LIBPATH
12811 osf3* | osf4* | osf5*)
12815 soname_spec='${libname}${release}${shared_ext}$major'
12816 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12817 shlibpath_var=LD_LIBRARY_PATH
12818 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
12819 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
12827 version_type=linux # correct to gnu/linux during the next big refactor
12830 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12831 soname_spec='${libname}${release}${shared_ext}$major'
12832 shlibpath_var=LD_LIBRARY_PATH
12833 shlibpath_overrides_runpath=yes
12834 hardcode_into_libs=yes
12835 # ldd complains unless libraries are executable
12836 postinstall_cmds='chmod +x $lib'
12841 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12842 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
12843 shlibpath_var=LD_LIBRARY_PATH
12844 shlibpath_overrides_runpath=yes
12845 if test "$with_gnu_ld" = yes; then
12852 version_type=linux # correct to gnu/linux during the next big refactor
12853 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12854 soname_spec='${libname}${release}${shared_ext}$major'
12855 shlibpath_var=LD_LIBRARY_PATH
12856 case $host_vendor in
12858 shlibpath_overrides_runpath=no
12860 runpath_var=LD_RUN_PATH
12868 shlibpath_overrides_runpath=no
12869 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
12875 if test -d /usr/nec ;then
12876 version_type=linux # correct to gnu/linux during the next big refactor
12877 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
12878 soname_spec='$libname${shared_ext}.$major'
12879 shlibpath_var=LD_LIBRARY_PATH
12883 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
12884 version_type=freebsd-elf
12887 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
12888 soname_spec='${libname}${release}${shared_ext}$major'
12889 shlibpath_var=LD_LIBRARY_PATH
12890 shlibpath_overrides_runpath=yes
12891 hardcode_into_libs=yes
12892 if test "$with_gnu_ld" = yes; then
12893 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
12895 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
12898 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
12902 sys_lib_dlsearch_path_spec='/usr/lib'
12906 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
12907 version_type=linux # correct to gnu/linux during the next big refactor
12910 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12911 shlibpath_var=LD_LIBRARY_PATH
12912 shlibpath_overrides_runpath=no
12913 hardcode_into_libs=yes
12917 version_type=linux # correct to gnu/linux during the next big refactor
12918 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12919 soname_spec='${libname}${release}${shared_ext}$major'
12920 shlibpath_var=LD_LIBRARY_PATH
12927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
12928 $as_echo "$dynamic_linker" >&6; }
12929 test "$dynamic_linker" = no && can_build_shared=no
12931 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
12932 if test "$GCC" = yes; then
12933 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
12936 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
12937 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
12939 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
12940 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
13034 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
13035 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
13037 if test -n "$hardcode_libdir_flag_spec" ||
13038 test -n "$runpath_var" ||
13039 test "X$hardcode_automatic" = "Xyes" ; then
13041 # We can hardcode non-existent directories.
13042 if test "$hardcode_direct" != no &&
13043 # If the only mechanism to avoid hardcoding is shlibpath_var, we
13044 # have to relink, otherwise we might link with an installed library
13045 # when we should be linking with a yet-to-be-installed one
13046 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
13047 test "$hardcode_minus_L" != no; then
13048 # Linking always hardcodes the temporary library directory.
13049 hardcode_action=relink
13051 # We can link without hardcoding, and we can hardcode nonexisting dirs.
13052 hardcode_action=immediate
13055 # We cannot hardcode anything, or else we can only hardcode existing
13057 hardcode_action=unsupported
13059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
13060 $as_echo "$hardcode_action" >&6; }
13062 if test "$hardcode_action" = relink ||
13063 test "$inherit_rpath" = yes; then
13064 # Fast installation is not supported
13065 enable_fast_install=no
13066 elif test "$shlibpath_overrides_runpath" = yes ||
13067 test "$enable_shared" = no; then
13068 # Fast installation is not necessary
13069 enable_fast_install=needless
13077 if test "x$enable_dlopen" != xyes; then
13078 enable_dlopen=unknown
13079 enable_dlopen_self=unknown
13080 enable_dlopen_self_static=unknown
13087 lt_cv_dlopen="load_add_on"
13089 lt_cv_dlopen_self=yes
13092 mingw* | pw32* | cegcc*)
13093 lt_cv_dlopen="LoadLibrary"
13098 lt_cv_dlopen="dlopen"
13103 # if libdl is installed we need to link against it
13104 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
13105 $as_echo_n "checking for dlopen in -ldl... " >&6; }
13106 if ${ac_cv_lib_dl_dlopen+:} false; then :
13107 $as_echo_n "(cached) " >&6
13109 ac_check_lib_save_LIBS=$LIBS
13111 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13112 /* end confdefs.h. */
13114 /* Override any GCC internal prototype to avoid an error.
13115 Use char because int might match the return type of a GCC
13116 builtin and then its argument prototype would still apply. */
13129 if ac_fn_c_try_link "$LINENO"; then :
13130 ac_cv_lib_dl_dlopen=yes
13132 ac_cv_lib_dl_dlopen=no
13134 rm -f core conftest.err conftest.$ac_objext \
13135 conftest$ac_exeext conftest.$ac_ext
13136 LIBS=$ac_check_lib_save_LIBS
13138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
13139 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
13140 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
13141 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
13144 lt_cv_dlopen="dyld"
13146 lt_cv_dlopen_self=yes
13153 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
13154 if test "x$ac_cv_func_shl_load" = xyes; then :
13155 lt_cv_dlopen="shl_load"
13157 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
13158 $as_echo_n "checking for shl_load in -ldld... " >&6; }
13159 if ${ac_cv_lib_dld_shl_load+:} false; then :
13160 $as_echo_n "(cached) " >&6
13162 ac_check_lib_save_LIBS=$LIBS
13164 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13165 /* end confdefs.h. */
13167 /* Override any GCC internal prototype to avoid an error.
13168 Use char because int might match the return type of a GCC
13169 builtin and then its argument prototype would still apply. */
13177 return shl_load ();
13182 if ac_fn_c_try_link "$LINENO"; then :
13183 ac_cv_lib_dld_shl_load=yes
13185 ac_cv_lib_dld_shl_load=no
13187 rm -f core conftest.err conftest.$ac_objext \
13188 conftest$ac_exeext conftest.$ac_ext
13189 LIBS=$ac_check_lib_save_LIBS
13191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
13192 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
13193 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
13194 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
13196 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
13197 if test "x$ac_cv_func_dlopen" = xyes; then :
13198 lt_cv_dlopen="dlopen"
13200 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
13201 $as_echo_n "checking for dlopen in -ldl... " >&6; }
13202 if ${ac_cv_lib_dl_dlopen+:} false; then :
13203 $as_echo_n "(cached) " >&6
13205 ac_check_lib_save_LIBS=$LIBS
13207 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13208 /* end confdefs.h. */
13210 /* Override any GCC internal prototype to avoid an error.
13211 Use char because int might match the return type of a GCC
13212 builtin and then its argument prototype would still apply. */
13225 if ac_fn_c_try_link "$LINENO"; then :
13226 ac_cv_lib_dl_dlopen=yes
13228 ac_cv_lib_dl_dlopen=no
13230 rm -f core conftest.err conftest.$ac_objext \
13231 conftest$ac_exeext conftest.$ac_ext
13232 LIBS=$ac_check_lib_save_LIBS
13234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
13235 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
13236 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
13237 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
13239 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
13240 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
13241 if ${ac_cv_lib_svld_dlopen+:} false; then :
13242 $as_echo_n "(cached) " >&6
13244 ac_check_lib_save_LIBS=$LIBS
13245 LIBS="-lsvld $LIBS"
13246 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13247 /* end confdefs.h. */
13249 /* Override any GCC internal prototype to avoid an error.
13250 Use char because int might match the return type of a GCC
13251 builtin and then its argument prototype would still apply. */
13264 if ac_fn_c_try_link "$LINENO"; then :
13265 ac_cv_lib_svld_dlopen=yes
13267 ac_cv_lib_svld_dlopen=no
13269 rm -f core conftest.err conftest.$ac_objext \
13270 conftest$ac_exeext conftest.$ac_ext
13271 LIBS=$ac_check_lib_save_LIBS
13273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
13274 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
13275 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
13276 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
13278 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
13279 $as_echo_n "checking for dld_link in -ldld... " >&6; }
13280 if ${ac_cv_lib_dld_dld_link+:} false; then :
13281 $as_echo_n "(cached) " >&6
13283 ac_check_lib_save_LIBS=$LIBS
13285 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13286 /* end confdefs.h. */
13288 /* Override any GCC internal prototype to avoid an error.
13289 Use char because int might match the return type of a GCC
13290 builtin and then its argument prototype would still apply. */
13298 return dld_link ();
13303 if ac_fn_c_try_link "$LINENO"; then :
13304 ac_cv_lib_dld_dld_link=yes
13306 ac_cv_lib_dld_dld_link=no
13308 rm -f core conftest.err conftest.$ac_objext \
13309 conftest$ac_exeext conftest.$ac_ext
13310 LIBS=$ac_check_lib_save_LIBS
13312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
13313 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
13314 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
13315 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
13336 if test "x$lt_cv_dlopen" != xno; then
13342 case $lt_cv_dlopen in
13344 save_CPPFLAGS="$CPPFLAGS"
13345 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
13347 save_LDFLAGS="$LDFLAGS"
13348 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
13351 LIBS="$lt_cv_dlopen_libs $LIBS"
13353 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
13354 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
13355 if ${lt_cv_dlopen_self+:} false; then :
13356 $as_echo_n "(cached) " >&6
13358 if test "$cross_compiling" = yes; then :
13359 lt_cv_dlopen_self=cross
13361 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
13362 lt_status=$lt_dlunknown
13363 cat > conftest.$ac_ext <<_LT_EOF
13364 #line $LINENO "configure"
13365 #include "confdefs.h"
13374 # define LT_DLGLOBAL RTLD_GLOBAL
13377 # define LT_DLGLOBAL DL_GLOBAL
13379 # define LT_DLGLOBAL 0
13383 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
13384 find out it does not work in some platform. */
13385 #ifndef LT_DLLAZY_OR_NOW
13387 # define LT_DLLAZY_OR_NOW RTLD_LAZY
13390 # define LT_DLLAZY_OR_NOW DL_LAZY
13393 # define LT_DLLAZY_OR_NOW RTLD_NOW
13396 # define LT_DLLAZY_OR_NOW DL_NOW
13398 # define LT_DLLAZY_OR_NOW 0
13405 /* When -fvisbility=hidden is used, assume the code has been annotated
13406 correspondingly for the symbols needed. */
13407 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
13408 int fnord () __attribute__((visibility("default")));
13411 int fnord () { return 42; }
13414 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
13415 int status = $lt_dlunknown;
13419 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
13422 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
13423 else puts (dlerror ());
13425 /* dlclose (self); */
13433 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
13434 (eval $ac_link) 2>&5
13436 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13437 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
13438 (./conftest; exit; ) >&5 2>/dev/null
13440 case x$lt_status in
13441 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
13442 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
13443 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
13446 # compilation failed
13447 lt_cv_dlopen_self=no
13454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
13455 $as_echo "$lt_cv_dlopen_self" >&6; }
13457 if test "x$lt_cv_dlopen_self" = xyes; then
13458 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
13459 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
13460 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
13461 if ${lt_cv_dlopen_self_static+:} false; then :
13462 $as_echo_n "(cached) " >&6
13464 if test "$cross_compiling" = yes; then :
13465 lt_cv_dlopen_self_static=cross
13467 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
13468 lt_status=$lt_dlunknown
13469 cat > conftest.$ac_ext <<_LT_EOF
13470 #line $LINENO "configure"
13471 #include "confdefs.h"
13480 # define LT_DLGLOBAL RTLD_GLOBAL
13483 # define LT_DLGLOBAL DL_GLOBAL
13485 # define LT_DLGLOBAL 0
13489 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
13490 find out it does not work in some platform. */
13491 #ifndef LT_DLLAZY_OR_NOW
13493 # define LT_DLLAZY_OR_NOW RTLD_LAZY
13496 # define LT_DLLAZY_OR_NOW DL_LAZY
13499 # define LT_DLLAZY_OR_NOW RTLD_NOW
13502 # define LT_DLLAZY_OR_NOW DL_NOW
13504 # define LT_DLLAZY_OR_NOW 0
13511 /* When -fvisbility=hidden is used, assume the code has been annotated
13512 correspondingly for the symbols needed. */
13513 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
13514 int fnord () __attribute__((visibility("default")));
13517 int fnord () { return 42; }
13520 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
13521 int status = $lt_dlunknown;
13525 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
13528 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
13529 else puts (dlerror ());
13531 /* dlclose (self); */
13539 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
13540 (eval $ac_link) 2>&5
13542 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13543 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
13544 (./conftest; exit; ) >&5 2>/dev/null
13546 case x$lt_status in
13547 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
13548 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
13549 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
13552 # compilation failed
13553 lt_cv_dlopen_self_static=no
13560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
13561 $as_echo "$lt_cv_dlopen_self_static" >&6; }
13564 CPPFLAGS="$save_CPPFLAGS"
13565 LDFLAGS="$save_LDFLAGS"
13570 case $lt_cv_dlopen_self in
13571 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
13572 *) enable_dlopen_self=unknown ;;
13575 case $lt_cv_dlopen_self_static in
13576 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
13577 *) enable_dlopen_self_static=unknown ;;
13599 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
13600 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
13601 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
13602 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
13603 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
13604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13605 $as_echo "yes" >&6; }
13607 # FIXME - insert some real tests, host_os isn't really good enough
13610 if test -n "$STRIP" ; then
13611 striplib="$STRIP -x"
13612 old_striplib="$STRIP -S"
13613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13614 $as_echo "yes" >&6; }
13616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13617 $as_echo "no" >&6; }
13621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13622 $as_echo "no" >&6; }
13638 # Report which library types will actually be built
13639 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
13640 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
13641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
13642 $as_echo "$can_build_shared" >&6; }
13644 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
13645 $as_echo_n "checking whether to build shared libraries... " >&6; }
13646 test "$can_build_shared" = "no" && enable_shared=no
13648 # On AIX, shared libraries and static libraries use the same namespace, and
13649 # are all built from PIC.
13652 test "$enable_shared" = yes && enable_static=no
13653 if test -n "$RANLIB"; then
13654 archive_cmds="$archive_cmds~\$RANLIB \$lib"
13655 postinstall_cmds='$RANLIB $lib'
13660 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
13661 test "$enable_shared" = yes && enable_static=no
13665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
13666 $as_echo "$enable_shared" >&6; }
13668 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
13669 $as_echo_n "checking whether to build static libraries... " >&6; }
13670 # Make sure either enable_shared or enable_static is yes.
13671 test "$enable_shared" = yes || enable_static=yes
13672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
13673 $as_echo "$enable_static" >&6; }
13680 ac_cpp='$CPP $CPPFLAGS'
13681 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13682 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13683 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13687 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
13688 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
13689 (test "X$CXX" != "Xg++"))) ; then
13691 ac_cpp='$CXXCPP $CPPFLAGS'
13692 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13693 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13694 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13695 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
13696 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
13697 if test -z "$CXXCPP"; then
13698 if ${ac_cv_prog_CXXCPP+:} false; then :
13699 $as_echo_n "(cached) " >&6
13701 # Double quotes because CXXCPP needs to be expanded
13702 for CXXCPP in "$CXX -E" "/lib/cpp"
13704 ac_preproc_ok=false
13705 for ac_cxx_preproc_warn_flag in '' yes
13707 # Use a header file that comes with gcc, so configuring glibc
13708 # with a fresh cross-compiler works.
13709 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13710 # <limits.h> exists even on freestanding compilers.
13711 # On the NeXT, cc -E runs the code through the compiler's parser,
13712 # not just through cpp. "Syntax error" is here to catch this case.
13713 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13714 /* end confdefs.h. */
13716 # include <limits.h>
13718 # include <assert.h>
13722 if ac_fn_cxx_try_cpp "$LINENO"; then :
13725 # Broken: fails on valid input.
13728 rm -f conftest.err conftest.i conftest.$ac_ext
13730 # OK, works on sane cases. Now check whether nonexistent headers
13731 # can be detected and how.
13732 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13733 /* end confdefs.h. */
13734 #include <ac_nonexistent.h>
13736 if ac_fn_cxx_try_cpp "$LINENO"; then :
13737 # Broken: success on invalid input.
13740 # Passes both tests.
13744 rm -f conftest.err conftest.i conftest.$ac_ext
13747 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
13748 rm -f conftest.i conftest.err conftest.$ac_ext
13749 if $ac_preproc_ok; then :
13754 ac_cv_prog_CXXCPP=$CXXCPP
13757 CXXCPP=$ac_cv_prog_CXXCPP
13759 ac_cv_prog_CXXCPP=$CXXCPP
13761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
13762 $as_echo "$CXXCPP" >&6; }
13763 ac_preproc_ok=false
13764 for ac_cxx_preproc_warn_flag in '' yes
13766 # Use a header file that comes with gcc, so configuring glibc
13767 # with a fresh cross-compiler works.
13768 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13769 # <limits.h> exists even on freestanding compilers.
13770 # On the NeXT, cc -E runs the code through the compiler's parser,
13771 # not just through cpp. "Syntax error" is here to catch this case.
13772 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13773 /* end confdefs.h. */
13775 # include <limits.h>
13777 # include <assert.h>
13781 if ac_fn_cxx_try_cpp "$LINENO"; then :
13784 # Broken: fails on valid input.
13787 rm -f conftest.err conftest.i conftest.$ac_ext
13789 # OK, works on sane cases. Now check whether nonexistent headers
13790 # can be detected and how.
13791 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13792 /* end confdefs.h. */
13793 #include <ac_nonexistent.h>
13795 if ac_fn_cxx_try_cpp "$LINENO"; then :
13796 # Broken: success on invalid input.
13799 # Passes both tests.
13803 rm -f conftest.err conftest.i conftest.$ac_ext
13806 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
13807 rm -f conftest.i conftest.err conftest.$ac_ext
13808 if $ac_preproc_ok; then :
13811 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13812 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13813 as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
13814 See \`config.log' for more details" "$LINENO" 5; }
13818 ac_cpp='$CPP $CPPFLAGS'
13819 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13820 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13821 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13824 _lt_caught_CXX_error=yes
13828 ac_cpp='$CXXCPP $CPPFLAGS'
13829 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13830 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13831 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13833 archive_cmds_need_lc_CXX=no
13834 allow_undefined_flag_CXX=
13835 always_export_symbols_CXX=no
13836 archive_expsym_cmds_CXX=
13837 compiler_needs_object_CXX=no
13838 export_dynamic_flag_spec_CXX=
13839 hardcode_direct_CXX=no
13840 hardcode_direct_absolute_CXX=no
13841 hardcode_libdir_flag_spec_CXX=
13842 hardcode_libdir_separator_CXX=
13843 hardcode_minus_L_CXX=no
13844 hardcode_shlibpath_var_CXX=unsupported
13845 hardcode_automatic_CXX=no
13846 inherit_rpath_CXX=no
13848 module_expsym_cmds_CXX=
13849 link_all_deplibs_CXX=unknown
13850 old_archive_cmds_CXX=$old_archive_cmds
13851 reload_flag_CXX=$reload_flag
13852 reload_cmds_CXX=$reload_cmds
13853 no_undefined_flag_CXX=
13854 whole_archive_flag_spec_CXX=
13855 enable_shared_with_static_runtimes_CXX=no
13857 # Source file extension for C++ test sources.
13860 # Object file extension for compiled C++ test sources.
13864 # No sense in running all these tests if we already determined that
13865 # the CXX compiler isn't working. Some variables (like enable_shared)
13866 # are currently assumed to apply to all compilers on this platform,
13867 # and will be corrupted by setting them based on a non-working compiler.
13868 if test "$_lt_caught_CXX_error" != yes; then
13869 # Code to be used in simple compile tests
13870 lt_simple_compile_test_code="int some_variable = 0;"
13872 # Code to be used in simple link tests
13873 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
13875 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
13882 # If no C compiler was specified, use CC.
13885 # If no C compiler flags were specified, use CFLAGS.
13886 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
13888 # Allow CC to be a program name with arguments.
13892 # save warnings/boilerplate of simple test code
13893 ac_outfile=conftest.$ac_objext
13894 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
13895 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13896 _lt_compiler_boilerplate=`cat conftest.err`
13899 ac_outfile=conftest.$ac_objext
13900 echo "$lt_simple_link_test_code" >conftest.$ac_ext
13901 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13902 _lt_linker_boilerplate=`cat conftest.err`
13906 # Allow CC to be a program name with arguments.
13908 lt_save_CFLAGS=$CFLAGS
13912 lt_save_with_gnu_ld=$with_gnu_ld
13913 lt_save_path_LD=$lt_cv_path_LD
13914 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
13915 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
13917 $as_unset lt_cv_prog_gnu_ld
13919 if test -n "${lt_cv_path_LDCXX+set}"; then
13920 lt_cv_path_LD=$lt_cv_path_LDCXX
13922 $as_unset lt_cv_path_LD
13924 test -z "${LDCXX+set}" || LD=$LDCXX
13929 for cc_temp in $compiler""; do
13931 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
13932 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
13937 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
13940 if test -n "$compiler"; then
13941 # We don't want -fno-exception when compiling C++ code, so set the
13942 # no_builtin_flag separately
13943 if test "$GXX" = yes; then
13944 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
13946 lt_prog_compiler_no_builtin_flag_CXX=
13949 if test "$GXX" = yes; then
13950 # Set up default GNU C++ configuration
13954 # Check whether --with-gnu-ld was given.
13955 if test "${with_gnu_ld+set}" = set; then :
13956 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
13962 if test "$GCC" = yes; then
13963 # Check if gcc -print-prog-name=ld gives a path.
13964 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
13965 $as_echo_n "checking for ld used by $CC... " >&6; }
13968 # gcc leaves a trailing carriage return which upsets mingw
13969 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
13971 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
13974 # Accept absolute paths.
13976 re_direlt='/[^/][^/]*/\.\./'
13977 # Canonicalize the pathname of ld
13978 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
13979 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
13980 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
13982 test -z "$LD" && LD="$ac_prog"
13985 # If it fails, then pretend we aren't using GCC.
13989 # If it is relative, then search for the first ld in PATH.
13990 with_gnu_ld=unknown
13993 elif test "$with_gnu_ld" = yes; then
13994 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
13995 $as_echo_n "checking for GNU ld... " >&6; }
13997 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
13998 $as_echo_n "checking for non-GNU ld... " >&6; }
14000 if ${lt_cv_path_LD+:} false; then :
14001 $as_echo_n "(cached) " >&6
14003 if test -z "$LD"; then
14004 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
14005 for ac_dir in $PATH; do
14007 test -z "$ac_dir" && ac_dir=.
14008 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
14009 lt_cv_path_LD="$ac_dir/$ac_prog"
14010 # Check to see if the program is GNU ld. I'd rather use --version,
14011 # but apparently some variants of GNU ld only accept -v.
14012 # Break only if it was the GNU/non-GNU ld that we prefer.
14013 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
14014 *GNU* | *'with BFD'*)
14015 test "$with_gnu_ld" != no && break
14018 test "$with_gnu_ld" != yes && break
14025 lt_cv_path_LD="$LD" # Let the user override the test with a path.
14029 LD="$lt_cv_path_LD"
14030 if test -n "$LD"; then
14031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
14032 $as_echo "$LD" >&6; }
14034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14035 $as_echo "no" >&6; }
14037 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
14038 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
14039 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
14040 if ${lt_cv_prog_gnu_ld+:} false; then :
14041 $as_echo_n "(cached) " >&6
14043 # I'd rather use --version here, but apparently some GNU lds only accept -v.
14044 case `$LD -v 2>&1 </dev/null` in
14045 *GNU* | *'with BFD'*)
14046 lt_cv_prog_gnu_ld=yes
14049 lt_cv_prog_gnu_ld=no
14053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
14054 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
14055 with_gnu_ld=$lt_cv_prog_gnu_ld
14063 # Check if GNU C++ uses GNU ld as the underlying linker, since the
14064 # archiving commands below assume that GNU ld is being used.
14065 if test "$with_gnu_ld" = yes; then
14066 archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
14067 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'
14069 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
14070 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
14072 # If archive_cmds runs LD, not CC, wlarc should be empty
14073 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
14074 # investigate it a little bit more. (MM)
14077 # ancient GNU ld didn't support --whole-archive et. al.
14078 if eval "`$CC -print-prog-name=ld` --help 2>&1" |
14079 $GREP 'no-whole-archive' > /dev/null; then
14080 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
14082 whole_archive_flag_spec_CXX=
14088 # A generic and very simple default shared library creation
14089 # command for GNU C++ for the case where it uses the native
14090 # linker, instead of GNU ld. If possible, this setting should
14091 # overridden to take advantage of the native linker features on
14092 # the platform it is being used on.
14093 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
14096 # Commands to make compiler produce verbose output that lists
14097 # what "hidden" libraries, object files and flags are used when
14098 # linking a shared library.
14099 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
14107 # PORTME: fill in a description of your system's C++ link characteristics
14108 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14109 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
14113 # FIXME: insert proper C++ library support
14117 if test "$host_cpu" = ia64; then
14118 # On IA64, the linker does run time linking by default, so we don't
14119 # have to do anything special.
14120 aix_use_runtimelinking=no
14121 exp_sym_flag='-Bexport'
14124 aix_use_runtimelinking=no
14126 # Test if we are trying to use run time linking or normal
14127 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
14128 # need to do runtime linking.
14129 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
14130 for ld_flag in $LDFLAGS; do
14133 aix_use_runtimelinking=yes
14141 exp_sym_flag='-bexport'
14142 no_entry_flag='-bnoentry'
14145 # When large executables or shared objects are built, AIX ld can
14146 # have problems creating the table of contents. If linking a library
14147 # or program results in "error TOC overflow" add -mminimal-toc to
14148 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
14149 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
14151 archive_cmds_CXX=''
14152 hardcode_direct_CXX=yes
14153 hardcode_direct_absolute_CXX=yes
14154 hardcode_libdir_separator_CXX=':'
14155 link_all_deplibs_CXX=yes
14156 file_list_spec_CXX='${wl}-f,'
14158 if test "$GXX" = yes; then
14159 case $host_os in aix4.[012]|aix4.[012].*)
14160 # We only want to do this on AIX 4.2 and lower, the check
14161 # below for broken collect2 doesn't work under 4.3+
14162 collect2name=`${CC} -print-prog-name=collect2`
14163 if test -f "$collect2name" &&
14164 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
14166 # We have reworked collect2
14169 # We have old collect2
14170 hardcode_direct_CXX=unsupported
14171 # It fails to find uninstalled libraries when the uninstalled
14172 # path is not listed in the libpath. Setting hardcode_minus_L
14173 # to unsupported forces relinking
14174 hardcode_minus_L_CXX=yes
14175 hardcode_libdir_flag_spec_CXX='-L$libdir'
14176 hardcode_libdir_separator_CXX=
14179 shared_flag='-shared'
14180 if test "$aix_use_runtimelinking" = yes; then
14181 shared_flag="$shared_flag "'${wl}-G'
14185 if test "$host_cpu" = ia64; then
14186 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
14187 # chokes on -Wl,-G. The following line is correct:
14190 if test "$aix_use_runtimelinking" = yes; then
14191 shared_flag='${wl}-G'
14193 shared_flag='${wl}-bM:SRE'
14198 export_dynamic_flag_spec_CXX='${wl}-bexpall'
14199 # It seems that -bexpall does not export symbols beginning with
14200 # underscore (_), so it is better to generate a list of symbols to
14202 always_export_symbols_CXX=yes
14203 if test "$aix_use_runtimelinking" = yes; then
14204 # Warning - without using the other runtime loading flags (-brtl),
14205 # -berok will link without error, but may produce a broken library.
14206 allow_undefined_flag_CXX='-berok'
14207 # Determine the default libpath from the value encoded in an empty
14209 if test "${lt_cv_aix_libpath+set}" = set; then
14210 aix_libpath=$lt_cv_aix_libpath
14212 if ${lt_cv_aix_libpath__CXX+:} false; then :
14213 $as_echo_n "(cached) " >&6
14215 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14216 /* end confdefs.h. */
14226 if ac_fn_cxx_try_link "$LINENO"; then :
14228 lt_aix_libpath_sed='
14229 /Import File Strings/,/^$/ {
14231 s/^0 *\([^ ]*\) *$/\1/
14235 lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14236 # Check for a 64-bit object if we didn't find anything.
14237 if test -z "$lt_cv_aix_libpath__CXX"; then
14238 lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14241 rm -f core conftest.err conftest.$ac_objext \
14242 conftest$ac_exeext conftest.$ac_ext
14243 if test -z "$lt_cv_aix_libpath__CXX"; then
14244 lt_cv_aix_libpath__CXX="/usr/lib:/lib"
14249 aix_libpath=$lt_cv_aix_libpath__CXX
14252 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
14254 archive_expsym_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
14256 if test "$host_cpu" = ia64; then
14257 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
14258 allow_undefined_flag_CXX="-z nodefs"
14259 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"
14261 # Determine the default libpath from the value encoded in an
14262 # empty executable.
14263 if test "${lt_cv_aix_libpath+set}" = set; then
14264 aix_libpath=$lt_cv_aix_libpath
14266 if ${lt_cv_aix_libpath__CXX+:} false; then :
14267 $as_echo_n "(cached) " >&6
14269 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14270 /* end confdefs.h. */
14280 if ac_fn_cxx_try_link "$LINENO"; then :
14282 lt_aix_libpath_sed='
14283 /Import File Strings/,/^$/ {
14285 s/^0 *\([^ ]*\) *$/\1/
14289 lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14290 # Check for a 64-bit object if we didn't find anything.
14291 if test -z "$lt_cv_aix_libpath__CXX"; then
14292 lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14295 rm -f core conftest.err conftest.$ac_objext \
14296 conftest$ac_exeext conftest.$ac_ext
14297 if test -z "$lt_cv_aix_libpath__CXX"; then
14298 lt_cv_aix_libpath__CXX="/usr/lib:/lib"
14303 aix_libpath=$lt_cv_aix_libpath__CXX
14306 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
14307 # Warning - without using the other run time loading flags,
14308 # -berok will link without error, but may produce a broken library.
14309 no_undefined_flag_CXX=' ${wl}-bernotok'
14310 allow_undefined_flag_CXX=' ${wl}-berok'
14311 if test "$with_gnu_ld" = yes; then
14312 # We only use this code for GNU lds that support --whole-archive.
14313 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
14315 # Exported symbols can be pulled into shared objects from archives
14316 whole_archive_flag_spec_CXX='$convenience'
14318 archive_cmds_need_lc_CXX=yes
14319 # This is similar to how AIX traditionally builds its shared
14321 archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
14327 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
14328 allow_undefined_flag_CXX=unsupported
14329 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
14330 # support --undefined. This deserves some investigation. FIXME
14331 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14338 case $cc_basename in
14340 # FIXME: insert proper C++ library support
14346 cygwin* | mingw* | pw32* | cegcc*)
14347 case $GXX,$cc_basename in
14350 # hardcode_libdir_flag_spec is actually meaningless, as there is
14351 # no search path for DLLs.
14352 hardcode_libdir_flag_spec_CXX=' '
14353 allow_undefined_flag_CXX=unsupported
14354 always_export_symbols_CXX=yes
14355 file_list_spec_CXX='@'
14356 # Tell ltmain to make .lib files, not .a files.
14358 # Tell ltmain to make .dll files, not .so files.
14360 # FIXME: Setting linknames here is a bad hack.
14361 archive_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
14362 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
14363 $SED -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
14365 $SED -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
14367 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
14369 # The linker will not automatically build a static lib if we build a DLL.
14370 # _LT_TAGVAR(old_archive_from_new_cmds, CXX)='true'
14371 enable_shared_with_static_runtimes_CXX=yes
14373 old_postinstall_cmds_CXX='chmod 644 $oldlib'
14374 postlink_cmds_CXX='lt_outputfile="@OUTPUT@"~
14375 lt_tool_outputfile="@TOOL_OUTPUT@"~
14376 case $lt_outputfile in
14379 lt_outputfile="$lt_outputfile.exe"
14380 lt_tool_outputfile="$lt_tool_outputfile.exe"
14383 func_to_tool_file "$lt_outputfile"~
14384 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
14385 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
14386 $RM "$lt_outputfile.manifest";
14391 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
14392 # as there is no search path for DLLs.
14393 hardcode_libdir_flag_spec_CXX='-L$libdir'
14394 export_dynamic_flag_spec_CXX='${wl}--export-all-symbols'
14395 allow_undefined_flag_CXX=unsupported
14396 always_export_symbols_CXX=no
14397 enable_shared_with_static_runtimes_CXX=yes
14399 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
14400 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'
14401 # If the export-symbols file already is a .def file (1st line
14402 # is EXPORTS), use it as is; otherwise, prepend...
14403 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
14404 cp $export_symbols $output_objdir/$soname.def;
14406 echo EXPORTS > $output_objdir/$soname.def;
14407 cat $export_symbols >> $output_objdir/$soname.def;
14409 $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'
14416 darwin* | rhapsody*)
14419 archive_cmds_need_lc_CXX=no
14420 hardcode_direct_CXX=no
14421 hardcode_automatic_CXX=yes
14422 hardcode_shlibpath_var_CXX=unsupported
14423 if test "$lt_cv_ld_force_load" = "yes"; then
14424 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\"`'
14427 whole_archive_flag_spec_CXX=''
14429 link_all_deplibs_CXX=yes
14430 allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
14431 case $cc_basename in
14432 ifort*) _lt_dar_can_shared=yes ;;
14433 *) _lt_dar_can_shared=$GCC ;;
14435 if test "$_lt_dar_can_shared" = "yes"; then
14436 output_verbose_link_cmd=func_echo_all
14437 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}"
14438 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
14439 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}"
14440 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}"
14441 if test "$lt_cv_apple_cc_single_mod" != "yes"; then
14442 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}"
14443 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}"
14453 case $cc_basename in
14455 # FIXME: insert proper C++ library support
14459 # Green Hills C++ Compiler
14460 # FIXME: insert proper C++ library support
14464 # FIXME: insert proper C++ library support
14471 # C++ shared libraries reported to be fairly broken before
14477 archive_cmds_need_lc_CXX=no
14480 freebsd* | dragonfly*)
14481 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
14490 archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14491 link_all_deplibs_CXX=yes
14495 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
14496 hardcode_libdir_separator_CXX=:
14497 export_dynamic_flag_spec_CXX='${wl}-E'
14498 hardcode_direct_CXX=yes
14499 hardcode_minus_L_CXX=yes # Not in the search PATH,
14500 # but as the default
14501 # location of the library.
14503 case $cc_basename in
14505 # FIXME: insert proper C++ library support
14509 archive_cmds_CXX='$RM $output_objdir/$soname~$CC -b ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
14510 # Commands to make compiler produce verbose output that lists
14511 # what "hidden" libraries, object files and flags are used when
14512 # linking a shared library.
14514 # There doesn't appear to be a way to prevent this compiler from
14515 # explicitly linking system object files so we need to strip them
14516 # from the output so that they don't get included in the library
14518 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"'
14521 if test "$GXX" = yes; then
14522 archive_cmds_CXX='$RM $output_objdir/$soname~$CC -shared -nostdlib $pic_flag ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
14524 # FIXME: insert proper C++ library support
14532 if test $with_gnu_ld = no; then
14533 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
14534 hardcode_libdir_separator_CXX=:
14540 export_dynamic_flag_spec_CXX='${wl}-E'
14546 hardcode_direct_CXX=no
14547 hardcode_shlibpath_var_CXX=no
14550 hardcode_direct_CXX=yes
14551 hardcode_direct_absolute_CXX=yes
14552 hardcode_minus_L_CXX=yes # Not in the search PATH,
14553 # but as the default
14554 # location of the library.
14558 case $cc_basename in
14560 # FIXME: insert proper C++ library support
14566 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14569 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14572 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14575 # Commands to make compiler produce verbose output that lists
14576 # what "hidden" libraries, object files and flags are used when
14577 # linking a shared library.
14579 # There doesn't appear to be a way to prevent this compiler from
14580 # explicitly linking system object files so we need to strip them
14581 # from the output so that they don't get included in the library
14583 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"'
14586 if test "$GXX" = yes; then
14587 if test $with_gnu_ld = no; then
14590 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14593 archive_cmds_CXX='$CC -shared -nostdlib $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14596 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'
14601 # FIXME: insert proper C++ library support
14609 hardcode_direct_CXX=no
14610 hardcode_shlibpath_var_CXX=no
14611 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
14612 export_dynamic_flag_spec_CXX='${wl}-E'
14613 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
14614 # Instead, shared libraries are loaded at an image base (0x10000000 by
14615 # default) and relocated if they conflict, which is a slow very memory
14616 # consuming and fragmenting process. To avoid this, we pick a random,
14617 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
14618 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
14619 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'
14620 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'
14623 case $cc_basename in
14626 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'
14628 # Archives containing C++ object files must be created using
14629 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
14630 # necessary to make sure instantiated templates are included
14632 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
14635 if test "$GXX" = yes; then
14636 if test "$with_gnu_ld" = no; then
14637 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'
14639 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'
14642 link_all_deplibs_CXX=yes
14645 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
14646 hardcode_libdir_separator_CXX=:
14647 inherit_rpath_CXX=yes
14650 linux* | k*bsd*-gnu | kopensolaris*-gnu)
14651 case $cc_basename in
14653 # Kuck and Associates, Inc. (KAI) C++ Compiler
14655 # KCC will only create a shared library if the output file
14656 # ends with ".so" (or ".sl" for HP-UX), so rename the library
14657 # to its proper name (with version) after linking.
14658 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'
14659 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'
14660 # Commands to make compiler produce verbose output that lists
14661 # what "hidden" libraries, object files and flags are used when
14662 # linking a shared library.
14664 # There doesn't appear to be a way to prevent this compiler from
14665 # explicitly linking system object files so we need to strip them
14666 # from the output so that they don't get included in the library
14668 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"'
14670 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
14671 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
14673 # Archives containing C++ object files must be created using
14674 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
14675 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
14680 # version 8.0 and above of icpc choke on multiply defined symbols
14681 # if we add $predep_objects and $postdep_objects, however 7.1 and
14682 # earlier do not add the objects themselves.
14683 case `$CC -V 2>&1` in
14685 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
14686 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'
14688 *) # Version 8.0 or newer
14691 ia64*) tmp_idyn=' -i_dynamic';;
14693 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14694 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'
14697 archive_cmds_need_lc_CXX=no
14698 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
14699 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
14700 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
14703 # Portland Group C++ compiler
14705 *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
14706 prelink_cmds_CXX='tpldir=Template.dir~
14708 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
14709 compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
14710 old_archive_cmds_CXX='tpldir=Template.dir~
14712 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
14713 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
14715 archive_cmds_CXX='tpldir=Template.dir~
14717 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
14718 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
14719 archive_expsym_cmds_CXX='tpldir=Template.dir~
14721 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
14722 $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'
14724 *) # Version 6 and above use weak symbols
14725 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
14726 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'
14730 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
14731 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
14732 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'
14736 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
14737 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'
14739 runpath_var=LD_RUN_PATH
14740 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
14741 hardcode_libdir_separator_CXX=:
14743 # Commands to make compiler produce verbose output that lists
14744 # what "hidden" libraries, object files and flags are used when
14745 # linking a shared library.
14747 # There doesn't appear to be a way to prevent this compiler from
14748 # explicitly linking system object files so we need to strip them
14749 # from the output so that they don't get included in the library
14751 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'
14753 xl* | mpixl* | bgxl*)
14754 # IBM XL 8.0 on PPC, with GNU ld
14755 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
14756 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
14757 archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14758 if test "x$supports_anon_versioning" = xyes; then
14759 archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
14760 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
14761 echo "local: *; };" >> $output_objdir/$libname.ver~
14762 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
14766 case `$CC -V 2>&1 | sed 5q` in
14769 no_undefined_flag_CXX=' -zdefs'
14770 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14771 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'
14772 hardcode_libdir_flag_spec_CXX='-R$libdir'
14773 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'
14774 compiler_needs_object_CXX=yes
14776 # Not sure whether something based on
14777 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
14779 output_verbose_link_cmd='func_echo_all'
14781 # Archives containing C++ object files must be created using
14782 # "CC -xar", where "CC" is the Sun C++ compiler. This is
14783 # necessary to make sure instantiated templates are included
14785 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
14793 # FIXME: insert proper C++ library support
14798 # FIXME: insert proper C++ library support
14803 case $cc_basename in
14805 # FIXME: insert proper C++ library support
14809 # FIXME: insert proper C++ library support
14816 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
14817 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
14819 hardcode_libdir_flag_spec_CXX='-R$libdir'
14820 hardcode_direct_CXX=yes
14821 hardcode_shlibpath_var_CXX=no
14823 # Workaround some broken pre-1.5 toolchains
14824 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
14832 # C++ shared libraries are fairly broken
14837 if test -f /usr/libexec/ld.so; then
14838 hardcode_direct_CXX=yes
14839 hardcode_shlibpath_var_CXX=no
14840 hardcode_direct_absolute_CXX=yes
14841 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
14842 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
14843 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14844 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
14845 export_dynamic_flag_spec_CXX='${wl}-E'
14846 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
14848 output_verbose_link_cmd=func_echo_all
14854 osf3* | osf4* | osf5*)
14855 case $cc_basename in
14857 # Kuck and Associates, Inc. (KAI) C++ Compiler
14859 # KCC will only create a shared library if the output file
14860 # ends with ".so" (or ".sl" for HP-UX), so rename the library
14861 # to its proper name (with version) after linking.
14862 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'
14864 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
14865 hardcode_libdir_separator_CXX=:
14867 # Archives containing C++ object files must be created using
14868 # the KAI C++ compiler.
14870 osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
14871 *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
14875 # Rational C++ 2.4.1
14876 # FIXME: insert proper C++ library support
14882 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
14883 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'
14884 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
14887 allow_undefined_flag_CXX=' -expect_unresolved \*'
14888 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'
14889 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
14890 echo "-hidden">> $lib.exp~
14891 $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~
14893 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
14897 hardcode_libdir_separator_CXX=:
14899 # Commands to make compiler produce verbose output that lists
14900 # what "hidden" libraries, object files and flags are used when
14901 # linking a shared library.
14903 # There doesn't appear to be a way to prevent this compiler from
14904 # explicitly linking system object files so we need to strip them
14905 # from the output so that they don't get included in the library
14907 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"'
14910 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
14911 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
14914 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'
14917 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'
14921 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
14922 hardcode_libdir_separator_CXX=:
14924 # Commands to make compiler produce verbose output that lists
14925 # what "hidden" libraries, object files and flags are used when
14926 # linking a shared library.
14927 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
14930 # FIXME: insert proper C++ library support
14938 # FIXME: insert proper C++ library support
14943 case $cc_basename in
14946 # FIXME: insert proper C++ library support
14951 # FIXME: insert proper C++ library support
14955 # FIXME: insert proper C++ library support
14962 case $cc_basename in
14964 # Sun C++ 4.2, 5.x and Centerline C++
14965 archive_cmds_need_lc_CXX=yes
14966 no_undefined_flag_CXX=' -zdefs'
14967 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14968 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14969 $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'
14971 hardcode_libdir_flag_spec_CXX='-R$libdir'
14972 hardcode_shlibpath_var_CXX=no
14974 solaris2.[0-5] | solaris2.[0-5].*) ;;
14976 # The compiler driver will combine and reorder linker options,
14977 # but understands `-z linker_flag'.
14978 # Supported since Solaris 2.6 (maybe 2.5.1?)
14979 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
14982 link_all_deplibs_CXX=yes
14984 output_verbose_link_cmd='func_echo_all'
14986 # Archives containing C++ object files must be created using
14987 # "CC -xar", where "CC" is the Sun C++ compiler. This is
14988 # necessary to make sure instantiated templates are included
14990 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
14993 # Green Hills C++ Compiler
14994 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
14996 # The C++ compiler must be used to create the archive.
14997 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
15000 # GNU C++ compiler with Solaris linker
15001 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
15002 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
15003 if $CC --version | $GREP -v '^2\.7' > /dev/null; then
15004 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
15005 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
15006 $CC -shared $pic_flag -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
15008 # Commands to make compiler produce verbose output that lists
15009 # what "hidden" libraries, object files and flags are used when
15010 # linking a shared library.
15011 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
15013 # g++ 2.7 appears to require `-G' NOT `-shared' on this
15015 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
15016 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
15017 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
15019 # Commands to make compiler produce verbose output that lists
15020 # what "hidden" libraries, object files and flags are used when
15021 # linking a shared library.
15022 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
15025 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
15027 solaris2.[0-5] | solaris2.[0-5].*) ;;
15029 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
15037 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
15038 no_undefined_flag_CXX='${wl}-z,text'
15039 archive_cmds_need_lc_CXX=no
15040 hardcode_shlibpath_var_CXX=no
15041 runpath_var='LD_RUN_PATH'
15043 case $cc_basename in
15045 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15046 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15049 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15050 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15055 sysv5* | sco3.2v5* | sco5v6*)
15056 # Note: We can NOT use -z defs as we might desire, because we do not
15057 # link with -lc, and that would cause any symbols used from libc to
15058 # always be unresolved, which means just about no library would
15059 # ever link correctly. If we're not using GNU ld we use -z text
15060 # though, which does catch some bad symbols but isn't as heavy-handed
15062 no_undefined_flag_CXX='${wl}-z,text'
15063 allow_undefined_flag_CXX='${wl}-z,nodefs'
15064 archive_cmds_need_lc_CXX=no
15065 hardcode_shlibpath_var_CXX=no
15066 hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
15067 hardcode_libdir_separator_CXX=':'
15068 link_all_deplibs_CXX=yes
15069 export_dynamic_flag_spec_CXX='${wl}-Bexport'
15070 runpath_var='LD_RUN_PATH'
15072 case $cc_basename in
15074 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15075 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15076 old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
15077 '"$old_archive_cmds_CXX"
15078 reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
15079 '"$reload_cmds_CXX"
15082 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15083 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15089 case $cc_basename in
15091 # NonStop-UX NCC 3.20
15092 # FIXME: insert proper C++ library support
15096 # FIXME: insert proper C++ library support
15103 # FIXME: insert proper C++ library support
15108 # FIXME: insert proper C++ library support
15113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
15114 $as_echo "$ld_shlibs_CXX" >&6; }
15115 test "$ld_shlibs_CXX" = no && can_build_shared=no
15121 ## There is no encapsulation within the following macros, do not change
15122 ## the running order or otherwise move them around unless you know exactly
15123 ## what you are doing...
15124 # Dependencies to place before and after the object being linked:
15125 predep_objects_CXX=
15126 postdep_objects_CXX=
15129 compiler_lib_search_path_CXX=
15131 cat > conftest.$ac_ext <<_LT_EOF
15135 Foo (void) { a = 0; }
15142 _lt_libdeps_save_CFLAGS=$CFLAGS
15143 case "$CC $CFLAGS " in #(
15144 *\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;;
15145 *\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;;
15146 *\ -fuse-linker-plugin*\ *) CFLAGS="$CFLAGS -fno-use-linker-plugin" ;;
15149 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
15150 (eval $ac_compile) 2>&5
15152 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15153 test $ac_status = 0; }; then
15154 # Parse the compiler output and extract the necessary
15155 # objects, libraries and library flags.
15157 # Sentinel used to keep track of whether or not we are before
15158 # the conftest object file.
15159 pre_test_object_deps_done=no
15161 for p in `eval "$output_verbose_link_cmd"`; do
15162 case ${prev}${p} in
15165 # Some compilers place space between "-{L,R}" and the path.
15166 # Remove the space.
15167 if test $p = "-L" ||
15168 test $p = "-R"; then
15173 # Expand the sysroot to ease extracting the directories later.
15174 if test -z "$prev"; then
15176 -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;;
15177 -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;;
15178 -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;;
15182 =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;;
15184 if test "$pre_test_object_deps_done" = no; then
15187 # Internal compiler library paths should come after those
15188 # provided the user. The postdeps already come after the
15189 # user supplied libs so there is no need to process them.
15190 if test -z "$compiler_lib_search_path_CXX"; then
15191 compiler_lib_search_path_CXX="${prev}${p}"
15193 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
15196 # The "-l" case would never come before the object being
15197 # linked, so don't bother handling this case.
15200 if test -z "$postdeps_CXX"; then
15201 postdeps_CXX="${prev}${p}"
15203 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
15209 *.lto.$objext) ;; # Ignore GCC LTO objects
15211 # This assumes that the test object file only shows up
15212 # once in the compiler output.
15213 if test "$p" = "conftest.$objext"; then
15214 pre_test_object_deps_done=yes
15218 if test "$pre_test_object_deps_done" = no; then
15219 if test -z "$predep_objects_CXX"; then
15220 predep_objects_CXX="$p"
15222 predep_objects_CXX="$predep_objects_CXX $p"
15225 if test -z "$postdep_objects_CXX"; then
15226 postdep_objects_CXX="$p"
15228 postdep_objects_CXX="$postdep_objects_CXX $p"
15233 *) ;; # Ignore the rest.
15241 echo "libtool.m4: error: problem compiling CXX test program"
15244 $RM -f confest.$objext
15245 CFLAGS=$_lt_libdeps_save_CFLAGS
15247 # PORTME: override above test on systems where it is broken
15250 # Interix 3.5 installs completely hosed .la files for C++, so rather than
15251 # hack all around it, let's just trust "g++" to DTRT.
15252 predep_objects_CXX=
15253 postdep_objects_CXX=
15258 case `$CC -V 2>&1 | sed 5q` in
15262 # The more standards-conforming stlport4 library is
15263 # incompatible with the Cstd library. Avoid specifying
15264 # it if it's in CXXFLAGS. Ignore libCrun as
15265 # -library=stlport4 depends on it.
15266 case " $CXX $CXXFLAGS " in
15267 *" -library=stlport4 "*)
15268 solaris_use_stlport4=yes
15272 if test "$solaris_use_stlport4" != yes; then
15273 postdeps_CXX='-library=Cstd -library=Crun'
15280 case $cc_basename in
15282 # The more standards-conforming stlport4 library is
15283 # incompatible with the Cstd library. Avoid specifying
15284 # it if it's in CXXFLAGS. Ignore libCrun as
15285 # -library=stlport4 depends on it.
15286 case " $CXX $CXXFLAGS " in
15287 *" -library=stlport4 "*)
15288 solaris_use_stlport4=yes
15292 # Adding this requires a known-good setup of shared libraries for
15293 # Sun compiler versions before 5.6, else PIC objects from an old
15294 # archive will be linked into the output, leading to subtle bugs.
15295 if test "$solaris_use_stlport4" != yes; then
15296 postdeps_CXX='-library=Cstd -library=Crun'
15304 case " $postdeps_CXX " in
15305 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
15307 compiler_lib_search_dirs_CXX=
15308 if test -n "${compiler_lib_search_path_CXX}"; then
15309 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
15342 lt_prog_compiler_wl_CXX=
15343 lt_prog_compiler_pic_CXX=
15344 lt_prog_compiler_static_CXX=
15347 # C++ specific cases for pic, static, wl, etc.
15348 if test "$GXX" = yes; then
15349 lt_prog_compiler_wl_CXX='-Wl,'
15350 lt_prog_compiler_static_CXX='-static'
15354 # All AIX code is PIC.
15355 if test "$host_cpu" = ia64; then
15356 # AIX 5 now supports IA64 processor
15357 lt_prog_compiler_static_CXX='-Bstatic'
15364 # see comment about AmigaOS4 .so support
15365 lt_prog_compiler_pic_CXX='-fPIC'
15368 # FIXME: we need at least 68020 code to build shared libraries, but
15369 # adding the `-m68020' flag to GCC prevents building anything better,
15371 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
15376 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
15377 # PIC is the default for these OSes.
15379 mingw* | cygwin* | os2* | pw32* | cegcc*)
15380 # This hack is so that the source file can tell whether it is being
15381 # built for inclusion in a dll (and should export symbols for example).
15382 # Although the cygwin gcc ignores -fPIC, still need this for old-style
15383 # (--disable-auto-import) libraries
15384 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
15386 darwin* | rhapsody*)
15387 # PIC is the default on this platform
15388 # Common symbols not allowed in MH_DYLIB files
15389 lt_prog_compiler_pic_CXX='-fno-common'
15392 # DJGPP does not support shared libraries at all
15393 lt_prog_compiler_pic_CXX=
15396 # PIC is the default for Haiku.
15397 # The "-static" flag exists, but is broken.
15398 lt_prog_compiler_static_CXX=
15401 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
15402 # Instead, we relocate shared libraries at runtime.
15405 if test -d /usr/nec; then
15406 lt_prog_compiler_pic_CXX=-Kconform_pic
15410 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
15411 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
15412 # sets the default TLS model and affects inlining.
15417 lt_prog_compiler_pic_CXX='-fPIC'
15422 # QNX uses GNU C++, but need to define -shared option too, otherwise
15423 # it will coredump.
15424 lt_prog_compiler_pic_CXX='-fPIC -shared'
15427 lt_prog_compiler_pic_CXX='-fPIC'
15433 # All AIX code is PIC.
15434 if test "$host_cpu" = ia64; then
15435 # AIX 5 now supports IA64 processor
15436 lt_prog_compiler_static_CXX='-Bstatic'
15438 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
15442 case $cc_basename in
15444 # Green Hills C++ Compiler
15445 # _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"
15449 mingw* | cygwin* | os2* | pw32* | cegcc*)
15450 # This hack is so that the source file can tell whether it is being
15451 # built for inclusion in a dll (and should export symbols for example).
15452 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
15455 case $cc_basename in
15457 lt_prog_compiler_pic_CXX='-KPIC'
15460 # Green Hills C++ Compiler
15461 lt_prog_compiler_pic_CXX='-pic'
15467 freebsd* | dragonfly*)
15468 # FreeBSD uses GNU C++
15470 hpux9* | hpux10* | hpux11*)
15471 case $cc_basename in
15473 lt_prog_compiler_wl_CXX='-Wl,'
15474 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
15475 if test "$host_cpu" != ia64; then
15476 lt_prog_compiler_pic_CXX='+Z'
15480 lt_prog_compiler_wl_CXX='-Wl,'
15481 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
15487 lt_prog_compiler_pic_CXX='+Z'
15496 # This is c89, which is MS Visual C++ (no shared libs)
15497 # Anyone wants to do a port?
15499 irix5* | irix6* | nonstopux*)
15500 case $cc_basename in
15502 lt_prog_compiler_wl_CXX='-Wl,'
15503 lt_prog_compiler_static_CXX='-non_shared'
15504 # CC pic flag -KPIC is the default.
15510 linux* | k*bsd*-gnu | kopensolaris*-gnu)
15511 case $cc_basename in
15514 lt_prog_compiler_wl_CXX='--backend -Wl,'
15515 lt_prog_compiler_pic_CXX='-fPIC'
15518 # old Intel C++ for x86_64 which still supported -KPIC.
15519 lt_prog_compiler_wl_CXX='-Wl,'
15520 lt_prog_compiler_pic_CXX='-KPIC'
15521 lt_prog_compiler_static_CXX='-static'
15524 # Intel C++, used to be incompatible with GCC.
15525 # ICC 10 doesn't accept -KPIC any more.
15526 lt_prog_compiler_wl_CXX='-Wl,'
15527 lt_prog_compiler_pic_CXX='-fPIC'
15528 lt_prog_compiler_static_CXX='-static'
15531 # Portland Group C++ compiler
15532 lt_prog_compiler_wl_CXX='-Wl,'
15533 lt_prog_compiler_pic_CXX='-fpic'
15534 lt_prog_compiler_static_CXX='-Bstatic'
15538 # Make sure the PIC flag is empty. It appears that all Alpha
15539 # Linux and Compaq Tru64 Unix objects are PIC.
15540 lt_prog_compiler_pic_CXX=
15541 lt_prog_compiler_static_CXX='-non_shared'
15543 xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
15544 # IBM XL 8.0, 9.0 on PPC and BlueGene
15545 lt_prog_compiler_wl_CXX='-Wl,'
15546 lt_prog_compiler_pic_CXX='-qpic'
15547 lt_prog_compiler_static_CXX='-qstaticlink'
15550 case `$CC -V 2>&1 | sed 5q` in
15553 lt_prog_compiler_pic_CXX='-KPIC'
15554 lt_prog_compiler_static_CXX='-Bstatic'
15555 lt_prog_compiler_wl_CXX='-Qoption ld '
15566 case $cc_basename in
15568 lt_prog_compiler_pic_CXX='-W c,exportall'
15577 # QNX uses GNU C++, but need to define -shared option too, otherwise
15578 # it will coredump.
15579 lt_prog_compiler_pic_CXX='-fPIC -shared'
15581 osf3* | osf4* | osf5*)
15582 case $cc_basename in
15584 lt_prog_compiler_wl_CXX='--backend -Wl,'
15587 # Rational C++ 2.4.1
15588 lt_prog_compiler_pic_CXX='-pic'
15591 # Digital/Compaq C++
15592 lt_prog_compiler_wl_CXX='-Wl,'
15593 # Make sure the PIC flag is empty. It appears that all Alpha
15594 # Linux and Compaq Tru64 Unix objects are PIC.
15595 lt_prog_compiler_pic_CXX=
15596 lt_prog_compiler_static_CXX='-non_shared'
15605 case $cc_basename in
15607 # Sun C++ 4.2, 5.x and Centerline C++
15608 lt_prog_compiler_pic_CXX='-KPIC'
15609 lt_prog_compiler_static_CXX='-Bstatic'
15610 lt_prog_compiler_wl_CXX='-Qoption ld '
15613 # Green Hills C++ Compiler
15614 lt_prog_compiler_pic_CXX='-PIC'
15621 case $cc_basename in
15624 lt_prog_compiler_pic_CXX='-pic'
15625 lt_prog_compiler_static_CXX='-Bstatic'
15629 lt_prog_compiler_pic_CXX='-pic'
15635 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
15636 case $cc_basename in
15638 lt_prog_compiler_wl_CXX='-Wl,'
15639 lt_prog_compiler_pic_CXX='-KPIC'
15640 lt_prog_compiler_static_CXX='-Bstatic'
15645 case $cc_basename in
15647 # NonStop-UX NCC 3.20
15648 lt_prog_compiler_pic_CXX='-KPIC'
15657 lt_prog_compiler_can_build_shared_CXX=no
15663 # For platforms which do not support PIC, -DPIC is meaningless:
15665 lt_prog_compiler_pic_CXX=
15668 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
15672 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
15673 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
15674 if ${lt_cv_prog_compiler_pic_CXX+:} false; then :
15675 $as_echo_n "(cached) " >&6
15677 lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX
15679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_CXX" >&5
15680 $as_echo "$lt_cv_prog_compiler_pic_CXX" >&6; }
15681 lt_prog_compiler_pic_CXX=$lt_cv_prog_compiler_pic_CXX
15684 # Check to make sure the PIC flag actually works.
15686 if test -n "$lt_prog_compiler_pic_CXX"; then
15687 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
15688 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
15689 if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then :
15690 $as_echo_n "(cached) " >&6
15692 lt_cv_prog_compiler_pic_works_CXX=no
15693 ac_outfile=conftest.$ac_objext
15694 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15695 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
15696 # Insert the option either (1) after the last *FLAGS variable, or
15697 # (2) before a word containing "conftest.", or (3) at the end.
15698 # Note that $ac_compile itself does not contain backslashes and begins
15699 # with a dollar sign (not a hyphen), so the echo should work correctly.
15700 # The option is referenced via a variable to avoid confusing sed.
15701 lt_compile=`echo "$ac_compile" | $SED \
15702 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15703 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15704 -e 's:$: $lt_compiler_flag:'`
15705 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15706 (eval "$lt_compile" 2>conftest.err)
15708 cat conftest.err >&5
15709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15710 if (exit $ac_status) && test -s "$ac_outfile"; then
15711 # The compiler can only warn and ignore the option if not recognized
15712 # So say no if there are warnings other than the usual output.
15713 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
15714 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15715 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
15716 lt_cv_prog_compiler_pic_works_CXX=yes
15722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
15723 $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
15725 if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
15726 case $lt_prog_compiler_pic_CXX in
15728 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
15731 lt_prog_compiler_pic_CXX=
15732 lt_prog_compiler_can_build_shared_CXX=no
15742 # Check to make sure the static flag actually works.
15744 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
15745 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
15746 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
15747 if ${lt_cv_prog_compiler_static_works_CXX+:} false; then :
15748 $as_echo_n "(cached) " >&6
15750 lt_cv_prog_compiler_static_works_CXX=no
15751 save_LDFLAGS="$LDFLAGS"
15752 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
15753 echo "$lt_simple_link_test_code" > conftest.$ac_ext
15754 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
15755 # The linker can only warn and ignore the option if not recognized
15756 # So say no if there are warnings
15757 if test -s conftest.err; then
15758 # Append any errors to the config.log.
15759 cat conftest.err 1>&5
15760 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
15761 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15762 if diff conftest.exp conftest.er2 >/dev/null; then
15763 lt_cv_prog_compiler_static_works_CXX=yes
15766 lt_cv_prog_compiler_static_works_CXX=yes
15770 LDFLAGS="$save_LDFLAGS"
15773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
15774 $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
15776 if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
15779 lt_prog_compiler_static_CXX=
15785 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
15786 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
15787 if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
15788 $as_echo_n "(cached) " >&6
15790 lt_cv_prog_compiler_c_o_CXX=no
15791 $RM -r conftest 2>/dev/null
15795 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15797 lt_compiler_flag="-o out/conftest2.$ac_objext"
15798 # Insert the option either (1) after the last *FLAGS variable, or
15799 # (2) before a word containing "conftest.", or (3) at the end.
15800 # Note that $ac_compile itself does not contain backslashes and begins
15801 # with a dollar sign (not a hyphen), so the echo should work correctly.
15802 lt_compile=`echo "$ac_compile" | $SED \
15803 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15804 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15805 -e 's:$: $lt_compiler_flag:'`
15806 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15807 (eval "$lt_compile" 2>out/conftest.err)
15809 cat out/conftest.err >&5
15810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15811 if (exit $ac_status) && test -s out/conftest2.$ac_objext
15813 # The compiler can only warn and ignore the option if not recognized
15814 # So say no if there are warnings
15815 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
15816 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15817 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15818 lt_cv_prog_compiler_c_o_CXX=yes
15823 # SGI C++ compiler will create directory out/ii_files/ for
15824 # template instantiation
15825 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
15826 $RM out/* && rmdir out
15832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
15833 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
15837 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
15838 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
15839 if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
15840 $as_echo_n "(cached) " >&6
15842 lt_cv_prog_compiler_c_o_CXX=no
15843 $RM -r conftest 2>/dev/null
15847 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15849 lt_compiler_flag="-o out/conftest2.$ac_objext"
15850 # Insert the option either (1) after the last *FLAGS variable, or
15851 # (2) before a word containing "conftest.", or (3) at the end.
15852 # Note that $ac_compile itself does not contain backslashes and begins
15853 # with a dollar sign (not a hyphen), so the echo should work correctly.
15854 lt_compile=`echo "$ac_compile" | $SED \
15855 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15856 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15857 -e 's:$: $lt_compiler_flag:'`
15858 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15859 (eval "$lt_compile" 2>out/conftest.err)
15861 cat out/conftest.err >&5
15862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15863 if (exit $ac_status) && test -s out/conftest2.$ac_objext
15865 # The compiler can only warn and ignore the option if not recognized
15866 # So say no if there are warnings
15867 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
15868 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15869 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15870 lt_cv_prog_compiler_c_o_CXX=yes
15875 # SGI C++ compiler will create directory out/ii_files/ for
15876 # template instantiation
15877 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
15878 $RM out/* && rmdir out
15884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
15885 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
15890 hard_links="nottested"
15891 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
15892 # do not overwrite the value of need_locks provided by the user
15893 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
15894 $as_echo_n "checking if we can lock with hard links... " >&6; }
15897 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15899 ln conftest.a conftest.b 2>&5 || hard_links=no
15900 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
15902 $as_echo "$hard_links" >&6; }
15903 if test "$hard_links" = no; then
15904 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
15905 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
15914 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15915 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
15917 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15918 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
15921 # If we're using GNU nm, then we don't want the "-C" option.
15922 # -C means demangle to AIX nm, but means don't demangle with GNU nm
15923 # Also, AIX nm treats weak defined symbols like other global defined
15924 # symbols, whereas GNU nm marks them as "W".
15925 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
15926 export_symbols_cmds_CXX='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
15928 export_symbols_cmds_CXX='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
15932 export_symbols_cmds_CXX="$ltdll_cmds"
15934 cygwin* | mingw* | cegcc*)
15935 case $cc_basename in
15937 exclude_expsyms_CXX='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
15940 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'
15941 exclude_expsyms_CXX='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
15946 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
15951 $as_echo "$ld_shlibs_CXX" >&6; }
15952 test "$ld_shlibs_CXX" = no && can_build_shared=no
15954 with_gnu_ld_CXX=$with_gnu_ld
15962 # Do we need to explicitly link libc?
15964 case "x$archive_cmds_need_lc_CXX" in
15966 # Assume -lc should be added
15967 archive_cmds_need_lc_CXX=yes
15969 if test "$enable_shared" = yes && test "$GCC" = yes; then
15970 case $archive_cmds_CXX in
15972 # FIXME: we may have to deal with multi-command sequences.
15975 # Test whether the compiler implicitly links with -lc since on some
15976 # systems, -lgcc has to come before -lc. If gcc already passes -lc
15977 # to ld, don't add -lc before -lgcc.
15978 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
15979 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
15980 if ${lt_cv_archive_cmds_need_lc_CXX+:} false; then :
15981 $as_echo_n "(cached) " >&6
15984 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15986 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
15987 (eval $ac_compile) 2>&5
15989 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15990 test $ac_status = 0; } 2>conftest.err; then
15993 libobjs=conftest.$ac_objext
15995 wl=$lt_prog_compiler_wl_CXX
15996 pic_flag=$lt_prog_compiler_pic_CXX
16002 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
16003 allow_undefined_flag_CXX=
16004 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
16005 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
16007 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16008 test $ac_status = 0; }
16010 lt_cv_archive_cmds_need_lc_CXX=no
16012 lt_cv_archive_cmds_need_lc_CXX=yes
16014 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
16016 cat conftest.err 1>&5
16021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
16022 $as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
16023 archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
16091 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
16092 $as_echo_n "checking dynamic linker characteristics... " >&6; }
16094 library_names_spec=
16095 libname_spec='lib$name'
16099 postuninstall_cmds=
16103 shlibpath_overrides_runpath=unknown
16105 dynamic_linker="$host_os ld.so"
16106 sys_lib_dlsearch_path_spec="/lib /usr/lib"
16107 need_lib_prefix=unknown
16108 hardcode_into_libs=no
16110 # when you set need_version to no, make sure it does not cause -set_version
16111 # flags to be left without arguments
16112 need_version=unknown
16116 version_type=linux # correct to gnu/linux during the next big refactor
16117 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
16118 shlibpath_var=LIBPATH
16120 # AIX 3 has no versioning support, so we append a major version to the name.
16121 soname_spec='${libname}${release}${shared_ext}$major'
16125 version_type=linux # correct to gnu/linux during the next big refactor
16128 hardcode_into_libs=yes
16129 if test "$host_cpu" = ia64; then
16130 # AIX 5 supports IA64
16131 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
16132 shlibpath_var=LD_LIBRARY_PATH
16134 # With GCC up to 2.95.x, collect2 would create an import file
16135 # for dependence libraries. The import file would start with
16136 # the line `#! .'. This would cause the generated library to
16137 # depend on `.', always an invalid library. This was fixed in
16138 # development snapshots of GCC prior to 3.0.
16140 aix4 | aix4.[01] | aix4.[01].*)
16141 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
16143 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
16146 can_build_shared=no
16150 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
16151 # soname into executable. Probably we can add versioning support to
16152 # collect2, so additional links can be useful in future.
16153 if test "$aix_use_runtimelinking" = yes; then
16154 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
16155 # instead of lib<name>.a to let people know that these are not
16156 # typical AIX shared libraries.
16157 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16159 # We preserve .a as extension for shared libraries through AIX4.2
16160 # and later when we are not doing run time linking.
16161 library_names_spec='${libname}${release}.a $libname.a'
16162 soname_spec='${libname}${release}${shared_ext}$major'
16164 shlibpath_var=LIBPATH
16171 # Since July 2007 AmigaOS4 officially supports .so libraries.
16172 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
16173 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16176 library_names_spec='$libname.ixlibrary $libname.a'
16177 # Create ${libname}_ixlibrary.a entries in /sys/libs.
16178 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
16184 library_names_spec='${libname}${shared_ext}'
16185 dynamic_linker="$host_os ld.so"
16186 shlibpath_var=LIBRARY_PATH
16190 version_type=linux # correct to gnu/linux during the next big refactor
16192 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16193 soname_spec='${libname}${release}${shared_ext}$major'
16194 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
16195 shlibpath_var=LD_LIBRARY_PATH
16196 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
16197 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
16198 # the default ld.so.conf also contains /usr/contrib/lib and
16199 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
16200 # libtool to hard-code these into programs
16203 cygwin* | mingw* | pw32* | cegcc*)
16204 version_type=windows
16209 case $GCC,$cc_basename in
16212 library_names_spec='$libname.dll.a'
16213 # DLL is installed to $(libdir)/../bin by postinstall_cmds
16214 postinstall_cmds='base_file=`basename \${file}`~
16215 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
16216 dldir=$destdir/`dirname \$dlpath`~
16217 test -d \$dldir || mkdir -p \$dldir~
16218 $install_prog $dir/$dlname \$dldir/$dlname~
16219 chmod a+x \$dldir/$dlname~
16220 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
16221 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
16223 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16224 dlpath=$dir/\$dldll~
16226 shlibpath_overrides_runpath=yes
16230 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
16231 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16235 # MinGW DLLs use traditional 'lib' prefix
16236 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16239 # pw32 DLLs use 'pw' prefix rather than 'lib'
16240 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16243 dynamic_linker='Win32 ld.exe'
16248 libname_spec='$name'
16249 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16250 library_names_spec='${libname}.dll.lib'
16254 sys_lib_search_path_spec=
16257 for lt_path in $LIB
16260 # Let DOS variable expansion print the short 8.3 style file name.
16261 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
16262 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
16265 # Convert to MSYS style.
16266 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
16269 # Convert to unix form, then to dos form, then back to unix form
16270 # but this time dos style (no spaces!) so that the unix form looks
16271 # like /cygdrive/c/PROGRA~1:/cygdr...
16272 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
16273 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
16274 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16277 sys_lib_search_path_spec="$LIB"
16278 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
16279 # It is most probably a Windows format PATH.
16280 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16282 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16284 # FIXME: find the short name or the path components, as spaces are
16285 # common. (e.g. "Program Files" -> "PROGRA~1")
16289 # DLL is installed to $(libdir)/../bin by postinstall_cmds
16290 postinstall_cmds='base_file=`basename \${file}`~
16291 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
16292 dldir=$destdir/`dirname \$dlpath`~
16293 test -d \$dldir || mkdir -p \$dldir~
16294 $install_prog $dir/$dlname \$dldir/$dlname'
16295 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16296 dlpath=$dir/\$dldll~
16298 shlibpath_overrides_runpath=yes
16299 dynamic_linker='Win32 link.exe'
16303 # Assume MSVC wrapper
16304 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
16305 dynamic_linker='Win32 ld.exe'
16308 # FIXME: first we should search . and the directory the executable is in
16312 darwin* | rhapsody*)
16313 dynamic_linker="$host_os dyld"
16314 version_type=darwin
16317 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
16318 soname_spec='${libname}${release}${major}$shared_ext'
16319 shlibpath_overrides_runpath=yes
16320 shlibpath_var=DYLD_LIBRARY_PATH
16321 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
16323 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
16327 version_type=linux # correct to gnu/linux during the next big refactor
16330 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
16331 soname_spec='${libname}${release}${shared_ext}$major'
16332 shlibpath_var=LD_LIBRARY_PATH
16335 freebsd* | dragonfly*)
16336 # DragonFly does not have aout. When/if they implement a new
16337 # versioning mechanism, adjust this.
16338 if test -x /usr/bin/objformat; then
16339 objformat=`/usr/bin/objformat`
16342 freebsd[23].*) objformat=aout ;;
16343 *) objformat=elf ;;
16346 version_type=freebsd-$objformat
16347 case $version_type in
16349 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16354 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
16358 shlibpath_var=LD_LIBRARY_PATH
16361 shlibpath_overrides_runpath=yes
16363 freebsd3.[01]* | freebsdelf3.[01]*)
16364 shlibpath_overrides_runpath=yes
16365 hardcode_into_libs=yes
16367 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
16368 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
16369 shlibpath_overrides_runpath=no
16370 hardcode_into_libs=yes
16372 *) # from 4.6 on, and DragonFly
16373 shlibpath_overrides_runpath=yes
16374 hardcode_into_libs=yes
16380 version_type=linux # correct to gnu/linux during the next big refactor
16383 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
16384 soname_spec='${libname}${release}${shared_ext}$major'
16385 shlibpath_var=LD_LIBRARY_PATH
16386 shlibpath_overrides_runpath=no
16387 hardcode_into_libs=yes
16391 version_type=linux # correct to gnu/linux during the next big refactor
16394 dynamic_linker="$host_os runtime_loader"
16395 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
16396 soname_spec='${libname}${release}${shared_ext}$major'
16397 shlibpath_var=LIBRARY_PATH
16398 shlibpath_overrides_runpath=yes
16399 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
16400 hardcode_into_libs=yes
16403 hpux9* | hpux10* | hpux11*)
16404 # Give a soname corresponding to the major version so that dld.sl refuses to
16405 # link against other versions.
16412 hardcode_into_libs=yes
16413 dynamic_linker="$host_os dld.so"
16414 shlibpath_var=LD_LIBRARY_PATH
16415 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16416 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16417 soname_spec='${libname}${release}${shared_ext}$major'
16418 if test "X$HPUX_IA64_MODE" = X32; then
16419 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
16421 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
16423 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16427 hardcode_into_libs=yes
16428 dynamic_linker="$host_os dld.sl"
16429 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
16430 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16431 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16432 soname_spec='${libname}${release}${shared_ext}$major'
16433 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
16434 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16438 dynamic_linker="$host_os dld.sl"
16439 shlibpath_var=SHLIB_PATH
16440 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
16441 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16442 soname_spec='${libname}${release}${shared_ext}$major'
16445 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
16446 postinstall_cmds='chmod 555 $lib'
16447 # or fails outright, so override atomically:
16448 install_override_mode=555
16452 version_type=linux # correct to gnu/linux during the next big refactor
16455 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16456 soname_spec='${libname}${release}${shared_ext}$major'
16457 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
16458 shlibpath_var=LD_LIBRARY_PATH
16459 shlibpath_overrides_runpath=no
16460 hardcode_into_libs=yes
16463 irix5* | irix6* | nonstopux*)
16465 nonstopux*) version_type=nonstopux ;;
16467 if test "$lt_cv_prog_gnu_ld" = yes; then
16468 version_type=linux # correct to gnu/linux during the next big refactor
16475 soname_spec='${libname}${release}${shared_ext}$major'
16476 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
16478 irix5* | nonstopux*)
16479 libsuff= shlibsuff=
16482 case $LD in # libtool.m4 will add one of these switches to LD
16483 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
16484 libsuff= shlibsuff= libmagic=32-bit;;
16485 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
16486 libsuff=32 shlibsuff=N32 libmagic=N32;;
16487 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
16488 libsuff=64 shlibsuff=64 libmagic=64-bit;;
16489 *) libsuff= shlibsuff= libmagic=never-match;;
16493 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
16494 shlibpath_overrides_runpath=no
16495 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
16496 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
16497 hardcode_into_libs=yes
16500 # No shared lib support for Linux oldld, aout, or coff.
16501 linux*oldld* | linux*aout* | linux*coff*)
16505 # This must be glibc/ELF.
16506 linux* | k*bsd*-gnu | kopensolaris*-gnu)
16507 version_type=linux # correct to gnu/linux during the next big refactor
16510 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16511 soname_spec='${libname}${release}${shared_ext}$major'
16512 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
16513 shlibpath_var=LD_LIBRARY_PATH
16514 shlibpath_overrides_runpath=no
16516 # Some binutils ld are patched to set DT_RUNPATH
16517 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
16518 $as_echo_n "(cached) " >&6
16520 lt_cv_shlibpath_overrides_runpath=no
16521 save_LDFLAGS=$LDFLAGS
16522 save_libdir=$libdir
16523 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
16524 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
16525 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16526 /* end confdefs.h. */
16536 if ac_fn_cxx_try_link "$LINENO"; then :
16537 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
16538 lt_cv_shlibpath_overrides_runpath=yes
16541 rm -f core conftest.err conftest.$ac_objext \
16542 conftest$ac_exeext conftest.$ac_ext
16543 LDFLAGS=$save_LDFLAGS
16544 libdir=$save_libdir
16548 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
16550 # This implies no fast_install, which is unacceptable.
16551 # Some rework will be needed to allow for fast_install
16552 # before this can be enabled.
16553 hardcode_into_libs=yes
16555 # Append ld.so.conf contents to the search path
16556 if test -f /etc/ld.so.conf; then
16557 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' ' '`
16558 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
16561 # We used to test for /lib/ld.so.1 and disable shared libraries on
16562 # powerpc, because MkLinux only supported shared libraries with the
16563 # GNU dynamic linker. Since this was broken with cross compilers,
16564 # most powerpc-linux boxes support dynamic linking these days and
16565 # people can always --disable-shared, the test was removed, and we
16566 # assume the GNU/Linux dynamic linker is in use.
16567 dynamic_linker='GNU/Linux ld.so'
16574 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
16575 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16576 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16577 dynamic_linker='NetBSD (a.out) ld.so'
16579 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16580 soname_spec='${libname}${release}${shared_ext}$major'
16581 dynamic_linker='NetBSD ld.elf_so'
16583 shlibpath_var=LD_LIBRARY_PATH
16584 shlibpath_overrides_runpath=yes
16585 hardcode_into_libs=yes
16589 version_type=linux # correct to gnu/linux during the next big refactor
16590 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16591 shlibpath_var=LD_LIBRARY_PATH
16592 shlibpath_overrides_runpath=yes
16599 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16600 soname_spec='${libname}${release}${shared_ext}$major'
16601 shlibpath_var=LD_LIBRARY_PATH
16602 shlibpath_overrides_runpath=no
16603 hardcode_into_libs=yes
16604 dynamic_linker='ldqnx.so'
16609 sys_lib_dlsearch_path_spec="/usr/lib"
16611 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
16613 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
16614 *) need_version=no ;;
16616 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16617 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16618 shlibpath_var=LD_LIBRARY_PATH
16619 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16621 openbsd2.[89] | openbsd2.[89].*)
16622 shlibpath_overrides_runpath=no
16625 shlibpath_overrides_runpath=yes
16629 shlibpath_overrides_runpath=yes
16634 libname_spec='$name'
16637 library_names_spec='$libname${shared_ext} $libname.a'
16638 dynamic_linker='OS/2 ld.exe'
16639 shlibpath_var=LIBPATH
16642 osf3* | osf4* | osf5*)
16646 soname_spec='${libname}${release}${shared_ext}$major'
16647 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16648 shlibpath_var=LD_LIBRARY_PATH
16649 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
16650 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
16658 version_type=linux # correct to gnu/linux during the next big refactor
16661 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16662 soname_spec='${libname}${release}${shared_ext}$major'
16663 shlibpath_var=LD_LIBRARY_PATH
16664 shlibpath_overrides_runpath=yes
16665 hardcode_into_libs=yes
16666 # ldd complains unless libraries are executable
16667 postinstall_cmds='chmod +x $lib'
16672 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16673 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
16674 shlibpath_var=LD_LIBRARY_PATH
16675 shlibpath_overrides_runpath=yes
16676 if test "$with_gnu_ld" = yes; then
16683 version_type=linux # correct to gnu/linux during the next big refactor
16684 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16685 soname_spec='${libname}${release}${shared_ext}$major'
16686 shlibpath_var=LD_LIBRARY_PATH
16687 case $host_vendor in
16689 shlibpath_overrides_runpath=no
16691 runpath_var=LD_RUN_PATH
16699 shlibpath_overrides_runpath=no
16700 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
16706 if test -d /usr/nec ;then
16707 version_type=linux # correct to gnu/linux during the next big refactor
16708 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
16709 soname_spec='$libname${shared_ext}.$major'
16710 shlibpath_var=LD_LIBRARY_PATH
16714 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
16715 version_type=freebsd-elf
16718 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16719 soname_spec='${libname}${release}${shared_ext}$major'
16720 shlibpath_var=LD_LIBRARY_PATH
16721 shlibpath_overrides_runpath=yes
16722 hardcode_into_libs=yes
16723 if test "$with_gnu_ld" = yes; then
16724 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
16726 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
16729 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
16733 sys_lib_dlsearch_path_spec='/usr/lib'
16737 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
16738 version_type=linux # correct to gnu/linux during the next big refactor
16741 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16742 shlibpath_var=LD_LIBRARY_PATH
16743 shlibpath_overrides_runpath=no
16744 hardcode_into_libs=yes
16748 version_type=linux # correct to gnu/linux during the next big refactor
16749 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16750 soname_spec='${libname}${release}${shared_ext}$major'
16751 shlibpath_var=LD_LIBRARY_PATH
16758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
16759 $as_echo "$dynamic_linker" >&6; }
16760 test "$dynamic_linker" = no && can_build_shared=no
16762 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16763 if test "$GCC" = yes; then
16764 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16767 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
16768 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
16770 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
16771 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
16811 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
16812 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
16813 hardcode_action_CXX=
16814 if test -n "$hardcode_libdir_flag_spec_CXX" ||
16815 test -n "$runpath_var_CXX" ||
16816 test "X$hardcode_automatic_CXX" = "Xyes" ; then
16818 # We can hardcode non-existent directories.
16819 if test "$hardcode_direct_CXX" != no &&
16820 # If the only mechanism to avoid hardcoding is shlibpath_var, we
16821 # have to relink, otherwise we might link with an installed library
16822 # when we should be linking with a yet-to-be-installed one
16823 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
16824 test "$hardcode_minus_L_CXX" != no; then
16825 # Linking always hardcodes the temporary library directory.
16826 hardcode_action_CXX=relink
16828 # We can link without hardcoding, and we can hardcode nonexisting dirs.
16829 hardcode_action_CXX=immediate
16832 # We cannot hardcode anything, or else we can only hardcode existing
16834 hardcode_action_CXX=unsupported
16836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
16837 $as_echo "$hardcode_action_CXX" >&6; }
16839 if test "$hardcode_action_CXX" = relink ||
16840 test "$inherit_rpath_CXX" = yes; then
16841 # Fast installation is not supported
16842 enable_fast_install=no
16843 elif test "$shlibpath_overrides_runpath" = yes ||
16844 test "$enable_shared" = no; then
16845 # Fast installation is not necessary
16846 enable_fast_install=needless
16855 fi # test -n "$compiler"
16858 CFLAGS=$lt_save_CFLAGS
16862 with_gnu_ld=$lt_save_with_gnu_ld
16863 lt_cv_path_LDCXX=$lt_cv_path_LD
16864 lt_cv_path_LD=$lt_save_path_LD
16865 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
16866 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
16867 fi # test "$_lt_caught_CXX_error" != yes
16870 ac_cpp='$CPP $CPPFLAGS'
16871 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16872 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16873 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16889 ac_config_commands="$ac_config_commands libtool"
16894 # Only expand once:
16897 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
16898 $as_echo_n "checking whether ln -s works... " >&6; }
16900 if test "$LN_S" = "ln -s"; then
16901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16902 $as_echo "yes" >&6; }
16904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
16905 $as_echo "no, using $LN_S" >&6; }
16909 # Check for GCC visibility feature
16914 VISIBILITY_CXXFLAGS=
16916 if test -n "$GCC"; then
16917 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the -Werror option is usable" >&5
16918 $as_echo_n "checking whether the -Werror option is usable... " >&6; }
16919 if ${pcre_cv_cc_vis_werror+:} false; then :
16920 $as_echo_n "(cached) " >&6
16923 pcre_save_CFLAGS="$CFLAGS"
16924 CFLAGS="$CFLAGS -Werror"
16925 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16926 /* end confdefs.h. */
16936 if ac_fn_c_try_compile "$LINENO"; then :
16937 pcre_cv_cc_vis_werror=yes
16939 pcre_cv_cc_vis_werror=no
16941 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16942 CFLAGS="$pcre_save_CFLAGS"
16945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pcre_cv_cc_vis_werror" >&5
16946 $as_echo "$pcre_cv_cc_vis_werror" >&6; }
16947 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for simple visibility declarations" >&5
16948 $as_echo_n "checking for simple visibility declarations... " >&6; }
16949 if ${pcre_cv_cc_visibility+:} false; then :
16950 $as_echo_n "(cached) " >&6
16953 pcre_save_CFLAGS="$CFLAGS"
16954 CFLAGS="$CFLAGS -fvisibility=hidden"
16955 if test $pcre_cv_cc_vis_werror = yes; then
16956 CFLAGS="$CFLAGS -Werror"
16958 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16959 /* end confdefs.h. */
16960 extern __attribute__((__visibility__("hidden"))) int hiddenvar;
16961 extern __attribute__((__visibility__("default"))) int exportedvar;
16962 extern __attribute__((__visibility__("hidden"))) int hiddenfunc (void);
16963 extern __attribute__((__visibility__("default"))) int exportedfunc (void);
16964 void dummyfunc (void) {}
16974 if ac_fn_c_try_compile "$LINENO"; then :
16975 pcre_cv_cc_visibility=yes
16977 pcre_cv_cc_visibility=no
16979 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16980 CFLAGS="$pcre_save_CFLAGS"
16983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pcre_cv_cc_visibility" >&5
16984 $as_echo "$pcre_cv_cc_visibility" >&6; }
16985 if test $pcre_cv_cc_visibility = yes; then
16986 VISIBILITY_CFLAGS="-fvisibility=hidden"
16987 VISIBILITY_CXXFLAGS="-fvisibility=hidden -fvisibility-inlines-hidden"
16990 $as_echo "#define PCRE_EXP_DECL extern __attribute__ ((visibility (\"default\")))" >>confdefs.h
16993 $as_echo "#define PCRE_EXP_DEFN __attribute__ ((visibility (\"default\")))" >>confdefs.h
16996 $as_echo "#define PCRE_EXP_DATA_DEFN __attribute__ ((visibility (\"default\")))" >>confdefs.h
16999 $as_echo "#define PCREPOSIX_EXP_DECL extern __attribute__ ((visibility (\"default\")))" >>confdefs.h
17002 $as_echo "#define PCREPOSIX_EXP_DEFN extern __attribute__ ((visibility (\"default\")))" >>confdefs.h
17005 $as_echo "#define PCRECPP_EXP_DECL extern __attribute__ ((visibility (\"default\")))" >>confdefs.h
17008 $as_echo "#define PCRECPP_EXP_DEFN __attribute__ ((visibility (\"default\")))" >>confdefs.h
17016 cat >>confdefs.h <<_ACEOF
17017 #define HAVE_VISIBILITY $HAVE_VISIBILITY
17027 PCRE_DATE="2014-04-04"
17029 if test "$PCRE_MINOR" = "08" -o "$PCRE_MINOR" = "09"
17032 echo "*** Minor version number $PCRE_MINOR must not be used. ***"
17033 echo "*** Use only 01 to 07 or 10 onwards, to avoid octal issues. ***"
17043 # Set a more sensible default value for $(htmldir).
17044 if test "x$htmldir" = 'x${docdir}'
17046 htmldir='${docdir}/html'
17049 # Handle --disable-pcre8 (enabled by default)
17050 # Check whether --enable-pcre8 was given.
17051 if test "${enable_pcre8+set}" = set; then :
17052 enableval=$enable_pcre8;
17059 # Handle --enable-pcre16 (disabled by default)
17060 # Check whether --enable-pcre16 was given.
17061 if test "${enable_pcre16+set}" = set; then :
17062 enableval=$enable_pcre16;
17064 enable_pcre16=unset
17069 # Handle --enable-pcre32 (disabled by default)
17070 # Check whether --enable-pcre32 was given.
17071 if test "${enable_pcre32+set}" = set; then :
17072 enableval=$enable_pcre32;
17074 enable_pcre32=unset
17079 # Handle --disable-cpp. The substitution of enable_cpp is needed for use in
17081 # Check whether --enable-cpp was given.
17082 if test "${enable_cpp+set}" = set; then :
17083 enableval=$enable_cpp;
17090 # Handle --enable-jit (disabled by default)
17091 # Check whether --enable-jit was given.
17092 if test "${enable_jit+set}" = set; then :
17093 enableval=$enable_jit;
17099 # Handle --disable-pcregrep-jit (enabled by default)
17100 # Check whether --enable-pcregrep-jit was given.
17101 if test "${enable_pcregrep_jit+set}" = set; then :
17102 enableval=$enable_pcregrep_jit;
17104 enable_pcregrep_jit=yes
17108 # Handle --enable-rebuild-chartables
17109 # Check whether --enable-rebuild-chartables was given.
17110 if test "${enable_rebuild_chartables+set}" = set; then :
17111 enableval=$enable_rebuild_chartables;
17113 enable_rebuild_chartables=no
17117 # Handle --enable-utf8 (disabled by default)
17118 # Check whether --enable-utf8 was given.
17119 if test "${enable_utf8+set}" = set; then :
17120 enableval=$enable_utf8;
17126 # Handle --enable-utf (disabled by default)
17127 # Check whether --enable-utf was given.
17128 if test "${enable_utf+set}" = set; then :
17129 enableval=$enable_utf;
17135 # Handle --enable-unicode-properties
17136 # Check whether --enable-unicode-properties was given.
17137 if test "${enable_unicode_properties+set}" = set; then :
17138 enableval=$enable_unicode_properties;
17140 enable_unicode_properties=no
17144 # Handle newline options
17146 # Check whether --enable-newline-is-cr was given.
17147 if test "${enable_newline_is_cr+set}" = set; then :
17148 enableval=$enable_newline_is_cr; ac_pcre_newline=cr
17151 # Check whether --enable-newline-is-lf was given.
17152 if test "${enable_newline_is_lf+set}" = set; then :
17153 enableval=$enable_newline_is_lf; ac_pcre_newline=lf
17156 # Check whether --enable-newline-is-crlf was given.
17157 if test "${enable_newline_is_crlf+set}" = set; then :
17158 enableval=$enable_newline_is_crlf; ac_pcre_newline=crlf
17161 # Check whether --enable-newline-is-anycrlf was given.
17162 if test "${enable_newline_is_anycrlf+set}" = set; then :
17163 enableval=$enable_newline_is_anycrlf; ac_pcre_newline=anycrlf
17166 # Check whether --enable-newline-is-any was given.
17167 if test "${enable_newline_is_any+set}" = set; then :
17168 enableval=$enable_newline_is_any; ac_pcre_newline=any
17171 enable_newline="$ac_pcre_newline"
17173 # Handle --enable-bsr-anycrlf
17174 # Check whether --enable-bsr-anycrlf was given.
17175 if test "${enable_bsr_anycrlf+set}" = set; then :
17176 enableval=$enable_bsr_anycrlf;
17178 enable_bsr_anycrlf=no
17182 # Handle --enable-ebcdic
17183 # Check whether --enable-ebcdic was given.
17184 if test "${enable_ebcdic+set}" = set; then :
17185 enableval=$enable_ebcdic;
17191 # Handle --enable-ebcdic-nl25
17192 # Check whether --enable-ebcdic-nl25 was given.
17193 if test "${enable_ebcdic_nl25+set}" = set; then :
17194 enableval=$enable_ebcdic_nl25;
17196 enable_ebcdic_nl25=no
17200 # Handle --disable-stack-for-recursion
17201 # Check whether --enable-stack-for-recursion was given.
17202 if test "${enable_stack_for_recursion+set}" = set; then :
17203 enableval=$enable_stack_for_recursion;
17205 enable_stack_for_recursion=yes
17209 # Handle --enable-pcregrep-libz
17210 # Check whether --enable-pcregrep-libz was given.
17211 if test "${enable_pcregrep_libz+set}" = set; then :
17212 enableval=$enable_pcregrep_libz;
17214 enable_pcregrep_libz=no
17218 # Handle --enable-pcregrep-libbz2
17219 # Check whether --enable-pcregrep-libbz2 was given.
17220 if test "${enable_pcregrep_libbz2+set}" = set; then :
17221 enableval=$enable_pcregrep_libbz2;
17223 enable_pcregrep_libbz2=no
17227 # Handle --with-pcregrep-bufsize=N
17229 # Check whether --with-pcregrep-bufsize was given.
17230 if test "${with_pcregrep_bufsize+set}" = set; then :
17231 withval=$with_pcregrep_bufsize;
17233 with_pcregrep_bufsize=20480
17237 # Handle --enable-pcretest-libedit
17238 # Check whether --enable-pcretest-libedit was given.
17239 if test "${enable_pcretest_libedit+set}" = set; then :
17240 enableval=$enable_pcretest_libedit;
17242 enable_pcretest_libedit=no
17246 # Handle --enable-pcretest-libreadline
17247 # Check whether --enable-pcretest-libreadline was given.
17248 if test "${enable_pcretest_libreadline+set}" = set; then :
17249 enableval=$enable_pcretest_libreadline;
17251 enable_pcretest_libreadline=no
17255 # Handle --with-posix-malloc-threshold=NBYTES
17257 # Check whether --with-posix-malloc-threshold was given.
17258 if test "${with_posix_malloc_threshold+set}" = set; then :
17259 withval=$with_posix_malloc_threshold;
17261 with_posix_malloc_threshold=10
17265 # Handle --with-link-size=N
17267 # Check whether --with-link-size was given.
17268 if test "${with_link_size+set}" = set; then :
17269 withval=$with_link_size;
17275 # Handle --with-parens-nest-limit=N
17277 # Check whether --with-parens-nest-limit was given.
17278 if test "${with_parens_nest_limit+set}" = set; then :
17279 withval=$with_parens_nest_limit;
17281 with_parens_nest_limit=250
17285 # Handle --with-match-limit=N
17287 # Check whether --with-match-limit was given.
17288 if test "${with_match_limit+set}" = set; then :
17289 withval=$with_match_limit;
17291 with_match_limit=10000000
17295 # Handle --with-match-limit_recursion=N
17297 # Note: In config.h, the default is to define MATCH_LIMIT_RECURSION
17298 # symbolically as MATCH_LIMIT, which in turn is defined to be some numeric
17299 # value (e.g. 10000000). MATCH_LIMIT_RECURSION can otherwise be set to some
17300 # different numeric value (or even the same numeric value as MATCH_LIMIT,
17301 # though no longer defined in terms of the latter).
17304 # Check whether --with-match-limit-recursion was given.
17305 if test "${with_match_limit_recursion+set}" = set; then :
17306 withval=$with_match_limit_recursion;
17308 with_match_limit_recursion=MATCH_LIMIT
17312 # Handle --enable-valgrind
17313 # Check whether --enable-valgrind was given.
17314 if test "${enable_valgrind+set}" = set; then :
17315 enableval=$enable_valgrind;
17321 # Enable code coverage reports using gcov
17322 # Check whether --enable-coverage was given.
17323 if test "${enable_coverage+set}" = set; then :
17324 enableval=$enable_coverage;
17330 # Copy enable_utf8 value to enable_utf for compatibility reasons
17331 if test "x$enable_utf8" != "xunset"
17333 if test "x$enable_utf" != "xunset"
17335 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
17337 enable_utf=$enable_utf8
17340 # Set the default value for pcre8
17341 if test "x$enable_pcre8" = "xunset"
17346 # Set the default value for pcre16
17347 if test "x$enable_pcre16" = "xunset"
17352 # Set the default value for pcre32
17353 if test "x$enable_pcre32" = "xunset"
17358 # Make sure enable_pcre8 or enable_pcre16 was set
17359 if test "x$enable_pcre8$enable_pcre16$enable_pcre32" = "xnonono"
17361 as_fn_error $? "At least one of 8, 16 or 32 bit pcre library must be enabled" "$LINENO" 5
17364 # Make sure that if enable_unicode_properties was set, that UTF support is enabled.
17365 if test "x$enable_unicode_properties" = "xyes"
17367 if test "x$enable_utf" = "xno"
17369 as_fn_error $? "support for Unicode properties requires UTF-8/16/32 support" "$LINENO" 5
17374 # enable_utf is disabled by default.
17375 if test "x$enable_utf" = "xunset"
17380 # enable_cpp copies the value of enable_pcre8 by default
17381 if test "x$enable_cpp" = "xunset"
17383 enable_cpp=$enable_pcre8
17386 # Make sure that if enable_cpp was set, that enable_pcre8 support is enabled
17387 if test "x$enable_cpp" = "xyes"
17389 if test "x$enable_pcre8" = "xno"
17391 as_fn_error $? "C++ library requires pcre library with 8 bit characters" "$LINENO" 5
17395 # Convert the newline identifier into the appropriate integer value. The first
17396 # three are ASCII values 0x0a, 0x0d, and 0x0d0a, but if EBCDIC is enabled, they
17397 # are changed below.
17399 case "$enable_newline" in
17400 lf) ac_pcre_newline_value=10 ;;
17401 cr) ac_pcre_newline_value=13 ;;
17402 crlf) ac_pcre_newline_value=3338 ;;
17403 anycrlf) ac_pcre_newline_value=-2 ;;
17404 any) ac_pcre_newline_value=-1 ;;
17406 as_fn_error $? "invalid argument \"$enable_newline\" to --enable-newline option" "$LINENO" 5
17410 # --enable-ebcdic-nl25 implies --enable-ebcdic
17411 if test "x$enable_ebcdic_nl25" = "xyes"; then
17415 # Make sure that if enable_ebcdic is set, rebuild_chartables is also enabled,
17416 # and the newline value is adjusted appropriately (CR is still 13, but LF is
17417 # 21 or 37). Also check that UTF support is not requested, because PCRE cannot
17418 # handle EBCDIC and UTF in the same build. To do so it would need to use
17419 # different character constants depending on the mode.
17421 if test "x$enable_ebcdic" = "xyes"; then
17422 enable_rebuild_chartables=yes
17424 if test "x$enable_utf" = "xyes"; then
17425 as_fn_error $? "support for EBCDIC and UTF-8/16/32 cannot be enabled at the same time" "$LINENO" 5
17428 if test "x$enable_ebcdic_nl25" = "xno"; then
17429 case "$ac_pcre_newline_value" in
17430 10) ac_pcre_newline_value=21 ;;
17431 3338) ac_pcre_newline_value=3349 ;;
17434 case "$ac_pcre_newline_value" in
17435 10) ac_pcre_newline_value=37 ;;
17436 3338) ac_pcre_newline_value=3365 ;;
17441 # Check argument to --with-link-size
17442 case "$with_link_size" in
17445 as_fn_error $? "invalid argument \"$with_link_size\" to --with-link-size option" "$LINENO" 5
17451 # Checks for header files.
17452 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
17453 $as_echo_n "checking for ANSI C header files... " >&6; }
17454 if ${ac_cv_header_stdc+:} false; then :
17455 $as_echo_n "(cached) " >&6
17457 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17458 /* end confdefs.h. */
17459 #include <stdlib.h>
17460 #include <stdarg.h>
17461 #include <string.h>
17472 if ac_fn_c_try_compile "$LINENO"; then :
17473 ac_cv_header_stdc=yes
17475 ac_cv_header_stdc=no
17477 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17479 if test $ac_cv_header_stdc = yes; then
17480 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
17481 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17482 /* end confdefs.h. */
17483 #include <string.h>
17486 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
17487 $EGREP "memchr" >/dev/null 2>&1; then :
17490 ac_cv_header_stdc=no
17496 if test $ac_cv_header_stdc = yes; then
17497 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
17498 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17499 /* end confdefs.h. */
17500 #include <stdlib.h>
17503 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
17504 $EGREP "free" >/dev/null 2>&1; then :
17507 ac_cv_header_stdc=no
17513 if test $ac_cv_header_stdc = yes; then
17514 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
17515 if test "$cross_compiling" = yes; then :
17518 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17519 /* end confdefs.h. */
17521 #include <stdlib.h>
17522 #if ((' ' & 0x0FF) == 0x020)
17523 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
17524 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
17526 # define ISLOWER(c) \
17527 (('a' <= (c) && (c) <= 'i') \
17528 || ('j' <= (c) && (c) <= 'r') \
17529 || ('s' <= (c) && (c) <= 'z'))
17530 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
17533 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
17538 for (i = 0; i < 256; i++)
17539 if (XOR (islower (i), ISLOWER (i))
17540 || toupper (i) != TOUPPER (i))
17545 if ac_fn_c_try_run "$LINENO"; then :
17548 ac_cv_header_stdc=no
17550 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
17551 conftest.$ac_objext conftest.beam conftest.$ac_ext
17556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
17557 $as_echo "$ac_cv_header_stdc" >&6; }
17558 if test $ac_cv_header_stdc = yes; then
17560 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
17564 for ac_header in limits.h sys/types.h sys/stat.h dirent.h
17566 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
17567 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
17568 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
17569 cat >>confdefs.h <<_ACEOF
17570 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
17577 for ac_header in windows.h
17579 ac_fn_c_check_header_mongrel "$LINENO" "windows.h" "ac_cv_header_windows_h" "$ac_includes_default"
17580 if test "x$ac_cv_header_windows_h" = xyes; then :
17581 cat >>confdefs.h <<_ACEOF
17582 #define HAVE_WINDOWS_H 1
17590 # The files below are C++ header files.
17591 pcre_have_type_traits="0"
17592 pcre_have_bits_type_traits="0"
17594 if test "x$enable_cpp" = "xyes" -a -z "$CXX"; then
17595 as_fn_error $? "You need a C++ compiler for C++ support." "$LINENO" 5
17598 if test "x$enable_cpp" = "xyes" -a -n "$CXX"
17601 ac_cpp='$CXXCPP $CPPFLAGS'
17602 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17603 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17604 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17607 # Older versions of pcre defined pcrecpp::no_arg, but in new versions
17608 # it's called pcrecpp::RE::no_arg. For backwards ABI compatibility,
17609 # we want to make one an alias for the other. Different systems do
17610 # this in different ways. Some systems, for instance, can do it via
17611 # a linker flag: -alias (for os x 10.5) or -i (for os x <=10.4).
17612 OLD_LDFLAGS="$LDFLAGS"
17613 for flag in "-alias,__ZN7pcrecpp2RE6no_argE,__ZN7pcrecpp6no_argE" \
17614 "-i__ZN7pcrecpp6no_argE:__ZN7pcrecpp2RE6no_argE"; do
17615 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alias support in the linker" >&5
17616 $as_echo_n "checking for alias support in the linker... " >&6; }
17617 LDFLAGS="$OLD_LDFLAGS -Wl,$flag"
17618 # We try to run the linker with this new ld flag. If the link fails,
17619 # we give up and remove the new flag from LDFLAGS.
17620 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17621 /* end confdefs.h. */
17622 namespace pcrecpp {
17623 class RE { static int no_arg; };
17634 if ac_fn_cxx_try_link "$LINENO"; then :
17635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17636 $as_echo "yes" >&6; };
17637 EXTRA_LIBPCRECPP_LDFLAGS="$EXTRA_LIBPCRECPP_LDFLAGS -Wl,$flag";
17640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17641 $as_echo "no" >&6; }
17643 rm -f core conftest.err conftest.$ac_objext \
17644 conftest$ac_exeext conftest.$ac_ext
17646 LDFLAGS="$OLD_LDFLAGS"
17648 # We could be more clever here, given we're doing AC_SUBST with this
17649 # (eg set a var to be the name of the include file we want). But we're not
17650 # so it's easy to change back to 'regular' autoconf vars if we needed to.
17652 for ac_header in string
17654 ac_fn_cxx_check_header_mongrel "$LINENO" "string" "ac_cv_header_string" "$ac_includes_default"
17655 if test "x$ac_cv_header_string" = xyes; then :
17656 cat >>confdefs.h <<_ACEOF
17657 #define HAVE_STRING 1
17659 pcre_have_cpp_headers="1"
17661 pcre_have_cpp_headers="0"
17666 for ac_header in bits/type_traits.h
17668 ac_fn_cxx_check_header_mongrel "$LINENO" "bits/type_traits.h" "ac_cv_header_bits_type_traits_h" "$ac_includes_default"
17669 if test "x$ac_cv_header_bits_type_traits_h" = xyes; then :
17670 cat >>confdefs.h <<_ACEOF
17671 #define HAVE_BITS_TYPE_TRAITS_H 1
17673 pcre_have_bits_type_traits="1"
17675 pcre_have_bits_type_traits="0"
17680 for ac_header in type_traits.h
17682 ac_fn_cxx_check_header_mongrel "$LINENO" "type_traits.h" "ac_cv_header_type_traits_h" "$ac_includes_default"
17683 if test "x$ac_cv_header_type_traits_h" = xyes; then :
17684 cat >>confdefs.h <<_ACEOF
17685 #define HAVE_TYPE_TRAITS_H 1
17687 pcre_have_type_traits="1"
17689 pcre_have_type_traits="0"
17695 # (This isn't c++-specific, but is only used in pcrecpp.cc, so try this
17696 # in a c++ context. This matters becuase strtoimax is C99 and may not
17697 # be supported by the C++ compiler.)
17698 # Figure out how to create a longlong from a string: strtoll and
17699 # equiv. It's not enough to call AC_CHECK_FUNCS: hpux has a
17700 # strtoll, for instance, but it only takes 2 args instead of 3!
17701 # We have to call AH_TEMPLATE since AC_DEFINE_UNQUOTED below is complex.
17707 for fn in strtoq strtoll _strtoi64 strtoimax; do
17708 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $fn" >&5
17709 $as_echo_n "checking for $fn... " >&6; }
17710 if test "$fn" = strtoimax; then
17715 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17716 /* end confdefs.h. */
17717 #include <$include>
17721 char* e; return $fn("100", &e, 10)
17726 if ac_fn_cxx_try_compile "$LINENO"; then :
17727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17728 $as_echo "yes" >&6; }
17730 cat >>confdefs.h <<_ACEOF
17731 #define HAVE_`echo $fn | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ` 1
17737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17738 $as_echo "no" >&6; }
17740 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17743 if test "$have_strto_fn" = 1; then
17744 ac_fn_cxx_check_type "$LINENO" "long long" "ac_cv_type_long_long" "$ac_includes_default"
17745 if test "x$ac_cv_type_long_long" = xyes; then :
17747 cat >>confdefs.h <<_ACEOF
17748 #define HAVE_LONG_LONG 1
17751 pcre_have_long_long="1"
17753 pcre_have_long_long="0"
17756 ac_fn_cxx_check_type "$LINENO" "unsigned long long" "ac_cv_type_unsigned_long_long" "$ac_includes_default"
17757 if test "x$ac_cv_type_unsigned_long_long" = xyes; then :
17759 cat >>confdefs.h <<_ACEOF
17760 #define HAVE_UNSIGNED_LONG_LONG 1
17763 pcre_have_ulong_long="1"
17765 pcre_have_ulong_long="0"
17769 pcre_have_long_long="0"
17770 pcre_have_ulong_long="0"
17776 ac_cpp='$CPP $CPPFLAGS'
17777 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17778 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17779 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17782 # Using AC_SUBST eliminates the need to include config.h in a public .h file
17786 # Conditional compilation
17787 if test "x$enable_pcre8" = "xyes"; then
17789 WITH_PCRE8_FALSE='#'
17791 WITH_PCRE8_TRUE='#'
17795 if test "x$enable_pcre16" = "xyes"; then
17797 WITH_PCRE16_FALSE='#'
17799 WITH_PCRE16_TRUE='#'
17803 if test "x$enable_pcre32" = "xyes"; then
17805 WITH_PCRE32_FALSE='#'
17807 WITH_PCRE32_TRUE='#'
17811 if test "x$enable_cpp" = "xyes"; then
17812 WITH_PCRE_CPP_TRUE=
17813 WITH_PCRE_CPP_FALSE='#'
17815 WITH_PCRE_CPP_TRUE='#'
17816 WITH_PCRE_CPP_FALSE=
17819 if test "x$enable_rebuild_chartables" = "xyes"; then
17820 WITH_REBUILD_CHARTABLES_TRUE=
17821 WITH_REBUILD_CHARTABLES_FALSE='#'
17823 WITH_REBUILD_CHARTABLES_TRUE='#'
17824 WITH_REBUILD_CHARTABLES_FALSE=
17827 if test "x$enable_jit" = "xyes"; then
17835 if test "x$enable_utf" = "xyes"; then
17843 if test "x$enable_valgrind" = "xyes"; then
17844 WITH_VALGRIND_TRUE=
17845 WITH_VALGRIND_FALSE='#'
17847 WITH_VALGRIND_TRUE='#'
17848 WITH_VALGRIND_FALSE=
17852 # Checks for typedefs, structures, and compiler characteristics.
17854 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
17855 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
17856 if ${ac_cv_c_const+:} false; then :
17857 $as_echo_n "(cached) " >&6
17859 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17860 /* end confdefs.h. */
17866 #ifndef __cplusplus
17867 /* Ultrix mips cc rejects this sort of thing. */
17868 typedef int charset[2];
17869 const charset cs = { 0, 0 };
17870 /* SunOS 4.1.1 cc rejects this. */
17871 char const *const *pcpcc;
17873 /* NEC SVR4.0.2 mips cc rejects this. */
17874 struct point {int x, y;};
17875 static struct point const zero = {0,0};
17876 /* AIX XL C 1.02.0.0 rejects this.
17877 It does not let you subtract one const X* pointer from another in
17878 an arm of an if-expression whose if-part is not a constant
17880 const char *g = "string";
17881 pcpcc = &g + (g ? g-g : 0);
17882 /* HPUX 7.0 cc rejects these. */
17884 ppc = (char**) pcpcc;
17885 pcpcc = (char const *const *) ppc;
17886 { /* SCO 3.2v4 cc rejects this sort of thing. */
17889 char const *s = 0 ? (char *) 0 : (char const *) 0;
17894 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
17895 int x[] = {25, 17};
17896 const int *foo = &x[0];
17899 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
17900 typedef const int *iptr;
17904 { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
17905 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
17906 struct s { int j; const int *ap[3]; } bx;
17907 struct s *b = &bx; b->j = 5;
17909 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
17910 const int foo = 10;
17911 if (!foo) return 0;
17913 return !cs[0] && !zero.x;
17920 if ac_fn_c_try_compile "$LINENO"; then :
17925 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
17928 $as_echo "$ac_cv_c_const" >&6; }
17929 if test $ac_cv_c_const = no; then
17931 $as_echo "#define const /**/" >>confdefs.h
17935 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
17936 if test "x$ac_cv_type_size_t" = xyes; then :
17940 cat >>confdefs.h <<_ACEOF
17941 #define size_t unsigned int
17947 # Checks for library functions.
17949 for ac_func in bcopy memmove strerror
17951 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
17952 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
17953 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
17954 cat >>confdefs.h <<_ACEOF
17955 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
17962 # Check for the availability of libz (aka zlib)
17964 for ac_header in zlib.h
17966 ac_fn_c_check_header_mongrel "$LINENO" "zlib.h" "ac_cv_header_zlib_h" "$ac_includes_default"
17967 if test "x$ac_cv_header_zlib_h" = xyes; then :
17968 cat >>confdefs.h <<_ACEOF
17969 #define HAVE_ZLIB_H 1
17976 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gzopen in -lz" >&5
17977 $as_echo_n "checking for gzopen in -lz... " >&6; }
17978 if ${ac_cv_lib_z_gzopen+:} false; then :
17979 $as_echo_n "(cached) " >&6
17981 ac_check_lib_save_LIBS=$LIBS
17983 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17984 /* end confdefs.h. */
17986 /* Override any GCC internal prototype to avoid an error.
17987 Use char because int might match the return type of a GCC
17988 builtin and then its argument prototype would still apply. */
18001 if ac_fn_c_try_link "$LINENO"; then :
18002 ac_cv_lib_z_gzopen=yes
18004 ac_cv_lib_z_gzopen=no
18006 rm -f core conftest.err conftest.$ac_objext \
18007 conftest$ac_exeext conftest.$ac_ext
18008 LIBS=$ac_check_lib_save_LIBS
18010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_gzopen" >&5
18011 $as_echo "$ac_cv_lib_z_gzopen" >&6; }
18012 if test "x$ac_cv_lib_z_gzopen" = xyes; then :
18017 # Check for the availability of libbz2. Originally we just used AC_CHECK_LIB,
18018 # as for libz. However, this had the following problem, diagnosed and fixed by
18021 # - libbz2 uses the Pascal calling convention (WINAPI) for the functions
18023 # - The standard autoconf AC_CHECK_LIB fails to include "bzlib.h",
18024 # therefore missing the function definition.
18025 # - The compiler thus generates a "C" signature for the test function.
18026 # - The linker fails to find the "C" function.
18027 # - PCRE fails to configure if asked to do so against libbz2.
18031 # - Replace the AC_CHECK_LIB test with a custom test.
18033 for ac_header in bzlib.h
18035 ac_fn_c_check_header_mongrel "$LINENO" "bzlib.h" "ac_cv_header_bzlib_h" "$ac_includes_default"
18036 if test "x$ac_cv_header_bzlib_h" = xyes; then :
18037 cat >>confdefs.h <<_ACEOF
18038 #define HAVE_BZLIB_H 1
18046 # AC_CHECK_LIB([bz2], [BZ2_bzopen], [HAVE_LIBBZ2=1])
18048 # Custom test follows
18050 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libbz2" >&5
18051 $as_echo_n "checking for libbz2... " >&6; }
18054 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18055 /* end confdefs.h. */
18057 #ifdef HAVE_BZLIB_H
18063 return (int)BZ2_bzopen("conftest", "rb");
18068 if ac_fn_c_try_link "$LINENO"; then :
18069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18070 $as_echo "yes" >&6; };HAVE_LIBBZ2=1; break;
18072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18073 $as_echo "no" >&6; }
18075 rm -f core conftest.err conftest.$ac_objext \
18076 conftest$ac_exeext conftest.$ac_ext
18079 # Check for the availabiity of libreadline
18081 if test "$enable_pcretest_libreadline" = "yes"; then
18082 for ac_header in readline/readline.h
18084 ac_fn_c_check_header_mongrel "$LINENO" "readline/readline.h" "ac_cv_header_readline_readline_h" "$ac_includes_default"
18085 if test "x$ac_cv_header_readline_readline_h" = xyes; then :
18086 cat >>confdefs.h <<_ACEOF
18087 #define HAVE_READLINE_READLINE_H 1
18094 for ac_header in readline/history.h
18096 ac_fn_c_check_header_mongrel "$LINENO" "readline/history.h" "ac_cv_header_readline_history_h" "$ac_includes_default"
18097 if test "x$ac_cv_header_readline_history_h" = xyes; then :
18098 cat >>confdefs.h <<_ACEOF
18099 #define HAVE_READLINE_HISTORY_H 1
18106 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for readline in -lreadline" >&5
18107 $as_echo_n "checking for readline in -lreadline... " >&6; }
18108 if ${ac_cv_lib_readline_readline+:} false; then :
18109 $as_echo_n "(cached) " >&6
18111 ac_check_lib_save_LIBS=$LIBS
18112 LIBS="-lreadline $LIBS"
18113 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18114 /* end confdefs.h. */
18116 /* Override any GCC internal prototype to avoid an error.
18117 Use char because int might match the return type of a GCC
18118 builtin and then its argument prototype would still apply. */
18126 return readline ();
18131 if ac_fn_c_try_link "$LINENO"; then :
18132 ac_cv_lib_readline_readline=yes
18134 ac_cv_lib_readline_readline=no
18136 rm -f core conftest.err conftest.$ac_objext \
18137 conftest$ac_exeext conftest.$ac_ext
18138 LIBS=$ac_check_lib_save_LIBS
18140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_readline_readline" >&5
18141 $as_echo "$ac_cv_lib_readline_readline" >&6; }
18142 if test "x$ac_cv_lib_readline_readline" = xyes; then :
18143 LIBREADLINE="-lreadline"
18145 unset ac_cv_lib_readline_readline;
18146 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for readline in -lreadline" >&5
18147 $as_echo_n "checking for readline in -lreadline... " >&6; }
18148 if ${ac_cv_lib_readline_readline+:} false; then :
18149 $as_echo_n "(cached) " >&6
18151 ac_check_lib_save_LIBS=$LIBS
18152 LIBS="-lreadline -ltinfo $LIBS"
18153 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18154 /* end confdefs.h. */
18156 /* Override any GCC internal prototype to avoid an error.
18157 Use char because int might match the return type of a GCC
18158 builtin and then its argument prototype would still apply. */
18166 return readline ();
18171 if ac_fn_c_try_link "$LINENO"; then :
18172 ac_cv_lib_readline_readline=yes
18174 ac_cv_lib_readline_readline=no
18176 rm -f core conftest.err conftest.$ac_objext \
18177 conftest$ac_exeext conftest.$ac_ext
18178 LIBS=$ac_check_lib_save_LIBS
18180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_readline_readline" >&5
18181 $as_echo "$ac_cv_lib_readline_readline" >&6; }
18182 if test "x$ac_cv_lib_readline_readline" = xyes; then :
18183 LIBREADLINE="-ltinfo"
18185 unset ac_cv_lib_readline_readline;
18186 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for readline in -lreadline" >&5
18187 $as_echo_n "checking for readline in -lreadline... " >&6; }
18188 if ${ac_cv_lib_readline_readline+:} false; then :
18189 $as_echo_n "(cached) " >&6
18191 ac_check_lib_save_LIBS=$LIBS
18192 LIBS="-lreadline -lcurses $LIBS"
18193 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18194 /* end confdefs.h. */
18196 /* Override any GCC internal prototype to avoid an error.
18197 Use char because int might match the return type of a GCC
18198 builtin and then its argument prototype would still apply. */
18206 return readline ();
18211 if ac_fn_c_try_link "$LINENO"; then :
18212 ac_cv_lib_readline_readline=yes
18214 ac_cv_lib_readline_readline=no
18216 rm -f core conftest.err conftest.$ac_objext \
18217 conftest$ac_exeext conftest.$ac_ext
18218 LIBS=$ac_check_lib_save_LIBS
18220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_readline_readline" >&5
18221 $as_echo "$ac_cv_lib_readline_readline" >&6; }
18222 if test "x$ac_cv_lib_readline_readline" = xyes; then :
18223 LIBREADLINE="-lcurses"
18225 unset ac_cv_lib_readline_readline;
18226 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for readline in -lreadline" >&5
18227 $as_echo_n "checking for readline in -lreadline... " >&6; }
18228 if ${ac_cv_lib_readline_readline+:} false; then :
18229 $as_echo_n "(cached) " >&6
18231 ac_check_lib_save_LIBS=$LIBS
18232 LIBS="-lreadline -lncurses $LIBS"
18233 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18234 /* end confdefs.h. */
18236 /* Override any GCC internal prototype to avoid an error.
18237 Use char because int might match the return type of a GCC
18238 builtin and then its argument prototype would still apply. */
18246 return readline ();
18251 if ac_fn_c_try_link "$LINENO"; then :
18252 ac_cv_lib_readline_readline=yes
18254 ac_cv_lib_readline_readline=no
18256 rm -f core conftest.err conftest.$ac_objext \
18257 conftest$ac_exeext conftest.$ac_ext
18258 LIBS=$ac_check_lib_save_LIBS
18260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_readline_readline" >&5
18261 $as_echo "$ac_cv_lib_readline_readline" >&6; }
18262 if test "x$ac_cv_lib_readline_readline" = xyes; then :
18263 LIBREADLINE="-lncurses"
18265 unset ac_cv_lib_readline_readline;
18266 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for readline in -lreadline" >&5
18267 $as_echo_n "checking for readline in -lreadline... " >&6; }
18268 if ${ac_cv_lib_readline_readline+:} false; then :
18269 $as_echo_n "(cached) " >&6
18271 ac_check_lib_save_LIBS=$LIBS
18272 LIBS="-lreadline -lncursesw $LIBS"
18273 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18274 /* end confdefs.h. */
18276 /* Override any GCC internal prototype to avoid an error.
18277 Use char because int might match the return type of a GCC
18278 builtin and then its argument prototype would still apply. */
18286 return readline ();
18291 if ac_fn_c_try_link "$LINENO"; then :
18292 ac_cv_lib_readline_readline=yes
18294 ac_cv_lib_readline_readline=no
18296 rm -f core conftest.err conftest.$ac_objext \
18297 conftest$ac_exeext conftest.$ac_ext
18298 LIBS=$ac_check_lib_save_LIBS
18300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_readline_readline" >&5
18301 $as_echo "$ac_cv_lib_readline_readline" >&6; }
18302 if test "x$ac_cv_lib_readline_readline" = xyes; then :
18303 LIBREADLINE="-lncursesw"
18305 unset ac_cv_lib_readline_readline;
18306 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for readline in -lreadline" >&5
18307 $as_echo_n "checking for readline in -lreadline... " >&6; }
18308 if ${ac_cv_lib_readline_readline+:} false; then :
18309 $as_echo_n "(cached) " >&6
18311 ac_check_lib_save_LIBS=$LIBS
18312 LIBS="-lreadline -ltermcap $LIBS"
18313 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18314 /* end confdefs.h. */
18316 /* Override any GCC internal prototype to avoid an error.
18317 Use char because int might match the return type of a GCC
18318 builtin and then its argument prototype would still apply. */
18326 return readline ();
18331 if ac_fn_c_try_link "$LINENO"; then :
18332 ac_cv_lib_readline_readline=yes
18334 ac_cv_lib_readline_readline=no
18336 rm -f core conftest.err conftest.$ac_objext \
18337 conftest$ac_exeext conftest.$ac_ext
18338 LIBS=$ac_check_lib_save_LIBS
18340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_readline_readline" >&5
18341 $as_echo "$ac_cv_lib_readline_readline" >&6; }
18342 if test "x$ac_cv_lib_readline_readline" = xyes; then :
18343 LIBREADLINE="-ltermcap"
18359 if test -n "$LIBREADLINE"; then
18360 if test "$LIBREADLINE" != "-lreadline"; then
18361 echo "-lreadline needs $LIBREADLINE"
18362 LIBREADLINE="-lreadline $LIBREADLINE"
18368 # Check for the availability of libedit. Different distributions put its
18369 # headers in different places. Try to cover the most common ones.
18371 if test "$enable_pcretest_libedit" = "yes"; then
18372 for ac_header in editline/readline.h
18374 ac_fn_c_check_header_mongrel "$LINENO" "editline/readline.h" "ac_cv_header_editline_readline_h" "$ac_includes_default"
18375 if test "x$ac_cv_header_editline_readline_h" = xyes; then :
18376 cat >>confdefs.h <<_ACEOF
18377 #define HAVE_EDITLINE_READLINE_H 1
18379 HAVE_EDITLINE_READLINE_H=1
18381 for ac_header in edit/readline/readline.h
18383 ac_fn_c_check_header_mongrel "$LINENO" "edit/readline/readline.h" "ac_cv_header_edit_readline_readline_h" "$ac_includes_default"
18384 if test "x$ac_cv_header_edit_readline_readline_h" = xyes; then :
18385 cat >>confdefs.h <<_ACEOF
18386 #define HAVE_EDIT_READLINE_READLINE_H 1
18388 HAVE_READLINE_READLINE_H=1
18390 for ac_header in readline/readline.h
18392 ac_fn_c_check_header_mongrel "$LINENO" "readline/readline.h" "ac_cv_header_readline_readline_h" "$ac_includes_default"
18393 if test "x$ac_cv_header_readline_readline_h" = xyes; then :
18394 cat >>confdefs.h <<_ACEOF
18395 #define HAVE_READLINE_READLINE_H 1
18397 HAVE_READLINE_READLINE_H=1
18410 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for readline in -ledit" >&5
18411 $as_echo_n "checking for readline in -ledit... " >&6; }
18412 if ${ac_cv_lib_edit_readline+:} false; then :
18413 $as_echo_n "(cached) " >&6
18415 ac_check_lib_save_LIBS=$LIBS
18416 LIBS="-ledit $LIBS"
18417 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18418 /* end confdefs.h. */
18420 /* Override any GCC internal prototype to avoid an error.
18421 Use char because int might match the return type of a GCC
18422 builtin and then its argument prototype would still apply. */
18430 return readline ();
18435 if ac_fn_c_try_link "$LINENO"; then :
18436 ac_cv_lib_edit_readline=yes
18438 ac_cv_lib_edit_readline=no
18440 rm -f core conftest.err conftest.$ac_objext \
18441 conftest$ac_exeext conftest.$ac_ext
18442 LIBS=$ac_check_lib_save_LIBS
18444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_edit_readline" >&5
18445 $as_echo "$ac_cv_lib_edit_readline" >&6; }
18446 if test "x$ac_cv_lib_edit_readline" = xyes; then :
18452 # This facilitates -ansi builds under Linux
18454 PCRE_STATIC_CFLAG=""
18455 if test "x$enable_shared" = "xno" ; then
18457 $as_echo "#define PCRE_STATIC 1" >>confdefs.h
18459 PCRE_STATIC_CFLAG="-DPCRE_STATIC"
18463 # Here is where pcre specific defines are handled
18465 if test "$enable_pcre8" = "yes"; then
18467 $as_echo "#define SUPPORT_PCRE8 /**/" >>confdefs.h
18471 if test "$enable_pcre16" = "yes"; then
18473 $as_echo "#define SUPPORT_PCRE16 /**/" >>confdefs.h
18477 if test "$enable_pcre32" = "yes"; then
18479 $as_echo "#define SUPPORT_PCRE32 /**/" >>confdefs.h
18483 # Unless running under Windows, JIT support requires pthreads.
18485 if test "$enable_jit" = "yes"; then
18486 if test "$HAVE_WINDOWS_H" != "1"; then
18490 ac_cpp='$CPP $CPPFLAGS'
18491 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18492 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18493 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18497 # We used to check for pthread.h first, but this fails if pthread.h
18498 # requires special compiler flags (e.g. on True64 or Sequent).
18499 # It gets checked for in the link test anyway.
18501 # First of all, check if the user has set any of the PTHREAD_LIBS,
18502 # etcetera environment variables, and if threads linking works using
18504 if test x"$PTHREAD_LIBS$PTHREAD_CFLAGS" != x; then
18505 save_CFLAGS="$CFLAGS"
18506 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
18508 LIBS="$PTHREAD_LIBS $LIBS"
18509 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS" >&5
18510 $as_echo_n "checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS... " >&6; }
18511 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18512 /* end confdefs.h. */
18514 /* Override any GCC internal prototype to avoid an error.
18515 Use char because int might match the return type of a GCC
18516 builtin and then its argument prototype would still apply. */
18520 char pthread_join ();
18524 return pthread_join ();
18529 if ac_fn_c_try_link "$LINENO"; then :
18532 rm -f core conftest.err conftest.$ac_objext \
18533 conftest$ac_exeext conftest.$ac_ext
18534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
18535 $as_echo "$ax_pthread_ok" >&6; }
18536 if test x"$ax_pthread_ok" = xno; then
18541 CFLAGS="$save_CFLAGS"
18544 # We must check for the threads library under a number of different
18545 # names; the ordering is very important because some systems
18546 # (e.g. DEC) have both -lpthread and -lpthreads, where one of the
18547 # libraries is broken (non-POSIX).
18549 # Create a list of thread flags to try. Items starting with a "-" are
18550 # C compiler flags, and other items are library names, except for "none"
18551 # which indicates that we try without any flags at all, and "pthread-config"
18552 # which is a program returning the flags for the Pth emulation library.
18554 ax_pthread_flags="pthreads none -Kthread -kthread lthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config"
18556 # The ordering *is* (sometimes) important. Some notes on the
18557 # individual items follow:
18559 # pthreads: AIX (must check this before -lpthread)
18560 # none: in case threads are in libc; should be tried before -Kthread and
18561 # other compiler flags to prevent continual compiler warnings
18562 # -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h)
18563 # -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able)
18564 # lthread: LinuxThreads port on FreeBSD (also preferred to -pthread)
18565 # -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads)
18566 # -pthreads: Solaris/gcc
18567 # -mthreads: Mingw32/gcc, Lynx/gcc
18568 # -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it
18569 # doesn't hurt to check since this sometimes defines pthreads too;
18570 # also defines -D_REENTRANT)
18571 # ... -mt is also the pthreads flag for HP/aCC
18572 # pthread: Linux, etcetera
18573 # --thread-safe: KAI C++
18574 # pthread-config: use pthread-config program (for GNU Pth library)
18579 # On Solaris (at least, for some versions), libc contains stubbed
18580 # (non-functional) versions of the pthreads routines, so link-based
18581 # tests will erroneously succeed. (We need to link with -pthreads/-mt/
18582 # -lpthread.) (The stubs are missing pthread_cleanup_push, or rather
18583 # a function called by this macro, so we could check for that, but
18584 # who knows whether they'll stub that too in a future libc.) So,
18585 # we'll just look for -pthreads and -lpthread first:
18587 ax_pthread_flags="-pthreads pthread -mt -pthread $ax_pthread_flags"
18591 ax_pthread_flags="-pthread $ax_pthread_flags"
18595 if test x"$ax_pthread_ok" = xno; then
18596 for flag in $ax_pthread_flags; do
18600 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work without any flags" >&5
18601 $as_echo_n "checking whether pthreads work without any flags... " >&6; }
18605 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with $flag" >&5
18606 $as_echo_n "checking whether pthreads work with $flag... " >&6; }
18607 PTHREAD_CFLAGS="$flag"
18611 # Extract the first word of "pthread-config", so it can be a program name with args.
18612 set dummy pthread-config; ac_word=$2
18613 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18614 $as_echo_n "checking for $ac_word... " >&6; }
18615 if ${ac_cv_prog_ax_pthread_config+:} false; then :
18616 $as_echo_n "(cached) " >&6
18618 if test -n "$ax_pthread_config"; then
18619 ac_cv_prog_ax_pthread_config="$ax_pthread_config" # Let the user override the test.
18621 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18622 for as_dir in $PATH
18625 test -z "$as_dir" && as_dir=.
18626 for ac_exec_ext in '' $ac_executable_extensions; do
18627 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18628 ac_cv_prog_ax_pthread_config="yes"
18629 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18636 test -z "$ac_cv_prog_ax_pthread_config" && ac_cv_prog_ax_pthread_config="no"
18639 ax_pthread_config=$ac_cv_prog_ax_pthread_config
18640 if test -n "$ax_pthread_config"; then
18641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_config" >&5
18642 $as_echo "$ax_pthread_config" >&6; }
18644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18645 $as_echo "no" >&6; }
18649 if test x"$ax_pthread_config" = xno; then continue; fi
18650 PTHREAD_CFLAGS="`pthread-config --cflags`"
18651 PTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`"
18655 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library -l$flag" >&5
18656 $as_echo_n "checking for the pthreads library -l$flag... " >&6; }
18657 PTHREAD_LIBS="-l$flag"
18662 save_CFLAGS="$CFLAGS"
18663 LIBS="$PTHREAD_LIBS $LIBS"
18664 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
18666 # Check for various functions. We must include pthread.h,
18667 # since some functions may be macros. (On the Sequent, we
18668 # need a special flag -Kthread to make this header compile.)
18669 # We check for pthread_join because it is in -lpthread on IRIX
18670 # while pthread_create is in libc. We check for pthread_attr_init
18671 # due to DEC craziness with -lpthreads. We check for
18672 # pthread_cleanup_push because it is one of the few pthread
18673 # functions on Solaris that doesn't have a non-functional libc stub.
18674 # We try pthread_create on general principles.
18675 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18676 /* end confdefs.h. */
18677 #include <pthread.h>
18678 static void routine(void *a) { a = 0; }
18679 static void *start_routine(void *a) { return a; }
18683 pthread_t th; pthread_attr_t attr;
18684 pthread_create(&th, 0, start_routine, 0);
18685 pthread_join(th, 0);
18686 pthread_attr_init(&attr);
18687 pthread_cleanup_push(routine, 0);
18688 pthread_cleanup_pop(0) /* ; */
18693 if ac_fn_c_try_link "$LINENO"; then :
18696 rm -f core conftest.err conftest.$ac_objext \
18697 conftest$ac_exeext conftest.$ac_ext
18700 CFLAGS="$save_CFLAGS"
18702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
18703 $as_echo "$ax_pthread_ok" >&6; }
18704 if test "x$ax_pthread_ok" = xyes; then
18713 # Various other checks:
18714 if test "x$ax_pthread_ok" = xyes; then
18716 LIBS="$PTHREAD_LIBS $LIBS"
18717 save_CFLAGS="$CFLAGS"
18718 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
18720 # Detect AIX lossage: JOINABLE attribute is called UNDETACHED.
18721 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for joinable pthread attribute" >&5
18722 $as_echo_n "checking for joinable pthread attribute... " >&6; }
18724 for attr in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED; do
18725 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18726 /* end confdefs.h. */
18727 #include <pthread.h>
18731 int attr = $attr; return attr /* ; */
18736 if ac_fn_c_try_link "$LINENO"; then :
18737 attr_name=$attr; break
18739 rm -f core conftest.err conftest.$ac_objext \
18740 conftest$ac_exeext conftest.$ac_ext
18742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $attr_name" >&5
18743 $as_echo "$attr_name" >&6; }
18744 if test "$attr_name" != PTHREAD_CREATE_JOINABLE; then
18746 cat >>confdefs.h <<_ACEOF
18747 #define PTHREAD_CREATE_JOINABLE $attr_name
18752 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if more special flags are required for pthreads" >&5
18753 $as_echo_n "checking if more special flags are required for pthreads... " >&6; }
18756 aix* | freebsd* | darwin*) flag="-D_THREAD_SAFE";;
18757 osf* | hpux*) flag="-D_REENTRANT";;
18759 if test "$GCC" = "yes"; then
18760 flag="-D_REENTRANT"
18762 flag="-mt -D_REENTRANT"
18766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${flag}" >&5
18767 $as_echo "${flag}" >&6; }
18768 if test "x$flag" != xno; then
18769 PTHREAD_CFLAGS="$flag $PTHREAD_CFLAGS"
18772 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PTHREAD_PRIO_INHERIT" >&5
18773 $as_echo_n "checking for PTHREAD_PRIO_INHERIT... " >&6; }
18774 if ${ax_cv_PTHREAD_PRIO_INHERIT+:} false; then :
18775 $as_echo_n "(cached) " >&6
18778 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18779 /* end confdefs.h. */
18781 #include <pthread.h>
18785 int i = PTHREAD_PRIO_INHERIT;
18790 if ac_fn_c_try_link "$LINENO"; then :
18791 ax_cv_PTHREAD_PRIO_INHERIT=yes
18793 ax_cv_PTHREAD_PRIO_INHERIT=no
18795 rm -f core conftest.err conftest.$ac_objext \
18796 conftest$ac_exeext conftest.$ac_ext
18799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_PRIO_INHERIT" >&5
18800 $as_echo "$ax_cv_PTHREAD_PRIO_INHERIT" >&6; }
18801 if test "x$ax_cv_PTHREAD_PRIO_INHERIT" = "xyes"; then :
18803 $as_echo "#define HAVE_PTHREAD_PRIO_INHERIT 1" >>confdefs.h
18808 CFLAGS="$save_CFLAGS"
18810 # More AIX lossage: must compile with xlc_r or cc_r
18811 if test x"$GCC" != xyes; then
18812 for ac_prog in xlc_r cc_r
18814 # Extract the first word of "$ac_prog", so it can be a program name with args.
18815 set dummy $ac_prog; ac_word=$2
18816 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18817 $as_echo_n "checking for $ac_word... " >&6; }
18818 if ${ac_cv_prog_PTHREAD_CC+:} false; then :
18819 $as_echo_n "(cached) " >&6
18821 if test -n "$PTHREAD_CC"; then
18822 ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test.
18824 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18825 for as_dir in $PATH
18828 test -z "$as_dir" && as_dir=.
18829 for ac_exec_ext in '' $ac_executable_extensions; do
18830 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18831 ac_cv_prog_PTHREAD_CC="$ac_prog"
18832 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18841 PTHREAD_CC=$ac_cv_prog_PTHREAD_CC
18842 if test -n "$PTHREAD_CC"; then
18843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PTHREAD_CC" >&5
18844 $as_echo "$PTHREAD_CC" >&6; }
18846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18847 $as_echo "no" >&6; }
18851 test -n "$PTHREAD_CC" && break
18853 test -n "$PTHREAD_CC" || PTHREAD_CC="${CC}"
18866 # Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
18867 if test x"$ax_pthread_ok" = xyes; then
18869 $as_echo "#define HAVE_PTHREAD 1" >>confdefs.h
18874 as_fn_error $? "JIT support requires pthreads" "$LINENO" 5
18877 ac_cpp='$CPP $CPPFLAGS'
18878 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18879 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18880 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18884 CFLAGS="$PTHREAD_CFLAGS $CFLAGS"
18885 LIBS="$PTHREAD_LIBS $LIBS"
18888 $as_echo "#define SUPPORT_JIT /**/" >>confdefs.h
18891 enable_pcregrep_jit="no"
18894 if test "$enable_pcregrep_jit" = "yes"; then
18896 $as_echo "#define SUPPORT_PCREGREP_JIT /**/" >>confdefs.h
18900 if test "$enable_utf" = "yes"; then
18902 $as_echo "#define SUPPORT_UTF /**/" >>confdefs.h
18906 if test "$enable_unicode_properties" = "yes"; then
18908 $as_echo "#define SUPPORT_UCP /**/" >>confdefs.h
18912 if test "$enable_stack_for_recursion" = "no"; then
18914 $as_echo "#define NO_RECURSE /**/" >>confdefs.h
18918 if test "$enable_pcregrep_libz" = "yes"; then
18920 $as_echo "#define SUPPORT_LIBZ /**/" >>confdefs.h
18924 if test "$enable_pcregrep_libbz2" = "yes"; then
18926 $as_echo "#define SUPPORT_LIBBZ2 /**/" >>confdefs.h
18930 if test $with_pcregrep_bufsize -lt 8192 ; then
18931 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $with_pcregrep_bufsize is too small for --with-pcregrep-bufsize; using 8192" >&5
18932 $as_echo "$as_me: WARNING: $with_pcregrep_bufsize is too small for --with-pcregrep-bufsize; using 8192" >&2;}
18933 with_pcregrep_bufsize="8192"
18935 if test $? -gt 1 ; then
18936 as_fn_error $? "Bad value for --with-pcregrep-bufsize" "$LINENO" 5
18941 cat >>confdefs.h <<_ACEOF
18942 #define PCREGREP_BUFSIZE $with_pcregrep_bufsize
18946 if test "$enable_pcretest_libedit" = "yes"; then
18948 $as_echo "#define SUPPORT_LIBEDIT /**/" >>confdefs.h
18950 LIBREADLINE="$LIBEDIT"
18951 elif test "$enable_pcretest_libreadline" = "yes"; then
18953 $as_echo "#define SUPPORT_LIBREADLINE /**/" >>confdefs.h
18958 cat >>confdefs.h <<_ACEOF
18959 #define NEWLINE $ac_pcre_newline_value
18963 if test "$enable_bsr_anycrlf" = "yes"; then
18965 $as_echo "#define BSR_ANYCRLF /**/" >>confdefs.h
18970 cat >>confdefs.h <<_ACEOF
18971 #define LINK_SIZE $with_link_size
18976 cat >>confdefs.h <<_ACEOF
18977 #define POSIX_MALLOC_THRESHOLD $with_posix_malloc_threshold
18982 cat >>confdefs.h <<_ACEOF
18983 #define PARENS_NEST_LIMIT $with_parens_nest_limit
18988 cat >>confdefs.h <<_ACEOF
18989 #define MATCH_LIMIT $with_match_limit
18994 cat >>confdefs.h <<_ACEOF
18995 #define MATCH_LIMIT_RECURSION $with_match_limit_recursion
19000 $as_echo "#define MAX_NAME_SIZE 32" >>confdefs.h
19004 $as_echo "#define MAX_NAME_COUNT 10000" >>confdefs.h
19009 if test "$enable_ebcdic" = "yes"; then
19011 cat >>confdefs.h <<_ACEOF
19012 #define EBCDIC /**/
19017 if test "$enable_ebcdic_nl25" = "yes"; then
19019 cat >>confdefs.h <<_ACEOF
19020 #define EBCDIC_NL25 /**/
19025 if test "$enable_valgrind" = "yes"; then
19027 cat >>confdefs.h <<_ACEOF
19028 #define SUPPORT_VALGRIND /**/
19033 # Platform specific issues
19035 EXPORT_ALL_SYMBOLS=
19038 if test X"$enable_shared" = Xyes; then
19039 NO_UNDEFINED="-no-undefined"
19040 EXPORT_ALL_SYMBOLS="-Wl,--export-all-symbols"
19045 # The extra LDFLAGS for each particular library
19046 # (Note: The libpcre*_version bits are m4 variables, assigned above)
19048 EXTRA_LIBPCRE_LDFLAGS="$EXTRA_LIBPCRE_LDFLAGS \
19049 $NO_UNDEFINED -version-info 3:3:2"
19051 EXTRA_LIBPCRE16_LDFLAGS="$EXTRA_LIBPCRE16_LDFLAGS \
19052 $NO_UNDEFINED -version-info 2:3:2"
19054 EXTRA_LIBPCRE32_LDFLAGS="$EXTRA_LIBPCRE32_LDFLAGS \
19055 $NO_UNDEFINED -version-info 0:3:0"
19057 EXTRA_LIBPCREPOSIX_LDFLAGS="$EXTRA_LIBPCREPOSIX_LDFLAGS \
19058 $NO_UNDEFINED -version-info 0:2:0"
19060 EXTRA_LIBPCRECPP_LDFLAGS="$EXTRA_LIBPCRECPP_LDFLAGS \
19061 $NO_UNDEFINED -version-info 0:0:0 \
19062 $EXPORT_ALL_SYMBOLS"
19070 # When we run 'make distcheck', use these arguments. Turning off compiler
19071 # optimization makes it run faster.
19072 DISTCHECK_CONFIGURE_FLAGS="CFLAGS='' CXXFLAGS='' --enable-pcre16 --enable-pcre32 --enable-jit --enable-cpp --enable-unicode-properties"
19075 # Check that, if --enable-pcregrep-libz or --enable-pcregrep-libbz2 is
19076 # specified, the relevant library is available.
19078 if test "$enable_pcregrep_libz" = "yes"; then
19079 if test "$HAVE_ZLIB_H" != "1"; then
19080 echo "** Cannot --enable-pcregrep-libz because zlib.h was not found"
19083 if test "$HAVE_LIBZ" != "1"; then
19084 echo "** Cannot --enable-pcregrep-libz because libz was not found"
19091 if test "$enable_pcregrep_libbz2" = "yes"; then
19092 if test "$HAVE_BZLIB_H" != "1"; then
19093 echo "** Cannot --enable-pcregrep-libbz2 because bzlib.h was not found"
19096 if test "$HAVE_LIBBZ2" != "1"; then
19097 echo "** Cannot --enable-pcregrep-libbz2 because libbz2 was not found"
19104 # Similarly for --enable-pcretest-readline
19106 if test "$enable_pcretest_libedit" = "yes"; then
19107 if test "$enable_pcretest_libreadline" = "yes"; then
19108 echo "** Cannot use both --enable-pcretest-libedit and --enable-pcretest-readline"
19111 if test "$HAVE_EDITLINE_READLINE_H" != "1" -a \
19112 "$HAVE_READLINE_READLINE_H" != "1"; then
19113 echo "** Cannot --enable-pcretest-libedit because neither editline/readline.h"
19114 echo "** nor readline/readline.h was found."
19117 if test -z "$LIBEDIT"; then
19118 echo "** Cannot --enable-pcretest-libedit because libedit library was not found."
19123 if test "$enable_pcretest_libreadline" = "yes"; then
19124 if test "$HAVE_READLINE_H" != "1"; then
19125 echo "** Cannot --enable-pcretest-readline because readline/readline.h was not found."
19128 if test "$HAVE_HISTORY_H" != "1"; then
19129 echo "** Cannot --enable-pcretest-readline because readline/history.h was not found."
19132 if test -z "$LIBREADLINE"; then
19133 echo "** Cannot --enable-pcretest-readline because readline library was not found."
19138 # Handle valgrind support
19140 if test "$enable_valgrind" = "yes"; then
19148 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
19149 if test -n "$ac_tool_prefix"; then
19150 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
19151 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
19152 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19153 $as_echo_n "checking for $ac_word... " >&6; }
19154 if ${ac_cv_path_PKG_CONFIG+:} false; then :
19155 $as_echo_n "(cached) " >&6
19157 case $PKG_CONFIG in
19159 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
19162 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19163 for as_dir in $PATH
19166 test -z "$as_dir" && as_dir=.
19167 for ac_exec_ext in '' $ac_executable_extensions; do
19168 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19169 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
19170 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19180 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
19181 if test -n "$PKG_CONFIG"; then
19182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
19183 $as_echo "$PKG_CONFIG" >&6; }
19185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19186 $as_echo "no" >&6; }
19191 if test -z "$ac_cv_path_PKG_CONFIG"; then
19192 ac_pt_PKG_CONFIG=$PKG_CONFIG
19193 # Extract the first word of "pkg-config", so it can be a program name with args.
19194 set dummy pkg-config; ac_word=$2
19195 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19196 $as_echo_n "checking for $ac_word... " >&6; }
19197 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
19198 $as_echo_n "(cached) " >&6
19200 case $ac_pt_PKG_CONFIG in
19202 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
19205 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19206 for as_dir in $PATH
19209 test -z "$as_dir" && as_dir=.
19210 for ac_exec_ext in '' $ac_executable_extensions; do
19211 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19212 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
19213 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19223 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
19224 if test -n "$ac_pt_PKG_CONFIG"; then
19225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
19226 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
19228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19229 $as_echo "no" >&6; }
19232 if test "x$ac_pt_PKG_CONFIG" = x; then
19235 case $cross_compiling:$ac_tool_warned in
19237 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
19238 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
19239 ac_tool_warned=yes ;;
19241 PKG_CONFIG=$ac_pt_PKG_CONFIG
19244 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
19248 if test -n "$PKG_CONFIG"; then
19249 _pkg_min_version=0.9.0
19250 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
19251 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
19252 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
19253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19254 $as_echo "yes" >&6; }
19256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19257 $as_echo "no" >&6; }
19263 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for VALGRIND" >&5
19264 $as_echo_n "checking for VALGRIND... " >&6; }
19266 if test -n "$VALGRIND_CFLAGS"; then
19267 pkg_cv_VALGRIND_CFLAGS="$VALGRIND_CFLAGS"
19268 elif test -n "$PKG_CONFIG"; then
19269 if test -n "$PKG_CONFIG" && \
19270 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"valgrind\""; } >&5
19271 ($PKG_CONFIG --exists --print-errors "valgrind") 2>&5
19273 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19274 test $ac_status = 0; }; then
19275 pkg_cv_VALGRIND_CFLAGS=`$PKG_CONFIG --cflags "valgrind" 2>/dev/null`
19276 test "x$?" != "x0" && pkg_failed=yes
19283 if test -n "$VALGRIND_LIBS"; then
19284 pkg_cv_VALGRIND_LIBS="$VALGRIND_LIBS"
19285 elif test -n "$PKG_CONFIG"; then
19286 if test -n "$PKG_CONFIG" && \
19287 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"valgrind\""; } >&5
19288 ($PKG_CONFIG --exists --print-errors "valgrind") 2>&5
19290 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19291 test $ac_status = 0; }; then
19292 pkg_cv_VALGRIND_LIBS=`$PKG_CONFIG --libs "valgrind" 2>/dev/null`
19293 test "x$?" != "x0" && pkg_failed=yes
19303 if test $pkg_failed = yes; then
19304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19305 $as_echo "no" >&6; }
19307 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
19308 _pkg_short_errors_supported=yes
19310 _pkg_short_errors_supported=no
19312 if test $_pkg_short_errors_supported = yes; then
19313 VALGRIND_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "valgrind" 2>&1`
19315 VALGRIND_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "valgrind" 2>&1`
19317 # Put the nasty error message in config.log where it belongs
19318 echo "$VALGRIND_PKG_ERRORS" >&5
19320 as_fn_error $? "Package requirements (valgrind) were not met:
19322 $VALGRIND_PKG_ERRORS
19324 Consider adjusting the PKG_CONFIG_PATH environment variable if you
19325 installed software in a non-standard prefix.
19327 Alternatively, you may set the environment variables VALGRIND_CFLAGS
19328 and VALGRIND_LIBS to avoid the need to call pkg-config.
19329 See the pkg-config man page for more details." "$LINENO" 5
19330 elif test $pkg_failed = untried; then
19331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19332 $as_echo "no" >&6; }
19333 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
19334 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
19335 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
19336 is in your PATH or set the PKG_CONFIG environment variable to the full
19337 path to pkg-config.
19339 Alternatively, you may set the environment variables VALGRIND_CFLAGS
19340 and VALGRIND_LIBS to avoid the need to call pkg-config.
19341 See the pkg-config man page for more details.
19343 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
19344 See \`config.log' for more details" "$LINENO" 5; }
19346 VALGRIND_CFLAGS=$pkg_cv_VALGRIND_CFLAGS
19347 VALGRIND_LIBS=$pkg_cv_VALGRIND_LIBS
19348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19349 $as_echo "yes" >&6; }
19354 # Handle code coverage reporting support
19355 if test "$enable_coverage" = "yes"; then
19356 if test "x$GCC" != "xyes"; then
19357 as_fn_error $? "Code coverage reports can only be generated when using GCC" "$LINENO" 5
19360 # ccache is incompatible with gcov
19361 # Extract the first word of "shtool", so it can be a program name with args.
19362 set dummy shtool; ac_word=$2
19363 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19364 $as_echo_n "checking for $ac_word... " >&6; }
19365 if ${ac_cv_path_SHTOOL+:} false; then :
19366 $as_echo_n "(cached) " >&6
19370 ac_cv_path_SHTOOL="$SHTOOL" # Let the user override the test with a path.
19373 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19374 for as_dir in $PATH
19377 test -z "$as_dir" && as_dir=.
19378 for ac_exec_ext in '' $ac_executable_extensions; do
19379 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19380 ac_cv_path_SHTOOL="$as_dir/$ac_word$ac_exec_ext"
19381 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19388 test -z "$ac_cv_path_SHTOOL" && ac_cv_path_SHTOOL="false"
19392 SHTOOL=$ac_cv_path_SHTOOL
19393 if test -n "$SHTOOL"; then
19394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SHTOOL" >&5
19395 $as_echo "$SHTOOL" >&6; }
19397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19398 $as_echo "no" >&6; }
19402 case `$SHTOOL path $CC` in
19403 *ccache*) cc_ccache=yes;;
19407 if test "$cc_ccache" = "yes"; then
19408 if test -z "$CCACHE_DISABLE" -o "$CCACHE_DISABLE" != "1"; then
19409 as_fn_error $? "must export CCACHE_DISABLE=1 to disable ccache for code coverage" "$LINENO" 5
19414 # Extract the first word of "lcov", so it can be a program name with args.
19415 set dummy lcov; ac_word=$2
19416 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19417 $as_echo_n "checking for $ac_word... " >&6; }
19418 if ${ac_cv_path_LCOV+:} false; then :
19419 $as_echo_n "(cached) " >&6
19423 ac_cv_path_LCOV="$LCOV" # Let the user override the test with a path.
19426 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19427 for as_dir in $PATH
19430 test -z "$as_dir" && as_dir=.
19431 for ac_exec_ext in '' $ac_executable_extensions; do
19432 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19433 ac_cv_path_LCOV="$as_dir/$ac_word$ac_exec_ext"
19434 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19441 test -z "$ac_cv_path_LCOV" && ac_cv_path_LCOV="false"
19445 LCOV=$ac_cv_path_LCOV
19446 if test -n "$LCOV"; then
19447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LCOV" >&5
19448 $as_echo "$LCOV" >&6; }
19450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19451 $as_echo "no" >&6; }
19455 if test "x$LCOV" = "xfalse"; then
19456 as_fn_error $? "lcov not found" "$LINENO" 5
19460 # Extract the first word of "genhtml", so it can be a program name with args.
19461 set dummy genhtml; ac_word=$2
19462 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19463 $as_echo_n "checking for $ac_word... " >&6; }
19464 if ${ac_cv_path_GENHTML+:} false; then :
19465 $as_echo_n "(cached) " >&6
19469 ac_cv_path_GENHTML="$GENHTML" # Let the user override the test with a path.
19472 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19473 for as_dir in $PATH
19476 test -z "$as_dir" && as_dir=.
19477 for ac_exec_ext in '' $ac_executable_extensions; do
19478 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19479 ac_cv_path_GENHTML="$as_dir/$ac_word$ac_exec_ext"
19480 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19487 test -z "$ac_cv_path_GENHTML" && ac_cv_path_GENHTML="false"
19491 GENHTML=$ac_cv_path_GENHTML
19492 if test -n "$GENHTML"; then
19493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GENHTML" >&5
19494 $as_echo "$GENHTML" >&6; }
19496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19497 $as_echo "no" >&6; }
19501 if test "x$GENHTML" = "xfalse"; then
19502 as_fn_error $? "genhtml not found" "$LINENO" 5
19505 # Set flags needed for gcov
19506 GCOV_CFLAGS="-O0 -ggdb3 -fprofile-arcs -ftest-coverage"
19507 GCOV_CXXFLAGS="-O0 -ggdb3 -fprofile-arcs -ftest-coverage"
19512 fi # enable_coverage
19514 if test "x$enable_coverage" = "xyes"; then
19516 WITH_GCOV_FALSE='#'
19523 # Produce these files, in addition to config.h.
19524 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"
19527 # Make the generated script files executable.
19528 ac_config_commands="$ac_config_commands script-chmod"
19531 # Make sure that pcre_chartables.c is removed in case the method for
19532 # creating it was changed by reconfiguration.
19533 ac_config_commands="$ac_config_commands delete-old-chartables"
19536 cat >confcache <<\_ACEOF
19537 # This file is a shell script that caches the results of configure
19538 # tests run on this system so they can be shared between configure
19539 # scripts and configure runs, see configure's option --config-cache.
19540 # It is not useful on other systems. If it contains results you don't
19541 # want to keep, you may remove or edit it.
19543 # config.status only pays attention to the cache file if you give it
19544 # the --recheck option to rerun configure.
19546 # `ac_cv_env_foo' variables (set or unset) will be overridden when
19547 # loading this file, other *unset* `ac_cv_foo' will be assigned the
19548 # following values.
19552 # The following way of writing the cache mishandles newlines in values,
19553 # but we know of no workaround that is simple, portable, and efficient.
19554 # So, we kill variables containing newlines.
19555 # Ultrix sh set writes to stderr and can't be redirected directly,
19556 # and sets the high bit in the cache file unless we assign to the vars.
19558 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
19559 eval ac_val=\$$ac_var
19563 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
19564 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
19567 _ | IFS | as_nl) ;; #(
19568 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
19569 *) { eval $ac_var=; unset $ac_var;} ;;
19575 case $as_nl`(ac_space=' '; set) 2>&1` in #(
19576 *${as_nl}ac_space=\ *)
19577 # `set' does not quote correctly, so add quotes: double-quote
19578 # substitution turns \\\\ into \\, and sed turns \\ into \.
19581 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
19584 # `set' quotes correctly as required by POSIX, so do not add quotes.
19585 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
19594 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
19596 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
19598 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
19599 if test -w "$cache_file"; then
19600 if test "x$cache_file" != "x/dev/null"; then
19601 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
19602 $as_echo "$as_me: updating cache $cache_file" >&6;}
19603 if test ! -f "$cache_file" || test -h "$cache_file"; then
19604 cat confcache >"$cache_file"
19606 case $cache_file in #(
19608 mv -f confcache "$cache_file"$$ &&
19609 mv -f "$cache_file"$$ "$cache_file" ;; #(
19611 mv -f confcache "$cache_file" ;;
19616 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
19617 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
19622 test "x$prefix" = xNONE && prefix=$ac_default_prefix
19623 # Let make expand exec_prefix.
19624 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
19626 DEFS=-DHAVE_CONFIG_H
19631 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
19632 # 1. Remove the extension, and $U if already installed.
19633 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
19634 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
19635 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
19636 # will be set to the directory where LIBOBJS objects are built.
19637 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
19638 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
19640 LIBOBJS=$ac_libobjs
19642 LTLIBOBJS=$ac_ltlibobjs
19645 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
19646 $as_echo_n "checking that generated files are newer than configure... " >&6; }
19647 if test -n "$am_sleep_pid"; then
19648 # Hide warnings about reused PIDs.
19649 wait $am_sleep_pid 2>/dev/null
19651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
19652 $as_echo "done" >&6; }
19653 if test -n "$EXEEXT"; then
19655 am__EXEEXT_FALSE='#'
19657 am__EXEEXT_TRUE='#'
19661 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
19662 as_fn_error $? "conditional \"AMDEP\" was never defined.
19663 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19665 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
19666 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
19667 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19669 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
19670 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
19671 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19673 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
19674 as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
19675 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19677 if test -z "${WITH_PCRE8_TRUE}" && test -z "${WITH_PCRE8_FALSE}"; then
19678 as_fn_error $? "conditional \"WITH_PCRE8\" was never defined.
19679 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19681 if test -z "${WITH_PCRE16_TRUE}" && test -z "${WITH_PCRE16_FALSE}"; then
19682 as_fn_error $? "conditional \"WITH_PCRE16\" was never defined.
19683 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19685 if test -z "${WITH_PCRE32_TRUE}" && test -z "${WITH_PCRE32_FALSE}"; then
19686 as_fn_error $? "conditional \"WITH_PCRE32\" was never defined.
19687 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19689 if test -z "${WITH_PCRE_CPP_TRUE}" && test -z "${WITH_PCRE_CPP_FALSE}"; then
19690 as_fn_error $? "conditional \"WITH_PCRE_CPP\" was never defined.
19691 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19693 if test -z "${WITH_REBUILD_CHARTABLES_TRUE}" && test -z "${WITH_REBUILD_CHARTABLES_FALSE}"; then
19694 as_fn_error $? "conditional \"WITH_REBUILD_CHARTABLES\" was never defined.
19695 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19697 if test -z "${WITH_JIT_TRUE}" && test -z "${WITH_JIT_FALSE}"; then
19698 as_fn_error $? "conditional \"WITH_JIT\" was never defined.
19699 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19701 if test -z "${WITH_UTF_TRUE}" && test -z "${WITH_UTF_FALSE}"; then
19702 as_fn_error $? "conditional \"WITH_UTF\" was never defined.
19703 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19705 if test -z "${WITH_VALGRIND_TRUE}" && test -z "${WITH_VALGRIND_FALSE}"; then
19706 as_fn_error $? "conditional \"WITH_VALGRIND\" was never defined.
19707 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19709 if test -z "${WITH_GCOV_TRUE}" && test -z "${WITH_GCOV_FALSE}"; then
19710 as_fn_error $? "conditional \"WITH_GCOV\" was never defined.
19711 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19714 : "${CONFIG_STATUS=./config.status}"
19716 ac_clean_files_save=$ac_clean_files
19717 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
19718 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
19719 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
19721 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
19723 # Generated by $as_me.
19724 # Run this file to recreate the current configuration.
19725 # Compiler output produced by configure, useful for debugging
19726 # configure, is in config.log if it exists.
19729 ac_cs_recheck=false
19732 SHELL=\${CONFIG_SHELL-$SHELL}
19735 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
19736 ## -------------------- ##
19737 ## M4sh Initialization. ##
19738 ## -------------------- ##
19740 # Be more Bourne compatible
19741 DUALCASE=1; export DUALCASE # for MKS sh
19742 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
19745 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
19746 # is contrary to our usage. Disable this feature.
19747 alias -g '${1+"$@"}'='"$@"'
19748 setopt NO_GLOB_SUBST
19750 case `(set -o) 2>/dev/null` in #(
19762 # Printing a long string crashes Solaris 7 /usr/bin/printf.
19763 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
19764 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
19765 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
19766 # Prefer a ksh shell builtin over an external printf program on Solaris,
19767 # but without wasting forks for bash or zsh.
19768 if test -z "$BASH_VERSION$ZSH_VERSION" \
19769 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
19770 as_echo='print -r --'
19771 as_echo_n='print -rn --'
19772 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
19773 as_echo='printf %s\n'
19774 as_echo_n='printf %s'
19776 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
19777 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
19778 as_echo_n='/usr/ucb/echo -n'
19780 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
19781 as_echo_n_body='eval
19785 expr "X$arg" : "X\\(.*\\)$as_nl";
19786 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
19788 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
19790 export as_echo_n_body
19791 as_echo_n='sh -c $as_echo_n_body as_echo'
19793 export as_echo_body
19794 as_echo='sh -c $as_echo_body as_echo'
19797 # The user is always right.
19798 if test "${PATH_SEPARATOR+set}" != set; then
19800 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
19801 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
19808 # We need space, tab and new line, in precisely that order. Quoting is
19809 # there to prevent editors from complaining about space-tab.
19810 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
19811 # splitting by setting IFS to empty value.)
19814 # Find who we are. Look in the path if we contain no directory separator.
19817 *[\\/]* ) as_myself=$0 ;;
19818 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19819 for as_dir in $PATH
19822 test -z "$as_dir" && as_dir=.
19823 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
19829 # We did not find ourselves, most probably we were run as `sh COMMAND'
19830 # in which case we are not to be found in the path.
19831 if test "x$as_myself" = x; then
19834 if test ! -f "$as_myself"; then
19835 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
19839 # Unset variables that we do not need and which cause bugs (e.g. in
19840 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
19841 # suppresses any "Segmentation fault" message there. '((' could
19842 # trigger a bug in pdksh 5.2.14.
19843 for as_var in BASH_ENV ENV MAIL MAILPATH
19844 do eval test x\${$as_var+set} = xset \
19845 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
19858 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
19861 # as_fn_error STATUS ERROR [LINENO LOG_FD]
19862 # ----------------------------------------
19863 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
19864 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
19865 # script with STATUS, using 1 if that was 0.
19868 as_status=$1; test $as_status -eq 0 && as_status=1
19870 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
19871 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
19873 $as_echo "$as_me: error: $2" >&2
19874 as_fn_exit $as_status
19878 # as_fn_set_status STATUS
19879 # -----------------------
19880 # Set $? to STATUS, without forking.
19881 as_fn_set_status ()
19884 } # as_fn_set_status
19886 # as_fn_exit STATUS
19887 # -----------------
19888 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
19892 as_fn_set_status $1
19898 # Portably unset VAR.
19901 { eval $1=; unset $1;}
19903 as_unset=as_fn_unset
19904 # as_fn_append VAR VALUE
19905 # ----------------------
19906 # Append the text in VALUE to the end of the definition contained in VAR. Take
19907 # advantage of any shell optimizations that allow amortized linear growth over
19908 # repeated appends, instead of the typical quadratic growth present in naive
19910 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
19911 eval 'as_fn_append ()
19922 # as_fn_arith ARG...
19923 # ------------------
19924 # Perform arithmetic evaluation on the ARGs, and store the result in the
19925 # global $as_val. Take advantage of shells that can avoid forks. The arguments
19926 # must be portable across $(()) and expr.
19927 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
19928 eval 'as_fn_arith ()
19935 as_val=`expr "$@" || test $? -eq 1`
19940 if expr a : '\(a\)' >/dev/null 2>&1 &&
19941 test "X`expr 00001 : '.*\(...\)'`" = X001; then
19947 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
19948 as_basename=basename
19953 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
19959 as_me=`$as_basename -- "$0" ||
19960 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
19961 X"$0" : 'X\(//\)$' \| \
19962 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
19964 sed '/^.*\/\([^/][^/]*\)\/*$/{
19978 # Avoid depending upon Character Ranges.
19979 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
19980 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
19981 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
19982 as_cr_digits='0123456789'
19983 as_cr_alnum=$as_cr_Letters$as_cr_digits
19985 ECHO_C= ECHO_N= ECHO_T=
19986 case `echo -n x` in #(((((
19988 case `echo 'xy\c'` in
19989 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
19991 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
19998 rm -f conf$$ conf$$.exe conf$$.file
19999 if test -d conf$$.dir; then
20000 rm -f conf$$.dir/conf$$.file
20003 mkdir conf$$.dir 2>/dev/null
20005 if (echo >conf$$.file) 2>/dev/null; then
20006 if ln -s conf$$.file conf$$ 2>/dev/null; then
20008 # ... but there are two gotchas:
20009 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
20010 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
20011 # In both cases, we have to default to `cp -pR'.
20012 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
20014 elif ln conf$$.file conf$$ 2>/dev/null; then
20022 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
20023 rmdir conf$$.dir 2>/dev/null
20028 # Create "$as_dir" as a directory, including parents if necessary.
20033 -*) as_dir=./$as_dir;;
20035 test -d "$as_dir" || eval $as_mkdir_p || {
20039 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
20040 *) as_qdir=$as_dir;;
20042 as_dirs="'$as_qdir' $as_dirs"
20043 as_dir=`$as_dirname -- "$as_dir" ||
20044 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20045 X"$as_dir" : 'X\(//\)[^/]' \| \
20046 X"$as_dir" : 'X\(//\)$' \| \
20047 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
20048 $as_echo X"$as_dir" |
20049 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20053 /^X\(\/\/\)[^/].*/{
20066 test -d "$as_dir" && break
20068 test -z "$as_dirs" || eval "mkdir $as_dirs"
20069 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
20073 if mkdir -p . 2>/dev/null; then
20074 as_mkdir_p='mkdir -p "$as_dir"'
20076 test -d ./-p && rmdir ./-p
20081 # as_fn_executable_p FILE
20082 # -----------------------
20083 # Test if FILE is an executable regular file.
20084 as_fn_executable_p ()
20086 test -f "$1" && test -x "$1"
20087 } # as_fn_executable_p
20088 as_test_x='test -x'
20089 as_executable_p=as_fn_executable_p
20091 # Sed expression to map a string onto a valid CPP name.
20092 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
20094 # Sed expression to map a string onto a valid variable name.
20095 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
20099 ## ----------------------------------- ##
20100 ## Main body of $CONFIG_STATUS script. ##
20101 ## ----------------------------------- ##
20103 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
20105 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20106 # Save the log message, to keep $0 and so on meaningful, and to
20107 # report actual input values of CONFIG_FILES etc. instead of their
20108 # values after options handling.
20110 This file was extended by PCRE $as_me 8.35, which was
20111 generated by GNU Autoconf 2.69. Invocation command line was
20113 CONFIG_FILES = $CONFIG_FILES
20114 CONFIG_HEADERS = $CONFIG_HEADERS
20115 CONFIG_LINKS = $CONFIG_LINKS
20116 CONFIG_COMMANDS = $CONFIG_COMMANDS
20119 on `(hostname || uname -n) 2>/dev/null | sed 1q`
20124 case $ac_config_files in *"
20125 "*) set x $ac_config_files; shift; ac_config_files=$*;;
20128 case $ac_config_headers in *"
20129 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
20133 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20134 # Files that config.status was made for.
20135 config_files="$ac_config_files"
20136 config_headers="$ac_config_headers"
20137 config_commands="$ac_config_commands"
20141 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20143 \`$as_me' instantiates files and other configuration actions
20144 from templates according to the current configuration. Unless the files
20145 and actions are specified as TAGs, all are instantiated by default.
20147 Usage: $0 [OPTION]... [TAG]...
20149 -h, --help print this help, then exit
20150 -V, --version print version number and configuration settings, then exit
20151 --config print configuration, then exit
20152 -q, --quiet, --silent
20153 do not print progress messages
20154 -d, --debug don't remove temporary files
20155 --recheck update $as_me by reconfiguring in the same conditions
20156 --file=FILE[:TEMPLATE]
20157 instantiate the configuration file FILE
20158 --header=FILE[:TEMPLATE]
20159 instantiate the configuration header FILE
20161 Configuration files:
20164 Configuration headers:
20167 Configuration commands:
20170 Report bugs to the package provider."
20173 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20174 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
20176 PCRE config.status 8.35
20177 configured by $0, generated by GNU Autoconf 2.69,
20178 with options \\"\$ac_cs_config\\"
20180 Copyright (C) 2012 Free Software Foundation, Inc.
20181 This config.status script is free software; the Free Software Foundation
20182 gives unlimited permission to copy, distribute and modify it."
20189 test -n "\$AWK" || AWK=awk
20192 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20193 # The default lists apply if the user does not specify any file.
20199 ac_option=`expr "X$1" : 'X\([^=]*\)='`
20200 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
20204 ac_option=`expr "X$1" : 'X\([^=]*\)='`
20216 # Handling of the options.
20217 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
20219 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
20220 $as_echo "$ac_cs_version"; exit ;;
20221 --config | --confi | --conf | --con | --co | --c )
20222 $as_echo "$ac_cs_config"; exit ;;
20223 --debug | --debu | --deb | --de | --d | -d )
20225 --file | --fil | --fi | --f )
20228 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
20229 '') as_fn_error $? "missing file argument" ;;
20231 as_fn_append CONFIG_FILES " '$ac_optarg'"
20232 ac_need_defaults=false;;
20233 --header | --heade | --head | --hea )
20236 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
20238 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
20239 ac_need_defaults=false;;
20241 # Conflict between --help and --header
20242 as_fn_error $? "ambiguous option: \`$1'
20243 Try \`$0 --help' for more information.";;
20244 --help | --hel | -h )
20245 $as_echo "$ac_cs_usage"; exit ;;
20246 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
20247 | -silent | --silent | --silen | --sile | --sil | --si | --s)
20250 # This is an error.
20251 -*) as_fn_error $? "unrecognized option: \`$1'
20252 Try \`$0 --help' for more information." ;;
20254 *) as_fn_append ac_config_targets " $1"
20255 ac_need_defaults=false ;;
20261 ac_configure_extra_args=
20263 if $ac_cs_silent; then
20265 ac_configure_extra_args="$ac_configure_extra_args --silent"
20269 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20270 if \$ac_cs_recheck; then
20271 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
20273 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
20274 CONFIG_SHELL='$SHELL'
20275 export CONFIG_SHELL
20280 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20284 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
20285 ## Running $as_me. ##
20291 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20295 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
20298 # The HP-UX ksh and POSIX shell print the target directory to stdout
20299 # if CDPATH is set.
20300 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
20302 sed_quote_subst='$sed_quote_subst'
20303 double_quote_subst='$double_quote_subst'
20304 delay_variable_subst='$delay_variable_subst'
20305 AS='`$ECHO "$AS" | $SED "$delay_single_quote_subst"`'
20306 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
20307 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
20308 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
20309 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
20310 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
20311 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
20312 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
20313 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
20314 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
20315 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
20316 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
20317 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
20318 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
20319 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
20320 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
20321 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
20322 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
20323 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
20324 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
20325 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
20326 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
20327 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
20328 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
20329 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
20330 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
20331 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
20332 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
20333 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
20334 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
20335 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
20336 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
20337 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
20338 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
20339 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
20340 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
20341 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
20342 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
20343 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
20344 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
20345 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
20346 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
20347 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
20348 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
20349 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
20350 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
20351 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
20352 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
20353 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
20354 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
20355 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
20356 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
20357 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
20358 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
20359 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
20360 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
20361 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
20362 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"`'
20363 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
20364 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
20365 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
20366 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
20367 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
20368 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
20369 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
20370 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
20371 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
20372 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
20373 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
20374 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
20375 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
20376 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
20377 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
20378 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
20379 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
20380 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
20381 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
20382 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
20383 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
20384 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
20385 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
20386 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
20387 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
20388 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
20389 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
20390 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
20391 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
20392 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
20393 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
20394 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
20395 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
20396 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
20397 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
20398 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
20399 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
20400 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
20401 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
20402 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
20403 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
20404 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
20405 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
20406 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
20407 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
20408 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
20409 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
20410 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
20411 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
20412 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
20413 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
20414 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
20415 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
20416 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
20417 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
20418 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
20419 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
20420 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
20421 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
20422 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
20423 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
20424 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
20425 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
20426 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
20427 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
20428 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
20429 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
20430 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
20431 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
20432 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
20433 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
20434 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
20435 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
20436 compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
20437 predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
20438 postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
20439 predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
20440 postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
20441 compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
20442 LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
20443 reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
20444 reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
20445 old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
20446 compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
20447 GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
20448 lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
20449 lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
20450 lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
20451 lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
20452 lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
20453 archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
20454 enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
20455 export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
20456 whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
20457 compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
20458 old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
20459 old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
20460 archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
20461 archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
20462 module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
20463 module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
20464 with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
20465 allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
20466 no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
20467 hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
20468 hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
20469 hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
20470 hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
20471 hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
20472 hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
20473 hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
20474 inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
20475 link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
20476 always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
20477 export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
20478 exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
20479 include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
20480 prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
20481 postlink_cmds_CXX='`$ECHO "$postlink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
20482 file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
20483 hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
20484 compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
20485 predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
20486 postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
20487 predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
20488 postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
20489 compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
20492 LTCFLAGS='$LTCFLAGS'
20493 compiler='$compiler_DEFAULT'
20495 # A function that is used when there is no print builtin or printf.
20496 func_fallback_echo ()
20498 eval 'cat <<_LTECHO_EOF
20503 # Quote evaled strings.
20520 deplibs_check_method \
20524 sharedlib_from_linklib_cmd \
20527 archiver_list_spec \
20533 lt_cv_sys_global_symbol_pipe \
20534 lt_cv_sys_global_symbol_to_cdecl \
20535 lt_cv_sys_global_symbol_to_c_name_address \
20536 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
20537 nm_file_list_spec \
20538 lt_prog_compiler_no_builtin_flag \
20539 lt_prog_compiler_pic \
20540 lt_prog_compiler_wl \
20541 lt_prog_compiler_static \
20542 lt_cv_prog_compiler_c_o \
20551 export_dynamic_flag_spec \
20552 whole_archive_flag_spec \
20553 compiler_needs_object \
20555 allow_undefined_flag \
20556 no_undefined_flag \
20557 hardcode_libdir_flag_spec \
20558 hardcode_libdir_separator \
20562 variables_saved_for_relink \
20564 library_names_spec \
20566 install_override_mode \
20570 compiler_lib_search_dirs \
20575 compiler_lib_search_path \
20579 lt_prog_compiler_no_builtin_flag_CXX \
20580 lt_prog_compiler_pic_CXX \
20581 lt_prog_compiler_wl_CXX \
20582 lt_prog_compiler_static_CXX \
20583 lt_cv_prog_compiler_c_o_CXX \
20584 export_dynamic_flag_spec_CXX \
20585 whole_archive_flag_spec_CXX \
20586 compiler_needs_object_CXX \
20588 allow_undefined_flag_CXX \
20589 no_undefined_flag_CXX \
20590 hardcode_libdir_flag_spec_CXX \
20591 hardcode_libdir_separator_CXX \
20592 exclude_expsyms_CXX \
20593 include_expsyms_CXX \
20594 file_list_spec_CXX \
20595 compiler_lib_search_dirs_CXX \
20596 predep_objects_CXX \
20597 postdep_objects_CXX \
20600 compiler_lib_search_path_CXX; do
20601 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
20602 *[\\\\\\\`\\"\\\$]*)
20603 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
20606 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
20611 # Double-quote double-evaled strings.
20612 for var in reload_cmds \
20613 old_postinstall_cmds \
20614 old_postuninstall_cmds \
20616 extract_expsyms_cmds \
20617 old_archive_from_new_cmds \
20618 old_archive_from_expsyms_cmds \
20620 archive_expsym_cmds \
20622 module_expsym_cmds \
20623 export_symbols_cmds \
20627 postuninstall_cmds \
20629 sys_lib_search_path_spec \
20630 sys_lib_dlsearch_path_spec \
20632 old_archive_cmds_CXX \
20633 old_archive_from_new_cmds_CXX \
20634 old_archive_from_expsyms_cmds_CXX \
20636 archive_expsym_cmds_CXX \
20638 module_expsym_cmds_CXX \
20639 export_symbols_cmds_CXX \
20641 postlink_cmds_CXX; do
20642 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
20643 *[\\\\\\\`\\"\\\$]*)
20644 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
20647 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
20652 ac_aux_dir='$ac_aux_dir'
20653 xsi_shell='$xsi_shell'
20654 lt_shell_append='$lt_shell_append'
20656 # See if we are running on zsh, and set the options which allow our
20657 # commands through without removal of \ escapes INIT.
20658 if test -n "\${ZSH_VERSION+set}" ; then
20659 setopt NO_GLOB_SUBST
20665 TIMESTAMP='$TIMESTAMP'
20676 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20678 # Handling of arguments.
20679 for ac_config_target in $ac_config_targets
20681 case $ac_config_target in
20682 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
20683 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
20684 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
20685 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
20686 "libpcre.pc") CONFIG_FILES="$CONFIG_FILES libpcre.pc" ;;
20687 "libpcre16.pc") CONFIG_FILES="$CONFIG_FILES libpcre16.pc" ;;
20688 "libpcre32.pc") CONFIG_FILES="$CONFIG_FILES libpcre32.pc" ;;
20689 "libpcreposix.pc") CONFIG_FILES="$CONFIG_FILES libpcreposix.pc" ;;
20690 "libpcrecpp.pc") CONFIG_FILES="$CONFIG_FILES libpcrecpp.pc" ;;
20691 "pcre-config") CONFIG_FILES="$CONFIG_FILES pcre-config" ;;
20692 "pcre.h") CONFIG_FILES="$CONFIG_FILES pcre.h" ;;
20693 "pcre_stringpiece.h") CONFIG_FILES="$CONFIG_FILES pcre_stringpiece.h" ;;
20694 "pcrecpparg.h") CONFIG_FILES="$CONFIG_FILES pcrecpparg.h" ;;
20695 "script-chmod") CONFIG_COMMANDS="$CONFIG_COMMANDS script-chmod" ;;
20696 "delete-old-chartables") CONFIG_COMMANDS="$CONFIG_COMMANDS delete-old-chartables" ;;
20698 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
20703 # If the user did not use the arguments to specify the items to instantiate,
20704 # then the envvar interface is used. Set only those that are not.
20705 # We use the long form for the default assignment because of an extremely
20706 # bizarre bug on SunOS 4.1.3.
20707 if $ac_need_defaults; then
20708 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
20709 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
20710 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
20713 # Have a temporary directory for convenience. Make it in the build tree
20714 # simply because there is no reason against having it here, and in addition,
20715 # creating and moving files from /tmp can sometimes cause problems.
20716 # Hook for its removal unless debugging.
20717 # Note that there is a small window in which the directory will not be cleaned:
20718 # after its creation but before its name has been assigned to `$tmp'.
20722 trap 'exit_status=$?
20723 : "${ac_tmp:=$tmp}"
20724 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
20726 trap 'as_fn_exit 1' 1 2 13 15
20728 # Create a (secure) tmp directory for tmp files.
20731 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
20735 tmp=./conf$$-$RANDOM
20736 (umask 077 && mkdir "$tmp")
20737 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
20740 # Set up the scripts for CONFIG_FILES section.
20741 # No need to generate them if there are no CONFIG_FILES.
20742 # This happens for instance with `./config.status config.h'.
20743 if test -n "$CONFIG_FILES"; then
20746 ac_cr=`echo X | tr X '\015'`
20747 # On cygwin, bash can eat \r inside `` if the user requested igncr.
20748 # But we know of no other shell where ac_cr would be empty at this
20749 # point, so we can use a bashism as a fallback.
20750 if test "x$ac_cr" = x; then
20751 eval ac_cr=\$\'\\r\'
20753 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
20754 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
20757 ac_cs_awk_cr=$ac_cr
20760 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
20765 echo "cat >conf$$subs.awk <<_ACEOF" &&
20766 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
20768 } >conf$$subs.sh ||
20769 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
20770 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
20772 for ac_last_try in false false false false false :; do
20773 . ./conf$$subs.sh ||
20774 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
20776 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
20777 if test $ac_delim_n = $ac_delim_num; then
20779 elif $ac_last_try; then
20780 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
20782 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
20785 rm -f conf$$subs.sh
20787 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20788 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
20792 s/^/S["/; s/!.*/"]=/
20802 s/\(.\{148\}\)..*/\1/
20804 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
20809 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
20816 s/\(.\{148\}\)..*/\1/
20818 s/["\\]/\\&/g; s/^/"/; s/$/"/
20822 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
20827 ' <conf$$subs.awk | sed '
20832 ' >>$CONFIG_STATUS || ac_write_fail=1
20833 rm -f conf$$subs.awk
20834 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20836 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
20837 for (key in S) S_is_set[key] = 1
20843 nfields = split(line, field, "@")
20845 len = length(field[1])
20846 for (i = 2; i < nfields; i++) {
20848 keylen = length(key)
20849 if (S_is_set[key]) {
20851 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
20852 len += length(value) + length(field[++i])
20863 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20864 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
20865 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
20868 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
20869 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
20872 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
20873 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
20874 # trailing colons and then remove the whole line if VPATH becomes empty
20875 # (actually we leave an empty line to preserve line numbers).
20876 if test "x$srcdir" = x.; then
20877 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
20895 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20896 fi # test -n "$CONFIG_FILES"
20898 # Set up the scripts for CONFIG_HEADERS section.
20899 # No need to generate them if there are no CONFIG_HEADERS.
20900 # This happens for instance with `./config.status Makefile'.
20901 if test -n "$CONFIG_HEADERS"; then
20902 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
20906 # Transform confdefs.h into an awk script `defines.awk', embedded as
20907 # here-document in config.status, that substitutes the proper values into
20908 # config.h.in to produce config.h.
20910 # Create a delimiter string that does not exist in confdefs.h, to ease
20911 # handling of long lines.
20913 for ac_last_try in false false :; do
20914 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
20915 if test -z "$ac_tt"; then
20917 elif $ac_last_try; then
20918 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
20920 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
20924 # For the awk script, D is an array of macro values keyed by name,
20925 # likewise P contains macro parameters if any. Preserve backslash
20926 # newline sequences.
20928 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
20930 s/.\{148\}/&'"$ac_delim"'/g
20933 s/^[ ]*#[ ]*define[ ][ ]*/ /
20940 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
20942 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
20946 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
20947 D["\1"]=" \3\\\\\\n"\\/p
20949 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
20954 s/.\{148\}/&'"$ac_delim"'/g
20959 s/["\\]/\\&/g; s/^/"/; s/$/"/p
20962 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
20964 ' <confdefs.h | sed '
20965 s/'"$ac_delim"'/"\\\
20966 "/g' >>$CONFIG_STATUS || ac_write_fail=1
20968 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20969 for (key in D) D_is_set[key] = 1
20972 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
20974 split(line, arg, " ")
20975 if (arg[1] == "#") {
20979 defundef = substr(arg[1], 2)
20982 split(mac1, mac2, "(") #)
20984 prefix = substr(line, 1, index(line, defundef) - 1)
20985 if (D_is_set[macro]) {
20986 # Preserve the white space surrounding the "#".
20987 print prefix "define", macro P[macro] D[macro]
20990 # Replace #undef with comments. This is necessary, for example,
20991 # in the case of _POSIX_SOURCE, which is predefined and required
20992 # on some systems where configure will not decide to define it.
20993 if (defundef == "undef") {
20994 print "/*", prefix defundef, macro, "*/"
21002 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21003 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
21004 fi # test -n "$CONFIG_HEADERS"
21007 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
21012 :[FHLC]) ac_mode=$ac_tag; continue;;
21014 case $ac_mode$ac_tag in
21016 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
21017 :[FH]-) ac_tag=-:-;;
21018 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
21035 -) ac_f="$ac_tmp/stdin";;
21036 *) # Look for the file first in the build tree, then in the source tree
21037 # (if the path is not absolute). The absolute path cannot be DOS-style,
21038 # because $ac_f cannot contain `:'.
21042 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
21044 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
21046 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
21047 as_fn_append ac_file_inputs " '$ac_f'"
21050 # Let's still pretend it is `configure' which instantiates (i.e., don't
21051 # use $as_me), people would be surprised to read:
21052 # /* config.h. Generated by config.status. */
21053 configure_input='Generated from '`
21054 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
21056 if test x"$ac_file" != x-; then
21057 configure_input="$ac_file. $configure_input"
21058 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
21059 $as_echo "$as_me: creating $ac_file" >&6;}
21061 # Neutralize special characters interpreted by sed in replacement strings.
21062 case $configure_input in #(
21063 *\&* | *\|* | *\\* )
21064 ac_sed_conf_input=`$as_echo "$configure_input" |
21065 sed 's/[\\\\&|]/\\\\&/g'`;; #(
21066 *) ac_sed_conf_input=$configure_input;;
21070 *:-:* | *:-) cat >"$ac_tmp/stdin" \
21071 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
21076 ac_dir=`$as_dirname -- "$ac_file" ||
21077 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21078 X"$ac_file" : 'X\(//\)[^/]' \| \
21079 X"$ac_file" : 'X\(//\)$' \| \
21080 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
21081 $as_echo X"$ac_file" |
21082 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21086 /^X\(\/\/\)[^/].*/{
21099 as_dir="$ac_dir"; as_fn_mkdir_p
21103 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
21105 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
21106 # A ".." for each directory in $ac_dir_suffix.
21107 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
21108 case $ac_top_builddir_sub in
21109 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
21110 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
21113 ac_abs_top_builddir=$ac_pwd
21114 ac_abs_builddir=$ac_pwd$ac_dir_suffix
21115 # for backward compatibility:
21116 ac_top_builddir=$ac_top_build_prefix
21119 .) # We are building in place.
21121 ac_top_srcdir=$ac_top_builddir_sub
21122 ac_abs_top_srcdir=$ac_pwd ;;
21123 [\\/]* | ?:[\\/]* ) # Absolute name.
21124 ac_srcdir=$srcdir$ac_dir_suffix;
21125 ac_top_srcdir=$srcdir
21126 ac_abs_top_srcdir=$srcdir ;;
21127 *) # Relative name.
21128 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
21129 ac_top_srcdir=$ac_top_build_prefix$srcdir
21130 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
21132 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
21142 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
21143 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
21145 ac_MKDIR_P=$MKDIR_P
21147 [\\/$]* | ?:[\\/]* ) ;;
21148 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
21152 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21153 # If the template does not know about datarootdir, expand it.
21154 # FIXME: This hack should be removed a few years after 2.60.
21155 ac_datarootdir_hack=; ac_datarootdir_seen=
21166 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
21167 *datarootdir*) ac_datarootdir_seen=yes;;
21168 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
21169 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
21170 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
21172 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21173 ac_datarootdir_hack='
21174 s&@datadir@&$datadir&g
21175 s&@docdir@&$docdir&g
21176 s&@infodir@&$infodir&g
21177 s&@localedir@&$localedir&g
21178 s&@mandir@&$mandir&g
21179 s&\\\${datarootdir}&$datarootdir&g' ;;
21183 # Neutralize VPATH when `$srcdir' = `.'.
21184 # Shell code in configure.ac might set extrasub.
21185 # FIXME: do we really want to maintain this feature?
21186 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21187 ac_sed_extra="$ac_vpsub
21190 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21192 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
21193 s|@configure_input@|$ac_sed_conf_input|;t t
21194 s&@top_builddir@&$ac_top_builddir_sub&;t t
21195 s&@top_build_prefix@&$ac_top_build_prefix&;t t
21196 s&@srcdir@&$ac_srcdir&;t t
21197 s&@abs_srcdir@&$ac_abs_srcdir&;t t
21198 s&@top_srcdir@&$ac_top_srcdir&;t t
21199 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
21200 s&@builddir@&$ac_builddir&;t t
21201 s&@abs_builddir@&$ac_abs_builddir&;t t
21202 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
21203 s&@INSTALL@&$ac_INSTALL&;t t
21204 s&@MKDIR_P@&$ac_MKDIR_P&;t t
21205 $ac_datarootdir_hack
21207 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
21208 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
21210 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
21211 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
21212 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
21213 "$ac_tmp/out"`; test -z "$ac_out"; } &&
21214 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
21215 which seems to be undefined. Please make sure it is defined" >&5
21216 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
21217 which seems to be undefined. Please make sure it is defined" >&2;}
21219 rm -f "$ac_tmp/stdin"
21221 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
21222 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
21224 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
21230 if test x"$ac_file" != x-; then
21232 $as_echo "/* $configure_input */" \
21233 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
21234 } >"$ac_tmp/config.h" \
21235 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
21236 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
21237 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
21238 $as_echo "$as_me: $ac_file is unchanged" >&6;}
21241 mv "$ac_tmp/config.h" "$ac_file" \
21242 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
21245 $as_echo "/* $configure_input */" \
21246 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
21247 || as_fn_error $? "could not create -" "$LINENO" 5
21249 # Compute "$ac_file"'s index in $config_headers.
21252 for _am_header in $config_headers :; do
21253 case $_am_header in
21254 $_am_arg | $_am_arg:* )
21257 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
21260 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
21261 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21262 X"$_am_arg" : 'X\(//\)[^/]' \| \
21263 X"$_am_arg" : 'X\(//\)$' \| \
21264 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
21265 $as_echo X"$_am_arg" |
21266 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21270 /^X\(\/\/\)[^/].*/{
21282 s/.*/./; q'`/stamp-h$_am_stamp_count
21285 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
21286 $as_echo "$as_me: executing $ac_file commands" >&6;}
21291 case $ac_file$ac_mode in
21292 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
21293 # Older Autoconf quotes --file arguments for eval, but not when files
21294 # are listed without --file. Let's play safe and only enable the eval
21295 # if we detect the quoting.
21296 case $CONFIG_FILES in
21297 *\'*) eval set x "$CONFIG_FILES" ;;
21298 *) set x $CONFIG_FILES ;;
21303 # Strip MF so we end up with the name of the file.
21304 mf=`echo "$mf" | sed -e 's/:.*$//'`
21305 # Check whether this is an Automake generated Makefile or not.
21306 # We used to match only the files named 'Makefile.in', but
21307 # some people rename them; so instead we look at the file content.
21308 # Grep'ing the first line is not enough: some people post-process
21309 # each Makefile.in and add a new line on top of each file to say so.
21310 # Grep'ing the whole file is not good either: AIX grep has a line
21311 # limit of 2048, but all sed's we know have understand at least 4000.
21312 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
21313 dirpart=`$as_dirname -- "$mf" ||
21314 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21315 X"$mf" : 'X\(//\)[^/]' \| \
21316 X"$mf" : 'X\(//\)$' \| \
21317 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
21319 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21323 /^X\(\/\/\)[^/].*/{
21339 # Extract the definition of DEPDIR, am__include, and am__quote
21340 # from the Makefile without running 'make'.
21341 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
21342 test -z "$DEPDIR" && continue
21343 am__include=`sed -n 's/^am__include = //p' < "$mf"`
21344 test -z "$am__include" && continue
21345 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
21346 # Find all dependency output files, they are included files with
21347 # $(DEPDIR) in their names. We invoke sed twice because it is the
21348 # simplest approach to changing $(DEPDIR) to its actual value in the
21350 for file in `sed -n "
21351 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
21352 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
21353 # Make sure the directory exists.
21354 test -f "$dirpart/$file" && continue
21355 fdir=`$as_dirname -- "$file" ||
21356 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21357 X"$file" : 'X\(//\)[^/]' \| \
21358 X"$file" : 'X\(//\)$' \| \
21359 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
21360 $as_echo X"$file" |
21361 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21365 /^X\(\/\/\)[^/].*/{
21378 as_dir=$dirpart/$fdir; as_fn_mkdir_p
21379 # echo "creating $dirpart/$file"
21380 echo '# dummy' > "$dirpart/$file"
21387 # See if we are running on zsh, and set the options which allow our
21388 # commands through without removal of \ escapes.
21389 if test -n "${ZSH_VERSION+set}" ; then
21390 setopt NO_GLOB_SUBST
21393 cfgfile="${ofile}T"
21394 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
21397 cat <<_LT_EOF >> "$cfgfile"
21400 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
21401 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
21402 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
21403 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
21405 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
21406 # 2006, 2007, 2008, 2009, 2010, 2011 Free Software
21408 # Written by Gordon Matzigkeit, 1996
21410 # This file is part of GNU Libtool.
21412 # GNU Libtool is free software; you can redistribute it and/or
21413 # modify it under the terms of the GNU General Public License as
21414 # published by the Free Software Foundation; either version 2 of
21415 # the License, or (at your option) any later version.
21417 # As a special exception to the GNU General Public License,
21418 # if you distribute this file as part of a program or library that
21419 # is built using GNU Libtool, you may include this file under the
21420 # same distribution terms that you use for the rest of that program.
21422 # GNU Libtool is distributed in the hope that it will be useful,
21423 # but WITHOUT ANY WARRANTY; without even the implied warranty of
21424 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
21425 # GNU General Public License for more details.
21427 # You should have received a copy of the GNU General Public License
21428 # along with GNU Libtool; see the file COPYING. If not, a copy
21429 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
21430 # obtained by writing to the Free Software Foundation, Inc.,
21431 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
21434 # The names of the tagged configurations supported by this script.
21435 available_tags="CXX "
21437 # ### BEGIN LIBTOOL CONFIG
21439 # Assembler program.
21442 # DLL creation program.
21443 DLLTOOL=$lt_DLLTOOL
21445 # Object dumper program.
21446 OBJDUMP=$lt_OBJDUMP
21448 # Which release of libtool.m4 was used?
21449 macro_version=$macro_version
21450 macro_revision=$macro_revision
21452 # Whether or not to build shared libraries.
21453 build_libtool_libs=$enable_shared
21455 # Whether or not to build static libraries.
21456 build_old_libs=$enable_static
21458 # What type of objects to build.
21461 # Whether or not to optimize for fast installation.
21462 fast_install=$enable_fast_install
21464 # Shell to use when invoking shell scripts.
21467 # An echo program that protects backslashes.
21470 # The PATH separator for the build system.
21471 PATH_SEPARATOR=$lt_PATH_SEPARATOR
21474 host_alias=$host_alias
21478 # The build system.
21479 build_alias=$build_alias
21483 # A sed program that does not truncate output.
21486 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
21487 Xsed="\$SED -e 1s/^X//"
21489 # A grep program that handles long lines.
21495 # A literal string matcher.
21498 # A BSD- or MS-compatible name lister.
21501 # Whether we need soft or hard links.
21504 # What is the maximum length of a command?
21505 max_cmd_len=$max_cmd_len
21507 # Object file suffix (normally "o").
21510 # Executable file suffix (normally "").
21513 # whether the shell understands "unset".
21516 # turn spaces into newlines.
21519 # turn newlines into spaces.
21522 # convert \$build file names to \$host format.
21523 to_host_file_cmd=$lt_cv_to_host_file_cmd
21525 # convert \$build files to toolchain format.
21526 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
21528 # Method to check whether dependent libraries are shared objects.
21529 deplibs_check_method=$lt_deplibs_check_method
21531 # Command to use when deplibs_check_method = "file_magic".
21532 file_magic_cmd=$lt_file_magic_cmd
21534 # How to find potential files when deplibs_check_method = "file_magic".
21535 file_magic_glob=$lt_file_magic_glob
21537 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
21538 want_nocaseglob=$lt_want_nocaseglob
21540 # Command to associate shared and link libraries.
21541 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
21546 # Flags to create an archive.
21547 AR_FLAGS=$lt_AR_FLAGS
21549 # How to feed a file listing to the archiver.
21550 archiver_list_spec=$lt_archiver_list_spec
21552 # A symbol stripping program.
21555 # Commands used to install an old-style archive.
21557 old_postinstall_cmds=$lt_old_postinstall_cmds
21558 old_postuninstall_cmds=$lt_old_postuninstall_cmds
21560 # Whether to use a lock for old archive extraction.
21561 lock_old_archive_extraction=$lock_old_archive_extraction
21566 # LTCC compiler flags.
21567 LTCFLAGS=$lt_CFLAGS
21569 # Take the output of nm and produce a listing of raw symbols and C names.
21570 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
21572 # Transform the output of nm in a proper C declaration.
21573 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
21575 # Transform the output of nm in a C name address pair.
21576 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
21578 # Transform the output of nm in a C name address pair when lib prefix is needed.
21579 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
21581 # Specify filename containing input files for \$NM.
21582 nm_file_list_spec=$lt_nm_file_list_spec
21584 # The root where to search for dependent libraries,and in which our libraries should be installed.
21585 lt_sysroot=$lt_sysroot
21587 # The name of the directory that contains temporary libtool files.
21590 # Used to examine libraries when file_magic_cmd begins with "file".
21591 MAGIC_CMD=$MAGIC_CMD
21593 # Must we lock files when doing compilation?
21594 need_locks=$lt_need_locks
21597 MANIFEST_TOOL=$lt_MANIFEST_TOOL
21599 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
21600 DSYMUTIL=$lt_DSYMUTIL
21602 # Tool to change global to local symbols on Mac OS X.
21605 # Tool to manipulate fat objects and archives on Mac OS X.
21608 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
21611 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
21612 OTOOL64=$lt_OTOOL64
21614 # Old archive suffix (normally "a").
21617 # Shared library suffix (normally ".so").
21618 shrext_cmds=$lt_shrext_cmds
21620 # The commands to extract the exported symbol list from a shared archive.
21621 extract_expsyms_cmds=$lt_extract_expsyms_cmds
21623 # Variables whose values should be saved in libtool wrapper scripts and
21624 # restored at link time.
21625 variables_saved_for_relink=$lt_variables_saved_for_relink
21627 # Do we need the "lib" prefix for modules?
21628 need_lib_prefix=$need_lib_prefix
21630 # Do we need a version for libraries?
21631 need_version=$need_version
21633 # Library versioning type.
21634 version_type=$version_type
21636 # Shared library runtime path variable.
21637 runpath_var=$runpath_var
21639 # Shared library path variable.
21640 shlibpath_var=$shlibpath_var
21642 # Is shlibpath searched before the hard-coded library search path?
21643 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
21645 # Format of library name prefix.
21646 libname_spec=$lt_libname_spec
21648 # List of archive names. First name is the real one, the rest are links.
21649 # The last name is the one that the linker finds with -lNAME
21650 library_names_spec=$lt_library_names_spec
21652 # The coded name of the library, if different from the real name.
21653 soname_spec=$lt_soname_spec
21655 # Permission mode override for installation of shared libraries.
21656 install_override_mode=$lt_install_override_mode
21658 # Command to use after installation of a shared archive.
21659 postinstall_cmds=$lt_postinstall_cmds
21661 # Command to use after uninstallation of a shared archive.
21662 postuninstall_cmds=$lt_postuninstall_cmds
21664 # Commands used to finish a libtool library installation in a directory.
21665 finish_cmds=$lt_finish_cmds
21667 # As "finish_cmds", except a single script fragment to be evaled but
21669 finish_eval=$lt_finish_eval
21671 # Whether we should hardcode library paths into libraries.
21672 hardcode_into_libs=$hardcode_into_libs
21674 # Compile-time system search path for libraries.
21675 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
21677 # Run-time system search path for libraries.
21678 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
21680 # Whether dlopen is supported.
21681 dlopen_support=$enable_dlopen
21683 # Whether dlopen of programs is supported.
21684 dlopen_self=$enable_dlopen_self
21686 # Whether dlopen of statically linked programs is supported.
21687 dlopen_self_static=$enable_dlopen_self_static
21689 # Commands to strip libraries.
21690 old_striplib=$lt_old_striplib
21691 striplib=$lt_striplib
21694 # The linker used to build libraries.
21697 # How to create reloadable object files.
21698 reload_flag=$lt_reload_flag
21699 reload_cmds=$lt_reload_cmds
21701 # Commands used to build an old-style archive.
21702 old_archive_cmds=$lt_old_archive_cmds
21704 # A language specific compiler.
21707 # Is the compiler the GNU compiler?
21710 # Compiler flag to turn off builtin functions.
21711 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
21713 # Additional compiler flags for building library objects.
21714 pic_flag=$lt_lt_prog_compiler_pic
21716 # How to pass a linker flag through the compiler.
21717 wl=$lt_lt_prog_compiler_wl
21719 # Compiler flag to prevent dynamic linking.
21720 link_static_flag=$lt_lt_prog_compiler_static
21722 # Does compiler simultaneously support -c and -o options?
21723 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
21725 # Whether or not to add -lc for building shared libraries.
21726 build_libtool_need_lc=$archive_cmds_need_lc
21728 # Whether or not to disallow shared libs when runtime libs are static.
21729 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
21731 # Compiler flag to allow reflexive dlopens.
21732 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
21734 # Compiler flag to generate shared objects directly from archives.
21735 whole_archive_flag_spec=$lt_whole_archive_flag_spec
21737 # Whether the compiler copes with passing no objects directly.
21738 compiler_needs_object=$lt_compiler_needs_object
21740 # Create an old-style archive from a shared archive.
21741 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
21743 # Create a temporary old-style archive to link instead of a shared archive.
21744 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
21746 # Commands used to build a shared archive.
21747 archive_cmds=$lt_archive_cmds
21748 archive_expsym_cmds=$lt_archive_expsym_cmds
21750 # Commands used to build a loadable module if different from building
21751 # a shared archive.
21752 module_cmds=$lt_module_cmds
21753 module_expsym_cmds=$lt_module_expsym_cmds
21755 # Whether we are building with GNU ld or not.
21756 with_gnu_ld=$lt_with_gnu_ld
21758 # Flag that allows shared libraries with undefined symbols to be built.
21759 allow_undefined_flag=$lt_allow_undefined_flag
21761 # Flag that enforces no undefined symbols.
21762 no_undefined_flag=$lt_no_undefined_flag
21764 # Flag to hardcode \$libdir into a binary during linking.
21765 # This must work even if \$libdir does not exist
21766 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
21768 # Whether we need a single "-rpath" flag with a separated argument.
21769 hardcode_libdir_separator=$lt_hardcode_libdir_separator
21771 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
21772 # DIR into the resulting binary.
21773 hardcode_direct=$hardcode_direct
21775 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
21776 # DIR into the resulting binary and the resulting library dependency is
21777 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
21778 # library is relocated.
21779 hardcode_direct_absolute=$hardcode_direct_absolute
21781 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
21782 # into the resulting binary.
21783 hardcode_minus_L=$hardcode_minus_L
21785 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
21786 # into the resulting binary.
21787 hardcode_shlibpath_var=$hardcode_shlibpath_var
21789 # Set to "yes" if building a shared library automatically hardcodes DIR
21790 # into the library and all subsequent libraries and executables linked
21792 hardcode_automatic=$hardcode_automatic
21794 # Set to yes if linker adds runtime paths of dependent libraries
21795 # to runtime path list.
21796 inherit_rpath=$inherit_rpath
21798 # Whether libtool must link a program against all its dependency libraries.
21799 link_all_deplibs=$link_all_deplibs
21801 # Set to "yes" if exported symbols are required.
21802 always_export_symbols=$always_export_symbols
21804 # The commands to list exported symbols.
21805 export_symbols_cmds=$lt_export_symbols_cmds
21807 # Symbols that should not be listed in the preloaded symbols.
21808 exclude_expsyms=$lt_exclude_expsyms
21810 # Symbols that must always be exported.
21811 include_expsyms=$lt_include_expsyms
21813 # Commands necessary for linking programs (against libraries) with templates.
21814 prelink_cmds=$lt_prelink_cmds
21816 # Commands necessary for finishing linking programs.
21817 postlink_cmds=$lt_postlink_cmds
21819 # Specify filename containing input files.
21820 file_list_spec=$lt_file_list_spec
21822 # How to hardcode a shared library path into an executable.
21823 hardcode_action=$hardcode_action
21825 # The directories searched by this compiler when creating a shared library.
21826 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
21828 # Dependencies to place before and after the objects being linked to
21829 # create a shared library.
21830 predep_objects=$lt_predep_objects
21831 postdep_objects=$lt_postdep_objects
21832 predeps=$lt_predeps
21833 postdeps=$lt_postdeps
21835 # The library search path used internally by the compiler when linking
21836 # a shared library.
21837 compiler_lib_search_path=$lt_compiler_lib_search_path
21839 # ### END LIBTOOL CONFIG
21845 cat <<\_LT_EOF >> "$cfgfile"
21846 # AIX sometimes has problems with the GCC collect2 program. For some
21847 # reason, if we set the COLLECT_NAMES environment variable, the problems
21848 # vanish in a puff of smoke.
21849 if test "X${COLLECT_NAMES+set}" != Xset; then
21851 export COLLECT_NAMES
21858 ltmain="$ac_aux_dir/ltmain.sh"
21861 # We use sed instead of cat because bash on DJGPP gets confused if
21862 # if finds mixed CR/LF and LF-only lines. Since sed operates in
21863 # text mode, it properly converts lines to CR/LF. This bash problem
21864 # is reportedly fixed, but why not run on old versions too?
21865 sed '$q' "$ltmain" >> "$cfgfile" \
21866 || (rm -f "$cfgfile"; exit 1)
21868 if test x"$xsi_shell" = xyes; then
21869 sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
21873 \ */*) func_dirname_result="${1%/*}${2}" ;;\
21874 \ * ) func_dirname_result="${3}" ;;\
21876 } # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
21877 && mv -f "$cfgfile.tmp" "$cfgfile" \
21878 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
21879 test 0 -eq $? || _lt_function_replace_fail=:
21882 sed -e '/^func_basename ()$/,/^} # func_basename /c\
21885 \ func_basename_result="${1##*/}"\
21886 } # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
21887 && mv -f "$cfgfile.tmp" "$cfgfile" \
21888 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
21889 test 0 -eq $? || _lt_function_replace_fail=:
21892 sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
21893 func_dirname_and_basename ()\
21896 \ */*) func_dirname_result="${1%/*}${2}" ;;\
21897 \ * ) func_dirname_result="${3}" ;;\
21899 \ func_basename_result="${1##*/}"\
21900 } # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
21901 && mv -f "$cfgfile.tmp" "$cfgfile" \
21902 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
21903 test 0 -eq $? || _lt_function_replace_fail=:
21906 sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
21909 \ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
21910 \ # positional parameters, so assign one to ordinary parameter first.\
21911 \ func_stripname_result=${3}\
21912 \ func_stripname_result=${func_stripname_result#"${1}"}\
21913 \ func_stripname_result=${func_stripname_result%"${2}"}\
21914 } # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
21915 && mv -f "$cfgfile.tmp" "$cfgfile" \
21916 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
21917 test 0 -eq $? || _lt_function_replace_fail=:
21920 sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
21921 func_split_long_opt ()\
21923 \ func_split_long_opt_name=${1%%=*}\
21924 \ func_split_long_opt_arg=${1#*=}\
21925 } # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
21926 && mv -f "$cfgfile.tmp" "$cfgfile" \
21927 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
21928 test 0 -eq $? || _lt_function_replace_fail=:
21931 sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
21932 func_split_short_opt ()\
21934 \ func_split_short_opt_arg=${1#??}\
21935 \ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
21936 } # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
21937 && mv -f "$cfgfile.tmp" "$cfgfile" \
21938 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
21939 test 0 -eq $? || _lt_function_replace_fail=:
21942 sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
21946 \ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
21947 \ *) func_lo2o_result=${1} ;;\
21949 } # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
21950 && mv -f "$cfgfile.tmp" "$cfgfile" \
21951 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
21952 test 0 -eq $? || _lt_function_replace_fail=:
21955 sed -e '/^func_xform ()$/,/^} # func_xform /c\
21958 func_xform_result=${1%.*}.lo\
21959 } # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
21960 && mv -f "$cfgfile.tmp" "$cfgfile" \
21961 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
21962 test 0 -eq $? || _lt_function_replace_fail=:
21965 sed -e '/^func_arith ()$/,/^} # func_arith /c\
21968 func_arith_result=$(( $* ))\
21969 } # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
21970 && mv -f "$cfgfile.tmp" "$cfgfile" \
21971 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
21972 test 0 -eq $? || _lt_function_replace_fail=:
21975 sed -e '/^func_len ()$/,/^} # func_len /c\
21978 func_len_result=${#1}\
21979 } # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
21980 && mv -f "$cfgfile.tmp" "$cfgfile" \
21981 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
21982 test 0 -eq $? || _lt_function_replace_fail=:
21986 if test x"$lt_shell_append" = xyes; then
21987 sed -e '/^func_append ()$/,/^} # func_append /c\
21990 eval "${1}+=\\${2}"\
21991 } # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
21992 && mv -f "$cfgfile.tmp" "$cfgfile" \
21993 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
21994 test 0 -eq $? || _lt_function_replace_fail=:
21997 sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
21998 func_append_quoted ()\
22000 \ func_quote_for_eval "${2}"\
22001 \ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
22002 } # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
22003 && mv -f "$cfgfile.tmp" "$cfgfile" \
22004 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
22005 test 0 -eq $? || _lt_function_replace_fail=:
22008 # Save a `func_append' function call where possible by direct use of '+='
22009 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
22010 && mv -f "$cfgfile.tmp" "$cfgfile" \
22011 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
22012 test 0 -eq $? || _lt_function_replace_fail=:
22014 # Save a `func_append' function call even when '+=' is not available
22015 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
22016 && mv -f "$cfgfile.tmp" "$cfgfile" \
22017 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
22018 test 0 -eq $? || _lt_function_replace_fail=:
22021 if test x"$_lt_function_replace_fail" = x":"; then
22022 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
22023 $as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
22027 mv -f "$cfgfile" "$ofile" ||
22028 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
22032 cat <<_LT_EOF >> "$ofile"
22034 # ### BEGIN LIBTOOL TAG CONFIG: CXX
22036 # The linker used to build libraries.
22039 # How to create reloadable object files.
22040 reload_flag=$lt_reload_flag_CXX
22041 reload_cmds=$lt_reload_cmds_CXX
22043 # Commands used to build an old-style archive.
22044 old_archive_cmds=$lt_old_archive_cmds_CXX
22046 # A language specific compiler.
22047 CC=$lt_compiler_CXX
22049 # Is the compiler the GNU compiler?
22052 # Compiler flag to turn off builtin functions.
22053 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
22055 # Additional compiler flags for building library objects.
22056 pic_flag=$lt_lt_prog_compiler_pic_CXX
22058 # How to pass a linker flag through the compiler.
22059 wl=$lt_lt_prog_compiler_wl_CXX
22061 # Compiler flag to prevent dynamic linking.
22062 link_static_flag=$lt_lt_prog_compiler_static_CXX
22064 # Does compiler simultaneously support -c and -o options?
22065 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
22067 # Whether or not to add -lc for building shared libraries.
22068 build_libtool_need_lc=$archive_cmds_need_lc_CXX
22070 # Whether or not to disallow shared libs when runtime libs are static.
22071 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
22073 # Compiler flag to allow reflexive dlopens.
22074 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
22076 # Compiler flag to generate shared objects directly from archives.
22077 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
22079 # Whether the compiler copes with passing no objects directly.
22080 compiler_needs_object=$lt_compiler_needs_object_CXX
22082 # Create an old-style archive from a shared archive.
22083 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
22085 # Create a temporary old-style archive to link instead of a shared archive.
22086 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
22088 # Commands used to build a shared archive.
22089 archive_cmds=$lt_archive_cmds_CXX
22090 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
22092 # Commands used to build a loadable module if different from building
22093 # a shared archive.
22094 module_cmds=$lt_module_cmds_CXX
22095 module_expsym_cmds=$lt_module_expsym_cmds_CXX
22097 # Whether we are building with GNU ld or not.
22098 with_gnu_ld=$lt_with_gnu_ld_CXX
22100 # Flag that allows shared libraries with undefined symbols to be built.
22101 allow_undefined_flag=$lt_allow_undefined_flag_CXX
22103 # Flag that enforces no undefined symbols.
22104 no_undefined_flag=$lt_no_undefined_flag_CXX
22106 # Flag to hardcode \$libdir into a binary during linking.
22107 # This must work even if \$libdir does not exist
22108 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
22110 # Whether we need a single "-rpath" flag with a separated argument.
22111 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
22113 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
22114 # DIR into the resulting binary.
22115 hardcode_direct=$hardcode_direct_CXX
22117 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
22118 # DIR into the resulting binary and the resulting library dependency is
22119 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
22120 # library is relocated.
22121 hardcode_direct_absolute=$hardcode_direct_absolute_CXX
22123 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
22124 # into the resulting binary.
22125 hardcode_minus_L=$hardcode_minus_L_CXX
22127 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
22128 # into the resulting binary.
22129 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
22131 # Set to "yes" if building a shared library automatically hardcodes DIR
22132 # into the library and all subsequent libraries and executables linked
22134 hardcode_automatic=$hardcode_automatic_CXX
22136 # Set to yes if linker adds runtime paths of dependent libraries
22137 # to runtime path list.
22138 inherit_rpath=$inherit_rpath_CXX
22140 # Whether libtool must link a program against all its dependency libraries.
22141 link_all_deplibs=$link_all_deplibs_CXX
22143 # Set to "yes" if exported symbols are required.
22144 always_export_symbols=$always_export_symbols_CXX
22146 # The commands to list exported symbols.
22147 export_symbols_cmds=$lt_export_symbols_cmds_CXX
22149 # Symbols that should not be listed in the preloaded symbols.
22150 exclude_expsyms=$lt_exclude_expsyms_CXX
22152 # Symbols that must always be exported.
22153 include_expsyms=$lt_include_expsyms_CXX
22155 # Commands necessary for linking programs (against libraries) with templates.
22156 prelink_cmds=$lt_prelink_cmds_CXX
22158 # Commands necessary for finishing linking programs.
22159 postlink_cmds=$lt_postlink_cmds_CXX
22161 # Specify filename containing input files.
22162 file_list_spec=$lt_file_list_spec_CXX
22164 # How to hardcode a shared library path into an executable.
22165 hardcode_action=$hardcode_action_CXX
22167 # The directories searched by this compiler when creating a shared library.
22168 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
22170 # Dependencies to place before and after the objects being linked to
22171 # create a shared library.
22172 predep_objects=$lt_predep_objects_CXX
22173 postdep_objects=$lt_postdep_objects_CXX
22174 predeps=$lt_predeps_CXX
22175 postdeps=$lt_postdeps_CXX
22177 # The library search path used internally by the compiler when linking
22178 # a shared library.
22179 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
22181 # ### END LIBTOOL TAG CONFIG: CXX
22185 "script-chmod":C) chmod a+x pcre-config ;;
22186 "delete-old-chartables":C) rm -f pcre_chartables.c ;;
22194 ac_clean_files=$ac_clean_files_save
22196 test $ac_write_fail = 0 ||
22197 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
22200 # configure is writing to config.log, and then calls config.status.
22201 # config.status does its own redirection, appending to config.log.
22202 # Unfortunately, on DOS this fails, as config.log is still kept open
22203 # by configure, so config.status won't be able to write to it; its
22204 # output is simply discarded. So we exec the FD to /dev/null,
22205 # effectively closing config.log, so it can be properly (re)opened and
22206 # appended to by config.status. When coming back to configure, we
22207 # need to make the FD available again.
22208 if test "$no_create" != yes; then
22210 ac_config_status_args=
22211 test "$silent" = yes &&
22212 ac_config_status_args="$ac_config_status_args --quiet"
22214 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
22216 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
22217 # would make configure fail if this is the last instruction.
22218 $ac_cs_success || as_fn_exit 1
22220 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
22221 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
22222 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
22226 # Print out a nice little message after configure is run displaying the
22230 if test "$enable_ebcdic_nl25" = "yes"; then
22231 ebcdic_nl_code=0x25
22232 elif test "$enable_ebcdic" = "yes"; then
22233 ebcdic_nl_code=0x15
22238 $PACKAGE-$VERSION configuration summary:
22240 Install prefix .................. : ${prefix}
22241 C preprocessor .................. : ${CPP}
22242 C compiler ...................... : ${CC}
22243 C++ preprocessor ................ : ${CXXCPP}
22244 C++ compiler .................... : ${CXX}
22245 Linker .......................... : ${LD}
22246 C preprocessor flags ............ : ${CPPFLAGS}
22247 C compiler flags ................ : ${CFLAGS} ${VISIBILITY_CFLAGS}
22248 C++ compiler flags .............. : ${CXXFLAGS} ${VISIBILITY_CXXFLAGS}
22249 Linker flags .................... : ${LDFLAGS}
22250 Extra libraries ................. : ${LIBS}
22252 Build 8 bit pcre library ........ : ${enable_pcre8}
22253 Build 16 bit pcre library ....... : ${enable_pcre16}
22254 Build 32 bit pcre library ....... : ${enable_pcre32}
22255 Build C++ library ............... : ${enable_cpp}
22256 Enable JIT compiling support .... : ${enable_jit}
22257 Enable UTF-8/16/32 support ...... : ${enable_utf}
22258 Unicode properties .............. : ${enable_unicode_properties}
22259 Newline char/sequence ........... : ${enable_newline}
22260 \R matches only ANYCRLF ......... : ${enable_bsr_anycrlf}
22261 EBCDIC coding ................... : ${enable_ebcdic}
22262 EBCDIC code for NL .............. : ${ebcdic_nl_code}
22263 Rebuild char tables ............. : ${enable_rebuild_chartables}
22264 Use stack recursion ............. : ${enable_stack_for_recursion}
22265 POSIX mem threshold ............. : ${with_posix_malloc_threshold}
22266 Internal link size .............. : ${with_link_size}
22267 Nested parentheses limit ........ : ${with_parens_nest_limit}
22268 Match limit ..................... : ${with_match_limit}
22269 Match limit recursion ........... : ${with_match_limit_recursion}
22270 Build shared libs ............... : ${enable_shared}
22271 Build static libs ............... : ${enable_static}
22272 Use JIT in pcregrep ............. : ${enable_pcregrep_jit}
22273 Buffer size for pcregrep ........ : ${with_pcregrep_bufsize}
22274 Link pcregrep with libz ......... : ${enable_pcregrep_libz}
22275 Link pcregrep with libbz2 ....... : ${enable_pcregrep_libbz2}
22276 Link pcretest with libedit ...... : ${enable_pcretest_libedit}
22277 Link pcretest with libreadline .. : ${enable_pcretest_libreadline}
22278 Valgrind support ................ : ${enable_valgrind}
22279 Code coverage ................... : ${enable_coverage}