2 # From configure.ac Revision.
3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated by GNU Autoconf 2.69 for CCUnit 2.1.
6 # Report bugs to <tsntsumi@users.sourceforge.jp>.
9 # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
12 # This configure script is free software; the Free Software Foundation
13 # gives unlimited permission to copy, distribute and modify it.
14 ## -------------------- ##
15 ## M4sh Initialization. ##
16 ## -------------------- ##
18 # Be more Bourne compatible
19 DUALCASE=1; export DUALCASE # for MKS sh
20 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
23 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
24 # is contrary to our usage. Disable this feature.
25 alias -g '${1+"$@"}'='"$@"'
28 case `(set -o) 2>/dev/null` in #(
40 # Printing a long string crashes Solaris 7 /usr/bin/printf.
41 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
42 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
43 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
44 # Prefer a ksh shell builtin over an external printf program on Solaris,
45 # but without wasting forks for bash or zsh.
46 if test -z "$BASH_VERSION$ZSH_VERSION" \
47 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
49 as_echo_n='print -rn --'
50 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
54 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
55 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
56 as_echo_n='/usr/ucb/echo -n'
58 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
63 expr "X$arg" : "X\\(.*\\)$as_nl";
64 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
66 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
69 as_echo_n='sh -c $as_echo_n_body as_echo'
72 as_echo='sh -c $as_echo_body as_echo'
75 # The user is always right.
76 if test "${PATH_SEPARATOR+set}" != set; then
78 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
79 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
86 # We need space, tab and new line, in precisely that order. Quoting is
87 # there to prevent editors from complaining about space-tab.
88 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
89 # splitting by setting IFS to empty value.)
92 # 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 # Use a proper internal environment variable to ensure we don't fall
139 # into an infinite loop, continuously re-executing ourselves.
140 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
141 _as_can_reexec=no; export _as_can_reexec;
142 # We cannot yet assume a decent shell, so we have to provide a
143 # neutralization value for shells without unset; and this also
144 # works around shells that cannot unset nonexistent variables.
145 # Preserve -v and -x to the replacement shell.
148 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
150 *v*x* | *x*v* ) as_opts=-vx ;;
155 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
156 # Admittedly, this is quite paranoid, since all the known shells bail
157 # out after a failed `exec'.
158 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
161 # We don't want this to propagate to other subprocesses.
162 { _as_can_reexec=; unset _as_can_reexec;}
163 if test "x$CONFIG_SHELL" = x; then
164 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
167 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
168 # is contrary to our usage. Disable this feature.
169 alias -g '\${1+\"\$@\"}'='\"\$@\"'
172 case \`(set -o) 2>/dev/null\` in #(
180 as_required="as_fn_return () { (exit \$1); }
181 as_fn_success () { as_fn_return 0; }
182 as_fn_failure () { as_fn_return 1; }
183 as_fn_ret_success () { return 0; }
184 as_fn_ret_failure () { return 1; }
187 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
188 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
189 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
190 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
191 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
194 exitcode=1; echo positional parameters were not saved.
196 test x\$exitcode = x0 || exit 1
198 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
199 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
200 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
201 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
202 test \$(( 1 + 1 )) = 2 || exit 1
204 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
205 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
206 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
207 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
208 PATH=/empty FPATH=/empty; export PATH FPATH
209 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
210 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1"
211 if (eval "$as_required") 2>/dev/null; then :
216 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
219 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
221 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
224 test -z "$as_dir" && as_dir=.
228 for as_base in sh bash ksh sh5; do
229 # Try only shells that exist, to save several forks.
230 as_shell=$as_dir/$as_base
231 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
232 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
233 CONFIG_SHELL=$as_shell as_have_required=yes
234 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
242 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
243 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
244 CONFIG_SHELL=$SHELL as_have_required=yes
249 if test "x$CONFIG_SHELL" != x; then :
251 # We cannot yet assume a decent shell, so we have to provide a
252 # neutralization value for shells without unset; and this also
253 # works around shells that cannot unset nonexistent variables.
254 # Preserve -v and -x to the replacement shell.
257 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
259 *v*x* | *x*v* ) as_opts=-vx ;;
264 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
265 # Admittedly, this is quite paranoid, since all the known shells bail
266 # out after a failed `exec'.
267 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
271 if test x$as_have_required = xno; then :
272 $as_echo "$0: This script requires a shell more modern than all"
273 $as_echo "$0: the shells that I found on your system."
274 if test x${ZSH_VERSION+set} = xset ; then
275 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
276 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
278 $as_echo "$0: Please tell bug-autoconf@gnu.org and
279 $0: tsntsumi@users.sourceforge.jp about your system,
280 $0: including any error possibly output before this
281 $0: message. Then install a modern shell, or manually run
282 $0: the script under such a shell if you do have one."
288 SHELL=${CONFIG_SHELL-/bin/sh}
290 # Unset more variables known to interfere with behavior of common tools.
291 CLICOLOR_FORCE= GREP_OPTIONS=
292 unset CLICOLOR_FORCE GREP_OPTIONS
294 ## --------------------- ##
295 ## M4sh Shell Functions. ##
296 ## --------------------- ##
299 # Portably unset VAR.
302 { eval $1=; unset $1;}
306 # as_fn_set_status STATUS
307 # -----------------------
308 # Set $? to STATUS, without forking.
316 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
326 # Create "$as_dir" as a directory, including parents if necessary.
331 -*) as_dir=./$as_dir;;
333 test -d "$as_dir" || eval $as_mkdir_p || {
337 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
340 as_dirs="'$as_qdir' $as_dirs"
341 as_dir=`$as_dirname -- "$as_dir" ||
342 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
343 X"$as_dir" : 'X\(//\)[^/]' \| \
344 X"$as_dir" : 'X\(//\)$' \| \
345 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
346 $as_echo X"$as_dir" |
347 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
364 test -d "$as_dir" && break
366 test -z "$as_dirs" || eval "mkdir $as_dirs"
367 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
372 # as_fn_executable_p FILE
373 # -----------------------
374 # Test if FILE is an executable regular file.
375 as_fn_executable_p ()
377 test -f "$1" && test -x "$1"
378 } # as_fn_executable_p
379 # as_fn_append VAR VALUE
380 # ----------------------
381 # Append the text in VALUE to the end of the definition contained in VAR. Take
382 # advantage of any shell optimizations that allow amortized linear growth over
383 # repeated appends, instead of the typical quadratic growth present in naive
385 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
386 eval 'as_fn_append ()
399 # Perform arithmetic evaluation on the ARGs, and store the result in the
400 # global $as_val. Take advantage of shells that can avoid forks. The arguments
401 # must be portable across $(()) and expr.
402 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
410 as_val=`expr "$@" || test $? -eq 1`
415 # as_fn_error STATUS ERROR [LINENO LOG_FD]
416 # ----------------------------------------
417 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
418 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
419 # script with STATUS, using 1 if that was 0.
422 as_status=$1; test $as_status -eq 0 && as_status=1
424 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
425 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
427 $as_echo "$as_me: error: $2" >&2
428 as_fn_exit $as_status
431 if expr a : '\(a\)' >/dev/null 2>&1 &&
432 test "X`expr 00001 : '.*\(...\)'`" = X001; then
438 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
444 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
450 as_me=`$as_basename -- "$0" ||
451 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
452 X"$0" : 'X\(//\)$' \| \
453 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
455 sed '/^.*\/\([^/][^/]*\)\/*$/{
469 # Avoid depending upon Character Ranges.
470 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
471 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
472 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
473 as_cr_digits='0123456789'
474 as_cr_alnum=$as_cr_Letters$as_cr_digits
477 as_lineno_1=$LINENO as_lineno_1a=$LINENO
478 as_lineno_2=$LINENO as_lineno_2a=$LINENO
479 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
480 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
481 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
493 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
497 chmod +x "$as_me.lineno" ||
498 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
500 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
501 # already done that, so ensure we don't try to do so again and fall
502 # in an infinite loop. This has already happened in practice.
503 _as_can_reexec=no; export _as_can_reexec
504 # Don't try to exec as it changes $[0], causing all sort of problems
505 # (the dirname of $[0] is not the place where we might find the
506 # original and so on. Autoconf is especially sensitive to this).
508 # Exit status is that of the last command.
512 ECHO_C= ECHO_N= ECHO_T=
513 case `echo -n x` in #(((((
515 case `echo 'xy\c'` in
516 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
518 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
525 rm -f conf$$ conf$$.exe conf$$.file
526 if test -d conf$$.dir; then
527 rm -f conf$$.dir/conf$$.file
530 mkdir conf$$.dir 2>/dev/null
532 if (echo >conf$$.file) 2>/dev/null; then
533 if ln -s conf$$.file conf$$ 2>/dev/null; then
535 # ... but there are two gotchas:
536 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
537 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
538 # In both cases, we have to default to `cp -pR'.
539 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
541 elif ln conf$$.file conf$$ 2>/dev/null; then
549 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
550 rmdir conf$$.dir 2>/dev/null
552 if mkdir -p . 2>/dev/null; then
553 as_mkdir_p='mkdir -p "$as_dir"'
555 test -d ./-p && rmdir ./-p
560 as_executable_p=as_fn_executable_p
562 # Sed expression to map a string onto a valid CPP name.
563 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
565 # Sed expression to map a string onto a valid variable name.
566 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
568 SHELL=${CONFIG_SHELL-/bin/sh}
571 test -n "$DJDIR" || exec 7<&0 </dev/null
575 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
576 # so uname gets run too.
577 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
582 ac_default_prefix=/usr/local
584 ac_config_libobj_dir=.
591 # Identity of this package.
592 PACKAGE_NAME='CCUnit'
593 PACKAGE_TARNAME='ccunit'
594 PACKAGE_VERSION='2.1'
595 PACKAGE_STRING='CCUnit 2.1'
596 PACKAGE_BUGREPORT='tsntsumi@users.sourceforge.jp'
597 PACKAGE_URL='http://ccunit.sourceforge.jp'
599 ac_unique_file="configure.ac"
600 # Factoring default headers for most tests.
601 ac_includes_default="\
603 #ifdef HAVE_SYS_TYPES_H
604 # include <sys/types.h>
606 #ifdef HAVE_SYS_STAT_H
607 # include <sys/stat.h>
613 # ifdef HAVE_STDLIB_H
618 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
623 #ifdef HAVE_STRINGS_H
624 # include <strings.h>
626 #ifdef HAVE_INTTYPES_H
627 # include <inttypes.h>
636 ac_subst_vars='am__EXEEXT_FALSE
708 INSTALL_STRIP_PROGRAM
750 program_transform_name
763 enable_option_checking
764 enable_dependency_tracking
779 ac_precious_vars='build_alias
790 # Initialize some variables set by options.
792 ac_init_version=false
793 ac_unrecognized_opts=
795 # The variables have the same names as the options, with
796 # dashes changed to underlines.
804 program_transform_name=s,x,x,
812 # Installation directory options.
813 # These are left unexpanded so users can "make install exec_prefix=/foo"
814 # and all the variables that are supposed to be based on exec_prefix
815 # by default will actually change.
816 # Use braces instead of parens because sh, perl, etc. also accept them.
817 # (The list follows the same order as the GNU Coding Standards.)
818 bindir='${exec_prefix}/bin'
819 sbindir='${exec_prefix}/sbin'
820 libexecdir='${exec_prefix}/libexec'
821 datarootdir='${prefix}/share'
822 datadir='${datarootdir}'
823 sysconfdir='${prefix}/etc'
824 sharedstatedir='${prefix}/com'
825 localstatedir='${prefix}/var'
826 includedir='${prefix}/include'
827 oldincludedir='/usr/include'
828 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
829 infodir='${datarootdir}/info'
834 libdir='${exec_prefix}/lib'
835 localedir='${datarootdir}/locale'
836 mandir='${datarootdir}/man'
842 # If the previous option needs an argument, assign it.
843 if test -n "$ac_prev"; then
844 eval $ac_prev=\$ac_option
850 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
855 # Accept the important Cygnus configure options, so we can diagnose typos.
857 case $ac_dashdash$ac_option in
861 -bindir | --bindir | --bindi | --bind | --bin | --bi)
863 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
866 -build | --build | --buil | --bui | --bu)
867 ac_prev=build_alias ;;
868 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
869 build_alias=$ac_optarg ;;
871 -cache-file | --cache-file | --cache-fil | --cache-fi \
872 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
873 ac_prev=cache_file ;;
874 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
875 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
876 cache_file=$ac_optarg ;;
879 cache_file=config.cache ;;
881 -datadir | --datadir | --datadi | --datad)
883 -datadir=* | --datadir=* | --datadi=* | --datad=*)
884 datadir=$ac_optarg ;;
886 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
887 | --dataroo | --dataro | --datar)
888 ac_prev=datarootdir ;;
889 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
890 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
891 datarootdir=$ac_optarg ;;
893 -disable-* | --disable-*)
894 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
895 # Reject names that are not valid shell variable names.
896 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
897 as_fn_error $? "invalid feature name: $ac_useropt"
898 ac_useropt_orig=$ac_useropt
899 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
900 case $ac_user_opts in
904 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
905 ac_unrecognized_sep=', ';;
907 eval enable_$ac_useropt=no ;;
909 -docdir | --docdir | --docdi | --doc | --do)
911 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
914 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
916 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
919 -enable-* | --enable-*)
920 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
921 # Reject names that are not valid shell variable names.
922 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
923 as_fn_error $? "invalid feature name: $ac_useropt"
924 ac_useropt_orig=$ac_useropt
925 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
926 case $ac_user_opts in
930 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
931 ac_unrecognized_sep=', ';;
933 eval enable_$ac_useropt=\$ac_optarg ;;
935 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
936 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
937 | --exec | --exe | --ex)
938 ac_prev=exec_prefix ;;
939 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
940 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
941 | --exec=* | --exe=* | --ex=*)
942 exec_prefix=$ac_optarg ;;
944 -gas | --gas | --ga | --g)
945 # Obsolete; use --with-gas.
948 -help | --help | --hel | --he | -h)
950 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
951 ac_init_help=recursive ;;
952 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
953 ac_init_help=short ;;
955 -host | --host | --hos | --ho)
956 ac_prev=host_alias ;;
957 -host=* | --host=* | --hos=* | --ho=*)
958 host_alias=$ac_optarg ;;
960 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
962 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
964 htmldir=$ac_optarg ;;
966 -includedir | --includedir | --includedi | --included | --include \
967 | --includ | --inclu | --incl | --inc)
968 ac_prev=includedir ;;
969 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
970 | --includ=* | --inclu=* | --incl=* | --inc=*)
971 includedir=$ac_optarg ;;
973 -infodir | --infodir | --infodi | --infod | --info | --inf)
975 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
976 infodir=$ac_optarg ;;
978 -libdir | --libdir | --libdi | --libd)
980 -libdir=* | --libdir=* | --libdi=* | --libd=*)
983 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
984 | --libexe | --libex | --libe)
985 ac_prev=libexecdir ;;
986 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
987 | --libexe=* | --libex=* | --libe=*)
988 libexecdir=$ac_optarg ;;
990 -localedir | --localedir | --localedi | --localed | --locale)
992 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
993 localedir=$ac_optarg ;;
995 -localstatedir | --localstatedir | --localstatedi | --localstated \
996 | --localstate | --localstat | --localsta | --localst | --locals)
997 ac_prev=localstatedir ;;
998 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
999 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1000 localstatedir=$ac_optarg ;;
1002 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1004 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1005 mandir=$ac_optarg ;;
1007 -nfp | --nfp | --nf)
1008 # Obsolete; use --without-fp.
1011 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1012 | --no-cr | --no-c | -n)
1015 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1016 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1019 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1020 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1021 | --oldin | --oldi | --old | --ol | --o)
1022 ac_prev=oldincludedir ;;
1023 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1024 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1025 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1026 oldincludedir=$ac_optarg ;;
1028 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1030 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1031 prefix=$ac_optarg ;;
1033 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1034 | --program-pre | --program-pr | --program-p)
1035 ac_prev=program_prefix ;;
1036 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1037 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1038 program_prefix=$ac_optarg ;;
1040 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1041 | --program-suf | --program-su | --program-s)
1042 ac_prev=program_suffix ;;
1043 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1044 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1045 program_suffix=$ac_optarg ;;
1047 -program-transform-name | --program-transform-name \
1048 | --program-transform-nam | --program-transform-na \
1049 | --program-transform-n | --program-transform- \
1050 | --program-transform | --program-transfor \
1051 | --program-transfo | --program-transf \
1052 | --program-trans | --program-tran \
1053 | --progr-tra | --program-tr | --program-t)
1054 ac_prev=program_transform_name ;;
1055 -program-transform-name=* | --program-transform-name=* \
1056 | --program-transform-nam=* | --program-transform-na=* \
1057 | --program-transform-n=* | --program-transform-=* \
1058 | --program-transform=* | --program-transfor=* \
1059 | --program-transfo=* | --program-transf=* \
1060 | --program-trans=* | --program-tran=* \
1061 | --progr-tra=* | --program-tr=* | --program-t=*)
1062 program_transform_name=$ac_optarg ;;
1064 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1066 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1067 pdfdir=$ac_optarg ;;
1069 -psdir | --psdir | --psdi | --psd | --ps)
1071 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1074 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1075 | -silent | --silent | --silen | --sile | --sil)
1078 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1080 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1082 sbindir=$ac_optarg ;;
1084 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1085 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1086 | --sharedst | --shareds | --shared | --share | --shar \
1088 ac_prev=sharedstatedir ;;
1089 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1090 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1091 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1093 sharedstatedir=$ac_optarg ;;
1095 -site | --site | --sit)
1097 -site=* | --site=* | --sit=*)
1100 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1102 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1103 srcdir=$ac_optarg ;;
1105 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1106 | --syscon | --sysco | --sysc | --sys | --sy)
1107 ac_prev=sysconfdir ;;
1108 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1109 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1110 sysconfdir=$ac_optarg ;;
1112 -target | --target | --targe | --targ | --tar | --ta | --t)
1113 ac_prev=target_alias ;;
1114 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1115 target_alias=$ac_optarg ;;
1117 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1120 -version | --version | --versio | --versi | --vers | -V)
1121 ac_init_version=: ;;
1124 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1125 # Reject names that are not valid shell variable names.
1126 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1127 as_fn_error $? "invalid package name: $ac_useropt"
1128 ac_useropt_orig=$ac_useropt
1129 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1130 case $ac_user_opts in
1134 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1135 ac_unrecognized_sep=', ';;
1137 eval with_$ac_useropt=\$ac_optarg ;;
1139 -without-* | --without-*)
1140 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1141 # Reject names that are not valid shell variable names.
1142 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1143 as_fn_error $? "invalid package name: $ac_useropt"
1144 ac_useropt_orig=$ac_useropt
1145 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1146 case $ac_user_opts in
1150 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1151 ac_unrecognized_sep=', ';;
1153 eval with_$ac_useropt=no ;;
1156 # Obsolete; use --with-x.
1159 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1160 | --x-incl | --x-inc | --x-in | --x-i)
1161 ac_prev=x_includes ;;
1162 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1163 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1164 x_includes=$ac_optarg ;;
1166 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1167 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1168 ac_prev=x_libraries ;;
1169 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1170 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1171 x_libraries=$ac_optarg ;;
1173 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1174 Try \`$0 --help' for more information"
1178 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1179 # Reject names that are not valid shell variable names.
1180 case $ac_envvar in #(
1181 '' | [0-9]* | *[!_$as_cr_alnum]* )
1182 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1184 eval $ac_envvar=\$ac_optarg
1185 export $ac_envvar ;;
1188 # FIXME: should be removed in autoconf 3.0.
1189 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1190 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1191 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1192 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1198 if test -n "$ac_prev"; then
1199 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1200 as_fn_error $? "missing argument to $ac_option"
1203 if test -n "$ac_unrecognized_opts"; then
1204 case $enable_option_checking in
1206 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1207 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1211 # Check all directory arguments for consistency.
1212 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1213 datadir sysconfdir sharedstatedir localstatedir includedir \
1214 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1215 libdir localedir mandir
1217 eval ac_val=\$$ac_var
1218 # Remove trailing slashes.
1221 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1222 eval $ac_var=\$ac_val;;
1224 # Be sure to have absolute directory names.
1226 [\\/$]* | ?:[\\/]* ) continue;;
1227 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1229 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1232 # There might be people who depend on the old broken behavior: `$host'
1233 # used to hold the argument of --host etc.
1234 # FIXME: To remove some day.
1237 target=$target_alias
1239 # FIXME: To remove some day.
1240 if test "x$host_alias" != x; then
1241 if test "x$build_alias" = x; then
1242 cross_compiling=maybe
1243 elif test "x$build_alias" != "x$host_alias"; then
1249 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1251 test "$silent" = yes && exec 6>/dev/null
1254 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1255 ac_ls_di=`ls -di .` &&
1256 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1257 as_fn_error $? "working directory cannot be determined"
1258 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1259 as_fn_error $? "pwd does not report name of working directory"
1262 # Find the source files, if location was not specified.
1263 if test -z "$srcdir"; then
1264 ac_srcdir_defaulted=yes
1265 # Try the directory containing this script, then the parent directory.
1266 ac_confdir=`$as_dirname -- "$as_myself" ||
1267 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1268 X"$as_myself" : 'X\(//\)[^/]' \| \
1269 X"$as_myself" : 'X\(//\)$' \| \
1270 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1271 $as_echo X"$as_myself" |
1272 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1290 if test ! -r "$srcdir/$ac_unique_file"; then
1294 ac_srcdir_defaulted=no
1296 if test ! -r "$srcdir/$ac_unique_file"; then
1297 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1298 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1300 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1302 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1304 # When building in place, set srcdir=.
1305 if test "$ac_abs_confdir" = "$ac_pwd"; then
1308 # Remove unnecessary trailing slashes from srcdir.
1309 # Double slashes in file names in object file debugging info
1310 # mess up M-x gdb in Emacs.
1312 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1314 for ac_var in $ac_precious_vars; do
1315 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1316 eval ac_env_${ac_var}_value=\$${ac_var}
1317 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1318 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1322 # Report the --help message.
1324 if test "$ac_init_help" = "long"; then
1325 # Omit some internal or obsolete options to make the list less imposing.
1326 # This message is too long to be a string in the A/UX 3.1 sh.
1328 \`configure' configures CCUnit 2.1 to adapt to many kinds of systems.
1330 Usage: $0 [OPTION]... [VAR=VALUE]...
1332 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1333 VAR=VALUE. See below for descriptions of some of the useful variables.
1335 Defaults for the options are specified in brackets.
1338 -h, --help display this help and exit
1339 --help=short display options specific to this package
1340 --help=recursive display the short help of all the included packages
1341 -V, --version display version information and exit
1342 -q, --quiet, --silent do not print \`checking ...' messages
1343 --cache-file=FILE cache test results in FILE [disabled]
1344 -C, --config-cache alias for \`--cache-file=config.cache'
1345 -n, --no-create do not create output files
1346 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1348 Installation directories:
1349 --prefix=PREFIX install architecture-independent files in PREFIX
1350 [$ac_default_prefix]
1351 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1354 By default, \`make install' will install all the files in
1355 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1356 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1357 for instance \`--prefix=\$HOME'.
1359 For better control, use the options below.
1361 Fine tuning of the installation directories:
1362 --bindir=DIR user executables [EPREFIX/bin]
1363 --sbindir=DIR system admin executables [EPREFIX/sbin]
1364 --libexecdir=DIR program executables [EPREFIX/libexec]
1365 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1366 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1367 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1368 --libdir=DIR object code libraries [EPREFIX/lib]
1369 --includedir=DIR C header files [PREFIX/include]
1370 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1371 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1372 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1373 --infodir=DIR info documentation [DATAROOTDIR/info]
1374 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1375 --mandir=DIR man documentation [DATAROOTDIR/man]
1376 --docdir=DIR documentation root [DATAROOTDIR/doc/ccunit]
1377 --htmldir=DIR html documentation [DOCDIR]
1378 --dvidir=DIR dvi documentation [DOCDIR]
1379 --pdfdir=DIR pdf documentation [DOCDIR]
1380 --psdir=DIR ps documentation [DOCDIR]
1386 --program-prefix=PREFIX prepend PREFIX to installed program names
1387 --program-suffix=SUFFIX append SUFFIX to installed program names
1388 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1391 --build=BUILD configure for building on BUILD [guessed]
1392 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1396 if test -n "$ac_init_help"; then
1397 case $ac_init_help in
1398 short | recursive ) echo "Configuration of CCUnit 2.1:";;
1403 --disable-option-checking ignore unrecognized --enable/--with options
1404 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1405 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1406 --enable-dependency-tracking
1407 do not reject slow dependency extractors
1408 --disable-dependency-tracking
1409 speeds up one-time build
1410 --enable-html-docs enable HTML generation with doxygen (yes)
1411 --enable-latex-docs enable LaTeX documentation generation with doxygen
1413 --enable-coverage enable coverage testing
1414 --enable-japanese-doc output japanese documents
1415 --enable-shared[=PKGS] build shared libraries [default=yes]
1416 --enable-static[=PKGS] build static libraries [default=yes]
1417 --enable-fast-install[=PKGS]
1418 optimize for fast installation [default=yes]
1419 --disable-libtool-lock avoid locking (might break parallel builds)
1422 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1423 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1424 --with-dmalloc use dmalloc, as in http://www.dmalloc.com
1425 --enable-doxygen enable documentation generation with doxygen (yes)
1426 --enable-dot use 'dot' to generate graphs in doxygen (yes)
1427 --with-pic try to use only PIC/non-PIC objects [default=use
1429 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1431 Some influential environment variables:
1432 CC C compiler command
1433 CFLAGS C compiler flags
1434 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1435 nonstandard directory <lib dir>
1436 LIBS libraries to pass to the linker, e.g. -l<library>
1437 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1438 you have headers in a nonstandard directory <include dir>
1441 Use these variables to override the choices made by `configure' or to help
1442 it to find libraries and programs with nonstandard names/locations.
1444 Report bugs to <tsntsumi@users.sourceforge.jp>.
1445 CCUnit home page: <http://ccunit.sourceforge.jp>.
1450 if test "$ac_init_help" = "recursive"; then
1451 # If there are subdirs, report their specific --help.
1452 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1453 test -d "$ac_dir" ||
1454 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1459 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1461 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1462 # A ".." for each directory in $ac_dir_suffix.
1463 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1464 case $ac_top_builddir_sub in
1465 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1466 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1469 ac_abs_top_builddir=$ac_pwd
1470 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1471 # for backward compatibility:
1472 ac_top_builddir=$ac_top_build_prefix
1475 .) # We are building in place.
1477 ac_top_srcdir=$ac_top_builddir_sub
1478 ac_abs_top_srcdir=$ac_pwd ;;
1479 [\\/]* | ?:[\\/]* ) # Absolute name.
1480 ac_srcdir=$srcdir$ac_dir_suffix;
1481 ac_top_srcdir=$srcdir
1482 ac_abs_top_srcdir=$srcdir ;;
1484 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1485 ac_top_srcdir=$ac_top_build_prefix$srcdir
1486 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1488 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1490 cd "$ac_dir" || { ac_status=$?; continue; }
1491 # Check for guested configure.
1492 if test -f "$ac_srcdir/configure.gnu"; then
1494 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1495 elif test -f "$ac_srcdir/configure"; then
1497 $SHELL "$ac_srcdir/configure" --help=recursive
1499 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1501 cd "$ac_pwd" || { ac_status=$?; break; }
1505 test -n "$ac_init_help" && exit $ac_status
1506 if $ac_init_version; then
1508 CCUnit configure 2.1
1509 generated by GNU Autoconf 2.69
1511 Copyright (C) 2012 Free Software Foundation, Inc.
1512 This configure script is free software; the Free Software Foundation
1513 gives unlimited permission to copy, distribute and modify it.
1518 ## ------------------------ ##
1519 ## Autoconf initialization. ##
1520 ## ------------------------ ##
1522 # ac_fn_c_try_compile LINENO
1523 # --------------------------
1524 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1525 ac_fn_c_try_compile ()
1527 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1528 rm -f conftest.$ac_objext
1529 if { { ac_try="$ac_compile"
1531 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1532 *) ac_try_echo=$ac_try;;
1534 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1535 $as_echo "$ac_try_echo"; } >&5
1536 (eval "$ac_compile") 2>conftest.err
1538 if test -s conftest.err; then
1539 grep -v '^ *+' conftest.err >conftest.er1
1540 cat conftest.er1 >&5
1541 mv -f conftest.er1 conftest.err
1543 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1544 test $ac_status = 0; } && {
1545 test -z "$ac_c_werror_flag" ||
1546 test ! -s conftest.err
1547 } && test -s conftest.$ac_objext; then :
1550 $as_echo "$as_me: failed program was:" >&5
1551 sed 's/^/| /' conftest.$ac_ext >&5
1555 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1556 as_fn_set_status $ac_retval
1558 } # ac_fn_c_try_compile
1560 # ac_fn_c_try_cpp LINENO
1561 # ----------------------
1562 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1565 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1566 if { { ac_try="$ac_cpp conftest.$ac_ext"
1568 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1569 *) ac_try_echo=$ac_try;;
1571 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1572 $as_echo "$ac_try_echo"; } >&5
1573 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1575 if test -s conftest.err; then
1576 grep -v '^ *+' conftest.err >conftest.er1
1577 cat conftest.er1 >&5
1578 mv -f conftest.er1 conftest.err
1580 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1581 test $ac_status = 0; } > conftest.i && {
1582 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1583 test ! -s conftest.err
1587 $as_echo "$as_me: failed program was:" >&5
1588 sed 's/^/| /' conftest.$ac_ext >&5
1592 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1593 as_fn_set_status $ac_retval
1597 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1598 # -------------------------------------------------------
1599 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1600 # the include files in INCLUDES and setting the cache variable VAR
1602 ac_fn_c_check_header_mongrel ()
1604 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1605 if eval \${$3+:} false; then :
1606 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1607 $as_echo_n "checking for $2... " >&6; }
1608 if eval \${$3+:} false; then :
1609 $as_echo_n "(cached) " >&6
1612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1613 $as_echo "$ac_res" >&6; }
1615 # Is the header compilable?
1616 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1617 $as_echo_n "checking $2 usability... " >&6; }
1618 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1619 /* end confdefs.h. */
1623 if ac_fn_c_try_compile "$LINENO"; then :
1624 ac_header_compiler=yes
1626 ac_header_compiler=no
1628 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1630 $as_echo "$ac_header_compiler" >&6; }
1632 # Is the header present?
1633 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1634 $as_echo_n "checking $2 presence... " >&6; }
1635 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1636 /* end confdefs.h. */
1639 if ac_fn_c_try_cpp "$LINENO"; then :
1640 ac_header_preproc=yes
1642 ac_header_preproc=no
1644 rm -f conftest.err conftest.i conftest.$ac_ext
1645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1646 $as_echo "$ac_header_preproc" >&6; }
1648 # So? What about this header?
1649 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1651 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1652 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1653 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1654 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1657 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1658 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1659 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1660 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1661 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1662 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1663 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1664 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1665 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1666 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1667 ( $as_echo "## -------------------------------------------- ##
1668 ## Report this to tsntsumi@users.sourceforge.jp ##
1669 ## -------------------------------------------- ##"
1670 ) | sed "s/^/$as_me: WARNING: /" >&2
1673 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1674 $as_echo_n "checking for $2... " >&6; }
1675 if eval \${$3+:} false; then :
1676 $as_echo_n "(cached) " >&6
1678 eval "$3=\$ac_header_compiler"
1681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1682 $as_echo "$ac_res" >&6; }
1684 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1686 } # ac_fn_c_check_header_mongrel
1688 # ac_fn_c_try_run LINENO
1689 # ----------------------
1690 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1691 # that executables *can* be run.
1694 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1695 if { { ac_try="$ac_link"
1697 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1698 *) ac_try_echo=$ac_try;;
1700 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1701 $as_echo "$ac_try_echo"; } >&5
1702 (eval "$ac_link") 2>&5
1704 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1705 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1706 { { case "(($ac_try" in
1707 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1708 *) ac_try_echo=$ac_try;;
1710 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1711 $as_echo "$ac_try_echo"; } >&5
1712 (eval "$ac_try") 2>&5
1714 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1715 test $ac_status = 0; }; }; then :
1718 $as_echo "$as_me: program exited with status $ac_status" >&5
1719 $as_echo "$as_me: failed program was:" >&5
1720 sed 's/^/| /' conftest.$ac_ext >&5
1722 ac_retval=$ac_status
1724 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1725 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1726 as_fn_set_status $ac_retval
1730 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1731 # -------------------------------------------------------
1732 # Tests whether HEADER exists and can be compiled using the include files in
1733 # INCLUDES, setting the cache variable VAR accordingly.
1734 ac_fn_c_check_header_compile ()
1736 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1737 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1738 $as_echo_n "checking for $2... " >&6; }
1739 if eval \${$3+:} false; then :
1740 $as_echo_n "(cached) " >&6
1742 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1743 /* end confdefs.h. */
1747 if ac_fn_c_try_compile "$LINENO"; then :
1752 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1756 $as_echo "$ac_res" >&6; }
1757 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1759 } # ac_fn_c_check_header_compile
1761 # ac_fn_c_try_link LINENO
1762 # -----------------------
1763 # Try to link conftest.$ac_ext, and return whether this succeeded.
1766 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1767 rm -f conftest.$ac_objext conftest$ac_exeext
1768 if { { ac_try="$ac_link"
1770 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1771 *) ac_try_echo=$ac_try;;
1773 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1774 $as_echo "$ac_try_echo"; } >&5
1775 (eval "$ac_link") 2>conftest.err
1777 if test -s conftest.err; then
1778 grep -v '^ *+' conftest.err >conftest.er1
1779 cat conftest.er1 >&5
1780 mv -f conftest.er1 conftest.err
1782 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1783 test $ac_status = 0; } && {
1784 test -z "$ac_c_werror_flag" ||
1785 test ! -s conftest.err
1786 } && test -s conftest$ac_exeext && {
1787 test "$cross_compiling" = yes ||
1788 test -x conftest$ac_exeext
1792 $as_echo "$as_me: failed program was:" >&5
1793 sed 's/^/| /' conftest.$ac_ext >&5
1797 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1798 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1799 # interfere with the next link command; also delete a directory that is
1800 # left behind by Apple's compiler. We do this before executing the actions.
1801 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1802 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1803 as_fn_set_status $ac_retval
1805 } # ac_fn_c_try_link
1807 # ac_fn_c_check_func LINENO FUNC VAR
1808 # ----------------------------------
1809 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1810 ac_fn_c_check_func ()
1812 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1813 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1814 $as_echo_n "checking for $2... " >&6; }
1815 if eval \${$3+:} false; then :
1816 $as_echo_n "(cached) " >&6
1818 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1819 /* end confdefs.h. */
1820 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1821 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1822 #define $2 innocuous_$2
1824 /* System header to define __stub macros and hopefully few prototypes,
1825 which can conflict with char $2 (); below.
1826 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1827 <limits.h> exists even on freestanding compilers. */
1830 # include <limits.h>
1832 # include <assert.h>
1837 /* Override any GCC internal prototype to avoid an error.
1838 Use char because int might match the return type of a GCC
1839 builtin and then its argument prototype would still apply. */
1844 /* The GNU C library defines this for functions which it implements
1845 to always fail with ENOSYS. Some functions are actually named
1846 something starting with __ and the normal name is an alias. */
1847 #if defined __stub_$2 || defined __stub___$2
1859 if ac_fn_c_try_link "$LINENO"; then :
1864 rm -f core conftest.err conftest.$ac_objext \
1865 conftest$ac_exeext conftest.$ac_ext
1868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1869 $as_echo "$ac_res" >&6; }
1870 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1872 } # ac_fn_c_check_func
1874 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1875 # -------------------------------------------
1876 # Tests whether TYPE exists after having included INCLUDES, setting cache
1877 # variable VAR accordingly.
1878 ac_fn_c_check_type ()
1880 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1881 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1882 $as_echo_n "checking for $2... " >&6; }
1883 if eval \${$3+:} false; then :
1884 $as_echo_n "(cached) " >&6
1887 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1888 /* end confdefs.h. */
1899 if ac_fn_c_try_compile "$LINENO"; then :
1900 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1901 /* end confdefs.h. */
1912 if ac_fn_c_try_compile "$LINENO"; then :
1917 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1919 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1923 $as_echo "$ac_res" >&6; }
1924 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1926 } # ac_fn_c_check_type
1927 cat >config.log <<_ACEOF
1928 This file contains any messages produced by compilers while
1929 running configure, to aid debugging if configure makes a mistake.
1931 It was created by CCUnit $as_me 2.1, which was
1932 generated by GNU Autoconf 2.69. Invocation command line was
1944 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1945 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1946 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1947 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1948 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1950 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1951 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1953 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1954 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1955 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1956 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1957 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1958 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1959 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1963 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1967 test -z "$as_dir" && as_dir=.
1968 $as_echo "PATH: $as_dir"
1984 # Keep a trace of the command line.
1985 # Strip out --no-create and --no-recursion so they do not pile up.
1986 # Strip out --silent because we don't want to record it for future runs.
1987 # Also quote any args containing shell meta-characters.
1988 # Make two passes to allow for proper duplicate-argument suppression.
1992 ac_must_keep_next=false
1998 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1999 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2000 | -silent | --silent | --silen | --sile | --sil)
2003 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2006 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2008 as_fn_append ac_configure_args1 " '$ac_arg'"
2009 if test $ac_must_keep_next = true; then
2010 ac_must_keep_next=false # Got value, back to normal.
2013 *=* | --config-cache | -C | -disable-* | --disable-* \
2014 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2015 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2016 | -with-* | --with-* | -without-* | --without-* | --x)
2017 case "$ac_configure_args0 " in
2018 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2021 -* ) ac_must_keep_next=true ;;
2024 as_fn_append ac_configure_args " '$ac_arg'"
2029 { ac_configure_args0=; unset ac_configure_args0;}
2030 { ac_configure_args1=; unset ac_configure_args1;}
2032 # When interrupted or exit'd, cleanup temporary files, and complete
2033 # config.log. We remove comments because anyway the quotes in there
2034 # would cause problems or look ugly.
2035 # WARNING: Use '\'' to represent an apostrophe within the trap.
2036 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2037 trap 'exit_status=$?
2038 # Save into config.log some information that might help in debugging.
2042 $as_echo "## ---------------- ##
2043 ## Cache variables. ##
2044 ## ---------------- ##"
2046 # The following way of writing the cache mishandles newlines in values,
2048 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2049 eval ac_val=\$$ac_var
2053 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2054 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2057 _ | IFS | as_nl) ;; #(
2058 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2059 *) { eval $ac_var=; unset $ac_var;} ;;
2064 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2065 *${as_nl}ac_space=\ *)
2067 "s/'\''/'\''\\\\'\'''\''/g;
2068 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2071 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2078 $as_echo "## ----------------- ##
2079 ## Output variables. ##
2080 ## ----------------- ##"
2082 for ac_var in $ac_subst_vars
2084 eval ac_val=\$$ac_var
2086 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2088 $as_echo "$ac_var='\''$ac_val'\''"
2092 if test -n "$ac_subst_files"; then
2093 $as_echo "## ------------------- ##
2094 ## File substitutions. ##
2095 ## ------------------- ##"
2097 for ac_var in $ac_subst_files
2099 eval ac_val=\$$ac_var
2101 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2103 $as_echo "$ac_var='\''$ac_val'\''"
2108 if test -s confdefs.h; then
2109 $as_echo "## ----------- ##
2116 test "$ac_signal" != 0 &&
2117 $as_echo "$as_me: caught signal $ac_signal"
2118 $as_echo "$as_me: exit $exit_status"
2120 rm -f core *.core core.conftest.* &&
2121 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2124 for ac_signal in 1 2 13 15; do
2125 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2129 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2130 rm -f -r conftest* confdefs.h
2132 $as_echo "/* confdefs.h */" > confdefs.h
2134 # Predefined preprocessor variables.
2136 cat >>confdefs.h <<_ACEOF
2137 #define PACKAGE_NAME "$PACKAGE_NAME"
2140 cat >>confdefs.h <<_ACEOF
2141 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2144 cat >>confdefs.h <<_ACEOF
2145 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2148 cat >>confdefs.h <<_ACEOF
2149 #define PACKAGE_STRING "$PACKAGE_STRING"
2152 cat >>confdefs.h <<_ACEOF
2153 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2156 cat >>confdefs.h <<_ACEOF
2157 #define PACKAGE_URL "$PACKAGE_URL"
2161 # Let the site file select an alternate cache file if it wants to.
2162 # Prefer an explicitly selected file to automatically selected ones.
2165 if test -n "$CONFIG_SITE"; then
2166 # We do not want a PATH search for config.site.
2167 case $CONFIG_SITE in #((
2168 -*) ac_site_file1=./$CONFIG_SITE;;
2169 */*) ac_site_file1=$CONFIG_SITE;;
2170 *) ac_site_file1=./$CONFIG_SITE;;
2172 elif test "x$prefix" != xNONE; then
2173 ac_site_file1=$prefix/share/config.site
2174 ac_site_file2=$prefix/etc/config.site
2176 ac_site_file1=$ac_default_prefix/share/config.site
2177 ac_site_file2=$ac_default_prefix/etc/config.site
2179 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2181 test "x$ac_site_file" = xNONE && continue
2182 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2183 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2184 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2185 sed 's/^/| /' "$ac_site_file" >&5
2187 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2188 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2189 as_fn_error $? "failed to load site script $ac_site_file
2190 See \`config.log' for more details" "$LINENO" 5; }
2194 if test -r "$cache_file"; then
2195 # Some versions of bash will fail to source /dev/null (special files
2196 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2197 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2198 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2199 $as_echo "$as_me: loading cache $cache_file" >&6;}
2201 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2202 *) . "./$cache_file";;
2206 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2207 $as_echo "$as_me: creating cache $cache_file" >&6;}
2211 # Check that the precious variables saved in the cache have kept the same
2213 ac_cache_corrupted=false
2214 for ac_var in $ac_precious_vars; do
2215 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2216 eval ac_new_set=\$ac_env_${ac_var}_set
2217 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2218 eval ac_new_val=\$ac_env_${ac_var}_value
2219 case $ac_old_set,$ac_new_set in
2221 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2222 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2223 ac_cache_corrupted=: ;;
2225 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2226 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2227 ac_cache_corrupted=: ;;
2230 if test "x$ac_old_val" != "x$ac_new_val"; then
2231 # differences in whitespace do not lead to failure.
2232 ac_old_val_w=`echo x $ac_old_val`
2233 ac_new_val_w=`echo x $ac_new_val`
2234 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2235 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2236 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2237 ac_cache_corrupted=:
2239 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2240 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2241 eval $ac_var=\$ac_old_val
2243 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2244 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2245 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2246 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2249 # Pass precious variables to config.status.
2250 if test "$ac_new_set" = set; then
2252 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2253 *) ac_arg=$ac_var=$ac_new_val ;;
2255 case " $ac_configure_args " in
2256 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2257 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2261 if $ac_cache_corrupted; then
2262 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2263 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2264 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2265 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2266 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2268 ## -------------------- ##
2269 ## Main body of script. ##
2270 ## -------------------- ##
2273 ac_cpp='$CPP $CPPFLAGS'
2274 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2275 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2276 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2282 for ac_dir in config "$srcdir"/config; do
2283 if test -f "$ac_dir/install-sh"; then
2285 ac_install_sh="$ac_aux_dir/install-sh -c"
2287 elif test -f "$ac_dir/install.sh"; then
2289 ac_install_sh="$ac_aux_dir/install.sh -c"
2291 elif test -f "$ac_dir/shtool"; then
2293 ac_install_sh="$ac_aux_dir/shtool install -c"
2297 if test -z "$ac_aux_dir"; then
2298 as_fn_error $? "cannot find install-sh, install.sh, or shtool in config \"$srcdir\"/config" "$LINENO" 5
2301 # These three variables are undocumented and unsupported,
2302 # and are intended to be withdrawn in a future Autoconf release.
2303 # They can cause serious problems if a builder's source tree is in a directory
2304 # whose full name contains unusual characters.
2305 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2306 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2307 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2310 ac_config_headers="$ac_config_headers config/config.h"
2314 am__api_version='1.12'
2316 # Find a good install program. We prefer a C program (faster),
2317 # so one script is as good as another. But avoid the broken or
2318 # incompatible versions:
2319 # SysV /etc/install, /usr/sbin/install
2320 # SunOS /usr/etc/install
2321 # IRIX /sbin/install
2323 # AmigaOS /C/install, which installs bootblocks on floppy discs
2324 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2325 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2326 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2327 # OS/2's system install, which has a completely different semantic
2328 # ./install, which can be erroneously created by make from ./install.sh.
2329 # Reject install programs that cannot install multiple files.
2330 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2331 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2332 if test -z "$INSTALL"; then
2333 if ${ac_cv_path_install+:} false; then :
2334 $as_echo_n "(cached) " >&6
2336 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2340 test -z "$as_dir" && as_dir=.
2341 # Account for people who put trailing slashes in PATH elements.
2342 case $as_dir/ in #((
2343 ./ | .// | /[cC]/* | \
2344 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2345 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2348 # OSF1 and SCO ODT 3.0 have their own names for install.
2349 # Don't use installbsd from OSF since it installs stuff as root
2351 for ac_prog in ginstall scoinst install; do
2352 for ac_exec_ext in '' $ac_executable_extensions; do
2353 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2354 if test $ac_prog = install &&
2355 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2356 # AIX install. It has an incompatible calling convention.
2358 elif test $ac_prog = install &&
2359 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2360 # program-specific install script used by HP pwplus--don't use.
2363 rm -rf conftest.one conftest.two conftest.dir
2364 echo one > conftest.one
2365 echo two > conftest.two
2367 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2368 test -s conftest.one && test -s conftest.two &&
2369 test -s conftest.dir/conftest.one &&
2370 test -s conftest.dir/conftest.two
2372 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2385 rm -rf conftest.one conftest.two conftest.dir
2388 if test "${ac_cv_path_install+set}" = set; then
2389 INSTALL=$ac_cv_path_install
2391 # As a last resort, use the slow shell script. Don't cache a
2392 # value for INSTALL within a source directory, because that will
2393 # break other packages using the cache if that directory is
2394 # removed, or if the value is a relative name.
2395 INSTALL=$ac_install_sh
2398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2399 $as_echo "$INSTALL" >&6; }
2401 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2402 # It thinks the first close brace ends the variable substitution.
2403 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2405 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2407 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2409 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2410 $as_echo_n "checking whether build environment is sane... " >&6; }
2411 # Reject unsafe characters in $srcdir or the absolute working directory
2412 # name. Accept space and tab only in the latter.
2416 *[\\\"\#\$\&\'\`$am_lf]*)
2417 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2420 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2421 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2424 # Do 'set' in a subshell so we don't clobber the current shell's
2425 # arguments. Must try -L first in case configure is actually a
2426 # symlink; some systems play weird games with the mod time of symlinks
2427 # (eg FreeBSD returns the mod time of the symlink's containing
2431 for am_try in 1 2; do
2432 echo "timestamp, slept: $am_has_slept" > conftest.file
2433 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2434 if test "$*" = "X"; then
2436 set X `ls -t "$srcdir/configure" conftest.file`
2438 if test "$*" != "X $srcdir/configure conftest.file" \
2439 && test "$*" != "X conftest.file $srcdir/configure"; then
2441 # If neither matched, then we have a broken ls. This can happen
2442 # if, for instance, CONFIG_SHELL is bash and it inherits a
2443 # broken ls alias from the environment. This has actually
2444 # happened. Such a system could not be considered "sane".
2445 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
2446 alias in your environment" "$LINENO" 5
2448 if test "$2" = conftest.file || test $am_try -eq 2; then
2455 test "$2" = conftest.file
2461 as_fn_error $? "newly created file is older than distributed files!
2462 Check your system clock" "$LINENO" 5
2464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2465 $as_echo "yes" >&6; }
2466 # If we didn't sleep, we still need to ensure time stamps of config.status and
2467 # generated files are strictly newer.
2469 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
2476 test "$program_prefix" != NONE &&
2477 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2478 # Use a double $ so make ignores it.
2479 test "$program_suffix" != NONE &&
2480 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2481 # Double any \ or $.
2482 # By default was `s,x,x', remove it if useless.
2483 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2484 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2486 # expand $ac_aux_dir to an absolute path
2487 am_aux_dir=`cd $ac_aux_dir && pwd`
2489 if test x"${MISSING+set}" != xset; then
2492 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2494 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2497 # Use eval to expand $SHELL
2498 if eval "$MISSING --run true"; then
2499 am_missing_run="$MISSING --run "
2502 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
2503 $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
2506 if test x"${install_sh}" != xset; then
2509 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2511 install_sh="\${SHELL} $am_aux_dir/install-sh"
2515 # Installed binaries are usually stripped using 'strip' when the user
2516 # run "make install-strip". However 'strip' might not be the right
2517 # tool to use in cross-compilation environments, therefore Automake
2518 # will honor the 'STRIP' environment variable to overrule this program.
2519 if test "$cross_compiling" != no; then
2520 if test -n "$ac_tool_prefix"; then
2521 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2522 set dummy ${ac_tool_prefix}strip; ac_word=$2
2523 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2524 $as_echo_n "checking for $ac_word... " >&6; }
2525 if ${ac_cv_prog_STRIP+:} false; then :
2526 $as_echo_n "(cached) " >&6
2528 if test -n "$STRIP"; then
2529 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2531 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2535 test -z "$as_dir" && as_dir=.
2536 for ac_exec_ext in '' $ac_executable_extensions; do
2537 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2538 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2539 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2548 STRIP=$ac_cv_prog_STRIP
2549 if test -n "$STRIP"; then
2550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2551 $as_echo "$STRIP" >&6; }
2553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2554 $as_echo "no" >&6; }
2559 if test -z "$ac_cv_prog_STRIP"; then
2561 # Extract the first word of "strip", so it can be a program name with args.
2562 set dummy strip; ac_word=$2
2563 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2564 $as_echo_n "checking for $ac_word... " >&6; }
2565 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2566 $as_echo_n "(cached) " >&6
2568 if test -n "$ac_ct_STRIP"; then
2569 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2571 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2575 test -z "$as_dir" && as_dir=.
2576 for ac_exec_ext in '' $ac_executable_extensions; do
2577 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2578 ac_cv_prog_ac_ct_STRIP="strip"
2579 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2588 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2589 if test -n "$ac_ct_STRIP"; then
2590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2591 $as_echo "$ac_ct_STRIP" >&6; }
2593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2594 $as_echo "no" >&6; }
2597 if test "x$ac_ct_STRIP" = x; then
2600 case $cross_compiling:$ac_tool_warned in
2602 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2603 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2604 ac_tool_warned=yes ;;
2609 STRIP="$ac_cv_prog_STRIP"
2613 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2615 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2616 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2617 if test -z "$MKDIR_P"; then
2618 if ${ac_cv_path_mkdir+:} false; then :
2619 $as_echo_n "(cached) " >&6
2621 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2622 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2625 test -z "$as_dir" && as_dir=.
2626 for ac_prog in mkdir gmkdir; do
2627 for ac_exec_ext in '' $ac_executable_extensions; do
2628 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
2629 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2630 'mkdir (GNU coreutils) '* | \
2631 'mkdir (coreutils) '* | \
2632 'mkdir (fileutils) '4.1*)
2633 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2643 test -d ./--version && rmdir ./--version
2644 if test "${ac_cv_path_mkdir+set}" = set; then
2645 MKDIR_P="$ac_cv_path_mkdir -p"
2647 # As a last resort, use the slow shell script. Don't cache a
2648 # value for MKDIR_P within a source directory, because that will
2649 # break other packages using the cache if that directory is
2650 # removed, or if the value is a relative name.
2651 MKDIR_P="$ac_install_sh -d"
2654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2655 $as_echo "$MKDIR_P" >&6; }
2657 for ac_prog in gawk mawk nawk awk
2659 # Extract the first word of "$ac_prog", so it can be a program name with args.
2660 set dummy $ac_prog; ac_word=$2
2661 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2662 $as_echo_n "checking for $ac_word... " >&6; }
2663 if ${ac_cv_prog_AWK+:} false; then :
2664 $as_echo_n "(cached) " >&6
2666 if test -n "$AWK"; then
2667 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2669 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2673 test -z "$as_dir" && as_dir=.
2674 for ac_exec_ext in '' $ac_executable_extensions; do
2675 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2676 ac_cv_prog_AWK="$ac_prog"
2677 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2687 if test -n "$AWK"; then
2688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2689 $as_echo "$AWK" >&6; }
2691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2692 $as_echo "no" >&6; }
2696 test -n "$AWK" && break
2699 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2700 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2702 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2703 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2704 $as_echo_n "(cached) " >&6
2706 cat >conftest.make <<\_ACEOF
2709 @echo '@@@%%%=$(MAKE)=@@@%%%'
2711 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2712 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2714 eval ac_cv_prog_make_${ac_make}_set=yes;;
2716 eval ac_cv_prog_make_${ac_make}_set=no;;
2720 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2722 $as_echo "yes" >&6; }
2725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2726 $as_echo "no" >&6; }
2727 SET_MAKE="MAKE=${MAKE-make}"
2730 rm -rf .tst 2>/dev/null
2731 mkdir .tst 2>/dev/null
2732 if test -d .tst; then
2737 rmdir .tst 2>/dev/null
2739 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2740 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2741 # is not polluted with repeated "-I."
2742 am__isrc=' -I$(srcdir)'
2743 # test to see if srcdir already configured
2744 if test -f $srcdir/config.status; then
2745 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2749 # test whether we have cygpath
2750 if test -z "$CYGPATH_W"; then
2751 if (cygpath --version) >/dev/null 2>/dev/null; then
2752 CYGPATH_W='cygpath -w'
2759 # Define the identity of the package.
2764 cat >>confdefs.h <<_ACEOF
2765 #define PACKAGE "$PACKAGE"
2769 cat >>confdefs.h <<_ACEOF
2770 #define VERSION "$VERSION"
2773 # Some tools Automake needs.
2775 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2778 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2781 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2784 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2787 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2789 # For better backward compatibility. To be removed once Automake 1.9.x
2790 # dies out for good. For more background, see:
2791 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
2792 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
2793 mkdir_p='$(MKDIR_P)'
2795 # We need awk for the "check" target. The system "awk" is bad on
2797 # Always define AMTAR for backward compatibility. Yes, it's still used
2798 # in the wild :-( We should find a proper way to deprecate it ...
2801 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
2808 ac_config_commands="$ac_config_commands src/ccunit/config.h"
2811 DISTDOCDIR=$PACKAGE-$VERSION-doc
2813 DISTDOCJADIR=$PACKAGE-$VERSION-docja
2817 ac_cpp='$CPP $CPPFLAGS'
2818 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2819 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2820 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2823 # Checks for programs.
2824 DEPDIR="${am__leading_dot}deps"
2826 ac_config_commands="$ac_config_commands depfiles"
2829 am_make=${MAKE-make}
2830 cat > confinc << 'END'
2832 @echo this is the am__doit target
2835 # If we don't find an include directive, just comment out the code.
2836 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
2837 $as_echo_n "checking for style of include used by $am_make... " >&6; }
2841 # First try GNU make style include.
2842 echo "include confinc" > confmf
2843 # Ignore all kinds of additional output from 'make'.
2844 case `$am_make -s -f confmf 2> /dev/null` in #(
2845 *the\ am__doit\ target*)
2851 # Now try BSD make style include.
2852 if test "$am__include" = "#"; then
2853 echo '.include "confinc"' > confmf
2854 case `$am_make -s -f confmf 2> /dev/null` in #(
2855 *the\ am__doit\ target*)
2856 am__include=.include
2864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
2865 $as_echo "$_am_result" >&6; }
2866 rm -f confinc confmf
2868 # Check whether --enable-dependency-tracking was given.
2869 if test "${enable_dependency_tracking+set}" = set; then :
2870 enableval=$enable_dependency_tracking;
2873 if test "x$enable_dependency_tracking" != xno; then
2874 am_depcomp="$ac_aux_dir/depcomp"
2878 if test "x$enable_dependency_tracking" != xno; then
2888 ac_cpp='$CPP $CPPFLAGS'
2889 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2890 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2891 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2892 if test -n "$ac_tool_prefix"; then
2893 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2894 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2895 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2896 $as_echo_n "checking for $ac_word... " >&6; }
2897 if ${ac_cv_prog_CC+:} false; then :
2898 $as_echo_n "(cached) " >&6
2900 if test -n "$CC"; then
2901 ac_cv_prog_CC="$CC" # Let the user override the test.
2903 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2907 test -z "$as_dir" && as_dir=.
2908 for ac_exec_ext in '' $ac_executable_extensions; do
2909 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2910 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2911 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2921 if test -n "$CC"; then
2922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2923 $as_echo "$CC" >&6; }
2925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2926 $as_echo "no" >&6; }
2931 if test -z "$ac_cv_prog_CC"; then
2933 # Extract the first word of "gcc", so it can be a program name with args.
2934 set dummy gcc; ac_word=$2
2935 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2936 $as_echo_n "checking for $ac_word... " >&6; }
2937 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2938 $as_echo_n "(cached) " >&6
2940 if test -n "$ac_ct_CC"; then
2941 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2943 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2947 test -z "$as_dir" && as_dir=.
2948 for ac_exec_ext in '' $ac_executable_extensions; do
2949 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2950 ac_cv_prog_ac_ct_CC="gcc"
2951 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2960 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2961 if test -n "$ac_ct_CC"; then
2962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2963 $as_echo "$ac_ct_CC" >&6; }
2965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2966 $as_echo "no" >&6; }
2969 if test "x$ac_ct_CC" = x; then
2972 case $cross_compiling:$ac_tool_warned in
2974 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2975 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2976 ac_tool_warned=yes ;;
2984 if test -z "$CC"; then
2985 if test -n "$ac_tool_prefix"; then
2986 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2987 set dummy ${ac_tool_prefix}cc; ac_word=$2
2988 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2989 $as_echo_n "checking for $ac_word... " >&6; }
2990 if ${ac_cv_prog_CC+:} false; then :
2991 $as_echo_n "(cached) " >&6
2993 if test -n "$CC"; then
2994 ac_cv_prog_CC="$CC" # Let the user override the test.
2996 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3000 test -z "$as_dir" && as_dir=.
3001 for ac_exec_ext in '' $ac_executable_extensions; do
3002 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3003 ac_cv_prog_CC="${ac_tool_prefix}cc"
3004 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3014 if test -n "$CC"; then
3015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3016 $as_echo "$CC" >&6; }
3018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3019 $as_echo "no" >&6; }
3025 if test -z "$CC"; then
3026 # Extract the first word of "cc", so it can be a program name with args.
3027 set dummy cc; ac_word=$2
3028 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3029 $as_echo_n "checking for $ac_word... " >&6; }
3030 if ${ac_cv_prog_CC+:} false; then :
3031 $as_echo_n "(cached) " >&6
3033 if test -n "$CC"; then
3034 ac_cv_prog_CC="$CC" # Let the user override the test.
3037 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3041 test -z "$as_dir" && as_dir=.
3042 for ac_exec_ext in '' $ac_executable_extensions; do
3043 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3044 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3045 ac_prog_rejected=yes
3049 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3056 if test $ac_prog_rejected = yes; then
3057 # We found a bogon in the path, so make sure we never use it.
3058 set dummy $ac_cv_prog_CC
3060 if test $# != 0; then
3061 # We chose a different compiler from the bogus one.
3062 # However, it has the same basename, so the bogon will be chosen
3063 # first if we set CC to just the basename; use the full file name.
3065 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3071 if test -n "$CC"; then
3072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3073 $as_echo "$CC" >&6; }
3075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3076 $as_echo "no" >&6; }
3081 if test -z "$CC"; then
3082 if test -n "$ac_tool_prefix"; then
3083 for ac_prog in cl.exe
3085 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3086 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3087 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3088 $as_echo_n "checking for $ac_word... " >&6; }
3089 if ${ac_cv_prog_CC+:} false; then :
3090 $as_echo_n "(cached) " >&6
3092 if test -n "$CC"; then
3093 ac_cv_prog_CC="$CC" # Let the user override the test.
3095 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3099 test -z "$as_dir" && as_dir=.
3100 for ac_exec_ext in '' $ac_executable_extensions; do
3101 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3102 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3103 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3113 if test -n "$CC"; then
3114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3115 $as_echo "$CC" >&6; }
3117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3118 $as_echo "no" >&6; }
3122 test -n "$CC" && break
3125 if test -z "$CC"; then
3127 for ac_prog in cl.exe
3129 # Extract the first word of "$ac_prog", so it can be a program name with args.
3130 set dummy $ac_prog; ac_word=$2
3131 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3132 $as_echo_n "checking for $ac_word... " >&6; }
3133 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3134 $as_echo_n "(cached) " >&6
3136 if test -n "$ac_ct_CC"; then
3137 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3139 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3143 test -z "$as_dir" && as_dir=.
3144 for ac_exec_ext in '' $ac_executable_extensions; do
3145 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3146 ac_cv_prog_ac_ct_CC="$ac_prog"
3147 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3156 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3157 if test -n "$ac_ct_CC"; then
3158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3159 $as_echo "$ac_ct_CC" >&6; }
3161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3162 $as_echo "no" >&6; }
3166 test -n "$ac_ct_CC" && break
3169 if test "x$ac_ct_CC" = x; then
3172 case $cross_compiling:$ac_tool_warned in
3174 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3175 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3176 ac_tool_warned=yes ;;
3185 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3186 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3187 as_fn_error $? "no acceptable C compiler found in \$PATH
3188 See \`config.log' for more details" "$LINENO" 5; }
3190 # Provide some information about the compiler.
3191 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3194 for ac_option in --version -v -V -qversion; do
3195 { { ac_try="$ac_compiler $ac_option >&5"
3197 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3198 *) ac_try_echo=$ac_try;;
3200 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3201 $as_echo "$ac_try_echo"; } >&5
3202 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3204 if test -s conftest.err; then
3206 ... rest of stderr output deleted ...
3207 10q' conftest.err >conftest.er1
3208 cat conftest.er1 >&5
3210 rm -f conftest.er1 conftest.err
3211 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3212 test $ac_status = 0; }
3215 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3216 /* end confdefs.h. */
3226 ac_clean_files_save=$ac_clean_files
3227 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3228 # Try to create an executable without -o first, disregard a.out.
3229 # It will help us diagnose broken compilers, and finding out an intuition
3231 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3232 $as_echo_n "checking whether the C compiler works... " >&6; }
3233 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3235 # The possible output files:
3236 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3239 for ac_file in $ac_files
3242 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3243 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3248 if { { ac_try="$ac_link_default"
3250 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3251 *) ac_try_echo=$ac_try;;
3253 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3254 $as_echo "$ac_try_echo"; } >&5
3255 (eval "$ac_link_default") 2>&5
3257 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3258 test $ac_status = 0; }; then :
3259 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3260 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3261 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3262 # so that the user can short-circuit this test for compilers unknown to
3264 for ac_file in $ac_files ''
3266 test -f "$ac_file" || continue
3268 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3271 # We found the default executable, but exeext='' is most
3275 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3277 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3279 # We set ac_cv_exeext here because the later test for it is not
3280 # safe: cross compilers may not add the suffix if given an `-o'
3281 # argument, so we may need to know it at that point already.
3282 # Even if this section looks crufty: it has the advantage of
3289 test "$ac_cv_exeext" = no && ac_cv_exeext=
3294 if test -z "$ac_file"; then :
3295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3296 $as_echo "no" >&6; }
3297 $as_echo "$as_me: failed program was:" >&5
3298 sed 's/^/| /' conftest.$ac_ext >&5
3300 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3301 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3302 as_fn_error 77 "C compiler cannot create executables
3303 See \`config.log' for more details" "$LINENO" 5; }
3305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3306 $as_echo "yes" >&6; }
3308 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3309 $as_echo_n "checking for C compiler default output file name... " >&6; }
3310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3311 $as_echo "$ac_file" >&6; }
3312 ac_exeext=$ac_cv_exeext
3314 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3315 ac_clean_files=$ac_clean_files_save
3316 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3317 $as_echo_n "checking for suffix of executables... " >&6; }
3318 if { { ac_try="$ac_link"
3320 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3321 *) ac_try_echo=$ac_try;;
3323 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3324 $as_echo "$ac_try_echo"; } >&5
3325 (eval "$ac_link") 2>&5
3327 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3328 test $ac_status = 0; }; then :
3329 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3330 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3331 # work properly (i.e., refer to `conftest.exe'), while it won't with
3333 for ac_file in conftest.exe conftest conftest.*; do
3334 test -f "$ac_file" || continue
3336 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3337 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3343 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3344 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3345 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3346 See \`config.log' for more details" "$LINENO" 5; }
3348 rm -f conftest conftest$ac_cv_exeext
3349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3350 $as_echo "$ac_cv_exeext" >&6; }
3352 rm -f conftest.$ac_ext
3353 EXEEXT=$ac_cv_exeext
3355 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3356 /* end confdefs.h. */
3361 FILE *f = fopen ("conftest.out", "w");
3362 return ferror (f) || fclose (f) != 0;
3368 ac_clean_files="$ac_clean_files conftest.out"
3369 # Check that the compiler produces executables we can run. If not, either
3370 # the compiler is broken, or we cross compile.
3371 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3372 $as_echo_n "checking whether we are cross compiling... " >&6; }
3373 if test "$cross_compiling" != yes; then
3374 { { ac_try="$ac_link"
3376 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3377 *) ac_try_echo=$ac_try;;
3379 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3380 $as_echo "$ac_try_echo"; } >&5
3381 (eval "$ac_link") 2>&5
3383 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3384 test $ac_status = 0; }
3385 if { ac_try='./conftest$ac_cv_exeext'
3386 { { case "(($ac_try" in
3387 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3388 *) ac_try_echo=$ac_try;;
3390 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3391 $as_echo "$ac_try_echo"; } >&5
3392 (eval "$ac_try") 2>&5
3394 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3395 test $ac_status = 0; }; }; then
3398 if test "$cross_compiling" = maybe; then
3401 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3402 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3403 as_fn_error $? "cannot run C compiled programs.
3404 If you meant to cross compile, use \`--host'.
3405 See \`config.log' for more details" "$LINENO" 5; }
3409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3410 $as_echo "$cross_compiling" >&6; }
3412 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3413 ac_clean_files=$ac_clean_files_save
3414 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3415 $as_echo_n "checking for suffix of object files... " >&6; }
3416 if ${ac_cv_objext+:} false; then :
3417 $as_echo_n "(cached) " >&6
3419 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3420 /* end confdefs.h. */
3430 rm -f conftest.o conftest.obj
3431 if { { ac_try="$ac_compile"
3433 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3434 *) ac_try_echo=$ac_try;;
3436 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3437 $as_echo "$ac_try_echo"; } >&5
3438 (eval "$ac_compile") 2>&5
3440 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3441 test $ac_status = 0; }; then :
3442 for ac_file in conftest.o conftest.obj conftest.*; do
3443 test -f "$ac_file" || continue;
3445 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3446 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3451 $as_echo "$as_me: failed program was:" >&5
3452 sed 's/^/| /' conftest.$ac_ext >&5
3454 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3455 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3456 as_fn_error $? "cannot compute suffix of object files: cannot compile
3457 See \`config.log' for more details" "$LINENO" 5; }
3459 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3462 $as_echo "$ac_cv_objext" >&6; }
3463 OBJEXT=$ac_cv_objext
3465 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3466 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3467 if ${ac_cv_c_compiler_gnu+:} false; then :
3468 $as_echo_n "(cached) " >&6
3470 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3471 /* end confdefs.h. */
3484 if ac_fn_c_try_compile "$LINENO"; then :
3489 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3490 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3494 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3495 if test $ac_compiler_gnu = yes; then
3500 ac_test_CFLAGS=${CFLAGS+set}
3501 ac_save_CFLAGS=$CFLAGS
3502 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3503 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3504 if ${ac_cv_prog_cc_g+:} false; then :
3505 $as_echo_n "(cached) " >&6
3507 ac_save_c_werror_flag=$ac_c_werror_flag
3508 ac_c_werror_flag=yes
3511 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3512 /* end confdefs.h. */
3522 if ac_fn_c_try_compile "$LINENO"; then :
3526 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3527 /* end confdefs.h. */
3537 if ac_fn_c_try_compile "$LINENO"; then :
3540 ac_c_werror_flag=$ac_save_c_werror_flag
3542 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3543 /* end confdefs.h. */
3553 if ac_fn_c_try_compile "$LINENO"; then :
3556 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3558 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3560 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3561 ac_c_werror_flag=$ac_save_c_werror_flag
3563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3564 $as_echo "$ac_cv_prog_cc_g" >&6; }
3565 if test "$ac_test_CFLAGS" = set; then
3566 CFLAGS=$ac_save_CFLAGS
3567 elif test $ac_cv_prog_cc_g = yes; then
3568 if test "$GCC" = yes; then
3574 if test "$GCC" = yes; then
3580 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3581 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3582 if ${ac_cv_prog_cc_c89+:} false; then :
3583 $as_echo_n "(cached) " >&6
3585 ac_cv_prog_cc_c89=no
3587 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3588 /* end confdefs.h. */
3592 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3593 struct buf { int x; };
3594 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3595 static char *e (p, i)
3601 static char *f (char * (*g) (char **, int), char **p, ...)
3606 s = g (p, va_arg (v,int));
3611 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3612 function prototypes and stuff, but not '\xHH' hex character constants.
3613 These don't provoke an error unfortunately, instead are silently treated
3614 as 'x'. The following induces an error, until -std is added to get
3615 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3616 array size at least. It's necessary to write '\x00'==0 to get something
3617 that's true only with -std. */
3618 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3620 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3621 inside strings and character constants. */
3623 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3625 int test (int i, double x);
3626 struct s1 {int (*f) (int a);};
3627 struct s2 {int (*f) (double a);};
3628 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3634 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3639 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3640 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3642 CC="$ac_save_CC $ac_arg"
3643 if ac_fn_c_try_compile "$LINENO"; then :
3644 ac_cv_prog_cc_c89=$ac_arg
3646 rm -f core conftest.err conftest.$ac_objext
3647 test "x$ac_cv_prog_cc_c89" != "xno" && break
3649 rm -f conftest.$ac_ext
3654 case "x$ac_cv_prog_cc_c89" in
3656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3657 $as_echo "none needed" >&6; } ;;
3659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3660 $as_echo "unsupported" >&6; } ;;
3662 CC="$CC $ac_cv_prog_cc_c89"
3663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3664 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3666 if test "x$ac_cv_prog_cc_c89" != xno; then :
3671 ac_cpp='$CPP $CPPFLAGS'
3672 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3673 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3674 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3676 depcc="$CC" am_compiler_list=
3678 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3679 $as_echo_n "checking dependency style of $depcc... " >&6; }
3680 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
3681 $as_echo_n "(cached) " >&6
3683 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3684 # We make a subdir and do the tests there. Otherwise we can end up
3685 # making bogus files that we don't know about and never remove. For
3686 # instance it was reported that on HP-UX the gcc test will end up
3687 # making a dummy file named 'D' -- because '-MD' means "put the output
3691 # Copy depcomp to subdir because otherwise we won't find it if we're
3692 # using a relative directory.
3693 cp "$am_depcomp" conftest.dir
3695 # We will build objects and dependencies in a subdirectory because
3696 # it helps to detect inapplicable dependency modes. For instance
3697 # both Tru64's cc and ICC support -MD to output dependencies as a
3698 # side effect of compilation, but ICC will put the dependencies in
3699 # the current directory while Tru64 will put them in the object
3703 am_cv_CC_dependencies_compiler_type=none
3704 if test "$am_compiler_list" = ""; then
3705 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3708 case " $depcc " in #(
3709 *\ -arch\ *\ -arch\ *) am__universal=true ;;
3712 for depmode in $am_compiler_list; do
3713 # Setup a source with many dependencies, because some compilers
3714 # like to wrap large dependency lists on column 80 (with \), and
3715 # we should not choose a depcomp mode which is confused by this.
3717 # We need to recreate these files for each test, as the compiler may
3718 # overwrite some of them when testing with obscure command lines.
3719 # This happens at least with the AIX C compiler.
3721 for i in 1 2 3 4 5 6; do
3722 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3723 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
3724 # Solaris 10 /bin/sh.
3725 echo '/* dummy */' > sub/conftst$i.h
3727 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3729 # We check with '-c' and '-o' for the sake of the "dashmstdout"
3730 # mode. It turns out that the SunPro C++ compiler does not properly
3731 # handle '-M -o', and we need to detect this. Also, some Intel
3732 # versions had trouble with output in subdirs.
3733 am__obj=sub/conftest.${OBJEXT-o}
3734 am__minus_obj="-o $am__obj"
3737 # This depmode causes a compiler race in universal mode.
3738 test "$am__universal" = false || continue
3741 # After this tag, mechanisms are not by side-effect, so they'll
3742 # only be used when explicitly requested.
3743 if test "x$enable_dependency_tracking" = xyes; then
3749 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
3750 # This compiler won't grok '-c -o', but also, the minuso test has
3751 # not run yet. These depmodes are late enough in the game, and
3752 # so weak that their functioning should not be impacted.
3753 am__obj=conftest.${OBJEXT-o}
3758 if depmode=$depmode \
3759 source=sub/conftest.c object=$am__obj \
3760 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3761 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
3762 >/dev/null 2>conftest.err &&
3763 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3764 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3765 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
3766 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3767 # icc doesn't choke on unknown options, it will just issue warnings
3768 # or remarks (even with -Werror). So we grep stderr for any message
3769 # that says an option was ignored or not supported.
3770 # When given -MP, icc 7.0 and 7.1 complain thusly:
3771 # icc: Command line warning: ignoring option '-M'; no argument required
3772 # The diagnosis changed in icc 8.0:
3773 # icc: Command line remark: option '-MP' not supported
3774 if (grep 'ignoring option' conftest.err ||
3775 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3776 am_cv_CC_dependencies_compiler_type=$depmode
3785 am_cv_CC_dependencies_compiler_type=none
3789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
3790 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
3791 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3794 test "x$enable_dependency_tracking" != xno \
3795 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3797 am__fastdepCC_FALSE='#'
3799 am__fastdepCC_TRUE='#'
3800 am__fastdepCC_FALSE=
3806 ac_cpp='$CPP $CPPFLAGS'
3807 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3808 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3809 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3810 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3811 $as_echo_n "checking how to run the C preprocessor... " >&6; }
3812 # On Suns, sometimes $CPP names a directory.
3813 if test -n "$CPP" && test -d "$CPP"; then
3816 if test -z "$CPP"; then
3817 if ${ac_cv_prog_CPP+:} false; then :
3818 $as_echo_n "(cached) " >&6
3820 # Double quotes because CPP needs to be expanded
3821 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3824 for ac_c_preproc_warn_flag in '' yes
3826 # Use a header file that comes with gcc, so configuring glibc
3827 # with a fresh cross-compiler works.
3828 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3829 # <limits.h> exists even on freestanding compilers.
3830 # On the NeXT, cc -E runs the code through the compiler's parser,
3831 # not just through cpp. "Syntax error" is here to catch this case.
3832 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3833 /* end confdefs.h. */
3835 # include <limits.h>
3837 # include <assert.h>
3841 if ac_fn_c_try_cpp "$LINENO"; then :
3844 # Broken: fails on valid input.
3847 rm -f conftest.err conftest.i conftest.$ac_ext
3849 # OK, works on sane cases. Now check whether nonexistent headers
3850 # can be detected and how.
3851 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3852 /* end confdefs.h. */
3853 #include <ac_nonexistent.h>
3855 if ac_fn_c_try_cpp "$LINENO"; then :
3856 # Broken: success on invalid input.
3859 # Passes both tests.
3863 rm -f conftest.err conftest.i conftest.$ac_ext
3866 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3867 rm -f conftest.i conftest.err conftest.$ac_ext
3868 if $ac_preproc_ok; then :
3880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
3881 $as_echo "$CPP" >&6; }
3883 for ac_c_preproc_warn_flag in '' yes
3885 # Use a header file that comes with gcc, so configuring glibc
3886 # with a fresh cross-compiler works.
3887 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3888 # <limits.h> exists even on freestanding compilers.
3889 # On the NeXT, cc -E runs the code through the compiler's parser,
3890 # not just through cpp. "Syntax error" is here to catch this case.
3891 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3892 /* end confdefs.h. */
3894 # include <limits.h>
3896 # include <assert.h>
3900 if ac_fn_c_try_cpp "$LINENO"; then :
3903 # Broken: fails on valid input.
3906 rm -f conftest.err conftest.i conftest.$ac_ext
3908 # OK, works on sane cases. Now check whether nonexistent headers
3909 # can be detected and how.
3910 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3911 /* end confdefs.h. */
3912 #include <ac_nonexistent.h>
3914 if ac_fn_c_try_cpp "$LINENO"; then :
3915 # Broken: success on invalid input.
3918 # Passes both tests.
3922 rm -f conftest.err conftest.i conftest.$ac_ext
3925 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3926 rm -f conftest.i conftest.err conftest.$ac_ext
3927 if $ac_preproc_ok; then :
3930 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3931 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3932 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
3933 See \`config.log' for more details" "$LINENO" 5; }
3937 ac_cpp='$CPP $CPPFLAGS'
3938 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3939 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3940 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3943 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
3944 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3945 if ${ac_cv_path_GREP+:} false; then :
3946 $as_echo_n "(cached) " >&6
3948 if test -z "$GREP"; then
3949 ac_path_GREP_found=false
3950 # Loop through the user's path and test for each of PROGNAME-LIST
3951 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3952 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3955 test -z "$as_dir" && as_dir=.
3956 for ac_prog in grep ggrep; do
3957 for ac_exec_ext in '' $ac_executable_extensions; do
3958 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3959 as_fn_executable_p "$ac_path_GREP" || continue
3960 # Check for GNU ac_path_GREP and select it if it is found.
3961 # Check for GNU $ac_path_GREP
3962 case `"$ac_path_GREP" --version 2>&1` in
3964 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3967 $as_echo_n 0123456789 >"conftest.in"
3970 cat "conftest.in" "conftest.in" >"conftest.tmp"
3971 mv "conftest.tmp" "conftest.in"
3972 cp "conftest.in" "conftest.nl"
3973 $as_echo 'GREP' >> "conftest.nl"
3974 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3975 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3976 as_fn_arith $ac_count + 1 && ac_count=$as_val
3977 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3978 # Best one so far, save it but keep looking for a better one
3979 ac_cv_path_GREP="$ac_path_GREP"
3980 ac_path_GREP_max=$ac_count
3982 # 10*(2^10) chars as input seems more than enough
3983 test $ac_count -gt 10 && break
3985 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3988 $ac_path_GREP_found && break 3
3993 if test -z "$ac_cv_path_GREP"; then
3994 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3997 ac_cv_path_GREP=$GREP
4001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4002 $as_echo "$ac_cv_path_GREP" >&6; }
4003 GREP="$ac_cv_path_GREP"
4006 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4007 $as_echo_n "checking for egrep... " >&6; }
4008 if ${ac_cv_path_EGREP+:} false; then :
4009 $as_echo_n "(cached) " >&6
4011 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4012 then ac_cv_path_EGREP="$GREP -E"
4014 if test -z "$EGREP"; then
4015 ac_path_EGREP_found=false
4016 # Loop through the user's path and test for each of PROGNAME-LIST
4017 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4018 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4021 test -z "$as_dir" && as_dir=.
4022 for ac_prog in egrep; do
4023 for ac_exec_ext in '' $ac_executable_extensions; do
4024 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4025 as_fn_executable_p "$ac_path_EGREP" || continue
4026 # Check for GNU ac_path_EGREP and select it if it is found.
4027 # Check for GNU $ac_path_EGREP
4028 case `"$ac_path_EGREP" --version 2>&1` in
4030 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4033 $as_echo_n 0123456789 >"conftest.in"
4036 cat "conftest.in" "conftest.in" >"conftest.tmp"
4037 mv "conftest.tmp" "conftest.in"
4038 cp "conftest.in" "conftest.nl"
4039 $as_echo 'EGREP' >> "conftest.nl"
4040 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4041 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4042 as_fn_arith $ac_count + 1 && ac_count=$as_val
4043 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4044 # Best one so far, save it but keep looking for a better one
4045 ac_cv_path_EGREP="$ac_path_EGREP"
4046 ac_path_EGREP_max=$ac_count
4048 # 10*(2^10) chars as input seems more than enough
4049 test $ac_count -gt 10 && break
4051 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4054 $ac_path_EGREP_found && break 3
4059 if test -z "$ac_cv_path_EGREP"; then
4060 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4063 ac_cv_path_EGREP=$EGREP
4068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4069 $as_echo "$ac_cv_path_EGREP" >&6; }
4070 EGREP="$ac_cv_path_EGREP"
4073 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4074 $as_echo_n "checking for ANSI C header files... " >&6; }
4075 if ${ac_cv_header_stdc+:} false; then :
4076 $as_echo_n "(cached) " >&6
4078 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4079 /* end confdefs.h. */
4093 if ac_fn_c_try_compile "$LINENO"; then :
4094 ac_cv_header_stdc=yes
4096 ac_cv_header_stdc=no
4098 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4100 if test $ac_cv_header_stdc = yes; then
4101 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4102 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4103 /* end confdefs.h. */
4107 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4108 $EGREP "memchr" >/dev/null 2>&1; then :
4111 ac_cv_header_stdc=no
4117 if test $ac_cv_header_stdc = yes; then
4118 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4119 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4120 /* end confdefs.h. */
4124 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4125 $EGREP "free" >/dev/null 2>&1; then :
4128 ac_cv_header_stdc=no
4134 if test $ac_cv_header_stdc = yes; then
4135 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4136 if test "$cross_compiling" = yes; then :
4139 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4140 /* end confdefs.h. */
4143 #if ((' ' & 0x0FF) == 0x020)
4144 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4145 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4147 # define ISLOWER(c) \
4148 (('a' <= (c) && (c) <= 'i') \
4149 || ('j' <= (c) && (c) <= 'r') \
4150 || ('s' <= (c) && (c) <= 'z'))
4151 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4154 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4159 for (i = 0; i < 256; i++)
4160 if (XOR (islower (i), ISLOWER (i))
4161 || toupper (i) != TOUPPER (i))
4166 if ac_fn_c_try_run "$LINENO"; then :
4169 ac_cv_header_stdc=no
4171 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4172 conftest.$ac_objext conftest.beam conftest.$ac_ext
4177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4178 $as_echo "$ac_cv_header_stdc" >&6; }
4179 if test $ac_cv_header_stdc = yes; then
4181 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
4185 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4186 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4187 inttypes.h stdint.h unistd.h
4189 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4190 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4192 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4193 cat >>confdefs.h <<_ACEOF
4194 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4203 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
4204 if test "x$ac_cv_header_minix_config_h" = xyes; then :
4211 if test "$MINIX" = yes; then
4213 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
4216 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
4219 $as_echo "#define _MINIX 1" >>confdefs.h
4224 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
4225 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
4226 if ${ac_cv_safe_to_define___extensions__+:} false; then :
4227 $as_echo_n "(cached) " >&6
4229 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4230 /* end confdefs.h. */
4232 # define __EXTENSIONS__ 1
4233 $ac_includes_default
4242 if ac_fn_c_try_compile "$LINENO"; then :
4243 ac_cv_safe_to_define___extensions__=yes
4245 ac_cv_safe_to_define___extensions__=no
4247 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
4250 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
4251 test $ac_cv_safe_to_define___extensions__ = yes &&
4252 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
4254 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
4256 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
4258 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
4260 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
4264 ac_cpp='$CPP $CPPFLAGS'
4265 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4266 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4267 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4268 if test -n "$ac_tool_prefix"; then
4269 for ac_prog in gcc cc
4271 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4272 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4273 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4274 $as_echo_n "checking for $ac_word... " >&6; }
4275 if ${ac_cv_prog_CC+:} false; then :
4276 $as_echo_n "(cached) " >&6
4278 if test -n "$CC"; then
4279 ac_cv_prog_CC="$CC" # Let the user override the test.
4281 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4285 test -z "$as_dir" && as_dir=.
4286 for ac_exec_ext in '' $ac_executable_extensions; do
4287 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4288 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4289 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4299 if test -n "$CC"; then
4300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4301 $as_echo "$CC" >&6; }
4303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4304 $as_echo "no" >&6; }
4308 test -n "$CC" && break
4311 if test -z "$CC"; then
4313 for ac_prog in gcc cc
4315 # Extract the first word of "$ac_prog", so it can be a program name with args.
4316 set dummy $ac_prog; ac_word=$2
4317 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4318 $as_echo_n "checking for $ac_word... " >&6; }
4319 if ${ac_cv_prog_ac_ct_CC+:} false; then :
4320 $as_echo_n "(cached) " >&6
4322 if test -n "$ac_ct_CC"; then
4323 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4325 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4329 test -z "$as_dir" && as_dir=.
4330 for ac_exec_ext in '' $ac_executable_extensions; do
4331 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4332 ac_cv_prog_ac_ct_CC="$ac_prog"
4333 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4342 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4343 if test -n "$ac_ct_CC"; then
4344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4345 $as_echo "$ac_ct_CC" >&6; }
4347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4348 $as_echo "no" >&6; }
4352 test -n "$ac_ct_CC" && break
4355 if test "x$ac_ct_CC" = x; then
4358 case $cross_compiling:$ac_tool_warned in
4360 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4361 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4362 ac_tool_warned=yes ;;
4369 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4370 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4371 as_fn_error $? "no acceptable C compiler found in \$PATH
4372 See \`config.log' for more details" "$LINENO" 5; }
4374 # Provide some information about the compiler.
4375 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4378 for ac_option in --version -v -V -qversion; do
4379 { { ac_try="$ac_compiler $ac_option >&5"
4381 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4382 *) ac_try_echo=$ac_try;;
4384 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4385 $as_echo "$ac_try_echo"; } >&5
4386 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4388 if test -s conftest.err; then
4390 ... rest of stderr output deleted ...
4391 10q' conftest.err >conftest.er1
4392 cat conftest.er1 >&5
4394 rm -f conftest.er1 conftest.err
4395 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4396 test $ac_status = 0; }
4399 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4400 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4401 if ${ac_cv_c_compiler_gnu+:} false; then :
4402 $as_echo_n "(cached) " >&6
4404 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4405 /* end confdefs.h. */
4418 if ac_fn_c_try_compile "$LINENO"; then :
4423 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4424 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4428 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4429 if test $ac_compiler_gnu = yes; then
4434 ac_test_CFLAGS=${CFLAGS+set}
4435 ac_save_CFLAGS=$CFLAGS
4436 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4437 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4438 if ${ac_cv_prog_cc_g+:} false; then :
4439 $as_echo_n "(cached) " >&6
4441 ac_save_c_werror_flag=$ac_c_werror_flag
4442 ac_c_werror_flag=yes
4445 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4446 /* end confdefs.h. */
4456 if ac_fn_c_try_compile "$LINENO"; then :
4460 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4461 /* end confdefs.h. */
4471 if ac_fn_c_try_compile "$LINENO"; then :
4474 ac_c_werror_flag=$ac_save_c_werror_flag
4476 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4477 /* end confdefs.h. */
4487 if ac_fn_c_try_compile "$LINENO"; then :
4490 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4492 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4494 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4495 ac_c_werror_flag=$ac_save_c_werror_flag
4497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4498 $as_echo "$ac_cv_prog_cc_g" >&6; }
4499 if test "$ac_test_CFLAGS" = set; then
4500 CFLAGS=$ac_save_CFLAGS
4501 elif test $ac_cv_prog_cc_g = yes; then
4502 if test "$GCC" = yes; then
4508 if test "$GCC" = yes; then
4514 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4515 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4516 if ${ac_cv_prog_cc_c89+:} false; then :
4517 $as_echo_n "(cached) " >&6
4519 ac_cv_prog_cc_c89=no
4521 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4522 /* end confdefs.h. */
4526 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4527 struct buf { int x; };
4528 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4529 static char *e (p, i)
4535 static char *f (char * (*g) (char **, int), char **p, ...)
4540 s = g (p, va_arg (v,int));
4545 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4546 function prototypes and stuff, but not '\xHH' hex character constants.
4547 These don't provoke an error unfortunately, instead are silently treated
4548 as 'x'. The following induces an error, until -std is added to get
4549 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4550 array size at least. It's necessary to write '\x00'==0 to get something
4551 that's true only with -std. */
4552 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4554 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4555 inside strings and character constants. */
4557 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4559 int test (int i, double x);
4560 struct s1 {int (*f) (int a);};
4561 struct s2 {int (*f) (double a);};
4562 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4568 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4573 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4574 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4576 CC="$ac_save_CC $ac_arg"
4577 if ac_fn_c_try_compile "$LINENO"; then :
4578 ac_cv_prog_cc_c89=$ac_arg
4580 rm -f core conftest.err conftest.$ac_objext
4581 test "x$ac_cv_prog_cc_c89" != "xno" && break
4583 rm -f conftest.$ac_ext
4588 case "x$ac_cv_prog_cc_c89" in
4590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4591 $as_echo "none needed" >&6; } ;;
4593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4594 $as_echo "unsupported" >&6; } ;;
4596 CC="$CC $ac_cv_prog_cc_c89"
4597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4598 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4600 if test "x$ac_cv_prog_cc_c89" != xno; then :
4605 ac_cpp='$CPP $CPPFLAGS'
4606 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4607 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4608 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4610 depcc="$CC" am_compiler_list=
4612 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4613 $as_echo_n "checking dependency style of $depcc... " >&6; }
4614 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
4615 $as_echo_n "(cached) " >&6
4617 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4618 # We make a subdir and do the tests there. Otherwise we can end up
4619 # making bogus files that we don't know about and never remove. For
4620 # instance it was reported that on HP-UX the gcc test will end up
4621 # making a dummy file named 'D' -- because '-MD' means "put the output
4625 # Copy depcomp to subdir because otherwise we won't find it if we're
4626 # using a relative directory.
4627 cp "$am_depcomp" conftest.dir
4629 # We will build objects and dependencies in a subdirectory because
4630 # it helps to detect inapplicable dependency modes. For instance
4631 # both Tru64's cc and ICC support -MD to output dependencies as a
4632 # side effect of compilation, but ICC will put the dependencies in
4633 # the current directory while Tru64 will put them in the object
4637 am_cv_CC_dependencies_compiler_type=none
4638 if test "$am_compiler_list" = ""; then
4639 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4642 case " $depcc " in #(
4643 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4646 for depmode in $am_compiler_list; do
4647 # Setup a source with many dependencies, because some compilers
4648 # like to wrap large dependency lists on column 80 (with \), and
4649 # we should not choose a depcomp mode which is confused by this.
4651 # We need to recreate these files for each test, as the compiler may
4652 # overwrite some of them when testing with obscure command lines.
4653 # This happens at least with the AIX C compiler.
4655 for i in 1 2 3 4 5 6; do
4656 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4657 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4658 # Solaris 10 /bin/sh.
4659 echo '/* dummy */' > sub/conftst$i.h
4661 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4663 # We check with '-c' and '-o' for the sake of the "dashmstdout"
4664 # mode. It turns out that the SunPro C++ compiler does not properly
4665 # handle '-M -o', and we need to detect this. Also, some Intel
4666 # versions had trouble with output in subdirs.
4667 am__obj=sub/conftest.${OBJEXT-o}
4668 am__minus_obj="-o $am__obj"
4671 # This depmode causes a compiler race in universal mode.
4672 test "$am__universal" = false || continue
4675 # After this tag, mechanisms are not by side-effect, so they'll
4676 # only be used when explicitly requested.
4677 if test "x$enable_dependency_tracking" = xyes; then
4683 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4684 # This compiler won't grok '-c -o', but also, the minuso test has
4685 # not run yet. These depmodes are late enough in the game, and
4686 # so weak that their functioning should not be impacted.
4687 am__obj=conftest.${OBJEXT-o}
4692 if depmode=$depmode \
4693 source=sub/conftest.c object=$am__obj \
4694 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4695 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4696 >/dev/null 2>conftest.err &&
4697 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4698 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4699 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4700 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4701 # icc doesn't choke on unknown options, it will just issue warnings
4702 # or remarks (even with -Werror). So we grep stderr for any message
4703 # that says an option was ignored or not supported.
4704 # When given -MP, icc 7.0 and 7.1 complain thusly:
4705 # icc: Command line warning: ignoring option '-M'; no argument required
4706 # The diagnosis changed in icc 8.0:
4707 # icc: Command line remark: option '-MP' not supported
4708 if (grep 'ignoring option' conftest.err ||
4709 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4710 am_cv_CC_dependencies_compiler_type=$depmode
4719 am_cv_CC_dependencies_compiler_type=none
4723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4724 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4725 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4728 test "x$enable_dependency_tracking" != xno \
4729 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4731 am__fastdepCC_FALSE='#'
4733 am__fastdepCC_TRUE='#'
4734 am__fastdepCC_FALSE=
4738 if test "x$CC" != xcc; then
4739 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
4740 $as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
4742 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
4743 $as_echo_n "checking whether cc understands -c and -o together... " >&6; }
4745 set dummy $CC; ac_cc=`$as_echo "$2" |
4746 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
4747 if eval \${ac_cv_prog_cc_${ac_cc}_c_o+:} false; then :
4748 $as_echo_n "(cached) " >&6
4750 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4751 /* end confdefs.h. */
4761 # Make sure it works both with $CC and with simple cc.
4762 # We do the test twice because some compilers refuse to overwrite an
4763 # existing .o file with -o, though they will create one.
4764 ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
4766 if { { case "(($ac_try" in
4767 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4768 *) ac_try_echo=$ac_try;;
4770 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4771 $as_echo "$ac_try_echo"; } >&5
4772 (eval "$ac_try") 2>&5
4774 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4775 test $ac_status = 0; } &&
4776 test -f conftest2.$ac_objext && { { case "(($ac_try" in
4777 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4778 *) ac_try_echo=$ac_try;;
4780 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4781 $as_echo "$ac_try_echo"; } >&5
4782 (eval "$ac_try") 2>&5
4784 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4785 test $ac_status = 0; };
4787 eval ac_cv_prog_cc_${ac_cc}_c_o=yes
4788 if test "x$CC" != xcc; then
4789 # Test first that cc exists at all.
4790 if { ac_try='cc -c conftest.$ac_ext >&5'
4791 { { case "(($ac_try" in
4792 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4793 *) ac_try_echo=$ac_try;;
4795 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4796 $as_echo "$ac_try_echo"; } >&5
4797 (eval "$ac_try") 2>&5
4799 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4800 test $ac_status = 0; }; }; then
4801 ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
4803 if { { case "(($ac_try" in
4804 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4805 *) ac_try_echo=$ac_try;;
4807 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4808 $as_echo "$ac_try_echo"; } >&5
4809 (eval "$ac_try") 2>&5
4811 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4812 test $ac_status = 0; } &&
4813 test -f conftest2.$ac_objext && { { case "(($ac_try" in
4814 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4815 *) ac_try_echo=$ac_try;;
4817 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4818 $as_echo "$ac_try_echo"; } >&5
4819 (eval "$ac_try") 2>&5
4821 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4822 test $ac_status = 0; };
4827 # cc exists but doesn't like -o.
4828 eval ac_cv_prog_cc_${ac_cc}_c_o=no
4833 eval ac_cv_prog_cc_${ac_cc}_c_o=no
4835 rm -f core conftest*
4838 if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
4839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4840 $as_echo "yes" >&6; }
4842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4843 $as_echo "no" >&6; }
4845 $as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h
4850 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
4851 $as_echo_n "checking whether ln -s works... " >&6; }
4853 if test "$LN_S" = "ln -s"; then
4854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4855 $as_echo "yes" >&6; }
4857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
4858 $as_echo "no, using $LN_S" >&6; }
4862 if test -n "$ac_tool_prefix"; then
4863 for ac_prog in ar lib "link -lib"
4865 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4866 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4867 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4868 $as_echo_n "checking for $ac_word... " >&6; }
4869 if ${ac_cv_prog_AR+:} false; then :
4870 $as_echo_n "(cached) " >&6
4872 if test -n "$AR"; then
4873 ac_cv_prog_AR="$AR" # Let the user override the test.
4875 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4879 test -z "$as_dir" && as_dir=.
4880 for ac_exec_ext in '' $ac_executable_extensions; do
4881 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4882 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
4883 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4893 if test -n "$AR"; then
4894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
4895 $as_echo "$AR" >&6; }
4897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4898 $as_echo "no" >&6; }
4902 test -n "$AR" && break
4905 if test -z "$AR"; then
4907 for ac_prog in ar lib "link -lib"
4909 # Extract the first word of "$ac_prog", so it can be a program name with args.
4910 set dummy $ac_prog; ac_word=$2
4911 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4912 $as_echo_n "checking for $ac_word... " >&6; }
4913 if ${ac_cv_prog_ac_ct_AR+:} false; then :
4914 $as_echo_n "(cached) " >&6
4916 if test -n "$ac_ct_AR"; then
4917 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
4919 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4923 test -z "$as_dir" && as_dir=.
4924 for ac_exec_ext in '' $ac_executable_extensions; do
4925 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4926 ac_cv_prog_ac_ct_AR="$ac_prog"
4927 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4936 ac_ct_AR=$ac_cv_prog_ac_ct_AR
4937 if test -n "$ac_ct_AR"; then
4938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
4939 $as_echo "$ac_ct_AR" >&6; }
4941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4942 $as_echo "no" >&6; }
4946 test -n "$ac_ct_AR" && break
4949 if test "x$ac_ct_AR" = x; then
4952 case $cross_compiling:$ac_tool_warned in
4954 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4955 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4956 ac_tool_warned=yes ;;
4964 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the archiver ($AR) interface" >&5
4965 $as_echo_n "checking the archiver ($AR) interface... " >&6; }
4966 if ${am_cv_ar_interface+:} false; then :
4967 $as_echo_n "(cached) " >&6
4969 am_cv_ar_interface=ar
4970 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4971 /* end confdefs.h. */
4972 int some_variable = 0;
4974 if ac_fn_c_try_compile "$LINENO"; then :
4975 am_ar_try='$AR cru libconftest.a conftest.$ac_objext >&5'
4976 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$am_ar_try\""; } >&5
4977 (eval $am_ar_try) 2>&5
4979 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4980 test $ac_status = 0; }
4981 if test "$ac_status" -eq 0; then
4982 am_cv_ar_interface=ar
4984 am_ar_try='$AR -NOLOGO -OUT:conftest.lib conftest.$ac_objext >&5'
4985 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$am_ar_try\""; } >&5
4986 (eval $am_ar_try) 2>&5
4988 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4989 test $ac_status = 0; }
4990 if test "$ac_status" -eq 0; then
4991 am_cv_ar_interface=lib
4993 am_cv_ar_interface=unknown
4996 rm -f conftest.lib libconftest.a
4999 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_ar_interface" >&5
5003 $as_echo "$am_cv_ar_interface" >&6; }
5005 case $am_cv_ar_interface in
5009 # Microsoft lib, so override with the ar-lib wrapper script.
5010 # FIXME: It is wrong to rewrite AR.
5011 # But if we don't then we get into trouble of one sort or another.
5012 # A longer-term fix would be to have automake use am__AR in this case,
5013 # and then we could set am__AR="$am_aux_dir/ar-lib \$(AR)" or something
5015 AR="$am_aux_dir/ar-lib $AR"
5018 as_fn_error $? "could not determine $AR interface" "$LINENO" 5
5022 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if malloc debugging is wanted" >&5
5023 $as_echo_n "checking if malloc debugging is wanted... " >&6; }
5025 # Check whether --with-dmalloc was given.
5026 if test "${with_dmalloc+set}" = set; then :
5027 withval=$with_dmalloc; if test "$withval" = yes; then
5028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5029 $as_echo "yes" >&6; }
5031 $as_echo "#define WITH_DMALLOC 1" >>confdefs.h
5033 LIBS="$LIBS -ldmalloc"
5034 LDFLAGS="$LDFLAGS -g"
5036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5037 $as_echo "no" >&6; }
5040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5041 $as_echo "no" >&6; }
5046 # Check whether --with-doxygen was given.
5047 if test "${with_doxygen+set}" = set; then :
5048 withval=$with_doxygen; if test "x$withval" = xyes; then
5049 with_doxygen=doxygen
5051 with_doxygen="${withval-doxygen}"
5054 with_doxygen=doxygen
5058 # Check whether --with-dot was given.
5059 if test "${with_dot+set}" = set; then :
5060 withval=$with_dot; if test "x$withval" = xyes; then
5063 with_dot="${withval-dot}"
5069 # Check whether --enable-html-docs was given.
5070 if test "${enable_html_docs+set}" = set; then :
5071 enableval=$enable_html_docs;
5073 enable_html_docs=yes
5076 # Check whether --enable-latex-docs was given.
5077 if test "${enable_latex_docs+set}" = set; then :
5078 enableval=$enable_latex_docs;
5080 enable_latex_docs=no
5084 if test "x$with_doxygen" = xno; then
5087 # Extract the first word of "$with_doxygen", so it can be a program name with args.
5088 set dummy $with_doxygen; ac_word=$2
5089 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5090 $as_echo_n "checking for $ac_word... " >&6; }
5091 if ${ac_cv_path_DOXYGEN+:} false; then :
5092 $as_echo_n "(cached) " >&6
5096 ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path.
5099 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5103 test -z "$as_dir" && as_dir=.
5104 for ac_exec_ext in '' $ac_executable_extensions; do
5105 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5106 ac_cv_path_DOXYGEN="$as_dir/$ac_word$ac_exec_ext"
5107 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5117 DOXYGEN=$ac_cv_path_DOXYGEN
5118 if test -n "$DOXYGEN"; then
5119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DOXYGEN" >&5
5120 $as_echo "$DOXYGEN" >&6; }
5122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5123 $as_echo "no" >&6; }
5127 if test x$DOXYGEN = x; then
5128 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: could not find doxygen" >&5
5129 $as_echo "$as_me: WARNING: could not find doxygen" >&2;}
5136 if test x$enable_doc = xyes; then
5145 if test "x$with_dot" = xno; then
5148 # Extract the first word of "$with_dot", so it can be a program name with args.
5149 set dummy $with_dot; ac_word=$2
5150 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5151 $as_echo_n "checking for $ac_word... " >&6; }
5152 if ${ac_cv_path_DOT+:} false; then :
5153 $as_echo_n "(cached) " >&6
5157 ac_cv_path_DOT="$DOT" # Let the user override the test with a path.
5160 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5164 test -z "$as_dir" && as_dir=.
5165 for ac_exec_ext in '' $ac_executable_extensions; do
5166 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5167 ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext"
5168 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5179 if test -n "$DOT"; then
5180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DOT" >&5
5181 $as_echo "$DOT" >&6; }
5183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5184 $as_echo "no" >&6; }
5188 if test x$DOT = x; then
5189 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: could not find dot" >&5
5190 $as_echo "$as_me: WARNING: could not find dot" >&2;}
5194 DOT_PATH=`dirname $DOT`
5203 # Check whether --enable-coverage was given.
5204 if test "${enable_coverage+set}" = set; then :
5205 enableval=$enable_coverage; if test ${enableval-yes} = yes; then
5206 COVERAGEFLAGS="-fprofile-arcs -ftest-coverage"
5211 # Check whether --enable-japanese-doc was given.
5212 if test "${enable_japanese_doc+set}" = set; then :
5213 enableval=$enable_japanese_doc; case "${enableval}" in
5214 yes) enable_jadoc=yes;;
5215 no) enable_jadoc=no;;
5216 *) enable_jadoc=no;;
5222 if test x$enable_jadoc = xyes; then
5224 ENABLE_JADOC_FALSE='#'
5226 ENABLE_JADOC_TRUE='#'
5231 #AC_REQUIRE(AC_CANONICAL_HOST)
5235 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
5236 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
5241 macro_version='2.2.8'
5242 macro_revision='1.3169'
5256 ltmain="$ac_aux_dir/ltmain.sh"
5258 # Make sure we can run config.sub.
5259 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
5260 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
5262 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
5263 $as_echo_n "checking build system type... " >&6; }
5264 if ${ac_cv_build+:} false; then :
5265 $as_echo_n "(cached) " >&6
5267 ac_build_alias=$build_alias
5268 test "x$ac_build_alias" = x &&
5269 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
5270 test "x$ac_build_alias" = x &&
5271 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
5272 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
5273 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
5276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
5277 $as_echo "$ac_cv_build" >&6; }
5278 case $ac_cv_build in
5280 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
5283 ac_save_IFS=$IFS; IFS='-'
5289 # Remember, the first character of IFS is used to create $*,
5290 # except with old shells:
5293 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
5296 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
5297 $as_echo_n "checking host system type... " >&6; }
5298 if ${ac_cv_host+:} false; then :
5299 $as_echo_n "(cached) " >&6
5301 if test "x$host_alias" = x; then
5302 ac_cv_host=$ac_cv_build
5304 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
5305 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
5309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
5310 $as_echo "$ac_cv_host" >&6; }
5313 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
5316 ac_save_IFS=$IFS; IFS='-'
5322 # Remember, the first character of IFS is used to create $*,
5323 # except with old shells:
5326 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
5329 # Backslashify metacharacters that are still active within
5330 # double-quoted strings.
5331 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
5333 # Same as above, but do not quote variable references.
5334 double_quote_subst='s/\(["`\\]\)/\\\1/g'
5336 # Sed substitution to delay expansion of an escaped shell variable in a
5337 # double_quote_subst'ed string.
5338 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5340 # Sed substitution to delay expansion of an escaped single quote.
5341 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
5343 # Sed substitution to avoid accidental globbing in evaled expressions
5344 no_glob_subst='s/\*/\\\*/g'
5346 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
5347 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
5348 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
5350 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
5351 $as_echo_n "checking how to print strings... " >&6; }
5352 # Test print first, because it will be a builtin if present.
5353 if test "X`print -r -- -n 2>/dev/null`" = X-n && \
5354 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
5356 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
5359 # Use this function as a fallback that always works.
5360 func_fallback_echo ()
5362 eval 'cat <<_LTECHO_EOF
5366 ECHO='func_fallback_echo'
5369 # func_echo_all arg...
5370 # Invoke $ECHO with all args, space-separated.
5377 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
5378 $as_echo "printf" >&6; } ;;
5379 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
5380 $as_echo "print -r" >&6; } ;;
5381 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
5382 $as_echo "cat" >&6; } ;;
5398 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
5399 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
5400 if ${ac_cv_path_SED+:} false; then :
5401 $as_echo_n "(cached) " >&6
5403 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
5404 for ac_i in 1 2 3 4 5 6 7; do
5405 ac_script="$ac_script$as_nl$ac_script"
5407 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
5408 { ac_script=; unset ac_script;}
5409 if test -z "$SED"; then
5410 ac_path_SED_found=false
5411 # Loop through the user's path and test for each of PROGNAME-LIST
5412 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5416 test -z "$as_dir" && as_dir=.
5417 for ac_prog in sed gsed; do
5418 for ac_exec_ext in '' $ac_executable_extensions; do
5419 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
5420 as_fn_executable_p "$ac_path_SED" || continue
5421 # Check for GNU ac_path_SED and select it if it is found.
5422 # Check for GNU $ac_path_SED
5423 case `"$ac_path_SED" --version 2>&1` in
5425 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
5428 $as_echo_n 0123456789 >"conftest.in"
5431 cat "conftest.in" "conftest.in" >"conftest.tmp"
5432 mv "conftest.tmp" "conftest.in"
5433 cp "conftest.in" "conftest.nl"
5434 $as_echo '' >> "conftest.nl"
5435 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
5436 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5437 as_fn_arith $ac_count + 1 && ac_count=$as_val
5438 if test $ac_count -gt ${ac_path_SED_max-0}; then
5439 # Best one so far, save it but keep looking for a better one
5440 ac_cv_path_SED="$ac_path_SED"
5441 ac_path_SED_max=$ac_count
5443 # 10*(2^10) chars as input seems more than enough
5444 test $ac_count -gt 10 && break
5446 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5449 $ac_path_SED_found && break 3
5454 if test -z "$ac_cv_path_SED"; then
5455 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
5462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
5463 $as_echo "$ac_cv_path_SED" >&6; }
5464 SED="$ac_cv_path_SED"
5467 test -z "$SED" && SED=sed
5468 Xsed="$SED -e 1s/^X//"
5480 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
5481 $as_echo_n "checking for fgrep... " >&6; }
5482 if ${ac_cv_path_FGREP+:} false; then :
5483 $as_echo_n "(cached) " >&6
5485 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
5486 then ac_cv_path_FGREP="$GREP -F"
5488 if test -z "$FGREP"; then
5489 ac_path_FGREP_found=false
5490 # Loop through the user's path and test for each of PROGNAME-LIST
5491 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5492 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5495 test -z "$as_dir" && as_dir=.
5496 for ac_prog in fgrep; do
5497 for ac_exec_ext in '' $ac_executable_extensions; do
5498 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
5499 as_fn_executable_p "$ac_path_FGREP" || continue
5500 # Check for GNU ac_path_FGREP and select it if it is found.
5501 # Check for GNU $ac_path_FGREP
5502 case `"$ac_path_FGREP" --version 2>&1` in
5504 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
5507 $as_echo_n 0123456789 >"conftest.in"
5510 cat "conftest.in" "conftest.in" >"conftest.tmp"
5511 mv "conftest.tmp" "conftest.in"
5512 cp "conftest.in" "conftest.nl"
5513 $as_echo 'FGREP' >> "conftest.nl"
5514 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
5515 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5516 as_fn_arith $ac_count + 1 && ac_count=$as_val
5517 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5518 # Best one so far, save it but keep looking for a better one
5519 ac_cv_path_FGREP="$ac_path_FGREP"
5520 ac_path_FGREP_max=$ac_count
5522 # 10*(2^10) chars as input seems more than enough
5523 test $ac_count -gt 10 && break
5525 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5528 $ac_path_FGREP_found && break 3
5533 if test -z "$ac_cv_path_FGREP"; then
5534 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5537 ac_cv_path_FGREP=$FGREP
5542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
5543 $as_echo "$ac_cv_path_FGREP" >&6; }
5544 FGREP="$ac_cv_path_FGREP"
5547 test -z "$GREP" && GREP=grep
5567 # Check whether --with-gnu-ld was given.
5568 if test "${with_gnu_ld+set}" = set; then :
5569 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
5575 if test "$GCC" = yes; then
5576 # Check if gcc -print-prog-name=ld gives a path.
5577 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5578 $as_echo_n "checking for ld used by $CC... " >&6; }
5581 # gcc leaves a trailing carriage return which upsets mingw
5582 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5584 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5587 # Accept absolute paths.
5589 re_direlt='/[^/][^/]*/\.\./'
5590 # Canonicalize the pathname of ld
5591 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5592 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5593 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5595 test -z "$LD" && LD="$ac_prog"
5598 # If it fails, then pretend we aren't using GCC.
5602 # If it is relative, then search for the first ld in PATH.
5606 elif test "$with_gnu_ld" = yes; then
5607 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5608 $as_echo_n "checking for GNU ld... " >&6; }
5610 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5611 $as_echo_n "checking for non-GNU ld... " >&6; }
5613 if ${lt_cv_path_LD+:} false; then :
5614 $as_echo_n "(cached) " >&6
5616 if test -z "$LD"; then
5617 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5618 for ac_dir in $PATH; do
5620 test -z "$ac_dir" && ac_dir=.
5621 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5622 lt_cv_path_LD="$ac_dir/$ac_prog"
5623 # Check to see if the program is GNU ld. I'd rather use --version,
5624 # but apparently some variants of GNU ld only accept -v.
5625 # Break only if it was the GNU/non-GNU ld that we prefer.
5626 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5627 *GNU* | *'with BFD'*)
5628 test "$with_gnu_ld" != no && break
5631 test "$with_gnu_ld" != yes && break
5638 lt_cv_path_LD="$LD" # Let the user override the test with a path.
5643 if test -n "$LD"; then
5644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5645 $as_echo "$LD" >&6; }
5647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5648 $as_echo "no" >&6; }
5650 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
5651 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5652 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
5653 if ${lt_cv_prog_gnu_ld+:} false; then :
5654 $as_echo_n "(cached) " >&6
5656 # I'd rather use --version here, but apparently some GNU lds only accept -v.
5657 case `$LD -v 2>&1 </dev/null` in
5658 *GNU* | *'with BFD'*)
5659 lt_cv_prog_gnu_ld=yes
5662 lt_cv_prog_gnu_ld=no
5666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5667 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
5668 with_gnu_ld=$lt_cv_prog_gnu_ld
5678 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5679 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5680 if ${lt_cv_path_NM+:} false; then :
5681 $as_echo_n "(cached) " >&6
5683 if test -n "$NM"; then
5684 # Let the user override the test.
5687 lt_nm_to_check="${ac_tool_prefix}nm"
5688 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5689 lt_nm_to_check="$lt_nm_to_check nm"
5691 for lt_tmp_nm in $lt_nm_to_check; do
5692 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5693 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5695 test -z "$ac_dir" && ac_dir=.
5696 tmp_nm="$ac_dir/$lt_tmp_nm"
5697 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5698 # Check to see if the nm accepts a BSD-compat flag.
5699 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5700 # nm: unknown option "B" ignored
5701 # Tru64's nm complains that /dev/null is an invalid object file
5702 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5703 */dev/null* | *'Invalid file or object type'*)
5704 lt_cv_path_NM="$tmp_nm -B"
5708 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5710 lt_cv_path_NM="$tmp_nm -p"
5714 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5715 continue # so that we can try to find one that supports BSD flags
5724 : ${lt_cv_path_NM=no}
5727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5728 $as_echo "$lt_cv_path_NM" >&6; }
5729 if test "$lt_cv_path_NM" != "no"; then
5732 # Didn't find any BSD compatible name lister, look for dumpbin.
5733 if test -n "$DUMPBIN"; then :
5734 # Let the user override the test.
5736 if test -n "$ac_tool_prefix"; then
5737 for ac_prog in dumpbin "link -dump"
5739 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5740 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5741 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5742 $as_echo_n "checking for $ac_word... " >&6; }
5743 if ${ac_cv_prog_DUMPBIN+:} false; then :
5744 $as_echo_n "(cached) " >&6
5746 if test -n "$DUMPBIN"; then
5747 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5749 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5753 test -z "$as_dir" && as_dir=.
5754 for ac_exec_ext in '' $ac_executable_extensions; do
5755 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5756 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5757 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5766 DUMPBIN=$ac_cv_prog_DUMPBIN
5767 if test -n "$DUMPBIN"; then
5768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5769 $as_echo "$DUMPBIN" >&6; }
5771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5772 $as_echo "no" >&6; }
5776 test -n "$DUMPBIN" && break
5779 if test -z "$DUMPBIN"; then
5780 ac_ct_DUMPBIN=$DUMPBIN
5781 for ac_prog in dumpbin "link -dump"
5783 # Extract the first word of "$ac_prog", so it can be a program name with args.
5784 set dummy $ac_prog; ac_word=$2
5785 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5786 $as_echo_n "checking for $ac_word... " >&6; }
5787 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
5788 $as_echo_n "(cached) " >&6
5790 if test -n "$ac_ct_DUMPBIN"; then
5791 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5793 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5797 test -z "$as_dir" && as_dir=.
5798 for ac_exec_ext in '' $ac_executable_extensions; do
5799 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5800 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5801 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5810 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5811 if test -n "$ac_ct_DUMPBIN"; then
5812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5813 $as_echo "$ac_ct_DUMPBIN" >&6; }
5815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5816 $as_echo "no" >&6; }
5820 test -n "$ac_ct_DUMPBIN" && break
5823 if test "x$ac_ct_DUMPBIN" = x; then
5826 case $cross_compiling:$ac_tool_warned in
5828 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5829 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5830 ac_tool_warned=yes ;;
5832 DUMPBIN=$ac_ct_DUMPBIN
5836 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
5838 DUMPBIN="$DUMPBIN -symbols"
5846 if test "$DUMPBIN" != ":"; then
5850 test -z "$NM" && NM=nm
5857 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5858 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
5859 if ${lt_cv_nm_interface+:} false; then :
5860 $as_echo_n "(cached) " >&6
5862 lt_cv_nm_interface="BSD nm"
5863 echo "int some_variable = 0;" > conftest.$ac_ext
5864 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
5865 (eval "$ac_compile" 2>conftest.err)
5866 cat conftest.err >&5
5867 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5868 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5869 cat conftest.err >&5
5870 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
5871 cat conftest.out >&5
5872 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5873 lt_cv_nm_interface="MS dumpbin"
5877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5878 $as_echo "$lt_cv_nm_interface" >&6; }
5880 # find the maximum length of command line arguments
5881 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5882 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
5883 if ${lt_cv_sys_max_cmd_len+:} false; then :
5884 $as_echo_n "(cached) " >&6
5891 # On DJGPP, this test can blow up pretty badly due to problems in libc
5892 # (any single argument exceeding 2000 bytes causes a buffer overrun
5893 # during glob expansion). Even if it were fixed, the result of this
5894 # check would be larger than it should be.
5895 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5899 # Under GNU Hurd, this test is not required because there is
5900 # no limit to the length of command line arguments.
5901 # Libtool will interpret -1 as no limit whatsoever
5902 lt_cv_sys_max_cmd_len=-1;
5905 cygwin* | mingw* | cegcc*)
5906 # On Win9x/ME, this test blows up -- it succeeds, but takes
5907 # about 5 minutes as the teststring grows exponentially.
5908 # Worse, since 9x/ME are not pre-emptively multitasking,
5909 # you end up with a "frozen" computer, even though with patience
5910 # the test eventually succeeds (with a max line length of 256k).
5911 # Instead, let's just punt: use the minimum linelength reported by
5912 # all of the supported platforms: 8192 (on NT/2K/XP).
5913 lt_cv_sys_max_cmd_len=8192;
5917 # On MiNT this can take a long time and run out of memory.
5918 lt_cv_sys_max_cmd_len=8192;
5922 # On AmigaOS with pdksh, this test takes hours, literally.
5923 # So we just punt and use a minimum line length of 8192.
5924 lt_cv_sys_max_cmd_len=8192;
5927 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5928 # This has been around since 386BSD, at least. Likely further.
5929 if test -x /sbin/sysctl; then
5930 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5931 elif test -x /usr/sbin/sysctl; then
5932 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5934 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
5936 # And add a safety zone
5937 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5938 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5942 # We know the value 262144 and hardcode it with a safety zone (like BSD)
5943 lt_cv_sys_max_cmd_len=196608
5947 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5948 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5949 # nice to cause kernel panics so lets avoid the loop below.
5950 # First set a reasonable default.
5951 lt_cv_sys_max_cmd_len=16384
5953 if test -x /sbin/sysconfig; then
5954 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5955 *1*) lt_cv_sys_max_cmd_len=-1 ;;
5960 lt_cv_sys_max_cmd_len=102400
5962 sysv5* | sco5v6* | sysv4.2uw2*)
5963 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5964 if test -n "$kargmax"; then
5965 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
5967 lt_cv_sys_max_cmd_len=32768
5971 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5972 if test -n "$lt_cv_sys_max_cmd_len"; then
5973 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5974 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5976 # Make teststring a little bigger before we do anything with it.
5977 # a 1K string should be a reasonable start.
5978 for i in 1 2 3 4 5 6 7 8 ; do
5979 teststring=$teststring$teststring
5981 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5982 # If test is not a shell built-in, we'll probably end up computing a
5983 # maximum length that is only half of the actual maximum length, but
5985 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
5986 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
5987 test $i != 17 # 1/2 MB should be enough
5990 teststring=$teststring$teststring
5992 # Only check the string length outside the loop.
5993 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5995 # Add a significant safety factor because C++ compilers can tack on
5996 # massive amounts of additional arguments before passing them to the
5997 # linker. It appears as though 1/2 is a usable value.
5998 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6005 if test -n $lt_cv_sys_max_cmd_len ; then
6006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
6007 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
6009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
6010 $as_echo "none" >&6; }
6012 max_cmd_len=$lt_cv_sys_max_cmd_len
6023 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
6024 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
6025 # Try some XSI features
6028 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
6030 && eval 'test $(( 1 + 1 )) -eq 2 \
6031 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
6033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
6034 $as_echo "$xsi_shell" >&6; }
6037 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
6038 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
6040 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
6042 && lt_shell_append=yes
6043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
6044 $as_echo "$lt_shell_append" >&6; }
6047 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
6057 # test EBCDIC or ASCII
6058 case `echo X|tr X '\101'` in
6059 A) # ASCII based system
6060 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
6061 lt_SP2NL='tr \040 \012'
6062 lt_NL2SP='tr \015\012 \040\040'
6064 *) # EBCDIC based system
6065 lt_SP2NL='tr \100 \n'
6066 lt_NL2SP='tr \r\n \100\100'
6078 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
6079 $as_echo_n "checking for $LD option to reload object files... " >&6; }
6080 if ${lt_cv_ld_reload_flag+:} false; then :
6081 $as_echo_n "(cached) " >&6
6083 lt_cv_ld_reload_flag='-r'
6085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
6086 $as_echo "$lt_cv_ld_reload_flag" >&6; }
6087 reload_flag=$lt_cv_ld_reload_flag
6088 case $reload_flag in
6090 *) reload_flag=" $reload_flag" ;;
6092 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6095 if test "$GCC" = yes; then
6096 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
6098 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6111 if test -n "$ac_tool_prefix"; then
6112 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
6113 set dummy ${ac_tool_prefix}objdump; ac_word=$2
6114 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6115 $as_echo_n "checking for $ac_word... " >&6; }
6116 if ${ac_cv_prog_OBJDUMP+:} false; then :
6117 $as_echo_n "(cached) " >&6
6119 if test -n "$OBJDUMP"; then
6120 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
6122 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6126 test -z "$as_dir" && as_dir=.
6127 for ac_exec_ext in '' $ac_executable_extensions; do
6128 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6129 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
6130 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6139 OBJDUMP=$ac_cv_prog_OBJDUMP
6140 if test -n "$OBJDUMP"; then
6141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
6142 $as_echo "$OBJDUMP" >&6; }
6144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6145 $as_echo "no" >&6; }
6150 if test -z "$ac_cv_prog_OBJDUMP"; then
6151 ac_ct_OBJDUMP=$OBJDUMP
6152 # Extract the first word of "objdump", so it can be a program name with args.
6153 set dummy objdump; ac_word=$2
6154 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6155 $as_echo_n "checking for $ac_word... " >&6; }
6156 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
6157 $as_echo_n "(cached) " >&6
6159 if test -n "$ac_ct_OBJDUMP"; then
6160 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
6162 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6166 test -z "$as_dir" && as_dir=.
6167 for ac_exec_ext in '' $ac_executable_extensions; do
6168 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6169 ac_cv_prog_ac_ct_OBJDUMP="objdump"
6170 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6179 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6180 if test -n "$ac_ct_OBJDUMP"; then
6181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
6182 $as_echo "$ac_ct_OBJDUMP" >&6; }
6184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6185 $as_echo "no" >&6; }
6188 if test "x$ac_ct_OBJDUMP" = x; then
6191 case $cross_compiling:$ac_tool_warned in
6193 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6194 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6195 ac_tool_warned=yes ;;
6197 OBJDUMP=$ac_ct_OBJDUMP
6200 OBJDUMP="$ac_cv_prog_OBJDUMP"
6203 test -z "$OBJDUMP" && OBJDUMP=objdump
6210 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
6211 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
6212 if ${lt_cv_deplibs_check_method+:} false; then :
6213 $as_echo_n "(cached) " >&6
6215 lt_cv_file_magic_cmd='$MAGIC_CMD'
6216 lt_cv_file_magic_test_file=
6217 lt_cv_deplibs_check_method='unknown'
6218 # Need to set the preceding variable on all platforms that support
6219 # interlibrary dependencies.
6220 # 'none' -- dependencies not supported.
6221 # `unknown' -- same as none, but documents that we really don't know.
6222 # 'pass_all' -- all dependencies passed with no checks.
6223 # 'test_compile' -- check by making test program.
6224 # 'file_magic [[regex]]' -- check by looking for files in library path
6225 # which responds to the $file_magic_cmd with a given extended regex.
6226 # If you have `file' or equivalent on your system and you're not sure
6227 # whether `pass_all' will *always* work, you probably want this one.
6231 lt_cv_deplibs_check_method=pass_all
6235 lt_cv_deplibs_check_method=pass_all
6239 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6240 lt_cv_file_magic_cmd='/usr/bin/file -L'
6241 lt_cv_file_magic_test_file=/shlib/libc.so
6245 # func_win32_libid is a shell function defined in ltmain.sh
6246 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6247 lt_cv_file_magic_cmd='func_win32_libid'
6251 # Base MSYS/MinGW do not provide the 'file' command needed by
6252 # func_win32_libid shell function, so use a weaker test based on 'objdump',
6253 # unless we find 'file', for example because we are cross-compiling.
6254 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
6255 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
6256 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6257 lt_cv_file_magic_cmd='func_win32_libid'
6259 # Keep this pattern in sync with the one in func_win32_libid.
6260 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
6261 lt_cv_file_magic_cmd='$OBJDUMP -f'
6266 # use the weaker test based on 'objdump'. See mingw*.
6267 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
6268 lt_cv_file_magic_cmd='$OBJDUMP -f'
6271 darwin* | rhapsody*)
6272 lt_cv_deplibs_check_method=pass_all
6275 freebsd* | dragonfly*)
6276 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6279 # Not sure whether the presence of OpenBSD here was a mistake.
6280 # Let's accept both of them until this is cleared up.
6281 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6282 lt_cv_file_magic_cmd=/usr/bin/file
6283 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6287 lt_cv_deplibs_check_method=pass_all
6292 lt_cv_deplibs_check_method=pass_all
6296 lt_cv_deplibs_check_method=pass_all
6299 hpux10.20* | hpux11*)
6300 lt_cv_file_magic_cmd=/usr/bin/file
6303 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6304 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6307 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]'
6308 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6311 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
6312 lt_cv_file_magic_test_file=/usr/lib/libc.sl
6318 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6319 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6322 irix5* | irix6* | nonstopux*)
6324 *-32|*"-32 ") libmagic=32-bit;;
6325 *-n32|*"-n32 ") libmagic=N32;;
6326 *-64|*"-64 ") libmagic=64-bit;;
6327 *) libmagic=never-match;;
6329 lt_cv_deplibs_check_method=pass_all
6332 # This must be Linux ELF.
6333 linux* | k*bsd*-gnu | kopensolaris*-gnu)
6334 lt_cv_deplibs_check_method=pass_all
6338 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6339 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6341 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6346 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6347 lt_cv_file_magic_cmd=/usr/bin/file
6348 lt_cv_file_magic_test_file=/usr/lib/libnls.so
6352 lt_cv_deplibs_check_method=pass_all
6356 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6357 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6359 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6363 osf3* | osf4* | osf5*)
6364 lt_cv_deplibs_check_method=pass_all
6368 lt_cv_deplibs_check_method=pass_all
6372 lt_cv_deplibs_check_method=pass_all
6375 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6376 lt_cv_deplibs_check_method=pass_all
6380 case $host_vendor in
6382 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]'
6383 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6386 lt_cv_deplibs_check_method=pass_all
6389 lt_cv_file_magic_cmd='/bin/file'
6390 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6393 lt_cv_file_magic_cmd='/bin/file'
6394 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6395 lt_cv_file_magic_test_file=/lib/libc.so
6398 lt_cv_deplibs_check_method=pass_all
6401 lt_cv_deplibs_check_method=pass_all
6407 lt_cv_deplibs_check_method=pass_all
6412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
6413 $as_echo "$lt_cv_deplibs_check_method" >&6; }
6414 file_magic_cmd=$lt_cv_file_magic_cmd
6415 deplibs_check_method=$lt_cv_deplibs_check_method
6416 test -z "$deplibs_check_method" && deplibs_check_method=unknown
6429 if test -n "$ac_tool_prefix"; then
6430 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6431 set dummy ${ac_tool_prefix}ar; ac_word=$2
6432 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6433 $as_echo_n "checking for $ac_word... " >&6; }
6434 if ${ac_cv_prog_AR+:} false; then :
6435 $as_echo_n "(cached) " >&6
6437 if test -n "$AR"; then
6438 ac_cv_prog_AR="$AR" # Let the user override the test.
6440 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6444 test -z "$as_dir" && as_dir=.
6445 for ac_exec_ext in '' $ac_executable_extensions; do
6446 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6447 ac_cv_prog_AR="${ac_tool_prefix}ar"
6448 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6458 if test -n "$AR"; then
6459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6460 $as_echo "$AR" >&6; }
6462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6463 $as_echo "no" >&6; }
6468 if test -z "$ac_cv_prog_AR"; then
6470 # Extract the first word of "ar", so it can be a program name with args.
6471 set dummy ar; ac_word=$2
6472 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6473 $as_echo_n "checking for $ac_word... " >&6; }
6474 if ${ac_cv_prog_ac_ct_AR+:} false; then :
6475 $as_echo_n "(cached) " >&6
6477 if test -n "$ac_ct_AR"; then
6478 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6480 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6484 test -z "$as_dir" && as_dir=.
6485 for ac_exec_ext in '' $ac_executable_extensions; do
6486 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6487 ac_cv_prog_ac_ct_AR="ar"
6488 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6497 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6498 if test -n "$ac_ct_AR"; then
6499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6500 $as_echo "$ac_ct_AR" >&6; }
6502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6503 $as_echo "no" >&6; }
6506 if test "x$ac_ct_AR" = x; then
6509 case $cross_compiling:$ac_tool_warned in
6511 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6512 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6513 ac_tool_warned=yes ;;
6521 test -z "$AR" && AR=ar
6522 test -z "$AR_FLAGS" && AR_FLAGS=cru
6534 if test -n "$ac_tool_prefix"; then
6535 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6536 set dummy ${ac_tool_prefix}strip; ac_word=$2
6537 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6538 $as_echo_n "checking for $ac_word... " >&6; }
6539 if ${ac_cv_prog_STRIP+:} false; then :
6540 $as_echo_n "(cached) " >&6
6542 if test -n "$STRIP"; then
6543 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6545 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6549 test -z "$as_dir" && as_dir=.
6550 for ac_exec_ext in '' $ac_executable_extensions; do
6551 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6552 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6553 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6562 STRIP=$ac_cv_prog_STRIP
6563 if test -n "$STRIP"; then
6564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6565 $as_echo "$STRIP" >&6; }
6567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6568 $as_echo "no" >&6; }
6573 if test -z "$ac_cv_prog_STRIP"; then
6575 # Extract the first word of "strip", so it can be a program name with args.
6576 set dummy strip; ac_word=$2
6577 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6578 $as_echo_n "checking for $ac_word... " >&6; }
6579 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
6580 $as_echo_n "(cached) " >&6
6582 if test -n "$ac_ct_STRIP"; then
6583 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6585 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6589 test -z "$as_dir" && as_dir=.
6590 for ac_exec_ext in '' $ac_executable_extensions; do
6591 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6592 ac_cv_prog_ac_ct_STRIP="strip"
6593 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6602 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6603 if test -n "$ac_ct_STRIP"; then
6604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6605 $as_echo "$ac_ct_STRIP" >&6; }
6607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6608 $as_echo "no" >&6; }
6611 if test "x$ac_ct_STRIP" = x; then
6614 case $cross_compiling:$ac_tool_warned in
6616 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6617 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6618 ac_tool_warned=yes ;;
6623 STRIP="$ac_cv_prog_STRIP"
6626 test -z "$STRIP" && STRIP=:
6633 if test -n "$ac_tool_prefix"; then
6634 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6635 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6636 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6637 $as_echo_n "checking for $ac_word... " >&6; }
6638 if ${ac_cv_prog_RANLIB+:} false; then :
6639 $as_echo_n "(cached) " >&6
6641 if test -n "$RANLIB"; then
6642 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6644 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6648 test -z "$as_dir" && as_dir=.
6649 for ac_exec_ext in '' $ac_executable_extensions; do
6650 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6651 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6652 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6661 RANLIB=$ac_cv_prog_RANLIB
6662 if test -n "$RANLIB"; then
6663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6664 $as_echo "$RANLIB" >&6; }
6666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6667 $as_echo "no" >&6; }
6672 if test -z "$ac_cv_prog_RANLIB"; then
6673 ac_ct_RANLIB=$RANLIB
6674 # Extract the first word of "ranlib", so it can be a program name with args.
6675 set dummy ranlib; ac_word=$2
6676 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6677 $as_echo_n "checking for $ac_word... " >&6; }
6678 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
6679 $as_echo_n "(cached) " >&6
6681 if test -n "$ac_ct_RANLIB"; then
6682 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6684 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6688 test -z "$as_dir" && as_dir=.
6689 for ac_exec_ext in '' $ac_executable_extensions; do
6690 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6691 ac_cv_prog_ac_ct_RANLIB="ranlib"
6692 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6701 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6702 if test -n "$ac_ct_RANLIB"; then
6703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6704 $as_echo "$ac_ct_RANLIB" >&6; }
6706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6707 $as_echo "no" >&6; }
6710 if test "x$ac_ct_RANLIB" = x; then
6713 case $cross_compiling:$ac_tool_warned in
6715 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6716 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6717 ac_tool_warned=yes ;;
6719 RANLIB=$ac_ct_RANLIB
6722 RANLIB="$ac_cv_prog_RANLIB"
6725 test -z "$RANLIB" && RANLIB=:
6732 # Determine commands to create old-style static archives.
6733 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6734 old_postinstall_cmds='chmod 644 $oldlib'
6735 old_postuninstall_cmds=
6737 if test -n "$RANLIB"; then
6740 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
6743 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
6746 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6751 lock_old_archive_extraction=yes ;;
6753 lock_old_archive_extraction=no ;;
6794 # If no C compiler was specified, use CC.
6797 # If no C compiler flags were specified, use CFLAGS.
6798 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6800 # Allow CC to be a program name with arguments.
6804 # Check for command to grab the raw symbol name followed by C symbol from nm.
6805 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6806 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6807 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
6808 $as_echo_n "(cached) " >&6
6811 # These are sane defaults that work on at least a few old systems.
6812 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
6814 # Character class describing NM global symbol codes.
6815 symcode='[BCDEGRST]'
6817 # Regexp to match symbols that can be accessed directly from C.
6818 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6820 # Define system-specific variables.
6825 cygwin* | mingw* | pw32* | cegcc*)
6826 symcode='[ABCDGISTW]'
6829 if test "$host_cpu" = ia64; then
6830 symcode='[ABCDEGRST]'
6834 symcode='[BCDEGRST]'
6837 symcode='[BCDEGQRST]'
6848 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6856 # If we're using GNU nm, then use its standard symbol codes.
6857 case `$NM -V 2>&1` in
6858 *GNU* | *'with BFD'*)
6859 symcode='[ABCDGIRSTW]' ;;
6862 # Transform an extracted symbol line into a proper C declaration.
6863 # Some systems (esp. on ia64) link data and code symbols differently,
6864 # so use this general approach.
6865 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6867 # Transform an extracted symbol line into symbol name and symbol address
6868 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
6869 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'"
6871 # Handle CRLF in mingw tool chain
6875 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6879 # Try without a prefix underscore, then with it.
6880 for ac_symprfx in "" "_"; do
6882 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6883 symxfrm="\\1 $ac_symprfx\\2 \\2"
6885 # Write the raw and C identifiers.
6886 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6887 # Fake it for dumpbin and say T for any non-static function
6888 # and D for any global variable.
6889 # Also find C++ and __fastcall symbols from MSVC++,
6890 # which start with @ or ?.
6891 lt_cv_sys_global_symbol_pipe="$AWK '"\
6892 " {last_section=section; section=\$ 3};"\
6893 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6894 " \$ 0!~/External *\|/{next};"\
6895 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6896 " {if(hide[section]) next};"\
6897 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
6898 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
6899 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
6900 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
6901 " ' prfx=^$ac_symprfx"
6903 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6906 # Check to see that the pipe works correctly.
6910 cat > conftest.$ac_ext <<_LT_EOF
6915 void nm_test_func(void);
6916 void nm_test_func(void){}
6920 int main(){nm_test_var='a';nm_test_func();return(0);}
6923 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6924 (eval $ac_compile) 2>&5
6926 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6927 test $ac_status = 0; }; then
6928 # Now try to grab the symbols.
6930 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
6931 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
6933 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6934 test $ac_status = 0; } && test -s "$nlist"; then
6935 # Try sorting and uniquifying the output.
6936 if sort "$nlist" | uniq > "$nlist"T; then
6937 mv -f "$nlist"T "$nlist"
6942 # Make sure that we snagged all the symbols we need.
6943 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6944 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6945 cat <<_LT_EOF > conftest.$ac_ext
6951 # Now generate the symbol file.
6952 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6954 cat <<_LT_EOF >> conftest.$ac_ext
6956 /* The mapping between symbol names and symbols. */
6961 lt__PROGRAM__LTX_preloaded_symbols[] =
6963 { "@PROGRAM@", (void *) 0 },
6965 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6966 cat <<\_LT_EOF >> conftest.$ac_ext
6970 /* This works around a problem in FreeBSD linker */
6971 #ifdef FREEBSD_WORKAROUND
6972 static const void *lt_preloaded_setup() {
6973 return lt__PROGRAM__LTX_preloaded_symbols;
6981 # Now try linking the two files.
6982 mv conftest.$ac_objext conftstm.$ac_objext
6983 lt_save_LIBS="$LIBS"
6984 lt_save_CFLAGS="$CFLAGS"
6985 LIBS="conftstm.$ac_objext"
6986 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6987 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6988 (eval $ac_link) 2>&5
6990 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6991 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
6994 LIBS="$lt_save_LIBS"
6995 CFLAGS="$lt_save_CFLAGS"
6997 echo "cannot find nm_test_func in $nlist" >&5
7000 echo "cannot find nm_test_var in $nlist" >&5
7003 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7006 echo "$progname: failed program was:" >&5
7007 cat conftest.$ac_ext >&5
7009 rm -rf conftest* conftst*
7011 # Do not use the global_symbol_pipe unless it works.
7012 if test "$pipe_works" = yes; then
7015 lt_cv_sys_global_symbol_pipe=
7021 if test -z "$lt_cv_sys_global_symbol_pipe"; then
7022 lt_cv_sys_global_symbol_to_cdecl=
7024 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
7026 $as_echo "failed" >&6; }
7028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
7029 $as_echo "ok" >&6; }
7053 # Check whether --enable-libtool-lock was given.
7054 if test "${enable_libtool_lock+set}" = set; then :
7055 enableval=$enable_libtool_lock;
7058 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7060 # Some flags need to be propagated to the compiler or linker for good
7064 # Find out which ABI we are using.
7065 echo 'int i;' > conftest.$ac_ext
7066 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7067 (eval $ac_compile) 2>&5
7069 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7070 test $ac_status = 0; }; then
7071 case `/usr/bin/file conftest.$ac_objext` in
7083 # Find out which ABI we are using.
7084 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
7085 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7086 (eval $ac_compile) 2>&5
7088 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7089 test $ac_status = 0; }; then
7090 if test "$lt_cv_prog_gnu_ld" = yes; then
7091 case `/usr/bin/file conftest.$ac_objext` in
7093 LD="${LD-ld} -melf32bsmip"
7096 LD="${LD-ld} -melf32bmipn32"
7099 LD="${LD-ld} -melf64bmip"
7103 case `/usr/bin/file conftest.$ac_objext` in
7119 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
7120 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
7121 # Find out which ABI we are using.
7122 echo 'int i;' > conftest.$ac_ext
7123 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7124 (eval $ac_compile) 2>&5
7126 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7127 test $ac_status = 0; }; then
7128 case `/usr/bin/file conftest.o` in
7131 x86_64-*kfreebsd*-gnu)
7132 LD="${LD-ld} -m elf_i386_fbsd"
7135 LD="${LD-ld} -m elf_i386"
7137 ppc64-*linux*|powerpc64-*linux*)
7138 LD="${LD-ld} -m elf32ppclinux"
7141 LD="${LD-ld} -m elf_s390"
7144 LD="${LD-ld} -m elf32_sparc"
7150 x86_64-*kfreebsd*-gnu)
7151 LD="${LD-ld} -m elf_x86_64_fbsd"
7154 LD="${LD-ld} -m elf_x86_64"
7156 ppc*-*linux*|powerpc*-*linux*)
7157 LD="${LD-ld} -m elf64ppc"
7159 s390*-*linux*|s390*-*tpf*)
7160 LD="${LD-ld} -m elf64_s390"
7163 LD="${LD-ld} -m elf64_sparc"
7173 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7174 SAVE_CFLAGS="$CFLAGS"
7175 CFLAGS="$CFLAGS -belf"
7176 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
7177 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
7178 if ${lt_cv_cc_needs_belf+:} false; then :
7179 $as_echo_n "(cached) " >&6
7182 ac_cpp='$CPP $CPPFLAGS'
7183 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7184 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7185 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7187 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7188 /* end confdefs.h. */
7198 if ac_fn_c_try_link "$LINENO"; then :
7199 lt_cv_cc_needs_belf=yes
7201 lt_cv_cc_needs_belf=no
7203 rm -f core conftest.err conftest.$ac_objext \
7204 conftest$ac_exeext conftest.$ac_ext
7206 ac_cpp='$CPP $CPPFLAGS'
7207 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7208 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7209 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
7213 $as_echo "$lt_cv_cc_needs_belf" >&6; }
7214 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
7215 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7216 CFLAGS="$SAVE_CFLAGS"
7220 # Find out which ABI we are using.
7221 echo 'int i;' > conftest.$ac_ext
7222 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7223 (eval $ac_compile) 2>&5
7225 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7226 test $ac_status = 0; }; then
7227 case `/usr/bin/file conftest.o` in
7229 case $lt_cv_prog_gnu_ld in
7230 yes*) LD="${LD-ld} -m elf64_sparc" ;;
7232 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7244 need_locks="$enable_libtool_lock"
7248 rhapsody* | darwin*)
7249 if test -n "$ac_tool_prefix"; then
7250 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7251 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7252 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7253 $as_echo_n "checking for $ac_word... " >&6; }
7254 if ${ac_cv_prog_DSYMUTIL+:} false; then :
7255 $as_echo_n "(cached) " >&6
7257 if test -n "$DSYMUTIL"; then
7258 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7260 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7264 test -z "$as_dir" && as_dir=.
7265 for ac_exec_ext in '' $ac_executable_extensions; do
7266 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7267 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7268 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7277 DSYMUTIL=$ac_cv_prog_DSYMUTIL
7278 if test -n "$DSYMUTIL"; then
7279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
7280 $as_echo "$DSYMUTIL" >&6; }
7282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7283 $as_echo "no" >&6; }
7288 if test -z "$ac_cv_prog_DSYMUTIL"; then
7289 ac_ct_DSYMUTIL=$DSYMUTIL
7290 # Extract the first word of "dsymutil", so it can be a program name with args.
7291 set dummy dsymutil; ac_word=$2
7292 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7293 $as_echo_n "checking for $ac_word... " >&6; }
7294 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
7295 $as_echo_n "(cached) " >&6
7297 if test -n "$ac_ct_DSYMUTIL"; then
7298 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7300 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7304 test -z "$as_dir" && as_dir=.
7305 for ac_exec_ext in '' $ac_executable_extensions; do
7306 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7307 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7308 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7317 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7318 if test -n "$ac_ct_DSYMUTIL"; then
7319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
7320 $as_echo "$ac_ct_DSYMUTIL" >&6; }
7322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7323 $as_echo "no" >&6; }
7326 if test "x$ac_ct_DSYMUTIL" = x; then
7329 case $cross_compiling:$ac_tool_warned in
7331 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7332 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7333 ac_tool_warned=yes ;;
7335 DSYMUTIL=$ac_ct_DSYMUTIL
7338 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7341 if test -n "$ac_tool_prefix"; then
7342 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7343 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7344 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7345 $as_echo_n "checking for $ac_word... " >&6; }
7346 if ${ac_cv_prog_NMEDIT+:} false; then :
7347 $as_echo_n "(cached) " >&6
7349 if test -n "$NMEDIT"; then
7350 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7352 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7356 test -z "$as_dir" && as_dir=.
7357 for ac_exec_ext in '' $ac_executable_extensions; do
7358 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7359 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7360 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7369 NMEDIT=$ac_cv_prog_NMEDIT
7370 if test -n "$NMEDIT"; then
7371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
7372 $as_echo "$NMEDIT" >&6; }
7374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7375 $as_echo "no" >&6; }
7380 if test -z "$ac_cv_prog_NMEDIT"; then
7381 ac_ct_NMEDIT=$NMEDIT
7382 # Extract the first word of "nmedit", so it can be a program name with args.
7383 set dummy nmedit; ac_word=$2
7384 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7385 $as_echo_n "checking for $ac_word... " >&6; }
7386 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
7387 $as_echo_n "(cached) " >&6
7389 if test -n "$ac_ct_NMEDIT"; then
7390 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7392 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7396 test -z "$as_dir" && as_dir=.
7397 for ac_exec_ext in '' $ac_executable_extensions; do
7398 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7399 ac_cv_prog_ac_ct_NMEDIT="nmedit"
7400 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7409 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7410 if test -n "$ac_ct_NMEDIT"; then
7411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7412 $as_echo "$ac_ct_NMEDIT" >&6; }
7414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7415 $as_echo "no" >&6; }
7418 if test "x$ac_ct_NMEDIT" = x; then
7421 case $cross_compiling:$ac_tool_warned in
7423 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7424 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7425 ac_tool_warned=yes ;;
7427 NMEDIT=$ac_ct_NMEDIT
7430 NMEDIT="$ac_cv_prog_NMEDIT"
7433 if test -n "$ac_tool_prefix"; then
7434 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7435 set dummy ${ac_tool_prefix}lipo; ac_word=$2
7436 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7437 $as_echo_n "checking for $ac_word... " >&6; }
7438 if ${ac_cv_prog_LIPO+:} false; then :
7439 $as_echo_n "(cached) " >&6
7441 if test -n "$LIPO"; then
7442 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7444 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7448 test -z "$as_dir" && as_dir=.
7449 for ac_exec_ext in '' $ac_executable_extensions; do
7450 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7451 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7452 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7461 LIPO=$ac_cv_prog_LIPO
7462 if test -n "$LIPO"; then
7463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7464 $as_echo "$LIPO" >&6; }
7466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7467 $as_echo "no" >&6; }
7472 if test -z "$ac_cv_prog_LIPO"; then
7474 # Extract the first word of "lipo", so it can be a program name with args.
7475 set dummy lipo; ac_word=$2
7476 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7477 $as_echo_n "checking for $ac_word... " >&6; }
7478 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
7479 $as_echo_n "(cached) " >&6
7481 if test -n "$ac_ct_LIPO"; then
7482 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7484 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7488 test -z "$as_dir" && as_dir=.
7489 for ac_exec_ext in '' $ac_executable_extensions; do
7490 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7491 ac_cv_prog_ac_ct_LIPO="lipo"
7492 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7501 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7502 if test -n "$ac_ct_LIPO"; then
7503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7504 $as_echo "$ac_ct_LIPO" >&6; }
7506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7507 $as_echo "no" >&6; }
7510 if test "x$ac_ct_LIPO" = x; then
7513 case $cross_compiling:$ac_tool_warned in
7515 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7516 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7517 ac_tool_warned=yes ;;
7522 LIPO="$ac_cv_prog_LIPO"
7525 if test -n "$ac_tool_prefix"; then
7526 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7527 set dummy ${ac_tool_prefix}otool; ac_word=$2
7528 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7529 $as_echo_n "checking for $ac_word... " >&6; }
7530 if ${ac_cv_prog_OTOOL+:} false; then :
7531 $as_echo_n "(cached) " >&6
7533 if test -n "$OTOOL"; then
7534 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7536 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7540 test -z "$as_dir" && as_dir=.
7541 for ac_exec_ext in '' $ac_executable_extensions; do
7542 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7543 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7544 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7553 OTOOL=$ac_cv_prog_OTOOL
7554 if test -n "$OTOOL"; then
7555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7556 $as_echo "$OTOOL" >&6; }
7558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7559 $as_echo "no" >&6; }
7564 if test -z "$ac_cv_prog_OTOOL"; then
7566 # Extract the first word of "otool", so it can be a program name with args.
7567 set dummy otool; ac_word=$2
7568 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7569 $as_echo_n "checking for $ac_word... " >&6; }
7570 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
7571 $as_echo_n "(cached) " >&6
7573 if test -n "$ac_ct_OTOOL"; then
7574 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7576 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7580 test -z "$as_dir" && as_dir=.
7581 for ac_exec_ext in '' $ac_executable_extensions; do
7582 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7583 ac_cv_prog_ac_ct_OTOOL="otool"
7584 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7593 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7594 if test -n "$ac_ct_OTOOL"; then
7595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7596 $as_echo "$ac_ct_OTOOL" >&6; }
7598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7599 $as_echo "no" >&6; }
7602 if test "x$ac_ct_OTOOL" = x; then
7605 case $cross_compiling:$ac_tool_warned in
7607 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7608 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7609 ac_tool_warned=yes ;;
7614 OTOOL="$ac_cv_prog_OTOOL"
7617 if test -n "$ac_tool_prefix"; then
7618 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7619 set dummy ${ac_tool_prefix}otool64; ac_word=$2
7620 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7621 $as_echo_n "checking for $ac_word... " >&6; }
7622 if ${ac_cv_prog_OTOOL64+:} false; then :
7623 $as_echo_n "(cached) " >&6
7625 if test -n "$OTOOL64"; then
7626 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7628 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7632 test -z "$as_dir" && as_dir=.
7633 for ac_exec_ext in '' $ac_executable_extensions; do
7634 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7635 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7636 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7645 OTOOL64=$ac_cv_prog_OTOOL64
7646 if test -n "$OTOOL64"; then
7647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
7648 $as_echo "$OTOOL64" >&6; }
7650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7651 $as_echo "no" >&6; }
7656 if test -z "$ac_cv_prog_OTOOL64"; then
7657 ac_ct_OTOOL64=$OTOOL64
7658 # Extract the first word of "otool64", so it can be a program name with args.
7659 set dummy otool64; ac_word=$2
7660 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7661 $as_echo_n "checking for $ac_word... " >&6; }
7662 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
7663 $as_echo_n "(cached) " >&6
7665 if test -n "$ac_ct_OTOOL64"; then
7666 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7668 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7672 test -z "$as_dir" && as_dir=.
7673 for ac_exec_ext in '' $ac_executable_extensions; do
7674 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7675 ac_cv_prog_ac_ct_OTOOL64="otool64"
7676 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7685 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7686 if test -n "$ac_ct_OTOOL64"; then
7687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
7688 $as_echo "$ac_ct_OTOOL64" >&6; }
7690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7691 $as_echo "no" >&6; }
7694 if test "x$ac_ct_OTOOL64" = x; then
7697 case $cross_compiling:$ac_tool_warned in
7699 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7700 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7701 ac_tool_warned=yes ;;
7703 OTOOL64=$ac_ct_OTOOL64
7706 OTOOL64="$ac_cv_prog_OTOOL64"
7735 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7736 $as_echo_n "checking for -single_module linker flag... " >&6; }
7737 if ${lt_cv_apple_cc_single_mod+:} false; then :
7738 $as_echo_n "(cached) " >&6
7740 lt_cv_apple_cc_single_mod=no
7741 if test -z "${LT_MULTI_MODULE}"; then
7742 # By default we will add the -single_module flag. You can override
7743 # by either setting the environment variable LT_MULTI_MODULE
7744 # non-empty at configure time, or by adding -multi_module to the
7746 rm -rf libconftest.dylib*
7747 echo "int foo(void){return 1;}" > conftest.c
7748 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7749 -dynamiclib -Wl,-single_module conftest.c" >&5
7750 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7751 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7753 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
7754 lt_cv_apple_cc_single_mod=yes
7756 cat conftest.err >&5
7758 rm -rf libconftest.dylib*
7762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7763 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7764 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7765 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7766 if ${lt_cv_ld_exported_symbols_list+:} false; then :
7767 $as_echo_n "(cached) " >&6
7769 lt_cv_ld_exported_symbols_list=no
7770 save_LDFLAGS=$LDFLAGS
7771 echo "_main" > conftest.sym
7772 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7773 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7774 /* end confdefs.h. */
7784 if ac_fn_c_try_link "$LINENO"; then :
7785 lt_cv_ld_exported_symbols_list=yes
7787 lt_cv_ld_exported_symbols_list=no
7789 rm -f core conftest.err conftest.$ac_objext \
7790 conftest$ac_exeext conftest.$ac_ext
7791 LDFLAGS="$save_LDFLAGS"
7794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7795 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7796 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
7797 $as_echo_n "checking for -force_load linker flag... " >&6; }
7798 if ${lt_cv_ld_force_load+:} false; then :
7799 $as_echo_n "(cached) " >&6
7801 lt_cv_ld_force_load=no
7802 cat > conftest.c << _LT_EOF
7803 int forced_loaded() { return 2;}
7805 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
7806 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
7807 echo "$AR cru libconftest.a conftest.o" >&5
7808 $AR cru libconftest.a conftest.o 2>&5
7809 echo "$RANLIB libconftest.a" >&5
7810 $RANLIB libconftest.a 2>&5
7811 cat > conftest.c << _LT_EOF
7812 int main() { return 0;}
7814 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
7815 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
7817 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
7818 lt_cv_ld_force_load=yes
7820 cat conftest.err >&5
7822 rm -f conftest.err libconftest.a conftest conftest.c
7823 rm -rf conftest.dSYM
7826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
7827 $as_echo "$lt_cv_ld_force_load" >&6; }
7829 rhapsody* | darwin1.[012])
7830 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7832 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7833 darwin*) # darwin 5.x on
7834 # if running on 10.5 or later, the deployment target defaults
7835 # to the OS version, if on x86, and 10.4, the deployment
7836 # target defaults to 10.4. Don't you love it?
7837 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7838 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7839 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7841 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7843 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7847 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7848 _lt_dar_single_mod='$single_module'
7850 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7851 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7853 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
7855 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
7856 _lt_dsymutil='~$DSYMUTIL $lib || :'
7863 for ac_header in dlfcn.h
7865 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7867 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
7868 cat >>confdefs.h <<_ACEOF
7869 #define HAVE_DLFCN_H 1
7882 enable_win32_dll=yes
7885 *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-cegcc*)
7886 if test -n "$ac_tool_prefix"; then
7887 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
7888 set dummy ${ac_tool_prefix}as; ac_word=$2
7889 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7890 $as_echo_n "checking for $ac_word... " >&6; }
7891 if ${ac_cv_prog_AS+:} false; then :
7892 $as_echo_n "(cached) " >&6
7894 if test -n "$AS"; then
7895 ac_cv_prog_AS="$AS" # Let the user override the test.
7897 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7901 test -z "$as_dir" && as_dir=.
7902 for ac_exec_ext in '' $ac_executable_extensions; do
7903 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7904 ac_cv_prog_AS="${ac_tool_prefix}as"
7905 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7915 if test -n "$AS"; then
7916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
7917 $as_echo "$AS" >&6; }
7919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7920 $as_echo "no" >&6; }
7925 if test -z "$ac_cv_prog_AS"; then
7927 # Extract the first word of "as", so it can be a program name with args.
7928 set dummy as; ac_word=$2
7929 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7930 $as_echo_n "checking for $ac_word... " >&6; }
7931 if ${ac_cv_prog_ac_ct_AS+:} false; then :
7932 $as_echo_n "(cached) " >&6
7934 if test -n "$ac_ct_AS"; then
7935 ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
7937 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7941 test -z "$as_dir" && as_dir=.
7942 for ac_exec_ext in '' $ac_executable_extensions; do
7943 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7944 ac_cv_prog_ac_ct_AS="as"
7945 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7954 ac_ct_AS=$ac_cv_prog_ac_ct_AS
7955 if test -n "$ac_ct_AS"; then
7956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5
7957 $as_echo "$ac_ct_AS" >&6; }
7959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7960 $as_echo "no" >&6; }
7963 if test "x$ac_ct_AS" = x; then
7966 case $cross_compiling:$ac_tool_warned in
7968 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7969 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7970 ac_tool_warned=yes ;;
7978 if test -n "$ac_tool_prefix"; then
7979 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
7980 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
7981 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7982 $as_echo_n "checking for $ac_word... " >&6; }
7983 if ${ac_cv_prog_DLLTOOL+:} false; then :
7984 $as_echo_n "(cached) " >&6
7986 if test -n "$DLLTOOL"; then
7987 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
7989 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7993 test -z "$as_dir" && as_dir=.
7994 for ac_exec_ext in '' $ac_executable_extensions; do
7995 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7996 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
7997 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8006 DLLTOOL=$ac_cv_prog_DLLTOOL
8007 if test -n "$DLLTOOL"; then
8008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
8009 $as_echo "$DLLTOOL" >&6; }
8011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8012 $as_echo "no" >&6; }
8017 if test -z "$ac_cv_prog_DLLTOOL"; then
8018 ac_ct_DLLTOOL=$DLLTOOL
8019 # Extract the first word of "dlltool", so it can be a program name with args.
8020 set dummy dlltool; ac_word=$2
8021 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8022 $as_echo_n "checking for $ac_word... " >&6; }
8023 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
8024 $as_echo_n "(cached) " >&6
8026 if test -n "$ac_ct_DLLTOOL"; then
8027 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
8029 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8033 test -z "$as_dir" && as_dir=.
8034 for ac_exec_ext in '' $ac_executable_extensions; do
8035 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8036 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
8037 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8046 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
8047 if test -n "$ac_ct_DLLTOOL"; then
8048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
8049 $as_echo "$ac_ct_DLLTOOL" >&6; }
8051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8052 $as_echo "no" >&6; }
8055 if test "x$ac_ct_DLLTOOL" = x; then
8058 case $cross_compiling:$ac_tool_warned in
8060 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8061 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8062 ac_tool_warned=yes ;;
8064 DLLTOOL=$ac_ct_DLLTOOL
8067 DLLTOOL="$ac_cv_prog_DLLTOOL"
8070 if test -n "$ac_tool_prefix"; then
8071 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
8072 set dummy ${ac_tool_prefix}objdump; ac_word=$2
8073 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8074 $as_echo_n "checking for $ac_word... " >&6; }
8075 if ${ac_cv_prog_OBJDUMP+:} false; then :
8076 $as_echo_n "(cached) " >&6
8078 if test -n "$OBJDUMP"; then
8079 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
8081 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8085 test -z "$as_dir" && as_dir=.
8086 for ac_exec_ext in '' $ac_executable_extensions; do
8087 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8088 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
8089 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8098 OBJDUMP=$ac_cv_prog_OBJDUMP
8099 if test -n "$OBJDUMP"; then
8100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
8101 $as_echo "$OBJDUMP" >&6; }
8103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8104 $as_echo "no" >&6; }
8109 if test -z "$ac_cv_prog_OBJDUMP"; then
8110 ac_ct_OBJDUMP=$OBJDUMP
8111 # Extract the first word of "objdump", so it can be a program name with args.
8112 set dummy objdump; ac_word=$2
8113 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8114 $as_echo_n "checking for $ac_word... " >&6; }
8115 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
8116 $as_echo_n "(cached) " >&6
8118 if test -n "$ac_ct_OBJDUMP"; then
8119 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
8121 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8125 test -z "$as_dir" && as_dir=.
8126 for ac_exec_ext in '' $ac_executable_extensions; do
8127 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8128 ac_cv_prog_ac_ct_OBJDUMP="objdump"
8129 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8138 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
8139 if test -n "$ac_ct_OBJDUMP"; then
8140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
8141 $as_echo "$ac_ct_OBJDUMP" >&6; }
8143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8144 $as_echo "no" >&6; }
8147 if test "x$ac_ct_OBJDUMP" = x; then
8150 case $cross_compiling:$ac_tool_warned in
8152 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8153 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8154 ac_tool_warned=yes ;;
8156 OBJDUMP=$ac_ct_OBJDUMP
8159 OBJDUMP="$ac_cv_prog_OBJDUMP"
8165 test -z "$AS" && AS=as
8171 test -z "$DLLTOOL" && DLLTOOL=dlltool
8177 test -z "$OBJDUMP" && OBJDUMP=objdump
8187 # Check whether --enable-shared was given.
8188 if test "${enable_shared+set}" = set; then :
8189 enableval=$enable_shared; p=${PACKAGE-default}
8191 yes) enable_shared=yes ;;
8192 no) enable_shared=no ;;
8195 # Look at the argument we got. We use all the common list separators.
8196 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8197 for pkg in $enableval; do
8199 if test "X$pkg" = "X$p"; then
8218 # Check whether --enable-static was given.
8219 if test "${enable_static+set}" = set; then :
8220 enableval=$enable_static; p=${PACKAGE-default}
8222 yes) enable_static=yes ;;
8223 no) enable_static=no ;;
8226 # Look at the argument we got. We use all the common list separators.
8227 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8228 for pkg in $enableval; do
8230 if test "X$pkg" = "X$p"; then
8250 # Check whether --with-pic was given.
8251 if test "${with_pic+set}" = set; then :
8252 withval=$with_pic; pic_mode="$withval"
8258 test -z "$pic_mode" && pic_mode=default
8266 # Check whether --enable-fast-install was given.
8267 if test "${enable_fast_install+set}" = set; then :
8268 enableval=$enable_fast_install; p=${PACKAGE-default}
8270 yes) enable_fast_install=yes ;;
8271 no) enable_fast_install=no ;;
8273 enable_fast_install=no
8274 # Look at the argument we got. We use all the common list separators.
8275 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8276 for pkg in $enableval; do
8278 if test "X$pkg" = "X$p"; then
8279 enable_fast_install=yes
8286 enable_fast_install=yes
8299 # This can be used to rebuild libtool when needed
8300 LIBTOOL_DEPS="$ltmain"
8302 # Always use our own libtool.
8303 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8330 test -z "$LN_S" && LN_S="ln -s"
8345 if test -n "${ZSH_VERSION+set}" ; then
8346 setopt NO_GLOB_SUBST
8349 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8350 $as_echo_n "checking for objdir... " >&6; }
8351 if ${lt_cv_objdir+:} false; then :
8352 $as_echo_n "(cached) " >&6
8354 rm -f .libs 2>/dev/null
8355 mkdir .libs 2>/dev/null
8356 if test -d .libs; then
8359 # MS-DOS does not allow filenames that begin with a dot.
8362 rmdir .libs 2>/dev/null
8364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8365 $as_echo "$lt_cv_objdir" >&6; }
8366 objdir=$lt_cv_objdir
8372 cat >>confdefs.h <<_ACEOF
8373 #define LT_OBJDIR "$lt_cv_objdir/"
8381 # AIX sometimes has problems with the GCC collect2 program. For some
8382 # reason, if we set the COLLECT_NAMES environment variable, the problems
8383 # vanish in a puff of smoke.
8384 if test "X${COLLECT_NAMES+set}" != Xset; then
8386 export COLLECT_NAMES
8393 can_build_shared=yes
8395 # All known linkers require a `.a' archive for static linking (except MSVC,
8396 # which needs '.lib').
8399 with_gnu_ld="$lt_cv_prog_gnu_ld"
8402 old_CFLAGS="$CFLAGS"
8404 # Set sane defaults for various variables
8405 test -z "$CC" && CC=cc
8406 test -z "$LTCC" && LTCC=$CC
8407 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8408 test -z "$LD" && LD=ld
8409 test -z "$ac_objext" && ac_objext=o
8411 for cc_temp in $compiler""; do
8413 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8414 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8419 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
8422 # Only perform the check for file, if the check method requires it
8423 test -z "$MAGIC_CMD" && MAGIC_CMD=file
8424 case $deplibs_check_method in
8426 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8427 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8428 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
8429 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8430 $as_echo_n "(cached) " >&6
8434 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8437 lt_save_MAGIC_CMD="$MAGIC_CMD"
8438 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8439 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8440 for ac_dir in $ac_dummy; do
8442 test -z "$ac_dir" && ac_dir=.
8443 if test -f $ac_dir/${ac_tool_prefix}file; then
8444 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8445 if test -n "$file_magic_test_file"; then
8446 case $deplibs_check_method in
8448 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8449 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8450 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8451 $EGREP "$file_magic_regex" > /dev/null; then
8456 *** Warning: the command libtool uses to detect shared libraries,
8457 *** $file_magic_cmd, produces output that libtool cannot recognize.
8458 *** The result is that libtool may fail to recognize shared libraries
8459 *** as such. This will affect the creation of libtool libraries that
8460 *** depend on shared libraries, but programs linked with such libtool
8461 *** libraries will work regardless of this problem. Nevertheless, you
8462 *** may want to report the problem to your system manager and/or to
8463 *** bug-libtool@gnu.org
8473 MAGIC_CMD="$lt_save_MAGIC_CMD"
8478 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8479 if test -n "$MAGIC_CMD"; then
8480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8481 $as_echo "$MAGIC_CMD" >&6; }
8483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8484 $as_echo "no" >&6; }
8491 if test -z "$lt_cv_path_MAGIC_CMD"; then
8492 if test -n "$ac_tool_prefix"; then
8493 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8494 $as_echo_n "checking for file... " >&6; }
8495 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8496 $as_echo_n "(cached) " >&6
8500 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8503 lt_save_MAGIC_CMD="$MAGIC_CMD"
8504 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8505 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8506 for ac_dir in $ac_dummy; do
8508 test -z "$ac_dir" && ac_dir=.
8509 if test -f $ac_dir/file; then
8510 lt_cv_path_MAGIC_CMD="$ac_dir/file"
8511 if test -n "$file_magic_test_file"; then
8512 case $deplibs_check_method in
8514 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8515 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8516 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8517 $EGREP "$file_magic_regex" > /dev/null; then
8522 *** Warning: the command libtool uses to detect shared libraries,
8523 *** $file_magic_cmd, produces output that libtool cannot recognize.
8524 *** The result is that libtool may fail to recognize shared libraries
8525 *** as such. This will affect the creation of libtool libraries that
8526 *** depend on shared libraries, but programs linked with such libtool
8527 *** libraries will work regardless of this problem. Nevertheless, you
8528 *** may want to report the problem to your system manager and/or to
8529 *** bug-libtool@gnu.org
8539 MAGIC_CMD="$lt_save_MAGIC_CMD"
8544 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8545 if test -n "$MAGIC_CMD"; then
8546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8547 $as_echo "$MAGIC_CMD" >&6; }
8549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8550 $as_echo "no" >&6; }
8563 # Use C for the default configuration in the libtool script
8567 ac_cpp='$CPP $CPPFLAGS'
8568 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8569 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8570 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8573 # Source file extension for C test sources.
8576 # Object file extension for compiled C test sources.
8580 # Code to be used in simple compile tests
8581 lt_simple_compile_test_code="int some_variable = 0;"
8583 # Code to be used in simple link tests
8584 lt_simple_link_test_code='int main(){return(0);}'
8592 # If no C compiler was specified, use CC.
8595 # If no C compiler flags were specified, use CFLAGS.
8596 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8598 # Allow CC to be a program name with arguments.
8601 # Save the default compiler, since it gets overwritten when the other
8602 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8603 compiler_DEFAULT=$CC
8605 # save warnings/boilerplate of simple test code
8606 ac_outfile=conftest.$ac_objext
8607 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8608 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8609 _lt_compiler_boilerplate=`cat conftest.err`
8612 ac_outfile=conftest.$ac_objext
8613 echo "$lt_simple_link_test_code" >conftest.$ac_ext
8614 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8615 _lt_linker_boilerplate=`cat conftest.err`
8620 ## There is no encapsulation within the following macros, do not change
8621 ## the running order or otherwise move them around unless you know exactly
8622 ## what you are doing...
8623 if test -n "$compiler"; then
8625 lt_prog_compiler_no_builtin_flag=
8627 if test "$GCC" = yes; then
8628 case $cc_basename in
8630 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
8632 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
8635 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8636 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8637 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
8638 $as_echo_n "(cached) " >&6
8640 lt_cv_prog_compiler_rtti_exceptions=no
8641 ac_outfile=conftest.$ac_objext
8642 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8643 lt_compiler_flag="-fno-rtti -fno-exceptions"
8644 # Insert the option either (1) after the last *FLAGS variable, or
8645 # (2) before a word containing "conftest.", or (3) at the end.
8646 # Note that $ac_compile itself does not contain backslashes and begins
8647 # with a dollar sign (not a hyphen), so the echo should work correctly.
8648 # The option is referenced via a variable to avoid confusing sed.
8649 lt_compile=`echo "$ac_compile" | $SED \
8650 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8651 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8652 -e 's:$: $lt_compiler_flag:'`
8653 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8654 (eval "$lt_compile" 2>conftest.err)
8656 cat conftest.err >&5
8657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8658 if (exit $ac_status) && test -s "$ac_outfile"; then
8659 # The compiler can only warn and ignore the option if not recognized
8660 # So say no if there are warnings other than the usual output.
8661 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8662 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8663 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8664 lt_cv_prog_compiler_rtti_exceptions=yes
8670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8671 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8673 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8674 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8686 lt_prog_compiler_wl=
8687 lt_prog_compiler_pic=
8688 lt_prog_compiler_static=
8690 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8691 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8693 if test "$GCC" = yes; then
8694 lt_prog_compiler_wl='-Wl,'
8695 lt_prog_compiler_static='-static'
8699 # All AIX code is PIC.
8700 if test "$host_cpu" = ia64; then
8701 # AIX 5 now supports IA64 processor
8702 lt_prog_compiler_static='-Bstatic'
8709 # see comment about AmigaOS4 .so support
8710 lt_prog_compiler_pic='-fPIC'
8713 # FIXME: we need at least 68020 code to build shared libraries, but
8714 # adding the `-m68020' flag to GCC prevents building anything better,
8716 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8721 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8722 # PIC is the default for these OSes.
8725 mingw* | cygwin* | pw32* | os2* | cegcc*)
8726 # This hack is so that the source file can tell whether it is being
8727 # built for inclusion in a dll (and should export symbols for example).
8728 # Although the cygwin gcc ignores -fPIC, still need this for old-style
8729 # (--disable-auto-import) libraries
8730 lt_prog_compiler_pic='-DDLL_EXPORT'
8733 darwin* | rhapsody*)
8734 # PIC is the default on this platform
8735 # Common symbols not allowed in MH_DYLIB files
8736 lt_prog_compiler_pic='-fno-common'
8740 # PIC is the default for Haiku.
8741 # The "-static" flag exists, but is broken.
8742 lt_prog_compiler_static=
8746 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8747 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
8748 # sets the default TLS model and affects inlining.
8754 lt_prog_compiler_pic='-fPIC'
8760 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8761 # Instead, we relocate shared libraries at runtime.
8765 # Just because we use GCC doesn't mean we suddenly get shared libraries
8766 # on systems that don't support them.
8767 lt_prog_compiler_can_build_shared=no
8772 # QNX uses GNU C++, but need to define -shared option too, otherwise
8774 lt_prog_compiler_pic='-fPIC -shared'
8778 if test -d /usr/nec; then
8779 lt_prog_compiler_pic=-Kconform_pic
8784 lt_prog_compiler_pic='-fPIC'
8788 case $cc_basename in
8789 nvcc*) # Cuda Compiler Driver 2.2
8790 lt_prog_compiler_wl='-Xlinker '
8791 lt_prog_compiler_pic='-Xcompiler -fPIC'
8795 # PORTME Check for flag to pass linker flags through the system compiler.
8798 lt_prog_compiler_wl='-Wl,'
8799 if test "$host_cpu" = ia64; then
8800 # AIX 5 now supports IA64 processor
8801 lt_prog_compiler_static='-Bstatic'
8803 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8807 mingw* | cygwin* | pw32* | os2* | cegcc*)
8808 # This hack is so that the source file can tell whether it is being
8809 # built for inclusion in a dll (and should export symbols for example).
8810 lt_prog_compiler_pic='-DDLL_EXPORT'
8813 hpux9* | hpux10* | hpux11*)
8814 lt_prog_compiler_wl='-Wl,'
8815 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8822 lt_prog_compiler_pic='+Z'
8825 # Is there a better lt_prog_compiler_static that works with the bundled CC?
8826 lt_prog_compiler_static='${wl}-a ${wl}archive'
8829 irix5* | irix6* | nonstopux*)
8830 lt_prog_compiler_wl='-Wl,'
8831 # PIC (with -KPIC) is the default.
8832 lt_prog_compiler_static='-non_shared'
8835 linux* | k*bsd*-gnu | kopensolaris*-gnu)
8836 case $cc_basename in
8837 # old Intel for x86_64 which still supported -KPIC.
8839 lt_prog_compiler_wl='-Wl,'
8840 lt_prog_compiler_pic='-KPIC'
8841 lt_prog_compiler_static='-static'
8843 # icc used to be incompatible with GCC.
8844 # ICC 10 doesn't accept -KPIC any more.
8846 lt_prog_compiler_wl='-Wl,'
8847 lt_prog_compiler_pic='-fPIC'
8848 lt_prog_compiler_static='-static'
8850 # Lahey Fortran 8.1.
8852 lt_prog_compiler_wl='-Wl,'
8853 lt_prog_compiler_pic='--shared'
8854 lt_prog_compiler_static='--static'
8856 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
8857 # Portland Group compilers (*not* the Pentium gcc compiler,
8858 # which looks to be a dead project)
8859 lt_prog_compiler_wl='-Wl,'
8860 lt_prog_compiler_pic='-fpic'
8861 lt_prog_compiler_static='-Bstatic'
8864 lt_prog_compiler_wl='-Wl,'
8865 # All Alpha code is PIC.
8866 lt_prog_compiler_static='-non_shared'
8868 xl* | bgxl* | bgf* | mpixl*)
8869 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
8870 lt_prog_compiler_wl='-Wl,'
8871 lt_prog_compiler_pic='-qpic'
8872 lt_prog_compiler_static='-qstaticlink'
8875 case `$CC -V 2>&1 | sed 5q` in
8876 *Sun\ F* | *Sun*Fortran*)
8877 # Sun Fortran 8.3 passes all unrecognized flags to the linker
8878 lt_prog_compiler_pic='-KPIC'
8879 lt_prog_compiler_static='-Bstatic'
8880 lt_prog_compiler_wl=''
8884 lt_prog_compiler_pic='-KPIC'
8885 lt_prog_compiler_static='-Bstatic'
8886 lt_prog_compiler_wl='-Wl,'
8894 lt_prog_compiler_pic='-KPIC'
8895 lt_prog_compiler_static='-Bstatic'
8899 # QNX uses GNU C++, but need to define -shared option too, otherwise
8901 lt_prog_compiler_pic='-fPIC -shared'
8904 osf3* | osf4* | osf5*)
8905 lt_prog_compiler_wl='-Wl,'
8906 # All OSF/1 code is PIC.
8907 lt_prog_compiler_static='-non_shared'
8911 lt_prog_compiler_static='-non_shared'
8915 lt_prog_compiler_pic='-KPIC'
8916 lt_prog_compiler_static='-Bstatic'
8917 case $cc_basename in
8918 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
8919 lt_prog_compiler_wl='-Qoption ld ';;
8921 lt_prog_compiler_wl='-Wl,';;
8926 lt_prog_compiler_wl='-Qoption ld '
8927 lt_prog_compiler_pic='-PIC'
8928 lt_prog_compiler_static='-Bstatic'
8931 sysv4 | sysv4.2uw2* | sysv4.3*)
8932 lt_prog_compiler_wl='-Wl,'
8933 lt_prog_compiler_pic='-KPIC'
8934 lt_prog_compiler_static='-Bstatic'
8938 if test -d /usr/nec ;then
8939 lt_prog_compiler_pic='-Kconform_pic'
8940 lt_prog_compiler_static='-Bstatic'
8944 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8945 lt_prog_compiler_wl='-Wl,'
8946 lt_prog_compiler_pic='-KPIC'
8947 lt_prog_compiler_static='-Bstatic'
8951 lt_prog_compiler_wl='-Wl,'
8952 lt_prog_compiler_can_build_shared=no
8956 lt_prog_compiler_pic='-pic'
8957 lt_prog_compiler_static='-Bstatic'
8961 lt_prog_compiler_can_build_shared=no
8967 # For platforms which do not support PIC, -DPIC is meaningless:
8969 lt_prog_compiler_pic=
8972 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
8976 $as_echo "$lt_prog_compiler_pic" >&6; }
8984 # Check to make sure the PIC flag actually works.
8986 if test -n "$lt_prog_compiler_pic"; then
8987 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8988 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8989 if ${lt_cv_prog_compiler_pic_works+:} false; then :
8990 $as_echo_n "(cached) " >&6
8992 lt_cv_prog_compiler_pic_works=no
8993 ac_outfile=conftest.$ac_objext
8994 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8995 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8996 # Insert the option either (1) after the last *FLAGS variable, or
8997 # (2) before a word containing "conftest.", or (3) at the end.
8998 # Note that $ac_compile itself does not contain backslashes and begins
8999 # with a dollar sign (not a hyphen), so the echo should work correctly.
9000 # The option is referenced via a variable to avoid confusing sed.
9001 lt_compile=`echo "$ac_compile" | $SED \
9002 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9003 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9004 -e 's:$: $lt_compiler_flag:'`
9005 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9006 (eval "$lt_compile" 2>conftest.err)
9008 cat conftest.err >&5
9009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9010 if (exit $ac_status) && test -s "$ac_outfile"; then
9011 # The compiler can only warn and ignore the option if not recognized
9012 # So say no if there are warnings other than the usual output.
9013 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9014 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9015 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9016 lt_cv_prog_compiler_pic_works=yes
9022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
9023 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
9025 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
9026 case $lt_prog_compiler_pic in
9028 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
9031 lt_prog_compiler_pic=
9032 lt_prog_compiler_can_build_shared=no
9043 # Check to make sure the static flag actually works.
9045 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
9046 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
9047 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
9048 if ${lt_cv_prog_compiler_static_works+:} false; then :
9049 $as_echo_n "(cached) " >&6
9051 lt_cv_prog_compiler_static_works=no
9052 save_LDFLAGS="$LDFLAGS"
9053 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
9054 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9055 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9056 # The linker can only warn and ignore the option if not recognized
9057 # So say no if there are warnings
9058 if test -s conftest.err; then
9059 # Append any errors to the config.log.
9060 cat conftest.err 1>&5
9061 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9062 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9063 if diff conftest.exp conftest.er2 >/dev/null; then
9064 lt_cv_prog_compiler_static_works=yes
9067 lt_cv_prog_compiler_static_works=yes
9071 LDFLAGS="$save_LDFLAGS"
9074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
9075 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
9077 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
9080 lt_prog_compiler_static=
9089 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9090 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9091 if ${lt_cv_prog_compiler_c_o+:} false; then :
9092 $as_echo_n "(cached) " >&6
9094 lt_cv_prog_compiler_c_o=no
9095 $RM -r conftest 2>/dev/null
9099 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9101 lt_compiler_flag="-o out/conftest2.$ac_objext"
9102 # Insert the option either (1) after the last *FLAGS variable, or
9103 # (2) before a word containing "conftest.", or (3) at the end.
9104 # Note that $ac_compile itself does not contain backslashes and begins
9105 # with a dollar sign (not a hyphen), so the echo should work correctly.
9106 lt_compile=`echo "$ac_compile" | $SED \
9107 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9108 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9109 -e 's:$: $lt_compiler_flag:'`
9110 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9111 (eval "$lt_compile" 2>out/conftest.err)
9113 cat out/conftest.err >&5
9114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9115 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9117 # The compiler can only warn and ignore the option if not recognized
9118 # So say no if there are warnings
9119 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9120 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9121 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9122 lt_cv_prog_compiler_c_o=yes
9127 # SGI C++ compiler will create directory out/ii_files/ for
9128 # template instantiation
9129 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9130 $RM out/* && rmdir out
9136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9137 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9144 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9145 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9146 if ${lt_cv_prog_compiler_c_o+:} false; then :
9147 $as_echo_n "(cached) " >&6
9149 lt_cv_prog_compiler_c_o=no
9150 $RM -r conftest 2>/dev/null
9154 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9156 lt_compiler_flag="-o out/conftest2.$ac_objext"
9157 # Insert the option either (1) after the last *FLAGS variable, or
9158 # (2) before a word containing "conftest.", or (3) at the end.
9159 # Note that $ac_compile itself does not contain backslashes and begins
9160 # with a dollar sign (not a hyphen), so the echo should work correctly.
9161 lt_compile=`echo "$ac_compile" | $SED \
9162 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9163 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9164 -e 's:$: $lt_compiler_flag:'`
9165 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9166 (eval "$lt_compile" 2>out/conftest.err)
9168 cat out/conftest.err >&5
9169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9170 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9172 # The compiler can only warn and ignore the option if not recognized
9173 # So say no if there are warnings
9174 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9175 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9176 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9177 lt_cv_prog_compiler_c_o=yes
9182 # SGI C++ compiler will create directory out/ii_files/ for
9183 # template instantiation
9184 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9185 $RM out/* && rmdir out
9191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9192 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9197 hard_links="nottested"
9198 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
9199 # do not overwrite the value of need_locks provided by the user
9200 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
9201 $as_echo_n "checking if we can lock with hard links... " >&6; }
9204 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9206 ln conftest.a conftest.b 2>&5 || hard_links=no
9207 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
9209 $as_echo "$hard_links" >&6; }
9210 if test "$hard_links" = no; then
9211 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
9212 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
9224 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9225 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
9228 allow_undefined_flag=
9229 always_export_symbols=no
9231 archive_expsym_cmds=
9232 compiler_needs_object=no
9233 enable_shared_with_static_runtimes=no
9234 export_dynamic_flag_spec=
9235 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9236 hardcode_automatic=no
9238 hardcode_direct_absolute=no
9239 hardcode_libdir_flag_spec=
9240 hardcode_libdir_flag_spec_ld=
9241 hardcode_libdir_separator=
9243 hardcode_shlibpath_var=unsupported
9245 link_all_deplibs=unknown
9248 old_archive_from_new_cmds=
9249 old_archive_from_expsyms_cmds=
9250 thread_safe_flag_spec=
9251 whole_archive_flag_spec=
9252 # include_expsyms should be a list of space-separated symbols to be *always*
9253 # included in the symbol list
9255 # exclude_expsyms can be an extended regexp of symbols to exclude
9256 # it will be wrapped by ` (' and `)$', so one must not match beginning or
9257 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
9258 # as well as any symbol that contains `d'.
9259 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9260 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9261 # platforms (ab)use it in PIC code, but their linkers get confused if
9262 # the symbol is explicitly referenced. Since portable code cannot
9263 # rely on this symbol name, it's probably fine to never include it in
9264 # preloaded symbol tables.
9265 # Exclude shared library initialization/finalization symbols.
9266 extract_expsyms_cmds=
9269 cygwin* | mingw* | pw32* | cegcc*)
9270 # FIXME: the MSVC++ port hasn't been tested in a loooong time
9271 # When not using gcc, we currently assume that we are using
9272 # Microsoft Visual C++.
9273 if test "$GCC" != yes; then
9278 # we just hope/assume this is gcc and not c89 (= MSVC++)
9288 # On some targets, GNU ld is compatible enough with the native linker
9289 # that we're better off using the native interface for both.
9290 lt_use_gnu_ld_interface=no
9291 if test "$with_gnu_ld" = yes; then
9294 # The AIX port of GNU ld has always aspired to compatibility
9295 # with the native linker. However, as the warning in the GNU ld
9296 # block says, versions before 2.19.5* couldn't really create working
9297 # shared libraries, regardless of the interface used.
9298 case `$LD -v 2>&1` in
9299 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
9300 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
9301 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
9303 lt_use_gnu_ld_interface=yes
9308 lt_use_gnu_ld_interface=yes
9313 if test "$lt_use_gnu_ld_interface" = yes; then
9314 # If archive_cmds runs LD, not CC, wlarc should be empty
9317 # Set some defaults for GNU ld with shared library support. These
9318 # are reset later if shared libraries are not supported. Putting them
9319 # here allows them to be overridden if necessary.
9320 runpath_var=LD_RUN_PATH
9321 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9322 export_dynamic_flag_spec='${wl}--export-dynamic'
9323 # ancient GNU ld didn't support --whole-archive et. al.
9324 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9325 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9327 whole_archive_flag_spec=
9329 supports_anon_versioning=no
9330 case `$LD -v 2>&1` in
9331 *GNU\ gold*) supports_anon_versioning=yes ;;
9332 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9333 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9334 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9335 *\ 2.11.*) ;; # other 2.11 versions
9336 *) supports_anon_versioning=yes ;;
9339 # See if GNU ld supports shared libraries.
9342 # On AIX/PPC, the GNU linker is very broken
9343 if test "$host_cpu" != ia64; then
9347 *** Warning: the GNU linker, at least up to release 2.19, is reported
9348 *** to be unable to reliably create shared libraries on AIX.
9349 *** Therefore, libtool is disabling shared libraries support. If you
9350 *** really care for shared libraries, you may want to install binutils
9351 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
9352 *** You will then need to restart the configuration process.
9361 # see comment about AmigaOS4 .so support
9362 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9363 archive_expsym_cmds=''
9366 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)'
9367 hardcode_libdir_flag_spec='-L$libdir'
9368 hardcode_minus_L=yes
9374 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9375 allow_undefined_flag=unsupported
9376 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9377 # support --undefined. This deserves some investigation. FIXME
9378 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9384 cygwin* | mingw* | pw32* | cegcc*)
9385 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9386 # as there is no search path for DLLs.
9387 hardcode_libdir_flag_spec='-L$libdir'
9388 export_dynamic_flag_spec='${wl}--export-all-symbols'
9389 allow_undefined_flag=unsupported
9390 always_export_symbols=no
9391 enable_shared_with_static_runtimes=yes
9392 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9394 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9395 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9396 # If the export-symbols file already is a .def file (1st line
9397 # is EXPORTS), use it as is; otherwise, prepend...
9398 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9399 cp $export_symbols $output_objdir/$soname.def;
9401 echo EXPORTS > $output_objdir/$soname.def;
9402 cat $export_symbols >> $output_objdir/$soname.def;
9404 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9411 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9412 link_all_deplibs=yes
9417 hardcode_shlibpath_var=no
9418 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9419 export_dynamic_flag_spec='${wl}-E'
9420 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9421 # Instead, shared libraries are loaded at an image base (0x10000000 by
9422 # default) and relocated if they conflict, which is a slow very memory
9423 # consuming and fragmenting process. To avoid this, we pick a random,
9424 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9425 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
9426 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9427 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'
9430 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
9432 if test "$host_os" = linux-dietlibc; then
9433 case $cc_basename in
9434 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
9437 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9438 && test "$tmp_diet" = no
9441 tmp_sharedflag='-shared'
9442 case $cc_basename,$host_cpu in
9443 pgcc*) # Portland Group C compiler
9444 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'
9445 tmp_addflag=' $pic_flag'
9447 pgf77* | pgf90* | pgf95* | pgfortran*)
9448 # Portland Group f77 and f90 compilers
9449 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'
9450 tmp_addflag=' $pic_flag -Mnomain' ;;
9451 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
9452 tmp_addflag=' -i_dynamic' ;;
9453 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
9454 tmp_addflag=' -i_dynamic -nofor_main' ;;
9455 ifc* | ifort*) # Intel Fortran compiler
9456 tmp_addflag=' -nofor_main' ;;
9457 lf95*) # Lahey Fortran 8.1
9458 whole_archive_flag_spec=
9459 tmp_sharedflag='--shared' ;;
9460 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
9461 tmp_sharedflag='-qmkshrobj'
9463 nvcc*) # Cuda Compiler Driver 2.2
9464 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'
9465 compiler_needs_object=yes
9468 case `$CC -V 2>&1 | sed 5q` in
9469 *Sun\ C*) # Sun C 5.9
9470 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'
9471 compiler_needs_object=yes
9472 tmp_sharedflag='-G' ;;
9473 *Sun\ F*) # Sun Fortran 8.3
9474 tmp_sharedflag='-G' ;;
9476 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9478 if test "x$supports_anon_versioning" = xyes; then
9479 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9480 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9481 echo "local: *; };" >> $output_objdir/$libname.ver~
9482 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9485 case $cc_basename in
9486 xlf* | bgf* | bgxlf* | mpixlf*)
9487 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9488 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9489 hardcode_libdir_flag_spec=
9490 hardcode_libdir_flag_spec_ld='-rpath $libdir'
9491 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
9492 if test "x$supports_anon_versioning" = xyes; then
9493 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9494 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9495 echo "local: *; };" >> $output_objdir/$libname.ver~
9496 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9506 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9507 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9510 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9511 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9516 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9520 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
9521 *** create shared libraries on Solaris systems. Therefore, libtool
9522 *** is disabling shared libraries support. We urge you to upgrade GNU
9523 *** binutils to release 2.9.1 or newer. Another option is to modify
9524 *** your PATH or compiler configuration so that the native linker is
9525 *** used, and then restart.
9528 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9529 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9530 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9536 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9537 case `$LD -v 2>&1` in
9538 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9542 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9543 *** reliably create shared libraries on SCO systems. Therefore, libtool
9544 *** is disabling shared libraries support. We urge you to upgrade GNU
9545 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
9546 *** your PATH or compiler configuration so that the native linker is
9547 *** used, and then restart.
9552 # For security reasons, it is highly recommended that you always
9553 # use absolute paths for naming shared libraries, and exclude the
9554 # DT_RUNPATH tag from executables and libraries. But doing so
9555 # requires that you compile everything twice, which is a pain.
9556 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9557 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9558 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9559 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9568 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9571 hardcode_shlibpath_var=no
9575 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9576 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9577 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9584 if test "$ld_shlibs" = no; then
9586 hardcode_libdir_flag_spec=
9587 export_dynamic_flag_spec=
9588 whole_archive_flag_spec=
9591 # PORTME fill in a description of your system's linker (not GNU ld)
9594 allow_undefined_flag=unsupported
9595 always_export_symbols=yes
9596 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'
9597 # Note: this linker hardcodes the directories in LIBPATH if there
9598 # are no directories specified by -L.
9599 hardcode_minus_L=yes
9600 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9601 # Neither direct hardcoding nor static linking is supported with a
9603 hardcode_direct=unsupported
9608 if test "$host_cpu" = ia64; then
9609 # On IA64, the linker does run time linking by default, so we don't
9610 # have to do anything special.
9611 aix_use_runtimelinking=no
9612 exp_sym_flag='-Bexport'
9615 # If we're using GNU nm, then we don't want the "-C" option.
9616 # -C means demangle to AIX nm, but means don't demangle with GNU nm
9617 # Also, AIX nm treats weak defined symbols like other global
9618 # defined symbols, whereas GNU nm marks them as "W".
9619 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9620 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'
9622 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'
9624 aix_use_runtimelinking=no
9626 # Test if we are trying to use run time linking or normal
9627 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9628 # need to do runtime linking.
9629 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9630 for ld_flag in $LDFLAGS; do
9631 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9632 aix_use_runtimelinking=yes
9639 exp_sym_flag='-bexport'
9640 no_entry_flag='-bnoentry'
9643 # When large executables or shared objects are built, AIX ld can
9644 # have problems creating the table of contents. If linking a library
9645 # or program results in "error TOC overflow" add -mminimal-toc to
9646 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9647 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9651 hardcode_direct_absolute=yes
9652 hardcode_libdir_separator=':'
9653 link_all_deplibs=yes
9654 file_list_spec='${wl}-f,'
9656 if test "$GCC" = yes; then
9657 case $host_os in aix4.[012]|aix4.[012].*)
9658 # We only want to do this on AIX 4.2 and lower, the check
9659 # below for broken collect2 doesn't work under 4.3+
9660 collect2name=`${CC} -print-prog-name=collect2`
9661 if test -f "$collect2name" &&
9662 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9664 # We have reworked collect2
9667 # We have old collect2
9668 hardcode_direct=unsupported
9669 # It fails to find uninstalled libraries when the uninstalled
9670 # path is not listed in the libpath. Setting hardcode_minus_L
9671 # to unsupported forces relinking
9672 hardcode_minus_L=yes
9673 hardcode_libdir_flag_spec='-L$libdir'
9674 hardcode_libdir_separator=
9678 shared_flag='-shared'
9679 if test "$aix_use_runtimelinking" = yes; then
9680 shared_flag="$shared_flag "'${wl}-G'
9684 if test "$host_cpu" = ia64; then
9685 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9686 # chokes on -Wl,-G. The following line is correct:
9689 if test "$aix_use_runtimelinking" = yes; then
9690 shared_flag='${wl}-G'
9692 shared_flag='${wl}-bM:SRE'
9697 export_dynamic_flag_spec='${wl}-bexpall'
9698 # It seems that -bexpall does not export symbols beginning with
9699 # underscore (_), so it is better to generate a list of symbols to export.
9700 always_export_symbols=yes
9701 if test "$aix_use_runtimelinking" = yes; then
9702 # Warning - without using the other runtime loading flags (-brtl),
9703 # -berok will link without error, but may produce a broken library.
9704 allow_undefined_flag='-berok'
9705 # Determine the default libpath from the value encoded in an
9707 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9708 /* end confdefs.h. */
9718 if ac_fn_c_try_link "$LINENO"; then :
9720 lt_aix_libpath_sed='
9721 /Import File Strings/,/^$/ {
9727 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9728 # Check for a 64-bit object if we didn't find anything.
9729 if test -z "$aix_libpath"; then
9730 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9733 rm -f core conftest.err conftest.$ac_objext \
9734 conftest$ac_exeext conftest.$ac_ext
9735 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9737 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9738 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"
9740 if test "$host_cpu" = ia64; then
9741 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9742 allow_undefined_flag="-z nodefs"
9743 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"
9745 # Determine the default libpath from the value encoded in an
9747 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9748 /* end confdefs.h. */
9758 if ac_fn_c_try_link "$LINENO"; then :
9760 lt_aix_libpath_sed='
9761 /Import File Strings/,/^$/ {
9767 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9768 # Check for a 64-bit object if we didn't find anything.
9769 if test -z "$aix_libpath"; then
9770 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9773 rm -f core conftest.err conftest.$ac_objext \
9774 conftest$ac_exeext conftest.$ac_ext
9775 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9777 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9778 # Warning - without using the other run time loading flags,
9779 # -berok will link without error, but may produce a broken library.
9780 no_undefined_flag=' ${wl}-bernotok'
9781 allow_undefined_flag=' ${wl}-berok'
9782 if test "$with_gnu_ld" = yes; then
9783 # We only use this code for GNU lds that support --whole-archive.
9784 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
9786 # Exported symbols can be pulled into shared objects from archives
9787 whole_archive_flag_spec='$convenience'
9789 archive_cmds_need_lc=yes
9790 # This is similar to how AIX traditionally builds its shared libraries.
9791 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'
9799 # see comment about AmigaOS4 .so support
9800 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9801 archive_expsym_cmds=''
9804 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)'
9805 hardcode_libdir_flag_spec='-L$libdir'
9806 hardcode_minus_L=yes
9812 export_dynamic_flag_spec=-rdynamic
9815 cygwin* | mingw* | pw32* | cegcc*)
9816 # When not using gcc, we currently assume that we are using
9817 # Microsoft Visual C++.
9818 # hardcode_libdir_flag_spec is actually meaningless, as there is
9819 # no search path for DLLs.
9820 hardcode_libdir_flag_spec=' '
9821 allow_undefined_flag=unsupported
9822 # Tell ltmain to make .lib files, not .a files.
9824 # Tell ltmain to make .dll files, not .so files.
9826 # FIXME: Setting linknames here is a bad hack.
9827 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
9828 # The linker will automatically build a .lib file if we build a DLL.
9829 old_archive_from_new_cmds='true'
9830 # FIXME: Should let the user specify the lib program.
9831 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9832 fix_srcfile_path='`cygpath -w "$srcfile"`'
9833 enable_shared_with_static_runtimes=yes
9836 darwin* | rhapsody*)
9839 archive_cmds_need_lc=no
9841 hardcode_automatic=yes
9842 hardcode_shlibpath_var=unsupported
9843 if test "$lt_cv_ld_force_load" = "yes"; then
9844 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\"`'
9846 whole_archive_flag_spec=''
9848 link_all_deplibs=yes
9849 allow_undefined_flag="$_lt_dar_allow_undefined"
9850 case $cc_basename in
9851 ifort*) _lt_dar_can_shared=yes ;;
9852 *) _lt_dar_can_shared=$GCC ;;
9854 if test "$_lt_dar_can_shared" = "yes"; then
9855 output_verbose_link_cmd=func_echo_all
9856 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9857 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9858 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}"
9859 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}"
9868 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9869 hardcode_libdir_flag_spec='-L$libdir'
9870 hardcode_shlibpath_var=no
9877 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9878 # support. Future versions do this automatically, but an explicit c++rt0.o
9879 # does not break anything, and helps significantly (at the cost of a little
9882 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9883 hardcode_libdir_flag_spec='-R$libdir'
9885 hardcode_shlibpath_var=no
9888 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9890 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9892 hardcode_minus_L=yes
9893 hardcode_shlibpath_var=no
9896 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9897 freebsd* | dragonfly*)
9898 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
9899 hardcode_libdir_flag_spec='-R$libdir'
9901 hardcode_shlibpath_var=no
9905 if test "$GCC" = yes; then
9906 archive_cmds='$RM $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
9908 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'
9910 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9911 hardcode_libdir_separator=:
9914 # hardcode_minus_L: Not really in the search PATH,
9915 # but as the default location of the library.
9916 hardcode_minus_L=yes
9917 export_dynamic_flag_spec='${wl}-E'
9921 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9922 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9924 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9926 if test "$with_gnu_ld" = no; then
9927 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9928 hardcode_libdir_flag_spec_ld='+b $libdir'
9929 hardcode_libdir_separator=:
9931 hardcode_direct_absolute=yes
9932 export_dynamic_flag_spec='${wl}-E'
9933 # hardcode_minus_L: Not really in the search PATH,
9934 # but as the default location of the library.
9935 hardcode_minus_L=yes
9940 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9943 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9946 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9949 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9955 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9958 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9962 # Older versions of the 11.00 compiler do not understand -b yet
9963 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
9964 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
9965 $as_echo_n "checking if $CC understands -b... " >&6; }
9966 if ${lt_cv_prog_compiler__b+:} false; then :
9967 $as_echo_n "(cached) " >&6
9969 lt_cv_prog_compiler__b=no
9970 save_LDFLAGS="$LDFLAGS"
9971 LDFLAGS="$LDFLAGS -b"
9972 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9973 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9974 # The linker can only warn and ignore the option if not recognized
9975 # So say no if there are warnings
9976 if test -s conftest.err; then
9977 # Append any errors to the config.log.
9978 cat conftest.err 1>&5
9979 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9980 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9981 if diff conftest.exp conftest.er2 >/dev/null; then
9982 lt_cv_prog_compiler__b=yes
9985 lt_cv_prog_compiler__b=yes
9989 LDFLAGS="$save_LDFLAGS"
9992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
9993 $as_echo "$lt_cv_prog_compiler__b" >&6; }
9995 if test x"$lt_cv_prog_compiler__b" = xyes; then
9996 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9998 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10004 if test "$with_gnu_ld" = no; then
10005 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10006 hardcode_libdir_separator=:
10011 hardcode_shlibpath_var=no
10014 hardcode_direct=yes
10015 hardcode_direct_absolute=yes
10016 export_dynamic_flag_spec='${wl}-E'
10018 # hardcode_minus_L: Not really in the search PATH,
10019 # but as the default location of the library.
10020 hardcode_minus_L=yes
10026 irix5* | irix6* | nonstopux*)
10027 if test "$GCC" = yes; then
10028 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
10029 # Try to use the -exported_symbol ld option, if it does not
10030 # work, assume that -exports_file does not work either and
10031 # implicitly export all symbols.
10032 save_LDFLAGS="$LDFLAGS"
10033 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
10034 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10035 /* end confdefs.h. */
10038 if ac_fn_c_try_link "$LINENO"; then :
10039 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'
10042 rm -f core conftest.err conftest.$ac_objext \
10043 conftest$ac_exeext conftest.$ac_ext
10044 LDFLAGS="$save_LDFLAGS"
10046 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'
10047 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'
10049 archive_cmds_need_lc='no'
10050 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10051 hardcode_libdir_separator=:
10053 link_all_deplibs=yes
10057 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10058 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
10060 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
10062 hardcode_libdir_flag_spec='-R$libdir'
10063 hardcode_direct=yes
10064 hardcode_shlibpath_var=no
10068 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10069 hardcode_direct=yes
10070 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10071 hardcode_libdir_separator=:
10072 hardcode_shlibpath_var=no
10079 if test -f /usr/libexec/ld.so; then
10080 hardcode_direct=yes
10081 hardcode_shlibpath_var=no
10082 hardcode_direct_absolute=yes
10083 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10084 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10085 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
10086 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10087 export_dynamic_flag_spec='${wl}-E'
10090 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
10091 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10092 hardcode_libdir_flag_spec='-R$libdir'
10095 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10096 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10106 hardcode_libdir_flag_spec='-L$libdir'
10107 hardcode_minus_L=yes
10108 allow_undefined_flag=unsupported
10109 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'
10110 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
10114 if test "$GCC" = yes; then
10115 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10116 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'
10118 allow_undefined_flag=' -expect_unresolved \*'
10119 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'
10121 archive_cmds_need_lc='no'
10122 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10123 hardcode_libdir_separator=:
10126 osf4* | osf5*) # as osf3* with the addition of -msym flag
10127 if test "$GCC" = yes; then
10128 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10129 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
10130 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10132 allow_undefined_flag=' -expect_unresolved \*'
10133 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'
10134 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~
10135 $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'
10137 # Both c and cxx compiler support -rpath directly
10138 hardcode_libdir_flag_spec='-rpath $libdir'
10140 archive_cmds_need_lc='no'
10141 hardcode_libdir_separator=:
10145 no_undefined_flag=' -z defs'
10146 if test "$GCC" = yes; then
10148 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10149 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10150 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10152 case `$CC -V 2>&1` in
10155 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
10156 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10157 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10161 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10162 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10163 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10167 hardcode_libdir_flag_spec='-R$libdir'
10168 hardcode_shlibpath_var=no
10170 solaris2.[0-5] | solaris2.[0-5].*) ;;
10172 # The compiler driver will combine and reorder linker options,
10173 # but understands `-z linker_flag'. GCC discards it without `$wl',
10174 # but is careful enough not to reorder.
10175 # Supported since Solaris 2.6 (maybe 2.5.1?)
10176 if test "$GCC" = yes; then
10177 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10179 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10183 link_all_deplibs=yes
10187 if test "x$host_vendor" = xsequent; then
10188 # Use $CC to link under sequent, because it throws in some extra .o
10189 # files that make .init and .fini sections work.
10190 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10192 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10194 hardcode_libdir_flag_spec='-L$libdir'
10195 hardcode_direct=yes
10196 hardcode_minus_L=yes
10197 hardcode_shlibpath_var=no
10201 case $host_vendor in
10203 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10204 hardcode_direct=yes # is this really true???
10207 ## LD is ld it makes a PLAMLIB
10208 ## CC just makes a GrossModule.
10209 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10210 reload_cmds='$CC -r -o $output$reload_objs'
10214 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10215 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10218 runpath_var='LD_RUN_PATH'
10219 hardcode_shlibpath_var=no
10223 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10224 hardcode_shlibpath_var=no
10225 export_dynamic_flag_spec='-Bexport'
10229 if test -d /usr/nec; then
10230 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10231 hardcode_shlibpath_var=no
10232 runpath_var=LD_RUN_PATH
10233 hardcode_runpath_var=yes
10238 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10239 no_undefined_flag='${wl}-z,text'
10240 archive_cmds_need_lc=no
10241 hardcode_shlibpath_var=no
10242 runpath_var='LD_RUN_PATH'
10244 if test "$GCC" = yes; then
10245 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10246 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10248 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10249 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10253 sysv5* | sco3.2v5* | sco5v6*)
10254 # Note: We can NOT use -z defs as we might desire, because we do not
10255 # link with -lc, and that would cause any symbols used from libc to
10256 # always be unresolved, which means just about no library would
10257 # ever link correctly. If we're not using GNU ld we use -z text
10258 # though, which does catch some bad symbols but isn't as heavy-handed
10260 no_undefined_flag='${wl}-z,text'
10261 allow_undefined_flag='${wl}-z,nodefs'
10262 archive_cmds_need_lc=no
10263 hardcode_shlibpath_var=no
10264 hardcode_libdir_flag_spec='${wl}-R,$libdir'
10265 hardcode_libdir_separator=':'
10266 link_all_deplibs=yes
10267 export_dynamic_flag_spec='${wl}-Bexport'
10268 runpath_var='LD_RUN_PATH'
10270 if test "$GCC" = yes; then
10271 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10272 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10274 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10275 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10280 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10281 hardcode_libdir_flag_spec='-L$libdir'
10282 hardcode_shlibpath_var=no
10290 if test x$host_vendor = xsni; then
10292 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10293 export_dynamic_flag_spec='${wl}-Blargedynsym'
10299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10300 $as_echo "$ld_shlibs" >&6; }
10301 test "$ld_shlibs" = no && can_build_shared=no
10303 with_gnu_ld=$with_gnu_ld
10320 # Do we need to explicitly link libc?
10322 case "x$archive_cmds_need_lc" in
10324 # Assume -lc should be added
10325 archive_cmds_need_lc=yes
10327 if test "$enable_shared" = yes && test "$GCC" = yes; then
10328 case $archive_cmds in
10330 # FIXME: we may have to deal with multi-command sequences.
10333 # Test whether the compiler implicitly links with -lc since on some
10334 # systems, -lgcc has to come before -lc. If gcc already passes -lc
10335 # to ld, don't add -lc before -lgcc.
10336 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10337 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
10338 if ${lt_cv_archive_cmds_need_lc+:} false; then :
10339 $as_echo_n "(cached) " >&6
10342 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10344 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10345 (eval $ac_compile) 2>&5
10347 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10348 test $ac_status = 0; } 2>conftest.err; then
10351 libobjs=conftest.$ac_objext
10353 wl=$lt_prog_compiler_wl
10354 pic_flag=$lt_prog_compiler_pic
10360 lt_save_allow_undefined_flag=$allow_undefined_flag
10361 allow_undefined_flag=
10362 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
10363 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
10365 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10366 test $ac_status = 0; }
10368 lt_cv_archive_cmds_need_lc=no
10370 lt_cv_archive_cmds_need_lc=yes
10372 allow_undefined_flag=$lt_save_allow_undefined_flag
10374 cat conftest.err 1>&5
10379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
10380 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
10381 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
10544 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10545 $as_echo_n "checking dynamic linker characteristics... " >&6; }
10547 if test "$GCC" = yes; then
10549 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
10550 *) lt_awk_arg="/^libraries:/" ;;
10553 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
10554 *) lt_sed_strip_eq="s,=/,/,g" ;;
10556 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
10557 case $lt_search_path_spec in
10559 # if the path contains ";" then we assume it to be the separator
10560 # otherwise default to the standard path separator (i.e. ":") - it is
10561 # assumed that no part of a normal pathname contains ";" but that should
10562 # okay in the real world where ";" in dirpaths is itself problematic.
10563 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
10566 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
10569 # Ok, now we have the path, separated by spaces, we can step through it
10570 # and add multilib dir if necessary.
10571 lt_tmp_lt_search_path_spec=
10572 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10573 for lt_sys_path in $lt_search_path_spec; do
10574 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
10575 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
10577 test -d "$lt_sys_path" && \
10578 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10581 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
10582 BEGIN {RS=" "; FS="/|\n";} {
10585 for (lt_i = NF; lt_i > 0; lt_i--) {
10586 if ($lt_i != "" && $lt_i != ".") {
10587 if ($lt_i == "..") {
10590 if (lt_count == 0) {
10591 lt_foo="/" $lt_i lt_foo;
10598 if (lt_foo != "") { lt_freq[lt_foo]++; }
10599 if (lt_freq[lt_foo] == 1) { print lt_foo; }
10601 # AWK program above erroneously prepends '/' to C:/dos/paths
10604 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
10605 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
10607 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
10609 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10611 library_names_spec=
10612 libname_spec='lib$name'
10616 postuninstall_cmds=
10620 shlibpath_overrides_runpath=unknown
10622 dynamic_linker="$host_os ld.so"
10623 sys_lib_dlsearch_path_spec="/lib /usr/lib"
10624 need_lib_prefix=unknown
10625 hardcode_into_libs=no
10627 # when you set need_version to no, make sure it does not cause -set_version
10628 # flags to be left without arguments
10629 need_version=unknown
10634 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10635 shlibpath_var=LIBPATH
10637 # AIX 3 has no versioning support, so we append a major version to the name.
10638 soname_spec='${libname}${release}${shared_ext}$major'
10645 hardcode_into_libs=yes
10646 if test "$host_cpu" = ia64; then
10647 # AIX 5 supports IA64
10648 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10649 shlibpath_var=LD_LIBRARY_PATH
10651 # With GCC up to 2.95.x, collect2 would create an import file
10652 # for dependence libraries. The import file would start with
10653 # the line `#! .'. This would cause the generated library to
10654 # depend on `.', always an invalid library. This was fixed in
10655 # development snapshots of GCC prior to 3.0.
10657 aix4 | aix4.[01] | aix4.[01].*)
10658 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10660 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
10663 can_build_shared=no
10667 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10668 # soname into executable. Probably we can add versioning support to
10669 # collect2, so additional links can be useful in future.
10670 if test "$aix_use_runtimelinking" = yes; then
10671 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10672 # instead of lib<name>.a to let people know that these are not
10673 # typical AIX shared libraries.
10674 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10676 # We preserve .a as extension for shared libraries through AIX4.2
10677 # and later when we are not doing run time linking.
10678 library_names_spec='${libname}${release}.a $libname.a'
10679 soname_spec='${libname}${release}${shared_ext}$major'
10681 shlibpath_var=LIBPATH
10688 # Since July 2007 AmigaOS4 officially supports .so libraries.
10689 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10690 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10693 library_names_spec='$libname.ixlibrary $libname.a'
10694 # Create ${libname}_ixlibrary.a entries in /sys/libs.
10695 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'
10701 library_names_spec='${libname}${shared_ext}'
10702 dynamic_linker="$host_os ld.so"
10703 shlibpath_var=LIBRARY_PATH
10709 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10710 soname_spec='${libname}${release}${shared_ext}$major'
10711 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10712 shlibpath_var=LD_LIBRARY_PATH
10713 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10714 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10715 # the default ld.so.conf also contains /usr/contrib/lib and
10716 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10717 # libtool to hard-code these into programs
10720 cygwin* | mingw* | pw32* | cegcc*)
10721 version_type=windows
10726 case $GCC,$host_os in
10727 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
10728 library_names_spec='$libname.dll.a'
10729 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10730 postinstall_cmds='base_file=`basename \${file}`~
10731 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10732 dldir=$destdir/`dirname \$dlpath`~
10733 test -d \$dldir || mkdir -p \$dldir~
10734 $install_prog $dir/$dlname \$dldir/$dlname~
10735 chmod a+x \$dldir/$dlname~
10736 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10737 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10739 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10740 dlpath=$dir/\$dldll~
10742 shlibpath_overrides_runpath=yes
10746 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10747 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10749 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
10752 # MinGW DLLs use traditional 'lib' prefix
10753 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10756 # pw32 DLLs use 'pw' prefix rather than 'lib'
10757 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10763 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10766 dynamic_linker='Win32 ld.exe'
10767 # FIXME: first we should search . and the directory the executable is in
10771 darwin* | rhapsody*)
10772 dynamic_linker="$host_os dyld"
10773 version_type=darwin
10776 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10777 soname_spec='${libname}${release}${major}$shared_ext'
10778 shlibpath_overrides_runpath=yes
10779 shlibpath_var=DYLD_LIBRARY_PATH
10780 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10782 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10783 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10790 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10791 soname_spec='${libname}${release}${shared_ext}$major'
10792 shlibpath_var=LD_LIBRARY_PATH
10799 freebsd* | dragonfly*)
10800 # DragonFly does not have aout. When/if they implement a new
10801 # versioning mechanism, adjust this.
10802 if test -x /usr/bin/objformat; then
10803 objformat=`/usr/bin/objformat`
10806 freebsd[123]*) objformat=aout ;;
10807 *) objformat=elf ;;
10810 version_type=freebsd-$objformat
10811 case $version_type in
10813 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10818 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10822 shlibpath_var=LD_LIBRARY_PATH
10825 shlibpath_overrides_runpath=yes
10827 freebsd3.[01]* | freebsdelf3.[01]*)
10828 shlibpath_overrides_runpath=yes
10829 hardcode_into_libs=yes
10831 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10832 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10833 shlibpath_overrides_runpath=no
10834 hardcode_into_libs=yes
10836 *) # from 4.6 on, and DragonFly
10837 shlibpath_overrides_runpath=yes
10838 hardcode_into_libs=yes
10847 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10848 soname_spec='${libname}${release}${shared_ext}$major'
10849 shlibpath_var=LD_LIBRARY_PATH
10850 hardcode_into_libs=yes
10857 dynamic_linker="$host_os runtime_loader"
10858 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10859 soname_spec='${libname}${release}${shared_ext}$major'
10860 shlibpath_var=LIBRARY_PATH
10861 shlibpath_overrides_runpath=yes
10862 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
10863 hardcode_into_libs=yes
10866 hpux9* | hpux10* | hpux11*)
10867 # Give a soname corresponding to the major version so that dld.sl refuses to
10868 # link against other versions.
10875 hardcode_into_libs=yes
10876 dynamic_linker="$host_os dld.so"
10877 shlibpath_var=LD_LIBRARY_PATH
10878 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10879 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10880 soname_spec='${libname}${release}${shared_ext}$major'
10881 if test "X$HPUX_IA64_MODE" = X32; then
10882 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10884 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10886 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10890 hardcode_into_libs=yes
10891 dynamic_linker="$host_os dld.sl"
10892 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10893 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10894 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10895 soname_spec='${libname}${release}${shared_ext}$major'
10896 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10897 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10901 dynamic_linker="$host_os dld.sl"
10902 shlibpath_var=SHLIB_PATH
10903 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10904 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10905 soname_spec='${libname}${release}${shared_ext}$major'
10908 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
10909 postinstall_cmds='chmod 555 $lib'
10910 # or fails outright, so override atomically:
10911 install_override_mode=555
10918 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10919 soname_spec='${libname}${release}${shared_ext}$major'
10920 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10921 shlibpath_var=LD_LIBRARY_PATH
10922 shlibpath_overrides_runpath=no
10923 hardcode_into_libs=yes
10926 irix5* | irix6* | nonstopux*)
10928 nonstopux*) version_type=nonstopux ;;
10930 if test "$lt_cv_prog_gnu_ld" = yes; then
10938 soname_spec='${libname}${release}${shared_ext}$major'
10939 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10941 irix5* | nonstopux*)
10942 libsuff= shlibsuff=
10945 case $LD in # libtool.m4 will add one of these switches to LD
10946 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10947 libsuff= shlibsuff= libmagic=32-bit;;
10948 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10949 libsuff=32 shlibsuff=N32 libmagic=N32;;
10950 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10951 libsuff=64 shlibsuff=64 libmagic=64-bit;;
10952 *) libsuff= shlibsuff= libmagic=never-match;;
10956 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10957 shlibpath_overrides_runpath=no
10958 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10959 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10960 hardcode_into_libs=yes
10963 # No shared lib support for Linux oldld, aout, or coff.
10964 linux*oldld* | linux*aout* | linux*coff*)
10968 # This must be Linux ELF.
10969 linux* | k*bsd*-gnu | kopensolaris*-gnu)
10973 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10974 soname_spec='${libname}${release}${shared_ext}$major'
10975 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10976 shlibpath_var=LD_LIBRARY_PATH
10977 shlibpath_overrides_runpath=no
10979 # Some binutils ld are patched to set DT_RUNPATH
10980 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
10981 $as_echo_n "(cached) " >&6
10983 lt_cv_shlibpath_overrides_runpath=no
10984 save_LDFLAGS=$LDFLAGS
10985 save_libdir=$libdir
10986 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10987 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10988 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10989 /* end confdefs.h. */
10999 if ac_fn_c_try_link "$LINENO"; then :
11000 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
11001 lt_cv_shlibpath_overrides_runpath=yes
11004 rm -f core conftest.err conftest.$ac_objext \
11005 conftest$ac_exeext conftest.$ac_ext
11006 LDFLAGS=$save_LDFLAGS
11007 libdir=$save_libdir
11011 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
11013 # This implies no fast_install, which is unacceptable.
11014 # Some rework will be needed to allow for fast_install
11015 # before this can be enabled.
11016 hardcode_into_libs=yes
11018 # Append ld.so.conf contents to the search path
11019 if test -f /etc/ld.so.conf; then
11020 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' ' '`
11021 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
11024 # We used to test for /lib/ld.so.1 and disable shared libraries on
11025 # powerpc, because MkLinux only supported shared libraries with the
11026 # GNU dynamic linker. Since this was broken with cross compilers,
11027 # most powerpc-linux boxes support dynamic linking these days and
11028 # people can always --disable-shared, the test was removed, and we
11029 # assume the GNU/Linux dynamic linker is in use.
11030 dynamic_linker='GNU/Linux ld.so'
11037 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11038 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11039 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11040 dynamic_linker='NetBSD (a.out) ld.so'
11042 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11043 soname_spec='${libname}${release}${shared_ext}$major'
11044 dynamic_linker='NetBSD ld.elf_so'
11046 shlibpath_var=LD_LIBRARY_PATH
11047 shlibpath_overrides_runpath=yes
11048 hardcode_into_libs=yes
11053 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11054 shlibpath_var=LD_LIBRARY_PATH
11055 shlibpath_overrides_runpath=yes
11062 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11063 soname_spec='${libname}${release}${shared_ext}$major'
11064 shlibpath_var=LD_LIBRARY_PATH
11065 shlibpath_overrides_runpath=no
11066 hardcode_into_libs=yes
11067 dynamic_linker='ldqnx.so'
11072 sys_lib_dlsearch_path_spec="/usr/lib"
11074 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
11076 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
11077 *) need_version=no ;;
11079 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11080 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11081 shlibpath_var=LD_LIBRARY_PATH
11082 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11084 openbsd2.[89] | openbsd2.[89].*)
11085 shlibpath_overrides_runpath=no
11088 shlibpath_overrides_runpath=yes
11092 shlibpath_overrides_runpath=yes
11097 libname_spec='$name'
11100 library_names_spec='$libname${shared_ext} $libname.a'
11101 dynamic_linker='OS/2 ld.exe'
11102 shlibpath_var=LIBPATH
11105 osf3* | osf4* | osf5*)
11109 soname_spec='${libname}${release}${shared_ext}$major'
11110 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11111 shlibpath_var=LD_LIBRARY_PATH
11112 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11113 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11124 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11125 soname_spec='${libname}${release}${shared_ext}$major'
11126 shlibpath_var=LD_LIBRARY_PATH
11127 shlibpath_overrides_runpath=yes
11128 hardcode_into_libs=yes
11129 # ldd complains unless libraries are executable
11130 postinstall_cmds='chmod +x $lib'
11135 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11136 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11137 shlibpath_var=LD_LIBRARY_PATH
11138 shlibpath_overrides_runpath=yes
11139 if test "$with_gnu_ld" = yes; then
11147 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11148 soname_spec='${libname}${release}${shared_ext}$major'
11149 shlibpath_var=LD_LIBRARY_PATH
11150 case $host_vendor in
11152 shlibpath_overrides_runpath=no
11154 runpath_var=LD_RUN_PATH
11162 shlibpath_overrides_runpath=no
11163 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11169 if test -d /usr/nec ;then
11171 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11172 soname_spec='$libname${shared_ext}.$major'
11173 shlibpath_var=LD_LIBRARY_PATH
11177 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11178 version_type=freebsd-elf
11181 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11182 soname_spec='${libname}${release}${shared_ext}$major'
11183 shlibpath_var=LD_LIBRARY_PATH
11184 shlibpath_overrides_runpath=yes
11185 hardcode_into_libs=yes
11186 if test "$with_gnu_ld" = yes; then
11187 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11189 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11192 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11196 sys_lib_dlsearch_path_spec='/usr/lib'
11200 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
11204 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11205 shlibpath_var=LD_LIBRARY_PATH
11206 shlibpath_overrides_runpath=no
11207 hardcode_into_libs=yes
11212 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11213 soname_spec='${libname}${release}${shared_ext}$major'
11214 shlibpath_var=LD_LIBRARY_PATH
11221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
11222 $as_echo "$dynamic_linker" >&6; }
11223 test "$dynamic_linker" = no && can_build_shared=no
11225 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11226 if test "$GCC" = yes; then
11227 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11230 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
11231 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
11233 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
11234 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
11328 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
11329 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
11331 if test -n "$hardcode_libdir_flag_spec" ||
11332 test -n "$runpath_var" ||
11333 test "X$hardcode_automatic" = "Xyes" ; then
11335 # We can hardcode non-existent directories.
11336 if test "$hardcode_direct" != no &&
11337 # If the only mechanism to avoid hardcoding is shlibpath_var, we
11338 # have to relink, otherwise we might link with an installed library
11339 # when we should be linking with a yet-to-be-installed one
11340 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
11341 test "$hardcode_minus_L" != no; then
11342 # Linking always hardcodes the temporary library directory.
11343 hardcode_action=relink
11345 # We can link without hardcoding, and we can hardcode nonexisting dirs.
11346 hardcode_action=immediate
11349 # We cannot hardcode anything, or else we can only hardcode existing
11351 hardcode_action=unsupported
11353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
11354 $as_echo "$hardcode_action" >&6; }
11356 if test "$hardcode_action" = relink ||
11357 test "$inherit_rpath" = yes; then
11358 # Fast installation is not supported
11359 enable_fast_install=no
11360 elif test "$shlibpath_overrides_runpath" = yes ||
11361 test "$enable_shared" = no; then
11362 # Fast installation is not necessary
11363 enable_fast_install=needless
11371 if test "x$enable_dlopen" != xyes; then
11372 enable_dlopen=unknown
11373 enable_dlopen_self=unknown
11374 enable_dlopen_self_static=unknown
11381 lt_cv_dlopen="load_add_on"
11383 lt_cv_dlopen_self=yes
11386 mingw* | pw32* | cegcc*)
11387 lt_cv_dlopen="LoadLibrary"
11392 lt_cv_dlopen="dlopen"
11397 # if libdl is installed we need to link against it
11398 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11399 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11400 if ${ac_cv_lib_dl_dlopen+:} false; then :
11401 $as_echo_n "(cached) " >&6
11403 ac_check_lib_save_LIBS=$LIBS
11405 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11406 /* end confdefs.h. */
11408 /* Override any GCC internal prototype to avoid an error.
11409 Use char because int might match the return type of a GCC
11410 builtin and then its argument prototype would still apply. */
11423 if ac_fn_c_try_link "$LINENO"; then :
11424 ac_cv_lib_dl_dlopen=yes
11426 ac_cv_lib_dl_dlopen=no
11428 rm -f core conftest.err conftest.$ac_objext \
11429 conftest$ac_exeext conftest.$ac_ext
11430 LIBS=$ac_check_lib_save_LIBS
11432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11433 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11434 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11435 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11438 lt_cv_dlopen="dyld"
11440 lt_cv_dlopen_self=yes
11447 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
11448 if test "x$ac_cv_func_shl_load" = xyes; then :
11449 lt_cv_dlopen="shl_load"
11451 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
11452 $as_echo_n "checking for shl_load in -ldld... " >&6; }
11453 if ${ac_cv_lib_dld_shl_load+:} false; then :
11454 $as_echo_n "(cached) " >&6
11456 ac_check_lib_save_LIBS=$LIBS
11458 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11459 /* end confdefs.h. */
11461 /* Override any GCC internal prototype to avoid an error.
11462 Use char because int might match the return type of a GCC
11463 builtin and then its argument prototype would still apply. */
11471 return shl_load ();
11476 if ac_fn_c_try_link "$LINENO"; then :
11477 ac_cv_lib_dld_shl_load=yes
11479 ac_cv_lib_dld_shl_load=no
11481 rm -f core conftest.err conftest.$ac_objext \
11482 conftest$ac_exeext conftest.$ac_ext
11483 LIBS=$ac_check_lib_save_LIBS
11485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
11486 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
11487 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
11488 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
11490 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
11491 if test "x$ac_cv_func_dlopen" = xyes; then :
11492 lt_cv_dlopen="dlopen"
11494 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11495 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11496 if ${ac_cv_lib_dl_dlopen+:} false; then :
11497 $as_echo_n "(cached) " >&6
11499 ac_check_lib_save_LIBS=$LIBS
11501 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11502 /* end confdefs.h. */
11504 /* Override any GCC internal prototype to avoid an error.
11505 Use char because int might match the return type of a GCC
11506 builtin and then its argument prototype would still apply. */
11519 if ac_fn_c_try_link "$LINENO"; then :
11520 ac_cv_lib_dl_dlopen=yes
11522 ac_cv_lib_dl_dlopen=no
11524 rm -f core conftest.err conftest.$ac_objext \
11525 conftest$ac_exeext conftest.$ac_ext
11526 LIBS=$ac_check_lib_save_LIBS
11528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11529 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11530 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11531 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11533 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11534 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
11535 if ${ac_cv_lib_svld_dlopen+:} false; then :
11536 $as_echo_n "(cached) " >&6
11538 ac_check_lib_save_LIBS=$LIBS
11539 LIBS="-lsvld $LIBS"
11540 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11541 /* end confdefs.h. */
11543 /* Override any GCC internal prototype to avoid an error.
11544 Use char because int might match the return type of a GCC
11545 builtin and then its argument prototype would still apply. */
11558 if ac_fn_c_try_link "$LINENO"; then :
11559 ac_cv_lib_svld_dlopen=yes
11561 ac_cv_lib_svld_dlopen=no
11563 rm -f core conftest.err conftest.$ac_objext \
11564 conftest$ac_exeext conftest.$ac_ext
11565 LIBS=$ac_check_lib_save_LIBS
11567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11568 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11569 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
11570 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11572 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11573 $as_echo_n "checking for dld_link in -ldld... " >&6; }
11574 if ${ac_cv_lib_dld_dld_link+:} false; then :
11575 $as_echo_n "(cached) " >&6
11577 ac_check_lib_save_LIBS=$LIBS
11579 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11580 /* end confdefs.h. */
11582 /* Override any GCC internal prototype to avoid an error.
11583 Use char because int might match the return type of a GCC
11584 builtin and then its argument prototype would still apply. */
11592 return dld_link ();
11597 if ac_fn_c_try_link "$LINENO"; then :
11598 ac_cv_lib_dld_dld_link=yes
11600 ac_cv_lib_dld_dld_link=no
11602 rm -f core conftest.err conftest.$ac_objext \
11603 conftest$ac_exeext conftest.$ac_ext
11604 LIBS=$ac_check_lib_save_LIBS
11606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11607 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11608 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
11609 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
11630 if test "x$lt_cv_dlopen" != xno; then
11636 case $lt_cv_dlopen in
11638 save_CPPFLAGS="$CPPFLAGS"
11639 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11641 save_LDFLAGS="$LDFLAGS"
11642 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11645 LIBS="$lt_cv_dlopen_libs $LIBS"
11647 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
11648 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
11649 if ${lt_cv_dlopen_self+:} false; then :
11650 $as_echo_n "(cached) " >&6
11652 if test "$cross_compiling" = yes; then :
11653 lt_cv_dlopen_self=cross
11655 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11656 lt_status=$lt_dlunknown
11657 cat > conftest.$ac_ext <<_LT_EOF
11658 #line $LINENO "configure"
11659 #include "confdefs.h"
11668 # define LT_DLGLOBAL RTLD_GLOBAL
11671 # define LT_DLGLOBAL DL_GLOBAL
11673 # define LT_DLGLOBAL 0
11677 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11678 find out it does not work in some platform. */
11679 #ifndef LT_DLLAZY_OR_NOW
11681 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11684 # define LT_DLLAZY_OR_NOW DL_LAZY
11687 # define LT_DLLAZY_OR_NOW RTLD_NOW
11690 # define LT_DLLAZY_OR_NOW DL_NOW
11692 # define LT_DLLAZY_OR_NOW 0
11699 /* When -fvisbility=hidden is used, assume the code has been annotated
11700 correspondingly for the symbols needed. */
11701 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11702 void fnord () __attribute__((visibility("default")));
11705 void fnord () { int i=42; }
11708 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11709 int status = $lt_dlunknown;
11713 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11716 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11717 else puts (dlerror ());
11719 /* dlclose (self); */
11727 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11728 (eval $ac_link) 2>&5
11730 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11731 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11732 (./conftest; exit; ) >&5 2>/dev/null
11734 case x$lt_status in
11735 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11736 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11737 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11740 # compilation failed
11741 lt_cv_dlopen_self=no
11748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11749 $as_echo "$lt_cv_dlopen_self" >&6; }
11751 if test "x$lt_cv_dlopen_self" = xyes; then
11752 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11753 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11754 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11755 if ${lt_cv_dlopen_self_static+:} false; then :
11756 $as_echo_n "(cached) " >&6
11758 if test "$cross_compiling" = yes; then :
11759 lt_cv_dlopen_self_static=cross
11761 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11762 lt_status=$lt_dlunknown
11763 cat > conftest.$ac_ext <<_LT_EOF
11764 #line $LINENO "configure"
11765 #include "confdefs.h"
11774 # define LT_DLGLOBAL RTLD_GLOBAL
11777 # define LT_DLGLOBAL DL_GLOBAL
11779 # define LT_DLGLOBAL 0
11783 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11784 find out it does not work in some platform. */
11785 #ifndef LT_DLLAZY_OR_NOW
11787 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11790 # define LT_DLLAZY_OR_NOW DL_LAZY
11793 # define LT_DLLAZY_OR_NOW RTLD_NOW
11796 # define LT_DLLAZY_OR_NOW DL_NOW
11798 # define LT_DLLAZY_OR_NOW 0
11805 /* When -fvisbility=hidden is used, assume the code has been annotated
11806 correspondingly for the symbols needed. */
11807 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11808 void fnord () __attribute__((visibility("default")));
11811 void fnord () { int i=42; }
11814 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11815 int status = $lt_dlunknown;
11819 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11822 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11823 else puts (dlerror ());
11825 /* dlclose (self); */
11833 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11834 (eval $ac_link) 2>&5
11836 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11837 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11838 (./conftest; exit; ) >&5 2>/dev/null
11840 case x$lt_status in
11841 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11842 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11843 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11846 # compilation failed
11847 lt_cv_dlopen_self_static=no
11854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11855 $as_echo "$lt_cv_dlopen_self_static" >&6; }
11858 CPPFLAGS="$save_CPPFLAGS"
11859 LDFLAGS="$save_LDFLAGS"
11864 case $lt_cv_dlopen_self in
11865 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11866 *) enable_dlopen_self=unknown ;;
11869 case $lt_cv_dlopen_self_static in
11870 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11871 *) enable_dlopen_self_static=unknown ;;
11893 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11894 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
11895 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11896 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11897 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11899 $as_echo "yes" >&6; }
11901 # FIXME - insert some real tests, host_os isn't really good enough
11904 if test -n "$STRIP" ; then
11905 striplib="$STRIP -x"
11906 old_striplib="$STRIP -S"
11907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11908 $as_echo "yes" >&6; }
11910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11911 $as_echo "no" >&6; }
11915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11916 $as_echo "no" >&6; }
11932 # Report which library types will actually be built
11933 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
11934 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
11935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
11936 $as_echo "$can_build_shared" >&6; }
11938 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
11939 $as_echo_n "checking whether to build shared libraries... " >&6; }
11940 test "$can_build_shared" = "no" && enable_shared=no
11942 # On AIX, shared libraries and static libraries use the same namespace, and
11943 # are all built from PIC.
11946 test "$enable_shared" = yes && enable_static=no
11947 if test -n "$RANLIB"; then
11948 archive_cmds="$archive_cmds~\$RANLIB \$lib"
11949 postinstall_cmds='$RANLIB $lib'
11954 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11955 test "$enable_shared" = yes && enable_static=no
11959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
11960 $as_echo "$enable_shared" >&6; }
11962 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
11963 $as_echo_n "checking whether to build static libraries... " >&6; }
11964 # Make sure either enable_shared or enable_static is yes.
11965 test "$enable_shared" = yes || enable_static=yes
11966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
11967 $as_echo "$enable_static" >&6; }
11974 ac_cpp='$CPP $CPPFLAGS'
11975 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11976 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11977 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11993 ac_config_commands="$ac_config_commands libtool"
11998 # Only expand once:
12002 # Checks for libraries.
12004 # Checks for header files.
12005 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
12006 $as_echo_n "checking for ANSI C header files... " >&6; }
12007 if ${ac_cv_header_stdc+:} false; then :
12008 $as_echo_n "(cached) " >&6
12010 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12011 /* end confdefs.h. */
12012 #include <stdlib.h>
12013 #include <stdarg.h>
12014 #include <string.h>
12025 if ac_fn_c_try_compile "$LINENO"; then :
12026 ac_cv_header_stdc=yes
12028 ac_cv_header_stdc=no
12030 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12032 if test $ac_cv_header_stdc = yes; then
12033 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
12034 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12035 /* end confdefs.h. */
12036 #include <string.h>
12039 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12040 $EGREP "memchr" >/dev/null 2>&1; then :
12043 ac_cv_header_stdc=no
12049 if test $ac_cv_header_stdc = yes; then
12050 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
12051 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12052 /* end confdefs.h. */
12053 #include <stdlib.h>
12056 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12057 $EGREP "free" >/dev/null 2>&1; then :
12060 ac_cv_header_stdc=no
12066 if test $ac_cv_header_stdc = yes; then
12067 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
12068 if test "$cross_compiling" = yes; then :
12071 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12072 /* end confdefs.h. */
12074 #include <stdlib.h>
12075 #if ((' ' & 0x0FF) == 0x020)
12076 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
12077 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
12079 # define ISLOWER(c) \
12080 (('a' <= (c) && (c) <= 'i') \
12081 || ('j' <= (c) && (c) <= 'r') \
12082 || ('s' <= (c) && (c) <= 'z'))
12083 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
12086 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
12091 for (i = 0; i < 256; i++)
12092 if (XOR (islower (i), ISLOWER (i))
12093 || toupper (i) != TOUPPER (i))
12098 if ac_fn_c_try_run "$LINENO"; then :
12101 ac_cv_header_stdc=no
12103 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12104 conftest.$ac_objext conftest.beam conftest.$ac_ext
12109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
12110 $as_echo "$ac_cv_header_stdc" >&6; }
12111 if test $ac_cv_header_stdc = yes; then
12113 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
12117 for ac_header in limits.h stdlib.h string.h sys/time.h unistd.h
12119 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
12120 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
12121 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
12122 cat >>confdefs.h <<_ACEOF
12123 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
12131 # Checks for typedefs, structures, and compiler characteristics.
12132 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdbool.h that conforms to C99" >&5
12133 $as_echo_n "checking for stdbool.h that conforms to C99... " >&6; }
12134 if ${ac_cv_header_stdbool_h+:} false; then :
12135 $as_echo_n "(cached) " >&6
12137 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12138 /* end confdefs.h. */
12140 #include <stdbool.h>
12142 "error: bool is not defined"
12145 "error: false is not defined"
12148 "error: false is not 0"
12151 "error: true is not defined"
12154 "error: true is not 1"
12156 #ifndef __bool_true_false_are_defined
12157 "error: __bool_true_false_are_defined is not defined"
12160 struct s { _Bool s: 1; _Bool t; } s;
12162 char a[true == 1 ? 1 : -1];
12163 char b[false == 0 ? 1 : -1];
12164 char c[__bool_true_false_are_defined == 1 ? 1 : -1];
12165 char d[(bool) 0.5 == true ? 1 : -1];
12166 /* See body of main program for 'e'. */
12167 char f[(_Bool) 0.0 == false ? 1 : -1];
12169 char h[sizeof (_Bool)];
12170 char i[sizeof s.t];
12171 enum { j = false, k = true, l = false * true, m = true * 256 };
12172 /* The following fails for
12173 HP aC++/ANSI C B3910B A.05.55 [Dec 04 2003]. */
12175 char o[sizeof n == m * sizeof n[0] ? 1 : -1];
12176 char p[-1 - (_Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1];
12177 /* Catch a bug in an HP-UX C compiler. See
12178 http://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html
12179 http://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html
12191 /* Refer to every declared value, to avoid compiler optimizations. */
12192 return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l
12193 + !m + !n + !o + !p + !q + !pq);
12199 if ac_fn_c_try_compile "$LINENO"; then :
12200 ac_cv_header_stdbool_h=yes
12202 ac_cv_header_stdbool_h=no
12204 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdbool_h" >&5
12207 $as_echo "$ac_cv_header_stdbool_h" >&6; }
12208 ac_fn_c_check_type "$LINENO" "_Bool" "ac_cv_type__Bool" "$ac_includes_default"
12209 if test "x$ac_cv_type__Bool" = xyes; then :
12211 cat >>confdefs.h <<_ACEOF
12212 #define HAVE__BOOL 1
12219 if test $ac_cv_header_stdbool_h = yes; then
12221 $as_echo "#define HAVE_STDBOOL_H 1" >>confdefs.h
12225 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
12226 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
12227 if ${ac_cv_c_const+:} false; then :
12228 $as_echo_n "(cached) " >&6
12230 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12231 /* end confdefs.h. */
12237 #ifndef __cplusplus
12238 /* Ultrix mips cc rejects this sort of thing. */
12239 typedef int charset[2];
12240 const charset cs = { 0, 0 };
12241 /* SunOS 4.1.1 cc rejects this. */
12242 char const *const *pcpcc;
12244 /* NEC SVR4.0.2 mips cc rejects this. */
12245 struct point {int x, y;};
12246 static struct point const zero = {0,0};
12247 /* AIX XL C 1.02.0.0 rejects this.
12248 It does not let you subtract one const X* pointer from another in
12249 an arm of an if-expression whose if-part is not a constant
12251 const char *g = "string";
12252 pcpcc = &g + (g ? g-g : 0);
12253 /* HPUX 7.0 cc rejects these. */
12255 ppc = (char**) pcpcc;
12256 pcpcc = (char const *const *) ppc;
12257 { /* SCO 3.2v4 cc rejects this sort of thing. */
12260 char const *s = 0 ? (char *) 0 : (char const *) 0;
12265 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
12266 int x[] = {25, 17};
12267 const int *foo = &x[0];
12270 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
12271 typedef const int *iptr;
12275 { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
12276 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
12277 struct s { int j; const int *ap[3]; } bx;
12278 struct s *b = &bx; b->j = 5;
12280 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
12281 const int foo = 10;
12282 if (!foo) return 0;
12284 return !cs[0] && !zero.x;
12291 if ac_fn_c_try_compile "$LINENO"; then :
12296 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
12299 $as_echo "$ac_cv_c_const" >&6; }
12300 if test $ac_cv_c_const = no; then
12302 $as_echo "#define const /**/" >>confdefs.h
12306 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
12307 $as_echo_n "checking for inline... " >&6; }
12308 if ${ac_cv_c_inline+:} false; then :
12309 $as_echo_n "(cached) " >&6
12312 for ac_kw in inline __inline__ __inline; do
12313 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12314 /* end confdefs.h. */
12315 #ifndef __cplusplus
12317 static $ac_kw foo_t static_foo () {return 0; }
12318 $ac_kw foo_t foo () {return 0; }
12322 if ac_fn_c_try_compile "$LINENO"; then :
12323 ac_cv_c_inline=$ac_kw
12325 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12326 test "$ac_cv_c_inline" != no && break
12330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
12331 $as_echo "$ac_cv_c_inline" >&6; }
12333 case $ac_cv_c_inline in
12336 case $ac_cv_c_inline in
12338 *) ac_val=$ac_cv_c_inline;;
12340 cat >>confdefs.h <<_ACEOF
12341 #ifndef __cplusplus
12342 #define inline $ac_val
12348 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
12349 if test "x$ac_cv_type_size_t" = xyes; then :
12353 cat >>confdefs.h <<_ACEOF
12354 #define size_t unsigned int
12361 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long double with more range or precision than double" >&5
12362 $as_echo_n "checking for long double with more range or precision than double... " >&6; }
12363 if ${ac_cv_type_long_double_wider+:} false; then :
12364 $as_echo_n "(cached) " >&6
12366 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12367 /* end confdefs.h. */
12369 long double const a[] =
12371 0.0L, DBL_MIN, DBL_MAX, DBL_EPSILON,
12372 LDBL_MIN, LDBL_MAX, LDBL_EPSILON
12377 return ((x + (unsigned long int) 10) * (-1 / x) + a[0]
12378 + (x ? f (x) : 'c'));
12384 static int test_array [1 - 2 * !((0 < ((DBL_MAX_EXP < LDBL_MAX_EXP)
12385 + (DBL_MANT_DIG < LDBL_MANT_DIG)
12386 - (LDBL_MAX_EXP < DBL_MAX_EXP)
12387 - (LDBL_MANT_DIG < DBL_MANT_DIG)))
12388 && (int) LDBL_EPSILON == 0
12390 test_array [0] = 0;
12391 return test_array [0];
12397 if ac_fn_c_try_compile "$LINENO"; then :
12398 ac_cv_type_long_double_wider=yes
12400 ac_cv_type_long_double_wider=no
12402 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_double_wider" >&5
12405 $as_echo "$ac_cv_type_long_double_wider" >&6; }
12406 if test $ac_cv_type_long_double_wider = yes; then
12408 $as_echo "#define HAVE_LONG_DOUBLE_WIDER 1" >>confdefs.h
12412 ac_cv_c_long_double=$ac_cv_type_long_double_wider
12413 if test $ac_cv_c_long_double = yes; then
12415 $as_echo "#define HAVE_LONG_DOUBLE 1" >>confdefs.h
12419 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
12420 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
12421 if ${ac_cv_header_time+:} false; then :
12422 $as_echo_n "(cached) " >&6
12424 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12425 /* end confdefs.h. */
12426 #include <sys/types.h>
12427 #include <sys/time.h>
12433 if ((struct tm *) 0)
12439 if ac_fn_c_try_compile "$LINENO"; then :
12440 ac_cv_header_time=yes
12442 ac_cv_header_time=no
12444 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
12447 $as_echo "$ac_cv_header_time" >&6; }
12448 if test $ac_cv_header_time = yes; then
12450 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
12454 ac_fn_c_check_type "$LINENO" "u_char" "ac_cv_type_u_char" "$ac_includes_default"
12455 if test "x$ac_cv_type_u_char" = xyes; then :
12457 cat >>confdefs.h <<_ACEOF
12458 #define HAVE_U_CHAR 1
12463 ac_fn_c_check_type "$LINENO" "u_short" "ac_cv_type_u_short" "$ac_includes_default"
12464 if test "x$ac_cv_type_u_short" = xyes; then :
12466 cat >>confdefs.h <<_ACEOF
12467 #define HAVE_U_SHORT 1
12472 ac_fn_c_check_type "$LINENO" "u_int" "ac_cv_type_u_int" "$ac_includes_default"
12473 if test "x$ac_cv_type_u_int" = xyes; then :
12475 cat >>confdefs.h <<_ACEOF
12476 #define HAVE_U_INT 1
12481 ac_fn_c_check_type "$LINENO" "u_long" "ac_cv_type_u_long" "$ac_includes_default"
12482 if test "x$ac_cv_type_u_long" = xyes; then :
12484 cat >>confdefs.h <<_ACEOF
12485 #define HAVE_U_LONG 1
12491 ac_fn_c_check_type "$LINENO" "quad_t" "ac_cv_type_quad_t" "$ac_includes_default"
12492 if test "x$ac_cv_type_quad_t" = xyes; then :
12494 cat >>confdefs.h <<_ACEOF
12495 #define HAVE_QUAD_T 1
12500 ac_fn_c_check_type "$LINENO" "int64_t" "ac_cv_type_int64_t" "$ac_includes_default"
12501 if test "x$ac_cv_type_int64_t" = xyes; then :
12503 cat >>confdefs.h <<_ACEOF
12504 #define HAVE_INT64_T 1
12509 ac_fn_c_check_type "$LINENO" "long long" "ac_cv_type_long_long" "$ac_includes_default"
12510 if test "x$ac_cv_type_long_long" = xyes; then :
12512 cat >>confdefs.h <<_ACEOF
12513 #define HAVE_LONG_LONG 1
12519 ac_fn_c_check_type "$LINENO" "u_quad_t" "ac_cv_type_u_quad_t" "$ac_includes_default"
12520 if test "x$ac_cv_type_u_quad_t" = xyes; then :
12522 cat >>confdefs.h <<_ACEOF
12523 #define HAVE_U_QUAD_T 1
12528 ac_fn_c_check_type "$LINENO" "u_int64_t" "ac_cv_type_u_int64_t" "$ac_includes_default"
12529 if test "x$ac_cv_type_u_int64_t" = xyes; then :
12531 cat >>confdefs.h <<_ACEOF
12532 #define HAVE_U_INT64_T 1
12537 ac_fn_c_check_type "$LINENO" "unsigned long long" "ac_cv_type_unsigned_long_long" "$ac_includes_default"
12538 if test "x$ac_cv_type_unsigned_long_long" = xyes; then :
12540 cat >>confdefs.h <<_ACEOF
12541 #define HAVE_UNSIGNED_LONG_LONG 1
12548 # Checks for library functions.
12549 for ac_header in stdlib.h
12551 ac_fn_c_check_header_mongrel "$LINENO" "stdlib.h" "ac_cv_header_stdlib_h" "$ac_includes_default"
12552 if test "x$ac_cv_header_stdlib_h" = xyes; then :
12553 cat >>confdefs.h <<_ACEOF
12554 #define HAVE_STDLIB_H 1
12561 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU libc compatible malloc" >&5
12562 $as_echo_n "checking for GNU libc compatible malloc... " >&6; }
12563 if ${ac_cv_func_malloc_0_nonnull+:} false; then :
12564 $as_echo_n "(cached) " >&6
12566 if test "$cross_compiling" = yes; then :
12567 ac_cv_func_malloc_0_nonnull=no
12569 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12570 /* end confdefs.h. */
12571 #if defined STDC_HEADERS || defined HAVE_STDLIB_H
12572 # include <stdlib.h>
12580 return ! malloc (0);
12585 if ac_fn_c_try_run "$LINENO"; then :
12586 ac_cv_func_malloc_0_nonnull=yes
12588 ac_cv_func_malloc_0_nonnull=no
12590 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12591 conftest.$ac_objext conftest.beam conftest.$ac_ext
12595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_malloc_0_nonnull" >&5
12596 $as_echo "$ac_cv_func_malloc_0_nonnull" >&6; }
12597 if test $ac_cv_func_malloc_0_nonnull = yes; then :
12599 $as_echo "#define HAVE_MALLOC 1" >>confdefs.h
12602 $as_echo "#define HAVE_MALLOC 0" >>confdefs.h
12604 case " $LIBOBJS " in
12605 *" malloc.$ac_objext "* ) ;;
12606 *) LIBOBJS="$LIBOBJS malloc.$ac_objext"
12611 $as_echo "#define malloc rpl_malloc" >>confdefs.h
12616 for ac_header in stdlib.h
12618 ac_fn_c_check_header_mongrel "$LINENO" "stdlib.h" "ac_cv_header_stdlib_h" "$ac_includes_default"
12619 if test "x$ac_cv_header_stdlib_h" = xyes; then :
12620 cat >>confdefs.h <<_ACEOF
12621 #define HAVE_STDLIB_H 1
12628 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU libc compatible realloc" >&5
12629 $as_echo_n "checking for GNU libc compatible realloc... " >&6; }
12630 if ${ac_cv_func_realloc_0_nonnull+:} false; then :
12631 $as_echo_n "(cached) " >&6
12633 if test "$cross_compiling" = yes; then :
12634 ac_cv_func_realloc_0_nonnull=no
12636 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12637 /* end confdefs.h. */
12638 #if defined STDC_HEADERS || defined HAVE_STDLIB_H
12639 # include <stdlib.h>
12647 return ! realloc (0, 0);
12652 if ac_fn_c_try_run "$LINENO"; then :
12653 ac_cv_func_realloc_0_nonnull=yes
12655 ac_cv_func_realloc_0_nonnull=no
12657 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12658 conftest.$ac_objext conftest.beam conftest.$ac_ext
12662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_realloc_0_nonnull" >&5
12663 $as_echo "$ac_cv_func_realloc_0_nonnull" >&6; }
12664 if test $ac_cv_func_realloc_0_nonnull = yes; then :
12666 $as_echo "#define HAVE_REALLOC 1" >>confdefs.h
12669 $as_echo "#define HAVE_REALLOC 0" >>confdefs.h
12671 case " $LIBOBJS " in
12672 *" realloc.$ac_objext "* ) ;;
12673 *) LIBOBJS="$LIBOBJS realloc.$ac_objext"
12678 $as_echo "#define realloc rpl_realloc" >>confdefs.h
12683 for ac_func in vprintf
12685 ac_fn_c_check_func "$LINENO" "vprintf" "ac_cv_func_vprintf"
12686 if test "x$ac_cv_func_vprintf" = xyes; then :
12687 cat >>confdefs.h <<_ACEOF
12688 #define HAVE_VPRINTF 1
12691 ac_fn_c_check_func "$LINENO" "_doprnt" "ac_cv_func__doprnt"
12692 if test "x$ac_cv_func__doprnt" = xyes; then :
12694 $as_echo "#define HAVE_DOPRNT 1" >>confdefs.h
12702 for ac_func in gettimeofday memset strcasecmp strerror strncasecmp strrchr strstr
12704 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
12705 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
12706 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
12707 cat >>confdefs.h <<_ACEOF
12708 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
12714 for ac_func in atexit on_exit
12716 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
12717 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
12718 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
12719 cat >>confdefs.h <<_ACEOF
12720 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
12726 ac_fn_c_check_func "$LINENO" "strdup" "ac_cv_func_strdup"
12727 if test "x$ac_cv_func_strdup" = xyes; then :
12728 $as_echo "#define HAVE_STRDUP 1" >>confdefs.h
12731 case " $LIBOBJS " in
12732 *" strdup.$ac_objext "* ) ;;
12733 *) LIBOBJS="$LIBOBJS strdup.$ac_objext"
12741 # Initialize the test suite and build position independent wrappers.
12742 ac_config_files="$ac_config_files Makefile src/Makefile src/ccunit/Makefile src/tools/Makefile doc/Makefile doc/Doxyfile tests/Makefile examples/Makefile examples/complex/Makefile"
12745 cat >confcache <<\_ACEOF
12746 # This file is a shell script that caches the results of configure
12747 # tests run on this system so they can be shared between configure
12748 # scripts and configure runs, see configure's option --config-cache.
12749 # It is not useful on other systems. If it contains results you don't
12750 # want to keep, you may remove or edit it.
12752 # config.status only pays attention to the cache file if you give it
12753 # the --recheck option to rerun configure.
12755 # `ac_cv_env_foo' variables (set or unset) will be overridden when
12756 # loading this file, other *unset* `ac_cv_foo' will be assigned the
12757 # following values.
12761 # The following way of writing the cache mishandles newlines in values,
12762 # but we know of no workaround that is simple, portable, and efficient.
12763 # So, we kill variables containing newlines.
12764 # Ultrix sh set writes to stderr and can't be redirected directly,
12765 # and sets the high bit in the cache file unless we assign to the vars.
12767 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
12768 eval ac_val=\$$ac_var
12772 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
12773 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
12776 _ | IFS | as_nl) ;; #(
12777 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
12778 *) { eval $ac_var=; unset $ac_var;} ;;
12784 case $as_nl`(ac_space=' '; set) 2>&1` in #(
12785 *${as_nl}ac_space=\ *)
12786 # `set' does not quote correctly, so add quotes: double-quote
12787 # substitution turns \\\\ into \\, and sed turns \\ into \.
12790 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
12793 # `set' quotes correctly as required by POSIX, so do not add quotes.
12794 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
12803 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
12805 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
12807 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
12808 if test -w "$cache_file"; then
12809 if test "x$cache_file" != "x/dev/null"; then
12810 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
12811 $as_echo "$as_me: updating cache $cache_file" >&6;}
12812 if test ! -f "$cache_file" || test -h "$cache_file"; then
12813 cat confcache >"$cache_file"
12815 case $cache_file in #(
12817 mv -f confcache "$cache_file"$$ &&
12818 mv -f "$cache_file"$$ "$cache_file" ;; #(
12820 mv -f confcache "$cache_file" ;;
12825 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
12826 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
12831 test "x$prefix" = xNONE && prefix=$ac_default_prefix
12832 # Let make expand exec_prefix.
12833 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
12835 DEFS=-DHAVE_CONFIG_H
12840 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
12841 # 1. Remove the extension, and $U if already installed.
12842 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
12843 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
12844 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
12845 # will be set to the directory where LIBOBJS objects are built.
12846 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
12847 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
12849 LIBOBJS=$ac_libobjs
12851 LTLIBOBJS=$ac_ltlibobjs
12854 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
12855 $as_echo_n "checking that generated files are newer than configure... " >&6; }
12856 if test -n "$am_sleep_pid"; then
12857 # Hide warnings about reused PIDs.
12858 wait $am_sleep_pid 2>/dev/null
12860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
12861 $as_echo "done" >&6; }
12862 if test -n "$EXEEXT"; then
12864 am__EXEEXT_FALSE='#'
12866 am__EXEEXT_TRUE='#'
12870 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
12871 as_fn_error $? "conditional \"AMDEP\" was never defined.
12872 Usually this means the macro was only invoked conditionally." "$LINENO" 5
12874 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
12875 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
12876 Usually this means the macro was only invoked conditionally." "$LINENO" 5
12878 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
12879 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
12880 Usually this means the macro was only invoked conditionally." "$LINENO" 5
12882 if test -z "${DOC_TRUE}" && test -z "${DOC_FALSE}"; then
12883 as_fn_error $? "conditional \"DOC\" was never defined.
12884 Usually this means the macro was only invoked conditionally." "$LINENO" 5
12886 if test -z "${ENABLE_JADOC_TRUE}" && test -z "${ENABLE_JADOC_FALSE}"; then
12887 as_fn_error $? "conditional \"ENABLE_JADOC\" was never defined.
12888 Usually this means the macro was only invoked conditionally." "$LINENO" 5
12891 : "${CONFIG_STATUS=./config.status}"
12893 ac_clean_files_save=$ac_clean_files
12894 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
12895 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
12896 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
12898 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
12900 # Generated by $as_me.
12901 # Run this file to recreate the current configuration.
12902 # Compiler output produced by configure, useful for debugging
12903 # configure, is in config.log if it exists.
12906 ac_cs_recheck=false
12909 SHELL=\${CONFIG_SHELL-$SHELL}
12912 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
12913 ## -------------------- ##
12914 ## M4sh Initialization. ##
12915 ## -------------------- ##
12917 # Be more Bourne compatible
12918 DUALCASE=1; export DUALCASE # for MKS sh
12919 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
12922 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
12923 # is contrary to our usage. Disable this feature.
12924 alias -g '${1+"$@"}'='"$@"'
12925 setopt NO_GLOB_SUBST
12927 case `(set -o) 2>/dev/null` in #(
12939 # Printing a long string crashes Solaris 7 /usr/bin/printf.
12940 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
12941 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
12942 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
12943 # Prefer a ksh shell builtin over an external printf program on Solaris,
12944 # but without wasting forks for bash or zsh.
12945 if test -z "$BASH_VERSION$ZSH_VERSION" \
12946 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
12947 as_echo='print -r --'
12948 as_echo_n='print -rn --'
12949 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
12950 as_echo='printf %s\n'
12951 as_echo_n='printf %s'
12953 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
12954 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
12955 as_echo_n='/usr/ucb/echo -n'
12957 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
12958 as_echo_n_body='eval
12962 expr "X$arg" : "X\\(.*\\)$as_nl";
12963 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
12965 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
12967 export as_echo_n_body
12968 as_echo_n='sh -c $as_echo_n_body as_echo'
12970 export as_echo_body
12971 as_echo='sh -c $as_echo_body as_echo'
12974 # The user is always right.
12975 if test "${PATH_SEPARATOR+set}" != set; then
12977 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
12978 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
12985 # We need space, tab and new line, in precisely that order. Quoting is
12986 # there to prevent editors from complaining about space-tab.
12987 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
12988 # splitting by setting IFS to empty value.)
12991 # Find who we are. Look in the path if we contain no directory separator.
12994 *[\\/]* ) as_myself=$0 ;;
12995 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12996 for as_dir in $PATH
12999 test -z "$as_dir" && as_dir=.
13000 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
13006 # We did not find ourselves, most probably we were run as `sh COMMAND'
13007 # in which case we are not to be found in the path.
13008 if test "x$as_myself" = x; then
13011 if test ! -f "$as_myself"; then
13012 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
13016 # Unset variables that we do not need and which cause bugs (e.g. in
13017 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
13018 # suppresses any "Segmentation fault" message there. '((' could
13019 # trigger a bug in pdksh 5.2.14.
13020 for as_var in BASH_ENV ENV MAIL MAILPATH
13021 do eval test x\${$as_var+set} = xset \
13022 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
13035 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
13038 # as_fn_error STATUS ERROR [LINENO LOG_FD]
13039 # ----------------------------------------
13040 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
13041 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
13042 # script with STATUS, using 1 if that was 0.
13045 as_status=$1; test $as_status -eq 0 && as_status=1
13047 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
13048 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
13050 $as_echo "$as_me: error: $2" >&2
13051 as_fn_exit $as_status
13055 # as_fn_set_status STATUS
13056 # -----------------------
13057 # Set $? to STATUS, without forking.
13058 as_fn_set_status ()
13061 } # as_fn_set_status
13063 # as_fn_exit STATUS
13064 # -----------------
13065 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
13069 as_fn_set_status $1
13075 # Portably unset VAR.
13078 { eval $1=; unset $1;}
13080 as_unset=as_fn_unset
13081 # as_fn_append VAR VALUE
13082 # ----------------------
13083 # Append the text in VALUE to the end of the definition contained in VAR. Take
13084 # advantage of any shell optimizations that allow amortized linear growth over
13085 # repeated appends, instead of the typical quadratic growth present in naive
13087 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
13088 eval 'as_fn_append ()
13099 # as_fn_arith ARG...
13100 # ------------------
13101 # Perform arithmetic evaluation on the ARGs, and store the result in the
13102 # global $as_val. Take advantage of shells that can avoid forks. The arguments
13103 # must be portable across $(()) and expr.
13104 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
13105 eval 'as_fn_arith ()
13112 as_val=`expr "$@" || test $? -eq 1`
13117 if expr a : '\(a\)' >/dev/null 2>&1 &&
13118 test "X`expr 00001 : '.*\(...\)'`" = X001; then
13124 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
13125 as_basename=basename
13130 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
13136 as_me=`$as_basename -- "$0" ||
13137 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
13138 X"$0" : 'X\(//\)$' \| \
13139 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
13141 sed '/^.*\/\([^/][^/]*\)\/*$/{
13155 # Avoid depending upon Character Ranges.
13156 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
13157 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
13158 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
13159 as_cr_digits='0123456789'
13160 as_cr_alnum=$as_cr_Letters$as_cr_digits
13162 ECHO_C= ECHO_N= ECHO_T=
13163 case `echo -n x` in #(((((
13165 case `echo 'xy\c'` in
13166 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
13168 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
13175 rm -f conf$$ conf$$.exe conf$$.file
13176 if test -d conf$$.dir; then
13177 rm -f conf$$.dir/conf$$.file
13180 mkdir conf$$.dir 2>/dev/null
13182 if (echo >conf$$.file) 2>/dev/null; then
13183 if ln -s conf$$.file conf$$ 2>/dev/null; then
13185 # ... but there are two gotchas:
13186 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
13187 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
13188 # In both cases, we have to default to `cp -pR'.
13189 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
13191 elif ln conf$$.file conf$$ 2>/dev/null; then
13199 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
13200 rmdir conf$$.dir 2>/dev/null
13205 # Create "$as_dir" as a directory, including parents if necessary.
13210 -*) as_dir=./$as_dir;;
13212 test -d "$as_dir" || eval $as_mkdir_p || {
13216 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
13217 *) as_qdir=$as_dir;;
13219 as_dirs="'$as_qdir' $as_dirs"
13220 as_dir=`$as_dirname -- "$as_dir" ||
13221 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13222 X"$as_dir" : 'X\(//\)[^/]' \| \
13223 X"$as_dir" : 'X\(//\)$' \| \
13224 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
13225 $as_echo X"$as_dir" |
13226 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13230 /^X\(\/\/\)[^/].*/{
13243 test -d "$as_dir" && break
13245 test -z "$as_dirs" || eval "mkdir $as_dirs"
13246 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
13250 if mkdir -p . 2>/dev/null; then
13251 as_mkdir_p='mkdir -p "$as_dir"'
13253 test -d ./-p && rmdir ./-p
13258 # as_fn_executable_p FILE
13259 # -----------------------
13260 # Test if FILE is an executable regular file.
13261 as_fn_executable_p ()
13263 test -f "$1" && test -x "$1"
13264 } # as_fn_executable_p
13265 as_test_x='test -x'
13266 as_executable_p=as_fn_executable_p
13268 # Sed expression to map a string onto a valid CPP name.
13269 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
13271 # Sed expression to map a string onto a valid variable name.
13272 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
13276 ## ----------------------------------- ##
13277 ## Main body of $CONFIG_STATUS script. ##
13278 ## ----------------------------------- ##
13280 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
13282 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13283 # Save the log message, to keep $0 and so on meaningful, and to
13284 # report actual input values of CONFIG_FILES etc. instead of their
13285 # values after options handling.
13287 This file was extended by CCUnit $as_me 2.1, which was
13288 generated by GNU Autoconf 2.69. Invocation command line was
13290 CONFIG_FILES = $CONFIG_FILES
13291 CONFIG_HEADERS = $CONFIG_HEADERS
13292 CONFIG_LINKS = $CONFIG_LINKS
13293 CONFIG_COMMANDS = $CONFIG_COMMANDS
13296 on `(hostname || uname -n) 2>/dev/null | sed 1q`
13301 case $ac_config_files in *"
13302 "*) set x $ac_config_files; shift; ac_config_files=$*;;
13305 case $ac_config_headers in *"
13306 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
13310 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13311 # Files that config.status was made for.
13312 config_files="$ac_config_files"
13313 config_headers="$ac_config_headers"
13314 config_commands="$ac_config_commands"
13318 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13320 \`$as_me' instantiates files and other configuration actions
13321 from templates according to the current configuration. Unless the files
13322 and actions are specified as TAGs, all are instantiated by default.
13324 Usage: $0 [OPTION]... [TAG]...
13326 -h, --help print this help, then exit
13327 -V, --version print version number and configuration settings, then exit
13328 --config print configuration, then exit
13329 -q, --quiet, --silent
13330 do not print progress messages
13331 -d, --debug don't remove temporary files
13332 --recheck update $as_me by reconfiguring in the same conditions
13333 --file=FILE[:TEMPLATE]
13334 instantiate the configuration file FILE
13335 --header=FILE[:TEMPLATE]
13336 instantiate the configuration header FILE
13338 Configuration files:
13341 Configuration headers:
13344 Configuration commands:
13347 Report bugs to <tsntsumi@users.sourceforge.jp>.
13348 CCUnit home page: <http://ccunit.sourceforge.jp>."
13351 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13352 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
13354 CCUnit config.status 2.1
13355 configured by $0, generated by GNU Autoconf 2.69,
13356 with options \\"\$ac_cs_config\\"
13358 Copyright (C) 2012 Free Software Foundation, Inc.
13359 This config.status script is free software; the Free Software Foundation
13360 gives unlimited permission to copy, distribute and modify it."
13367 test -n "\$AWK" || AWK=awk
13370 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13371 # The default lists apply if the user does not specify any file.
13377 ac_option=`expr "X$1" : 'X\([^=]*\)='`
13378 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
13382 ac_option=`expr "X$1" : 'X\([^=]*\)='`
13394 # Handling of the options.
13395 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
13397 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
13398 $as_echo "$ac_cs_version"; exit ;;
13399 --config | --confi | --conf | --con | --co | --c )
13400 $as_echo "$ac_cs_config"; exit ;;
13401 --debug | --debu | --deb | --de | --d | -d )
13403 --file | --fil | --fi | --f )
13406 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
13407 '') as_fn_error $? "missing file argument" ;;
13409 as_fn_append CONFIG_FILES " '$ac_optarg'"
13410 ac_need_defaults=false;;
13411 --header | --heade | --head | --hea )
13414 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
13416 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
13417 ac_need_defaults=false;;
13419 # Conflict between --help and --header
13420 as_fn_error $? "ambiguous option: \`$1'
13421 Try \`$0 --help' for more information.";;
13422 --help | --hel | -h )
13423 $as_echo "$ac_cs_usage"; exit ;;
13424 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
13425 | -silent | --silent | --silen | --sile | --sil | --si | --s)
13428 # This is an error.
13429 -*) as_fn_error $? "unrecognized option: \`$1'
13430 Try \`$0 --help' for more information." ;;
13432 *) as_fn_append ac_config_targets " $1"
13433 ac_need_defaults=false ;;
13439 ac_configure_extra_args=
13441 if $ac_cs_silent; then
13443 ac_configure_extra_args="$ac_configure_extra_args --silent"
13447 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13448 if \$ac_cs_recheck; then
13449 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
13451 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
13452 CONFIG_SHELL='$SHELL'
13453 export CONFIG_SHELL
13458 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13462 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
13463 ## Running $as_me. ##
13469 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13474 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
13477 # The HP-UX ksh and POSIX shell print the target directory to stdout
13478 # if CDPATH is set.
13479 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
13481 sed_quote_subst='$sed_quote_subst'
13482 double_quote_subst='$double_quote_subst'
13483 delay_variable_subst='$delay_variable_subst'
13484 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
13485 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
13486 AS='`$ECHO "$AS" | $SED "$delay_single_quote_subst"`'
13487 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
13488 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
13489 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
13490 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
13491 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
13492 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
13493 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
13494 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
13495 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
13496 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
13497 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
13498 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
13499 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
13500 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
13501 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
13502 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
13503 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
13504 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
13505 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
13506 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
13507 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
13508 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
13509 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
13510 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
13511 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
13512 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
13513 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
13514 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
13515 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
13516 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
13517 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
13518 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
13519 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
13520 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
13521 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
13522 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
13523 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
13524 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
13525 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
13526 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
13527 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
13528 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
13529 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
13530 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
13531 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
13532 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
13533 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
13534 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"`'
13535 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
13536 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
13537 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
13538 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
13539 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
13540 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
13541 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
13542 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
13543 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
13544 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
13545 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
13546 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
13547 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
13548 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
13549 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
13550 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
13551 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
13552 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
13553 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
13554 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
13555 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
13556 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
13557 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
13558 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
13559 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
13560 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
13561 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
13562 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
13563 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
13564 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
13565 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
13566 hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
13567 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
13568 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
13569 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
13570 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
13571 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
13572 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
13573 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
13574 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
13575 fix_srcfile_path='`$ECHO "$fix_srcfile_path" | $SED "$delay_single_quote_subst"`'
13576 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
13577 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
13578 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
13579 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
13580 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
13581 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
13582 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
13583 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
13584 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
13585 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
13586 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
13587 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
13588 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
13589 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
13590 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
13591 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
13592 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
13593 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
13594 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
13595 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
13596 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
13597 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
13598 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
13599 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
13600 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
13601 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
13602 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
13603 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
13604 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
13605 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
13608 LTCFLAGS='$LTCFLAGS'
13609 compiler='$compiler_DEFAULT'
13611 # A function that is used when there is no print builtin or printf.
13612 func_fallback_echo ()
13614 eval 'cat <<_LTECHO_EOF
13619 # Quote evaled strings.
13635 deplibs_check_method \
13644 lt_cv_sys_global_symbol_pipe \
13645 lt_cv_sys_global_symbol_to_cdecl \
13646 lt_cv_sys_global_symbol_to_c_name_address \
13647 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
13648 lt_prog_compiler_no_builtin_flag \
13649 lt_prog_compiler_wl \
13650 lt_prog_compiler_pic \
13651 lt_prog_compiler_static \
13652 lt_cv_prog_compiler_c_o \
13660 export_dynamic_flag_spec \
13661 whole_archive_flag_spec \
13662 compiler_needs_object \
13664 allow_undefined_flag \
13665 no_undefined_flag \
13666 hardcode_libdir_flag_spec \
13667 hardcode_libdir_flag_spec_ld \
13668 hardcode_libdir_separator \
13673 variables_saved_for_relink \
13675 library_names_spec \
13677 install_override_mode \
13681 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
13682 *[\\\\\\\`\\"\\\$]*)
13683 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
13686 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
13691 # Double-quote double-evaled strings.
13692 for var in reload_cmds \
13693 old_postinstall_cmds \
13694 old_postuninstall_cmds \
13696 extract_expsyms_cmds \
13697 old_archive_from_new_cmds \
13698 old_archive_from_expsyms_cmds \
13700 archive_expsym_cmds \
13702 module_expsym_cmds \
13703 export_symbols_cmds \
13706 postuninstall_cmds \
13708 sys_lib_search_path_spec \
13709 sys_lib_dlsearch_path_spec; do
13710 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
13711 *[\\\\\\\`\\"\\\$]*)
13712 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
13715 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
13720 ac_aux_dir='$ac_aux_dir'
13721 xsi_shell='$xsi_shell'
13722 lt_shell_append='$lt_shell_append'
13724 # See if we are running on zsh, and set the options which allow our
13725 # commands through without removal of \ escapes INIT.
13726 if test -n "\${ZSH_VERSION+set}" ; then
13727 setopt NO_GLOB_SUBST
13733 TIMESTAMP='$TIMESTAMP'
13742 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13744 # Handling of arguments.
13745 for ac_config_target in $ac_config_targets
13747 case $ac_config_target in
13748 "config/config.h") CONFIG_HEADERS="$CONFIG_HEADERS config/config.h" ;;
13749 "src/ccunit/config.h") CONFIG_COMMANDS="$CONFIG_COMMANDS src/ccunit/config.h" ;;
13750 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
13751 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
13752 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
13753 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
13754 "src/ccunit/Makefile") CONFIG_FILES="$CONFIG_FILES src/ccunit/Makefile" ;;
13755 "src/tools/Makefile") CONFIG_FILES="$CONFIG_FILES src/tools/Makefile" ;;
13756 "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
13757 "doc/Doxyfile") CONFIG_FILES="$CONFIG_FILES doc/Doxyfile" ;;
13758 "tests/Makefile") CONFIG_FILES="$CONFIG_FILES tests/Makefile" ;;
13759 "examples/Makefile") CONFIG_FILES="$CONFIG_FILES examples/Makefile" ;;
13760 "examples/complex/Makefile") CONFIG_FILES="$CONFIG_FILES examples/complex/Makefile" ;;
13762 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
13767 # If the user did not use the arguments to specify the items to instantiate,
13768 # then the envvar interface is used. Set only those that are not.
13769 # We use the long form for the default assignment because of an extremely
13770 # bizarre bug on SunOS 4.1.3.
13771 if $ac_need_defaults; then
13772 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
13773 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
13774 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
13777 # Have a temporary directory for convenience. Make it in the build tree
13778 # simply because there is no reason against having it here, and in addition,
13779 # creating and moving files from /tmp can sometimes cause problems.
13780 # Hook for its removal unless debugging.
13781 # Note that there is a small window in which the directory will not be cleaned:
13782 # after its creation but before its name has been assigned to `$tmp'.
13786 trap 'exit_status=$?
13787 : "${ac_tmp:=$tmp}"
13788 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
13790 trap 'as_fn_exit 1' 1 2 13 15
13792 # Create a (secure) tmp directory for tmp files.
13795 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
13799 tmp=./conf$$-$RANDOM
13800 (umask 077 && mkdir "$tmp")
13801 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
13804 # Set up the scripts for CONFIG_FILES section.
13805 # No need to generate them if there are no CONFIG_FILES.
13806 # This happens for instance with `./config.status config.h'.
13807 if test -n "$CONFIG_FILES"; then
13810 ac_cr=`echo X | tr X '\015'`
13811 # On cygwin, bash can eat \r inside `` if the user requested igncr.
13812 # But we know of no other shell where ac_cr would be empty at this
13813 # point, so we can use a bashism as a fallback.
13814 if test "x$ac_cr" = x; then
13815 eval ac_cr=\$\'\\r\'
13817 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
13818 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
13821 ac_cs_awk_cr=$ac_cr
13824 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
13829 echo "cat >conf$$subs.awk <<_ACEOF" &&
13830 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
13832 } >conf$$subs.sh ||
13833 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
13834 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
13836 for ac_last_try in false false false false false :; do
13837 . ./conf$$subs.sh ||
13838 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
13840 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
13841 if test $ac_delim_n = $ac_delim_num; then
13843 elif $ac_last_try; then
13844 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
13846 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
13849 rm -f conf$$subs.sh
13851 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13852 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
13856 s/^/S["/; s/!.*/"]=/
13866 s/\(.\{148\}\)..*/\1/
13868 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
13873 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
13880 s/\(.\{148\}\)..*/\1/
13882 s/["\\]/\\&/g; s/^/"/; s/$/"/
13886 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
13891 ' <conf$$subs.awk | sed '
13896 ' >>$CONFIG_STATUS || ac_write_fail=1
13897 rm -f conf$$subs.awk
13898 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13900 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
13901 for (key in S) S_is_set[key] = 1
13907 nfields = split(line, field, "@")
13909 len = length(field[1])
13910 for (i = 2; i < nfields; i++) {
13912 keylen = length(key)
13913 if (S_is_set[key]) {
13915 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
13916 len += length(value) + length(field[++i])
13927 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13928 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
13929 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
13932 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
13933 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
13936 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
13937 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
13938 # trailing colons and then remove the whole line if VPATH becomes empty
13939 # (actually we leave an empty line to preserve line numbers).
13940 if test "x$srcdir" = x.; then
13941 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
13959 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13960 fi # test -n "$CONFIG_FILES"
13962 # Set up the scripts for CONFIG_HEADERS section.
13963 # No need to generate them if there are no CONFIG_HEADERS.
13964 # This happens for instance with `./config.status Makefile'.
13965 if test -n "$CONFIG_HEADERS"; then
13966 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
13970 # Transform confdefs.h into an awk script `defines.awk', embedded as
13971 # here-document in config.status, that substitutes the proper values into
13972 # config.h.in to produce config.h.
13974 # Create a delimiter string that does not exist in confdefs.h, to ease
13975 # handling of long lines.
13977 for ac_last_try in false false :; do
13978 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
13979 if test -z "$ac_tt"; then
13981 elif $ac_last_try; then
13982 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
13984 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
13988 # For the awk script, D is an array of macro values keyed by name,
13989 # likewise P contains macro parameters if any. Preserve backslash
13990 # newline sequences.
13992 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
13994 s/.\{148\}/&'"$ac_delim"'/g
13997 s/^[ ]*#[ ]*define[ ][ ]*/ /
14004 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
14006 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
14010 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
14011 D["\1"]=" \3\\\\\\n"\\/p
14013 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
14018 s/.\{148\}/&'"$ac_delim"'/g
14023 s/["\\]/\\&/g; s/^/"/; s/$/"/p
14026 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
14028 ' <confdefs.h | sed '
14029 s/'"$ac_delim"'/"\\\
14030 "/g' >>$CONFIG_STATUS || ac_write_fail=1
14032 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14033 for (key in D) D_is_set[key] = 1
14036 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
14038 split(line, arg, " ")
14039 if (arg[1] == "#") {
14043 defundef = substr(arg[1], 2)
14046 split(mac1, mac2, "(") #)
14048 prefix = substr(line, 1, index(line, defundef) - 1)
14049 if (D_is_set[macro]) {
14050 # Preserve the white space surrounding the "#".
14051 print prefix "define", macro P[macro] D[macro]
14054 # Replace #undef with comments. This is necessary, for example,
14055 # in the case of _POSIX_SOURCE, which is predefined and required
14056 # on some systems where configure will not decide to define it.
14057 if (defundef == "undef") {
14058 print "/*", prefix defundef, macro, "*/"
14066 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14067 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
14068 fi # test -n "$CONFIG_HEADERS"
14071 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
14076 :[FHLC]) ac_mode=$ac_tag; continue;;
14078 case $ac_mode$ac_tag in
14080 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
14081 :[FH]-) ac_tag=-:-;;
14082 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
14099 -) ac_f="$ac_tmp/stdin";;
14100 *) # Look for the file first in the build tree, then in the source tree
14101 # (if the path is not absolute). The absolute path cannot be DOS-style,
14102 # because $ac_f cannot contain `:'.
14106 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
14108 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
14110 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
14111 as_fn_append ac_file_inputs " '$ac_f'"
14114 # Let's still pretend it is `configure' which instantiates (i.e., don't
14115 # use $as_me), people would be surprised to read:
14116 # /* config.h. Generated by config.status. */
14117 configure_input='Generated from '`
14118 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
14120 if test x"$ac_file" != x-; then
14121 configure_input="$ac_file. $configure_input"
14122 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
14123 $as_echo "$as_me: creating $ac_file" >&6;}
14125 # Neutralize special characters interpreted by sed in replacement strings.
14126 case $configure_input in #(
14127 *\&* | *\|* | *\\* )
14128 ac_sed_conf_input=`$as_echo "$configure_input" |
14129 sed 's/[\\\\&|]/\\\\&/g'`;; #(
14130 *) ac_sed_conf_input=$configure_input;;
14134 *:-:* | *:-) cat >"$ac_tmp/stdin" \
14135 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
14140 ac_dir=`$as_dirname -- "$ac_file" ||
14141 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14142 X"$ac_file" : 'X\(//\)[^/]' \| \
14143 X"$ac_file" : 'X\(//\)$' \| \
14144 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
14145 $as_echo X"$ac_file" |
14146 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14150 /^X\(\/\/\)[^/].*/{
14163 as_dir="$ac_dir"; as_fn_mkdir_p
14167 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
14169 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
14170 # A ".." for each directory in $ac_dir_suffix.
14171 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
14172 case $ac_top_builddir_sub in
14173 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
14174 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
14177 ac_abs_top_builddir=$ac_pwd
14178 ac_abs_builddir=$ac_pwd$ac_dir_suffix
14179 # for backward compatibility:
14180 ac_top_builddir=$ac_top_build_prefix
14183 .) # We are building in place.
14185 ac_top_srcdir=$ac_top_builddir_sub
14186 ac_abs_top_srcdir=$ac_pwd ;;
14187 [\\/]* | ?:[\\/]* ) # Absolute name.
14188 ac_srcdir=$srcdir$ac_dir_suffix;
14189 ac_top_srcdir=$srcdir
14190 ac_abs_top_srcdir=$srcdir ;;
14191 *) # Relative name.
14192 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
14193 ac_top_srcdir=$ac_top_build_prefix$srcdir
14194 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
14196 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
14206 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
14207 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
14209 ac_MKDIR_P=$MKDIR_P
14211 [\\/$]* | ?:[\\/]* ) ;;
14212 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
14216 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14217 # If the template does not know about datarootdir, expand it.
14218 # FIXME: This hack should be removed a few years after 2.60.
14219 ac_datarootdir_hack=; ac_datarootdir_seen=
14230 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
14231 *datarootdir*) ac_datarootdir_seen=yes;;
14232 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
14233 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
14234 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
14236 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14237 ac_datarootdir_hack='
14238 s&@datadir@&$datadir&g
14239 s&@docdir@&$docdir&g
14240 s&@infodir@&$infodir&g
14241 s&@localedir@&$localedir&g
14242 s&@mandir@&$mandir&g
14243 s&\\\${datarootdir}&$datarootdir&g' ;;
14247 # Neutralize VPATH when `$srcdir' = `.'.
14248 # Shell code in configure.ac might set extrasub.
14249 # FIXME: do we really want to maintain this feature?
14250 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14251 ac_sed_extra="$ac_vpsub
14254 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14256 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
14257 s|@configure_input@|$ac_sed_conf_input|;t t
14258 s&@top_builddir@&$ac_top_builddir_sub&;t t
14259 s&@top_build_prefix@&$ac_top_build_prefix&;t t
14260 s&@srcdir@&$ac_srcdir&;t t
14261 s&@abs_srcdir@&$ac_abs_srcdir&;t t
14262 s&@top_srcdir@&$ac_top_srcdir&;t t
14263 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
14264 s&@builddir@&$ac_builddir&;t t
14265 s&@abs_builddir@&$ac_abs_builddir&;t t
14266 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
14267 s&@INSTALL@&$ac_INSTALL&;t t
14268 s&@MKDIR_P@&$ac_MKDIR_P&;t t
14269 $ac_datarootdir_hack
14271 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
14272 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
14274 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
14275 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
14276 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
14277 "$ac_tmp/out"`; test -z "$ac_out"; } &&
14278 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
14279 which seems to be undefined. Please make sure it is defined" >&5
14280 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
14281 which seems to be undefined. Please make sure it is defined" >&2;}
14283 rm -f "$ac_tmp/stdin"
14285 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
14286 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
14288 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
14294 if test x"$ac_file" != x-; then
14296 $as_echo "/* $configure_input */" \
14297 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
14298 } >"$ac_tmp/config.h" \
14299 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
14300 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
14301 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
14302 $as_echo "$as_me: $ac_file is unchanged" >&6;}
14305 mv "$ac_tmp/config.h" "$ac_file" \
14306 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
14309 $as_echo "/* $configure_input */" \
14310 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
14311 || as_fn_error $? "could not create -" "$LINENO" 5
14313 # Compute "$ac_file"'s index in $config_headers.
14316 for _am_header in $config_headers :; do
14317 case $_am_header in
14318 $_am_arg | $_am_arg:* )
14321 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
14324 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
14325 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14326 X"$_am_arg" : 'X\(//\)[^/]' \| \
14327 X"$_am_arg" : 'X\(//\)$' \| \
14328 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
14329 $as_echo X"$_am_arg" |
14330 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14334 /^X\(\/\/\)[^/].*/{
14346 s/.*/./; q'`/stamp-h$_am_stamp_count
14349 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
14350 $as_echo "$as_me: executing $ac_file commands" >&6;}
14355 case $ac_file$ac_mode in
14356 "src/ccunit/config.h":C) ac_prefix_conf_OUT=`echo src/ccunit/config.h`
14357 ac_prefix_conf_DEF=`echo _$ac_prefix_conf_OUT | sed -e "y:abcdefghijklmnopqrstuvwxyz:ABCDEFGHIJKLMNOPQRSTUVWXYZ:" -e "s/[^abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ]/_/g"`
14358 ac_prefix_conf_PKG=`echo $PACKAGE`
14359 ac_prefix_conf_LOW=`echo _$ac_prefix_conf_PKG | sed -e "y:ABCDEFGHIJKLMNOPQRSTUVWXYZ-:abcdefghijklmnopqrstuvwxyz_:"`
14360 ac_prefix_conf_UPP=`echo $ac_prefix_conf_PKG | sed -e "y:abcdefghijklmnopqrstuvwxyz-:ABCDEFGHIJKLMNOPQRSTUVWXYZ_:" -e "/^[0123456789]/s/^/_/"`
14361 ac_prefix_conf_INP=`echo "config/config.h" | sed -e 's/ *//'`
14362 if test ".$ac_prefix_conf_INP" = "."; then
14363 for ac_file in : $CONFIG_HEADERS; do test "_$ac_file" = _: && continue
14365 *.h) ac_prefix_conf_INP=$ac_file ;;
14368 test ".$ac_prefix_conf_INP" != "." && break
14371 if test ".$ac_prefix_conf_INP" = "."; then
14372 case "$ac_prefix_conf_OUT" in
14373 */*) ac_prefix_conf_INP=`basename "$ac_prefix_conf_OUT"`
14375 *-*) ac_prefix_conf_INP=`echo "$ac_prefix_conf_OUT" | sed -e "s/[abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789_]*-//"`
14377 *) ac_prefix_conf_INP=config.h
14381 if test -z "$ac_prefix_conf_PKG" ; then
14382 as_fn_error $? "no prefix for _PREFIX_PKG_CONFIG_H" "$LINENO" 5
14384 if test ! -f "$ac_prefix_conf_INP" ; then if test -f "$srcdir/$ac_prefix_conf_INP" ; then
14385 ac_prefix_conf_INP="$srcdir/$ac_prefix_conf_INP"
14387 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_prefix_conf_OUT - prefix $ac_prefix_conf_UPP for $ac_prefix_conf_INP defines" >&5
14388 $as_echo "$as_me: creating $ac_prefix_conf_OUT - prefix $ac_prefix_conf_UPP for $ac_prefix_conf_INP defines" >&6;}
14389 if test -f $ac_prefix_conf_INP ; then
14390 echo "s/^#undef *\\([ABCDEFGHIJKLMNOPQRSTUVWXYZ_]\\)/#undef $ac_prefix_conf_UPP""_\\1/" > conftest.prefix
14391 echo "s/^#undef *\\([abcdefghijklmnopqrstuvwxyz]\\)/#undef $ac_prefix_conf_LOW""_\\1/" >> conftest.prefix
14392 echo "s/^#define *\\([ABCDEFGHIJKLMNOPQRSTUVWXYZ_][abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789_]*\\)\\(.*\\)/#ifndef $ac_prefix_conf_UPP""_\\1\\" >> conftest.prefix
14393 echo "#define $ac_prefix_conf_UPP""_\\1\\2\\" >> conftest.prefix
14394 echo "#endif/" >>conftest.prefix
14395 echo "s/^#define *\\([abcdefghijklmnopqrstuvwxyz][abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789_]*\\)\\(.*\\)/#ifndef $ac_prefix_conf_LOW""_\\1\\" >> conftest.prefix
14396 echo "#define $ac_prefix_conf_LOW""_\\1\\2\\" >> conftest.prefix
14397 echo "#endif/" >> conftest.prefix
14398 # now executing _script on _DEF input to create _OUT output file
14399 echo "#ifndef $ac_prefix_conf_DEF" >$tmp/pconfig.h
14400 echo "#define $ac_prefix_conf_DEF 1" >>$tmp/pconfig.h
14401 echo ' ' >>$tmp/pconfig.h
14402 echo /'*' $ac_prefix_conf_OUT. Generated automatically at end of configure. '*'/ >>$tmp/pconfig.h
14404 sed -f conftest.prefix $ac_prefix_conf_INP >>$tmp/pconfig.h
14405 echo ' ' >>$tmp/pconfig.h
14406 echo '/* once:' $ac_prefix_conf_DEF '*/' >>$tmp/pconfig.h
14407 echo "#endif" >>$tmp/pconfig.h
14408 if cmp -s $ac_prefix_conf_OUT $tmp/pconfig.h 2>/dev/null; then
14409 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_prefix_conf_OUT is unchanged" >&5
14410 $as_echo "$as_me: $ac_prefix_conf_OUT is unchanged" >&6;}
14412 ac_dir=`$as_dirname -- "$ac_prefix_conf_OUT" ||
14413 $as_expr X"$ac_prefix_conf_OUT" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14414 X"$ac_prefix_conf_OUT" : 'X\(//\)[^/]' \| \
14415 X"$ac_prefix_conf_OUT" : 'X\(//\)$' \| \
14416 X"$ac_prefix_conf_OUT" : 'X\(/\)' \| . 2>/dev/null ||
14417 $as_echo X"$ac_prefix_conf_OUT" |
14418 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14422 /^X\(\/\/\)[^/].*/{
14435 as_dir="$ac_dir"; as_fn_mkdir_p
14436 rm -f "$ac_prefix_conf_OUT"
14437 mv $tmp/pconfig.h "$ac_prefix_conf_OUT"
14439 cp conftest.prefix _configs.sed
14441 as_fn_error $? "input file $ac_prefix_conf_INP does not exist - skip generating $ac_prefix_conf_OUT" "$LINENO" 5
14446 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
14447 # Autoconf 2.62 quotes --file arguments for eval, but not when files
14448 # are listed without --file. Let's play safe and only enable the eval
14449 # if we detect the quoting.
14450 case $CONFIG_FILES in
14451 *\'*) eval set x "$CONFIG_FILES" ;;
14452 *) set x $CONFIG_FILES ;;
14457 # Strip MF so we end up with the name of the file.
14458 mf=`echo "$mf" | sed -e 's/:.*$//'`
14459 # Check whether this is an Automake generated Makefile or not.
14460 # We used to match only the files named 'Makefile.in', but
14461 # some people rename them; so instead we look at the file content.
14462 # Grep'ing the first line is not enough: some people post-process
14463 # each Makefile.in and add a new line on top of each file to say so.
14464 # Grep'ing the whole file is not good either: AIX grep has a line
14465 # limit of 2048, but all sed's we know have understand at least 4000.
14466 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
14467 dirpart=`$as_dirname -- "$mf" ||
14468 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14469 X"$mf" : 'X\(//\)[^/]' \| \
14470 X"$mf" : 'X\(//\)$' \| \
14471 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
14473 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14477 /^X\(\/\/\)[^/].*/{
14493 # Extract the definition of DEPDIR, am__include, and am__quote
14494 # from the Makefile without running 'make'.
14495 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
14496 test -z "$DEPDIR" && continue
14497 am__include=`sed -n 's/^am__include = //p' < "$mf"`
14498 test -z "am__include" && continue
14499 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
14500 # Find all dependency output files, they are included files with
14501 # $(DEPDIR) in their names. We invoke sed twice because it is the
14502 # simplest approach to changing $(DEPDIR) to its actual value in the
14504 for file in `sed -n "
14505 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
14506 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
14507 # Make sure the directory exists.
14508 test -f "$dirpart/$file" && continue
14509 fdir=`$as_dirname -- "$file" ||
14510 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14511 X"$file" : 'X\(//\)[^/]' \| \
14512 X"$file" : 'X\(//\)$' \| \
14513 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
14514 $as_echo X"$file" |
14515 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14519 /^X\(\/\/\)[^/].*/{
14532 as_dir=$dirpart/$fdir; as_fn_mkdir_p
14533 # echo "creating $dirpart/$file"
14534 echo '# dummy' > "$dirpart/$file"
14541 # See if we are running on zsh, and set the options which allow our
14542 # commands through without removal of \ escapes.
14543 if test -n "${ZSH_VERSION+set}" ; then
14544 setopt NO_GLOB_SUBST
14547 cfgfile="${ofile}T"
14548 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
14551 cat <<_LT_EOF >> "$cfgfile"
14554 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
14555 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
14556 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
14557 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
14559 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
14560 # 2006, 2007, 2008, 2009, 2010 Free Software Foundation,
14562 # Written by Gordon Matzigkeit, 1996
14564 # This file is part of GNU Libtool.
14566 # GNU Libtool is free software; you can redistribute it and/or
14567 # modify it under the terms of the GNU General Public License as
14568 # published by the Free Software Foundation; either version 2 of
14569 # the License, or (at your option) any later version.
14571 # As a special exception to the GNU General Public License,
14572 # if you distribute this file as part of a program or library that
14573 # is built using GNU Libtool, you may include this file under the
14574 # same distribution terms that you use for the rest of that program.
14576 # GNU Libtool is distributed in the hope that it will be useful,
14577 # but WITHOUT ANY WARRANTY; without even the implied warranty of
14578 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14579 # GNU General Public License for more details.
14581 # You should have received a copy of the GNU General Public License
14582 # along with GNU Libtool; see the file COPYING. If not, a copy
14583 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
14584 # obtained by writing to the Free Software Foundation, Inc.,
14585 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
14588 # The names of the tagged configurations supported by this script.
14591 # ### BEGIN LIBTOOL CONFIG
14593 # Which release of libtool.m4 was used?
14594 macro_version=$macro_version
14595 macro_revision=$macro_revision
14597 # Assembler program.
14600 # DLL creation program.
14601 DLLTOOL=$lt_DLLTOOL
14603 # Object dumper program.
14604 OBJDUMP=$lt_OBJDUMP
14606 # Whether or not to build shared libraries.
14607 build_libtool_libs=$enable_shared
14609 # Whether or not to build static libraries.
14610 build_old_libs=$enable_static
14612 # What type of objects to build.
14615 # Whether or not to optimize for fast installation.
14616 fast_install=$enable_fast_install
14618 # Shell to use when invoking shell scripts.
14621 # An echo program that protects backslashes.
14625 host_alias=$host_alias
14629 # The build system.
14630 build_alias=$build_alias
14634 # A sed program that does not truncate output.
14637 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
14638 Xsed="\$SED -e 1s/^X//"
14640 # A grep program that handles long lines.
14646 # A literal string matcher.
14649 # A BSD- or MS-compatible name lister.
14652 # Whether we need soft or hard links.
14655 # What is the maximum length of a command?
14656 max_cmd_len=$max_cmd_len
14658 # Object file suffix (normally "o").
14661 # Executable file suffix (normally "").
14664 # whether the shell understands "unset".
14667 # turn spaces into newlines.
14670 # turn newlines into spaces.
14673 # Method to check whether dependent libraries are shared objects.
14674 deplibs_check_method=$lt_deplibs_check_method
14676 # Command to use when deplibs_check_method == "file_magic".
14677 file_magic_cmd=$lt_file_magic_cmd
14681 AR_FLAGS=$lt_AR_FLAGS
14683 # A symbol stripping program.
14686 # Commands used to install an old-style archive.
14688 old_postinstall_cmds=$lt_old_postinstall_cmds
14689 old_postuninstall_cmds=$lt_old_postuninstall_cmds
14691 # Whether to use a lock for old archive extraction.
14692 lock_old_archive_extraction=$lock_old_archive_extraction
14697 # LTCC compiler flags.
14698 LTCFLAGS=$lt_CFLAGS
14700 # Take the output of nm and produce a listing of raw symbols and C names.
14701 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
14703 # Transform the output of nm in a proper C declaration.
14704 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
14706 # Transform the output of nm in a C name address pair.
14707 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
14709 # Transform the output of nm in a C name address pair when lib prefix is needed.
14710 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
14712 # The name of the directory that contains temporary libtool files.
14715 # Used to examine libraries when file_magic_cmd begins with "file".
14716 MAGIC_CMD=$MAGIC_CMD
14718 # Must we lock files when doing compilation?
14719 need_locks=$lt_need_locks
14721 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
14722 DSYMUTIL=$lt_DSYMUTIL
14724 # Tool to change global to local symbols on Mac OS X.
14727 # Tool to manipulate fat objects and archives on Mac OS X.
14730 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
14733 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
14734 OTOOL64=$lt_OTOOL64
14736 # Old archive suffix (normally "a").
14739 # Shared library suffix (normally ".so").
14740 shrext_cmds=$lt_shrext_cmds
14742 # The commands to extract the exported symbol list from a shared archive.
14743 extract_expsyms_cmds=$lt_extract_expsyms_cmds
14745 # Variables whose values should be saved in libtool wrapper scripts and
14746 # restored at link time.
14747 variables_saved_for_relink=$lt_variables_saved_for_relink
14749 # Do we need the "lib" prefix for modules?
14750 need_lib_prefix=$need_lib_prefix
14752 # Do we need a version for libraries?
14753 need_version=$need_version
14755 # Library versioning type.
14756 version_type=$version_type
14758 # Shared library runtime path variable.
14759 runpath_var=$runpath_var
14761 # Shared library path variable.
14762 shlibpath_var=$shlibpath_var
14764 # Is shlibpath searched before the hard-coded library search path?
14765 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
14767 # Format of library name prefix.
14768 libname_spec=$lt_libname_spec
14770 # List of archive names. First name is the real one, the rest are links.
14771 # The last name is the one that the linker finds with -lNAME
14772 library_names_spec=$lt_library_names_spec
14774 # The coded name of the library, if different from the real name.
14775 soname_spec=$lt_soname_spec
14777 # Permission mode override for installation of shared libraries.
14778 install_override_mode=$lt_install_override_mode
14780 # Command to use after installation of a shared archive.
14781 postinstall_cmds=$lt_postinstall_cmds
14783 # Command to use after uninstallation of a shared archive.
14784 postuninstall_cmds=$lt_postuninstall_cmds
14786 # Commands used to finish a libtool library installation in a directory.
14787 finish_cmds=$lt_finish_cmds
14789 # As "finish_cmds", except a single script fragment to be evaled but
14791 finish_eval=$lt_finish_eval
14793 # Whether we should hardcode library paths into libraries.
14794 hardcode_into_libs=$hardcode_into_libs
14796 # Compile-time system search path for libraries.
14797 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
14799 # Run-time system search path for libraries.
14800 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
14802 # Whether dlopen is supported.
14803 dlopen_support=$enable_dlopen
14805 # Whether dlopen of programs is supported.
14806 dlopen_self=$enable_dlopen_self
14808 # Whether dlopen of statically linked programs is supported.
14809 dlopen_self_static=$enable_dlopen_self_static
14811 # Commands to strip libraries.
14812 old_striplib=$lt_old_striplib
14813 striplib=$lt_striplib
14816 # The linker used to build libraries.
14819 # How to create reloadable object files.
14820 reload_flag=$lt_reload_flag
14821 reload_cmds=$lt_reload_cmds
14823 # Commands used to build an old-style archive.
14824 old_archive_cmds=$lt_old_archive_cmds
14826 # A language specific compiler.
14829 # Is the compiler the GNU compiler?
14832 # Compiler flag to turn off builtin functions.
14833 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
14835 # How to pass a linker flag through the compiler.
14836 wl=$lt_lt_prog_compiler_wl
14838 # Additional compiler flags for building library objects.
14839 pic_flag=$lt_lt_prog_compiler_pic
14841 # Compiler flag to prevent dynamic linking.
14842 link_static_flag=$lt_lt_prog_compiler_static
14844 # Does compiler simultaneously support -c and -o options?
14845 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
14847 # Whether or not to add -lc for building shared libraries.
14848 build_libtool_need_lc=$archive_cmds_need_lc
14850 # Whether or not to disallow shared libs when runtime libs are static.
14851 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
14853 # Compiler flag to allow reflexive dlopens.
14854 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
14856 # Compiler flag to generate shared objects directly from archives.
14857 whole_archive_flag_spec=$lt_whole_archive_flag_spec
14859 # Whether the compiler copes with passing no objects directly.
14860 compiler_needs_object=$lt_compiler_needs_object
14862 # Create an old-style archive from a shared archive.
14863 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
14865 # Create a temporary old-style archive to link instead of a shared archive.
14866 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
14868 # Commands used to build a shared archive.
14869 archive_cmds=$lt_archive_cmds
14870 archive_expsym_cmds=$lt_archive_expsym_cmds
14872 # Commands used to build a loadable module if different from building
14873 # a shared archive.
14874 module_cmds=$lt_module_cmds
14875 module_expsym_cmds=$lt_module_expsym_cmds
14877 # Whether we are building with GNU ld or not.
14878 with_gnu_ld=$lt_with_gnu_ld
14880 # Flag that allows shared libraries with undefined symbols to be built.
14881 allow_undefined_flag=$lt_allow_undefined_flag
14883 # Flag that enforces no undefined symbols.
14884 no_undefined_flag=$lt_no_undefined_flag
14886 # Flag to hardcode \$libdir into a binary during linking.
14887 # This must work even if \$libdir does not exist
14888 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
14890 # If ld is used when linking, flag to hardcode \$libdir into a binary
14891 # during linking. This must work even if \$libdir does not exist.
14892 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
14894 # Whether we need a single "-rpath" flag with a separated argument.
14895 hardcode_libdir_separator=$lt_hardcode_libdir_separator
14897 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
14898 # DIR into the resulting binary.
14899 hardcode_direct=$hardcode_direct
14901 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
14902 # DIR into the resulting binary and the resulting library dependency is
14903 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
14904 # library is relocated.
14905 hardcode_direct_absolute=$hardcode_direct_absolute
14907 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
14908 # into the resulting binary.
14909 hardcode_minus_L=$hardcode_minus_L
14911 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
14912 # into the resulting binary.
14913 hardcode_shlibpath_var=$hardcode_shlibpath_var
14915 # Set to "yes" if building a shared library automatically hardcodes DIR
14916 # into the library and all subsequent libraries and executables linked
14918 hardcode_automatic=$hardcode_automatic
14920 # Set to yes if linker adds runtime paths of dependent libraries
14921 # to runtime path list.
14922 inherit_rpath=$inherit_rpath
14924 # Whether libtool must link a program against all its dependency libraries.
14925 link_all_deplibs=$link_all_deplibs
14927 # Fix the shell variable \$srcfile for the compiler.
14928 fix_srcfile_path=$lt_fix_srcfile_path
14930 # Set to "yes" if exported symbols are required.
14931 always_export_symbols=$always_export_symbols
14933 # The commands to list exported symbols.
14934 export_symbols_cmds=$lt_export_symbols_cmds
14936 # Symbols that should not be listed in the preloaded symbols.
14937 exclude_expsyms=$lt_exclude_expsyms
14939 # Symbols that must always be exported.
14940 include_expsyms=$lt_include_expsyms
14942 # Commands necessary for linking programs (against libraries) with templates.
14943 prelink_cmds=$lt_prelink_cmds
14945 # Specify filename containing input files.
14946 file_list_spec=$lt_file_list_spec
14948 # How to hardcode a shared library path into an executable.
14949 hardcode_action=$hardcode_action
14951 # ### END LIBTOOL CONFIG
14957 cat <<\_LT_EOF >> "$cfgfile"
14958 # AIX sometimes has problems with the GCC collect2 program. For some
14959 # reason, if we set the COLLECT_NAMES environment variable, the problems
14960 # vanish in a puff of smoke.
14961 if test "X${COLLECT_NAMES+set}" != Xset; then
14963 export COLLECT_NAMES
14970 ltmain="$ac_aux_dir/ltmain.sh"
14973 # We use sed instead of cat because bash on DJGPP gets confused if
14974 # if finds mixed CR/LF and LF-only lines. Since sed operates in
14975 # text mode, it properly converts lines to CR/LF. This bash problem
14976 # is reportedly fixed, but why not run on old versions too?
14977 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
14978 || (rm -f "$cfgfile"; exit 1)
14982 cat << \_LT_EOF >> "$cfgfile"
14984 # func_dirname file append nondir_replacement
14985 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
14986 # otherwise set result to NONDIR_REPLACEMENT.
14990 */*) func_dirname_result="${1%/*}${2}" ;;
14991 * ) func_dirname_result="${3}" ;;
14995 # func_basename file
14998 func_basename_result="${1##*/}"
15001 # func_dirname_and_basename file append nondir_replacement
15002 # perform func_basename and func_dirname in a single function
15004 # dirname: Compute the dirname of FILE. If nonempty,
15005 # add APPEND to the result, otherwise set result
15006 # to NONDIR_REPLACEMENT.
15007 # value returned in "$func_dirname_result"
15008 # basename: Compute filename of FILE.
15009 # value retuned in "$func_basename_result"
15010 # Implementation must be kept synchronized with func_dirname
15011 # and func_basename. For efficiency, we do not delegate to
15012 # those functions but instead duplicate the functionality here.
15013 func_dirname_and_basename ()
15016 */*) func_dirname_result="${1%/*}${2}" ;;
15017 * ) func_dirname_result="${3}" ;;
15019 func_basename_result="${1##*/}"
15022 # func_stripname prefix suffix name
15023 # strip PREFIX and SUFFIX off of NAME.
15024 # PREFIX and SUFFIX must not contain globbing or regex special
15025 # characters, hashes, percent signs, but SUFFIX may contain a leading
15026 # dot (in which case that matches only a dot).
15029 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
15030 # positional parameters, so assign one to ordinary parameter first.
15031 func_stripname_result=${3}
15032 func_stripname_result=${func_stripname_result#"${1}"}
15033 func_stripname_result=${func_stripname_result%"${2}"}
15039 func_opt_split_opt=${1%%=*}
15040 func_opt_split_arg=${1#*=}
15047 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
15048 *) func_lo2o_result=${1} ;;
15052 # func_xform libobj-or-source
15055 func_xform_result=${1%.*}.lo
15058 # func_arith arithmetic-term...
15061 func_arith_result=$(( $* ))
15065 # STRING may not start with a hyphen.
15068 func_len_result=${#1}
15073 *) # Bourne compatible functions.
15074 cat << \_LT_EOF >> "$cfgfile"
15076 # func_dirname file append nondir_replacement
15077 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
15078 # otherwise set result to NONDIR_REPLACEMENT.
15081 # Extract subdirectory from the argument.
15082 func_dirname_result=`$ECHO "${1}" | $SED "$dirname"`
15083 if test "X$func_dirname_result" = "X${1}"; then
15084 func_dirname_result="${3}"
15086 func_dirname_result="$func_dirname_result${2}"
15090 # func_basename file
15093 func_basename_result=`$ECHO "${1}" | $SED "$basename"`
15097 # func_stripname prefix suffix name
15098 # strip PREFIX and SUFFIX off of NAME.
15099 # PREFIX and SUFFIX must not contain globbing or regex special
15100 # characters, hashes, percent signs, but SUFFIX may contain a leading
15101 # dot (in which case that matches only a dot).
15102 # func_strip_suffix prefix name
15106 .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
15107 *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
15112 my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
15113 my_sed_long_arg='1s/^-[^=]*=//'
15118 func_opt_split_opt=`$ECHO "${1}" | $SED "$my_sed_long_opt"`
15119 func_opt_split_arg=`$ECHO "${1}" | $SED "$my_sed_long_arg"`
15125 func_lo2o_result=`$ECHO "${1}" | $SED "$lo2o"`
15128 # func_xform libobj-or-source
15131 func_xform_result=`$ECHO "${1}" | $SED 's/\.[^.]*$/.lo/'`
15134 # func_arith arithmetic-term...
15137 func_arith_result=`expr "$@"`
15141 # STRING may not start with a hyphen.
15144 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
15150 case $lt_shell_append in
15152 cat << \_LT_EOF >> "$cfgfile"
15154 # func_append var value
15155 # Append VALUE to the end of shell variable VAR.
15163 cat << \_LT_EOF >> "$cfgfile"
15165 # func_append var value
15166 # Append VALUE to the end of shell variable VAR.
15177 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
15178 || (rm -f "$cfgfile"; exit 1)
15180 mv -f "$cfgfile" "$ofile" ||
15181 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
15192 ac_clean_files=$ac_clean_files_save
15194 test $ac_write_fail = 0 ||
15195 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
15198 # configure is writing to config.log, and then calls config.status.
15199 # config.status does its own redirection, appending to config.log.
15200 # Unfortunately, on DOS this fails, as config.log is still kept open
15201 # by configure, so config.status won't be able to write to it; its
15202 # output is simply discarded. So we exec the FD to /dev/null,
15203 # effectively closing config.log, so it can be properly (re)opened and
15204 # appended to by config.status. When coming back to configure, we
15205 # need to make the FD available again.
15206 if test "$no_create" != yes; then
15208 ac_config_status_args=
15209 test "$silent" = yes &&
15210 ac_config_status_args="$ac_config_status_args --quiet"
15212 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
15214 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
15215 # would make configure fail if this is the last instruction.
15216 $ac_cs_success || as_fn_exit 1
15218 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
15219 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
15220 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}