2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.67 for xmltooling 1.5.
5 # Report bugs to <https://bugs.internet2.edu/>.
8 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
9 # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free Software
13 # This configure script is free software; the Free Software Foundation
14 # gives unlimited permission to copy, distribute and modify it.
15 ## -------------------- ##
16 ## M4sh Initialization. ##
17 ## -------------------- ##
19 # Be more Bourne compatible
20 DUALCASE=1; export DUALCASE # for MKS sh
21 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
24 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
25 # is contrary to our usage. Disable this feature.
26 alias -g '${1+"$@"}'='"$@"'
29 case `(set -o) 2>/dev/null` in #(
41 # Printing a long string crashes Solaris 7 /usr/bin/printf.
42 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
43 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
44 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
45 # Prefer a ksh shell builtin over an external printf program on Solaris,
46 # but without wasting forks for bash or zsh.
47 if test -z "$BASH_VERSION$ZSH_VERSION" \
48 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
50 as_echo_n='print -rn --'
51 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
55 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
56 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
57 as_echo_n='/usr/ucb/echo -n'
59 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
64 expr "X$arg" : "X\\(.*\\)$as_nl";
65 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
67 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
70 as_echo_n='sh -c $as_echo_n_body as_echo'
73 as_echo='sh -c $as_echo_body as_echo'
76 # The user is always right.
77 if test "${PATH_SEPARATOR+set}" != set; then
79 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
80 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
87 # We need space, tab and new line, in precisely that order. Quoting is
88 # there to prevent editors from complaining about space-tab.
89 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
90 # splitting by setting IFS to empty value.)
93 # Find who we are. Look in the path if we contain no directory separator.
95 *[\\/]* ) as_myself=$0 ;;
96 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
100 test -z "$as_dir" && as_dir=.
101 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
107 # We did not find ourselves, most probably we were run as `sh COMMAND'
108 # in which case we are not to be found in the path.
109 if test "x$as_myself" = x; then
112 if test ! -f "$as_myself"; then
113 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
117 # Unset variables that we do not need and which cause bugs (e.g. in
118 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
119 # suppresses any "Segmentation fault" message there. '((' could
120 # trigger a bug in pdksh 5.2.14.
121 for as_var in BASH_ENV ENV MAIL MAILPATH
122 do eval test x\${$as_var+set} = xset \
123 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
136 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
138 if test "x$CONFIG_SHELL" = x; then
139 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
142 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
143 # is contrary to our usage. Disable this feature.
144 alias -g '\${1+\"\$@\"}'='\"\$@\"'
147 case \`(set -o) 2>/dev/null\` in #(
155 as_required="as_fn_return () { (exit \$1); }
156 as_fn_success () { as_fn_return 0; }
157 as_fn_failure () { as_fn_return 1; }
158 as_fn_ret_success () { return 0; }
159 as_fn_ret_failure () { return 1; }
162 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
163 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
164 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
165 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
166 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
169 exitcode=1; echo positional parameters were not saved.
171 test x\$exitcode = x0 || exit 1"
172 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
173 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
174 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
175 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
177 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
178 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
179 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
180 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
181 PATH=/empty FPATH=/empty; export PATH FPATH
182 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
183 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1
184 test \$(( 1 + 1 )) = 2 || exit 1"
185 if (eval "$as_required") 2>/dev/null; then :
190 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
193 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
195 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
198 test -z "$as_dir" && as_dir=.
202 for as_base in sh bash ksh sh5; do
203 # Try only shells that exist, to save several forks.
204 as_shell=$as_dir/$as_base
205 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
206 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
207 CONFIG_SHELL=$as_shell as_have_required=yes
208 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
216 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
217 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
218 CONFIG_SHELL=$SHELL as_have_required=yes
223 if test "x$CONFIG_SHELL" != x; then :
224 # We cannot yet assume a decent shell, so we have to provide a
225 # neutralization value for shells without unset; and this also
226 # works around shells that cannot unset nonexistent variables.
229 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
231 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
234 if test x$as_have_required = xno; then :
235 $as_echo "$0: This script requires a shell more modern than all"
236 $as_echo "$0: the shells that I found on your system."
237 if test x${ZSH_VERSION+set} = xset ; then
238 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
239 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
241 $as_echo "$0: Please tell bug-autoconf@gnu.org and
242 $0: https://bugs.internet2.edu/ about your system,
243 $0: including any error possibly output before this
244 $0: message. Then install a modern shell, or manually run
245 $0: the script under such a shell if you do have one."
251 SHELL=${CONFIG_SHELL-/bin/sh}
253 # Unset more variables known to interfere with behavior of common tools.
254 CLICOLOR_FORCE= GREP_OPTIONS=
255 unset CLICOLOR_FORCE GREP_OPTIONS
257 ## --------------------- ##
258 ## M4sh Shell Functions. ##
259 ## --------------------- ##
262 # Portably unset VAR.
265 { eval $1=; unset $1;}
269 # as_fn_set_status STATUS
270 # -----------------------
271 # Set $? to STATUS, without forking.
279 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
289 # Create "$as_dir" as a directory, including parents if necessary.
294 -*) as_dir=./$as_dir;;
296 test -d "$as_dir" || eval $as_mkdir_p || {
300 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
303 as_dirs="'$as_qdir' $as_dirs"
304 as_dir=`$as_dirname -- "$as_dir" ||
305 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
306 X"$as_dir" : 'X\(//\)[^/]' \| \
307 X"$as_dir" : 'X\(//\)$' \| \
308 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
309 $as_echo X"$as_dir" |
310 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
327 test -d "$as_dir" && break
329 test -z "$as_dirs" || eval "mkdir $as_dirs"
330 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
334 # as_fn_append VAR VALUE
335 # ----------------------
336 # Append the text in VALUE to the end of the definition contained in VAR. Take
337 # advantage of any shell optimizations that allow amortized linear growth over
338 # repeated appends, instead of the typical quadratic growth present in naive
340 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
341 eval 'as_fn_append ()
354 # Perform arithmetic evaluation on the ARGs, and store the result in the
355 # global $as_val. Take advantage of shells that can avoid forks. The arguments
356 # must be portable across $(()) and expr.
357 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
365 as_val=`expr "$@" || test $? -eq 1`
370 # as_fn_error STATUS ERROR [LINENO LOG_FD]
371 # ----------------------------------------
372 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
373 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
374 # script with STATUS, using 1 if that was 0.
377 as_status=$1; test $as_status -eq 0 && as_status=1
379 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
380 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
382 $as_echo "$as_me: error: $2" >&2
383 as_fn_exit $as_status
386 if expr a : '\(a\)' >/dev/null 2>&1 &&
387 test "X`expr 00001 : '.*\(...\)'`" = X001; then
393 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
399 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
405 as_me=`$as_basename -- "$0" ||
406 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
407 X"$0" : 'X\(//\)$' \| \
408 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
410 sed '/^.*\/\([^/][^/]*\)\/*$/{
424 # Avoid depending upon Character Ranges.
425 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
426 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
427 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
428 as_cr_digits='0123456789'
429 as_cr_alnum=$as_cr_Letters$as_cr_digits
432 as_lineno_1=$LINENO as_lineno_1a=$LINENO
433 as_lineno_2=$LINENO as_lineno_2a=$LINENO
434 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
435 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
436 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
448 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
452 chmod +x "$as_me.lineno" ||
453 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
455 # Don't try to exec as it changes $[0], causing all sort of problems
456 # (the dirname of $[0] is not the place where we might find the
457 # original and so on. Autoconf is especially sensitive to this).
459 # Exit status is that of the last command.
463 ECHO_C= ECHO_N= ECHO_T=
464 case `echo -n x` in #(((((
466 case `echo 'xy\c'` in
467 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
469 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
476 rm -f conf$$ conf$$.exe conf$$.file
477 if test -d conf$$.dir; then
478 rm -f conf$$.dir/conf$$.file
481 mkdir conf$$.dir 2>/dev/null
483 if (echo >conf$$.file) 2>/dev/null; then
484 if ln -s conf$$.file conf$$ 2>/dev/null; then
486 # ... but there are two gotchas:
487 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
488 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
489 # In both cases, we have to default to `cp -p'.
490 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
492 elif ln conf$$.file conf$$ 2>/dev/null; then
500 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
501 rmdir conf$$.dir 2>/dev/null
503 if mkdir -p . 2>/dev/null; then
504 as_mkdir_p='mkdir -p "$as_dir"'
506 test -d ./-p && rmdir ./-p
510 if test -x / >/dev/null 2>&1; then
513 if ls -dL / >/dev/null 2>&1; then
520 if test -d "$1"; then
526 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
527 ???[sx]*):;;*)false;;esac;fi
531 as_executable_p=$as_test_x
533 # Sed expression to map a string onto a valid CPP name.
534 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
536 # Sed expression to map a string onto a valid variable name.
537 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
539 SHELL=${CONFIG_SHELL-/bin/sh}
542 test -n "$DJDIR" || exec 7<&0 </dev/null
546 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
547 # so uname gets run too.
548 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
553 ac_default_prefix=/usr/local
555 ac_config_libobj_dir=.
562 # Identity of this package.
563 PACKAGE_NAME='xmltooling'
564 PACKAGE_TARNAME='xmltooling'
565 PACKAGE_VERSION='1.5'
566 PACKAGE_STRING='xmltooling 1.5'
567 PACKAGE_BUGREPORT='https://bugs.internet2.edu/'
570 ac_unique_file="xmltooling"
571 # Factoring default headers for most tests.
572 ac_includes_default="\
574 #ifdef HAVE_SYS_TYPES_H
575 # include <sys/types.h>
577 #ifdef HAVE_SYS_STAT_H
578 # include <sys/stat.h>
584 # ifdef HAVE_STDLIB_H
589 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
594 #ifdef HAVE_STRINGS_H
595 # include <strings.h>
597 #ifdef HAVE_INTTYPES_H
598 # include <inttypes.h>
607 ac_subst_vars='am__EXEEXT_FALSE
737 INSTALL_STRIP_PROGRAM
779 program_transform_name
792 enable_option_checking
797 enable_dependency_tracking
820 ac_precious_vars='build_alias
836 # Initialize some variables set by options.
838 ac_init_version=false
839 ac_unrecognized_opts=
841 # The variables have the same names as the options, with
842 # dashes changed to underlines.
850 program_transform_name=s,x,x,
858 # Installation directory options.
859 # These are left unexpanded so users can "make install exec_prefix=/foo"
860 # and all the variables that are supposed to be based on exec_prefix
861 # by default will actually change.
862 # Use braces instead of parens because sh, perl, etc. also accept them.
863 # (The list follows the same order as the GNU Coding Standards.)
864 bindir='${exec_prefix}/bin'
865 sbindir='${exec_prefix}/sbin'
866 libexecdir='${exec_prefix}/libexec'
867 datarootdir='${prefix}/share'
868 datadir='${datarootdir}'
869 sysconfdir='${prefix}/etc'
870 sharedstatedir='${prefix}/com'
871 localstatedir='${prefix}/var'
872 includedir='${prefix}/include'
873 oldincludedir='/usr/include'
874 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
875 infodir='${datarootdir}/info'
880 libdir='${exec_prefix}/lib'
881 localedir='${datarootdir}/locale'
882 mandir='${datarootdir}/man'
888 # If the previous option needs an argument, assign it.
889 if test -n "$ac_prev"; then
890 eval $ac_prev=\$ac_option
896 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
901 # Accept the important Cygnus configure options, so we can diagnose typos.
903 case $ac_dashdash$ac_option in
907 -bindir | --bindir | --bindi | --bind | --bin | --bi)
909 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
912 -build | --build | --buil | --bui | --bu)
913 ac_prev=build_alias ;;
914 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
915 build_alias=$ac_optarg ;;
917 -cache-file | --cache-file | --cache-fil | --cache-fi \
918 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
919 ac_prev=cache_file ;;
920 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
921 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
922 cache_file=$ac_optarg ;;
925 cache_file=config.cache ;;
927 -datadir | --datadir | --datadi | --datad)
929 -datadir=* | --datadir=* | --datadi=* | --datad=*)
930 datadir=$ac_optarg ;;
932 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
933 | --dataroo | --dataro | --datar)
934 ac_prev=datarootdir ;;
935 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
936 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
937 datarootdir=$ac_optarg ;;
939 -disable-* | --disable-*)
940 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
941 # Reject names that are not valid shell variable names.
942 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
943 as_fn_error $? "invalid feature name: $ac_useropt"
944 ac_useropt_orig=$ac_useropt
945 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
946 case $ac_user_opts in
950 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
951 ac_unrecognized_sep=', ';;
953 eval enable_$ac_useropt=no ;;
955 -docdir | --docdir | --docdi | --doc | --do)
957 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
960 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
962 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
965 -enable-* | --enable-*)
966 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
967 # Reject names that are not valid shell variable names.
968 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
969 as_fn_error $? "invalid feature name: $ac_useropt"
970 ac_useropt_orig=$ac_useropt
971 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
972 case $ac_user_opts in
976 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
977 ac_unrecognized_sep=', ';;
979 eval enable_$ac_useropt=\$ac_optarg ;;
981 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
982 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
983 | --exec | --exe | --ex)
984 ac_prev=exec_prefix ;;
985 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
986 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
987 | --exec=* | --exe=* | --ex=*)
988 exec_prefix=$ac_optarg ;;
990 -gas | --gas | --ga | --g)
991 # Obsolete; use --with-gas.
994 -help | --help | --hel | --he | -h)
996 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
997 ac_init_help=recursive ;;
998 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
999 ac_init_help=short ;;
1001 -host | --host | --hos | --ho)
1002 ac_prev=host_alias ;;
1003 -host=* | --host=* | --hos=* | --ho=*)
1004 host_alias=$ac_optarg ;;
1006 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1008 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1010 htmldir=$ac_optarg ;;
1012 -includedir | --includedir | --includedi | --included | --include \
1013 | --includ | --inclu | --incl | --inc)
1014 ac_prev=includedir ;;
1015 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1016 | --includ=* | --inclu=* | --incl=* | --inc=*)
1017 includedir=$ac_optarg ;;
1019 -infodir | --infodir | --infodi | --infod | --info | --inf)
1021 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1022 infodir=$ac_optarg ;;
1024 -libdir | --libdir | --libdi | --libd)
1026 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1027 libdir=$ac_optarg ;;
1029 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1030 | --libexe | --libex | --libe)
1031 ac_prev=libexecdir ;;
1032 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1033 | --libexe=* | --libex=* | --libe=*)
1034 libexecdir=$ac_optarg ;;
1036 -localedir | --localedir | --localedi | --localed | --locale)
1037 ac_prev=localedir ;;
1038 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1039 localedir=$ac_optarg ;;
1041 -localstatedir | --localstatedir | --localstatedi | --localstated \
1042 | --localstate | --localstat | --localsta | --localst | --locals)
1043 ac_prev=localstatedir ;;
1044 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1045 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1046 localstatedir=$ac_optarg ;;
1048 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1050 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1051 mandir=$ac_optarg ;;
1053 -nfp | --nfp | --nf)
1054 # Obsolete; use --without-fp.
1057 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1058 | --no-cr | --no-c | -n)
1061 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1062 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1065 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1066 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1067 | --oldin | --oldi | --old | --ol | --o)
1068 ac_prev=oldincludedir ;;
1069 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1070 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1071 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1072 oldincludedir=$ac_optarg ;;
1074 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1076 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1077 prefix=$ac_optarg ;;
1079 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1080 | --program-pre | --program-pr | --program-p)
1081 ac_prev=program_prefix ;;
1082 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1083 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1084 program_prefix=$ac_optarg ;;
1086 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1087 | --program-suf | --program-su | --program-s)
1088 ac_prev=program_suffix ;;
1089 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1090 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1091 program_suffix=$ac_optarg ;;
1093 -program-transform-name | --program-transform-name \
1094 | --program-transform-nam | --program-transform-na \
1095 | --program-transform-n | --program-transform- \
1096 | --program-transform | --program-transfor \
1097 | --program-transfo | --program-transf \
1098 | --program-trans | --program-tran \
1099 | --progr-tra | --program-tr | --program-t)
1100 ac_prev=program_transform_name ;;
1101 -program-transform-name=* | --program-transform-name=* \
1102 | --program-transform-nam=* | --program-transform-na=* \
1103 | --program-transform-n=* | --program-transform-=* \
1104 | --program-transform=* | --program-transfor=* \
1105 | --program-transfo=* | --program-transf=* \
1106 | --program-trans=* | --program-tran=* \
1107 | --progr-tra=* | --program-tr=* | --program-t=*)
1108 program_transform_name=$ac_optarg ;;
1110 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1112 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1113 pdfdir=$ac_optarg ;;
1115 -psdir | --psdir | --psdi | --psd | --ps)
1117 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1120 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1121 | -silent | --silent | --silen | --sile | --sil)
1124 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1126 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1128 sbindir=$ac_optarg ;;
1130 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1131 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1132 | --sharedst | --shareds | --shared | --share | --shar \
1134 ac_prev=sharedstatedir ;;
1135 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1136 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1137 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1139 sharedstatedir=$ac_optarg ;;
1141 -site | --site | --sit)
1143 -site=* | --site=* | --sit=*)
1146 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1148 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1149 srcdir=$ac_optarg ;;
1151 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1152 | --syscon | --sysco | --sysc | --sys | --sy)
1153 ac_prev=sysconfdir ;;
1154 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1155 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1156 sysconfdir=$ac_optarg ;;
1158 -target | --target | --targe | --targ | --tar | --ta | --t)
1159 ac_prev=target_alias ;;
1160 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1161 target_alias=$ac_optarg ;;
1163 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1166 -version | --version | --versio | --versi | --vers | -V)
1167 ac_init_version=: ;;
1170 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1171 # Reject names that are not valid shell variable names.
1172 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1173 as_fn_error $? "invalid package name: $ac_useropt"
1174 ac_useropt_orig=$ac_useropt
1175 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1176 case $ac_user_opts in
1180 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1181 ac_unrecognized_sep=', ';;
1183 eval with_$ac_useropt=\$ac_optarg ;;
1185 -without-* | --without-*)
1186 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1187 # Reject names that are not valid shell variable names.
1188 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1189 as_fn_error $? "invalid package name: $ac_useropt"
1190 ac_useropt_orig=$ac_useropt
1191 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1192 case $ac_user_opts in
1196 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1197 ac_unrecognized_sep=', ';;
1199 eval with_$ac_useropt=no ;;
1202 # Obsolete; use --with-x.
1205 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1206 | --x-incl | --x-inc | --x-in | --x-i)
1207 ac_prev=x_includes ;;
1208 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1209 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1210 x_includes=$ac_optarg ;;
1212 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1213 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1214 ac_prev=x_libraries ;;
1215 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1216 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1217 x_libraries=$ac_optarg ;;
1219 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1220 Try \`$0 --help' for more information"
1224 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1225 # Reject names that are not valid shell variable names.
1226 case $ac_envvar in #(
1227 '' | [0-9]* | *[!_$as_cr_alnum]* )
1228 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1230 eval $ac_envvar=\$ac_optarg
1231 export $ac_envvar ;;
1234 # FIXME: should be removed in autoconf 3.0.
1235 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1236 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1237 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1238 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1244 if test -n "$ac_prev"; then
1245 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1246 as_fn_error $? "missing argument to $ac_option"
1249 if test -n "$ac_unrecognized_opts"; then
1250 case $enable_option_checking in
1252 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1253 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1257 # Check all directory arguments for consistency.
1258 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1259 datadir sysconfdir sharedstatedir localstatedir includedir \
1260 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1261 libdir localedir mandir
1263 eval ac_val=\$$ac_var
1264 # Remove trailing slashes.
1267 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1268 eval $ac_var=\$ac_val;;
1270 # Be sure to have absolute directory names.
1272 [\\/$]* | ?:[\\/]* ) continue;;
1273 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1275 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1278 # There might be people who depend on the old broken behavior: `$host'
1279 # used to hold the argument of --host etc.
1280 # FIXME: To remove some day.
1283 target=$target_alias
1285 # FIXME: To remove some day.
1286 if test "x$host_alias" != x; then
1287 if test "x$build_alias" = x; then
1288 cross_compiling=maybe
1289 $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
1290 If a cross compiler is detected then cross compile mode will be used" >&2
1291 elif test "x$build_alias" != "x$host_alias"; then
1297 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1299 test "$silent" = yes && exec 6>/dev/null
1302 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1303 ac_ls_di=`ls -di .` &&
1304 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1305 as_fn_error $? "working directory cannot be determined"
1306 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1307 as_fn_error $? "pwd does not report name of working directory"
1310 # Find the source files, if location was not specified.
1311 if test -z "$srcdir"; then
1312 ac_srcdir_defaulted=yes
1313 # Try the directory containing this script, then the parent directory.
1314 ac_confdir=`$as_dirname -- "$as_myself" ||
1315 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1316 X"$as_myself" : 'X\(//\)[^/]' \| \
1317 X"$as_myself" : 'X\(//\)$' \| \
1318 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1319 $as_echo X"$as_myself" |
1320 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1338 if test ! -r "$srcdir/$ac_unique_file"; then
1342 ac_srcdir_defaulted=no
1344 if test ! -r "$srcdir/$ac_unique_file"; then
1345 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1346 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1348 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1350 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1352 # When building in place, set srcdir=.
1353 if test "$ac_abs_confdir" = "$ac_pwd"; then
1356 # Remove unnecessary trailing slashes from srcdir.
1357 # Double slashes in file names in object file debugging info
1358 # mess up M-x gdb in Emacs.
1360 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1362 for ac_var in $ac_precious_vars; do
1363 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1364 eval ac_env_${ac_var}_value=\$${ac_var}
1365 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1366 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1370 # Report the --help message.
1372 if test "$ac_init_help" = "long"; then
1373 # Omit some internal or obsolete options to make the list less imposing.
1374 # This message is too long to be a string in the A/UX 3.1 sh.
1376 \`configure' configures xmltooling 1.5 to adapt to many kinds of systems.
1378 Usage: $0 [OPTION]... [VAR=VALUE]...
1380 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1381 VAR=VALUE. See below for descriptions of some of the useful variables.
1383 Defaults for the options are specified in brackets.
1386 -h, --help display this help and exit
1387 --help=short display options specific to this package
1388 --help=recursive display the short help of all the included packages
1389 -V, --version display version information and exit
1390 -q, --quiet, --silent do not print \`checking ...' messages
1391 --cache-file=FILE cache test results in FILE [disabled]
1392 -C, --config-cache alias for \`--cache-file=config.cache'
1393 -n, --no-create do not create output files
1394 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1396 Installation directories:
1397 --prefix=PREFIX install architecture-independent files in PREFIX
1398 [$ac_default_prefix]
1399 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1402 By default, \`make install' will install all the files in
1403 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1404 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1405 for instance \`--prefix=\$HOME'.
1407 For better control, use the options below.
1409 Fine tuning of the installation directories:
1410 --bindir=DIR user executables [EPREFIX/bin]
1411 --sbindir=DIR system admin executables [EPREFIX/sbin]
1412 --libexecdir=DIR program executables [EPREFIX/libexec]
1413 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1414 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1415 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1416 --libdir=DIR object code libraries [EPREFIX/lib]
1417 --includedir=DIR C header files [PREFIX/include]
1418 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1419 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1420 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1421 --infodir=DIR info documentation [DATAROOTDIR/info]
1422 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1423 --mandir=DIR man documentation [DATAROOTDIR/man]
1424 --docdir=DIR documentation root [DATAROOTDIR/doc/xmltooling]
1425 --htmldir=DIR html documentation [DOCDIR]
1426 --dvidir=DIR dvi documentation [DOCDIR]
1427 --pdfdir=DIR pdf documentation [DOCDIR]
1428 --psdir=DIR ps documentation [DOCDIR]
1434 --program-prefix=PREFIX prepend PREFIX to installed program names
1435 --program-suffix=SUFFIX append SUFFIX to installed program names
1436 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1439 --build=BUILD configure for building on BUILD [guessed]
1440 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1444 if test -n "$ac_init_help"; then
1445 case $ac_init_help in
1446 short | recursive ) echo "Configuration of xmltooling 1.5:";;
1451 --disable-option-checking ignore unrecognized --enable/--with options
1452 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1453 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1454 --enable-static[=PKGS] build static libraries [default=no]
1455 --enable-shared[=PKGS] build shared libraries [default=yes]
1456 --enable-fast-install[=PKGS]
1457 optimize for fast installation [default=yes]
1458 --disable-dependency-tracking speeds up one-time build
1459 --enable-dependency-tracking do not reject slow dependency extractors
1460 --disable-libtool-lock avoid locking (might break parallel builds)
1461 --disable-doxygen-doc don't generate any doxygen documentation
1462 --enable-doxygen-dot generate graphics for doxygen documentation
1463 --enable-doxygen-man generate doxygen manual pages
1464 --enable-doxygen-rtf generate doxygen RTF documentation
1465 --enable-doxygen-xml generate doxygen XML documentation
1466 --enable-doxygen-chm generate doxygen compressed HTML help documentation
1467 --enable-doxygen-chi generate doxygen seperate compressed HTML help index
1469 --disable-doxygen-html don't generate doxygen plain HTML documentation
1470 --enable-doxygen-ps generate doxygen PostScript documentation
1471 --enable-doxygen-pdf generate doxygen PDF documentation
1472 --enable-debug Have GCC compile with symbols (Default = no)
1475 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1476 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1477 --with-pic try to use only PIC/non-PIC objects [default=use
1479 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1480 --with-sysroot=DIR Search for dependent libraries within DIR
1481 (or the compiler's sysroot if not specified).
1482 --with-log4shib=PATH where log4shib-config is installed
1483 --with-log4cpp=PATH where log4cpp-config is installed
1484 --with-xerces=PATH where xerces-c is installed
1485 --with-xmlsec=PATH where xmlsec is installed
1486 --with-openssl=PATH where openssl is installed
1487 --with-curl=PATH where curl-config is installed
1488 --with-cxxtest=PATH where cxxtest is installed
1490 Some influential environment variables:
1491 CC C compiler command
1492 CFLAGS C compiler flags
1493 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1494 nonstandard directory <lib dir>
1495 LIBS libraries to pass to the linker, e.g. -l<library>
1496 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1497 you have headers in a nonstandard directory <include dir>
1500 a4wide (default), a4, letter, legal or executive
1501 CXX C++ compiler command
1502 CXXFLAGS C++ compiler flags
1503 CXXCPP C++ preprocessor
1505 Use these variables to override the choices made by `configure' or to help
1506 it to find libraries and programs with nonstandard names/locations.
1508 Report bugs to <https://bugs.internet2.edu/>.
1513 if test "$ac_init_help" = "recursive"; then
1514 # If there are subdirs, report their specific --help.
1515 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1516 test -d "$ac_dir" ||
1517 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1522 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1524 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1525 # A ".." for each directory in $ac_dir_suffix.
1526 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1527 case $ac_top_builddir_sub in
1528 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1529 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1532 ac_abs_top_builddir=$ac_pwd
1533 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1534 # for backward compatibility:
1535 ac_top_builddir=$ac_top_build_prefix
1538 .) # We are building in place.
1540 ac_top_srcdir=$ac_top_builddir_sub
1541 ac_abs_top_srcdir=$ac_pwd ;;
1542 [\\/]* | ?:[\\/]* ) # Absolute name.
1543 ac_srcdir=$srcdir$ac_dir_suffix;
1544 ac_top_srcdir=$srcdir
1545 ac_abs_top_srcdir=$srcdir ;;
1547 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1548 ac_top_srcdir=$ac_top_build_prefix$srcdir
1549 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1551 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1553 cd "$ac_dir" || { ac_status=$?; continue; }
1554 # Check for guested configure.
1555 if test -f "$ac_srcdir/configure.gnu"; then
1557 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1558 elif test -f "$ac_srcdir/configure"; then
1560 $SHELL "$ac_srcdir/configure" --help=recursive
1562 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1564 cd "$ac_pwd" || { ac_status=$?; break; }
1568 test -n "$ac_init_help" && exit $ac_status
1569 if $ac_init_version; then
1571 xmltooling configure 1.5
1572 generated by GNU Autoconf 2.67
1574 Copyright (C) 2010 Free Software Foundation, Inc.
1575 This configure script is free software; the Free Software Foundation
1576 gives unlimited permission to copy, distribute and modify it.
1581 ## ------------------------ ##
1582 ## Autoconf initialization. ##
1583 ## ------------------------ ##
1585 # ac_fn_c_try_compile LINENO
1586 # --------------------------
1587 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1588 ac_fn_c_try_compile ()
1590 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1591 rm -f conftest.$ac_objext
1592 if { { ac_try="$ac_compile"
1594 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1595 *) ac_try_echo=$ac_try;;
1597 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1598 $as_echo "$ac_try_echo"; } >&5
1599 (eval "$ac_compile") 2>conftest.err
1601 if test -s conftest.err; then
1602 grep -v '^ *+' conftest.err >conftest.er1
1603 cat conftest.er1 >&5
1604 mv -f conftest.er1 conftest.err
1606 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1607 test $ac_status = 0; } && {
1608 test -z "$ac_c_werror_flag" ||
1609 test ! -s conftest.err
1610 } && test -s conftest.$ac_objext; then :
1613 $as_echo "$as_me: failed program was:" >&5
1614 sed 's/^/| /' conftest.$ac_ext >&5
1618 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1619 as_fn_set_status $ac_retval
1621 } # ac_fn_c_try_compile
1623 # ac_fn_c_try_link LINENO
1624 # -----------------------
1625 # Try to link conftest.$ac_ext, and return whether this succeeded.
1628 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1629 rm -f conftest.$ac_objext conftest$ac_exeext
1630 if { { ac_try="$ac_link"
1632 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1633 *) ac_try_echo=$ac_try;;
1635 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1636 $as_echo "$ac_try_echo"; } >&5
1637 (eval "$ac_link") 2>conftest.err
1639 if test -s conftest.err; then
1640 grep -v '^ *+' conftest.err >conftest.er1
1641 cat conftest.er1 >&5
1642 mv -f conftest.er1 conftest.err
1644 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1645 test $ac_status = 0; } && {
1646 test -z "$ac_c_werror_flag" ||
1647 test ! -s conftest.err
1648 } && test -s conftest$ac_exeext && {
1649 test "$cross_compiling" = yes ||
1650 $as_test_x conftest$ac_exeext
1654 $as_echo "$as_me: failed program was:" >&5
1655 sed 's/^/| /' conftest.$ac_ext >&5
1659 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1660 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1661 # interfere with the next link command; also delete a directory that is
1662 # left behind by Apple's compiler. We do this before executing the actions.
1663 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1664 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1665 as_fn_set_status $ac_retval
1667 } # ac_fn_c_try_link
1669 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1670 # -------------------------------------------------------
1671 # Tests whether HEADER exists and can be compiled using the include files in
1672 # INCLUDES, setting the cache variable VAR accordingly.
1673 ac_fn_c_check_header_compile ()
1675 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1676 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1677 $as_echo_n "checking for $2... " >&6; }
1678 if eval "test \"\${$3+set}\"" = set; then :
1679 $as_echo_n "(cached) " >&6
1681 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1682 /* end confdefs.h. */
1686 if ac_fn_c_try_compile "$LINENO"; then :
1691 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1695 $as_echo "$ac_res" >&6; }
1696 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1698 } # ac_fn_c_check_header_compile
1700 # ac_fn_c_try_cpp LINENO
1701 # ----------------------
1702 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1705 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1706 if { { ac_try="$ac_cpp conftest.$ac_ext"
1708 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1709 *) ac_try_echo=$ac_try;;
1711 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1712 $as_echo "$ac_try_echo"; } >&5
1713 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1715 if test -s conftest.err; then
1716 grep -v '^ *+' conftest.err >conftest.er1
1717 cat conftest.er1 >&5
1718 mv -f conftest.er1 conftest.err
1720 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1721 test $ac_status = 0; } > conftest.i && {
1722 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1723 test ! -s conftest.err
1727 $as_echo "$as_me: failed program was:" >&5
1728 sed 's/^/| /' conftest.$ac_ext >&5
1732 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1733 as_fn_set_status $ac_retval
1737 # ac_fn_c_try_run LINENO
1738 # ----------------------
1739 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1740 # that executables *can* be run.
1743 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1744 if { { ac_try="$ac_link"
1746 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1747 *) ac_try_echo=$ac_try;;
1749 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1750 $as_echo "$ac_try_echo"; } >&5
1751 (eval "$ac_link") 2>&5
1753 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1754 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1755 { { case "(($ac_try" in
1756 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1757 *) ac_try_echo=$ac_try;;
1759 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1760 $as_echo "$ac_try_echo"; } >&5
1761 (eval "$ac_try") 2>&5
1763 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1764 test $ac_status = 0; }; }; then :
1767 $as_echo "$as_me: program exited with status $ac_status" >&5
1768 $as_echo "$as_me: failed program was:" >&5
1769 sed 's/^/| /' conftest.$ac_ext >&5
1771 ac_retval=$ac_status
1773 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1774 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1775 as_fn_set_status $ac_retval
1779 # ac_fn_c_check_func LINENO FUNC VAR
1780 # ----------------------------------
1781 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1782 ac_fn_c_check_func ()
1784 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1785 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1786 $as_echo_n "checking for $2... " >&6; }
1787 if eval "test \"\${$3+set}\"" = set; then :
1788 $as_echo_n "(cached) " >&6
1790 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1791 /* end confdefs.h. */
1792 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1793 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1794 #define $2 innocuous_$2
1796 /* System header to define __stub macros and hopefully few prototypes,
1797 which can conflict with char $2 (); below.
1798 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1799 <limits.h> exists even on freestanding compilers. */
1802 # include <limits.h>
1804 # include <assert.h>
1809 /* Override any GCC internal prototype to avoid an error.
1810 Use char because int might match the return type of a GCC
1811 builtin and then its argument prototype would still apply. */
1816 /* The GNU C library defines this for functions which it implements
1817 to always fail with ENOSYS. Some functions are actually named
1818 something starting with __ and the normal name is an alias. */
1819 #if defined __stub_$2 || defined __stub___$2
1831 if ac_fn_c_try_link "$LINENO"; then :
1836 rm -f core conftest.err conftest.$ac_objext \
1837 conftest$ac_exeext conftest.$ac_ext
1840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1841 $as_echo "$ac_res" >&6; }
1842 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1844 } # ac_fn_c_check_func
1846 # ac_fn_cxx_try_compile LINENO
1847 # ----------------------------
1848 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1849 ac_fn_cxx_try_compile ()
1851 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1852 rm -f conftest.$ac_objext
1853 if { { ac_try="$ac_compile"
1855 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1856 *) ac_try_echo=$ac_try;;
1858 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1859 $as_echo "$ac_try_echo"; } >&5
1860 (eval "$ac_compile") 2>conftest.err
1862 if test -s conftest.err; then
1863 grep -v '^ *+' conftest.err >conftest.er1
1864 cat conftest.er1 >&5
1865 mv -f conftest.er1 conftest.err
1867 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1868 test $ac_status = 0; } && {
1869 test -z "$ac_cxx_werror_flag" ||
1870 test ! -s conftest.err
1871 } && test -s conftest.$ac_objext; then :
1874 $as_echo "$as_me: failed program was:" >&5
1875 sed 's/^/| /' conftest.$ac_ext >&5
1879 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1880 as_fn_set_status $ac_retval
1882 } # ac_fn_cxx_try_compile
1884 # ac_fn_cxx_try_cpp LINENO
1885 # ------------------------
1886 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1887 ac_fn_cxx_try_cpp ()
1889 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1890 if { { ac_try="$ac_cpp conftest.$ac_ext"
1892 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1893 *) ac_try_echo=$ac_try;;
1895 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1896 $as_echo "$ac_try_echo"; } >&5
1897 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1899 if test -s conftest.err; then
1900 grep -v '^ *+' conftest.err >conftest.er1
1901 cat conftest.er1 >&5
1902 mv -f conftest.er1 conftest.err
1904 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1905 test $ac_status = 0; } > conftest.i && {
1906 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
1907 test ! -s conftest.err
1911 $as_echo "$as_me: failed program was:" >&5
1912 sed 's/^/| /' conftest.$ac_ext >&5
1916 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1917 as_fn_set_status $ac_retval
1919 } # ac_fn_cxx_try_cpp
1921 # ac_fn_cxx_try_link LINENO
1922 # -------------------------
1923 # Try to link conftest.$ac_ext, and return whether this succeeded.
1924 ac_fn_cxx_try_link ()
1926 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1927 rm -f conftest.$ac_objext conftest$ac_exeext
1928 if { { ac_try="$ac_link"
1930 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1931 *) ac_try_echo=$ac_try;;
1933 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1934 $as_echo "$ac_try_echo"; } >&5
1935 (eval "$ac_link") 2>conftest.err
1937 if test -s conftest.err; then
1938 grep -v '^ *+' conftest.err >conftest.er1
1939 cat conftest.er1 >&5
1940 mv -f conftest.er1 conftest.err
1942 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1943 test $ac_status = 0; } && {
1944 test -z "$ac_cxx_werror_flag" ||
1945 test ! -s conftest.err
1946 } && test -s conftest$ac_exeext && {
1947 test "$cross_compiling" = yes ||
1948 $as_test_x conftest$ac_exeext
1952 $as_echo "$as_me: failed program was:" >&5
1953 sed 's/^/| /' conftest.$ac_ext >&5
1957 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1958 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1959 # interfere with the next link command; also delete a directory that is
1960 # left behind by Apple's compiler. We do this before executing the actions.
1961 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1962 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1963 as_fn_set_status $ac_retval
1965 } # ac_fn_cxx_try_link
1967 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1968 # -------------------------------------------
1969 # Tests whether TYPE exists after having included INCLUDES, setting cache
1970 # variable VAR accordingly.
1971 ac_fn_c_check_type ()
1973 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1974 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1975 $as_echo_n "checking for $2... " >&6; }
1976 if eval "test \"\${$3+set}\"" = set; then :
1977 $as_echo_n "(cached) " >&6
1980 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1981 /* end confdefs.h. */
1992 if ac_fn_c_try_compile "$LINENO"; then :
1993 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1994 /* end confdefs.h. */
2005 if ac_fn_c_try_compile "$LINENO"; then :
2010 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2012 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2016 $as_echo "$ac_res" >&6; }
2017 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2019 } # ac_fn_c_check_type
2021 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2022 # --------------------------------------------
2023 # Tries to find the compile-time value of EXPR in a program that includes
2024 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2026 ac_fn_c_compute_int ()
2028 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2029 if test "$cross_compiling" = yes; then
2030 # Depending upon the size, compute the lo and hi bounds.
2031 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2032 /* end confdefs.h. */
2037 static int test_array [1 - 2 * !(($2) >= 0)];
2044 if ac_fn_c_try_compile "$LINENO"; then :
2047 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2048 /* end confdefs.h. */
2053 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2060 if ac_fn_c_try_compile "$LINENO"; then :
2061 ac_hi=$ac_mid; break
2063 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2064 if test $ac_lo -le $ac_mid; then
2068 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2070 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2073 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2074 /* end confdefs.h. */
2079 static int test_array [1 - 2 * !(($2) < 0)];
2086 if ac_fn_c_try_compile "$LINENO"; then :
2089 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2090 /* end confdefs.h. */
2095 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2102 if ac_fn_c_try_compile "$LINENO"; then :
2103 ac_lo=$ac_mid; break
2105 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2106 if test $ac_mid -le $ac_hi; then
2110 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2112 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2117 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2119 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2120 # Binary search between lo and hi bounds.
2121 while test "x$ac_lo" != "x$ac_hi"; do
2122 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2123 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2124 /* end confdefs.h. */
2129 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2136 if ac_fn_c_try_compile "$LINENO"; then :
2139 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2141 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2144 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2148 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2149 /* end confdefs.h. */
2151 static long int longval () { return $2; }
2152 static unsigned long int ulongval () { return $2; }
2159 FILE *f = fopen ("conftest.val", "w");
2164 long int i = longval ();
2167 fprintf (f, "%ld", i);
2171 unsigned long int i = ulongval ();
2174 fprintf (f, "%lu", i);
2176 /* Do not output a trailing newline, as this causes \r\n confusion
2177 on some platforms. */
2178 return ferror (f) || fclose (f) != 0;
2184 if ac_fn_c_try_run "$LINENO"; then :
2185 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2189 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2190 conftest.$ac_objext conftest.beam conftest.$ac_ext
2194 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2195 as_fn_set_status $ac_retval
2197 } # ac_fn_c_compute_int
2199 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
2200 # -------------------------------------------------------
2201 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
2202 # the include files in INCLUDES and setting the cache variable VAR
2204 ac_fn_c_check_header_mongrel ()
2206 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2207 if eval "test \"\${$3+set}\"" = set; then :
2208 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2209 $as_echo_n "checking for $2... " >&6; }
2210 if eval "test \"\${$3+set}\"" = set; then :
2211 $as_echo_n "(cached) " >&6
2214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2215 $as_echo "$ac_res" >&6; }
2217 # Is the header compilable?
2218 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2219 $as_echo_n "checking $2 usability... " >&6; }
2220 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2221 /* end confdefs.h. */
2225 if ac_fn_c_try_compile "$LINENO"; then :
2226 ac_header_compiler=yes
2228 ac_header_compiler=no
2230 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2232 $as_echo "$ac_header_compiler" >&6; }
2234 # Is the header present?
2235 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2236 $as_echo_n "checking $2 presence... " >&6; }
2237 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2238 /* end confdefs.h. */
2241 if ac_fn_c_try_cpp "$LINENO"; then :
2242 ac_header_preproc=yes
2244 ac_header_preproc=no
2246 rm -f conftest.err conftest.i conftest.$ac_ext
2247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2248 $as_echo "$ac_header_preproc" >&6; }
2250 # So? What about this header?
2251 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2253 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2254 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2255 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2256 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2259 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2260 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2261 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2262 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2263 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2264 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2265 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2266 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2267 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2268 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2269 ( $as_echo "## ------------------------------------------ ##
2270 ## Report this to https://bugs.internet2.edu/ ##
2271 ## ------------------------------------------ ##"
2272 ) | sed "s/^/$as_me: WARNING: /" >&2
2275 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2276 $as_echo_n "checking for $2... " >&6; }
2277 if eval "test \"\${$3+set}\"" = set; then :
2278 $as_echo_n "(cached) " >&6
2280 eval "$3=\$ac_header_compiler"
2283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2284 $as_echo "$ac_res" >&6; }
2286 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2288 } # ac_fn_c_check_header_mongrel
2290 # ac_fn_cxx_check_header_mongrel LINENO HEADER VAR INCLUDES
2291 # ---------------------------------------------------------
2292 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
2293 # the include files in INCLUDES and setting the cache variable VAR
2295 ac_fn_cxx_check_header_mongrel ()
2297 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2298 if eval "test \"\${$3+set}\"" = set; then :
2299 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2300 $as_echo_n "checking for $2... " >&6; }
2301 if eval "test \"\${$3+set}\"" = set; then :
2302 $as_echo_n "(cached) " >&6
2305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2306 $as_echo "$ac_res" >&6; }
2308 # Is the header compilable?
2309 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2310 $as_echo_n "checking $2 usability... " >&6; }
2311 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2312 /* end confdefs.h. */
2316 if ac_fn_cxx_try_compile "$LINENO"; then :
2317 ac_header_compiler=yes
2319 ac_header_compiler=no
2321 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2323 $as_echo "$ac_header_compiler" >&6; }
2325 # Is the header present?
2326 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2327 $as_echo_n "checking $2 presence... " >&6; }
2328 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2329 /* end confdefs.h. */
2332 if ac_fn_cxx_try_cpp "$LINENO"; then :
2333 ac_header_preproc=yes
2335 ac_header_preproc=no
2337 rm -f conftest.err conftest.i conftest.$ac_ext
2338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2339 $as_echo "$ac_header_preproc" >&6; }
2341 # So? What about this header?
2342 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in #((
2344 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2345 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2346 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2347 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2350 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2351 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2352 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2353 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2354 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2355 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2356 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2357 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2358 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2359 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2360 ( $as_echo "## ------------------------------------------ ##
2361 ## Report this to https://bugs.internet2.edu/ ##
2362 ## ------------------------------------------ ##"
2363 ) | sed "s/^/$as_me: WARNING: /" >&2
2366 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2367 $as_echo_n "checking for $2... " >&6; }
2368 if eval "test \"\${$3+set}\"" = set; then :
2369 $as_echo_n "(cached) " >&6
2371 eval "$3=\$ac_header_compiler"
2374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2375 $as_echo "$ac_res" >&6; }
2377 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2379 } # ac_fn_cxx_check_header_mongrel
2381 # ac_fn_cxx_check_decl LINENO SYMBOL VAR INCLUDES
2382 # -----------------------------------------------
2383 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2385 ac_fn_cxx_check_decl ()
2387 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2388 as_decl_name=`echo $2|sed 's/ *(.*//'`
2389 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2390 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2391 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2392 if eval "test \"\${$3+set}\"" = set; then :
2393 $as_echo_n "(cached) " >&6
2395 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2396 /* end confdefs.h. */
2401 #ifndef $as_decl_name
2403 (void) $as_decl_use;
2405 (void) $as_decl_name;
2413 if ac_fn_cxx_try_compile "$LINENO"; then :
2418 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2422 $as_echo "$ac_res" >&6; }
2423 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2425 } # ac_fn_cxx_check_decl
2427 # ac_fn_cxx_check_type LINENO TYPE VAR INCLUDES
2428 # ---------------------------------------------
2429 # Tests whether TYPE exists after having included INCLUDES, setting cache
2430 # variable VAR accordingly.
2431 ac_fn_cxx_check_type ()
2433 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2434 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2435 $as_echo_n "checking for $2... " >&6; }
2436 if eval "test \"\${$3+set}\"" = set; then :
2437 $as_echo_n "(cached) " >&6
2440 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2441 /* end confdefs.h. */
2452 if ac_fn_cxx_try_compile "$LINENO"; then :
2453 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2454 /* end confdefs.h. */
2465 if ac_fn_cxx_try_compile "$LINENO"; then :
2470 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2472 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2476 $as_echo "$ac_res" >&6; }
2477 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2479 } # ac_fn_cxx_check_type
2480 cat >config.log <<_ACEOF
2481 This file contains any messages produced by compilers while
2482 running configure, to aid debugging if configure makes a mistake.
2484 It was created by xmltooling $as_me 1.5, which was
2485 generated by GNU Autoconf 2.67. Invocation command line was
2497 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2498 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2499 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2500 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2501 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2503 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2504 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2506 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2507 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2508 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2509 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2510 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2511 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2512 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2516 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2520 test -z "$as_dir" && as_dir=.
2521 $as_echo "PATH: $as_dir"
2537 # Keep a trace of the command line.
2538 # Strip out --no-create and --no-recursion so they do not pile up.
2539 # Strip out --silent because we don't want to record it for future runs.
2540 # Also quote any args containing shell meta-characters.
2541 # Make two passes to allow for proper duplicate-argument suppression.
2545 ac_must_keep_next=false
2551 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2552 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2553 | -silent | --silent | --silen | --sile | --sil)
2556 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2559 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2561 as_fn_append ac_configure_args1 " '$ac_arg'"
2562 if test $ac_must_keep_next = true; then
2563 ac_must_keep_next=false # Got value, back to normal.
2566 *=* | --config-cache | -C | -disable-* | --disable-* \
2567 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2568 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2569 | -with-* | --with-* | -without-* | --without-* | --x)
2570 case "$ac_configure_args0 " in
2571 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2574 -* ) ac_must_keep_next=true ;;
2577 as_fn_append ac_configure_args " '$ac_arg'"
2582 { ac_configure_args0=; unset ac_configure_args0;}
2583 { ac_configure_args1=; unset ac_configure_args1;}
2585 # When interrupted or exit'd, cleanup temporary files, and complete
2586 # config.log. We remove comments because anyway the quotes in there
2587 # would cause problems or look ugly.
2588 # WARNING: Use '\'' to represent an apostrophe within the trap.
2589 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2590 trap 'exit_status=$?
2591 # Save into config.log some information that might help in debugging.
2595 $as_echo "## ---------------- ##
2596 ## Cache variables. ##
2597 ## ---------------- ##"
2599 # The following way of writing the cache mishandles newlines in values,
2601 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2602 eval ac_val=\$$ac_var
2606 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2607 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2610 _ | IFS | as_nl) ;; #(
2611 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2612 *) { eval $ac_var=; unset $ac_var;} ;;
2617 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2618 *${as_nl}ac_space=\ *)
2620 "s/'\''/'\''\\\\'\'''\''/g;
2621 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2624 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2631 $as_echo "## ----------------- ##
2632 ## Output variables. ##
2633 ## ----------------- ##"
2635 for ac_var in $ac_subst_vars
2637 eval ac_val=\$$ac_var
2639 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2641 $as_echo "$ac_var='\''$ac_val'\''"
2645 if test -n "$ac_subst_files"; then
2646 $as_echo "## ------------------- ##
2647 ## File substitutions. ##
2648 ## ------------------- ##"
2650 for ac_var in $ac_subst_files
2652 eval ac_val=\$$ac_var
2654 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2656 $as_echo "$ac_var='\''$ac_val'\''"
2661 if test -s confdefs.h; then
2662 $as_echo "## ----------- ##
2669 test "$ac_signal" != 0 &&
2670 $as_echo "$as_me: caught signal $ac_signal"
2671 $as_echo "$as_me: exit $exit_status"
2673 rm -f core *.core core.conftest.* &&
2674 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2677 for ac_signal in 1 2 13 15; do
2678 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2682 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2683 rm -f -r conftest* confdefs.h
2685 $as_echo "/* confdefs.h */" > confdefs.h
2687 # Predefined preprocessor variables.
2689 cat >>confdefs.h <<_ACEOF
2690 #define PACKAGE_NAME "$PACKAGE_NAME"
2693 cat >>confdefs.h <<_ACEOF
2694 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2697 cat >>confdefs.h <<_ACEOF
2698 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2701 cat >>confdefs.h <<_ACEOF
2702 #define PACKAGE_STRING "$PACKAGE_STRING"
2705 cat >>confdefs.h <<_ACEOF
2706 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2709 cat >>confdefs.h <<_ACEOF
2710 #define PACKAGE_URL "$PACKAGE_URL"
2714 # Let the site file select an alternate cache file if it wants to.
2715 # Prefer an explicitly selected file to automatically selected ones.
2718 if test -n "$CONFIG_SITE"; then
2719 # We do not want a PATH search for config.site.
2720 case $CONFIG_SITE in #((
2721 -*) ac_site_file1=./$CONFIG_SITE;;
2722 */*) ac_site_file1=$CONFIG_SITE;;
2723 *) ac_site_file1=./$CONFIG_SITE;;
2725 elif test "x$prefix" != xNONE; then
2726 ac_site_file1=$prefix/share/config.site
2727 ac_site_file2=$prefix/etc/config.site
2729 ac_site_file1=$ac_default_prefix/share/config.site
2730 ac_site_file2=$ac_default_prefix/etc/config.site
2732 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2734 test "x$ac_site_file" = xNONE && continue
2735 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2736 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2737 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2738 sed 's/^/| /' "$ac_site_file" >&5
2740 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2741 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2742 as_fn_error $? "failed to load site script $ac_site_file
2743 See \`config.log' for more details" "$LINENO" 5 ; }
2747 if test -r "$cache_file"; then
2748 # Some versions of bash will fail to source /dev/null (special files
2749 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2750 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2751 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2752 $as_echo "$as_me: loading cache $cache_file" >&6;}
2754 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2755 *) . "./$cache_file";;
2759 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2760 $as_echo "$as_me: creating cache $cache_file" >&6;}
2764 # Check that the precious variables saved in the cache have kept the same
2766 ac_cache_corrupted=false
2767 for ac_var in $ac_precious_vars; do
2768 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2769 eval ac_new_set=\$ac_env_${ac_var}_set
2770 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2771 eval ac_new_val=\$ac_env_${ac_var}_value
2772 case $ac_old_set,$ac_new_set in
2774 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2775 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2776 ac_cache_corrupted=: ;;
2778 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2779 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2780 ac_cache_corrupted=: ;;
2783 if test "x$ac_old_val" != "x$ac_new_val"; then
2784 # differences in whitespace do not lead to failure.
2785 ac_old_val_w=`echo x $ac_old_val`
2786 ac_new_val_w=`echo x $ac_new_val`
2787 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2788 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2789 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2790 ac_cache_corrupted=:
2792 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2793 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2794 eval $ac_var=\$ac_old_val
2796 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2797 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2798 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2799 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2802 # Pass precious variables to config.status.
2803 if test "$ac_new_set" = set; then
2805 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2806 *) ac_arg=$ac_var=$ac_new_val ;;
2808 case " $ac_configure_args " in
2809 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2810 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2814 if $ac_cache_corrupted; then
2815 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2816 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2817 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2818 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2819 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2821 ## -------------------- ##
2822 ## Main body of script. ##
2823 ## -------------------- ##
2826 ac_cpp='$CPP $CPPFLAGS'
2827 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2828 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2829 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2834 for ac_dir in build-aux "$srcdir"/build-aux; do
2835 if test -f "$ac_dir/install-sh"; then
2837 ac_install_sh="$ac_aux_dir/install-sh -c"
2839 elif test -f "$ac_dir/install.sh"; then
2841 ac_install_sh="$ac_aux_dir/install.sh -c"
2843 elif test -f "$ac_dir/shtool"; then
2845 ac_install_sh="$ac_aux_dir/shtool install -c"
2849 if test -z "$ac_aux_dir"; then
2850 as_fn_error $? "cannot find install-sh, install.sh, or shtool in build-aux \"$srcdir\"/build-aux" "$LINENO" 5
2853 # These three variables are undocumented and unsupported,
2854 # and are intended to be withdrawn in a future Autoconf release.
2855 # They can cause serious problems if a builder's source tree is in a directory
2856 # whose full name contains unusual characters.
2857 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2858 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2859 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2863 am__api_version='1.11'
2865 # Find a good install program. We prefer a C program (faster),
2866 # so one script is as good as another. But avoid the broken or
2867 # incompatible versions:
2868 # SysV /etc/install, /usr/sbin/install
2869 # SunOS /usr/etc/install
2870 # IRIX /sbin/install
2872 # AmigaOS /C/install, which installs bootblocks on floppy discs
2873 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2874 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2875 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2876 # OS/2's system install, which has a completely different semantic
2877 # ./install, which can be erroneously created by make from ./install.sh.
2878 # Reject install programs that cannot install multiple files.
2879 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2880 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2881 if test -z "$INSTALL"; then
2882 if test "${ac_cv_path_install+set}" = set; then :
2883 $as_echo_n "(cached) " >&6
2885 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2889 test -z "$as_dir" && as_dir=.
2890 # Account for people who put trailing slashes in PATH elements.
2891 case $as_dir/ in #((
2892 ./ | .// | /[cC]/* | \
2893 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2894 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2897 # OSF1 and SCO ODT 3.0 have their own names for install.
2898 # Don't use installbsd from OSF since it installs stuff as root
2900 for ac_prog in ginstall scoinst install; do
2901 for ac_exec_ext in '' $ac_executable_extensions; do
2902 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2903 if test $ac_prog = install &&
2904 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2905 # AIX install. It has an incompatible calling convention.
2907 elif test $ac_prog = install &&
2908 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2909 # program-specific install script used by HP pwplus--don't use.
2912 rm -rf conftest.one conftest.two conftest.dir
2913 echo one > conftest.one
2914 echo two > conftest.two
2916 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2917 test -s conftest.one && test -s conftest.two &&
2918 test -s conftest.dir/conftest.one &&
2919 test -s conftest.dir/conftest.two
2921 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2934 rm -rf conftest.one conftest.two conftest.dir
2937 if test "${ac_cv_path_install+set}" = set; then
2938 INSTALL=$ac_cv_path_install
2940 # As a last resort, use the slow shell script. Don't cache a
2941 # value for INSTALL within a source directory, because that will
2942 # break other packages using the cache if that directory is
2943 # removed, or if the value is a relative name.
2944 INSTALL=$ac_install_sh
2947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2948 $as_echo "$INSTALL" >&6; }
2950 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2951 # It thinks the first close brace ends the variable substitution.
2952 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2954 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2956 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2958 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2959 $as_echo_n "checking whether build environment is sane... " >&6; }
2962 echo timestamp > conftest.file
2963 # Reject unsafe characters in $srcdir or the absolute working directory
2964 # name. Accept space and tab only in the latter.
2968 *[\\\"\#\$\&\'\`$am_lf]*)
2969 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5 ;;
2972 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2973 as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5 ;;
2976 # Do `set' in a subshell so we don't clobber the current shell's
2977 # arguments. Must try -L first in case configure is actually a
2978 # symlink; some systems play weird games with the mod time of symlinks
2979 # (eg FreeBSD returns the mod time of the symlink's containing
2982 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2983 if test "$*" = "X"; then
2985 set X `ls -t "$srcdir/configure" conftest.file`
2988 if test "$*" != "X $srcdir/configure conftest.file" \
2989 && test "$*" != "X conftest.file $srcdir/configure"; then
2991 # If neither matched, then we have a broken ls. This can happen
2992 # if, for instance, CONFIG_SHELL is bash and it inherits a
2993 # broken ls alias from the environment. This has actually
2994 # happened. Such a system could not be considered "sane".
2995 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
2996 alias in your environment" "$LINENO" 5
2999 test "$2" = conftest.file
3005 as_fn_error $? "newly created file is older than distributed files!
3006 Check your system clock" "$LINENO" 5
3008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3009 $as_echo "yes" >&6; }
3010 test "$program_prefix" != NONE &&
3011 program_transform_name="s&^&$program_prefix&;$program_transform_name"
3012 # Use a double $ so make ignores it.
3013 test "$program_suffix" != NONE &&
3014 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3015 # Double any \ or $.
3016 # By default was `s,x,x', remove it if useless.
3017 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3018 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
3020 # expand $ac_aux_dir to an absolute path
3021 am_aux_dir=`cd $ac_aux_dir && pwd`
3023 if test x"${MISSING+set}" != xset; then
3026 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
3028 MISSING="\${SHELL} $am_aux_dir/missing" ;;
3031 # Use eval to expand $SHELL
3032 if eval "$MISSING --run true"; then
3033 am_missing_run="$MISSING --run "
3036 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
3037 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
3040 if test x"${install_sh}" != xset; then
3043 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
3045 install_sh="\${SHELL} $am_aux_dir/install-sh"
3049 # Installed binaries are usually stripped using `strip' when the user
3050 # run `make install-strip'. However `strip' might not be the right
3051 # tool to use in cross-compilation environments, therefore Automake
3052 # will honor the `STRIP' environment variable to overrule this program.
3053 if test "$cross_compiling" != no; then
3054 if test -n "$ac_tool_prefix"; then
3055 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3056 set dummy ${ac_tool_prefix}strip; ac_word=$2
3057 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3058 $as_echo_n "checking for $ac_word... " >&6; }
3059 if test "${ac_cv_prog_STRIP+set}" = set; then :
3060 $as_echo_n "(cached) " >&6
3062 if test -n "$STRIP"; then
3063 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3065 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3069 test -z "$as_dir" && as_dir=.
3070 for ac_exec_ext in '' $ac_executable_extensions; do
3071 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3072 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3073 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3082 STRIP=$ac_cv_prog_STRIP
3083 if test -n "$STRIP"; then
3084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3085 $as_echo "$STRIP" >&6; }
3087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3088 $as_echo "no" >&6; }
3093 if test -z "$ac_cv_prog_STRIP"; then
3095 # Extract the first word of "strip", so it can be a program name with args.
3096 set dummy strip; ac_word=$2
3097 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3098 $as_echo_n "checking for $ac_word... " >&6; }
3099 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
3100 $as_echo_n "(cached) " >&6
3102 if test -n "$ac_ct_STRIP"; then
3103 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3105 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3109 test -z "$as_dir" && as_dir=.
3110 for ac_exec_ext in '' $ac_executable_extensions; do
3111 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3112 ac_cv_prog_ac_ct_STRIP="strip"
3113 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3122 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3123 if test -n "$ac_ct_STRIP"; then
3124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3125 $as_echo "$ac_ct_STRIP" >&6; }
3127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3128 $as_echo "no" >&6; }
3131 if test "x$ac_ct_STRIP" = x; then
3134 case $cross_compiling:$ac_tool_warned in
3136 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3137 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3138 ac_tool_warned=yes ;;
3143 STRIP="$ac_cv_prog_STRIP"
3147 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3149 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
3150 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3151 if test -z "$MKDIR_P"; then
3152 if test "${ac_cv_path_mkdir+set}" = set; then :
3153 $as_echo_n "(cached) " >&6
3155 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3156 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3159 test -z "$as_dir" && as_dir=.
3160 for ac_prog in mkdir gmkdir; do
3161 for ac_exec_ext in '' $ac_executable_extensions; do
3162 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
3163 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3164 'mkdir (GNU coreutils) '* | \
3165 'mkdir (coreutils) '* | \
3166 'mkdir (fileutils) '4.1*)
3167 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
3177 test -d ./--version && rmdir ./--version
3178 if test "${ac_cv_path_mkdir+set}" = set; then
3179 MKDIR_P="$ac_cv_path_mkdir -p"
3181 # As a last resort, use the slow shell script. Don't cache a
3182 # value for MKDIR_P within a source directory, because that will
3183 # break other packages using the cache if that directory is
3184 # removed, or if the value is a relative name.
3185 MKDIR_P="$ac_install_sh -d"
3188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3189 $as_echo "$MKDIR_P" >&6; }
3193 [\\/$]* | ?:[\\/]*) ;;
3194 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
3197 for ac_prog in gawk mawk nawk awk
3199 # Extract the first word of "$ac_prog", so it can be a program name with args.
3200 set dummy $ac_prog; ac_word=$2
3201 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3202 $as_echo_n "checking for $ac_word... " >&6; }
3203 if test "${ac_cv_prog_AWK+set}" = set; then :
3204 $as_echo_n "(cached) " >&6
3206 if test -n "$AWK"; then
3207 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3209 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3213 test -z "$as_dir" && as_dir=.
3214 for ac_exec_ext in '' $ac_executable_extensions; do
3215 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3216 ac_cv_prog_AWK="$ac_prog"
3217 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3227 if test -n "$AWK"; then
3228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3229 $as_echo "$AWK" >&6; }
3231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3232 $as_echo "no" >&6; }
3236 test -n "$AWK" && break
3239 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3240 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3242 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3243 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\"" = set; then :
3244 $as_echo_n "(cached) " >&6
3246 cat >conftest.make <<\_ACEOF
3249 @echo '@@@%%%=$(MAKE)=@@@%%%'
3251 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3252 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3254 eval ac_cv_prog_make_${ac_make}_set=yes;;
3256 eval ac_cv_prog_make_${ac_make}_set=no;;
3260 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3262 $as_echo "yes" >&6; }
3265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3266 $as_echo "no" >&6; }
3267 SET_MAKE="MAKE=${MAKE-make}"
3270 rm -rf .tst 2>/dev/null
3271 mkdir .tst 2>/dev/null
3272 if test -d .tst; then
3277 rmdir .tst 2>/dev/null
3279 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3280 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3281 # is not polluted with repeated "-I."
3282 am__isrc=' -I$(srcdir)'
3283 # test to see if srcdir already configured
3284 if test -f $srcdir/config.status; then
3285 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3289 # test whether we have cygpath
3290 if test -z "$CYGPATH_W"; then
3291 if (cygpath --version) >/dev/null 2>/dev/null; then
3292 CYGPATH_W='cygpath -w'
3299 # Define the identity of the package.
3300 PACKAGE='xmltooling'
3304 cat >>confdefs.h <<_ACEOF
3305 #define PACKAGE "$PACKAGE"
3309 cat >>confdefs.h <<_ACEOF
3310 #define VERSION "$VERSION"
3313 # Some tools Automake needs.
3315 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3318 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3321 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3324 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3327 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3329 # We need awk for the "check" target. The system "awk" is bad on
3331 # Always define AMTAR for backward compatibility.
3333 AMTAR=${AMTAR-"${am_missing_run}tar"}
3335 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
3341 # Check whether --enable-static was given.
3342 if test "${enable_static+set}" = set; then :
3343 enableval=$enable_static; p=${PACKAGE-default}
3345 yes) enable_static=yes ;;
3346 no) enable_static=no ;;
3349 # Look at the argument we got. We use all the common list separators.
3350 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3351 for pkg in $enableval; do
3353 if test "X$pkg" = "X$p"; then
3374 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
3375 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
3381 macro_revision='1.3293'
3395 ltmain="$ac_aux_dir/ltmain.sh"
3397 # Make sure we can run config.sub.
3398 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3399 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
3401 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3402 $as_echo_n "checking build system type... " >&6; }
3403 if test "${ac_cv_build+set}" = set; then :
3404 $as_echo_n "(cached) " >&6
3406 ac_build_alias=$build_alias
3407 test "x$ac_build_alias" = x &&
3408 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3409 test "x$ac_build_alias" = x &&
3410 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
3411 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3412 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
3415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3416 $as_echo "$ac_cv_build" >&6; }
3417 case $ac_cv_build in
3419 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5 ;;
3422 ac_save_IFS=$IFS; IFS='-'
3428 # Remember, the first character of IFS is used to create $*,
3429 # except with old shells:
3432 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3435 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3436 $as_echo_n "checking host system type... " >&6; }
3437 if test "${ac_cv_host+set}" = set; then :
3438 $as_echo_n "(cached) " >&6
3440 if test "x$host_alias" = x; then
3441 ac_cv_host=$ac_cv_build
3443 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3444 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
3448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3449 $as_echo "$ac_cv_host" >&6; }
3452 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5 ;;
3455 ac_save_IFS=$IFS; IFS='-'
3461 # Remember, the first character of IFS is used to create $*,
3462 # except with old shells:
3465 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3468 # Backslashify metacharacters that are still active within
3469 # double-quoted strings.
3470 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
3472 # Same as above, but do not quote variable references.
3473 double_quote_subst='s/\(["`\\]\)/\\\1/g'
3475 # Sed substitution to delay expansion of an escaped shell variable in a
3476 # double_quote_subst'ed string.
3477 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
3479 # Sed substitution to delay expansion of an escaped single quote.
3480 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
3482 # Sed substitution to avoid accidental globbing in evaled expressions
3483 no_glob_subst='s/\*/\\\*/g'
3485 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
3486 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
3487 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
3489 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
3490 $as_echo_n "checking how to print strings... " >&6; }
3491 # Test print first, because it will be a builtin if present.
3492 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
3493 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
3495 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
3498 # Use this function as a fallback that always works.
3499 func_fallback_echo ()
3501 eval 'cat <<_LTECHO_EOF
3505 ECHO='func_fallback_echo'
3508 # func_echo_all arg...
3509 # Invoke $ECHO with all args, space-separated.
3516 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
3517 $as_echo "printf" >&6; } ;;
3518 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
3519 $as_echo "print -r" >&6; } ;;
3520 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
3521 $as_echo "cat" >&6; } ;;
3537 DEPDIR="${am__leading_dot}deps"
3539 ac_config_commands="$ac_config_commands depfiles"
3542 am_make=${MAKE-make}
3543 cat > confinc << 'END'
3545 @echo this is the am__doit target
3548 # If we don't find an include directive, just comment out the code.
3549 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3550 $as_echo_n "checking for style of include used by $am_make... " >&6; }
3554 # First try GNU make style include.
3555 echo "include confinc" > confmf
3556 # Ignore all kinds of additional output from `make'.
3557 case `$am_make -s -f confmf 2> /dev/null` in #(
3558 *the\ am__doit\ target*)
3564 # Now try BSD make style include.
3565 if test "$am__include" = "#"; then
3566 echo '.include "confinc"' > confmf
3567 case `$am_make -s -f confmf 2> /dev/null` in #(
3568 *the\ am__doit\ target*)
3569 am__include=.include
3577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3578 $as_echo "$_am_result" >&6; }
3579 rm -f confinc confmf
3581 # Check whether --enable-dependency-tracking was given.
3582 if test "${enable_dependency_tracking+set}" = set; then :
3583 enableval=$enable_dependency_tracking;
3586 if test "x$enable_dependency_tracking" != xno; then
3587 am_depcomp="$ac_aux_dir/depcomp"
3590 if test "x$enable_dependency_tracking" != xno; then
3600 ac_cpp='$CPP $CPPFLAGS'
3601 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3602 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3603 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3604 if test -n "$ac_tool_prefix"; then
3605 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3606 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3607 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3608 $as_echo_n "checking for $ac_word... " >&6; }
3609 if test "${ac_cv_prog_CC+set}" = set; then :
3610 $as_echo_n "(cached) " >&6
3612 if test -n "$CC"; then
3613 ac_cv_prog_CC="$CC" # Let the user override the test.
3615 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3619 test -z "$as_dir" && as_dir=.
3620 for ac_exec_ext in '' $ac_executable_extensions; do
3621 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3622 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3623 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3633 if test -n "$CC"; then
3634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3635 $as_echo "$CC" >&6; }
3637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3638 $as_echo "no" >&6; }
3643 if test -z "$ac_cv_prog_CC"; then
3645 # Extract the first word of "gcc", so it can be a program name with args.
3646 set dummy gcc; ac_word=$2
3647 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3648 $as_echo_n "checking for $ac_word... " >&6; }
3649 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3650 $as_echo_n "(cached) " >&6
3652 if test -n "$ac_ct_CC"; then
3653 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3655 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3659 test -z "$as_dir" && as_dir=.
3660 for ac_exec_ext in '' $ac_executable_extensions; do
3661 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3662 ac_cv_prog_ac_ct_CC="gcc"
3663 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3672 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3673 if test -n "$ac_ct_CC"; then
3674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3675 $as_echo "$ac_ct_CC" >&6; }
3677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3678 $as_echo "no" >&6; }
3681 if test "x$ac_ct_CC" = x; then
3684 case $cross_compiling:$ac_tool_warned in
3686 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3687 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3688 ac_tool_warned=yes ;;
3696 if test -z "$CC"; then
3697 if test -n "$ac_tool_prefix"; then
3698 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3699 set dummy ${ac_tool_prefix}cc; ac_word=$2
3700 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3701 $as_echo_n "checking for $ac_word... " >&6; }
3702 if test "${ac_cv_prog_CC+set}" = set; then :
3703 $as_echo_n "(cached) " >&6
3705 if test -n "$CC"; then
3706 ac_cv_prog_CC="$CC" # Let the user override the test.
3708 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3712 test -z "$as_dir" && as_dir=.
3713 for ac_exec_ext in '' $ac_executable_extensions; do
3714 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3715 ac_cv_prog_CC="${ac_tool_prefix}cc"
3716 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3726 if test -n "$CC"; then
3727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3728 $as_echo "$CC" >&6; }
3730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3731 $as_echo "no" >&6; }
3737 if test -z "$CC"; then
3738 # Extract the first word of "cc", so it can be a program name with args.
3739 set dummy cc; ac_word=$2
3740 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3741 $as_echo_n "checking for $ac_word... " >&6; }
3742 if test "${ac_cv_prog_CC+set}" = set; then :
3743 $as_echo_n "(cached) " >&6
3745 if test -n "$CC"; then
3746 ac_cv_prog_CC="$CC" # Let the user override the test.
3749 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3753 test -z "$as_dir" && as_dir=.
3754 for ac_exec_ext in '' $ac_executable_extensions; do
3755 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3756 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3757 ac_prog_rejected=yes
3761 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3768 if test $ac_prog_rejected = yes; then
3769 # We found a bogon in the path, so make sure we never use it.
3770 set dummy $ac_cv_prog_CC
3772 if test $# != 0; then
3773 # We chose a different compiler from the bogus one.
3774 # However, it has the same basename, so the bogon will be chosen
3775 # first if we set CC to just the basename; use the full file name.
3777 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3783 if test -n "$CC"; then
3784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3785 $as_echo "$CC" >&6; }
3787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3788 $as_echo "no" >&6; }
3793 if test -z "$CC"; then
3794 if test -n "$ac_tool_prefix"; then
3795 for ac_prog in cl.exe
3797 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3798 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3799 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3800 $as_echo_n "checking for $ac_word... " >&6; }
3801 if test "${ac_cv_prog_CC+set}" = set; then :
3802 $as_echo_n "(cached) " >&6
3804 if test -n "$CC"; then
3805 ac_cv_prog_CC="$CC" # Let the user override the test.
3807 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3811 test -z "$as_dir" && as_dir=.
3812 for ac_exec_ext in '' $ac_executable_extensions; do
3813 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3814 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3815 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3825 if test -n "$CC"; then
3826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3827 $as_echo "$CC" >&6; }
3829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3830 $as_echo "no" >&6; }
3834 test -n "$CC" && break
3837 if test -z "$CC"; then
3839 for ac_prog in cl.exe
3841 # Extract the first word of "$ac_prog", so it can be a program name with args.
3842 set dummy $ac_prog; ac_word=$2
3843 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3844 $as_echo_n "checking for $ac_word... " >&6; }
3845 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3846 $as_echo_n "(cached) " >&6
3848 if test -n "$ac_ct_CC"; then
3849 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3851 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3855 test -z "$as_dir" && as_dir=.
3856 for ac_exec_ext in '' $ac_executable_extensions; do
3857 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3858 ac_cv_prog_ac_ct_CC="$ac_prog"
3859 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3868 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3869 if test -n "$ac_ct_CC"; then
3870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3871 $as_echo "$ac_ct_CC" >&6; }
3873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3874 $as_echo "no" >&6; }
3878 test -n "$ac_ct_CC" && break
3881 if test "x$ac_ct_CC" = x; then
3884 case $cross_compiling:$ac_tool_warned in
3886 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3887 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3888 ac_tool_warned=yes ;;
3897 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3898 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3899 as_fn_error $? "no acceptable C compiler found in \$PATH
3900 See \`config.log' for more details" "$LINENO" 5 ; }
3902 # Provide some information about the compiler.
3903 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3906 for ac_option in --version -v -V -qversion; do
3907 { { ac_try="$ac_compiler $ac_option >&5"
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_compiler $ac_option >&5") 2>conftest.err
3916 if test -s conftest.err; then
3918 ... rest of stderr output deleted ...
3919 10q' conftest.err >conftest.er1
3920 cat conftest.er1 >&5
3922 rm -f conftest.er1 conftest.err
3923 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3924 test $ac_status = 0; }
3927 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3928 /* end confdefs.h. */
3938 ac_clean_files_save=$ac_clean_files
3939 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3940 # Try to create an executable without -o first, disregard a.out.
3941 # It will help us diagnose broken compilers, and finding out an intuition
3943 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3944 $as_echo_n "checking whether the C compiler works... " >&6; }
3945 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3947 # The possible output files:
3948 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3951 for ac_file in $ac_files
3954 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3955 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3960 if { { ac_try="$ac_link_default"
3962 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3963 *) ac_try_echo=$ac_try;;
3965 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3966 $as_echo "$ac_try_echo"; } >&5
3967 (eval "$ac_link_default") 2>&5
3969 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3970 test $ac_status = 0; }; then :
3971 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3972 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3973 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3974 # so that the user can short-circuit this test for compilers unknown to
3976 for ac_file in $ac_files ''
3978 test -f "$ac_file" || continue
3980 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3983 # We found the default executable, but exeext='' is most
3987 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3989 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3991 # We set ac_cv_exeext here because the later test for it is not
3992 # safe: cross compilers may not add the suffix if given an `-o'
3993 # argument, so we may need to know it at that point already.
3994 # Even if this section looks crufty: it has the advantage of
4001 test "$ac_cv_exeext" = no && ac_cv_exeext=
4006 if test -z "$ac_file"; then :
4007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4008 $as_echo "no" >&6; }
4009 $as_echo "$as_me: failed program was:" >&5
4010 sed 's/^/| /' conftest.$ac_ext >&5
4012 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4013 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4014 as_fn_error 77 "C compiler cannot create executables
4015 See \`config.log' for more details" "$LINENO" 5 ; }
4017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4018 $as_echo "yes" >&6; }
4020 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4021 $as_echo_n "checking for C compiler default output file name... " >&6; }
4022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4023 $as_echo "$ac_file" >&6; }
4024 ac_exeext=$ac_cv_exeext
4026 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
4027 ac_clean_files=$ac_clean_files_save
4028 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4029 $as_echo_n "checking for suffix of executables... " >&6; }
4030 if { { ac_try="$ac_link"
4032 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4033 *) ac_try_echo=$ac_try;;
4035 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4036 $as_echo "$ac_try_echo"; } >&5
4037 (eval "$ac_link") 2>&5
4039 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4040 test $ac_status = 0; }; then :
4041 # If both `conftest.exe' and `conftest' are `present' (well, observable)
4042 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
4043 # work properly (i.e., refer to `conftest.exe'), while it won't with
4045 for ac_file in conftest.exe conftest conftest.*; do
4046 test -f "$ac_file" || continue
4048 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4049 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4055 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4056 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4057 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
4058 See \`config.log' for more details" "$LINENO" 5 ; }
4060 rm -f conftest conftest$ac_cv_exeext
4061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4062 $as_echo "$ac_cv_exeext" >&6; }
4064 rm -f conftest.$ac_ext
4065 EXEEXT=$ac_cv_exeext
4067 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4068 /* end confdefs.h. */
4073 FILE *f = fopen ("conftest.out", "w");
4074 return ferror (f) || fclose (f) != 0;
4080 ac_clean_files="$ac_clean_files conftest.out"
4081 # Check that the compiler produces executables we can run. If not, either
4082 # the compiler is broken, or we cross compile.
4083 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4084 $as_echo_n "checking whether we are cross compiling... " >&6; }
4085 if test "$cross_compiling" != yes; then
4086 { { ac_try="$ac_link"
4088 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4089 *) ac_try_echo=$ac_try;;
4091 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4092 $as_echo "$ac_try_echo"; } >&5
4093 (eval "$ac_link") 2>&5
4095 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4096 test $ac_status = 0; }
4097 if { ac_try='./conftest$ac_cv_exeext'
4098 { { case "(($ac_try" in
4099 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4100 *) ac_try_echo=$ac_try;;
4102 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4103 $as_echo "$ac_try_echo"; } >&5
4104 (eval "$ac_try") 2>&5
4106 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4107 test $ac_status = 0; }; }; then
4110 if test "$cross_compiling" = maybe; then
4113 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4114 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4115 as_fn_error $? "cannot run C compiled programs.
4116 If you meant to cross compile, use \`--host'.
4117 See \`config.log' for more details" "$LINENO" 5 ; }
4121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4122 $as_echo "$cross_compiling" >&6; }
4124 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
4125 ac_clean_files=$ac_clean_files_save
4126 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4127 $as_echo_n "checking for suffix of object files... " >&6; }
4128 if test "${ac_cv_objext+set}" = set; then :
4129 $as_echo_n "(cached) " >&6
4131 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4132 /* end confdefs.h. */
4142 rm -f conftest.o conftest.obj
4143 if { { ac_try="$ac_compile"
4145 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4146 *) ac_try_echo=$ac_try;;
4148 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4149 $as_echo "$ac_try_echo"; } >&5
4150 (eval "$ac_compile") 2>&5
4152 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4153 test $ac_status = 0; }; then :
4154 for ac_file in conftest.o conftest.obj conftest.*; do
4155 test -f "$ac_file" || continue;
4157 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4158 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4163 $as_echo "$as_me: failed program was:" >&5
4164 sed 's/^/| /' conftest.$ac_ext >&5
4166 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4167 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4168 as_fn_error $? "cannot compute suffix of object files: cannot compile
4169 See \`config.log' for more details" "$LINENO" 5 ; }
4171 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4174 $as_echo "$ac_cv_objext" >&6; }
4175 OBJEXT=$ac_cv_objext
4177 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4178 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4179 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
4180 $as_echo_n "(cached) " >&6
4182 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4183 /* end confdefs.h. */
4196 if ac_fn_c_try_compile "$LINENO"; then :
4201 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4202 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4206 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4207 if test $ac_compiler_gnu = yes; then
4212 ac_test_CFLAGS=${CFLAGS+set}
4213 ac_save_CFLAGS=$CFLAGS
4214 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4215 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4216 if test "${ac_cv_prog_cc_g+set}" = set; then :
4217 $as_echo_n "(cached) " >&6
4219 ac_save_c_werror_flag=$ac_c_werror_flag
4220 ac_c_werror_flag=yes
4223 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4224 /* end confdefs.h. */
4234 if ac_fn_c_try_compile "$LINENO"; then :
4238 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4239 /* end confdefs.h. */
4249 if ac_fn_c_try_compile "$LINENO"; then :
4252 ac_c_werror_flag=$ac_save_c_werror_flag
4254 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4255 /* end confdefs.h. */
4265 if ac_fn_c_try_compile "$LINENO"; then :
4268 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4270 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4272 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4273 ac_c_werror_flag=$ac_save_c_werror_flag
4275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4276 $as_echo "$ac_cv_prog_cc_g" >&6; }
4277 if test "$ac_test_CFLAGS" = set; then
4278 CFLAGS=$ac_save_CFLAGS
4279 elif test $ac_cv_prog_cc_g = yes; then
4280 if test "$GCC" = yes; then
4286 if test "$GCC" = yes; then
4292 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4293 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4294 if test "${ac_cv_prog_cc_c89+set}" = set; then :
4295 $as_echo_n "(cached) " >&6
4297 ac_cv_prog_cc_c89=no
4299 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4300 /* end confdefs.h. */
4303 #include <sys/types.h>
4304 #include <sys/stat.h>
4305 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4306 struct buf { int x; };
4307 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4308 static char *e (p, i)
4314 static char *f (char * (*g) (char **, int), char **p, ...)
4319 s = g (p, va_arg (v,int));
4324 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4325 function prototypes and stuff, but not '\xHH' hex character constants.
4326 These don't provoke an error unfortunately, instead are silently treated
4327 as 'x'. The following induces an error, until -std is added to get
4328 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4329 array size at least. It's necessary to write '\x00'==0 to get something
4330 that's true only with -std. */
4331 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4333 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4334 inside strings and character constants. */
4336 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4338 int test (int i, double x);
4339 struct s1 {int (*f) (int a);};
4340 struct s2 {int (*f) (double a);};
4341 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4347 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4352 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4353 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4355 CC="$ac_save_CC $ac_arg"
4356 if ac_fn_c_try_compile "$LINENO"; then :
4357 ac_cv_prog_cc_c89=$ac_arg
4359 rm -f core conftest.err conftest.$ac_objext
4360 test "x$ac_cv_prog_cc_c89" != "xno" && break
4362 rm -f conftest.$ac_ext
4367 case "x$ac_cv_prog_cc_c89" in
4369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4370 $as_echo "none needed" >&6; } ;;
4372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4373 $as_echo "unsupported" >&6; } ;;
4375 CC="$CC $ac_cv_prog_cc_c89"
4376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4377 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4379 if test "x$ac_cv_prog_cc_c89" != xno; then :
4384 ac_cpp='$CPP $CPPFLAGS'
4385 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4386 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4387 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4389 depcc="$CC" am_compiler_list=
4391 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4392 $as_echo_n "checking dependency style of $depcc... " >&6; }
4393 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
4394 $as_echo_n "(cached) " >&6
4396 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4397 # We make a subdir and do the tests there. Otherwise we can end up
4398 # making bogus files that we don't know about and never remove. For
4399 # instance it was reported that on HP-UX the gcc test will end up
4400 # making a dummy file named `D' -- because `-MD' means `put the output
4403 # Copy depcomp to subdir because otherwise we won't find it if we're
4404 # using a relative directory.
4405 cp "$am_depcomp" conftest.dir
4407 # We will build objects and dependencies in a subdirectory because
4408 # it helps to detect inapplicable dependency modes. For instance
4409 # both Tru64's cc and ICC support -MD to output dependencies as a
4410 # side effect of compilation, but ICC will put the dependencies in
4411 # the current directory while Tru64 will put them in the object
4415 am_cv_CC_dependencies_compiler_type=none
4416 if test "$am_compiler_list" = ""; then
4417 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4420 case " $depcc " in #(
4421 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4424 for depmode in $am_compiler_list; do
4425 # Setup a source with many dependencies, because some compilers
4426 # like to wrap large dependency lists on column 80 (with \), and
4427 # we should not choose a depcomp mode which is confused by this.
4429 # We need to recreate these files for each test, as the compiler may
4430 # overwrite some of them when testing with obscure command lines.
4431 # This happens at least with the AIX C compiler.
4433 for i in 1 2 3 4 5 6; do
4434 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4435 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4436 # Solaris 8's {/usr,}/bin/sh.
4437 touch sub/conftst$i.h
4439 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4441 # We check with `-c' and `-o' for the sake of the "dashmstdout"
4442 # mode. It turns out that the SunPro C++ compiler does not properly
4443 # handle `-M -o', and we need to detect this. Also, some Intel
4444 # versions had trouble with output in subdirs
4445 am__obj=sub/conftest.${OBJEXT-o}
4446 am__minus_obj="-o $am__obj"
4449 # This depmode causes a compiler race in universal mode.
4450 test "$am__universal" = false || continue
4453 # after this tag, mechanisms are not by side-effect, so they'll
4454 # only be used when explicitly requested
4455 if test "x$enable_dependency_tracking" = xyes; then
4461 msvisualcpp | msvcmsys)
4462 # This compiler won't grok `-c -o', but also, the minuso test has
4463 # not run yet. These depmodes are late enough in the game, and
4464 # so weak that their functioning should not be impacted.
4465 am__obj=conftest.${OBJEXT-o}
4470 if depmode=$depmode \
4471 source=sub/conftest.c object=$am__obj \
4472 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4473 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4474 >/dev/null 2>conftest.err &&
4475 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4476 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4477 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4478 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4479 # icc doesn't choke on unknown options, it will just issue warnings
4480 # or remarks (even with -Werror). So we grep stderr for any message
4481 # that says an option was ignored or not supported.
4482 # When given -MP, icc 7.0 and 7.1 complain thusly:
4483 # icc: Command line warning: ignoring option '-M'; no argument required
4484 # The diagnosis changed in icc 8.0:
4485 # icc: Command line remark: option '-MP' not supported
4486 if (grep 'ignoring option' conftest.err ||
4487 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4488 am_cv_CC_dependencies_compiler_type=$depmode
4497 am_cv_CC_dependencies_compiler_type=none
4501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4502 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4503 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4506 test "x$enable_dependency_tracking" != xno \
4507 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4509 am__fastdepCC_FALSE='#'
4511 am__fastdepCC_TRUE='#'
4512 am__fastdepCC_FALSE=
4516 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4517 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
4518 if test "${ac_cv_path_SED+set}" = set; then :
4519 $as_echo_n "(cached) " >&6
4521 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4522 for ac_i in 1 2 3 4 5 6 7; do
4523 ac_script="$ac_script$as_nl$ac_script"
4525 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4526 { ac_script=; unset ac_script;}
4527 if test -z "$SED"; then
4528 ac_path_SED_found=false
4529 # Loop through the user's path and test for each of PROGNAME-LIST
4530 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4534 test -z "$as_dir" && as_dir=.
4535 for ac_prog in sed gsed; do
4536 for ac_exec_ext in '' $ac_executable_extensions; do
4537 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4538 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
4539 # Check for GNU ac_path_SED and select it if it is found.
4540 # Check for GNU $ac_path_SED
4541 case `"$ac_path_SED" --version 2>&1` in
4543 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4546 $as_echo_n 0123456789 >"conftest.in"
4549 cat "conftest.in" "conftest.in" >"conftest.tmp"
4550 mv "conftest.tmp" "conftest.in"
4551 cp "conftest.in" "conftest.nl"
4552 $as_echo '' >> "conftest.nl"
4553 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4554 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4555 as_fn_arith $ac_count + 1 && ac_count=$as_val
4556 if test $ac_count -gt ${ac_path_SED_max-0}; then
4557 # Best one so far, save it but keep looking for a better one
4558 ac_cv_path_SED="$ac_path_SED"
4559 ac_path_SED_max=$ac_count
4561 # 10*(2^10) chars as input seems more than enough
4562 test $ac_count -gt 10 && break
4564 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4567 $ac_path_SED_found && break 3
4572 if test -z "$ac_cv_path_SED"; then
4573 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4581 $as_echo "$ac_cv_path_SED" >&6; }
4582 SED="$ac_cv_path_SED"
4585 test -z "$SED" && SED=sed
4586 Xsed="$SED -e 1s/^X//"
4598 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4599 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4600 if test "${ac_cv_path_GREP+set}" = set; then :
4601 $as_echo_n "(cached) " >&6
4603 if test -z "$GREP"; then
4604 ac_path_GREP_found=false
4605 # Loop through the user's path and test for each of PROGNAME-LIST
4606 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4607 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4610 test -z "$as_dir" && as_dir=.
4611 for ac_prog in grep ggrep; do
4612 for ac_exec_ext in '' $ac_executable_extensions; do
4613 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4614 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4615 # Check for GNU ac_path_GREP and select it if it is found.
4616 # Check for GNU $ac_path_GREP
4617 case `"$ac_path_GREP" --version 2>&1` in
4619 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4622 $as_echo_n 0123456789 >"conftest.in"
4625 cat "conftest.in" "conftest.in" >"conftest.tmp"
4626 mv "conftest.tmp" "conftest.in"
4627 cp "conftest.in" "conftest.nl"
4628 $as_echo 'GREP' >> "conftest.nl"
4629 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4630 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4631 as_fn_arith $ac_count + 1 && ac_count=$as_val
4632 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4633 # Best one so far, save it but keep looking for a better one
4634 ac_cv_path_GREP="$ac_path_GREP"
4635 ac_path_GREP_max=$ac_count
4637 # 10*(2^10) chars as input seems more than enough
4638 test $ac_count -gt 10 && break
4640 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4643 $ac_path_GREP_found && break 3
4648 if test -z "$ac_cv_path_GREP"; then
4649 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4652 ac_cv_path_GREP=$GREP
4656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4657 $as_echo "$ac_cv_path_GREP" >&6; }
4658 GREP="$ac_cv_path_GREP"
4661 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4662 $as_echo_n "checking for egrep... " >&6; }
4663 if test "${ac_cv_path_EGREP+set}" = set; then :
4664 $as_echo_n "(cached) " >&6
4666 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4667 then ac_cv_path_EGREP="$GREP -E"
4669 if test -z "$EGREP"; then
4670 ac_path_EGREP_found=false
4671 # Loop through the user's path and test for each of PROGNAME-LIST
4672 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4673 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4676 test -z "$as_dir" && as_dir=.
4677 for ac_prog in egrep; do
4678 for ac_exec_ext in '' $ac_executable_extensions; do
4679 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4680 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4681 # Check for GNU ac_path_EGREP and select it if it is found.
4682 # Check for GNU $ac_path_EGREP
4683 case `"$ac_path_EGREP" --version 2>&1` in
4685 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4688 $as_echo_n 0123456789 >"conftest.in"
4691 cat "conftest.in" "conftest.in" >"conftest.tmp"
4692 mv "conftest.tmp" "conftest.in"
4693 cp "conftest.in" "conftest.nl"
4694 $as_echo 'EGREP' >> "conftest.nl"
4695 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4696 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4697 as_fn_arith $ac_count + 1 && ac_count=$as_val
4698 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4699 # Best one so far, save it but keep looking for a better one
4700 ac_cv_path_EGREP="$ac_path_EGREP"
4701 ac_path_EGREP_max=$ac_count
4703 # 10*(2^10) chars as input seems more than enough
4704 test $ac_count -gt 10 && break
4706 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4709 $ac_path_EGREP_found && break 3
4714 if test -z "$ac_cv_path_EGREP"; then
4715 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4718 ac_cv_path_EGREP=$EGREP
4723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4724 $as_echo "$ac_cv_path_EGREP" >&6; }
4725 EGREP="$ac_cv_path_EGREP"
4728 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
4729 $as_echo_n "checking for fgrep... " >&6; }
4730 if test "${ac_cv_path_FGREP+set}" = set; then :
4731 $as_echo_n "(cached) " >&6
4733 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4734 then ac_cv_path_FGREP="$GREP -F"
4736 if test -z "$FGREP"; then
4737 ac_path_FGREP_found=false
4738 # Loop through the user's path and test for each of PROGNAME-LIST
4739 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4740 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4743 test -z "$as_dir" && as_dir=.
4744 for ac_prog in fgrep; do
4745 for ac_exec_ext in '' $ac_executable_extensions; do
4746 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
4747 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
4748 # Check for GNU ac_path_FGREP and select it if it is found.
4749 # Check for GNU $ac_path_FGREP
4750 case `"$ac_path_FGREP" --version 2>&1` in
4752 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4755 $as_echo_n 0123456789 >"conftest.in"
4758 cat "conftest.in" "conftest.in" >"conftest.tmp"
4759 mv "conftest.tmp" "conftest.in"
4760 cp "conftest.in" "conftest.nl"
4761 $as_echo 'FGREP' >> "conftest.nl"
4762 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4763 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4764 as_fn_arith $ac_count + 1 && ac_count=$as_val
4765 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4766 # Best one so far, save it but keep looking for a better one
4767 ac_cv_path_FGREP="$ac_path_FGREP"
4768 ac_path_FGREP_max=$ac_count
4770 # 10*(2^10) chars as input seems more than enough
4771 test $ac_count -gt 10 && break
4773 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4776 $ac_path_FGREP_found && break 3
4781 if test -z "$ac_cv_path_FGREP"; then
4782 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4785 ac_cv_path_FGREP=$FGREP
4790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
4791 $as_echo "$ac_cv_path_FGREP" >&6; }
4792 FGREP="$ac_cv_path_FGREP"
4795 test -z "$GREP" && GREP=grep
4815 # Check whether --with-gnu-ld was given.
4816 if test "${with_gnu_ld+set}" = set; then :
4817 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4823 if test "$GCC" = yes; then
4824 # Check if gcc -print-prog-name=ld gives a path.
4825 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
4826 $as_echo_n "checking for ld used by $CC... " >&6; }
4829 # gcc leaves a trailing carriage return which upsets mingw
4830 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4832 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4835 # Accept absolute paths.
4837 re_direlt='/[^/][^/]*/\.\./'
4838 # Canonicalize the pathname of ld
4839 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4840 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4841 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4843 test -z "$LD" && LD="$ac_prog"
4846 # If it fails, then pretend we aren't using GCC.
4850 # If it is relative, then search for the first ld in PATH.
4854 elif test "$with_gnu_ld" = yes; then
4855 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
4856 $as_echo_n "checking for GNU ld... " >&6; }
4858 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
4859 $as_echo_n "checking for non-GNU ld... " >&6; }
4861 if test "${lt_cv_path_LD+set}" = set; then :
4862 $as_echo_n "(cached) " >&6
4864 if test -z "$LD"; then
4865 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4866 for ac_dir in $PATH; do
4868 test -z "$ac_dir" && ac_dir=.
4869 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4870 lt_cv_path_LD="$ac_dir/$ac_prog"
4871 # Check to see if the program is GNU ld. I'd rather use --version,
4872 # but apparently some variants of GNU ld only accept -v.
4873 # Break only if it was the GNU/non-GNU ld that we prefer.
4874 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4875 *GNU* | *'with BFD'*)
4876 test "$with_gnu_ld" != no && break
4879 test "$with_gnu_ld" != yes && break
4886 lt_cv_path_LD="$LD" # Let the user override the test with a path.
4891 if test -n "$LD"; then
4892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
4893 $as_echo "$LD" >&6; }
4895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4896 $as_echo "no" >&6; }
4898 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
4899 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
4900 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
4901 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
4902 $as_echo_n "(cached) " >&6
4904 # I'd rather use --version here, but apparently some GNU lds only accept -v.
4905 case `$LD -v 2>&1 </dev/null` in
4906 *GNU* | *'with BFD'*)
4907 lt_cv_prog_gnu_ld=yes
4910 lt_cv_prog_gnu_ld=no
4914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
4915 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
4916 with_gnu_ld=$lt_cv_prog_gnu_ld
4926 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
4927 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
4928 if test "${lt_cv_path_NM+set}" = set; then :
4929 $as_echo_n "(cached) " >&6
4931 if test -n "$NM"; then
4932 # Let the user override the test.
4935 lt_nm_to_check="${ac_tool_prefix}nm"
4936 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4937 lt_nm_to_check="$lt_nm_to_check nm"
4939 for lt_tmp_nm in $lt_nm_to_check; do
4940 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4941 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4943 test -z "$ac_dir" && ac_dir=.
4944 tmp_nm="$ac_dir/$lt_tmp_nm"
4945 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4946 # Check to see if the nm accepts a BSD-compat flag.
4947 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4948 # nm: unknown option "B" ignored
4949 # Tru64's nm complains that /dev/null is an invalid object file
4950 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4951 */dev/null* | *'Invalid file or object type'*)
4952 lt_cv_path_NM="$tmp_nm -B"
4956 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4958 lt_cv_path_NM="$tmp_nm -p"
4962 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4963 continue # so that we can try to find one that supports BSD flags
4972 : ${lt_cv_path_NM=no}
4975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
4976 $as_echo "$lt_cv_path_NM" >&6; }
4977 if test "$lt_cv_path_NM" != "no"; then
4980 # Didn't find any BSD compatible name lister, look for dumpbin.
4981 if test -n "$DUMPBIN"; then :
4982 # Let the user override the test.
4984 if test -n "$ac_tool_prefix"; then
4985 for ac_prog in dumpbin "link -dump"
4987 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4988 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4989 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4990 $as_echo_n "checking for $ac_word... " >&6; }
4991 if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
4992 $as_echo_n "(cached) " >&6
4994 if test -n "$DUMPBIN"; then
4995 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
4997 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5001 test -z "$as_dir" && as_dir=.
5002 for ac_exec_ext in '' $ac_executable_extensions; do
5003 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5004 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5005 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5014 DUMPBIN=$ac_cv_prog_DUMPBIN
5015 if test -n "$DUMPBIN"; then
5016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5017 $as_echo "$DUMPBIN" >&6; }
5019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5020 $as_echo "no" >&6; }
5024 test -n "$DUMPBIN" && break
5027 if test -z "$DUMPBIN"; then
5028 ac_ct_DUMPBIN=$DUMPBIN
5029 for ac_prog in dumpbin "link -dump"
5031 # Extract the first word of "$ac_prog", so it can be a program name with args.
5032 set dummy $ac_prog; ac_word=$2
5033 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5034 $as_echo_n "checking for $ac_word... " >&6; }
5035 if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
5036 $as_echo_n "(cached) " >&6
5038 if test -n "$ac_ct_DUMPBIN"; then
5039 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5041 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5045 test -z "$as_dir" && as_dir=.
5046 for ac_exec_ext in '' $ac_executable_extensions; do
5047 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5048 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5049 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5058 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5059 if test -n "$ac_ct_DUMPBIN"; then
5060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5061 $as_echo "$ac_ct_DUMPBIN" >&6; }
5063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5064 $as_echo "no" >&6; }
5068 test -n "$ac_ct_DUMPBIN" && break
5071 if test "x$ac_ct_DUMPBIN" = x; then
5074 case $cross_compiling:$ac_tool_warned in
5076 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5077 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5078 ac_tool_warned=yes ;;
5080 DUMPBIN=$ac_ct_DUMPBIN
5084 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
5086 DUMPBIN="$DUMPBIN -symbols"
5094 if test "$DUMPBIN" != ":"; then
5098 test -z "$NM" && NM=nm
5105 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5106 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
5107 if test "${lt_cv_nm_interface+set}" = set; then :
5108 $as_echo_n "(cached) " >&6
5110 lt_cv_nm_interface="BSD nm"
5111 echo "int some_variable = 0;" > conftest.$ac_ext
5112 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
5113 (eval "$ac_compile" 2>conftest.err)
5114 cat conftest.err >&5
5115 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5116 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5117 cat conftest.err >&5
5118 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
5119 cat conftest.out >&5
5120 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5121 lt_cv_nm_interface="MS dumpbin"
5125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5126 $as_echo "$lt_cv_nm_interface" >&6; }
5128 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5129 $as_echo_n "checking whether ln -s works... " >&6; }
5131 if test "$LN_S" = "ln -s"; then
5132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5133 $as_echo "yes" >&6; }
5135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5136 $as_echo "no, using $LN_S" >&6; }
5139 # find the maximum length of command line arguments
5140 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5141 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
5142 if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
5143 $as_echo_n "(cached) " >&6
5150 # On DJGPP, this test can blow up pretty badly due to problems in libc
5151 # (any single argument exceeding 2000 bytes causes a buffer overrun
5152 # during glob expansion). Even if it were fixed, the result of this
5153 # check would be larger than it should be.
5154 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5158 # Under GNU Hurd, this test is not required because there is
5159 # no limit to the length of command line arguments.
5160 # Libtool will interpret -1 as no limit whatsoever
5161 lt_cv_sys_max_cmd_len=-1;
5164 cygwin* | mingw* | cegcc*)
5165 # On Win9x/ME, this test blows up -- it succeeds, but takes
5166 # about 5 minutes as the teststring grows exponentially.
5167 # Worse, since 9x/ME are not pre-emptively multitasking,
5168 # you end up with a "frozen" computer, even though with patience
5169 # the test eventually succeeds (with a max line length of 256k).
5170 # Instead, let's just punt: use the minimum linelength reported by
5171 # all of the supported platforms: 8192 (on NT/2K/XP).
5172 lt_cv_sys_max_cmd_len=8192;
5176 # On MiNT this can take a long time and run out of memory.
5177 lt_cv_sys_max_cmd_len=8192;
5181 # On AmigaOS with pdksh, this test takes hours, literally.
5182 # So we just punt and use a minimum line length of 8192.
5183 lt_cv_sys_max_cmd_len=8192;
5186 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5187 # This has been around since 386BSD, at least. Likely further.
5188 if test -x /sbin/sysctl; then
5189 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5190 elif test -x /usr/sbin/sysctl; then
5191 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5193 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
5195 # And add a safety zone
5196 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5197 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5201 # We know the value 262144 and hardcode it with a safety zone (like BSD)
5202 lt_cv_sys_max_cmd_len=196608
5206 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5207 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5208 # nice to cause kernel panics so lets avoid the loop below.
5209 # First set a reasonable default.
5210 lt_cv_sys_max_cmd_len=16384
5212 if test -x /sbin/sysconfig; then
5213 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5214 *1*) lt_cv_sys_max_cmd_len=-1 ;;
5219 lt_cv_sys_max_cmd_len=102400
5221 sysv5* | sco5v6* | sysv4.2uw2*)
5222 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5223 if test -n "$kargmax"; then
5224 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
5226 lt_cv_sys_max_cmd_len=32768
5230 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5231 if test -n "$lt_cv_sys_max_cmd_len"; then
5232 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5233 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5235 # Make teststring a little bigger before we do anything with it.
5236 # a 1K string should be a reasonable start.
5237 for i in 1 2 3 4 5 6 7 8 ; do
5238 teststring=$teststring$teststring
5240 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5241 # If test is not a shell built-in, we'll probably end up computing a
5242 # maximum length that is only half of the actual maximum length, but
5244 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
5245 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
5246 test $i != 17 # 1/2 MB should be enough
5249 teststring=$teststring$teststring
5251 # Only check the string length outside the loop.
5252 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5254 # Add a significant safety factor because C++ compilers can tack on
5255 # massive amounts of additional arguments before passing them to the
5256 # linker. It appears as though 1/2 is a usable value.
5257 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5264 if test -n $lt_cv_sys_max_cmd_len ; then
5265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5266 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
5268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
5269 $as_echo "none" >&6; }
5271 max_cmd_len=$lt_cv_sys_max_cmd_len
5282 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
5283 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
5284 # Try some XSI features
5287 test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
5289 && eval 'test $(( 1 + 1 )) -eq 2 \
5290 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
5292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
5293 $as_echo "$xsi_shell" >&6; }
5296 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
5297 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
5299 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
5301 && lt_shell_append=yes
5302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
5303 $as_echo "$lt_shell_append" >&6; }
5306 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5316 # test EBCDIC or ASCII
5317 case `echo X|tr X '\101'` in
5318 A) # ASCII based system
5319 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5320 lt_SP2NL='tr \040 \012'
5321 lt_NL2SP='tr \015\012 \040\040'
5323 *) # EBCDIC based system
5324 lt_SP2NL='tr \100 \n'
5325 lt_NL2SP='tr \r\n \100\100'
5337 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
5338 $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
5339 if test "${lt_cv_to_host_file_cmd+set}" = set; then :
5340 $as_echo_n "(cached) " >&6
5345 *-*-mingw* ) # actually msys
5346 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
5349 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
5351 * ) # otherwise, assume *nix
5352 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
5358 *-*-mingw* ) # actually msys
5359 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
5362 lt_cv_to_host_file_cmd=func_convert_file_noop
5364 * ) # otherwise, assume *nix
5365 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
5369 * ) # unhandled hosts (and "normal" native builds)
5370 lt_cv_to_host_file_cmd=func_convert_file_noop
5376 to_host_file_cmd=$lt_cv_to_host_file_cmd
5377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
5378 $as_echo "$lt_cv_to_host_file_cmd" >&6; }
5384 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
5385 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
5386 if test "${lt_cv_to_tool_file_cmd+set}" = set; then :
5387 $as_echo_n "(cached) " >&6
5389 #assume ordinary cross tools, or native build.
5390 lt_cv_to_tool_file_cmd=func_convert_file_noop
5394 *-*-mingw* ) # actually msys
5395 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
5403 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
5404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
5405 $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
5411 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5412 $as_echo_n "checking for $LD option to reload object files... " >&6; }
5413 if test "${lt_cv_ld_reload_flag+set}" = set; then :
5414 $as_echo_n "(cached) " >&6
5416 lt_cv_ld_reload_flag='-r'
5418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5419 $as_echo "$lt_cv_ld_reload_flag" >&6; }
5420 reload_flag=$lt_cv_ld_reload_flag
5421 case $reload_flag in
5423 *) reload_flag=" $reload_flag" ;;
5425 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5427 cygwin* | mingw* | pw32* | cegcc*)
5428 if test "$GCC" != yes; then
5433 if test "$GCC" = yes; then
5434 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5436 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5449 if test -n "$ac_tool_prefix"; then
5450 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5451 set dummy ${ac_tool_prefix}objdump; ac_word=$2
5452 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5453 $as_echo_n "checking for $ac_word... " >&6; }
5454 if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
5455 $as_echo_n "(cached) " >&6
5457 if test -n "$OBJDUMP"; then
5458 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5460 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5464 test -z "$as_dir" && as_dir=.
5465 for ac_exec_ext in '' $ac_executable_extensions; do
5466 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5467 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5468 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5477 OBJDUMP=$ac_cv_prog_OBJDUMP
5478 if test -n "$OBJDUMP"; then
5479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5480 $as_echo "$OBJDUMP" >&6; }
5482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5483 $as_echo "no" >&6; }
5488 if test -z "$ac_cv_prog_OBJDUMP"; then
5489 ac_ct_OBJDUMP=$OBJDUMP
5490 # Extract the first word of "objdump", so it can be a program name with args.
5491 set dummy objdump; ac_word=$2
5492 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5493 $as_echo_n "checking for $ac_word... " >&6; }
5494 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
5495 $as_echo_n "(cached) " >&6
5497 if test -n "$ac_ct_OBJDUMP"; then
5498 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5500 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5504 test -z "$as_dir" && as_dir=.
5505 for ac_exec_ext in '' $ac_executable_extensions; do
5506 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5507 ac_cv_prog_ac_ct_OBJDUMP="objdump"
5508 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5517 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5518 if test -n "$ac_ct_OBJDUMP"; then
5519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5520 $as_echo "$ac_ct_OBJDUMP" >&6; }
5522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5523 $as_echo "no" >&6; }
5526 if test "x$ac_ct_OBJDUMP" = x; then
5529 case $cross_compiling:$ac_tool_warned in
5531 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5532 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5533 ac_tool_warned=yes ;;
5535 OBJDUMP=$ac_ct_OBJDUMP
5538 OBJDUMP="$ac_cv_prog_OBJDUMP"
5541 test -z "$OBJDUMP" && OBJDUMP=objdump
5551 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5552 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
5553 if test "${lt_cv_deplibs_check_method+set}" = set; then :
5554 $as_echo_n "(cached) " >&6
5556 lt_cv_file_magic_cmd='$MAGIC_CMD'
5557 lt_cv_file_magic_test_file=
5558 lt_cv_deplibs_check_method='unknown'
5559 # Need to set the preceding variable on all platforms that support
5560 # interlibrary dependencies.
5561 # 'none' -- dependencies not supported.
5562 # `unknown' -- same as none, but documents that we really don't know.
5563 # 'pass_all' -- all dependencies passed with no checks.
5564 # 'test_compile' -- check by making test program.
5565 # 'file_magic [[regex]]' -- check by looking for files in library path
5566 # which responds to the $file_magic_cmd with a given extended regex.
5567 # If you have `file' or equivalent on your system and you're not sure
5568 # whether `pass_all' will *always* work, you probably want this one.
5572 lt_cv_deplibs_check_method=pass_all
5576 lt_cv_deplibs_check_method=pass_all
5580 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5581 lt_cv_file_magic_cmd='/usr/bin/file -L'
5582 lt_cv_file_magic_test_file=/shlib/libc.so
5586 # func_win32_libid is a shell function defined in ltmain.sh
5587 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5588 lt_cv_file_magic_cmd='func_win32_libid'
5592 # Base MSYS/MinGW do not provide the 'file' command needed by
5593 # func_win32_libid shell function, so use a weaker test based on 'objdump',
5594 # unless we find 'file', for example because we are cross-compiling.
5595 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
5596 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
5597 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5598 lt_cv_file_magic_cmd='func_win32_libid'
5600 # Keep this pattern in sync with the one in func_win32_libid.
5601 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
5602 lt_cv_file_magic_cmd='$OBJDUMP -f'
5607 # use the weaker test based on 'objdump'. See mingw*.
5608 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5609 lt_cv_file_magic_cmd='$OBJDUMP -f'
5612 darwin* | rhapsody*)
5613 lt_cv_deplibs_check_method=pass_all
5616 freebsd* | dragonfly*)
5617 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5620 # Not sure whether the presence of OpenBSD here was a mistake.
5621 # Let's accept both of them until this is cleared up.
5622 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5623 lt_cv_file_magic_cmd=/usr/bin/file
5624 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5628 lt_cv_deplibs_check_method=pass_all
5633 lt_cv_deplibs_check_method=pass_all
5637 lt_cv_deplibs_check_method=pass_all
5640 hpux10.20* | hpux11*)
5641 lt_cv_file_magic_cmd=/usr/bin/file
5644 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5645 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5648 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]'
5649 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5652 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
5653 lt_cv_file_magic_test_file=/usr/lib/libc.sl
5659 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5660 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5663 irix5* | irix6* | nonstopux*)
5665 *-32|*"-32 ") libmagic=32-bit;;
5666 *-n32|*"-n32 ") libmagic=N32;;
5667 *-64|*"-64 ") libmagic=64-bit;;
5668 *) libmagic=never-match;;
5670 lt_cv_deplibs_check_method=pass_all
5673 # This must be Linux ELF.
5674 linux* | k*bsd*-gnu | kopensolaris*-gnu)
5675 lt_cv_deplibs_check_method=pass_all
5679 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5680 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5682 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5687 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5688 lt_cv_file_magic_cmd=/usr/bin/file
5689 lt_cv_file_magic_test_file=/usr/lib/libnls.so
5693 lt_cv_deplibs_check_method=pass_all
5697 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5698 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5700 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5704 osf3* | osf4* | osf5*)
5705 lt_cv_deplibs_check_method=pass_all
5709 lt_cv_deplibs_check_method=pass_all
5713 lt_cv_deplibs_check_method=pass_all
5716 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5717 lt_cv_deplibs_check_method=pass_all
5721 case $host_vendor in
5723 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]'
5724 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5727 lt_cv_deplibs_check_method=pass_all
5730 lt_cv_file_magic_cmd='/bin/file'
5731 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5734 lt_cv_file_magic_cmd='/bin/file'
5735 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5736 lt_cv_file_magic_test_file=/lib/libc.so
5739 lt_cv_deplibs_check_method=pass_all
5742 lt_cv_deplibs_check_method=pass_all
5748 lt_cv_deplibs_check_method=pass_all
5753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
5754 $as_echo "$lt_cv_deplibs_check_method" >&6; }
5758 if test "$build" = "$host"; then
5761 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
5764 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
5770 file_magic_cmd=$lt_cv_file_magic_cmd
5771 deplibs_check_method=$lt_cv_deplibs_check_method
5772 test -z "$deplibs_check_method" && deplibs_check_method=unknown
5795 if test -n "$ac_tool_prefix"; then
5796 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
5797 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
5798 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5799 $as_echo_n "checking for $ac_word... " >&6; }
5800 if test "${ac_cv_prog_DLLTOOL+set}" = set; then :
5801 $as_echo_n "(cached) " >&6
5803 if test -n "$DLLTOOL"; then
5804 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
5806 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5810 test -z "$as_dir" && as_dir=.
5811 for ac_exec_ext in '' $ac_executable_extensions; do
5812 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5813 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
5814 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5823 DLLTOOL=$ac_cv_prog_DLLTOOL
5824 if test -n "$DLLTOOL"; then
5825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
5826 $as_echo "$DLLTOOL" >&6; }
5828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5829 $as_echo "no" >&6; }
5834 if test -z "$ac_cv_prog_DLLTOOL"; then
5835 ac_ct_DLLTOOL=$DLLTOOL
5836 # Extract the first word of "dlltool", so it can be a program name with args.
5837 set dummy dlltool; ac_word=$2
5838 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5839 $as_echo_n "checking for $ac_word... " >&6; }
5840 if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then :
5841 $as_echo_n "(cached) " >&6
5843 if test -n "$ac_ct_DLLTOOL"; then
5844 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
5846 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5850 test -z "$as_dir" && as_dir=.
5851 for ac_exec_ext in '' $ac_executable_extensions; do
5852 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5853 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
5854 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5863 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
5864 if test -n "$ac_ct_DLLTOOL"; then
5865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
5866 $as_echo "$ac_ct_DLLTOOL" >&6; }
5868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5869 $as_echo "no" >&6; }
5872 if test "x$ac_ct_DLLTOOL" = x; then
5875 case $cross_compiling:$ac_tool_warned in
5877 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5878 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5879 ac_tool_warned=yes ;;
5881 DLLTOOL=$ac_ct_DLLTOOL
5884 DLLTOOL="$ac_cv_prog_DLLTOOL"
5887 test -z "$DLLTOOL" && DLLTOOL=dlltool
5898 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
5899 $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
5900 if test "${lt_cv_sharedlib_from_linklib_cmd+set}" = set; then :
5901 $as_echo_n "(cached) " >&6
5903 lt_cv_sharedlib_from_linklib_cmd='unknown'
5906 cygwin* | mingw* | pw32* | cegcc*)
5907 # two different shell functions defined in ltmain.sh
5908 # decide which to use based on capabilities of $DLLTOOL
5909 case `$DLLTOOL --help 2>&1` in
5910 *--identify-strict*)
5911 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
5914 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
5919 # fallback: assume linklib IS sharedlib
5920 lt_cv_sharedlib_from_linklib_cmd="$ECHO"
5925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
5926 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
5927 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
5928 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
5937 if test -n "$ac_tool_prefix"; then
5940 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5941 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5942 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5943 $as_echo_n "checking for $ac_word... " >&6; }
5944 if test "${ac_cv_prog_AR+set}" = set; then :
5945 $as_echo_n "(cached) " >&6
5947 if test -n "$AR"; then
5948 ac_cv_prog_AR="$AR" # Let the user override the test.
5950 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5954 test -z "$as_dir" && as_dir=.
5955 for ac_exec_ext in '' $ac_executable_extensions; do
5956 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5957 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
5958 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5968 if test -n "$AR"; then
5969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5970 $as_echo "$AR" >&6; }
5972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5973 $as_echo "no" >&6; }
5977 test -n "$AR" && break
5980 if test -z "$AR"; then
5984 # Extract the first word of "$ac_prog", so it can be a program name with args.
5985 set dummy $ac_prog; ac_word=$2
5986 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5987 $as_echo_n "checking for $ac_word... " >&6; }
5988 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
5989 $as_echo_n "(cached) " >&6
5991 if test -n "$ac_ct_AR"; then
5992 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5994 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5998 test -z "$as_dir" && as_dir=.
5999 for ac_exec_ext in '' $ac_executable_extensions; do
6000 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6001 ac_cv_prog_ac_ct_AR="$ac_prog"
6002 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6011 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6012 if test -n "$ac_ct_AR"; then
6013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6014 $as_echo "$ac_ct_AR" >&6; }
6016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6017 $as_echo "no" >&6; }
6021 test -n "$ac_ct_AR" && break
6024 if test "x$ac_ct_AR" = x; then
6027 case $cross_compiling:$ac_tool_warned in
6029 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6030 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6031 ac_tool_warned=yes ;;
6050 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
6051 $as_echo_n "checking for archiver @FILE support... " >&6; }
6052 if test "${lt_cv_ar_at_file+set}" = set; then :
6053 $as_echo_n "(cached) " >&6
6056 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6057 /* end confdefs.h. */
6067 if ac_fn_c_try_compile "$LINENO"; then :
6068 echo conftest.$ac_objext > conftest.lst
6069 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
6070 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6071 (eval $lt_ar_try) 2>&5
6073 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6074 test $ac_status = 0; }
6075 if test "$ac_status" -eq 0; then
6076 # Ensure the archiver fails upon bogus file names.
6077 rm -f conftest.$ac_objext libconftest.a
6078 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6079 (eval $lt_ar_try) 2>&5
6081 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6082 test $ac_status = 0; }
6083 if test "$ac_status" -ne 0; then
6087 rm -f conftest.* libconftest.a
6090 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
6094 $as_echo "$lt_cv_ar_at_file" >&6; }
6096 if test "x$lt_cv_ar_at_file" = xno; then
6099 archiver_list_spec=$lt_cv_ar_at_file
6108 if test -n "$ac_tool_prefix"; then
6109 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6110 set dummy ${ac_tool_prefix}strip; ac_word=$2
6111 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6112 $as_echo_n "checking for $ac_word... " >&6; }
6113 if test "${ac_cv_prog_STRIP+set}" = set; then :
6114 $as_echo_n "(cached) " >&6
6116 if test -n "$STRIP"; then
6117 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6119 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6123 test -z "$as_dir" && as_dir=.
6124 for ac_exec_ext in '' $ac_executable_extensions; do
6125 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6126 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6127 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6136 STRIP=$ac_cv_prog_STRIP
6137 if test -n "$STRIP"; then
6138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6139 $as_echo "$STRIP" >&6; }
6141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6142 $as_echo "no" >&6; }
6147 if test -z "$ac_cv_prog_STRIP"; then
6149 # Extract the first word of "strip", so it can be a program name with args.
6150 set dummy strip; ac_word=$2
6151 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6152 $as_echo_n "checking for $ac_word... " >&6; }
6153 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
6154 $as_echo_n "(cached) " >&6
6156 if test -n "$ac_ct_STRIP"; then
6157 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6159 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6163 test -z "$as_dir" && as_dir=.
6164 for ac_exec_ext in '' $ac_executable_extensions; do
6165 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6166 ac_cv_prog_ac_ct_STRIP="strip"
6167 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6176 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6177 if test -n "$ac_ct_STRIP"; then
6178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6179 $as_echo "$ac_ct_STRIP" >&6; }
6181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6182 $as_echo "no" >&6; }
6185 if test "x$ac_ct_STRIP" = x; then
6188 case $cross_compiling:$ac_tool_warned in
6190 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6191 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6192 ac_tool_warned=yes ;;
6197 STRIP="$ac_cv_prog_STRIP"
6200 test -z "$STRIP" && STRIP=:
6207 if test -n "$ac_tool_prefix"; then
6208 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6209 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6210 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6211 $as_echo_n "checking for $ac_word... " >&6; }
6212 if test "${ac_cv_prog_RANLIB+set}" = set; then :
6213 $as_echo_n "(cached) " >&6
6215 if test -n "$RANLIB"; then
6216 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6218 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6222 test -z "$as_dir" && as_dir=.
6223 for ac_exec_ext in '' $ac_executable_extensions; do
6224 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6225 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6226 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6235 RANLIB=$ac_cv_prog_RANLIB
6236 if test -n "$RANLIB"; then
6237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6238 $as_echo "$RANLIB" >&6; }
6240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6241 $as_echo "no" >&6; }
6246 if test -z "$ac_cv_prog_RANLIB"; then
6247 ac_ct_RANLIB=$RANLIB
6248 # Extract the first word of "ranlib", so it can be a program name with args.
6249 set dummy ranlib; ac_word=$2
6250 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6251 $as_echo_n "checking for $ac_word... " >&6; }
6252 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
6253 $as_echo_n "(cached) " >&6
6255 if test -n "$ac_ct_RANLIB"; then
6256 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6258 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6262 test -z "$as_dir" && as_dir=.
6263 for ac_exec_ext in '' $ac_executable_extensions; do
6264 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6265 ac_cv_prog_ac_ct_RANLIB="ranlib"
6266 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6275 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6276 if test -n "$ac_ct_RANLIB"; then
6277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6278 $as_echo "$ac_ct_RANLIB" >&6; }
6280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6281 $as_echo "no" >&6; }
6284 if test "x$ac_ct_RANLIB" = x; then
6287 case $cross_compiling:$ac_tool_warned in
6289 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6290 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6291 ac_tool_warned=yes ;;
6293 RANLIB=$ac_ct_RANLIB
6296 RANLIB="$ac_cv_prog_RANLIB"
6299 test -z "$RANLIB" && RANLIB=:
6306 # Determine commands to create old-style static archives.
6307 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6308 old_postinstall_cmds='chmod 644 $oldlib'
6309 old_postuninstall_cmds=
6311 if test -n "$RANLIB"; then
6314 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
6317 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
6320 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6325 lock_old_archive_extraction=yes ;;
6327 lock_old_archive_extraction=no ;;
6368 # If no C compiler was specified, use CC.
6371 # If no C compiler flags were specified, use CFLAGS.
6372 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6374 # Allow CC to be a program name with arguments.
6378 # Check for command to grab the raw symbol name followed by C symbol from nm.
6379 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6380 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6381 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
6382 $as_echo_n "(cached) " >&6
6385 # These are sane defaults that work on at least a few old systems.
6386 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
6388 # Character class describing NM global symbol codes.
6389 symcode='[BCDEGRST]'
6391 # Regexp to match symbols that can be accessed directly from C.
6392 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6394 # Define system-specific variables.
6399 cygwin* | mingw* | pw32* | cegcc*)
6400 symcode='[ABCDGISTW]'
6403 if test "$host_cpu" = ia64; then
6404 symcode='[ABCDEGRST]'
6408 symcode='[BCDEGRST]'
6411 symcode='[BCDEGQRST]'
6422 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6430 # If we're using GNU nm, then use its standard symbol codes.
6431 case `$NM -V 2>&1` in
6432 *GNU* | *'with BFD'*)
6433 symcode='[ABCDGIRSTW]' ;;
6436 # Transform an extracted symbol line into a proper C declaration.
6437 # Some systems (esp. on ia64) link data and code symbols differently,
6438 # so use this general approach.
6439 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6441 # Transform an extracted symbol line into symbol name and symbol address
6442 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
6443 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'"
6445 # Handle CRLF in mingw tool chain
6449 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6453 # Try without a prefix underscore, then with it.
6454 for ac_symprfx in "" "_"; do
6456 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6457 symxfrm="\\1 $ac_symprfx\\2 \\2"
6459 # Write the raw and C identifiers.
6460 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6461 # Fake it for dumpbin and say T for any non-static function
6462 # and D for any global variable.
6463 # Also find C++ and __fastcall symbols from MSVC++,
6464 # which start with @ or ?.
6465 lt_cv_sys_global_symbol_pipe="$AWK '"\
6466 " {last_section=section; section=\$ 3};"\
6467 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6468 " \$ 0!~/External *\|/{next};"\
6469 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6470 " {if(hide[section]) next};"\
6471 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
6472 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
6473 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
6474 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
6475 " ' prfx=^$ac_symprfx"
6477 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6479 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
6481 # Check to see that the pipe works correctly.
6485 cat > conftest.$ac_ext <<_LT_EOF
6490 void nm_test_func(void);
6491 void nm_test_func(void){}
6495 int main(){nm_test_var='a';nm_test_func();return(0);}
6498 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6499 (eval $ac_compile) 2>&5
6501 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6502 test $ac_status = 0; }; then
6503 # Now try to grab the symbols.
6505 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
6506 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
6508 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6509 test $ac_status = 0; } && test -s "$nlist"; then
6510 # Try sorting and uniquifying the output.
6511 if sort "$nlist" | uniq > "$nlist"T; then
6512 mv -f "$nlist"T "$nlist"
6517 # Make sure that we snagged all the symbols we need.
6518 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6519 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6520 cat <<_LT_EOF > conftest.$ac_ext
6521 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
6522 #if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
6523 /* DATA imports from DLLs on WIN32 con't be const, because runtime
6524 relocations are performed -- see ld's documentation on pseudo-relocs. */
6525 # define LT_DLSYM_CONST
6526 #elif defined(__osf__)
6527 /* This system does not cope well with relocations in const data. */
6528 # define LT_DLSYM_CONST
6530 # define LT_DLSYM_CONST const
6538 # Now generate the symbol file.
6539 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6541 cat <<_LT_EOF >> conftest.$ac_ext
6543 /* The mapping between symbol names and symbols. */
6544 LT_DLSYM_CONST struct {
6548 lt__PROGRAM__LTX_preloaded_symbols[] =
6550 { "@PROGRAM@", (void *) 0 },
6552 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6553 cat <<\_LT_EOF >> conftest.$ac_ext
6557 /* This works around a problem in FreeBSD linker */
6558 #ifdef FREEBSD_WORKAROUND
6559 static const void *lt_preloaded_setup() {
6560 return lt__PROGRAM__LTX_preloaded_symbols;
6568 # Now try linking the two files.
6569 mv conftest.$ac_objext conftstm.$ac_objext
6570 lt_globsym_save_LIBS=$LIBS
6571 lt_globsym_save_CFLAGS=$CFLAGS
6572 LIBS="conftstm.$ac_objext"
6573 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6574 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6575 (eval $ac_link) 2>&5
6577 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6578 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
6581 LIBS=$lt_globsym_save_LIBS
6582 CFLAGS=$lt_globsym_save_CFLAGS
6584 echo "cannot find nm_test_func in $nlist" >&5
6587 echo "cannot find nm_test_var in $nlist" >&5
6590 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6593 echo "$progname: failed program was:" >&5
6594 cat conftest.$ac_ext >&5
6596 rm -rf conftest* conftst*
6598 # Do not use the global_symbol_pipe unless it works.
6599 if test "$pipe_works" = yes; then
6602 lt_cv_sys_global_symbol_pipe=
6608 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6609 lt_cv_sys_global_symbol_to_cdecl=
6611 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6613 $as_echo "failed" >&6; }
6615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6616 $as_echo "ok" >&6; }
6619 # Response file support.
6620 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6621 nm_file_list_spec='@'
6622 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
6623 nm_file_list_spec='@'
6652 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
6653 $as_echo_n "checking for sysroot... " >&6; }
6655 # Check whether --with-sysroot was given.
6656 if test "${with_sysroot+set}" = set; then :
6657 withval=$with_sysroot;
6664 case ${with_sysroot} in #(
6666 if test "$GCC" = yes; then
6667 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
6671 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
6676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
6677 $as_echo "${with_sysroot}" >&6; }
6678 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
6682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
6683 $as_echo "${lt_sysroot:-no}" >&6; }
6689 # Check whether --enable-libtool-lock was given.
6690 if test "${enable_libtool_lock+set}" = set; then :
6691 enableval=$enable_libtool_lock;
6694 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6696 # Some flags need to be propagated to the compiler or linker for good
6700 # Find out which ABI we are using.
6701 echo 'int i;' > conftest.$ac_ext
6702 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6703 (eval $ac_compile) 2>&5
6705 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6706 test $ac_status = 0; }; then
6707 case `/usr/bin/file conftest.$ac_objext` in
6719 # Find out which ABI we are using.
6720 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6721 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6722 (eval $ac_compile) 2>&5
6724 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6725 test $ac_status = 0; }; then
6726 if test "$lt_cv_prog_gnu_ld" = yes; then
6727 case `/usr/bin/file conftest.$ac_objext` in
6729 LD="${LD-ld} -melf32bsmip"
6732 LD="${LD-ld} -melf32bmipn32"
6735 LD="${LD-ld} -melf64bmip"
6739 case `/usr/bin/file conftest.$ac_objext` in
6755 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
6756 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6757 # Find out which ABI we are using.
6758 echo 'int i;' > conftest.$ac_ext
6759 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6760 (eval $ac_compile) 2>&5
6762 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6763 test $ac_status = 0; }; then
6764 case `/usr/bin/file conftest.o` in
6767 x86_64-*kfreebsd*-gnu)
6768 LD="${LD-ld} -m elf_i386_fbsd"
6771 LD="${LD-ld} -m elf_i386"
6773 ppc64-*linux*|powerpc64-*linux*)
6774 LD="${LD-ld} -m elf32ppclinux"
6777 LD="${LD-ld} -m elf_s390"
6780 LD="${LD-ld} -m elf32_sparc"
6786 x86_64-*kfreebsd*-gnu)
6787 LD="${LD-ld} -m elf_x86_64_fbsd"
6790 LD="${LD-ld} -m elf_x86_64"
6792 ppc*-*linux*|powerpc*-*linux*)
6793 LD="${LD-ld} -m elf64ppc"
6795 s390*-*linux*|s390*-*tpf*)
6796 LD="${LD-ld} -m elf64_s390"
6799 LD="${LD-ld} -m elf64_sparc"
6809 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6810 SAVE_CFLAGS="$CFLAGS"
6811 CFLAGS="$CFLAGS -belf"
6812 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
6813 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
6814 if test "${lt_cv_cc_needs_belf+set}" = set; then :
6815 $as_echo_n "(cached) " >&6
6818 ac_cpp='$CPP $CPPFLAGS'
6819 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6820 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6821 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6823 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6824 /* end confdefs.h. */
6834 if ac_fn_c_try_link "$LINENO"; then :
6835 lt_cv_cc_needs_belf=yes
6837 lt_cv_cc_needs_belf=no
6839 rm -f core conftest.err conftest.$ac_objext \
6840 conftest$ac_exeext conftest.$ac_ext
6842 ac_cpp='$CPP $CPPFLAGS'
6843 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6844 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6845 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
6849 $as_echo "$lt_cv_cc_needs_belf" >&6; }
6850 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6851 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6852 CFLAGS="$SAVE_CFLAGS"
6856 # Find out which ABI we are using.
6857 echo 'int i;' > conftest.$ac_ext
6858 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6859 (eval $ac_compile) 2>&5
6861 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6862 test $ac_status = 0; }; then
6863 case `/usr/bin/file conftest.o` in
6865 case $lt_cv_prog_gnu_ld in
6866 yes*) LD="${LD-ld} -m elf64_sparc" ;;
6868 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6880 need_locks="$enable_libtool_lock"
6882 if test -n "$ac_tool_prefix"; then
6883 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
6884 set dummy ${ac_tool_prefix}mt; ac_word=$2
6885 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6886 $as_echo_n "checking for $ac_word... " >&6; }
6887 if test "${ac_cv_prog_MANIFEST_TOOL+set}" = set; then :
6888 $as_echo_n "(cached) " >&6
6890 if test -n "$MANIFEST_TOOL"; then
6891 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
6893 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6897 test -z "$as_dir" && as_dir=.
6898 for ac_exec_ext in '' $ac_executable_extensions; do
6899 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6900 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
6901 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6910 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
6911 if test -n "$MANIFEST_TOOL"; then
6912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
6913 $as_echo "$MANIFEST_TOOL" >&6; }
6915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6916 $as_echo "no" >&6; }
6921 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
6922 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
6923 # Extract the first word of "mt", so it can be a program name with args.
6924 set dummy mt; ac_word=$2
6925 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6926 $as_echo_n "checking for $ac_word... " >&6; }
6927 if test "${ac_cv_prog_ac_ct_MANIFEST_TOOL+set}" = set; then :
6928 $as_echo_n "(cached) " >&6
6930 if test -n "$ac_ct_MANIFEST_TOOL"; then
6931 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
6933 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6937 test -z "$as_dir" && as_dir=.
6938 for ac_exec_ext in '' $ac_executable_extensions; do
6939 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6940 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
6941 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6950 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
6951 if test -n "$ac_ct_MANIFEST_TOOL"; then
6952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
6953 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
6955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6956 $as_echo "no" >&6; }
6959 if test "x$ac_ct_MANIFEST_TOOL" = x; then
6962 case $cross_compiling:$ac_tool_warned in
6964 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6965 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6966 ac_tool_warned=yes ;;
6968 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
6971 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
6974 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
6975 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
6976 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
6977 if test "${lt_cv_path_mainfest_tool+set}" = set; then :
6978 $as_echo_n "(cached) " >&6
6980 lt_cv_path_mainfest_tool=no
6981 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
6982 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
6983 cat conftest.err >&5
6984 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
6985 lt_cv_path_mainfest_tool=yes
6989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
6990 $as_echo "$lt_cv_path_mainfest_tool" >&6; }
6991 if test "x$lt_cv_path_mainfest_tool" != xyes; then
7001 rhapsody* | darwin*)
7002 if test -n "$ac_tool_prefix"; then
7003 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7004 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7005 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7006 $as_echo_n "checking for $ac_word... " >&6; }
7007 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
7008 $as_echo_n "(cached) " >&6
7010 if test -n "$DSYMUTIL"; then
7011 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7013 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7017 test -z "$as_dir" && as_dir=.
7018 for ac_exec_ext in '' $ac_executable_extensions; do
7019 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7020 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7021 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7030 DSYMUTIL=$ac_cv_prog_DSYMUTIL
7031 if test -n "$DSYMUTIL"; then
7032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
7033 $as_echo "$DSYMUTIL" >&6; }
7035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7036 $as_echo "no" >&6; }
7041 if test -z "$ac_cv_prog_DSYMUTIL"; then
7042 ac_ct_DSYMUTIL=$DSYMUTIL
7043 # Extract the first word of "dsymutil", so it can be a program name with args.
7044 set dummy dsymutil; ac_word=$2
7045 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7046 $as_echo_n "checking for $ac_word... " >&6; }
7047 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
7048 $as_echo_n "(cached) " >&6
7050 if test -n "$ac_ct_DSYMUTIL"; then
7051 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7053 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7057 test -z "$as_dir" && as_dir=.
7058 for ac_exec_ext in '' $ac_executable_extensions; do
7059 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7060 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7061 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7070 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7071 if test -n "$ac_ct_DSYMUTIL"; then
7072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
7073 $as_echo "$ac_ct_DSYMUTIL" >&6; }
7075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7076 $as_echo "no" >&6; }
7079 if test "x$ac_ct_DSYMUTIL" = x; then
7082 case $cross_compiling:$ac_tool_warned in
7084 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7085 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7086 ac_tool_warned=yes ;;
7088 DSYMUTIL=$ac_ct_DSYMUTIL
7091 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7094 if test -n "$ac_tool_prefix"; then
7095 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7096 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7097 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7098 $as_echo_n "checking for $ac_word... " >&6; }
7099 if test "${ac_cv_prog_NMEDIT+set}" = set; then :
7100 $as_echo_n "(cached) " >&6
7102 if test -n "$NMEDIT"; then
7103 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7105 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7109 test -z "$as_dir" && as_dir=.
7110 for ac_exec_ext in '' $ac_executable_extensions; do
7111 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7112 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7113 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7122 NMEDIT=$ac_cv_prog_NMEDIT
7123 if test -n "$NMEDIT"; then
7124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
7125 $as_echo "$NMEDIT" >&6; }
7127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7128 $as_echo "no" >&6; }
7133 if test -z "$ac_cv_prog_NMEDIT"; then
7134 ac_ct_NMEDIT=$NMEDIT
7135 # Extract the first word of "nmedit", so it can be a program name with args.
7136 set dummy nmedit; ac_word=$2
7137 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7138 $as_echo_n "checking for $ac_word... " >&6; }
7139 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
7140 $as_echo_n "(cached) " >&6
7142 if test -n "$ac_ct_NMEDIT"; then
7143 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7145 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7149 test -z "$as_dir" && as_dir=.
7150 for ac_exec_ext in '' $ac_executable_extensions; do
7151 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7152 ac_cv_prog_ac_ct_NMEDIT="nmedit"
7153 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7162 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7163 if test -n "$ac_ct_NMEDIT"; then
7164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7165 $as_echo "$ac_ct_NMEDIT" >&6; }
7167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7168 $as_echo "no" >&6; }
7171 if test "x$ac_ct_NMEDIT" = x; then
7174 case $cross_compiling:$ac_tool_warned in
7176 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7177 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7178 ac_tool_warned=yes ;;
7180 NMEDIT=$ac_ct_NMEDIT
7183 NMEDIT="$ac_cv_prog_NMEDIT"
7186 if test -n "$ac_tool_prefix"; then
7187 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7188 set dummy ${ac_tool_prefix}lipo; ac_word=$2
7189 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7190 $as_echo_n "checking for $ac_word... " >&6; }
7191 if test "${ac_cv_prog_LIPO+set}" = set; then :
7192 $as_echo_n "(cached) " >&6
7194 if test -n "$LIPO"; then
7195 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7197 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7201 test -z "$as_dir" && as_dir=.
7202 for ac_exec_ext in '' $ac_executable_extensions; do
7203 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7204 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7205 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7214 LIPO=$ac_cv_prog_LIPO
7215 if test -n "$LIPO"; then
7216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7217 $as_echo "$LIPO" >&6; }
7219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7220 $as_echo "no" >&6; }
7225 if test -z "$ac_cv_prog_LIPO"; then
7227 # Extract the first word of "lipo", so it can be a program name with args.
7228 set dummy lipo; ac_word=$2
7229 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7230 $as_echo_n "checking for $ac_word... " >&6; }
7231 if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
7232 $as_echo_n "(cached) " >&6
7234 if test -n "$ac_ct_LIPO"; then
7235 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7237 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7241 test -z "$as_dir" && as_dir=.
7242 for ac_exec_ext in '' $ac_executable_extensions; do
7243 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7244 ac_cv_prog_ac_ct_LIPO="lipo"
7245 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7254 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7255 if test -n "$ac_ct_LIPO"; then
7256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7257 $as_echo "$ac_ct_LIPO" >&6; }
7259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7260 $as_echo "no" >&6; }
7263 if test "x$ac_ct_LIPO" = x; then
7266 case $cross_compiling:$ac_tool_warned in
7268 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7269 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7270 ac_tool_warned=yes ;;
7275 LIPO="$ac_cv_prog_LIPO"
7278 if test -n "$ac_tool_prefix"; then
7279 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7280 set dummy ${ac_tool_prefix}otool; ac_word=$2
7281 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7282 $as_echo_n "checking for $ac_word... " >&6; }
7283 if test "${ac_cv_prog_OTOOL+set}" = set; then :
7284 $as_echo_n "(cached) " >&6
7286 if test -n "$OTOOL"; then
7287 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7289 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7293 test -z "$as_dir" && as_dir=.
7294 for ac_exec_ext in '' $ac_executable_extensions; do
7295 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7296 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7297 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7306 OTOOL=$ac_cv_prog_OTOOL
7307 if test -n "$OTOOL"; then
7308 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7309 $as_echo "$OTOOL" >&6; }
7311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7312 $as_echo "no" >&6; }
7317 if test -z "$ac_cv_prog_OTOOL"; then
7319 # Extract the first word of "otool", so it can be a program name with args.
7320 set dummy otool; ac_word=$2
7321 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7322 $as_echo_n "checking for $ac_word... " >&6; }
7323 if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
7324 $as_echo_n "(cached) " >&6
7326 if test -n "$ac_ct_OTOOL"; then
7327 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7329 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7333 test -z "$as_dir" && as_dir=.
7334 for ac_exec_ext in '' $ac_executable_extensions; do
7335 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7336 ac_cv_prog_ac_ct_OTOOL="otool"
7337 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7346 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7347 if test -n "$ac_ct_OTOOL"; then
7348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7349 $as_echo "$ac_ct_OTOOL" >&6; }
7351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7352 $as_echo "no" >&6; }
7355 if test "x$ac_ct_OTOOL" = x; then
7358 case $cross_compiling:$ac_tool_warned in
7360 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7361 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7362 ac_tool_warned=yes ;;
7367 OTOOL="$ac_cv_prog_OTOOL"
7370 if test -n "$ac_tool_prefix"; then
7371 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7372 set dummy ${ac_tool_prefix}otool64; ac_word=$2
7373 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7374 $as_echo_n "checking for $ac_word... " >&6; }
7375 if test "${ac_cv_prog_OTOOL64+set}" = set; then :
7376 $as_echo_n "(cached) " >&6
7378 if test -n "$OTOOL64"; then
7379 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7381 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7385 test -z "$as_dir" && as_dir=.
7386 for ac_exec_ext in '' $ac_executable_extensions; do
7387 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7388 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7389 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7398 OTOOL64=$ac_cv_prog_OTOOL64
7399 if test -n "$OTOOL64"; then
7400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
7401 $as_echo "$OTOOL64" >&6; }
7403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7404 $as_echo "no" >&6; }
7409 if test -z "$ac_cv_prog_OTOOL64"; then
7410 ac_ct_OTOOL64=$OTOOL64
7411 # Extract the first word of "otool64", so it can be a program name with args.
7412 set dummy otool64; ac_word=$2
7413 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7414 $as_echo_n "checking for $ac_word... " >&6; }
7415 if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
7416 $as_echo_n "(cached) " >&6
7418 if test -n "$ac_ct_OTOOL64"; then
7419 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7421 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7425 test -z "$as_dir" && as_dir=.
7426 for ac_exec_ext in '' $ac_executable_extensions; do
7427 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7428 ac_cv_prog_ac_ct_OTOOL64="otool64"
7429 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7438 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7439 if test -n "$ac_ct_OTOOL64"; then
7440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
7441 $as_echo "$ac_ct_OTOOL64" >&6; }
7443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7444 $as_echo "no" >&6; }
7447 if test "x$ac_ct_OTOOL64" = x; then
7450 case $cross_compiling:$ac_tool_warned in
7452 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7453 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7454 ac_tool_warned=yes ;;
7456 OTOOL64=$ac_ct_OTOOL64
7459 OTOOL64="$ac_cv_prog_OTOOL64"
7488 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7489 $as_echo_n "checking for -single_module linker flag... " >&6; }
7490 if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
7491 $as_echo_n "(cached) " >&6
7493 lt_cv_apple_cc_single_mod=no
7494 if test -z "${LT_MULTI_MODULE}"; then
7495 # By default we will add the -single_module flag. You can override
7496 # by either setting the environment variable LT_MULTI_MODULE
7497 # non-empty at configure time, or by adding -multi_module to the
7499 rm -rf libconftest.dylib*
7500 echo "int foo(void){return 1;}" > conftest.c
7501 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7502 -dynamiclib -Wl,-single_module conftest.c" >&5
7503 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7504 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7506 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
7507 lt_cv_apple_cc_single_mod=yes
7509 cat conftest.err >&5
7511 rm -rf libconftest.dylib*
7515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7516 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7517 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7518 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7519 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
7520 $as_echo_n "(cached) " >&6
7522 lt_cv_ld_exported_symbols_list=no
7523 save_LDFLAGS=$LDFLAGS
7524 echo "_main" > conftest.sym
7525 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7526 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7527 /* end confdefs.h. */
7537 if ac_fn_c_try_link "$LINENO"; then :
7538 lt_cv_ld_exported_symbols_list=yes
7540 lt_cv_ld_exported_symbols_list=no
7542 rm -f core conftest.err conftest.$ac_objext \
7543 conftest$ac_exeext conftest.$ac_ext
7544 LDFLAGS="$save_LDFLAGS"
7547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7548 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7549 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
7550 $as_echo_n "checking for -force_load linker flag... " >&6; }
7551 if test "${lt_cv_ld_force_load+set}" = set; then :
7552 $as_echo_n "(cached) " >&6
7554 lt_cv_ld_force_load=no
7555 cat > conftest.c << _LT_EOF
7556 int forced_loaded() { return 2;}
7558 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
7559 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
7560 echo "$AR cru libconftest.a conftest.o" >&5
7561 $AR cru libconftest.a conftest.o 2>&5
7562 echo "$RANLIB libconftest.a" >&5
7563 $RANLIB libconftest.a 2>&5
7564 cat > conftest.c << _LT_EOF
7565 int main() { return 0;}
7567 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
7568 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
7570 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
7571 lt_cv_ld_force_load=yes
7573 cat conftest.err >&5
7575 rm -f conftest.err libconftest.a conftest conftest.c
7576 rm -rf conftest.dSYM
7579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
7580 $as_echo "$lt_cv_ld_force_load" >&6; }
7582 rhapsody* | darwin1.[012])
7583 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7585 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7586 darwin*) # darwin 5.x on
7587 # if running on 10.5 or later, the deployment target defaults
7588 # to the OS version, if on x86, and 10.4, the deployment
7589 # target defaults to 10.4. Don't you love it?
7590 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7591 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7592 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7594 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7596 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7600 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7601 _lt_dar_single_mod='$single_module'
7603 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7604 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7606 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
7608 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
7609 _lt_dsymutil='~$DSYMUTIL $lib || :'
7617 ac_cpp='$CPP $CPPFLAGS'
7618 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7619 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7620 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7621 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
7622 $as_echo_n "checking how to run the C preprocessor... " >&6; }
7623 # On Suns, sometimes $CPP names a directory.
7624 if test -n "$CPP" && test -d "$CPP"; then
7627 if test -z "$CPP"; then
7628 if test "${ac_cv_prog_CPP+set}" = set; then :
7629 $as_echo_n "(cached) " >&6
7631 # Double quotes because CPP needs to be expanded
7632 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
7635 for ac_c_preproc_warn_flag in '' yes
7637 # Use a header file that comes with gcc, so configuring glibc
7638 # with a fresh cross-compiler works.
7639 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7640 # <limits.h> exists even on freestanding compilers.
7641 # On the NeXT, cc -E runs the code through the compiler's parser,
7642 # not just through cpp. "Syntax error" is here to catch this case.
7643 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7644 /* end confdefs.h. */
7646 # include <limits.h>
7648 # include <assert.h>
7652 if ac_fn_c_try_cpp "$LINENO"; then :
7655 # Broken: fails on valid input.
7658 rm -f conftest.err conftest.i conftest.$ac_ext
7660 # OK, works on sane cases. Now check whether nonexistent headers
7661 # can be detected and how.
7662 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7663 /* end confdefs.h. */
7664 #include <ac_nonexistent.h>
7666 if ac_fn_c_try_cpp "$LINENO"; then :
7667 # Broken: success on invalid input.
7670 # Passes both tests.
7674 rm -f conftest.err conftest.i conftest.$ac_ext
7677 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7678 rm -f conftest.i conftest.err conftest.$ac_ext
7679 if $ac_preproc_ok; then :
7691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
7692 $as_echo "$CPP" >&6; }
7694 for ac_c_preproc_warn_flag in '' yes
7696 # Use a header file that comes with gcc, so configuring glibc
7697 # with a fresh cross-compiler works.
7698 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7699 # <limits.h> exists even on freestanding compilers.
7700 # On the NeXT, cc -E runs the code through the compiler's parser,
7701 # not just through cpp. "Syntax error" is here to catch this case.
7702 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7703 /* end confdefs.h. */
7705 # include <limits.h>
7707 # include <assert.h>
7711 if ac_fn_c_try_cpp "$LINENO"; then :
7714 # Broken: fails on valid input.
7717 rm -f conftest.err conftest.i conftest.$ac_ext
7719 # OK, works on sane cases. Now check whether nonexistent headers
7720 # can be detected and how.
7721 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7722 /* end confdefs.h. */
7723 #include <ac_nonexistent.h>
7725 if ac_fn_c_try_cpp "$LINENO"; then :
7726 # Broken: success on invalid input.
7729 # Passes both tests.
7733 rm -f conftest.err conftest.i conftest.$ac_ext
7736 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7737 rm -f conftest.i conftest.err conftest.$ac_ext
7738 if $ac_preproc_ok; then :
7741 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7742 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7743 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
7744 See \`config.log' for more details" "$LINENO" 5 ; }
7748 ac_cpp='$CPP $CPPFLAGS'
7749 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7750 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7751 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7754 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
7755 $as_echo_n "checking for ANSI C header files... " >&6; }
7756 if test "${ac_cv_header_stdc+set}" = set; then :
7757 $as_echo_n "(cached) " >&6
7759 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7760 /* end confdefs.h. */
7774 if ac_fn_c_try_compile "$LINENO"; then :
7775 ac_cv_header_stdc=yes
7777 ac_cv_header_stdc=no
7779 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7781 if test $ac_cv_header_stdc = yes; then
7782 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7783 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7784 /* end confdefs.h. */
7788 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7789 $EGREP "memchr" >/dev/null 2>&1; then :
7792 ac_cv_header_stdc=no
7798 if test $ac_cv_header_stdc = yes; then
7799 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7800 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7801 /* end confdefs.h. */
7805 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7806 $EGREP "free" >/dev/null 2>&1; then :
7809 ac_cv_header_stdc=no
7815 if test $ac_cv_header_stdc = yes; then
7816 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7817 if test "$cross_compiling" = yes; then :
7820 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7821 /* end confdefs.h. */
7824 #if ((' ' & 0x0FF) == 0x020)
7825 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7826 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7828 # define ISLOWER(c) \
7829 (('a' <= (c) && (c) <= 'i') \
7830 || ('j' <= (c) && (c) <= 'r') \
7831 || ('s' <= (c) && (c) <= 'z'))
7832 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7835 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7840 for (i = 0; i < 256; i++)
7841 if (XOR (islower (i), ISLOWER (i))
7842 || toupper (i) != TOUPPER (i))
7847 if ac_fn_c_try_run "$LINENO"; then :
7850 ac_cv_header_stdc=no
7852 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7853 conftest.$ac_objext conftest.beam conftest.$ac_ext
7858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
7859 $as_echo "$ac_cv_header_stdc" >&6; }
7860 if test $ac_cv_header_stdc = yes; then
7862 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
7866 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
7867 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7868 inttypes.h stdint.h unistd.h
7870 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7871 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
7873 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
7874 cat >>confdefs.h <<_ACEOF
7875 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7883 for ac_header in dlfcn.h
7885 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7887 if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
7888 cat >>confdefs.h <<_ACEOF
7889 #define HAVE_DLFCN_H 1
7910 # Check whether --enable-shared was given.
7911 if test "${enable_shared+set}" = set; then :
7912 enableval=$enable_shared; p=${PACKAGE-default}
7914 yes) enable_shared=yes ;;
7915 no) enable_shared=no ;;
7918 # Look at the argument we got. We use all the common list separators.
7919 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7920 for pkg in $enableval; do
7922 if test "X$pkg" = "X$p"; then
7943 # Check whether --with-pic was given.
7944 if test "${with_pic+set}" = set; then :
7945 withval=$with_pic; pic_mode="$withval"
7951 test -z "$pic_mode" && pic_mode=default
7959 # Check whether --enable-fast-install was given.
7960 if test "${enable_fast_install+set}" = set; then :
7961 enableval=$enable_fast_install; p=${PACKAGE-default}
7963 yes) enable_fast_install=yes ;;
7964 no) enable_fast_install=no ;;
7966 enable_fast_install=no
7967 # Look at the argument we got. We use all the common list separators.
7968 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7969 for pkg in $enableval; do
7971 if test "X$pkg" = "X$p"; then
7972 enable_fast_install=yes
7979 enable_fast_install=yes
7992 # This can be used to rebuild libtool when needed
7993 LIBTOOL_DEPS="$ltmain"
7995 # Always use our own libtool.
7996 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8023 test -z "$LN_S" && LN_S="ln -s"
8038 if test -n "${ZSH_VERSION+set}" ; then
8039 setopt NO_GLOB_SUBST
8042 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8043 $as_echo_n "checking for objdir... " >&6; }
8044 if test "${lt_cv_objdir+set}" = set; then :
8045 $as_echo_n "(cached) " >&6
8047 rm -f .libs 2>/dev/null
8048 mkdir .libs 2>/dev/null
8049 if test -d .libs; then
8052 # MS-DOS does not allow filenames that begin with a dot.
8055 rmdir .libs 2>/dev/null
8057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8058 $as_echo "$lt_cv_objdir" >&6; }
8059 objdir=$lt_cv_objdir
8065 cat >>confdefs.h <<_ACEOF
8066 #define LT_OBJDIR "$lt_cv_objdir/"
8074 # AIX sometimes has problems with the GCC collect2 program. For some
8075 # reason, if we set the COLLECT_NAMES environment variable, the problems
8076 # vanish in a puff of smoke.
8077 if test "X${COLLECT_NAMES+set}" != Xset; then
8079 export COLLECT_NAMES
8086 can_build_shared=yes
8088 # All known linkers require a `.a' archive for static linking (except MSVC,
8089 # which needs '.lib').
8092 with_gnu_ld="$lt_cv_prog_gnu_ld"
8095 old_CFLAGS="$CFLAGS"
8097 # Set sane defaults for various variables
8098 test -z "$CC" && CC=cc
8099 test -z "$LTCC" && LTCC=$CC
8100 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8101 test -z "$LD" && LD=ld
8102 test -z "$ac_objext" && ac_objext=o
8104 for cc_temp in $compiler""; do
8106 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8107 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8112 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
8115 # Only perform the check for file, if the check method requires it
8116 test -z "$MAGIC_CMD" && MAGIC_CMD=file
8117 case $deplibs_check_method in
8119 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8120 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8121 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
8122 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
8123 $as_echo_n "(cached) " >&6
8127 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8130 lt_save_MAGIC_CMD="$MAGIC_CMD"
8131 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8132 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8133 for ac_dir in $ac_dummy; do
8135 test -z "$ac_dir" && ac_dir=.
8136 if test -f $ac_dir/${ac_tool_prefix}file; then
8137 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8138 if test -n "$file_magic_test_file"; then
8139 case $deplibs_check_method in
8141 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8142 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8143 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8144 $EGREP "$file_magic_regex" > /dev/null; then
8149 *** Warning: the command libtool uses to detect shared libraries,
8150 *** $file_magic_cmd, produces output that libtool cannot recognize.
8151 *** The result is that libtool may fail to recognize shared libraries
8152 *** as such. This will affect the creation of libtool libraries that
8153 *** depend on shared libraries, but programs linked with such libtool
8154 *** libraries will work regardless of this problem. Nevertheless, you
8155 *** may want to report the problem to your system manager and/or to
8156 *** bug-libtool@gnu.org
8166 MAGIC_CMD="$lt_save_MAGIC_CMD"
8171 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8172 if test -n "$MAGIC_CMD"; then
8173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8174 $as_echo "$MAGIC_CMD" >&6; }
8176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8177 $as_echo "no" >&6; }
8184 if test -z "$lt_cv_path_MAGIC_CMD"; then
8185 if test -n "$ac_tool_prefix"; then
8186 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8187 $as_echo_n "checking for file... " >&6; }
8188 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
8189 $as_echo_n "(cached) " >&6
8193 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8196 lt_save_MAGIC_CMD="$MAGIC_CMD"
8197 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8198 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8199 for ac_dir in $ac_dummy; do
8201 test -z "$ac_dir" && ac_dir=.
8202 if test -f $ac_dir/file; then
8203 lt_cv_path_MAGIC_CMD="$ac_dir/file"
8204 if test -n "$file_magic_test_file"; then
8205 case $deplibs_check_method in
8207 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8208 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8209 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8210 $EGREP "$file_magic_regex" > /dev/null; then
8215 *** Warning: the command libtool uses to detect shared libraries,
8216 *** $file_magic_cmd, produces output that libtool cannot recognize.
8217 *** The result is that libtool may fail to recognize shared libraries
8218 *** as such. This will affect the creation of libtool libraries that
8219 *** depend on shared libraries, but programs linked with such libtool
8220 *** libraries will work regardless of this problem. Nevertheless, you
8221 *** may want to report the problem to your system manager and/or to
8222 *** bug-libtool@gnu.org
8232 MAGIC_CMD="$lt_save_MAGIC_CMD"
8237 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8238 if test -n "$MAGIC_CMD"; then
8239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8240 $as_echo "$MAGIC_CMD" >&6; }
8242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8243 $as_echo "no" >&6; }
8256 # Use C for the default configuration in the libtool script
8260 ac_cpp='$CPP $CPPFLAGS'
8261 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8262 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8263 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8266 # Source file extension for C test sources.
8269 # Object file extension for compiled C test sources.
8273 # Code to be used in simple compile tests
8274 lt_simple_compile_test_code="int some_variable = 0;"
8276 # Code to be used in simple link tests
8277 lt_simple_link_test_code='int main(){return(0);}'
8285 # If no C compiler was specified, use CC.
8288 # If no C compiler flags were specified, use CFLAGS.
8289 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8291 # Allow CC to be a program name with arguments.
8294 # Save the default compiler, since it gets overwritten when the other
8295 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8296 compiler_DEFAULT=$CC
8298 # save warnings/boilerplate of simple test code
8299 ac_outfile=conftest.$ac_objext
8300 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8301 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8302 _lt_compiler_boilerplate=`cat conftest.err`
8305 ac_outfile=conftest.$ac_objext
8306 echo "$lt_simple_link_test_code" >conftest.$ac_ext
8307 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8308 _lt_linker_boilerplate=`cat conftest.err`
8313 ## There is no encapsulation within the following macros, do not change
8314 ## the running order or otherwise move them around unless you know exactly
8315 ## what you are doing...
8316 if test -n "$compiler"; then
8318 lt_prog_compiler_no_builtin_flag=
8320 if test "$GCC" = yes; then
8321 case $cc_basename in
8323 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
8325 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
8328 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8329 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8330 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
8331 $as_echo_n "(cached) " >&6
8333 lt_cv_prog_compiler_rtti_exceptions=no
8334 ac_outfile=conftest.$ac_objext
8335 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8336 lt_compiler_flag="-fno-rtti -fno-exceptions"
8337 # Insert the option either (1) after the last *FLAGS variable, or
8338 # (2) before a word containing "conftest.", or (3) at the end.
8339 # Note that $ac_compile itself does not contain backslashes and begins
8340 # with a dollar sign (not a hyphen), so the echo should work correctly.
8341 # The option is referenced via a variable to avoid confusing sed.
8342 lt_compile=`echo "$ac_compile" | $SED \
8343 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8344 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8345 -e 's:$: $lt_compiler_flag:'`
8346 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8347 (eval "$lt_compile" 2>conftest.err)
8349 cat conftest.err >&5
8350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8351 if (exit $ac_status) && test -s "$ac_outfile"; then
8352 # The compiler can only warn and ignore the option if not recognized
8353 # So say no if there are warnings other than the usual output.
8354 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8355 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8356 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8357 lt_cv_prog_compiler_rtti_exceptions=yes
8363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8364 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8366 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8367 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8379 lt_prog_compiler_wl=
8380 lt_prog_compiler_pic=
8381 lt_prog_compiler_static=
8384 if test "$GCC" = yes; then
8385 lt_prog_compiler_wl='-Wl,'
8386 lt_prog_compiler_static='-static'
8390 # All AIX code is PIC.
8391 if test "$host_cpu" = ia64; then
8392 # AIX 5 now supports IA64 processor
8393 lt_prog_compiler_static='-Bstatic'
8400 # see comment about AmigaOS4 .so support
8401 lt_prog_compiler_pic='-fPIC'
8404 # FIXME: we need at least 68020 code to build shared libraries, but
8405 # adding the `-m68020' flag to GCC prevents building anything better,
8407 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8412 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8413 # PIC is the default for these OSes.
8416 mingw* | cygwin* | pw32* | os2* | cegcc*)
8417 # This hack is so that the source file can tell whether it is being
8418 # built for inclusion in a dll (and should export symbols for example).
8419 # Although the cygwin gcc ignores -fPIC, still need this for old-style
8420 # (--disable-auto-import) libraries
8421 lt_prog_compiler_pic='-DDLL_EXPORT'
8424 darwin* | rhapsody*)
8425 # PIC is the default on this platform
8426 # Common symbols not allowed in MH_DYLIB files
8427 lt_prog_compiler_pic='-fno-common'
8431 # PIC is the default for Haiku.
8432 # The "-static" flag exists, but is broken.
8433 lt_prog_compiler_static=
8437 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8438 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
8439 # sets the default TLS model and affects inlining.
8445 lt_prog_compiler_pic='-fPIC'
8451 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8452 # Instead, we relocate shared libraries at runtime.
8456 # Just because we use GCC doesn't mean we suddenly get shared libraries
8457 # on systems that don't support them.
8458 lt_prog_compiler_can_build_shared=no
8463 # QNX uses GNU C++, but need to define -shared option too, otherwise
8465 lt_prog_compiler_pic='-fPIC -shared'
8469 if test -d /usr/nec; then
8470 lt_prog_compiler_pic=-Kconform_pic
8475 lt_prog_compiler_pic='-fPIC'
8479 case $cc_basename in
8480 nvcc*) # Cuda Compiler Driver 2.2
8481 lt_prog_compiler_wl='-Xlinker '
8482 lt_prog_compiler_pic='-Xcompiler -fPIC'
8486 # PORTME Check for flag to pass linker flags through the system compiler.
8489 lt_prog_compiler_wl='-Wl,'
8490 if test "$host_cpu" = ia64; then
8491 # AIX 5 now supports IA64 processor
8492 lt_prog_compiler_static='-Bstatic'
8494 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8498 mingw* | cygwin* | pw32* | os2* | cegcc*)
8499 # This hack is so that the source file can tell whether it is being
8500 # built for inclusion in a dll (and should export symbols for example).
8501 lt_prog_compiler_pic='-DDLL_EXPORT'
8504 hpux9* | hpux10* | hpux11*)
8505 lt_prog_compiler_wl='-Wl,'
8506 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8513 lt_prog_compiler_pic='+Z'
8516 # Is there a better lt_prog_compiler_static that works with the bundled CC?
8517 lt_prog_compiler_static='${wl}-a ${wl}archive'
8520 irix5* | irix6* | nonstopux*)
8521 lt_prog_compiler_wl='-Wl,'
8522 # PIC (with -KPIC) is the default.
8523 lt_prog_compiler_static='-non_shared'
8526 linux* | k*bsd*-gnu | kopensolaris*-gnu)
8527 case $cc_basename in
8528 # old Intel for x86_64 which still supported -KPIC.
8530 lt_prog_compiler_wl='-Wl,'
8531 lt_prog_compiler_pic='-KPIC'
8532 lt_prog_compiler_static='-static'
8534 # icc used to be incompatible with GCC.
8535 # ICC 10 doesn't accept -KPIC any more.
8537 lt_prog_compiler_wl='-Wl,'
8538 lt_prog_compiler_pic='-fPIC'
8539 lt_prog_compiler_static='-static'
8541 # Lahey Fortran 8.1.
8543 lt_prog_compiler_wl='-Wl,'
8544 lt_prog_compiler_pic='--shared'
8545 lt_prog_compiler_static='--static'
8548 # NAG Fortran compiler
8549 lt_prog_compiler_wl='-Wl,-Wl,,'
8550 lt_prog_compiler_pic='-PIC'
8551 lt_prog_compiler_static='-Bstatic'
8553 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
8554 # Portland Group compilers (*not* the Pentium gcc compiler,
8555 # which looks to be a dead project)
8556 lt_prog_compiler_wl='-Wl,'
8557 lt_prog_compiler_pic='-fpic'
8558 lt_prog_compiler_static='-Bstatic'
8561 lt_prog_compiler_wl='-Wl,'
8562 # All Alpha code is PIC.
8563 lt_prog_compiler_static='-non_shared'
8565 xl* | bgxl* | bgf* | mpixl*)
8566 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
8567 lt_prog_compiler_wl='-Wl,'
8568 lt_prog_compiler_pic='-qpic'
8569 lt_prog_compiler_static='-qstaticlink'
8572 case `$CC -V 2>&1 | sed 5q` in
8573 *Sun\ F* | *Sun*Fortran*)
8574 # Sun Fortran 8.3 passes all unrecognized flags to the linker
8575 lt_prog_compiler_pic='-KPIC'
8576 lt_prog_compiler_static='-Bstatic'
8577 lt_prog_compiler_wl=''
8581 lt_prog_compiler_pic='-KPIC'
8582 lt_prog_compiler_static='-Bstatic'
8583 lt_prog_compiler_wl='-Wl,'
8591 lt_prog_compiler_pic='-KPIC'
8592 lt_prog_compiler_static='-Bstatic'
8596 # QNX uses GNU C++, but need to define -shared option too, otherwise
8598 lt_prog_compiler_pic='-fPIC -shared'
8601 osf3* | osf4* | osf5*)
8602 lt_prog_compiler_wl='-Wl,'
8603 # All OSF/1 code is PIC.
8604 lt_prog_compiler_static='-non_shared'
8608 lt_prog_compiler_static='-non_shared'
8612 lt_prog_compiler_pic='-KPIC'
8613 lt_prog_compiler_static='-Bstatic'
8614 case $cc_basename in
8615 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
8616 lt_prog_compiler_wl='-Qoption ld ';;
8618 lt_prog_compiler_wl='-Wl,';;
8623 lt_prog_compiler_wl='-Qoption ld '
8624 lt_prog_compiler_pic='-PIC'
8625 lt_prog_compiler_static='-Bstatic'
8628 sysv4 | sysv4.2uw2* | sysv4.3*)
8629 lt_prog_compiler_wl='-Wl,'
8630 lt_prog_compiler_pic='-KPIC'
8631 lt_prog_compiler_static='-Bstatic'
8635 if test -d /usr/nec ;then
8636 lt_prog_compiler_pic='-Kconform_pic'
8637 lt_prog_compiler_static='-Bstatic'
8641 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8642 lt_prog_compiler_wl='-Wl,'
8643 lt_prog_compiler_pic='-KPIC'
8644 lt_prog_compiler_static='-Bstatic'
8648 lt_prog_compiler_wl='-Wl,'
8649 lt_prog_compiler_can_build_shared=no
8653 lt_prog_compiler_pic='-pic'
8654 lt_prog_compiler_static='-Bstatic'
8658 lt_prog_compiler_can_build_shared=no
8664 # For platforms which do not support PIC, -DPIC is meaningless:
8666 lt_prog_compiler_pic=
8669 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8673 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8674 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8675 if test "${lt_cv_prog_compiler_pic+set}" = set; then :
8676 $as_echo_n "(cached) " >&6
8678 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
8680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
8681 $as_echo "$lt_cv_prog_compiler_pic" >&6; }
8682 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
8685 # Check to make sure the PIC flag actually works.
8687 if test -n "$lt_prog_compiler_pic"; then
8688 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8689 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8690 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
8691 $as_echo_n "(cached) " >&6
8693 lt_cv_prog_compiler_pic_works=no
8694 ac_outfile=conftest.$ac_objext
8695 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8696 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8697 # Insert the option either (1) after the last *FLAGS variable, or
8698 # (2) before a word containing "conftest.", or (3) at the end.
8699 # Note that $ac_compile itself does not contain backslashes and begins
8700 # with a dollar sign (not a hyphen), so the echo should work correctly.
8701 # The option is referenced via a variable to avoid confusing sed.
8702 lt_compile=`echo "$ac_compile" | $SED \
8703 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8704 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8705 -e 's:$: $lt_compiler_flag:'`
8706 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8707 (eval "$lt_compile" 2>conftest.err)
8709 cat conftest.err >&5
8710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8711 if (exit $ac_status) && test -s "$ac_outfile"; then
8712 # The compiler can only warn and ignore the option if not recognized
8713 # So say no if there are warnings other than the usual output.
8714 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8715 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8716 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8717 lt_cv_prog_compiler_pic_works=yes
8723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8724 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8726 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
8727 case $lt_prog_compiler_pic in
8729 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8732 lt_prog_compiler_pic=
8733 lt_prog_compiler_can_build_shared=no
8749 # Check to make sure the static flag actually works.
8751 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8752 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8753 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8754 if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
8755 $as_echo_n "(cached) " >&6
8757 lt_cv_prog_compiler_static_works=no
8758 save_LDFLAGS="$LDFLAGS"
8759 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8760 echo "$lt_simple_link_test_code" > conftest.$ac_ext
8761 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8762 # The linker can only warn and ignore the option if not recognized
8763 # So say no if there are warnings
8764 if test -s conftest.err; then
8765 # Append any errors to the config.log.
8766 cat conftest.err 1>&5
8767 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
8768 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8769 if diff conftest.exp conftest.er2 >/dev/null; then
8770 lt_cv_prog_compiler_static_works=yes
8773 lt_cv_prog_compiler_static_works=yes
8777 LDFLAGS="$save_LDFLAGS"
8780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
8781 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
8783 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
8786 lt_prog_compiler_static=
8795 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8796 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8797 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
8798 $as_echo_n "(cached) " >&6
8800 lt_cv_prog_compiler_c_o=no
8801 $RM -r conftest 2>/dev/null
8805 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8807 lt_compiler_flag="-o out/conftest2.$ac_objext"
8808 # Insert the option either (1) after the last *FLAGS variable, or
8809 # (2) before a word containing "conftest.", or (3) at the end.
8810 # Note that $ac_compile itself does not contain backslashes and begins
8811 # with a dollar sign (not a hyphen), so the echo should work correctly.
8812 lt_compile=`echo "$ac_compile" | $SED \
8813 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8814 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8815 -e 's:$: $lt_compiler_flag:'`
8816 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8817 (eval "$lt_compile" 2>out/conftest.err)
8819 cat out/conftest.err >&5
8820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8821 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8823 # The compiler can only warn and ignore the option if not recognized
8824 # So say no if there are warnings
8825 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8826 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8827 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8828 lt_cv_prog_compiler_c_o=yes
8833 # SGI C++ compiler will create directory out/ii_files/ for
8834 # template instantiation
8835 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8836 $RM out/* && rmdir out
8842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8843 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8850 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8851 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8852 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
8853 $as_echo_n "(cached) " >&6
8855 lt_cv_prog_compiler_c_o=no
8856 $RM -r conftest 2>/dev/null
8860 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8862 lt_compiler_flag="-o out/conftest2.$ac_objext"
8863 # Insert the option either (1) after the last *FLAGS variable, or
8864 # (2) before a word containing "conftest.", or (3) at the end.
8865 # Note that $ac_compile itself does not contain backslashes and begins
8866 # with a dollar sign (not a hyphen), so the echo should work correctly.
8867 lt_compile=`echo "$ac_compile" | $SED \
8868 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8869 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8870 -e 's:$: $lt_compiler_flag:'`
8871 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8872 (eval "$lt_compile" 2>out/conftest.err)
8874 cat out/conftest.err >&5
8875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8876 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8878 # The compiler can only warn and ignore the option if not recognized
8879 # So say no if there are warnings
8880 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8881 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8882 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8883 lt_cv_prog_compiler_c_o=yes
8888 # SGI C++ compiler will create directory out/ii_files/ for
8889 # template instantiation
8890 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8891 $RM out/* && rmdir out
8897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8898 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8903 hard_links="nottested"
8904 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8905 # do not overwrite the value of need_locks provided by the user
8906 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
8907 $as_echo_n "checking if we can lock with hard links... " >&6; }
8910 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8912 ln conftest.a conftest.b 2>&5 || hard_links=no
8913 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
8915 $as_echo "$hard_links" >&6; }
8916 if test "$hard_links" = no; then
8917 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8918 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8930 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8931 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
8934 allow_undefined_flag=
8935 always_export_symbols=no
8937 archive_expsym_cmds=
8938 compiler_needs_object=no
8939 enable_shared_with_static_runtimes=no
8940 export_dynamic_flag_spec=
8941 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8942 hardcode_automatic=no
8944 hardcode_direct_absolute=no
8945 hardcode_libdir_flag_spec=
8946 hardcode_libdir_flag_spec_ld=
8947 hardcode_libdir_separator=
8949 hardcode_shlibpath_var=unsupported
8951 link_all_deplibs=unknown
8954 old_archive_from_new_cmds=
8955 old_archive_from_expsyms_cmds=
8956 thread_safe_flag_spec=
8957 whole_archive_flag_spec=
8958 # include_expsyms should be a list of space-separated symbols to be *always*
8959 # included in the symbol list
8961 # exclude_expsyms can be an extended regexp of symbols to exclude
8962 # it will be wrapped by ` (' and `)$', so one must not match beginning or
8963 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8964 # as well as any symbol that contains `d'.
8965 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
8966 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8967 # platforms (ab)use it in PIC code, but their linkers get confused if
8968 # the symbol is explicitly referenced. Since portable code cannot
8969 # rely on this symbol name, it's probably fine to never include it in
8970 # preloaded symbol tables.
8971 # Exclude shared library initialization/finalization symbols.
8972 extract_expsyms_cmds=
8975 cygwin* | mingw* | pw32* | cegcc*)
8976 # FIXME: the MSVC++ port hasn't been tested in a loooong time
8977 # When not using gcc, we currently assume that we are using
8978 # Microsoft Visual C++.
8979 if test "$GCC" != yes; then
8984 # we just hope/assume this is gcc and not c89 (= MSVC++)
8994 # On some targets, GNU ld is compatible enough with the native linker
8995 # that we're better off using the native interface for both.
8996 lt_use_gnu_ld_interface=no
8997 if test "$with_gnu_ld" = yes; then
9000 # The AIX port of GNU ld has always aspired to compatibility
9001 # with the native linker. However, as the warning in the GNU ld
9002 # block says, versions before 2.19.5* couldn't really create working
9003 # shared libraries, regardless of the interface used.
9004 case `$LD -v 2>&1` in
9005 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
9006 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
9007 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
9009 lt_use_gnu_ld_interface=yes
9014 lt_use_gnu_ld_interface=yes
9019 if test "$lt_use_gnu_ld_interface" = yes; then
9020 # If archive_cmds runs LD, not CC, wlarc should be empty
9023 # Set some defaults for GNU ld with shared library support. These
9024 # are reset later if shared libraries are not supported. Putting them
9025 # here allows them to be overridden if necessary.
9026 runpath_var=LD_RUN_PATH
9027 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9028 export_dynamic_flag_spec='${wl}--export-dynamic'
9029 # ancient GNU ld didn't support --whole-archive et. al.
9030 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9031 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9033 whole_archive_flag_spec=
9035 supports_anon_versioning=no
9036 case `$LD -v 2>&1` in
9037 *GNU\ gold*) supports_anon_versioning=yes ;;
9038 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9039 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9040 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9041 *\ 2.11.*) ;; # other 2.11 versions
9042 *) supports_anon_versioning=yes ;;
9045 # See if GNU ld supports shared libraries.
9048 # On AIX/PPC, the GNU linker is very broken
9049 if test "$host_cpu" != ia64; then
9053 *** Warning: the GNU linker, at least up to release 2.19, is reported
9054 *** to be unable to reliably create shared libraries on AIX.
9055 *** Therefore, libtool is disabling shared libraries support. If you
9056 *** really care for shared libraries, you may want to install binutils
9057 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
9058 *** You will then need to restart the configuration process.
9067 # see comment about AmigaOS4 .so support
9068 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9069 archive_expsym_cmds=''
9072 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)'
9073 hardcode_libdir_flag_spec='-L$libdir'
9074 hardcode_minus_L=yes
9080 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9081 allow_undefined_flag=unsupported
9082 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9083 # support --undefined. This deserves some investigation. FIXME
9084 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9090 cygwin* | mingw* | pw32* | cegcc*)
9091 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9092 # as there is no search path for DLLs.
9093 hardcode_libdir_flag_spec='-L$libdir'
9094 export_dynamic_flag_spec='${wl}--export-all-symbols'
9095 allow_undefined_flag=unsupported
9096 always_export_symbols=no
9097 enable_shared_with_static_runtimes=yes
9098 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'
9099 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
9101 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9102 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9103 # If the export-symbols file already is a .def file (1st line
9104 # is EXPORTS), use it as is; otherwise, prepend...
9105 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9106 cp $export_symbols $output_objdir/$soname.def;
9108 echo EXPORTS > $output_objdir/$soname.def;
9109 cat $export_symbols >> $output_objdir/$soname.def;
9111 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9118 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9119 link_all_deplibs=yes
9124 hardcode_shlibpath_var=no
9125 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9126 export_dynamic_flag_spec='${wl}-E'
9127 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9128 # Instead, shared libraries are loaded at an image base (0x10000000 by
9129 # default) and relocated if they conflict, which is a slow very memory
9130 # consuming and fragmenting process. To avoid this, we pick a random,
9131 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9132 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
9133 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9134 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'
9137 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
9139 if test "$host_os" = linux-dietlibc; then
9140 case $cc_basename in
9141 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
9144 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9145 && test "$tmp_diet" = no
9147 tmp_addflag=' $pic_flag'
9148 tmp_sharedflag='-shared'
9149 case $cc_basename,$host_cpu in
9150 pgcc*) # Portland Group C compiler
9151 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'
9152 tmp_addflag=' $pic_flag'
9154 pgf77* | pgf90* | pgf95* | pgfortran*)
9155 # Portland Group f77 and f90 compilers
9156 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'
9157 tmp_addflag=' $pic_flag -Mnomain' ;;
9158 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
9159 tmp_addflag=' -i_dynamic' ;;
9160 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
9161 tmp_addflag=' -i_dynamic -nofor_main' ;;
9162 ifc* | ifort*) # Intel Fortran compiler
9163 tmp_addflag=' -nofor_main' ;;
9164 lf95*) # Lahey Fortran 8.1
9165 whole_archive_flag_spec=
9166 tmp_sharedflag='--shared' ;;
9167 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
9168 tmp_sharedflag='-qmkshrobj'
9170 nvcc*) # Cuda Compiler Driver 2.2
9171 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'
9172 compiler_needs_object=yes
9175 case `$CC -V 2>&1 | sed 5q` in
9176 *Sun\ C*) # Sun C 5.9
9177 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'
9178 compiler_needs_object=yes
9179 tmp_sharedflag='-G' ;;
9180 *Sun\ F*) # Sun Fortran 8.3
9181 tmp_sharedflag='-G' ;;
9183 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9185 if test "x$supports_anon_versioning" = xyes; then
9186 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9187 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9188 echo "local: *; };" >> $output_objdir/$libname.ver~
9189 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9192 case $cc_basename in
9193 xlf* | bgf* | bgxlf* | mpixlf*)
9194 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9195 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9196 hardcode_libdir_flag_spec=
9197 hardcode_libdir_flag_spec_ld='-rpath $libdir'
9198 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
9199 if test "x$supports_anon_versioning" = xyes; then
9200 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9201 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9202 echo "local: *; };" >> $output_objdir/$libname.ver~
9203 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9213 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9214 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9217 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9218 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9223 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9227 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
9228 *** create shared libraries on Solaris systems. Therefore, libtool
9229 *** is disabling shared libraries support. We urge you to upgrade GNU
9230 *** binutils to release 2.9.1 or newer. Another option is to modify
9231 *** your PATH or compiler configuration so that the native linker is
9232 *** used, and then restart.
9235 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9236 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9237 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9243 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9244 case `$LD -v 2>&1` in
9245 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9249 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9250 *** reliably create shared libraries on SCO systems. Therefore, libtool
9251 *** is disabling shared libraries support. We urge you to upgrade GNU
9252 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
9253 *** your PATH or compiler configuration so that the native linker is
9254 *** used, and then restart.
9259 # For security reasons, it is highly recommended that you always
9260 # use absolute paths for naming shared libraries, and exclude the
9261 # DT_RUNPATH tag from executables and libraries. But doing so
9262 # requires that you compile everything twice, which is a pain.
9263 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9264 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9265 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9266 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9275 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9278 hardcode_shlibpath_var=no
9282 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9283 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9284 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9291 if test "$ld_shlibs" = no; then
9293 hardcode_libdir_flag_spec=
9294 export_dynamic_flag_spec=
9295 whole_archive_flag_spec=
9298 # PORTME fill in a description of your system's linker (not GNU ld)
9301 allow_undefined_flag=unsupported
9302 always_export_symbols=yes
9303 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'
9304 # Note: this linker hardcodes the directories in LIBPATH if there
9305 # are no directories specified by -L.
9306 hardcode_minus_L=yes
9307 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9308 # Neither direct hardcoding nor static linking is supported with a
9310 hardcode_direct=unsupported
9315 if test "$host_cpu" = ia64; then
9316 # On IA64, the linker does run time linking by default, so we don't
9317 # have to do anything special.
9318 aix_use_runtimelinking=no
9319 exp_sym_flag='-Bexport'
9322 # If we're using GNU nm, then we don't want the "-C" option.
9323 # -C means demangle to AIX nm, but means don't demangle with GNU nm
9324 # Also, AIX nm treats weak defined symbols like other global
9325 # defined symbols, whereas GNU nm marks them as "W".
9326 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9327 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'
9329 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'
9331 aix_use_runtimelinking=no
9333 # Test if we are trying to use run time linking or normal
9334 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9335 # need to do runtime linking.
9336 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9337 for ld_flag in $LDFLAGS; do
9338 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9339 aix_use_runtimelinking=yes
9346 exp_sym_flag='-bexport'
9347 no_entry_flag='-bnoentry'
9350 # When large executables or shared objects are built, AIX ld can
9351 # have problems creating the table of contents. If linking a library
9352 # or program results in "error TOC overflow" add -mminimal-toc to
9353 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9354 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9358 hardcode_direct_absolute=yes
9359 hardcode_libdir_separator=':'
9360 link_all_deplibs=yes
9361 file_list_spec='${wl}-f,'
9363 if test "$GCC" = yes; then
9364 case $host_os in aix4.[012]|aix4.[012].*)
9365 # We only want to do this on AIX 4.2 and lower, the check
9366 # below for broken collect2 doesn't work under 4.3+
9367 collect2name=`${CC} -print-prog-name=collect2`
9368 if test -f "$collect2name" &&
9369 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9371 # We have reworked collect2
9374 # We have old collect2
9375 hardcode_direct=unsupported
9376 # It fails to find uninstalled libraries when the uninstalled
9377 # path is not listed in the libpath. Setting hardcode_minus_L
9378 # to unsupported forces relinking
9379 hardcode_minus_L=yes
9380 hardcode_libdir_flag_spec='-L$libdir'
9381 hardcode_libdir_separator=
9385 shared_flag='-shared'
9386 if test "$aix_use_runtimelinking" = yes; then
9387 shared_flag="$shared_flag "'${wl}-G'
9391 if test "$host_cpu" = ia64; then
9392 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9393 # chokes on -Wl,-G. The following line is correct:
9396 if test "$aix_use_runtimelinking" = yes; then
9397 shared_flag='${wl}-G'
9399 shared_flag='${wl}-bM:SRE'
9404 export_dynamic_flag_spec='${wl}-bexpall'
9405 # It seems that -bexpall does not export symbols beginning with
9406 # underscore (_), so it is better to generate a list of symbols to export.
9407 always_export_symbols=yes
9408 if test "$aix_use_runtimelinking" = yes; then
9409 # Warning - without using the other runtime loading flags (-brtl),
9410 # -berok will link without error, but may produce a broken library.
9411 allow_undefined_flag='-berok'
9412 # Determine the default libpath from the value encoded in an
9414 if test "${lt_cv_aix_libpath+set}" = set; then
9415 aix_libpath=$lt_cv_aix_libpath
9417 if test "${lt_cv_aix_libpath_+set}" = set; then :
9418 $as_echo_n "(cached) " >&6
9420 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9421 /* end confdefs.h. */
9431 if ac_fn_c_try_link "$LINENO"; then :
9433 lt_aix_libpath_sed='
9434 /Import File Strings/,/^$/ {
9436 s/^0 *\([^ ]*\) *$/\1/
9440 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9441 # Check for a 64-bit object if we didn't find anything.
9442 if test -z "$lt_cv_aix_libpath_"; then
9443 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9446 rm -f core conftest.err conftest.$ac_objext \
9447 conftest$ac_exeext conftest.$ac_ext
9448 if test -z "$lt_cv_aix_libpath_"; then
9449 lt_cv_aix_libpath_="/usr/lib:/lib"
9454 aix_libpath=$lt_cv_aix_libpath_
9457 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9458 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"
9460 if test "$host_cpu" = ia64; then
9461 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9462 allow_undefined_flag="-z nodefs"
9463 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"
9465 # Determine the default libpath from the value encoded in an
9467 if test "${lt_cv_aix_libpath+set}" = set; then
9468 aix_libpath=$lt_cv_aix_libpath
9470 if test "${lt_cv_aix_libpath_+set}" = set; then :
9471 $as_echo_n "(cached) " >&6
9473 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9474 /* end confdefs.h. */
9484 if ac_fn_c_try_link "$LINENO"; then :
9486 lt_aix_libpath_sed='
9487 /Import File Strings/,/^$/ {
9489 s/^0 *\([^ ]*\) *$/\1/
9493 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9494 # Check for a 64-bit object if we didn't find anything.
9495 if test -z "$lt_cv_aix_libpath_"; then
9496 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9499 rm -f core conftest.err conftest.$ac_objext \
9500 conftest$ac_exeext conftest.$ac_ext
9501 if test -z "$lt_cv_aix_libpath_"; then
9502 lt_cv_aix_libpath_="/usr/lib:/lib"
9507 aix_libpath=$lt_cv_aix_libpath_
9510 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9511 # Warning - without using the other run time loading flags,
9512 # -berok will link without error, but may produce a broken library.
9513 no_undefined_flag=' ${wl}-bernotok'
9514 allow_undefined_flag=' ${wl}-berok'
9515 if test "$with_gnu_ld" = yes; then
9516 # We only use this code for GNU lds that support --whole-archive.
9517 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
9519 # Exported symbols can be pulled into shared objects from archives
9520 whole_archive_flag_spec='$convenience'
9522 archive_cmds_need_lc=yes
9523 # This is similar to how AIX traditionally builds its shared libraries.
9524 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'
9532 # see comment about AmigaOS4 .so support
9533 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9534 archive_expsym_cmds=''
9537 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)'
9538 hardcode_libdir_flag_spec='-L$libdir'
9539 hardcode_minus_L=yes
9545 export_dynamic_flag_spec=-rdynamic
9548 cygwin* | mingw* | pw32* | cegcc*)
9549 # When not using gcc, we currently assume that we are using
9550 # Microsoft Visual C++.
9551 # hardcode_libdir_flag_spec is actually meaningless, as there is
9552 # no search path for DLLs.
9553 case $cc_basename in
9556 hardcode_libdir_flag_spec=' '
9557 allow_undefined_flag=unsupported
9558 always_export_symbols=yes
9560 # Tell ltmain to make .lib files, not .a files.
9562 # Tell ltmain to make .dll files, not .so files.
9564 # FIXME: Setting linknames here is a bad hack.
9565 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
9566 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9567 sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
9569 sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
9571 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
9573 # The linker will not automatically build a static lib if we build a DLL.
9574 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
9575 enable_shared_with_static_runtimes=yes
9576 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9578 old_postinstall_cmds='chmod 644 $oldlib'
9579 postlink_cmds='lt_outputfile="@OUTPUT@"~
9580 lt_tool_outputfile="@TOOL_OUTPUT@"~
9581 case $lt_outputfile in
9584 lt_outputfile="$lt_outputfile.exe"
9585 lt_tool_outputfile="$lt_tool_outputfile.exe"
9588 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
9589 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
9590 $RM "$lt_outputfile.manifest";
9594 # Assume MSVC wrapper
9595 hardcode_libdir_flag_spec=' '
9596 allow_undefined_flag=unsupported
9597 # Tell ltmain to make .lib files, not .a files.
9599 # Tell ltmain to make .dll files, not .so files.
9601 # FIXME: Setting linknames here is a bad hack.
9602 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
9603 # The linker will automatically build a .lib file if we build a DLL.
9604 old_archive_from_new_cmds='true'
9605 # FIXME: Should let the user specify the lib program.
9606 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9607 enable_shared_with_static_runtimes=yes
9612 darwin* | rhapsody*)
9615 archive_cmds_need_lc=no
9617 hardcode_automatic=yes
9618 hardcode_shlibpath_var=unsupported
9619 if test "$lt_cv_ld_force_load" = "yes"; then
9620 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\"`'
9622 whole_archive_flag_spec=''
9624 link_all_deplibs=yes
9625 allow_undefined_flag="$_lt_dar_allow_undefined"
9626 case $cc_basename in
9627 ifort*) _lt_dar_can_shared=yes ;;
9628 *) _lt_dar_can_shared=$GCC ;;
9630 if test "$_lt_dar_can_shared" = "yes"; then
9631 output_verbose_link_cmd=func_echo_all
9632 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9633 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9634 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}"
9635 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}"
9644 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9645 hardcode_libdir_flag_spec='-L$libdir'
9646 hardcode_shlibpath_var=no
9653 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9654 # support. Future versions do this automatically, but an explicit c++rt0.o
9655 # does not break anything, and helps significantly (at the cost of a little
9658 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9659 hardcode_libdir_flag_spec='-R$libdir'
9661 hardcode_shlibpath_var=no
9664 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9666 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9668 hardcode_minus_L=yes
9669 hardcode_shlibpath_var=no
9672 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9673 freebsd* | dragonfly*)
9674 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9675 hardcode_libdir_flag_spec='-R$libdir'
9677 hardcode_shlibpath_var=no
9681 if test "$GCC" = yes; then
9682 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'
9684 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'
9686 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9687 hardcode_libdir_separator=:
9690 # hardcode_minus_L: Not really in the search PATH,
9691 # but as the default location of the library.
9692 hardcode_minus_L=yes
9693 export_dynamic_flag_spec='${wl}-E'
9697 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9698 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9700 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9702 if test "$with_gnu_ld" = no; then
9703 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9704 hardcode_libdir_flag_spec_ld='+b $libdir'
9705 hardcode_libdir_separator=:
9707 hardcode_direct_absolute=yes
9708 export_dynamic_flag_spec='${wl}-E'
9709 # hardcode_minus_L: Not really in the search PATH,
9710 # but as the default location of the library.
9711 hardcode_minus_L=yes
9716 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9719 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9722 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9725 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9731 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9734 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9738 # Older versions of the 11.00 compiler do not understand -b yet
9739 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
9740 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
9741 $as_echo_n "checking if $CC understands -b... " >&6; }
9742 if test "${lt_cv_prog_compiler__b+set}" = set; then :
9743 $as_echo_n "(cached) " >&6
9745 lt_cv_prog_compiler__b=no
9746 save_LDFLAGS="$LDFLAGS"
9747 LDFLAGS="$LDFLAGS -b"
9748 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9749 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9750 # The linker can only warn and ignore the option if not recognized
9751 # So say no if there are warnings
9752 if test -s conftest.err; then
9753 # Append any errors to the config.log.
9754 cat conftest.err 1>&5
9755 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9756 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9757 if diff conftest.exp conftest.er2 >/dev/null; then
9758 lt_cv_prog_compiler__b=yes
9761 lt_cv_prog_compiler__b=yes
9765 LDFLAGS="$save_LDFLAGS"
9768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
9769 $as_echo "$lt_cv_prog_compiler__b" >&6; }
9771 if test x"$lt_cv_prog_compiler__b" = xyes; then
9772 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9774 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9780 if test "$with_gnu_ld" = no; then
9781 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9782 hardcode_libdir_separator=:
9787 hardcode_shlibpath_var=no
9791 hardcode_direct_absolute=yes
9792 export_dynamic_flag_spec='${wl}-E'
9794 # hardcode_minus_L: Not really in the search PATH,
9795 # but as the default location of the library.
9796 hardcode_minus_L=yes
9802 irix5* | irix6* | nonstopux*)
9803 if test "$GCC" = yes; then
9804 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'
9805 # Try to use the -exported_symbol ld option, if it does not
9806 # work, assume that -exports_file does not work either and
9807 # implicitly export all symbols.
9808 # This should be the same for all languages, so no per-tag cache variable.
9809 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
9810 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
9811 if test "${lt_cv_irix_exported_symbol+set}" = set; then :
9812 $as_echo_n "(cached) " >&6
9814 save_LDFLAGS="$LDFLAGS"
9815 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
9816 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9817 /* end confdefs.h. */
9818 int foo (void) { return 0; }
9820 if ac_fn_c_try_link "$LINENO"; then :
9821 lt_cv_irix_exported_symbol=yes
9823 lt_cv_irix_exported_symbol=no
9825 rm -f core conftest.err conftest.$ac_objext \
9826 conftest$ac_exeext conftest.$ac_ext
9827 LDFLAGS="$save_LDFLAGS"
9829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
9830 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
9831 if test "$lt_cv_irix_exported_symbol" = yes; then
9832 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'
9835 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'
9836 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'
9838 archive_cmds_need_lc='no'
9839 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9840 hardcode_libdir_separator=:
9842 link_all_deplibs=yes
9846 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9847 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
9849 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
9851 hardcode_libdir_flag_spec='-R$libdir'
9853 hardcode_shlibpath_var=no
9857 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9859 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9860 hardcode_libdir_separator=:
9861 hardcode_shlibpath_var=no
9868 if test -f /usr/libexec/ld.so; then
9870 hardcode_shlibpath_var=no
9871 hardcode_direct_absolute=yes
9872 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9873 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9874 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9875 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9876 export_dynamic_flag_spec='${wl}-E'
9879 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9880 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9881 hardcode_libdir_flag_spec='-R$libdir'
9884 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9885 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9895 hardcode_libdir_flag_spec='-L$libdir'
9896 hardcode_minus_L=yes
9897 allow_undefined_flag=unsupported
9898 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'
9899 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9903 if test "$GCC" = yes; then
9904 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9905 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'
9907 allow_undefined_flag=' -expect_unresolved \*'
9908 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'
9910 archive_cmds_need_lc='no'
9911 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9912 hardcode_libdir_separator=:
9915 osf4* | osf5*) # as osf3* with the addition of -msym flag
9916 if test "$GCC" = yes; then
9917 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9918 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'
9919 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9921 allow_undefined_flag=' -expect_unresolved \*'
9922 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'
9923 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~
9924 $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'
9926 # Both c and cxx compiler support -rpath directly
9927 hardcode_libdir_flag_spec='-rpath $libdir'
9929 archive_cmds_need_lc='no'
9930 hardcode_libdir_separator=:
9934 no_undefined_flag=' -z defs'
9935 if test "$GCC" = yes; then
9937 archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9938 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9939 $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'
9941 case `$CC -V 2>&1` in
9944 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9945 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9946 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
9950 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
9951 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9952 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9956 hardcode_libdir_flag_spec='-R$libdir'
9957 hardcode_shlibpath_var=no
9959 solaris2.[0-5] | solaris2.[0-5].*) ;;
9961 # The compiler driver will combine and reorder linker options,
9962 # but understands `-z linker_flag'. GCC discards it without `$wl',
9963 # but is careful enough not to reorder.
9964 # Supported since Solaris 2.6 (maybe 2.5.1?)
9965 if test "$GCC" = yes; then
9966 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9968 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
9972 link_all_deplibs=yes
9976 if test "x$host_vendor" = xsequent; then
9977 # Use $CC to link under sequent, because it throws in some extra .o
9978 # files that make .init and .fini sections work.
9979 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9981 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9983 hardcode_libdir_flag_spec='-L$libdir'
9985 hardcode_minus_L=yes
9986 hardcode_shlibpath_var=no
9990 case $host_vendor in
9992 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9993 hardcode_direct=yes # is this really true???
9996 ## LD is ld it makes a PLAMLIB
9997 ## CC just makes a GrossModule.
9998 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9999 reload_cmds='$CC -r -o $output$reload_objs'
10003 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10004 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10007 runpath_var='LD_RUN_PATH'
10008 hardcode_shlibpath_var=no
10012 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10013 hardcode_shlibpath_var=no
10014 export_dynamic_flag_spec='-Bexport'
10018 if test -d /usr/nec; then
10019 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10020 hardcode_shlibpath_var=no
10021 runpath_var=LD_RUN_PATH
10022 hardcode_runpath_var=yes
10027 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10028 no_undefined_flag='${wl}-z,text'
10029 archive_cmds_need_lc=no
10030 hardcode_shlibpath_var=no
10031 runpath_var='LD_RUN_PATH'
10033 if test "$GCC" = yes; then
10034 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10035 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10037 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10038 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10042 sysv5* | sco3.2v5* | sco5v6*)
10043 # Note: We can NOT use -z defs as we might desire, because we do not
10044 # link with -lc, and that would cause any symbols used from libc to
10045 # always be unresolved, which means just about no library would
10046 # ever link correctly. If we're not using GNU ld we use -z text
10047 # though, which does catch some bad symbols but isn't as heavy-handed
10049 no_undefined_flag='${wl}-z,text'
10050 allow_undefined_flag='${wl}-z,nodefs'
10051 archive_cmds_need_lc=no
10052 hardcode_shlibpath_var=no
10053 hardcode_libdir_flag_spec='${wl}-R,$libdir'
10054 hardcode_libdir_separator=':'
10055 link_all_deplibs=yes
10056 export_dynamic_flag_spec='${wl}-Bexport'
10057 runpath_var='LD_RUN_PATH'
10059 if test "$GCC" = yes; then
10060 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10061 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10063 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10064 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10069 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10070 hardcode_libdir_flag_spec='-L$libdir'
10071 hardcode_shlibpath_var=no
10079 if test x$host_vendor = xsni; then
10081 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10082 export_dynamic_flag_spec='${wl}-Blargedynsym'
10088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10089 $as_echo "$ld_shlibs" >&6; }
10090 test "$ld_shlibs" = no && can_build_shared=no
10092 with_gnu_ld=$with_gnu_ld
10109 # Do we need to explicitly link libc?
10111 case "x$archive_cmds_need_lc" in
10113 # Assume -lc should be added
10114 archive_cmds_need_lc=yes
10116 if test "$enable_shared" = yes && test "$GCC" = yes; then
10117 case $archive_cmds in
10119 # FIXME: we may have to deal with multi-command sequences.
10122 # Test whether the compiler implicitly links with -lc since on some
10123 # systems, -lgcc has to come before -lc. If gcc already passes -lc
10124 # to ld, don't add -lc before -lgcc.
10125 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10126 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
10127 if test "${lt_cv_archive_cmds_need_lc+set}" = set; then :
10128 $as_echo_n "(cached) " >&6
10131 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10133 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10134 (eval $ac_compile) 2>&5
10136 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10137 test $ac_status = 0; } 2>conftest.err; then
10140 libobjs=conftest.$ac_objext
10142 wl=$lt_prog_compiler_wl
10143 pic_flag=$lt_prog_compiler_pic
10149 lt_save_allow_undefined_flag=$allow_undefined_flag
10150 allow_undefined_flag=
10151 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
10152 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
10154 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10155 test $ac_status = 0; }
10157 lt_cv_archive_cmds_need_lc=no
10159 lt_cv_archive_cmds_need_lc=yes
10161 allow_undefined_flag=$lt_save_allow_undefined_flag
10163 cat conftest.err 1>&5
10168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
10169 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
10170 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
10333 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10334 $as_echo_n "checking dynamic linker characteristics... " >&6; }
10336 if test "$GCC" = yes; then
10338 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
10339 *) lt_awk_arg="/^libraries:/" ;;
10342 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
10343 *) lt_sed_strip_eq="s,=/,/,g" ;;
10345 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
10346 case $lt_search_path_spec in
10348 # if the path contains ";" then we assume it to be the separator
10349 # otherwise default to the standard path separator (i.e. ":") - it is
10350 # assumed that no part of a normal pathname contains ";" but that should
10351 # okay in the real world where ";" in dirpaths is itself problematic.
10352 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
10355 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
10358 # Ok, now we have the path, separated by spaces, we can step through it
10359 # and add multilib dir if necessary.
10360 lt_tmp_lt_search_path_spec=
10361 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10362 for lt_sys_path in $lt_search_path_spec; do
10363 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
10364 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
10366 test -d "$lt_sys_path" && \
10367 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10370 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
10371 BEGIN {RS=" "; FS="/|\n";} {
10374 for (lt_i = NF; lt_i > 0; lt_i--) {
10375 if ($lt_i != "" && $lt_i != ".") {
10376 if ($lt_i == "..") {
10379 if (lt_count == 0) {
10380 lt_foo="/" $lt_i lt_foo;
10387 if (lt_foo != "") { lt_freq[lt_foo]++; }
10388 if (lt_freq[lt_foo] == 1) { print lt_foo; }
10390 # AWK program above erroneously prepends '/' to C:/dos/paths
10393 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
10394 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
10396 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
10398 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10400 library_names_spec=
10401 libname_spec='lib$name'
10405 postuninstall_cmds=
10409 shlibpath_overrides_runpath=unknown
10411 dynamic_linker="$host_os ld.so"
10412 sys_lib_dlsearch_path_spec="/lib /usr/lib"
10413 need_lib_prefix=unknown
10414 hardcode_into_libs=no
10416 # when you set need_version to no, make sure it does not cause -set_version
10417 # flags to be left without arguments
10418 need_version=unknown
10423 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10424 shlibpath_var=LIBPATH
10426 # AIX 3 has no versioning support, so we append a major version to the name.
10427 soname_spec='${libname}${release}${shared_ext}$major'
10434 hardcode_into_libs=yes
10435 if test "$host_cpu" = ia64; then
10436 # AIX 5 supports IA64
10437 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10438 shlibpath_var=LD_LIBRARY_PATH
10440 # With GCC up to 2.95.x, collect2 would create an import file
10441 # for dependence libraries. The import file would start with
10442 # the line `#! .'. This would cause the generated library to
10443 # depend on `.', always an invalid library. This was fixed in
10444 # development snapshots of GCC prior to 3.0.
10446 aix4 | aix4.[01] | aix4.[01].*)
10447 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10449 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
10452 can_build_shared=no
10456 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10457 # soname into executable. Probably we can add versioning support to
10458 # collect2, so additional links can be useful in future.
10459 if test "$aix_use_runtimelinking" = yes; then
10460 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10461 # instead of lib<name>.a to let people know that these are not
10462 # typical AIX shared libraries.
10463 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10465 # We preserve .a as extension for shared libraries through AIX4.2
10466 # and later when we are not doing run time linking.
10467 library_names_spec='${libname}${release}.a $libname.a'
10468 soname_spec='${libname}${release}${shared_ext}$major'
10470 shlibpath_var=LIBPATH
10477 # Since July 2007 AmigaOS4 officially supports .so libraries.
10478 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10479 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10482 library_names_spec='$libname.ixlibrary $libname.a'
10483 # Create ${libname}_ixlibrary.a entries in /sys/libs.
10484 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'
10490 library_names_spec='${libname}${shared_ext}'
10491 dynamic_linker="$host_os ld.so"
10492 shlibpath_var=LIBRARY_PATH
10498 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10499 soname_spec='${libname}${release}${shared_ext}$major'
10500 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10501 shlibpath_var=LD_LIBRARY_PATH
10502 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10503 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10504 # the default ld.so.conf also contains /usr/contrib/lib and
10505 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10506 # libtool to hard-code these into programs
10509 cygwin* | mingw* | pw32* | cegcc*)
10510 version_type=windows
10515 case $GCC,$cc_basename in
10518 library_names_spec='$libname.dll.a'
10519 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10520 postinstall_cmds='base_file=`basename \${file}`~
10521 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10522 dldir=$destdir/`dirname \$dlpath`~
10523 test -d \$dldir || mkdir -p \$dldir~
10524 $install_prog $dir/$dlname \$dldir/$dlname~
10525 chmod a+x \$dldir/$dlname~
10526 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10527 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10529 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10530 dlpath=$dir/\$dldll~
10532 shlibpath_overrides_runpath=yes
10536 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10537 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10539 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
10542 # MinGW DLLs use traditional 'lib' prefix
10543 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10546 # pw32 DLLs use 'pw' prefix rather than 'lib'
10547 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10550 dynamic_linker='Win32 ld.exe'
10555 libname_spec='$name'
10556 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10557 library_names_spec='${libname}.dll.lib'
10561 sys_lib_search_path_spec=
10564 for lt_path in $LIB
10567 # Let DOS variable expansion print the short 8.3 style file name.
10568 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
10569 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
10572 # Convert to MSYS style.
10573 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
10576 # Convert to unix form, then to dos form, then back to unix form
10577 # but this time dos style (no spaces!) so that the unix form looks
10578 # like /cygdrive/c/PROGRA~1:/cygdr...
10579 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
10580 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
10581 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10584 sys_lib_search_path_spec="$LIB"
10585 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
10586 # It is most probably a Windows format PATH.
10587 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10589 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10591 # FIXME: find the short name or the path components, as spaces are
10592 # common. (e.g. "Program Files" -> "PROGRA~1")
10596 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10597 postinstall_cmds='base_file=`basename \${file}`~
10598 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10599 dldir=$destdir/`dirname \$dlpath`~
10600 test -d \$dldir || mkdir -p \$dldir~
10601 $install_prog $dir/$dlname \$dldir/$dlname'
10602 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10603 dlpath=$dir/\$dldll~
10605 shlibpath_overrides_runpath=yes
10606 dynamic_linker='Win32 link.exe'
10610 # Assume MSVC wrapper
10611 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10612 dynamic_linker='Win32 ld.exe'
10615 # FIXME: first we should search . and the directory the executable is in
10619 darwin* | rhapsody*)
10620 dynamic_linker="$host_os dyld"
10621 version_type=darwin
10624 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10625 soname_spec='${libname}${release}${major}$shared_ext'
10626 shlibpath_overrides_runpath=yes
10627 shlibpath_var=DYLD_LIBRARY_PATH
10628 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10630 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10631 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10638 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10639 soname_spec='${libname}${release}${shared_ext}$major'
10640 shlibpath_var=LD_LIBRARY_PATH
10647 freebsd* | dragonfly*)
10648 # DragonFly does not have aout. When/if they implement a new
10649 # versioning mechanism, adjust this.
10650 if test -x /usr/bin/objformat; then
10651 objformat=`/usr/bin/objformat`
10654 freebsd[123]*) objformat=aout ;;
10655 *) objformat=elf ;;
10658 version_type=freebsd-$objformat
10659 case $version_type in
10661 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10666 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10670 shlibpath_var=LD_LIBRARY_PATH
10673 shlibpath_overrides_runpath=yes
10675 freebsd3.[01]* | freebsdelf3.[01]*)
10676 shlibpath_overrides_runpath=yes
10677 hardcode_into_libs=yes
10679 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10680 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10681 shlibpath_overrides_runpath=no
10682 hardcode_into_libs=yes
10684 *) # from 4.6 on, and DragonFly
10685 shlibpath_overrides_runpath=yes
10686 hardcode_into_libs=yes
10695 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10696 soname_spec='${libname}${release}${shared_ext}$major'
10697 shlibpath_var=LD_LIBRARY_PATH
10698 hardcode_into_libs=yes
10705 dynamic_linker="$host_os runtime_loader"
10706 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10707 soname_spec='${libname}${release}${shared_ext}$major'
10708 shlibpath_var=LIBRARY_PATH
10709 shlibpath_overrides_runpath=yes
10710 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
10711 hardcode_into_libs=yes
10714 hpux9* | hpux10* | hpux11*)
10715 # Give a soname corresponding to the major version so that dld.sl refuses to
10716 # link against other versions.
10723 hardcode_into_libs=yes
10724 dynamic_linker="$host_os dld.so"
10725 shlibpath_var=LD_LIBRARY_PATH
10726 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10727 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10728 soname_spec='${libname}${release}${shared_ext}$major'
10729 if test "X$HPUX_IA64_MODE" = X32; then
10730 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10732 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10734 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10738 hardcode_into_libs=yes
10739 dynamic_linker="$host_os dld.sl"
10740 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10741 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10742 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10743 soname_spec='${libname}${release}${shared_ext}$major'
10744 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10745 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10749 dynamic_linker="$host_os dld.sl"
10750 shlibpath_var=SHLIB_PATH
10751 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10752 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10753 soname_spec='${libname}${release}${shared_ext}$major'
10756 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
10757 postinstall_cmds='chmod 555 $lib'
10758 # or fails outright, so override atomically:
10759 install_override_mode=555
10766 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10767 soname_spec='${libname}${release}${shared_ext}$major'
10768 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10769 shlibpath_var=LD_LIBRARY_PATH
10770 shlibpath_overrides_runpath=no
10771 hardcode_into_libs=yes
10774 irix5* | irix6* | nonstopux*)
10776 nonstopux*) version_type=nonstopux ;;
10778 if test "$lt_cv_prog_gnu_ld" = yes; then
10786 soname_spec='${libname}${release}${shared_ext}$major'
10787 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10789 irix5* | nonstopux*)
10790 libsuff= shlibsuff=
10793 case $LD in # libtool.m4 will add one of these switches to LD
10794 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10795 libsuff= shlibsuff= libmagic=32-bit;;
10796 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10797 libsuff=32 shlibsuff=N32 libmagic=N32;;
10798 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10799 libsuff=64 shlibsuff=64 libmagic=64-bit;;
10800 *) libsuff= shlibsuff= libmagic=never-match;;
10804 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10805 shlibpath_overrides_runpath=no
10806 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10807 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10808 hardcode_into_libs=yes
10811 # No shared lib support for Linux oldld, aout, or coff.
10812 linux*oldld* | linux*aout* | linux*coff*)
10816 # This must be Linux ELF.
10817 linux* | k*bsd*-gnu | kopensolaris*-gnu)
10821 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10822 soname_spec='${libname}${release}${shared_ext}$major'
10823 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10824 shlibpath_var=LD_LIBRARY_PATH
10825 shlibpath_overrides_runpath=no
10827 # Some binutils ld are patched to set DT_RUNPATH
10828 if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
10829 $as_echo_n "(cached) " >&6
10831 lt_cv_shlibpath_overrides_runpath=no
10832 save_LDFLAGS=$LDFLAGS
10833 save_libdir=$libdir
10834 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10835 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10836 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10837 /* end confdefs.h. */
10847 if ac_fn_c_try_link "$LINENO"; then :
10848 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
10849 lt_cv_shlibpath_overrides_runpath=yes
10852 rm -f core conftest.err conftest.$ac_objext \
10853 conftest$ac_exeext conftest.$ac_ext
10854 LDFLAGS=$save_LDFLAGS
10855 libdir=$save_libdir
10859 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
10861 # This implies no fast_install, which is unacceptable.
10862 # Some rework will be needed to allow for fast_install
10863 # before this can be enabled.
10864 hardcode_into_libs=yes
10866 # Append ld.so.conf contents to the search path
10867 if test -f /etc/ld.so.conf; then
10868 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' ' '`
10869 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10872 # We used to test for /lib/ld.so.1 and disable shared libraries on
10873 # powerpc, because MkLinux only supported shared libraries with the
10874 # GNU dynamic linker. Since this was broken with cross compilers,
10875 # most powerpc-linux boxes support dynamic linking these days and
10876 # people can always --disable-shared, the test was removed, and we
10877 # assume the GNU/Linux dynamic linker is in use.
10878 dynamic_linker='GNU/Linux ld.so'
10885 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10886 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10887 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10888 dynamic_linker='NetBSD (a.out) ld.so'
10890 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10891 soname_spec='${libname}${release}${shared_ext}$major'
10892 dynamic_linker='NetBSD ld.elf_so'
10894 shlibpath_var=LD_LIBRARY_PATH
10895 shlibpath_overrides_runpath=yes
10896 hardcode_into_libs=yes
10901 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10902 shlibpath_var=LD_LIBRARY_PATH
10903 shlibpath_overrides_runpath=yes
10910 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10911 soname_spec='${libname}${release}${shared_ext}$major'
10912 shlibpath_var=LD_LIBRARY_PATH
10913 shlibpath_overrides_runpath=no
10914 hardcode_into_libs=yes
10915 dynamic_linker='ldqnx.so'
10920 sys_lib_dlsearch_path_spec="/usr/lib"
10922 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10924 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
10925 *) need_version=no ;;
10927 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10928 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10929 shlibpath_var=LD_LIBRARY_PATH
10930 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10932 openbsd2.[89] | openbsd2.[89].*)
10933 shlibpath_overrides_runpath=no
10936 shlibpath_overrides_runpath=yes
10940 shlibpath_overrides_runpath=yes
10945 libname_spec='$name'
10948 library_names_spec='$libname${shared_ext} $libname.a'
10949 dynamic_linker='OS/2 ld.exe'
10950 shlibpath_var=LIBPATH
10953 osf3* | osf4* | osf5*)
10957 soname_spec='${libname}${release}${shared_ext}$major'
10958 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10959 shlibpath_var=LD_LIBRARY_PATH
10960 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10961 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10972 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10973 soname_spec='${libname}${release}${shared_ext}$major'
10974 shlibpath_var=LD_LIBRARY_PATH
10975 shlibpath_overrides_runpath=yes
10976 hardcode_into_libs=yes
10977 # ldd complains unless libraries are executable
10978 postinstall_cmds='chmod +x $lib'
10983 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10984 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10985 shlibpath_var=LD_LIBRARY_PATH
10986 shlibpath_overrides_runpath=yes
10987 if test "$with_gnu_ld" = yes; then
10995 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10996 soname_spec='${libname}${release}${shared_ext}$major'
10997 shlibpath_var=LD_LIBRARY_PATH
10998 case $host_vendor in
11000 shlibpath_overrides_runpath=no
11002 runpath_var=LD_RUN_PATH
11010 shlibpath_overrides_runpath=no
11011 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11017 if test -d /usr/nec ;then
11019 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11020 soname_spec='$libname${shared_ext}.$major'
11021 shlibpath_var=LD_LIBRARY_PATH
11025 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11026 version_type=freebsd-elf
11029 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11030 soname_spec='${libname}${release}${shared_ext}$major'
11031 shlibpath_var=LD_LIBRARY_PATH
11032 shlibpath_overrides_runpath=yes
11033 hardcode_into_libs=yes
11034 if test "$with_gnu_ld" = yes; then
11035 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11037 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11040 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11044 sys_lib_dlsearch_path_spec='/usr/lib'
11048 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
11052 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11053 shlibpath_var=LD_LIBRARY_PATH
11054 shlibpath_overrides_runpath=no
11055 hardcode_into_libs=yes
11060 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11061 soname_spec='${libname}${release}${shared_ext}$major'
11062 shlibpath_var=LD_LIBRARY_PATH
11069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
11070 $as_echo "$dynamic_linker" >&6; }
11071 test "$dynamic_linker" = no && can_build_shared=no
11073 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11074 if test "$GCC" = yes; then
11075 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11078 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
11079 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
11081 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
11082 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
11176 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
11177 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
11179 if test -n "$hardcode_libdir_flag_spec" ||
11180 test -n "$runpath_var" ||
11181 test "X$hardcode_automatic" = "Xyes" ; then
11183 # We can hardcode non-existent directories.
11184 if test "$hardcode_direct" != no &&
11185 # If the only mechanism to avoid hardcoding is shlibpath_var, we
11186 # have to relink, otherwise we might link with an installed library
11187 # when we should be linking with a yet-to-be-installed one
11188 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
11189 test "$hardcode_minus_L" != no; then
11190 # Linking always hardcodes the temporary library directory.
11191 hardcode_action=relink
11193 # We can link without hardcoding, and we can hardcode nonexisting dirs.
11194 hardcode_action=immediate
11197 # We cannot hardcode anything, or else we can only hardcode existing
11199 hardcode_action=unsupported
11201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
11202 $as_echo "$hardcode_action" >&6; }
11204 if test "$hardcode_action" = relink ||
11205 test "$inherit_rpath" = yes; then
11206 # Fast installation is not supported
11207 enable_fast_install=no
11208 elif test "$shlibpath_overrides_runpath" = yes ||
11209 test "$enable_shared" = no; then
11210 # Fast installation is not necessary
11211 enable_fast_install=needless
11219 if test "x$enable_dlopen" != xyes; then
11220 enable_dlopen=unknown
11221 enable_dlopen_self=unknown
11222 enable_dlopen_self_static=unknown
11229 lt_cv_dlopen="load_add_on"
11231 lt_cv_dlopen_self=yes
11234 mingw* | pw32* | cegcc*)
11235 lt_cv_dlopen="LoadLibrary"
11240 lt_cv_dlopen="dlopen"
11245 # if libdl is installed we need to link against it
11246 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11247 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11248 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
11249 $as_echo_n "(cached) " >&6
11251 ac_check_lib_save_LIBS=$LIBS
11253 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11254 /* end confdefs.h. */
11256 /* Override any GCC internal prototype to avoid an error.
11257 Use char because int might match the return type of a GCC
11258 builtin and then its argument prototype would still apply. */
11271 if ac_fn_c_try_link "$LINENO"; then :
11272 ac_cv_lib_dl_dlopen=yes
11274 ac_cv_lib_dl_dlopen=no
11276 rm -f core conftest.err conftest.$ac_objext \
11277 conftest$ac_exeext conftest.$ac_ext
11278 LIBS=$ac_check_lib_save_LIBS
11280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11281 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11282 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
11283 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11286 lt_cv_dlopen="dyld"
11288 lt_cv_dlopen_self=yes
11295 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
11296 if test "x$ac_cv_func_shl_load" = x""yes; then :
11297 lt_cv_dlopen="shl_load"
11299 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
11300 $as_echo_n "checking for shl_load in -ldld... " >&6; }
11301 if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
11302 $as_echo_n "(cached) " >&6
11304 ac_check_lib_save_LIBS=$LIBS
11306 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11307 /* end confdefs.h. */
11309 /* Override any GCC internal prototype to avoid an error.
11310 Use char because int might match the return type of a GCC
11311 builtin and then its argument prototype would still apply. */
11319 return shl_load ();
11324 if ac_fn_c_try_link "$LINENO"; then :
11325 ac_cv_lib_dld_shl_load=yes
11327 ac_cv_lib_dld_shl_load=no
11329 rm -f core conftest.err conftest.$ac_objext \
11330 conftest$ac_exeext conftest.$ac_ext
11331 LIBS=$ac_check_lib_save_LIBS
11333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
11334 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
11335 if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
11336 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
11338 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
11339 if test "x$ac_cv_func_dlopen" = x""yes; then :
11340 lt_cv_dlopen="dlopen"
11342 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11343 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11344 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
11345 $as_echo_n "(cached) " >&6
11347 ac_check_lib_save_LIBS=$LIBS
11349 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11350 /* end confdefs.h. */
11352 /* Override any GCC internal prototype to avoid an error.
11353 Use char because int might match the return type of a GCC
11354 builtin and then its argument prototype would still apply. */
11367 if ac_fn_c_try_link "$LINENO"; then :
11368 ac_cv_lib_dl_dlopen=yes
11370 ac_cv_lib_dl_dlopen=no
11372 rm -f core conftest.err conftest.$ac_objext \
11373 conftest$ac_exeext conftest.$ac_ext
11374 LIBS=$ac_check_lib_save_LIBS
11376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11377 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11378 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
11379 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11381 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11382 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
11383 if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
11384 $as_echo_n "(cached) " >&6
11386 ac_check_lib_save_LIBS=$LIBS
11387 LIBS="-lsvld $LIBS"
11388 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11389 /* end confdefs.h. */
11391 /* Override any GCC internal prototype to avoid an error.
11392 Use char because int might match the return type of a GCC
11393 builtin and then its argument prototype would still apply. */
11406 if ac_fn_c_try_link "$LINENO"; then :
11407 ac_cv_lib_svld_dlopen=yes
11409 ac_cv_lib_svld_dlopen=no
11411 rm -f core conftest.err conftest.$ac_objext \
11412 conftest$ac_exeext conftest.$ac_ext
11413 LIBS=$ac_check_lib_save_LIBS
11415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11416 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11417 if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
11418 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11420 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11421 $as_echo_n "checking for dld_link in -ldld... " >&6; }
11422 if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
11423 $as_echo_n "(cached) " >&6
11425 ac_check_lib_save_LIBS=$LIBS
11427 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11428 /* end confdefs.h. */
11430 /* Override any GCC internal prototype to avoid an error.
11431 Use char because int might match the return type of a GCC
11432 builtin and then its argument prototype would still apply. */
11440 return dld_link ();
11445 if ac_fn_c_try_link "$LINENO"; then :
11446 ac_cv_lib_dld_dld_link=yes
11448 ac_cv_lib_dld_dld_link=no
11450 rm -f core conftest.err conftest.$ac_objext \
11451 conftest$ac_exeext conftest.$ac_ext
11452 LIBS=$ac_check_lib_save_LIBS
11454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11455 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11456 if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
11457 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
11478 if test "x$lt_cv_dlopen" != xno; then
11484 case $lt_cv_dlopen in
11486 save_CPPFLAGS="$CPPFLAGS"
11487 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11489 save_LDFLAGS="$LDFLAGS"
11490 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11493 LIBS="$lt_cv_dlopen_libs $LIBS"
11495 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
11496 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
11497 if test "${lt_cv_dlopen_self+set}" = set; then :
11498 $as_echo_n "(cached) " >&6
11500 if test "$cross_compiling" = yes; then :
11501 lt_cv_dlopen_self=cross
11503 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11504 lt_status=$lt_dlunknown
11505 cat > conftest.$ac_ext <<_LT_EOF
11506 #line $LINENO "configure"
11507 #include "confdefs.h"
11516 # define LT_DLGLOBAL RTLD_GLOBAL
11519 # define LT_DLGLOBAL DL_GLOBAL
11521 # define LT_DLGLOBAL 0
11525 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11526 find out it does not work in some platform. */
11527 #ifndef LT_DLLAZY_OR_NOW
11529 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11532 # define LT_DLLAZY_OR_NOW DL_LAZY
11535 # define LT_DLLAZY_OR_NOW RTLD_NOW
11538 # define LT_DLLAZY_OR_NOW DL_NOW
11540 # define LT_DLLAZY_OR_NOW 0
11547 /* When -fvisbility=hidden is used, assume the code has been annotated
11548 correspondingly for the symbols needed. */
11549 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11550 int fnord () __attribute__((visibility("default")));
11553 int fnord () { return 42; }
11556 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11557 int status = $lt_dlunknown;
11561 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11564 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11565 else puts (dlerror ());
11567 /* dlclose (self); */
11575 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11576 (eval $ac_link) 2>&5
11578 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11579 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11580 (./conftest; exit; ) >&5 2>/dev/null
11582 case x$lt_status in
11583 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11584 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11585 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11588 # compilation failed
11589 lt_cv_dlopen_self=no
11596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11597 $as_echo "$lt_cv_dlopen_self" >&6; }
11599 if test "x$lt_cv_dlopen_self" = xyes; then
11600 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11601 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11602 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11603 if test "${lt_cv_dlopen_self_static+set}" = set; then :
11604 $as_echo_n "(cached) " >&6
11606 if test "$cross_compiling" = yes; then :
11607 lt_cv_dlopen_self_static=cross
11609 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11610 lt_status=$lt_dlunknown
11611 cat > conftest.$ac_ext <<_LT_EOF
11612 #line $LINENO "configure"
11613 #include "confdefs.h"
11622 # define LT_DLGLOBAL RTLD_GLOBAL
11625 # define LT_DLGLOBAL DL_GLOBAL
11627 # define LT_DLGLOBAL 0
11631 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11632 find out it does not work in some platform. */
11633 #ifndef LT_DLLAZY_OR_NOW
11635 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11638 # define LT_DLLAZY_OR_NOW DL_LAZY
11641 # define LT_DLLAZY_OR_NOW RTLD_NOW
11644 # define LT_DLLAZY_OR_NOW DL_NOW
11646 # define LT_DLLAZY_OR_NOW 0
11653 /* When -fvisbility=hidden is used, assume the code has been annotated
11654 correspondingly for the symbols needed. */
11655 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11656 int fnord () __attribute__((visibility("default")));
11659 int fnord () { return 42; }
11662 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11663 int status = $lt_dlunknown;
11667 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11670 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11671 else puts (dlerror ());
11673 /* dlclose (self); */
11681 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11682 (eval $ac_link) 2>&5
11684 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11685 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11686 (./conftest; exit; ) >&5 2>/dev/null
11688 case x$lt_status in
11689 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11690 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11691 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11694 # compilation failed
11695 lt_cv_dlopen_self_static=no
11702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11703 $as_echo "$lt_cv_dlopen_self_static" >&6; }
11706 CPPFLAGS="$save_CPPFLAGS"
11707 LDFLAGS="$save_LDFLAGS"
11712 case $lt_cv_dlopen_self in
11713 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11714 *) enable_dlopen_self=unknown ;;
11717 case $lt_cv_dlopen_self_static in
11718 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11719 *) enable_dlopen_self_static=unknown ;;
11741 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11742 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
11743 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11744 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11745 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11747 $as_echo "yes" >&6; }
11749 # FIXME - insert some real tests, host_os isn't really good enough
11752 if test -n "$STRIP" ; then
11753 striplib="$STRIP -x"
11754 old_striplib="$STRIP -S"
11755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11756 $as_echo "yes" >&6; }
11758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11759 $as_echo "no" >&6; }
11763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11764 $as_echo "no" >&6; }
11780 # Report which library types will actually be built
11781 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
11782 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
11783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
11784 $as_echo "$can_build_shared" >&6; }
11786 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
11787 $as_echo_n "checking whether to build shared libraries... " >&6; }
11788 test "$can_build_shared" = "no" && enable_shared=no
11790 # On AIX, shared libraries and static libraries use the same namespace, and
11791 # are all built from PIC.
11794 test "$enable_shared" = yes && enable_static=no
11795 if test -n "$RANLIB"; then
11796 archive_cmds="$archive_cmds~\$RANLIB \$lib"
11797 postinstall_cmds='$RANLIB $lib'
11802 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11803 test "$enable_shared" = yes && enable_static=no
11807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
11808 $as_echo "$enable_shared" >&6; }
11810 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
11811 $as_echo_n "checking whether to build static libraries... " >&6; }
11812 # Make sure either enable_shared or enable_static is yes.
11813 test "$enable_shared" = yes || enable_static=yes
11814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
11815 $as_echo "$enable_static" >&6; }
11822 ac_cpp='$CPP $CPPFLAGS'
11823 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11824 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11825 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11841 ac_config_commands="$ac_config_commands libtool"
11846 # Only expand once:
11862 DX_PROJECT=xmltooling
11864 DX_CONFIG=doxygen.cfg
11869 # Environment variables used inside doxygen.cfg:
11870 DX_ENV="$DX_ENV SRCDIR='$srcdir'"
11872 DX_ENV="$DX_ENV PROJECT='$DX_PROJECT'"
11874 DX_ENV="$DX_ENV DOCDIR='$DX_DOCDIR'"
11876 DX_ENV="$DX_ENV VERSION='$PACKAGE_VERSION'"
11883 # Check whether --enable-doxygen-doc was given.
11884 if test "${enable_doxygen_doc+set}" = set; then :
11885 enableval=$enable_doxygen_doc;
11886 case "$enableval" in
11898 as_fn_error $? "invalid value '$enableval' given to doxygen-doc" "$LINENO" 5
11910 if test "$DX_FLAG_doc" = 1; then
11912 if test -n "$ac_tool_prefix"; then
11913 # Extract the first word of "${ac_tool_prefix}doxygen", so it can be a program name with args.
11914 set dummy ${ac_tool_prefix}doxygen; ac_word=$2
11915 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11916 $as_echo_n "checking for $ac_word... " >&6; }
11917 if test "${ac_cv_path_DX_DOXYGEN+set}" = set; then :
11918 $as_echo_n "(cached) " >&6
11920 case $DX_DOXYGEN in
11922 ac_cv_path_DX_DOXYGEN="$DX_DOXYGEN" # Let the user override the test with a path.
11925 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11926 for as_dir in $PATH
11929 test -z "$as_dir" && as_dir=.
11930 for ac_exec_ext in '' $ac_executable_extensions; do
11931 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11932 ac_cv_path_DX_DOXYGEN="$as_dir/$ac_word$ac_exec_ext"
11933 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11943 DX_DOXYGEN=$ac_cv_path_DX_DOXYGEN
11944 if test -n "$DX_DOXYGEN"; then
11945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DX_DOXYGEN" >&5
11946 $as_echo "$DX_DOXYGEN" >&6; }
11948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11949 $as_echo "no" >&6; }
11954 if test -z "$ac_cv_path_DX_DOXYGEN"; then
11955 ac_pt_DX_DOXYGEN=$DX_DOXYGEN
11956 # Extract the first word of "doxygen", so it can be a program name with args.
11957 set dummy doxygen; ac_word=$2
11958 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11959 $as_echo_n "checking for $ac_word... " >&6; }
11960 if test "${ac_cv_path_ac_pt_DX_DOXYGEN+set}" = set; then :
11961 $as_echo_n "(cached) " >&6
11963 case $ac_pt_DX_DOXYGEN in
11965 ac_cv_path_ac_pt_DX_DOXYGEN="$ac_pt_DX_DOXYGEN" # Let the user override the test with a path.
11968 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11969 for as_dir in $PATH
11972 test -z "$as_dir" && as_dir=.
11973 for ac_exec_ext in '' $ac_executable_extensions; do
11974 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11975 ac_cv_path_ac_pt_DX_DOXYGEN="$as_dir/$ac_word$ac_exec_ext"
11976 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11986 ac_pt_DX_DOXYGEN=$ac_cv_path_ac_pt_DX_DOXYGEN
11987 if test -n "$ac_pt_DX_DOXYGEN"; then
11988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_DX_DOXYGEN" >&5
11989 $as_echo "$ac_pt_DX_DOXYGEN" >&6; }
11991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11992 $as_echo "no" >&6; }
11995 if test "x$ac_pt_DX_DOXYGEN" = x; then
11998 case $cross_compiling:$ac_tool_warned in
12000 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12001 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12002 ac_tool_warned=yes ;;
12004 DX_DOXYGEN=$ac_pt_DX_DOXYGEN
12007 DX_DOXYGEN="$ac_cv_path_DX_DOXYGEN"
12010 if test "$DX_FLAG_doc$DX_DOXYGEN" = 1; then
12011 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: doxygen not found - will not generate any doxygen documentation" >&5
12012 $as_echo "$as_me: WARNING: doxygen not found - will not generate any doxygen documentation" >&2;}
12018 if test -n "$ac_tool_prefix"; then
12019 # Extract the first word of "${ac_tool_prefix}perl", so it can be a program name with args.
12020 set dummy ${ac_tool_prefix}perl; ac_word=$2
12021 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12022 $as_echo_n "checking for $ac_word... " >&6; }
12023 if test "${ac_cv_path_DX_PERL+set}" = set; then :
12024 $as_echo_n "(cached) " >&6
12028 ac_cv_path_DX_PERL="$DX_PERL" # Let the user override the test with a path.
12031 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12032 for as_dir in $PATH
12035 test -z "$as_dir" && as_dir=.
12036 for ac_exec_ext in '' $ac_executable_extensions; do
12037 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12038 ac_cv_path_DX_PERL="$as_dir/$ac_word$ac_exec_ext"
12039 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12049 DX_PERL=$ac_cv_path_DX_PERL
12050 if test -n "$DX_PERL"; then
12051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DX_PERL" >&5
12052 $as_echo "$DX_PERL" >&6; }
12054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12055 $as_echo "no" >&6; }
12060 if test -z "$ac_cv_path_DX_PERL"; then
12061 ac_pt_DX_PERL=$DX_PERL
12062 # Extract the first word of "perl", so it can be a program name with args.
12063 set dummy perl; ac_word=$2
12064 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12065 $as_echo_n "checking for $ac_word... " >&6; }
12066 if test "${ac_cv_path_ac_pt_DX_PERL+set}" = set; then :
12067 $as_echo_n "(cached) " >&6
12069 case $ac_pt_DX_PERL in
12071 ac_cv_path_ac_pt_DX_PERL="$ac_pt_DX_PERL" # Let the user override the test with a path.
12074 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12075 for as_dir in $PATH
12078 test -z "$as_dir" && as_dir=.
12079 for ac_exec_ext in '' $ac_executable_extensions; do
12080 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12081 ac_cv_path_ac_pt_DX_PERL="$as_dir/$ac_word$ac_exec_ext"
12082 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12092 ac_pt_DX_PERL=$ac_cv_path_ac_pt_DX_PERL
12093 if test -n "$ac_pt_DX_PERL"; then
12094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_DX_PERL" >&5
12095 $as_echo "$ac_pt_DX_PERL" >&6; }
12097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12098 $as_echo "no" >&6; }
12101 if test "x$ac_pt_DX_PERL" = x; then
12104 case $cross_compiling:$ac_tool_warned in
12106 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12107 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12108 ac_tool_warned=yes ;;
12110 DX_PERL=$ac_pt_DX_PERL
12113 DX_PERL="$ac_cv_path_DX_PERL"
12116 if test "$DX_FLAG_doc$DX_PERL" = 1; then
12117 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: perl not found - will not generate any doxygen documentation" >&5
12118 $as_echo "$as_me: WARNING: perl not found - will not generate any doxygen documentation" >&2;}
12125 if test "$DX_FLAG_doc" = 1; then
12128 DX_COND_doc_FALSE='#'
12130 DX_COND_doc_TRUE='#'
12134 DX_ENV="$DX_ENV PERL_PATH='$DX_PERL'"
12140 DX_COND_doc_FALSE='#'
12142 DX_COND_doc_TRUE='#'
12151 # Dot for graphics:
12155 # Check whether --enable-doxygen-dot was given.
12156 if test "${enable_doxygen_dot+set}" = set; then :
12157 enableval=$enable_doxygen_dot;
12158 case "$enableval" in
12164 test "$DX_FLAG_doc" = "1" \
12165 || as_fn_error $? "doxygen-dot requires doxygen-dot" "$LINENO" 5
12173 as_fn_error $? "invalid value '$enableval' given to doxygen-dot" "$LINENO" 5
12182 test "$DX_FLAG_doc" = "1" || DX_FLAG_dot=0
12188 if test "$DX_FLAG_dot" = 1; then
12190 if test -n "$ac_tool_prefix"; then
12191 # Extract the first word of "${ac_tool_prefix}dot", so it can be a program name with args.
12192 set dummy ${ac_tool_prefix}dot; ac_word=$2
12193 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12194 $as_echo_n "checking for $ac_word... " >&6; }
12195 if test "${ac_cv_path_DX_DOT+set}" = set; then :
12196 $as_echo_n "(cached) " >&6
12200 ac_cv_path_DX_DOT="$DX_DOT" # Let the user override the test with a path.
12203 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12204 for as_dir in $PATH
12207 test -z "$as_dir" && as_dir=.
12208 for ac_exec_ext in '' $ac_executable_extensions; do
12209 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12210 ac_cv_path_DX_DOT="$as_dir/$ac_word$ac_exec_ext"
12211 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12221 DX_DOT=$ac_cv_path_DX_DOT
12222 if test -n "$DX_DOT"; then
12223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DX_DOT" >&5
12224 $as_echo "$DX_DOT" >&6; }
12226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12227 $as_echo "no" >&6; }
12232 if test -z "$ac_cv_path_DX_DOT"; then
12233 ac_pt_DX_DOT=$DX_DOT
12234 # Extract the first word of "dot", so it can be a program name with args.
12235 set dummy dot; ac_word=$2
12236 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12237 $as_echo_n "checking for $ac_word... " >&6; }
12238 if test "${ac_cv_path_ac_pt_DX_DOT+set}" = set; then :
12239 $as_echo_n "(cached) " >&6
12241 case $ac_pt_DX_DOT in
12243 ac_cv_path_ac_pt_DX_DOT="$ac_pt_DX_DOT" # Let the user override the test with a path.
12246 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12247 for as_dir in $PATH
12250 test -z "$as_dir" && as_dir=.
12251 for ac_exec_ext in '' $ac_executable_extensions; do
12252 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12253 ac_cv_path_ac_pt_DX_DOT="$as_dir/$ac_word$ac_exec_ext"
12254 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12264 ac_pt_DX_DOT=$ac_cv_path_ac_pt_DX_DOT
12265 if test -n "$ac_pt_DX_DOT"; then
12266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_DX_DOT" >&5
12267 $as_echo "$ac_pt_DX_DOT" >&6; }
12269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12270 $as_echo "no" >&6; }
12273 if test "x$ac_pt_DX_DOT" = x; then
12276 case $cross_compiling:$ac_tool_warned in
12278 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12279 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12280 ac_tool_warned=yes ;;
12282 DX_DOT=$ac_pt_DX_DOT
12285 DX_DOT="$ac_cv_path_DX_DOT"
12288 if test "$DX_FLAG_dot$DX_DOT" = 1; then
12289 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: dot not found - will not generate graphics for doxygen documentation" >&5
12290 $as_echo "$as_me: WARNING: dot not found - will not generate graphics for doxygen documentation" >&2;}
12297 if test "$DX_FLAG_dot" = 1; then
12300 DX_COND_dot_FALSE='#'
12302 DX_COND_dot_TRUE='#'
12306 DX_ENV="$DX_ENV HAVE_DOT='YES'"
12308 DX_ENV="$DX_ENV DOT_PATH='`expr ".$DX_DOT" : '\(\.\)[^/]*$' \| "x$DX_DOT" : 'x\(.*\)/[^/]*$'`'"
12314 DX_COND_dot_FALSE='#'
12316 DX_COND_dot_TRUE='#'
12320 DX_ENV="$DX_ENV HAVE_DOT='NO'"
12326 # Man pages generation:
12330 # Check whether --enable-doxygen-man was given.
12331 if test "${enable_doxygen_man+set}" = set; then :
12332 enableval=$enable_doxygen_man;
12333 case "$enableval" in
12339 test "$DX_FLAG_doc" = "1" \
12340 || as_fn_error $? "doxygen-man requires doxygen-man" "$LINENO" 5
12348 as_fn_error $? "invalid value '$enableval' given to doxygen-man" "$LINENO" 5
12357 test "$DX_FLAG_doc" = "1" || DX_FLAG_man=0
12363 if test "$DX_FLAG_man" = 1; then
12367 if test "$DX_FLAG_man" = 1; then
12370 DX_COND_man_FALSE='#'
12372 DX_COND_man_TRUE='#'
12376 DX_ENV="$DX_ENV GENERATE_MAN='YES'"
12382 DX_COND_man_FALSE='#'
12384 DX_COND_man_TRUE='#'
12388 DX_ENV="$DX_ENV GENERATE_MAN='NO'"
12394 # RTF file generation:
12398 # Check whether --enable-doxygen-rtf was given.
12399 if test "${enable_doxygen_rtf+set}" = set; then :
12400 enableval=$enable_doxygen_rtf;
12401 case "$enableval" in
12407 test "$DX_FLAG_doc" = "1" \
12408 || as_fn_error $? "doxygen-rtf requires doxygen-rtf" "$LINENO" 5
12416 as_fn_error $? "invalid value '$enableval' given to doxygen-rtf" "$LINENO" 5
12425 test "$DX_FLAG_doc" = "1" || DX_FLAG_rtf=0
12431 if test "$DX_FLAG_rtf" = 1; then
12435 if test "$DX_FLAG_rtf" = 1; then
12438 DX_COND_rtf_FALSE='#'
12440 DX_COND_rtf_TRUE='#'
12444 DX_ENV="$DX_ENV GENERATE_RTF='YES'"
12450 DX_COND_rtf_FALSE='#'
12452 DX_COND_rtf_TRUE='#'
12456 DX_ENV="$DX_ENV GENERATE_RTF='NO'"
12462 # XML file generation:
12466 # Check whether --enable-doxygen-xml was given.
12467 if test "${enable_doxygen_xml+set}" = set; then :
12468 enableval=$enable_doxygen_xml;
12469 case "$enableval" in
12475 test "$DX_FLAG_doc" = "1" \
12476 || as_fn_error $? "doxygen-xml requires doxygen-xml" "$LINENO" 5
12484 as_fn_error $? "invalid value '$enableval' given to doxygen-xml" "$LINENO" 5
12493 test "$DX_FLAG_doc" = "1" || DX_FLAG_xml=0
12499 if test "$DX_FLAG_xml" = 1; then
12503 if test "$DX_FLAG_xml" = 1; then
12506 DX_COND_xml_FALSE='#'
12508 DX_COND_xml_TRUE='#'
12512 DX_ENV="$DX_ENV GENERATE_XML='YES'"
12518 DX_COND_xml_FALSE='#'
12520 DX_COND_xml_TRUE='#'
12524 DX_ENV="$DX_ENV GENERATE_XML='NO'"
12530 # (Compressed) HTML help generation:
12534 # Check whether --enable-doxygen-chm was given.
12535 if test "${enable_doxygen_chm+set}" = set; then :
12536 enableval=$enable_doxygen_chm;
12537 case "$enableval" in
12543 test "$DX_FLAG_doc" = "1" \
12544 || as_fn_error $? "doxygen-chm requires doxygen-chm" "$LINENO" 5
12552 as_fn_error $? "invalid value '$enableval' given to doxygen-chm" "$LINENO" 5
12561 test "$DX_FLAG_doc" = "1" || DX_FLAG_chm=0
12567 if test "$DX_FLAG_chm" = 1; then
12569 if test -n "$ac_tool_prefix"; then
12570 # Extract the first word of "${ac_tool_prefix}hhc", so it can be a program name with args.
12571 set dummy ${ac_tool_prefix}hhc; ac_word=$2
12572 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12573 $as_echo_n "checking for $ac_word... " >&6; }
12574 if test "${ac_cv_path_DX_HHC+set}" = set; then :
12575 $as_echo_n "(cached) " >&6
12579 ac_cv_path_DX_HHC="$DX_HHC" # Let the user override the test with a path.
12582 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12583 for as_dir in $PATH
12586 test -z "$as_dir" && as_dir=.
12587 for ac_exec_ext in '' $ac_executable_extensions; do
12588 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12589 ac_cv_path_DX_HHC="$as_dir/$ac_word$ac_exec_ext"
12590 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12600 DX_HHC=$ac_cv_path_DX_HHC
12601 if test -n "$DX_HHC"; then
12602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DX_HHC" >&5
12603 $as_echo "$DX_HHC" >&6; }
12605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12606 $as_echo "no" >&6; }
12611 if test -z "$ac_cv_path_DX_HHC"; then
12612 ac_pt_DX_HHC=$DX_HHC
12613 # Extract the first word of "hhc", so it can be a program name with args.
12614 set dummy hhc; ac_word=$2
12615 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12616 $as_echo_n "checking for $ac_word... " >&6; }
12617 if test "${ac_cv_path_ac_pt_DX_HHC+set}" = set; then :
12618 $as_echo_n "(cached) " >&6
12620 case $ac_pt_DX_HHC in
12622 ac_cv_path_ac_pt_DX_HHC="$ac_pt_DX_HHC" # Let the user override the test with a path.
12625 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12626 for as_dir in $PATH
12629 test -z "$as_dir" && as_dir=.
12630 for ac_exec_ext in '' $ac_executable_extensions; do
12631 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12632 ac_cv_path_ac_pt_DX_HHC="$as_dir/$ac_word$ac_exec_ext"
12633 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12643 ac_pt_DX_HHC=$ac_cv_path_ac_pt_DX_HHC
12644 if test -n "$ac_pt_DX_HHC"; then
12645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_DX_HHC" >&5
12646 $as_echo "$ac_pt_DX_HHC" >&6; }
12648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12649 $as_echo "no" >&6; }
12652 if test "x$ac_pt_DX_HHC" = x; then
12655 case $cross_compiling:$ac_tool_warned in
12657 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12658 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12659 ac_tool_warned=yes ;;
12661 DX_HHC=$ac_pt_DX_HHC
12664 DX_HHC="$ac_cv_path_DX_HHC"
12667 if test "$DX_FLAG_chm$DX_HHC" = 1; then
12668 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: hhc not found - will not generate doxygen compressed HTML help documentation" >&5
12669 $as_echo "$as_me: WARNING: hhc not found - will not generate doxygen compressed HTML help documentation" >&2;}
12676 if test "$DX_FLAG_chm" = 1; then
12679 DX_COND_chm_FALSE='#'
12681 DX_COND_chm_TRUE='#'
12685 DX_ENV="$DX_ENV HHC_PATH='$DX_HHC'"
12687 DX_ENV="$DX_ENV GENERATE_HTML='YES'"
12689 DX_ENV="$DX_ENV GENERATE_HTMLHELP='YES'"
12695 DX_COND_chm_FALSE='#'
12697 DX_COND_chm_TRUE='#'
12701 DX_ENV="$DX_ENV GENERATE_HTMLHELP='NO'"
12707 # Seperate CHI file generation.
12711 # Check whether --enable-doxygen-chi was given.
12712 if test "${enable_doxygen_chi+set}" = set; then :
12713 enableval=$enable_doxygen_chi;
12714 case "$enableval" in
12720 test "$DX_FLAG_chm" = "1" \
12721 || as_fn_error $? "doxygen-chi requires doxygen-chi" "$LINENO" 5
12729 as_fn_error $? "invalid value '$enableval' given to doxygen-chi" "$LINENO" 5
12738 test "$DX_FLAG_chm" = "1" || DX_FLAG_chi=0
12744 if test "$DX_FLAG_chi" = 1; then
12748 if test "$DX_FLAG_chi" = 1; then
12751 DX_COND_chi_FALSE='#'
12753 DX_COND_chi_TRUE='#'
12757 DX_ENV="$DX_ENV GENERATE_CHI='YES'"
12763 DX_COND_chi_FALSE='#'
12765 DX_COND_chi_TRUE='#'
12769 DX_ENV="$DX_ENV GENERATE_CHI='NO'"
12775 # Plain HTML pages generation:
12779 # Check whether --enable-doxygen-html was given.
12780 if test "${enable_doxygen_html+set}" = set; then :
12781 enableval=$enable_doxygen_html;
12782 case "$enableval" in
12788 test "$DX_FLAG_doc" = "1" \
12789 || as_fn_error $? "doxygen-html requires doxygen-html" "$LINENO" 5
12791 test "$DX_FLAG_chm" = "0" \
12792 || as_fn_error $? "doxygen-html contradicts doxygen-html" "$LINENO" 5
12800 as_fn_error $? "invalid value '$enableval' given to doxygen-html" "$LINENO" 5
12809 test "$DX_FLAG_doc" = "1" || DX_FLAG_html=0
12812 test "$DX_FLAG_chm" = "0" || DX_FLAG_html=0
12818 if test "$DX_FLAG_html" = 1; then
12822 if test "$DX_FLAG_html" = 1; then
12825 DX_COND_html_FALSE='#'
12827 DX_COND_html_TRUE='#'
12828 DX_COND_html_FALSE=
12831 DX_ENV="$DX_ENV GENERATE_HTML='YES'"
12837 DX_COND_html_FALSE='#'
12839 DX_COND_html_TRUE='#'
12840 DX_COND_html_FALSE=
12843 test "$DX_FLAG_chm" = 1 || DX_ENV="$DX_ENV GENERATE_HTML='NO'"
12849 # PostScript file generation:
12853 # Check whether --enable-doxygen-ps was given.
12854 if test "${enable_doxygen_ps+set}" = set; then :
12855 enableval=$enable_doxygen_ps;
12856 case "$enableval" in
12862 test "$DX_FLAG_doc" = "1" \
12863 || as_fn_error $? "doxygen-ps requires doxygen-ps" "$LINENO" 5
12871 as_fn_error $? "invalid value '$enableval' given to doxygen-ps" "$LINENO" 5
12880 test "$DX_FLAG_doc" = "1" || DX_FLAG_ps=0
12886 if test "$DX_FLAG_ps" = 1; then
12888 if test -n "$ac_tool_prefix"; then
12889 # Extract the first word of "${ac_tool_prefix}latex", so it can be a program name with args.
12890 set dummy ${ac_tool_prefix}latex; ac_word=$2
12891 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12892 $as_echo_n "checking for $ac_word... " >&6; }
12893 if test "${ac_cv_path_DX_LATEX+set}" = set; then :
12894 $as_echo_n "(cached) " >&6
12898 ac_cv_path_DX_LATEX="$DX_LATEX" # Let the user override the test with a path.
12901 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12902 for as_dir in $PATH
12905 test -z "$as_dir" && as_dir=.
12906 for ac_exec_ext in '' $ac_executable_extensions; do
12907 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12908 ac_cv_path_DX_LATEX="$as_dir/$ac_word$ac_exec_ext"
12909 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12919 DX_LATEX=$ac_cv_path_DX_LATEX
12920 if test -n "$DX_LATEX"; then
12921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DX_LATEX" >&5
12922 $as_echo "$DX_LATEX" >&6; }
12924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12925 $as_echo "no" >&6; }
12930 if test -z "$ac_cv_path_DX_LATEX"; then
12931 ac_pt_DX_LATEX=$DX_LATEX
12932 # Extract the first word of "latex", so it can be a program name with args.
12933 set dummy latex; ac_word=$2
12934 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12935 $as_echo_n "checking for $ac_word... " >&6; }
12936 if test "${ac_cv_path_ac_pt_DX_LATEX+set}" = set; then :
12937 $as_echo_n "(cached) " >&6
12939 case $ac_pt_DX_LATEX in
12941 ac_cv_path_ac_pt_DX_LATEX="$ac_pt_DX_LATEX" # Let the user override the test with a path.
12944 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12945 for as_dir in $PATH
12948 test -z "$as_dir" && as_dir=.
12949 for ac_exec_ext in '' $ac_executable_extensions; do
12950 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12951 ac_cv_path_ac_pt_DX_LATEX="$as_dir/$ac_word$ac_exec_ext"
12952 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12962 ac_pt_DX_LATEX=$ac_cv_path_ac_pt_DX_LATEX
12963 if test -n "$ac_pt_DX_LATEX"; then
12964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_DX_LATEX" >&5
12965 $as_echo "$ac_pt_DX_LATEX" >&6; }
12967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12968 $as_echo "no" >&6; }
12971 if test "x$ac_pt_DX_LATEX" = x; then
12974 case $cross_compiling:$ac_tool_warned in
12976 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12977 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12978 ac_tool_warned=yes ;;
12980 DX_LATEX=$ac_pt_DX_LATEX
12983 DX_LATEX="$ac_cv_path_DX_LATEX"
12986 if test "$DX_FLAG_ps$DX_LATEX" = 1; then
12987 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: latex not found - will not generate doxygen PostScript documentation" >&5
12988 $as_echo "$as_me: WARNING: latex not found - will not generate doxygen PostScript documentation" >&2;}
12994 if test -n "$ac_tool_prefix"; then
12995 # Extract the first word of "${ac_tool_prefix}makeindex", so it can be a program name with args.
12996 set dummy ${ac_tool_prefix}makeindex; ac_word=$2
12997 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12998 $as_echo_n "checking for $ac_word... " >&6; }
12999 if test "${ac_cv_path_DX_MAKEINDEX+set}" = set; then :
13000 $as_echo_n "(cached) " >&6
13002 case $DX_MAKEINDEX in
13004 ac_cv_path_DX_MAKEINDEX="$DX_MAKEINDEX" # Let the user override the test with a path.
13007 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13008 for as_dir in $PATH
13011 test -z "$as_dir" && as_dir=.
13012 for ac_exec_ext in '' $ac_executable_extensions; do
13013 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13014 ac_cv_path_DX_MAKEINDEX="$as_dir/$ac_word$ac_exec_ext"
13015 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13025 DX_MAKEINDEX=$ac_cv_path_DX_MAKEINDEX
13026 if test -n "$DX_MAKEINDEX"; then
13027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DX_MAKEINDEX" >&5
13028 $as_echo "$DX_MAKEINDEX" >&6; }
13030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13031 $as_echo "no" >&6; }
13036 if test -z "$ac_cv_path_DX_MAKEINDEX"; then
13037 ac_pt_DX_MAKEINDEX=$DX_MAKEINDEX
13038 # Extract the first word of "makeindex", so it can be a program name with args.
13039 set dummy makeindex; ac_word=$2
13040 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13041 $as_echo_n "checking for $ac_word... " >&6; }
13042 if test "${ac_cv_path_ac_pt_DX_MAKEINDEX+set}" = set; then :
13043 $as_echo_n "(cached) " >&6
13045 case $ac_pt_DX_MAKEINDEX in
13047 ac_cv_path_ac_pt_DX_MAKEINDEX="$ac_pt_DX_MAKEINDEX" # Let the user override the test with a path.
13050 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13051 for as_dir in $PATH
13054 test -z "$as_dir" && as_dir=.
13055 for ac_exec_ext in '' $ac_executable_extensions; do
13056 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13057 ac_cv_path_ac_pt_DX_MAKEINDEX="$as_dir/$ac_word$ac_exec_ext"
13058 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13068 ac_pt_DX_MAKEINDEX=$ac_cv_path_ac_pt_DX_MAKEINDEX
13069 if test -n "$ac_pt_DX_MAKEINDEX"; then
13070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_DX_MAKEINDEX" >&5
13071 $as_echo "$ac_pt_DX_MAKEINDEX" >&6; }
13073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13074 $as_echo "no" >&6; }
13077 if test "x$ac_pt_DX_MAKEINDEX" = x; then
13080 case $cross_compiling:$ac_tool_warned in
13082 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13083 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13084 ac_tool_warned=yes ;;
13086 DX_MAKEINDEX=$ac_pt_DX_MAKEINDEX
13089 DX_MAKEINDEX="$ac_cv_path_DX_MAKEINDEX"
13092 if test "$DX_FLAG_ps$DX_MAKEINDEX" = 1; then
13093 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: makeindex not found - will not generate doxygen PostScript documentation" >&5
13094 $as_echo "$as_me: WARNING: makeindex not found - will not generate doxygen PostScript documentation" >&2;}
13100 if test -n "$ac_tool_prefix"; then
13101 # Extract the first word of "${ac_tool_prefix}dvips", so it can be a program name with args.
13102 set dummy ${ac_tool_prefix}dvips; ac_word=$2
13103 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13104 $as_echo_n "checking for $ac_word... " >&6; }
13105 if test "${ac_cv_path_DX_DVIPS+set}" = set; then :
13106 $as_echo_n "(cached) " >&6
13110 ac_cv_path_DX_DVIPS="$DX_DVIPS" # Let the user override the test with a path.
13113 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13114 for as_dir in $PATH
13117 test -z "$as_dir" && as_dir=.
13118 for ac_exec_ext in '' $ac_executable_extensions; do
13119 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13120 ac_cv_path_DX_DVIPS="$as_dir/$ac_word$ac_exec_ext"
13121 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13131 DX_DVIPS=$ac_cv_path_DX_DVIPS
13132 if test -n "$DX_DVIPS"; then
13133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DX_DVIPS" >&5
13134 $as_echo "$DX_DVIPS" >&6; }
13136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13137 $as_echo "no" >&6; }
13142 if test -z "$ac_cv_path_DX_DVIPS"; then
13143 ac_pt_DX_DVIPS=$DX_DVIPS
13144 # Extract the first word of "dvips", so it can be a program name with args.
13145 set dummy dvips; ac_word=$2
13146 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13147 $as_echo_n "checking for $ac_word... " >&6; }
13148 if test "${ac_cv_path_ac_pt_DX_DVIPS+set}" = set; then :
13149 $as_echo_n "(cached) " >&6
13151 case $ac_pt_DX_DVIPS in
13153 ac_cv_path_ac_pt_DX_DVIPS="$ac_pt_DX_DVIPS" # Let the user override the test with a path.
13156 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13157 for as_dir in $PATH
13160 test -z "$as_dir" && as_dir=.
13161 for ac_exec_ext in '' $ac_executable_extensions; do
13162 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13163 ac_cv_path_ac_pt_DX_DVIPS="$as_dir/$ac_word$ac_exec_ext"
13164 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13174 ac_pt_DX_DVIPS=$ac_cv_path_ac_pt_DX_DVIPS
13175 if test -n "$ac_pt_DX_DVIPS"; then
13176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_DX_DVIPS" >&5
13177 $as_echo "$ac_pt_DX_DVIPS" >&6; }
13179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13180 $as_echo "no" >&6; }
13183 if test "x$ac_pt_DX_DVIPS" = x; then
13186 case $cross_compiling:$ac_tool_warned in
13188 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13189 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13190 ac_tool_warned=yes ;;
13192 DX_DVIPS=$ac_pt_DX_DVIPS
13195 DX_DVIPS="$ac_cv_path_DX_DVIPS"
13198 if test "$DX_FLAG_ps$DX_DVIPS" = 1; then
13199 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: dvips not found - will not generate doxygen PostScript documentation" >&5
13200 $as_echo "$as_me: WARNING: dvips not found - will not generate doxygen PostScript documentation" >&2;}
13206 if test -n "$ac_tool_prefix"; then
13207 # Extract the first word of "${ac_tool_prefix}egrep", so it can be a program name with args.
13208 set dummy ${ac_tool_prefix}egrep; ac_word=$2
13209 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13210 $as_echo_n "checking for $ac_word... " >&6; }
13211 if test "${ac_cv_path_DX_EGREP+set}" = set; then :
13212 $as_echo_n "(cached) " >&6
13216 ac_cv_path_DX_EGREP="$DX_EGREP" # Let the user override the test with a path.
13219 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13220 for as_dir in $PATH
13223 test -z "$as_dir" && as_dir=.
13224 for ac_exec_ext in '' $ac_executable_extensions; do
13225 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13226 ac_cv_path_DX_EGREP="$as_dir/$ac_word$ac_exec_ext"
13227 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13237 DX_EGREP=$ac_cv_path_DX_EGREP
13238 if test -n "$DX_EGREP"; then
13239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DX_EGREP" >&5
13240 $as_echo "$DX_EGREP" >&6; }
13242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13243 $as_echo "no" >&6; }
13248 if test -z "$ac_cv_path_DX_EGREP"; then
13249 ac_pt_DX_EGREP=$DX_EGREP
13250 # Extract the first word of "egrep", so it can be a program name with args.
13251 set dummy egrep; ac_word=$2
13252 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13253 $as_echo_n "checking for $ac_word... " >&6; }
13254 if test "${ac_cv_path_ac_pt_DX_EGREP+set}" = set; then :
13255 $as_echo_n "(cached) " >&6
13257 case $ac_pt_DX_EGREP in
13259 ac_cv_path_ac_pt_DX_EGREP="$ac_pt_DX_EGREP" # Let the user override the test with a path.
13262 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13263 for as_dir in $PATH
13266 test -z "$as_dir" && as_dir=.
13267 for ac_exec_ext in '' $ac_executable_extensions; do
13268 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13269 ac_cv_path_ac_pt_DX_EGREP="$as_dir/$ac_word$ac_exec_ext"
13270 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13280 ac_pt_DX_EGREP=$ac_cv_path_ac_pt_DX_EGREP
13281 if test -n "$ac_pt_DX_EGREP"; then
13282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_DX_EGREP" >&5
13283 $as_echo "$ac_pt_DX_EGREP" >&6; }
13285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13286 $as_echo "no" >&6; }
13289 if test "x$ac_pt_DX_EGREP" = x; then
13292 case $cross_compiling:$ac_tool_warned in
13294 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13295 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13296 ac_tool_warned=yes ;;
13298 DX_EGREP=$ac_pt_DX_EGREP
13301 DX_EGREP="$ac_cv_path_DX_EGREP"
13304 if test "$DX_FLAG_ps$DX_EGREP" = 1; then
13305 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: egrep not found - will not generate doxygen PostScript documentation" >&5
13306 $as_echo "$as_me: WARNING: egrep not found - will not generate doxygen PostScript documentation" >&2;}
13313 if test "$DX_FLAG_ps" = 1; then
13316 DX_COND_ps_FALSE='#'
13318 DX_COND_ps_TRUE='#'
13327 DX_COND_ps_FALSE='#'
13329 DX_COND_ps_TRUE='#'
13338 # PDF file generation:
13342 # Check whether --enable-doxygen-pdf was given.
13343 if test "${enable_doxygen_pdf+set}" = set; then :
13344 enableval=$enable_doxygen_pdf;
13345 case "$enableval" in
13351 test "$DX_FLAG_doc" = "1" \
13352 || as_fn_error $? "doxygen-pdf requires doxygen-pdf" "$LINENO" 5
13360 as_fn_error $? "invalid value '$enableval' given to doxygen-pdf" "$LINENO" 5
13369 test "$DX_FLAG_doc" = "1" || DX_FLAG_pdf=0
13375 if test "$DX_FLAG_pdf" = 1; then
13377 if test -n "$ac_tool_prefix"; then
13378 # Extract the first word of "${ac_tool_prefix}pdflatex", so it can be a program name with args.
13379 set dummy ${ac_tool_prefix}pdflatex; ac_word=$2
13380 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13381 $as_echo_n "checking for $ac_word... " >&6; }
13382 if test "${ac_cv_path_DX_PDFLATEX+set}" = set; then :
13383 $as_echo_n "(cached) " >&6
13385 case $DX_PDFLATEX in
13387 ac_cv_path_DX_PDFLATEX="$DX_PDFLATEX" # Let the user override the test with a path.
13390 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13391 for as_dir in $PATH
13394 test -z "$as_dir" && as_dir=.
13395 for ac_exec_ext in '' $ac_executable_extensions; do
13396 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13397 ac_cv_path_DX_PDFLATEX="$as_dir/$ac_word$ac_exec_ext"
13398 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13408 DX_PDFLATEX=$ac_cv_path_DX_PDFLATEX
13409 if test -n "$DX_PDFLATEX"; then
13410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DX_PDFLATEX" >&5
13411 $as_echo "$DX_PDFLATEX" >&6; }
13413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13414 $as_echo "no" >&6; }
13419 if test -z "$ac_cv_path_DX_PDFLATEX"; then
13420 ac_pt_DX_PDFLATEX=$DX_PDFLATEX
13421 # Extract the first word of "pdflatex", so it can be a program name with args.
13422 set dummy pdflatex; ac_word=$2
13423 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13424 $as_echo_n "checking for $ac_word... " >&6; }
13425 if test "${ac_cv_path_ac_pt_DX_PDFLATEX+set}" = set; then :
13426 $as_echo_n "(cached) " >&6
13428 case $ac_pt_DX_PDFLATEX in
13430 ac_cv_path_ac_pt_DX_PDFLATEX="$ac_pt_DX_PDFLATEX" # Let the user override the test with a path.
13433 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13434 for as_dir in $PATH
13437 test -z "$as_dir" && as_dir=.
13438 for ac_exec_ext in '' $ac_executable_extensions; do
13439 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13440 ac_cv_path_ac_pt_DX_PDFLATEX="$as_dir/$ac_word$ac_exec_ext"
13441 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13451 ac_pt_DX_PDFLATEX=$ac_cv_path_ac_pt_DX_PDFLATEX
13452 if test -n "$ac_pt_DX_PDFLATEX"; then
13453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_DX_PDFLATEX" >&5
13454 $as_echo "$ac_pt_DX_PDFLATEX" >&6; }
13456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13457 $as_echo "no" >&6; }
13460 if test "x$ac_pt_DX_PDFLATEX" = x; then
13463 case $cross_compiling:$ac_tool_warned in
13465 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13466 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13467 ac_tool_warned=yes ;;
13469 DX_PDFLATEX=$ac_pt_DX_PDFLATEX
13472 DX_PDFLATEX="$ac_cv_path_DX_PDFLATEX"
13475 if test "$DX_FLAG_pdf$DX_PDFLATEX" = 1; then
13476 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: pdflatex not found - will not generate doxygen PDF documentation" >&5
13477 $as_echo "$as_me: WARNING: pdflatex not found - will not generate doxygen PDF documentation" >&2;}
13483 if test -n "$ac_tool_prefix"; then
13484 # Extract the first word of "${ac_tool_prefix}makeindex", so it can be a program name with args.
13485 set dummy ${ac_tool_prefix}makeindex; ac_word=$2
13486 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13487 $as_echo_n "checking for $ac_word... " >&6; }
13488 if test "${ac_cv_path_DX_MAKEINDEX+set}" = set; then :
13489 $as_echo_n "(cached) " >&6
13491 case $DX_MAKEINDEX in
13493 ac_cv_path_DX_MAKEINDEX="$DX_MAKEINDEX" # Let the user override the test with a path.
13496 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13497 for as_dir in $PATH
13500 test -z "$as_dir" && as_dir=.
13501 for ac_exec_ext in '' $ac_executable_extensions; do
13502 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13503 ac_cv_path_DX_MAKEINDEX="$as_dir/$ac_word$ac_exec_ext"
13504 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13514 DX_MAKEINDEX=$ac_cv_path_DX_MAKEINDEX
13515 if test -n "$DX_MAKEINDEX"; then
13516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DX_MAKEINDEX" >&5
13517 $as_echo "$DX_MAKEINDEX" >&6; }
13519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13520 $as_echo "no" >&6; }
13525 if test -z "$ac_cv_path_DX_MAKEINDEX"; then
13526 ac_pt_DX_MAKEINDEX=$DX_MAKEINDEX
13527 # Extract the first word of "makeindex", so it can be a program name with args.
13528 set dummy makeindex; ac_word=$2
13529 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13530 $as_echo_n "checking for $ac_word... " >&6; }
13531 if test "${ac_cv_path_ac_pt_DX_MAKEINDEX+set}" = set; then :
13532 $as_echo_n "(cached) " >&6
13534 case $ac_pt_DX_MAKEINDEX in
13536 ac_cv_path_ac_pt_DX_MAKEINDEX="$ac_pt_DX_MAKEINDEX" # Let the user override the test with a path.
13539 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13540 for as_dir in $PATH
13543 test -z "$as_dir" && as_dir=.
13544 for ac_exec_ext in '' $ac_executable_extensions; do
13545 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13546 ac_cv_path_ac_pt_DX_MAKEINDEX="$as_dir/$ac_word$ac_exec_ext"
13547 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13557 ac_pt_DX_MAKEINDEX=$ac_cv_path_ac_pt_DX_MAKEINDEX
13558 if test -n "$ac_pt_DX_MAKEINDEX"; then
13559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_DX_MAKEINDEX" >&5
13560 $as_echo "$ac_pt_DX_MAKEINDEX" >&6; }
13562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13563 $as_echo "no" >&6; }
13566 if test "x$ac_pt_DX_MAKEINDEX" = x; then
13569 case $cross_compiling:$ac_tool_warned in
13571 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13572 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13573 ac_tool_warned=yes ;;
13575 DX_MAKEINDEX=$ac_pt_DX_MAKEINDEX
13578 DX_MAKEINDEX="$ac_cv_path_DX_MAKEINDEX"
13581 if test "$DX_FLAG_pdf$DX_MAKEINDEX" = 1; then
13582 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: makeindex not found - will not generate doxygen PDF documentation" >&5
13583 $as_echo "$as_me: WARNING: makeindex not found - will not generate doxygen PDF documentation" >&2;}
13589 if test -n "$ac_tool_prefix"; then
13590 # Extract the first word of "${ac_tool_prefix}egrep", so it can be a program name with args.
13591 set dummy ${ac_tool_prefix}egrep; ac_word=$2
13592 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13593 $as_echo_n "checking for $ac_word... " >&6; }
13594 if test "${ac_cv_path_DX_EGREP+set}" = set; then :
13595 $as_echo_n "(cached) " >&6
13599 ac_cv_path_DX_EGREP="$DX_EGREP" # Let the user override the test with a path.
13602 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13603 for as_dir in $PATH
13606 test -z "$as_dir" && as_dir=.
13607 for ac_exec_ext in '' $ac_executable_extensions; do
13608 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13609 ac_cv_path_DX_EGREP="$as_dir/$ac_word$ac_exec_ext"
13610 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13620 DX_EGREP=$ac_cv_path_DX_EGREP
13621 if test -n "$DX_EGREP"; then
13622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DX_EGREP" >&5
13623 $as_echo "$DX_EGREP" >&6; }
13625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13626 $as_echo "no" >&6; }
13631 if test -z "$ac_cv_path_DX_EGREP"; then
13632 ac_pt_DX_EGREP=$DX_EGREP
13633 # Extract the first word of "egrep", so it can be a program name with args.
13634 set dummy egrep; ac_word=$2
13635 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13636 $as_echo_n "checking for $ac_word... " >&6; }
13637 if test "${ac_cv_path_ac_pt_DX_EGREP+set}" = set; then :
13638 $as_echo_n "(cached) " >&6
13640 case $ac_pt_DX_EGREP in
13642 ac_cv_path_ac_pt_DX_EGREP="$ac_pt_DX_EGREP" # Let the user override the test with a path.
13645 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13646 for as_dir in $PATH
13649 test -z "$as_dir" && as_dir=.
13650 for ac_exec_ext in '' $ac_executable_extensions; do
13651 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13652 ac_cv_path_ac_pt_DX_EGREP="$as_dir/$ac_word$ac_exec_ext"
13653 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13663 ac_pt_DX_EGREP=$ac_cv_path_ac_pt_DX_EGREP
13664 if test -n "$ac_pt_DX_EGREP"; then
13665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_DX_EGREP" >&5
13666 $as_echo "$ac_pt_DX_EGREP" >&6; }
13668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13669 $as_echo "no" >&6; }
13672 if test "x$ac_pt_DX_EGREP" = x; then
13675 case $cross_compiling:$ac_tool_warned in
13677 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13678 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13679 ac_tool_warned=yes ;;
13681 DX_EGREP=$ac_pt_DX_EGREP
13684 DX_EGREP="$ac_cv_path_DX_EGREP"
13687 if test "$DX_FLAG_pdf$DX_EGREP" = 1; then
13688 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: egrep not found - will not generate doxygen PDF documentation" >&5
13689 $as_echo "$as_me: WARNING: egrep not found - will not generate doxygen PDF documentation" >&2;}
13696 if test "$DX_FLAG_pdf" = 1; then
13699 DX_COND_pdf_FALSE='#'
13701 DX_COND_pdf_TRUE='#'
13710 DX_COND_pdf_FALSE='#'
13712 DX_COND_pdf_TRUE='#'
13721 # LaTeX generation for PS and/or PDF:
13722 if test "$DX_FLAG_ps" = 1 || test "$DX_FLAG_pdf" = 1; then
13724 DX_COND_latex_TRUE=
13725 DX_COND_latex_FALSE='#'
13727 DX_COND_latex_TRUE='#'
13728 DX_COND_latex_FALSE=
13731 DX_ENV="$DX_ENV GENERATE_LATEX='YES'"
13735 DX_COND_latex_TRUE=
13736 DX_COND_latex_FALSE='#'
13738 DX_COND_latex_TRUE='#'
13739 DX_COND_latex_FALSE=
13742 DX_ENV="$DX_ENV GENERATE_LATEX='NO'"
13746 # Paper size for PS and/or PDF:
13748 case "$DOXYGEN_PAPER_SIZE" in
13751 DOXYGEN_PAPER_SIZE=""
13754 a4wide|a4|letter|legal|executive)
13755 DX_ENV="$DX_ENV PAPER_SIZE='$DOXYGEN_PAPER_SIZE'"
13759 as_fn_error $? "unknown DOXYGEN_PAPER_SIZE='$DOXYGEN_PAPER_SIZE'" "$LINENO" 5
13764 #echo DX_FLAG_doc=$DX_FLAG_doc
13765 #echo DX_FLAG_dot=$DX_FLAG_dot
13766 #echo DX_FLAG_man=$DX_FLAG_man
13767 #echo DX_FLAG_html=$DX_FLAG_html
13768 #echo DX_FLAG_chm=$DX_FLAG_chm
13769 #echo DX_FLAG_chi=$DX_FLAG_chi
13770 #echo DX_FLAG_rtf=$DX_FLAG_rtf
13771 #echo DX_FLAG_xml=$DX_FLAG_xml
13772 #echo DX_FLAG_pdf=$DX_FLAG_pdf
13773 #echo DX_FLAG_ps=$DX_FLAG_ps
13774 #echo DX_ENV=$DX_ENV
13777 # Check whether --enable-debug was given.
13778 if test "${enable_debug+set}" = set; then :
13779 enableval=$enable_debug; enable_debug=$enableval
13785 if test "$enable_debug" = "yes" ; then
13786 GCC_CFLAGS="$CFLAGS -g -D_DEBUG"
13787 GCC_CXXFLAGS="$CXXFLAGS -g -D_DEBUG"
13789 GCC_CFLAGS="$CFLAGS -O2 -DNDEBUG"
13790 GCC_CXXFLAGS="$CXXFLAGS -O2 -DNDEBUG"
13793 ac_config_headers="$ac_config_headers config.h xmltooling/config_pub.h"
13795 ac_config_files="$ac_config_files xmltooling.spec pkginfo Portfile"
13797 ac_config_files="$ac_config_files Makefile xmltooling/Makefile xmltoolingtest/Makefile schemas/Makefile doc/Makefile"
13801 ac_cpp='$CPP $CPPFLAGS'
13802 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13803 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13804 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13805 if test -n "$ac_tool_prefix"; then
13806 for ac_prog in gcc gcc3 cc
13808 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
13809 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
13810 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13811 $as_echo_n "checking for $ac_word... " >&6; }
13812 if test "${ac_cv_prog_CC+set}" = set; then :
13813 $as_echo_n "(cached) " >&6
13815 if test -n "$CC"; then
13816 ac_cv_prog_CC="$CC" # Let the user override the test.
13818 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13819 for as_dir in $PATH
13822 test -z "$as_dir" && as_dir=.
13823 for ac_exec_ext in '' $ac_executable_extensions; do
13824 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13825 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
13826 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13836 if test -n "$CC"; then
13837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
13838 $as_echo "$CC" >&6; }
13840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13841 $as_echo "no" >&6; }
13845 test -n "$CC" && break
13848 if test -z "$CC"; then
13850 for ac_prog in gcc gcc3 cc
13852 # Extract the first word of "$ac_prog", so it can be a program name with args.
13853 set dummy $ac_prog; ac_word=$2
13854 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13855 $as_echo_n "checking for $ac_word... " >&6; }
13856 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
13857 $as_echo_n "(cached) " >&6
13859 if test -n "$ac_ct_CC"; then
13860 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
13862 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13863 for as_dir in $PATH
13866 test -z "$as_dir" && as_dir=.
13867 for ac_exec_ext in '' $ac_executable_extensions; do
13868 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13869 ac_cv_prog_ac_ct_CC="$ac_prog"
13870 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13879 ac_ct_CC=$ac_cv_prog_ac_ct_CC
13880 if test -n "$ac_ct_CC"; then
13881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
13882 $as_echo "$ac_ct_CC" >&6; }
13884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13885 $as_echo "no" >&6; }
13889 test -n "$ac_ct_CC" && break
13892 if test "x$ac_ct_CC" = x; then
13895 case $cross_compiling:$ac_tool_warned in
13897 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13898 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13899 ac_tool_warned=yes ;;
13906 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13907 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13908 as_fn_error $? "no acceptable C compiler found in \$PATH
13909 See \`config.log' for more details" "$LINENO" 5 ; }
13911 # Provide some information about the compiler.
13912 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
13915 for ac_option in --version -v -V -qversion; do
13916 { { ac_try="$ac_compiler $ac_option >&5"
13917 case "(($ac_try" in
13918 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13919 *) ac_try_echo=$ac_try;;
13921 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
13922 $as_echo "$ac_try_echo"; } >&5
13923 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
13925 if test -s conftest.err; then
13927 ... rest of stderr output deleted ...
13928 10q' conftest.err >conftest.er1
13929 cat conftest.er1 >&5
13931 rm -f conftest.er1 conftest.err
13932 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13933 test $ac_status = 0; }
13936 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
13937 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
13938 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
13939 $as_echo_n "(cached) " >&6
13941 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13942 /* end confdefs.h. */
13955 if ac_fn_c_try_compile "$LINENO"; then :
13956 ac_compiler_gnu=yes
13960 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13961 ac_cv_c_compiler_gnu=$ac_compiler_gnu
13964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
13965 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
13966 if test $ac_compiler_gnu = yes; then
13971 ac_test_CFLAGS=${CFLAGS+set}
13972 ac_save_CFLAGS=$CFLAGS
13973 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
13974 $as_echo_n "checking whether $CC accepts -g... " >&6; }
13975 if test "${ac_cv_prog_cc_g+set}" = set; then :
13976 $as_echo_n "(cached) " >&6
13978 ac_save_c_werror_flag=$ac_c_werror_flag
13979 ac_c_werror_flag=yes
13982 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13983 /* end confdefs.h. */
13993 if ac_fn_c_try_compile "$LINENO"; then :
13994 ac_cv_prog_cc_g=yes
13997 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13998 /* end confdefs.h. */
14008 if ac_fn_c_try_compile "$LINENO"; then :
14011 ac_c_werror_flag=$ac_save_c_werror_flag
14013 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14014 /* end confdefs.h. */
14024 if ac_fn_c_try_compile "$LINENO"; then :
14025 ac_cv_prog_cc_g=yes
14027 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14029 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14031 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14032 ac_c_werror_flag=$ac_save_c_werror_flag
14034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
14035 $as_echo "$ac_cv_prog_cc_g" >&6; }
14036 if test "$ac_test_CFLAGS" = set; then
14037 CFLAGS=$ac_save_CFLAGS
14038 elif test $ac_cv_prog_cc_g = yes; then
14039 if test "$GCC" = yes; then
14045 if test "$GCC" = yes; then
14051 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
14052 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
14053 if test "${ac_cv_prog_cc_c89+set}" = set; then :
14054 $as_echo_n "(cached) " >&6
14056 ac_cv_prog_cc_c89=no
14058 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14059 /* end confdefs.h. */
14060 #include <stdarg.h>
14062 #include <sys/types.h>
14063 #include <sys/stat.h>
14064 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
14065 struct buf { int x; };
14066 FILE * (*rcsopen) (struct buf *, struct stat *, int);
14067 static char *e (p, i)
14073 static char *f (char * (*g) (char **, int), char **p, ...)
14078 s = g (p, va_arg (v,int));
14083 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
14084 function prototypes and stuff, but not '\xHH' hex character constants.
14085 These don't provoke an error unfortunately, instead are silently treated
14086 as 'x'. The following induces an error, until -std is added to get
14087 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
14088 array size at least. It's necessary to write '\x00'==0 to get something
14089 that's true only with -std. */
14090 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
14092 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
14093 inside strings and character constants. */
14095 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
14097 int test (int i, double x);
14098 struct s1 {int (*f) (int a);};
14099 struct s2 {int (*f) (double a);};
14100 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
14106 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
14111 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
14112 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
14114 CC="$ac_save_CC $ac_arg"
14115 if ac_fn_c_try_compile "$LINENO"; then :
14116 ac_cv_prog_cc_c89=$ac_arg
14118 rm -f core conftest.err conftest.$ac_objext
14119 test "x$ac_cv_prog_cc_c89" != "xno" && break
14121 rm -f conftest.$ac_ext
14126 case "x$ac_cv_prog_cc_c89" in
14128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
14129 $as_echo "none needed" >&6; } ;;
14131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
14132 $as_echo "unsupported" >&6; } ;;
14134 CC="$CC $ac_cv_prog_cc_c89"
14135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
14136 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
14138 if test "x$ac_cv_prog_cc_c89" != xno; then :
14143 ac_cpp='$CPP $CPPFLAGS'
14144 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14145 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14146 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14148 depcc="$CC" am_compiler_list=
14150 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
14151 $as_echo_n "checking dependency style of $depcc... " >&6; }
14152 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
14153 $as_echo_n "(cached) " >&6
14155 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
14156 # We make a subdir and do the tests there. Otherwise we can end up
14157 # making bogus files that we don't know about and never remove. For
14158 # instance it was reported that on HP-UX the gcc test will end up
14159 # making a dummy file named `D' -- because `-MD' means `put the output
14162 # Copy depcomp to subdir because otherwise we won't find it if we're
14163 # using a relative directory.
14164 cp "$am_depcomp" conftest.dir
14166 # We will build objects and dependencies in a subdirectory because
14167 # it helps to detect inapplicable dependency modes. For instance
14168 # both Tru64's cc and ICC support -MD to output dependencies as a
14169 # side effect of compilation, but ICC will put the dependencies in
14170 # the current directory while Tru64 will put them in the object
14174 am_cv_CC_dependencies_compiler_type=none
14175 if test "$am_compiler_list" = ""; then
14176 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
14178 am__universal=false
14179 case " $depcc " in #(
14180 *\ -arch\ *\ -arch\ *) am__universal=true ;;
14183 for depmode in $am_compiler_list; do
14184 # Setup a source with many dependencies, because some compilers
14185 # like to wrap large dependency lists on column 80 (with \), and
14186 # we should not choose a depcomp mode which is confused by this.
14188 # We need to recreate these files for each test, as the compiler may
14189 # overwrite some of them when testing with obscure command lines.
14190 # This happens at least with the AIX C compiler.
14192 for i in 1 2 3 4 5 6; do
14193 echo '#include "conftst'$i'.h"' >> sub/conftest.c
14194 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
14195 # Solaris 8's {/usr,}/bin/sh.
14196 touch sub/conftst$i.h
14198 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
14200 # We check with `-c' and `-o' for the sake of the "dashmstdout"
14201 # mode. It turns out that the SunPro C++ compiler does not properly
14202 # handle `-M -o', and we need to detect this. Also, some Intel
14203 # versions had trouble with output in subdirs
14204 am__obj=sub/conftest.${OBJEXT-o}
14205 am__minus_obj="-o $am__obj"
14208 # This depmode causes a compiler race in universal mode.
14209 test "$am__universal" = false || continue
14212 # after this tag, mechanisms are not by side-effect, so they'll
14213 # only be used when explicitly requested
14214 if test "x$enable_dependency_tracking" = xyes; then
14220 msvisualcpp | msvcmsys)
14221 # This compiler won't grok `-c -o', but also, the minuso test has
14222 # not run yet. These depmodes are late enough in the game, and
14223 # so weak that their functioning should not be impacted.
14224 am__obj=conftest.${OBJEXT-o}
14229 if depmode=$depmode \
14230 source=sub/conftest.c object=$am__obj \
14231 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
14232 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
14233 >/dev/null 2>conftest.err &&
14234 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
14235 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
14236 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
14237 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
14238 # icc doesn't choke on unknown options, it will just issue warnings
14239 # or remarks (even with -Werror). So we grep stderr for any message
14240 # that says an option was ignored or not supported.
14241 # When given -MP, icc 7.0 and 7.1 complain thusly:
14242 # icc: Command line warning: ignoring option '-M'; no argument required
14243 # The diagnosis changed in icc 8.0:
14244 # icc: Command line remark: option '-MP' not supported
14245 if (grep 'ignoring option' conftest.err ||
14246 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
14247 am_cv_CC_dependencies_compiler_type=$depmode
14254 rm -rf conftest.dir
14256 am_cv_CC_dependencies_compiler_type=none
14260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
14261 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
14262 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
14265 test "x$enable_dependency_tracking" != xno \
14266 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
14267 am__fastdepCC_TRUE=
14268 am__fastdepCC_FALSE='#'
14270 am__fastdepCC_TRUE='#'
14271 am__fastdepCC_FALSE=
14276 ac_cpp='$CXXCPP $CPPFLAGS'
14277 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14278 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14279 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14280 if test -z "$CXX"; then
14281 if test -n "$CCC"; then
14284 if test -n "$ac_tool_prefix"; then
14285 for ac_prog in g++ g++3 c++ CC
14287 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
14288 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
14289 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14290 $as_echo_n "checking for $ac_word... " >&6; }
14291 if test "${ac_cv_prog_CXX+set}" = set; then :
14292 $as_echo_n "(cached) " >&6
14294 if test -n "$CXX"; then
14295 ac_cv_prog_CXX="$CXX" # Let the user override the test.
14297 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14298 for as_dir in $PATH
14301 test -z "$as_dir" && as_dir=.
14302 for ac_exec_ext in '' $ac_executable_extensions; do
14303 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14304 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
14305 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14314 CXX=$ac_cv_prog_CXX
14315 if test -n "$CXX"; then
14316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
14317 $as_echo "$CXX" >&6; }
14319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14320 $as_echo "no" >&6; }
14324 test -n "$CXX" && break
14327 if test -z "$CXX"; then
14329 for ac_prog in g++ g++3 c++ CC
14331 # Extract the first word of "$ac_prog", so it can be a program name with args.
14332 set dummy $ac_prog; ac_word=$2
14333 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14334 $as_echo_n "checking for $ac_word... " >&6; }
14335 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
14336 $as_echo_n "(cached) " >&6
14338 if test -n "$ac_ct_CXX"; then
14339 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
14341 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14342 for as_dir in $PATH
14345 test -z "$as_dir" && as_dir=.
14346 for ac_exec_ext in '' $ac_executable_extensions; do
14347 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14348 ac_cv_prog_ac_ct_CXX="$ac_prog"
14349 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14358 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
14359 if test -n "$ac_ct_CXX"; then
14360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
14361 $as_echo "$ac_ct_CXX" >&6; }
14363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14364 $as_echo "no" >&6; }
14368 test -n "$ac_ct_CXX" && break
14371 if test "x$ac_ct_CXX" = x; then
14374 case $cross_compiling:$ac_tool_warned in
14376 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14377 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14378 ac_tool_warned=yes ;;
14386 # Provide some information about the compiler.
14387 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
14390 for ac_option in --version -v -V -qversion; do
14391 { { ac_try="$ac_compiler $ac_option >&5"
14392 case "(($ac_try" in
14393 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14394 *) ac_try_echo=$ac_try;;
14396 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
14397 $as_echo "$ac_try_echo"; } >&5
14398 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
14400 if test -s conftest.err; then
14402 ... rest of stderr output deleted ...
14403 10q' conftest.err >conftest.er1
14404 cat conftest.er1 >&5
14406 rm -f conftest.er1 conftest.err
14407 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14408 test $ac_status = 0; }
14411 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
14412 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
14413 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
14414 $as_echo_n "(cached) " >&6
14416 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14417 /* end confdefs.h. */
14430 if ac_fn_cxx_try_compile "$LINENO"; then :
14431 ac_compiler_gnu=yes
14435 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14436 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
14439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
14440 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
14441 if test $ac_compiler_gnu = yes; then
14446 ac_test_CXXFLAGS=${CXXFLAGS+set}
14447 ac_save_CXXFLAGS=$CXXFLAGS
14448 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
14449 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
14450 if test "${ac_cv_prog_cxx_g+set}" = set; then :
14451 $as_echo_n "(cached) " >&6
14453 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
14454 ac_cxx_werror_flag=yes
14455 ac_cv_prog_cxx_g=no
14457 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14458 /* end confdefs.h. */
14468 if ac_fn_cxx_try_compile "$LINENO"; then :
14469 ac_cv_prog_cxx_g=yes
14472 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14473 /* end confdefs.h. */
14483 if ac_fn_cxx_try_compile "$LINENO"; then :
14486 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
14488 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14489 /* end confdefs.h. */
14499 if ac_fn_cxx_try_compile "$LINENO"; then :
14500 ac_cv_prog_cxx_g=yes
14502 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14504 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14506 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14507 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
14509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
14510 $as_echo "$ac_cv_prog_cxx_g" >&6; }
14511 if test "$ac_test_CXXFLAGS" = set; then
14512 CXXFLAGS=$ac_save_CXXFLAGS
14513 elif test $ac_cv_prog_cxx_g = yes; then
14514 if test "$GXX" = yes; then
14520 if test "$GXX" = yes; then
14527 ac_cpp='$CPP $CPPFLAGS'
14528 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14529 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14530 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14532 depcc="$CXX" am_compiler_list=
14534 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
14535 $as_echo_n "checking dependency style of $depcc... " >&6; }
14536 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then :
14537 $as_echo_n "(cached) " >&6
14539 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
14540 # We make a subdir and do the tests there. Otherwise we can end up
14541 # making bogus files that we don't know about and never remove. For
14542 # instance it was reported that on HP-UX the gcc test will end up
14543 # making a dummy file named `D' -- because `-MD' means `put the output
14546 # Copy depcomp to subdir because otherwise we won't find it if we're
14547 # using a relative directory.
14548 cp "$am_depcomp" conftest.dir
14550 # We will build objects and dependencies in a subdirectory because
14551 # it helps to detect inapplicable dependency modes. For instance
14552 # both Tru64's cc and ICC support -MD to output dependencies as a
14553 # side effect of compilation, but ICC will put the dependencies in
14554 # the current directory while Tru64 will put them in the object
14558 am_cv_CXX_dependencies_compiler_type=none
14559 if test "$am_compiler_list" = ""; then
14560 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
14562 am__universal=false
14563 case " $depcc " in #(
14564 *\ -arch\ *\ -arch\ *) am__universal=true ;;
14567 for depmode in $am_compiler_list; do
14568 # Setup a source with many dependencies, because some compilers
14569 # like to wrap large dependency lists on column 80 (with \), and
14570 # we should not choose a depcomp mode which is confused by this.
14572 # We need to recreate these files for each test, as the compiler may
14573 # overwrite some of them when testing with obscure command lines.
14574 # This happens at least with the AIX C compiler.
14576 for i in 1 2 3 4 5 6; do
14577 echo '#include "conftst'$i'.h"' >> sub/conftest.c
14578 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
14579 # Solaris 8's {/usr,}/bin/sh.
14580 touch sub/conftst$i.h
14582 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
14584 # We check with `-c' and `-o' for the sake of the "dashmstdout"
14585 # mode. It turns out that the SunPro C++ compiler does not properly
14586 # handle `-M -o', and we need to detect this. Also, some Intel
14587 # versions had trouble with output in subdirs
14588 am__obj=sub/conftest.${OBJEXT-o}
14589 am__minus_obj="-o $am__obj"
14592 # This depmode causes a compiler race in universal mode.
14593 test "$am__universal" = false || continue
14596 # after this tag, mechanisms are not by side-effect, so they'll
14597 # only be used when explicitly requested
14598 if test "x$enable_dependency_tracking" = xyes; then
14604 msvisualcpp | msvcmsys)
14605 # This compiler won't grok `-c -o', but also, the minuso test has
14606 # not run yet. These depmodes are late enough in the game, and
14607 # so weak that their functioning should not be impacted.
14608 am__obj=conftest.${OBJEXT-o}
14613 if depmode=$depmode \
14614 source=sub/conftest.c object=$am__obj \
14615 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
14616 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
14617 >/dev/null 2>conftest.err &&
14618 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
14619 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
14620 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
14621 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
14622 # icc doesn't choke on unknown options, it will just issue warnings
14623 # or remarks (even with -Werror). So we grep stderr for any message
14624 # that says an option was ignored or not supported.
14625 # When given -MP, icc 7.0 and 7.1 complain thusly:
14626 # icc: Command line warning: ignoring option '-M'; no argument required
14627 # The diagnosis changed in icc 8.0:
14628 # icc: Command line remark: option '-MP' not supported
14629 if (grep 'ignoring option' conftest.err ||
14630 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
14631 am_cv_CXX_dependencies_compiler_type=$depmode
14638 rm -rf conftest.dir
14640 am_cv_CXX_dependencies_compiler_type=none
14644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
14645 $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
14646 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
14649 test "x$enable_dependency_tracking" != xno \
14650 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
14651 am__fastdepCXX_TRUE=
14652 am__fastdepCXX_FALSE='#'
14654 am__fastdepCXX_TRUE='#'
14655 am__fastdepCXX_FALSE=
14661 func_stripname_cnf ()
14664 .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
14665 *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
14667 } # func_stripname_cnf
14669 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
14670 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
14671 (test "X$CXX" != "Xg++"))) ; then
14673 ac_cpp='$CXXCPP $CPPFLAGS'
14674 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14675 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14676 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14677 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
14678 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
14679 if test -z "$CXXCPP"; then
14680 if test "${ac_cv_prog_CXXCPP+set}" = set; then :
14681 $as_echo_n "(cached) " >&6
14683 # Double quotes because CXXCPP needs to be expanded
14684 for CXXCPP in "$CXX -E" "/lib/cpp"
14686 ac_preproc_ok=false
14687 for ac_cxx_preproc_warn_flag in '' yes
14689 # Use a header file that comes with gcc, so configuring glibc
14690 # with a fresh cross-compiler works.
14691 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14692 # <limits.h> exists even on freestanding compilers.
14693 # On the NeXT, cc -E runs the code through the compiler's parser,
14694 # not just through cpp. "Syntax error" is here to catch this case.
14695 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14696 /* end confdefs.h. */
14698 # include <limits.h>
14700 # include <assert.h>
14704 if ac_fn_cxx_try_cpp "$LINENO"; then :
14707 # Broken: fails on valid input.
14710 rm -f conftest.err conftest.i conftest.$ac_ext
14712 # OK, works on sane cases. Now check whether nonexistent headers
14713 # can be detected and how.
14714 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14715 /* end confdefs.h. */
14716 #include <ac_nonexistent.h>
14718 if ac_fn_cxx_try_cpp "$LINENO"; then :
14719 # Broken: success on invalid input.
14722 # Passes both tests.
14726 rm -f conftest.err conftest.i conftest.$ac_ext
14729 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
14730 rm -f conftest.i conftest.err conftest.$ac_ext
14731 if $ac_preproc_ok; then :
14736 ac_cv_prog_CXXCPP=$CXXCPP
14739 CXXCPP=$ac_cv_prog_CXXCPP
14741 ac_cv_prog_CXXCPP=$CXXCPP
14743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
14744 $as_echo "$CXXCPP" >&6; }
14745 ac_preproc_ok=false
14746 for ac_cxx_preproc_warn_flag in '' yes
14748 # Use a header file that comes with gcc, so configuring glibc
14749 # with a fresh cross-compiler works.
14750 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14751 # <limits.h> exists even on freestanding compilers.
14752 # On the NeXT, cc -E runs the code through the compiler's parser,
14753 # not just through cpp. "Syntax error" is here to catch this case.
14754 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14755 /* end confdefs.h. */
14757 # include <limits.h>
14759 # include <assert.h>
14763 if ac_fn_cxx_try_cpp "$LINENO"; then :
14766 # Broken: fails on valid input.
14769 rm -f conftest.err conftest.i conftest.$ac_ext
14771 # OK, works on sane cases. Now check whether nonexistent headers
14772 # can be detected and how.
14773 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14774 /* end confdefs.h. */
14775 #include <ac_nonexistent.h>
14777 if ac_fn_cxx_try_cpp "$LINENO"; then :
14778 # Broken: success on invalid input.
14781 # Passes both tests.
14785 rm -f conftest.err conftest.i conftest.$ac_ext
14788 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
14789 rm -f conftest.i conftest.err conftest.$ac_ext
14790 if $ac_preproc_ok; then :
14793 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
14794 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14795 as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
14796 See \`config.log' for more details" "$LINENO" 5 ; }
14800 ac_cpp='$CPP $CPPFLAGS'
14801 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14802 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14803 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14806 _lt_caught_CXX_error=yes
14810 ac_cpp='$CXXCPP $CPPFLAGS'
14811 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14812 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14813 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14815 archive_cmds_need_lc_CXX=no
14816 allow_undefined_flag_CXX=
14817 always_export_symbols_CXX=no
14818 archive_expsym_cmds_CXX=
14819 compiler_needs_object_CXX=no
14820 export_dynamic_flag_spec_CXX=
14821 hardcode_direct_CXX=no
14822 hardcode_direct_absolute_CXX=no
14823 hardcode_libdir_flag_spec_CXX=
14824 hardcode_libdir_flag_spec_ld_CXX=
14825 hardcode_libdir_separator_CXX=
14826 hardcode_minus_L_CXX=no
14827 hardcode_shlibpath_var_CXX=unsupported
14828 hardcode_automatic_CXX=no
14829 inherit_rpath_CXX=no
14831 module_expsym_cmds_CXX=
14832 link_all_deplibs_CXX=unknown
14833 old_archive_cmds_CXX=$old_archive_cmds
14834 reload_flag_CXX=$reload_flag
14835 reload_cmds_CXX=$reload_cmds
14836 no_undefined_flag_CXX=
14837 whole_archive_flag_spec_CXX=
14838 enable_shared_with_static_runtimes_CXX=no
14840 # Source file extension for C++ test sources.
14843 # Object file extension for compiled C++ test sources.
14847 # No sense in running all these tests if we already determined that
14848 # the CXX compiler isn't working. Some variables (like enable_shared)
14849 # are currently assumed to apply to all compilers on this platform,
14850 # and will be corrupted by setting them based on a non-working compiler.
14851 if test "$_lt_caught_CXX_error" != yes; then
14852 # Code to be used in simple compile tests
14853 lt_simple_compile_test_code="int some_variable = 0;"
14855 # Code to be used in simple link tests
14856 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
14858 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
14865 # If no C compiler was specified, use CC.
14868 # If no C compiler flags were specified, use CFLAGS.
14869 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
14871 # Allow CC to be a program name with arguments.
14875 # save warnings/boilerplate of simple test code
14876 ac_outfile=conftest.$ac_objext
14877 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
14878 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14879 _lt_compiler_boilerplate=`cat conftest.err`
14882 ac_outfile=conftest.$ac_objext
14883 echo "$lt_simple_link_test_code" >conftest.$ac_ext
14884 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14885 _lt_linker_boilerplate=`cat conftest.err`
14889 # Allow CC to be a program name with arguments.
14891 lt_save_CFLAGS=$CFLAGS
14895 lt_save_with_gnu_ld=$with_gnu_ld
14896 lt_save_path_LD=$lt_cv_path_LD
14897 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
14898 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
14900 $as_unset lt_cv_prog_gnu_ld
14902 if test -n "${lt_cv_path_LDCXX+set}"; then
14903 lt_cv_path_LD=$lt_cv_path_LDCXX
14905 $as_unset lt_cv_path_LD
14907 test -z "${LDCXX+set}" || LD=$LDCXX
14912 for cc_temp in $compiler""; do
14914 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14915 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14920 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
14923 if test -n "$compiler"; then
14924 # We don't want -fno-exception when compiling C++ code, so set the
14925 # no_builtin_flag separately
14926 if test "$GXX" = yes; then
14927 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
14929 lt_prog_compiler_no_builtin_flag_CXX=
14932 if test "$GXX" = yes; then
14933 # Set up default GNU C++ configuration
14937 # Check whether --with-gnu-ld was given.
14938 if test "${with_gnu_ld+set}" = set; then :
14939 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
14945 if test "$GCC" = yes; then
14946 # Check if gcc -print-prog-name=ld gives a path.
14947 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
14948 $as_echo_n "checking for ld used by $CC... " >&6; }
14951 # gcc leaves a trailing carriage return which upsets mingw
14952 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
14954 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
14957 # Accept absolute paths.
14959 re_direlt='/[^/][^/]*/\.\./'
14960 # Canonicalize the pathname of ld
14961 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
14962 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
14963 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
14965 test -z "$LD" && LD="$ac_prog"
14968 # If it fails, then pretend we aren't using GCC.
14972 # If it is relative, then search for the first ld in PATH.
14973 with_gnu_ld=unknown
14976 elif test "$with_gnu_ld" = yes; then
14977 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
14978 $as_echo_n "checking for GNU ld... " >&6; }
14980 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
14981 $as_echo_n "checking for non-GNU ld... " >&6; }
14983 if test "${lt_cv_path_LD+set}" = set; then :
14984 $as_echo_n "(cached) " >&6
14986 if test -z "$LD"; then
14987 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
14988 for ac_dir in $PATH; do
14990 test -z "$ac_dir" && ac_dir=.
14991 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
14992 lt_cv_path_LD="$ac_dir/$ac_prog"
14993 # Check to see if the program is GNU ld. I'd rather use --version,
14994 # but apparently some variants of GNU ld only accept -v.
14995 # Break only if it was the GNU/non-GNU ld that we prefer.
14996 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
14997 *GNU* | *'with BFD'*)
14998 test "$with_gnu_ld" != no && break
15001 test "$with_gnu_ld" != yes && break
15008 lt_cv_path_LD="$LD" # Let the user override the test with a path.
15012 LD="$lt_cv_path_LD"
15013 if test -n "$LD"; then
15014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
15015 $as_echo "$LD" >&6; }
15017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15018 $as_echo "no" >&6; }
15020 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
15021 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
15022 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
15023 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
15024 $as_echo_n "(cached) " >&6
15026 # I'd rather use --version here, but apparently some GNU lds only accept -v.
15027 case `$LD -v 2>&1 </dev/null` in
15028 *GNU* | *'with BFD'*)
15029 lt_cv_prog_gnu_ld=yes
15032 lt_cv_prog_gnu_ld=no
15036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
15037 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
15038 with_gnu_ld=$lt_cv_prog_gnu_ld
15046 # Check if GNU C++ uses GNU ld as the underlying linker, since the
15047 # archiving commands below assume that GNU ld is being used.
15048 if test "$with_gnu_ld" = yes; then
15049 archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
15050 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'
15052 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
15053 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
15055 # If archive_cmds runs LD, not CC, wlarc should be empty
15056 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
15057 # investigate it a little bit more. (MM)
15060 # ancient GNU ld didn't support --whole-archive et. al.
15061 if eval "`$CC -print-prog-name=ld` --help 2>&1" |
15062 $GREP 'no-whole-archive' > /dev/null; then
15063 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
15065 whole_archive_flag_spec_CXX=
15071 # A generic and very simple default shared library creation
15072 # command for GNU C++ for the case where it uses the native
15073 # linker, instead of GNU ld. If possible, this setting should
15074 # overridden to take advantage of the native linker features on
15075 # the platform it is being used on.
15076 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
15079 # Commands to make compiler produce verbose output that lists
15080 # what "hidden" libraries, object files and flags are used when
15081 # linking a shared library.
15082 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
15090 # PORTME: fill in a description of your system's C++ link characteristics
15091 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15092 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
15096 # FIXME: insert proper C++ library support
15100 if test "$host_cpu" = ia64; then
15101 # On IA64, the linker does run time linking by default, so we don't
15102 # have to do anything special.
15103 aix_use_runtimelinking=no
15104 exp_sym_flag='-Bexport'
15107 aix_use_runtimelinking=no
15109 # Test if we are trying to use run time linking or normal
15110 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
15111 # need to do runtime linking.
15112 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
15113 for ld_flag in $LDFLAGS; do
15116 aix_use_runtimelinking=yes
15124 exp_sym_flag='-bexport'
15125 no_entry_flag='-bnoentry'
15128 # When large executables or shared objects are built, AIX ld can
15129 # have problems creating the table of contents. If linking a library
15130 # or program results in "error TOC overflow" add -mminimal-toc to
15131 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
15132 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
15134 archive_cmds_CXX=''
15135 hardcode_direct_CXX=yes
15136 hardcode_direct_absolute_CXX=yes
15137 hardcode_libdir_separator_CXX=':'
15138 link_all_deplibs_CXX=yes
15139 file_list_spec_CXX='${wl}-f,'
15141 if test "$GXX" = yes; then
15142 case $host_os in aix4.[012]|aix4.[012].*)
15143 # We only want to do this on AIX 4.2 and lower, the check
15144 # below for broken collect2 doesn't work under 4.3+
15145 collect2name=`${CC} -print-prog-name=collect2`
15146 if test -f "$collect2name" &&
15147 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
15149 # We have reworked collect2
15152 # We have old collect2
15153 hardcode_direct_CXX=unsupported
15154 # It fails to find uninstalled libraries when the uninstalled
15155 # path is not listed in the libpath. Setting hardcode_minus_L
15156 # to unsupported forces relinking
15157 hardcode_minus_L_CXX=yes
15158 hardcode_libdir_flag_spec_CXX='-L$libdir'
15159 hardcode_libdir_separator_CXX=
15162 shared_flag='-shared'
15163 if test "$aix_use_runtimelinking" = yes; then
15164 shared_flag="$shared_flag "'${wl}-G'
15168 if test "$host_cpu" = ia64; then
15169 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
15170 # chokes on -Wl,-G. The following line is correct:
15173 if test "$aix_use_runtimelinking" = yes; then
15174 shared_flag='${wl}-G'
15176 shared_flag='${wl}-bM:SRE'
15181 export_dynamic_flag_spec_CXX='${wl}-bexpall'
15182 # It seems that -bexpall does not export symbols beginning with
15183 # underscore (_), so it is better to generate a list of symbols to
15185 always_export_symbols_CXX=yes
15186 if test "$aix_use_runtimelinking" = yes; then
15187 # Warning - without using the other runtime loading flags (-brtl),
15188 # -berok will link without error, but may produce a broken library.
15189 allow_undefined_flag_CXX='-berok'
15190 # Determine the default libpath from the value encoded in an empty
15192 if test "${lt_cv_aix_libpath+set}" = set; then
15193 aix_libpath=$lt_cv_aix_libpath
15195 if test "${lt_cv_aix_libpath__CXX+set}" = set; then :
15196 $as_echo_n "(cached) " >&6
15198 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15199 /* end confdefs.h. */
15209 if ac_fn_cxx_try_link "$LINENO"; then :
15211 lt_aix_libpath_sed='
15212 /Import File Strings/,/^$/ {
15214 s/^0 *\([^ ]*\) *$/\1/
15218 lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15219 # Check for a 64-bit object if we didn't find anything.
15220 if test -z "$lt_cv_aix_libpath__CXX"; then
15221 lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15224 rm -f core conftest.err conftest.$ac_objext \
15225 conftest$ac_exeext conftest.$ac_ext
15226 if test -z "$lt_cv_aix_libpath__CXX"; then
15227 lt_cv_aix_libpath__CXX="/usr/lib:/lib"
15232 aix_libpath=$lt_cv_aix_libpath__CXX
15235 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
15237 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"
15239 if test "$host_cpu" = ia64; then
15240 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
15241 allow_undefined_flag_CXX="-z nodefs"
15242 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"
15244 # Determine the default libpath from the value encoded in an
15245 # empty executable.
15246 if test "${lt_cv_aix_libpath+set}" = set; then
15247 aix_libpath=$lt_cv_aix_libpath
15249 if test "${lt_cv_aix_libpath__CXX+set}" = set; then :
15250 $as_echo_n "(cached) " >&6
15252 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15253 /* end confdefs.h. */
15263 if ac_fn_cxx_try_link "$LINENO"; then :
15265 lt_aix_libpath_sed='
15266 /Import File Strings/,/^$/ {
15268 s/^0 *\([^ ]*\) *$/\1/
15272 lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15273 # Check for a 64-bit object if we didn't find anything.
15274 if test -z "$lt_cv_aix_libpath__CXX"; then
15275 lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15278 rm -f core conftest.err conftest.$ac_objext \
15279 conftest$ac_exeext conftest.$ac_ext
15280 if test -z "$lt_cv_aix_libpath__CXX"; then
15281 lt_cv_aix_libpath__CXX="/usr/lib:/lib"
15286 aix_libpath=$lt_cv_aix_libpath__CXX
15289 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
15290 # Warning - without using the other run time loading flags,
15291 # -berok will link without error, but may produce a broken library.
15292 no_undefined_flag_CXX=' ${wl}-bernotok'
15293 allow_undefined_flag_CXX=' ${wl}-berok'
15294 if test "$with_gnu_ld" = yes; then
15295 # We only use this code for GNU lds that support --whole-archive.
15296 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
15298 # Exported symbols can be pulled into shared objects from archives
15299 whole_archive_flag_spec_CXX='$convenience'
15301 archive_cmds_need_lc_CXX=yes
15302 # This is similar to how AIX traditionally builds its shared
15304 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'
15310 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
15311 allow_undefined_flag_CXX=unsupported
15312 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
15313 # support --undefined. This deserves some investigation. FIXME
15314 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15321 case $cc_basename in
15323 # FIXME: insert proper C++ library support
15329 cygwin* | mingw* | pw32* | cegcc*)
15330 case $GXX,$cc_basename in
15333 # hardcode_libdir_flag_spec is actually meaningless, as there is
15334 # no search path for DLLs.
15335 hardcode_libdir_flag_spec_CXX=' '
15336 allow_undefined_flag_CXX=unsupported
15337 always_export_symbols_CXX=yes
15338 file_list_spec_CXX='@'
15339 # Tell ltmain to make .lib files, not .a files.
15341 # Tell ltmain to make .dll files, not .so files.
15343 # FIXME: Setting linknames here is a bad hack.
15344 archive_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
15345 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
15346 $SED -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
15348 $SED -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
15350 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
15352 # The linker will not automatically build a static lib if we build a DLL.
15353 # _LT_TAGVAR(old_archive_from_new_cmds, CXX)='true'
15354 enable_shared_with_static_runtimes_CXX=yes
15356 old_postinstall_cmds_CXX='chmod 644 $oldlib'
15357 postlink_cmds_CXX='lt_outputfile="@OUTPUT@"~
15358 lt_tool_outputfile="@TOOL_OUTPUT@"~
15359 case $lt_outputfile in
15362 lt_outputfile="$lt_outputfile.exe"
15363 lt_tool_outputfile="$lt_tool_outputfile.exe"
15366 func_to_tool_file "$lt_outputfile"~
15367 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
15368 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
15369 $RM "$lt_outputfile.manifest";
15374 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
15375 # as there is no search path for DLLs.
15376 hardcode_libdir_flag_spec_CXX='-L$libdir'
15377 export_dynamic_flag_spec_CXX='${wl}--export-all-symbols'
15378 allow_undefined_flag_CXX=unsupported
15379 always_export_symbols_CXX=no
15380 enable_shared_with_static_runtimes_CXX=yes
15382 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
15383 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'
15384 # If the export-symbols file already is a .def file (1st line
15385 # is EXPORTS), use it as is; otherwise, prepend...
15386 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
15387 cp $export_symbols $output_objdir/$soname.def;
15389 echo EXPORTS > $output_objdir/$soname.def;
15390 cat $export_symbols >> $output_objdir/$soname.def;
15392 $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'
15399 darwin* | rhapsody*)
15402 archive_cmds_need_lc_CXX=no
15403 hardcode_direct_CXX=no
15404 hardcode_automatic_CXX=yes
15405 hardcode_shlibpath_var_CXX=unsupported
15406 if test "$lt_cv_ld_force_load" = "yes"; then
15407 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\"`'
15409 whole_archive_flag_spec_CXX=''
15411 link_all_deplibs_CXX=yes
15412 allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
15413 case $cc_basename in
15414 ifort*) _lt_dar_can_shared=yes ;;
15415 *) _lt_dar_can_shared=$GCC ;;
15417 if test "$_lt_dar_can_shared" = "yes"; then
15418 output_verbose_link_cmd=func_echo_all
15419 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}"
15420 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
15421 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}"
15422 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}"
15423 if test "$lt_cv_apple_cc_single_mod" != "yes"; then
15424 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}"
15425 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}"
15435 case $cc_basename in
15437 # FIXME: insert proper C++ library support
15441 # Green Hills C++ Compiler
15442 # FIXME: insert proper C++ library support
15446 # FIXME: insert proper C++ library support
15453 # C++ shared libraries reported to be fairly broken before
15459 archive_cmds_need_lc_CXX=no
15462 freebsd* | dragonfly*)
15463 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
15472 archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15473 link_all_deplibs_CXX=yes
15477 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
15478 hardcode_libdir_separator_CXX=:
15479 export_dynamic_flag_spec_CXX='${wl}-E'
15480 hardcode_direct_CXX=yes
15481 hardcode_minus_L_CXX=yes # Not in the search PATH,
15482 # but as the default
15483 # location of the library.
15485 case $cc_basename in
15487 # FIXME: insert proper C++ library support
15491 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'
15492 # Commands to make compiler produce verbose output that lists
15493 # what "hidden" libraries, object files and flags are used when
15494 # linking a shared library.
15496 # There doesn't appear to be a way to prevent this compiler from
15497 # explicitly linking system object files so we need to strip them
15498 # from the output so that they don't get included in the library
15500 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"'
15503 if test "$GXX" = yes; then
15504 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'
15506 # FIXME: insert proper C++ library support
15514 if test $with_gnu_ld = no; then
15515 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
15516 hardcode_libdir_separator_CXX=:
15522 export_dynamic_flag_spec_CXX='${wl}-E'
15528 hardcode_direct_CXX=no
15529 hardcode_shlibpath_var_CXX=no
15532 hardcode_direct_CXX=yes
15533 hardcode_direct_absolute_CXX=yes
15534 hardcode_minus_L_CXX=yes # Not in the search PATH,
15535 # but as the default
15536 # location of the library.
15540 case $cc_basename in
15542 # FIXME: insert proper C++ library support
15548 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
15551 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
15554 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
15557 # Commands to make compiler produce verbose output that lists
15558 # what "hidden" libraries, object files and flags are used when
15559 # linking a shared library.
15561 # There doesn't appear to be a way to prevent this compiler from
15562 # explicitly linking system object files so we need to strip them
15563 # from the output so that they don't get included in the library
15565 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"'
15568 if test "$GXX" = yes; then
15569 if test $with_gnu_ld = no; then
15572 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
15575 archive_cmds_CXX='$CC -shared -nostdlib $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
15578 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'
15583 # FIXME: insert proper C++ library support
15591 hardcode_direct_CXX=no
15592 hardcode_shlibpath_var_CXX=no
15593 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
15594 export_dynamic_flag_spec_CXX='${wl}-E'
15595 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
15596 # Instead, shared libraries are loaded at an image base (0x10000000 by
15597 # default) and relocated if they conflict, which is a slow very memory
15598 # consuming and fragmenting process. To avoid this, we pick a random,
15599 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
15600 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
15601 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'
15602 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'
15605 case $cc_basename in
15608 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'
15610 # Archives containing C++ object files must be created using
15611 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
15612 # necessary to make sure instantiated templates are included
15614 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
15617 if test "$GXX" = yes; then
15618 if test "$with_gnu_ld" = no; then
15619 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'
15621 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'
15624 link_all_deplibs_CXX=yes
15627 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
15628 hardcode_libdir_separator_CXX=:
15629 inherit_rpath_CXX=yes
15632 linux* | k*bsd*-gnu | kopensolaris*-gnu)
15633 case $cc_basename in
15635 # Kuck and Associates, Inc. (KAI) C++ Compiler
15637 # KCC will only create a shared library if the output file
15638 # ends with ".so" (or ".sl" for HP-UX), so rename the library
15639 # to its proper name (with version) after linking.
15640 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'
15641 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'
15642 # Commands to make compiler produce verbose output that lists
15643 # what "hidden" libraries, object files and flags are used when
15644 # linking a shared library.
15646 # There doesn't appear to be a way to prevent this compiler from
15647 # explicitly linking system object files so we need to strip them
15648 # from the output so that they don't get included in the library
15650 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"'
15652 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
15653 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
15655 # Archives containing C++ object files must be created using
15656 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
15657 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
15662 # version 8.0 and above of icpc choke on multiply defined symbols
15663 # if we add $predep_objects and $postdep_objects, however 7.1 and
15664 # earlier do not add the objects themselves.
15665 case `$CC -V 2>&1` in
15667 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
15668 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'
15670 *) # Version 8.0 or newer
15673 ia64*) tmp_idyn=' -i_dynamic';;
15675 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15676 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'
15679 archive_cmds_need_lc_CXX=no
15680 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
15681 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
15682 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
15685 # Portland Group C++ compiler
15687 *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
15688 prelink_cmds_CXX='tpldir=Template.dir~
15690 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
15691 compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
15692 old_archive_cmds_CXX='tpldir=Template.dir~
15694 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
15695 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
15697 archive_cmds_CXX='tpldir=Template.dir~
15699 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
15700 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
15701 archive_expsym_cmds_CXX='tpldir=Template.dir~
15703 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
15704 $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'
15706 *) # Version 6 and above use weak symbols
15707 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
15708 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'
15712 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
15713 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
15714 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'
15718 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
15719 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'
15721 runpath_var=LD_RUN_PATH
15722 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
15723 hardcode_libdir_separator_CXX=:
15725 # Commands to make compiler produce verbose output that lists
15726 # what "hidden" libraries, object files and flags are used when
15727 # linking a shared library.
15729 # There doesn't appear to be a way to prevent this compiler from
15730 # explicitly linking system object files so we need to strip them
15731 # from the output so that they don't get included in the library
15733 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'
15735 xl* | mpixl* | bgxl*)
15736 # IBM XL 8.0 on PPC, with GNU ld
15737 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
15738 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
15739 archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15740 if test "x$supports_anon_versioning" = xyes; then
15741 archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
15742 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
15743 echo "local: *; };" >> $output_objdir/$libname.ver~
15744 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
15748 case `$CC -V 2>&1 | sed 5q` in
15751 no_undefined_flag_CXX=' -zdefs'
15752 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
15753 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'
15754 hardcode_libdir_flag_spec_CXX='-R$libdir'
15755 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'
15756 compiler_needs_object_CXX=yes
15758 # Not sure whether something based on
15759 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
15761 output_verbose_link_cmd='func_echo_all'
15763 # Archives containing C++ object files must be created using
15764 # "CC -xar", where "CC" is the Sun C++ compiler. This is
15765 # necessary to make sure instantiated templates are included
15767 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
15775 # FIXME: insert proper C++ library support
15780 # FIXME: insert proper C++ library support
15785 case $cc_basename in
15787 # FIXME: insert proper C++ library support
15791 # FIXME: insert proper C++ library support
15798 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
15799 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
15801 hardcode_libdir_flag_spec_CXX='-R$libdir'
15802 hardcode_direct_CXX=yes
15803 hardcode_shlibpath_var_CXX=no
15805 # Workaround some broken pre-1.5 toolchains
15806 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
15814 # C++ shared libraries are fairly broken
15819 if test -f /usr/libexec/ld.so; then
15820 hardcode_direct_CXX=yes
15821 hardcode_shlibpath_var_CXX=no
15822 hardcode_direct_absolute_CXX=yes
15823 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
15824 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
15825 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15826 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
15827 export_dynamic_flag_spec_CXX='${wl}-E'
15828 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
15830 output_verbose_link_cmd=func_echo_all
15836 osf3* | osf4* | osf5*)
15837 case $cc_basename in
15839 # Kuck and Associates, Inc. (KAI) C++ Compiler
15841 # KCC will only create a shared library if the output file
15842 # ends with ".so" (or ".sl" for HP-UX), so rename the library
15843 # to its proper name (with version) after linking.
15844 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'
15846 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
15847 hardcode_libdir_separator_CXX=:
15849 # Archives containing C++ object files must be created using
15850 # the KAI C++ compiler.
15852 osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
15853 *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
15857 # Rational C++ 2.4.1
15858 # FIXME: insert proper C++ library support
15864 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
15865 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'
15866 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
15869 allow_undefined_flag_CXX=' -expect_unresolved \*'
15870 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'
15871 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
15872 echo "-hidden">> $lib.exp~
15873 $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~
15875 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
15879 hardcode_libdir_separator_CXX=:
15881 # Commands to make compiler produce verbose output that lists
15882 # what "hidden" libraries, object files and flags are used when
15883 # linking a shared library.
15885 # There doesn't appear to be a way to prevent this compiler from
15886 # explicitly linking system object files so we need to strip them
15887 # from the output so that they don't get included in the library
15889 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"'
15892 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
15893 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
15896 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'
15899 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'
15903 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
15904 hardcode_libdir_separator_CXX=:
15906 # Commands to make compiler produce verbose output that lists
15907 # what "hidden" libraries, object files and flags are used when
15908 # linking a shared library.
15909 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
15912 # FIXME: insert proper C++ library support
15920 # FIXME: insert proper C++ library support
15925 case $cc_basename in
15928 # FIXME: insert proper C++ library support
15933 # FIXME: insert proper C++ library support
15937 # FIXME: insert proper C++ library support
15944 case $cc_basename in
15946 # Sun C++ 4.2, 5.x and Centerline C++
15947 archive_cmds_need_lc_CXX=yes
15948 no_undefined_flag_CXX=' -zdefs'
15949 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
15950 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
15951 $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'
15953 hardcode_libdir_flag_spec_CXX='-R$libdir'
15954 hardcode_shlibpath_var_CXX=no
15956 solaris2.[0-5] | solaris2.[0-5].*) ;;
15958 # The compiler driver will combine and reorder linker options,
15959 # but understands `-z linker_flag'.
15960 # Supported since Solaris 2.6 (maybe 2.5.1?)
15961 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
15964 link_all_deplibs_CXX=yes
15966 output_verbose_link_cmd='func_echo_all'
15968 # Archives containing C++ object files must be created using
15969 # "CC -xar", where "CC" is the Sun C++ compiler. This is
15970 # necessary to make sure instantiated templates are included
15972 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
15975 # Green Hills C++ Compiler
15976 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
15978 # The C++ compiler must be used to create the archive.
15979 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
15982 # GNU C++ compiler with Solaris linker
15983 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
15984 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
15985 if $CC --version | $GREP -v '^2\.7' > /dev/null; then
15986 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
15987 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
15988 $CC -shared $pic_flag -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
15990 # Commands to make compiler produce verbose output that lists
15991 # what "hidden" libraries, object files and flags are used when
15992 # linking a shared library.
15993 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
15995 # g++ 2.7 appears to require `-G' NOT `-shared' on this
15997 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
15998 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
15999 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
16001 # Commands to make compiler produce verbose output that lists
16002 # what "hidden" libraries, object files and flags are used when
16003 # linking a shared library.
16004 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
16007 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
16009 solaris2.[0-5] | solaris2.[0-5].*) ;;
16011 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
16019 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
16020 no_undefined_flag_CXX='${wl}-z,text'
16021 archive_cmds_need_lc_CXX=no
16022 hardcode_shlibpath_var_CXX=no
16023 runpath_var='LD_RUN_PATH'
16025 case $cc_basename in
16027 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16028 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16031 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16032 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16037 sysv5* | sco3.2v5* | sco5v6*)
16038 # Note: We can NOT use -z defs as we might desire, because we do not
16039 # link with -lc, and that would cause any symbols used from libc to
16040 # always be unresolved, which means just about no library would
16041 # ever link correctly. If we're not using GNU ld we use -z text
16042 # though, which does catch some bad symbols but isn't as heavy-handed
16044 no_undefined_flag_CXX='${wl}-z,text'
16045 allow_undefined_flag_CXX='${wl}-z,nodefs'
16046 archive_cmds_need_lc_CXX=no
16047 hardcode_shlibpath_var_CXX=no
16048 hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
16049 hardcode_libdir_separator_CXX=':'
16050 link_all_deplibs_CXX=yes
16051 export_dynamic_flag_spec_CXX='${wl}-Bexport'
16052 runpath_var='LD_RUN_PATH'
16054 case $cc_basename in
16056 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16057 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16058 old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
16059 '"$old_archive_cmds_CXX"
16060 reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
16061 '"$reload_cmds_CXX"
16064 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16065 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16071 case $cc_basename in
16073 # NonStop-UX NCC 3.20
16074 # FIXME: insert proper C++ library support
16078 # FIXME: insert proper C++ library support
16085 # FIXME: insert proper C++ library support
16090 # FIXME: insert proper C++ library support
16095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
16096 $as_echo "$ld_shlibs_CXX" >&6; }
16097 test "$ld_shlibs_CXX" = no && can_build_shared=no
16103 ## There is no encapsulation within the following macros, do not change
16104 ## the running order or otherwise move them around unless you know exactly
16105 ## what you are doing...
16106 # Dependencies to place before and after the object being linked:
16107 predep_objects_CXX=
16108 postdep_objects_CXX=
16111 compiler_lib_search_path_CXX=
16113 cat > conftest.$ac_ext <<_LT_EOF
16117 Foo (void) { a = 0; }
16124 _lt_libdeps_save_CFLAGS=$CFLAGS
16125 case "$CC $CFLAGS " in #(
16126 *\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;;
16127 *\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;;
16130 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
16131 (eval $ac_compile) 2>&5
16133 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16134 test $ac_status = 0; }; then
16135 # Parse the compiler output and extract the necessary
16136 # objects, libraries and library flags.
16138 # Sentinel used to keep track of whether or not we are before
16139 # the conftest object file.
16140 pre_test_object_deps_done=no
16142 for p in `eval "$output_verbose_link_cmd"`; do
16143 case ${prev}${p} in
16146 # Some compilers place space between "-{L,R}" and the path.
16147 # Remove the space.
16148 if test $p = "-L" ||
16149 test $p = "-R"; then
16154 # Expand the sysroot to ease extracting the directories later.
16155 if test -z "$prev"; then
16157 -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;;
16158 -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;;
16159 -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;;
16163 =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;;
16165 if test "$pre_test_object_deps_done" = no; then
16168 # Internal compiler library paths should come after those
16169 # provided the user. The postdeps already come after the
16170 # user supplied libs so there is no need to process them.
16171 if test -z "$compiler_lib_search_path_CXX"; then
16172 compiler_lib_search_path_CXX="${prev}${p}"
16174 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
16177 # The "-l" case would never come before the object being
16178 # linked, so don't bother handling this case.
16181 if test -z "$postdeps_CXX"; then
16182 postdeps_CXX="${prev}${p}"
16184 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
16190 *.lto.$objext) ;; # Ignore GCC LTO objects
16192 # This assumes that the test object file only shows up
16193 # once in the compiler output.
16194 if test "$p" = "conftest.$objext"; then
16195 pre_test_object_deps_done=yes
16199 if test "$pre_test_object_deps_done" = no; then
16200 if test -z "$predep_objects_CXX"; then
16201 predep_objects_CXX="$p"
16203 predep_objects_CXX="$predep_objects_CXX $p"
16206 if test -z "$postdep_objects_CXX"; then
16207 postdep_objects_CXX="$p"
16209 postdep_objects_CXX="$postdep_objects_CXX $p"
16214 *) ;; # Ignore the rest.
16222 echo "libtool.m4: error: problem compiling CXX test program"
16225 $RM -f confest.$objext
16226 CFLAGS=$_lt_libdeps_save_CFLAGS
16228 # PORTME: override above test on systems where it is broken
16231 # Interix 3.5 installs completely hosed .la files for C++, so rather than
16232 # hack all around it, let's just trust "g++" to DTRT.
16233 predep_objects_CXX=
16234 postdep_objects_CXX=
16239 case `$CC -V 2>&1 | sed 5q` in
16243 # The more standards-conforming stlport4 library is
16244 # incompatible with the Cstd library. Avoid specifying
16245 # it if it's in CXXFLAGS. Ignore libCrun as
16246 # -library=stlport4 depends on it.
16247 case " $CXX $CXXFLAGS " in
16248 *" -library=stlport4 "*)
16249 solaris_use_stlport4=yes
16253 if test "$solaris_use_stlport4" != yes; then
16254 postdeps_CXX='-library=Cstd -library=Crun'
16261 case $cc_basename in
16263 # The more standards-conforming stlport4 library is
16264 # incompatible with the Cstd library. Avoid specifying
16265 # it if it's in CXXFLAGS. Ignore libCrun as
16266 # -library=stlport4 depends on it.
16267 case " $CXX $CXXFLAGS " in
16268 *" -library=stlport4 "*)
16269 solaris_use_stlport4=yes
16273 # Adding this requires a known-good setup of shared libraries for
16274 # Sun compiler versions before 5.6, else PIC objects from an old
16275 # archive will be linked into the output, leading to subtle bugs.
16276 if test "$solaris_use_stlport4" != yes; then
16277 postdeps_CXX='-library=Cstd -library=Crun'
16285 case " $postdeps_CXX " in
16286 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
16288 compiler_lib_search_dirs_CXX=
16289 if test -n "${compiler_lib_search_path_CXX}"; then
16290 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
16323 lt_prog_compiler_wl_CXX=
16324 lt_prog_compiler_pic_CXX=
16325 lt_prog_compiler_static_CXX=
16328 # C++ specific cases for pic, static, wl, etc.
16329 if test "$GXX" = yes; then
16330 lt_prog_compiler_wl_CXX='-Wl,'
16331 lt_prog_compiler_static_CXX='-static'
16335 # All AIX code is PIC.
16336 if test "$host_cpu" = ia64; then
16337 # AIX 5 now supports IA64 processor
16338 lt_prog_compiler_static_CXX='-Bstatic'
16345 # see comment about AmigaOS4 .so support
16346 lt_prog_compiler_pic_CXX='-fPIC'
16349 # FIXME: we need at least 68020 code to build shared libraries, but
16350 # adding the `-m68020' flag to GCC prevents building anything better,
16352 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
16357 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
16358 # PIC is the default for these OSes.
16360 mingw* | cygwin* | os2* | pw32* | cegcc*)
16361 # This hack is so that the source file can tell whether it is being
16362 # built for inclusion in a dll (and should export symbols for example).
16363 # Although the cygwin gcc ignores -fPIC, still need this for old-style
16364 # (--disable-auto-import) libraries
16365 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
16367 darwin* | rhapsody*)
16368 # PIC is the default on this platform
16369 # Common symbols not allowed in MH_DYLIB files
16370 lt_prog_compiler_pic_CXX='-fno-common'
16373 # DJGPP does not support shared libraries at all
16374 lt_prog_compiler_pic_CXX=
16377 # PIC is the default for Haiku.
16378 # The "-static" flag exists, but is broken.
16379 lt_prog_compiler_static_CXX=
16382 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
16383 # Instead, we relocate shared libraries at runtime.
16386 if test -d /usr/nec; then
16387 lt_prog_compiler_pic_CXX=-Kconform_pic
16391 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
16392 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
16393 # sets the default TLS model and affects inlining.
16398 lt_prog_compiler_pic_CXX='-fPIC'
16403 # QNX uses GNU C++, but need to define -shared option too, otherwise
16404 # it will coredump.
16405 lt_prog_compiler_pic_CXX='-fPIC -shared'
16408 lt_prog_compiler_pic_CXX='-fPIC'
16414 # All AIX code is PIC.
16415 if test "$host_cpu" = ia64; then
16416 # AIX 5 now supports IA64 processor
16417 lt_prog_compiler_static_CXX='-Bstatic'
16419 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
16423 case $cc_basename in
16425 # Green Hills C++ Compiler
16426 # _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"
16430 mingw* | cygwin* | os2* | pw32* | cegcc*)
16431 # This hack is so that the source file can tell whether it is being
16432 # built for inclusion in a dll (and should export symbols for example).
16433 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
16436 case $cc_basename in
16438 lt_prog_compiler_pic_CXX='-KPIC'
16441 # Green Hills C++ Compiler
16442 lt_prog_compiler_pic_CXX='-pic'
16448 freebsd* | dragonfly*)
16449 # FreeBSD uses GNU C++
16451 hpux9* | hpux10* | hpux11*)
16452 case $cc_basename in
16454 lt_prog_compiler_wl_CXX='-Wl,'
16455 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
16456 if test "$host_cpu" != ia64; then
16457 lt_prog_compiler_pic_CXX='+Z'
16461 lt_prog_compiler_wl_CXX='-Wl,'
16462 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
16468 lt_prog_compiler_pic_CXX='+Z'
16477 # This is c89, which is MS Visual C++ (no shared libs)
16478 # Anyone wants to do a port?
16480 irix5* | irix6* | nonstopux*)
16481 case $cc_basename in
16483 lt_prog_compiler_wl_CXX='-Wl,'
16484 lt_prog_compiler_static_CXX='-non_shared'
16485 # CC pic flag -KPIC is the default.
16491 linux* | k*bsd*-gnu | kopensolaris*-gnu)
16492 case $cc_basename in
16495 lt_prog_compiler_wl_CXX='--backend -Wl,'
16496 lt_prog_compiler_pic_CXX='-fPIC'
16499 # old Intel C++ for x86_64 which still supported -KPIC.
16500 lt_prog_compiler_wl_CXX='-Wl,'
16501 lt_prog_compiler_pic_CXX='-KPIC'
16502 lt_prog_compiler_static_CXX='-static'
16505 # Intel C++, used to be incompatible with GCC.
16506 # ICC 10 doesn't accept -KPIC any more.
16507 lt_prog_compiler_wl_CXX='-Wl,'
16508 lt_prog_compiler_pic_CXX='-fPIC'
16509 lt_prog_compiler_static_CXX='-static'
16512 # Portland Group C++ compiler
16513 lt_prog_compiler_wl_CXX='-Wl,'
16514 lt_prog_compiler_pic_CXX='-fpic'
16515 lt_prog_compiler_static_CXX='-Bstatic'
16519 # Make sure the PIC flag is empty. It appears that all Alpha
16520 # Linux and Compaq Tru64 Unix objects are PIC.
16521 lt_prog_compiler_pic_CXX=
16522 lt_prog_compiler_static_CXX='-non_shared'
16524 xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
16525 # IBM XL 8.0, 9.0 on PPC and BlueGene
16526 lt_prog_compiler_wl_CXX='-Wl,'
16527 lt_prog_compiler_pic_CXX='-qpic'
16528 lt_prog_compiler_static_CXX='-qstaticlink'
16531 case `$CC -V 2>&1 | sed 5q` in
16534 lt_prog_compiler_pic_CXX='-KPIC'
16535 lt_prog_compiler_static_CXX='-Bstatic'
16536 lt_prog_compiler_wl_CXX='-Qoption ld '
16547 case $cc_basename in
16549 lt_prog_compiler_pic_CXX='-W c,exportall'
16558 # QNX uses GNU C++, but need to define -shared option too, otherwise
16559 # it will coredump.
16560 lt_prog_compiler_pic_CXX='-fPIC -shared'
16562 osf3* | osf4* | osf5*)
16563 case $cc_basename in
16565 lt_prog_compiler_wl_CXX='--backend -Wl,'
16568 # Rational C++ 2.4.1
16569 lt_prog_compiler_pic_CXX='-pic'
16572 # Digital/Compaq C++
16573 lt_prog_compiler_wl_CXX='-Wl,'
16574 # Make sure the PIC flag is empty. It appears that all Alpha
16575 # Linux and Compaq Tru64 Unix objects are PIC.
16576 lt_prog_compiler_pic_CXX=
16577 lt_prog_compiler_static_CXX='-non_shared'
16586 case $cc_basename in
16588 # Sun C++ 4.2, 5.x and Centerline C++
16589 lt_prog_compiler_pic_CXX='-KPIC'
16590 lt_prog_compiler_static_CXX='-Bstatic'
16591 lt_prog_compiler_wl_CXX='-Qoption ld '
16594 # Green Hills C++ Compiler
16595 lt_prog_compiler_pic_CXX='-PIC'
16602 case $cc_basename in
16605 lt_prog_compiler_pic_CXX='-pic'
16606 lt_prog_compiler_static_CXX='-Bstatic'
16610 lt_prog_compiler_pic_CXX='-pic'
16616 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
16617 case $cc_basename in
16619 lt_prog_compiler_wl_CXX='-Wl,'
16620 lt_prog_compiler_pic_CXX='-KPIC'
16621 lt_prog_compiler_static_CXX='-Bstatic'
16626 case $cc_basename in
16628 # NonStop-UX NCC 3.20
16629 lt_prog_compiler_pic_CXX='-KPIC'
16638 lt_prog_compiler_can_build_shared_CXX=no
16644 # For platforms which do not support PIC, -DPIC is meaningless:
16646 lt_prog_compiler_pic_CXX=
16649 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
16653 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
16654 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
16655 if test "${lt_cv_prog_compiler_pic_CXX+set}" = set; then :
16656 $as_echo_n "(cached) " >&6
16658 lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX
16660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_CXX" >&5
16661 $as_echo "$lt_cv_prog_compiler_pic_CXX" >&6; }
16662 lt_prog_compiler_pic_CXX=$lt_cv_prog_compiler_pic_CXX
16665 # Check to make sure the PIC flag actually works.
16667 if test -n "$lt_prog_compiler_pic_CXX"; then
16668 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
16669 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
16670 if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then :
16671 $as_echo_n "(cached) " >&6
16673 lt_cv_prog_compiler_pic_works_CXX=no
16674 ac_outfile=conftest.$ac_objext
16675 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16676 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
16677 # Insert the option either (1) after the last *FLAGS variable, or
16678 # (2) before a word containing "conftest.", or (3) at the end.
16679 # Note that $ac_compile itself does not contain backslashes and begins
16680 # with a dollar sign (not a hyphen), so the echo should work correctly.
16681 # The option is referenced via a variable to avoid confusing sed.
16682 lt_compile=`echo "$ac_compile" | $SED \
16683 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16684 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16685 -e 's:$: $lt_compiler_flag:'`
16686 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
16687 (eval "$lt_compile" 2>conftest.err)
16689 cat conftest.err >&5
16690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16691 if (exit $ac_status) && test -s "$ac_outfile"; then
16692 # The compiler can only warn and ignore the option if not recognized
16693 # So say no if there are warnings other than the usual output.
16694 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
16695 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16696 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
16697 lt_cv_prog_compiler_pic_works_CXX=yes
16703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
16704 $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
16706 if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
16707 case $lt_prog_compiler_pic_CXX in
16709 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
16712 lt_prog_compiler_pic_CXX=
16713 lt_prog_compiler_can_build_shared_CXX=no
16723 # Check to make sure the static flag actually works.
16725 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
16726 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
16727 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
16728 if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then :
16729 $as_echo_n "(cached) " >&6
16731 lt_cv_prog_compiler_static_works_CXX=no
16732 save_LDFLAGS="$LDFLAGS"
16733 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
16734 echo "$lt_simple_link_test_code" > conftest.$ac_ext
16735 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
16736 # The linker can only warn and ignore the option if not recognized
16737 # So say no if there are warnings
16738 if test -s conftest.err; then
16739 # Append any errors to the config.log.
16740 cat conftest.err 1>&5
16741 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
16742 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16743 if diff conftest.exp conftest.er2 >/dev/null; then
16744 lt_cv_prog_compiler_static_works_CXX=yes
16747 lt_cv_prog_compiler_static_works_CXX=yes
16751 LDFLAGS="$save_LDFLAGS"
16754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
16755 $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
16757 if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
16760 lt_prog_compiler_static_CXX=
16766 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
16767 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
16768 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
16769 $as_echo_n "(cached) " >&6
16771 lt_cv_prog_compiler_c_o_CXX=no
16772 $RM -r conftest 2>/dev/null
16776 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16778 lt_compiler_flag="-o out/conftest2.$ac_objext"
16779 # Insert the option either (1) after the last *FLAGS variable, or
16780 # (2) before a word containing "conftest.", or (3) at the end.
16781 # Note that $ac_compile itself does not contain backslashes and begins
16782 # with a dollar sign (not a hyphen), so the echo should work correctly.
16783 lt_compile=`echo "$ac_compile" | $SED \
16784 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16785 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16786 -e 's:$: $lt_compiler_flag:'`
16787 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
16788 (eval "$lt_compile" 2>out/conftest.err)
16790 cat out/conftest.err >&5
16791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16792 if (exit $ac_status) && test -s out/conftest2.$ac_objext
16794 # The compiler can only warn and ignore the option if not recognized
16795 # So say no if there are warnings
16796 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
16797 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
16798 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
16799 lt_cv_prog_compiler_c_o_CXX=yes
16804 # SGI C++ compiler will create directory out/ii_files/ for
16805 # template instantiation
16806 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
16807 $RM out/* && rmdir out
16813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
16814 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
16818 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
16819 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
16820 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
16821 $as_echo_n "(cached) " >&6
16823 lt_cv_prog_compiler_c_o_CXX=no
16824 $RM -r conftest 2>/dev/null
16828 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16830 lt_compiler_flag="-o out/conftest2.$ac_objext"
16831 # Insert the option either (1) after the last *FLAGS variable, or
16832 # (2) before a word containing "conftest.", or (3) at the end.
16833 # Note that $ac_compile itself does not contain backslashes and begins
16834 # with a dollar sign (not a hyphen), so the echo should work correctly.
16835 lt_compile=`echo "$ac_compile" | $SED \
16836 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16837 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16838 -e 's:$: $lt_compiler_flag:'`
16839 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
16840 (eval "$lt_compile" 2>out/conftest.err)
16842 cat out/conftest.err >&5
16843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16844 if (exit $ac_status) && test -s out/conftest2.$ac_objext
16846 # The compiler can only warn and ignore the option if not recognized
16847 # So say no if there are warnings
16848 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
16849 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
16850 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
16851 lt_cv_prog_compiler_c_o_CXX=yes
16856 # SGI C++ compiler will create directory out/ii_files/ for
16857 # template instantiation
16858 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
16859 $RM out/* && rmdir out
16865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
16866 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
16871 hard_links="nottested"
16872 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
16873 # do not overwrite the value of need_locks provided by the user
16874 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
16875 $as_echo_n "checking if we can lock with hard links... " >&6; }
16878 ln conftest.a conftest.b 2>/dev/null && hard_links=no
16880 ln conftest.a conftest.b 2>&5 || hard_links=no
16881 ln conftest.a conftest.b 2>/dev/null && hard_links=no
16882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
16883 $as_echo "$hard_links" >&6; }
16884 if test "$hard_links" = no; then
16885 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
16886 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
16895 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
16896 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
16898 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
16899 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
16902 # If we're using GNU nm, then we don't want the "-C" option.
16903 # -C means demangle to AIX nm, but means don't demangle with GNU nm
16904 # Also, AIX nm treats weak defined symbols like other global defined
16905 # symbols, whereas GNU nm marks them as "W".
16906 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
16907 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'
16909 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'
16913 export_symbols_cmds_CXX="$ltdll_cmds"
16915 cygwin* | mingw* | cegcc*)
16916 case $cc_basename in
16919 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'
16920 exclude_expsyms_CXX='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
16925 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
16929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
16930 $as_echo "$ld_shlibs_CXX" >&6; }
16931 test "$ld_shlibs_CXX" = no && can_build_shared=no
16933 with_gnu_ld_CXX=$with_gnu_ld
16941 # Do we need to explicitly link libc?
16943 case "x$archive_cmds_need_lc_CXX" in
16945 # Assume -lc should be added
16946 archive_cmds_need_lc_CXX=yes
16948 if test "$enable_shared" = yes && test "$GCC" = yes; then
16949 case $archive_cmds_CXX in
16951 # FIXME: we may have to deal with multi-command sequences.
16954 # Test whether the compiler implicitly links with -lc since on some
16955 # systems, -lgcc has to come before -lc. If gcc already passes -lc
16956 # to ld, don't add -lc before -lgcc.
16957 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
16958 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
16959 if test "${lt_cv_archive_cmds_need_lc_CXX+set}" = set; then :
16960 $as_echo_n "(cached) " >&6
16963 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16965 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
16966 (eval $ac_compile) 2>&5
16968 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16969 test $ac_status = 0; } 2>conftest.err; then
16972 libobjs=conftest.$ac_objext
16974 wl=$lt_prog_compiler_wl_CXX
16975 pic_flag=$lt_prog_compiler_pic_CXX
16981 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
16982 allow_undefined_flag_CXX=
16983 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
16984 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
16986 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16987 test $ac_status = 0; }
16989 lt_cv_archive_cmds_need_lc_CXX=no
16991 lt_cv_archive_cmds_need_lc_CXX=yes
16993 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
16995 cat conftest.err 1>&5
17000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
17001 $as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
17002 archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
17072 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
17073 $as_echo_n "checking dynamic linker characteristics... " >&6; }
17075 library_names_spec=
17076 libname_spec='lib$name'
17080 postuninstall_cmds=
17084 shlibpath_overrides_runpath=unknown
17086 dynamic_linker="$host_os ld.so"
17087 sys_lib_dlsearch_path_spec="/lib /usr/lib"
17088 need_lib_prefix=unknown
17089 hardcode_into_libs=no
17091 # when you set need_version to no, make sure it does not cause -set_version
17092 # flags to be left without arguments
17093 need_version=unknown
17098 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
17099 shlibpath_var=LIBPATH
17101 # AIX 3 has no versioning support, so we append a major version to the name.
17102 soname_spec='${libname}${release}${shared_ext}$major'
17109 hardcode_into_libs=yes
17110 if test "$host_cpu" = ia64; then
17111 # AIX 5 supports IA64
17112 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
17113 shlibpath_var=LD_LIBRARY_PATH
17115 # With GCC up to 2.95.x, collect2 would create an import file
17116 # for dependence libraries. The import file would start with
17117 # the line `#! .'. This would cause the generated library to
17118 # depend on `.', always an invalid library. This was fixed in
17119 # development snapshots of GCC prior to 3.0.
17121 aix4 | aix4.[01] | aix4.[01].*)
17122 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
17124 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
17127 can_build_shared=no
17131 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
17132 # soname into executable. Probably we can add versioning support to
17133 # collect2, so additional links can be useful in future.
17134 if test "$aix_use_runtimelinking" = yes; then
17135 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
17136 # instead of lib<name>.a to let people know that these are not
17137 # typical AIX shared libraries.
17138 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17140 # We preserve .a as extension for shared libraries through AIX4.2
17141 # and later when we are not doing run time linking.
17142 library_names_spec='${libname}${release}.a $libname.a'
17143 soname_spec='${libname}${release}${shared_ext}$major'
17145 shlibpath_var=LIBPATH
17152 # Since July 2007 AmigaOS4 officially supports .so libraries.
17153 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
17154 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17157 library_names_spec='$libname.ixlibrary $libname.a'
17158 # Create ${libname}_ixlibrary.a entries in /sys/libs.
17159 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'
17165 library_names_spec='${libname}${shared_ext}'
17166 dynamic_linker="$host_os ld.so"
17167 shlibpath_var=LIBRARY_PATH
17173 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17174 soname_spec='${libname}${release}${shared_ext}$major'
17175 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
17176 shlibpath_var=LD_LIBRARY_PATH
17177 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
17178 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
17179 # the default ld.so.conf also contains /usr/contrib/lib and
17180 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
17181 # libtool to hard-code these into programs
17184 cygwin* | mingw* | pw32* | cegcc*)
17185 version_type=windows
17190 case $GCC,$cc_basename in
17193 library_names_spec='$libname.dll.a'
17194 # DLL is installed to $(libdir)/../bin by postinstall_cmds
17195 postinstall_cmds='base_file=`basename \${file}`~
17196 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
17197 dldir=$destdir/`dirname \$dlpath`~
17198 test -d \$dldir || mkdir -p \$dldir~
17199 $install_prog $dir/$dlname \$dldir/$dlname~
17200 chmod a+x \$dldir/$dlname~
17201 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
17202 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
17204 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
17205 dlpath=$dir/\$dldll~
17207 shlibpath_overrides_runpath=yes
17211 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
17212 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17216 # MinGW DLLs use traditional 'lib' prefix
17217 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17220 # pw32 DLLs use 'pw' prefix rather than 'lib'
17221 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17224 dynamic_linker='Win32 ld.exe'
17229 libname_spec='$name'
17230 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17231 library_names_spec='${libname}.dll.lib'
17235 sys_lib_search_path_spec=
17238 for lt_path in $LIB
17241 # Let DOS variable expansion print the short 8.3 style file name.
17242 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
17243 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
17246 # Convert to MSYS style.
17247 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
17250 # Convert to unix form, then to dos form, then back to unix form
17251 # but this time dos style (no spaces!) so that the unix form looks
17252 # like /cygdrive/c/PROGRA~1:/cygdr...
17253 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
17254 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
17255 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
17258 sys_lib_search_path_spec="$LIB"
17259 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
17260 # It is most probably a Windows format PATH.
17261 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
17263 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
17265 # FIXME: find the short name or the path components, as spaces are
17266 # common. (e.g. "Program Files" -> "PROGRA~1")
17270 # DLL is installed to $(libdir)/../bin by postinstall_cmds
17271 postinstall_cmds='base_file=`basename \${file}`~
17272 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
17273 dldir=$destdir/`dirname \$dlpath`~
17274 test -d \$dldir || mkdir -p \$dldir~
17275 $install_prog $dir/$dlname \$dldir/$dlname'
17276 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
17277 dlpath=$dir/\$dldll~
17279 shlibpath_overrides_runpath=yes
17280 dynamic_linker='Win32 link.exe'
17284 # Assume MSVC wrapper
17285 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
17286 dynamic_linker='Win32 ld.exe'
17289 # FIXME: first we should search . and the directory the executable is in
17293 darwin* | rhapsody*)
17294 dynamic_linker="$host_os dyld"
17295 version_type=darwin
17298 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
17299 soname_spec='${libname}${release}${major}$shared_ext'
17300 shlibpath_overrides_runpath=yes
17301 shlibpath_var=DYLD_LIBRARY_PATH
17302 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
17304 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
17311 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
17312 soname_spec='${libname}${release}${shared_ext}$major'
17313 shlibpath_var=LD_LIBRARY_PATH
17320 freebsd* | dragonfly*)
17321 # DragonFly does not have aout. When/if they implement a new
17322 # versioning mechanism, adjust this.
17323 if test -x /usr/bin/objformat; then
17324 objformat=`/usr/bin/objformat`
17327 freebsd[123]*) objformat=aout ;;
17328 *) objformat=elf ;;
17331 version_type=freebsd-$objformat
17332 case $version_type in
17334 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17339 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
17343 shlibpath_var=LD_LIBRARY_PATH
17346 shlibpath_overrides_runpath=yes
17348 freebsd3.[01]* | freebsdelf3.[01]*)
17349 shlibpath_overrides_runpath=yes
17350 hardcode_into_libs=yes
17352 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
17353 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
17354 shlibpath_overrides_runpath=no
17355 hardcode_into_libs=yes
17357 *) # from 4.6 on, and DragonFly
17358 shlibpath_overrides_runpath=yes
17359 hardcode_into_libs=yes
17368 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
17369 soname_spec='${libname}${release}${shared_ext}$major'
17370 shlibpath_var=LD_LIBRARY_PATH
17371 hardcode_into_libs=yes
17378 dynamic_linker="$host_os runtime_loader"
17379 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
17380 soname_spec='${libname}${release}${shared_ext}$major'
17381 shlibpath_var=LIBRARY_PATH
17382 shlibpath_overrides_runpath=yes
17383 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
17384 hardcode_into_libs=yes
17387 hpux9* | hpux10* | hpux11*)
17388 # Give a soname corresponding to the major version so that dld.sl refuses to
17389 # link against other versions.
17396 hardcode_into_libs=yes
17397 dynamic_linker="$host_os dld.so"
17398 shlibpath_var=LD_LIBRARY_PATH
17399 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17400 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17401 soname_spec='${libname}${release}${shared_ext}$major'
17402 if test "X$HPUX_IA64_MODE" = X32; then
17403 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
17405 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
17407 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17411 hardcode_into_libs=yes
17412 dynamic_linker="$host_os dld.sl"
17413 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
17414 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17415 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17416 soname_spec='${libname}${release}${shared_ext}$major'
17417 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
17418 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17422 dynamic_linker="$host_os dld.sl"
17423 shlibpath_var=SHLIB_PATH
17424 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
17425 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17426 soname_spec='${libname}${release}${shared_ext}$major'
17429 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
17430 postinstall_cmds='chmod 555 $lib'
17431 # or fails outright, so override atomically:
17432 install_override_mode=555
17439 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17440 soname_spec='${libname}${release}${shared_ext}$major'
17441 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
17442 shlibpath_var=LD_LIBRARY_PATH
17443 shlibpath_overrides_runpath=no
17444 hardcode_into_libs=yes
17447 irix5* | irix6* | nonstopux*)
17449 nonstopux*) version_type=nonstopux ;;
17451 if test "$lt_cv_prog_gnu_ld" = yes; then
17459 soname_spec='${libname}${release}${shared_ext}$major'
17460 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
17462 irix5* | nonstopux*)
17463 libsuff= shlibsuff=
17466 case $LD in # libtool.m4 will add one of these switches to LD
17467 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
17468 libsuff= shlibsuff= libmagic=32-bit;;
17469 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
17470 libsuff=32 shlibsuff=N32 libmagic=N32;;
17471 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
17472 libsuff=64 shlibsuff=64 libmagic=64-bit;;
17473 *) libsuff= shlibsuff= libmagic=never-match;;
17477 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
17478 shlibpath_overrides_runpath=no
17479 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
17480 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
17481 hardcode_into_libs=yes
17484 # No shared lib support for Linux oldld, aout, or coff.
17485 linux*oldld* | linux*aout* | linux*coff*)
17489 # This must be Linux ELF.
17490 linux* | k*bsd*-gnu | kopensolaris*-gnu)
17494 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17495 soname_spec='${libname}${release}${shared_ext}$major'
17496 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
17497 shlibpath_var=LD_LIBRARY_PATH
17498 shlibpath_overrides_runpath=no
17500 # Some binutils ld are patched to set DT_RUNPATH
17501 if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
17502 $as_echo_n "(cached) " >&6
17504 lt_cv_shlibpath_overrides_runpath=no
17505 save_LDFLAGS=$LDFLAGS
17506 save_libdir=$libdir
17507 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
17508 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
17509 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17510 /* end confdefs.h. */
17520 if ac_fn_cxx_try_link "$LINENO"; then :
17521 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
17522 lt_cv_shlibpath_overrides_runpath=yes
17525 rm -f core conftest.err conftest.$ac_objext \
17526 conftest$ac_exeext conftest.$ac_ext
17527 LDFLAGS=$save_LDFLAGS
17528 libdir=$save_libdir
17532 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
17534 # This implies no fast_install, which is unacceptable.
17535 # Some rework will be needed to allow for fast_install
17536 # before this can be enabled.
17537 hardcode_into_libs=yes
17539 # Append ld.so.conf contents to the search path
17540 if test -f /etc/ld.so.conf; then
17541 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' ' '`
17542 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
17545 # We used to test for /lib/ld.so.1 and disable shared libraries on
17546 # powerpc, because MkLinux only supported shared libraries with the
17547 # GNU dynamic linker. Since this was broken with cross compilers,
17548 # most powerpc-linux boxes support dynamic linking these days and
17549 # people can always --disable-shared, the test was removed, and we
17550 # assume the GNU/Linux dynamic linker is in use.
17551 dynamic_linker='GNU/Linux ld.so'
17558 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
17559 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17560 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17561 dynamic_linker='NetBSD (a.out) ld.so'
17563 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17564 soname_spec='${libname}${release}${shared_ext}$major'
17565 dynamic_linker='NetBSD ld.elf_so'
17567 shlibpath_var=LD_LIBRARY_PATH
17568 shlibpath_overrides_runpath=yes
17569 hardcode_into_libs=yes
17574 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17575 shlibpath_var=LD_LIBRARY_PATH
17576 shlibpath_overrides_runpath=yes
17583 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17584 soname_spec='${libname}${release}${shared_ext}$major'
17585 shlibpath_var=LD_LIBRARY_PATH
17586 shlibpath_overrides_runpath=no
17587 hardcode_into_libs=yes
17588 dynamic_linker='ldqnx.so'
17593 sys_lib_dlsearch_path_spec="/usr/lib"
17595 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
17597 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
17598 *) need_version=no ;;
17600 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17601 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17602 shlibpath_var=LD_LIBRARY_PATH
17603 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17605 openbsd2.[89] | openbsd2.[89].*)
17606 shlibpath_overrides_runpath=no
17609 shlibpath_overrides_runpath=yes
17613 shlibpath_overrides_runpath=yes
17618 libname_spec='$name'
17621 library_names_spec='$libname${shared_ext} $libname.a'
17622 dynamic_linker='OS/2 ld.exe'
17623 shlibpath_var=LIBPATH
17626 osf3* | osf4* | osf5*)
17630 soname_spec='${libname}${release}${shared_ext}$major'
17631 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17632 shlibpath_var=LD_LIBRARY_PATH
17633 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
17634 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
17645 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17646 soname_spec='${libname}${release}${shared_ext}$major'
17647 shlibpath_var=LD_LIBRARY_PATH
17648 shlibpath_overrides_runpath=yes
17649 hardcode_into_libs=yes
17650 # ldd complains unless libraries are executable
17651 postinstall_cmds='chmod +x $lib'
17656 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17657 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
17658 shlibpath_var=LD_LIBRARY_PATH
17659 shlibpath_overrides_runpath=yes
17660 if test "$with_gnu_ld" = yes; then
17668 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17669 soname_spec='${libname}${release}${shared_ext}$major'
17670 shlibpath_var=LD_LIBRARY_PATH
17671 case $host_vendor in
17673 shlibpath_overrides_runpath=no
17675 runpath_var=LD_RUN_PATH
17683 shlibpath_overrides_runpath=no
17684 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
17690 if test -d /usr/nec ;then
17692 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
17693 soname_spec='$libname${shared_ext}.$major'
17694 shlibpath_var=LD_LIBRARY_PATH
17698 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
17699 version_type=freebsd-elf
17702 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17703 soname_spec='${libname}${release}${shared_ext}$major'
17704 shlibpath_var=LD_LIBRARY_PATH
17705 shlibpath_overrides_runpath=yes
17706 hardcode_into_libs=yes
17707 if test "$with_gnu_ld" = yes; then
17708 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
17710 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
17713 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
17717 sys_lib_dlsearch_path_spec='/usr/lib'
17721 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
17725 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17726 shlibpath_var=LD_LIBRARY_PATH
17727 shlibpath_overrides_runpath=no
17728 hardcode_into_libs=yes
17733 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17734 soname_spec='${libname}${release}${shared_ext}$major'
17735 shlibpath_var=LD_LIBRARY_PATH
17742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
17743 $as_echo "$dynamic_linker" >&6; }
17744 test "$dynamic_linker" = no && can_build_shared=no
17746 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
17747 if test "$GCC" = yes; then
17748 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
17751 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
17752 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
17754 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
17755 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
17795 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
17796 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
17797 hardcode_action_CXX=
17798 if test -n "$hardcode_libdir_flag_spec_CXX" ||
17799 test -n "$runpath_var_CXX" ||
17800 test "X$hardcode_automatic_CXX" = "Xyes" ; then
17802 # We can hardcode non-existent directories.
17803 if test "$hardcode_direct_CXX" != no &&
17804 # If the only mechanism to avoid hardcoding is shlibpath_var, we
17805 # have to relink, otherwise we might link with an installed library
17806 # when we should be linking with a yet-to-be-installed one
17807 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
17808 test "$hardcode_minus_L_CXX" != no; then
17809 # Linking always hardcodes the temporary library directory.
17810 hardcode_action_CXX=relink
17812 # We can link without hardcoding, and we can hardcode nonexisting dirs.
17813 hardcode_action_CXX=immediate
17816 # We cannot hardcode anything, or else we can only hardcode existing
17818 hardcode_action_CXX=unsupported
17820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
17821 $as_echo "$hardcode_action_CXX" >&6; }
17823 if test "$hardcode_action_CXX" = relink ||
17824 test "$inherit_rpath_CXX" = yes; then
17825 # Fast installation is not supported
17826 enable_fast_install=no
17827 elif test "$shlibpath_overrides_runpath" = yes ||
17828 test "$enable_shared" = no; then
17829 # Fast installation is not necessary
17830 enable_fast_install=needless
17839 fi # test -n "$compiler"
17842 CFLAGS=$lt_save_CFLAGS
17846 with_gnu_ld=$lt_save_with_gnu_ld
17847 lt_cv_path_LDCXX=$lt_cv_path_LD
17848 lt_cv_path_LD=$lt_save_path_LD
17849 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
17850 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
17851 fi # test "$_lt_caught_CXX_error" != yes
17854 ac_cpp='$CPP $CPPFLAGS'
17855 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17856 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17857 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17862 if test "$GCC" = "yes" ; then
17863 # AC_HAVE_GCC_VERSION(4,0,0,0,
17865 # AC_DEFINE(GCC_HASCLASSVISIBILITY,1,
17866 # [Define to enable class visibility control in gcc.])
17867 # GCC_CFLAGS="$GCC_CFLAGS -fvisibility=hidden -fvisibility-inlines-hidden"
17868 # GCC_CXXFLAGS="$GCC_CXXFLAGS -fvisibility=hidden -fvisibility-inlines-hidden"
17870 CFLAGS="-Wall $GCC_CFLAGS"
17871 CXXFLAGS="-Wall $GCC_CXXFLAGS"
17873 # Fix for Sun Workshop compiler in debug mode, may be Sun case #6360993
17874 case "${host_cpu}-${host_os}" in
17876 if test "$CXX" = "CC" ; then
17877 CXXFLAGS="$CXXFLAGS -Qoption ccfe -stabs=no%dfltlit+no%dflthlp"
17883 # Checks for typedefs, structures, and compiler characteristics.
17884 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
17885 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
17886 if test "${ac_cv_c_const+set}" = set; then :
17887 $as_echo_n "(cached) " >&6
17889 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17890 /* end confdefs.h. */
17895 /* FIXME: Include the comments suggested by Paul. */
17896 #ifndef __cplusplus
17897 /* Ultrix mips cc rejects this. */
17898 typedef int charset[2];
17900 /* SunOS 4.1.1 cc rejects this. */
17901 char const *const *pcpcc;
17903 /* NEC SVR4.0.2 mips cc rejects this. */
17904 struct point {int x, y;};
17905 static struct point const zero = {0,0};
17906 /* AIX XL C 1.02.0.0 rejects this.
17907 It does not let you subtract one const X* pointer from another in
17908 an arm of an if-expression whose if-part is not a constant
17910 const char *g = "string";
17911 pcpcc = &g + (g ? g-g : 0);
17912 /* HPUX 7.0 cc rejects these. */
17914 ppc = (char**) pcpcc;
17915 pcpcc = (char const *const *) ppc;
17916 { /* SCO 3.2v4 cc rejects this. */
17918 char const *s = 0 ? (char *) 0 : (char const *) 0;
17923 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
17924 int x[] = {25, 17};
17925 const int *foo = &x[0];
17928 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
17929 typedef const int *iptr;
17933 { /* AIX XL C 1.02.0.0 rejects this saying
17934 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
17935 struct s { int j; const int *ap[3]; };
17936 struct s *b; b->j = 5;
17938 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
17939 const int foo = 10;
17940 if (!foo) return 0;
17942 return !cs[0] && !zero.x;
17949 if ac_fn_c_try_compile "$LINENO"; then :
17954 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
17957 $as_echo "$ac_cv_c_const" >&6; }
17958 if test $ac_cv_c_const = no; then
17960 $as_echo "#define const /**/" >>confdefs.h
17964 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
17965 if test "x$ac_cv_type_size_t" = x""yes; then :
17969 cat >>confdefs.h <<_ACEOF
17970 #define size_t unsigned int
17975 # The cast to long int works around a bug in the HP C Compiler
17976 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
17977 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
17978 # This bug is HP SR number 8606223364.
17979 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
17980 $as_echo_n "checking size of long... " >&6; }
17981 if test "${ac_cv_sizeof_long+set}" = set; then :
17982 $as_echo_n "(cached) " >&6
17984 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then :
17987 if test "$ac_cv_type_long" = yes; then
17988 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
17989 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
17990 as_fn_error 77 "cannot compute sizeof (long)
17991 See \`config.log' for more details" "$LINENO" 5 ; }
17993 ac_cv_sizeof_long=0
17998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
17999 $as_echo "$ac_cv_sizeof_long" >&6; }
18003 cat >>confdefs.h <<_ACEOF
18004 #define SIZEOF_LONG $ac_cv_sizeof_long
18009 # Checks for library functions.
18010 for ac_func in strchr strdup strstr timegm strcasecmp
18012 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
18013 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
18014 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
18015 cat >>confdefs.h <<_ACEOF
18016 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
18022 for ac_header in dlfcn.h
18024 ac_fn_c_check_header_mongrel "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default"
18025 if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
18026 cat >>confdefs.h <<_ACEOF
18027 #define HAVE_DLFCN_H 1
18034 ac_fn_c_check_func "$LINENO" "dlclose" "ac_cv_func_dlclose"
18035 if test "x$ac_cv_func_dlclose" = x""yes; then :
18038 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
18039 $as_echo_n "checking for dlopen in -ldl... " >&6; }
18040 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
18041 $as_echo_n "(cached) " >&6
18043 ac_check_lib_save_LIBS=$LIBS
18045 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18046 /* end confdefs.h. */
18048 /* Override any GCC internal prototype to avoid an error.
18049 Use char because int might match the return type of a GCC
18050 builtin and then its argument prototype would still apply. */
18063 if ac_fn_c_try_link "$LINENO"; then :
18064 ac_cv_lib_dl_dlopen=yes
18066 ac_cv_lib_dl_dlopen=no
18068 rm -f core conftest.err conftest.$ac_objext \
18069 conftest$ac_exeext conftest.$ac_ext
18070 LIBS=$ac_check_lib_save_LIBS
18072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
18073 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
18074 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
18075 cat >>confdefs.h <<_ACEOF
18076 #define HAVE_LIBDL 1
18086 # checks for pthreads
18090 ac_cpp='$CPP $CPPFLAGS'
18091 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18092 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18093 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18097 # We used to check for pthread.h first, but this fails if pthread.h
18098 # requires special compiler flags (e.g. on True64 or Sequent).
18099 # It gets checked for in the link test anyway.
18101 # First of all, check if the user has set any of the PTHREAD_LIBS,
18102 # etcetera environment variables, and if threads linking works using
18104 if test x"$PTHREAD_LIBS$PTHREAD_CFLAGS" != x; then
18105 save_CFLAGS="$CFLAGS"
18106 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
18108 LIBS="$PTHREAD_LIBS $LIBS"
18109 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS" >&5
18110 $as_echo_n "checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS... " >&6; }
18111 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18112 /* end confdefs.h. */
18114 /* Override any GCC internal prototype to avoid an error.
18115 Use char because int might match the return type of a GCC
18116 builtin and then its argument prototype would still apply. */
18120 char pthread_join ();
18124 return pthread_join ();
18129 if ac_fn_c_try_link "$LINENO"; then :
18132 rm -f core conftest.err conftest.$ac_objext \
18133 conftest$ac_exeext conftest.$ac_ext
18134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_pthread_ok" >&5
18135 $as_echo "$acx_pthread_ok" >&6; }
18136 if test x"$acx_pthread_ok" = xno; then
18141 CFLAGS="$save_CFLAGS"
18144 # We must check for the threads library under a number of different
18145 # names; the ordering is very important because some systems
18146 # (e.g. DEC) have both -lpthread and -lpthreads, where one of the
18147 # libraries is broken (non-POSIX).
18149 # Create a list of thread flags to try. Items starting with a "-" are
18150 # C compiler flags, and other items are library names, except for "none"
18151 # which indicates that we try without any flags at all, and "pthread-config"
18152 # which is a program returning the flags for the Pth emulation library.
18154 acx_pthread_flags="pthreads none -Kthread -kthread lthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config"
18156 # The ordering *is* (sometimes) important. Some notes on the
18157 # individual items follow:
18159 # pthreads: AIX (must check this before -lpthread)
18160 # none: in case threads are in libc; should be tried before -Kthread and
18161 # other compiler flags to prevent continual compiler warnings
18162 # -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h)
18163 # -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able)
18164 # lthread: LinuxThreads port on FreeBSD (also preferred to -pthread)
18165 # -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads)
18166 # -pthreads: Solaris/gcc
18167 # -mthreads: Mingw32/gcc, Lynx/gcc
18168 # -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it
18169 # doesn't hurt to check since this sometimes defines pthreads too;
18170 # also defines -D_REENTRANT)
18171 # ... -mt is also the pthreads flag for HP/aCC
18172 # pthread: Linux, etcetera
18173 # --thread-safe: KAI C++
18174 # pthread-config: use pthread-config program (for GNU Pth library)
18176 case "${host_cpu}-${host_os}" in
18179 # On Solaris (at least, for some versions), libc contains stubbed
18180 # (non-functional) versions of the pthreads routines, so link-based
18181 # tests will erroneously succeed. (We need to link with -pthreads/-mt/
18182 # -lpthread.) (The stubs are missing pthread_cleanup_push, or rather
18183 # a function called by this macro, so we could check for that, but
18184 # who knows whether they'll stub that too in a future libc.) So,
18185 # we'll just look for -pthreads and -lpthread first:
18187 acx_pthread_flags="-pthreads pthread -mt -pthread $acx_pthread_flags"
18191 if test x"$acx_pthread_ok" = xno; then
18192 for flag in $acx_pthread_flags; do
18196 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work without any flags" >&5
18197 $as_echo_n "checking whether pthreads work without any flags... " >&6; }
18201 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with $flag" >&5
18202 $as_echo_n "checking whether pthreads work with $flag... " >&6; }
18203 PTHREAD_CFLAGS="$flag"
18207 # Extract the first word of "pthread-config", so it can be a program name with args.
18208 set dummy pthread-config; ac_word=$2
18209 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18210 $as_echo_n "checking for $ac_word... " >&6; }
18211 if test "${ac_cv_prog_acx_pthread_config+set}" = set; then :
18212 $as_echo_n "(cached) " >&6
18214 if test -n "$acx_pthread_config"; then
18215 ac_cv_prog_acx_pthread_config="$acx_pthread_config" # Let the user override the test.
18217 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18218 for as_dir in $PATH
18221 test -z "$as_dir" && as_dir=.
18222 for ac_exec_ext in '' $ac_executable_extensions; do
18223 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
18224 ac_cv_prog_acx_pthread_config="yes"
18225 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18232 test -z "$ac_cv_prog_acx_pthread_config" && ac_cv_prog_acx_pthread_config="no"
18235 acx_pthread_config=$ac_cv_prog_acx_pthread_config
18236 if test -n "$acx_pthread_config"; then
18237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_pthread_config" >&5
18238 $as_echo "$acx_pthread_config" >&6; }
18240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18241 $as_echo "no" >&6; }
18245 if test x"$acx_pthread_config" = xno; then continue; fi
18246 PTHREAD_CFLAGS="`pthread-config --cflags`"
18247 PTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`"
18251 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library -l$flag" >&5
18252 $as_echo_n "checking for the pthreads library -l$flag... " >&6; }
18253 PTHREAD_LIBS="-l$flag"
18258 save_CFLAGS="$CFLAGS"
18259 LIBS="$PTHREAD_LIBS $LIBS"
18260 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
18262 # Check for various functions. We must include pthread.h,
18263 # since some functions may be macros. (On the Sequent, we
18264 # need a special flag -Kthread to make this header compile.)
18265 # We check for pthread_join because it is in -lpthread on IRIX
18266 # while pthread_create is in libc. We check for pthread_attr_init
18267 # due to DEC craziness with -lpthreads. We check for
18268 # pthread_cleanup_push because it is one of the few pthread
18269 # functions on Solaris that doesn't have a non-functional libc stub.
18270 # We try pthread_create on general principles.
18271 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18272 /* end confdefs.h. */
18273 #include <pthread.h>
18277 pthread_t th; pthread_join(th, 0);
18278 pthread_attr_init(0); pthread_cleanup_push(0, 0);
18279 pthread_create(0,0,0,0); pthread_cleanup_pop(0);
18284 if ac_fn_c_try_link "$LINENO"; then :
18287 rm -f core conftest.err conftest.$ac_objext \
18288 conftest$ac_exeext conftest.$ac_ext
18291 CFLAGS="$save_CFLAGS"
18293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_pthread_ok" >&5
18294 $as_echo "$acx_pthread_ok" >&6; }
18295 if test "x$acx_pthread_ok" = xyes; then
18304 # Various other checks:
18305 if test "x$acx_pthread_ok" = xyes; then
18307 LIBS="$PTHREAD_LIBS $LIBS"
18308 save_CFLAGS="$CFLAGS"
18309 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
18311 # Detect AIX lossage: JOINABLE attribute is called UNDETACHED.
18312 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for joinable pthread attribute" >&5
18313 $as_echo_n "checking for joinable pthread attribute... " >&6; }
18315 for attr in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED; do
18316 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18317 /* end confdefs.h. */
18318 #include <pthread.h>
18322 int attr=$attr; return attr;
18327 if ac_fn_c_try_link "$LINENO"; then :
18328 attr_name=$attr; break
18330 rm -f core conftest.err conftest.$ac_objext \
18331 conftest$ac_exeext conftest.$ac_ext
18333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $attr_name" >&5
18334 $as_echo "$attr_name" >&6; }
18335 if test "$attr_name" != PTHREAD_CREATE_JOINABLE; then
18337 cat >>confdefs.h <<_ACEOF
18338 #define PTHREAD_CREATE_JOINABLE $attr_name
18343 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if more special flags are required for pthreads" >&5
18344 $as_echo_n "checking if more special flags are required for pthreads... " >&6; }
18346 case "${host_cpu}-${host_os}" in
18347 *-aix* | *-freebsd*) flag="-D_THREAD_SAFE";;
18348 *-osf* | *-hpux*) flag="-D_REENTRANT";;
18350 if test "$GCC" = "yes"; then
18351 flag="-D_REENTRANT"
18353 flag="-mt -D_REENTRANT"
18357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${flag}" >&5
18358 $as_echo "${flag}" >&6; }
18359 if test "x$flag" != xno; then
18360 PTHREAD_CFLAGS="$flag $PTHREAD_CFLAGS"
18364 CFLAGS="$save_CFLAGS"
18366 # More AIX lossage: must compile with xlc_r or cc_r
18367 if test x"$GCC" != xyes; then
18368 for ac_prog in xlc_r cc_r
18370 # Extract the first word of "$ac_prog", so it can be a program name with args.
18371 set dummy $ac_prog; ac_word=$2
18372 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18373 $as_echo_n "checking for $ac_word... " >&6; }
18374 if test "${ac_cv_prog_PTHREAD_CC+set}" = set; then :
18375 $as_echo_n "(cached) " >&6
18377 if test -n "$PTHREAD_CC"; then
18378 ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test.
18380 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18381 for as_dir in $PATH
18384 test -z "$as_dir" && as_dir=.
18385 for ac_exec_ext in '' $ac_executable_extensions; do
18386 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
18387 ac_cv_prog_PTHREAD_CC="$ac_prog"
18388 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18397 PTHREAD_CC=$ac_cv_prog_PTHREAD_CC
18398 if test -n "$PTHREAD_CC"; then
18399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PTHREAD_CC" >&5
18400 $as_echo "$PTHREAD_CC" >&6; }
18402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18403 $as_echo "no" >&6; }
18407 test -n "$PTHREAD_CC" && break
18409 test -n "$PTHREAD_CC" || PTHREAD_CC="${CC}"
18422 # Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
18423 if test x"$acx_pthread_ok" = xyes; then
18424 enable_threads="pthread"
18428 enable_threads="no"
18431 ac_cpp='$CPP $CPPFLAGS'
18432 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18433 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18434 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18437 if test $enable_threads != "pthread"; then
18438 as_fn_error $? "unable to find pthreads, currently this is required" "$LINENO" 5
18441 $as_echo "#define HAVE_PTHREAD 1" >>confdefs.h
18443 if test "$enable_threads" = "pthread"; then
18444 BUILD_PTHREAD_TRUE=
18445 BUILD_PTHREAD_FALSE='#'
18447 BUILD_PTHREAD_TRUE='#'
18448 BUILD_PTHREAD_FALSE=
18451 LIBS="$PTHREAD_LIBS $LIBS"
18452 CFLAGS="$PTHREAD_CFLAGS $CFLAGS"
18453 CXXFLAGS="$PTHREAD_CFLAGS $CXXFLAGS"
18456 for ac_func in pthread_rwlock_init
18458 ac_fn_c_check_func "$LINENO" "pthread_rwlock_init" "ac_cv_func_pthread_rwlock_init"
18459 if test "x$ac_cv_func_pthread_rwlock_init" = x""yes; then :
18460 cat >>confdefs.h <<_ACEOF
18461 #define HAVE_PTHREAD_RWLOCK_INIT 1
18469 ac_cpp='$CXXCPP $CPPFLAGS'
18470 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18471 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18472 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18476 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler implements namespaces" >&5
18477 $as_echo_n "checking whether the compiler implements namespaces... " >&6; }
18478 if test "${ac_cv_cxx_namespaces+set}" = set; then :
18479 $as_echo_n "(cached) " >&6
18483 ac_cpp='$CXXCPP $CPPFLAGS'
18484 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18485 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18486 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18488 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18489 /* end confdefs.h. */
18490 namespace Outer { namespace Inner { int i = 0; }}
18494 using namespace Outer::Inner; return i;
18499 if ac_fn_cxx_try_compile "$LINENO"; then :
18500 ac_cv_cxx_namespaces=yes
18502 ac_cv_cxx_namespaces=no
18504 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18506 ac_cpp='$CXXCPP $CPPFLAGS'
18507 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18508 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18509 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_namespaces" >&5
18514 $as_echo "$ac_cv_cxx_namespaces" >&6; }
18515 if test "$ac_cv_cxx_namespaces" = yes; then
18517 $as_echo "#define HAVE_NAMESPACES 1" >>confdefs.h
18521 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports Standard Template Library" >&5
18522 $as_echo_n "checking whether the compiler supports Standard Template Library... " >&6; }
18523 if test "${ac_cv_cxx_have_stl+set}" = set; then :
18524 $as_echo_n "(cached) " >&6
18528 ac_cpp='$CXXCPP $CPPFLAGS'
18529 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18530 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18531 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18533 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18534 /* end confdefs.h. */
18537 #ifdef HAVE_NAMESPACES
18538 using namespace std;
18543 list<int> x; x.push_back(5);
18544 list<int>::iterator iter = x.begin(); if (iter != x.end()) ++iter; return 0;
18549 if ac_fn_cxx_try_compile "$LINENO"; then :
18550 ac_cv_cxx_have_stl=yes
18552 ac_cv_cxx_have_stl=no
18554 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18556 ac_cpp='$CXXCPP $CPPFLAGS'
18557 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18558 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18559 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_have_stl" >&5
18564 $as_echo "$ac_cv_cxx_have_stl" >&6; }
18565 if test "x_$ac_cv_cxx_have_stl" != x_yes; then
18566 as_fn_error $? "C++ Standard Template Libary unsupported" "$LINENO" 5
18570 # are covariant methods allowed?
18571 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18572 /* end confdefs.h. */
18578 class base { public: virtual base *GetPtr( void ) { return this; } };
18579 class derived: virtual public base { public: virtual derived *GetPtr( void ) { return this; } };
18585 if ac_fn_cxx_try_link "$LINENO"; then :
18587 $as_echo "#define HAVE_COVARIANT_RETURNS 1" >>confdefs.h
18590 rm -f core conftest.err conftest.$ac_objext \
18591 conftest$ac_exeext conftest.$ac_ext
18593 # is nullptr supported?
18594 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18595 /* end confdefs.h. */
18600 const char* ptr = nullptr;
18605 if ac_fn_cxx_try_compile "$LINENO"; then :
18607 $as_echo "#define HAVE_NULLPTR 1" >>confdefs.h
18610 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18612 # log4shib settings (favor this version over the log4cpp code)
18613 # Extract the first word of "log4shib-config", so it can be a program name with args.
18614 set dummy log4shib-config; ac_word=$2
18615 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18616 $as_echo_n "checking for $ac_word... " >&6; }
18617 if test "${ac_cv_path_LOG4SHIB_CONFIG+set}" = set; then :
18618 $as_echo_n "(cached) " >&6
18620 case $LOG4SHIB_CONFIG in
18622 ac_cv_path_LOG4SHIB_CONFIG="$LOG4SHIB_CONFIG" # Let the user override the test with a path.
18625 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18626 for as_dir in $PATH
18629 test -z "$as_dir" && as_dir=.
18630 for ac_exec_ext in '' $ac_executable_extensions; do
18631 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
18632 ac_cv_path_LOG4SHIB_CONFIG="$as_dir/$ac_word$ac_exec_ext"
18633 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18643 LOG4SHIB_CONFIG=$ac_cv_path_LOG4SHIB_CONFIG
18644 if test -n "$LOG4SHIB_CONFIG"; then
18645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LOG4SHIB_CONFIG" >&5
18646 $as_echo "$LOG4SHIB_CONFIG" >&6; }
18648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18649 $as_echo "no" >&6; }
18654 # Check whether --with-log4shib was given.
18655 if test "${with_log4shib+set}" = set; then :
18656 withval=$with_log4shib;
18657 LOG4SHIB_CONFIG="${with_log4shib}"
18658 if ! test -f "${LOG4SHIB_CONFIG}" ; then
18659 LOG4SHIB_CONFIG="${with_log4shib}/bin/log4shib-config"
18664 if test -f "${LOG4SHIB_CONFIG}" ; then
18665 LIBS="`${LOG4SHIB_CONFIG} --libs` $LIBS"
18666 CPPFLAGS="`${LOG4SHIB_CONFIG} --cflags` $CPPFLAGS"
18668 ac_fn_cxx_check_header_mongrel "$LINENO" "log4shib/CategoryStream.hh" "ac_cv_header_log4shib_CategoryStream_hh" "$ac_includes_default"
18669 if test "x$ac_cv_header_log4shib_CategoryStream_hh" = x""yes; then :
18672 as_fn_error $? "unable to find log4shib header files" "$LINENO" 5
18676 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18677 /* end confdefs.h. */
18678 #include <log4shib/Category.hh>
18679 #include <log4shib/CategoryStream.hh>
18683 log4shib::Category::getInstance("foo").errorStream() << log4shib::eol
18688 if ac_fn_cxx_try_link "$LINENO"; then :
18690 $as_echo "#define XMLTOOLING_LOG4SHIB 1" >>confdefs.h
18693 as_fn_error $? "unable to link with log4shib" "$LINENO" 5
18695 rm -f core conftest.err conftest.$ac_objext \
18696 conftest$ac_exeext conftest.$ac_ext
18698 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: log4shib-config not found, may need to use --with-log4shib option" >&5
18699 $as_echo "$as_me: WARNING: log4shib-config not found, may need to use --with-log4shib option" >&2;}
18700 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: will look for original log4cpp library" >&5
18701 $as_echo "$as_me: WARNING: will look for original log4cpp library" >&2;}
18704 # Extract the first word of "log4cpp-config", so it can be a program name with args.
18705 set dummy log4cpp-config; ac_word=$2
18706 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18707 $as_echo_n "checking for $ac_word... " >&6; }
18708 if test "${ac_cv_path_LOG4CPP_CONFIG+set}" = set; then :
18709 $as_echo_n "(cached) " >&6
18711 case $LOG4CPP_CONFIG in
18713 ac_cv_path_LOG4CPP_CONFIG="$LOG4CPP_CONFIG" # Let the user override the test with a path.
18716 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18717 for as_dir in $PATH
18720 test -z "$as_dir" && as_dir=.
18721 for ac_exec_ext in '' $ac_executable_extensions; do
18722 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
18723 ac_cv_path_LOG4CPP_CONFIG="$as_dir/$ac_word$ac_exec_ext"
18724 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18734 LOG4CPP_CONFIG=$ac_cv_path_LOG4CPP_CONFIG
18735 if test -n "$LOG4CPP_CONFIG"; then
18736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LOG4CPP_CONFIG" >&5
18737 $as_echo "$LOG4CPP_CONFIG" >&6; }
18739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18740 $as_echo "no" >&6; }
18745 # Check whether --with-log4cpp was given.
18746 if test "${with_log4cpp+set}" = set; then :
18747 withval=$with_log4cpp;
18748 LOG4CPP_CONFIG="${with_log4cpp}"
18749 if ! test -f "${LOG4CPP_CONFIG}" ; then
18750 LOG4CPP_CONFIG="${with_log4cpp}/bin/log4cpp-config"
18755 if test -f "${LOG4CPP_CONFIG}"; then
18756 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: will try to use log4cpp, note that most non-Internet2 supplied versions are not thread-safe" >&5
18757 $as_echo "$as_me: WARNING: will try to use log4cpp, note that most non-Internet2 supplied versions are not thread-safe" >&2;}
18758 LIBS="`${LOG4CPP_CONFIG} --libs` $LIBS"
18759 CPPFLAGS="`${LOG4CPP_CONFIG} --cflags` $CPPFLAGS"
18760 ac_fn_cxx_check_header_mongrel "$LINENO" "log4cpp/CategoryStream.hh" "ac_cv_header_log4cpp_CategoryStream_hh" "$ac_includes_default"
18761 if test "x$ac_cv_header_log4cpp_CategoryStream_hh" = x""yes; then :
18764 as_fn_error $? "unable to find log4cpp header files" "$LINENO" 5
18768 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18769 /* end confdefs.h. */
18770 #include <log4cpp/Category.hh>
18771 #include <log4cpp/CategoryStream.hh>
18775 log4cpp::Category::getInstance("foo").errorStream() << log4cpp::eol
18780 if ac_fn_cxx_try_link "$LINENO"; then :
18782 $as_echo "#define XMLTOOLING_LOG4CPP 1" >>confdefs.h
18785 as_fn_error $? "unable to link with log4cpp, need version 1.0 or later" "$LINENO" 5
18787 rm -f core conftest.err conftest.$ac_objext \
18788 conftest$ac_exeext conftest.$ac_ext
18790 as_fn_error $? "log4cpp-config not found, may need to use --with-log4cpp option" "$LINENO" 5
18796 # Check whether --with-xerces was given.
18797 if test "${with_xerces+set}" = set; then :
18798 withval=$with_xerces; if test x_$with_xerces != x_/usr; then
18799 LDFLAGS="-L${with_xerces}/lib $LDFLAGS"
18800 CPPFLAGS="-I${with_xerces}/include $CPPFLAGS"
18804 LIBS="-lxerces-c $LIBS"
18805 ac_fn_cxx_check_header_mongrel "$LINENO" "xercesc/dom/DOM.hpp" "ac_cv_header_xercesc_dom_DOM_hpp" "$ac_includes_default"
18806 if test "x$ac_cv_header_xercesc_dom_DOM_hpp" = x""yes; then :
18809 as_fn_error $? "unable to find xerces header files" "$LINENO" 5
18813 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Xerces version" >&5
18814 $as_echo_n "checking Xerces version... " >&6; }
18815 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18816 /* end confdefs.h. */
18817 #include <xercesc/util/XercesVersion.hpp>
18821 #if _XERCES_VERSION != 20600
18824 #error cannot use version 2.6.0
18830 if ac_fn_cxx_try_cpp "$LINENO"; then :
18831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: OK" >&5
18832 $as_echo "OK" >&6; }
18834 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
18835 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
18836 as_fn_error $? "Xerces-C v2.6.0 has bugs that inhibit use with signed XML, please use a newer version
18837 See \`config.log' for more details" "$LINENO" 5 ; }
18839 rm -f conftest.err conftest.i conftest.$ac_ext
18840 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18841 /* end confdefs.h. */
18842 #include <xercesc/util/PlatformUtils.hpp>
18846 xercesc::XMLPlatformUtils::Initialize()
18851 if ac_fn_cxx_try_link "$LINENO"; then :
18854 as_fn_error $? "unable to link with Xerces" "$LINENO" 5
18856 rm -f core conftest.err conftest.$ac_objext \
18857 conftest$ac_exeext conftest.$ac_ext
18859 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether Xerces is 64-bit clean" >&5
18860 $as_echo_n "checking whether Xerces is 64-bit clean... " >&6; }
18861 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18862 /* end confdefs.h. */
18863 #include <xercesc/framework/MemBufInputSource.hpp>
18867 using namespace XERCES_CPP_NAMESPACE; XMLFilePos testvar;
18872 if ac_fn_cxx_try_compile "$LINENO"; then :
18873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18874 $as_echo "yes" >&6; }
18875 $as_echo "#define XMLTOOLING_XERCESC_64BITSAFE 1" >>confdefs.h
18878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18879 $as_echo "no" >&6; }
18881 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18883 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether Xerces BinInputStream requires getContentType" >&5
18884 $as_echo_n "checking whether Xerces BinInputStream requires getContentType... " >&6; }
18885 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18886 /* end confdefs.h. */
18887 #include <xercesc/util/BinMemInputStream.hpp>
18891 using namespace XERCES_CPP_NAMESPACE; XMLByte buf[1024]; BinMemInputStream in(buf,1024); in.getContentType();
18896 if ac_fn_cxx_try_compile "$LINENO"; then :
18897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18898 $as_echo "yes" >&6; }
18899 $as_echo "#define XMLTOOLING_XERCESC_INPUTSTREAM_HAS_CONTENTTYPE 1" >>confdefs.h
18902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18903 $as_echo "no" >&6; }
18905 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18907 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether Xerces DOMLS API is compliant" >&5
18908 $as_echo_n "checking whether Xerces DOMLS API is compliant... " >&6; }
18909 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18910 /* end confdefs.h. */
18911 #include <xercesc/dom/DOM.hpp>
18915 using namespace XERCES_CPP_NAMESPACE;
18916 DOMImplementation *impl = DOMImplementationRegistry::getDOMImplementation(NULL);
18917 DOMLSSerializer *ls = ((DOMImplementationLS*)impl)->createLSSerializer();
18922 if ac_fn_cxx_try_compile "$LINENO"; then :
18923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18924 $as_echo "yes" >&6; }
18925 $as_echo "#define XMLTOOLING_XERCESC_COMPLIANT_DOMLS 1" >>confdefs.h
18928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18929 $as_echo "no" >&6; }
18931 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18933 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether Xerces has setIdAttribute(XMLCh*, bool)" >&5
18934 $as_echo_n "checking whether Xerces has setIdAttribute(XMLCh*, bool)... " >&6; }
18935 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18936 /* end confdefs.h. */
18937 #include <xercesc/dom/DOM.hpp>
18941 using namespace XERCES_CPP_NAMESPACE; DOMElement * elt; elt->setIdAttribute(NULL, false);
18946 if ac_fn_cxx_try_compile "$LINENO"; then :
18947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18948 $as_echo "yes" >&6; }
18949 $as_echo "#define XMLTOOLING_XERCESC_BOOLSETIDATTRIBUTE 1" >>confdefs.h
18952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18953 $as_echo "no" >&6; }
18955 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18957 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether Xerces XMLString::release(XMLByte**) exists" >&5
18958 $as_echo_n "checking whether Xerces XMLString::release(XMLByte**) exists... " >&6; }
18959 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18960 /* end confdefs.h. */
18961 #include <xercesc/util/XMLString.hpp>
18965 using namespace XERCES_CPP_NAMESPACE; XMLByte* buf=NULL; XMLString::release(&buf);
18970 if ac_fn_cxx_try_compile "$LINENO"; then :
18971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18972 $as_echo "yes" >&6; }
18973 $as_echo "#define XMLTOOLING_XERCESC_HAS_XMLBYTE_RELEASE 1" >>confdefs.h
18976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18977 $as_echo "no" >&6; }
18979 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18981 # XML-Security settings
18983 # Check whether --with-xmlsec was given.
18984 if test "${with_xmlsec+set}" = set; then :
18985 withval=$with_xmlsec;
18991 if test x_$with_xmlsec != x_no; then
18993 # OpenSSL settings (need to do this first in case it's in a different spot from xmlsec)
18995 # Check whether --with-openssl was given.
18996 if test "${with_openssl+set}" = set; then :
18997 withval=$with_openssl; if test x_$with_openssl != x_/usr; then
18998 SSLFLAGS="-I${with_openssl}/include"
18999 SSLLIBS="-L${with_openssl}/lib -lcrypto -lssl"
19001 SSLLIBS="-lcrypto -lssl"
19006 if test "x$SSLLIBS" = "x" ; then
19007 # Extract the first word of "pkg-config", so it can be a program name with args.
19008 set dummy pkg-config; ac_word=$2
19009 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19010 $as_echo_n "checking for $ac_word... " >&6; }
19011 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
19012 $as_echo_n "(cached) " >&6
19014 case $PKG_CONFIG in
19016 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
19019 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19020 for as_dir in $PATH
19023 test -z "$as_dir" && as_dir=.
19024 for ac_exec_ext in '' $ac_executable_extensions; do
19025 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19026 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
19027 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19037 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
19038 if test -n "$PKG_CONFIG"; then
19039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
19040 $as_echo "$PKG_CONFIG" >&6; }
19042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19043 $as_echo "no" >&6; }
19047 if test "x$PKG_CONFIG" != x && test "x$PKG_CONFIG" != "xno" ; then
19048 if pkg-config openssl ; then
19049 SSLLIBS="`$PKG_CONFIG --libs openssl`"
19050 SSLFLAGS="`$PKG_CONFIG --cflags openssl`"
19052 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: OpenSSL not supported by pkg-config, try --with-openssl instead" >&5
19053 $as_echo "$as_me: WARNING: OpenSSL not supported by pkg-config, try --with-openssl instead" >&2;}
19058 if test "x$SSLLIBS" = "x" ; then
19059 SSLLIBS="-lcrypto -lssl"
19062 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenSSL cflags" >&5
19063 $as_echo_n "checking for OpenSSL cflags... " >&6; }
19064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SSLFLAGS" >&5
19065 $as_echo "$SSLFLAGS" >&6; }
19066 CPPFLAGS="$CPPFLAGS $SSLFLAGS"
19067 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenSSL libraries" >&5
19068 $as_echo_n "checking for OpenSSL libraries... " >&6; }
19069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SSLLIBS" >&5
19070 $as_echo "$SSLLIBS" >&6; }
19071 XMLSEC_LIBS="$XMLSEC_LIBS $SSLLIBS"
19073 # save and append master libs
19075 LIBS="$XMLSEC_LIBS $LIBS"
19077 ac_fn_cxx_check_header_mongrel "$LINENO" "openssl/pem.h" "ac_cv_header_openssl_pem_h" "$ac_includes_default"
19078 if test "x$ac_cv_header_openssl_pem_h" = x""yes; then :
19081 as_fn_error $? "unable to find openssl header files" "$LINENO" 5
19085 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ERR_load_CRYPTO_string" >&5
19086 $as_echo_n "checking for ERR_load_CRYPTO_string... " >&6; }
19087 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19088 /* end confdefs.h. */
19090 /* Override any GCC internal prototype to avoid an error.
19091 Use char because int might match the return type of a GCC
19092 builtin and then its argument prototype would still apply. */
19096 char ERR_load_CRYPTO_strings ();
19100 return ERR_load_CRYPTO_strings ();
19105 if ac_fn_cxx_try_link "$LINENO"; then :
19108 as_fn_error $? "unable to link with openssl libraries" "$LINENO" 5
19110 rm -f core conftest.err conftest.$ac_objext \
19111 conftest$ac_exeext conftest.$ac_ext
19112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19113 $as_echo "yes" >&6; }
19115 ac_fn_cxx_check_decl "$LINENO" "EVP_sha512" "ac_cv_have_decl_EVP_sha512" "#include <openssl/evp.h>
19117 if test "x$ac_cv_have_decl_EVP_sha512" = x""yes; then :
19119 $as_echo "#define XMLTOOLING_OPENSSL_HAVE_SHA2 1" >>confdefs.h
19123 ac_fn_cxx_check_decl "$LINENO" "EVP_PKEY_set1_EC_KEY" "ac_cv_have_decl_EVP_PKEY_set1_EC_KEY" "#include <openssl/evp.h>
19125 if test "x$ac_cv_have_decl_EVP_PKEY_set1_EC_KEY" = x""yes; then :
19127 $as_echo "#define XMLTOOLING_OPENSSL_HAVE_EC 1" >>confdefs.h
19132 # restore master libs
19135 if test x_$with_xmlsec != x_/usr; then
19136 CPPFLAGS="-I${with_xmlsec}/include $CPPFLAGS"
19137 LDFLAGS="-L${with_xmlsec}/lib $LDFLAGS"
19139 XMLSEC_LIBS="$XMLSEC_LIBS -lxml-security-c"
19141 # save and append master libs
19143 LIBS="$XMLSEC_LIBS $LIBS"
19145 ac_fn_cxx_check_header_mongrel "$LINENO" "xsec/utils/XSECPlatformUtils.hpp" "ac_cv_header_xsec_utils_XSECPlatformUtils_hpp" "$ac_includes_default"
19146 if test "x$ac_cv_header_xsec_utils_XSECPlatformUtils_hpp" = x""yes; then :
19149 as_fn_error $? "unable to find XML-Security header files" "$LINENO" 5
19153 { $as_echo "$as_me:${as_lineno-$LINENO}: checking XML-Security version" >&5
19154 $as_echo_n "checking XML-Security version... " >&6; }
19155 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19156 /* end confdefs.h. */
19157 #include <xsec/utils/XSECPlatformUtils.hpp>
19161 #if XSEC_VERSION_MAJOR > 1 || (XSEC_VERSION_MAJOR == 1 && XSEC_VERSION_MEDIUM > 3)
19164 #error need version 1.4.0 or later
19170 if ac_fn_cxx_try_cpp "$LINENO"; then :
19171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: OK" >&5
19172 $as_echo "OK" >&6; }
19174 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
19175 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
19176 as_fn_error $? "XML-Security version 1.4.0 or greater is required.
19177 See \`config.log' for more details" "$LINENO" 5 ; }
19179 rm -f conftest.err conftest.i conftest.$ac_ext
19181 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19182 /* end confdefs.h. */
19183 #include <xsec/utils/XSECPlatformUtils.hpp>
19187 XSECPlatformUtils::Initialise()
19192 if ac_fn_cxx_try_link "$LINENO"; then :
19195 as_fn_error $? "unable to link with XML-Security" "$LINENO" 5
19197 rm -f core conftest.err conftest.$ac_objext \
19198 conftest$ac_exeext conftest.$ac_ext
19199 ac_fn_cxx_check_type "$LINENO" "xsecsize_t" "ac_cv_type_xsecsize_t" "$ac_includes_default"
19200 if test "x$ac_cv_type_xsecsize_t" = x""yes; then :
19202 $as_echo "#define HAVE_XSECSIZE_T 1" >>confdefs.h
19207 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether XML-Security-C has multiple CRL support" >&5
19208 $as_echo_n "checking whether XML-Security-C has multiple CRL support... " >&6; }
19209 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19210 /* end confdefs.h. */
19211 #include <xsec/dsig/DSIGKeyInfoX509.hpp>
19215 DSIGKeyInfoX509* klist; klist->getX509CRLListSize();
19220 if ac_fn_cxx_try_compile "$LINENO"; then :
19221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19222 $as_echo "yes" >&6; }
19223 $as_echo "#define XMLTOOLING_XMLSEC_MULTIPLECRL 1" >>confdefs.h
19226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19227 $as_echo "no" >&6; }
19229 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19231 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether XML-Security-C exposes the signature algorithm URI" >&5
19232 $as_echo_n "checking whether XML-Security-C exposes the signature algorithm URI... " >&6; }
19233 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19234 /* end confdefs.h. */
19235 #include <xsec/dsig/DSIGSignature.hpp>
19239 DSIGSignature* sig; sig->getAlgorithmURI();
19244 if ac_fn_cxx_try_compile "$LINENO"; then :
19245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19246 $as_echo "yes" >&6; }
19247 $as_echo "#define XMLTOOLING_XMLSEC_SIGALGORITHM 1" >>confdefs.h
19250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19251 $as_echo "no" >&6; }
19253 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19255 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether XML-Security-C includes ECC support" >&5
19256 $as_echo_n "checking whether XML-Security-C includes ECC support... " >&6; }
19257 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19258 /* end confdefs.h. */
19259 #include <xsec/dsig/DSIGKeyInfoValue.hpp>
19263 DSIGKeyInfoValue* info; info->getECNamedCurve();
19268 if ac_fn_cxx_try_compile "$LINENO"; then :
19269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19270 $as_echo "yes" >&6; }
19271 $as_echo "#define XMLTOOLING_XMLSEC_ECC 1" >>confdefs.h
19274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19275 $as_echo "no" >&6; }
19277 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19279 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether XML-Security-C includes C14N 1.1 support" >&5
19280 $as_echo_n "checking whether XML-Security-C includes C14N 1.1 support... " >&6; }
19281 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19282 /* end confdefs.h. */
19283 #include <xsec/dsig/DSIGConstants.hpp>
19287 transformType t = TRANSFORM_C14N11;
19292 if ac_fn_cxx_try_compile "$LINENO"; then :
19293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19294 $as_echo "yes" >&6; }
19295 $as_echo "#define XMLTOOLING_XMLSEC_C14N11 1" >>confdefs.h
19298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19299 $as_echo "no" >&6; }
19301 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19303 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether XML-Security-C includes debug logging support" >&5
19304 $as_echo_n "checking whether XML-Security-C includes debug logging support... " >&6; }
19305 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19306 /* end confdefs.h. */
19307 #include <xsec/utils/XSECPlatformUtils.hpp>
19311 XSECPlatformUtils::SetReferenceLoggingSink(NULL)
19316 if ac_fn_cxx_try_compile "$LINENO"; then :
19317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19318 $as_echo "yes" >&6; }
19319 $as_echo "#define XMLTOOLING_XMLSEC_DEBUGLOGGING 1" >>confdefs.h
19322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19323 $as_echo "no" >&6; }
19325 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19327 # restore master libs
19331 # Extract the first word of "curl-config", so it can be a program name with args.
19332 set dummy curl-config; ac_word=$2
19333 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19334 $as_echo_n "checking for $ac_word... " >&6; }
19335 if test "${ac_cv_path_CURL_CONFIG+set}" = set; then :
19336 $as_echo_n "(cached) " >&6
19338 case $CURL_CONFIG in
19340 ac_cv_path_CURL_CONFIG="$CURL_CONFIG" # Let the user override the test with a path.
19343 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19344 for as_dir in $PATH
19347 test -z "$as_dir" && as_dir=.
19348 for ac_exec_ext in '' $ac_executable_extensions; do
19349 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19350 ac_cv_path_CURL_CONFIG="$as_dir/$ac_word$ac_exec_ext"
19351 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19361 CURL_CONFIG=$ac_cv_path_CURL_CONFIG
19362 if test -n "$CURL_CONFIG"; then
19363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CURL_CONFIG" >&5
19364 $as_echo "$CURL_CONFIG" >&6; }
19366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19367 $as_echo "no" >&6; }
19372 # Check whether --with-curl was given.
19373 if test "${with_curl+set}" = set; then :
19374 withval=$with_curl;
19375 CURL_CONFIG="${with_curl}"
19376 if ! test -f "${CURL_CONFIG}" ; then
19377 CURL_CONFIG="${with_curl}/bin/curl-config"
19382 if test -f "${CURL_CONFIG}" ; then
19383 CPPFLAGS="`${CURL_CONFIG} --cflags` $CPPFLAGS"
19384 XMLSEC_LIBS="`${CURL_CONFIG} --libs` $XMLSEC_LIBS"
19386 as_fn_error $? "curl-config not found, may need to use --with-curl option" "$LINENO" 5
19389 # save and append master libs
19391 LIBS="$XMLSEC_LIBS $LIBS"
19393 ac_fn_cxx_check_header_mongrel "$LINENO" "curl/curl.h" "ac_cv_header_curl_curl_h" "$ac_includes_default"
19394 if test "x$ac_cv_header_curl_curl_h" = x""yes; then :
19397 as_fn_error $? "unable to find libcurl header files" "$LINENO" 5
19401 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for curl_global_init in -lcurl" >&5
19402 $as_echo_n "checking for curl_global_init in -lcurl... " >&6; }
19403 if test "${ac_cv_lib_curl_curl_global_init+set}" = set; then :
19404 $as_echo_n "(cached) " >&6
19406 ac_check_lib_save_LIBS=$LIBS
19407 LIBS="-lcurl $LIBS"
19408 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19409 /* end confdefs.h. */
19411 /* Override any GCC internal prototype to avoid an error.
19412 Use char because int might match the return type of a GCC
19413 builtin and then its argument prototype would still apply. */
19417 char curl_global_init ();
19421 return curl_global_init ();
19426 if ac_fn_cxx_try_link "$LINENO"; then :
19427 ac_cv_lib_curl_curl_global_init=yes
19429 ac_cv_lib_curl_curl_global_init=no
19431 rm -f core conftest.err conftest.$ac_objext \
19432 conftest$ac_exeext conftest.$ac_ext
19433 LIBS=$ac_check_lib_save_LIBS
19435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_curl_curl_global_init" >&5
19436 $as_echo "$ac_cv_lib_curl_curl_global_init" >&6; }
19437 if test "x$ac_cv_lib_curl_curl_global_init" = x""yes; then :
19438 cat >>confdefs.h <<_ACEOF
19439 #define HAVE_LIBCURL 1
19442 LIBS="-lcurl $LIBS"
19445 as_fn_error $? "unable to link with libcurl" "$LINENO" 5
19448 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CURLOPT_SSL_CTX_FUNCTION in curl.h" >&5
19449 $as_echo_n "checking for CURLOPT_SSL_CTX_FUNCTION in curl.h... " >&6; }
19450 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19451 /* end confdefs.h. */
19452 #include <curl/curl.h>
19455 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19456 $EGREP "CURLOPT_SSL_CTX_FUNCTION" >/dev/null 2>&1; then :
19457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19458 $as_echo "yes" >&6; }
19460 as_fn_error $? "need libcurl that supports CURLOPT_SSL_CTX_FUNCTION" "$LINENO" 5
19464 ac_fn_cxx_check_type "$LINENO" "curl_off_t" "ac_cv_type_curl_off_t" "$ac_includes_default"
19465 if test "x$ac_cv_type_curl_off_t" = x""yes; then :
19467 $as_echo "#define HAVE_CURL_OFF_T 1" >>confdefs.h
19472 # restore master libs
19477 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: xmlsec disabled, building without signature/encryption support" >&5
19478 $as_echo "$as_me: WARNING: xmlsec disabled, building without signature/encryption support" >&2;}
19480 $as_echo "#define XMLTOOLING_NO_XMLSEC 1" >>confdefs.h
19483 if test x_$with_xmlsec != x_no; then
19485 BUILD_XMLSEC_FALSE='#'
19487 BUILD_XMLSEC_TRUE='#'
19488 BUILD_XMLSEC_FALSE=
19492 # Does the STL in use help or screw us?
19493 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19494 /* end confdefs.h. */
19499 std::basic_string<unsigned short> foo; foo=foo+(unsigned short)65
19504 if ac_fn_cxx_try_link "$LINENO"; then :
19506 $as_echo "#define HAVE_GOOD_STL 1" >>confdefs.h
19509 rm -f core conftest.err conftest.$ac_objext \
19510 conftest$ac_exeext conftest.$ac_ext
19511 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19512 /* end confdefs.h. */
19517 std::iterator_traits<std::vector<int>::iterator>::value_type foo=0
19522 if ac_fn_cxx_try_link "$LINENO"; then :
19524 $as_echo "#define HAVE_ITERATOR_TRAITS 1" >>confdefs.h
19527 rm -f core conftest.err conftest.$ac_objext \
19528 conftest$ac_exeext conftest.$ac_ext
19530 # Check for unit test support
19531 CXXTEST="/usr/bin/cxxtestgen.pl"
19534 # Check whether --with-cxxtest was given.
19535 if test "${with_cxxtest+set}" = set; then :
19536 withval=$with_cxxtest; if test x_$with_cxxtest != x_/usr; then
19537 CXXTEST="${with_cxxtest}/cxxtestgen.pl"
19538 CXXTESTFLAGS="-I${with_cxxtest}"
19542 if ! test -f "${CXXTEST}"; then
19543 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cxxtestgen not found, won't build unit tests" >&5
19544 $as_echo "$as_me: WARNING: cxxtestgen not found, won't build unit tests" >&2;}
19549 if test -f ${CXXTEST}; then
19550 BUILD_UNITTEST_TRUE=
19551 BUILD_UNITTEST_FALSE='#'
19553 BUILD_UNITTEST_TRUE='#'
19554 BUILD_UNITTEST_FALSE=
19559 # we need the expanded forms...
19560 test "x$prefix" = xNONE && prefix=$ac_default_prefix
19561 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
19563 { $as_echo "$as_me:${as_lineno-$LINENO}: checking our pkgconfig libname" >&5
19564 $as_echo_n "checking our pkgconfig libname... " >&6; }
19565 test ".$ax_create_pkgconfig_libname" != "." || \
19566 ax_create_pkgconfig_libname="${PACKAGE_NAME}"
19567 test ".$ax_create_pkgconfig_libname" != "." || \
19568 ax_create_pkgconfig_libname="$PACKAGE"
19569 ax_create_pkgconfig_libname=`eval echo "$ax_create_pkgconfig_libname"`
19570 ax_create_pkgconfig_libname=`eval echo "$ax_create_pkgconfig_libname"`
19571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_create_pkgconfig_libname" >&5
19572 $as_echo "$ax_create_pkgconfig_libname" >&6; }
19574 { $as_echo "$as_me:${as_lineno-$LINENO}: checking our pkgconfig version" >&5
19575 $as_echo_n "checking our pkgconfig version... " >&6; }
19576 test ".$ax_create_pkgconfig_version" != "." || \
19577 ax_create_pkgconfig_version="${PACKAGE_VERSION}"
19578 test ".$ax_create_pkgconfig_version" != "." || \
19579 ax_create_pkgconfig_version="$VERSION"
19580 ax_create_pkgconfig_version=`eval echo "$ax_create_pkgconfig_version"`
19581 ax_create_pkgconfig_version=`eval echo "$ax_create_pkgconfig_version"`
19582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_create_pkgconfig_version" >&5
19583 $as_echo "$ax_create_pkgconfig_version" >&6; }
19585 { $as_echo "$as_me:${as_lineno-$LINENO}: checking our pkgconfig_libdir" >&5
19586 $as_echo_n "checking our pkgconfig_libdir... " >&6; }
19587 test ".$pkgconfig_libdir" = "." && \
19588 pkgconfig_libdir='${libdir}/pkgconfig'
19589 ax_create_pkgconfig_libdir=`eval echo "$pkgconfig_libdir"`
19590 ax_create_pkgconfig_libdir=`eval echo "$ax_create_pkgconfig_libdir"`
19591 ax_create_pkgconfig_libdir=`eval echo "$ax_create_pkgconfig_libdir"`
19592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pkgconfig_libdir" >&5
19593 $as_echo "$pkgconfig_libdir" >&6; }
19594 test "$pkgconfig_libdir" != "$ax_create_pkgconfig_libdir" && (
19595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: expanded our pkgconfig_libdir... $ax_create_pkgconfig_libdir" >&5
19596 $as_echo "expanded our pkgconfig_libdir... $ax_create_pkgconfig_libdir" >&6; })
19599 { $as_echo "$as_me:${as_lineno-$LINENO}: checking our pkgconfig_libfile" >&5
19600 $as_echo_n "checking our pkgconfig_libfile... " >&6; }
19601 test ".$pkgconfig_libfile" != "." || \
19602 pkgconfig_libfile="$ax_create_pkgconfig_libname.pc"
19603 ax_create_pkgconfig_libfile=`eval echo "$pkgconfig_libfile"`
19604 ax_create_pkgconfig_libfile=`eval echo "$ax_create_pkgconfig_libfile"`
19605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pkgconfig_libfile" >&5
19606 $as_echo "$pkgconfig_libfile" >&6; }
19607 test "$pkgconfig_libfile" != "$ax_create_pkgconfig_libfile" && (
19608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: expanded our pkgconfig_libfile... $ax_create_pkgconfig_libfile" >&5
19609 $as_echo "expanded our pkgconfig_libfile... $ax_create_pkgconfig_libfile" >&6; })
19612 { $as_echo "$as_me:${as_lineno-$LINENO}: checking our package / suffix" >&5
19613 $as_echo_n "checking our package / suffix... " >&6; }
19614 ax_create_pkgconfig_suffix="$program_suffix"
19615 test ".$ax_create_pkgconfig_suffix" != .NONE || ax_create_pkgconfig_suffix=""
19616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${PACKAGE_NAME} / ${ax_create_pkgconfig_suffix}" >&5
19617 $as_echo "${PACKAGE_NAME} / ${ax_create_pkgconfig_suffix}" >&6; }
19619 { $as_echo "$as_me:${as_lineno-$LINENO}: checking our pkgconfig description" >&5
19620 $as_echo_n "checking our pkgconfig description... " >&6; }
19621 ax_create_pkgconfig_description="OpenSAML XMLTooling-C library"
19622 test ".$ax_create_pkgconfig_description" != "." || \
19623 ax_create_pkgconfig_description="$ax_create_pkgconfig_libname Library"
19624 ax_create_pkgconfig_description=`eval echo "$ax_create_pkgconfig_description"`
19625 ax_create_pkgconfig_description=`eval echo "$ax_create_pkgconfig_description"`
19626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_create_pkgconfig_description" >&5
19627 $as_echo "$ax_create_pkgconfig_description" >&6; }
19629 { $as_echo "$as_me:${as_lineno-$LINENO}: checking our pkgconfig requires" >&5
19630 $as_echo_n "checking our pkgconfig requires... " >&6; }
19631 ax_create_pkgconfig_requires="$PACKAGE_REQUIRES"
19632 ax_create_pkgconfig_requires=`eval echo "$ax_create_pkgconfig_requires"`
19633 ax_create_pkgconfig_requires=`eval echo "$ax_create_pkgconfig_requires"`
19634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_create_pkgconfig_requires" >&5
19635 $as_echo "$ax_create_pkgconfig_requires" >&6; }
19637 { $as_echo "$as_me:${as_lineno-$LINENO}: checking our pkgconfig ext libs" >&5
19638 $as_echo_n "checking our pkgconfig ext libs... " >&6; }
19639 ax_create_pkgconfig_pkglibs="$PACKAGE_LIBS"
19640 test ".$ax_create_pkgconfig_pkglibs" != "." || ax_create_pkgconfig_pkglibs="-l$ax_create_pkgconfig_libname"
19641 ax_create_pkgconfig_libs="$XMLSEC_LIBS -lxmltooling"
19642 ax_create_pkgconfig_libs=`eval echo "$ax_create_pkgconfig_libs"`
19643 ax_create_pkgconfig_libs=`eval echo "$ax_create_pkgconfig_libs"`
19644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_create_pkgconfig_libs" >&5
19645 $as_echo "$ax_create_pkgconfig_libs" >&6; }
19647 { $as_echo "$as_me:${as_lineno-$LINENO}: checking our pkgconfig cppflags" >&5
19648 $as_echo_n "checking our pkgconfig cppflags... " >&6; }
19649 ax_create_pkgconfig_cppflags="$CPPFLAGS $PACKAGE_CFLAGS"
19650 ax_create_pkgconfig_cppflags=`eval echo "$ax_create_pkgconfig_cppflags"`
19651 ax_create_pkgconfig_cppflags=`eval echo "$ax_create_pkgconfig_cppflags"`
19652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_create_pkgconfig_cppflags" >&5
19653 $as_echo "$ax_create_pkgconfig_cppflags" >&6; }
19655 { $as_echo "$as_me:${as_lineno-$LINENO}: checking our pkgconfig ldflags" >&5
19656 $as_echo_n "checking our pkgconfig ldflags... " >&6; }
19657 ax_create_pkgconfig_ldflags="$LDFLAGS $PACKAGE_LDFLAGS"
19658 ax_create_pkgconfig_ldflags=`eval echo "$ax_create_pkgconfig_ldflags"`
19659 ax_create_pkgconfig_ldflags=`eval echo "$ax_create_pkgconfig_ldflags"`
19660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_create_pkgconfig_ldflags" >&5
19661 $as_echo "$ax_create_pkgconfig_ldflags" >&6; }
19663 test ".$ax_create_pkgconfig_generate" != "." || \
19664 ax_create_pkgconfig_generate="$ax_create_pkgconfig_libname.pc"
19665 ax_create_pkgconfig_generate=`eval echo "$ax_create_pkgconfig_generate"`
19666 ax_create_pkgconfig_generate=`eval echo "$ax_create_pkgconfig_generate"`
19667 test "$pkgconfig_libfile" != "$ax_create_pkgconfig_generate" && (
19668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: generate the pkgconfig later... $ax_create_pkgconfig_generate" >&5
19669 $as_echo "generate the pkgconfig later... $ax_create_pkgconfig_generate" >&6; })
19671 if test ".$ax_create_pkgconfig_src_libdir" = "." ; then
19672 ax_create_pkgconfig_src_libdir=`pwd`
19673 ax_create_pkgconfig_src_libdir=`$as_dirname -- "$ax_create_pkgconfig_src_libdir/$ax_create_pkgconfig_generate" ||
19674 $as_expr X"$ax_create_pkgconfig_src_libdir/$ax_create_pkgconfig_generate" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19675 X"$ax_create_pkgconfig_src_libdir/$ax_create_pkgconfig_generate" : 'X\(//\)[^/]' \| \
19676 X"$ax_create_pkgconfig_src_libdir/$ax_create_pkgconfig_generate" : 'X\(//\)$' \| \
19677 X"$ax_create_pkgconfig_src_libdir/$ax_create_pkgconfig_generate" : 'X\(/\)' \| . 2>/dev/null ||
19678 $as_echo X"$ax_create_pkgconfig_src_libdir/$ax_create_pkgconfig_generate" |
19679 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19683 /^X\(\/\/\)[^/].*/{
19696 test ! -d $ax_create_pkgconfig_src_libdir/src || \
19697 ax_create_pkgconfig_src_libdir="$ax_create_pkgconfig_src_libdir/src"
19699 *libs) ax_create_pkgconfig_src_libdir="$ax_create_pkgconfig_src_libdir/$objdir" ;; esac
19700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: noninstalled pkgconfig -L $ax_create_pkgconfig_src_libdir" >&5
19701 $as_echo "noninstalled pkgconfig -L $ax_create_pkgconfig_src_libdir" >&6; }
19704 if test ".$ax_create_pkgconfig_src_headers" = "." ; then
19705 ax_create_pkgconfig_src_headers=`pwd`
19706 v="$ac_top_srcdir" ;
19707 test ".$v" != "." || v="$ax_spec_dir"
19708 test ".$v" != "." || v="$srcdir"
19709 case "$v" in /*) ax_create_pkgconfig_src_headers="" ;; esac
19710 ax_create_pkgconfig_src_headers=`$as_dirname -- "$ax_create_pkgconfig_src_headers/$v/x" ||
19711 $as_expr X"$ax_create_pkgconfig_src_headers/$v/x" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19712 X"$ax_create_pkgconfig_src_headers/$v/x" : 'X\(//\)[^/]' \| \
19713 X"$ax_create_pkgconfig_src_headers/$v/x" : 'X\(//\)$' \| \
19714 X"$ax_create_pkgconfig_src_headers/$v/x" : 'X\(/\)' \| . 2>/dev/null ||
19715 $as_echo X"$ax_create_pkgconfig_src_headers/$v/x" |
19716 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19720 /^X\(\/\/\)[^/].*/{
19733 test ! -d $ax_create_pkgconfig_src_headers/include || \
19734 ax_create_pkgconfig_src_headers="$ax_create_pkgconfig_src_headers/include"
19735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: noninstalled pkgconfig -I $ax_create_pkgconfig_src_headers" >&5
19736 $as_echo "noninstalled pkgconfig -I $ax_create_pkgconfig_src_headers" >&6; }
19740 ac_config_commands="$ac_config_commands $ax_create_pkgconfig_generate"
19743 LIBTOOL="$LIBTOOL --silent"
19745 # output packaging and makefiles
19746 cat >confcache <<\_ACEOF
19747 # This file is a shell script that caches the results of configure
19748 # tests run on this system so they can be shared between configure
19749 # scripts and configure runs, see configure's option --config-cache.
19750 # It is not useful on other systems. If it contains results you don't
19751 # want to keep, you may remove or edit it.
19753 # config.status only pays attention to the cache file if you give it
19754 # the --recheck option to rerun configure.
19756 # `ac_cv_env_foo' variables (set or unset) will be overridden when
19757 # loading this file, other *unset* `ac_cv_foo' will be assigned the
19758 # following values.
19762 # The following way of writing the cache mishandles newlines in values,
19763 # but we know of no workaround that is simple, portable, and efficient.
19764 # So, we kill variables containing newlines.
19765 # Ultrix sh set writes to stderr and can't be redirected directly,
19766 # and sets the high bit in the cache file unless we assign to the vars.
19768 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
19769 eval ac_val=\$$ac_var
19773 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
19774 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
19777 _ | IFS | as_nl) ;; #(
19778 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
19779 *) { eval $ac_var=; unset $ac_var;} ;;
19785 case $as_nl`(ac_space=' '; set) 2>&1` in #(
19786 *${as_nl}ac_space=\ *)
19787 # `set' does not quote correctly, so add quotes: double-quote
19788 # substitution turns \\\\ into \\, and sed turns \\ into \.
19791 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
19794 # `set' quotes correctly as required by POSIX, so do not add quotes.
19795 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
19804 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
19806 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
19808 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
19809 if test -w "$cache_file"; then
19810 test "x$cache_file" != "x/dev/null" &&
19811 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
19812 $as_echo "$as_me: updating cache $cache_file" >&6;}
19813 cat confcache >$cache_file
19815 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
19816 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
19821 test "x$prefix" = xNONE && prefix=$ac_default_prefix
19822 # Let make expand exec_prefix.
19823 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
19825 DEFS=-DHAVE_CONFIG_H
19830 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
19831 # 1. Remove the extension, and $U if already installed.
19832 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
19833 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
19834 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
19835 # will be set to the directory where LIBOBJS objects are built.
19836 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
19837 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
19839 LIBOBJS=$ac_libobjs
19841 LTLIBOBJS=$ac_ltlibobjs
19844 if test -n "$EXEEXT"; then
19846 am__EXEEXT_FALSE='#'
19848 am__EXEEXT_TRUE='#'
19852 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
19853 as_fn_error $? "conditional \"AMDEP\" was never defined.
19854 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19856 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
19857 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
19858 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19860 if test -z "${DX_COND_doc_TRUE}" && test -z "${DX_COND_doc_FALSE}"; then
19861 as_fn_error $? "conditional \"DX_COND_doc\" was never defined.
19862 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19864 if test -z "${DX_COND_doc_TRUE}" && test -z "${DX_COND_doc_FALSE}"; then
19865 as_fn_error $? "conditional \"DX_COND_doc\" was never defined.
19866 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19868 if test -z "${DX_COND_dot_TRUE}" && test -z "${DX_COND_dot_FALSE}"; then
19869 as_fn_error $? "conditional \"DX_COND_dot\" was never defined.
19870 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19872 if test -z "${DX_COND_dot_TRUE}" && test -z "${DX_COND_dot_FALSE}"; then
19873 as_fn_error $? "conditional \"DX_COND_dot\" was never defined.
19874 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19876 if test -z "${DX_COND_man_TRUE}" && test -z "${DX_COND_man_FALSE}"; then
19877 as_fn_error $? "conditional \"DX_COND_man\" was never defined.
19878 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19880 if test -z "${DX_COND_man_TRUE}" && test -z "${DX_COND_man_FALSE}"; then
19881 as_fn_error $? "conditional \"DX_COND_man\" was never defined.
19882 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19884 if test -z "${DX_COND_rtf_TRUE}" && test -z "${DX_COND_rtf_FALSE}"; then
19885 as_fn_error $? "conditional \"DX_COND_rtf\" was never defined.
19886 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19888 if test -z "${DX_COND_rtf_TRUE}" && test -z "${DX_COND_rtf_FALSE}"; then
19889 as_fn_error $? "conditional \"DX_COND_rtf\" was never defined.
19890 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19892 if test -z "${DX_COND_xml_TRUE}" && test -z "${DX_COND_xml_FALSE}"; then
19893 as_fn_error $? "conditional \"DX_COND_xml\" was never defined.
19894 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19896 if test -z "${DX_COND_xml_TRUE}" && test -z "${DX_COND_xml_FALSE}"; then
19897 as_fn_error $? "conditional \"DX_COND_xml\" was never defined.
19898 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19900 if test -z "${DX_COND_chm_TRUE}" && test -z "${DX_COND_chm_FALSE}"; then
19901 as_fn_error $? "conditional \"DX_COND_chm\" was never defined.
19902 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19904 if test -z "${DX_COND_chm_TRUE}" && test -z "${DX_COND_chm_FALSE}"; then
19905 as_fn_error $? "conditional \"DX_COND_chm\" was never defined.
19906 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19908 if test -z "${DX_COND_chi_TRUE}" && test -z "${DX_COND_chi_FALSE}"; then
19909 as_fn_error $? "conditional \"DX_COND_chi\" was never defined.
19910 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19912 if test -z "${DX_COND_chi_TRUE}" && test -z "${DX_COND_chi_FALSE}"; then
19913 as_fn_error $? "conditional \"DX_COND_chi\" was never defined.
19914 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19916 if test -z "${DX_COND_html_TRUE}" && test -z "${DX_COND_html_FALSE}"; then
19917 as_fn_error $? "conditional \"DX_COND_html\" was never defined.
19918 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19920 if test -z "${DX_COND_html_TRUE}" && test -z "${DX_COND_html_FALSE}"; then
19921 as_fn_error $? "conditional \"DX_COND_html\" was never defined.
19922 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19924 if test -z "${DX_COND_ps_TRUE}" && test -z "${DX_COND_ps_FALSE}"; then
19925 as_fn_error $? "conditional \"DX_COND_ps\" was never defined.
19926 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19928 if test -z "${DX_COND_ps_TRUE}" && test -z "${DX_COND_ps_FALSE}"; then
19929 as_fn_error $? "conditional \"DX_COND_ps\" was never defined.
19930 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19932 if test -z "${DX_COND_pdf_TRUE}" && test -z "${DX_COND_pdf_FALSE}"; then
19933 as_fn_error $? "conditional \"DX_COND_pdf\" was never defined.
19934 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19936 if test -z "${DX_COND_pdf_TRUE}" && test -z "${DX_COND_pdf_FALSE}"; then
19937 as_fn_error $? "conditional \"DX_COND_pdf\" was never defined.
19938 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19940 if test -z "${DX_COND_latex_TRUE}" && test -z "${DX_COND_latex_FALSE}"; then
19941 as_fn_error $? "conditional \"DX_COND_latex\" was never defined.
19942 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19944 if test -z "${DX_COND_latex_TRUE}" && test -z "${DX_COND_latex_FALSE}"; then
19945 as_fn_error $? "conditional \"DX_COND_latex\" was never defined.
19946 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19948 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
19949 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
19950 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19952 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
19953 as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
19954 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19956 if test -z "${BUILD_PTHREAD_TRUE}" && test -z "${BUILD_PTHREAD_FALSE}"; then
19957 as_fn_error $? "conditional \"BUILD_PTHREAD\" was never defined.
19958 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19960 if test -z "${BUILD_XMLSEC_TRUE}" && test -z "${BUILD_XMLSEC_FALSE}"; then
19961 as_fn_error $? "conditional \"BUILD_XMLSEC\" was never defined.
19962 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19964 if test -z "${BUILD_UNITTEST_TRUE}" && test -z "${BUILD_UNITTEST_FALSE}"; then
19965 as_fn_error $? "conditional \"BUILD_UNITTEST\" was never defined.
19966 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19969 : ${CONFIG_STATUS=./config.status}
19971 ac_clean_files_save=$ac_clean_files
19972 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
19973 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
19974 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
19976 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
19978 # Generated by $as_me.
19979 # Run this file to recreate the current configuration.
19980 # Compiler output produced by configure, useful for debugging
19981 # configure, is in config.log if it exists.
19984 ac_cs_recheck=false
19987 SHELL=\${CONFIG_SHELL-$SHELL}
19990 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
19991 ## -------------------- ##
19992 ## M4sh Initialization. ##
19993 ## -------------------- ##
19995 # Be more Bourne compatible
19996 DUALCASE=1; export DUALCASE # for MKS sh
19997 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
20000 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
20001 # is contrary to our usage. Disable this feature.
20002 alias -g '${1+"$@"}'='"$@"'
20003 setopt NO_GLOB_SUBST
20005 case `(set -o) 2>/dev/null` in #(
20017 # Printing a long string crashes Solaris 7 /usr/bin/printf.
20018 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
20019 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
20020 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
20021 # Prefer a ksh shell builtin over an external printf program on Solaris,
20022 # but without wasting forks for bash or zsh.
20023 if test -z "$BASH_VERSION$ZSH_VERSION" \
20024 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
20025 as_echo='print -r --'
20026 as_echo_n='print -rn --'
20027 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
20028 as_echo='printf %s\n'
20029 as_echo_n='printf %s'
20031 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
20032 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
20033 as_echo_n='/usr/ucb/echo -n'
20035 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
20036 as_echo_n_body='eval
20040 expr "X$arg" : "X\\(.*\\)$as_nl";
20041 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
20043 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
20045 export as_echo_n_body
20046 as_echo_n='sh -c $as_echo_n_body as_echo'
20048 export as_echo_body
20049 as_echo='sh -c $as_echo_body as_echo'
20052 # The user is always right.
20053 if test "${PATH_SEPARATOR+set}" != set; then
20055 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
20056 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
20063 # We need space, tab and new line, in precisely that order. Quoting is
20064 # there to prevent editors from complaining about space-tab.
20065 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
20066 # splitting by setting IFS to empty value.)
20069 # Find who we are. Look in the path if we contain no directory separator.
20071 *[\\/]* ) as_myself=$0 ;;
20072 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20073 for as_dir in $PATH
20076 test -z "$as_dir" && as_dir=.
20077 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
20083 # We did not find ourselves, most probably we were run as `sh COMMAND'
20084 # in which case we are not to be found in the path.
20085 if test "x$as_myself" = x; then
20088 if test ! -f "$as_myself"; then
20089 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
20093 # Unset variables that we do not need and which cause bugs (e.g. in
20094 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
20095 # suppresses any "Segmentation fault" message there. '((' could
20096 # trigger a bug in pdksh 5.2.14.
20097 for as_var in BASH_ENV ENV MAIL MAILPATH
20098 do eval test x\${$as_var+set} = xset \
20099 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
20112 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
20115 # as_fn_error STATUS ERROR [LINENO LOG_FD]
20116 # ----------------------------------------
20117 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
20118 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
20119 # script with STATUS, using 1 if that was 0.
20122 as_status=$1; test $as_status -eq 0 && as_status=1
20124 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
20125 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
20127 $as_echo "$as_me: error: $2" >&2
20128 as_fn_exit $as_status
20132 # as_fn_set_status STATUS
20133 # -----------------------
20134 # Set $? to STATUS, without forking.
20135 as_fn_set_status ()
20138 } # as_fn_set_status
20140 # as_fn_exit STATUS
20141 # -----------------
20142 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
20146 as_fn_set_status $1
20152 # Portably unset VAR.
20155 { eval $1=; unset $1;}
20157 as_unset=as_fn_unset
20158 # as_fn_append VAR VALUE
20159 # ----------------------
20160 # Append the text in VALUE to the end of the definition contained in VAR. Take
20161 # advantage of any shell optimizations that allow amortized linear growth over
20162 # repeated appends, instead of the typical quadratic growth present in naive
20164 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
20165 eval 'as_fn_append ()
20176 # as_fn_arith ARG...
20177 # ------------------
20178 # Perform arithmetic evaluation on the ARGs, and store the result in the
20179 # global $as_val. Take advantage of shells that can avoid forks. The arguments
20180 # must be portable across $(()) and expr.
20181 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
20182 eval 'as_fn_arith ()
20189 as_val=`expr "$@" || test $? -eq 1`
20194 if expr a : '\(a\)' >/dev/null 2>&1 &&
20195 test "X`expr 00001 : '.*\(...\)'`" = X001; then
20201 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
20202 as_basename=basename
20207 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
20213 as_me=`$as_basename -- "$0" ||
20214 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
20215 X"$0" : 'X\(//\)$' \| \
20216 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
20218 sed '/^.*\/\([^/][^/]*\)\/*$/{
20232 # Avoid depending upon Character Ranges.
20233 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
20234 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
20235 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
20236 as_cr_digits='0123456789'
20237 as_cr_alnum=$as_cr_Letters$as_cr_digits
20239 ECHO_C= ECHO_N= ECHO_T=
20240 case `echo -n x` in #(((((
20242 case `echo 'xy\c'` in
20243 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
20245 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
20252 rm -f conf$$ conf$$.exe conf$$.file
20253 if test -d conf$$.dir; then
20254 rm -f conf$$.dir/conf$$.file
20257 mkdir conf$$.dir 2>/dev/null
20259 if (echo >conf$$.file) 2>/dev/null; then
20260 if ln -s conf$$.file conf$$ 2>/dev/null; then
20262 # ... but there are two gotchas:
20263 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
20264 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
20265 # In both cases, we have to default to `cp -p'.
20266 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
20268 elif ln conf$$.file conf$$ 2>/dev/null; then
20276 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
20277 rmdir conf$$.dir 2>/dev/null
20282 # Create "$as_dir" as a directory, including parents if necessary.
20287 -*) as_dir=./$as_dir;;
20289 test -d "$as_dir" || eval $as_mkdir_p || {
20293 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
20294 *) as_qdir=$as_dir;;
20296 as_dirs="'$as_qdir' $as_dirs"
20297 as_dir=`$as_dirname -- "$as_dir" ||
20298 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20299 X"$as_dir" : 'X\(//\)[^/]' \| \
20300 X"$as_dir" : 'X\(//\)$' \| \
20301 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
20302 $as_echo X"$as_dir" |
20303 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20307 /^X\(\/\/\)[^/].*/{
20320 test -d "$as_dir" && break
20322 test -z "$as_dirs" || eval "mkdir $as_dirs"
20323 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
20327 if mkdir -p . 2>/dev/null; then
20328 as_mkdir_p='mkdir -p "$as_dir"'
20330 test -d ./-p && rmdir ./-p
20334 if test -x / >/dev/null 2>&1; then
20335 as_test_x='test -x'
20337 if ls -dL / >/dev/null 2>&1; then
20344 if test -d "$1"; then
20350 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
20351 ???[sx]*):;;*)false;;esac;fi
20355 as_executable_p=$as_test_x
20357 # Sed expression to map a string onto a valid CPP name.
20358 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
20360 # Sed expression to map a string onto a valid variable name.
20361 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
20365 ## ----------------------------------- ##
20366 ## Main body of $CONFIG_STATUS script. ##
20367 ## ----------------------------------- ##
20369 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
20371 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20372 # Save the log message, to keep $0 and so on meaningful, and to
20373 # report actual input values of CONFIG_FILES etc. instead of their
20374 # values after options handling.
20376 This file was extended by xmltooling $as_me 1.5, which was
20377 generated by GNU Autoconf 2.67. Invocation command line was
20379 CONFIG_FILES = $CONFIG_FILES
20380 CONFIG_HEADERS = $CONFIG_HEADERS
20381 CONFIG_LINKS = $CONFIG_LINKS
20382 CONFIG_COMMANDS = $CONFIG_COMMANDS
20385 on `(hostname || uname -n) 2>/dev/null | sed 1q`
20390 case $ac_config_files in *"
20391 "*) set x $ac_config_files; shift; ac_config_files=$*;;
20394 case $ac_config_headers in *"
20395 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
20399 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20400 # Files that config.status was made for.
20401 config_files="$ac_config_files"
20402 config_headers="$ac_config_headers"
20403 config_commands="$ac_config_commands"
20407 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20409 \`$as_me' instantiates files and other configuration actions
20410 from templates according to the current configuration. Unless the files
20411 and actions are specified as TAGs, all are instantiated by default.
20413 Usage: $0 [OPTION]... [TAG]...
20415 -h, --help print this help, then exit
20416 -V, --version print version number and configuration settings, then exit
20417 --config print configuration, then exit
20418 -q, --quiet, --silent
20419 do not print progress messages
20420 -d, --debug don't remove temporary files
20421 --recheck update $as_me by reconfiguring in the same conditions
20422 --file=FILE[:TEMPLATE]
20423 instantiate the configuration file FILE
20424 --header=FILE[:TEMPLATE]
20425 instantiate the configuration header FILE
20427 Configuration files:
20430 Configuration headers:
20433 Configuration commands:
20436 Report bugs to <https://bugs.internet2.edu/>."
20439 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20440 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
20442 xmltooling config.status 1.5
20443 configured by $0, generated by GNU Autoconf 2.67,
20444 with options \\"\$ac_cs_config\\"
20446 Copyright (C) 2010 Free Software Foundation, Inc.
20447 This config.status script is free software; the Free Software Foundation
20448 gives unlimited permission to copy, distribute and modify it."
20455 test -n "\$AWK" || AWK=awk
20458 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20459 # The default lists apply if the user does not specify any file.
20465 ac_option=`expr "X$1" : 'X\([^=]*\)='`
20466 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
20470 ac_option=`expr "X$1" : 'X\([^=]*\)='`
20482 # Handling of the options.
20483 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
20485 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
20486 $as_echo "$ac_cs_version"; exit ;;
20487 --config | --confi | --conf | --con | --co | --c )
20488 $as_echo "$ac_cs_config"; exit ;;
20489 --debug | --debu | --deb | --de | --d | -d )
20491 --file | --fil | --fi | --f )
20494 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
20495 '') as_fn_error $? "missing file argument" ;;
20497 as_fn_append CONFIG_FILES " '$ac_optarg'"
20498 ac_need_defaults=false;;
20499 --header | --heade | --head | --hea )
20502 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
20504 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
20505 ac_need_defaults=false;;
20507 # Conflict between --help and --header
20508 as_fn_error $? "ambiguous option: \`$1'
20509 Try \`$0 --help' for more information.";;
20510 --help | --hel | -h )
20511 $as_echo "$ac_cs_usage"; exit ;;
20512 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
20513 | -silent | --silent | --silen | --sile | --sil | --si | --s)
20516 # This is an error.
20517 -*) as_fn_error $? "unrecognized option: \`$1'
20518 Try \`$0 --help' for more information." ;;
20520 *) as_fn_append ac_config_targets " $1"
20521 ac_need_defaults=false ;;
20527 ac_configure_extra_args=
20529 if $ac_cs_silent; then
20531 ac_configure_extra_args="$ac_configure_extra_args --silent"
20535 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20536 if \$ac_cs_recheck; then
20537 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
20539 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
20540 CONFIG_SHELL='$SHELL'
20541 export CONFIG_SHELL
20546 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20550 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
20551 ## Running $as_me. ##
20557 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20561 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
20564 # The HP-UX ksh and POSIX shell print the target directory to stdout
20565 # if CDPATH is set.
20566 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
20568 sed_quote_subst='$sed_quote_subst'
20569 double_quote_subst='$double_quote_subst'
20570 delay_variable_subst='$delay_variable_subst'
20571 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
20572 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
20573 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
20574 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
20575 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
20576 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
20577 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
20578 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
20579 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
20580 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
20581 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
20582 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
20583 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
20584 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
20585 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
20586 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
20587 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
20588 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
20589 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
20590 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
20591 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
20592 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
20593 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
20594 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
20595 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
20596 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
20597 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
20598 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
20599 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
20600 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
20601 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
20602 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
20603 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
20604 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
20605 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
20606 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
20607 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
20608 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
20609 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
20610 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
20611 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
20612 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
20613 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
20614 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
20615 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
20616 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
20617 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
20618 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
20619 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
20620 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
20621 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
20622 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
20623 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
20624 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
20625 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
20626 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"`'
20627 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
20628 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
20629 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
20630 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
20631 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
20632 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
20633 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
20634 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
20635 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
20636 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
20637 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
20638 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
20639 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
20640 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
20641 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
20642 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
20643 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
20644 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
20645 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
20646 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
20647 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
20648 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
20649 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
20650 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
20651 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
20652 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
20653 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
20654 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
20655 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
20656 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
20657 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
20658 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
20659 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
20660 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
20661 hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
20662 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
20663 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
20664 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
20665 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
20666 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
20667 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
20668 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
20669 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
20670 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
20671 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
20672 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
20673 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
20674 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
20675 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
20676 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
20677 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
20678 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
20679 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
20680 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
20681 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
20682 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
20683 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
20684 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
20685 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
20686 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
20687 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
20688 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
20689 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
20690 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
20691 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
20692 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
20693 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
20694 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
20695 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
20696 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
20697 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
20698 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
20699 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
20700 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
20701 compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
20702 predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
20703 postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
20704 predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
20705 postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
20706 compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
20707 LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
20708 reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
20709 reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
20710 old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
20711 compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
20712 GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
20713 lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
20714 lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
20715 lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
20716 lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
20717 lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
20718 archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
20719 enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
20720 export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
20721 whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
20722 compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
20723 old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
20724 old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
20725 archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
20726 archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
20727 module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
20728 module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
20729 with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
20730 allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
20731 no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
20732 hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
20733 hardcode_libdir_flag_spec_ld_CXX='`$ECHO "$hardcode_libdir_flag_spec_ld_CXX" | $SED "$delay_single_quote_subst"`'
20734 hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
20735 hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
20736 hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
20737 hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
20738 hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
20739 hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
20740 inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
20741 link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
20742 always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
20743 export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
20744 exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
20745 include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
20746 prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
20747 postlink_cmds_CXX='`$ECHO "$postlink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
20748 file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
20749 hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
20750 compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
20751 predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
20752 postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
20753 predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
20754 postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
20755 compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
20758 LTCFLAGS='$LTCFLAGS'
20759 compiler='$compiler_DEFAULT'
20761 # A function that is used when there is no print builtin or printf.
20762 func_fallback_echo ()
20764 eval 'cat <<_LTECHO_EOF
20769 # Quote evaled strings.
20783 deplibs_check_method \
20788 sharedlib_from_linklib_cmd \
20791 archiver_list_spec \
20797 lt_cv_sys_global_symbol_pipe \
20798 lt_cv_sys_global_symbol_to_cdecl \
20799 lt_cv_sys_global_symbol_to_c_name_address \
20800 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
20801 nm_file_list_spec \
20802 lt_prog_compiler_no_builtin_flag \
20803 lt_prog_compiler_pic \
20804 lt_prog_compiler_wl \
20805 lt_prog_compiler_static \
20806 lt_cv_prog_compiler_c_o \
20815 export_dynamic_flag_spec \
20816 whole_archive_flag_spec \
20817 compiler_needs_object \
20819 allow_undefined_flag \
20820 no_undefined_flag \
20821 hardcode_libdir_flag_spec \
20822 hardcode_libdir_flag_spec_ld \
20823 hardcode_libdir_separator \
20827 variables_saved_for_relink \
20829 library_names_spec \
20831 install_override_mode \
20835 compiler_lib_search_dirs \
20840 compiler_lib_search_path \
20844 lt_prog_compiler_no_builtin_flag_CXX \
20845 lt_prog_compiler_pic_CXX \
20846 lt_prog_compiler_wl_CXX \
20847 lt_prog_compiler_static_CXX \
20848 lt_cv_prog_compiler_c_o_CXX \
20849 export_dynamic_flag_spec_CXX \
20850 whole_archive_flag_spec_CXX \
20851 compiler_needs_object_CXX \
20853 allow_undefined_flag_CXX \
20854 no_undefined_flag_CXX \
20855 hardcode_libdir_flag_spec_CXX \
20856 hardcode_libdir_flag_spec_ld_CXX \
20857 hardcode_libdir_separator_CXX \
20858 exclude_expsyms_CXX \
20859 include_expsyms_CXX \
20860 file_list_spec_CXX \
20861 compiler_lib_search_dirs_CXX \
20862 predep_objects_CXX \
20863 postdep_objects_CXX \
20866 compiler_lib_search_path_CXX; do
20867 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
20868 *[\\\\\\\`\\"\\\$]*)
20869 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
20872 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
20877 # Double-quote double-evaled strings.
20878 for var in reload_cmds \
20879 old_postinstall_cmds \
20880 old_postuninstall_cmds \
20882 extract_expsyms_cmds \
20883 old_archive_from_new_cmds \
20884 old_archive_from_expsyms_cmds \
20886 archive_expsym_cmds \
20888 module_expsym_cmds \
20889 export_symbols_cmds \
20893 postuninstall_cmds \
20895 sys_lib_search_path_spec \
20896 sys_lib_dlsearch_path_spec \
20898 old_archive_cmds_CXX \
20899 old_archive_from_new_cmds_CXX \
20900 old_archive_from_expsyms_cmds_CXX \
20902 archive_expsym_cmds_CXX \
20904 module_expsym_cmds_CXX \
20905 export_symbols_cmds_CXX \
20907 postlink_cmds_CXX; do
20908 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
20909 *[\\\\\\\`\\"\\\$]*)
20910 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
20913 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
20918 ac_aux_dir='$ac_aux_dir'
20919 xsi_shell='$xsi_shell'
20920 lt_shell_append='$lt_shell_append'
20922 # See if we are running on zsh, and set the options which allow our
20923 # commands through without removal of \ escapes INIT.
20924 if test -n "\${ZSH_VERSION+set}" ; then
20925 setopt NO_GLOB_SUBST
20931 TIMESTAMP='$TIMESTAMP'
20940 ax_create_pkgconfig_generate="$ax_create_pkgconfig_generate"
20941 pkgconfig_prefix='$prefix'
20942 pkgconfig_execprefix='$exec_prefix'
20943 pkgconfig_bindir='$bindir'
20944 pkgconfig_libdir='$libdir'
20945 pkgconfig_includedir='$includedir'
20946 pkgconfig_datarootdir='$datarootdir'
20947 pkgconfig_datadir='$datadir'
20948 pkgconfig_sysconfdir='$sysconfdir'
20949 pkgconfig_suffix='$ax_create_pkgconfig_suffix'
20950 pkgconfig_package='$PACKAGE_NAME'
20951 pkgconfig_libname='$ax_create_pkgconfig_libname'
20952 pkgconfig_description='$ax_create_pkgconfig_description'
20953 pkgconfig_version='$ax_create_pkgconfig_version'
20954 pkgconfig_requires='$ax_create_pkgconfig_requires'
20955 pkgconfig_libs='$ax_create_pkgconfig_libs'
20956 pkgconfig_ldflags='$ax_create_pkgconfig_ldflags'
20957 pkgconfig_cppflags='$ax_create_pkgconfig_cppflags'
20958 pkgconfig_src_libdir='$ax_create_pkgconfig_src_libdir'
20959 pkgconfig_src_headers='$ax_create_pkgconfig_src_headers'
20964 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20966 # Handling of arguments.
20967 for ac_config_target in $ac_config_targets
20969 case $ac_config_target in
20970 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
20971 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
20972 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
20973 "xmltooling/config_pub.h") CONFIG_HEADERS="$CONFIG_HEADERS xmltooling/config_pub.h" ;;
20974 "xmltooling.spec") CONFIG_FILES="$CONFIG_FILES xmltooling.spec" ;;
20975 "pkginfo") CONFIG_FILES="$CONFIG_FILES pkginfo" ;;
20976 "Portfile") CONFIG_FILES="$CONFIG_FILES Portfile" ;;
20977 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
20978 "xmltooling/Makefile") CONFIG_FILES="$CONFIG_FILES xmltooling/Makefile" ;;
20979 "xmltoolingtest/Makefile") CONFIG_FILES="$CONFIG_FILES xmltoolingtest/Makefile" ;;
20980 "schemas/Makefile") CONFIG_FILES="$CONFIG_FILES schemas/Makefile" ;;
20981 "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
20982 "$ax_create_pkgconfig_generate") CONFIG_COMMANDS="$CONFIG_COMMANDS $ax_create_pkgconfig_generate" ;;
20984 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5 ;;
20989 # If the user did not use the arguments to specify the items to instantiate,
20990 # then the envvar interface is used. Set only those that are not.
20991 # We use the long form for the default assignment because of an extremely
20992 # bizarre bug on SunOS 4.1.3.
20993 if $ac_need_defaults; then
20994 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
20995 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
20996 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
20999 # Have a temporary directory for convenience. Make it in the build tree
21000 # simply because there is no reason against having it here, and in addition,
21001 # creating and moving files from /tmp can sometimes cause problems.
21002 # Hook for its removal unless debugging.
21003 # Note that there is a small window in which the directory will not be cleaned:
21004 # after its creation but before its name has been assigned to `$tmp'.
21008 trap 'exit_status=$?
21009 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
21011 trap 'as_fn_exit 1' 1 2 13 15
21013 # Create a (secure) tmp directory for tmp files.
21016 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
21017 test -n "$tmp" && test -d "$tmp"
21020 tmp=./conf$$-$RANDOM
21021 (umask 077 && mkdir "$tmp")
21022 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
21024 # Set up the scripts for CONFIG_FILES section.
21025 # No need to generate them if there are no CONFIG_FILES.
21026 # This happens for instance with `./config.status config.h'.
21027 if test -n "$CONFIG_FILES"; then
21030 ac_cr=`echo X | tr X '\015'`
21031 # On cygwin, bash can eat \r inside `` if the user requested igncr.
21032 # But we know of no other shell where ac_cr would be empty at this
21033 # point, so we can use a bashism as a fallback.
21034 if test "x$ac_cr" = x; then
21035 eval ac_cr=\$\'\\r\'
21037 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
21038 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
21041 ac_cs_awk_cr=$ac_cr
21044 echo 'BEGIN {' >"$tmp/subs1.awk" &&
21049 echo "cat >conf$$subs.awk <<_ACEOF" &&
21050 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
21052 } >conf$$subs.sh ||
21053 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
21054 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
21056 for ac_last_try in false false false false false :; do
21057 . ./conf$$subs.sh ||
21058 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
21060 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
21061 if test $ac_delim_n = $ac_delim_num; then
21063 elif $ac_last_try; then
21064 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
21066 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
21069 rm -f conf$$subs.sh
21071 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21072 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
21076 s/^/S["/; s/!.*/"]=/
21086 s/\(.\{148\}\)..*/\1/
21088 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
21093 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
21100 s/\(.\{148\}\)..*/\1/
21102 s/["\\]/\\&/g; s/^/"/; s/$/"/
21106 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
21111 ' <conf$$subs.awk | sed '
21116 ' >>$CONFIG_STATUS || ac_write_fail=1
21117 rm -f conf$$subs.awk
21118 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21120 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
21121 for (key in S) S_is_set[key] = 1
21127 nfields = split(line, field, "@")
21129 len = length(field[1])
21130 for (i = 2; i < nfields; i++) {
21132 keylen = length(key)
21133 if (S_is_set[key]) {
21135 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
21136 len += length(value) + length(field[++i])
21147 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21148 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
21149 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
21152 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
21153 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
21156 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
21157 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
21158 # trailing colons and then remove the whole line if VPATH becomes empty
21159 # (actually we leave an empty line to preserve line numbers).
21160 if test "x$srcdir" = x.; then
21161 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
21179 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21180 fi # test -n "$CONFIG_FILES"
21182 # Set up the scripts for CONFIG_HEADERS section.
21183 # No need to generate them if there are no CONFIG_HEADERS.
21184 # This happens for instance with `./config.status Makefile'.
21185 if test -n "$CONFIG_HEADERS"; then
21186 cat >"$tmp/defines.awk" <<\_ACAWK ||
21190 # Transform confdefs.h into an awk script `defines.awk', embedded as
21191 # here-document in config.status, that substitutes the proper values into
21192 # config.h.in to produce config.h.
21194 # Create a delimiter string that does not exist in confdefs.h, to ease
21195 # handling of long lines.
21197 for ac_last_try in false false :; do
21198 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
21199 if test -z "$ac_t"; then
21201 elif $ac_last_try; then
21202 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
21204 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
21208 # For the awk script, D is an array of macro values keyed by name,
21209 # likewise P contains macro parameters if any. Preserve backslash
21210 # newline sequences.
21212 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
21214 s/.\{148\}/&'"$ac_delim"'/g
21217 s/^[ ]*#[ ]*define[ ][ ]*/ /
21224 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
21226 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
21230 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
21231 D["\1"]=" \3\\\\\\n"\\/p
21233 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
21238 s/.\{148\}/&'"$ac_delim"'/g
21243 s/["\\]/\\&/g; s/^/"/; s/$/"/p
21246 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
21248 ' <confdefs.h | sed '
21249 s/'"$ac_delim"'/"\\\
21250 "/g' >>$CONFIG_STATUS || ac_write_fail=1
21252 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21253 for (key in D) D_is_set[key] = 1
21256 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
21258 split(line, arg, " ")
21259 if (arg[1] == "#") {
21263 defundef = substr(arg[1], 2)
21266 split(mac1, mac2, "(") #)
21268 prefix = substr(line, 1, index(line, defundef) - 1)
21269 if (D_is_set[macro]) {
21270 # Preserve the white space surrounding the "#".
21271 print prefix "define", macro P[macro] D[macro]
21274 # Replace #undef with comments. This is necessary, for example,
21275 # in the case of _POSIX_SOURCE, which is predefined and required
21276 # on some systems where configure will not decide to define it.
21277 if (defundef == "undef") {
21278 print "/*", prefix defundef, macro, "*/"
21286 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21287 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
21288 fi # test -n "$CONFIG_HEADERS"
21291 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
21296 :[FHLC]) ac_mode=$ac_tag; continue;;
21298 case $ac_mode$ac_tag in
21300 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5 ;;
21301 :[FH]-) ac_tag=-:-;;
21302 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
21319 -) ac_f="$tmp/stdin";;
21320 *) # Look for the file first in the build tree, then in the source tree
21321 # (if the path is not absolute). The absolute path cannot be DOS-style,
21322 # because $ac_f cannot contain `:'.
21326 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
21328 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5 ;;
21330 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
21331 as_fn_append ac_file_inputs " '$ac_f'"
21334 # Let's still pretend it is `configure' which instantiates (i.e., don't
21335 # use $as_me), people would be surprised to read:
21336 # /* config.h. Generated by config.status. */
21337 configure_input='Generated from '`
21338 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
21340 if test x"$ac_file" != x-; then
21341 configure_input="$ac_file. $configure_input"
21342 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
21343 $as_echo "$as_me: creating $ac_file" >&6;}
21345 # Neutralize special characters interpreted by sed in replacement strings.
21346 case $configure_input in #(
21347 *\&* | *\|* | *\\* )
21348 ac_sed_conf_input=`$as_echo "$configure_input" |
21349 sed 's/[\\\\&|]/\\\\&/g'`;; #(
21350 *) ac_sed_conf_input=$configure_input;;
21354 *:-:* | *:-) cat >"$tmp/stdin" \
21355 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
21360 ac_dir=`$as_dirname -- "$ac_file" ||
21361 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21362 X"$ac_file" : 'X\(//\)[^/]' \| \
21363 X"$ac_file" : 'X\(//\)$' \| \
21364 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
21365 $as_echo X"$ac_file" |
21366 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21370 /^X\(\/\/\)[^/].*/{
21383 as_dir="$ac_dir"; as_fn_mkdir_p
21387 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
21389 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
21390 # A ".." for each directory in $ac_dir_suffix.
21391 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
21392 case $ac_top_builddir_sub in
21393 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
21394 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
21397 ac_abs_top_builddir=$ac_pwd
21398 ac_abs_builddir=$ac_pwd$ac_dir_suffix
21399 # for backward compatibility:
21400 ac_top_builddir=$ac_top_build_prefix
21403 .) # We are building in place.
21405 ac_top_srcdir=$ac_top_builddir_sub
21406 ac_abs_top_srcdir=$ac_pwd ;;
21407 [\\/]* | ?:[\\/]* ) # Absolute name.
21408 ac_srcdir=$srcdir$ac_dir_suffix;
21409 ac_top_srcdir=$srcdir
21410 ac_abs_top_srcdir=$srcdir ;;
21411 *) # Relative name.
21412 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
21413 ac_top_srcdir=$ac_top_build_prefix$srcdir
21414 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
21416 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
21426 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
21427 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
21429 ac_MKDIR_P=$MKDIR_P
21431 [\\/$]* | ?:[\\/]* ) ;;
21432 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
21436 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21437 # If the template does not know about datarootdir, expand it.
21438 # FIXME: This hack should be removed a few years after 2.60.
21439 ac_datarootdir_hack=; ac_datarootdir_seen=
21450 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
21451 *datarootdir*) ac_datarootdir_seen=yes;;
21452 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
21453 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
21454 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
21456 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21457 ac_datarootdir_hack='
21458 s&@datadir@&$datadir&g
21459 s&@docdir@&$docdir&g
21460 s&@infodir@&$infodir&g
21461 s&@localedir@&$localedir&g
21462 s&@mandir@&$mandir&g
21463 s&\\\${datarootdir}&$datarootdir&g' ;;
21467 # Neutralize VPATH when `$srcdir' = `.'.
21468 # Shell code in configure.ac might set extrasub.
21469 # FIXME: do we really want to maintain this feature?
21470 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21471 ac_sed_extra="$ac_vpsub
21474 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21476 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
21477 s|@configure_input@|$ac_sed_conf_input|;t t
21478 s&@top_builddir@&$ac_top_builddir_sub&;t t
21479 s&@top_build_prefix@&$ac_top_build_prefix&;t t
21480 s&@srcdir@&$ac_srcdir&;t t
21481 s&@abs_srcdir@&$ac_abs_srcdir&;t t
21482 s&@top_srcdir@&$ac_top_srcdir&;t t
21483 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
21484 s&@builddir@&$ac_builddir&;t t
21485 s&@abs_builddir@&$ac_abs_builddir&;t t
21486 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
21487 s&@INSTALL@&$ac_INSTALL&;t t
21488 s&@MKDIR_P@&$ac_MKDIR_P&;t t
21489 $ac_datarootdir_hack
21491 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
21492 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
21494 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
21495 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
21496 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
21497 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
21498 which seems to be undefined. Please make sure it is defined" >&5
21499 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
21500 which seems to be undefined. Please make sure it is defined" >&2;}
21504 -) cat "$tmp/out" && rm -f "$tmp/out";;
21505 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
21507 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
21513 if test x"$ac_file" != x-; then
21515 $as_echo "/* $configure_input */" \
21516 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
21517 } >"$tmp/config.h" \
21518 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
21519 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
21520 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
21521 $as_echo "$as_me: $ac_file is unchanged" >&6;}
21524 mv "$tmp/config.h" "$ac_file" \
21525 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
21528 $as_echo "/* $configure_input */" \
21529 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
21530 || as_fn_error $? "could not create -" "$LINENO" 5
21532 # Compute "$ac_file"'s index in $config_headers.
21535 for _am_header in $config_headers :; do
21536 case $_am_header in
21537 $_am_arg | $_am_arg:* )
21540 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
21543 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
21544 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21545 X"$_am_arg" : 'X\(//\)[^/]' \| \
21546 X"$_am_arg" : 'X\(//\)$' \| \
21547 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
21548 $as_echo X"$_am_arg" |
21549 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21553 /^X\(\/\/\)[^/].*/{
21565 s/.*/./; q'`/stamp-h$_am_stamp_count
21568 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
21569 $as_echo "$as_me: executing $ac_file commands" >&6;}
21574 case $ac_file$ac_mode in
21575 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
21576 # Autoconf 2.62 quotes --file arguments for eval, but not when files
21577 # are listed without --file. Let's play safe and only enable the eval
21578 # if we detect the quoting.
21579 case $CONFIG_FILES in
21580 *\'*) eval set x "$CONFIG_FILES" ;;
21581 *) set x $CONFIG_FILES ;;
21586 # Strip MF so we end up with the name of the file.
21587 mf=`echo "$mf" | sed -e 's/:.*$//'`
21588 # Check whether this is an Automake generated Makefile or not.
21589 # We used to match only the files named `Makefile.in', but
21590 # some people rename them; so instead we look at the file content.
21591 # Grep'ing the first line is not enough: some people post-process
21592 # each Makefile.in and add a new line on top of each file to say so.
21593 # Grep'ing the whole file is not good either: AIX grep has a line
21594 # limit of 2048, but all sed's we know have understand at least 4000.
21595 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
21596 dirpart=`$as_dirname -- "$mf" ||
21597 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21598 X"$mf" : 'X\(//\)[^/]' \| \
21599 X"$mf" : 'X\(//\)$' \| \
21600 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
21602 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21606 /^X\(\/\/\)[^/].*/{
21622 # Extract the definition of DEPDIR, am__include, and am__quote
21623 # from the Makefile without running `make'.
21624 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
21625 test -z "$DEPDIR" && continue
21626 am__include=`sed -n 's/^am__include = //p' < "$mf"`
21627 test -z "am__include" && continue
21628 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
21629 # When using ansi2knr, U may be empty or an underscore; expand it
21630 U=`sed -n 's/^U = //p' < "$mf"`
21631 # Find all dependency output files, they are included files with
21632 # $(DEPDIR) in their names. We invoke sed twice because it is the
21633 # simplest approach to changing $(DEPDIR) to its actual value in the
21635 for file in `sed -n "
21636 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
21637 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
21638 # Make sure the directory exists.
21639 test -f "$dirpart/$file" && continue
21640 fdir=`$as_dirname -- "$file" ||
21641 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21642 X"$file" : 'X\(//\)[^/]' \| \
21643 X"$file" : 'X\(//\)$' \| \
21644 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
21645 $as_echo X"$file" |
21646 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21650 /^X\(\/\/\)[^/].*/{
21663 as_dir=$dirpart/$fdir; as_fn_mkdir_p
21664 # echo "creating $dirpart/$file"
21665 echo '# dummy' > "$dirpart/$file"
21672 # See if we are running on zsh, and set the options which allow our
21673 # commands through without removal of \ escapes.
21674 if test -n "${ZSH_VERSION+set}" ; then
21675 setopt NO_GLOB_SUBST
21678 cfgfile="${ofile}T"
21679 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
21682 cat <<_LT_EOF >> "$cfgfile"
21685 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
21686 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
21687 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
21688 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
21690 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
21691 # 2006, 2007, 2008, 2009, 2010 Free Software Foundation,
21693 # Written by Gordon Matzigkeit, 1996
21695 # This file is part of GNU Libtool.
21697 # GNU Libtool is free software; you can redistribute it and/or
21698 # modify it under the terms of the GNU General Public License as
21699 # published by the Free Software Foundation; either version 2 of
21700 # the License, or (at your option) any later version.
21702 # As a special exception to the GNU General Public License,
21703 # if you distribute this file as part of a program or library that
21704 # is built using GNU Libtool, you may include this file under the
21705 # same distribution terms that you use for the rest of that program.
21707 # GNU Libtool is distributed in the hope that it will be useful,
21708 # but WITHOUT ANY WARRANTY; without even the implied warranty of
21709 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
21710 # GNU General Public License for more details.
21712 # You should have received a copy of the GNU General Public License
21713 # along with GNU Libtool; see the file COPYING. If not, a copy
21714 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
21715 # obtained by writing to the Free Software Foundation, Inc.,
21716 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
21719 # The names of the tagged configurations supported by this script.
21720 available_tags="CXX "
21722 # ### BEGIN LIBTOOL CONFIG
21724 # Whether or not to build static libraries.
21725 build_old_libs=$enable_static
21727 # Which release of libtool.m4 was used?
21728 macro_version=$macro_version
21729 macro_revision=$macro_revision
21731 # Whether or not to build shared libraries.
21732 build_libtool_libs=$enable_shared
21734 # What type of objects to build.
21737 # Whether or not to optimize for fast installation.
21738 fast_install=$enable_fast_install
21740 # Shell to use when invoking shell scripts.
21743 # An echo program that protects backslashes.
21747 host_alias=$host_alias
21751 # The build system.
21752 build_alias=$build_alias
21756 # A sed program that does not truncate output.
21759 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
21760 Xsed="\$SED -e 1s/^X//"
21762 # A grep program that handles long lines.
21768 # A literal string matcher.
21771 # A BSD- or MS-compatible name lister.
21774 # Whether we need soft or hard links.
21777 # What is the maximum length of a command?
21778 max_cmd_len=$max_cmd_len
21780 # Object file suffix (normally "o").
21783 # Executable file suffix (normally "").
21786 # whether the shell understands "unset".
21789 # turn spaces into newlines.
21792 # turn newlines into spaces.
21795 # convert \$build file names to \$host format.
21796 to_host_file_cmd=$lt_cv_to_host_file_cmd
21798 # convert \$build files to toolchain format.
21799 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
21801 # An object symbol dumper.
21802 OBJDUMP=$lt_OBJDUMP
21804 # Method to check whether dependent libraries are shared objects.
21805 deplibs_check_method=$lt_deplibs_check_method
21807 # Command to use when deplibs_check_method = "file_magic".
21808 file_magic_cmd=$lt_file_magic_cmd
21810 # How to find potential files when deplibs_check_method = "file_magic".
21811 file_magic_glob=$lt_file_magic_glob
21813 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
21814 want_nocaseglob=$lt_want_nocaseglob
21816 # DLL creation program.
21817 DLLTOOL=$lt_DLLTOOL
21819 # Command to associate shared and link libraries.
21820 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
21825 # Flags to create an archive.
21826 AR_FLAGS=$lt_AR_FLAGS
21828 # How to feed a file listing to the archiver.
21829 archiver_list_spec=$lt_archiver_list_spec
21831 # A symbol stripping program.
21834 # Commands used to install an old-style archive.
21836 old_postinstall_cmds=$lt_old_postinstall_cmds
21837 old_postuninstall_cmds=$lt_old_postuninstall_cmds
21839 # Whether to use a lock for old archive extraction.
21840 lock_old_archive_extraction=$lock_old_archive_extraction
21845 # LTCC compiler flags.
21846 LTCFLAGS=$lt_CFLAGS
21848 # Take the output of nm and produce a listing of raw symbols and C names.
21849 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
21851 # Transform the output of nm in a proper C declaration.
21852 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
21854 # Transform the output of nm in a C name address pair.
21855 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
21857 # Transform the output of nm in a C name address pair when lib prefix is needed.
21858 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
21860 # Specify filename containing input files for \$NM.
21861 nm_file_list_spec=$lt_nm_file_list_spec
21863 # The root where to search for dependent libraries,and in which our libraries should be installed.
21864 lt_sysroot=$lt_sysroot
21866 # The name of the directory that contains temporary libtool files.
21869 # Used to examine libraries when file_magic_cmd begins with "file".
21870 MAGIC_CMD=$MAGIC_CMD
21872 # Must we lock files when doing compilation?
21873 need_locks=$lt_need_locks
21876 MANIFEST_TOOL=$lt_MANIFEST_TOOL
21878 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
21879 DSYMUTIL=$lt_DSYMUTIL
21881 # Tool to change global to local symbols on Mac OS X.
21884 # Tool to manipulate fat objects and archives on Mac OS X.
21887 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
21890 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
21891 OTOOL64=$lt_OTOOL64
21893 # Old archive suffix (normally "a").
21896 # Shared library suffix (normally ".so").
21897 shrext_cmds=$lt_shrext_cmds
21899 # The commands to extract the exported symbol list from a shared archive.
21900 extract_expsyms_cmds=$lt_extract_expsyms_cmds
21902 # Variables whose values should be saved in libtool wrapper scripts and
21903 # restored at link time.
21904 variables_saved_for_relink=$lt_variables_saved_for_relink
21906 # Do we need the "lib" prefix for modules?
21907 need_lib_prefix=$need_lib_prefix
21909 # Do we need a version for libraries?
21910 need_version=$need_version
21912 # Library versioning type.
21913 version_type=$version_type
21915 # Shared library runtime path variable.
21916 runpath_var=$runpath_var
21918 # Shared library path variable.
21919 shlibpath_var=$shlibpath_var
21921 # Is shlibpath searched before the hard-coded library search path?
21922 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
21924 # Format of library name prefix.
21925 libname_spec=$lt_libname_spec
21927 # List of archive names. First name is the real one, the rest are links.
21928 # The last name is the one that the linker finds with -lNAME
21929 library_names_spec=$lt_library_names_spec
21931 # The coded name of the library, if different from the real name.
21932 soname_spec=$lt_soname_spec
21934 # Permission mode override for installation of shared libraries.
21935 install_override_mode=$lt_install_override_mode
21937 # Command to use after installation of a shared archive.
21938 postinstall_cmds=$lt_postinstall_cmds
21940 # Command to use after uninstallation of a shared archive.
21941 postuninstall_cmds=$lt_postuninstall_cmds
21943 # Commands used to finish a libtool library installation in a directory.
21944 finish_cmds=$lt_finish_cmds
21946 # As "finish_cmds", except a single script fragment to be evaled but
21948 finish_eval=$lt_finish_eval
21950 # Whether we should hardcode library paths into libraries.
21951 hardcode_into_libs=$hardcode_into_libs
21953 # Compile-time system search path for libraries.
21954 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
21956 # Run-time system search path for libraries.
21957 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
21959 # Whether dlopen is supported.
21960 dlopen_support=$enable_dlopen
21962 # Whether dlopen of programs is supported.
21963 dlopen_self=$enable_dlopen_self
21965 # Whether dlopen of statically linked programs is supported.
21966 dlopen_self_static=$enable_dlopen_self_static
21968 # Commands to strip libraries.
21969 old_striplib=$lt_old_striplib
21970 striplib=$lt_striplib
21973 # The linker used to build libraries.
21976 # How to create reloadable object files.
21977 reload_flag=$lt_reload_flag
21978 reload_cmds=$lt_reload_cmds
21980 # Commands used to build an old-style archive.
21981 old_archive_cmds=$lt_old_archive_cmds
21983 # A language specific compiler.
21986 # Is the compiler the GNU compiler?
21989 # Compiler flag to turn off builtin functions.
21990 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
21992 # Additional compiler flags for building library objects.
21993 pic_flag=$lt_lt_prog_compiler_pic
21995 # How to pass a linker flag through the compiler.
21996 wl=$lt_lt_prog_compiler_wl
21998 # Compiler flag to prevent dynamic linking.
21999 link_static_flag=$lt_lt_prog_compiler_static
22001 # Does compiler simultaneously support -c and -o options?
22002 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
22004 # Whether or not to add -lc for building shared libraries.
22005 build_libtool_need_lc=$archive_cmds_need_lc
22007 # Whether or not to disallow shared libs when runtime libs are static.
22008 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
22010 # Compiler flag to allow reflexive dlopens.
22011 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
22013 # Compiler flag to generate shared objects directly from archives.
22014 whole_archive_flag_spec=$lt_whole_archive_flag_spec
22016 # Whether the compiler copes with passing no objects directly.
22017 compiler_needs_object=$lt_compiler_needs_object
22019 # Create an old-style archive from a shared archive.
22020 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
22022 # Create a temporary old-style archive to link instead of a shared archive.
22023 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
22025 # Commands used to build a shared archive.
22026 archive_cmds=$lt_archive_cmds
22027 archive_expsym_cmds=$lt_archive_expsym_cmds
22029 # Commands used to build a loadable module if different from building
22030 # a shared archive.
22031 module_cmds=$lt_module_cmds
22032 module_expsym_cmds=$lt_module_expsym_cmds
22034 # Whether we are building with GNU ld or not.
22035 with_gnu_ld=$lt_with_gnu_ld
22037 # Flag that allows shared libraries with undefined symbols to be built.
22038 allow_undefined_flag=$lt_allow_undefined_flag
22040 # Flag that enforces no undefined symbols.
22041 no_undefined_flag=$lt_no_undefined_flag
22043 # Flag to hardcode \$libdir into a binary during linking.
22044 # This must work even if \$libdir does not exist
22045 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
22047 # If ld is used when linking, flag to hardcode \$libdir into a binary
22048 # during linking. This must work even if \$libdir does not exist.
22049 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
22051 # Whether we need a single "-rpath" flag with a separated argument.
22052 hardcode_libdir_separator=$lt_hardcode_libdir_separator
22054 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
22055 # DIR into the resulting binary.
22056 hardcode_direct=$hardcode_direct
22058 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
22059 # DIR into the resulting binary and the resulting library dependency is
22060 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
22061 # library is relocated.
22062 hardcode_direct_absolute=$hardcode_direct_absolute
22064 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
22065 # into the resulting binary.
22066 hardcode_minus_L=$hardcode_minus_L
22068 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
22069 # into the resulting binary.
22070 hardcode_shlibpath_var=$hardcode_shlibpath_var
22072 # Set to "yes" if building a shared library automatically hardcodes DIR
22073 # into the library and all subsequent libraries and executables linked
22075 hardcode_automatic=$hardcode_automatic
22077 # Set to yes if linker adds runtime paths of dependent libraries
22078 # to runtime path list.
22079 inherit_rpath=$inherit_rpath
22081 # Whether libtool must link a program against all its dependency libraries.
22082 link_all_deplibs=$link_all_deplibs
22084 # Set to "yes" if exported symbols are required.
22085 always_export_symbols=$always_export_symbols
22087 # The commands to list exported symbols.
22088 export_symbols_cmds=$lt_export_symbols_cmds
22090 # Symbols that should not be listed in the preloaded symbols.
22091 exclude_expsyms=$lt_exclude_expsyms
22093 # Symbols that must always be exported.
22094 include_expsyms=$lt_include_expsyms
22096 # Commands necessary for linking programs (against libraries) with templates.
22097 prelink_cmds=$lt_prelink_cmds
22099 # Commands necessary for finishing linking programs.
22100 postlink_cmds=$lt_postlink_cmds
22102 # Specify filename containing input files.
22103 file_list_spec=$lt_file_list_spec
22105 # How to hardcode a shared library path into an executable.
22106 hardcode_action=$hardcode_action
22108 # The directories searched by this compiler when creating a shared library.
22109 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
22111 # Dependencies to place before and after the objects being linked to
22112 # create a shared library.
22113 predep_objects=$lt_predep_objects
22114 postdep_objects=$lt_postdep_objects
22115 predeps=$lt_predeps
22116 postdeps=$lt_postdeps
22118 # The library search path used internally by the compiler when linking
22119 # a shared library.
22120 compiler_lib_search_path=$lt_compiler_lib_search_path
22122 # ### END LIBTOOL CONFIG
22128 cat <<\_LT_EOF >> "$cfgfile"
22129 # AIX sometimes has problems with the GCC collect2 program. For some
22130 # reason, if we set the COLLECT_NAMES environment variable, the problems
22131 # vanish in a puff of smoke.
22132 if test "X${COLLECT_NAMES+set}" != Xset; then
22134 export COLLECT_NAMES
22141 ltmain="$ac_aux_dir/ltmain.sh"
22144 # We use sed instead of cat because bash on DJGPP gets confused if
22145 # if finds mixed CR/LF and LF-only lines. Since sed operates in
22146 # text mode, it properly converts lines to CR/LF. This bash problem
22147 # is reportedly fixed, but why not run on old versions too?
22148 sed '$q' "$ltmain" >> "$cfgfile" \
22149 || (rm -f "$cfgfile"; exit 1)
22151 if test x"$xsi_shell" = xyes; then
22152 sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
22156 \ */*) func_dirname_result="${1%/*}${2}" ;;\
22157 \ * ) func_dirname_result="${3}" ;;\
22159 } # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
22160 && mv -f "$cfgfile.tmp" "$cfgfile" \
22161 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
22162 test 0 -eq $? || _lt_function_replace_fail=:
22165 sed -e '/^func_basename ()$/,/^} # func_basename /c\
22168 \ func_basename_result="${1##*/}"\
22169 } # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
22170 && mv -f "$cfgfile.tmp" "$cfgfile" \
22171 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
22172 test 0 -eq $? || _lt_function_replace_fail=:
22175 sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
22176 func_dirname_and_basename ()\
22179 \ */*) func_dirname_result="${1%/*}${2}" ;;\
22180 \ * ) func_dirname_result="${3}" ;;\
22182 \ func_basename_result="${1##*/}"\
22183 } # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
22184 && mv -f "$cfgfile.tmp" "$cfgfile" \
22185 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
22186 test 0 -eq $? || _lt_function_replace_fail=:
22189 sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
22192 \ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
22193 \ # positional parameters, so assign one to ordinary parameter first.\
22194 \ func_stripname_result=${3}\
22195 \ func_stripname_result=${func_stripname_result#"${1}"}\
22196 \ func_stripname_result=${func_stripname_result%"${2}"}\
22197 } # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
22198 && mv -f "$cfgfile.tmp" "$cfgfile" \
22199 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
22200 test 0 -eq $? || _lt_function_replace_fail=:
22203 sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
22204 func_split_long_opt ()\
22206 \ func_split_long_opt_name=${1%%=*}\
22207 \ func_split_long_opt_arg=${1#*=}\
22208 } # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
22209 && mv -f "$cfgfile.tmp" "$cfgfile" \
22210 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
22211 test 0 -eq $? || _lt_function_replace_fail=:
22214 sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
22215 func_split_short_opt ()\
22217 \ func_split_short_opt_arg=${1#??}\
22218 \ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
22219 } # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
22220 && mv -f "$cfgfile.tmp" "$cfgfile" \
22221 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
22222 test 0 -eq $? || _lt_function_replace_fail=:
22225 sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
22229 \ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
22230 \ *) func_lo2o_result=${1} ;;\
22232 } # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
22233 && mv -f "$cfgfile.tmp" "$cfgfile" \
22234 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
22235 test 0 -eq $? || _lt_function_replace_fail=:
22238 sed -e '/^func_xform ()$/,/^} # func_xform /c\
22241 func_xform_result=${1%.*}.lo\
22242 } # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
22243 && mv -f "$cfgfile.tmp" "$cfgfile" \
22244 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
22245 test 0 -eq $? || _lt_function_replace_fail=:
22248 sed -e '/^func_arith ()$/,/^} # func_arith /c\
22251 func_arith_result=$(( $* ))\
22252 } # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
22253 && mv -f "$cfgfile.tmp" "$cfgfile" \
22254 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
22255 test 0 -eq $? || _lt_function_replace_fail=:
22258 sed -e '/^func_len ()$/,/^} # func_len /c\
22261 func_len_result=${#1}\
22262 } # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
22263 && mv -f "$cfgfile.tmp" "$cfgfile" \
22264 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
22265 test 0 -eq $? || _lt_function_replace_fail=:
22269 if test x"$lt_shell_append" = xyes; then
22270 sed -e '/^func_append ()$/,/^} # func_append /c\
22273 eval "${1}+=\\${2}"\
22274 } # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
22275 && mv -f "$cfgfile.tmp" "$cfgfile" \
22276 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
22277 test 0 -eq $? || _lt_function_replace_fail=:
22280 sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
22281 func_append_quoted ()\
22283 \ func_quote_for_eval "${2}"\
22284 \ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
22285 } # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
22286 && mv -f "$cfgfile.tmp" "$cfgfile" \
22287 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
22288 test 0 -eq $? || _lt_function_replace_fail=:
22291 # Save a `func_append' function call where possible by direct use of '+='
22292 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
22293 && mv -f "$cfgfile.tmp" "$cfgfile" \
22294 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
22295 test 0 -eq $? || _lt_function_replace_fail=:
22297 # Save a `func_append' function call even when '+=' is not available
22298 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
22299 && mv -f "$cfgfile.tmp" "$cfgfile" \
22300 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
22301 test 0 -eq $? || _lt_function_replace_fail=:
22304 if test x"$_lt_function_replace_fail" = x":"; then
22305 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
22306 $as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
22310 mv -f "$cfgfile" "$ofile" ||
22311 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
22315 cat <<_LT_EOF >> "$ofile"
22317 # ### BEGIN LIBTOOL TAG CONFIG: CXX
22319 # The linker used to build libraries.
22322 # How to create reloadable object files.
22323 reload_flag=$lt_reload_flag_CXX
22324 reload_cmds=$lt_reload_cmds_CXX
22326 # Commands used to build an old-style archive.
22327 old_archive_cmds=$lt_old_archive_cmds_CXX
22329 # A language specific compiler.
22330 CC=$lt_compiler_CXX
22332 # Is the compiler the GNU compiler?
22335 # Compiler flag to turn off builtin functions.
22336 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
22338 # Additional compiler flags for building library objects.
22339 pic_flag=$lt_lt_prog_compiler_pic_CXX
22341 # How to pass a linker flag through the compiler.
22342 wl=$lt_lt_prog_compiler_wl_CXX
22344 # Compiler flag to prevent dynamic linking.
22345 link_static_flag=$lt_lt_prog_compiler_static_CXX
22347 # Does compiler simultaneously support -c and -o options?
22348 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
22350 # Whether or not to add -lc for building shared libraries.
22351 build_libtool_need_lc=$archive_cmds_need_lc_CXX
22353 # Whether or not to disallow shared libs when runtime libs are static.
22354 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
22356 # Compiler flag to allow reflexive dlopens.
22357 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
22359 # Compiler flag to generate shared objects directly from archives.
22360 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
22362 # Whether the compiler copes with passing no objects directly.
22363 compiler_needs_object=$lt_compiler_needs_object_CXX
22365 # Create an old-style archive from a shared archive.
22366 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
22368 # Create a temporary old-style archive to link instead of a shared archive.
22369 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
22371 # Commands used to build a shared archive.
22372 archive_cmds=$lt_archive_cmds_CXX
22373 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
22375 # Commands used to build a loadable module if different from building
22376 # a shared archive.
22377 module_cmds=$lt_module_cmds_CXX
22378 module_expsym_cmds=$lt_module_expsym_cmds_CXX
22380 # Whether we are building with GNU ld or not.
22381 with_gnu_ld=$lt_with_gnu_ld_CXX
22383 # Flag that allows shared libraries with undefined symbols to be built.
22384 allow_undefined_flag=$lt_allow_undefined_flag_CXX
22386 # Flag that enforces no undefined symbols.
22387 no_undefined_flag=$lt_no_undefined_flag_CXX
22389 # Flag to hardcode \$libdir into a binary during linking.
22390 # This must work even if \$libdir does not exist
22391 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
22393 # If ld is used when linking, flag to hardcode \$libdir into a binary
22394 # during linking. This must work even if \$libdir does not exist.
22395 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
22397 # Whether we need a single "-rpath" flag with a separated argument.
22398 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
22400 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
22401 # DIR into the resulting binary.
22402 hardcode_direct=$hardcode_direct_CXX
22404 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
22405 # DIR into the resulting binary and the resulting library dependency is
22406 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
22407 # library is relocated.
22408 hardcode_direct_absolute=$hardcode_direct_absolute_CXX
22410 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
22411 # into the resulting binary.
22412 hardcode_minus_L=$hardcode_minus_L_CXX
22414 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
22415 # into the resulting binary.
22416 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
22418 # Set to "yes" if building a shared library automatically hardcodes DIR
22419 # into the library and all subsequent libraries and executables linked
22421 hardcode_automatic=$hardcode_automatic_CXX
22423 # Set to yes if linker adds runtime paths of dependent libraries
22424 # to runtime path list.
22425 inherit_rpath=$inherit_rpath_CXX
22427 # Whether libtool must link a program against all its dependency libraries.
22428 link_all_deplibs=$link_all_deplibs_CXX
22430 # Set to "yes" if exported symbols are required.
22431 always_export_symbols=$always_export_symbols_CXX
22433 # The commands to list exported symbols.
22434 export_symbols_cmds=$lt_export_symbols_cmds_CXX
22436 # Symbols that should not be listed in the preloaded symbols.
22437 exclude_expsyms=$lt_exclude_expsyms_CXX
22439 # Symbols that must always be exported.
22440 include_expsyms=$lt_include_expsyms_CXX
22442 # Commands necessary for linking programs (against libraries) with templates.
22443 prelink_cmds=$lt_prelink_cmds_CXX
22445 # Commands necessary for finishing linking programs.
22446 postlink_cmds=$lt_postlink_cmds_CXX
22448 # Specify filename containing input files.
22449 file_list_spec=$lt_file_list_spec_CXX
22451 # How to hardcode a shared library path into an executable.
22452 hardcode_action=$hardcode_action_CXX
22454 # The directories searched by this compiler when creating a shared library.
22455 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
22457 # Dependencies to place before and after the objects being linked to
22458 # create a shared library.
22459 predep_objects=$lt_predep_objects_CXX
22460 postdep_objects=$lt_postdep_objects_CXX
22461 predeps=$lt_predeps_CXX
22462 postdeps=$lt_postdeps_CXX
22464 # The library search path used internally by the compiler when linking
22465 # a shared library.
22466 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
22468 # ### END LIBTOOL TAG CONFIG: CXX
22472 "$ax_create_pkgconfig_generate":C)
22473 pkgconfig_generate="$ax_create_pkgconfig_generate"
22474 if test ! -f "$pkgconfig_generate.in"
22475 then generate="true"
22476 elif grep ' generated by configure ' $pkgconfig_generate.in >/dev/null
22477 then generate="true"
22478 else generate="false";
22480 if $generate ; then
22481 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $pkgconfig_generate.in" >&5
22482 $as_echo "$as_me: creating $pkgconfig_generate.in" >&6;}
22483 cat > $pkgconfig_generate.in <<AXEOF
22484 # generated by configure / remove this line to disable regeneration
22486 exec_prefix=@exec_prefix@
22489 datarootdir=@datarootdir@
22491 sysconfdir=@sysconfdir@
22492 includedir=@includedir@
22496 Name: @PACKAGE_NAME@
22497 Description: @PACKAGE_DESCRIPTION@
22498 Version: @PACKAGE_VERSION@
22499 Requires: @PACKAGE_REQUIRES@
22500 Libs: -L\${libdir} @LDFLAGS@ @LIBS@
22501 Cflags: -I\${includedir} @CPPFLAGS@
22503 fi # DONE generate $pkgconfig_generate.in
22504 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $pkgconfig_generate" >&5
22505 $as_echo "$as_me: creating $pkgconfig_generate" >&6;}
22506 cat >conftest.sed <<AXEOF
22507 s|@prefix@|${pkgconfig_prefix}|
22508 s|@exec_prefix@|${pkgconfig_execprefix}|
22509 s|@bindir@|${pkgconfig_bindir}|
22510 s|@libdir@|${pkgconfig_libdir}|
22511 s|@datarootdir@|${pkgconfig_datarootdir}|
22512 s|@datadir@|${pkgconfig_datadir}|
22513 s|@sysconfdir@|${pkgconfig_sysconfdir}|
22514 s|@includedir@|${pkgconfig_includedir}|
22515 s|@suffix@|${pkgconfig_suffix}|
22516 s|@PACKAGE@|${pkgconfig_package}|
22517 s|@PACKAGE_NAME@|${pkgconfig_libname}|
22518 s|@PACKAGE_DESCRIPTION@|${pkgconfig_description}|
22519 s|@PACKAGE_VERSION@|${pkgconfig_version}|
22520 s|@PACKAGE_REQUIRES@|${pkgconfig_requires}|
22521 s|@LIBS@|${pkgconfig_libs}|
22522 s|@LDFLAGS@|${pkgconfig_ldflags}|
22523 s|@CPPFLAGS@|${pkgconfig_cppflags}|
22525 sed -f conftest.sed $pkgconfig_generate.in > $pkgconfig_generate
22526 if test ! -s $pkgconfig_generate ; then
22527 as_fn_error $? "$pkgconfig_generate is empty" "$LINENO" 5
22528 fi ; rm conftest.sed # DONE generate $pkgconfig_generate
22529 pkgconfig_uninstalled=`echo $pkgconfig_generate |sed 's/.pc$/-uninstalled.pc/'`
22530 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $pkgconfig_uninstalled" >&5
22531 $as_echo "$as_me: creating $pkgconfig_uninstalled" >&6;}
22532 cat >conftest.sed <<AXEOF
22533 s|@prefix@|${pkgconfig_prefix}|
22534 s|@exec_prefix@|${pkgconfig_execprefix}|
22535 s|@bindir@|${pkgconfig_bindir}|
22536 s|@libdir@|${pkgconfig_src_libdir}|
22537 s|@datarootdir@|${pkgconfig_datarootdir}|
22538 s|@datadir@|${pkgconfig_datadir}|
22539 s|@sysconfdir@|${pkgconfig_sysconfdir}|
22540 s|@includedir@|${pkgconfig_src_headers}|
22541 s|@suffix@|${pkgconfig_suffix}|
22542 s|@PACKAGE@|${pkgconfig_package}|
22543 s|@PACKAGE_NAME@|${pkgconfig_libname}|
22544 s|@PACKAGE_DESCRIPTION@|${pkgconfig_description}|
22545 s|@PACKAGE_VERSION@|${pkgconfig_version}|
22546 s|@PACKAGE_REQUIRES@|${pkgconfig_requires}|
22547 s|@LIBS@|${pkgconfig_libs}|
22548 s|@LDFLAGS@|${pkgconfig_ldflags}|
22549 s|@CPPFLAGS@|${pkgconfig_cppflags}|
22551 sed -f conftest.sed $pkgconfig_generate.in > $pkgconfig_uninstalled
22552 if test ! -s $pkgconfig_uninstalled ; then
22553 as_fn_error $? "$pkgconfig_uninstalled is empty" "$LINENO" 5
22554 fi ; rm conftest.sed # DONE generate $pkgconfig_uninstalled
22555 pkgconfig_requires_add=`echo ${pkgconfig_requires}`
22556 if test ".$pkgconfig_requires_add" != "." ; then
22557 pkgconfig_requires_add="pkg-config $pkgconfig_requires_add"
22558 else pkgconfig_requires_add=":" ; fi
22559 pkgconfig_uninstalled=`echo $pkgconfig_generate |sed 's/.pc$/-uninstalled.sh/'`
22560 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $pkgconfig_uninstalled" >&5
22561 $as_echo "$as_me: creating $pkgconfig_uninstalled" >&6;}
22562 cat >conftest.sed <<AXEOF
22563 s|@prefix@|\"${pkgconfig_prefix}\"|
22564 s|@exec_prefix@|\"${pkgconfig_execprefix}\"|
22565 s|@bindir@|\"${pkgconfig_bindir}\"|
22566 s|@libdir@|\"${pkgconfig_src_libdir}\"|
22567 s|@datarootdir@|\"${pkgconfig_datarootdir}\"|
22568 s|@datadir@|\"${pkgconfig_datadir}\"|
22569 s|@sysconfdir@|\"${pkgconfig_sysconfdir}\"|
22570 s|@includedir@|\"${pkgconfig_src_headers}\"|
22571 s|@suffix@|\"${pkgconfig_suffix}\"|
22572 s|@PACKAGE@|\"${pkgconfig_package}\"|
22573 s|@PACKAGE_NAME@|\"${pkgconfig_libname}\"|
22574 s|@PACKAGE_DESCRIPTION@|\"${pkgconfig_description}\"|
22575 s|@PACKAGE_VERSION@|\"${pkgconfig_version}\"|
22576 s|@PACKAGE_REQUIRES@|\"${pkgconfig_requires}\"|
22577 s|@LIBS@|\"${pkgconfig_libs}\"|
22578 s|@LDFLAGS@|\"${pkgconfig_ldflags}\"|
22579 s|@CPPFLAGS@|\"${pkgconfig_cppflags}\"|
22580 s>Name:>for option\\; do case \"\$option\" in --list-all|--name) echo >
22581 s>Description: *>\\;\\; --help) pkg-config --help \\; echo Buildscript Of >
22582 s>Version: *>\\;\\; --modversion|--version) echo >
22583 s>Requires:>\\;\\; --requires) echo $pkgconfig_requires_add>
22584 s>Libs: *>\\;\\; --libs) echo >
22585 s>Cflags: *>\\;\\; --cflags) echo >
22587 $pkgconfig_requires_add
22589 $pkgconfig_requires_add\\
22590 ;; --variable=*) eval echo '\$'\`echo \$option | sed -e 's/.*=//'\`\\
22591 ;; --uninstalled) exit 0 \\
22594 sed -f conftest.sed $pkgconfig_generate.in > $pkgconfig_uninstalled
22595 if test ! -s $pkgconfig_uninstalled ; then
22596 as_fn_error $? "$pkgconfig_uninstalled is empty" "$LINENO" 5
22597 fi ; rm conftest.sed # DONE generate $pkgconfig_uninstalled
22606 ac_clean_files=$ac_clean_files_save
22608 test $ac_write_fail = 0 ||
22609 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
22612 # configure is writing to config.log, and then calls config.status.
22613 # config.status does its own redirection, appending to config.log.
22614 # Unfortunately, on DOS this fails, as config.log is still kept open
22615 # by configure, so config.status won't be able to write to it; its
22616 # output is simply discarded. So we exec the FD to /dev/null,
22617 # effectively closing config.log, so it can be properly (re)opened and
22618 # appended to by config.status. When coming back to configure, we
22619 # need to make the FD available again.
22620 if test "$no_create" != yes; then
22622 ac_config_status_args=
22623 test "$silent" = yes &&
22624 ac_config_status_args="$ac_config_status_args --quiet"
22626 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
22628 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
22629 # would make configure fail if this is the last instruction.
22630 $ac_cs_success || as_fn_exit 1
22632 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
22633 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
22634 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}